@pisell/private-materials 6.8.86 → 6.8.87
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 +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/components/customiseItemModal/index.js +4 -7
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +5 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/NumericStepper/index.d.ts +21 -1
- package/es/pro/NumericStepper/index.js +74 -66
- package/es/pro/NumericStepper/index.less +289 -136
- package/es/pro/Selector/demo.d.ts +0 -1
- package/es/pro/Selector/hooks/usePresetProps.js +2 -1
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +24 -0
- package/es/pro/keyboards/locales.js +35 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +524 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/es/pro/skuDetailModal/index.js +6 -8
- package/es/pro/skuDetailModal/index.less +4 -4
- package/lib/components/booking/components/customiseItemModal/index.js +4 -5
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +5 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/NumericStepper/index.d.ts +21 -1
- package/lib/pro/NumericStepper/index.js +67 -69
- package/lib/pro/NumericStepper/index.less +289 -136
- package/lib/pro/Selector/demo.d.ts +0 -1
- package/lib/pro/Selector/hooks/usePresetProps.js +2 -1
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +24 -0
- package/lib/pro/keyboards/locales.js +47 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/lib/pro/skuDetailModal/index.js +94 -41
- package/lib/pro/skuDetailModal/index.less +4 -4
- package/package.json +1 -1
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
|
@@ -300,7 +300,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
|
|
|
300
300
|
padding: 16
|
|
301
301
|
},
|
|
302
302
|
bottomContent: renderBottomContent(),
|
|
303
|
-
preventBlurElements: [uniqueKeyboardId]
|
|
303
|
+
preventBlurElements: [uniqueKeyboardId],
|
|
304
|
+
selected: firstInputStatus.payment && !!internalPaymentValue
|
|
304
305
|
});
|
|
305
306
|
};
|
|
306
307
|
var renderSurchargeDisplay = function renderSurchargeDisplay() {
|
|
@@ -327,7 +328,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
|
|
|
327
328
|
onFocus: function onFocus() {
|
|
328
329
|
return setFocusedInput(KEYS.PERCENT);
|
|
329
330
|
},
|
|
330
|
-
preventBlurElements: [uniqueKeyboardId]
|
|
331
|
+
preventBlurElements: [uniqueKeyboardId],
|
|
332
|
+
selected: firstInputStatus.percent && !!(internalSurchargeValue !== null && internalSurchargeValue !== void 0 && internalSurchargeValue.percent) && focusedInput !== KEYS.FIXED
|
|
331
333
|
}), /*#__PURE__*/React.createElement("div", {
|
|
332
334
|
style: {
|
|
333
335
|
color: '#667085',
|
|
@@ -349,7 +351,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
|
|
|
349
351
|
onFocus: function onFocus() {
|
|
350
352
|
return setFocusedInput(KEYS.FIXED);
|
|
351
353
|
},
|
|
352
|
-
preventBlurElements: [uniqueKeyboardId]
|
|
354
|
+
preventBlurElements: [uniqueKeyboardId],
|
|
355
|
+
selected: firstInputStatus.fixed && !!(internalSurchargeValue !== null && internalSurchargeValue !== void 0 && internalSurchargeValue.fixed) && focusedInput === KEYS.FIXED
|
|
353
356
|
}));
|
|
354
357
|
};
|
|
355
358
|
var customDisplay = function customDisplay() {
|
|
@@ -20,7 +20,7 @@ import { locales } from '@pisell/utils';
|
|
|
20
20
|
import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
|
|
21
21
|
import localeTexts from "./locales";
|
|
22
22
|
import "./index.less";
|
|
23
|
-
import
|
|
23
|
+
import NumericStepper from "../NumericStepper";
|
|
24
24
|
import NoteModal from "../../plus/noteModal";
|
|
25
25
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
26
26
|
import { DiscountKeyboard } from "../priceKeyboard";
|
|
@@ -832,13 +832,14 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
832
832
|
onCancel: handleCancel,
|
|
833
833
|
closable: false,
|
|
834
834
|
destroyOnClose: true,
|
|
835
|
-
width:
|
|
835
|
+
width: "80%",
|
|
836
836
|
className: "pisell-sku-detail-modal"
|
|
837
837
|
}, /*#__PURE__*/React.createElement(PisellProcedure, {
|
|
838
838
|
ref: procedureRef,
|
|
839
839
|
className: "pisell-sku-procedure",
|
|
840
840
|
mode: "modal",
|
|
841
841
|
defaultCurrent: currentStep,
|
|
842
|
+
layoutMode: "ratio",
|
|
842
843
|
onStepsChange: function onStepsChange(result) {
|
|
843
844
|
// 动态 steps 情况下,保护 currentStep 不越界
|
|
844
845
|
var nextStep = Math.min(Number(result.currentStep || 0), maxStepIndex);
|
|
@@ -875,15 +876,12 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
875
876
|
className: "quantity-section"
|
|
876
877
|
}, /*#__PURE__*/React.createElement("div", {
|
|
877
878
|
className: "quantity-section-title"
|
|
878
|
-
}, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(
|
|
879
|
+
}, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(NumericStepper, {
|
|
880
|
+
variant: "capsule",
|
|
879
881
|
value: quantity,
|
|
880
|
-
width: "120px",
|
|
881
882
|
onChange: handleQuantityChange,
|
|
882
883
|
min: 1,
|
|
883
|
-
max: 99999
|
|
884
|
-
step: 1,
|
|
885
|
-
size: "middle",
|
|
886
|
-
enablePriceAdjust: true
|
|
884
|
+
max: 99999
|
|
887
885
|
})),
|
|
888
886
|
actions: /*#__PURE__*/React.createElement("div", {
|
|
889
887
|
className: "sku-detail-content-footer"
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* 固定弹窗高度,确保内部滚动容器有“可计算的最大高度”
|
|
4
4
|
* 否则内容会把 modal 撑开,overflow-y: auto 无法生效(看起来就“滚不动”)
|
|
5
5
|
*/
|
|
6
|
-
height:
|
|
6
|
+
height: 884px;
|
|
7
7
|
|
|
8
8
|
// PisellModal(PC)内容容器:固定高度,内部 body 使用 flex 占满剩余空间
|
|
9
9
|
.pisell-lowcode-modal-content {
|
|
10
|
-
height:
|
|
11
|
-
max-height:
|
|
10
|
+
height: 884px;
|
|
11
|
+
max-height: 884px!important;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// SkuDetailModal 内部使用自定义滚动容器(右侧内容区),避免整块 modal body 滚动
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
flex: 1;
|
|
38
38
|
min-height: 0;
|
|
39
39
|
overflow-y: auto;
|
|
40
|
-
max-height:
|
|
40
|
+
max-height: 730px;
|
|
41
41
|
/**
|
|
42
42
|
* @description
|
|
43
43
|
* 让滚动条不要贴着内容(尤其是 macOS overlay scrollbar 会覆盖内容)
|
|
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_utils = require("@pisell/utils");
|
|
38
38
|
var import_materials = require("@pisell/materials");
|
|
39
|
-
var
|
|
39
|
+
var import_NumericStepper = __toESM(require("../../../../pro/NumericStepper"));
|
|
40
40
|
var import_pisellPriceKeyboardModal = __toESM(require("../../../../pro/pisellPriceKeyboardModal"));
|
|
41
41
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
42
42
|
var import_index = require("./index.less");
|
|
@@ -244,8 +244,9 @@ var CustomiseItemModal = ({
|
|
|
244
244
|
},
|
|
245
245
|
import_utils.locales.getText("pisell2.customise-item.save")
|
|
246
246
|
)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-quantity-selector-fixed" }, /* @__PURE__ */ import_react.default.createElement(
|
|
247
|
-
|
|
247
|
+
import_NumericStepper.default,
|
|
248
248
|
{
|
|
249
|
+
variant: "capsule",
|
|
249
250
|
value: quantity,
|
|
250
251
|
min: 1,
|
|
251
252
|
max: 999,
|
|
@@ -257,9 +258,7 @@ var CustomiseItemModal = ({
|
|
|
257
258
|
} else {
|
|
258
259
|
setQuantity(value);
|
|
259
260
|
}
|
|
260
|
-
}
|
|
261
|
-
size: "middle",
|
|
262
|
-
enablePriceAdjust: true
|
|
261
|
+
}
|
|
263
262
|
}
|
|
264
263
|
))),
|
|
265
264
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -173,10 +173,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
173
173
|
export declare const getDuration: (duration: number | {
|
|
174
174
|
type: string;
|
|
175
175
|
value: number;
|
|
176
|
-
}) => number | {
|
|
176
|
+
}) => number | "flexible" | {
|
|
177
177
|
type: string;
|
|
178
178
|
value: number;
|
|
179
|
-
}
|
|
179
|
+
};
|
|
180
180
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
181
181
|
export declare const getIsEdit: (state: any) => boolean;
|
|
182
182
|
export {};
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PosProps, RouteType } from './const';
|
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "
|
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
|
|
4
4
|
action: RouteType;
|
|
5
5
|
device_number: string | number;
|
|
6
6
|
api: ReturnType<PosProps['getApi']>;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "success" | "
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
|
|
|
178
178
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
179
179
|
type: EActionTypes;
|
|
180
180
|
payload: {
|
|
181
|
-
status: "loading" | "success" | "
|
|
181
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
/**
|
|
@@ -299,10 +299,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
299
299
|
name?: string | undefined;
|
|
300
300
|
symbol?: string | undefined;
|
|
301
301
|
amount?: string | number | undefined;
|
|
302
|
-
mode?: "refund" | "
|
|
302
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
303
303
|
order_id?: string | number | undefined;
|
|
304
304
|
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
|
|
305
|
-
action?: "
|
|
305
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
306
306
|
key?: number | undefined;
|
|
307
307
|
step?: number | undefined;
|
|
308
308
|
title?: string | undefined;
|
|
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
312
312
|
net?: boolean | undefined;
|
|
313
313
|
component?: string | undefined;
|
|
314
314
|
form?: string | undefined;
|
|
315
|
-
status?: "loading" | "success" | "
|
|
315
|
+
status?: "loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
316
316
|
warn?: string | undefined;
|
|
317
317
|
steps?: {
|
|
318
318
|
/** 用于重置当前步骤 */
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Capacity: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true |
|
|
5
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
6
6
|
export default Capacity;
|
|
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const CardMask: ({ props }: {
|
|
5
5
|
props: SkuStatusOverlayConfig;
|
|
6
|
-
}) => string | number | true |
|
|
6
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
7
7
|
export default CardMask;
|
|
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const Countdown: ({ props }: {
|
|
5
5
|
props: ProductCardConfig;
|
|
6
|
-
}) => string | number | true |
|
|
6
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
7
7
|
export default Countdown;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Duration: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true |
|
|
5
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
6
6
|
export default Duration;
|
|
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const MemberPrice: ({ props }: {
|
|
5
5
|
props: ProductCardConfig;
|
|
6
|
-
}) => string | number | true |
|
|
6
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
7
7
|
export default MemberPrice;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Resource: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true |
|
|
5
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
6
6
|
export default Resource;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Stock: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true |
|
|
5
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
6
6
|
export default Stock;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Time: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true |
|
|
5
|
+
}) => string | number | true | React.ReactFragment | JSX.Element | null;
|
|
6
6
|
export default Time;
|
|
@@ -5,13 +5,13 @@ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
|
|
|
5
5
|
width?: number | undefined;
|
|
6
6
|
height?: number | undefined;
|
|
7
7
|
};
|
|
8
|
-
logoPosition: "
|
|
8
|
+
logoPosition: "left" | "right" | "center";
|
|
9
9
|
welcomeMessage: any;
|
|
10
|
-
welcomeMessageAlign: "
|
|
10
|
+
welcomeMessageAlign: "left" | "right" | "center";
|
|
11
11
|
title: any;
|
|
12
|
-
titleAlign: "
|
|
12
|
+
titleAlign: "left" | "right" | "center";
|
|
13
13
|
subtitle: any;
|
|
14
|
-
subtitleAlign: "
|
|
14
|
+
subtitleAlign: "left" | "right" | "center";
|
|
15
15
|
emailLabel: any;
|
|
16
16
|
emailPlaceholder: any;
|
|
17
17
|
passwordLabel: any;
|
|
@@ -19,7 +19,7 @@ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
|
|
|
19
19
|
buttonText: any;
|
|
20
20
|
registerText: any;
|
|
21
21
|
registerLinkText: any;
|
|
22
|
-
registerAlign: "
|
|
22
|
+
registerAlign: "left" | "right" | "center";
|
|
23
23
|
showLogo?: boolean | undefined;
|
|
24
24
|
showWelcomeMessage?: boolean | undefined;
|
|
25
25
|
showTitle?: boolean | undefined;
|
|
@@ -170,6 +170,7 @@ var createBundleValue = (v, dataSource) => {
|
|
|
170
170
|
});
|
|
171
171
|
_createdValue.data._data = _data;
|
|
172
172
|
}
|
|
173
|
+
_createdValue.data.num = (v1 == null ? void 0 : v1.num) || 1;
|
|
173
174
|
_createdValue.quantity = (_createdValue.quantity || 0) + ((v1 == null ? void 0 : v1.quantity) || 0);
|
|
174
175
|
const _pricePrefix = (findedBundleItem == null ? void 0 : findedBundleItem.price_type) === "markdown" ? -1 : 1;
|
|
175
176
|
_createdValue.totalPrice = new import_decimal.default(_createdValue.totalPrice || 0).plus(
|
|
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (val: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const getBaseTime: (size: number) =>
|
|
6
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
7
7
|
declare const ImageUpload: React.FC<ImageUploadProps>;
|
|
8
8
|
export default ImageUpload;
|
|
@@ -7,6 +7,12 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* 样式变体类型
|
|
12
|
+
* - separated: 分离式,按钮独立显示(默认)
|
|
13
|
+
* - capsule: 胶囊式,按钮和数字在一个圆角容器内
|
|
14
|
+
*/
|
|
15
|
+
export declare type NumericStepperVariant = 'separated' | 'capsule';
|
|
10
16
|
export interface NumericStepperProps {
|
|
11
17
|
/** 当前值 */
|
|
12
18
|
value?: number;
|
|
@@ -31,12 +37,26 @@ export interface NumericStepperProps {
|
|
|
31
37
|
horizontalPadding?: number | string;
|
|
32
38
|
/** 尺寸 */
|
|
33
39
|
size?: 'small' | 'middle' | 'large';
|
|
34
|
-
/**
|
|
40
|
+
/** 按钮形状(仅在 variant='separated' 时生效) */
|
|
35
41
|
shape?: 'round' | 'square';
|
|
36
42
|
/** 减号按钮的自定义内容 */
|
|
37
43
|
minusIcon?: React.ReactNode;
|
|
38
44
|
/** 加号按钮的自定义内容 */
|
|
39
45
|
plusIcon?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* 样式变体
|
|
48
|
+
* - separated: 分离式,按钮独立显示(默认)
|
|
49
|
+
* - capsule: 胶囊式,按钮和数字在一个圆角容器内
|
|
50
|
+
* @default 'separated'
|
|
51
|
+
*/
|
|
52
|
+
variant?: NumericStepperVariant;
|
|
53
|
+
/**
|
|
54
|
+
* 是否启用输入功能(点击数字弹出键盘)
|
|
55
|
+
* - 开启时:展示区域 cursor 为 pointer,点击弹出键盘
|
|
56
|
+
* - 关闭后:展示区域无边框,点击不会弹出键盘
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
enableInput?: boolean;
|
|
40
60
|
}
|
|
41
61
|
declare const NumericStepper: React.FC<NumericStepperProps>;
|
|
42
62
|
export default NumericStepper;
|