eco-vue-js 0.3.78 → 0.3.80
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +18 -15
- package/dist/components/FilePicker/WFilePicker.vue.js +3 -3
- package/dist/components/Input/WInput.vue.js +2 -2
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +7 -14
- 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
package/README.md
CHANGED
@@ -15,8 +15,8 @@ npm i eco-vue-js
|
|
15
15
|
1. Add the following lines to the `content` section in your [Tailwind configuration file](https://tailwindcss.com/docs/content-configuration):
|
16
16
|
```
|
17
17
|
content: [
|
18
|
-
'./node_modules/eco-vue-js/dist/components/**/*.vue.js
|
19
|
-
'./node_modules/eco-vue-js/dist/components/**/*.js
|
18
|
+
'./node_modules/eco-vue-js/dist/components/**/*.vue.js',
|
19
|
+
'./node_modules/eco-vue-js/dist/components/**/*.js',
|
20
20
|
]
|
21
21
|
```
|
22
22
|
2. Add the library's [Tailwind preset](https://tailwindcss.com/docs/presets) to your configuration file:
|
@@ -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: {
|
@@ -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"])
|
@@ -137,13 +137,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
137
|
"svg-width": containerWidth.value,
|
138
138
|
"svg-height": containerHeight.value,
|
139
139
|
"is-active": isActive.value,
|
140
|
-
"has-error": _ctx.errorMessage
|
140
|
+
"has-error": !!_ctx.errorMessage,
|
141
141
|
class: "absolute top-0 left-0"
|
142
142
|
}, null, 8, ["svg-width", "svg-height", "is-active", "has-error"])) : createCommentVNode("", true),
|
143
143
|
_ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
144
144
|
createVNode(_sfc_main$2, {
|
145
145
|
name: _ctx.placeholder,
|
146
|
-
"has-error": _ctx.errorMessage
|
146
|
+
"has-error": !!_ctx.errorMessage,
|
147
147
|
"onClick:cancel": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("clear:placeholder"))
|
148
148
|
}, {
|
149
149
|
positive: withCtx(() => [
|
@@ -173,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
173
173
|
return openBlock(), createBlock(_sfc_main$2, {
|
174
174
|
key: index,
|
175
175
|
name: file.name,
|
176
|
-
"has-error": _ctx.errorMessage
|
176
|
+
"has-error": !!_ctx.errorMessage,
|
177
177
|
"onClick:cancel": ($event) => unselectFile(index)
|
178
178
|
}, {
|
179
179
|
positive: withCtx(() => [
|
@@ -350,8 +350,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
350
350
|
_ctx.hasChanges ? (openBlock(), createElementBlock("span", {
|
351
351
|
key: 0,
|
352
352
|
class: normalizeClass(["square-2 rounded-full transition-colors absolute top-0 right-0 z-10", {
|
353
|
-
"bg-info dark:bg-info-dark": isFocused.value || _ctx.errorMessage
|
354
|
-
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
|
353
|
+
"bg-info dark:bg-info-dark": isFocused.value || !_ctx.errorMessage,
|
354
|
+
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
|
355
355
|
}])
|
356
356
|
}, null, 2)) : createCommentVNode("", true)
|
357
357
|
]),
|
@@ -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":"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,
|