eco-vue-js 0.4.3 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
8
  to?: RouteLocationRaw | undefined;
9
9
  count?: number | undefined;
10
10
  semanticType?: SemanticType | undefined;
11
+ outline?: boolean | undefined;
11
12
  }>, {
12
13
  icon: undefined;
13
14
  tag: string;
@@ -24,6 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
24
25
  to?: RouteLocationRaw | undefined;
25
26
  count?: number | undefined;
26
27
  semanticType?: SemanticType | undefined;
28
+ outline?: boolean | undefined;
27
29
  }>, {
28
30
  icon: undefined;
29
31
  tag: string;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AAmCA;AAEA,OAAO,EAAC,KAAK,gBAAgB,EAAa,MAAM,YAAY,CAAA;AAE5D,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiLnC,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,CAA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AQ,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"}
@@ -18,7 +18,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  tag: { default: "button" },
19
19
  to: { default: void 0 },
20
20
  count: { default: void 0 },
21
- semanticType: { default: SemanticType.SECONDARY }
21
+ semanticType: { default: SemanticType.SECONDARY },
22
+ outline: { type: Boolean }
22
23
  },
23
24
  emits: ["click"],
24
25
  setup(__props) {
@@ -30,11 +31,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
31
  [SemanticType.NEGARIVE]: "text-default dark:text-default-dark bg-negative dark:bg-negative-dark",
31
32
  [SemanticType.INFO]: "text-default dark:text-default-dark bg-info dark:bg-info-dark"
32
33
  };
34
+ const semanticTypeOutlineStylesMap = {
35
+ [SemanticType.SECONDARY]: "text-description bg-default dark:bg-default-dark hover:text-primary-default dark:hover:text-primary-dark",
36
+ [SemanticType.PRIMARY]: "text-primary-default text-primary-dark",
37
+ [SemanticType.POSITIVE]: "text-positive dark:text-positive-dark",
38
+ [SemanticType.WARNING]: "text-warning dark:text-warning-dark",
39
+ [SemanticType.NEGARIVE]: "text-negative dark:text-negative-dark",
40
+ [SemanticType.INFO]: "text-info dark:text-info-dark"
41
+ };
33
42
  return (_ctx, _cache) => {
34
43
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? unref(RouterLink) : _ctx.tag), mergeProps(_ctx.to !== void 0 ? { to: _ctx.to } : void 0, {
35
44
  class: ["relative flex flex-col md:gap-2 p-2 items-center w-full select-none cursor-pointer no-underline outline-none border-none w-ripple w-ripple-hover", {
36
45
  "text-primary-default dark:text-primary-dark": _ctx.active && _ctx.semanticType === unref(SemanticType).SECONDARY,
37
- [semanticTypeStylesMap[_ctx.semanticType]]: true
46
+ [_ctx.outline ? semanticTypeOutlineStylesMap[_ctx.semanticType] : semanticTypeStylesMap[_ctx.semanticType]]: true
38
47
  }],
39
48
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
40
49
  }), {
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA4EA;;;wBAidwB,IAAI,KAAK,KAAK;;;;iBAtBrB,WAAW;;;;;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;WA+BvC,GAAG;;;kBAxRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA7IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;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AC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA4EA;;;wBA8cwB,IAAI,KAAK,KAAK;;;;iBAtBrB,WAAW;;;;;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;WA+BvC,GAAG;;;kBAnRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA/IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;OAsZwB,IAAI;;;4BAPnD,IAAI,KAAK,KAAK;;;;qBAtBrB,WAAW;;;;;oBAFZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;SA8ByB,IAAI;WACpE,GAAG;;;kBAnRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA/IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;;;;;gCA+YvB,IAAI,KAAK,KAAK;;;;yBAtBrB,WAAW;;;;;wBAFZ,kBAAkB,IAAI,CAAC;mCACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;aA8ByB,IAAI;eACpE,GAAG;;;sBAnRA,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;sBATF,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;gBA/IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AApD/C,wBAgd2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -137,6 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
137
  return;
138
138
  resetPage();
139
139
  });
140
+ watch(count, (value) => emit("update:count", value), { immediate: true });
140
141
  __expose({
141
142
  resetPage
142
143
  });
@@ -185,25 +186,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
185
186
  class: normalizeClass({
186
187
  "last:min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] last:pb-16": !_ctx.minHeight
187
188
  }),
188
- "onUpdate:count": _cache[1] || (_cache[1] = ($event) => {
189
- updateCount($event);
190
- _ctx.$emit("update:count", $event);
191
- }),
189
+ "onUpdate:count": updateCount,
192
190
  "onUpdate:pagesCount": updatePagesCount,
193
- "onUpdate:nextPage": _cache[2] || (_cache[2] = ($event) => {
191
+ "onUpdate:nextPage": _cache[1] || (_cache[1] = ($event) => {
194
192
  updateNextPage($event);
195
193
  infiniteScroll.value?.checkIsScrollDown();
196
194
  }),
197
- "onUpdate:previousPage": _cache[3] || (_cache[3] = ($event) => {
195
+ "onUpdate:previousPage": _cache[2] || (_cache[2] = ($event) => {
198
196
  updatePreviousPage($event);
199
197
  infiniteScroll.value?.checkIsScrollUp();
200
198
  }),
201
199
  "onUpdate:scroll": updateScroll,
202
- "onUpdateFromHeader:scroll": _cache[4] || (_cache[4] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
200
+ "onUpdateFromHeader:scroll": _cache[3] || (_cache[3] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
203
201
  "onError:invalidPage": removePage,
204
202
  onRefetch: ($event) => unref(refetchNextPages)(index),
205
- "onUpdate:selected": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("update:selected", $event)),
206
- onFetched: _cache[6] || (_cache[6] = ($event) => isResettingPage.value = false)
203
+ "onUpdate:selected": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:selected", $event)),
204
+ onFetched: _cache[5] || (_cache[5] = ($event) => isResettingPage.value = false)
207
205
  }, {
208
206
  default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last }) => [
209
207
  renderSlot(_ctx.$slots, "default", {
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuHA;;;wBA8ewB,IAAI,KAAK,KAAK;;;;iBArBrB,WAAW;;;;;;;;;;;;;gBACZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;oBAC1B,MAAM;eACX,OAAO;cACR,OAAO;;;;;;;;;;;WAwBd,GAAG;;;kBAtSA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IA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AG,IAAI;gBACzC,SAAS,GAAG,IAAI;;;;AApDtB,wBAwe2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -42,8 +42,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  refetchInterval: props.refetchInterval ? computed(() => isIntersecting.value ? props.refetchInterval : void 0) : void 0
43
43
  }
44
44
  );
45
- const count = computed(() => data.value?.count);
46
- const pagesCount = computed(() => data.value?.pages_count);
47
45
  const nextPage = computed(() => data.value?.next);
48
46
  const previousPage = computed(() => data.value?.previous);
49
47
  const setItem = (index, newItem) => {
@@ -79,21 +77,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
77
  return void 0;
80
78
  return data.value.results[data.value.results.length - 1];
81
79
  };
82
- watch(count, (value) => {
83
- if (value !== void 0)
84
- emit("update:count", value);
85
- }, { immediate: true });
86
- watch(pagesCount, (value) => {
87
- if (value)
88
- emit("update:pagesCount", value);
89
- }, { immediate: true });
90
- watch(nextPage, (value) => {
91
- if (props.lastPage && value !== void 0)
92
- emit("update:nextPage", value);
93
- }, { immediate: true });
94
- watch(previousPage, (value) => {
95
- if (props.firstPage && value !== void 0)
96
- emit("update:previousPage", value);
80
+ watch(data, (value) => {
81
+ if (props.firstPage && value?.previous !== void 0)
82
+ emit("update:previousPage", value.previous);
83
+ if (props.lastPage && value?.next !== void 0)
84
+ emit("update:nextPage", value.next);
85
+ if (value?.pages_count)
86
+ emit("update:pagesCount", value.pages_count);
87
+ if (value?.count !== void 0)
88
+ emit("update:count", value.count);
97
89
  }, { immediate: true });
98
90
  watch(error, (error2) => {
99
91
  if (props.isInvalidPage(error2))
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.3",
7
+ "version": "0.4.5",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",