@pisell/materials 6.4.7 → 6.4.9

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 (124) 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 +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -23
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -24
  11. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  12. package/es/components/auto-resize-text/auto-text-size-standalone.js +258 -0
  13. package/es/components/auto-resize-text/index.d.ts +6 -0
  14. package/es/components/auto-resize-text/index.js +40 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +11 -4
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +6 -7
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +92 -6
  22. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +5 -0
  23. package/es/components/filter/types.d.ts +2 -0
  24. package/es/components/keyboard/index.d.ts +22 -0
  25. package/es/components/keyboard/index.js +159 -0
  26. package/es/components/keyboard/index.less +44 -0
  27. package/es/components/pisellQRScanner/index.d.ts +0 -13
  28. package/es/components/pisellQRScanner/index.js +0 -8
  29. package/es/components/pisellWalletPassCard/index.d.ts +1 -1
  30. package/es/components/pisellWalletPassCard/index.js +2 -1
  31. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  32. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +1 -0
  33. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +73 -5
  34. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
  35. package/es/components/productCard/cartSkuCard/index.js +2 -11
  36. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  37. package/es/components/table/Table/utils.d.ts +1 -1
  38. package/es/components/table/Table/utils.js +22 -1
  39. package/es/components/table/hooks/useTableSetting.d.ts +3 -4
  40. package/es/components/table/hooks/useTableSetting.js +113 -5
  41. package/es/components/table/index.js +14 -3
  42. package/es/components/table/types.d.ts +17 -0
  43. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
  44. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +21 -7
  45. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
  46. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
  47. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +44 -25
  48. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  49. package/es/components/virtualInput/BaseVirtualInput/index.js +163 -0
  50. package/es/components/virtualInput/BaseVirtualInput/index.less +78 -0
  51. package/es/components/virtualInput/index.d.ts +24 -0
  52. package/es/components/virtualInput/index.js +60 -0
  53. package/es/components/virtualInput/index.less +42 -0
  54. package/es/index.d.ts +2 -0
  55. package/es/index.js +3 -1
  56. package/es/locales/en-US.d.ts +1 -0
  57. package/es/locales/en-US.js +1 -0
  58. package/es/locales/zh-CN.d.ts +1 -0
  59. package/es/locales/zh-CN.js +1 -0
  60. package/es/locales/zh-TW.d.ts +1 -0
  61. package/es/locales/zh-TW.js +1 -0
  62. package/es/utils/platform.d.ts +1 -1
  63. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  64. package/lib/components/auto-resize-text/auto-text-size-standalone.js +273 -0
  65. package/lib/components/auto-resize-text/index.d.ts +6 -0
  66. package/lib/components/auto-resize-text/index.js +71 -0
  67. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +8 -2
  68. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  69. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
  70. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +6 -7
  71. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
  72. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
  73. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +78 -7
  74. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +5 -0
  75. package/lib/components/filter/types.d.ts +2 -0
  76. package/lib/components/keyboard/index.d.ts +22 -0
  77. package/lib/components/keyboard/index.js +223 -0
  78. package/lib/components/keyboard/index.less +44 -0
  79. package/lib/components/pisellQRScanner/index.d.ts +0 -13
  80. package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
  81. package/lib/components/pisellWalletPassCard/index.js +2 -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 +1 -0
  84. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +45 -11
  85. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
  86. package/lib/components/productCard/cartSkuCard/index.js +2 -13
  87. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  88. package/lib/components/table/Table/utils.d.ts +1 -1
  89. package/lib/components/table/Table/utils.js +18 -1
  90. package/lib/components/table/hooks/useTableSetting.d.ts +3 -4
  91. package/lib/components/table/hooks/useTableSetting.js +114 -4
  92. package/lib/components/table/index.js +12 -1
  93. package/lib/components/table/types.d.ts +17 -0
  94. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
  95. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +19 -2
  96. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
  97. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
  98. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +45 -27
  99. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  100. package/lib/components/virtualInput/BaseVirtualInput/index.js +179 -0
  101. package/lib/components/virtualInput/BaseVirtualInput/index.less +78 -0
  102. package/lib/components/virtualInput/index.d.ts +24 -0
  103. package/lib/components/virtualInput/index.js +102 -0
  104. package/lib/components/virtualInput/index.less +42 -0
  105. package/lib/index.d.ts +2 -0
  106. package/lib/index.js +6 -0
  107. package/lib/locales/en-US.d.ts +1 -0
  108. package/lib/locales/en-US.js +1 -0
  109. package/lib/locales/zh-CN.d.ts +1 -0
  110. package/lib/locales/zh-CN.js +1 -0
  111. package/lib/locales/zh-TW.d.ts +1 -0
  112. package/lib/locales/zh-TW.js +1 -0
  113. package/lib/utils/platform.d.ts +1 -1
  114. package/lowcode/data-source-table/meta.ts +239 -0
  115. package/lowcode/table/meta.ts +104 -0
  116. package/package.json +1 -1
  117. package/dist/umd/materials.min.css +0 -1
  118. package/dist/umd/materials.min.js +0 -1
  119. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  120. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  121. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  122. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  123. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  124. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -0,0 +1,78 @@
1
+ .pisell-base-virtual-input {
2
+ width: 100%;
3
+ display: flex;
4
+ align-items: center;
5
+ background-color: transparent;
6
+ cursor: pointer;
7
+ transition: all 0.2s ease;
8
+ outline: none;
9
+ position: relative;
10
+ height: var(--virtual-input-height);
11
+
12
+ &--disabled {
13
+ cursor: not-allowed;
14
+ opacity: 0.6;
15
+ }
16
+ }
17
+
18
+ .pisell-base-virtual-input-placeholder {
19
+ color: #98a2b3;
20
+ font-weight: 400;
21
+ user-select: none;
22
+ position: absolute;
23
+ left: 0;
24
+ top: 0;
25
+ width: 100%;
26
+ max-width: 100%;
27
+ overflow: hidden;
28
+ pointer-events: none;
29
+ font-size: var(--virtual-input-font-size);
30
+ height: var(--virtual-input-height);
31
+ line-height: var(--virtual-input-height);
32
+ }
33
+
34
+ .pisell-base-virtual-input-value {
35
+ color: #101828;
36
+ font-weight: 600;
37
+ white-space: nowrap;
38
+ flex-shrink: 0;
39
+ // width: 100%;
40
+ max-width: 100%;
41
+ overflow-y: hidden;
42
+ overflow-x: auto;
43
+ font-size: var(--virtual-input-font-size);
44
+ line-height: var(--virtual-input-height);
45
+ height: var(--virtual-input-height);
46
+
47
+ -ms-overflow-style: none; /* IE 和 Edge */
48
+ scrollbar-width: none; /* Firefox */
49
+ &::-webkit-scrollbar {
50
+ display: none; /* Chrome, Safari 和 Opera */
51
+ }
52
+ }
53
+
54
+ .pisell-base-virtual-input-caret-container {
55
+ height: 100%;
56
+ display: flex;
57
+ align-items: center;
58
+ flex-shrink: 0;
59
+ }
60
+
61
+ .pisell-base-virtual-input-caret {
62
+ width: 2px;
63
+ height: var(--virtual-input-caret-height);
64
+ background-color: #1570ef;
65
+ border-radius: 1px;
66
+ animation: pisell-base-virtual-input-caret-blink 1s infinite;
67
+ }
68
+
69
+ @keyframes pisell-base-virtual-input-caret-blink {
70
+ 0%,
71
+ 50% {
72
+ opacity: 1;
73
+ }
74
+ 51%,
75
+ 100% {
76
+ opacity: 0;
77
+ }
78
+ }
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { BaseVirtualInputProps, BaseVirtualInputRef } from './BaseVirtualInput';
3
+ import './index.less';
4
+ export { BaseVirtualInputProps, BaseVirtualInputRef } from './BaseVirtualInput';
5
+ export interface VirtualInputProps extends BaseVirtualInputProps {
6
+ /** 在VirtualInput上方显示的额外内容 */
7
+ topContent?: React.ReactNode;
8
+ /** 在VirtualInput下方显示的额外内容 */
9
+ bottomContent?: React.ReactNode;
10
+ /** wrapper class */
11
+ wrapperClassName?: string;
12
+ /** 虚拟输入框包装器的样式 */
13
+ wrapperStyle?: React.CSSProperties;
14
+ /** 是否允许清除输入框中的内容 */
15
+ allowClear?: boolean;
16
+ /** 清除输入框内容的回调函数 */
17
+ onClear?: () => void;
18
+ /** 自定义清除按钮的样式 */
19
+ clearButtonStyle?: React.CSSProperties;
20
+ }
21
+ export interface VirtualInputRef extends BaseVirtualInputRef {
22
+ }
23
+ declare const VirtualInput: React.ForwardRefExoticComponent<VirtualInputProps & React.RefAttributes<VirtualInputRef>>;
24
+ export default VirtualInput;
@@ -0,0 +1,102 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/virtualInput/index.tsx
30
+ var virtualInput_exports = {};
31
+ __export(virtualInput_exports, {
32
+ BaseVirtualInputProps: () => import_BaseVirtualInput2.BaseVirtualInputProps,
33
+ BaseVirtualInputRef: () => import_BaseVirtualInput2.BaseVirtualInputRef,
34
+ default: () => virtualInput_default
35
+ });
36
+ module.exports = __toCommonJS(virtualInput_exports);
37
+ var import_react = __toESM(require("react"));
38
+ var import_classnames = __toESM(require("classnames"));
39
+ var import_icon = __toESM(require("../icon"));
40
+ var import_BaseVirtualInput = __toESM(require("./BaseVirtualInput"));
41
+ var import_index = require("./index.less");
42
+ var import_BaseVirtualInput2 = require("./BaseVirtualInput");
43
+ var VirtualInput = (0, import_react.forwardRef)(
44
+ ({
45
+ topContent,
46
+ bottomContent,
47
+ wrapperStyle,
48
+ wrapperClassName,
49
+ allowClear = false,
50
+ onClear,
51
+ value,
52
+ clearButtonStyle,
53
+ ...virtualInputProps
54
+ }, ref) => {
55
+ const baseInputRef = (0, import_react.useRef)(null);
56
+ const handleClear = () => {
57
+ onClear == null ? void 0 : onClear();
58
+ };
59
+ (0, import_react.useImperativeHandle)(ref, () => ({
60
+ focus: () => {
61
+ var _a;
62
+ return (_a = baseInputRef.current) == null ? void 0 : _a.focus();
63
+ },
64
+ blur: () => {
65
+ var _a;
66
+ return (_a = baseInputRef.current) == null ? void 0 : _a.blur();
67
+ }
68
+ }));
69
+ return /* @__PURE__ */ import_react.default.createElement(
70
+ "div",
71
+ {
72
+ className: (0, import_classnames.default)("pisell-virtual-input-wrapper", wrapperClassName),
73
+ style: wrapperStyle
74
+ },
75
+ topContent,
76
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-input-container" }, /* @__PURE__ */ import_react.default.createElement(
77
+ import_BaseVirtualInput.default,
78
+ {
79
+ ref: baseInputRef,
80
+ value,
81
+ ...virtualInputProps
82
+ }
83
+ ), allowClear && /* @__PURE__ */ import_react.default.createElement(
84
+ "div",
85
+ {
86
+ className: "pisell-virtual-input-clear-button",
87
+ onClick: handleClear,
88
+ style: clearButtonStyle
89
+ },
90
+ /* @__PURE__ */ import_react.default.createElement(import_icon.default, { type: "pisell2-delete" })
91
+ )),
92
+ bottomContent
93
+ );
94
+ }
95
+ );
96
+ VirtualInput.displayName = "VirtualInput";
97
+ var virtualInput_default = VirtualInput;
98
+ // Annotate the CommonJS export names for ESM import in node:
99
+ 0 && (module.exports = {
100
+ BaseVirtualInputProps,
101
+ BaseVirtualInputRef
102
+ });
@@ -0,0 +1,42 @@
1
+ .pisell-virtual-input-wrapper {
2
+ overflow: hidden;
3
+ }
4
+
5
+ .pisell-virtual-input-container {
6
+ position: relative;
7
+ display: flex;
8
+ align-items: center;
9
+ width: 100%;
10
+ }
11
+
12
+ .pisell-virtual-input-clear-button {
13
+ position: absolute;
14
+ right: 8px;
15
+ top: 50%;
16
+ transform: translateY(-50%);
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ width: 24px;
21
+ height: 24px;
22
+ cursor: pointer;
23
+ border-radius: 4px;
24
+ transition: all 0.2s ease;
25
+ color: #667085;
26
+ background-color: transparent;
27
+ z-index: 1;
28
+
29
+ &:hover {
30
+ background-color: #f2f4f7;
31
+ color: #344054;
32
+ }
33
+
34
+ &:active {
35
+ background-color: #e4e7ec;
36
+ }
37
+
38
+ svg {
39
+ width: 16px;
40
+ height: 16px;
41
+ }
42
+ }
package/lib/index.d.ts CHANGED
@@ -140,3 +140,5 @@ export { default as SectionFooters } from './components/section-footers';
140
140
  export { default as ProductCard } from './components/productCard';
141
141
  export { default as Collapse } from './components/collapse';
142
142
  export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
143
+ export { default as Keyboard } from './components/keyboard';
144
+ export { default as VirtualInput } from './components/virtualInput';
package/lib/index.js CHANGED
@@ -96,6 +96,7 @@ __export(src_exports, {
96
96
  InputNumber: () => import_antd.InputNumber,
97
97
  InputNumberRange: () => import_input_number_range.default,
98
98
  JsonWrapper: () => import_JsonWrapperProvider.default,
99
+ Keyboard: () => import_keyboard.default,
99
100
  List: () => import_list.default,
100
101
  LowCodePage: () => import_lowCodePage.default,
101
102
  Mentions: () => import_antd.Mentions,
@@ -193,6 +194,7 @@ __export(src_exports, {
193
194
  TreeSelect: () => import_tree_select.default,
194
195
  Typography: () => import_typography.default,
195
196
  Upload: () => import_upload.default,
197
+ VirtualInput: () => import_virtualInput.default,
196
198
  VirtualKeyboard: () => import_virtual_keyboard.default,
197
199
  VirtualKeyboardTime: () => import_Time.default,
198
200
  WalletCard: () => import_walletCard.default,
@@ -344,6 +346,8 @@ var import_section_footers = __toESM(require("./components/section-footers"));
344
346
  var import_productCard = __toESM(require("./components/productCard"));
345
347
  var import_collapse = __toESM(require("./components/collapse"));
346
348
  var import_pisellGoodPassCard = __toESM(require("./components/pisellGoodPassCard"));
349
+ var import_keyboard = __toESM(require("./components/keyboard"));
350
+ var import_virtualInput = __toESM(require("./components/virtualInput"));
347
351
  // Annotate the CommonJS export names for ESM import in node:
348
352
  0 && (module.exports = {
349
353
  Affix,
@@ -413,6 +417,7 @@ var import_pisellGoodPassCard = __toESM(require("./components/pisellGoodPassCard
413
417
  InputNumber,
414
418
  InputNumberRange,
415
419
  JsonWrapper,
420
+ Keyboard,
416
421
  List,
417
422
  LowCodePage,
418
423
  Mentions,
@@ -510,6 +515,7 @@ var import_pisellGoodPassCard = __toESM(require("./components/pisellGoodPassCard
510
515
  TreeSelect,
511
516
  Typography,
512
517
  Upload,
518
+ VirtualInput,
513
519
  VirtualKeyboard,
514
520
  VirtualKeyboardTime,
515
521
  WalletCard,
@@ -279,6 +279,7 @@ declare const _default: {
279
279
  'pisell-wallet-pass-card-status-expired': string;
280
280
  'pisell-wallet-pass-card-status-disabled': string;
281
281
  'pisell-wallet-pass-card-status-conflict': string;
282
+ 'pisell-wallet-pass-card-status-lastPayment': string;
282
283
  'pisell-wallet-pass-card-reset': string;
283
284
  'pisell-wallet-pass-card-done': string;
284
285
  };
@@ -333,6 +333,7 @@ var en_US_default = {
333
333
  "pisell-wallet-pass-card-status-expired": "Expired",
334
334
  "pisell-wallet-pass-card-status-disabled": "Disabled",
335
335
  "pisell-wallet-pass-card-status-conflict": "Conflict",
336
+ "pisell-wallet-pass-card-status-lastPayment": "Last Payment",
336
337
  "pisell-wallet-pass-card-reset": "Reset",
337
338
  "pisell-wallet-pass-card-done": "Done"
338
339
  };
@@ -274,6 +274,7 @@ declare const _default: {
274
274
  'pisell-wallet-pass-card-status-expired': string;
275
275
  'pisell-wallet-pass-card-status-disabled': string;
276
276
  'pisell-wallet-pass-card-status-conflict': string;
277
+ 'pisell-wallet-pass-card-status-lastPayment': string;
277
278
  'pisell-wallet-pass-card-reset': string;
278
279
  'pisell-wallet-pass-card-done': string;
279
280
  };
@@ -324,6 +324,7 @@ var zh_CN_default = {
324
324
  "pisell-wallet-pass-card-status-expired": "已过期",
325
325
  "pisell-wallet-pass-card-status-disabled": "已禁用",
326
326
  "pisell-wallet-pass-card-status-conflict": "冲突",
327
+ "pisell-wallet-pass-card-status-lastPayment": "上次结算",
327
328
  "pisell-wallet-pass-card-reset": "清空",
328
329
  "pisell-wallet-pass-card-done": "保存"
329
330
  };
@@ -274,6 +274,7 @@ declare const _default: {
274
274
  'pisell-wallet-pass-card-status-expired': string;
275
275
  'pisell-wallet-pass-card-status-disabled': string;
276
276
  'pisell-wallet-pass-card-status-conflict': string;
277
+ 'pisell-wallet-pass-card-status-lastPayment': string;
277
278
  'pisell-wallet-pass-card-reset': string;
278
279
  'pisell-wallet-pass-card-done': string;
279
280
  };
@@ -325,6 +325,7 @@ var zh_TW_default = {
325
325
  "pisell-wallet-pass-card-status-expired": "已過期",
326
326
  "pisell-wallet-pass-card-status-disabled": "已禁用",
327
327
  "pisell-wallet-pass-card-status-conflict": "衝突",
328
+ "pisell-wallet-pass-card-status-lastPayment": "上次結算",
328
329
  "pisell-wallet-pass-card-reset": "清空",
329
330
  "pisell-wallet-pass-card-done": "保存"
330
331
  };
@@ -1 +1 @@
1
- export declare const isMobile: () => any;
1
+ export declare const isMobile: () => boolean;
@@ -3050,6 +3050,132 @@ const dataSourceTable = {
3050
3050
  },
3051
3051
  ],
3052
3052
  },
3053
+
3054
+ {
3055
+ type: 'group',
3056
+ title: {
3057
+ type: 'i18n',
3058
+ 'en-US': 'Other',
3059
+ 'zh-CN': '其他',
3060
+ },
3061
+ display: 'accordion',
3062
+ items: [
3063
+ {
3064
+ title: "本地记忆",
3065
+ display: "block",
3066
+ type: "group",
3067
+ items: [
3068
+ {
3069
+ name: "localSettings.enable",
3070
+ title: {
3071
+ label: {
3072
+ type: 'i18n',
3073
+ 'en-US': 'Enable settings memory',
3074
+ 'zh-CN': '启用设置记忆',
3075
+ 'zh-HK': '啟用設置記憶',
3076
+ },
3077
+ tip: {
3078
+ type: 'i18n',
3079
+ 'en-US': 'Automatically save and restore table settings',
3080
+ 'zh-CN': '自动保存和恢复表格设置',
3081
+ 'zh-HK': '自動保存和恢復表格設置',
3082
+ },
3083
+ },
3084
+ propType: "bool",
3085
+ setter: "BoolSetter",
3086
+ defaultValue: true,
3087
+ },
3088
+ {
3089
+ name: "localSettings.scope",
3090
+ title: {
3091
+ label: {
3092
+ type: 'i18n',
3093
+ 'en-US': 'Memory scope',
3094
+ 'zh-CN': '记忆范围',
3095
+ 'zh-HK': '記憶範圍',
3096
+ },
3097
+ tip: {
3098
+ type: 'i18n',
3099
+ 'en-US': 'Choose which settings to remember',
3100
+ 'zh-CN': '选择要记忆的设置项',
3101
+ 'zh-HK': '選擇要記憶的設置項',
3102
+ },
3103
+ },
3104
+ condition: {
3105
+ type: "JSFunction",
3106
+ value: 'target => !!target.getProps().getPropValue("localSettings.enable")',
3107
+ },
3108
+ setter: {
3109
+ componentName: "SelectSetter",
3110
+ props: {
3111
+ mode: "multiple",
3112
+ options: [
3113
+ { title: '筛选', value: "filters" },
3114
+ { title: '排序', value: "sorting" },
3115
+ { title: '列配置', value: "columns" },
3116
+ ],
3117
+ },
3118
+ },
3119
+ defaultValue: ["filters", "sorting", "columns"],
3120
+ },
3121
+ {
3122
+ name: "localSettings.excludedFilterFields",
3123
+ title: {
3124
+ label: {
3125
+ type: 'i18n',
3126
+ 'en-US': 'Excluded filter fields',
3127
+ 'zh-CN': '筛选排除字段',
3128
+ 'zh-HK': '篩選排除字段',
3129
+ },
3130
+ tip: {
3131
+ type: 'i18n',
3132
+ 'en-US': 'Filter fields that should not be remembered',
3133
+ 'zh-CN': '不需要记忆的筛选字段',
3134
+ 'zh-HK': '不需要記憶的篩選字段',
3135
+ },
3136
+ },
3137
+ condition: {
3138
+ type: "JSFunction",
3139
+ value: 'target => { const enable = !!target.getProps().getPropValue("localSettings.enable"); const scope = target.getProps().getPropValue("localSettings.scope") || []; return enable && Array.isArray(scope) && scope.includes("filters"); }',
3140
+ },
3141
+ setter: {
3142
+ componentName: "SelectSetter",
3143
+ props: (target: any) => {
3144
+ const filterList = (target.parent.parent.getPropValue("filter.items") || []) as any[];
3145
+
3146
+
3147
+ const searchDetail = target.parent.parent.getPropValue("search");
3148
+
3149
+ if (searchDetail && searchDetail.show) {
3150
+ filterList.unshift({
3151
+ label: "搜索",
3152
+ value: searchDetail.key || "_keywords",
3153
+ isHidden: false,
3154
+ });
3155
+ }
3156
+
3157
+ return {
3158
+ mode: "multiple",
3159
+ options: filterList
3160
+ .map((item: any) => ({
3161
+ title:
3162
+ (item && (typeof item.label === 'string' ? item.label : item.label?.["zh-CN"] || item.label?.["zh-HK"] || item.label?.en)) ||
3163
+ item?.key ||
3164
+ item?.columnKey ||
3165
+ "",
3166
+ value: item?.value || "",
3167
+ isHidden: item?.isHidden,
3168
+ }))
3169
+ .filter((opt: any) => opt.value && !opt.isHidden),
3170
+ };
3171
+ },
3172
+ },
3173
+ },
3174
+ ],
3175
+ },
3176
+
3177
+ ],
3178
+ },
3053
3179
  ],
3054
3180
  configure: {
3055
3181
  props: [
@@ -4536,6 +4662,119 @@ const dataSourceTable = {
4536
4662
  },
4537
4663
  ],
4538
4664
  },
4665
+ {
4666
+ title: "本地记忆",
4667
+ display: "block",
4668
+ type: "group",
4669
+ items: [
4670
+ {
4671
+ name: "localSettings.enable",
4672
+ title: {
4673
+ label: {
4674
+ type: 'i18n',
4675
+ 'en-US': 'Enable settings memory',
4676
+ 'zh-CN': '启用设置记忆',
4677
+ 'zh-HK': '啟用設置記憶',
4678
+ },
4679
+ tip: {
4680
+ type: 'i18n',
4681
+ 'en-US': 'Automatically save and restore table settings',
4682
+ 'zh-CN': '自动保存和恢复表格设置',
4683
+ 'zh-HK': '自動保存和恢復表格設置',
4684
+ },
4685
+ },
4686
+ propType: "bool",
4687
+ setter: "BoolSetter",
4688
+ defaultValue: true,
4689
+ },
4690
+ {
4691
+ name: "localSettings.scope",
4692
+ title: {
4693
+ label: {
4694
+ type: 'i18n',
4695
+ 'en-US': 'Memory scope',
4696
+ 'zh-CN': '记忆范围',
4697
+ 'zh-HK': '記憶範圍',
4698
+ },
4699
+ tip: {
4700
+ type: 'i18n',
4701
+ 'en-US': 'Choose which settings to remember',
4702
+ 'zh-CN': '选择要记忆的设置项',
4703
+ 'zh-HK': '選擇要記憶的設置項',
4704
+ },
4705
+ },
4706
+ condition: {
4707
+ type: "JSFunction",
4708
+ value: 'target => !!target.getProps().getPropValue("localSettings.enable")',
4709
+ },
4710
+ setter: {
4711
+ componentName: "SelectSetter",
4712
+ props: {
4713
+ mode: "multiple",
4714
+ options: [
4715
+ { title: '筛选', value: "filters" },
4716
+ { title: '排序', value: "sorting" },
4717
+ { title: '列配置', value: "columns" },
4718
+ ],
4719
+ },
4720
+ },
4721
+ defaultValue: ["filters", "sorting", "columns"],
4722
+ },
4723
+ {
4724
+ name: "localSettings.excludedFilterFields",
4725
+ title: {
4726
+ label: {
4727
+ type: 'i18n',
4728
+ 'en-US': 'Excluded filter fields',
4729
+ 'zh-CN': '筛选排除字段',
4730
+ 'zh-HK': '篩選排除字段',
4731
+ },
4732
+ tip: {
4733
+ type: 'i18n',
4734
+ 'en-US': 'Filter fields that should not be remembered',
4735
+ 'zh-CN': '不需要记忆的筛选字段',
4736
+ 'zh-HK': '不需要記憶的篩選字段',
4737
+ },
4738
+ },
4739
+ condition: {
4740
+ type: "JSFunction",
4741
+ value: 'target => { const enable = !!target.getProps().getPropValue("localSettings.enable"); const scope = target.getProps().getPropValue("localSettings.scope") || []; return enable && Array.isArray(scope) && scope.includes("filters"); }',
4742
+ },
4743
+ setter: {
4744
+ componentName: "SelectSetter",
4745
+ props: (target: any) => {
4746
+ const filterList = (target.parent.parent.getPropValue("filter.items") || []) as any[];
4747
+
4748
+
4749
+ const searchDetail = target.parent.parent.getPropValue("search");
4750
+
4751
+ if (searchDetail && searchDetail.show) {
4752
+ filterList.unshift({
4753
+ label: "搜索",
4754
+ value: searchDetail.key || "_keywords",
4755
+ isHidden: false,
4756
+ });
4757
+ }
4758
+
4759
+ return {
4760
+ mode: "multiple",
4761
+ options: filterList
4762
+ .map((item: any) => ({
4763
+ title:
4764
+ (item && (typeof item.label === 'string' ? item.label : item.label?.["zh-CN"] || item.label?.["zh-HK"] || item.label?.en)) ||
4765
+ item?.key ||
4766
+ item?.columnKey ||
4767
+ "",
4768
+ value: item?.value || "",
4769
+ isHidden: item?.isHidden,
4770
+ }))
4771
+ .filter((opt: any) => opt.value && !opt.isHidden),
4772
+ };
4773
+ },
4774
+ },
4775
+ },
4776
+ ],
4777
+ },
4539
4778
  {
4540
4779
  title: { label: '列配置', tip: '表格的列配置' },
4541
4780
  display: 'block',