eco-vue-js 0.11.25 → 0.11.27
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.
- package/dist/components/Auth/WRouteAuth.vue.d.ts +16 -1
- package/dist/components/Auth/WRouteAuth.vue.d.ts.map +1 -1
- package/dist/components/Auth/WRouteAuth.vue.js +8 -3
- package/dist/components/Auth/WRouteAuthNo.vue.d.ts +16 -1
- package/dist/components/Auth/WRouteAuthNo.vue.d.ts.map +1 -1
- package/dist/components/Auth/WRouteAuthNo.vue.js +8 -3
- package/dist/components/ClickOutside/WClickOutside.vue.js +3 -3
- package/dist/components/Dropdown/WDropdown.vue.js +2 -2
- package/dist/components/Dropdown/utils/DropdownStyle.js +5 -5
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +2 -2
- package/dist/components/FilePicker/WFilePicker.vue.js +3 -3
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +2 -2
- package/dist/components/InfiniteList/components/InfiniteListHeaderHeight.vue.js +2 -2
- package/dist/main.js +1 -1
- package/dist/utils/ApiClient.d.ts +44 -8
- package/dist/utils/ApiClient.d.ts.map +1 -1
- package/dist/utils/mobile.js +5 -5
- package/dist/utils/supportsPassive.js +2 -2
- package/dist/utils/utils.d.ts +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +2 -2
- package/package.json +1 -1
@@ -2,6 +2,21 @@ import { ApiClientInstance } from '../../utils/ApiClient';
|
|
2
2
|
type __VLS_Props = {
|
3
3
|
apiClientInstance: ApiClientInstance;
|
4
4
|
};
|
5
|
-
declare
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: {
|
8
|
+
default?(_: {}): any;
|
9
|
+
};
|
10
|
+
refs: {};
|
11
|
+
rootEl: any;
|
12
|
+
};
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
14
|
+
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, {}, any>;
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
6
16
|
export default _default;
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
18
|
+
new (): {
|
19
|
+
$slots: S;
|
20
|
+
};
|
21
|
+
};
|
7
22
|
//# sourceMappingURL=WRouteAuth.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WRouteAuth.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/WRouteAuth.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WRouteAuth.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/WRouteAuth.vue"],"names":[],"mappings":"AAQA;AAgEA,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,mBAAmB,CAAA;AAExD,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,iBAAiB,CAAA;CACrC,CAAC;AAyCF,iBAAS,cAAc;WA8BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,5 +1,4 @@
|
|
1
|
-
import { defineComponent, watch, onBeforeUnmount, createBlock,
|
2
|
-
import { RouterView } from 'vue-router';
|
1
|
+
import { defineComponent, resolveComponent, watch, onBeforeUnmount, createBlock, renderSlot, unref, openBlock, resolveDynamicComponent } from 'vue';
|
3
2
|
import { useOptionalRouter, useOptionalRoute } from '../../composables/useOptionalRouter.js';
|
4
3
|
import '@tanstack/vue-query';
|
5
4
|
|
@@ -10,6 +9,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
9
|
},
|
11
10
|
setup(__props) {
|
12
11
|
const props = __props;
|
12
|
+
let RouterViewComponent = null;
|
13
|
+
try {
|
14
|
+
RouterViewComponent = resolveComponent("RouterView");
|
15
|
+
} catch {
|
16
|
+
RouterViewComponent = null;
|
17
|
+
}
|
13
18
|
const router = useOptionalRouter();
|
14
19
|
const route = useOptionalRoute();
|
15
20
|
const redirect = () => {
|
@@ -31,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
36
|
window.removeEventListener("storage", checkAuth);
|
32
37
|
});
|
33
38
|
return (_ctx, _cache) => {
|
34
|
-
return openBlock(), createBlock(unref(
|
39
|
+
return unref(RouterViewComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(RouterViewComponent)), { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 });
|
35
40
|
};
|
36
41
|
}
|
37
42
|
});
|
@@ -2,6 +2,21 @@ import { ApiClientInstance } from '../../utils/ApiClient';
|
|
2
2
|
type __VLS_Props = {
|
3
3
|
apiClientInstance: ApiClientInstance;
|
4
4
|
};
|
5
|
-
declare
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: {
|
8
|
+
default?(_: {}): any;
|
9
|
+
};
|
10
|
+
refs: {};
|
11
|
+
rootEl: any;
|
12
|
+
};
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
14
|
+
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, {}, any>;
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
6
16
|
export default _default;
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
18
|
+
new (): {
|
19
|
+
$slots: S;
|
20
|
+
};
|
21
|
+
};
|
7
22
|
//# sourceMappingURL=WRouteAuthNo.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WRouteAuthNo.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/WRouteAuthNo.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WRouteAuthNo.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/WRouteAuthNo.vue"],"names":[],"mappings":"AAQA;AA2EA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAA;AAexD,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,iBAAiB,CAAA;CACrC,CAAC;AAiDF,iBAAS,cAAc;WA8BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, watch, onBeforeMount, onBeforeUnmount,
|
1
|
+
import { defineComponent, resolveComponent, ref, watch, onBeforeMount, onBeforeUnmount, createBlock, renderSlot, unref, openBlock, resolveDynamicComponent } from 'vue';
|
2
2
|
import { useQueryClient } from '@tanstack/vue-query';
|
3
3
|
import { useOptionalRouter, useOptionalRoute } from '../../composables/useOptionalRouter.js';
|
4
4
|
|
@@ -8,6 +8,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
apiClientInstance: {}
|
9
9
|
},
|
10
10
|
setup(__props) {
|
11
|
+
let RouterViewComponent = null;
|
12
|
+
try {
|
13
|
+
RouterViewComponent = resolveComponent("RouterView");
|
14
|
+
} catch {
|
15
|
+
RouterViewComponent = null;
|
16
|
+
}
|
11
17
|
const props = __props;
|
12
18
|
const router = useOptionalRouter();
|
13
19
|
const route = useOptionalRoute();
|
@@ -42,8 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
48
|
window.removeEventListener("storage", checkLogin);
|
43
49
|
});
|
44
50
|
return (_ctx, _cache) => {
|
45
|
-
|
46
|
-
return openBlock(), createBlock(_component_RouterView);
|
51
|
+
return unref(RouterViewComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(RouterViewComponent)), { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 });
|
47
52
|
};
|
48
53
|
}
|
49
54
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, useTemplateRef, onMounted, onBeforeUnmount, createElementBlock, openBlock, renderSlot } from 'vue';
|
2
|
-
import {
|
2
|
+
import { getIsClientSide, hasParent } from '../../utils/utils.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
5
|
__name: "WClickOutside",
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
emit("click");
|
19
19
|
};
|
20
20
|
onMounted(() => {
|
21
|
-
if (!
|
21
|
+
if (!getIsClientSide()) return;
|
22
22
|
setTimeout(() => {
|
23
23
|
document.addEventListener("click", clickListener);
|
24
24
|
document.addEventListener("contextmenu", clickListener);
|
25
25
|
});
|
26
26
|
});
|
27
27
|
onBeforeUnmount(() => {
|
28
|
-
if (!
|
28
|
+
if (!getIsClientSide()) return;
|
29
29
|
document.removeEventListener("click", clickListener);
|
30
30
|
document.removeEventListener("contextmenu", clickListener);
|
31
31
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, useTemplateRef, ref, computed, onBeforeMount, onMounted, onBeforeUnmount, watch, toRef, createElementBlock, openBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import { DOMListenerContainer } from '../../utils/DOMListenerContainer.js';
|
3
|
-
import {
|
3
|
+
import { getIsClientSide, getAllScrollParents } from '../../utils/utils.js';
|
4
4
|
import { OriginX, horizontalGetterOrderMap, searchStyleGetter } from './utils/DropdownStyle.js';
|
5
5
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
let domListenerContainer;
|
48
48
|
let requestAnimationFrameId = null;
|
49
49
|
onMounted(() => {
|
50
|
-
if (!
|
50
|
+
if (!getIsClientSide() || !dropdownRef.value) return;
|
51
51
|
const parent = props.parentElement instanceof Element ? props.parentElement : props.parentElement instanceof Range ? props.parentElement.commonAncestorContainer : void 0;
|
52
52
|
domListenerContainer = new DOMListenerContainer(
|
53
53
|
parent ? [document, window, ...getAllScrollParents(parent)] : [document, window],
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { markRaw } from 'vue';
|
2
2
|
import { HorizontalAlign } from '../../../utils/HorizontalAlign.js';
|
3
|
-
import {
|
3
|
+
import { getIsClientSide } from '../../../utils/utils.js';
|
4
4
|
|
5
5
|
const EDGE_FACTOR = 0.66;
|
6
|
-
const BOTTOM_EDGE =
|
6
|
+
const BOTTOM_EDGE = getIsClientSide() ? window.innerHeight * EDGE_FACTOR : 0;
|
7
7
|
const BottomInner = markRaw({
|
8
8
|
isTop: false,
|
9
9
|
origin: "content-start" /* TOP */,
|
@@ -23,7 +23,7 @@ const VerticalCenter = markRaw({
|
|
23
23
|
y: (parentRect) => Math.round(parentRect.top + parentRect.height / 2),
|
24
24
|
isEdge: void 0
|
25
25
|
});
|
26
|
-
const TOP_EDGE =
|
26
|
+
const TOP_EDGE = getIsClientSide() ? window.innerHeight * (1 - EDGE_FACTOR) : 0;
|
27
27
|
const TopOuter = markRaw({
|
28
28
|
isTop: true,
|
29
29
|
origin: "content-end" /* BOTTOM */,
|
@@ -42,7 +42,7 @@ var OriginX = /* @__PURE__ */ ((OriginX2) => {
|
|
42
42
|
OriginX2["CENTER"] = "justify-center";
|
43
43
|
return OriginX2;
|
44
44
|
})(OriginX || {});
|
45
|
-
const RIGHT_EDGE =
|
45
|
+
const RIGHT_EDGE = getIsClientSide() ? window.innerWidth * EDGE_FACTOR : 0;
|
46
46
|
const RightOuter = markRaw({
|
47
47
|
verticalGetterOrder: [BottomInner, TopInner],
|
48
48
|
origin: "justify-start" /* LEFT */,
|
@@ -74,7 +74,7 @@ const Center = markRaw({
|
|
74
74
|
x: (parentRect) => Math.round(parentRect.left + parentRect.width / 2),
|
75
75
|
isEdge: void 0
|
76
76
|
});
|
77
|
-
const LEFT_EDGE =
|
77
|
+
const LEFT_EDGE = getIsClientSide() ? window.innerWidth * (1 - EDGE_FACTOR) : 0;
|
78
78
|
const LeftInner = markRaw({
|
79
79
|
verticalGetterOrder: [BottomOuter, TopOuter],
|
80
80
|
origin: "justify-end" /* RIGHT */,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAgCA;AAuEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAA;AAEzE,OAAO,EAAC,KAAK,KAAK,EAAmC,MAAM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mC,GAAG;;;;;;;;;;;;;;EAxCl3iB;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBwuiB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;OAfj3iB,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,6 @@
|
|
1
1
|
import { defineComponent, inject, useTemplateRef, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, unref, mergeProps, Teleport, createCommentVNode, normalizeClass, normalizeStyle, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Dropdown/WDropdown.vue.js';
|
3
|
-
import { wBaseZIndex,
|
3
|
+
import { wBaseZIndex, getIsClientSide, unwrapSlots, BASE_ZINDEX_DROPDOWN } from '../../utils/utils.js';
|
4
4
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "WDropdownMenu",
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
19
|
const baseZIndex = inject(wBaseZIndex, 0);
|
20
20
|
const containerRef = useTemplateRef("container");
|
21
21
|
const dropdownRef = useTemplateRef("dropdown");
|
22
|
-
const element = computed(() =>
|
22
|
+
const element = computed(() => getIsClientSide() ? containerRef.value instanceof HTMLElement ? containerRef.value : containerRef.value?.$el : void 0);
|
23
23
|
const isTop = computed(() => dropdownRef.value?.top ?? false);
|
24
24
|
__expose({
|
25
25
|
updateDropdown: () => {
|
@@ -3,7 +3,7 @@ import _sfc_main$4 from '../Button/WButton.vue.js';
|
|
3
3
|
import _sfc_main$1 from '../Skeleton/WSkeleton.vue.js';
|
4
4
|
import { SemanticType } from '../../utils/SemanticType.js';
|
5
5
|
import { useComponentStates } from '../../utils/useComponentStates.js';
|
6
|
-
import {
|
6
|
+
import { getIsClientSide } from '../../utils/utils.js';
|
7
7
|
import _sfc_main$3 from './components/FilePickerItem.vue.js';
|
8
8
|
import _sfc_main$2 from './components/FilePickerSvg.vue.js';
|
9
9
|
import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
|
@@ -85,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
85
85
|
};
|
86
86
|
useTabActiveListener(updateSize);
|
87
87
|
onMounted(() => {
|
88
|
-
if (!
|
88
|
+
if (!getIsClientSide()) return;
|
89
89
|
updateSize();
|
90
90
|
events.forEach((eventName) => {
|
91
91
|
document.body.addEventListener(eventName, preventDefaults);
|
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
93
93
|
window.addEventListener("resize", updateSize);
|
94
94
|
});
|
95
95
|
onUnmounted(() => {
|
96
|
-
if (!
|
96
|
+
if (!getIsClientSide()) return;
|
97
97
|
events.forEach((eventName) => {
|
98
98
|
document.body.removeEventListener(eventName, preventDefaults);
|
99
99
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, inject, ref, useTemplateRef, onMounted, onBeforeUnmount, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, normalizeStyle, normalizeClass, unref, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import { wIsModal } from '../Modal/models/injection.js';
|
3
|
-
import {
|
3
|
+
import { getIsClientSide, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_LIST_HEADER } from '../../utils/utils.js';
|
4
4
|
import _sfc_main$1 from './components/InfiniteListHeaderHeight.vue.js';
|
5
5
|
import _sfc_main$2 from './components/InfiniteListHeaderPadding.vue.js';
|
6
6
|
import { useHeader } from '../HeaderBar/use/useHeader.js';
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
31
|
let observer = null;
|
32
32
|
const { headerHeight } = useHeader();
|
33
33
|
onMounted(() => {
|
34
|
-
if (!
|
34
|
+
if (!getIsClientSide()) return;
|
35
35
|
if (indicatorRef.value) {
|
36
36
|
observer = new IntersectionObserver(observerCb, {
|
37
37
|
root: null,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useTemplateRef, ref, inject, watch, onMounted, createElementBlock, openBlock, Fragment, createElementVNode, renderSlot, mergeProps, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import { useHeader } from '../../HeaderBar/use/useHeader.js';
|
3
3
|
import { wModalHeaderHeight } from '../../Modal/models/injection.js';
|
4
|
-
import {
|
4
|
+
import { getIsClientSide } from '../../../utils/utils.js';
|
5
5
|
import { wScrollingElement } from '../models/injection.js';
|
6
6
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
25
|
};
|
26
26
|
watch(() => props.isIntersecting, updateHeader);
|
27
27
|
onMounted(() => {
|
28
|
-
if (!
|
28
|
+
if (!getIsClientSide()) return;
|
29
29
|
updateHeader();
|
30
30
|
});
|
31
31
|
return (_ctx, _cache) => {
|
package/dist/main.js
CHANGED
@@ -122,7 +122,7 @@ export { checkPermissionPaste, useCopy } from './utils/useCopy.js';
|
|
122
122
|
export { PAGE_LENGTH, makeQueryPaginated, useDefaultQuery, wrapUseQueryPaginated } from './utils/useDefaultQuery.js';
|
123
123
|
export { paginatedResponseUpdater, useQueryUpdater } from './utils/useQueryUpdater.js';
|
124
124
|
export { getPosition, useSelected } from './utils/useSelected.js';
|
125
|
-
export { BASE_ZINDEX_ACTIONS_BAR, BASE_ZINDEX_BOTTOM_SHEET, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_HEADER_BAR, BASE_ZINDEX_LIST_HEADER, BASE_ZINDEX_MODAL, BASE_ZINDEX_NAV_BAR, ListMode, Theme, WrapSelectionType, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getHasScrollbar, getScrollParent, hasParent,
|
125
|
+
export { BASE_ZINDEX_ACTIONS_BAR, BASE_ZINDEX_BOTTOM_SHEET, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_HEADER_BAR, BASE_ZINDEX_LIST_HEADER, BASE_ZINDEX_MODAL, BASE_ZINDEX_NAV_BAR, ListMode, Theme, WrapSelectionType, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getHasScrollbar, getIsClientSide, getScrollParent, hasParent, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseBoolean, parseId, parseIdList, parseIndex, parseInteger, parseIntegerList, parseJson, parseSliceIndexes, parseString, parseStringList, percentCompactFormatter, percentFormatter, set, throttle, unwrapSlots, wBaseZIndex } from './utils/utils.js';
|
126
126
|
export { validateForbiddenRegexp, validateRequired, validateRequiredSymbols } from './utils/validate.js';
|
127
127
|
export { default as IconAdd } from './assets/icons/IconAdd.svg.js';
|
128
128
|
export { default as IconAddCircle } from './assets/icons/IconAddCircle.svg.js';
|
@@ -42,11 +42,29 @@ export declare class ApiClientInstance implements ApiClient {
|
|
42
42
|
props: {
|
43
43
|
apiClientInstance: ApiClientInstance;
|
44
44
|
};
|
45
|
-
component:
|
45
|
+
component: {
|
46
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
47
|
+
apiClientInstance: ApiClientInstance;
|
48
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
49
|
+
P: {};
|
50
|
+
B: {};
|
51
|
+
D: {};
|
52
|
+
C: {};
|
53
|
+
M: {};
|
54
|
+
Defaults: {};
|
55
|
+
}, Readonly<{
|
56
|
+
apiClientInstance: ApiClientInstance;
|
57
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
58
|
+
__isFragment?: never;
|
59
|
+
__isTeleport?: never;
|
60
|
+
__isSuspense?: never;
|
61
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
46
62
|
apiClientInstance: ApiClientInstance;
|
47
|
-
}
|
48
|
-
|
49
|
-
|
63
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
64
|
+
$slots: {
|
65
|
+
default?(_: {}): any;
|
66
|
+
};
|
67
|
+
});
|
50
68
|
beforeEnter: (this: undefined, to: import('vue-router').RouteLocationNormalizedGeneric) => Promise<void | {
|
51
69
|
name: string;
|
52
70
|
query: {
|
@@ -62,11 +80,29 @@ export declare class ApiClientInstance implements ApiClient {
|
|
62
80
|
props: {
|
63
81
|
apiClientInstance: ApiClientInstance;
|
64
82
|
};
|
65
|
-
component:
|
83
|
+
component: {
|
84
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
85
|
+
apiClientInstance: ApiClientInstance;
|
86
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
87
|
+
P: {};
|
88
|
+
B: {};
|
89
|
+
D: {};
|
90
|
+
C: {};
|
91
|
+
M: {};
|
92
|
+
Defaults: {};
|
93
|
+
}, Readonly<{
|
94
|
+
apiClientInstance: ApiClientInstance;
|
95
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
96
|
+
__isFragment?: never;
|
97
|
+
__isTeleport?: never;
|
98
|
+
__isSuspense?: never;
|
99
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
66
100
|
apiClientInstance: ApiClientInstance;
|
67
|
-
}
|
68
|
-
|
69
|
-
|
101
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
102
|
+
$slots: {
|
103
|
+
default?(_: {}): any;
|
104
|
+
};
|
105
|
+
});
|
70
106
|
beforeEnter: (this: undefined, to: import('vue-router').RouteLocationNormalizedGeneric, from: import('vue-router').RouteLocationNormalizedLoadedGeneric) => string | {
|
71
107
|
query: {
|
72
108
|
hash: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../../src/utils/ApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAiB,MAAM,YAAY,CAAA;AAW7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAA;AAElE,eAAO,MAAM,YAAY,GAAI,QAAQ,aAAa,CAAC,QAAQ,CAAC,GAAG,aAAa,KAAG,MAE9E,CAAA;AAWD,KAAK,MAAM,GAAG,IAAK,MAAO,GAAG,CAAA;AAC7B,KAAK,OAAO,GAAG,IAAK,MAAO,EAAE,GAAG,UAAW,MAAO,EAAE,GAAG,WAAY,MAAO,EAAE,CAAA;AAE5E,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAA;IAEf,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM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,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAI5I,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAI7I,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC;IAIpD,YAAY,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBpC,cAAc,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuBtC,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS;CAqBzC"}
|
package/dist/utils/mobile.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { ref, readonly } from 'vue';
|
2
|
-
import {
|
2
|
+
import { getIsClientSide, debounce } from './utils.js';
|
3
3
|
|
4
4
|
const getIsMobile = () => {
|
5
|
-
return
|
5
|
+
return getIsClientSide() && window.innerWidth < 640;
|
6
6
|
};
|
7
7
|
const getIsTablet = () => {
|
8
|
-
return
|
8
|
+
return getIsClientSide() && window.innerWidth < 1280;
|
9
9
|
};
|
10
10
|
const isMobile = ref(getIsMobile());
|
11
11
|
const isTablet = ref(getIsTablet());
|
@@ -16,9 +16,9 @@ const useIsMobile = () => {
|
|
16
16
|
};
|
17
17
|
};
|
18
18
|
const getIsTouchDevice = () => {
|
19
|
-
return
|
19
|
+
return getIsClientSide() && "ontouchstart" in window || navigator.maxTouchPoints > 0;
|
20
20
|
};
|
21
|
-
if (
|
21
|
+
if (getIsClientSide()) {
|
22
22
|
const listener = debounce(() => {
|
23
23
|
isMobile.value = getIsMobile();
|
24
24
|
isTablet.value = getIsTablet();
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { getIsClientSide } from './utils.js';
|
2
2
|
|
3
3
|
let supportsPassive = false;
|
4
4
|
try {
|
5
|
-
if (
|
5
|
+
if (getIsClientSide()) {
|
6
6
|
window.addEventListener("test", null, Object.defineProperty({}, "passive", {
|
7
7
|
get: function() {
|
8
8
|
supportsPassive = true;
|
package/dist/utils/utils.d.ts
CHANGED
@@ -12,7 +12,7 @@ export declare const percentCompactFormatter: Intl.NumberFormat;
|
|
12
12
|
export declare const percentFormatter: Pick<Intl.NumberFormat, "format">;
|
13
13
|
export declare const numberCompactFormatter: Intl.NumberFormat;
|
14
14
|
export declare const numberFormatter: Pick<Intl.NumberFormat, "format">;
|
15
|
-
export declare const
|
15
|
+
export declare const getIsClientSide: () => boolean;
|
16
16
|
export declare const genId: () => number;
|
17
17
|
export declare const isId: (value: unknown) => value is number;
|
18
18
|
export declare const isIdArray: (value: unknown) => value is number[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,cAAc,EAAE,cAAc,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;AACpG,OAAO,KAAK,EAAC,YAAY,EAAE,KAAK,EAAC,MAAM,KAAK,CAAA;AAc5C,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,KAAG,OAAO,GAAG,IAK7C,CAAA;AAEV,eAAO,MAAM,mBAAmB,GAAI,OAAO,IAAI,EAAE,YAAQ,KAAG,KAAK,CAAC,OAAO,CAaxE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,QAAQ,OAAO,EAAE,SAAS,OAAO,KAAG,OAI7D,CAAA;AAGD,KAAK,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI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,KAAK,EAAE,KAAG,KAAK,EAMjD,CAAA;AAED,eAAO,MAAM,WAAW,EAA4B,YAAY,CAAC,MAAM,CAAC,CAAA;AAExE,eAAO,MAAM,iBAAiB,OAAO,CAAA;AACrC,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAC3C,eAAO,MAAM,uBAAuB,KAAK,CAAA;AACzC,eAAO,MAAM,mBAAmB,KAAK,CAAA;AACrC,eAAO,MAAM,uBAAuB,KAAK,CAAA;AACzC,eAAO,MAAM,sBAAsB,KAAK,CAAA;AACxC,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC,eAAO,MAAM,eAAe,eAAqE,CAAA;AAEjG,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB"}
|
package/dist/utils/utils.js
CHANGED
@@ -61,7 +61,7 @@ const percentCompactFormatter = Intl.NumberFormat("en", { notation: "compact", s
|
|
61
61
|
const percentFormatter = getFormatter(Intl.NumberFormat("en", { maximumFractionDigits: 3, style: "percent" }));
|
62
62
|
const numberCompactFormatter = Intl.NumberFormat("en", { notation: "compact" });
|
63
63
|
const numberFormatter = getFormatter(Intl.NumberFormat("en", { maximumFractionDigits: 3 }));
|
64
|
-
const
|
64
|
+
const getIsClientSide = () => typeof window !== "undefined";
|
65
65
|
let iterator = 1;
|
66
66
|
const genId = () => {
|
67
67
|
return iterator++;
|
@@ -189,4 +189,4 @@ var WrapSelectionType = /* @__PURE__ */ ((WrapSelectionType2) => {
|
|
189
189
|
return WrapSelectionType2;
|
190
190
|
})(WrapSelectionType || {});
|
191
191
|
|
192
|
-
export { BASE_ZINDEX_ACTIONS_BAR, BASE_ZINDEX_BOTTOM_SHEET, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_HEADER_BAR, BASE_ZINDEX_LIST_HEADER, BASE_ZINDEX_MODAL, BASE_ZINDEX_NAV_BAR, ListMode, Theme, WrapSelectionType, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getHasScrollbar, getScrollParent, hasParent,
|
192
|
+
export { BASE_ZINDEX_ACTIONS_BAR, BASE_ZINDEX_BOTTOM_SHEET, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_HEADER_BAR, BASE_ZINDEX_LIST_HEADER, BASE_ZINDEX_MODAL, BASE_ZINDEX_NAV_BAR, ListMode, Theme, WrapSelectionType, debounce, genId, get, getAllScrollParents, getDefaultFieldConfigMap, getHasScrollbar, getIsClientSide, getScrollParent, hasParent, isEqualArr, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatter, parseBoolean, parseId, parseIdList, parseIndex, parseInteger, parseIntegerList, parseJson, parseSliceIndexes, parseString, parseStringList, percentCompactFormatter, percentFormatter, set, throttle, unwrapSlots, wBaseZIndex };
|