@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,10 +1,16 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, createElementBlock, openBlock, normalizeClass, renderSlot, withDirectives, createCommentVNode, vModelText, vModelDynamic, createElementVNode } from 'vue';
|
|
1
|
+
import { defineComponent, useAttrs, computed, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, withDirectives, createCommentVNode, mergeProps, vModelText, vModelDynamic, createElementVNode } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = ["placeholder", "disabled", "readonly", "rows"];
|
|
4
4
|
const _hoisted_2 = ["type", "placeholder", "disabled", "readonly"];
|
|
5
|
+
const _hoisted_3 = {
|
|
6
|
+
key: 2,
|
|
7
|
+
class: "tx-input__capslock",
|
|
8
|
+
title: "CapsLock is on"
|
|
9
|
+
};
|
|
5
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
11
|
...{
|
|
7
|
-
name: "TuffInput"
|
|
12
|
+
name: "TuffInput",
|
|
13
|
+
inheritAttrs: false
|
|
8
14
|
},
|
|
9
15
|
__name: "TxInput",
|
|
10
16
|
props: {
|
|
@@ -14,33 +20,55 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
20
|
disabled: { type: Boolean, default: false },
|
|
15
21
|
readonly: { type: Boolean, default: false },
|
|
16
22
|
clearable: { type: Boolean, default: false },
|
|
17
|
-
rows: { default: 3 }
|
|
23
|
+
rows: { default: 3 },
|
|
24
|
+
prefixIcon: { default: "" },
|
|
25
|
+
suffixIcon: { default: "" }
|
|
18
26
|
},
|
|
19
27
|
emits: ["update:modelValue", "input", "focus", "blur", "clear"],
|
|
20
28
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
29
|
const props = __props;
|
|
22
30
|
const emit = __emit;
|
|
31
|
+
const attrs = useAttrs();
|
|
32
|
+
const inputAttrs = computed(() => {
|
|
33
|
+
const { class: _class, style: _style, ...rest } = attrs;
|
|
34
|
+
return rest;
|
|
35
|
+
});
|
|
36
|
+
const wrapperStyle = computed(() => attrs.style);
|
|
23
37
|
const inputValue = computed({
|
|
24
|
-
get: () => props.modelValue,
|
|
38
|
+
get: () => props.modelValue ?? "",
|
|
25
39
|
set: (val) => {
|
|
26
|
-
|
|
27
|
-
emit("
|
|
40
|
+
const normalized = props.type === "number" ? val === "" ? "" : Number(val) : val;
|
|
41
|
+
emit("update:modelValue", normalized);
|
|
42
|
+
emit("input", normalized);
|
|
28
43
|
}
|
|
29
44
|
});
|
|
30
45
|
const inputEl = ref(null);
|
|
46
|
+
const isFocused = ref(false);
|
|
47
|
+
const capsLockOn = ref(false);
|
|
31
48
|
const showClear = computed(() => {
|
|
32
|
-
return props.clearable && inputValue.value && !props.disabled && !props.readonly;
|
|
49
|
+
return props.clearable && inputValue.value !== "" && inputValue.value !== null && inputValue.value !== void 0 && !props.disabled && !props.readonly;
|
|
50
|
+
});
|
|
51
|
+
const showCapsLock = computed(() => {
|
|
52
|
+
return props.type === "password" && capsLockOn.value && isFocused.value;
|
|
33
53
|
});
|
|
34
54
|
function handleClear() {
|
|
35
55
|
inputValue.value = "";
|
|
36
56
|
emit("clear");
|
|
37
57
|
}
|
|
38
58
|
function handleFocus(e) {
|
|
59
|
+
isFocused.value = true;
|
|
39
60
|
emit("focus", e);
|
|
40
61
|
}
|
|
41
62
|
function handleBlur(e) {
|
|
63
|
+
isFocused.value = false;
|
|
64
|
+
capsLockOn.value = false;
|
|
42
65
|
emit("blur", e);
|
|
43
66
|
}
|
|
67
|
+
function handleKeydown(e) {
|
|
68
|
+
if (props.type === "password") {
|
|
69
|
+
capsLockOn.value = e.getModifierState("CapsLock");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
44
72
|
__expose({
|
|
45
73
|
focus: () => inputEl.value?.focus?.(),
|
|
46
74
|
blur: () => inputEl.value?.blur?.(),
|
|
@@ -55,12 +83,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
83
|
{
|
|
56
84
|
"is-disabled": __props.disabled,
|
|
57
85
|
"is-readonly": __props.readonly,
|
|
58
|
-
"is-textarea": __props.type === "textarea"
|
|
59
|
-
|
|
60
|
-
|
|
86
|
+
"is-textarea": __props.type === "textarea",
|
|
87
|
+
"is-focused": isFocused.value
|
|
88
|
+
},
|
|
89
|
+
unref(attrs).class
|
|
90
|
+
]]),
|
|
91
|
+
style: normalizeStyle(wrapperStyle.value)
|
|
61
92
|
}, [
|
|
62
|
-
renderSlot(_ctx.$slots, "prefix", {},
|
|
63
|
-
|
|
93
|
+
renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
94
|
+
__props.prefixIcon ? (openBlock(), createElementBlock("i", {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: normalizeClass(["tx-input__icon tx-input__icon--prefix", __props.prefixIcon])
|
|
97
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
98
|
+
], true),
|
|
99
|
+
__props.type === "textarea" ? withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
|
|
64
100
|
key: 0,
|
|
65
101
|
ref_key: "inputEl",
|
|
66
102
|
ref: inputEl,
|
|
@@ -69,12 +105,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
105
|
disabled: __props.disabled,
|
|
70
106
|
readonly: __props.readonly,
|
|
71
107
|
rows: __props.rows,
|
|
72
|
-
class: "tx-input__inner tx-input__textarea"
|
|
108
|
+
class: "tx-input__inner tx-input__textarea"
|
|
109
|
+
}, inputAttrs.value, {
|
|
73
110
|
onFocus: handleFocus,
|
|
74
|
-
onBlur: handleBlur
|
|
75
|
-
|
|
111
|
+
onBlur: handleBlur,
|
|
112
|
+
onKeydown: handleKeydown
|
|
113
|
+
}), null, 16, _hoisted_1)), [
|
|
76
114
|
[vModelText, inputValue.value]
|
|
77
|
-
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
115
|
+
]) : withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
78
116
|
key: 1,
|
|
79
117
|
ref_key: "inputEl",
|
|
80
118
|
ref: inputEl,
|
|
@@ -83,17 +121,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
121
|
placeholder: __props.placeholder,
|
|
84
122
|
disabled: __props.disabled,
|
|
85
123
|
readonly: __props.readonly,
|
|
86
|
-
class: "tx-input__inner"
|
|
124
|
+
class: "tx-input__inner"
|
|
125
|
+
}, inputAttrs.value, {
|
|
87
126
|
onFocus: handleFocus,
|
|
88
|
-
onBlur: handleBlur
|
|
89
|
-
|
|
127
|
+
onBlur: handleBlur,
|
|
128
|
+
onKeydown: handleKeydown
|
|
129
|
+
}), null, 16, _hoisted_2)), [
|
|
90
130
|
[vModelDynamic, inputValue.value]
|
|
91
131
|
]),
|
|
132
|
+
showCapsLock.value ? (openBlock(), createElementBlock("span", _hoisted_3, [..._cache[2] || (_cache[2] = [
|
|
133
|
+
createElementVNode("svg", {
|
|
134
|
+
viewBox: "0 0 24 24",
|
|
135
|
+
width: "14",
|
|
136
|
+
height: "14"
|
|
137
|
+
}, [
|
|
138
|
+
createElementVNode("path", {
|
|
139
|
+
fill: "currentColor",
|
|
140
|
+
d: "M12 2L4 10h3v4h10v-4h3L12 2zm-5 14v2h10v-2H7z"
|
|
141
|
+
})
|
|
142
|
+
], -1)
|
|
143
|
+
])])) : createCommentVNode("", true),
|
|
92
144
|
showClear.value ? (openBlock(), createElementBlock("span", {
|
|
93
|
-
key:
|
|
145
|
+
key: 3,
|
|
94
146
|
class: "tx-input__clear",
|
|
95
147
|
onClick: handleClear
|
|
96
|
-
}, [..._cache[
|
|
148
|
+
}, [..._cache[3] || (_cache[3] = [
|
|
97
149
|
createElementVNode("svg", {
|
|
98
150
|
viewBox: "0 0 24 24",
|
|
99
151
|
width: "16",
|
|
@@ -105,8 +157,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
157
|
})
|
|
106
158
|
], -1)
|
|
107
159
|
])])) : createCommentVNode("", true),
|
|
108
|
-
renderSlot(_ctx.$slots, "suffix", {},
|
|
109
|
-
|
|
160
|
+
renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
161
|
+
__props.suffixIcon ? (openBlock(), createElementBlock("i", {
|
|
162
|
+
key: 0,
|
|
163
|
+
class: normalizeClass(["tx-input__icon tx-input__icon--suffix", __props.suffixIcon])
|
|
164
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
165
|
+
], true)
|
|
166
|
+
], 6);
|
|
110
167
|
};
|
|
111
168
|
}
|
|
112
169
|
});
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { KeyframeStrokeTextProps } from './src/types';
|
|
2
|
+
import { default as TxKeyframeStrokeText } from './src/TxKeyframeStrokeText.vue';
|
|
3
|
+
|
|
4
|
+
declare const KeyframeStrokeText: {
|
|
5
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
6
|
+
text: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
fontSize: {
|
|
11
|
+
type: import('vue').PropType<string | number>;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
durationMs: {
|
|
15
|
+
type: import('vue').PropType<number>;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
strokeWidth: {
|
|
19
|
+
type: import('vue').PropType<number>;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
fontFamily: {
|
|
23
|
+
type: import('vue').PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
fontWeight: {
|
|
27
|
+
type: import('vue').PropType<string | number>;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
strokeColor: {
|
|
31
|
+
type: import('vue').PropType<string>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
fillColor: {
|
|
35
|
+
type: import('vue').PropType<string>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
39
|
+
text: string;
|
|
40
|
+
fontSize: string | number;
|
|
41
|
+
durationMs: number;
|
|
42
|
+
strokeWidth: number;
|
|
43
|
+
fontFamily: string;
|
|
44
|
+
fontWeight: string | number;
|
|
45
|
+
strokeColor: string;
|
|
46
|
+
fillColor: string;
|
|
47
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
48
|
+
P: {};
|
|
49
|
+
B: {};
|
|
50
|
+
D: {};
|
|
51
|
+
C: {};
|
|
52
|
+
M: {};
|
|
53
|
+
Defaults: {};
|
|
54
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
text: {
|
|
56
|
+
type: import('vue').PropType<string>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
fontSize: {
|
|
60
|
+
type: import('vue').PropType<string | number>;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
durationMs: {
|
|
64
|
+
type: import('vue').PropType<number>;
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
strokeWidth: {
|
|
68
|
+
type: import('vue').PropType<number>;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
fontFamily: {
|
|
72
|
+
type: import('vue').PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
fontWeight: {
|
|
76
|
+
type: import('vue').PropType<string | number>;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
strokeColor: {
|
|
80
|
+
type: import('vue').PropType<string>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
fillColor: {
|
|
84
|
+
type: import('vue').PropType<string>;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
88
|
+
text: string;
|
|
89
|
+
fontSize: string | number;
|
|
90
|
+
durationMs: number;
|
|
91
|
+
strokeWidth: number;
|
|
92
|
+
fontFamily: string;
|
|
93
|
+
fontWeight: string | number;
|
|
94
|
+
strokeColor: string;
|
|
95
|
+
fillColor: string;
|
|
96
|
+
}>;
|
|
97
|
+
__isFragment?: never;
|
|
98
|
+
__isTeleport?: never;
|
|
99
|
+
__isSuspense?: never;
|
|
100
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
101
|
+
text: {
|
|
102
|
+
type: import('vue').PropType<string>;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
fontSize: {
|
|
106
|
+
type: import('vue').PropType<string | number>;
|
|
107
|
+
default: number;
|
|
108
|
+
};
|
|
109
|
+
durationMs: {
|
|
110
|
+
type: import('vue').PropType<number>;
|
|
111
|
+
default: number;
|
|
112
|
+
};
|
|
113
|
+
strokeWidth: {
|
|
114
|
+
type: import('vue').PropType<number>;
|
|
115
|
+
default: number;
|
|
116
|
+
};
|
|
117
|
+
fontFamily: {
|
|
118
|
+
type: import('vue').PropType<string>;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
fontWeight: {
|
|
122
|
+
type: import('vue').PropType<string | number>;
|
|
123
|
+
default: number;
|
|
124
|
+
};
|
|
125
|
+
strokeColor: {
|
|
126
|
+
type: import('vue').PropType<string>;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
fillColor: {
|
|
130
|
+
type: import('vue').PropType<string>;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
134
|
+
text: string;
|
|
135
|
+
fontSize: string | number;
|
|
136
|
+
durationMs: number;
|
|
137
|
+
strokeWidth: number;
|
|
138
|
+
fontFamily: string;
|
|
139
|
+
fontWeight: string | number;
|
|
140
|
+
strokeColor: string;
|
|
141
|
+
fillColor: string;
|
|
142
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
143
|
+
export { KeyframeStrokeText, TxKeyframeStrokeText };
|
|
144
|
+
export type { KeyframeStrokeTextProps };
|
|
145
|
+
export type TxKeyframeStrokeTextInstance = InstanceType<typeof TxKeyframeStrokeText>;
|
|
146
|
+
export default KeyframeStrokeText;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { withInstall } from '../packages/tuffex/packages/utils/withInstall.js';
|
|
2
|
+
import TxKeyframeStrokeText from './src/TxKeyframeStrokeText.vue.js';
|
|
3
|
+
|
|
4
|
+
const KeyframeStrokeText = withInstall(TxKeyframeStrokeText);
|
|
5
|
+
|
|
6
|
+
export { KeyframeStrokeText, TxKeyframeStrokeText, KeyframeStrokeText as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { KeyframeStrokeTextProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<KeyframeStrokeTextProps>, {
|
|
4
|
+
text: string;
|
|
5
|
+
strokeColor: string;
|
|
6
|
+
fillColor: string;
|
|
7
|
+
durationMs: number;
|
|
8
|
+
strokeWidth: number;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
fontWeight: number;
|
|
11
|
+
fontFamily: string;
|
|
12
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<KeyframeStrokeTextProps>, {
|
|
13
|
+
text: string;
|
|
14
|
+
strokeColor: string;
|
|
15
|
+
fillColor: string;
|
|
16
|
+
durationMs: number;
|
|
17
|
+
strokeWidth: number;
|
|
18
|
+
fontSize: number;
|
|
19
|
+
fontWeight: number;
|
|
20
|
+
fontFamily: string;
|
|
21
|
+
}>>> & Readonly<{}>, {
|
|
22
|
+
text: string;
|
|
23
|
+
fontSize: string | number;
|
|
24
|
+
durationMs: number;
|
|
25
|
+
strokeWidth: number;
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
fontWeight: string | number;
|
|
28
|
+
strokeColor: string;
|
|
29
|
+
fillColor: string;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from './TxKeyframeStrokeText.vue2.js';
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
|
|
4
|
+
|
|
5
|
+
const TxKeyframeStrokeText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-162886b6"]]);
|
|
6
|
+
|
|
7
|
+
export { TxKeyframeStrokeText as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, nextTick, onMounted, createElementBlock, openBlock, normalizeStyle, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
+
|
|
3
|
+
const _hoisted_1 = ["viewBox", "aria-label"];
|
|
4
|
+
const _hoisted_2 = ["x", "y"];
|
|
5
|
+
const _hoisted_3 = ["x", "y"];
|
|
6
|
+
const _hoisted_4 = ["x", "y"];
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
...{
|
|
9
|
+
name: "TxKeyframeStrokeText"
|
|
10
|
+
},
|
|
11
|
+
__name: "TxKeyframeStrokeText",
|
|
12
|
+
props: {
|
|
13
|
+
text: { default: "" },
|
|
14
|
+
strokeColor: { default: "#4C4CFF" },
|
|
15
|
+
fillColor: { default: "#111827" },
|
|
16
|
+
durationMs: { default: 1800 },
|
|
17
|
+
strokeWidth: { default: 2 },
|
|
18
|
+
fontSize: { default: 64 },
|
|
19
|
+
fontWeight: { default: 700 },
|
|
20
|
+
fontFamily: { default: "inherit" }
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const measureRef = ref();
|
|
25
|
+
const textLength = ref(100);
|
|
26
|
+
const viewBox = ref("0 0 100 100");
|
|
27
|
+
const textX = ref(0);
|
|
28
|
+
const textY = ref(0);
|
|
29
|
+
const renderedText = computed(() => props.text || " ");
|
|
30
|
+
function toCssUnit(value) {
|
|
31
|
+
return typeof value === "number" ? `${value}px` : value;
|
|
32
|
+
}
|
|
33
|
+
function syncMetrics() {
|
|
34
|
+
const el = measureRef.value;
|
|
35
|
+
if (!el)
|
|
36
|
+
return;
|
|
37
|
+
const bbox = el.getBBox();
|
|
38
|
+
const width = Math.max(1, bbox.width);
|
|
39
|
+
const height = Math.max(1, bbox.height);
|
|
40
|
+
const padding = Math.max(4, props.strokeWidth * 3);
|
|
41
|
+
textX.value = padding - bbox.x;
|
|
42
|
+
textY.value = padding - bbox.y;
|
|
43
|
+
viewBox.value = `0 0 ${width + padding * 2} ${height + padding * 2}`;
|
|
44
|
+
textLength.value = Math.max(1, el.getComputedTextLength());
|
|
45
|
+
}
|
|
46
|
+
const styleVars = computed(() => ({
|
|
47
|
+
"--tx-kf-stroke-color": props.strokeColor,
|
|
48
|
+
"--tx-kf-fill-color": props.fillColor,
|
|
49
|
+
"--tx-kf-duration": `${props.durationMs}ms`,
|
|
50
|
+
"--tx-kf-stroke-width": `${props.strokeWidth}`,
|
|
51
|
+
"--tx-kf-stroke-length": `${textLength.value}`,
|
|
52
|
+
"--tx-kf-font-size": toCssUnit(props.fontSize),
|
|
53
|
+
"--tx-kf-font-weight": String(props.fontWeight),
|
|
54
|
+
"--tx-kf-font-family": props.fontFamily
|
|
55
|
+
}));
|
|
56
|
+
watch(
|
|
57
|
+
() => [renderedText.value, props.fontSize, props.fontWeight, props.fontFamily, props.strokeWidth],
|
|
58
|
+
async () => {
|
|
59
|
+
await nextTick();
|
|
60
|
+
syncMetrics();
|
|
61
|
+
},
|
|
62
|
+
{ immediate: true }
|
|
63
|
+
);
|
|
64
|
+
onMounted(() => {
|
|
65
|
+
if ("fonts" in document) {
|
|
66
|
+
void document.fonts.ready.then(() => {
|
|
67
|
+
syncMetrics();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
return (_ctx, _cache) => {
|
|
72
|
+
return openBlock(), createElementBlock("svg", {
|
|
73
|
+
class: "tx-keyframe-stroke-text",
|
|
74
|
+
style: normalizeStyle(styleVars.value),
|
|
75
|
+
viewBox: viewBox.value,
|
|
76
|
+
preserveAspectRatio: "xMinYMid meet",
|
|
77
|
+
role: "img",
|
|
78
|
+
"aria-label": __props.text || void 0
|
|
79
|
+
}, [
|
|
80
|
+
createElementVNode("text", {
|
|
81
|
+
ref_key: "measureRef",
|
|
82
|
+
ref: measureRef,
|
|
83
|
+
class: "tx-keyframe-stroke-text__measure",
|
|
84
|
+
x: textX.value,
|
|
85
|
+
y: textY.value
|
|
86
|
+
}, toDisplayString(renderedText.value), 9, _hoisted_2),
|
|
87
|
+
createElementVNode("text", {
|
|
88
|
+
class: "tx-keyframe-stroke-text__stroke",
|
|
89
|
+
x: textX.value,
|
|
90
|
+
y: textY.value
|
|
91
|
+
}, toDisplayString(renderedText.value), 9, _hoisted_3),
|
|
92
|
+
createElementVNode("text", {
|
|
93
|
+
class: "tx-keyframe-stroke-text__fill",
|
|
94
|
+
x: textX.value,
|
|
95
|
+
y: textY.value
|
|
96
|
+
}, toDisplayString(renderedText.value), 9, _hoisted_4)
|
|
97
|
+
], 12, _hoisted_1);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export { _sfc_main as default };
|
|
@@ -17,14 +17,14 @@ declare const LoadingOverlay: {
|
|
|
17
17
|
type: import('vue').PropType<boolean>;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
-
spinnerSize: {
|
|
21
|
-
type: import('vue').PropType<number>;
|
|
22
|
-
default: number;
|
|
23
|
-
};
|
|
24
20
|
background: {
|
|
25
21
|
type: import('vue').PropType<string>;
|
|
26
22
|
default: string;
|
|
27
23
|
};
|
|
24
|
+
spinnerSize: {
|
|
25
|
+
type: import('vue').PropType<number>;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
28
|
fullscreen: {
|
|
29
29
|
type: import('vue').PropType<boolean>;
|
|
30
30
|
default: boolean;
|
|
@@ -32,8 +32,8 @@ declare const LoadingOverlay: {
|
|
|
32
32
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
33
33
|
text: string;
|
|
34
34
|
loading: boolean;
|
|
35
|
-
spinnerSize: number;
|
|
36
35
|
background: string;
|
|
36
|
+
spinnerSize: number;
|
|
37
37
|
fullscreen: boolean;
|
|
38
38
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
39
39
|
P: {};
|
|
@@ -51,14 +51,14 @@ declare const LoadingOverlay: {
|
|
|
51
51
|
type: import('vue').PropType<boolean>;
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
|
-
spinnerSize: {
|
|
55
|
-
type: import('vue').PropType<number>;
|
|
56
|
-
default: number;
|
|
57
|
-
};
|
|
58
54
|
background: {
|
|
59
55
|
type: import('vue').PropType<string>;
|
|
60
56
|
default: string;
|
|
61
57
|
};
|
|
58
|
+
spinnerSize: {
|
|
59
|
+
type: import('vue').PropType<number>;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
62
|
fullscreen: {
|
|
63
63
|
type: import('vue').PropType<boolean>;
|
|
64
64
|
default: boolean;
|
|
@@ -66,8 +66,8 @@ declare const LoadingOverlay: {
|
|
|
66
66
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
67
67
|
text: string;
|
|
68
68
|
loading: boolean;
|
|
69
|
-
spinnerSize: number;
|
|
70
69
|
background: string;
|
|
70
|
+
spinnerSize: number;
|
|
71
71
|
fullscreen: boolean;
|
|
72
72
|
}>;
|
|
73
73
|
__isFragment?: never;
|
|
@@ -82,14 +82,14 @@ declare const LoadingOverlay: {
|
|
|
82
82
|
type: import('vue').PropType<boolean>;
|
|
83
83
|
default: boolean;
|
|
84
84
|
};
|
|
85
|
-
spinnerSize: {
|
|
86
|
-
type: import('vue').PropType<number>;
|
|
87
|
-
default: number;
|
|
88
|
-
};
|
|
89
85
|
background: {
|
|
90
86
|
type: import('vue').PropType<string>;
|
|
91
87
|
default: string;
|
|
92
88
|
};
|
|
89
|
+
spinnerSize: {
|
|
90
|
+
type: import('vue').PropType<number>;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
93
|
fullscreen: {
|
|
94
94
|
type: import('vue').PropType<boolean>;
|
|
95
95
|
default: boolean;
|
|
@@ -97,8 +97,8 @@ declare const LoadingOverlay: {
|
|
|
97
97
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
98
98
|
text: string;
|
|
99
99
|
loading: boolean;
|
|
100
|
-
spinnerSize: number;
|
|
101
100
|
background: string;
|
|
101
|
+
spinnerSize: number;
|
|
102
102
|
fullscreen: boolean;
|
|
103
103
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
104
104
|
$slots: {
|
|
@@ -18,8 +18,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
18
18
|
}>>> & Readonly<{}>, {
|
|
19
19
|
text: string;
|
|
20
20
|
loading: boolean;
|
|
21
|
-
spinnerSize: number;
|
|
22
21
|
background: string;
|
|
22
|
+
spinnerSize: number;
|
|
23
23
|
fullscreen: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, createElementBlock, openBlock, Teleport, createCommentVNode, normalizeStyle, createElementVNode, createVNode, unref, toDisplayString, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, watch, createBlock, createElementBlock, openBlock, Teleport, createCommentVNode, normalizeStyle, createElementVNode, createVNode, unref, toDisplayString, renderSlot } from 'vue';
|
|
2
2
|
import '../../spinner/index.js';
|
|
3
|
+
import { getZIndex, nextZIndex } from '../../packages/tuffex/packages/utils/z-index-manager.js';
|
|
3
4
|
import _sfc_main$1 from '../../spinner/src/TxSpinner.vue.js';
|
|
4
5
|
/* empty css */
|
|
5
6
|
|
|
@@ -31,11 +32,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
},
|
|
32
33
|
setup(__props) {
|
|
33
34
|
const props = __props;
|
|
35
|
+
const zIndex = ref(getZIndex());
|
|
34
36
|
const overlayStyle = computed(() => {
|
|
35
37
|
return {
|
|
36
38
|
"--tx-loading-overlay-bg": props.background
|
|
37
39
|
};
|
|
38
40
|
});
|
|
41
|
+
watch(
|
|
42
|
+
() => props.loading && props.fullscreen,
|
|
43
|
+
(open) => {
|
|
44
|
+
if (open)
|
|
45
|
+
zIndex.value = nextZIndex();
|
|
46
|
+
},
|
|
47
|
+
{ immediate: true }
|
|
48
|
+
);
|
|
39
49
|
return (_ctx, _cache) => {
|
|
40
50
|
return __props.fullscreen ? (openBlock(), createBlock(Teleport, {
|
|
41
51
|
key: 0,
|
|
@@ -44,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
54
|
__props.loading ? (openBlock(), createElementBlock("div", {
|
|
45
55
|
key: 0,
|
|
46
56
|
class: "tx-loading-overlay tx-loading-overlay--fullscreen",
|
|
47
|
-
style: normalizeStyle(overlayStyle.value)
|
|
57
|
+
style: normalizeStyle([overlayStyle.value, { zIndex: zIndex.value }])
|
|
48
58
|
}, [
|
|
49
59
|
createElementVNode("div", _hoisted_1, [
|
|
50
60
|
createVNode(unref(_sfc_main$1), { size: __props.spinnerSize }, null, 8, ["size"]),
|