eco-vue-js 0.3.77 → 0.3.79
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Expansion/WExpansion.vue.js +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +19 -16
- package/dist/components/Form/WForm.vue.d.ts +4 -4
- package/dist/components/Form/WForm.vue.js +6 -6
- package/dist/components/Form/WFormValidator.vue.d.ts +2 -0
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +5 -2
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts +1 -0
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormErrorMessageMap.js +2 -1
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +7 -14
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +4 -1
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.js +3 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { defineComponent, openBlock, createBlock, Transition, withCtx, KeepAlive
|
|
2
2
|
|
3
3
|
const _hoisted_1 = {
|
4
4
|
key: 0,
|
5
|
-
class: "duration-[var(--expansion-duration,
|
5
|
+
class: "duration-[var(--expansion-duration,200ms)]"
|
6
6
|
};
|
7
7
|
const _hoisted_2 = { class: "[overflow:inherit]" };
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WExpansionItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Expansion/WExpansionItem.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WExpansionItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Expansion/WExpansionItem.vue"],"names":[],"mappings":"AAgDA;;;;;;;;;;;;;;;;;;;;AAiNA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -3,11 +3,12 @@ import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
|
|
3
3
|
import _sfc_main$1 from './WExpansion.vue.js';
|
4
4
|
|
5
5
|
const _hoisted_1 = { class: "overflow-hidden" };
|
6
|
-
const _hoisted_2 = {
|
6
|
+
const _hoisted_2 = { class: "pr-4 relative" };
|
7
|
+
const _hoisted_3 = {
|
7
8
|
key: 0,
|
8
9
|
class: "absolute top-0 right-0 square-2 rounded-full bg-info dark:bg-info-dark"
|
9
10
|
};
|
10
|
-
const
|
11
|
+
const _hoisted_4 = { class: "flex justify-center items-center ml-auto" };
|
11
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
13
|
__name: "WExpansionItem",
|
13
14
|
props: {
|
@@ -22,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
23
|
return (_ctx, _cache) => {
|
23
24
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
24
25
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.title?.()?.[0] ?? "button"), {
|
25
|
-
class: "
|
26
|
+
class: "grid grid-cols-[1fr,auto] py-4 cursor-pointer select-none w-full text-start items-center",
|
26
27
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle"))
|
27
28
|
}, {
|
28
29
|
default: withCtx(() => [
|
@@ -33,20 +34,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
34
|
key: 0,
|
34
35
|
class: "square-6"
|
35
36
|
})) : createCommentVNode("", true),
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
37
|
+
createElementVNode("span", _hoisted_2, [
|
38
|
+
createTextVNode(toDisplayString(_ctx.title) + " ", 1),
|
39
|
+
createVNode(Transition, {
|
40
|
+
"enter-active-class": "transition-opacity",
|
41
|
+
"leave-active-class": "transition-opacity",
|
42
|
+
"enter-from-class": "opacity-0",
|
43
|
+
"leave-to-class": "opacity-0"
|
44
|
+
}, {
|
45
|
+
default: withCtx(() => [
|
46
|
+
_ctx.hasFlag ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true)
|
47
|
+
]),
|
48
|
+
_: 1
|
49
|
+
})
|
50
|
+
])
|
48
51
|
], 2),
|
49
|
-
createElementVNode("div",
|
52
|
+
createElementVNode("div", _hoisted_4, [
|
50
53
|
createVNode(unref(IconArrow), {
|
51
54
|
class: normalizeClass(["text-accent transition-transform", { "rotate-180": _ctx.isOpen }])
|
52
55
|
}, null, 8, ["class"])
|
@@ -10,14 +10,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
10
10
|
initModel: () => void;
|
11
11
|
errorMessage: import("vue").ComputedRef<string>;
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
13
|
-
"update:
|
14
|
-
"update:
|
13
|
+
"update:is-valid": (value: boolean | undefined) => void;
|
14
|
+
"update:has-changes": (value: boolean) => void;
|
15
15
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
16
16
|
name?: string | undefined;
|
17
17
|
title?: string | undefined;
|
18
18
|
}>>> & {
|
19
|
-
"onUpdate:
|
20
|
-
"onUpdate:
|
19
|
+
"onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
|
20
|
+
"onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
21
21
|
}, {}, {}>, {
|
22
22
|
default?(_: {}): any;
|
23
23
|
}>;
|
@@ -13,15 +13,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
name: {},
|
14
14
|
title: {}
|
15
15
|
},
|
16
|
-
emits: ["update:
|
16
|
+
emits: ["update:is-valid", "update:has-changes"],
|
17
17
|
setup(__props, { expose: __expose, emit: __emit }) {
|
18
18
|
const props = __props;
|
19
19
|
const emit = __emit;
|
20
20
|
const name = computed(() => props.name);
|
21
21
|
const { titleGetter, titleMapUnlistener } = useFormTitleMap(name, toRef(props, "title"));
|
22
|
-
const { errorMessageMapUnlistener, isValid, errorMessage } = useFormErrorMessageMap(name, titleGetter);
|
22
|
+
const { errorMessageMapUnlistener, isValid, errorMessage, errorMessageMap } = useFormErrorMessageMap(name, titleGetter);
|
23
23
|
const { hasChangesMapUnlistener, hasChanges } = useFormHasChangesMap(name);
|
24
|
-
const { validateMapUnlistener, validate } = useFormValidateMap(name, titleGetter, (value) => emit("update:
|
24
|
+
const { validateMapUnlistener, validate } = useFormValidateMap(name, titleGetter, (value) => emit("update:is-valid", value));
|
25
25
|
const { invalidateMapUnlistener, invalidate } = useFormInvalidateMap(name);
|
26
26
|
const { initModelMapUnlistener, initModel } = useFormInitModelMap(name);
|
27
27
|
const unlistener = (key) => {
|
@@ -34,13 +34,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
};
|
35
35
|
provide(wFormUnlistener, unlistener);
|
36
36
|
const unlistenerInjected = inject(wFormUnlistener, void 0);
|
37
|
-
watch(
|
38
|
-
watch(hasChanges, (value) => emit("update:
|
37
|
+
watch(errorMessageMap, () => emit("update:is-valid", isValid.value));
|
38
|
+
watch(hasChanges, (value) => emit("update:has-changes", value));
|
39
39
|
onBeforeUnmount(() => {
|
40
40
|
if (props.name) {
|
41
41
|
unlistenerInjected?.(props.name);
|
42
42
|
}
|
43
|
-
emit("update:
|
43
|
+
emit("update:is-valid", void 0);
|
44
44
|
});
|
45
45
|
__expose({
|
46
46
|
isValid,
|
@@ -11,6 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
11
11
|
initModel: () => void;
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
13
13
|
"update:has-changes": (value: boolean) => void;
|
14
|
+
"update:is-valid": (value: boolean) => void;
|
14
15
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
15
16
|
name?: string | undefined;
|
16
17
|
title?: string | undefined;
|
@@ -19,6 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
19
20
|
requiredSymbols?: string | undefined;
|
20
21
|
noChanges?: boolean | undefined;
|
21
22
|
}>>> & {
|
23
|
+
"onUpdate:is-valid"?: ((value: boolean) => any) | undefined;
|
22
24
|
"onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
23
25
|
}, {}, {}>, Readonly<{
|
24
26
|
default: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAUA
|
1
|
+
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyUA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
requiredSymbols: {},
|
12
12
|
noChanges: { type: Boolean }
|
13
13
|
},
|
14
|
-
emits: ["update:has-changes"],
|
14
|
+
emits: ["update:has-changes", "update:is-valid"],
|
15
15
|
setup(__props, { expose: __expose, emit: __emit }) {
|
16
16
|
const props = __props;
|
17
17
|
const emit = __emit;
|
@@ -39,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
const initModelValue = ref();
|
40
40
|
const required = computed(() => component.value?.props?.required !== void 0 ? component.value?.props?.required !== false : void 0);
|
41
41
|
const title = computed(() => props.title ?? component.value?.props?.title);
|
42
|
-
const errorMessage = ref();
|
42
|
+
const errorMessage = ref(null);
|
43
43
|
const hasChanges = ref(false);
|
44
44
|
const hasBeenValidated = ref(false);
|
45
45
|
const requiredSymbols = computed(() => props.requiredSymbols?.split("") ?? []);
|
@@ -145,9 +145,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
145
145
|
hasChanges.value = false;
|
146
146
|
};
|
147
147
|
watch(errorMessage, (value) => {
|
148
|
+
if (value === null)
|
149
|
+
return;
|
148
150
|
if (props.name) {
|
149
151
|
errorMessageUpdater?.(props.name, value);
|
150
152
|
}
|
153
|
+
emit("update:is-valid", !value);
|
151
154
|
});
|
152
155
|
watch(hasChanges, (value) => {
|
153
156
|
if (props.name) {
|
@@ -3,5 +3,6 @@ export declare const useFormErrorMessageMap: (name: Ref<string | undefined>, tit
|
|
3
3
|
errorMessageMapUnlistener: (key: string) => void;
|
4
4
|
isValid: import("vue").ComputedRef<boolean>;
|
5
5
|
errorMessage: import("vue").ComputedRef<string>;
|
6
|
+
errorMessageMap: Ref<Record<string, string>>;
|
6
7
|
};
|
7
8
|
//# sourceMappingURL=useFormErrorMessageMap.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useFormErrorMessageMap.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/use/useFormErrorMessageMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,GAAG,EAAC,MAAM,KAAK,CAAA;AAInE,eAAO,MAAM,sBAAsB,SAAU,IAAI,MAAM,GAAG,SAAS,CAAC,qBAAqB,MAAM,KAAK,MAAM;qCAQhE,MAAM
|
1
|
+
{"version":3,"file":"useFormErrorMessageMap.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/use/useFormErrorMessageMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,GAAG,EAAC,MAAM,KAAK,CAAA;AAInE,eAAO,MAAM,sBAAsB,SAAU,IAAI,MAAM,GAAG,SAAS,CAAC,qBAAqB,MAAM,KAAK,MAAM;qCAQhE,MAAM;;;;CAwB/C,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Link/WLink.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Link/WLink.vue"],"names":[],"mappings":"AAqBA;AAEA,OAAO,EAAa,KAAK,gBAAgB,EAAC,MAAM,YAAY,CAAA;AAE5D,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoIjD,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx,
|
1
|
+
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
import IconLink from '../../assets/icons/sax/IconLink.svg.js';
|
4
4
|
import { SemanticType } from '../../utils/SemanticType.js';
|
@@ -24,20 +24,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
}]
|
25
25
|
}), {
|
26
26
|
default: withCtx(() => [
|
27
|
-
|
28
|
-
class: normalizeClass(["inline", {
|
29
|
-
"mr-1": !_ctx.small,
|
30
|
-
"mr-0.5": _ctx.small
|
27
|
+
createVNode(unref(IconLink), {
|
28
|
+
class: normalizeClass(["inline -mt-1 rounded-lg p-[1px]", {
|
29
|
+
"square-5 mr-1": !_ctx.small,
|
30
|
+
"square-3 mr-0.5": _ctx.small,
|
31
|
+
[unref(semanticTypeIconStylesMap)[_ctx.semanticType]]: true
|
31
32
|
}])
|
32
|
-
}, [
|
33
|
-
createVNode(unref(IconLink), {
|
34
|
-
class: normalizeClass(["inline -mt-1 rounded-lg p-[1px]", {
|
35
|
-
"square-5": !_ctx.small,
|
36
|
-
"square-3": _ctx.small,
|
37
|
-
[unref(semanticTypeIconStylesMap)[_ctx.semanticType]]: true
|
38
|
-
}])
|
39
|
-
}, null, 8, ["class"])
|
40
|
-
], 2),
|
33
|
+
}, null, 8, ["class"]),
|
41
34
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
42
35
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
43
36
|
])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavItem.vue"],"names":[],"mappings":"AA0DA;AAGA,OAAO,EAAkC,KAAK,gBAAgB,EAAC,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"WNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavItem.vue"],"names":[],"mappings":"AA0DA;AAGA,OAAO,EAAkC,KAAK,gBAAgB,EAAC,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAsPjF,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, computed, watch, openBlock, createBlock, unref, normalizeClass, withCtx, createElementVNode, resolveDynamicComponent, renderSlot, toDisplayString, createElementBlock, createTextVNode, createCommentVNode } from 'vue';
|
1
|
+
import { defineComponent, computed, watch, onUnmounted, openBlock, createBlock, unref, normalizeClass, withCtx, createElementVNode, resolveDynamicComponent, renderSlot, toDisplayString, createElementBlock, createTextVNode, createCommentVNode } from 'vue';
|
2
2
|
import { useRoute, useRouter, RouterLink } from 'vue-router';
|
3
3
|
import { isEqualObj, numberCompactFormatter } from '../../utils/utils.js';
|
4
4
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
@@ -42,6 +42,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
});
|
43
43
|
const isBigCount = computed(() => props.counter !== void 0 && props.counter >= 1e3);
|
44
44
|
watch(isActive, (value) => emit("update:isActive", { [props.title]: value }), { immediate: true });
|
45
|
+
onUnmounted(() => {
|
46
|
+
emit("update:isActive", { [props.title]: false });
|
47
|
+
});
|
45
48
|
return (_ctx, _cache) => {
|
46
49
|
return openBlock(), createBlock(unref(RouterLink), {
|
47
50
|
to: _ctx.to,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WNotify.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Notify/WNotify.vue"],"names":[],"mappings":"AAsBA;;
|
1
|
+
{"version":3,"file":"WNotify.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Notify/WNotify.vue"],"names":[],"mappings":"AAsBA;;AAqIA,wBAKG"}
|
@@ -8,7 +8,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
setup(__props) {
|
9
9
|
const list = ref([]);
|
10
10
|
const addNotify = (config) => {
|
11
|
-
const index = list.value.findIndex(
|
11
|
+
const index = list.value.findIndex(
|
12
|
+
(item) => item.type === config.type && item.title === config.title && item.caption === config.caption && item.userInput === config.userInput && item.to?.name === config.to?.name
|
13
|
+
);
|
12
14
|
const configMeta = {
|
13
15
|
...config,
|
14
16
|
count: 1,
|