sard 1.0.1 → 1.0.2
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/index.js +0 -1
- package/components/preview-image/preview-image-item.js +0 -2
- package/components/preview-image/preview-image.js +0 -2
- 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 +0 -2
- 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.js +0 -1
- 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 { useIntersectionObserver } from "../../use/useIntersectionObserver.js";
|
|
2
|
-
import "../../use/index.js";
|
|
3
2
|
import { computed, ref, toValue, watch } from "vue";
|
|
4
3
|
//#region packages/sard/components/load-more/useLoadMore.ts
|
|
5
4
|
/**
|
|
@@ -19,20 +18,22 @@ function useLoadMore(options) {
|
|
|
19
18
|
status.value = "loading";
|
|
20
19
|
currentPage.value = page;
|
|
21
20
|
return currentPromise = options.request(page, isRefreshing.value).then((loaded) => {
|
|
21
|
+
isRefreshing.value = false;
|
|
22
22
|
status.value = loaded ? "complete" : "incomplete";
|
|
23
23
|
if (!loaded) setTimeout(() => {
|
|
24
24
|
if (status.value === "incomplete" && isIntersecting.value) onLoadMore();
|
|
25
25
|
}, 30);
|
|
26
26
|
}).catch(() => {
|
|
27
|
-
status.value = "error";
|
|
28
|
-
}).finally(() => {
|
|
29
27
|
isRefreshing.value = false;
|
|
28
|
+
status.value = "error";
|
|
30
29
|
});
|
|
31
30
|
};
|
|
32
31
|
const refresh = async () => {
|
|
33
32
|
if (!disabled.value) {
|
|
34
|
-
if (status.value !== "loading")
|
|
35
|
-
|
|
33
|
+
if (status.value !== "loading") {
|
|
34
|
+
isRefreshing.value = true;
|
|
35
|
+
return loadMoreFetch(1);
|
|
36
|
+
}
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
const onLoadMore = () => {
|
|
@@ -52,7 +53,9 @@ function useLoadMore(options) {
|
|
|
52
53
|
status,
|
|
53
54
|
isIntersecting
|
|
54
55
|
], () => {
|
|
55
|
-
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
if (!disabled.value && status.value === "incomplete" && isIntersecting.value) loadMoreFetch(firstTime ? currentPage.value + 1 : currentPage.value);
|
|
58
|
+
}, 30);
|
|
56
59
|
});
|
|
57
60
|
return {
|
|
58
61
|
status,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isRenderVisible } from "../../utils/utils.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { defaultLoadingProps } from "./common.js";
|
|
5
4
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, useSlots } from "vue";
|
|
6
5
|
//#region packages/sard/components/loading/loading.vue
|
|
@@ -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 { defaultMarqueeProps } from "./common.js";
|
|
7
5
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, unref, useTemplateRef } from "vue";
|
|
8
6
|
//#region packages/sard/components/marquee/marquee.vue
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { reactiveComputed } from "../../use/reactiveComputed.js";
|
|
2
|
-
import "../../use/index.js";
|
|
3
2
|
import { computed, inject, onMounted, onUnmounted, provide, reactive, toRef, useAttrs } from "vue";
|
|
4
3
|
//#region packages/sard/components/menu/context.ts
|
|
5
4
|
const menuContextKey = Symbol("menuContext");
|
package/components/menu/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { useMenuItem } from "./context.js";
|
|
4
3
|
import { computed, createCommentVNode, createElementBlock, createTextVNode, defineComponent, normalizeClass, onBeforeMount, onBeforeUpdate, openBlock, ref, renderSlot, toDisplayString, unref, useSlots } from "vue";
|
|
5
4
|
//#region packages/sard/components/menu/menu-item.vue
|
package/components/menu/menu.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultMenuProps } from "./common.js";
|
|
4
3
|
import { useMenu } from "./context.js";
|
|
5
4
|
import { computed, createElementBlock, defineComponent, mergeDefaults, normalizeClass, openBlock, renderSlot } from "vue";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultMotionProps } from "./common.js";
|
|
4
3
|
import { Transition, computed, createBlock, defineComponent, mergeDefaults, openBlock, renderSlot, withCtx } from "vue";
|
|
5
4
|
//#region packages/sard/components/motion/motion.vue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-navbar-height:var(--s-content-height);--s-navbar-bg:var(--s-bg-color-container);--s-navbar-z-index:var(--s-z-index-secondary);--s-navbar-title-max-width:60%;--s-navbar-title-font-size:var(--s-font-size-lg);--s-navbar-title-color:var(--s-text-color-emphasis);--s-navbar-back-color:var(--s-text-color-secondary);--s-navbar-item-padding-x:var(--s-size-xs);--s-navbar-item-gap:var(--s-size-2xs);--s-navbar-item-font-size:var(--s-font-size-lg);--s-navbar-item-icon-size:var(--s-size-lg);--s-navbar-item-color:var(--s-color-primary);--s-navbar-item-opacity-active:var(--s-opacity-active);--s-navbar-start-gap:var(--s-size-2xs);--s-navbar-end-gap:var(--s-size-2xs)}.s-navbar{background:var(--s-navbar-bg)}.s-navbar--fixed{position:fixed;top:0;left:0;width:100%;z-index:var(--s-navbar-z-index)}.s-
|
|
1
|
+
:root{--s-navbar-height:var(--s-content-height);--s-navbar-bg:var(--s-bg-color-container);--s-navbar-z-index:var(--s-z-index-secondary);--s-navbar-title-max-width:60%;--s-navbar-title-font-size:var(--s-font-size-lg);--s-navbar-title-color:var(--s-text-color-emphasis);--s-navbar-back-color:var(--s-text-color-secondary);--s-navbar-item-padding-x:var(--s-size-xs);--s-navbar-item-gap:var(--s-size-2xs);--s-navbar-item-font-size:var(--s-font-size-lg);--s-navbar-item-icon-size:var(--s-size-lg);--s-navbar-item-color:var(--s-color-primary);--s-navbar-item-opacity-active:var(--s-opacity-active);--s-navbar-start-gap:var(--s-size-2xs);--s-navbar-end-gap:var(--s-size-2xs)}.s-navbar{background:var(--s-navbar-bg)}.s-navbar--fixed{position:fixed;top:0;left:0;width:100%;z-index:var(--s-navbar-z-index)}.s-navbar__wrapper{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;height:var(--s-navbar-height)}.s-navbar__wrapper:is(.is-divider)::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-border-color);transform-origin:bottom center}.s-navbar__content{display:flex;align-items:center;justify-content:center;height:100%;flex:1;overflow:hidden}.s-navbar__title{display:block;width:100%;max-width:var(--s-navbar-title-max-width);font-size:var(--s-navbar-title-font-size);font-weight:var(--s-font-weight-bold);text-align:center;color:var(--s-navbar-title-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.s-navbar__start,.s-navbar__end{position:absolute;top:0;bottom:0;z-index:2;flex:none;align-items:stretch;height:100%}.s-navbar__start{inset-inline-start:0;padding-inline-start:var(--s-navbar-start-gap)}.s-navbar__end{inset-inline-end:0;padding-inline-end:var(--s-navbar-end-gap)}.s-navbar--custom .s-navbar__content{flex-direction:column;align-items:stretch}.s-navbar--flow .s-navbar__title{max-width:100%;text-align:start}.s-navbar--flow .s-navbar__start,.s-navbar--flow .s-navbar__end{position:relative}.s-navbar__item{display:inline-flex;align-items:center;justify-content:center;height:100%;gap:var(--s-navbar-item-gap);padding:0 var(--s-navbar-item-padding-x);font-size:var(--s-navbar-item-font-size);color:var(--s-navbar-item-color);cursor:pointer;line-height:1}.s-navbar__item:active{opacity:var(--s-navbar-item-opacity-active)}.s-navbar__item .s-navbar__item-icon{font-size:var(--s-navbar-item-icon-size)}.s-navbar__item:is(.is-back){color:var(--s-navbar-back-color)}:root[dir=rtl] .s-navbar__item:is(.is-back) .s-navbar__item-icon{transform:rotateY(180deg)}.s-navbar--reverse{flex-direction:row-reverse}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { computed, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, useSlots } from "vue";
|
|
4
3
|
//#region packages/sard/components/navbar/navbar-item.vue
|
|
5
4
|
var navbar_item_default = /*@__PURE__*/ defineComponent({
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { windowInfo } from "../config/windowInfo.js";
|
|
4
|
-
import divider_default from "../divider/divider.js";
|
|
5
3
|
import navbar_item_default from "./navbar-item.js";
|
|
6
4
|
import status_bar_default from "../status-bar/status-bar.js";
|
|
7
5
|
import navbar_pit_default from "../navbar-pit/navbar-pit.js";
|
|
@@ -65,32 +63,25 @@ var navbar_default = /*@__PURE__*/ defineComponent({
|
|
|
65
63
|
];
|
|
66
64
|
});
|
|
67
65
|
return (_ctx, _cache) => {
|
|
68
|
-
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps(_ctx.$attrs, { class: navbarClass.value }), [
|
|
69
|
-
__props.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
createElementVNode("div", { class: normalizeClass(unref(bem).e("content")) }, [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", { class: normalizeClass(unref(bem).e("title")) }, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])], 2)])], 2),
|
|
84
|
-
slots.end ? (openBlock(), createElementBlock("div", {
|
|
85
|
-
key: 1,
|
|
86
|
-
class: normalizeClass(unref(bem).e("end"))
|
|
87
|
-
}, [renderSlot(_ctx.$slots, "end")], 2)) : createCommentVNode("v-if", true)
|
|
88
|
-
], 2),
|
|
89
|
-
__props.showDivider ? (openBlock(), createBlock(divider_default, {
|
|
66
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps(_ctx.$attrs, { class: navbarClass.value }), [__props.statusBar ? (openBlock(), createBlock(status_bar_default, { key: 0 })) : createCommentVNode("v-if", true), createElementVNode("div", { class: normalizeClass([unref(bem).e("wrapper"), unref(bem).is("divider", __props.showDivider)]) }, [
|
|
67
|
+
slots.start || __props.showBack ? (openBlock(), createElementBlock("div", {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: normalizeClass(unref(bem).e("start"))
|
|
70
|
+
}, [__props.showBack ? (openBlock(), createBlock(navbar_item_default, {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: normalizeClass(unref(bem).is("back")),
|
|
73
|
+
onClick: onBack
|
|
74
|
+
}, {
|
|
75
|
+
icon: withCtx(() => [createVNode(unref(Left))]),
|
|
76
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(__props.backText), 1)]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "start")], 2)) : createCommentVNode("v-if", true),
|
|
79
|
+
createElementVNode("div", { class: normalizeClass(unref(bem).e("content")) }, [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", { class: normalizeClass(unref(bem).e("title")) }, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])], 2)])], 2),
|
|
80
|
+
slots.end ? (openBlock(), createElementBlock("div", {
|
|
90
81
|
key: 1,
|
|
91
|
-
class: normalizeClass(unref(bem).e("
|
|
92
|
-
},
|
|
93
|
-
], 16), __props.fixed ? (openBlock(), createBlock(navbar_pit_default, {
|
|
82
|
+
class: normalizeClass(unref(bem).e("end"))
|
|
83
|
+
}, [renderSlot(_ctx.$slots, "end")], 2)) : createCommentVNode("v-if", true)
|
|
84
|
+
], 2)], 16), __props.fixed ? (openBlock(), createBlock(navbar_pit_default, {
|
|
94
85
|
key: 0,
|
|
95
86
|
"status-bar": __props.statusBar
|
|
96
87
|
}, null, 8, ["status-bar"])) : createCommentVNode("v-if", true)], 64);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import status_bar_default from "../status-bar/status-bar.js";
|
|
4
3
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, unref } from "vue";
|
|
5
4
|
//#region packages/sard/components/navbar-pit/navbar-pit.vue
|
|
@@ -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 { defaultNoticeBarProps } from "./common.js";
|
|
7
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, unref, useTemplateRef } from "vue";
|
|
8
6
|
import { Close, Right, VolumeUp } from "@sard/icons";
|
|
@@ -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 status_bar_default from "../status-bar/status-bar.js";
|
|
7
5
|
import { defaultNotifyProps } from "./common.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultOverlayProps } from "./common.js";
|
|
4
3
|
import motion_default from "../motion/motion.js";
|
|
5
4
|
import { computed, createBlock, createElementVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, vShow, withCtx, withDirectives, withModifiers } from "vue";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { clamp } from "../../utils/number.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
5
4
|
import { defaultPaginationProps, getPageRange } from "./common.js";
|
|
6
5
|
import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeDefaults, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch } from "vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-password-input-gap:10px;--s-password-input-border-color:var(--s-border-color);--s-password-input-radius:var(--s-border-radius);--s-password-input-border-color-active:var(--s-color-primary);--s-password-input-height:var(--s-content-height-lg);--s-password-input-ciphertext-size:10px;--s-password-input-ciphertext-bg:var(--s-text-color-primary);--s-password-input-plaintext-font-size:20px;--s-password-input-cursor-width:1px;--s-password-input-cursor-height:20px;--s-password-input-cursor-color:var(--s-text-color-primary)}.s-password-input{position:relative;display:flex;align-items:center;justify-content:center;height:var(--s-password-input-height);gap:var(--s-password-input-gap);-webkit-user-select:none;user-select:none}.s-password-input__item{position:relative;display:flex;align-items:center;justify-content:center;flex:1;height:100%}.s-password-input__plaintext{font-size:var(--s-password-input-plaintext-font-size)}.s-password-input__ciphertext{width:var(--s-password-input-ciphertext-size);height:var(--s-password-input-ciphertext-size);border-radius:var(--s-border-radius-full);background:var(--s-password-input-ciphertext-bg)}.s-password-input__cursor{width:var(--s-password-input-cursor-width);height:var(--s-password-input-cursor-height);background:var(--s-password-input-cursor-color);animation:1s s-password-input-cursor-flicker infinite}@keyframes s-password-input-cursor-flicker{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.s-password-input__input-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3;overflow:hidden}.s-password-input__input{position:absolute;top:0;left:-100%;width:200%;height:100%;margin:0;padding:0;border:0;opacity:0}.s-password-input--bordered .s-password-input__item{border-radius:var(--s-password-input-radius)}.s-password-input--bordered .s-password-input__item::after{position:absolute;top:0;left:0;z-index:1;width:200%;height:200%;border:var(--s-border-width) var(--s-border-style) rgba(0,0,0,0);transform:scale(0.5);transform-origin:0 0;pointer-events:none;touch-action:none;content:"";border-color:var(--s-password-input-border-color);border-radius:calc(var(--s-password-input-radius)*2)}.s-password-input--underlined .s-password-input__item::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-password-input-border-color);transform-origin:bottom center}.s-password-input--tight-bordered .s-password-input__item::after{position:absolute;top:0;left:0;z-index:1;width:200%;height:200%;border:var(--s-border-width) var(--s-border-style) rgba(0,0,0,0);transform:scale(0.5);transform-origin:0 0;pointer-events:none;touch-action:none;content:"";border-color:var(--s-password-input-border-color);border-inline-start-color:rgba(0,0,0,0)}.s-password-input--tight-bordered .s-password-input__item:first-child::after{border-inline-start-color:var(--s-password-input-border-color)}.s-password-input--bordered .s-password-input__item--active::after,.s-password-input--underlined .s-password-input__item--active::after,.s-password-input--tight-bordered .s-password-input__item--active::after{border-color:var(--s-password-input-border-color-active)}.s-password-input--tight-bordered .s-password-input__item--active:first-child::after{border-inline-start-color:var(--s-password-input-border-color-active)}.s-password-input--disabled{color:var(--s-text-color-disabled)}.s-password-input--disabled .s-password-input__item{background:var(--s-bg-color-disabled)}.s-password-input--disabled .s-password-input__ciphertext{background:var(--s-text-color-disabled)}
|
|
1
|
+
:root{--s-password-input-gap:10px;--s-password-input-border-color:var(--s-border-color);--s-password-input-border-radius:var(--s-border-radius);--s-password-input-border-color-active:var(--s-color-primary);--s-password-input-height:var(--s-content-height-lg);--s-password-input-ciphertext-size:10px;--s-password-input-ciphertext-bg:var(--s-text-color-primary);--s-password-input-plaintext-font-size:20px;--s-password-input-cursor-width:1px;--s-password-input-cursor-height:20px;--s-password-input-cursor-color:var(--s-text-color-primary)}.s-password-input{position:relative;display:flex;align-items:center;justify-content:center;height:var(--s-password-input-height);gap:var(--s-password-input-gap);-webkit-user-select:none;user-select:none}.s-password-input__item{position:relative;display:flex;align-items:center;justify-content:center;flex:1;height:100%}.s-password-input__plaintext{font-size:var(--s-password-input-plaintext-font-size)}.s-password-input__ciphertext{width:var(--s-password-input-ciphertext-size);height:var(--s-password-input-ciphertext-size);border-radius:var(--s-border-radius-full);background:var(--s-password-input-ciphertext-bg)}.s-password-input__cursor{width:var(--s-password-input-cursor-width);height:var(--s-password-input-cursor-height);background:var(--s-password-input-cursor-color);animation:1s s-password-input-cursor-flicker infinite}@keyframes s-password-input-cursor-flicker{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.s-password-input__input-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3;overflow:hidden}.s-password-input__input{position:absolute;top:0;left:-100%;width:200%;height:100%;margin:0;padding:0;border:0;opacity:0}.s-password-input--bordered .s-password-input__item{border-radius:var(--s-password-input-border-radius)}.s-password-input--bordered .s-password-input__item::after{position:absolute;top:0;left:0;z-index:1;width:200%;height:200%;border:var(--s-border-width) var(--s-border-style) rgba(0,0,0,0);transform:scale(0.5);transform-origin:0 0;pointer-events:none;touch-action:none;content:"";border-color:var(--s-password-input-border-color);border-radius:calc(var(--s-password-input-border-radius)*2)}.s-password-input--underlined .s-password-input__item::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-password-input-border-color);transform-origin:bottom center}.s-password-input--tight-bordered .s-password-input__item::after{position:absolute;top:0;left:0;z-index:1;width:200%;height:200%;border:var(--s-border-width) var(--s-border-style) rgba(0,0,0,0);transform:scale(0.5);transform-origin:0 0;pointer-events:none;touch-action:none;content:"";border-color:var(--s-password-input-border-color);border-inline-start-color:rgba(0,0,0,0)}.s-password-input--tight-bordered .s-password-input__item:first-child::after{border-inline-start-color:var(--s-password-input-border-color)}.s-password-input--bordered .s-password-input__item--active::after,.s-password-input--underlined .s-password-input__item--active::after,.s-password-input--tight-bordered .s-password-input__item--active::after{border-color:var(--s-password-input-border-color-active)}.s-password-input--tight-bordered .s-password-input__item--active:first-child::after{border-inline-start-color:var(--s-password-input-border-color-active)}.s-password-input--disabled{color:var(--s-text-color-disabled)}.s-password-input--disabled .s-password-input__item{background:var(--s-bg-color-disabled)}.s-password-input--disabled .s-password-input__ciphertext{background:var(--s-text-color-disabled)}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import password_input_default from "./password-input.js";
|
|
4
3
|
//#region packages/sard/components/password-input/index.ts
|
|
5
4
|
const PasswordInput = enhanceComponent(password_input_default);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isNullish } from "../../utils/is.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { useFormContext, useFormItemContext } from "../form/common.js";
|
|
5
4
|
import { defaultPasswordInputProps } from "./common.js";
|
|
6
5
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeDefaults, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, toDisplayString, unref, useTemplateRef, watch } from "vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.s-picker__item{line-height:var(--s-picker-view-indicator-height);font-size:var(--s-picker-view-font-size);color:var(--s-picker-view-color);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -4,8 +4,6 @@ import { isEmptyBinding } from "../../utils/utils.js";
|
|
|
4
4
|
import { nestedToMulti } from "../../utils/object.js";
|
|
5
5
|
import { arrayEqual, toArray } from "../../utils/array.js";
|
|
6
6
|
import { useOptionKeys } from "../../use/useOptionKeys.js";
|
|
7
|
-
import "../../use/index.js";
|
|
8
|
-
import "../../utils/index.js";
|
|
9
7
|
import { defaultPickerProps, getCascaderValidIndexes, getColumnsType, getIndexesByValue, getMaySingleValueByOptions, getOptionsByIndexes } from "./common.js";
|
|
10
8
|
import picker_view_default from "../picker-view/picker-view.js";
|
|
11
9
|
import picker_view_column_default from "../picker-view/picker-view-column.js";
|
|
@@ -2,8 +2,6 @@ import { isEmptyArray } from "../../utils/is.js";
|
|
|
2
2
|
import { isEmptyBinding } from "../../utils/utils.js";
|
|
3
3
|
import { toArray } from "../../utils/array.js";
|
|
4
4
|
import { useOptionKeys } from "../../use/useOptionKeys.js";
|
|
5
|
-
import "../../use/index.js";
|
|
6
|
-
import "../../utils/index.js";
|
|
7
5
|
import { getIndexesByValue, getOptionsByIndexes } from "../picker/common.js";
|
|
8
6
|
import popout_input_default from "../popout-input/popout-input.js";
|
|
9
7
|
import { partitionPopoutInputProps, usePopoutInput } from "../popout-input/usePopoutInput.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import picker_popout_default from "./picker-popout.js";
|
|
4
3
|
//#region packages/sard/components/picker-popout/index.ts
|
|
5
4
|
const PickerPopout = enhanceComponent(picker_popout_default);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { isEmptyArray } from "../../utils/is.js";
|
|
2
2
|
import { isEmptyBinding } from "../../utils/utils.js";
|
|
3
3
|
import { useOptionKeys } from "../../use/useOptionKeys.js";
|
|
4
|
-
import "../../use/index.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
4
|
import popout_default from "../popout/popout.js";
|
|
7
5
|
import { getInitialValue } from "../picker/common.js";
|
|
8
6
|
import picker_default from "../picker/picker.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-picker-view-height:240px;--s-picker-
|
|
1
|
+
:root{--s-picker-view-height:240px;--s-picker-view-font-size:var(--s-font-size-lg);--s-picker-view-color:var(--s-text-color-primary);--s-picker-view-indicator-height:var(--s-content-height-lg);--s-picker-view-indicator-border-color:var(--s-border-color);--s-picker-view-mask-bg-image:linear-gradient(to bottom, rgba(var(--s-bg-color-elevated-rgb), 0.95), rgba(var(--s-bg-color-elevated-rgb), 0.6)),linear-gradient(to top, rgba(var(--s-bg-color-elevated-rgb), 0.95), rgba(var(--s-bg-color-elevated-rgb), 0.6))}.s-picker-view{height:var(--s-picker-view-height);-webkit-user-select:none;user-select:none;touch-action:none}.s-picker-view__wrapper{display:flex;position:relative;overflow:hidden;height:100%}.s-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}.s-picker-view-column__group{height:100%;overflow:hidden}.s-picker-view-column__indicator,.s-picker-view-column__mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.s-picker-view-column__mask{top:0;height:100%;margin:0 auto;background-image:var(--s-picker-view-mask-bg-image);background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.s-picker-view-column__indicator{height:var(--s-picker-view-indicator-height);top:50%;transform:translateY(-50%)}.s-picker-view-column__indicator::before,.s-picker-view-column__indicator::after{content:" ";position:absolute;left:0;right:0;height:1px}.s-picker-view-column__indicator::before{top:0;border-top:1px solid var(--s-picker-view-indicator-border-color);transform-origin:0 0;transform:scaleY(0.5)}.s-picker-view-column__indicator::after{bottom:0;border-bottom:1px solid var(--s-picker-view-indicator-border-color);transform-origin:0 100%;transform:scaleY(0.5)}.s-picker-view-column__content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.s-picker-view-column__content>*{height:var(--picker-view-indicator-height);overflow:hidden}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import picker_view_default from "./picker-view.js";
|
|
4
3
|
import picker_view_column_default from "./picker-view-column.js";
|
|
5
4
|
//#region packages/sard/components/picker-view/index.ts
|
|
@@ -5,9 +5,7 @@ import { Friction } from "../../utils/scroller/Friction.js";
|
|
|
5
5
|
import { Spring } from "../../utils/scroller/Spring.js";
|
|
6
6
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
7
7
|
import { useResizeObserver } from "../../use/useResizeObserver.js";
|
|
8
|
-
import "../../use/index.js";
|
|
9
8
|
import { useScroller } from "../../utils/scroller/useScroller.js";
|
|
10
|
-
import "../../utils/index.js";
|
|
11
9
|
import { pickerViewContextKey } from "./common.js";
|
|
12
10
|
import { computed, createVNode, getCurrentInstance, inject, nextTick, onMounted, ref, useTemplateRef, watch } from "vue";
|
|
13
11
|
//#region packages/sard/components/picker-view/picker-view-column.tsx
|
|
@@ -2,8 +2,6 @@ import { createBem } from "../../utils/bem.js";
|
|
|
2
2
|
import { flatVNode } from "../../utils/vnode.js";
|
|
3
3
|
import { defineSetupFnComponent } from "../../utils/component.js";
|
|
4
4
|
import { useResizeObserver } from "../../use/useResizeObserver.js";
|
|
5
|
-
import "../../use/index.js";
|
|
6
|
-
import "../../utils/index.js";
|
|
7
5
|
import { pickerViewContextKey, pickerViewProps } from "./common.js";
|
|
8
6
|
import { computed, createVNode, provide, reactive, ref, toRef, useTemplateRef, watch } from "vue";
|
|
9
7
|
//#region packages/sard/components/picker-view/picker-view.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-popout-border-radius:var(--s-border-radius-xl);--s-popout-bg:var(--s-bg-color-elevated);--s-popout-close-padding:var(--s-size);--s-popout-close-font-size:var(--s-font-size-lg);--s-popout-close-color:var(--s-text-color-secondary);--s-popout-header-compact-height:var(--s-content-height);--s-popout-header-loose-height:var(--s-content-height);--s-popout-header-loose-padding-x:60px;--s-popout-title-font-size:var(--s-font-size-lg);--s-popout-title-color:var(--s-text-color-emphasis);--s-popout-footer-
|
|
1
|
+
:root{--s-popout-border-radius:var(--s-border-radius-xl);--s-popout-bg:var(--s-bg-color-elevated);--s-popout-close-padding:var(--s-size);--s-popout-close-font-size:var(--s-font-size-lg);--s-popout-close-color:var(--s-text-color-secondary);--s-popout-header-compact-height:var(--s-content-height);--s-popout-header-loose-height:var(--s-content-height);--s-popout-header-loose-padding-x:60px;--s-popout-title-font-size:var(--s-font-size-lg);--s-popout-title-color:var(--s-text-color-emphasis);--s-popout-footer-padding-y:var(--s-content-padding-y);--s-popout-footer-padding-x:var(--s-content-padding-x);--s-popout-button-gap:var(--s-size)}.s-popout{max-height:100%;padding-bottom:var(--s-safe-bottom);border-top-left-radius:var(--s-popout-border-radius);border-top-right-radius:var(--s-popout-border-radius);background:var(--s-popout-bg)}.s-popout--divided{box-shadow:var(--s-box-shadow)}.s-popout__header{position:relative;display:flex;align-items:center}.s-popout__header--compact{height:var(--s-popout-header-compact-height)}.s-popout__header--loose{height:var(--s-popout-header-loose-height);padding-inline-start:var(--s-popout-header-loose-padding-x);padding-inline-end:var(--s-popout-header-loose-padding-x)}.s-popout__button-wrap{position:relative;display:flex;flex-direction:column;z-index:1;height:100%}.s-popout__button-wrap--end{margin-inline-start:auto}.s-popout__title{position:absolute;left:0;right:0;display:flex;justify-content:center;align-items:center;width:70%;height:100%;margin-inline-start:auto;margin-inline-end:auto;text-align:center;font-size:var(--s-popout-title-font-size);font-weight:var(--s-font-weight-bold);color:var(--s-popout-title-color);overflow:hidden}.s-popout__title-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.s-popout__close{position:absolute;top:0;inset-inline-end:0;height:100%;border-width:0;font-size:var(--s-popout-close-font-size);color:var(--s-popout-close-color)}.s-popout__footer{display:flex;align-items:center;gap:var(--s-popout-button-gap);padding:var(--s-popout-footer-padding-y) var(--s-popout-footer-padding-x)}.s-popout__footer-button{flex:1 1 0}
|
|
@@ -2,7 +2,6 @@ import { createBem } from "../../utils/bem.js";
|
|
|
2
2
|
import { isBoolean, isFunction } from "../../utils/is.js";
|
|
3
3
|
import { noop } from "../../utils/utils.js";
|
|
4
4
|
import { usePopupVisibleHookProvide } from "../popup/common.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
5
|
import popup_default from "../popup/popup.js";
|
|
7
6
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
8
7
|
import button_default from "../button/button.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import popout_input_default from "./popout-input.js";
|
|
4
3
|
import { partitionPopoutInputProps, usePopoutInput } from "./usePopoutInput.js";
|
|
5
4
|
//#region packages/sard/components/popout-input/index.ts
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
3
|
-
import "../../use/index.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
3
|
import loading_default from "../loading/loading.js";
|
|
6
4
|
import { useFormContext } from "../form/common.js";
|
|
7
5
|
import input_default from "../input/input.js";
|
|
@@ -3,8 +3,6 @@ import { OnlyChild } from "../../utils/vnode.js";
|
|
|
3
3
|
import { useZIndex } from "../../use/useZIndex.js";
|
|
4
4
|
import { usePopper } from "../../use/usePopper.js";
|
|
5
5
|
import { useClickOutside } from "../../use/useClickOutside.js";
|
|
6
|
-
import "../../use/index.js";
|
|
7
|
-
import "../../utils/index.js";
|
|
8
6
|
import motion_default from "../motion/motion.js";
|
|
9
7
|
import { defaultPopoverProps } from "./common.js";
|
|
10
8
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeDefaults, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, shallowRef, unref, useAttrs, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
2
|
import { useInPopup, usePopupEnter, usePopupVisibleHookProvide } from "./common.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import popup_default from "./popup.js";
|
|
5
4
|
//#region packages/sard/components/popup/index.ts
|
|
6
5
|
const Popup = enhanceComponent(popup_default);
|
|
@@ -2,8 +2,6 @@ import { createBem } from "../../utils/bem.js";
|
|
|
2
2
|
import { useZIndex } from "../../use/useZIndex.js";
|
|
3
3
|
import { defaultPopupProps, mapEffectMotion, usePopupVisibleHookProvide } from "./common.js";
|
|
4
4
|
import { useLockScroll } from "../../use/useLockScroll.js";
|
|
5
|
-
import "../../use/index.js";
|
|
6
|
-
import "../../utils/index.js";
|
|
7
5
|
import motion_default from "../motion/motion.js";
|
|
8
6
|
import overlay_default from "../overlay/overlay.js";
|
|
9
7
|
import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, mergeDefaults, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, unref, vShow, withCtx, withDirectives } from "vue";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import preview_image_default from "./preview-image.js";
|
|
4
3
|
import { createPreviewImage, previewImage } from "./imperative.js";
|
|
5
4
|
//#region packages/sard/components/preview-image/index.ts
|
|
@@ -5,8 +5,6 @@ import { createInertialAnimate } from "../../utils/inertialAnimate.js";
|
|
|
5
5
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
6
6
|
import { useSimulatedDblClick } from "../../use/useSimulatedDblClick.js";
|
|
7
7
|
import { useDragPinch } from "../../use/useDragPinch.js";
|
|
8
|
-
import "../../use/index.js";
|
|
9
|
-
import "../../utils/index.js";
|
|
10
8
|
import { previewImageContextKey } from "./common.js";
|
|
11
9
|
import { computed, createElementBlock, createElementVNode, defineComponent, inject, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, unref, watch, withModifiers } from "vue";
|
|
12
10
|
//#region packages/sard/components/preview-image/preview-image-item.vue
|
|
@@ -3,8 +3,6 @@ import { clamp } from "../../utils/number.js";
|
|
|
3
3
|
import { useTimeout } from "../../use/useTimeout.js";
|
|
4
4
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
5
5
|
import { useInitialVelocity } from "../../use/useInitialVelocity.js";
|
|
6
|
-
import "../../use/index.js";
|
|
7
|
-
import "../../utils/index.js";
|
|
8
6
|
import popup_default from "../popup/popup.js";
|
|
9
7
|
import { defaultPreviewImageProps, previewImageContextKey } from "./common.js";
|
|
10
8
|
import swiper_default from "../swiper/swiper.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultProgressBarProps } from "./common.js";
|
|
4
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref } from "vue";
|
|
5
4
|
import { CheckCircleFill, WarningFill, XCircleFill } from "@sard/icons";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-progress-circle-size:100px;--s-progress-circle-track-
|
|
1
|
+
:root{--s-progress-circle-size:100px;--s-progress-circle-track-bg:var(--s-fill-color-secondary);--s-progress-circle-fill-bg:var(--s-color-primary);--s-progress-circle-text-font-size:var(--s-font-size);--s-progress-circle-status-font-size:18px;--s-progress-circle-color-success:var(--s-color-success);--s-progress-circle-color-warning:var(--s-color-warning);--s-progress-circle-color-error:var(--s-color-danger)}.s-progress-circle{position:relative;display:inline-flex;justify-content:center;align-items:center;width:var(--s-progress-circle-size);height:var(--s-progress-circle-size)}.s-progress-circle__graph{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.s-progress-circle__track{stroke:var(--s-progress-circle-track-bg)}.s-progress-circle__fill{stroke:var(--s-progress-circle-fill-bg);transition:stroke-dasharray var(--s-duration) ease}.s-progress-circle__text{font-size:var(--s-progress-circle-text-font-size)}.s-progress-circle__status{font-size:var(--s-progress-circle-status-font-size)}.s-progress-circle--success .s-progress-circle__fill{stroke:var(--s-progress-circle-color-success)}.s-progress-circle--success .s-progress-circle__status{color:var(--s-progress-circle-color-success)}.s-progress-circle--warning .s-progress-circle__fill{stroke:var(--s-progress-circle-color-warning)}.s-progress-circle--warning .s-progress-circle__status{color:var(--s-progress-circle-color-warning)}.s-progress-circle--error .s-progress-circle__fill{stroke:var(--s-progress-circle-color-error)}.s-progress-circle--error .s-progress-circle__status{color:var(--s-progress-circle-color-error)}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import progress_circle_default from "./progress-circle.js";
|
|
4
3
|
//#region packages/sard/components/progress-circle/index.ts
|
|
5
4
|
const ProgressCircle = enhanceComponent(progress_circle_default);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultProgressCircleProps } from "./common.js";
|
|
4
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref } from "vue";
|
|
5
4
|
import { CheckCircleFill, WarningFill, XCircleFill } from "@sard/icons";
|