@voplus/morpho-document 1.0.0-dev301 → 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/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/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +13 -2
- package/es/components/QuickAccessSearch/ObjectItem/index.js +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/Signature/Envelope/EnvelopeRecipientView/index.js +9 -5
- 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 +11 -6
- 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/SignatureDialog/index.d.ts +2 -0
- package/es/pages/Signature/SignatureDialog/index.js +11 -8
- 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 +4 -10
- package/es/pages/Signature/SignatureRecipient/index.js.map +1 -1
- 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/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 +4 -4
- 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,145 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, computed, observable, toJS } from "mobx";
|
|
3
|
-
import { clone, isEqual } from "lodash-es";
|
|
4
|
-
import uuid from "uuid/v1";
|
|
5
|
-
export default class PeopleAccessState {
|
|
6
|
-
constructor(_context) {
|
|
7
|
-
this._context = _context;
|
|
8
|
-
this.loading = false;
|
|
9
|
-
this.saving = false;
|
|
10
|
-
this.showInherited = false;
|
|
11
|
-
this.inherit = false;
|
|
12
|
-
this._accesses = observable.map();
|
|
13
|
-
this.clear = () => {
|
|
14
|
-
this.inherit = false;
|
|
15
|
-
this._accesses = observable.map();
|
|
16
|
-
};
|
|
17
|
-
this.reset = () => {
|
|
18
|
-
if (this.originalData) {
|
|
19
|
-
this.inherit = this.originalData.inherit;
|
|
20
|
-
this._accesses.clear();
|
|
21
|
-
const includes = clone(toJS(this.originalData.includes));
|
|
22
|
-
includes.forEach((line) => this._accesses.set(line.id, line));
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
this.update = (doc) => {
|
|
26
|
-
const updateAccess = (data) => {
|
|
27
|
-
this.originalData = clone(toJS(data));
|
|
28
|
-
this.inherit = data.inherit;
|
|
29
|
-
this._accesses.clear();
|
|
30
|
-
data.includes.forEach((line) => this._accesses.set(line.id, line));
|
|
31
|
-
};
|
|
32
|
-
// if (!doc.access) {
|
|
33
|
-
// this.loading = true;
|
|
34
|
-
// this._context.loadAccess(doc.id).then(() => {
|
|
35
|
-
// // updateAccess(doc.access!);
|
|
36
|
-
// this.loading = false;
|
|
37
|
-
// });
|
|
38
|
-
// return;
|
|
39
|
-
// }
|
|
40
|
-
updateAccess(doc);
|
|
41
|
-
};
|
|
42
|
-
this.setShowInherited = (status) => {
|
|
43
|
-
this.showInherited = status;
|
|
44
|
-
};
|
|
45
|
-
this.setRole = (role, key) => {
|
|
46
|
-
const line = this._accesses.get(key);
|
|
47
|
-
if (line) {
|
|
48
|
-
line.role = role;
|
|
49
|
-
this._accesses.set(key, line);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
this.removeAccess = (key) => {
|
|
53
|
-
this._accesses.delete(key);
|
|
54
|
-
};
|
|
55
|
-
if (!_context)
|
|
56
|
-
console.error("AppContext not provided.");
|
|
57
|
-
}
|
|
58
|
-
saveChanges(id) {
|
|
59
|
-
this.saving = true;
|
|
60
|
-
this._context
|
|
61
|
-
.editAccess(id, this.inherit, this.accesses
|
|
62
|
-
.filter(x => x.item.inherited === false)
|
|
63
|
-
.map(x => ({ unitId: x.item.contact.id, role: x.item.role })))
|
|
64
|
-
.then(async () => {
|
|
65
|
-
this.update(await this._context.loadAccess(id));
|
|
66
|
-
this.saving = false;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
addAccess(newLine) {
|
|
70
|
-
for (const x of this._accesses) {
|
|
71
|
-
if (x[1].role === newLine.role && x[1].contact.id === newLine.contact.id)
|
|
72
|
-
// same role
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
this._accesses.set(uuid(), newLine);
|
|
76
|
-
}
|
|
77
|
-
get accesses() {
|
|
78
|
-
const result = [];
|
|
79
|
-
for (const i of this._accesses) {
|
|
80
|
-
if (this.showInherited || i[1].inherited === false)
|
|
81
|
-
result.push({ key: i[0], item: toJS(i[1]) });
|
|
82
|
-
}
|
|
83
|
-
return result;
|
|
84
|
-
}
|
|
85
|
-
get hasChanges() {
|
|
86
|
-
// no data
|
|
87
|
-
if (!this.originalData) {
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
const modifiedData = {
|
|
91
|
-
inherit: this.inherit,
|
|
92
|
-
includes: [...this._accesses.values()].map(value => toJS(value))
|
|
93
|
-
};
|
|
94
|
-
return !isEqual(toJS(this.originalData), modifiedData);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
__decorate([
|
|
98
|
-
observable
|
|
99
|
-
], PeopleAccessState.prototype, "loading", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
observable
|
|
102
|
-
], PeopleAccessState.prototype, "saving", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
observable
|
|
105
|
-
], PeopleAccessState.prototype, "showInherited", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
observable
|
|
108
|
-
], PeopleAccessState.prototype, "inherit", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
observable
|
|
111
|
-
], PeopleAccessState.prototype, "_accesses", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
observable
|
|
114
|
-
], PeopleAccessState.prototype, "originalData", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
action
|
|
117
|
-
], PeopleAccessState.prototype, "clear", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
action
|
|
120
|
-
], PeopleAccessState.prototype, "reset", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
action
|
|
123
|
-
], PeopleAccessState.prototype, "saveChanges", null);
|
|
124
|
-
__decorate([
|
|
125
|
-
action
|
|
126
|
-
], PeopleAccessState.prototype, "update", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
action
|
|
129
|
-
], PeopleAccessState.prototype, "setShowInherited", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
action
|
|
132
|
-
], PeopleAccessState.prototype, "setRole", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
action
|
|
135
|
-
], PeopleAccessState.prototype, "addAccess", null);
|
|
136
|
-
__decorate([
|
|
137
|
-
action
|
|
138
|
-
], PeopleAccessState.prototype, "removeAccess", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
computed
|
|
141
|
-
], PeopleAccessState.prototype, "accesses", null);
|
|
142
|
-
__decorate([
|
|
143
|
-
computed
|
|
144
|
-
], PeopleAccessState.prototype, "hasChanges", null);
|
|
145
|
-
//# sourceMappingURL=PeopleAccessState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PeopleAccessState.js","sourceRoot":"","sources":["../../../src/components/PeopleAccess/PeopleAccessState.ts"],"names":[],"mappings":";AAKA,OAAO,EAAiB,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,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ACvB,OAAO,KAAK,CAAC;SACb;QACD,MAAM,YAAY,GAAG;YACpB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChE,CAAC;QAEF,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC;IACxD,CAAC;CACD;AArHY;IAAX,UAAU;kDAAwB;AACvB;IAAX,UAAU;iDAAuB;AACtB;IAAX,UAAU;wDAA8B;AAC7B;IAAX,UAAU;kDAAwB;AACvB;IAAX,UAAU;oDAAkF;AAGjF;IAAX,UAAU;uDAA+C;AAO1D;IADC,MAAM;gDAIL;AAGF;IADC,MAAM;gDAQL;AAGF;IADC,MAAM;oDAeN;AAGD;IADC,MAAM;iDAiBL;AAGF;IADC,MAAM;2DAGL;AAGF;IADC,MAAM;kDAOL;AAGF;IADC,MAAM;kDAQN;AAGD;IADC,MAAM;uDAGL;AAGF;IADC,QAAQ;iDAQR;AAGD;IADC,QAAQ;mDAYR"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { ClickParam } from "@voplus/antd/es/menu";
|
|
3
|
-
export interface IRoleSelectorProps {
|
|
4
|
-
type?: string;
|
|
5
|
-
role: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onChange?: (clickParam: ClickParam) => void;
|
|
8
|
-
}
|
|
9
|
-
export default class RoleSelector extends React.Component<IRoleSelectorProps, any> {
|
|
10
|
-
renderButton: () => JSX.Element;
|
|
11
|
-
renderMenu: () => JSX.Element;
|
|
12
|
-
render(): JSX.Element;
|
|
13
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Button, Dropdown, Menu } from "@voplus/antd";
|
|
3
|
-
import { EditOutlined, EyeOutlined, LockOutlined, UserOutlined } from "@ant-design/icons";
|
|
4
|
-
import { Access } from "./constants";
|
|
5
|
-
const commonOpt = [
|
|
6
|
-
React.createElement(Menu.Item, { key: Access.role.full },
|
|
7
|
-
React.createElement(UserOutlined, null),
|
|
8
|
-
" Full"),
|
|
9
|
-
React.createElement(Menu.Item, { key: Access.role.read },
|
|
10
|
-
React.createElement(EyeOutlined, null),
|
|
11
|
-
" Read"),
|
|
12
|
-
React.createElement(Menu.Item, { key: Access.role.write },
|
|
13
|
-
React.createElement(EditOutlined, null),
|
|
14
|
-
" Write")
|
|
15
|
-
];
|
|
16
|
-
// Used in access list line to change role immediately inside the table
|
|
17
|
-
export default class RoleSelector extends React.Component {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.renderButton = () => {
|
|
21
|
-
const { role } = this.props;
|
|
22
|
-
let icon;
|
|
23
|
-
switch (role) {
|
|
24
|
-
case Access.role.read:
|
|
25
|
-
icon = React.createElement(EyeOutlined, null);
|
|
26
|
-
break;
|
|
27
|
-
case Access.role.write:
|
|
28
|
-
icon = React.createElement(EditOutlined, null);
|
|
29
|
-
break;
|
|
30
|
-
case Access.role.writelock:
|
|
31
|
-
icon = React.createElement(LockOutlined, null);
|
|
32
|
-
break;
|
|
33
|
-
default:
|
|
34
|
-
icon = React.createElement(UserOutlined, null);
|
|
35
|
-
}
|
|
36
|
-
return React.createElement(Button, { icon: icon }, role);
|
|
37
|
-
};
|
|
38
|
-
this.renderMenu = () => {
|
|
39
|
-
const { type, role, onChange } = this.props;
|
|
40
|
-
return (React.createElement(Menu, { onClick: onChange }, role === Access.role.owner ? (React.createElement(Menu.Item, { key: Access.role.owner },
|
|
41
|
-
React.createElement(UserOutlined, null),
|
|
42
|
-
" Owner")) : (commonOpt)));
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
const { disabled } = this.props;
|
|
47
|
-
return (React.createElement(Dropdown, { trigger: ["click"], overlay: this.renderMenu(), disabled: disabled }, this.renderButton()));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=RoleSelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RoleSelector.js","sourceRoot":"","sources":["../../../src/components/PeopleAccess/RoleSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1F,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,MAAM,SAAS,GAAG;IACjB,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI;QAC/B,oBAAC,YAAY,OAAG;gBACL;IACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI;QAC/B,oBAAC,WAAW,OAAG;gBACJ;IACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK;QAChC,oBAAC,YAAY,OAAG;iBACL;CACZ,CAAC;AASF,uEAAuE;AACvE,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAkC;IAAlF;;QACQ,iBAAY,GAAG,GAAG,EAAE;YAC1B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAC5B,IAAI,IAAI,CAAC;YACT,QAAQ,IAAI,EAAE;gBACb,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI;oBACpB,IAAI,GAAG,oBAAC,WAAW,OAAG,CAAC;oBACvB,MAAM;gBACP,KAAK,MAAM,CAAC,IAAI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AAK;QACV,GAAG,EAAE,KAAK;KACV;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,WAAW;QACtB,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PeopleAccess } from "./PeopleAccess";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/PeopleAccess/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default";
|
|
2
|
-
|
|
3
|
-
.peopleAccess {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
:global {
|
|
9
|
-
.peopleAccessHeader {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
padding: @padding-sm;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// remove ugly border
|
|
16
|
-
.ant-table-placeholder {
|
|
17
|
-
border: 0;
|
|
18
|
-
}
|
|
19
|
-
//make sure full height
|
|
20
|
-
.ant-skeleton,
|
|
21
|
-
.peopleAccessList {
|
|
22
|
-
flex: 1;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.peopleAccessMenu {
|
|
26
|
-
height: 0;
|
|
27
|
-
opacity: 0;
|
|
28
|
-
transition: height 0.2s, opacity 0.2s;
|
|
29
|
-
text-align: right;
|
|
30
|
-
padding: 0 @padding-sm;
|
|
31
|
-
|
|
32
|
-
> button {
|
|
33
|
-
margin-left: 12px;
|
|
34
|
-
}
|
|
35
|
-
&.visible {
|
|
36
|
-
opacity: 1;
|
|
37
|
-
height: 40px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// newAccessSelector
|
|
44
|
-
.newAccessSelector {
|
|
45
|
-
padding: @padding-md;
|
|
46
|
-
background: @background-color-base;
|
|
47
|
-
|
|
48
|
-
:global {
|
|
49
|
-
.input {
|
|
50
|
-
display: flex;
|
|
51
|
-
margin-bottom: 18px;
|
|
52
|
-
> div:nth-child(2) {
|
|
53
|
-
margin-left: 6px;
|
|
54
|
-
margin-right: 6px;
|
|
55
|
-
flex: 1;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.button {
|
|
59
|
-
text-align: right;
|
|
60
|
-
> button {
|
|
61
|
-
margin-left: 8px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Modal } from "@voplus/antd";
|
|
3
|
-
import { PeopleAccess } from "../../components/PeopleAccess";
|
|
4
|
-
import styles from "./index.less";
|
|
5
|
-
const PermissionModal = (props) => {
|
|
6
|
-
return (React.createElement(Modal, { width: 600, className: styles["task-permission-modal"], title: "Permission", visible: true, footer: null, onCancel: props.onChange },
|
|
7
|
-
React.createElement(PeopleAccess, { id: props.id })));
|
|
8
|
-
};
|
|
9
|
-
export default PermissionModal;
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/PermissionModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,eAAe,GAAG,CAAC,KAA4C,EAAE,EAAE;IACxE,OAAO,CACN,oBAAC,KAAK,IACL,KAAK,EAAE,GAAG,EACV,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAC1C,KAAK,EAAC,YAAY,EAClB,OAAO,EAAE,IAAI,EACb,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACvB,CACR,CAAC;AACH,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UnitUIService as Base, UnitQuickViewProps, UnitSelectDialogProps } from "@voplus/morpho-document-core";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export declare class UnitUIService extends Base {
|
|
4
|
-
renderSelectDialog(props: UnitSelectDialogProps): React.ReactNode;
|
|
5
|
-
renderQuickView(props: UnitQuickViewProps): React.ReactNode;
|
|
6
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UnitUIService as Base } from "@voplus/morpho-document-core";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import UnitQuickView from "./components/UnitQuickView";
|
|
4
|
-
import UnitSelectDialog from "./components/UnitsSelectDialog";
|
|
5
|
-
export class UnitUIService extends Base {
|
|
6
|
-
renderSelectDialog(props) {
|
|
7
|
-
return React.createElement(UnitSelectDialog, Object.assign({}, props));
|
|
8
|
-
}
|
|
9
|
-
renderQuickView(props) {
|
|
10
|
-
return React.createElement(UnitQuickView, Object.assign({}, props));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=UnitUIService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitUIService.js","sourceRoot":"","sources":["../../../src/modules/unit/UnitUIService.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,IAAI,IAAI,EAGrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAE9D,MAAM,OAAO,aAAc,SAAQ,IAAI;IAC/B,kBAAkB,CAAC,KAA4B;QACrD,OAAO,oBAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAC;IACxC,CAAC;IACM,eAAe,CAAC,KAAyB;QAC/C,OAAO,oBAAC,aAAa,oBAAK,KAAK,EAAI,CAAC;IACrC,CAAC;CACD"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Popover, Timeline } from "@voplus/antd";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import { State, getActionIcon, getActionIconColor } from "./state";
|
|
4
|
-
import { faClone, faFilePlus, faPencilAlt, faTrashAlt, faUpload } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import PageListView from "@voplus/morpho-ui/es/controls/PageListView";
|
|
7
|
-
import classnames from "classnames";
|
|
8
|
-
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
9
|
-
import { localFormat } from "../../data/StoreContext";
|
|
10
|
-
import styles from "./index.less";
|
|
11
|
-
import { useObserver } from "mobx-react-lite";
|
|
12
|
-
import { useUnitActivityListEffect } from "../../data";
|
|
13
|
-
// import { getTypeIcon } from "../helper";
|
|
14
|
-
library.add(faPencilAlt, faTrashAlt, faClone, faFilePlus, faUpload);
|
|
15
|
-
const ActivityLog = (props) => {
|
|
16
|
-
const { id } = props;
|
|
17
|
-
const [state] = useState(new State());
|
|
18
|
-
const loadData = () => {
|
|
19
|
-
state.loading = true;
|
|
20
|
-
state.page = state.page + 1;
|
|
21
|
-
};
|
|
22
|
-
useUnitActivityListEffect(id, list => {
|
|
23
|
-
state.activitys = list || [];
|
|
24
|
-
state.loading = false;
|
|
25
|
-
}, {
|
|
26
|
-
Page: { Page: state.page, PageSize: 50 }
|
|
27
|
-
});
|
|
28
|
-
const dotElement = (action, avatar) => {
|
|
29
|
-
return (React.createElement("span", { className: "dot-icon", style: { borderColor: getActionIconColor(action) } },
|
|
30
|
-
React.createElement(FAIcon, { icon: getActionIcon(action), color: getActionIconColor(action) })));
|
|
31
|
-
};
|
|
32
|
-
const tryRenderTargetObjects = (objects) => {
|
|
33
|
-
return (objects &&
|
|
34
|
-
objects.length &&
|
|
35
|
-
objects.map((o, index) => (React.createElement("span", { key: o.id },
|
|
36
|
-
index !== 0 ? "," : "",
|
|
37
|
-
o.type === "DocumentLink" ? o.target.name : o.name))));
|
|
38
|
-
};
|
|
39
|
-
const tryRenderPropertyObjects = (objects) => {
|
|
40
|
-
return (objects &&
|
|
41
|
-
objects.length && (React.createElement("div", { className: classnames("property-objects", { multiple: objects.length > 1 }) }, objects.map(o => (React.createElement("span", { key: o.name },
|
|
42
|
-
React.createElement("span", { className: "property-name" }, o.name),
|
|
43
|
-
" to",
|
|
44
|
-
" ",
|
|
45
|
-
o.value.length > 30 ? (React.createElement(Popover, { content: o.value },
|
|
46
|
-
React.createElement("span", { className: "property-value" }, `${o.value.substring(0, 30)}...`))) : (React.createElement("span", { className: "property-value" }, o.value))))))));
|
|
47
|
-
};
|
|
48
|
-
return useObserver(() => (
|
|
49
|
-
// <div className={classnames(styles["activity-log"], props.className)}>
|
|
50
|
-
React.createElement(PageListView, { data: state.activitys, loading: !!state.loading, loadMore: loadData, page: state.page, pageSize: 50 }, (list) => (React.createElement(Timeline, { className: styles["activity-log"] }, list.length &&
|
|
51
|
-
list.map((item) => (React.createElement(Timeline.Item, { key: item.id, dot: dotElement(item.action, item.avatar) },
|
|
52
|
-
React.createElement("div", null,
|
|
53
|
-
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
54
|
-
React.createElement("span", { className: "action" }, item.action),
|
|
55
|
-
tryRenderTargetObjects(item.targetObjects),
|
|
56
|
-
tryRenderPropertyObjects(item.propertyObjects)),
|
|
57
|
-
React.createElement("p", { className: "date-time" }, localFormat(item.createDate, "HH:mm:ss DD MMM, YYYY"))))))))
|
|
58
|
-
// </div>
|
|
59
|
-
));
|
|
60
|
-
};
|
|
61
|
-
export default ActivityLog;
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/ActivityLog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,QAAQ,EAAW,MAAM,cAAc,CAAC;AAKlE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,EACN,OAAO,EACP,UAAU,EACV,WAAW,EACX,UAAU,EACV,QAAQ,EACR,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,2CAA2C;AAE3C,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;AACpE,MAAM,WAAW,GAAG,CAAC,KAAyC,EAAE,EAAE;IACjE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,QAAQ,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E,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;YACrE;gBACC,8BAAM,SAAS,EAAC,WAAW,IAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAQ;gBAC/E,8BAAM,SAAS,EAAC,QAAQ,IAAE,IAAI,CAAC,MAAM,CAAQ;gBAE5C,sBAAsB,CAAC,IAAI,CAAC,aAAa,CAAC;gBAC1C,wBAAwB,CAAC,IAAI,CAAC,eAAe,CAAC,CAC1C;YAGN,2BAAG,SAAS,EAAC,WAAW,IAAE,WAAW,CAAC,IAAI,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAK,CACrE,CAChB,CAAC,CACO,CACX,CACa;IACf,SAAS;KACT,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
.activity-log {
|
|
2
|
-
height: 100%;
|
|
3
|
-
padding: 13px 0 0 15px;
|
|
4
|
-
margin: 15px 20px;
|
|
5
|
-
:global {
|
|
6
|
-
.ant-avatar-image {
|
|
7
|
-
width: 34px;
|
|
8
|
-
height: 34px;
|
|
9
|
-
border: 1px solid #f2f2f2;
|
|
10
|
-
}
|
|
11
|
-
.dot-icon {
|
|
12
|
-
display: inline-block;
|
|
13
|
-
width: 34px;
|
|
14
|
-
height: 34px;
|
|
15
|
-
line-height: 32px;
|
|
16
|
-
border: 1px solid transparent;
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
font-size: 17px;
|
|
19
|
-
}
|
|
20
|
-
.ant-timeline-item-content {
|
|
21
|
-
top: -11px;
|
|
22
|
-
margin: 0 0 0 60px;
|
|
23
|
-
line-height: 22px;
|
|
24
|
-
color: #333;
|
|
25
|
-
.user-name {
|
|
26
|
-
font-weight: bold;
|
|
27
|
-
color: #000;
|
|
28
|
-
padding-right: 10px;
|
|
29
|
-
}
|
|
30
|
-
.action {
|
|
31
|
-
padding-right: 15px;
|
|
32
|
-
font-weight: 500;
|
|
33
|
-
color: #000;
|
|
34
|
-
font-style: italic;
|
|
35
|
-
}
|
|
36
|
-
.anticon {
|
|
37
|
-
margin-right: 5px;
|
|
38
|
-
}
|
|
39
|
-
.date-time {
|
|
40
|
-
font-size: 12px;
|
|
41
|
-
color: #444;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
.property-objects {
|
|
45
|
-
display: inline;
|
|
46
|
-
|
|
47
|
-
&.multiple {
|
|
48
|
-
display: block;
|
|
49
|
-
|
|
50
|
-
> span {
|
|
51
|
-
display: block;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.property-name {
|
|
55
|
-
font-weight: 600;
|
|
56
|
-
font-style: italic;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.property-value {
|
|
60
|
-
font-style: italic;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IActivityLog } from "@voplus/morpho-collaboration/es/data/interfaces";
|
|
2
|
-
export declare const ActivityActionType: {
|
|
3
|
-
Created: string;
|
|
4
|
-
Changed: string;
|
|
5
|
-
Deleted: string;
|
|
6
|
-
Published: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const getActionIcon: any;
|
|
9
|
-
export declare const getActionIconColor: (action: string) => "" | "#765fee" | "#ffca83" | "#ff7285";
|
|
10
|
-
export declare class State {
|
|
11
|
-
activitys: IActivityLog[];
|
|
12
|
-
page: number;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { observable } from "mobx";
|
|
3
|
-
export const ActivityActionType = {
|
|
4
|
-
Created: "Created",
|
|
5
|
-
Changed: "Changed",
|
|
6
|
-
Deleted: "Deleted",
|
|
7
|
-
Published: "Published"
|
|
8
|
-
};
|
|
9
|
-
export const getActionIcon = (action) => {
|
|
10
|
-
switch (action) {
|
|
11
|
-
case ActivityActionType.Created:
|
|
12
|
-
return ["fal", "file-plus"];
|
|
13
|
-
case ActivityActionType.Changed:
|
|
14
|
-
return ["fal", "pencil-alt"];
|
|
15
|
-
case ActivityActionType.Deleted:
|
|
16
|
-
return ["fal", "trash-alt"];
|
|
17
|
-
case ActivityActionType.Published:
|
|
18
|
-
return ["fal", "upload"];
|
|
19
|
-
default:
|
|
20
|
-
return "";
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export const getActionIconColor = (action) => {
|
|
24
|
-
switch (action) {
|
|
25
|
-
case ActivityActionType.Created:
|
|
26
|
-
return "#765fee";
|
|
27
|
-
case ActivityActionType.Changed:
|
|
28
|
-
return "#ffca83";
|
|
29
|
-
case ActivityActionType.Deleted:
|
|
30
|
-
return "#ff7285";
|
|
31
|
-
default:
|
|
32
|
-
return "";
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
export class State {
|
|
36
|
-
constructor() {
|
|
37
|
-
this.activitys = [];
|
|
38
|
-
this.page = 1;
|
|
39
|
-
this.loading = true;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
__decorate([
|
|
43
|
-
observable
|
|
44
|
-
], State.prototype, "activitys", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
observable
|
|
47
|
-
], State.prototype, "page", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
observable
|
|
50
|
-
], State.prototype, "loading", void 0);
|
|
51
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/ActivityLog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACtB,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAQ,CAAC,MAAc,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE;QACf,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC7B,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAC9B,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC7B,KAAK,kBAAkB,CAAC,SAAS;YAChC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC1B;YACC,OAAO,EAAE,CAAC;KACX;AACF,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE;QACf,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB;YACC,OAAO,EAAE,CAAC;KACX;AACF,CAAC,CAAC;AACF,MAAM,OAAO,KAAK;IAAlB;QACa,cAAS,GAAmB,EAAE,CAAC;QAC/B,SAAI,GAAG,CAAC,CAAC;QACT,YAAO,GAAG,IAAI,CAAC;IAC5B,CAAC;CAAA;AAHY;IAAX,UAAU;wCAAgC;AAC/B;IAAX,UAAU;mCAAU;AACT;IAAX,UAAU;sCAAgB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AddUnitDropdownProps } from "./state";
|
|
3
|
-
/** unitList 新增 下列更多菜单*/
|
|
4
|
-
declare const AddUnitDropdown: {
|
|
5
|
-
(props: AddUnitDropdownProps): JSX.Element;
|
|
6
|
-
defaultProps: {
|
|
7
|
-
types: string[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default AddUnitDropdown;
|