@voplus/morpho-csp 6.0.169 → 6.0.170
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/filing-record/controls/FilingRecoreMenu/index.js +10 -4
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js +11 -5
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { NotifyFiling } from "./items";
|
|
2
3
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import {
|
|
4
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
4
5
|
import { Access, Delete } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
5
|
-
import {
|
|
6
|
-
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
6
|
+
import { useFilingRecoreStore, useFilingRecore } from "../../../../../data/filing-record";
|
|
7
7
|
import SubPasteNodeMenu from "@voplus/morpho-org/es/controls/ToolBar/SubPasteNodeMenu";
|
|
8
|
+
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
8
9
|
const FilingRecoreMenu = (props) => {
|
|
10
|
+
const { user } = useApplicationContext();
|
|
11
|
+
const fr = useFilingRecore(props.id, {
|
|
12
|
+
reload: (i) => !user.info.guest && !i.p,
|
|
13
|
+
includes: "permissions",
|
|
14
|
+
});
|
|
9
15
|
const store = useFilingRecoreStore();
|
|
10
16
|
return observe(() => (React.createElement(NodeMenu, { ...props, store: store, menus: React.createElement(React.Fragment, null,
|
|
11
17
|
React.createElement(SubPasteNodeMenu, null),
|
|
12
18
|
React.createElement(NotifyFiling, null),
|
|
13
|
-
React.createElement(Access,
|
|
19
|
+
React.createElement(Access, { disabled: !user.can("view", fr.p, { asset: "Access" }) }),
|
|
14
20
|
React.createElement(Delete, { closeAside: props.closeAside })) })));
|
|
15
21
|
};
|
|
16
22
|
export default FilingRecoreMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/controls/FilingRecoreMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/controls/FilingRecoreMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,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,oBAAoB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,gBAAgB,MAAM,yDAAyD,CAAC;AACvF,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAE/D,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,EAAE,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,EAAE;QACpC,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,oBAAoB,EAAE,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,OACJ,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,KAAK,EACJ;YACC,oBAAC,gBAAgB,OAAG;YACpB,oBAAC,YAAY,OAAG;YAChB,oBAAC,MAAM,IAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAI;YAClE,oBAAC,MAAM,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,GAAI,CACtC,GAEH,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
2
|
-
import { Delete, Access } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
|
4
1
|
import React from "react";
|
|
5
|
-
import {
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
4
|
+
import { Delete, Access } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
5
|
+
import { useVirtualAddressStore, useVirtualAddress } from "../../../../../data/virtual-address";
|
|
6
|
+
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
6
7
|
const VirtualAddressMenu = (props) => {
|
|
8
|
+
const { user } = useApplicationContext();
|
|
9
|
+
const va = useVirtualAddress(props.id, {
|
|
10
|
+
reload: (i) => !user.info.guest && !i.p,
|
|
11
|
+
includes: "permissions",
|
|
12
|
+
});
|
|
7
13
|
const store = useVirtualAddressStore();
|
|
8
14
|
return observe(() => (React.createElement(NodeMenu, { ...props, store: store, menus: React.createElement(React.Fragment, null,
|
|
9
|
-
React.createElement(Access,
|
|
15
|
+
React.createElement(Access, { disabled: !user.can("view", va.p, { asset: "Access" }) }),
|
|
10
16
|
React.createElement(Delete, { closeAside: true })) })));
|
|
11
17
|
};
|
|
12
18
|
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,
|
|
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,KAI3B,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,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;YACC,oBAAC,MAAM,IAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAI;YAClE,oBAAC,MAAM,IAAC,UAAU,SAAG,CACnB,GAEH,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|