eco-vue-js 0.10.33 → 0.10.35
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.
- package/dist/components/Button/WButtonAction.vue.js +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts +2 -2
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +1 -0
- package/dist/components/Button/WButtonGroup.vue.js +1 -0
- package/dist/components/Button/WButtonMore.vue.d.ts +11 -4
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +35 -15
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +5 -6
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +11 -6
- package/dist/components/Checkbox/WCheckboxGroup.vue.js +1 -0
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +6 -3
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +9 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts +2 -0
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +6 -2
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +36 -1
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -1
- package/dist/components/Dropdown/utils/DropdownStyle.js +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +10 -7
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +24 -33
- package/dist/components/DropdownMenu/types.d.ts +1 -0
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +5 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +13 -7
- package/dist/components/FieldWrapper/types.d.ts +1 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +3 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +4 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +4 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +4 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +4 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +2 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.d.ts +1 -0
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +32 -15
- package/dist/components/Input/WInputAsync.vue.js +4 -2
- package/dist/components/Input/WInputDate.vue.js +4 -1
- package/dist/components/Input/WInputOptions.vue.js +4 -1
- package/dist/components/Input/WInputSuggest.vue.d.ts +2 -2
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +102 -110
- package/dist/components/Input/types.d.ts +2 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/List/WList.vue.d.ts +8 -3
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +7 -4
- package/dist/components/List/WListCard.vue.d.ts +143 -0
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +41 -15
- package/dist/components/List/types.d.ts +8 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +5 -5
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +16 -8
- package/dist/components/Select/WSelect.vue.js +5 -2
- package/dist/components/Select/WSelectAsync.vue.js +5 -2
- package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -1
- package/dist/components/Select/WSelectSingle.vue.js +4 -1
- package/dist/components/Select/WSelectStringified.vue.js +4 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/useDefaultQuery.js +0 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, computed, createElementBlock, openBlock, Fragment, createElementVNode, createCommentVNode, mergeProps, createVNode, createBlock, Transition, withCtx, normalizeClass, resolveDynamicComponent, renderSlot, normalizeStyle,
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, createElementBlock, openBlock, Fragment, createElementVNode, createCommentVNode, mergeProps, createVNode, createBlock, Transition, withCtx, normalizeClass, unref, resolveDynamicComponent, renderSlot, normalizeStyle, normalizeProps, guardReactiveProps, markRaw } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
import _sfc_main$4 from '../Button/WButtonMore.vue.js';
|
4
4
|
import _sfc_main$5 from '../Button/WButtonMoreItem.vue.js';
|
@@ -39,31 +39,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
formName: {},
|
40
40
|
card: { type: Boolean },
|
41
41
|
to: {},
|
42
|
+
hasAction: { type: Boolean },
|
42
43
|
skeleton: { type: Boolean },
|
43
44
|
selected: { type: Boolean },
|
44
45
|
allowSelect: { type: Boolean },
|
45
46
|
allowSelectHover: { type: Boolean }
|
46
47
|
},
|
47
|
-
emits: ["toggle:selected", "hover:selected"],
|
48
|
+
emits: ["toggle:selected", "hover:selected", "click:action"],
|
48
49
|
setup(__props) {
|
49
50
|
const props = __props;
|
51
|
+
const containerRef = useTemplateRef("container");
|
52
|
+
const moreRef = useTemplateRef("more");
|
50
53
|
const formRef = useTemplateRef("form");
|
51
54
|
const isOpen = ref(false);
|
55
|
+
const position = ref(null);
|
56
|
+
const anchorRef = useTemplateRef("anchor");
|
52
57
|
const toggle = () => {
|
53
58
|
isOpen.value = !isOpen.value;
|
54
59
|
};
|
55
60
|
const validate = (...args) => formRef.value?.validate(...args);
|
56
|
-
const isActionShown = computed(() => !props.skeleton && (props.allowOpen || props.to !== void 0 || props.allowSelectHover));
|
61
|
+
const isActionShown = computed(() => !props.skeleton && (props.allowOpen || props.to !== void 0 || props.allowSelectHover || props.hasAction));
|
62
|
+
const toggleMenu = (event) => {
|
63
|
+
if (props.disabled || props.disableMore || !containerRef.value || !moreRef.value || event.ctrlKey) return;
|
64
|
+
const containerRect = containerRef.value.getBoundingClientRect();
|
65
|
+
position.value = { left: event.screenX - containerRect.x + "px", top: event.clientY - containerRect.y + "px" };
|
66
|
+
moreRef.value.open();
|
67
|
+
event.preventDefault();
|
68
|
+
};
|
57
69
|
return (_ctx, _cache) => {
|
58
70
|
return openBlock(), createElementBlock(Fragment, null, [
|
59
71
|
createElementVNode("div", mergeProps(_ctx.allowSelect ? { "onMouseover": () => _ctx.$emit("hover:selected") } : void 0, {
|
72
|
+
ref: "container",
|
60
73
|
class: ["relative isolate", {
|
61
74
|
[_ctx.cardWrapperClass ?? ""]: true,
|
62
75
|
"w-ripple-trigger-has": isActionShown.value,
|
63
76
|
"sm-not:dark:even:bg-primary-darkest/25 sm-not:even:bg-gray-50 grid grid-cols-1": _ctx.card,
|
64
77
|
"flex": !_ctx.card,
|
65
78
|
"-mb-px": !_ctx.card && isOpen.value
|
66
|
-
}]
|
79
|
+
}],
|
80
|
+
onContextmenu: toggleMenu
|
67
81
|
}), [
|
68
82
|
createVNode(Transition, {
|
69
83
|
"enter-active-class": "transition-transform duration-200",
|
@@ -82,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
96
|
"width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
|
83
97
|
}])
|
84
98
|
}, [
|
85
|
-
_cache[
|
99
|
+
_cache[5] || (_cache[5] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute right-full top-0 z-[-1] h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))]" }, null, -1)),
|
86
100
|
createElementVNode("div", {
|
87
101
|
class: normalizeClass(["h-full rounded-l-[--w-list-rounded,unset]", {
|
88
102
|
"border border-r-0": _ctx.hasBorder,
|
@@ -105,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
105
119
|
}]),
|
106
120
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selected"))
|
107
121
|
}, null, 8, ["model-value", "disabled", "align-top", "class"])) : createCommentVNode("", true),
|
108
|
-
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
122
|
+
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
109
123
|
], 2)
|
110
124
|
], 2)) : createCommentVNode("", true),
|
111
125
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.formName ? _sfc_main$2 : "div"), mergeProps({ ref: "form" }, _ctx.formName ? { name: _ctx.formName } : void 0, {
|
@@ -134,14 +148,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
148
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ toggle, isOpen: isOpen.value, validate }))),
|
135
149
|
isActionShown.value ? (openBlock(), createBlock(_sfc_main$3, normalizeProps(mergeProps(
|
136
150
|
{ key: 1 },
|
137
|
-
_ctx.allowSelectHover ? { tag: "button", card: _ctx.card, onClick: () => _ctx.$emit("toggle:selected") } : _ctx.to ? { tag: markRaw(unref(RouterLink)), card: _ctx.card, class: "z-[-1]", props: { to: _ctx.to } } : { tag: "button", card: _ctx.card, class: "z-[-1]", onClick: toggle }
|
151
|
+
_ctx.allowSelectHover ? { tag: "button", card: _ctx.card, onClick: () => _ctx.$emit("toggle:selected") } : _ctx.hasAction ? { tag: "button", card: _ctx.card, class: "z-[-1]", onClick: () => _ctx.$emit("click:action") } : _ctx.to ? { tag: markRaw(unref(RouterLink)), card: _ctx.card, class: "z-[-1]", props: { to: _ctx.to } } : { tag: "button", card: _ctx.card, class: "z-[-1]", onClick: toggle }
|
138
152
|
)), null, 16)) : createCommentVNode("", true),
|
139
|
-
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true),
|
153
|
+
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true),
|
140
154
|
_ctx.card && _ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
141
155
|
key: 3,
|
156
|
+
ref: "more",
|
142
157
|
class: "-p--inner-margin -my---inner-margin -mr---inner-margin flex items-center",
|
143
158
|
disabled: _ctx.disabled || _ctx.disableMore,
|
144
|
-
style: normalizeStyle({ gridArea: unref(AREA_MORE) })
|
159
|
+
style: normalizeStyle({ gridArea: unref(AREA_MORE) }),
|
160
|
+
anchor: unref(anchorRef) ?? void 0,
|
161
|
+
onClose: _cache[3] || (_cache[3] = ($event) => position.value = null)
|
145
162
|
}, {
|
146
163
|
default: withCtx(() => [
|
147
164
|
_ctx.allowSelect ? (openBlock(), createBlock(_sfc_main$5, {
|
@@ -153,7 +170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
153
170
|
renderSlot(_ctx.$slots, "more")
|
154
171
|
]),
|
155
172
|
_: 3
|
156
|
-
}, 8, ["disabled", "style"])) : createCommentVNode("", true)
|
173
|
+
}, 8, ["disabled", "style", "anchor"])) : createCommentVNode("", true)
|
157
174
|
]),
|
158
175
|
_: 3
|
159
176
|
}, 16, ["class"])),
|
@@ -164,7 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
164
181
|
"width-[--w-list-header-rounded,1rem]": !_ctx.$slots.more
|
165
182
|
}])
|
166
183
|
}, [
|
167
|
-
_cache[
|
184
|
+
_cache[6] || (_cache[6] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute left-full top-0 z-[-1] h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))]" }, null, -1)),
|
168
185
|
createElementVNode("div", {
|
169
186
|
class: normalizeClass(["h-full rounded-r-[--w-list-rounded,unset]", {
|
170
187
|
"rounded-tr-[--w-list-rounded,unset] border border-l-0": _ctx.hasBorder,
|
@@ -177,20 +194,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
177
194
|
}, [
|
178
195
|
_ctx.$slots.more ? (openBlock(), createBlock(_sfc_main$4, {
|
179
196
|
key: 0,
|
197
|
+
ref: "more",
|
180
198
|
class: normalizeClass(["flex h-full px-[--w-list-padding,1rem]", {
|
181
199
|
"pt-4.5 items-start": _ctx.alignTop,
|
182
200
|
"items-center": !_ctx.alignTop
|
183
201
|
}]),
|
184
|
-
disabled: _ctx.disabled || _ctx.disableMore
|
202
|
+
disabled: _ctx.disabled || _ctx.disableMore,
|
203
|
+
anchor: unref(anchorRef) ?? void 0,
|
204
|
+
onClose: _cache[4] || (_cache[4] = ($event) => position.value = null)
|
185
205
|
}, {
|
186
206
|
default: withCtx(() => [
|
187
207
|
renderSlot(_ctx.$slots, "more")
|
188
208
|
]),
|
189
209
|
_: 3
|
190
|
-
}, 8, ["class", "disabled"])) : createCommentVNode("", true),
|
191
|
-
_ctx.selected ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
210
|
+
}, 8, ["class", "disabled", "anchor"])) : createCommentVNode("", true),
|
211
|
+
_ctx.selected || unref(moreRef)?.isOpen ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
192
212
|
], 2)
|
193
|
-
], 2)) : createCommentVNode("", true)
|
213
|
+
], 2)) : createCommentVNode("", true),
|
214
|
+
position.value ? (openBlock(), createElementBlock("div", {
|
215
|
+
key: 2,
|
216
|
+
ref: "anchor",
|
217
|
+
class: "absolute",
|
218
|
+
style: normalizeStyle(position.value)
|
219
|
+
}, null, 4)) : createCommentVNode("", true)
|
194
220
|
], 16),
|
195
221
|
_ctx.$slots.expansion ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
196
222
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
@@ -76,6 +76,10 @@ export type MenuProps<Data> = {
|
|
76
76
|
updateItem: (newItem?: Data | undefined) => void;
|
77
77
|
deleteItem: () => void;
|
78
78
|
};
|
79
|
+
export type MenuEmits<Data> = {
|
80
|
+
(e: 'update:item', value: Data): void;
|
81
|
+
(e: 'delete:item'): void;
|
82
|
+
};
|
79
83
|
export type MenuComponent<Data> = Component<MenuProps<Data>>;
|
80
84
|
export type BulkProps<QueryParams> = {
|
81
85
|
queryParamsGetter: () => QueryParams;
|
@@ -107,5 +111,9 @@ export type ListConfig<Fields extends ListFields<any, any>> = {
|
|
107
111
|
fields: FieldConfigMap<Fields>;
|
108
112
|
mode: ListMode;
|
109
113
|
};
|
114
|
+
export type CardActionParams<Data> = {
|
115
|
+
item: Data;
|
116
|
+
setter: (value: Data) => void;
|
117
|
+
};
|
110
118
|
export {};
|
111
119
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,UAAU,CAAC,IAAI,IAAI;IAC7B,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAED,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;AAE9D,MAAM,MAAM,oBAAoB,C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EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAAA;AAE9L,KAAK,YAAY,GAAG,MAAM,GAAG,KAAK,GAAG,GAAI,MAAO,KAAK,CAAA;AACrD,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,UAAW,YAAa,KAAM,YAAa,GAAG,CAAA;AAGnF,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI;IAC5D,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC9B,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,IAAI,IAAI;IACnC,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAA;CAC9B,CAAA"}
|
@@ -13,11 +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<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
17
|
+
click: (value: MouseEvent) => any;
|
18
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
19
|
+
onClick?: ((value: MouseEvent) => any) | undefined;
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
22
22
|
export default _default;
|
23
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuItem/WMenuItem.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuItem/WMenuItem.vue"],"names":[],"mappings":"AAqBA;AAwCA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAYD,iBAAS,cAAc;WA0DT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,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,25 +1,33 @@
|
|
1
|
-
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
1
|
+
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
5
|
__name: "WMenuItem",
|
6
6
|
props: {
|
7
7
|
disabled: { type: Boolean },
|
8
|
-
href: {
|
9
|
-
download: {
|
10
|
-
to: {
|
8
|
+
href: {},
|
9
|
+
download: {},
|
10
|
+
to: {}
|
11
11
|
},
|
12
|
+
emits: ["click"],
|
12
13
|
setup(__props) {
|
13
14
|
return (_ctx, _cache) => {
|
14
15
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to && !_ctx.disabled ? unref(RouterLink) : _ctx.href ? "a" : "button"), mergeProps(_ctx.to && !_ctx.disabled ? { to: _ctx.to } : _ctx.href ? { href: _ctx.href, download: _ctx.download } : void 0, {
|
15
|
-
class: ["text-description
|
16
|
-
"
|
16
|
+
class: ["text-description w-ripple-trigger block w-full min-w-36 select-none items-center justify-start px-2 text-start outline-none first:pt-2 last:pb-2", {
|
17
|
+
"hover:text-primary dark:hover:text-primary-dark cursor-pointer": !_ctx.disabled,
|
17
18
|
"cursor-not-allowed opacity-50": _ctx.disabled
|
18
19
|
}],
|
19
|
-
disabled: _ctx.disabled
|
20
|
+
disabled: _ctx.disabled,
|
21
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && _ctx.$emit("click", $event))
|
20
22
|
}), {
|
21
23
|
default: withCtx(() => [
|
22
|
-
|
24
|
+
createElementVNode("div", {
|
25
|
+
class: normalizeClass({
|
26
|
+
"w-ripple w-ripple-hover relative flex w-full gap-4 rounded-lg px-2 py-1": !_ctx.disabled
|
27
|
+
})
|
28
|
+
}, [
|
29
|
+
renderSlot(_ctx.$slots, "default")
|
30
|
+
], 2)
|
23
31
|
]),
|
24
32
|
_: 3
|
25
33
|
}, 16, ["class", "disabled"]);
|
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
autocomplete: {},
|
48
48
|
autofocus: { type: Boolean },
|
49
49
|
readonly: { type: Boolean },
|
50
|
-
unclickable: { type: Boolean },
|
50
|
+
unclickable: { type: [Boolean, null] },
|
51
51
|
disabledActions: { type: Boolean },
|
52
52
|
loading: { type: Boolean },
|
53
53
|
spellcheck: { type: Boolean },
|
@@ -55,6 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
55
|
textSecure: { type: Boolean },
|
56
56
|
placeholderSecure: { type: Boolean },
|
57
57
|
allowPaste: { type: Boolean },
|
58
|
+
noWrap: { type: Boolean },
|
58
59
|
title: {},
|
59
60
|
titleIcon: {},
|
60
61
|
description: {},
|
@@ -73,9 +74,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
73
74
|
filterField: {},
|
74
75
|
filterValue: {},
|
75
76
|
subgrid: { type: Boolean },
|
77
|
+
seamless: { type: Boolean },
|
76
78
|
teleport: { type: Boolean },
|
77
79
|
noZIndex: { type: Boolean },
|
78
80
|
zIndex: {},
|
81
|
+
parentElement: {},
|
79
82
|
maxHeight: {},
|
80
83
|
maxWidth: {},
|
81
84
|
horizontalAlign: {},
|
@@ -288,7 +291,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
288
291
|
loading: _ctx.loading || unref(isLoading),
|
289
292
|
disabled: _ctx.disabled,
|
290
293
|
readonly: _ctx.readonly,
|
291
|
-
"disable-clear": _ctx.disableClear || _ctx.readonly,
|
294
|
+
"disable-clear": _ctx.disableClear || _ctx.readonly || _ctx.seamless && !focused.value,
|
292
295
|
search: value,
|
293
296
|
onUnselect: ($event) => unselect(value)
|
294
297
|
}, createSlots({ _: 2 }, [
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
40
|
autocomplete: {},
|
41
41
|
autofocus: { type: Boolean },
|
42
42
|
readonly: { type: Boolean },
|
43
|
-
unclickable: { type: Boolean },
|
43
|
+
unclickable: { type: [Boolean, null] },
|
44
44
|
disabledActions: { type: Boolean },
|
45
45
|
loading: { type: Boolean },
|
46
46
|
spellcheck: { type: Boolean },
|
@@ -48,6 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
48
|
textSecure: { type: Boolean },
|
49
49
|
placeholderSecure: { type: Boolean },
|
50
50
|
allowPaste: { type: Boolean },
|
51
|
+
noWrap: { type: Boolean },
|
51
52
|
title: {},
|
52
53
|
titleIcon: {},
|
53
54
|
description: {},
|
@@ -66,9 +67,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
67
|
filterField: {},
|
67
68
|
filterValue: {},
|
68
69
|
subgrid: { type: Boolean },
|
70
|
+
seamless: { type: Boolean },
|
69
71
|
teleport: { type: Boolean },
|
70
72
|
noZIndex: { type: Boolean },
|
71
73
|
zIndex: {},
|
74
|
+
parentElement: {},
|
72
75
|
maxHeight: {},
|
73
76
|
maxWidth: {},
|
74
77
|
horizontalAlign: {},
|
@@ -209,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
209
212
|
loading: _ctx.loading || isFetchingPrefix.value,
|
210
213
|
"option-component": _ctx.optionComponent,
|
211
214
|
"option-component-props": _ctx.optionComponentProps,
|
212
|
-
"disable-clear": _ctx.disableClear || _ctx.readonly,
|
215
|
+
"disable-clear": _ctx.disableClear || _ctx.readonly || _ctx.seamless && !focused.value,
|
213
216
|
"preview-data": _ctx.previewData,
|
214
217
|
"created-data": _ctx.createdData,
|
215
218
|
"value-getter": _ctx.valueGetter,
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
38
|
autocomplete: {},
|
39
39
|
autofocus: { type: Boolean },
|
40
40
|
readonly: { type: Boolean },
|
41
|
-
unclickable: { type: Boolean },
|
41
|
+
unclickable: { type: [Boolean, null] },
|
42
42
|
disabledActions: { type: Boolean },
|
43
43
|
loading: { type: Boolean },
|
44
44
|
spellcheck: { type: Boolean },
|
@@ -46,6 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
46
|
textSecure: { type: Boolean },
|
47
47
|
placeholderSecure: { type: Boolean },
|
48
48
|
allowPaste: { type: Boolean },
|
49
|
+
noWrap: { type: Boolean },
|
49
50
|
title: {},
|
50
51
|
titleIcon: {},
|
51
52
|
description: {},
|
@@ -64,9 +65,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
64
65
|
filterField: {},
|
65
66
|
filterValue: {},
|
66
67
|
subgrid: { type: Boolean },
|
68
|
+
seamless: { type: Boolean },
|
67
69
|
teleport: { type: Boolean },
|
68
70
|
noZIndex: { type: Boolean },
|
69
71
|
zIndex: {},
|
72
|
+
parentElement: {},
|
70
73
|
maxHeight: {},
|
71
74
|
maxWidth: {},
|
72
75
|
horizontalAlign: {},
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
autocomplete: {},
|
35
35
|
autofocus: { type: Boolean },
|
36
36
|
readonly: { type: Boolean },
|
37
|
-
unclickable: { type: Boolean },
|
37
|
+
unclickable: { type: [Boolean, null] },
|
38
38
|
disabledActions: { type: Boolean },
|
39
39
|
loading: { type: Boolean },
|
40
40
|
spellcheck: { type: Boolean },
|
@@ -42,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
textSecure: { type: Boolean },
|
43
43
|
placeholderSecure: { type: Boolean },
|
44
44
|
allowPaste: { type: Boolean },
|
45
|
+
noWrap: { type: Boolean },
|
45
46
|
title: {},
|
46
47
|
titleIcon: {},
|
47
48
|
description: {},
|
@@ -60,9 +61,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
61
|
filterField: {},
|
61
62
|
filterValue: {},
|
62
63
|
subgrid: { type: Boolean },
|
64
|
+
seamless: { type: Boolean },
|
63
65
|
teleport: { type: Boolean },
|
64
66
|
noZIndex: { type: Boolean },
|
65
67
|
zIndex: {},
|
68
|
+
parentElement: {},
|
66
69
|
maxHeight: {},
|
67
70
|
maxWidth: {},
|
68
71
|
horizontalAlign: {},
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
autocomplete: {},
|
35
35
|
autofocus: { type: Boolean },
|
36
36
|
readonly: { type: Boolean },
|
37
|
-
unclickable: { type: Boolean },
|
37
|
+
unclickable: { type: [Boolean, null] },
|
38
38
|
disabledActions: { type: Boolean },
|
39
39
|
loading: { type: Boolean },
|
40
40
|
spellcheck: { type: Boolean },
|
@@ -42,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
textSecure: { type: Boolean },
|
43
43
|
placeholderSecure: { type: Boolean },
|
44
44
|
allowPaste: { type: Boolean },
|
45
|
+
noWrap: { type: Boolean },
|
45
46
|
title: {},
|
46
47
|
titleIcon: {},
|
47
48
|
description: {},
|
@@ -60,9 +61,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
61
|
filterField: {},
|
61
62
|
filterValue: {},
|
62
63
|
subgrid: { type: Boolean },
|
64
|
+
seamless: { type: Boolean },
|
63
65
|
teleport: { type: Boolean },
|
64
66
|
noZIndex: { type: Boolean },
|
65
67
|
zIndex: {},
|
68
|
+
parentElement: {},
|
66
69
|
maxHeight: {},
|
67
70
|
maxWidth: {},
|
68
71
|
horizontalAlign: {},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAE,QAAQ,EAAiB,MAAM,qBAAqB,CAAA;AAGtH,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAA;AAE9B,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,KAAK,OAAO,CAAC,YAAY,GAAG,OAAO,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEhI,KAAK,yBAAyB,CAAC,YAAY,GAAG,OAAO,EAAE,KAAK,GAAG,YAAY,IAAI,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG;IACnH,OAAO,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ueryPaginated(key, () => query.data.value, query.setData)(queryParams, options);
|
62
62
|
watch(query.data, () => {
|
63
|
-
console.log("refetch");
|
64
63
|
newQuery.refetch();
|
65
64
|
});
|
66
65
|
return newQuery;
|
package/package.json
CHANGED