@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,50 +1,50 @@
1
1
  export default {
2
- "table-filter-search": "搜索",
3
- "table-filter-clear": "清除",
4
- "table-filter-filter": "篩選",
5
- "table-filter-min": "最小",
6
- "table-filter-max": "最大",
7
- "table-pagination-previous": "上一頁",
8
- "table-pagination-next": "下一頁",
9
- "table-pagination-total": function tablePaginationTotal(current, total) {
2
+ 'table-filter-search': '搜索',
3
+ 'table-filter-clear': '清除',
4
+ 'table-filter-filter': '篩選',
5
+ 'table-filter-min': '最小',
6
+ 'table-filter-max': '最大',
7
+ 'table-pagination-previous': '上一頁',
8
+ 'table-pagination-next': '下一頁',
9
+ 'table-pagination-total': function tablePaginationTotal(current, total) {
10
10
  return "\u7B2C".concat(current, "\u9801 \u5171").concat(total, "\u9801");
11
11
  },
12
- "select-dropdown-render-select-all": "全選",
13
- "select-dropdown-render-search": "搜索",
14
- "sort-button-text": "排序",
15
- "sort-oldest-to-newest": "從舊到新",
16
- "sort-newest-to-oldest": "從新到舊",
17
- "sort-a-z": "A 到 Z",
18
- "sort-z-a": "Z 到 A",
19
- "sort-from-morning-to-night": "從早到晚",
20
- "sort-from-evening-to-morning": "從晚到早",
21
- "sort-0-9": "0 ~ 9",
22
- "sort-9-0": "9 ~ 0",
23
- "table-action-filter-button": "篩選",
24
- "table-action-filter-quick-filter": "快速篩選",
25
- "table-action-filter-quick-filter-tip": function tableActionFilterQuickFilterTip(count) {
12
+ 'select-dropdown-render-select-all': '全選',
13
+ 'select-dropdown-render-search': '搜索',
14
+ 'sort-button-text': '排序',
15
+ 'sort-oldest-to-newest': '從舊到新',
16
+ 'sort-newest-to-oldest': '從新到舊',
17
+ 'sort-a-z': 'A 到 Z',
18
+ 'sort-z-a': 'Z 到 A',
19
+ 'sort-from-morning-to-night': '從早到晚',
20
+ 'sort-from-evening-to-morning': '從晚到早',
21
+ 'sort-0-9': '0 ~ 9',
22
+ 'sort-9-0': '9 ~ 0',
23
+ 'table-action-filter-button': '篩選',
24
+ 'table-action-filter-quick-filter': '快速篩選',
25
+ 'table-action-filter-quick-filter-tip': function tableActionFilterQuickFilterTip(count) {
26
26
  return "\u5728\u9801\u9762\u4E0A\u76F4\u63A5\u555F\u7528\u5FEB\u901F\u7BE9\u9078\uFF0C\u4EE5\u4FBF\u9032\u884C\u65B9\u4FBF\u7684\u7BE9\u9078\u64CD\u4F5C\uFF0C\u6700\u591A\u5141\u8A31\u4F7F\u7528".concat(count, "\u500B\u7BE9\u9078\u5668\u3002");
27
27
  },
28
- "table-action-filter-other-filter": "篩選",
29
- "table-action-filter-other-filter-tip": function tableActionFilterOtherFilterTip() {
30
- return "在清單中選擇篩選條件進行篩選操作,並顯示對應的結果。";
28
+ 'table-action-filter-other-filter': '篩選',
29
+ 'table-action-filter-other-filter-tip': function tableActionFilterOtherFilterTip() {
30
+ return '在清單中選擇篩選條件進行篩選操作,並顯示對應的結果。';
31
31
  },
32
- "table-action-group-by-title": "分組條件",
33
- "table-action-group-by-title-tip": "請從下拉式選單中選擇要分組的字段,以便更好地組織和瀏覽數據。",
34
- "table-action-column-title": "表頭設置",
35
- "table-column-group-records": "條記錄",
36
- "table-column-group-lock-tip": "固定列不可移動順序",
37
- "table-column-drag-sort-disabled-tip": "已開啟自動排序,無法手動拖曳",
38
- "table-action-filter-no-filter": "沒有可用的篩選器。",
39
- "table-action-range-picker-presets-today": "今天",
40
- "table-action-range-picker-presets-yesterday": "昨天",
41
- "table-action-range-picker-presets-last-3-day": "過去3天",
42
- "table-action-range-picker-presets-last-7-day": "過去7天",
43
- "table-action-range-picker-presets-last-14-day": "過去14天",
44
- "table-action-range-picker-presets-last-30-day": "過去30天",
45
- "table-action-range-picker-presets-last-90-day": "過去90天",
46
- "virtual-keyboard-time-now": "此刻",
47
- "virtual-keyboard-time-ok": "確定",
32
+ 'table-action-group-by-title': '分組條件',
33
+ 'table-action-group-by-title-tip': '請從下拉式選單中選擇要分組的字段,以便更好地組織和瀏覽數據。',
34
+ 'table-action-column-title': '表頭設置',
35
+ 'table-column-group-records': '條記錄',
36
+ 'table-column-group-lock-tip': '固定列不可移動順序',
37
+ 'table-column-drag-sort-disabled-tip': '已開啟自動排序,無法手動拖曳',
38
+ 'table-action-filter-no-filter': '沒有可用的篩選器。',
39
+ 'table-action-range-picker-presets-today': '今天',
40
+ 'table-action-range-picker-presets-yesterday': '昨天',
41
+ 'table-action-range-picker-presets-last-3-day': '過去3天',
42
+ 'table-action-range-picker-presets-last-7-day': '過去7天',
43
+ 'table-action-range-picker-presets-last-14-day': '過去14天',
44
+ 'table-action-range-picker-presets-last-30-day': '過去30天',
45
+ 'table-action-range-picker-presets-last-90-day': '過去90天',
46
+ 'virtual-keyboard-time-now': '此刻',
47
+ 'virtual-keyboard-time-ok': '確定',
48
48
  'batch-editor-batch-edit': '批量編輯',
49
49
  'batch-editor-actions': '操作',
50
50
  'batch-editor-remove': '移除',
@@ -53,7 +53,7 @@ export default {
53
53
  'batch-editor-search': '搜索',
54
54
  'batch-editor-confirm': '確認',
55
55
  'batch-editor-batch-remove': '批量移除',
56
- 'batch-editor-what-price': "什麼價格",
56
+ 'batch-editor-what-price': '什麼價格',
57
57
  'batch-editor-quick-edit': '快速編輯',
58
58
  'batch-editor-quick-edit-title': function batchEditorQuickEditTitle(product, num) {
59
59
  return "\u60A8\u5DF2\u9078\u64C7 ".concat(product, " \u7B49").concat(num, "\u4EF6\u7522\u54C1");
@@ -131,7 +131,7 @@ export default {
131
131
  'date-picker-first_day_of_next_month': '下個月的第一天',
132
132
  'date-picker-last_day_of_last_month': '上個月的最後一天',
133
133
  'date-picker-invalid-date': '無效日期',
134
- "date-picker-apply": "确定",
134
+ 'date-picker-apply': '确定',
135
135
  'date-picker-shortcut-custom': '自定義',
136
136
  'pisell-input-copy-success': '復製成功',
137
137
  'pisell-input-copy': '復製',
@@ -155,12 +155,12 @@ export default {
155
155
  'pisell-wallet-pass-card-required': '此欄位為必填',
156
156
  'pisell-wallet-pass-card-expireDate': '長期',
157
157
  // 金额修改组件
158
- 'pisell-adjust-price-price-override': "一口價",
159
- 'pisell-adjust-price-discount': "折扣",
160
- 'pisell-adjust-price-discount-amount': "金額",
161
- 'pisell-adjust-price-discount-percentage': "百分比",
162
- 'pisell-adjust-price-total-after-discount': "打折后總價",
163
- 'pisell-adjust-price-discount-can-be-maximum': "折扣最高可達",
158
+ 'pisell-adjust-price-price-override': '一口價',
159
+ 'pisell-adjust-price-discount': '折扣',
160
+ 'pisell-adjust-price-discount-amount': '金額',
161
+ 'pisell-adjust-price-discount-percentage': '百分比',
162
+ 'pisell-adjust-price-total-after-discount': '打折后總價',
163
+ 'pisell-adjust-price-discount-can-be-maximum': '折扣最高可達',
164
164
  'pisell-discount-card-title': '折扣',
165
165
  'pisell-discount-card-unit': '折扣',
166
166
  'pisell-discount-card-fixed-amount-prefix': '立減',
@@ -198,6 +198,7 @@ export default {
198
198
  'walletCard-done': '完成',
199
199
  'walletCard-qrcode': '二維碼',
200
200
  'walletCard-barcode': '條形碼',
201
+ 'walletCard-viewPin': '查看PIN',
201
202
  // 上传组件
202
203
  'pisell-upload-button': '上傳',
203
204
  'pisell-upload-setting-size-error': function pisellUploadSettingSizeError(maxSize) {
@@ -273,7 +274,7 @@ export default {
273
274
  'pisell-lowcode-app-version-control-new-version': '新版本',
274
275
  'pisell-lowcode-app-version-control-promote-to-live': '發布正式版',
275
276
  'pisell-lowcode-app-version-control-promote-version': function pisellLowcodeAppVersionControlPromoteVersion(version) {
276
- return "\u767C\u5E03\u7248\u672C ".concat(version || "", "?");
277
+ return "\u767C\u5E03\u7248\u672C ".concat(version || '', "?");
277
278
  },
278
279
  'pisell-lowcode-app-version-control-promote-version-describe': '您確定要發佈此版本嗎?',
279
280
  'pisell-lowcode-app-version-control-promote-version-ok': '發布',
@@ -285,27 +286,27 @@ export default {
285
286
  'pisell-lowcode-navigation-menu-add-sub-menu': '添加子菜單',
286
287
  'pisell-lowcode-navigation-menu-add-page': '添加頁面',
287
288
  'pisell-lowcode-navigation-menu-add-page-tip': '沒有找到導航, 請添加子菜單或頁面。',
288
- 'pisell-lowcode-navigation-menu-tag-base': "基础",
289
- 'pisell-lowcode-navigation-menu-tag-proCode': "Pro code",
290
- 'pisell-lowcode-navigation-menu-tag-pisell1': "Pisell 1.0",
291
- 'pisell-lowcode-navigation-menu-tag-group': "分組",
292
- 'pisell-lowcode-navigation-menu-tag-sub-menu': "子菜單",
293
- 'pisell-lowcode-navigation-menu-tag-custom': "自定義",
289
+ 'pisell-lowcode-navigation-menu-tag-base': '基础',
290
+ 'pisell-lowcode-navigation-menu-tag-proCode': 'Pro code',
291
+ 'pisell-lowcode-navigation-menu-tag-pisell1': 'Pisell 1.0',
292
+ 'pisell-lowcode-navigation-menu-tag-group': '分組',
293
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': '子菜單',
294
+ 'pisell-lowcode-navigation-menu-tag-custom': '自定義',
294
295
  // 应用标识符
295
296
  'pisell-data-source-form-app-identifier-pattern': '只能包含小寫字母、數字、連字符、點和下劃線',
296
297
  'pisell-data-source-form-app-identifier-start-with-letter': '必須以字母開頭',
297
298
  'pisell-data-source-form-app-identifier-special-ends': '不能以連字符、點或下劃線結尾',
298
299
  'pisell-data-source-form-app-identifier-consecutive-special': '不能包含連續的連字符、點或下劃線',
299
300
  // QR Scanner 相關文案
300
- "qrscanner-loading": "正在識別二維碼...",
301
- "qrscanner-success": "識別成功: ",
302
- "qrscanner-success-qrcode": "二維碼識別成功: ",
303
- "qrscanner-success-barcode": "條形碼識別成功: ",
304
- "qrscanner-error-upload-image": "請上傳圖片文件",
305
- "qrscanner-error-load-failed": "讀取文件失敗",
306
- "qrscanner-error-no-code": "未檢測到二維碼或條形碼",
307
- "qrscanner-error-camera-init": "無法啟動攝像頭,請確保已授權",
308
- "qrscanner-error-process-image": "處理圖像時出錯",
301
+ 'qrscanner-loading': '正在識別二維碼...',
302
+ 'qrscanner-success': '識別成功: ',
303
+ 'qrscanner-success-qrcode': '二維碼識別成功: ',
304
+ 'qrscanner-success-barcode': '條形碼識別成功: ',
305
+ 'qrscanner-error-upload-image': '請上傳圖片文件',
306
+ 'qrscanner-error-load-failed': '讀取文件失敗',
307
+ 'qrscanner-error-no-code': '未檢測到二維碼或條形碼',
308
+ 'qrscanner-error-camera-init': '無法啟動攝像頭,請確保已授權',
309
+ 'qrscanner-error-process-image': '處理圖像時出錯',
309
310
  // 登录注册组件
310
311
  'pisell-login-and-register-title': '登入到您的帳戶',
311
312
  'pisell-login-and-register-subtitle': '歡迎回來!請輸入您的詳細信息。',
@@ -320,7 +321,7 @@ export default {
320
321
  'pisell-login-and-register-google': '繼續使用Google',
321
322
  'pisell-login-and-register-facebook': '繼續使用Facebook',
322
323
  'pisell-login-and-register-apple': '繼續使用Apple',
323
- 'pisell-login-and-register-sign-up': "沒有帳戶?註冊",
324
+ 'pisell-login-and-register-sign-up': '沒有帳戶?註冊',
324
325
  'pisell-login-and-register-login-tab': '登入',
325
326
  'pisell-login-and-register-register-tab': '註冊',
326
327
  'pisell-login-and-register-register-email-placeholder': '輸入您的電子郵件',
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AppVersionControlProps } from './types';
2
3
  import './index.less';
3
4
  declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Drawer } from 'antd';
2
3
  import { OperationItem } from '../type';
3
4
  declare const useDrawerState: (operationContent?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {
@@ -60,7 +60,11 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
64
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
+ } & {
66
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
64
68
  JSON: import("react").FC<any>;
65
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
66
70
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -81,10 +85,6 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
81
85
  fieldKey?: string | undefined;
82
86
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
83
87
  }) | (import("react").FC<{}> & {
84
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
85
- } & {
86
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
87
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
88
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
89
  } & {
90
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -96,7 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
96
96
  extraParams?: Record<string, any> | undefined;
97
97
  } & {
98
98
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
+ }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
100
  onChange: (value: string) => void;
101
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ValueProps, SortType } from '../types';
3
4
  declare type IdType = string | number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { SortType } from './types';
3
4
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
+ import React from 'react';
3
+ interface IconFontProps extends IconComponentProps {
4
+ type: string;
5
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
+ }
7
+ declare const IconFont: React.FC<IconFontProps>;
8
+ export default IconFont;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export interface PisellContextType {
3
+ platform: 'h5' | 'pc' | 'ipad';
4
+ /** 货币符号 */
5
+ symbol?: string;
6
+ /** 当前语言环境 */
7
+ locale?: string;
8
+ /** 获取货币符号 */
9
+ getSymbolic?: () => string;
10
+ }
11
+ export declare const PisellContext: import("react").Context<PisellContextType>;
12
+ /**
13
+ * provider外获取当前全局配置
14
+ */
15
+ declare class GlobalConfig {
16
+ private config;
17
+ constructor();
18
+ setConfig(config: PisellContextType): void;
19
+ getConfig(): PisellContextType;
20
+ }
21
+ export declare const globalConfig: GlobalConfig;
22
+ export default PisellContext;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { PisellAdjustPriceProps } from './type';
4
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
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
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: 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
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -0,0 +1,22 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ resetText?: string;
21
+ doneText?: string;
22
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface ScanProps {
3
4
  onChange: (val: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps, ButtonProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  export interface CopyProps extends InputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
3
  export default Footer;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DiscountReason: (props: any) => JSX.Element;
3
2
  export default DiscountReason;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ declare type NativeProps<S extends string = never> = {
4
+ className?: string;
5
+ style?: React.CSSProperties & Partial<Record<S, string>>;
6
+ };
7
+ declare type PropagationEvent = 'click';
8
+ import './index.less';
9
+ declare type SideType = 'left' | 'right';
10
+ export declare type SwipeActionRef = {
11
+ close: () => void;
12
+ show: (side?: SideType) => void;
13
+ };
14
+ declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
+ export declare type Action = {
16
+ key: string | number;
17
+ text: ReactNode;
18
+ color?: ActionColor | string;
19
+ onClick?: (e: React.MouseEvent) => void;
20
+ };
21
+ export declare type SwipeActionProps = {
22
+ rightActions?: Action[];
23
+ leftActions?: Action[];
24
+ onAction?: (action: Action, e: React.MouseEvent) => void;
25
+ closeOnTouchOutside?: boolean;
26
+ closeOnAction?: boolean;
27
+ children: ReactNode;
28
+ stopPropagation?: PropagationEvent[];
29
+ onActionsReveal?: (side: SideType) => void;
30
+ onClose?: () => void;
31
+ escapeDom?: string;
32
+ } & NativeProps<'--background'>;
33
+ export declare const SwipeAction: React.ForwardRefExoticComponent<{
34
+ rightActions?: Action[] | undefined;
35
+ leftActions?: Action[] | undefined;
36
+ onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
37
+ closeOnTouchOutside?: boolean | undefined;
38
+ closeOnAction?: boolean | undefined;
39
+ children: ReactNode;
40
+ stopPropagation?: "click"[] | undefined;
41
+ onActionsReveal?: ((side: SideType) => void) | undefined;
42
+ onClose?: (() => void) | undefined;
43
+ escapeDom?: string | undefined;
44
+ } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
45
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductCardTypes } from '../types';
4
3
  interface ISKUCardProps extends ProductCardTypes {
@@ -0,0 +1,96 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.discount.reason': string;
4
+ 'pisell2.cart.sku-card.more': string;
5
+ 'pisell2.cart.sku-card.packages.title': string;
6
+ 'pisell2.cart.sku-card.sales.title': string;
7
+ 'pisell2.cart.sku-card.actions.delete': string;
8
+ 'pisell2.product.card.day': (val: number) => string;
9
+ 'pisell2.product.card.day.event': (val: number) => string;
10
+ 'pisell2.product.card.minute': (val: number) => string;
11
+ 'pisell2.product.card.discount.note': string;
12
+ 'pisell2.product.card.edit': string;
13
+ 'pisell2.product.card.discount.add.note': string;
14
+ 'pisell2.product.card.discount.edit.note': string;
15
+ 'pisell2.product.card.confirm': string;
16
+ 'pisell2.product.card.cancel': string;
17
+ 'pisell2.product.card.note.pla': string;
18
+ 'pisell2.product.card.items.package': string;
19
+ 'pisell2.product.card.view-all': string;
20
+ 'pisell2.product.card.view-less': string;
21
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
22
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
23
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
24
+ 'pisell2.product.card.add.holder.modal.title.1': string;
25
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
26
+ 'pisell2.product.card.sales': string;
27
+ 'pisell2.product.card.add.holder.modal.cancel': string;
28
+ 'pisell2.product.card.add.holder.modal.clear': string;
29
+ 'pisell2.product.card.add.holder.modal.apply': string;
30
+ 'pisell2.product.card.add.holder.modal.add': string;
31
+ 'pisell2.product.card.closing-soon.warning': string;
32
+ };
33
+ 'zh-CN': {
34
+ 'pisell2.product.card.discount.reason': string;
35
+ 'pisell2.cart.sku-card.more': string;
36
+ 'pisell2.cart.sku-card.packages.title': string;
37
+ 'pisell2.cart.sku-card.sales.title': string;
38
+ 'pisell2.cart.sku-card.actions.delete': string;
39
+ 'pisell2.product.card.edit': string;
40
+ 'pisell2.product.card.day': (val: number) => string;
41
+ 'pisell2.product.card.day.event': (val: number) => string;
42
+ 'pisell2.product.card.minute': (val: number) => string;
43
+ 'pisell2.product.card.discount.note': string;
44
+ 'pisell2.product.card.discount.add.note': string;
45
+ 'pisell2.product.card.discount.edit.note': string;
46
+ 'pisell2.product.card.confirm': string;
47
+ 'pisell2.product.card.cancel': string;
48
+ 'pisell2.product.card.note.pla': string;
49
+ 'pisell2.product.card.items.package': string;
50
+ 'pisell2.product.card.view-all': string;
51
+ 'pisell2.product.card.view-less': string;
52
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
53
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
54
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
55
+ 'pisell2.product.card.add.holder.modal.title.1': string;
56
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
57
+ 'pisell2.product.card.sales': string;
58
+ 'pisell2.product.card.add.holder.modal.cancel': string;
59
+ 'pisell2.product.card.add.holder.modal.clear': string;
60
+ 'pisell2.product.card.add.holder.modal.apply': string;
61
+ 'pisell2.product.card.add.holder.modal.add': string;
62
+ 'pisell2.product.card.closing-soon.warning': string;
63
+ };
64
+ 'zh-HK': {
65
+ 'pisell2.product.card.discount.reason': string;
66
+ 'pisell2.cart.sku-card.more': string;
67
+ 'pisell2.cart.sku-card.packages.title': string;
68
+ 'pisell2.cart.sku-card.sales.title': string;
69
+ 'pisell2.cart.sku-card.actions.delete': string;
70
+ 'pisell2.product.card.edit': string;
71
+ 'pisell2.product.card.day': (val: number) => string;
72
+ 'pisell2.product.card.day.event': (val: number) => string;
73
+ 'pisell2.product.card.minute': (val: number) => string;
74
+ 'pisell2.product.card.discount.note': string;
75
+ 'pisell2.product.card.discount.add.note': string;
76
+ 'pisell2.product.card.discount.edit.note': string;
77
+ 'pisell2.product.card.confirm': string;
78
+ 'pisell2.product.card.cancel': string;
79
+ 'pisell2.product.card.note.pla': string;
80
+ 'pisell2.product.card.items.package': string;
81
+ 'pisell2.product.card.view-all': string;
82
+ 'pisell2.product.card.view-less': string;
83
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
84
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
85
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
86
+ 'pisell2.product.card.add.holder.modal.title.1': string;
87
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
88
+ 'pisell2.product.card.sales': string;
89
+ 'pisell2.product.card.add.holder.modal.cancel': string;
90
+ 'pisell2.product.card.add.holder.modal.clear': string;
91
+ 'pisell2.product.card.add.holder.modal.apply': string;
92
+ 'pisell2.product.card.add.holder.modal.add': string;
93
+ 'pisell2.product.card.closing-soon.warning': string;
94
+ };
95
+ };
96
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
4
+ export default Action;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
3
4
  export default DeleteButton;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
3
4
  export default SelectHolder;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface ResourceItem {
3
4
  id: string | number;