@voplus/morpho-csp 6.0.1 → 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.
@@ -4,6 +4,7 @@ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
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;
@@ -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
- return corporate.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(PropertiesCard, { title: "Company Details", cardList: companyProperties, cardItem: (item) => React.createElement(Properties, { id: id, propertiesName: item }) }));
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: [
@@ -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;QACnB,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAC1B,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,oBAAC,cAAc,IACd,KAAK,EAAC,iBAAiB,EACvB,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,CAAC,IAA2B,EAAE,EAAE,CAAC,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,GAAI,GACtF,CACF,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG;IACpC,iBAAiB,EAAE;QAClB,EAAE,GAAG,EAAE,kBAAkB,EAAE;QAC3B,EAAE,GAAG,EAAE,yBAAyB,EAAE;QAClC,EAAE,GAAG,EAAE,MAAM,EAAE;QACf,EAAE,GAAG,EAAE,gBAAgB,EAAE;QACzB,EAAE,GAAG,EAAE,qBAAqB,EAAE;QAC9B,EAAE,GAAG,EAAE,mBAAmB,EAAE;QAC5B,EAAE,GAAG,EAAE,oBAAoB,EAAE;QAC7B,EAAE,GAAG,EAAE,kBAAkB,EAAE;QAC3B,EAAE,GAAG,EAAE,MAAM,EAAE;QACf;YACC,GAAG,EAAE,mBAAmB;YACxB,KAAK,EAAE,CACN;;gBAEC,6BAAK,SAAS,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"}
1
+ {"version":3,"file":"CompanyPropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,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AkB,EAAE;QAC3B,EAAE,GAAG,EAAE,MAAM,EAAE;QACf;YACC,GAAG,EAAE,mBAAmB;YACxB,KAAK,EAAE,CACN;;gBAEC,6BAAK,SAAS,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"}
@@ -9,5 +9,6 @@ import { LoadControllerOptions } from ".";
9
9
  export declare const useController: (id: string, options?: LoadControllerOptions) => IController & {
10
10
  loadCount?: number | undefined;
11
11
  includesOption?: string[] | undefined;
12
+ reload?: boolean | undefined;
12
13
  };
13
14
  export declare const useControllerListEffect: (list: ListDataContextState<IController> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions) => void;
@@ -8,5 +8,6 @@ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
8
8
  export declare const useFilingRecord: (id: string, options?: LoadDocumentOptions) => import("@voplus/morpho-document-core").IDocument & {
9
9
  loadCount?: number | undefined;
10
10
  includesOption?: string[] | undefined;
11
+ reload?: boolean | undefined;
11
12
  };
12
13
  export declare const useFilingRecordListEffect: (list: ListDataContextState<IFilingRecord> | null, effect: (list: IFilingRecord[]) => void, options?: LoadDocumentListOptions) => void;
@@ -6,4 +6,5 @@ import { LoadShareCertificateOptions } from "./interfaces";
6
6
  export declare const useShareCertificate: (id: string, options?: LoadShareCertificateOptions) => import("./interfaces").IShareCertificate & {
7
7
  loadCount?: number | undefined;
8
8
  includesOption?: string[] | undefined;
9
+ reload?: boolean | undefined;
9
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-csp",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://voplus.visualstudio.com/morpho-csp/_git/morpho-csp"