@voplus/morpho-csp 1.3.2 → 1.3.4
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/share-certificate/interfaces.d.ts +7 -0
- package/es/data/share-certificate/metas.d.ts +2 -2
- package/es/data/share-certificate/metas.js +3 -4
- package/es/data/share-certificate/metas.js.map +1 -1
- package/es/data/share-transaction/ShareTransactionStore.d.ts +1 -0
- package/es/data/share-transaction/ShareTransactionStore.js +4 -0
- package/es/data/share-transaction/ShareTransactionStore.js.map +1 -1
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.d.ts +1 -0
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js +2 -3
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js.map +1 -1
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js +14 -14
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js +4 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +6 -4
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.d.ts +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +28 -24
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.d.ts +3 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +15 -8
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +3 -7
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js +3 -15
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +19 -5
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.d.ts +2 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +21 -14
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.d.ts +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +25 -25
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +74 -25
- package/es/obsolete/ShareCertificateDefaultView/index.d.ts +4 -0
- package/es/obsolete/ShareCertificateDefaultView/index.js +35 -0
- package/es/obsolete/ShareCertificateDefaultView/index.js.map +1 -0
- package/es/obsolete/ShareCertificateDefaultView/index.less +36 -0
- package/es/obsolete/ShareTransactionPropertiesView/Content.js +1 -1
- package/es/obsolete/ShareTransactionPropertiesView/Content.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.d.ts +0 -9
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js +0 -13
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js.map +0 -1
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.d.ts +0 -17
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js +0 -56
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js.map +0 -1
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.less +0 -41
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.d.ts +0 -10
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js +0 -34
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js.map +0 -1
package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./index.less";
|
|
3
|
-
export declare type NewShareCertificateFormProps = {
|
|
4
|
-
parentId?: string;
|
|
5
|
-
type?: "full" | "mini";
|
|
6
|
-
className?: string;
|
|
7
|
-
showView?: boolean;
|
|
8
|
-
onSave?: (params?: any) => void;
|
|
9
|
-
onCancel?: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const NewShareCertificateForm: {
|
|
12
|
-
(props: NewShareCertificateFormProps): JSX.Element;
|
|
13
|
-
defaultProps: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default NewShareCertificateForm;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Form, Row, Space, Button } from "@voplus/antd";
|
|
3
|
-
import { State } from "./state";
|
|
4
|
-
import { observe } from "@voplus/morpho-ui";
|
|
5
|
-
import { runInAction } from "mobx";
|
|
6
|
-
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
7
|
-
import { useShareCertificateStore } from "../../../../../data/share-certificate";
|
|
8
|
-
import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
|
9
|
-
import ShareCertificatePropertiesView from "../ShareCertificatePropertiesView";
|
|
10
|
-
import classnames from "classnames";
|
|
11
|
-
import "./index.less";
|
|
12
|
-
const NewShareCertificateForm = (props) => {
|
|
13
|
-
const store = useShareCertificateStore();
|
|
14
|
-
const asideContext = useAsideContentContext();
|
|
15
|
-
const [state] = useState(new State());
|
|
16
|
-
const content = observe(() => (React.createElement("div", { className: classnames("new-share-certificate-form", { "sub-share-certificate-simply-form": props.type === "mini" }, props.className) },
|
|
17
|
-
React.createElement(Form, { layout: "vertical" }, props.type === "mini" && (React.createElement(Row, { className: "share-certificate-form-btn", justify: "end" },
|
|
18
|
-
React.createElement(Space, null,
|
|
19
|
-
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
20
|
-
React.createElement(Button, { type: "primary", onClick: onSubmit }, "Submit"))))))));
|
|
21
|
-
return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: "Add ShareCertificate", loading: !!state.loading, onCancel: onCancel, onSubmit: onSubmit }, content)) : (content))));
|
|
22
|
-
async function onSubmit() {
|
|
23
|
-
var _a;
|
|
24
|
-
runInAction(() => (state.loading = true));
|
|
25
|
-
let res;
|
|
26
|
-
res = await store.create({
|
|
27
|
-
data: {
|
|
28
|
-
...state.params,
|
|
29
|
-
ParentId: props === null || props === void 0 ? void 0 : props.parentId,
|
|
30
|
-
},
|
|
31
|
-
error: "message",
|
|
32
|
-
});
|
|
33
|
-
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, state.params);
|
|
34
|
-
runInAction(() => {
|
|
35
|
-
state.loading = false;
|
|
36
|
-
state.params = state.Params;
|
|
37
|
-
});
|
|
38
|
-
if (props.showView)
|
|
39
|
-
return asideContext.openAside(React.createElement(ShareCertificatePropertiesView, { id: res.id }), {
|
|
40
|
-
span: 12,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
// cancel add shareCertificate
|
|
44
|
-
function onCancel() {
|
|
45
|
-
state.params = state.Params;
|
|
46
|
-
if (props.showView)
|
|
47
|
-
return asideContext.closeAside();
|
|
48
|
-
if (props.onCancel)
|
|
49
|
-
props.onCancel();
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
NewShareCertificateForm.defaultProps = {
|
|
53
|
-
type: "full",
|
|
54
|
-
};
|
|
55
|
-
export default NewShareCertificateForm;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/NewShareCertificateForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAW,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,8BAA8B,MAAM,mCAAmC,CAAC;AAC/E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAWtB,MAAM,uBAAuB,GAAG,CAAC,KAAmC,EAAE,EAAE;IACvE,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IACzC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC7B,6BACC,SAAS,EAAE,UAAU,CACpB,4BAA4B,EAC5B,EAAE,mCAAmC,EAAE,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,EAC9D,KAAK,CAAC,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,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,QAAQ;YACjB,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,8BAA8B,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;gBAC9E,IAAI,EAAE,EAAE;aACR,CAAC,CAAC;IACL,CAAC;IAED,8BAA8B;IAC9B,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,uBAAuB,CAAC,YAAY,GAAG;IACtC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.less
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
3
|
-
|
|
4
|
-
:global {
|
|
5
|
-
.new-share-certificate-form {
|
|
6
|
-
&.sub-share-certificate-more-form {
|
|
7
|
-
padding: 0 20px;
|
|
8
|
-
|
|
9
|
-
.ant-form-item {
|
|
10
|
-
margin-bottom: 15px;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&.sub-share-certificate-simply-form {
|
|
15
|
-
flex: none;
|
|
16
|
-
padding-bottom: 10px;
|
|
17
|
-
// border-top: #f2f2f2 solid 1px;
|
|
18
|
-
|
|
19
|
-
.ant-form-item {
|
|
20
|
-
margin-bottom: 0;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.edit-type {
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 32px;
|
|
27
|
-
line-height: 32px;
|
|
28
|
-
padding: 0 11px;
|
|
29
|
-
border-radius: @border-radius;
|
|
30
|
-
border: 1px solid #d9d9d9;
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
border-color: #40a9ff;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.share-certificate-form-btn{
|
|
38
|
-
margin-top: 10px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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: "ShareCertificate",
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(this, "params", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: this.Params
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(this, "loading", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: false
|
|
24
|
-
});
|
|
25
|
-
makeObservable(this);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
__decorate([
|
|
29
|
-
observable
|
|
30
|
-
], State.prototype, "params", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
observable
|
|
33
|
-
], State.prototype, "loading", void 0);
|
|
34
|
-
//# sourceMappingURL=state.js.map
|
package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/NewShareCertificateForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAIA;;;;mBAAgB;gBACf,IAAI,EAAE,kBAAkB;aACxB;WAAC;QAEU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QARlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAQD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB"}
|