@pisell/materials 1.0.470 → 1.0.472

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.
Files changed (115) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +6 -6
  6. package/build/lowcode/preview.js +5 -5
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +16 -16
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +15 -15
  11. package/es/components/buttonGroupPreview/index.d.ts +3 -4
  12. package/es/components/buttonGroupPreview/index.js +5 -10
  13. package/es/components/cardMetricItem/index.d.ts +12 -0
  14. package/es/components/cardMetricItem/index.js +39 -0
  15. package/es/components/cardMetricItem/index.less +38 -0
  16. package/es/components/cropPhoto/index.d.ts +3 -0
  17. package/es/components/{pisellUploadCrop → cropPhoto}/index.js +2 -2
  18. package/es/components/pisellAnchor/index.d.ts +5 -11
  19. package/es/components/pisellAnchor/index.js +98 -90
  20. package/es/components/pisellAnchor/index.less +84 -91
  21. package/es/components/pisellCard/index.js +2 -1
  22. package/es/components/pisellInformationEntry/Input/index.d.ts +1 -0
  23. package/es/components/pisellInformationEntry/Input/index.js +3 -2
  24. package/es/components/pisellInformationEntry/index.d.ts +2 -0
  25. package/es/components/pisellInformationEntry/index.js +5 -2
  26. package/es/components/pisellQrcode/index.d.ts +6 -1
  27. package/es/components/pisellQrcode/index.js +13 -18
  28. package/es/components/pisellStatisticList/index.d.ts +3 -0
  29. package/es/components/pisellStatisticList/index.js +17 -5
  30. package/es/components/pisellWalletPassCard/index.d.ts +2 -2
  31. package/es/components/pisellWalletPassCard/index.js +20 -9
  32. package/es/components/pisellWalletPassCard/index.less +6 -0
  33. package/es/components/record-view/index.d.ts +9 -2
  34. package/es/components/record-view/index.js +55 -42
  35. package/es/components/record-view/index.less +18 -0
  36. package/es/components/section-footers/index.js +2 -1
  37. package/es/components/section-footers/index.less +5 -0
  38. package/es/components/walletCard/index.d.ts +26 -0
  39. package/es/components/{pisellWalletCard → walletCard}/index.js +62 -21
  40. package/es/index.d.ts +3 -3
  41. package/es/index.js +3 -3
  42. package/es/locales/en-US.d.ts +1 -0
  43. package/es/locales/en-US.js +1 -0
  44. package/es/locales/zh-CN.d.ts +1 -0
  45. package/es/locales/zh-CN.js +1 -0
  46. package/es/locales/zh-TW.d.ts +1 -0
  47. package/es/locales/zh-TW.js +1 -0
  48. package/lib/components/buttonGroupPreview/index.d.ts +3 -4
  49. package/lib/components/buttonGroupPreview/index.js +6 -8
  50. package/lib/components/cardMetricItem/index.d.ts +12 -0
  51. package/lib/components/{pisellStatistic → cardMetricItem}/index.js +39 -10
  52. package/lib/components/cardMetricItem/index.less +38 -0
  53. package/lib/components/cropPhoto/index.d.ts +3 -0
  54. package/lib/components/{pisellUploadCrop → cropPhoto}/index.js +7 -7
  55. package/lib/components/pisellAnchor/index.d.ts +5 -11
  56. package/lib/components/pisellAnchor/index.js +82 -53
  57. package/lib/components/pisellAnchor/index.less +84 -91
  58. package/lib/components/pisellCard/index.js +2 -1
  59. package/lib/components/pisellInformationEntry/Input/index.d.ts +1 -0
  60. package/lib/components/pisellInformationEntry/Input/index.js +2 -2
  61. package/lib/components/pisellInformationEntry/index.d.ts +2 -0
  62. package/lib/components/pisellInformationEntry/index.js +11 -9
  63. package/lib/components/pisellQrcode/index.d.ts +6 -1
  64. package/lib/components/pisellQrcode/index.js +11 -4
  65. package/lib/components/pisellStatisticList/index.d.ts +3 -0
  66. package/lib/components/pisellStatisticList/index.js +35 -15
  67. package/lib/components/pisellWalletPassCard/index.d.ts +2 -2
  68. package/lib/components/pisellWalletPassCard/index.js +13 -8
  69. package/lib/components/pisellWalletPassCard/index.less +6 -0
  70. package/lib/components/record-view/index.d.ts +9 -2
  71. package/lib/components/record-view/index.js +54 -25
  72. package/lib/components/record-view/index.less +18 -0
  73. package/lib/components/section-footers/index.js +11 -1
  74. package/lib/components/section-footers/index.less +5 -0
  75. package/lib/components/walletCard/index.d.ts +26 -0
  76. package/lib/components/{pisellWalletCard → walletCard}/index.js +63 -29
  77. package/lib/index.d.ts +3 -3
  78. package/lib/index.js +9 -9
  79. package/lib/locales/en-US.d.ts +1 -0
  80. package/lib/locales/en-US.js +1 -0
  81. package/lib/locales/zh-CN.d.ts +1 -0
  82. package/lib/locales/zh-CN.js +1 -0
  83. package/lib/locales/zh-TW.d.ts +1 -0
  84. package/lib/locales/zh-TW.js +1 -0
  85. package/lowcode/{pisell-statistic → card-metric-item}/meta.ts +3 -3
  86. package/lowcode/{pisell-statistic → card-metric-item}/snippets.ts +2 -2
  87. package/lowcode/{pisell-upload-crop → crop-photo}/meta.ts +3 -3
  88. package/lowcode/{pisell-upload-crop → crop-photo}/snippe.ts +2 -2
  89. package/lowcode/pisell-qrcode/meta.ts +1 -1
  90. package/lowcode/pisell-qrcode/snippets.ts +3 -2
  91. package/lowcode/tabs/meta.ts +10 -0
  92. package/lowcode/{pisell-wallet-card → wallet-card}/meta.ts +4 -4
  93. package/lowcode/{pisell-wallet-card → wallet-card}/snippets.ts +2 -2
  94. package/package.json +1 -1
  95. package/es/components/pisellStatistic/index.d.ts +0 -10
  96. package/es/components/pisellStatistic/index.js +0 -25
  97. package/es/components/pisellStatistic/index.less +0 -14
  98. package/es/components/pisellUploadCrop/index.d.ts +0 -3
  99. package/es/components/pisellWalletCard/index.d.ts +0 -4
  100. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
  101. package/es/components/table/Actions/component/ExportImport/utils/index.js +0 -11
  102. package/lib/components/pisellStatistic/index.d.ts +0 -10
  103. package/lib/components/pisellStatistic/index.less +0 -14
  104. package/lib/components/pisellUploadCrop/index.d.ts +0 -3
  105. package/lib/components/pisellWalletCard/index.d.ts +0 -4
  106. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
  107. package/lib/components/table/Actions/component/ExportImport/utils/index.js +0 -31
  108. /package/es/components/{pisellUploadCrop → cropPhoto}/index.less +0 -0
  109. /package/es/components/{pisellWalletCard → walletCard}/img/drak.png +0 -0
  110. /package/es/components/{pisellWalletCard → walletCard}/img/light.png +0 -0
  111. /package/es/components/{pisellWalletCard → walletCard}/index.less +0 -0
  112. /package/lib/components/{pisellUploadCrop → cropPhoto}/index.less +0 -0
  113. /package/lib/components/{pisellWalletCard → walletCard}/img/drak.png +0 -0
  114. /package/lib/components/{pisellWalletCard → walletCard}/img/light.png +0 -0
  115. /package/lib/components/{pisellWalletCard → walletCard}/index.less +0 -0
@@ -2,7 +2,7 @@ import snippets from './snippets';
2
2
 
3
3
  export default {
4
4
  snippets,
5
- componentName: 'PisellWalletCard',
5
+ componentName: 'WalletCard',
6
6
  title: '钱包卡片',
7
7
  category: '通用',
8
8
  docUrl: "",
@@ -11,7 +11,7 @@ export default {
11
11
  npm: {
12
12
  package: "@pisell/materials",
13
13
  version: "1.0.1",
14
- exportName: "PisellWalletCard",
14
+ exportName: "WalletCard",
15
15
  main: "src/index.tsx",
16
16
  destructuring: true,
17
17
  subName: "",
@@ -111,14 +111,14 @@ export default {
111
111
  },
112
112
  setter: "BoolSetter",
113
113
  }, {
114
- name: "shopName",
114
+ name: "isShowShopName",
115
115
  title: {
116
116
  label: "店铺名称",
117
117
  tip: "是否显示店铺名称 布尔值"
118
118
  },
119
119
  setter: "BoolSetter",
120
120
  }, {
121
- name: "cardNo",
121
+ name: "isShowCardNo",
122
122
  title: {
123
123
  label: "卡号",
124
124
  tip: "是否显示卡号 布尔值"
@@ -2,17 +2,17 @@ export default [
2
2
  {
3
3
  title: '钱包卡片',
4
4
  schema: {
5
- componentName: 'PisellWalletCard',
5
+ componentName: 'WalletCard',
6
6
  props: {
7
7
  icon: {
8
8
  type: "JSSlot",
9
9
  },
10
+ cardNo: '123456789012345678',
10
11
  mode: 'light',
11
12
  cardStyle: 'normal',
12
13
  codeType: 'one',
13
14
  vipLevel: true,
14
15
  shopName: true,
15
- cardNo: true,
16
16
  showCode: true,
17
17
  points: true,
18
18
  balance: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.470",
3
+ "version": "1.0.472",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface PisellStatisticProps {
4
- title?: string;
5
- number?: number;
6
- hint?: React.ReactNode;
7
- tags?: React.ReactNode;
8
- }
9
- declare const PisellStatistic: (props: PisellStatisticProps) => import("react").JSX.Element;
10
- export default PisellStatistic;
@@ -1,25 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { Statistic } from 'antd';
3
- import classNames from 'classnames';
4
- import "./index.less";
5
- var PisellStatistic = function PisellStatistic(props) {
6
- useEffect(function () {
7
- document.body.id = 'body';
8
- }, []);
9
- var _props$title = props.title,
10
- title = _props$title === void 0 ? '' : _props$title,
11
- number = props.number,
12
- hint = props.hint,
13
- tags = props.tags;
14
- return /*#__PURE__*/React.createElement("div", {
15
- className: classNames('pisell-statistic-wrap')
16
- }, /*#__PURE__*/React.createElement("div", {
17
- className: classNames('pisell-statistic-hint')
18
- }, hint), /*#__PURE__*/React.createElement("div", {
19
- className: classNames('pisell-statistic-tags')
20
- }, tags), /*#__PURE__*/React.createElement(Statistic, {
21
- title: title,
22
- value: number
23
- }));
24
- };
25
- export default PisellStatistic;
@@ -1,14 +0,0 @@
1
- .pisell-statistic-wrap {
2
- position: relative;
3
- padding: 24px;
4
- .pisell-statistic-hint {
5
- position: absolute;
6
- right: 20px;
7
- top: 20px;
8
- }
9
- .pisell-statistic-tags {
10
- position: absolute;
11
- right: 24px;
12
- bottom: 30px;
13
- }
14
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const pisellUploadCrop: React.FC;
3
- export default pisellUploadCrop;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const PisellWalletCard: React.FC;
4
- export default PisellWalletCard;
@@ -1,9 +0,0 @@
1
- /**
2
- * @title: 格式化导出导入接口地址
3
- * @description:
4
- * @param {string} url
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2024-09-05 11:39
8
- */
9
- export declare const formatApiUrl: (url: string) => string;
@@ -1,11 +0,0 @@
1
- /**
2
- * @title: 格式化导出导入接口地址
3
- * @description:
4
- * @param {string} url
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2024-09-05 11:39
8
- */
9
- export var formatApiUrl = function formatApiUrl(url) {
10
- return url || '/shop/form/data';
11
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface PisellStatisticProps {
4
- title?: string;
5
- number?: number;
6
- hint?: React.ReactNode;
7
- tags?: React.ReactNode;
8
- }
9
- declare const PisellStatistic: (props: PisellStatisticProps) => import("react").JSX.Element;
10
- export default PisellStatistic;
@@ -1,14 +0,0 @@
1
- .pisell-statistic-wrap {
2
- position: relative;
3
- padding: 24px;
4
- .pisell-statistic-hint {
5
- position: absolute;
6
- right: 20px;
7
- top: 20px;
8
- }
9
- .pisell-statistic-tags {
10
- position: absolute;
11
- right: 24px;
12
- bottom: 30px;
13
- }
14
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const pisellUploadCrop: React.FC;
3
- export default pisellUploadCrop;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const PisellWalletCard: React.FC;
4
- export default PisellWalletCard;
@@ -1,9 +0,0 @@
1
- /**
2
- * @title: 格式化导出导入接口地址
3
- * @description:
4
- * @param {string} url
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2024-09-05 11:39
8
- */
9
- export declare const formatApiUrl: (url: string) => string;
@@ -1,31 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/components/table/Actions/component/ExportImport/utils/index.ts
20
- var utils_exports = {};
21
- __export(utils_exports, {
22
- formatApiUrl: () => formatApiUrl
23
- });
24
- module.exports = __toCommonJS(utils_exports);
25
- var formatApiUrl = (url) => {
26
- return url || "/shop/form/data";
27
- };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {
30
- formatApiUrl
31
- });