@pisell/materials 6.2.29 → 6.3.1
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 +3 -3
- package/build/lowcode/preview.js +150 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +24 -28
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +25 -29
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/classicLayout/index.js +5 -4
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- 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 +0 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -7
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/icon/index.js +5 -5
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.js +6 -6
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/es/components/pisellGoodPassCard/index.d.ts +0 -1
- package/es/components/pisellGoodPassCard/index.js +5 -17
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellToast/index.js +0 -3
- package/es/components/pisellWalletPassCard/index.d.ts +0 -1
- package/es/components/productCard/components/Header/index.js +8 -21
- package/es/components/productCard/components/Header/index.less +0 -15
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.js +2 -2
- package/es/components/productCard/index.d.ts +1 -3
- package/es/components/productCard/index.js +2 -5
- package/es/components/productCard/index.less +0 -6
- package/es/components/qrcode/index.js +1 -1
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useMergeColumnSetting.js +2 -1
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/translation/utils.js +5 -5
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/components/virtual-keyboard/index.d.ts +0 -11
- package/es/components/virtual-keyboard/index.js +3 -88
- package/es/components/virtual-keyboard/index.less +1 -33
- package/es/hooks/useResponsive.js +2 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/miniRedux.js +9 -8
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- 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 +0 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -7
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/lowCodePage/index.js +2 -1
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -1
- package/lib/components/pisellGoodPassCard/index.js +4 -31
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellToast/index.js +0 -3
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/index.js +11 -20
- package/lib/components/productCard/components/Header/index.less +0 -15
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.js +2 -2
- package/lib/components/productCard/index.d.ts +1 -3
- package/lib/components/productCard/index.js +2 -6
- package/lib/components/productCard/index.less +0 -6
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/utils/index.js +2 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/versionSelect/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/index.d.ts +0 -11
- package/lib/components/virtual-keyboard/index.js +2 -60
- package/lib/components/virtual-keyboard/index.less +1 -33
- package/lib/hooks/useResponsive.js +6 -3
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/_setters/antd-icon-setter/index.tsx +2 -3
- package/lowcode/virtual-keyboard/meta.ts +0 -131
- package/package.json +3 -5
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -73
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -113
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +0 -51
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/holders/index.js +0 -32
- package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -32
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/index.js +0 -52
- package/es/components/productCard/cartSkuCard/components/packages/index.less +0 -22
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +0 -40
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/resources/index.js +0 -44
- package/es/components/productCard/cartSkuCard/components/resources/index.less +0 -20
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/components/sales/index.js +0 -55
- package/es/components/productCard/cartSkuCard/components/sales/index.less +0 -22
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/specs/index.js +0 -43
- package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -28
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -292
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +0 -53
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +0 -37
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/index.js +0 -216
- package/es/components/productCard/cartSkuCard/index.less +0 -69
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/cartSkuCard/locales.js +0 -30
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -79
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -113
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +0 -70
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +0 -52
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -32
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +0 -73
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +0 -22
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +0 -44
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +0 -73
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +0 -20
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +0 -76
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +0 -22
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +0 -65
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -28
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -339
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +0 -67
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +0 -37
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/index.js +0 -234
- package/lib/components/productCard/cartSkuCard/index.less +0 -69
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/cartSkuCard/locales.js +0 -61
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.pisell-cart-sku-card__packages-wrap {
|
|
2
|
-
padding: 0 4px;
|
|
3
|
-
|
|
4
|
-
.packages-title {
|
|
5
|
-
color: #101828;
|
|
6
|
-
font-size: 12px;
|
|
7
|
-
font-weight: 600;
|
|
8
|
-
line-height: 18px;
|
|
9
|
-
word-wrap: break-word;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.pisell2-collapsible-list {
|
|
13
|
-
gap: 4px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.product-info {
|
|
17
|
-
.product-name,
|
|
18
|
-
.product-price {
|
|
19
|
-
color: #667085;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 金额是否是负
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {string} type
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2024-11-22 10:01
|
|
8
|
-
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "-" | "";
|
|
10
|
-
/**
|
|
11
|
-
* @title: 金额格式化
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {number} price
|
|
14
|
-
* @param {string} amountSymbol
|
|
15
|
-
* @param {number} digit
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2024-11-22 10:58
|
|
19
|
-
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/productCard/cartSkuCard/components/packages/utils.ts
|
|
20
|
-
var utils_exports = {};
|
|
21
|
-
__export(utils_exports, {
|
|
22
|
-
_formatAmount: () => _formatAmount,
|
|
23
|
-
minusSign: () => minusSign
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(utils_exports);
|
|
26
|
-
var import_utils = require("@pisell/utils");
|
|
27
|
-
var minusSign = (item, type) => {
|
|
28
|
-
if (type === "total") {
|
|
29
|
-
const _price2 = (item == null ? void 0 : item.bundle_sum_price) || 0;
|
|
30
|
-
const isMarkdown2 = (item == null ? void 0 : item.bundle_sum_type) === "markdown";
|
|
31
|
-
return _price2 > 0 && isMarkdown2 ? "-" : "";
|
|
32
|
-
}
|
|
33
|
-
const _price = (item == null ? void 0 : item.price) || 0;
|
|
34
|
-
const isMarkdown = (item == null ? void 0 : item.price_type) === "markdown";
|
|
35
|
-
return _price > 0 && isMarkdown ? "-" : "";
|
|
36
|
-
};
|
|
37
|
-
var _formatAmount = (price = 0, amountSymbol, digit) => {
|
|
38
|
-
return (0, import_utils.formatAmount)(price, digit, amountSymbol);
|
|
39
|
-
};
|
|
40
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
-
0 && (module.exports = {
|
|
42
|
-
_formatAmount,
|
|
43
|
-
minusSign
|
|
44
|
-
});
|
|
@@ -1,73 +0,0 @@
|
|
|
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/components/resources/index.tsx
|
|
30
|
-
var resources_exports = {};
|
|
31
|
-
__export(resources_exports, {
|
|
32
|
-
default: () => resources_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(resources_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_index = require("./index.less");
|
|
38
|
-
var import__ = require("../../index");
|
|
39
|
-
var colors = [
|
|
40
|
-
"magenta",
|
|
41
|
-
"volcano",
|
|
42
|
-
"orange",
|
|
43
|
-
"gold",
|
|
44
|
-
"green",
|
|
45
|
-
"cyan",
|
|
46
|
-
"blue",
|
|
47
|
-
"geekblue",
|
|
48
|
-
"purple"
|
|
49
|
-
];
|
|
50
|
-
function getColor(n) {
|
|
51
|
-
return colors[n * 31 % colors.length];
|
|
52
|
-
}
|
|
53
|
-
var Resources = (props) => {
|
|
54
|
-
const { dataSource = {} } = props;
|
|
55
|
-
const { multiResources, isMultipleResource } = dataSource;
|
|
56
|
-
const renderResourceItem = (item, index) => {
|
|
57
|
-
const { id: ids, lists, _id } = item;
|
|
58
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `resource-item`, key: _id }, Array.isArray(ids) ? ids.map((id) => {
|
|
59
|
-
const targetRes = lists.find((l) => l.id === id);
|
|
60
|
-
if (targetRes == null ? void 0 : targetRes.label) {
|
|
61
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { color: getColor(_id), className: "resource-tag" }, targetRes.label);
|
|
62
|
-
}
|
|
63
|
-
return null;
|
|
64
|
-
}) : null);
|
|
65
|
-
};
|
|
66
|
-
const renderContent = () => {
|
|
67
|
-
if (isMultipleResource && (multiResources == null ? void 0 : multiResources.length) > 0) {
|
|
68
|
-
return multiResources.map(renderResourceItem);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__resources` }, renderContent());
|
|
72
|
-
};
|
|
73
|
-
var resources_default = Resources;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.pisell-cart-sku-card__resources {
|
|
2
|
-
margin-top: 4px;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
gap: 4px;
|
|
6
|
-
|
|
7
|
-
.resource-item {
|
|
8
|
-
min-width: calc(50% - 2px);
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-wrap: wrap;
|
|
11
|
-
gap: 4px;
|
|
12
|
-
|
|
13
|
-
.resource-tag {
|
|
14
|
-
max-width: 120px;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
text-overflow: ellipsis;
|
|
17
|
-
margin: 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface IProps {
|
|
3
|
-
hideDivider?: boolean;
|
|
4
|
-
dataSource: {
|
|
5
|
-
symbol?: string;
|
|
6
|
-
relation_products?: any[];
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
declare const Sales: ({ hideDivider, dataSource }: IProps) => JSX.Element | null;
|
|
11
|
-
export default Sales;
|
|
@@ -1,76 +0,0 @@
|
|
|
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/components/sales/index.tsx
|
|
30
|
-
var sales_exports = {};
|
|
31
|
-
__export(sales_exports, {
|
|
32
|
-
default: () => sales_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(sales_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_collapsibleList = __toESM(require("../../../components/Packages/components/collapsibleList"));
|
|
38
|
-
var import_basicInfo = __toESM(require("../basicInfo"));
|
|
39
|
-
var import_utils = require("@pisell/utils");
|
|
40
|
-
var import__ = require("../../index");
|
|
41
|
-
var import_index = require("./index.less");
|
|
42
|
-
var Sales = ({ hideDivider, dataSource }) => {
|
|
43
|
-
const { relation_products = [], symbol = "$" } = dataSource || {};
|
|
44
|
-
let other_products = relation_products.map((p) => {
|
|
45
|
-
return {
|
|
46
|
-
...p,
|
|
47
|
-
name: p == null ? void 0 : p.product_title,
|
|
48
|
-
price: p == null ? void 0 : p.payment_price,
|
|
49
|
-
symbol,
|
|
50
|
-
num: p == null ? void 0 : p.product_quantity,
|
|
51
|
-
total: p == null ? void 0 : p.payment_price
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return (other_products == null ? void 0 : other_products.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, hideDivider ? null : /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: "4px 0" } }), /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}_sales-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `sales-title` }, import_utils.locales.getText("pisell2.cart.sku-card.sales.title")), /* @__PURE__ */ import_react.default.createElement(
|
|
55
|
-
import_collapsibleList.default,
|
|
56
|
-
{
|
|
57
|
-
list: other_products || [],
|
|
58
|
-
renderItem: (item) => {
|
|
59
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
60
|
-
import_basicInfo.default,
|
|
61
|
-
{
|
|
62
|
-
style: {
|
|
63
|
-
border: "1px solid #D0D5DD",
|
|
64
|
-
borderRadius: 4,
|
|
65
|
-
padding: 4
|
|
66
|
-
},
|
|
67
|
-
dataSource: {
|
|
68
|
-
...item
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
))) : null;
|
|
75
|
-
};
|
|
76
|
-
var sales_default = Sales;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.pisell-cart-sku-_sales-wrap {
|
|
2
|
-
padding: 0 4px;
|
|
3
|
-
|
|
4
|
-
._sales-title {
|
|
5
|
-
color: #101828;
|
|
6
|
-
font-size: 12px;
|
|
7
|
-
font-weight: 600;
|
|
8
|
-
line-height: 18px;
|
|
9
|
-
word-wrap: break-word;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.pisell2-collapsible-list {
|
|
13
|
-
gap: 4px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.product-info {
|
|
17
|
-
.product-name,
|
|
18
|
-
.product-price {
|
|
19
|
-
color: #667085;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
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/components/specs/index.tsx
|
|
30
|
-
var specs_exports = {};
|
|
31
|
-
__export(specs_exports, {
|
|
32
|
-
default: () => specs_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(specs_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_utils = require("@pisell/utils");
|
|
37
|
-
var import_index = require("./index.less");
|
|
38
|
-
var import__ = require("../../index");
|
|
39
|
-
var Specs = (props) => {
|
|
40
|
-
const { dataSource = {} } = props;
|
|
41
|
-
const { bundle, options, product_option_string, symbol } = dataSource;
|
|
42
|
-
const more = /* @__PURE__ */ import_react.default.createElement(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
style: {
|
|
46
|
-
color: "#667085",
|
|
47
|
-
fontSize: 10
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
import_utils.locales.getText("pisell2.cart.sku-card.more")
|
|
51
|
-
);
|
|
52
|
-
if (Array.isArray(bundle) && (bundle == null ? void 0 : bundle.length) > 0) {
|
|
53
|
-
const first = bundle[0];
|
|
54
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__specs` }, /* @__PURE__ */ import_react.default.createElement("div", null, first.title), bundle.length > 1 ? more : null);
|
|
55
|
-
}
|
|
56
|
-
if (product_option_string) {
|
|
57
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__specs` }, /* @__PURE__ */ import_react.default.createElement("div", null, product_option_string), options.length > 1 ? more : null);
|
|
58
|
-
}
|
|
59
|
-
if (options.length > 0) {
|
|
60
|
-
const first = options[0];
|
|
61
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__specs` }, /* @__PURE__ */ import_react.default.createElement("div", { className: "spec-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "spec-name" }, first.name), /* @__PURE__ */ import_react.default.createElement("span", { className: "spec-num" }, symbol, first.price, "x", first.num)), options.length > 1 ? more : null);
|
|
62
|
-
}
|
|
63
|
-
return null;
|
|
64
|
-
};
|
|
65
|
-
var specs_default = Specs;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
.pisell-cart-sku-card__specs {
|
|
2
|
-
user-select: none;
|
|
3
|
-
|
|
4
|
-
color: #667085;
|
|
5
|
-
font-size: 14px;
|
|
6
|
-
font-weight: 400;
|
|
7
|
-
line-height: 20px;
|
|
8
|
-
word-wrap: break-word;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
|
|
11
|
-
> div {
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
text-overflow: ellipsis;
|
|
14
|
-
white-space: nowrap;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.spec-item {
|
|
18
|
-
display: flex;
|
|
19
|
-
|
|
20
|
-
.spec-name {
|
|
21
|
-
display: inline-block;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
text-overflow: ellipsis;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
margin-right: 8px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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 {};
|