@voplus/morpho-csp 9.0.3 → 9.0.5
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/components/CorporateMentionList/index.d.ts +1 -1
- package/es/components/CorporateMentionList/index.js +1 -1
- package/es/components/CorporateMentionList/index.js.map +1 -1
- package/es/data/filing-record/FilingRecordStore.d.ts +14 -14
- package/es/data/filing-record/FilingRecordStore.js +14 -14
- package/es/data/filing-record/filing-record-events/useOnDeleteFilingRecore.d.ts +2 -2
- package/es/data/filing-record/filing-record-events/useOnDeleteFilingRecore.js +4 -4
- package/es/data/filing-record/filing-record-events/useOnNewFilingRecore.d.ts +2 -2
- package/es/data/filing-record/filing-record-events/useOnNewFilingRecore.js +4 -4
- package/es/data/filing-record/hooks.d.ts +5 -5
- package/es/data/filing-record/hooks.js +7 -7
- package/es/data/filing-record/types.d.ts +5 -5
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.d.ts +1 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.js +1 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.d.ts +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.js +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.js +4 -4
- package/es/modules/corporate/filing-record/components/FilingRecordHeader/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +3 -3
- package/es/modules/corporate/filing-record/components/FilingRecordList/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js +3 -3
- package/es/modules/corporate/filing-record/components/FilingRecordPropertiesView/index.js +3 -3
- package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingRecordTabs/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingRecordTimeLine/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js +2 -2
- package/es/modules/corporate/filing-record/components/NewFilingRecordForm/NewFilingRecordFormDialog.d.ts +10 -0
- package/es/modules/corporate/filing-record/components/NewFilingRecordForm/NewFilingRecordFormDialog.js +14 -0
- package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm/NewFilingRecoreFormDialog.js.map → NewFilingRecordForm/NewFilingRecordFormDialog.js.map} +1 -1
- package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm → NewFilingRecordForm}/index.d.ts +4 -4
- package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm → NewFilingRecordForm}/index.js +8 -8
- package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm → NewFilingRecordForm}/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm → NewFilingRecordForm}/index.less +4 -4
- package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm → NewFilingRecordForm}/state.js.map +1 -1
- package/es/modules/corporate/filing-record/controls/FilingRecordMenu/index.js +3 -3
- package/es/modules/corporate/filing-record/controls/FilingRecordMenu/items/NotifyFiling.js +3 -3
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/Table.js +2 -2
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.d.ts +5 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js +7 -6
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js +2 -2
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearItem/index.js +2 -2
- package/es/modules/corporate/filing-record/pages/FilingClientView/index.js +2 -2
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js +2 -2
- package/es/modules/corporate/filing-record/pages/FilingListPage/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.d.ts +1 -0
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.d.ts +0 -10
- package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.js +0 -14
- /package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm → NewFilingRecordForm}/state.d.ts +0 -0
- /package/es/modules/corporate/filing-record/components/{NewFilingRecoreForm → NewFilingRecordForm}/state.js +0 -0
|
@@ -4,7 +4,7 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
4
4
|
import Icon from "@voplus/morpho-ui/es/controls/HoverSwitchIcon";
|
|
5
5
|
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference";
|
|
6
6
|
import CorporateUnitSelectDialog from "../CorporateUnitSelectDialog";
|
|
7
|
-
import "@voplus/morpho-org/es/controls/MentionList/index.
|
|
7
|
+
import "@voplus/morpho-org/es/controls/MentionList/index.css";
|
|
8
8
|
const CorporateMentionList = (props) => {
|
|
9
9
|
const [unit, setUint] = useState(false);
|
|
10
10
|
return observe(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CorporateMentionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,IAAI,MAAM,+CAA+C,CAAC;AACjE,OAAO,aAAa,MAAM,8CAA8C,CAAC;AACzE,OAAO,yBAAyB,MAAM,8B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AW,EACrB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAC3B,CACF,CACI,CACD;YACL,IAAI,IAAI,CACR,oBAAC,yBAAyB,IACzB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,WAAW,EAAE,KAAK,CAAC,QAAQ,EAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,eAAe,EAAE,KAAK,CAAC,QAAQ,EAC/B,gBAAgB,EAAE,MAAA,KAAK,CAAC,gBAAgB,mCAAI,OAAO,EACnD,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAC9B,QAAQ,EAAE,CAAC,IAAkD,EAAE,EAAE;;oBAChE,MAAA,KAAK,CAAC,QAAQ,sDAAG,IAAI,CAAC,CAAC;oBACvB,OAAO,CAAC,KAAK,CAAC,CAAC;gBAChB,CAAC,GACA,CACF,CACe,CACjB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { ApiEndPoint } from "@voplus/api";
|
|
2
2
|
import { CountedMap, Store, FilterOption, StoreActionOptions } from "@voplus/morpho-data";
|
|
3
|
-
import {
|
|
3
|
+
import { CreateFilingRecordOptions, DeleteFilingRecordOptions, EditFilingRecordOptions, LoadFilingRecordOptions, FilingRecordNotifyOptions } from "./types";
|
|
4
4
|
import { IFilingRecord } from "./interfaces";
|
|
5
5
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
6
6
|
/** Quotation store supply backend functions. */
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class FilingRecordStore extends Store {
|
|
8
8
|
readonly endpoint: ApiEndPoint;
|
|
9
9
|
/** Name of the store */
|
|
10
10
|
readonly name: string;
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
11
|
+
private readonly _filingRecordDeleted;
|
|
12
|
+
private readonly _filingRecordCreated;
|
|
13
13
|
constructor(endpoint: ApiEndPoint);
|
|
14
14
|
/** All currently used corporate. */
|
|
15
15
|
readonly items: CountedMap<string, IFilingRecord>;
|
|
16
|
-
/** Event fires when a delete
|
|
17
|
-
get
|
|
16
|
+
/** Event fires when a delete filingRecord has been deleted. */
|
|
17
|
+
get FilingRecordDeletedEvent(): import("strongly-typed-events").IEvent<FilingRecordStore, IFilingRecord>;
|
|
18
18
|
/** Event fires when a new FilingRecore has been created. */
|
|
19
|
-
get
|
|
20
|
-
notify(id: string, options:
|
|
19
|
+
get FilingRecordCreatedEvent(): import("strongly-typed-events").IEvent<FilingRecordStore, IFilingRecord>;
|
|
20
|
+
notify(id: string, options: FilingRecordNotifyOptions): Promise<any>;
|
|
21
21
|
/** Create a new Identity. */
|
|
22
|
-
create(options:
|
|
22
|
+
create(options: CreateFilingRecordOptions): Promise<IFilingRecord>;
|
|
23
23
|
/** Edit an existing item on server. */
|
|
24
|
-
edit(id: string, options:
|
|
25
|
-
/**
|
|
26
|
-
delete(ids: string[], options?:
|
|
24
|
+
edit(id: string, options: EditFilingRecordOptions): Promise<void>;
|
|
25
|
+
/** filingRecord 內有文件不能delete */
|
|
26
|
+
delete(ids: string[], options?: DeleteFilingRecordOptions): Promise<any>;
|
|
27
27
|
/** Load a list of documents from server.
|
|
28
28
|
* @param {LoadDocumentListOptions}
|
|
29
29
|
*/
|
|
30
30
|
loadList(options?: LoadDocumentListOptions): Promise<IFilingRecord[]>;
|
|
31
|
-
load(id: string, options:
|
|
31
|
+
load(id: string, options: LoadFilingRecordOptions): Promise<IFilingRecord>;
|
|
32
32
|
/** count */
|
|
33
33
|
count(options: {
|
|
34
34
|
data: {
|
|
@@ -37,4 +37,4 @@ export declare class FilingRecoreStore extends Store {
|
|
|
37
37
|
} & StoreActionOptions): Promise<any>;
|
|
38
38
|
}
|
|
39
39
|
/** 响应钩子检索 IdentityStore */
|
|
40
|
-
export declare const
|
|
40
|
+
export declare const useFilingRecordStore: () => FilingRecordStore;
|
|
@@ -2,9 +2,9 @@ import { RequestBuilder } from "@voplus/api";
|
|
|
2
2
|
import { CountedMap, Store, useApplicationContext, } from "@voplus/morpho-data";
|
|
3
3
|
import { observable } from "mobx";
|
|
4
4
|
import { EventDispatcher } from "strongly-typed-events";
|
|
5
|
-
const StoreName = "
|
|
5
|
+
const StoreName = "FilingRecordStore";
|
|
6
6
|
/** Quotation store supply backend functions. */
|
|
7
|
-
export class
|
|
7
|
+
export class FilingRecordStore extends Store {
|
|
8
8
|
constructor(endpoint) {
|
|
9
9
|
super();
|
|
10
10
|
Object.defineProperty(this, "endpoint", {
|
|
@@ -20,13 +20,13 @@ export class FilingRecoreStore extends Store {
|
|
|
20
20
|
writable: true,
|
|
21
21
|
value: StoreName
|
|
22
22
|
});
|
|
23
|
-
Object.defineProperty(this, "
|
|
23
|
+
Object.defineProperty(this, "_filingRecordDeleted", {
|
|
24
24
|
enumerable: true,
|
|
25
25
|
configurable: true,
|
|
26
26
|
writable: true,
|
|
27
27
|
value: new EventDispatcher()
|
|
28
28
|
});
|
|
29
|
-
Object.defineProperty(this, "
|
|
29
|
+
Object.defineProperty(this, "_filingRecordCreated", {
|
|
30
30
|
enumerable: true,
|
|
31
31
|
configurable: true,
|
|
32
32
|
writable: true,
|
|
@@ -40,13 +40,13 @@ export class FilingRecoreStore extends Store {
|
|
|
40
40
|
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
/** Event fires when a delete
|
|
44
|
-
get
|
|
45
|
-
return this.
|
|
43
|
+
/** Event fires when a delete filingRecord has been deleted. */
|
|
44
|
+
get FilingRecordDeletedEvent() {
|
|
45
|
+
return this._filingRecordDeleted.asEvent();
|
|
46
46
|
}
|
|
47
47
|
/** Event fires when a new FilingRecore has been created. */
|
|
48
|
-
get
|
|
49
|
-
return this.
|
|
48
|
+
get FilingRecordCreatedEvent() {
|
|
49
|
+
return this._filingRecordCreated.asEvent();
|
|
50
50
|
}
|
|
51
51
|
async notify(id, options) {
|
|
52
52
|
return this.action(async () => {
|
|
@@ -59,7 +59,7 @@ export class FilingRecoreStore extends Store {
|
|
|
59
59
|
return await this.action(async () => {
|
|
60
60
|
const r = await this.endpoint.post(`/api/csp/corporate/filings/create`, new RequestBuilder().json(options.data));
|
|
61
61
|
const t = (await r.json());
|
|
62
|
-
this.
|
|
62
|
+
this._filingRecordCreated.dispatch(this, t);
|
|
63
63
|
return t;
|
|
64
64
|
}, options);
|
|
65
65
|
}
|
|
@@ -71,7 +71,7 @@ export class FilingRecoreStore extends Store {
|
|
|
71
71
|
this.items.overwrite(t.id, t);
|
|
72
72
|
}, options);
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
74
|
+
/** filingRecord 內有文件不能delete */
|
|
75
75
|
async delete(ids, options) {
|
|
76
76
|
return await this.action(async () => {
|
|
77
77
|
await this.endpoint.delete(`/api/csp/corporate/filings/delete`, new RequestBuilder().json({ Ids: ids, Options: options === null || options === void 0 ? void 0 : options.data }));
|
|
@@ -80,7 +80,7 @@ export class FilingRecoreStore extends Store {
|
|
|
80
80
|
const item = this.items.peek(id);
|
|
81
81
|
if (item) {
|
|
82
82
|
deleted.push(item);
|
|
83
|
-
this.
|
|
83
|
+
this._filingRecordDeleted.dispatch(this, item);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
return deleted;
|
|
@@ -118,10 +118,10 @@ export class FilingRecoreStore extends Store {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
/** 响应钩子检索 IdentityStore */
|
|
121
|
-
export const
|
|
121
|
+
export const useFilingRecordStore = () => {
|
|
122
122
|
const context = useApplicationContext();
|
|
123
123
|
if (!context.getService(StoreName)) {
|
|
124
|
-
context.registerService(new
|
|
124
|
+
context.registerService(new FilingRecordStore(context.api.currentEndPoint));
|
|
125
125
|
}
|
|
126
126
|
return context.getService(StoreName);
|
|
127
127
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilingRecordStore } from "../FilingRecordStore";
|
|
2
2
|
import { IFilingRecord } from "../interfaces";
|
|
3
3
|
/** React hook to call action when a delete FilingRecore has been created. */
|
|
4
|
-
export declare const useOnDeleteFilingRecore: (action: (store:
|
|
4
|
+
export declare const useOnDeleteFilingRecore: (action: (store: FilingRecordStore, doc: IFilingRecord) => void) => void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useFilingRecordStore } from "../FilingRecordStore";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
/** React hook to call action when a delete FilingRecore has been created. */
|
|
4
4
|
export const useOnDeleteFilingRecore = (action) => {
|
|
5
|
-
const store =
|
|
5
|
+
const store = useFilingRecordStore();
|
|
6
6
|
const onDeleteFilingRecore = (store, doc) => {
|
|
7
7
|
action(store, doc);
|
|
8
8
|
};
|
|
9
9
|
useEffect(() => {
|
|
10
|
-
store.
|
|
10
|
+
store.FilingRecordDeletedEvent.subscribe(onDeleteFilingRecore);
|
|
11
11
|
return () => {
|
|
12
|
-
store.
|
|
12
|
+
store.FilingRecordDeletedEvent.unsubscribe(onDeleteFilingRecore);
|
|
13
13
|
};
|
|
14
14
|
});
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilingRecordStore } from "../FilingRecordStore";
|
|
2
2
|
import { IFilingRecord } from "../interfaces";
|
|
3
3
|
/** React hook to call action when a new FilingRecore has been created. */
|
|
4
|
-
export declare const useOnNewFilingRecore: (action: (store:
|
|
4
|
+
export declare const useOnNewFilingRecore: (action: (store: FilingRecordStore, doc: IFilingRecord) => void) => void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useFilingRecordStore } from "../FilingRecordStore";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
/** React hook to call action when a new FilingRecore has been created. */
|
|
4
4
|
export const useOnNewFilingRecore = (action) => {
|
|
5
|
-
const store =
|
|
5
|
+
const store = useFilingRecordStore();
|
|
6
6
|
const onNewFilingRecore = (store, doc) => {
|
|
7
7
|
// console.log(`onNewFilingRecore - ${doc.id} ${doc.name}`);
|
|
8
8
|
action(store, doc);
|
|
9
9
|
};
|
|
10
10
|
useEffect(() => {
|
|
11
|
-
store.
|
|
11
|
+
store.FilingRecordCreatedEvent.subscribe(onNewFilingRecore);
|
|
12
12
|
return () => {
|
|
13
|
-
store.
|
|
13
|
+
store.FilingRecordCreatedEvent.unsubscribe(onNewFilingRecore);
|
|
14
14
|
};
|
|
15
15
|
});
|
|
16
16
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
2
2
|
import { IFilingRecord } from "./interfaces";
|
|
3
3
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
-
import {
|
|
5
|
-
/** React hook to retrieve a
|
|
6
|
-
* @param {string} id - id of the
|
|
4
|
+
import { LoadFilingRecordOptions } from ".";
|
|
5
|
+
/** React hook to retrieve a filingRecord
|
|
6
|
+
* @param {string} id - id of the filingRecord
|
|
7
7
|
* @param {LoadDocumentOptions} options - options
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
9
|
+
export declare const useFilingRecord: (id: string, options?: LoadFilingRecordOptions) => IFilingRecord;
|
|
10
|
+
export declare const useFilingRecordListEffect: (list: ListDataContextState<IFilingRecord> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
|
|
2
2
|
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
|
-
import {
|
|
4
|
-
/** React hook to retrieve a
|
|
5
|
-
* @param {string} id - id of the
|
|
3
|
+
import { useFilingRecordStore } from "./FilingRecordStore";
|
|
4
|
+
/** React hook to retrieve a filingRecord
|
|
5
|
+
* @param {string} id - id of the filingRecord
|
|
6
6
|
* @param {LoadDocumentOptions} options - options
|
|
7
7
|
*/
|
|
8
|
-
export const
|
|
8
|
+
export const useFilingRecord = (id, options) => {
|
|
9
9
|
options = options ? options : {};
|
|
10
|
-
const store =
|
|
10
|
+
const store = useFilingRecordStore();
|
|
11
11
|
return useLoadCountedMapItem(id, store.items, (calculatedOptions) => store.load(id, calculatedOptions), options);
|
|
12
12
|
};
|
|
13
|
-
export const
|
|
13
|
+
export const useFilingRecordListEffect = (list, effect, options) => {
|
|
14
14
|
const deps = options ? options : {};
|
|
15
|
-
const store =
|
|
15
|
+
const store = useFilingRecordStore();
|
|
16
16
|
return useListLoaderEffect(list, store.items, effect, () => store.loadList(options), [deps]);
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -3,7 +3,7 @@ import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
|
|
3
3
|
import { IFilingRecord } from "./interfaces";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
/** Custom load org contact options type */
|
|
6
|
-
export type
|
|
6
|
+
export type LoadFilingRecordOptions = {
|
|
7
7
|
/** Comma separated include options e.g. path */
|
|
8
8
|
includes?: string;
|
|
9
9
|
} & LoadOptions<IFilingRecord>;
|
|
@@ -20,16 +20,16 @@ export type FilingRecoreEditOptions = {
|
|
|
20
20
|
FileDate?: dayjs.Dayjs | string;
|
|
21
21
|
FileById?: string;
|
|
22
22
|
};
|
|
23
|
-
export type
|
|
23
|
+
export type CreateFilingRecordOptions = {
|
|
24
24
|
data: FilingRecoreCreateOptions;
|
|
25
25
|
} & StoreActionOptions;
|
|
26
|
-
export type
|
|
26
|
+
export type EditFilingRecordOptions = {
|
|
27
27
|
data: FilingRecoreEditOptions;
|
|
28
28
|
} & StoreActionOptions;
|
|
29
|
-
export type
|
|
29
|
+
export type DeleteFilingRecordOptions = {
|
|
30
30
|
data?: DeleteDocumentOptions;
|
|
31
31
|
} & StoreActionOptions;
|
|
32
|
-
export type
|
|
32
|
+
export type FilingRecordNotifyOptions = {
|
|
33
33
|
data: {
|
|
34
34
|
Message?: string;
|
|
35
35
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useMember } from "../../../../../../../data/member";
|
|
4
|
-
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.
|
|
4
|
+
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.css";
|
|
5
5
|
import UnitItem from "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem";
|
|
6
6
|
const MemberItem = (props) => {
|
|
7
7
|
const { id } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,yEAAyE,CAAC;AACjF,OAAO,QAAQ,MAAM,+DAA+D,CAAC;AAErF,MAAM,UAAU,GAAG,CAAC,KAOnB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,QAAQ,IACR,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAE,MAAM,CAAC,OAAc,EAC3B,aAAa,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAC5F,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAC1D,YAAY,EAAE,GAAG,EAAE;;gBAClB,OAAA,MAAA,KAAK,CAAC,YAAY,sDAAG;oBACpB,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;oBACrB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI;oBACzB,IAAI,EAAE,YAAY;iBACT,CAAC,CAAA;aAAA,GAEX,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IUnit } from "@voplus/morpho-org";
|
|
3
|
-
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.
|
|
3
|
+
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.css";
|
|
4
4
|
declare const OfficerItem: (props: {
|
|
5
5
|
id: string;
|
|
6
6
|
index?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useOfficer } from "../../../../../../../data/officer";
|
|
4
|
-
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.
|
|
4
|
+
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.css";
|
|
5
5
|
import UnitItem from "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem";
|
|
6
6
|
const OfficerItem = (props) => {
|
|
7
7
|
const { id } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,yEAAyE,CAAC;AACjF,OAAO,QAAQ,MAAM,+DAA+D,CAAC;AAErF,MAAM,WAAW,GAAG,CAAC,KAKpB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;IAE/B,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,QAAQ,IACR,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EACtB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAS,EACpE,aAAa,EACZ,CAAC,OAAO,CAAC,QAAQ;gBAChB,CAAC,CAAC,KAAK;gBACP,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;oBACpE,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,SAAS,EAEb,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAC3D,YAAY,EAAE,GAAG,EAAE;;gBAClB,OAAA,MAAA,KAAK,CAAC,qBAAqB,sDAAG;oBAC7B,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE;oBACtB,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI;oBAC1B,IAAI,EAAE,aAAa;iBACV,CAAC,CAAA;aAAA,GAEX,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
3
|
-
import {
|
|
3
|
+
import { useFilingRecordListEffect } from "../../../../../data/filing-record";
|
|
4
4
|
import { useAutoUpdateListData } from "../../../../../data/filing-record/filing-record-events";
|
|
5
5
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
6
6
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
7
|
-
import
|
|
7
|
+
import NewFilingRecordForm from "../NewFilingRecordForm";
|
|
8
8
|
import { FontAwesomeIcon as FAIcon, faScrollOldSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
9
9
|
import { useViewLayoutContext } from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout/ViewLayoutContext";
|
|
10
10
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
@@ -29,7 +29,7 @@ const FilingList = (props) => {
|
|
|
29
29
|
};
|
|
30
30
|
useAutoUpdateListData(list, (d) => d.parentId === filingYearId);
|
|
31
31
|
useRenderOnChange(() => list.filters.options);
|
|
32
|
-
|
|
32
|
+
useFilingRecordListEffect(list, (result, total) => list.union(result), list.filters.options);
|
|
33
33
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
34
34
|
React.createElement(ListView, { headerProps: {
|
|
35
35
|
headDashboardProps: headerType === "dashboard"
|
|
@@ -64,7 +64,7 @@ const FilingList = (props) => {
|
|
|
64
64
|
return filter;
|
|
65
65
|
}
|
|
66
66
|
function onAdd(asideContext) {
|
|
67
|
-
asideContext.openAside(React.createElement(
|
|
67
|
+
asideContext.openAside(React.createElement(NewFilingRecordForm, { showView: true, filingYearId: filingYearId }), {
|
|
68
68
|
span: (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.asideColSpan) ? layoutContext.asideColSpan : 12,
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Open, Close } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import {
|
|
4
|
+
import { useFilingRecord } from "../../../../../data/filing-record";
|
|
5
5
|
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
6
6
|
import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
|
7
7
|
import FilingRecordMenu from "../../controls/FilingRecordMenu";
|
|
8
8
|
const FilingHeader = (props) => {
|
|
9
9
|
const { id, close } = props;
|
|
10
|
-
const filing =
|
|
10
|
+
const filing = useFilingRecord(id);
|
|
11
11
|
return observe(() => (React.createElement(NodeHeaderLayout, { content: filing.name, tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
12
12
|
React.createElement(Open, { url: `/filings/${id}` }),
|
|
13
13
|
close && React.createElement(Close, { action: props.onClose }),
|
|
@@ -4,7 +4,7 @@ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnI
|
|
|
4
4
|
import { Skeleton, Tag } from "antd";
|
|
5
5
|
import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
|
|
6
6
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
7
|
-
import {
|
|
7
|
+
import { useFilingRecord, useFilingRecordStore } from "../../../../../data/filing-record";
|
|
8
8
|
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
9
9
|
import TagView from "@voplus/morpho-org/es/modules/tag/TagView";
|
|
10
10
|
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
@@ -16,8 +16,8 @@ import styles from "./index.less";
|
|
|
16
16
|
import dayjs from "dayjs";
|
|
17
17
|
const FilingRecordItem = (props) => {
|
|
18
18
|
const { id } = props;
|
|
19
|
-
const filing =
|
|
20
|
-
const store =
|
|
19
|
+
const filing = useFilingRecord(id, { reload: (i) => !i.tags, includes: "tags" });
|
|
20
|
+
const store = useFilingRecordStore();
|
|
21
21
|
const [hover, setHover] = useState(false);
|
|
22
22
|
return observe(() => (React.createElement(Skeleton, { active: true, loading: !filing.loaded },
|
|
23
23
|
React.createElement(ItemFunction, { className: classnames(styles["filing-item"]), onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(FilingRecordPropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(FilingRecordQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useFilingRecordListEffect } from "../../../../../data/filing-record";
|
|
3
3
|
import { useAutoUpdateListData } from "../../../../../data/filing-record/filing-record-events";
|
|
4
4
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
5
5
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
@@ -16,7 +16,7 @@ const FilingRecordList = (props) => {
|
|
|
16
16
|
}, [props.filingYearId]);
|
|
17
17
|
useAutoUpdateListData(list, (d) => d.parentId === props.filingYearId);
|
|
18
18
|
useRenderOnChange(() => list.filters.options);
|
|
19
|
-
|
|
19
|
+
useFilingRecordListEffect(list, (result, total) => list.union(result), list.filters.options);
|
|
20
20
|
return observe(() => {
|
|
21
21
|
var _a;
|
|
22
22
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
3
3
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
4
|
-
import {
|
|
4
|
+
import { useFilingRecord, useFilingRecordStore } from "../../../../../data/filing-record";
|
|
5
5
|
import { FontAwesomeIcon as FAIcon, faEllipsisVerticalRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
6
6
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
7
7
|
import { Switch } from "antd";
|
|
@@ -21,11 +21,11 @@ const FilingProperties = (props) => {
|
|
|
21
21
|
const classId = "filing-properties";
|
|
22
22
|
const { id, filingTitle, headerVisible, verificationVisible, filingProperties } = props;
|
|
23
23
|
const { user } = useApplicationContext();
|
|
24
|
-
const filing =
|
|
24
|
+
const filing = useFilingRecord(id, {
|
|
25
25
|
reload: (i) => !i.year || !i.p,
|
|
26
26
|
includes: "filing-year,permissions",
|
|
27
27
|
});
|
|
28
|
-
const store =
|
|
28
|
+
const store = useFilingRecordStore();
|
|
29
29
|
const filterPro = filingProperties === null || filingProperties === void 0 ? void 0 : filingProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
30
30
|
return observe(() => (React.createElement("div", { className: "filing-properties properties-list" },
|
|
31
31
|
headerVisible && (React.createElement("div", { className: "filing-header" },
|
|
@@ -5,18 +5,18 @@ import { FontAwesomeIcon as FAIcon, faScrollOldSolid } from "@voplus/morpho-ui/e
|
|
|
5
5
|
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
6
6
|
import { useHandleError } from "@voplus/morpho-document-core";
|
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
|
8
|
-
import {
|
|
8
|
+
import { useFilingRecord, useFilingRecordStore } from "../../../../../data/filing-record";
|
|
9
9
|
import FilingRecordMenu from "../../controls/FilingRecordMenu";
|
|
10
10
|
import FilingRecordTabs from "../FilingRecordTabs";
|
|
11
11
|
const FilingRecordPropertiesView = (props) => {
|
|
12
12
|
const id = props.id;
|
|
13
13
|
const handleError = useHandleError();
|
|
14
|
-
const filing =
|
|
14
|
+
const filing = useFilingRecord(id, {
|
|
15
15
|
reload: (i) => !i.tags,
|
|
16
16
|
includes: "tags",
|
|
17
17
|
onError: handleError,
|
|
18
18
|
});
|
|
19
|
-
const store =
|
|
19
|
+
const store = useFilingRecordStore();
|
|
20
20
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
21
21
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
22
22
|
React.createElement("div", { className: "module-detail-view product-properties-view" },
|
|
@@ -2,13 +2,13 @@ import React, { useState, useEffect } from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import FilingRecordHeader from "../FilingRecordHeader";
|
|
4
4
|
import FilingRecordProperties from "../FilingRecordProperties";
|
|
5
|
-
import {
|
|
5
|
+
import { useFilingRecord } from "../../../../../data/filing-record";
|
|
6
6
|
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
7
7
|
import "./index.less";
|
|
8
8
|
const FilingQuickViewDialog = (props) => {
|
|
9
9
|
const { id } = props;
|
|
10
10
|
const [error, setError] = useState(null);
|
|
11
|
-
const filing =
|
|
11
|
+
const filing = useFilingRecord(id, { onError: (e) => setError(e) });
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
setError(null);
|
|
14
14
|
}, [id]);
|
|
@@ -2,7 +2,7 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { Badge } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
-
import {
|
|
5
|
+
import { useFilingRecord } from "../../../../../data/filing-record";
|
|
6
6
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
7
7
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
8
8
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
@@ -11,7 +11,7 @@ const FilingRecordTabs = (props) => {
|
|
|
11
11
|
const { id, properties } = props;
|
|
12
12
|
const [docTotals, setDocTotals] = useState(0);
|
|
13
13
|
const [activeKey, setActiveKey] = useState();
|
|
14
|
-
const filing =
|
|
14
|
+
const filing = useFilingRecord(id);
|
|
15
15
|
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
16
16
|
Total: true,
|
|
17
17
|
List: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { faCheckRegular, faThumbsUpRegular, faUserRegular, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
3
|
-
import {
|
|
3
|
+
import { useFilingRecordListEffect } from "../../../../../data/filing-record";
|
|
4
4
|
import { useAutoUpdateListData } from "../../../../../data/filing-record/filing-record-events";
|
|
5
5
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
6
6
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
@@ -19,7 +19,7 @@ const FilingTimeLine = (props) => {
|
|
|
19
19
|
}, [props.filingYearId]);
|
|
20
20
|
useAutoUpdateListData(list, (d) => d.parentId === props.filingYearId);
|
|
21
21
|
useRenderOnChange(() => list.filters.options);
|
|
22
|
-
|
|
22
|
+
useFilingRecordListEffect(list, (result, total) => list.union(result), list.filters.options);
|
|
23
23
|
return observe(() => {
|
|
24
24
|
var _a, _b;
|
|
25
25
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { faBookmarkRegular, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
4
|
-
import {
|
|
4
|
+
import { useFilingRecordListEffect } from "../../../../../data/filing-record";
|
|
5
5
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
6
6
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
7
7
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
@@ -26,7 +26,7 @@ const FilingTimeLineCard = (props) => {
|
|
|
26
26
|
useAutoUpdateListData(list, (d) => d.parentId === filingYearId);
|
|
27
27
|
useRenderOnChange(() => list.filters.options);
|
|
28
28
|
/** 把ListDataState传给useWorkScheduleListEffect,使之可以自動更新loading, hasmore. */
|
|
29
|
-
|
|
29
|
+
useFilingRecordListEffect(list, (result, total) => {
|
|
30
30
|
list.union(result);
|
|
31
31
|
state.dateList = result;
|
|
32
32
|
}, {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NewFilingRecordFormProps } from "./index";
|
|
3
|
+
declare const NewFilingRecordFormDialog: {
|
|
4
|
+
(props: NewFilingRecordFormProps): React.JSX.Element;
|
|
5
|
+
defaultProps: {
|
|
6
|
+
type: string;
|
|
7
|
+
showSubmit: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default NewFilingRecordFormDialog;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Modal } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import NewFilingRecordForm from "./index";
|
|
5
|
+
const NewFilingRecordFormDialog = (props) => {
|
|
6
|
+
return observe(() => (React.createElement(Modal, { title: "New Filing Record Form Dialog", open: true, closable: false, footer: null, onCancel: props.onCancel },
|
|
7
|
+
React.createElement(NewFilingRecordForm, { ...props }))));
|
|
8
|
+
};
|
|
9
|
+
NewFilingRecordFormDialog.defaultProps = {
|
|
10
|
+
type: "mini",
|
|
11
|
+
showSubmit: true,
|
|
12
|
+
};
|
|
13
|
+
export default NewFilingRecordFormDialog;
|
|
14
|
+
//# sourceMappingURL=NewFilingRecordFormDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"NewFilingRecordFormDialog.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/NewFilingRecordForm/NewFilingRecordFormDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAiD,MAAM,SAAS,CAAC;AAExE,MAAM,yBAAyB,GAAG,CAAC,KAA+B,EAAE,EAAE;IACrE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,+BAA+B,EACrC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,mBAAmB,OAAK,KAAK,GAAI,CAC3B,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,yBAAyB,CAAC,YAAY,GAAG;IACxC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
|
-
export type
|
|
3
|
+
export type NewFilingRecordFormProps = {
|
|
4
4
|
filingYearId: string;
|
|
5
5
|
type?: "full" | "mini";
|
|
6
6
|
className?: string;
|
|
@@ -8,10 +8,10 @@ export type NewFilingRecoreFormProps = {
|
|
|
8
8
|
onSave?: (params?: any) => void;
|
|
9
9
|
onCancel?: () => void;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
12
|
-
(props:
|
|
11
|
+
declare const NewFilingRecordForm: {
|
|
12
|
+
(props: NewFilingRecordFormProps): React.JSX.Element;
|
|
13
13
|
defaultProps: {
|
|
14
14
|
type: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default NewFilingRecordForm;
|
|
@@ -2,7 +2,7 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { Button, Form, Input, Row, Space, message } from "antd";
|
|
3
3
|
import { observe, UTCDatePicker as DatePicker } from "@voplus/morpho-ui";
|
|
4
4
|
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
5
|
-
import {
|
|
5
|
+
import { useFilingRecordStore } from "../../../../../data/filing-record";
|
|
6
6
|
import { useFilingYear } from "../../../../../data/filing-year";
|
|
7
7
|
import { runInAction } from "mobx";
|
|
8
8
|
import { State } from "./state";
|
|
@@ -11,14 +11,14 @@ import classnames from "classnames";
|
|
|
11
11
|
import FilingRecordPropertiesView from "../FilingRecordPropertiesView";
|
|
12
12
|
import dayjs from "dayjs";
|
|
13
13
|
import "./index.less";
|
|
14
|
-
const
|
|
14
|
+
const NewFilingRecordForm = (props) => {
|
|
15
15
|
const { filingYearId } = props;
|
|
16
16
|
const filingYear = useFilingYear(filingYearId);
|
|
17
|
-
const store =
|
|
17
|
+
const store = useFilingRecordStore();
|
|
18
18
|
const asideContext = useAsideContentContext();
|
|
19
19
|
const [state] = useState(new State());
|
|
20
|
-
const content = observe(() => (React.createElement("div", { className: classnames(props.className, "new-filing-
|
|
21
|
-
"sub-filing-
|
|
20
|
+
const content = observe(() => (React.createElement("div", { className: classnames(props.className, "new-filing-record-form", {
|
|
21
|
+
"sub-filing-record-simply-form": props.type === "mini",
|
|
22
22
|
}) },
|
|
23
23
|
React.createElement(Form, { layout: "vertical" },
|
|
24
24
|
React.createElement(Form.Item, { label: "Name", name: "Name" },
|
|
@@ -27,7 +27,7 @@ const NewFilingRecoreForm = (props) => {
|
|
|
27
27
|
React.createElement(DatePicker, { style: { width: "100%" }, onChange: (value, dateString) => (state.params.DueDate = dateString) })),
|
|
28
28
|
React.createElement(Form.Item, { label: "File Date", name: "FileDate" },
|
|
29
29
|
React.createElement(DatePicker, { style: { width: "100%" }, onChange: (value, dateString) => (state.params.FileDate = dateString) })),
|
|
30
|
-
props.type === "mini" && (React.createElement(Row, { className: "filing-
|
|
30
|
+
props.type === "mini" && (React.createElement(Row, { className: "filing-record-form-btn", justify: "end" },
|
|
31
31
|
React.createElement(Space, null,
|
|
32
32
|
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
33
33
|
React.createElement(Button, { type: "primary", onClick: onSubmit }, "Submit"))))))));
|
|
@@ -64,8 +64,8 @@ const NewFilingRecoreForm = (props) => {
|
|
|
64
64
|
props.onCancel();
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
NewFilingRecordForm.defaultProps = {
|
|
68
68
|
type: "full",
|
|
69
69
|
};
|
|
70
|
-
export default
|
|
70
|
+
export default NewFilingRecordForm;
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/NewFilingRecordForm/index.tsx"],"names":[],"mappings":"AAAA,O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AAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
2
|
|
|
3
3
|
:global {
|
|
4
|
-
.new-filing-
|
|
5
|
-
&.sub-filing-
|
|
4
|
+
.new-filing-record-form {
|
|
5
|
+
&.sub-filing-record-more-form {
|
|
6
6
|
padding: 0 20px;
|
|
7
7
|
|
|
8
8
|
.ant-form-item {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
&.sub-filing-
|
|
13
|
+
&.sub-filing-record-simply-form {
|
|
14
14
|
flex: none;
|
|
15
15
|
padding-bottom: 10px;
|
|
16
16
|
// border-top: #f2f2f2 solid 1px;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.filing-
|
|
36
|
+
.filing-record-form-btn {
|
|
37
37
|
margin-top: 10px;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/NewFilingRecordForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAIO;;;;mBAAS;gBACf,IAAI,EAAE,EAAE;gBACR,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,EAAE;aACZ;WAAC;QAEiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAU,KAAK;WAAC;QAVlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAFmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAwB"}
|
|
@@ -3,7 +3,7 @@ import { NotifyFiling } from "./items";
|
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
5
|
import { Access, Delete } from "@voplus/morpho-document-core/es/controls/NodeMenu/items";
|
|
6
|
-
import {
|
|
6
|
+
import { useFilingRecordStore, useFilingRecord } from "../../../../../data/filing-record";
|
|
7
7
|
import SubPasteNodeMenu from "@voplus/morpho-org/es/controls/ContactMenu/SubPasteContactMenu/SubPasteNodeMenu";
|
|
8
8
|
import ActionPlanGroup from "@voplus/morpho-document-core/es/controls/NodeMenu/ActionPlanGroup";
|
|
9
9
|
import NodeMenu from "@voplus/morpho-document-core/es/controls/NodeMenu";
|
|
@@ -11,11 +11,11 @@ const FilingRecordMenu = (props) => {
|
|
|
11
11
|
var _a;
|
|
12
12
|
const blankMenu = (_a = props.blankMenu) !== null && _a !== void 0 ? _a : [];
|
|
13
13
|
const { user } = useApplicationContext();
|
|
14
|
-
const fr =
|
|
14
|
+
const fr = useFilingRecord(props.id, {
|
|
15
15
|
reload: (i) => !user.info.guest && !i.p,
|
|
16
16
|
includes: "permissions",
|
|
17
17
|
});
|
|
18
|
-
const store =
|
|
18
|
+
const store = useFilingRecordStore();
|
|
19
19
|
return observe(() => (React.createElement(NodeMenu, { ...props, store: store, menus: React.createElement(React.Fragment, null,
|
|
20
20
|
React.createElement(SubPasteNodeMenu, null),
|
|
21
21
|
!blankMenu.includes("NotifyFiling") && React.createElement(NotifyFiling, null),
|
|
@@ -7,13 +7,13 @@ import { runInAction } from "mobx";
|
|
|
7
7
|
import { useNodeMenuContext } from "@voplus/morpho-document-core/es/controls/NodeMenu/state";
|
|
8
8
|
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
9
9
|
import { useVerificationStore } from "@voplus/morpho-org/es/modules/verification/VerificationInformation/VerificationStore";
|
|
10
|
-
import {
|
|
10
|
+
import { useFilingRecord, useFilingRecordStore } from "../../../../../../data/filing-record";
|
|
11
11
|
import SendMessageDialog from "../../../components/SendMessageDialog";
|
|
12
12
|
const NotifyFiling = (props) => {
|
|
13
13
|
const context = useNodeMenuContext();
|
|
14
14
|
const verifyStore = useVerificationStore();
|
|
15
|
-
const filing =
|
|
16
|
-
const store =
|
|
15
|
+
const filing = useFilingRecord(context.id, { reload: (i) => !i.contact, includes: "contact" });
|
|
16
|
+
const store = useFilingRecordStore();
|
|
17
17
|
const [visible, setVisible] = useState(false);
|
|
18
18
|
const [state] = useState(new State(verifyStore));
|
|
19
19
|
useEffect(() => {
|
|
@@ -3,7 +3,7 @@ import { Table } from "antd";
|
|
|
3
3
|
import { toJS } from "mobx";
|
|
4
4
|
import { observe, useAsideContentContext, useRenderOnChange } from "@voplus/morpho-ui";
|
|
5
5
|
import TableCell, { columnsList } from "./TableCell";
|
|
6
|
-
import {
|
|
6
|
+
import { useFilingRecordListEffect } from "../../../../../../data/filing-record";
|
|
7
7
|
import { useAutoUpdateListData } from "../../../../../../data/filing-record/filing-record-events";
|
|
8
8
|
import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
9
9
|
import FilingRecordPropertiesView from "../../../components/FilingRecordPropertiesView";
|
|
@@ -18,7 +18,7 @@ const FilingsTable = (props) => {
|
|
|
18
18
|
}, [props.filingYearId]);
|
|
19
19
|
useAutoUpdateListData(list, (d) => d.parentId === props.filingYearId);
|
|
20
20
|
useRenderOnChange(() => list.filters.options);
|
|
21
|
-
|
|
21
|
+
useFilingRecordListEffect(list, (result, total) => list.union(result), list.filters.options);
|
|
22
22
|
const components = {
|
|
23
23
|
body: {
|
|
24
24
|
// row: DragTableRow,
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.d.ts
CHANGED
|
@@ -4,10 +4,14 @@ export declare const columnsList: ({
|
|
|
4
4
|
title: React.JSX.Element;
|
|
5
5
|
dataIndex: string;
|
|
6
6
|
width: string;
|
|
7
|
+
align?: undefined;
|
|
8
|
+
minWidth?: undefined;
|
|
7
9
|
} | {
|
|
8
10
|
title: string;
|
|
11
|
+
align: string;
|
|
9
12
|
dataIndex: string;
|
|
10
|
-
|
|
13
|
+
minWidth: string;
|
|
14
|
+
width?: undefined;
|
|
11
15
|
})[];
|
|
12
16
|
declare const TableCell: (props: any) => React.JSX.Element;
|
|
13
17
|
export default TableCell;
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js
CHANGED
|
@@ -9,7 +9,7 @@ import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAler
|
|
|
9
9
|
import FilingRecordMenu from "../../../controls/FilingRecordMenu";
|
|
10
10
|
import React from "react";
|
|
11
11
|
import dayjs from "dayjs";
|
|
12
|
-
import {
|
|
12
|
+
import { useFilingRecord, useFilingRecordStore } from "../../../../../../data/filing-record";
|
|
13
13
|
import "./index.less";
|
|
14
14
|
export const columnsList = [
|
|
15
15
|
{
|
|
@@ -24,14 +24,14 @@ export const columnsList = [
|
|
|
24
24
|
React.createElement(FAIcon, { icon: faCalendarCheckSolid }),
|
|
25
25
|
" Due")),
|
|
26
26
|
dataIndex: "due",
|
|
27
|
-
width: "
|
|
27
|
+
width: "20%",
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
title: (React.createElement(React.Fragment, null,
|
|
31
31
|
React.createElement(FAIcon, { icon: faUserSolid }),
|
|
32
32
|
" File By")),
|
|
33
33
|
dataIndex: "by",
|
|
34
|
-
width: "
|
|
34
|
+
width: "25%",
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
title: (React.createElement(React.Fragment, null,
|
|
@@ -42,16 +42,17 @@ export const columnsList = [
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
title: " ",
|
|
45
|
+
align: "right",
|
|
45
46
|
dataIndex: "menu",
|
|
46
|
-
|
|
47
|
+
minWidth: "68px",
|
|
47
48
|
},
|
|
48
49
|
];
|
|
49
50
|
const TableCell = (props) => {
|
|
50
51
|
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
51
|
-
const store =
|
|
52
|
+
const store = useFilingRecordStore();
|
|
52
53
|
return observe(() => {
|
|
53
54
|
var _a, _b, _c;
|
|
54
|
-
const filing =
|
|
55
|
+
const filing = useFilingRecord(record === null || record === void 0 ? void 0 : record.id, { reload: (i) => !i.tags, includes: "tags" });
|
|
55
56
|
return (React.createElement("td", { ...restProps }, dataIndex === "filing" ? (React.createElement("div", { className: "officer-table-item-filing" },
|
|
56
57
|
React.createElement("div", null, filing.name),
|
|
57
58
|
React.createElement(UTCShortDate, { value: filing.dueDate }))) : dataIndex === "due" ? (React.createElement("div", { className: "officer-table-item-due" }, filing.exempted ? (React.createElement("span", { className: "exempted" }, "exempted")) : filing.fileDate ? (React.createElement(UTCShortDate, { value: filing.fileDate })) : getDiffDay(filing.dueDate) > 0 ? (React.createElement("span", { className: "due-diffday" }, `Due ${getDiffDay(filing.dueDate)} days`)) : null)) : dataIndex === "by" ? (((_a = filing.fileBy) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement("div", { className: "officer-table-item-by" },
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,gBAAgB,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC7F,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,aAAa,GAAI;sBAC7B,CACH;QACD,SAAS,EAAE,QAAQ;QACnB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,oBAAoB,GAAI;mBACpC,CACH;QACD,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;uBAC3B,CACH;QACD,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI;oBACnC,CACH;QACD,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,GAAG;QACV,SAAS,EAAE,MAAM;QACjB,
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearC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AAQ;QACR,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAC5D,OAAO;QACP,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QACnE,qBAAqB;QACrB,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;QAC5B,OAAO;QACP,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;QACtD,QAAQ;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -7,7 +7,7 @@ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
|
7
7
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
8
8
|
import FilingsTable from "./Table";
|
|
9
9
|
import FilingYearPropertiesView from "../FilingYearPropertiesView";
|
|
10
|
-
import
|
|
10
|
+
import NewFilingRecordForm from "../../../components/NewFilingRecordForm";
|
|
11
11
|
import classnames from "classnames";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
const FilingYearCard = (props) => {
|
|
@@ -25,7 +25,7 @@ const FilingYearCard = (props) => {
|
|
|
25
25
|
React.createElement(AddDropDown, { btnType: "icon", onClick: onAdd }))),
|
|
26
26
|
React.createElement(FilingsTable, { filingYearId: filingYear.id }))));
|
|
27
27
|
function onAdd() {
|
|
28
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(
|
|
28
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewFilingRecordForm, { filingYearId: id, showView: true }), {
|
|
29
29
|
span: 12,
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -4,7 +4,7 @@ import { useFilingYear } from "../../../../../../data/filing-year";
|
|
|
4
4
|
import { faCalendarRegular, faPlusRegular, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
5
5
|
import FilingRecordList from "../../../components/FilingRecordList";
|
|
6
6
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
7
|
-
import
|
|
7
|
+
import NewFilingRecordForm from "../../../components/NewFilingRecordForm";
|
|
8
8
|
import styles from "./index.less";
|
|
9
9
|
const FilingYearItem = (props) => {
|
|
10
10
|
const { id, addAble } = props;
|
|
@@ -24,7 +24,7 @@ const FilingYearItem = (props) => {
|
|
|
24
24
|
props.onClickItem(id);
|
|
25
25
|
}
|
|
26
26
|
function onAdd() {
|
|
27
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(
|
|
27
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewFilingRecordForm, { filingYearId: id, showView: true }), {
|
|
28
28
|
span: 12,
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -4,7 +4,7 @@ import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
|
4
4
|
import { useParams } from "react-router-dom";
|
|
5
5
|
import FilingRecordProperties from "../../components/FilingRecordProperties";
|
|
6
6
|
import FilingRecordTabs from "../../components/FilingRecordTabs";
|
|
7
|
-
import {
|
|
7
|
+
import { useFilingRecord } from "../../../../../data/filing-record";
|
|
8
8
|
import { faEllipsisVerticalSolid, faScrollOldSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
9
9
|
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
10
10
|
;
|
|
@@ -18,7 +18,7 @@ const FilingClientView = () => {
|
|
|
18
18
|
const { id } = useParams();
|
|
19
19
|
const handleError = useHandleError();
|
|
20
20
|
const tab = useTabItem();
|
|
21
|
-
const filing =
|
|
21
|
+
const filing = useFilingRecord(id, {
|
|
22
22
|
reload: true,
|
|
23
23
|
includes: "filing-year,permissions",
|
|
24
24
|
onError: handleError,
|
|
@@ -3,7 +3,7 @@ import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { useParams } from "react-router-dom";
|
|
4
4
|
import FilingRecordProperties from "../../components/FilingRecordProperties";
|
|
5
5
|
import FilingRecordTabs from "../../components/FilingRecordTabs";
|
|
6
|
-
import {
|
|
6
|
+
import { useFilingRecord } from "../../../../../data/filing-record";
|
|
7
7
|
import { faEllipsisVerticalSolid, faScrollOldSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
8
8
|
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
9
9
|
;
|
|
@@ -25,7 +25,7 @@ const FilingDefaultView = () => {
|
|
|
25
25
|
const { user } = useApplicationContext();
|
|
26
26
|
const [packUp, setPackUp] = useState(false);
|
|
27
27
|
const handleError = useHandleError();
|
|
28
|
-
const filing =
|
|
28
|
+
const filing = useFilingRecord(id, {
|
|
29
29
|
reload: true,
|
|
30
30
|
includes: "filing-year,permissions",
|
|
31
31
|
onError: handleError,
|
|
@@ -8,12 +8,12 @@ import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultVie
|
|
|
8
8
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
9
9
|
import React, { useState, useMemo, useEffect } from "react";
|
|
10
10
|
import FilingList from "../../components/FilingList";
|
|
11
|
-
import {
|
|
11
|
+
import { useFilingRecordStore } from "../../../../../data/filing-record";
|
|
12
12
|
import FilingPanel from "../../components/FilingPanel";
|
|
13
13
|
import { State } from "./state";
|
|
14
14
|
import styles from "./index.less";
|
|
15
15
|
const FilingListPage = (props) => {
|
|
16
|
-
const store =
|
|
16
|
+
const store = useFilingRecordStore();
|
|
17
17
|
const [state] = useState(new State(props.centerId, props.filingYearId));
|
|
18
18
|
const [activeKey, setActiveKey] = useState("FilingList");
|
|
19
19
|
const context = useMemo(() => new QuickFilterContextState({
|
|
@@ -8,7 +8,7 @@ import NewDPODialog from "./NewDPODialog";
|
|
|
8
8
|
import Section from "../../../controls/Section";
|
|
9
9
|
import Tips from "../../../controls/Tips/Tip";
|
|
10
10
|
import classnames from "classnames";
|
|
11
|
-
import
|
|
11
|
+
import "@voplus/morpho-org/es/controls/UnitReference/index.css";
|
|
12
12
|
const DataProtectionOfficer = (props) => {
|
|
13
13
|
const context = useIncorporationFormContext();
|
|
14
14
|
const incorporation = useCLDAForm(props.id);
|
|
@@ -31,7 +31,7 @@ const DataProtectionOfficer = (props) => {
|
|
|
31
31
|
React.createElement("div", { className: "sub-title" }, "DPO"),
|
|
32
32
|
React.createElement(Divider, { style: { margin: "10px 0" } }),
|
|
33
33
|
React.createElement(FolderEdit, { showEditIcon: (_a = context.editable) !== null && _a !== void 0 ? _a : true, onEditIconClick: () => setVisible(true) },
|
|
34
|
-
((_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.dpo) ? (React.createElement("div", { className: classnames(
|
|
34
|
+
((_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.dpo) ? (React.createElement("div", { className: classnames("unit-reference-node", { symbol: true }) }, `@ ${findSelectedDPO(incorporation.content.dpo).name}`)) : (React.createElement("div", { style: { minHeight: "26px" }, onClick: () => setVisible(true) },
|
|
35
35
|
React.createElement("span", { className: "add-info-style" }, "Select Contact"))),
|
|
36
36
|
visible && (React.createElement(NewDPODialog, { id: props.id, defaultValues: incorporation.content.dpo, onCancel: () => setVisible(false) }))))));
|
|
37
37
|
});
|
package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/DataProtectionOfficer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/DataProtectionOfficer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,wDAAwD,CAAC;AAEhE,MAAM,qBAAqB,GAAG,CAAC,KAAkB,EAAE,EAAE;IACpD,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;IAC9C,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CA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,GAAG,EACxC,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAChC,CACF,CACW,CACR,CACG,CACV,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,EAAU;;QAClC,IAAI,WAAW,GAAmC,EAAE,CAAC;QAErD,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,QAAQ,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1C,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBACjB,WAAW,CAAC,IAAI,CAAC,CAAQ,CAAC,CAAC;YAC5B,CAAC;QACF,CAAC,CAAC,CAAC;QAEH,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NewFilingRecoreFormProps } from "./index";
|
|
3
|
-
declare const NewFilingRecoreFormDialog: {
|
|
4
|
-
(props: NewFilingRecoreFormProps): React.JSX.Element;
|
|
5
|
-
defaultProps: {
|
|
6
|
-
type: string;
|
|
7
|
-
showSubmit: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default NewFilingRecoreFormDialog;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Modal } from "antd";
|
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import NewFilingRecoreForm from "./index";
|
|
5
|
-
const NewFilingRecoreFormDialog = (props) => {
|
|
6
|
-
return observe(() => (React.createElement(Modal, { title: "New FilingRecore Form Dialog", open: true, closable: false, footer: null, onCancel: props.onCancel },
|
|
7
|
-
React.createElement(NewFilingRecoreForm, { ...props }))));
|
|
8
|
-
};
|
|
9
|
-
NewFilingRecoreFormDialog.defaultProps = {
|
|
10
|
-
type: "mini",
|
|
11
|
-
showSubmit: true,
|
|
12
|
-
};
|
|
13
|
-
export default NewFilingRecoreFormDialog;
|
|
14
|
-
//# sourceMappingURL=NewFilingRecoreFormDialog.js.map
|
|
File without changes
|
|
File without changes
|