eco-vue-js 0.10.35 → 0.10.36

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.
Files changed (79) hide show
  1. package/dist/components/Button/WButtonDropdown.vue.js +0 -2
  2. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButtonMore.vue.js +0 -1
  4. package/dist/components/Button/WButtonSelection.vue.js +1 -1
  5. package/dist/components/Dropdown/WDropdown.vue.d.ts +6 -11
  6. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  7. package/dist/components/Dropdown/WDropdown.vue.js +1 -1
  8. package/dist/components/Dropdown/types.d.ts +9 -0
  9. package/dist/components/Dropdown/types.d.ts.map +1 -1
  10. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -32
  11. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  12. package/dist/components/DropdownMenu/WDropdownMenu.vue.js +5 -9
  13. package/dist/components/DropdownMenu/types.d.ts +0 -2
  14. package/dist/components/DropdownMenu/types.d.ts.map +1 -1
  15. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +0 -2
  16. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +0 -2
  17. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +0 -2
  18. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +0 -2
  19. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +0 -1
  20. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  21. package/dist/components/InfiniteList/WInfiniteList.vue.js +2 -5
  22. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.d.ts +25 -0
  23. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.d.ts.map +1 -0
  24. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.js +23 -0
  25. package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue2.js +5 -0
  26. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +0 -1
  27. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
  28. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +8 -5
  29. package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +1 -1
  30. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -1
  31. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  32. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +5 -4
  33. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +0 -1
  34. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
  35. package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +7 -8
  36. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +3 -6
  37. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
  38. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +8 -10
  39. package/dist/components/InfiniteList/models/injection.d.ts +3 -0
  40. package/dist/components/InfiniteList/models/injection.d.ts.map +1 -0
  41. package/dist/components/InfiniteList/models/injection.js +3 -0
  42. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +1 -1
  43. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
  44. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +5 -3
  45. package/dist/components/Input/WInputDate.vue.js +0 -2
  46. package/dist/components/Input/WInputOptions.vue.js +0 -2
  47. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  48. package/dist/components/Input/WInputSuggest.vue.js +17 -18
  49. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  50. package/dist/components/List/WListCard.vue.js +5 -5
  51. package/dist/components/List/WListHeader.vue.js +4 -4
  52. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  53. package/dist/components/MenuItem/WMenuItem.vue.js +3 -3
  54. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  55. package/dist/components/Modal/WModal.vue.js +5 -1
  56. package/dist/components/Modal/WModalImport.vue.js +2 -2
  57. package/dist/components/Modal/WModalWrapper.vue.d.ts +8 -2
  58. package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
  59. package/dist/components/Modal/WModalWrapper.vue.js +35 -21
  60. package/dist/components/Modal/models/injection.d.ts +4 -0
  61. package/dist/components/Modal/models/injection.d.ts.map +1 -0
  62. package/dist/components/Modal/models/injection.js +4 -0
  63. package/dist/components/Progress/WProgressStriped.vue.js +2 -2
  64. package/dist/components/Select/WSelect.vue.js +0 -2
  65. package/dist/components/Select/WSelectAsync.vue.js +0 -2
  66. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  67. package/dist/components/Select/WSelectAsyncList.vue.js +41 -41
  68. package/dist/components/Select/WSelectAsyncSingle.vue.js +0 -2
  69. package/dist/components/Select/WSelectSingle.vue.js +0 -2
  70. package/dist/components/Select/WSelectStringified.vue.js +0 -2
  71. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +0 -1
  72. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  73. package/dist/components/Select/components/SelectAsyncList.vue.js +1 -3
  74. package/dist/imports/componentsPlugin.d.ts +2 -1
  75. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  76. package/dist/main.js +1 -0
  77. package/package.json +4 -1
  78. package/tailwind-base/plugins/default.ts +11 -19
  79. package/tailwind-base/theme/sizes.ts +5 -0
@@ -1,8 +1,9 @@
1
- import { defineComponent, useTemplateRef, ref, computed, watch, toRef, createBlock, openBlock, normalizeClass, normalizeStyle, withCtx, createCommentVNode, createElementBlock, unref, Fragment, renderList, nextTick, createSlots, renderSlot, mergeProps } from 'vue';
1
+ import { defineComponent, useTemplateRef, inject, ref, computed, watch, toRef, createBlock, openBlock, normalizeClass, normalizeStyle, withCtx, createCommentVNode, createElementBlock, unref, Fragment, renderList, nextTick, createSlots, renderSlot, mergeProps } from 'vue';
2
2
  import { isEqualObj } from '../../../utils/utils.js';
3
3
  import _sfc_main$2 from './InfiniteListButton.vue.js';
4
4
  import _sfc_main$3 from './InfiniteListPage.vue.js';
5
5
  import _sfc_main$1 from './InfiniteListScroll.vue.js';
6
+ import { wScrollingElement } from '../models/injection.js';
6
7
  import { useRefetchNextPages } from '../use/useRefetchNextPages.js';
7
8
 
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -14,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  hidePageTitle: { type: Boolean },
15
16
  transition: { type: Boolean },
16
17
  pageLength: { default: 24 },
17
- scrollingElement: { default: null },
18
18
  headerTop: { default: 0 },
19
19
  headerHeight: { default: 0 },
20
20
  minHeight: { type: Boolean },
@@ -32,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  const props = __props;
33
33
  const emit = __emit;
34
34
  const infiniteScrollRef = useTemplateRef("infiniteScroll");
35
+ const scrollingElement = inject(wScrollingElement, null);
35
36
  const pages = ref([props.queryParams.page ?? 1]);
36
37
  const pagesCount = ref(1);
37
38
  const count = ref(0);
@@ -73,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
74
  pages.value.pop();
74
75
  };
75
76
  const updateScroll = (height) => {
76
- const element = props.scrollingElement ?? document.scrollingElement;
77
+ const element = scrollingElement?.value ?? document.scrollingElement;
77
78
  if (!element || element.scrollTop === 0) return;
78
79
  element.scrollTop = element.scrollTop + height;
79
80
  };
@@ -97,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
98
  isResettingPage.value = true;
98
99
  emit("update:page", page === 1 ? void 0 : page);
99
100
  pages.value = [];
100
- const element = props.scrollingElement ?? document.scrollingElement;
101
+ const element = scrollingElement?.value ?? document.scrollingElement;
101
102
  const value = (infiniteScrollRef.value?.$el.offsetTop ?? 0) - props.headerHeight - 60;
102
103
  if (element && element.scrollTop > value) element.scrollTop = value;
103
104
  await nextTick();
@@ -120,7 +121,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
120
121
  return (_ctx, _cache) => {
121
122
  return openBlock(), createBlock(_sfc_main$1, {
122
123
  ref: "infiniteScroll",
123
- "scrolling-element": _ctx.scrollingElement,
124
124
  style: normalizeStyle({ "--infinite-list-header-height": _ctx.headerHeight + "px" }),
125
125
  class: normalizeClass({
126
126
  "min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] pb-16": !_ctx.minHeight,
@@ -154,7 +154,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
154
154
  "last-child": _ctx.lastChild,
155
155
  "page-class": _ctx.pageClass,
156
156
  "refetch-interval": _ctx.refetchInterval,
157
- "scrolling-element": _ctx.scrollingElement,
158
157
  "query-options": _ctx.queryOptions,
159
158
  "value-getter": _ctx.valueGetter,
160
159
  "onUpdate:count": _cache[2] || (_cache[2] = ($event) => {
@@ -196,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
196
195
  ]),
197
196
  key: "0"
198
197
  } : void 0
199
- ]), 1032, ["query-params", "use-query-fn", "skeleton-length", "first-page", "last-page", "hide-page-title", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "value-getter", "onRefetch"]);
198
+ ]), 1032, ["query-params", "use-query-fn", "skeleton-length", "first-page", "last-page", "hide-page-title", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "query-options", "value-getter", "onRefetch"]);
200
199
  }), 128)),
201
200
  count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
202
201
  key: 1,
@@ -205,7 +204,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
204
  })) : createCommentVNode("", true)
206
205
  ]),
207
206
  _: 3
208
- }, 8, ["scrolling-element", "style", "class"]);
207
+ }, 8, ["style", "class"]);
209
208
  };
210
209
  }
211
210
  });
@@ -1,6 +1,3 @@
1
- type __VLS_Props = {
2
- scrollingElement: Element | null;
3
- };
4
1
  declare function __VLS_template(): {
5
2
  attrs: Partial<{}>;
6
3
  slots: {
@@ -12,16 +9,16 @@ declare function __VLS_template(): {
12
9
  rootEl: HTMLDivElement;
13
10
  };
14
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
12
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
16
13
  checkIsScrollUp: () => void;
17
14
  checkIsScrollDown: () => void;
18
15
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
16
  "scroll:up": () => any;
20
17
  "scroll:down": () => any;
21
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
22
19
  "onScroll:up"?: (() => any) | undefined;
23
20
  "onScroll:down"?: (() => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
25
22
  container: HTMLDivElement;
26
23
  }, HTMLDivElement>;
27
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListScroll.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListScroll.vue"],"names":[],"mappings":"AAKA;AAyEA,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAAA;CACjC,CAAC;AA8DF,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;kBAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"InfiniteListScroll.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListScroll.vue"],"names":[],"mappings":"AAKA;AAoIA,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,35 +1,33 @@
1
- import { defineComponent, useTemplateRef, computed, watch, onMounted, onUnmounted, createElementBlock, openBlock, renderSlot } from 'vue';
1
+ import { defineComponent, useTemplateRef, inject, computed, watch, onMounted, onUnmounted, createElementBlock, openBlock, renderSlot } from 'vue';
2
+ import { wScrollingElement } from '../models/injection.js';
2
3
  import { getIsScrollUp, getIsScrollDown } from '../models/utils.js';
3
4
 
4
5
  const _hoisted_1 = { ref: "container" };
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "InfiniteListScroll",
7
- props: {
8
- scrollingElement: {}
9
- },
10
8
  emits: ["scroll:up", "scroll:down"],
11
9
  setup(__props, { expose: __expose, emit: __emit }) {
12
- const props = __props;
13
10
  const emit = __emit;
14
11
  const containerRef = useTemplateRef("container");
15
- const element = computed(() => props.scrollingElement ?? document);
12
+ const scrollingElement = inject(wScrollingElement, null);
13
+ const element = computed(() => scrollingElement?.value ?? document);
16
14
  const listener = (event) => {
17
15
  if (event.target !== element.value || !containerRef.value) return;
18
- if (getIsScrollUp(props.scrollingElement ?? document.scrollingElement, containerRef.value.offsetTop)) {
16
+ if (getIsScrollUp(scrollingElement?.value ?? document.scrollingElement, containerRef.value.offsetTop)) {
19
17
  emit("scroll:up");
20
18
  return;
21
19
  }
22
- if (getIsScrollDown(props.scrollingElement ?? document.scrollingElement)) {
20
+ if (getIsScrollDown(scrollingElement?.value ?? document.scrollingElement)) {
23
21
  emit("scroll:down");
24
22
  }
25
23
  };
26
24
  const checkIsScrollUp = () => {
27
- if (getIsScrollDown(props.scrollingElement ?? document.scrollingElement)) {
25
+ if (getIsScrollDown(scrollingElement?.value ?? document.scrollingElement)) {
28
26
  emit("scroll:down");
29
27
  }
30
28
  };
31
29
  const checkIsScrollDown = () => {
32
- if (getIsScrollDown(props.scrollingElement ?? document.scrollingElement)) {
30
+ if (getIsScrollDown(scrollingElement?.value ?? document.scrollingElement)) {
33
31
  emit("scroll:down");
34
32
  }
35
33
  };
@@ -0,0 +1,3 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ export declare const wScrollingElement: InjectionKey<Ref<Element | null>>;
3
+ //# sourceMappingURL=injection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/models/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAE1C,eAAO,MAAM,iBAAiB,EAAkC,YAAY,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ const wScrollingElement = Symbol("wScrollingElement");
2
+
3
+ export { wScrollingElement };
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- export declare const useInfiniteListHeader: (headerElementHeight: Ref<number>, scrollingElement?: Element | null, initIsIntersecting?: boolean) => {
2
+ export declare const useInfiniteListHeader: (headerElementHeight: Ref<number>, initIsIntersecting?: boolean) => {
3
3
  indicator: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
4
4
  header: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
5
5
  headerHeight: Ref<number, number>;
@@ -1 +1 @@
1
- {"version":3,"file":"useInfiniteListHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/use/useInfiniteListHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,GAAG,EAAkC,MAAM,KAAK,CAAA;AAI7D,eAAO,MAAM,qBAAqB,GAAI,qBAAqB,GAAG,CAAC,MAAM,CAAC,EAAE,mBAAkB,OAAO,GAAG,IAAgC,EAAE,4BAAyB;;;;;;;CAoD9J,CAAA"}
1
+ {"version":3,"file":"useInfiniteListHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/use/useInfiniteListHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,GAAG,EAA0C,MAAM,KAAK,CAAA;AAMrE,eAAO,MAAM,qBAAqB,GAAI,qBAAqB,GAAG,CAAC,MAAM,CAAC,EAAE,4BAAyB;;;;;;;CAsDhG,CAAA"}
@@ -1,13 +1,15 @@
1
- import { ref, onMounted, onBeforeUnmount } from 'vue';
1
+ import { ref, inject, onMounted, onBeforeUnmount } from 'vue';
2
2
  import { isClientSide } from '../../../utils/utils.js';
3
+ import { wScrollingElement } from '../models/injection.js';
3
4
 
4
- const useInfiniteListHeader = (headerElementHeight, scrollingElement = document.scrollingElement, initIsIntersecting = true) => {
5
+ const useInfiniteListHeader = (headerElementHeight, initIsIntersecting = true) => {
5
6
  const indicator = ref();
6
7
  const header = ref();
7
8
  const headerHeight = ref(0);
8
9
  const headerTop = ref(0);
9
10
  const isIntersecting = ref(initIsIntersecting);
10
11
  let observer = null;
12
+ const scrollingElement = inject(wScrollingElement, null);
11
13
  const observerCb = (entries) => {
12
14
  isIntersecting.value = entries.some((entry) => {
13
15
  if (entry.target === indicator.value) {
@@ -19,7 +21,7 @@ const useInfiniteListHeader = (headerElementHeight, scrollingElement = document.
19
21
  if (!header.value) return;
20
22
  const rect = header.value.getBoundingClientRect();
21
23
  headerHeight.value = rect.height;
22
- headerTop.value = rect.top + (scrollingElement?.scrollTop ?? 0) - headerElementHeight.value;
24
+ headerTop.value = rect.top + (scrollingElement?.value?.scrollTop ?? document.scrollingElement?.scrollTop ?? 0) - headerElementHeight.value;
23
25
  };
24
26
  onMounted(() => {
25
27
  if (!isClientSide) return;
@@ -58,8 +58,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  subgrid: { type: Boolean },
59
59
  seamless: { type: Boolean },
60
60
  teleport: { type: Boolean },
61
- noZIndex: { type: Boolean },
62
- zIndex: {},
63
61
  parentElement: {},
64
62
  maxHeight: { default: 440 },
65
63
  maxWidth: { default: 480 },
@@ -63,8 +63,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
63
  subgrid: { type: Boolean },
64
64
  seamless: { type: Boolean },
65
65
  teleport: { type: Boolean },
66
- noZIndex: { type: Boolean },
67
- zIndex: {},
68
66
  parentElement: {},
69
67
  maxHeight: {},
70
68
  maxWidth: {},
@@ -1 +1 @@
1
- {"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AA+GA;AA6MA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAC,KAAK,KAAK,EAAgC,MAAM,KAAK,CAAA;yBAW5C,IAAI,SAAS,SAAS,GAAG,MAAM,EAC/C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG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C,EAAE,OAAO,GAAG,IAAI,CAAA;SAAC,KAAK,IAAI;gBAChD,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;kBACpC,CAAC,KAAK,CAAC,EAAE;YAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;SAAC,KAAK,KAAK,EAAE;;;YAlEvD,mBAAmB,mDAAsB,IAAI;YAC7C,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,MAAM,GAAG,IAAI;YACb,OAAO,GAAG,IAAI;YACd,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;EA4WlC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1YzE,wBA0Y4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,7 +1,8 @@
1
- import { defineComponent, ref, useTemplateRef, computed, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, Fragment, renderList, createVNode, createSlots, renderSlot } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, normalizeClass, createElementBlock, createCommentVNode, Fragment, renderList, createSlots, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../BottomSheet/WBottomSheet.vue.js';
3
3
  import _sfc_main$2 from '../DropdownMenu/WDropdownMenu.vue.js';
4
- import _sfc_main$3 from './WInput.vue.js';
4
+ import _sfc_main$3 from '../InfiniteList/WInfiniteListScrollingElement.vue.js';
5
+ import _sfc_main$4 from './WInput.vue.js';
5
6
  import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
6
7
  import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
7
8
  import { useIsMobile } from '../../utils/mobile.js';
@@ -58,8 +59,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
59
  subgrid: { type: Boolean },
59
60
  seamless: { type: Boolean },
60
61
  teleport: { type: Boolean },
61
- noZIndex: { type: Boolean },
62
- zIndex: {},
63
62
  parentElement: {},
64
63
  maxHeight: { default: 320 },
65
64
  maxWidth: { default: 600 },
@@ -72,7 +71,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
71
  const isOpen = ref(false);
73
72
  const dropdownMenuRef = useTemplateRef("dropdownMenu");
74
73
  const inputRef = useTemplateRef("input");
75
- const contentRef = useTemplateRef("content");
76
74
  const { isMobile } = useIsMobile();
77
75
  const isDisabled = computed(() => props.readonly || props.disabled);
78
76
  const open = () => {
@@ -111,11 +109,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
111
109
  horizontalAlign: _ctx.horizontalAlign,
112
110
  updateAlign: true,
113
111
  teleport: _ctx.teleport,
114
- noZIndex: _ctx.noZIndex,
115
112
  parentElement: unref(inputRef)?.fieldRef
116
113
  }), {
117
114
  toggle: withCtx((toggleScope) => [
118
- createVNode(_sfc_main$3, mergeProps({ ref: "input" }, {
115
+ createVNode(_sfc_main$4, mergeProps({ ref: "input" }, {
119
116
  ...props,
120
117
  ..._ctx.$attrs,
121
118
  title: toggleScope?.unclickable ? _ctx.mobileTitle ?? _ctx.title : _ctx.title,
@@ -181,22 +178,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
178
  ]), 1040, ["class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
182
179
  ]),
183
180
  content: withCtx((contentScope) => [
184
- createElementVNode("div", {
185
- ref: "content",
181
+ createVNode(_sfc_main$3, {
182
+ parent: unref(isMobile),
186
183
  class: normalizeClass(["bg-default dark:bg-default-dark w-full", {
187
184
  "pb-[50vh]": unref(isMobile),
188
185
  "overflow-y-overlay max-h-[inherit] overflow-x-hidden overscroll-contain rounded-xl shadow-md dark:border dark:border-solid dark:border-gray-800": !unref(isMobile),
189
186
  "mt-5": "istop" in contentScope && contentScope.istop === false && (_ctx.errorMessage || _ctx.maxLength)
190
187
  }])
191
- }, [
192
- _ctx.$slots.content ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.$slots.content(), (slot, index) => {
193
- return openBlock(), createBlock(resolveDynamicComponent(slot), {
194
- key: index,
195
- "scrolling-element": unref(isMobile) ? unref(contentRef)?.parentElement : unref(contentRef),
196
- onClose: close
197
- }, null, 40, ["scrolling-element"]);
198
- }), 128)) : createCommentVNode("", true)
199
- ], 2)
188
+ }, {
189
+ default: withCtx(() => [
190
+ _ctx.$slots.content ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.$slots.content(), (slot, index) => {
191
+ return openBlock(), createBlock(resolveDynamicComponent(slot), {
192
+ key: index,
193
+ onClose: close
194
+ }, null, 32);
195
+ }), 128)) : createCommentVNode("", true)
196
+ ]),
197
+ _: 2
198
+ }, 1032, ["parent", "class"])
200
199
  ]),
201
200
  _: 3
202
201
  }, 16);
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAwMA;AAkRA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAgB5C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAA;IAC3B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,C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yB,GAC1B,6DACoB,GAAG;;;;;;;;;;;;;;;;OA8HtB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -92,11 +92,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
92
  }),
93
93
  !_ctx.card ? (openBlock(), createElementBlock("div", {
94
94
  key: 0,
95
- class: normalizeClass(["left-inner bg-default dark:bg-default-dark @not-lg:hidden sticky z-[1]", {
95
+ class: normalizeClass(["-left--left-inner bg-default dark:bg-default-dark @not-lg:hidden sticky z-[1]", {
96
96
  "width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
97
97
  }])
98
98
  }, [
99
- _cache[5] || (_cache[5] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute right-full top-0 z-[-1] h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))]" }, null, -1)),
99
+ _cache[5] || (_cache[5] = createElementVNode("div", { class: "bg-default dark:bg-default-dark -w--left-inner absolute right-full top-0 z-[-1] h-full" }, null, -1)),
100
100
  createElementVNode("div", {
101
101
  class: normalizeClass(["h-full rounded-l-[--w-list-rounded,unset]", {
102
102
  "border border-r-0": _ctx.hasBorder,
@@ -176,12 +176,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
176
176
  }, 16, ["class"])),
177
177
  !_ctx.card ? (openBlock(), createElementBlock("div", {
178
178
  key: 1,
179
- class: normalizeClass(["right-inner bg-default dark:bg-default-dark sticky z-[1]", {
179
+ class: normalizeClass(["-right--right-inner bg-default dark:bg-default-dark sticky z-[1]", {
180
180
  "width-[calc(var(--w-list-padding,1rem)*2+1.25em)]": _ctx.$slots.more,
181
181
  "width-[--w-list-header-rounded,1rem]": !_ctx.$slots.more
182
182
  }])
183
183
  }, [
184
- _cache[6] || (_cache[6] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute left-full top-0 z-[-1] h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))]" }, null, -1)),
184
+ _cache[6] || (_cache[6] = createElementVNode("div", { class: "bg-default dark:bg-default-dark -w--right-inner absolute left-full top-0 z-[-1] h-full" }, null, -1)),
185
185
  createElementVNode("div", {
186
186
  class: normalizeClass(["h-full rounded-r-[--w-list-rounded,unset]", {
187
187
  "rounded-tr-[--w-list-rounded,unset] border border-l-0": _ctx.hasBorder,
@@ -221,7 +221,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
221
221
  _ctx.$slots.expansion ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
222
222
  isOpen.value ? (openBlock(), createElementBlock("div", {
223
223
  key: 0,
224
- class: normalizeClass(["sm:w-inner sm:left-inner col-span-full sm:sticky", {
224
+ class: normalizeClass(["sm:-w--width-inner sm:-left--left-inner col-span-full sm:sticky", {
225
225
  "border-gray-300 dark:border-gray-700": _ctx.hasBorder && !_ctx.selected,
226
226
  "border-primary dark:border-primary-dark": _ctx.hasBorder && _ctx.selected,
227
227
  "mt-[calc(var(--w-list-gap,1rem)*-1)] border border-t-0 px-5": !_ctx.card && _ctx.hasBorder,
@@ -2,9 +2,9 @@ import { defineComponent, onMounted, onUnmounted, createElementBlock, openBlock,
2
2
  import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
3
3
 
4
4
  const _hoisted_1 = { class: "flex h-[--w-list-header-height,3rem]" };
5
- const _hoisted_2 = { class: "left-inner bg-default dark:bg-default-dark sticky z-[1]" };
5
+ const _hoisted_2 = { class: "-left--left-inner bg-default dark:bg-default-dark sticky z-[1]" };
6
6
  const _hoisted_3 = { class: "bg-primary-light dark:bg-primary-darkest flex flex-1 border-y border-solid border-gray-300 dark:border-gray-700" };
7
- const _hoisted_4 = { class: "right-inner bg-default dark:bg-default-dark sticky z-[1]" };
7
+ const _hoisted_4 = { class: "-right--right-inner bg-default dark:bg-default-dark sticky z-[1]" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "WListHeader",
10
10
  props: {
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  return (_ctx, _cache) => {
28
28
  return openBlock(), createElementBlock("div", _hoisted_1, [
29
29
  createElementVNode("div", _hoisted_2, [
30
- _cache[1] || (_cache[1] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute right-full top-0 z-[-1] h-full w-[calc(var(--nav-bar-width)+var(--inner-margin))]" }, null, -1)),
30
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "bg-default dark:bg-default-dark -w--left-inner absolute right-full top-0 z-[-1] h-full" }, null, -1)),
31
31
  createElementVNode("div", {
32
32
  class: normalizeClass(["bg-primary-light dark:bg-primary-darkest h-full rounded-l-[--w-list-header-rounded,1rem] border-y border-l border-solid border-gray-300 dark:border-gray-700", {
33
33
  "width-[--w-list-header-rounded,1rem]": !_ctx.allowSelect
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  renderSlot(_ctx.$slots, "default")
49
49
  ]),
50
50
  createElementVNode("div", _hoisted_4, [
51
- _cache[2] || (_cache[2] = createElementVNode("div", { class: "bg-default dark:bg-default-dark absolute left-full top-0 z-[-1] h-full w-[calc(var(--actions-bar-width)+var(--inner-margin))]" }, null, -1)),
51
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "bg-default dark:bg-default-dark -w--right-inner absolute left-full top-0 z-[-1] h-full" }, null, -1)),
52
52
  createElementVNode("div", {
53
53
  class: normalizeClass(["bg-primary-light dark:bg-primary-darkest h-full rounded-r-[--w-list-header-rounded,0.75rem] border-y border-r border-solid border-gray-300 dark:border-gray-700", {
54
54
  "width-[calc(var(--w-list-padding,1rem)*2+1.25em)]": !_ctx.hideMore,
@@ -1 +1 @@
1
- {"version":3,"file":"WMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuItem/WMenuItem.vue"],"names":[],"mappings":"AAqBA;AAwCA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAYD,iBAAS,cAAc;WA0DT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuItem/WMenuItem.vue"],"names":[],"mappings":"AAsBA;AAyCA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAYD,iBAAS,cAAc;WA2DT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -22,9 +22,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  }), {
23
23
  default: withCtx(() => [
24
24
  createElementVNode("div", {
25
- class: normalizeClass({
26
- "w-ripple w-ripple-hover relative flex w-full gap-4 rounded-lg px-2 py-1": !_ctx.disabled
27
- })
25
+ class: normalizeClass(["relative flex w-full gap-4 rounded-lg px-2 py-1", {
26
+ "w-ripple w-ripple-hover": !_ctx.disabled
27
+ }])
28
28
  }, [
29
29
  renderSlot(_ctx.$slots, "default")
30
30
  ], 2)
@@ -1 +1 @@
1
- {"version":3,"file":"WModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModal.vue"],"names":[],"mappings":"AAyCA;;AA8XA,wBAMG"}
1
+ {"version":3,"file":"WModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModal.vue"],"names":[],"mappings":"AAyCA;;AA0YA,wBAMG"}
@@ -1,13 +1,17 @@
1
- import { defineComponent, ref, reactive, watch, onBeforeMount, onBeforeUnmount, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, unref, normalizeStyle, TransitionGroup, Fragment, renderList, createElementVNode, createBlock, withModifiers, resolveDynamicComponent, mergeProps } from 'vue';
1
+ import { defineComponent, provide, ref, reactive, watch, onBeforeMount, onBeforeUnmount, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, unref, normalizeStyle, TransitionGroup, Fragment, renderList, createElementVNode, createBlock, withModifiers, resolveDynamicComponent, mergeProps } from 'vue';
2
2
  import { Modal, initModal } from '../../utils/Modal.js';
3
3
  import { SemanticType } from '../../utils/SemanticType.js';
4
4
  import _sfc_main$1 from './components/ModalCloseButton.vue.js';
5
+ import { wBaseZInfex, wIsModal } from './models/injection.js';
5
6
  import { useIsBackdrop } from './use/useIsBackdrop.js';
6
7
 
7
8
  const _hoisted_1 = { class: "z-[1000]" };
9
+ const MODAL_Z_INDEX = 1e3;
8
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
11
  __name: "WModal",
10
12
  setup(__props) {
13
+ provide(wBaseZInfex, MODAL_Z_INDEX);
14
+ provide(wIsModal, true);
11
15
  const key = ref(0);
12
16
  const modalMetaList = ref([]);
13
17
  const isBackdrop = useIsBackdrop();
@@ -27,9 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  const abortList = ref([]);
28
28
  const progress = computed(() => {
29
29
  if (props.items.length === 0) return 0;
30
- return itemIndex.value / props.items.length;
30
+ return 100 * itemIndex.value / props.items.length;
31
31
  });
32
- const isDone = computed(() => progress.value === 1);
32
+ const isDone = computed(() => progress.value === 100);
33
33
  const abortUpload = () => {
34
34
  if (!isDone.value) {
35
35
  const length = abortList.value.length;
@@ -9,11 +9,17 @@ declare function __VLS_template(): {
9
9
  default?(_: {}): any;
10
10
  actions?(_: {}): any;
11
11
  };
12
- refs: {};
12
+ refs: {
13
+ header: HTMLDivElement;
14
+ footer: HTMLDivElement;
15
+ };
13
16
  rootEl: HTMLDivElement;
14
17
  };
15
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ header: HTMLDivElement;
21
+ footer: HTMLDivElement;
22
+ }, HTMLDivElement>;
17
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
24
  export default _default;
19
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"WModalWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModalWrapper.vue"],"names":[],"mappings":"AAgCA;AAwCA,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAKF,iBAAS,cAAc;WAmDT,OAAO,IAA6B;;uBAbvB,GAAG;0BACA,GAAG;yBACJ,GAAG;yBACH,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WModalWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/WModalWrapper.vue"],"names":[],"mappings":"AA2CA;AA8DA,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAQF,iBAAS,cAAc;WA+ET,OAAO,IAA6B;;uBAfvB,GAAG;0BACA,GAAG;yBACJ,GAAG;yBACH,GAAG;;;;;;;EAiB/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;kBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,10 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot } from 'vue';
1
+ import { defineComponent, useTemplateRef, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createElementVNode, renderSlot } from 'vue';
2
+ import _sfc_main$1 from '../InfiniteList/WInfiniteListScrollingElement.vue.js';
2
3
 
3
- const _hoisted_1 = { class: "bg-default dark:bg-default-dark sticky top-0 z-[1]" };
4
+ const _hoisted_1 = {
5
+ ref: "header",
6
+ class: "bg-default dark:bg-default-dark sticky left-0 top-0 z-[1] w-[--w-modal-wrapper-width,35rem]"
7
+ };
4
8
  const _hoisted_2 = { class: "text-accent -p--w-modal-wrapper-padding flex items-center justify-center text-balance text-center text-xl font-semibold" };
5
9
  const _hoisted_3 = { class: "sm:-px--w-modal-wrapper-padding" };
6
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -9,29 +13,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
13
  maximized: { type: Boolean }
10
14
  },
11
15
  setup(__props) {
16
+ const headerRef = useTemplateRef("header");
17
+ const footerRef = useTemplateRef("footer");
12
18
  return (_ctx, _cache) => {
13
- return openBlock(), createElementBlock("div", {
14
- class: normalizeClass(["bg-default dark:bg-default-dark max-h-[calc(100%-var(--inner-margin,2rem)*2)] w-[var(--w-modal-wrapper-width,35rem)] max-w-[calc(100%-var(--inner-margin,2rem)*2)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-[--w-modal-wrapper-rounded,1.5rem] shadow-md", {
19
+ return openBlock(), createBlock(_sfc_main$1, {
20
+ class: normalizeClass(["bg-default dark:bg-default-dark w-modal-wrapper grid max-h-[calc(100%-var(--inner-margin,2rem)*2)] w-[--w-modal-wrapper-width,35rem] max-w-[calc(100%-var(--inner-margin,2rem)*2)] grid-cols-[1fr] overflow-auto overscroll-contain rounded-[--w-modal-wrapper-rounded,1.5rem] shadow-md", {
15
21
  "sm-not:max-w-full sm-not:h-full sm-not:rounded-none sm-not:max-h-full": _ctx.maximized
16
- }])
17
- }, [
18
- createElementVNode("div", _hoisted_1, [
19
- createElementVNode("div", _hoisted_2, [
20
- renderSlot(_ctx.$slots, "title")
22
+ }]),
23
+ style: normalizeStyle({
24
+ "--w-modal-header-height": (unref(headerRef)?.offsetHeight ?? 0) + "px",
25
+ "--w-modal-footer-height": (unref(footerRef)?.offsetHeight ?? 0) + "px"
26
+ })
27
+ }, {
28
+ default: withCtx(() => [
29
+ createElementVNode("div", _hoisted_1, [
30
+ createElementVNode("div", _hoisted_2, [
31
+ renderSlot(_ctx.$slots, "title")
32
+ ]),
33
+ renderSlot(_ctx.$slots, "subtitle")
34
+ ], 512),
35
+ createElementVNode("div", _hoisted_3, [
36
+ renderSlot(_ctx.$slots, "default")
21
37
  ]),
22
- renderSlot(_ctx.$slots, "subtitle")
38
+ createElementVNode("div", {
39
+ ref: "footer",
40
+ class: normalizeClass(["bg-default dark:bg-default-dark -gap--inner-margin -p--w-modal-wrapper-padding sticky bottom-0 left-0 z-[1] flex w-[--w-modal-wrapper-width,35rem] justify-center", {
41
+ "sm-not:flex-col": !_ctx.maximized
42
+ }])
43
+ }, [
44
+ renderSlot(_ctx.$slots, "actions")
45
+ ], 2)
23
46
  ]),
24
- createElementVNode("div", _hoisted_3, [
25
- renderSlot(_ctx.$slots, "default")
26
- ]),
27
- createElementVNode("div", {
28
- class: normalizeClass(["bg-default dark:bg-default-dark -gap--inner-margin -p--w-modal-wrapper-padding sticky bottom-0 z-[1] flex w-full justify-center", {
29
- "sm-not:flex-col": !_ctx.maximized
30
- }])
31
- }, [
32
- renderSlot(_ctx.$slots, "actions")
33
- ], 2)
34
- ], 2);
47
+ _: 3
48
+ }, 8, ["class", "style"]);
35
49
  };
36
50
  }
37
51
  });
@@ -0,0 +1,4 @@
1
+ import { InjectionKey } from 'vue';
2
+ export declare const wBaseZInfex: InjectionKey<number>;
3
+ export declare const wIsModal: InjectionKey<boolean>;
4
+ //# sourceMappingURL=injection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/models/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,KAAK,CAAA;AAErC,eAAO,MAAM,WAAW,EAA4B,YAAY,CAAC,MAAM,CAAC,CAAA;AAExE,eAAO,MAAM,QAAQ,EAAyB,YAAY,CAAC,OAAO,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ const wBaseZInfex = Symbol("wBaseZInfex");
2
+ const wIsModal = Symbol("wIsModal");
3
+
4
+ export { wBaseZInfex, wIsModal };
@@ -8,10 +8,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  setup(__props) {
9
9
  return (_ctx, _cache) => {
10
10
  return openBlock(), createElementBlock("div", {
11
- class: normalizeClass(["relative h-2 w-full cursor-progress select-none overflow-clip rounded-lg", {
11
+ class: normalizeClass(["relative h-2 w-full select-none overflow-clip rounded-lg", {
12
12
  "button-gradient-primary": _ctx.modelValue > 0,
13
13
  "bg-gray-200 dark:bg-gray-800": _ctx.modelValue <= 0,
14
- "w-progress-striped before:animate-move-horizontal": _ctx.modelValue > 0 && _ctx.modelValue < 100,
14
+ "w-progress-striped before:animate-move-horizontal cursor-progress": _ctx.modelValue > 0 && _ctx.modelValue < 100,
15
15
  "before:absolute before:inset-0": _ctx.modelValue >= 100 || _ctx.modelValue <= 0,
16
16
  "before:animate-ticker before:via-default/50 before:bg-gradient-to-r before:from-transparent before:to-transparent": _ctx.modelValue <= 0,
17
17
  "before:bg-default/50 before:animate-pulse": _ctx.modelValue >= 100
@@ -76,8 +76,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
76
  subgrid: { type: Boolean },
77
77
  seamless: { type: Boolean },
78
78
  teleport: { type: Boolean },
79
- noZIndex: { type: Boolean },
80
- zIndex: {},
81
79
  parentElement: {},
82
80
  maxHeight: {},
83
81
  maxWidth: {},
@@ -69,8 +69,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  subgrid: { type: Boolean },
70
70
  seamless: { type: Boolean },
71
71
  teleport: { type: Boolean },
72
- noZIndex: { type: Boolean },
73
- zIndex: {},
74
72
  parentElement: {},
75
73
  maxHeight: {},
76
74
  maxWidth: {},