@voplus/morpho-csp 6.0.0 → 6.0.2
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/CurrencyView/index.d.ts +2 -1
- package/es/components/CurrencyView/index.js +1 -1
- package/es/components/CurrencyView/index.js.map +1 -1
- package/es/data/clda-meta/hook.d.ts +1 -0
- package/es/data/clda-setting/hook.d.ts +1 -0
- package/es/data/corporate/hooks.d.ts +1 -0
- package/es/data/filing-record/hooks.d.ts +1 -0
- package/es/data/filing-type/hooks.d.ts +1 -0
- package/es/data/filing-year/hooks.d.ts +1 -0
- package/es/data/identity/hooks.d.ts +1 -0
- package/es/data/member/hooks.d.ts +1 -0
- package/es/data/relationship/hooks.d.ts +1 -0
- package/es/data/risk-match/hooks.d.ts +1 -0
- package/es/data/risk-profile/hooks.d.ts +2 -0
- package/es/data/service/hooks.d.ts +1 -0
- package/es/data/serviceType/hooks.d.ts +1 -0
- package/es/modules/corporate/clda/components/NewCLDAForm/NewCLDAFormDialog.js +1 -1
- package/es/modules/corporate/clda/components/NewCLDAForm/NewCLDAFormDialog.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.js +2 -3
- package/es/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +1 -4
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.d.ts +5 -9
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js +20 -19
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +139 -124
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +4 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.d.ts +2 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js +2 -4
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +47 -0
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.js +1 -1
- package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDataContext.d.ts +7 -13
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDataContext.js +19 -20
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDataContext.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js +50 -95
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js +1 -1
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.less +12 -27
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
- package/es/obsolete/ShareTransactionPropertiesView/Content.js +1 -1
- package/es/obsolete/ShareTransactionPropertiesView/Content.js.map +1 -1
- package/es/obsolete/controllerRegister/hooks.d.ts +1 -0
- package/es/obsolete/filing-folder/hooks.d.ts +1 -0
- package/es/obsolete/shareCertificate/hooks.d.ts +1 -0
- package/package.json +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.d.ts +0 -3
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +0 -160
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +0 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.d.ts +0 -3
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.js +0 -93
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import type { SelectProps } from "antd";
|
|
2
3
|
declare const CurrencyView: {
|
|
3
|
-
(props: {
|
|
4
|
+
(props: SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & {
|
|
4
5
|
currency?: string | undefined;
|
|
5
6
|
editable?: boolean | undefined;
|
|
6
7
|
readonly?: boolean | undefined;
|
|
@@ -6,7 +6,7 @@ const CurrencyView = (props) => {
|
|
|
6
6
|
const { currency, editable, readonly, className, style, onChange } = props;
|
|
7
7
|
const [value, setValue] = useState(currency);
|
|
8
8
|
const [edit, setEdit] = useState(false);
|
|
9
|
-
return edit || editable ? (React.createElement(Select, { autoFocus: true, showSearch: true, open: edit, style: style, value: value, optionFilterProp: "children", onChange: changeCurrency, onBlur: () => changeCurrency, onDropdownVisibleChange: (open) => setEdit(open) }, currencyList.map((currency) => (React.createElement(Select.Option, { key: currency, value: currency }, currency))))) : (React.createElement("span", { className: classnames(className, { "add-info-style": !currency }), onClick: () => !readonly && setEdit(true) }, currency || "Add Currency"));
|
|
9
|
+
return edit || editable ? (React.createElement(Select, { ...props, autoFocus: true, showSearch: true, open: edit, style: style, value: value, optionFilterProp: "children", onChange: changeCurrency, onBlur: () => changeCurrency, onDropdownVisibleChange: (open) => setEdit(open) }, currencyList.map((currency) => (React.createElement(Select.Option, { key: currency, value: currency }, currency))))) : (React.createElement("span", { className: classnames(className, { "add-info-style": !currency }), onClick: () => !readonly && setEdit(true) }, currency || "Add Currency"));
|
|
10
10
|
function changeCurrency(value) {
|
|
11
11
|
setValue(value);
|
|
12
12
|
if (onChange)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrencyView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrencyView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAElF,MAAM,YAAY,GAAG,CACpB,KAOC,EACA,EAAE;IACH,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3E,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CA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";
|
|
|
4
4
|
export declare const useCLDAMeta: (id: string, options?: LoadCLDAMetaOptions) => ICLDAMeta & {
|
|
5
5
|
loadCount?: number | undefined;
|
|
6
6
|
includesOption?: string[] | undefined;
|
|
7
|
+
reload?: boolean | undefined;
|
|
7
8
|
};
|
|
8
9
|
/** React hook to retrieve a list of CLDAMeta
|
|
9
10
|
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
@@ -4,6 +4,7 @@ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
|
4
4
|
export declare const useCLDASetting: (id: string, options?: LoadCLDASettingOptions) => ICLDASetting & {
|
|
5
5
|
loadCount?: number | undefined;
|
|
6
6
|
includesOption?: string[] | undefined;
|
|
7
|
+
reload?: boolean | undefined;
|
|
7
8
|
};
|
|
8
9
|
/** React hook to retrieve a list of CLDASetting
|
|
9
10
|
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
@@ -9,5 +9,6 @@ import { LoadCorporateOptions } from "./types";
|
|
|
9
9
|
export declare const useCorporate: (id: string, options?: LoadCorporateOptions) => ICorporate & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useCorporateListEffect: (list: ListDataContextState<ICorporate> | null, effect: (list: ICorporate[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -9,5 +9,6 @@ import { LoadFilingRecoreOptions } from ".";
|
|
|
9
9
|
export declare const useFilingRecore: (id: string, options?: LoadFilingRecoreOptions) => IFilingRecore & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useFilingRecoreListEffect: (list: ListDataContextState<IFilingRecore> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -9,5 +9,6 @@ import { LoadFilingTypeOptions } from ".";
|
|
|
9
9
|
export declare const useFilingType: (id: string, options?: LoadFilingTypeOptions) => IFilingType & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useFilingTypeListEffect: (list: ListDataContextState<IFilingType> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -9,5 +9,6 @@ import { LoadFilingYearOptions } from ".";
|
|
|
9
9
|
export declare const useFilingYear: (id: string, options?: LoadFilingYearOptions) => IFilingYear & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useFilingYearListEffect: (list: ListDataContextState<IFilingYear> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -5,5 +5,6 @@ import { LoadIdentityOptions } from ".";
|
|
|
5
5
|
export declare const useIdentity: (id: string, options?: LoadIdentityOptions) => IIdentity & {
|
|
6
6
|
loadCount?: number | undefined;
|
|
7
7
|
includesOption?: string[] | undefined;
|
|
8
|
+
reload?: boolean | undefined;
|
|
8
9
|
};
|
|
9
10
|
export declare const useIdentityListEffect: (list: ListDataContextState<IIdentity> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -8,5 +8,6 @@ import { LoadCompanyMemberOptions } from ".";
|
|
|
8
8
|
export declare const useMember: (id: string, options?: LoadCompanyMemberOptions) => import("./interfaces").ICompanyMember & {
|
|
9
9
|
loadCount?: number | undefined;
|
|
10
10
|
includesOption?: string[] | undefined;
|
|
11
|
+
reload?: boolean | undefined;
|
|
11
12
|
};
|
|
12
13
|
export declare const useMemberListEffect: (list: ListDataContextState<any> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -6,4 +6,5 @@ import { LoadRelationshipOptions } from "./types";
|
|
|
6
6
|
export declare const useRelationship: (id: string, options?: LoadRelationshipOptions) => import("./interfaces").IUnitRelationship & {
|
|
7
7
|
loadCount?: number | undefined;
|
|
8
8
|
includesOption?: string[] | undefined;
|
|
9
|
+
reload?: boolean | undefined;
|
|
9
10
|
};
|
|
@@ -9,5 +9,6 @@ import { LoadRiskMatchOptions } from ".";
|
|
|
9
9
|
export declare const useRiskMatch: (id: string, options?: LoadRiskMatchOptions) => IRiskMatch & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useRiskMatchListEffect: (list: ListDataContextState<IRiskMatch> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -9,10 +9,12 @@ import { LoadRiskProfileOptions } from ".";
|
|
|
9
9
|
export declare const useRiskProfile: (id: string, options?: LoadRiskProfileOptions) => IRiskProfile & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useRiskProfileByUnit: (id: string, options?: LoadRiskProfileOptions) => IRiskProfile & {
|
|
14
15
|
loadCount?: number | undefined;
|
|
15
16
|
includesOption?: string[] | undefined;
|
|
17
|
+
reload?: boolean | undefined;
|
|
16
18
|
};
|
|
17
19
|
export declare const useRiskProfileListEffect: (list: ListDataContextState<IRiskProfile> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
18
20
|
export declare const useRelatedProfileListEffect: (id: string, list: ListDataContextState<IRiskProfile> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -9,5 +9,6 @@ import { LoadServiceOptions } from "./types";
|
|
|
9
9
|
export declare const useService: (id: string, options?: LoadServiceOptions) => IService & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useServiceListEffect: (list: ListDataContextState<IService> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -9,5 +9,6 @@ import { LoadServiceTypeOptions } from "./types";
|
|
|
9
9
|
export declare const useServiceType: (id: string, options?: LoadServiceTypeOptions) => IServiceType & {
|
|
10
10
|
loadCount?: number | undefined;
|
|
11
11
|
includesOption?: string[] | undefined;
|
|
12
|
+
reload?: boolean | undefined;
|
|
12
13
|
};
|
|
13
14
|
export declare const useServiceTypeListEffect: (list: ListDataContextState<IServiceType> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -4,7 +4,7 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
4
4
|
import NewCLDAForm from "./index";
|
|
5
5
|
import styles from "./index.less";
|
|
6
6
|
const NewCLDAFormDialog = (props) => {
|
|
7
|
-
return observe(() => (React.createElement(Modal, { title: "New CLDA Form Dialog", open: true, closable: false, footer:
|
|
7
|
+
return observe(() => (React.createElement(Modal, { title: "New CLDA Form Dialog", open: true, closable: false, footer: null, onCancel: props.onCancel, className: styles["new-clda-form-dialog"] },
|
|
8
8
|
React.createElement(NewCLDAForm, { ...props }))));
|
|
9
9
|
};
|
|
10
10
|
NewCLDAFormDialog.defaultProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewCLDAFormDialog.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/NewCLDAForm/NewCLDAFormDialog.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,WAAiC,MAAM,SAAS,CAAC;AACxD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,iBAAiB,GAAG,CAAC,KAAuB,EAAE,EAAE;IACrD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,sBAAsB,EAC5B,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"NewCLDAFormDialog.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/NewCLDAForm/NewCLDAFormDialog.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,WAAiC,MAAM,SAAS,CAAC;AACxD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,iBAAiB,GAAG,CAAC,KAAuB,EAAE,EAAE;IACrD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,sBAAsB,EAC5B,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;QAEzC,oBAAC,WAAW,OAAK,KAAK,GAAI,CACnB,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -7,9 +7,8 @@ import PropertiesCard from "@voplus/morpho-ui/es/controls/PropertiesCard";
|
|
|
7
7
|
const CompanyPropertiesCard = (props) => {
|
|
8
8
|
const { id, companyProperties } = props;
|
|
9
9
|
const corporate = useCorporate(id, { reload: (i) => !i.tags, includes: "registers,tags" });
|
|
10
|
-
return observe(() => {
|
|
11
|
-
|
|
12
|
-
});
|
|
10
|
+
return observe(() => (React.createElement(Skeleton, { active: true, loading: corporate.loading },
|
|
11
|
+
React.createElement(PropertiesCard, { title: "Company Details", cardList: companyProperties, cardItem: (item) => React.createElement(Properties, { id: id, propertiesName: item }) }))));
|
|
13
12
|
};
|
|
14
13
|
CompanyPropertiesCard.defaultProps = {
|
|
15
14
|
companyProperties: [
|
package/es/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompanyPropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,UAAqC,MAAM,cAAc,CAAC;AACjE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAE1E,MAAM,qBAAqB,GAAG,CAAC,KAG9B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAE3F,OAAO,OAAO,CAAC,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"CompanyPropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AA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,EAAC,yBAAyB,aAAa,CAChD,CACN;SACD;QACD;YACC,GAAG,EAAE,oBAAoB;YACzB,KAAK,EAAE,CACN;;gBAEC,6BAAK,SAAS,EAAC,yBAAyB,cAAc,CACjD,CACN;SACD;QACD;YACC,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,CACN;;gBAEC,6BAAK,SAAS,EAAC,yBAAyB,gBAAgB,CACnD,CACN;SACD;KACD;CACD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -10,7 +10,7 @@ const CertCancelCreateDialog = (props) => {
|
|
|
10
10
|
const [step, setStep] = useState(1);
|
|
11
11
|
const [data, setData] = useState();
|
|
12
12
|
const [state] = useState(new State());
|
|
13
|
-
return observe(() => (React.createElement(Modal, { open: true, closable: false, footer:
|
|
13
|
+
return observe(() => (React.createElement(Modal, { open: true, closable: false, footer: null, className: styles["cert-cancel-create-dialog"], title: step === 1 ? "Select Certs to Cancel" : "Confirm Operation Summary" }, step === 1 ? (React.createElement(Step1, { transactionId: props.transactionId, shareLine: shareLine, onCancel: props.onCancel, onNext: (res, selectedCertIds) => {
|
|
14
14
|
setData(res);
|
|
15
15
|
state.selectedCertIds = selectedCertIds;
|
|
16
16
|
setStep(2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAgC,MAAM,SAAS,CAAC;AACvD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,sBAAsB,GAAG,CAAC,KAI/B,EAAE,EAAE;IACJ,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAQ,CAAC,CAAC,CAAC;IAC3C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,EAAyB,CAAC;IAE1D,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAgC,MAAM,SAAS,CAAC;AACvD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,sBAAsB,GAAG,CAAC,KAI/B,EAAE,EAAE;IACJ,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAQ,CAAC,CAAC,CAAC;IAC3C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,EAAyB,CAAC;IAE1D,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAC9C,KAAK,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,2BAA2B,IAEzE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CACb,oBAAC,KAAK,IACL,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,CAAC,GAA0B,EAAE,eAAyB,EAAE,EAAE;YACjE,OAAO,CAAC,GAAG,CAAC,CAAC;YACb,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;YACxC,OAAO,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC,GACA,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IACL,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,MAAM,EAAE,SAAS,CAAC,EAAS,EAC3B,IAAI,EAAE,IAAK,EACX,eAAe,EAAE,KAAK,CAAC,eAAe,EACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CACM,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -17,10 +17,7 @@ import styles from "./index.less";
|
|
|
17
17
|
import { useVerificationStore } from "@voplus/morpho-document-core/es/controls/VerificationInformation/VerificationStore";
|
|
18
18
|
const ShareTransactionItem = (props) => {
|
|
19
19
|
const { id } = props;
|
|
20
|
-
const shareTransaction = useShareTransaction(id
|
|
21
|
-
reload: (i) => !i.tags || !i.transactionType,
|
|
22
|
-
includes: "tags",
|
|
23
|
-
});
|
|
20
|
+
const shareTransaction = useShareTransaction(id);
|
|
24
21
|
const store = useShareTransactionStore();
|
|
25
22
|
const verifyStore = useVerificationStore();
|
|
26
23
|
const meta = useMetaStore();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAa,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAEN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oFAAoF,CAAC;AAE1H,MAAM,oBAAoB,GAAG,CAAC,KAK7B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.tsx"],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S,GAAG,CACzC,CACS;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,KAAK;gBAClC,6BAAK,SAAS,EAAC,kCAAkC;oBAChD,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAC3B,QAAQ,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EACpC,KAAK,EAAE,KAAK,CAAC,KAAK,GACjB,CACG,CACS;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;gBACvC,6BAAK,SAAS,EAAE,UAAU,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oBACzE,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE;wBACd,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACnD,CACL,CACS,CACJ,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class TableDataContextState {
|
|
1
|
+
export declare class State {
|
|
3
2
|
props: any;
|
|
4
3
|
/** Array of new lines to be added. */
|
|
5
|
-
|
|
4
|
+
Line: {
|
|
6
5
|
shareholder: string;
|
|
7
6
|
consideration: number;
|
|
8
7
|
currency: string;
|
|
9
8
|
shares: number;
|
|
10
9
|
};
|
|
11
10
|
/** Id of Delete of line */
|
|
12
|
-
hoverKey
|
|
11
|
+
hoverKey?: number | string;
|
|
13
12
|
/** lines of invoice */
|
|
14
|
-
|
|
13
|
+
lines: any[];
|
|
15
14
|
/** loading of saving */
|
|
16
15
|
loading: boolean;
|
|
17
16
|
constructor();
|
|
@@ -23,8 +22,5 @@ export declare class TableDataContextState {
|
|
|
23
22
|
get readonly(): any;
|
|
24
23
|
/** Is Adding */
|
|
25
24
|
get isAdding(): boolean;
|
|
25
|
+
setHoverKey(id?: string): void;
|
|
26
26
|
}
|
|
27
|
-
/** React context for TableDataContextState. */
|
|
28
|
-
export declare const TableDataContext: import("react").Context<any>;
|
|
29
|
-
/** React hook to retrieve the nearest TableDataContext. */
|
|
30
|
-
export declare const useTableDataContext: () => any;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { computed, observable, makeObservable } from "mobx";
|
|
3
|
-
import { createContext, useContext } from "react";
|
|
2
|
+
import { computed, observable, makeObservable, action } from "mobx";
|
|
4
3
|
import big from "big.js";
|
|
5
|
-
export class
|
|
4
|
+
export class State {
|
|
6
5
|
constructor() {
|
|
7
6
|
Object.defineProperty(this, "props", {
|
|
8
7
|
enumerable: true,
|
|
@@ -11,7 +10,7 @@ export class TableDataContextState {
|
|
|
11
10
|
value: void 0
|
|
12
11
|
});
|
|
13
12
|
/** Array of new lines to be added. */
|
|
14
|
-
Object.defineProperty(this, "
|
|
13
|
+
Object.defineProperty(this, "Line", {
|
|
15
14
|
enumerable: true,
|
|
16
15
|
configurable: true,
|
|
17
16
|
writable: true,
|
|
@@ -30,7 +29,7 @@ export class TableDataContextState {
|
|
|
30
29
|
value: void 0
|
|
31
30
|
});
|
|
32
31
|
/** lines of invoice */
|
|
33
|
-
Object.defineProperty(this, "
|
|
32
|
+
Object.defineProperty(this, "lines", {
|
|
34
33
|
enumerable: true,
|
|
35
34
|
configurable: true,
|
|
36
35
|
writable: true,
|
|
@@ -48,12 +47,12 @@ export class TableDataContextState {
|
|
|
48
47
|
/** Total of shares of line */
|
|
49
48
|
get sharesTotal() {
|
|
50
49
|
var _a;
|
|
51
|
-
return (_a = this.
|
|
50
|
+
return (_a = this.lines) === null || _a === void 0 ? void 0 : _a.reduce((total, line) => Number.parseFloat(big(total + line.shares).toFixed(2)), 0);
|
|
52
51
|
}
|
|
53
52
|
/** Total of shares of line */
|
|
54
53
|
get considerationTotal() {
|
|
55
54
|
var _a;
|
|
56
|
-
return (_a = this.
|
|
55
|
+
return (_a = this.lines) === null || _a === void 0 ? void 0 : _a.reduce((total, line) => Number.parseFloat(big(total + Number(line.consideration)).toFixed(2)), 0);
|
|
57
56
|
}
|
|
58
57
|
/** readonly */
|
|
59
58
|
get readonly() {
|
|
@@ -61,32 +60,34 @@ export class TableDataContextState {
|
|
|
61
60
|
}
|
|
62
61
|
/** Is Adding */
|
|
63
62
|
get isAdding() {
|
|
64
|
-
return this.
|
|
63
|
+
return this.lines.some(({ added }) => !!added);
|
|
64
|
+
}
|
|
65
|
+
setHoverKey(id) {
|
|
66
|
+
this.hoverKey = id;
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
__decorate([
|
|
68
70
|
observable
|
|
69
|
-
],
|
|
71
|
+
], State.prototype, "hoverKey", void 0);
|
|
70
72
|
__decorate([
|
|
71
73
|
observable
|
|
72
|
-
],
|
|
74
|
+
], State.prototype, "lines", void 0);
|
|
73
75
|
__decorate([
|
|
74
76
|
observable
|
|
75
|
-
],
|
|
77
|
+
], State.prototype, "loading", void 0);
|
|
76
78
|
__decorate([
|
|
77
79
|
computed
|
|
78
|
-
],
|
|
80
|
+
], State.prototype, "sharesTotal", null);
|
|
79
81
|
__decorate([
|
|
80
82
|
computed
|
|
81
|
-
],
|
|
83
|
+
], State.prototype, "considerationTotal", null);
|
|
82
84
|
__decorate([
|
|
83
85
|
computed
|
|
84
|
-
],
|
|
86
|
+
], State.prototype, "readonly", null);
|
|
85
87
|
__decorate([
|
|
86
88
|
computed
|
|
87
|
-
],
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
export const useTableDataContext = () => useContext(TableDataContext);
|
|
89
|
+
], State.prototype, "isAdding", null);
|
|
90
|
+
__decorate([
|
|
91
|
+
action
|
|
92
|
+
], State.prototype, "setHoverKey", null);
|
|
92
93
|
//# sourceMappingURL=TableDataContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableDataContext.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TableDataContext.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB,MAAM,OAAO,KAAK;IAgBjB;QAfO;;;;;WAAW;QAClB,sCAAsC;QAC/B;;;;mBAAO;gBACb,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,CAAC;gBAChB,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,CAAC;aACT;WAAC;QACF,2BAA2B;QACR;;;;;WAA2B;QAC9C,uBAAuB;QACJ;;;;mBAAe,EAAE;WAAC;QACrC,wBAAwB;QACL;;;;mBAAU,KAAK;WAAC;QAGlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,+BAA+B;IAE/B,IAAW,WAAW;;QACrB,OAAO,MAAA,IAAI,CAAC,KAAK,0CAAE,MAAM,CACxB,CAAC,KAAa,EAAE,IAA2B,EAAE,EAAE,CAC9C,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACvD,CAAC,CACD,CAAC;IACH,CAAC;IACD,+BAA+B;IAE/B,IAAW,kBAAkB;;QAC5B,OAAO,MAAA,IAAI,CAAC,KAAK,0CAAE,MAAM,CACxB,CAAC,KAAa,EAAE,IAA2B,EAAE,EAAE,CAC9C,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC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