@bitrix24/b24ui-nuxt 2.1.17 → 2.2.1
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/meta.d.mts +632 -11
- package/dist/meta.mjs +632 -11
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/ScrollArea.d.vue.ts +81 -0
- package/dist/runtime/components/ScrollArea.vue +187 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +81 -0
- package/dist/runtime/components/Table.d.vue.ts +1 -0
- package/dist/runtime/components/Table.vue.d.ts +1 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/Link.d.vue.ts +1 -1
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/Link.vue +3 -3
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/Link.vue.d.ts +1 -1
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.d.vue.ts +1 -1
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +73 -0
- package/dist/runtime/vue/overrides/none/Link.vue +128 -0
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +73 -0
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.vue +4 -4
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/{stubs.d.ts → stubs/base.d.ts} +6 -7
- package/dist/runtime/vue/{stubs.js → stubs/base.js} +6 -7
- package/dist/runtime/vue/stubs/inertia.d.ts +5 -0
- package/dist/runtime/vue/stubs/inertia.js +10 -0
- package/dist/runtime/vue/stubs/none.d.ts +56 -0
- package/dist/runtime/vue/stubs/none.js +48 -0
- package/dist/runtime/vue/stubs/vue-router.d.ts +2 -0
- package/dist/runtime/vue/stubs/vue-router.js +2 -0
- package/dist/shared/{b24ui-nuxt.BeTQIwtu.mjs → b24ui-nuxt.C-CS9MBp.mjs} +37 -8
- package/dist/unplugin.d.mts +13 -0
- package/dist/unplugin.mjs +83 -61
- package/dist/vite.mjs +1 -1
- package/package.json +4 -4
- package/dist/runtime/inertia/stubs.d.ts +0 -46
- package/dist/runtime/inertia/stubs.js +0 -93
- /package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.vue +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
2
|
-
import type { NuxtApp } from '#app';
|
|
3
|
-
export { useHead } from '@unhead/vue';
|
|
4
|
-
export { useAppConfig } from '../vue/composables/useAppConfig';
|
|
5
|
-
export { defineShortcuts } from '../composables/defineShortcuts';
|
|
6
|
-
export { defineLocale } from '../composables/defineLocale';
|
|
7
|
-
export { useLocale } from '../composables/useLocale';
|
|
8
|
-
export { useConfetti } from '../composables/useConfetti';
|
|
9
|
-
export { useOverlay } from '../composables/useOverlay';
|
|
10
|
-
export declare const useRoute: () => {
|
|
11
|
-
fullPath: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const useRouter: () => void;
|
|
14
|
-
export declare const clearError: () => void;
|
|
15
|
-
export declare const useColorMode: () => {
|
|
16
|
-
forced: boolean;
|
|
17
|
-
preference?: undefined;
|
|
18
|
-
readonly value?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
preference: import("@vueuse/core").BasicColorMode | "system";
|
|
21
|
-
readonly value: import("@vueuse/core").BasicColorMode;
|
|
22
|
-
forced: boolean;
|
|
23
|
-
};
|
|
24
|
-
export declare const useCookie: <T = string>(_name: string, _options?: Record<string, any>) => {
|
|
25
|
-
value: T;
|
|
26
|
-
get: () => T;
|
|
27
|
-
set: () => void;
|
|
28
|
-
update: () => void;
|
|
29
|
-
refresh: () => Promise<Awaited<T>>;
|
|
30
|
-
remove: () => void;
|
|
31
|
-
};
|
|
32
|
-
export declare const useState: <T>(key: string, init: () => T) => Ref<T>;
|
|
33
|
-
export declare function useNuxtApp(): {
|
|
34
|
-
isHydrating: boolean;
|
|
35
|
-
payload: {
|
|
36
|
-
serverRendered: boolean;
|
|
37
|
-
};
|
|
38
|
-
hooks: import("hookable").Hookable<Record<string, any>, string>;
|
|
39
|
-
hook: <NameT extends string>(name: NameT, function_: any, options?: {
|
|
40
|
-
allowDeprecated?: boolean;
|
|
41
|
-
}) => () => void;
|
|
42
|
-
};
|
|
43
|
-
export declare function useRuntimeHook(name: string, fn: (...args: any[]) => void): void;
|
|
44
|
-
export declare function defineNuxtPlugin(plugin: (nuxtApp: NuxtApp) => void): {
|
|
45
|
-
install(app: import("vue").App<any>): void;
|
|
46
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ref, onScopeDispose } from "vue";
|
|
2
|
-
import { createHooks } from "hookable";
|
|
3
|
-
import { usePage } from "@inertiajs/vue3";
|
|
4
|
-
import { useColorMode as useColorModeVueUse } from "@vueuse/core";
|
|
5
|
-
import appConfig from "#build/app.config";
|
|
6
|
-
export { useHead } from "@unhead/vue";
|
|
7
|
-
export { useAppConfig } from "../vue/composables/useAppConfig.js";
|
|
8
|
-
export { defineShortcuts } from "../composables/defineShortcuts.js";
|
|
9
|
-
export { defineLocale } from "../composables/defineLocale.js";
|
|
10
|
-
export { useLocale } from "../composables/useLocale.js";
|
|
11
|
-
export { useConfetti } from "../composables/useConfetti.js";
|
|
12
|
-
export { useOverlay } from "../composables/useOverlay.js";
|
|
13
|
-
export const useRoute = () => {
|
|
14
|
-
const page = usePage();
|
|
15
|
-
return {
|
|
16
|
-
fullPath: page.url
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export const useRouter = () => {
|
|
20
|
-
};
|
|
21
|
-
export const clearError = () => {
|
|
22
|
-
};
|
|
23
|
-
export const useColorMode = () => {
|
|
24
|
-
if (!appConfig.colorMode) {
|
|
25
|
-
return {
|
|
26
|
-
forced: true
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const { store, system } = useColorModeVueUse({
|
|
30
|
-
attribute: "class",
|
|
31
|
-
modes: {
|
|
32
|
-
auto: "auto",
|
|
33
|
-
light: appConfig?.colorModeTypeLight || "light",
|
|
34
|
-
dark: "dark"
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
return {
|
|
38
|
-
get preference() {
|
|
39
|
-
return store.value === "auto" ? "system" : store.value;
|
|
40
|
-
},
|
|
41
|
-
set preference(value) {
|
|
42
|
-
store.value = value === "system" ? "auto" : value;
|
|
43
|
-
},
|
|
44
|
-
get value() {
|
|
45
|
-
return store.value === "auto" ? system.value : store.value;
|
|
46
|
-
},
|
|
47
|
-
forced: false
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export const useCookie = (_name, _options = {}) => {
|
|
51
|
-
const value = ref(_options?.default?.() ?? null);
|
|
52
|
-
return {
|
|
53
|
-
value: value.value,
|
|
54
|
-
get: () => value.value,
|
|
55
|
-
set: () => {
|
|
56
|
-
},
|
|
57
|
-
update: () => {
|
|
58
|
-
},
|
|
59
|
-
refresh: () => Promise.resolve(value.value),
|
|
60
|
-
remove: () => {
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
const state = {};
|
|
65
|
-
export const useState = (key, init) => {
|
|
66
|
-
if (state[key]) {
|
|
67
|
-
return state[key];
|
|
68
|
-
}
|
|
69
|
-
const value = ref(init());
|
|
70
|
-
state[key] = value;
|
|
71
|
-
return value;
|
|
72
|
-
};
|
|
73
|
-
const hooks = createHooks();
|
|
74
|
-
export function useNuxtApp() {
|
|
75
|
-
return {
|
|
76
|
-
isHydrating: true,
|
|
77
|
-
payload: { serverRendered: typeof window === "undefined" },
|
|
78
|
-
hooks,
|
|
79
|
-
hook: hooks.hook
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
export function useRuntimeHook(name, fn) {
|
|
83
|
-
const nuxtApp = useNuxtApp();
|
|
84
|
-
const unregister = nuxtApp.hook(name, fn);
|
|
85
|
-
onScopeDispose(unregister);
|
|
86
|
-
}
|
|
87
|
-
export function defineNuxtPlugin(plugin) {
|
|
88
|
-
return {
|
|
89
|
-
install(app) {
|
|
90
|
-
app.runWithContext(() => plugin({ vueApp: app }));
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
}
|
|
File without changes
|