@voplus/morpho-csp 1.2.178 → 1.2.180

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.
Files changed (181) hide show
  1. package/es/Modules.js +2 -0
  2. package/es/Modules.js.map +1 -1
  3. package/es/data/agm-clda/metas.d.ts +13 -0
  4. package/es/data/agm-clda/metas.js +37 -0
  5. package/es/data/agm-clda/metas.js.map +1 -0
  6. package/es/data/clda-form/CLDAFormContent.js +4 -0
  7. package/es/data/clda-form/CLDAFormContent.js.map +1 -1
  8. package/es/data/filing-folder/hooks.js.map +1 -0
  9. package/es/data/filing-folder/interfaces.js.map +1 -0
  10. package/es/data/filing-folder/store.js.map +1 -0
  11. package/es/data/filing-folder/types.js.map +1 -0
  12. package/es/data/filing-type/FilingTypeStore.d.ts +33 -0
  13. package/es/data/filing-type/FilingTypeStore.js +115 -0
  14. package/es/data/filing-type/FilingTypeStore.js.map +1 -0
  15. package/es/data/filing-type/filing-type-events/index.d.ts +3 -0
  16. package/es/data/filing-type/filing-type-events/index.js +4 -0
  17. package/es/data/filing-type/filing-type-events/index.js.map +1 -0
  18. package/es/data/filing-type/filing-type-events/useAutoUpdateListData.d.ts +4 -0
  19. package/es/data/filing-type/filing-type-events/useAutoUpdateListData.js +15 -0
  20. package/es/data/filing-type/filing-type-events/useAutoUpdateListData.js.map +1 -0
  21. package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.d.ts +4 -0
  22. package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.js +16 -0
  23. package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.js.map +1 -0
  24. package/es/data/filing-type/filing-type-events/useOnNewFilingType.d.ts +4 -0
  25. package/es/data/filing-type/filing-type-events/useOnNewFilingType.js +17 -0
  26. package/es/data/filing-type/filing-type-events/useOnNewFilingType.js.map +1 -0
  27. package/es/data/filing-type/hooks.d.ts +10 -0
  28. package/es/data/filing-type/hooks.js +19 -0
  29. package/es/data/filing-type/hooks.js.map +1 -0
  30. package/es/data/filing-type/index.d.ts +4 -0
  31. package/es/data/filing-type/index.js +5 -0
  32. package/es/data/filing-type/index.js.map +1 -0
  33. package/es/data/filing-type/interfaces.d.ts +15 -0
  34. package/es/data/filing-type/interfaces.js +2 -0
  35. package/es/data/filing-type/interfaces.js.map +1 -0
  36. package/es/data/filing-type/types.d.ts +37 -0
  37. package/es/data/filing-type/types.js +2 -0
  38. package/es/data/{filingRecord → filing-type}/types.js.map +1 -1
  39. package/es/data/filing-year/FilingYearStore.d.ts +33 -0
  40. package/es/data/filing-year/FilingYearStore.js +115 -0
  41. package/es/data/filing-year/FilingYearStore.js.map +1 -0
  42. package/es/data/filing-year/filing-year-events/index.d.ts +3 -0
  43. package/es/data/filing-year/filing-year-events/index.js +4 -0
  44. package/es/data/filing-year/filing-year-events/index.js.map +1 -0
  45. package/es/data/filing-year/filing-year-events/useAutoUpdateListData.d.ts +4 -0
  46. package/es/data/filing-year/filing-year-events/useAutoUpdateListData.js +15 -0
  47. package/es/data/filing-year/filing-year-events/useAutoUpdateListData.js.map +1 -0
  48. package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.d.ts +4 -0
  49. package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.js +16 -0
  50. package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.js.map +1 -0
  51. package/es/data/filing-year/filing-year-events/useOnNewFilingYear.d.ts +4 -0
  52. package/es/data/filing-year/filing-year-events/useOnNewFilingYear.js +17 -0
  53. package/es/data/filing-year/filing-year-events/useOnNewFilingYear.js.map +1 -0
  54. package/es/data/filing-year/hooks.d.ts +10 -0
  55. package/es/data/filing-year/hooks.js +19 -0
  56. package/es/data/filing-year/hooks.js.map +1 -0
  57. package/es/data/filing-year/index.d.ts +4 -0
  58. package/es/data/filing-year/index.js +5 -0
  59. package/es/data/filing-year/index.js.map +1 -0
  60. package/es/data/filing-year/interfaces.d.ts +6 -0
  61. package/es/data/filing-year/interfaces.js +2 -0
  62. package/es/data/filing-year/interfaces.js.map +1 -0
  63. package/es/data/filing-year/types.d.ts +22 -0
  64. package/es/data/filing-year/types.js +2 -0
  65. package/es/data/filing-year/types.js.map +1 -0
  66. package/es/data/incorporation-clda/store.js +1 -1
  67. package/es/data/incorporation-clda/store.js.map +1 -1
  68. package/es/data/incorporation-clda/types.d.ts +1 -0
  69. package/es/modules/corporate/clda/components/CLDAListView/index.js +1 -1
  70. package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
  71. package/es/modules/corporate/clda/components/NewCLDAForm/index.js +3 -3
  72. package/es/modules/corporate/clda/components/NewCLDAForm/index.js.map +1 -1
  73. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js +0 -8
  74. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js.map +1 -1
  75. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +3 -3
  76. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
  77. package/es/modules/corporate/company/pages/CompanyPage/index.js +1 -1
  78. package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
  79. package/es/modules/corporate/filing-record/components/AnnualFilings/index.d.ts +0 -1
  80. package/es/modules/corporate/filing-record/components/AnnualFilings/index.js +38 -35
  81. package/es/modules/corporate/filing-record/components/AnnualFilings/index.js.map +1 -1
  82. package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +16 -8
  83. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.d.ts +1 -0
  84. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +13 -15
  85. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
  86. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.js +1 -1
  87. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.js.map +1 -1
  88. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.d.ts +6 -0
  89. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js +18 -0
  90. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.js.map +1 -0
  91. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeHead/index.less +12 -0
  92. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.d.ts +7 -0
  93. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js +47 -0
  94. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js.map +1 -0
  95. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.less +34 -0
  96. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.d.ts +10 -0
  97. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js +52 -0
  98. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js.map +1 -0
  99. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.less +21 -0
  100. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.d.ts +21 -0
  101. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +160 -0
  102. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -0
  103. package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.d.ts +6 -0
  104. package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js +16 -0
  105. package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js.map +1 -0
  106. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.d.ts +15 -0
  107. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js +29 -0
  108. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js.map +1 -0
  109. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.less +29 -0
  110. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.d.ts +6 -0
  111. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js +36 -0
  112. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js.map +1 -0
  113. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.less +13 -0
  114. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.d.ts +17 -0
  115. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js +112 -0
  116. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map +1 -0
  117. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.less +10 -0
  118. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.d.ts +18 -0
  119. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.js +38 -0
  120. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/state.js.map +1 -0
  121. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +10 -0
  122. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.js +11 -0
  123. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.js.map +1 -0
  124. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.d.ts +13 -0
  125. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js +45 -0
  126. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js.map +1 -0
  127. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.less +54 -0
  128. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.d.ts +3 -0
  129. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +31 -0
  130. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -0
  131. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.less +17 -0
  132. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.d.ts +6 -0
  133. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js +12 -0
  134. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js.map +1 -0
  135. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.less +12 -0
  136. package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.d.ts +21 -0
  137. package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js +29 -0
  138. package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js.map +1 -0
  139. package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.d.ts +6 -0
  140. package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.js +16 -0
  141. package/es/modules/corporate/filing-record/filing-year/FilingYearPropertiesView/index.js.map +1 -0
  142. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.d.ts +15 -0
  143. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.js +30 -0
  144. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.js.map +1 -0
  145. package/es/modules/corporate/filing-record/filing-year/FilingYearQuickViewDialog/index.less +25 -0
  146. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.d.ts +6 -0
  147. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js +44 -0
  148. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js.map +1 -0
  149. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.less +13 -0
  150. package/es/modules/corporate/filing-record/{components → filing-year}/NewFilingYearDialog/index.d.ts +3 -2
  151. package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js +22 -0
  152. package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js.map +1 -0
  153. package/es/modules/self-registration/clda-form/incorporation/agm/index.d.ts +4 -0
  154. package/es/modules/self-registration/clda-form/incorporation/agm/index.js +38 -0
  155. package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -0
  156. package/es/modules/self-registration/clda-form/incorporation/agm/index.less +36 -0
  157. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.d.ts +2 -0
  158. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js +2 -2
  159. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
  160. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.d.ts +4 -1
  161. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js +8 -1
  162. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js.map +1 -1
  163. package/es/modules/self-registration/shopping-cart/ChooseService/index.js +4 -2
  164. package/es/modules/self-registration/shopping-cart/ChooseService/index.js.map +1 -1
  165. package/es/routes.d.ts +6 -0
  166. package/es/routes.js +14 -1
  167. package/es/routes.js.map +1 -1
  168. package/package.json +1 -1
  169. package/es/data/filingRecord/hooks.js.map +0 -1
  170. package/es/data/filingRecord/interfaces.js.map +0 -1
  171. package/es/data/filingRecord/store.js.map +0 -1
  172. package/es/modules/corporate/filing-record/components/NewFilingYearDialog/index.js +0 -29
  173. package/es/modules/corporate/filing-record/components/NewFilingYearDialog/index.js.map +0 -1
  174. /package/es/data/{filingRecord → filing-folder}/hooks.d.ts +0 -0
  175. /package/es/data/{filingRecord → filing-folder}/hooks.js +0 -0
  176. /package/es/data/{filingRecord → filing-folder}/interfaces.d.ts +0 -0
  177. /package/es/data/{filingRecord → filing-folder}/interfaces.js +0 -0
  178. /package/es/data/{filingRecord → filing-folder}/store.d.ts +0 -0
  179. /package/es/data/{filingRecord → filing-folder}/store.js +0 -0
  180. /package/es/data/{filingRecord → filing-folder}/types.d.ts +0 -0
  181. /package/es/data/{filingRecord → filing-folder}/types.js +0 -0
package/es/Modules.js CHANGED
@@ -4,6 +4,7 @@ import { DocumentMetaStore } from "@voplus/morpho-document/es/data/DocumentMetaS
4
4
  import { DocumentUIService } from "@voplus/morpho-document/es/DocumentUIService";
5
5
  import { FormElementRegister } from "@voplus/morpho-form/es/services/FormElementRegister";
6
6
  import { IncorporationCLDATypeMeta } from "./data/incorporation-clda/metas";
7
+ import { AGMCLDATypeMeta } from "./data/agm-clda/metas";
7
8
  import { CLDAFormTypeMeta } from "./data/clda-form/metas";
8
9
  import { ShareTransactionTypeMeta } from "./data/share-transaction/metas";
9
10
  import { ShareCertificateTypeMeta } from "./data/share-certificate/metas";
@@ -33,6 +34,7 @@ const Modules = {
33
34
  metas.addMeta(new CLDAFormTypeMeta());
34
35
  // register incorporation-clda type metas.
35
36
  metas.addMeta(new IncorporationCLDATypeMeta());
37
+ metas.addMeta(new AGMCLDATypeMeta());
36
38
  metas.addMeta(new ShareTransactionTypeMeta());
37
39
  metas.addMeta(new ShareCertificateTypeMeta());
38
40
  // register routes.
package/es/Modules.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Modules.js","sourceRoot":"","sources":["../src/Modules.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,mEAAmE,CAAC;AAE7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAC1E,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AAGzE,MAAM,OAAO,GAAG;IACf,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,OA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D,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;SACjD;QAED,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAsB,CAAC;QACnF,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,QAAQ,CAA6B,CAAC;QAC7F,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,WAAW,CAAC,MAAM,EAAE,IAAI,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC;QAE5D,2BAA2B;QAC3B,+CAA+C;QAE/C,0CAA0C;QAC1C,KAAK,CAAC,OAAO,CAAC,IAAI,gBAAgB,EAAE,CAAC,CAAC;QAEtC,0CAA0C;QAC1C,KAAK,CAAC,OAAO,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC;QAE/C,KAAK,CAAC,OAAO,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC;QAErC,KAAK,CAAC,OAAO,CAAC,IAAI,wBAAwB,EAAE,CAAC,CAAC;QAE9C,KAAK,CAAC,OAAO,CAAC,IAAI,wBAAwB,EAAE,CAAC,CAAC;QAE9C,mBAAmB;QACnB,MAAM,CAAC,SAAS,EAAE,CAAC;IACpB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { IDocument, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
+ import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
4
+ /** Meta information for Incorporation CLDA document. */
5
+ export declare class AGMCLDATypeMeta extends DefaultDocumentTypeMeta {
6
+ static TypeName: string;
7
+ getRoute(document: IDocument): string;
8
+ get name(): string;
9
+ getIcon(document: IDocument): JSX.Element;
10
+ getPropertiesView(document: IDocument): JSX.Element;
11
+ getQuickView(document: IDocument, props: QuickViewProps): JSX.Element;
12
+ getMenu(document: IDocument, props: DocumentMenuProps): JSX.Element;
13
+ }
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
3
+ import { faBookSection } from "@fortawesome/pro-light-svg-icons";
4
+ import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
5
+ import CLDAQuickViewDialog from "../../modules/corporate/clda/components/CLDAQuickViewDialog";
6
+ import CLDAPropertiesView from "../../modules/corporate/clda/components/CLDAPropertiesView";
7
+ import CLDAMenu from "../../modules/corporate/clda/controls/CLDAMenu";
8
+ /** Meta information for Incorporation CLDA document. */
9
+ export class AGMCLDATypeMeta extends DefaultDocumentTypeMeta {
10
+ getRoute(document) {
11
+ return `/clda/incorporation/${document.id}`;
12
+ }
13
+ get name() {
14
+ return AGMCLDATypeMeta.TypeName;
15
+ }
16
+ getIcon(document) {
17
+ return React.createElement(FontAwesomeIcon, { icon: faBookSection });
18
+ }
19
+ getPropertiesView(document) {
20
+ return React.createElement(CLDAPropertiesView, { id: document.id });
21
+ }
22
+ getQuickView(document, props) {
23
+ props.id = document.id;
24
+ return (React.createElement(CLDAQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
25
+ }
26
+ getMenu(document, props) {
27
+ props.id = document.id;
28
+ return React.createElement(CLDAMenu, { ...props });
29
+ }
30
+ }
31
+ Object.defineProperty(AGMCLDATypeMeta, "TypeName", {
32
+ enumerable: true,
33
+ configurable: true,
34
+ writable: true,
35
+ value: "AGMCLDA"
36
+ });
37
+ //# sourceMappingURL=metas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/agm-clda/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,mBAAmB,MAAM,6DAA6D,CAAC;AAC9F,OAAO,kBAAkB,MAAM,4DAA4D,CAAC;AAC5F,OAAO,QAAQ,MAAM,gDAAgD,CAAC;AAEtE,wDAAwD;AACxD,MAAM,OAAO,eAAgB,SAAQ,uBAAuB;IAGpD,QAAQ,CAAC,QAAmB;QAClC,OAAO,uBAAuB,QAAQ,CAAC,EAAE,EAAE,CAAC;IAC7C,CAAC;IAED,IAAW,IAAI;QACd,OAAO,eAAe,CAAC,QAAQ,CAAC;IACjC,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,aAAa,GAAI,CAAC;IACjD,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,OAAO,oBAAC,kBAAkB,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC;IAChD,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QACvB,OAAO,CACN,oBAAC,mBAAmB,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC1F,CAAC;IACH,CAAC;IAEM,OAAO,CAAC,QAAmB,EAAE,KAAwB;QAC3D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QACvB,OAAO,oBAAC,QAAQ,OAAK,KAAK,GAAI,CAAC;IAChC,CAAC;;AA5BD;;;;WAAyB,SAAS;GAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import IncorporationSGPForm from "../../modules/self-registration/clda-form/incorporation/sgp/index";
3
3
  import IncorporationBVIForm from "../../modules/self-registration/clda-form/incorporation/bvi/index";
4
+ import AGMForm from "../../modules/self-registration/clda-form/incorporation/agm/index";
4
5
  /** Meta information for Incorporation Form document. */
5
6
  export class CLDAFormContent {
6
7
  getCLDAFormContent(meta, country, props) {
@@ -10,6 +11,9 @@ export class CLDAFormContent {
10
11
  if (meta === "INC" && country == "VGB") {
11
12
  return React.createElement(IncorporationBVIForm, { ...props });
12
13
  }
14
+ if (meta === "AGM") {
15
+ return React.createElement(AGMForm, { ...props });
16
+ }
13
17
  return React.createElement(React.Fragment, null);
14
18
  }
15
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CLDAFormContent.js","sourceRoot":"","sources":["../../../src/data/clda-form/CLDAFormContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,oBAAoB,MAAM,mEAAmE,CAAC;AACrG,OAAO,oBAAoB,MAAM,mEAAmE,CAAC;AAQrG,wDAAwD;AACxD,MAAM,OAAO,eAAe;IACpB,kBAAkB,CAAC,IAAY,EAAE,OAAe,EAAE,KAAoB;QAC5E,IAAI,IAAI,KAAK,KAAK,IAAI,OAAO,IAAI,KAAK,EAAE;YACvC,OAAO,oBAAC,oBAAoB,OAAK,KAAK,GAAI,CAAC;SAC3C;QACD,IAAI,IAAI,KAAK,KAAK,IAAI,OAAO,IAAI,KAAK,EAAE;YACvC,OAAO,oBAAC,oBAAoB,OAAK,KAAK,GAAI,CAAC;SAC3C;QACD,OAAO,yCAAK,CAAC;IACd,CAAC;CACD"}
1
+ {"version":3,"file":"CLDAFormContent.js","sourceRoot":"","sources":["../../../src/data/clda-form/CLDAFormContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,oBAAoB,MAAM,mEAAmE,CAAC;AACrG,OAAO,oBAAoB,MAAM,mEAAmE,CAAC;AACrG,OAAO,OAAO,MAAM,mEAAmE,CAAC;AAQxF,wDAAwD;AACxD,MAAM,OAAO,eAAe;IACpB,kBAAkB,CAAC,IAAY,EAAE,OAAe,EAAE,KAAoB;QAC5E,IAAI,IAAI,KAAK,KAAK,IAAI,OAAO,IAAI,KAAK,EAAE;YACvC,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mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/filing-folder/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/data/filing-folder/store.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAMzF,OAAO,EAGN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAEtC,gDAAgD;AAChD,MAAM,OAAO,iBAAkB,SAAQ,iBAOtC;IAIA,YAAmC,QAAqB,EAAE,SAAwB;QACjF,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;;;;;mBADT;;QAHnC,wBAAwB;QACxB;;;;mBAA+B,SAAS;WAAC;IAIzC,CAAC;CAuDD;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACxC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,QAAQ,CACd,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC1E,CAAC;IACF,2CAA2C;IAC3C,sCAAsC;IACtC,yEAAyE;IACzE,IAAI;IACJ,4DAA4D;AAC7D,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/filing-folder/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { ApiEndPoint } from "@voplus/api";
2
+ import { CountedMap, Store } from "@voplus/morpho-data";
3
+ import { CreateFilingTypeOptions, DeleteFilingTypeOptions, EditFilingTypeOptions, LoadFilingTypeOptions } from "./types";
4
+ import { IFilingType } from "./interfaces";
5
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
6
+ /** Quotation store supply backend functions. */
7
+ export declare class FilingTypeStore extends Store {
8
+ readonly endpoint: ApiEndPoint;
9
+ /** Name of the store */
10
+ readonly name: string;
11
+ private readonly _filingTypeDeleted;
12
+ private readonly _filingTypeCreated;
13
+ constructor(endpoint: ApiEndPoint);
14
+ /** All currently used corporate. */
15
+ readonly items: CountedMap<string, IFilingType>;
16
+ /** Event fires when a delete filingType has been deleted. */
17
+ get FilingTypeDeletedEvent(): import("strongly-typed-events").IEvent<FilingTypeStore, IFilingType>;
18
+ /** Event fires when a new FilingType has been created. */
19
+ get FilingTypeCreatedEvent(): import("strongly-typed-events").IEvent<FilingTypeStore, IFilingType>;
20
+ /** Create a new Identity. */
21
+ create(options: CreateFilingTypeOptions): Promise<IFilingType>;
22
+ /** Edit an existing item on server. */
23
+ edit(id: string, options: EditFilingTypeOptions): Promise<void>;
24
+ /** filingType 內有文件不能delete */
25
+ delete(ids: string[], options?: DeleteFilingTypeOptions): Promise<any>;
26
+ /** Load a list of documents from server.
27
+ * @param {LoadDocumentListOptions}
28
+ */
29
+ loadList(options?: LoadDocumentListOptions): Promise<IFilingType[]>;
30
+ load(id: string, options: LoadFilingTypeOptions): Promise<IFilingType>;
31
+ }
32
+ /** 响应钩子检索 IdentityStore */
33
+ export declare const useFilingTypeStore: () => FilingTypeStore;
@@ -0,0 +1,115 @@
1
+ import { RequestBuilder } from "@voplus/api";
2
+ import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
3
+ import { observable } from "mobx";
4
+ import { EventDispatcher } from "strongly-typed-events";
5
+ const StoreName = "FilingTypeStore";
6
+ /** Quotation store supply backend functions. */
7
+ export class FilingTypeStore extends Store {
8
+ constructor(endpoint) {
9
+ super();
10
+ Object.defineProperty(this, "endpoint", {
11
+ enumerable: true,
12
+ configurable: true,
13
+ writable: true,
14
+ value: endpoint
15
+ });
16
+ /** Name of the store */
17
+ Object.defineProperty(this, "name", {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: StoreName
22
+ });
23
+ Object.defineProperty(this, "_filingTypeDeleted", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: new EventDispatcher()
28
+ });
29
+ Object.defineProperty(this, "_filingTypeCreated", {
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true,
33
+ value: new EventDispatcher()
34
+ });
35
+ /** All currently used corporate. */
36
+ Object.defineProperty(this, "items", {
37
+ enumerable: true,
38
+ configurable: true,
39
+ writable: true,
40
+ value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
41
+ });
42
+ }
43
+ /** Event fires when a delete filingType has been deleted. */
44
+ get FilingTypeDeletedEvent() {
45
+ return this._filingTypeDeleted.asEvent();
46
+ }
47
+ /** Event fires when a new FilingType has been created. */
48
+ get FilingTypeCreatedEvent() {
49
+ return this._filingTypeCreated.asEvent();
50
+ }
51
+ /** Create a new Identity. */
52
+ async create(options) {
53
+ // invariant(options.name, "Name cannot be empty.");
54
+ return await this.action(async () => {
55
+ const r = await this.endpoint.post(`/api/csp/filing-types/create`, new RequestBuilder().json(options.data));
56
+ const t = (await r.json());
57
+ this._filingTypeCreated.dispatch(this, t);
58
+ return t;
59
+ }, options);
60
+ }
61
+ /** Edit an existing item on server. */
62
+ async edit(id, options) {
63
+ await this.action(async () => {
64
+ const r = await this.endpoint.post(`/api/csp/filing-types/${id}`, new RequestBuilder().json(options.data));
65
+ const t = await r.json();
66
+ this.items.overwrite(t.id, t);
67
+ }, options);
68
+ }
69
+ /** filingType 內有文件不能delete */
70
+ async delete(ids, options) {
71
+ return await this.action(async () => {
72
+ await this.endpoint.delete(`/api/csp/filing-types/delete`, new RequestBuilder().json({ Ids: ids, Options: options === null || options === void 0 ? void 0 : options.data }));
73
+ const deleted = [];
74
+ for (const id of ids) {
75
+ const item = this.items.peek(id);
76
+ if (item) {
77
+ deleted.push(item);
78
+ this._filingTypeDeleted.dispatch(this, item);
79
+ }
80
+ }
81
+ return deleted;
82
+ }, options);
83
+ }
84
+ /** Load a list of documents from server.
85
+ * @param {LoadDocumentListOptions}
86
+ */
87
+ async loadList(options) {
88
+ let query = "";
89
+ if (options === null || options === void 0 ? void 0 : options.Includes) {
90
+ query = query.concat(`includes=${options.Includes}`);
91
+ }
92
+ if (query)
93
+ query = "?".concat(query);
94
+ const r = await this.endpoint.post(`/api/csp/filing-types${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
95
+ return (await r.json());
96
+ }
97
+ async load(id, options) {
98
+ let query = "";
99
+ if (options.includes)
100
+ query = query.concat(`includes=${options.includes}`);
101
+ if (query)
102
+ query = "?".concat(query);
103
+ const r = await this.endpoint.get(`/api/csp/filing-types/${id}${query}`);
104
+ return await r.json();
105
+ }
106
+ }
107
+ /** 响应钩子检索 IdentityStore */
108
+ export const useFilingTypeStore = () => {
109
+ const context = useApplicationContext();
110
+ if (!context.getStore(StoreName)) {
111
+ context.addStore(new FilingTypeStore(context.api.currentEndPoint));
112
+ }
113
+ return context.getStore(StoreName);
114
+ };
115
+ //# sourceMappingURL=FilingTypeStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilingTypeStore.js","sourceRoot":"","sources":["../../../src/data/filing-type/FilingTypeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAU/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,SAAS,GAAG,iBAAiB,CAAC;AAEpC,gD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AC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KACnE;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB,CAAC;AACxD,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./useOnNewFilingType";
2
+ export * from "./useOnDeleteFilingType";
3
+ export * from "./useAutoUpdateListData";
@@ -0,0 +1,4 @@
1
+ export * from "./useOnNewFilingType";
2
+ export * from "./useOnDeleteFilingType";
3
+ export * from "./useAutoUpdateListData";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/filing-type/filing-type-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IFilingType } from "../interfaces";
2
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
3
+ /** React hook to call action when a new FilingType has been created. */
4
+ export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d: IFilingType, event: string) => boolean) => void;
@@ -0,0 +1,15 @@
1
+ import { useOnDeleteFilingType, useOnNewFilingType } from ".";
2
+ /** React hook to call action when a new FilingType has been created. */
3
+ export const useAutoUpdateListData = (list, shouldUpdate) => {
4
+ useOnNewFilingType((s, d) => {
5
+ console.log(s, d);
6
+ console.log(shouldUpdate(d, "new"));
7
+ if (shouldUpdate(d, "new"))
8
+ list.union([d]);
9
+ });
10
+ useOnDeleteFilingType((s, d) => {
11
+ if (shouldUpdate(d, "new"))
12
+ list.remove(d.id);
13
+ });
14
+ };
15
+ //# sourceMappingURL=useAutoUpdateListData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutoUpdateListData.js","sourceRoot":"","sources":["../../../../src/data/filing-type/filing-type-events/useAutoUpdateListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAK9D,wEAAwE;AACxE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,IAA+B,EAC/B,YAAwD,EACvD,EAAE;IACH,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC3B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAA;QACnC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC9B,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FilingTypeStore } from "../FilingTypeStore";
2
+ import { IFilingType } from "../interfaces";
3
+ /** React hook to call action when a delete FilingType has been created. */
4
+ export declare const useOnDeleteFilingType: (action: (store: FilingTypeStore, doc: IFilingType) => void) => void;
@@ -0,0 +1,16 @@
1
+ import { useFilingTypeStore } from "../FilingTypeStore";
2
+ import { useEffect } from "react";
3
+ /** React hook to call action when a delete FilingType has been created. */
4
+ export const useOnDeleteFilingType = (action) => {
5
+ const store = useFilingTypeStore();
6
+ const onDeleteFilingType = (store, doc) => {
7
+ action(store, doc);
8
+ };
9
+ useEffect(() => {
10
+ store.FilingTypeDeletedEvent.subscribe(onDeleteFilingType);
11
+ return () => {
12
+ store.FilingTypeDeletedEvent.unsubscribe(onDeleteFilingType);
13
+ };
14
+ });
15
+ };
16
+ //# sourceMappingURL=useOnDeleteFilingType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnDeleteFilingType.js","sourceRoot":"","sources":["../../../../src/data/filing-type/filing-type-events/useOnDeleteFilingType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,2EAA2E;AAC3E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAA0D,EAAE,EAAE;IACnG,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,kBAAkB,GAAG,CAAC,KAAsB,EAAE,GAAgB,EAAE,EAAE;QACvE,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,sBAAsB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAC3D,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;QAC9D,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FilingTypeStore } from "../FilingTypeStore";
2
+ import { IFilingType } from "../interfaces";
3
+ /** React hook to call action when a new FilingType has been created. */
4
+ export declare const useOnNewFilingType: (action: (store: FilingTypeStore, doc: IFilingType) => void) => void;
@@ -0,0 +1,17 @@
1
+ import { useFilingTypeStore } from "../FilingTypeStore";
2
+ import { useEffect } from "react";
3
+ /** React hook to call action when a new FilingType has been created. */
4
+ export const useOnNewFilingType = (action) => {
5
+ const store = useFilingTypeStore();
6
+ const onNewFilingType = (store, doc) => {
7
+ // console.log(`onNewFilingType - ${doc.id} ${doc.name}`);
8
+ action(store, doc);
9
+ };
10
+ useEffect(() => {
11
+ store.FilingTypeCreatedEvent.subscribe(onNewFilingType);
12
+ return () => {
13
+ store.FilingTypeCreatedEvent.unsubscribe(onNewFilingType);
14
+ };
15
+ });
16
+ };
17
+ //# sourceMappingURL=useOnNewFilingType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnNewFilingType.js","sourceRoot":"","sources":["../../../../src/data/filing-type/filing-type-events/useOnNewFilingType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAA0D,EAAE,EAAE;IAChG,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,GAAgB,EAAE,EAAE;QACpE,0DAA0D;QAC1D,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,sBAAsB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QACxD,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC3D,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
2
+ import { IFilingType } from "./interfaces";
3
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
+ import { LoadFilingTypeOptions } from ".";
5
+ /** React hook to retrieve a filingType
6
+ * @param {string} id - id of the filingType
7
+ * @param {LoadDocumentOptions} options - options
8
+ */
9
+ export declare const useFilingType: (id: string, options?: LoadFilingTypeOptions | undefined) => IFilingType;
10
+ export declare const useFilingTypeListEffect: (list: ListDataContextState<IFilingType> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions | undefined) => void;
@@ -0,0 +1,19 @@
1
+ import { useDocumentListLoaderEffect } from "@voplus/morpho-document-core";
2
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
3
+ import { useFilingTypeStore } from "./FilingTypeStore";
4
+ /** React hook to retrieve a filingType
5
+ * @param {string} id - id of the filingType
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ export const useFilingType = (id, options) => {
9
+ options = options ? options : {};
10
+ const store = useFilingTypeStore();
11
+ return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
12
+ };
13
+ export const useFilingTypeListEffect = (list, effect, options) => {
14
+ const deps = options ? options : {};
15
+ const filingType = useFilingTypeStore();
16
+ // Call useDocumentListEffect and ensure won't load twice for same loading options.
17
+ return useDocumentListLoaderEffect(list, effect, () => filingType.loadList(options), [deps]);
18
+ };
19
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/filing-type/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAKpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAE,OAA+B,EAAE,EAAE;IAC5E,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA4B,CAAC;IAC5D,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACtC,IAA8C,EAC9C,MAA4C,EAC5C,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,UAAU,GAAG,kBAAkB,EAAE,CAAC;IAExC,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./FilingTypeStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./FilingTypeStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/filing-type/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ILoadable } from "@voplus/morpho-data";
2
+ export declare type FilingTypeStatus = "Active" | "Inactive" | "Terminated" | "Cancelled" | "Prospect";
3
+ export interface IFilingType extends ILoadable {
4
+ id: string;
5
+ parentId: string;
6
+ name: string;
7
+ jurisdiction: string;
8
+ corporateType: string;
9
+ liabilityType?: string;
10
+ category: string;
11
+ frequency: string;
12
+ dateBased: string;
13
+ fixedDate?: Date;
14
+ monthOffset?: number;
15
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/filing-type/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
2
+ import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
3
+ import { IFilingType } from "./interfaces";
4
+ /** Custom load org contact options type */
5
+ export declare type LoadFilingTypeOptions = {
6
+ /** Comma separated include options e.g. path */
7
+ includes?: string;
8
+ } & LoadOptions<IFilingType>;
9
+ export declare type CorporateTypes = "Proprietorship" | "Company" | "Partnership";
10
+ export declare type CorporateLiabilityTypes = "Unlimited" | "LimitedByShares" | "LimitedByGuarantee";
11
+ export declare type FilingCategory = "Tax" | "Business";
12
+ export declare type FilingFrequency = "Monthly" | "Quarterly" | "HalfYearly" | "Yearly";
13
+ export declare type FilingDateBased = "FinancialYear" | "CalendarYear" | "Fixed";
14
+ export declare type FilingTypeCreateOptions = {
15
+ CenterId: string;
16
+ Name: string;
17
+ Jurisdiction: string;
18
+ CorporateType: CorporateTypes;
19
+ LiabilityType: CorporateLiabilityTypes;
20
+ };
21
+ export declare type FilingTypeEditOptions = {
22
+ Name?: string;
23
+ Category?: FilingCategory;
24
+ Frequency?: FilingFrequency;
25
+ DateBased?: FilingDateBased;
26
+ FixedDate?: string;
27
+ MonthOffset?: number;
28
+ };
29
+ export declare type CreateFilingTypeOptions = {
30
+ data: FilingTypeCreateOptions;
31
+ } & StoreActionOptions;
32
+ export declare type EditFilingTypeOptions = {
33
+ data: FilingTypeEditOptions;
34
+ } & StoreActionOptions;
35
+ export declare type DeleteFilingTypeOptions = {
36
+ data?: DeleteDocumentOptions;
37
+ } & StoreActionOptions;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/filingRecord/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/filing-type/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { ApiEndPoint } from "@voplus/api";
2
+ import { CountedMap, Store } from "@voplus/morpho-data";
3
+ import { CreateFilingYearOptions, DeleteFilingYearOptions, EditFilingYearOptions, LoadFilingYearOptions } from "./types";
4
+ import { IFilingYear } from "./interfaces";
5
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
6
+ /** Quotation store supply backend functions. */
7
+ export declare class FilingYearStore extends Store {
8
+ readonly endpoint: ApiEndPoint;
9
+ /** Name of the store */
10
+ readonly name: string;
11
+ private readonly _filingYearDeleted;
12
+ private readonly _filingYearCreated;
13
+ constructor(endpoint: ApiEndPoint);
14
+ /** All currently used corporate. */
15
+ readonly items: CountedMap<string, IFilingYear>;
16
+ /** Event fires when a delete filingYear has been deleted. */
17
+ get FilingYearDeletedEvent(): import("strongly-typed-events").IEvent<FilingYearStore, IFilingYear>;
18
+ /** Event fires when a new FilingYear has been created. */
19
+ get FilingYearCreatedEvent(): import("strongly-typed-events").IEvent<FilingYearStore, IFilingYear>;
20
+ /** Create a new Identity. */
21
+ create(options: CreateFilingYearOptions): Promise<IFilingYear>;
22
+ /** Edit an existing item on server. */
23
+ edit(id: string, options: EditFilingYearOptions): Promise<void>;
24
+ /** filingYear 內有文件不能delete */
25
+ delete(ids: string[], options?: DeleteFilingYearOptions): Promise<any>;
26
+ /** Load a list of documents from server.
27
+ * @param {LoadDocumentListOptions}
28
+ */
29
+ loadList(options?: LoadDocumentListOptions): Promise<IFilingYear[]>;
30
+ load(id: string, options: LoadFilingYearOptions): Promise<IFilingYear>;
31
+ }
32
+ /** 响应钩子检索 IdentityStore */
33
+ export declare const useFilingYearStore: () => FilingYearStore;