@morghulis/core 0.0.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/index.css +1 -1
- package/dist/morghulis-core.es.js +20977 -26294
- package/dist/morghulis-core.es.js.map +1 -1
- package/dist/morghulis-core.umd.js +21 -97
- package/dist/morghulis-core.umd.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/app/MApp.vue.d.ts +21 -0
- package/dist/types/app/admin/MAdmin.vue.d.ts +17 -0
- package/dist/types/app/admin/components/MChannelHub.vue.d.ts +3 -0
- package/dist/types/app/admin/components/dialogs/AccountDialog.vue.d.ts +6 -0
- package/dist/types/app/admin/components/dialogs/ChannelDialog.vue.d.ts +5 -0
- package/dist/types/app/admin/components/dialogs/PasswordDialog.vue.d.ts +5 -0
- package/dist/types/app/admin/components/dialogs/ProfileDialog.vue.d.ts +9 -0
- package/dist/types/app/admin/components/dialogs/forms/AccountForm.vue.d.ts +7 -0
- package/dist/types/app/admin/components/dialogs/forms/PasswordForm.vue.d.ts +13 -0
- package/dist/types/app/admin/components/dialogs/forms/index.d.ts +3 -0
- package/dist/types/app/admin/components/dialogs/index.d.ts +9 -0
- package/dist/types/app/admin/contents/auth/AdminAuth.vue.d.ts +3 -0
- package/dist/types/app/admin/contents/auth/index.d.ts +2 -0
- package/dist/types/app/admin/contents/auth/login/LoginDialog.vue.d.ts +5 -0
- package/dist/types/app/admin/contents/auth/login/forms/LoginForm.vue.d.ts +9 -0
- package/dist/types/app/admin/contents/auth/login/forms/SignInForm.vue.d.ts +9 -0
- package/dist/types/app/admin/contents/auth/login/forms/SignUpForm.vue.d.ts +10 -0
- package/dist/types/app/admin/contents/auth/login/forms/index.d.ts +7 -0
- package/dist/types/app/admin/contents/auth/login/index.d.ts +3 -0
- package/dist/types/app/admin/contents/auth/login/retrieve/RetrieveDialog.vue.d.ts +5 -0
- package/dist/types/app/admin/contents/auth/login/retrieve/index.d.ts +3 -0
- package/dist/types/app/admin/contents/auth/login/validator.d.ts +2 -0
- package/dist/types/app/admin/contents/auth/widgets/AuthDropdown.vue.d.ts +3 -0
- package/dist/types/app/admin/contents/hooks.d.ts +174 -0
- package/dist/types/app/admin/contents/menu/AdminMenu.vue.d.ts +11 -0
- package/dist/types/app/admin/contents/menu/MenuTreeNode.vue.d.ts +9 -0
- package/dist/types/app/admin/contents/navigate/AdminNavigate.vue.d.ts +7 -0
- package/dist/types/app/admin/contents/system/MAccount.vue.d.ts +3 -0
- package/dist/types/app/admin/contents/system/MMenu.vue.d.ts +3 -0
- package/dist/types/app/admin/contents/system/MRole.vue.d.ts +3 -0
- package/dist/types/app/admin/contents/system/MUser.vue.d.ts +3 -0
- package/dist/types/app/admin/contents/system/feedbacks/AccountRoleDialog.vue.d.ts +11 -0
- package/dist/types/app/admin/contents/system/feedbacks/MenuAddDialog.vue.d.ts +15 -0
- package/dist/types/app/admin/contents/system/feedbacks/MenuPathPopover.vue.d.ts +14 -0
- package/dist/types/app/admin/contents/system/feedbacks/MenuRoleDialog.vue.d.ts +11 -0
- package/dist/types/app/admin/contents/system/feedbacks/MenuViewDialog.vue.d.ts +6 -0
- package/dist/types/app/admin/contents/system/feedbacks/RoleAccountDialog.vue.d.ts +11 -0
- package/dist/types/app/admin/contents/system/feedbacks/RoleMenuDialog.vue.d.ts +11 -0
- package/dist/types/app/admin/contents/system/feedbacks/hooks.d.ts +13 -0
- package/dist/types/app/admin/contents/system/feedbacks/index.d.ts +15 -0
- package/dist/types/app/admin/contents/system/widgets/MenuLabel.vue.d.ts +7 -0
- package/dist/types/app/admin/contents/system/widgets/MenuRolePlugin.vue.d.ts +7 -0
- package/dist/types/app/admin/contents/system/widgets/index.d.ts +3 -0
- package/dist/types/app/admin/hooks.d.ts +4 -0
- package/dist/types/app/admin/pages/AdminMain.vue.d.ts +3 -0
- package/dist/types/app/admin/pages/MSystem.vue.d.ts +3 -0
- package/dist/types/app/admin/pages/NoPermission.vue.d.ts +3 -0
- package/dist/types/app/admin/pages/NotFound.vue.d.ts +3 -0
- package/dist/types/app/admin/pages/index.d.ts +7 -0
- package/dist/types/app/admin/stores/index.d.ts +2 -0
- package/dist/types/app/admin/stores/options.d.ts +15 -0
- package/dist/types/app/admin/stores/user.d.ts +149 -0
- package/dist/types/app/index.d.ts +2 -0
- package/dist/types/app/install.d.ts +3 -0
- package/dist/types/components.d.ts +5 -0
- package/dist/types/data/cell/FieldTransfer.vue.d.ts +14 -0
- package/dist/types/data/cell/MCell.vue.d.ts +14 -0
- package/dist/types/data/cell/hooks.d.ts +15 -0
- package/dist/types/data/cell/index.d.ts +3 -0
- package/dist/types/data/cell/instances/char/CharCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/char/ColorCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/char/IconCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/char/MultiSetCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/char/SetCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/char/index.d.ts +6 -0
- package/dist/types/data/cell/instances/date/DateArrayCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/date/DateCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/date/DateRangeCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/date/TimeCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/date/TimeRangeCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/date/index.d.ts +6 -0
- package/dist/types/data/cell/instances/hooks.d.ts +46 -0
- package/dist/types/data/cell/instances/index.d.ts +5 -0
- package/dist/types/data/cell/instances/refer/AutoCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/refer/CascadeCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/refer/SelectCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/refer/TransferCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/refer/TreeCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/refer/index.d.ts +6 -0
- package/dist/types/data/cell/instances/simple/BooleanCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/simple/DefaultCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/simple/NumberCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/simple/index.d.ts +4 -0
- package/dist/types/data/cell/instances/special/FileCell.vue.d.ts +7 -0
- package/dist/types/data/cell/instances/special/ObjectCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/special/RichCell.vue.d.ts +4 -0
- package/dist/types/data/cell/instances/special/index.d.ts +4 -0
- package/dist/types/data/cell/types.d.ts +13 -0
- package/dist/types/data/form/MForm.vue.d.ts +12 -0
- package/dist/types/data/form/hooks.d.ts +36 -0
- package/dist/types/data/form/index.d.ts +3 -0
- package/dist/types/data/form/types.d.ts +19 -0
- package/dist/types/data/form/widgets/MFormLabel.vue.d.ts +14 -0
- package/dist/types/data/index.d.ts +6 -0
- package/dist/types/data/plugin/MPluginButtons.vue.d.ts +11 -0
- package/dist/types/data/plugin/MPluginColumn.vue.d.ts +11 -0
- package/dist/types/data/plugin/index.d.ts +4 -0
- package/dist/types/data/plugin/types.d.ts +58 -0
- package/dist/types/data/table/MTable.vue.d.ts +28 -0
- package/dist/types/data/table/components/columns/ButtonsColumn.vue.d.ts +10 -0
- package/dist/types/data/table/components/columns/CustomColumn.vue.d.ts +10 -0
- package/dist/types/data/table/components/columns/FieldColumn.vue.d.ts +18 -0
- package/dist/types/data/table/components/columns/IndexColumn.vue.d.ts +14 -0
- package/dist/types/data/table/components/columns/cells/MTableCell.vue.d.ts +15 -0
- package/dist/types/data/table/components/columns/cells/MTableHeaderCell.vue.d.ts +12 -0
- package/dist/types/data/table/components/columns/cells/MTableIndexCell.vue.d.ts +10 -0
- package/dist/types/data/table/components/control/MTableControl.vue.d.ts +21 -0
- package/dist/types/data/table/components/control/MTableControlButtons.vue.d.ts +24 -0
- package/dist/types/data/table/components/control/index.d.ts +4 -0
- package/dist/types/data/table/components/feedback/CellDialog.vue.d.ts +11 -0
- package/dist/types/data/table/components/feedback/CellPopover.vue.d.ts +14 -0
- package/dist/types/data/table/components/feedback/IndexPopover.vue.d.ts +14 -0
- package/dist/types/data/table/components/feedback/LookupPopover.vue.d.ts +8 -0
- package/dist/types/data/table/components/feedback/UploadDialog.vue.d.ts +11 -0
- package/dist/types/data/table/components/feedback/index.d.ts +11 -0
- package/dist/types/data/table/components/finder/MTableFinder.vue.d.ts +21 -0
- package/dist/types/data/table/components/finder/index.d.ts +3 -0
- package/dist/types/data/table/components/tools/MTablePage.vue.d.ts +13 -0
- package/dist/types/data/table/components/tools/MTableSelection.vue.d.ts +10 -0
- package/dist/types/data/table/components/tools/MTableSize.vue.d.ts +11 -0
- package/dist/types/data/table/components/tools/index.d.ts +4 -0
- package/dist/types/data/table/hooks/index.d.ts +4 -0
- package/dist/types/data/table/hooks/selection.d.ts +9 -0
- package/dist/types/data/table/hooks/sortable.d.ts +7 -0
- package/dist/types/data/table/hooks/style.d.ts +22 -0
- package/dist/types/data/table/index.d.ts +3 -0
- package/dist/types/data/table/types.d.ts +36 -0
- package/dist/types/data/tree/MTree.vue.d.ts +59 -0
- package/dist/types/data/tree/components/control/MTreeControl.vue.d.ts +18 -0
- package/dist/types/data/tree/components/feedback/BatchDialog.vue.d.ts +11 -0
- package/dist/types/data/tree/components/feedback/NodePopover.vue.d.ts +19 -0
- package/dist/types/data/tree/components/feedback/TableDialog.vue.d.ts +7 -0
- package/dist/types/data/tree/components/feedback/index.d.ts +5 -0
- package/dist/types/data/tree/components/feedback/widgets/BatchForm.vue.d.ts +15 -0
- package/dist/types/data/tree/components/feedback/widgets/NodeButtons.vue.d.ts +20 -0
- package/dist/types/data/tree/components/feedback/widgets/index.d.ts +3 -0
- package/dist/types/data/tree/components/index.d.ts +3 -0
- package/dist/types/data/tree/components/node/MTreeNode.vue.d.ts +9 -0
- package/dist/types/data/tree/components/node/MTreePlugin.vue.d.ts +9 -0
- package/dist/types/data/tree/components/tools/ButtonsNodeTool.vue.d.ts +3 -0
- package/dist/types/data/tree/components/tools/CustomNodeTool.vue.d.ts +3 -0
- package/dist/types/data/tree/components/tools/ToggleNodeTool.vue.d.ts +17 -0
- package/dist/types/data/tree/hooks/disclosure.d.ts +15 -0
- package/dist/types/data/tree/hooks/selection.d.ts +9 -0
- package/dist/types/data/tree/index.d.ts +3 -0
- package/dist/types/data/tree/types.d.ts +24 -0
- package/dist/types/data/types.d.ts +23 -0
- package/dist/types/data/upload/MUpload.vue.d.ts +8 -0
- package/dist/types/data/upload/components/control/UploadButtons.vue.d.ts +14 -0
- package/dist/types/data/upload/components/control/UploadControl.vue.d.ts +14 -0
- package/dist/types/data/upload/components/control/index.d.ts +3 -0
- package/dist/types/data/upload/components/dictiionary/UploadDictionary.vue.d.ts +7 -0
- package/dist/types/data/upload/components/dictiionary/index.d.ts +2 -0
- package/dist/types/data/upload/components/form/UploadForm.vue.d.ts +8 -0
- package/dist/types/data/upload/components/impoter/UploadImporter.vue.d.ts +13 -0
- package/dist/types/data/upload/components/impoter/components/FileImporter.vue.d.ts +9 -0
- package/dist/types/data/upload/components/impoter/components/ImporterTemplate.vue.d.ts +7 -0
- package/dist/types/data/upload/components/impoter/components/PasterImporter.vue.d.ts +9 -0
- package/dist/types/data/upload/components/impoter/index.d.ts +2 -0
- package/dist/types/data/upload/components/index.d.ts +3 -0
- package/dist/types/data/upload/components/table/UploadTable.vue.d.ts +16 -0
- package/dist/types/data/upload/components/table/components/cells/UploadTableCell.vue.d.ts +8 -0
- package/dist/types/data/upload/components/table/components/valid/UploadTableValidation.vue.d.ts +7 -0
- package/dist/types/data/upload/components/table/index.d.ts +2 -0
- package/dist/types/data/upload/hooks.d.ts +70 -0
- package/dist/types/data/upload/index.d.ts +3 -0
- package/dist/types/data/upload/types.d.ts +14 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/requests.d.ts +4 -0
- package/dist/types/hooks/sizes.d.ts +8 -0
- package/dist/types/index.d.ts +31 -15
- package/dist/types/meta/MetaPopover.vue.d.ts +19 -0
- package/dist/types/meta/feedbacks/CopyDialog.vue.d.ts +3 -0
- package/dist/types/meta/feedbacks/FieldDialog.vue.d.ts +14 -0
- package/dist/types/meta/feedbacks/ListDialog.vue.d.ts +13 -0
- package/dist/types/meta/feedbacks/MetaDialog.vue.d.ts +16 -0
- package/dist/types/meta/feedbacks/ViewDialog.vue.d.ts +13 -0
- package/dist/types/meta/feedbacks/index.d.ts +17 -0
- package/dist/types/meta/feedbacks/list/AddFieldDialog.vue.d.ts +14 -0
- package/dist/types/meta/feedbacks/list/CustomFieldDialog.vue.d.ts +14 -0
- package/dist/types/meta/feedbacks/list/FormatDialog.vue.d.ts +14 -0
- package/dist/types/meta/feedbacks/list/ReferDialog.vue.d.ts +12 -0
- package/dist/types/meta/forms/CustomForm.vue.d.ts +17 -0
- package/dist/types/meta/forms/FieldForm.vue.d.ts +11 -0
- package/dist/types/meta/forms/FormatForm.vue.d.ts +33 -0
- package/dist/types/meta/forms/ReferForm.vue.d.ts +25 -0
- package/dist/types/meta/forms/ViewForm.vue.d.ts +9 -0
- package/dist/types/meta/forms/field/FieldFormBtn.vue.d.ts +11 -0
- package/dist/types/meta/forms/formats/DateFormats.vue.d.ts +13 -0
- package/dist/types/meta/forms/formats/FileFormats.vue.d.ts +13 -0
- package/dist/types/meta/forms/formats/NumberFormats.vue.d.ts +13 -0
- package/dist/types/meta/forms/formats/SetFormats.vue.d.ts +13 -0
- package/dist/types/meta/forms/formats/TextFormats.vue.d.ts +13 -0
- package/dist/types/meta/forms/formats/index.d.ts +6 -0
- package/dist/types/meta/forms/index.d.ts +11 -0
- package/dist/types/meta/index.d.ts +3 -0
- package/dist/types/meta/labels/FieldLabel.vue.d.ts +7 -0
- package/dist/types/meta/labels/ViewLabel.vue.d.ts +8 -0
- package/dist/types/meta/labels/index.d.ts +3 -0
- package/dist/types/meta/panels/ListPanel.vue.d.ts +7 -0
- package/dist/types/meta/panels/ViewPanel.vue.d.ts +11 -0
- package/dist/types/meta/panels/index.d.ts +3 -0
- package/dist/types/meta/panels/list-custom/FieldPropCustom.vue.d.ts +4 -0
- package/dist/types/meta/panels/list-custom/FieldWidgets.d.ts +20 -0
- package/dist/types/meta/panels/list-custom/FieldWidgetsCustom.vue.d.ts +4 -0
- package/dist/types/meta/panels/view-custom/CurrentView.vue.d.ts +4 -0
- package/dist/types/meta/tools/MetaSelect.vue.d.ts +20 -0
- package/dist/types/meta/tools/TreeRootSelection.vue.d.ts +13 -0
- package/dist/types/meta/tools/index.d.ts +3 -0
- package/dist/types/meta/tools/types.d.ts +6 -0
- package/dist/types/types.d.ts +15 -15
- package/dist/types/usages/form-codes/CodesForm.vue.d.ts +96 -0
- package/dist/types/usages/form-codes/hooks.d.ts +143 -0
- package/dist/types/usages/form-codes/index.d.ts +3 -0
- package/dist/types/usages/form-codes/types.d.ts +8 -0
- package/dist/types/usages/index.d.ts +5 -0
- package/dist/types/usages/table-codes/CodesTable.vue.d.ts +21 -0
- package/dist/types/usages/table-codes/index.d.ts +3 -0
- package/dist/types/usages/table-codes/types.d.ts +12 -0
- package/dist/types/usages/table-data/DTable.vue.d.ts +21 -0
- package/dist/types/usages/table-data/hooks.d.ts +244 -0
- package/dist/types/usages/table-data/index.d.ts +3 -0
- package/dist/types/usages/table-data/types.d.ts +8 -0
- package/dist/types/usages/table-plain/@hooks/data.d.ts +65 -0
- package/dist/types/usages/table-plain/@hooks/view.d.ts +129 -0
- package/dist/types/usages/table-plain/PTable.vue.d.ts +23 -0
- package/dist/types/usages/table-plain/hooks.d.ts +207 -0
- package/dist/types/usages/table-plain/index.d.ts +3 -0
- package/dist/types/usages/table-plain/types.d.ts +14 -0
- package/dist/types/usages/tree-data/DTree.vue.d.ts +53 -0
- package/dist/types/usages/tree-data/hooks.d.ts +164 -0
- package/dist/types/usages/tree-data/index.d.ts +3 -0
- package/dist/types/usages/tree-data/types.d.ts +8 -0
- package/dist/types/widgets/depands/MCharts.vue.d.ts +12 -0
- package/dist/types/widgets/depands/MObjectEditor.vue.d.ts +14 -0
- package/dist/types/widgets/depands/MPdfViewer.vue.d.ts +7 -0
- package/dist/types/widgets/depands/MRichEditor.vue.d.ts +11 -0
- package/dist/types/widgets/depands/index.d.ts +5 -0
- package/dist/types/widgets/extensions/CtrlButton.vue.d.ts +31 -0
- package/dist/types/widgets/extensions/MOption.vue.d.ts +24 -0
- package/dist/types/widgets/extensions/index.d.ts +3 -0
- package/dist/types/widgets/feedbacks/dialog/MDialog.vue.d.ts +58 -0
- package/dist/types/widgets/feedbacks/dialog/types.d.ts +25 -0
- package/dist/types/widgets/feedbacks/dialog/widgets/MDialogFooter.vue.d.ts +22 -0
- package/dist/types/widgets/feedbacks/dialog/widgets/MDialogHeader.vue.d.ts +24 -0
- package/dist/types/widgets/feedbacks/functions.d.ts +21 -0
- package/dist/types/widgets/feedbacks/index.d.ts +8 -0
- package/dist/types/widgets/feedbacks/popover/MPopover.vue.d.ts +41 -0
- package/dist/types/widgets/feedbacks/popover/types.d.ts +6 -0
- package/dist/types/widgets/file/MFileView.vue.d.ts +9 -0
- package/dist/types/widgets/file/index.d.ts +2 -0
- package/dist/types/widgets/file/viewer/VCsv.vue.d.ts +6 -0
- package/dist/types/widgets/file/viewer/VExcel.vue.d.ts +6 -0
- package/dist/types/widgets/file/viewer/VImage.vue.d.ts +6 -0
- package/dist/types/widgets/file/viewer/VPdf.vue.d.ts +6 -0
- package/dist/types/widgets/file/viewer/VTxt.vue.d.ts +6 -0
- package/dist/types/widgets/file/viewer/index.d.ts +6 -0
- package/dist/types/widgets/icon/MIcon.vue.d.ts +21 -0
- package/dist/types/widgets/icon/index.d.ts +2 -0
- package/dist/types/widgets/icon/install.d.ts +2 -0
- package/dist/types/widgets/icon/names.d.ts +1 -0
- package/dist/types/widgets/icon/types.d.ts +30 -0
- package/dist/types/widgets/index.d.ts +6 -0
- package/dist/types/widgets/wrap/MShrink.vue.d.ts +25 -0
- package/dist/types/widgets/wrap/MWrap.vue.d.ts +37 -0
- package/dist/types/widgets/wrap/index.d.ts +4 -0
- package/dist/types/widgets/wrap/types.d.ts +5 -0
- package/package.json +36 -18
- package/dist/types/core.d.ts +0 -2
- package/dist/types/hooks/core/use-channel/Channel.d.ts +0 -18
- package/dist/types/hooks/core/use-channel/ChannelHub.d.ts +0 -10
- package/dist/types/hooks/core/use-channel/config.d.ts +0 -18
- package/dist/types/hooks/core/use-channel/index.d.ts +0 -35
- package/dist/types/hooks/core/use-channel/types.d.ts +0 -10
- package/dist/types/hooks/core/use-request/index.d.ts +0 -16
- package/dist/types/hooks/core/use-socket/index.d.ts +0 -5
- package/dist/types/hooks/data/types.d.ts +0 -18
- package/dist/types/hooks/data/use-dao/TableModel.d.ts +0 -4
- package/dist/types/hooks/data/use-dao/TreeModel.d.ts +0 -4
- package/dist/types/hooks/data/use-dao/index.d.ts +0 -8
- package/dist/types/hooks/data/use-dao/types.d.ts +0 -29
- package/dist/types/hooks/data/use-meta/MetaField.d.ts +0 -73
- package/dist/types/hooks/data/use-meta/MetaFormat.d.ts +0 -39
- package/dist/types/hooks/data/use-meta/MetaRefer.d.ts +0 -27
- package/dist/types/hooks/data/use-meta/MetaView.d.ts +0 -58
- package/dist/types/hooks/data/use-meta/frame.d.ts +0 -9
- package/dist/types/hooks/data/use-meta/types.d.ts +0 -6
- package/dist/types/hooks/data/use-query/Query.d.ts +0 -11
- package/dist/types/hooks/data/use-query/index.d.ts +0 -9
- package/dist/types/hooks/data/use-query/tools.d.ts +0 -8
- package/dist/types/hooks/data/use-query/types/config.d.ts +0 -18
- package/dist/types/hooks/data/use-query/types/finder.d.ts +0 -18
- package/dist/types/hooks/data/use-query/types/search.d.ts +0 -23
- package/dist/types/hooks/utils/use-auth/index.d.ts +0 -13
- package/dist/types/hooks/utils/use-cookie/index.d.ts +0 -6
- package/dist/types/hooks/utils/use-icon/types.d.ts +0 -2
- package/dist/types/hooks/utils/use-paster/index.d.ts +0 -5
- package/dist/types/hooks/utils/use-xlsx/index.d.ts +0 -5
- package/dist/types/hooks/utils/use-xlsx/types.d.ts +0 -8
- /package/dist/types/{hooks/data/use-dao/config.d.ts → app/admin/contents/index.d.ts} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Component, Ref } from "vue";
|
|
2
|
+
import type { DataItem, IconNames, MetaView } from "@morghulis/lib";
|
|
3
|
+
export type MPlugin = {
|
|
4
|
+
buttons?: PluginButton[];
|
|
5
|
+
columns?: PluginColumn[];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Custom Column
|
|
9
|
+
*/
|
|
10
|
+
export type PluginColumn = {
|
|
11
|
+
codes?: string[];
|
|
12
|
+
align?: "left" | "center" | "right";
|
|
13
|
+
fixed?: "left" | "center" | "right";
|
|
14
|
+
label?: string;
|
|
15
|
+
component: Component;
|
|
16
|
+
width?: string | number;
|
|
17
|
+
payload?: any;
|
|
18
|
+
isLeaf?: boolean;
|
|
19
|
+
handler?: (payload: any, row: any) => void;
|
|
20
|
+
};
|
|
21
|
+
export type PluginColumnProps = {
|
|
22
|
+
row: any;
|
|
23
|
+
payload?: any;
|
|
24
|
+
view: MetaView;
|
|
25
|
+
select: (payload?: any) => void;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Custom Button
|
|
29
|
+
*/
|
|
30
|
+
export type PluginButton = {
|
|
31
|
+
codes?: string[];
|
|
32
|
+
hide?: boolean | PluginButtonBoolFn;
|
|
33
|
+
label?: string | PluginButtonLabelFn;
|
|
34
|
+
size?: PluginButtonSize | PluginButtonSizeFn;
|
|
35
|
+
type?: PluginButtonType | PluginButtonTypeFn;
|
|
36
|
+
disabled?: boolean | PluginButtonBoolFn;
|
|
37
|
+
icon?: IconNames | PluginButtonIconFn;
|
|
38
|
+
dialog?: Ref;
|
|
39
|
+
isLeaf?: boolean;
|
|
40
|
+
handler?: (row: any, event?: Event, btn?: PluginButton) => void;
|
|
41
|
+
};
|
|
42
|
+
export type PluginButtonImpl = {
|
|
43
|
+
hide?: boolean;
|
|
44
|
+
label?: string;
|
|
45
|
+
size?: PluginButtonSize;
|
|
46
|
+
type?: PluginButtonType;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
icon?: IconNames;
|
|
49
|
+
dialog?: Ref;
|
|
50
|
+
handler?: (row: any, event?: Event, btn?: PluginButton) => void;
|
|
51
|
+
};
|
|
52
|
+
export type PluginButtonSize = 'default' | 'small' | 'large' | "";
|
|
53
|
+
export type PluginButtonSizeFn = (row: DataItem) => PluginButtonSize;
|
|
54
|
+
export type PluginButtonType = "success" | "info" | "warning" | "danger" | 'primary' | "";
|
|
55
|
+
export type PluginButtonTypeFn = (row: DataItem) => PluginButtonType;
|
|
56
|
+
export type PluginButtonLabelFn = (row: DataItem) => string;
|
|
57
|
+
export type PluginButtonIconFn = (row: DataItem) => IconNames;
|
|
58
|
+
export type PluginButtonBoolFn = (row: DataItem) => boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { MTableProps, TableController } from "./types";
|
|
2
|
+
import { type DataItem, type DataItemId } from "@morghulis/lib";
|
|
3
|
+
declare var __VLS_6: {
|
|
4
|
+
width: number;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
header?: (props: typeof __VLS_6) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<MTableProps, {
|
|
10
|
+
controller: import("vue").ComputedRef<TableController>;
|
|
11
|
+
getSelection: () => DataItem[];
|
|
12
|
+
get: () => DataItemId[];
|
|
13
|
+
set: (keys: DataItemId[]) => Promise<void>;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
meta: (...args: any[]) => void;
|
|
16
|
+
field: (...args: any[]) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<MTableProps> & Readonly<{
|
|
18
|
+
onMeta?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onField?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DataItemId, type MetaView } from "@morghulis/lib";
|
|
2
|
+
import { type PluginButton } from "../../../plugin";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
view: MetaView;
|
|
5
|
+
buttons: PluginButton[];
|
|
6
|
+
setCollection: (ids: DataItemId[]) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DataItemId, type MetaView } from "@morghulis/lib";
|
|
2
|
+
import { type PluginColumn } from "../../../plugin";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
view: MetaView;
|
|
5
|
+
columns?: PluginColumn[];
|
|
6
|
+
setCollection: (ids: DataItemId[]) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MTableProps, TableCollector } from "../../types";
|
|
2
|
+
import type { DataItemId, MetaRowFrame } from "@morghulis/lib";
|
|
3
|
+
type __VLS_Props = MTableProps & {
|
|
4
|
+
collector: TableCollector;
|
|
5
|
+
collection: DataItemId[];
|
|
6
|
+
frame: MetaRowFrame;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
field: (...args: any[]) => void;
|
|
10
|
+
cell: (...args: any[]) => void;
|
|
11
|
+
lookup: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onField?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
onCell?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onLookup?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type DataItemId, type MetaRowFrame } from "@morghulis/lib";
|
|
2
|
+
import type { MTableProps, TableCollector } from "../../types";
|
|
3
|
+
type __VLS_Props = MTableProps & {
|
|
4
|
+
frame: MetaRowFrame;
|
|
5
|
+
collector: TableCollector;
|
|
6
|
+
collection: DataItemId[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
meta: (...args: any[]) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onMeta?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type DataItem, type DataItemId, type MetaField, type MetaRowFrame, type MetaView } from "@morghulis/lib";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
view: MetaView;
|
|
4
|
+
field: MetaField;
|
|
5
|
+
row: DataItem;
|
|
6
|
+
frame: MetaRowFrame;
|
|
7
|
+
collection: DataItemId[];
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
cell: (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onCell?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MetaField } from "@morghulis/lib";
|
|
2
|
+
import type { MTableProps } from "../../../types";
|
|
3
|
+
type __VLS_Props = MTableProps & {
|
|
4
|
+
field: MetaField;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
lookup: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onLookup?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DataItem, type MetaRowFrame, type MetaView } from "@morghulis/lib";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
index: number;
|
|
4
|
+
row: DataItem;
|
|
5
|
+
frame: MetaRowFrame;
|
|
6
|
+
view: MetaView;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type DataItem } from "@morghulis/lib";
|
|
2
|
+
import type { MTableProps, TableCollector } from "../../types";
|
|
3
|
+
type __VLS_Props = MTableProps & {
|
|
4
|
+
selection: DataItem[];
|
|
5
|
+
collector: TableCollector;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
controller: {
|
|
9
|
+
insert: (item?: DataItem) => void;
|
|
10
|
+
edit: () => void;
|
|
11
|
+
remove: () => void;
|
|
12
|
+
clone: () => void;
|
|
13
|
+
paste: () => void;
|
|
14
|
+
};
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
upload: (...args: any[]) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onUpload?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DataItem, MetaView } from "@morghulis/lib";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
admin?: boolean;
|
|
4
|
+
view: MetaView;
|
|
5
|
+
selection?: DataItem[];
|
|
6
|
+
simple?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
clone: (...args: any[]) => void;
|
|
10
|
+
download: (...args: any[]) => void;
|
|
11
|
+
edit: (...args: any[]) => void;
|
|
12
|
+
remove: (...args: any[]) => void;
|
|
13
|
+
upload: (...args: any[]) => void;
|
|
14
|
+
insert: (...args: any[]) => void;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onClone?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
onDownload?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onUpload?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onInsert?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DataItem, type MetaField } from "@morghulis/lib";
|
|
2
|
+
import type { MTableProps, TableCollector } from "../../types";
|
|
3
|
+
type __VLS_Props = MTableProps & {
|
|
4
|
+
collector: TableCollector;
|
|
5
|
+
};
|
|
6
|
+
declare function open(field: MetaField, row: DataItem): void;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
open: typeof open;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type DataItem, type MetaField } from "@morghulis/lib";
|
|
2
|
+
import type { MTableProps } from "../../types";
|
|
3
|
+
declare function open(event: PointerEvent, row: DataItem, field: MetaField): void;
|
|
4
|
+
declare function close(): void;
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<MTableProps, {
|
|
6
|
+
open: typeof open;
|
|
7
|
+
close: typeof close;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
special: (...args: any[]) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<MTableProps> & Readonly<{
|
|
11
|
+
onSpecial?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MTableProps, TableController } from "../../types";
|
|
2
|
+
import type { DataItem } from "@morghulis/lib";
|
|
3
|
+
type __VLS_Props = MTableProps & {
|
|
4
|
+
controller?: TableController;
|
|
5
|
+
selection: DataItem[];
|
|
6
|
+
};
|
|
7
|
+
declare function open(event: PointerEvent): void;
|
|
8
|
+
declare function close(): void;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
10
|
+
close: typeof close;
|
|
11
|
+
open: typeof open;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MTableProps } from "../../types";
|
|
2
|
+
import type { MetaField } from "@morghulis/lib";
|
|
3
|
+
declare function open(event: PointerEvent, field: MetaField): void;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<MTableProps, {
|
|
5
|
+
open: typeof open;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MTableProps } from "../../types";
|
|
2
|
+
import type { MetaValidator } from "@morghulis/lib";
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<MTableProps, {
|
|
4
|
+
open: (validator?: MetaValidator) => void | undefined;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
confirm: (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<MTableProps> & Readonly<{
|
|
8
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CellPopover from "./CellPopover.vue";
|
|
2
|
+
import IndexPopover from "./IndexPopover.vue";
|
|
3
|
+
import CellDialog from "./CellDialog.vue";
|
|
4
|
+
import LookupPopover from "./LookupPopover.vue";
|
|
5
|
+
import UploadDialog from "./UploadDialog.vue";
|
|
6
|
+
export { CellPopover, IndexPopover, CellDialog, LookupPopover, UploadDialog };
|
|
7
|
+
export type CellPopoverInstance = InstanceType<typeof CellPopover> | undefined;
|
|
8
|
+
export type IndexPopoverInstance = InstanceType<typeof IndexPopover> | undefined;
|
|
9
|
+
export type CellDialogInstance = InstanceType<typeof CellDialog> | undefined;
|
|
10
|
+
export type LookupPopoverInstance = InstanceType<typeof LookupPopover> | undefined;
|
|
11
|
+
export type UploadDialogInstance = InstanceType<typeof UploadDialog> | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type IFinder, type LookupType, MetaField } from "@morghulis/lib";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
field: MetaField;
|
|
4
|
+
finder: IFinder;
|
|
5
|
+
};
|
|
6
|
+
declare function getData(): {
|
|
7
|
+
type: import("@morghulis/lib/dist/types/data/query/types").ConditionType;
|
|
8
|
+
prop: string;
|
|
9
|
+
lookup: LookupType;
|
|
10
|
+
value: any;
|
|
11
|
+
affix: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
getData: typeof getData;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
confirm: (...args: any[]) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size: number;
|
|
3
|
+
page: number;
|
|
4
|
+
total: number;
|
|
5
|
+
width: number;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:page": (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:page"?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DataItemId } from "@morghulis/lib";
|
|
2
|
+
import type { MTableProps, TableCollector } from "../../types";
|
|
3
|
+
type __VLS_Props = MTableProps & {
|
|
4
|
+
collection: DataItemId[];
|
|
5
|
+
collector: TableCollector;
|
|
6
|
+
width: number;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size: number;
|
|
3
|
+
total: number;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:size": (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:size"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { MTableProps, TableCollector } from "../types";
|
|
3
|
+
import type { TableInstance } from "element-plus";
|
|
4
|
+
import { type DataItemId } from "@morghulis/lib";
|
|
5
|
+
export declare function useTableSelection(props: MTableProps, table: Ref<TableInstance | undefined>): {
|
|
6
|
+
selection: import("vue").ComputedRef<import("@morghulis/lib").DataItem[]>;
|
|
7
|
+
collector: TableCollector;
|
|
8
|
+
collection: Ref<DataItemId[], DataItemId[]>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { MTableProps } from "../types";
|
|
3
|
+
import type { TableInstance } from "element-plus";
|
|
4
|
+
import { type DataItem } from "@morghulis/lib";
|
|
5
|
+
export declare function useTableSortable(props: MTableProps, table: Ref<TableInstance | undefined>): {
|
|
6
|
+
createSortable: (items: DataItem[], enable: boolean) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { MTableProps } from "../types";
|
|
3
|
+
import type { TableInstance } from "element-plus";
|
|
4
|
+
export declare function useTableStyle(props: MTableProps, table: Ref<TableInstance | undefined>): {
|
|
5
|
+
tooltipOptions: {
|
|
6
|
+
placement: string;
|
|
7
|
+
popperClass: string;
|
|
8
|
+
enterable: boolean;
|
|
9
|
+
effect: string;
|
|
10
|
+
hideAfter: number;
|
|
11
|
+
offset: number;
|
|
12
|
+
popperOptions: {
|
|
13
|
+
width: string;
|
|
14
|
+
popperClass: string;
|
|
15
|
+
};
|
|
16
|
+
showAfter: number;
|
|
17
|
+
showArrow: boolean;
|
|
18
|
+
};
|
|
19
|
+
tooltipFormatter: (data: any) => null;
|
|
20
|
+
tableCellClassName: (data: any) => string;
|
|
21
|
+
tableRowClassName: (payload: any) => string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type DataItem, type DataItemId, type IFinder, Lookup, type Orders, Search, type TableMapping } from "@morghulis/lib";
|
|
2
|
+
import type { MPlugin } from "../plugin";
|
|
3
|
+
import type { MDataProps, Rest } from "../types";
|
|
4
|
+
export type MTableProps = {
|
|
5
|
+
results: DataItem[];
|
|
6
|
+
mapping: TableMapping;
|
|
7
|
+
total: number;
|
|
8
|
+
rest: TableRest;
|
|
9
|
+
search: Search;
|
|
10
|
+
finder: IFinder;
|
|
11
|
+
} & MDataProps & MPlugin;
|
|
12
|
+
export type TableRest = {
|
|
13
|
+
delete_one: (key: DataItemId) => void;
|
|
14
|
+
save_one: (item: DataItem) => Promise<DataItem>;
|
|
15
|
+
insert_one: (item: DataItem) => Promise<DataItem>;
|
|
16
|
+
order: (orders?: Orders) => void;
|
|
17
|
+
lookup: (prop: string, lookup?: Lookup) => void;
|
|
18
|
+
values: (props: string[], keys: DataItemId[]) => Promise<DataItem[]>;
|
|
19
|
+
find: (keys: DataItemId[]) => Promise<DataItem[]>;
|
|
20
|
+
download: () => void;
|
|
21
|
+
} & Rest;
|
|
22
|
+
export type TableCollector = {
|
|
23
|
+
set: (keys: DataItemId[]) => void;
|
|
24
|
+
add: (...keys: DataItemId[]) => void;
|
|
25
|
+
del: (...keys: DataItemId[]) => void;
|
|
26
|
+
toggle: (id: DataItemId) => void;
|
|
27
|
+
toggleAll: (checkIn?: boolean) => void;
|
|
28
|
+
clear: () => void;
|
|
29
|
+
};
|
|
30
|
+
export type TableController = {
|
|
31
|
+
insert: (item?: DataItem) => void;
|
|
32
|
+
edit: () => void;
|
|
33
|
+
remove: () => void;
|
|
34
|
+
clone: () => void;
|
|
35
|
+
paste: () => void;
|
|
36
|
+
} | undefined;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { MTreeProps } from "./types";
|
|
2
|
+
import { type DataItemId, type TreeItem } from "@morghulis/lib";
|
|
3
|
+
declare var __VLS_19: {
|
|
4
|
+
width: number;
|
|
5
|
+
}, __VLS_59: {
|
|
6
|
+
isLeaf: any;
|
|
7
|
+
node: any;
|
|
8
|
+
data: any;
|
|
9
|
+
}, __VLS_61: {
|
|
10
|
+
node: any;
|
|
11
|
+
data: any;
|
|
12
|
+
}, __VLS_63: {
|
|
13
|
+
node: any;
|
|
14
|
+
data: any;
|
|
15
|
+
}, __VLS_70: {
|
|
16
|
+
isLeaf: any;
|
|
17
|
+
node: any;
|
|
18
|
+
data: any;
|
|
19
|
+
}, __VLS_72: {
|
|
20
|
+
node: any;
|
|
21
|
+
data: any;
|
|
22
|
+
}, __VLS_74: {
|
|
23
|
+
node: any;
|
|
24
|
+
data: any;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Slots = {} & {
|
|
27
|
+
header?: (props: typeof __VLS_19) => any;
|
|
28
|
+
} & {
|
|
29
|
+
prefix?: (props: typeof __VLS_59) => any;
|
|
30
|
+
} & {
|
|
31
|
+
'prefix-leaf'?: (props: typeof __VLS_61) => any;
|
|
32
|
+
} & {
|
|
33
|
+
'prefix-branch'?: (props: typeof __VLS_63) => any;
|
|
34
|
+
} & {
|
|
35
|
+
suffix?: (props: typeof __VLS_70) => any;
|
|
36
|
+
} & {
|
|
37
|
+
'suffix-leaf'?: (props: typeof __VLS_72) => any;
|
|
38
|
+
} & {
|
|
39
|
+
'suffix-branch'?: (props: typeof __VLS_74) => any;
|
|
40
|
+
};
|
|
41
|
+
declare const __VLS_base: import("vue").DefineComponent<MTreeProps, {
|
|
42
|
+
selection: import("vue").ComputedRef<TreeItem[]>;
|
|
43
|
+
get: () => DataItemId[];
|
|
44
|
+
set: (keys: DataItemId[]) => Promise<void>;
|
|
45
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
table: (...args: any[]) => void;
|
|
47
|
+
meta: (...args: any[]) => void;
|
|
48
|
+
}, string, import("vue").PublicProps, Readonly<MTreeProps> & Readonly<{
|
|
49
|
+
onTable?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onMeta?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
|
+
declare const _default: typeof __VLS_export;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TreeItem } from "@morghulis/lib";
|
|
2
|
+
import type { MTreeProps, TreeCollector } from "../../types";
|
|
3
|
+
type __VLS_Props = MTreeProps & {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
selection: TreeItem[];
|
|
6
|
+
collector: TreeCollector;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
table: (...args: any[]) => void;
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
batch: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onTable?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onBatch?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MTreeProps } from "../../types";
|
|
2
|
+
import type { MetaField, TreeItem } from "@morghulis/lib";
|
|
3
|
+
type __VLS_Props = MTreeProps & {
|
|
4
|
+
field: MetaField;
|
|
5
|
+
};
|
|
6
|
+
declare function open(node?: TreeItem): void;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
open: typeof open;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MTreeProps } from "../../types";
|
|
2
|
+
import type { MetaField, TreeItem } from "@morghulis/lib";
|
|
3
|
+
type __VLS_Props = MTreeProps & {
|
|
4
|
+
field: MetaField;
|
|
5
|
+
};
|
|
6
|
+
declare function open(event: PointerEvent, node: TreeItem): void;
|
|
7
|
+
declare function close(): void;
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
9
|
+
open: typeof open;
|
|
10
|
+
close: typeof close;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
table: (...args: any[]) => void;
|
|
13
|
+
batch: (...args: any[]) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onTable?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onBatch?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TreeItem } from "@morghulis/lib";
|
|
2
|
+
declare function open(node: TreeItem): void;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
open: typeof open;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import BatchDialog from "./BatchDialog.vue";
|
|
2
|
+
import NodePopover from "./NodePopover.vue";
|
|
3
|
+
export { BatchDialog, NodePopover };
|
|
4
|
+
export type BatchDialogInstance = InstanceType<typeof BatchDialog> | undefined;
|
|
5
|
+
export type NodePopoverInstance = InstanceType<typeof NodePopover> | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DataItemId, MetaView, TreeItem } from "@morghulis/lib";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
root: DataItemId;
|
|
4
|
+
view: MetaView;
|
|
5
|
+
node?: TreeItem;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
getData: () => {
|
|
9
|
+
name: string;
|
|
10
|
+
pid: DataItemId;
|
|
11
|
+
isLeaf: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|