aldehyde 0.2.206 → 0.2.207

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.
@@ -0,0 +1,17 @@
1
+ import React, { ReactNode } from "react";
2
+ import { AddOrUpdate, SaveJumpType } from "../../../tmpl/interface";
3
+ import { ResultStatusType } from "antd/lib/result";
4
+ interface PostResultProps {
5
+ title?: ReactNode;
6
+ subtitle?: ReactNode;
7
+ open: boolean;
8
+ jumpTypes: SaveJumpType[];
9
+ addOrUpdate: AddOrUpdate;
10
+ resultStatus?: ResultStatusType;
11
+ goAdd: () => void;
12
+ goEdit: () => void;
13
+ goList: () => void;
14
+ }
15
+ declare const PostResult: React.FC<PostResultProps>;
16
+ export default PostResult;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/aldehyde/detail/edit/post-result/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgEzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,33 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from "react";
13
+ import { Button, Modal, Result } from "antd";
14
+ import { useLocale } from "../../../locale/useLocale";
15
+ const PostResult = (_a) => {
16
+ var { resultStatus = "success" } = _a, props = __rest(_a, ["resultStatus"]);
17
+ const { title, open, subtitle, goAdd, goEdit, goList, jumpTypes, addOrUpdate, } = props;
18
+ const { translate } = useLocale();
19
+ return (React.createElement(Modal, { title: title ? title : translate("${保存提示}"), open: open, closable: false, destroyOnClose: true, footer: [], bodyStyle: { height: 430, overflow: "auto" }, width: 560, maskClosable: true },
20
+ React.createElement(Result, { status: resultStatus, title: resultStatus === "success"
21
+ ? translate("${保存成功}")
22
+ : translate("${保存失败}"), subTitle: subtitle, extra: [
23
+ goAdd && jumpTypes && jumpTypes.includes("add") ? (React.createElement(Button, { key: "goOnAdd", onClick: () => goAdd() }, addOrUpdate === "update"
24
+ ? translate("${转添加}")
25
+ : translate("${继续添加}"))) : (undefined),
26
+ goEdit && jumpTypes && jumpTypes.includes("edit") ? (React.createElement(Button, { type: "primary", key: "goOnEdit", onClick: () => goEdit() }, addOrUpdate === "update"
27
+ ? translate("${继续编辑}")
28
+ : translate("${编辑实体}"))) : (""),
29
+ goList && jumpTypes && jumpTypes.includes("list") ? (React.createElement(Button, { type: "primary", key: "onBackList", onClick: () => goList() }, translate("${返回列表}"))) : (""),
30
+ ] })));
31
+ };
32
+ export default PostResult;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3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G,EAAE,CAAC,KAAK,EAAE,IACzC,WAAW,KAAK,QAAQ;oBACvB,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC;oBACrB,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CACjB,CACV,CAAC,CAAC,CAAC,CACF,SAAS,CACV;gBACD,MAAM,IAAI,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAClD,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,GAAG,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAC1D,WAAW,KAAK,QAAQ;oBACvB,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC;oBACtB,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CACjB,CACV,CAAC,CAAC,CAAC,CACF,EAAE,CACH;gBACD,MAAM,IAAI,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAClD,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,GAAG,EAAC,YAAY,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,IAC5D,SAAS,CAAC,SAAS,CAAC,CACd,CACV,CAAC,CAAC,CAAC,CACF,EAAE,CACH;aACF,GACO,CACJ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aldehyde",
3
- "version": "0.2.206",
3
+ "version": "0.2.207",
4
4
  "author": "cosmicparticle",
5
5
  "main": "lib/index.js",
6
6
  "module": "src/aldehyde/index.txs",
@@ -17,7 +17,7 @@
17
17
  "npm:patch": "yarn tsc && npm version patch ",
18
18
  "clean-lib": "rimraf lib && rimraf templib && rimraf dist",
19
19
  "tsc": "yarn clean-lib && tsc && yarn copy-files",
20
- "copy-files": "copyfiles -u 3 templib/src/aldehyde/**/* lib/ && copyfiles -u 3 templib/src/aldehyde/**/**/* lib/ && copyfiles -u 3 templib/src/aldehyde/* lib/ && copyfiles -u 2 src/aldehyde/**/*.html src/aldehyde/**/*.css src/aldehyde/**/**/*.css src/aldehyde/**/**/*.png src/aldehyde/**/*.png lib/"
20
+ "copy-files": "copyfiles -u 3 templib/src/aldehyde/**/* lib/ && copyfiles -u 3 templib/src/aldehyde/**/**/* lib/ && copyfiles -u 3 templib/src/aldehyde/**/**/**/* lib/ && copyfiles -u 3 templib/src/aldehyde/* lib/ && copyfiles -u 2 src/aldehyde/**/*.html src/aldehyde/**/*.css src/aldehyde/**/**/*.css src/aldehyde/**/**/*.png src/aldehyde/**/*.png lib/"
21
21
  },
22
22
  "homepage": "./",
23
23
  "dependencies": {