@pisell/private-materials 6.3.117 → 6.3.119
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +4 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/cupList/const.d.ts +140 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/hooks.d.ts +57 -0
- package/es/components/ecocup/locales.d.ts +653 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +186 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/locales.d.ts +572 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/store/index.d.ts +358 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/locales.d.ts +626 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/locales.d.ts +53 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/locales.d.ts +68 -0
- package/es/components/systemSettings/registry/locales.d.ts +534 -0
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +140 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/ticketBooking/locales.d.ts +304 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/useEngineContext.d.ts +11 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/es/plus/pisellSalesGrid/types.d.ts +170 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/selectHolder/locales.d.ts +35 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +10 -3
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +6 -2
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -10
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/index.js +2 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/locales.js +10 -5
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +19 -6
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +45 -58
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
- package/es/plus/walletPassGallery/locales.d.ts +483 -0
- package/es/pro/Cards/components/SKUCard/index.js +5 -2
- package/es/pro/Cards/components/SKUCard/index.less +18 -3
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Login2.0/locales.d.ts +908 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Item.d.ts +14 -0
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/index.d.ts +11 -0
- package/es/pro/Selector/locales.d.ts +58 -0
- package/es/pro/Selector/types.d.ts +223 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +4 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/cupList/const.d.ts +140 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/hooks.d.ts +57 -0
- package/lib/components/ecocup/locales.d.ts +653 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +186 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/locales.d.ts +572 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/store/index.d.ts +358 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/locales.d.ts +626 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/locales.d.ts +53 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/locales.d.ts +68 -0
- package/lib/components/systemSettings/registry/locales.d.ts +534 -0
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +140 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/ticketBooking/locales.d.ts +304 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/useEngineContext.d.ts +11 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/selectHolder/locales.d.ts +35 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +15 -9
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +3 -3
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -7
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -1
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/locales.js +10 -5
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +15 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +39 -54
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
- package/lib/plus/walletPassGallery/locales.d.ts +483 -0
- package/lib/pro/Cards/components/SKUCard/index.js +4 -7
- package/lib/pro/Cards/components/SKUCard/index.less +18 -3
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Login2.0/locales.d.ts +908 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Item.d.ts +14 -0
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/index.d.ts +11 -0
- package/lib/pro/Selector/locales.d.ts +58 -0
- package/lib/pro/Selector/types.d.ts +223 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +1 -1
|
@@ -32,10 +32,9 @@
|
|
|
32
32
|
&-item {
|
|
33
33
|
position: relative;
|
|
34
34
|
display: flex;
|
|
35
|
-
padding: 16px 16px 0 16px;
|
|
36
35
|
flex-direction: column;
|
|
37
36
|
align-items: flex-start;
|
|
38
|
-
|
|
37
|
+
|
|
39
38
|
border-radius: 12px;
|
|
40
39
|
background: #f5f5f5;
|
|
41
40
|
|
|
@@ -55,6 +54,20 @@
|
|
|
55
54
|
font-weight: 400;
|
|
56
55
|
}
|
|
57
56
|
|
|
57
|
+
&-section {
|
|
58
|
+
width: 100%;
|
|
59
|
+
padding: 16px 16px 0 16px;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: 20px;
|
|
63
|
+
|
|
64
|
+
&-divider {
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 1px;
|
|
67
|
+
background: #d0d5dd;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
58
71
|
&-content {
|
|
59
72
|
width: 100%;
|
|
60
73
|
display: flex;
|
|
@@ -91,18 +104,18 @@
|
|
|
91
104
|
|
|
92
105
|
&-footer {
|
|
93
106
|
width: 100%;
|
|
94
|
-
|
|
107
|
+
height: 56px;
|
|
95
108
|
display: flex;
|
|
96
109
|
align-items: center;
|
|
97
|
-
|
|
110
|
+
justify-content: space-between;
|
|
98
111
|
|
|
99
112
|
&-stepper {
|
|
113
|
+
height: 100%;
|
|
100
114
|
display: flex;
|
|
101
|
-
flex: 1;
|
|
102
115
|
}
|
|
103
116
|
|
|
104
117
|
&-info {
|
|
105
|
-
padding
|
|
118
|
+
padding: 0 16px;
|
|
106
119
|
display: flex;
|
|
107
120
|
align-items: center;
|
|
108
121
|
justify-content: space-between;
|
|
@@ -112,4 +125,4 @@
|
|
|
112
125
|
}
|
|
113
126
|
}
|
|
114
127
|
}
|
|
115
|
-
}
|
|
128
|
+
}
|
|
@@ -34,6 +34,7 @@ __export(OptionsModal_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(OptionsModal_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
37
38
|
var import_Selector = __toESM(require("../../../../pro/Selector"));
|
|
38
39
|
var import_NumericStepper = __toESM(require("../../../../pro/NumericStepper"));
|
|
39
40
|
var import_hooks = require("../../hooks");
|
|
@@ -45,6 +46,7 @@ var OptionsModal = (props) => {
|
|
|
45
46
|
const [stepNumber, setStepNumber] = (0, import_react.useState)(1);
|
|
46
47
|
const [modalValue, setModalValue] = (0, import_react.useState)((props == null ? void 0 : props.modalValue) || {});
|
|
47
48
|
const customConfig = (0, import_hooks.useStore)((s) => s.customConfig);
|
|
49
|
+
console.log(customConfig, "customConfig>>>>>>>");
|
|
48
50
|
(0, import_react.useEffect)(() => {
|
|
49
51
|
var _a2, _b2;
|
|
50
52
|
if (!!((_a2 = props == null ? void 0 : props.modalValue) == null ? void 0 : _a2.quantity)) {
|
|
@@ -89,7 +91,7 @@ var OptionsModal = (props) => {
|
|
|
89
91
|
open,
|
|
90
92
|
onCancel,
|
|
91
93
|
title,
|
|
92
|
-
footer: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-plus-sku-options-card-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
|
94
|
+
footer: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-plus-sku-options-card-footer" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
93
95
|
import_NumericStepper.default,
|
|
94
96
|
{
|
|
95
97
|
min: canSelectedMin,
|
|
@@ -97,19 +99,17 @@ var OptionsModal = (props) => {
|
|
|
97
99
|
value: stepNumber,
|
|
98
100
|
onChange: (value) => {
|
|
99
101
|
setStepNumber(value);
|
|
100
|
-
}
|
|
101
|
-
showInput: true
|
|
102
|
+
}
|
|
102
103
|
}
|
|
103
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
104
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
104
105
|
import_materials.Button,
|
|
105
106
|
{
|
|
106
107
|
type: "primary",
|
|
107
108
|
onClick: handleConfirm,
|
|
108
109
|
size: "large",
|
|
109
|
-
block: true
|
|
110
|
-
style: { backgroundColor: "#7F56D9", borderColor: "#7F56D9" }
|
|
110
|
+
block: true
|
|
111
111
|
},
|
|
112
|
-
"
|
|
112
|
+
import_utils.locales.getText("pisell2.skuOptionsSelection.optionItemCard.confirm")
|
|
113
113
|
)),
|
|
114
114
|
footerDivider: false,
|
|
115
115
|
destroyOnClose: true,
|
|
@@ -136,7 +136,8 @@ var SKUOptionsSelection = (0, import_react.forwardRef)((props, ref) => {
|
|
|
136
136
|
(_a = props == null ? void 0 : props.onChange) == null ? void 0 : _a.call(props, transformValue);
|
|
137
137
|
},
|
|
138
138
|
style: props == null ? void 0 : props.style,
|
|
139
|
-
customScrollParent: props == null ? void 0 : props.customScrollParent
|
|
139
|
+
customScrollParent: props == null ? void 0 : props.customScrollParent,
|
|
140
|
+
theme: props == null ? void 0 : props.theme
|
|
140
141
|
}
|
|
141
142
|
);
|
|
142
143
|
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.skuOptionsSelection.title': string;
|
|
4
|
+
'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
|
|
5
|
+
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
6
|
+
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
7
|
+
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
8
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
9
|
+
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
10
|
+
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
11
|
+
'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
|
|
12
|
+
};
|
|
13
|
+
'zh-CN': {
|
|
14
|
+
'pisell2.skuOptionsSelection.title': string;
|
|
15
|
+
'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
|
|
16
|
+
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
17
|
+
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
18
|
+
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
19
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
20
|
+
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
21
|
+
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
22
|
+
'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
|
|
23
|
+
};
|
|
24
|
+
'zh-HK': {
|
|
25
|
+
'pisell2.skuOptionsSelection.title': string;
|
|
26
|
+
'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
|
|
27
|
+
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
28
|
+
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
29
|
+
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
30
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
31
|
+
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
32
|
+
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
33
|
+
'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
|
|
34
|
+
};
|
|
35
|
+
ja: {
|
|
36
|
+
'pisell2.skuOptionsSelection.title': string;
|
|
37
|
+
'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
|
|
38
|
+
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
39
|
+
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
40
|
+
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
41
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
42
|
+
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
43
|
+
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
44
|
+
'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
|
|
45
|
+
};
|
|
46
|
+
pt: {
|
|
47
|
+
'pisell2.skuOptionsSelection.title': string;
|
|
48
|
+
'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
|
|
49
|
+
'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
|
|
50
|
+
'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
|
|
51
|
+
'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
|
|
52
|
+
'pisell2.skuOptionsSelection.variantItemCard.price': string;
|
|
53
|
+
'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
|
|
54
|
+
'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
|
|
55
|
+
'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export default _default;
|
|
@@ -31,7 +31,8 @@ var locales_default = {
|
|
|
31
31
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "Out of stock",
|
|
32
32
|
"pisell2.skuOptionsSelection.variantItemCard.price": "Price",
|
|
33
33
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "Type",
|
|
34
|
-
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "Over selected"
|
|
34
|
+
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "Over selected",
|
|
35
|
+
"pisell2.skuOptionsSelection.optionItemCard.confirm": "Confirm"
|
|
35
36
|
},
|
|
36
37
|
"zh-CN": {
|
|
37
38
|
"pisell2.skuOptionsSelection.title": "SKU 选项选择",
|
|
@@ -41,7 +42,8 @@ var locales_default = {
|
|
|
41
42
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "库存不足",
|
|
42
43
|
"pisell2.skuOptionsSelection.variantItemCard.price": "价格",
|
|
43
44
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "类型",
|
|
44
|
-
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已达上限"
|
|
45
|
+
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已达上限",
|
|
46
|
+
"pisell2.skuOptionsSelection.optionItemCard.confirm": "确定"
|
|
45
47
|
},
|
|
46
48
|
"zh-HK": {
|
|
47
49
|
"pisell2.skuOptionsSelection.title": "SKU 選項選擇",
|
|
@@ -51,7 +53,8 @@ var locales_default = {
|
|
|
51
53
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "庫存不足",
|
|
52
54
|
"pisell2.skuOptionsSelection.variantItemCard.price": "價格",
|
|
53
55
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "類型",
|
|
54
|
-
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已達上限"
|
|
56
|
+
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "已達上限",
|
|
57
|
+
"pisell2.skuOptionsSelection.optionItemCard.confirm": "確定"
|
|
55
58
|
},
|
|
56
59
|
ja: {
|
|
57
60
|
"pisell2.skuOptionsSelection.title": "SKUオプション選択",
|
|
@@ -61,7 +64,8 @@ var locales_default = {
|
|
|
61
64
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "在庫切れ",
|
|
62
65
|
"pisell2.skuOptionsSelection.variantItemCard.price": "価格",
|
|
63
66
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "タイプ",
|
|
64
|
-
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "上限に達しました"
|
|
67
|
+
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "上限に達しました",
|
|
68
|
+
"pisell2.skuOptionsSelection.optionItemCard.confirm": "確定"
|
|
65
69
|
},
|
|
66
70
|
pt: {
|
|
67
71
|
"pisell2.skuOptionsSelection.title": "Seleção de Opções SKU",
|
|
@@ -71,6 +75,7 @@ var locales_default = {
|
|
|
71
75
|
"pisell2.skuOptionsSelection.variantItemCard.soldOut": "Esgotado",
|
|
72
76
|
"pisell2.skuOptionsSelection.variantItemCard.price": "Preço",
|
|
73
77
|
"pisell2.skuOptionsSelection.optionItemCard.typeText": "Tipo",
|
|
74
|
-
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "Limite excedido"
|
|
78
|
+
"pisell2.skuOptionsSelection.optionItemCard.overSelected": "Limite excedido",
|
|
79
|
+
"pisell2.skuOptionsSelection.optionItemCard.confirm": "Confirmar"
|
|
75
80
|
}
|
|
76
81
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SkuCardConfig, SkuSelectionState } from '../types';
|
|
2
|
+
declare const actions: {
|
|
3
|
+
/** 更新数据源 */
|
|
4
|
+
updateDataSource: (dataSource: any) => void;
|
|
5
|
+
/** 更新原始值 */
|
|
6
|
+
updateValue: (value: Record<string | number, any>) => void;
|
|
7
|
+
/** 更新配置 */
|
|
8
|
+
updateConfig: (config: any) => void;
|
|
9
|
+
/** 更新符号 */
|
|
10
|
+
updateSymbol: (symbol: string) => void;
|
|
11
|
+
/** 更新Selector数据源 */
|
|
12
|
+
updateSelectorDataSource: (selectorDataSource: any[]) => void;
|
|
13
|
+
/** 更新Selector识别的值 */
|
|
14
|
+
updateSelectorValue: (selectorValue: Record<string | number, any>) => void;
|
|
15
|
+
/** 更新 SKU Card 配置 */
|
|
16
|
+
updateSkuCardConfig: (skuCardConfig: SkuCardConfig) => void;
|
|
17
|
+
/** 更新自定义配置 */
|
|
18
|
+
updateCustomConfig: (customConfig: Partial<SkuSelectionState['customConfig']>) => void;
|
|
19
|
+
/** 清空整个store的值 */
|
|
20
|
+
clearStore: () => void;
|
|
21
|
+
};
|
|
22
|
+
export default actions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface StoreApi<T> {
|
|
2
|
+
setState: (partial: Partial<T> | ((prev: T) => Partial<T>)) => void;
|
|
3
|
+
getState: () => T;
|
|
4
|
+
subscribe: (listener: () => void) => () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface UseStore<T> extends StoreApi<T> {
|
|
7
|
+
<S>(selector?: (state: T) => S): S;
|
|
8
|
+
<S = T>(): S;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 创建一个跨 React 版本兼容的 Store
|
|
12
|
+
* 支持自动浅合并 (Auto Shallow Merge)
|
|
13
|
+
* @param initialState 初始状态
|
|
14
|
+
*/
|
|
15
|
+
export default function createStore<T extends object>(initialState: T): UseStore<T>;
|