eco-vue-js 0.8.24 → 0.8.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +1 -1
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +3 -2
- package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/List/WListCardField.vue.js +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.js +26 -21
- package/dist/components/List/types.d.ts +1 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +8 -13
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AA+KA,iBAAS,cAAc;;
|
1
|
+
{"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AA+KA,iBAAS,cAAc;;yBAkKO,GAAG;;;;;WAUnB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;gBAzOP,OAAO,GAAG,IAAI;YAClB,MAAM;eACH,OAAO;eACP,OAAO;WACX,YAAY;YACX,OAAO;cACL,OAAO;mBACF,OAAO;kBACR,MAAM;iBACP,OAAO;eACT,OAAO;;;;;gBAVN,OAAO,GAAG,IAAI;YAClB,MAAM;eACH,OAAO;eACP,OAAO;WACX,YAAY;YACX,OAAO;cACL,OAAO;mBACF,OAAO;kBACR,MAAM;iBACP,OAAO;eACT,OAAO;;;;kFAyOlB,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"}
|
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
45
45
|
"cursor-progress": _ctx.loading,
|
46
46
|
"cursor-not-allowed opacity-70": _ctx.disabled,
|
47
47
|
"pt-1 pb-4": _ctx.title,
|
48
|
-
"items-start
|
48
|
+
"items-start": _ctx.alignTop,
|
49
49
|
"items-center": !_ctx.alignTop
|
50
50
|
}]),
|
51
51
|
onClick: toggle
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAoRA,iBAAS,cAAc;;;;;YAwUO,GAAG;sBACN,GAAG;2BACE,GAAG;;;WASrB,OAAO,IAA6B;EAEjD;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAnbR,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;;;;kFAubnB,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"}
|
@@ -99,7 +99,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
99
99
|
"allow-shift": unref(allowSelectRange),
|
100
100
|
"align-top": _ctx.alignTop,
|
101
101
|
class: normalizeClass(["px-4 h-full", {
|
102
|
-
"opacity-50": unref(allowSelectHover)
|
102
|
+
"opacity-50": unref(allowSelectHover),
|
103
|
+
"pt-3": _ctx.alignTop
|
103
104
|
}]),
|
104
105
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(allowSelectHover) ? unref(updateSelectedRange)?.() : unref(updateSelected)?.($event)),
|
105
106
|
"onUpdateShift:modelValue": _cache[1] || (_cache[1] = ($event) => unref(updateSelectedRange)?.()),
|
@@ -142,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
142
143
|
class: normalizeClass(["sm-not:absolute sm-not:right-0 sm-not:bottom-0 flex px-4 sm:h-full", {
|
143
144
|
"sm-not:top-5": !_ctx.moreBottom,
|
144
145
|
"sm-not:top-10": _ctx.moreBottom,
|
145
|
-
"items-start pt-
|
146
|
+
"items-start pt-3": _ctx.alignTop,
|
146
147
|
"items-center": !_ctx.alignTop
|
147
148
|
}]),
|
148
149
|
disabled: _ctx.disabled
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;;
|
1
|
+
{"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;;yBA8CM,GAAG;uBACL,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBA/EN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;;iBAFN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;iGAmFnB,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"}
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
setup(__props) {
|
13
13
|
return (_ctx, _cache) => {
|
14
14
|
return openBlock(), createElementBlock("div", {
|
15
|
-
class: normalizeClass(["grid grid-cols-1 sm:
|
15
|
+
class: normalizeClass(["grid grid-cols-1 sm:pr-6 sm:last:-mr-6", { "pointer-events-none": _ctx.allowOpen }])
|
16
16
|
}, [
|
17
17
|
_ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
|
18
18
|
createElementVNode("div", _hoisted_1, [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;yBAIlC,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;WAkHxD,mBAAmB,CAAC;gBA9GpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;cAC/B,IAAI;KA6G2E,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;iBA1GF,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAAC,IAAI,EAAE,IAAI,CAAA;SAAC,KAAK,IAAI;;iBAAlE,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAAC,IAAI,EAAE,IAAI,CAAA;SAAC,KAAK,IAAI;;UA4GpE,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA5HvE,wBA4H4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref,
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, resolveDynamicComponent, mergeProps, withCtx, normalizeClass, createVNode, renderSlot } from 'vue';
|
2
2
|
import { getFirstFieldLabel } from '../use/useFieldConfigMap.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -15,27 +15,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
key: unref(getFirstFieldLabel)(field)
|
16
16
|
}, [
|
17
17
|
"fields" in field ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
18
|
-
"keyArray" in field ? (openBlock(),
|
18
|
+
"keyArray" in field ? (openBlock(), createBlock(resolveDynamicComponent(field.componentArray ?? "div"), mergeProps({
|
19
19
|
key: 0,
|
20
|
-
|
21
|
-
},
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
20
|
+
ref_for: true
|
21
|
+
}, field.componentArray ? { item: _ctx.item } : void 0, {
|
22
|
+
class: [field.cssClassArray, "sm:mr-6"]
|
23
|
+
}), {
|
24
|
+
default: withCtx(() => [
|
25
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.item[field.keyArray], (inner) => {
|
26
|
+
return openBlock(), createElementBlock("div", {
|
27
|
+
key: inner.id,
|
28
|
+
class: normalizeClass([field.cssClass, "flex"])
|
29
|
+
}, [
|
30
|
+
createVNode(_component_ListCardFieldNested, {
|
31
|
+
fields: field.fields,
|
32
|
+
item: inner
|
33
|
+
}, {
|
34
|
+
default: withCtx((defaultScope) => [
|
35
|
+
renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, defaultScope))
|
36
|
+
]),
|
37
|
+
_: 2
|
38
|
+
}, 1032, ["fields", "item"])
|
39
|
+
], 2);
|
40
|
+
}), 128))
|
41
|
+
]),
|
42
|
+
_: 2
|
43
|
+
}, 1040, ["class"])) : (openBlock(), createElementBlock("div", {
|
39
44
|
key: 1,
|
40
45
|
class: normalizeClass([field.cssClass, "flex sm:mr-6"])
|
41
46
|
}, [
|
@@ -32,6 +32,7 @@ type FieldNestedArray<Data, QueryParams = unknown, Key extends keyof PickByType<
|
|
32
32
|
export interface ListFieldNestedArray<Data, QueryParams = unknown> extends FieldNestedArray<Data, QueryParams> {
|
33
33
|
cssClass?: string;
|
34
34
|
cssClassArray?: string;
|
35
|
+
componentArray?: Raw<FieldComponent<Data>>;
|
35
36
|
}
|
36
37
|
export type ListFields<Data, QueryParams = unknown> = (ListField<Data, QueryParams> | ListFieldNested<Data, QueryParams> | ListFieldNestedEntity<Data, QueryParams> | ListFieldNestedArray<Data, QueryParams>)[];
|
37
38
|
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,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,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,IAAI;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;CACtC,CAAA;AAED,KAAK,iBAAiB,CAAC,IAAI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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,GAAG,IAAI,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,mBAAmB,CAAC,MAAM,IAAI,MAAM,SAAS,CAAC,MAAM,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,GACzE,IAAI,SAAS;IAAC,KAAK,EAAE,MAAM,KAAK,CAAA;CAAC,GACjC,CAAC,KAAK,EAAE,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,GACrC,IAAI,SAAS;IAAC,MAAM,EAAE,MAAM,WAAW,CAAA;CAAC,GACxC,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC,EAAE,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,GACnE,mBAAmB,CAAC,IAAI,CAAC,GACzB,EAAE,CAAA;AAEN,MAAM,MAAM,cAAc,CAAC,MAAM,SAAS,UAAU,CAAC,OAAO,CAAC,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAGpG,MAAM,MAAM,cAAc,CAAC,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAmGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAGvB,KAAK,SAAS,OAAO,GAAG,IAAI,yBAC/B,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;WA0MxD,mBAAmB,CAAC;;gKAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA5LP,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;;YAiMF,OAAO,CAAC,OAAO,WAAW,CAAC;;AApNvE,wBAoN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -66,24 +66,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
66
|
}])
|
67
67
|
}, [
|
68
68
|
createElementVNode("div", {
|
69
|
-
class: normalizeClass(["absolute square-6 -top-1 rounded-full transition-
|
69
|
+
class: normalizeClass(["absolute square-6 -top-1 rounded-full transition-[right] shadow-md z-10 flex items-center justify-center border border-solid", {
|
70
70
|
"right-4": _ctx.modelValue === false,
|
71
71
|
"right-2": _ctx.modelValue === null,
|
72
72
|
"right-0": _ctx.modelValue === true,
|
73
|
-
"w-ripple w-hover-circle": !_ctx.disabled && !_ctx.readonly
|
73
|
+
"w-ripple w-hover-circle": !_ctx.disabled && !_ctx.readonly,
|
74
|
+
"bg-default dark:bg-gray-100 border-default dark:border-gray-100": !_ctx.modelValue || _ctx.loading,
|
75
|
+
"bg-primary-default dark:bg-primary-dark border-primary-default dark:border-primary-dark": _ctx.modelValue && !_ctx.loading
|
74
76
|
}])
|
75
77
|
}, [
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}])
|
81
|
-
}, [
|
82
|
-
_ctx.loading ? (openBlock(), createBlock(WSpinner, {
|
83
|
-
key: 0,
|
84
|
-
class: "[--spinner-size:1.25rem]"
|
85
|
-
})) : createCommentVNode("", true)
|
86
|
-
], 2)
|
78
|
+
_ctx.loading ? (openBlock(), createBlock(WSpinner, {
|
79
|
+
key: 0,
|
80
|
+
class: "[--spinner-size:1.25rem] text-description"
|
81
|
+
})) : createCommentVNode("", true)
|
87
82
|
], 2)
|
88
83
|
], 2)
|
89
84
|
], 10, _hoisted_1),
|