eco-vue-js 0.10.4 → 0.10.5

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.
@@ -21,6 +21,7 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
21
21
  menu: MenuComponent<Data>[];
22
22
  readonlyGetter?: (item: Data) => boolean;
23
23
  cardClass?: string;
24
+ cardWrapperClass?: string;
24
25
  selectAllTextGetter: (isUnselect: boolean, count: number) => string;
25
26
  hasBorder?: boolean;
26
27
  configKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAiXA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACzH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAsBxB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,SAAS,SAAS,OAAO,EAAE,eAC9H,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;WAisBxD,mBAAmB,CAAC;;;;;;gBA3rBpB,MAAM;gBACN,MAAM;oBACF,cAAc,CAAC,IAAI,CAAC;oBACpB,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;uBACT,OAAO,C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E,CAAC,EAAE,IAAI,KAAK,OAAO;mBAC5B,OAAO;qBACL,WAAW;mBACb,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;iBAC1C,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC;KA+pB6C,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YA7DgB,GAAG;;;;;YACJ,GAAG;;cAhmBzB,cAAc,SAAS,QAAQ,KAAG,IAAI;;;;YAiqBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1sBvE,wBA0sB4E;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, createBlock, openBlock, unref, normalizeClass, normalizeStyle, withCtx, renderSlot, createCommentVNode, createVNode, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, createElementVNode, isRef } from 'vue';
1
+ import { defineComponent, ref, computed, toRef, createElementBlock, openBlock, normalizeClass, unref, createVNode, normalizeStyle, withCtx, renderSlot, createCommentVNode, createSlots, Fragment, renderList, createBlock, resolveDynamicComponent, createElementVNode, isRef } from 'vue';
2
2
  import _sfc_main$4 from '../Button/WButtonSelection.vue.js';
3
3
  import _sfc_main$1 from '../InfiniteList/WInfiniteList.vue.js';
4
4
  import '../Button/WButtonAction.vue.js';
@@ -43,6 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  menu: {},
44
44
  readonlyGetter: { type: Function },
45
45
  cardClass: {},
46
+ cardWrapperClass: {},
46
47
  selectAllTextGetter: { type: Function },
47
48
  hasBorder: { type: Boolean },
48
49
  configKey: {},
@@ -65,6 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
66
  const listCount = ref(void 0);
66
67
  const selectionCount = ref(0);
67
68
  const cardStyles = computed(() => {
69
+ if (!props.cardColumns || !props.cardAreas) return;
68
70
  return {
69
71
  "--w-list-grid-cols": props.cardColumns.join(" "),
70
72
  "--w-list-grid-areas": props.cardAreas.map((inner) => `"${inner.join(" ")}"`).join("\n")
@@ -117,10 +119,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
119
  }
118
120
  return props.queryParams;
119
121
  };
120
- const getFieldStyles = (label) => {
121
- if (isGrid.value) return {
122
- gridArea: label
123
- };
122
+ const getFieldStyles = (label, nested) => {
123
+ if (isGrid.value) return nested ? void 0 : { gridArea: label };
124
124
  if (!fieldConfigMap.value[label]?.width) return void 0;
125
125
  const value = fieldConfigMap.value[label].width + "px";
126
126
  return {
@@ -129,216 +129,221 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
129
129
  };
130
130
  };
131
131
  return (_ctx, _cache) => {
132
- return openBlock(), createBlock(_sfc_main$1, {
133
- "use-query-fn": _ctx.useQueryFn,
134
- "query-params": _ctx.queryParams,
135
- "query-options": _ctx.queryOptions,
136
- "skeleton-length": _ctx.count ?? listCount.value ?? unref(PAGE_LENGTH),
137
- "hide-page-title": "",
138
- "allow-select": allowSelect.value,
139
- "allow-select-range": "",
140
- selected: unref(selected),
141
- reverse: unref(reverse),
142
- "selected-range": unref(selectedRange),
143
- "page-length": unref(PAGE_LENGTH),
144
- count: _ctx.count ?? listCount.value,
145
- "page-class": unref(isGrid) ? "grid grid-cols-[repeat(auto-fill,minmax(var(--w-list-card-width,16rem),1fr))] gap-[--w-list-gap,1rem]" : "grid grid-cols-1 gap-[--w-list-gap,1rem]",
146
- style: normalizeStyle(cardStyles.value),
132
+ return openBlock(), createElementBlock("div", {
147
133
  class: normalizeClass({
148
134
  "w-card": unref(isGrid),
149
135
  "w-list": !unref(isGrid)
150
- }),
151
- onSelect: unref(setSelected),
152
- onSelectReverse: unref(setSelectedReverse),
153
- onSelectRange: unref(setSelectedRange),
154
- "onUpdate:count": _cache[5] || (_cache[5] = ($event) => listCount.value = $event),
155
- "onUpdate:error": _cache[6] || (_cache[6] = ($event) => _ctx.$emit("update:error", $event))
156
- }, {
157
- header: withCtx(({ selectAllValue }) => [
158
- renderSlot(_ctx.$slots, "header", { count: listCount.value }),
159
- createVNode(_sfc_main$4, {
160
- title: _ctx.selectionTitle,
161
- "disable-message": _ctx.bulkDisableMessage,
162
- class: "z-[2]",
163
- "onUpdate:selectionCount": _cache[3] || (_cache[3] = ($event) => selectionCount.value = $event)
164
- }, createSlots({
165
- default: withCtx(({ disableMessage, cssClass }) => [
166
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulk, (item, index) => {
167
- return openBlock(), createBlock(resolveDynamicComponent(item), {
168
- key: index,
169
- "selection-count": selectionCount.value,
170
- "query-params-getter": getQueryParamsBulk,
171
- "disable-message": disableMessage,
172
- class: normalizeClass(cssClass),
173
- "onClear:selected": _cache[0] || (_cache[0] = ($event) => unref(setSelected)([]))
174
- }, null, 40, ["selection-count", "disable-message", "class"]);
175
- }), 128))
176
- ]),
177
- settings: withCtx(() => [
178
- createElementVNode("div", _hoisted_1, [
179
- !_ctx.noOrdering ? (openBlock(), createBlock(_sfc_main$5, {
180
- key: 0,
181
- ordering: ordering.value,
182
- fields: fieldsFiltered.value,
183
- "query-params": _ctx.queryParams,
184
- class: "border-r border-solid border-gray-300 dark:border-gray-700"
185
- }, null, 8, ["ordering", "fields", "query-params"])) : createCommentVNode("", true),
186
- createVNode(_sfc_main$6, {
187
- "field-config-map": unref(fieldConfigMap),
188
- "onUpdate:fieldConfigMap": _cache[2] || (_cache[2] = ($event) => isRef(fieldConfigMap) ? fieldConfigMap.value = $event : null),
189
- mode: unref(listConfig).mode,
190
- fields: fieldsVisible.value,
191
- "query-params": _ctx.queryParams,
192
- "has-saved": unref(hasSaved),
193
- "onClick:reset": unref(reset),
194
- "onUpdate:mode": unref(updateMode)
195
- }, null, 8, ["field-config-map", "mode", "fields", "query-params", "has-saved", "onClick:reset", "onUpdate:mode"])
196
- ])
197
- ]),
198
- _: 2
199
- }, [
200
- _ctx.bulkMore ? {
201
- name: "more",
202
- fn: withCtx((scope) => [
203
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulkMore, (item, index) => {
136
+ })
137
+ }, [
138
+ createVNode(_sfc_main$1, {
139
+ "use-query-fn": _ctx.useQueryFn,
140
+ "query-params": _ctx.queryParams,
141
+ "query-options": _ctx.queryOptions,
142
+ "skeleton-length": _ctx.count ?? listCount.value ?? unref(PAGE_LENGTH),
143
+ "hide-page-title": "",
144
+ "allow-select": allowSelect.value,
145
+ "allow-select-range": "",
146
+ selected: unref(selected),
147
+ reverse: unref(reverse),
148
+ "selected-range": unref(selectedRange),
149
+ "page-length": unref(PAGE_LENGTH),
150
+ count: _ctx.count ?? listCount.value,
151
+ "page-class": unref(isGrid) ? "grid grid-cols-[repeat(auto-fill,minmax(var(--w-list-card-width,16rem),1fr))] gap-[--w-list-gap,1rem]" : "grid grid-cols-1 gap-[--w-list-gap,1rem]",
152
+ style: normalizeStyle(cardStyles.value),
153
+ class: normalizeClass(_ctx.$attrs.class),
154
+ onSelect: unref(setSelected),
155
+ onSelectReverse: unref(setSelectedReverse),
156
+ onSelectRange: unref(setSelectedRange),
157
+ "onUpdate:count": _cache[5] || (_cache[5] = ($event) => listCount.value = $event),
158
+ "onUpdate:error": _cache[6] || (_cache[6] = ($event) => _ctx.$emit("update:error", $event))
159
+ }, {
160
+ header: withCtx(({ selectAllValue }) => [
161
+ renderSlot(_ctx.$slots, "header", { count: listCount.value }),
162
+ createVNode(_sfc_main$4, {
163
+ title: _ctx.selectionTitle,
164
+ "disable-message": _ctx.bulkDisableMessage,
165
+ class: "z-[3]",
166
+ "onUpdate:selectionCount": _cache[3] || (_cache[3] = ($event) => selectionCount.value = $event)
167
+ }, createSlots({
168
+ default: withCtx(({ disableMessage, cssClass }) => [
169
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulk, (item, index) => {
204
170
  return openBlock(), createBlock(resolveDynamicComponent(item), {
205
171
  key: index,
206
172
  "selection-count": selectionCount.value,
207
173
  "query-params-getter": getQueryParamsBulk,
208
- "disable-message": scope?.disableMessage,
209
- class: normalizeClass(scope?.cssClass),
210
- "onClear:selected": _cache[1] || (_cache[1] = ($event) => unref(setSelected)([]))
174
+ "disable-message": disableMessage,
175
+ class: normalizeClass(cssClass),
176
+ "onClear:selected": _cache[0] || (_cache[0] = ($event) => unref(setSelected)([]))
211
177
  }, null, 40, ["selection-count", "disable-message", "class"]);
212
178
  }), 128))
213
179
  ]),
214
- key: "0"
215
- } : void 0
216
- ]), 1032, ["title", "disable-message"]),
217
- !unref(isGrid) ? (openBlock(), createBlock(_sfc_main$7, {
218
- key: 0,
219
- class: "sm-not:hidden mb-4",
220
- "query-params": _ctx.queryParams,
221
- "allow-select": allowSelect.value,
222
- "tooltip-text": _ctx.selectAllTextGetter(selectAllValue !== true, _ctx.count ?? listCount.value ?? 0),
223
- count: _ctx.count ?? listCount.value,
224
- selection: selectAllValue,
225
- "onToggle:selection": _cache[4] || (_cache[4] = ($event) => $event ? unref(setSelectedReverse)([]) : unref(setSelected)([]))
226
- }, {
227
- default: withCtx(() => [
228
- createVNode(_sfc_main$8, { fields: fieldsFiltered.value }, {
229
- default: withCtx(({ field }) => [
230
- createVNode(_sfc_main$9, {
231
- title: typeof field.title === "string" ? field.title : field.title(_ctx.queryParams),
232
- field: typeof field.field === "string" ? field.field : field.field?.(_ctx.queryParams),
233
- class: normalizeClass(field.cssClass),
180
+ settings: withCtx(() => [
181
+ createElementVNode("div", _hoisted_1, [
182
+ !_ctx.noOrdering ? (openBlock(), createBlock(_sfc_main$5, {
183
+ key: 0,
234
184
  ordering: ordering.value,
235
- disabled: _ctx.noOrdering || !field.field,
236
- "allow-resize": field.allowResize,
237
- "item-class": field.cssClassHeader,
238
- "width-style": getFieldStyles(field.label),
239
- "onUpdate:width": ($event) => unref(fieldConfigMap)[field.label].width = $event,
240
- "onSave:width": unref(save)
241
- }, null, 8, ["title", "field", "class", "ordering", "disabled", "allow-resize", "item-class", "width-style", "onUpdate:width", "onSave:width"])
185
+ fields: fieldsFiltered.value,
186
+ "query-params": _ctx.queryParams,
187
+ class: "border-r border-solid border-gray-300 dark:border-gray-700"
188
+ }, null, 8, ["ordering", "fields", "query-params"])) : createCommentVNode("", true),
189
+ createVNode(_sfc_main$6, {
190
+ "field-config-map": unref(fieldConfigMap),
191
+ "onUpdate:fieldConfigMap": _cache[2] || (_cache[2] = ($event) => isRef(fieldConfigMap) ? fieldConfigMap.value = $event : null),
192
+ mode: unref(listConfig).mode,
193
+ fields: fieldsVisible.value,
194
+ "query-params": _ctx.queryParams,
195
+ "has-saved": unref(hasSaved),
196
+ "onClick:reset": unref(reset),
197
+ "onUpdate:mode": unref(updateMode)
198
+ }, null, 8, ["field-config-map", "mode", "fields", "query-params", "has-saved", "onClick:reset", "onUpdate:mode"])
199
+ ])
200
+ ]),
201
+ _: 2
202
+ }, [
203
+ _ctx.bulkMore ? {
204
+ name: "more",
205
+ fn: withCtx((scope) => [
206
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulkMore, (item, index) => {
207
+ return openBlock(), createBlock(resolveDynamicComponent(item), {
208
+ key: index,
209
+ "selection-count": selectionCount.value,
210
+ "query-params-getter": getQueryParamsBulk,
211
+ "disable-message": scope?.disableMessage,
212
+ class: normalizeClass(scope?.cssClass),
213
+ "onClear:selected": _cache[1] || (_cache[1] = ($event) => unref(setSelected)([]))
214
+ }, null, 40, ["selection-count", "disable-message", "class"]);
215
+ }), 128))
242
216
  ]),
243
- _: 1
244
- }, 8, ["fields"])
245
- ]),
246
- _: 2
247
- }, 1032, ["query-params", "allow-select", "tooltip-text", "count", "selection"])) : createCommentVNode("", true)
248
- ]),
249
- default: withCtx(({ item, skeleton, setter, refetch, previous, index }) => [
250
- _ctx.groupBy && (index === 0 || !skeleton && (!previous || !_ctx.groupBy(item, previous))) ? renderSlot(_ctx.$slots, "group", {
251
- key: 0,
252
- item,
253
- previous,
254
- skeleton
255
- }) : createCommentVNode("", true),
256
- createVNode(_sfc_main$2, {
257
- disabled: skeleton,
258
- "disable-more": _ctx.disableMore,
259
- mobile: unref(isMobile),
260
- "card-class": _ctx.cardClass,
261
- "has-border": _ctx.hasBorder,
262
- "allow-open": allowOpen.value && !skeleton,
263
- "align-top": _ctx.alignTop,
264
- "hide-more": _ctx.hideMore,
265
- "form-name": !skeleton ? _ctx.formNameGetter?.(item) : void 0,
266
- card: unref(isGrid),
267
- to: _ctx.cardTo?.(item)
268
- }, createSlots({
269
- default: withCtx(({ validate }) => [
270
- createVNode(_sfc_main$3, {
271
- fields: fieldsFiltered.value,
272
- item,
273
- skeleton,
274
- card: unref(isGrid)
275
- }, {
276
- default: withCtx((defaultScope) => [
277
- (openBlock(), createBlock(resolveDynamicComponent(defaultScope.field.component), {
278
- item: defaultScope.item,
279
- readonly: _ctx.readonly || (_ctx.readonlyGetter?.(defaultScope.item) ?? false),
217
+ key: "0"
218
+ } : void 0
219
+ ]), 1032, ["title", "disable-message"]),
220
+ !unref(isGrid) ? (openBlock(), createBlock(_sfc_main$7, {
221
+ key: 0,
222
+ class: "sm-not:hidden mb-4",
223
+ "query-params": _ctx.queryParams,
224
+ "allow-select": allowSelect.value,
225
+ "tooltip-text": _ctx.selectAllTextGetter(selectAllValue !== true, _ctx.count ?? listCount.value ?? 0),
226
+ count: _ctx.count ?? listCount.value,
227
+ selection: selectAllValue,
228
+ "onToggle:selection": _cache[4] || (_cache[4] = ($event) => $event ? unref(setSelectedReverse)([]) : unref(setSelected)([]))
229
+ }, {
230
+ default: withCtx(() => [
231
+ createVNode(_sfc_main$8, { fields: fieldsFiltered.value }, {
232
+ default: withCtx(({ field, nested }) => [
233
+ createVNode(_sfc_main$9, {
234
+ title: typeof field.title === "string" ? field.title : field.title(_ctx.queryParams),
235
+ field: typeof field.field === "string" ? field.field : field.field?.(_ctx.queryParams),
236
+ class: normalizeClass(field.cssClass),
237
+ ordering: ordering.value,
238
+ disabled: _ctx.noOrdering || !field.field,
239
+ "allow-resize": field.allowResize,
240
+ "item-class": field.cssClassHeader,
241
+ "width-style": getFieldStyles(field.label, nested),
242
+ "onUpdate:width": ($event) => unref(fieldConfigMap)[field.label].width = $event,
243
+ "onSave:width": unref(save)
244
+ }, null, 8, ["title", "field", "class", "ordering", "disabled", "allow-resize", "item-class", "width-style", "onUpdate:width", "onSave:width"])
245
+ ]),
246
+ _: 1
247
+ }, 8, ["fields"])
248
+ ]),
249
+ _: 2
250
+ }, 1032, ["query-params", "allow-select", "tooltip-text", "count", "selection"])) : createCommentVNode("", true)
251
+ ]),
252
+ default: withCtx(({ item, skeleton, setter, refetch, previous, index }) => [
253
+ _ctx.groupBy && (index === 0 || !skeleton && (!previous || !_ctx.groupBy(item, previous))) ? renderSlot(_ctx.$slots, "group", {
254
+ key: 0,
255
+ item,
256
+ previous,
257
+ skeleton
258
+ }) : createCommentVNode("", true),
259
+ createVNode(_sfc_main$2, {
260
+ disabled: skeleton,
261
+ "disable-more": _ctx.disableMore,
262
+ mobile: unref(isMobile),
263
+ "card-class": _ctx.cardClass,
264
+ "card-wrapper-class": _ctx.cardWrapperClass,
265
+ "has-border": _ctx.hasBorder,
266
+ "allow-open": allowOpen.value && !skeleton,
267
+ "align-top": _ctx.alignTop,
268
+ "hide-more": _ctx.hideMore,
269
+ "form-name": !skeleton ? _ctx.formNameGetter?.(item) : void 0,
270
+ card: unref(isGrid),
271
+ to: _ctx.cardTo?.(item)
272
+ }, createSlots({
273
+ default: withCtx(({ validate }) => [
274
+ createVNode(_sfc_main$3, {
275
+ fields: fieldsFiltered.value,
276
+ item,
277
+ skeleton,
278
+ card: unref(isGrid)
279
+ }, {
280
+ default: withCtx((defaultScope) => [
281
+ (openBlock(), createBlock(resolveDynamicComponent(defaultScope.field.component), {
282
+ item: defaultScope.item,
283
+ readonly: _ctx.readonly || (_ctx.readonlyGetter?.(defaultScope.item) ?? false),
284
+ skeleton,
285
+ card: unref(isGrid),
286
+ class: normalizeClass({
287
+ [defaultScope.field.cssClass ?? ""]: true,
288
+ "items-center": !_ctx.alignTop,
289
+ "items-start": _ctx.alignTop,
290
+ "pr-6": !unref(isGrid)
291
+ }),
292
+ style: normalizeStyle(getFieldStyles(defaultScope.field.label, defaultScope.nested)),
293
+ "onUpdate:item": setter,
294
+ "onDelete:item": ($event) => {
295
+ setter();
296
+ refetch();
297
+ },
298
+ onValidate: ($event) => validate()
299
+ }, null, 40, ["item", "readonly", "skeleton", "card", "class", "style", "onUpdate:item", "onDelete:item", "onValidate"]))
300
+ ]),
301
+ _: 2
302
+ }, 1032, ["fields", "item", "skeleton", "card"])
303
+ ]),
304
+ more: withCtx(() => [
305
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (menuItem, menuIndex) => {
306
+ return openBlock(), createBlock(resolveDynamicComponent(menuItem), {
307
+ key: menuIndex,
308
+ item,
309
+ readonly: _ctx.readonly || (_ctx.readonlyGetter?.(item) ?? false),
310
+ "update-item": setter,
311
+ "delete-item": () => {
312
+ setter();
313
+ refetch();
314
+ },
315
+ "onUpdate:item": setter,
316
+ "onDelete:item": ($event) => {
317
+ setter();
318
+ refetch();
319
+ }
320
+ }, null, 40, ["item", "readonly", "update-item", "delete-item", "onUpdate:item", "onDelete:item"]);
321
+ }), 128))
322
+ ]),
323
+ _: 2
324
+ }, [
325
+ _ctx.expansion ? {
326
+ name: "expansion",
327
+ fn: withCtx(() => [
328
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.expansion), {
329
+ item,
330
+ readonly: _ctx.readonly || (_ctx.readonlyGetter?.(item) ?? false),
280
331
  skeleton,
281
332
  card: unref(isGrid),
282
- class: normalizeClass({
283
- [defaultScope.field.cssClass ?? ""]: true,
284
- "items-center": !_ctx.alignTop,
285
- "items-start": _ctx.alignTop,
286
- "pr-6": !unref(isGrid)
287
- }),
288
- style: normalizeStyle(getFieldStyles(defaultScope.field.label)),
289
333
  "onUpdate:item": setter,
290
334
  "onDelete:item": ($event) => {
291
335
  setter();
292
336
  refetch();
293
- },
294
- onValidate: ($event) => validate()
295
- }, null, 40, ["item", "readonly", "skeleton", "card", "class", "style", "onUpdate:item", "onDelete:item", "onValidate"]))
337
+ }
338
+ }, null, 40, ["item", "readonly", "skeleton", "card", "onUpdate:item", "onDelete:item"]))
296
339
  ]),
297
- _: 2
298
- }, 1032, ["fields", "item", "skeleton", "card"])
299
- ]),
300
- more: withCtx(() => [
301
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (menuItem, menuIndex) => {
302
- return openBlock(), createBlock(resolveDynamicComponent(menuItem), {
303
- key: menuIndex,
304
- item,
305
- readonly: _ctx.readonly || (_ctx.readonlyGetter?.(item) ?? false),
306
- "update-item": setter,
307
- "delete-item": () => {
308
- setter();
309
- refetch();
310
- },
311
- "onUpdate:item": setter,
312
- "onDelete:item": ($event) => {
313
- setter();
314
- refetch();
315
- }
316
- }, null, 40, ["item", "readonly", "update-item", "delete-item", "onUpdate:item", "onDelete:item"]);
317
- }), 128))
318
- ]),
319
- _: 2
320
- }, [
321
- _ctx.expansion ? {
322
- name: "expansion",
323
- fn: withCtx(() => [
324
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.expansion), {
325
- item,
326
- readonly: _ctx.readonly || (_ctx.readonlyGetter?.(item) ?? false),
327
- skeleton,
328
- card: unref(isGrid),
329
- "onUpdate:item": setter,
330
- "onDelete:item": ($event) => {
331
- setter();
332
- refetch();
333
- }
334
- }, null, 40, ["item", "readonly", "skeleton", "card", "onUpdate:item", "onDelete:item"]))
335
- ]),
336
- key: "0"
337
- } : void 0
338
- ]), 1032, ["disabled", "disable-more", "mobile", "card-class", "has-border", "allow-open", "align-top", "hide-more", "form-name", "card", "to"])
339
- ]),
340
- _: 3
341
- }, 8, ["use-query-fn", "query-params", "query-options", "skeleton-length", "allow-select", "selected", "reverse", "selected-range", "page-length", "count", "page-class", "style", "class", "onSelect", "onSelectReverse", "onSelectRange"]);
340
+ key: "0"
341
+ } : void 0
342
+ ]), 1032, ["disabled", "disable-more", "mobile", "card-class", "card-wrapper-class", "has-border", "allow-open", "align-top", "hide-more", "form-name", "card", "to"])
343
+ ]),
344
+ _: 3
345
+ }, 8, ["use-query-fn", "query-params", "query-options", "skeleton-length", "allow-select", "selected", "reverse", "selected-range", "page-length", "count", "page-class", "style", "class", "onSelect", "onSelectReverse", "onSelectRange"])
346
+ ], 2);
342
347
  };
343
348
  }
344
349
  });
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
23
23
  alignTop: boolean | undefined;
24
24
  hasBorder: boolean | undefined;
25
25
  cardClass: string | undefined;
26
+ cardWrapperClass: string | undefined;
26
27
  allowOpen: boolean | undefined;
27
28
  disableMore: boolean | undefined;
28
29
  formName: string | undefined;
@@ -40,6 +41,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
40
41
  alignTop: boolean | undefined;
41
42
  hasBorder: boolean | undefined;
42
43
  cardClass: string | undefined;
44
+ cardWrapperClass: string | undefined;
43
45
  allowOpen: boolean | undefined;
44
46
  disableMore: boolean | undefined;
45
47
  formName: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AA2F5C,iBAAS,cAAc;;;;;;YAscO,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;WAUrB,OAAO,IAA6B;EAEjD;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA9jBT,OAAO,GAAG,SAAS;cACnB,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO,GAAG,SAAS;QACrB,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;;;;;;;cAVrB,OAAO,GAAG,SAAS;cACnB,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO,GAAG,SAAS;QACrB,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;;;;kFA+jB/B,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"}
1
+ {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AA4F5C,iBAAS,cAAc;;;;;;YAscO,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;WAUrB,OAAO,IAA6B;EAEjD;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA/jBT,OAAO,GAAG,SAAS;cACnB,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;sBACX,MAAM,GAAG,SAAS;eACzB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO,GAAG,SAAS;QACrB,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;;;;;;;cAXrB,OAAO,GAAG,SAAS;cACnB,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;sBACX,MAAM,GAAG,SAAS;eACzB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO,GAAG,SAAS;QACrB,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;;;;kFA+jB/B,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"}
@@ -22,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  alignTop: { type: Boolean },
23
23
  hasBorder: { type: Boolean },
24
24
  cardClass: {},
25
+ cardWrapperClass: {},
25
26
  allowOpen: { type: Boolean },
26
27
  disableMore: { type: Boolean },
27
28
  formName: {},
@@ -65,7 +66,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
66
  return (_ctx, _cache) => {
66
67
  return openBlock(), createElementBlock(Fragment, null, [
67
68
  createElementVNode("div", {
68
- class: normalizeClass(["@container relative isolate", {
69
+ class: normalizeClass(["relative isolate", {
70
+ [_ctx.cardWrapperClass ?? ""]: true,
69
71
  "w-ripple-trigger-has": _ctx.allowOpen || _ctx.to,
70
72
  "dark:group-even:bg-primary-darkest/25 grid grid-cols-1 group-even:bg-gray-50": _ctx.card,
71
73
  "flex": !_ctx.card,
@@ -176,7 +178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
176
178
  _cache[9] || (_cache[9] = 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)),
177
179
  createElementVNode("div", {
178
180
  class: normalizeClass(["h-full rounded-r-[--w-list-rounded,unset]", {
179
- "rounded-tr-[--w-list-rounded,1rem] border border-l-0 border-gray-300 dark:border-gray-700": _ctx.hasBorder,
181
+ "rounded-tr-[--w-list-rounded,unset] border border-l-0 border-gray-300 dark:border-gray-700": _ctx.hasBorder,
180
182
  "rounded-br-[unset!important]": isOpen.value,
181
183
  "border-b-transparent dark:border-b-transparent": _ctx.hasBorder && isOpen.value,
182
184
  "w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": _ctx.allowOpen || _ctx.to
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EAAC,WAAW,EAAa,UAAU,EAAC,MAAM,UAAU,CAAA;AAgBhE,OAAO,EAAC,KAAK,QAAQ,EAAgC,MAAM,sBAAsB,CAAA;yBAGhE,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;WAwXxD,mBAAmB,CAAC;;;;;gBApXpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;wBACrB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;cACrC,QAAQ;qBACD,WAAW;mBACb,OAAO;mBACP,OAAO;KA+WmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gB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,GAAG,IAAI;YACpE,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,aAAa,GAAG,IAAI;;;;;YAiXkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AApYvE,wBAoY4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -22,7 +22,7 @@ import _sfc_main$3 from './HeaderSettingsModeButton.vue.js';
22
22
  import { listModeList, listModeIconMap } from '../use/useListConfig.js';
23
23
 
24
24
  const _hoisted_1 = { class: "p-4" };
25
- const _hoisted_2 = { class: "grid grid-cols-[auto,auto,auto]" };
25
+ const _hoisted_2 = { class: "grid grid-cols-[auto,auto,auto] items-start" };
26
26
  const _hoisted_3 = { class: "flex flex-col gap-4" };
27
27
  const _hoisted_4 = { class: "grid grid-cols-1" };
28
28
  const _hoisted_5 = { class: "flex justify-end" };
@@ -118,7 +118,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
118
  }, null, 8, ["icon", "active", "onClick"]);
119
119
  }), 128))
120
120
  ]),
121
- _cache[4] || (_cache[4] = createElementVNode("div", { class: "mx-4 border-r border-solid border-gray-200 dark:border-gray-700" }, null, -1)),
121
+ _cache[4] || (_cache[4] = createElementVNode("div", { class: "mx-4 h-full border-r border-solid border-gray-200 dark:border-gray-700" }, null, -1)),
122
122
  createElementVNode("div", _hoisted_4, [
123
123
  createVNode(_sfc_main$4, { fields: _ctx.fields }, {
124
124
  default: withCtx(({ field, nested, first, last }) => [
@@ -13,11 +13,13 @@ declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: Non
13
13
  default: (props: {
14
14
  field: ListField<Data, QueryParams>;
15
15
  item: Data;
16
+ nested: boolean;
16
17
  }) => void;
17
18
  }> & {
18
19
  default: (props: {
19
20
  field: ListField<Data, QueryParams>;
20
21
  item: Data;
22
+ nested: boolean;
21
23
  }) => void;
22
24
  };
23
25
  emit: {};
@@ -1 +1 @@
1
- {"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;yBASlC,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;WAoIxD,mBAAmB,CAAC;gBAhIpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;cAC/B,IAAI;iBACD,OAAO;kBACN,OAAO;cACX,OAAO;KA4HwE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;iBAzHF,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;;UA2HpE,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA9IvE,wBA8I4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"ListCardFieldNested.vue.d.ts","s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defineComponent({
77
77
  ], 64)) : renderSlot(_ctx.$slots, "default", {
78
78
  key: 1,
79
79
  field,
80
- item: _ctx.item
80
+ item: _ctx.item,
81
+ nested: _ctx.nested === true
81
82
  })
82
83
  ], 64);
83
84
  }), 128);
@@ -19,9 +19,9 @@ const useOrdering = (ordering, field) => {
19
19
  const setOrdering = () => {
20
20
  const newOrdering = ordering.value.slice();
21
21
  if (index.value === -1) {
22
- newOrdering.push({ field: field.value, order: Order.ASC });
23
- } else if (newOrdering[index.value].order === Order.ASC) {
24
- newOrdering[index.value].order = Order.DESC;
22
+ newOrdering.push({ field: field.value, order: Order.DESC });
23
+ } else if (newOrdering[index.value].order === Order.DESC) {
24
+ newOrdering[index.value].order = Order.ASC;
25
25
  } else {
26
26
  newOrdering.splice(index.value, 1);
27
27
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.10.4",
7
+ "version": "0.10.5",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "preview": "vite preview",
@@ -121,8 +121,10 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
121
121
  addVariant('resizer', '&::-webkit-resizer')
122
122
  addVariant('last-not', '&:not(:last-child)')
123
123
  addVariant('first-not', '&:not(:first-child)')
124
- addVariant('card', ['.w-card &', '&.w-card'])
125
- addVariant('list', ['.w-list &', '&.w-list'])
124
+ addVariant('card', ['.w-card &'])
125
+ addVariant('card-l', ['&.w-card'])
126
+ addVariant('list', ['.w-list &'])
127
+ addVariant('list-l', ['&.w-list'])
126
128
 
127
129
  addBase({
128
130
  '.w-input': {