sard 1.0.1 → 1.0.3
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 +3 -3
- package/all-components.js +2 -1
- package/components/accordion/accordion-item.js +0 -1
- package/components/accordion/accordion.js +0 -1
- package/components/accordion/index.js +0 -1
- package/components/action-sheet/action-sheet-item.js +1 -6
- package/components/action-sheet/action-sheet.js +0 -1
- package/components/action-sheet/common.d.ts +0 -1
- package/components/action-sheet/context.js +0 -1
- package/components/action-sheet/index.css +1 -1
- package/components/action-sheet/index.js +0 -1
- package/components/alert/alert.js +0 -1
- package/components/alert/index.css +1 -1
- package/components/alert/index.js +0 -1
- package/components/avatar/avatar-group.js +0 -1
- package/components/avatar/avatar.js +0 -1
- package/components/avatar/index.js +0 -1
- package/components/back-top/back-top.js +0 -1
- package/components/back-top/index.js +0 -1
- package/components/back-top/useElementBackTop.js +0 -1
- package/components/back-top/usePageBackTop.js +0 -1
- package/components/badge/badge.js +0 -1
- package/components/badge/index.js +0 -1
- package/components/barcode/barcode.js +0 -1
- package/components/barcode/index.js +0 -1
- package/components/button/button.js +0 -1
- package/components/button/index.js +0 -1
- package/components/calendar/calendar-month.js +2 -3
- package/components/calendar/calendar.js +0 -2
- package/components/calendar/index.css +1 -1
- package/components/calendar/index.js +0 -1
- package/components/calendar-input/calendar-input.js +0 -1
- package/components/calendar-input/index.js +0 -1
- package/components/calendar-popout/index.js +0 -1
- package/components/card/card.js +0 -1
- package/components/card/index.css +1 -1
- package/components/card/index.js +0 -1
- package/components/cascader/cascader.js +4 -6
- package/components/cascader/common.js +0 -1
- package/components/cascader/index.css +1 -1
- package/components/cascader/index.js +0 -1
- package/components/cascader/useCascaderTree.js +0 -1
- package/components/cascader-input/cascader-input.js +0 -2
- package/components/cascader-input/index.js +0 -1
- package/components/cascader-popout/cascader-popout.js +0 -1
- package/components/cascader-popout/index.js +0 -1
- package/components/check-icon/check-icon.js +0 -1
- package/components/checkbox/checkbox-group.js +0 -2
- package/components/checkbox/checkbox.js +0 -1
- package/components/checkbox/index.css +1 -1
- package/components/checkbox/index.js +0 -1
- package/components/checkbox-input/checkbox-input.js +0 -2
- package/components/checkbox-input/index.js +0 -1
- package/components/checkbox-popout/checkbox-popout.js +0 -2
- package/components/checkbox-popout/index.css +1 -1
- package/components/checkbox-popout/index.js +0 -1
- package/components/collapse/collapse.js +0 -1
- package/components/collapse/index.js +0 -1
- package/components/color-picker/color-picker.js +0 -2
- package/components/color-picker/index.js +0 -1
- package/components/color-picker-input/color-picker-input.js +0 -1
- package/components/color-picker-input/index.js +0 -1
- package/components/color-picker-popout/color-picker-popout.js +0 -1
- package/components/color-picker-popout/index.js +0 -1
- package/components/compact/compact.js +0 -1
- package/components/compact/index.js +0 -1
- package/components/cool-icon/cool-icon.js +0 -1
- package/components/cool-icon/index.js +0 -1
- package/components/count-down/index.js +0 -1
- package/components/count-to/count-to.js +0 -1
- package/components/count-to/index.js +0 -1
- package/components/crop-image/crop-image.js +0 -2
- package/components/crop-image/index.js +0 -1
- package/components/date-strip/date-strip.js +0 -1
- package/components/date-strip/index.css +1 -1
- package/components/date-strip/index.js +0 -1
- package/components/datetime-picker/common.js +0 -1
- package/components/datetime-picker/datetime-picker.js +0 -1
- package/components/datetime-picker/index.js +0 -1
- package/components/datetime-picker-input/datetime-picker-input.js +0 -1
- package/components/datetime-picker-input/index.js +0 -1
- package/components/datetime-picker-popout/datetime-picker-popout.js +0 -1
- package/components/datetime-picker-popout/index.js +0 -1
- package/components/datetime-range-picker/datetime-range-picker.js +0 -1
- package/components/datetime-range-picker/index.js +0 -1
- package/components/datetime-range-picker-input/datetime-range-picker-input.js +0 -1
- package/components/datetime-range-picker-input/index.js +0 -1
- package/components/datetime-range-picker-popout/datetime-range-picker-popout.js +0 -1
- package/components/datetime-range-picker-popout/index.js +0 -1
- package/components/descriptions/descriptions-item.js +0 -1
- package/components/descriptions/descriptions.js +0 -1
- package/components/descriptions/index.js +0 -1
- package/components/dialog/dialog.js +0 -1
- package/components/dialog/index.js +0 -1
- package/components/divider/divider.js +0 -1
- package/components/divider/index.js +0 -1
- package/components/dnd/dnd-handle.js +0 -2
- package/components/dnd/dnd-item.js +0 -1
- package/components/dnd/dnd.js +0 -1
- package/components/dnd/index.js +0 -1
- package/components/dropdown/dropdown-item.js +0 -2
- package/components/dropdown/dropdown.js +0 -1
- package/components/dropdown/index.js +0 -1
- package/components/ellipsis/ellipsis.js +0 -2
- package/components/ellipsis/index.js +0 -1
- package/components/empty/empty.js +0 -1
- package/components/empty/index.js +0 -1
- package/components/fab/common.d.ts +2 -2
- package/components/fab/common.js +2 -2
- package/components/fab/fab-item.js +0 -1
- package/components/fab/fab.d.ts +2 -2
- package/components/fab/fab.js +2 -4
- package/components/fab/index.js +0 -1
- package/components/floating-bubble/common.d.ts +2 -2
- package/components/floating-bubble/common.js +2 -2
- package/components/floating-bubble/floating-bubble.d.ts +2 -2
- package/components/floating-bubble/floating-bubble.js +2 -3
- package/components/floating-bubble/index.js +0 -1
- package/components/floating-bubble/useFloatingBubble.d.ts +2 -2
- package/components/floating-bubble/useFloatingBubble.js +4 -6
- package/components/floating-panel/floating-panel.js +0 -2
- package/components/floating-panel/index.js +0 -1
- package/components/form/Validator.js +0 -1
- package/components/form/form-item.js +0 -1
- package/components/form/form.js +0 -1
- package/components/form/index.css +1 -1
- package/components/form/index.js +0 -1
- package/components/form/useForm.js +0 -1
- package/components/form/useFormItem.js +0 -1
- package/components/form-plain/index.js +0 -1
- package/components/grid/grid-item.js +0 -1
- package/components/grid/grid.js +0 -1
- package/components/grid/index.css +1 -1
- package/components/grid/index.js +0 -1
- package/components/image/image.js +0 -2
- package/components/image/index.js +0 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +3 -3
- package/components/indexes/index.js +0 -1
- package/components/indexes/indexes-anchor.js +0 -1
- package/components/indexes/indexes-nav.js +0 -2
- package/components/indexes/indexes.js +0 -2
- package/components/infinite-list/common.d.ts +24 -0
- package/components/infinite-list/common.js +4 -0
- package/components/infinite-list/index.css +1 -0
- package/components/infinite-list/index.d.ts +5 -0
- package/components/infinite-list/index.js +6 -0
- package/components/infinite-list/infinite-list.d.ts +23 -0
- package/components/infinite-list/infinite-list.js +126 -0
- package/components/input/index.css +1 -1
- package/components/input/index.js +0 -1
- package/components/input/input.js +0 -2
- package/components/input/utils.js +0 -1
- package/components/keyboard/common.js +0 -1
- package/components/keyboard/index.css +1 -1
- package/components/keyboard/index.js +0 -1
- package/components/keyboard/keyboard.js +0 -1
- package/components/keyboard-popout/index.js +0 -1
- package/components/keyboard-popout/keyboard-popout.js +0 -1
- package/components/layout/col.js +0 -1
- package/components/layout/index.js +0 -1
- package/components/layout/row.js +0 -1
- package/components/list/index.js +0 -1
- package/components/list/list-item.js +0 -1
- package/components/list/list.js +0 -1
- package/components/load-more/index.js +0 -1
- package/components/load-more/load-more.js +0 -1
- package/components/load-more/useLoadMore.js +9 -6
- package/components/loading/index.js +0 -1
- package/components/loading/loading.js +0 -1
- package/components/marquee/index.js +0 -1
- package/components/marquee/marquee.js +0 -2
- package/components/menu/context.js +0 -1
- package/components/menu/index.js +0 -1
- package/components/menu/menu-item.js +0 -1
- package/components/menu/menu.js +0 -1
- package/components/motion/index.js +0 -1
- package/components/motion/motion.js +0 -1
- package/components/navbar/index.css +1 -1
- package/components/navbar/index.js +0 -1
- package/components/navbar/navbar-item.js +0 -1
- package/components/navbar/navbar.js +18 -27
- package/components/navbar-pit/index.js +0 -1
- package/components/navbar-pit/navbar-pit.js +0 -1
- package/components/notice-bar/index.js +0 -1
- package/components/notice-bar/notice-bar.js +0 -2
- package/components/notify/index.js +0 -1
- package/components/notify/notify.js +0 -2
- package/components/overlay/index.js +0 -1
- package/components/overlay/overlay.js +0 -1
- package/components/pagination/index.js +0 -1
- package/components/pagination/pagination.js +0 -1
- package/components/password-input/index.css +1 -1
- package/components/password-input/index.js +0 -1
- package/components/password-input/password-input.js +0 -1
- package/components/picker/index.css +1 -1
- package/components/picker/index.js +0 -1
- package/components/picker/picker.js +0 -2
- package/components/picker-input/index.js +0 -1
- package/components/picker-input/picker-input.js +0 -2
- package/components/picker-popout/index.js +0 -1
- package/components/picker-popout/picker-popout.js +0 -2
- package/components/picker-view/index.css +1 -1
- package/components/picker-view/index.js +0 -1
- package/components/picker-view/picker-view-column.js +0 -2
- package/components/picker-view/picker-view.js +0 -2
- package/components/popout/index.css +1 -1
- package/components/popout/index.js +0 -1
- package/components/popout/popout.js +0 -1
- package/components/popout/useFormPopout.js +0 -1
- package/components/popout-input/index.js +0 -1
- package/components/popout-input/popout-input.js +0 -2
- package/components/popout-input/usePopoutInput.js +0 -1
- package/components/popover/index.js +0 -1
- package/components/popover/popover.js +0 -2
- package/components/popup/index.js +0 -1
- package/components/popup/popup.js +0 -2
- package/components/preview-image/common.d.ts +3 -1
- package/components/preview-image/common.js +2 -0
- package/components/preview-image/index.js +0 -1
- package/components/preview-image/preview-image-item.js +0 -2
- package/components/preview-image/preview-image.d.ts +2 -0
- package/components/preview-image/preview-image.js +17 -7
- package/components/progress-bar/index.js +0 -1
- package/components/progress-bar/progress-bar.js +0 -1
- package/components/progress-circle/index.css +1 -1
- package/components/progress-circle/index.js +0 -1
- package/components/progress-circle/progress-circle.js +0 -1
- package/components/pull-down-refresh/index.js +0 -1
- package/components/pull-down-refresh/pull-down-refresh.js +0 -2
- package/components/puzzle-verify/index.js +0 -1
- package/components/puzzle-verify/puzzle-verify.js +0 -1
- package/components/qrcode/index.js +0 -1
- package/components/qrcode/qrcode.js +0 -2
- package/components/radio/index.css +1 -1
- package/components/radio/index.js +0 -1
- package/components/radio/radio-group.js +0 -2
- package/components/radio/radio.js +0 -1
- package/components/radio-input/index.js +0 -1
- package/components/radio-input/radio-input.js +0 -2
- package/components/radio-popout/index.css +1 -1
- package/components/radio-popout/index.js +0 -1
- package/components/radio-popout/radio-popout.js +0 -2
- package/components/rate/index.css +1 -1
- package/components/rate/index.js +0 -1
- package/components/rate/rate.js +1 -3
- package/components/read-more/index.js +0 -1
- package/components/read-more/read-more.js +0 -2
- package/components/result/index.js +0 -1
- package/components/result/result.js +0 -1
- package/components/rotate-verify/index.js +0 -1
- package/components/rotate-verify/rotate-verify.js +0 -1
- package/components/scroll-list/index.js +0 -1
- package/components/scroll-list/scroll-list.js +0 -2
- package/components/scroll-spy/index.js +0 -1
- package/components/scroll-spy/scroll-spy.js +0 -2
- package/components/search/index.js +0 -1
- package/components/search/search.js +0 -1
- package/components/segmented/index.js +0 -1
- package/components/segmented/segmented-item.js +0 -2
- package/components/segmented/segmented.js +0 -3
- package/components/select/index.js +0 -1
- package/components/select/select-option-group.js +0 -1
- package/components/select/select-option.js +0 -1
- package/components/select/select.js +0 -3
- package/components/select-input/index.js +0 -1
- package/components/select-input/select-input.js +0 -2
- package/components/select-popout/index.js +0 -1
- package/components/share-sheet/context.js +0 -1
- package/components/share-sheet/index.js +0 -1
- package/components/share-sheet/share-sheet-icon.js +0 -1
- package/components/share-sheet/share-sheet-item.js +0 -1
- package/components/share-sheet/share-sheet-row.js +0 -1
- package/components/share-sheet/share-sheet.js +0 -1
- package/components/sidebar/index.css +1 -1
- package/components/sidebar/index.js +0 -1
- package/components/sidebar/sidebar-item.js +0 -1
- package/components/sidebar/sidebar.js +0 -1
- package/components/signature/index.js +0 -1
- package/components/signature/signature.js +0 -2
- package/components/skeleton/index.css +1 -1
- package/components/skeleton/index.js +0 -1
- package/components/skeleton/skeleton-avatar.js +0 -1
- package/components/skeleton/skeleton-block.js +0 -1
- package/components/skeleton/skeleton-paragraph.js +0 -1
- package/components/skeleton/skeleton-title.js +0 -1
- package/components/skeleton/skeleton.js +0 -1
- package/components/slide-verify/index.css +1 -1
- package/components/slide-verify/index.js +0 -1
- package/components/slide-verify/slide-verify.js +0 -2
- package/components/slider/index.js +0 -1
- package/components/slider/slider.js +0 -2
- package/components/space/index.css +1 -1
- package/components/space/index.js +0 -1
- package/components/space/space.js +0 -1
- package/components/status-bar/index.js +0 -1
- package/components/status-bar/status-bar.js +0 -1
- package/components/stepper/index.js +0 -1
- package/components/stepper/stepper.js +0 -2
- package/components/steps/index.css +1 -1
- package/components/steps/index.js +0 -1
- package/components/steps/step.js +0 -1
- package/components/steps/steps.js +0 -1
- package/components/sticky/index.js +0 -1
- package/components/sticky/sticky-box.js +0 -1
- package/components/sticky/sticky.js +0 -2
- package/components/style/index.css +1 -1
- package/components/swipe-action/index.js +0 -1
- package/components/swipe-action/swipe-action-group.js +0 -1
- package/components/swipe-action/swipe-action.js +0 -2
- package/components/swiper/index.js +0 -1
- package/components/swiper/swiper-item.js +0 -1
- package/components/swiper/swiper.js +0 -1
- package/components/swiper/useSwiper.js +10 -8
- package/components/swiper/useSwiperAnimation.js +0 -1
- package/components/swiper/useSwiperAutoHeight.js +0 -1
- package/components/swiper/useSwiperAutoPlay.js +0 -1
- package/components/swiper/useSwiperData.d.ts +10 -0
- package/components/swiper/useSwiperData.js +3 -2
- package/components/switch/index.js +0 -1
- package/components/switch/switch.js +0 -1
- package/components/tabbar/index.js +0 -1
- package/components/tabbar/tabbar-item.js +0 -1
- package/components/tabbar/tabbar.js +0 -1
- package/components/tabbar-pit/index.js +0 -1
- package/components/tabbar-pit/tabbar-pit.js +0 -1
- package/components/table/index.css +1 -1
- package/components/table/index.js +0 -1
- package/components/table/table-col.js +0 -2
- package/components/table/table.js +0 -2
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.js +0 -1
- package/components/tabs/tab.js +0 -1
- package/components/tabs/tabs.js +0 -2
- package/components/tag/index.css +1 -1
- package/components/tag/index.js +0 -1
- package/components/tag/tag.js +0 -1
- package/components/text/index.js +0 -1
- package/components/text/text.js +0 -1
- package/components/timeline/index.js +0 -1
- package/components/timeline/timeline-item.js +0 -1
- package/components/timeline/timeline.js +0 -1
- package/components/toast/index.css +1 -1
- package/components/toast/index.js +0 -1
- package/components/toast/toast.js +0 -2
- package/components/tree/index.css +1 -1
- package/components/tree/index.js +0 -1
- package/components/tree/tree-node.js +0 -2
- package/components/tree/tree.js +1 -3
- package/components/upload/index.js +0 -1
- package/components/upload/upload-preview.js +0 -1
- package/components/upload/upload.js +0 -1
- package/components/waterfall/index.js +0 -1
- package/components/waterfall/test/SimulatedImage.js +0 -2
- package/components/waterfall/waterfall-item.js +0 -2
- package/components/waterfall/waterfall-load.js +0 -2
- package/components/waterfall/waterfall.js +0 -2
- package/components/watermark/index.js +0 -1
- package/components/watermark/watermark.js +0 -1
- package/global.d.ts +1 -0
- package/index.css +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -6
- package/locale/index.js +0 -1
- package/locale/lang/ar-SA.d.ts +7 -0
- package/locale/lang/ar-SA.js +7 -0
- package/locale/lang/bn-BD.d.ts +7 -0
- package/locale/lang/bn-BD.js +7 -0
- package/locale/lang/en-US.d.ts +7 -0
- package/locale/lang/en-US.js +7 -0
- package/locale/lang/es-ES.d.ts +7 -0
- package/locale/lang/es-ES.js +7 -0
- package/locale/lang/hi-IN.d.ts +7 -0
- package/locale/lang/hi-IN.js +7 -0
- package/locale/lang/id-ID.d.ts +7 -0
- package/locale/lang/id-ID.js +7 -0
- package/locale/lang/pt-BR.d.ts +7 -0
- package/locale/lang/pt-BR.js +7 -0
- package/locale/lang/tr-TR.d.ts +7 -0
- package/locale/lang/tr-TR.js +7 -0
- package/locale/lang/ur-PK.d.ts +7 -0
- package/locale/lang/ur-PK.js +7 -0
- package/locale/lang/vi-VN.d.ts +7 -0
- package/locale/lang/vi-VN.js +7 -0
- package/locale/lang/zh-CN.d.ts +7 -0
- package/locale/lang/zh-CN.js +7 -0
- package/package.json +2 -1
- package/use/useComposition.js +0 -1
- package/use/useDragPinch.js +0 -1
- package/use/useKeyList.js +0 -1
- package/use/useLuckyDraw.js +0 -1
- package/use/useOptionKeys.js +0 -1
- package/use/usePointerDown.js +0 -1
- package/use/usePopper.js +0 -1
- package/use/useRtl.js +0 -1
- package/use/useScrollSpy.js +0 -1
- package/use/useSimulatedClick.js +0 -1
- package/use/useSimulatedDblClick.js +0 -1
- package/use/useSimulatedPress.js +0 -1
- package/utils/index.js +0 -1
- package/utils/scroller/useScrollBinding.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
4
3
|
//#region packages/sard/components/timeline/timeline.vue
|
|
5
4
|
var timeline_default = /*@__PURE__*/ defineComponent({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-toast-top:10%;--s-toast-bottom:10%;--s-toast-font-size:var(--s-font-size);--s-toast-width:120px;--s-toast-min-height-
|
|
1
|
+
:root{--s-toast-top:10%;--s-toast-bottom:10%;--s-toast-font-size:var(--s-font-size);--s-toast-width:120px;--s-toast-min-height-icon-only:var(--s-toast-width);--s-toast-padding-x:var(--s-size);--s-toast-padding-y:var(--s-size);--s-toast-border-radius:var(--s-border-radius-lg);--s-toast-color:var(--s-white);--s-toast-bg:var(--s-overlay-illegible);--s-toast-text-max-width:80%;--s-toast-text-padding-y:10px;--s-toast-icon-margin-bottom:var(--s-size-xs);--s-toast-icon-size:36px;--s-toast-icon-loading-size:30px;--s-toast-title-font-size:var(--s-toast-font-size)}.s-toast{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:var(--s-toast-padding-y) var(--s-toast-padding-x);border-radius:var(--s-toast-border-radius);background:var(--s-toast-bg);touch-action:none}.s-toast__popup{width:max-content;max-width:var(--s-toast-text-max-width)}.s-toast__popup--top{top:var(--s-toast-top);bottom:auto}.s-toast__popup--bottom{top:auto;bottom:var(--s-toast-bottom)}.s-toast__icon{display:flex;justify-content:center;align-items:center;width:var(--s-toast-icon-size);height:var(--s-toast-icon-size);margin-bottom:var(--s-toast-icon-margin-bottom);text-align:center;font-size:var(--s-toast-icon-size);color:var(--s-toast-color)}.s-toast__icon:is(.is-loading){font-size:var(--s-toast-icon-loading-size)}.s-toast__title{font-size:var(--s-toast-title-font-size);line-height:var(--s-line-height-normal);text-align:center;color:var(--s-toast-color)}.s-toast:is(.is-text){padding-top:var(--s-toast-text-padding-y);padding-bottom:var(--s-toast-text-padding-y);word-break:break-all}.s-toast:not(.is-text){width:var(--s-toast-width);min-height:var(--s-toast-min-height-icon-only)}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { useTimeout } from "../../use/useTimeout.js";
|
|
3
|
-
import "../../use/index.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
3
|
import popup_default from "../popup/popup.js";
|
|
6
4
|
import loading_default from "../loading/loading.js";
|
|
7
5
|
import { defaultToastProps } from "./common.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-tree-border-color:var(--s-border-color);--s-tree-bg:var(--s-bg-color-container);--s-tree-loading-size:var(--s-font-size);--s-tree-loading-color:var(--s-text-color-fourth);--s-tree-loading-margin-y:10px;--s-tree-node-height:var(--s-content-height-sm);--s-tree-node-padding-x:var(--s-content-padding-x);--s-tree-node-padding-y:var(--s-content-padding-y);--s-tree-node-bg:var(--s-bg-color-container);--s-tree-node-bg-active:var(--s-bg-color-active);--s-tree-node-box-shadow-dragging:var(--s-box-shadow-secondary);--s-tree-node-loading-margin-end:var(--s-size-xs);--s-tree-toolbar-margin-end:-12px;--s-tree-indent-width:var(--s-size-xl);--s-tree-arrow-padding-x:var(--s-size-sm);--s-tree-arrow-font-size:var(--s-font-size-sm);--s-tree-arrow-color:var(--s-text-color-tertiary);--s-tree-selection-padding-x:var(--s-size-sm);--s-tree-edit-padding-x:var(--s-size-sm);--s-tree-edit-font-size:18px;--s-tree-edit-color:var(--s-text-color-fourth);--s-tree-edit-opacity-active:var(--s-opacity-active);--s-tree-level-btn-padding-x:var(--s-size-sm);--s-tree-level-btn-font-size:18px;--s-tree-level-btn-color:var(--s-text-color-fourth);--s-tree-level-btn-opacity-active:var(--s-opacity-active);--s-tree-drag-padding-x:var(--s-size-sm);--s-tree-drag-font-size:18px;--s-tree-drag-color:var(--s-text-color-fourth);--s-tree-drag-opacity-active:var(--s-opacity-active)}.s-tree{position:relative;display:flex;flex-direction:column;background:var(--s-tree-bg);transition:height var(--s-duration)}.s-tree__input-wrapper{padding:0 var(--s-dialog-body-padding-x) var(--s-dialog-body-padding-y)}.s-tree__input-text{text-align:center}.s-
|
|
1
|
+
:root{--s-tree-border-color:var(--s-border-color);--s-tree-bg:var(--s-bg-color-container);--s-tree-loading-size:var(--s-font-size);--s-tree-loading-color:var(--s-text-color-fourth);--s-tree-loading-margin-y:10px;--s-tree-node-height:var(--s-content-height-sm);--s-tree-node-padding-x:var(--s-content-padding-x);--s-tree-node-padding-y:var(--s-content-padding-y);--s-tree-node-bg:var(--s-bg-color-container);--s-tree-node-bg-active:var(--s-bg-color-active);--s-tree-node-box-shadow-dragging:var(--s-box-shadow-secondary);--s-tree-node-loading-margin-end:var(--s-size-xs);--s-tree-toolbar-margin-end:-12px;--s-tree-indent-width:var(--s-size-xl);--s-tree-arrow-padding-x:var(--s-size-sm);--s-tree-arrow-font-size:var(--s-font-size-sm);--s-tree-arrow-color:var(--s-text-color-tertiary);--s-tree-selection-padding-x:var(--s-size-sm);--s-tree-edit-padding-x:var(--s-size-sm);--s-tree-edit-font-size:18px;--s-tree-edit-color:var(--s-text-color-fourth);--s-tree-edit-opacity-active:var(--s-opacity-active);--s-tree-level-btn-padding-x:var(--s-size-sm);--s-tree-level-btn-font-size:18px;--s-tree-level-btn-color:var(--s-text-color-fourth);--s-tree-level-btn-opacity-active:var(--s-opacity-active);--s-tree-drag-padding-x:var(--s-size-sm);--s-tree-drag-font-size:18px;--s-tree-drag-color:var(--s-text-color-fourth);--s-tree-drag-opacity-active:var(--s-opacity-active)}.s-tree{position:relative;display:flex;flex-direction:column;background:var(--s-tree-bg);transition:height var(--s-duration)}.s-tree__input-wrapper{padding:0 var(--s-dialog-body-padding-x) var(--s-dialog-body-padding-y)}.s-tree__input-text{text-align:center}.s-tree__status{display:flex;justify-content:center;align-items:center;margin:var(--s-tree-loading-margin-y) 0;font-size:var(--s-tree-loading-size);color:var(--s-tree-loading-color)}.s-tree__error{cursor:pointer}.s-tree__node{position:relative;display:flex;width:100%;min-height:var(--s-tree-node-height);align-items:center;padding:var(--s-tree-node-padding-y) var(--s-tree-node-padding-x);background:var(--s-tree-node-bg)}.s-tree__node::after{position:absolute;z-index:1;pointer-events:none;touch-action:none;opacity:1;content:"";left:0;right:0;transform:scaleY(0.5);bottom:0;border-bottom:var(--s-border-width) var(--s-border-style) var(--s-tree-border-color);transform-origin:bottom center}.s-tree__node--active{background:var(--s-tree-node-bg-active)}.s-tree__node--draggable{position:absolute;top:0;inset-inline-start:0;height:var(--s-tree-node-height);transition:transform var(--s-duration),opacity var(--s-duration)}.s-tree__node--dragging{z-index:1;box-shadow:var(--s-tree-node-box-shadow-dragging);transition:none}.s-tree__node--truncated .s-tree__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.s-tree__node--disallowed .s-tree__drag{visibility:hidden}.s-tree__arrow{margin-top:calc(var(--s-tree-node-padding-y)*-1);margin-inline-end:0;margin-bottom:calc(var(--s-tree-node-padding-y)*-1);margin-inline-start:calc(var(--s-tree-arrow-padding-x)*-1);padding:var(--s-tree-node-padding-y) var(--s-tree-arrow-padding-x);font-size:var(--s-tree-arrow-font-size);color:var(--s-tree-arrow-color);transition:transform var(--s-duration)}.s-tree__arrow--expanded{transform:rotate(-90deg)}.s-tree__arrow--is-leaf{visibility:hidden}:root[dir=rtl] .s-tree__arrow--expanded{transform:rotate(90deg)}:root[dir=rtl] .s-tree__arrow-icon{transform:rotateY(180deg)}.s-tree__loading{margin-inline-end:var(--s-tree-node-loading-margin-end);font-size:var(--s-tree-loading-size);color:var(--s-tree-loading-color)}.s-tree__selection{margin-top:calc(var(--s-tree-node-padding-y)*-1);margin-inline-end:0;margin-bottom:calc(var(--s-tree-node-padding-y)*-1);margin-inline-start:calc(var(--s-tree-selection-padding-x)*-1);padding:var(--s-tree-node-padding-y) var(--s-tree-selection-padding-x);cursor:pointer}.s-tree__selection--disabled{cursor:not-allowed}.s-tree__title{flex:1;min-width:0;line-height:var(--s-line-height-snug)}.s-tree__toolbar{display:flex;margin-inline-start:auto;margin-inline-end:var(--s-tree-toolbar-margin-end)}.s-tree__edit{margin:calc(var(--s-tree-node-padding-y)*-1) 0;padding:var(--s-tree-node-padding-y) var(--s-tree-edit-padding-x);font-size:var(--s-tree-edit-font-size);color:var(--s-tree-edit-color);cursor:pointer}.s-tree__edit:active{opacity:var(--s-tree-edit-opacity-active)}.s-tree__drag{position:relative;display:flex;align-items:center;margin:calc(var(--s-tree-node-padding-y)*-1) 0;padding:var(--s-tree-node-padding-y) var(--s-tree-drag-padding-x);font-size:var(--s-tree-drag-font-size);line-height:var(--s-line-height-none);color:var(--s-tree-drag-color);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}.s-tree__drag:active{opacity:var(--s-tree-drag-opacity-active)}.s-tree__level-btn{position:absolute;top:50%;inset-inline-start:0;display:flex;flex-direction:column;font-size:var(--s-tree-arrow-padding-x);transform:translateY(-50%) scale(0.8)}:root[dir=rtl] .s-tree__level-btn-icon{transform:rotateY(180deg)}
|
package/components/tree/index.js
CHANGED
|
@@ -4,9 +4,7 @@ import { getNodeLevel, walkDescendant } from "../../utils/tree.js";
|
|
|
4
4
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
5
5
|
import { useSimulatedClick } from "../../use/useSimulatedClick.js";
|
|
6
6
|
import { useSimulatedPress } from "../../use/useSimulatedPress.js";
|
|
7
|
-
import "../../use/index.js";
|
|
8
7
|
import { withResolvers } from "../../utils/polyfill.js";
|
|
9
|
-
import "../../utils/index.js";
|
|
10
8
|
import collapse_default from "../collapse/collapse.js";
|
|
11
9
|
import loading_default from "../loading/loading.js";
|
|
12
10
|
import checkbox_default from "../checkbox/checkbox.js";
|
package/components/tree/tree.js
CHANGED
|
@@ -2,8 +2,6 @@ import { createBem, cssVar } from "../../utils/bem.js";
|
|
|
2
2
|
import { uniqid } from "../../utils/string.js";
|
|
3
3
|
import { getTreeCheckedKeys, getTreeHalfCheckedKeys, initializeCheckNodes, setCheckedRecursively, updateAncestorsChecked, walkAncestor, walkDescendant, walkNodes } from "../../utils/tree.js";
|
|
4
4
|
import { useRtl } from "../../use/useRtl.js";
|
|
5
|
-
import "../../use/index.js";
|
|
6
|
-
import "../../utils/index.js";
|
|
7
5
|
import loading_default from "../loading/loading.js";
|
|
8
6
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
9
7
|
import input_default from "../input/input.js";
|
|
@@ -578,7 +576,7 @@ var tree_default = /*@__PURE__*/ defineComponent({
|
|
|
578
576
|
style: treeStyle.value
|
|
579
577
|
}), [__props.lazy && !!__props.load && (loadStatus.value !== "loaded" || treeData.value.length === 0) ? (openBlock(), createElementBlock("div", {
|
|
580
578
|
key: 0,
|
|
581
|
-
class: normalizeClass(unref(bem).e("
|
|
579
|
+
class: normalizeClass(unref(bem).e("status"))
|
|
582
580
|
}, [loadStatus.value === "loading" ? (openBlock(), createBlock(loading_default, { key: 0 })) : loadStatus.value === "error" ? (openBlock(), createElementBlock("span", {
|
|
583
581
|
key: 1,
|
|
584
582
|
class: normalizeClass(unref(bem).e("error")),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isImageFile, isImageUrl, isVideoFile, isVideoUrl } from "../../utils/file.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import loading_default from "../loading/loading.js";
|
|
5
4
|
import { defaultUploadPreviewProps } from "./common.js";
|
|
6
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeDefaults, normalizeClass, openBlock, ref, toDisplayString, unref, useTemplateRef, withModifiers } from "vue";
|
|
@@ -2,7 +2,6 @@ import { createBem } from "../../utils/bem.js";
|
|
|
2
2
|
import { chooseFile, isImageFile, isImageUrl } from "../../utils/file.js";
|
|
3
3
|
import { isFunction } from "../../utils/is.js";
|
|
4
4
|
import { toArray } from "../../utils/array.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
5
|
import { useFormContext, useFormItemContext } from "../form/common.js";
|
|
7
6
|
import { previewImage } from "../preview-image/imperative.js";
|
|
8
7
|
import { defaultUploadProps } from "./common.js";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { cssVar } from "../../../utils/bem.js";
|
|
2
2
|
import { random } from "../../../utils/number.js";
|
|
3
3
|
import { useTimeout } from "../../../use/useTimeout.js";
|
|
4
|
-
import "../../../use/index.js";
|
|
5
|
-
import "../../../utils/index.js";
|
|
6
4
|
import { computed, createElementBlock, createElementVNode, defineComponent, normalizeStyle, onMounted, openBlock, ref, toDisplayString, unref } from "vue";
|
|
7
5
|
//#region packages/sard/components/waterfall/test/SimulatedImage.vue
|
|
8
6
|
var SimulatedImage_default = /*@__PURE__*/ defineComponent({
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { useTimeout } from "../../use/useTimeout.js";
|
|
3
|
-
import "../../use/index.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
3
|
import { waterfallContextKey } from "./common.js";
|
|
6
4
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, unref, useTemplateRef, watch } from "vue";
|
|
7
5
|
//#region packages/sard/components/waterfall/waterfall-item.vue
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { useTimeout } from "../../use/useTimeout.js";
|
|
3
|
-
import "../../use/index.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
3
|
import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, unref } from "vue";
|
|
6
4
|
//#region packages/sard/components/waterfall/waterfall-load.vue
|
|
7
5
|
var waterfall_load_default = /*@__PURE__*/ defineComponent({
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { throttle } from "../../utils/utils.js";
|
|
3
3
|
import { useResizeObserver } from "../../use/useResizeObserver.js";
|
|
4
|
-
import "../../use/index.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
4
|
import { defaultWaterfallProps, waterfallContextKey } from "./common.js";
|
|
7
5
|
import { computed, createElementBlock, defineComponent, mergeDefaults, nextTick, normalizeClass, normalizeStyle, openBlock, provide, reactive, ref, renderSlot, useTemplateRef, watch } from "vue";
|
|
8
6
|
//#region packages/sard/components/waterfall/waterfall.vue
|
|
@@ -2,7 +2,6 @@ import { createBem } from "../../utils/bem.js";
|
|
|
2
2
|
import { imageDataToDataURL, loadImage } from "../../utils/file.js";
|
|
3
3
|
import { toArray } from "../../utils/array.js";
|
|
4
4
|
import { getRotatedRect } from "../../utils/geometry.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
5
|
import { defaultWatermarkFont, defaultWatermarkProps } from "./common.js";
|
|
7
6
|
import { computed, createElementBlock, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, ref, shallowRef, watch } from "vue";
|
|
8
7
|
//#region packages/sard/components/watermark/watermark.vue
|
package/global.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ declare module 'vue' {
|
|
|
64
64
|
SImage: typeof import('./components/image/image').default
|
|
65
65
|
SIndexes: typeof import('./components/indexes/indexes').default
|
|
66
66
|
SIndexesAnchor: typeof import('./components/indexes/indexes-anchor').default
|
|
67
|
+
SInfiniteList: typeof import('./components/infinite-list/infinite-list').default
|
|
67
68
|
SInput: typeof import('./components/input/input').default
|
|
68
69
|
SKeyboard: typeof import('./components/keyboard/keyboard').default
|
|
69
70
|
SKeyboardPopout: typeof import('./components/keyboard-popout/keyboard-popout').default
|