eco-vue-js 0.4.12 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;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
+ {"version":3,"file":"WNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavItem.vue"],"names":[],"mappings":"AAmEA;AAGA,OAAO,EAAkC,KAAK,gBAAgB,EAAC,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAqQjF,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,17 +1,14 @@
1
- import { defineComponent, computed, watch, onUnmounted, 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, createTextVNode, toDisplayString, createCommentVNode, createElementBlock } 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';
5
5
  import _sfc_main$1 from '../Counter/WCounter.vue.js';
6
6
 
7
7
  const _hoisted_1 = { class: "[overflow:inherit]" };
8
- const _hoisted_2 = { class: "flex items-center py-4 px-5" };
9
- const _hoisted_3 = { class: "h-full w-10 flex items-center" };
10
- const _hoisted_4 = { class: "h-6 text-base font-normal tracking-wide mr-auto whitespace-nowrap" };
11
- const _hoisted_5 = {
12
- key: 0,
13
- class: "h-6 text-base font-normal tracking-wide w-12 text-center flex justify-center"
14
- };
8
+ const _hoisted_2 = { class: "grid grid-cols-[2.5rem,1fr,3rem] items-center py-4 px-5" };
9
+ const _hoisted_3 = { class: "flex items-center" };
10
+ const _hoisted_4 = { class: "text-base font-normal tracking-wide whitespace-nowrap relative" };
11
+ const _hoisted_5 = { class: "text-base font-normal tracking-wide text-center flex justify-center" };
15
12
  const _hoisted_6 = {
16
13
  key: 0,
17
14
  class: "relative"
@@ -62,11 +59,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
59
  class: "square-6"
63
60
  })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
64
61
  ]),
65
- createElementVNode("div", _hoisted_4, toDisplayString(_ctx.title), 1),
66
- _ctx.count !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
62
+ createElementVNode("div", _hoisted_4, [
63
+ createTextVNode(toDisplayString(_ctx.title) + " ", 1),
64
+ _ctx.counter !== void 0 && _ctx.counter !== 0 && _ctx.count === void 0 ? (openBlock(), createBlock(_sfc_main$1, {
65
+ key: 0,
66
+ count: _ctx.counter,
67
+ trigger: 1,
68
+ small: "",
69
+ class: normalizeClass(["absolute -top-3", {
70
+ "left-[calc(100%-0.25rem)]": !isBigCount.value,
71
+ "left-[calc(100%-1rem)]": isBigCount.value
72
+ }])
73
+ }, null, 8, ["count", "class"])) : createCommentVNode("", true)
74
+ ]),
75
+ createElementVNode("div", _hoisted_5, [
67
76
  !_ctx.skeleton ? (openBlock(), createElementBlock("span", _hoisted_6, [
68
77
  createTextVNode(toDisplayString(typeof _ctx.count === "number" ? unref(numberCompactFormatter).format(_ctx.count) : "") + " ", 1),
69
- _ctx.counter !== void 0 && _ctx.counter !== 0 ? (openBlock(), createBlock(_sfc_main$1, {
78
+ _ctx.counter !== void 0 && _ctx.counter !== 0 && _ctx.count !== void 0 ? (openBlock(), createBlock(_sfc_main$1, {
70
79
  key: 0,
71
80
  count: _ctx.counter,
72
81
  trigger: 1,
@@ -77,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
77
86
  }])
78
87
  }, null, 8, ["count", "class"])) : createCommentVNode("", true)
79
88
  ])) : (openBlock(), createBlock(WSkeleton, { key: 1 }))
80
- ])) : createCommentVNode("", true)
89
+ ])
81
90
  ])
82
91
  ])
83
92
  ]),
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.4.12",
7
+ "version": "0.4.14",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",