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 +1 @@
1
- {"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAiLA,iBAAS,cAAc;;;;;YA2KM,GAAG;;;;YACL,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAjQT,MAAM;qBACG,MAAM;;;;;;YADf,MAAM;qBACG,MAAM;;;;WADf,MAAM;oBACG,MAAM;6EA2QzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAiLA,iBAAS,cAAc;;;;;YA8KM,GAAG;;;;YACL,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YApQT,MAAM;qBACG,MAAM;;;;;;YADf,MAAM;qBACG,MAAM;;;;WADf,MAAM;oBACG,MAAM;6EA8QzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -8,7 +8,7 @@ import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
8
8
  import _sfc_main$3 from '../ClickOutside/WClickOutside.vue.js';
9
9
  import { wInfiniteListSelection } from '../InfiniteList/models/injection.js';
10
10
 
11
- const _hoisted_1 = { class: "grid grid-cols-[1fr,auto] h-12 pb-3 w-full" };
11
+ const _hoisted_1 = { class: "grid grid-cols-[1fr,auto] h-12 pb-3 w-full sm:sticky sm:left-inner sm:w-inner" };
12
12
  const _hoisted_2 = { class: "flex" };
13
13
  const _hoisted_3 = {
14
14
  key: 0,
@@ -9,10 +9,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<{
10
10
  isOpen?: boolean;
11
11
  isShown?: boolean;
12
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ "update:visible": (value: boolean) => any;
14
+ }, string, import('vue').PublicProps, Readonly<{
13
15
  isOpen?: boolean;
14
16
  isShown?: boolean;
15
- }> & Readonly<{}>, {
17
+ }> & Readonly<{
18
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
19
+ }>, {
16
20
  isOpen: boolean;
17
21
  isShown: boolean;
18
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"WExpansion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Expansion/WExpansion.vue"],"names":[],"mappings":"AAgEA,iBAAS,cAAc;;yBAkDO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aA5FR,OAAO;cACN,OAAO;;aADR,OAAO;cACN,OAAO;;YADR,OAAO;aACN,OAAO;6EAkGnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WExpansion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Expansion/WExpansion.vue"],"names":[],"mappings":"AA2EA,iBAAS,cAAc;;yBAyFO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aA5IR,OAAO;cACN,OAAO;;;;aADR,OAAO;cACN,OAAO;;;;YADR,OAAO;aACN,OAAO;6EAqJnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -11,6 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  isOpen: { type: Boolean, default: true },
12
12
  isShown: { type: Boolean, default: true }
13
13
  },
14
+ emits: ["update:visible"],
14
15
  setup(__props) {
15
16
  return (_ctx, _cache) => {
16
17
  return openBlock(), createBlock(Transition, {
@@ -19,7 +20,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  "enter-to-class": "grid-rows-[1fr]",
20
21
  "leave-active-class": "transition-[grid-template-rows] overflow-hidden grid",
21
22
  "leave-from-class": "grid-rows-[1fr]",
22
- "leave-to-class": "grid-rows-[0fr]"
23
+ "leave-to-class": "grid-rows-[0fr]",
24
+ onBeforeEnter: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:visible", true)),
25
+ onAfterLeave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:visible", false))
23
26
  }, {
24
27
  default: withCtx(() => [
25
28
  (openBlock(), createBlock(KeepAlive, null, [
@@ -1 +1 @@
1
- {"version":3,"file":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AA6B9C,iBAAS,cAAc;;uBA8NI,GAAG;0BACC,GAAG;;;gCA3OP,OAAO,KAAG,IAAI;;YA4Ob,GAAG;;;gCA5OJ,OAAO,KAAG,IAAI;;YA6OX,GAAG;uBACL,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFASnB,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":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AA6B9C,iBAAS,cAAc;;uBA6NI,GAAG;0BACC,GAAG;;;gCA1OP,OAAO,KAAG,IAAI;;YA2Ob,GAAG;;;gCA3OJ,OAAO,KAAG,IAAI;;YA4OX,GAAG;uBACL,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFASnB,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"}
@@ -102,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
102
  }, [
103
103
  renderSlot(_ctx.$slots, "field", normalizeProps(guardReactiveProps({ id: unref(id), setFocused, focused: focused.value })), () => [
104
104
  createElementVNode("div", {
105
- class: normalizeClass(["text-base font-normal min-h-[2.75rem] flex items-center border-t -mt-px border-solid border-gray-300 dark:border-gray-700", {
105
+ class: normalizeClass(["text-base font-normal min-h-[2.75rem] flex items-center border-t border-solid border-gray-300 dark:border-gray-700", {
106
106
  "font-mono": _ctx.mono
107
107
  }])
108
108
  }, [
@@ -28,6 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  autocomplete: {},
29
29
  autofocus: { type: Boolean },
30
30
  readonly: { type: Boolean },
31
+ unclickable: { type: Boolean },
31
32
  disabledActions: { type: Boolean },
32
33
  loading: { type: Boolean },
33
34
  spellcheck: { type: Boolean },
@@ -37,6 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  autocomplete: {},
38
38
  autofocus: { type: Boolean },
39
39
  readonly: { type: Boolean },
40
+ unclickable: { type: Boolean },
40
41
  disabledActions: { type: Boolean },
41
42
  loading: { type: Boolean },
42
43
  spellcheck: { type: Boolean },
@@ -43,6 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  autocomplete: {},
44
44
  autofocus: { type: Boolean },
45
45
  readonly: { type: Boolean },
46
+ unclickable: { type: Boolean },
46
47
  disabledActions: { type: Boolean },
47
48
  loading: { type: Boolean },
48
49
  spellcheck: { type: Boolean },
@@ -38,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  autocomplete: {},
39
39
  autofocus: { type: Boolean },
40
40
  readonly: { type: Boolean },
41
+ unclickable: { type: Boolean },
41
42
  disabledActions: { type: Boolean },
42
43
  loading: { type: Boolean },
43
44
  spellcheck: { type: Boolean },
@@ -38,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  autocomplete: {},
39
39
  autofocus: { type: Boolean },
40
40
  readonly: { type: Boolean },
41
+ unclickable: { type: Boolean },
41
42
  disabledActions: { type: Boolean },
42
43
  loading: { type: Boolean },
43
44
  spellcheck: { type: Boolean },
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"yBAkQiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,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;WAiZxD,mBAAmB,CAAC;;;;;;;;oBA7Yd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;uBACR,MAAM;2BACF,OAAO;eACnB,OAAO;gBACN,OAAO;qBACF,OAAO;2BACD,OAAO,GAAG,IAAI;0BACf,OAAO;oBACb,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,C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AE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SAhEY,MAAM,cAAc,MAAM,UAgEzB;YACjB,cAAc,iBAA6B;SAC5C,KAAK,IAAI;;;YAjFN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;YAEpC,QAAQ,UAAU,KAAK,EAAE,GAAG,IAAI;YAChC,gBAAgB,UAAU,KAAK,EAAE,GAAG,IAAI;YACxC,cAAc,SAAS,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;YAkVZ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzZvE,wBAyZ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,10 +1,10 @@
1
- import { defineComponent, ref, toRef, provide, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, createVNode, withCtx, createBlock, resolveDynamicComponent } from 'vue';
2
- import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
3
- import _sfc_main$1 from './WInfiniteListPages.vue.js';
4
- import _sfc_main$3 from './components/InfiniteListPageSelectItem.vue.js';
1
+ import { defineComponent, ref, toRef, provide, onBeforeUnmount, openBlock, createBlock, resolveDynamicComponent, withCtx, renderSlot, normalizeProps, guardReactiveProps, unref, createVNode } from 'vue';
2
+ import _sfc_main$3 from './components/InfiniteListPages.vue.js';
3
+ import _sfc_main$4 from './components/InfiniteListPageSelectItem.vue.js';
5
4
  import { useSelected } from './use/useSelected.js';
6
5
  import { wInfiniteListSelection } from './models/injection.js';
7
- import _sfc_main$2 from './components/EmptyComponent.vue.js';
6
+ import _sfc_main$1 from './components/EmptyComponent.vue.js';
7
+ import _sfc_main$2 from './WInfiniteListWrapper.vue.js';
8
8
 
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "WInfiniteList",
@@ -52,7 +52,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  const goto = (page, itemIndex) => {
53
53
  infiniteListPages.value?.goto(page, itemIndex);
54
54
  };
55
- const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement);
56
55
  const {
57
56
  setSelectedRange,
58
57
  getIsSelected,
@@ -80,18 +79,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
79
  selectedCount,
81
80
  clearSelected: () => emit("select", [])
82
81
  });
83
- watch(isIntersecting, (value) => {
84
- if (!value && headerHeight.value) {
85
- updateHeaderPadding(headerHeight.value - props.headerMargin);
86
- } else {
87
- updateHeaderPadding(0);
88
- }
89
- });
90
- onMounted(() => {
91
- if (props.queryParams.page && props.queryParams.page > 1) {
92
- isIntersecting.value = false;
93
- }
94
- });
95
82
  onBeforeUnmount(() => {
96
83
  updateHeaderPadding(0);
97
84
  });
@@ -101,88 +88,83 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
88
  }
102
89
  });
103
90
  return (_ctx, _cache) => {
104
- return openBlock(), createElementBlock(Fragment, null, [
105
- !_ctx.minHeight ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
106
- createElementVNode("div", {
107
- ref_key: "indicator",
108
- ref: indicator
109
- }, null, 512),
110
- createElementVNode("div", {
111
- ref_key: "header",
112
- ref: header,
113
- class: normalizeClass(["sticky top-[var(--header-height)]", {
114
- "z-[1]": unref(isIntersecting),
115
- "z-20": !unref(isIntersecting)
116
- }])
117
- }, [
118
- renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ selectAllValue: unref(selectAllValue), goto })))
119
- ], 2)
120
- ], 64)) : createCommentVNode("", true),
121
- createVNode(_sfc_main$1, {
122
- ref_key: "infiniteListPages",
123
- ref: infiniteListPages,
124
- "query-params": _ctx.queryParams,
125
- "use-query-fn": _ctx.useQueryFn,
126
- "scrolling-element": _ctx.scrollingElement,
127
- "skip-scroll-target": _ctx.skipScrollTarget,
128
- "skeleton-length": _ctx.skeletonLength,
129
- "hide-page-title": _ctx.hidePageTitle,
130
- wrap: _ctx.wrap,
131
- "no-gap": _ctx.noGap,
132
- transition: _ctx.transition,
133
- "page-length": _ctx.pageLength,
134
- "header-top": _ctx.headerTopIgnore ? 0 : unref(headerTop),
135
- "header-height": unref(headerHeight),
136
- "min-height": _ctx.minHeight,
137
- "last-child": _ctx.lastChild,
138
- "exclude-params": _ctx.excludeParams,
139
- "empty-stub": _ctx.emptyStub,
140
- "page-class": _ctx.pageClass,
141
- "max-pages": _ctx.maxPages,
142
- "refetch-interval": _ctx.refetchInterval,
143
- "query-options": _ctx.queryOptions,
144
- selected: _ctx.selected,
145
- "value-getter": _ctx.valueGetter,
146
- "select-only": _ctx.selectOnly,
147
- "unselect-only": _ctx.unselectOnly,
148
- "reverse-selection": _ctx.reverseSelection,
149
- "allow-page-selection": _ctx.allowPageSelection,
150
- "onUpdate:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select", $event)),
151
- "onUpdate:count": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:count", $event)),
152
- "onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
153
- }, {
154
- default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting, page, index }) => [
155
- (openBlock(), createBlock(resolveDynamicComponent(skeleton ? _sfc_main$2 : _sfc_main$3), {
156
- selected: skeleton ? false : unref(getIsSelected)(_ctx.valueGetter(item)),
157
- "selected-between": skeleton ? false : unref(getIsSelectedBetween)(_ctx.valueGetter(item), page, index),
158
- "onUpdate:selected": ($event) => {
159
- unref(toggleSelected)(_ctx.valueGetter(item), _ctx.reverse && !_ctx.selectedRange ? !$event : $event);
160
- unref(setSelectedCursor)($event ? { page, index, id: _ctx.valueGetter(item) } : null);
161
- },
162
- "onUpdate:selectedRange": ($event) => unref(setSelectedRange)({ page, index, id: _ctx.valueGetter(item) }),
163
- "onUpdate:selectedRangeHover": ($event) => unref(setRangeHover)({ page, index, id: _ctx.valueGetter(item) })
164
- }, {
165
- default: withCtx(() => [
166
- renderSlot(_ctx.$slots, "default", {
167
- item,
168
- setter,
169
- skeleton,
170
- refetch,
171
- previous,
172
- next,
173
- first,
174
- last,
175
- resetting,
176
- page,
177
- index
178
- })
179
- ]),
180
- _: 2
181
- }, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
182
- ]),
183
- _: 3
184
- }, 8, ["query-params", "use-query-fn", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
185
- ], 64);
91
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.minHeight ? _sfc_main$1 : _sfc_main$2), {
92
+ "scrolling-element": _ctx.scrollingElement,
93
+ "header-margin": _ctx.headerMargin,
94
+ "init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0,
95
+ "onUpdate:headerPadding": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:header-padding", $event))
96
+ }, {
97
+ header: withCtx(() => [
98
+ renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ selectAllValue: unref(selectAllValue), goto })))
99
+ ]),
100
+ default: withCtx((defaultScope) => [
101
+ createVNode(_sfc_main$3, {
102
+ ref_key: "infiniteListPages",
103
+ ref: infiniteListPages,
104
+ "query-params": _ctx.queryParams,
105
+ "use-query-fn": _ctx.useQueryFn,
106
+ "scrolling-element": _ctx.scrollingElement,
107
+ "skip-scroll-target": _ctx.skipScrollTarget,
108
+ "skeleton-length": _ctx.skeletonLength,
109
+ "hide-page-title": _ctx.hidePageTitle,
110
+ wrap: _ctx.wrap,
111
+ "no-gap": _ctx.noGap,
112
+ transition: _ctx.transition,
113
+ "page-length": _ctx.pageLength,
114
+ "header-top": _ctx.headerTopIgnore ? 0 : "headerTop" in defaultScope ? defaultScope.headerTop : 0,
115
+ "header-height": "headerHeight" in defaultScope ? defaultScope.headerHeight : 0,
116
+ "min-height": _ctx.minHeight,
117
+ "last-child": _ctx.lastChild,
118
+ "exclude-params": _ctx.excludeParams,
119
+ "empty-stub": _ctx.emptyStub,
120
+ "page-class": _ctx.pageClass,
121
+ "max-pages": _ctx.maxPages,
122
+ "refetch-interval": _ctx.refetchInterval,
123
+ "query-options": _ctx.queryOptions,
124
+ selected: _ctx.selected,
125
+ "value-getter": _ctx.valueGetter,
126
+ "select-only": _ctx.selectOnly,
127
+ "unselect-only": _ctx.unselectOnly,
128
+ "reverse-selection": _ctx.reverseSelection,
129
+ "allow-page-selection": _ctx.allowPageSelection,
130
+ "onUpdate:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select", $event)),
131
+ "onUpdate:count": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:count", $event)),
132
+ "onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
133
+ }, {
134
+ default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting, page, index }) => [
135
+ (openBlock(), createBlock(resolveDynamicComponent(skeleton ? _sfc_main$1 : _sfc_main$4), {
136
+ selected: skeleton ? false : unref(getIsSelected)(_ctx.valueGetter(item)),
137
+ "selected-between": skeleton ? false : unref(getIsSelectedBetween)(_ctx.valueGetter(item), page, index),
138
+ "onUpdate:selected": ($event) => {
139
+ unref(toggleSelected)(_ctx.valueGetter(item), _ctx.reverse && !_ctx.selectedRange ? !$event : $event);
140
+ unref(setSelectedCursor)($event ? { page, index, id: _ctx.valueGetter(item) } : null);
141
+ },
142
+ "onUpdate:selectedRange": ($event) => unref(setSelectedRange)({ page, index, id: _ctx.valueGetter(item) }),
143
+ "onUpdate:selectedRangeHover": ($event) => unref(setRangeHover)({ page, index, id: _ctx.valueGetter(item) })
144
+ }, {
145
+ default: withCtx(() => [
146
+ renderSlot(_ctx.$slots, "default", {
147
+ item,
148
+ setter,
149
+ skeleton,
150
+ refetch,
151
+ previous,
152
+ next,
153
+ first,
154
+ last,
155
+ resetting,
156
+ page,
157
+ index
158
+ })
159
+ ]),
160
+ _: 2
161
+ }, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
162
+ ]),
163
+ _: 2
164
+ }, 1032, ["query-params", "use-query-fn", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
165
+ ]),
166
+ _: 3
167
+ }, 40, ["scrolling-element", "header-margin", "init-is-intersecting"]);
186
168
  };
187
169
  }
188
170
  });
@@ -0,0 +1,39 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ header?(_: {}): any;
4
+ default?(_: {
5
+ headerTop: number;
6
+ headerHeight: number;
7
+ }): any;
8
+ };
9
+ refs: {
10
+ indicator: HTMLDivElement;
11
+ header: HTMLDivElement;
12
+ };
13
+ attrs: Partial<{}>;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<{
17
+ headerMargin?: number;
18
+ scrollingElement?: Element | null;
19
+ initIsIntersecting?: boolean;
20
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "update:header-padding": (value: number) => any;
22
+ }, string, import('vue').PublicProps, Readonly<{
23
+ headerMargin?: number;
24
+ scrollingElement?: Element | null;
25
+ initIsIntersecting?: boolean;
26
+ }> & Readonly<{
27
+ "onUpdate:header-padding"?: ((value: number) => any) | undefined;
28
+ }>, {
29
+ scrollingElement: Element | null;
30
+ headerMargin: number;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
39
+ //# sourceMappingURL=WInfiniteListWrapper.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AA8GA,iBAAS,cAAc;;wBAwCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBAtHF,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;mBAFb,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;sBADT,OAAO,GAAG,IAAI;kBADlB,MAAM;6EAgIvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { defineComponent, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
+ import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
3
+
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "WInfiniteListWrapper",
6
+ props: {
7
+ headerMargin: { default: 0 },
8
+ scrollingElement: { default: void 0 },
9
+ initIsIntersecting: { type: Boolean }
10
+ },
11
+ emits: ["update:header-padding"],
12
+ setup(__props, { emit: __emit }) {
13
+ const props = __props;
14
+ const emit = __emit;
15
+ const updateHeaderPadding = (value) => {
16
+ emit("update:header-padding", value);
17
+ };
18
+ const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement, props.initIsIntersecting);
19
+ watch(isIntersecting, (value) => {
20
+ if (!value && headerHeight.value) {
21
+ updateHeaderPadding(headerHeight.value - props.headerMargin);
22
+ } else {
23
+ updateHeaderPadding(0);
24
+ }
25
+ });
26
+ onBeforeUnmount(() => {
27
+ updateHeaderPadding(0);
28
+ });
29
+ return (_ctx, _cache) => {
30
+ return openBlock(), createElementBlock(Fragment, null, [
31
+ createElementVNode("div", {
32
+ ref_key: "indicator",
33
+ ref: indicator
34
+ }, null, 512),
35
+ createElementVNode("div", {
36
+ ref_key: "header",
37
+ ref: header,
38
+ class: normalizeClass(["sticky top-[var(--header-height)]", {
39
+ "z-[1]": unref(isIntersecting),
40
+ "z-20": !unref(isIntersecting)
41
+ }])
42
+ }, [
43
+ renderSlot(_ctx.$slots, "header")
44
+ ], 2),
45
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ headerTop: unref(headerTop), headerHeight: unref(headerHeight) })))
46
+ ], 64);
47
+ };
48
+ }
49
+ });
50
+
51
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WInfiniteListWrapper.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -207,12 +207,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
207
207
  class: normalizeClass(_ctx.pageClass)
208
208
  }, [
209
209
  hasData.value && unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup : _sfc_main$3), normalizeProps(mergeProps({ key: 0 }, _ctx.transition ? {
210
- ["enter-active-class"]: "transition-[grid-template-rows] overflow-hidden grid",
211
- ["enter-from-class"]: "grid-rows-[0fr]",
212
- ["enter-to-class"]: "grid-rows-[1fr]",
213
- ["leave-active-class"]: "transition-[grid-template-rows] overflow-hidden grid",
214
- ["leave-from-class"]: "grid-rows-[1fr]",
215
- ["leave-to-class"]: "grid-rows-[0fr]",
210
+ "enter-active-class": "transition-[grid-template-rows] overflow-hidden grid",
211
+ "enter-from-class": "grid-rows-[0fr]",
212
+ "enter-to-class": "grid-rows-[1fr]",
213
+ "leave-active-class": "transition-[grid-template-rows] overflow-hidden grid",
214
+ "leave-from-class": "grid-rows-[1fr]",
215
+ "leave-to-class": "grid-rows-[0fr]",
216
216
  css: !_ctx.resetting
217
217
  } : void 0)), {
218
218
  default: withCtx(() => [
@@ -79,4 +79,4 @@ export default _default;
79
79
  type __VLS_PrettifyLocal<T> = {
80
80
  [K in keyof T]: T[K];
81
81
  } & {};
82
- //# sourceMappingURL=WInfiniteListPages.vue.d.ts.map
82
+ //# sourceMappingURL=InfiniteListPages.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"yBA8T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,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;kBAZA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;;YA5KN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;;YAgiBH,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxlBvE,wBAwlB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { defineComponent, ref, computed, watch, toRef, openBlock, createBlock, normalizeStyle, withCtx, createCommentVNode, createElementBlock, Fragment, renderList, nextTick, unref, renderSlot } from 'vue';
2
- import _sfc_main$1 from './components/InfiniteListScroll.vue.js';
3
- import _sfc_main$3 from './components/InfiniteListPage.vue.js';
4
- import { useRefetchNextPages } from './use/useRefetchNextPages.js';
5
- import _sfc_main$2 from './components/InfiniteListButton.vue.js';
6
- import { isEqualObj } from '../../utils/utils.js';
7
- import { getIsScrollDown } from './models/utils.js';
2
+ import _sfc_main$1 from './InfiniteListScroll.vue.js';
3
+ import _sfc_main$3 from './InfiniteListPage.vue.js';
4
+ import { useRefetchNextPages } from '../use/useRefetchNextPages.js';
5
+ import _sfc_main$2 from './InfiniteListButton.vue.js';
6
+ import { isEqualObj } from '../../../utils/utils.js';
7
+ import { getIsScrollDown } from '../models/utils.js';
8
8
 
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "WInfiniteListPages",
10
+ __name: "InfiniteListPages",
11
11
  props: {
12
12
  useQueryFn: {},
13
13
  queryParams: {},
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './InfiniteListPages.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -1,4 +1,4 @@
1
- export declare const useInfiniteListHeader: (scrollingElement?: Element | null) => {
1
+ export declare const useInfiniteListHeader: (scrollingElement?: Element | null, initIsIntersecting?: boolean) => {
2
2
  indicator: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
3
3
  header: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
4
4
  headerHeight: import('vue').Ref<number, number>;
@@ -18,12 +18,12 @@ const observerOptions = {
18
18
  rootMargin: `-${headerElementHeight}px 100% 0px 0px`,
19
19
  threshold: 1
20
20
  };
21
- const useInfiniteListHeader = (scrollingElement = document.scrollingElement) => {
21
+ const useInfiniteListHeader = (scrollingElement = document.scrollingElement, initIsIntersecting = true) => {
22
22
  const indicator = ref();
23
23
  const header = ref();
24
24
  const headerHeight = ref(0);
25
25
  const headerTop = ref(0);
26
- const isIntersecting = ref(true);
26
+ const isIntersecting = ref(initIsIntersecting);
27
27
  let observer = null;
28
28
  let isFirst = true;
29
29
  const observerCb = (entries) => {
@@ -10,6 +10,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
10
10
  title?(_: {}): any;
11
11
  subtitle?(_: {}): any;
12
12
  prefix?(_: {}): any;
13
+ prefix?(_: {}): any;
13
14
  suffix?(_: {}): any;
14
15
  right?(_: {}): any;
15
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AAqVA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;yBAItB,IAAI,SAAS,SAAS,wBACzB,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+qBxD,mBAAmB,CAAC,sBAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;qBAxkB/B,IAAI;oBAML,IAAI;MAkkBkD,GAAG,IAAI;WACpE,GAAG;;uBAvDc,GAAG;0BACA,GAAG;wBACJ,GAAG;wBACH,GAAG;uBACJ,GAAG;;;YA7mBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,oBAAoB,SAAS,aAAa,GAAG,IAAI;YACjD,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,WAAW,SAAS,UAAU,GAAG,IAAI;YACrC,cAAc,SAAS,UAAU,GAAG,IAA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