@pisell/materials 2.2.81 → 2.2.82
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +145 -145
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +41 -31
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +37 -27
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +7 -6
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellToast/index.js +3 -0
- package/es/components/pisellWalletPassCard/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
- package/es/components/productCard/cartSkuCard/index.js +195 -0
- package/es/components/productCard/cartSkuCard/index.less +69 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +93 -0
- package/es/components/{pisellVHFix/index.js → productCard/cartSkuCard/locales.js} +21 -30
- package/es/components/productCard/components/Packages/utils.d.ts +2 -2
- package/es/components/productCard/index.d.ts +3 -1
- package/es/components/productCard/index.js +2 -0
- package/es/components/productCard/utils.js +8 -6
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +7 -6
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellToast/index.js +3 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
- package/lib/components/{pisellVHFix → productCard/cartSkuCard/components/holders}/index.js +19 -23
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
- package/lib/components/productCard/cartSkuCard/index.js +216 -0
- package/lib/components/productCard/cartSkuCard/index.less +69 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +93 -0
- package/lib/components/productCard/cartSkuCard/locales.js +58 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
- package/lib/components/productCard/index.d.ts +3 -1
- package/lib/components/productCard/index.js +2 -0
- package/lib/components/productCard/utils.js +7 -6
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +8 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
- package/package.json +1 -1
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/media/index.d.ts +0 -18
- package/es/components/media/index.js +0 -340
- package/es/components/media/index.less +0 -100
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellAdjustPrice/index.d.ts +0 -9
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
- package/es/components/pisellVHFix/index.d.ts +0 -13
- package/es/components/pisellVHFix/index.less +0 -10
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/types.d.ts +0 -251
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/walletCard/index.d.ts +0 -67
- package/es/locales/en-US.d.ts +0 -278
- package/es/locales/zh-CN.d.ts +0 -273
- package/es/locales/zh-TW.d.ts +0 -273
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/media/index.d.ts +0 -18
- package/lib/components/media/index.js +0 -265
- package/lib/components/media/index.less +0 -100
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
- package/lib/components/pisellVHFix/index.d.ts +0 -13
- package/lib/components/pisellVHFix/index.less +0 -10
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/walletCard/index.d.ts +0 -67
- package/lib/locales/en-US.d.ts +0 -278
- package/lib/locales/zh-CN.d.ts +0 -273
- package/lib/locales/zh-TW.d.ts +0 -273
|
@@ -0,0 +1,93 @@
|
|
|
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.product.card.day': (val: number) => string;
|
|
8
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
9
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
10
|
+
'pisell2.product.card.discount.note': string;
|
|
11
|
+
'pisell2.product.card.edit': string;
|
|
12
|
+
'pisell2.product.card.discount.add.note': string;
|
|
13
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
14
|
+
'pisell2.product.card.confirm': string;
|
|
15
|
+
'pisell2.product.card.cancel': string;
|
|
16
|
+
'pisell2.product.card.note.pla': string;
|
|
17
|
+
'pisell2.product.card.items.package': string;
|
|
18
|
+
'pisell2.product.card.view-all': string;
|
|
19
|
+
'pisell2.product.card.view-less': string;
|
|
20
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
21
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
22
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
23
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
24
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
25
|
+
'pisell2.product.card.sales': string;
|
|
26
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
27
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
28
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
29
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
30
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
31
|
+
};
|
|
32
|
+
'zh-CN': {
|
|
33
|
+
'pisell2.product.card.discount.reason': string;
|
|
34
|
+
'pisell2.cart.sku-card.more': string;
|
|
35
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
36
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
37
|
+
'pisell2.product.card.edit': string;
|
|
38
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
39
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
40
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
41
|
+
'pisell2.product.card.discount.note': string;
|
|
42
|
+
'pisell2.product.card.discount.add.note': string;
|
|
43
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
44
|
+
'pisell2.product.card.confirm': string;
|
|
45
|
+
'pisell2.product.card.cancel': string;
|
|
46
|
+
'pisell2.product.card.note.pla': string;
|
|
47
|
+
'pisell2.product.card.items.package': string;
|
|
48
|
+
'pisell2.product.card.view-all': string;
|
|
49
|
+
'pisell2.product.card.view-less': string;
|
|
50
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
51
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
52
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
53
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
54
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
55
|
+
'pisell2.product.card.sales': string;
|
|
56
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
57
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
58
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
59
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
60
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
61
|
+
};
|
|
62
|
+
'zh-HK': {
|
|
63
|
+
'pisell2.product.card.discount.reason': string;
|
|
64
|
+
'pisell2.cart.sku-card.more': string;
|
|
65
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
66
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
67
|
+
'pisell2.product.card.edit': string;
|
|
68
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
69
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
70
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
71
|
+
'pisell2.product.card.discount.note': string;
|
|
72
|
+
'pisell2.product.card.discount.add.note': string;
|
|
73
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
74
|
+
'pisell2.product.card.confirm': string;
|
|
75
|
+
'pisell2.product.card.cancel': string;
|
|
76
|
+
'pisell2.product.card.note.pla': string;
|
|
77
|
+
'pisell2.product.card.items.package': string;
|
|
78
|
+
'pisell2.product.card.view-all': string;
|
|
79
|
+
'pisell2.product.card.view-less': string;
|
|
80
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
81
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
82
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
83
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
84
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
85
|
+
'pisell2.product.card.sales': string;
|
|
86
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
87
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
88
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
89
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
90
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export default _default;
|
|
@@ -4,33 +4,24 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}), maxHeight && {
|
|
29
|
-
maxHeight: "calc(var(--vh, 1vh) * ".concat(height, ")")
|
|
30
|
-
});
|
|
31
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: "pisell-vh-fix ".concat(className || ''),
|
|
33
|
-
style: containerStyle
|
|
34
|
-
}, children);
|
|
35
|
-
};
|
|
36
|
-
export default PisellVHFix;
|
|
7
|
+
import localeTexts from "../locales";
|
|
8
|
+
export default {
|
|
9
|
+
en: _objectSpread(_objectSpread({}, localeTexts.en), {}, {
|
|
10
|
+
'pisell2.product.card.discount.reason': 'Discount reason',
|
|
11
|
+
'pisell2.cart.sku-card.more': 'more...',
|
|
12
|
+
'pisell2.cart.sku-card.packages.title': 'Items in package',
|
|
13
|
+
'pisell2.cart.sku-card.sales.title': 'Sales'
|
|
14
|
+
}),
|
|
15
|
+
'zh-CN': _objectSpread(_objectSpread({}, localeTexts['zh-CN']), {}, {
|
|
16
|
+
'pisell2.product.card.discount.reason': '折扣原因',
|
|
17
|
+
'pisell2.cart.sku-card.more': '更多……',
|
|
18
|
+
'pisell2.cart.sku-card.packages.title': '包含的商品',
|
|
19
|
+
'pisell2.cart.sku-card.sales.title': '销售'
|
|
20
|
+
}),
|
|
21
|
+
'zh-HK': _objectSpread(_objectSpread({}, localeTexts['zh-HK']), {}, {
|
|
22
|
+
'pisell2.product.card.discount.reason': '折扣原因',
|
|
23
|
+
'pisell2.cart.sku-card.more': '更多……',
|
|
24
|
+
'pisell2.cart.sku-card.packages.title': '包含的商品',
|
|
25
|
+
'pisell2.cart.sku-card.sales.title': '銷售'
|
|
26
|
+
})
|
|
27
|
+
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @Author: WangHan
|
|
7
7
|
* @Date: 2024-11-22 10:01
|
|
8
8
|
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "" | "
|
|
9
|
+
export declare const minusSign: (item: any, type?: string) => "-" | "";
|
|
10
10
|
/**
|
|
11
11
|
* @title: 金额格式化
|
|
12
12
|
* @description:
|
|
@@ -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) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -27,6 +27,7 @@ import { defaultValue } from "./status";
|
|
|
27
27
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
28
28
|
import Warning from "./components/Warning";
|
|
29
29
|
import "./index.less";
|
|
30
|
+
import CartSkuCard from "./cartSkuCard";
|
|
30
31
|
var ProductCard = function ProductCard(props) {
|
|
31
32
|
var _utils$storage, _dataSource$items;
|
|
32
33
|
var context = useEngineContext();
|
|
@@ -173,4 +174,5 @@ var ProductCard = function ProductCard(props) {
|
|
|
173
174
|
}
|
|
174
175
|
}))));
|
|
175
176
|
};
|
|
177
|
+
ProductCard.V2 = CartSkuCard;
|
|
176
178
|
export default ProductCard;
|
|
@@ -60,6 +60,8 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
60
60
|
var utils = context.appHelper.utils || {};
|
|
61
61
|
var locale = (item === null || item === void 0 ? void 0 : item.locale) || (utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('umi_locale')) || 'en-US';
|
|
62
62
|
var isEn = locale === 'en-US' || locale === 'en';
|
|
63
|
+
// 灵活时长, 默认按分钟计算
|
|
64
|
+
var durationType = (item === null || item === void 0 ? void 0 : item.duration_type) === 'flexible' ? 'minutes' : item === null || item === void 0 ? void 0 : item.duration_type;
|
|
63
65
|
var localeTypes = {
|
|
64
66
|
'en-US': 'en',
|
|
65
67
|
'zh-CN': 'zh-cn',
|
|
@@ -71,7 +73,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
71
73
|
var diffInDays = (item === null || item === void 0 ? void 0 : item.custom_day_count) || endDate.diff(startDate, 'day');
|
|
72
74
|
|
|
73
75
|
// 1.2时间格式, 同天显示 年月日 开始 - 结束, 不同天 年月日 开始 - 年月日 结束
|
|
74
|
-
if (
|
|
76
|
+
if (durationType) {
|
|
75
77
|
var sameDay = startDate.isSame(endDate, 'day');
|
|
76
78
|
var dateFormat = isEn ? 'DD/MM/YYYY' : 'YYYY-MM-DD';
|
|
77
79
|
var timeFormat = 'HH:mm';
|
|
@@ -98,14 +100,14 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
98
100
|
}
|
|
99
101
|
var startDateTime = "".concat(startDate.format('YYYY-MM-DD'), " ").concat(startTime);
|
|
100
102
|
var endDateTime = "".concat(endDate.format('YYYY-MM-DD'), " ").concat(endTime);
|
|
101
|
-
var _duration = dayjs(endDateTime).diff(dayjs(startDateTime),
|
|
103
|
+
var _duration = dayjs(endDateTime).diff(dayjs(startDateTime), durationType);
|
|
102
104
|
var durationText = '';
|
|
103
|
-
if (
|
|
105
|
+
if (durationType === 'minutes') {
|
|
104
106
|
// 转为小时+分钟
|
|
105
107
|
var hours = Math.floor(_duration / 60);
|
|
106
108
|
var minutes = _duration % 60;
|
|
107
109
|
durationText = locales.getText('pisell2.product.card.hour.minute')(hours, minutes);
|
|
108
|
-
} else if (
|
|
110
|
+
} else if (durationType === 'days') {
|
|
109
111
|
durationText = locales.getText('pisell2.product.card.day')(_duration);
|
|
110
112
|
} else {
|
|
111
113
|
durationText = "".concat(_duration);
|
|
@@ -127,7 +129,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
// 显示时长分钟
|
|
130
|
-
if (
|
|
132
|
+
if (durationType === 'minutes') {
|
|
131
133
|
diffInDays = endDate.diff(startDate, 'minute');
|
|
132
134
|
}
|
|
133
135
|
var date = "".concat(startDate.format(_format), " ~ ").concat(endDate.format(_format));
|
|
@@ -141,7 +143,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
141
143
|
'minutes': locales.getText('pisell2.product.card.minute')(diffInDays),
|
|
142
144
|
'event': locales.getText('pisell2.product.card.day.event')(diffInDays)
|
|
143
145
|
};
|
|
144
|
-
text = (textTypes === null || textTypes === void 0 ? void 0 : textTypes[
|
|
146
|
+
text = (textTypes === null || textTypes === void 0 ? void 0 : textTypes[durationType]) || text;
|
|
145
147
|
var duration = "".concat(diffInDays).concat(text);
|
|
146
148
|
return "".concat(date, " (").concat(duration, ")");
|
|
147
149
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const fieldMaps: {
|
|
2
3
|
text: {
|
|
3
4
|
field: {
|
|
@@ -197,12 +198,12 @@ export declare const fieldList: ({
|
|
|
197
198
|
field_icon: string;
|
|
198
199
|
field_name: string;
|
|
199
200
|
field_type: string;
|
|
200
|
-
default_value:
|
|
201
|
+
default_value: boolean;
|
|
201
202
|
} | {
|
|
202
203
|
field_icon: string;
|
|
203
204
|
field_name: string;
|
|
204
205
|
field_type: string;
|
|
205
|
-
default_value:
|
|
206
|
+
default_value: string;
|
|
206
207
|
} | {
|
|
207
208
|
field_icon: string;
|
|
208
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
|
-
}) => ("
|
|
158
|
+
}) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_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 {};
|
package/es/utils/index.d.ts
CHANGED
package/es/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string |
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string |
|
|
2
|
+
dataSourceKey: string | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
4
4
|
};
|
|
5
5
|
export default useDataSourceKey;
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title:
|
|
20
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle:
|
|
29
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
52
52
|
width: number;
|
|
53
53
|
align: "center" | "left" | "right";
|
|
54
54
|
fixed: false | "left" | "right";
|
|
55
|
-
type: "
|
|
55
|
+
type: "link" | "button";
|
|
56
56
|
items: OperationItem[];
|
|
57
57
|
} | undefined;
|
|
58
58
|
operationContent?: {
|
|
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
70
70
|
useCustomAction: boolean;
|
|
71
71
|
actionType: string;
|
|
72
72
|
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "small" | "
|
|
73
|
+
openContentSize: "small" | "large" | "middle";
|
|
74
74
|
openTitle: string;
|
|
75
75
|
key: string;
|
|
76
76
|
} | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
2
3
|
options?: any;
|
|
3
4
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const formFieldMap: {
|
|
2
3
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
3
4
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -59,13 +60,11 @@ declare const formFieldMap: {
|
|
|
59
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
62
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) =>
|
|
63
|
+
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
|
|
63
64
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
65
|
} & {
|
|
65
66
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
66
|
-
}) | 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("
|
|
67
|
-
onChange: (value: string) => void;
|
|
68
|
-
} & 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("./Input/type").InputProps> & {
|
|
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> & {
|
|
69
68
|
JSON: import("react").FC<any>;
|
|
70
69
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
71
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>;
|
|
@@ -85,7 +84,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
85
84
|
name?: string | undefined;
|
|
86
85
|
fieldKey?: string | undefined;
|
|
87
86
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
88
|
-
}) |
|
|
87
|
+
}) | (import("react").FC<{}> & {
|
|
89
88
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
90
89
|
} & {
|
|
91
90
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -97,5 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
97
96
|
extraParams?: Record<string, any> | undefined;
|
|
98
97
|
} & {
|
|
99
98
|
dataSource?: any;
|
|
100
|
-
}) => JSX.Element) | import("react").FC<
|
|
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
|
+
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
102
|
export { getFieldComponent, formFieldMap };
|