@pisell/materials 2.2.103 → 2.2.104

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 (118) 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 +1 -1
  6. package/build/lowcode/preview.js +164 -148
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +31 -17
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +40 -26
  11. package/es/components/appVersionControl/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  14. package/es/components/dataSourceComponents/fields/index.d.ts +7 -7
  15. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  16. package/es/components/drag-sort-tree/index.d.ts +1 -0
  17. package/es/components/iconfont/index.d.ts +8 -0
  18. package/es/components/page/index.d.ts +0 -1
  19. package/es/components/pisell-config-provider/context.d.ts +22 -0
  20. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  21. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  22. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  23. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  24. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  25. package/es/components/pisellInput/index.d.ts +0 -1
  26. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  27. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  28. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  29. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  30. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  31. package/es/components/productCard/cartSkuCard/index.d.ts +0 -1
  32. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  33. package/es/components/productCard/components/Action/index.d.ts +4 -0
  34. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
  35. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  36. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  37. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  38. package/es/components/productCard/components/Time/index.d.ts +1 -0
  39. package/es/components/productCard/locales.d.ts +84 -0
  40. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  41. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  42. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  43. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  44. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  45. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/index.d.ts +2 -2
  47. package/es/components/table/Table/utils.d.ts +1 -1
  48. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  49. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  50. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  51. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  52. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  53. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  54. package/es/components/walletCard/index.d.ts +4 -0
  55. package/es/components/walletCard/index.js +29 -3
  56. package/es/components/walletCard/index.less +27 -0
  57. package/es/locales/en-US.d.ts +51 -50
  58. package/es/locales/en-US.js +66 -65
  59. package/es/locales/zh-CN.d.ts +51 -50
  60. package/es/locales/zh-CN.js +67 -66
  61. package/es/locales/zh-TW.d.ts +51 -50
  62. package/es/locales/zh-TW.js +67 -66
  63. package/es/utils/platform.d.ts +1 -1
  64. package/lib/components/appVersionControl/index.d.ts +1 -0
  65. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  66. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  67. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -7
  68. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  69. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  70. package/lib/components/iconfont/index.d.ts +8 -0
  71. package/lib/components/page/index.d.ts +0 -1
  72. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  73. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  74. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  75. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  76. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  77. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  78. package/lib/components/pisellInput/index.d.ts +0 -1
  79. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  80. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  81. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  82. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  83. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  84. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -1
  85. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  86. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  87. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
  88. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  89. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  90. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  91. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  92. package/lib/components/productCard/locales.d.ts +84 -0
  93. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  94. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  95. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  96. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  97. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  98. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  99. package/lib/components/table/Table/fields/index.d.ts +2 -2
  100. package/lib/components/table/Table/utils.d.ts +1 -1
  101. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  102. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  103. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  104. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  105. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  106. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  107. package/lib/components/walletCard/index.d.ts +4 -0
  108. package/lib/components/walletCard/index.js +27 -3
  109. package/lib/components/walletCard/index.less +27 -0
  110. package/lib/locales/en-US.d.ts +51 -50
  111. package/lib/locales/en-US.js +1 -0
  112. package/lib/locales/zh-CN.d.ts +51 -50
  113. package/lib/locales/zh-CN.js +1 -0
  114. package/lib/locales/zh-TW.d.ts +51 -50
  115. package/lib/locales/zh-TW.js +1 -0
  116. package/lib/utils/platform.d.ts +1 -1
  117. package/lowcode/wallet-card/meta.ts +81 -63
  118. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
3
4
  export default Time;
@@ -0,0 +1,84 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
5
+ 'pisell2.product.card.minute': (val: number) => string;
6
+ 'pisell2.product.card.discount.reason': string;
7
+ 'pisell2.product.card.discount.note': string;
8
+ 'pisell2.product.card.edit': string;
9
+ 'pisell2.product.card.discount.add.note': string;
10
+ 'pisell2.product.card.discount.edit.note': string;
11
+ 'pisell2.product.card.confirm': string;
12
+ 'pisell2.product.card.cancel': string;
13
+ 'pisell2.product.card.note.pla': string;
14
+ 'pisell2.product.card.items.package': string;
15
+ 'pisell2.product.card.view-all': string;
16
+ 'pisell2.product.card.view-less': string;
17
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
18
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
19
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
20
+ 'pisell2.product.card.add.holder.modal.title.1': string;
21
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
22
+ 'pisell2.product.card.sales': string;
23
+ 'pisell2.product.card.add.holder.modal.cancel': string;
24
+ 'pisell2.product.card.add.holder.modal.clear': string;
25
+ 'pisell2.product.card.add.holder.modal.apply': string;
26
+ 'pisell2.product.card.add.holder.modal.add': string;
27
+ 'pisell2.product.card.closing-soon.warning': string;
28
+ };
29
+ 'zh-CN': {
30
+ 'pisell2.product.card.edit': string;
31
+ 'pisell2.product.card.day': (val: number) => string;
32
+ 'pisell2.product.card.day.event': (val: number) => string;
33
+ 'pisell2.product.card.minute': (val: number) => string;
34
+ 'pisell2.product.card.discount.reason': string;
35
+ 'pisell2.product.card.discount.note': string;
36
+ 'pisell2.product.card.discount.add.note': string;
37
+ 'pisell2.product.card.discount.edit.note': string;
38
+ 'pisell2.product.card.confirm': string;
39
+ 'pisell2.product.card.cancel': string;
40
+ 'pisell2.product.card.note.pla': string;
41
+ 'pisell2.product.card.items.package': string;
42
+ 'pisell2.product.card.view-all': string;
43
+ 'pisell2.product.card.view-less': string;
44
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
45
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
46
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
47
+ 'pisell2.product.card.add.holder.modal.title.1': string;
48
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
49
+ 'pisell2.product.card.sales': string;
50
+ 'pisell2.product.card.add.holder.modal.cancel': string;
51
+ 'pisell2.product.card.add.holder.modal.clear': string;
52
+ 'pisell2.product.card.add.holder.modal.apply': string;
53
+ 'pisell2.product.card.add.holder.modal.add': string;
54
+ 'pisell2.product.card.closing-soon.warning': string;
55
+ };
56
+ 'zh-HK': {
57
+ 'pisell2.product.card.edit': string;
58
+ 'pisell2.product.card.day': (val: number) => string;
59
+ 'pisell2.product.card.day.event': (val: number) => string;
60
+ 'pisell2.product.card.minute': (val: number) => string;
61
+ 'pisell2.product.card.discount.reason': string;
62
+ 'pisell2.product.card.discount.note': string;
63
+ 'pisell2.product.card.discount.add.note': string;
64
+ 'pisell2.product.card.discount.edit.note': string;
65
+ 'pisell2.product.card.confirm': string;
66
+ 'pisell2.product.card.cancel': string;
67
+ 'pisell2.product.card.note.pla': string;
68
+ 'pisell2.product.card.items.package': string;
69
+ 'pisell2.product.card.view-all': string;
70
+ 'pisell2.product.card.view-less': string;
71
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
72
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
73
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
74
+ 'pisell2.product.card.add.holder.modal.title.1': string;
75
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
76
+ 'pisell2.product.card.sales': string;
77
+ 'pisell2.product.card.add.holder.modal.cancel': string;
78
+ 'pisell2.product.card.add.holder.modal.clear': string;
79
+ 'pisell2.product.card.add.holder.modal.apply': string;
80
+ 'pisell2.product.card.add.holder.modal.add': string;
81
+ 'pisell2.product.card.closing-soon.warning': string;
82
+ };
83
+ };
84
+ export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare const ExportFile: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare const ExportTable: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare const ImportLog: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare type ImportTableProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './PopoverContent.less';
2
3
  declare type FieldType = string | number;
3
4
  export declare type GroupValue = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewType, ModeType } from "../../../types";
2
3
  declare type ViewModeProps = {
3
4
  view: GridViewType;
@@ -198,12 +198,12 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: boolean;
201
+ default_value: string;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
205
205
  field_type: string;
206
- default_value: string;
206
+ default_value: boolean;
207
207
  } | {
208
208
  field_icon: string;
209
209
  field_name: string;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("column_setting" | "group_by" | "order_by" | "view_mode" | "gallery_setting" | "filter_setting")[];
158
+ }) => ("view_mode" | "group_by" | "column_setting" | "order_by" | "filter_setting" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -0,0 +1,32 @@
1
+ export declare const amountThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type ItemValue = string | number;
4
+ export interface Item {
5
+ value: ItemValue;
6
+ label: React.ReactNode;
7
+ disabled: boolean;
8
+ type: 'text' | 'primary';
9
+ style?: React.CSSProperties;
10
+ size?: number;
11
+ }
12
+ export interface KeyboardProps {
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ onChange?: (value?: ItemValue) => void;
16
+ items?: Item[];
17
+ rightItems?: Item[];
18
+ keydown?: boolean;
19
+ }
20
+ declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NumberProps } from './types';
3
2
  import './index.less';
4
3
  export type { NumberProps };
@@ -0,0 +1,32 @@
1
+ export declare const numberThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,26 @@
1
+ export interface NumberProps {
2
+ max?: number;
3
+ min?: number;
4
+ doneText?: string;
5
+ resetText: string;
6
+ defaultValue?: string | number;
7
+ placeholder?: string;
8
+ value?: string | number;
9
+ onChange?: (val: string | number) => void;
10
+ onEnter?: (val: string | number) => void;
11
+ defaultSelect?: boolean;
12
+ selectType?: 'light' | 'dark';
13
+ backgroundColor?: string;
14
+ containerBackgroundColor?: string;
15
+ buttonBackgroundColor?: string;
16
+ textColor?: string;
17
+ resetButtonBackgroundColor?: string;
18
+ resetButtonTextColor?: string;
19
+ isDoneButtonFollowTheme?: boolean;
20
+ doneButtonBackgroundColor?: string;
21
+ doneButtonTextColor?: string;
22
+ keyboardBackgroundColor?: string;
23
+ keyboardButtonBackgroundColor?: string;
24
+ keyboardButtonTextColor?: string;
25
+ keyboardButtonHoverColor?: string;
26
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import './index.less';
4
+ export interface VirtualKeyInputProps extends InputProps {
5
+ previewValue?: string;
6
+ renderInput?: (props: any) => any;
7
+ showDelete?: boolean;
8
+ onValueSelect?: (selected: boolean) => void;
9
+ defaultSelect?: boolean;
10
+ style?: React.CSSProperties;
11
+ }
12
+ declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
+ export default VirtualKeyInput;
@@ -62,6 +62,10 @@ export interface WalletCardProps {
62
62
  isLogin?: boolean;
63
63
  /** 是否是引导页 */
64
64
  isGuide?: boolean;
65
+ /** 是否显示查看PIN */
66
+ showViewPin?: boolean;
67
+ /** 查看PIN的回调 */
68
+ onViewPinClick?: () => void;
65
69
  }
66
70
  declare const WalletCard: React.FC<WalletCardProps>;
67
71
  export default WalletCard;
@@ -36,6 +36,7 @@ var import_antd = require("antd");
36
36
  var import_classnames = __toESM(require("classnames"));
37
37
  var import_react = __toESM(require("react"));
38
38
  var import_react_barcode = __toESM(require("react-barcode"));
39
+ var import_EyeOff = __toESM(require("@pisell/icon/es/EyeOff"));
39
40
  var import_locales = require("../../locales/index");
40
41
  var import_iconfont = __toESM(require("./../iconfont"));
41
42
  var import_pisellModal = __toESM(require("./../pisellModal"));
@@ -143,13 +144,16 @@ var CardHeader = ({
143
144
  cardStyle = "normal",
144
145
  codeType = "barCode",
145
146
  onCodeClick,
146
- isLogin = false
147
+ isLogin = false,
148
+ showViewPin = false,
149
+ onViewPinClick
147
150
  }) => {
148
151
  const processedShowIcon = toBooleanValue(showIcon);
149
152
  const processedShowWalletName = toBooleanValue(showWalletName);
150
153
  const processedShowShopName = toBooleanValue(showShopName);
151
154
  const processedShowCardNo = toBooleanValue(showCardNo);
152
155
  const processedShowCode = toBooleanValue(showCode);
156
+ const processedShowViewPin = toBooleanValue(showViewPin);
153
157
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level" }, processedShowIcon && iconImg ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-icon" }, /* @__PURE__ */ import_react.default.createElement(
154
158
  "img",
155
159
  {
@@ -157,7 +161,15 @@ var CardHeader = ({
157
161
  alt: "wallet icon",
158
162
  style: { width: "20px", height: "20px" }
159
163
  }
160
- )) : null, processedShowWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), processedShowShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), processedShowCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-right" }, processedShowCode && cardStyle === "normal" && /* @__PURE__ */ import_react.default.createElement(
164
+ )) : null, processedShowWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), processedShowShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), processedShowCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo), processedShowViewPin && /* @__PURE__ */ import_react.default.createElement(
165
+ "div",
166
+ {
167
+ className: "pisell-wallet-card-header-view-pin",
168
+ onClick: onViewPinClick
169
+ },
170
+ (0, import_locales.getText)("walletCard-viewPin"),
171
+ /* @__PURE__ */ import_react.default.createElement(import_EyeOff.default, { className: "pisell-wallet-card-header-view-pin-icon" })
172
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-right" }, processedShowCode && cardStyle === "normal" && /* @__PURE__ */ import_react.default.createElement(
161
173
  "div",
162
174
  {
163
175
  className: "pisell-wallet-card-icon-wrapper",
@@ -287,6 +299,7 @@ var WalletCard = (props) => {
287
299
  const showCardNo = toBooleanValue(mergedProps.showCardNo);
288
300
  const showCode = toBooleanValue(mergedProps.showCode);
289
301
  const isLogin = toBooleanValue(mergedProps.isLogin);
302
+ const showViewPin = toBooleanValue(mergedProps == null ? void 0 : mergedProps.showViewPin);
290
303
  const context = (0, import_useEngineContext.default)();
291
304
  const { utils } = context.appHelper || {};
292
305
  const { isModalOpen, handleCodeClick, closeModal } = useCodeModal(
@@ -294,6 +307,7 @@ var WalletCard = (props) => {
294
307
  onCodeClick,
295
308
  codeType
296
309
  );
310
+ console.log("showViewPin", props);
297
311
  const backgroundStyle = (0, import_react.useMemo)(() => {
298
312
  var _a2;
299
313
  if (props.customBackgroundImage) {
@@ -327,6 +341,14 @@ var WalletCard = (props) => {
327
341
  }
328
342
  });
329
343
  };
344
+ const onViewPinClick = (e) => {
345
+ e.stopPropagation();
346
+ if (props == null ? void 0 : props.onViewPinClick) {
347
+ props.onViewPinClick();
348
+ } else {
349
+ console.error("onViewPinClick方法需要传入");
350
+ }
351
+ };
330
352
  return /* @__PURE__ */ import_react.default.createElement(
331
353
  "div",
332
354
  {
@@ -375,7 +397,9 @@ var WalletCard = (props) => {
375
397
  cardStyle,
376
398
  codeType,
377
399
  onCodeClick: handleCodeClick,
378
- isLogin
400
+ isLogin,
401
+ showViewPin,
402
+ onViewPinClick
379
403
  }
380
404
  ),
381
405
  /* @__PURE__ */ import_react.default.createElement(
@@ -106,6 +106,33 @@
106
106
  margin-bottom: 0;
107
107
  }
108
108
  }
109
+
110
+ .pisell-wallet-card-header-view-pin {
111
+ position: relative;
112
+ color: #53b1fd;
113
+ cursor: pointer;
114
+ font-size: 12px;
115
+ font-weight: 400;
116
+ display: flex;
117
+ align-items: center;
118
+ gap: 4px;
119
+
120
+ .pisell-wallet-card-header-view-pin-icon {
121
+ width: 16px;
122
+ height: 16px;
123
+ color: #53b1fd;
124
+ font-size: 16px;
125
+ }
126
+
127
+ &:after {
128
+ content: '';
129
+ position: absolute;
130
+ top: -5px;
131
+ left: -5px;
132
+ right: -5px;
133
+ bottom: -5px; /* 向外扩展5px */
134
+ }
135
+ }
109
136
  }
110
137
 
111
138
  // 头部右侧
@@ -1,44 +1,44 @@
1
1
  declare const _default: {
2
- "table-filter-search": string;
3
- "table-filter-clear": string;
4
- "table-filter-filter": string;
5
- "table-filter-min": string;
6
- "table-filter-max": string;
7
- "table-pagination-previous": string;
8
- "table-pagination-next": string;
9
- "table-pagination-total": (current: string, total: string) => string;
10
- "select-dropdown-render-select-all": string;
11
- "select-dropdown-render-search": string;
12
- "sort-button-text": string;
13
- "sort-oldest-to-newest": string;
14
- "sort-newest-to-oldest": string;
15
- "sort-a-z": string;
16
- "sort-z-a": string;
17
- "sort-from-morning-to-night": string;
18
- "sort-from-evening-to-morning": string;
19
- "sort-0-9": string;
20
- "sort-9-0": string;
21
- "table-action-filter-button": string;
22
- "table-action-filter-quick-filter": string;
23
- "table-action-filter-quick-filter-tip": (count: number) => string;
24
- "table-action-filter-other-filter": string;
25
- "table-action-filter-other-filter-tip": () => string;
26
- "table-action-group-by-title": string;
27
- "table-action-group-by-title-tip": string;
28
- "table-action-column-title": string;
29
- "table-column-group-records": string;
30
- "table-column-group-lock-tip": string;
31
- "table-column-drag-sort-disabled-tip": string;
32
- "table-action-filter-no-filter": string;
33
- "table-action-range-picker-presets-today": string;
34
- "table-action-range-picker-presets-yesterday": string;
35
- "table-action-range-picker-presets-last-3-day": string;
36
- "table-action-range-picker-presets-last-7-day": string;
37
- "table-action-range-picker-presets-last-14-day": string;
38
- "table-action-range-picker-presets-last-30-day": string;
39
- "table-action-range-picker-presets-last-90-day": string;
40
- "virtual-keyboard-time-now": string;
41
- "virtual-keyboard-time-ok": string;
2
+ 'table-filter-search': string;
3
+ 'table-filter-clear': string;
4
+ 'table-filter-filter': string;
5
+ 'table-filter-min': string;
6
+ 'table-filter-max': string;
7
+ 'table-pagination-previous': string;
8
+ 'table-pagination-next': string;
9
+ 'table-pagination-total': (current: string, total: string) => string;
10
+ 'select-dropdown-render-select-all': string;
11
+ 'select-dropdown-render-search': string;
12
+ 'sort-button-text': string;
13
+ 'sort-oldest-to-newest': string;
14
+ 'sort-newest-to-oldest': string;
15
+ 'sort-a-z': string;
16
+ 'sort-z-a': string;
17
+ 'sort-from-morning-to-night': string;
18
+ 'sort-from-evening-to-morning': string;
19
+ 'sort-0-9': string;
20
+ 'sort-9-0': string;
21
+ 'table-action-filter-button': string;
22
+ 'table-action-filter-quick-filter': string;
23
+ 'table-action-filter-quick-filter-tip': (count: number) => string;
24
+ 'table-action-filter-other-filter': string;
25
+ 'table-action-filter-other-filter-tip': () => string;
26
+ 'table-action-group-by-title': string;
27
+ 'table-action-group-by-title-tip': string;
28
+ 'table-action-column-title': string;
29
+ 'table-column-group-records': string;
30
+ 'table-column-group-lock-tip': string;
31
+ 'table-column-drag-sort-disabled-tip': string;
32
+ 'table-action-filter-no-filter': string;
33
+ 'table-action-range-picker-presets-today': string;
34
+ 'table-action-range-picker-presets-yesterday': string;
35
+ 'table-action-range-picker-presets-last-3-day': string;
36
+ 'table-action-range-picker-presets-last-7-day': string;
37
+ 'table-action-range-picker-presets-last-14-day': string;
38
+ 'table-action-range-picker-presets-last-30-day': string;
39
+ 'table-action-range-picker-presets-last-90-day': string;
40
+ 'virtual-keyboard-time-now': string;
41
+ 'virtual-keyboard-time-ok': string;
42
42
  'batch-editor-batch-edit': string;
43
43
  'batch-editor-actions': string;
44
44
  'batch-editor-remove': string;
@@ -108,7 +108,7 @@ declare const _default: {
108
108
  'date-picker-first_day_of_next_month': string;
109
109
  'date-picker-last_day_of_last_month': string;
110
110
  'date-picker-invalid-date': string;
111
- "date-picker-apply": string;
111
+ 'date-picker-apply': string;
112
112
  'date-picker-shortcut-custom': string;
113
113
  'pisell-input-copy-success': string;
114
114
  'pisell-input-copy': string;
@@ -160,6 +160,7 @@ declare const _default: {
160
160
  'walletCard-done': string;
161
161
  'walletCard-qrcode': string;
162
162
  'walletCard-barcode': string;
163
+ 'walletCard-viewPin': string;
163
164
  'pisell-upload-button': string;
164
165
  'pisell-upload-setting-size-error': (maxSize: number) => string;
165
166
  'pisell-upload-setting-type-error': (type: string) => string;
@@ -241,15 +242,15 @@ declare const _default: {
241
242
  'pisell-data-source-form-app-identifier-alphanumeric': string;
242
243
  'pisell-data-source-form-app-identifier-special-ends': string;
243
244
  'pisell-data-source-form-app-identifier-consecutive-special': string;
244
- "qrscanner-loading": string;
245
- "qrscanner-success": string;
246
- "qrscanner-success-qrcode": string;
247
- "qrscanner-success-barcode": string;
248
- "qrscanner-error-upload-image": string;
249
- "qrscanner-error-load-failed": string;
250
- "qrscanner-error-no-code": string;
251
- "qrscanner-error-camera-init": string;
252
- "qrscanner-error-process-image": string;
245
+ 'qrscanner-loading': string;
246
+ 'qrscanner-success': string;
247
+ 'qrscanner-success-qrcode': string;
248
+ 'qrscanner-success-barcode': string;
249
+ 'qrscanner-error-upload-image': string;
250
+ 'qrscanner-error-load-failed': string;
251
+ 'qrscanner-error-no-code': string;
252
+ 'qrscanner-error-camera-init': string;
253
+ 'qrscanner-error-process-image': string;
253
254
  'pisell-login-and-register-title': string;
254
255
  'pisell-login-and-register-subtitle': string;
255
256
  'pisell-login-and-register-email-label': string;
@@ -197,6 +197,7 @@ var en_US_default = {
197
197
  "walletCard-done": "Done",
198
198
  "walletCard-qrcode": "QR code",
199
199
  "walletCard-barcode": "Bar code",
200
+ "walletCard-viewPin": "View PIN",
200
201
  // 上传组件
201
202
  "pisell-upload-button": "Upload",
202
203
  "pisell-upload-setting-size-error": (maxSize) => `Each file should not exceed ${maxSize}MB in size.`,