@expcat/tigercat-vue 1.5.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-MF7BKYGN.mjs → chunk-2QWGVJW6.mjs} +29 -15
- package/dist/{chunk-WWB7VKKH.mjs → chunk-36WSYHJU.mjs} +53 -7
- package/dist/chunk-4RKBXGHQ.mjs +52 -0
- package/dist/{chunk-ALFEFDVG.mjs → chunk-4ZKSTL5P.mjs} +47 -21
- package/dist/{chunk-YZP4K6KI.mjs → chunk-6BDDX2R4.mjs} +9 -9
- package/dist/{chunk-Y4V7BOVR.mjs → chunk-6TTICJR4.mjs} +9 -7
- package/dist/{chunk-S4Z77VIB.mjs → chunk-AZXS4QWC.mjs} +8 -8
- package/dist/{chunk-RD2NFAB6.mjs → chunk-BGO2ILHM.mjs} +9 -9
- package/dist/{chunk-6CS3EEQU.mjs → chunk-BNNTDSLJ.mjs} +83 -0
- package/dist/{chunk-5CHHWMES.mjs → chunk-DOVBKVTB.mjs} +1 -1
- package/dist/chunk-ESBUNMIG.mjs +49 -0
- package/dist/{chunk-KJ6VISRW.mjs → chunk-EUSODI5E.mjs} +1 -1
- package/dist/{chunk-LHOSPU6V.mjs → chunk-FDKJOVXG.mjs} +9 -18
- package/dist/{chunk-LHZ5MRFQ.mjs → chunk-FHJ3R57L.mjs} +9 -9
- package/dist/{chunk-PMN2MQ26.mjs → chunk-FIVVKBBF.mjs} +3 -3
- package/dist/{chunk-JGW7R7AZ.mjs → chunk-G7MOTNJO.mjs} +8 -8
- package/dist/{chunk-WSUCJHJX.mjs → chunk-GAEO66NY.mjs} +2 -2
- package/dist/chunk-GMIKUE67.mjs +201 -0
- package/dist/chunk-GTFAC625.mjs +120 -0
- package/dist/{chunk-LSWTZHBV.mjs → chunk-HGXD57QM.mjs} +23 -2
- package/dist/{chunk-X43QLJ5E.mjs → chunk-IGT4QB7O.mjs} +4 -4
- package/dist/{chunk-3VFZB5ZK.mjs → chunk-IQNZ4UEA.mjs} +10 -13
- package/dist/{chunk-QH3YF5B6.mjs → chunk-JMVALNIO.mjs} +52 -25
- package/dist/{chunk-UTGFGMZT.mjs → chunk-JPCMI3A4.mjs} +8 -8
- package/dist/{chunk-SMCOBLF6.mjs → chunk-KBJANUZZ.mjs} +6 -6
- package/dist/{chunk-M4EP4OVR.mjs → chunk-KE6RGD4Y.mjs} +2 -1
- package/dist/chunk-KIPTVKU2.mjs +104 -0
- package/dist/{chunk-LGDJDBE3.mjs → chunk-KR3D2JOA.mjs} +4 -7
- package/dist/{chunk-VYBRLIKF.mjs → chunk-MJRFB6ZA.mjs} +8 -8
- package/dist/{chunk-UKMOWUYH.mjs → chunk-MYKKKVGK.mjs} +2 -2
- package/dist/{chunk-3AF4VRCD.mjs → chunk-N3C6YI7I.mjs} +8 -8
- package/dist/{chunk-57VPT3MN.mjs → chunk-NYWIBDO6.mjs} +8 -8
- package/dist/{chunk-PJX2DHO5.mjs → chunk-O4F75KHL.mjs} +8 -8
- package/dist/{chunk-CIDINFA2.mjs → chunk-ODDPVS27.mjs} +35 -10
- package/dist/{chunk-64EZRIJL.mjs → chunk-QD5ZCKPR.mjs} +1 -1
- package/dist/{chunk-4RK5BDGR.mjs → chunk-RAO7ZJWR.mjs} +9 -9
- package/dist/{chunk-G2LB4QCL.mjs → chunk-SPFL55TF.mjs} +4 -4
- package/dist/{chunk-6OQLZCQK.mjs → chunk-SYRRMZT2.mjs} +1 -1
- package/dist/{chunk-IJL7YYT7.mjs → chunk-TQDN67YN.mjs} +29 -3
- package/dist/{chunk-SC3WTLKG.mjs → chunk-UD4FNMJN.mjs} +22 -5
- package/dist/{chunk-CVFXUYH2.mjs → chunk-VFUBOKGT.mjs} +4 -4
- package/dist/{chunk-XMGNMKWW.mjs → chunk-VMYV5EWI.mjs} +4 -3
- package/dist/{chunk-OSPHI5TV.mjs → chunk-W7X5ZHJ3.mjs} +4 -9
- package/dist/{chunk-TRN5PL5D.mjs → chunk-WYJ5WOT2.mjs} +28 -12
- package/dist/chunk-Y2HO4IBQ.mjs +150 -0
- package/dist/{chunk-XJ5VGC5V.mjs → chunk-YJSWHGAR.mjs} +24 -10
- package/dist/{chunk-N2QGYEOQ.mjs → chunk-YSKG5FSX.mjs} +1 -1
- package/dist/{chunk-BRGQXIKA.mjs → chunk-Z4NJJ7NI.mjs} +9 -9
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/AreaChart.d.mts +6 -6
- package/dist/components/AreaChart.mjs +5 -5
- package/dist/components/AutoComplete.d.mts +28 -9
- package/dist/components/AutoComplete.mjs +1 -1
- package/dist/components/BackTop.d.mts +28 -1
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/BarChart.mjs +5 -5
- package/dist/components/Breadcrumb.d.mts +1 -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/ChartTooltip.d.mts +4 -4
- package/dist/components/ChartTooltip.mjs +1 -1
- package/dist/components/ChatWindow.mjs +1 -1
- 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/ColorPicker.d.mts +4 -4
- package/dist/components/ColorSwatch.d.mts +4 -4
- package/dist/components/CommentThread.mjs +1 -1
- package/dist/components/CropUpload.mjs +2 -2
- package/dist/components/DataTableWithToolbar.d.mts +1 -11
- package/dist/components/DataTableWithToolbar.mjs +8 -8
- package/dist/components/DatePicker.d.mts +7 -7
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/Descriptions.d.mts +7 -7
- package/dist/components/DonutChart.d.mts +11 -11
- package/dist/components/DonutChart.mjs +5 -5
- 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/FloatButton.d.mts +31 -1
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.d.mts +8 -8
- package/dist/components/FormItem.d.mts +4 -4
- package/dist/components/FunnelChart.mjs +4 -4
- package/dist/components/GaugeChart.mjs +2 -2
- package/dist/components/HeatmapChart.mjs +3 -3
- package/dist/components/Image.mjs +3 -3
- package/dist/components/ImageGroup.d.mts +2 -2
- package/dist/components/ImageGroup.mjs +2 -2
- package/dist/components/ImagePreview.d.mts +22 -12
- package/dist/components/ImagePreview.mjs +1 -1
- package/dist/components/ImageViewer.d.mts +6 -16
- package/dist/components/ImageViewer.mjs +1 -1
- package/dist/components/Input.d.mts +5 -5
- package/dist/components/InputGroup.d.mts +6 -6
- package/dist/components/InputNumber.d.mts +5 -5
- package/dist/components/LineChart.mjs +5 -5
- package/dist/components/List.d.mts +7 -7
- package/dist/components/Menu.d.mts +5 -5
- package/dist/components/Message.d.mts +4 -39
- package/dist/components/Message.mjs +139 -4
- package/dist/components/{Message.d.ts → MessageContainer.d.mts} +5 -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/{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/PieChart.mjs +4 -4
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/RadarChart.mjs +4 -4
- 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/ScatterChart.mjs +5 -5
- package/dist/components/Segmented.d.mts +4 -4
- package/dist/components/Select.d.mts +37 -36
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Slider.d.mts +7 -7
- 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/SunburstChart.mjs +4 -4
- 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 +5 -5
- package/dist/components/Textarea.d.mts +7 -7
- package/dist/components/TimePicker.d.mts +9 -9
- package/dist/components/TimePicker.mjs +1 -1
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Transfer.d.mts +31 -11
- package/dist/components/Transfer.mjs +1 -1
- package/dist/components/TreeMapChart.mjs +4 -4
- package/dist/components/TreeSelect.d.mts +32 -12
- package/dist/components/TreeSelect.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +24 -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 +11 -144
- package/dist/index.mjs +2155 -826
- package/package.json +743 -13
- package/dist/chunk-2DC3BMED.js +0 -92
- package/dist/chunk-2FYVPPTD.js +0 -315
- package/dist/chunk-2RCBEBBR.js +0 -376
- package/dist/chunk-2VOZFFW6.js +0 -138
- package/dist/chunk-37LDNXLO.js +0 -243
- package/dist/chunk-3QV2D54H.js +0 -207
- package/dist/chunk-43BLH7DE.js +0 -166
- package/dist/chunk-54VVFMYI.js +0 -69
- package/dist/chunk-55BSMMUN.js +0 -202
- package/dist/chunk-57MJTNDL.js +0 -128
- package/dist/chunk-5FTM7R3P.js +0 -142
- package/dist/chunk-5PVDNJA5.js +0 -103
- package/dist/chunk-5PXTMXXS.js +0 -159
- package/dist/chunk-5UOAWXOQ.js +0 -243
- package/dist/chunk-67RSRWWY.js +0 -451
- package/dist/chunk-6WFFP4K2.mjs +0 -325
- package/dist/chunk-72DDCIVL.js +0 -68
- package/dist/chunk-75TB3YIJ.js +0 -124
- 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-7J7JIIHX.js +0 -230
- package/dist/chunk-7KYGVEHF.js +0 -364
- package/dist/chunk-7RMBEWN2.js +0 -360
- package/dist/chunk-A7FN3S4I.js +0 -150
- package/dist/chunk-AF7JZUTA.js +0 -755
- package/dist/chunk-ANQRW442.js +0 -468
- package/dist/chunk-APBWQGXW.js +0 -250
- package/dist/chunk-AWXSJNNP.js +0 -267
- package/dist/chunk-AYQER5UD.js +0 -96
- package/dist/chunk-BNUR72YP.js +0 -142
- package/dist/chunk-BPJOIFND.js +0 -305
- package/dist/chunk-BV6XWFRF.js +0 -360
- package/dist/chunk-BYNTPLGC.js +0 -79
- package/dist/chunk-BZ56UKUK.js +0 -483
- package/dist/chunk-CFJST2X2.js +0 -808
- package/dist/chunk-CGZFRSI5.mjs +0 -98
- package/dist/chunk-CTAQ5WEN.js +0 -95
- package/dist/chunk-CWNEDREV.js +0 -165
- package/dist/chunk-D43IFX7J.js +0 -196
- package/dist/chunk-D6Y3KVJF.js +0 -211
- package/dist/chunk-DE5WMG6P.js +0 -291
- package/dist/chunk-DYSLYJ2W.js +0 -92
- package/dist/chunk-E36I27WK.js +0 -362
- package/dist/chunk-EG7XX6U4.js +0 -98
- 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-GBYNY77G.js +0 -342
- package/dist/chunk-GJ5HJOQP.js +0 -859
- package/dist/chunk-GV3LRZSR.js +0 -257
- package/dist/chunk-H2XEJHGR.js +0 -327
- package/dist/chunk-H7GAWNOW.js +0 -787
- package/dist/chunk-HA5QZ76M.js +0 -143
- package/dist/chunk-HBFFINAI.js +0 -58
- package/dist/chunk-HI45DI7S.js +0 -404
- package/dist/chunk-IUPNDTUF.js +0 -119
- package/dist/chunk-IXTYS3EK.js +0 -140
- package/dist/chunk-J77GQQEC.js +0 -318
- package/dist/chunk-JCMGBKS6.js +0 -59
- package/dist/chunk-JCPTFBLY.js +0 -112
- package/dist/chunk-JICPYKCT.js +0 -297
- package/dist/chunk-JKZ5ZRDG.js +0 -136
- package/dist/chunk-JMRR4KDB.js +0 -736
- package/dist/chunk-JTVFVAM3.js +0 -47
- package/dist/chunk-K2DJDJZR.js +0 -139
- package/dist/chunk-K2NJI5MW.js +0 -67
- package/dist/chunk-K3CIXMN4.js +0 -212
- package/dist/chunk-K6DYTMBE.js +0 -111
- package/dist/chunk-KGDRA475.js +0 -119
- package/dist/chunk-KLOUOXNA.js +0 -111
- package/dist/chunk-KTNT2JHB.js +0 -351
- package/dist/chunk-LKRT27JW.js +0 -149
- package/dist/chunk-LODEICSN.js +0 -253
- package/dist/chunk-LPHDX3UU.js +0 -279
- package/dist/chunk-LUBUJUSH.js +0 -45
- package/dist/chunk-MNVMGJUF.js +0 -341
- package/dist/chunk-MPVL53GP.js +0 -472
- package/dist/chunk-MQ23PX3S.js +0 -218
- package/dist/chunk-MSKAWM7K.js +0 -73
- package/dist/chunk-NCLUMDZB.js +0 -100
- package/dist/chunk-NQYE64IF.js +0 -130
- package/dist/chunk-OOMZBTHW.js +0 -328
- package/dist/chunk-OQBWITHA.js +0 -387
- package/dist/chunk-OQOJI5Q7.js +0 -158
- package/dist/chunk-OVXDO6KJ.js +0 -426
- package/dist/chunk-OXIODAJS.js +0 -192
- package/dist/chunk-PFWRFHSB.js +0 -164
- package/dist/chunk-PFZFPN7M.js +0 -383
- package/dist/chunk-PH6ERFC7.js +0 -545
- package/dist/chunk-QKJATAJP.js +0 -788
- package/dist/chunk-QOMWROWE.js +0 -136
- package/dist/chunk-QY6PYAJA.js +0 -194
- package/dist/chunk-RAUERIPS.js +0 -100
- package/dist/chunk-RBWJSHKR.js +0 -233
- package/dist/chunk-SIVMTPDY.js +0 -741
- package/dist/chunk-SJSZHQWX.js +0 -486
- package/dist/chunk-SOSHYDIX.js +0 -547
- package/dist/chunk-SWOQMMOT.js +0 -60
- package/dist/chunk-T4DF24UV.js +0 -114
- package/dist/chunk-TCB3WFYM.js +0 -374
- package/dist/chunk-TGHB5XST.js +0 -91
- package/dist/chunk-TLXEFLPA.js +0 -39
- package/dist/chunk-TNKULOHK.js +0 -476
- package/dist/chunk-TOD67L2E.js +0 -182
- package/dist/chunk-TXMPLBWW.js +0 -213
- package/dist/chunk-TYYJPEWG.js +0 -119
- package/dist/chunk-U36NBQWP.js +0 -192
- package/dist/chunk-U5TSCS34.js +0 -527
- 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-UKR3IJF3.js +0 -374
- package/dist/chunk-VDKUKZS2.js +0 -1866
- package/dist/chunk-VH2GDZBH.js +0 -284
- package/dist/chunk-VJ72Y54M.js +0 -241
- package/dist/chunk-VJJ7RAC6.mjs +0 -257
- package/dist/chunk-VQXDF6CB.js +0 -192
- package/dist/chunk-VUGFSHU2.js +0 -164
- package/dist/chunk-VXRFE72I.js +0 -852
- package/dist/chunk-W34IV4EC.js +0 -401
- package/dist/chunk-WF7KVMBY.js +0 -380
- package/dist/chunk-X73BZFBH.js +0 -238
- package/dist/chunk-X7PQRYUS.js +0 -697
- package/dist/chunk-XH4ZZ6KJ.js +0 -427
- package/dist/chunk-XMCYKHT4.js +0 -307
- package/dist/chunk-XSJKSUED.js +0 -139
- 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-YI25YL5W.js +0 -283
- package/dist/chunk-YLMQZR6F.js +0 -430
- package/dist/chunk-YMUYN4IR.js +0 -434
- package/dist/chunk-YTE45DNC.js +0 -571
- package/dist/chunk-YVSINGGE.js +0 -320
- package/dist/chunk-ZHSXICH7.js +0 -264
- package/dist/chunk-ZMGNQKXL.js +0 -233
- package/dist/chunk-ZNVQ2OFX.js +0 -46
- 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 -116
- package/dist/components/Badge.js +0 -9
- 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 -78
- package/dist/components/Calendar.js +0 -9
- 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 -18
- 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 -225
- package/dist/components/CommentThread.js +0 -17
- 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 -107
- package/dist/components/CropUpload.js +0 -14
- package/dist/components/DataTableWithToolbar.d.ts +0 -588
- package/dist/components/DataTableWithToolbar.js +0 -23
- package/dist/components/DatePicker.d.ts +0 -333
- package/dist/components/DatePicker.js +0 -10
- 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 -332
- 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 -74
- package/dist/components/Empty.js +0 -9
- 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 -197
- package/dist/components/GaugeChart.js +0 -10
- 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 -14
- package/dist/components/ImageAnnotation.d.ts +0 -189
- package/dist/components/ImageAnnotation.js +0 -9
- package/dist/components/ImageCropper.d.ts +0 -116
- package/dist/components/ImageCropper.js +0 -9
- package/dist/components/ImageGroup.d.ts +0 -30
- package/dist/components/ImageGroup.js +0 -12
- package/dist/components/ImagePreview.d.ts +0 -108
- package/dist/components/ImagePreview.js +0 -9
- package/dist/components/ImageViewer.d.ts +0 -137
- 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 -9
- package/dist/components/InputGroup.d.ts +0 -77
- package/dist/components/InputGroup.js +0 -12
- package/dist/components/InputNumber.d.ts +0 -190
- package/dist/components/InputNumber.js +0 -9
- package/dist/components/Kanban.d.ts +0 -200
- 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 -305
- 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 -410
- package/dist/components/Tabs.js +0 -12
- package/dist/components/Tag.d.ts +0 -130
- package/dist/components/Tag.js +0 -9
- package/dist/components/TaskBoard.d.ts +0 -210
- 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 -9
- 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 -127
- package/dist/components/Tour.js +0 -11
- package/dist/components/Transfer.d.ts +0 -129
- 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 -89
- package/dist/components/VirtualList.js +0 -8
- package/dist/components/VirtualTable.d.ts +0 -196
- 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-2HRJGOAV.mjs → chunk-B47QLHVW.mjs} +3 -3
- /package/dist/{chunk-R2HO74FE.mjs → chunk-PE5OA4YG.mjs} +0 -0
|
@@ -73,10 +73,18 @@ var Transfer = defineComponent({
|
|
|
73
73
|
type: Boolean,
|
|
74
74
|
default: false
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
searchable: {
|
|
77
77
|
type: Boolean,
|
|
78
78
|
default: false
|
|
79
79
|
},
|
|
80
|
+
searchValue: {
|
|
81
|
+
type: Object,
|
|
82
|
+
default: void 0
|
|
83
|
+
},
|
|
84
|
+
defaultSearchValue: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: () => ({})
|
|
87
|
+
},
|
|
80
88
|
sourceTitle: {
|
|
81
89
|
type: String,
|
|
82
90
|
default: "Source"
|
|
@@ -85,7 +93,7 @@ var Transfer = defineComponent({
|
|
|
85
93
|
type: String,
|
|
86
94
|
default: "Target"
|
|
87
95
|
},
|
|
88
|
-
|
|
96
|
+
emptyText: {
|
|
89
97
|
type: String,
|
|
90
98
|
default: void 0
|
|
91
99
|
},
|
|
@@ -101,14 +109,24 @@ var Transfer = defineComponent({
|
|
|
101
109
|
default: void 0
|
|
102
110
|
}
|
|
103
111
|
},
|
|
104
|
-
emits: ["update:modelValue", "change"],
|
|
112
|
+
emits: ["update:modelValue", "update:searchValue", "change", "search-change"],
|
|
105
113
|
setup(props, { emit, attrs }) {
|
|
106
114
|
const config = useTigerConfig();
|
|
107
115
|
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
108
116
|
const sourceSelectedKeys = ref(/* @__PURE__ */ new Set());
|
|
109
117
|
const targetSelectedKeys = ref(/* @__PURE__ */ new Set());
|
|
110
|
-
const
|
|
111
|
-
const
|
|
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
|
+
}
|
|
112
130
|
const resolvedTargetKeys = computed(() => props.modelValue ?? props.targetKeys ?? []);
|
|
113
131
|
const computedData = computed(
|
|
114
132
|
() => splitTransferData(props.dataSource, resolvedTargetKeys.value)
|
|
@@ -177,7 +195,7 @@ var Transfer = defineComponent({
|
|
|
177
195
|
emit("update:modelValue", newTargetKeys);
|
|
178
196
|
emit("change", newTargetKeys, "left", movedKeys);
|
|
179
197
|
}
|
|
180
|
-
function renderPanel(title, items, selectedKeys, toggleFn, searchValue,
|
|
198
|
+
function renderPanel(title, items, selectedKeys, toggleFn, searchValue, onSearchInput) {
|
|
181
199
|
return h("div", { class: transferPanelClasses, role: "group", "aria-label": title }, [
|
|
182
200
|
// Header
|
|
183
201
|
h("div", { class: transferPanelHeaderClasses }, [
|
|
@@ -188,7 +206,7 @@ var Transfer = defineComponent({
|
|
|
188
206
|
)
|
|
189
207
|
]),
|
|
190
208
|
// Search
|
|
191
|
-
props.
|
|
209
|
+
props.searchable ? h("input", {
|
|
192
210
|
type: "text",
|
|
193
211
|
class: transferSearchClasses,
|
|
194
212
|
placeholder: resolveLocaleText(
|
|
@@ -197,7 +215,7 @@ var Transfer = defineComponent({
|
|
|
197
215
|
),
|
|
198
216
|
value: searchValue,
|
|
199
217
|
"aria-label": `Search ${title}`,
|
|
200
|
-
onInput: (e) =>
|
|
218
|
+
onInput: (e) => onSearchInput(e.target.value)
|
|
201
219
|
}) : null,
|
|
202
220
|
// Body
|
|
203
221
|
h(
|
|
@@ -235,7 +253,7 @@ var Transfer = defineComponent({
|
|
|
235
253
|
{ class: transferEmptyClasses },
|
|
236
254
|
resolveLocaleText(
|
|
237
255
|
"No data",
|
|
238
|
-
props.
|
|
256
|
+
props.emptyText,
|
|
239
257
|
mergedLocale.value?.common?.emptyText
|
|
240
258
|
)
|
|
241
259
|
)
|
|
@@ -253,9 +271,7 @@ var Transfer = defineComponent({
|
|
|
253
271
|
sourceSelectedKeys.value,
|
|
254
272
|
toggleSourceItem,
|
|
255
273
|
sourceSearch.value,
|
|
256
|
-
(
|
|
257
|
-
sourceSearch.value = val;
|
|
258
|
-
}
|
|
274
|
+
(value) => updateSearchValue("source", value)
|
|
259
275
|
),
|
|
260
276
|
// Operation buttons
|
|
261
277
|
h("div", { class: transferOperationClasses }, [
|
|
@@ -289,9 +305,7 @@ var Transfer = defineComponent({
|
|
|
289
305
|
targetSelectedKeys.value,
|
|
290
306
|
toggleTargetItem,
|
|
291
307
|
targetSearch.value,
|
|
292
|
-
(
|
|
293
|
-
targetSearch.value = val;
|
|
294
|
-
}
|
|
308
|
+
(value) => updateSearchValue("target", value)
|
|
295
309
|
)
|
|
296
310
|
]);
|
|
297
311
|
};
|
|
@@ -73,6 +73,8 @@ var ImagePreview = defineComponent({
|
|
|
73
73
|
scaleStep: { type: Number, default: 0.5 },
|
|
74
74
|
minScale: { type: Number, default: 0.25 },
|
|
75
75
|
maxScale: { type: Number, default: 5 },
|
|
76
|
+
touchSwipeable: { type: Boolean, default: true },
|
|
77
|
+
touchSwipeThreshold: { type: Number, default: 48 },
|
|
76
78
|
locale: {
|
|
77
79
|
type: Object,
|
|
78
80
|
default: void 0
|
|
@@ -92,6 +94,13 @@ var ImagePreview = defineComponent({
|
|
|
92
94
|
const dragStart = ref({ x: 0, y: 0, ox: 0, oy: 0 });
|
|
93
95
|
let panState = createPanState();
|
|
94
96
|
let pinchState = createPinchState();
|
|
97
|
+
let touchSwipeState = {
|
|
98
|
+
isTracking: false,
|
|
99
|
+
startX: 0,
|
|
100
|
+
startY: 0,
|
|
101
|
+
currentX: 0,
|
|
102
|
+
currentY: 0
|
|
103
|
+
};
|
|
95
104
|
const resetTransform = () => {
|
|
96
105
|
scale.value = 1;
|
|
97
106
|
rotation.value = 0;
|
|
@@ -99,6 +108,7 @@ var ImagePreview = defineComponent({
|
|
|
99
108
|
offsetY.value = 0;
|
|
100
109
|
panState = createPanState();
|
|
101
110
|
pinchState = createPinchState();
|
|
111
|
+
touchSwipeState.isTracking = false;
|
|
102
112
|
};
|
|
103
113
|
watch(
|
|
104
114
|
() => props.currentIndex,
|
|
@@ -184,16 +194,25 @@ var ImagePreview = defineComponent({
|
|
|
184
194
|
const handleTouchStart = (e) => {
|
|
185
195
|
if (e.touches.length === 2) {
|
|
186
196
|
e.preventDefault();
|
|
197
|
+
touchSwipeState.isTracking = false;
|
|
187
198
|
pinchState = startPinch(e.touches[0], e.touches[1], scale.value);
|
|
188
199
|
return;
|
|
189
200
|
}
|
|
190
201
|
if (e.touches.length === 1) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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);
|
|
197
216
|
}
|
|
198
217
|
};
|
|
199
218
|
const handleTouchMove = (e) => {
|
|
@@ -213,9 +232,36 @@ var ImagePreview = defineComponent({
|
|
|
213
232
|
const next = movePan(panState, e.touches[0].clientX, e.touches[0].clientY);
|
|
214
233
|
offsetX.value = next.translateX;
|
|
215
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
|
+
}
|
|
216
246
|
}
|
|
217
247
|
};
|
|
218
|
-
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;
|
|
219
265
|
panState = createPanState();
|
|
220
266
|
pinchState = createPinchState();
|
|
221
267
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// src/components/MessageRoot.ts
|
|
2
|
+
var messageModulePromise = null;
|
|
3
|
+
function loadMessageModule() {
|
|
4
|
+
messageModulePromise ??= import("./components/Message.mjs");
|
|
5
|
+
return messageModulePromise;
|
|
6
|
+
}
|
|
7
|
+
function forwardMessage(method, options) {
|
|
8
|
+
let closeMessage = null;
|
|
9
|
+
let requestedClose = false;
|
|
10
|
+
void loadMessageModule().then(({ Message: Message2 }) => {
|
|
11
|
+
const close = Message2[method](options);
|
|
12
|
+
if (requestedClose) {
|
|
13
|
+
close();
|
|
14
|
+
} else {
|
|
15
|
+
closeMessage = close;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
return () => {
|
|
19
|
+
if (closeMessage) {
|
|
20
|
+
closeMessage();
|
|
21
|
+
closeMessage = null;
|
|
22
|
+
} else {
|
|
23
|
+
requestedClose = true;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
var Message = {
|
|
28
|
+
success(options) {
|
|
29
|
+
return forwardMessage("success", options);
|
|
30
|
+
},
|
|
31
|
+
warning(options) {
|
|
32
|
+
return forwardMessage("warning", options);
|
|
33
|
+
},
|
|
34
|
+
error(options) {
|
|
35
|
+
return forwardMessage("error", options);
|
|
36
|
+
},
|
|
37
|
+
info(options) {
|
|
38
|
+
return forwardMessage("info", options);
|
|
39
|
+
},
|
|
40
|
+
loading(options) {
|
|
41
|
+
return forwardMessage("loading", options);
|
|
42
|
+
},
|
|
43
|
+
clear() {
|
|
44
|
+
void loadMessageModule().then(({ Message: Message2 }) => {
|
|
45
|
+
Message2.clear();
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
Message
|
|
52
|
+
};
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
getTableFixedCellClasses,
|
|
19
19
|
getTableFixedHeaderCellClasses,
|
|
20
20
|
getTableColgroup,
|
|
21
|
+
getNextTableSelectAllKeys,
|
|
21
22
|
tableBaseClasses,
|
|
22
23
|
virtualTableHeaderClasses,
|
|
23
24
|
virtualTableHeaderCellClasses,
|
|
@@ -33,7 +34,7 @@ var VirtualTable = defineComponent({
|
|
|
33
34
|
name: "TigerVirtualTable",
|
|
34
35
|
inheritAttrs: false,
|
|
35
36
|
props: {
|
|
36
|
-
|
|
37
|
+
dataSource: {
|
|
37
38
|
type: Array,
|
|
38
39
|
default: () => []
|
|
39
40
|
},
|
|
@@ -41,8 +42,8 @@ var VirtualTable = defineComponent({
|
|
|
41
42
|
type: Array,
|
|
42
43
|
default: () => []
|
|
43
44
|
},
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
virtualItemHeight: { type: Number, default: 48 },
|
|
46
|
+
virtualHeight: { type: Number, default: 400 },
|
|
46
47
|
width: { type: [Number, String], default: "auto" },
|
|
47
48
|
overscan: { type: Number, default: 5 },
|
|
48
49
|
stickyHeader: { type: Boolean, default: true },
|
|
@@ -57,33 +58,58 @@ var VirtualTable = defineComponent({
|
|
|
57
58
|
},
|
|
58
59
|
loading: { type: Boolean, default: false },
|
|
59
60
|
emptyText: { type: String, default: void 0 },
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
default: () => []
|
|
61
|
+
rowSelection: {
|
|
62
|
+
type: Object,
|
|
63
|
+
default: void 0
|
|
64
64
|
},
|
|
65
65
|
striped: { type: Boolean, default: false },
|
|
66
66
|
bordered: { type: Boolean, default: false },
|
|
67
67
|
className: { type: String, default: void 0 },
|
|
68
68
|
locale: { type: Object, default: void 0 }
|
|
69
69
|
},
|
|
70
|
-
emits: ["row-click", "
|
|
70
|
+
emits: ["row-click", "selection-change", "update:rowSelection"],
|
|
71
71
|
setup(props, { emit, attrs }) {
|
|
72
72
|
const config = useTigerConfig();
|
|
73
73
|
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
74
74
|
const containerRef = ref(null);
|
|
75
75
|
const scrollTop = ref(0);
|
|
76
76
|
const scrollLeft = ref(0);
|
|
77
|
+
const resolvedData = computed(() => props.dataSource ?? []);
|
|
78
|
+
const uncontrolledSelectedKeys = ref(
|
|
79
|
+
props.rowSelection?.defaultSelectedRowKeys ?? props.rowSelection?.selectedRowKeys ?? []
|
|
80
|
+
);
|
|
81
|
+
const isSelectionControlled = computed(() => props.rowSelection?.selectedRowKeys !== void 0);
|
|
82
|
+
const selectedKeys = computed(
|
|
83
|
+
() => isSelectionControlled.value ? props.rowSelection?.selectedRowKeys ?? [] : uncontrolledSelectedKeys.value
|
|
84
|
+
);
|
|
85
|
+
const hasSelection = computed(() => !!props.rowSelection);
|
|
86
|
+
function commitSelection(nextKeys) {
|
|
87
|
+
if (!isSelectionControlled.value) {
|
|
88
|
+
uncontrolledSelectedKeys.value = nextKeys;
|
|
89
|
+
}
|
|
90
|
+
emit("selection-change", nextKeys);
|
|
91
|
+
emit("update:rowSelection", { ...props.rowSelection, selectedRowKeys: nextKeys });
|
|
92
|
+
}
|
|
93
|
+
function toggleRowSelection(key, row) {
|
|
94
|
+
if (!props.rowSelection || props.rowSelection.getCheckboxProps?.(row)?.disabled) return;
|
|
95
|
+
if (props.rowSelection.type === "radio") {
|
|
96
|
+
commitSelection([key]);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
commitSelection(
|
|
100
|
+
getNextTableSelectAllKeys(selectedKeys.value, [key], !selectedSet.value.has(key))
|
|
101
|
+
);
|
|
102
|
+
}
|
|
77
103
|
const range = computed(
|
|
78
104
|
() => calculateVirtualRange(
|
|
79
105
|
scrollTop.value,
|
|
80
|
-
props.
|
|
81
|
-
|
|
82
|
-
props.
|
|
106
|
+
props.virtualHeight,
|
|
107
|
+
resolvedData.value.length,
|
|
108
|
+
props.virtualItemHeight,
|
|
83
109
|
props.overscan
|
|
84
110
|
)
|
|
85
111
|
);
|
|
86
|
-
const visibleData = computed(() =>
|
|
112
|
+
const visibleData = computed(() => resolvedData.value.slice(range.value.start, range.value.end));
|
|
87
113
|
function onScroll() {
|
|
88
114
|
if (containerRef.value) {
|
|
89
115
|
scrollTop.value = containerRef.value.scrollTop;
|
|
@@ -102,7 +128,7 @@ var VirtualTable = defineComponent({
|
|
|
102
128
|
coerceClassValue(attrs.class)
|
|
103
129
|
)
|
|
104
130
|
);
|
|
105
|
-
const selectedSet = computed(() => new Set(
|
|
131
|
+
const selectedSet = computed(() => new Set(selectedKeys.value));
|
|
106
132
|
const fixedInfo = computed(() => getVirtualTableFixedInfo(props.columns));
|
|
107
133
|
return () => {
|
|
108
134
|
const fi = fixedInfo.value;
|
|
@@ -158,16 +184,16 @@ var VirtualTable = defineComponent({
|
|
|
158
184
|
);
|
|
159
185
|
const rows = visibleData.value.map((row, localIdx) => {
|
|
160
186
|
const globalIdx = range.value.start + localIdx;
|
|
161
|
-
const key = getVirtualRowKey(
|
|
187
|
+
const key = props.rowSelection?.getRowKey ? props.rowSelection.getRowKey(row) : getVirtualRowKey(
|
|
162
188
|
row,
|
|
163
189
|
globalIdx,
|
|
164
190
|
props.rowKey
|
|
165
191
|
);
|
|
166
192
|
const isSelected = selectedSet.value.has(key);
|
|
167
|
-
const isInteractive =
|
|
193
|
+
const isInteractive = hasSelection.value || typeof attrs.onRowClick === "function";
|
|
168
194
|
const activate = () => {
|
|
169
195
|
emit("row-click", row, globalIdx);
|
|
170
|
-
if (
|
|
196
|
+
if (hasSelection.value) toggleRowSelection(key, row);
|
|
171
197
|
};
|
|
172
198
|
const cells = visibleColumns.map(
|
|
173
199
|
(col, colIdx) => h(
|
|
@@ -218,7 +244,7 @@ var VirtualTable = defineComponent({
|
|
|
218
244
|
),
|
|
219
245
|
// header occupies aria-rowindex 1
|
|
220
246
|
"aria-rowindex": globalIdx + 2,
|
|
221
|
-
"aria-selected":
|
|
247
|
+
"aria-selected": hasSelection.value ? isSelected : void 0,
|
|
222
248
|
tabindex: isInteractive ? 0 : void 0,
|
|
223
249
|
// onClick stays attached so `row-click` always fires for consumers
|
|
224
250
|
// that listen for it; keyboard activation is added when interactive.
|
|
@@ -238,7 +264,7 @@ var VirtualTable = defineComponent({
|
|
|
238
264
|
style: { height: `${range.value.offsetTop}px` },
|
|
239
265
|
"aria-hidden": true
|
|
240
266
|
});
|
|
241
|
-
const bottomHeight = range.value.totalHeight - range.value.end * props.
|
|
267
|
+
const bottomHeight = range.value.totalHeight - range.value.end * props.virtualItemHeight;
|
|
242
268
|
const bottomSpacer = bottomHeight > 0 ? h("tr", {
|
|
243
269
|
key: "__bottom-spacer",
|
|
244
270
|
style: { height: `${bottomHeight}px` },
|
|
@@ -261,7 +287,7 @@ var VirtualTable = defineComponent({
|
|
|
261
287
|
thead,
|
|
262
288
|
tbody
|
|
263
289
|
]);
|
|
264
|
-
const emptyEl =
|
|
290
|
+
const emptyEl = resolvedData.value.length === 0 && !props.loading ? h(
|
|
265
291
|
"div",
|
|
266
292
|
{ class: virtualTableEmptyClasses },
|
|
267
293
|
resolveLocaleText("No data", props.emptyText, mergedLocale.value?.common?.emptyText)
|
|
@@ -277,12 +303,12 @@ var VirtualTable = defineComponent({
|
|
|
277
303
|
ref: containerRef,
|
|
278
304
|
class: containerClasses.value,
|
|
279
305
|
style: {
|
|
280
|
-
height: `${props.
|
|
306
|
+
height: `${props.virtualHeight}px`,
|
|
281
307
|
...props.width !== "auto" ? { width: `${props.width}px` } : {}
|
|
282
308
|
},
|
|
283
309
|
onScroll,
|
|
284
310
|
role: "grid",
|
|
285
|
-
"aria-rowcount":
|
|
311
|
+
"aria-rowcount": resolvedData.value.length
|
|
286
312
|
},
|
|
287
313
|
[table, emptyEl, loadingEl]
|
|
288
314
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RadioGroupKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6TTICJR4.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/Radio.ts
|
|
6
6
|
import {
|
|
@@ -54,14 +54,14 @@ var Radio = defineComponent({
|
|
|
54
54
|
/**
|
|
55
55
|
* Whether the radio is checked (controlled mode)
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
modelValue: {
|
|
58
58
|
type: Boolean
|
|
59
59
|
},
|
|
60
60
|
/**
|
|
61
61
|
* Default checked state (uncontrolled mode)
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
defaultValue: {
|
|
65
65
|
type: Boolean,
|
|
66
66
|
default: false
|
|
67
67
|
},
|
|
@@ -84,18 +84,18 @@ var Radio = defineComponent({
|
|
|
84
84
|
*/
|
|
85
85
|
change: (value) => typeof value === "string" || typeof value === "number",
|
|
86
86
|
/**
|
|
87
|
-
* Emitted when checked state changes (for v-model
|
|
87
|
+
* Emitted when checked state changes (for v-model)
|
|
88
88
|
*/
|
|
89
|
-
"update:
|
|
89
|
+
"update:modelValue": (value) => typeof value === "boolean"
|
|
90
90
|
},
|
|
91
91
|
setup(props, { slots, emit, attrs }) {
|
|
92
92
|
const instance = getCurrentInstance();
|
|
93
93
|
const groupContextRef = inject(RadioGroupKey, null);
|
|
94
94
|
const groupContext = computed(() => groupContextRef?.value);
|
|
95
|
-
const internalChecked = ref(props.
|
|
95
|
+
const internalChecked = ref(props.defaultValue);
|
|
96
96
|
const isCheckedControlled = computed(() => {
|
|
97
97
|
const rawProps = instance?.vnode.props;
|
|
98
|
-
return !!rawProps && Object.prototype.hasOwnProperty.call(rawProps, "
|
|
98
|
+
return !!rawProps && Object.prototype.hasOwnProperty.call(rawProps, "modelValue");
|
|
99
99
|
});
|
|
100
100
|
const isInGroup = computed(() => !!groupContext.value);
|
|
101
101
|
const actualSize = computed(() => props.size || groupContext.value?.size || "md");
|
|
@@ -105,7 +105,7 @@ var Radio = defineComponent({
|
|
|
105
105
|
});
|
|
106
106
|
const actualName = computed(() => props.name || groupContext.value?.name);
|
|
107
107
|
const isChecked = computed(() => {
|
|
108
|
-
if (isCheckedControlled.value) return props.
|
|
108
|
+
if (isCheckedControlled.value) return props.modelValue;
|
|
109
109
|
if (isInGroup.value) return groupContext.value?.value === props.value;
|
|
110
110
|
return internalChecked.value;
|
|
111
111
|
});
|
|
@@ -141,7 +141,7 @@ var Radio = defineComponent({
|
|
|
141
141
|
if (!isCheckedControlled.value && !isInGroup.value && newChecked) {
|
|
142
142
|
internalChecked.value = true;
|
|
143
143
|
}
|
|
144
|
-
emit("update:
|
|
144
|
+
emit("update:modelValue", newChecked);
|
|
145
145
|
emit("change", props.value);
|
|
146
146
|
if (newChecked && groupContext.value) groupContext.value.onChange(props.value);
|
|
147
147
|
};
|
|
@@ -18,9 +18,9 @@ var RadioGroup = defineComponent({
|
|
|
18
18
|
inheritAttrs: false,
|
|
19
19
|
props: {
|
|
20
20
|
/**
|
|
21
|
-
* Selected value (for v-model
|
|
21
|
+
* Selected value (for v-model)
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
modelValue: {
|
|
24
24
|
type: [String, Number]
|
|
25
25
|
},
|
|
26
26
|
/**
|
|
@@ -66,9 +66,9 @@ var RadioGroup = defineComponent({
|
|
|
66
66
|
},
|
|
67
67
|
emits: {
|
|
68
68
|
/**
|
|
69
|
-
* Emitted when value changes (for v-model
|
|
69
|
+
* Emitted when value changes (for v-model)
|
|
70
70
|
*/
|
|
71
|
-
"update:
|
|
71
|
+
"update:modelValue": (value) => typeof value === "string" || typeof value === "number",
|
|
72
72
|
/**
|
|
73
73
|
* Emitted when value changes
|
|
74
74
|
*/
|
|
@@ -79,15 +79,17 @@ var RadioGroup = defineComponent({
|
|
|
79
79
|
const internalValue = ref(props.defaultValue);
|
|
80
80
|
const isControlled = computed(() => {
|
|
81
81
|
const rawProps = instance?.vnode.props;
|
|
82
|
-
return !!rawProps && Object.prototype.hasOwnProperty.call(rawProps, "
|
|
82
|
+
return !!rawProps && Object.prototype.hasOwnProperty.call(rawProps, "modelValue");
|
|
83
83
|
});
|
|
84
|
-
const currentValue = computed(
|
|
84
|
+
const currentValue = computed(
|
|
85
|
+
() => isControlled.value ? props.modelValue : internalValue.value
|
|
86
|
+
);
|
|
85
87
|
const handleChange = (value) => {
|
|
86
88
|
if (props.disabled) return;
|
|
87
89
|
if (!isControlled.value) {
|
|
88
90
|
internalValue.value = value;
|
|
89
91
|
}
|
|
90
|
-
emit("update:
|
|
92
|
+
emit("update:modelValue", value);
|
|
91
93
|
emit("change", value);
|
|
92
94
|
};
|
|
93
95
|
const generatedName = `tiger-radio-group-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useChartInteraction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PE5OA4YG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ChartTooltip
|
|
6
|
+
} from "./chunk-SPFL55TF.mjs";
|
|
7
|
+
import {
|
|
8
|
+
ChartCanvas
|
|
9
|
+
} from "./chunk-W5RZPTFD.mjs";
|
|
4
10
|
import {
|
|
5
11
|
ChartLegend
|
|
6
12
|
} from "./chunk-HLPSHCXO.mjs";
|
|
7
13
|
import {
|
|
8
14
|
ChartSeries
|
|
9
15
|
} from "./chunk-2ZUEXCVJ.mjs";
|
|
10
|
-
import {
|
|
11
|
-
ChartTooltip
|
|
12
|
-
} from "./chunk-G2LB4QCL.mjs";
|
|
13
|
-
import {
|
|
14
|
-
ChartCanvas
|
|
15
|
-
} from "./chunk-W5RZPTFD.mjs";
|
|
16
16
|
|
|
17
17
|
// src/components/PieChart.ts
|
|
18
18
|
import { defineComponent, computed, h, useId } from "vue";
|
|
@@ -394,7 +394,7 @@ var PieChart = defineComponent({
|
|
|
394
394
|
);
|
|
395
395
|
const tooltip = props.showTooltip && props.hoverable ? h(ChartTooltip, {
|
|
396
396
|
content: tooltipContent.value,
|
|
397
|
-
|
|
397
|
+
open: resolvedHoveredIndex.value !== null && tooltipContent.value !== "",
|
|
398
398
|
x: tooltipPosition.value.x,
|
|
399
399
|
y: tooltipPosition.value.y
|
|
400
400
|
}) : null;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useChartInteraction
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
ChartLegend
|
|
6
|
-
} from "./chunk-HLPSHCXO.mjs";
|
|
7
|
-
import {
|
|
8
|
-
ChartSeries
|
|
9
|
-
} from "./chunk-2ZUEXCVJ.mjs";
|
|
3
|
+
} from "./chunk-PE5OA4YG.mjs";
|
|
10
4
|
import {
|
|
11
5
|
ChartTooltip
|
|
12
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SPFL55TF.mjs";
|
|
13
7
|
import {
|
|
14
8
|
ChartAxis
|
|
15
9
|
} from "./chunk-ZWVA7HT3.mjs";
|
|
@@ -19,6 +13,12 @@ import {
|
|
|
19
13
|
import {
|
|
20
14
|
ChartGrid
|
|
21
15
|
} from "./chunk-MI6TL3CQ.mjs";
|
|
16
|
+
import {
|
|
17
|
+
ChartLegend
|
|
18
|
+
} from "./chunk-HLPSHCXO.mjs";
|
|
19
|
+
import {
|
|
20
|
+
ChartSeries
|
|
21
|
+
} from "./chunk-2ZUEXCVJ.mjs";
|
|
22
22
|
|
|
23
23
|
// src/components/ScatterChart.ts
|
|
24
24
|
import { defineComponent, computed, h, onMounted, ref, useId } from "vue";
|
|
@@ -332,7 +332,7 @@ var ScatterChart = defineComponent({
|
|
|
332
332
|
);
|
|
333
333
|
const tooltip = props.showTooltip && props.hoverable ? h(ChartTooltip, {
|
|
334
334
|
content: tooltipContent.value,
|
|
335
|
-
|
|
335
|
+
open: resolvedHoveredIndex.value !== null && tooltipContent.value !== "",
|
|
336
336
|
x: tooltipPosition.value.x,
|
|
337
337
|
y: tooltipPosition.value.y
|
|
338
338
|
}) : null;
|