centui 0.0.0-stage → 3.1.0
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/LICENSE +433 -0
- package/README.md +54 -2
- package/dist/ActionBar-Bs5fkyFH.cjs +1 -0
- package/dist/ActionBar-CF1zMUMC.js +56 -0
- package/dist/ActivityIndicator-BOZRJBDn.cjs +1 -0
- package/dist/ActivityIndicator-Cp20c1E0.js +162 -0
- package/dist/Agree-ZswFiFNy.cjs +1 -0
- package/dist/Agree-lAcOo38C.js +43 -0
- package/dist/Amount-B2StZGGW.js +56 -0
- package/dist/Amount-CU7Oc4vv.cjs +1 -0
- package/dist/Bill-DDVs3Lu3.cjs +1 -0
- package/dist/Bill-qQ4LdkmR.js +58 -0
- package/dist/Button-Bu8liJQE.cjs +1 -0
- package/dist/Button-D7e-cuA1.js +60 -0
- package/dist/Captcha-BEF-de8-.cjs +1 -0
- package/dist/Captcha-CgpynYTc.js +283 -0
- package/dist/Cashier-CJLfQOXm.js +363 -0
- package/dist/Cashier-CLJngM0n.cjs +1 -0
- package/dist/CellItem-BHEh4Cp-.js +71 -0
- package/dist/CellItem-J0LkwZNL.cjs +1 -0
- package/dist/Chart-BINJAx7V.js +135 -0
- package/dist/Chart-DJ0Q1g1P.cjs +1 -0
- package/dist/CheckBox-D5bCJUXD.js +55 -0
- package/dist/CheckBox-DDeCshDK.cjs +1 -0
- package/dist/CheckBoxBase-BIPGJ-TD.js +43 -0
- package/dist/CheckBoxBase-CobK6-tL.cjs +1 -0
- package/dist/CheckList-BsKo_Fl3.cjs +1 -0
- package/dist/CheckList-ViiCo4yi.js +195 -0
- package/dist/Codebox-BLPrFnIv.js +188 -0
- package/dist/Codebox-yLkdTU7w.cjs +1 -0
- package/dist/DatePicker-CCU6gqG3.cjs +1 -0
- package/dist/DatePicker-CYvPJatt.js +175 -0
- package/dist/DetailItem-D6-zbZmd.js +21 -0
- package/dist/DetailItem-DDJXXao0.cjs +1 -0
- package/dist/Dialog-208_XUAL.cjs +1 -0
- package/dist/Dialog-Bb7Gth3j.js +148 -0
- package/dist/DropMenu-5TA_6bas.js +95 -0
- package/dist/DropMenu-D_ZMGOOi.cjs +1 -0
- package/dist/Field-0hdNWFNm.js +50 -0
- package/dist/Field-DDmHa4zB.cjs +1 -0
- package/dist/FieldItem-D79w330m.js +87 -0
- package/dist/FieldItem-UFKrl_5J.cjs +1 -0
- package/dist/Icon-83WWqE5z.cjs +31 -0
- package/dist/Icon-BgCtu0ZV.js +117 -0
- package/dist/ImageReader-DjshA_hh.cjs +1 -0
- package/dist/ImageReader-hUb5CEbV.js +122 -0
- package/dist/ImageViewer-BCEK4DOF.cjs +1 -0
- package/dist/ImageViewer-_dTRCIsV.js +68 -0
- package/dist/InputItem-DO5Yo_IH.cjs +1 -0
- package/dist/InputItem-yHsLFvKt.js +327 -0
- package/dist/Landscape-BsHyoM4N.cjs +1 -0
- package/dist/Landscape-Dd0abEy1.js +73 -0
- package/dist/LicensePlate-CTcAIbcb.js +201 -0
- package/dist/LicensePlate-CfwpVw0G.cjs +1 -0
- package/dist/NoticeBar-CV355FeO.cjs +1 -0
- package/dist/NoticeBar-G5aKL6VO.js +92 -0
- package/dist/NumberKeyboard-BWpxsbYt.cjs +1 -0
- package/dist/NumberKeyboard-B_TJXxki.js +335 -0
- package/dist/Picker-BOEGTBaN.cjs +1 -0
- package/dist/Picker-CA-JQ_OC.js +493 -0
- package/dist/Popup-Ca1jPi0t.cjs +1 -0
- package/dist/Popup-qLk-BsRS.js +116 -0
- package/dist/PopupTitleBar-9P4RUMC1.js +84 -0
- package/dist/PopupTitleBar-Bfl49eYJ.cjs +1 -0
- package/dist/Progress-CT-LHaQ0.cjs +1 -0
- package/dist/Progress-Clet0W_n.js +65 -0
- package/dist/Radio-B_MxJ65X.cjs +1 -0
- package/dist/Radio-DY-ZX0BP.js +67 -0
- package/dist/RadioGroup-B00aqM9e.js +84 -0
- package/dist/RadioGroup-B6ukqnm5.cjs +1 -0
- package/dist/RadioList-D-9PITpr.cjs +1 -0
- package/dist/RadioList-DNGsEzgf.js +125 -0
- package/dist/ResultPage-DUs8ok5R.js +64 -0
- package/dist/ResultPage-YQWDaFmz.cjs +1 -0
- package/dist/Roller-BznN57fL.js +91 -0
- package/dist/Roller-DALhjhfg.cjs +1 -0
- package/dist/RollerSuccess-BbMzNlkv.cjs +1 -0
- package/dist/RollerSuccess-CTh43Rh0.js +65 -0
- package/dist/Ruler-Bhf5J7hU.js +136 -0
- package/dist/Ruler-CEzB0oqG.cjs +1 -0
- package/dist/ScrollView-BNY62f7B.js +228 -0
- package/dist/ScrollView-BnadVBJC.cjs +1 -0
- package/dist/ScrollViewMore-BL1vpyMj.cjs +1 -0
- package/dist/ScrollViewMore-DBhoiI1X.js +54 -0
- package/dist/Selector-DOU8Af55.js +209 -0
- package/dist/Selector-DnFvOGbv.cjs +1 -0
- package/dist/Skeleton--SCiydNl.cjs +1 -0
- package/dist/Skeleton-DqA5IxL5.js +54 -0
- package/dist/Slider-BB2Nhpys.js +100 -0
- package/dist/Slider-vV7_nULf.cjs +1 -0
- package/dist/Stepper-BnDhL8IO.js +137 -0
- package/dist/Stepper-n_mc16V2.cjs +1 -0
- package/dist/Steps-BPQwab3T.js +157 -0
- package/dist/Steps-Dfpmgl8B.cjs +1 -0
- package/dist/SwiperItem-BY5cUoGn.cjs +1 -0
- package/dist/SwiperItem-BydyBdYU.js +323 -0
- package/dist/Switch-B1rsBY-M.js +31 -0
- package/dist/Switch-CghubImq.cjs +1 -0
- package/dist/TabPane-BCVsdptu.cjs +1 -0
- package/dist/TabPane-Q7oUFzmP.js +237 -0
- package/dist/TabPicker-BcL9assY.cjs +1 -0
- package/dist/TabPicker-BicPrto7.js +173 -0
- package/dist/Tag-C7ygxOwU.js +78 -0
- package/dist/Tag-CIA2npnD.cjs +1 -0
- package/dist/TextareaItem-Dl-PCLl-.js +168 -0
- package/dist/TextareaItem-Du5nl7tv.cjs +1 -0
- package/dist/Tip-DHPmevlv.js +165 -0
- package/dist/Tip-De_3tKtb.cjs +1 -0
- package/dist/Transition-B-baX512.js +14 -0
- package/dist/Transition-Bwbqr4Xr.cjs +1 -0
- package/dist/WaterMark-CgkuQjv3.js +103 -0
- package/dist/WaterMark-M81jg6T5.cjs +1 -0
- package/dist/action-bar.cjs +1 -0
- package/dist/action-bar.d.ts +1 -0
- package/dist/action-bar.js +1 -0
- package/dist/action-sheet-BjaReHkr.cjs +1 -0
- package/dist/action-sheet-Da8dHevy.js +121 -0
- package/dist/action-sheet.cjs +1 -0
- package/dist/action-sheet.d.ts +2 -0
- package/dist/action-sheet.js +1 -0
- package/dist/activity-indicator.cjs +1 -0
- package/dist/activity-indicator.d.ts +1 -0
- package/dist/activity-indicator.js +4 -0
- package/dist/agree.cjs +1 -0
- package/dist/agree.d.ts +1 -0
- package/dist/agree.js +1 -0
- package/dist/amount.cjs +1 -0
- package/dist/amount.d.ts +1 -0
- package/dist/amount.js +1 -0
- package/dist/bill.cjs +1 -0
- package/dist/bill.d.ts +1 -0
- package/dist/bill.js +1 -0
- package/dist/button.cjs +1 -0
- package/dist/button.d.ts +1 -0
- package/dist/button.js +1 -0
- package/dist/captcha.cjs +1 -0
- package/dist/captcha.d.ts +1 -0
- package/dist/captcha.js +1 -0
- package/dist/cashier.cjs +1 -0
- package/dist/cashier.d.ts +1 -0
- package/dist/cashier.js +1 -0
- package/dist/cell-item.cjs +1 -0
- package/dist/cell-item.d.ts +1 -0
- package/dist/cell-item.js +1 -0
- package/dist/chart.cjs +1 -0
- package/dist/chart.d.ts +1 -0
- package/dist/chart.js +1 -0
- package/dist/check-base.cjs +1 -0
- package/dist/check-base.d.ts +1 -0
- package/dist/check-base.js +1 -0
- package/dist/check.cjs +1 -0
- package/dist/check.d.ts +1 -0
- package/dist/check.js +3 -0
- package/dist/codebox.cjs +1 -0
- package/dist/codebox.d.ts +1 -0
- package/dist/codebox.js +1 -0
- package/dist/components/action-bar/ActionBar.vue.d.ts +34 -0
- package/dist/components/action-bar/index.d.ts +2 -0
- package/dist/components/action-sheet/ActionSheet.vue.d.ts +49 -0
- package/dist/components/action-sheet/index.d.ts +25 -0
- package/dist/components/activity-indicator/ActivityIndicator.vue.d.ts +31 -0
- package/dist/components/activity-indicator/Carousel.vue.d.ts +10 -0
- package/dist/components/activity-indicator/CarouselCircle.vue.d.ts +12 -0
- package/dist/components/activity-indicator/Roller.vue.d.ts +37 -0
- package/dist/components/activity-indicator/RollerSuccess.vue.d.ts +14 -0
- package/dist/components/activity-indicator/Spinning.vue.d.ts +10 -0
- package/dist/components/activity-indicator/index.d.ts +5 -0
- package/dist/components/agree/Agree.vue.d.ts +35 -0
- package/dist/components/agree/index.d.ts +1 -0
- package/dist/components/amount/Amount.vue.d.ts +25 -0
- package/dist/components/amount/index.d.ts +1 -0
- package/dist/components/bill/Bill.vue.d.ts +33 -0
- package/dist/components/bill/index.d.ts +1 -0
- package/dist/components/button/Button.vue.d.ts +38 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/captcha/Captcha.vue.d.ts +76 -0
- package/dist/components/captcha/index.d.ts +1 -0
- package/dist/components/cashier/Cashier.vue.d.ts +101 -0
- package/dist/components/cashier/CashierChannel.vue.d.ts +58 -0
- package/dist/components/cashier/CashierChannelButton.vue.d.ts +14 -0
- package/dist/components/cashier/CashierChannelItem.vue.d.ts +30 -0
- package/dist/components/cashier/index.d.ts +4 -0
- package/dist/components/cell-item/CellItem.vue.d.ts +38 -0
- package/dist/components/cell-item/index.d.ts +1 -0
- package/dist/components/chart/Chart.vue.d.ts +30 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/check/Check.vue.d.ts +38 -0
- package/dist/components/check/CheckBox.vue.d.ts +31 -0
- package/dist/components/check/CheckGroup.vue.d.ts +27 -0
- package/dist/components/check/CheckList.vue.d.ts +58 -0
- package/dist/components/check/index.d.ts +6 -0
- package/dist/components/check/shared.d.ts +52 -0
- package/dist/components/check-base/CheckBoxBase.vue.d.ts +25 -0
- package/dist/components/check-base/index.d.ts +1 -0
- package/dist/components/codebox/Codebox.vue.d.ts +58 -0
- package/dist/components/codebox/index.d.ts +1 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +70 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/detail-item/DetailItem.vue.d.ts +22 -0
- package/dist/components/detail-item/index.d.ts +1 -0
- package/dist/components/dialog/Dialog.vue.d.ts +88 -0
- package/dist/components/dialog/index.d.ts +40 -0
- package/dist/components/drop-menu/DropMenu.vue.d.ts +55 -0
- package/dist/components/drop-menu/index.d.ts +1 -0
- package/dist/components/field/Field.vue.d.ts +30 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field-item/FieldItem.vue.d.ts +42 -0
- package/dist/components/field-item/index.d.ts +1 -0
- package/dist/components/icon/Icon.vue.d.ts +20 -0
- package/dist/components/icon/default-svg-list.d.ts +2 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/load-sprite.d.ts +6 -0
- package/dist/components/image-reader/ImageReader.vue.d.ts +46 -0
- package/dist/components/image-reader/index.d.ts +1 -0
- package/dist/components/image-viewer/ImageViewer.vue.d.ts +25 -0
- package/dist/components/image-viewer/index.d.ts +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/input-item/InputItem.vue.d.ts +97 -0
- package/dist/components/input-item/cursor.d.ts +7 -0
- package/dist/components/input-item/index.d.ts +1 -0
- package/dist/components/landscape/Landscape.vue.d.ts +38 -0
- package/dist/components/landscape/index.d.ts +1 -0
- package/dist/components/license-plate/LicensePlate.vue.d.ts +32 -0
- package/dist/components/license-plate/LicensePlateInput.vue.d.ts +14 -0
- package/dist/components/license-plate/LicensePlateKeyboard.vue.d.ts +30 -0
- package/dist/components/license-plate/index.d.ts +3 -0
- package/dist/components/notice-bar/NoticeBar.vue.d.ts +44 -0
- package/dist/components/notice-bar/index.d.ts +1 -0
- package/dist/components/number-keyboard/KeyboardBoard.vue.d.ts +33 -0
- package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +19 -0
- package/dist/components/number-keyboard/NumberKeyboard.vue.d.ts +59 -0
- package/dist/components/number-keyboard/index.d.ts +3 -0
- package/dist/components/picker/Picker.vue.d.ts +64 -0
- package/dist/components/picker/PickerColumn.vue.d.ts +64 -0
- package/dist/components/picker/index.d.ts +3 -0
- package/dist/components/popup/Popup.vue.d.ts +50 -0
- package/dist/components/popup/PopupTitleBar.vue.d.ts +45 -0
- package/dist/components/popup/index.d.ts +2 -0
- package/dist/components/progress/Progress.vue.d.ts +39 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/radio/Radio.vue.d.ts +39 -0
- package/dist/components/radio/RadioBox.vue.d.ts +31 -0
- package/dist/components/radio/RadioGroup.vue.d.ts +24 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio-list/RadioList.vue.d.ts +72 -0
- package/dist/components/radio-list/index.d.ts +2 -0
- package/dist/components/result-page/ResultPage.vue.d.ts +28 -0
- package/dist/components/result-page/index.d.ts +1 -0
- package/dist/components/ruler/Ruler.vue.d.ts +34 -0
- package/dist/components/ruler/index.d.ts +1 -0
- package/dist/components/scroll-view/ScrollView.vue.d.ts +84 -0
- package/dist/components/scroll-view/ScrollViewMore.vue.d.ts +12 -0
- package/dist/components/scroll-view/ScrollViewRefresh.vue.d.ts +20 -0
- package/dist/components/scroll-view/index.d.ts +3 -0
- package/dist/components/selector/Selector.vue.d.ts +88 -0
- package/dist/components/selector/index.d.ts +2 -0
- package/dist/components/skeleton/Skeleton.vue.d.ts +30 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/slider/Slider.vue.d.ts +24 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/stepper/Stepper.vue.d.ts +32 -0
- package/dist/components/stepper/index.d.ts +1 -0
- package/dist/components/steps/Steps.vue.d.ts +56 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/swiper/Swiper.vue.d.ts +57 -0
- package/dist/components/swiper/SwiperItem.vue.d.ts +26 -0
- package/dist/components/swiper/index.d.ts +2 -0
- package/dist/components/switch/Switch.vue.d.ts +16 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/tab-picker/TabPicker.vue.d.ts +78 -0
- package/dist/components/tab-picker/index.d.ts +1 -0
- package/dist/components/tabs/TabBar.vue.d.ts +50 -0
- package/dist/components/tabs/TabPane.vue.d.ts +31 -0
- package/dist/components/tabs/Tabs.vue.d.ts +34 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tag/Tag.vue.d.ts +39 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/textarea-item/TextareaItem.vue.d.ts +80 -0
- package/dist/components/textarea-item/index.d.ts +1 -0
- package/dist/components/tip/Tip.vue.d.ts +98 -0
- package/dist/components/tip/TipContent.vue.d.ts +33 -0
- package/dist/components/tip/index.d.ts +2 -0
- package/dist/components/toast/Toast.vue.d.ts +45 -0
- package/dist/components/toast/index.d.ts +129 -0
- package/dist/components/transition/Transition.vue.d.ts +13 -0
- package/dist/components/transition/index.d.ts +1 -0
- package/dist/components/water-mark/WaterMark.vue.d.ts +35 -0
- package/dist/components/water-mark/index.d.ts +1 -0
- package/dist/cursor-BIPoNm8V.js +11 -0
- package/dist/cursor-tQE3LcbU.cjs +1 -0
- package/dist/date-picker.cjs +1 -0
- package/dist/date-picker.d.ts +1 -0
- package/dist/date-picker.js +1 -0
- package/dist/detail-item.cjs +1 -0
- package/dist/detail-item.d.ts +1 -0
- package/dist/detail-item.js +1 -0
- package/dist/dialog-C38EDWGJ.cjs +1 -0
- package/dist/dialog-DdNA6YSe.js +91 -0
- package/dist/dialog.cjs +1 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dialog.js +3 -0
- package/dist/drop-menu.cjs +1 -0
- package/dist/drop-menu.d.ts +1 -0
- package/dist/drop-menu.js +1 -0
- package/dist/field-item.cjs +1 -0
- package/dist/field-item.d.ts +1 -0
- package/dist/field-item.js +1 -0
- package/dist/field.cjs +1 -0
- package/dist/field.d.ts +1 -0
- package/dist/field.js +1 -0
- package/dist/icon.cjs +1 -0
- package/dist/icon.d.ts +1 -0
- package/dist/icon.js +1 -0
- package/dist/image-reader.cjs +1 -0
- package/dist/image-reader.d.ts +1 -0
- package/dist/image-reader.js +1 -0
- package/dist/image-viewer.cjs +1 -0
- package/dist/image-viewer.d.ts +1 -0
- package/dist/image-viewer.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +61 -0
- package/dist/input-item.cjs +1 -0
- package/dist/input-item.d.ts +1 -0
- package/dist/input-item.js +1 -0
- package/dist/landscape.cjs +1 -0
- package/dist/landscape.d.ts +1 -0
- package/dist/landscape.js +1 -0
- package/dist/license-plate.cjs +1 -0
- package/dist/license-plate.d.ts +1 -0
- package/dist/license-plate.js +1 -0
- package/dist/notice-bar.cjs +1 -0
- package/dist/notice-bar.d.ts +1 -0
- package/dist/notice-bar.js +1 -0
- package/dist/number-keyboard.cjs +1 -0
- package/dist/number-keyboard.d.ts +1 -0
- package/dist/number-keyboard.js +1 -0
- package/dist/picker.cjs +1 -0
- package/dist/picker.d.ts +1 -0
- package/dist/picker.js +1 -0
- package/dist/popup.cjs +1 -0
- package/dist/popup.d.ts +1 -0
- package/dist/popup.js +3 -0
- package/dist/progress.cjs +1 -0
- package/dist/progress.d.ts +1 -0
- package/dist/progress.js +1 -0
- package/dist/radio-list.cjs +1 -0
- package/dist/radio-list.d.ts +1 -0
- package/dist/radio-list.js +1 -0
- package/dist/radio.cjs +1 -0
- package/dist/radio.d.ts +1 -0
- package/dist/radio.js +3 -0
- package/dist/result-page.cjs +1 -0
- package/dist/result-page.d.ts +1 -0
- package/dist/result-page.js +1 -0
- package/dist/ruler.cjs +1 -0
- package/dist/ruler.d.ts +1 -0
- package/dist/ruler.js +1 -0
- package/dist/scroll-view.cjs +1 -0
- package/dist/scroll-view.d.ts +1 -0
- package/dist/scroll-view.js +3 -0
- package/dist/selector.cjs +1 -0
- package/dist/selector.d.ts +1 -0
- package/dist/selector.js +1 -0
- package/dist/shared-C9XlLe7F.js +36 -0
- package/dist/shared-k9cbQbvK.cjs +1 -0
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.d.ts +1 -0
- package/dist/skeleton.js +1 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.d.ts +1 -0
- package/dist/slider.js +1 -0
- package/dist/stepper.cjs +1 -0
- package/dist/stepper.d.ts +1 -0
- package/dist/stepper.js +1 -0
- package/dist/steps.cjs +1 -0
- package/dist/steps.d.ts +1 -0
- package/dist/steps.js +1 -0
- package/dist/swiper.cjs +1 -0
- package/dist/swiper.d.ts +1 -0
- package/dist/swiper.js +1 -0
- package/dist/switch.cjs +1 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +1 -0
- package/dist/tab-picker.cjs +1 -0
- package/dist/tab-picker.d.ts +1 -0
- package/dist/tab-picker.js +1 -0
- package/dist/tabs.cjs +1 -0
- package/dist/tabs.d.ts +1 -0
- package/dist/tabs.js +1 -0
- package/dist/tag.cjs +1 -0
- package/dist/tag.d.ts +1 -0
- package/dist/tag.js +1 -0
- package/dist/textarea-item.cjs +1 -0
- package/dist/textarea-item.d.ts +1 -0
- package/dist/textarea-item.js +1 -0
- package/dist/tip.cjs +1 -0
- package/dist/tip.d.ts +1 -0
- package/dist/tip.js +1 -0
- package/dist/toast-ByIFvpMs.js +146 -0
- package/dist/toast-C1K2_cOo.cjs +1 -0
- package/dist/toast.cjs +1 -0
- package/dist/toast.d.ts +2 -0
- package/dist/toast.js +1 -0
- package/dist/transition.cjs +1 -0
- package/dist/transition.d.ts +1 -0
- package/dist/transition.js +1 -0
- package/dist/water-mark.cjs +1 -0
- package/dist/water-mark.d.ts +1 -0
- package/dist/water-mark.js +1 -0
- package/package.json +296 -3
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { t as e } from "./Popup-qLk-BsRS.js";
|
|
2
|
+
import { t } from "./PopupTitleBar-9P4RUMC1.js";
|
|
3
|
+
import { t as n } from "./Icon-BgCtu0ZV.js";
|
|
4
|
+
import { n as r, t as i } from "./TabPane-Q7oUFzmP.js";
|
|
5
|
+
import { t as a } from "./ScrollView-BNY62f7B.js";
|
|
6
|
+
import { t as o } from "./RadioList-DNGsEzgf.js";
|
|
7
|
+
import { Fragment as s, computed as c, createBlock as l, createElementBlock as u, createElementVNode as d, createSlots as f, createVNode as p, defineComponent as m, openBlock as h, ref as g, renderList as _, renderSlot as v, useSlots as y, watch as b, withCtx as x } from "vue";
|
|
8
|
+
import { t as S } from "@centui/core";
|
|
9
|
+
// src/components/tab-picker/TabPicker.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var C = { class: "cu-tab-picker" }, w = { class: "cu-tab-picker-content" }, T = /* @__PURE__ */ m({
|
|
11
|
+
name: "cu-tab-picker",
|
|
12
|
+
__name: "TabPicker",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
data: { default: () => ({}) },
|
|
19
|
+
defaultValue: { default: () => [] },
|
|
20
|
+
placeholder: { default: () => String(S("md.tab_picker.choose")) },
|
|
21
|
+
title: { default: "" },
|
|
22
|
+
describe: { default: "" },
|
|
23
|
+
maskClosable: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
largeRadius: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: [
|
|
33
|
+
"update:modelValue",
|
|
34
|
+
"select",
|
|
35
|
+
"change",
|
|
36
|
+
"show",
|
|
37
|
+
"hide"
|
|
38
|
+
],
|
|
39
|
+
setup(m, { expose: S, emit: T }) {
|
|
40
|
+
let E = m, D = T, O = y(), k = g(null), A = g(null), j = g(E.defaultValue.slice()), M = g([]), N = g(E.data.name ?? ""), P = g(""), F = g(Date.now()), I = c(() => {
|
|
41
|
+
let e = O.default;
|
|
42
|
+
return e ? e({ option: {} }).some((e) => e.type !== Comment) : !1;
|
|
43
|
+
}), L = c(() => {
|
|
44
|
+
let e = [], t = E.data, n = 0;
|
|
45
|
+
for (; t && t.name;) {
|
|
46
|
+
let r = {
|
|
47
|
+
name: t.name,
|
|
48
|
+
label: t.label || E.placeholder,
|
|
49
|
+
value: j.value[n],
|
|
50
|
+
selected: null,
|
|
51
|
+
options: t.options ?? []
|
|
52
|
+
}, i = !1, a = t.options ?? [];
|
|
53
|
+
for (let e = 0, o = a.length; e < o; e++) if (a[e].value === j.value[n]) {
|
|
54
|
+
r.label = a[e].label, r.selected = a[e], t = a[e].children, i = !0, n++;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
i || (t = void 0), e.push(r);
|
|
58
|
+
}
|
|
59
|
+
return e;
|
|
60
|
+
});
|
|
61
|
+
b(L, (e) => {
|
|
62
|
+
let t = e[e.length - 1];
|
|
63
|
+
t && t.name && (N.value = t.name);
|
|
64
|
+
}, { immediate: !0 });
|
|
65
|
+
function R(e) {
|
|
66
|
+
D("update:modelValue", e);
|
|
67
|
+
}
|
|
68
|
+
function z() {
|
|
69
|
+
k.value?.reflowTabBar(), D("show"), setTimeout(() => {
|
|
70
|
+
M.value = j.value.slice(), P.value = N.value;
|
|
71
|
+
}, 100);
|
|
72
|
+
}
|
|
73
|
+
function B() {
|
|
74
|
+
D("update:modelValue", !1), setTimeout(() => {
|
|
75
|
+
j.value = M.value.slice(), N.value = P.value, F.value = Date.now();
|
|
76
|
+
}, 100);
|
|
77
|
+
}
|
|
78
|
+
function V(e, t) {
|
|
79
|
+
j.value.splice(t, j.value.length - t, e), Promise.resolve().then(() => {
|
|
80
|
+
let n = L.value[t + 1];
|
|
81
|
+
D("select", {
|
|
82
|
+
index: t,
|
|
83
|
+
value: e,
|
|
84
|
+
option: L.value[t]
|
|
85
|
+
}), n ? (N.value = n.name, A.value?.scrollTo(0, 0)) : e !== "" && setTimeout(() => {
|
|
86
|
+
D("change", {
|
|
87
|
+
values: H(),
|
|
88
|
+
options: U()
|
|
89
|
+
}), D("update:modelValue", !1);
|
|
90
|
+
}, 300);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function H() {
|
|
94
|
+
return j.value.slice();
|
|
95
|
+
}
|
|
96
|
+
function U() {
|
|
97
|
+
return L.value.filter((e) => e.value).map((e) => e.selected);
|
|
98
|
+
}
|
|
99
|
+
return S({
|
|
100
|
+
getSelectedValues: H,
|
|
101
|
+
getSelectedOptions: U
|
|
102
|
+
}), (c, g) => (h(), u("div", C, [p(e, {
|
|
103
|
+
"model-value": m.modelValue,
|
|
104
|
+
position: "bottom",
|
|
105
|
+
"mask-closable": m.maskClosable,
|
|
106
|
+
"onUpdate:modelValue": R,
|
|
107
|
+
onShow: z,
|
|
108
|
+
onHide: g[0] ||= (e) => c.$emit("hide"),
|
|
109
|
+
onMaskClick: B
|
|
110
|
+
}, {
|
|
111
|
+
default: x(() => [p(t, {
|
|
112
|
+
title: m.title,
|
|
113
|
+
describe: m.describe,
|
|
114
|
+
"large-radius": m.largeRadius,
|
|
115
|
+
"only-close": "",
|
|
116
|
+
onCancel: B
|
|
117
|
+
}, {
|
|
118
|
+
cancel: x(() => [p(n, {
|
|
119
|
+
name: "close",
|
|
120
|
+
size: "lg"
|
|
121
|
+
})]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, [
|
|
124
|
+
"title",
|
|
125
|
+
"describe",
|
|
126
|
+
"large-radius"
|
|
127
|
+
]), d("div", w, [(h(), l(r, {
|
|
128
|
+
ref_key: "tabs",
|
|
129
|
+
ref: k,
|
|
130
|
+
"model-value": N.value,
|
|
131
|
+
key: F.value,
|
|
132
|
+
"ink-length": 100
|
|
133
|
+
}, {
|
|
134
|
+
default: x(() => [p(a, {
|
|
135
|
+
ref_key: "scrollView",
|
|
136
|
+
ref: A,
|
|
137
|
+
"scrolling-x": !1,
|
|
138
|
+
"auto-reflow": ""
|
|
139
|
+
}, {
|
|
140
|
+
default: x(() => [(h(!0), u(s, null, _(L.value, (e, t) => (h(), l(i, {
|
|
141
|
+
key: e.name,
|
|
142
|
+
name: e.name,
|
|
143
|
+
label: e.label
|
|
144
|
+
}, {
|
|
145
|
+
default: x(() => [p(o, {
|
|
146
|
+
"model-value": e.value,
|
|
147
|
+
options: e.options,
|
|
148
|
+
"is-slot-scope": I.value,
|
|
149
|
+
icon: "",
|
|
150
|
+
"icon-inverse": "",
|
|
151
|
+
"icon-position": "right",
|
|
152
|
+
"onUpdate:modelValue": (e) => V(e, t)
|
|
153
|
+
}, f({ _: 2 }, [I.value ? {
|
|
154
|
+
name: "default",
|
|
155
|
+
fn: x(({ option: e }) => [v(c.$slots, "default", { option: e })]),
|
|
156
|
+
key: "0"
|
|
157
|
+
} : void 0]), 1032, [
|
|
158
|
+
"model-value",
|
|
159
|
+
"options",
|
|
160
|
+
"is-slot-scope",
|
|
161
|
+
"onUpdate:modelValue"
|
|
162
|
+
])]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, 1032, ["name", "label"]))), 128))]),
|
|
165
|
+
_: 3
|
|
166
|
+
}, 512)]),
|
|
167
|
+
_: 3
|
|
168
|
+
}, 8, ["model-value"]))])]),
|
|
169
|
+
_: 3
|
|
170
|
+
}, 8, ["model-value", "mask-closable"])]));
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
export { T as t };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, nextTick as a, normalizeClass as o, normalizeStyle as s, onMounted as c, onUpdated as l, openBlock as u, reactive as d, ref as f, renderSlot as p, watch as m } from "vue";
|
|
2
|
+
import { transformCamelCase as h } from "@centui/core";
|
|
3
|
+
// src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var g = { class: "cu-tag" }, _ = { class: "quarter-content" }, v = /* @__PURE__ */ i({
|
|
5
|
+
name: "cu-tag",
|
|
6
|
+
__name: "Tag",
|
|
7
|
+
props: {
|
|
8
|
+
size: { default: "large" },
|
|
9
|
+
shape: { default: "square" },
|
|
10
|
+
sharp: { default: "" },
|
|
11
|
+
type: { default: "ghost" },
|
|
12
|
+
fillColor: { default: "" },
|
|
13
|
+
fontWeight: { default: "normal" },
|
|
14
|
+
fontColor: { default: "" }
|
|
15
|
+
},
|
|
16
|
+
setup(i) {
|
|
17
|
+
let v = i, y = f(), b = d({}), x = e(() => [
|
|
18
|
+
"default",
|
|
19
|
+
`size-${v.size}`,
|
|
20
|
+
`shape-${v.shape}`,
|
|
21
|
+
`type-${v.type}`,
|
|
22
|
+
`font-weight-${v.fontWeight}`
|
|
23
|
+
]), S = e(() => {
|
|
24
|
+
let e = {};
|
|
25
|
+
return v.type === "fill" && v.fillColor && (e.background = v.fillColor), v.fontColor && (v.type === "ghost" && (e.borderColor = v.fontColor), e.color = v.fontColor), e;
|
|
26
|
+
}), C = -1;
|
|
27
|
+
async function w() {
|
|
28
|
+
if (await a(), v.shape !== "circle" || !y.value) return;
|
|
29
|
+
let e = y.value.offsetHeight;
|
|
30
|
+
if (e === C) return;
|
|
31
|
+
C = e;
|
|
32
|
+
let t = e / 2;
|
|
33
|
+
b.paddingLeft = t + "px", b.paddingRight = t + "px", b.borderRadius = t + "px", v.sharp && (b[h(`border-${v.sharp}-radius`)] = "0");
|
|
34
|
+
}
|
|
35
|
+
return c(() => {
|
|
36
|
+
w();
|
|
37
|
+
}), m(() => [
|
|
38
|
+
v.shape,
|
|
39
|
+
v.sharp,
|
|
40
|
+
v.size
|
|
41
|
+
], () => {
|
|
42
|
+
C = -1, w();
|
|
43
|
+
}), l(() => {
|
|
44
|
+
w();
|
|
45
|
+
}), (e, a) => (u(), n("div", g, [i.shape === "quarter" ? (u(), n("div", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: o(x.value)
|
|
48
|
+
}, [r("div", _, [p(e.$slots, "default")]), r("div", {
|
|
49
|
+
class: "quarter-bg",
|
|
50
|
+
style: s(S.value)
|
|
51
|
+
}, null, 4)], 2)) : i.shape === "coupon" ? (u(), n("div", {
|
|
52
|
+
key: 1,
|
|
53
|
+
class: o(x.value)
|
|
54
|
+
}, [r("div", {
|
|
55
|
+
class: "coupon-container",
|
|
56
|
+
style: s(S.value)
|
|
57
|
+
}, [
|
|
58
|
+
i.shape === "coupon" ? (u(), n("div", {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "left-coupon",
|
|
61
|
+
style: s({ background: i.fillColor ? "radial-gradient(circle at left, transparent 33%, " + i.fillColor + " 33%)" : "" })
|
|
62
|
+
}, null, 4)) : t("", !0),
|
|
63
|
+
p(e.$slots, "default"),
|
|
64
|
+
i.shape === "coupon" ? (u(), n("div", {
|
|
65
|
+
key: 1,
|
|
66
|
+
class: "right-coupon",
|
|
67
|
+
style: s({ background: i.fillColor ? "radial-gradient(circle at right, transparent 33%, " + i.fillColor + " 33%)" : "" })
|
|
68
|
+
}, null, 4)) : t("", !0)
|
|
69
|
+
], 4)], 2)) : (u(), n("div", {
|
|
70
|
+
key: 2,
|
|
71
|
+
ref_key: "el",
|
|
72
|
+
ref: y,
|
|
73
|
+
class: o(x.value),
|
|
74
|
+
style: s([S.value, b])
|
|
75
|
+
}, [p(e.$slots, "default")], 6))]));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export { v as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("vue"),t=require("@centui/core");var n={class:`cu-tag`},r={class:`quarter-content`},i=(0,e.defineComponent)({name:`cu-tag`,__name:`Tag`,props:{size:{default:`large`},shape:{default:`square`},sharp:{default:``},type:{default:`ghost`},fillColor:{default:``},fontWeight:{default:`normal`},fontColor:{default:``}},setup(i){let a=i,o=(0,e.ref)(),s=(0,e.reactive)({}),c=(0,e.computed)(()=>[`default`,`size-${a.size}`,`shape-${a.shape}`,`type-${a.type}`,`font-weight-${a.fontWeight}`]),l=(0,e.computed)(()=>{let e={};return a.type===`fill`&&a.fillColor&&(e.background=a.fillColor),a.fontColor&&(a.type===`ghost`&&(e.borderColor=a.fontColor),e.color=a.fontColor),e}),u=-1;async function d(){if(await(0,e.nextTick)(),a.shape!==`circle`||!o.value)return;let n=o.value.offsetHeight;if(n===u)return;u=n;let r=n/2;s.paddingLeft=r+`px`,s.paddingRight=r+`px`,s.borderRadius=r+`px`,a.sharp&&(s[(0,t.transformCamelCase)(`border-${a.sharp}-radius`)]=`0`)}return(0,e.onMounted)(()=>{d()}),(0,e.watch)(()=>[a.shape,a.sharp,a.size],()=>{u=-1,d()}),(0,e.onUpdated)(()=>{d()}),(t,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,n,[i.shape===`quarter`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)(c.value)},[(0,e.createElementVNode)(`div`,r,[(0,e.renderSlot)(t.$slots,`default`)]),(0,e.createElementVNode)(`div`,{class:`quarter-bg`,style:(0,e.normalizeStyle)(l.value)},null,4)],2)):i.shape===`coupon`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)(c.value)},[(0,e.createElementVNode)(`div`,{class:`coupon-container`,style:(0,e.normalizeStyle)(l.value)},[i.shape===`coupon`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:`left-coupon`,style:(0,e.normalizeStyle)({background:i.fillColor?`radial-gradient(circle at left, transparent 33%, `+i.fillColor+` 33%)`:``})},null,4)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(t.$slots,`default`),i.shape===`coupon`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`right-coupon`,style:(0,e.normalizeStyle)({background:i.fillColor?`radial-gradient(circle at right, transparent 33%, `+i.fillColor+` 33%)`:``})},null,4)):(0,e.createCommentVNode)(``,!0)],4)],2)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,ref_key:`el`,ref:o,class:(0,e.normalizeClass)(c.value),style:(0,e.normalizeStyle)([l.value,s])},[(0,e.renderSlot)(t.$slots,`default`)],6))]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { t as e } from "./FieldItem-D79w330m.js";
|
|
2
|
+
import { t } from "./Icon-BgCtu0ZV.js";
|
|
3
|
+
import { n, t as r } from "./cursor-BIPoNm8V.js";
|
|
4
|
+
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, nextTick as f, normalizeClass as p, onMounted as m, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, vModelText as y, vShow as b, watch as x, withCtx as S, withDirectives as C } from "vue";
|
|
5
|
+
// src/components/textarea-item/TextareaItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var w = [
|
|
7
|
+
"disabled",
|
|
8
|
+
"readonly",
|
|
9
|
+
"maxlength",
|
|
10
|
+
"placeholder",
|
|
11
|
+
"rows"
|
|
12
|
+
], T = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "cu-textarea-item-msg"
|
|
15
|
+
}, E = /* @__PURE__ */ u({
|
|
16
|
+
name: "cu-textarea-item",
|
|
17
|
+
__name: "TextareaItem",
|
|
18
|
+
props: {
|
|
19
|
+
title: { default: "" },
|
|
20
|
+
name: { default: () => `textarea-item-${Math.floor(Math.random() * 1e4)}` },
|
|
21
|
+
placeholder: { default: "" },
|
|
22
|
+
modelValue: { default: "" },
|
|
23
|
+
value: { default: "" },
|
|
24
|
+
maxLength: { default: "" },
|
|
25
|
+
maxHeight: { default: "" },
|
|
26
|
+
solid: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
readonly: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
disabled: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
clearable: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
rows: { default: "3" },
|
|
43
|
+
autosize: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
error: { default: "" },
|
|
48
|
+
formation: {
|
|
49
|
+
type: Function,
|
|
50
|
+
default: void 0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
emits: [
|
|
54
|
+
"update:modelValue",
|
|
55
|
+
"change",
|
|
56
|
+
"input",
|
|
57
|
+
"focus",
|
|
58
|
+
"blur",
|
|
59
|
+
"keyup",
|
|
60
|
+
"keydown"
|
|
61
|
+
],
|
|
62
|
+
setup(u, { expose: E, emit: D }) {
|
|
63
|
+
let O = u, k = D, A = g(O.maxHeight), j = g(O.modelValue || O.value), M = g(!1), N = g(), P = d(), F = (() => {
|
|
64
|
+
let e = P?.vnode.props;
|
|
65
|
+
return !!e && ("modelValue" in e || "onUpdate:modelValue" in e);
|
|
66
|
+
})(), I = i(() => O.disabled), L = i(() => O.error), R = i(() => !j.value.length);
|
|
67
|
+
x(() => F ? O.modelValue : O.value, (e) => {
|
|
68
|
+
j.value = e, f(() => {
|
|
69
|
+
q();
|
|
70
|
+
});
|
|
71
|
+
}), x(j, (e) => {
|
|
72
|
+
k("update:modelValue", e), k("change", e);
|
|
73
|
+
}), x(() => O.maxHeight, (e) => {
|
|
74
|
+
A.value = e, q();
|
|
75
|
+
}), m(() => {
|
|
76
|
+
q();
|
|
77
|
+
});
|
|
78
|
+
function z(e) {
|
|
79
|
+
let t = e.target, i = B(t.value, r(t));
|
|
80
|
+
j.value = i.value, f(() => {
|
|
81
|
+
n(t, i.range), q();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function B(e, t = 0) {
|
|
85
|
+
return O.formation?.(O.name, e, t) || {
|
|
86
|
+
value: e,
|
|
87
|
+
range: t
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function V() {
|
|
91
|
+
j.value = "", f(() => {
|
|
92
|
+
q();
|
|
93
|
+
}), J();
|
|
94
|
+
}
|
|
95
|
+
function H(e) {
|
|
96
|
+
k("keyup", e);
|
|
97
|
+
}
|
|
98
|
+
function U(e) {
|
|
99
|
+
k("keydown", e);
|
|
100
|
+
}
|
|
101
|
+
function W() {
|
|
102
|
+
M.value = !0, k("focus");
|
|
103
|
+
}
|
|
104
|
+
function G() {
|
|
105
|
+
setTimeout(() => {
|
|
106
|
+
M.value = !1, k("blur");
|
|
107
|
+
}, 100);
|
|
108
|
+
}
|
|
109
|
+
function K(e) {
|
|
110
|
+
e.style.height = "auto";
|
|
111
|
+
let t = e.scrollHeight;
|
|
112
|
+
t !== 0 && (A.value && t > Number(A.value) && (t = Number(A.value)), e.style.height = t + "px");
|
|
113
|
+
}
|
|
114
|
+
function q() {
|
|
115
|
+
O.autosize && N.value && K(N.value);
|
|
116
|
+
}
|
|
117
|
+
function J() {
|
|
118
|
+
N.value?.focus(), setTimeout(() => {
|
|
119
|
+
M.value = !0;
|
|
120
|
+
}, 200);
|
|
121
|
+
}
|
|
122
|
+
function Y() {
|
|
123
|
+
N.value?.blur(), M.value = !1;
|
|
124
|
+
}
|
|
125
|
+
function X() {
|
|
126
|
+
return j.value;
|
|
127
|
+
}
|
|
128
|
+
return E({
|
|
129
|
+
resizeTextarea: q,
|
|
130
|
+
focus: J,
|
|
131
|
+
blur: Y,
|
|
132
|
+
getValue: X
|
|
133
|
+
}), (n, r) => (h(), a(e, {
|
|
134
|
+
class: p(["cu-textarea-item", [I.value ? "is-disabled" : "", L.value ? "is-error" : ""]]),
|
|
135
|
+
title: u.title,
|
|
136
|
+
solid: u.solid
|
|
137
|
+
}, {
|
|
138
|
+
right: S(() => [u.clearable && !I.value && !u.readonly ? C((h(), s("div", {
|
|
139
|
+
key: 0,
|
|
140
|
+
class: "cu-textarea-item__clear",
|
|
141
|
+
onClick: V
|
|
142
|
+
}, [l(t, { name: "clear" })], 512)), [[b, !R.value && M.value]]) : o("", !0), _(n.$slots, "right")]),
|
|
143
|
+
children: S(() => [L.value ? (h(), s("div", T, [c("p", null, v(L.value), 1)])) : o("", !0)]),
|
|
144
|
+
default: S(() => [C(c("textarea", {
|
|
145
|
+
ref_key: "textarea",
|
|
146
|
+
ref: N,
|
|
147
|
+
"onUpdate:modelValue": r[0] ||= (e) => j.value = e,
|
|
148
|
+
class: "cu-textarea-item__textarea",
|
|
149
|
+
disabled: I.value,
|
|
150
|
+
readonly: u.readonly,
|
|
151
|
+
maxlength: u.maxLength,
|
|
152
|
+
placeholder: u.placeholder,
|
|
153
|
+
rows: u.rows,
|
|
154
|
+
onInput: z,
|
|
155
|
+
onFocus: W,
|
|
156
|
+
onBlur: G,
|
|
157
|
+
onKeyup: H,
|
|
158
|
+
onKeydown: U
|
|
159
|
+
}, null, 40, w), [[y, j.value]]), _(n.$slots, "footer")]),
|
|
160
|
+
_: 3
|
|
161
|
+
}, 8, [
|
|
162
|
+
"class",
|
|
163
|
+
"title",
|
|
164
|
+
"solid"
|
|
165
|
+
]));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export { E as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./FieldItem-UFKrl_5J.cjs"),t=require("./Icon-83WWqE5z.cjs"),n=require("./cursor-tQE3LcbU.cjs");let r=require("vue");var i=[`disabled`,`readonly`,`maxlength`,`placeholder`,`rows`],a={key:0,class:`cu-textarea-item-msg`},o=(0,r.defineComponent)({name:`cu-textarea-item`,__name:`TextareaItem`,props:{title:{default:``},name:{default:()=>`textarea-item-${Math.floor(Math.random()*1e4)}`},placeholder:{default:``},modelValue:{default:``},value:{default:``},maxLength:{default:``},maxHeight:{default:``},solid:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},rows:{default:`3`},autosize:{type:Boolean,default:!1},error:{default:``},formation:{type:Function,default:void 0}},emits:[`update:modelValue`,`change`,`input`,`focus`,`blur`,`keyup`,`keydown`],setup(o,{expose:s,emit:c}){let l=o,u=c,d=(0,r.ref)(l.maxHeight),f=(0,r.ref)(l.modelValue||l.value),p=(0,r.ref)(!1),m=(0,r.ref)(),h=(0,r.getCurrentInstance)(),g=(()=>{let e=h?.vnode.props;return!!e&&(`modelValue`in e||`onUpdate:modelValue`in e)})(),_=(0,r.computed)(()=>l.disabled),v=(0,r.computed)(()=>l.error),y=(0,r.computed)(()=>!f.value.length);(0,r.watch)(()=>g?l.modelValue:l.value,e=>{f.value=e,(0,r.nextTick)(()=>{O()})}),(0,r.watch)(f,e=>{u(`update:modelValue`,e),u(`change`,e)}),(0,r.watch)(()=>l.maxHeight,e=>{d.value=e,O()}),(0,r.onMounted)(()=>{O()});function b(e){let t=e.target,i=x(t.value,n.t(t));f.value=i.value,(0,r.nextTick)(()=>{n.n(t,i.range),O()})}function x(e,t=0){return l.formation?.(l.name,e,t)||{value:e,range:t}}function S(){f.value=``,(0,r.nextTick)(()=>{O()}),k()}function C(e){u(`keyup`,e)}function w(e){u(`keydown`,e)}function T(){p.value=!0,u(`focus`)}function E(){setTimeout(()=>{p.value=!1,u(`blur`)},100)}function D(e){e.style.height=`auto`;let t=e.scrollHeight;t!==0&&(d.value&&t>Number(d.value)&&(t=Number(d.value)),e.style.height=t+`px`)}function O(){l.autosize&&m.value&&D(m.value)}function k(){m.value?.focus(),setTimeout(()=>{p.value=!0},200)}function A(){m.value?.blur(),p.value=!1}function j(){return f.value}return s({resizeTextarea:O,focus:k,blur:A,getValue:j}),(n,s)=>((0,r.openBlock)(),(0,r.createBlock)(e.t,{class:(0,r.normalizeClass)([`cu-textarea-item`,[_.value?`is-disabled`:``,v.value?`is-error`:``]]),title:o.title,solid:o.solid},{right:(0,r.withCtx)(()=>[o.clearable&&!_.value&&!o.readonly?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:`cu-textarea-item__clear`,onClick:S},[(0,r.createVNode)(t.t,{name:`clear`})],512)),[[r.vShow,!y.value&&p.value]]):(0,r.createCommentVNode)(``,!0),(0,r.renderSlot)(n.$slots,`right`)]),children:(0,r.withCtx)(()=>[v.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,a,[(0,r.createElementVNode)(`p`,null,(0,r.toDisplayString)(v.value),1)])):(0,r.createCommentVNode)(``,!0)]),default:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)(`textarea`,{ref_key:`textarea`,ref:m,"onUpdate:modelValue":s[0]||=e=>f.value=e,class:`cu-textarea-item__textarea`,disabled:_.value,readonly:o.readonly,maxlength:o.maxLength,placeholder:o.placeholder,rows:o.rows,onInput:b,onFocus:T,onBlur:E,onKeyup:C,onKeydown:w},null,40,i),[[r.vModelText,f.value]]),(0,r.renderSlot)(n.$slots,`footer`)]),_:3},8,[`class`,`title`,`solid`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { t as e } from "./Icon-BgCtu0ZV.js";
|
|
2
|
+
import { Fragment as t, cloneVNode as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, getCurrentInstance as u, normalizeClass as d, onBeforeUnmount as f, onMounted as p, openBlock as m, render as h, renderSlot as g, toDisplayString as _ } from "vue";
|
|
3
|
+
import { randomId as v } from "@centui/core";
|
|
4
|
+
// src/components/tip/TipContent.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var y = { class: "cu-tip-content" }, b = ["textContent"], x = /* @__PURE__ */ l({
|
|
6
|
+
name: "cu-tip-content",
|
|
7
|
+
__name: "TipContent",
|
|
8
|
+
props: {
|
|
9
|
+
placement: { default: "top" },
|
|
10
|
+
closable: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
icon: { default: void 0 },
|
|
15
|
+
iconSvg: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
content: { default: "" },
|
|
20
|
+
name: { default: void 0 }
|
|
21
|
+
},
|
|
22
|
+
emits: ["close"],
|
|
23
|
+
setup(n, { emit: c }) {
|
|
24
|
+
let l = n, u = c, f = r(() => ({
|
|
25
|
+
"has-close": l.closable,
|
|
26
|
+
[`is-${l.placement}`]: [
|
|
27
|
+
"left",
|
|
28
|
+
"bottom",
|
|
29
|
+
"right"
|
|
30
|
+
].includes(l.placement),
|
|
31
|
+
[String(l.name)]: !!l.name
|
|
32
|
+
}));
|
|
33
|
+
function p() {
|
|
34
|
+
u("close");
|
|
35
|
+
}
|
|
36
|
+
return (r, c) => (m(), o("div", { class: d(["cu-tip", f.value]) }, [s("div", y, [r.$slots.default ? g(r.$slots, "default", {}, void 0, void 0, 1) : (m(), o(t, { key: 0 }, [n.icon ? (m(), i(e, {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "content-icon",
|
|
39
|
+
name: n.icon,
|
|
40
|
+
svg: n.iconSvg
|
|
41
|
+
}, null, 8, ["name", "svg"])) : a("", !0), s("div", {
|
|
42
|
+
class: "content-text",
|
|
43
|
+
textContent: _(n.content)
|
|
44
|
+
}, null, 8, b)], 64)), n.closable ? (m(), i(e, {
|
|
45
|
+
key: 2,
|
|
46
|
+
name: "close",
|
|
47
|
+
size: "md",
|
|
48
|
+
onClick: p
|
|
49
|
+
})) : a("", !0)]), c[0] ||= s("div", { class: "cu-tip-bg" }, null, -1)], 2));
|
|
50
|
+
}
|
|
51
|
+
}), S = l({
|
|
52
|
+
name: "cu-tip",
|
|
53
|
+
props: {
|
|
54
|
+
placement: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "top"
|
|
57
|
+
},
|
|
58
|
+
name: {
|
|
59
|
+
type: [String, Number],
|
|
60
|
+
default: void 0
|
|
61
|
+
},
|
|
62
|
+
icon: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: void 0
|
|
65
|
+
},
|
|
66
|
+
iconSvg: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
content: {
|
|
71
|
+
type: [String, Number],
|
|
72
|
+
default: ""
|
|
73
|
+
},
|
|
74
|
+
closable: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !0
|
|
77
|
+
},
|
|
78
|
+
fill: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
offset: {
|
|
83
|
+
type: Object,
|
|
84
|
+
default: () => ({
|
|
85
|
+
top: 0,
|
|
86
|
+
left: 0
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
emits: ["show", "hide"],
|
|
91
|
+
setup(e, { slots: t, emit: r }) {
|
|
92
|
+
let i = null, a = null, o = u();
|
|
93
|
+
function s() {
|
|
94
|
+
let e = o?.proxy?.$el;
|
|
95
|
+
return e && e.nodeType === 1 ? e : null;
|
|
96
|
+
}
|
|
97
|
+
p(() => {
|
|
98
|
+
i = l(s() ?? document.body);
|
|
99
|
+
}), f(() => {
|
|
100
|
+
_(), i = null;
|
|
101
|
+
});
|
|
102
|
+
function l(e) {
|
|
103
|
+
if (e === null || e === document.body) return e;
|
|
104
|
+
let t = window.getComputedStyle(e).overflowY, n = t !== "visible" && t !== "hidden", r = e.getAttribute && e.getAttribute("scroll-wrapper") !== null;
|
|
105
|
+
return n && e.scrollHeight > e.clientHeight || r ? e : l(e.parentNode);
|
|
106
|
+
}
|
|
107
|
+
function d(e, t) {
|
|
108
|
+
let n = 0, r = 0, i = e;
|
|
109
|
+
for (; i && (n += i.offsetLeft, r += i.offsetTop, i !== t && i !== document.body && i !== null);) i = i.offsetParent;
|
|
110
|
+
return {
|
|
111
|
+
x: n,
|
|
112
|
+
y: r
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function m() {
|
|
116
|
+
if (a) return a;
|
|
117
|
+
a = document.createElement("div");
|
|
118
|
+
let t = c(x, {
|
|
119
|
+
icon: e.icon,
|
|
120
|
+
iconSvg: e.iconSvg,
|
|
121
|
+
placement: e.placement,
|
|
122
|
+
content: e.content,
|
|
123
|
+
closable: e.closable,
|
|
124
|
+
name: e.name ?? v("tip"),
|
|
125
|
+
onClose: b
|
|
126
|
+
});
|
|
127
|
+
return h(t, a), a;
|
|
128
|
+
}
|
|
129
|
+
function g(t) {
|
|
130
|
+
if (!a) return;
|
|
131
|
+
let n = a.firstElementChild, r = d(t, i), o = e.offset.top || 0, s = e.offset.left || 0, c = n.offsetWidth, l = n.offsetHeight, u = "";
|
|
132
|
+
switch (e.fill && (e.placement === "top" || e.placement === "bottom") && (c = t.offsetWidth, u += `width: ${c}px;`), e.fill && (e.placement === "left" || e.placement === "right") && (l = t.offsetHeight, u += `height: ${l}px;`), e.placement) {
|
|
133
|
+
case "left":
|
|
134
|
+
r.y += (t.offsetHeight - l) / 2, r.x -= c + 10;
|
|
135
|
+
break;
|
|
136
|
+
case "right":
|
|
137
|
+
r.y += (t.offsetHeight - l) / 2, r.x += t.offsetWidth + 10;
|
|
138
|
+
break;
|
|
139
|
+
case "bottom":
|
|
140
|
+
r.y += t.offsetHeight + 10, r.x += (t.offsetWidth - c) / 2;
|
|
141
|
+
break;
|
|
142
|
+
default: r.y -= l + 10, r.x += (t.offsetWidth - c) / 2;
|
|
143
|
+
}
|
|
144
|
+
u += `position: absolute; top: ${r.y + o}px; left: ${r.x + s}px;`, n.style.cssText = u;
|
|
145
|
+
}
|
|
146
|
+
function _() {
|
|
147
|
+
a && a.parentNode && a.parentNode.removeChild(a);
|
|
148
|
+
}
|
|
149
|
+
function y() {
|
|
150
|
+
let t = m(), n = s();
|
|
151
|
+
i && t.parentNode !== i && n && i.appendChild(t), n && g(n), r("show", e.name);
|
|
152
|
+
}
|
|
153
|
+
function b() {
|
|
154
|
+
a && a.parentNode !== null && (a.parentNode.removeChild(a), r("hide", e.name));
|
|
155
|
+
}
|
|
156
|
+
return () => {
|
|
157
|
+
let e = t.default?.() ?? [];
|
|
158
|
+
if (!e.length) return e;
|
|
159
|
+
let r = null;
|
|
160
|
+
for (let t of e) if (r = t, t.type || t.props && Object.keys(t.props).length) break;
|
|
161
|
+
return r ? n(r, { onClick: y }) : e;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
export { x as n, S as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Icon-83WWqE5z.cjs");let t=require("vue"),n=require("@centui/core");var r={class:`cu-tip-content`},i=[`textContent`],a=(0,t.defineComponent)({name:`cu-tip-content`,__name:`TipContent`,props:{placement:{default:`top`},closable:{type:Boolean,default:!0},icon:{default:void 0},iconSvg:{type:Boolean,default:!1},content:{default:``},name:{default:void 0}},emits:[`close`],setup(n,{emit:a}){let o=n,s=a,c=(0,t.computed)(()=>({"has-close":o.closable,[`is-${o.placement}`]:[`left`,`bottom`,`right`].includes(o.placement),[String(o.name)]:!!o.name}));function l(){s(`close`)}return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cu-tip`,c.value])},[(0,t.createElementVNode)(`div`,r,[a.$slots.default?(0,t.renderSlot)(a.$slots,`default`,{},void 0,void 0,1):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[n.icon?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:0,class:`content-icon`,name:n.icon,svg:n.iconSvg},null,8,[`name`,`svg`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:`content-text`,textContent:(0,t.toDisplayString)(n.content)},null,8,i)],64)),n.closable?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:2,name:`close`,size:`md`,onClick:l})):(0,t.createCommentVNode)(``,!0)]),o[0]||=(0,t.createElementVNode)(`div`,{class:`cu-tip-bg`},null,-1)],2))}}),o=(0,t.defineComponent)({name:`cu-tip`,props:{placement:{type:String,default:`top`},name:{type:[String,Number],default:void 0},icon:{type:String,default:void 0},iconSvg:{type:Boolean,default:!1},content:{type:[String,Number],default:``},closable:{type:Boolean,default:!0},fill:{type:Boolean,default:!1},offset:{type:Object,default:()=>({top:0,left:0})}},emits:[`show`,`hide`],setup(e,{slots:r,emit:i}){let o=null,s=null,c=(0,t.getCurrentInstance)();function l(){let e=c?.proxy?.$el;return e&&e.nodeType===1?e:null}(0,t.onMounted)(()=>{o=u(l()??document.body)}),(0,t.onBeforeUnmount)(()=>{m(),o=null});function u(e){if(e===null||e===document.body)return e;let t=window.getComputedStyle(e).overflowY,n=t!==`visible`&&t!==`hidden`,r=e.getAttribute&&e.getAttribute(`scroll-wrapper`)!==null;return n&&e.scrollHeight>e.clientHeight||r?e:u(e.parentNode)}function d(e,t){let n=0,r=0,i=e;for(;i&&(n+=i.offsetLeft,r+=i.offsetTop,i!==t&&i!==document.body&&i!==null);)i=i.offsetParent;return{x:n,y:r}}function f(){if(s)return s;s=document.createElement(`div`);let r=(0,t.createVNode)(a,{icon:e.icon,iconSvg:e.iconSvg,placement:e.placement,content:e.content,closable:e.closable,name:e.name??(0,n.randomId)(`tip`),onClose:g});return(0,t.render)(r,s),s}function p(t){if(!s)return;let n=s.firstElementChild,r=d(t,o),i=e.offset.top||0,a=e.offset.left||0,c=n.offsetWidth,l=n.offsetHeight,u=``;switch(e.fill&&(e.placement===`top`||e.placement===`bottom`)&&(c=t.offsetWidth,u+=`width: ${c}px;`),e.fill&&(e.placement===`left`||e.placement===`right`)&&(l=t.offsetHeight,u+=`height: ${l}px;`),e.placement){case`left`:r.y+=(t.offsetHeight-l)/2,r.x-=c+10;break;case`right`:r.y+=(t.offsetHeight-l)/2,r.x+=t.offsetWidth+10;break;case`bottom`:r.y+=t.offsetHeight+10,r.x+=(t.offsetWidth-c)/2;break;default:r.y-=l+10,r.x+=(t.offsetWidth-c)/2}u+=`position: absolute; top: ${r.y+i}px; left: ${r.x+a}px;`,n.style.cssText=u}function m(){s&&s.parentNode&&s.parentNode.removeChild(s)}function h(){let t=f(),n=l();o&&t.parentNode!==o&&n&&o.appendChild(t),n&&p(n),i(`show`,e.name)}function g(){s&&s.parentNode!==null&&(s.parentNode.removeChild(s),i(`hide`,e.name))}return()=>{let e=r.default?.()??[];if(!e.length)return e;let n=null;for(let t of e)if(n=t,t.type||t.props&&Object.keys(t.props).length)break;return n?(0,t.cloneVNode)(n,{onClick:h}):e}}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Transition as e, createBlock as t, defineComponent as n, openBlock as r, renderSlot as i, withCtx as a } from "vue";
|
|
2
|
+
// src/components/transition/Transition.vue
|
|
3
|
+
var o = /* @__PURE__ */ n({
|
|
4
|
+
name: "cu-transition",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "Transition",
|
|
7
|
+
setup(n) {
|
|
8
|
+
return (n, o) => (r(), t(e, null, {
|
|
9
|
+
default: a(() => [i(n.$slots, "default")]),
|
|
10
|
+
_: 3
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export { o as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("vue");var t=(0,e.defineComponent)({name:`cu-transition`,inheritAttrs:!1,__name:`Transition`,setup(t){return(t,n)=>((0,e.openBlock)(),(0,e.createBlock)(e.Transition,null,{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`default`)]),_:3}))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|