eco-vue-js 0.13.6 → 0.13.7
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/WButtonSelectionAction.vue.d.ts +8 -2
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue_vue_type_script_setup_true_lang.js +38 -23
- package/dist/components/List/WList.vue_vue_type_script_setup_true_lang.js +14 -14
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LinkProps } from '../../types/types';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
title?: string;
|
|
3
4
|
icon: SVGComponent;
|
|
@@ -6,10 +7,15 @@ type __VLS_Props = {
|
|
|
6
7
|
active?: boolean;
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
tooltipText?: string;
|
|
10
|
+
to?: LinkProps['to'];
|
|
11
|
+
tag?: keyof HTMLElementTagNameMap;
|
|
12
|
+
href?: string;
|
|
13
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
14
|
+
replace?: boolean;
|
|
9
15
|
};
|
|
10
|
-
declare var
|
|
16
|
+
declare var __VLS_27: {};
|
|
11
17
|
type __VLS_Slots = {} & {
|
|
12
|
-
tooltip?: (props: typeof
|
|
18
|
+
tooltip?: (props: typeof __VLS_27) => any;
|
|
13
19
|
};
|
|
14
20
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
21
|
click: (value: MouseEvent) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"AAsEA;AAAA,OAoGO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAO5C,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,YAAY,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IACpB,GAAG,CAAC,EAAE,MAAM,qBAAqB,CAAA;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAyNF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/components/Button/WButtonSelectionAction.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import WRouterLink_default from "../RouterLink/WRouterLink.vue.js";
|
|
1
2
|
import WShine_default from "../Shine/WShine.vue.js";
|
|
2
3
|
import WTooltip_default from "../Tooltip/WTooltip.vue.js";
|
|
3
4
|
import WSpinner_default from "../Spinner/WSpinner.vue.js";
|
|
4
|
-
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
|
|
5
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
|
|
5
6
|
//#region src/components/Button/WButtonSelectionAction.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var _hoisted_1 =
|
|
7
|
-
var _hoisted_2 = {
|
|
7
|
+
var _hoisted_1 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "sm-not:hidden sm-not:[.dropdown_&]:block whitespace-nowrap font-normal"
|
|
10
10
|
};
|
|
11
|
-
var
|
|
11
|
+
var _hoisted_2 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "w-spinner-size-5 text-description absolute inset-0 z-10 flex items-center justify-center"
|
|
14
14
|
};
|
|
@@ -21,36 +21,51 @@ var WButtonSelectionAction_vue_vue_type_script_setup_true_lang_default = /*@__PU
|
|
|
21
21
|
disabled: { type: Boolean },
|
|
22
22
|
active: { type: Boolean },
|
|
23
23
|
loading: { type: Boolean },
|
|
24
|
-
tooltipText: {}
|
|
24
|
+
tooltipText: {},
|
|
25
|
+
to: {},
|
|
26
|
+
tag: {},
|
|
27
|
+
href: {},
|
|
28
|
+
target: {},
|
|
29
|
+
replace: { type: Boolean }
|
|
25
30
|
},
|
|
26
31
|
emits: ["click"],
|
|
27
32
|
setup(__props) {
|
|
28
33
|
return (_ctx, _cache) => {
|
|
29
|
-
return openBlock(),
|
|
34
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.to !== void 0 ? __props.disabled ? "a" : WRouterLink_default : __props.tag ?? "button"), mergeProps({ ...__props.disabled ? {} : __props.tag === "a" ? {
|
|
35
|
+
href: __props.href,
|
|
36
|
+
target: __props.target
|
|
37
|
+
} : __props.to !== void 0 ? {
|
|
38
|
+
to: __props.to,
|
|
39
|
+
replace: __props.replace,
|
|
40
|
+
target: __props.target
|
|
41
|
+
} : {} }, {
|
|
30
42
|
disabled: __props.disabled || __props.disableMessage !== void 0,
|
|
31
|
-
class:
|
|
43
|
+
class: ["disabled:text-description relative isolate flex select-none items-center bg-none no-underline outline-none disabled:cursor-not-allowed", {
|
|
32
44
|
"w-ripple w-ripple-hover before:text-primary dark:before:text-primary-dark hover:text-primary dark:hover:text-primary-dark cursor-pointer": !__props.disabled && !__props.disableMessage && !__props.loading,
|
|
33
45
|
"text-primary dark:text-primary-dark w-ripple-active": __props.active,
|
|
34
46
|
"text-accent": !__props.active,
|
|
35
47
|
"cursor-not-allowed": __props.disabled || __props.disableMessage,
|
|
36
48
|
"cursor-progress": __props.loading
|
|
37
|
-
}]
|
|
49
|
+
}],
|
|
38
50
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && !__props.disableMessage && !__props.loading && _ctx.$emit("click", $event))
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
}), {
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
createElementVNode("div", { class: normalizeClass(["-h--w-input-height sm-not:-px--inner-margin z-10 flex items-center gap-2 px-[--w-list-padding,1rem]", { "opacity-0": __props.loading }]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em]" })), __props.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("", true)], 2),
|
|
54
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(WSpinner_default)])) : createCommentVNode("", true),
|
|
55
|
+
__props.disableMessage || __props.tooltipText ? (openBlock(), createBlock(WTooltip_default, {
|
|
56
|
+
key: 1,
|
|
57
|
+
text: __props.disableMessage ?? __props.tooltipText,
|
|
58
|
+
top: "",
|
|
59
|
+
static: ""
|
|
60
|
+
}, createSlots({ _: 2 }, [_ctx.$slots.tooltip ? {
|
|
61
|
+
name: "default",
|
|
62
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltip")]),
|
|
63
|
+
key: "0"
|
|
64
|
+
} : void 0]), 1032, ["text"])) : createCommentVNode("", true),
|
|
65
|
+
!__props.disabled && !__props.disableMessage && !__props.loading ? (openBlock(), createBlock(WShine_default, { key: 2 })) : createCommentVNode("", true)
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 16, ["disabled", "class"]);
|
|
54
69
|
};
|
|
55
70
|
}
|
|
56
71
|
});
|
|
@@ -300,7 +300,18 @@ var WList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
300
300
|
_: 2
|
|
301
301
|
}, [__props.bulk || __props.action || !__props.disableExport ? {
|
|
302
302
|
name: "default",
|
|
303
|
-
fn: withCtx(({ disableMessage, cssClass }) => [
|
|
303
|
+
fn: withCtx(({ disableMessage, cssClass }) => [unref(selectionCount) === 0 && __props.action ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.action, (item, index) => {
|
|
304
|
+
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
305
|
+
key: index,
|
|
306
|
+
"query-params": __props.queryParams,
|
|
307
|
+
readonly: unref(isReadonly) ?? unref(isDisabled) ?? false,
|
|
308
|
+
class: normalizeClass(cssClass)
|
|
309
|
+
}, null, 8, [
|
|
310
|
+
"query-params",
|
|
311
|
+
"readonly",
|
|
312
|
+
"class"
|
|
313
|
+
]);
|
|
314
|
+
}), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [!__props.disableExport ? (openBlock(), createBlock(HeaderExport_default, {
|
|
304
315
|
key: 0,
|
|
305
316
|
fields: fieldsVisible.value,
|
|
306
317
|
"query-params-getter": unref(selectionCount) === 0 ? () => __props.queryParams : getQueryParamsBulk,
|
|
@@ -317,18 +328,7 @@ var WList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
317
328
|
"file-name",
|
|
318
329
|
"to-markdown",
|
|
319
330
|
"class"
|
|
320
|
-
])) : createCommentVNode("", true),
|
|
321
|
-
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
322
|
-
key: index,
|
|
323
|
-
"query-params": __props.queryParams,
|
|
324
|
-
readonly: unref(isReadonly) ?? unref(isDisabled) ?? false,
|
|
325
|
-
class: normalizeClass(cssClass)
|
|
326
|
-
}, null, 8, [
|
|
327
|
-
"query-params",
|
|
328
|
-
"readonly",
|
|
329
|
-
"class"
|
|
330
|
-
]);
|
|
331
|
-
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.bulk, (item, index) => {
|
|
331
|
+
])) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.bulk, (item, index) => {
|
|
332
332
|
return openBlock(), createBlock(resolveDynamicComponent(item), {
|
|
333
333
|
key: index,
|
|
334
334
|
"selection-count": unref(selectionCount),
|
|
@@ -344,7 +344,7 @@ var WList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
344
344
|
"class",
|
|
345
345
|
"onClear:selected"
|
|
346
346
|
]);
|
|
347
|
-
}), 128))]),
|
|
347
|
+
}), 128))], 64))]),
|
|
348
348
|
key: "0"
|
|
349
349
|
} : void 0, __props.bulk && __props.bulk.length > 2 ? {
|
|
350
350
|
name: "more",
|