@voplus/morpho-csp 10.0.29 → 10.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/data/filing-record/interfaces.d.ts +13 -0
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.css +6 -0
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +29 -18
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.css +19 -0
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js +17 -9
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js +14 -6
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.css +6 -0
- package/es/modules/corporate/share-class/components/ShareClassShareholders/index.d.ts +0 -1
- package/es/modules/corporate/share-class/components/ShareClassShareholders/index.js +26 -30
- package/es/modules/corporate/share-class/components/ShareClassShareholders/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.js +19 -5
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/corporate/company/identity/components/IdentityItem/index.d.ts +0 -7
- package/es/modules/corporate/company/identity/components/IdentityItem/index.js +0 -8
- package/es/modules/corporate/company/identity/components/IdentityItem/index.js.map +0 -1
- package/es/modules/corporate/share-class/components/ShareClassShareholders/index.css +0 -34
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
2
|
import { ITag, INode } from "@voplus/morpho-document-core";
|
|
3
|
+
/**
|
|
4
|
+
* Reminder health for a filing, as reported by the backend under the `reminder` include.
|
|
5
|
+
* PascalCase string matching the backend contract, exactly one of these values.
|
|
6
|
+
*/
|
|
7
|
+
export type FilingReminderStatusKind = "None" | "Active" | "Paused" | "NeedsAttention";
|
|
3
8
|
export interface IFilingRecord extends ILoadable, INode {
|
|
4
9
|
id: string;
|
|
5
10
|
name: string;
|
|
@@ -20,4 +25,12 @@ export interface IFilingRecord extends ILoadable, INode {
|
|
|
20
25
|
};
|
|
21
26
|
/** Id of the filing record's reminder action plan, when one has been attached. */
|
|
22
27
|
actionPlanId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Reminder health, present only when the filing was loaded with the `reminder` include.
|
|
30
|
+
* `reasons` is populated only when `kind === "NeedsAttention"`.
|
|
31
|
+
*/
|
|
32
|
+
reminderStatus?: {
|
|
33
|
+
kind: FilingReminderStatusKind;
|
|
34
|
+
reasons: string[];
|
|
35
|
+
};
|
|
23
36
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
4
|
-
import { Skeleton, Tag } from "antd";
|
|
4
|
+
import { Skeleton, Tag, Tooltip } from "antd";
|
|
5
5
|
import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
|
|
6
6
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon, faExclamationTriangleRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
7
8
|
import { useFilingRecord, useFilingRecordStore } from "../../../../../data/filing-record";
|
|
8
9
|
import ListItemController from "@voplus/morpho-document-core/es/controls/ListItemController";
|
|
9
10
|
import TagView from "@voplus/morpho-org/es/modules/tag/TagView";
|
|
@@ -16,25 +17,35 @@ import "./index.css";
|
|
|
16
17
|
import dayjs from "dayjs";
|
|
17
18
|
const FilingRecordItem = (props) => {
|
|
18
19
|
const { id } = props;
|
|
19
|
-
const filing = useFilingRecord(id, {
|
|
20
|
+
const filing = useFilingRecord(id, {
|
|
21
|
+
reload: (i) => !i.tags,
|
|
22
|
+
includes: "tags,reminder",
|
|
23
|
+
});
|
|
20
24
|
const store = useFilingRecordStore();
|
|
21
25
|
const [hover, setHover] = useState(false);
|
|
22
|
-
return observe(() =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
React.createElement(
|
|
28
|
-
React.createElement(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
return observe(() => {
|
|
27
|
+
var _a;
|
|
28
|
+
return (React.createElement(Skeleton, { active: true, loading: !filing.loaded },
|
|
29
|
+
React.createElement(ListItemController, { className: classnames("filing-item"), onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(FilingRecordPropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(FilingRecordQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
30
|
+
React.createElement(ColumnItem, { className: "filing-column-item" },
|
|
31
|
+
React.createElement(ColumnItemCol, { span: 8 },
|
|
32
|
+
React.createElement("div", { className: "filing-item-name" },
|
|
33
|
+
`${filing.name}`,
|
|
34
|
+
((_a = filing.reminderStatus) === null || _a === void 0 ? void 0 : _a.kind) === "NeedsAttention" && (React.createElement(Tooltip, { title: `Reminder needs attention: ${filing.reminderStatus.reasons.join("; ")}` },
|
|
35
|
+
React.createElement("span", { "data-testid": "reminder-needs-attention", className: "filing-item-reminder-warning text-warning" },
|
|
36
|
+
React.createElement(FAIcon, { icon: faExclamationTriangleRegular }))))),
|
|
37
|
+
React.createElement("div", { className: "filing-item-data-info-gray" },
|
|
38
|
+
React.createElement(UTCShortDate, { className: "text-xs text-slate-500", value: filing.dueDate }))),
|
|
39
|
+
React.createElement(ColumnItemCol, { span: 4, label: "Filing" }, filing.exempted ? (React.createElement(Tag, { color: "green" }, "exempted")) : filing.fileDate ? (React.createElement(UTCShortDate, { value: filing.fileDate })) : getDiffDay(filing.dueDate) > 0 ? (React.createElement(Tag, { color: "red" }, `due ${getDiffDay(filing.dueDate)} days`)) : null),
|
|
40
|
+
React.createElement(ColumnItemCol, { span: 4, label: "File By" }, filing.fileBy && React.createElement(React.Fragment, null, filing.fileBy.name)),
|
|
41
|
+
React.createElement(ColumnItemCol, { span: 4, label: "Tags" },
|
|
42
|
+
React.createElement(TagView, { id: id, tags: filing.tags, items: store.items })),
|
|
43
|
+
React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
|
|
44
|
+
React.createElement("div", { className: classnames("filing-item-tool", { show: hover }) },
|
|
45
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
46
|
+
React.createElement(Open, { url: `/filings/${id}` }),
|
|
47
|
+
React.createElement(FilingRecordMenu, { id: id, closeAside: true }))))))));
|
|
48
|
+
});
|
|
38
49
|
function getDiffDay(date) {
|
|
39
50
|
// 计算两个日期之间的差值
|
|
40
51
|
let totalDays, diffDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C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C,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAC5D,OAAO;QACP,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QACnE,qBAAqB;QACrB,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;QAC5B,OAAO;QACP,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;QACtD,QAAQ;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -24,4 +24,23 @@
|
|
|
24
24
|
.properties-value {
|
|
25
25
|
color: #374151;
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
/* spec:2925 — needs-attention warning banner for a filing's reminder */
|
|
29
|
+
.filing-reminder-warning {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
margin: 12px 0;
|
|
34
|
+
padding: 8px 12px;
|
|
35
|
+
border: 1px solid #ffe58f;
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
background: #fffbe6;
|
|
38
|
+
font-size: 13px;
|
|
39
|
+
line-height: 1.4;
|
|
40
|
+
|
|
41
|
+
.filing-reminder-warning-icon {
|
|
42
|
+
margin-top: 2px;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
27
46
|
}
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
3
3
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useFilingRecord, useFilingRecordStore } from "../../../../../data/filing-record";
|
|
5
|
-
import { FontAwesomeIcon as FAIcon, faEllipsisVerticalRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon, faEllipsisVerticalRegular, faExclamationTriangleRegular, } from "@voplus/morpho-ui/es/faIcons";
|
|
6
6
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
7
7
|
import { Switch } from "antd";
|
|
8
8
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
@@ -31,18 +31,26 @@ const FilingProperties = ({ verificationVisible = true, filingTitle = "FILING PR
|
|
|
31
31
|
const { user } = useApplicationContext();
|
|
32
32
|
const filing = useFilingRecord(id, {
|
|
33
33
|
reload: (i) => !i.year || !i.p,
|
|
34
|
-
includes: "filing-year,permissions",
|
|
34
|
+
includes: "filing-year,permissions,reminder",
|
|
35
35
|
});
|
|
36
36
|
const store = useFilingRecordStore();
|
|
37
37
|
// spec:1517 — CSP: Filing editable properties (Name, Due Date, File Date, File By, Exempted, Tags) are gated by edit permission on the filing
|
|
38
38
|
const filterPro = filingProperties === null || filingProperties === void 0 ? void 0 : filingProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
39
|
-
return observe(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
React.createElement(
|
|
39
|
+
return observe(() => {
|
|
40
|
+
var _a;
|
|
41
|
+
return (React.createElement("div", { className: "filing-properties properties-list" },
|
|
42
|
+
headerVisible && (React.createElement("div", { className: "filing-header" },
|
|
43
|
+
React.createElement("div", { className: "title" }, filing.name),
|
|
44
|
+
React.createElement(FilingRecordMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalRegular }) }))),
|
|
45
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
46
|
+
((_a = filing.reminderStatus) === null || _a === void 0 ? void 0 : _a.kind) === "NeedsAttention" && (React.createElement("div", { "data-testid": "reminder-needs-attention-warning", className: "filing-reminder-warning text-warning" },
|
|
47
|
+
React.createElement(FAIcon, { icon: faExclamationTriangleRegular, className: "filing-reminder-warning-icon" }),
|
|
48
|
+
React.createElement("span", { className: "filing-reminder-warning-text" },
|
|
49
|
+
"Reminder needs attention: ",
|
|
50
|
+
filing.reminderStatus.reasons.join("; ")))),
|
|
51
|
+
verificationVisible && (React.createElement(VerificationInformation, { id: id, editable: user.can("edit", filing.p) })),
|
|
52
|
+
React.createElement(PropertiesSection, { title: filingTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, i.name === "Tags" ? (React.createElement(TagProp, { id: id, tags: filing.tags, editable: user.can("edit", filing.p, { asset: "Tags" }), items: store.items })) : (renderProp(i))))) }))));
|
|
53
|
+
});
|
|
46
54
|
function renderProp(item) {
|
|
47
55
|
var _a;
|
|
48
56
|
switch (item.name) {
|
|
@@ -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,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,
|
|
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,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EACN,eAAe,IAAI,MAAM,EACzB,yBAAyB,EACzB,4BAA4B,GA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AA,MAAM,CAAC,MAAM,0CAAE,EAAE,EAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAClD,kBAAkB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EACpC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EACnC,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;4BACH,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;gCACd,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;gCACjD,KAAK,EAAE,SAAS;6BAChB,CAAC,CAAC;wBACJ,CAAC,GACA,CACI,CACP,CACD,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;QACT,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { faFolderSolid, faCalendarCheckSolid, faUserSolid, faBarsProgressSolid, faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
1
|
+
import { faFolderSolid, faCalendarCheckSolid, faUserSolid, faBarsProgressSolid, faEllipsisVerticalSolid, faExclamationTriangleRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
2
2
|
import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
|
|
3
3
|
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
4
4
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
5
|
+
import { Tooltip } from "antd";
|
|
5
6
|
import { observe } from "@voplus/morpho-ui";
|
|
6
7
|
import TagView from "@voplus/morpho-org/es/modules/tag/TagView/TagView2";
|
|
7
8
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
@@ -51,13 +52,20 @@ const TableCell = (props) => {
|
|
|
51
52
|
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
52
53
|
const store = useFilingRecordStore();
|
|
53
54
|
return observe(() => {
|
|
54
|
-
var _a, _b, _c;
|
|
55
|
-
const filing = useFilingRecord(record === null || record === void 0 ? void 0 : record.id, {
|
|
55
|
+
var _a, _b, _c, _d;
|
|
56
|
+
const filing = useFilingRecord(record === null || record === void 0 ? void 0 : record.id, {
|
|
57
|
+
reload: (i) => !i.tags,
|
|
58
|
+
includes: "tags,reminder",
|
|
59
|
+
});
|
|
56
60
|
return (React.createElement("td", { ...restProps }, dataIndex === "filing" ? (React.createElement("div", { className: "officer-table-item-filing" },
|
|
57
|
-
React.createElement("div", null,
|
|
58
|
-
|
|
61
|
+
React.createElement("div", null,
|
|
62
|
+
filing.name,
|
|
63
|
+
((_a = filing.reminderStatus) === null || _a === void 0 ? void 0 : _a.kind) === "NeedsAttention" && (React.createElement(Tooltip, { title: `Reminder needs attention: ${filing.reminderStatus.reasons.join("; ")}` },
|
|
64
|
+
React.createElement("span", { "data-testid": "reminder-needs-attention", className: "filing-item-reminder-warning text-warning" },
|
|
65
|
+
React.createElement(FAIcon, { icon: faExclamationTriangleRegular }))))),
|
|
66
|
+
React.createElement(UTCShortDate, { value: filing.dueDate }))) : dataIndex === "due" ? (React.createElement("div", { className: "officer-table-item-due" }, filing.exempted ? (React.createElement("span", { className: "exempted" }, "exempted")) : filing.fileDate ? (React.createElement(UTCShortDate, { value: filing.fileDate })) : getDiffDay(filing.dueDate) > 0 ? (React.createElement("span", { className: "due-diffday" }, `Due ${getDiffDay(filing.dueDate)} days`)) : null)) : dataIndex === "by" ? (((_b = filing.fileBy) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement("div", { className: "officer-table-item-by" },
|
|
59
67
|
React.createElement(UnitAvatar, { unit: filing.fileBy }),
|
|
60
|
-
React.createElement(UnitNameNoteAlert, { id: (
|
|
68
|
+
React.createElement(UnitNameNoteAlert, { id: (_c = filing.fileBy) === null || _c === void 0 ? void 0 : _c.id, name: (_d = filing.fileBy) === null || _d === void 0 ? void 0 : _d.name }))) : null) : dataIndex === "tags" ? (React.createElement(TagView, { id: record.id, tags: filing.tags, items: store.items, maxCount: 1 })) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, showMenu: false },
|
|
61
69
|
React.createElement(Open, { url: `/filings/${record.id}` }),
|
|
62
70
|
React.createElement(FilingRecordMenu, { id: record.id, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }) }))) : (children)));
|
|
63
71
|
});
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,gBAAgB,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,aAAa,GAAI;sBAC7B,CACH;QACD,SAAS,EAAE,QAAQ;QACnB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,oBAAoB,GAAI;mBACpC,CACH;QACD,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;uBAC3B,CACH;QACD,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI;oBACnC,CACH;QACD,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,GAAG;QACV,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,MAAM;KAChB;CACD,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAAU,EAAE,EAAE;IAChC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IACtE,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.tsx"],"names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AY,MAAM,CAAC,EAAE,EAAE,GAAI;YACtC,oBAAC,gBAAgB,IAChB,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,UAAU,EAAE,IAAI,EAChB,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,uBAAuB,GAAI,GAC9C,CACO,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAC;IACH,CAAC,CAAC,CAAC;AAEJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -6,8 +6,7 @@ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAv
|
|
|
6
6
|
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
7
7
|
import Tip from "@voplus/morpho-ui/es/controls/Tit";
|
|
8
8
|
import CompanyMemberQuickView from "../../../company/member-register/components/CompanyMemberQuickView";
|
|
9
|
-
|
|
10
|
-
const COLUMN_GRID = "minmax(0,1fr) 88px 108px 92px 92px";
|
|
9
|
+
const COLUMN_GRID = "minmax(0,1fr) 110px 125px 110px 92px";
|
|
11
10
|
const ShareClassShareholders = (props) => {
|
|
12
11
|
const { data, loading, error } = props;
|
|
13
12
|
const [view, setView] = useState("confirmed");
|
|
@@ -53,15 +52,15 @@ const ShareClassShareholders = (props) => {
|
|
|
53
52
|
if (error) {
|
|
54
53
|
return React.createElement(Alert, { type: "error", message: error, showIcon: true });
|
|
55
54
|
}
|
|
56
|
-
return observe(() => (React.createElement("div",
|
|
55
|
+
return observe(() => (React.createElement("div", null,
|
|
57
56
|
React.createElement("div", { className: "px-5 py-4 flex items-center gap-3" },
|
|
58
|
-
React.createElement("div", { className: "flex-1 flex items-center gap-2.5 border border-
|
|
57
|
+
React.createElement("div", { className: "flex-1 flex items-center gap-2.5 border border-border rounded-base px-3.5 h-11" },
|
|
59
58
|
React.createElement(FAIcon, { icon: faMagnifyingGlassRegular, className: "text-gray-400" }),
|
|
60
|
-
React.createElement("input", { type: "text", placeholder: "Search in shareholders \u2026", className: "flex-1 border-none outline-none text-
|
|
59
|
+
React.createElement("input", { type: "text", placeholder: "Search in shareholders \u2026", className: "flex-1 border-none outline-none text-sm text-font-grey font-semibold placeholder-gray-400 bg-transparent", value: searchText, onChange: (e) => setSearchText(e.target.value) })),
|
|
61
60
|
React.createElement("div", { className: "relative", ref: statusRef },
|
|
62
61
|
React.createElement("button", { type: "button", onClick: () => setStatusOpen(!statusOpen), className: "flex items-center gap-2 border border-gray-200 rounded-lg h-11 px-3.5 text-[13px] font-medium text-gray-700 whitespace-nowrap cursor-pointer" },
|
|
63
62
|
React.createElement("span", { className: "w-[7px] h-[7px] rounded-full shrink-0", style: { background: view === "confirmed" ? "#22A06B" : "#9CA3AF" } }),
|
|
64
|
-
React.createElement("span",
|
|
63
|
+
React.createElement("span", { className: view === "confirmed" ? "font-bold" : "" }, view === "confirmed" ? "Confirmed" : "All"),
|
|
65
64
|
React.createElement(FAIcon, { icon: faChevronDownRegular, className: "text-gray-400 w-3.5 h-3.5" })),
|
|
66
65
|
statusOpen && (React.createElement("div", { className: "absolute right-0 mt-1.5 w-40 bg-white border border-gray-200 rounded-lg shadow-lg py-1 z-20" },
|
|
67
66
|
React.createElement("button", { type: "button", onClick: () => {
|
|
@@ -79,50 +78,47 @@ const ShareClassShareholders = (props) => {
|
|
|
79
78
|
React.createElement("span", { className: "flex-1" }, "Confirmed"),
|
|
80
79
|
view === "confirmed" && (React.createElement(FAIcon, { icon: faCheckRegular, className: "text-[#265DD0] w-3.5 h-3.5" }))))))),
|
|
81
80
|
React.createElement(Spin, { spinning: loading }, currentData.length === 0 && !loading ? (React.createElement("div", { "data-testid": "empty-placeholder", className: "py-8" },
|
|
82
|
-
React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, description: "No shareholders in this class" }))) : (React.createElement("div", { className: "
|
|
83
|
-
React.createElement("div", { className: "table-
|
|
84
|
-
React.createElement("span", { className: "text-
|
|
85
|
-
React.createElement("span", { className: "text-
|
|
81
|
+
React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, description: "No shareholders in this class" }))) : (React.createElement("div", { className: "border-t border-b border-gray-100" },
|
|
82
|
+
React.createElement("div", { className: "grid items-center h-14 px-5 bg-bg-table border-b border-gray-100", style: { gridTemplateColumns: COLUMN_GRID } },
|
|
83
|
+
React.createElement("span", { className: "text-xs font-bold text-font-primary tracking-wide whitespace-nowrap" }, "SHAREHOLDERS INFO"),
|
|
84
|
+
React.createElement("span", { className: "text-xs font-bold text-font-primary tracking-wide whitespace-nowrap flex items-center" },
|
|
86
85
|
"SHARES",
|
|
87
|
-
" ",
|
|
88
86
|
React.createElement(Tip, { content: "Total number of shares held by the shareholder in the current share class." })),
|
|
89
|
-
React.createElement("span", { className: "text-
|
|
87
|
+
React.createElement("span", { className: "text-xs font-bold text-font-primary tracking-wide whitespace-nowrap flex items-center" },
|
|
90
88
|
"OTHER CLASS",
|
|
91
|
-
" ",
|
|
92
89
|
React.createElement(Tip, { content: "Total number of shares held by the shareholder across all other share classes in the company." })),
|
|
93
|
-
React.createElement("span", { className: "text-
|
|
90
|
+
React.createElement("span", { className: "text-xs font-bold text-font-primary tracking-wide whitespace-nowrap flex items-center" },
|
|
94
91
|
"CLASS (%)",
|
|
95
|
-
" ",
|
|
96
92
|
React.createElement(Tip, { content: "The percentage of shares held by the shareholder within this specific share class (Shareholder's Class Shares / Total Shares in Class)." })),
|
|
97
|
-
React.createElement("span", { className: "text-
|
|
93
|
+
React.createElement("span", { className: "text-xs font-bold text-font-primary tracking-wide whitespace-nowrap flex items-center" },
|
|
98
94
|
"TOTAL (%)",
|
|
99
|
-
" ",
|
|
100
95
|
React.createElement(Tip, { content: "The shareholder's total ownership percentage across the entire company (Total Shares Across All Classes / Company Total Issued Shares)." }))),
|
|
101
96
|
currentData.map((entry) => {
|
|
102
97
|
var _a;
|
|
103
|
-
return (React.createElement("div", { key: entry.shareholder.id, className: "
|
|
98
|
+
return (React.createElement("div", { key: entry.shareholder.id, className: "grid items-center py-3.5 px-5 border-b border-gray-100", style: { gridTemplateColumns: COLUMN_GRID } },
|
|
104
99
|
React.createElement("div", { className: "flex items-center gap-3 min-w-0" },
|
|
105
100
|
React.createElement(UnitAvatar, { unit: entry.shareholder.unit, className: "w-9! h-9! rounded-md! text-[13px]! text-font-secondary! bg-blue-profile!" }),
|
|
106
101
|
React.createElement("div", { className: "min-w-0 cursor-pointer", onClick: () => setQuickViewId(entry.shareholder.id) },
|
|
107
|
-
((_a = entry.shareholder.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (React.createElement("p", { className: "text-
|
|
108
|
-
|
|
102
|
+
((_a = entry.shareholder.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (React.createElement("p", { className: "text-sm font-bold text-font-secondary underline truncate" }, entry.shareholder.identity.fullName)) : entry.shareholder.unit ? (React.createElement("p", { className: "text-sm font-bold text-font-secondary underline truncate" },
|
|
103
|
+
React.createElement(UnitNameNoteAlert, { id: entry.shareholder.unit.id, name: entry.shareholder.unit.name }))) : null,
|
|
104
|
+
entry.shareholder.email && (React.createElement("p", { className: "text-xs text-font-grey font-semibold flex items-center gap-1.5 mt-0.5 truncate" },
|
|
109
105
|
React.createElement(FAIcon, { icon: faEnvelopeSolid, className: "w-3.5 h-3.5 shrink-0" }),
|
|
110
106
|
entry.shareholder.email)))),
|
|
111
|
-
React.createElement("span", { className: "text-
|
|
112
|
-
React.createElement("span", { className: "text-
|
|
113
|
-
React.createElement("span", { className: "text-
|
|
107
|
+
React.createElement("span", { className: "text-sm font-bold text-font-primary" }, entry.classShares.toLocaleString()),
|
|
108
|
+
React.createElement("span", { className: "text-sm font-bold text-font-grey" }, entry.otherClasses.toLocaleString()),
|
|
109
|
+
React.createElement("span", { className: "text-sm font-bold text-font-secondary" },
|
|
114
110
|
entry.classPercentage,
|
|
115
111
|
"%"),
|
|
116
|
-
React.createElement("span", { className: "text-
|
|
112
|
+
React.createElement("span", { className: "text-sm font-bold text-font-primary" },
|
|
117
113
|
entry.totalPercentage,
|
|
118
114
|
"%")));
|
|
119
115
|
}),
|
|
120
|
-
totals && (React.createElement("div", { className: "
|
|
121
|
-
React.createElement("span", { className: "text-
|
|
122
|
-
React.createElement("span", { className: "text-
|
|
123
|
-
React.createElement("span", { className: "text-
|
|
124
|
-
React.createElement("span", { className: "text-
|
|
125
|
-
React.createElement("span", { className: "text-
|
|
116
|
+
totals && (React.createElement("div", { className: "grid items-center h-[75px] px-5 bg-bg-blue", style: { gridTemplateColumns: COLUMN_GRID } },
|
|
117
|
+
React.createElement("span", { className: "text-sm font-bold text-font-primary" }, "TOTAL"),
|
|
118
|
+
React.createElement("span", { className: "text-sm font-bold text-font-primary" }, totals.classShares.toLocaleString()),
|
|
119
|
+
React.createElement("span", { className: "text-sm font-bold text-font-grey" }, totals.otherClasses.toLocaleString()),
|
|
120
|
+
React.createElement("span", { className: "text-sm font-bold text-font-secondary" }, "100%"),
|
|
121
|
+
React.createElement("span", { className: "text-sm font-bold text-font-primary" },
|
|
126
122
|
totals.totalPercentage.toFixed(1),
|
|
127
123
|
"%")))))),
|
|
128
124
|
quickViewId && (React.createElement(CompanyMemberQuickView, { id: quickViewId, visible: true, onCancel: () => setQuickViewId(null) })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-class/components/ShareClassShareholders/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EACN,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,GAAG,MAAM,mCAAmC,CAAC;AACpD,OAAO,sBAAsB,MAAM,oEAAoE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-class/components/ShareClassShareholders/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EACN,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,GAAG,MAAM,mCAAmC,CAAC;AACpD,OAAO,sBAAsB,MAAM,oEAAoE,CAAC;AAGxG,MAAM,WAAW,GAAG,sCAAsC,CAAC;AAE3D,MAAM,sBAAsB,GAAG,CAAC,KAI/B,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAsB,WAAW,CAAC,CAAC;IACnE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,CAAC,WAAW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K,CAAC,WAAW,CAAC,cAAc,EAAE,CAC7B;oBACP,8BAAM,SAAS,EAAC,mCAAmC,IACjD,KAAK,CAAC,YAAY,CAAC,cAAc,EAAE,CAC9B;oBACP,8BAAM,SAAS,EAAC,uCAAuC;wBACrD,KAAK,CAAC,eAAe;4BAChB;oBACP,8BAAM,SAAS,EAAC,qCAAqC;wBACnD,KAAK,CAAC,eAAe;4BAChB,CACF,CACN,CAAA;aAAA,CAAC;YAGD,MAAM,IAAI,CACV,6BACC,SAAS,EAAC,4CAA4C,EACtD,KAAK,EAAE,EAAE,mBAAmB,EAAE,WAAW,EAAE;gBAE3C,8BAAM,SAAS,EAAC,qCAAqC,YAAa;gBAClE,8BAAM,SAAS,EAAC,qCAAqC,IACnD,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,CAC9B;gBACP,8BAAM,SAAS,EAAC,mCAAmC,IACjD,MAAM,CAAC,YAAY,CAAC,cAAc,EAAE,CAC/B;gBACP,8BAAM,SAAS,EAAC,uCAAuC,WAAY;gBACnE,8BAAM,SAAS,EAAC,qCAAqC;oBACnD,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;wBAC5B,CACF,CACN,CACI,CACN,CACK;QACN,WAAW,IAAI,CACf,oBAAC,sBAAsB,IACtB,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,GACnC,CACF,CACI,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { useVirtualAddressStore, useVirtualAddress, } from "../../../../../../data/virtual-address";
|
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
-
import React, { useState } from "react";
|
|
4
|
+
import React, { useState, useMemo } from "react";
|
|
5
5
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
6
6
|
import { Empty } from "antd";
|
|
7
7
|
import ItemFrame from "@voplus/morpho-ui/es/controls/ItemFrame";
|
|
8
8
|
import ReceipentsItem from "../ReceipentsItem";
|
|
9
|
-
import
|
|
9
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
10
10
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
11
11
|
import { observe } from "@voplus/morpho-ui";
|
|
12
|
+
import { faMagnifyingGlassRegular, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
12
13
|
// spec:1417 — CSP: Recipients tab shows an empty-state placeholder when there are none
|
|
13
14
|
// spec:1418 — CSP: Selecting a recipient row highlights it with a right-side blue border
|
|
14
15
|
// spec:1419 — CSP: Add Recipient opens a multi-select dialog and saves all picks in one edit
|
|
@@ -18,13 +19,26 @@ const ReceipentsList = (props) => {
|
|
|
18
19
|
const [addAble, setAddAble] = useState(false);
|
|
19
20
|
const virtualAddress = useVirtualAddress(id);
|
|
20
21
|
const [activeId, setActiveId] = useState("");
|
|
22
|
+
const [searchText, setSearchText] = useState("");
|
|
21
23
|
const list = useCreateListDataState({}, [id]);
|
|
24
|
+
const filteredReceipents = useMemo(() => {
|
|
25
|
+
if (!searchText.trim())
|
|
26
|
+
return virtualAddress.receipents;
|
|
27
|
+
const q = searchText.toLowerCase();
|
|
28
|
+
return virtualAddress.receipents.filter((item) => {
|
|
29
|
+
var _a;
|
|
30
|
+
const name = ((_a = item.receipent) === null || _a === void 0 ? void 0 : _a.name) || "";
|
|
31
|
+
return name.toLowerCase().includes(q);
|
|
32
|
+
});
|
|
33
|
+
}, [virtualAddress.receipents, searchText]);
|
|
22
34
|
return observe(() => {
|
|
23
|
-
var _a
|
|
35
|
+
var _a;
|
|
24
36
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
25
37
|
React.createElement("div", { className: "receipents-list-view" },
|
|
26
|
-
React.createElement(
|
|
27
|
-
|
|
38
|
+
React.createElement(ListHeaderTool, { preExtra: () => (React.createElement("div", { className: "flex items-center gap-2.5 border border-border rounded-base px-3.5 h-[42px] flex-1" },
|
|
39
|
+
React.createElement(FAIcon, { icon: faMagnifyingGlassRegular, className: "text-gray-400" }),
|
|
40
|
+
React.createElement("input", { type: "text", placeholder: "Search in recipients \u2026", className: "flex-1 border-none outline-none text-sm text-font-grey font-semibold placeholder-gray-400 bg-transparent", value: searchText, onChange: (e) => setSearchText(e.target.value) }))), searchHeader: false, sortable: false, onAdd: () => setAddAble(!addAble) }),
|
|
41
|
+
React.createElement(Scrollbars, { autoHide: true }, ((_a = virtualAddress.receipents) === null || _a === void 0 ? void 0 : _a.length) ? (filteredReceipents === null || filteredReceipents === void 0 ? void 0 : filteredReceipents.map((item, index) => (React.createElement(ItemFrame, { key: item.id, active: activeId === item.id, hoverEffect: "none", activeEffect: "border", borderProps: { location: "right", color: "#1890ff ", size: "2px" }, onClick: () => setActiveId(item.id) },
|
|
28
42
|
React.createElement(ReceipentsItem, { key: item.id, virtualAddressId: id, data: item, index: index }))))) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE }))),
|
|
29
43
|
addAble && (React.createElement(UnitsSelectDialog, { onCancel: () => setAddAble(false), onSelect: (contacts) => {
|
|
30
44
|
const ids = [];
|
package/es/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAEN,sBAAsB,EACtB,iBAAiB,GACjB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/virtual-address/receipents/components/ReceipentsList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAEN,sBAAsB,EACtB,iBAAiB,GACjB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAMnG,uFAAuF;AACvF,yFAAyF;AACzF,6FAA6F;AAC7F,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IACrD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,sBAAsB,EAAE,CAAC;IACvC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEjD,MAAM,IAAI,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AC,KAAK,CAAC,CAAC;oBACnB,CAAC,GACA,CACF,CACI,CACoB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Import { IdentityItem } from "@voplus/morpho-compliance" instead. This
|
|
3
|
-
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
-
* future release.
|
|
5
|
-
*/
|
|
6
|
-
export * from "@voplus/morpho-compliance/es/components/IdentityItem";
|
|
7
|
-
export { default } from "@voplus/morpho-compliance/es/components/IdentityItem";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Import { IdentityItem } from "@voplus/morpho-compliance" instead. This
|
|
3
|
-
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
-
* future release.
|
|
5
|
-
*/
|
|
6
|
-
export * from "@voplus/morpho-compliance/es/components/IdentityItem";
|
|
7
|
-
export { default } from "@voplus/morpho-compliance/es/components/IdentityItem";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentityItem/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,sDAAsD,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAsD,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* ===== Shareholders Grid Table ===== */
|
|
2
|
-
|
|
3
|
-
.shareholders-grid-table {
|
|
4
|
-
border-top: 1px solid #f3f4f6;
|
|
5
|
-
border-bottom: 1px solid #f3f4f6;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/* Header Row */
|
|
9
|
-
.table-header {
|
|
10
|
-
display: grid;
|
|
11
|
-
align-items: center;
|
|
12
|
-
height: 3.5rem;
|
|
13
|
-
padding: 0 1.25rem;
|
|
14
|
-
background: #f9f9f9;
|
|
15
|
-
border-bottom: 1px solid #f3f4f6;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Data Row */
|
|
19
|
-
.table-row {
|
|
20
|
-
display: grid;
|
|
21
|
-
align-items: center;
|
|
22
|
-
padding: 0.875rem 1.25rem;
|
|
23
|
-
border-bottom: 1px solid #f3f4f6;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* Avatar */
|
|
27
|
-
/* Total Row */
|
|
28
|
-
.table-total {
|
|
29
|
-
display: grid;
|
|
30
|
-
align-items: center;
|
|
31
|
-
height: 4.6875rem;
|
|
32
|
-
padding: 0 1.25rem;
|
|
33
|
-
background: #f9fbff;
|
|
34
|
-
}
|