@vc-shell/framework 2.0.0-alpha.30 → 2.0.0-alpha.32
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/CHANGELOG.md +30 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CL6FKSZv.js +4255 -0
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CLNfbXjd.js +21113 -0
- package/dist/chunks/{index-BZeKYd8J.js → index-D2HGw9DC.js} +5 -7
- package/dist/chunks/{vendor-lodash-es-BwHYzZ39.js → vendor-lodash-es-BB-IQCna.js} +4 -4
- package/dist/chunks/vendor-sortablejs-Bsvu-FKn.js +1276 -0
- package/dist/chunks/{vendor-swiper-1bp0oJwt.js → vendor-swiper-D1fVhFeH.js} +1150 -810
- package/dist/chunks/{vendor-vueuse-components-C3DWJalC.js → vendor-vueuse-components-DRdTsx6e.js} +1 -1
- package/dist/chunks/vendor-vueuse-core-D4-2M4AW.js +586 -0
- package/dist/chunks/{vendor-vueuse-shared-Byno6iDO.js → vendor-vueuse-shared-PQ04AyOW.js} +3 -3
- package/dist/core/blade-navigation/singletons.d.ts +21 -0
- package/dist/core/blade-navigation/singletons.d.ts.map +1 -0
- package/dist/core/blade-navigation/types/index.d.ts +27 -64
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/{useBladeContext.d.ts → bladeContext/index.d.ts} +1 -1
- package/dist/core/composables/bladeContext/index.d.ts.map +1 -0
- package/dist/core/composables/index.d.ts +1 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeForm/index.d.ts +17 -0
- package/dist/core/composables/useBladeForm/index.d.ts.map +1 -0
- package/dist/core/composables/useBladeForm/types.d.ts +39 -0
- package/dist/core/composables/useBladeForm/types.d.ts.map +1 -0
- package/dist/core/composables/{useBladeWidgets.d.ts → useBladeWidgets/index.d.ts} +3 -3
- package/dist/core/composables/useBladeWidgets/index.d.ts.map +1 -0
- package/dist/core/composables/useBreadcrumbs/index.d.ts +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts +3 -69
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/color.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/color.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/index.d.ts +4 -0
- package/dist/core/composables/useDynamicProperties/strategies/index.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/measure.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/measure.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts +3 -0
- package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/strategies/types.d.ts +16 -0
- package/dist/core/composables/useDynamicProperties/strategies/types.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/types.d.ts +70 -0
- package/dist/core/composables/useDynamicProperties/types.d.ts.map +1 -0
- package/dist/core/composables/useDynamicProperties/utils.d.ts +10 -0
- package/dist/core/composables/useDynamicProperties/utils.d.ts.map +1 -0
- package/dist/core/composables/useExternalProvider/index.d.ts +12 -0
- package/dist/core/composables/useExternalProvider/index.d.ts.map +1 -0
- package/dist/core/composables/{useMenuExpanded.d.ts → useMenuExpanded/index.d.ts} +1 -1
- package/dist/core/composables/useMenuExpanded/index.d.ts.map +1 -0
- package/dist/core/composables/usePopup/index.d.ts +3 -5
- package/dist/core/composables/usePopup/index.d.ts.map +1 -1
- package/dist/core/composables/usePopup/keys.d.ts +4 -0
- package/dist/core/composables/usePopup/keys.d.ts.map +1 -0
- package/dist/core/composables/usePopup/preset-registry.d.ts +7 -0
- package/dist/core/composables/usePopup/preset-registry.d.ts.map +1 -0
- package/dist/core/composables/usePopup/singleton.d.ts +6 -0
- package/dist/core/composables/usePopup/singleton.d.ts.map +1 -0
- package/dist/core/composables/usePopup/types.d.ts +22 -0
- package/dist/core/composables/usePopup/types.d.ts.map +1 -0
- package/dist/core/composables/useTheme/index.d.ts.map +1 -1
- package/dist/core/notifications/notification.d.ts +19 -0
- package/dist/core/notifications/notification.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts.map +1 -1
- package/dist/core/types/breadcrumbs.d.ts +8 -0
- package/dist/core/types/breadcrumbs.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +2 -14
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/utilities/assets.d.ts +3 -2
- package/dist/core/utilities/assets.d.ts.map +1 -1
- package/dist/core/utilities/index.d.ts +1 -0
- package/dist/core/utilities/index.d.ts.map +1 -1
- package/dist/core/utilities/thumbnail/index.d.ts +42 -0
- package/dist/core/utilities/thumbnail/index.d.ts.map +1 -0
- package/dist/framework.js +3618 -2531
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -6
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.js +8 -2
- package/dist/locales/en.js +8 -2
- package/dist/locales/en.json +8 -2
- package/dist/locales/types.d.ts +6 -0
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts +1 -12
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts +4 -4
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/register-backend.d.ts +6 -0
- package/dist/shell/_internal/notifications/register-backend.d.ts.map +1 -0
- package/dist/shell/_internal/popup/keys.d.ts +1 -3
- package/dist/shell/_internal/popup/keys.d.ts.map +1 -1
- package/dist/shell/_internal/popup/plugin.d.ts +1 -2
- package/dist/shell/_internal/popup/plugin.d.ts.map +1 -1
- package/dist/shell/_internal/popup/register-presets.d.ts +6 -0
- package/dist/shell/_internal/popup/register-presets.d.ts.map +1 -0
- package/dist/shell/_internal/popup/types/index.d.ts +1 -21
- package/dist/shell/_internal/popup/types/index.d.ts.map +1 -1
- package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/components/change-password/index.d.ts +3 -0
- package/dist/shell/auth/ChangePasswordPage/components/change-password/index.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/components/index.d.ts +2 -0
- package/dist/shell/auth/ChangePasswordPage/components/index.d.ts.map +1 -0
- package/dist/shell/auth/ChangePasswordPage/index.d.ts +2 -0
- package/dist/shell/auth/ChangePasswordPage/index.d.ts.map +1 -0
- package/dist/shell/auth/index.d.ts +1 -0
- package/dist/shell/auth/index.d.ts.map +1 -1
- package/dist/shell/auth/sign-in/useExternalProvider.d.ts +2 -11
- package/dist/shell/auth/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +2 -21
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts +3 -0
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/DataTableCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts +2 -0
- package/dist/ui/components/organisms/vc-data-table/components/TableColumnSwitcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/_internal/TableSkeletonRows.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellDefault.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellDefault.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellImage.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellMoney.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellMoney.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellNumber.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellNumber.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/DynamicCellRenderer.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/cells/DynamicCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileCellRenderer.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +1 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +1 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +12 -2
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +39 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryFilmstrip.d.ts +16 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryFilmstrip.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts +4 -9
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +20 -5
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/index.js +136 -138
- package/dist/ui/types/index.d.ts +1 -7
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/ui/utilities/index.d.ts +1 -1
- package/dist/ui/utilities/index.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D3sixNg-.js +0 -6553
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CR4ei-0r.js +0 -19264
- package/dist/chunks/index-BzpX90RF.js +0 -181
- package/dist/chunks/vc-toast.vue_vue_type_style_index_0_lang-DsKZR5xz.js +0 -175
- package/dist/chunks/vendor-vueuse-core-CPOkeLul.js +0 -530
- package/dist/core/composables/useBladeContext.d.ts.map +0 -1
- package/dist/core/composables/useBladeWidgets.d.ts.map +0 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts +0 -5
- package/dist/core/composables/useGlobalSearch/index.d.ts.map +0 -1
- package/dist/core/composables/useMenuExpanded.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/change-password/index.d.ts +0 -3
- package/dist/shell/pages/ChangePasswordPage/components/change-password/index.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/components/index.d.ts +0 -2
- package/dist/shell/pages/ChangePasswordPage/components/index.d.ts.map +0 -1
- package/dist/shell/pages/ChangePasswordPage/index.d.ts +0 -2
- package/dist/shell/pages/ChangePasswordPage/index.d.ts.map +0 -1
- package/dist/shell/pages/index.d.ts +0 -2
- package/dist/shell/pages/index.d.ts.map +0 -1
- package/dist/ui/utilities/vueUtils.d.ts +0 -34
- package/dist/ui/utilities/vueUtils.d.ts.map +0 -1
- /package/dist/shell/{pages → auth}/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts +0 -0
package/dist/chunks/{vendor-vueuse-components-C3DWJalC.js → vendor-vueuse-components-DRdTsx6e.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watch as M, defineComponent as N, ref as x, h as j, computed as I } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { h as b, a as D, f as T, i as B, t as O, e as X, b as R, d as V } from "./vendor-vueuse-shared-PQ04AyOW.js";
|
|
3
3
|
function L(t) {
|
|
4
4
|
var n;
|
|
5
5
|
const e = O(t);
|
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
import { t as A, n as X, a as B, b as I, i as Z, c as q, d as J, w as ee, e as te, f as U, g as ne } from "./vendor-vueuse-shared-PQ04AyOW.js";
|
|
2
|
+
import { computed as D, ref as S, watch as R, getCurrentInstance as re, onMounted as oe, shallowRef as Y, watchEffect as ie, nextTick as ae } from "vue";
|
|
3
|
+
function M(e) {
|
|
4
|
+
var o;
|
|
5
|
+
const t = A(e);
|
|
6
|
+
return (o = t?.$el) != null ? o : t;
|
|
7
|
+
}
|
|
8
|
+
const C = Z ? window : void 0;
|
|
9
|
+
function k(...e) {
|
|
10
|
+
let o, t, s, i;
|
|
11
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, s, i] = e, o = C) : [o, t, s, i] = e, !o)
|
|
12
|
+
return B;
|
|
13
|
+
Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
|
|
14
|
+
const l = [], u = () => {
|
|
15
|
+
l.forEach((n) => n()), l.length = 0;
|
|
16
|
+
}, a = (n, r, c, v) => (n.addEventListener(r, c, v), () => n.removeEventListener(r, c, v)), p = R(
|
|
17
|
+
() => [M(o), A(i)],
|
|
18
|
+
([n, r]) => {
|
|
19
|
+
if (u(), !n)
|
|
20
|
+
return;
|
|
21
|
+
const c = te(r) ? { ...r } : r;
|
|
22
|
+
l.push(
|
|
23
|
+
...t.flatMap((v) => s.map((m) => a(n, v, m, c)))
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
{ immediate: !0, flush: "post" }
|
|
27
|
+
), f = () => {
|
|
28
|
+
p(), u();
|
|
29
|
+
};
|
|
30
|
+
return I(f), f;
|
|
31
|
+
}
|
|
32
|
+
const le = 500, ue = 10;
|
|
33
|
+
function ye(e, o, t) {
|
|
34
|
+
var s, i;
|
|
35
|
+
const l = D(() => M(e));
|
|
36
|
+
let u, a, p, f = !1;
|
|
37
|
+
function n() {
|
|
38
|
+
u && (clearTimeout(u), u = void 0), a = void 0, p = void 0, f = !1;
|
|
39
|
+
}
|
|
40
|
+
function r(h) {
|
|
41
|
+
var y, E, w;
|
|
42
|
+
const [b, L, T] = [p, a, f];
|
|
43
|
+
if (n(), !t?.onMouseUp || !L || !b || (y = t?.modifiers) != null && y.self && h.target !== l.value)
|
|
44
|
+
return;
|
|
45
|
+
(E = t?.modifiers) != null && E.prevent && h.preventDefault(), (w = t?.modifiers) != null && w.stop && h.stopPropagation();
|
|
46
|
+
const x = h.x - L.x, W = h.y - L.y, d = Math.sqrt(x * x + W * W);
|
|
47
|
+
t.onMouseUp(h.timeStamp - b, d, T);
|
|
48
|
+
}
|
|
49
|
+
function c(h) {
|
|
50
|
+
var y, E, w, b;
|
|
51
|
+
(y = t?.modifiers) != null && y.self && h.target !== l.value || (n(), (E = t?.modifiers) != null && E.prevent && h.preventDefault(), (w = t?.modifiers) != null && w.stop && h.stopPropagation(), a = {
|
|
52
|
+
x: h.x,
|
|
53
|
+
y: h.y
|
|
54
|
+
}, p = h.timeStamp, u = setTimeout(
|
|
55
|
+
() => {
|
|
56
|
+
f = !0, o(h);
|
|
57
|
+
},
|
|
58
|
+
(b = t?.delay) != null ? b : le
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
function v(h) {
|
|
62
|
+
var y, E, w, b;
|
|
63
|
+
if ((y = t?.modifiers) != null && y.self && h.target !== l.value || !a || t?.distanceThreshold === !1)
|
|
64
|
+
return;
|
|
65
|
+
(E = t?.modifiers) != null && E.prevent && h.preventDefault(), (w = t?.modifiers) != null && w.stop && h.stopPropagation();
|
|
66
|
+
const L = h.x - a.x, T = h.y - a.y;
|
|
67
|
+
Math.sqrt(L * L + T * T) >= ((b = t?.distanceThreshold) != null ? b : ue) && n();
|
|
68
|
+
}
|
|
69
|
+
const m = {
|
|
70
|
+
capture: (s = t?.modifiers) == null ? void 0 : s.capture,
|
|
71
|
+
once: (i = t?.modifiers) == null ? void 0 : i.once
|
|
72
|
+
}, g = [
|
|
73
|
+
k(l, "pointerdown", c, m),
|
|
74
|
+
k(l, "pointermove", v, m),
|
|
75
|
+
k(l, ["pointerup", "pointerleave"], r, m)
|
|
76
|
+
];
|
|
77
|
+
return () => g.forEach((h) => h());
|
|
78
|
+
}
|
|
79
|
+
function se() {
|
|
80
|
+
const e = S(!1), o = re();
|
|
81
|
+
return o && oe(() => {
|
|
82
|
+
e.value = !0;
|
|
83
|
+
}, o), e;
|
|
84
|
+
}
|
|
85
|
+
function H(e) {
|
|
86
|
+
const o = se();
|
|
87
|
+
return D(() => (o.value, !!e()));
|
|
88
|
+
}
|
|
89
|
+
function $(e, o = {}) {
|
|
90
|
+
const { window: t = C } = o, s = H(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
91
|
+
let i;
|
|
92
|
+
const l = S(!1), u = (f) => {
|
|
93
|
+
l.value = f.matches;
|
|
94
|
+
}, a = () => {
|
|
95
|
+
i && ("removeEventListener" in i ? i.removeEventListener("change", u) : i.removeListener(u));
|
|
96
|
+
}, p = ie(() => {
|
|
97
|
+
s.value && (a(), i = t.matchMedia(A(e)), "addEventListener" in i ? i.addEventListener("change", u) : i.addListener(u), l.value = i.matches);
|
|
98
|
+
});
|
|
99
|
+
return I(() => {
|
|
100
|
+
p(), a(), i = void 0;
|
|
101
|
+
}), l;
|
|
102
|
+
}
|
|
103
|
+
function be(e, o = {}) {
|
|
104
|
+
function t(n, r) {
|
|
105
|
+
let c = A(e[A(n)]);
|
|
106
|
+
return r != null && (c = ne(c, r)), typeof c == "number" && (c = `${c}px`), c;
|
|
107
|
+
}
|
|
108
|
+
const { window: s = C, strategy: i = "min-width" } = o;
|
|
109
|
+
function l(n) {
|
|
110
|
+
return s ? s.matchMedia(n).matches : !1;
|
|
111
|
+
}
|
|
112
|
+
const u = (n) => $(() => `(min-width: ${t(n)})`, o), a = (n) => $(() => `(max-width: ${t(n)})`, o), p = Object.keys(e).reduce((n, r) => (Object.defineProperty(n, r, {
|
|
113
|
+
get: () => i === "min-width" ? u(r) : a(r),
|
|
114
|
+
enumerable: !0,
|
|
115
|
+
configurable: !0
|
|
116
|
+
}), n), {});
|
|
117
|
+
function f() {
|
|
118
|
+
const n = Object.keys(e).map((r) => [r, u(r)]);
|
|
119
|
+
return D(() => n.filter(([, r]) => r.value).map(([r]) => r));
|
|
120
|
+
}
|
|
121
|
+
return Object.assign(p, {
|
|
122
|
+
greaterOrEqual: u,
|
|
123
|
+
smallerOrEqual: a,
|
|
124
|
+
greater(n) {
|
|
125
|
+
return $(() => `(min-width: ${t(n, 0.1)})`, o);
|
|
126
|
+
},
|
|
127
|
+
smaller(n) {
|
|
128
|
+
return $(() => `(max-width: ${t(n, -0.1)})`, o);
|
|
129
|
+
},
|
|
130
|
+
between(n, r) {
|
|
131
|
+
return $(() => `(min-width: ${t(n)}) and (max-width: ${t(r, -0.1)})`, o);
|
|
132
|
+
},
|
|
133
|
+
isGreater(n) {
|
|
134
|
+
return l(`(min-width: ${t(n, 0.1)})`);
|
|
135
|
+
},
|
|
136
|
+
isGreaterOrEqual(n) {
|
|
137
|
+
return l(`(min-width: ${t(n)})`);
|
|
138
|
+
},
|
|
139
|
+
isSmaller(n) {
|
|
140
|
+
return l(`(max-width: ${t(n, -0.1)})`);
|
|
141
|
+
},
|
|
142
|
+
isSmallerOrEqual(n) {
|
|
143
|
+
return l(`(max-width: ${t(n)})`);
|
|
144
|
+
},
|
|
145
|
+
isInBetween(n, r) {
|
|
146
|
+
return l(`(min-width: ${t(n)}) and (max-width: ${t(r, -0.1)})`);
|
|
147
|
+
},
|
|
148
|
+
current: f,
|
|
149
|
+
active() {
|
|
150
|
+
const n = f();
|
|
151
|
+
return D(() => n.value.length === 0 ? "" : n.value.at(-1));
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, z = "__vueuse_ssr_handlers__", ce = /* @__PURE__ */ fe();
|
|
156
|
+
function fe() {
|
|
157
|
+
return z in j || (j[z] = j[z] || {}), j[z];
|
|
158
|
+
}
|
|
159
|
+
function G(e, o) {
|
|
160
|
+
return ce[e] || o;
|
|
161
|
+
}
|
|
162
|
+
function de(e) {
|
|
163
|
+
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
164
|
+
}
|
|
165
|
+
const ve = {
|
|
166
|
+
boolean: {
|
|
167
|
+
read: (e) => e === "true",
|
|
168
|
+
write: (e) => String(e)
|
|
169
|
+
},
|
|
170
|
+
object: {
|
|
171
|
+
read: (e) => JSON.parse(e),
|
|
172
|
+
write: (e) => JSON.stringify(e)
|
|
173
|
+
},
|
|
174
|
+
number: {
|
|
175
|
+
read: (e) => Number.parseFloat(e),
|
|
176
|
+
write: (e) => String(e)
|
|
177
|
+
},
|
|
178
|
+
any: {
|
|
179
|
+
read: (e) => e,
|
|
180
|
+
write: (e) => String(e)
|
|
181
|
+
},
|
|
182
|
+
string: {
|
|
183
|
+
read: (e) => e,
|
|
184
|
+
write: (e) => String(e)
|
|
185
|
+
},
|
|
186
|
+
map: {
|
|
187
|
+
read: (e) => new Map(JSON.parse(e)),
|
|
188
|
+
write: (e) => JSON.stringify(Array.from(e.entries()))
|
|
189
|
+
},
|
|
190
|
+
set: {
|
|
191
|
+
read: (e) => new Set(JSON.parse(e)),
|
|
192
|
+
write: (e) => JSON.stringify(Array.from(e))
|
|
193
|
+
},
|
|
194
|
+
date: {
|
|
195
|
+
read: (e) => new Date(e),
|
|
196
|
+
write: (e) => e.toISOString()
|
|
197
|
+
}
|
|
198
|
+
}, F = "vueuse-storage";
|
|
199
|
+
function K(e, o, t, s = {}) {
|
|
200
|
+
var i;
|
|
201
|
+
const {
|
|
202
|
+
flush: l = "pre",
|
|
203
|
+
deep: u = !0,
|
|
204
|
+
listenToStorageChanges: a = !0,
|
|
205
|
+
writeDefaults: p = !0,
|
|
206
|
+
mergeDefaults: f = !1,
|
|
207
|
+
shallow: n,
|
|
208
|
+
window: r = C,
|
|
209
|
+
eventFilter: c,
|
|
210
|
+
onError: v = (d) => {
|
|
211
|
+
console.error(d);
|
|
212
|
+
},
|
|
213
|
+
initOnMounted: m
|
|
214
|
+
} = s, g = (n ? Y : S)(typeof o == "function" ? o() : o);
|
|
215
|
+
if (!t)
|
|
216
|
+
try {
|
|
217
|
+
t = G("getDefaultStorage", () => {
|
|
218
|
+
var d;
|
|
219
|
+
return (d = C) == null ? void 0 : d.localStorage;
|
|
220
|
+
})();
|
|
221
|
+
} catch (d) {
|
|
222
|
+
v(d);
|
|
223
|
+
}
|
|
224
|
+
if (!t)
|
|
225
|
+
return g;
|
|
226
|
+
const _ = A(o), h = de(_), y = (i = s.serializer) != null ? i : ve[h], { pause: E, resume: w } = ee(
|
|
227
|
+
g,
|
|
228
|
+
() => L(g.value),
|
|
229
|
+
{ flush: l, deep: u, eventFilter: c }
|
|
230
|
+
);
|
|
231
|
+
r && a && q(() => {
|
|
232
|
+
k(r, "storage", x), k(r, F, W), m && x();
|
|
233
|
+
}), m || x();
|
|
234
|
+
function b(d, O) {
|
|
235
|
+
r && r.dispatchEvent(new CustomEvent(F, {
|
|
236
|
+
detail: {
|
|
237
|
+
key: e,
|
|
238
|
+
oldValue: d,
|
|
239
|
+
newValue: O,
|
|
240
|
+
storageArea: t
|
|
241
|
+
}
|
|
242
|
+
}));
|
|
243
|
+
}
|
|
244
|
+
function L(d) {
|
|
245
|
+
try {
|
|
246
|
+
const O = t.getItem(e);
|
|
247
|
+
if (d == null)
|
|
248
|
+
b(O, null), t.removeItem(e);
|
|
249
|
+
else {
|
|
250
|
+
const N = y.write(d);
|
|
251
|
+
O !== N && (t.setItem(e, N), b(O, N));
|
|
252
|
+
}
|
|
253
|
+
} catch (O) {
|
|
254
|
+
v(O);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
function T(d) {
|
|
258
|
+
const O = d ? d.newValue : t.getItem(e);
|
|
259
|
+
if (O == null)
|
|
260
|
+
return p && _ != null && t.setItem(e, y.write(_)), _;
|
|
261
|
+
if (!d && f) {
|
|
262
|
+
const N = y.read(O);
|
|
263
|
+
return typeof f == "function" ? f(N, _) : h === "object" && !Array.isArray(N) ? { ..._, ...N } : N;
|
|
264
|
+
} else return typeof O != "string" ? O : y.read(O);
|
|
265
|
+
}
|
|
266
|
+
function x(d) {
|
|
267
|
+
if (!(d && d.storageArea !== t)) {
|
|
268
|
+
if (d && d.key == null) {
|
|
269
|
+
g.value = _;
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
if (!(d && d.key !== e)) {
|
|
273
|
+
E();
|
|
274
|
+
try {
|
|
275
|
+
d?.newValue !== y.write(g.value) && (g.value = T(d));
|
|
276
|
+
} catch (O) {
|
|
277
|
+
v(O);
|
|
278
|
+
} finally {
|
|
279
|
+
d ? ae(w) : w();
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
function W(d) {
|
|
285
|
+
x(d.detail);
|
|
286
|
+
}
|
|
287
|
+
return g;
|
|
288
|
+
}
|
|
289
|
+
function me(e) {
|
|
290
|
+
return $("(prefers-color-scheme: dark)", e);
|
|
291
|
+
}
|
|
292
|
+
function Se(e = {}) {
|
|
293
|
+
const {
|
|
294
|
+
selector: o = "html",
|
|
295
|
+
attribute: t = "class",
|
|
296
|
+
initialValue: s = "auto",
|
|
297
|
+
window: i = C,
|
|
298
|
+
storage: l,
|
|
299
|
+
storageKey: u = "vueuse-color-scheme",
|
|
300
|
+
listenToStorageChanges: a = !0,
|
|
301
|
+
storageRef: p,
|
|
302
|
+
emitAuto: f,
|
|
303
|
+
disableTransition: n = !0
|
|
304
|
+
} = e, r = {
|
|
305
|
+
auto: "",
|
|
306
|
+
light: "light",
|
|
307
|
+
dark: "dark",
|
|
308
|
+
...e.modes || {}
|
|
309
|
+
}, c = me({ window: i }), v = D(() => c.value ? "dark" : "light"), m = p || (u == null ? J(s) : K(u, s, l, { window: i, listenToStorageChanges: a })), g = D(() => m.value === "auto" ? v.value : m.value), _ = G(
|
|
310
|
+
"updateHTMLAttrs",
|
|
311
|
+
(w, b, L) => {
|
|
312
|
+
const T = typeof w == "string" ? i?.document.querySelector(w) : M(w);
|
|
313
|
+
if (!T)
|
|
314
|
+
return;
|
|
315
|
+
let x;
|
|
316
|
+
if (n && (x = i.document.createElement("style"), x.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), i.document.head.appendChild(x)), b === "class") {
|
|
317
|
+
const W = L.split(/\s/g);
|
|
318
|
+
Object.values(r).flatMap((d) => (d || "").split(/\s/g)).filter(Boolean).forEach((d) => {
|
|
319
|
+
W.includes(d) ? T.classList.add(d) : T.classList.remove(d);
|
|
320
|
+
});
|
|
321
|
+
} else
|
|
322
|
+
T.setAttribute(b, L);
|
|
323
|
+
n && (i.getComputedStyle(x).opacity, document.head.removeChild(x));
|
|
324
|
+
}
|
|
325
|
+
);
|
|
326
|
+
function h(w) {
|
|
327
|
+
var b;
|
|
328
|
+
_(o, t, (b = r[w]) != null ? b : w);
|
|
329
|
+
}
|
|
330
|
+
function y(w) {
|
|
331
|
+
e.onChanged ? e.onChanged(w, h) : h(w);
|
|
332
|
+
}
|
|
333
|
+
R(g, y, { flush: "post", immediate: !0 }), q(() => y(g.value));
|
|
334
|
+
const E = D({
|
|
335
|
+
get() {
|
|
336
|
+
return f ? m.value : g.value;
|
|
337
|
+
},
|
|
338
|
+
set(w) {
|
|
339
|
+
m.value = w;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
try {
|
|
343
|
+
return Object.assign(E, { store: m, system: v, state: g });
|
|
344
|
+
} catch {
|
|
345
|
+
return E;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
function Oe(e, o) {
|
|
349
|
+
const t = Y(f()), s = J(e), i = D({
|
|
350
|
+
get() {
|
|
351
|
+
var n;
|
|
352
|
+
const r = s.value;
|
|
353
|
+
let c = o?.getIndexOf ? o.getIndexOf(t.value, r) : r.indexOf(t.value);
|
|
354
|
+
return c < 0 && (c = (n = o?.fallbackIndex) != null ? n : 0), c;
|
|
355
|
+
},
|
|
356
|
+
set(n) {
|
|
357
|
+
l(n);
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
function l(n) {
|
|
361
|
+
const r = s.value, c = r.length, v = (n % c + c) % c, m = r[v];
|
|
362
|
+
return t.value = m, m;
|
|
363
|
+
}
|
|
364
|
+
function u(n = 1) {
|
|
365
|
+
return l(i.value + n);
|
|
366
|
+
}
|
|
367
|
+
function a(n = 1) {
|
|
368
|
+
return u(n);
|
|
369
|
+
}
|
|
370
|
+
function p(n = 1) {
|
|
371
|
+
return u(-n);
|
|
372
|
+
}
|
|
373
|
+
function f() {
|
|
374
|
+
var n, r;
|
|
375
|
+
return (r = A((n = o?.initialValue) != null ? n : A(e)[0])) != null ? r : void 0;
|
|
376
|
+
}
|
|
377
|
+
return R(s, () => l(i.value)), {
|
|
378
|
+
state: t,
|
|
379
|
+
index: i,
|
|
380
|
+
next: a,
|
|
381
|
+
prev: p,
|
|
382
|
+
go: l
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
function he(e, o, t = {}) {
|
|
386
|
+
const { window: s = C, ...i } = t;
|
|
387
|
+
let l;
|
|
388
|
+
const u = H(() => s && "ResizeObserver" in s), a = () => {
|
|
389
|
+
l && (l.disconnect(), l = void 0);
|
|
390
|
+
}, p = D(() => Array.isArray(e) ? e.map((r) => M(r)) : [M(e)]), f = R(
|
|
391
|
+
p,
|
|
392
|
+
(r) => {
|
|
393
|
+
if (a(), u.value && s) {
|
|
394
|
+
l = new ResizeObserver(o);
|
|
395
|
+
for (const c of r)
|
|
396
|
+
c && l.observe(c, i);
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{ immediate: !0, flush: "post" }
|
|
400
|
+
), n = () => {
|
|
401
|
+
a(), f();
|
|
402
|
+
};
|
|
403
|
+
return I(n), {
|
|
404
|
+
isSupported: u,
|
|
405
|
+
stop: n
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
function xe(e, o = { width: 0, height: 0 }, t = {}) {
|
|
409
|
+
const { window: s = C, box: i = "content-box" } = t, l = D(() => {
|
|
410
|
+
var r, c;
|
|
411
|
+
return (c = (r = M(e)) == null ? void 0 : r.namespaceURI) == null ? void 0 : c.includes("svg");
|
|
412
|
+
}), u = S(o.width), a = S(o.height), { stop: p } = he(
|
|
413
|
+
e,
|
|
414
|
+
([r]) => {
|
|
415
|
+
const c = i === "border-box" ? r.borderBoxSize : i === "content-box" ? r.contentBoxSize : r.devicePixelContentBoxSize;
|
|
416
|
+
if (s && l.value) {
|
|
417
|
+
const v = M(e);
|
|
418
|
+
if (v) {
|
|
419
|
+
const m = v.getBoundingClientRect();
|
|
420
|
+
u.value = m.width, a.value = m.height;
|
|
421
|
+
}
|
|
422
|
+
} else if (c) {
|
|
423
|
+
const v = Array.isArray(c) ? c : [c];
|
|
424
|
+
u.value = v.reduce((m, { inlineSize: g }) => m + g, 0), a.value = v.reduce((m, { blockSize: g }) => m + g, 0);
|
|
425
|
+
} else
|
|
426
|
+
u.value = r.contentRect.width, a.value = r.contentRect.height;
|
|
427
|
+
},
|
|
428
|
+
t
|
|
429
|
+
);
|
|
430
|
+
q(() => {
|
|
431
|
+
const r = M(e);
|
|
432
|
+
r && (u.value = "offsetWidth" in r ? r.offsetWidth : o.width, a.value = "offsetHeight" in r ? r.offsetHeight : o.height);
|
|
433
|
+
});
|
|
434
|
+
const f = R(
|
|
435
|
+
() => M(e),
|
|
436
|
+
(r) => {
|
|
437
|
+
u.value = r ? o.width : 0, a.value = r ? o.height : 0;
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
function n() {
|
|
441
|
+
p(), f();
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
width: u,
|
|
445
|
+
height: a,
|
|
446
|
+
stop: n
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
function _e(e, o, t = {}) {
|
|
450
|
+
const {
|
|
451
|
+
root: s,
|
|
452
|
+
rootMargin: i = "0px",
|
|
453
|
+
threshold: l = 0.1,
|
|
454
|
+
window: u = C,
|
|
455
|
+
immediate: a = !0
|
|
456
|
+
} = t, p = H(() => u && "IntersectionObserver" in u), f = D(() => {
|
|
457
|
+
const m = A(e);
|
|
458
|
+
return (Array.isArray(m) ? m : [m]).map(M).filter(X);
|
|
459
|
+
});
|
|
460
|
+
let n = B;
|
|
461
|
+
const r = S(a), c = p.value ? R(
|
|
462
|
+
() => [f.value, M(s), r.value],
|
|
463
|
+
([m, g]) => {
|
|
464
|
+
if (n(), !r.value || !m.length)
|
|
465
|
+
return;
|
|
466
|
+
const _ = new IntersectionObserver(
|
|
467
|
+
o,
|
|
468
|
+
{
|
|
469
|
+
root: M(g),
|
|
470
|
+
rootMargin: i,
|
|
471
|
+
threshold: l
|
|
472
|
+
}
|
|
473
|
+
);
|
|
474
|
+
m.forEach((h) => h && _.observe(h)), n = () => {
|
|
475
|
+
_.disconnect(), n = B;
|
|
476
|
+
};
|
|
477
|
+
},
|
|
478
|
+
{ immediate: a, flush: "post" }
|
|
479
|
+
) : B, v = () => {
|
|
480
|
+
n(), c(), r.value = !1;
|
|
481
|
+
};
|
|
482
|
+
return I(v), {
|
|
483
|
+
isSupported: p,
|
|
484
|
+
isActive: r,
|
|
485
|
+
pause() {
|
|
486
|
+
n(), r.value = !1;
|
|
487
|
+
},
|
|
488
|
+
resume() {
|
|
489
|
+
r.value = !0;
|
|
490
|
+
},
|
|
491
|
+
stop: v
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
function P(e) {
|
|
495
|
+
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
496
|
+
}
|
|
497
|
+
function Ee(e, o, t = {}) {
|
|
498
|
+
const { window: s = C } = t;
|
|
499
|
+
return K(e, o, s?.localStorage, t);
|
|
500
|
+
}
|
|
501
|
+
function Me(e = {}) {
|
|
502
|
+
const { window: o = C } = e, t = o?.navigator, s = H(() => t && "connection" in t), i = S(!0), l = S(!1), u = S(void 0), a = S(void 0), p = S(void 0), f = S(void 0), n = S(void 0), r = S(void 0), c = S("unknown"), v = s.value && t.connection;
|
|
503
|
+
function m() {
|
|
504
|
+
t && (i.value = t.onLine, u.value = i.value ? void 0 : Date.now(), a.value = i.value ? Date.now() : void 0, v && (p.value = v.downlink, f.value = v.downlinkMax, r.value = v.effectiveType, n.value = v.rtt, l.value = v.saveData, c.value = v.type));
|
|
505
|
+
}
|
|
506
|
+
return o && (k(o, "offline", () => {
|
|
507
|
+
i.value = !1, u.value = Date.now();
|
|
508
|
+
}), k(o, "online", () => {
|
|
509
|
+
i.value = !0, a.value = Date.now();
|
|
510
|
+
})), v && k(v, "change", m, !1), m(), {
|
|
511
|
+
isSupported: s,
|
|
512
|
+
isOnline: i,
|
|
513
|
+
saveData: l,
|
|
514
|
+
offlineAt: u,
|
|
515
|
+
onlineAt: a,
|
|
516
|
+
downlink: p,
|
|
517
|
+
downlinkMax: f,
|
|
518
|
+
effectiveType: r,
|
|
519
|
+
rtt: n,
|
|
520
|
+
type: c
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
function Q(e) {
|
|
524
|
+
const o = window.getComputedStyle(e);
|
|
525
|
+
if (o.overflowX === "scroll" || o.overflowY === "scroll" || o.overflowX === "auto" && e.clientWidth < e.scrollWidth || o.overflowY === "auto" && e.clientHeight < e.scrollHeight)
|
|
526
|
+
return !0;
|
|
527
|
+
{
|
|
528
|
+
const t = e.parentNode;
|
|
529
|
+
return !t || t.tagName === "BODY" ? !1 : Q(t);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
function pe(e) {
|
|
533
|
+
const o = e || window.event, t = o.target;
|
|
534
|
+
return Q(t) ? !1 : o.touches.length > 1 ? !0 : (o.preventDefault && o.preventDefault(), !1);
|
|
535
|
+
}
|
|
536
|
+
const V = /* @__PURE__ */ new WeakMap();
|
|
537
|
+
function Ae(e, o = !1) {
|
|
538
|
+
const t = S(o);
|
|
539
|
+
let s = null, i = "";
|
|
540
|
+
R(J(e), (a) => {
|
|
541
|
+
const p = P(A(a));
|
|
542
|
+
if (p) {
|
|
543
|
+
const f = p;
|
|
544
|
+
if (V.get(f) || V.set(f, f.style.overflow), f.style.overflow !== "hidden" && (i = f.style.overflow), f.style.overflow === "hidden")
|
|
545
|
+
return t.value = !0;
|
|
546
|
+
if (t.value)
|
|
547
|
+
return f.style.overflow = "hidden";
|
|
548
|
+
}
|
|
549
|
+
}, {
|
|
550
|
+
immediate: !0
|
|
551
|
+
});
|
|
552
|
+
const l = () => {
|
|
553
|
+
const a = P(A(e));
|
|
554
|
+
!a || t.value || (U && (s = k(
|
|
555
|
+
a,
|
|
556
|
+
"touchmove",
|
|
557
|
+
(p) => {
|
|
558
|
+
pe(p);
|
|
559
|
+
},
|
|
560
|
+
{ passive: !1 }
|
|
561
|
+
)), a.style.overflow = "hidden", t.value = !0);
|
|
562
|
+
}, u = () => {
|
|
563
|
+
const a = P(A(e));
|
|
564
|
+
!a || !t.value || (U && s?.(), a.style.overflow = i, V.delete(a), t.value = !1);
|
|
565
|
+
};
|
|
566
|
+
return I(u), D({
|
|
567
|
+
get() {
|
|
568
|
+
return t.value;
|
|
569
|
+
},
|
|
570
|
+
set(a) {
|
|
571
|
+
a ? l() : u();
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
export {
|
|
576
|
+
Me as a,
|
|
577
|
+
be as b,
|
|
578
|
+
he as c,
|
|
579
|
+
xe as d,
|
|
580
|
+
_e as e,
|
|
581
|
+
Se as f,
|
|
582
|
+
Oe as g,
|
|
583
|
+
Ae as h,
|
|
584
|
+
ye as o,
|
|
585
|
+
Ee as u
|
|
586
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IBladeStack, IBladeMessaging, BladeNavigationPlugin } from "../blade-navigation/types";
|
|
2
|
+
import type { IBladeRegistry } from "../composables/useBladeRegistry";
|
|
3
|
+
/**
|
|
4
|
+
* Module-level singletons — accessible without inject().
|
|
5
|
+
* Shell's blade-navigation plugin calls the setters during install().
|
|
6
|
+
* Core composables (useBlade, useBladeNavigationAdapter) read via exported variables.
|
|
7
|
+
*
|
|
8
|
+
* Limitation: only one Vue app per JS context is supported.
|
|
9
|
+
* Call _resetBladeNavigationSingletons() in test teardown.
|
|
10
|
+
*/
|
|
11
|
+
export declare let bladeNavigationInstance: BladeNavigationPlugin | undefined;
|
|
12
|
+
export declare let bladeStackInstance: IBladeStack | undefined;
|
|
13
|
+
export declare let bladeMessagingInstance: IBladeMessaging | undefined;
|
|
14
|
+
export declare let bladeRegistryInstance: IBladeRegistry | undefined;
|
|
15
|
+
export declare function setBladeNavigationInstance(instance: BladeNavigationPlugin): void;
|
|
16
|
+
export declare function setBladeStackInstance(instance: IBladeStack): void;
|
|
17
|
+
export declare function setBladeMessagingInstance(instance: IBladeMessaging): void;
|
|
18
|
+
export declare function setBladeRegistryInstance(instance: IBladeRegistry): void;
|
|
19
|
+
/** @internal Test teardown only */
|
|
20
|
+
export declare function _resetBladeNavigationSingletons(): void;
|
|
21
|
+
//# sourceMappingURL=singletons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"singletons.d.ts","sourceRoot":"","sources":["../../../core/blade-navigation/singletons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACxG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE;;;;;;;GAOG;AAEH,eAAO,IAAI,uBAAuB,EAAE,qBAAqB,GAAG,SAAS,CAAC;AACtE,eAAO,IAAI,kBAAkB,EAAE,WAAW,GAAG,SAAS,CAAC;AACvD,eAAO,IAAI,sBAAsB,EAAE,eAAe,GAAG,SAAS,CAAC;AAC/D,eAAO,IAAI,qBAAqB,EAAE,cAAc,GAAG,SAAS,CAAC;AAE7D,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAEhF;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI,CAEjE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAEzE;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAEvE;AAED,mCAAmC;AACnC,wBAAgB,+BAA+B,IAAI,IAAI,CAKtD"}
|