@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/Members/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAY1C,MAAM,OAAO,KAAK;IAAlB;QAIoB,YAAO,GAAG,KAAK,CAAC;QACnC,oBAAoB;QACD,YAAO,GAAG,KAAK,CAAC;IAMpC,CAAC;IAHO,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC;CACD;AATY;IAAX,UAAU;iCAAmB;AAClB;IAAX,UAAU;sCAAwB;AAEvB;IAAX,UAAU;sCAAwB;AAGnC;IADC,MAAM;qCAGN"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { unitType } from "../../data";
|
|
3
|
-
/** new unit from */
|
|
4
|
-
declare const NewUnitForm: (props: {
|
|
5
|
-
parentId: string;
|
|
6
|
-
className?: string | undefined;
|
|
7
|
-
simple?: boolean | undefined;
|
|
8
|
-
type?: "Team" | "Organization" | "Account" | "User" | undefined;
|
|
9
|
-
onSave?: ((params?: any) => void) | undefined;
|
|
10
|
-
onCancel?: (() => void) | undefined;
|
|
11
|
-
}) => JSX.Element;
|
|
12
|
-
export default NewUnitForm;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Button, Form, Input, Row, Select, Spin } from "@voplus/antd";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
import { useUnitStore } from "../../data";
|
|
4
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { State } from "./state";
|
|
6
|
-
import classnames from "classnames";
|
|
7
|
-
import { faListAlt } from "@fortawesome/pro-light-svg-icons";
|
|
8
|
-
import styles from "./index.less";
|
|
9
|
-
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
10
|
-
import { useObserver } from "mobx-react-lite";
|
|
11
|
-
/** new unit from */
|
|
12
|
-
const NewUnitForm = (props) => {
|
|
13
|
-
const { Option } = Select;
|
|
14
|
-
const store = useUnitStore();
|
|
15
|
-
const asideContext = useAsideContentContext();
|
|
16
|
-
const [state] = useState(new State(store));
|
|
17
|
-
state.params.parentId = props.parentId;
|
|
18
|
-
// state.params.parentId = "c896a84e-b31a-4d10-a181-5d34a21b172d";
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
props.type ? (state.params.type = props.type) : (state.params.type = "Person");
|
|
21
|
-
}, [props.type]);
|
|
22
|
-
return useObserver(() => (React.createElement("div", { className: classnames(styles["new-document-form"], { "sub-document-simply-form": props.simple }, props.className) },
|
|
23
|
-
React.createElement(Form, null, props.simple ? (React.createElement(Form.Item, null,
|
|
24
|
-
React.createElement(Spin, { spinning: !!props.simple && !!state.loading },
|
|
25
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
26
|
-
React.createElement(Input, { autoFocus: true, value: state.params.name, placeholder: `Add a for ${props.type} this unit`, onChange: e => (state.params.name = e.target.value), onPressEnter: () => (!!props.simple ? state.onSubmit() : null), onKeyDown: onKeyDown }),
|
|
27
|
-
props.simple && (React.createElement("span", { className: "detailed" },
|
|
28
|
-
React.createElement(FAIcon, { icon: faListAlt, size: "lg" }))))))) : (React.createElement(React.Fragment, null,
|
|
29
|
-
React.createElement(Form.Item, null,
|
|
30
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
31
|
-
React.createElement(Select, { showSearch: true, defaultValue: "Person", placeholder: "Select a person", optionFilterProp: "children", onChange: (value) => (state.params.type = value) },
|
|
32
|
-
React.createElement(Option, { value: "Person" }, "Person"),
|
|
33
|
-
React.createElement(Option, { value: "Organization" }, "Organization")),
|
|
34
|
-
React.createElement(Input, { autoFocus: true, value: state.params.name, placeholder: `Add a ${state.params.type} for this unit`, onChange: e => (state.params.name = e.target.value) }))),
|
|
35
|
-
React.createElement(Form.Item, null,
|
|
36
|
-
React.createElement(Row, { justify: "end", className: "margin-top-10" },
|
|
37
|
-
React.createElement(Button, { danger: true, ghost: true, onClick: onCancel }, "Cancel"),
|
|
38
|
-
React.createElement(Button, { type: "primary", loading: !!state.loading, className: "margin-left-15", onClick: () => state.onSubmit() }, "Submit")))))))));
|
|
39
|
-
/** cancel NewDocumentForm page */
|
|
40
|
-
function onCancel() {
|
|
41
|
-
state.params = state.Params;
|
|
42
|
-
return asideContext.closeAside();
|
|
43
|
-
}
|
|
44
|
-
function onKeyDown(e) {
|
|
45
|
-
if (e.keyCode !== 27)
|
|
46
|
-
return;
|
|
47
|
-
onCancel();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
export default NewUnitForm;
|
|
51
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,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,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
3
|
-
|
|
4
|
-
.new-document-form {
|
|
5
|
-
:global {
|
|
6
|
-
.form-item-layout {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
font-size: 13px;
|
|
10
|
-
.ant-select {
|
|
11
|
-
width: 200px;
|
|
12
|
-
margin-right: 20px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
.ant-form-item {
|
|
16
|
-
margin-bottom: 10px;
|
|
17
|
-
}
|
|
18
|
-
.form-buttom {
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: end;
|
|
21
|
-
}
|
|
22
|
-
.detailed {
|
|
23
|
-
font-size: 20px;
|
|
24
|
-
margin-left: 10px;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
&:global(.sub-document-simply-form) {
|
|
29
|
-
flex: none;
|
|
30
|
-
padding: 10px 20px 0 20px;
|
|
31
|
-
// border-top: #f2f2f2 solid 1px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UnitStore } from "../../data";
|
|
2
|
-
export declare class State {
|
|
3
|
-
private _store;
|
|
4
|
-
constructor(_store: UnitStore);
|
|
5
|
-
Params: {
|
|
6
|
-
parentId: string;
|
|
7
|
-
name: string;
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
/** new unit params */
|
|
11
|
-
params: {
|
|
12
|
-
parentId: string;
|
|
13
|
-
name: string;
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
/** loading */
|
|
17
|
-
loading: boolean;
|
|
18
|
-
/** new unit submit function */
|
|
19
|
-
onSubmit: () => Promise<any>;
|
|
20
|
-
/** input KeyDown */
|
|
21
|
-
onKeyDown(e: any): void;
|
|
22
|
-
}
|
|
@@ -1,49 +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(_store) {
|
|
6
|
-
this._store = _store;
|
|
7
|
-
this.Params = {
|
|
8
|
-
parentId: "",
|
|
9
|
-
name: "",
|
|
10
|
-
type: "Team"
|
|
11
|
-
};
|
|
12
|
-
/** new unit params */
|
|
13
|
-
this.params = this.Params;
|
|
14
|
-
/** loading */
|
|
15
|
-
this.loading = false;
|
|
16
|
-
/** new unit submit function */
|
|
17
|
-
this.onSubmit = async () => {
|
|
18
|
-
if (!this.params.name)
|
|
19
|
-
return message.warning("Title is required!");
|
|
20
|
-
this.loading = true;
|
|
21
|
-
const name = this.params.name;
|
|
22
|
-
await this._store.createSubUnit({
|
|
23
|
-
parentId: this.params.parentId,
|
|
24
|
-
type: this.params.type,
|
|
25
|
-
name: name
|
|
26
|
-
});
|
|
27
|
-
this.loading = false;
|
|
28
|
-
// this.params.name = this.Params.name;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
/** input KeyDown */
|
|
32
|
-
onKeyDown(e) {
|
|
33
|
-
if (e.keyCode !== 27)
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
__decorate([
|
|
38
|
-
observable
|
|
39
|
-
], State.prototype, "params", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
observable
|
|
42
|
-
], State.prototype, "loading", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
action
|
|
45
|
-
], State.prototype, "onSubmit", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
action
|
|
48
|
-
], State.prototype, "onKeyDown", null);
|
|
49
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/NewUnitFor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ton } from "@voplus/morpho-ui/es/components/layout/ListView/headers";
|
|
2
|
-
import { useAutoUpdateUnitListData, useUnitListEffect, useUnitStore } from "../../data";
|
|
3
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
|
-
import React, { useEffect } from "react";
|
|
5
|
-
import { State } from "./state";
|
|
6
|
-
import AddUnitDropdown from "../AddUnitDropdown";
|
|
7
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
8
|
-
import NewUnitForm from "../NewUnitForm";
|
|
9
|
-
import UnitItem from "../UnitItem";
|
|
10
|
-
import UnitTypeFilter from "../../controls/UnitTypeFilter";
|
|
11
|
-
import classnames from "classnames";
|
|
12
|
-
import styles from "./index.less";
|
|
13
|
-
import { useDeepMemo } from "@voplus/morpho-data";
|
|
14
|
-
import { useObserver } from "mobx-react-lite";
|
|
15
|
-
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
16
|
-
const SubUnitList = (props) => {
|
|
17
|
-
const { readonly, parentId } = props;
|
|
18
|
-
const store = useUnitStore();
|
|
19
|
-
const state = useDeepMemo(() => new State(), [props.parentId]);
|
|
20
|
-
state.props = props;
|
|
21
|
-
state.id = props.parentId || "";
|
|
22
|
-
/** 建立 ListView 和useContactListEffect所需的ListDataState. 会根据parentId重建所以不需reset. */
|
|
23
|
-
const list = useCreateListDataState({
|
|
24
|
-
filterDefaults: {
|
|
25
|
-
filters: state.filters
|
|
26
|
-
}
|
|
27
|
-
}, [parentId]);
|
|
28
|
-
/** 如果 list.filters.options变更了就重渲染,使下一行的useContactListEffect 可以接收新参数*/
|
|
29
|
-
useRenderOnChange(() => list.filters.options);
|
|
30
|
-
/** 把ListDataState传给useContactListEffect,使之可以自動更新loading, hasmore. */
|
|
31
|
-
useUnitListEffect(list, result => list.union(result), list.filters.options);
|
|
32
|
-
/** useOnNewContact, useOnDeleteContact的sugar syntax 自動更新list. */
|
|
33
|
-
useAutoUpdateUnitListData(list, d => d.parentNodeId === parentId);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
state.clearAdd();
|
|
36
|
-
}, [parentId]);
|
|
37
|
-
return useObserver(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
38
|
-
React.createElement("div", { className: classnames(styles["sub-units-list"], props.className) },
|
|
39
|
-
React.createElement(ListView, { className: "units-list-view", renderId: parentId, headerProps: {
|
|
40
|
-
header: props.multiple ? (React.createElement("div", null,
|
|
41
|
-
React.createElement(BatchHeader, { viewTitle: "Sub-Units", buttons: [
|
|
42
|
-
React.createElement(DeleteButton, { execute: onDelete, key: "DeleteButton" }),
|
|
43
|
-
React.createElement(MoveButton, { execute: onMove, key: "MoveButton" })
|
|
44
|
-
] }),
|
|
45
|
-
props.addAble && (React.createElement(AddUnitDropdown, { className: "add-unit-dropdown", types: ["Organization", "Team"], onItemClick: (val) => state.onItemClick(val), onCancelClick: () => state.clearAdd() })))) : (undefined),
|
|
46
|
-
searchHeader: props.type === "select" ? true : false,
|
|
47
|
-
addAble: props.addAble,
|
|
48
|
-
filterViewProps: {
|
|
49
|
-
columns: [React.createElement(UnitTypeFilter, { key: "Type" })]
|
|
50
|
-
}
|
|
51
|
-
}, moveAfter: moveAfter, renderItem: ({ item, index, multiple, connectDragSource }) => (React.createElement(React.Fragment, null, props.type === "select" ? (React.createElement(UnitItem, { id: item.id, index: index, type: "select", onSelectUnit: props.onSelectUnit })) : (React.createElement(UnitItem, { id: item.id, index: index, type: "sub", multiple: multiple, reload: !!readonly })))) }),
|
|
52
|
-
state.addAble && React.createElement(NewUnitForm, { parentId: props.parentId, simple: true, type: state.type })))));
|
|
53
|
-
function onMove(state) {
|
|
54
|
-
store.cut(state.ids);
|
|
55
|
-
}
|
|
56
|
-
// order by sub unit
|
|
57
|
-
async function moveAfter(id, afterId) {
|
|
58
|
-
await store.moveAfter(id, afterId);
|
|
59
|
-
}
|
|
60
|
-
async function onDelete(state) {
|
|
61
|
-
await store.delete(state.ids[0]);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
SubUnitList.defaultProps = {
|
|
65
|
-
addAble: true
|
|
66
|
-
};
|
|
67
|
-
export default SubUnitList;
|
|
68
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/SubUnitList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAGN,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAE/C,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAEjD,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC5C,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC,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B,CACF,CACe,CACjB,GACA;YACD,KAAK,CAAC,OAAO,IAAI,oBAAC,WAAW,IAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,MAAM,QAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,CAC/E,CACoB,CAC3B,CAAC,CAAC;IAEH,SAAS,MAAM,CAAC,KAAwB;QACvC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IAED,oBAAoB;IACpB,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,KAAK,UAAU,QAAQ,CAAC,KAAwB;QAC/C,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;AACF,CAAC,CAAC;AAEF,WAAW,CAAC,YAAY,GAAG;IAC1B,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
|
|
3
|
-
.sub-units-list {
|
|
4
|
-
:global {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
height: 100%;
|
|
8
|
-
.multiple-icon-text {
|
|
9
|
-
font-size: 15px;
|
|
10
|
-
font-weight: 600;
|
|
11
|
-
color: #000;
|
|
12
|
-
}
|
|
13
|
-
.list-view-header {
|
|
14
|
-
position: relative;
|
|
15
|
-
.add-unit-dropdown {
|
|
16
|
-
position: absolute;
|
|
17
|
-
right: 20px;
|
|
18
|
-
top: 50%;
|
|
19
|
-
transform: translateY(-50%);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
.units-list-view {
|
|
23
|
-
.list-view-header .plus-icon {
|
|
24
|
-
background: transparent;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { IUnit, unitType } from "../../data";
|
|
2
|
-
export declare type UnitListProps = {
|
|
3
|
-
parentId: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
scrollParentRef?: any;
|
|
6
|
-
header?: boolean;
|
|
7
|
-
readonly?: boolean;
|
|
8
|
-
multiple?: boolean;
|
|
9
|
-
type?: "detail" | "sub" | "select" | "drive";
|
|
10
|
-
viewTitle?: string;
|
|
11
|
-
addAble?: boolean;
|
|
12
|
-
onSelectUnit?: (params?: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export declare class State {
|
|
15
|
-
props: UnitListProps;
|
|
16
|
-
id: string;
|
|
17
|
-
list: IUnit[];
|
|
18
|
-
addAble: boolean;
|
|
19
|
-
/** add unit type */
|
|
20
|
-
type: unitType;
|
|
21
|
-
/** unitlist filter name */
|
|
22
|
-
name: string;
|
|
23
|
-
/** all units to check */
|
|
24
|
-
checkAll: boolean;
|
|
25
|
-
clearAdd(): void;
|
|
26
|
-
/** AddDocDropdown(新增type下拉Menu) item click */
|
|
27
|
-
onItemClick(val: unitType): void;
|
|
28
|
-
/**
|
|
29
|
-
* document filters
|
|
30
|
-
* @return document filters
|
|
31
|
-
*/
|
|
32
|
-
get filters(): any[];
|
|
33
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, computed, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.id = "";
|
|
6
|
-
this.list = [];
|
|
7
|
-
this.addAble = false;
|
|
8
|
-
/** unitlist filter name */
|
|
9
|
-
this.name = "";
|
|
10
|
-
/** all units to check */
|
|
11
|
-
this.checkAll = false;
|
|
12
|
-
}
|
|
13
|
-
clearAdd() {
|
|
14
|
-
this.addAble = false;
|
|
15
|
-
}
|
|
16
|
-
/** AddDocDropdown(新增type下拉Menu) item click */
|
|
17
|
-
onItemClick(val) {
|
|
18
|
-
this.type = val;
|
|
19
|
-
this.addAble = true;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* document filters
|
|
23
|
-
* @return document filters
|
|
24
|
-
*/
|
|
25
|
-
get filters() {
|
|
26
|
-
let filters = [];
|
|
27
|
-
if (this.id) {
|
|
28
|
-
filters.push({ c: "ParentNodeId", o: "=", l: "And", v1: this.id });
|
|
29
|
-
}
|
|
30
|
-
if (this.name) {
|
|
31
|
-
filters.push({ c: "Name", o: "contains", v1: this.name, l: "And" });
|
|
32
|
-
}
|
|
33
|
-
if (this.props.type !== "select") {
|
|
34
|
-
filters.push({ c: "Type", o: "=", l: "And", v1: "Group" });
|
|
35
|
-
}
|
|
36
|
-
filters = [...filters];
|
|
37
|
-
return filters;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
__decorate([
|
|
41
|
-
observable
|
|
42
|
-
], State.prototype, "id", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
observable
|
|
45
|
-
], State.prototype, "list", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
observable
|
|
48
|
-
], State.prototype, "addAble", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
observable
|
|
51
|
-
], State.prototype, "type", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
observable
|
|
54
|
-
], State.prototype, "name", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
observable
|
|
57
|
-
], State.prototype, "checkAll", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
action
|
|
60
|
-
], State.prototype, "clearAdd", null);
|
|
61
|
-
__decorate([
|
|
62
|
-
action
|
|
63
|
-
], State.prototype, "onItemClick", null);
|
|
64
|
-
__decorate([
|
|
65
|
-
computed
|
|
66
|
-
], State.prototype, "filters", null);
|
|
67
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources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AO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;QACvB,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AAzCY;IAAX,UAAU;iCAAgB;AACf;IAAX,UAAU;mCAA2B;AAC1B;IAAX,UAAU;sCAAwB;AAEvB;IAAX,UAAU;mCAAuB;AAEtB;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;uCAAyB;AAGpC;IADC,MAAM;qCAGN;AAID;IADC,MAAM;wCAIN;AAOD;IADC,QAAQ;oCAcR"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./index.less";
|
|
3
|
-
declare const UnitAvatar: {
|
|
4
|
-
(props: {
|
|
5
|
-
id: string;
|
|
6
|
-
index?: number;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
tooltip?: boolean;
|
|
9
|
-
size?: number | "large" | "small" | "default";
|
|
10
|
-
className?: string;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
defaultProps: {
|
|
13
|
-
size: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default UnitAvatar;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import { Avatar, Tooltip } from "@voplus/antd";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import classnames from "classnames";
|
|
5
|
-
import styles from "./index.less";
|
|
6
|
-
import { useObserver } from "mobx-react-lite";
|
|
7
|
-
import { useUnit } from "../../data";
|
|
8
|
-
const colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#3AC43A", "#FFC832"];
|
|
9
|
-
const UnitAvatar = (props) => {
|
|
10
|
-
const { id, index, size, disabled, tooltip, className } = props;
|
|
11
|
-
const contact = useUnit(id, { reload: false });
|
|
12
|
-
const avatar = useObserver(() => (React.createElement(Avatar
|
|
13
|
-
// src={contact.url}
|
|
14
|
-
, {
|
|
15
|
-
// src={contact.url}
|
|
16
|
-
size: size, className: classnames({ "avatar-item-disabled": !!disabled }, styles["avatar-item-img"], className), style: { backgroundColor: colorList[(index || 0) % 6] } }, setName(contact.name))));
|
|
17
|
-
return useObserver(() => (React.createElement(React.Fragment, null, !tooltip ? avatar : React.createElement(Tooltip, { title: contact.name }, avatar))));
|
|
18
|
-
function setName(name) {
|
|
19
|
-
let str = "";
|
|
20
|
-
name === null || name === void 0 ? void 0 : name.split(" ").forEach(r => {
|
|
21
|
-
str += r.substr(0, 1);
|
|
22
|
-
});
|
|
23
|
-
return str;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
UnitAvatar.defaultProps = {
|
|
27
|
-
size: "small"
|
|
28
|
-
};
|
|
29
|
-
export default UnitAvatar;
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitAvatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAErF,MAAM,UAAU,GAAG,CAAC,KAOnB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAChE,MAAM,OAAO,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/C,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,CAChC,oBAAC,MAAM;IACN,oBAAoB;;QAApB,oBAAoB;QACpB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,UAAU,CACpB,EAAE,sBAAsB,EAAE,CAAC,CAAC,QAAQ,EAAE,EACtC,MAAM,CAAC,iBAAiB,CAAC,EACzB,SAAS,CACT,EACD,KAAK,EAAE,EAAE,eAAe,EAAE,SAAS,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAGtD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACd,CACT,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ,QACb,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAC,OAAO,IAAC,KAAK,EAAE,OAAO,CAAC,IAAI,IAAG,MAAM,CAAW,CACrD,CACjB,CAAC,CAAC;IACH,SAAS,OAAO,CAAC,IAAY;QAC5B,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE;YAC5B,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACvB,CAAC,EAAE;QACH,OAAO,GAAG,CAAC;IACZ,CAAC;AACF,CAAC,CAAC;AACF,UAAU,CAAC,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO;CACb,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { Button, DatePicker, Form, Input } from "@voplus/antd";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
import moment from "moment";
|
|
4
|
-
import { useUnit, useUnitStore } from "../../data";
|
|
5
|
-
import { InlineEdit } from "@voplus/morpho-ui";
|
|
6
|
-
import { Scrollbars } from "react-custom-scrollbars";
|
|
7
|
-
import { State } from "./state";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import styles from "./index.less";
|
|
10
|
-
import { toJS } from "mobx";
|
|
11
|
-
import { useObserver } from "mobx-react-lite";
|
|
12
|
-
const UnitDetails = (props) => {
|
|
13
|
-
const [state] = useState(new State());
|
|
14
|
-
const store = useUnitStore();
|
|
15
|
-
state.id = props.id;
|
|
16
|
-
state.contact = useUnit(state.id, { reload: false });
|
|
17
|
-
const [form] = Form.useForm();
|
|
18
|
-
const layout = {
|
|
19
|
-
labelCol: { span: 6 },
|
|
20
|
-
wrapperCol: { span: 18 }
|
|
21
|
-
};
|
|
22
|
-
const editLayout = {
|
|
23
|
-
wrapperCol: { offset: 6, span: 16 }
|
|
24
|
-
};
|
|
25
|
-
const tailLayout = {
|
|
26
|
-
wrapperCol: { offset: 0, span: 24 }
|
|
27
|
-
};
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
state.birthday = "";
|
|
30
|
-
state.birthdayEdit = false;
|
|
31
|
-
state.addressEdit = false;
|
|
32
|
-
}, [props.id]);
|
|
33
|
-
return useObserver(() => (React.createElement("div", { className: styles["unit-details"] },
|
|
34
|
-
React.createElement(Scrollbars, { autoHide: true },
|
|
35
|
-
React.createElement(Form, { form: form, scrollToFirstError: true, onFinish: onFinish },
|
|
36
|
-
React.createElement(Form.Item, null,
|
|
37
|
-
React.createElement("div", { className: "unit-details-title" }, "CONTACT INFORMATION")),
|
|
38
|
-
React.createElement(Form.Item, { name: "phone" },
|
|
39
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
40
|
-
React.createElement("span", { className: "form-label" }, "Phone:"),
|
|
41
|
-
React.createElement(InlineEdit, { defaultValue: state.contact.phone, content: v => React.createElement("div", { className: classnames("file-name") }, v.store.value), onSave: (value) => save(value, state.contact.phone, { phone: value }) }))),
|
|
42
|
-
React.createElement(Form.Item, { name: "Address" },
|
|
43
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
44
|
-
React.createElement("span", { className: "form-label" }, "Address:"),
|
|
45
|
-
state.addressEdit ? (React.createElement("div", null,
|
|
46
|
-
React.createElement(Form.Item, { name: ["address", "line1"] },
|
|
47
|
-
React.createElement(Input, { placeholder: "line1..." })),
|
|
48
|
-
React.createElement(Form.Item, { name: ["address", "line2"] },
|
|
49
|
-
React.createElement(Input, { placeholder: "line2..." })),
|
|
50
|
-
React.createElement(Form.Item, { name: ["address", "city"] },
|
|
51
|
-
React.createElement(Input, { placeholder: "city..." })),
|
|
52
|
-
React.createElement(Form.Item, { name: ["address", "state"] },
|
|
53
|
-
React.createElement(Input, { placeholder: "state..." })),
|
|
54
|
-
React.createElement(Form.Item, { name: ["address", "postalCode"] },
|
|
55
|
-
React.createElement(Input, { placeholder: "postalCode..." })),
|
|
56
|
-
React.createElement(Form.Item, { name: ["address", "country"] },
|
|
57
|
-
React.createElement(Input, { placeholder: "country..." })))) : (React.createElement("div", { className: classnames("file-name"), onClick: addressEdit },
|
|
58
|
-
state.contact.address.country,
|
|
59
|
-
state.contact.address.state,
|
|
60
|
-
state.contact.address.city,
|
|
61
|
-
state.contact.address.line2,
|
|
62
|
-
state.contact.address.line1)))),
|
|
63
|
-
state.addressEdit && (React.createElement(Form.Item, null,
|
|
64
|
-
React.createElement("div", { className: "form-item-button" },
|
|
65
|
-
React.createElement(Button, { onClick: () => (state.addressEdit = false) }, "Cancel"),
|
|
66
|
-
React.createElement(Button, { className: "but-submit", type: "primary", htmlType: "submit" }, "Save")))),
|
|
67
|
-
React.createElement(Form.Item, { name: "email" },
|
|
68
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
69
|
-
React.createElement("span", { className: "form-label" }, "E-mail:"),
|
|
70
|
-
React.createElement(InlineEdit, { defaultValue: state.contact.email, content: v => React.createElement("div", { className: classnames("file-name") }, v.store.value), onSave: (value) => save(value, state.contact.email, { email: value }) }))),
|
|
71
|
-
state.contact.isGroup && (React.createElement(Form.Item, { name: "site" },
|
|
72
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
73
|
-
React.createElement("span", { className: "form-label" }, "Site:"),
|
|
74
|
-
React.createElement(InlineEdit, { defaultValue: state.contact.site, content: v => React.createElement("div", { className: classnames("file-name") }, v.store.value), onSave: (value) => save(value, state.contact.site, { site: value }) })))),
|
|
75
|
-
!state.contact.isGroup && (React.createElement(React.Fragment, null,
|
|
76
|
-
React.createElement(Form.Item, null,
|
|
77
|
-
React.createElement("div", { className: "unit-details-title" }, "BASIC INFORMATION")),
|
|
78
|
-
React.createElement(Form.Item, { name: "birthday" },
|
|
79
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
80
|
-
React.createElement("span", { className: "form-label" }, "Birthday:"),
|
|
81
|
-
state.birthdayEdit ? (React.createElement(DatePicker, { defaultValue: moment(state.contact.birthday), open: state.birthdayEdit, bordered: false, onChange: dateChange })) : (React.createElement("div", { className: classnames("file-name"), onClick: () => (state.birthdayEdit = true) }, state.birthday
|
|
82
|
-
? state.birthday
|
|
83
|
-
: JSON.stringify(toJS(state.contact.birthday)))))),
|
|
84
|
-
React.createElement(Form.Item, { name: "gender" },
|
|
85
|
-
React.createElement("div", { className: "form-item-layout" },
|
|
86
|
-
React.createElement("span", { className: "form-label" }, "Gender:"),
|
|
87
|
-
React.createElement(InlineEdit, { defaultValue: state.contact.gender, content: v => React.createElement("div", { className: classnames("file-name") }, v.store.value), onSave: (value) => save(value, state.contact.gender, { gender: value }) }))))))))));
|
|
88
|
-
function addressEdit() {
|
|
89
|
-
state.addressEdit = true;
|
|
90
|
-
form.setFieldsValue({
|
|
91
|
-
address: {
|
|
92
|
-
line1: state.contact.address.line1,
|
|
93
|
-
line2: state.contact.address.line2,
|
|
94
|
-
city: state.contact.address.city,
|
|
95
|
-
state: state.contact.address.state,
|
|
96
|
-
country: state.contact.address.country
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/** edit save */
|
|
101
|
-
function save(v, name, params) {
|
|
102
|
-
if ((v === null || v === void 0 ? void 0 : v.trim()) === name)
|
|
103
|
-
return;
|
|
104
|
-
store.edit(state.id, params);
|
|
105
|
-
}
|
|
106
|
-
/** birthday change save */
|
|
107
|
-
function dateChange(date, dateString) {
|
|
108
|
-
state.birthday = dateString;
|
|
109
|
-
save(dateString, JSON.stringify(toJS(state.contact.birthday)), {
|
|
110
|
-
birthday: new Date(dateString)
|
|
111
|
-
});
|
|
112
|
-
state.birthdayEdit = false;
|
|
113
|
-
}
|
|
114
|
-
/** address change save */
|
|
115
|
-
function onFinish(values) {
|
|
116
|
-
save(JSON.stringify(values.address), JSON.stringify(state.contact.address), {
|
|
117
|
-
address: values.address
|
|
118
|
-
});
|
|
119
|
-
state.addressEdit = false;
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
export default UnitDetails;
|
|
123
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitDetails/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,MAAkB,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,W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