eco-vue-js 0.10.7 → 0.10.8

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.
@@ -50,6 +50,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
50
50
  }) => void;
51
51
  header?: (props: {
52
52
  goto: (page: number, itemIndex?: number) => void;
53
+ updateHeaderHeight: () => void;
53
54
  }) => void;
54
55
  }> & {
55
56
  default?: (props: {
@@ -69,6 +70,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
69
70
  }) => void;
70
71
  header?: (props: {
71
72
  goto: (page: number, itemIndex?: number) => void;
73
+ updateHeaderHeight: () => void;
72
74
  }) => void;
73
75
  };
74
76
  emit: {
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AAgKA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAYxB,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;WA+OxD,mBAAmB,CAAC;;;;;;;;oBA3Od,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;eAChB,OAAO;qBACD,OAAO;2BACD,OAAO,GAAG,IAAI;0BACf,OAAO;oBACb,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP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AO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,QAAQ,EAAE,MAAM,CAAA;YAChB,KAAK,EAAE,KAAK,CAAA;SACb,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SAhCY,MAAM,cAAc,MAAM,UAgCzB;YACjB,kBAAkB,EAAE,MAAM,IAAI,CAAA;SAC/B,KAAK,IAAI;;;YAzCN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YAyMA,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3PvE,wBA2P4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -44,8 +44,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  "scrolling-element": _ctx.scrollingElement,
45
45
  "init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0
46
46
  }, {
47
- header: withCtx(() => [
48
- renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ goto })))
47
+ header: withCtx((headerScope) => [
48
+ renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ goto, ...headerScope ?? {} })))
49
49
  ]),
50
50
  default: withCtx((defaultScope) => [
51
51
  createVNode(_sfc_main$3, {
@@ -1,6 +1,8 @@
1
1
  declare function __VLS_template(): {
2
2
  slots: {
3
- header?(_: {}): any;
3
+ header?(_: {
4
+ updateHeaderHeight: () => void;
5
+ }): any;
4
6
  default?(_: {
5
7
  headerTop: number;
6
8
  headerHeight: number;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AAqFA,iBAAS,cAAc;;wBAwCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;uBA/FA,OAAO,GAAG,IAAI;yBACZ,OAAO;;uBADT,OAAO,GAAG,IAAI;yBACZ,OAAO;iGAoG5B,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":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AA4FA,iBAAS,cAAc;;;;YAwCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;uBAlGA,OAAO,GAAG,IAAI;yBACZ,OAAO;;uBADT,OAAO,GAAG,IAAI;yBACZ,OAAO;iGAuG5B,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"}
@@ -12,14 +12,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  const props = __props;
13
13
  const { updateHeaderPadding } = useHeaderPadding();
14
14
  const { indicator, header, headerTop, headerHeight, isIntersecting, updateHeader } = useInfiniteListHeader(props.scrollingElement, props.initIsIntersecting);
15
- watch(isIntersecting, (value) => {
16
- if (!value && headerHeight.value) {
15
+ const updateHeaderHeight = () => {
16
+ if (!isIntersecting.value && headerHeight.value) {
17
17
  updateHeader();
18
18
  updateHeaderPadding(headerHeight.value);
19
19
  } else {
20
20
  updateHeaderPadding(0);
21
21
  }
22
- });
22
+ };
23
+ watch(isIntersecting, updateHeaderHeight);
23
24
  onBeforeUnmount(() => {
24
25
  updateHeaderPadding(0);
25
26
  });
@@ -37,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
38
  "z-[2]": unref(isIntersecting)
38
39
  }])
39
40
  }, [
40
- renderSlot(_ctx.$slots, "header")
41
+ renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ updateHeaderHeight })))
41
42
  ], 2),
42
43
  renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ headerTop: unref(headerTop), headerHeight: unref(headerHeight) })))
43
44
  ], 64);
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAuXA,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;AAWzC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAYrB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,SAAS,SAAS,OAAO,EAAE,eAC9H,WAAW,CAAC,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,CAAC,CAAC;6BACxC,MAAM;wBACX,MAAM;eACf,aAAa,CAAC,WAAW,CAAC,EAAE;mBACxB,aAAa,CAAC,WAAW,CAAC,EAAE;eAChC,aAAa,CAAC,IAAI,CAAC,EAAE;yBACX,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;oBAC5B,MAAM;2BACC,MAAM;6BACJ,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;oBACvD,OAAO;mBACR,MAAM;0BACC,cAAc,CAAC,MAAM,CAAC;sBAC1B,QAAQ;mBACX,OAAO;sBACJ,OAAO;mBACV,OAAO;qBACL,OAAO;yBACH,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,SAAS;kBACzC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO;qBAC1B,WAAW;mBACb,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;iBAC1C,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC;KAkpB6C,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YA9De,GAAG;;;;;YACH,GAAG;;cAllBzB,cAAc,SAAS,QAAQ,KAAG,IAAI;;;;YAopBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3rBvE,wBA2rB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -130,7 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
130
  "onUpdate:count": _cache[2] || (_cache[2] = ($event) => listCount.value = $event),
131
131
  "onUpdate:error": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:error", $event))
132
132
  }, {
133
- header: withCtx(() => [
133
+ header: withCtx(({ updateHeaderHeight }) => [
134
134
  renderSlot(_ctx.$slots, "header", { count: listCount.value }),
135
135
  createVNode(_sfc_main$4, {
136
136
  title: _ctx.selectionTitle,
@@ -204,7 +204,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
204
204
  "tooltip-text": _ctx.selectAllTextGetter(unref(selectAllValue) !== true, _ctx.count ?? listCount.value ?? 0),
205
205
  count: _ctx.count ?? listCount.value,
206
206
  selection: unref(selectAllValue),
207
- "onToggle:selection": _cache[1] || (_cache[1] = ($event) => $event ? unref(selectAll)() : unref(resetSelection)())
207
+ "onToggle:selection": _cache[1] || (_cache[1] = ($event) => $event ? unref(selectAll)() : unref(resetSelection)()),
208
+ "onUpdate:header": updateHeaderHeight
208
209
  }, {
209
210
  default: withCtx(() => [
210
211
  createVNode(_sfc_main$8, { fields: fieldsFiltered.value }, {
@@ -225,8 +226,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
225
226
  _: 1
226
227
  }, 8, ["fields"])
227
228
  ]),
228
- _: 1
229
- }, 8, ["query-params", "allow-select", "tooltip-text", "count", "selection"])) : createCommentVNode("", true)
229
+ _: 2
230
+ }, 1032, ["query-params", "allow-select", "tooltip-text", "count", "selection", "onUpdate:header"])) : createCommentVNode("", true)
230
231
  ]),
231
232
  default: withCtx(({ item, skeleton, setter, refetch, previous, index, position, value }) => [
232
233
  _ctx.groupBy && (index === 0 || !skeleton && (!previous || !_ctx.groupBy(item, previous))) ? renderSlot(_ctx.$slots, "group", {
@@ -16,6 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
16
16
  tooltipText: string;
17
17
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
18
  "toggle:selection": (value: boolean) => any;
19
+ "update:header": () => any;
19
20
  }, string, import('vue').PublicProps, Readonly<{
20
21
  allowSelect?: boolean;
21
22
  hideMore?: boolean;
@@ -25,6 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
25
26
  tooltipText: string;
26
27
  }> & Readonly<{
27
28
  "onToggle:selection"?: ((value: boolean) => any) | undefined;
29
+ "onUpdate:header"?: (() => any) | undefined;
28
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
31
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
32
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"WListHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeader.vue"],"names":[],"mappings":"AAsFA,iBAAS,cAAc;;yBAqIM,GAAG;0BACF,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBAlLL,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;;;kFAsLnB,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":"AA6GA,iBAAS,cAAc;;yBAqIM,GAAG;0BACF,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBA7LL,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;;;;kFAkMnB,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, createElementBlock, openBlock, createElementVNode, normalizeClass, createBlock, createCommentVNode, renderSlot } from 'vue';
1
+ import { defineComponent, onMounted, onUnmounted, createElementBlock, openBlock, createElementVNode, normalizeClass, createBlock, createCommentVNode, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
3
3
 
4
4
  const _hoisted_1 = { class: "flex h-12" };
@@ -15,8 +15,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  selection: { type: [Boolean, null] },
16
16
  tooltipText: {}
17
17
  },
18
- emits: ["toggle:selection"],
19
- setup(__props) {
18
+ emits: ["toggle:selection", "update:header"],
19
+ setup(__props, { emit: __emit }) {
20
+ const emit = __emit;
21
+ onMounted(() => {
22
+ emit("update:header");
23
+ });
24
+ onUnmounted(() => {
25
+ emit("update:header");
26
+ });
20
27
  return (_ctx, _cache) => {
21
28
  return openBlock(), createElementBlock("div", _hoisted_1, [
22
29
  createElementVNode("div", _hoisted_2, [
@@ -84,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
84
  return (_ctx, _cache) => {
85
85
  return openBlock(), createBlock(_sfc_main$1, {
86
86
  "is-open": isOpen.value,
87
- "max-width": 300,
87
+ "max-width": 400,
88
88
  "max-height": 300,
89
89
  "horizontal-align": unref(HorizontalAlign).RIGHT_INNER
90
90
  }, {
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.7",
7
+ "version": "0.10.8",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "preview": "vite preview",