@voplus/morpho-csp 5.0.16 → 5.0.18

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 (83) hide show
  1. package/es/data/corporate/types.d.ts +2 -2
  2. package/es/data/filing-record/interfaces.d.ts +3 -0
  3. package/es/data/filing-record/types.d.ts +11 -2
  4. package/es/data/filing-type/interfaces.d.ts +1 -0
  5. package/es/data/filing-type/types.d.ts +2 -0
  6. package/es/data/identity/interfaces.d.ts +1 -1
  7. package/es/data/identity/types.d.ts +1 -1
  8. package/es/data/member/types.d.ts +2 -2
  9. package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/index.js +1 -1
  10. package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/index.js.map +1 -1
  11. package/es/modules/corporate/company/components/CompanyProperties/Properties.js +2 -2
  12. package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -1
  13. package/es/modules/corporate/company/identity/components/IdentityChange/index.js +1 -1
  14. package/es/modules/corporate/company/identity/components/IdentityChange/index.js.map +1 -1
  15. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +1 -1
  16. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
  17. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +1 -1
  18. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +1 -1
  19. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.js +1 -1
  20. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.js.map +1 -1
  21. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js +2 -1
  22. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js.map +1 -1
  23. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.d.ts +1 -1
  24. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.js.map +1 -1
  25. package/es/modules/corporate/company/member-register/components/DetailsObsolete/index.js +15 -7
  26. package/es/modules/corporate/company/member-register/components/DetailsObsolete/index.js.map +1 -1
  27. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +1 -3
  28. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
  29. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +9 -5
  30. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
  31. package/es/modules/corporate/filing-record/components/FilingRecordList/index.d.ts +1 -2
  32. package/es/modules/corporate/filing-record/components/FilingRecordList/index.js +20 -3
  33. package/es/modules/corporate/filing-record/components/FilingRecordList/index.js.map +1 -1
  34. package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.d.ts +1 -1
  35. package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js +20 -3
  36. package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js.map +1 -1
  37. package/es/modules/corporate/filing-record/components/FilingRecordTimeLine/index.d.ts +1 -2
  38. package/es/modules/corporate/filing-record/components/FilingRecordTimeLine/index.js +42 -25
  39. package/es/modules/corporate/filing-record/components/FilingRecordTimeLine/index.js.map +1 -1
  40. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.d.ts +10 -0
  41. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.js +14 -0
  42. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.js.map +1 -0
  43. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/index.d.ts +18 -0
  44. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/index.js +63 -0
  45. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/index.js.map +1 -0
  46. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/index.less +40 -0
  47. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/state.d.ts +12 -0
  48. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/state.js +35 -0
  49. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/state.js.map +1 -0
  50. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js +8 -6
  51. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.js.map +1 -1
  52. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.less +2 -2
  53. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.d.ts +1 -1
  54. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +36 -7
  55. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -1
  56. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js +7 -2
  57. package/es/modules/corporate/filing-record/filing-year/FilingYearHeader/index.js.map +1 -1
  58. package/es/modules/corporate/filing-record/filing-year/FilingYearItem/index.js +18 -3
  59. package/es/modules/corporate/filing-record/filing-year/FilingYearItem/index.js.map +1 -1
  60. package/es/modules/corporate/filing-record/filing-year/FilingYearItem/index.less +20 -5
  61. package/es/modules/corporate/filing-record/filing-year/FilingYearMenu/index.d.ts +8 -0
  62. package/es/modules/corporate/filing-record/filing-year/FilingYearMenu/index.js +10 -0
  63. package/es/modules/corporate/filing-record/filing-year/FilingYearMenu/index.js.map +1 -0
  64. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js +1 -1
  65. package/es/modules/corporate/filing-record/filing-year/FilingYearTabs/index.js.map +1 -1
  66. package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js +9 -7
  67. package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js.map +1 -1
  68. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +4 -6
  69. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
  70. package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.js +1 -3
  71. package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.js.map +1 -1
  72. package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/Content.js +1 -3
  73. package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/Content.js.map +1 -1
  74. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js +1 -3
  75. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js.map +1 -1
  76. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +1 -1
  77. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
  78. package/es/obsolete/controller-register/components/ControllerInformation/index.js +2 -2
  79. package/es/obsolete/controller-register/components/ControllerInformation/index.js.map +1 -1
  80. package/es/obsolete/controllerRegister/types.d.ts +2 -2
  81. package/es/obsolete/order/controls/OrderLabel/index.js +4 -4
  82. package/es/obsolete/order/controls/OrderLabel/index.js.map +1 -1
  83. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import "./index.less";
3
- export type FilingPropertiesName = "Name" | "DueDate";
3
+ export type FilingPropertiesName = "Name" | "DueDate" | "Exempted" | "FileDate";
4
4
  declare const FilingProperties: {
5
5
  (props: {
6
6
  id: string;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { Scrollbars } from "react-custom-scrollbars";
3
3
  import { InlineEdit, observe } from "@voplus/morpho-ui";
4
4
  import { useFilingRecore, useFilingRecoreStore } from "../../../../../data/filing-record";
5
- import { Form } from "antd";
5
+ import { Form, Switch } from "antd";
6
6
  import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
7
7
  import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
8
8
  import VerificationInformation from "@voplus/morpho-document/es/components/VerificationInformation";
@@ -27,7 +27,7 @@ const FilingProperties = (props) => {
27
27
  "add-info-style": !(filing === null || filing === void 0 ? void 0 : filing.name),
28
28
  }) }, (filing === null || filing === void 0 ? void 0 : filing.name) ? filing.name : "Add Name")), onSave: (value) => store.edit(id, { data: { Name: value }, error: "message" }) })));
29
29
  case "DueDate":
30
- return (React.createElement(Form.Item, { label: "DueDate" },
30
+ return (React.createElement(Form.Item, { label: "Due Date" },
31
31
  React.createElement(InlineEdit, { defaultValue: dayjs(filing.dueDate !== "" ? filing.dueDate : undefined), content: (v) => filing.dueDate ? (React.createElement("span", null, dayjs(filing.dueDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add DueDate")), editor: DateInputEditor, onSave: (date) => {
32
32
  if (filing.dueDate && dayjs(date).isSame(filing.dueDate, "day"))
33
33
  return;
@@ -35,12 +35,29 @@ const FilingProperties = (props) => {
35
35
  data: { DueDate: date !== null ? dayjs(date).format("YYYY-MM-DD") : "" },
36
36
  });
37
37
  } })));
38
+ case "Exempted":
39
+ return (React.createElement(Form.Item, { label: "Exempted" },
40
+ React.createElement(Switch, { checked: filing.exempted, onChange: (checked) => store.edit(id, { data: { Exempted: checked }, error: "message" }) })));
41
+ case "FileDate":
42
+ return (!filing.exempted && (React.createElement(Form.Item, { label: "File Date" },
43
+ React.createElement(InlineEdit, { defaultValue: dayjs(filing.fileDate !== "" ? filing.fileDate : undefined), content: (v) => filing.fileDate ? (React.createElement("span", null, dayjs(filing.fileDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add DueDate")), editor: DateInputEditor, onSave: (date) => {
44
+ if (filing.fileDate && dayjs(date).isSame(filing.fileDate, "day"))
45
+ return;
46
+ store.edit(props.id, {
47
+ data: { FileDate: date !== null ? dayjs(date).format("YYYY-MM-DD") : "" },
48
+ });
49
+ } }))));
38
50
  }
39
51
  }
40
52
  };
41
53
  FilingProperties.defaultProps = {
42
54
  filingTitle: "Filing Properties",
43
- filingProperties: [{ name: "Name" }, { name: "DueDate" }],
55
+ filingProperties: [
56
+ { name: "Name" },
57
+ { name: "DueDate" },
58
+ { name: "Exempted" },
59
+ { name: "FileDate" },
60
+ ],
44
61
  };
45
62
  export default FilingProperties;
46
63
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAItB,MAAM,gBAAgB,GAAG,CAAC,KAIzB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAEpD,MAAM,MAAM,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IAErC,MAAM,SAAS,GAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAExE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,mBAAmB;QACjC,oBAAC,UAAU,IAAC,QAAQ;YACnB,6BAAK,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE,aAAa,CAAC,+BAEzD;YACN,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;YACnC,oBAA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V,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,KAAM,EAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,EAChF,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,kCAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAQ,CACzD,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,kBAAmB,CACnD,EAEF,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;4BAChB,IAAI,MAAM,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC;gCAAE,OAAO;4BACxE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gCACpB,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;6BACxE,CAAC,CAAC;wBACJ,CAAC,GACA,CACS,CACZ,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,WAAW,EAAE,mBAAmB;IAChC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;CACzD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBA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AC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,EAClF,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CACjB,kCAAO,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAQ,CAC1D,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,kBAAmB,CACnD,EAEF,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;4BAChB,IAAI,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC;gCAAE,OAAO;4BAC1E,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gCACpB,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;6BACzE,CAAC,CAAC;wBACJ,CAAC,GACA,CACS,CACZ,CACD,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,WAAW,EAAE,mBAAmB;IAChC,gBAAgB,EAAE;QACjB,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,UAAU,EAAE;KACpB;CACD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
- import { IFilingRecore } from "../../../../../data/filing-record";
3
2
  declare const FilingTimeLine: (props: {
4
- filings: IFilingRecore[];
3
+ filingYearId: string;
5
4
  className?: string;
6
5
  }) => React.JSX.Element;
7
6
  export default FilingTimeLine;
@@ -1,36 +1,53 @@
1
1
  import React, { useState } from "react";
2
2
  import { faCheck, faThumbsUp, faUser } from "@fortawesome/pro-light-svg-icons";
3
- import { observe } from "@voplus/morpho-ui";
3
+ import { useFilingRecoreListEffect } from "../../../../../data/filing-record";
4
+ import { useAutoUpdateListData } from "../../../../../data/filing-record/filing-record-events";
5
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
6
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
4
7
  import { Empty } from "antd";
5
8
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
9
  import FilingQuickViewDialog from "../FilingRecordQuickViewDialog";
7
10
  import classnames from "classnames";
8
11
  const FilingTimeLine = (props) => {
9
- const { filings } = props;
10
12
  const [visibleQuickView, setVisibleQuickView] = useState({ id: "", visible: false });
11
- return observe(() => (React.createElement("div", { className: classnames(props.className, "mt-5 overflow-hidden bg-white shadow sm:rounded-lg") },
12
- React.createElement("div", { className: "p-4" },
13
- React.createElement("div", { className: "filing-time-line" }, !(filings === null || filings === void 0 ? void 0 : filings.length) ? (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })) : (React.createElement("div", { className: "flow-root" },
14
- React.createElement("ul", { role: "list", className: "-mb-8" }, filings === null || filings === void 0 ? void 0 : filings.map((filing, filingIdx) => (React.createElement("li", { className: "cursor-pointer", key: filing.id },
15
- React.createElement("div", { className: "relative pb-8" },
16
- filingIdx !== (filings === null || filings === void 0 ? void 0 : filings.length) - 1 ? (React.createElement("span", { className: "absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" })) : null,
17
- React.createElement("div", { className: "relative flex space-x-3" },
18
- React.createElement("div", null,
19
- React.createElement("span", { className: classnames("h-8 w-8 rounded-full flex items-center justify-center ring-8 ring-white bg-green-500"
20
- // {
21
- // "bg-gray-400": !filing.schedule,
22
- // "bg-blue-500": !!filing.schedule,
23
- // "bg-green-500": filing.schedule && !filing.status,
24
- // }
25
- ) },
26
- React.createElement(FAIcon, { icon: faCheck, color: "#fff" }))),
27
- React.createElement("div", { className: "flex min-w-0 flex-1 justify-between space-x-4 pt-1.5", onClick: () => onQuickView(filing.id) },
28
- React.createElement("div", null,
29
- React.createElement("div", { className: "text-sm" },
30
- React.createElement("div", { className: "text-sm" }, filing === null || filing === void 0 ? void 0 : filing.name),
31
- React.createElement("div", { className: "font-medium text-gray-500" }))),
32
- React.createElement("div", { className: "whitespace-nowrap text-right text-sm text-gray-500" })))))))))))),
33
- visibleQuickView.visible && visibleQuickView.id && (React.createElement(FilingQuickViewDialog, { id: visibleQuickView.id, visible: true, onCancel: onQuickView })))));
13
+ const list = useCreateListDataState({
14
+ filterDefaults: {
15
+ filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.filingYearId }],
16
+ },
17
+ }, [props.filingYearId]);
18
+ useAutoUpdateListData(list, (d) => d.parentId === props.filingYearId);
19
+ useRenderOnChange(() => list.filters.options);
20
+ useFilingRecoreListEffect(list, (result, total) => list.union(result), list.filters.options);
21
+ return observe(() => {
22
+ var _a, _b;
23
+ return (React.createElement(ListDataContext.Provider, { value: list },
24
+ React.createElement("div", { className: classnames(props.className, "mt-5 overflow-hidden bg-white shadow sm:rounded-lg") },
25
+ React.createElement("div", { className: "p-4" },
26
+ React.createElement("div", { className: "filing-time-line" }, !((_a = list.data) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })) : (React.createElement("div", { className: "flow-root" },
27
+ React.createElement("ul", { role: "list", className: "-mb-8" }, (_b = list.data) === null || _b === void 0 ? void 0 : _b.map((filing, filingIdx) => {
28
+ var _a;
29
+ return (React.createElement("li", { className: "cursor-pointer", key: filing.id },
30
+ React.createElement("div", { className: "relative pb-8" },
31
+ filingIdx !== ((_a = list.data) === null || _a === void 0 ? void 0 : _a.length) - 1 ? (React.createElement("span", { className: "absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" })) : null,
32
+ React.createElement("div", { className: "relative flex space-x-3" },
33
+ React.createElement("div", null,
34
+ React.createElement("span", { className: classnames("h-8 w-8 rounded-full flex items-center justify-center ring-8 ring-white bg-green-500"
35
+ // {
36
+ // "bg-gray-400": !filing.schedule,
37
+ // "bg-blue-500": !!filing.schedule,
38
+ // "bg-green-500": filing.schedule && !filing.status,
39
+ // }
40
+ ) },
41
+ React.createElement(FAIcon, { icon: faCheck, color: "#fff" }))),
42
+ React.createElement("div", { className: "flex min-w-0 flex-1 justify-between space-x-4 pt-1.5", onClick: () => onQuickView(filing.id) },
43
+ React.createElement("div", null,
44
+ React.createElement("div", { className: "text-sm" },
45
+ React.createElement("div", { className: "text-sm" }, filing === null || filing === void 0 ? void 0 : filing.name),
46
+ React.createElement("div", { className: "font-medium text-gray-500" }))),
47
+ React.createElement("div", { className: "whitespace-nowrap text-right text-sm text-gray-500" }))))));
48
+ })))))),
49
+ visibleQuickView.visible && visibleQuickView.id && (React.createElement(FilingQuickViewDialog, { id: visibleQuickView.id, visible: true, onCancel: onQuickView })))));
50
+ });
34
51
  function showIcon(status) {
35
52
  if (status === "Unverified") {
36
53
  return React.createElement(FAIcon, { icon: faUser, color: "#fff" });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordTimeLine/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AACnE,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AC,CAAC;IACrE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordTimeLine/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AACnE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,cAAc,GAAG,CAAC,KAAmD,EAAE,EAAE;IAC9E,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAGrD,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/B,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;SAC1E;KACD,EACD,CAAC,KAAK,CAAC,YAAY,CAAC,CACpB,CAAC;IAEF,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE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IACjB,SAAS,WAAW,CAAC,EAAW;QAC/B,mBAAmB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,14 @@
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: false, 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewFilingRecoreFormDialog.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.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,8BAA8B,EACpC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,KAAK,EACb,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"}
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { IFilingYear } from "../../../../../data/filing-year";
3
+ import "./index.less";
4
+ export type NewFilingRecoreFormProps = {
5
+ filingYear: IFilingYear;
6
+ type?: "full" | "mini";
7
+ className?: string;
8
+ showView?: boolean;
9
+ onSave?: (params?: any) => void;
10
+ onCancel?: () => void;
11
+ };
12
+ declare const NewFilingRecoreForm: {
13
+ (props: NewFilingRecoreFormProps): React.JSX.Element;
14
+ defaultProps: {
15
+ type: string;
16
+ };
17
+ };
18
+ export default NewFilingRecoreForm;
@@ -0,0 +1,63 @@
1
+ import React, { useState } from "react";
2
+ import { Button, DatePicker, Form, Input, Row, Space } from "antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
5
+ import { useFilingRecoreStore } from "../../../../../data/filing-record";
6
+ import { runInAction } from "mobx";
7
+ import { State } from "./state";
8
+ import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
9
+ import classnames from "classnames";
10
+ import FilingRecordPropertiesView from "../FilingRecordPropertiesView";
11
+ import moment from "moment";
12
+ import "./index.less";
13
+ const NewFilingRecoreForm = (props) => {
14
+ const { filingYear } = props;
15
+ const store = useFilingRecoreStore();
16
+ const asideContext = useAsideContentContext();
17
+ const [state] = useState(new State());
18
+ const content = observe(() => (React.createElement("div", { className: classnames(props.className, "new-filing-recore-form", {
19
+ "sub-filing-recore-simply-form": props.type === "mini",
20
+ }) },
21
+ React.createElement(Form, { layout: "vertical" },
22
+ React.createElement(Form.Item, { label: "Name", name: "Name" },
23
+ React.createElement(Input, { onChange: (e) => (state.params.Name = e.target.value) })),
24
+ React.createElement(Form.Item, { label: "Due Date", name: "DueDate" },
25
+ React.createElement(DatePicker, { changeOnBlur: true, style: { width: "100%" }, onChange: (value, dateString) => (state.params.DueDate = dateString) })),
26
+ props.type === "mini" && (React.createElement(Row, { className: "filing-recore-form-btn", justify: "end" },
27
+ React.createElement(Space, null,
28
+ React.createElement(Button, { onClick: onCancel }, "Cancel"),
29
+ React.createElement(Button, { type: "primary", onClick: onSubmit }, "Submit"))))))));
30
+ return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: `Add FilingRecore In FilingYear ${moment(filingYear.fYE).format("YYYY MMM DD")}`, loading: !!state.loading, onCancel: onCancel, onSubmit: onSubmit }, content)) : (content))));
31
+ async function onSubmit() {
32
+ var _a;
33
+ runInAction(() => (state.loading = true));
34
+ const res = await store.create({
35
+ data: {
36
+ ...state.params,
37
+ FilingYearId: filingYear.id,
38
+ },
39
+ error: "message",
40
+ });
41
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, state.params);
42
+ runInAction(() => {
43
+ state.loading = false;
44
+ state.params = state.Params;
45
+ });
46
+ if (props.showView)
47
+ return asideContext.openAside(React.createElement(FilingRecordPropertiesView, { id: res.id }), {
48
+ span: 12,
49
+ });
50
+ }
51
+ function onCancel() {
52
+ state.params = state.Params;
53
+ if (props.showView)
54
+ return asideContext.closeAside();
55
+ if (props.onCancel)
56
+ props.onCancel();
57
+ }
58
+ };
59
+ NewFilingRecoreForm.defaultProps = {
60
+ type: "full",
61
+ };
62
+ export default NewFilingRecoreForm;
63
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/NewFilingRecoreForm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AC,CAAC,CAAC;QAE1C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC9B,IAAI,EAAE;gBACL,GAAG,KAAK,CAAC,MAAM;gBACf,YAAY,EAAE,UAAU,CAAC,EAAE;aAC3B;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QAEH,MAAA,KAAK,CAAC,MAAM,sDAAG,KAAK,CAAC,MAAM,CAAC,CAAC;QAE7B,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,IAAI,KAAK,CAAC,QAAQ;YACjB,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,0BAA0B,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;gBAC1E,IAAI,EAAE,EAAE;aACR,CAAC,CAAC;IACL,CAAC;IAED,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,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"}
@@ -0,0 +1,40 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .new-filing-recore-form {
5
+ &.sub-filing-recore-more-form {
6
+ padding: 0 20px;
7
+
8
+ .ant-form-item {
9
+ margin-bottom: 15px;
10
+ }
11
+ }
12
+
13
+ &.sub-filing-recore-simply-form {
14
+ flex: none;
15
+ padding-bottom: 10px;
16
+ // border-top: #f2f2f2 solid 1px;
17
+
18
+ .ant-form-item {
19
+ margin-bottom: 10px;
20
+ }
21
+ }
22
+
23
+ .edit-type {
24
+ width: 100%;
25
+ height: 32px;
26
+ line-height: 32px;
27
+ padding: 0 11px;
28
+ border-radius: @border-radius;
29
+ border: 1px solid #d9d9d9;
30
+
31
+ &:hover {
32
+ border-color: #40a9ff;
33
+ }
34
+ }
35
+
36
+ .filing-recore-form-btn {
37
+ margin-top: 10px;
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,12 @@
1
+ export declare class State {
2
+ constructor();
3
+ Params: {
4
+ Name: string;
5
+ DueDate: string;
6
+ };
7
+ params: {
8
+ Name: string;
9
+ DueDate: string;
10
+ };
11
+ loading: boolean;
12
+ }
@@ -0,0 +1,35 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "Params", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: {
10
+ Name: "",
11
+ DueDate: "",
12
+ }
13
+ });
14
+ Object.defineProperty(this, "params", {
15
+ enumerable: true,
16
+ configurable: true,
17
+ writable: true,
18
+ value: this.Params
19
+ });
20
+ Object.defineProperty(this, "loading", {
21
+ enumerable: true,
22
+ configurable: true,
23
+ writable: true,
24
+ value: false
25
+ });
26
+ makeObservable(this);
27
+ }
28
+ }
29
+ __decorate([
30
+ observable
31
+ ], State.prototype, "params", void 0);
32
+ __decorate([
33
+ observable
34
+ ], State.prototype, "loading", void 0);
35
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/NewFilingRecoreForm/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;aACX;WAAC;QAEiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAU,KAAK;WAAC;QATlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CASD;AAFmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAwB"}
@@ -17,16 +17,18 @@ const FilingTypeItem = (props) => {
17
17
  return observe(() => (React.createElement(React.Fragment, null,
18
18
  React.createElement("div", { className: styles["filing-type-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false), onClick: onQuickView },
19
19
  React.createElement(ColumnItem, null,
20
- React.createElement(ColumnItemCol, { span: 8 },
20
+ React.createElement(ColumnItemCol, { span: 7 },
21
21
  React.createElement("div", { className: "filing-type-item-name" }, filingType.name),
22
- React.createElement("div", { className: "filing-type-item-data-info" })),
23
- React.createElement(ColumnItemCol, { span: 4, title: "Date Type" },
22
+ React.createElement("div", { className: "filing-type-item-data-info" }, `${filingType === null || filingType === void 0 ? void 0 : filingType.jurisdiction} / ${filingType === null || filingType === void 0 ? void 0 : filingType.category}`)),
23
+ React.createElement(ColumnItemCol, { span: 5, title: "Corporate Type" },
24
+ React.createElement("div", { className: "filing-type-item-data-info" }, `${filingType === null || filingType === void 0 ? void 0 : filingType.corporateType} / ${filingType === null || filingType === void 0 ? void 0 : filingType.liabilityType}`)),
25
+ React.createElement(ColumnItemCol, { span: 3, title: "Date Type" },
24
26
  React.createElement("div", { className: "filing-type-item-data-info" }, splitAtUpperCase(filingType.dateBased))),
25
- React.createElement(ColumnItemCol, { span: 4, title: "Frequency" },
27
+ React.createElement(ColumnItemCol, { span: 3, title: "Frequency" },
26
28
  React.createElement("div", { className: "filing-type-item-data-info" }, splitAtUpperCase(filingType.frequency))),
27
- React.createElement(ColumnItemCol, { span: 4, title: "Date / Offset", align: "center" },
29
+ React.createElement(ColumnItemCol, { span: 3, title: "Date / Offset", align: "center" },
28
30
  React.createElement("div", { className: "filing-type-item-data-info" }, filingType === null || filingType === void 0 ? void 0 : filingType.monthOffset)),
29
- React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
31
+ React.createElement(ColumnItemCol, { span: 3, align: "flex-end" },
30
32
  React.createElement("div", { className: classnames("filing-type-item-tool", {
31
33
  show: isHover,
32
34
  }), onClick: (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAA4D,EAAE,EAAE;IACvF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAErC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BACC,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,oBAAC,IAAI,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;4BACpC,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5B,CACL,CACS,CACJ,CACR;QACL,gBAAgB,IAAI,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,QAAC,QAAQ,EAAE,WAAW,GAAI,CACnE,CACjB,CAAC,CAAC;IAEH,iBAAiB;IACjB,SAAS,WAAW;QACnB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,mBAAmB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAA4D,EAAE,EAAE;IACvF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,C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CAAC,UAAU,CAAC,SAAS,CAAC,CAClC,CACS;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,eAAe,EAAC,KAAK,EAAC,QAAQ;oBAC3D,6BAAK,SAAS,EAAC,4BAA4B,IAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,CAAO,CAC5D;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;oBACvC,6BACC,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE;4BAC9C,IAAI,EAAE,OAAO;yBACb,CAAC,EACF,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;4BACd,CAAC,CAAC,eAAe,EAAE,CAAC;4BACpB,UAAU,CAAC,KAAK,CAAC,CAAC;wBACnB,CAAC;wBAED,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;4BAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;4BACpC,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5B,CACL,CACS,CACJ,CACR;QACL,gBAAgB,IAAI,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,QAAC,QAAQ,EAAE,WAAW,GAAI,CACnE,CACjB,CAAC,CAAC;IAEH,iBAAiB;IACjB,SAAS,WAAW;QACnB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,mBAAmB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .filing-type-item-data-info {
18
- height: 22px;
18
+ min-height: 22px;
19
19
  }
20
20
 
21
21
  .filing-type-item-tool {
@@ -30,4 +30,4 @@
30
30
  padding: 10px 20px;
31
31
  }
32
32
  }
33
- }
33
+ }
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- type FilingTypePropertiesName = "Name" | "Category" | "Frequency" | "DateBased" | "FixedDate" | "MonthOffset" | "Jurisdiction";
2
+ type FilingTypePropertiesName = "Name" | "Category" | "Frequency" | "DateBased" | "FixedOffset" | "FixedDate" | "MonthOffset" | "Jurisdiction";
3
3
  declare const FilingTypeProperties: {
4
4
  (props: {
5
5
  id: string;
@@ -18,6 +18,8 @@ const FilingTypeProperties = (props) => {
18
18
  const store = useFilingTypeStore();
19
19
  const [showDateBasedEditIcon, setShowDateBasedEditIcon] = useState(true);
20
20
  const [dateBasedEditable, setDateBasedEditable] = useState(false);
21
+ const [showFixedOffsetEditIcon, setShowFixedOffsetEditIcon] = useState(true);
22
+ const [fixedOffsetEditable, setFixedOffsetEditable] = useState(false);
21
23
  const [showFrequencyEditIcon, setShowFrequencyEditIcon] = useState(true);
22
24
  const [frequencyEditable, setFrequencyEditable] = useState(false);
23
25
  const [showCategoryEditIcon, setShowCategoryEditIcon] = useState(true);
@@ -49,7 +51,7 @@ const FilingTypeProperties = (props) => {
49
51
  },
50
52
  ] })) : (React.createElement("span", { className: classnames({
51
53
  "add-info-style": !filingType.category,
52
- }) }, filingType.category || "Select Work Type")))));
54
+ }), onClick: onEditCategory }, filingType.category || "Select Work Type")))));
53
55
  case "Frequency":
54
56
  return (React.createElement(Form.Item, { label: "Frequency" },
55
57
  React.createElement(FolderEdit, { showEditIcon: showFrequencyEditIcon, onEditIconClick: onEditFrequency }, frequencyEditable ? (React.createElement(Select, { open: true, autoFocus: true, defaultValue: filingType.frequency, optionFilterProp: "children", onChange: (value) => store.edit(id, { data: { Frequency: value }, error: "message" }).then(() => {
@@ -73,7 +75,7 @@ const FilingTypeProperties = (props) => {
73
75
  },
74
76
  ] })) : (React.createElement("span", { className: classnames({
75
77
  "add-info-style": !filingType.frequency,
76
- }) }, splitAtUpperCase(filingType.frequency) || "Select Frequency")))));
78
+ }), onClick: onEditFrequency }, splitAtUpperCase(filingType.frequency) || "Select Frequency")))));
77
79
  case "DateBased":
78
80
  return (React.createElement(Form.Item, { label: "DateBased" },
79
81
  React.createElement(FolderEdit, { showEditIcon: showDateBasedEditIcon, onEditIconClick: onEditDateBased }, dateBasedEditable ? (React.createElement(Select, { open: true, autoFocus: true, defaultValue: filingType.dateBased, optionFilterProp: "children", onChange: (value) => store.edit(id, { data: { DateBased: value }, error: "message" }).then(() => {
@@ -93,19 +95,37 @@ const FilingTypeProperties = (props) => {
93
95
  },
94
96
  ] })) : (React.createElement("span", { className: classnames({
95
97
  "add-info-style": !filingType.dateBased,
96
- }) }, splitAtUpperCase(filingType.dateBased) || "Select DateBased")))));
98
+ }), onClick: onEditDateBased }, splitAtUpperCase(filingType.dateBased) || "Select DateBased")))));
99
+ case "FixedOffset":
100
+ return (filingType.dateBased === "Fixed" && (React.createElement(Form.Item, { label: "FixedOffset" },
101
+ React.createElement(FolderEdit, { showEditIcon: showFixedOffsetEditIcon, onEditIconClick: onEditFixedOffset }, fixedOffsetEditable ? (React.createElement(Select, { open: true, autoFocus: true, defaultValue: filingType.fixedOffset, optionFilterProp: "children", onChange: (value) => store
102
+ .edit(id, { data: { FixedOffset: value }, error: "message" })
103
+ .then(() => {
104
+ onBulurFixedOffset();
105
+ }), onBlur: onBulurFixedOffset, options: [
106
+ {
107
+ value: "SameCalendarYear",
108
+ label: "Same Calendar Year",
109
+ },
110
+ {
111
+ value: "NextCalendarYear",
112
+ label: "Next Calendar Year",
113
+ },
114
+ ] })) : (React.createElement("span", { className: classnames({
115
+ "add-info-style": !filingType.fixedOffset,
116
+ }), onClick: onEditFixedOffset }, splitAtUpperCase(filingType.fixedOffset) || "Select FixedOffset"))))));
97
117
  case "FixedDate":
98
- return (React.createElement(Form.Item, { label: "FixedDate" },
118
+ return (filingType.dateBased === "Fixed" && (React.createElement(Form.Item, { label: "FixedDate" },
99
119
  React.createElement(InlineEdit, { defaultValue: dayjs(filingType.fixedDate !== "" ? filingType.fixedDate : undefined), content: (v) => filingType.fixedDate ? (React.createElement("span", null, dayjs(filingType.fixedDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add FixedDate")), editor: DateInputEditor, onSave: (date) => {
100
120
  if (filingType.fixedDate && dayjs(date).isSame(filingType.fixedDate, "day"))
101
121
  return;
102
122
  store.edit(props.id, {
103
123
  data: { FixedDate: date !== null ? dayjs(date).format("YYYY-MM-DD") : "" },
104
124
  });
105
- } })));
125
+ } }))));
106
126
  case "MonthOffset":
107
- return (React.createElement(Form.Item, { label: "MonthOffset" },
108
- React.createElement(InlineEdit, { defaultValue: filingType.monthOffset, content: (v) => v.store.value ? (React.createElement("span", null, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "Add MonthOffset")), onSave: (value) => store.edit(id, { data: { MonthOffset: value }, error: "message" }) })));
127
+ return (filingType.dateBased === "FinancialYear" && (React.createElement(Form.Item, { label: "MonthOffset" },
128
+ React.createElement(InlineEdit, { defaultValue: filingType.monthOffset, content: (v) => v.store.value ? (React.createElement("span", null, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "Add MonthOffset")), onSave: (value) => store.edit(id, { data: { MonthOffset: value }, error: "message" }) }))));
109
129
  case "Jurisdiction":
110
130
  return React.createElement(Form.Item, { label: "Jurisdiction" }, filingType.jurisdiction);
111
131
  }
@@ -126,6 +146,14 @@ const FilingTypeProperties = (props) => {
126
146
  setShowDateBasedEditIcon(true);
127
147
  setDateBasedEditable(false);
128
148
  }
149
+ function onEditFixedOffset() {
150
+ setFixedOffsetEditable(true);
151
+ setShowFixedOffsetEditIcon(false);
152
+ }
153
+ function onBulurFixedOffset() {
154
+ setShowFixedOffsetEditIcon(true);
155
+ setFixedOffsetEditable(false);
156
+ }
129
157
  function onEditCategory() {
130
158
  setCategoryEditable(true);
131
159
  setShowCategoryEditIcon(false);
@@ -143,6 +171,7 @@ FilingTypeProperties.defaultProps = {
143
171
  { name: "Category" },
144
172
  { name: "Frequency" },
145
173
  { name: "DateBased" },
174
+ { name: "FixedOffset" },
146
175
  { name: "FixedDate" },
147
176
  { name: "MonthOffset" },
148
177
  { name: "Jurisdiction" },