eco-vue-js 0.10.81 → 0.10.83

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 (125) 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 +2 -2
  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 +12 -9
  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 +7 -5
  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 +4 -2
  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/Select/WSelect.vue.d.ts.map +1 -1
  87. package/dist/components/Select/WSelect.vue.js +23 -20
  88. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  89. package/dist/components/Select/WSelectAsync.vue.js +15 -12
  90. package/dist/components/Select/WSelectAsyncList.vue.d.ts +2 -0
  91. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  92. package/dist/components/Select/WSelectAsyncList.vue.js +12 -6
  93. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  94. package/dist/components/Select/WSelectAsyncSingle.vue.js +6 -5
  95. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  96. package/dist/components/Select/WSelectSingle.vue.js +8 -7
  97. package/dist/components/Select/WSelectStringified.vue.d.ts.map +1 -1
  98. package/dist/components/Select/WSelectStringified.vue.js +8 -7
  99. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  100. package/dist/components/Toggle/WToggle.vue.js +16 -12
  101. package/dist/components/Toggle/WToggleTheme.vue.js +2 -1
  102. package/dist/components/Toggle/types.d.ts +1 -0
  103. package/dist/components/Toggle/types.d.ts.map +1 -1
  104. package/dist/components/Tooltip/WTooltip.vue.d.ts +2 -0
  105. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  106. package/dist/components/Tooltip/WTooltip.vue.js +4 -0
  107. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -0
  108. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  109. package/dist/components/Tooltip/WTooltipContainer.vue.js +3 -1
  110. package/dist/components/Tooltip/models/tooltipMeta.d.ts +6 -0
  111. package/dist/components/Tooltip/models/tooltipMeta.d.ts.map +1 -1
  112. package/dist/main.d.ts +2 -0
  113. package/dist/main.d.ts.map +1 -1
  114. package/dist/main.js +2 -0
  115. package/dist/types/global.d.ts +1 -1
  116. package/dist/utils/api.d.ts +1 -0
  117. package/dist/utils/api.d.ts.map +1 -1
  118. package/dist/utils/api.js +4 -1
  119. package/dist/utils/provide.d.ts +5 -0
  120. package/dist/utils/provide.d.ts.map +1 -0
  121. package/dist/utils/provide.js +19 -0
  122. package/dist/utils/useComponentStates.d.ts +19 -0
  123. package/dist/utils/useComponentStates.d.ts.map +1 -0
  124. package/dist/utils/useComponentStates.js +36 -0
  125. package/package.json +4 -1
@@ -15,10 +15,12 @@ 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;
19
20
  to: import('vue-router').RouterLinkProps["to"];
20
21
  tag: "a" | "button";
21
22
  semanticType: SemanticType;
23
+ disabled: boolean;
22
24
  target: "_self" | "_blank" | "_parent" | "_top";
23
25
  href: string;
24
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -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,11 +26,13 @@ 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;
30
31
  to: import('vue-router').RouterLinkProps["to"];
31
32
  icon: SVGComponent;
32
33
  tag: "button" | "a";
33
34
  semanticType: SemanticType;
35
+ disabled: boolean;
34
36
  tooltipText: string;
35
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
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,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;AAm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AC9D,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"}
@@ -16,8 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  tag: { default: "button" },
17
17
  count: { default: void 0 },
18
18
  semanticType: { default: SemanticType.SECONDARY },
19
- disabled: { type: Boolean },
20
- skeleton: { type: Boolean },
19
+ disabled: { type: Boolean, default: void 0 },
20
+ skeleton: { type: Boolean, default: void 0 },
21
21
  tooltipText: { default: void 0 },
22
22
  titleText: { type: Boolean },
23
23
  to: { default: void 0 }
@@ -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,EAAC,KAAK,KAAK,EAAM,MAAM,KAAK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AAO,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,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC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,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,EAAE,MAAM,CAAC,EACnD,aAAa,WAA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D,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,7 +13,7 @@ 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
18
  const _hoisted_15 = ["x"];
19
19
  const _hoisted_16 = { class: "text-description text-2xs flex size-full cursor-not-allowed items-center opacity-40" };
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  });
66
66
  const dataFiltered = computed(
67
67
  () => props.data.filter(
68
- (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]
69
69
  )
70
70
  );
71
71
  const round = (value) => Math.round(value * ROUND_FACTOR) / ROUND_FACTOR;
@@ -76,21 +76,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
76
  y: round(props.scaleY(d[props.yKey])),
77
77
  yMin: round(props.scaleY(d[props.yKeyMin])),
78
78
  yMax: round(props.scaleY(d[props.yKeyMax])),
79
- d
79
+ d,
80
+ imagine: false
80
81
  };
81
82
  item.yMin = props.yKeyMin && typeof d[props.yKeyMin] === "number" ? round(props.scaleY(d[props.yKeyMin])) : item.y;
82
83
  item.yMax = props.yKeyMax && typeof d[props.yKeyMax] === "number" ? round(props.scaleY(d[props.yKeyMax])) : item.y;
83
84
  return item;
84
85
  });
86
+ if (result.length === 0) return result;
85
87
  const lastIndex = result.length - 1;
86
- if (result[lastIndex] && result[lastIndex].x !== props.left) result.push({ ...result[lastIndex], x: props.left });
87
- 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 });
88
90
  return result;
89
91
  });
90
92
  const tooltipData = computed(() => {
91
93
  return preparedData.value.slice(
92
- preparedData.value[0]?.d === preparedData.value[1]?.d ? 1 : 0,
93
- 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
94
96
  ).reverse();
95
97
  });
96
98
  const hoveredData = computed(() => {
@@ -287,10 +289,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
287
289
  y2: _ctx.svgHeight - _ctx.bottom,
288
290
  stroke: "currentColor",
289
291
  "stroke-width": "1",
290
- class: "text-description pointer-events-none"
292
+ class: "pointer-events-none text-gray-400 dark:text-gray-600"
291
293
  }, null, 8, _hoisted_12)) : createCommentVNode("", true),
292
294
  (openBlock(), createElementBlock("foreignObject", {
293
- y: _ctx.svgHeight - _ctx.bottom
295
+ height: _ctx.svgHeight - _ctx.bottom - 9,
296
+ y: _ctx.top + 4.5
294
297
  }, [
295
298
  createVNode(_sfc_main$1, {
296
299
  ref: "tooltip",
@@ -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,O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{ 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,10 +78,10 @@ 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
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", {
@@ -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,OA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CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,CAChN,SAAQ,8BAA8B,CAAC,KAAK,CAAC;IAC7C,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAAA;IAClC,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,CAAA;IACrD,eAAe,CAAC,EAAE,4BAA4B,CAAC,MAAM,CAAC,CAAA;CACvD;AAED,MAAM,MAAM,0BAA0B,CAAC,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,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,IAAI,mCAAmC,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,kCAAkC,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAA"}
@@ -13,7 +13,11 @@ declare function __VLS_template(): {
13
13
  rootEl: any;
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ skeleton: boolean;
18
+ text: string;
19
+ semanticType: SemanticType;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
22
  export default _default;
19
23
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"WChip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/WChip.vue"],"names":[],"mappings":"AAgBA;AAwCA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAEjD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAcF,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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":"WChip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/WChip.vue"],"names":[],"mappings":"AAgBA;AAkDA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAGjD,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA4BJ,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAtFN,OAAO;UAFX,MAAM;kBACE,YAAY;6EA8F7B,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,15 +1,18 @@
1
- import { defineComponent, createBlock, createElementBlock, openBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, createBlock, createElementBlock, unref, openBlock, normalizeClass, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
2
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
3
3
  import { SemanticType } from '../../utils/SemanticType.js';
4
+ import { useComponentStatesSkeleton } from '../../utils/useComponentStates.js';
4
5
 
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "WChip",
7
8
  props: {
8
- text: {},
9
- semanticType: {},
10
- skeleton: { type: Boolean }
9
+ text: { default: void 0 },
10
+ semanticType: { default: SemanticType.SECONDARY },
11
+ skeleton: { type: Boolean, default: void 0 }
11
12
  },
12
13
  setup(__props) {
14
+ const props = __props;
15
+ const { isSkeleton } = useComponentStatesSkeleton(props);
13
16
  const classMap = {
14
17
  [SemanticType.PRIMARY]: "text-primary dark:text-primary-dark",
15
18
  [SemanticType.SECONDARY]: "text-description",
@@ -19,12 +22,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
22
  [SemanticType.INFO]: "text-info dark:text-info-dark"
20
23
  };
21
24
  return (_ctx, _cache) => {
22
- return _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
25
+ return unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton, {
23
26
  key: 0,
24
27
  class: "w-skeleton-h-5 max-w-28"
25
28
  })) : (openBlock(), createElementBlock("div", {
26
29
  key: 1,
27
- class: normalizeClass(["w-min rounded-md bg-gray-100 px-2 py-0.5 text-xs font-semibold dark:bg-gray-800", classMap[_ctx.semanticType ?? unref(SemanticType).SECONDARY]])
30
+ class: normalizeClass(["w-min rounded-md bg-gray-100 px-2 py-0.5 text-xs font-semibold dark:bg-gray-800", classMap[_ctx.semanticType]])
28
31
  }, [
29
32
  renderSlot(_ctx.$slots, "default", {}, () => [
30
33
  createTextVNode(toDisplayString(_ctx.text), 1)
@@ -4,11 +4,19 @@ type __VLS_Props = {
4
4
  minDate?: Date;
5
5
  maxDate?: Date;
6
6
  readonly?: boolean;
7
+ disabled?: boolean;
8
+ skeleton?: boolean;
7
9
  };
8
10
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
11
  "update:modelValue": (value: DateRange | undefined) => any;
10
12
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
13
  "onUpdate:modelValue"?: ((value: DateRange | undefined) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ }>, {
15
+ skeleton: boolean;
16
+ readonly: boolean;
17
+ disabled: boolean;
18
+ minDate: Date;
19
+ maxDate: Date;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
21
  export default _default;
14
22
  //# sourceMappingURL=WDatePicker.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePicker.vue"],"names":[],"mappings":"AA8DA;AA6JA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAU7C,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;;;AAoSF,wBAQG"}
1
+ {"version":3,"file":"WDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePicker.vue"],"names":[],"mappings":"AA8DA;AA2KA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAW7C,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;;;;cADW,OAAO;cAFP,OAAO;cACP,OAAO;aAHR,IAAI;aACJ,IAAI;;AA8TlB,wBASG"}