@voplus/morpho-document 1.0.0-dev300 → 1.0.0-dev302
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/changelog.md +1 -1
- package/es/Modules.js +1 -1
- package/es/Modules.js.map +1 -1
- package/es/components/ActivityLog/ActivityLog2/index.js.map +1 -1
- package/es/components/ActivityLog/index.js.map +1 -1
- package/es/components/ActivityLog/state.d.ts +1 -1
- package/es/components/ActivityLog/state.js.map +1 -1
- package/es/components/AvatarList/AvatarItem/index.js +2 -2
- package/es/components/AvatarList/AvatarItem/index.js.map +1 -1
- package/es/components/AvatarList/index.js +2 -2
- package/es/components/AvatarList/index.js.map +1 -1
- package/es/components/DocumentHeader/index.js +1 -1
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +13 -2
- package/es/components/QuickAccessSearch/ObjectItem/index.js +1 -1
- package/es/controls/DescriptionEditor/index.d.ts +6 -1
- package/es/controls/DescriptionEditor/index.js +24 -6
- package/es/controls/DescriptionEditor/index.js.map +1 -1
- package/es/controls/DescriptionEditor/index.less +20 -1
- package/es/controls/DescriptionEditor/state.d.ts +6 -0
- package/es/controls/DescriptionEditor/state.js +10 -0
- package/es/controls/DescriptionEditor/state.js.map +1 -1
- package/es/controls/ToolBar/buttons/Versions.js +7 -4
- package/es/controls/ToolBar/buttons/Versions.js.map +1 -1
- package/es/controls/ToolBar/index.js +1 -1
- package/es/controls/ToolBar/index.js.map +1 -1
- package/es/controls/ToolBar/menus/Access.js +1 -1
- package/es/controls/ToolBar/menus/Access.js.map +1 -1
- package/es/pages/Page/PageDefaultView/index.js +3 -4
- package/es/pages/Page/PageDefaultView/index.js.map +1 -1
- package/es/pages/Page/PageItem/index.js +3 -1
- package/es/pages/Page/PageItem/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js +15 -9
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.d.ts +2 -7
- package/es/pages/Signature/Letter/LetterContentView/index.js +35 -26
- package/es/pages/Signature/Letter/LetterContentView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/state.d.ts +19 -0
- package/es/pages/Signature/Letter/LetterContentView/state.js +27 -0
- package/es/pages/Signature/Letter/LetterContentView/state.js.map +1 -0
- package/es/pages/Signature/Letter/LetterItem/index.js +24 -10
- package/es/pages/Signature/Letter/LetterItem/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterItem/index.less +7 -10
- package/es/pages/Signature/Letter/LetterList/index.js +1 -2
- package/es/pages/Signature/Letter/LetterList/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterViewer/index.less +0 -3
- package/es/pages/Signature/SignatureDialog/index.d.ts +2 -0
- package/es/pages/Signature/SignatureDialog/index.js +17 -12
- package/es/pages/Signature/SignatureDialog/index.js.map +1 -1
- package/es/pages/Signature/SignatureDialog/index.less +15 -1
- package/es/pages/Signature/SignatureRecipient/index.js +5 -12
- package/es/pages/Signature/SignatureRecipient/index.js.map +1 -1
- package/es/pages/Signature/SignatureRecipient/index.less +8 -2
- package/es/pages/Signature/SignatureTable/index.less +1 -1
- package/es/pages/Signature/SignerSelect/index.js +24 -12
- package/es/pages/Signature/SignerSelect/index.js.map +1 -1
- package/es/pages/Signature/SignerSelect/state.d.ts +2 -2
- package/es/pages/Signature/SignerSelect/state.js.map +1 -1
- package/es/pages/Signature/data/envelope/EnvelopeStore.d.ts +1 -1
- package/es/pages/VSubmit/components/EmailRecipients/index.d.ts +1 -1
- package/es/pages/VSubmit/components/EmailRecipients/index.js +1 -1
- package/es/pages/VSubmit/components/EmailRecipients/index.js.map +1 -1
- package/es/pages/VSubmit/components/EmailRecipients/state.d.ts +1 -1
- package/es/routes.js +3 -3
- package/es/routes.js.map +1 -1
- package/package.json +5 -5
- package/es/components/PeopleAccess/NewAccessSelector.d.ts +0 -19
- package/es/components/PeopleAccess/NewAccessSelector.js +0 -117
- package/es/components/PeopleAccess/NewAccessSelector.js.map +0 -1
- package/es/components/PeopleAccess/PeopleAccess.d.ts +0 -8
- package/es/components/PeopleAccess/PeopleAccess.js +0 -95
- package/es/components/PeopleAccess/PeopleAccess.js.map +0 -1
- package/es/components/PeopleAccess/PeopleAccessState.d.ts +0 -25
- package/es/components/PeopleAccess/PeopleAccessState.js +0 -145
- package/es/components/PeopleAccess/PeopleAccessState.js.map +0 -1
- package/es/components/PeopleAccess/RoleSelector.d.ts +0 -13
- package/es/components/PeopleAccess/RoleSelector.js +0 -50
- package/es/components/PeopleAccess/RoleSelector.js.map +0 -1
- package/es/components/PeopleAccess/constants.d.ts +0 -14
- package/es/components/PeopleAccess/constants.js +0 -15
- package/es/components/PeopleAccess/constants.js.map +0 -1
- package/es/components/PeopleAccess/index.d.ts +0 -1
- package/es/components/PeopleAccess/index.js +0 -2
- package/es/components/PeopleAccess/index.js.map +0 -1
- package/es/components/PeopleAccess/index.less +0 -65
- package/es/controls/PermissionModal/index.d.ts +0 -6
- package/es/controls/PermissionModal/index.js +0 -10
- package/es/controls/PermissionModal/index.js.map +0 -1
- package/es/controls/PermissionModal/index.less +0 -7
- package/es/modules/unit/UnitUIService.d.ts +0 -6
- package/es/modules/unit/UnitUIService.js +0 -13
- package/es/modules/unit/UnitUIService.js.map +0 -1
- package/es/modules/unit/components/ActivityLog/index.d.ts +0 -6
- package/es/modules/unit/components/ActivityLog/index.js +0 -62
- package/es/modules/unit/components/ActivityLog/index.js.map +0 -1
- package/es/modules/unit/components/ActivityLog/index.less +0 -64
- package/es/modules/unit/components/ActivityLog/state.d.ts +0 -14
- package/es/modules/unit/components/ActivityLog/state.js +0 -51
- package/es/modules/unit/components/ActivityLog/state.js.map +0 -1
- package/es/modules/unit/components/AddUnitDropdown/index.d.ts +0 -10
- package/es/modules/unit/components/AddUnitDropdown/index.js +0 -41
- package/es/modules/unit/components/AddUnitDropdown/index.js.map +0 -1
- package/es/modules/unit/components/AddUnitDropdown/index.less +0 -58
- package/es/modules/unit/components/AddUnitDropdown/state.d.ts +0 -28
- package/es/modules/unit/components/AddUnitDropdown/state.js +0 -86
- package/es/modules/unit/components/AddUnitDropdown/state.js.map +0 -1
- package/es/modules/unit/components/BreadCrumbsHeader/index.d.ts +0 -6
- package/es/modules/unit/components/BreadCrumbsHeader/index.js +0 -27
- package/es/modules/unit/components/BreadCrumbsHeader/index.js.map +0 -1
- package/es/modules/unit/components/BreadCrumbsHeader/index.less +0 -10
- package/es/modules/unit/components/BreadCrumbsHeader/state.d.ts +0 -5
- package/es/modules/unit/components/BreadCrumbsHeader/state.js +0 -19
- package/es/modules/unit/components/BreadCrumbsHeader/state.js.map +0 -1
- package/es/modules/unit/components/ChangeUserPassword/index.d.ts +0 -6
- package/es/modules/unit/components/ChangeUserPassword/index.js +0 -37
- package/es/modules/unit/components/ChangeUserPassword/index.js.map +0 -1
- package/es/modules/unit/components/ChangeUserPassword/index.less +0 -13
- package/es/modules/unit/components/ContactUserInfoView/index.d.ts +0 -6
- package/es/modules/unit/components/ContactUserInfoView/index.js +0 -43
- package/es/modules/unit/components/ContactUserInfoView/index.js.map +0 -1
- package/es/modules/unit/components/ContactUserInfoView/index.less +0 -30
- package/es/modules/unit/components/ContactUserInfoView/state.d.ts +0 -5
- package/es/modules/unit/components/ContactUserInfoView/state.js +0 -14
- package/es/modules/unit/components/ContactUserInfoView/state.js.map +0 -1
- package/es/modules/unit/components/Members/index.d.ts +0 -4
- package/es/modules/unit/components/Members/index.js +0 -67
- package/es/modules/unit/components/Members/index.js.map +0 -1
- package/es/modules/unit/components/Members/index.less +0 -19
- package/es/modules/unit/components/Members/state.d.ts +0 -16
- package/es/modules/unit/components/Members/state.js +0 -25
- package/es/modules/unit/components/Members/state.js.map +0 -1
- package/es/modules/unit/components/NewUnitForm/index.d.ts +0 -12
- package/es/modules/unit/components/NewUnitForm/index.js +0 -51
- package/es/modules/unit/components/NewUnitForm/index.js.map +0 -1
- package/es/modules/unit/components/NewUnitForm/index.less +0 -33
- package/es/modules/unit/components/NewUnitForm/state.d.ts +0 -22
- package/es/modules/unit/components/NewUnitForm/state.js +0 -49
- package/es/modules/unit/components/NewUnitForm/state.js.map +0 -1
- package/es/modules/unit/components/SubUnitList/index.d.ts +0 -9
- package/es/modules/unit/components/SubUnitList/index.js +0 -68
- package/es/modules/unit/components/SubUnitList/index.js.map +0 -1
- package/es/modules/unit/components/SubUnitList/index.less +0 -28
- package/es/modules/unit/components/SubUnitList/state.d.ts +0 -33
- package/es/modules/unit/components/SubUnitList/state.js +0 -67
- package/es/modules/unit/components/SubUnitList/state.js.map +0 -1
- package/es/modules/unit/components/UnitAvatar/index.d.ts +0 -16
- package/es/modules/unit/components/UnitAvatar/index.js +0 -30
- package/es/modules/unit/components/UnitAvatar/index.js.map +0 -1
- package/es/modules/unit/components/UnitAvatar/index.less +0 -7
- package/es/modules/unit/components/UnitDetails/index.d.ts +0 -5
- package/es/modules/unit/components/UnitDetails/index.js +0 -123
- package/es/modules/unit/components/UnitDetails/index.js.map +0 -1
- package/es/modules/unit/components/UnitDetails/index.less +0 -63
- package/es/modules/unit/components/UnitDetails/state.d.ts +0 -8
- package/es/modules/unit/components/UnitDetails/state.js +0 -24
- package/es/modules/unit/components/UnitDetails/state.js.map +0 -1
- package/es/modules/unit/components/UnitHead/index.d.ts +0 -7
- package/es/modules/unit/components/UnitHead/index.js +0 -38
- package/es/modules/unit/components/UnitHead/index.js.map +0 -1
- package/es/modules/unit/components/UnitHead/index.less +0 -26
- package/es/modules/unit/components/UnitHead/state.d.ts +0 -11
- package/es/modules/unit/components/UnitHead/state.js +0 -8
- package/es/modules/unit/components/UnitHead/state.js.map +0 -1
- package/es/modules/unit/components/UnitItem/Item.d.ts +0 -18
- package/es/modules/unit/components/UnitItem/Item.js +0 -34
- package/es/modules/unit/components/UnitItem/Item.js.map +0 -1
- package/es/modules/unit/components/UnitItem/index.d.ts +0 -9
- package/es/modules/unit/components/UnitItem/index.js +0 -46
- package/es/modules/unit/components/UnitItem/index.js.map +0 -1
- package/es/modules/unit/components/UnitItem/index.less +0 -46
- package/es/modules/unit/components/UnitItem/state.d.ts +0 -25
- package/es/modules/unit/components/UnitItem/state.js +0 -20
- package/es/modules/unit/components/UnitItem/state.js.map +0 -1
- package/es/modules/unit/components/UnitList/index.d.ts +0 -4
- package/es/modules/unit/components/UnitList/index.js +0 -37
- package/es/modules/unit/components/UnitList/index.js.map +0 -1
- package/es/modules/unit/components/UnitList/index.less +0 -0
- package/es/modules/unit/components/UnitList/state.d.ts +0 -15
- package/es/modules/unit/components/UnitList/state.js +0 -31
- package/es/modules/unit/components/UnitList/state.js.map +0 -1
- package/es/modules/unit/components/UnitName/index.d.ts +0 -5
- package/es/modules/unit/components/UnitName/index.js +0 -20
- package/es/modules/unit/components/UnitName/index.js.map +0 -1
- package/es/modules/unit/components/UnitPropertiesView/index.d.ts +0 -6
- package/es/modules/unit/components/UnitPropertiesView/index.js +0 -22
- package/es/modules/unit/components/UnitPropertiesView/index.js.map +0 -1
- package/es/modules/unit/components/UnitPropertiesView/index.less +0 -0
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.d.ts +0 -15
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.js +0 -50
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.js.map +0 -1
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.less +0 -22
- package/es/modules/unit/components/UnitQuickView/index.d.ts +0 -9
- package/es/modules/unit/components/UnitQuickView/index.js +0 -30
- package/es/modules/unit/components/UnitQuickView/index.js.map +0 -1
- package/es/modules/unit/components/UnitQuickView/index.less +0 -63
- package/es/modules/unit/components/UnitQuickView/state.d.ts +0 -8
- package/es/modules/unit/components/UnitQuickView/state.js +0 -26
- package/es/modules/unit/components/UnitQuickView/state.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/index.d.ts +0 -10
- package/es/modules/unit/components/UnitSortableTree/index.js +0 -70
- package/es/modules/unit/components/UnitSortableTree/index.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/state.d.ts +0 -55
- package/es/modules/unit/components/UnitSortableTree/state.js +0 -166
- package/es/modules/unit/components/UnitSortableTree/state.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/index.d.ts +0 -3
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/index.js +0 -22
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/index.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +0 -3
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js +0 -82
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.less +0 -316
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +0 -3
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +0 -21
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +0 -4
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/index.d.ts +0 -4
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/index.js +0 -23
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/index.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.d.ts +0 -3
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js +0 -58
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.less +0 -45
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.d.ts +0 -3
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js +0 -73
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js.map +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.less +0 -12
- package/es/modules/unit/components/UnitTabs/index.d.ts +0 -6
- package/es/modules/unit/components/UnitTabs/index.js +0 -35
- package/es/modules/unit/components/UnitTabs/index.js.map +0 -1
- package/es/modules/unit/components/UnitsSelectDialog/index.d.ts +0 -9
- package/es/modules/unit/components/UnitsSelectDialog/index.js +0 -35
- package/es/modules/unit/components/UnitsSelectDialog/index.js.map +0 -1
- package/es/modules/unit/components/UnitsSelectDialog/index.less +0 -36
- package/es/modules/unit/components/UnitsSelectDialog/state.d.ts +0 -22
- package/es/modules/unit/components/UnitsSelectDialog/state.js +0 -73
- package/es/modules/unit/components/UnitsSelectDialog/state.js.map +0 -1
- package/es/modules/unit/controls/ContactSelect/index.d.ts +0 -9
- package/es/modules/unit/controls/ContactSelect/index.js +0 -78
- package/es/modules/unit/controls/ContactSelect/index.js.map +0 -1
- package/es/modules/unit/controls/ContactSelect/state.d.ts +0 -23
- package/es/modules/unit/controls/ContactSelect/state.js +0 -43
- package/es/modules/unit/controls/ContactSelect/state.js.map +0 -1
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.d.ts +0 -6
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.js +0 -32
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.js.map +0 -1
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.less +0 -21
- package/es/modules/unit/controls/QuickDataIcon/index.d.ts +0 -21
- package/es/modules/unit/controls/QuickDataIcon/index.js +0 -36
- package/es/modules/unit/controls/QuickDataIcon/index.js.map +0 -1
- package/es/modules/unit/controls/QuickDataIcon/index.less +0 -12
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.d.ts +0 -13
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js +0 -66
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js.map +0 -1
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.less +0 -20
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.d.ts +0 -36
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js +0 -78
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js.map +0 -1
- package/es/modules/unit/controls/ToolBar/index.d.ts +0 -12
- package/es/modules/unit/controls/ToolBar/index.js +0 -56
- package/es/modules/unit/controls/ToolBar/index.js.map +0 -1
- package/es/modules/unit/controls/ToolBar/index.less +0 -18
- package/es/modules/unit/controls/ToolBar/state.d.ts +0 -42
- package/es/modules/unit/controls/ToolBar/state.js +0 -62
- package/es/modules/unit/controls/ToolBar/state.js.map +0 -1
- package/es/modules/unit/controls/UnitTypeFilter/index.d.ts +0 -3
- package/es/modules/unit/controls/UnitTypeFilter/index.js +0 -21
- package/es/modules/unit/controls/UnitTypeFilter/index.js.map +0 -1
- package/es/modules/unit/controls/UnitTypeFilter/state.d.ts +0 -18
- package/es/modules/unit/controls/UnitTypeFilter/state.js +0 -63
- package/es/modules/unit/controls/UnitTypeFilter/state.js.map +0 -1
- package/es/modules/unit/data/StoreContext/index.d.ts +0 -3
- package/es/modules/unit/data/StoreContext/index.js +0 -4
- package/es/modules/unit/data/StoreContext/index.js.map +0 -1
- package/es/modules/unit/data/UnitContext/index.d.ts +0 -18
- package/es/modules/unit/data/UnitContext/index.js +0 -32
- package/es/modules/unit/data/UnitContext/index.js.map +0 -1
- package/es/modules/unit/data/UnitStore.d.ts +0 -124
- package/es/modules/unit/data/UnitStore.js +0 -226
- package/es/modules/unit/data/UnitStore.js.map +0 -1
- package/es/modules/unit/data/UnitType.d.ts +0 -1
- package/es/modules/unit/data/UnitType.js +0 -18
- package/es/modules/unit/data/UnitType.js.map +0 -1
- package/es/modules/unit/data/UserStore.d.ts +0 -33
- package/es/modules/unit/data/UserStore.js +0 -53
- package/es/modules/unit/data/UserStore.js.map +0 -1
- package/es/modules/unit/data/hooks/index.d.ts +0 -7
- package/es/modules/unit/data/hooks/index.js +0 -8
- package/es/modules/unit/data/hooks/index.js.map +0 -1
- package/es/modules/unit/data/hooks/member-events/index.d.ts +0 -3
- package/es/modules/unit/data/hooks/member-events/index.js +0 -4
- package/es/modules/unit/data/hooks/member-events/index.js.map +0 -1
- package/es/modules/unit/data/hooks/member-events/useAutoUpdateMemberListData.d.ts +0 -4
- package/es/modules/unit/data/hooks/member-events/useAutoUpdateMemberListData.js +0 -13
- package/es/modules/unit/data/hooks/member-events/useAutoUpdateMemberListData.js.map +0 -1
- package/es/modules/unit/data/hooks/member-events/useOnDeleteMember.d.ts +0 -4
- package/es/modules/unit/data/hooks/member-events/useOnDeleteMember.js +0 -17
- package/es/modules/unit/data/hooks/member-events/useOnDeleteMember.js.map +0 -1
- package/es/modules/unit/data/hooks/member-events/useOnNewMember.d.ts +0 -4
- package/es/modules/unit/data/hooks/member-events/useOnNewMember.js +0 -17
- package/es/modules/unit/data/hooks/member-events/useOnNewMember.js.map +0 -1
- package/es/modules/unit/data/hooks/unit-events/index.d.ts +0 -3
- package/es/modules/unit/data/hooks/unit-events/index.js +0 -4
- package/es/modules/unit/data/hooks/unit-events/index.js.map +0 -1
- package/es/modules/unit/data/hooks/unit-events/useAutoUpdateUnitListData.d.ts +0 -4
- package/es/modules/unit/data/hooks/unit-events/useAutoUpdateUnitListData.js +0 -13
- package/es/modules/unit/data/hooks/unit-events/useAutoUpdateUnitListData.js.map +0 -1
- package/es/modules/unit/data/hooks/unit-events/useOnDeleteUnit.d.ts +0 -4
- package/es/modules/unit/data/hooks/unit-events/useOnDeleteUnit.js +0 -17
- package/es/modules/unit/data/hooks/unit-events/useOnDeleteUnit.js.map +0 -1
- package/es/modules/unit/data/hooks/unit-events/useOnNewUnit.d.ts +0 -4
- package/es/modules/unit/data/hooks/unit-events/useOnNewUnit.js +0 -17
- package/es/modules/unit/data/hooks/unit-events/useOnNewUnit.js.map +0 -1
- package/es/modules/unit/data/hooks/useTeamListEffect.d.ts +0 -8
- package/es/modules/unit/data/hooks/useTeamListEffect.js +0 -27
- package/es/modules/unit/data/hooks/useTeamListEffect.js.map +0 -1
- package/es/modules/unit/data/hooks/useUnit.d.ts +0 -6
- package/es/modules/unit/data/hooks/useUnit.js +0 -12
- package/es/modules/unit/data/hooks/useUnit.js.map +0 -1
- package/es/modules/unit/data/hooks/useUnitActivityListEffect.d.ts +0 -8
- package/es/modules/unit/data/hooks/useUnitActivityListEffect.js +0 -16
- package/es/modules/unit/data/hooks/useUnitActivityListEffect.js.map +0 -1
- package/es/modules/unit/data/hooks/useUnitListEffect.d.ts +0 -8
- package/es/modules/unit/data/hooks/useUnitListEffect.js +0 -28
- package/es/modules/unit/data/hooks/useUnitListEffect.js.map +0 -1
- package/es/modules/unit/data/hooks/useUserInfo.d.ts +0 -6
- package/es/modules/unit/data/hooks/useUserInfo.js +0 -12
- package/es/modules/unit/data/hooks/useUserInfo.js.map +0 -1
- package/es/modules/unit/data/index.d.ts +0 -4
- package/es/modules/unit/data/index.js +0 -5
- package/es/modules/unit/data/index.js.map +0 -1
- package/es/modules/unit/data/interfaces/IAddress.d.ts +0 -14
- package/es/modules/unit/data/interfaces/IAddress.js +0 -1
- package/es/modules/unit/data/interfaces/IAddress.js.map +0 -1
- package/es/modules/unit/data/interfaces/IEntityName.d.ts +0 -6
- package/es/modules/unit/data/interfaces/IEntityName.js +0 -1
- package/es/modules/unit/data/interfaces/IEntityName.js.map +0 -1
- package/es/modules/unit/data/interfaces/IUnit.d.ts +0 -51
- package/es/modules/unit/data/interfaces/IUnit.js +0 -1
- package/es/modules/unit/data/interfaces/IUnit.js.map +0 -1
- package/es/modules/unit/data/interfaces/IUserInfo.d.ts +0 -12
- package/es/modules/unit/data/interfaces/IUserInfo.js +0 -1
- package/es/modules/unit/data/interfaces/IUserInfo.js.map +0 -1
- package/es/modules/unit/data/interfaces/index.d.ts +0 -4
- package/es/modules/unit/data/interfaces/index.js +0 -5
- package/es/modules/unit/data/interfaces/index.js.map +0 -1
- package/es/modules/unit/pages/UnitDefaultView/index.d.ts +0 -3
- package/es/modules/unit/pages/UnitDefaultView/index.js +0 -47
- package/es/modules/unit/pages/UnitDefaultView/index.js.map +0 -1
- package/es/modules/unit/pages/UnitDefaultView/index.less +0 -17
- package/es/modules/unit/pages/UnitListView/index.d.ts +0 -3
- package/es/modules/unit/pages/UnitListView/index.js +0 -10
- package/es/modules/unit/pages/UnitListView/index.js.map +0 -1
- package/es/modules/unit/pages/UnitTreeView/index.d.ts +0 -3
- package/es/modules/unit/pages/UnitTreeView/index.js +0 -47
- package/es/modules/unit/pages/UnitTreeView/index.js.map +0 -1
- package/es/modules/unit/pages/UnitTreeView/index.less +0 -31
- package/es/modules/unit/pages/UnitTreeView/state.d.ts +0 -5
- package/es/modules/unit/pages/UnitTreeView/state.js +0 -14
- package/es/modules/unit/pages/UnitTreeView/state.js.map +0 -1
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
.unit-details {
|
|
2
|
-
height: 100%;
|
|
3
|
-
:global {
|
|
4
|
-
.form-item-layout {
|
|
5
|
-
display: flex;
|
|
6
|
-
font-size: 14px;
|
|
7
|
-
line-height: 32px;
|
|
8
|
-
.detailed {
|
|
9
|
-
font-size: 20px;
|
|
10
|
-
margin-left: 10px;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
}
|
|
13
|
-
.form-label {
|
|
14
|
-
font-size: 15px;
|
|
15
|
-
color: #000000;
|
|
16
|
-
min-width: 80px;
|
|
17
|
-
cursor: default;
|
|
18
|
-
}
|
|
19
|
-
> div{
|
|
20
|
-
flex: 1;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.form-item-button{
|
|
24
|
-
text-align: right;
|
|
25
|
-
}
|
|
26
|
-
.ant-form {
|
|
27
|
-
margin: 20px;
|
|
28
|
-
}
|
|
29
|
-
.ant-form-item {
|
|
30
|
-
margin-bottom: 15px;
|
|
31
|
-
}
|
|
32
|
-
.ant-form-item-label {
|
|
33
|
-
text-align: left;
|
|
34
|
-
}
|
|
35
|
-
.ant-form-item-label > label {
|
|
36
|
-
font-size: 15px;
|
|
37
|
-
color: #000000;
|
|
38
|
-
}
|
|
39
|
-
.link {
|
|
40
|
-
color: #4395ff;
|
|
41
|
-
}
|
|
42
|
-
.unit-details-title {
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
padding: 15px 0;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: space-between;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
.unit-editable {
|
|
50
|
-
.ant-btn {
|
|
51
|
-
font-size: 16px;
|
|
52
|
-
padding: 0 5px;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.but-submit {
|
|
57
|
-
margin: 0 20px;
|
|
58
|
-
}
|
|
59
|
-
.file-name {
|
|
60
|
-
min-height: 24.55px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.birthdayEdit = false;
|
|
6
|
-
this.addressEdit = false;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
__decorate([
|
|
10
|
-
observable
|
|
11
|
-
], State.prototype, "id", void 0);
|
|
12
|
-
__decorate([
|
|
13
|
-
observable
|
|
14
|
-
], State.prototype, "contact", void 0);
|
|
15
|
-
__decorate([
|
|
16
|
-
observable
|
|
17
|
-
], State.prototype, "birthday", void 0);
|
|
18
|
-
__decorate([
|
|
19
|
-
observable
|
|
20
|
-
], State.prototype, "birthdayEdit", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
observable
|
|
23
|
-
], State.prototype, "addressEdit", void 0);
|
|
24
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitDetails/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAoB,UAAU,EAAE,MAAM,MAAM,CAAC;AAIpD,MAAM,OAAO,KAAK;IAAlB;QAIoB,iBAAY,GAAG,KAAK,CAAC;QACrB,gBAAW,GAAG,KAAK,CAAC;IACxC,CAAC;CAAA;AALY;IAAX,UAAU;iCAAmB;AAClB;IAAX,UAAU;sCAAuB;AACtB;IAAX,UAAU;uCAAsB;AACrB;IAAX,UAAU;2CAA6B;AAC5B;IAAX,UAAU;0CAA4B"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { useUnit, useUnitStore } from "../../data";
|
|
3
|
-
import { InlineEdit } from "@voplus/morpho-ui";
|
|
4
|
-
import { Skeleton } from "@voplus/antd";
|
|
5
|
-
import { State } from "./state";
|
|
6
|
-
import ToolBar from "../../controls/ToolBar";
|
|
7
|
-
import UnitAvatar from "../UnitAvatar";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import styles from "./index.less";
|
|
10
|
-
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
11
|
-
import { useObserver } from "mobx-react-lite";
|
|
12
|
-
const UnitHead = (props) => {
|
|
13
|
-
const { id, onExpand, onReload } = props;
|
|
14
|
-
const [state] = useState(new State());
|
|
15
|
-
const store = useUnitStore();
|
|
16
|
-
const asideContext = useAsideContentContext();
|
|
17
|
-
state.contact = useUnit(id, { reload: true });
|
|
18
|
-
return useObserver(() => (React.createElement("div", { className: styles["unit-head"] }, state.contact.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
|
|
19
|
-
React.createElement("div", { className: "tool-bar-content" },
|
|
20
|
-
React.createElement(ToolBar, { id: id, reload: true, url: onExpand ? "" : `/units/${id}`, expand: !!onExpand, onDelete: onItemDelete, onReLoad: onReload, onExpand: onExpand })),
|
|
21
|
-
React.createElement(UnitAvatar, { id: id, size: 70 }),
|
|
22
|
-
React.createElement("div", { className: "unit-name" },
|
|
23
|
-
React.createElement(InlineEdit, { defaultValue: state.contact.name, content: v => React.createElement("div", { className: classnames("inline-edit") }, v.store.value), onSave: value => save(value, state.contact.name, { Name: value }) })),
|
|
24
|
-
React.createElement("div", null, state.contact.type))))));
|
|
25
|
-
/** edit save */
|
|
26
|
-
function save(v, name, params) {
|
|
27
|
-
if (v.trim() === name)
|
|
28
|
-
return;
|
|
29
|
-
store.edit(state.contact.id, params);
|
|
30
|
-
}
|
|
31
|
-
/**delete contact*/
|
|
32
|
-
async function onItemDelete() {
|
|
33
|
-
await store.delete(id);
|
|
34
|
-
asideContext.closeAside();
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export default UnitHead;
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,sBA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AAS,EAAE,UAAU,CAAC,aAAa,CAAC,IAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAO,EAC9E,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAChE,CACG;QACN,iCAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAO,CACf,CACjB,CACI,CACN,CAAC,CAAC;IAEH,gBAAgB;IAChB,SAAS,IAAI,CAAC,CAAS,EAAE,IAAY,EAAE,MAA+B;QACrE,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,IAAI;YAAE,OAAO;QAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,mBAAmB;IACnB,KAAK,UAAU,YAAY;QAC1B,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACvB,YAAa,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.unit-head {
|
|
2
|
-
text-align: center;
|
|
3
|
-
padding: 10px 0;
|
|
4
|
-
margin: 0 20px;
|
|
5
|
-
:global {
|
|
6
|
-
.tool-bar-content{
|
|
7
|
-
text-align: right;
|
|
8
|
-
}
|
|
9
|
-
// .unit-name {
|
|
10
|
-
// color: #000;
|
|
11
|
-
// font-size: 16px;
|
|
12
|
-
// font-weight: 500;
|
|
13
|
-
// margin-top: 12px;
|
|
14
|
-
// }
|
|
15
|
-
.unit-name {
|
|
16
|
-
color: #000;
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
margin-top: 12px;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
&.inline-edit{
|
|
22
|
-
cursor: text;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitHead/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAoB,UAAU,EAAQ,MAAM,MAAM,CAAC;AAY1D,MAAM,OAAO,KAAK;CAEjB;AADY;IAAX,UAAU;sCAAuB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./index.less";
|
|
3
|
-
declare const UnitItem: {
|
|
4
|
-
(props: {
|
|
5
|
-
id: string;
|
|
6
|
-
index?: number;
|
|
7
|
-
includes?: string;
|
|
8
|
-
showAvatar?: boolean;
|
|
9
|
-
showQuickData?: boolean;
|
|
10
|
-
quickView?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
defaultProps: {
|
|
14
|
-
showAvatar: boolean;
|
|
15
|
-
showQuickData: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default UnitItem;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import QuickDataIcon from "../../controls/QuickDataIcon";
|
|
4
|
-
import UnitAvatar from "../UnitAvatar";
|
|
5
|
-
import UnitQuickView from "../UnitQuickView";
|
|
6
|
-
import classnames from "classnames";
|
|
7
|
-
import { useObserver } from "mobx-react-lite";
|
|
8
|
-
import { useUnit } from "../../data";
|
|
9
|
-
const UnitItem = (props) => {
|
|
10
|
-
const { id, index, includes, showAvatar, showQuickData, quickView, className } = props;
|
|
11
|
-
const contact = useUnit(id, { includes: includes });
|
|
12
|
-
const [visibleQuickView, setVisibleQuickView] = useState(false);
|
|
13
|
-
return useObserver(() => (React.createElement(React.Fragment, null,
|
|
14
|
-
React.createElement("div", { className: classnames("unit-detail", className) },
|
|
15
|
-
showAvatar && (React.createElement("div", { className: "unit-avatar" },
|
|
16
|
-
React.createElement(UnitAvatar, { id: id, size: "large", index: index }))),
|
|
17
|
-
React.createElement("div", null,
|
|
18
|
-
React.createElement("div", { className: "unit-name", onClick: onQuickView }, contact.name),
|
|
19
|
-
showQuickData && (React.createElement("div", null,
|
|
20
|
-
React.createElement(QuickDataIcon, { id: id }))))),
|
|
21
|
-
visibleQuickView && React.createElement(UnitQuickView, { id: id, visible: true, onCancel: onQuickView }))));
|
|
22
|
-
/** Quick View */
|
|
23
|
-
function onQuickView() {
|
|
24
|
-
if (!quickView)
|
|
25
|
-
return;
|
|
26
|
-
setVisibleQuickView(!visibleQuickView);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
UnitItem.defaultProps = {
|
|
30
|
-
showAvatar: true,
|
|
31
|
-
showQuickData: true
|
|
32
|
-
};
|
|
33
|
-
export default UnitItem;
|
|
34
|
-
//# sourceMappingURL=Item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitItem/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,QAAQ,GAAG,CAAC,KAQjB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACvF,MAAM,OAAO,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAS,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhE,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,SAAS,CAAC;YAClD,UAAU,IAAI,CACd,6BAAK,SAAS,EAAC,aAAa;gBAC3B,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,KAAK,GAAI,CAC5C,CACN;YACD;gBACC,6BAAK,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,WAAW,IAC7C,OAAO,CAAC,IAAI,CACR;gBACL,aAAa,IAAI,CACjB;oBACC,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI,CACpB,CACN,CACI,CACD;QACL,gBAAgB,IAAI,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,GAAI,CACpE,CACjB,CAAC,CAAC;IAEH,iBAAiB;IACjB,SAAS,WAAW;QACnB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,mBAAmB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACvB,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,IAAI;CACnB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { State } from "./state";
|
|
3
|
-
import { UnitContext, UnitContextState, useUnitContext } from "../../data/UnitContext";
|
|
4
|
-
import { useUnit, useUnitStore } from "../../data";
|
|
5
|
-
import { Checkbox } from "@voplus/antd";
|
|
6
|
-
import Item from "./Item";
|
|
7
|
-
import ToolBar from "../../controls/ToolBar";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import styles from "./index.less";
|
|
10
|
-
import { useObserver } from "mobx-react-lite";
|
|
11
|
-
const SubUnitItem = (props) => {
|
|
12
|
-
const { id, index, parentId, multiple, className, type, toolsVisible } = props;
|
|
13
|
-
const [state] = useState(new State());
|
|
14
|
-
state.contact = useUnit(id);
|
|
15
|
-
const unitStore = useUnitStore();
|
|
16
|
-
const store = useUnitContext();
|
|
17
|
-
const [options] = useState(new UnitContextState());
|
|
18
|
-
return useObserver(() => (React.createElement(UnitContext.Provider, { value: options },
|
|
19
|
-
React.createElement("div", { className: classnames(styles["unit-item-content"], className) },
|
|
20
|
-
type === "sub" && (React.createElement("div", { className: "unit-item", onMouseLeave: () => (state.isHover = false) },
|
|
21
|
-
React.createElement("div", { className: classnames("unit-item_box", { "unit-item_hover": state.isHover }), onMouseOver: () => (state.isHover = !multiple && !state.editable) },
|
|
22
|
-
multiple && React.createElement(Checkbox, { value: props.id, className: "multiple-checkbox" }),
|
|
23
|
-
React.createElement(Item, { id: id, index: index, quickView: true })),
|
|
24
|
-
toolsVisible && (React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
|
|
25
|
-
React.createElement(ToolBar, { id: props.id, size: "middle", url: `/units/${props.id}`, onDelete: onDel }))))),
|
|
26
|
-
type === "detail" && (React.createElement("div", { className: "unit-item" },
|
|
27
|
-
React.createElement(Item, { id: id, index: index }))),
|
|
28
|
-
type === "tree" && (React.createElement("div", { className: "unit-item", onClick: () => { var _a; return (_a = store === null || store === void 0 ? void 0 : store.onUnitSelected) === null || _a === void 0 ? void 0 : _a.call(store, state.contact.id); } },
|
|
29
|
-
React.createElement(Item, { id: id, index: index }))),
|
|
30
|
-
type === "select" && (React.createElement("div", { className: "unit-item", onDoubleClick: () => { var _a; return (_a = props.onSelectUnit) === null || _a === void 0 ? void 0 : _a.call(props, state.contact); } },
|
|
31
|
-
React.createElement(Item, { id: id, index: index })))))));
|
|
32
|
-
/** unit item delete */
|
|
33
|
-
function onDel() {
|
|
34
|
-
if (state.contact.type === "User" && parentId) {
|
|
35
|
-
unitStore.deleteUser({ pid: parentId, id: id });
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
unitStore.delete(id);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
SubUnitItem.defaultProps = {
|
|
43
|
-
toolsVisible: true
|
|
44
|
-
};
|
|
45
|
-
export default SubUnitItem;
|
|
46
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC5C,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAC/E,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI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|
-
:global {
|
|
4
|
-
.unit-item {
|
|
5
|
-
flex: 1;
|
|
6
|
-
color: #333;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
position: relative;
|
|
10
|
-
padding: 10px 0;
|
|
11
|
-
margin: 0 20px;
|
|
12
|
-
border-bottom: 1px solid #d9d9d9;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
}
|
|
15
|
-
.unit-detail{
|
|
16
|
-
flex: 1;
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
}
|
|
20
|
-
.unit-item_box {
|
|
21
|
-
flex: 1;
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
}
|
|
25
|
-
.multiple-checkbox {
|
|
26
|
-
margin-right: 10px;
|
|
27
|
-
}
|
|
28
|
-
.unit-name {
|
|
29
|
-
color: #000;
|
|
30
|
-
font-size: 15px;
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
}
|
|
33
|
-
.unit-avatar {
|
|
34
|
-
margin-right: 10px;
|
|
35
|
-
}
|
|
36
|
-
.hover-operate-icon {
|
|
37
|
-
display: none;
|
|
38
|
-
position: absolute;
|
|
39
|
-
right: 0;
|
|
40
|
-
z-index: 100;
|
|
41
|
-
&.show {
|
|
42
|
-
display: block;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IUnit } from "../../data";
|
|
2
|
-
export declare type UnitItemProps = {
|
|
3
|
-
/** unit item id */
|
|
4
|
-
id: string;
|
|
5
|
-
/** unit item parentId */
|
|
6
|
-
parentId?: string;
|
|
7
|
-
index?: number;
|
|
8
|
-
/** "detail" 详情| "sub" sub列表| "select" 文件选择对话盒| "tree" UnitSortableTree */
|
|
9
|
-
type?: string;
|
|
10
|
-
reload?: boolean;
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
/** 显示 tools */
|
|
13
|
-
toolsVisible?: boolean;
|
|
14
|
-
onExpand?: () => void;
|
|
15
|
-
onReload?: () => void;
|
|
16
|
-
className?: string;
|
|
17
|
-
onSelectUnit?: (params?: any) => void;
|
|
18
|
-
};
|
|
19
|
-
export declare class State {
|
|
20
|
-
contact: IUnit;
|
|
21
|
-
/** Edit model of unit */
|
|
22
|
-
editable: boolean;
|
|
23
|
-
/** MouseOver of sub unit */
|
|
24
|
-
isHover: boolean;
|
|
25
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
/** Edit model of unit */
|
|
6
|
-
this.editable = false;
|
|
7
|
-
/** MouseOver of sub unit */
|
|
8
|
-
this.isHover = false;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
__decorate([
|
|
12
|
-
observable
|
|
13
|
-
], State.prototype, "contact", void 0);
|
|
14
|
-
__decorate([
|
|
15
|
-
observable
|
|
16
|
-
], State.prototype, "editable", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
observable
|
|
19
|
-
], State.prototype, "isHover", void 0);
|
|
20
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAoBlC,MAAM,OAAO,KAAK;IAAlB;QAEC,0BAA0B;QACP,aAAQ,GAAG,KAAK,CAAC;QACpC,6BAA6B;QACV,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AALY;IAAX,UAAU;sCAAuB;AAEtB;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;sCAAwB"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { useAutoUpdateUnitListData, useUnitListEffect } from "../../data";
|
|
2
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
3
|
-
import React, { useState } from "react";
|
|
4
|
-
import { State } from "./state";
|
|
5
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
6
|
-
import NewUnitForm from "../NewUnitForm";
|
|
7
|
-
import UnitItem from "../UnitItem";
|
|
8
|
-
import UnitPropertiesView from "../UnitPropertiesView";
|
|
9
|
-
import UnitTypeFilter from "../../controls/UnitTypeFilter";
|
|
10
|
-
import { useObserver } from "mobx-react-lite";
|
|
11
|
-
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
|
-
const UnitList = (props) => {
|
|
13
|
-
const { readonly, parentId } = props;
|
|
14
|
-
const [state] = useState(new State());
|
|
15
|
-
state.props = props;
|
|
16
|
-
/** 建立 ListView 和useContactListEffect所需的ListDataState. 会根据parentId重建所以不需reset. */
|
|
17
|
-
const list = useCreateListDataState({
|
|
18
|
-
filterDefaults: {
|
|
19
|
-
filters: []
|
|
20
|
-
}
|
|
21
|
-
}, [parentId]);
|
|
22
|
-
/** 如果 list.filters.options变更了就重渲染,使下一行的useContactListEffect 可以接收新参数*/
|
|
23
|
-
useRenderOnChange(() => list.filters.options);
|
|
24
|
-
/** 把ListDataState传给useContactListEffect,使之可以自動更新loading, hasmore. */
|
|
25
|
-
useUnitListEffect(list, result => list.union(result), list.filters.options);
|
|
26
|
-
/** useOnNewContact, useOnDeleteContact的sugar syntax 自動更新list. */
|
|
27
|
-
useAutoUpdateUnitListData(list, d => d.parentNodeId === parentId);
|
|
28
|
-
return useObserver(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
29
|
-
React.createElement(ListView, { renderId: parentId, headerProps: {
|
|
30
|
-
filterViewProps: {
|
|
31
|
-
columns: [React.createElement(UnitTypeFilter, { key: "Type" })]
|
|
32
|
-
},
|
|
33
|
-
sortable: false
|
|
34
|
-
}, formViewTitle: "Add Unit", formView: React.createElement(NewUnitForm, { parentId: "c896a84e-b31a-4d10-a181-5d34a21b172d" }), propertiesView: (id) => React.createElement(UnitPropertiesView, { id: id }), renderItem: ({ item, index, connectDragSource }) => (React.createElement(UnitItem, { id: item.id, index: index, reload: !!readonly, type: "detail" })) }))));
|
|
35
|
-
};
|
|
36
|
-
export default UnitList;
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAE/C,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IACzC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IAEpB,iFAAiF;IACjF,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,EAAE;SACX;KACD,EACD,CAAC,QAAQ,CAAC,CAC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";
|
|
2
|
-
export declare type UnitListProps = {
|
|
3
|
-
parentId?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
scrollParentRef?: any;
|
|
6
|
-
header?: boolean;
|
|
7
|
-
readonly?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare class State {
|
|
10
|
-
props: UnitListProps;
|
|
11
|
-
list: IUnit[];
|
|
12
|
-
onMove(ids: string[]): void;
|
|
13
|
-
moveAfter(id: string, afterId: string, list: any[]): Promise<void>;
|
|
14
|
-
onDelete(ids: string[]): Promise<void>;
|
|
15
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.list = [];
|
|
6
|
-
}
|
|
7
|
-
onMove(ids) {
|
|
8
|
-
// store.onMove(ids);
|
|
9
|
-
}
|
|
10
|
-
// order by sub task
|
|
11
|
-
async moveAfter(id, afterId, list) {
|
|
12
|
-
// await taskStore.moveAfter(id, afterId);
|
|
13
|
-
// this.list = list;
|
|
14
|
-
}
|
|
15
|
-
async onDelete(ids) {
|
|
16
|
-
// await taskStore.delete(ids, { DeleteChilds: true });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
observable
|
|
21
|
-
], State.prototype, "list", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
action
|
|
24
|
-
], State.prototype, "onMove", null);
|
|
25
|
-
__decorate([
|
|
26
|
-
action
|
|
27
|
-
], State.prototype, "moveAfter", null);
|
|
28
|
-
__decorate([
|
|
29
|
-
action
|
|
30
|
-
], State.prototype, "onDelete", null);
|
|
31
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAY,UAAU,EAAQ,MAAM,MAAM,CAAC;AAc1D,MAAM,OAAO,KAAK;IAAlB;QAEoB,SAAI,GAAY,EAAE,CAAC;IAkBvC,CAAC;IAfO,MAAM,CAAC,GAAa;QAC1B,qBAAqB;IACtB,CAAC;IAED,oBAAoB;IAEb,KAAK,CAAC,SAAS,CAAC,EAAU,EAAE,OAAe,EAAE,IAAW;QAC9D,0CAA0C;QAC1C,oBAAoB;IACrB,CAAC;IAGM,KAAK,CAAC,QAAQ,CAAC,GAAa;QAClC,uDAAuD;IACxD,CAAC;CACD;AAlBY;IAAX,UAAU;mCAA2B;AAGtC;IADC,MAAM;mCAGN;AAID;IADC,MAAM;sCAIN;AAGD;IADC,MAAM;qCAGN"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { faSitemap, faUser, faUserAlt, faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { useObserver } from "mobx-react-lite";
|
|
5
|
-
import { useUnit } from "../../data";
|
|
6
|
-
import { useUnitContext } from "../../data/UnitContext";
|
|
7
|
-
const UnitName = (props) => {
|
|
8
|
-
const { id } = props;
|
|
9
|
-
const contact = useUnit(id, { reload: false });
|
|
10
|
-
const store = useUnitContext();
|
|
11
|
-
return useObserver(() => (React.createElement("div", { className: "file-document-name", onClick: () => { var _a; return (_a = store.onUnitSelected) === null || _a === void 0 ? void 0 : _a.call(store, contact.id); } },
|
|
12
|
-
React.createElement("div", { className: "file-type" },
|
|
13
|
-
contact.type === "Organization" && React.createElement(FAIcon, { icon: faSitemap }),
|
|
14
|
-
contact.type === "Team" && React.createElement(FAIcon, { icon: faUsers }),
|
|
15
|
-
contact.type === "Account" && React.createElement(FAIcon, { icon: faUserAlt }),
|
|
16
|
-
contact.type === "User" && React.createElement(FAIcon, { icon: faUser })),
|
|
17
|
-
React.createElement("div", { className: "file-name" }, contact.name))));
|
|
18
|
-
};
|
|
19
|
-
export default UnitName;
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitName/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEzF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,OAAO,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAE,oBAAoB,EAAE,OAAO,EAAE,GAAG,EAAE,wBAAC,KAAK,CAAC,cAAc,+CAApB,KAAK,EAAkB,OAAO,CAAC,EAAE,IAAC;QACtF,6BAAK,SAAS,EAAC,WAAW;YACxB,OAAO,CAAC,IAAI,KAAK,cAAc,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI;YAC9D,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI;YACpD,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI;YACzD,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI,CAC/C;QACN,6BAAK,SAAS,EAAC,WAAW,IAAE,OAAO,CAAC,IAAI,CAAO,CAC1C,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import UnitDetails from "../UnitDetails";
|
|
3
|
-
import UnitHead from "../UnitHead";
|
|
4
|
-
import UnitTabs from "../UnitTabs";
|
|
5
|
-
import { useObserver } from "mobx-react-lite";
|
|
6
|
-
/** Unit PropertiesView */
|
|
7
|
-
const UnitPropertiesView = (props) => {
|
|
8
|
-
const id = props.id;
|
|
9
|
-
const [loaded, setLoaded] = useState(true);
|
|
10
|
-
return useObserver(() => (React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
11
|
-
React.createElement(UnitHead, { id: id, onReload: onReload }),
|
|
12
|
-
React.createElement(UnitTabs, { id: id, details: React.createElement(UnitDetails, { id: id }) }))))));
|
|
13
|
-
/** reload data */
|
|
14
|
-
function onReload() {
|
|
15
|
-
setLoaded(false);
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
setLoaded(true);
|
|
18
|
-
}, 100);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export default UnitPropertiesView;
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,0BAA0B;AAC1B,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAC,oBAAoB,IACjC,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;QACd,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAI;QACxC,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,GAAI,CACtC,CACjB,CACI,CACN,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type QuickViewProps = {
|
|
3
|
-
id: string;
|
|
4
|
-
showSubTab?: (params?: any) => void;
|
|
5
|
-
};
|
|
6
|
-
declare const QuickSubTab: (props: QuickViewProps) => JSX.Element;
|
|
7
|
-
declare const QuickSubContent: (props: {
|
|
8
|
-
id: string;
|
|
9
|
-
type?: string;
|
|
10
|
-
shape?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
exclude?: string[];
|
|
13
|
-
onCancel?: () => void;
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
export { QuickSubTab, QuickSubContent };
|