eco-vue-js 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,14 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
1
+ declare function __VLS_template(): {
2
+ default?(_: {
3
+ disableMessage: string | undefined;
4
+ cssClass: string;
5
+ }): any;
6
+ more?(_: {
7
+ disableMessage: string | undefined;
8
+ cssClass: string;
9
+ }): any;
10
+ };
11
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
12
  title?: string;
3
13
  disableMessage?: string;
4
14
  }>, {
@@ -20,6 +30,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
20
30
  title: string;
21
31
  disableMessage: string;
22
32
  }, {}>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
23
34
  export default _default;
24
35
  type __VLS_WithDefaults<P, D> = {
25
36
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -29,6 +40,11 @@ type __VLS_WithDefaults<P, D> = {
29
40
  type __VLS_Prettify<T> = {
30
41
  [K in keyof T]: T[K];
31
42
  } & {};
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
32
48
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
49
  type __VLS_TypePropsToOption<T> = {
34
50
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":";YAiIY,MAAM;qBACG,MAAM;;;;;;;;;YADf,MAAM;qBACG,MAAM;;;;;;;WADf,MAAM;oBACG,MAAM;;AAqR3B,wBAQG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MA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,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, inject, computed, watch, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, unref, withCtx, createVNode, markRaw, createCommentVNode, Transition, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, inject, computed, watch, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, createBlock, unref, withCtx, createVNode, markRaw, createCommentVNode, Transition, toDisplayString } from 'vue';
2
2
  import { numberFormatter } from '../../utils/utils.js';
3
3
  import IconCancel from '../../assets/icons/default/IconCancel.svg.js';
4
4
  import IconMore from '../../assets/icons/default/IconMore.svg.js';
@@ -45,13 +45,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  return (_ctx, _cache) => {
46
46
  return openBlock(), createElementBlock("div", _hoisted_1, [
47
47
  createElementVNode("div", _hoisted_2, [
48
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.default?.(), (slot, index) => {
49
- return openBlock(), createBlock(resolveDynamicComponent(slot), {
50
- key: index,
51
- "disable-message": disableMessageValue.value,
52
- class: "border-r border-solid border-gray-300 dark:border-gray-700 last:border-r-0"
53
- }, null, 8, ["disable-message"]);
54
- }), 128)),
48
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
49
+ disableMessage: disableMessageValue.value,
50
+ cssClass: "border-r border-solid border-gray-300 dark:border-gray-700 last:border-r-0"
51
+ }))),
55
52
  _ctx.$slots.more?.()?.length ? (openBlock(), createBlock(_sfc_main$1, {
56
53
  key: 0,
57
54
  "is-open": isOpen.value,
@@ -73,18 +70,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
70
  onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = false)
74
71
  }, {
75
72
  default: withCtx(() => [
76
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.more?.(), (slot, index) => {
77
- return openBlock(), createBlock(resolveDynamicComponent(slot), {
78
- key: index,
79
- "disable-message": disableMessageValue.value,
80
- class: "first:pt-2 last:pb-2"
81
- }, null, 8, ["disable-message"]);
82
- }), 128))
73
+ renderSlot(_ctx.$slots, "more", normalizeProps(guardReactiveProps({
74
+ disableMessage: disableMessageValue.value,
75
+ cssClass: "first:pt-2 last:pb-2"
76
+ })))
83
77
  ]),
84
- _: 1
78
+ _: 3
85
79
  })
86
80
  ]),
87
- _: 1
81
+ _: 3
88
82
  }, 8, ["is-open", "horizontal-align"])) : createCommentVNode("", true)
89
83
  ]),
90
84
  createVNode(Transition, {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.6.8",
7
+ "version": "0.6.9",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",