eco-vue-js 0.10.80 → 0.10.82

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.
Files changed (127) hide show
  1. package/dist/components/Button/WButton.vue.d.ts +2 -0
  2. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButton.vue.js +13 -11
  4. package/dist/components/Button/WButtonAction.vue.d.ts +2 -0
  5. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButtonAction.vue.js +16 -13
  7. package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -0
  8. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  9. package/dist/components/Button/WButtonDropdown.vue.js +2 -1
  10. package/dist/components/Button/WButtonGroup.vue.d.ts +1 -1
  11. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  12. package/dist/components/Button/WButtonGroup.vue.js +7 -5
  13. package/dist/components/Chart/WChartLine.vue.d.ts.map +1 -1
  14. package/dist/components/Chart/WChartLine.vue.js +21 -18
  15. package/dist/components/Chart/WChartLinear.vue.d.ts +1 -0
  16. package/dist/components/Chart/WChartLinear.vue.d.ts.map +1 -1
  17. package/dist/components/Chart/WChartLinear.vue.js +8 -6
  18. package/dist/components/Checkbox/WCheckbox.vue.d.ts +5 -1
  19. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  20. package/dist/components/Checkbox/WCheckbox.vue.js +21 -18
  21. package/dist/components/Checkbox/types.d.ts +1 -0
  22. package/dist/components/Checkbox/types.d.ts.map +1 -1
  23. package/dist/components/Chip/WChip.vue.d.ts +5 -1
  24. package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
  25. package/dist/components/Chip/WChip.vue.js +9 -6
  26. package/dist/components/DatePicker/WDatePicker.vue.d.ts +9 -1
  27. package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
  28. package/dist/components/DatePicker/WDatePicker.vue.js +8 -4
  29. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +11 -1
  30. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
  31. package/dist/components/DatePicker/WDatePickerSingle.vue.js +10 -4
  32. package/dist/components/DragContainer/use/useDragContainer.js +2 -1
  33. package/dist/components/Dropdown/WDropdown.vue.js +2 -2
  34. package/dist/components/Dropdown/types.d.ts +1 -0
  35. package/dist/components/Dropdown/types.d.ts.map +1 -1
  36. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +2 -0
  37. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  38. package/dist/components/DropdownMenu/WDropdownMenu.vue.js +1 -0
  39. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +5 -1
  40. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  41. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +12 -10
  42. package/dist/components/FilePicker/WFilePicker.vue.d.ts +11 -1
  43. package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
  44. package/dist/components/FilePicker/WFilePicker.vue.js +20 -14
  45. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -1
  46. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +3 -3
  47. package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.d.ts.map +1 -1
  48. package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +3 -3
  49. package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
  50. package/dist/components/FormAsync/WFormAsyncInput.vue.js +3 -3
  51. package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
  52. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +4 -3
  53. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -1
  54. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +4 -3
  55. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
  56. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +4 -3
  57. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.d.ts.map +1 -1
  58. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +4 -3
  59. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
  60. package/dist/components/FormAsync/WFormAsyncToggle.vue.js +3 -2
  61. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +1 -0
  62. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  63. package/dist/components/InfiniteList/WInfiniteList.vue.js +4 -2
  64. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +1 -0
  65. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
  66. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +3 -2
  67. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  68. package/dist/components/Input/WInput.vue.js +24 -22
  69. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  70. package/dist/components/Input/WInputAsync.vue.js +11 -9
  71. package/dist/components/Input/WInputDate.vue.d.ts +3 -0
  72. package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
  73. package/dist/components/Input/WInputDate.vue.js +5 -4
  74. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  75. package/dist/components/Input/WInputOptions.vue.js +13 -10
  76. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  77. package/dist/components/Input/WInputSuggest.vue.js +12 -9
  78. package/dist/components/List/WList.vue.d.ts.map +1 -1
  79. package/dist/components/List/WList.vue.js +27 -25
  80. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  81. package/dist/components/List/WListCard.vue.js +2 -1
  82. package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
  83. package/dist/components/List/WListHeader.vue.js +1 -0
  84. package/dist/components/MenuItem/WMenuItem.vue.js +1 -1
  85. package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
  86. package/dist/components/Progress/WProgressStriped.vue.d.ts.map +1 -1
  87. package/dist/components/Progress/WProgressStriped.vue.js +6 -4
  88. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  89. package/dist/components/Select/WSelect.vue.js +23 -20
  90. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  91. package/dist/components/Select/WSelectAsync.vue.js +15 -12
  92. package/dist/components/Select/WSelectAsyncList.vue.d.ts +2 -0
  93. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  94. package/dist/components/Select/WSelectAsyncList.vue.js +12 -6
  95. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  96. package/dist/components/Select/WSelectAsyncSingle.vue.js +6 -5
  97. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  98. package/dist/components/Select/WSelectSingle.vue.js +8 -7
  99. package/dist/components/Select/WSelectStringified.vue.d.ts.map +1 -1
  100. package/dist/components/Select/WSelectStringified.vue.js +8 -7
  101. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  102. package/dist/components/Toggle/WToggle.vue.js +16 -12
  103. package/dist/components/Toggle/WToggleTheme.vue.js +2 -1
  104. package/dist/components/Toggle/types.d.ts +1 -0
  105. package/dist/components/Toggle/types.d.ts.map +1 -1
  106. package/dist/components/Tooltip/WTooltip.vue.d.ts +2 -0
  107. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  108. package/dist/components/Tooltip/WTooltip.vue.js +4 -0
  109. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -0
  110. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  111. package/dist/components/Tooltip/WTooltipContainer.vue.js +3 -1
  112. package/dist/components/Tooltip/models/tooltipMeta.d.ts +6 -0
  113. package/dist/components/Tooltip/models/tooltipMeta.d.ts.map +1 -1
  114. package/dist/main.d.ts +2 -0
  115. package/dist/main.d.ts.map +1 -1
  116. package/dist/main.js +2 -0
  117. package/dist/types/global.d.ts +1 -1
  118. package/dist/utils/api.d.ts +1 -0
  119. package/dist/utils/api.d.ts.map +1 -1
  120. package/dist/utils/api.js +4 -1
  121. package/dist/utils/provide.d.ts +5 -0
  122. package/dist/utils/provide.d.ts.map +1 -0
  123. package/dist/utils/provide.js +19 -0
  124. package/dist/utils/useComponentStates.d.ts +19 -0
  125. package/dist/utils/useComponentStates.d.ts.map +1 -0
  126. package/dist/utils/useComponentStates.js +36 -0
  127. package/package.json +4 -1
@@ -15,7 +15,9 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
15
15
  }, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
16
16
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
17
17
  }>, {
18
+ skeleton: boolean;
18
19
  type: string;
20
+ disabled: boolean;
19
21
  to: import('vue-router').RouterLinkProps["to"];
20
22
  tag: "a" | "button";
21
23
  semanticType: SemanticType;
@@ -1 +1 @@
1
- {"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AAyEA;AAsHA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AASxC,OAAO,EAAC,YAAY,EAAyD,MAAM,sBAAsB,CAAA;AA6CzG,iBAAS,cAAc;WAiKT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;;;;EAehC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;6EAQnB,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"}
1
+ {"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AAyEA;AA2HA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AASxC,OAAO,EAAC,YAAY,EAAyD,MAAM,sBAAsB,CAAA;AAoDzG,iBAAS,cAAc;WAiKT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;;;;EAehC;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;6EAQnB,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"}
@@ -1,9 +1,10 @@
1
- import { defineComponent, createBlock, openBlock, withCtx, createElementVNode, renderSlot, resolveDynamicComponent, unref, mergeProps, withKeys, withModifiers, createVNode, createCommentVNode, normalizeClass, Transition } from 'vue';
1
+ import { defineComponent, createBlock, unref, openBlock, withCtx, createElementVNode, renderSlot, resolveDynamicComponent, mergeProps, withKeys, withModifiers, createVNode, createCommentVNode, normalizeClass, Transition } from 'vue';
2
2
  import { RouterLink } from 'vue-router';
3
3
  import _sfc_main$2 from '../Shine/WShine.vue.js';
4
4
  import WSpinner from '../Spinner/WSpinner.vue.js';
5
5
  import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
6
6
  import { SemanticType, useSemanticTypeBorderMap, useSemanticTypeBackgroundMap } from '../../utils/SemanticType.js';
7
+ import { useComponentStatesButton } from '../../utils/useComponentStates.js';
7
8
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
8
9
 
9
10
  const _hoisted_1 = { class: "flex gap-2 px-[--w-button-rounded,1rem] font-medium opacity-0" };
@@ -12,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  __name: "WButton",
13
14
  props: {
14
15
  semanticType: { default: SemanticType.PRIMARY },
15
- disabled: { type: Boolean },
16
+ disabled: { type: Boolean, default: void 0 },
16
17
  loading: { type: Boolean },
17
18
  tag: { default: "button" },
18
19
  type: { default: void 0 },
@@ -22,21 +23,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
23
  join: { type: Boolean },
23
24
  tooltipText: {},
24
25
  download: {},
25
- skeleton: { type: Boolean },
26
+ skeleton: { type: Boolean, default: void 0 },
26
27
  to: { default: void 0 }
27
28
  },
28
29
  emits: ["click"],
29
30
  setup(__props, { emit: __emit }) {
30
31
  const props = __props;
32
+ const { isDisabled, isSkeleton } = useComponentStatesButton(props);
31
33
  const semanticTypeBackgroundMap = useSemanticTypeBackgroundMap();
32
34
  const semanticTypeBorderMap = useSemanticTypeBorderMap();
33
35
  const emit = __emit;
34
36
  const click = (event) => {
35
- if (props.disabled || props.loading) return;
37
+ if (isDisabled.value || props.loading) return;
36
38
  emit("click", event);
37
39
  };
38
40
  return (_ctx, _cache) => {
39
- return _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
41
+ return unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton, {
40
42
  key: 0,
41
43
  class: "w-skeleton-rounded-[--w-button-rounded,1rem] w-skeleton-w-max -w-skeleton-h--button-height"
42
44
  }, {
@@ -46,20 +48,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
48
  ])
47
49
  ]),
48
50
  _: 3
49
- })) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? _ctx.disabled ? "a" : unref(RouterLink) : _ctx.tag), mergeProps({ key: 1 }, {
51
+ })) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? unref(isDisabled) ? "a" : unref(RouterLink) : _ctx.tag), mergeProps({ key: 1 }, {
50
52
  class: _ctx.$attrs.class,
51
53
  style: _ctx.$attrs.style,
52
- ..._ctx.disabled ? {} : _ctx.tag === "a" ? { href: _ctx.href, target: _ctx.target } : _ctx.to !== void 0 ? { to: _ctx.to, replace: _ctx.replace } : {}
54
+ ...unref(isDisabled) ? {} : _ctx.tag === "a" ? { href: _ctx.href, target: _ctx.target } : _ctx.to !== void 0 ? { to: _ctx.to, replace: _ctx.replace } : {}
53
55
  }, {
54
56
  class: ["w-ripple-rounded-[calc(var(--w-button-rounded,1rem)-1px)] -min-h--button-height relative isolate flex select-none items-center justify-center whitespace-nowrap rounded-[--w-button-rounded,1rem] px-[--w-button-rounded,1rem] font-medium outline-none", {
55
57
  [unref(semanticTypeBackgroundMap)[_ctx.semanticType]]: true,
56
58
  [unref(semanticTypeBorderMap)[_ctx.semanticType]]: true,
57
- "w-ripple w-ripple-hover before:text-black-default w-ripple-opacity-20 dark:w-ripple-opacity-30 cursor-pointer": !_ctx.loading && !_ctx.disabled,
59
+ "w-ripple w-ripple-hover before:text-black-default w-ripple-opacity-20 dark:w-ripple-opacity-30 cursor-pointer": !_ctx.loading && !unref(isDisabled),
58
60
  "cursor-progress": _ctx.loading,
59
- "cursor-not-allowed opacity-70": _ctx.disabled,
61
+ "cursor-not-allowed opacity-70": unref(isDisabled),
60
62
  "first-not:rounded-l-none first-not:border-l-0 first-not:before:rounded-l-none last-not:rounded-r-none last-not:border-r-0 last-not:before:rounded-r-none": _ctx.join
61
63
  }],
62
- disabled: !_ctx.loading && _ctx.disabled,
64
+ disabled: !_ctx.loading && unref(isDisabled),
63
65
  download: _ctx.download,
64
66
  type: _ctx.type,
65
67
  onClick: click,
@@ -91,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
93
  key: 0,
92
94
  text: _ctx.tooltipText
93
95
  }, null, 8, ["text"])) : createCommentVNode("", true),
94
- !_ctx.disabled && !_ctx.loading ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true)
96
+ !unref(isDisabled) && !_ctx.loading ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true)
95
97
  ]),
96
98
  _: 3
97
99
  }, 16, ["class", "disabled", "download", "type", "onKeypress"]));
@@ -26,7 +26,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
26
26
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
27
27
  onClick?: ((event: MouseEvent) => any) | undefined;
28
28
  }>, {
29
+ skeleton: boolean;
29
30
  count: number;
31
+ disabled: boolean;
30
32
  to: import('vue-router').RouterLinkProps["to"];
31
33
  icon: SVGComponent;
32
34
  tag: "button" | "a";
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AAsEA;AAAA,OAuHO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAU5C,OAAO,EAAC,YAAY,EAA+B,MAAM,sBAAsB,CAAA;AAE/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,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAmCD,iBAAS,cAAc;WAqJT,OAAO,IAA6B;;sBAVvB,GAAG;;;;EAe7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;WAtNX,MAAM;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O,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,6 +6,7 @@ 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';
9
10
 
10
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  __name: "WButtonAction",
@@ -16,33 +17,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
17
  tag: { default: "button" },
17
18
  count: { default: void 0 },
18
19
  semanticType: { default: SemanticType.SECONDARY },
19
- disabled: { type: Boolean },
20
- skeleton: { type: Boolean },
20
+ disabled: { type: Boolean, default: void 0 },
21
+ skeleton: { type: Boolean, default: void 0 },
21
22
  tooltipText: { default: void 0 },
22
23
  titleText: { type: Boolean },
23
24
  to: { default: void 0 }
24
25
  },
25
26
  emits: ["click"],
26
27
  setup(__props) {
28
+ const props = __props;
29
+ const { isDisabled, isSkeleton } = useComponentStatesButton(props);
27
30
  const semanticTypeBackgroundMap = useSemanticTypeBackgroundMap();
28
31
  const isBackdrop = useIsBackdrop();
29
32
  return (_ctx, _cache) => {
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, {
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, {
31
34
  class: ["w-ripple-trigger group grid w-full grid-cols-1 py-1", {
32
- "cursor-not-allowed opacity-50": _ctx.disabled,
33
- "cursor-progress": _ctx.skeleton
35
+ "cursor-not-allowed opacity-50": unref(isDisabled),
36
+ "cursor-progress": unref(isSkeleton)
34
37
  }],
35
- disabled: _ctx.disabled || _ctx.skeleton,
36
- onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && !_ctx.skeleton && _ctx.$emit("click", $event))
38
+ disabled: unref(isDisabled) || unref(isSkeleton),
39
+ onClick: _cache[0] || (_cache[0] = ($event) => !unref(isDisabled) && !unref(isSkeleton) && _ctx.$emit("click", $event))
37
40
  }), {
38
41
  default: withCtx(() => [
39
- _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
42
+ unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton, {
40
43
  key: 0,
41
44
  class: "w-skeleton-w-auto w-skeleton-h-auto w-skeleton-rounded-full mx-1 aspect-square"
42
45
  })) : (openBlock(), createElementBlock("div", {
43
46
  key: 1,
44
47
  class: normalizeClass(["relative mx-1 grid aspect-square select-none items-center justify-center gap-1 rounded-full bg-[200%_auto] [background-position:right]", {
45
- "w-ripple w-ripple-hover cursor-pointer": !_ctx.disabled && !_ctx.skeleton,
48
+ "w-ripple w-ripple-hover cursor-pointer": !unref(isDisabled) && !unref(isSkeleton),
46
49
  "text-primary dark:text-primary-dark": _ctx.active && _ctx.semanticType === unref(SemanticType).SECONDARY,
47
50
  [unref(semanticTypeBackgroundMap)[_ctx.semanticType]]: true
48
51
  }])
@@ -59,19 +62,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
62
  _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
60
63
  key: 0,
61
64
  class: normalizeClass(["square-6 w-svg-stroke-width-sm transition-transform", {
62
- "group-hover:scale-120": !_ctx.disabled
65
+ "group-hover:scale-120": !unref(isDisabled)
63
66
  }])
64
67
  }, null, 8, ["class"])) : createCommentVNode("", true)
65
68
  ]),
66
- !_ctx.disabled && !unref(isBackdrop) ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true)
69
+ !unref(isDisabled) && !unref(isBackdrop) ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true)
67
70
  ], 2)),
68
71
  _ctx.titleText ? (openBlock(), createElementBlock("div", {
69
72
  key: 2,
70
73
  class: normalizeClass(["text-3xs mt-1 text-center", {
71
- "self-center": !_ctx.skeleton
74
+ "self-center": !unref(isSkeleton)
72
75
  }])
73
76
  }, [
74
- _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
77
+ unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
75
78
  createTextVNode(toDisplayString(_ctx.title), 1)
76
79
  ], 64))
77
80
  ], 2)) : createCommentVNode("", true),
@@ -21,6 +21,7 @@ declare function __VLS_template(): {
21
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
22
  declare const __VLS_component: import('vue').DefineComponent<ButtonDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonDropdownProps> & Readonly<{}>, {
23
23
  maxHeight: number;
24
+ disabled: boolean;
24
25
  maxWidth: number;
25
26
  horizontalAlign: HorizontalAlign;
26
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"AAqEA;AA0GA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAEhD,OAAO,E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C,KAAK,EAAE;YAAC,KAAK,EAAE,OAAO,KAAK,CAAA;SAAC,KAAK,KAAK,EAAE;;;;EA4LpD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;6EAQnB,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"}
@@ -12,10 +12,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  props: {
13
13
  semanticType: {},
14
14
  leftToggle: { type: Boolean },
15
- disabled: { type: Boolean },
15
+ disabled: { type: Boolean, default: void 0 },
16
16
  tooltipText: {},
17
17
  parentElement: {},
18
18
  top: { type: Boolean },
19
+ bottom: { type: Boolean },
19
20
  horizontalAlign: { default: HorizontalAlign.LEFT_INNER },
20
21
  maxHeight: { default: 200 },
21
22
  maxWidth: { default: 320 }
@@ -11,7 +11,7 @@ declare const _default: <Model extends number | string | null | boolean, Entity
11
11
  title?(_: {}): any;
12
12
  subtitle?(_: {}): any;
13
13
  option?(_: {
14
- option: Model | Entity;
14
+ option: any;
15
15
  selected: boolean;
16
16
  }): any;
17
17
  option?(_: {
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"AAgGA;AA4IA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;yBAU5B,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,M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AAG,SAAS,GAAG,SAAS,EACpL,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA0PO,mBAAmB,CAAC;;yMAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA1CgB,GAAG;0BACA,GAAG;;;;YACL,GAAG;;;;YACF,GAAG;uBACJ,GAAG;;cAxMzB,oBAAoB,SAAS,KAAK,KAAG,IAAI;EAkP3C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArQzE,wBAqQ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, createElementBlock, createCommentVNode, resolveDynamicComponent, Fragment, createTextVNode, toDisplayString, normalizeClass, renderList, unref } from 'vue';
2
2
  import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
3
3
  import { SemanticType } from '../../utils/SemanticType.js';
4
+ import { useComponentStates } from '../../utils/useComponentStates.js';
4
5
  import _sfc_main$2 from './WButton.vue.js';
5
6
 
6
7
  const _hoisted_1 = { class: "flex gap-1" };
@@ -9,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
10
  __name: "WButtonGroup",
10
11
  props: {
11
12
  list: {},
12
- valueGetter: { type: Function },
13
+ valueGetter: {},
13
14
  optionComponent: {},
14
15
  modelValue: {},
15
16
  wrap: { type: Boolean },
@@ -25,9 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
26
  maxLength: {},
26
27
  mono: { type: Boolean },
27
28
  hasChanges: { type: Boolean },
28
- skeleton: { type: Boolean },
29
- disabled: { type: Boolean },
30
- readonly: { type: Boolean },
29
+ skeleton: { type: Boolean, default: void 0 },
30
+ disabled: { type: Boolean, default: void 0 },
31
+ readonly: { type: Boolean, default: void 0 },
31
32
  required: { type: Boolean },
32
33
  mandatory: { type: Boolean },
33
34
  noMargin: { type: Boolean },
@@ -46,6 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
47
  setup(__props, { emit: __emit }) {
47
48
  const props = __props;
48
49
  const emit = __emit;
50
+ const { isDisabled, isReadonly } = useComponentStates(props);
49
51
  const loadingItem = ref(void 0);
50
52
  const getValue = (item) => {
51
53
  if (props.valueGetter && typeof item === "object") {
@@ -119,7 +121,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
121
  ...props,
120
122
  semanticType: getValue(item) === _ctx.modelValue ? _ctx.semanticType ?? unref(SemanticType).PRIMARY : unref(SemanticType).SECONDARY,
121
123
  loading: _ctx.loading && getValue(item) === loadingItem.value,
122
- disabled: _ctx.disabled || _ctx.loading && getValue(item) !== loadingItem.value,
124
+ disabled: unref(isDisabled) || unref(isReadonly) || _ctx.loading && getValue(item) !== loadingItem.value,
123
125
  join: !_ctx.wrap && !_ctx.col,
124
126
  tooltipText: void 0
125
127
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"WChartLine.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/WChartLine.vue"],"names":[],"mappings":"AAiJA;AAoYA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;yBAMxB,IAAI,SAAS,MAAM,CAAC,MAAM,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AAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA4cO,mBAAmB,CAAC;cAxcpB,IAAI,EAAE;cACN,MAAM,IAAI;cACV,MAAM,IAAI;kBACN,MAAM,IAAI;kBACV,MAAM,IAAI;sBACN,OAAO,GAAG,QAAQ,GAAG,QAAQ;sBAC7B,MAAM;kBACV,OAAO;qBACJ,OAAO;sBACN,MAAM;oBACR,MAAM;mCA8b0E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;mCAjPmB,MAAM,KAAG,MAAM;;;YAkMf,GAAG;;;;;;YACJ,GAAG;uBACL,GAAG;;UA+CvB,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvdzE,wBAud4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -13,15 +13,9 @@ const _hoisted_9 = ["cx", "cy", "r"];
13
13
  const _hoisted_10 = { key: 0 };
14
14
  const _hoisted_11 = ["transform"];
15
15
  const _hoisted_12 = ["x", "y1", "y2"];
16
- const _hoisted_13 = ["y"];
16
+ const _hoisted_13 = ["height", "y"];
17
17
  const _hoisted_14 = ["fill", "mask"];
18
- const _hoisted_15 = {
19
- key: 1,
20
- y: "0",
21
- x: "0",
22
- width: "100%",
23
- height: "100%"
24
- };
18
+ const _hoisted_15 = ["x"];
25
19
  const _hoisted_16 = { class: "text-description text-2xs flex size-full cursor-not-allowed items-center opacity-40" };
26
20
  const ROUND_FACTOR = 100;
27
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -71,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
65
  });
72
66
  const dataFiltered = computed(
73
67
  () => props.data.filter(
74
- (data) => typeof data[props.yKey] === "number" && typeof data[props.xKey] === "number" && data[props.xKey] >= props.xExtent[0] && data[props.xKey] <= props.xExtent[1]
68
+ (data, index, array) => data[props.xKey] >= props.xExtent[0] || data[props.xKey] <= props.xExtent[1] || array[index + 1][props.xKey] >= props.xExtent[0] || array[index - 1][props.xKey] <= props.xExtent[1]
75
69
  )
76
70
  );
77
71
  const round = (value) => Math.round(value * ROUND_FACTOR) / ROUND_FACTOR;
@@ -82,21 +76,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
76
  y: round(props.scaleY(d[props.yKey])),
83
77
  yMin: round(props.scaleY(d[props.yKeyMin])),
84
78
  yMax: round(props.scaleY(d[props.yKeyMax])),
85
- d
79
+ d,
80
+ imagine: false
86
81
  };
87
82
  item.yMin = props.yKeyMin && typeof d[props.yKeyMin] === "number" ? round(props.scaleY(d[props.yKeyMin])) : item.y;
88
83
  item.yMax = props.yKeyMax && typeof d[props.yKeyMax] === "number" ? round(props.scaleY(d[props.yKeyMax])) : item.y;
89
84
  return item;
90
85
  });
86
+ if (result.length === 0) return result;
91
87
  const lastIndex = result.length - 1;
92
- if (result[lastIndex] && result[lastIndex].x !== props.left) result.push({ ...result[lastIndex], x: props.left });
93
- if (result[0] && result[0].x !== props.right) result.unshift({ ...result[0], x: props.svgWidth - props.right });
88
+ if (result[lastIndex].x !== props.left) result.push({ ...result[lastIndex], x: props.left, imagine: true });
89
+ if (result[0].x !== props.svgWidth - props.right) result.unshift({ ...result[0], x: props.svgWidth - props.right, imagine: true });
94
90
  return result;
95
91
  });
96
92
  const tooltipData = computed(() => {
97
93
  return preparedData.value.slice(
98
- preparedData.value[0]?.d === preparedData.value[1]?.d ? 1 : 0,
99
- preparedData.value[preparedData.value.length - 1]?.d === preparedData.value[preparedData.value.length - 2]?.d ? -1 : void 0
94
+ preparedData.value[0]?.imagine ? 1 : 0,
95
+ preparedData.value[preparedData.value.length - 1]?.imagine ? -1 : void 0
100
96
  ).reverse();
101
97
  });
102
98
  const hoveredData = computed(() => {
@@ -293,10 +289,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
293
289
  y2: _ctx.svgHeight - _ctx.bottom,
294
290
  stroke: "currentColor",
295
291
  "stroke-width": "1",
296
- class: "text-description pointer-events-none"
292
+ class: "pointer-events-none text-gray-400 dark:text-gray-600"
297
293
  }, null, 8, _hoisted_12)) : createCommentVNode("", true),
298
294
  (openBlock(), createElementBlock("foreignObject", {
299
- y: _ctx.svgHeight - _ctx.bottom
295
+ height: _ctx.svgHeight - _ctx.bottom - 9,
296
+ y: _ctx.top + 4.5
300
297
  }, [
301
298
  createVNode(_sfc_main$1, {
302
299
  ref: "tooltip",
@@ -323,13 +320,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
323
320
  mask: `url(#${unref(maskId)})`,
324
321
  class: "pointer-events-none transition-[color]"
325
322
  }, null, 8, _hoisted_14)
326
- ])) : (openBlock(), createElementBlock("foreignObject", _hoisted_15, [
323
+ ])) : (openBlock(), createElementBlock("foreignObject", {
324
+ key: 1,
325
+ y: "0",
326
+ x: _ctx.left,
327
+ width: "100%",
328
+ height: "100%"
329
+ }, [
327
330
  createElementVNode("div", _hoisted_16, [
328
331
  renderSlot(_ctx.$slots, "empty", {}, () => [
329
332
  createElementVNode("div", null, toDisplayString(_ctx.emptyStub ?? "No data"), 1)
330
333
  ])
331
334
  ])
332
- ]));
335
+ ], 8, _hoisted_15));
333
336
  };
334
337
  }
335
338
  });
@@ -29,6 +29,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
29
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
30
30
  updateSize: () => void;
31
31
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
32
+ skeleton: boolean;
32
33
  bottom: number;
33
34
  left: number;
34
35
  right: number;
@@ -1 +1 @@
1
- {"version":3,"file":"WChartLinear.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/WChartLinear.vue"],"names":[],"mappings":"AAoDA;AAqKA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAC,KAAK,KAAK,EAAmE,MAAM,KAAK,CAAA;AAShG,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAsGJ,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;iBA7GvC,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,EAAE;;iBAAhC,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,EAAE;;;;;;EAkH1C;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;YAlOR,MAAM;UAC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CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,EAAE;;iBAAhC,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,EAAE;;;;;;EAmH1C;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;cApON,OAAO;YAHT,MAAM;UACR,MAAM;WACL,MAAM;SAHR,MAAM;YAJH,MAAM;mBADC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC;aAIpD,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;;;kBAmPrC,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"}
@@ -1,7 +1,8 @@
1
- import { defineComponent, ref, useTemplateRef, computed, watch, onMounted, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, unref } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, watch, onMounted, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, renderSlot } from 'vue';
2
2
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
3
3
  import DOMListenerContainer from '../../utils/DOMListenerContainer.js';
4
4
  import { dateFormat } from '../../utils/dateTime.js';
5
+ import { useComponentStatesSkeleton } from '../../utils/useComponentStates.js';
5
6
  import _sfc_main$1 from './components/ChartAxis.vue.js';
6
7
 
7
8
  const _hoisted_1 = ["height", "width"];
@@ -18,10 +19,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
19
  bottom: { default: 20 },
19
20
  left: { default: 40 },
20
21
  right: { default: 32 },
21
- skeleton: { type: Boolean }
22
+ skeleton: { type: Boolean, default: void 0 }
22
23
  },
23
24
  setup(__props, { expose: __expose }) {
24
25
  const props = __props;
26
+ const { isSkeleton } = useComponentStatesSkeleton(props);
25
27
  const svgWidth = ref(0);
26
28
  const svgHeight = ref(props.height);
27
29
  const containerRef = useTemplateRef("container");
@@ -76,12 +78,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
78
  return openBlock(), createElementBlock("div", {
77
79
  ref: "container",
78
80
  class: normalizeClass({
79
- "size-full cursor-progress": _ctx.skeleton
81
+ "size-full cursor-progress": unref(isSkeleton)
80
82
  })
81
83
  }, [
82
- _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
84
+ unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton, {
83
85
  key: 0,
84
- class: "w-skeleton-w-full w-skeleton-h-full w-skeleton-rounded-3xl"
86
+ class: "w-skeleton-w-full w-skeleton-h-full w-skeleton-rounded-2xl"
85
87
  })) : svgWidth.value !== 0 && svgHeight.value !== 0 ? (openBlock(), createElementBlock("svg", {
86
88
  key: 1,
87
89
  height: svgHeight.value,
@@ -104,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
106
  format: _ctx.yFormat,
105
107
  transform: `translate(${_ctx.left}, 0)`
106
108
  }, null, 8, ["domain", "format", "transform"])) : createCommentVNode("", true),
107
- !_ctx.skeleton ? renderSlot(_ctx.$slots, "default", {
109
+ !unref(isSkeleton) ? renderSlot(_ctx.$slots, "default", {
108
110
  key: 2,
109
111
  scaleX,
110
112
  scaleY,
@@ -14,7 +14,11 @@ declare const __VLS_component: import('vue').DefineComponent<CheckboxProps, {},
14
14
  "update:modelValue": (value: boolean) => any;
15
15
  }, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
16
16
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
17
+ }>, {
18
+ skeleton: boolean;
19
+ readonly: boolean;
20
+ disabled: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
22
  element: HTMLButtonElement;
19
23
  }, any>;
20
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AA4FA;AAyHA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAA;AA6B1C,iBAAS,cAAc;WAmJT,OAAO,IAA6B;;yBAXpB,GAAG;;;;;;EAgBhC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;OAQnB,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"}
1
+ {"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AA4FA;AAoIA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAA;AA6C1C,iBAAS,cAAc;WAmJT,OAAO,IAA6B;;yBAXpB,GAAG;;;;;;EAgBhC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;OASnB,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"}
@@ -1,7 +1,8 @@
1
- import { defineComponent, useTemplateRef, createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, withKeys, normalizeClass, withModifiers, createVNode, createBlock, withDirectives, Transition, withCtx, vShow, resolveDynamicComponent, unref, renderSlot, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, useTemplateRef, createElementBlock, openBlock, mergeProps, unref, createElementVNode, createCommentVNode, withKeys, normalizeClass, withModifiers, createVNode, createBlock, withDirectives, Transition, withCtx, vShow, resolveDynamicComponent, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
2
  import WSpinner from '../Spinner/WSpinner.vue.js';
3
3
  import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
4
4
  import IconCheck from '../../assets/icons/default/IconCheck.svg.js';
5
+ import { useComponentStates } from '../../utils/useComponentStates.js';
5
6
 
6
7
  const _hoisted_1 = ["onKeypress"];
7
8
  const _hoisted_2 = {
@@ -14,11 +15,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  props: {
15
16
  modelValue: { type: [Boolean, null] },
16
17
  title: {},
17
- disabled: { type: Boolean },
18
- readonly: { type: Boolean },
18
+ disabled: { type: Boolean, default: void 0 },
19
+ readonly: { type: Boolean, default: void 0 },
19
20
  icon: {},
20
21
  radio: { type: Boolean },
21
22
  loading: { type: Boolean },
23
+ skeleton: { type: Boolean, default: void 0 },
22
24
  intermediate: { type: Boolean },
23
25
  tooltipText: {},
24
26
  alignTop: { type: Boolean },
@@ -28,19 +30,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
30
  emits: ["update:modelValue"],
29
31
  setup(__props, { emit: __emit }) {
30
32
  const props = __props;
33
+ const { isReadonly, isDisabled, isSkeleton } = useComponentStates(props);
31
34
  const emit = __emit;
32
35
  const elementRef = useTemplateRef("element");
33
36
  const toggle = () => {
34
- if (props.disabled || props.readonly || props.loading) return;
37
+ if (isDisabled.value || isReadonly.value || props.loading || isSkeleton.value) return;
35
38
  emit("update:modelValue", !props.modelValue);
36
39
  };
37
40
  return (_ctx, _cache) => {
38
41
  return openBlock(), createElementBlock("button", mergeProps({ ref: "element" }, { class: _ctx.$attrs.class, style: _ctx.$attrs.style }, {
39
42
  class: ["w-ripple-trigger w-hover-circle-trigger w-hover-circle-opacity-[0.08] flex select-none gap-2 outline-none", {
40
- "cursor-progress": _ctx.loading,
41
- "cursor-not-allowed opacity-70": _ctx.disabled,
42
- "cursor-pointer": !_ctx.disabled && !_ctx.loading && !_ctx.readonly,
43
- "cursor-auto": _ctx.readonly,
43
+ "cursor-progress": _ctx.loading || unref(isSkeleton),
44
+ "cursor-not-allowed opacity-70": unref(isDisabled) || unref(isSkeleton),
45
+ "cursor-pointer": !unref(isDisabled) && !_ctx.loading && !unref(isReadonly) && !unref(isSkeleton),
46
+ "cursor-auto": unref(isReadonly),
44
47
  "pb-4 pt-1": _ctx.title && !_ctx.noMargin,
45
48
  "items-start": _ctx.alignTop,
46
49
  "items-center": !_ctx.alignTop
@@ -49,14 +52,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
52
  }), [
50
53
  createElementVNode("div", {
51
54
  class: normalizeClass(["square-[1.5em] bg-default dark:bg-default-dark relative isolate flex items-center justify-center border border-solid [font-size:--w-checkbox-size]", {
52
- "text-default": _ctx.modelValue && !_ctx.disabled,
53
- "text-primary dark:text-primary-dark": !_ctx.modelValue && !_ctx.disabled,
54
- "text-gray-300 dark:text-gray-700": !_ctx.modelValue && _ctx.disabled,
55
- "w-ripple w-hover-circle before:text-accent after:text-accent": !_ctx.disabled && !_ctx.readonly,
55
+ "text-default": _ctx.modelValue && !unref(isDisabled) && !unref(isSkeleton),
56
+ "text-primary dark:text-primary-dark": !_ctx.modelValue && !unref(isDisabled) && !unref(isSkeleton),
57
+ "text-gray-300 dark:text-gray-700": !_ctx.modelValue && unref(isDisabled) && !unref(isSkeleton),
58
+ "w-ripple w-hover-circle before:text-accent after:text-accent": !unref(isDisabled) && !unref(isReadonly) && !unref(isSkeleton),
56
59
  "rounded-full": _ctx.radio,
57
60
  "rounded-md": !_ctx.radio,
58
- "border-gray-300 dark:border-gray-700": _ctx.disabled,
59
- "border-primary dark:border-primary-dark [.w-hover-checked:hover_&]:text-default": !_ctx.disabled
61
+ "border-gray-300 dark:border-gray-700": unref(isDisabled) || unref(isSkeleton),
62
+ "border-primary dark:border-primary-dark [.w-hover-checked:hover_&]:text-default": !unref(isDisabled) && !unref(isSkeleton)
60
63
  }]),
61
64
  onKeypress: withKeys(withModifiers(toggle, ["stop", "prevent"]), ["enter"])
62
65
  }, [
@@ -74,8 +77,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
77
  "scale-[0.66] rounded": !_ctx.radio && _ctx.intermediate && _ctx.modelValue === null,
75
78
  "scale-[0.66] rounded-full": _ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
76
79
  "rounded": !_ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
77
- "bg-primary dark:bg-primary-dark [.w-hover-checked:hover_&]:[display:block!important]": !_ctx.disabled,
78
- "bg-gray-300 dark:bg-gray-700": _ctx.disabled,
80
+ "bg-primary dark:bg-primary-dark [.w-hover-checked:hover_&]:[display:block!important]": !unref(isDisabled) && !unref(isSkeleton),
81
+ "bg-gray-300 dark:bg-gray-700": unref(isDisabled) || unref(isSkeleton),
79
82
  "transition-[opacity,transform]": !_ctx.lessTransitions
80
83
  }])
81
84
  }, null, 2), [
@@ -93,12 +96,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
96
  })) : !_ctx.radio ? withDirectives((openBlock(), createBlock(unref(IconCheck), {
94
97
  key: 2,
95
98
  class: normalizeClass(["square-[1em]", {
96
- "[.w-hover-checked:hover_&]:[display:block!important]": !_ctx.disabled
99
+ "[.w-hover-checked:hover_&]:[display:block!important]": !unref(isDisabled) && !unref(isSkeleton)
97
100
  }])
98
101
  }, null, 8, ["class"])), [
99
102
  [vShow, _ctx.modelValue]
100
103
  ]) : createCommentVNode("", true),
101
- _ctx.tooltipText && !_ctx.disabled ? (openBlock(), createBlock(_sfc_main$1, {
104
+ _ctx.tooltipText && !unref(isDisabled) && !unref(isSkeleton) ? (openBlock(), createBlock(_sfc_main$1, {
102
105
  key: 3,
103
106
  text: _ctx.tooltipText,
104
107
  trigger: unref(elementRef),
@@ -11,6 +11,7 @@ export interface CheckboxProps {
11
11
  icon?: SVGComponent;
12
12
  radio?: boolean;
13
13
  loading?: boolean;
14
+ skeleton?: boolean;
14
15
  intermediate?: boolean;
15
16
  tooltipText?: string;
16
17
  alignTop?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,MAAM,wBAAwB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAC,CAAA;AAE/F,MAA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