@expcat/tigercat-vue 1.4.0 → 2.0.0-preview.1
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/dist/{chunk-MKBIVETW.mjs → chunk-2OI6GWOT.mjs} +22 -2
- package/dist/{chunk-M2ECZQ2D.mjs → chunk-2QWGVJW6.mjs} +56 -33
- package/dist/{chunk-6K4UE5MK.mjs → chunk-2YPPXZ4I.mjs} +59 -5
- package/dist/{chunk-KY3O3FWK.mjs → chunk-36WSYHJU.mjs} +77 -18
- package/dist/{chunk-HCANI7ZG.mjs → chunk-36ZFDXKU.mjs} +10 -1
- package/dist/{chunk-DEJKRMMU.mjs → chunk-4IZUJJUO.mjs} +32 -9
- package/dist/{chunk-L6ZD3ZCO.mjs → chunk-4QCJUILG.mjs} +1 -1
- package/dist/chunk-4RKBXGHQ.mjs +52 -0
- package/dist/chunk-4ZKSTL5P.mjs +323 -0
- package/dist/{chunk-YZP4K6KI.mjs → chunk-6BDDX2R4.mjs} +9 -9
- package/dist/{chunk-BYX756N5.mjs → chunk-6FV2OMB7.mjs} +22 -7
- package/dist/{chunk-VN4SKDFO.mjs → chunk-6G5FEZLT.mjs} +2 -12
- package/dist/{chunk-Y4V7BOVR.mjs → chunk-6TTICJR4.mjs} +9 -7
- package/dist/{chunk-BPAN6T7H.mjs → chunk-7LCUVR63.mjs} +40 -5
- package/dist/{chunk-E6RGBYI3.mjs → chunk-ALIUAGJO.mjs} +7 -0
- package/dist/{chunk-IZF4VHJ2.mjs → chunk-ASOJXXU6.mjs} +2 -2
- package/dist/{chunk-NDS2DLUS.mjs → chunk-AZXS4QWC.mjs} +14 -10
- package/dist/{chunk-KY6AJRGT.mjs → chunk-B47QLHVW.mjs} +7 -7
- package/dist/{chunk-UAD2XROX.mjs → chunk-BGO2ILHM.mjs} +9 -9
- package/dist/{chunk-GRP54POG.mjs → chunk-BJV62I73.mjs} +5 -5
- package/dist/{chunk-FSGD24HV.mjs → chunk-BNNTDSLJ.mjs} +92 -1
- package/dist/{chunk-6NJXI66G.mjs → chunk-CF4GX6BD.mjs} +36 -4
- package/dist/{chunk-QKP5C26H.mjs → chunk-CW5TEG7N.mjs} +2 -2
- package/dist/{chunk-MOLGN476.mjs → chunk-DMQLA35L.mjs} +11 -1
- package/dist/{chunk-7VSNXYFM.mjs → chunk-DOVBKVTB.mjs} +28 -10
- package/dist/{chunk-2WJADO6O.mjs → chunk-DZFM7H3M.mjs} +21 -7
- package/dist/{chunk-62ZSNASF.mjs → chunk-E7NE5HEC.mjs} +140 -7
- package/dist/chunk-ESBUNMIG.mjs +49 -0
- package/dist/{chunk-KJ6VISRW.mjs → chunk-EUSODI5E.mjs} +1 -1
- package/dist/{chunk-RHLP2ED5.mjs → chunk-EVIZXEB2.mjs} +15 -8
- package/dist/{chunk-SGRUGYQ6.mjs → chunk-EYR27UIE.mjs} +13 -10
- package/dist/{chunk-PPEAQDD5.mjs → chunk-FAQL7HFW.mjs} +8 -0
- package/dist/{chunk-LHOSPU6V.mjs → chunk-FDKJOVXG.mjs} +9 -18
- package/dist/{chunk-IKEZDGRO.mjs → chunk-FHJ3R57L.mjs} +9 -9
- package/dist/{chunk-RFFPMC22.mjs → chunk-FIVVKBBF.mjs} +3 -3
- package/dist/{chunk-PTAWLJCV.mjs → chunk-FT2HWF7P.mjs} +1 -1
- package/dist/{chunk-K5ZZZ4TL.mjs → chunk-G7MOTNJO.mjs} +9 -9
- package/dist/{chunk-J6YCXMVY.mjs → chunk-GAEO66NY.mjs} +2 -2
- package/dist/chunk-GMIKUE67.mjs +201 -0
- package/dist/chunk-GTFAC625.mjs +120 -0
- package/dist/{chunk-W6ZFHHD3.mjs → chunk-GZWZP5AL.mjs} +9 -2
- package/dist/{chunk-FMH4CLSA.mjs → chunk-H6FZBFRT.mjs} +27 -6
- package/dist/{chunk-PXRF4IJO.mjs → chunk-HGXD57QM.mjs} +46 -5
- package/dist/{chunk-HKRMZODL.mjs → chunk-HIXWZVE5.mjs} +14 -10
- package/dist/{chunk-VVS2CQS4.mjs → chunk-HLPSHCXO.mjs} +8 -3
- package/dist/{chunk-PENI3H3I.mjs → chunk-HS4YQGZQ.mjs} +45 -11
- package/dist/{chunk-6Y4NWO4I.mjs → chunk-HWL36OCD.mjs} +7 -4
- package/dist/{chunk-GQAVLQEZ.mjs → chunk-IGT4QB7O.mjs} +4 -4
- package/dist/{chunk-3VFZB5ZK.mjs → chunk-IQNZ4UEA.mjs} +10 -13
- package/dist/{chunk-TUSWQVI2.mjs → chunk-JCGWN7WV.mjs} +1 -0
- package/dist/{chunk-QAMXVTNN.mjs → chunk-JMVALNIO.mjs} +147 -48
- package/dist/{chunk-M5PGWW25.mjs → chunk-JPCMI3A4.mjs} +40 -10
- package/dist/{chunk-YSUT2GRP.mjs → chunk-KBJANUZZ.mjs} +50 -1
- package/dist/{chunk-M4EP4OVR.mjs → chunk-KE6RGD4Y.mjs} +2 -1
- package/dist/chunk-KIPTVKU2.mjs +104 -0
- package/dist/{chunk-KH2CF6JU.mjs → chunk-KR3D2JOA.mjs} +93 -41
- package/dist/{chunk-G6ULKE6H.mjs → chunk-KRWKO2JQ.mjs} +17 -3
- package/dist/{chunk-DOBGVCZJ.mjs → chunk-LOX2KCML.mjs} +7 -6
- package/dist/{chunk-OOS3QQFK.mjs → chunk-MJRFB6ZA.mjs} +72 -43
- package/dist/{chunk-UKMOWUYH.mjs → chunk-MYKKKVGK.mjs} +2 -2
- package/dist/{chunk-3AF4VRCD.mjs → chunk-N3C6YI7I.mjs} +8 -8
- package/dist/{chunk-NHBN6VAY.mjs → chunk-NYWIBDO6.mjs} +9 -9
- package/dist/{chunk-Y3BQSELH.mjs → chunk-O4F75KHL.mjs} +9 -9
- package/dist/{chunk-DSNPEWYP.mjs → chunk-ODDPVS27.mjs} +64 -11
- package/dist/{chunk-DMV26JNR.mjs → chunk-PD2PKYJE.mjs} +58 -6
- package/dist/{chunk-HVVPFQW2.mjs → chunk-PLUABMUD.mjs} +16 -2
- package/dist/{chunk-UMQUWX7U.mjs → chunk-QD5ZCKPR.mjs} +26 -4
- package/dist/{chunk-NWS45JQP.mjs → chunk-RAO7ZJWR.mjs} +65 -17
- package/dist/{chunk-DOJPPVAN.mjs → chunk-RTZUIWCN.mjs} +5 -1
- package/dist/{chunk-OK4PVFQG.mjs → chunk-SPFL55TF.mjs} +22 -19
- package/dist/{chunk-6OQLZCQK.mjs → chunk-SYRRMZT2.mjs} +1 -1
- package/dist/{chunk-A6T2IHFC.mjs → chunk-TM73IWEY.mjs} +51 -11
- package/dist/{chunk-UANF7XE5.mjs → chunk-TQDN67YN.mjs} +34 -6
- package/dist/{chunk-SC3WTLKG.mjs → chunk-UD4FNMJN.mjs} +22 -5
- package/dist/chunk-V5ANPH5R.mjs +341 -0
- package/dist/{chunk-AZ6SASY5.mjs → chunk-V5ZEPAWV.mjs} +44 -15
- package/dist/{chunk-2R5HISQA.mjs → chunk-VCCK4CDT.mjs} +4 -2
- package/dist/{chunk-WZRC7PJH.mjs → chunk-VFUBOKGT.mjs} +42 -9
- package/dist/{chunk-XMGNMKWW.mjs → chunk-VMYV5EWI.mjs} +4 -3
- package/dist/{chunk-RKL4Y7CW.mjs → chunk-W7X5ZHJ3.mjs} +107 -5
- package/dist/{chunk-E363N2BJ.mjs → chunk-WBT3WSRE.mjs} +1 -4
- package/dist/{chunk-WFISP42H.mjs → chunk-WLHOWOAY.mjs} +15 -2
- package/dist/{chunk-RPWKAGN5.mjs → chunk-WYJ5WOT2.mjs} +29 -13
- package/dist/chunk-XFNHZ7SV.mjs +142 -0
- package/dist/{chunk-ZCT56WB7.mjs → chunk-XZYFVOOS.mjs} +1 -1
- package/dist/chunk-Y2HO4IBQ.mjs +150 -0
- package/dist/{chunk-XJ5VGC5V.mjs → chunk-YJSWHGAR.mjs} +24 -10
- package/dist/{chunk-BHNBLQ5S.mjs → chunk-YSKG5FSX.mjs} +18 -20
- package/dist/{chunk-VPHM5WEL.mjs → chunk-YZATP4VF.mjs} +1 -1
- package/dist/{chunk-OKR3GRG5.mjs → chunk-Z4NJJ7NI.mjs} +65 -17
- package/dist/components/ActivityFeed.mjs +6 -6
- package/dist/components/Anchor.mjs +1 -1
- package/dist/components/AreaChart.d.mts +6 -6
- package/dist/components/AreaChart.mjs +5 -5
- package/dist/components/AutoComplete.d.mts +30 -11
- package/dist/components/AutoComplete.mjs +1 -1
- package/dist/components/Avatar.mjs +2 -2
- package/dist/components/AvatarGroup.mjs +1 -1
- package/dist/components/BackTop.d.mts +30 -3
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/Badge.d.mts +10 -1
- package/dist/components/Badge.mjs +2 -1
- package/dist/components/BarChart.mjs +5 -5
- package/dist/components/Breadcrumb.d.mts +1 -1
- package/dist/components/Breadcrumb.mjs +1 -1
- package/dist/components/Calendar.d.mts +16 -6
- package/dist/components/Calendar.mjs +2 -1
- package/dist/components/Card.d.mts +7 -7
- package/dist/components/Carousel.d.mts +24 -7
- package/dist/components/Carousel.mjs +1 -1
- package/dist/components/Cascader.d.mts +38 -16
- package/dist/components/Cascader.mjs +1 -1
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChartTooltip.d.mts +4 -4
- package/dist/components/ChartTooltip.mjs +1 -1
- package/dist/components/ChatWindow.d.mts +7 -7
- package/dist/components/ChatWindow.mjs +9 -7
- package/dist/components/Checkbox.d.mts +8 -8
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.d.mts +8 -8
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/ColorPicker.d.mts +4 -4
- package/dist/components/ColorSwatch.d.mts +5 -5
- package/dist/components/CommentThread.d.mts +5 -1
- package/dist/components/CommentThread.mjs +7 -5
- package/dist/components/Countdown.d.mts +1 -1
- package/dist/components/CronEditor.d.mts +1 -1
- package/dist/components/CropUpload.d.mts +13 -3
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.d.mts +214 -2
- package/dist/components/DataTableWithToolbar.mjs +11 -10
- package/dist/components/DatePicker.d.mts +13 -8
- package/dist/components/DatePicker.mjs +2 -1
- package/dist/components/Descriptions.d.mts +7 -7
- package/dist/components/DonutChart.d.mts +17 -8
- package/dist/components/DonutChart.mjs +6 -6
- package/dist/components/Drawer.d.mts +8 -27
- package/dist/components/Drawer.mjs +1 -1
- package/dist/components/Dropdown.d.mts +69 -2
- package/dist/components/Dropdown.mjs +3 -1
- package/dist/components/Empty.d.mts +11 -1
- package/dist/components/Empty.mjs +2 -1
- package/dist/components/FileManager.d.mts +19 -19
- package/dist/components/FileManager.mjs +1 -1
- package/dist/components/FloatButton.d.mts +34 -4
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.d.mts +8 -8
- package/dist/components/Form.mjs +1 -1
- package/dist/components/FormItem.d.mts +4 -4
- package/dist/components/FormItem.mjs +2 -2
- package/dist/components/FormWizard.mjs +2 -2
- package/dist/components/FunnelChart.mjs +5 -5
- package/dist/components/Gantt.d.mts +1 -1
- package/dist/components/GaugeChart.d.mts +15 -0
- package/dist/components/GaugeChart.mjs +2 -1
- package/dist/components/HeatmapChart.mjs +3 -3
- package/dist/components/Icon.d.mts +1 -1
- package/dist/components/Image.mjs +4 -3
- package/dist/components/ImageAnnotation.d.mts +11 -1
- package/dist/components/ImageAnnotation.mjs +2 -1
- package/dist/components/ImageCropper.d.mts +11 -0
- package/dist/components/ImageCropper.mjs +2 -1
- package/dist/components/ImageGroup.d.mts +2 -2
- package/dist/components/ImageGroup.mjs +3 -2
- package/dist/components/ImagePreview.d.mts +31 -10
- package/dist/components/ImagePreview.mjs +2 -1
- package/dist/components/ImageViewer.d.mts +6 -15
- package/dist/components/ImageViewer.mjs +1 -1
- package/dist/components/InfiniteScroll.mjs +1 -1
- package/dist/components/Input.d.mts +6 -6
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputGroup.d.mts +6 -6
- package/dist/components/InputNumber.d.mts +26 -6
- package/dist/components/InputNumber.mjs +2 -1
- package/dist/components/Kanban.d.mts +21 -1
- package/dist/components/Kanban.mjs +2 -2
- package/dist/components/LineChart.mjs +5 -5
- package/dist/components/List.d.mts +7 -7
- package/dist/components/List.mjs +2 -2
- package/dist/components/MarkdownEditor.mjs +1 -1
- package/dist/components/Menu.d.mts +5 -5
- package/dist/components/Message.d.mts +4 -29
- package/dist/components/Message.mjs +139 -4
- package/dist/components/{Message.d.ts → MessageContainer.d.mts} +15 -18
- package/dist/components/MessageContainer.mjs +9 -0
- package/dist/components/MessageRoot.d.mts +9 -0
- package/dist/components/MessageRoot.mjs +6 -0
- package/dist/components/Modal.d.mts +2 -20
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Notification.d.mts +4 -29
- package/dist/components/Notification.mjs +189 -4
- package/dist/components/NotificationCenter.mjs +4 -4
- package/dist/components/{Notification.d.ts → NotificationContainer.d.mts} +15 -17
- package/dist/components/NotificationContainer.mjs +9 -0
- package/dist/components/NotificationRoot.d.mts +9 -0
- package/dist/components/NotificationRoot.mjs +6 -0
- package/dist/components/NumberKeyboard.d.mts +2 -2
- package/dist/components/OrgChart.d.mts +1 -1
- package/dist/components/PieChart.d.mts +9 -0
- package/dist/components/PieChart.mjs +5 -5
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/Progress.d.mts +1 -1
- package/dist/components/QRCode.d.mts +1 -1
- package/dist/components/QRCode.mjs +1 -1
- package/dist/components/RadarChart.mjs +5 -5
- package/dist/components/Radio.d.mts +15 -15
- package/dist/components/Radio.mjs +2 -2
- package/dist/components/RadioGroup.d.mts +16 -16
- package/dist/components/RadioGroup.mjs +1 -1
- package/dist/components/Rate.mjs +1 -1
- package/dist/components/Resizable.mjs +1 -1
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/Result.mjs +1 -1
- package/dist/components/RichTextEditor.mjs +1 -1
- package/dist/components/ScatterChart.mjs +5 -5
- package/dist/components/ScrollSpy.d.mts +1 -1
- package/dist/components/Segmented.d.mts +4 -4
- package/dist/components/Segmented.mjs +1 -1
- package/dist/components/Select.d.mts +37 -36
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Signature.d.mts +1 -1
- package/dist/components/Slider.d.mts +7 -7
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Space.d.mts +11 -11
- package/dist/components/Statistic.d.mts +4 -4
- package/dist/components/Stepper.d.mts +4 -4
- package/dist/components/Steps.d.mts +2 -2
- package/dist/components/Steps.mjs +1 -1
- package/dist/components/SunburstChart.mjs +5 -5
- package/dist/components/Switch.d.mts +14 -14
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Table.d.mts +0 -10
- package/dist/components/Table.mjs +6 -6
- package/dist/components/Tabs.d.mts +2 -0
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tag.d.mts +13 -3
- package/dist/components/Tag.mjs +2 -1
- package/dist/components/TaskBoard.d.mts +21 -1
- package/dist/components/TaskBoard.mjs +1 -1
- package/dist/components/Textarea.d.mts +7 -7
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/TimePicker.d.mts +9 -9
- package/dist/components/TimePicker.mjs +1 -1
- package/dist/components/Timeline.mjs +1 -1
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Tour.d.mts +1 -3
- package/dist/components/Tour.mjs +2 -1
- package/dist/components/Transfer.d.mts +50 -13
- package/dist/components/Transfer.mjs +1 -1
- package/dist/components/Tree.d.mts +2 -2
- package/dist/components/Tree.mjs +2 -2
- package/dist/components/TreeMapChart.mjs +5 -5
- package/dist/components/TreeSelect.d.mts +32 -12
- package/dist/components/TreeSelect.mjs +1 -1
- package/dist/components/Upload.d.mts +1 -1
- package/dist/components/Upload.mjs +1 -1
- package/dist/components/VirtualList.d.mts +11 -0
- package/dist/components/VirtualList.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +54 -33
- package/dist/components/VirtualTable.mjs +1 -1
- package/dist/composables/useChartInteraction.d.mts +84 -0
- package/dist/composables/useChartInteraction.mjs +6 -0
- package/dist/composables/useDrag.d.mts +40 -0
- package/dist/composables/useDrag.mjs +6 -0
- package/dist/composables/useFormController.d.mts +23 -0
- package/dist/composables/useFormController.mjs +6 -0
- package/dist/index.d.mts +141 -274
- package/dist/index.mjs +2155 -826
- package/package.json +747 -17
- package/dist/chunk-24CBIC75.js +0 -468
- package/dist/chunk-2DC3BMED.js +0 -92
- package/dist/chunk-2MLORMN2.js +0 -736
- package/dist/chunk-2S5CNU36.js +0 -172
- package/dist/chunk-2VOZFFW6.js +0 -138
- package/dist/chunk-3QV2D54H.js +0 -207
- package/dist/chunk-3UQECWNL.mjs +0 -206
- package/dist/chunk-43BLH7DE.js +0 -166
- package/dist/chunk-44N7LE3Q.js +0 -568
- package/dist/chunk-54VVFMYI.js +0 -69
- package/dist/chunk-57MJTNDL.js +0 -128
- package/dist/chunk-5F6P5Y4K.js +0 -115
- package/dist/chunk-5PXTMXXS.js +0 -159
- package/dist/chunk-5UOAWXOQ.js +0 -243
- package/dist/chunk-5VSKQLK3.js +0 -693
- package/dist/chunk-67RSRWWY.js +0 -451
- package/dist/chunk-6FXYRDYH.js +0 -247
- package/dist/chunk-6WFFP4K2.mjs +0 -325
- package/dist/chunk-72DDCIVL.js +0 -68
- package/dist/chunk-7ADONGSB.js +0 -49
- package/dist/chunk-7CR6MLD5.js +0 -141
- package/dist/chunk-7FWZIAFP.js +0 -482
- package/dist/chunk-7GYYIDMA.js +0 -325
- package/dist/chunk-A7FN3S4I.js +0 -150
- package/dist/chunk-ACYYQJ6M.js +0 -106
- package/dist/chunk-AP42636I.js +0 -98
- package/dist/chunk-BPAZBRCR.js +0 -150
- package/dist/chunk-BYNMOQBB.js +0 -313
- package/dist/chunk-BZBVSB43.js +0 -147
- package/dist/chunk-CGZPOI6H.js +0 -93
- package/dist/chunk-CTAQ5WEN.js +0 -95
- package/dist/chunk-CWNEDREV.js +0 -165
- package/dist/chunk-DE5WMG6P.js +0 -291
- package/dist/chunk-DJCTERZH.js +0 -92
- package/dist/chunk-DUMPRNDR.js +0 -389
- package/dist/chunk-DYSLYJ2W.js +0 -92
- package/dist/chunk-DZXZ3YEL.js +0 -137
- package/dist/chunk-E36I27WK.js +0 -362
- package/dist/chunk-EIH6ABOR.js +0 -286
- package/dist/chunk-EJZBG5RT.js +0 -298
- package/dist/chunk-EQW6IUHG.js +0 -163
- package/dist/chunk-ETTYERGO.js +0 -83
- package/dist/chunk-F5TZIFMW.js +0 -145
- package/dist/chunk-FC7RXQTM.js +0 -153
- package/dist/chunk-FGM7KB2Q.js +0 -681
- package/dist/chunk-FP7SBCPO.js +0 -253
- package/dist/chunk-FUI6WG2F.js +0 -757
- package/dist/chunk-G3SWTL27.js +0 -119
- package/dist/chunk-GY75BFAV.js +0 -547
- package/dist/chunk-HA5QZ76M.js +0 -143
- package/dist/chunk-HBFFINAI.js +0 -58
- package/dist/chunk-HMYVPBWI.js +0 -404
- package/dist/chunk-HZBE2RY4.js +0 -290
- package/dist/chunk-IXTYS3EK.js +0 -140
- package/dist/chunk-JCMGBKS6.js +0 -59
- package/dist/chunk-JCPTFBLY.js +0 -112
- package/dist/chunk-JKEF7NB3.js +0 -243
- package/dist/chunk-JKZ5ZRDG.js +0 -136
- package/dist/chunk-JTVFVAM3.js +0 -47
- package/dist/chunk-K2DJDJZR.js +0 -139
- package/dist/chunk-K3CIXMN4.js +0 -212
- package/dist/chunk-K6DYTMBE.js +0 -111
- package/dist/chunk-KA7DILCI.js +0 -649
- package/dist/chunk-KDA4XDXT.js +0 -67
- package/dist/chunk-KGDRA475.js +0 -119
- package/dist/chunk-KN64NDJS.js +0 -373
- package/dist/chunk-LD7ZJCTO.mjs +0 -167
- package/dist/chunk-LG55VN6B.js +0 -383
- package/dist/chunk-LG6KGO5D.js +0 -161
- package/dist/chunk-LUBUJUSH.js +0 -45
- package/dist/chunk-LYF6AAQ7.js +0 -418
- package/dist/chunk-M2XA7VU5.js +0 -364
- package/dist/chunk-MQ23PX3S.js +0 -218
- package/dist/chunk-MSKAWM7K.js +0 -73
- package/dist/chunk-NCLUMDZB.js +0 -100
- package/dist/chunk-NCT5FXQB.js +0 -373
- package/dist/chunk-NEVDRG6C.js +0 -537
- package/dist/chunk-NHNJUBYZ.js +0 -819
- package/dist/chunk-NOZ65AMO.js +0 -106
- package/dist/chunk-NTZ7LQTY.js +0 -830
- package/dist/chunk-NUABW6IB.mjs +0 -98
- package/dist/chunk-ODQOYMUQ.js +0 -72
- package/dist/chunk-OTNVA2UT.js +0 -212
- package/dist/chunk-OUBJHKWX.js +0 -199
- package/dist/chunk-OXIODAJS.js +0 -192
- package/dist/chunk-PFWRFHSB.js +0 -164
- package/dist/chunk-PGOTPYRG.js +0 -141
- package/dist/chunk-PJ66WE62.js +0 -218
- package/dist/chunk-PQMZ3YN3.js +0 -110
- package/dist/chunk-QOMWROWE.js +0 -136
- package/dist/chunk-QUIRQ7OA.js +0 -422
- package/dist/chunk-QY6PYAJA.js +0 -194
- package/dist/chunk-QYSFZA5V.js +0 -353
- package/dist/chunk-QZQYKC2N.js +0 -231
- package/dist/chunk-RAUERIPS.js +0 -100
- package/dist/chunk-RBWJSHKR.js +0 -233
- package/dist/chunk-RKZN3URO.js +0 -181
- package/dist/chunk-RLPSCEBP.js +0 -736
- package/dist/chunk-RUXIQ5EP.js +0 -1811
- package/dist/chunk-SGXLMKMO.js +0 -123
- package/dist/chunk-SJIW7SNA.js +0 -530
- package/dist/chunk-SJSZHQWX.js +0 -486
- package/dist/chunk-SLYUQ67P.js +0 -372
- package/dist/chunk-SVWZOIBI.js +0 -483
- package/dist/chunk-SWOQMMOT.js +0 -60
- package/dist/chunk-SYTYUC67.js +0 -755
- package/dist/chunk-T4DF24UV.js +0 -114
- package/dist/chunk-T5N2UHVP.js +0 -283
- package/dist/chunk-TAAHD4R7.js +0 -398
- package/dist/chunk-TAU447CL.js +0 -306
- package/dist/chunk-TGHB5XST.js +0 -91
- package/dist/chunk-TLXEFLPA.js +0 -39
- package/dist/chunk-TXQEHRQB.js +0 -207
- package/dist/chunk-U36NBQWP.js +0 -192
- package/dist/chunk-UFY654LD.js +0 -1005
- package/dist/chunk-UG6O4F2A.js +0 -150
- package/dist/chunk-UHVUKLHF.js +0 -112
- package/dist/chunk-UI7N2ZDU.js +0 -142
- package/dist/chunk-ULUH6UNV.js +0 -238
- package/dist/chunk-UWZSTI3E.js +0 -393
- package/dist/chunk-VAXO5NEM.js +0 -320
- package/dist/chunk-VH2GDZBH.js +0 -284
- package/dist/chunk-VJ72Y54M.js +0 -241
- package/dist/chunk-W5DLRGQL.js +0 -296
- package/dist/chunk-WGRNO4PB.js +0 -342
- package/dist/chunk-WNYWWGNM.js +0 -394
- package/dist/chunk-WUEP3PFN.js +0 -445
- package/dist/chunk-WYVA3JBH.js +0 -206
- package/dist/chunk-X5CFXNVK.js +0 -246
- package/dist/chunk-X6FG4RPF.js +0 -367
- package/dist/chunk-XAQID5IO.js +0 -167
- package/dist/chunk-XH4ZZ6KJ.js +0 -427
- package/dist/chunk-XSMDZOBF.js +0 -154
- package/dist/chunk-XTMGF5YP.js +0 -103
- package/dist/chunk-XUOGT4HG.js +0 -76
- package/dist/chunk-XV6IYXAP.js +0 -140
- package/dist/chunk-XVNN6D55.js +0 -394
- package/dist/chunk-XZMU7B54.js +0 -230
- package/dist/chunk-Z6HBM73W.js +0 -158
- package/dist/chunk-Z6MMA7ZE.js +0 -360
- package/dist/chunk-ZHSXICH7.js +0 -264
- package/dist/chunk-ZMGNQKXL.js +0 -233
- package/dist/chunk-ZNVQ2OFX.js +0 -46
- package/dist/chunk-ZOUJFFG4.js +0 -93
- package/dist/chunk-ZQD2MCNX.mjs +0 -231
- package/dist/chunk-ZYCOHZCM.mjs +0 -92
- package/dist/components/ActivityFeed.d.ts +0 -124
- package/dist/components/ActivityFeed.js +0 -18
- package/dist/components/Affix.d.ts +0 -75
- package/dist/components/Affix.js +0 -8
- package/dist/components/Alert.d.ts +0 -221
- package/dist/components/Alert.js +0 -9
- package/dist/components/Anchor.d.ts +0 -251
- package/dist/components/Anchor.js +0 -12
- package/dist/components/AnchorLink.d.mts +0 -8
- package/dist/components/AnchorLink.d.ts +0 -8
- package/dist/components/AnchorLink.js +0 -10
- package/dist/components/AnchorLink.mjs +0 -10
- package/dist/components/AreaChart.d.ts +0 -443
- package/dist/components/AreaChart.js +0 -15
- package/dist/components/AutoComplete.d.ts +0 -117
- package/dist/components/AutoComplete.js +0 -9
- package/dist/components/Avatar.d.ts +0 -162
- package/dist/components/Avatar.js +0 -9
- package/dist/components/AvatarGroup.d.ts +0 -49
- package/dist/components/AvatarGroup.js +0 -10
- package/dist/components/BackTop.d.ts +0 -88
- package/dist/components/BackTop.js +0 -8
- package/dist/components/Badge.d.ts +0 -107
- package/dist/components/Badge.js +0 -8
- package/dist/components/BarChart.d.ts +0 -400
- package/dist/components/BarChart.js +0 -15
- package/dist/components/Breadcrumb.d.ts +0 -235
- package/dist/components/Breadcrumb.js +0 -12
- package/dist/components/BreadcrumbItem.d.mts +0 -8
- package/dist/components/BreadcrumbItem.d.ts +0 -8
- package/dist/components/BreadcrumbItem.js +0 -10
- package/dist/components/BreadcrumbItem.mjs +0 -10
- package/dist/components/Button.d.ts +0 -146
- package/dist/components/Button.js +0 -9
- package/dist/components/ButtonGroup.d.ts +0 -42
- package/dist/components/ButtonGroup.js +0 -10
- package/dist/components/Calendar.d.ts +0 -68
- package/dist/components/Calendar.js +0 -8
- package/dist/components/Card.d.ts +0 -170
- package/dist/components/Card.js +0 -8
- package/dist/components/Carousel.d.ts +0 -247
- package/dist/components/Carousel.js +0 -8
- package/dist/components/Cascader.d.ts +0 -143
- package/dist/components/Cascader.js +0 -9
- package/dist/components/ChartAxis.d.ts +0 -110
- package/dist/components/ChartAxis.js +0 -8
- package/dist/components/ChartCanvas.d.ts +0 -69
- package/dist/components/ChartCanvas.js +0 -8
- package/dist/components/ChartGrid.d.ts +0 -109
- package/dist/components/ChartGrid.js +0 -8
- package/dist/components/ChartLegend.d.ts +0 -74
- package/dist/components/ChartLegend.js +0 -8
- package/dist/components/ChartSeries.d.ts +0 -52
- package/dist/components/ChartSeries.js +0 -8
- package/dist/components/ChartTooltip.d.ts +0 -58
- package/dist/components/ChartTooltip.js +0 -8
- package/dist/components/ChatWindow.d.ts +0 -255
- package/dist/components/ChatWindow.js +0 -16
- package/dist/components/Checkbox.d.ts +0 -144
- package/dist/components/Checkbox.js +0 -9
- package/dist/components/CheckboxGroup.d.ts +0 -126
- package/dist/components/CheckboxGroup.js +0 -10
- package/dist/components/Code.d.ts +0 -71
- package/dist/components/Code.js +0 -8
- package/dist/components/CodeEditor.d.ts +0 -183
- package/dist/components/CodeEditor.js +0 -8
- package/dist/components/Col.d.ts +0 -52
- package/dist/components/Col.js +0 -7
- package/dist/components/Collapse.d.ts +0 -162
- package/dist/components/Collapse.js +0 -10
- package/dist/components/CollapsePanel.d.ts +0 -112
- package/dist/components/CollapsePanel.js +0 -9
- package/dist/components/ColorPicker.d.ts +0 -70
- package/dist/components/ColorPicker.js +0 -8
- package/dist/components/ColorSwatch.d.ts +0 -79
- package/dist/components/ColorSwatch.js +0 -8
- package/dist/components/CommentThread.d.ts +0 -221
- package/dist/components/CommentThread.js +0 -15
- package/dist/components/ConfigProvider.d.ts +0 -76
- package/dist/components/ConfigProvider.js +0 -14
- package/dist/components/Container.d.ts +0 -86
- package/dist/components/Container.js +0 -8
- package/dist/components/Content.d.ts +0 -63
- package/dist/components/Content.js +0 -8
- package/dist/components/Countdown.d.ts +0 -107
- package/dist/components/Countdown.js +0 -8
- package/dist/components/CronEditor.d.ts +0 -80
- package/dist/components/CronEditor.js +0 -8
- package/dist/components/CropUpload.d.ts +0 -97
- package/dist/components/CropUpload.js +0 -14
- package/dist/components/DataTableWithToolbar.d.ts +0 -366
- package/dist/components/DataTableWithToolbar.js +0 -22
- package/dist/components/DatePicker.d.ts +0 -328
- package/dist/components/DatePicker.js +0 -9
- package/dist/components/Descriptions.d.ts +0 -204
- package/dist/components/Descriptions.js +0 -8
- package/dist/components/Divider.d.ts +0 -50
- package/dist/components/Divider.js +0 -8
- package/dist/components/DonutChart.d.ts +0 -323
- package/dist/components/DonutChart.js +0 -14
- package/dist/components/Drawer.d.ts +0 -396
- package/dist/components/Drawer.js +0 -10
- package/dist/components/Dropdown.d.ts +0 -241
- package/dist/components/Dropdown.js +0 -13
- package/dist/components/DropdownItem.d.mts +0 -73
- package/dist/components/DropdownItem.d.ts +0 -73
- package/dist/components/DropdownItem.js +0 -10
- package/dist/components/DropdownItem.mjs +0 -10
- package/dist/components/DropdownMenu.d.mts +0 -8
- package/dist/components/DropdownMenu.d.ts +0 -8
- package/dist/components/DropdownMenu.js +0 -11
- package/dist/components/DropdownMenu.mjs +0 -11
- package/dist/components/Empty.d.ts +0 -64
- package/dist/components/Empty.js +0 -8
- package/dist/components/FileManager.d.ts +0 -171
- package/dist/components/FileManager.js +0 -9
- package/dist/components/FloatButton.d.ts +0 -156
- package/dist/components/FloatButton.js +0 -10
- package/dist/components/Footer.d.ts +0 -63
- package/dist/components/Footer.js +0 -8
- package/dist/components/Form.d.ts +0 -291
- package/dist/components/Form.js +0 -11
- package/dist/components/FormItem.d.ts +0 -152
- package/dist/components/FormItem.js +0 -10
- package/dist/components/FormWizard.d.ts +0 -206
- package/dist/components/FormWizard.js +0 -12
- package/dist/components/FunnelChart.d.ts +0 -221
- package/dist/components/FunnelChart.js +0 -13
- package/dist/components/Gantt.d.ts +0 -231
- package/dist/components/Gantt.js +0 -9
- package/dist/components/GaugeChart.d.ts +0 -182
- package/dist/components/GaugeChart.js +0 -9
- package/dist/components/Header.d.ts +0 -82
- package/dist/components/Header.js +0 -8
- package/dist/components/HeatmapChart.d.ts +0 -233
- package/dist/components/HeatmapChart.js +0 -11
- package/dist/components/Icon.d.ts +0 -68
- package/dist/components/Icon.js +0 -8
- package/dist/components/Image.d.ts +0 -129
- package/dist/components/Image.js +0 -13
- package/dist/components/ImageAnnotation.d.ts +0 -179
- package/dist/components/ImageAnnotation.js +0 -8
- package/dist/components/ImageCropper.d.ts +0 -105
- package/dist/components/ImageCropper.js +0 -8
- package/dist/components/ImageGroup.d.ts +0 -30
- package/dist/components/ImageGroup.js +0 -11
- package/dist/components/ImagePreview.d.ts +0 -97
- package/dist/components/ImagePreview.js +0 -8
- package/dist/components/ImageViewer.d.ts +0 -136
- package/dist/components/ImageViewer.js +0 -9
- package/dist/components/InfiniteScroll.d.ts +0 -116
- package/dist/components/InfiniteScroll.js +0 -9
- package/dist/components/Input.d.ts +0 -268
- package/dist/components/Input.js +0 -8
- package/dist/components/InputGroup.d.ts +0 -77
- package/dist/components/InputGroup.js +0 -12
- package/dist/components/InputNumber.d.ts +0 -170
- package/dist/components/InputNumber.js +0 -8
- package/dist/components/Kanban.d.ts +0 -180
- package/dist/components/Kanban.js +0 -10
- package/dist/components/Layout.d.ts +0 -45
- package/dist/components/Layout.js +0 -8
- package/dist/components/LineChart.d.ts +0 -434
- package/dist/components/LineChart.js +0 -15
- package/dist/components/Link.d.ts +0 -89
- package/dist/components/Link.js +0 -8
- package/dist/components/List.d.ts +0 -342
- package/dist/components/List.js +0 -10
- package/dist/components/Loading.d.ts +0 -133
- package/dist/components/Loading.js +0 -10
- package/dist/components/MarkdownEditor.d.ts +0 -149
- package/dist/components/MarkdownEditor.js +0 -8
- package/dist/components/Mentions.d.ts +0 -88
- package/dist/components/Mentions.js +0 -8
- package/dist/components/Menu.d.ts +0 -554
- package/dist/components/Menu.js +0 -17
- package/dist/components/MenuItem.d.mts +0 -8
- package/dist/components/MenuItem.d.ts +0 -8
- package/dist/components/MenuItem.js +0 -11
- package/dist/components/MenuItem.mjs +0 -11
- package/dist/components/MenuItemGroup.d.mts +0 -8
- package/dist/components/MenuItemGroup.d.ts +0 -8
- package/dist/components/MenuItemGroup.js +0 -11
- package/dist/components/MenuItemGroup.mjs +0 -11
- package/dist/components/Message.js +0 -11
- package/dist/components/Modal.d.ts +0 -381
- package/dist/components/Modal.js +0 -12
- package/dist/components/Notification.js +0 -11
- package/dist/components/NotificationCenter.d.ts +0 -213
- package/dist/components/NotificationCenter.js +0 -18
- package/dist/components/NumberKeyboard.d.ts +0 -154
- package/dist/components/NumberKeyboard.js +0 -9
- package/dist/components/OrgChart.d.ts +0 -195
- package/dist/components/OrgChart.js +0 -9
- package/dist/components/Pagination.d.ts +0 -392
- package/dist/components/Pagination.js +0 -9
- package/dist/components/PieChart.d.ts +0 -296
- package/dist/components/PieChart.js +0 -13
- package/dist/components/Popconfirm.d.ts +0 -173
- package/dist/components/Popconfirm.js +0 -10
- package/dist/components/Popover.d.ts +0 -138
- package/dist/components/Popover.js +0 -10
- package/dist/components/PrintLayout.d.ts +0 -97
- package/dist/components/PrintLayout.js +0 -10
- package/dist/components/Progress.d.ts +0 -150
- package/dist/components/Progress.js +0 -8
- package/dist/components/QRCode.d.ts +0 -95
- package/dist/components/QRCode.js +0 -9
- package/dist/components/RadarChart.d.ts +0 -454
- package/dist/components/RadarChart.js +0 -13
- package/dist/components/Radio.d.ts +0 -143
- package/dist/components/Radio.js +0 -9
- package/dist/components/RadioGroup.d.ts +0 -135
- package/dist/components/RadioGroup.js +0 -10
- package/dist/components/Rate.d.ts +0 -80
- package/dist/components/Rate.js +0 -8
- package/dist/components/Resizable.d.ts +0 -138
- package/dist/components/Resizable.js +0 -8
- package/dist/components/Result.d.ts +0 -64
- package/dist/components/Result.js +0 -9
- package/dist/components/RichTextEditor.d.ts +0 -123
- package/dist/components/RichTextEditor.js +0 -8
- package/dist/components/Row.d.ts +0 -90
- package/dist/components/Row.js +0 -8
- package/dist/components/ScatterChart.d.ts +0 -391
- package/dist/components/ScatterChart.js +0 -15
- package/dist/components/ScrollSpy.d.ts +0 -125
- package/dist/components/ScrollSpy.js +0 -8
- package/dist/components/Segmented.d.ts +0 -70
- package/dist/components/Segmented.js +0 -8
- package/dist/components/Select.d.ts +0 -292
- package/dist/components/Select.js +0 -9
- package/dist/components/Sidebar.d.ts +0 -101
- package/dist/components/Sidebar.js +0 -8
- package/dist/components/Signature.d.ts +0 -163
- package/dist/components/Signature.js +0 -9
- package/dist/components/Skeleton.d.ts +0 -96
- package/dist/components/Skeleton.js +0 -8
- package/dist/components/Slider.d.ts +0 -228
- package/dist/components/Slider.js +0 -8
- package/dist/components/Space.d.ts +0 -49
- package/dist/components/Space.js +0 -8
- package/dist/components/Splitter.d.ts +0 -99
- package/dist/components/Splitter.js +0 -8
- package/dist/components/Spotlight.d.ts +0 -206
- package/dist/components/Spotlight.js +0 -10
- package/dist/components/Statistic.d.ts +0 -103
- package/dist/components/Statistic.js +0 -8
- package/dist/components/Stepper.d.ts +0 -79
- package/dist/components/Stepper.js +0 -8
- package/dist/components/Steps.d.ts +0 -298
- package/dist/components/Steps.js +0 -12
- package/dist/components/StepsItem.d.mts +0 -8
- package/dist/components/StepsItem.d.ts +0 -8
- package/dist/components/StepsItem.js +0 -10
- package/dist/components/StepsItem.mjs +0 -10
- package/dist/components/SubMenu.d.mts +0 -8
- package/dist/components/SubMenu.d.ts +0 -8
- package/dist/components/SubMenu.js +0 -11
- package/dist/components/SubMenu.mjs +0 -11
- package/dist/components/SunburstChart.d.ts +0 -212
- package/dist/components/SunburstChart.js +0 -13
- package/dist/components/Switch.d.ts +0 -94
- package/dist/components/Switch.js +0 -8
- package/dist/components/TabPane.d.mts +0 -8
- package/dist/components/TabPane.d.ts +0 -8
- package/dist/components/TabPane.js +0 -10
- package/dist/components/TabPane.mjs +0 -10
- package/dist/components/Table.d.ts +0 -509
- package/dist/components/Table.js +0 -15
- package/dist/components/Tabs.d.ts +0 -408
- package/dist/components/Tabs.js +0 -12
- package/dist/components/Tag.d.ts +0 -120
- package/dist/components/Tag.js +0 -8
- package/dist/components/TaskBoard.d.ts +0 -190
- package/dist/components/TaskBoard.js +0 -9
- package/dist/components/Text.d.ts +0 -161
- package/dist/components/Text.js +0 -8
- package/dist/components/Textarea.d.ts +0 -308
- package/dist/components/Textarea.js +0 -8
- package/dist/components/TimePicker.d.ts +0 -372
- package/dist/components/TimePicker.js +0 -10
- package/dist/components/Timeline.d.ts +0 -124
- package/dist/components/Timeline.js +0 -9
- package/dist/components/Tooltip.d.ts +0 -116
- package/dist/components/Tooltip.js +0 -10
- package/dist/components/Tour.d.ts +0 -129
- package/dist/components/Tour.js +0 -10
- package/dist/components/Transfer.d.ts +0 -112
- package/dist/components/Transfer.js +0 -9
- package/dist/components/Tree.d.ts +0 -485
- package/dist/components/Tree.js +0 -10
- package/dist/components/TreeMapChart.d.ts +0 -221
- package/dist/components/TreeMapChart.js +0 -13
- package/dist/components/TreeSelect.d.ts +0 -121
- package/dist/components/TreeSelect.js +0 -9
- package/dist/components/Upload.d.ts +0 -355
- package/dist/components/Upload.js +0 -9
- package/dist/components/VirtualList.d.ts +0 -78
- package/dist/components/VirtualList.js +0 -8
- package/dist/components/VirtualTable.d.ts +0 -166
- package/dist/components/VirtualTable.js +0 -9
- package/dist/components/Watermark.d.ts +0 -144
- package/dist/components/Watermark.js +0 -8
- package/dist/index.d.ts +0 -286
- package/dist/index.js +0 -838
- /package/dist/{chunk-R2HO74FE.mjs → chunk-PE5OA4YG.mjs} +0 -0
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
INPUT_GROUP_INJECTION_KEY
|
|
3
|
+
} from "./chunk-VIIGYWUY.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Textarea.ts
|
|
2
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
defineComponent,
|
|
8
|
+
computed,
|
|
9
|
+
ref,
|
|
10
|
+
watch,
|
|
11
|
+
onMounted,
|
|
12
|
+
nextTick,
|
|
13
|
+
h,
|
|
14
|
+
inject,
|
|
15
|
+
getCurrentInstance
|
|
16
|
+
} from "vue";
|
|
3
17
|
import {
|
|
4
18
|
autoResizeTextarea,
|
|
5
19
|
classNames,
|
|
@@ -147,6 +161,12 @@ var Textarea = defineComponent({
|
|
|
147
161
|
blur: null
|
|
148
162
|
},
|
|
149
163
|
setup(props, { emit, attrs }) {
|
|
164
|
+
const instance = getCurrentInstance();
|
|
165
|
+
const inputGroup = inject(INPUT_GROUP_INJECTION_KEY, null);
|
|
166
|
+
const effectiveSize = computed(() => {
|
|
167
|
+
const hasOwnSize = Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, "size");
|
|
168
|
+
return hasOwnSize ? props.size : inputGroup?.size ?? props.size;
|
|
169
|
+
});
|
|
150
170
|
const textareaRef = ref(null);
|
|
151
171
|
const localValue = ref(props.modelValue ?? "");
|
|
152
172
|
watch(
|
|
@@ -161,7 +181,7 @@ var Textarea = defineComponent({
|
|
|
161
181
|
const textareaClasses = computed(
|
|
162
182
|
() => classNames(
|
|
163
183
|
"block",
|
|
164
|
-
getInputClasses({ size:
|
|
184
|
+
getInputClasses({ size: effectiveSize.value }),
|
|
165
185
|
props.autoResize ? "resize-none" : "resize-y",
|
|
166
186
|
props.className,
|
|
167
187
|
coerceClassValue(attrs.class)
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
getTransferButtonClasses,
|
|
18
18
|
splitTransferData,
|
|
19
19
|
filterTransferItems,
|
|
20
|
+
moveTransferItems,
|
|
20
21
|
getPickerListboxAria,
|
|
21
22
|
getPickerOptionAria,
|
|
22
23
|
coerceClassValue,
|
|
@@ -50,7 +51,15 @@ var Transfer = defineComponent({
|
|
|
50
51
|
props: {
|
|
51
52
|
modelValue: {
|
|
52
53
|
type: Array,
|
|
53
|
-
default:
|
|
54
|
+
default: void 0
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Target keys alias (core/shared name). Used when `modelValue` /
|
|
58
|
+
* `v-model` is not bound; `modelValue` takes priority.
|
|
59
|
+
*/
|
|
60
|
+
targetKeys: {
|
|
61
|
+
type: Array,
|
|
62
|
+
default: void 0
|
|
54
63
|
},
|
|
55
64
|
dataSource: {
|
|
56
65
|
type: Array,
|
|
@@ -64,10 +73,18 @@ var Transfer = defineComponent({
|
|
|
64
73
|
type: Boolean,
|
|
65
74
|
default: false
|
|
66
75
|
},
|
|
67
|
-
|
|
76
|
+
searchable: {
|
|
68
77
|
type: Boolean,
|
|
69
78
|
default: false
|
|
70
79
|
},
|
|
80
|
+
searchValue: {
|
|
81
|
+
type: Object,
|
|
82
|
+
default: void 0
|
|
83
|
+
},
|
|
84
|
+
defaultSearchValue: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: () => ({})
|
|
87
|
+
},
|
|
71
88
|
sourceTitle: {
|
|
72
89
|
type: String,
|
|
73
90
|
default: "Source"
|
|
@@ -76,7 +93,7 @@ var Transfer = defineComponent({
|
|
|
76
93
|
type: String,
|
|
77
94
|
default: "Target"
|
|
78
95
|
},
|
|
79
|
-
|
|
96
|
+
emptyText: {
|
|
80
97
|
type: String,
|
|
81
98
|
default: void 0
|
|
82
99
|
},
|
|
@@ -92,18 +109,28 @@ var Transfer = defineComponent({
|
|
|
92
109
|
default: void 0
|
|
93
110
|
}
|
|
94
111
|
},
|
|
95
|
-
emits: ["update:modelValue", "change"],
|
|
112
|
+
emits: ["update:modelValue", "update:searchValue", "change", "search-change"],
|
|
96
113
|
setup(props, { emit, attrs }) {
|
|
97
114
|
const config = useTigerConfig();
|
|
98
115
|
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
99
116
|
const sourceSelectedKeys = ref(/* @__PURE__ */ new Set());
|
|
100
117
|
const targetSelectedKeys = ref(/* @__PURE__ */ new Set());
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
)
|
|
106
|
-
|
|
118
|
+
const uncontrolledSearchValue = ref({ ...props.defaultSearchValue });
|
|
119
|
+
const resolvedSearchValue = computed(() => props.searchValue ?? uncontrolledSearchValue.value);
|
|
120
|
+
const sourceSearch = computed(() => resolvedSearchValue.value.source ?? "");
|
|
121
|
+
const targetSearch = computed(() => resolvedSearchValue.value.target ?? "");
|
|
122
|
+
function updateSearchValue(panel, value) {
|
|
123
|
+
const next = { ...resolvedSearchValue.value, [panel]: value };
|
|
124
|
+
if (props.searchValue === void 0) {
|
|
125
|
+
uncontrolledSearchValue.value = next;
|
|
126
|
+
}
|
|
127
|
+
emit("update:searchValue", next);
|
|
128
|
+
emit("search-change", next);
|
|
129
|
+
}
|
|
130
|
+
const resolvedTargetKeys = computed(() => props.modelValue ?? props.targetKeys ?? []);
|
|
131
|
+
const computedData = computed(
|
|
132
|
+
() => splitTransferData(props.dataSource, resolvedTargetKeys.value)
|
|
133
|
+
);
|
|
107
134
|
const filteredSourceItems = computed(
|
|
108
135
|
() => filterTransferItems(computedData.value.sourceItems, sourceSearch.value, props.filterOption)
|
|
109
136
|
);
|
|
@@ -146,29 +173,29 @@ var Transfer = defineComponent({
|
|
|
146
173
|
}
|
|
147
174
|
function moveRight() {
|
|
148
175
|
if (!canMoveRight.value) return;
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
176
|
+
const { targetKeys: newTargetKeys, movedKeys } = moveTransferItems(
|
|
177
|
+
"right",
|
|
178
|
+
resolvedTargetKeys.value,
|
|
179
|
+
sourceSelectedKeys.value,
|
|
180
|
+
props.dataSource
|
|
181
|
+
);
|
|
154
182
|
sourceSelectedKeys.value = /* @__PURE__ */ new Set();
|
|
155
183
|
emit("update:modelValue", newTargetKeys);
|
|
156
|
-
emit("change", newTargetKeys, "right",
|
|
184
|
+
emit("change", newTargetKeys, "right", movedKeys);
|
|
157
185
|
}
|
|
158
186
|
function moveLeft() {
|
|
159
187
|
if (!canMoveLeft.value) return;
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
188
|
+
const { targetKeys: newTargetKeys, movedKeys } = moveTransferItems(
|
|
189
|
+
"left",
|
|
190
|
+
resolvedTargetKeys.value,
|
|
191
|
+
targetSelectedKeys.value,
|
|
192
|
+
props.dataSource
|
|
165
193
|
);
|
|
166
|
-
const newTargetKeys = props.modelValue.filter((k) => !keysToRemove.has(k));
|
|
167
194
|
targetSelectedKeys.value = /* @__PURE__ */ new Set();
|
|
168
195
|
emit("update:modelValue", newTargetKeys);
|
|
169
|
-
emit("change", newTargetKeys, "left",
|
|
196
|
+
emit("change", newTargetKeys, "left", movedKeys);
|
|
170
197
|
}
|
|
171
|
-
function renderPanel(title, items, selectedKeys, toggleFn, searchValue,
|
|
198
|
+
function renderPanel(title, items, selectedKeys, toggleFn, searchValue, onSearchInput) {
|
|
172
199
|
return h("div", { class: transferPanelClasses, role: "group", "aria-label": title }, [
|
|
173
200
|
// Header
|
|
174
201
|
h("div", { class: transferPanelHeaderClasses }, [
|
|
@@ -179,7 +206,7 @@ var Transfer = defineComponent({
|
|
|
179
206
|
)
|
|
180
207
|
]),
|
|
181
208
|
// Search
|
|
182
|
-
props.
|
|
209
|
+
props.searchable ? h("input", {
|
|
183
210
|
type: "text",
|
|
184
211
|
class: transferSearchClasses,
|
|
185
212
|
placeholder: resolveLocaleText(
|
|
@@ -188,7 +215,7 @@ var Transfer = defineComponent({
|
|
|
188
215
|
),
|
|
189
216
|
value: searchValue,
|
|
190
217
|
"aria-label": `Search ${title}`,
|
|
191
|
-
onInput: (e) =>
|
|
218
|
+
onInput: (e) => onSearchInput(e.target.value)
|
|
192
219
|
}) : null,
|
|
193
220
|
// Body
|
|
194
221
|
h(
|
|
@@ -226,7 +253,7 @@ var Transfer = defineComponent({
|
|
|
226
253
|
{ class: transferEmptyClasses },
|
|
227
254
|
resolveLocaleText(
|
|
228
255
|
"No data",
|
|
229
|
-
props.
|
|
256
|
+
props.emptyText,
|
|
230
257
|
mergedLocale.value?.common?.emptyText
|
|
231
258
|
)
|
|
232
259
|
)
|
|
@@ -244,9 +271,7 @@ var Transfer = defineComponent({
|
|
|
244
271
|
sourceSelectedKeys.value,
|
|
245
272
|
toggleSourceItem,
|
|
246
273
|
sourceSearch.value,
|
|
247
|
-
(
|
|
248
|
-
sourceSearch.value = val;
|
|
249
|
-
}
|
|
274
|
+
(value) => updateSearchValue("source", value)
|
|
250
275
|
),
|
|
251
276
|
// Operation buttons
|
|
252
277
|
h("div", { class: transferOperationClasses }, [
|
|
@@ -280,9 +305,7 @@ var Transfer = defineComponent({
|
|
|
280
305
|
targetSelectedKeys.value,
|
|
281
306
|
toggleTargetItem,
|
|
282
307
|
targetSearch.value,
|
|
283
|
-
(
|
|
284
|
-
targetSearch.value = val;
|
|
285
|
-
}
|
|
308
|
+
(value) => updateSearchValue("target", value)
|
|
286
309
|
)
|
|
287
310
|
]);
|
|
288
311
|
};
|
|
@@ -24,8 +24,13 @@ import {
|
|
|
24
24
|
taskBoardWipExceededClasses,
|
|
25
25
|
taskBoardAddCardClasses,
|
|
26
26
|
kanbanCardCountClasses,
|
|
27
|
+
kanbanSwimlaneClasses,
|
|
28
|
+
kanbanSwimlaneHeaderClasses,
|
|
29
|
+
kanbanSwimlaneDotClasses,
|
|
30
|
+
kanbanSwimlaneCollapsedClasses,
|
|
27
31
|
kanbanAddColumnClasses,
|
|
28
32
|
filterColumns,
|
|
33
|
+
groupBySwimlane,
|
|
29
34
|
getColumnCardCount,
|
|
30
35
|
moveCard,
|
|
31
36
|
reorderColumns,
|
|
@@ -77,6 +82,14 @@ var TaskBoard = defineComponent({
|
|
|
77
82
|
showCardCount: { type: Boolean, default: false },
|
|
78
83
|
allowAddCard: { type: Boolean, default: false },
|
|
79
84
|
allowAddColumn: { type: Boolean, default: false },
|
|
85
|
+
swimlanes: {
|
|
86
|
+
type: Array,
|
|
87
|
+
default: void 0
|
|
88
|
+
},
|
|
89
|
+
swimlaneField: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: void 0
|
|
92
|
+
},
|
|
80
93
|
locale: {
|
|
81
94
|
type: Object,
|
|
82
95
|
default: void 0
|
|
@@ -296,14 +309,55 @@ var TaskBoard = defineComponent({
|
|
|
296
309
|
},
|
|
297
310
|
headerContent
|
|
298
311
|
);
|
|
299
|
-
const
|
|
312
|
+
const renderCardNode = (card, originalIndex) => {
|
|
300
313
|
const nodes = [];
|
|
301
|
-
if (isDropTarget && dragSnap.value.dropIndex ===
|
|
302
|
-
nodes.push(
|
|
314
|
+
if (isDropTarget && dragSnap.value.dropIndex === originalIndex) {
|
|
315
|
+
nodes.push(
|
|
316
|
+
h("div", { key: `drop-${originalIndex}`, class: taskBoardDropIndicatorClasses })
|
|
317
|
+
);
|
|
303
318
|
}
|
|
304
319
|
nodes.push(renderCard(card, column));
|
|
305
320
|
return nodes;
|
|
306
|
-
}
|
|
321
|
+
};
|
|
322
|
+
const cards = column.cards.length > 0 ? (props.swimlanes && props.swimlaneField ? groupBySwimlane(column.cards, props.swimlanes, props.swimlaneField).map(
|
|
323
|
+
(group) => h(
|
|
324
|
+
"div",
|
|
325
|
+
{
|
|
326
|
+
key: String(group.swimlane.id),
|
|
327
|
+
class: kanbanSwimlaneClasses,
|
|
328
|
+
"data-tiger-kanban-swimlane": "",
|
|
329
|
+
"data-tiger-kanban-swimlane-id": String(group.swimlane.id)
|
|
330
|
+
},
|
|
331
|
+
[
|
|
332
|
+
h("div", { class: kanbanSwimlaneHeaderClasses }, [
|
|
333
|
+
group.swimlane.color ? h("span", {
|
|
334
|
+
class: kanbanSwimlaneDotClasses,
|
|
335
|
+
style: { backgroundColor: group.swimlane.color }
|
|
336
|
+
}) : null,
|
|
337
|
+
h("span", null, group.swimlane.label),
|
|
338
|
+
h(
|
|
339
|
+
"span",
|
|
340
|
+
{
|
|
341
|
+
class: "ml-auto text-xs text-[var(--tiger-text-muted,#6b7280)]"
|
|
342
|
+
},
|
|
343
|
+
String(group.cards.length)
|
|
344
|
+
)
|
|
345
|
+
]),
|
|
346
|
+
h(
|
|
347
|
+
"div",
|
|
348
|
+
{
|
|
349
|
+
class: group.swimlane.collapsed ? kanbanSwimlaneCollapsedClasses : ""
|
|
350
|
+
},
|
|
351
|
+
group.cards.flatMap(
|
|
352
|
+
(card) => renderCardNode(
|
|
353
|
+
card,
|
|
354
|
+
column.cards.findIndex((item) => item.id === card.id)
|
|
355
|
+
)
|
|
356
|
+
)
|
|
357
|
+
)
|
|
358
|
+
]
|
|
359
|
+
)
|
|
360
|
+
) : column.cards.flatMap((card, i) => renderCardNode(card, i))).concat(
|
|
307
361
|
isDropTarget && dragSnap.value.dropIndex >= column.cards.length ? [h("div", { key: "drop-end", class: taskBoardDropIndicatorClasses })] : []
|
|
308
362
|
) : [
|
|
309
363
|
isDropTarget ? h("div", { key: "drop-empty", class: taskBoardDropIndicatorClasses }) : slots["empty-column"] ? slots["empty-column"]({ column }) : h(
|
|
@@ -390,7 +444,7 @@ var TaskBoard = defineComponent({
|
|
|
390
444
|
}
|
|
391
445
|
}
|
|
392
446
|
},
|
|
393
|
-
"+ " + resolveLocaleText(labels.value.
|
|
447
|
+
"+ " + resolveLocaleText(labels.value.addColumnText)
|
|
394
448
|
)
|
|
395
449
|
);
|
|
396
450
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/ImagePreview.ts
|
|
2
6
|
import {
|
|
3
7
|
defineComponent,
|
|
@@ -35,7 +39,9 @@ import {
|
|
|
35
39
|
movePan,
|
|
36
40
|
createPinchState,
|
|
37
41
|
startPinch,
|
|
38
|
-
movePinch
|
|
42
|
+
movePinch,
|
|
43
|
+
getImageViewerLabels,
|
|
44
|
+
mergeTigerLocale
|
|
39
45
|
} from "@expcat/tigercat-core";
|
|
40
46
|
var svgIcon = (d, cls = "w-5 h-5") => h(
|
|
41
47
|
"svg",
|
|
@@ -66,10 +72,19 @@ var ImagePreview = defineComponent({
|
|
|
66
72
|
maskClosable: { type: Boolean, default: true },
|
|
67
73
|
scaleStep: { type: Number, default: 0.5 },
|
|
68
74
|
minScale: { type: Number, default: 0.25 },
|
|
69
|
-
maxScale: { type: Number, default: 5 }
|
|
75
|
+
maxScale: { type: Number, default: 5 },
|
|
76
|
+
touchSwipeable: { type: Boolean, default: true },
|
|
77
|
+
touchSwipeThreshold: { type: Number, default: 48 },
|
|
78
|
+
locale: {
|
|
79
|
+
type: Object,
|
|
80
|
+
default: void 0
|
|
81
|
+
}
|
|
70
82
|
},
|
|
71
83
|
emits: ["update:open", "update:currentIndex", "scale-change"],
|
|
72
84
|
setup(props, { emit }) {
|
|
85
|
+
const config = useTigerConfig();
|
|
86
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
87
|
+
const labels = computed(() => getImageViewerLabels(mergedLocale.value));
|
|
73
88
|
const scale = ref(1);
|
|
74
89
|
const rotation = ref(0);
|
|
75
90
|
const offsetX = ref(0);
|
|
@@ -79,6 +94,13 @@ var ImagePreview = defineComponent({
|
|
|
79
94
|
const dragStart = ref({ x: 0, y: 0, ox: 0, oy: 0 });
|
|
80
95
|
let panState = createPanState();
|
|
81
96
|
let pinchState = createPinchState();
|
|
97
|
+
let touchSwipeState = {
|
|
98
|
+
isTracking: false,
|
|
99
|
+
startX: 0,
|
|
100
|
+
startY: 0,
|
|
101
|
+
currentX: 0,
|
|
102
|
+
currentY: 0
|
|
103
|
+
};
|
|
82
104
|
const resetTransform = () => {
|
|
83
105
|
scale.value = 1;
|
|
84
106
|
rotation.value = 0;
|
|
@@ -86,6 +108,7 @@ var ImagePreview = defineComponent({
|
|
|
86
108
|
offsetY.value = 0;
|
|
87
109
|
panState = createPanState();
|
|
88
110
|
pinchState = createPinchState();
|
|
111
|
+
touchSwipeState.isTracking = false;
|
|
89
112
|
};
|
|
90
113
|
watch(
|
|
91
114
|
() => props.currentIndex,
|
|
@@ -171,16 +194,25 @@ var ImagePreview = defineComponent({
|
|
|
171
194
|
const handleTouchStart = (e) => {
|
|
172
195
|
if (e.touches.length === 2) {
|
|
173
196
|
e.preventDefault();
|
|
197
|
+
touchSwipeState.isTracking = false;
|
|
174
198
|
pinchState = startPinch(e.touches[0], e.touches[1], scale.value);
|
|
175
199
|
return;
|
|
176
200
|
}
|
|
177
201
|
if (e.touches.length === 1) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
202
|
+
const touch = e.touches[0];
|
|
203
|
+
if (props.touchSwipeable && props.images.length > 1 && scale.value === 1) {
|
|
204
|
+
touchSwipeState = {
|
|
205
|
+
isTracking: true,
|
|
206
|
+
startX: touch.clientX,
|
|
207
|
+
startY: touch.clientY,
|
|
208
|
+
currentX: touch.clientX,
|
|
209
|
+
currentY: touch.clientY
|
|
210
|
+
};
|
|
211
|
+
panState = createPanState();
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
touchSwipeState.isTracking = false;
|
|
215
|
+
panState = startPan(touch.clientX, touch.clientY, offsetX.value, offsetY.value);
|
|
184
216
|
}
|
|
185
217
|
};
|
|
186
218
|
const handleTouchMove = (e) => {
|
|
@@ -200,9 +232,36 @@ var ImagePreview = defineComponent({
|
|
|
200
232
|
const next = movePan(panState, e.touches[0].clientX, e.touches[0].clientY);
|
|
201
233
|
offsetX.value = next.translateX;
|
|
202
234
|
offsetY.value = next.translateY;
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (e.touches.length === 1 && touchSwipeState.isTracking) {
|
|
238
|
+
const touch = e.touches[0];
|
|
239
|
+
touchSwipeState.currentX = touch.clientX;
|
|
240
|
+
touchSwipeState.currentY = touch.clientY;
|
|
241
|
+
const deltaX = touch.clientX - touchSwipeState.startX;
|
|
242
|
+
const deltaY = touch.clientY - touchSwipeState.startY;
|
|
243
|
+
if (Math.abs(deltaX) > 8 && Math.abs(deltaX) > Math.abs(deltaY)) {
|
|
244
|
+
e.preventDefault();
|
|
245
|
+
}
|
|
203
246
|
}
|
|
204
247
|
};
|
|
205
|
-
const handleTouchEnd = () => {
|
|
248
|
+
const handleTouchEnd = (e) => {
|
|
249
|
+
if (touchSwipeState.isTracking) {
|
|
250
|
+
const endedTouch = e?.changedTouches?.[0];
|
|
251
|
+
const currentX = endedTouch?.clientX ?? touchSwipeState.currentX;
|
|
252
|
+
const currentY = endedTouch?.clientY ?? touchSwipeState.currentY;
|
|
253
|
+
const deltaX = currentX - touchSwipeState.startX;
|
|
254
|
+
const deltaY = currentY - touchSwipeState.startY;
|
|
255
|
+
const threshold = Math.max(0, props.touchSwipeThreshold);
|
|
256
|
+
if (Math.abs(deltaX) >= threshold && Math.abs(deltaX) > Math.abs(deltaY) * 1.2) {
|
|
257
|
+
if (deltaX < 0) {
|
|
258
|
+
handleNext();
|
|
259
|
+
} else {
|
|
260
|
+
handlePrev();
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
touchSwipeState.isTracking = false;
|
|
206
265
|
panState = createPanState();
|
|
207
266
|
pinchState = createPinchState();
|
|
208
267
|
};
|
|
@@ -262,7 +321,7 @@ var ImagePreview = defineComponent({
|
|
|
262
321
|
{
|
|
263
322
|
class: imagePreviewCloseBtnClasses,
|
|
264
323
|
onClick: handleClose,
|
|
265
|
-
"aria-label":
|
|
324
|
+
"aria-label": labels.value.closePreviewAriaLabel,
|
|
266
325
|
type: "button"
|
|
267
326
|
},
|
|
268
327
|
[svgIcon(previewCloseIconPath)]
|
|
@@ -273,7 +332,7 @@ var ImagePreview = defineComponent({
|
|
|
273
332
|
{
|
|
274
333
|
class: imagePreviewToolbarBtnClasses,
|
|
275
334
|
onClick: handleZoomOut,
|
|
276
|
-
"aria-label":
|
|
335
|
+
"aria-label": labels.value.zoomOutAriaLabel,
|
|
277
336
|
type: "button"
|
|
278
337
|
},
|
|
279
338
|
[svgIcon(zoomOutIconPath)]
|
|
@@ -283,7 +342,7 @@ var ImagePreview = defineComponent({
|
|
|
283
342
|
{
|
|
284
343
|
class: imagePreviewToolbarBtnClasses,
|
|
285
344
|
onClick: handleReset,
|
|
286
|
-
"aria-label":
|
|
345
|
+
"aria-label": labels.value.resetAriaLabel,
|
|
287
346
|
type: "button"
|
|
288
347
|
},
|
|
289
348
|
[svgIcon(resetIconPath)]
|
|
@@ -293,7 +352,7 @@ var ImagePreview = defineComponent({
|
|
|
293
352
|
{
|
|
294
353
|
class: imagePreviewToolbarBtnClasses,
|
|
295
354
|
onClick: handleZoomIn,
|
|
296
|
-
"aria-label":
|
|
355
|
+
"aria-label": labels.value.zoomInAriaLabel,
|
|
297
356
|
type: "button"
|
|
298
357
|
},
|
|
299
358
|
[svgIcon(zoomInIconPath)]
|
|
@@ -303,7 +362,7 @@ var ImagePreview = defineComponent({
|
|
|
303
362
|
{
|
|
304
363
|
class: imagePreviewToolbarBtnClasses,
|
|
305
364
|
onClick: handleRotateLeft,
|
|
306
|
-
"aria-label":
|
|
365
|
+
"aria-label": labels.value.rotateLeftAriaLabel,
|
|
307
366
|
type: "button"
|
|
308
367
|
},
|
|
309
368
|
[svgIcon(imageViewerIcons.rotateLeft)]
|
|
@@ -313,7 +372,7 @@ var ImagePreview = defineComponent({
|
|
|
313
372
|
{
|
|
314
373
|
class: imagePreviewToolbarBtnClasses,
|
|
315
374
|
onClick: handleRotateRight,
|
|
316
|
-
"aria-label":
|
|
375
|
+
"aria-label": labels.value.rotateRightAriaLabel,
|
|
317
376
|
type: "button"
|
|
318
377
|
},
|
|
319
378
|
[svgIcon(imageViewerIcons.rotateRight)]
|
|
@@ -326,7 +385,7 @@ var ImagePreview = defineComponent({
|
|
|
326
385
|
class: classNames(imagePreviewNavBtnClasses, "left-4"),
|
|
327
386
|
onClick: handlePrev,
|
|
328
387
|
disabled: !navState.value.hasPrev,
|
|
329
|
-
"aria-label":
|
|
388
|
+
"aria-label": labels.value.previousImageAriaLabel,
|
|
330
389
|
type: "button"
|
|
331
390
|
},
|
|
332
391
|
[svgIcon(prevIconPath)]
|
|
@@ -337,7 +396,7 @@ var ImagePreview = defineComponent({
|
|
|
337
396
|
class: classNames(imagePreviewNavBtnClasses, "right-4"),
|
|
338
397
|
onClick: handleNext,
|
|
339
398
|
disabled: !navState.value.hasNext,
|
|
340
|
-
"aria-label":
|
|
399
|
+
"aria-label": labels.value.nextImageAriaLabel,
|
|
341
400
|
type: "button"
|
|
342
401
|
},
|
|
343
402
|
[svgIcon(nextIconPath)]
|
|
@@ -349,7 +408,7 @@ var ImagePreview = defineComponent({
|
|
|
349
408
|
style: { zIndex: props.zIndex },
|
|
350
409
|
role: "dialog",
|
|
351
410
|
"aria-modal": "true",
|
|
352
|
-
"aria-label":
|
|
411
|
+
"aria-label": labels.value.previewDialogAriaLabel,
|
|
353
412
|
onClick: handleMaskClick,
|
|
354
413
|
onWheel: handleWheel
|
|
355
414
|
},
|
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
computed,
|
|
5
5
|
inject,
|
|
6
6
|
provide,
|
|
7
|
+
reactive,
|
|
7
8
|
ref,
|
|
9
|
+
watch,
|
|
8
10
|
Fragment,
|
|
9
11
|
h
|
|
10
12
|
} from "vue";
|
|
@@ -202,9 +204,16 @@ var Breadcrumb = defineComponent({
|
|
|
202
204
|
const containerClasses = computed(() => {
|
|
203
205
|
return classNames(breadcrumbContainerClasses, extraContent.value && "w-full", props.className);
|
|
204
206
|
});
|
|
205
|
-
|
|
207
|
+
const breadcrumbContext = reactive({
|
|
206
208
|
separator: props.separator
|
|
207
209
|
});
|
|
210
|
+
watch(
|
|
211
|
+
() => props.separator,
|
|
212
|
+
(separator) => {
|
|
213
|
+
breadcrumbContext.separator = separator;
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
provide(BreadcrumbContextKey, breadcrumbContext);
|
|
208
217
|
const renderItems = () => {
|
|
209
218
|
const rawChildren = slots.default?.() || [];
|
|
210
219
|
const items = [];
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/ImageCropper.ts
|
|
2
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
defineComponent,
|
|
8
|
+
h,
|
|
9
|
+
ref,
|
|
10
|
+
computed,
|
|
11
|
+
watch,
|
|
12
|
+
onMounted,
|
|
13
|
+
getCurrentInstance
|
|
14
|
+
} from "vue";
|
|
3
15
|
import {
|
|
4
16
|
classNames,
|
|
5
17
|
coerceClassValue,
|
|
@@ -15,12 +27,18 @@ import {
|
|
|
15
27
|
getInitialCropRect,
|
|
16
28
|
resizeCropRect,
|
|
17
29
|
moveCropRect,
|
|
18
|
-
cropCanvas
|
|
30
|
+
cropCanvas,
|
|
31
|
+
getImageEditorLabels,
|
|
32
|
+
mergeTigerLocale
|
|
19
33
|
} from "@expcat/tigercat-core";
|
|
20
34
|
var ImageCropper = defineComponent({
|
|
21
35
|
name: "TigerImageCropper",
|
|
22
36
|
inheritAttrs: false,
|
|
23
37
|
props: {
|
|
38
|
+
locale: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default: void 0
|
|
41
|
+
},
|
|
24
42
|
src: { type: String, required: true },
|
|
25
43
|
aspectRatio: { type: Number, default: void 0 },
|
|
26
44
|
minWidth: { type: Number, default: 20 },
|
|
@@ -39,6 +57,11 @@ var ImageCropper = defineComponent({
|
|
|
39
57
|
},
|
|
40
58
|
emits: ["crop-change", "ready"],
|
|
41
59
|
setup(props, { emit, attrs, expose }) {
|
|
60
|
+
const instance = getCurrentInstance();
|
|
61
|
+
const maskId = `tiger-crop-mask-${instance?.uid ?? "0"}`;
|
|
62
|
+
const config = useTigerConfig();
|
|
63
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
64
|
+
const labels = computed(() => getImageEditorLabels(mergedLocale.value));
|
|
42
65
|
const containerRef = ref(null);
|
|
43
66
|
const imageRef = ref(null);
|
|
44
67
|
const imageLoaded = ref(false);
|
|
@@ -270,7 +293,7 @@ var ImageCropper = defineComponent({
|
|
|
270
293
|
minHeight: "200px"
|
|
271
294
|
}),
|
|
272
295
|
role: "img",
|
|
273
|
-
"aria-label":
|
|
296
|
+
"aria-label": labels.value.loadingCropImageAriaLabel
|
|
274
297
|
},
|
|
275
298
|
[
|
|
276
299
|
h("div", {
|
|
@@ -288,7 +311,7 @@ var ImageCropper = defineComponent({
|
|
|
288
311
|
height: `${displayHeight.value}px`
|
|
289
312
|
},
|
|
290
313
|
draggable: false,
|
|
291
|
-
alt:
|
|
314
|
+
alt: labels.value.imageToCropAriaLabel
|
|
292
315
|
});
|
|
293
316
|
const mask = h(
|
|
294
317
|
"svg",
|
|
@@ -300,7 +323,7 @@ var ImageCropper = defineComponent({
|
|
|
300
323
|
},
|
|
301
324
|
[
|
|
302
325
|
h("defs", null, [
|
|
303
|
-
h("mask", { id:
|
|
326
|
+
h("mask", { id: maskId }, [
|
|
304
327
|
h("rect", {
|
|
305
328
|
width: displayWidth.value,
|
|
306
329
|
height: displayHeight.value,
|
|
@@ -319,7 +342,7 @@ var ImageCropper = defineComponent({
|
|
|
319
342
|
width: displayWidth.value,
|
|
320
343
|
height: displayHeight.value,
|
|
321
344
|
fill: "var(--tiger-image-cropper-mask, rgba(0,0,0,0.55))",
|
|
322
|
-
mask:
|
|
345
|
+
mask: `url(#${maskId})`
|
|
323
346
|
})
|
|
324
347
|
]
|
|
325
348
|
);
|
|
@@ -342,7 +365,7 @@ var ImageCropper = defineComponent({
|
|
|
342
365
|
},
|
|
343
366
|
role: "button",
|
|
344
367
|
tabindex: 0,
|
|
345
|
-
"aria-label":
|
|
368
|
+
"aria-label": labels.value.moveCropAreaAriaLabel,
|
|
346
369
|
onMousedown: (e) => handleMouseDown(e, "move"),
|
|
347
370
|
onTouchstart: (e) => handleTouchStart(e, "move"),
|
|
348
371
|
onKeydown: handleMoveKeyDown
|
|
@@ -412,7 +435,7 @@ var ImageCropper = defineComponent({
|
|
|
412
435
|
style: pos,
|
|
413
436
|
role: "button",
|
|
414
437
|
tabindex: 0,
|
|
415
|
-
"aria-label":
|
|
438
|
+
"aria-label": labels.value.resizeCropAreaAriaLabel.replace("{handle}", handle),
|
|
416
439
|
onMousedown: (e) => handleMouseDown(e, "resize", handle),
|
|
417
440
|
onTouchstart: (e) => handleTouchStart(e, "resize", handle),
|
|
418
441
|
onKeydown: (e) => handleResizeKeyDown(e, handle)
|
|
@@ -429,7 +452,7 @@ var ImageCropper = defineComponent({
|
|
|
429
452
|
height: `${displayHeight.value}px`
|
|
430
453
|
}),
|
|
431
454
|
role: "application",
|
|
432
|
-
"aria-label":
|
|
455
|
+
"aria-label": labels.value.cropperDialogAriaLabel,
|
|
433
456
|
"aria-roledescription": "image cropper"
|
|
434
457
|
},
|
|
435
458
|
[img, mask, selection, dragArea, ...guideLines, ...handles]
|