@pisell/private-materials 3.4.59 → 3.4.60
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 +10 -10
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/index.js +529 -0
- package/es/components/kioskSkuDetail/index.less +196 -0
- package/es/components/kioskSkuDetail/locales.d.ts +27 -0
- package/es/components/kioskSkuDetail/locales.js +26 -0
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/es/plus/saasRegister/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- 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 +1 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/store/actions.js +17 -2
- package/es/plus/skuOptionsSelection/types.d.ts +5 -0
- package/es/plus/skuOptionsSelection/types.js +2 -1
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/index.js +155 -0
- package/es/pro/numberKeyboard/index.less +25 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/numberKeyboard/locales.js +11 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellNumberSelector/index.d.ts +29 -0
- package/es/pro/pisellNumberSelector/index.js +257 -0
- package/es/pro/pisellNumberSelector/index.less +235 -0
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/index.js +393 -0
- package/lib/components/kioskSkuDetail/index.less +196 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
- package/lib/components/kioskSkuDetail/locales.js +50 -0
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/lib/plus/saasRegister/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- 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 +1 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
- package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/types.js +2 -1
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/index.js +182 -0
- package/lib/pro/numberKeyboard/index.less +25 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/numberKeyboard/locales.js +35 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
- package/lib/pro/pisellNumberSelector/index.js +275 -0
- package/lib/pro/pisellNumberSelector/index.less +235 -0
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lowcode/kiosk-sku-detail/meta.ts +264 -0
- package/package.json +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
4
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
5
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
6
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
7
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
8
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
9
|
+
};
|
|
10
|
+
'zh-CN': {
|
|
11
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
12
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
13
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
14
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
15
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
16
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
17
|
+
};
|
|
18
|
+
'zh-TW': {
|
|
19
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
20
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
21
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
22
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
23
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
24
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/kioskSkuDetail/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
en: {
|
|
27
|
+
"pisell2.text.kiosk.sku.detail.btn.back": "Back",
|
|
28
|
+
"pisell2.text.kiosk.sku.detail.item.total": "Item total",
|
|
29
|
+
"pisell2.text.kiosk.sku.detail.btn.add.to.cart": "Add to cart",
|
|
30
|
+
"pisell2.text.kiosk.sku.detail.btn.update": "Update",
|
|
31
|
+
"pisell2.text.kiosk.sku.detail.loading.options": "Loading options…",
|
|
32
|
+
"pisell2.text.kiosk.sku.detail.toast.select.variant": "Please select a top-up option"
|
|
33
|
+
},
|
|
34
|
+
"zh-CN": {
|
|
35
|
+
"pisell2.text.kiosk.sku.detail.btn.back": "返回",
|
|
36
|
+
"pisell2.text.kiosk.sku.detail.item.total": "小计",
|
|
37
|
+
"pisell2.text.kiosk.sku.detail.btn.add.to.cart": "加入购物车",
|
|
38
|
+
"pisell2.text.kiosk.sku.detail.btn.update": "更新",
|
|
39
|
+
"pisell2.text.kiosk.sku.detail.loading.options": "正在加载选项…",
|
|
40
|
+
"pisell2.text.kiosk.sku.detail.toast.select.variant": "请选择充值选项"
|
|
41
|
+
},
|
|
42
|
+
"zh-TW": {
|
|
43
|
+
"pisell2.text.kiosk.sku.detail.btn.back": "返回",
|
|
44
|
+
"pisell2.text.kiosk.sku.detail.item.total": "小計",
|
|
45
|
+
"pisell2.text.kiosk.sku.detail.btn.add.to.cart": "加入購物車",
|
|
46
|
+
"pisell2.text.kiosk.sku.detail.btn.update": "更新",
|
|
47
|
+
"pisell2.text.kiosk.sku.detail.loading.options": "正在載入選項…",
|
|
48
|
+
"pisell2.text.kiosk.sku.detail.toast.select.variant": "請選擇充值選項"
|
|
49
|
+
}
|
|
50
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -59,5 +59,7 @@ export { default as WalletEditor } from './plus/walletEditor';
|
|
|
59
59
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
60
60
|
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
61
61
|
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
|
62
|
+
export { default as KioskSkuDetail } from './components/kioskSkuDetail';
|
|
63
|
+
export { default as ProNumberSelector } from './pro/pisellNumberSelector';
|
|
62
64
|
export { default as Selector } from './pro/Selector';
|
|
63
65
|
export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
|
package/lib/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __export(src_exports, {
|
|
|
64
64
|
EventScheduleCalendar: () => import_scheduleCalendar.default,
|
|
65
65
|
EventSelectHolder: () => import_selectHolder.default,
|
|
66
66
|
EventTimeResourceSelector: () => import_timeResourceSelector.default,
|
|
67
|
+
KioskSkuDetail: () => import_kioskSkuDetail.default,
|
|
67
68
|
Login: () => import_login.default,
|
|
68
69
|
Login2: () => import_Login2.Login2,
|
|
69
70
|
OAuthConfig: () => import_admin.OAuthConfig,
|
|
@@ -73,6 +74,7 @@ __export(src_exports, {
|
|
|
73
74
|
PinModal: () => import_pinModal.default,
|
|
74
75
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
75
76
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
77
|
+
ProNumberSelector: () => import_pisellNumberSelector.default,
|
|
76
78
|
ProductExtension: () => import_productExtension.default,
|
|
77
79
|
Register2: () => import_Login2.Register2,
|
|
78
80
|
RuleSetting: () => import_ruleSetting.default,
|
|
@@ -164,6 +166,8 @@ var import_walletEditor = __toESM(require("./plus/walletEditor"));
|
|
|
164
166
|
var import_walletPassGallery = __toESM(require("./plus/walletPassGallery"));
|
|
165
167
|
var import_passDetail = __toESM(require("./plus/walletPassGallery/components/passDetail"));
|
|
166
168
|
var import_registry = __toESM(require("./components/systemSettings/registry"));
|
|
169
|
+
var import_kioskSkuDetail = __toESM(require("./components/kioskSkuDetail"));
|
|
170
|
+
var import_pisellNumberSelector = __toESM(require("./pro/pisellNumberSelector"));
|
|
167
171
|
var import_Selector = __toESM(require("./pro/Selector"));
|
|
168
172
|
var import_skuOptionsSelection = __toESM(require("./plus/skuOptionsSelection"));
|
|
169
173
|
import_dayjs.default.extend(import_weekday.default);
|
|
@@ -205,6 +209,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
205
209
|
EventScheduleCalendar,
|
|
206
210
|
EventSelectHolder,
|
|
207
211
|
EventTimeResourceSelector,
|
|
212
|
+
KioskSkuDetail,
|
|
208
213
|
Login,
|
|
209
214
|
Login2,
|
|
210
215
|
OAuthConfig,
|
|
@@ -214,6 +219,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
214
219
|
PinModal,
|
|
215
220
|
PinVerifyModal,
|
|
216
221
|
PisellSelectCustomerModal,
|
|
222
|
+
ProNumberSelector,
|
|
217
223
|
ProductExtension,
|
|
218
224
|
Register2,
|
|
219
225
|
RuleSetting,
|
|
@@ -35,10 +35,19 @@ module.exports = __toCommonJS(VariantCard_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_utils = require("@pisell/utils");
|
|
37
37
|
var import_Selector = __toESM(require("../../../../pro/Selector"));
|
|
38
|
+
var import_useStore = __toESM(require("../../hooks/useStore"));
|
|
38
39
|
var import_index = require("./index.less");
|
|
39
40
|
var VariantCard = (props) => {
|
|
40
41
|
var _a, _b, _c;
|
|
41
42
|
const { dataSource, actions } = props || {};
|
|
43
|
+
const symbol = (0, import_useStore.default)((s) => s.symbol);
|
|
44
|
+
const skuCardConfig = (0, import_useStore.default)((s) => s.skuCardConfig);
|
|
45
|
+
const isVariantPriceVisible = (skuCardConfig == null ? void 0 : skuCardConfig.variantPriceVisible) === true;
|
|
46
|
+
const priceConfig = skuCardConfig == null ? void 0 : skuCardConfig.price;
|
|
47
|
+
const priceText = formatPriceText({
|
|
48
|
+
symbol,
|
|
49
|
+
price: dataSource == null ? void 0 : dataSource.price
|
|
50
|
+
});
|
|
42
51
|
const handleClick = (e) => {
|
|
43
52
|
e.stopPropagation();
|
|
44
53
|
if (dataSource == null ? void 0 : dataSource.disabled) return;
|
|
@@ -57,10 +66,30 @@ var VariantCard = (props) => {
|
|
|
57
66
|
className: "pisell-sku-options-selection-variant-card",
|
|
58
67
|
onClick: handleClick
|
|
59
68
|
},
|
|
60
|
-
((_a = props.dataSource) == null ? void 0 : _a.title) || "",
|
|
61
|
-
((_c = (_b = props.dataSource) == null ? void 0 : _b._extra) == null ? void 0 : _c.hasStock) === false ? ` (${import_utils.locales.getText(
|
|
69
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-sku-options-selection-variant-card__title" }, ((_a = props.dataSource) == null ? void 0 : _a.title) || "", ((_c = (_b = props.dataSource) == null ? void 0 : _b._extra) == null ? void 0 : _c.hasStock) === false ? ` (${import_utils.locales.getText(
|
|
62
70
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut"
|
|
63
|
-
)})` : null
|
|
71
|
+
)})` : null),
|
|
72
|
+
isVariantPriceVisible && (priceConfig == null ? void 0 : priceConfig.visible) !== false && !!priceText ? /* @__PURE__ */ import_react.default.createElement(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
className: "pisell-sku-options-selection-variant-card__price",
|
|
76
|
+
style: {
|
|
77
|
+
fontSize: priceConfig == null ? void 0 : priceConfig.fontSize,
|
|
78
|
+
fontWeight: priceConfig == null ? void 0 : priceConfig.fontWeight,
|
|
79
|
+
color: priceConfig == null ? void 0 : priceConfig.color
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
import_utils.locales.getText("pisell2.skuOptionsSelection.variantItemCard.price"),
|
|
83
|
+
":",
|
|
84
|
+
priceText
|
|
85
|
+
) : null
|
|
64
86
|
));
|
|
65
87
|
};
|
|
88
|
+
function formatPriceText(params) {
|
|
89
|
+
const symbol = params.symbol || "$";
|
|
90
|
+
const price = Number(params.price);
|
|
91
|
+
if (!params.price && params.price !== 0) return "";
|
|
92
|
+
if (Number.isNaN(price)) return "";
|
|
93
|
+
return `${symbol}${price.toFixed(2)}`;
|
|
94
|
+
}
|
|
66
95
|
var VariantCard_default = VariantCard;
|
|
@@ -3,7 +3,17 @@
|
|
|
3
3
|
height: 100%;
|
|
4
4
|
padding: 12px 16px;
|
|
5
5
|
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 4px;
|
|
6
8
|
align-items: center;
|
|
7
9
|
justify-content: center;
|
|
8
10
|
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pisell-sku-options-selection-variant-card__title {
|
|
14
|
+
line-height: 1.2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-sku-options-selection-variant-card__price {
|
|
18
|
+
line-height: 1.2;
|
|
9
19
|
}
|
|
@@ -5,6 +5,7 @@ declare const _default: {
|
|
|
5
5
|
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
6
6
|
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
7
7
|
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
8
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
8
9
|
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
9
10
|
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
10
11
|
};
|
|
@@ -14,6 +15,7 @@ declare const _default: {
|
|
|
14
15
|
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
15
16
|
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
16
17
|
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
18
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
17
19
|
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
18
20
|
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
19
21
|
};
|
|
@@ -23,6 +25,7 @@ declare const _default: {
|
|
|
23
25
|
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
24
26
|
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
25
27
|
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
28
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
26
29
|
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
27
30
|
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
28
31
|
};
|
|
@@ -29,6 +29,7 @@ var locales_default = {
|
|
|
29
29
|
"pisell2.skuOptionsSelection.titleExtra.totalPrice": "Subtotal: {{price}}",
|
|
30
30
|
"pisell2.skuOptionsSelection.optionItemCard.editSelections": "Edit selections",
|
|
31
31
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "Out of stock",
|
|
32
|
+
"pisell2.skuOptionsSelection.variantItemCard.price": "Price",
|
|
32
33
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "Type",
|
|
33
34
|
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "Over selected"
|
|
34
35
|
},
|
|
@@ -38,6 +39,7 @@ var locales_default = {
|
|
|
38
39
|
"pisell2.skuOptionsSelection.titleExtra.totalPrice": "小计:{{price}}",
|
|
39
40
|
"pisell2.skuOptionsSelection.optionItemCard.editSelections": "编辑选择",
|
|
40
41
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "库存不足",
|
|
42
|
+
"pisell2.skuOptionsSelection.variantItemCard.price": "价格",
|
|
41
43
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "类型",
|
|
42
44
|
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已达上限"
|
|
43
45
|
},
|
|
@@ -47,6 +49,7 @@ var locales_default = {
|
|
|
47
49
|
"pisell2.skuOptionsSelection.titleExtra.totalPrice": "小計:{{price}}",
|
|
48
50
|
"pisell2.skuOptionsSelection.optionItemCard.editSelections": "編輯選擇",
|
|
49
51
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "庫存不足",
|
|
52
|
+
"pisell2.skuOptionsSelection.variantItemCard.price": "價格",
|
|
50
53
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "類型",
|
|
51
54
|
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已達上限"
|
|
52
55
|
}
|
|
@@ -60,7 +60,31 @@ var actions = {
|
|
|
60
60
|
},
|
|
61
61
|
/** 更新 SKU Card 配置 */
|
|
62
62
|
updateSkuCardConfig: (skuCardConfig) => {
|
|
63
|
-
import_store.default.setState(
|
|
63
|
+
import_store.default.setState((prev) => {
|
|
64
|
+
var _a, _b, _c, _d;
|
|
65
|
+
return {
|
|
66
|
+
skuCardConfig: {
|
|
67
|
+
...prev.skuCardConfig || {},
|
|
68
|
+
...skuCardConfig || {},
|
|
69
|
+
title: {
|
|
70
|
+
...((_a = prev.skuCardConfig) == null ? void 0 : _a.title) || {},
|
|
71
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.title) || {}
|
|
72
|
+
},
|
|
73
|
+
subTitle: {
|
|
74
|
+
...((_b = prev.skuCardConfig) == null ? void 0 : _b.subTitle) || {},
|
|
75
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.subTitle) || {}
|
|
76
|
+
},
|
|
77
|
+
price: {
|
|
78
|
+
...((_c = prev.skuCardConfig) == null ? void 0 : _c.price) || {},
|
|
79
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.price) || {}
|
|
80
|
+
},
|
|
81
|
+
image: {
|
|
82
|
+
...((_d = prev.skuCardConfig) == null ? void 0 : _d.image) || {},
|
|
83
|
+
...(skuCardConfig == null ? void 0 : skuCardConfig.image) || {}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
});
|
|
64
88
|
},
|
|
65
89
|
/** 更新自定义配置 */
|
|
66
90
|
updateCustomConfig: (customConfig) => {
|
|
@@ -41,6 +41,11 @@ export interface SkuCardConfig {
|
|
|
41
41
|
price?: Omit<SkuCardTextConfig, 'lineClamp'>;
|
|
42
42
|
/** 图片配置 */
|
|
43
43
|
image?: SkuCardImageConfig;
|
|
44
|
+
/**
|
|
45
|
+
* @description 是否在「组合规格选项卡片(VariantCard)」展示价格
|
|
46
|
+
* - 默认不展示,避免影响现有业务 UI
|
|
47
|
+
*/
|
|
48
|
+
variantPriceVisible?: boolean;
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
51
|
* SKU store状态类型
|