@talex-touch/tuffex 0.3.3 → 0.3.4
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 +49 -221
- package/dist/es/agents/index.js +1 -1
- package/dist/es/alert/index.d.ts +104 -1
- package/dist/es/alert/index.js +6 -0
- package/dist/es/alert/src/TxAlert.vue.d.ts +1 -0
- package/dist/es/alert/src/TxAlert.vue.js +2 -2
- package/dist/es/alert/src/TxAlert.vue2.js +6 -2
- package/dist/es/auto-sizer/index.js +1 -1
- package/dist/es/auto-sizer/src/TxAutoSizer.vue.js +2 -2
- package/dist/es/avatar/index.js +1 -1
- package/dist/es/avatar/src/TxAvatar.vue.js +1 -1
- package/dist/es/avatar/src/TxAvatar.vue2.js +47 -6
- package/dist/es/avatar/src/TxAvatarGroup.vue.js +1 -1
- package/dist/es/avatar/src/TxAvatarGroup.vue2.js +1 -1
- package/dist/es/avatar/src/types.d.ts +2 -1
- package/dist/es/badge/index.d.ts +78 -1
- package/dist/es/badge/index.js +6 -0
- package/dist/es/badge/src/TxBadge.vue.js +2 -2
- package/dist/es/base-anchor/index.d.ts +464 -0
- package/dist/es/base-anchor/index.js +6 -0
- package/dist/es/base-anchor/src/TxBaseAnchor.vue.d.ts +124 -0
- package/dist/es/base-anchor/src/TxBaseAnchor.vue.js +7 -0
- package/dist/es/base-anchor/src/TxBaseAnchor.vue2.js +798 -0
- package/dist/es/base-anchor/src/types.d.ts +36 -0
- package/dist/es/base-surface/index.d.ts +561 -0
- package/dist/es/base-surface/index.js +7 -0
- package/dist/es/base-surface/src/TxBaseSurface.vue.d.ts +123 -0
- package/dist/es/base-surface/src/TxBaseSurface.vue.js +1012 -0
- package/dist/es/base-surface/src/TxBaseSurface.vue2.js +6 -0
- package/dist/es/base-surface/src/style/index.css +105 -0
- package/dist/es/base-surface/src/types.d.ts +87 -0
- package/dist/es/blank-slate/index.d.ts +9 -9
- package/dist/es/blank-slate/index.js +1 -1
- package/dist/es/button/index.d.ts +45 -15
- package/dist/es/button/index.js +2 -1
- package/dist/es/button/src/button.vue.d.ts +7 -1
- package/dist/es/button/src/button.vue.js +50 -20
- package/dist/es/button/src/split-button.vue.js +31 -5
- package/dist/es/button/src/style/index.css +72 -15
- package/dist/es/button/src/types.d.ts +4 -0
- package/dist/es/card/index.d.ts +236 -56
- package/dist/es/card/index.js +1 -1
- package/dist/es/card/src/TxCard.vue.d.ts +40 -4
- package/dist/es/card/src/TxCard.vue.js +1 -1
- package/dist/es/card/src/TxCard.vue2.js +288 -57
- package/dist/es/card/src/types.d.ts +14 -1
- package/dist/es/card-item/index.d.ts +7 -7
- package/dist/es/card-item/index.js +1 -1
- package/dist/es/cascader/index.d.ts +15 -15
- package/dist/es/cascader/index.js +1 -1
- package/dist/es/cascader/src/TxCascader.vue.d.ts +1 -1
- package/dist/es/cascader/src/TxCascader.vue.js +1 -1
- package/dist/es/cascader/src/TxCascader.vue2.js +1 -3
- package/dist/es/chat/index.d.ts +18 -18
- package/dist/es/chat/index.js +1 -1
- package/dist/es/chat/src/TxChatComposer.vue.js +1 -1
- package/dist/es/chat/src/TxChatComposer.vue2.js +1 -0
- package/dist/es/chat/src/TxTypingIndicator.vue.d.ts +1 -1
- package/dist/es/code-editor/index.d.ts +387 -0
- package/dist/es/code-editor/index.js +8 -0
- package/dist/es/code-editor/src/TxCodeEditor.vue.d.ts +117 -0
- package/dist/es/code-editor/src/TxCodeEditor.vue.js +7 -0
- package/dist/es/code-editor/src/TxCodeEditor.vue2.js +658 -0
- package/dist/es/code-editor/src/TxCodeEditorToolbar.vue.d.ts +40 -0
- package/dist/es/code-editor/src/TxCodeEditorToolbar.vue.js +7 -0
- package/dist/es/code-editor/src/TxCodeEditorToolbar.vue2.js +89 -0
- package/dist/es/code-editor/src/types.d.ts +47 -0
- package/dist/es/command-palette/index.js +1 -1
- package/dist/es/command-palette/src/TxCommandPalette.vue.js +1 -1
- package/dist/es/command-palette/src/TxCommandPalette.vue2.js +128 -21
- package/dist/es/components.css +4253 -3117
- package/dist/es/components.d.ts +15 -2
- package/dist/es/components.js +44 -7
- package/dist/es/container/src/TxCol.vue.d.ts +1 -1
- package/dist/es/container/src/TxCol.vue2.js +1 -1
- package/dist/es/container/src/TxContainer.vue.d.ts +1 -1
- package/dist/es/container/src/TxRow.vue.d.ts +2 -2
- package/dist/es/container/src/TxRow.vue2.js +1 -1
- package/dist/es/context-menu/index.js +1 -1
- package/dist/es/context-menu/src/TxContextMenu.vue.js +1 -1
- package/dist/es/context-menu/src/TxContextMenu.vue2.js +4 -1
- package/dist/es/corner-overlay/index.js +1 -1
- package/dist/es/data-table/index.d.ts +15 -15
- package/dist/es/data-table/index.js +1 -1
- package/dist/es/data-table/src/TxDataTable.vue.d.ts +1 -1
- package/dist/es/date-picker/index.js +1 -1
- package/dist/es/dialog/index.js +1 -1
- package/dist/es/dialog/src/TxBlowDialog.vue.js +6 -2
- package/dist/es/dialog/src/TxBottomDialog.vue.js +1 -1
- package/dist/es/dialog/src/TxBottomDialog.vue2.js +6 -2
- package/dist/es/dialog/src/TxPopperDialog.vue.js +6 -2
- package/dist/es/dialog/src/TxTouchTip.vue.js +1 -1
- package/dist/es/dialog/src/TxTouchTip.vue2.js +25 -22
- package/dist/es/dialog/src/types.d.ts +1 -1
- package/dist/es/drawer/index.d.ts +24 -30
- package/dist/es/drawer/index.js +1 -1
- package/dist/es/drawer/src/TxDrawer.vue.d.ts +1 -4
- package/dist/es/drawer/src/TxDrawer.vue.js +8 -2
- package/dist/es/dropdown-menu/index.d.ts +81 -18
- package/dist/es/dropdown-menu/index.js +1 -1
- package/dist/es/dropdown-menu/src/TxDropdownMenu.vue.d.ts +11 -2
- package/dist/es/dropdown-menu/src/TxDropdownMenu.vue.js +1 -1
- package/dist/es/dropdown-menu/src/TxDropdownMenu.vue2.js +13 -3
- package/dist/es/dropdown-menu/src/types.d.ts +8 -1
- package/dist/es/edge-fade-mask/index.d.ts +120 -0
- package/dist/es/edge-fade-mask/index.js +6 -0
- package/dist/es/edge-fade-mask/src/TxEdgeFadeMask.vue.d.ts +51 -0
- package/dist/es/edge-fade-mask/src/TxEdgeFadeMask.vue.js +7 -0
- package/dist/es/edge-fade-mask/src/TxEdgeFadeMask.vue2.js +154 -0
- package/dist/es/edge-fade-mask/src/types.d.ts +9 -0
- package/dist/es/empty/index.js +1 -1
- package/dist/es/empty-state/index.d.ts +9 -9
- package/dist/es/empty-state/index.js +1 -1
- package/dist/es/empty-state/src/TxEmptyState.vue.js +1 -1
- package/dist/es/empty-state/src/TxEmptyState.vue2.js +25 -17
- package/dist/es/error-state/index.d.ts +131 -0
- package/dist/es/error-state/index.js +6 -0
- package/dist/es/error-state/src/TxErrorState.vue.d.ts +13 -0
- package/dist/es/error-state/src/TxErrorState.vue.js +35 -0
- package/dist/es/error-state/src/TxErrorState.vue2.js +5 -0
- package/dist/es/error-state/src/types.d.ts +3 -0
- package/dist/es/file-uploader/index.js +1 -1
- package/dist/es/flat-radio/index.d.ts +201 -0
- package/dist/es/flat-radio/index.js +8 -0
- package/dist/es/flat-radio/src/TxFlatRadio.vue.d.ts +51 -0
- package/dist/es/flat-radio/src/TxFlatRadio.vue.js +7 -0
- package/dist/es/flat-radio/src/TxFlatRadio.vue2.js +237 -0
- package/dist/es/flat-radio/src/TxFlatRadioItem.vue.d.ts +43 -0
- package/dist/es/flat-radio/src/TxFlatRadioItem.vue.js +7 -0
- package/dist/es/flat-radio/src/TxFlatRadioItem.vue2.js +87 -0
- package/dist/es/flat-radio/src/types.d.ts +28 -0
- package/dist/es/flat-radio/src/types.js +3 -0
- package/dist/es/flat-select/index.d.ts +159 -0
- package/dist/es/flat-select/index.js +8 -0
- package/dist/es/flat-select/src/TxFlatSelect.vue.d.ts +56 -0
- package/dist/es/flat-select/src/TxFlatSelect.vue.js +7 -0
- package/dist/es/flat-select/src/TxFlatSelect.vue2.js +208 -0
- package/dist/es/flat-select/src/TxFlatSelectItem.vue.d.ts +47 -0
- package/dist/es/flat-select/src/TxFlatSelectItem.vue.js +7 -0
- package/dist/es/flat-select/src/TxFlatSelectItem.vue2.js +71 -0
- package/dist/es/flat-select/src/types.d.ts +21 -0
- package/dist/es/flat-select/src/types.js +3 -0
- package/dist/es/flex/index.d.ts +33 -33
- package/dist/es/flex/index.js +1 -1
- package/dist/es/flex/src/TxFlex.vue.d.ts +3 -3
- package/dist/es/flip-overlay/index.d.ts +579 -0
- package/dist/es/flip-overlay/index.js +7 -0
- package/dist/es/flip-overlay/src/TxFlipOverlay.vue.d.ts +175 -0
- package/dist/es/flip-overlay/src/TxFlipOverlay.vue.js +982 -0
- package/dist/es/flip-overlay/src/TxFlipOverlay.vue3.js +6 -0
- package/dist/es/flip-overlay/src/types.d.ts +53 -0
- package/dist/es/floating/index.d.ts +145 -0
- package/dist/es/floating/index.js +8 -0
- package/dist/es/floating/src/TxFloating.vue.d.ts +45 -0
- package/dist/es/floating/src/TxFloating.vue.js +7 -0
- package/dist/es/floating/src/TxFloating.vue2.js +118 -0
- package/dist/es/floating/src/TxFloatingElement.vue.d.ts +39 -0
- package/dist/es/floating/src/TxFloatingElement.vue.js +7 -0
- package/dist/es/floating/src/TxFloatingElement.vue2.js +43 -0
- package/dist/es/floating/src/context.d.ts +7 -0
- package/dist/es/floating/src/context.js +3 -0
- package/dist/es/floating/src/types.d.ts +10 -0
- package/dist/es/form/index.d.ts +9 -9
- package/dist/es/form/index.js +1 -1
- package/dist/es/fusion/index.d.ts +15 -15
- package/dist/es/fusion/index.js +1 -1
- package/dist/es/fusion/src/TxFusion.vue.d.ts +1 -1
- package/dist/es/glass-surface/index.d.ts +30 -30
- package/dist/es/glass-surface/index.js +1 -1
- package/dist/es/glass-surface/src/TxGlassSurface.vue.d.ts +2 -2
- package/dist/es/glass-surface/src/TxGlassSurface.vue.js +16 -38
- package/dist/es/glow-text/index.d.ts +24 -6
- package/dist/es/glow-text/index.js +1 -1
- package/dist/es/glow-text/src/TxGlowText.vue.d.ts +3 -3
- package/dist/es/glow-text/src/TxGlowText.vue.js +1 -1
- package/dist/es/glow-text/src/TxGlowText.vue2.js +93 -10
- package/dist/es/glow-text/src/types.d.ts +2 -0
- package/dist/es/gradient-border/index.js +1 -1
- package/dist/es/gradual-blur/index.d.ts +42 -42
- package/dist/es/gradual-blur/index.js +1 -1
- package/dist/es/gradual-blur/src/TxGradualBlur.vue.d.ts +3 -3
- package/dist/es/gradual-blur/src/TxGradualBlur.vue.js +1 -1
- package/dist/es/grid/src/TxGrid.vue.d.ts +2 -2
- package/dist/es/grid/src/TxGrid.vue2.js +1 -1
- package/dist/es/grid-layout/index.js +1 -1
- package/dist/es/group-block/index.d.ts +321 -4
- package/dist/es/group-block/index.js +8 -2
- package/dist/es/group-block/src/TxBlockInput.vue.d.ts +90 -0
- package/dist/es/group-block/src/TxBlockInput.vue.js +94 -0
- package/dist/es/group-block/src/TxBlockInput.vue3.js +6 -0
- package/dist/es/group-block/src/TxBlockSelect.vue.d.ts +73 -0
- package/dist/es/group-block/src/TxBlockSelect.vue.js +76 -0
- package/dist/es/group-block/src/TxBlockSelect.vue3.js +6 -0
- package/dist/es/group-block/src/TxGroupBlock.vue.js +1 -1
- package/dist/es/group-block/src/types.d.ts +138 -0
- package/dist/es/guide-state/index.d.ts +131 -0
- package/dist/es/guide-state/index.js +6 -0
- package/dist/es/guide-state/src/TxGuideState.vue.d.ts +13 -0
- package/dist/es/guide-state/src/TxGuideState.vue.js +35 -0
- package/dist/es/guide-state/src/TxGuideState.vue2.js +5 -0
- package/dist/es/guide-state/src/types.d.ts +3 -0
- package/dist/es/icon/index.js +1 -1
- package/dist/es/icon/src/TxIcon.vue.js +1 -1
- package/dist/es/icon/src/TxIcon.vue2.js +10 -4
- package/dist/es/image-gallery/index.js +1 -1
- package/dist/es/image-uploader/index.js +1 -1
- package/dist/es/index.js +53 -13
- package/dist/es/input/index.d.ts +211 -1
- package/dist/es/input/index.js +2 -1
- package/dist/es/input/src/TxInput.vue.d.ts +21 -11
- package/dist/es/input/src/TxInput.vue.js +1 -1
- package/dist/es/input/src/TxInput.vue2.js +80 -23
- package/dist/es/keyframe-stroke-text/index.d.ts +146 -0
- package/dist/es/keyframe-stroke-text/index.js +6 -0
- package/dist/es/keyframe-stroke-text/src/TxKeyframeStrokeText.vue.d.ts +48 -0
- package/dist/es/keyframe-stroke-text/src/TxKeyframeStrokeText.vue.js +7 -0
- package/dist/es/keyframe-stroke-text/src/TxKeyframeStrokeText.vue2.js +102 -0
- package/dist/es/keyframe-stroke-text/src/types.d.ts +10 -0
- package/dist/es/layout-skeleton/index.js +1 -1
- package/dist/es/loading-overlay/index.d.ts +15 -15
- package/dist/es/loading-overlay/index.js +1 -1
- package/dist/es/loading-overlay/src/TxLoadingOverlay.vue.d.ts +1 -1
- package/dist/es/loading-overlay/src/TxLoadingOverlay.vue.js +12 -2
- package/dist/es/loading-state/index.d.ts +9 -9
- package/dist/es/loading-state/index.js +1 -1
- package/dist/es/markdown-view/index.d.ts +3 -3
- package/dist/es/markdown-view/index.js +1 -1
- package/dist/es/markdown-view/src/TxMarkdownView.vue.js +3 -2
- package/dist/es/modal/index.js +1 -1
- package/dist/es/modal/src/TxModal.vue.js +1 -1
- package/dist/es/modal/src/TxModal.vue2.js +26 -4
- package/dist/es/nav-bar/index.js +1 -1
- package/dist/es/no-data/index.d.ts +9 -9
- package/dist/es/no-data/index.js +1 -1
- package/dist/es/no-selection/index.d.ts +9 -9
- package/dist/es/no-selection/index.js +1 -1
- package/dist/es/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/properties.js +62 -0
- package/dist/es/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/toml.js +76 -0
- package/dist/es/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +252 -0
- package/dist/es/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +682 -0
- package/dist/es/offline-state/index.d.ts +9 -9
- package/dist/es/offline-state/index.js +1 -1
- package/dist/es/outline-border/index.d.ts +18 -18
- package/dist/es/outline-border/index.js +1 -1
- package/dist/es/outline-border/src/TxOutlineBorder.vue.d.ts +1 -1
- package/dist/es/{utils → packages/tuffex/packages/utils}/toast.js +4 -1
- package/dist/es/packages/tuffex/packages/utils/z-index-manager.js +114 -0
- package/dist/es/packages/utils/env/index.js +8 -0
- package/dist/es/permission-state/index.d.ts +9 -9
- package/dist/es/permission-state/index.js +1 -1
- package/dist/es/picker/index.js +1 -1
- package/dist/es/picker/src/TxPicker.vue.js +1 -1
- package/dist/es/picker/src/TxPicker.vue2.js +6 -1
- package/dist/es/popover/index.d.ts +195 -82
- package/dist/es/popover/index.js +1 -1
- package/dist/es/popover/src/TxPopover.vue.d.ts +33 -16
- package/dist/es/popover/src/TxPopover.vue.js +1 -1
- package/dist/es/popover/src/TxPopover.vue2.js +147 -317
- package/dist/es/popover/src/types.d.ts +14 -3
- package/dist/es/progress-bar/index.d.ts +21 -21
- package/dist/es/progress-bar/index.js +1 -1
- package/dist/es/progress-bar/src/TxProgressBar.vue.d.ts +1 -1
- package/dist/es/radio/index.js +1 -1
- package/dist/es/radio/src/TxRadioGroup.vue2.js +1 -1
- package/dist/es/scroll/index.d.ts +42 -12
- package/dist/es/scroll/index.js +1 -1
- package/dist/es/scroll/src/TxScroll.vue.d.ts +11 -1
- package/dist/es/scroll/src/TxScroll.vue.js +1 -1
- package/dist/es/scroll/src/TxScroll.vue2.js +25 -13
- package/dist/es/scroll/src/runtime-capabilities.d.ts +2 -0
- package/dist/es/scroll/src/runtime-capabilities.js +67 -0
- package/dist/es/search-empty/index.d.ts +9 -9
- package/dist/es/search-empty/index.js +1 -1
- package/dist/es/search-input/index.js +1 -1
- package/dist/es/search-select/index.d.ts +9 -9
- package/dist/es/search-select/index.js +1 -1
- package/dist/es/search-select/src/TxSearchSelect.vue.d.ts +1 -1
- package/dist/es/search-select/src/TxSearchSelect.vue.js +1 -1
- package/dist/es/search-select/src/TxSearchSelect.vue2.js +105 -178
- package/dist/es/search-select/src/types.d.ts +1 -1
- package/dist/es/segmented-slider/index.js +1 -1
- package/dist/es/segmented-slider/src/TxSegmentedSlider.vue.js +1 -0
- package/dist/es/select/index.d.ts +366 -4
- package/dist/es/select/index.js +6 -9
- package/dist/es/select/src/TxSelect.vue.d.ts +23 -23
- package/dist/es/select/src/TxSelect.vue.js +2 -2
- package/dist/es/select/src/TxSelect.vue2.js +203 -152
- package/dist/es/select/src/TxSelectItem.vue.js +2 -2
- package/dist/es/select/src/TxSelectItem.vue2.js +44 -7
- package/dist/es/select/src/types.d.ts +34 -0
- package/dist/es/select/src/types.js +3 -0
- package/dist/es/skeleton/index.d.ts +7 -7
- package/dist/es/skeleton/index.js +1 -1
- package/dist/es/slider/index.d.ts +4 -4
- package/dist/es/slider/index.js +1 -1
- package/dist/es/sortable-list/index.js +1 -1
- package/dist/es/sortable-list/src/TxSortableList.vue.js +1 -1
- package/dist/es/sortable-list/src/TxSortableList.vue2.js +1 -1
- package/dist/es/spinner/index.d.ts +1 -1
- package/dist/es/spinner/index.js +1 -1
- package/dist/es/splitter/index.d.ts +15 -15
- package/dist/es/splitter/index.js +1 -1
- package/dist/es/splitter/src/TxSplitter.vue.d.ts +1 -1
- package/dist/es/stack/index.d.ts +33 -33
- package/dist/es/stack/index.js +1 -1
- package/dist/es/stack/src/TxStack.vue.d.ts +3 -3
- package/dist/es/stagger/index.d.ts +15 -15
- package/dist/es/stagger/index.js +1 -1
- package/dist/es/stagger/src/TxStagger.vue.d.ts +1 -1
- package/dist/es/stat-card/index.d.ts +46 -3
- package/dist/es/stat-card/index.js +1 -1
- package/dist/es/stat-card/src/TxStatCard.vue.d.ts +5 -1
- package/dist/es/stat-card/src/TxStatCard.vue.js +1 -1
- package/dist/es/stat-card/src/TxStatCard.vue2.js +247 -19
- package/dist/es/stat-card/src/types.d.ts +15 -0
- package/dist/es/status-badge/index.js +1 -1
- package/dist/es/switch/index.js +1 -0
- package/dist/es/tab-bar/index.d.ts +15 -15
- package/dist/es/tab-bar/index.js +1 -1
- package/dist/es/tab-bar/src/TxTabBar.vue.d.ts +1 -1
- package/dist/es/tabs/index.d.ts +18 -3
- package/dist/es/tabs/index.js +1 -1
- package/dist/es/tabs/src/TxTabs.vue.d.ts +10 -1
- package/dist/es/tabs/src/TxTabs.vue.js +1 -1
- package/dist/es/tabs/src/TxTabs.vue2.js +3 -1
- package/dist/es/tabs/src/types.d.ts +1 -0
- package/dist/es/tag/index.js +1 -1
- package/dist/es/tag-input/index.js +1 -1
- package/dist/es/text-transformer/index.d.ts +1 -1
- package/dist/es/text-transformer/index.js +1 -1
- package/dist/es/toast/index.js +1 -1
- package/dist/es/toast/src/TxToastHost.vue.js +18 -17
- package/dist/es/tooltip/index.d.ts +75 -178
- package/dist/es/tooltip/index.js +1 -1
- package/dist/es/tooltip/src/TxTooltip.vue.d.ts +21 -40
- package/dist/es/tooltip/src/TxTooltip.vue.js +1 -1
- package/dist/es/tooltip/src/TxTooltip.vue2.js +102 -350
- package/dist/es/tooltip/src/types.d.ts +8 -13
- package/dist/es/transfer/index.d.ts +131 -0
- package/dist/es/transfer/index.js +6 -0
- package/dist/es/transfer/src/TxTransfer.vue.d.ts +48 -0
- package/dist/es/transfer/src/TxTransfer.vue.js +7 -0
- package/dist/es/transfer/src/TxTransfer.vue2.js +217 -0
- package/dist/es/transfer/src/types.d.ts +17 -0
- package/dist/es/transition/index.d.ts +30 -30
- package/dist/es/transition/index.js +1 -1
- package/dist/es/transition/src/TxTransition.vue.d.ts +1 -1
- package/dist/es/transition/src/TxTransitionSmoothSize.vue.d.ts +1 -1
- package/dist/es/tree/index.d.ts +15 -15
- package/dist/es/tree/index.js +1 -1
- package/dist/es/tree/src/TxTree.vue.d.ts +1 -1
- package/dist/es/tree/src/TxTree.vue.js +1 -1
- package/dist/es/tree/src/TxTree.vue2.js +3 -2
- package/dist/es/tree/src/types.d.ts +1 -0
- package/dist/es/tree-select/index.d.ts +9 -9
- package/dist/es/tree-select/index.js +1 -1
- package/dist/es/tree-select/src/TxTreeSelect.vue.d.ts +1 -1
- package/dist/es/tree-select/src/TxTreeSelect.vue.js +1 -1
- package/dist/es/tree-select/src/TxTreeSelect.vue2.js +0 -2
- package/dist/es/tuff-logo-stroke/index.d.ts +146 -0
- package/dist/es/tuff-logo-stroke/index.js +6 -0
- package/dist/es/tuff-logo-stroke/src/TxTuffLogoStroke.vue.d.ts +48 -0
- package/dist/es/tuff-logo-stroke/src/TxTuffLogoStroke.vue.js +7 -0
- package/dist/es/tuff-logo-stroke/src/TxTuffLogoStroke.vue2.js +147 -0
- package/dist/es/tuff-logo-stroke/src/types.d.ts +10 -0
- package/dist/es/virtual-list/index.js +1 -1
- package/dist/lib/agents/index.js +1 -1
- package/dist/lib/alert/index.js +11 -0
- package/dist/lib/alert/src/TxAlert.vue.js +2 -2
- package/dist/lib/alert/src/TxAlert.vue2.js +5 -1
- package/dist/lib/auto-sizer/index.js +1 -1
- package/dist/lib/auto-sizer/src/TxAutoSizer.vue.js +2 -2
- package/dist/lib/avatar/index.js +1 -1
- package/dist/lib/avatar/src/TxAvatar.vue.js +1 -1
- package/dist/lib/avatar/src/TxAvatar.vue2.js +47 -6
- package/dist/lib/avatar/src/TxAvatarGroup.vue.js +1 -1
- package/dist/lib/avatar/src/TxAvatarGroup.vue2.js +1 -1
- package/dist/lib/badge/index.js +11 -0
- package/dist/lib/badge/src/TxBadge.vue.js +2 -2
- package/dist/lib/base-anchor/index.js +12 -0
- package/dist/lib/base-anchor/src/TxBaseAnchor.vue.js +11 -0
- package/dist/lib/base-anchor/src/TxBaseAnchor.vue2.js +802 -0
- package/dist/lib/base-surface/index.js +13 -0
- package/dist/lib/base-surface/src/TxBaseSurface.vue.js +1016 -0
- package/dist/lib/base-surface/src/TxBaseSurface.vue2.js +10 -0
- package/dist/lib/base-surface/src/style/index.css +105 -0
- package/dist/lib/blank-slate/index.js +1 -1
- package/dist/lib/button/index.js +2 -1
- package/dist/lib/button/src/button.vue.js +49 -19
- package/dist/lib/button/src/split-button.vue.js +30 -4
- package/dist/lib/button/src/style/index.css +72 -15
- package/dist/lib/card/index.js +1 -1
- package/dist/lib/card/src/TxCard.vue.js +1 -1
- package/dist/lib/card/src/TxCard.vue2.js +285 -54
- package/dist/lib/card-item/index.js +1 -1
- package/dist/lib/cascader/index.js +1 -1
- package/dist/lib/cascader/src/TxCascader.vue.js +1 -1
- package/dist/lib/cascader/src/TxCascader.vue2.js +1 -3
- package/dist/lib/chat/index.js +1 -1
- package/dist/lib/chat/src/TxChatComposer.vue.js +1 -1
- package/dist/lib/chat/src/TxChatComposer.vue2.js +1 -0
- package/dist/lib/code-editor/index.js +16 -0
- package/dist/lib/code-editor/src/TxCodeEditor.vue.js +11 -0
- package/dist/lib/code-editor/src/TxCodeEditor.vue2.js +662 -0
- package/dist/lib/code-editor/src/TxCodeEditorToolbar.vue.js +11 -0
- package/dist/lib/code-editor/src/TxCodeEditorToolbar.vue2.js +93 -0
- package/dist/lib/command-palette/index.js +1 -1
- package/dist/lib/command-palette/src/TxCommandPalette.vue.js +1 -1
- package/dist/lib/command-palette/src/TxCommandPalette.vue2.js +127 -20
- package/dist/lib/components.css +4253 -3117
- package/dist/lib/components.js +255 -178
- package/dist/lib/container/src/TxCol.vue2.js +1 -1
- package/dist/lib/container/src/TxRow.vue2.js +1 -1
- package/dist/lib/context-menu/index.js +1 -1
- package/dist/lib/context-menu/src/TxContextMenu.vue.js +1 -1
- package/dist/lib/context-menu/src/TxContextMenu.vue2.js +4 -1
- package/dist/lib/corner-overlay/index.js +1 -1
- package/dist/lib/data-table/index.js +1 -1
- package/dist/lib/date-picker/index.js +1 -1
- package/dist/lib/dialog/index.js +1 -1
- package/dist/lib/dialog/src/TxBlowDialog.vue.js +5 -1
- package/dist/lib/dialog/src/TxBottomDialog.vue.js +1 -1
- package/dist/lib/dialog/src/TxBottomDialog.vue2.js +5 -1
- package/dist/lib/dialog/src/TxPopperDialog.vue.js +5 -1
- package/dist/lib/dialog/src/TxTouchTip.vue.js +1 -1
- package/dist/lib/dialog/src/TxTouchTip.vue2.js +24 -21
- package/dist/lib/drawer/index.js +1 -1
- package/dist/lib/drawer/src/TxDrawer.vue.js +8 -2
- package/dist/lib/dropdown-menu/index.js +1 -1
- package/dist/lib/dropdown-menu/src/TxDropdownMenu.vue.js +1 -1
- package/dist/lib/dropdown-menu/src/TxDropdownMenu.vue2.js +13 -3
- package/dist/lib/edge-fade-mask/index.js +12 -0
- package/dist/lib/edge-fade-mask/src/TxEdgeFadeMask.vue.js +11 -0
- package/dist/lib/edge-fade-mask/src/TxEdgeFadeMask.vue2.js +158 -0
- package/dist/lib/empty/index.js +1 -1
- package/dist/lib/empty-state/index.js +1 -1
- package/dist/lib/empty-state/src/TxEmptyState.vue.js +1 -1
- package/dist/lib/empty-state/src/TxEmptyState.vue2.js +25 -17
- package/dist/lib/error-state/index.js +11 -0
- package/dist/lib/error-state/src/TxErrorState.vue.js +39 -0
- package/dist/lib/error-state/src/TxErrorState.vue2.js +9 -0
- package/dist/lib/file-uploader/index.js +1 -1
- package/dist/lib/flat-radio/index.js +16 -0
- package/dist/lib/flat-radio/src/TxFlatRadio.vue.js +11 -0
- package/dist/lib/flat-radio/src/TxFlatRadio.vue2.js +241 -0
- package/dist/lib/flat-radio/src/TxFlatRadioItem.vue.js +11 -0
- package/dist/lib/flat-radio/src/TxFlatRadioItem.vue2.js +91 -0
- package/dist/lib/flat-radio/src/types.js +7 -0
- package/dist/lib/flat-select/index.js +16 -0
- package/dist/lib/flat-select/src/TxFlatSelect.vue.js +11 -0
- package/dist/lib/flat-select/src/TxFlatSelect.vue2.js +212 -0
- package/dist/lib/flat-select/src/TxFlatSelectItem.vue.js +11 -0
- package/dist/lib/flat-select/src/TxFlatSelectItem.vue2.js +75 -0
- package/dist/lib/flat-select/src/types.js +7 -0
- package/dist/lib/flex/index.js +1 -1
- package/dist/lib/flip-overlay/index.js +13 -0
- package/dist/lib/flip-overlay/src/TxFlipOverlay.vue.js +986 -0
- package/dist/lib/flip-overlay/src/TxFlipOverlay.vue3.js +10 -0
- package/dist/lib/floating/index.js +16 -0
- package/dist/lib/floating/src/TxFloating.vue.js +11 -0
- package/dist/lib/floating/src/TxFloating.vue2.js +122 -0
- package/dist/lib/floating/src/TxFloatingElement.vue.js +11 -0
- package/dist/lib/floating/src/TxFloatingElement.vue2.js +47 -0
- package/dist/lib/floating/src/context.js +7 -0
- package/dist/lib/form/index.js +1 -1
- package/dist/lib/fusion/index.js +1 -1
- package/dist/lib/glass-surface/index.js +1 -1
- package/dist/lib/glass-surface/src/TxGlassSurface.vue.js +15 -37
- package/dist/lib/glow-text/index.js +1 -1
- package/dist/lib/glow-text/src/TxGlowText.vue.js +1 -1
- package/dist/lib/glow-text/src/TxGlowText.vue2.js +92 -9
- package/dist/lib/gradient-border/index.js +1 -1
- package/dist/lib/gradual-blur/index.js +1 -1
- package/dist/lib/gradual-blur/src/TxGradualBlur.vue.js +1 -1
- package/dist/lib/grid/src/TxGrid.vue2.js +1 -1
- package/dist/lib/grid-layout/index.js +1 -1
- package/dist/lib/group-block/index.js +11 -1
- package/dist/lib/group-block/src/TxBlockInput.vue.js +98 -0
- package/dist/lib/group-block/src/TxBlockInput.vue3.js +10 -0
- package/dist/lib/group-block/src/TxBlockSelect.vue.js +80 -0
- package/dist/lib/group-block/src/TxBlockSelect.vue3.js +10 -0
- package/dist/lib/group-block/src/TxGroupBlock.vue.js +1 -1
- package/dist/lib/guide-state/index.js +11 -0
- package/dist/lib/guide-state/src/TxGuideState.vue.js +39 -0
- package/dist/lib/guide-state/src/TxGuideState.vue2.js +9 -0
- package/dist/lib/icon/index.js +1 -1
- package/dist/lib/icon/src/TxIcon.vue.js +1 -1
- package/dist/lib/icon/src/TxIcon.vue2.js +9 -3
- package/dist/lib/image-gallery/index.js +1 -1
- package/dist/lib/image-uploader/index.js +1 -1
- package/dist/lib/index.js +269 -182
- package/dist/lib/input/index.js +7 -5
- package/dist/lib/input/src/TxInput.vue.js +1 -1
- package/dist/lib/input/src/TxInput.vue2.js +79 -22
- package/dist/lib/keyframe-stroke-text/index.js +12 -0
- package/dist/lib/keyframe-stroke-text/src/TxKeyframeStrokeText.vue.js +11 -0
- package/dist/lib/keyframe-stroke-text/src/TxKeyframeStrokeText.vue2.js +106 -0
- package/dist/lib/layout-skeleton/index.js +1 -1
- package/dist/lib/loading-overlay/index.js +1 -1
- package/dist/lib/loading-overlay/src/TxLoadingOverlay.vue.js +11 -1
- package/dist/lib/loading-state/index.js +1 -1
- package/dist/lib/markdown-view/index.js +1 -1
- package/dist/lib/markdown-view/src/TxMarkdownView.vue.js +3 -2
- package/dist/lib/modal/index.js +1 -1
- package/dist/lib/modal/src/TxModal.vue.js +1 -1
- package/dist/lib/modal/src/TxModal.vue2.js +25 -3
- package/dist/lib/nav-bar/index.js +1 -1
- package/dist/lib/no-data/index.js +1 -1
- package/dist/lib/no-selection/index.js +1 -1
- package/dist/lib/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/properties.js +66 -0
- package/dist/lib/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/toml.js +80 -0
- package/dist/lib/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +257 -0
- package/dist/lib/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +688 -0
- package/dist/lib/offline-state/index.js +1 -1
- package/dist/lib/outline-border/index.js +1 -1
- package/dist/lib/{utils → packages/tuffex/packages/utils}/toast.js +4 -1
- package/dist/lib/packages/tuffex/packages/utils/z-index-manager.js +124 -0
- package/dist/lib/packages/utils/env/index.js +13 -0
- package/dist/lib/permission-state/index.js +1 -1
- package/dist/lib/picker/index.js +1 -1
- package/dist/lib/picker/src/TxPicker.vue.js +1 -1
- package/dist/lib/picker/src/TxPicker.vue2.js +6 -1
- package/dist/lib/popover/index.js +1 -1
- package/dist/lib/popover/src/TxPopover.vue.js +1 -1
- package/dist/lib/popover/src/TxPopover.vue2.js +146 -316
- package/dist/lib/progress-bar/index.js +1 -1
- package/dist/lib/radio/index.js +1 -1
- package/dist/lib/radio/src/TxRadioGroup.vue2.js +1 -1
- package/dist/lib/scroll/index.js +1 -1
- package/dist/lib/scroll/src/TxScroll.vue.js +1 -1
- package/dist/lib/scroll/src/TxScroll.vue2.js +25 -13
- package/dist/lib/scroll/src/runtime-capabilities.js +72 -0
- package/dist/lib/search-empty/index.js +1 -1
- package/dist/lib/search-input/index.js +1 -1
- package/dist/lib/search-select/index.js +1 -1
- package/dist/lib/search-select/src/TxSearchSelect.vue.js +1 -1
- package/dist/lib/search-select/src/TxSearchSelect.vue2.js +104 -177
- package/dist/lib/segmented-slider/index.js +1 -1
- package/dist/lib/segmented-slider/src/TxSegmentedSlider.vue.js +1 -0
- package/dist/lib/select/index.js +6 -9
- package/dist/lib/select/src/TxSelect.vue.js +2 -2
- package/dist/lib/select/src/TxSelect.vue2.js +202 -151
- package/dist/lib/select/src/TxSelectItem.vue.js +2 -2
- package/dist/lib/select/src/TxSelectItem.vue2.js +43 -6
- package/dist/lib/select/src/types.js +7 -0
- package/dist/lib/skeleton/index.js +1 -1
- package/dist/lib/slider/index.js +1 -1
- package/dist/lib/sortable-list/index.js +1 -1
- package/dist/lib/sortable-list/src/TxSortableList.vue.js +1 -1
- package/dist/lib/sortable-list/src/TxSortableList.vue2.js +1 -1
- package/dist/lib/spinner/index.js +1 -1
- package/dist/lib/splitter/index.js +1 -1
- package/dist/lib/stack/index.js +1 -1
- package/dist/lib/stagger/index.js +1 -1
- package/dist/lib/stat-card/index.js +1 -1
- package/dist/lib/stat-card/src/TxStatCard.vue.js +1 -1
- package/dist/lib/stat-card/src/TxStatCard.vue2.js +246 -18
- package/dist/lib/status-badge/index.js +1 -1
- package/dist/lib/switch/index.js +1 -0
- package/dist/lib/tab-bar/index.js +1 -1
- package/dist/lib/tabs/index.js +1 -1
- package/dist/lib/tabs/src/TxTabs.vue.js +1 -1
- package/dist/lib/tabs/src/TxTabs.vue2.js +3 -1
- package/dist/lib/tag/index.js +1 -1
- package/dist/lib/tag-input/index.js +1 -1
- package/dist/lib/text-transformer/index.js +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/src/TxToastHost.vue.js +17 -16
- package/dist/lib/tooltip/index.js +1 -1
- package/dist/lib/tooltip/src/TxTooltip.vue.js +1 -1
- package/dist/lib/tooltip/src/TxTooltip.vue2.js +101 -349
- package/dist/lib/transfer/index.js +12 -0
- package/dist/lib/transfer/src/TxTransfer.vue.js +11 -0
- package/dist/lib/transfer/src/TxTransfer.vue2.js +221 -0
- package/dist/lib/transition/index.js +1 -1
- package/dist/lib/tree/index.js +1 -1
- package/dist/lib/tree/src/TxTree.vue.js +1 -1
- package/dist/lib/tree/src/TxTree.vue2.js +3 -2
- package/dist/lib/tree-select/index.js +1 -1
- package/dist/lib/tree-select/src/TxTreeSelect.vue.js +1 -1
- package/dist/lib/tree-select/src/TxTreeSelect.vue2.js +0 -2
- package/dist/lib/tuff-logo-stroke/index.js +12 -0
- package/dist/lib/tuff-logo-stroke/src/TxTuffLogoStroke.vue.js +11 -0
- package/dist/lib/tuff-logo-stroke/src/TxTuffLogoStroke.vue2.js +151 -0
- package/dist/lib/virtual-list/index.js +1 -1
- package/package.json +37 -25
- package/dist/es/button/__tests__/button.test.d.ts +0 -1
- package/dist/es/button/__tests__/split-button.test.d.ts +0 -1
- package/dist/es/cascader/__tests__/cascader.test.d.ts +0 -1
- package/dist/es/command-palette/__tests__/command-palette.test.d.ts +0 -1
- package/dist/es/data-table/__tests__/data-table.test.d.ts +0 -1
- package/dist/es/file-uploader/__tests__/file-uploader.test.d.ts +0 -1
- package/dist/es/form/__tests__/form.test.d.ts +0 -1
- package/dist/es/search-select/__tests__/search-select.test.d.ts +0 -1
- package/dist/es/tag-input/__tests__/tag-input.test.d.ts +0 -1
- package/dist/es/tree/__tests__/tree.test.d.ts +0 -1
- package/dist/es/tree-select/__tests__/tree-select.test.d.ts +0 -1
- package/dist/es/virtual-list/__tests__/virtual-list.test.d.ts +0 -1
- /package/dist/es/{utils → packages/tuffex/packages/utils}/animation/auto-resize.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/animation/flip.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/dialog-manager.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/env.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/vibrate.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/withInstall.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/animation/auto-resize.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/animation/flip.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/dialog-manager.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/env.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/vibrate.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/withInstall.js +0 -0
|
@@ -1,17 +1,37 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, onMounted, onBeforeUnmount, watch, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createBlock, unref,
|
|
2
|
-
import NumberFlow from '@number-flow/vue';
|
|
1
|
+
import { defineComponent, defineAsyncComponent, computed, ref, onMounted, onBeforeUnmount, watch, nextTick, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createBlock, unref, resolveDynamicComponent } from 'vue';
|
|
3
2
|
|
|
4
3
|
const _hoisted_1 = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "tx-stat-card__icon-layer",
|
|
7
6
|
"aria-hidden": "true"
|
|
8
7
|
};
|
|
9
|
-
const _hoisted_2 = { class: "tx-stat-
|
|
10
|
-
const _hoisted_3 = { class: "tx-stat-
|
|
11
|
-
const _hoisted_4 = {
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const _hoisted_2 = { class: "tx-stat-card__progress-inner" };
|
|
9
|
+
const _hoisted_3 = { class: "tx-stat-card__content" };
|
|
10
|
+
const _hoisted_4 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "tx-stat-card__label tx-stat-card__label--top"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_5 = { class: "tx-stat-card__value" };
|
|
15
|
+
const _hoisted_6 = { key: 1 };
|
|
16
|
+
const _hoisted_7 = {
|
|
14
17
|
key: 1,
|
|
18
|
+
class: "tx-stat-card__label"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_8 = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "tx-stat-card__insight-prefix"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_9 = { key: 2 };
|
|
25
|
+
const _hoisted_10 = {
|
|
26
|
+
key: 3,
|
|
27
|
+
class: "tx-stat-card__insight-suffix"
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_11 = {
|
|
30
|
+
key: 3,
|
|
31
|
+
class: "tx-stat-card__meta"
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_12 = {
|
|
34
|
+
key: 2,
|
|
15
35
|
class: "tx-stat-card__decoration",
|
|
16
36
|
"aria-hidden": "true"
|
|
17
37
|
};
|
|
@@ -24,10 +44,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
44
|
value: {},
|
|
25
45
|
label: {},
|
|
26
46
|
iconClass: { default: "" },
|
|
27
|
-
clickable: { type: Boolean, default: false }
|
|
47
|
+
clickable: { type: Boolean, default: false },
|
|
48
|
+
insight: {},
|
|
49
|
+
variant: { default: "default" },
|
|
50
|
+
progress: {},
|
|
51
|
+
meta: {}
|
|
28
52
|
},
|
|
29
53
|
setup(__props) {
|
|
30
54
|
const props = __props;
|
|
55
|
+
const NumberFlowComponent = typeof window !== "undefined" ? defineAsyncComponent(() => import('@number-flow/vue')) : null;
|
|
56
|
+
const isProgressVariant = computed(() => {
|
|
57
|
+
if (props.variant === "progress")
|
|
58
|
+
return true;
|
|
59
|
+
return typeof props.progress === "number";
|
|
60
|
+
});
|
|
31
61
|
const numericValue = computed(() => {
|
|
32
62
|
if (typeof props.value === "number")
|
|
33
63
|
return props.value;
|
|
@@ -40,6 +70,119 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
70
|
const displayNumber = ref(0);
|
|
41
71
|
let mountTimer = null;
|
|
42
72
|
const displayString = ref(null);
|
|
73
|
+
const cardRef = ref(null);
|
|
74
|
+
const iconRef = ref(null);
|
|
75
|
+
const glowReady = ref(false);
|
|
76
|
+
const insightDisplayNumber = ref(0);
|
|
77
|
+
const hasInsight = computed(() => {
|
|
78
|
+
if (isProgressVariant.value)
|
|
79
|
+
return false;
|
|
80
|
+
if (!props.insight)
|
|
81
|
+
return false;
|
|
82
|
+
return Number.isFinite(props.insight.from) && Number.isFinite(props.insight.to);
|
|
83
|
+
});
|
|
84
|
+
const progressValue = computed(() => {
|
|
85
|
+
if (!isProgressVariant.value)
|
|
86
|
+
return null;
|
|
87
|
+
if (typeof props.progress === "number")
|
|
88
|
+
return props.progress;
|
|
89
|
+
if (numericValue.value != null && numericValue.value <= 100)
|
|
90
|
+
return numericValue.value;
|
|
91
|
+
return null;
|
|
92
|
+
});
|
|
93
|
+
const progressPercent = computed(() => {
|
|
94
|
+
if (progressValue.value == null)
|
|
95
|
+
return null;
|
|
96
|
+
const normalized = Math.max(0, Math.min(100, progressValue.value));
|
|
97
|
+
return normalized;
|
|
98
|
+
});
|
|
99
|
+
const insightValue = computed(() => {
|
|
100
|
+
if (!hasInsight.value || !props.insight)
|
|
101
|
+
return null;
|
|
102
|
+
const { from, to, type = "percent", precision } = props.insight;
|
|
103
|
+
const delta = to - from;
|
|
104
|
+
let raw = type === "delta" ? delta : from === 0 ? 0 : delta / from * 100;
|
|
105
|
+
if (!Number.isFinite(raw))
|
|
106
|
+
raw = 0;
|
|
107
|
+
const digits = precision ?? (type === "percent" ? 1 : 0);
|
|
108
|
+
if (Number.isFinite(digits))
|
|
109
|
+
raw = Number(raw.toFixed(Math.max(0, digits)));
|
|
110
|
+
return raw;
|
|
111
|
+
});
|
|
112
|
+
const insightPrefix = computed(() => {
|
|
113
|
+
if (!hasInsight.value || insightValue.value == null)
|
|
114
|
+
return "";
|
|
115
|
+
return insightValue.value > 0 ? "+" : "";
|
|
116
|
+
});
|
|
117
|
+
const insightSuffix = computed(() => {
|
|
118
|
+
if (!hasInsight.value)
|
|
119
|
+
return "";
|
|
120
|
+
if (props.insight?.suffix != null)
|
|
121
|
+
return props.insight.suffix;
|
|
122
|
+
return props.insight?.type === "delta" ? "" : "%";
|
|
123
|
+
});
|
|
124
|
+
const resolveInsightColor = (color) => {
|
|
125
|
+
if (!color)
|
|
126
|
+
return null;
|
|
127
|
+
const map = {
|
|
128
|
+
success: "var(--tx-color-success, #67c23a)",
|
|
129
|
+
danger: "var(--tx-color-danger, #f56c6c)",
|
|
130
|
+
warning: "var(--tx-color-warning, #e6a23c)",
|
|
131
|
+
info: "var(--tx-color-info, #909399)"
|
|
132
|
+
};
|
|
133
|
+
return map[color] ?? color;
|
|
134
|
+
};
|
|
135
|
+
const insightColor = computed(() => {
|
|
136
|
+
if (!hasInsight.value)
|
|
137
|
+
return null;
|
|
138
|
+
const override = resolveInsightColor(props.insight?.color);
|
|
139
|
+
if (override)
|
|
140
|
+
return override;
|
|
141
|
+
return resolveInsightColor((insightValue.value ?? 0) >= 0 ? "success" : "danger");
|
|
142
|
+
});
|
|
143
|
+
const insightIconClass = computed(() => {
|
|
144
|
+
if (!hasInsight.value)
|
|
145
|
+
return "";
|
|
146
|
+
if (props.insight?.iconClass)
|
|
147
|
+
return props.insight.iconClass;
|
|
148
|
+
return (insightValue.value ?? 0) >= 0 ? "i-carbon-growth" : "i-carbon-arrow-down";
|
|
149
|
+
});
|
|
150
|
+
const buildGlowColor = (color, alpha) => {
|
|
151
|
+
const match = color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);
|
|
152
|
+
if (!match)
|
|
153
|
+
return null;
|
|
154
|
+
const [, r, g, b] = match;
|
|
155
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
156
|
+
};
|
|
157
|
+
const resetGlowVars = () => {
|
|
158
|
+
if (!cardRef.value)
|
|
159
|
+
return;
|
|
160
|
+
cardRef.value.style.removeProperty("--tx-stat-card-icon-color");
|
|
161
|
+
cardRef.value.style.removeProperty("--tx-stat-card-glow-color");
|
|
162
|
+
cardRef.value.style.removeProperty("--tx-stat-card-glow-color-soft");
|
|
163
|
+
};
|
|
164
|
+
const updateGlowVars = () => {
|
|
165
|
+
if (!cardRef.value || !iconRef.value || !props.iconClass)
|
|
166
|
+
return;
|
|
167
|
+
const iconColor = getComputedStyle(iconRef.value).color;
|
|
168
|
+
if (!iconColor)
|
|
169
|
+
return;
|
|
170
|
+
cardRef.value.style.setProperty("--tx-stat-card-icon-color", iconColor);
|
|
171
|
+
const glowColor = buildGlowColor(iconColor, 0.42);
|
|
172
|
+
const glowSoftColor = buildGlowColor(iconColor, 0.18);
|
|
173
|
+
if (glowColor)
|
|
174
|
+
cardRef.value.style.setProperty("--tx-stat-card-glow-color", glowColor);
|
|
175
|
+
if (glowSoftColor)
|
|
176
|
+
cardRef.value.style.setProperty("--tx-stat-card-glow-color-soft", glowSoftColor);
|
|
177
|
+
};
|
|
178
|
+
const triggerGlow = () => {
|
|
179
|
+
if (!props.iconClass)
|
|
180
|
+
return;
|
|
181
|
+
glowReady.value = false;
|
|
182
|
+
requestAnimationFrame(() => {
|
|
183
|
+
glowReady.value = true;
|
|
184
|
+
});
|
|
185
|
+
};
|
|
43
186
|
const displayText = computed(() => {
|
|
44
187
|
return typeof props.value === "number" ? props.value.toLocaleString() : String(props.value);
|
|
45
188
|
});
|
|
@@ -50,8 +193,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
193
|
displayNumber.value = numericValue.value;
|
|
51
194
|
else
|
|
52
195
|
displayString.value = displayText.value;
|
|
196
|
+
if (insightValue.value != null)
|
|
197
|
+
insightDisplayNumber.value = insightValue.value;
|
|
53
198
|
mountTimer = null;
|
|
54
199
|
}, delay);
|
|
200
|
+
updateGlowVars();
|
|
201
|
+
triggerGlow();
|
|
55
202
|
});
|
|
56
203
|
onBeforeUnmount(() => {
|
|
57
204
|
if (mountTimer != null)
|
|
@@ -63,6 +210,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
210
|
return;
|
|
64
211
|
displayNumber.value = v;
|
|
65
212
|
});
|
|
213
|
+
watch(insightValue, (v) => {
|
|
214
|
+
if (v == null) {
|
|
215
|
+
insightDisplayNumber.value = 0;
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
if (mountTimer != null)
|
|
219
|
+
return;
|
|
220
|
+
insightDisplayNumber.value = v;
|
|
221
|
+
});
|
|
66
222
|
watch(
|
|
67
223
|
() => props.value,
|
|
68
224
|
(v) => {
|
|
@@ -73,36 +229,108 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
229
|
displayString.value = String(v);
|
|
74
230
|
}
|
|
75
231
|
);
|
|
232
|
+
watch(
|
|
233
|
+
() => props.iconClass,
|
|
234
|
+
async (v) => {
|
|
235
|
+
if (!v) {
|
|
236
|
+
glowReady.value = false;
|
|
237
|
+
resetGlowVars();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
await nextTick();
|
|
241
|
+
updateGlowVars();
|
|
242
|
+
triggerGlow();
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
watch(
|
|
246
|
+
() => props.variant,
|
|
247
|
+
async () => {
|
|
248
|
+
if (!props.iconClass)
|
|
249
|
+
return;
|
|
250
|
+
await nextTick();
|
|
251
|
+
updateGlowVars();
|
|
252
|
+
triggerGlow();
|
|
253
|
+
}
|
|
254
|
+
);
|
|
76
255
|
return (_ctx, _cache) => {
|
|
77
256
|
return openBlock(), createElementBlock("div", {
|
|
78
|
-
|
|
257
|
+
ref_key: "cardRef",
|
|
258
|
+
ref: cardRef,
|
|
259
|
+
class: normalizeClass(["tx-stat-card fake-background", {
|
|
260
|
+
"tx-stat-card--clickable": __props.clickable,
|
|
261
|
+
"tx-stat-card--glow-in": glowReady.value,
|
|
262
|
+
"tx-stat-card--insight": hasInsight.value,
|
|
263
|
+
"tx-stat-card--progress": isProgressVariant.value
|
|
264
|
+
}]),
|
|
79
265
|
role: "group",
|
|
80
266
|
"aria-label": "Stat card"
|
|
81
267
|
}, [
|
|
82
|
-
__props.iconClass ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
268
|
+
__props.iconClass && !isProgressVariant.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
83
269
|
createElementVNode("i", {
|
|
270
|
+
ref_key: "iconRef",
|
|
271
|
+
ref: iconRef,
|
|
84
272
|
class: normalizeClass(["tx-stat-card__icon", __props.iconClass])
|
|
85
273
|
}, null, 2)
|
|
86
274
|
])) : createCommentVNode("", true),
|
|
87
|
-
|
|
88
|
-
|
|
275
|
+
isProgressVariant.value ? (openBlock(), createElementBlock("div", {
|
|
276
|
+
key: 1,
|
|
277
|
+
class: "tx-stat-card__progress",
|
|
278
|
+
style: normalizeStyle({ "--tx-stat-card-progress": progressPercent.value != null ? `${progressPercent.value}%` : "0%" }),
|
|
279
|
+
"aria-hidden": "true"
|
|
280
|
+
}, [
|
|
281
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tx-stat-card__progress-ring" }, null, -1)),
|
|
282
|
+
createElementVNode("span", _hoisted_2, [
|
|
283
|
+
__props.iconClass ? (openBlock(), createElementBlock("i", {
|
|
284
|
+
key: 0,
|
|
285
|
+
ref_key: "iconRef",
|
|
286
|
+
ref: iconRef,
|
|
287
|
+
class: normalizeClass(["tx-stat-card__progress-icon", __props.iconClass])
|
|
288
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
289
|
+
])
|
|
290
|
+
], 4)) : createCommentVNode("", true),
|
|
291
|
+
createElementVNode("div", _hoisted_3, [
|
|
292
|
+
hasInsight.value || isProgressVariant.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
293
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
294
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
295
|
+
], true)
|
|
296
|
+
])) : createCommentVNode("", true),
|
|
297
|
+
createElementVNode("div", _hoisted_5, [
|
|
89
298
|
renderSlot(_ctx.$slots, "value", {}, () => [
|
|
90
|
-
numericValue.value != null ? (openBlock(), createBlock(unref(
|
|
299
|
+
numericValue.value != null && unref(NumberFlowComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(NumberFlowComponent)), {
|
|
91
300
|
key: 0,
|
|
92
301
|
value: displayNumber.value
|
|
93
|
-
}, null, 8, ["value"])) : (openBlock(), createElementBlock("span",
|
|
302
|
+
}, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(displayString.value ?? displayText.value), 1))
|
|
94
303
|
], true)
|
|
95
304
|
]),
|
|
96
|
-
|
|
305
|
+
!hasInsight.value && !isProgressVariant.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
97
306
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
98
307
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
99
308
|
], true)
|
|
100
|
-
])
|
|
309
|
+
])) : hasInsight.value ? (openBlock(), createElementBlock("div", {
|
|
310
|
+
key: 2,
|
|
311
|
+
class: "tx-stat-card__insight",
|
|
312
|
+
style: normalizeStyle({ color: insightColor.value || void 0 })
|
|
313
|
+
}, [
|
|
314
|
+
createElementVNode("i", {
|
|
315
|
+
class: normalizeClass(["tx-stat-card__insight-icon", insightIconClass.value]),
|
|
316
|
+
"aria-hidden": "true"
|
|
317
|
+
}, null, 2),
|
|
318
|
+
insightPrefix.value ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(insightPrefix.value), 1)) : createCommentVNode("", true),
|
|
319
|
+
insightValue.value != null && unref(NumberFlowComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(NumberFlowComponent)), {
|
|
320
|
+
key: 1,
|
|
321
|
+
value: insightDisplayNumber.value
|
|
322
|
+
}, null, 8, ["value"])) : insightValue.value != null ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(insightDisplayNumber.value), 1)) : createCommentVNode("", true),
|
|
323
|
+
insightSuffix.value ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(insightSuffix.value), 1)) : createCommentVNode("", true)
|
|
324
|
+
], 4)) : isProgressVariant.value && (_ctx.$slots.meta || __props.meta) ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
325
|
+
renderSlot(_ctx.$slots, "meta", {}, () => [
|
|
326
|
+
createTextVNode(toDisplayString(__props.meta), 1)
|
|
327
|
+
], true)
|
|
328
|
+
])) : createCommentVNode("", true)
|
|
101
329
|
]),
|
|
102
|
-
__props.iconClass ? (openBlock(), createElementBlock("div",
|
|
330
|
+
__props.iconClass && !isProgressVariant.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
331
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "tx-stat-card__glow" }, null, -1)),
|
|
103
332
|
createElementVNode("i", {
|
|
104
|
-
class: normalizeClass(["tx-stat-card__decoration-icon", __props.iconClass])
|
|
105
|
-
style: { color: "var(--tx-text-color-secondary, #909399)" }
|
|
333
|
+
class: normalizeClass(["tx-stat-card__decoration-icon", __props.iconClass])
|
|
106
334
|
}, null, 2)
|
|
107
335
|
])) : createCommentVNode("", true)
|
|
108
336
|
], 2);
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
+
export type StatCardInsightType = 'percent' | 'delta';
|
|
2
|
+
export type StatCardVariant = 'default' | 'progress';
|
|
3
|
+
export interface StatCardInsight {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
type?: StatCardInsightType;
|
|
7
|
+
color?: 'success' | 'danger' | 'warning' | 'info' | string;
|
|
8
|
+
iconClass?: string;
|
|
9
|
+
suffix?: string;
|
|
10
|
+
precision?: number;
|
|
11
|
+
}
|
|
1
12
|
export interface StatCardProps {
|
|
2
13
|
value: number | string;
|
|
3
14
|
label: string;
|
|
4
15
|
iconClass?: string;
|
|
5
16
|
clickable?: boolean;
|
|
17
|
+
insight?: StatCardInsight;
|
|
18
|
+
variant?: StatCardVariant;
|
|
19
|
+
progress?: number;
|
|
20
|
+
meta?: string;
|
|
6
21
|
}
|
package/dist/es/switch/index.js
CHANGED
|
@@ -15,14 +15,14 @@ declare const TabBar: {
|
|
|
15
15
|
type: import('vue').PropType<import('./src/types').TabBarValue>;
|
|
16
16
|
default: any;
|
|
17
17
|
};
|
|
18
|
-
items: {
|
|
19
|
-
type: import('vue').PropType<TabBarItem[]>;
|
|
20
|
-
default: () => never[];
|
|
21
|
-
};
|
|
22
18
|
zIndex: {
|
|
23
19
|
type: import('vue').PropType<number>;
|
|
24
20
|
default: number;
|
|
25
21
|
};
|
|
22
|
+
items: {
|
|
23
|
+
type: import('vue').PropType<TabBarItem[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
26
|
safeAreaBottom: {
|
|
27
27
|
type: import('vue').PropType<boolean>;
|
|
28
28
|
default: boolean;
|
|
@@ -37,8 +37,8 @@ declare const TabBar: {
|
|
|
37
37
|
disabled: boolean;
|
|
38
38
|
fixed: boolean;
|
|
39
39
|
modelValue: import('./src/types').TabBarValue;
|
|
40
|
-
items: TabBarItem[];
|
|
41
40
|
zIndex: number;
|
|
41
|
+
items: TabBarItem[];
|
|
42
42
|
safeAreaBottom: boolean;
|
|
43
43
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
44
44
|
P: {};
|
|
@@ -60,14 +60,14 @@ declare const TabBar: {
|
|
|
60
60
|
type: import('vue').PropType<import('./src/types').TabBarValue>;
|
|
61
61
|
default: any;
|
|
62
62
|
};
|
|
63
|
-
items: {
|
|
64
|
-
type: import('vue').PropType<TabBarItem[]>;
|
|
65
|
-
default: () => never[];
|
|
66
|
-
};
|
|
67
63
|
zIndex: {
|
|
68
64
|
type: import('vue').PropType<number>;
|
|
69
65
|
default: number;
|
|
70
66
|
};
|
|
67
|
+
items: {
|
|
68
|
+
type: import('vue').PropType<TabBarItem[]>;
|
|
69
|
+
default: () => never[];
|
|
70
|
+
};
|
|
71
71
|
safeAreaBottom: {
|
|
72
72
|
type: import('vue').PropType<boolean>;
|
|
73
73
|
default: boolean;
|
|
@@ -79,8 +79,8 @@ declare const TabBar: {
|
|
|
79
79
|
disabled: boolean;
|
|
80
80
|
fixed: boolean;
|
|
81
81
|
modelValue: import('./src/types').TabBarValue;
|
|
82
|
-
items: TabBarItem[];
|
|
83
82
|
zIndex: number;
|
|
83
|
+
items: TabBarItem[];
|
|
84
84
|
safeAreaBottom: boolean;
|
|
85
85
|
}>;
|
|
86
86
|
__isFragment?: never;
|
|
@@ -99,14 +99,14 @@ declare const TabBar: {
|
|
|
99
99
|
type: import('vue').PropType<import('./src/types').TabBarValue>;
|
|
100
100
|
default: any;
|
|
101
101
|
};
|
|
102
|
-
items: {
|
|
103
|
-
type: import('vue').PropType<TabBarItem[]>;
|
|
104
|
-
default: () => never[];
|
|
105
|
-
};
|
|
106
102
|
zIndex: {
|
|
107
103
|
type: import('vue').PropType<number>;
|
|
108
104
|
default: number;
|
|
109
105
|
};
|
|
106
|
+
items: {
|
|
107
|
+
type: import('vue').PropType<TabBarItem[]>;
|
|
108
|
+
default: () => never[];
|
|
109
|
+
};
|
|
110
110
|
safeAreaBottom: {
|
|
111
111
|
type: import('vue').PropType<boolean>;
|
|
112
112
|
default: boolean;
|
|
@@ -121,8 +121,8 @@ declare const TabBar: {
|
|
|
121
121
|
disabled: boolean;
|
|
122
122
|
fixed: boolean;
|
|
123
123
|
modelValue: import('./src/types').TabBarValue;
|
|
124
|
-
items: TabBarItem[];
|
|
125
124
|
zIndex: number;
|
|
125
|
+
items: TabBarItem[];
|
|
126
126
|
safeAreaBottom: boolean;
|
|
127
127
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
128
128
|
export { TabBar, TxTabBar };
|
package/dist/es/tab-bar/index.js
CHANGED
|
@@ -24,8 +24,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
24
|
disabled: boolean;
|
|
25
25
|
fixed: boolean;
|
|
26
26
|
modelValue: TabBarValue;
|
|
27
|
-
items: import('./types').TabBarItem[];
|
|
28
27
|
zIndex: number;
|
|
28
|
+
items: import('./types').TabBarItem[];
|
|
29
29
|
safeAreaBottom: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
31
|
export default _default;
|
package/dist/es/tabs/index.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ declare const Tabs: {
|
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
|
+
borderless: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
36
40
|
autoHeight: {
|
|
37
41
|
type: BooleanConstructor;
|
|
38
42
|
default: boolean;
|
|
@@ -72,8 +76,9 @@ declare const Tabs: {
|
|
|
72
76
|
[key: string]: any;
|
|
73
77
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], import('vue').PublicProps, {
|
|
74
78
|
animation: any;
|
|
75
|
-
placement: string;
|
|
76
79
|
offset: number;
|
|
80
|
+
placement: string;
|
|
81
|
+
borderless: boolean;
|
|
77
82
|
indicatorVariant: string;
|
|
78
83
|
navMinWidth: number;
|
|
79
84
|
navMaxWidth: number;
|
|
@@ -119,6 +124,10 @@ declare const Tabs: {
|
|
|
119
124
|
type: BooleanConstructor;
|
|
120
125
|
default: boolean;
|
|
121
126
|
};
|
|
127
|
+
borderless: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
122
131
|
autoHeight: {
|
|
123
132
|
type: BooleanConstructor;
|
|
124
133
|
default: boolean;
|
|
@@ -158,8 +167,9 @@ declare const Tabs: {
|
|
|
158
167
|
[key: string]: any;
|
|
159
168
|
}>, {}, {}, {}, {
|
|
160
169
|
animation: any;
|
|
161
|
-
placement: string;
|
|
162
170
|
offset: number;
|
|
171
|
+
placement: string;
|
|
172
|
+
borderless: boolean;
|
|
163
173
|
indicatorVariant: string;
|
|
164
174
|
navMinWidth: number;
|
|
165
175
|
navMaxWidth: number;
|
|
@@ -202,6 +212,10 @@ declare const Tabs: {
|
|
|
202
212
|
type: BooleanConstructor;
|
|
203
213
|
default: boolean;
|
|
204
214
|
};
|
|
215
|
+
borderless: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
205
219
|
autoHeight: {
|
|
206
220
|
type: BooleanConstructor;
|
|
207
221
|
default: boolean;
|
|
@@ -241,8 +255,9 @@ declare const Tabs: {
|
|
|
241
255
|
[key: string]: any;
|
|
242
256
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
|
|
243
257
|
animation: any;
|
|
244
|
-
placement: string;
|
|
245
258
|
offset: number;
|
|
259
|
+
placement: string;
|
|
260
|
+
borderless: boolean;
|
|
246
261
|
indicatorVariant: string;
|
|
247
262
|
navMinWidth: number;
|
|
248
263
|
navMaxWidth: number;
|
package/dist/es/tabs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { withInstall } from '../utils/withInstall.js';
|
|
1
|
+
import { withInstall } from '../packages/tuffex/packages/utils/withInstall.js';
|
|
2
2
|
import TxTabHeader from './src/TxTabHeader.vue.js';
|
|
3
3
|
import TxTabItem from './src/TxTabItem.vue.js';
|
|
4
4
|
import _sfc_main from './src/TxTabItemGroup.vue.js';
|
|
@@ -27,6 +27,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
+
borderless: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
30
34
|
autoHeight: {
|
|
31
35
|
type: BooleanConstructor;
|
|
32
36
|
default: boolean;
|
|
@@ -88,6 +92,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
88
92
|
type: BooleanConstructor;
|
|
89
93
|
default: boolean;
|
|
90
94
|
};
|
|
95
|
+
borderless: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
91
99
|
autoHeight: {
|
|
92
100
|
type: BooleanConstructor;
|
|
93
101
|
default: boolean;
|
|
@@ -125,8 +133,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
125
133
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
126
134
|
}>, {
|
|
127
135
|
animation: any;
|
|
128
|
-
placement: string;
|
|
129
136
|
offset: number;
|
|
137
|
+
placement: string;
|
|
138
|
+
borderless: boolean;
|
|
130
139
|
indicatorVariant: string;
|
|
131
140
|
navMinWidth: number;
|
|
132
141
|
navMaxWidth: number;
|
|
@@ -2,6 +2,6 @@ import _sfc_main from './TxTabs.vue2.js';
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
|
|
4
4
|
|
|
5
|
-
const TxTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const TxTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4c3976ad"]]);
|
|
6
6
|
|
|
7
7
|
export { TxTabs as default };
|
|
@@ -15,6 +15,7 @@ const _sfc_main = defineComponent({
|
|
|
15
15
|
navMaxWidth: { type: Number, default: 320 },
|
|
16
16
|
contentPadding: { type: Number, default: 12 },
|
|
17
17
|
contentScrollable: { type: Boolean, default: true },
|
|
18
|
+
borderless: { type: Boolean, default: false },
|
|
18
19
|
autoHeight: { type: Boolean, default: false },
|
|
19
20
|
autoWidth: { type: Boolean, default: false },
|
|
20
21
|
indicatorVariant: { type: String, default: "line" },
|
|
@@ -194,7 +195,7 @@ const _sfc_main = defineComponent({
|
|
|
194
195
|
});
|
|
195
196
|
watch(
|
|
196
197
|
() => [contentRootElRef.value, sizeAnimEnabled.value],
|
|
197
|
-
(
|
|
198
|
+
() => {
|
|
198
199
|
},
|
|
199
200
|
{ immediate: true }
|
|
200
201
|
);
|
|
@@ -471,6 +472,7 @@ const _sfc_main = defineComponent({
|
|
|
471
472
|
{
|
|
472
473
|
"tx-tabs--auto-height": heightAnimEnabled.value,
|
|
473
474
|
"tx-tabs--auto-width": !!props.autoWidth,
|
|
475
|
+
"tx-tabs--borderless": props.borderless,
|
|
474
476
|
"tx-tabs--indicator-anim": animationIndicator.value.enabled,
|
|
475
477
|
"tx-tabs--nav-anim": animationNav.value.enabled,
|
|
476
478
|
"tx-tabs--content-anim": animationContent.value.enabled
|
package/dist/es/tag/index.js
CHANGED
package/dist/es/toast/index.js
CHANGED