@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,73 +0,0 @@
|
|
|
1
|
-
import React, { Children, cloneElement } from "react";
|
|
2
|
-
import classnames from "classnames";
|
|
3
|
-
import styles from "./tree-node-renderer.less";
|
|
4
|
-
const FileThemeTreeNodeRenderer = (props) => {
|
|
5
|
-
const { children, listIndex, swapFrom, swapLength, swapDepth, scaffoldBlockPxWidth, lowerSiblingCounts, connectDropTarget, isOver, draggedNode, canDrop, treeIndex, treeId, // Delete from otherProps
|
|
6
|
-
getPrevRow, // Delete from otherProps
|
|
7
|
-
node, // Delete from otherProps
|
|
8
|
-
path, // Delete from otherProps
|
|
9
|
-
rowDirection, ...otherProps } = props;
|
|
10
|
-
// Construct the scaffold representing the structure of the tree
|
|
11
|
-
const scaffoldBlockCount = lowerSiblingCounts.length;
|
|
12
|
-
const scaffold = [];
|
|
13
|
-
lowerSiblingCounts.forEach((lowerSiblingCount, i) => {
|
|
14
|
-
let lineClass = "";
|
|
15
|
-
if (lowerSiblingCount > 0) {
|
|
16
|
-
// At this level in the tree, the nodes had sibling nodes further down
|
|
17
|
-
if (listIndex === 0) {
|
|
18
|
-
// Top-left corner of the tree
|
|
19
|
-
lineClass = "rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom";
|
|
20
|
-
}
|
|
21
|
-
else if (i === scaffoldBlockCount - 1) {
|
|
22
|
-
// Last scaffold block in the row, right before the row content
|
|
23
|
-
lineClass = "rst__lineHalfHorizontalRight rst__lineFullVertical";
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
// Simply connecting the line extending down to the next sibling on this level
|
|
27
|
-
lineClass = "rst__lineFullVertical";
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
else if (listIndex === 0) {
|
|
31
|
-
// Top-left corner of the tree, but has no siblings
|
|
32
|
-
lineClass = "rst__lineHalfHorizontalRight";
|
|
33
|
-
}
|
|
34
|
-
else if (i === scaffoldBlockCount - 1) {
|
|
35
|
-
// The last or only node in this level of the tree
|
|
36
|
-
lineClass = "rst__lineHalfVerticalTop rst__lineHalfHorizontalRight";
|
|
37
|
-
}
|
|
38
|
-
scaffold.push(React.createElement("div", { key: `pre_${1 + i}`, style: { width: scaffoldBlockPxWidth }, className: classnames("rst__lineBlock", lineClass) }));
|
|
39
|
-
if (treeIndex !== listIndex && i === swapDepth) {
|
|
40
|
-
// This row has been shifted, and is at the depth of
|
|
41
|
-
// the line pointing to the new destination
|
|
42
|
-
let highlightLineClass = "";
|
|
43
|
-
if (listIndex === swapFrom + swapLength - 1) {
|
|
44
|
-
// This block is on the bottom (target) line
|
|
45
|
-
// This block points at the target block (where the row will go when released)
|
|
46
|
-
highlightLineClass = "rst__highlightBottomLeftCorner";
|
|
47
|
-
}
|
|
48
|
-
else if (treeIndex === swapFrom) {
|
|
49
|
-
// This block is on the top (source) line
|
|
50
|
-
highlightLineClass = "rst__highlightTopLeftCorner";
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
// This block is between the bottom and top
|
|
54
|
-
highlightLineClass = "rst__highlightLineVertical";
|
|
55
|
-
}
|
|
56
|
-
const style = {
|
|
57
|
-
width: scaffoldBlockPxWidth,
|
|
58
|
-
left: scaffoldBlockPxWidth * i
|
|
59
|
-
};
|
|
60
|
-
scaffold.push(React.createElement("div", { key: i, style: style, className: classnames("rst__absoluteLineBlock", highlightLineClass) }));
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
const style = { left: scaffoldBlockPxWidth * scaffoldBlockCount };
|
|
64
|
-
return connectDropTarget(React.createElement("div", Object.assign({}, otherProps, { className: classnames("rst__node", styles["documenet-node"]) }),
|
|
65
|
-
scaffold,
|
|
66
|
-
React.createElement("div", { className: "rst__nodeContent", style: style }, Children.map(children, child => cloneElement(child, {
|
|
67
|
-
isOver,
|
|
68
|
-
canDrop,
|
|
69
|
-
draggedNode
|
|
70
|
-
})))));
|
|
71
|
-
};
|
|
72
|
-
export default FileThemeTreeNodeRenderer;
|
|
73
|
-
//# sourceMappingURL=tree-node-renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../../../src/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAE/C,MAAM,yBAAyB,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC5E,MAAM,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,OAAO,EACP,SAAS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__lineHalfVerticalBottom::after {
|
|
7
|
-
position: absolute;
|
|
8
|
-
content: "";
|
|
9
|
-
background-color: #cccccc !important;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
2
|
-
import ActivityLog from "../ActivityLog";
|
|
3
|
-
import ContactUserInfoView from "../ContactUserInfoView";
|
|
4
|
-
import DocumentList from "../../../../components/DocumentList";
|
|
5
|
-
import Members from "../Members";
|
|
6
|
-
import SubUnitList from "../SubUnitList";
|
|
7
|
-
import { Tabs } from "@voplus/antd";
|
|
8
|
-
import { useObserver } from "mobx-react-lite";
|
|
9
|
-
import { useUnit } from "../../data";
|
|
10
|
-
const UnitTabs = (props) => {
|
|
11
|
-
const { id, details } = props;
|
|
12
|
-
const contact = useUnit(id);
|
|
13
|
-
/**Tabs 当前激活 tab 面板的 key */
|
|
14
|
-
const [activeKey, setActiveKey] = useState(details ? "Details" : "SubUnits");
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
setActiveKey(details ? "Details" : "SubUnits");
|
|
17
|
-
}, [id]);
|
|
18
|
-
return useObserver(() => {
|
|
19
|
-
var _a;
|
|
20
|
-
return (React.createElement(Tabs, { activeKey: activeKey, onChange: onChange },
|
|
21
|
-
details && (React.createElement(Tabs.TabPane, { tab: "Details", key: "Details" }, details)),
|
|
22
|
-
contact.isGroup && (React.createElement(Tabs.TabPane, { tab: "SubUnits", key: "SubUnits" }, activeKey === "SubUnits" && React.createElement(SubUnitList, { parentId: id, multiple: true }))),
|
|
23
|
-
contact.type === "Team" && (React.createElement(Tabs.TabPane, { tab: "Members", key: "Members" }, activeKey === "Members" && React.createElement(Members, { parentId: id }))),
|
|
24
|
-
React.createElement(Tabs.TabPane, { tab: "Document", key: "Document" }, activeKey === "Document" && (React.createElement(DocumentList, { id: contact.containerId, parentName: contact.name, multiple: true }))),
|
|
25
|
-
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
|
|
26
|
-
((_a = contact.stereoTypes) === null || _a === void 0 ? void 0 : _a.includes("User")) && (React.createElement(Tabs.TabPane, { tab: "UserInfo", key: "UserInfo" },
|
|
27
|
-
React.createElement(ContactUserInfoView, { id: id })))));
|
|
28
|
-
});
|
|
29
|
-
/**切换面板的回调*/
|
|
30
|
-
function onChange(activeKey) {
|
|
31
|
-
setActiveKey(activeKey);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
export default UnitTabs;
|
|
35
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,QAAQ,GAAG,CAAC,KAGjB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IAC5B,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAC7E,S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QAAQ,CAAC,MAAM,MAAK,CACzC,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,UAAU,EAAC,GAAG,EAAC,UAAU;gBAC1C,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI,CACjB,CACf,CACK,CACP,CAAA;KAAA,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { UnitSelectDialogProps } from "@voplus/morpho-document-core";
|
|
3
|
-
declare const UnitsSelectDialog: {
|
|
4
|
-
(props: UnitSelectDialogProps): JSX.Element;
|
|
5
|
-
defaultProps: {
|
|
6
|
-
multiSelect: boolean;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default UnitsSelectDialog;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import FileExplorerTheme from "../UnitSortableTree/themes/FileExplorerTheme";
|
|
3
|
-
import { Modal } from "@voplus/antd";
|
|
4
|
-
import { State } from "./state";
|
|
5
|
-
import SubUnitList from "../SubUnitList";
|
|
6
|
-
import UnitSortableTree from "../UnitSortableTree";
|
|
7
|
-
import classnames from "classnames";
|
|
8
|
-
import styles from "./index.less";
|
|
9
|
-
import { useApplicationContext } from "@voplus/morpho-data";
|
|
10
|
-
import { useObserver } from "mobx-react-lite";
|
|
11
|
-
const UnitsSelectDialog = (props) => {
|
|
12
|
-
const context = useApplicationContext();
|
|
13
|
-
const [state] = useState(new State());
|
|
14
|
-
state.props = props;
|
|
15
|
-
state.multiSelect = props.multiSelect;
|
|
16
|
-
return useObserver(() => (React.createElement(Modal, { className: classnames(styles["doc-select-dialog"], props.className), width: 800, title: "DocumentSelect", visible: state.visible, okText: "Select", onOk: () => state.handleOk(), onCancel: () => state.handleCancel() },
|
|
17
|
-
React.createElement("div", { className: "file-tree" },
|
|
18
|
-
React.createElement(UnitSortableTree
|
|
19
|
-
// id={context.user.info.driveId}
|
|
20
|
-
, {
|
|
21
|
-
// id={context.user.info.driveId}
|
|
22
|
-
id: "c896a84e-b31a-4d10-a181-5d34a21b172d",
|
|
23
|
-
// allFiles
|
|
24
|
-
canDrag: false, theme: FileExplorerTheme, onUnitSelected: id => state.onExpand(id) })),
|
|
25
|
-
React.createElement("div", { className: "document-list" },
|
|
26
|
-
React.createElement(SubUnitList, { parentId: state.id, type: "select", addAble: false, onSelectUnit: item => state.onSelectUnit(item) })),
|
|
27
|
-
state.multiSelect && (React.createElement("div", { className: "selected-document-list" },
|
|
28
|
-
React.createElement("div", { className: "selected-list-title" }, "\u5DF2\u9009\u8054\u7CFB\u4EBA"),
|
|
29
|
-
state.selectedLists.map(item => (React.createElement("div", { className: "document-itme-name", key: item.id, onDoubleClick: () => state.deselectUnit(item) }, item.name))))))));
|
|
30
|
-
};
|
|
31
|
-
UnitsSelectDialog.defaultProps = {
|
|
32
|
-
multiSelect: true
|
|
33
|
-
};
|
|
34
|
-
export default UnitsSelectDialog;
|
|
35
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitsSelectDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,iBAAiB,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAA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AY,CAAC,IAAI,CAAC,GAC7C,CACG;QACL,KAAK,CAAC,WAAW,IAAI,CACrB,6BAAK,SAAS,EAAC,wBAAwB;YACtC,6BAAK,SAAS,EAAC,qBAAqB,qCAAY;YAC/C,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAChC,6BACC,SAAS,EAAC,oBAAoB,EAC9B,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,aAAa,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAE5C,IAAI,CAAC,IAAI,CACL,CACN,CAAC,CACG,CACN,CACM,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,WAAW,EAAE,IAAI;CACjB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
.doc-select-dialog {
|
|
2
|
-
:global {
|
|
3
|
-
.ant-modal-body {
|
|
4
|
-
display: flex;
|
|
5
|
-
height: 600px;
|
|
6
|
-
padding: 0 15px;
|
|
7
|
-
> div {
|
|
8
|
-
flex: 1;
|
|
9
|
-
border-right: 1px solid #e8e8e8;
|
|
10
|
-
}
|
|
11
|
-
> div:last-child {
|
|
12
|
-
border-right: none;
|
|
13
|
-
}
|
|
14
|
-
.file-tree {
|
|
15
|
-
padding-top: 10px;
|
|
16
|
-
}
|
|
17
|
-
.document-list {
|
|
18
|
-
flex: 2;
|
|
19
|
-
}
|
|
20
|
-
.selected-document-list {
|
|
21
|
-
padding-left: 10px;
|
|
22
|
-
.selected-list-title {
|
|
23
|
-
line-height: 44px;
|
|
24
|
-
border-bottom: 1px solid #e8e8e8;
|
|
25
|
-
}
|
|
26
|
-
.document-itme-name {
|
|
27
|
-
line-height: 32px;
|
|
28
|
-
}
|
|
29
|
-
.file-type {
|
|
30
|
-
display: inline-block;
|
|
31
|
-
margin-right: 10px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IUnit } from "../../data";
|
|
2
|
-
import { UnitSelectDialogProps } from "@voplus/morpho-document-core";
|
|
3
|
-
export declare class State {
|
|
4
|
-
props: UnitSelectDialogProps;
|
|
5
|
-
/** UnitList id */
|
|
6
|
-
id: string;
|
|
7
|
-
/** 已选文件列表 */
|
|
8
|
-
selectedLists: IUnit[];
|
|
9
|
-
/** 是否多选 */
|
|
10
|
-
multiSelect: boolean;
|
|
11
|
-
/** 是否显示UnitSelectDialog */
|
|
12
|
-
visible: boolean;
|
|
13
|
-
/**Select function*/
|
|
14
|
-
handleOk(): void | import("@voplus/antd/es/message").MessageType;
|
|
15
|
-
/**cancel function*/
|
|
16
|
-
handleCancel(): void;
|
|
17
|
-
/**已选文件列表 双击取消选择文件*/
|
|
18
|
-
deselectUnit(item: IUnit): void;
|
|
19
|
-
/**UnitTree 选择文件返回unit id, UnitList获得id显示列表*/
|
|
20
|
-
onExpand(expandedKeys: string): void;
|
|
21
|
-
onSelectUnit(item: IUnit): void;
|
|
22
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, observable } from "mobx";
|
|
3
|
-
import { message } from "@voplus/antd";
|
|
4
|
-
export class State {
|
|
5
|
-
constructor() {
|
|
6
|
-
/** UnitList id */
|
|
7
|
-
this.id = "";
|
|
8
|
-
/** 已选文件列表 */
|
|
9
|
-
this.selectedLists = [];
|
|
10
|
-
/** 是否多选 */
|
|
11
|
-
this.multiSelect = false;
|
|
12
|
-
/** 是否显示UnitSelectDialog */
|
|
13
|
-
this.visible = true;
|
|
14
|
-
}
|
|
15
|
-
/**Select function*/
|
|
16
|
-
handleOk() {
|
|
17
|
-
var _a, _b;
|
|
18
|
-
if (!this.selectedLists.length)
|
|
19
|
-
return message.warning("Please select file");
|
|
20
|
-
return (_b = (_a = this.props).onSelect) === null || _b === void 0 ? void 0 : _b.call(_a, this.selectedLists);
|
|
21
|
-
}
|
|
22
|
-
/**cancel function*/
|
|
23
|
-
handleCancel() {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
this.visible = false;
|
|
26
|
-
(_b = (_a = this.props).onCancel) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
27
|
-
}
|
|
28
|
-
/**已选文件列表 双击取消选择文件*/
|
|
29
|
-
deselectUnit(item) {
|
|
30
|
-
this.selectedLists = this.selectedLists.filter(i => i !== item);
|
|
31
|
-
}
|
|
32
|
-
/**UnitTree 选择文件返回unit id, UnitList获得id显示列表*/
|
|
33
|
-
onExpand(expandedKeys) {
|
|
34
|
-
this.id = expandedKeys;
|
|
35
|
-
}
|
|
36
|
-
/*UnitTree,UnitList 双击选择文件显示在已选文件列表*/
|
|
37
|
-
onSelectUnit(item) {
|
|
38
|
-
var _a, _b;
|
|
39
|
-
if (!this.multiSelect)
|
|
40
|
-
return (_b = (_a = this.props).onSelect) === null || _b === void 0 ? void 0 : _b.call(_a, [{ id: item.id, name: item.name, type: item.type }]);
|
|
41
|
-
if (!this.selectedLists.some(ele => ele.id === item.id)) {
|
|
42
|
-
this.selectedLists.push(item);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
__decorate([
|
|
47
|
-
observable
|
|
48
|
-
], State.prototype, "id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
observable
|
|
51
|
-
], State.prototype, "selectedLists", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
observable
|
|
54
|
-
], State.prototype, "multiSelect", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
observable
|
|
57
|
-
], State.prototype, "visible", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
action
|
|
60
|
-
], State.prototype, "handleOk", null);
|
|
61
|
-
__decorate([
|
|
62
|
-
action
|
|
63
|
-
], State.prototype, "handleCancel", null);
|
|
64
|
-
__decorate([
|
|
65
|
-
action
|
|
66
|
-
], State.prototype, "deselectUnit", null);
|
|
67
|
-
__decorate([
|
|
68
|
-
action
|
|
69
|
-
], State.prototype, "onExpand", null);
|
|
70
|
-
__decorate([
|
|
71
|
-
action
|
|
72
|
-
], State.prototype, "onSelectUnit", null);
|
|
73
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitsSelectDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,KAAK;IAAlB;QAEC,kBAAkB;QACC,OAAE,GAAG,EAAE,CAAC;QAC3B,aAAa;QACM,kBAAa,GAAY,EAAE,CAAC;QAC/C,WAAW;QACQ,gBAAW,GAAG,KAAK,CAAC;QACvC,2BAA2B;QACR,YAAO,GAAG,IAAI,CAAC;IAqCnC,CAAC;IAnCA,oBAAoB;IAEb,QAAQ;;QACd,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM;YAAE,OAAO,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAC7E,aAAO,MAAA,IAAI,CAAC,KAAK,EAAC,QAAQ,mDAAG,IAAI,CAAC,aAAa,EAAE;IAClD,CAAC;IAED,oBAAoB;IAEb,YAAY;;QAClB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,QAAQ,mDAAK;IACzB,CAAC;IAED,oBAAoB;IAEb,YAAY,CAAC,IAAW;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;IACjE,CAAC;IAED,6CAA6C;IAEtC,QAAQ,CAAC,YAAoB;QACnC,IAAI,CAAC,EAAE,GAAG,YAAY,CAAC;IACxB,CAAC;IAED,qCAAqC;IAE9B,YAAY,CAAC,IAAW;;QAC9B,IAAI,CAAC,IAAI,CAAC,WAAW;YACpB,aAAO,MAAA,IAAI,CAAC,KAAK,EAAC,QAAQ,mDAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE;QACnF,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC,EAAE;YACxD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC9B;IACF,CAAC;CACD;AA3CY;IAAX,UAAU;iCAAgB;AAEf;IAAX,UAAU;4CAAoC;AAEnC;IAAX,UAAU;0CAA4B;AAE3B;IAAX,UAAU;sCAAuB;AAIlC;IADC,MAAM;qCAIN;AAID;IADC,MAAM;yCAIN;AAID;IADC,MAAM;yCAGN;AAID;IADC,MAAM;qCAGN;AAID;IADC,MAAM;yCAON"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { AutoComplete, Select } from "@voplus/antd";
|
|
2
|
-
import { State } from "./state";
|
|
3
|
-
import { useUnitListEffect } from "../../data";
|
|
4
|
-
import React, { useEffect, useState } from "react";
|
|
5
|
-
import { faBuilding, faUser, faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import { useObserver } from "mobx-react-lite";
|
|
8
|
-
const { Option } = Select;
|
|
9
|
-
const ContactSelect = (props) => {
|
|
10
|
-
// total contacts
|
|
11
|
-
const [items, setItems] = useState([]);
|
|
12
|
-
const [state] = useState(new State());
|
|
13
|
-
state.props = props;
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
state.updateDefault();
|
|
16
|
-
}, [props.defaultValue]);
|
|
17
|
-
useUnitListEffect(null, list => {
|
|
18
|
-
setItems(list);
|
|
19
|
-
}, { Filters: [{ c: "Type", v1: props.type ? props.type : "", o: "=", l: "And" }] });
|
|
20
|
-
// Try to search an existing contact to be selected or
|
|
21
|
-
// put the value inside a new object without id
|
|
22
|
-
const autoCompleteOnChange = (value) => {
|
|
23
|
-
if (!value) {
|
|
24
|
-
state.values = [];
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
let item = items.find(x => x.id == value);
|
|
28
|
-
if (!item)
|
|
29
|
-
item = { id: "", name: value };
|
|
30
|
-
state.values = [item];
|
|
31
|
-
};
|
|
32
|
-
// set or add a new selection to values
|
|
33
|
-
const selectOnSelect = (value) => {
|
|
34
|
-
const item = items.find(x => x.id === value);
|
|
35
|
-
if (props.multiple)
|
|
36
|
-
state.values.push(item);
|
|
37
|
-
else
|
|
38
|
-
state.values = [item];
|
|
39
|
-
state.fireOnChange();
|
|
40
|
-
};
|
|
41
|
-
// remove a selection from values
|
|
42
|
-
const selectOnDeSelect = (value) => {
|
|
43
|
-
const index = state.values.findIndex(x => x.id === value);
|
|
44
|
-
if (index !== -1)
|
|
45
|
-
state.values.splice(index, 1);
|
|
46
|
-
state.fireOnChange();
|
|
47
|
-
};
|
|
48
|
-
const filterItems = (input, option) => {
|
|
49
|
-
return option.title.toLowerCase().includes(input.toLowerCase());
|
|
50
|
-
};
|
|
51
|
-
const renderContactOption = (contact) => {
|
|
52
|
-
const icon = contact.isGroup
|
|
53
|
-
? contact.type === "Organization"
|
|
54
|
-
? faBuilding
|
|
55
|
-
: faUsers
|
|
56
|
-
: faUser;
|
|
57
|
-
return (React.createElement(Option, { key: contact.id, value: contact.id, title: contact.name },
|
|
58
|
-
React.createElement("span", { style: { width: "2em", display: "inline-block", textAlign: "center" } },
|
|
59
|
-
React.createElement(FAIcon, { icon: icon })),
|
|
60
|
-
contact.name));
|
|
61
|
-
};
|
|
62
|
-
const allowNewMode = !props.multiple && props.allowNew;
|
|
63
|
-
return useObserver(() => allowNewMode ? (React.createElement(AutoComplete
|
|
64
|
-
// optionLabelProp={"title"}
|
|
65
|
-
, {
|
|
66
|
-
// optionLabelProp={"title"}
|
|
67
|
-
placeholder: "input here", value: state.values.length ? state.values[0].name : "", onChange: autoCompleteOnChange, filterOption: filterItems, onBlur: () => state.fireOnChange(), onSelect: v => {
|
|
68
|
-
autoCompleteOnChange(v);
|
|
69
|
-
state.fireOnChange();
|
|
70
|
-
}, style: { width: "100%" } }, items.map(i => renderContactOption(i)))) : (React.createElement(Select, { mode: props.multiple ? "multiple" : "tags", showSearch: true, style: { width: "100%" }, placeholder: "Input or select contact.",
|
|
71
|
-
// defaultValue={state.lastValues.filter(x => x.id).map(x => x.id)}
|
|
72
|
-
optionLabelProp: "title", onSelect: selectOnSelect, onDeselect: selectOnDeSelect, showArrow: true, filterOption: filterItems, onBlur: props.onBlur }, items.map(i => renderContactOption(i)))));
|
|
73
|
-
};
|
|
74
|
-
ContactSelect.defaultProps = {
|
|
75
|
-
defaultValue: []
|
|
76
|
-
};
|
|
77
|
-
export default ContactSelect;
|
|
78
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/controls/ContactSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAsB,KAAK,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAS,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,EAAE,eAAe,IAAI,MA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IAAI,EAChB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,WAAW,EAAC,0BAA0B;QACtC,mEAAmE;QACnE,eAAe,EAAE,OAAO,EACxB,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,gBAAgB,EAC5B,SAAS,EAAE,IAAI,EACf,YAAY,EAAE,WAAW,EACzB,MAAM,EAAE,KAAK,CAAC,MAAM,IAEnB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAC/B,CACT,CACD,CAAC;AACH,CAAC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG;IAC5B,YAAY,EAAE,EAAE;CAChB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IUnit } from "../../data";
|
|
2
|
-
export declare type ContactSelectProps = {
|
|
3
|
-
/** Default values of the contact select */
|
|
4
|
-
defaultValue: Partial<IUnit>[];
|
|
5
|
-
/** Whether allow user input new contact name without id. Only applicable when multiple is false. */
|
|
6
|
-
allowNew?: boolean;
|
|
7
|
-
/** Whether allow multiple select. */
|
|
8
|
-
multiple?: boolean;
|
|
9
|
-
onChange?: (contacts: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}[]) => void;
|
|
13
|
-
onBlur?: () => void;
|
|
14
|
-
type?: "Organization" | "Person";
|
|
15
|
-
};
|
|
16
|
-
export declare class State {
|
|
17
|
-
props: ContactSelectProps;
|
|
18
|
-
values: Partial<IUnit>[];
|
|
19
|
-
lastValues: Partial<IUnit>[];
|
|
20
|
-
updateDefault(): void;
|
|
21
|
-
fireOnChange(): void;
|
|
22
|
-
private valueChanged;
|
|
23
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, observable, toJS } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
// current values to be compared for valueChanged
|
|
6
|
-
this.values = [];
|
|
7
|
-
// Last values to be compared for valueChanged
|
|
8
|
-
this.lastValues = [];
|
|
9
|
-
}
|
|
10
|
-
updateDefault() {
|
|
11
|
-
this.values = this.props.defaultValue;
|
|
12
|
-
this.lastValues = this.props.defaultValue;
|
|
13
|
-
}
|
|
14
|
-
fireOnChange() {
|
|
15
|
-
if (this.props.onChange && this.valueChanged()) {
|
|
16
|
-
const clean = toJS(this.values);
|
|
17
|
-
this.props.onChange(clean);
|
|
18
|
-
this.lastValues = clean;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
valueChanged() {
|
|
22
|
-
if (this.values.length !== this.lastValues.length)
|
|
23
|
-
return true;
|
|
24
|
-
for (const v of this.values) {
|
|
25
|
-
if (this.lastValues.findIndex(x => x.id === v.id) === -1)
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
__decorate([
|
|
32
|
-
observable
|
|
33
|
-
], State.prototype, "values", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
observable
|
|
36
|
-
], State.prototype, "lastValues", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
action
|
|
39
|
-
], State.prototype, "updateDefault", null);
|
|
40
|
-
__decorate([
|
|
41
|
-
action
|
|
42
|
-
], State.prototype, "fireOnChange", null);
|
|
43
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/controls/ContactSelect/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAqBhD,MAAM,OAAO,KAAK;IAAlB;QAEC,iDAAiD;QAE1C,WAAM,GAAqB,EAAE,CAAC;QAErC,8CAA8C;QAEvC,eAAU,GAAqB,EAAE,CAAC;IAwB1C,CAAC;IArBO,aAAa;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAGM,YAAY;QAClB,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;YAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAY,CAAC,CAAC;YAClC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;SACxB;IACF,CAAC;IAEO,YAAY;QACnB,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC,UAAU,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC/D,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE;YAC5B,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;gBAAE,OAAO,IAAI,CAAC;SACtE;QACD,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AA5BA;IADC,UAAU;qCAC0B;AAIrC;IADC,UAAU;yCAC8B;AAGzC;IADC,MAAM;0CAIN;AAGD;IADC,MAAM;yCAON"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import { Popover } from "@voplus/antd";
|
|
3
|
-
import React, { useState } from "react";
|
|
4
|
-
import AvatarItem from "../../../../../components/AvatarList/AvatarItem";
|
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import { faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
-
import { useUnitListEffect } from "../../../data";
|
|
8
|
-
const UnitTeamsIcon = (props) => {
|
|
9
|
-
const { id } = props;
|
|
10
|
-
const [teams, setTeams] = useState([]);
|
|
11
|
-
useUnitListEffect(null, list => {
|
|
12
|
-
setTeams(list);
|
|
13
|
-
}, {
|
|
14
|
-
Filters: [
|
|
15
|
-
{ c: "ParentNodeId", o: "=", l: "And", v1: id },
|
|
16
|
-
{
|
|
17
|
-
c: "Type",
|
|
18
|
-
o: "=",
|
|
19
|
-
l: "And",
|
|
20
|
-
v1: "Team"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
});
|
|
24
|
-
return (React.createElement(React.Fragment, null, !!(teams && teams.length) ? (React.createElement(Popover, { placement: "bottom", title: "Teams", content: React.createElement(React.Fragment, null, teams.map((team, index) => (React.createElement(AvatarItem, { id: team.id, key: team.id, index: index })))) },
|
|
25
|
-
React.createElement("span", { className: "user-quick-icon" },
|
|
26
|
-
React.createElement(FAIcon, { icon: faUsers }),
|
|
27
|
-
teams.length))) : (React.createElement("span", { className: "user-quick-icon" },
|
|
28
|
-
React.createElement(FAIcon, { icon: faUsers }),
|
|
29
|
-
"0"))));
|
|
30
|
-
};
|
|
31
|
-
export default UnitTeamsIcon;
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAU,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEl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C,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
:global {
|
|
3
|
-
.user-quick-icon {
|
|
4
|
-
.svg-inline--fa {
|
|
5
|
-
margin-right: 5px;
|
|
6
|
-
}
|
|
7
|
-
:hover {
|
|
8
|
-
color: @primary-color;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
.user-quick-Avatar {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
.ant-avatar {
|
|
15
|
-
margin-right: 8px;
|
|
16
|
-
}
|
|
17
|
-
& + .user-quick-Avatar {
|
|
18
|
-
padding-top: 10px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./index.less";
|
|
3
|
-
import { IUnit } from "../../data";
|
|
4
|
-
export interface IData extends IUnit {
|
|
5
|
-
documents?: number;
|
|
6
|
-
comments?: number;
|
|
7
|
-
users?: number;
|
|
8
|
-
}
|
|
9
|
-
declare const QuickDataIcon: {
|
|
10
|
-
(props: {
|
|
11
|
-
id: string;
|
|
12
|
-
includes?: string;
|
|
13
|
-
tip?: boolean;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
}): JSX.Element;
|
|
16
|
-
defaultProps: {
|
|
17
|
-
tip: boolean;
|
|
18
|
-
includes: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default QuickDataIcon;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import { useUnit } from "../../data";
|
|
3
|
-
import { faCommentDots, faListAlt, faListOl, faPaperclip, faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { Tooltip } from "@voplus/antd";
|
|
7
|
-
import UnitTeamsIcon from "./UnitTeamsIcon";
|
|
8
|
-
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
9
|
-
library.add(faCommentDots, faListAlt, faListOl, faPaperclip, faUsers);
|
|
10
|
-
const QuickDataIcon = (props) => {
|
|
11
|
-
const { id, tip } = props;
|
|
12
|
-
const unit = useUnit(id);
|
|
13
|
-
const { documents, comments } = unit;
|
|
14
|
-
const list = [
|
|
15
|
-
{
|
|
16
|
-
name: "Document",
|
|
17
|
-
icon: ["fal", "paperclip"],
|
|
18
|
-
num: documents || 0
|
|
19
|
-
},
|
|
20
|
-
{ name: "Comment", icon: ["fal", "comment-dots"], num: comments || 0 }
|
|
21
|
-
];
|
|
22
|
-
return (React.createElement(React.Fragment, null,
|
|
23
|
-
list.map(item => tip ? (React.createElement(Tooltip, { key: item.name, title: item.name },
|
|
24
|
-
React.createElement("span", { className: "quick-data-icon", onClick: () => (item.name === "Document" ? props.onClick() : null) },
|
|
25
|
-
React.createElement(FAIcon, { icon: item.icon }),
|
|
26
|
-
item.num))) : (React.createElement("span", { className: "quick-data-icon" },
|
|
27
|
-
React.createElement(FAIcon, { icon: item.icon }),
|
|
28
|
-
item.num))),
|
|
29
|
-
unit.isGroup && React.createElement(UnitTeamsIcon, { id: id })));
|
|
30
|
-
};
|
|
31
|
-
QuickDataIcon.defaultProps = {
|
|
32
|
-
tip: true,
|
|
33
|
-
includes: ""
|
|
34
|
-
};
|
|
35
|
-
export default QuickDataIcon;
|
|
36
|
-
//# sourceMappingURL=index.js.map
|