@pisell/private-materials 6.7.1 → 6.7.2
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 +2 -2
- 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/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
- 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/Favorite/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
- 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/Tags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/webPosLogin/WebPosLogin.d.ts +11 -0
- package/es/plus/webPosLogin/WebPosLogin.js +552 -0
- package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/es/plus/webPosLogin/WebPosLoginCpt.js +170 -0
- package/es/plus/webPosLogin/WebPosLoginCpt.less +171 -0
- package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/es/plus/webPosLogin/components/BrandPanel/index.js +52 -0
- package/es/plus/webPosLogin/components/BrandPanel/index.less +58 -0
- package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/es/plus/webPosLogin/components/LoginPanel/index.js +73 -0
- package/es/plus/webPosLogin/components/LoginPanel/index.less +43 -0
- package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +28 -0
- package/es/plus/webPosLogin/components/SelectDevice/index.js +258 -0
- package/es/plus/webPosLogin/components/SelectDevice/index.less +167 -0
- package/es/plus/webPosLogin/components/SelectStore/index.d.ts +24 -0
- package/es/plus/webPosLogin/components/SelectStore/index.js +198 -0
- package/es/plus/webPosLogin/components/SelectStore/index.less +157 -0
- package/es/plus/webPosLogin/components/UserFooter/index.d.ts +28 -0
- package/es/plus/webPosLogin/components/UserFooter/index.js +110 -0
- package/es/plus/webPosLogin/components/UserFooter/index.less +70 -0
- package/es/plus/webPosLogin/index.d.ts +12 -0
- package/es/plus/webPosLogin/index.js +15 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -0
- package/es/plus/webPosLogin/locales.js +57 -0
- package/es/plus/webPosLogin/service.d.ts +44 -0
- package/es/plus/webPosLogin/service.js +198 -0
- package/es/plus/webPosLogin/types.d.ts +286 -0
- package/es/plus/webPosLogin/types.js +1 -0
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
- 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/Favorite/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
- 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/Tags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +11 -0
- package/lib/plus/webPosLogin/WebPosLogin.js +334 -0
- package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/lib/plus/webPosLogin/WebPosLoginCpt.js +170 -0
- package/lib/plus/webPosLogin/WebPosLoginCpt.less +171 -0
- package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/lib/plus/webPosLogin/components/BrandPanel/index.js +63 -0
- package/lib/plus/webPosLogin/components/BrandPanel/index.less +58 -0
- package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/lib/plus/webPosLogin/components/LoginPanel/index.js +98 -0
- package/lib/plus/webPosLogin/components/LoginPanel/index.less +43 -0
- package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +28 -0
- package/lib/plus/webPosLogin/components/SelectDevice/index.js +158 -0
- package/lib/plus/webPosLogin/components/SelectDevice/index.less +167 -0
- package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +24 -0
- package/lib/plus/webPosLogin/components/SelectStore/index.js +123 -0
- package/lib/plus/webPosLogin/components/SelectStore/index.less +157 -0
- package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +28 -0
- package/lib/plus/webPosLogin/components/UserFooter/index.js +91 -0
- package/lib/plus/webPosLogin/components/UserFooter/index.less +70 -0
- package/lib/plus/webPosLogin/index.d.ts +12 -0
- package/lib/plus/webPosLogin/index.js +56 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -0
- package/lib/plus/webPosLogin/locales.js +77 -0
- package/lib/plus/webPosLogin/service.d.ts +44 -0
- package/lib/plus/webPosLogin/service.js +94 -0
- package/lib/plus/webPosLogin/types.d.ts +286 -0
- package/lib/plus/webPosLogin/types.js +17 -0
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
- package/lowcode/web-pos-login/meta.ts +71 -0
- package/package.json +4 -4
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { StoreItem } from './types';
|
|
2
|
+
interface IGetDeviceListParams {
|
|
3
|
+
type: string;
|
|
4
|
+
with: string[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 获取设备列表
|
|
8
|
+
* @param params 查询参数
|
|
9
|
+
* @returns Promise<{list: any[], count: number}> 设备列表和总数
|
|
10
|
+
*/
|
|
11
|
+
export declare const getDeviceList: (parmas: IGetDeviceListParams) => Promise<any[]>;
|
|
12
|
+
/**
|
|
13
|
+
* 选择店铺
|
|
14
|
+
* @param shopId 店铺ID
|
|
15
|
+
* @returns Promise<any> 选择店铺结果
|
|
16
|
+
*/
|
|
17
|
+
export declare const selectShop: (shopId: string) => Promise<any>;
|
|
18
|
+
/**
|
|
19
|
+
* 获取租户详情
|
|
20
|
+
* @param deviceId 设备ID
|
|
21
|
+
* @returns Promise<any> 租户详情
|
|
22
|
+
*/
|
|
23
|
+
export declare const getTenantDetail: () => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* 获取租户列表
|
|
26
|
+
* @returns Promise<any> 租户列表
|
|
27
|
+
*/
|
|
28
|
+
export declare const getTenant: () => Promise<StoreItem[]>;
|
|
29
|
+
/**
|
|
30
|
+
* 选择设备
|
|
31
|
+
* @param deviceNumber 设备编号
|
|
32
|
+
* @returns Promise<any> 设备详情
|
|
33
|
+
*/
|
|
34
|
+
export declare const selectDevice: (params: Record<string, any>) => Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* 解除设备绑定
|
|
37
|
+
* @param deviceNumber 设备编号
|
|
38
|
+
* @returns Promise<any> 解除设备绑定结果
|
|
39
|
+
*/
|
|
40
|
+
export declare const dissociateDevice: (params: {
|
|
41
|
+
number: string;
|
|
42
|
+
dissociateDeviceNumber: string;
|
|
43
|
+
}) => Promise<any>;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
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/plus/webPosLogin/service.ts
|
|
20
|
+
var service_exports = {};
|
|
21
|
+
__export(service_exports, {
|
|
22
|
+
dissociateDevice: () => dissociateDevice,
|
|
23
|
+
getDeviceList: () => getDeviceList,
|
|
24
|
+
getTenant: () => getTenant,
|
|
25
|
+
getTenantDetail: () => getTenantDetail,
|
|
26
|
+
selectDevice: () => selectDevice,
|
|
27
|
+
selectShop: () => selectShop
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(service_exports);
|
|
30
|
+
var import_utils = require("../../utils");
|
|
31
|
+
var getDeviceList = async (parmas) => {
|
|
32
|
+
try {
|
|
33
|
+
const { data } = await import_utils.request.getRequest().get(
|
|
34
|
+
`/shop/device/select`,
|
|
35
|
+
parmas,
|
|
36
|
+
{
|
|
37
|
+
cache: {
|
|
38
|
+
mode: "remote_local",
|
|
39
|
+
type: "indexDB"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
return data || [];
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error(error);
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var selectShop = async (shopId) => {
|
|
50
|
+
const { data } = await import_utils.request.getRequest().get(
|
|
51
|
+
`/shop/account/choose-shop/${shopId}`,
|
|
52
|
+
{},
|
|
53
|
+
{
|
|
54
|
+
cache: {
|
|
55
|
+
mode: "remote_local",
|
|
56
|
+
type: "indexDB"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
return data;
|
|
61
|
+
};
|
|
62
|
+
var getTenantDetail = async () => {
|
|
63
|
+
const { data } = await import_utils.request.getRequest().get(`/tenant/core`, {}, {
|
|
64
|
+
prefix: false
|
|
65
|
+
});
|
|
66
|
+
return data;
|
|
67
|
+
};
|
|
68
|
+
var getTenant = async () => {
|
|
69
|
+
const { data } = await import_utils.request.getRequest().get(`/account/auth/tenant`, {}, {
|
|
70
|
+
prefix: false
|
|
71
|
+
});
|
|
72
|
+
return data;
|
|
73
|
+
};
|
|
74
|
+
var selectDevice = async (params) => {
|
|
75
|
+
const { deviceNumber, ...rest } = params;
|
|
76
|
+
const { data } = await import_utils.request.getRequest().post(`/shop/device/${deviceNumber}/allocate`, rest);
|
|
77
|
+
return data;
|
|
78
|
+
};
|
|
79
|
+
var dissociateDevice = async (params) => {
|
|
80
|
+
const { number, dissociateDeviceNumber } = params;
|
|
81
|
+
const { data } = await import_utils.request.getRequest().post(`/shop/device/${dissociateDeviceNumber}/deactivate`, {
|
|
82
|
+
number
|
|
83
|
+
});
|
|
84
|
+
return data;
|
|
85
|
+
};
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
dissociateDevice,
|
|
89
|
+
getDeviceList,
|
|
90
|
+
getTenant,
|
|
91
|
+
getTenantDetail,
|
|
92
|
+
selectDevice,
|
|
93
|
+
selectShop
|
|
94
|
+
});
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebPosLogin 组件类型定义
|
|
3
|
+
* @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
/**
|
|
7
|
+
* 店铺数据结构
|
|
8
|
+
* @description 从租户列表接口返回的店铺信息
|
|
9
|
+
*/
|
|
10
|
+
export interface StoreItem {
|
|
11
|
+
/** 店铺ID */
|
|
12
|
+
id: number;
|
|
13
|
+
/** 租户ID */
|
|
14
|
+
tenant_id: number;
|
|
15
|
+
/** 账户ID */
|
|
16
|
+
account_id: number;
|
|
17
|
+
/** 类型 */
|
|
18
|
+
type: string;
|
|
19
|
+
/** 昵称 */
|
|
20
|
+
nickname: string;
|
|
21
|
+
/** 状态 */
|
|
22
|
+
status: string;
|
|
23
|
+
/** 创建时间 */
|
|
24
|
+
created_at?: string;
|
|
25
|
+
/** 更新时间 */
|
|
26
|
+
updated_at?: string;
|
|
27
|
+
/** 租户详情 */
|
|
28
|
+
tenant: {
|
|
29
|
+
/** 租户ID */
|
|
30
|
+
id: number;
|
|
31
|
+
/** 父租户ID */
|
|
32
|
+
tenant_id?: number;
|
|
33
|
+
/** 账户ID */
|
|
34
|
+
account_id?: number;
|
|
35
|
+
/** 类型 */
|
|
36
|
+
type?: string;
|
|
37
|
+
/** 名称(多语言) */
|
|
38
|
+
name: {
|
|
39
|
+
en?: string | null;
|
|
40
|
+
'zh-CN'?: string | null;
|
|
41
|
+
'zh-HK'?: string | null;
|
|
42
|
+
original: string;
|
|
43
|
+
};
|
|
44
|
+
/** Logo图片 */
|
|
45
|
+
logo?: string;
|
|
46
|
+
/** 图标 */
|
|
47
|
+
icon?: string;
|
|
48
|
+
/** Favicon */
|
|
49
|
+
favicon?: string;
|
|
50
|
+
/** 默认域名 */
|
|
51
|
+
default_domain: string;
|
|
52
|
+
/** 私有域名 */
|
|
53
|
+
private_domain?: string | null;
|
|
54
|
+
/** 货币代码 */
|
|
55
|
+
currency_code?: string | null;
|
|
56
|
+
/** 国家代码 */
|
|
57
|
+
country_code?: string | null;
|
|
58
|
+
/** 语言 */
|
|
59
|
+
locale?: string;
|
|
60
|
+
/** 时区 */
|
|
61
|
+
timezone?: string;
|
|
62
|
+
/** 状态 */
|
|
63
|
+
status?: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 设备客户端信息
|
|
68
|
+
* @description 设备绑定的客户端详情
|
|
69
|
+
*/
|
|
70
|
+
export interface DeviceClient {
|
|
71
|
+
/** 客户端ID */
|
|
72
|
+
id: number;
|
|
73
|
+
/** 店铺ID */
|
|
74
|
+
shop_id: number;
|
|
75
|
+
/** 设备ID */
|
|
76
|
+
device_id: number;
|
|
77
|
+
/** 客户端编号 */
|
|
78
|
+
number: string;
|
|
79
|
+
/** 客户端名称 */
|
|
80
|
+
name: string;
|
|
81
|
+
/** 客户端类型 */
|
|
82
|
+
type: string;
|
|
83
|
+
/** 设备型号 */
|
|
84
|
+
model?: string;
|
|
85
|
+
/** 系统版本 */
|
|
86
|
+
version?: string;
|
|
87
|
+
/** 设备详细数据 */
|
|
88
|
+
data?: {
|
|
89
|
+
battery?: {
|
|
90
|
+
is_charging?: boolean;
|
|
91
|
+
visible_percent?: string;
|
|
92
|
+
};
|
|
93
|
+
hardware?: {
|
|
94
|
+
country?: string;
|
|
95
|
+
datetime?: string;
|
|
96
|
+
language?: string;
|
|
97
|
+
timezone?: string;
|
|
98
|
+
};
|
|
99
|
+
application?: {
|
|
100
|
+
name?: string;
|
|
101
|
+
type?: string;
|
|
102
|
+
version?: string;
|
|
103
|
+
language?: string;
|
|
104
|
+
bundle_id?: string;
|
|
105
|
+
};
|
|
106
|
+
connectivity?: {
|
|
107
|
+
ip?: string;
|
|
108
|
+
type?: string;
|
|
109
|
+
wifi_details?: any[];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/** 最后刷新时间 */
|
|
113
|
+
refreshed_at?: string;
|
|
114
|
+
/** 创建时间 */
|
|
115
|
+
created_at?: string;
|
|
116
|
+
/** 更新时间 */
|
|
117
|
+
updated_at?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 设备数据结构
|
|
121
|
+
* @description 从设备列表接口返回的设备信息
|
|
122
|
+
*/
|
|
123
|
+
export interface DeviceItem {
|
|
124
|
+
/** 设备ID */
|
|
125
|
+
id: number;
|
|
126
|
+
/** 店铺ID */
|
|
127
|
+
shop_id: number;
|
|
128
|
+
/** 设备类型 */
|
|
129
|
+
type: string;
|
|
130
|
+
/** 设备编号 */
|
|
131
|
+
number: string;
|
|
132
|
+
/** 设备名称 */
|
|
133
|
+
name: string;
|
|
134
|
+
/** 设备描述 */
|
|
135
|
+
description?: string;
|
|
136
|
+
/** 设备设置 */
|
|
137
|
+
setting?: any[];
|
|
138
|
+
/** 创建时间 */
|
|
139
|
+
created_at?: string;
|
|
140
|
+
/** 更新时间 */
|
|
141
|
+
updated_at?: string;
|
|
142
|
+
/** 绑定的客户端信息(null 表示未被使用) */
|
|
143
|
+
client?: DeviceClient | null;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* 用户信息
|
|
147
|
+
* @description 当前登录用户的基本信息
|
|
148
|
+
*/
|
|
149
|
+
export interface UserInfo {
|
|
150
|
+
/** 用户名称 */
|
|
151
|
+
name: string;
|
|
152
|
+
/** 用户头像 */
|
|
153
|
+
avatar?: string;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 品牌区轮播项
|
|
157
|
+
* @description 左侧品牌区的轮播内容配置
|
|
158
|
+
*/
|
|
159
|
+
export interface CarouselItem {
|
|
160
|
+
/** 内容类型:图片或视频 */
|
|
161
|
+
type: 'image' | 'video';
|
|
162
|
+
/** 资源URL */
|
|
163
|
+
url: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 品牌区配置
|
|
167
|
+
* @description 左侧品牌展示区域的配置
|
|
168
|
+
*/
|
|
169
|
+
export interface BrandConfig {
|
|
170
|
+
/** 轮播内容列表(图片/视频) */
|
|
171
|
+
carouselItems?: CarouselItem[];
|
|
172
|
+
/** 默认Logo(当无轮播时显示) */
|
|
173
|
+
logo?: string;
|
|
174
|
+
/** 品牌标语 */
|
|
175
|
+
slogan?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* 登录流程步骤
|
|
179
|
+
*/
|
|
180
|
+
export declare type LoginStep = 'login' | 'store' | 'device';
|
|
181
|
+
/**
|
|
182
|
+
* 支持的语言类型
|
|
183
|
+
*/
|
|
184
|
+
export declare type LocaleType = 'en' | 'zh-CN' | 'zh-HK';
|
|
185
|
+
/**
|
|
186
|
+
* WebPosLogin 主组件 Props
|
|
187
|
+
* @description WebPOS 登录组件的所有配置项
|
|
188
|
+
*/
|
|
189
|
+
export interface WebPosLoginCptProps {
|
|
190
|
+
/** 自定义类名 */
|
|
191
|
+
className?: string;
|
|
192
|
+
/** 自定义样式 */
|
|
193
|
+
style?: React.CSSProperties;
|
|
194
|
+
/** 背景图片URL */
|
|
195
|
+
backgroundImage?: string;
|
|
196
|
+
/** 品牌区配置 */
|
|
197
|
+
brandConfig?: BrandConfig;
|
|
198
|
+
/** 当前步骤:login-登录 | store-店铺选择 | device-设备选择 */
|
|
199
|
+
step?: LoginStep;
|
|
200
|
+
/** 是否显示返回按钮(默认 true) */
|
|
201
|
+
showBackButton?: boolean;
|
|
202
|
+
/** 店铺列表数据 */
|
|
203
|
+
storeList?: StoreItem[];
|
|
204
|
+
/** 设备列表数据 */
|
|
205
|
+
deviceList?: DeviceItem[];
|
|
206
|
+
/** 当前用户信息 */
|
|
207
|
+
userInfo?: UserInfo;
|
|
208
|
+
/** 当前选中的店铺 */
|
|
209
|
+
selectedStore?: StoreItem;
|
|
210
|
+
/** 上次使用的店铺ID(用于显示 Last used 标签) */
|
|
211
|
+
lastUsedStoreId?: number;
|
|
212
|
+
/** 上次使用的设备ID(用于显示 Last used 标签) */
|
|
213
|
+
lastUsedDeviceId?: number;
|
|
214
|
+
/** 语言设置 */
|
|
215
|
+
locale?: LocaleType;
|
|
216
|
+
/** 加载状态 */
|
|
217
|
+
loading?: boolean;
|
|
218
|
+
/** 登录配置 */
|
|
219
|
+
loginConfig?: any;
|
|
220
|
+
/** 店铺选择回调 */
|
|
221
|
+
onStoreSelect?: (store: StoreItem) => void;
|
|
222
|
+
/** 设备选择回调 */
|
|
223
|
+
onDeviceSelect?: (device: DeviceItem) => void;
|
|
224
|
+
/** 切换账号回调 */
|
|
225
|
+
onChangeAccount?: () => void;
|
|
226
|
+
/** 切换店铺回调 */
|
|
227
|
+
onChangeStore?: () => void;
|
|
228
|
+
/** 返回上一步回调 */
|
|
229
|
+
onBack?: () => void;
|
|
230
|
+
/** 登录成功回调 */
|
|
231
|
+
onLoginSuccess?: (data: any) => void;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* BrandPanel 品牌区组件 Props
|
|
235
|
+
*/
|
|
236
|
+
export interface BrandPanelProps {
|
|
237
|
+
/** 品牌配置 */
|
|
238
|
+
config?: BrandConfig;
|
|
239
|
+
/** 自定义类名 */
|
|
240
|
+
className?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* SelectStore 店铺选择组件 Props
|
|
244
|
+
*/
|
|
245
|
+
export interface SelectStoreProps {
|
|
246
|
+
/** 店铺列表 */
|
|
247
|
+
storeList?: StoreItem[];
|
|
248
|
+
/** 语言 */
|
|
249
|
+
locale?: LocaleType;
|
|
250
|
+
/** 加载状态 */
|
|
251
|
+
loading?: boolean;
|
|
252
|
+
/** 上次使用的店铺ID */
|
|
253
|
+
lastUsedStoreId?: number;
|
|
254
|
+
/** 选择店铺回调 */
|
|
255
|
+
onSelect?: (store: StoreItem) => void;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* SelectDevice 设备选择组件 Props
|
|
259
|
+
*/
|
|
260
|
+
export interface SelectDeviceProps {
|
|
261
|
+
/** 设备列表 */
|
|
262
|
+
deviceList?: DeviceItem[];
|
|
263
|
+
/** 语言 */
|
|
264
|
+
locale?: LocaleType;
|
|
265
|
+
/** 加载状态 */
|
|
266
|
+
loading?: boolean;
|
|
267
|
+
/** 选择设备回调 */
|
|
268
|
+
onSelect?: (device: DeviceItem) => void;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* UserFooter 底部用户信息组件 Props
|
|
272
|
+
*/
|
|
273
|
+
export interface UserFooterProps {
|
|
274
|
+
/** 用户信息 */
|
|
275
|
+
userInfo?: UserInfo;
|
|
276
|
+
/** 当前选中的店铺 */
|
|
277
|
+
selectedStore?: StoreItem;
|
|
278
|
+
/** 当前步骤 */
|
|
279
|
+
step?: LoginStep;
|
|
280
|
+
/** 语言 */
|
|
281
|
+
locale?: LocaleType;
|
|
282
|
+
/** 切换账号回调 */
|
|
283
|
+
onChangeAccount?: () => void;
|
|
284
|
+
/** 切换店铺回调 */
|
|
285
|
+
onChangeStore?: () => void;
|
|
286
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/plus/webPosLogin/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
5
|
* 包括如何通过 Context 访问父组件配置
|
|
6
6
|
*/
|
|
7
|
+
/// <reference types="react" />
|
|
7
8
|
export declare const BasicExample: () => JSX.Element;
|
|
8
9
|
export declare const ChildrenExample: () => JSX.Element;
|
|
9
10
|
export declare const CustomItemExample: () => JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
import loginMeta from '../login2/meta';
|
|
4
|
+
|
|
5
|
+
const BookingAddonsMeta: ComponentMetadata = {
|
|
6
|
+
componentName: 'WebPosLogin',
|
|
7
|
+
title: 'WebPosLogin',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/private-materials',
|
|
13
|
+
version: '1.1.558',
|
|
14
|
+
exportName: 'WebPosLogin',
|
|
15
|
+
main: 'src/index.ts',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
configure: {
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
title: {
|
|
23
|
+
label: {
|
|
24
|
+
type: 'i18n',
|
|
25
|
+
'en-US': 'step | 登录流程步骤',
|
|
26
|
+
'zh-CN': 'step | 登录流程步骤',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
name: 'step',
|
|
30
|
+
setter: {
|
|
31
|
+
componentName: 'StringSetter',
|
|
32
|
+
isRequired: true,
|
|
33
|
+
props: {},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: {
|
|
38
|
+
label: {
|
|
39
|
+
type: 'i18n',
|
|
40
|
+
'en-US': 'backgroundImage | 背景图片',
|
|
41
|
+
'zh-CN': 'backgroundImage | 背景图片',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
name: 'backgroundImage',
|
|
45
|
+
setter: {
|
|
46
|
+
componentName: 'StringSetter',
|
|
47
|
+
isRequired: true,
|
|
48
|
+
props: {},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
...loginMeta.configure?.props || [],
|
|
52
|
+
],
|
|
53
|
+
supports: {},
|
|
54
|
+
component: {},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
const snippets: Snippet[] = [
|
|
58
|
+
{
|
|
59
|
+
title: 'WebPosLogin',
|
|
60
|
+
screenshot: '',
|
|
61
|
+
schema: {
|
|
62
|
+
componentName: 'WebPosLogin',
|
|
63
|
+
props: {},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
export default {
|
|
69
|
+
...BookingAddonsMeta,
|
|
70
|
+
snippets,
|
|
71
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.2",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"styled-components": "^6.0.0-rc.3",
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
|
-
"@pisell/utils": "3.0.2",
|
|
65
|
-
"@pisell/icon": "0.0.11",
|
|
66
64
|
"@pisell/materials": "6.7.1",
|
|
67
|
-
"@pisell/
|
|
65
|
+
"@pisell/utils": "3.0.2",
|
|
66
|
+
"@pisell/date-picker": "3.0.7",
|
|
67
|
+
"@pisell/icon": "0.0.11"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|