eco-vue-js 0.8.21 → 0.8.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AAqGA,iBAAS,cAAc;;;yBATL,IAAI;YA+GQ,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAvJZ,YAAY;eACR,OAAO;;WADX,YAAY;eACR,OAAO;iGA4JlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AAqGA,iBAAS,cAAc;;;yBATL,IAAI;YA6GQ,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WArJZ,YAAY;eACR,OAAO;;WADX,YAAY;eACR,OAAO;iGA0JlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  class: normalizeClass([{
28
28
  "w-hover-circle-trigger cursor-pointer": !_ctx.disabled,
29
29
  "cursor-not-allowed opacity-50": _ctx.disabled
30
- }, "outline-none w-full h-full flex items-center justify-center"]),
30
+ }, "outline-none flex items-center justify-center"]),
31
31
  onClick: toggle
32
32
  }, [
33
33
  createVNode(_sfc_main$1, {
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAqSA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAe,SAAS,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;yBAQhF,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAomBxD,mBAAmB,CAAC;;;gBA5lBpB,MAAM;gBACN,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE;oBAC1B,cAAc,CAAC,IAAI,CAAC;oBACpB,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;6BACH,MAAM;wBACX,MAAM;eACf,aAAa,CAAC,WAAW,CAAC,EAAE;mBACxB,aAAa,CAAC,WAAW,CAAC,EAAE;cACjC,aAAa,CAAC,IAAI,CAAC,EAAE;yBACV,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;oBAC5B,MAAM;6BACG,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;oBACvD,OAAO;qBACN,OAAO;KA8kBiE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;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AgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAviBP,uBAAuB,SAAS,MAAM,KAAG,IAAI;;;;YA4iBP,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1kBvE,wBA0kB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -49,6 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  return fieldsVisible.value.filter((field) => fieldsConfig.value[field.label].visible).sort((a, b) => fieldsConfig.value[a.label].order - fieldsConfig.value[b.label].order);
50
50
  });
51
51
  const allowSelect = computed(() => props.bulk !== void 0);
52
+ const allowOpen = computed(() => props.expansion !== void 0);
52
53
  const {
53
54
  selected,
54
55
  reverse,
@@ -192,46 +193,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
192
193
  "card-class": _ctx.cardClass,
193
194
  "has-border": _ctx.hasBorder,
194
195
  "more-bottom": _ctx.moreBottom,
195
- "allow-open": _ctx.fields.some((item2) => item2.allowOpen) && !skeleton
196
+ "allow-open": allowOpen.value && !skeleton
196
197
  }, createSlots({
197
- default: withCtx(({ toggle, isOpen }) => [
198
- (openBlock(true), createElementBlock(Fragment, null, renderList(fieldsFiltered.value, (field) => {
199
- return openBlock(), createBlock(resolveDynamicComponent(field.component), {
200
- key: field.label,
198
+ more: withCtx(() => [
199
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (menuItem, menuIndex) => {
200
+ return openBlock(), createBlock(resolveDynamicComponent(menuItem), {
201
+ key: menuIndex,
201
202
  item,
202
203
  readonly: _ctx.readonlyGetter?.(item),
203
- skeleton,
204
- mobile: unref(isMobile),
205
- class: normalizeClass({
206
- [field.cssClass ?? ""]: true,
207
- "cursor-pointer w-ripple w-ripple-hover w-ripple-has w-ripple-opacity-[0.04]": field.allowOpen && !skeleton,
208
- "sm:border-y border-gray-300 dark:border-gray-700": _ctx.hasBorder,
209
- "sm:border-b-[transparent] sm:dark:border-b-[transparent]": _ctx.hasBorder && isOpen
210
- }),
211
- style: normalizeStyle({
212
- minWidth: !unref(isMobile) && fieldsConfig.value[field.label]?.width ? fieldsConfig.value[field.label].width + "px" : void 0
213
- }),
214
204
  "onUpdate:item": setter,
215
205
  "onDelete:item": ($event) => {
216
206
  setter();
217
207
  refetch();
218
- },
219
- onClick: ($event) => field.allowOpen && !skeleton && toggle()
220
- }, null, 40, ["item", "readonly", "skeleton", "mobile", "class", "style", "onUpdate:item", "onDelete:item", "onClick"]);
208
+ }
209
+ }, null, 40, ["item", "readonly", "onUpdate:item", "onDelete:item"]);
221
210
  }), 128))
222
211
  ]),
223
- more: withCtx(() => [
224
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (menuItem, menuIndex) => {
225
- return openBlock(), createBlock(resolveDynamicComponent(menuItem), {
226
- key: menuIndex,
212
+ default: withCtx(() => [
213
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fieldsFiltered.value, (field) => {
214
+ return openBlock(), createBlock(resolveDynamicComponent(field.component), {
215
+ key: field.label,
227
216
  item,
228
217
  readonly: _ctx.readonlyGetter?.(item),
218
+ skeleton,
219
+ mobile: unref(isMobile),
220
+ class: normalizeClass(field.cssClass),
221
+ style: normalizeStyle({
222
+ minWidth: !unref(isMobile) && fieldsConfig.value[field.label]?.width ? fieldsConfig.value[field.label].width + "px" : void 0
223
+ }),
229
224
  "onUpdate:item": setter,
230
225
  "onDelete:item": ($event) => {
231
226
  setter();
232
227
  refetch();
233
228
  }
234
- }, null, 40, ["item", "readonly", "onUpdate:item", "onDelete:item"]);
229
+ }, null, 40, ["item", "readonly", "skeleton", "mobile", "class", "style", "onUpdate:item", "onDelete:item"]);
235
230
  }), 128))
236
231
  ]),
237
232
  _: 2
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAqQA,iBAAS,cAAc;;;;;YAwSO,GAAG;sBACN,GAAG;2BACE,GAAG;;;WASrB,OAAO,IAA6B;EAEjD;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAnZR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;;;;eAPR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;kFAuZnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAmRA,iBAAS,cAAc;;;;;YAqUO,GAAG;sBACN,GAAG;2BACE,GAAG;;;WASrB,OAAO,IAA6B;EAEjD;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAhbR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;;;;eAPR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;kFAobnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -61,8 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
61
  return (_ctx, _cache) => {
62
62
  return openBlock(), createElementBlock(Fragment, null, [
63
63
  createElementVNode("div", {
64
- class: normalizeClass(["relative w-full grid sm:flex isolate sm:mt-4 first:mt-0 sm-not:group-even:bg-gray-50 sm-not:dark:group-even:bg-primary-darkest/25 sm-not:pt-2 sm-not:-px--inner-margin", {
65
- [_ctx.cardClass ?? ""]: true,
64
+ class: normalizeClass(["relative grid sm-not:grid-cols-1 sm:flex isolate sm:mt-4 first:mt-0 sm-not:group-even:bg-gray-50 sm-not:dark:group-even:bg-primary-darkest/25 sm-not:pt-2", {
66
65
  "w-ripple-trigger-has": _ctx.allowOpen
67
66
  }])
68
67
  }, [
@@ -108,9 +107,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
108
107
  }, null, 8, ["model-value", "disabled", "allow-shift", "align-top", "class"])) : createCommentVNode("", true)
109
108
  ], 2)
110
109
  ], 2)) : createCommentVNode("", true),
111
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ toggle, isOpen: isOpen.value }))),
112
110
  createElementVNode("div", {
113
- class: normalizeClass(["sm:sticky sm:z-[1] sm:right-inner sm:bg-default sm:dark:bg-default-dark sm:ml-auto", {
111
+ class: normalizeClass(["grid sm:flex sm:flex-1 sm-not:-px--inner-margin isolate", {
112
+ [_ctx.cardClass ?? ""]: true,
113
+ "sm:border-y border-gray-300 dark:border-gray-700": _ctx.hasBorder,
114
+ "sm:border-b-[transparent] sm:dark:border-b-[transparent]": _ctx.hasBorder && isOpen.value,
115
+ "isolate": _ctx.allowOpen
116
+ }])
117
+ }, [
118
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ toggle, isOpen: isOpen.value }))),
119
+ _ctx.allowOpen ? (openBlock(), createElementBlock("button", {
120
+ key: 0,
121
+ class: "cursor-pointer w-ripple w-ripple-hover w-ripple-has w-ripple-opacity-[0.04] absolute top-0 left-0 h-full w-full -z-[1]",
122
+ onClick: toggle
123
+ })) : createCommentVNode("", true)
124
+ ], 2),
125
+ createElementVNode("div", {
126
+ class: normalizeClass(["sm:sticky sm:z-[1] sm:right-inner sm:bg-default sm:dark:bg-default-dark", {
114
127
  "width-14": !_ctx.hideMore,
115
128
  "width-4": _ctx.hideMore
116
129
  }])
@@ -121,7 +134,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
134
  "sm:border sm:border-l-0 border-gray-300 dark:border-gray-700 sm:rounded-tr-3xl": _ctx.hasBorder,
122
135
  "sm:rounded-br-3xl": _ctx.hasBorder && !isOpen.value,
123
136
  "sm:border-b-[transparent] sm:dark:border-b-[transparent]": _ctx.hasBorder && isOpen.value,
124
- "w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": _ctx.allowOpen
137
+ "w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": !_ctx.mobile && _ctx.allowOpen
125
138
  }])
126
139
  }, [
127
140
  !_ctx.hideMore ? (openBlock(), createBlock(_sfc_main$2, {
@@ -151,7 +164,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
151
164
  _ctx.$slots.expansion ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
152
165
  isOpen.value ? (openBlock(), createElementBlock("div", {
153
166
  key: 0,
154
- class: normalizeClass(["sm:sticky sm:w-inner sm:left-inner", {
167
+ class: normalizeClass(["sm:sticky sm:w-inner sm:left-inner sm:-mt-px", {
155
168
  "sm:px-5 sm:border sm:border-t-0 border-gray-300 dark:border-gray-700 sm:rounded-b-3xl": _ctx.hasBorder
156
169
  }])
157
170
  }, [
@@ -2,7 +2,6 @@ declare function __VLS_template(): {
2
2
  slots: {
3
3
  default?(_: {}): any;
4
4
  inner?(_: {}): any;
5
- inner?(_: {}): any;
6
5
  };
7
6
  refs: {};
8
7
  attrs: Partial<{}>;
@@ -11,9 +10,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
10
  declare const __VLS_component: import('vue').DefineComponent<{
12
11
  modelValue?: string | number;
13
12
  skeleton?: boolean;
13
+ allowOpen?: boolean;
14
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
15
15
  modelValue?: string | number;
16
16
  skeleton?: boolean;
17
+ allowOpen?: boolean;
17
18
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
20
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AAuDA,iBAAS,cAAc;;yBA8DM,GAAG;uBACL,GAAG;uBACF,GAAG;;;WASjB,OAAO,IAA6B;EAEjD;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAhGN,MAAM,GAAG,MAAM;eACjB,OAAO;;iBADL,MAAM,GAAG,MAAM;eACjB,OAAO;iGAqGlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;;yBA+CM,GAAG;uBACL,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAhFN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;;iBAFN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;iGAoFnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,40 +1,27 @@
1
- import { defineComponent, openBlock, createElementBlock, createBlock, renderSlot, createElementVNode, createTextVNode, toDisplayString, createVNode, withCtx } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, createBlock, renderSlot, createElementVNode, createTextVNode, toDisplayString } from 'vue';
2
2
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
3
- import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
4
3
 
5
- const _hoisted_1 = { class: "grid grid-cols-1 items-center sm:h-16 sm:pr-6" };
6
- const _hoisted_2 = { class: "truncate" };
7
- const _hoisted_3 = { class: "min-w-[12rem] max-w-xl overflow-hidden" };
4
+ const _hoisted_1 = { class: "truncate" };
8
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
6
  __name: "WListCardField",
10
7
  props: {
11
8
  modelValue: {},
12
- skeleton: { type: Boolean }
9
+ skeleton: { type: Boolean },
10
+ allowOpen: { type: Boolean }
13
11
  },
14
12
  setup(__props) {
15
13
  return (_ctx, _cache) => {
16
- return openBlock(), createElementBlock("div", _hoisted_1, [
14
+ return openBlock(), createElementBlock("div", {
15
+ class: normalizeClass(["grid grid-cols-1 items-center sm:h-16 sm:pr-6", { "pointer-events-none": _ctx.allowOpen }])
16
+ }, [
17
17
  _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
18
- createElementVNode("div", _hoisted_2, [
18
+ createElementVNode("div", _hoisted_1, [
19
19
  renderSlot(_ctx.$slots, "inner", {}, () => [
20
20
  createTextVNode(toDisplayString(_ctx.modelValue), 1)
21
- ]),
22
- createVNode(_sfc_main$1, {
23
- "no-touch": "",
24
- "overflow-only": ""
25
- }, {
26
- default: withCtx(() => [
27
- createElementVNode("div", _hoisted_3, [
28
- renderSlot(_ctx.$slots, "inner", {}, () => [
29
- createTextVNode(toDisplayString(_ctx.modelValue), 1)
30
- ])
31
- ])
32
- ]),
33
- _: 3
34
- })
21
+ ])
35
22
  ])
36
23
  ])
37
- ]);
24
+ ], 2);
38
25
  };
39
26
  }
40
27
  });
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,UAAU,CAAA;yBAInC,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAiNxD,mBAAmB,CAAC;;;gBA7MpB,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE;sBACxB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;qBAC5B,WAAW;mBACb,OAAO;KA0MmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAvMP,sBAAsB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,KAAG,IAAI;;;;YA4M3B,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3NvE,wBA2N4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"AA4FA,OAAO,KAAK,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,UAAU,CAAA;yBAInC,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAmNxD,mBAAmB,CAAC;;;gBA/MpB,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE;sBACxB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;qBAC5B,WAAW;mBACb,OAAO;KA4MmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAzMP,sBAAsB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,KAAG,IAAI;;;;YA8M3B,OAAO,CAAC,OAAO,WAAW,CAAC;;AA7NvE,wBA6N4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -43,7 +43,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  return (_ctx, _cache) => {
44
44
  return openBlock(), createBlock(_sfc_main$1, {
45
45
  icon: markRaw(unref(IconTableSettings)),
46
- disabled: _ctx.disabled
46
+ disabled: _ctx.disabled,
47
+ class: "h-full w-full"
47
48
  }, {
48
49
  default: withCtx(() => [
49
50
  createElementVNode("div", _hoisted_1, [
@@ -12,7 +12,6 @@ export type ListField<Data, QueryParams = unknown> = {
12
12
  cssClass?: string;
13
13
  field?: Extract<keyof Data, string> | ((params: QueryParams) => Extract<keyof Data, string>);
14
14
  visibleGetter?: (params: QueryParams) => boolean;
15
- allowOpen?: boolean;
16
15
  allowResize?: boolean;
17
16
  };
18
17
  export type MenuComponent<Data> = Component<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC,CAAA;AAEF,MAAM,MAAM,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,IAAI;IACnD,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAA;IACpC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,KAAK,MAAM,CAAC,CAAA;IACjD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,IAAI,EAAE,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,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;IAC5F,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,aAAa,CAAC,IAAI,IAAI,SAAS,CAAC;IAC1C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,MAAM,aAAa,CAAC,WAAW,IAAI,SAAS,CAAC;IACjD,iBAAiB,EAAE,MAAM,WAAW,CAAA;IACpC,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAC,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA"}
@@ -12,6 +12,8 @@ declare const _default: import('vue').DefineComponent<{
12
12
  light?: boolean;
13
13
  trigger?: Element;
14
14
  maxHeight?: number;
15
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
16
+ container: HTMLSpanElement;
17
+ }, any>;
16
18
  export default _default;
17
19
  //# sourceMappingURL=WTooltip.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":";WA2FS,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;WALX,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;AAqHpB,wBAMG"}
1
+ {"version":3,"file":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":";WA2FS,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;WALX,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;;;AAoHpB,wBAOG"}
@@ -1,8 +1,13 @@
1
- import { defineComponent, useSlots, ref, computed, watch, toRef, onBeforeUnmount, unref, openBlock, createElementBlock, createCommentVNode, markRaw } from 'vue';
1
+ import { defineComponent, useSlots, useTemplateRef, ref, computed, watch, toRef, onBeforeUnmount, unref, openBlock, createElementBlock, createCommentVNode, markRaw } from 'vue';
2
2
  import { getIsTouchDevice } from '../../utils/mobile.js';
3
3
  import { Tooltip } from '../../utils/Tooltip.js';
4
4
  import { getIncrement } from './models/utils.js';
5
5
 
6
+ const _hoisted_1 = {
7
+ key: 0,
8
+ ref: "container",
9
+ class: "hidden"
10
+ };
6
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
12
  __name: "WTooltip",
8
13
  props: {
@@ -17,9 +22,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
22
  const props = __props;
18
23
  const slots = useSlots();
19
24
  const isTouchDevice = getIsTouchDevice();
20
- const container = ref();
25
+ const containerRef = useTemplateRef("container");
21
26
  const isOpen = ref(false);
22
- const parent = computed(() => container.value?.parentElement ?? null);
27
+ const parent = computed(() => containerRef.value?.parentElement ?? null);
23
28
  const triggerElement = computed(() => props.trigger ?? parent.value);
24
29
  const open = () => {
25
30
  const slot = slots.default?.()?.[0];
@@ -58,12 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
63
  close();
59
64
  });
60
65
  return (_ctx, _cache) => {
61
- return !(_ctx.noTouch && unref(isTouchDevice)) ? (openBlock(), createElementBlock("span", {
62
- key: 0,
63
- ref_key: "container",
64
- ref: container,
65
- class: "hidden"
66
- }, null, 512)) : createCommentVNode("", true);
66
+ return !(_ctx.noTouch && unref(isTouchDevice)) ? (openBlock(), createElementBlock("span", _hoisted_1, null, 512)) : createCommentVNode("", true);
67
67
  };
68
68
  }
69
69
  });
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.8.21",
7
+ "version": "0.8.22",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",
@@ -215,6 +215,9 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
215
215
  'color': theme('colors.gray.700'),
216
216
  },
217
217
  },
218
+ '*:focus-visible': {
219
+ 'outline': 'none',
220
+ },
218
221
  })
219
222
 
220
223
  matchUtilities(