@pisell/private-materials 6.5.27 → 6.6.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 +146 -165
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/actionButtons/index.js +34 -20
- package/es/components/booking/components/customSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.js +25 -8
- package/es/components/booking/components/footer/index.js +66 -33
- package/es/components/booking/components/footer/utils.d.ts +7 -0
- package/es/components/booking/components/footer/utils.js +126 -99
- package/es/components/booking/components/voucher/index.js +25 -9
- package/es/components/booking/dashboard/serve.js +1 -6
- package/es/components/booking/forms/footer.js +24 -10
- package/es/components/booking/forms/serve.js +2 -12
- package/es/components/booking/hooks/useQuotation.js +69 -21
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/client/serve.js +2 -11
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/es/components/booking/info/hooks/useHolderConfig.js +9 -2
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/pet/serve.js +1 -6
- package/es/components/booking/info/service/Lists.d.ts +1 -1
- package/es/components/booking/info/service/Lists.js +10 -4
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.js +1 -11
- package/es/components/booking/info/service/serve.d.ts +14 -0
- package/es/components/booking/info/service/serve.js +25 -18
- package/es/components/booking/info/service2/Group/utils.js +2 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -33
- package/es/components/booking/info/service2/utils.js +92 -56
- package/es/components/booking/info/utils.js +5 -0
- package/es/components/booking/info2/cartClientCard/index.js +49 -9
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/serve.js +1 -6
- package/es/components/booking/info2/service/addService/index.js +146 -89
- package/es/components/booking/info2/service/addService/utils.d.ts +9 -1
- package/es/components/booking/info2/service/addService/utils.js +83 -14
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/es/components/booking/info2/service/editService/Holder/index.js +193 -0
- package/es/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/es/components/booking/info2/service/editService/index.js +313 -57
- package/es/components/booking/info2/utilsByBooking.js +19 -14
- package/es/components/booking/locales.d.ts +36 -0
- package/es/components/booking/locales.js +48 -3
- package/es/components/booking/model.d.ts +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/es/components/booking/utils/confirmHolderModal.js +318 -0
- package/es/components/booking/utils/confirmHolderModal.less +40 -0
- package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/es/components/booking/utils/selectHolderModal.js +407 -0
- package/es/components/booking/utils.d.ts +16 -7
- package/es/components/booking/utils.js +26 -37
- package/es/components/checkout/PaymentModal.js +61 -30
- package/es/components/checkout/components/CashPaymentModule/index.js +1 -7
- package/es/components/checkout/components/ScrollableList/index.js +0 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/locales.d.ts +3 -0
- package/es/components/checkout/locales.js +3 -0
- package/es/components/eftposPay/linkly/index.js +64 -2
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/list/List.js +3 -0
- package/es/components/pay/toB/components/MX51/index.js +14 -44
- package/es/components/pay/toB/types/index.d.ts +0 -12
- package/es/components/pay/toB/types/index.js +0 -4
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.js +1 -5
- package/es/components/shoppingCart/components/Cart/Product.js +6 -3
- package/es/components/shoppingCart/type.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +119 -0
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +421 -794
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
- package/es/components/ticketBooking/components/ticketBooking/index.js +32 -61
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +1 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +122 -170
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.js +0 -2
- package/es/components/ticketBooking/serve.js +17 -119
- package/es/components/ticketBooking/utils/index.d.ts +7 -1
- package/es/components/ticketBooking/utils/index.js +44 -28
- package/es/hooks/useEngineContext.d.ts +0 -1
- package/es/hooks/useEngineContext.js +0 -7
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/index.js +155 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/es/plus/productSelect/ProductCard/index.js +1 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
- package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
- package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/es/plus/selectHolder/components/HolderList/index.js +43 -0
- package/es/plus/selectHolder/index.d.ts +7 -0
- package/es/plus/selectHolder/index.js +273 -0
- package/es/plus/selectHolder/index.less +137 -0
- package/es/plus/selectHolder/locales.d.ts +24 -0
- package/es/plus/selectHolder/locales.js +29 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/types.js +1 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/selectHolder/utils.js +16 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +357 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/es/pro/multiDayTimeSelect/index.js +1 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/multiDayTimeSelect/types.js +1 -0
- package/es/pro/skuDetailModal/types.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +6 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/actionButtons/index.js +11 -2
- package/lib/components/booking/components/customSelect/index.js +1 -1
- package/lib/components/booking/components/footer/amount.js +23 -6
- package/lib/components/booking/components/footer/index.js +26 -5
- package/lib/components/booking/components/footer/utils.d.ts +7 -0
- package/lib/components/booking/components/footer/utils.js +120 -82
- package/lib/components/booking/components/voucher/index.js +10 -1
- package/lib/components/booking/dashboard/serve.js +1 -6
- package/lib/components/booking/forms/footer.js +29 -11
- package/lib/components/booking/forms/serve.js +2 -12
- package/lib/components/booking/hooks/useQuotation.js +45 -13
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/client/serve.js +2 -13
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/lib/components/booking/info/hooks/useHolderConfig.js +8 -3
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/pet/serve.js +1 -6
- package/lib/components/booking/info/service/Lists.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.js +5 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.js +1 -7
- package/lib/components/booking/info/service/serve.d.ts +14 -0
- package/lib/components/booking/info/service/serve.js +8 -17
- package/lib/components/booking/info/service2/Group/utils.js +2 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -33
- package/lib/components/booking/info/service2/utils.js +38 -29
- package/lib/components/booking/info/utils.js +4 -0
- package/lib/components/booking/info2/cartClientCard/index.js +34 -5
- package/lib/components/booking/info2/index.js +11 -5
- package/lib/components/booking/info2/serve.js +1 -6
- package/lib/components/booking/info2/service/addService/index.js +22 -3
- package/lib/components/booking/info2/service/addService/utils.d.ts +9 -1
- package/lib/components/booking/info2/service/addService/utils.js +48 -11
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/lib/components/booking/info2/service/editService/Holder/index.js +199 -0
- package/lib/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/lib/components/booking/info2/service/editService/index.js +254 -32
- package/lib/components/booking/info2/utilsByBooking.js +26 -19
- package/lib/components/booking/locales.d.ts +36 -0
- package/lib/components/booking/locales.js +42 -3
- package/lib/components/booking/model.d.ts +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/lib/components/booking/utils/confirmHolderModal.js +253 -0
- package/lib/components/booking/utils/confirmHolderModal.less +40 -0
- package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/lib/components/booking/utils/selectHolderModal.js +319 -0
- package/lib/components/booking/utils.d.ts +16 -7
- package/lib/components/booking/utils.js +18 -21
- package/lib/components/checkout/PaymentModal.js +41 -18
- package/lib/components/checkout/components/CashPaymentModule/index.js +1 -7
- package/lib/components/checkout/components/ScrollableList/index.js +0 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/locales.d.ts +3 -0
- package/lib/components/checkout/locales.js +3 -0
- package/lib/components/eftposPay/linkly/index.js +31 -1
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/list/List.js +3 -0
- package/lib/components/pay/toB/components/MX51/index.js +12 -37
- package/lib/components/pay/toB/types/index.d.ts +0 -12
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.js +1 -8
- package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
- package/lib/components/shoppingCart/type.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +281 -313
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +5 -3
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
- package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -49
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +1 -3
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +69 -98
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.js +0 -2
- package/lib/components/ticketBooking/serve.js +15 -117
- package/lib/components/ticketBooking/utils/index.d.ts +7 -1
- package/lib/components/ticketBooking/utils/index.js +29 -23
- package/lib/hooks/useEngineContext.d.ts +0 -1
- package/lib/hooks/useEngineContext.js +2 -10
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/index.js +139 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/lib/plus/productSelect/ProductCard/index.js +1 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.js +30 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
- package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/lib/plus/selectHolder/components/HolderList/index.js +63 -0
- package/lib/plus/selectHolder/index.d.ts +7 -0
- package/lib/plus/selectHolder/index.js +223 -0
- package/lib/plus/selectHolder/index.less +137 -0
- package/lib/plus/selectHolder/locales.d.ts +24 -0
- package/lib/plus/selectHolder/locales.js +47 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/types.js +17 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/selectHolder/utils.js +34 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +304 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/lib/{hooks/printer.js → pro/multiDayTimeSelect/index.js} +6 -31
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/multiDayTimeSelect/types.js +17 -0
- package/lib/pro/skuDetailModal/types.d.ts +1 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/event-select-holder/meta.ts +2 -2
- package/lowcode/select-holder/meta.ts +220 -0
- package/lowcode/select-holder/snippets.ts +41 -0
- package/package.json +13 -11
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/printer.js +0 -35
- package/lib/hooks/printer.d.ts +0 -4
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import pisellAvatarProps from './fragments/pisellAvatar';
|
|
2
|
+
import cardStyleProps from './fragments/cardStyle';
|
|
3
|
+
import nameStyleProps from './fragments/nameStyle';
|
|
4
|
+
import textStyleProps from './fragments/textStyle';
|
|
5
|
+
import { AntdIconSetter } from '@pisell/materials/lowcode/_setters';
|
|
6
|
+
|
|
7
|
+
const ContactInfoMeta = {
|
|
8
|
+
componentName: 'ContactInfo',
|
|
9
|
+
title: '联系信息',
|
|
10
|
+
docUrl: '',
|
|
11
|
+
screenshot: '',
|
|
12
|
+
devMode: 'proCode',
|
|
13
|
+
npm: {
|
|
14
|
+
package: '@pisell/private-materials',
|
|
15
|
+
version: '1.0.0',
|
|
16
|
+
exportName: 'ContactInfo',
|
|
17
|
+
main: 'src/index.ts',
|
|
18
|
+
destructuring: true,
|
|
19
|
+
subName: '',
|
|
20
|
+
},
|
|
21
|
+
configure: {
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
title: {
|
|
25
|
+
label: {
|
|
26
|
+
type: 'i18n',
|
|
27
|
+
'en-US': 'dataSource',
|
|
28
|
+
'zh-CN': '数据源',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
name: 'dataSource',
|
|
32
|
+
setter: {
|
|
33
|
+
componentName: 'JsonSetter',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: {
|
|
38
|
+
label: {
|
|
39
|
+
type: 'i18n',
|
|
40
|
+
'en-US': 'placeholder',
|
|
41
|
+
'zh-CN': '占位提示',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
name: 'placeholder',
|
|
45
|
+
setter: 'PisellI18nSetter',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: '是否开启删除',
|
|
49
|
+
name: 'isShowDelete',
|
|
50
|
+
setter: 'BoolSetter',
|
|
51
|
+
defaultValue: false,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: '展示方向',
|
|
55
|
+
name: 'direction',
|
|
56
|
+
setter: {
|
|
57
|
+
componentName: 'RadioGroupSetter',
|
|
58
|
+
props: {
|
|
59
|
+
options: [
|
|
60
|
+
{
|
|
61
|
+
label: '水平',
|
|
62
|
+
value: 'horizontal',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: '垂直',
|
|
66
|
+
value: 'vertical',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
initialValue: 'horizontal',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: '卡片样式',
|
|
75
|
+
type: 'group',
|
|
76
|
+
extraProps: {
|
|
77
|
+
display: 'accordion',
|
|
78
|
+
defaultCollapsed: true,
|
|
79
|
+
},
|
|
80
|
+
items: cardStyleProps,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: '头像',
|
|
84
|
+
type: 'group',
|
|
85
|
+
display: 'block',
|
|
86
|
+
items: [
|
|
87
|
+
{
|
|
88
|
+
title: '显示头像',
|
|
89
|
+
name: 'isShowAvatar',
|
|
90
|
+
setter: 'BoolSetter',
|
|
91
|
+
defaultValue: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: 'group',
|
|
95
|
+
condition: (target: any) =>
|
|
96
|
+
target.getProps().getPropValue('isShowAvatar'),
|
|
97
|
+
items: [...pisellAvatarProps],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: '姓名',
|
|
103
|
+
type: 'group',
|
|
104
|
+
display: 'block',
|
|
105
|
+
items: [
|
|
106
|
+
{
|
|
107
|
+
title: '姓名默认文案',
|
|
108
|
+
name: 'defaultName',
|
|
109
|
+
setter: 'StringSetter',
|
|
110
|
+
},
|
|
111
|
+
...nameStyleProps,
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: '文本样式',
|
|
116
|
+
type: 'group',
|
|
117
|
+
display: 'block',
|
|
118
|
+
items: [...textStyleProps],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: '操作按钮',
|
|
122
|
+
type: 'group',
|
|
123
|
+
display: 'block',
|
|
124
|
+
items: [
|
|
125
|
+
{
|
|
126
|
+
name: 'button.addButtonIcon',
|
|
127
|
+
title: {
|
|
128
|
+
label: '添加按钮的图标',
|
|
129
|
+
tip: 'icon | 设置添加的自定义图标',
|
|
130
|
+
},
|
|
131
|
+
setter: AntdIconSetter,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'button.editButtonIcon',
|
|
135
|
+
title: {
|
|
136
|
+
label: '修改按钮的图标',
|
|
137
|
+
tip: 'icon | 设置修改的自定义图标',
|
|
138
|
+
},
|
|
139
|
+
setter: AntdIconSetter,
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
type: 'group',
|
|
145
|
+
display: 'block',
|
|
146
|
+
title: '字段展示',
|
|
147
|
+
items: [
|
|
148
|
+
{
|
|
149
|
+
title: '显示电话号',
|
|
150
|
+
name: 'isShowPhone',
|
|
151
|
+
setter: 'BoolSetter',
|
|
152
|
+
defaultValue: true,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: '显示邮箱',
|
|
156
|
+
name: 'isShowEmail',
|
|
157
|
+
setter: 'BoolSetter',
|
|
158
|
+
defaultValue: true,
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
supports: {
|
|
164
|
+
events: [
|
|
165
|
+
{
|
|
166
|
+
name: 'onSave',
|
|
167
|
+
description: '保存联系信息点击事件',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'onDelete',
|
|
171
|
+
description: '删除联系信息点击事件',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'onCancel',
|
|
175
|
+
description: '取消点击事件',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
style: true,
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
const snippets = [
|
|
184
|
+
{
|
|
185
|
+
title: '联系信息',
|
|
186
|
+
screenshot: '',
|
|
187
|
+
schema: {
|
|
188
|
+
componentName: 'ContactInfo',
|
|
189
|
+
props: {
|
|
190
|
+
direction: 'horizontal',
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
|
|
196
|
+
export default {
|
|
197
|
+
...ContactInfoMeta,
|
|
198
|
+
snippets,
|
|
199
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const ContactInfoModalMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'ContactInfoModal',
|
|
5
|
+
title: '联系信息弹窗',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/private-materials',
|
|
11
|
+
version: '1.0.0',
|
|
12
|
+
exportName: 'ContactInfoModal',
|
|
13
|
+
main: 'src/index.ts',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
configure: {
|
|
18
|
+
props: [
|
|
19
|
+
{
|
|
20
|
+
title: {
|
|
21
|
+
label: {
|
|
22
|
+
type: 'i18n',
|
|
23
|
+
'en-US': 'open',
|
|
24
|
+
'zh-CN': '打开',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
name: 'open',
|
|
28
|
+
setter: ['BoolSetter', 'VariableSetter'],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: {
|
|
32
|
+
label: {
|
|
33
|
+
type: 'i18n',
|
|
34
|
+
'en-US': 'dataSource',
|
|
35
|
+
'zh-CN': '数据源',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
name: 'dataSource',
|
|
39
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: {
|
|
43
|
+
label: {
|
|
44
|
+
type: 'i18n',
|
|
45
|
+
'en-US': 'isShowDelete',
|
|
46
|
+
'zh-CN': '是否展示删除按钮',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
name: 'isShowDelete',
|
|
50
|
+
setter: ['BoolSetter', 'VariableSetter'],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: {
|
|
54
|
+
label: {
|
|
55
|
+
type: 'i18n',
|
|
56
|
+
'en-US': 'config',
|
|
57
|
+
'zh-CN': '配置项',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
name: 'config',
|
|
61
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
supports: {
|
|
65
|
+
events: [
|
|
66
|
+
{
|
|
67
|
+
name: 'onSave',
|
|
68
|
+
description: '保存联系信息点击事件',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'onDelete',
|
|
72
|
+
description: '删除联系信息点击事件',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'onCancel',
|
|
76
|
+
description: '取消点击事件',
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
style: true,
|
|
80
|
+
},
|
|
81
|
+
component: {},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
const snippets: Snippet[] = [
|
|
85
|
+
{
|
|
86
|
+
title: 'ContactInfoModal',
|
|
87
|
+
screenshot: '',
|
|
88
|
+
schema: {
|
|
89
|
+
componentName: 'ContactInfoModal',
|
|
90
|
+
props: {},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
|
|
95
|
+
export default {
|
|
96
|
+
...ContactInfoModalMeta,
|
|
97
|
+
snippets,
|
|
98
|
+
};
|
|
@@ -2,7 +2,7 @@ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode
|
|
|
2
2
|
|
|
3
3
|
const EventSelectHolderMeta: IPublicTypeComponentMetadata = {
|
|
4
4
|
componentName: 'EventSelectHolder',
|
|
5
|
-
title: '选择持有人',
|
|
5
|
+
title: 'Event选择持有人',
|
|
6
6
|
category: '数据展示',
|
|
7
7
|
docUrl: '',
|
|
8
8
|
screenshot: '',
|
|
@@ -65,7 +65,7 @@ const EventSelectHolderMeta: IPublicTypeComponentMetadata = {
|
|
|
65
65
|
|
|
66
66
|
const snippets: IPublicTypeSnippet[] = [
|
|
67
67
|
{
|
|
68
|
-
title: '选择持有人',
|
|
68
|
+
title: 'Event选择持有人',
|
|
69
69
|
screenshot: '',
|
|
70
70
|
schema: {
|
|
71
71
|
componentName: 'EventSelectHolder',
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
import { AntdIconSetter } from '../../../materials/lowcode/_setters';
|
|
3
|
+
import snippets from './snippets';
|
|
4
|
+
|
|
5
|
+
const SelectHolderMeta: ComponentMetadata = {
|
|
6
|
+
componentName: "SelectHolder",
|
|
7
|
+
title: "选择持有人",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
category: "数据展示",
|
|
11
|
+
devMode: "proCode",
|
|
12
|
+
npm: {
|
|
13
|
+
package: "@pisell/private-materials",
|
|
14
|
+
version: "1.0.4",
|
|
15
|
+
exportName: "SelectHolder",
|
|
16
|
+
main: "src/index.ts",
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: ""
|
|
19
|
+
},
|
|
20
|
+
configure: {
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
title: {
|
|
24
|
+
label: {
|
|
25
|
+
type: 'i18n',
|
|
26
|
+
'en-US': 'dataSource',
|
|
27
|
+
'zh-CN': '数据源',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
name: 'dataSource',
|
|
31
|
+
setter: {
|
|
32
|
+
componentName: 'JsonSetter',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: { label: '选中的值', tip: 'Array<any> | 选中的值' },
|
|
37
|
+
name: 'value',
|
|
38
|
+
setter: {
|
|
39
|
+
componentName: 'ObjectSetter',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: '录入方式',
|
|
44
|
+
display: 'block',
|
|
45
|
+
type: 'group',
|
|
46
|
+
items: [
|
|
47
|
+
{
|
|
48
|
+
name: 'modalConfig.title',
|
|
49
|
+
title: '标题文案',
|
|
50
|
+
setter: 'StringSetter',
|
|
51
|
+
defaultValue: 'Who would you like to book this event for?',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'modalConfig.confirmText',
|
|
55
|
+
title: '按钮文案',
|
|
56
|
+
setter: 'StringSetter',
|
|
57
|
+
defaultValue: 'Confirm',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'modalConfig.showClose',
|
|
61
|
+
title: { label: '显示弹窗关闭', tip: 'showClose | 显示弹窗关闭' },
|
|
62
|
+
setter: 'BoolSetter',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: '字段展示',
|
|
68
|
+
display: 'block',
|
|
69
|
+
type: 'group',
|
|
70
|
+
items: [
|
|
71
|
+
{
|
|
72
|
+
name: 'displayConfig.showAvatar',
|
|
73
|
+
title: { label: '显示图像', tip: 'showAvatar | 显示图像' },
|
|
74
|
+
setter: 'BoolSetter',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'displayConfig.showTitle',
|
|
78
|
+
title: { label: '显示名称', tip: 'showTitle | 显示名称' },
|
|
79
|
+
setter: 'BoolSetter',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'displayConfig.showSubtitle',
|
|
83
|
+
title: { label: '显示次级标题', tip: 'showSubtitle | 显示次级标题' },
|
|
84
|
+
setter: 'BoolSetter',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'displayConfig.isSkipable',
|
|
88
|
+
title: { label: '可跳过', tip: 'isSkipable | 可跳过' },
|
|
89
|
+
setter: 'BoolSetter',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'displayConfig.direction',
|
|
93
|
+
title: { label: '展示方向', tip: '展示方向' },
|
|
94
|
+
propType: { type: 'oneOf', value: ['horizontal', 'vertical'] },
|
|
95
|
+
setter: {
|
|
96
|
+
componentName: 'RadioGroupSetter',
|
|
97
|
+
props: {
|
|
98
|
+
options: [
|
|
99
|
+
{ label: '水平', value: 'horizontal' },
|
|
100
|
+
{ label: '垂直', value: 'vertical' },
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'displayConfig.selectType',
|
|
107
|
+
title: { label: '选择类型', tip: '选择类型' },
|
|
108
|
+
propType: { type: 'oneOf', value: ['single', 'multiple'] },
|
|
109
|
+
setter: {
|
|
110
|
+
componentName: 'RadioGroupSetter',
|
|
111
|
+
props: {
|
|
112
|
+
options: [
|
|
113
|
+
{ label: '单选', value: 'single' },
|
|
114
|
+
{ label: '多选', value: 'multiple' },
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'displayConfig.showExtraFields',
|
|
121
|
+
title: { label: '增加字段', tip: 'showExtraFields | 增加字段' },
|
|
122
|
+
setter: 'BoolSetter',
|
|
123
|
+
defaultValue: false,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'displayConfig.extraFields',
|
|
127
|
+
title: { label: '额外字段', tip: 'extraFields | 额外字段' },
|
|
128
|
+
setter: {
|
|
129
|
+
componentName: 'ArraySetter',
|
|
130
|
+
props: {
|
|
131
|
+
itemSetter: {
|
|
132
|
+
componentName: 'ObjectSetter',
|
|
133
|
+
props: {
|
|
134
|
+
config: {
|
|
135
|
+
items: [
|
|
136
|
+
{
|
|
137
|
+
name: 'label',
|
|
138
|
+
title: '标签',
|
|
139
|
+
setter: 'PisellI18nSetter',
|
|
140
|
+
important: true,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'value',
|
|
144
|
+
title: 'key',
|
|
145
|
+
setter: 'StringSetter',
|
|
146
|
+
important: true,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'isShowLabel',
|
|
150
|
+
title: '显示标签',
|
|
151
|
+
setter: 'BoolSetter',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'isShowValue',
|
|
155
|
+
title: '显示key',
|
|
156
|
+
setter: 'BoolSetter',
|
|
157
|
+
},
|
|
158
|
+
// {
|
|
159
|
+
// name: 'icon',
|
|
160
|
+
// title: 'icon选择',
|
|
161
|
+
// setter: AntdIconSetter,
|
|
162
|
+
// },
|
|
163
|
+
// {
|
|
164
|
+
// name: 'iconSize',
|
|
165
|
+
// title: 'icon大小',
|
|
166
|
+
// setter: ['NumberSetter'],
|
|
167
|
+
// },
|
|
168
|
+
// {
|
|
169
|
+
// name: 'iconColor',
|
|
170
|
+
// title: 'icon颜色',
|
|
171
|
+
// setter: 'ColorSetter',
|
|
172
|
+
// },
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
initialValue: {
|
|
177
|
+
isShowLabel: false,
|
|
178
|
+
isShowValue: true
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
condition: (target: any) => target.getProps().getPropValue('displayConfig.showExtraFields'),
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
supports: {
|
|
189
|
+
style: true,
|
|
190
|
+
events: [
|
|
191
|
+
{
|
|
192
|
+
name: 'onAdd',
|
|
193
|
+
template:
|
|
194
|
+
"onAdd(){\n// 创建新的回调函数\nconsole.log('onAdd');}",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'onClose',
|
|
198
|
+
template:
|
|
199
|
+
"onClose(){\n// 关闭弹窗回调函数\nconsole.log('onClose');}",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'onConfirm',
|
|
203
|
+
template:
|
|
204
|
+
"onConfirm(checkedValue,${extParams}){\n// 确认回调函数\nconsole.log('onConfirm');}",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'onSkip',
|
|
208
|
+
template:
|
|
209
|
+
"onSkip(){\n// 跳过回调函数\nconsole.log('onSkip');}",
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
component: {}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
export default {
|
|
218
|
+
...SelectHolderMeta,
|
|
219
|
+
snippets
|
|
220
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const snippets: Snippet[] = [
|
|
4
|
+
{
|
|
5
|
+
title: '选择持有人',
|
|
6
|
+
screenshot: '',
|
|
7
|
+
schema: {
|
|
8
|
+
componentName: 'SelectHolder',
|
|
9
|
+
props: {
|
|
10
|
+
dataSource: [
|
|
11
|
+
{
|
|
12
|
+
value: 1,
|
|
13
|
+
label: 'Olivia',
|
|
14
|
+
subtitle: 'Subtitle',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: 2,
|
|
18
|
+
label: 'Ricky Spagehetti',
|
|
19
|
+
subtitle: 'SubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitle',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
value: [1],
|
|
23
|
+
modalConfig: {
|
|
24
|
+
title: 'Who would you like to book this event for?',
|
|
25
|
+
confirmText: 'Confirm',
|
|
26
|
+
showClose: true,
|
|
27
|
+
},
|
|
28
|
+
displayConfig: {
|
|
29
|
+
showAvatar: true,
|
|
30
|
+
showTitle: true,
|
|
31
|
+
showSubtitle: true,
|
|
32
|
+
isSkipable: true,
|
|
33
|
+
direction: 'horizontal',
|
|
34
|
+
selectType: 'single',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
export default snippets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.2",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "father dev",
|
|
6
|
+
"build": "father build",
|
|
7
|
+
"lowcode:dev": "build-scripts start --config ./build.lowcode.js",
|
|
8
|
+
"lowcode:build": " build-scripts build --config ./build.lowcode.js"
|
|
9
|
+
},
|
|
4
10
|
"main": "./lib/index.js",
|
|
5
11
|
"module": "./es/index.js",
|
|
6
12
|
"types": "./lib/index.d.ts",
|
|
@@ -50,6 +56,10 @@
|
|
|
50
56
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
51
57
|
"@dnd-kit/sortable": "^7.0.2",
|
|
52
58
|
"@dnd-kit/utilities": "^3.2.1",
|
|
59
|
+
"@pisell/date-picker": "workspace:*",
|
|
60
|
+
"@pisell/icon": "workspace:*",
|
|
61
|
+
"@pisell/materials": "workspace:*",
|
|
62
|
+
"@pisell/utils": "workspace:*",
|
|
53
63
|
"ahooks": "^3.7.6",
|
|
54
64
|
"antd": "^5.6.3",
|
|
55
65
|
"classnames": "^2.3.2",
|
|
@@ -59,10 +69,8 @@
|
|
|
59
69
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
70
|
"react-resizable": "^3.0.5",
|
|
61
71
|
"styled-components": "^6.0.0-rc.3",
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@pisell/utils": "3.0.2",
|
|
65
|
-
"@pisell/date-picker": "3.0.7"
|
|
72
|
+
"@react-spring/web": "^9.6.1",
|
|
73
|
+
"@use-gesture/react": "^10.3.1"
|
|
66
74
|
},
|
|
67
75
|
"peerDependencies": {
|
|
68
76
|
"react": "^18.0.0",
|
|
@@ -70,11 +78,5 @@
|
|
|
70
78
|
},
|
|
71
79
|
"componentConfig": {
|
|
72
80
|
"materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
|
|
73
|
-
},
|
|
74
|
-
"scripts": {
|
|
75
|
-
"dev": "father dev",
|
|
76
|
-
"build": "father build",
|
|
77
|
-
"lowcode:dev": "build-scripts start --config ./build.lowcode.js",
|
|
78
|
-
"lowcode:build": " build-scripts build --config ./build.lowcode.js"
|
|
79
81
|
}
|
|
80
82
|
}
|
package/es/hooks/printer.d.ts
DELETED
package/es/hooks/printer.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import useEngineContext from "./useEngineContext";
|
|
8
|
-
var usePrinter = function usePrinter() {
|
|
9
|
-
var _context$appHelper;
|
|
10
|
-
var context = useEngineContext();
|
|
11
|
-
var _ref = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
12
|
-
action = _ref.action;
|
|
13
|
-
var nativePrint = function nativePrint(data, _callback) {
|
|
14
|
-
// 转换注意事项:
|
|
15
|
-
// data.type: 0 是JSBridge调用小票打印,nativePlugin中调用时需要转为 'INVOICE'
|
|
16
|
-
// data.type: 99 是JSBridge调用全部打印,nativePlugin中调用时需要转为 'ALL'
|
|
17
|
-
action({
|
|
18
|
-
type: 'webpos.handlePrint',
|
|
19
|
-
data: data,
|
|
20
|
-
callback: function callback(res) {
|
|
21
|
-
if (typeof (res === null || res === void 0 ? void 0 : res.status) === 'string') {
|
|
22
|
-
_callback === null || _callback === void 0 || _callback(_objectSpread(_objectSpread({}, res || {}), {}, {
|
|
23
|
-
result: (res === null || res === void 0 ? void 0 : res.status) == 'success' ? true : false
|
|
24
|
-
}));
|
|
25
|
-
} else {
|
|
26
|
-
_callback === null || _callback === void 0 || _callback(res);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
return {
|
|
32
|
-
nativePrint: nativePrint
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export default usePrinter;
|
package/lib/hooks/printer.d.ts
DELETED