eco-vue-js 0.10.82 → 0.10.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,10 +17,10 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
17
17
  }>, {
18
18
  skeleton: boolean;
19
19
  type: string;
20
- disabled: boolean;
21
20
  to: import('vue-router').RouterLinkProps["to"];
22
21
  tag: "a" | "button";
23
22
  semanticType: SemanticType;
23
+ disabled: boolean;
24
24
  target: "_self" | "_blank" | "_parent" | "_top";
25
25
  href: string;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -28,11 +28,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
28
28
  }>, {
29
29
  skeleton: boolean;
30
30
  count: number;
31
- disabled: boolean;
32
31
  to: import('vue-router').RouterLinkProps["to"];
33
32
  icon: SVGComponent;
34
33
  tag: "button" | "a";
35
34
  semanticType: SemanticType;
35
+ disabled: boolean;
36
36
  tooltipText: string;
37
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AAsEA;AAAA,OA4HO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAU5C,OAAO,EAAC,YAAY,EAA+B,MAAM,sBAAsB,CAAA;AAG/E,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,GAAG,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd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;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAuCD,iBAAS,cAAc;WAqJT,OAAO,IAA6B;;sBAVvB,GAAG;;;;EAe7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;cAvNR,OAAO;WAHV,MAAM;;UAJP,YAAY;SAGb,QAAQ,GAAG,GAAG;kBAEL,YAAY;cAChB,OAAO;iBAEJ,MAAM;6EA+NpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -6,7 +6,6 @@ import WSkeleton from '../Skeleton/WSkeleton.vue.js';
6
6
  import _sfc_main$3 from '../Tooltip/WTooltip.vue.js';
7
7
  import { useIsBackdrop } from '../Modal/use/useIsBackdrop.js';
8
8
  import { SemanticType, useSemanticTypeBackgroundMap } from '../../utils/SemanticType.js';
9
- import { useComponentStatesButton } from '../../utils/useComponentStates.js';
10
9
 
11
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
11
  __name: "WButtonAction",
@@ -25,27 +24,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
24
  },
26
25
  emits: ["click"],
27
26
  setup(__props) {
28
- const props = __props;
29
- const { isDisabled, isSkeleton } = useComponentStatesButton(props);
30
27
  const semanticTypeBackgroundMap = useSemanticTypeBackgroundMap();
31
28
  const isBackdrop = useIsBackdrop();
32
29
  return (_ctx, _cache) => {
33
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? unref(isDisabled) || unref(isSkeleton) ? "a" : unref(RouterLink) : _ctx.tag), mergeProps(_ctx.to !== void 0 && !unref(isDisabled) && !unref(isSkeleton) ? { to: _ctx.to } : void 0, {
30
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? _ctx.disabled || _ctx.skeleton ? "a" : unref(RouterLink) : _ctx.tag), mergeProps(_ctx.to !== void 0 && !_ctx.disabled && !_ctx.skeleton ? { to: _ctx.to } : void 0, {
34
31
  class: ["w-ripple-trigger group grid w-full grid-cols-1 py-1", {
35
- "cursor-not-allowed opacity-50": unref(isDisabled),
36
- "cursor-progress": unref(isSkeleton)
32
+ "cursor-not-allowed opacity-50": _ctx.disabled,
33
+ "cursor-progress": _ctx.skeleton
37
34
  }],
38
- disabled: unref(isDisabled) || unref(isSkeleton),
39
- onClick: _cache[0] || (_cache[0] = ($event) => !unref(isDisabled) && !unref(isSkeleton) && _ctx.$emit("click", $event))
35
+ disabled: _ctx.disabled || _ctx.skeleton,
36
+ onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && !_ctx.skeleton && _ctx.$emit("click", $event))
40
37
  }), {
41
38
  default: withCtx(() => [
42
- unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton, {
39
+ _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
43
40
  key: 0,
44
41
  class: "w-skeleton-w-auto w-skeleton-h-auto w-skeleton-rounded-full mx-1 aspect-square"
45
42
  })) : (openBlock(), createElementBlock("div", {
46
43
  key: 1,
47
44
  class: normalizeClass(["relative mx-1 grid aspect-square select-none items-center justify-center gap-1 rounded-full bg-[200%_auto] [background-position:right]", {
48
- "w-ripple w-ripple-hover cursor-pointer": !unref(isDisabled) && !unref(isSkeleton),
45
+ "w-ripple w-ripple-hover cursor-pointer": !_ctx.disabled && !_ctx.skeleton,
49
46
  "text-primary dark:text-primary-dark": _ctx.active && _ctx.semanticType === unref(SemanticType).SECONDARY,
50
47
  [unref(semanticTypeBackgroundMap)[_ctx.semanticType]]: true
51
48
  }])
@@ -62,19 +59,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
59
  _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
63
60
  key: 0,
64
61
  class: normalizeClass(["square-6 w-svg-stroke-width-sm transition-transform", {
65
- "group-hover:scale-120": !unref(isDisabled)
62
+ "group-hover:scale-120": !_ctx.disabled
66
63
  }])
67
64
  }, null, 8, ["class"])) : createCommentVNode("", true)
68
65
  ]),
69
- !unref(isDisabled) && !unref(isBackdrop) ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true)
66
+ !_ctx.disabled && !unref(isBackdrop) ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true)
70
67
  ], 2)),
71
68
  _ctx.titleText ? (openBlock(), createElementBlock("div", {
72
69
  key: 2,
73
70
  class: normalizeClass(["text-3xs mt-1 text-center", {
74
- "self-center": !unref(isSkeleton)
71
+ "self-center": !_ctx.skeleton
75
72
  }])
76
73
  }, [
77
- unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
74
+ _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
78
75
  createTextVNode(toDisplayString(_ctx.title), 1)
79
76
  ], 64))
80
77
  ], 2)) : createCommentVNode("", true),
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAmMA;AAAA,OAwRO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAgB5C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAA;IAC3B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAA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G,SAAS,CAAA;IACpC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,IAAI,EAAE,OAAO,CAAA;IACb,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAA;IAC/B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IAEjB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAC;AAmDF,iBAAS,cAAc,QA+YtB;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;mFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -109,7 +109,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
109
109
  _ctx.allowSelect ? (openBlock(), createBlock(_sfc_main$1, {
110
110
  key: 0,
111
111
  "model-value": _ctx.selected,
112
- disabled: _ctx.disabled,
112
+ disabled: _ctx.disabled ?? false,
113
+ readonly: false,
113
114
  "align-top": _ctx.alignTop,
114
115
  "less-transitions": _ctx.allowSelectHover,
115
116
  class: normalizeClass(["h-full px-[--w-list-padding,1rem]", {
@@ -113,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
113
  "right-[calc(100%-1.25rem)]": value.value === false,
114
114
  "right-[calc(50%-0.625rem)]": value.value === null,
115
115
  "right-0": value.value === true,
116
- "w-ripple w-ripple-hover": !_ctx.disabled && !_ctx.readonly && !_ctx.skeleton
116
+ "w-ripple w-ripple-hover": !unref(isDisabled) && !unref(isReadonly) && !unref(isSkeleton)
117
117
  }])
118
118
  }, [
119
119
  _ctx.loading ? (openBlock(), createBlock(WSpinner, {
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.10.82",
7
+ "version": "0.10.84",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.1.0",
10
10
  "@tanstack/eslint-plugin-query": "5.81.2",