eco-vue-js 0.10.43 → 0.10.45

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 (59) hide show
  1. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +3 -9
  2. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
  3. package/dist/components/BottomSheet/WBottomSheet.vue.js +25 -81
  4. package/dist/components/Button/WButton.vue.d.ts +1 -0
  5. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButton.vue.js +16 -3
  7. package/dist/components/Button/WButtonTab.vue.d.ts +2 -0
  8. package/dist/components/Button/WButtonTab.vue.d.ts.map +1 -1
  9. package/dist/components/Button/WButtonTab.vue.js +14 -5
  10. package/dist/components/Button/types.d.ts +1 -0
  11. package/dist/components/Button/types.d.ts.map +1 -1
  12. package/dist/components/Checkbox/WCheckbox.vue.js +3 -2
  13. package/dist/components/Checkbox/WCheckboxGroup.vue.d.ts.map +1 -1
  14. package/dist/components/Checkbox/WCheckboxGroup.vue.js +41 -34
  15. package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.d.ts +31 -0
  16. package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.d.ts.map +1 -0
  17. package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.js +140 -0
  18. package/dist/components/Checkbox/WCheckboxGroupMultiple.vue2.js +5 -0
  19. package/dist/components/Checkbox/types.d.ts +35 -5
  20. package/dist/components/Checkbox/types.d.ts.map +1 -1
  21. package/dist/components/Dismissable/WDismissable.vue.d.ts +34 -0
  22. package/dist/components/Dismissable/WDismissable.vue.d.ts.map +1 -0
  23. package/dist/components/Dismissable/WDismissable.vue.js +85 -0
  24. package/dist/components/Dismissable/WDismissable.vue2.js +5 -0
  25. package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -1
  26. package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts +2 -0
  27. package/dist/components/HeaderBar/WHeaderBarSearch.vue.d.ts.map +1 -1
  28. package/dist/components/HeaderBar/WHeaderBarSearch.vue.js +4 -1
  29. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  30. package/dist/components/Input/WInput.vue.js +9 -5
  31. package/dist/components/List/components/ListFilterGlobal.vue.d.ts.map +1 -1
  32. package/dist/components/List/components/ListFilterGlobal.vue.js +2 -3
  33. package/dist/components/List/components/ListFilterLocal.vue.d.ts.map +1 -1
  34. package/dist/components/List/components/ListFilterLocal.vue.js +32 -21
  35. package/dist/components/Modal/WModalStepper.vue.d.ts +8 -0
  36. package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
  37. package/dist/components/Skeleton/WSkeleton.vue.d.ts +16 -1
  38. package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
  39. package/dist/components/Skeleton/WSkeleton.vue.js +4 -2
  40. package/dist/components/Status/WStatusIcon.vue.d.ts +7 -0
  41. package/dist/components/Status/WStatusIcon.vue.d.ts.map +1 -0
  42. package/dist/components/Status/WStatusIcon.vue.js +28 -0
  43. package/dist/components/Status/WStatusIcon.vue2.js +5 -0
  44. package/dist/components/Tabs/WTabs.vue.d.ts +6 -0
  45. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  46. package/dist/components/Tabs/WTabs.vue.js +5 -3
  47. package/dist/components/Tabs/WTabsItem.vue.js +2 -1
  48. package/dist/components/Tabs/components/TabTitleButton.vue.d.ts +1 -0
  49. package/dist/components/Tabs/components/TabTitleButton.vue.d.ts.map +1 -1
  50. package/dist/components/Tabs/components/TabTitleButton.vue.js +6 -3
  51. package/dist/components/Tabs/types.d.ts +2 -0
  52. package/dist/components/Tabs/types.d.ts.map +1 -1
  53. package/dist/imports/componentsPlugin.d.ts +4 -1
  54. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  55. package/dist/main.js +4 -1
  56. package/dist/utils/utils.d.ts +1 -0
  57. package/dist/utils/utils.d.ts.map +1 -1
  58. package/dist/utils/utils.js +2 -1
  59. package/package.json +10 -1
@@ -12,21 +12,15 @@ declare function __VLS_template(): {
12
12
  }): any;
13
13
  content?(_: {}): any;
14
14
  };
15
- refs: {
16
- backdrop: HTMLDivElement;
17
- content: HTMLDivElement;
18
- };
19
- rootEl: HTMLDivElement;
15
+ refs: {};
16
+ rootEl: any;
20
17
  };
21
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
19
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
20
  close: () => any;
24
21
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
22
  onClose?: (() => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
- backdrop: HTMLDivElement;
28
- content: HTMLDivElement;
29
- }, HTMLDivElement>;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
25
  export default _default;
32
26
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AA6DA;AA+HA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC;AAwDF,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;;;YAdtB,GAAG;;;YACF,GAAG;yBACF,GAAG;;;;;;;EAiBhC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;kBASnB,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":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AAiCA;AA2DA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC;AAYF,iBAAS,cAAc;WAiFT,OAAO,IAA6B;;;;YAZtB,GAAG;;;YACF,GAAG;yBACF,GAAG;;;;EAehC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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,100 +1,44 @@
1
- import { defineComponent, inject, useTemplateRef, ref, watch, onBeforeUnmount, createElementBlock, openBlock, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, unref, createElementVNode, normalizeClass } from 'vue';
2
- import { wBaseZIndex, BASE_ZINDEX_DROPDOWN } from '../../utils/utils.js';
1
+ import { defineComponent, inject, createElementBlock, openBlock, Fragment, renderSlot, createBlock, Teleport, createVNode, normalizeStyle, unref, withCtx, createElementVNode } from 'vue';
2
+ import _sfc_main$1 from '../Dismissable/WDismissable.vue.js';
3
+ import { wBaseZIndex, BASE_ZINDEX_BOTTOM_SHEET } from '../../utils/utils.js';
3
4
 
4
- const _hoisted_1 = {
5
- ref: "content",
6
- class: "height-[90%] bg-default dark:bg-default-dark relative grid snap-end grid-cols-[1fr] grid-rows-[auto,1fr] rounded-t-3xl shadow-md"
7
- };
8
- const _hoisted_2 = { class: "px-3" };
9
- const _hoisted_3 = { class: "flex h-9 items-center justify-center" };
10
- const _hoisted_4 = { class: "overflow-y-auto overflow-x-hidden overscroll-contain" };
5
+ const _hoisted_1 = { class: "px-3" };
6
+ const _hoisted_2 = { class: "overflow-y-auto overflow-x-hidden overscroll-contain" };
11
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
8
  __name: "WBottomSheet",
13
9
  props: {
14
10
  isOpen: { type: Boolean }
15
11
  },
16
12
  emits: ["close"],
17
- setup(__props, { emit: __emit }) {
18
- const emit = __emit;
13
+ setup(__props) {
19
14
  const baseZIndex = inject(wBaseZIndex, 0);
20
- const backdropRef = useTemplateRef("backdrop");
21
- const contentRef = useTemplateRef("content");
22
- const swipeStarted = ref(false);
23
- const hide = () => {
24
- backdropRef.value?.scrollIntoView({ behavior: "smooth", block: "start" });
25
- };
26
- const show = () => {
27
- contentRef.value?.scrollIntoView({ behavior: "smooth", block: "end" });
28
- };
29
- const observerCb = (entries) => {
30
- entries.forEach((entry) => {
31
- if (entry.target === backdropRef.value && entry.isIntersecting) {
32
- emit("close");
33
- }
34
- });
35
- };
36
- const observer = new IntersectionObserver(observerCb, {
37
- root: null,
38
- threshold: 0.9
39
- });
40
- let timeout;
41
- watch(backdropRef, (value, oldValue) => {
42
- if (oldValue) observer.unobserve(oldValue);
43
- if (value) {
44
- if (timeout) clearTimeout(timeout);
45
- timeout = setTimeout(() => {
46
- observer.observe(value);
47
- }, 500);
48
- }
49
- });
50
- onBeforeUnmount(() => {
51
- observer.disconnect();
52
- });
53
15
  return (_ctx, _cache) => {
54
- return openBlock(), createElementBlock("div", null, [
16
+ return openBlock(), createElementBlock(Fragment, null, [
55
17
  renderSlot(_ctx.$slots, "toggle", { unclickable: true }),
56
18
  (openBlock(), createBlock(Teleport, { to: "body" }, [
57
- createVNode(Transition, {
58
- "enter-active-class": "transition-opacity",
59
- "leave-active-class": "transition-opacity",
60
- "enter-from-class": "opacity-0",
61
- "leave-to-class": "opacity-0",
62
- onAfterEnter: show
19
+ createVNode(_sfc_main$1, {
20
+ "is-open": _ctx.isOpen,
21
+ class: "bg-primary-light/40 dark:bg-primary-darkest/40 fixed inset-0 backdrop-blur",
22
+ "content-class": "bg-default dark:bg-default-dark grid-cols-[1fr] grid-rows-[auto,1fr] height-[90%] rounded-t-3xl shadow-md relative grid",
23
+ style: normalizeStyle({ zIndex: unref(baseZIndex) + unref(BASE_ZINDEX_BOTTOM_SHEET) }),
24
+ onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
63
25
  }, {
64
26
  default: withCtx(() => [
65
- _ctx.isOpen ? (openBlock(), createElementBlock("div", {
66
- key: 0,
67
- class: "bg-primary-light dark:bg-primary-darkest no-scrollbar fixed left-0 top-0 size-full snap-y snap-mandatory snap-always overflow-scroll overflow-y-auto overscroll-contain scroll-smooth bg-opacity-40 backdrop-blur dark:bg-opacity-40",
68
- style: normalizeStyle({ zIndex: unref(baseZIndex) + unref(BASE_ZINDEX_DROPDOWN) })
69
- }, [
70
- createElementVNode("div", {
71
- ref: "backdrop",
72
- class: "height-full snap-start",
73
- onClick: hide
74
- }, null, 512),
75
- createElementVNode("div", _hoisted_1, [
76
- createElementVNode("div", _hoisted_2, [
77
- createElementVNode("div", _hoisted_3, [
78
- createElementVNode("div", {
79
- class: normalizeClass(["h-1 w-12 rounded-sm", {
80
- "bg-gray-300": !swipeStarted.value,
81
- "bg-primary dark:bg-primary-dark": swipeStarted.value
82
- }])
83
- }, null, 2)
84
- ]),
85
- renderSlot(_ctx.$slots, "toggle", { unclickable: false })
86
- ]),
87
- createElementVNode("div", _hoisted_4, [
88
- renderSlot(_ctx.$slots, "content")
89
- ]),
90
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "absolute top-full h-screen w-full bg-[inherit]" }, null, -1))
91
- ], 512)
92
- ], 4)) : createCommentVNode("", true)
27
+ createElementVNode("div", _hoisted_1, [
28
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "flex h-9 items-center justify-center" }, [
29
+ createElementVNode("div", { class: "h-1 w-12 rounded-sm bg-gray-300" })
30
+ ], -1)),
31
+ renderSlot(_ctx.$slots, "toggle", { unclickable: false })
32
+ ]),
33
+ createElementVNode("div", _hoisted_2, [
34
+ renderSlot(_ctx.$slots, "content")
35
+ ]),
36
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "absolute top-full h-screen w-full bg-[inherit]" }, null, -1))
93
37
  ]),
94
38
  _: 3
95
- })
39
+ }, 8, ["is-open", "style"])
96
40
  ]))
97
- ]);
41
+ ], 64);
98
42
  };
99
43
  }
100
44
  });
@@ -4,6 +4,7 @@ declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: {
6
6
  default?(_: {}): any;
7
+ default?(_: {}): any;
7
8
  };
8
9
  refs: {};
9
10
  rootEl: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AA+DA;AA0GA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AASxC,OAAO,EAAC,YAAY,EAAyD,MAAM,sBAAsB,CAAA;AA2CzG,iBAAS,cAAc;WA4IT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;eAvNrB,YAvGgB;;;;;6EAsUd,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;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;;;;;;eA/OrB,YAnHU;;;;;6EA0WR,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,10 +1,12 @@
1
- import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withKeys, withModifiers, withCtx, createElementVNode, createVNode, createCommentVNode, normalizeClass, renderSlot, Transition } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, withCtx, createElementVNode, renderSlot, resolveDynamicComponent, unref, 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 WSkeleton from '../Skeleton/WSkeleton.vue.js';
7
8
 
9
+ const _hoisted_1 = { class: "flex gap-2 px-[--w-button-rounded,1rem] font-medium opacity-0" };
8
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
11
  ...{ inheritAttrs: false },
10
12
  __name: "WButton",
@@ -20,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
22
  join: { type: Boolean },
21
23
  tooltipText: {},
22
24
  download: {},
25
+ skeleton: { type: Boolean },
23
26
  to: { default: void 0 }
24
27
  },
25
28
  emits: ["click"],
@@ -33,7 +36,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
36
  emit("click", event);
34
37
  };
35
38
  return (_ctx, _cache) => {
36
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? _ctx.disabled ? "a" : unref(RouterLink) : _ctx.tag), mergeProps({
39
+ return _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
40
+ key: 0,
41
+ class: "w-skeleton-rounded-[--w-button-rounded,1rem] w-skeleton-w-max w-skeleton-h-[--w-button-height,2.75rem]"
42
+ }, {
43
+ default: withCtx(() => [
44
+ createElementVNode("div", _hoisted_1, [
45
+ renderSlot(_ctx.$slots, "default")
46
+ ])
47
+ ]),
48
+ _: 3
49
+ })) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? _ctx.disabled ? "a" : unref(RouterLink) : _ctx.tag), mergeProps({ key: 1 }, {
37
50
  class: _ctx.$attrs.class,
38
51
  style: _ctx.$attrs.style,
39
52
  ..._ctx.disabled ? {} : _ctx.tag === "a" ? { href: _ctx.href, target: _ctx.target } : _ctx.to !== void 0 ? { to: _ctx.to, replace: _ctx.replace } : {}
@@ -81,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
94
  !_ctx.disabled && !_ctx.loading ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true)
82
95
  ]),
83
96
  _: 3
84
- }, 16, ["class", "disabled", "download", "type", "onKeypress"]);
97
+ }, 16, ["class", "disabled", "download", "type", "onKeypress"]));
85
98
  };
86
99
  }
87
100
  });
@@ -8,6 +8,8 @@ type __VLS_Props = {
8
8
  title?: string;
9
9
  indicator?: boolean;
10
10
  side?: boolean;
11
+ statusIcon?: boolean;
12
+ showHasValue?: boolean;
11
13
  };
12
14
  declare function __VLS_template(): {
13
15
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonTab.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonTab.vue"],"names":[],"mappings":"AAiIA;AA4JA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAUF,iBAAS,cAAc;WAoMT,OAAO,IAA6B;;;;;;YAXtB,GAAG;;;;;YACF,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,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":"WButtonTab.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonTab.vue"],"names":[],"mappings":"AAwIA;AAyKA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;AAUF,iBAAS,cAAc;WAmNT,OAAO,IAA6B;;;;;;YAXtB,GAAG;;;;;YACF,GAAG;;;;EAe/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,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"}
@@ -2,6 +2,7 @@ import { defineComponent, createElementBlock, openBlock, normalizeClass, createC
2
2
  import IconCheckCircle from '../../assets/icons/sax/IconCheckCircle.svg.js';
3
3
  import IconClose from '../../assets/icons/sax/IconClose.svg.js';
4
4
  import IconNegativeInfo from '../../assets/icons/sax/IconNegativeInfo.svg.js';
5
+ import _sfc_main$1 from '../Status/WStatusIcon.vue.js';
5
6
 
6
7
  const _hoisted_1 = ["disabled"];
7
8
  const _hoisted_2 = {
@@ -19,7 +20,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  icon: {},
20
21
  title: {},
21
22
  indicator: { type: Boolean },
22
- side: { type: Boolean }
23
+ side: { type: Boolean },
24
+ statusIcon: { type: Boolean },
25
+ showHasValue: { type: Boolean }
23
26
  },
24
27
  emits: ["click"],
25
28
  setup(__props) {
@@ -29,8 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
32
  class: normalizeClass(["w-ripple-trigger grid select-none grid-cols-[auto,1fr] font-semibold outline-none transition-colors duration-500", {
30
33
  "text-primary dark:text-primary-dark": !_ctx.hasError && _ctx.active,
31
34
  "text-negative dark:text-negative-dark": _ctx.hasError,
32
- "text-positive dark:text-positive-dark": !_ctx.active && !_ctx.hasError && _ctx.hasValue,
33
- "text-description": !_ctx.active && !_ctx.hasError && !_ctx.hasValue,
35
+ "text-positive dark:text-positive-dark": !_ctx.active && !_ctx.hasError && _ctx.hasValue && _ctx.showHasValue,
36
+ "text-description": !_ctx.active && !_ctx.hasError && (!_ctx.showHasValue || !_ctx.hasValue),
34
37
  "cursor-not-allowed opacity-50": _ctx.disabled,
35
38
  "cursor-pointer": !_ctx.disabled
36
39
  }]),
@@ -40,8 +43,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
43
  createElementVNode("div", {
41
44
  class: normalizeClass(["text-default dark:text-default-dark rounded-full bg-[inherit] bg-opacity-100 p-1 outline transition-[outline-width] duration-500", {
42
45
  "bg-negative dark:bg-negative-dark outline-negative/10 dark:outline-negative-dark/10": _ctx.hasError,
43
- "bg-positive dark:bg-positive-dark outline-positive/10 dark:outline-positive-dark/10": !_ctx.hasError && _ctx.hasValue,
44
- "bg-gray-400 outline-gray-400/10 dark:bg-gray-600 dark:outline-gray-600/10": !_ctx.hasError && !_ctx.hasValue,
46
+ "bg-positive dark:bg-positive-dark outline-positive/10 dark:outline-positive-dark/10": !_ctx.hasError && _ctx.hasValue && _ctx.showHasValue,
47
+ "bg-gray-400 outline-gray-400/10 dark:bg-gray-600 dark:outline-gray-600/10": !_ctx.hasError && (!_ctx.showHasValue || !_ctx.hasValue),
45
48
  "outline-[1.5rem]": _ctx.active
46
49
  }])
47
50
  }, [
@@ -88,6 +91,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
91
  })) : createCommentVNode("", true),
89
92
  createTextVNode(" " + toDisplayString(_ctx.title), 1)
90
93
  ], 2),
94
+ _ctx.statusIcon ? (openBlock(), createBlock(_sfc_main$1, {
95
+ key: 0,
96
+ "has-value": _ctx.hasValue,
97
+ "has-error": _ctx.hasError,
98
+ class: "sm-not:-mr--inner-margin ml-auto mr-4"
99
+ }, null, 8, ["has-value", "has-error"])) : createCommentVNode("", true),
91
100
  renderSlot(_ctx.$slots, "suffix", normalizeProps(guardReactiveProps({ hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue })))
92
101
  ], 2)),
93
102
  createVNode(Transition, {
@@ -15,6 +15,7 @@ export interface ButtonProps extends Partial<LinkProps> {
15
15
  join?: boolean;
16
16
  tooltipText?: string;
17
17
  download?: string;
18
+ skeleton?: boolean;
18
19
  }
19
20
  export type ButtonGroupOptionProps<Option> = {
20
21
  option: Option;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,WAAY,SAAQ,OAAO,CAAC,SAAS,CAAC;IACrD,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM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,0BAA0B,CAAC,MAAM,CAAC,CAAA;CACrD;AAED,MAAM,MAAM,gBAAgB,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,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAA;AAEjT,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,iBAAiB,GAAG,WAAW,GAAG,UAAU,CAAC,EAC1J,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,WAAW,GAAG,UAAU,CAAC,CAAC;IAC9E,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
@@ -21,7 +21,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  loading: { type: Boolean },
22
22
  intermediate: { type: Boolean },
23
23
  tooltipText: {},
24
- alignTop: { type: Boolean }
24
+ alignTop: { type: Boolean },
25
+ noMargin: { type: Boolean }
25
26
  },
26
27
  emits: ["update:modelValue"],
27
28
  setup(__props, { emit: __emit }) {
@@ -39,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
40
  "cursor-not-allowed opacity-70": _ctx.disabled,
40
41
  "cursor-pointer": !_ctx.disabled && !_ctx.loading && !_ctx.readonly,
41
42
  "cursor-auto": _ctx.readonly,
42
- "pb-4 pt-1": _ctx.title,
43
+ "pb-4 pt-1": _ctx.title && !_ctx.noMargin,
43
44
  "items-start": _ctx.alignTop,
44
45
  "items-center": !_ctx.alignTop
45
46
  }],
@@ -1 +1 @@
1
- {"version":3,"file":"WCheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckboxGroup.vue"],"names":[],"mappings":"AA+DA;AAuGA,OAAO,KAAK,EAAC,kBAAkB,EAAwB,MAAM,SAAS,CAAA;yBAQrD,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,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;WA8LO,mBAAmB,CAAC;;2MAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBApCgB,GAAG;0BACA,GAAG;;;;YACJ,GAAG;uBACJ,GAAG;;cAxJzB,oBAAoB,SAAS,KAAK,KAAG,IAAI;EA6L3C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzMzE,wBAyM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CA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CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createBlock, openBlock, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, ref, createBlock, openBlock, mergeProps, createSlots, withCtx, createElementVNode, normalizeClass, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode, resolveDynamicComponent } from 'vue';
2
2
  import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
3
3
  import _sfc_main$2 from './WCheckbox.vue.js';
4
4
 
@@ -11,13 +11,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  optionComponent: {},
12
12
  modelValue: {},
13
13
  wrap: { type: Boolean },
14
- col: { type: Boolean },
15
14
  stretch: { type: Boolean },
16
15
  allowClear: { type: Boolean },
17
16
  iconMap: {},
18
17
  titleMap: {},
19
18
  tooltipTextMap: {},
20
19
  classMap: {},
20
+ optionClass: {},
21
21
  title: {},
22
22
  titleIcon: {},
23
23
  description: {},
@@ -68,40 +68,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
68
  class: _ctx.$attrs.class
69
69
  }), createSlots({
70
70
  field: withCtx(() => [
71
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
72
- return openBlock(), createBlock(_sfc_main$2, mergeProps({
73
- key: index,
74
- ref_for: true
75
- }, {
76
- ...props,
77
- modelValue: getValue(item) === _ctx.modelValue,
78
- title: _ctx.titleMap?.[getValue(item).toString()],
79
- tooltipText: _ctx.tooltipTextMap?.[getValue(item).toString()],
80
- icon: _ctx.iconMap?.[getValue(item).toString()],
81
- loading: _ctx.loading && getValue(item) === loadingItem.value,
82
- disabled: _ctx.disabled || _ctx.loading && getValue(item) !== loadingItem.value
83
- }, {
84
- class: _ctx.classMap?.[getValue(item).toString()],
85
- "onUpdate:modelValue": ($event) => updateModelValue(getValue(item))
86
- }), createSlots({ _: 2 }, [
87
- _ctx.$slots.option || _ctx.optionComponent ? {
88
- name: "default",
89
- fn: withCtx(() => [
90
- renderSlot(_ctx.$slots, "option", {
91
- option: item,
92
- selected: getValue(item) === _ctx.modelValue
93
- }, () => [
94
- _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
95
- key: 0,
71
+ createElementVNode("div", {
72
+ class: normalizeClass({
73
+ "flex flex-wrap items-center gap-x-4": _ctx.wrap,
74
+ "flex items-center gap-x-4 [&>*]:flex-1": _ctx.stretch
75
+ })
76
+ }, [
77
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
78
+ return openBlock(), createBlock(_sfc_main$2, mergeProps({
79
+ key: index,
80
+ ref_for: true
81
+ }, {
82
+ ...props,
83
+ modelValue: getValue(item) === _ctx.modelValue,
84
+ title: _ctx.titleMap?.[getValue(item).toString()],
85
+ tooltipText: _ctx.tooltipTextMap?.[getValue(item).toString()],
86
+ icon: _ctx.iconMap?.[getValue(item).toString()],
87
+ loading: _ctx.loading && getValue(item) === loadingItem.value,
88
+ disabled: _ctx.disabled || _ctx.loading && getValue(item) !== loadingItem.value
89
+ }, {
90
+ class: [_ctx.classMap?.[getValue(item).toString()], _ctx.optionClass],
91
+ "onUpdate:modelValue": ($event) => updateModelValue(getValue(item))
92
+ }), createSlots({ _: 2 }, [
93
+ _ctx.$slots.option || _ctx.optionComponent ? {
94
+ name: "default",
95
+ fn: withCtx(() => [
96
+ renderSlot(_ctx.$slots, "option", {
96
97
  option: item,
97
98
  selected: getValue(item) === _ctx.modelValue
98
- }, null, 8, ["option", "selected"])) : createCommentVNode("", true)
99
- ])
100
- ]),
101
- key: "0"
102
- } : void 0
103
- ]), 1040, ["class", "onUpdate:modelValue"]);
104
- }), 128))
99
+ }, () => [
100
+ _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
101
+ key: 0,
102
+ option: item,
103
+ selected: getValue(item) === _ctx.modelValue
104
+ }, null, 8, ["option", "selected"])) : createCommentVNode("", true)
105
+ ])
106
+ ]),
107
+ key: "0"
108
+ } : void 0
109
+ ]), 1040, ["class", "onUpdate:modelValue"]);
110
+ }), 128))
111
+ ], 2)
105
112
  ]),
106
113
  _: 2
107
114
  }, [
@@ -0,0 +1,31 @@
1
+ import { CheckboxGroupMultipleProps } from './types';
2
+ declare const _default: <Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
3
+ fn(value: Entity): Model;
4
+ }["fn"] | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onSelect?: ((value: Model) => any) | undefined;
7
+ readonly onUnselect?: ((value: Model) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUnselect"> & CheckboxGroupMultipleProps<Model, Entity, ValueGetter> & Partial<{}>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: {
12
+ title?(_: {}): any;
13
+ subtitle?(_: {}): any;
14
+ option?(_: {
15
+ option: ValueGetter extends undefined ? Model : Entity;
16
+ selected: boolean;
17
+ }): any;
18
+ right?(_: {}): any;
19
+ };
20
+ emit: {
21
+ (e: "select", value: Model): void;
22
+ (e: "unselect", value: Model): void;
23
+ };
24
+ }>) => import('vue').VNode & {
25
+ __ctx?: Awaited<typeof __VLS_setup>;
26
+ };
27
+ export default _default;
28
+ type __VLS_PrettifyLocal<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
31
+ //# sourceMappingURL=WCheckboxGroupMultiple.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file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@@
1
+ import { defineComponent, ref, createBlock, openBlock, mergeProps, createSlots, withCtx, createElementVNode, normalizeClass, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode, resolveDynamicComponent } from 'vue';
2
+ import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
3
+ import _sfc_main$2 from './WCheckbox.vue.js';
4
+
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ ...{ inheritAttrs: false },
7
+ __name: "WCheckboxGroupMultiple",
8
+ props: {
9
+ list: {},
10
+ valueGetter: { type: Function },
11
+ optionComponent: {},
12
+ modelValue: {},
13
+ wrap: { type: Boolean },
14
+ stretch: { type: Boolean },
15
+ iconMap: {},
16
+ titleMap: {},
17
+ tooltipTextMap: {},
18
+ classMap: {},
19
+ optionClass: {},
20
+ title: {},
21
+ titleIcon: {},
22
+ description: {},
23
+ errorMessage: {},
24
+ tooltipText: {},
25
+ maxLength: {},
26
+ mono: { type: Boolean },
27
+ hasChanges: { type: Boolean },
28
+ skeleton: { type: Boolean },
29
+ disabled: { type: Boolean },
30
+ readonly: { type: Boolean },
31
+ required: { type: Boolean },
32
+ mandatory: { type: Boolean },
33
+ noMargin: { type: Boolean },
34
+ allowCopy: { type: Boolean },
35
+ emptyValue: {},
36
+ leftError: { type: Boolean },
37
+ filterField: {},
38
+ filterValue: {},
39
+ subgrid: { type: Boolean },
40
+ seamless: { type: Boolean },
41
+ radio: { type: Boolean },
42
+ loading: { type: Boolean },
43
+ alignTop: { type: Boolean }
44
+ },
45
+ emits: ["select", "unselect"],
46
+ setup(__props, { emit: __emit }) {
47
+ const props = __props;
48
+ const emit = __emit;
49
+ const loadingItem = ref(void 0);
50
+ const getValue = (item) => {
51
+ if (props.valueGetter && typeof item === "object") {
52
+ return props.valueGetter(item);
53
+ } else {
54
+ return item;
55
+ }
56
+ };
57
+ const emitUpdateModelValue = (value) => {
58
+ loadingItem.value = value;
59
+ if (props.modelValue.includes(value)) emit("unselect", value);
60
+ else emit("select", value);
61
+ };
62
+ return (_ctx, _cache) => {
63
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
64
+ ...props,
65
+ modelValue: void 0
66
+ }, {
67
+ class: _ctx.$attrs.class
68
+ }), createSlots({
69
+ field: withCtx(() => [
70
+ createElementVNode("div", {
71
+ class: normalizeClass({
72
+ "flex flex-wrap gap-x-4": _ctx.wrap,
73
+ "flex gap-x-4 [&>*]:flex-1": _ctx.stretch
74
+ })
75
+ }, [
76
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
77
+ return openBlock(), createBlock(_sfc_main$2, mergeProps({
78
+ key: index,
79
+ ref_for: true
80
+ }, {
81
+ ...props,
82
+ modelValue: _ctx.modelValue.includes(getValue(item)),
83
+ title: _ctx.titleMap?.[getValue(item).toString()],
84
+ tooltipText: _ctx.tooltipTextMap?.[getValue(item).toString()],
85
+ icon: _ctx.iconMap?.[getValue(item).toString()],
86
+ loading: _ctx.loading && getValue(item) === loadingItem.value,
87
+ disabled: _ctx.disabled || _ctx.loading && getValue(item) !== loadingItem.value
88
+ }, {
89
+ class: [_ctx.classMap?.[getValue(item).toString()], _ctx.optionClass],
90
+ "onUpdate:modelValue": ($event) => emitUpdateModelValue(getValue(item))
91
+ }), createSlots({ _: 2 }, [
92
+ _ctx.$slots.option || _ctx.optionComponent ? {
93
+ name: "default",
94
+ fn: withCtx(() => [
95
+ renderSlot(_ctx.$slots, "option", {
96
+ option: item,
97
+ selected: _ctx.modelValue.includes(getValue(item))
98
+ }, () => [
99
+ _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
100
+ key: 0,
101
+ option: item,
102
+ selected: _ctx.modelValue.includes(getValue(item))
103
+ }, null, 8, ["option", "selected"])) : createCommentVNode("", true)
104
+ ])
105
+ ]),
106
+ key: "0"
107
+ } : void 0
108
+ ]), 1040, ["class", "onUpdate:modelValue"]);
109
+ }), 128))
110
+ ], 2)
111
+ ]),
112
+ _: 2
113
+ }, [
114
+ _ctx.$slots.title ? {
115
+ name: "title",
116
+ fn: withCtx(() => [
117
+ renderSlot(_ctx.$slots, "title")
118
+ ]),
119
+ key: "0"
120
+ } : void 0,
121
+ _ctx.$slots.subtitle ? {
122
+ name: "subtitle",
123
+ fn: withCtx(() => [
124
+ renderSlot(_ctx.$slots, "subtitle")
125
+ ]),
126
+ key: "1"
127
+ } : void 0,
128
+ _ctx.$slots.right ? {
129
+ name: "right",
130
+ fn: withCtx(() => [
131
+ renderSlot(_ctx.$slots, "right")
132
+ ]),
133
+ key: "2"
134
+ } : void 0
135
+ ]), 1040, ["class"]);
136
+ };
137
+ }
138
+ });
139
+
140
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WCheckboxGroupMultiple.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };