eco-vue-js 0.15.2 → 0.15.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/components/Auth/utils/utils.js +1 -1
- package/dist/components/Button/WButtonSelection.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/Button/WButtonTab.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonTab.vue_vue_type_script_setup_true_lang.js +1 -5
- package/dist/components/Dropdown/utils/DropdownStyle.js +2 -2
- package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/Input/WInput.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/Input/components/ContentEditable.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/Input/models/utils.js +4 -3
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/Select/WSelect.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/Slider/WSliderRange.vue_vue_type_script_setup_true_lang.js +5 -3
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue_vue_type_script_setup_true_lang.js +10 -9
- package/dist/components/Tabs/components/TabItem.vue.d.ts +3 -4
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts +1 -0
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/components/Tabs/types.d.ts +1 -1
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Tooltip/models/tooltipMeta.js +7 -5
- package/dist/components/Uniform/use/useUniformModel.js +6 -5
- package/dist/utils/dateTime.js +3 -3
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/components/Auth/utils/utils.ts
|
|
2
2
|
var EXPIRATION_DATE_KEY = "exp";
|
|
3
3
|
var REFRESH_TIMESTAMP_KEY = "refresh-ts";
|
|
4
|
-
var REFRESH_BUFFER_TIMEOUT =
|
|
4
|
+
var REFRESH_BUFFER_TIMEOUT = 3e3;
|
|
5
5
|
var REFRESH_BUFFER_TICK = 1e3;
|
|
6
6
|
function getCookie(name) {
|
|
7
7
|
name = name + "=";
|
|
@@ -22,7 +22,8 @@ var WButtonSelection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
22
22
|
emits: ["clear:selection"],
|
|
23
23
|
setup(__props) {
|
|
24
24
|
const props = __props;
|
|
25
|
-
|
|
25
|
+
const baseZIndex = inject(wBaseZIndex, null);
|
|
26
|
+
provide(wBaseZIndex, baseZIndex ?? 20);
|
|
26
27
|
const isOpen = ref(false);
|
|
27
28
|
const disableMessageValue = computed(() => props.selectedCount === 0 ? props.disableMessage : void 0);
|
|
28
29
|
return (_ctx, _cache) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WButtonTab.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonTab.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WButtonTab.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonTab.vue"],"names":[],"mappings":"AAwIA;AA8KA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA2UF,QAAA,IAAI,QAAQ;;;;CAAW,EAAE,QAAQ;;;;CAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -114,11 +114,7 @@ var WButtonTab_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
114
114
|
}, {
|
|
115
115
|
default: withCtx(() => [__props.active || __props.indicator ? (openBlock(), createElementBlock("div", {
|
|
116
116
|
key: 0,
|
|
117
|
-
class: normalizeClass(["absolute inset-x-0 bottom-0 h-0.5 rounded-sm", {
|
|
118
|
-
"bg-current": __props.indicator,
|
|
119
|
-
"bg-primary dark:bg-primary-dark": !__props.indicator,
|
|
120
|
-
"sm-not:left---inner-margin": __props.side
|
|
121
|
-
}])
|
|
117
|
+
class: normalizeClass(["absolute inset-x-0 bg-current bottom-0 h-0.5 rounded-sm", { "sm-not:left---inner-margin": __props.side }])
|
|
122
118
|
}, null, 2)) : createCommentVNode("", true)]),
|
|
123
119
|
_: 1
|
|
124
120
|
}, 8, ["css"])
|
|
@@ -34,7 +34,7 @@ var VerticalCenter = markRaw({
|
|
|
34
34
|
y: (parentRect) => Math.round(parentRect.top + parentRect.height / 2),
|
|
35
35
|
isEdge: void 0
|
|
36
36
|
});
|
|
37
|
-
var TOP_EDGE = getIsClientSide() ? window.innerHeight *
|
|
37
|
+
var TOP_EDGE = getIsClientSide() ? window.innerHeight * .33999999999999997 : 0;
|
|
38
38
|
/**
|
|
39
39
|
* ↑
|
|
40
40
|
* [ ]
|
|
@@ -111,7 +111,7 @@ var Center = markRaw({
|
|
|
111
111
|
x: (parentRect) => Math.round(parentRect.left + parentRect.width / 2),
|
|
112
112
|
isEdge: void 0
|
|
113
113
|
});
|
|
114
|
-
var LEFT_EDGE = getIsClientSide() ? window.innerWidth *
|
|
114
|
+
var LEFT_EDGE = getIsClientSide() ? window.innerWidth * .33999999999999997 : 0;
|
|
115
115
|
/**
|
|
116
116
|
* [ ] ←
|
|
117
117
|
*/
|
|
@@ -8,7 +8,8 @@ var WInfiniteListScrollingElement_vue_vue_type_script_setup_true_lang_default =
|
|
|
8
8
|
setup(__props) {
|
|
9
9
|
const props = __props;
|
|
10
10
|
const elementRef = useTemplateRef("element");
|
|
11
|
-
|
|
11
|
+
const elementValue = computed(() => props.parent ? elementRef.value?.parentElement ?? null : elementRef.value);
|
|
12
|
+
provide(wScrollingElement, elementValue);
|
|
12
13
|
return (_ctx, _cache) => {
|
|
13
14
|
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")], 512);
|
|
14
15
|
};
|
|
@@ -154,7 +154,8 @@ var WInput_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
154
154
|
const historyPosition = ref(-1);
|
|
155
155
|
const hasNoValue = computed(() => (asyncState.isAsync.value ? !asyncState.value.value : !props.modelValue) && !props.textParts?.length && (!props.textSecure || !props.modelValue));
|
|
156
156
|
const readonlyLines = computed(() => {
|
|
157
|
-
|
|
157
|
+
const sourceParts = props.textParts ?? [(props.modelValue || props.emptyValue)?.toString() ?? ""];
|
|
158
|
+
return buildLines(sourceParts);
|
|
158
159
|
});
|
|
159
160
|
const getCaret = () => {
|
|
160
161
|
if (!inputRef.value) return {
|
package/dist/components/Input/components/ContentEditable.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -57,13 +57,14 @@ var ContentEditable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
57
57
|
inner.removeChild(existingNode);
|
|
58
58
|
existingNode = inner.childNodes[nodeIndex] ?? null;
|
|
59
59
|
}
|
|
60
|
-
if (typeof item === "string")
|
|
61
|
-
if (existingNode
|
|
60
|
+
if (typeof item === "string") {
|
|
61
|
+
if (existingNode instanceof Text) {
|
|
62
|
+
if (existingNode.textContent !== item) existingNode.textContent = item;
|
|
63
|
+
} else {
|
|
64
|
+
const textNode = document.createTextNode(item);
|
|
65
|
+
inner.insertBefore(textNode, existingNode);
|
|
66
|
+
}
|
|
62
67
|
} else {
|
|
63
|
-
const textNode = document.createTextNode(item);
|
|
64
|
-
inner.insertBefore(textNode, existingNode);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
68
|
let reused = null;
|
|
68
69
|
if (item.id) {
|
|
69
70
|
const fromMap = taggedById.get(item.id);
|
|
@@ -102,7 +103,8 @@ var ContentEditable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
102
103
|
const root = elementRef.value;
|
|
103
104
|
if (!root) return;
|
|
104
105
|
const offsets = focused.value ? getCaret() : null;
|
|
105
|
-
const
|
|
106
|
+
const sourceParts = props.textParts ?? [props.value ?? ""];
|
|
107
|
+
const lines = buildLines(sourceParts);
|
|
106
108
|
const taggedById = /* @__PURE__ */ new Map();
|
|
107
109
|
for (const outer of Array.from(root.children)) {
|
|
108
110
|
if (!(outer instanceof HTMLElement) || !outer.classList.contains("line")) continue;
|
|
@@ -347,7 +349,6 @@ var ContentEditable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
347
349
|
newCursorStart = lineStart;
|
|
348
350
|
newCursorEnd = lineStart + processedText.length;
|
|
349
351
|
}
|
|
350
|
-
break;
|
|
351
352
|
}
|
|
352
353
|
isSetCaretNext = true;
|
|
353
354
|
emit("update:model-value", newText, true);
|
|
@@ -93,9 +93,10 @@ var offsetWithinLine = (line, targetNode, targetOffset, isStart) => {
|
|
|
93
93
|
for (const child of Array.from(node.childNodes)) {
|
|
94
94
|
if (result !== null) return;
|
|
95
95
|
if (child === targetNode) {
|
|
96
|
-
if (child.nodeType === Node.TEXT_NODE)
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
if (child.nodeType === Node.TEXT_NODE) {
|
|
97
|
+
if (child.parentElement?.contentEditable === "false") result = cumulative + (isStart ? 0 : child.nodeValue?.length ?? 0);
|
|
98
|
+
else result = cumulative + targetOffset;
|
|
99
|
+
} else {
|
|
99
100
|
let sum = 0;
|
|
100
101
|
for (let i = 0; i < targetOffset && i < child.childNodes.length; i++) sum += child.childNodes[i]?.textContent?.length ?? 0;
|
|
101
102
|
result = cumulative + sum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue"],"names":[],"mappings":"AAgGA;AA+LA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAG/C,OAAO,EAAC,KAAK,KAAK,EAA4E,MAAM,KAAK,CAAA;AA+EzG,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;CACrB,CAAC;AAkVF,QAAA,MAAM,UAAU;;;2PAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -7,9 +7,10 @@ import IconArrow_default from "../../assets/icons/IconArrow.js";
|
|
|
7
7
|
import WExpansion_default from "../Expansion/WExpansion.vue.js";
|
|
8
8
|
import WNavItem_default from "./WNavItem.vue.js";
|
|
9
9
|
import WNavItemTransition_default from "./WNavItemTransition.vue.js";
|
|
10
|
-
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, onBeforeUnmount, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
10
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeProps, onBeforeUnmount, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
11
11
|
//#region src/components/Nav/WNavItemExpand.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var _hoisted_1 = {
|
|
12
|
+
var _hoisted_1 = { key: 1 };
|
|
13
|
+
var _hoisted_2 = { class: "w-nav-bar w-nav-bar-width overflow-hidden rounded-xl border border-solid border-gray-200 text-start font-normal shadow dark:border-gray-800" };
|
|
13
14
|
var WNavItemExpand_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
14
15
|
__name: "WNavItemExpand",
|
|
15
16
|
props: {
|
|
@@ -69,7 +70,10 @@ var WNavItemExpand_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
69
70
|
isVisible
|
|
70
71
|
});
|
|
71
72
|
return (_ctx, _cache) => {
|
|
72
|
-
return openBlock(),
|
|
73
|
+
return !slotsDefault.value.length ? (openBlock(), createBlock(WNavItem_default, normalizeProps(mergeProps({ key: 0 }, _ctx.$props)), {
|
|
74
|
+
icon: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(WDropdownMenu_default, {
|
|
73
77
|
"is-open": isDropdownOpen.value && !isActive.value,
|
|
74
78
|
"horizontal-align": unref(HorizontalAlign).RIGHT_OUTER,
|
|
75
79
|
"dropdown-class": "flex relative"
|
|
@@ -115,7 +119,7 @@ var WNavItemExpand_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
115
119
|
onMouseleave: hideDropdown,
|
|
116
120
|
onClick: hideDropdown
|
|
117
121
|
}, {
|
|
118
|
-
default: withCtx(() => [createElementVNode("div",
|
|
122
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(slotsDefault.value, (slot, index) => {
|
|
119
123
|
return openBlock(), createBlock(resolveDynamicComponent(slot), {
|
|
120
124
|
key: index,
|
|
121
125
|
even: "",
|
|
@@ -139,7 +143,7 @@ var WNavItemExpand_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
139
143
|
_: 1
|
|
140
144
|
})]),
|
|
141
145
|
_: 1
|
|
142
|
-
}, 8, ["is-shown"])]);
|
|
146
|
+
}, 8, ["is-shown"])]));
|
|
143
147
|
};
|
|
144
148
|
}
|
|
145
149
|
});
|
|
@@ -143,8 +143,10 @@ var WSelect_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
143
143
|
const createdOptions = ref([]);
|
|
144
144
|
const optionsPrepared = computed(() => !data.value || isFetching.value ? [] : props.filterOptions ? data.value.filter((option) => props.filterOptions?.(option) ?? true) : data.value);
|
|
145
145
|
const optionsWithCreated = computed(() => {
|
|
146
|
-
if (!props.createdData)
|
|
147
|
-
|
|
146
|
+
if (!props.createdData) {
|
|
147
|
+
if (!createdOptions.value.length) return optionsPrepared.value;
|
|
148
|
+
else return [...optionsPrepared.value, ...createdOptions.value].filter((option, index, array) => array.findIndex((item) => props.valueGetter(item) === props.valueGetter(option)) === index);
|
|
149
|
+
}
|
|
148
150
|
return [
|
|
149
151
|
...optionsPrepared.value,
|
|
150
152
|
...props.createdData ?? [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AA0CA;AA2DA,OAAO,KAAK,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAA;AAItE,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EACnG,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;
|
|
1
|
+
{"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AA0CA;AA2DA,OAAO,KAAK,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAA;AAItE,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EACnG,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAoJO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;;KAAmC,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;gBA5ID,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,SAAS,CAAC;YAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;SAAC,KAAK,IAAI;;cAL3E,UAAU,UAAU,IAAI,GAAG,SAAS,KAAG,IAAI;EAqJ7C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
package/dist/components/Select/components/SelectOptionPrefix.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -32,7 +32,7 @@ var SelectOptionPrefix_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
32
32
|
key: 0,
|
|
33
33
|
loading: __props.loading,
|
|
34
34
|
disabled: __props.disabled,
|
|
35
|
-
class: "w-option-button
|
|
35
|
+
class: "w-option-button",
|
|
36
36
|
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop", "prevent"])),
|
|
37
37
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("unselect", __props.option), ["stop", "prevent"]))
|
|
38
38
|
}, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)]),
|
|
@@ -48,7 +48,7 @@ var SelectOptionPrefix_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
48
48
|
key: 0,
|
|
49
49
|
loading: __props.loading,
|
|
50
50
|
disabled: __props.disabled,
|
|
51
|
-
class: "
|
|
51
|
+
class: "ml-1 mr-2",
|
|
52
52
|
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop", "prevent"])),
|
|
53
53
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => _ctx.$emit("unselect", __props.option), ["stop", "prevent"]))
|
|
54
54
|
}, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)]));
|
|
@@ -69,9 +69,11 @@ var WSliderRange_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
const value = props.min + rangeToRect.value * start;
|
|
72
|
-
if (isCursorFrom.value === null)
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
if (isCursorFrom.value === null) {
|
|
73
|
+
if (value <= props.modelValue.from) isCursorFrom.value = true;
|
|
74
|
+
else if (value >= props.modelValue.to) isCursorFrom.value = false;
|
|
75
|
+
else isCursorFrom.value = value - props.modelValue.from <= props.modelValue.to - value;
|
|
76
|
+
}
|
|
75
77
|
cursor.value = Math.round(value / props.step) * props.step;
|
|
76
78
|
};
|
|
77
79
|
const startMove = (event) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAqIA;AAicA,OAAO,KAAK,EAAgB,SAAS,EAAC,MAAM,SAAS,CAAA;AAErD,OAAO,EAA0D,KAAK,KAAK,EAAkH,MAAM,KAAK,CAAA;AAgCxM,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,KAAK,EAAE,CAAA;CACvB,CAAC;AA+mBF,QAAA,MAAM,UAAU;2BAlhBc,MAAM;yBAIR,MAAM;gCAiCG,OAAO,CAAC,IAAI,CAAC;oBAY7B,IAAI;iBAIL,MAAM,UAAU,OAAO;;;;;;;;;;;;;;;;;;;kFAiezC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -32,7 +32,7 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
32
32
|
wrap: { type: Boolean },
|
|
33
33
|
statusIcon: { type: Boolean },
|
|
34
34
|
flat: { type: Boolean },
|
|
35
|
-
|
|
35
|
+
indicator: { type: Boolean }
|
|
36
36
|
},
|
|
37
37
|
emits: [
|
|
38
38
|
"update:current",
|
|
@@ -99,8 +99,8 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
99
99
|
scrollToTabContent();
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
102
|
+
const targetIndex = defaultSlotsKeys.value.indexOf(key);
|
|
103
|
+
if (targetIndex > currentIndex.value && defaultSlots.value.slice(Math.max(currentIndex.value, 0), targetIndex).some((item) => getPropValue(item.props, "requireSave")) && stepperController && (stepperController.hasChanges() || stepperController.fullPayload())) {
|
|
104
104
|
if (!await stepperController.submit()) return;
|
|
105
105
|
}
|
|
106
106
|
updateCurrent(key);
|
|
@@ -221,7 +221,8 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
221
221
|
for (const name in tabItemRefByName.value) if (!active.has(name)) delete tabItemRefByName.value[name];
|
|
222
222
|
}, { flush: "post" });
|
|
223
223
|
if (props.stepper) {
|
|
224
|
-
|
|
224
|
+
const progress = computed(() => 100 * (currentIndex.value + 1) / defaultSlotsKeys.value.length);
|
|
225
|
+
watch(progress, (value) => {
|
|
225
226
|
emit("update:progress", value);
|
|
226
227
|
}, { immediate: true });
|
|
227
228
|
watch(first, (value) => {
|
|
@@ -233,8 +234,8 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
233
234
|
}
|
|
234
235
|
if (!props.noSwitchOnInvalid) {
|
|
235
236
|
const switchTabDebounced = debounce(switchTab, 50);
|
|
236
|
-
watch(
|
|
237
|
-
if (value && value
|
|
237
|
+
watch(() => defaultSlots.value.filter((slot) => getPropValue(slot.props, "hasError") || tabItemRefByName.value[slot.props.name]?.hasError).map((item) => item.props?.name), (value) => {
|
|
238
|
+
if (value.length && !value.includes(current.value)) switchTabDebounced(value[0]);
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
241
|
onMounted(() => {
|
|
@@ -254,7 +255,7 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
254
255
|
return (_ctx, _cache) => {
|
|
255
256
|
return openBlock(), createElementBlock("div", {
|
|
256
257
|
ref: "container",
|
|
257
|
-
class: normalizeClass({ "sm-not:grid-cols-[repeat(2,100vw)] sm-not:snap-x sm-not:snap-mandatory sm-not:snap-always sm-not:overflow-x-auto sm-not:overscroll-x-contain grid
|
|
258
|
+
class: normalizeClass([{ "sm-not:grid-cols-[repeat(2,100vw)] sm-not:snap-x sm-not:snap-mandatory sm-not:snap-always sm-not:overflow-x-auto sm-not:overscroll-x-contain grid-cols-[minmax(auto,var(--w-tabs-side-width,auto))_1fr] items-start gap-4": __props.side && !__props.flat }, "grid"])
|
|
258
259
|
}, [!__props.noHeader && !__props.flat ? (openBlock(), createElementBlock("div", {
|
|
259
260
|
key: 0,
|
|
260
261
|
ref: "buttonContainer",
|
|
@@ -285,6 +286,7 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
285
286
|
side: __props.side,
|
|
286
287
|
"status-icon": __props.statusIcon,
|
|
287
288
|
"enable-overflow": __props.side,
|
|
289
|
+
indicator: __props.indicator,
|
|
288
290
|
"onUpdate:scrollPosition": updateScrollPosition,
|
|
289
291
|
onClick: ($event) => unref(switchTab)(slot.props?.name)
|
|
290
292
|
}, createSlots({ _: 2 }, [
|
|
@@ -324,6 +326,7 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
324
326
|
"side",
|
|
325
327
|
"status-icon",
|
|
326
328
|
"enable-overflow",
|
|
329
|
+
"indicator",
|
|
327
330
|
"onClick"
|
|
328
331
|
])) : (openBlock(), createBlock(resolveDynamicComponent(slot), { key: 1 }))], 64);
|
|
329
332
|
}), 128))], 2)) : createCommentVNode("", true), defaultSlots.value.some((slot) => slot.children?.default) ? (openBlock(), createElementBlock("div", {
|
|
@@ -352,7 +355,6 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
352
355
|
title: slot.props.title,
|
|
353
356
|
active: slot.props.name === current.value,
|
|
354
357
|
removable: slot.props.removable ?? false,
|
|
355
|
-
"enable-status": (__props.statusIcon || __props.showHasValue || __props.enableStatus) ?? false,
|
|
356
358
|
flat: __props.flat ?? false,
|
|
357
359
|
"onUpdate:height": _cache[0] || (_cache[0] = ($event) => !__props.disableMinHeight && !__props.flat && updateHeight($event))
|
|
358
360
|
}, {
|
|
@@ -363,7 +365,6 @@ var WTabs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
363
365
|
"title",
|
|
364
366
|
"active",
|
|
365
367
|
"removable",
|
|
366
|
-
"enable-status",
|
|
367
368
|
"flat"
|
|
368
369
|
]);
|
|
369
370
|
}), 128))]),
|
|
@@ -3,7 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
title: string | undefined;
|
|
4
4
|
active: boolean;
|
|
5
5
|
removable: boolean;
|
|
6
|
-
enableStatus: boolean;
|
|
7
6
|
flat: boolean;
|
|
8
7
|
};
|
|
9
8
|
declare var __VLS_1: {};
|
|
@@ -13,9 +12,9 @@ type __VLS_Slots = {} & {
|
|
|
13
12
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
14
13
|
emitHeight: () => void;
|
|
15
14
|
name: import('vue').Ref<string, string>;
|
|
16
|
-
hasChanges: import('vue').ComputedRef<boolean
|
|
17
|
-
hasValue: import('vue').ComputedRef<boolean
|
|
18
|
-
hasError: import('vue').ComputedRef<boolean
|
|
15
|
+
hasChanges: import('vue').ComputedRef<boolean>;
|
|
16
|
+
hasValue: import('vue').ComputedRef<boolean>;
|
|
17
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
19
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
20
19
|
"update:height": (value: number) => any;
|
|
21
20
|
"update:active": () => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabItem.vue"],"names":[],"mappings":"AAiBA;
|
|
1
|
+
{"version":3,"file":"TabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabItem.vue"],"names":[],"mappings":"AAiBA;AAiGA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC;AAiGF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;sBA1FO,IAAI;;;;;;;;;;;kFA8FzB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -13,14 +13,13 @@ var TabItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
13
13
|
title: {},
|
|
14
14
|
active: { type: Boolean },
|
|
15
15
|
removable: { type: Boolean },
|
|
16
|
-
enableStatus: { type: Boolean },
|
|
17
16
|
flat: { type: Boolean }
|
|
18
17
|
},
|
|
19
18
|
emits: ["update:height", "update:active"],
|
|
20
19
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
20
|
const props = __props;
|
|
22
21
|
const emit = __emit;
|
|
23
|
-
const { hasChanges, hasValue, hasError } =
|
|
22
|
+
const { hasChanges, hasValue, hasError } = useUniformState();
|
|
24
23
|
const { callListeners } = useTabItemActiveListener();
|
|
25
24
|
const elementRef = useTemplateRef("element");
|
|
26
25
|
const measuredHeight = ref(0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabTitleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabTitleButton.vue"],"names":[],"mappings":"AAyCA;
|
|
1
|
+
{"version":3,"file":"TabTitleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabTitleButton.vue"],"names":[],"mappings":"AAyCA;AAyGA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,YAAY,GAAG,SAAS,CAAA;IAC9B,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAiIF,QAAA,IAAI,QAAQ;;;;CAAU,EAAE,QAAQ;;;;CAAY,CAAE;AAC9C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO9C,QAAA,MAAM,UAAU;;;;;cAtI8B,MAAM;;aAAU,MAAM;;;;;cAAtB,MAAM;;aAAU,MAAM;;kFA0IlE,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/components/Tabs/components/TabTitleButton.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -18,7 +18,8 @@ var TabTitleButton_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
18
18
|
showHasValue: { type: Boolean },
|
|
19
19
|
side: { type: Boolean },
|
|
20
20
|
statusIcon: { type: Boolean },
|
|
21
|
-
enableOverflow: { type: Boolean }
|
|
21
|
+
enableOverflow: { type: Boolean },
|
|
22
|
+
indicator: { type: Boolean }
|
|
22
23
|
},
|
|
23
24
|
emits: ["click", "update:scroll-position"],
|
|
24
25
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -54,7 +55,7 @@ var TabTitleButton_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
54
55
|
"has-changes": __props.hasChanges,
|
|
55
56
|
"has-error": __props.hasError,
|
|
56
57
|
"has-value": __props.hasValue,
|
|
57
|
-
indicator: __props.
|
|
58
|
+
indicator: __props.indicator,
|
|
58
59
|
side: __props.side,
|
|
59
60
|
title: __props.stepper ? `${__props.index + 1}. ${__props.title}` : __props.title,
|
|
60
61
|
icon: __props.icon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,KAAK,EAAE,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,KAAK,EAAE,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IACnC,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA"}
|
|
@@ -14,11 +14,13 @@ var useTooltipMeta = () => {
|
|
|
14
14
|
tooltipMeta.value = null;
|
|
15
15
|
timeout = void 0;
|
|
16
16
|
}, 100);
|
|
17
|
-
else if (tooltipMeta.value !== meta)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
else if (tooltipMeta.value !== meta) {
|
|
18
|
+
if (tooltipMeta.value?.id === meta.id) tooltipMeta.value = markRaw(meta);
|
|
19
|
+
else timeout = setTimeout(() => {
|
|
20
|
+
tooltipMeta.value = markRaw(meta);
|
|
21
|
+
timeout = void 0;
|
|
22
|
+
}, 25);
|
|
23
|
+
}
|
|
22
24
|
};
|
|
23
25
|
const close = () => {
|
|
24
26
|
clearTimeoutOnClose();
|
|
@@ -39,11 +39,12 @@ var useUniformModel = (parentModel, parentModelInit, field, useQueryFn, queryPar
|
|
|
39
39
|
});
|
|
40
40
|
const initModel = (value) => {
|
|
41
41
|
if (query && value) query.setData(value);
|
|
42
|
-
if (data && modelValueInitRef)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
if (data && modelValueInitRef) {
|
|
43
|
+
if (value) {
|
|
44
|
+
data.value = (initFn ?? copyItem)(value);
|
|
45
|
+
modelValueInitRef.value = (initFn ?? copyItem)(value);
|
|
46
|
+
} else modelValueInitRef.value = copyItem(data.value);
|
|
47
|
+
} else emitInitModel();
|
|
47
48
|
};
|
|
48
49
|
const emitValue = (value) => {
|
|
49
50
|
validateOnUpdate?.(value);
|
package/dist/utils/dateTime.js
CHANGED
|
@@ -105,15 +105,15 @@ function getDurationStringFull(seconds, minutes, hours, days, months, years) {
|
|
|
105
105
|
return parts.join(" ");
|
|
106
106
|
}
|
|
107
107
|
var minute = 60;
|
|
108
|
-
var hour =
|
|
108
|
+
var hour = 3600;
|
|
109
109
|
var day = 24 * hour;
|
|
110
110
|
var month = 30 * day;
|
|
111
111
|
var year = 365 * day;
|
|
112
112
|
function getDurationRound(seconds) {
|
|
113
113
|
if (seconds < 0) return 0;
|
|
114
114
|
if (seconds <= 60) return Math.ceil(seconds / 10) * 10;
|
|
115
|
-
if (seconds <=
|
|
116
|
-
if (seconds <=
|
|
115
|
+
if (seconds <= 600) return Math.ceil(seconds / minute) * minute;
|
|
116
|
+
if (seconds <= 1800) return Math.ceil(seconds / 600) * minute * 10;
|
|
117
117
|
if (seconds <= 12 * hour) return Math.ceil(seconds / hour) * hour;
|
|
118
118
|
if (seconds <= 10 * day) return Math.ceil(seconds / day) * day;
|
|
119
119
|
if (seconds <= 30 * day) return Math.ceil(seconds / (day * 10)) * day * 10;
|
package/package.json
CHANGED
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.15.
|
|
7
|
+
"version": "0.15.4",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
10
|
-
"@tanstack/eslint-plugin-query": "5.101.
|
|
10
|
+
"@tanstack/eslint-plugin-query": "5.101.4",
|
|
11
11
|
"@vue/eslint-config-typescript": "14.9.0",
|
|
12
12
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
13
13
|
"eslint-plugin-import-x": "4.17.1",
|
|
14
|
-
"eslint-plugin-jsonc": "3.
|
|
15
|
-
"eslint-plugin-svgo": "0.
|
|
16
|
-
"eslint-plugin-tailwindcss": "4.
|
|
14
|
+
"eslint-plugin-jsonc": "3.4.1",
|
|
15
|
+
"eslint-plugin-svgo": "0.13.0",
|
|
16
|
+
"eslint-plugin-tailwindcss": "4.3.0",
|
|
17
17
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
18
|
-
"eslint-plugin-vue": "10.
|
|
18
|
+
"eslint-plugin-vue": "10.10.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@tanstack/vue-query": ">=5.92.9",
|