@vunk/plus 1.13.1 → 1.14.0
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/ant/_util/BaseInput.d.ts +56 -0
- package/ant/_util/BaseInputInner.d.ts +65 -0
- package/ant/_util/BaseMixin.d.ts +7 -0
- package/ant/_util/EventInterface.d.ts +18 -0
- package/ant/_util/KeyCode.d.ts +436 -0
- package/ant/_util/Portal.d.ts +14 -0
- package/ant/_util/PortalWrapper.d.ts +41 -0
- package/ant/_util/canUseDom.d.ts +2 -0
- package/ant/_util/classNames.d.ts +2 -0
- package/ant/_util/collapseMotion.d.ts +3 -0
- package/ant/_util/colors.d.ts +13 -0
- package/ant/_util/copy-to-clipboard/index.d.ts +8 -0
- package/ant/_util/copy-to-clipboard/toggle-selection.d.ts +2 -0
- package/ant/_util/createContext.d.ts +5 -0
- package/ant/_util/createRef.d.ts +10 -0
- package/ant/_util/cssinjs/Cache.d.ts +11 -0
- package/ant/_util/cssinjs/Keyframes.d.ts +9 -0
- package/ant/_util/cssinjs/StyleContext.d.ts +508 -0
- package/ant/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/ant/_util/cssinjs/hooks/useGlobalCache.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/index.d.ts +68 -0
- package/ant/_util/cssinjs/index.d.ts +195 -0
- package/ant/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/index.d.ts +6 -0
- package/ant/_util/cssinjs/linters/interface.d.ts +8 -0
- package/ant/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/utils.d.ts +2 -0
- package/ant/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/ant/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/ant/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/ant/_util/cssinjs/theme/index.d.ts +4 -0
- package/ant/_util/cssinjs/theme/interface.d.ts +2 -0
- package/ant/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/ant/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/ant/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/ant/_util/cssinjs/util.d.ts +8 -0
- package/ant/_util/firstNotUndefined.d.ts +2 -0
- package/ant/_util/gapSize.d.ts +3 -0
- package/ant/_util/getScrollBarSize.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/resolveUnref.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/types.d.ts +114 -0
- package/ant/_util/hooks/_vueuse/unrefElement.d.ts +13 -0
- package/ant/_util/hooks/useBreakpoint.d.ts +4 -0
- package/ant/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/ant/_util/hooks/useMergedState.d.ts +7 -0
- package/ant/_util/hooks/useRefs.d.ts +7 -0
- package/ant/_util/hooks/useScrollLocker.d.ts +6 -0
- package/ant/_util/hooks/useState.d.ts +2 -0
- package/ant/_util/isValid.d.ts +2 -0
- package/ant/_util/omit.d.ts +2 -0
- package/ant/_util/pickAttrs.d.ts +11 -0
- package/ant/_util/placements.d.ts +65 -0
- package/ant/_util/props-util/index.d.ts +33 -0
- package/ant/_util/props-util/initDefaultProps.d.ts +6 -0
- package/ant/_util/raf.d.ts +5 -0
- package/ant/_util/responsiveObserve.d.ts +21 -0
- package/ant/_util/setStyle.d.ts +12 -0
- package/ant/_util/statusUtils.d.ts +6 -0
- package/ant/_util/styleChecker.d.ts +4 -0
- package/ant/_util/transButton.d.ts +34 -0
- package/ant/_util/transition.d.ts +18 -0
- package/ant/_util/type.d.ts +62 -0
- package/ant/_util/util.d.ts +18 -0
- package/ant/_util/vnode.d.ts +11 -0
- package/ant/_util/vue-types/index.d.ts +12 -0
- package/ant/_util/warning.d.ts +6 -0
- package/ant/_util/wave/WaveEffect.d.ts +6 -0
- package/ant/_util/wave/index.d.ts +13 -0
- package/ant/_util/wave/style.d.ts +6 -0
- package/ant/_util/wave/useWave.d.ts +4 -0
- package/ant/_util/wave/util.d.ts +3 -0
- package/ant/button/LoadingIcon.d.ts +12 -0
- package/ant/button/button-group.d.ts +33 -0
- package/ant/button/button.d.ts +112 -0
- package/ant/button/buttonTypes.d.ts +58 -0
- package/ant/button/index.d.ts +12 -0
- package/ant/button/style/group.d.ts +4 -0
- package/ant/button/style/index.d.ts +10 -0
- package/ant/calendar/style/index.d.ts +21 -0
- package/ant/config-provider/DisabledContext.d.ts +4 -0
- package/ant/config-provider/SizeContext.d.ts +4 -0
- package/ant/config-provider/context.d.ts +208 -0
- package/ant/config-provider/cssVariables.d.ts +3 -0
- package/ant/config-provider/hooks/useConfigInject.d.ts +37 -0
- package/ant/config-provider/hooks/useTheme.d.ts +3 -0
- package/ant/config-provider/index.d.ts +290 -0
- package/ant/config-provider/renderEmpty.d.ts +8 -0
- package/ant/config-provider/style/index.d.ts +3 -0
- package/ant/date-picker/style/index.d.ts +35 -0
- package/ant/empty/empty.d.ts +2 -0
- package/ant/empty/index.d.ts +86 -0
- package/ant/empty/simple.d.ts +2 -0
- package/ant/empty/style/index.d.ts +5 -0
- package/ant/flex/index.d.ts +142 -0
- package/ant/flex/interface.d.ts +36 -0
- package/ant/flex/style/index.d.ts +29 -0
- package/ant/flex/utils.d.ts +6 -0
- package/ant/form/ErrorList.d.ts +21 -0
- package/ant/form/Form.d.ts +772 -0
- package/ant/form/FormItem.d.ts +191 -0
- package/ant/form/FormItemContext.d.ts +32 -0
- package/ant/form/FormItemInput.d.ts +44 -0
- package/ant/form/FormItemLabel.d.ts +19 -0
- package/ant/form/context.d.ts +35 -0
- package/ant/form/index.d.ts +16 -0
- package/ant/form/interface.d.ts +171 -0
- package/ant/form/style/explain.d.ts +4 -0
- package/ant/form/style/index.d.ts +7 -0
- package/ant/form/useForm.d.ts +45 -0
- package/ant/form/utils/asyncUtil.d.ts +2 -0
- package/ant/form/utils/messages.d.ts +47 -0
- package/ant/form/utils/typeUtil.d.ts +1 -0
- package/ant/form/utils/useDebounce.d.ts +2 -0
- package/ant/form/utils/validateUtil.d.ts +6 -0
- package/ant/form/utils/valueUtil.d.ts +15 -0
- package/ant/grid/Col.d.ts +116 -0
- package/ant/grid/Row.d.ts +77 -0
- package/ant/grid/context.d.ts +11 -0
- package/ant/grid/index.d.ts +10 -0
- package/ant/grid/style/index.d.ts +2 -0
- package/ant/image/PreviewGroup.d.ts +37 -0
- package/ant/image/index.d.ts +71 -0
- package/ant/image/style/index.d.ts +21 -0
- package/ant/index.cjs +203 -0
- package/ant/index.d.ts +27 -0
- package/ant/index.mjs +20993 -0
- package/ant/input/ClearableLabeledInput.d.ts +151 -0
- package/ant/input/Group.d.ts +24 -0
- package/ant/input/Input.d.ts +191 -0
- package/ant/input/Password.d.ts +217 -0
- package/ant/input/ResizableTextArea.d.ts +215 -0
- package/ant/input/Search.d.ts +195 -0
- package/ant/input/TextArea.d.ts +217 -0
- package/ant/input/calculateNodeHeight.d.ts +9 -0
- package/ant/input/index.d.ts +15 -0
- package/ant/input/inputProps.d.ts +207 -0
- package/ant/input/style/index.d.ts +30 -0
- package/ant/input/util.d.ts +2 -0
- package/ant/locale/LocaleReceiver.d.ts +35 -0
- package/ant/locale/en_US.d.ts +3 -0
- package/ant/locale/index.d.ts +91 -0
- package/ant/locale-provider/LocaleReceiver.d.ts +3 -0
- package/ant/locale-provider/index.d.ts +3 -0
- package/ant/modal/locale.d.ts +7 -0
- package/ant/modal/style/index.d.ts +32 -0
- package/ant/progress/Circle.d.ts +168 -0
- package/ant/progress/Line.d.ts +205 -0
- package/ant/progress/Steps.d.ts +168 -0
- package/ant/progress/index.d.ts +204 -0
- package/ant/progress/progress.d.ts +117 -0
- package/ant/progress/props.d.ts +79 -0
- package/ant/progress/style/index.d.ts +4 -0
- package/ant/progress/utils.d.ts +13 -0
- package/ant/space/Compact.d.ts +119 -0
- package/ant/space/style/compact.d.ts +8 -0
- package/ant/space/style/index.d.ts +5 -0
- package/ant/style/compact-item-vertical.d.ts +4 -0
- package/ant/style/compact-item.d.ts +18 -0
- package/ant/style/index.d.ts +13 -0
- package/ant/style/motion/collapse.d.ts +4 -0
- package/ant/style/motion/fade.d.ts +7 -0
- package/ant/style/motion/index.d.ts +6 -0
- package/ant/style/motion/motion.d.ts +2 -0
- package/ant/style/motion/move.d.ts +15 -0
- package/ant/style/motion/slide.d.ts +15 -0
- package/ant/style/motion/zoom.d.ts +19 -0
- package/ant/style/operationUnit.d.ts +3 -0
- package/ant/style/placementArrow.d.ts +19 -0
- package/ant/style/presetColor.d.ts +16 -0
- package/ant/style/roundedArrow.d.ts +2 -0
- package/ant/theme/index.d.ts +23 -0
- package/ant/theme/interface/alias.d.ts +115 -0
- package/ant/theme/interface/components.d.ts +32 -0
- package/ant/theme/interface/index.d.ts +13 -0
- package/ant/theme/interface/maps/colors.d.ts +350 -0
- package/ant/theme/interface/maps/font.d.ts +44 -0
- package/ant/theme/interface/maps/index.d.ts +17 -0
- package/ant/theme/interface/maps/size.d.ts +63 -0
- package/ant/theme/interface/maps/style.d.ts +37 -0
- package/ant/theme/interface/presetColors.d.ts +8 -0
- package/ant/theme/interface/seeds.d.ts +163 -0
- package/ant/theme/internal.d.ts +49 -0
- package/ant/theme/themes/ColorMap.d.ts +15 -0
- package/ant/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/ant/theme/themes/compact/index.d.ts +4 -0
- package/ant/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/dark/colors.d.ts +3 -0
- package/ant/theme/themes/dark/index.d.ts +4 -0
- package/ant/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/default/colors.d.ts +3 -0
- package/ant/theme/themes/default/index.d.ts +2 -0
- package/ant/theme/themes/seed.d.ts +4 -0
- package/ant/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/ant/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/ant/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/ant/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/ant/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/ant/theme/themes/shared/genRadius.d.ts +3 -0
- package/ant/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/ant/theme/util/alias.d.ts +12 -0
- package/ant/theme/util/genComponentStyleHook.d.ts +26 -0
- package/ant/theme/util/getAlphaColor.d.ts +2 -0
- package/ant/theme/util/statistic.d.ts +18 -0
- package/ant/tooltip/Tooltip.d.ts +228 -0
- package/ant/tooltip/abstractTooltipProps.d.ts +73 -0
- package/ant/tooltip/index.d.ts +245 -0
- package/ant/tooltip/style/index.d.ts +8 -0
- package/ant/tooltip/util.d.ts +6 -0
- package/ant/typography/Base.d.ts +200 -0
- package/ant/typography/Editable.d.ts +49 -0
- package/ant/typography/Link.d.ts +51 -0
- package/ant/typography/Paragraph.d.ts +51 -0
- package/ant/typography/Text.d.ts +51 -0
- package/ant/typography/Title.d.ts +48 -0
- package/ant/typography/Typography.d.ts +24 -0
- package/ant/typography/index.d.ts +17 -0
- package/ant/typography/style/index.d.ts +9 -0
- package/ant/typography/style/mixins.d.ts +9 -0
- package/ant/typography/util.d.ts +11 -0
- package/ant/upload/Dragger.d.ts +393 -0
- package/ant/upload/Upload.d.ts +396 -0
- package/ant/upload/UploadList/ListItem.d.ts +339 -0
- package/ant/upload/UploadList/index.d.ts +232 -0
- package/ant/upload/index.d.ts +1460 -0
- package/ant/upload/interface.d.ts +355 -0
- package/ant/upload/style/dragger.d.ts +4 -0
- package/ant/upload/style/index.d.ts +10 -0
- package/ant/upload/style/list.d.ts +4 -0
- package/ant/upload/style/motion.d.ts +4 -0
- package/ant/upload/style/picture.d.ts +5 -0
- package/ant/upload/style/rtl.d.ts +4 -0
- package/ant/upload/utils.d.ts +8 -0
- package/ant/vc-align/Align.d.ts +45 -0
- package/ant/vc-align/hooks/useBuffer.d.ts +3 -0
- package/ant/vc-align/interface.d.ts +56 -0
- package/ant/vc-align/util.d.ts +4 -0
- package/ant/vc-dialog/Content.d.ts +181 -0
- package/ant/vc-dialog/Dialog.d.ts +169 -0
- package/ant/vc-dialog/DialogWrap.d.ts +165 -0
- package/ant/vc-dialog/IDialogPropTypes.d.ts +79 -0
- package/ant/vc-dialog/Mask.d.ts +14 -0
- package/ant/vc-dialog/index.d.ts +4 -0
- package/ant/vc-dialog/util.d.ts +6 -0
- package/ant/vc-image/index.d.ts +3 -0
- package/ant/vc-image/src/Image.d.ts +114 -0
- package/ant/vc-image/src/Preview.d.ts +292 -0
- package/ant/vc-image/src/PreviewGroup.d.ts +79 -0
- package/ant/vc-image/src/getFixScaleEleTransPosition.d.ts +16 -0
- package/ant/vc-image/src/hooks/useFrameSetState.d.ts +3 -0
- package/ant/vc-input/BaseInput.d.ts +97 -0
- package/ant/vc-input/Input.d.ts +192 -0
- package/ant/vc-input/inputProps.d.ts +169 -0
- package/ant/vc-input/utils/commonUtils.d.ts +8 -0
- package/ant/vc-progress/index.d.ts +5 -0
- package/ant/vc-progress/src/Circle.d.ts +41 -0
- package/ant/vc-progress/src/Line.d.ts +40 -0
- package/ant/vc-progress/src/common.d.ts +5 -0
- package/ant/vc-progress/src/index.d.ts +86 -0
- package/ant/vc-progress/src/types.d.ts +25 -0
- package/ant/vc-resize-observer/index.d.ts +25 -0
- package/ant/vc-tooltip/index.d.ts +2 -0
- package/ant/vc-tooltip/src/Content.d.ts +17 -0
- package/ant/vc-tooltip/src/Tooltip.d.ts +141 -0
- package/ant/vc-tooltip/src/placements.d.ts +111 -0
- package/ant/vc-trigger/Popup/Mask.d.ts +14 -0
- package/ant/vc-trigger/Popup/MobilePopupInner.d.ts +103 -0
- package/ant/vc-trigger/Popup/PopupInner.d.ts +98 -0
- package/ant/vc-trigger/Popup/index.d.ts +104 -0
- package/ant/vc-trigger/Popup/interface.d.ts +151 -0
- package/ant/vc-trigger/Popup/useStretchStyle.d.ts +4 -0
- package/ant/vc-trigger/Popup/useVisibleStatus.d.ts +15 -0
- package/ant/vc-trigger/Trigger.d.ts +282 -0
- package/ant/vc-trigger/context.d.ts +11 -0
- package/ant/vc-trigger/index.d.ts +6 -0
- package/ant/vc-trigger/interface.d.ts +175 -0
- package/ant/vc-trigger/utils/alignUtil.d.ts +3 -0
- package/ant/vc-trigger/utils/motionUtil.d.ts +12 -0
- package/ant/vc-upload/AjaxUploader.d.ts +108 -0
- package/ant/vc-upload/Upload.d.ts +108 -0
- package/ant/vc-upload/attr-accept.d.ts +3 -0
- package/ant/vc-upload/index.d.ts +4 -0
- package/ant/vc-upload/interface.d.ts +79 -0
- package/ant/vc-upload/request.d.ts +4 -0
- package/ant/vc-upload/traverseFileTree.d.ts +14 -0
- package/ant/vc-upload/uid.d.ts +1 -0
- package/ant/vc-util/Dom/contains.d.ts +1 -0
- package/ant/vc-util/Dom/css.d.ts +22 -0
- package/ant/vc-util/Dom/dynamicCSS.d.ts +20 -0
- package/ant/vc-util/Dom/isVisible.d.ts +2 -0
- package/ant/vc-util/Dom/scrollLocker.d.ts +12 -0
- package/ant/vc-util/devWarning.d.ts +4 -0
- package/ant/vc-util/get.d.ts +1 -0
- package/ant/vc-util/set.d.ts +1 -0
- package/ant/vc-util/warning.d.ts +7 -0
- package/ant/version/index.d.ts +2 -0
- package/antx/_util/__tests__/warning.test.d.ts +1 -0
- package/antx/_util/cssinjs/Cache.d.ts +11 -0
- package/antx/_util/cssinjs/Keyframes.d.ts +9 -0
- package/antx/_util/cssinjs/StyleContext.d.ts +508 -0
- package/antx/_util/cssinjs/hooks/useCSSVarRegister.d.ts +20 -0
- package/antx/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/antx/_util/cssinjs/hooks/useGlobalCache.d.ts +6 -0
- package/antx/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/index.d.ts +69 -0
- package/antx/_util/cssinjs/index.d.ts +197 -0
- package/antx/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/index.d.ts +6 -0
- package/antx/_util/cssinjs/linters/interface.d.ts +8 -0
- package/antx/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/utils.d.ts +2 -0
- package/antx/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/antx/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/antx/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/antx/_util/cssinjs/theme/index.d.ts +4 -0
- package/antx/_util/cssinjs/theme/interface.d.ts +2 -0
- package/antx/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/antx/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/antx/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/antx/_util/cssinjs/util.d.ts +28 -0
- package/antx/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +5 -0
- package/antx/_util/cssinjs-utils/hooks/useCSP.d.ts +8 -0
- package/antx/_util/cssinjs-utils/hooks/usePrefix.d.ts +11 -0
- package/antx/_util/cssinjs-utils/hooks/useToken.d.ts +21 -0
- package/antx/_util/cssinjs-utils/index.d.ts +6 -0
- package/antx/_util/cssinjs-utils/interface/components.d.ts +10 -0
- package/antx/_util/cssinjs-utils/interface/index.d.ts +3 -0
- package/antx/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +15 -0
- package/antx/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +11 -0
- package/antx/_util/cssinjs-utils/util/calc/calculator.d.ts +30 -0
- package/antx/_util/cssinjs-utils/util/calc/index.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/genStyleUtils.d.ts +116 -0
- package/antx/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +2 -0
- package/antx/_util/cssinjs-utils/util/getComponentToken.d.ts +9 -0
- package/antx/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/maxmin.d.ts +8 -0
- package/antx/_util/cssinjs-utils/util/statistic.d.ts +20 -0
- package/antx/_util/getScrollBarSize.d.ts +5 -0
- package/antx/_util/getValue.d.ts +2 -0
- package/antx/_util/hooks/use-event-callback.d.ts +1 -0
- package/antx/_util/hooks/use-state.d.ts +2 -0
- package/antx/_util/hooks/use-x-component-config.d.ts +4 -0
- package/antx/_util/hooks/useMergedState.d.ts +7 -0
- package/antx/_util/motion.d.ts +3 -0
- package/antx/_util/pick-attrs.d.ts +11 -0
- package/antx/_util/setStyle.d.ts +12 -0
- package/antx/_util/transition.d.ts +29 -0
- package/antx/_util/type.d.ts +62 -0
- package/antx/_util/warning.d.ts +47 -0
- package/antx/attachments/Attachments.vue.d.ts +16 -0
- package/antx/attachments/DropArea.vue.d.ts +4 -0
- package/antx/attachments/FileList/AudioIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/FileList.vue.d.ts +4 -0
- package/antx/attachments/FileList/FileListCard.vue.d.ts +6 -0
- package/antx/attachments/FileList/Progress.vue.d.ts +103 -0
- package/antx/attachments/FileList/VideoIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/index.d.ts +3 -0
- package/antx/attachments/PlaceholderUploader.vue.d.ts +6 -0
- package/antx/attachments/SilentUploader.vue.d.ts +6 -0
- package/antx/attachments/constants.d.ts +9 -0
- package/antx/attachments/context.d.ts +21 -0
- package/antx/attachments/index.d.ts +26 -0
- package/antx/attachments/interface.d.ts +130 -0
- package/antx/attachments/style/fileCard.d.ts +4 -0
- package/antx/attachments/style/index.d.ts +9 -0
- package/antx/attachments/util.d.ts +3 -0
- package/antx/components.d.ts +4 -0
- package/antx/hooks.d.ts +8 -0
- package/antx/index.cjs +78 -0
- package/antx/index.d.ts +10 -0
- package/antx/index.mjs +6015 -0
- package/antx/sender/Sender.vue.d.ts +48 -0
- package/antx/sender/SenderHeader.vue.d.ts +13 -0
- package/antx/sender/StopLoading.vue.d.ts +6 -0
- package/antx/sender/components/ActionButton/context.d.ts +21 -0
- package/antx/sender/components/ActionButton/index.vue.d.ts +13 -0
- package/antx/sender/components/ClearButton.vue.d.ts +4 -0
- package/antx/sender/components/LoadingButton.vue.d.ts +4 -0
- package/antx/sender/components/SendButton.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/RecordingIcon.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/index.vue.d.ts +4 -0
- package/antx/sender/context.d.ts +21 -0
- package/antx/sender/index.d.ts +82 -0
- package/antx/sender/interface.d.ts +145 -0
- package/antx/sender/style/header.d.ts +4 -0
- package/antx/sender/style/index.d.ts +9 -0
- package/antx/sender/useSpeech.d.ts +16 -0
- package/antx/theme/components.d.ts +8 -0
- package/antx/theme/cssinjs-utils.d.ts +14 -0
- package/antx/theme/genStyleUtils.d.ts +27 -0
- package/antx/theme/index.d.ts +2 -0
- package/antx/theme/patch-antd.d.ts +28 -0
- package/antx/theme/useToken.d.ts +19 -0
- package/antx/transition-collapse/TransitionCollapse.vue.d.ts +17 -0
- package/antx/transition-collapse/index.d.ts +6 -0
- package/antx/transition-collapse/style/index.d.ts +6 -0
- package/antx/type-utility.d.ts +1 -0
- package/antx/use-x-agent/index.d.ts +4 -0
- package/antx/use-x-agent/use-x-agent.d.ts +34 -0
- package/antx/use-x-chat/index.d.ts +4 -0
- package/antx/use-x-chat/use-x-chat.d.ts +54 -0
- package/antx/use-x-chat/useSyncState.d.ts +4 -0
- package/antx/version/index.d.ts +2 -0
- package/antx/x-provider/context.d.ts +84 -0
- package/antx/x-provider/hooks/use-x-provider-context.d.ts +9 -0
- package/antx/x-provider/index.d.ts +5 -0
- package/antx/x-provider/index.vue.d.ts +13 -0
- package/antx/x-request/index.d.ts +6 -0
- package/antx/x-request/x-fetch.d.ts +18 -0
- package/antx/x-request/x-request.d.ts +89 -0
- package/antx/x-stream/index.d.ts +4 -0
- package/antx/x-stream/x-stream.d.ts +32 -0
- package/components/agent-chat-provider/index.cjs +1 -1
- package/components/agent-chat-provider/index.mjs +1 -3
- package/components/agent-chat-provider/src/index.vue.d.ts +3 -3
- package/components/agent-chat-provider/src/types.d.ts +1 -1
- package/components/agent-chat-provider/src/use.d.ts +2 -2
- package/components/avatar/index.mjs +2 -2
- package/components/avatar/src/index.vue.d.ts +2 -121
- package/components/broadcasting-markdown/index.cjs +3 -3
- package/components/broadcasting-markdown/index.mjs +2 -5
- package/components/broadcasting-markdown/src/ctx.d.ts +2 -2
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +6 -6
- package/components/broadcasting-markdown/src/index.vue.d.ts +33 -33
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +1 -1
- package/components/broadcasting-markdown/src/use.d.ts +1 -1
- package/components/bubble-list/index.cjs +1 -1
- package/components/bubble-list/index.mjs +5 -5
- package/components/bubble-list/src/core/index.vue.d.ts +7 -7
- package/components/bubble-list/src/ctx.d.ts +2 -2
- package/components/bubble-list/src/index.vue.d.ts +5 -4
- package/components/bubble-templates/index.mjs +2 -2
- package/components/chat-independent/index.mjs +4 -4
- package/components/chat-independent/src/index.vue.d.ts +1 -1
- package/components/drawer/index.mjs +1 -1
- package/components/drawer/src/ctx.d.ts +37 -31
- package/components/drawer/src/index.vue.d.ts +87 -77
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/index.vue.d.ts +1 -1
- package/components/metahuman-broadcasting/index.mjs +2 -2
- package/components/metahuman-broadcasting/src/ctx.d.ts +2 -2
- package/components/metahuman-broadcasting/src/index.vue.d.ts +4 -4
- package/components/monaco-editor/index.cjs +1 -1
- package/components/monaco-editor/index.mjs +52 -48
- package/components/monaco-editor/src/ctx.d.ts +3 -3
- package/components/monaco-editor/src/index.vue.d.ts +5 -5
- package/components/pixi-frame/index.cjs +1 -1
- package/components/pixi-frame/index.mjs +25 -25
- package/components/pixi-frame/src/apng.vue.d.ts +10 -10
- package/components/pixi-frame/src/bitmap-generator.vue.d.ts +7 -7
- package/components/pixi-frame/src/bitmap.vue.d.ts +12 -12
- package/components/pixi-frame/src/buffer-image.vue.d.ts +13 -13
- package/components/pixi-frame/src/core.vue.d.ts +12 -12
- package/components/pixi-frame/src/ctx.d.ts +5 -5
- package/components/pixi-frame/src/index.vue.d.ts +81 -81
- package/components/pixi-frame/src/video.vue.d.ts +10 -10
- package/components/recorder-button/index.cjs +1 -1
- package/components/recorder-button/index.mjs +75 -75
- package/components/recorder-button/src/ctx.d.ts +3 -3
- package/components/recorder-button/src/index.vue.d.ts +114 -197
- package/components/routes-menu-content/index.cjs +1 -1
- package/components/routes-menu-content/index.mjs +12 -12
- package/components/routes-menu-content/src/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/index.vue.d.ts +58 -99
- package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +40 -81
- package/components/routes-menu-content/src/item/index.vue.d.ts +56 -97
- package/components/scrollbar/index.mjs +4 -4
- package/components/scrollbar/src/index.vue.d.ts +35 -34
- package/components/scrollbar/src/util.d.ts +1 -1
- package/components/sender/index.cjs +1 -1
- package/components/sender/index.mjs +7 -7
- package/components/sender/src/SenderHeader.vue.d.ts +2 -2
- package/components/sender/src/ctx.d.ts +9 -9
- package/components/sender/src/index.vue.d.ts +28 -28
- package/components/speech-button/index.cjs +1 -1
- package/components/speech-button/index.mjs +1 -1
- package/components/speech-button/src/ctx.d.ts +1 -1
- package/components/speech-button/src/index.vue.d.ts +3 -3
- package/components/table-columns/src/ctx.d.ts +2 -2
- package/components/table-columns/src/el-ctx.d.ts +2 -2
- package/components/table-columns/src/index.vue.d.ts +6 -6
- package/components/table-columns/src/types.d.ts +3 -4
- package/components/tables-v1/index.cjs +1 -1
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +69 -74
- package/components/tables-v1/src/el-ctx.d.ts +24 -24
- package/components/tables-v1/src/index.vue.d.ts +54 -313
- package/components/tables-v1-checkbox/index.cjs +31 -35
- package/components/tables-v1-checkbox/index.mjs +1239 -1042
- package/components/tables-v1-checkbox/src/ctx.d.ts +68 -73
- package/components/tables-v1-checkbox/src/index.vue.d.ts +274 -542
- package/components/text/index.mjs +3 -3
- package/components/text/src/ctx.d.ts +39 -246
- package/components/text/src/index.vue.d.ts +98 -509
- package/components/thinking/index.mjs +5 -5
- package/components/thinking/src/ctx.d.ts +3 -3
- package/components/thinking/src/index.vue.d.ts +8 -8
- package/components/typing-markdown/index.mjs +2 -2
- package/components/typing-markdown/src/ctx.d.ts +3 -3
- package/components/typing-markdown/src/index.vue.d.ts +6 -6
- package/components/vditor/index.cjs +1 -1
- package/components/vditor/index.mjs +2 -2
- package/components/vditor/src/ctx.d.ts +2 -2
- package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
- package/components/vditor/src/handle-value.vue.d.ts +3 -3
- package/components/vditor/src/index.vue.d.ts +10 -10
- package/components/xgplayer/index.mjs +5 -5
- package/composables/recorder/index.cjs +1 -1
- package/composables/recorder/index.mjs +3214 -3099
- package/element/bubble/index.cjs +2 -2
- package/element/bubble/index.mjs +57 -57
- package/element/index.css +1 -1
- package/element/thinking/index.cjs +1 -1
- package/element/thinking/index.mjs +63 -69
- package/icons/end/index.cjs +1 -1
- package/icons/end/index.mjs +3 -3
- package/icons/keyboard/index.cjs +1 -1
- package/icons/keyboard/index.mjs +3 -3
- package/icons/start/index.cjs +1 -1
- package/icons/start/index.mjs +3 -3
- package/icons/voice/index.cjs +1 -1
- package/icons/voice/index.mjs +3 -3
- package/index.css +1 -1
- package/package.json +11 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyFunc } from '@vunk/shared';
|
|
2
|
-
import type { UploadFile } from 'ant
|
|
2
|
+
import type { UploadFile } from '@vunk/plus/ant';
|
|
3
3
|
import type { PropType } from 'vue';
|
|
4
4
|
export declare const props: {
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ export declare const props: {
|
|
|
7
7
|
*/
|
|
8
8
|
fileList: {
|
|
9
9
|
type: PropType<any[]>;
|
|
10
|
-
default:
|
|
10
|
+
default: any;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* @description 文件上传地址
|
|
@@ -28,7 +28,7 @@ export declare const props: {
|
|
|
28
28
|
*/
|
|
29
29
|
loading: {
|
|
30
30
|
type: BooleanConstructor;
|
|
31
|
-
default:
|
|
31
|
+
default: any;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* @description 可选模块, 包含: Attachments 文件上传;
|
|
@@ -50,7 +50,7 @@ export declare const props: {
|
|
|
50
50
|
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
51
51
|
readonly [Symbol.species]: ArrayConstructor;
|
|
52
52
|
};
|
|
53
|
-
default: () =>
|
|
53
|
+
default: () => any[];
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
56
|
* @description 非自定义Send Button时,禁用态
|
|
@@ -64,21 +64,21 @@ export declare const props: {
|
|
|
64
64
|
*/
|
|
65
65
|
attachmentsVisible: {
|
|
66
66
|
type: BooleanConstructor;
|
|
67
|
-
default:
|
|
67
|
+
default: any;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* @description 自定义 Send Button
|
|
71
71
|
*/
|
|
72
72
|
createSendButton: {
|
|
73
73
|
type: PropType<AnyFunc>;
|
|
74
|
-
default:
|
|
74
|
+
default: any;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* @description 自定义 Attachments Button, 在 Attachments 模块存在时有效
|
|
78
78
|
*/
|
|
79
79
|
createAttachmentsButton: {
|
|
80
80
|
type: PropType<AnyFunc>;
|
|
81
|
-
default:
|
|
81
|
+
default: any;
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* @description 调整文本域大小
|
|
@@ -88,7 +88,7 @@ export declare const props: {
|
|
|
88
88
|
minRows?: number;
|
|
89
89
|
maxRows?: number;
|
|
90
90
|
}>;
|
|
91
|
-
default:
|
|
91
|
+
default: any;
|
|
92
92
|
};
|
|
93
93
|
/**
|
|
94
94
|
* @link https://antd-design-x-vue.netlify.app/component/attachments.html
|
|
@@ -107,5 +107,5 @@ export declare const emits: {
|
|
|
107
107
|
'update:modelValue': (_: string) => boolean;
|
|
108
108
|
'update:attachmentsVisible': (_: boolean) => boolean;
|
|
109
109
|
submit: (_: string) => boolean;
|
|
110
|
-
cancel:
|
|
110
|
+
cancel: any;
|
|
111
111
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AnyFunc } from '@vunk/shared';
|
|
2
|
-
import type { UploadFile } from 'ant
|
|
2
|
+
import type { UploadFile } from '@vunk/plus/ant';
|
|
3
3
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
fileList: {
|
|
5
5
|
type: import("vue").PropType<any[]>;
|
|
6
|
-
default:
|
|
6
|
+
default: any;
|
|
7
7
|
};
|
|
8
8
|
action: {
|
|
9
9
|
type: StringConstructor;
|
|
@@ -15,7 +15,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
15
15
|
};
|
|
16
16
|
loading: {
|
|
17
17
|
type: BooleanConstructor;
|
|
18
|
-
default:
|
|
18
|
+
default: any;
|
|
19
19
|
};
|
|
20
20
|
modules: {
|
|
21
21
|
type: {
|
|
@@ -34,7 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
34
34
|
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
35
35
|
readonly [Symbol.species]: ArrayConstructor;
|
|
36
36
|
};
|
|
37
|
-
default: () =>
|
|
37
|
+
default: () => any[];
|
|
38
38
|
};
|
|
39
39
|
sendDisabled: {
|
|
40
40
|
type: BooleanConstructor;
|
|
@@ -42,22 +42,22 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
42
42
|
};
|
|
43
43
|
attachmentsVisible: {
|
|
44
44
|
type: BooleanConstructor;
|
|
45
|
-
default:
|
|
45
|
+
default: any;
|
|
46
46
|
};
|
|
47
47
|
createSendButton: {
|
|
48
48
|
type: import("vue").PropType<AnyFunc>;
|
|
49
|
-
default:
|
|
49
|
+
default: any;
|
|
50
50
|
};
|
|
51
51
|
createAttachmentsButton: {
|
|
52
52
|
type: import("vue").PropType<AnyFunc>;
|
|
53
|
-
default:
|
|
53
|
+
default: any;
|
|
54
54
|
};
|
|
55
55
|
autoSize: {
|
|
56
56
|
type: import("vue").PropType<{
|
|
57
57
|
minRows?: number;
|
|
58
58
|
maxRows?: number;
|
|
59
59
|
}>;
|
|
60
|
-
default:
|
|
60
|
+
default: any;
|
|
61
61
|
};
|
|
62
62
|
attachmentsProps: {
|
|
63
63
|
type: ObjectConstructor;
|
|
@@ -68,7 +68,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
68
68
|
default: string;
|
|
69
69
|
};
|
|
70
70
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
71
|
-
cancel: (...args: any[]) => void;
|
|
71
|
+
cancel: ((...args: unknown[]) => void) & ((...args: any[]) => void);
|
|
72
72
|
submit: (_: string) => void;
|
|
73
73
|
"update:modelValue": (_: string) => void;
|
|
74
74
|
"update:fileList": (_: UploadFile<any>[]) => void;
|
|
@@ -76,7 +76,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
76
76
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
77
|
fileList: {
|
|
78
78
|
type: import("vue").PropType<any[]>;
|
|
79
|
-
default:
|
|
79
|
+
default: any;
|
|
80
80
|
};
|
|
81
81
|
action: {
|
|
82
82
|
type: StringConstructor;
|
|
@@ -88,7 +88,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
88
88
|
};
|
|
89
89
|
loading: {
|
|
90
90
|
type: BooleanConstructor;
|
|
91
|
-
default:
|
|
91
|
+
default: any;
|
|
92
92
|
};
|
|
93
93
|
modules: {
|
|
94
94
|
type: {
|
|
@@ -107,7 +107,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
107
107
|
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
108
108
|
readonly [Symbol.species]: ArrayConstructor;
|
|
109
109
|
};
|
|
110
|
-
default: () =>
|
|
110
|
+
default: () => any[];
|
|
111
111
|
};
|
|
112
112
|
sendDisabled: {
|
|
113
113
|
type: BooleanConstructor;
|
|
@@ -115,22 +115,22 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
115
115
|
};
|
|
116
116
|
attachmentsVisible: {
|
|
117
117
|
type: BooleanConstructor;
|
|
118
|
-
default:
|
|
118
|
+
default: any;
|
|
119
119
|
};
|
|
120
120
|
createSendButton: {
|
|
121
121
|
type: import("vue").PropType<AnyFunc>;
|
|
122
|
-
default:
|
|
122
|
+
default: any;
|
|
123
123
|
};
|
|
124
124
|
createAttachmentsButton: {
|
|
125
125
|
type: import("vue").PropType<AnyFunc>;
|
|
126
|
-
default:
|
|
126
|
+
default: any;
|
|
127
127
|
};
|
|
128
128
|
autoSize: {
|
|
129
129
|
type: import("vue").PropType<{
|
|
130
130
|
minRows?: number;
|
|
131
131
|
maxRows?: number;
|
|
132
132
|
}>;
|
|
133
|
-
default:
|
|
133
|
+
default: any;
|
|
134
134
|
};
|
|
135
135
|
attachmentsProps: {
|
|
136
136
|
type: ObjectConstructor;
|
|
@@ -141,25 +141,25 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
141
141
|
default: string;
|
|
142
142
|
};
|
|
143
143
|
}>> & Readonly<{
|
|
144
|
-
onCancel?: (
|
|
145
|
-
onSubmit?: (
|
|
146
|
-
"onUpdate:modelValue"?: (
|
|
147
|
-
"onUpdate:fileList"?: (
|
|
148
|
-
"onUpdate:attachmentsVisible"?: (
|
|
144
|
+
onCancel?: (...args: any[]) => any;
|
|
145
|
+
onSubmit?: (_: string) => any;
|
|
146
|
+
"onUpdate:modelValue"?: (_: string) => any;
|
|
147
|
+
"onUpdate:fileList"?: (_: UploadFile<any>[]) => any;
|
|
148
|
+
"onUpdate:attachmentsVisible"?: (_: boolean) => any;
|
|
149
149
|
}>, {
|
|
150
150
|
loading: boolean;
|
|
151
|
-
modules: "Attachments"[];
|
|
152
|
-
modelValue: string;
|
|
153
|
-
fileList: any[];
|
|
154
151
|
action: string;
|
|
155
|
-
|
|
156
|
-
attachmentsVisible: boolean;
|
|
157
|
-
createSendButton: AnyFunc;
|
|
158
|
-
createAttachmentsButton: AnyFunc;
|
|
152
|
+
fileList: any[];
|
|
159
153
|
autoSize: {
|
|
160
154
|
minRows?: number;
|
|
161
155
|
maxRows?: number;
|
|
162
156
|
};
|
|
157
|
+
sendDisabled: boolean;
|
|
158
|
+
modules: "Attachments"[];
|
|
159
|
+
modelValue: string;
|
|
160
|
+
attachmentsVisible: boolean;
|
|
161
|
+
createSendButton: AnyFunc;
|
|
162
|
+
createAttachmentsButton: AnyFunc;
|
|
163
163
|
attachmentsProps: Record<string, any>;
|
|
164
164
|
attachmentsPlaceholder: string;
|
|
165
165
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("@ant-design/icons-vue"),k=require("@vunk/plus/composables/recorder"),C=require("ant
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("@ant-design/icons-vue"),k=require("@vunk/plus/composables/recorder"),C=require("@vunk/plus/ant"),v={disabled:{type:Boolean,default:!1}},S={stop:o=>!0,start:null},t=1e3,T=50,g=200,y=e.defineComponent({name:"AXSenderLoadingIcon",setup(){return()=>e.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${t} ${t}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},[e.createVNode("title",null,[e.createTextVNode("Speech Loading")]),e.createVNode("circle",{cx:t/2,cy:t/2,r:g,fill:"none",stroke:"currentColor","stroke-width":T,"stroke-linecap":"round","stroke-dasharray":`${Math.PI*g*.75} ${Math.PI*g*.25}`},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:`0 ${t/2} ${t/2}`,to:`360 ${t/2} ${t/2}`,dur:"1s",repeatCount:"indefinite"},null)])])}}),c=1e3,s=4,p=140,_=p/2,i=250,$=500,d=.8,N=e.defineComponent({name:"AXSenderRecordingIcon",setup(){return()=>e.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${c} ${c}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},[e.createVNode("title",null,[e.createTextVNode("Speech Recording")]),Array.from({length:s}).map((o,n)=>{const m=(c-p*s)/(s-1),a=n*(m+p),r=c/2-i/2,u=c/2-$/2;return e.createVNode("rect",{fill:"currentColor",rx:_,ry:_,height:i,width:p,x:a,y:r,key:n},[e.createVNode("animate",{attributeName:"height",values:`${i}; ${$}; ${i}`,keyTimes:"0; 0.5; 1",dur:`${d}s`,begin:`${d/s*n}s`,repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"y",values:`${r}; ${u}; ${r}`,keyTimes:"0; 0.5; 1",dur:`${d}s`,begin:`${d/s*n}s`,repeatCount:"indefinite"},null)])})])}}),l=e.defineComponent({name:"VkSpeechButton",components:{RecordingIcon:N},props:v,emits:S,setup(o,{emit:n}){const{openOrStart:m,recording:a,stop:r,opening:u}=k.useRecorder(),V=()=>{o.disabled||u.value||(a.value?r().then(f=>{n("stop",f)}):m().then(f=>{f&&n("start")}))},w=()=>o.disabled?e.createVNode(h.AudioMutedOutlined,null,null):u.value?e.createVNode(y,null,null):a.value?e.createVNode(N,{class:"vk-speech-button-recording-icon"},null):e.createVNode(h.AudioOutlined,null,null);return()=>e.createVNode(C.Button,{onClick:V,class:"vk-speech-button"},{icon:w})}}),I=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));l.install=o=>{o.component(l.name||"VkSpeechButton",l)};exports.VkSpeechButton=l;exports.__VkSpeechButton=I;exports.default=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, createVNode as e, createTextVNode as k } from "vue";
|
|
2
2
|
import { AudioMutedOutlined as I, AudioOutlined as S } from "@ant-design/icons-vue";
|
|
3
3
|
import { useRecorder as T } from "@vunk/plus/composables/recorder";
|
|
4
|
-
import { Button as v } from "ant
|
|
4
|
+
import { Button as v } from "@vunk/plus/ant";
|
|
5
5
|
const R = {
|
|
6
6
|
disabled: {
|
|
7
7
|
type: Boolean,
|
|
@@ -7,15 +7,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
7
7
|
};
|
|
8
8
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
stop: (_: Blob) => boolean;
|
|
10
|
-
start:
|
|
10
|
+
start: any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
disabled: {
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
16
|
}>> & Readonly<{
|
|
17
|
-
onStop?: (
|
|
18
|
-
onStart?: (
|
|
17
|
+
onStop?: (_: Blob) => any;
|
|
18
|
+
onStart?: (...args: any) => any;
|
|
19
19
|
}>, {
|
|
20
20
|
disabled: boolean;
|
|
21
21
|
}, {}, {
|
|
@@ -3,7 +3,7 @@ import type { Source } from './types';
|
|
|
3
3
|
export declare const props: {
|
|
4
4
|
source: {
|
|
5
5
|
type: PropType<Source<any>[]>;
|
|
6
|
-
default: () =>
|
|
6
|
+
default: () => any[];
|
|
7
7
|
};
|
|
8
8
|
type: {
|
|
9
9
|
type: StringConstructor;
|
|
@@ -53,7 +53,7 @@ export declare const props: {
|
|
|
53
53
|
index: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["index"]>;
|
|
54
54
|
sortOrders: {
|
|
55
55
|
type: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortOrders"]>;
|
|
56
|
-
default: () =>
|
|
56
|
+
default: () => string[];
|
|
57
57
|
validator: (val: import("element-plus").TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
58
58
|
};
|
|
59
59
|
};
|
|
@@ -50,8 +50,8 @@ export declare const tableColumnProps: {
|
|
|
50
50
|
index: PropType<TableColumnCtx<DefaultRow>["index"]>;
|
|
51
51
|
sortOrders: {
|
|
52
52
|
type: PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
|
|
53
|
-
default: () =>
|
|
53
|
+
default: () => string[];
|
|
54
54
|
validator: (val: TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"
|
|
57
|
+
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"index", keyof T2> | Extract<"width", keyof T2> | Extract<"align", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"className", keyof T2> | Extract<"prop", keyof T2> | Extract<"property", keyof T2> | Extract<"resizable", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"fixed", keyof T2>, KE> | Exclude<Extract<"filters", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"index", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"align", keyof T2>, KE> | Exclude<Extract<"minWidth", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"property", keyof T2>, KE> | Exclude<Extract<"resizable", keyof T2>, KE> | Exclude<Extract<"labelClassName", keyof T2>, KE> | Exclude<Extract<"renderHeader", keyof T2>, KE> | Exclude<Extract<"sortable", keyof T2>, KE> | Exclude<Extract<"sortMethod", keyof T2>, KE> | Exclude<Extract<"sortBy", keyof T2>, KE> | Exclude<Extract<"columnKey", keyof T2>, KE> | Exclude<Extract<"headerAlign", keyof T2>, KE> | Exclude<Extract<"showOverflowTooltip", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"selectable", keyof T2>, KE> | Exclude<Extract<"reserveSelection", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"filteredValue", keyof T2>, KE> | Exclude<Extract<"filterPlacement", keyof T2>, KE> | Exclude<Extract<"filterMultiple", keyof T2>, KE> | Exclude<Extract<"sortOrders", keyof T2>, KE> | Exclude<Extract<"showTooltipWhenOverflow", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"index", keyof T2> | Extract<"width", keyof T2> | Extract<"align", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"className", keyof T2> | Extract<"prop", keyof T2> | Extract<"property", keyof T2> | Extract<"resizable", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"index", keyof T2> | Extract<"width", keyof T2> | Extract<"align", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"className", keyof T2> | Extract<"prop", keyof T2> | Extract<"property", keyof T2> | Extract<"resizable", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: T2[k]; }[P]; }>;
|
|
@@ -5,7 +5,7 @@ export default _default;
|
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
source: {
|
|
7
7
|
type: import("vue").PropType<Source<any>[]>;
|
|
8
|
-
default: () =>
|
|
8
|
+
default: () => any[];
|
|
9
9
|
};
|
|
10
10
|
type: {
|
|
11
11
|
type: StringConstructor;
|
|
@@ -55,7 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
55
55
|
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["index"]>;
|
|
56
56
|
sortOrders: {
|
|
57
57
|
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortOrders"]>;
|
|
58
|
-
default: () =>
|
|
58
|
+
default: () => string[];
|
|
59
59
|
validator: (val: import("element-plus").TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
60
60
|
};
|
|
61
61
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
63
63
|
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
64
|
source: {
|
|
65
65
|
type: import("vue").PropType<Source<any>[]>;
|
|
66
|
-
default: () =>
|
|
66
|
+
default: () => any[];
|
|
67
67
|
};
|
|
68
68
|
type: {
|
|
69
69
|
type: StringConstructor;
|
|
@@ -113,20 +113,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
113
113
|
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["index"]>;
|
|
114
114
|
sortOrders: {
|
|
115
115
|
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortOrders"]>;
|
|
116
|
-
default: () =>
|
|
116
|
+
default: () => string[];
|
|
117
117
|
validator: (val: import("element-plus").TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
118
118
|
};
|
|
119
119
|
}>> & Readonly<{}>, {
|
|
120
120
|
type: string;
|
|
121
121
|
source: Source<any>[];
|
|
122
122
|
width: string | number;
|
|
123
|
-
resizable: boolean;
|
|
124
123
|
minWidth: string | number;
|
|
124
|
+
resizable: boolean;
|
|
125
125
|
sortable: string | boolean;
|
|
126
126
|
showOverflowTooltip: boolean;
|
|
127
127
|
reserveSelection: boolean;
|
|
128
128
|
filterMultiple: boolean;
|
|
129
|
-
sortOrders:
|
|
129
|
+
sortOrders: import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder[];
|
|
130
130
|
showTooltipWhenOverflow: boolean;
|
|
131
131
|
}, {}, {
|
|
132
132
|
ElTableColumn: never;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Func, Keyof, NormalObject
|
|
2
|
-
import {
|
|
3
|
-
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
1
|
+
import { Func, Keyof, NormalObject } from '@vunk/core';
|
|
2
|
+
import type { TableColumnCtx, TableColumnProps } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
4
3
|
export type DefaultSlot<R extends NormalObject> = Func<{
|
|
5
4
|
row: R;
|
|
6
5
|
column: TableColumnCtx<R>;
|
|
7
6
|
$index: number;
|
|
8
7
|
}>;
|
|
9
|
-
export interface Source<T extends NormalObject = NormalObject> extends
|
|
8
|
+
export interface Source<T extends NormalObject = NormalObject> extends Partial<TableColumnProps<T>> {
|
|
10
9
|
prop?: Keyof<T>;
|
|
11
10
|
slots?: DefaultSlot<T> | {
|
|
12
11
|
default?: DefaultSlot<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@vunk/plus/components/table-columns"),N=require("@vunk/plus/composables/el-breakpoints"),V=require("@vunk/core"),a=require("element-plus"),j=require("@vunk/core/shared/utils-object"),o=require("@vunk/core/shared/utils-vue"),y={data:{type:Array,default:()=>[]},size:a.useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0}};o.bindPropsFactory(y);const f={select:null,"select-all":null,"selection-change":null,"cell-mouse-enter":null,"cell-mouse-leave":null,"cell-contextmenu":null,"cell-click":null,"cell-dblclick":null,"row-click":null,"row-contextmenu":null,"row-dblclick":null,"header-click":null,"header-contextmenu":null,"sort-change":null,"filter-change":null,"current-change":null,"header-dragend":null,"expand-change":null,scroll:null},_=o.onEmitsFactory(f),S=o.bindPropsFactory(a.paginationProps),h=o.onEmitsFactory(a.paginationEmits),P=j.pickObject(y,{excludes:["style","className"]}),v=o.bindPropsFactory(P),d={...p._VkTableColumnsElCtx.tableColumnProps,...a.paginationProps,...P,border:{type:Boolean,default:!0},tableClass:{type:String,default:""},tableStyle:{type:Object,default:void 0},layout:{type:String,default:void 0},pageSize:{type:Number,default:10},currentPage:{type:Number,default:1},start:{type:Number,default:void 0},columns:{type:Array,default:()=>[]},modules:{type:Array,default:()=>["pagination"]},align:{type:String,default:"center"},headerAlign:{type:String,default:"center"},elRef:{type:Function,default:void 0},duplexFull:{type:Boolean,default:!0}},z=o.bindPropsFactory(d),g={...a.paginationEmits,...f,"update:start":u=>typeof u=="number"},M=o.onEmitsFactory(g),q=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:z,createOnEmits:M,createPaginationBindProps:S,createPaginationOnEmits:h,createTableBindProps:v,emits:g,props:d},Symbol.toStringTag,{value:"Module"})),A={key:0,class:"vk-tables-v1-pagination-x"},s=e.defineComponent({name:"VkTablesV1",__name:"index",props:d,emits:g,setup(u,{emit:k}){const l=u,i=k,x=a.ElTable,C=S(l,["layout","currentPage"]),O=h(i,["update:current-page"]),B=p._VkTableColumnsElCtx.createTableColumnBindProps(l),m=v(l),F=_(i),{isMobile:w}=N.useElBreakpoints(),E=e.computed(()=>l.modules.includes("pagination")),c=e.computed({get:()=>l.start!==void 0?Math.floor(l.start/l.pageSize)+1:l.currentPage,set:t=>{i("update:current-page",t),b({currentPage:t})}});function b(t){const r=t.currentPage??c.value,n=t.pageSize??l.pageSize;i("update:start",(r-1)*n)}const T=e.computed(()=>l.layout?l.layout:w.value?"total, prev, pager, next":"total, sizes, prev, pager, next, jumper");return(t,r)=>(e.openBlock(),e.createBlock(e.unref(V.VkDuplexCalc),{class:"vk-tables-v1","with-resize":"one",gap:"var(--vk-tables-v1-gap, 14px)",full:t.duplexFull},{one:e.withCtx(({resizeElementClientMaxHeight:n})=>[e.createVNode(e.unref(x),e.mergeProps(e.unref(m),{ref:t.elRef,style:t.tableStyle,"max-height":t.duplexFull?e.unref(m).maxHeight:n,"class-name":`vk-tables-v1-table ${t.tableClass}`},e.toHandlers(e.unref(F))),{default:e.withCtx(()=>[e.createVNode(e.unref(p.VkTableColumns),e.mergeProps(e.unref(B),{source:t.columns}),null,16,["source"])]),_:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@vunk/plus/components/table-columns"),N=require("@vunk/plus/composables/el-breakpoints"),V=require("@vunk/core"),a=require("element-plus"),j=require("@vunk/core/shared/utils-object"),o=require("@vunk/core/shared/utils-vue"),y={data:{type:Array,default:()=>[]},size:a.useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0}};o.bindPropsFactory(y);const f={select:null,"select-all":null,"selection-change":null,"cell-mouse-enter":null,"cell-mouse-leave":null,"cell-contextmenu":null,"cell-click":null,"cell-dblclick":null,"row-click":null,"row-contextmenu":null,"row-dblclick":null,"header-click":null,"header-contextmenu":null,"sort-change":null,"filter-change":null,"current-change":null,"header-dragend":null,"expand-change":null,scroll:null},_=o.onEmitsFactory(f),S=o.bindPropsFactory(a.paginationProps),h=o.onEmitsFactory(a.paginationEmits),P=j.pickObject(y,{excludes:["style","className"]}),v=o.bindPropsFactory(P),d={...p._VkTableColumnsElCtx.tableColumnProps,...a.paginationProps,...P,border:{type:Boolean,default:!0},tableClass:{type:String,default:""},tableStyle:{type:Object,default:void 0},layout:{type:String,default:void 0},pageSize:{type:Number,default:10},currentPage:{type:Number,default:1},start:{type:Number,default:void 0},columns:{type:Array,default:()=>[]},modules:{type:Array,default:()=>["pagination"]},align:{type:String,default:"center"},headerAlign:{type:String,default:"center"},elRef:{type:Function,default:void 0},duplexFull:{type:Boolean,default:!0}},z=o.bindPropsFactory(d),g={...a.paginationEmits,...f,"update:start":u=>typeof u=="number"},M=o.onEmitsFactory(g),q=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:z,createOnEmits:M,createPaginationBindProps:S,createPaginationOnEmits:h,createTableBindProps:v,emits:g,props:d},Symbol.toStringTag,{value:"Module"})),A={key:0,class:"vk-tables-v1-pagination-x"},s=e.defineComponent({name:"VkTablesV1",__name:"index",props:d,emits:g,setup(u,{emit:k}){const l=u,i=k,x=a.ElTable,C=S(l,["layout","currentPage"]),O=h(i,["update:current-page"]),B=p._VkTableColumnsElCtx.createTableColumnBindProps(l),m=v(l),F=_(i),{isMobile:w}=N.useElBreakpoints(),E=e.computed(()=>l.modules.includes("pagination")),c=e.computed({get:()=>l.start!==void 0?Math.floor(l.start/l.pageSize)+1:l.currentPage,set:t=>{i("update:current-page",t),b({currentPage:t})}});function b(t){const r=t.currentPage??c.value,n=t.pageSize??l.pageSize;i("update:start",(r-1)*n)}const T=e.computed(()=>l.layout?l.layout:w.value?"total, prev, pager, next":"total, sizes, prev, pager, next, jumper");return(t,r)=>(e.openBlock(),e.createBlock(e.unref(V.VkDuplexCalc),{class:"vk-tables-v1","with-resize":"one",gap:"var(--vk-tables-v1-gap, 14px)",full:t.duplexFull},{one:e.withCtx(({resizeElementClientMaxHeight:n})=>[e.createVNode(e.unref(x),e.mergeProps(e.unref(m),{ref:t.elRef,style:t.tableStyle,"max-height":t.duplexFull?e.unref(m).maxHeight:n,"class-name":`vk-tables-v1-table ${t.tableClass}`},e.toHandlers(e.unref(F))),{default:e.withCtx(()=>[e.createVNode(e.unref(p.VkTableColumns),e.mergeProps(e.unref(B),{source:t.columns}),null,16,["source"])]),_:1},16,["style","max-height","class-name"])]),default:e.withCtx(()=>[E.value?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(e.unref(a.ElPagination),e.mergeProps(e.unref(C),{"current-page":c.value,"onUpdate:currentPage":r[0]||(r[0]=n=>c.value=n),layout:T.value},e.toHandlers(e.unref(O)),{"onUpdate:pageSize":r[1]||(r[1]=n=>b({pageSize:n}))}),null,16,["current-page","layout"])])):e.createCommentVNode("",!0)]),_:1},8,["full"]))}}),R=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));s.install=u=>{u.component(s.name||"VkTablesV1",s)};exports.VkTablesV1=s;exports._VkTabelsV1Ctx=q;exports.__VkTablesV1=R;exports.default=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, computed as s,
|
|
1
|
+
import { defineComponent as H, computed as s, openBlock as h, createBlock as K, unref as l, withCtx as c, createElementBlock as $, createVNode as p, mergeProps as d, toHandlers as P, createCommentVNode as U } from "vue";
|
|
2
2
|
import { _VkTableColumnsElCtx as v, VkTableColumns as D } from "@vunk/plus/components/table-columns";
|
|
3
3
|
import { useElBreakpoints as I } from "@vunk/plus/composables/el-breakpoints";
|
|
4
4
|
import { VkDuplexCalc as L } from "@vunk/core";
|
|
@@ -342,8 +342,8 @@ const B = {
|
|
|
342
342
|
default: c(() => [
|
|
343
343
|
p(l(D), d(l(z), { source: e.columns }), null, 16, ["source"])
|
|
344
344
|
]),
|
|
345
|
-
_:
|
|
346
|
-
},
|
|
345
|
+
_: 1
|
|
346
|
+
}, 16, ["style", "max-height", "class-name"])
|
|
347
347
|
]),
|
|
348
348
|
default: c(() => [
|
|
349
349
|
R.value ? (h(), $("div", Z, [
|