@pisell/materials 6.2.26 → 6.2.27
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 +1 -1
- package/build/lowcode/preview.js +144 -160
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +25 -44
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +30 -49
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- 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/iconfont/index.d.ts +8 -0
- package/es/components/pisellAdjustPrice/index.d.ts +4 -0
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +20 -0
- package/es/components/pisellToast/index.d.ts +16 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +43 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +282 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +38 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +9 -0
- package/es/components/productCard/cartSkuCard/index.js +28 -9
- package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/es/components/productCard/components/Header/index.d.ts +3 -0
- package/es/components/productCard/components/Sales/index.d.ts +3 -0
- package/es/components/productCard/index.d.ts +7 -0
- package/es/components/productCard/locales.d.ts +84 -0
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +84 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- 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/virtual-keyboard/Amount/index.d.ts +5 -0
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/es/components/virtual-keyboard/index.d.ts +25 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- 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/iconfont/index.d.ts +8 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
- package/lib/components/pisellToast/index.d.ts +16 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +43 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +330 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +38 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +9 -0
- package/lib/components/productCard/cartSkuCard/index.js +29 -13
- package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/lib/components/productCard/components/Header/index.d.ts +3 -0
- package/lib/components/productCard/components/Sales/index.d.ts +3 -0
- package/lib/components/productCard/index.d.ts +7 -0
- package/lib/components/productCard/locales.d.ts +84 -0
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +84 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- 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/virtual-keyboard/Amount/index.d.ts +5 -0
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/lib/components/virtual-keyboard/index.d.ts +25 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.pisell-swipe-action {
|
|
2
|
+
--background: var(--adm-color-background);
|
|
3
|
+
background: var(--background);
|
|
4
|
+
cursor: grab;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
touch-action: pan-y;
|
|
7
|
+
&-track {
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: visible;
|
|
10
|
+
}
|
|
11
|
+
&-content {
|
|
12
|
+
}
|
|
13
|
+
&-actions {
|
|
14
|
+
position: absolute;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
width: auto;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
&-right {
|
|
21
|
+
left: 100%;
|
|
22
|
+
top: 0;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
&-left {
|
|
26
|
+
right: 100%;
|
|
27
|
+
top: 0;
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&-action-button {
|
|
32
|
+
--border-radius: 0;
|
|
33
|
+
--border-width: 0;
|
|
34
|
+
--text-color: var(--adm-color-text-light-solid);
|
|
35
|
+
padding-left: 4px;
|
|
36
|
+
padding-right: 4px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
import { ProductCardTypes } from '../types';
|
|
3
|
+
interface ISKUCardProps extends ProductCardTypes {
|
|
4
|
+
type: 'a2' | 'a5';
|
|
5
|
+
rightActions: any[];
|
|
6
|
+
}
|
|
7
|
+
export declare const PREFIX = "pisell-cart-sku-card";
|
|
8
|
+
declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
|
|
9
|
+
export default CartSkuCard;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["dataSource", "isShowImage", "isShowHolder", "isShowNote", "isShowDelete", "isShowPackageNote", "isShowEditProduct", "onEditProduct", "onAction", "onDelete", "onNote", "onLike", "onCard", "onChangeResource", "onChangeHolder", "type"];
|
|
2
|
+
var _excluded = ["dataSource", "isShowImage", "isShowHolder", "isShowNote", "isShowDelete", "isShowPackageNote", "isShowEditProduct", "onEditProduct", "onAction", "onDelete", "onNote", "onLike", "onCard", "onChangeResource", "onChangeHolder", "type", "rightActions"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
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; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
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); }
|
|
8
8
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
10
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
13
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
14
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
17
|
import React, { useMemo, useRef } from 'react';
|
|
12
18
|
import classNames from 'classnames';
|
|
13
|
-
import { SwipeAction } from 'antd-mobile';
|
|
14
19
|
import { image as imageAli, locales } from '@pisell/utils';
|
|
15
20
|
import localeTexts from "./locales";
|
|
16
21
|
import BasicInfo from "./components/basicInfo";
|
|
@@ -20,6 +25,7 @@ import TimeRange from "./components/timeRange";
|
|
|
20
25
|
import Resources from "./components/resources";
|
|
21
26
|
import Packages from "./components/packages";
|
|
22
27
|
import Sales from "./components/sales";
|
|
28
|
+
import { SwipeAction } from "./components/swipeAction";
|
|
23
29
|
import "./index.less";
|
|
24
30
|
import Iconfont from "../../iconfont";
|
|
25
31
|
import useEngineContext from "../../../hooks/useEngineContext";
|
|
@@ -55,6 +61,8 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
55
61
|
onChangeResource = props.onChangeResource,
|
|
56
62
|
onChangeHolder = props.onChangeHolder,
|
|
57
63
|
type = props.type,
|
|
64
|
+
_props$rightActions = props.rightActions,
|
|
65
|
+
rightActions = _props$rightActions === void 0 ? [] : _props$rightActions,
|
|
58
66
|
other = _objectWithoutProperties(props, _excluded);
|
|
59
67
|
var useOpenNoteRef = useRef();
|
|
60
68
|
var context = useEngineContext();
|
|
@@ -62,10 +70,19 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
62
70
|
console.log('prodcut props', props);
|
|
63
71
|
var isShowAction = dataSource.isShowAction,
|
|
64
72
|
actionText = dataSource.actionText;
|
|
65
|
-
var
|
|
73
|
+
var _rightActions = useMemo(function () {
|
|
66
74
|
var deleteAction = {
|
|
67
75
|
key: 'delete',
|
|
68
|
-
text: /*#__PURE__*/React.createElement(
|
|
76
|
+
text: /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
style: {
|
|
78
|
+
display: 'flex',
|
|
79
|
+
justifyContent: 'center',
|
|
80
|
+
alignItems: 'center',
|
|
81
|
+
color: 'white',
|
|
82
|
+
cursor: 'pointer',
|
|
83
|
+
padding: '10px 0px'
|
|
84
|
+
}
|
|
85
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
69
86
|
type: "pisell2-trash-01",
|
|
70
87
|
style: {
|
|
71
88
|
fontSize: 20,
|
|
@@ -73,7 +90,8 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
73
90
|
}
|
|
74
91
|
}), /*#__PURE__*/React.createElement("span", {
|
|
75
92
|
style: {
|
|
76
|
-
fontSize: 12
|
|
93
|
+
fontSize: 12,
|
|
94
|
+
fontWeight: 500
|
|
77
95
|
}
|
|
78
96
|
}, locales.getText('pisell2.cart.sku-card.actions.delete'))),
|
|
79
97
|
color: 'danger',
|
|
@@ -83,12 +101,12 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
83
101
|
onDelete === null || onDelete === void 0 || onDelete(dataSource);
|
|
84
102
|
}
|
|
85
103
|
};
|
|
86
|
-
var actions =
|
|
104
|
+
var actions = _toConsumableArray(rightActions);
|
|
87
105
|
if (isShowDelete) {
|
|
88
|
-
actions.
|
|
106
|
+
actions.unshift(deleteAction);
|
|
89
107
|
}
|
|
90
108
|
return actions;
|
|
91
|
-
}, [dataSource, onDelete, isShowDelete]);
|
|
109
|
+
}, [dataSource, onDelete, isShowDelete, rightActions]);
|
|
92
110
|
var hideDivider = useMemo(function () {
|
|
93
111
|
var bundle = dataSource.bundle,
|
|
94
112
|
relation_products = dataSource.relation_products;
|
|
@@ -174,8 +192,9 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
174
192
|
return renderA2();
|
|
175
193
|
};
|
|
176
194
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SwipeAction, {
|
|
195
|
+
closeOnAction: false,
|
|
177
196
|
className: classNames("".concat(PREFIX, "-wrapper")),
|
|
178
|
-
rightActions:
|
|
197
|
+
rightActions: _rightActions
|
|
179
198
|
}, /*#__PURE__*/React.createElement("div", {
|
|
180
199
|
className: classNames(PREFIX, "".concat(PREFIX, "--").concat(type)),
|
|
181
200
|
onClick: function onClick(e) {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.discount.reason': string;
|
|
4
|
+
'pisell2.cart.sku-card.more': string;
|
|
5
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
6
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
7
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
8
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
9
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
10
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
11
|
+
'pisell2.product.card.discount.note': string;
|
|
12
|
+
'pisell2.product.card.edit': string;
|
|
13
|
+
'pisell2.product.card.discount.add.note': string;
|
|
14
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
15
|
+
'pisell2.product.card.confirm': string;
|
|
16
|
+
'pisell2.product.card.cancel': string;
|
|
17
|
+
'pisell2.product.card.note.pla': string;
|
|
18
|
+
'pisell2.product.card.items.package': string;
|
|
19
|
+
'pisell2.product.card.view-all': string;
|
|
20
|
+
'pisell2.product.card.view-less': string;
|
|
21
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
22
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
23
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
24
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
25
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
26
|
+
'pisell2.product.card.sales': string;
|
|
27
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
28
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
29
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
30
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
31
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
32
|
+
};
|
|
33
|
+
'zh-CN': {
|
|
34
|
+
'pisell2.product.card.discount.reason': string;
|
|
35
|
+
'pisell2.cart.sku-card.more': string;
|
|
36
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
37
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
38
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
39
|
+
'pisell2.product.card.edit': string;
|
|
40
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
41
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
42
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
43
|
+
'pisell2.product.card.discount.note': string;
|
|
44
|
+
'pisell2.product.card.discount.add.note': string;
|
|
45
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
46
|
+
'pisell2.product.card.confirm': string;
|
|
47
|
+
'pisell2.product.card.cancel': string;
|
|
48
|
+
'pisell2.product.card.note.pla': string;
|
|
49
|
+
'pisell2.product.card.items.package': string;
|
|
50
|
+
'pisell2.product.card.view-all': string;
|
|
51
|
+
'pisell2.product.card.view-less': string;
|
|
52
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
53
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
54
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
55
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
56
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
57
|
+
'pisell2.product.card.sales': string;
|
|
58
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
59
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
60
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
61
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
62
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
63
|
+
};
|
|
64
|
+
'zh-HK': {
|
|
65
|
+
'pisell2.product.card.discount.reason': string;
|
|
66
|
+
'pisell2.cart.sku-card.more': string;
|
|
67
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
68
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
69
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
70
|
+
'pisell2.product.card.edit': string;
|
|
71
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
72
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
73
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
74
|
+
'pisell2.product.card.discount.note': string;
|
|
75
|
+
'pisell2.product.card.discount.add.note': string;
|
|
76
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
77
|
+
'pisell2.product.card.confirm': string;
|
|
78
|
+
'pisell2.product.card.cancel': string;
|
|
79
|
+
'pisell2.product.card.note.pla': string;
|
|
80
|
+
'pisell2.product.card.items.package': string;
|
|
81
|
+
'pisell2.product.card.view-all': string;
|
|
82
|
+
'pisell2.product.card.view-less': string;
|
|
83
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
84
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
85
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
86
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
87
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
88
|
+
'pisell2.product.card.sales': string;
|
|
89
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
90
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
91
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
92
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
93
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export default _default;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
5
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
6
|
+
'pisell2.product.card.discount.reason': string;
|
|
7
|
+
'pisell2.product.card.discount.note': string;
|
|
8
|
+
'pisell2.product.card.edit': string;
|
|
9
|
+
'pisell2.product.card.discount.add.note': string;
|
|
10
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
11
|
+
'pisell2.product.card.confirm': string;
|
|
12
|
+
'pisell2.product.card.cancel': string;
|
|
13
|
+
'pisell2.product.card.note.pla': string;
|
|
14
|
+
'pisell2.product.card.items.package': string;
|
|
15
|
+
'pisell2.product.card.view-all': string;
|
|
16
|
+
'pisell2.product.card.view-less': string;
|
|
17
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
18
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
19
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
20
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
21
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
22
|
+
'pisell2.product.card.sales': string;
|
|
23
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
24
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
25
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
26
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
27
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
28
|
+
};
|
|
29
|
+
'zh-CN': {
|
|
30
|
+
'pisell2.product.card.edit': string;
|
|
31
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
32
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
33
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
34
|
+
'pisell2.product.card.discount.reason': string;
|
|
35
|
+
'pisell2.product.card.discount.note': string;
|
|
36
|
+
'pisell2.product.card.discount.add.note': string;
|
|
37
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
38
|
+
'pisell2.product.card.confirm': string;
|
|
39
|
+
'pisell2.product.card.cancel': string;
|
|
40
|
+
'pisell2.product.card.note.pla': string;
|
|
41
|
+
'pisell2.product.card.items.package': string;
|
|
42
|
+
'pisell2.product.card.view-all': string;
|
|
43
|
+
'pisell2.product.card.view-less': string;
|
|
44
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
45
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
46
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
47
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
48
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
49
|
+
'pisell2.product.card.sales': string;
|
|
50
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
51
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
52
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
53
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
54
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
55
|
+
};
|
|
56
|
+
'zh-HK': {
|
|
57
|
+
'pisell2.product.card.edit': string;
|
|
58
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
59
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
60
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
61
|
+
'pisell2.product.card.discount.reason': string;
|
|
62
|
+
'pisell2.product.card.discount.note': string;
|
|
63
|
+
'pisell2.product.card.discount.add.note': string;
|
|
64
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
65
|
+
'pisell2.product.card.confirm': string;
|
|
66
|
+
'pisell2.product.card.cancel': string;
|
|
67
|
+
'pisell2.product.card.note.pla': string;
|
|
68
|
+
'pisell2.product.card.items.package': string;
|
|
69
|
+
'pisell2.product.card.view-all': string;
|
|
70
|
+
'pisell2.product.card.view-less': string;
|
|
71
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
72
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
73
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
74
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
75
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
76
|
+
'pisell2.product.card.sales': string;
|
|
77
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
78
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
79
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
80
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
81
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ProductCardTypes, bundleType, optionType, productType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 套餐数据
|
|
4
|
+
* @description:
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2025-01-02 23:21
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultBundle: bundleType;
|
|
10
|
+
/**
|
|
11
|
+
* @description: 单规格
|
|
12
|
+
* @return {*}
|
|
13
|
+
* @Author: WangHan
|
|
14
|
+
* @Date: 2025-01-02 23:00
|
|
15
|
+
*/
|
|
16
|
+
export declare const defaultOption: optionType;
|
|
17
|
+
/**
|
|
18
|
+
* @title: 商品商品类型
|
|
19
|
+
* @description:
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: WangHan
|
|
22
|
+
* @Date: 2025-01-02 22:48
|
|
23
|
+
*/
|
|
24
|
+
export declare const defaultProduct: productType;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 默认数据
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2024-12-12 16:49
|
|
31
|
+
*/
|
|
32
|
+
export declare const defaultValue: ProductCardTypes;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare type bundleType = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
num: number;
|
|
5
|
+
price: number;
|
|
6
|
+
total: number;
|
|
7
|
+
origin_total?: number;
|
|
8
|
+
price_type?: string;
|
|
9
|
+
options?: optionType[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description:
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: WangHan
|
|
15
|
+
* @Date: 2025-01-02 23:00
|
|
16
|
+
*/
|
|
17
|
+
export declare type optionType = {
|
|
18
|
+
id: number;
|
|
19
|
+
name: string;
|
|
20
|
+
num: number;
|
|
21
|
+
price: number;
|
|
22
|
+
total: number;
|
|
23
|
+
origin_total?: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @title: 商品商品类型
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2025-01-02 22:48
|
|
31
|
+
*/
|
|
32
|
+
export declare type productType = {
|
|
33
|
+
_id: string | number;
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
price: number;
|
|
37
|
+
total: number;
|
|
38
|
+
num: number;
|
|
39
|
+
origin_total?: number;
|
|
40
|
+
image?: string;
|
|
41
|
+
isShowNote?: boolean;
|
|
42
|
+
note?: string;
|
|
43
|
+
like_status?: string;
|
|
44
|
+
bundle?: bundleType[];
|
|
45
|
+
options?: optionType[];
|
|
46
|
+
isShowAction?: boolean;
|
|
47
|
+
actionText?: string;
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
product_option_string?: string;
|
|
50
|
+
discount_reason?: string;
|
|
51
|
+
relation_products?: any[];
|
|
52
|
+
resource_id?: string | number;
|
|
53
|
+
relation_form_name?: string;
|
|
54
|
+
holder_title?: string;
|
|
55
|
+
start_date?: string;
|
|
56
|
+
end_date?: string;
|
|
57
|
+
is_show_duration?: boolean;
|
|
58
|
+
is_show_week?: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 排序总配置
|
|
62
|
+
*/
|
|
63
|
+
export declare type ProductCardTypes = {
|
|
64
|
+
dataSource: productType;
|
|
65
|
+
isShowImage?: boolean;
|
|
66
|
+
isShowHolder?: boolean;
|
|
67
|
+
isShowNote?: boolean;
|
|
68
|
+
isShowPackageNote?: boolean;
|
|
69
|
+
isShowDelete?: boolean;
|
|
70
|
+
disabledEdit?: boolean;
|
|
71
|
+
locale?: string;
|
|
72
|
+
symbol?: string;
|
|
73
|
+
isShowChangeHolder?: boolean;
|
|
74
|
+
isShowChangeResource?: boolean;
|
|
75
|
+
isShowChangeDate?: boolean;
|
|
76
|
+
onAction?: (val: any) => void;
|
|
77
|
+
onDelete?: (val: any) => void;
|
|
78
|
+
onNote?: (val: any) => void;
|
|
79
|
+
onLike?: (val: any) => void;
|
|
80
|
+
onCard?: (val: any) => void;
|
|
81
|
+
onChangeResource?: (val: any) => void;
|
|
82
|
+
osWarnTips?: Array<string>;
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
@@ -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
|
+
}) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
|
|
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 {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const amountThemeConfig: {
|
|
2
|
+
dark: {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
containerBackgroundColor: string;
|
|
5
|
+
buttonBackgroundColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
resetButtonBackgroundColor: string;
|
|
8
|
+
resetButtonTextColor: string;
|
|
9
|
+
isDoneButtonFollowTheme: boolean;
|
|
10
|
+
doneButtonBackgroundColor: string;
|
|
11
|
+
doneButtonTextColor: string;
|
|
12
|
+
keyboardBackgroundColor: string;
|
|
13
|
+
keyboardButtonBackgroundColor: string;
|
|
14
|
+
keyboardButtonTextColor: string;
|
|
15
|
+
keyboardButtonHoverColor: string;
|
|
16
|
+
};
|
|
17
|
+
light: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
containerBackgroundColor: string;
|
|
20
|
+
buttonBackgroundColor: string;
|
|
21
|
+
textColor: string;
|
|
22
|
+
resetButtonBackgroundColor: string;
|
|
23
|
+
resetButtonTextColor: string;
|
|
24
|
+
isDoneButtonFollowTheme: boolean;
|
|
25
|
+
doneButtonBackgroundColor: string;
|
|
26
|
+
doneButtonTextColor: string;
|
|
27
|
+
keyboardBackgroundColor: string;
|
|
28
|
+
keyboardButtonBackgroundColor: string;
|
|
29
|
+
keyboardButtonTextColor: string;
|
|
30
|
+
keyboardButtonHoverColor: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
|
|
3
|
+
export interface RightItemsStyleProps {
|
|
4
|
+
buttonBackgroundColor?: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
resetButtonBackgroundColor?: string;
|
|
7
|
+
resetButtonTextColor?: string;
|
|
8
|
+
isDoneButtonFollowTheme?: boolean;
|
|
9
|
+
doneButtonBackgroundColor?: string;
|
|
10
|
+
doneButtonTextColor?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface AmountProps {
|
|
13
|
+
max?: number;
|
|
14
|
+
min?: number;
|
|
15
|
+
doneText?: string;
|
|
16
|
+
resetText?: string;
|
|
17
|
+
defaultValue?: string | number;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
amountProps?: {
|
|
20
|
+
showCurrencySymbol: boolean;
|
|
21
|
+
useThousandsSeparator: boolean;
|
|
22
|
+
};
|
|
23
|
+
presets?: BaseNumberKeyboardProps['presets'];
|
|
24
|
+
value?: string | number;
|
|
25
|
+
onChange?: (val: string | number) => void;
|
|
26
|
+
onEnter?: (val: string | number) => void;
|
|
27
|
+
defaultSelect?: boolean;
|
|
28
|
+
inputFormat?: (_v: string) => React.ReactNode | null;
|
|
29
|
+
rightItemsStyle?: RightItemsStyleProps;
|
|
30
|
+
selectType?: 'light' | 'dark';
|
|
31
|
+
backgroundColor?: string;
|
|
32
|
+
containerBackgroundColor?: string;
|
|
33
|
+
buttonBackgroundColor?: string;
|
|
34
|
+
textColor?: string;
|
|
35
|
+
resetButtonBackgroundColor?: string;
|
|
36
|
+
resetButtonTextColor?: string;
|
|
37
|
+
isDoneButtonFollowTheme?: boolean;
|
|
38
|
+
doneButtonBackgroundColor?: string;
|
|
39
|
+
doneButtonTextColor?: string;
|
|
40
|
+
keyboardBackgroundColor?: string;
|
|
41
|
+
keyboardButtonBackgroundColor?: string;
|
|
42
|
+
keyboardButtonTextColor?: string;
|
|
43
|
+
keyboardButtonHoverColor?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PresetsProps } from './Presets';
|
|
3
|
+
import { RightItemsStyleProps } from '../Amount';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export interface BaseNumberKeyboardProps {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
format?: (val: string) => React.ReactNode;
|
|
8
|
+
defaultValue?: string | number;
|
|
9
|
+
doneText?: string;
|
|
10
|
+
resetText?: string;
|
|
11
|
+
onChange?: (val: string) => void;
|
|
12
|
+
onEnter?: (val: string) => void;
|
|
13
|
+
value?: string | number;
|
|
14
|
+
max?: number;
|
|
15
|
+
min?: number;
|
|
16
|
+
presets?: PresetsProps['presets'];
|
|
17
|
+
defaultSelect?: boolean;
|
|
18
|
+
rightItemsStyle?: RightItemsStyleProps;
|
|
19
|
+
}
|
|
20
|
+
declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
|
|
21
|
+
export default BaseNumberKeyboard;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare type ItemValue = string | number;
|
|
4
|
+
export interface Item {
|
|
5
|
+
value: ItemValue;
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
type: 'text' | 'primary';
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
size?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface KeyboardProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
onChange?: (value?: ItemValue) => void;
|
|
16
|
+
items?: Item[];
|
|
17
|
+
rightItems?: Item[];
|
|
18
|
+
keydown?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
21
|
+
export default _default;
|