eco-vue-js 0.8.27 → 0.8.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/List/WList.vue.d.ts +6 -1
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +6 -3
- package/dist/components/List/WListCard.vue.d.ts +2 -0
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +4 -2
- package/dist/components/List/WListCardField.vue.d.ts +2 -0
- package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/List/WListCardField.vue.js +6 -2
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +1 -1
- package/dist/components/List/components/HeaderFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderFieldNested.vue.js +10 -1
- package/dist/components/List/components/HeaderSettingsItem.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettingsItem.vue.js +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.js +3 -3
- package/dist/components/List/types.d.ts +9 -1
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/List/use/useFieldConfigMap.d.ts.map +1 -1
- package/dist/components/List/use/useFieldConfigMap.js +3 -0
- package/dist/types/global.d.ts +9 -1
- package/dist/utils/utils.d.ts +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/package.json +1 -1
@@ -15,6 +15,7 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
15
15
|
menu: MenuComponent<Data>[];
|
16
16
|
readonlyGetter?: (item: Data) => boolean;
|
17
17
|
cardClass?: string;
|
18
|
+
cardWrapperClass?: string;
|
18
19
|
selectAllTextGetter: (isUnselect: boolean, count: number) => string;
|
19
20
|
hasBorder?: boolean;
|
20
21
|
moreBottom?: boolean;
|
@@ -24,7 +25,11 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
24
25
|
}> & import('vue').PublicProps;
|
25
26
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
26
27
|
attrs: any;
|
27
|
-
slots: {
|
28
|
+
slots: {
|
29
|
+
header?(_: {
|
30
|
+
count: number;
|
31
|
+
}): any;
|
32
|
+
};
|
28
33
|
emit: (e: "update:header-padding", value: number) => void;
|
29
34
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
30
35
|
[key: string]: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AA8SA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;yBAWpF,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,eACtF,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;WA+mBxD,mBAAmB,CAAC;;;gBAvmBpB,MAAM;gBACN,MAAM;oBACF,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;2BACC,MAAM;6BACJ,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;oBACvD,OAAO;qBACN,OAAO;mBACT,MAAM;0BACC,cAAc,CAAC,MAAM,CAAC;mBAC7B,OAAO;KAqlBmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YArDgB,GAAG;;cA7hB1B,uBAAuB,SAAS,MAAM,KAAG,IAAI;;;;YAulBP,OAAO,CAAC,OAAO,WAAW,CAAC;;AAznBvE,wBAynB4E;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, ref, computed, toRef, openBlock, createBlock, unref, withCtx, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, normalizeClass, createCommentVNode, createVNode, normalizeStyle, isRef } from 'vue';
|
1
|
+
import { defineComponent, ref, computed, toRef, openBlock, createBlock, unref, withCtx, renderSlot, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, normalizeClass, createCommentVNode, createVNode, normalizeStyle, isRef } from 'vue';
|
2
2
|
import _sfc_main$1 from '../InfiniteList/WInfiniteList.vue.js';
|
3
3
|
import { getIsMobile } from '../../utils/mobile.js';
|
4
4
|
import { useSelected, getPosition } from '../../utils/useSelected.js';
|
@@ -28,6 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
menu: {},
|
29
29
|
readonlyGetter: { type: Function },
|
30
30
|
cardClass: {},
|
31
|
+
cardWrapperClass: {},
|
31
32
|
selectAllTextGetter: { type: Function },
|
32
33
|
hasBorder: { type: Boolean },
|
33
34
|
moreBottom: { type: Boolean },
|
@@ -110,6 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
110
111
|
"onUpdate:count": _cache[7] || (_cache[7] = ($event) => listCount.value = $event)
|
111
112
|
}, {
|
112
113
|
header: withCtx(({ selectAllValue }) => [
|
114
|
+
renderSlot(_ctx.$slots, "header", { count: listCount.value }),
|
113
115
|
allowSelect.value ? (openBlock(), createBlock(_sfc_main$2, {
|
114
116
|
key: 0,
|
115
117
|
title: _ctx.selectionTitle,
|
@@ -195,6 +197,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
195
197
|
disabled: skeleton,
|
196
198
|
mobile: unref(isMobile),
|
197
199
|
"card-class": _ctx.cardClass,
|
200
|
+
"card-wrapper-class": _ctx.cardWrapperClass,
|
198
201
|
"has-border": _ctx.hasBorder,
|
199
202
|
"more-bottom": _ctx.moreBottom,
|
200
203
|
"allow-open": allowOpen.value && !skeleton,
|
@@ -262,9 +265,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
262
265
|
]),
|
263
266
|
key: "0"
|
264
267
|
} : void 0
|
265
|
-
]), 1032, ["disabled", "mobile", "card-class", "has-border", "more-bottom", "allow-open", "align-top"])
|
268
|
+
]), 1032, ["disabled", "mobile", "card-class", "card-wrapper-class", "has-border", "more-bottom", "allow-open", "align-top"])
|
266
269
|
]),
|
267
|
-
_:
|
270
|
+
_: 3
|
268
271
|
}, 8, ["use-query-fn", "query-params", "skeleton-length", "header-margin", "allow-select", "selected", "reverse", "selected-range", "count", "onSelect", "onSelectReverse", "onSelectRange"]);
|
269
272
|
};
|
270
273
|
}
|
@@ -19,6 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
19
19
|
alignTop?: boolean;
|
20
20
|
hasBorder?: boolean;
|
21
21
|
cardClass?: string;
|
22
|
+
cardWrapperClass?: string;
|
22
23
|
allowOpen?: boolean;
|
23
24
|
}, {
|
24
25
|
updateSelected: ((value: boolean) => void) | undefined;
|
@@ -33,6 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
33
34
|
alignTop?: boolean;
|
34
35
|
hasBorder?: boolean;
|
35
36
|
cardClass?: string;
|
37
|
+
cardWrapperClass?: string;
|
36
38
|
allowOpen?: boolean;
|
37
39
|
}> & Readonly<{
|
38
40
|
"onUpdate:selected"?: ((value: boolean) => any) | undefined;
|
@@ -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":"AAuRA,iBAAS,cAAc;;;;;YAuUO,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;uBACC,MAAM;gBACb,OAAO;;;;;;;eARR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;uBACC,MAAM;gBACb,OAAO;;;;kFAsbnB,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"}
|
@@ -24,6 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
alignTop: { type: Boolean },
|
25
25
|
hasBorder: { type: Boolean },
|
26
26
|
cardClass: {},
|
27
|
+
cardWrapperClass: {},
|
27
28
|
allowOpen: { type: Boolean }
|
28
29
|
},
|
29
30
|
emits: ["update:selected", "update:selected-hover"],
|
@@ -61,8 +62,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
61
62
|
return (_ctx, _cache) => {
|
62
63
|
return openBlock(), createElementBlock(Fragment, null, [
|
63
64
|
createElementVNode("div", {
|
64
|
-
class: normalizeClass(["relative grid sm-not:grid-cols-1 sm:flex isolate sm
|
65
|
-
"w-ripple-trigger-has": _ctx.allowOpen
|
65
|
+
class: normalizeClass(["relative grid sm-not:grid-cols-1 sm:flex isolate sm-not:group-even:bg-gray-50 sm-not:dark:group-even:bg-primary-darkest/25 sm-not:pt-2", {
|
66
|
+
"w-ripple-trigger-has": _ctx.allowOpen,
|
67
|
+
[_ctx.cardWrapperClass ?? ""]: true
|
66
68
|
}])
|
67
69
|
}, [
|
68
70
|
createVNode(Transition, {
|
@@ -11,10 +11,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
11
|
modelValue?: string | number;
|
12
12
|
skeleton?: boolean;
|
13
13
|
allowOpen?: boolean;
|
14
|
+
noPadding?: boolean;
|
14
15
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
15
16
|
modelValue?: string | number;
|
16
17
|
skeleton?: boolean;
|
17
18
|
allowOpen?: boolean;
|
19
|
+
noPadding?: boolean;
|
18
20
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
19
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
20
22
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AAoDA,iBAAS,cAAc;;yBAgDM,GAAG;uBACL,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAlFN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;gBACP,OAAO;;iBAHN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;gBACP,OAAO;iGAqFnB,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"}
|
@@ -7,12 +7,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
props: {
|
8
8
|
modelValue: {},
|
9
9
|
skeleton: { type: Boolean },
|
10
|
-
allowOpen: { type: Boolean }
|
10
|
+
allowOpen: { type: Boolean },
|
11
|
+
noPadding: { type: Boolean }
|
11
12
|
},
|
12
13
|
setup(__props) {
|
13
14
|
return (_ctx, _cache) => {
|
14
15
|
return openBlock(), createElementBlock("div", {
|
15
|
-
class: normalizeClass(["grid grid-cols-1
|
16
|
+
class: normalizeClass(["grid grid-cols-1", {
|
17
|
+
"pointer-events-none": _ctx.allowOpen,
|
18
|
+
"sm:pr-6": !_ctx.noPadding
|
19
|
+
}])
|
16
20
|
}, [
|
17
21
|
_ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
|
18
22
|
createElementVNode("div", _hoisted_1, [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListHeaderItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeaderItem.vue"],"names":[],"mappings":"AAgHA,OAAO,EAAwB,KAAK,SAAS,EAAC,MAAM,eAAe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@__PURE__ */ defineComponent({
|
|
53
53
|
}, {
|
54
54
|
default: withCtx(() => [
|
55
55
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.disabled ? "div" : "button"), {
|
56
|
-
class: normalizeClass(["h-full w-full flex gap-2 group font-semibold items-center", {
|
56
|
+
class: normalizeClass(["h-full w-full flex gap-2 group font-semibold items-center overflow-hidden", {
|
57
57
|
"cursor-pointer": !_ctx.disabled
|
58
58
|
}]),
|
59
59
|
onClick: setOrdering
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HeaderFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderFieldNested.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"HeaderFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderFieldNested.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;yBAIlC,IAAI,EAAE,WAAW,eACpB,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;WA+FxD,mBAAmB,CAAC;gBA3FpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;KA2FgD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;iBAxFF,CAAC,KAAK,EAAE;YACf,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;YACnC,MAAM,EAAE,OAAO,CAAA;YACf,KAAK,EAAE,MAAM,CAAA;YACb,MAAM,EAAE,MAAM,CAAA;YACd,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;SACd,KAAK,IAAI;;iBAPD,CAAC,KAAK,EAAE;YACf,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;YACnC,MAAM,EAAE,OAAO,CAAA;YACf,KAAK,EAAE,MAAM,CAAA;YACb,MAAM,EAAE,MAAM,CAAA;YACd,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;SACd,KAAK,IAAI;;UAmFH,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzGvE,wBAyG4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -18,13 +18,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
fields: field.fields
|
19
19
|
}, {
|
20
20
|
default: withCtx((defaultScope) => [
|
21
|
-
renderSlot(_ctx.$slots, "default", {
|
21
|
+
defaultScope.length !== 1 ? renderSlot(_ctx.$slots, "default", {
|
22
|
+
key: 0,
|
22
23
|
field: defaultScope.field,
|
23
24
|
nested: true,
|
24
25
|
index: defaultScope.index,
|
25
26
|
length: defaultScope.length,
|
26
27
|
first: defaultScope.first,
|
27
28
|
last: defaultScope.last
|
29
|
+
}) : renderSlot(_ctx.$slots, "default", {
|
30
|
+
key: 1,
|
31
|
+
field: defaultScope.field,
|
32
|
+
nested: true,
|
33
|
+
index,
|
34
|
+
length: _ctx.fields.length,
|
35
|
+
first: index === 0,
|
36
|
+
last: index === _ctx.fields.length - 1
|
28
37
|
})
|
29
38
|
]),
|
30
39
|
_: 2
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HeaderSettingsItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSettingsItem.vue"],"names":[],"mappings":"AAq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,GAAG,IAAI;YAClC,UAAU,GAAG,IAAI;;;;;YA4JqB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhLvE,wBAgL4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -4,7 +4,7 @@ import IconEye from '../../../assets/icons/sax/IconEye.svg.js';
|
|
4
4
|
import IconEyeSlash from '../../../assets/icons/sax/IconEyeSlash.svg.js';
|
5
5
|
|
6
6
|
const _hoisted_1 = ["draggable"];
|
7
|
-
const _hoisted_2 = { class: "px-2 py-1 self-center font-semibold col-start-2" };
|
7
|
+
const _hoisted_2 = { class: "px-2 py-1 self-center font-semibold col-start-2 truncate" };
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
9
|
__name: "HeaderSettingsItem",
|
10
10
|
props: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;yBAKlC,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;
|
1
|
+
{"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;yBAKlC,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;WAmIxD,mBAAmB,CAAC;gBA/HpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;cAC/B,IAAI;iBACD,OAAO;KA6HqE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;iBA1HF,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;;UA4HpE,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA7IvE,wBA6I4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
key: 0,
|
23
23
|
ref_for: true
|
24
24
|
}, field.componentArray ? { item: _ctx.item } : void 0, {
|
25
|
-
class:
|
25
|
+
class: field.cssClassArray
|
26
26
|
}), {
|
27
27
|
default: withCtx(() => [
|
28
28
|
createVNode(_sfc_main$1, {
|
@@ -55,11 +55,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
55
|
_: 2
|
56
56
|
}, 1040, ["class"])) : (openBlock(), createElementBlock("div", {
|
57
57
|
key: 1,
|
58
|
-
class: normalizeClass([
|
58
|
+
class: normalizeClass([field.cssClass, "flex"])
|
59
59
|
}, [
|
60
60
|
createVNode(_component_ListCardFieldNested, {
|
61
61
|
fields: field.fields,
|
62
|
-
item: "keyEntity" in field ? _ctx.item[field.keyEntity] : _ctx.item,
|
62
|
+
item: "keyEntity" in field ? _ctx.item[field.keyEntity] : "getterEntity" in field ? field.getterEntity(_ctx.item) : _ctx.item,
|
63
63
|
nested: ""
|
64
64
|
}, {
|
65
65
|
default: withCtx((defaultScope) => [
|
@@ -34,6 +34,14 @@ type FieldNestedEntity<Data, QueryParams = unknown, Key extends keyof PickByType
|
|
34
34
|
export interface ListFieldNestedEntity<Data, QueryParams = unknown> extends FieldNestedEntity<Data, QueryParams> {
|
35
35
|
cssClass?: string;
|
36
36
|
}
|
37
|
+
type FieldNestedEntityGetter<Data, QueryParams = unknown, Inner = unknown> = {
|
38
|
+
getterEntity: (data: Data) => Inner;
|
39
|
+
fields: ListFields<Inner, QueryParams>;
|
40
|
+
componentItem?: Raw<FieldComponentItem<Inner>>;
|
41
|
+
};
|
42
|
+
export interface ListFieldNestedEntityGetter<Data, QueryParams = unknown, Inner = unknown> extends FieldNestedEntityGetter<Data, QueryParams, Inner> {
|
43
|
+
cssClass?: string;
|
44
|
+
}
|
37
45
|
type FieldNestedArray<Data, QueryParams = unknown, Key extends keyof PickByType<Data, Array<unknown>> = keyof PickByType<Data, Array<unknown>>> = {
|
38
46
|
keyArray: Key;
|
39
47
|
fields: Data[Key] extends Array<infer Inner> ? ListFields<Inner, QueryParams> : [];
|
@@ -54,7 +62,7 @@ export interface ListFieldNestedArrayGetter<Data, QueryParams = unknown, Inner =
|
|
54
62
|
cssClassArray?: string;
|
55
63
|
componentArray?: Raw<FieldComponent<Data>>;
|
56
64
|
}
|
57
|
-
export type ListFields<Data, QueryParams = unknown> = (ListField<Data, QueryParams> | ListFieldNested<Data, QueryParams> | ListFieldNestedEntity<Data, QueryParams> | ListFieldNestedArray<Data, QueryParams> | ListFieldNestedArrayGetter<Data, QueryParams>)[];
|
65
|
+
export type ListFields<Data, QueryParams = unknown> = (ListField<Data, QueryParams> | ListFieldNested<Data, QueryParams> | ListFieldNestedEntity<Data, QueryParams> | ListFieldNestedEntityGetter<Data, QueryParams> | ListFieldNestedArray<Data, QueryParams> | ListFieldNestedArrayGetter<Data, QueryParams>)[];
|
58
66
|
export type MenuComponent<Data> = Component<{
|
59
67
|
item: Data;
|
60
68
|
readonly?: boolean;
|
@@ -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,kBAAkB,CAAC,IAAI,IAAI,SAAS,CAAC;IAC/C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC,CAAA;AAEF,MAAM,MAAM,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,IAAI;IACnD,SAAS,EAAE,GAAG,C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AQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;;;;
|
1
|
+
{"version":3,"file":"useFieldConfigMap.d.ts","sourceRoot":"","sources":["../../../../src/components/List/use/useFieldConfigMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAC,MAAM,KAAK,CAAA;AACrE,OAAO,KAAK,EAAC,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;AA6DhF,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,OAAO,KAAG,CAUxH,CAAA;AAGD,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAG,MAErF,CAAA;AAGD,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,QAAQ,CAAC,MAAM,CAAC,UAAU,QAAQ,CAAC,MAAM,CAAC,oBAAoB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;;;;CAkCzK,CAAA"}
|
@@ -73,6 +73,9 @@ const useFieldConfigMap = (key, fields, defaultConfigMap) => {
|
|
73
73
|
value.value = parseFieldConfigMap(getFieldConfigMap(unref(newKey)), unref(fields), unref(defaultConfigMap));
|
74
74
|
});
|
75
75
|
}
|
76
|
+
if (isRef(defaultConfigMap)) watch(defaultConfigMap, (newValue) => {
|
77
|
+
value.value = parseFieldConfigMap(getFieldConfigMap(unref(key)), unref(fields), newValue);
|
78
|
+
});
|
76
79
|
return {
|
77
80
|
fieldConfigMap,
|
78
81
|
hasSaved,
|
package/dist/types/global.d.ts
CHANGED
@@ -175,4 +175,12 @@ declare type ObjectFromEntries<List> = {
|
|
175
175
|
[KeyValue in List as KeyValue[0]]: KeyValue[1]
|
176
176
|
}
|
177
177
|
|
178
|
-
declare type ObjectPaths<Model, FieldType, IncludeNull = false> = ObjectFromEntries<PathsEntries<Model, FieldType, IncludeNull>[number]>
|
178
|
+
declare type ObjectPaths<Model, FieldType, IncludeNull = false> = ObjectFromEntries<PathsEntries<Model, FieldType, IncludeNull>[number]>
|
179
|
+
|
180
|
+
declare type IsTuple<T> = [T] extends [never]
|
181
|
+
? false
|
182
|
+
: T extends unknown[]
|
183
|
+
? number extends T['length']
|
184
|
+
? false
|
185
|
+
: true
|
186
|
+
: false
|
package/dist/utils/utils.d.ts
CHANGED
@@ -19,6 +19,6 @@ export declare const isIndex: (value: unknown) => value is number;
|
|
19
19
|
export declare const parseIndex: (value: unknown) => number;
|
20
20
|
export declare const get: <FieldType, Data extends Record<string, unknown>>(data: Data, path: keyof ObjectPaths<Data, FieldType>) => FieldType | undefined;
|
21
21
|
export declare const set: <FieldType, Data extends Record<string, unknown>>(data: Data, path: keyof ObjectPaths<Data, FieldType>, value: FieldType) => Data;
|
22
|
-
export declare const getDefaultFieldConfigMap: <Fields extends ListFields<any, any>>(fields: Fields, visible: GetFieldLabels<Fields>[]) => FieldConfigMap<Fields>;
|
22
|
+
export declare const getDefaultFieldConfigMap: <Fields extends ListFields<any, any>>(fields: Fields, visible: true extends IsTuple<Fields> ? GetFieldLabels<Fields>[] : string[]) => FieldConfigMap<Fields>;
|
23
23
|
export {};
|
24
24
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,cAAc,EAAE,cAAc,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAYpG,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,KAAK,CAAC,O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