@voplus/morpho-csp 6.0.191 → 6.0.192
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/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.d.ts +1 -2
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +4 -3
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js +4 -4
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js.map +1 -1
- package/es/modules/corporate/clda/controls/CLDAMenu/index.js +6 -2
- package/es/modules/corporate/clda/controls/CLDAMenu/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +10 -4
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.d.ts +1 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js +3 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +10 -4
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +10 -4
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +10 -4
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/index.d.ts +1 -0
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/index.js +4 -2
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/index.js.map +1 -1
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/items/NotifyFiling.js +4 -2
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/items/NotifyFiling.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.d.ts +1 -0
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js +6 -1
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeMenu/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +10 -3
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.d.ts +1 -0
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.js +4 -2
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.js +12 -3
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.less +14 -0
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js +14 -4
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +14 -6
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js +4 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js +4 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RevokePhysical.js +10 -4
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RevokePhysical.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js +7 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js +4 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js +4 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +12 -3
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +18 -0
- package/es/modules/corporate/share-class/controls/ShareClassMenu/index.d.ts +1 -0
- package/es/modules/corporate/share-class/controls/ShareClassMenu/index.js +3 -1
- package/es/modules/corporate/share-class/controls/ShareClassMenu/index.js.map +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js +12 -3
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.d.ts +1 -0
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js +3 -1
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js +13 -4
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.d.ts +1 -0
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.js +3 -1
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js +13 -4
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js +12 -5
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.js +12 -5
- package/es/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.less +18 -0
- package/package.json +1 -1
|
@@ -5,14 +5,16 @@ import { Delete, Access } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
|
5
5
|
import { useVirtualAddressStore, useVirtualAddress } from "../../../../../data/virtual-address";
|
|
6
6
|
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
7
7
|
const VirtualAddressMenu = (props) => {
|
|
8
|
+
var _a;
|
|
8
9
|
const { user } = useApplicationContext();
|
|
10
|
+
const blankMenu = (_a = props.blankMenu) !== null && _a !== void 0 ? _a : [];
|
|
9
11
|
const va = useVirtualAddress(props.id, {
|
|
10
12
|
reload: (i) => !user.info.guest && !i.p,
|
|
11
13
|
includes: "permissions",
|
|
12
14
|
});
|
|
13
15
|
const store = useVirtualAddressStore();
|
|
14
16
|
return observe(() => (React.createElement(NodeMenu, { ...props, store: store, menus: React.createElement(React.Fragment, null,
|
|
15
|
-
React.createElement(Access, { disabled: !user.can("view", va.p, { asset: "Access" }) }),
|
|
17
|
+
!blankMenu.includes("Access") && (React.createElement(Access, { disabled: !user.can("view", va.p, { asset: "Access" }) })),
|
|
16
18
|
React.createElement(Delete, { closeAside: true })) })));
|
|
17
19
|
};
|
|
18
20
|
export default VirtualAddressMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,KAK3B,EAAE,EAAE;;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,MAAA,KAAK,CAAC,SAAS,mCAAI,EAAE,CAAC;IACxC,MAAM,EAAE,GAAG,iBAAiB,CAAC,KAAK,CAAC,EAAE,EAAE;QACtC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,QAAQ,EAAE,aAAa;KACvB,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,sBAAsB,EAAE,CAAC;IAEvC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,OACJ,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,KAAK,EACJ;YACE,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CACjC,oBAAC,MAAM,IAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAI,CAClE;YACD,oBAAC,MAAM,IAAC,UAAU,SAAG,CACnB,GAEH,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useMemo } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useParams } from "react-router-dom";
|
|
4
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
|
+
import { Access } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
6
|
+
import { NodeMenuContext, NodeMenuState } from "@voplus/morpho-org/es/controls/NodeMenu/state";
|
|
4
7
|
import VirtualAddressProperties from "../../components/VirtualAddressProperties";
|
|
5
8
|
import VirtualAddressTabs from "../../components/VirtualAddressTabs";
|
|
6
9
|
import { faEllipsisVertical, faAddressCard } from "@fortawesome/pro-solid-svg-icons";
|
|
7
10
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
-
import ToolBar from "@voplus/morpho-
|
|
11
|
+
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
12
|
+
import { Space } from "antd";
|
|
9
13
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
10
14
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
11
15
|
import VirtualAddressMenu from "../../controls/VirtualAddressMenu";
|
|
@@ -14,9 +18,14 @@ import styles from "./index.less";
|
|
|
14
18
|
/** The VirtualAddress Page component with router parameters support. */
|
|
15
19
|
const VirtualAddressDefaultView = () => {
|
|
16
20
|
const { id } = useParams();
|
|
21
|
+
const { user } = useApplicationContext();
|
|
22
|
+
const menuContext = useMemo(() => new NodeMenuState(id), [id]);
|
|
23
|
+
const [packUp, setPackUp] = useState(false);
|
|
17
24
|
const virtualAddress = useVirtualAddress(id !== null && id !== void 0 ? id : "", { reload: true });
|
|
18
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["virtualAddress-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faAddressCard }), title: virtualAddress.name, description: "Effortlessly manage and access your virtual addresses.", rightExtra: React.createElement(
|
|
19
|
-
React.createElement(
|
|
25
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["virtualAddress-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faAddressCard }), title: virtualAddress.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Effortlessly manage and access your virtual addresses.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
26
|
+
React.createElement(Space, { className: "menu-buttons" },
|
|
27
|
+
React.createElement(Access, { disabled: !user.can("view", virtualAddress.p, { asset: "Access" }) }))), toolMenu: React.createElement(ToolBar, { id: id, more: false },
|
|
28
|
+
React.createElement(VirtualAddressMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), blankMenu: packUp ? [] : ["Access"] })) }), properties: React.createElement(VirtualAddressProperties, { id: id }) },
|
|
20
29
|
React.createElement(VirtualAddressTabs, { id: id }))));
|
|
21
30
|
};
|
|
22
31
|
export default VirtualAddressDefaultView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,wBAAwB,MAAM,2CAA2C,CAAC;AACjF,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,wEAAwE;AACxE,MAAM,yBAAyB,GAAG,GAAG,EAAE;IACtC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB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AC,QAAQ,CAAC,GAClC,CACO,GAEV,EAEH,UAAU,EAAE,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAG,GAAI;QAEjD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAG,GAAI,CACZ,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -5,6 +5,8 @@ import React from "react";
|
|
|
5
5
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
6
6
|
import { useVirtualAddressMailStore, useVirtualAddressMail, } from "../../../../../data/virtual-address-mail";
|
|
7
7
|
const VirtualAddressMailMenu = (props) => {
|
|
8
|
+
var _a;
|
|
9
|
+
const blankMenu = (_a = props.blankMenu) !== null && _a !== void 0 ? _a : [];
|
|
8
10
|
const { user } = useApplicationContext();
|
|
9
11
|
const store = useVirtualAddressMailStore();
|
|
10
12
|
const mail = useVirtualAddressMail(props.id, {
|
|
@@ -12,7 +14,7 @@ const VirtualAddressMailMenu = (props) => {
|
|
|
12
14
|
includes: "permissions",
|
|
13
15
|
});
|
|
14
16
|
return observe(() => (React.createElement(NodeMenu, { ...props, store: store, menus: React.createElement(React.Fragment, null,
|
|
15
|
-
React.createElement(Access, { disabled: !user.can("view", mail.p, { asset: "Access" }) }),
|
|
17
|
+
!blankMenu.includes("Access") && (React.createElement(Access, { disabled: !user.can("view", mail.p, { asset: "Access" }) })),
|
|
16
18
|
React.createElement(Delete, { closeAside: props.closeAside, disabled: !user.can("delete", mail.p) })) })));
|
|
17
19
|
};
|
|
18
20
|
export default VirtualAddressMailMenu;
|
package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACN,0BAA0B,EAC1B,qBAAqB,GACrB,MAAM,0CAA0C,CAAC;AAElD,MAAM,sBAAsB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACN,0BAA0B,EAC1B,qBAAqB,GACrB,MAAM,0CAA0C,CAAC;AAElD,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;;IACJ,MAAM,SAAS,GAAG,MAAA,KAAK,CAAC,SAAS,mCAAI,EAAE,CAAC;IACxC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAE3C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,CAAC,EAAE,EAAE;QAC5C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACnB,QAAQ,EAAE,aAAa;KACvB,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,OACJ,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,KAAK,EACJ;YACE,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CACjC,oBAAC,MAAM,IAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAI,CACpE;YACD,oBAAC,MAAM,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,GAAI,CAC7E,GAEH,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useParams } from "react-router-dom";
|
|
4
|
+
import { Space } from "antd";
|
|
5
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
6
|
+
import { Access } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
7
|
+
import { NodeMenuContext, NodeMenuState } from "@voplus/morpho-org/es/controls/NodeMenu/state";
|
|
4
8
|
import VirtualAddressMailProperties from "../../components/VirtualAddressMailProperties";
|
|
5
9
|
import VirtualAddressMailTabs from "../../components/VirtualAddressMailTabs";
|
|
6
10
|
import { faEllipsisVertical, faEnvelopesBulk } from "@fortawesome/pro-solid-svg-icons";
|
|
7
11
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
-
import ToolBar from "@voplus/morpho-
|
|
12
|
+
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
9
13
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
10
14
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
11
15
|
import VirtualAddressMailMenu from "../../controls/VirtualAddressMailMenu";
|
|
@@ -14,9 +18,14 @@ import styles from "./index.less";
|
|
|
14
18
|
/** The VirtualAddressMail Page component with router parameters support. */
|
|
15
19
|
const VirtualAddressMailDefaultView = () => {
|
|
16
20
|
const { id } = useParams();
|
|
21
|
+
const { user } = useApplicationContext();
|
|
22
|
+
const menuContext = useMemo(() => new NodeMenuState(id), [id]);
|
|
23
|
+
const [packUp, setPackUp] = useState(false);
|
|
17
24
|
const virtualAddress = useVirtualAddressMail(id !== null && id !== void 0 ? id : "", { reload: true });
|
|
18
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["virtualAddress-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faEnvelopesBulk }), title: virtualAddress.name, description: "Manage your mails with ease, Hover over any mail item to see quick actions (Scan, etc.)", rightExtra: React.createElement(
|
|
19
|
-
React.createElement(
|
|
25
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["virtualAddress-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faEnvelopesBulk }), title: virtualAddress.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Manage your mails with ease, Hover over any mail item to see quick actions (Scan, etc.)", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
26
|
+
React.createElement(Space, { className: "menu-buttons" },
|
|
27
|
+
React.createElement(Access, { disabled: !user.can("view", virtualAddress.p, { asset: "Access" }) }))), toolMenu: React.createElement(ToolBar, { id: id, more: false },
|
|
28
|
+
React.createElement(VirtualAddressMailMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), blankMenu: packUp ? [] : ["Access"] })) }), properties: React.createElement(VirtualAddressMailProperties, { id: id }) },
|
|
20
29
|
React.createElement(VirtualAddressMailTabs, { id: id }))));
|
|
21
30
|
};
|
|
22
31
|
export default VirtualAddressMailDefaultView;
|
package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,4BAA4B,MAAM,+CAA+C,CAAC;AACzF,OAAO,sBAAsB,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,MAAM,MAAM,cAAc,CAAC;A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ACtB,EAAE,EAAE,EAAG,EACP,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAC1C,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAClC,CACO,GAEV,EAEH,UAAU,EAAE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAG,GAAI;QAErD,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAG,GAAI,CAChB,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useMemo } from "react";
|
|
2
2
|
import { useTabItem, useLayout } from "@voplus/morpho-data";
|
|
3
3
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
4
4
|
import { useCLDAForm } from "../../../../../data/clda-form";
|
|
5
5
|
import CLDAFormProperties from "../../components/CLDAFormProperties";
|
|
6
6
|
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
7
7
|
import { faEllipsisVertical, faWaveform } from "@fortawesome/pro-solid-svg-icons";
|
|
8
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
9
8
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
9
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
11
10
|
import BreadCrumbsPath from "@voplus/morpho-ui/es/components/layout/headers/components/BreadCrumbsPath";
|
|
12
11
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
13
12
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
13
|
+
import { DocumentMenuContext, DocumentMenuState, useMetaStore } from "@voplus/morpho-document-core";
|
|
14
|
+
import { Lock, Unlock } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
|
|
15
|
+
import { Space } from "antd";
|
|
14
16
|
import Content from "./Content";
|
|
15
17
|
import styles from "./index.less";
|
|
16
18
|
const CLDAFormDefaultView = ({ id }) => {
|
|
@@ -19,6 +21,8 @@ const CLDAFormDefaultView = ({ id }) => {
|
|
|
19
21
|
frame.header = null;
|
|
20
22
|
const layout = useLayout();
|
|
21
23
|
const metas = useMetaStore();
|
|
24
|
+
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
25
|
+
const [packUp, setPackUp] = useState(false);
|
|
22
26
|
const form = useCLDAForm(id, { includes: "path" });
|
|
23
27
|
const tab = useTabItem();
|
|
24
28
|
useAutorunEffect(() => {
|
|
@@ -26,15 +30,18 @@ const CLDAFormDefaultView = ({ id }) => {
|
|
|
26
30
|
});
|
|
27
31
|
return observe(() => {
|
|
28
32
|
var _a;
|
|
29
|
-
return (React.createElement(DefaultViewLayout, { className: styles["incorporation-from-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faWaveform }), title: form.name, description: React.createElement(BreadCrumbsPath, { path: (_a = form.path) === null || _a === void 0 ? void 0 : _a.slice(-3), onToPath: (item) => {
|
|
33
|
+
return (React.createElement(DefaultViewLayout, { className: styles["incorporation-from-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faWaveform }), title: form.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(BreadCrumbsPath, { path: (_a = form.path) === null || _a === void 0 ? void 0 : _a.slice(-3), current: packUp ? { id: id, name: form.name } : undefined, onToPath: (item) => {
|
|
30
34
|
const route = metas.getRoute({
|
|
31
35
|
id: item.id,
|
|
32
36
|
type: item.objectType,
|
|
33
37
|
});
|
|
34
38
|
layout.history.push(`${route}`);
|
|
35
|
-
} }), rightExtra: React.createElement(
|
|
39
|
+
} }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
40
|
+
React.createElement(Space, { className: "menu-buttons" },
|
|
41
|
+
React.createElement(Lock, null),
|
|
42
|
+
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
36
43
|
icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
|
|
37
|
-
} }) }), properties: React.createElement(CLDAFormProperties, { id: id }) },
|
|
44
|
+
}, blankMenu: packUp ? [] : ["Lock", "Unlock"] }) }), properties: React.createElement(CLDAFormProperties, { id: id }) },
|
|
38
45
|
React.createElement(Content, { id: id })));
|
|
39
46
|
});
|
|
40
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,eAAe,MAAM,2EAA2E,CAAC;AACxG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0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C;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useMemo } from "react";
|
|
2
2
|
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
|
3
3
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
4
4
|
import IncorporationCLDAProperties from "../../components/IncorporationCLDAProperties";
|
|
5
5
|
import styles from "./index.less";
|
|
6
|
+
import { Space } from "antd";
|
|
6
7
|
import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
|
|
7
8
|
import CLDATabs from "../../components/CLDATabs";
|
|
9
|
+
import { DownloadLegal, GenerateLegalEnvelope, } from "../../../../corporate/clda/controls/CLDAMenu/items";
|
|
8
10
|
import { faEllipsisVertical, faBookSection } from "@fortawesome/pro-solid-svg-icons";
|
|
9
11
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
11
12
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
13
|
+
import { DocumentMenuContext, DocumentMenuState, useMetaStore } from "@voplus/morpho-document-core";
|
|
12
14
|
import BreadCrumbsPath from "@voplus/morpho-ui/es/components/layout/headers/components/BreadCrumbsPath";
|
|
13
15
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
14
16
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
@@ -19,6 +21,8 @@ const CLDADefaultView = () => {
|
|
|
19
21
|
const params = useParams();
|
|
20
22
|
const id = params.id;
|
|
21
23
|
const metas = useMetaStore();
|
|
24
|
+
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
25
|
+
const [packUp, setPackUp] = useState(false);
|
|
22
26
|
const incorporation = useIncorporationCLDA(id, { includes: "path" });
|
|
23
27
|
const tab = useTabItem();
|
|
24
28
|
useAutorunEffect(() => {
|
|
@@ -26,12 +30,15 @@ const CLDADefaultView = () => {
|
|
|
26
30
|
});
|
|
27
31
|
return observe(() => {
|
|
28
32
|
var _a;
|
|
29
|
-
return (React.createElement(DefaultViewLayout, { className: styles["incorporation-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faBookSection }), title: incorporation.name, description: React.createElement(BreadCrumbsPath, { path: (_a = incorporation.path) === null || _a === void 0 ? void 0 : _a.slice(-3), onToPath: (item) => {
|
|
33
|
+
return (React.createElement(DefaultViewLayout, { className: styles["incorporation-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faBookSection }), title: incorporation.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(BreadCrumbsPath, { path: (_a = incorporation.path) === null || _a === void 0 ? void 0 : _a.slice(-3), current: packUp ? { id: id, name: incorporation.name } : undefined, onToPath: (item) => {
|
|
30
34
|
const route = metas.getRoute({ id: item.id, type: item.objectType });
|
|
31
35
|
layout.history.push(`${route}`);
|
|
32
|
-
} }), rightExtra: React.createElement(
|
|
36
|
+
} }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
37
|
+
React.createElement(Space, { className: "menu-buttons" },
|
|
38
|
+
React.createElement(GenerateLegalEnvelope, null),
|
|
39
|
+
React.createElement(DownloadLegal, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
33
40
|
icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
|
|
34
|
-
} }) }), properties: React.createElement(IncorporationCLDAProperties, { id: id }) },
|
|
41
|
+
}, blankMenu: packUp ? [] : ["DownloadLegal", "GenerateLegalEnvelope"] }) }), properties: React.createElement(IncorporationCLDAProperties, { id: id }) },
|
|
35
42
|
React.createElement(CLDATabs, { id: id })));
|
|
36
43
|
});
|
|
37
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,2BAA2B,MAAM,8CAA8C,CAAC;AACvF,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,EACN,aAAa,EACb,qBAAqB,GACrB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,eAAe,MAAM,2EAA2E,CAAC;AACxG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,uEAAuE;AACvE,MAAM,eAAe,GAAG,GAAG,EAAE;IAC5B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,SAA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AAG,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,EAAS,CAAC,CAAC;wBAC5E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;oBACjC,CAAC,GACA,EAEH,UAAU,EACT,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;oBAC/C,oBAAC,KAAK,IAAC,SAAS,EAAC,cAAc;wBAC9B,oBAAC,qBAAqB,OAAG;wBACzB,oBAAC,aAAa,OAAG,CACV,CACsB,EAEhC,QAAQ,EACP,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;qBAC1C,EACD,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,uBAAuB,CAAC,GAClE,GAEF,EAEH,UAAU,EAAE,oBAAC,2BAA2B,IAAC,EAAE,EAAE,EAAG,GAAI;YAEpD,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CACD,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
2
|
|
|
3
3
|
.incorporation-default-view {
|
|
4
|
+
:global {
|
|
5
|
+
.menu-buttons {
|
|
6
|
+
.clda-menu-generateLegalEnvelope {
|
|
7
|
+
color: #299117;
|
|
8
|
+
background: #effef2;
|
|
9
|
+
border: 1px solid #28c123;
|
|
10
|
+
}
|
|
11
|
+
.clda-menu-downloadLegal {
|
|
12
|
+
background: #fff;
|
|
13
|
+
border: 1px solid @primary-color;
|
|
14
|
+
color: @primary-color;
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
background: #f4f9ff;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
4
22
|
}
|