@pisell/materials 2.2.81 → 2.2.83
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 +5 -5
- package/build/lowcode/preview.js +148 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +34 -39
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +34 -39
- 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/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- 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/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/components/Sales/index.js +1 -1
- 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/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/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 +2 -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/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/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- 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/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/components/Sales/index.js +1 -1
- 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/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/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 +2 -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/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 +3 -3
- 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/pisellVHFix/index.d.ts +0 -13
- package/es/components/pisellVHFix/index.less +0 -10
- 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/pisellVHFix/index.d.ts +0 -13
- package/lib/components/pisellVHFix/index.less +0 -10
|
@@ -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;
|
|
@@ -0,0 +1,58 @@
|
|
|
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/productCard/cartSkuCard/locales.ts
|
|
30
|
+
var locales_exports = {};
|
|
31
|
+
__export(locales_exports, {
|
|
32
|
+
default: () => locales_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(locales_exports);
|
|
35
|
+
var import_locales = __toESM(require("../locales"));
|
|
36
|
+
var locales_default = {
|
|
37
|
+
en: {
|
|
38
|
+
...import_locales.default.en,
|
|
39
|
+
"pisell2.product.card.discount.reason": "Discount reason",
|
|
40
|
+
"pisell2.cart.sku-card.more": "more...",
|
|
41
|
+
"pisell2.cart.sku-card.packages.title": "Items in package",
|
|
42
|
+
"pisell2.cart.sku-card.sales.title": "Sales"
|
|
43
|
+
},
|
|
44
|
+
"zh-CN": {
|
|
45
|
+
...import_locales.default["zh-CN"],
|
|
46
|
+
"pisell2.product.card.discount.reason": "折扣原因",
|
|
47
|
+
"pisell2.cart.sku-card.more": "更多……",
|
|
48
|
+
"pisell2.cart.sku-card.packages.title": "包含的商品",
|
|
49
|
+
"pisell2.cart.sku-card.sales.title": "销售"
|
|
50
|
+
},
|
|
51
|
+
"zh-HK": {
|
|
52
|
+
...import_locales.default["zh-HK"],
|
|
53
|
+
"pisell2.product.card.discount.reason": "折扣原因",
|
|
54
|
+
"pisell2.cart.sku-card.more": "更多……",
|
|
55
|
+
"pisell2.cart.sku-card.packages.title": "包含的商品",
|
|
56
|
+
"pisell2.cart.sku-card.sales.title": "銷售"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
@@ -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;
|
|
@@ -44,7 +44,7 @@ var Sales = ({ item, isShowNote }) => {
|
|
|
44
44
|
return {
|
|
45
45
|
...p,
|
|
46
46
|
title: p == null ? void 0 : p.product_title,
|
|
47
|
-
price: p == null ? void 0 : p.
|
|
47
|
+
price: p == null ? void 0 : p.selling_price,
|
|
48
48
|
symbol: item.symbol,
|
|
49
49
|
num: p == null ? void 0 : p.product_quantity,
|
|
50
50
|
total: p == null ? void 0 : p.payment_price
|
|
@@ -51,6 +51,7 @@ var import_status = require("./status");
|
|
|
51
51
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
52
52
|
var import_Warning = __toESM(require("./components/Warning"));
|
|
53
53
|
var import_index = require("./index.less");
|
|
54
|
+
var import_cartSkuCard = __toESM(require("./cartSkuCard"));
|
|
54
55
|
var ProductCard = (props) => {
|
|
55
56
|
var _a, _b;
|
|
56
57
|
const context = (0, import_useEngineContext.default)();
|
|
@@ -197,4 +198,5 @@ var ProductCard = (props) => {
|
|
|
197
198
|
)
|
|
198
199
|
);
|
|
199
200
|
};
|
|
201
|
+
ProductCard.V2 = import_cartSkuCard.default;
|
|
200
202
|
var productCard_default = ProductCard;
|
|
@@ -66,6 +66,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
66
66
|
const utils = context.appHelper.utils || {};
|
|
67
67
|
const locale = (item == null ? void 0 : item.locale) || ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
68
68
|
const isEn2 = locale === "en-US" || locale === "en";
|
|
69
|
+
const durationType = (item == null ? void 0 : item.duration_type) === "flexible" ? "minutes" : item == null ? void 0 : item.duration_type;
|
|
69
70
|
const localeTypes = {
|
|
70
71
|
"en-US": "en",
|
|
71
72
|
"zh-CN": "zh-cn",
|
|
@@ -75,7 +76,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
75
76
|
let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
|
|
76
77
|
let endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
|
|
77
78
|
let diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, "day");
|
|
78
|
-
if (
|
|
79
|
+
if (durationType) {
|
|
79
80
|
const sameDay = startDate.isSame(endDate, "day");
|
|
80
81
|
const dateFormat = isEn2 ? "DD/MM/YYYY" : "YYYY-MM-DD";
|
|
81
82
|
const timeFormat = "HH:mm";
|
|
@@ -97,13 +98,13 @@ var getServiceTime = (item, currentDate) => {
|
|
|
97
98
|
}
|
|
98
99
|
const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
|
|
99
100
|
const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
|
|
100
|
-
let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime),
|
|
101
|
+
let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime), durationType);
|
|
101
102
|
let durationText = "";
|
|
102
|
-
if (
|
|
103
|
+
if (durationType === "minutes") {
|
|
103
104
|
const hours = Math.floor(_duration / 60);
|
|
104
105
|
const minutes = _duration % 60;
|
|
105
106
|
durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
|
|
106
|
-
} else if (
|
|
107
|
+
} else if (durationType === "days") {
|
|
107
108
|
durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration);
|
|
108
109
|
} else {
|
|
109
110
|
durationText = `${_duration}`;
|
|
@@ -118,7 +119,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
118
119
|
startDate = (0, import_dayjs.default)((item == null ? void 0 : item.start_time) ? `${item == null ? void 0 : item.start_date} ${item == null ? void 0 : item.start_time}` : startDate.format("YYYY-MM-DD HH:mm"));
|
|
119
120
|
endDate = (0, import_dayjs.default)((item == null ? void 0 : item.end_time) ? `${item == null ? void 0 : item.end_date} ${item == null ? void 0 : item.end_time}` : endDate.format("YYYY-MM-DD HH:mm"));
|
|
120
121
|
}
|
|
121
|
-
if (
|
|
122
|
+
if (durationType === "minutes") {
|
|
122
123
|
diffInDays = endDate.diff(startDate, "minute");
|
|
123
124
|
}
|
|
124
125
|
const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
|
|
@@ -130,7 +131,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
130
131
|
"minutes": import_utils.locales.getText("pisell2.product.card.minute")(diffInDays),
|
|
131
132
|
"event": import_utils.locales.getText("pisell2.product.card.day.event")(diffInDays)
|
|
132
133
|
};
|
|
133
|
-
text = (textTypes == null ? void 0 : textTypes[
|
|
134
|
+
text = (textTypes == null ? void 0 : textTypes[durationType]) || text;
|
|
134
135
|
let duration = `${diffInDays}${text}`;
|
|
135
136
|
return `${date} (${duration})`;
|
|
136
137
|
};
|
|
@@ -197,12 +197,12 @@ export declare const fieldList: ({
|
|
|
197
197
|
field_icon: string;
|
|
198
198
|
field_name: string;
|
|
199
199
|
field_type: string;
|
|
200
|
-
default_value:
|
|
200
|
+
default_value: boolean;
|
|
201
201
|
} | {
|
|
202
202
|
field_icon: string;
|
|
203
203
|
field_name: string;
|
|
204
204
|
field_type: string;
|
|
205
|
-
default_value:
|
|
205
|
+
default_value: string;
|
|
206
206
|
} | {
|
|
207
207
|
field_icon: string;
|
|
208
208
|
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 {};
|
|
@@ -94,6 +94,13 @@ var VirtualKeyInput = (props) => {
|
|
|
94
94
|
readOnly: true,
|
|
95
95
|
value: previewValue
|
|
96
96
|
}
|
|
97
|
-
), ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement(
|
|
97
|
+
), ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: "virtual-keyboard-input-delete",
|
|
101
|
+
onClick: _onDelete
|
|
102
|
+
},
|
|
103
|
+
/* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon" })
|
|
104
|
+
) : null);
|
|
98
105
|
};
|
|
99
106
|
var VirtualKeyInput_default = VirtualKeyInput;
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => boolean;
|
|
@@ -226,11 +226,12 @@ const AntdIconSetter = (props: AntdIconSetterProps) => {
|
|
|
226
226
|
<Balloon
|
|
227
227
|
className="lc-antd-icon-setter-balloon"
|
|
228
228
|
trigger={triggerNode}
|
|
229
|
-
|
|
229
|
+
autoAdjust
|
|
230
230
|
triggerType="click"
|
|
231
231
|
closable={false}
|
|
232
232
|
alignEdge
|
|
233
|
-
align="
|
|
233
|
+
align="l"
|
|
234
|
+
v2
|
|
234
235
|
style={{ width: 300 }}
|
|
235
236
|
>
|
|
236
237
|
<div className="lc-antd-icon-setter-header">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.83",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"react-barcode": "^1.5.3",
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
74
|
"@pisell/date-picker": "1.0.101",
|
|
75
|
-
"@pisell/
|
|
76
|
-
"@pisell/
|
|
75
|
+
"@pisell/utils": "2.0.1",
|
|
76
|
+
"@pisell/icon": "0.0.11"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MediaProps {
|
|
3
|
-
__designMode?: 'design' | undefined;
|
|
4
|
-
value?: string | string[];
|
|
5
|
-
onChange?: (value: string | string[]) => void;
|
|
6
|
-
multiple?: boolean;
|
|
7
|
-
maxCount?: number;
|
|
8
|
-
accept?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
showUploadList?: boolean;
|
|
14
|
-
listType?: 'text' | 'picture' | 'picture-card';
|
|
15
|
-
}
|
|
16
|
-
import './index.less';
|
|
17
|
-
declare const Media: React.ForwardRefExoticComponent<MediaProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export default Media;
|