yc-design-vue 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/es/Progress/ProgressCircle.vue.js +1 -1
- package/es/Select/Option.vue.js +3 -3
- package/es/TimePicker/TimePickerPanel.vue.js +9 -1
- package/es/TimePicker/index.css +1 -1
- package/es/Transfer/TransferPanel.vue.js +2 -2
- package/es/Typography/TypographyBase.vue.js +5 -5
- package/es/Upload/UploadFileList.vue2.js +1 -1
- package/es/Upload/UploadPictureCard.vue2.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +1 -28
- package/es/_shared/icons/IconCopy.vue2.js +28 -1
- package/es/_shared/icons/IconDelete.vue.js +1 -28
- package/es/_shared/icons/IconDelete.vue2.js +28 -1
- package/es/_shared/icons/IconEdit.vue.js +1 -28
- package/es/_shared/icons/IconEdit.vue2.js +28 -1
- package/es/_shared/icons/IconExclamation.vue.js +1 -39
- package/es/_shared/icons/IconExclamation.vue2.js +39 -1
- package/es/_shared/icons/IconSearch.vue.js +1 -28
- package/es/_shared/icons/IconSearch.vue2.js +28 -1
- package/es/_shared/utils/dom.d.ts +1 -1
- package/es/_shared/utils/dom.js +2 -2
- package/es/_shared/utils/index.d.ts +1 -1
- package/es/_shared/utils/time.js +1 -1
- package/es/style.css +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Select/Option.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/TimePicker/index.css +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Upload/UploadFileList.vue2.js +1 -1
- package/lib/Upload/UploadPictureCard.vue2.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/utils/dom.d.ts +1 -1
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/index.d.ts +1 -1
- package/lib/_shared/utils/time.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -14,7 +14,7 @@ import "../_shared/utils/time.js";
|
|
14
14
|
/* empty css */
|
15
15
|
/* empty css */
|
16
16
|
import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
|
17
|
-
import _sfc_main$2 from "../_shared/icons/IconExclamation.
|
17
|
+
import _sfc_main$2 from "../_shared/icons/IconExclamation.vue2.js";
|
18
18
|
import { TYPE_ICON_COLOR_MAP } from "../_shared/constants/index.js";
|
19
19
|
const _hoisted_1 = ["aria-valuenow"];
|
20
20
|
const _hoisted_2 = ["viewBox"];
|
package/es/Select/Option.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, ref, computed, withDirectives, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createBlock, renderSlot, withCtx, createElementVNode, createTextVNode, toDisplayString, vShow } from "vue";
|
2
|
-
import {
|
2
|
+
import { innerText } from "../_shared/utils/dom.js";
|
3
3
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
4
4
|
import "../node_modules/dayjs/dayjs.min.js";
|
5
5
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
@@ -51,10 +51,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
51
|
} = useSelectContext().inject();
|
52
52
|
const contentRef = ref();
|
53
53
|
const optionValue = computed(() => {
|
54
|
-
return `${props.value}` ? props.value :
|
54
|
+
return `${props.value}` ? props.value : innerText(contentRef);
|
55
55
|
});
|
56
56
|
const optionLabel = computed(() => {
|
57
|
-
return props.label ? props.label :
|
57
|
+
return props.label ? props.label : innerText(contentRef);
|
58
58
|
});
|
59
59
|
const checked = computed(() => {
|
60
60
|
if (!multiple.value) return false;
|
@@ -9,7 +9,7 @@ import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
|
9
9
|
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
10
|
import { isUndefined, isArray } from "../_shared/utils/is.js";
|
11
11
|
import { useI18n } from "../_shared/utils/locale.js";
|
12
|
-
import "../_shared/utils/time.js";
|
12
|
+
import { isValidTimeRange } from "../_shared/utils/time.js";
|
13
13
|
import useTimePickerContext from "./hooks/useContext.js";
|
14
14
|
import Button from "../Button/index.js";
|
15
15
|
import Scrollbar from "../Scrollbar/index.js";
|
@@ -106,6 +106,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
106
106
|
return;
|
107
107
|
}
|
108
108
|
if (curIndex.value || computedValue.value[curIndex.value + 1]) {
|
109
|
+
const isValid = !isValidTimeRange(
|
110
|
+
computedValue.value[0],
|
111
|
+
computedValue.value[1],
|
112
|
+
format.value
|
113
|
+
);
|
114
|
+
if (isValid) {
|
115
|
+
computedValue.value = computedValue.value.reverse();
|
116
|
+
}
|
109
117
|
return computedVisible.value = false;
|
110
118
|
}
|
111
119
|
curIndex.value++;
|
package/es/TimePicker/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-picker{position:relative;padding:4px 11px 4px 4px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:all .1s cubic-bezier(0, 0, 1, 1);line-height:1.5715;display:inline-flex;align-items:center}.yc-picker:not(.yc-picker-disabled):not(.yc-picker-focus):hover{background-color:var(--color-fill-3);border-color:transparent}.yc-picker .yc-picker-has-prefix,.yc-picker .yc-picker-input.yc-picker-suffix,.yc-picker .yc-picker-separator{flex-shrink:0}.yc-picker .yc-picker-prefix{margin-right:4px;font-size:14px;color:var(--color-text-2)}.yc-picker .yc-picker-input{flex:1;height:100%;display:flex;align-items:center}.yc-picker .yc-picker-input input{height:100%;width:100%;padding:0;padding-left:8px;background-color:transparent;border:none;outline:none;text-align:left;color:var(--color-text-2);transition:all .1s cubic-bezier(0, 0, 1, 1)}.yc-picker .yc-picker-input input::placeholder{color:var(--color-text-3)}.yc-picker .yc-picker-separator{min-width:10px;padding:0 8px;color:var(--color-text-3)}.yc-picker .yc-picker-suffix{margin-left:4px;display:flex;align-items:center}.yc-picker .yc-picker-suffix .yc-icon-button{display:none}.yc-picker .yc-picker-suffix .yc-picker-suffix-icon{color:var(--color-text-2);display:flex;justify-content:center;align-items:center}.yc-picker-has-prefix{padding-left:12px}.yc-picker-allow-clear:hover .yc-picker-suffix .yc-icon-button{display:flex}.yc-picker-allow-clear:hover .yc-picker-suffix .yc-picker-suffix-icon{display:none}.yc-picker-focus{background-color:var(--color-bg-1);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.yc-picker-range .yc-picker-input-active input{background:var(--color-fill-2)}.yc-picker-error{background-color:var(--color-danger-light-1);border-color:transparent}.yc-picker-error:not(.yc-picker-disabled):not(.yc-picker-focus):hover{background-color:var(--color-danger-light-2)}.yc-picker-error.yc-picker-focus{background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.yc-picker-disabled{cursor:not-allowed;color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.yc-picker-disabled .yc-picker-input input{cursor:not-allowed}.yc-picker-disabled .yc-picker-input input::placeholder{color:var(--color-text-4)}.yc-picker-disabled .yc-picker-suffix .yc-picker-suffix-icon{color:var(--color-text-4)}.yc-picker-size-mini{height:24px}.yc-picker-size-mini input{font-size:12px}.yc-picker-size-small{height:28px}.yc-picker-size-small input{font-size:14px}.yc-picker-size-medium{height:32px}.yc-picker-size-medium input{font-size:14px}.yc-picker-size-large{height:36px}.yc-picker-size-large input{font-size:14px}.yc-timepicker-container{overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px rgba(0,0,0,0.1)}.yc-timepicker-container .yc-timepicker{position:relative;display:flex;padding:0}.yc-timepicker-container .yc-timepicker .yc-timepicker-column{overflow:hidden;width:64px;height:224px}.yc-timepicker-container .yc-timepicker .yc-timepicker-column:not(:last-child){border-right:1px solid var(--color-neutral-3)}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell{padding:4px 0;color:var(--color-text-1);font-weight:500;cursor:pointer}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell .yc-timepicker-cell-inner{height:24px;padding-left:24px;font-size:14px;line-height:24px}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell-selected .yc-timepicker-cell-inner{font-weight:500;background-color:var(--color-fill-2)}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell-disabled{color:var(--color-text-4);cursor:not-allowed}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul::after{display:block;width:100%;height:192px;content:''}.yc-timepicker-container .yc-timepicker-footer-extra-wrapper{padding:8px;border-top:1px solid var(--color-neutral-3);color:var(--color-text-1);font-size:12px}.yc-timepicker-container .yc-timepicker-footer-btn-wrapper{padding:8px;border-top:1px solid var(--color-neutral-3);display:flex;justify-content:space-between}
|
1
|
+
.yc-picker{position:relative;padding:4px 11px 4px 4px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:all .1s cubic-bezier(0, 0, 1, 1);line-height:1.5715;display:inline-flex;align-items:center}.yc-picker:not(.yc-picker-disabled):not(.yc-picker-focus):hover{background-color:var(--color-fill-3);border-color:transparent}.yc-picker .yc-picker-has-prefix,.yc-picker .yc-picker-input.yc-picker-suffix,.yc-picker .yc-picker-separator{flex-shrink:0}.yc-picker .yc-picker-prefix{margin-right:4px;font-size:14px;color:var(--color-text-2)}.yc-picker .yc-picker-input{flex:1;height:100%;display:flex;align-items:center}.yc-picker .yc-picker-input input{height:100%;width:100%;padding:0;padding-left:8px;background-color:transparent;border:none;outline:none;text-align:left;color:var(--color-text-2);transition:all .1s cubic-bezier(0, 0, 1, 1)}.yc-picker .yc-picker-input input::placeholder{color:var(--color-text-3)}.yc-picker .yc-picker-separator{min-width:10px;padding:0 8px;color:var(--color-text-3)}.yc-picker .yc-picker-suffix{margin-left:4px;display:flex;align-items:center}.yc-picker .yc-picker-suffix .yc-icon-button{display:none}.yc-picker .yc-picker-suffix .yc-picker-suffix-icon{color:var(--color-text-2);font-size:14px;display:flex;justify-content:center;align-items:center}.yc-picker-has-prefix{padding-left:12px}.yc-picker-allow-clear:hover .yc-picker-suffix .yc-icon-button{display:flex}.yc-picker-allow-clear:hover .yc-picker-suffix .yc-picker-suffix-icon{display:none}.yc-picker-focus{background-color:var(--color-bg-1);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.yc-picker-range .yc-picker-input-active input{background:var(--color-fill-2)}.yc-picker-error{background-color:var(--color-danger-light-1);border-color:transparent}.yc-picker-error:not(.yc-picker-disabled):not(.yc-picker-focus):hover{background-color:var(--color-danger-light-2)}.yc-picker-error.yc-picker-focus{background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.yc-picker-disabled{cursor:not-allowed;color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.yc-picker-disabled .yc-picker-input input{cursor:not-allowed}.yc-picker-disabled .yc-picker-input input::placeholder{color:var(--color-text-4)}.yc-picker-disabled .yc-picker-suffix .yc-picker-suffix-icon{color:var(--color-text-4)}.yc-picker-size-mini{height:24px}.yc-picker-size-mini input{font-size:12px}.yc-picker-size-small{height:28px}.yc-picker-size-small input{font-size:14px}.yc-picker-size-medium{height:32px}.yc-picker-size-medium input{font-size:14px}.yc-picker-size-large{height:36px}.yc-picker-size-large input{font-size:14px}.yc-timepicker-container{overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px rgba(0,0,0,0.1)}.yc-timepicker-container .yc-timepicker{position:relative;display:flex;padding:0}.yc-timepicker-container .yc-timepicker .yc-timepicker-column{overflow:hidden;width:64px;height:224px}.yc-timepicker-container .yc-timepicker .yc-timepicker-column:not(:last-child){border-right:1px solid var(--color-neutral-3)}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell{padding:4px 0;color:var(--color-text-1);font-weight:500;cursor:pointer}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell .yc-timepicker-cell-inner{height:24px;padding-left:24px;font-size:14px;line-height:24px}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell-selected .yc-timepicker-cell-inner{font-weight:500;background-color:var(--color-fill-2)}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul .yc-timepicker-cell-disabled{color:var(--color-text-4);cursor:not-allowed}.yc-timepicker-container .yc-timepicker .yc-timepicker-column ul::after{display:block;width:100%;height:192px;content:''}.yc-timepicker-container .yc-timepicker-footer-extra-wrapper{padding:8px;border-top:1px solid var(--color-neutral-3);color:var(--color-text-1);font-size:12px}.yc-timepicker-container .yc-timepicker-footer-btn-wrapper{padding:8px;border-top:1px solid var(--color-neutral-3);display:flex;justify-content:space-between}
|
@@ -14,8 +14,8 @@ import "../_shared/utils/time.js";
|
|
14
14
|
/* empty css */
|
15
15
|
/* empty css */
|
16
16
|
import _sfc_main$4 from "../_shared/icons/IconClose.vue.js";
|
17
|
-
import _sfc_main$2 from "../_shared/icons/IconDelete.
|
18
|
-
import _sfc_main$3 from "../_shared/icons/IconSearch.
|
17
|
+
import _sfc_main$2 from "../_shared/icons/IconDelete.vue2.js";
|
18
|
+
import _sfc_main$3 from "../_shared/icons/IconSearch.vue2.js";
|
19
19
|
import useTransferContext from "./hooks/useContext.js";
|
20
20
|
import Checkbox from "../Checkbox/index.js";
|
21
21
|
import Scrollbar from "../Scrollbar/index.js";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, unref, withCtx, createElementBlock, createCommentVNode, isRef, renderSlot, createVNode, mergeProps, createElementVNode, createTextVNode, toDisplayString, h } from "vue";
|
2
|
-
import {
|
2
|
+
import { innerText, sleep } from "../_shared/utils/dom.js";
|
3
3
|
import { useClipboard } from "../node_modules/@vueuse/core/index.js";
|
4
4
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
5
5
|
import "../node_modules/dayjs/dayjs.min.js";
|
@@ -14,8 +14,8 @@ import "../_shared/utils/time.js";
|
|
14
14
|
/* empty css */
|
15
15
|
/* empty css */
|
16
16
|
/* empty css */
|
17
|
-
import _sfc_main$3 from "../_shared/icons/IconCopy.
|
18
|
-
import _sfc_main$1 from "../_shared/icons/IconEdit.
|
17
|
+
import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
|
18
|
+
import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
|
19
19
|
import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
|
20
20
|
import Input from "../Input/index.js";
|
21
21
|
import Tooltip from "../Tooltip/index.js";
|
@@ -109,7 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
109
109
|
const handleEdit = async () => {
|
110
110
|
var _a;
|
111
111
|
computedEditing.value = true;
|
112
|
-
computedText.value = computedText.value ? computedText.value :
|
112
|
+
computedText.value = computedText.value ? computedText.value : innerText(contentRef);
|
113
113
|
emits("edit-start");
|
114
114
|
await sleep(0);
|
115
115
|
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
@@ -120,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
120
120
|
};
|
121
121
|
const handleCopy = async () => {
|
122
122
|
if (!copyable.value || !isSupported.value || isCopied.value) return;
|
123
|
-
const value = copyText.value ||
|
123
|
+
const value = copyText.value || innerText(contentRef);
|
124
124
|
copy(value);
|
125
125
|
emits("copy", value);
|
126
126
|
isCopied.value = true;
|
@@ -14,7 +14,7 @@ import "../_shared/utils/locale.js";
|
|
14
14
|
import "../_shared/utils/time.js";
|
15
15
|
/* empty css */
|
16
16
|
/* empty css */
|
17
|
-
import _sfc_main$3 from "../_shared/icons/IconDelete.
|
17
|
+
import _sfc_main$3 from "../_shared/icons/IconDelete.vue2.js";
|
18
18
|
import _sfc_main$2 from "../_shared/icons/IconFile.vue2.js";
|
19
19
|
const _hoisted_1 = { class: "yc-upload-list-item-content" };
|
20
20
|
const _hoisted_2 = {
|
@@ -13,7 +13,7 @@ import "../_shared/utils/time.js";
|
|
13
13
|
/* empty css */
|
14
14
|
/* empty css */
|
15
15
|
/* empty css */
|
16
|
-
import _sfc_main$3 from "../_shared/icons/IconDelete.
|
16
|
+
import _sfc_main$3 from "../_shared/icons/IconDelete.vue2.js";
|
17
17
|
import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue2.js";
|
18
18
|
import _sfc_main$2 from "../_shared/icons/IconPlus.vue.js";
|
19
19
|
import "../Image/index.js";
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../utils/dom.js";
|
3
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconCopy",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
23
|
-
])]),
|
24
|
-
_: 1
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconCopy.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../utils/dom.js";
|
3
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconCopy",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../utils/dom.js";
|
3
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconDelete",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
23
|
-
])]),
|
24
|
-
_: 1
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconDelete.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../utils/dom.js";
|
3
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconDelete",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../utils/dom.js";
|
3
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconEdit",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
23
|
-
])]),
|
24
|
-
_: 1
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconEdit.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../utils/dom.js";
|
3
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconEdit",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -1,42 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../utils/dom.js";
|
3
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconExclamation",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
23
|
-
createElementVNode("path", {
|
24
|
-
fill: "currentColor",
|
25
|
-
stroke: "none",
|
26
|
-
d: "M23 9h2v21h-2z"
|
27
|
-
}, null, -1),
|
28
|
-
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
29
|
-
createElementVNode("path", {
|
30
|
-
fill: "currentColor",
|
31
|
-
stroke: "none",
|
32
|
-
d: "M23 37h2v2h-2z"
|
33
|
-
}, null, -1)
|
34
|
-
])]),
|
35
|
-
_: 1
|
36
|
-
}, 16);
|
37
|
-
};
|
38
|
-
}
|
39
|
-
});
|
1
|
+
import _sfc_main from "./IconExclamation.vue2.js";
|
40
2
|
export {
|
41
3
|
_sfc_main as default
|
42
4
|
};
|
@@ -1,4 +1,42 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../utils/dom.js";
|
3
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconExclamation",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
23
|
+
createElementVNode("path", {
|
24
|
+
fill: "currentColor",
|
25
|
+
stroke: "none",
|
26
|
+
d: "M23 9h2v21h-2z"
|
27
|
+
}, null, -1),
|
28
|
+
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
29
|
+
createElementVNode("path", {
|
30
|
+
fill: "currentColor",
|
31
|
+
stroke: "none",
|
32
|
+
d: "M23 37h2v2h-2z"
|
33
|
+
}, null, -1)
|
34
|
+
])]),
|
35
|
+
_: 1
|
36
|
+
}, 16);
|
37
|
+
};
|
38
|
+
}
|
39
|
+
});
|
2
40
|
export {
|
3
41
|
_sfc_main as default
|
4
42
|
};
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import "../utils/dom.js";
|
3
|
-
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
-
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
-
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
-
import "../utils/locale.js";
|
11
|
-
import "../utils/time.js";
|
12
|
-
/* empty css */
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
-
/* empty css */
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
-
__name: "IconSearch",
|
18
|
-
setup(__props) {
|
19
|
-
return (_ctx, _cache) => {
|
20
|
-
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
-
createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
23
|
-
])]),
|
24
|
-
_: 1
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconSearch.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import "../utils/dom.js";
|
3
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
+
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
+
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
+
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
+
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
|
+
import "../utils/locale.js";
|
11
|
+
import "../utils/time.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
import _sfc_main$1 from "../components/Icon/index.vue3.js";
|
15
|
+
/* empty css */
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "IconSearch",
|
18
|
+
setup(__props) {
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
21
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
22
|
+
createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
23
|
+
])]),
|
24
|
+
_: 1
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -3,7 +3,7 @@ import { BreakpointName, ResponsiveValue } from '../type';
|
|
3
3
|
export declare const isServerRendering: boolean;
|
4
4
|
export declare const querySelector: (selectors: string, container?: Document | HTMLElement) => HTMLElement | undefined;
|
5
5
|
export declare const getElement: (target: string | HTMLElement | undefined, container?: Document | HTMLElement) => HTMLElement | undefined;
|
6
|
-
export declare const
|
6
|
+
export declare const innerText: (dom: Ref<HTMLElement | undefined>) => string;
|
7
7
|
export declare const getBreakpointValue: (breakpoint: BreakpointName, value: string | number | ResponsiveValue, defaultValue?: number | string) => number | string | undefined;
|
8
8
|
export declare const mediaQueryHandler: (onBreakpoint: (breakpoint: BreakpointName, order: Record<string, number>, index: number) => void, queries?: Record<string, string>) => void;
|
9
9
|
export declare const findFirstScrollableParent: (element?: HTMLElement | null) => HTMLElement | undefined;
|
package/es/_shared/utils/dom.js
CHANGED
@@ -29,7 +29,7 @@ const getElement = (target, container) => {
|
|
29
29
|
}
|
30
30
|
return target;
|
31
31
|
};
|
32
|
-
const
|
32
|
+
const innerText = (dom) => {
|
33
33
|
var _a;
|
34
34
|
return ((_a = unrefElement(dom)) == null ? void 0 : _a.innerText) || "";
|
35
35
|
};
|
@@ -183,8 +183,8 @@ export {
|
|
183
183
|
debounce,
|
184
184
|
findFirstScrollableParent,
|
185
185
|
getBreakpointValue,
|
186
|
-
getDomText,
|
187
186
|
getElement,
|
187
|
+
innerText,
|
188
188
|
isHorizontallyScrollable,
|
189
189
|
isServerRendering,
|
190
190
|
isVerticallyScrollable,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { isServerRendering, querySelector, getElement,
|
1
|
+
export { isServerRendering, querySelector, getElement, innerText, getBreakpointValue, mediaQueryHandler, findFirstScrollableParent, sleep, throttleByRaf, debounce, throttle, valueToPx, isHorizontallyScrollable, isVerticallyScrollable, } from './dom';
|
2
2
|
export { unrefElement, createReusableTemplate, useEventListener, useResizeObserver, useDraggable, useElementBounding, useElementSize, useMediaQuery, useMutationObserver, useClipboard, onClickOutside, useTimeoutFn, onKeyStroke, useVirtualList, useScroll, useDropZone, useFileDialog, nanoid, BTween, dayjs, duration, toObject, isSameOrAfter, isSameOrBefore, } from './dependencies';
|
3
3
|
export { parseColor, GradientColorCalculator } from './color';
|
4
4
|
export type { UnitType, ColorInput } from './dependencies';
|
package/es/_shared/utils/time.js
CHANGED