eco-vue-js 0.8.17 → 0.8.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  2. package/dist/components/Button/WButtonSelection.vue.js +1 -1
  3. package/dist/components/Expansion/WExpansion.vue.d.ts +6 -2
  4. package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
  5. package/dist/components/Expansion/WExpansion.vue.js +4 -1
  6. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  7. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -1
  8. package/dist/components/FormAsync/WFormAsyncInput.vue.js +1 -0
  9. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -0
  10. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -0
  11. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -0
  12. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -0
  13. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  14. package/dist/components/InfiniteList/WInfiniteList.vue.js +82 -100
  15. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +39 -0
  16. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -0
  17. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +51 -0
  18. package/dist/components/InfiniteList/WInfiniteListWrapper.vue2.js +5 -0
  19. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +6 -6
  20. package/dist/components/InfiniteList/{WInfiniteListPages.vue.d.ts → components/InfiniteListPages.vue.d.ts} +1 -1
  21. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -0
  22. package/dist/components/InfiniteList/{WInfiniteListPages.vue.js → components/InfiniteListPages.vue.js} +7 -7
  23. package/dist/components/InfiniteList/components/InfiniteListPages.vue2.js +5 -0
  24. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +1 -1
  25. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +2 -2
  26. package/dist/components/Input/WInput.vue.d.ts +1 -0
  27. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  28. package/dist/components/Input/WInput.vue.js +136 -117
  29. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  30. package/dist/components/Input/WInputAsync.vue.js +34 -29
  31. package/dist/components/Input/WInputDate.vue.js +1 -0
  32. package/dist/components/Input/WInputOptions.vue.js +1 -0
  33. package/dist/components/Input/WInputSuggest.vue.js +2 -1
  34. package/dist/components/Input/types.d.ts +1 -0
  35. package/dist/components/Input/types.d.ts.map +1 -1
  36. package/dist/components/List/WList.vue.d.ts +5 -1
  37. package/dist/components/List/WList.vue.d.ts.map +1 -1
  38. package/dist/components/List/WList.vue.js +82 -31
  39. package/dist/components/List/WListCard.vue.d.ts +9 -1
  40. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  41. package/dist/components/List/WListCard.vue.js +114 -52
  42. package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
  43. package/dist/components/List/WListCardField.vue.js +21 -25
  44. package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
  45. package/dist/components/List/WListHeader.vue.js +36 -23
  46. package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
  47. package/dist/components/List/WListHeaderItem.vue.js +1 -1
  48. package/dist/components/List/types.d.ts +5 -2
  49. package/dist/components/List/types.d.ts.map +1 -1
  50. package/dist/components/Select/WSelect.vue.js +2 -1
  51. package/dist/components/Select/WSelectAsync.vue.js +2 -1
  52. package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -0
  53. package/dist/components/Select/WSelectSingle.vue.js +1 -0
  54. package/dist/components/Select/WSelectStringified.vue.js +1 -0
  55. package/dist/imports/componentsPlugin.d.ts +2 -2
  56. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  57. package/dist/main.js +1 -1
  58. package/package.json +3 -3
  59. package/tailwind-base/plugins/default.cjs +34 -34
  60. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +0 -1
  61. package/dist/components/InfiniteList/WInfiniteListPages.vue2.js +0 -5
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, resolveDynamicComponent, normalizeClass, createCommentVNode, createVNode } from 'vue';
1
+ import { defineComponent, ref, computed, openBlock, createBlock, unref, withCtx, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, normalizeClass, createCommentVNode, createVNode } 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';
@@ -14,15 +14,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  props: {
15
15
  count: {},
16
16
  fields: {},
17
+ expansion: {},
17
18
  useQueryFn: {},
18
19
  queryParams: {},
19
20
  bulkDisableMessage: {},
20
21
  selectionTitle: {},
21
22
  bulk: {},
23
+ bulkMore: {},
22
24
  menu: {},
23
25
  readonlyGetter: { type: Function },
24
26
  cardClass: {},
25
- selectAllTextGetter: { type: Function }
27
+ selectAllTextGetter: { type: Function },
28
+ hasBorder: { type: Boolean },
29
+ moreBottom: { type: Boolean }
26
30
  },
27
31
  emits: ["update:header-padding"],
28
32
  setup(__props) {
@@ -78,8 +82,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
82
  "skeleton-length": _ctx.count ?? listCount.value,
79
83
  "header-margin": unref(isMobile) ? 0 : 24,
80
84
  "hide-page-title": "",
81
- transition: "",
82
- "page-class": "grid sm:gap-4",
83
85
  "allow-select": allowSelect.value,
84
86
  "allow-select-range": "",
85
87
  selected: unref(selected),
@@ -90,16 +92,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
92
  onSelect: unref(setSelected),
91
93
  onSelectReverse: unref(setSelectedReverse),
92
94
  onSelectRange: unref(setSelectedRange),
93
- "onUpdate:headerPadding": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:header-padding", $event)),
94
- "onUpdate:count": _cache[4] || (_cache[4] = ($event) => listCount.value = $event)
95
+ "onUpdate:headerPadding": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:header-padding", $event)),
96
+ "onUpdate:count": _cache[5] || (_cache[5] = ($event) => listCount.value = $event)
95
97
  }, {
96
98
  header: withCtx(({ selectAllValue }) => [
97
99
  allowSelect.value ? (openBlock(), createBlock(_sfc_main$2, {
98
100
  key: 0,
99
101
  title: _ctx.selectionTitle,
100
102
  "disable-message": _ctx.bulkDisableMessage,
101
- "onUpdate:selectionCount": _cache[1] || (_cache[1] = ($event) => selectionCount.value = $event)
102
- }, {
103
+ "onUpdate:selectionCount": _cache[2] || (_cache[2] = ($event) => selectionCount.value = $event)
104
+ }, createSlots({
103
105
  default: withCtx(({ disableMessage, cssClass }) => [
104
106
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulk, (item, index) => {
105
107
  return openBlock(), createBlock(resolveDynamicComponent(item), {
@@ -112,8 +114,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
114
  }, null, 40, ["selection-count", "disable-message", "class"]);
113
115
  }), 128))
114
116
  ]),
115
- _: 1
116
- }, 8, ["title", "disable-message"])) : createCommentVNode("", true),
117
+ _: 2
118
+ }, [
119
+ _ctx.bulkMore ? {
120
+ name: "more",
121
+ fn: withCtx((scope) => [
122
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulkMore, (item, index) => {
123
+ return openBlock(), createBlock(resolveDynamicComponent(item), {
124
+ key: index,
125
+ "selection-count": selectionCount.value,
126
+ "query-params-getter": getQueryParamsBulk,
127
+ "disable-message": scope?.disableMessage,
128
+ class: normalizeClass(scope?.cssClass),
129
+ "onClear:selected": _cache[1] || (_cache[1] = ($event) => unref(setSelected)([]))
130
+ }, null, 40, ["selection-count", "disable-message", "class"]);
131
+ }), 128))
132
+ ]),
133
+ key: "0"
134
+ } : void 0
135
+ ]), 1032, ["title", "disable-message"])) : createCommentVNode("", true),
117
136
  !unref(isMobile) ? (openBlock(), createBlock(_sfc_main$3, {
118
137
  key: 1,
119
138
  class: "sm-not:hidden",
@@ -122,18 +141,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
141
  "tooltip-text": _ctx.selectAllTextGetter(selectAllValue !== true, _ctx.count ?? listCount.value),
123
142
  count: _ctx.count ?? listCount.value,
124
143
  selection: selectAllValue,
125
- "onToggle:selection": _cache[2] || (_cache[2] = ($event) => $event ? unref(setSelectedReverse)([]) : unref(setSelected)([]))
144
+ "onToggle:selection": _cache[3] || (_cache[3] = ($event) => $event ? unref(setSelectedReverse)([]) : unref(setSelected)([]))
126
145
  }, {
127
146
  default: withCtx(() => [
128
147
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fields, (field, index) => {
129
- return openBlock(), createBlock(_sfc_main$4, {
130
- key: index,
131
- title: typeof field.title === "string" ? field.title : field.title(_ctx.queryParams),
132
- field: field.field,
133
- class: normalizeClass([field.cssClass, index === _ctx.fields.length - 1 ? "z-[1]" : void 0]),
134
- ordering: ordering.value,
135
- disabled: !field.field
136
- }, null, 8, ["title", "field", "class", "ordering", "disabled"]);
148
+ return openBlock(), createElementBlock(Fragment, { key: index }, [
149
+ field.visibleGetter?.(_ctx.queryParams) ?? true ? (openBlock(), createBlock(_sfc_main$4, {
150
+ key: 0,
151
+ title: typeof field.title === "string" ? field.title : field.title(_ctx.queryParams),
152
+ field: typeof field.field === "string" ? field.field : field.field?.(_ctx.queryParams),
153
+ class: normalizeClass([field.cssClass, index === _ctx.fields.length - 1 ? "z-[1]" : void 0]),
154
+ ordering: ordering.value,
155
+ disabled: !field.field
156
+ }, null, 8, ["title", "field", "class", "ordering", "disabled"])) : createCommentVNode("", true)
157
+ ], 64);
137
158
  }), 128))
138
159
  ]),
139
160
  _: 2
@@ -143,8 +164,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
143
164
  createVNode(_sfc_main$5, {
144
165
  disabled: skeleton,
145
166
  mobile: unref(isMobile),
146
- class: normalizeClass(_ctx.cardClass)
147
- }, {
167
+ "card-class": _ctx.cardClass,
168
+ "has-border": _ctx.hasBorder,
169
+ "more-bottom": _ctx.moreBottom,
170
+ "allow-open": _ctx.fields.some((item2) => item2.allowOpen) && !skeleton
171
+ }, createSlots({
172
+ default: withCtx(({ toggle, isOpen }) => [
173
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fields, (field, index) => {
174
+ return openBlock(), createElementBlock(Fragment, { key: index }, [
175
+ field.visibleGetter?.(_ctx.queryParams) ?? true ? (openBlock(), createBlock(resolveDynamicComponent(field.component), {
176
+ key: 0,
177
+ item,
178
+ readonly: _ctx.readonlyGetter?.(item),
179
+ skeleton,
180
+ mobile: unref(isMobile),
181
+ class: normalizeClass({
182
+ [field.cssClass ?? ""]: true,
183
+ "cursor-pointer w-ripple w-ripple-hover w-ripple-has w-ripple-opacity-[0.04]": field.allowOpen && !skeleton,
184
+ "sm:border-y border-gray-300 dark:border-gray-700": _ctx.hasBorder,
185
+ "sm:border-b-[transparent] sm:dark:border-b-[transparent]": _ctx.hasBorder && isOpen
186
+ }),
187
+ "onUpdate:item": setter,
188
+ "onDelete:item": ($event) => {
189
+ setter();
190
+ refetch();
191
+ },
192
+ onClick: ($event) => field.allowOpen && !skeleton && toggle()
193
+ }, null, 40, ["item", "readonly", "skeleton", "mobile", "class", "onUpdate:item", "onDelete:item", "onClick"])) : createCommentVNode("", true)
194
+ ], 64);
195
+ }), 128))
196
+ ]),
148
197
  more: withCtx(() => [
149
198
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (menuItem, menuIndex) => {
150
199
  return openBlock(), createBlock(resolveDynamicComponent(menuItem), {
@@ -159,24 +208,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
159
208
  }, null, 40, ["item", "readonly", "onUpdate:item", "onDelete:item"]);
160
209
  }), 128))
161
210
  ]),
162
- default: withCtx(() => [
163
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fields, (field, index) => {
164
- return openBlock(), createBlock(resolveDynamicComponent(field.component), {
165
- key: index,
211
+ _: 2
212
+ }, [
213
+ _ctx.expansion ? {
214
+ name: "expansion",
215
+ fn: withCtx(() => [
216
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.expansion), {
166
217
  item,
167
218
  readonly: _ctx.readonlyGetter?.(item),
168
- class: normalizeClass(field.cssClass),
169
219
  skeleton,
220
+ mobile: unref(isMobile),
170
221
  "onUpdate:item": setter,
171
222
  "onDelete:item": ($event) => {
172
223
  setter();
173
224
  refetch();
174
225
  }
175
- }, null, 40, ["item", "readonly", "class", "skeleton", "onUpdate:item", "onDelete:item"]);
176
- }), 128))
177
- ]),
178
- _: 2
179
- }, 1032, ["disabled", "mobile", "class"])
226
+ }, null, 40, ["item", "readonly", "skeleton", "mobile", "onUpdate:item", "onDelete:item"]))
227
+ ]),
228
+ key: "0"
229
+ } : void 0
230
+ ]), 1032, ["disabled", "mobile", "card-class", "has-border", "more-bottom", "allow-open"])
180
231
  ]),
181
232
  _: 1
182
233
  }, 8, ["use-query-fn", "query-params", "skeleton-length", "header-margin", "allow-select", "selected", "reverse", "selected-range", "count", "onSelect", "onSelectReverse", "onSelectRange"]);
@@ -1,9 +1,11 @@
1
1
  declare function __VLS_template(): {
2
2
  slots: {
3
3
  default?(_: {
4
- toggle: ((value: boolean) => void) | undefined;
4
+ toggle: () => void;
5
+ isOpen: boolean;
5
6
  }): any;
6
7
  more?(_: {}): any;
8
+ expansion?(_: {}): any;
7
9
  };
8
10
  refs: {};
9
11
  attrs: Partial<{}>;
@@ -15,6 +17,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
15
17
  mobile?: boolean;
16
18
  moreBottom?: boolean;
17
19
  alignTop?: boolean;
20
+ hasBorder?: boolean;
21
+ cardClass?: string;
22
+ allowOpen?: boolean;
18
23
  }, {
19
24
  updateSelected: ((value: boolean) => void) | undefined;
20
25
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -26,6 +31,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
26
31
  mobile?: boolean;
27
32
  moreBottom?: boolean;
28
33
  alignTop?: boolean;
34
+ hasBorder?: boolean;
35
+ cardClass?: string;
36
+ allowOpen?: boolean;
29
37
  }> & Readonly<{
30
38
  "onUpdate:selected"?: ((value: boolean) => any) | undefined;
31
39
  "onUpdate:selected-hover"?: ((value: boolean) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AA0LA,iBAAS,cAAc;;;;YA0LO,GAAG;sBACN,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAzRR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;;;;;;;eAJP,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;;;;kFAgSlB,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":"AAqQA,iBAAS,cAAc;;;;;YAuSO,GAAG;sBACN,GAAG;2BACE,GAAG;;;WASrB,OAAO,IAA6B;EAEjD;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAlZR,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;;;;kFAsZnB,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,4 +1,4 @@
1
- import { defineComponent, inject, watch, openBlock, createElementBlock, createVNode, Transition, withCtx, unref, createCommentVNode, createBlock, normalizeClass, renderSlot, markRaw } from 'vue';
1
+ import { defineComponent, ref, inject, watch, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, createVNode, Transition, withCtx, unref, createCommentVNode, createBlock, renderSlot, normalizeProps, guardReactiveProps, markRaw } from 'vue';
2
2
  import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
3
3
  import _sfc_main$2 from '../Button/WButtonMore.vue.js';
4
4
  import _sfc_main$3 from '../Button/WButtonMoreItem.vue.js';
@@ -6,11 +6,14 @@ import IconAddCircle from '../../assets/icons/sax/IconAddCircle.svg.js';
6
6
  import IconMinusCircle from '../../assets/icons/sax/IconMinusCircle.svg.js';
7
7
  import { wInfiniteListSelection, wInfiniteListSelectionItem } from '../InfiniteList/models/injection.js';
8
8
 
9
- const _hoisted_1 = { class: "grid relative w-full sm:flex sm-not:group-even:bg-gray-50 sm-not:dark:group-even:bg-primary-darkest/25 sm-not:pt-2" };
10
- const _hoisted_2 = {
9
+ const _hoisted_1 = {
11
10
  key: 0,
12
11
  class: "bg-primary-default dark:bg-primary-dark w-2 h-full hidden sm-not:block absolute left-0 top-0"
13
12
  };
13
+ const _hoisted_2 = {
14
+ key: 0,
15
+ class: "absolute top-0 -z-[1] left-full h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))] bg-default dark:bg-default-dark sm-not:hidden"
16
+ };
14
17
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
18
  __name: "WListCard",
16
19
  props: {
@@ -18,11 +21,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
21
  hideMore: { type: Boolean },
19
22
  mobile: { type: Boolean },
20
23
  moreBottom: { type: Boolean },
21
- alignTop: { type: Boolean }
24
+ alignTop: { type: Boolean },
25
+ hasBorder: { type: Boolean },
26
+ cardClass: {},
27
+ allowOpen: { type: Boolean }
22
28
  },
23
29
  emits: ["update:selected", "update:selected-hover"],
24
30
  setup(__props, { expose: __expose, emit: __emit }) {
25
31
  const emit = __emit;
32
+ const isOpen = ref(false);
33
+ const toggle = () => {
34
+ isOpen.value = !isOpen.value;
35
+ };
26
36
  const {
27
37
  allowSelect,
28
38
  allowSelectRange,
@@ -49,54 +59,106 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
59
  updateSelected
50
60
  });
51
61
  return (_ctx, _cache) => {
52
- return openBlock(), createElementBlock("div", _hoisted_1, [
53
- createVNode(Transition, {
54
- "enter-active-class": "transition-transform duration-200",
55
- "leave-active-class": "transition-transform duration-200",
56
- "enter-from-class": "-translate-x-2",
57
- "leave-to-class": "-translate-x-2"
58
- }, {
59
- default: withCtx(() => [
60
- _ctx.mobile && unref(selected) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
61
- ]),
62
- _: 1
63
- }),
64
- unref(allowSelect) && !_ctx.mobile ? (openBlock(), createBlock(_sfc_main$1, {
65
- key: 0,
66
- "model-value": unref(selectedBetween) ? null : unref(selected) ?? false,
67
- disabled: _ctx.disabled,
68
- "allow-shift": unref(allowSelectRange),
69
- "align-top": _ctx.alignTop,
70
- class: normalizeClass(["sm:w-list-row-item sm-not:hidden", {
71
- "opacity-50": unref(allowSelectHover)
72
- }]),
73
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(allowSelectHover) ? unref(updateSelectedRange)?.() : unref(updateSelected)?.($event)),
74
- "onUpdateShift:modelValue": _cache[1] || (_cache[1] = ($event) => unref(updateSelectedRange)?.()),
75
- onMouseover: _cache[2] || (_cache[2] = ($event) => unref(allowSelectHover) ? unref(updateSelectedRangeHover)?.() : void 0)
76
- }, null, 8, ["model-value", "disabled", "allow-shift", "align-top", "class"])) : createCommentVNode("", true),
77
- renderSlot(_ctx.$slots, "default", { toggle: unref(updateSelected) }),
78
- !_ctx.hideMore ? (openBlock(), createBlock(_sfc_main$2, {
79
- key: 1,
80
- class: normalizeClass(["sm-not:absolute sm-not:right-0 sm-not:-mx--inner-margin sm-not:bottom-0 sm-not:items-start sm:w-list-row-item flex pl-4", {
81
- "sm-not:top-5": !_ctx.moreBottom,
82
- "sm-not:top-12": _ctx.moreBottom,
83
- "items-start pt-2": _ctx.alignTop,
84
- "items-center": !_ctx.alignTop
85
- }]),
86
- disabled: _ctx.disabled
87
- }, {
88
- default: withCtx(() => [
89
- unref(allowSelect) && _ctx.mobile ? (openBlock(), createBlock(_sfc_main$3, {
90
- key: 0,
91
- text: unref(selected) ? "Unselect" : "Select",
92
- icon: unref(selected) ? markRaw(unref(IconMinusCircle)) : markRaw(unref(IconAddCircle)),
93
- onClick: _cache[3] || (_cache[3] = ($event) => unref(updateSelected)?.(!unref(selected)))
94
- }, null, 8, ["text", "icon"])) : createCommentVNode("", true),
95
- renderSlot(_ctx.$slots, "more")
96
- ]),
97
- _: 3
98
- }, 8, ["class", "disabled"])) : createCommentVNode("", true)
99
- ]);
62
+ return openBlock(), createElementBlock(Fragment, null, [
63
+ createElementVNode("div", {
64
+ class: normalizeClass(["relative w-full grid sm:flex isolate sm:mt-4 first:mt-0 sm-not:group-even:bg-gray-50 sm-not:dark:group-even:bg-primary-darkest/25 sm-not:pt-2 sm-not:-px--inner-margin", {
65
+ [_ctx.cardClass ?? ""]: true,
66
+ "w-ripple-trigger-has": _ctx.allowOpen
67
+ }])
68
+ }, [
69
+ createVNode(Transition, {
70
+ "enter-active-class": "transition-transform duration-200",
71
+ "leave-active-class": "transition-transform duration-200",
72
+ "enter-from-class": "-translate-x-2",
73
+ "leave-to-class": "-translate-x-2"
74
+ }, {
75
+ default: withCtx(() => [
76
+ _ctx.mobile && unref(selected) ? (openBlock(), createElementBlock("div", _hoisted_1)) : createCommentVNode("", true)
77
+ ]),
78
+ _: 1
79
+ }),
80
+ !_ctx.mobile ? (openBlock(), createElementBlock("div", {
81
+ key: 0,
82
+ class: normalizeClass(["sticky z-[1] left-inner sm-not:hidden bg-default dark:bg-default-dark", {
83
+ "width-16": unref(allowSelect),
84
+ "width-4": !unref(allowSelect)
85
+ }])
86
+ }, [
87
+ _cache[4] || (_cache[4] = createElementVNode("div", { class: "absolute top-0 -z-[1] right-full h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))] bg-default dark:bg-default-dark" }, null, -1)),
88
+ createElementVNode("div", {
89
+ class: normalizeClass(["h-full", {
90
+ "sm:border sm:border-r-0 border-gray-300 dark:border-gray-700 sm:rounded-tl-3xl": _ctx.hasBorder,
91
+ "sm:rounded-bl-3xl": _ctx.hasBorder && !isOpen.value,
92
+ "sm:border-b-[transparent] sm:dark:border-b-[transparent]": _ctx.hasBorder && isOpen.value,
93
+ "w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": _ctx.allowOpen
94
+ }])
95
+ }, [
96
+ unref(allowSelect) ? (openBlock(), createBlock(_sfc_main$1, {
97
+ key: 0,
98
+ "model-value": unref(selectedBetween) ? null : unref(selected) ?? false,
99
+ disabled: _ctx.disabled,
100
+ "allow-shift": unref(allowSelectRange),
101
+ "align-top": _ctx.alignTop,
102
+ class: normalizeClass(["px-4 h-full", {
103
+ "opacity-50": unref(allowSelectHover)
104
+ }]),
105
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(allowSelectHover) ? unref(updateSelectedRange)?.() : unref(updateSelected)?.($event)),
106
+ "onUpdateShift:modelValue": _cache[1] || (_cache[1] = ($event) => unref(updateSelectedRange)?.()),
107
+ onMouseover: _cache[2] || (_cache[2] = ($event) => unref(allowSelectHover) ? unref(updateSelectedRangeHover)?.() : void 0)
108
+ }, null, 8, ["model-value", "disabled", "allow-shift", "align-top", "class"])) : createCommentVNode("", true)
109
+ ], 2)
110
+ ], 2)) : createCommentVNode("", true),
111
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ toggle, isOpen: isOpen.value }))),
112
+ createElementVNode("div", {
113
+ class: normalizeClass(["sm:sticky sm:z-[1] sm:right-inner sm:bg-default sm:dark:bg-default-dark", {
114
+ "width-14": !_ctx.hideMore,
115
+ "width-4": _ctx.hideMore
116
+ }])
117
+ }, [
118
+ !_ctx.mobile ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true),
119
+ createElementVNode("div", {
120
+ class: normalizeClass(["h-full", {
121
+ "sm:border sm:border-l-0 border-gray-300 dark:border-gray-700 sm:rounded-tr-3xl": _ctx.hasBorder,
122
+ "sm:rounded-br-3xl": _ctx.hasBorder && !isOpen.value,
123
+ "sm:border-b-[transparent] sm:dark:border-b-[transparent]": _ctx.hasBorder && isOpen.value,
124
+ "w-ripple-has-only w-ripple-hover w-ripple-opacity-[0.04]": _ctx.allowOpen
125
+ }])
126
+ }, [
127
+ !_ctx.hideMore ? (openBlock(), createBlock(_sfc_main$2, {
128
+ key: 0,
129
+ class: normalizeClass(["sm-not:absolute sm-not:right-0 sm-not:bottom-0 flex px-4 sm:h-full", {
130
+ "sm-not:top-5": !_ctx.moreBottom,
131
+ "sm-not:top-10": _ctx.moreBottom,
132
+ "items-start pt-2": _ctx.alignTop,
133
+ "items-center": !_ctx.alignTop
134
+ }]),
135
+ disabled: _ctx.disabled
136
+ }, {
137
+ default: withCtx(() => [
138
+ unref(allowSelect) && _ctx.mobile ? (openBlock(), createBlock(_sfc_main$3, {
139
+ key: 0,
140
+ text: unref(selected) ? "Unselect" : "Select",
141
+ icon: unref(selected) ? markRaw(unref(IconMinusCircle)) : markRaw(unref(IconAddCircle)),
142
+ onClick: _cache[3] || (_cache[3] = ($event) => unref(updateSelected)?.(!unref(selected)))
143
+ }, null, 8, ["text", "icon"])) : createCommentVNode("", true),
144
+ renderSlot(_ctx.$slots, "more")
145
+ ]),
146
+ _: 3
147
+ }, 8, ["class", "disabled"])) : createCommentVNode("", true)
148
+ ], 2)
149
+ ], 2)
150
+ ], 2),
151
+ _ctx.$slots.expansion ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
152
+ isOpen.value ? (openBlock(), createElementBlock("div", {
153
+ key: 0,
154
+ class: normalizeClass(["sm:sticky sm:w-inner sm:left-inner", {
155
+ "sm:px-5 sm:border sm:border-t-0 border-gray-300 dark:border-gray-700 sm:rounded-b-3xl": _ctx.hasBorder
156
+ }])
157
+ }, [
158
+ renderSlot(_ctx.$slots, "expansion")
159
+ ], 2)) : createCommentVNode("", true)
160
+ ], 64)) : createCommentVNode("", true)
161
+ ], 64);
100
162
  };
101
163
  }
102
164
  });
@@ -1 +1 @@
1
- {"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AA0DA,iBAAS,cAAc;;yBAkEM,GAAG;uBACL,GAAG;uBACF,GAAG;;;WASjB,OAAO,IAA6B;EAEjD;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBApGN,MAAM,GAAG,MAAM;eACjB,OAAO;;iBADL,MAAM,GAAG,MAAM;eACjB,OAAO;iGAyGlB,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":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AAuDA,iBAAS,cAAc;;yBA8DM,GAAG;uBACL,GAAG;uBACF,GAAG;;;WASjB,OAAO,IAA6B;EAEjD;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAhGN,MAAM,GAAG,MAAM;eACjB,OAAO;;iBADL,MAAM,GAAG,MAAM;eACjB,OAAO;iGAqGlB,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,11 +1,10 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, createBlock, renderSlot, createTextVNode, toDisplayString, createVNode, withCtx } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, createBlock, renderSlot, createElementVNode, createTextVNode, toDisplayString, createVNode, withCtx } from 'vue';
2
2
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
3
3
  import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
4
4
 
5
- const _hoisted_1 = { class: "flex items-center sm:h-16" };
6
- const _hoisted_2 = { class: "w-full relative" };
7
- const _hoisted_3 = { class: "absolute top-0 w-full truncate" };
8
- const _hoisted_4 = { class: "min-w-[12rem] max-w-xl overflow-hidden" };
5
+ const _hoisted_1 = { class: "grid grid-cols-1 items-center sm:h-16 sm:pr-6" };
6
+ const _hoisted_2 = { class: "truncate" };
7
+ const _hoisted_3 = { class: "min-w-[12rem] max-w-xl overflow-hidden" };
9
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
9
  __name: "WListCardField",
11
10
  props: {
@@ -15,27 +14,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
14
  setup(__props) {
16
15
  return (_ctx, _cache) => {
17
16
  return openBlock(), createElementBlock("div", _hoisted_1, [
18
- createElementVNode("div", _hoisted_2, [
19
- _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
20
- _cache[0] || (_cache[0] = createTextVNode("   ")),
21
- createElementVNode("div", _hoisted_3, [
22
- renderSlot(_ctx.$slots, "inner", {}, () => [
23
- createTextVNode(toDisplayString(_ctx.modelValue), 1)
24
- ]),
25
- createVNode(_sfc_main$1, {
26
- "no-touch": "",
27
- "overflow-only": ""
28
- }, {
29
- default: withCtx(() => [
30
- createElementVNode("div", _hoisted_4, [
31
- renderSlot(_ctx.$slots, "inner", {}, () => [
32
- createTextVNode(toDisplayString(_ctx.modelValue), 1)
33
- ])
17
+ _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
18
+ createElementVNode("div", _hoisted_2, [
19
+ renderSlot(_ctx.$slots, "inner", {}, () => [
20
+ createTextVNode(toDisplayString(_ctx.modelValue), 1)
21
+ ]),
22
+ createVNode(_sfc_main$1, {
23
+ "no-touch": "",
24
+ "overflow-only": ""
25
+ }, {
26
+ default: withCtx(() => [
27
+ createElementVNode("div", _hoisted_3, [
28
+ renderSlot(_ctx.$slots, "inner", {}, () => [
29
+ createTextVNode(toDisplayString(_ctx.modelValue), 1)
34
30
  ])
35
- ]),
36
- _: 3
37
- })
38
- ])
31
+ ])
32
+ ]),
33
+ _: 3
34
+ })
39
35
  ])
40
36
  ])
41
37
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"WListHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeader.vue"],"names":[],"mappings":"AAwEA,iBAAS,cAAc;;yBA4EM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBAzHL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;;kBALL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;kFA6HnB,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":"WListHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeader.vue"],"names":[],"mappings":"AAsFA,iBAAS,cAAc;;yBAsIM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBAnLL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;;kBALL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;kFAuLnB,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,15 +1,10 @@
1
- import { defineComponent, openBlock, createElementBlock, Fragment, createBlock, createCommentVNode, renderSlot } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, createBlock, createCommentVNode, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
3
3
 
4
- const _hoisted_1 = { class: "flex text-description font-semibold" };
5
- const _hoisted_2 = {
6
- key: 0,
7
- class: "w-list-header-item width-16"
8
- };
9
- const _hoisted_3 = {
10
- key: 1,
11
- class: "w-list-header-item width-14"
12
- };
4
+ const _hoisted_1 = { class: "flex text-description font-semibold h-12" };
5
+ const _hoisted_2 = { class: "sticky z-[1] left-inner bg-default dark:bg-default-dark" };
6
+ const _hoisted_3 = { class: "bg-primary-light dark:bg-primary-darkest border-y border-solid border-gray-300 dark:border-gray-700 flex flex-1" };
7
+ const _hoisted_4 = { class: "sticky z-[1] right-inner bg-default dark:bg-default-dark" };
13
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
9
  __name: "WListHeader",
15
10
  props: {
@@ -24,19 +19,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
19
  setup(__props) {
25
20
  return (_ctx, _cache) => {
26
21
  return openBlock(), createElementBlock("div", _hoisted_1, [
27
- _ctx.allowSelect ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
28
- _ctx.selection === void 0 || _ctx.count === 0 ? (openBlock(), createElementBlock("div", _hoisted_2)) : (openBlock(), createBlock(_sfc_main$1, {
29
- key: 1,
30
- disabled: _ctx.disabled,
31
- "model-value": _ctx.selection,
32
- "tooltip-text": _ctx.tooltipText,
33
- intermediate: "",
34
- class: "w-list-header-item width-16 justify-end",
35
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selection", $event))
36
- }, null, 8, ["disabled", "model-value", "tooltip-text"]))
37
- ], 64)) : createCommentVNode("", true),
38
- renderSlot(_ctx.$slots, "default"),
39
- !_ctx.hideMore ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true)
22
+ createElementVNode("div", _hoisted_2, [
23
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "absolute top-0 -z-[1] right-full h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))] bg-default dark:bg-default-dark" }, null, -1)),
24
+ createElementVNode("div", {
25
+ class: normalizeClass(["bg-primary-light dark:bg-primary-darkest border-y border-solid border-gray-300 dark:border-gray-700 rounded-l-2xl border-l h-full", {
26
+ "width-16": _ctx.allowSelect,
27
+ "width-4": !_ctx.allowSelect
28
+ }])
29
+ }, [
30
+ _ctx.allowSelect && _ctx.selection !== void 0 && _ctx.count !== 0 ? (openBlock(), createBlock(_sfc_main$1, {
31
+ key: 0,
32
+ disabled: _ctx.disabled,
33
+ "model-value": _ctx.selection,
34
+ "tooltip-text": _ctx.tooltipText,
35
+ intermediate: "",
36
+ class: "w-full h-full justify-end pr-6",
37
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle:selection", $event))
38
+ }, null, 8, ["disabled", "model-value", "tooltip-text"])) : createCommentVNode("", true)
39
+ ], 2)
40
+ ]),
41
+ createElementVNode("div", _hoisted_3, [
42
+ renderSlot(_ctx.$slots, "default")
43
+ ]),
44
+ createElementVNode("div", _hoisted_4, [
45
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "absolute top-0 -z-[1] left-full h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))] bg-default dark:bg-default-dark" }, null, -1)),
46
+ createElementVNode("div", {
47
+ class: normalizeClass(["bg-primary-light dark:bg-primary-darkest border-y border-solid border-gray-300 dark:border-gray-700 rounded-r-2xl border-r h-full", {
48
+ "width-14": !_ctx.hideMore,
49
+ "width-4": _ctx.hideMore
50
+ }])
51
+ }, null, 2)
52
+ ])
40
53
  ]);
41
54
  };
42
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WListHeaderItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeaderItem.vue"],"names":[],"mappings":"AAkGA,OAAO,EAAwB,KAAK,SAAS,EAAC,MAAM,eAAe,CAAA;yBAGlD,KAAK,eACR,WAAW,CAAC,OAA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AChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBA1BgB,GAAG;;UA4BvB,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAlKvE,wBAkK4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  };
46
46
  return (_ctx, _cache) => {
47
47
  return openBlock(), createElementBlock("div", {
48
- class: normalizeClass(["w-list-header-item flex gap-2 select-none items-center text-description font-semibold h-11", {
48
+ class: normalizeClass(["pr-6 flex gap-2 select-none items-center text-description font-semibold", {
49
49
  "cursor-pointer": !_ctx.disabled
50
50
  }]),
51
51
  onClick: setOrdering
@@ -3,12 +3,15 @@ export type FieldComponent<Data> = Component<{
3
3
  item: Data;
4
4
  skeleton?: boolean;
5
5
  readonly?: boolean;
6
+ mobile?: boolean;
6
7
  }>;
7
8
  export type ListField<Data, QueryParams = unknown> = {
8
9
  component: Raw<FieldComponent<Data>>;
9
- title: string | ((item: QueryParams) => string);
10
+ title: string | ((params: QueryParams) => string);
10
11
  cssClass?: string;
11
- field?: keyof Data;
12
+ field?: Extract<keyof Data, string> | ((params: QueryParams) => Extract<keyof Data, string>);
13
+ visibleGetter?: (params: QueryParams) => boolean;
14
+ allowOpen?: boolean;
12
15
  };
13
16
  export type MenuComponent<Data> = Component<{
14
17
  item: Data;
@@ -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,Q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