eco-vue-js 0.9.25 → 0.9.26
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/InfiniteList/components/InfiniteListPage.vue.js +1 -1
- package/dist/components/List/WList.vue.d.ts +6 -0
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +9 -2
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +1 -1
- package/dist/components/Select/WSelect.vue.js +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +1 -1
- package/package.json +1 -1
@@ -32,6 +32,7 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
32
32
|
readonly?: boolean;
|
33
33
|
noOrdering?: boolean;
|
34
34
|
formNameGetter?: (data: Data) => string | undefined;
|
35
|
+
groupBy?: (a: Data, b: Data) => boolean;
|
35
36
|
}> & import('vue').PublicProps;
|
36
37
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
37
38
|
attrs: any;
|
@@ -39,6 +40,11 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
39
40
|
header?(_: {
|
40
41
|
count: number | undefined;
|
41
42
|
}): any;
|
43
|
+
group?(_: {
|
44
|
+
item: Data;
|
45
|
+
previous: Data | undefined;
|
46
|
+
skeleton: boolean;
|
47
|
+
}): any;
|
42
48
|
};
|
43
49
|
emit: {
|
44
50
|
(e: "update:header-padding", value: number): void;
|
@@ -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":"AA8UA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACrG,OAAO,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ClD,GAAG;;;;YAxDgB,GAAG;;;;;YACJ,GAAG;;;YAtkBzB,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YAioBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxqBvE,wBAwqB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -39,7 +39,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
disableMore: { type: Boolean },
|
40
40
|
readonly: { type: Boolean },
|
41
41
|
noOrdering: { type: Boolean },
|
42
|
-
formNameGetter: { type: Function }
|
42
|
+
formNameGetter: { type: Function },
|
43
|
+
groupBy: { type: Function }
|
43
44
|
},
|
44
45
|
emits: ["update:header-padding", "update:error"],
|
45
46
|
setup(__props) {
|
@@ -206,7 +207,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
206
207
|
_: 2
|
207
208
|
}, 1032, ["query-params", "allow-select", "tooltip-text", "count", "selection"])) : createCommentVNode("", true)
|
208
209
|
]),
|
209
|
-
default: withCtx(({ item, skeleton, setter, refetch }) => [
|
210
|
+
default: withCtx(({ item, skeleton, setter, refetch, previous, index }) => [
|
211
|
+
_ctx.groupBy && (index === 0 || !skeleton && (!previous || !_ctx.groupBy(item, previous))) ? renderSlot(_ctx.$slots, "group", {
|
212
|
+
key: 0,
|
213
|
+
item,
|
214
|
+
previous,
|
215
|
+
skeleton
|
216
|
+
}) : createCommentVNode("", true),
|
210
217
|
createVNode(_sfc_main$7, {
|
211
218
|
disabled: skeleton,
|
212
219
|
"disable-more": _ctx.disableMore,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AA4SA,iBAAS,cAAc;;;;;;
|
1
|
+
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AA4SA,iBAAS,cAAc;;;;;;YAkVO,GAAG;sBACN,GAAG;2BACE,GAAG;;;;;WAUrB,OAAO,IAA6B;EAEjD;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAtcR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;uBACC,MAAM;gBACb,OAAO;kBACL,OAAO;eACV,MAAM;;;;;;;eAVN,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;uBACC,MAAM;gBACb,OAAO;kBACL,OAAO;eACV,MAAM;;;;kFAucjB,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"}
|
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
67
67
|
return (_ctx, _cache) => {
|
68
68
|
return openBlock(), createElementBlock(Fragment, null, [
|
69
69
|
createElementVNode("div", {
|
70
|
-
class: normalizeClass(["sm-not:grid-cols-1 sm-not:group-even:bg-gray-50 sm-not:dark:group-even:bg-primary-darkest/25
|
70
|
+
class: normalizeClass(["sm-not:grid-cols-1 sm-not:group-even:bg-gray-50 sm-not:dark:group-even:bg-primary-darkest/25 relative isolate grid sm:flex", {
|
71
71
|
"w-ripple-trigger-has": _ctx.allowOpen,
|
72
72
|
[_ctx.cardWrapperClass ?? ""]: true
|
73
73
|
}])
|