eco-vue-js 0.8.37 → 0.8.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +1 -2
  2. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  3. package/dist/components/InfiniteList/WInfiniteList.vue.js +1 -3
  4. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
  5. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +0 -1
  6. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +1 -1
  7. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  8. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +1 -1
  9. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +1 -2
  10. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
  11. package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +0 -2
  12. package/dist/components/List/WList.vue.d.ts +1 -0
  13. package/dist/components/List/WList.vue.d.ts.map +1 -1
  14. package/dist/components/List/WList.vue.js +3 -1
  15. package/dist/components/Modal/WModalStepper.vue.d.ts +143 -1
  16. package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
  17. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  18. package/dist/components/Select/WSelect.vue.js +7 -3
  19. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  20. package/dist/components/Select/components/SelectAsyncList.vue.js +16 -12
  21. package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
  22. package/dist/components/Select/components/SelectOption.vue.js +12 -10
  23. package/dist/components/Tabs/WTabs.vue.d.ts +144 -2
  24. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  25. package/dist/components/Tabs/WTabs.vue.js +10 -3
  26. package/package.json +1 -1
@@ -12,7 +12,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
12
12
  skeletonLength?: number;
13
13
  hidePageTitle?: boolean;
14
14
  headerMargin?: number;
15
- skipScrollTarget?: boolean;
16
15
  wrap?: boolean;
17
16
  noGap?: boolean;
18
17
  transition?: boolean;
@@ -25,7 +24,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
25
24
  pageClass?: string;
26
25
  maxPages?: number;
27
26
  refetchInterval?: number | false;
28
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
27
+ queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
29
28
  pageLength?: number;
30
29
  count?: number;
31
30
  allowSelect?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"yBAiPiB,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+YxD,mBAAmB,CAAC;;;;;;;;oBA3Yd,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,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,C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AAI,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;;AAxZvE,wBAwZ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -14,7 +14,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  skeletonLength: { default: void 0 },
15
15
  hidePageTitle: { type: Boolean },
16
16
  headerMargin: { default: 0 },
17
- skipScrollTarget: { type: Boolean },
18
17
  wrap: { type: Boolean },
19
18
  noGap: { type: Boolean },
20
19
  transition: { type: Boolean },
@@ -104,7 +103,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
103
  "query-params": _ctx.queryParams,
105
104
  "use-query-fn": _ctx.useQueryFn,
106
105
  "scrolling-element": _ctx.scrollingElement,
107
- "skip-scroll-target": _ctx.skipScrollTarget,
108
106
  "skeleton-length": _ctx.skeletonLength,
109
107
  "hide-page-title": _ctx.hidePageTitle,
110
108
  wrap: _ctx.wrap,
@@ -161,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
161
159
  }, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
162
160
  ]),
163
161
  _: 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"])
162
+ }, 1032, ["query-params", "use-query-fn", "scrolling-element", "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
163
  ]),
166
164
  _: 3
167
165
  }, 40, ["scrolling-element", "header-margin", "init-is-intersecting"]);
@@ -1 +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"}
1
+ {"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AA6GA,iBAAS,cAAc;;wBAsCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBApHF,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;mBAFb,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;sBADT,OAAO,GAAG,IAAI;kBADlB,MAAM;6EA8HvB,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"}
@@ -36,7 +36,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  ref_key: "header",
37
37
  ref: header,
38
38
  class: normalizeClass(["sticky top-[var(--header-height)]", {
39
- "z-[1]": unref(isIntersecting),
40
39
  "z-20": !unref(isIntersecting)
41
40
  }])
42
41
  }, [
@@ -16,7 +16,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
16
16
  pageClass?: string;
17
17
  refetchInterval?: number | false;
18
18
  scrollingElement?: Element | null;
19
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
19
+ queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
20
20
  selected?: Model[];
21
21
  valueGetter: (data: Data) => Model;
22
22
  selectOnly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"yBA2WiB,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;WA2cxD,mBAAmB,CAAC;qBAvcb,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;wBAChC,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;eAChB,OAAO;gBACN,OAAO;qBACF,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;2BACb,OAAO,GAAG,IAAI;uBAClB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;mBAEhE,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAgbuD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;2BAhWvB,MAAM;MAgWuC,GAAG,IAAI;WACpE,GAAG;;kBA/OD,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,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AI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"yBA2WiB,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;WA8cxD,mBAAmB,CAAC;qBA1cb,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;wBAChC,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;eAChB,OAAO;gBACN,OAAO;qBACF,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;2BACb,OAAO,GAAG,IAAI;uBAClB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;mBAElD,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAmbuD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;2BAnWvB,MAAM;MAmWuC,GAAG,IAAI;WACpE,GAAG;;kBAlPD,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5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AC"}
@@ -264,7 +264,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
264
264
  ], 64)) : (openBlock(), createElementBlock("div", {
265
265
  key: 1,
266
266
  class: normalizeClass(["text-accent text-base font-normal", {
267
- "py-16 px-8 text-center flex justify-center": !_ctx.minHeight,
267
+ "py-16 px-8 text-center flex justify-center sm:sticky sm:left-inner sm:max-w-inner": !_ctx.minHeight,
268
268
  "pt-4 px-[1.0625rem]": _ctx.minHeight,
269
269
  "pb-4": _ctx.minHeight && _ctx.lastChild,
270
270
  "pb-2": _ctx.minHeight && !_ctx.lastChild
@@ -8,7 +8,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
8
8
  queryParams: QueryParams;
9
9
  skeletonLength?: number;
10
10
  hidePageTitle?: boolean;
11
- skipScrollTarget?: boolean;
12
11
  wrap?: boolean;
13
12
  noGap?: boolean;
14
13
  transition?: boolean;
@@ -23,7 +22,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
23
22
  pageClass?: string;
24
23
  maxPages?: number;
25
24
  refetchInterval?: number | false;
26
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
25
+ queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
27
26
  selected?: Model[];
28
27
  valueGetter: (data: Data) => Model;
29
28
  selectOnly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"yBA4TiB,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,CAA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E,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;;;YA1KN,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
+ {"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"yBAyTiB,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;WA2kBxD,mBAAmB,CAAC;;;;;oBAvkBd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,W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AE,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;;;YAxKN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;;YA8hBH,OAAO,CAAC,OAAO,WAAW,CAAC;;AArlBvE,wBAqlB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -13,7 +13,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  queryParams: {},
14
14
  skeletonLength: { default: void 0 },
15
15
  hidePageTitle: { type: Boolean },
16
- skipScrollTarget: { type: Boolean },
17
16
  wrap: { type: Boolean },
18
17
  noGap: { type: Boolean },
19
18
  transition: { type: Boolean },
@@ -121,7 +120,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
120
  pages.value = [page];
122
121
  nextPage.value = null;
123
122
  previousPage.value = null;
124
- if (!props.skipScrollTarget) (props.scrollingElement ?? document.scrollingElement)?.scrollTo(0, props.headerTop);
125
123
  };
126
124
  watch(toRef(props, "queryParams"), (newValue, oldValue) => {
127
125
  if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []])) return;
@@ -8,6 +8,7 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
8
8
  expansion?: FieldComponent<Data>;
9
9
  useQueryFn: UseQueryPaginated<Data, QueryParams>;
10
10
  queryParams: QueryParams;
11
+ queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
11
12
  bulkDisableMessage?: string;
12
13
  selectionTitle: string;
13
14
  bulk?: BulkComponent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,KAAK,MAAM;oBACvD,OAAO;qBACN,OAAO;mBACT,MAAM;0BACC,cAAc,CAAC,MAAM,CAAC;mBAC7B,OAAO;sBACJ,OAAO;mBACV,OAAO;KA6lBmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YAtDgB,GAAG;;cApiB1B,uBAAuB,SAAS,MAAM,KAAG,IAAI;;;;YA+lBP,OAAO,CAAC,OAAO,WAAW,CAAC;;AAloBvE,wBAkoB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -21,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  expansion: {},
22
22
  useQueryFn: {},
23
23
  queryParams: {},
24
+ queryOptions: {},
24
25
  bulkDisableMessage: {},
25
26
  selectionTitle: {},
26
27
  bulk: {},
@@ -103,6 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103
104
  return openBlock(), createBlock(_sfc_main$1, {
104
105
  "use-query-fn": _ctx.useQueryFn,
105
106
  "query-params": _ctx.queryParams,
107
+ "query-options": _ctx.queryOptions,
106
108
  "skeleton-length": _ctx.count ?? listCount.value ?? unref(PAGE_LENGTH),
107
109
  "header-margin": unref(isMobile) ? 0 : 24,
108
110
  "hide-page-title": "",
@@ -282,7 +284,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
282
284
  ]), 1032, ["disabled", "disable-more", "mobile", "card-class", "card-wrapper-class", "has-border", "more-bottom", "allow-open", "align-top"])
283
285
  ]),
284
286
  _: 3
285
- }, 8, ["use-query-fn", "query-params", "skeleton-length", "header-margin", "allow-select", "selected", "reverse", "selected-range", "page-length", "count", "onSelect", "onSelectReverse", "onSelectRange"]);
287
+ }, 8, ["use-query-fn", "query-params", "query-options", "skeleton-length", "header-margin", "allow-select", "selected", "reverse", "selected-range", "page-length", "count", "onSelect", "onSelectReverse", "onSelectRange"]);
286
288
  };
287
289
  }
288
290
  });
@@ -27,7 +27,149 @@ declare function __VLS_template(): {
27
27
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
28
  "update:has-changes": (value: boolean) => any;
29
29
  "update:current": (value: number) => any;
30
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
30
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
31
+ buttonContainer: HTMLDivElement;
32
+ button: HTMLButtonElement;
33
+ tabItem: (({
34
+ $: import('vue').ComponentInternalInstance;
35
+ $data: {};
36
+ $props: {
37
+ readonly isActive: boolean;
38
+ readonly "onUpdate:height"?: ((value: number) => any) | undefined;
39
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
40
+ $attrs: {
41
+ [x: string]: unknown;
42
+ };
43
+ $refs: {
44
+ [x: string]: unknown;
45
+ };
46
+ $slots: Readonly<{
47
+ [name: string]: import('vue').Slot<any> | undefined;
48
+ }>;
49
+ $root: import('vue').ComponentPublicInstance | null;
50
+ $parent: import('vue').ComponentPublicInstance | null;
51
+ $host: Element | null;
52
+ $emit: (event: "update:height", value: number) => void;
53
+ $el: any;
54
+ $options: import('vue').ComponentOptionsBase<Readonly<{
55
+ isActive: boolean;
56
+ }> & Readonly<{
57
+ "onUpdate:height"?: ((value: number) => any) | undefined;
58
+ }>, {
59
+ emitHeight: () => void;
60
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
61
+ "update:height": (value: number) => any;
62
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
63
+ beforeCreate?: (() => void) | (() => void)[];
64
+ created?: (() => void) | (() => void)[];
65
+ beforeMount?: (() => void) | (() => void)[];
66
+ mounted?: (() => void) | (() => void)[];
67
+ beforeUpdate?: (() => void) | (() => void)[];
68
+ updated?: (() => void) | (() => void)[];
69
+ activated?: (() => void) | (() => void)[];
70
+ deactivated?: (() => void) | (() => void)[];
71
+ beforeDestroy?: (() => void) | (() => void)[];
72
+ beforeUnmount?: (() => void) | (() => void)[];
73
+ destroyed?: (() => void) | (() => void)[];
74
+ unmounted?: (() => void) | (() => void)[];
75
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
76
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
77
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
78
+ };
79
+ $forceUpdate: () => void;
80
+ $nextTick: typeof import('vue').nextTick;
81
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
82
+ } & Readonly<{}> & Omit<Readonly<{
83
+ isActive: boolean;
84
+ }> & Readonly<{
85
+ "onUpdate:height"?: ((value: number) => any) | undefined;
86
+ }>, "emitHeight"> & import('vue').ShallowUnwrapRef<{
87
+ emitHeight: () => void;
88
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
89
+ $slots: {
90
+ default?(_: {}): any;
91
+ };
92
+ }) | null)[];
93
+ form: (({
94
+ $: import('vue').ComponentInternalInstance;
95
+ $data: {};
96
+ $props: {
97
+ readonly name?: string | undefined;
98
+ readonly title?: string | undefined;
99
+ readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
100
+ readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
101
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
102
+ $attrs: {
103
+ [x: string]: unknown;
104
+ };
105
+ $refs: {
106
+ [x: string]: unknown;
107
+ };
108
+ $slots: Readonly<{
109
+ [name: string]: import('vue').Slot<any> | undefined;
110
+ }>;
111
+ $root: import('vue').ComponentPublicInstance | null;
112
+ $parent: import('vue').ComponentPublicInstance | null;
113
+ $host: Element | null;
114
+ $emit: ((event: "update:has-changes", value: boolean) => void) & ((event: "update:is-valid", value: boolean | undefined) => void);
115
+ $el: any;
116
+ $options: import('vue').ComponentOptionsBase<Readonly<{
117
+ name?: string;
118
+ title?: string;
119
+ }> & Readonly<{
120
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
121
+ "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
122
+ }>, {
123
+ isValid: import('vue').ComputedRef<boolean>;
124
+ validate: (silent?: boolean, path?: import('../Form/use/useFormValidateMap').ValidatePath) => string | undefined;
125
+ invalidate: (payload: {
126
+ [x: string]: string | string[] | undefined;
127
+ }) => void;
128
+ initModel: () => void;
129
+ errorMessage: import('vue').ComputedRef<string>;
130
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
131
+ "update:has-changes": (value: boolean) => any;
132
+ "update:is-valid": (value: boolean | undefined) => any;
133
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
134
+ beforeCreate?: (() => void) | (() => void)[];
135
+ created?: (() => void) | (() => void)[];
136
+ beforeMount?: (() => void) | (() => void)[];
137
+ mounted?: (() => void) | (() => void)[];
138
+ beforeUpdate?: (() => void) | (() => void)[];
139
+ updated?: (() => void) | (() => void)[];
140
+ activated?: (() => void) | (() => void)[];
141
+ deactivated?: (() => void) | (() => void)[];
142
+ beforeDestroy?: (() => void) | (() => void)[];
143
+ beforeUnmount?: (() => void) | (() => void)[];
144
+ destroyed?: (() => void) | (() => void)[];
145
+ unmounted?: (() => void) | (() => void)[];
146
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
147
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
148
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
149
+ };
150
+ $forceUpdate: () => void;
151
+ $nextTick: typeof import('vue').nextTick;
152
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
153
+ } & Readonly<{}> & Omit<Readonly<{
154
+ name?: string;
155
+ title?: string;
156
+ }> & Readonly<{
157
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
158
+ "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
159
+ }>, "errorMessage" | "isValid" | "validate" | "invalidate" | "initModel"> & import('vue').ShallowUnwrapRef<{
160
+ isValid: import('vue').ComputedRef<boolean>;
161
+ validate: (silent?: boolean, path?: import('../Form/use/useFormValidateMap').ValidatePath) => string | undefined;
162
+ invalidate: (payload: {
163
+ [x: string]: string | string[] | undefined;
164
+ }) => void;
165
+ initModel: () => void;
166
+ errorMessage: import('vue').ComputedRef<string>;
167
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
168
+ $slots: {
169
+ default?(_: {}): any;
170
+ };
171
+ }) | null)[];
172
+ }, any, import('vue').ComponentProvideOptions, {
31
173
  P: {};
32
174
  B: {};
33
175
  D: {};
@@ -1 +1 @@
1
- {"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAuNA,iBAA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,8 +89,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  const optionsPrepared = computed(() => !data.value ? [] : props.filterOptions ? data.value.filter((option) => props.filterOptions?.(option) ?? true) : data.value);
90
90
  const optionsWithCreated = computed(() => {
91
91
  if (!props.createdData) {
92
- if (createdOptions.value.length) return [...optionsPrepared.value, ...createdOptions.value];
93
- else return optionsPrepared.value;
92
+ if (!createdOptions.value.length) return optionsPrepared.value;
93
+ else return [
94
+ ...optionsPrepared.value,
95
+ ...createdOptions.value
96
+ ].filter((option, index, array) => array.findIndex((item) => props.valueGetter(item) === props.valueGetter(option)) === index);
94
97
  }
95
98
  return [
96
99
  ...optionsPrepared.value,
@@ -106,6 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
109
  const loadingCreate = ref(false);
107
110
  const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
108
111
  const prefixList = computed(() => props.modelValue.map((value) => optionsWithCreated.value?.find((item) => props.valueGetter(item) === value)).filter((item) => item !== void 0));
112
+ const hasCreateOption = computed(() => props.createOption && search.value !== "" && !optionsFiltered.value.some((option) => props.valueGetter(option) === search.value));
109
113
  const close = () => {
110
114
  isOpen.value = false;
111
115
  focused.value = false;
@@ -317,7 +321,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
317
321
  _: 2
318
322
  }, 1032, ["is-selected", "is-cursor", "loading", "scroll", "hide-option-icon", "onSelect", "onUnselect", "onMouseenter"]);
319
323
  }), 128)),
320
- _ctx.createOption && search.value !== "" && !optionsFiltered.value.some((option) => _ctx.valueGetter(option) === search.value) ? (openBlock(), createBlock(_sfc_main$3, {
324
+ hasCreateOption.value ? (openBlock(), createBlock(_sfc_main$3, {
321
325
  key: 1,
322
326
  "is-selected": false,
323
327
  "is-cursor": cursor.value === optionsFiltered.value.length,
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"yB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U,SAAS,KAAK,GAAG,IAAI;YAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,eAAe,GAAG,IAAI;;;;;YAuegB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvgBvE,wBAugB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"yBA2NiB,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;WAkgBxD,mBAAmB,CAAC;;;;;;;oBA9fhB,KAAK,EAAE;oBACP,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;2BACL,OAAO,GAAG,IAAI;kBACvB,OAAO;mBACN,OAAO;qBACL,OAAO;wBACJ,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,OAAO;oBACP,MAAM;qBACL,OAAO;uBACL,OAAO;sBACR,OAAO;yBACJ,OAAO;qBACX,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;uBACnB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC3D,OAAO;KA8e8D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;kBAlZD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5E,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAzFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,eAAe,GAAG,IAAI;;;;;YA4egB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA5gBvE,wBA4gB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -46,6 +46,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  isCursorLocked.value = true;
47
47
  unlockCursor();
48
48
  };
49
+ const updateCursor = (value) => {
50
+ cursor.value = value;
51
+ };
49
52
  const setCursor = (value) => {
50
53
  if (isCursorLocked.value) return;
51
54
  cursor.value = value;
@@ -101,13 +104,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
104
  "header-top-ignore": "",
102
105
  "min-height": "",
103
106
  "no-gap": "",
104
- "onUpdate:count": _cache[2] || (_cache[2] = ($event) => {
107
+ "onUpdate:count": _cache[3] || (_cache[3] = ($event) => {
105
108
  _ctx.$emit("update:count", $event);
106
109
  count.value = $event;
110
+ updateCursor(void 0);
107
111
  }),
108
- "onUpdate:selected": _cache[3] || (_cache[3] = ($event) => !_ctx.disabled && _ctx.$emit("update:modelValue", $event))
112
+ "onUpdate:selected": _cache[4] || (_cache[4] = ($event) => !_ctx.disabled && _ctx.$emit("update:modelValue", $event))
109
113
  }, {
110
- default: withCtx(({ item, skeleton, previous, next, first, last, resetting }) => [
114
+ default: withCtx(({ item, skeleton, previous, next, first, last }) => [
111
115
  createVNode(_sfc_main$2, {
112
116
  "is-selected": !skeleton && _ctx.modelValue.includes(_ctx.valueGetter(item)),
113
117
  "is-cursor": !skeleton && _ctx.valueGetter(item) === cursor.value,
@@ -137,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
141
  "onUpdate:isCursor": updateCursors,
138
142
  "onUpdate:previous": _cache[0] || (_cache[0] = ($event) => cursorPrevious.value = $event),
139
143
  "onUpdate:next": _cache[1] || (_cache[1] = ($event) => cursorNext.value = $event),
140
- onUnmounted: ($event) => cursor.value = resetting ? void 0 : next ? _ctx.valueGetter(next) : void 0,
144
+ onUnmounted: _cache[2] || (_cache[2] = ($event) => updateCursor(void 0)),
141
145
  "onUpdate:first": ($event) => firstItem.value = _ctx.valueGetter(item),
142
146
  "onUpdate:last": ($event) => lastItem.value = _ctx.valueGetter(item)
143
147
  }, {
@@ -149,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
153
  })
150
154
  ]),
151
155
  _: 2
152
- }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUnmounted", "onUpdate:first", "onUpdate:last"])
156
+ }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUpdate:first", "onUpdate:last"])
153
157
  ]),
154
158
  _: 3
155
159
  }, 8, ["use-query-fn", "query-params", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options", "skeleton-length", "last-child"]),
@@ -165,18 +169,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
165
169
  "is-no-cursor": cursor.value === void 0,
166
170
  "hide-option-icon": _ctx.hideOptionIcon,
167
171
  class: "first:pt-4 last:pb-4",
168
- onMouseenter: _cache[4] || (_cache[4] = ($event) => setCursor(null)),
169
- "onUpdate:cursor": _cache[5] || (_cache[5] = ($event) => setCursor(null)),
170
- onSelect: _cache[6] || (_cache[6] = ($event) => {
172
+ onMouseenter: _cache[5] || (_cache[5] = ($event) => setCursor(null)),
173
+ "onUpdate:cursor": _cache[6] || (_cache[6] = ($event) => setCursor(null)),
174
+ onSelect: _cache[7] || (_cache[7] = ($event) => {
171
175
  _ctx.$emit("create:option");
172
176
  setLoadingOption(null);
173
177
  }),
174
178
  "onUpdate:isCursor": updateCursors,
175
- "onUpdate:previous": _cache[7] || (_cache[7] = ($event) => cursorPrevious.value = $event),
176
- "onUpdate:next": _cache[8] || (_cache[8] = ($event) => cursorNext.value = $event),
177
- onUnmounted: _cache[9] || (_cache[9] = ($event) => cursor.value = void 0)
179
+ "onUpdate:previous": _cache[8] || (_cache[8] = ($event) => cursorPrevious.value = $event),
180
+ "onUpdate:next": _cache[9] || (_cache[9] = ($event) => cursorNext.value = $event),
181
+ onUnmounted: _cache[10] || (_cache[10] = ($event) => updateCursor(void 0))
178
182
  }, {
179
- prefix: withCtx(() => _cache[10] || (_cache[10] = [
183
+ prefix: withCtx(() => _cache[11] || (_cache[11] = [
180
184
  createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3" }, " Create: ", -1)
181
185
  ])),
182
186
  default: withCtx(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"yBA0IiB,KAAK,SAAS,MAAM,GAAG,MAAM,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,W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IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"yBA4IiB,KAAK,SAAS,MAAM,GAAG,MAAM,eAChC,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;WAuOxD,mBAAmB,CAAC;oBAnOhB,OAAO;mBACR,OAAO;kBACR,OAAO;mBACN,OAAO;iBACT,OAAO;gBACR,OAAO;eACR,OAAO;mBACH,KAAK,GAAG,IAAI;eAChB,KAAK,GAAG,IAAI;qBACN,OAAO;yBACH,OAAO;KAyN6D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;iBAhJF,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;iBADT,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;;YAvEd,QAAQ,GAAG,IAAI;YACf,UAAU,GAAG,IAAI;YACjB,kBAAkB,SAAS;YAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;SAAC,GAAG,IAAI;YACtG,eAAe,GAAG,IAAI;YACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACrD,WAAW,GAAG,IAAI;YAClB,cAAc,GAAG,IAAI;YACrB,aAAa,GAAG,IAAI;;;;;YAmNkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjPvE,wBAiP4E;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, watch, toRef, onUnmounted, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode } from 'vue';
1
+ import { defineComponent, ref, watch, watchEffect, onUnmounted, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode } from 'vue';
2
2
  import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
3
3
  import WSpinner from '../../Spinner/WSpinner.vue.js';
4
4
 
@@ -34,27 +34,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  const scrollIntoView = () => {
35
35
  element.value?.scrollIntoView({ behavior: "auto", block: "center" });
36
36
  };
37
- watch(toRef(props, "isCursor"), (value) => {
37
+ watch(() => props.isCursor, (value) => {
38
38
  if (!value) return;
39
39
  emit("update:is-cursor", { previous: props.previous, next: props.next });
40
40
  if (props.scroll) scrollIntoView();
41
41
  }, { immediate: true });
42
- watch(toRef(props, "isNoCursor"), (value) => {
43
- if (value && props.first && !props.skeleton) emit("update:cursor");
44
- }, { immediate: true });
45
- watch(toRef(props, "previous"), (value) => {
42
+ watchEffect(() => {
43
+ if (props.isNoCursor && props.first && !props.skeleton) {
44
+ emit("update:cursor");
45
+ }
46
+ });
47
+ watch(() => props.previous, (value) => {
46
48
  if (props.isCursor && !props.skeleton) emit("update:previous", value);
47
49
  }, { immediate: true });
48
- watch(toRef(props, "next"), (value) => {
50
+ watch(() => props.next, (value) => {
49
51
  if (props.isCursor && !props.skeleton) emit("update:next", value);
50
52
  }, { immediate: true });
51
- watch(toRef(props, "first"), (value) => {
53
+ watch(() => props.first, (value) => {
52
54
  if (value) emit("update:first");
53
55
  }, { immediate: true });
54
- watch(toRef(props, "last"), (value) => {
56
+ watch(() => props.last, (value) => {
55
57
  if (value) emit("update:last");
56
58
  }, { immediate: true });
57
- watch(toRef(props, "next"), (value) => {
59
+ watch(() => props.next, (value) => {
58
60
  if (props.isCursor && !props.skeleton) emit("update:next", value);
59
61
  }, { immediate: true });
60
62
  onUnmounted(() => {
@@ -1,4 +1,4 @@
1
- import { VNode } from 'vue';
1
+ import { nextTick, VNode } from 'vue';
2
2
  import { default as WForm } from '../Form/WForm.vue';
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  names?: string[] | Record<number, string>;
@@ -33,6 +33,148 @@ declare const _default: import('vue').DefineComponent<{
33
33
  }> & Readonly<{
34
34
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
35
35
  "onUpdate:current"?: ((value: number) => any) | undefined;
36
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
37
+ buttonContainer: HTMLDivElement;
38
+ button: HTMLButtonElement;
39
+ tabItem: (({
40
+ $: import('vue').ComponentInternalInstance;
41
+ $data: {};
42
+ $props: {
43
+ readonly isActive: boolean;
44
+ readonly "onUpdate:height"?: ((value: number) => any) | undefined;
45
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
46
+ $attrs: {
47
+ [x: string]: unknown;
48
+ };
49
+ $refs: {
50
+ [x: string]: unknown;
51
+ };
52
+ $slots: Readonly<{
53
+ [name: string]: import('vue').Slot<any> | undefined;
54
+ }>;
55
+ $root: import('vue').ComponentPublicInstance | null;
56
+ $parent: import('vue').ComponentPublicInstance | null;
57
+ $host: Element | null;
58
+ $emit: (event: "update:height", value: number) => void;
59
+ $el: any;
60
+ $options: import('vue').ComponentOptionsBase<Readonly<{
61
+ isActive: boolean;
62
+ }> & Readonly<{
63
+ "onUpdate:height"?: ((value: number) => any) | undefined;
64
+ }>, {
65
+ emitHeight: () => void;
66
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
67
+ "update:height": (value: number) => any;
68
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
69
+ beforeCreate?: (() => void) | (() => void)[];
70
+ created?: (() => void) | (() => void)[];
71
+ beforeMount?: (() => void) | (() => void)[];
72
+ mounted?: (() => void) | (() => void)[];
73
+ beforeUpdate?: (() => void) | (() => void)[];
74
+ updated?: (() => void) | (() => void)[];
75
+ activated?: (() => void) | (() => void)[];
76
+ deactivated?: (() => void) | (() => void)[];
77
+ beforeDestroy?: (() => void) | (() => void)[];
78
+ beforeUnmount?: (() => void) | (() => void)[];
79
+ destroyed?: (() => void) | (() => void)[];
80
+ unmounted?: (() => void) | (() => void)[];
81
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
82
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
83
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
84
+ };
85
+ $forceUpdate: () => void;
86
+ $nextTick: typeof nextTick;
87
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
88
+ } & Readonly<{}> & Omit<Readonly<{
89
+ isActive: boolean;
90
+ }> & Readonly<{
91
+ "onUpdate:height"?: ((value: number) => any) | undefined;
92
+ }>, "emitHeight"> & import('vue').ShallowUnwrapRef<{
93
+ emitHeight: () => void;
94
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
95
+ $slots: {
96
+ default?(_: {}): any;
97
+ };
98
+ }) | null)[];
99
+ form: (({
100
+ $: import('vue').ComponentInternalInstance;
101
+ $data: {};
102
+ $props: {
103
+ readonly name?: string | undefined;
104
+ readonly title?: string | undefined;
105
+ readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
106
+ readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
107
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
108
+ $attrs: {
109
+ [x: string]: unknown;
110
+ };
111
+ $refs: {
112
+ [x: string]: unknown;
113
+ };
114
+ $slots: Readonly<{
115
+ [name: string]: import('vue').Slot<any> | undefined;
116
+ }>;
117
+ $root: import('vue').ComponentPublicInstance | null;
118
+ $parent: import('vue').ComponentPublicInstance | null;
119
+ $host: Element | null;
120
+ $emit: ((event: "update:has-changes", value: boolean) => void) & ((event: "update:is-valid", value: boolean | undefined) => void);
121
+ $el: any;
122
+ $options: import('vue').ComponentOptionsBase<Readonly<{
123
+ name?: string;
124
+ title?: string;
125
+ }> & Readonly<{
126
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
127
+ "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
128
+ }>, {
129
+ isValid: import('vue').ComputedRef<boolean>;
130
+ validate: (silent?: boolean, path?: import('../Form/use/useFormValidateMap').ValidatePath) => string | undefined;
131
+ invalidate: (payload: {
132
+ [x: string]: string | string[] | undefined;
133
+ }) => void;
134
+ initModel: () => void;
135
+ errorMessage: import('vue').ComputedRef<string>;
136
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
137
+ "update:has-changes": (value: boolean) => any;
138
+ "update:is-valid": (value: boolean | undefined) => any;
139
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
140
+ beforeCreate?: (() => void) | (() => void)[];
141
+ created?: (() => void) | (() => void)[];
142
+ beforeMount?: (() => void) | (() => void)[];
143
+ mounted?: (() => void) | (() => void)[];
144
+ beforeUpdate?: (() => void) | (() => void)[];
145
+ updated?: (() => void) | (() => void)[];
146
+ activated?: (() => void) | (() => void)[];
147
+ deactivated?: (() => void) | (() => void)[];
148
+ beforeDestroy?: (() => void) | (() => void)[];
149
+ beforeUnmount?: (() => void) | (() => void)[];
150
+ destroyed?: (() => void) | (() => void)[];
151
+ unmounted?: (() => void) | (() => void)[];
152
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
153
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
154
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
155
+ };
156
+ $forceUpdate: () => void;
157
+ $nextTick: typeof nextTick;
158
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
159
+ } & Readonly<{}> & Omit<Readonly<{
160
+ name?: string;
161
+ title?: string;
162
+ }> & Readonly<{
163
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
164
+ "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
165
+ }>, "errorMessage" | "isValid" | "validate" | "invalidate" | "initModel"> & import('vue').ShallowUnwrapRef<{
166
+ isValid: import('vue').ComputedRef<boolean>;
167
+ validate: (silent?: boolean, path?: import('../Form/use/useFormValidateMap').ValidatePath) => string | undefined;
168
+ invalidate: (payload: {
169
+ [x: string]: string | string[] | undefined;
170
+ }) => void;
171
+ initModel: () => void;
172
+ errorMessage: import('vue').ComputedRef<string>;
173
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
174
+ $slots: {
175
+ default?(_: {}): any;
176
+ };
177
+ }) | null)[];
178
+ }, any>;
37
179
  export default _default;
38
180
  //# sourceMappingURL=WTabs.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAqQA,OAAO,EAAkC,KAAK,KAAK,EAAoD,MAAM,KAAK,CAAA;AAElH,OAAO,KAAK,MAAM,6BAA6B,CAAA;;YAOrC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC7B,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;YACrC,YAAY,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC;YAC7C,KAAK,EAAE;sBACG,OAAO;cACf,MAAM;WACT,OAAO;uBACK,OAAO;;yBAyCA,MAAM;gBAajB,IAAI;oBAIA,IAAI;sBAkCA,MAAM,6GAAqE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;wBAIhI,MAAM;;UAAuE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;uBAIvI,MAAM,KAAsE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;;;;;YA3GpJ,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAC7B,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;YACrC,YAAY,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC;YAC7C,KAAK,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF7B,GAAG,8CACD,GAAG,yBAChB,GAAE,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;AAsFxC,wBAYG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, computed, ref, reactive, inject, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, Fragment, renderList, unref, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, Transition, withCtx, normalizeStyle, TransitionGroup, nextTick } from 'vue';
1
+ import { defineComponent, useSlots, computed, ref, useTemplateRef, reactive, inject, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, Fragment, renderList, unref, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, Transition, withCtx, normalizeStyle, TransitionGroup, nextTick } from 'vue';
2
2
  import _sfc_main$1 from './components/TabItem.vue.js';
3
3
  import _sfc_main$2 from '../Form/WForm.vue.js';
4
4
  import { throttle, debounce } from '../../utils/utils.js';
@@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  const minHeight = ref(0);
32
32
  const tabItem = ref([]);
33
33
  const form = ref([]);
34
+ const buttonContainerRef = useTemplateRef("buttonContainer");
34
35
  const isValidMap = reactive({});
35
36
  const hasChangesMap = reactive({});
36
37
  const hasChanges = computed(() => Object.values(hasChangesMap).includes(true));
@@ -97,14 +98,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
98
  watch(current, (value) => {
98
99
  emit("update:current", value);
99
100
  updateIndicator();
100
- button.value[value]?.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
101
+ if (buttonContainerRef.value && button.value[value]) {
102
+ if (props.side) {
103
+ buttonContainerRef.value.scrollTo({ top: (button.value[value].offsetTop - buttonContainerRef.value.offsetTop) / 2, behavior: "smooth" });
104
+ } else {
105
+ buttonContainerRef.value.scrollTo({ left: (button.value[value].offsetLeft - buttonContainerRef.value.offsetLeft) / 2, behavior: "smooth" });
106
+ }
107
+ }
101
108
  }, { immediate: true });
102
109
  watch(hasChanges, (value) => {
103
110
  emit("update:has-changes", value);
104
111
  }, { immediate: true });
105
112
  onMounted(() => {
106
113
  updateIndicator();
107
- button.value[current.value]?.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
108
114
  tabItemListenerInjected?.(updateIndicator);
109
115
  });
110
116
  onUnmounted(() => {
@@ -127,6 +133,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
127
133
  }, [
128
134
  _ctx.names ? (openBlock(), createElementBlock("div", {
129
135
  key: 0,
136
+ ref: "buttonContainer",
130
137
  class: normalizeClass(["relative flex overflow-x-auto overscroll-x-contain no-scrollbar snap-x snap-always snap-mandatory", {
131
138
  "flex-col": _ctx.side
132
139
  }])
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.8.37",
7
+ "version": "0.8.39",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",