@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
package/dist/chunk-QKJATAJP.js
DELETED
|
@@ -1,788 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunkVDKUKZS2js = require('./chunk-VDKUKZS2.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkCFJST2X2js = require('./chunk-CFJST2X2.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkXV6IYXAPjs = require('./chunk-XV6IYXAP.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkH2XEJHGRjs = require('./chunk-H2XEJHGR.js');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _chunkPFWRFHSBjs = require('./chunk-PFWRFHSB.js');
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _chunkIXTYS3EKjs = require('./chunk-IXTYS3EK.js');
|
|
22
|
-
|
|
23
|
-
// src/components/DataTableWithToolbar.ts
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var _vue = require('vue');
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
var _tigercatcore = require('@expcat/tigercat-core');
|
|
42
|
-
var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
43
|
-
name: "TigerDataTableWithToolbar",
|
|
44
|
-
inheritAttrs: false,
|
|
45
|
-
props: {
|
|
46
|
-
columns: {
|
|
47
|
-
type: Array,
|
|
48
|
-
required: true
|
|
49
|
-
},
|
|
50
|
-
columnLockable: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: false
|
|
53
|
-
},
|
|
54
|
-
dataSource: {
|
|
55
|
-
type: Array,
|
|
56
|
-
default: () => []
|
|
57
|
-
},
|
|
58
|
-
hiddenColumnKeys: {
|
|
59
|
-
type: Array,
|
|
60
|
-
default: void 0
|
|
61
|
-
},
|
|
62
|
-
defaultHiddenColumnKeys: {
|
|
63
|
-
type: Array,
|
|
64
|
-
default: void 0
|
|
65
|
-
},
|
|
66
|
-
sort: {
|
|
67
|
-
type: Object,
|
|
68
|
-
default: void 0
|
|
69
|
-
},
|
|
70
|
-
defaultSort: {
|
|
71
|
-
type: Object,
|
|
72
|
-
default: void 0
|
|
73
|
-
},
|
|
74
|
-
filters: {
|
|
75
|
-
type: Object,
|
|
76
|
-
default: void 0
|
|
77
|
-
},
|
|
78
|
-
defaultFilters: {
|
|
79
|
-
type: Object,
|
|
80
|
-
default: void 0
|
|
81
|
-
},
|
|
82
|
-
size: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: "md"
|
|
85
|
-
},
|
|
86
|
-
bordered: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: false
|
|
89
|
-
},
|
|
90
|
-
striped: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: false
|
|
93
|
-
},
|
|
94
|
-
hoverable: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default: true
|
|
97
|
-
},
|
|
98
|
-
loading: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: false
|
|
101
|
-
},
|
|
102
|
-
locale: {
|
|
103
|
-
type: [Object, Function],
|
|
104
|
-
default: void 0
|
|
105
|
-
},
|
|
106
|
-
labels: {
|
|
107
|
-
type: Object,
|
|
108
|
-
default: void 0
|
|
109
|
-
},
|
|
110
|
-
emptyText: {
|
|
111
|
-
type: String,
|
|
112
|
-
default: void 0
|
|
113
|
-
},
|
|
114
|
-
rowSelection: {
|
|
115
|
-
type: Object,
|
|
116
|
-
default: void 0
|
|
117
|
-
},
|
|
118
|
-
rowKey: {
|
|
119
|
-
type: [String, Function],
|
|
120
|
-
default: "id"
|
|
121
|
-
},
|
|
122
|
-
rowClassName: {
|
|
123
|
-
type: [String, Function],
|
|
124
|
-
default: void 0
|
|
125
|
-
},
|
|
126
|
-
stickyHeader: {
|
|
127
|
-
type: Boolean,
|
|
128
|
-
default: false
|
|
129
|
-
},
|
|
130
|
-
maxHeight: {
|
|
131
|
-
type: [String, Number],
|
|
132
|
-
default: void 0
|
|
133
|
-
},
|
|
134
|
-
responsiveMode: {
|
|
135
|
-
type: String,
|
|
136
|
-
default: "scroll"
|
|
137
|
-
},
|
|
138
|
-
cardBreakpoint: {
|
|
139
|
-
type: String,
|
|
140
|
-
default: "sm"
|
|
141
|
-
},
|
|
142
|
-
cardLayout: {
|
|
143
|
-
type: Array,
|
|
144
|
-
default: void 0
|
|
145
|
-
},
|
|
146
|
-
cardClassName: {
|
|
147
|
-
type: [String, Function],
|
|
148
|
-
default: void 0
|
|
149
|
-
},
|
|
150
|
-
renderCard: {
|
|
151
|
-
type: Function,
|
|
152
|
-
default: void 0
|
|
153
|
-
},
|
|
154
|
-
cardSelectionPosition: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: void 0
|
|
157
|
-
},
|
|
158
|
-
cardPadding: {
|
|
159
|
-
type: [String, Boolean],
|
|
160
|
-
default: void 0
|
|
161
|
-
},
|
|
162
|
-
cardFieldGap: {
|
|
163
|
-
type: String,
|
|
164
|
-
default: void 0
|
|
165
|
-
},
|
|
166
|
-
expandable: {
|
|
167
|
-
type: Object,
|
|
168
|
-
default: void 0
|
|
169
|
-
},
|
|
170
|
-
virtual: {
|
|
171
|
-
type: Boolean,
|
|
172
|
-
default: void 0
|
|
173
|
-
},
|
|
174
|
-
autoVirtual: {
|
|
175
|
-
type: Boolean,
|
|
176
|
-
default: void 0
|
|
177
|
-
},
|
|
178
|
-
virtualHeight: {
|
|
179
|
-
type: Number,
|
|
180
|
-
default: void 0
|
|
181
|
-
},
|
|
182
|
-
virtualItemHeight: {
|
|
183
|
-
type: Number,
|
|
184
|
-
default: void 0
|
|
185
|
-
},
|
|
186
|
-
autoVirtualThreshold: {
|
|
187
|
-
type: Number,
|
|
188
|
-
default: void 0
|
|
189
|
-
},
|
|
190
|
-
virtualThreshold: {
|
|
191
|
-
type: Number,
|
|
192
|
-
default: void 0
|
|
193
|
-
},
|
|
194
|
-
editable: {
|
|
195
|
-
type: Boolean,
|
|
196
|
-
default: void 0
|
|
197
|
-
},
|
|
198
|
-
editableCells: {
|
|
199
|
-
type: Object,
|
|
200
|
-
default: void 0
|
|
201
|
-
},
|
|
202
|
-
filterMode: {
|
|
203
|
-
type: String,
|
|
204
|
-
default: void 0
|
|
205
|
-
},
|
|
206
|
-
advancedFilterRules: {
|
|
207
|
-
type: Array,
|
|
208
|
-
default: void 0
|
|
209
|
-
},
|
|
210
|
-
columnDraggable: {
|
|
211
|
-
type: Boolean,
|
|
212
|
-
default: void 0
|
|
213
|
-
},
|
|
214
|
-
rowDraggable: {
|
|
215
|
-
type: Boolean,
|
|
216
|
-
default: void 0
|
|
217
|
-
},
|
|
218
|
-
summaryRow: {
|
|
219
|
-
type: Object,
|
|
220
|
-
default: void 0
|
|
221
|
-
},
|
|
222
|
-
groupBy: {
|
|
223
|
-
type: String,
|
|
224
|
-
default: void 0
|
|
225
|
-
},
|
|
226
|
-
exportable: {
|
|
227
|
-
type: Boolean,
|
|
228
|
-
default: void 0
|
|
229
|
-
},
|
|
230
|
-
exportFormat: {
|
|
231
|
-
type: String,
|
|
232
|
-
default: void 0
|
|
233
|
-
},
|
|
234
|
-
exportFilename: {
|
|
235
|
-
type: String,
|
|
236
|
-
default: void 0
|
|
237
|
-
},
|
|
238
|
-
toolbar: {
|
|
239
|
-
type: Object,
|
|
240
|
-
default: void 0
|
|
241
|
-
},
|
|
242
|
-
pagination: {
|
|
243
|
-
type: [Object, Boolean],
|
|
244
|
-
default: false
|
|
245
|
-
},
|
|
246
|
-
tableLayout: {
|
|
247
|
-
type: String,
|
|
248
|
-
default: "auto"
|
|
249
|
-
},
|
|
250
|
-
className: {
|
|
251
|
-
type: String,
|
|
252
|
-
default: void 0
|
|
253
|
-
},
|
|
254
|
-
style: {
|
|
255
|
-
type: Object,
|
|
256
|
-
default: void 0
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
emits: {
|
|
260
|
-
"search-change": (_value) => true,
|
|
261
|
-
search: (_value) => true,
|
|
262
|
-
"filters-change": (_filters) => true,
|
|
263
|
-
"bulk-action": (_action, _keys) => true,
|
|
264
|
-
"selection-change": (_keys) => true,
|
|
265
|
-
"page-change": (_current, _pageSize) => true,
|
|
266
|
-
"page-size-change": (_current, _pageSize) => true,
|
|
267
|
-
"update:hiddenColumnKeys": (_hiddenKeys) => true,
|
|
268
|
-
"hidden-column-keys-change": (_hiddenKeys) => true
|
|
269
|
-
},
|
|
270
|
-
setup(props, { attrs, emit, slots }) {
|
|
271
|
-
const config = _chunkIXTYS3EKjs.useTigerConfig.call(void 0, );
|
|
272
|
-
const internalSearch = _vue.ref.call(void 0, _nullishCoalesce(_optionalChain([props, 'access', _ => _.toolbar, 'optionalAccess', _2 => _2.defaultSearchValue]), () => ( "")));
|
|
273
|
-
const internalHiddenKeys = _vue.ref.call(void 0,
|
|
274
|
-
_nullishCoalesce(_nullishCoalesce(props.defaultHiddenColumnKeys, () => ( props.hiddenColumnKeys)), () => ( []))
|
|
275
|
-
);
|
|
276
|
-
const internalFilters = _vue.ref.call(void 0, {});
|
|
277
|
-
const previousPageSize = _vue.ref.call(void 0,
|
|
278
|
-
props.pagination && typeof props.pagination === "object" ? _nullishCoalesce(_nullishCoalesce(props.pagination.pageSize, () => ( props.pagination.defaultPageSize)), () => ( 10)) : void 0
|
|
279
|
-
);
|
|
280
|
-
const vnodeProps = _nullishCoalesce(_optionalChain([_vue.getCurrentInstance.call(void 0, ), 'optionalAccess', _3 => _3.vnode, 'access', _4 => _4.props]), () => ( {}));
|
|
281
|
-
const hasSearchListener = Boolean(vnodeProps.onSearch || vnodeProps.onSearchChange);
|
|
282
|
-
const resolvedTableLocale = _vue.ref.call(void 0, );
|
|
283
|
-
let tableLocaleResolveId = 0;
|
|
284
|
-
_vue.watch.call(void 0,
|
|
285
|
-
() => props.locale,
|
|
286
|
-
(locale) => {
|
|
287
|
-
const resolveId = ++tableLocaleResolveId;
|
|
288
|
-
if (!locale) {
|
|
289
|
-
resolvedTableLocale.value = void 0;
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
const immediateLocale = _tigercatcore.getImmediateTigerLocale.call(void 0, locale);
|
|
293
|
-
resolvedTableLocale.value = immediateLocale;
|
|
294
|
-
if (!_tigercatcore.isLazyTigerLocale.call(void 0, locale)) return;
|
|
295
|
-
_tigercatcore.resolveTigerLocale.call(void 0, locale).then((nextLocale) => {
|
|
296
|
-
if (resolveId === tableLocaleResolveId) {
|
|
297
|
-
resolvedTableLocale.value = nextLocale;
|
|
298
|
-
}
|
|
299
|
-
}).catch(() => {
|
|
300
|
-
if (resolveId === tableLocaleResolveId) {
|
|
301
|
-
resolvedTableLocale.value = immediateLocale;
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
},
|
|
305
|
-
{ immediate: true }
|
|
306
|
-
);
|
|
307
|
-
const tableLocale = _vue.computed.call(void 0,
|
|
308
|
-
() => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, resolvedTableLocale.value)
|
|
309
|
-
);
|
|
310
|
-
const tableLabels = _vue.computed.call(void 0, () => _tigercatcore.getTableLabels.call(void 0, tableLocale.value, props.labels));
|
|
311
|
-
_vue.watch.call(void 0,
|
|
312
|
-
() => _optionalChain([props, 'access', _5 => _5.toolbar, 'optionalAccess', _6 => _6.searchValue]),
|
|
313
|
-
(nextValue) => {
|
|
314
|
-
if (nextValue !== void 0) {
|
|
315
|
-
internalSearch.value = _nullishCoalesce(nextValue, () => ( ""));
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
);
|
|
319
|
-
_vue.watch.call(void 0,
|
|
320
|
-
() => props.pagination,
|
|
321
|
-
(nextValue) => {
|
|
322
|
-
if (nextValue && typeof nextValue === "object") {
|
|
323
|
-
previousPageSize.value = _nullishCoalesce(_nullishCoalesce(nextValue.pageSize, () => ( nextValue.defaultPageSize)), () => ( 10));
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
);
|
|
327
|
-
_vue.watch.call(void 0,
|
|
328
|
-
() => props.hiddenColumnKeys,
|
|
329
|
-
(nextValue) => {
|
|
330
|
-
if (nextValue !== void 0) {
|
|
331
|
-
internalHiddenKeys.value = nextValue;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
);
|
|
335
|
-
_vue.watch.call(void 0,
|
|
336
|
-
() => _optionalChain([props, 'access', _7 => _7.toolbar, 'optionalAccess', _8 => _8.filters]),
|
|
337
|
-
(filters) => {
|
|
338
|
-
if (!filters) return;
|
|
339
|
-
const next = { ...internalFilters.value };
|
|
340
|
-
filters.forEach((filter) => {
|
|
341
|
-
if (filter.value === void 0 && !(filter.key in next)) {
|
|
342
|
-
next[filter.key] = _nullishCoalesce(filter.defaultValue, () => ( null));
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
internalFilters.value = next;
|
|
346
|
-
},
|
|
347
|
-
{ immediate: true, deep: true }
|
|
348
|
-
);
|
|
349
|
-
const searchValue = _vue.computed.call(void 0,
|
|
350
|
-
() => _optionalChain([props, 'access', _9 => _9.toolbar, 'optionalAccess', _10 => _10.searchValue]) !== void 0 ? props.toolbar.searchValue : internalSearch.value
|
|
351
|
-
);
|
|
352
|
-
const resolvedFilters = _vue.computed.call(void 0, () => {
|
|
353
|
-
const next = { ...internalFilters.value };
|
|
354
|
-
_optionalChain([props, 'access', _11 => _11.toolbar, 'optionalAccess', _12 => _12.filters, 'optionalAccess', _13 => _13.forEach, 'call', _14 => _14((filter) => {
|
|
355
|
-
next[filter.key] = filter.value !== void 0 ? filter.value : _nullishCoalesce(_nullishCoalesce(internalFilters.value[filter.key], () => ( filter.defaultValue)), () => ( null));
|
|
356
|
-
})]);
|
|
357
|
-
return next;
|
|
358
|
-
});
|
|
359
|
-
const hasSearch = _vue.computed.call(void 0, () => {
|
|
360
|
-
if (!props.toolbar) return hasSearchListener;
|
|
361
|
-
return Boolean(
|
|
362
|
-
props.toolbar.searchPlaceholder || props.toolbar.searchValue !== void 0 || props.toolbar.defaultSearchValue !== void 0 || props.toolbar.showSearchButton || hasSearchListener
|
|
363
|
-
);
|
|
364
|
-
});
|
|
365
|
-
const hasFilters = _vue.computed.call(void 0, () => Boolean(_optionalChain([props, 'access', _15 => _15.toolbar, 'optionalAccess', _16 => _16.filters, 'optionalAccess', _17 => _17.length])));
|
|
366
|
-
const hasFiltersExtra = _vue.computed.call(void 0, () => Boolean(slots["filters-extra"]));
|
|
367
|
-
const hasBulkActions = _vue.computed.call(void 0, () => Boolean(_optionalChain([props, 'access', _18 => _18.toolbar, 'optionalAccess', _19 => _19.bulkActions, 'optionalAccess', _20 => _20.length])));
|
|
368
|
-
const hasColumnSettings = _vue.computed.call(void 0, () => Boolean(_optionalChain([props, 'access', _21 => _21.toolbar, 'optionalAccess', _22 => _22.showColumnSettings])));
|
|
369
|
-
const resolvedHiddenKeys = _vue.computed.call(void 0, () => _nullishCoalesce(props.hiddenColumnKeys, () => ( internalHiddenKeys.value)));
|
|
370
|
-
const handleHiddenColumnsChange = (nextHiddenKeys) => {
|
|
371
|
-
if (props.hiddenColumnKeys === void 0) {
|
|
372
|
-
internalHiddenKeys.value = nextHiddenKeys;
|
|
373
|
-
}
|
|
374
|
-
emit("update:hiddenColumnKeys", nextHiddenKeys);
|
|
375
|
-
emit("hidden-column-keys-change", nextHiddenKeys);
|
|
376
|
-
};
|
|
377
|
-
const handleToggleColumnVisibility = (columnKey, visible) => {
|
|
378
|
-
const nextHiddenKeys = visible ? resolvedHiddenKeys.value.filter((key) => key !== columnKey) : [...resolvedHiddenKeys.value, columnKey];
|
|
379
|
-
handleHiddenColumnsChange(nextHiddenKeys);
|
|
380
|
-
};
|
|
381
|
-
const canSearch = _vue.computed.call(void 0, () => Boolean(vnodeProps.onSearch));
|
|
382
|
-
const selectedKeys = _vue.computed.call(void 0,
|
|
383
|
-
() => _nullishCoalesce(_nullishCoalesce(_optionalChain([props, 'access', _23 => _23.toolbar, 'optionalAccess', _24 => _24.selectedKeys]), () => ( _optionalChain([props, 'access', _25 => _25.rowSelection, 'optionalAccess', _26 => _26.selectedRowKeys]))), () => ( []))
|
|
384
|
-
);
|
|
385
|
-
const selectedCount = _vue.computed.call(void 0,
|
|
386
|
-
() => _optionalChain([props, 'access', _27 => _27.toolbar, 'optionalAccess', _28 => _28.selectedCount]) !== void 0 ? props.toolbar.selectedCount : selectedKeys.value.length
|
|
387
|
-
);
|
|
388
|
-
const bulkLabel = _vue.computed.call(void 0,
|
|
389
|
-
() => _nullishCoalesce(_optionalChain([props, 'access', _29 => _29.toolbar, 'optionalAccess', _30 => _30.bulkActionsLabel]), () => ( tableLabels.value.selectedText))
|
|
390
|
-
);
|
|
391
|
-
const wrapperClasses = _vue.computed.call(void 0,
|
|
392
|
-
() => _tigercatcore.classNames.call(void 0,
|
|
393
|
-
"tiger-data-table-with-toolbar flex flex-col",
|
|
394
|
-
props.bordered ? "border border-[var(--tiger-border,#e5e7eb)] rounded-[var(--tiger-radius-md,0.5rem)] overflow-hidden bg-[var(--tiger-surface,#ffffff)] shadow-sm" : "gap-3.5",
|
|
395
|
-
props.className,
|
|
396
|
-
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
397
|
-
)
|
|
398
|
-
);
|
|
399
|
-
const wrapperStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
|
|
400
|
-
const handleSearchChange = (value) => {
|
|
401
|
-
if (_optionalChain([props, 'access', _31 => _31.toolbar, 'optionalAccess', _32 => _32.searchValue]) === void 0) {
|
|
402
|
-
internalSearch.value = value;
|
|
403
|
-
}
|
|
404
|
-
emit("search-change", value);
|
|
405
|
-
};
|
|
406
|
-
const handleSearchSubmit = () => {
|
|
407
|
-
emit("search", _nullishCoalesce(searchValue.value, () => ( "")));
|
|
408
|
-
};
|
|
409
|
-
const setFilterValue = (key, value, filter) => {
|
|
410
|
-
const nextFilters = {
|
|
411
|
-
...resolvedFilters.value,
|
|
412
|
-
[key]: value
|
|
413
|
-
};
|
|
414
|
-
if (!filter || filter.value === void 0) {
|
|
415
|
-
internalFilters.value = {
|
|
416
|
-
...internalFilters.value,
|
|
417
|
-
[key]: value
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
emit("filters-change", nextFilters);
|
|
421
|
-
};
|
|
422
|
-
const handleFilterSelect = (filter, value) => {
|
|
423
|
-
setFilterValue(filter.key, value, filter);
|
|
424
|
-
};
|
|
425
|
-
const handleBulkAction = (action) => {
|
|
426
|
-
const keys = _nullishCoalesce(selectedKeys.value, () => ( []));
|
|
427
|
-
_optionalChain([action, 'access', _33 => _33.onClick, 'optionalCall', _34 => _34(keys)]);
|
|
428
|
-
emit("bulk-action", action, keys);
|
|
429
|
-
};
|
|
430
|
-
const handleTablePageChange = ({
|
|
431
|
-
current,
|
|
432
|
-
pageSize
|
|
433
|
-
}) => {
|
|
434
|
-
emit("page-change", current, pageSize);
|
|
435
|
-
if (previousPageSize.value !== void 0 && previousPageSize.value !== pageSize) {
|
|
436
|
-
emit("page-size-change", current, pageSize);
|
|
437
|
-
}
|
|
438
|
-
previousPageSize.value = pageSize;
|
|
439
|
-
};
|
|
440
|
-
const renderColumnSettings = () => {
|
|
441
|
-
const lockedKeys = new Set(_nullishCoalesce(_optionalChain([props, 'access', _35 => _35.toolbar, 'optionalAccess', _36 => _36.columnSettings, 'optionalAccess', _37 => _37.lockedColumnKeys]), () => ( [])));
|
|
442
|
-
const panelTitle = _nullishCoalesce(_optionalChain([props, 'access', _38 => _38.toolbar, 'optionalAccess', _39 => _39.columnSettings, 'optionalAccess', _40 => _40.title]), () => ( tableLabels.value.columnSettingsText));
|
|
443
|
-
return _vue.h.call(void 0,
|
|
444
|
-
_chunkXV6IYXAPjs.Popover,
|
|
445
|
-
{
|
|
446
|
-
trigger: "click",
|
|
447
|
-
placement: "bottom-end"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
default: () => _vue.h.call(void 0,
|
|
451
|
-
_chunkHA5QZ76Mjs.Button,
|
|
452
|
-
{
|
|
453
|
-
size: "sm",
|
|
454
|
-
variant: "outline",
|
|
455
|
-
class: "shrink-0 px-2",
|
|
456
|
-
"aria-label": tableLabels.value.columnSettingsAriaLabel
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
default: () => _vue.h.call(void 0,
|
|
460
|
-
"svg",
|
|
461
|
-
{
|
|
462
|
-
class: "w-3.5 h-3.5",
|
|
463
|
-
fill: "none",
|
|
464
|
-
stroke: "currentColor",
|
|
465
|
-
"stroke-width": "2",
|
|
466
|
-
viewBox: "0 0 24 24",
|
|
467
|
-
"aria-hidden": "true"
|
|
468
|
-
},
|
|
469
|
-
[
|
|
470
|
-
_vue.h.call(void 0, "path", {
|
|
471
|
-
"stroke-linecap": "round",
|
|
472
|
-
"stroke-linejoin": "round",
|
|
473
|
-
d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
|
|
474
|
-
}),
|
|
475
|
-
_vue.h.call(void 0, "path", {
|
|
476
|
-
"stroke-linecap": "round",
|
|
477
|
-
"stroke-linejoin": "round",
|
|
478
|
-
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
479
|
-
})
|
|
480
|
-
]
|
|
481
|
-
)
|
|
482
|
-
}
|
|
483
|
-
),
|
|
484
|
-
title: () => panelTitle,
|
|
485
|
-
content: () => _vue.h.call(void 0,
|
|
486
|
-
"div",
|
|
487
|
-
{ class: "flex flex-col gap-2 min-w-[160px]" },
|
|
488
|
-
props.columns.map((column) => {
|
|
489
|
-
const locked = lockedKeys.has(column.key) || column.hideable === false;
|
|
490
|
-
return _vue.h.call(void 0,
|
|
491
|
-
_chunkPFWRFHSBjs.Checkbox,
|
|
492
|
-
{
|
|
493
|
-
key: column.key,
|
|
494
|
-
size: "sm",
|
|
495
|
-
modelValue: !resolvedHiddenKeys.value.includes(column.key),
|
|
496
|
-
disabled: locked,
|
|
497
|
-
"onUpdate:modelValue": (checked) => handleToggleColumnVisibility(column.key, checked)
|
|
498
|
-
},
|
|
499
|
-
{ default: () => column.title }
|
|
500
|
-
);
|
|
501
|
-
})
|
|
502
|
-
)
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
};
|
|
506
|
-
const toolbarRenderContext = () => ({
|
|
507
|
-
searchValue: _nullishCoalesce(searchValue.value, () => ( "")),
|
|
508
|
-
setSearch: handleSearchChange,
|
|
509
|
-
submitSearch: handleSearchSubmit,
|
|
510
|
-
filters: resolvedFilters.value,
|
|
511
|
-
setFilter: (key, value) => setFilterValue(key, value),
|
|
512
|
-
selectedKeys: selectedKeys.value,
|
|
513
|
-
selectedCount: selectedCount.value,
|
|
514
|
-
hiddenColumnKeys: resolvedHiddenKeys.value,
|
|
515
|
-
setHiddenColumnKeys: handleHiddenColumnsChange
|
|
516
|
-
});
|
|
517
|
-
const renderToolbar = () => {
|
|
518
|
-
if (slots.toolbar) {
|
|
519
|
-
return slots.toolbar(toolbarRenderContext());
|
|
520
|
-
}
|
|
521
|
-
if (!hasSearch.value && !hasFilters.value && !hasFiltersExtra.value && !hasBulkActions.value && !hasColumnSettings.value)
|
|
522
|
-
return null;
|
|
523
|
-
const leftNodes = [];
|
|
524
|
-
if (hasSearch.value) {
|
|
525
|
-
const showButton = _nullishCoalesce(_optionalChain([props, 'access', _41 => _41.toolbar, 'optionalAccess', _42 => _42.showSearchButton]), () => ( true));
|
|
526
|
-
leftNodes.push(
|
|
527
|
-
_vue.h.call(void 0,
|
|
528
|
-
"div",
|
|
529
|
-
{
|
|
530
|
-
class: _tigercatcore.classNames.call(void 0,
|
|
531
|
-
"flex items-center gap-2",
|
|
532
|
-
_nullishCoalesce(_optionalChain([props, 'access', _43 => _43.toolbar, 'optionalAccess', _44 => _44.searchClassName]), () => ( "w-full sm:w-auto sm:min-w-[220px] sm:max-w-[320px]"))
|
|
533
|
-
)
|
|
534
|
-
},
|
|
535
|
-
[
|
|
536
|
-
_vue.h.call(void 0,
|
|
537
|
-
_chunkH2XEJHGRjs.Input,
|
|
538
|
-
{
|
|
539
|
-
type: "search",
|
|
540
|
-
size: "sm",
|
|
541
|
-
modelValue: searchValue.value,
|
|
542
|
-
placeholder: _nullishCoalesce(_optionalChain([props, 'access', _45 => _45.toolbar, 'optionalAccess', _46 => _46.searchPlaceholder]), () => ( tableLabels.value.searchPlaceholder)),
|
|
543
|
-
"onUpdate:modelValue": (value) => handleSearchChange(String(_nullishCoalesce(value, () => ( "")))),
|
|
544
|
-
onKeydown: (event) => {
|
|
545
|
-
if (event.key === "Enter") {
|
|
546
|
-
handleSearchSubmit();
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
prefix: () => _vue.h.call(void 0,
|
|
552
|
-
"svg",
|
|
553
|
-
{
|
|
554
|
-
class: "w-3.5 h-3.5 text-[var(--tiger-text-secondary,#6b7280)] shrink-0",
|
|
555
|
-
fill: "none",
|
|
556
|
-
stroke: "currentColor",
|
|
557
|
-
"stroke-width": "2",
|
|
558
|
-
viewBox: "0 0 24 24",
|
|
559
|
-
"aria-hidden": "true"
|
|
560
|
-
},
|
|
561
|
-
[
|
|
562
|
-
_vue.h.call(void 0, "path", {
|
|
563
|
-
"stroke-linecap": "round",
|
|
564
|
-
"stroke-linejoin": "round",
|
|
565
|
-
d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
566
|
-
})
|
|
567
|
-
]
|
|
568
|
-
)
|
|
569
|
-
}
|
|
570
|
-
),
|
|
571
|
-
showButton ? _vue.h.call(void 0,
|
|
572
|
-
_chunkHA5QZ76Mjs.Button,
|
|
573
|
-
{
|
|
574
|
-
size: "sm",
|
|
575
|
-
variant: "primary",
|
|
576
|
-
class: "whitespace-nowrap shrink-0 rounded-[var(--tiger-radius-md,0.5rem)] px-3",
|
|
577
|
-
onClick: handleSearchSubmit,
|
|
578
|
-
disabled: !canSearch.value
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
default: () => _nullishCoalesce(_optionalChain([props, 'access', _47 => _47.toolbar, 'optionalAccess', _48 => _48.searchButtonText]), () => ( tableLabels.value.searchButtonText))
|
|
582
|
-
}
|
|
583
|
-
) : null
|
|
584
|
-
]
|
|
585
|
-
)
|
|
586
|
-
);
|
|
587
|
-
}
|
|
588
|
-
if (hasFilters.value) {
|
|
589
|
-
_optionalChain([props, 'access', _49 => _49.toolbar, 'optionalAccess', _50 => _50.filters, 'optionalAccess', _51 => _51.forEach, 'call', _52 => _52((filter) => {
|
|
590
|
-
const currentValue = resolvedFilters.value[filter.key];
|
|
591
|
-
const clearable = filter.clearable !== false;
|
|
592
|
-
if (filter.render) {
|
|
593
|
-
const filterNode = filter.render({
|
|
594
|
-
filter,
|
|
595
|
-
value: currentValue,
|
|
596
|
-
filters: resolvedFilters.value,
|
|
597
|
-
setValue: (value) => setFilterValue(filter.key, value, filter),
|
|
598
|
-
setFilter: (key, value) => setFilterValue(key, value)
|
|
599
|
-
});
|
|
600
|
-
leftNodes.push(
|
|
601
|
-
_vue.h.call(void 0,
|
|
602
|
-
"div",
|
|
603
|
-
{
|
|
604
|
-
key: filter.key,
|
|
605
|
-
class: _nullishCoalesce(filter.itemClass, () => ( "w-full sm:w-auto")),
|
|
606
|
-
style: filter.itemStyle
|
|
607
|
-
},
|
|
608
|
-
filterNode == null ? [] : [filterNode]
|
|
609
|
-
)
|
|
610
|
-
);
|
|
611
|
-
return;
|
|
612
|
-
}
|
|
613
|
-
leftNodes.push(
|
|
614
|
-
_vue.h.call(void 0,
|
|
615
|
-
"div",
|
|
616
|
-
{
|
|
617
|
-
key: filter.key,
|
|
618
|
-
class: _nullishCoalesce(filter.itemClass, () => ( "w-full sm:w-auto sm:min-w-[120px] sm:max-w-[180px]")),
|
|
619
|
-
style: filter.itemStyle
|
|
620
|
-
},
|
|
621
|
-
[
|
|
622
|
-
_vue.h.call(void 0, _chunkCFJST2X2js.Select, {
|
|
623
|
-
size: "sm",
|
|
624
|
-
options: (_nullishCoalesce(filter.options, () => ( []))).map((opt) => ({
|
|
625
|
-
label: opt.label,
|
|
626
|
-
value: opt.value
|
|
627
|
-
})),
|
|
628
|
-
modelValue: typeof currentValue === "string" || typeof currentValue === "number" ? currentValue : void 0,
|
|
629
|
-
placeholder: _nullishCoalesce(filter.placeholder, () => ( filter.label)),
|
|
630
|
-
clearable,
|
|
631
|
-
"onUpdate:modelValue": (value) => {
|
|
632
|
-
handleFilterSelect(filter, _nullishCoalesce(value, () => ( null)));
|
|
633
|
-
}
|
|
634
|
-
})
|
|
635
|
-
]
|
|
636
|
-
)
|
|
637
|
-
);
|
|
638
|
-
})]);
|
|
639
|
-
}
|
|
640
|
-
const filtersExtra = _optionalChain([slots, 'access', _53 => _53["filters-extra"], 'optionalCall', _54 => _54({
|
|
641
|
-
filters: resolvedFilters.value,
|
|
642
|
-
setFilter: (key, value) => setFilterValue(key, value)
|
|
643
|
-
})]);
|
|
644
|
-
if (_optionalChain([filtersExtra, 'optionalAccess', _55 => _55.length])) {
|
|
645
|
-
leftNodes.push(...filtersExtra);
|
|
646
|
-
}
|
|
647
|
-
const bulkChildren = [];
|
|
648
|
-
if (hasBulkActions.value) {
|
|
649
|
-
if (selectedCount.value > 0) {
|
|
650
|
-
bulkChildren.push(
|
|
651
|
-
_vue.h.call(void 0,
|
|
652
|
-
"div",
|
|
653
|
-
{
|
|
654
|
-
class: "flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-[var(--tiger-primary,#2563eb)]/10 text-[var(--tiger-primary,#2563eb)] text-xs font-medium border border-[var(--tiger-primary,#2563eb)]/15 shrink-0 transition-all duration-300"
|
|
655
|
-
},
|
|
656
|
-
[
|
|
657
|
-
_vue.h.call(void 0, "span", {
|
|
658
|
-
class: "w-1.5 h-1.5 rounded-full bg-[var(--tiger-primary,#2563eb)] animate-pulse"
|
|
659
|
-
}),
|
|
660
|
-
_vue.h.call(void 0,
|
|
661
|
-
"span",
|
|
662
|
-
null,
|
|
663
|
-
`${bulkLabel.value} ${selectedCount.value} ${tableLabels.value.selectedItemsText}`
|
|
664
|
-
)
|
|
665
|
-
]
|
|
666
|
-
)
|
|
667
|
-
);
|
|
668
|
-
}
|
|
669
|
-
;
|
|
670
|
-
(_nullishCoalesce(_optionalChain([props, 'access', _56 => _56.toolbar, 'optionalAccess', _57 => _57.bulkActions]), () => ( []))).forEach((action) => {
|
|
671
|
-
bulkChildren.push(
|
|
672
|
-
_vue.h.call(void 0,
|
|
673
|
-
_chunkHA5QZ76Mjs.Button,
|
|
674
|
-
{
|
|
675
|
-
key: action.key,
|
|
676
|
-
size: "sm",
|
|
677
|
-
variant: _nullishCoalesce(action.variant, () => ( "outline")),
|
|
678
|
-
disabled: action.disabled || selectedCount.value === 0,
|
|
679
|
-
onClick: () => handleBulkAction(action)
|
|
680
|
-
},
|
|
681
|
-
{ default: () => action.label }
|
|
682
|
-
)
|
|
683
|
-
);
|
|
684
|
-
});
|
|
685
|
-
}
|
|
686
|
-
return _vue.h.call(void 0,
|
|
687
|
-
"div",
|
|
688
|
-
{
|
|
689
|
-
class: _tigercatcore.classNames.call(void 0,
|
|
690
|
-
"tiger-data-table-toolbar flex flex-wrap items-center gap-3",
|
|
691
|
-
props.bordered ? "bg-[var(--tiger-surface-muted,#f9fafb)] dark:bg-gray-800/10 px-4 py-3.5 border-b border-[var(--tiger-border,#e5e7eb)]" : "bg-[var(--tiger-surface-muted,#f9fafb)]/80 dark:bg-gray-800/30 px-4 py-3.5 border border-[var(--tiger-border,#e5e7eb)] rounded-[var(--tiger-radius-md,0.5rem)] shadow-sm",
|
|
692
|
-
_optionalChain([props, 'access', _58 => _58.toolbar, 'optionalAccess', _59 => _59.className])
|
|
693
|
-
),
|
|
694
|
-
style: _optionalChain([props, 'access', _60 => _60.toolbar, 'optionalAccess', _61 => _61.style]),
|
|
695
|
-
role: "toolbar",
|
|
696
|
-
"aria-label": tableLabels.value.toolbarAriaLabel
|
|
697
|
-
},
|
|
698
|
-
[
|
|
699
|
-
_vue.h.call(void 0, "div", { class: "flex items-center gap-3 flex-wrap flex-1 min-w-0" }, leftNodes),
|
|
700
|
-
hasBulkActions.value ? _vue.h.call(void 0,
|
|
701
|
-
"div",
|
|
702
|
-
{ class: "flex items-center gap-2.5 flex-wrap ml-auto shrink-0" },
|
|
703
|
-
bulkChildren
|
|
704
|
-
) : null,
|
|
705
|
-
hasColumnSettings.value ? _vue.h.call(void 0, "div", { class: _tigercatcore.classNames.call(void 0, "shrink-0", !hasBulkActions.value && "ml-auto") }, [
|
|
706
|
-
renderColumnSettings()
|
|
707
|
-
]) : null
|
|
708
|
-
]
|
|
709
|
-
);
|
|
710
|
-
};
|
|
711
|
-
return () => {
|
|
712
|
-
const { class: _class, style: _style, ...restAttrs } = attrs;
|
|
713
|
-
const tableProps = {
|
|
714
|
-
...restAttrs,
|
|
715
|
-
columns: props.columns,
|
|
716
|
-
columnLockable: props.columnLockable,
|
|
717
|
-
dataSource: props.dataSource,
|
|
718
|
-
hiddenColumnKeys: resolvedHiddenKeys.value,
|
|
719
|
-
...props.sort !== void 0 ? { sort: props.sort } : {},
|
|
720
|
-
...props.defaultSort !== void 0 ? { defaultSort: props.defaultSort } : {},
|
|
721
|
-
...props.filters !== void 0 ? { filters: props.filters } : {},
|
|
722
|
-
...props.defaultFilters !== void 0 ? { defaultFilters: props.defaultFilters } : {},
|
|
723
|
-
size: props.size,
|
|
724
|
-
bordered: props.bordered,
|
|
725
|
-
striped: props.striped,
|
|
726
|
-
hoverable: props.hoverable,
|
|
727
|
-
loading: props.loading,
|
|
728
|
-
locale: props.locale,
|
|
729
|
-
labels: props.labels,
|
|
730
|
-
emptyText: props.emptyText,
|
|
731
|
-
pagination: props.pagination,
|
|
732
|
-
rowSelection: props.rowSelection,
|
|
733
|
-
rowKey: props.rowKey,
|
|
734
|
-
rowClassName: props.rowClassName,
|
|
735
|
-
stickyHeader: props.stickyHeader,
|
|
736
|
-
maxHeight: props.maxHeight,
|
|
737
|
-
tableLayout: props.tableLayout,
|
|
738
|
-
responsiveMode: props.responsiveMode,
|
|
739
|
-
cardBreakpoint: props.cardBreakpoint,
|
|
740
|
-
cardLayout: props.cardLayout,
|
|
741
|
-
cardClassName: props.cardClassName,
|
|
742
|
-
renderCard: props.renderCard,
|
|
743
|
-
// Forward advanced Table capabilities only when explicitly provided so
|
|
744
|
-
// Table's own defaults are preserved.
|
|
745
|
-
...props.cardSelectionPosition !== void 0 ? { cardSelectionPosition: props.cardSelectionPosition } : {},
|
|
746
|
-
...props.cardPadding !== void 0 ? { cardPadding: props.cardPadding } : {},
|
|
747
|
-
...props.cardFieldGap !== void 0 ? { cardFieldGap: props.cardFieldGap } : {},
|
|
748
|
-
...props.expandable !== void 0 ? { expandable: props.expandable } : {},
|
|
749
|
-
...props.virtual !== void 0 ? { virtual: props.virtual } : {},
|
|
750
|
-
...props.autoVirtual !== void 0 ? { autoVirtual: props.autoVirtual } : {},
|
|
751
|
-
...props.virtualHeight !== void 0 ? { virtualHeight: props.virtualHeight } : {},
|
|
752
|
-
...props.virtualItemHeight !== void 0 ? { virtualItemHeight: props.virtualItemHeight } : {},
|
|
753
|
-
...props.autoVirtualThreshold !== void 0 ? { autoVirtualThreshold: props.autoVirtualThreshold } : {},
|
|
754
|
-
...props.virtualThreshold !== void 0 ? { virtualThreshold: props.virtualThreshold } : {},
|
|
755
|
-
...props.editable !== void 0 ? { editable: props.editable } : {},
|
|
756
|
-
...props.editableCells !== void 0 ? { editableCells: props.editableCells } : {},
|
|
757
|
-
...props.filterMode !== void 0 ? { filterMode: props.filterMode } : {},
|
|
758
|
-
...props.advancedFilterRules !== void 0 ? { advancedFilterRules: props.advancedFilterRules } : {},
|
|
759
|
-
...props.columnDraggable !== void 0 ? { columnDraggable: props.columnDraggable } : {},
|
|
760
|
-
...props.rowDraggable !== void 0 ? { rowDraggable: props.rowDraggable } : {},
|
|
761
|
-
...props.summaryRow !== void 0 ? { summaryRow: props.summaryRow } : {},
|
|
762
|
-
...props.groupBy !== void 0 ? { groupBy: props.groupBy } : {},
|
|
763
|
-
...props.exportable !== void 0 ? { exportable: props.exportable } : {},
|
|
764
|
-
...props.exportFormat !== void 0 ? { exportFormat: props.exportFormat } : {},
|
|
765
|
-
...props.exportFilename !== void 0 ? { exportFilename: props.exportFilename } : {},
|
|
766
|
-
class: props.bordered ? "border-none rounded-none shadow-none" : void 0,
|
|
767
|
-
onSelectionChange: (keys) => emit("selection-change", keys),
|
|
768
|
-
onPageChange: handleTablePageChange
|
|
769
|
-
};
|
|
770
|
-
const { toolbar: _toolbarSlot, "filters-extra": _filtersExtraSlot, ...tableSlots } = slots;
|
|
771
|
-
return _vue.h.call(void 0,
|
|
772
|
-
"div",
|
|
773
|
-
{
|
|
774
|
-
class: wrapperClasses.value,
|
|
775
|
-
style: wrapperStyle.value,
|
|
776
|
-
"data-tiger-data-table-with-toolbar": ""
|
|
777
|
-
},
|
|
778
|
-
[renderToolbar(), _vue.h.call(void 0, _chunkVDKUKZS2js.Table, tableProps, tableSlots)]
|
|
779
|
-
);
|
|
780
|
-
};
|
|
781
|
-
}
|
|
782
|
-
});
|
|
783
|
-
var DataTableWithToolbar_default = DataTableWithToolbar;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
exports.DataTableWithToolbar = DataTableWithToolbar; exports.DataTableWithToolbar_default = DataTableWithToolbar_default;
|