@voplus/morpho-csp 6.0.27 → 6.0.28
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/data/virtual-address/VirtualAddressStore.d.ts +39 -0
- package/es/data/virtual-address/VirtualAddressStore.js +141 -0
- package/es/data/virtual-address/VirtualAddressStore.js.map +1 -0
- package/es/data/virtual-address/hook.d.ts +10 -0
- package/es/data/virtual-address/hook.js +25 -0
- package/es/data/virtual-address/hook.js.map +1 -0
- package/es/data/virtual-address/index.d.ts +5 -0
- package/es/data/virtual-address/index.js +6 -0
- package/es/data/virtual-address/index.js.map +1 -0
- package/es/data/virtual-address/interfaces.d.ts +25 -0
- package/es/data/virtual-address/interfaces.js +2 -0
- package/es/data/virtual-address/interfaces.js.map +1 -0
- package/es/data/virtual-address/types.d.ts +37 -0
- package/es/data/virtual-address/types.js +2 -0
- package/es/data/virtual-address/types.js.map +1 -0
- package/es/data/virtual-address/virtualAddress-events/index.d.ts +3 -0
- package/es/data/virtual-address/virtualAddress-events/index.js +4 -0
- package/es/data/virtual-address/virtualAddress-events/index.js.map +1 -0
- package/es/data/virtual-address/virtualAddress-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/virtual-address/virtualAddress-events/useAutoUpdateListData.js +13 -0
- package/es/data/virtual-address/virtualAddress-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/virtual-address/virtualAddress-events/useOnDeleteVirtualAddress.d.ts +4 -0
- package/es/data/virtual-address/virtualAddress-events/useOnDeleteVirtualAddress.js +16 -0
- package/es/data/virtual-address/virtualAddress-events/useOnDeleteVirtualAddress.js.map +1 -0
- package/es/data/virtual-address/virtualAddress-events/useOnNewVirtualAddress.d.ts +4 -0
- package/es/data/virtual-address/virtualAddress-events/useOnNewVirtualAddress.js +16 -0
- package/es/data/virtual-address/virtualAddress-events/useOnNewVirtualAddress.js.map +1 -0
- package/es/data/virtual-address-mail/VirtualAddressMailStore.d.ts +33 -0
- package/es/data/virtual-address-mail/VirtualAddressMailStore.js +121 -0
- package/es/data/virtual-address-mail/VirtualAddressMailStore.js.map +1 -0
- package/es/data/virtual-address-mail/hook.d.ts +9 -0
- package/es/data/virtual-address-mail/hook.js +19 -0
- package/es/data/virtual-address-mail/hook.js.map +1 -0
- package/es/data/virtual-address-mail/index.d.ts +5 -0
- package/es/data/virtual-address-mail/index.js +6 -0
- package/es/data/virtual-address-mail/index.js.map +1 -0
- package/es/data/virtual-address-mail/interfaces.d.ts +14 -0
- package/es/data/virtual-address-mail/interfaces.js +2 -0
- package/es/data/virtual-address-mail/interfaces.js.map +1 -0
- package/es/data/virtual-address-mail/types.d.ts +35 -0
- package/es/data/virtual-address-mail/types.js +2 -0
- package/es/data/virtual-address-mail/types.js.map +1 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/index.d.ts +3 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/index.js +4 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/index.js.map +1 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useAutoUpdateListData.js +13 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useOnDeleteVirtualAddressMail.d.ts +4 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useOnDeleteVirtualAddressMail.js +16 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useOnDeleteVirtualAddressMail.js.map +1 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useOnNewVirtualAddressMail.d.ts +4 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useOnNewVirtualAddressMail.js +16 -0
- package/es/data/virtual-address-mail/virtualAddressMail-events/useOnNewVirtualAddressMail.js.map +1 -0
- package/es/modules/corporate/clda/pages/CLDASettingsPage/index.less +1 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.js +4 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/VirtualAddressForm.d.ts +17 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/VirtualAddressForm.js +51 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/VirtualAddressForm.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/index.d.ts +10 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/index.js +14 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/index.less +27 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/state.d.ts +5 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/state.js +26 -0
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/state.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressHeader/index.d.ts +6 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressHeader/index.js +19 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressHeader/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressHeader/index.less +12 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressItem/index.d.ts +6 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressItem/index.js +35 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressItem/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressItem/index.less +29 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressList/index.d.ts +14 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressList/index.js +47 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressList/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressList/index.less +11 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressProperties/index.d.ts +21 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressProperties/index.js +46 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressProperties/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressProperties/index.less +7 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.d.ts +7 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.js +16 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.less +26 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.d.ts +8 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.js +13 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.less +7 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.d.ts +8 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js +64 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.less +8 -0
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.d.ts +7 -0
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js +13 -0
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.d.ts +4 -0
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js +24 -0
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.less +19 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsItem/index.d.ts +9 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsItem/index.js +45 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsItem/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsItem/index.less +55 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.d.ts +7 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.js +35 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.less +14 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/index.d.ts +11 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/index.js +44 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/state.d.ts +11 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/state.js +69 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/state.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/VirtualAddressMailForm.d.ts +20 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/VirtualAddressMailForm.js +67 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/VirtualAddressMailForm.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/index.d.ts +10 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/index.js +14 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/index.less +27 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/state.d.ts +8 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/state.js +52 -0
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/state.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailHeader/index.d.ts +6 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailHeader/index.js +19 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailHeader/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailHeader/index.less +12 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.d.ts +7 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js +35 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.less +29 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.d.ts +16 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js +53 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.less +11 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailProperties/index.d.ts +21 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailProperties/index.js +51 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailProperties/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailProperties/index.less +7 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailPropertiesView/index.d.ts +7 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailPropertiesView/index.js +16 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailPropertiesView/index.less +26 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailQuickViewDialog/index.d.ts +8 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailQuickViewDialog/index.js +13 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailQuickViewDialog/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailQuickViewDialog/index.less +7 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.d.ts +8 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.js +54 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.less +8 -0
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.d.ts +7 -0
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.js +13 -0
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.d.ts +4 -0
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js +24 -0
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js.map +1 -0
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.less +19 -0
- package/es/routes.d.ts +12 -0
- package/es/routes.js +27 -1
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/virtual-address-mail/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { INode } from "@voplus/morpho-document-core";
|
|
2
|
+
import { ILoadable } from "@voplus/morpho-data";
|
|
3
|
+
export interface IVirtualAddressMail extends INode, ILoadable {
|
|
4
|
+
name: string;
|
|
5
|
+
sender: string;
|
|
6
|
+
readOnlyProps?: any;
|
|
7
|
+
recipent: {
|
|
8
|
+
id: string;
|
|
9
|
+
contact: {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/virtual-address-mail/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FilterOption, PageParameters } from "@voplus/morpho-data/es/types";
|
|
2
|
+
import { IVirtualAddressMail } from "./interfaces";
|
|
3
|
+
import { LoadOptions } from "@voplus/morpho-data";
|
|
4
|
+
import { StoreActionOptions } from "@voplus/morpho-data";
|
|
5
|
+
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
|
6
|
+
/** Custom load virtual address mail list options type */
|
|
7
|
+
export type LoadVirtualAddressMailListOptions = {
|
|
8
|
+
Includes?: string;
|
|
9
|
+
Filters?: FilterOption[];
|
|
10
|
+
Page?: PageParameters;
|
|
11
|
+
Total?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** Custom load virtual address mail options type */
|
|
14
|
+
export type LoadVirtualAddressMailOptions = {
|
|
15
|
+
/** Comma separated include options e.g. path */
|
|
16
|
+
includes?: string;
|
|
17
|
+
} & LoadOptions<IVirtualAddressMail>;
|
|
18
|
+
export type EditVirtualAddressMailDataOptions = {
|
|
19
|
+
Sender?: string;
|
|
20
|
+
};
|
|
21
|
+
export type EditVirtualAddressMailOptions = {
|
|
22
|
+
data: EditVirtualAddressMailDataOptions;
|
|
23
|
+
} & StoreActionOptions;
|
|
24
|
+
/** create VirtualAddressMail options */
|
|
25
|
+
export type CreateVirtualAddressMailOptions = {
|
|
26
|
+
data: {
|
|
27
|
+
ReceipentId: string;
|
|
28
|
+
Sender: string;
|
|
29
|
+
Date: string;
|
|
30
|
+
};
|
|
31
|
+
} & StoreActionOptions;
|
|
32
|
+
/** Custom load virtual address mail list options type. */
|
|
33
|
+
export type DeleteVirtualAddressMailOptions = {
|
|
34
|
+
data?: DeleteDocumentOptions;
|
|
35
|
+
} & StoreActionOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/virtual-address-mail/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/virtual-address-mail/virtualAddressMail-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IVirtualAddressMail } from "../interfaces";
|
|
2
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
3
|
+
/** React hook to call action when a new virtual address mail has been created. */
|
|
4
|
+
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d: IVirtualAddressMail, event: string) => boolean) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useOnDeleteVirtualAddressMail, useOnNewVirtualAddressMail } from ".";
|
|
2
|
+
/** React hook to call action when a new virtual address mail has been created. */
|
|
3
|
+
export const useAutoUpdateListData = (list, shouldUpdate) => {
|
|
4
|
+
useOnNewVirtualAddressMail((s, d) => {
|
|
5
|
+
if (shouldUpdate(d, "new"))
|
|
6
|
+
list.union([d]);
|
|
7
|
+
});
|
|
8
|
+
useOnDeleteVirtualAddressMail((s, d) => {
|
|
9
|
+
if (shouldUpdate(d, "del"))
|
|
10
|
+
list.remove(d.id);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useAutoUpdateListData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAutoUpdateListData.js","sourceRoot":"","sources":["../../../../src/data/virtual-address-mail/virtualAddressMail-events/useAutoUpdateListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAK9E,kFAAkF;AAClF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,IAA+B,EAC/B,YAAgE,EAC/D,EAAE;IACH,0BAA0B,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACnC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,6BAA6B,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACtC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
package/es/data/virtual-address-mail/virtualAddressMail-events/useOnDeleteVirtualAddressMail.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { VirtualAddressMailStore } from "../VirtualAddressMailStore";
|
|
2
|
+
import { IVirtualAddressMail } from "../interfaces";
|
|
3
|
+
/** React hook to call action when a delete virtual address mail has been created. */
|
|
4
|
+
export declare const useOnDeleteVirtualAddressMail: (action: (store: VirtualAddressMailStore, doc: IVirtualAddressMail) => void) => void;
|
package/es/data/virtual-address-mail/virtualAddressMail-events/useOnDeleteVirtualAddressMail.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useVirtualAddressMailStore } from "../VirtualAddressMailStore";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
/** React hook to call action when a delete virtual address mail has been created. */
|
|
4
|
+
export const useOnDeleteVirtualAddressMail = (action) => {
|
|
5
|
+
const store = useVirtualAddressMailStore();
|
|
6
|
+
const onDeleteVirtualAddressMail = (store, doc) => {
|
|
7
|
+
action(store, doc);
|
|
8
|
+
};
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
store.VirtualAddressMailDeletedEvent.subscribe(onDeleteVirtualAddressMail);
|
|
11
|
+
return () => {
|
|
12
|
+
store.VirtualAddressMailDeletedEvent.unsubscribe(onDeleteVirtualAddressMail);
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useOnDeleteVirtualAddressMail.js.map
|
package/es/data/virtual-address-mail/virtualAddressMail-events/useOnDeleteVirtualAddressMail.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnDeleteVirtualAddressMail.js","sourceRoot":"","sources":["../../../../src/data/virtual-address-mail/virtualAddressMail-events/useOnDeleteVirtualAddressMail.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAGjG,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,qFAAqF;AACrF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC5C,MAA0E,EACzE,EAAE;IACH,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAC3C,MAAM,0BAA0B,GAAG,CAAC,KAA8B,EAAE,GAAwB,EAAE,EAAE;QAC/F,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,8BAA8B,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;QAC3E,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,8BAA8B,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;QAC9E,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
package/es/data/virtual-address-mail/virtualAddressMail-events/useOnNewVirtualAddressMail.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { VirtualAddressMailStore } from "../VirtualAddressMailStore";
|
|
2
|
+
import { IVirtualAddressMail } from "../interfaces";
|
|
3
|
+
/** React hook to call action when a new virtual address mail has been created. */
|
|
4
|
+
export declare const useOnNewVirtualAddressMail: (action: (store: VirtualAddressMailStore, doc: IVirtualAddressMail) => void) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useVirtualAddressMailStore } from "../VirtualAddressMailStore";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
/** React hook to call action when a new virtual address mail has been created. */
|
|
4
|
+
export const useOnNewVirtualAddressMail = (action) => {
|
|
5
|
+
const store = useVirtualAddressMailStore();
|
|
6
|
+
const onNewVirtualAddressMail = (store, doc) => {
|
|
7
|
+
action(store, doc);
|
|
8
|
+
};
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
store.VirtualAddressMailCreatedEvent.subscribe(onNewVirtualAddressMail);
|
|
11
|
+
return () => {
|
|
12
|
+
store.VirtualAddressMailCreatedEvent.unsubscribe(onNewVirtualAddressMail);
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useOnNewVirtualAddressMail.js.map
|
package/es/data/virtual-address-mail/virtualAddressMail-events/useOnNewVirtualAddressMail.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnNewVirtualAddressMail.js","sourceRoot":"","sources":["../../../../src/data/virtual-address-mail/virtualAddressMail-events/useOnNewVirtualAddressMail.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAGjG,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,kFAAkF;AAClF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACzC,MAA0E,EACzE,EAAE;IACH,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAC3C,MAAM,uBAAuB,GAAG,CAAC,KAA8B,EAAE,GAAwB,EAAE,EAAE;QAC5F,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,8BAA8B,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACxE,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,8BAA8B,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;QAC3E,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
|
|
3
|
-
import { faTableRows, faChartNetwork, faFolder, faScrollOld, faEllipsisVertical, faGear, } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
+
import { faTableRows, faChartNetwork, faFolder, faScrollOld, faEllipsisVertical, faVrCardboard, faGear, } from "@fortawesome/pro-light-svg-icons";
|
|
4
4
|
import { State } from "./state";
|
|
5
5
|
import { Menu } from "antd";
|
|
6
6
|
import { observe, useAutorunEffect, NavPanel } from "@voplus/morpho-ui";
|
|
@@ -18,6 +18,7 @@ import OfficerList from "../../officer-register/components/OfficerList";
|
|
|
18
18
|
import ControllerList from "../../controller-register/components/ControllerList";
|
|
19
19
|
import ShareTransactionList from "../../share-transactions-register/components/ShareTransactionList";
|
|
20
20
|
import RegisteresMenuItem from "../../../../../components/RegisteresMenuItem";
|
|
21
|
+
import VirtualAddressList from "../../../virtual-address/components/VirtualAddressList";
|
|
21
22
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
22
23
|
import CompanySetting from "./CompanySetting";
|
|
23
24
|
import "./index.less";
|
|
@@ -53,6 +54,7 @@ const CompanyPage = (props) => {
|
|
|
53
54
|
React.createElement(RegisteresMenuItem, { id: corporate.id, onClick: onClick, onCreateViewSave: (data) => state.update(data) }),
|
|
54
55
|
React.createElement(Menu.Item, { key: "/filings", className: `${classId}-filings`, icon: React.createElement(FAIcon, { icon: faScrollOld }) }, "Filings"),
|
|
55
56
|
React.createElement(Menu.Item, { key: "/documents", className: `${classId}-documents`, icon: React.createElement(FAIcon, { icon: faFolder }) }, "Documents"),
|
|
57
|
+
React.createElement(Menu.Item, { key: "/virtual-address", className: `${classId}-virtual-address`, icon: React.createElement(FAIcon, { icon: faVrCardboard }) }, "Virtual Address"),
|
|
56
58
|
React.createElement(Menu.Item, { key: "/activities", className: `${classId}-activities`, icon: React.createElement(FAIcon, { icon: faChartNetwork }) }, "Activities"),
|
|
57
59
|
React.createElement(Menu.Item, { key: "/settings", className: `${classId}-settings`, icon: React.createElement(FAIcon, { icon: faGear }) }, "Settings"))))),
|
|
58
60
|
React.createElement("div", { className: "company-page-content" },
|
|
@@ -64,6 +66,7 @@ const CompanyPage = (props) => {
|
|
|
64
66
|
React.createElement(Route, { path: "registers/ControllerRegister", element: state.ControllerId && loaded ? (React.createElement(ControllerList, { controllerRegisterId: state.ControllerId, corporateId: corporate.id, allowEdit: corporate.allowEdit, onReload: onReload, onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
65
67
|
React.createElement(Route, { path: "filings", element: React.createElement(AnnualFilings, { id: corporate.id }) }),
|
|
66
68
|
React.createElement(Route, { path: "documents", element: React.createElement(DocumentPage, { root: corporate.id, route: `${url}/documents`, className: "corporate-documents", tabTitle: `Corporate - ${corporate.name}` || "Corporate" }) }),
|
|
69
|
+
React.createElement(Route, { path: "virtual-address", element: React.createElement(VirtualAddressList, { corporateId: corporate.id }) }),
|
|
67
70
|
React.createElement(Route, { path: "activities", element: React.createElement(ActivityLog, { id: corporate.id }) }),
|
|
68
71
|
React.createElement(Route, { path: "settings", element: React.createElement(CompanySetting, { id: props.id, liabilityType: corporate.liabilityType }) }),
|
|
69
72
|
React.createElement(Route, { path: "/", element: React.createElement(Navigate, { to: "dashboard" }) }))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,SAAS,CAAC,EAAE,GAAI,GAAI;gBACvE,oBAAC,KAAK,IACL,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,SAAS,CAAC,aAAa,GAAI,GAChF;gBACF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAC,WAAW,GAAG,GAAI,CAChD,CACJ,CACO,CACd,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,OAAO,CAAC,GAAW;QAC3B,IAAI,GAAG,KAAK,YAAY;YAAE,OAAO;QACjC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EACN,WAAW,EACX,cAAc,EACd,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,MAAM,GACN,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM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I,GAAI;gBACvE,oBAAC,KAAK,IACL,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,SAAS,CAAC,aAAa,GAAI,GAChF;gBACF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAC,WAAW,GAAG,GAAI,CAChD,CACJ,CACO,CACd,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,OAAO,CAAC,GAAW;QAC3B,IAAI,GAAG,KAAK,YAAY;YAAE,OAAO;QACjC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type NewVirtualAddressFormProps = {
|
|
4
|
+
corporateId: string;
|
|
5
|
+
type?: "full" | "mini";
|
|
6
|
+
showView?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
onSave?: (data?: any) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const NewVirtualAddressFormContent: {
|
|
12
|
+
(props: NewVirtualAddressFormProps): React.JSX.Element;
|
|
13
|
+
defaultProps: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default NewVirtualAddressFormContent;
|
package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/VirtualAddressForm.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
4
|
+
import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
|
5
|
+
import { Form, Row, Space, Button } from "antd";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import React, { useState } from "react";
|
|
8
|
+
import { useVirtualAddressStore } from "../../../../../data/virtual-address";
|
|
9
|
+
import VirtualAddressPropertiesView from "../VirtualAddressPropertiesView";
|
|
10
|
+
import OfficeSelect from "@voplus/morpho-org/es/modules/office/components/OfficeSelect";
|
|
11
|
+
import { State } from "./state";
|
|
12
|
+
const NewVirtualAddressFormContent = (props) => {
|
|
13
|
+
const store = useVirtualAddressStore();
|
|
14
|
+
const asideContext = useAsideContentContext();
|
|
15
|
+
const [state] = useState(new State());
|
|
16
|
+
const content = observe(() => (React.createElement("div", { className: classnames("new-virtualAddress-form", { "sub-virtualAddress-simply-form": props.type === "mini" }, props.className) },
|
|
17
|
+
React.createElement(Form, { layout: "vertical" },
|
|
18
|
+
React.createElement(Form.Item, { name: "Office", label: "Office" },
|
|
19
|
+
React.createElement(OfficeSelect, { onChange: (office) => (state.officeId = office === null || office === void 0 ? void 0 : office.id) })),
|
|
20
|
+
props.type === "mini" && (React.createElement(Row, { className: "virtualAddress-form-btn", justify: "end" },
|
|
21
|
+
React.createElement(Space, null,
|
|
22
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
23
|
+
React.createElement(Button, { type: "primary", loading: state.loading, onClick: onSave }, "Submit"))))))));
|
|
24
|
+
return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: "Add Virtual Address", loading: !!state.loading, onCancel: onCancel, onSubmit: onSave }, content)) : (content))));
|
|
25
|
+
async function onSave() {
|
|
26
|
+
var _a;
|
|
27
|
+
state.loading = true;
|
|
28
|
+
const res = await store.create({
|
|
29
|
+
data: { CorporateId: props.corporateId, OfficeId: state.officeId },
|
|
30
|
+
error: "message",
|
|
31
|
+
});
|
|
32
|
+
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
33
|
+
state.loading = false;
|
|
34
|
+
if (props.showView && res)
|
|
35
|
+
return asideContext.openAside(React.createElement(VirtualAddressPropertiesView, { id: res.id }), {
|
|
36
|
+
span: 12,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
// cancel add virtual address
|
|
40
|
+
function onCancel() {
|
|
41
|
+
var _a;
|
|
42
|
+
if (props.showView)
|
|
43
|
+
return asideContext.closeAside();
|
|
44
|
+
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
NewVirtualAddressFormContent.defaultProps = {
|
|
48
|
+
type: "full",
|
|
49
|
+
};
|
|
50
|
+
export default NewVirtualAddressFormContent;
|
|
51
|
+
//# sourceMappingURL=VirtualAddressForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualAddressForm.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/components/NewVirtualAddressForm/VirtualAddressForm.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OA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,KAAK,MAAM,CAAC,CAAC,CAAC,CACxB,oBAAC,WAAW,IACX,KAAK,EAAE,qBAAqB,EAC5B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,EACxB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,MAAM,IAEf,OAAO,CACK,CACd,CAAC,CAAC,CAAC,CACH,OAAO,CACP,CACC,CACH,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;;QACpB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC9B,IAAI,EAAE,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;YAClE,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,MAAA,KAAK,CAAC,MAAM,qDAAI,CAAC;QACjB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,CAAC,QAAQ,IAAI,GAAG;YACxB,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,4BAA4B,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;gBAC5E,IAAI,EAAE,EAAE;aACR,CAAC,CAAC;IACL,CAAC;IAED,6BAA6B;IAC7B,SAAS,QAAQ;;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,4BAA4B,CAAC,YAAY,GAAG;IAC3C,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NewVirtualAddressFormProps } from "./VirtualAddressForm";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const NewVirtualAddressFormDialog: {
|
|
4
|
+
(props: NewVirtualAddressFormProps): React.JSX.Element;
|
|
5
|
+
defaultProps: {
|
|
6
|
+
type: string;
|
|
7
|
+
showSubmit: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default NewVirtualAddressFormDialog;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Content from "./VirtualAddressForm";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Modal } from "antd";
|
|
4
|
+
import React from "react";
|
|
5
|
+
const NewVirtualAddressFormDialog = (props) => {
|
|
6
|
+
return observe(() => (React.createElement(Modal, { title: "New Virtual Address Form Dialog", open: true, closable: false, footer: null, onCancel: props.onCancel },
|
|
7
|
+
React.createElement(Content, { ...props }))));
|
|
8
|
+
};
|
|
9
|
+
NewVirtualAddressFormDialog.defaultProps = {
|
|
10
|
+
type: "mini",
|
|
11
|
+
showSubmit: true,
|
|
12
|
+
};
|
|
13
|
+
export default NewVirtualAddressFormDialog;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/components/NewVirtualAddressForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAuC,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,2BAA2B,GAAG,CAAC,KAAiC,EAAE,EAAE;IACzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,iCAAiC,EACvC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,OAAO,OAAK,KAAK,GAAI,CACf,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,2BAA2B,CAAC,YAAY,GAAG;IAC1C,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.new-virtualAddress-form {
|
|
5
|
+
&.sub-virtualAddress-more-form {
|
|
6
|
+
padding: 0 20px;
|
|
7
|
+
|
|
8
|
+
.ant-form-item {
|
|
9
|
+
margin-bottom: 15px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.sub-virtualAddress-simply-form {
|
|
14
|
+
flex: none;
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
// border-top: #f2f2f2 solid 1px;
|
|
17
|
+
|
|
18
|
+
.ant-form-item {
|
|
19
|
+
margin-bottom: 10px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.virtualAddress-form-btn {
|
|
24
|
+
margin-top: 10px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "loading", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: false
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "officeId", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
makeObservable(this);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
observable
|
|
22
|
+
], State.prototype, "loading", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "officeId", void 0);
|
|
26
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/components/NewVirtualAddressForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IACjB;QAGmB;;;;mBAAU,KAAK;WAAC;QAChB;;;;;WAAiB;QAHnC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAGD;AAFmB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;uCAAyB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { useVirtualAddress } from "../../../../../data/virtual-address";
|
|
7
|
+
import Routes from "../../../../../routes";
|
|
8
|
+
import VirtualAddressMenu from "../../controls/VirtualAddressMenu";
|
|
9
|
+
const VirtualAddressHeader = (props) => {
|
|
10
|
+
const id = props.id;
|
|
11
|
+
const virtualAddress = useVirtualAddress(id);
|
|
12
|
+
return observe(() => (React.createElement("div", { className: "virtualAddress-header" },
|
|
13
|
+
React.createElement("div", null, virtualAddress.name),
|
|
14
|
+
React.createElement(ToolBar, { showMenu: false, id: id },
|
|
15
|
+
React.createElement(Open, { url: Routes.VirtualAddressDefaultView.getUrl(id) }),
|
|
16
|
+
React.createElement(VirtualAddressMenu, { id: id, closeAside: true })))));
|
|
17
|
+
};
|
|
18
|
+
export default VirtualAddressHeader;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/components/VirtualAddressHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AAEnE,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAE7C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,iCAAM,cAAc,CAAC,IAAI,CAAO;QAChC,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YAC1D,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACvC,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
2
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
|
|
6
|
+
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
7
|
+
import classnames from "classnames";
|
|
8
|
+
import React, { useState } from "react";
|
|
9
|
+
import { useVirtualAddress } from "../../../../../data/virtual-address";
|
|
10
|
+
import Routes from "../../../../../routes";
|
|
11
|
+
import VirtualAddressMenu from "../../controls/VirtualAddressMenu";
|
|
12
|
+
import PropertiesView from "../VirtualAddressPropertiesView";
|
|
13
|
+
import VirtualAddressQuickViewDialog from "../VirtualAddressQuickViewDialog";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
const VirtualAddressItem = (props) => {
|
|
16
|
+
const { id } = props;
|
|
17
|
+
const virtualAddress = useVirtualAddress(id);
|
|
18
|
+
const [hover, setHover] = useState(false);
|
|
19
|
+
return observe(() => {
|
|
20
|
+
var _a;
|
|
21
|
+
return (React.createElement(ItemFunction, { className: "virtualAddress-item", onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(PropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(VirtualAddressQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
22
|
+
React.createElement(ColumnItem, { className: "virtualAddress-column-item" },
|
|
23
|
+
React.createElement(ColumnItemCol, { span: 6 },
|
|
24
|
+
React.createElement("div", { className: "virtualAddress-item-name" }, virtualAddress.name)),
|
|
25
|
+
React.createElement(ColumnItemCol, { span: 14, title: "Contact" },
|
|
26
|
+
React.createElement(React.Fragment, null, ((_a = virtualAddress.corporate) === null || _a === void 0 ? void 0 : _a.contact) && (React.createElement(UnitReference, { unit: virtualAddress.corporate.contact })))),
|
|
27
|
+
React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
|
|
28
|
+
React.createElement("div", { className: classnames("virtualAddress-item-tool", { show: hover }) },
|
|
29
|
+
React.createElement(ToolBar, { showMenu: false, id: id },
|
|
30
|
+
React.createElement(Open, { url: Routes.VirtualAddressDefaultView.getUrl(id) }),
|
|
31
|
+
React.createElement(VirtualAddressMenu, { id: id, closeAside: true })))))));
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export default VirtualAddressItem;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/components/VirtualAddressItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAmB,MAAM,qCAAqC,CAAC;AACzF,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAAsB,EAAE,EAAE;IACrD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CA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C,CACL,CACS,CACJ,CACC,CACf,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.virtualAddress-item {
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
|
|
5
|
+
&:hover {
|
|
6
|
+
background-color: #f5f8fd;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:global {
|
|
10
|
+
.virtualAddress-item-name {
|
|
11
|
+
color: #575757;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
word-break: break-all;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.virtualAddress-item-tool {
|
|
17
|
+
display: none;
|
|
18
|
+
|
|
19
|
+
&.show {
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.virtualAddress-column-item {
|
|
25
|
+
padding: 10px 20px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type VirtualAddressListProps = {
|
|
4
|
+
corporateId: string;
|
|
5
|
+
/** title */
|
|
6
|
+
viewTitle?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare const VirtualAddressList: {
|
|
9
|
+
(props: VirtualAddressListProps): React.JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
viewTitle: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default VirtualAddressList;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { useVirtualAddressListEffect } from "../../../../../data/virtual-address";
|
|
3
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
6
|
+
import VirtualAddressForm from "../NewVirtualAddressForm/VirtualAddressForm";
|
|
7
|
+
import NewVirtualAddressFormDialog from "../NewVirtualAddressForm";
|
|
8
|
+
import VirtualAddressItem from "../VirtualAddressItem";
|
|
9
|
+
import { observe } from "@voplus/morpho-ui";
|
|
10
|
+
import { useAutoUpdateListData } from "../../../../../data/virtual-address";
|
|
11
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
|
+
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
13
|
+
const VirtualAddressList = (props) => {
|
|
14
|
+
const { corporateId, viewTitle } = props;
|
|
15
|
+
const [addAble, setAddAble] = useState(false);
|
|
16
|
+
const view = useViewContext();
|
|
17
|
+
const list = useCreateListDataState({
|
|
18
|
+
filterDefaults: {
|
|
19
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: corporateId }],
|
|
20
|
+
},
|
|
21
|
+
}, [corporateId]);
|
|
22
|
+
useAutoUpdateListData(list, (d) => d.parentId === corporateId);
|
|
23
|
+
useRenderOnChange(() => list.filters.options);
|
|
24
|
+
useVirtualAddressListEffect(list, (result, total) => {
|
|
25
|
+
list.union(result);
|
|
26
|
+
}, {
|
|
27
|
+
Total: false,
|
|
28
|
+
...list.filters.options,
|
|
29
|
+
});
|
|
30
|
+
return observe(() => {
|
|
31
|
+
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
32
|
+
React.createElement(ListView, { className: "virtualAddress-list-view", headerProps: {
|
|
33
|
+
viewTitle: viewTitle,
|
|
34
|
+
sortable: false,
|
|
35
|
+
quickSearch: true,
|
|
36
|
+
onAdd: () => ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" || (view === null || view === void 0 ? void 0 : view.Type) === "QuickView") &&
|
|
37
|
+
setAddAble(!addAble),
|
|
38
|
+
}, formViewTitle: "Add Virtual Address", formView: (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" &&
|
|
39
|
+
(view === null || view === void 0 ? void 0 : view.Type) !== "QuickView" && React.createElement(VirtualAddressForm, { showView: true, corporateId: corporateId }), renderItem: ({ item, index }) => (React.createElement(VirtualAddressItem, { key: item.id, id: item.id })) }),
|
|
40
|
+
addAble && (React.createElement(NewVirtualAddressFormDialog, { corporateId: corporateId, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) }))));
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
VirtualAddressList.defaultProps = {
|
|
44
|
+
viewTitle: "Virtual Address List",
|
|
45
|
+
};
|
|
46
|
+
export default VirtualAddressList;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|