eco-vue-js 0.4.13 → 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":"AAuDA;AAGA,OAAO,EAAkC,KAAK,gBAAgB,EAAC,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAoPjF,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,4 +1,4 @@
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';
@@ -7,7 +7,7 @@ import _sfc_main$1 from '../Counter/WCounter.vue.js';
7
7
  const _hoisted_1 = { class: "[overflow:inherit]" };
8
8
  const _hoisted_2 = { class: "grid grid-cols-[2.5rem,1fr,3rem] items-center py-4 px-5" };
9
9
  const _hoisted_3 = { class: "flex items-center" };
10
- const _hoisted_4 = { class: "text-base font-normal tracking-wide whitespace-nowrap" };
10
+ const _hoisted_4 = { class: "text-base font-normal tracking-wide whitespace-nowrap relative" };
11
11
  const _hoisted_5 = { class: "text-base font-normal tracking-wide text-center flex justify-center" };
12
12
  const _hoisted_6 = {
13
13
  key: 0,
@@ -59,11 +59,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
59
  class: "square-6"
60
60
  })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
61
61
  ]),
62
- createElementVNode("div", _hoisted_4, toDisplayString(_ctx.title), 1),
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
+ ]),
63
75
  createElementVNode("div", _hoisted_5, [
64
76
  !_ctx.skeleton ? (openBlock(), createElementBlock("span", _hoisted_6, [
65
77
  createTextVNode(toDisplayString(typeof _ctx.count === "number" ? unref(numberCompactFormatter).format(_ctx.count) : "") + " ", 1),
66
- _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, {
67
79
  key: 0,
68
80
  count: _ctx.counter,
69
81
  trigger: 1,
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.13",
7
+ "version": "0.4.14",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",