@expcat/tigercat-vue 2.0.19 → 2.1.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/README.md +20 -10
- package/dist/chunk-26QCTL2E.mjs +180 -0
- package/dist/{chunk-7W3NALIL.mjs → chunk-3FPS7XVB.mjs} +26 -27
- package/dist/{chunk-2OI6GWOT.mjs → chunk-3KAHJF7D.mjs} +12 -11
- package/dist/chunk-3OCHBGPF.mjs +835 -0
- package/dist/chunk-3ONCXHE5.mjs +184 -0
- package/dist/{chunk-4HUYX5WW.mjs → chunk-4PQZMDBK.mjs} +29 -8
- package/dist/{chunk-DI6RRAGQ.mjs → chunk-562Z32GR.mjs} +3 -3
- package/dist/{chunk-OQVGB7X6.mjs → chunk-626VUZ2Q.mjs} +1 -1
- package/dist/{chunk-WUQMFKQ6.mjs → chunk-67VS6QHJ.mjs} +29 -15
- package/dist/chunk-6GR3XC5V.mjs +281 -0
- package/dist/chunk-6GR5U4UB.mjs +225 -0
- package/dist/{chunk-KFJIZED5.mjs → chunk-6JAAXPBW.mjs} +7 -6
- package/dist/{chunk-XGXZF27U.mjs → chunk-6NYC7EY2.mjs} +32 -18
- package/dist/{chunk-6BDDX2R4.mjs → chunk-73Z7N7VG.mjs} +1 -4
- package/dist/chunk-7C7SG3SS.mjs +269 -0
- package/dist/{chunk-NNC75I7F.mjs → chunk-7TJE7OYH.mjs} +7 -6
- package/dist/{chunk-AU6IC6K7.mjs → chunk-ABNS4B5V.mjs} +35 -15
- package/dist/chunk-AECXFT7D.mjs +121 -0
- package/dist/chunk-AOLRZG4E.mjs +347 -0
- package/dist/chunk-AY7CGLMO.mjs +368 -0
- package/dist/chunk-BBNCP55O.mjs +156 -0
- package/dist/{chunk-EGIMTTZA.mjs → chunk-BOHE5URZ.mjs} +18 -3
- package/dist/{chunk-5RIHHZF6.mjs → chunk-BQK7LH2L.mjs} +4 -1
- package/dist/{chunk-E6EZHSGY.mjs → chunk-BSOLH6R5.mjs} +0 -1
- package/dist/{chunk-RSM6FOWX.mjs → chunk-CCC3S6LK.mjs} +6 -3
- package/dist/{chunk-U75YXWSA.mjs → chunk-CLTRADS7.mjs} +17 -5
- package/dist/{chunk-BEIPGX74.mjs → chunk-DRLQCY7R.mjs} +162 -7
- package/dist/{chunk-KBJANUZZ.mjs → chunk-E523VGZP.mjs} +1 -1
- package/dist/{chunk-D3U2NJ32.mjs → chunk-FEQ7PZXI.mjs} +8 -2
- package/dist/{chunk-PE5OA4YG.mjs → chunk-FHUGOSEY.mjs} +8 -2
- package/dist/{chunk-OAPIT53X.mjs → chunk-FIEECAJV.mjs} +7 -10
- package/dist/{chunk-7SFB77JR.mjs → chunk-GBPMQJJJ.mjs} +8 -1
- package/dist/{chunk-KOG3HKOF.mjs → chunk-GQOPDD44.mjs} +2 -5
- package/dist/{chunk-5RXYJWNA.mjs → chunk-H4DEIGEG.mjs} +77 -25
- package/dist/{chunk-ZGA66PSG.mjs → chunk-IK2WHKDA.mjs} +32 -18
- package/dist/{chunk-HGXD57QM.mjs → chunk-JBS3AESR.mjs} +65 -23
- package/dist/{chunk-PYRKFQ6J.mjs → chunk-JIU5UEOU.mjs} +70 -26
- package/dist/{chunk-JALHMWKW.mjs → chunk-K5MHUMKR.mjs} +2 -2
- package/dist/{chunk-5E4LINDO.mjs → chunk-LH2V2JMZ.mjs} +26 -10
- package/dist/{chunk-PQBKN2NH.mjs → chunk-LRFKHJDU.mjs} +14 -5
- package/dist/{chunk-OTHJIFDV.mjs → chunk-M4FWWEMX.mjs} +18 -9
- package/dist/{chunk-NGAA73CV.mjs → chunk-N2XV37BL.mjs} +40 -44
- package/dist/{chunk-2LIIMWBR.mjs → chunk-OYU47A57.mjs} +1 -2
- package/dist/{chunk-KU2Q5V3L.mjs → chunk-P62TYR3M.mjs} +18 -2
- package/dist/chunk-P6FMU4AT.mjs +54 -0
- package/dist/{chunk-P5FDKBXG.mjs → chunk-P7X46BAW.mjs} +70 -3
- package/dist/chunk-PFIV5MXD.mjs +48 -0
- package/dist/{chunk-KROVW4AW.mjs → chunk-PJQTRDIG.mjs} +13 -3
- package/dist/{chunk-26OI3TEA.mjs → chunk-PMQSXEMT.mjs} +42 -6
- package/dist/{chunk-XLNK3Z2P.mjs → chunk-POWDTOMF.mjs} +88 -79
- package/dist/{chunk-AXDBME5A.mjs → chunk-PSGVG4TN.mjs} +38 -21
- package/dist/chunk-PWWWACHC.mjs +302 -0
- package/dist/{chunk-UUWTKCMY.mjs → chunk-QWLD5FMJ.mjs} +1 -1
- package/dist/{chunk-ALIUAGJO.mjs → chunk-QZLOF36M.mjs} +7 -13
- package/dist/{chunk-WLYQHKLZ.mjs → chunk-QZRSFGZZ.mjs} +50 -11
- package/dist/{chunk-MAKOSWR6.mjs → chunk-RHQWQJ4I.mjs} +7 -6
- package/dist/{chunk-GS4SV2HK.mjs → chunk-RRLE7QRH.mjs} +43 -22
- package/dist/{chunk-RID7A5V7.mjs → chunk-RRNQL6MJ.mjs} +23 -6
- package/dist/{chunk-VJ6YM2EW.mjs → chunk-S4BKVFQ7.mjs} +1 -1
- package/dist/{chunk-LPZBXTJ6.mjs → chunk-SAC4PAG3.mjs} +4 -4
- package/dist/{chunk-W5RZPTFD.mjs → chunk-SNNT64HK.mjs} +13 -2
- package/dist/{chunk-N3C6YI7I.mjs → chunk-SWMYIORV.mjs} +22 -7
- package/dist/{chunk-2XCXK3NQ.mjs → chunk-SX3NAN4M.mjs} +1 -1
- package/dist/chunk-TBOXTAIA.mjs +94 -0
- package/dist/{chunk-JL3CN4UK.mjs → chunk-TDBMAKTJ.mjs} +10 -3
- package/dist/{chunk-EDBMWZKH.mjs → chunk-TPESRDUG.mjs} +5 -1
- package/dist/chunk-UEGNXN5B.mjs +28 -0
- package/dist/{chunk-NEEGXKJW.mjs → chunk-UGHLEKEZ.mjs} +22 -3
- package/dist/{chunk-HKYRRQS7.mjs → chunk-UNQO7EVG.mjs} +1 -1
- package/dist/chunk-UR5F74ZB.mjs +601 -0
- package/dist/{chunk-VCCK4CDT.mjs → chunk-URPXBKK4.mjs} +23 -5
- package/dist/chunk-UUWPSRNV.mjs +337 -0
- package/dist/chunk-UXJRH72H.mjs +834 -0
- package/dist/chunk-VFS5XAZ3.mjs +602 -0
- package/dist/{chunk-7KCOF5US.mjs → chunk-VY6FVIOZ.mjs} +10 -8
- package/dist/{chunk-KICZSLOX.mjs → chunk-W2ICYZVU.mjs} +1 -1
- package/dist/{chunk-FIVVKBBF.mjs → chunk-W3QOMJKQ.mjs} +8 -6
- package/dist/{chunk-DCMRB3HR.mjs → chunk-WV25G4M3.mjs} +4 -3
- package/dist/{chunk-3KITFMBJ.mjs → chunk-X5LJT76O.mjs} +52 -35
- package/dist/{chunk-BNYA5IUB.mjs → chunk-YNXP34KO.mjs} +39 -38
- package/dist/{chunk-2T2NEZRZ.mjs → chunk-YVDTXHQ6.mjs} +1 -1
- package/dist/{chunk-AUMTHL6N.mjs → chunk-ZOP7PEKY.mjs} +2 -1
- package/dist/components/ActivityFeed.d.mts +29 -11
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/Affix.d.mts +4 -4
- package/dist/components/Affix.mjs +1 -1
- package/dist/components/Alert.d.mts +4 -4
- package/dist/components/Anchor.d.mts +2 -2
- package/dist/components/Anchor.mjs +1 -1
- package/dist/components/AreaChart.d.mts +3 -3
- package/dist/components/AreaChart.mjs +5 -4
- package/dist/components/AspectRatio.d.mts +44 -0
- package/dist/components/AspectRatio.mjs +8 -0
- package/dist/components/AutoComplete.d.mts +3 -3
- package/dist/components/AutoComplete.mjs +1 -1
- package/dist/components/Avatar.d.mts +2 -2
- package/dist/components/AvatarGroup.d.mts +2 -2
- package/dist/components/BackTop.d.mts +2 -2
- package/dist/components/Badge.d.mts +5 -5
- package/dist/components/BarChart.d.mts +2 -2
- package/dist/components/BarChart.mjs +5 -4
- package/dist/components/Breadcrumb.d.mts +2 -2
- package/dist/components/Button.d.mts +5 -5
- package/dist/components/ButtonGroup.d.mts +1 -1
- package/dist/components/Calendar.d.mts +2 -2
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Card.d.mts +3 -3
- package/dist/components/Carousel.d.mts +3 -3
- package/dist/components/Cascader.d.mts +37 -3
- package/dist/components/Cascader.mjs +1 -1
- package/dist/components/ChartCanvas.d.mts +8 -4
- package/dist/components/ChartCanvas.mjs +1 -1
- package/dist/components/ChartGrid.d.mts +1 -1
- package/dist/components/ChartLegend.d.mts +2 -2
- package/dist/components/ChartTooltip.d.mts +1 -1
- package/dist/components/ChatWindow.d.mts +29 -11
- package/dist/components/ChatWindow.mjs +4 -4
- package/dist/components/Checkbox.d.mts +1 -1
- package/dist/components/Code.d.mts +33 -6
- package/dist/components/Code.mjs +3 -1
- package/dist/components/CodeEditor.d.mts +1 -1
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/Collapse.d.mts +1 -1
- package/dist/components/CollapsePanel.mjs +1 -1
- package/dist/components/ColorPicker.mjs +1 -1
- package/dist/components/ColorSwatch.d.mts +8 -2
- package/dist/components/ColorSwatch.mjs +1 -1
- package/dist/components/CommentThread.d.mts +63 -27
- package/dist/components/CommentThread.mjs +2 -2
- package/dist/components/Container.d.mts +1 -1
- package/dist/components/ContextMenu.d.mts +234 -0
- package/dist/components/ContextMenu.mjs +17 -0
- package/dist/components/Countdown.d.mts +1 -1
- package/dist/components/CronEditor.d.mts +3 -3
- package/dist/components/CropUpload.d.mts +1 -1
- package/dist/components/DataExport.d.mts +1 -1
- package/dist/components/DataExport.mjs +2 -2
- package/dist/components/DataTableWithToolbar.d.mts +11 -11
- package/dist/components/DataTableWithToolbar.mjs +8 -8
- package/dist/components/DatePicker.d.mts +5 -5
- package/dist/components/Descriptions.d.mts +3 -3
- package/dist/components/DonutChart.d.mts +3 -3
- package/dist/components/DonutChart.mjs +5 -5
- package/dist/components/Drawer.d.mts +6 -6
- package/dist/components/Dropdown.d.mts +21 -2
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/Empty.d.mts +1 -1
- package/dist/components/FileManager.d.mts +10 -4
- package/dist/components/FileManager.mjs +1 -1
- package/dist/components/FloatButton.d.mts +37 -7
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.d.mts +2 -2
- package/dist/components/FormWizard.d.mts +4 -4
- package/dist/components/FormWizard.mjs +1 -1
- package/dist/components/FunnelChart.d.mts +4 -4
- package/dist/components/FunnelChart.mjs +4 -4
- package/dist/components/Gantt.d.mts +6 -4
- package/dist/components/Gantt.mjs +2 -2
- package/dist/components/GaugeChart.d.mts +4 -4
- package/dist/components/GaugeChart.mjs +2 -2
- package/dist/components/Header.d.mts +1 -1
- package/dist/components/HeatmapChart.d.mts +3 -3
- package/dist/components/HeatmapChart.mjs +3 -3
- package/dist/components/Highlight.d.mts +146 -0
- package/dist/components/Highlight.mjs +8 -0
- package/dist/components/Icon.d.mts +2 -2
- package/dist/components/Image.d.mts +2 -2
- package/dist/components/Image.mjs +3 -3
- package/dist/components/ImageAnnotation.d.mts +4 -4
- package/dist/components/ImageCompare.d.mts +284 -0
- package/dist/components/ImageCompare.mjs +8 -0
- package/dist/components/ImageCropper.d.mts +1 -1
- package/dist/components/ImageGroup.mjs +2 -2
- package/dist/components/ImagePreview.d.mts +1 -1
- package/dist/components/ImagePreview.mjs +1 -1
- package/dist/components/ImageViewer.d.mts +1 -1
- package/dist/components/InfiniteScroll.d.mts +4 -4
- package/dist/components/Input.d.mts +7 -7
- package/dist/components/Input.mjs +1 -1
- package/dist/components/InputGroup.d.mts +2 -2
- package/dist/components/InputNumber.d.mts +3 -3
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/InputOTP.d.mts +261 -0
- package/dist/components/InputOTP.mjs +11 -0
- package/dist/components/Kanban.d.mts +1 -1
- package/dist/components/Kanban.mjs +2 -2
- package/dist/components/Kbd.d.mts +118 -0
- package/dist/components/Kbd.mjs +8 -0
- package/dist/components/LineChart.d.mts +2 -2
- package/dist/components/LineChart.mjs +5 -4
- package/dist/components/Link.d.mts +1 -1
- package/dist/components/List.d.mts +7 -7
- package/dist/components/List.mjs +2 -2
- package/dist/components/Loading.d.mts +7 -7
- package/dist/components/Loading.mjs +1 -1
- package/dist/components/LoadingBar.d.mts +8 -0
- package/dist/components/LoadingBar.mjs +114 -0
- package/dist/components/LoadingBarContainer.d.mts +78 -0
- package/dist/components/LoadingBarContainer.mjs +8 -0
- package/dist/components/LoadingBarRoot.d.mts +6 -0
- package/dist/components/LoadingBarRoot.mjs +6 -0
- package/dist/components/MarkdownEditor.d.mts +4 -4
- package/dist/components/Marquee.d.mts +158 -0
- package/dist/components/Marquee.mjs +8 -0
- package/dist/components/MaskInput.d.mts +207 -0
- package/dist/components/MaskInput.mjs +11 -0
- package/dist/components/Masonry.d.mts +66 -0
- package/dist/components/Masonry.mjs +8 -0
- package/dist/components/Mentions.d.mts +1 -1
- package/dist/components/Menu.d.mts +4 -4
- package/dist/components/Modal.d.mts +7 -7
- package/dist/components/NavigationMenu.d.mts +411 -0
- package/dist/components/NavigationMenu.mjs +25 -0
- package/dist/components/NotificationCenter.d.mts +48 -30
- package/dist/components/NotificationCenter.mjs +4 -4
- package/dist/components/NumberKeyboard.d.mts +4 -4
- package/dist/components/OrgChart.d.mts +4 -4
- package/dist/components/OrgChart.mjs +2 -2
- package/dist/components/PageHeader.d.mts +140 -0
- package/dist/components/PageHeader.mjs +11 -0
- package/dist/components/Pagination.d.mts +5 -5
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/PieChart.d.mts +3 -3
- package/dist/components/PieChart.mjs +4 -4
- package/dist/components/Popconfirm.d.mts +4 -4
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.d.mts +5 -5
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/Progress.d.mts +7 -7
- package/dist/components/QRCode.d.mts +4 -13
- package/dist/components/QRCode.mjs +1 -1
- package/dist/components/RadarChart.d.mts +3 -3
- package/dist/components/RadarChart.mjs +4 -4
- package/dist/components/Radio.d.mts +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Rate.d.mts +1 -1
- package/dist/components/Rate.mjs +1 -1
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/RichTextEditor.d.mts +4 -4
- package/dist/components/Row.d.mts +1 -1
- package/dist/components/ScatterChart.d.mts +3 -3
- package/dist/components/ScatterChart.mjs +5 -4
- package/dist/components/ScrollArea.d.mts +136 -0
- package/dist/components/ScrollArea.mjs +8 -0
- package/dist/components/ScrollSpy.d.mts +2 -2
- package/dist/components/ScrollSpy.mjs +1 -1
- package/dist/components/Segmented.d.mts +2 -2
- package/dist/components/Select.d.mts +3 -3
- package/dist/components/Signature.d.mts +6 -6
- package/dist/components/Signature.mjs +1 -1
- package/dist/components/Skeleton.d.mts +2 -2
- package/dist/components/Slider.d.mts +19 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Space.d.mts +2 -2
- package/dist/components/SplitButton.d.mts +286 -0
- package/dist/components/SplitButton.mjs +12 -0
- package/dist/components/Splitter.d.mts +4 -4
- package/dist/components/Splitter.mjs +1 -1
- package/dist/components/Spotlight.d.mts +6 -6
- package/dist/components/Statistic.d.mts +1 -1
- package/dist/components/Stepper.d.mts +7 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/Steps.d.mts +1 -1
- package/dist/components/SunburstChart.d.mts +2 -2
- package/dist/components/SunburstChart.mjs +4 -4
- package/dist/components/Switch.d.mts +22 -6
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Table.d.mts +9 -9
- package/dist/components/Table.mjs +3 -3
- package/dist/components/Tabs.d.mts +5 -5
- package/dist/components/Tag.d.mts +3 -3
- package/dist/components/TagsInput.d.mts +214 -0
- package/dist/components/TagsInput.mjs +12 -0
- package/dist/components/TaskBoard.d.mts +2 -2
- package/dist/components/TaskBoard.mjs +1 -1
- package/dist/components/Text.d.mts +3 -3
- package/dist/components/Textarea.d.mts +4 -4
- package/dist/components/Textarea.mjs +1 -1
- package/dist/components/TimePicker.d.mts +6 -6
- package/dist/components/Timeline.d.mts +2 -2
- package/dist/components/Tooltip.d.mts +2 -2
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Tour.d.mts +4 -4
- package/dist/components/Tour.mjs +1 -1
- package/dist/components/Transfer.d.mts +5 -4
- package/dist/components/Transfer.mjs +1 -1
- package/dist/components/Tree.d.mts +6 -6
- package/dist/components/TreeMapChart.d.mts +3 -3
- package/dist/components/TreeMapChart.mjs +4 -4
- package/dist/components/TreeSelect.d.mts +54 -3
- package/dist/components/TreeSelect.mjs +2 -1
- package/dist/components/Upload.d.mts +4 -4
- package/dist/components/Upload.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +5 -5
- package/dist/components/Watermark.d.mts +6 -6
- package/dist/composables/useChartInteraction.d.mts +5 -0
- package/dist/composables/useChartInteraction.mjs +1 -1
- package/dist/index.d.mts +17 -1
- package/dist/index.mjs +406 -0
- package/package.json +117 -2
- package/dist/chunk-OTGGPXDT.mjs +0 -433
- package/dist/chunk-WC5MKASU.mjs +0 -393
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expcat/tigercat-vue",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Vue 3 components for Tigercat UI library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Yizhe Wang",
|
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
"import": "./dist/components/AreaChart.mjs",
|
|
61
61
|
"default": "./dist/components/AreaChart.mjs"
|
|
62
62
|
},
|
|
63
|
+
"./AspectRatio": {
|
|
64
|
+
"types": "./dist/components/AspectRatio.d.mts",
|
|
65
|
+
"import": "./dist/components/AspectRatio.mjs",
|
|
66
|
+
"default": "./dist/components/AspectRatio.mjs"
|
|
67
|
+
},
|
|
63
68
|
"./AutoComplete": {
|
|
64
69
|
"types": "./dist/components/AutoComplete.d.mts",
|
|
65
70
|
"import": "./dist/components/AutoComplete.mjs",
|
|
@@ -230,6 +235,26 @@
|
|
|
230
235
|
"import": "./dist/components/Content.mjs",
|
|
231
236
|
"default": "./dist/components/Content.mjs"
|
|
232
237
|
},
|
|
238
|
+
"./ContextMenu": {
|
|
239
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
240
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
241
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
242
|
+
},
|
|
243
|
+
"./ContextMenuItem": {
|
|
244
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
245
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
246
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
247
|
+
},
|
|
248
|
+
"./ContextMenuMenu": {
|
|
249
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
250
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
251
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
252
|
+
},
|
|
253
|
+
"./ContextMenuSub": {
|
|
254
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
255
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
256
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
257
|
+
},
|
|
233
258
|
"./Countdown": {
|
|
234
259
|
"types": "./dist/components/Countdown.d.mts",
|
|
235
260
|
"import": "./dist/components/Countdown.mjs",
|
|
@@ -360,6 +385,11 @@
|
|
|
360
385
|
"import": "./dist/components/HeatmapChart.mjs",
|
|
361
386
|
"default": "./dist/components/HeatmapChart.mjs"
|
|
362
387
|
},
|
|
388
|
+
"./Highlight": {
|
|
389
|
+
"types": "./dist/components/Highlight.d.mts",
|
|
390
|
+
"import": "./dist/components/Highlight.mjs",
|
|
391
|
+
"default": "./dist/components/Highlight.mjs"
|
|
392
|
+
},
|
|
363
393
|
"./Icon": {
|
|
364
394
|
"types": "./dist/components/Icon.d.mts",
|
|
365
395
|
"import": "./dist/components/Icon.mjs",
|
|
@@ -375,6 +405,11 @@
|
|
|
375
405
|
"import": "./dist/components/ImageAnnotation.mjs",
|
|
376
406
|
"default": "./dist/components/ImageAnnotation.mjs"
|
|
377
407
|
},
|
|
408
|
+
"./ImageCompare": {
|
|
409
|
+
"types": "./dist/components/ImageCompare.d.mts",
|
|
410
|
+
"import": "./dist/components/ImageCompare.mjs",
|
|
411
|
+
"default": "./dist/components/ImageCompare.mjs"
|
|
412
|
+
},
|
|
378
413
|
"./ImageCropper": {
|
|
379
414
|
"types": "./dist/components/ImageCropper.d.mts",
|
|
380
415
|
"import": "./dist/components/ImageCropper.mjs",
|
|
@@ -420,11 +455,21 @@
|
|
|
420
455
|
"import": "./dist/components/InputNumber.mjs",
|
|
421
456
|
"default": "./dist/components/InputNumber.mjs"
|
|
422
457
|
},
|
|
458
|
+
"./InputOTP": {
|
|
459
|
+
"types": "./dist/components/InputOTP.d.mts",
|
|
460
|
+
"import": "./dist/components/InputOTP.mjs",
|
|
461
|
+
"default": "./dist/components/InputOTP.mjs"
|
|
462
|
+
},
|
|
423
463
|
"./Kanban": {
|
|
424
464
|
"types": "./dist/components/Kanban.d.mts",
|
|
425
465
|
"import": "./dist/components/Kanban.mjs",
|
|
426
466
|
"default": "./dist/components/Kanban.mjs"
|
|
427
467
|
},
|
|
468
|
+
"./Kbd": {
|
|
469
|
+
"types": "./dist/components/Kbd.d.mts",
|
|
470
|
+
"import": "./dist/components/Kbd.mjs",
|
|
471
|
+
"default": "./dist/components/Kbd.mjs"
|
|
472
|
+
},
|
|
428
473
|
"./Layout": {
|
|
429
474
|
"types": "./dist/components/Layout.d.mts",
|
|
430
475
|
"import": "./dist/components/Layout.mjs",
|
|
@@ -450,11 +495,36 @@
|
|
|
450
495
|
"import": "./dist/components/Loading.mjs",
|
|
451
496
|
"default": "./dist/components/Loading.mjs"
|
|
452
497
|
},
|
|
498
|
+
"./LoadingBar": {
|
|
499
|
+
"types": "./dist/components/LoadingBar.d.mts",
|
|
500
|
+
"import": "./dist/components/LoadingBar.mjs",
|
|
501
|
+
"default": "./dist/components/LoadingBar.mjs"
|
|
502
|
+
},
|
|
503
|
+
"./LoadingBarContainer": {
|
|
504
|
+
"types": "./dist/components/LoadingBarContainer.d.mts",
|
|
505
|
+
"import": "./dist/components/LoadingBarContainer.mjs",
|
|
506
|
+
"default": "./dist/components/LoadingBarContainer.mjs"
|
|
507
|
+
},
|
|
453
508
|
"./MarkdownEditor": {
|
|
454
509
|
"types": "./dist/components/MarkdownEditor.d.mts",
|
|
455
510
|
"import": "./dist/components/MarkdownEditor.mjs",
|
|
456
511
|
"default": "./dist/components/MarkdownEditor.mjs"
|
|
457
512
|
},
|
|
513
|
+
"./Marquee": {
|
|
514
|
+
"types": "./dist/components/Marquee.d.mts",
|
|
515
|
+
"import": "./dist/components/Marquee.mjs",
|
|
516
|
+
"default": "./dist/components/Marquee.mjs"
|
|
517
|
+
},
|
|
518
|
+
"./MaskInput": {
|
|
519
|
+
"types": "./dist/components/MaskInput.d.mts",
|
|
520
|
+
"import": "./dist/components/MaskInput.mjs",
|
|
521
|
+
"default": "./dist/components/MaskInput.mjs"
|
|
522
|
+
},
|
|
523
|
+
"./Masonry": {
|
|
524
|
+
"types": "./dist/components/Masonry.d.mts",
|
|
525
|
+
"import": "./dist/components/Masonry.mjs",
|
|
526
|
+
"default": "./dist/components/Masonry.mjs"
|
|
527
|
+
},
|
|
458
528
|
"./Mentions": {
|
|
459
529
|
"types": "./dist/components/Mentions.d.mts",
|
|
460
530
|
"import": "./dist/components/Mentions.mjs",
|
|
@@ -490,6 +560,31 @@
|
|
|
490
560
|
"import": "./dist/components/Modal.mjs",
|
|
491
561
|
"default": "./dist/components/Modal.mjs"
|
|
492
562
|
},
|
|
563
|
+
"./NavigationMenu": {
|
|
564
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
565
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
566
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
567
|
+
},
|
|
568
|
+
"./NavigationMenuContent": {
|
|
569
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
570
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
571
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
572
|
+
},
|
|
573
|
+
"./NavigationMenuItem": {
|
|
574
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
575
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
576
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
577
|
+
},
|
|
578
|
+
"./NavigationMenuLink": {
|
|
579
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
580
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
581
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
582
|
+
},
|
|
583
|
+
"./NavigationMenuTrigger": {
|
|
584
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
585
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
586
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
587
|
+
},
|
|
493
588
|
"./NotificationCenter": {
|
|
494
589
|
"types": "./dist/components/NotificationCenter.d.mts",
|
|
495
590
|
"import": "./dist/components/NotificationCenter.mjs",
|
|
@@ -510,6 +605,11 @@
|
|
|
510
605
|
"import": "./dist/components/OrgChart.mjs",
|
|
511
606
|
"default": "./dist/components/OrgChart.mjs"
|
|
512
607
|
},
|
|
608
|
+
"./PageHeader": {
|
|
609
|
+
"types": "./dist/components/PageHeader.d.mts",
|
|
610
|
+
"import": "./dist/components/PageHeader.mjs",
|
|
611
|
+
"default": "./dist/components/PageHeader.mjs"
|
|
612
|
+
},
|
|
513
613
|
"./Pagination": {
|
|
514
614
|
"types": "./dist/components/Pagination.d.mts",
|
|
515
615
|
"import": "./dist/components/Pagination.mjs",
|
|
@@ -595,6 +695,11 @@
|
|
|
595
695
|
"import": "./dist/components/ScatterChart.mjs",
|
|
596
696
|
"default": "./dist/components/ScatterChart.mjs"
|
|
597
697
|
},
|
|
698
|
+
"./ScrollArea": {
|
|
699
|
+
"types": "./dist/components/ScrollArea.d.mts",
|
|
700
|
+
"import": "./dist/components/ScrollArea.mjs",
|
|
701
|
+
"default": "./dist/components/ScrollArea.mjs"
|
|
702
|
+
},
|
|
598
703
|
"./ScrollSpy": {
|
|
599
704
|
"types": "./dist/components/ScrollSpy.d.mts",
|
|
600
705
|
"import": "./dist/components/ScrollSpy.mjs",
|
|
@@ -635,6 +740,11 @@
|
|
|
635
740
|
"import": "./dist/components/Space.mjs",
|
|
636
741
|
"default": "./dist/components/Space.mjs"
|
|
637
742
|
},
|
|
743
|
+
"./SplitButton": {
|
|
744
|
+
"types": "./dist/components/SplitButton.d.mts",
|
|
745
|
+
"import": "./dist/components/SplitButton.mjs",
|
|
746
|
+
"default": "./dist/components/SplitButton.mjs"
|
|
747
|
+
},
|
|
638
748
|
"./Splitter": {
|
|
639
749
|
"types": "./dist/components/Splitter.d.mts",
|
|
640
750
|
"import": "./dist/components/Splitter.mjs",
|
|
@@ -700,6 +810,11 @@
|
|
|
700
810
|
"import": "./dist/components/Tag.mjs",
|
|
701
811
|
"default": "./dist/components/Tag.mjs"
|
|
702
812
|
},
|
|
813
|
+
"./TagsInput": {
|
|
814
|
+
"types": "./dist/components/TagsInput.d.mts",
|
|
815
|
+
"import": "./dist/components/TagsInput.mjs",
|
|
816
|
+
"default": "./dist/components/TagsInput.mjs"
|
|
817
|
+
},
|
|
703
818
|
"./TaskBoard": {
|
|
704
819
|
"types": "./dist/components/TaskBoard.d.mts",
|
|
705
820
|
"import": "./dist/components/TaskBoard.mjs",
|
|
@@ -783,7 +898,7 @@
|
|
|
783
898
|
"access": "public"
|
|
784
899
|
},
|
|
785
900
|
"dependencies": {
|
|
786
|
-
"@expcat/tigercat-core": "2.
|
|
901
|
+
"@expcat/tigercat-core": "2.1.1"
|
|
787
902
|
},
|
|
788
903
|
"devDependencies": {
|
|
789
904
|
"@types/node": "^26.1.1",
|
package/dist/chunk-OTGGPXDT.mjs
DELETED
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderVueOverlayTeleport,
|
|
3
|
-
useVueAnchoredOverlay
|
|
4
|
-
} from "./chunk-Q7Y22OFX.mjs";
|
|
5
|
-
import {
|
|
6
|
-
useTigerConfig
|
|
7
|
-
} from "./chunk-UOJOJBEU.mjs";
|
|
8
|
-
|
|
9
|
-
// src/components/Cascader.ts
|
|
10
|
-
import { defineComponent, computed, ref, h, watch } from "vue";
|
|
11
|
-
import {
|
|
12
|
-
classNames,
|
|
13
|
-
cascaderBaseClasses,
|
|
14
|
-
cascaderDropdownClasses,
|
|
15
|
-
cascaderColumnClasses,
|
|
16
|
-
cascaderSearchInputClasses,
|
|
17
|
-
cascaderEmptyStateClasses,
|
|
18
|
-
cascaderSearchResultClasses,
|
|
19
|
-
getCascaderTriggerClasses,
|
|
20
|
-
getCascaderOptionClasses,
|
|
21
|
-
getCascaderColumns,
|
|
22
|
-
getCascaderDisplayLabel,
|
|
23
|
-
flattenCascaderOptions,
|
|
24
|
-
filterCascaderOptions,
|
|
25
|
-
isCascaderOptionExpandable,
|
|
26
|
-
getPickerComboboxAria,
|
|
27
|
-
getPickerListboxAria,
|
|
28
|
-
getPickerOptionAria,
|
|
29
|
-
getPickerTriggerKeyAction,
|
|
30
|
-
icon20ViewBox,
|
|
31
|
-
chevronDownSolidIcon20PathD,
|
|
32
|
-
closeSolidIcon20PathD,
|
|
33
|
-
coerceClassValue,
|
|
34
|
-
resolveLocaleText,
|
|
35
|
-
mergeTigerLocale
|
|
36
|
-
} from "@expcat/tigercat-core";
|
|
37
|
-
var cascaderInstanceId = 0;
|
|
38
|
-
var ChevronRightIcon = h(
|
|
39
|
-
"svg",
|
|
40
|
-
{
|
|
41
|
-
class: "w-4 h-4 text-[var(--tiger-text-muted,#9ca3af)]",
|
|
42
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
-
viewBox: "0 0 20 20",
|
|
44
|
-
fill: "currentColor"
|
|
45
|
-
},
|
|
46
|
-
[
|
|
47
|
-
h("path", {
|
|
48
|
-
"fill-rule": "evenodd",
|
|
49
|
-
d: "M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",
|
|
50
|
-
"clip-rule": "evenodd"
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
);
|
|
54
|
-
var Cascader = defineComponent({
|
|
55
|
-
name: "TigerCascader",
|
|
56
|
-
props: {
|
|
57
|
-
modelValue: {
|
|
58
|
-
type: Array,
|
|
59
|
-
default: () => []
|
|
60
|
-
},
|
|
61
|
-
options: {
|
|
62
|
-
type: Array,
|
|
63
|
-
default: () => []
|
|
64
|
-
},
|
|
65
|
-
placeholder: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: "Please select"
|
|
68
|
-
},
|
|
69
|
-
size: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: "md"
|
|
72
|
-
},
|
|
73
|
-
disabled: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: false
|
|
76
|
-
},
|
|
77
|
-
clearable: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: true
|
|
80
|
-
},
|
|
81
|
-
searchable: {
|
|
82
|
-
type: [Boolean, Object],
|
|
83
|
-
default: false
|
|
84
|
-
},
|
|
85
|
-
searchValue: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: void 0
|
|
88
|
-
},
|
|
89
|
-
defaultSearchValue: {
|
|
90
|
-
type: String,
|
|
91
|
-
default: ""
|
|
92
|
-
},
|
|
93
|
-
expandTrigger: {
|
|
94
|
-
type: String,
|
|
95
|
-
default: "click"
|
|
96
|
-
},
|
|
97
|
-
changeOnSelect: {
|
|
98
|
-
type: Boolean,
|
|
99
|
-
default: false
|
|
100
|
-
},
|
|
101
|
-
separator: {
|
|
102
|
-
type: String,
|
|
103
|
-
default: " / "
|
|
104
|
-
},
|
|
105
|
-
emptyText: {
|
|
106
|
-
type: String,
|
|
107
|
-
default: void 0
|
|
108
|
-
},
|
|
109
|
-
/**
|
|
110
|
-
* Locale overrides merged on top of ConfigProvider locale
|
|
111
|
-
*/
|
|
112
|
-
locale: {
|
|
113
|
-
type: Object,
|
|
114
|
-
default: void 0
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
emits: ["update:modelValue", "update:searchValue", "change", "search-change"],
|
|
118
|
-
setup(props, { emit, attrs }) {
|
|
119
|
-
const instanceId = ++cascaderInstanceId;
|
|
120
|
-
const config = useTigerConfig();
|
|
121
|
-
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
122
|
-
const isOpen = ref(false);
|
|
123
|
-
const uncontrolledSearchValue = ref(props.defaultSearchValue);
|
|
124
|
-
const searchQuery = computed(() => props.searchValue ?? uncontrolledSearchValue.value);
|
|
125
|
-
const activePath = ref([]);
|
|
126
|
-
const triggerRef = ref(null);
|
|
127
|
-
const dropdownRef = ref(null);
|
|
128
|
-
const searchInputRef = ref(null);
|
|
129
|
-
const overlay = useVueAnchoredOverlay({
|
|
130
|
-
enabled: isOpen,
|
|
131
|
-
referenceRef: triggerRef,
|
|
132
|
-
floatingRef: dropdownRef,
|
|
133
|
-
placement: "bottom-start",
|
|
134
|
-
offset: 4,
|
|
135
|
-
layout: "fullscreen-sm",
|
|
136
|
-
matchReferenceWidth: true,
|
|
137
|
-
dismissOnOutside: true,
|
|
138
|
-
dismissOnEscape: true,
|
|
139
|
-
restoreFocusOnDismiss: true,
|
|
140
|
-
onDismiss: closeDropdown
|
|
141
|
-
});
|
|
142
|
-
const displayLabel = computed(() => {
|
|
143
|
-
if (!props.modelValue || props.modelValue.length === 0) return "";
|
|
144
|
-
return getCascaderDisplayLabel(props.options, props.modelValue, props.separator);
|
|
145
|
-
});
|
|
146
|
-
const columns = computed(() => {
|
|
147
|
-
return getCascaderColumns(props.options, activePath.value);
|
|
148
|
-
});
|
|
149
|
-
const isSearchMode = computed(() => {
|
|
150
|
-
return props.searchable && searchQuery.value.length > 0;
|
|
151
|
-
});
|
|
152
|
-
const flattenedOptions = computed(() => {
|
|
153
|
-
if (!props.searchable) return [];
|
|
154
|
-
return flattenCascaderOptions(props.options, [], [], props.changeOnSelect);
|
|
155
|
-
});
|
|
156
|
-
const searchResults = computed(() => {
|
|
157
|
-
if (!isSearchMode.value) return [];
|
|
158
|
-
return filterCascaderOptions(flattenedOptions.value, searchQuery.value, props.searchable);
|
|
159
|
-
});
|
|
160
|
-
const triggerClasses = computed(
|
|
161
|
-
() => classNames(
|
|
162
|
-
getCascaderTriggerClasses(props.size, props.disabled, isOpen.value),
|
|
163
|
-
coerceClassValue(attrs.class)
|
|
164
|
-
)
|
|
165
|
-
);
|
|
166
|
-
watch(isOpen, (open) => {
|
|
167
|
-
if (open) {
|
|
168
|
-
activePath.value = props.modelValue ? [...props.modelValue] : [];
|
|
169
|
-
updateSearchValue("");
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
function updateSearchValue(value) {
|
|
173
|
-
if (props.searchValue === void 0) {
|
|
174
|
-
uncontrolledSearchValue.value = value;
|
|
175
|
-
}
|
|
176
|
-
emit("update:searchValue", value);
|
|
177
|
-
emit("search-change", value);
|
|
178
|
-
}
|
|
179
|
-
function toggleOpen() {
|
|
180
|
-
if (props.disabled) return;
|
|
181
|
-
isOpen.value = !isOpen.value;
|
|
182
|
-
}
|
|
183
|
-
function closeDropdown() {
|
|
184
|
-
isOpen.value = false;
|
|
185
|
-
}
|
|
186
|
-
function handleOptionClick(option, level) {
|
|
187
|
-
if (option.disabled) return;
|
|
188
|
-
const newPath = activePath.value.slice(0, level);
|
|
189
|
-
newPath.push(option.value);
|
|
190
|
-
activePath.value = newPath;
|
|
191
|
-
const hasChildren = isCascaderOptionExpandable(option);
|
|
192
|
-
if (!hasChildren) {
|
|
193
|
-
emit("update:modelValue", newPath);
|
|
194
|
-
emit("change", newPath);
|
|
195
|
-
closeDropdown();
|
|
196
|
-
} else if (props.changeOnSelect) {
|
|
197
|
-
emit("update:modelValue", newPath);
|
|
198
|
-
emit("change", newPath);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function handleOptionHover(option, level) {
|
|
202
|
-
if (props.expandTrigger !== "hover" || option.disabled) return;
|
|
203
|
-
const newPath = activePath.value.slice(0, level);
|
|
204
|
-
newPath.push(option.value);
|
|
205
|
-
activePath.value = newPath;
|
|
206
|
-
}
|
|
207
|
-
function handleSearchResultClick(valuePath, disabled) {
|
|
208
|
-
if (disabled) return;
|
|
209
|
-
emit("update:modelValue", valuePath);
|
|
210
|
-
emit("change", valuePath);
|
|
211
|
-
closeDropdown();
|
|
212
|
-
}
|
|
213
|
-
function handleClear(e) {
|
|
214
|
-
e.stopPropagation();
|
|
215
|
-
emit("update:modelValue", []);
|
|
216
|
-
emit("change", []);
|
|
217
|
-
}
|
|
218
|
-
function handleSearchInput(e) {
|
|
219
|
-
updateSearchValue(e.target.value);
|
|
220
|
-
}
|
|
221
|
-
function handleTriggerKeyDown(e) {
|
|
222
|
-
const action = getPickerTriggerKeyAction(e.key, isOpen.value);
|
|
223
|
-
if (action === "none") return;
|
|
224
|
-
e.preventDefault();
|
|
225
|
-
if (action === "toggle") {
|
|
226
|
-
toggleOpen();
|
|
227
|
-
} else if (action === "open") {
|
|
228
|
-
isOpen.value = true;
|
|
229
|
-
} else if (action === "close") {
|
|
230
|
-
closeDropdown();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return () => {
|
|
234
|
-
const hasValue = props.modelValue && props.modelValue.length > 0;
|
|
235
|
-
const showClear = props.clearable && hasValue && !props.disabled;
|
|
236
|
-
const listboxId = `tiger-cascader-listbox-${instanceId}`;
|
|
237
|
-
const chevronIcon = h(
|
|
238
|
-
"svg",
|
|
239
|
-
{
|
|
240
|
-
class: classNames(
|
|
241
|
-
"w-5 h-5 text-[var(--tiger-cascader-icon,var(--tiger-text-muted,#9ca3af))] transition-transform",
|
|
242
|
-
isOpen.value && "rotate-180"
|
|
243
|
-
),
|
|
244
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
245
|
-
viewBox: icon20ViewBox,
|
|
246
|
-
fill: "currentColor"
|
|
247
|
-
},
|
|
248
|
-
[
|
|
249
|
-
h("path", {
|
|
250
|
-
"fill-rule": "evenodd",
|
|
251
|
-
d: chevronDownSolidIcon20PathD,
|
|
252
|
-
"clip-rule": "evenodd"
|
|
253
|
-
})
|
|
254
|
-
]
|
|
255
|
-
);
|
|
256
|
-
const clearIcon = showClear ? h(
|
|
257
|
-
"span",
|
|
258
|
-
{
|
|
259
|
-
class: "flex items-center",
|
|
260
|
-
role: "button",
|
|
261
|
-
"aria-label": resolveLocaleText(
|
|
262
|
-
"Clear selection",
|
|
263
|
-
mergedLocale.value?.common?.clearText
|
|
264
|
-
),
|
|
265
|
-
onClick: handleClear
|
|
266
|
-
},
|
|
267
|
-
[
|
|
268
|
-
h(
|
|
269
|
-
"svg",
|
|
270
|
-
{
|
|
271
|
-
class: "w-4 h-4 text-[var(--tiger-cascader-icon,var(--tiger-text-muted,#9ca3af))] hover:text-[var(--tiger-cascader-icon-hover,var(--tiger-text-muted,#6b7280))]",
|
|
272
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
273
|
-
viewBox: icon20ViewBox,
|
|
274
|
-
fill: "currentColor"
|
|
275
|
-
},
|
|
276
|
-
[
|
|
277
|
-
h("path", {
|
|
278
|
-
"fill-rule": "evenodd",
|
|
279
|
-
d: closeSolidIcon20PathD,
|
|
280
|
-
"clip-rule": "evenodd"
|
|
281
|
-
})
|
|
282
|
-
]
|
|
283
|
-
)
|
|
284
|
-
]
|
|
285
|
-
) : null;
|
|
286
|
-
const trigger = h(
|
|
287
|
-
"button",
|
|
288
|
-
{
|
|
289
|
-
ref: triggerRef,
|
|
290
|
-
type: "button",
|
|
291
|
-
class: triggerClasses.value,
|
|
292
|
-
disabled: props.disabled,
|
|
293
|
-
...getPickerComboboxAria({ expanded: isOpen.value, listboxId }),
|
|
294
|
-
onClick: toggleOpen,
|
|
295
|
-
onKeydown: handleTriggerKeyDown
|
|
296
|
-
},
|
|
297
|
-
[
|
|
298
|
-
h(
|
|
299
|
-
"span",
|
|
300
|
-
{
|
|
301
|
-
class: classNames(
|
|
302
|
-
"flex-1 text-left truncate",
|
|
303
|
-
!hasValue && "text-[var(--tiger-cascader-placeholder,var(--tiger-text-muted,#9ca3af))]"
|
|
304
|
-
)
|
|
305
|
-
},
|
|
306
|
-
hasValue ? displayLabel.value : props.placeholder
|
|
307
|
-
),
|
|
308
|
-
h("span", { class: "flex items-center gap-1" }, [clearIcon, chevronIcon])
|
|
309
|
-
]
|
|
310
|
-
);
|
|
311
|
-
let dropdownContent = null;
|
|
312
|
-
if (isOpen.value) {
|
|
313
|
-
const children = [];
|
|
314
|
-
if (props.searchable) {
|
|
315
|
-
children.push(
|
|
316
|
-
h("input", {
|
|
317
|
-
ref: searchInputRef,
|
|
318
|
-
type: "text",
|
|
319
|
-
class: cascaderSearchInputClasses,
|
|
320
|
-
placeholder: resolveLocaleText(
|
|
321
|
-
"Search...",
|
|
322
|
-
mergedLocale.value?.common?.searchPlaceholder
|
|
323
|
-
),
|
|
324
|
-
value: searchQuery.value,
|
|
325
|
-
onInput: handleSearchInput,
|
|
326
|
-
"aria-label": resolveLocaleText(
|
|
327
|
-
"Search options",
|
|
328
|
-
mergedLocale.value?.common?.searchPlaceholder
|
|
329
|
-
)
|
|
330
|
-
})
|
|
331
|
-
);
|
|
332
|
-
}
|
|
333
|
-
if (isSearchMode.value) {
|
|
334
|
-
if (searchResults.value.length === 0) {
|
|
335
|
-
children.push(
|
|
336
|
-
h(
|
|
337
|
-
"div",
|
|
338
|
-
{ class: cascaderEmptyStateClasses },
|
|
339
|
-
resolveLocaleText(
|
|
340
|
-
"No results found",
|
|
341
|
-
props.emptyText,
|
|
342
|
-
mergedLocale.value?.common?.emptyText
|
|
343
|
-
)
|
|
344
|
-
)
|
|
345
|
-
);
|
|
346
|
-
} else {
|
|
347
|
-
const searchList = h(
|
|
348
|
-
"div",
|
|
349
|
-
{ class: "max-h-64 overflow-auto", ...getPickerListboxAria({ id: listboxId }) },
|
|
350
|
-
searchResults.value.map(
|
|
351
|
-
(item) => h(
|
|
352
|
-
"div",
|
|
353
|
-
{
|
|
354
|
-
class: classNames(
|
|
355
|
-
cascaderSearchResultClasses,
|
|
356
|
-
item.disabled && "opacity-50 cursor-not-allowed"
|
|
357
|
-
),
|
|
358
|
-
...getPickerOptionAria({
|
|
359
|
-
selected: props.modelValue?.join(",") === item.valuePath.join(","),
|
|
360
|
-
disabled: item.disabled
|
|
361
|
-
}),
|
|
362
|
-
onClick: () => handleSearchResultClick(item.valuePath, item.disabled)
|
|
363
|
-
},
|
|
364
|
-
typeof props.searchable === "object" && props.searchable.render ? props.searchable.render(searchQuery.value, item.path) : item.label
|
|
365
|
-
)
|
|
366
|
-
)
|
|
367
|
-
);
|
|
368
|
-
children.push(searchList);
|
|
369
|
-
}
|
|
370
|
-
} else {
|
|
371
|
-
const columnElements = columns.value.map(
|
|
372
|
-
(col, colIndex) => h(
|
|
373
|
-
"div",
|
|
374
|
-
{
|
|
375
|
-
class: cascaderColumnClasses,
|
|
376
|
-
...getPickerListboxAria({
|
|
377
|
-
id: colIndex === 0 ? listboxId : void 0,
|
|
378
|
-
label: `Level ${colIndex + 1}`
|
|
379
|
-
})
|
|
380
|
-
},
|
|
381
|
-
col.options.map((option) => {
|
|
382
|
-
const isSelected = col.selectedValue === option.value;
|
|
383
|
-
const hasChildren = isCascaderOptionExpandable(option);
|
|
384
|
-
return h(
|
|
385
|
-
"div",
|
|
386
|
-
{
|
|
387
|
-
class: getCascaderOptionClasses(isSelected, !!option.disabled, props.size),
|
|
388
|
-
...getPickerOptionAria({ selected: isSelected, disabled: !!option.disabled }),
|
|
389
|
-
onClick: () => handleOptionClick(option, colIndex),
|
|
390
|
-
onMouseenter: () => handleOptionHover(option, colIndex)
|
|
391
|
-
},
|
|
392
|
-
[
|
|
393
|
-
h("span", { class: "flex-1 truncate" }, option.label),
|
|
394
|
-
hasChildren ? ChevronRightIcon : null
|
|
395
|
-
]
|
|
396
|
-
);
|
|
397
|
-
})
|
|
398
|
-
)
|
|
399
|
-
);
|
|
400
|
-
children.push(h("div", { class: "flex" }, columnElements));
|
|
401
|
-
}
|
|
402
|
-
dropdownContent = h(
|
|
403
|
-
"div",
|
|
404
|
-
{
|
|
405
|
-
ref: dropdownRef,
|
|
406
|
-
class: classNames(
|
|
407
|
-
cascaderDropdownClasses,
|
|
408
|
-
isSearchMode.value && "flex-col",
|
|
409
|
-
overlay.floatingClasses.value
|
|
410
|
-
),
|
|
411
|
-
style: overlay.floatingStyles.value,
|
|
412
|
-
"data-positioned": overlay.positioned.value
|
|
413
|
-
},
|
|
414
|
-
children
|
|
415
|
-
);
|
|
416
|
-
}
|
|
417
|
-
return h(
|
|
418
|
-
"div",
|
|
419
|
-
{
|
|
420
|
-
class: cascaderBaseClasses,
|
|
421
|
-
"data-testid": "cascader"
|
|
422
|
-
},
|
|
423
|
-
[trigger, renderVueOverlayTeleport(dropdownContent, overlay.target.value)]
|
|
424
|
-
);
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
var Cascader_default = Cascader;
|
|
429
|
-
|
|
430
|
-
export {
|
|
431
|
-
Cascader,
|
|
432
|
-
Cascader_default
|
|
433
|
-
};
|