@voplus/morpho-document 1.0.0-dev301 → 1.0.0-dev303
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/DescriptionEditor/index.d.ts +1 -0
- package/es/controls/DescriptionEditor/index.js +3 -2
- package/es/controls/DescriptionEditor/index.js.map +1 -1
- package/es/controls/DescriptionEditor/index.less +5 -0
- package/es/controls/DescriptionEditor/state.d.ts +2 -0
- package/es/controls/DescriptionEditor/state.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 +1 -1
- package/es/pages/Page/PageDefaultView/index.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,53 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { RequestBuilder } from "@voplus/api";
|
|
3
|
-
import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
|
|
4
|
-
import { observable } from "mobx";
|
|
5
|
-
import invariant from "invariant";
|
|
6
|
-
const StoreName = "UserStore";
|
|
7
|
-
export class UserStore extends Store {
|
|
8
|
-
constructor(_api) {
|
|
9
|
-
super();
|
|
10
|
-
this._api = _api;
|
|
11
|
-
this.name = StoreName;
|
|
12
|
-
this.items = new CountedMap((key) => UserStore.createDefaultContact({ id: key }), observable.map([], { deep: true }));
|
|
13
|
-
invariant(_api, `API cannot be ${_api}.`);
|
|
14
|
-
}
|
|
15
|
-
/** Create a default contact object with optional default values. */
|
|
16
|
-
static createDefaultContact(defaultValues) {
|
|
17
|
-
const v = { loaded: false };
|
|
18
|
-
if (defaultValues)
|
|
19
|
-
Object.assign(v, defaultValues);
|
|
20
|
-
return v;
|
|
21
|
-
}
|
|
22
|
-
/** Load a task from server.
|
|
23
|
-
* @param {string} id - id of the task.
|
|
24
|
-
* @param {LoadTaskOptions} options - Optional load options.
|
|
25
|
-
*/
|
|
26
|
-
async load(id, options) {
|
|
27
|
-
let query = "";
|
|
28
|
-
if (options.includes)
|
|
29
|
-
query = query.concat(`includes=${options.includes}`);
|
|
30
|
-
if (query)
|
|
31
|
-
query = "?".concat(query);
|
|
32
|
-
const r = await this._api.get(`/user/${id}${query}`);
|
|
33
|
-
return (await r.json());
|
|
34
|
-
}
|
|
35
|
-
/** Edit an existing item on server. */
|
|
36
|
-
async edit(id, options) {
|
|
37
|
-
const r = await this._api.post(`api/user/${id}/info`, new RequestBuilder().json(options));
|
|
38
|
-
const t = await r.json();
|
|
39
|
-
this.items.overwrite(t.id, t);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
__decorate([
|
|
43
|
-
observable
|
|
44
|
-
], UserStore.prototype, "items", void 0);
|
|
45
|
-
/** React hook to retrieve ContactStore */
|
|
46
|
-
export const useUserStore = () => {
|
|
47
|
-
const context = useApplicationContext();
|
|
48
|
-
if (!context.getStore(StoreName)) {
|
|
49
|
-
context.addStore(new UserStore(context.api.currentEndPoint));
|
|
50
|
-
}
|
|
51
|
-
return context.getStore(StoreName);
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=UserStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserStore.js","sourceRoot":"","sources":["../../../../src/modules/unit/data/UserStore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAe,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAU,UAAU,EAAQ,MAAM,MAAM,CAAC;AAGhD,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,SAAS,GAAG,WAAW,CAAC;AAiB9B,MAAM,OAAO,SAAU,SAAQ,KAAK;IAGnC,YAAoC,IAAiB;QACpD,KAAK,EAAE,CAAC;QAD2B,SAAI,GAAJ,IAAI,CAAa;QAFrC,SAAI,GAAW,SAAS,CAAC;QASzB,UAAK,GAAkC,IAAI,UAAU,CACpE,CAAC,GAAW,EAAE,EAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAC5D,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAClC,CAAC;QARD,SAAS,CAAC,IAAI,EAAE,iBAAiB,IAAI,GAAG,CAAC,CAAC;IAC3C,CAAC;IASD,oEAAoE;IAC7D,MAAM,CAAC,oBAAoB,CAAC,aAAkC;QACpE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAe,CAAC;QACzC,IAAI,aAAa;YAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;QACnD,OAAO,CAAC,CAAC;IACV,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,OAAwB;QACrD,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,OAAO,CAAC,QAAQ;YAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QACrD,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAc,CAAC;IACtC,CAAC;IAED,uCAAuC;IAChC,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,OAAwB;QACrD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1F,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACzB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC;CACD;AA9BA;IAFC,UAAU;wCAKT;AA6BH,0CAA0C;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAChC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KAC7D;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe,CAAC;AAClD,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./useUnit";
|
|
2
|
-
export * from "./useUnitListEffect";
|
|
3
|
-
export * from "./useTeamListEffect";
|
|
4
|
-
export * from "./useUnitActivityListEffect";
|
|
5
|
-
export * from "./unit-events";
|
|
6
|
-
export * from "./member-events";
|
|
7
|
-
export * from "./useUserInfo";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/member-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IUnit } from "../../interfaces";
|
|
2
|
-
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
3
|
-
/** React hook to call action when a new Member has been created. */
|
|
4
|
-
export declare const useAutoUpdateMemberListData: (list: ListDataContextState<IUnit>, shouldUpdate: (d: IUnit, event: string) => boolean) => void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useOnDeleteMember, useOnNewMember } from "./";
|
|
2
|
-
/** React hook to call action when a new Member has been created. */
|
|
3
|
-
export const useAutoUpdateMemberListData = (list, shouldUpdate) => {
|
|
4
|
-
useOnNewMember((s, d) => {
|
|
5
|
-
if (shouldUpdate(d, "new"))
|
|
6
|
-
list.union([d]);
|
|
7
|
-
});
|
|
8
|
-
useOnDeleteMember((s, d) => {
|
|
9
|
-
if (shouldUpdate(d, "delete"))
|
|
10
|
-
list.remove(d.id);
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=useAutoUpdateMemberListData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoUpdateMemberListData.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/member-events/useAutoUpdateMemberListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAKvD,oEAAoE;AACpE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAC1C,IAAiC,EACjC,YAAkD,EACjD,EAAE;IACH,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACvB,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC1B,IAAI,YAAY,CAAC,CAAC,EAAE,QAAQ,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../../UnitStore";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
/** React hook to call action when a delete Member has been created. */
|
|
4
|
-
export const useOnDeleteMember = (action) => {
|
|
5
|
-
const store = useUnitStore();
|
|
6
|
-
const onDeleteMember = (store, doc) => {
|
|
7
|
-
console.log(`onDeleteMember - ${doc.id} ${doc.name}`);
|
|
8
|
-
action(store, doc);
|
|
9
|
-
};
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
store.MemberDeletedEvent.subscribe(onDeleteMember);
|
|
12
|
-
return () => {
|
|
13
|
-
store.MemberDeletedEvent.unsubscribe(onDeleteMember);
|
|
14
|
-
};
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useOnDeleteMember.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnDeleteMember.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/member-events/useOnDeleteMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAA8C,EAAE,EAAE;IACnF,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,cAAc,GAAG,CAAC,KAAgB,EAAE,GAAU,EAAE,EAAE;QACvD,OAAO,CAAC,GAAG,CAAC,oBAAoB,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACtD,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACnD,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,kBAAkB,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QACtD,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../../UnitStore";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
/** React hook to call action when a new member has been created. */
|
|
4
|
-
export const useOnNewMember = (action) => {
|
|
5
|
-
const store = useUnitStore();
|
|
6
|
-
const onNewMember = (store, doc) => {
|
|
7
|
-
console.log(`onNewMember - ${doc.id} ${doc.name}`);
|
|
8
|
-
action(store, doc);
|
|
9
|
-
};
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
store.MemberCreatedEvent.subscribe(onNewMember);
|
|
12
|
-
return () => {
|
|
13
|
-
store.MemberCreatedEvent.unsubscribe(onNewMember);
|
|
14
|
-
};
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useOnNewMember.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnNewMember.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/member-events/useOnNewMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,oEAAoE;AACpE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAA8C,EAAE,EAAE;IAChF,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,WAAW,GAAG,CAAC,KAAgB,EAAE,GAAU,EAAE,EAAE;QACpD,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACnD,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAChD,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QACnD,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/unit-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IUnit } from "../../interfaces";
|
|
2
|
-
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
3
|
-
/** React hook to call action when a new unit has been created. */
|
|
4
|
-
export declare const useAutoUpdateUnitListData: (list: ListDataContextState<IUnit>, shouldUpdate: (d: IUnit, event: string) => boolean) => void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useOnDeleteUnit, useOnNewUnit } from "./";
|
|
2
|
-
/** React hook to call action when a new unit has been created. */
|
|
3
|
-
export const useAutoUpdateUnitListData = (list, shouldUpdate) => {
|
|
4
|
-
useOnNewUnit((s, d) => {
|
|
5
|
-
if (shouldUpdate(d, "new"))
|
|
6
|
-
list.union([d]);
|
|
7
|
-
});
|
|
8
|
-
useOnDeleteUnit((s, d) => {
|
|
9
|
-
if (shouldUpdate(d, "delete"))
|
|
10
|
-
list.remove(d.id);
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=useAutoUpdateUnitListData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoUpdateUnitListData.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/unit-events/useAutoUpdateUnitListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAKnD,kEAAkE;AAClE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACxC,IAAiC,EACjC,YAAkD,EACjD,EAAE;IACH,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACrB,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACxB,IAAI,YAAY,CAAC,CAAC,EAAE,QAAQ,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../../UnitStore";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
/** React hook to call action when a delete unit has been created. */
|
|
4
|
-
export const useOnDeleteUnit = (action) => {
|
|
5
|
-
const store = useUnitStore();
|
|
6
|
-
const onDeleteUnit = (store, doc) => {
|
|
7
|
-
console.log(`onDeleteUnit - ${doc.id} ${doc.name}`);
|
|
8
|
-
action(store, doc);
|
|
9
|
-
};
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
store.UnitDeletedEvent.subscribe(onDeleteUnit);
|
|
12
|
-
return () => {
|
|
13
|
-
store.UnitDeletedEvent.unsubscribe(onDeleteUnit);
|
|
14
|
-
};
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useOnDeleteUnit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnDeleteUnit.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/unit-events/useOnDeleteUnit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,qEAAqE;AACrE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAA8C,EAAE,EAAE;IACjF,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,YAAY,GAAG,CAAC,KAAgB,EAAE,GAAU,EAAE,EAAE;QACrD,OAAO,CAAC,GAAG,CAAC,kBAAkB,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACpD,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC/C,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../../UnitStore";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
/** React hook to call action when a new unit has been created. */
|
|
4
|
-
export const useOnNewUnit = (action) => {
|
|
5
|
-
const store = useUnitStore();
|
|
6
|
-
const onNewUnit = (store, doc) => {
|
|
7
|
-
console.log(`onNewUnit - ${doc.id} ${doc.name}`);
|
|
8
|
-
action(store, doc);
|
|
9
|
-
};
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
store.UnitCreatedEvent.subscribe(onNewUnit);
|
|
12
|
-
return () => {
|
|
13
|
-
store.UnitCreatedEvent.unsubscribe(onNewUnit);
|
|
14
|
-
};
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useOnNewUnit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnNewUnit.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/data/hooks/unit-events/useOnNewUnit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,kEAAkE;AAClE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAA8C,EAAE,EAAE;IAC9E,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,SAAS,GAAG,CAAC,KAAgB,EAAE,GAAU,EAAE,EAAE;QAClD,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACjD,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAC5C,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAC/C,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LoadUnitListOptions } from "../UnitStore";
|
|
2
|
-
import { IUnit } from "../interfaces";
|
|
3
|
-
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
-
/** React hook to retrieve a list of Team
|
|
5
|
-
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
6
|
-
* @param options - Optional team list loading options.
|
|
7
|
-
*/
|
|
8
|
-
export declare const useTeamListEffect: (id: string, list: ListDataContextState<IUnit> | null, effect: ((list: IUnit[]) => void) | null, options?: LoadUnitListOptions | undefined) => void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../UnitStore";
|
|
2
|
-
import { useCountedMapListEffect } from "@voplus/morpho-data";
|
|
3
|
-
/** React hook to retrieve a list of Team
|
|
4
|
-
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
5
|
-
* @param options - Optional team list loading options.
|
|
6
|
-
*/
|
|
7
|
-
export const useTeamListEffect = (id, list, effect, options) => {
|
|
8
|
-
const deps = options ? options : {};
|
|
9
|
-
const contacts = useUnitStore();
|
|
10
|
-
// Call useContactListEffect and ensure won't load twice for same loading options.
|
|
11
|
-
return useCountedMapListEffect(effect ? innerEffect : effect, contacts.items, () => contacts.loadTeamList(id, options), [deps], {
|
|
12
|
-
preload: () => {
|
|
13
|
-
if (list)
|
|
14
|
-
list.loading = true;
|
|
15
|
-
},
|
|
16
|
-
postload: () => {
|
|
17
|
-
if (list)
|
|
18
|
-
list.loading = false;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
function innerEffect(result) {
|
|
22
|
-
if (list && result.length < list.filters.paging.PageSize)
|
|
23
|
-
list.hasMore = false;
|
|
24
|
-
effect(result);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=useTeamListEffect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTeamListEffect.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/hooks/useTeamListEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAChC,EAAU,EACV,IAAwC,EACxC,MAAwC,EACxC,OAA6B,EAC5B,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC7D,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;IAEhC,kFAAkF;IAClF,OAAO,uBAAuB,CAC7B,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAC7B,QAAQ,CAAC,KAAK,EACd,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,CAAC,EACxC,CAAC,IAAI,CAAC,EACN;QACC,OAAO,EAAE,GAAG,EAAE;YACb,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAC/B,CAAC;QACD,QAAQ,EAAE,GAAG,EAAE;YACd,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAChC,CAAC;KACD,CACD,CAAC;IAEF,SAAS,WAAW,CAAC,MAAe;QACnC,IAAI,IAAI,IAAI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAC/E,MAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;AACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LoadUnitOptions } from "../UnitStore";
|
|
2
|
-
/** React hook to retrieve a unit
|
|
3
|
-
* @param {string} id - id of the unit
|
|
4
|
-
* @param {LoadUnitOptions} options - options
|
|
5
|
-
*/
|
|
6
|
-
export declare const useUnit: (id: string, options?: LoadUnitOptions | undefined) => import("..").IUnit;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../UnitStore";
|
|
2
|
-
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
|
-
/** React hook to retrieve a unit
|
|
4
|
-
* @param {string} id - id of the unit
|
|
5
|
-
* @param {LoadUnitOptions} options - options
|
|
6
|
-
*/
|
|
7
|
-
export const useUnit = (id, options) => {
|
|
8
|
-
options = options ? options : {};
|
|
9
|
-
const store = useUnitStore();
|
|
10
|
-
return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useUnit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUnit.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/hooks/useUnit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAU,EAAE,OAAyB,EAAE,EAAE;IAChE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAAsB,CAAC;IACtD,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAE7B,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LoadUnitListOptions } from "../UnitStore";
|
|
2
|
-
import { IActivityLog } from "@voplus/morpho-collaboration/es/data/interfaces/IActivityLog";
|
|
3
|
-
/** React hook to retrieve a list of activities of a contact.
|
|
4
|
-
* @param id - the id of the contact.
|
|
5
|
-
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
6
|
-
* @param options - Optional task list loading options.
|
|
7
|
-
*/
|
|
8
|
-
export declare const useUnitActivityListEffect: (id: string, effect: (list: IActivityLog[]) => void, options?: LoadUnitListOptions | undefined) => void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../UnitStore";
|
|
2
|
-
import { useDeepDepEffect } from "@voplus/morpho-data";
|
|
3
|
-
/** React hook to retrieve a list of activities of a contact.
|
|
4
|
-
* @param id - the id of the contact.
|
|
5
|
-
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
6
|
-
* @param options - Optional task list loading options.
|
|
7
|
-
*/
|
|
8
|
-
export const useUnitActivityListEffect = (id, effect, options) => {
|
|
9
|
-
const deps = options ? options : {};
|
|
10
|
-
const store = useUnitStore();
|
|
11
|
-
// Call useDeepDepEffect directly because returned links do not need to be stored in counted map.
|
|
12
|
-
useDeepDepEffect(() => {
|
|
13
|
-
store.loadActivityList(id, options).then(effect);
|
|
14
|
-
}, [deps]);
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=useUnitActivityListEffect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUnitActivityListEffect.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/hooks/useUnitActivityListEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,MAAM,cAAc,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACxC,EAAU,EACV,MAAsC,EACtC,OAA6B,EAC5B,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC7D,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAE7B,iGAAiG;IACjG,gBAAgB,CAAC,GAAG,EAAE;QACrB,KAAK,CAAC,gBAAgB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AACZ,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LoadUnitListOptions } from "../UnitStore";
|
|
2
|
-
import { IUnit } from "../interfaces";
|
|
3
|
-
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
-
/** React hook to retrieve a list of units
|
|
5
|
-
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
6
|
-
* @param options - Optional unit list loading options.
|
|
7
|
-
*/
|
|
8
|
-
export declare const useUnitListEffect: (list: ListDataContextState<IUnit> | null, effect: ((list: IUnit[]) => void) | null, options?: LoadUnitListOptions | undefined) => void;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useUnitStore } from "../UnitStore";
|
|
2
|
-
import { useCountedMapListEffect } from "@voplus/morpho-data";
|
|
3
|
-
/** React hook to retrieve a list of units
|
|
4
|
-
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
5
|
-
* @param options - Optional unit list loading options.
|
|
6
|
-
*/
|
|
7
|
-
export const useUnitListEffect = (list, effect, options) => {
|
|
8
|
-
const deps = options ? options : {};
|
|
9
|
-
const contacts = useUnitStore();
|
|
10
|
-
// Call useContactListEffect and ensure won't load twice for same loading options.
|
|
11
|
-
// return useCountedMapListEffect(list, effect, contacts.items, () => contacts.loadList(options), [deps]);
|
|
12
|
-
return useCountedMapListEffect(effect ? innerEffect : effect, contacts.items, () => contacts.loadList(options), [deps], {
|
|
13
|
-
preload: () => {
|
|
14
|
-
if (list)
|
|
15
|
-
list.loading = true;
|
|
16
|
-
},
|
|
17
|
-
postload: () => {
|
|
18
|
-
if (list)
|
|
19
|
-
list.loading = false;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
function innerEffect(result) {
|
|
23
|
-
if (list && result.length < list.filters.paging.PageSize)
|
|
24
|
-
list.hasMore = false;
|
|
25
|
-
effect(result);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=useUnitListEffect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUnitListEffect.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/hooks/useUnitListEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAChC,IAAwC,EACxC,MAAwC,EACxC,OAA6B,EAC5B,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC7D,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;IAEhC,kFAAkF;IAClF,0GAA0G;IAC1G,OAAO,uBAAuB,CAC7B,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAC7B,QAAQ,CAAC,KAAK,EACd,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAChC,CAAC,IAAI,CAAC,EACN;QACC,OAAO,EAAE,GAAG,EAAE;YACb,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAC/B,CAAC;QACD,QAAQ,EAAE,GAAG,EAAE;YACd,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAChC,CAAC;KACD,CACD,CAAC;IAEF,SAAS,WAAW,CAAC,MAAe;QACnC,IAAI,IAAI,IAAI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAC/E,MAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;AACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LoadUserOptions } from "../UserStore";
|
|
2
|
-
/** React hook to retrieve a unit
|
|
3
|
-
* @param {string} id - id of the unit
|
|
4
|
-
* @param {LoadUserOptions} options - options
|
|
5
|
-
*/
|
|
6
|
-
export declare const useUserInfo: (id: string, options?: LoadUserOptions | undefined) => import("..").IUserInfo;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useUserStore } from "../UserStore";
|
|
2
|
-
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
|
-
/** React hook to retrieve a unit
|
|
4
|
-
* @param {string} id - id of the unit
|
|
5
|
-
* @param {LoadUserOptions} options - options
|
|
6
|
-
*/
|
|
7
|
-
export const useUserInfo = (id, options) => {
|
|
8
|
-
options = options ? options : {};
|
|
9
|
-
const store = useUserStore();
|
|
10
|
-
return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useUserInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUserInfo.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/hooks/useUserInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,OAAyB,EAAE,EAAE;IACpE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAAsB,CAAC;IACtD,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAE7B,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/unit/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface IAddress {
|
|
2
|
-
/** Address line 1 */
|
|
3
|
-
line1: string;
|
|
4
|
-
/** Address line 2 */
|
|
5
|
-
line2?: string;
|
|
6
|
-
/** City of the address*/
|
|
7
|
-
city?: string;
|
|
8
|
-
/** Province/State of the address */
|
|
9
|
-
state?: string;
|
|
10
|
-
/** Postal code of the address */
|
|
11
|
-
postalCode?: string;
|
|
12
|
-
/** Country of the address */
|
|
13
|
-
country: string;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=IAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAddress.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/interfaces/IAddress.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=IEntityName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEntityName.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/interfaces/IEntityName.ts"],"names":[],"mappings":""}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { IAddress } from "./IAddress";
|
|
2
|
-
import { ILoadable } from "@voplus/morpho-data";
|
|
3
|
-
export interface ILegalIdentities {
|
|
4
|
-
/** Number of the identity document. */
|
|
5
|
-
number: string;
|
|
6
|
-
/** Name appear on the legal identity.*/
|
|
7
|
-
name: string;
|
|
8
|
-
/** Type of the legal identity */
|
|
9
|
-
type: "IdentityCard" | "Passport" | "BusinessRegistrationNo";
|
|
10
|
-
/** Country issued the identity */
|
|
11
|
-
country: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IUnit extends ILoadable {
|
|
14
|
-
/** Id of the contact */
|
|
15
|
-
id: string;
|
|
16
|
-
/** containerId of the contact */
|
|
17
|
-
containerId: string;
|
|
18
|
-
/** Id of the parent contact. */
|
|
19
|
-
parentNodeId?: string;
|
|
20
|
-
/** Name of the contact */
|
|
21
|
-
name: string;
|
|
22
|
-
/** Whether the contact is a group or not. */
|
|
23
|
-
isGroup?: boolean;
|
|
24
|
-
/** Email of the contact. */
|
|
25
|
-
email?: string;
|
|
26
|
-
/** Phone of the contact. */
|
|
27
|
-
phone?: string;
|
|
28
|
-
/** Nationality of the contact */
|
|
29
|
-
nationality?: string;
|
|
30
|
-
/** Birthday of the contact */
|
|
31
|
-
birthday?: Date;
|
|
32
|
-
/** Gender of the contact */
|
|
33
|
-
gender?: "Male" | "Female";
|
|
34
|
-
/** Address of the contact. */
|
|
35
|
-
address: IAddress;
|
|
36
|
-
/** Site of the contact. */
|
|
37
|
-
site?: string;
|
|
38
|
-
/** Primary legal identity of the contact if has. */
|
|
39
|
-
primaryLegalIdentity: ILegalIdentities;
|
|
40
|
-
/** Type of the contact. */
|
|
41
|
-
type: string;
|
|
42
|
-
/** 可以外掛額外信息 e.g. 用戶 (User), 法律实体 (LegalEntity), 雇员 (Employee), 客戶(Customer), 供應商(Supplier) 等额外信息 */
|
|
43
|
-
infoNames?: string[];
|
|
44
|
-
/** path of the contact */
|
|
45
|
-
path?: {
|
|
46
|
-
id: string;
|
|
47
|
-
name: string;
|
|
48
|
-
}[];
|
|
49
|
-
/** stereoTypes of the contact */
|
|
50
|
-
stereoTypes?: string[];
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=IUnit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IUnit.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/interfaces/IUnit.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ILoadable } from "@voplus/morpho-data";
|
|
2
|
-
export interface IUserInfo extends ILoadable {
|
|
3
|
-
id: string;
|
|
4
|
-
/** Active of the userInfo. */
|
|
5
|
-
active: boolean;
|
|
6
|
-
/** Email of the userInfo.*/
|
|
7
|
-
email: string;
|
|
8
|
-
/** Password of the userInfo. */
|
|
9
|
-
password: string;
|
|
10
|
-
/** Last Login of the userInfo. */
|
|
11
|
-
lastLogin: Date;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=IUserInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IUserInfo.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/interfaces/IUserInfo.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|