eco-vue-js 0.11.15 → 0.11.17
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/Button/WButtonSelection.vue.js +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.js +3 -1
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +1 -3
- package/dist/components/List/WList.vue.js +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +8 -4
- package/dist/components/Modal/types.d.ts +4 -1
- package/dist/components/Modal/types.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +34 -18
- package/dist/components/Shine/WShine.vue.js +2 -2
- package/package.json +1 -1
- package/tailwind-base/plugins/default.ts +7 -0
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
]),
|
48
48
|
content: withCtx(() => [
|
49
49
|
createVNode(_sfc_main$2, {
|
50
|
-
class: "bg-default dark:bg-default-dark dropdown my-2 grid grid-cols-1 overflow-hidden rounded-xl shadow-md dark:outline dark:outline-1 dark:outline-gray-800",
|
50
|
+
class: "bg-default dark:bg-default-dark dropdown w-shine-hidden my-2 grid grid-cols-1 overflow-hidden rounded-xl shadow-md dark:outline dark:outline-1 dark:outline-gray-800",
|
51
51
|
onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = false)
|
52
52
|
}, {
|
53
53
|
default: withCtx(() => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"AAkDA;AA2EA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,YAAY,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAmHF,wBAQG"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, toDisplayString, withCtx } from 'vue';
|
2
|
+
import _sfc_main$2 from '../Shine/WShine.vue.js';
|
2
3
|
import WSpinner from '../Spinner/WSpinner.vue.js';
|
3
4
|
import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
|
4
5
|
|
@@ -49,7 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
50
|
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.disableMessage), 1)
|
50
51
|
]),
|
51
52
|
_: 1
|
52
|
-
})) : createCommentVNode("", true)
|
53
|
+
})) : createCommentVNode("", true),
|
54
|
+
!_ctx.disabled && !_ctx.disableMessage && !_ctx.loading ? (openBlock(), createBlock(_sfc_main$2, { key: 2 })) : createCommentVNode("", true)
|
53
55
|
], 10, _hoisted_1);
|
54
56
|
};
|
55
57
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AAkPA;AAmiBA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AAatD,OAAO,EAAC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,UAAU,GAAG,IAAI;YACxC,cAAc,SAAS,KAAK,GAAG,IAAI;YACnC,OAAO,GAAG,IAAI;;EAgwBhB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA7yBzE,wBA6yB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -474,11 +474,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
474
474
|
]),
|
475
475
|
key: "4"
|
476
476
|
} : void 0,
|
477
|
-
_ctx.$slots.bottom
|
477
|
+
_ctx.$slots.bottom ? {
|
478
478
|
name: "bottom",
|
479
479
|
fn: withCtx(() => [
|
480
|
-
createElementVNode("pre", null, toDisplayString(historyPosition.value), 1),
|
481
|
-
createElementVNode("pre", null, toDisplayString(history.value), 1),
|
482
480
|
renderSlot(_ctx.$slots, "bottom")
|
483
481
|
]),
|
484
482
|
key: "5"
|
@@ -146,7 +146,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
146
146
|
"[--w-list-right:calc(var(--w-list-padding,1rem)*2+1.25em)]": _ctx.menu,
|
147
147
|
"[--w-list-right:--w-list-header-rounded,1rem]": !_ctx.menu,
|
148
148
|
"[--w-list-left:calc(var(--w-list-padding,1rem)*2+1.25em+1px)]": allowSelect.value,
|
149
|
-
"[--w-list-left:--w-list-header-rounded,1rem
|
149
|
+
"[--w-list-left:--w-list-header-rounded,1rem]": !allowSelect.value
|
150
150
|
}),
|
151
151
|
style: normalizeStyle([stylesWidth.value, stylesFixed.value])
|
152
152
|
}, [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConfirmModal.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/modals/Confirm/ConfirmModal.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ConfirmModal.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/modals/Confirm/ConfirmModal.vue"],"names":[],"mappings":"AAgFA;AA4JA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAA;AAOlD,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;;;AAgRjD,wBASG"}
|
@@ -16,7 +16,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
cancelText: { default: "Cancel" },
|
17
17
|
onAccept: {},
|
18
18
|
onIntermediate: {},
|
19
|
-
onCancel: {}
|
19
|
+
onCancel: {},
|
20
|
+
acceptTo: {},
|
21
|
+
intermediateTo: {}
|
20
22
|
},
|
21
23
|
emits: ["close:modal"],
|
22
24
|
setup(__props, { emit: __emit }) {
|
@@ -40,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
42
|
};
|
41
43
|
const accept = () => {
|
42
44
|
if (loadingIntermediate.value || loadingAccept.value) return;
|
43
|
-
const promise = props.onAccept();
|
45
|
+
const promise = props.onAccept?.();
|
44
46
|
if (promise) {
|
45
47
|
loadingAccept.value = true;
|
46
48
|
promise.then(() => {
|
@@ -79,6 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
79
81
|
}, 8, ["semantic-type", "disabled"]),
|
80
82
|
_ctx.intermediateText ? (openBlock(), createBlock(_sfc_main$2, {
|
81
83
|
key: 0,
|
84
|
+
to: _ctx.intermediateTo,
|
82
85
|
"semantic-type": _ctx.intermediateSemanticType,
|
83
86
|
loading: loadingIntermediate.value,
|
84
87
|
disabled: loadingAccept.value,
|
@@ -91,8 +94,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
91
94
|
], 64)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.intermediateText), { key: 1 }))
|
92
95
|
]),
|
93
96
|
_: 1
|
94
|
-
}, 8, ["semantic-type", "loading", "disabled"])) : createCommentVNode("", true),
|
97
|
+
}, 8, ["to", "semantic-type", "loading", "disabled"])) : createCommentVNode("", true),
|
95
98
|
createVNode(_sfc_main$2, {
|
99
|
+
to: _ctx.acceptTo,
|
96
100
|
"semantic-type": _ctx.acceptSemanticType,
|
97
101
|
loading: loadingAccept.value,
|
98
102
|
disabled: loadingIntermediate.value,
|
@@ -105,7 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
105
109
|
], 64)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.acceptText), { key: 1 }))
|
106
110
|
]),
|
107
111
|
_: 1
|
108
|
-
}, 8, ["semantic-type", "loading", "disabled"])
|
112
|
+
}, 8, ["to", "semantic-type", "loading", "disabled"])
|
109
113
|
]),
|
110
114
|
default: withCtx(() => [
|
111
115
|
createElementVNode("div", _hoisted_1, [
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { LinkProps } from '../../types/types';
|
1
2
|
import { SemanticType } from '../../utils/SemanticType';
|
2
3
|
import { Component, VNode } from 'vue';
|
3
4
|
export interface ConfirmModalProps {
|
@@ -8,8 +9,10 @@ export interface ConfirmModalProps {
|
|
8
9
|
intermediateText?: string | VNode | Component;
|
9
10
|
intermediateSemanticType?: SemanticType;
|
10
11
|
cancelText?: string | VNode | Component;
|
11
|
-
onAccept
|
12
|
+
onAccept?: () => void | Promise<void>;
|
12
13
|
onIntermediate?: () => void | Promise<void>;
|
13
14
|
onCancel?: () => void;
|
15
|
+
acceptTo?: LinkProps['to'];
|
16
|
+
intermediateTo?: LinkProps['to'];
|
14
17
|
}
|
15
18
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAC,SAAS,EAAE,KAAK,EAAC,MAAM,KAAK,CAAA;AAEz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AI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;CACjC"}
|
@@ -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":"AAmFA;AA8KA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,OAAO,EAAC,KAAK,KAAK,EAAY,QAAQ,EAAwD,MAAM,KAAK,CAAA;AA2FzG,iBAAS,cAAc;WA2MT,OAAO,IAA6B;;kBAxNtC,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;kBADV,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2QutP,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;EA/Cl2P;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBwtP,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;kBAfj2P,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { defineComponent, useSlots, computed, useTemplateRef, ref, watch, onBeforeUnmount, createElementBlock, openBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, mergeProps, normalizeClass, renderSlot, nextTick } from 'vue';
|
2
2
|
import _sfc_main$1 from '../DropdownMenu/WDropdownMenu.vue.js';
|
3
|
-
import _sfc_main$
|
3
|
+
import _sfc_main$4 from '../Expansion/WExpansion.vue.js';
|
4
4
|
import IconArrow from '../../assets/icons/IconArrow.svg.js';
|
5
5
|
import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
6
6
|
import { useIsMobile } from '../../utils/mobile.js';
|
7
7
|
import { unwrapSlots } from '../../utils/utils.js';
|
8
|
-
import _sfc_main$
|
8
|
+
import _sfc_main$3 from './WNavItem.vue.js';
|
9
9
|
import WNavItemTransition from './WNavItemTransition.vue.js';
|
10
|
+
import _sfc_main$2 from '../ClickOutside/WClickOutside.vue.js';
|
10
11
|
|
11
12
|
const _hoisted_1 = { class: "bg-default dark:bg-default-dark w-nav-bar-width overflow-hidden rounded-xl border border-solid border-gray-200 text-start font-normal shadow dark:border-gray-800" };
|
12
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -36,11 +37,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
37
|
await nextTick();
|
37
38
|
hasActive.value = innerRef.value?.some((item) => item.isActive) ?? false;
|
38
39
|
};
|
40
|
+
let timeout = null;
|
39
41
|
const showDropdown = () => {
|
42
|
+
if (timeout) {
|
43
|
+
clearTimeout(timeout);
|
44
|
+
timeout = null;
|
45
|
+
}
|
40
46
|
isDropdownOpen.value = true;
|
41
47
|
};
|
42
48
|
const hideDropdown = () => {
|
43
|
-
|
49
|
+
if (timeout) {
|
50
|
+
clearTimeout(timeout);
|
51
|
+
timeout = null;
|
52
|
+
}
|
53
|
+
timeout = setTimeout(() => {
|
54
|
+
isDropdownOpen.value = false;
|
55
|
+
}, 20);
|
44
56
|
};
|
45
57
|
watch(hasInnerActive, updateHasActive, { immediate: true });
|
46
58
|
watch(isActive, updateHasActive, { immediate: true });
|
@@ -61,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
61
73
|
"horizontal-align": unref(HorizontalAlign).RIGHT_OUTER
|
62
74
|
}, {
|
63
75
|
toggle: withCtx(() => [
|
64
|
-
createVNode(_sfc_main$
|
76
|
+
createVNode(_sfc_main$3, mergeProps(unref(isMobile) || hasActive.value || _ctx.even ? void 0 : {
|
65
77
|
onmouseenter: showDropdown,
|
66
78
|
onmouseleave: hideDropdown
|
67
79
|
}, {
|
@@ -93,25 +105,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
93
105
|
}, 16, ["to", "title", "icon", "skeleton", "count", "counter", "has-active", "indent", "even", "expand", "query-fields", "hovered"])
|
94
106
|
]),
|
95
107
|
content: withCtx(() => [
|
96
|
-
|
108
|
+
createVNode(_sfc_main$2, {
|
97
109
|
class: "px-1",
|
98
110
|
onMouseenter: showDropdown,
|
99
|
-
onMouseleave: hideDropdown
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
+
onMouseleave: hideDropdown,
|
112
|
+
onClick: hideDropdown
|
113
|
+
}, {
|
114
|
+
default: withCtx(() => [
|
115
|
+
createElementVNode("div", _hoisted_1, [
|
116
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(slotsDefault.value, (slot, index) => {
|
117
|
+
return openBlock(), createBlock(resolveDynamicComponent(slot), {
|
118
|
+
key: index,
|
119
|
+
even: "",
|
120
|
+
"onUpdate:isActive": _cache[0] || (_cache[0] = ($event) => $event[1] && hideDropdown())
|
121
|
+
}, null, 32);
|
122
|
+
}), 128))
|
123
|
+
])
|
124
|
+
]),
|
125
|
+
_: 1
|
126
|
+
})
|
111
127
|
]),
|
112
128
|
_: 3
|
113
129
|
}, 8, ["is-open", "horizontal-align"]),
|
114
|
-
createVNode(_sfc_main$
|
130
|
+
createVNode(_sfc_main$4, {
|
115
131
|
"is-shown": isActive.value || _ctx.even
|
116
132
|
}, {
|
117
133
|
default: withCtx(() => [
|
@@ -3,7 +3,7 @@ import { useShine } from './use/useShine.js';
|
|
3
3
|
|
4
4
|
const _hoisted_1 = {
|
5
5
|
ref: "element",
|
6
|
-
class: "rounded-inherit sm-not:hidden pointer-events-none absolute inset-0 overflow-hidden print:hidden"
|
6
|
+
class: "rounded-inherit sm-not:hidden w-shine pointer-events-none absolute inset-0 overflow-hidden print:hidden"
|
7
7
|
};
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
9
|
__name: "WShine",
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
return (_ctx, _cache) => {
|
14
14
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
15
15
|
createElementVNode("div", {
|
16
|
-
class: "bg-
|
16
|
+
class: "bg-primary-light/80 dark:bg-primary-light/50 pointer-events-none absolute h-full w-screen bg-clip-border",
|
17
17
|
style: normalizeStyle({
|
18
18
|
"mask": `url(#${unref(id)})`,
|
19
19
|
"-webkit-mask": `url(#${unref(id)})`,
|
package/package.json
CHANGED
@@ -203,6 +203,13 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
|
|
203
203
|
},
|
204
204
|
})
|
205
205
|
|
206
|
+
addBase({
|
207
|
+
'.w-shine-hidden': {
|
208
|
+
'.w-shine': {display: 'none'},
|
209
|
+
},
|
210
|
+
'.w-shine': {},
|
211
|
+
})
|
212
|
+
|
206
213
|
matchUtilities(
|
207
214
|
{
|
208
215
|
'w-scroll-bar-color': value => {
|