@pisell/private-materials 6.7.2 → 6.7.4
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/webPosLogin/WebPosLogin.js +11 -15
- package/es/plus/webPosLogin/WebPosLoginCpt.js +1 -1
- package/es/plus/webPosLogin/WebPosLoginCpt.less +0 -1
- package/es/plus/webPosLogin/components/BrandPanel/index.js +7 -37
- package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +220 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.js +1 -0
- package/es/pro/Login2.0/Login2.js +9 -3
- package/es/pro/Login2.0/index.less +0 -12
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/webPosLogin/WebPosLogin.js +22 -29
- package/lib/plus/webPosLogin/WebPosLoginCpt.js +1 -1
- package/lib/plus/webPosLogin/WebPosLoginCpt.less +0 -1
- package/lib/plus/webPosLogin/components/BrandPanel/index.js +2 -22
- package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +160 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.js +17 -0
- package/lib/pro/Login2.0/Login2.js +19 -9
- package/lib/pro/Login2.0/index.less +0 -12
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/package.json +2 -2
|
@@ -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" | "
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "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>;
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "loading" | "
|
|
177
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "loading" | "
|
|
311
|
+
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -24,13 +24,16 @@ var useSearchParams = function useSearchParams() {
|
|
|
24
24
|
return new URLSearchParams(window.location.search);
|
|
25
25
|
};
|
|
26
26
|
var WebPosLogin = function WebPosLogin(props) {
|
|
27
|
-
var _context$appHelper, _context$engine;
|
|
27
|
+
var _context$appHelper, _context$appHelper2, _mediaConfig$loginBgM, _context$engine;
|
|
28
28
|
var context = useEngineContext();
|
|
29
29
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
|
30
30
|
_context$appHelper$ut2 = _context$appHelper$ut.getApp,
|
|
31
31
|
getApp = _context$appHelper$ut2 === void 0 ? function () {
|
|
32
32
|
return {};
|
|
33
|
-
} : _context$appHelper$ut2
|
|
33
|
+
} : _context$appHelper$ut2,
|
|
34
|
+
reloadAfterLogin = _context$appHelper$ut.reloadAfterLogin;
|
|
35
|
+
var _context$appHelper$co = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants,
|
|
36
|
+
mediaConfig = _context$appHelper$co.mediaConfig;
|
|
34
37
|
var backgroundImage = props.backgroundImage,
|
|
35
38
|
_props$step = props.step,
|
|
36
39
|
propsStep = _props$step === void 0 ? 'login' : _props$step,
|
|
@@ -296,7 +299,7 @@ var WebPosLogin = function WebPosLogin(props) {
|
|
|
296
299
|
}();
|
|
297
300
|
var getDeviceListFunction = /*#__PURE__*/function () {
|
|
298
301
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
299
|
-
var app, type, res, _app$logger4, _app$
|
|
302
|
+
var app, type, res, _app$logger4, _app$logger5;
|
|
300
303
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
301
304
|
while (1) switch (_context3.prev = _context3.next) {
|
|
302
305
|
case 0:
|
|
@@ -341,7 +344,8 @@ var WebPosLogin = function WebPosLogin(props) {
|
|
|
341
344
|
} else {
|
|
342
345
|
app.storage.setStorage('isLogin', true);
|
|
343
346
|
// 如果云端没有设备信息,直接进入打印机列表
|
|
344
|
-
|
|
347
|
+
reloadAfterLogin === null || reloadAfterLogin === void 0 || reloadAfterLogin();
|
|
348
|
+
// app?.history?.reloadTo('/');
|
|
345
349
|
app === null || app === void 0 || (_app$logger5 = app.logger) === null || _app$logger5 === void 0 || _app$logger5.addLog({
|
|
346
350
|
type: 'info',
|
|
347
351
|
title: '选择店铺页-获取设备列表成功-没有云端设备',
|
|
@@ -487,10 +491,7 @@ var WebPosLogin = function WebPosLogin(props) {
|
|
|
487
491
|
case 33:
|
|
488
492
|
app.storage.setStorage('loginStatus', 'success');
|
|
489
493
|
app.storage.setStorage('isLogin', true);
|
|
490
|
-
|
|
491
|
-
var _app$history2;
|
|
492
|
-
app === null || app === void 0 || (_app$history2 = app.history) === null || _app$history2 === void 0 || _app$history2.reloadTo('/');
|
|
493
|
-
}, 500);
|
|
494
|
+
reloadAfterLogin === null || reloadAfterLogin === void 0 || reloadAfterLogin();
|
|
494
495
|
|
|
495
496
|
// 保存设备信息
|
|
496
497
|
app === null || app === void 0 || app.storage.setStorage('boundCloudDevice', JSON.stringify(res || {}));
|
|
@@ -524,13 +525,8 @@ var WebPosLogin = function WebPosLogin(props) {
|
|
|
524
525
|
};
|
|
525
526
|
return /*#__PURE__*/React.createElement(WebPosLoginCpt, {
|
|
526
527
|
loginConfig: config,
|
|
527
|
-
backgroundImage: backgroundImage,
|
|
528
|
-
brandConfig:
|
|
529
|
-
carouselItems: [{
|
|
530
|
-
type: 'image',
|
|
531
|
-
url: 'https://static.pisellcdn.com/defaultLogo.png'
|
|
532
|
-
}]
|
|
533
|
-
},
|
|
528
|
+
backgroundImage: backgroundImage || ((_mediaConfig$loginBgM = mediaConfig.loginBgMediaConfig) === null || _mediaConfig$loginBgM === void 0 || (_mediaConfig$loginBgM = _mediaConfig$loginBgM[0]) === null || _mediaConfig$loginBgM === void 0 ? void 0 : _mediaConfig$loginBgM.url),
|
|
529
|
+
brandConfig: mediaConfig.loginMediaConfig,
|
|
534
530
|
step: step,
|
|
535
531
|
showBackButton: isShowGoBack,
|
|
536
532
|
storeList: storeList,
|
|
@@ -15,7 +15,7 @@ import UserFooter from "./components/UserFooter";
|
|
|
15
15
|
import "./WebPosLoginCpt.less";
|
|
16
16
|
|
|
17
17
|
/** 默认背景图片 */
|
|
18
|
-
var DEFAULT_BACKGROUND = 'http://static.pisellcdn.com/
|
|
18
|
+
var DEFAULT_BACKGROUND = 'http://static.pisellcdn.com/defaultBg1.jpg';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* WebPosLoginCpt 主组件
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { memo
|
|
2
|
-
import { Image } from '@pisell/materials';
|
|
1
|
+
import React, { memo } from 'react';
|
|
3
2
|
import "./index.less";
|
|
3
|
+
import MediaDisplay from "../MediaDisplay";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* BrandPanel 品牌区组件
|
|
@@ -10,43 +10,13 @@ var BrandPanel = /*#__PURE__*/memo(function (props) {
|
|
|
10
10
|
var config = props.config,
|
|
11
11
|
_props$className = props.className,
|
|
12
12
|
className = _props$className === void 0 ? '' : _props$className;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 获取展示的图片
|
|
16
|
-
* 优先使用轮播的第一张图片,否则使用 logo,最后使用默认 Logo
|
|
17
|
-
*/
|
|
18
|
-
var displayImage = useMemo(function () {
|
|
19
|
-
var _config$carouselItems;
|
|
20
|
-
// 如果有轮播配置,取第一个图片类型的内容
|
|
21
|
-
if (config !== null && config !== void 0 && (_config$carouselItems = config.carouselItems) !== null && _config$carouselItems !== void 0 && _config$carouselItems.length) {
|
|
22
|
-
var firstImage = config.carouselItems.find(function (item) {
|
|
23
|
-
return item.type === 'image';
|
|
24
|
-
});
|
|
25
|
-
if (firstImage !== null && firstImage !== void 0 && firstImage.url) {
|
|
26
|
-
return firstImage.url;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
// 否则使用配置的 logo 或默认 logo
|
|
30
|
-
return config === null || config === void 0 ? void 0 : config.logo;
|
|
31
|
-
}, [config === null || config === void 0 ? void 0 : config.carouselItems, config === null || config === void 0 ? void 0 : config.logo]);
|
|
32
|
-
|
|
33
|
-
/** 品牌标语 */
|
|
34
|
-
var slogan = config === null || config === void 0 ? void 0 : config.slogan;
|
|
35
|
-
console.log('displayImage', displayImage);
|
|
36
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
14
|
className: "webpos-login-brand-panel ".concat(className).trim()
|
|
38
|
-
}, /*#__PURE__*/React.createElement(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
src: displayImage,
|
|
44
|
-
preview: false,
|
|
45
|
-
alt: "Brand Logo",
|
|
46
|
-
className: "webpos-login-brand-panel__logo"
|
|
47
|
-
})), slogan && /*#__PURE__*/React.createElement("p", {
|
|
48
|
-
className: "webpos-login-brand-panel__slogan"
|
|
49
|
-
}, slogan)));
|
|
15
|
+
}, /*#__PURE__*/React.createElement(MediaDisplay, {
|
|
16
|
+
config: {
|
|
17
|
+
carouselItems: config
|
|
18
|
+
}
|
|
19
|
+
}));
|
|
50
20
|
});
|
|
51
21
|
BrandPanel.displayName = 'BrandPanel';
|
|
52
22
|
export default BrandPanel;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MediaDisplayProps } from "./type";
|
|
3
|
+
import './index.less';
|
|
4
|
+
/**
|
|
5
|
+
* MediaDisplay 媒体组件
|
|
6
|
+
* @description 通用媒体展示组件,支持图片/视频展示
|
|
7
|
+
* - 支持单个媒体或轮播(预留)
|
|
8
|
+
* - 支持全屏模式
|
|
9
|
+
* - 支持视频播放控制和状态回调
|
|
10
|
+
*/
|
|
11
|
+
declare const MediaDisplay: React.FC<MediaDisplayProps>;
|
|
12
|
+
export default MediaDisplay;
|