@bitrix24/b24ui-nuxt 2.1.8 → 2.1.10
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 +40203 -52214
- package/dist/meta.mjs +40203 -52214
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Alert.d.vue.ts +2 -2
- package/dist/runtime/components/Alert.vue.d.ts +2 -2
- package/dist/runtime/components/Banner.d.vue.ts +2 -2
- package/dist/runtime/components/Banner.vue.d.ts +2 -2
- package/dist/runtime/components/Calendar.d.vue.ts +5 -5
- package/dist/runtime/components/Calendar.vue.d.ts +5 -5
- package/dist/runtime/components/ChatMessages.d.vue.ts +2 -2
- package/dist/runtime/components/ChatMessages.vue.d.ts +2 -2
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +2 -2
- package/dist/runtime/components/ChatPromptSubmit.vue +1 -20
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +2 -2
- package/dist/runtime/components/CommandPalette.d.vue.ts +3 -3
- package/dist/runtime/components/CommandPalette.vue.d.ts +3 -3
- package/dist/runtime/components/DashboardSearch.d.vue.ts +2 -2
- package/dist/runtime/components/DashboardSearch.vue.d.ts +2 -2
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/DashboardSearchButton.vue +1 -20
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -2
- package/dist/runtime/components/Error.d.vue.ts +1 -1
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.d.vue.ts +2 -2
- package/dist/runtime/components/FileUpload.vue.d.ts +2 -2
- package/dist/runtime/components/Input.d.vue.ts +2 -2
- package/dist/runtime/components/Input.vue.d.ts +2 -2
- package/dist/runtime/components/InputDate.d.vue.ts +2 -2
- package/dist/runtime/components/InputDate.vue.d.ts +2 -2
- package/dist/runtime/components/InputMenu.d.vue.ts +2 -2
- package/dist/runtime/components/InputMenu.vue.d.ts +2 -2
- package/dist/runtime/components/InputNumber.d.vue.ts +5 -5
- package/dist/runtime/components/InputNumber.vue.d.ts +5 -5
- package/dist/runtime/components/InputTags.d.vue.ts +2 -2
- package/dist/runtime/components/InputTags.vue.d.ts +2 -2
- package/dist/runtime/components/InputTime.d.vue.ts +2 -2
- package/dist/runtime/components/InputTime.vue.d.ts +2 -2
- package/dist/runtime/components/Link.d.vue.ts +5 -0
- package/dist/runtime/components/Link.vue.d.ts +5 -0
- package/dist/runtime/components/Modal.d.vue.ts +2 -2
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/PinInput.d.vue.ts +2 -2
- package/dist/runtime/components/PinInput.vue +1 -1
- package/dist/runtime/components/PinInput.vue.d.ts +2 -2
- package/dist/runtime/components/Select.d.vue.ts +2 -2
- package/dist/runtime/components/Select.vue.d.ts +2 -2
- package/dist/runtime/components/SelectMenu.d.vue.ts +2 -2
- package/dist/runtime/components/SelectMenu.vue.d.ts +2 -2
- package/dist/runtime/components/Slideover.d.vue.ts +2 -2
- package/dist/runtime/components/Slideover.vue.d.ts +2 -2
- package/dist/runtime/components/Table.d.vue.ts +2 -2
- package/dist/runtime/components/Table.vue +33 -30
- package/dist/runtime/components/Table.vue.d.ts +2 -2
- package/dist/runtime/components/Textarea.d.vue.ts +2 -2
- package/dist/runtime/components/Textarea.vue.d.ts +2 -2
- package/dist/runtime/components/Toast.d.vue.ts +2 -2
- package/dist/runtime/components/Toast.vue.d.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.vue +3 -22
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +2 -2
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +2 -2
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +2 -2
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/content/ContentSearchButton.vue +1 -20
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -2
- package/dist/runtime/composables/useFileUpload.d.ts +1 -2
- package/dist/runtime/utils/content.d.ts +2 -2
- package/dist/runtime/utils/locale.d.ts +1 -2
- package/dist/shared/{b24ui-nuxt.CyWhhgYE.mjs → b24ui-nuxt.BCphUjPy.mjs} +18 -17
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +10 -10
|
@@ -82,7 +82,7 @@ export interface TextareaSlots {
|
|
|
82
82
|
}): any;
|
|
83
83
|
}
|
|
84
84
|
declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
85
|
-
props: __VLS_PrettifyLocal<TextareaProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "
|
|
85
|
+
props: __VLS_PrettifyLocal<TextareaProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
86
86
|
__VLS_PROPS_FALLBACK: infer P;
|
|
87
87
|
} ? P : {});
|
|
88
88
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
@@ -90,7 +90,7 @@ declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<A
|
|
|
90
90
|
}>) => void;
|
|
91
91
|
attrs: any;
|
|
92
92
|
slots: TextareaSlots;
|
|
93
|
-
emit: ((evt: "
|
|
93
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
94
94
|
}>) => import("vue").VNode & {
|
|
95
95
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
96
96
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ToastRootProps, ToastRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/toast';
|
|
4
|
-
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent } from '../types';
|
|
4
|
+
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent, LinkPropsKeys } from '../types';
|
|
5
5
|
import type { StringOrVNode } from '../types/utils';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type Toast = ComponentConfig<typeof theme, AppConfig, 'toast'>;
|
|
@@ -32,7 +32,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
32
32
|
* `{ size: 'sm', color: 'air-tertiary' }`{lang="ts"}
|
|
33
33
|
* @defaultValue true
|
|
34
34
|
*/
|
|
35
|
-
close?: boolean |
|
|
35
|
+
close?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
36
36
|
/**
|
|
37
37
|
* The icon displayed in the close button.
|
|
38
38
|
* @defaultValue icons.close
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ToastRootProps, ToastRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/toast';
|
|
4
|
-
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent } from '../types';
|
|
4
|
+
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent, LinkPropsKeys } from '../types';
|
|
5
5
|
import type { StringOrVNode } from '../types/utils';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type Toast = ComponentConfig<typeof theme, AppConfig, 'toast'>;
|
|
@@ -32,7 +32,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
32
32
|
* `{ size: 'sm', color: 'air-tertiary' }`{lang="ts"}
|
|
33
33
|
* @defaultValue true
|
|
34
34
|
*/
|
|
35
|
-
close?: boolean |
|
|
35
|
+
close?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
36
36
|
/**
|
|
37
37
|
* The icon displayed in the close button.
|
|
38
38
|
* @defaultValue icons.close
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
1
|
+
import type { ButtonProps, LinkPropsKeys } from '../../types';
|
|
2
|
+
export interface ColorModeButtonProps extends Omit<ButtonProps, LinkPropsKeys | 'color'> {
|
|
3
3
|
/**
|
|
4
4
|
* @defaultValue 'air-tertiary-no-accent'
|
|
5
5
|
*/
|
|
@@ -27,8 +27,6 @@ const props = defineProps({
|
|
|
27
27
|
useDropdown: { type: Boolean, required: false },
|
|
28
28
|
onClick: { type: [Function, Array], required: false },
|
|
29
29
|
class: { type: null, required: false },
|
|
30
|
-
activeClass: { type: String, required: false },
|
|
31
|
-
inactiveClass: { type: String, required: false },
|
|
32
30
|
b24ui: { type: null, required: false },
|
|
33
31
|
icon: { type: [Function, Object], required: false },
|
|
34
32
|
avatar: { type: Object, required: false },
|
|
@@ -36,26 +34,9 @@ const props = defineProps({
|
|
|
36
34
|
as: { type: null, required: false },
|
|
37
35
|
type: { type: null, required: false },
|
|
38
36
|
disabled: { type: Boolean, required: false },
|
|
39
|
-
active: { type: Boolean, required: false },
|
|
40
|
-
exact: { type: Boolean, required: false },
|
|
41
|
-
exactQuery: { type: [Boolean, String], required: false },
|
|
42
|
-
exactHash: { type: Boolean, required: false },
|
|
43
37
|
isAction: { type: Boolean, required: false },
|
|
44
|
-
to: { type: null, required: false },
|
|
45
|
-
href: { type: null, required: false },
|
|
46
|
-
external: { type: Boolean, required: false },
|
|
47
|
-
target: { type: [String, Object, null], required: false },
|
|
48
|
-
rel: { type: [String, Object, null], required: false },
|
|
49
|
-
noRel: { type: Boolean, required: false },
|
|
50
|
-
prefetchedClass: { type: String, required: false },
|
|
51
|
-
prefetch: { type: Boolean, required: false },
|
|
52
|
-
prefetchOn: { type: [String, Object], required: false },
|
|
53
|
-
noPrefetch: { type: Boolean, required: false },
|
|
54
|
-
trailingSlash: { type: String, required: false },
|
|
55
38
|
exactActiveClass: { type: String, required: false },
|
|
56
|
-
|
|
57
|
-
viewTransition: { type: Boolean, required: false },
|
|
58
|
-
replace: { type: Boolean, required: false }
|
|
39
|
+
viewTransition: { type: Boolean, required: false }
|
|
59
40
|
});
|
|
60
41
|
const { t } = useLocale();
|
|
61
42
|
const colorMode = useColorMode();
|
|
@@ -80,8 +61,8 @@ const isDark = computed({
|
|
|
80
61
|
@click="isDark = !isDark"
|
|
81
62
|
>
|
|
82
63
|
<template #leading="{ b24ui }">
|
|
83
|
-
<Component :is="icons.dark" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon
|
|
84
|
-
<Component :is="icons.light" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon
|
|
64
|
+
<Component :is="icons.dark" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: [props.b24ui?.leadingIcon, 'hidden dark:inline-block'] })" />
|
|
65
|
+
<Component :is="icons.light" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: [props.b24ui?.leadingIcon, 'dark:hidden'] })" />
|
|
85
66
|
</template>
|
|
86
67
|
</B24Button>
|
|
87
68
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
1
|
+
import type { ButtonProps, LinkPropsKeys } from '../../types';
|
|
2
|
+
export interface ColorModeButtonProps extends Omit<ButtonProps, LinkPropsKeys | 'color'> {
|
|
3
3
|
/**
|
|
4
4
|
* @defaultValue 'air-tertiary-no-accent'
|
|
5
5
|
*/
|
|
@@ -2,7 +2,7 @@ import type { ContentNavigationItem } from '@nuxt/content';
|
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
|
|
4
4
|
import theme from '#build/b24ui/content/content-search';
|
|
5
|
-
import type { ButtonProps, InputProps, LinkProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, IconComponent } from '../../types';
|
|
5
|
+
import type { ButtonProps, InputProps, LinkProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, IconComponent, LinkPropsKeys } from '../../types';
|
|
6
6
|
import type { ComponentConfig } from '../../types/tv';
|
|
7
7
|
type ContentSearch = ComponentConfig<typeof theme, AppConfig, 'contentSearch'>;
|
|
8
8
|
export interface ContentSearchLink extends Omit<LinkProps, 'custom'> {
|
|
@@ -56,7 +56,7 @@ export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchL
|
|
|
56
56
|
* @emits 'update:open'
|
|
57
57
|
* @defaultValue true
|
|
58
58
|
*/
|
|
59
|
-
close?: boolean |
|
|
59
|
+
close?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
60
60
|
/**
|
|
61
61
|
* The icon displayed in the close button.
|
|
62
62
|
* @defaultValue icons.close
|
|
@@ -2,7 +2,7 @@ import type { ContentNavigationItem } from '@nuxt/content';
|
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
|
|
4
4
|
import theme from '#build/b24ui/content/content-search';
|
|
5
|
-
import type { ButtonProps, InputProps, LinkProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, IconComponent } from '../../types';
|
|
5
|
+
import type { ButtonProps, InputProps, LinkProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, IconComponent, LinkPropsKeys } from '../../types';
|
|
6
6
|
import type { ComponentConfig } from '../../types/tv';
|
|
7
7
|
type ContentSearch = ComponentConfig<typeof theme, AppConfig, 'contentSearch'>;
|
|
8
8
|
export interface ContentSearchLink extends Omit<LinkProps, 'custom'> {
|
|
@@ -56,7 +56,7 @@ export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchL
|
|
|
56
56
|
* @emits 'update:open'
|
|
57
57
|
* @defaultValue true
|
|
58
58
|
*/
|
|
59
|
-
close?: boolean |
|
|
59
|
+
close?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
60
60
|
/**
|
|
61
61
|
* The icon displayed in the close button.
|
|
62
62
|
* @defaultValue icons.close
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/b24ui/content/content-search-button';
|
|
3
|
-
import type { ButtonProps, ButtonSlots, IconComponent, KbdProps, TooltipProps } from '../../types';
|
|
3
|
+
import type { ButtonProps, ButtonSlots, IconComponent, KbdProps, TooltipProps, LinkPropsKeys } from '../../types';
|
|
4
4
|
import type { ComponentConfig } from '../../types/tv';
|
|
5
5
|
type ContentSearchButton = ComponentConfig<typeof theme, AppConfig, 'contentSearchButton'>;
|
|
6
|
-
export interface ContentSearchButtonProps extends Omit<ButtonProps, 'icon' | 'label' | 'color'> {
|
|
6
|
+
export interface ContentSearchButtonProps extends Omit<ButtonProps, LinkPropsKeys | 'icon' | 'label' | 'color'> {
|
|
7
7
|
/**
|
|
8
8
|
* The icon displayed in the button.
|
|
9
9
|
* @defaultValue icons.search
|
|
@@ -38,33 +38,14 @@ const props = defineProps({
|
|
|
38
38
|
useClock: { type: Boolean, required: false },
|
|
39
39
|
useDropdown: { type: Boolean, required: false },
|
|
40
40
|
onClick: { type: [Function, Array], required: false },
|
|
41
|
-
activeClass: { type: String, required: false },
|
|
42
|
-
inactiveClass: { type: String, required: false },
|
|
43
41
|
avatar: { type: Object, required: false },
|
|
44
42
|
loading: { type: Boolean, required: false },
|
|
45
43
|
as: { type: null, required: false },
|
|
46
44
|
type: { type: null, required: false },
|
|
47
45
|
disabled: { type: Boolean, required: false },
|
|
48
|
-
active: { type: Boolean, required: false },
|
|
49
|
-
exact: { type: Boolean, required: false },
|
|
50
|
-
exactQuery: { type: [Boolean, String], required: false },
|
|
51
|
-
exactHash: { type: Boolean, required: false },
|
|
52
46
|
isAction: { type: Boolean, required: false },
|
|
53
|
-
to: { type: null, required: false },
|
|
54
|
-
href: { type: null, required: false },
|
|
55
|
-
external: { type: Boolean, required: false },
|
|
56
|
-
target: { type: [String, Object, null], required: false },
|
|
57
|
-
rel: { type: [String, Object, null], required: false },
|
|
58
|
-
noRel: { type: Boolean, required: false },
|
|
59
|
-
prefetchedClass: { type: String, required: false },
|
|
60
|
-
prefetch: { type: Boolean, required: false },
|
|
61
|
-
prefetchOn: { type: [String, Object], required: false },
|
|
62
|
-
noPrefetch: { type: Boolean, required: false },
|
|
63
|
-
trailingSlash: { type: String, required: false },
|
|
64
47
|
exactActiveClass: { type: String, required: false },
|
|
65
|
-
|
|
66
|
-
viewTransition: { type: Boolean, required: false },
|
|
67
|
-
replace: { type: Boolean, required: false }
|
|
48
|
+
viewTransition: { type: Boolean, required: false }
|
|
68
49
|
});
|
|
69
50
|
const slots = defineSlots();
|
|
70
51
|
const [DefineButtonTemplate, ReuseButtonTemplate] = createReusableTemplate();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/b24ui/content/content-search-button';
|
|
3
|
-
import type { ButtonProps, ButtonSlots, IconComponent, KbdProps, TooltipProps } from '../../types';
|
|
3
|
+
import type { ButtonProps, ButtonSlots, IconComponent, KbdProps, TooltipProps, LinkPropsKeys } from '../../types';
|
|
4
4
|
import type { ComponentConfig } from '../../types/tv';
|
|
5
5
|
type ContentSearchButton = ComponentConfig<typeof theme, AppConfig, 'contentSearchButton'>;
|
|
6
|
-
export interface ContentSearchButtonProps extends Omit<ButtonProps, 'icon' | 'label' | 'color'> {
|
|
6
|
+
export interface ContentSearchButtonProps extends Omit<ButtonProps, LinkPropsKeys | 'icon' | 'label' | 'color'> {
|
|
7
7
|
/**
|
|
8
8
|
* The icon displayed in the button.
|
|
9
9
|
* @defaultValue icons.search
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
-
import type { MaybeRef } from '@vueuse/core';
|
|
1
|
+
import type { ComponentPublicInstance, MaybeRef } from 'vue';
|
|
3
2
|
export interface UseFileUploadOptions {
|
|
4
3
|
/**
|
|
5
4
|
* Specifies the allowed file types. Provide a comma-separated list of MIME types or file extensions.
|
|
@@ -4,13 +4,13 @@ type MapContentNavigationItemOptions = {
|
|
|
4
4
|
labelAttribute?: string;
|
|
5
5
|
deep?: number;
|
|
6
6
|
};
|
|
7
|
-
export declare function mapContentNavigationItem(item: ContentNavigationItem, options?: MapContentNavigationItemOptions, currentDepth?: number): Omit<ContentNavigationItem, "
|
|
7
|
+
export declare function mapContentNavigationItem(item: ContentNavigationItem, options?: MapContentNavigationItemOptions, currentDepth?: number): Omit<ContentNavigationItem, "title" | "path"> & {
|
|
8
8
|
label?: string;
|
|
9
9
|
to?: string;
|
|
10
10
|
type?: string;
|
|
11
11
|
icon?: IconComponent;
|
|
12
12
|
};
|
|
13
|
-
export declare function mapContentNavigation(navigation: ContentNavigationItem[], options?: MapContentNavigationItemOptions): (Omit<ContentNavigationItem, "
|
|
13
|
+
export declare function mapContentNavigation(navigation: ContentNavigationItem[], options?: MapContentNavigationItemOptions): (Omit<ContentNavigationItem, "title" | "path"> & {
|
|
14
14
|
label?: string;
|
|
15
15
|
to?: string;
|
|
16
16
|
type?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
1
|
+
import type { Ref, MaybeRef } from 'vue';
|
|
2
2
|
import type { Locale, Direction } from '../types/locale';
|
|
3
|
-
import type { MaybeRef } from '@vueuse/core';
|
|
4
3
|
export type TranslatorOption = Record<string, string | number>;
|
|
5
4
|
export type Translator = (path: string, option?: TranslatorOption) => string;
|
|
6
5
|
export type LocaleContext<M> = {
|
|
@@ -8,7 +8,7 @@ import { globSync } from 'tinyglobby';
|
|
|
8
8
|
import { defuFn } from 'defu';
|
|
9
9
|
|
|
10
10
|
const name = "@bitrix24/b24ui-nuxt";
|
|
11
|
-
const version = "2.1.
|
|
11
|
+
const version = "2.1.10";
|
|
12
12
|
|
|
13
13
|
function getDefaultConfig(theme) {
|
|
14
14
|
return {
|
|
@@ -1665,13 +1665,13 @@ const chatMessage = {
|
|
|
1665
1665
|
variants: {
|
|
1666
1666
|
variant: {
|
|
1667
1667
|
message: {
|
|
1668
|
-
content: "bg-
|
|
1668
|
+
content: "ring-1 ring-(--ui-color-divider-vibrant-default) bg-(--ui-color-palette-white-base) text-(--ui-color-palette-black-base)"
|
|
1669
1669
|
},
|
|
1670
1670
|
event: {
|
|
1671
|
-
content: "bg-
|
|
1671
|
+
content: "bg-(--ui-color-design-outline-stroke) ring ring-(--ui-color-design-outline-content-secondary)"
|
|
1672
1672
|
},
|
|
1673
1673
|
system: {
|
|
1674
|
-
content: "bg-
|
|
1674
|
+
content: "bg-(--ui-color-copilot-bg-content-3)"
|
|
1675
1675
|
}
|
|
1676
1676
|
},
|
|
1677
1677
|
side: {
|
|
@@ -1731,7 +1731,7 @@ const chatMessage = {
|
|
|
1731
1731
|
variant: ["message", "event", "system"],
|
|
1732
1732
|
compact: false,
|
|
1733
1733
|
class: {
|
|
1734
|
-
content: "
|
|
1734
|
+
content: "ps-[14px] pe-[10px] py-[8px] rounded-md min-h-[42px]",
|
|
1735
1735
|
leading: "mt-2"
|
|
1736
1736
|
}
|
|
1737
1737
|
},
|
|
@@ -1739,7 +1739,7 @@ const chatMessage = {
|
|
|
1739
1739
|
variant: ["message", "event", "system"],
|
|
1740
1740
|
compact: true,
|
|
1741
1741
|
class: {
|
|
1742
|
-
content: "
|
|
1742
|
+
content: "ps-[14px] pe-[10px] py-[8px] rounded-sm min-h-[32px]",
|
|
1743
1743
|
leading: "mt-1"
|
|
1744
1744
|
}
|
|
1745
1745
|
},
|
|
@@ -1760,7 +1760,7 @@ const chatMessages = {
|
|
|
1760
1760
|
slots: {
|
|
1761
1761
|
root: "w-full flex flex-col gap-1 flex-1 px-2.5 [&>article]:last-of-type:min-h-(--last-message-height)",
|
|
1762
1762
|
indicator: "h-6 flex items-center gap-1 py-3 *:size-2 *:rounded-full *:bg-(--ui-color-base-7) [&>*:nth-child(1)]:animate-[bounce_1s_infinite] [&>*:nth-child(2)]:animate-[bounce_1s_0.15s_infinite] [&>*:nth-child(3)]:animate-[bounce_1s_0.3s_infinite]",
|
|
1763
|
-
viewport: "absolute inset-x-0 top-[
|
|
1763
|
+
viewport: "absolute inset-x-0 top-[78%] data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
1764
1764
|
autoScroll: "rounded-full absolute right-1/2 translate-x-1/2 bottom-0"
|
|
1765
1765
|
},
|
|
1766
1766
|
variants: {
|
|
@@ -2745,7 +2745,7 @@ const dashboardSearch = {
|
|
|
2745
2745
|
variants: {
|
|
2746
2746
|
fullscreen: {
|
|
2747
2747
|
false: {
|
|
2748
|
-
modal: "sm:max-w-[768px] sm:h-[436px]"
|
|
2748
|
+
modal: "sm:max-w-[768px] h-full sm:h-[436px]"
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
@@ -7707,6 +7707,7 @@ const table$1 = {
|
|
|
7707
7707
|
caption: "sr-only",
|
|
7708
7708
|
thead: "relative",
|
|
7709
7709
|
tbody: [
|
|
7710
|
+
"isolate",
|
|
7710
7711
|
"[&>tr]:data-[selectable=true]:hover:bg-(--ui-color-bg-content-secondary)",
|
|
7711
7712
|
"light:[&>tr]:data-[selectable=true]:hover:bg-[#f6f8f9]",
|
|
7712
7713
|
"[&>tr]:data-[selectable=true]:focus-visible:outline-(--ui-color-accent-soft-element-blue)",
|
|
@@ -7739,7 +7740,7 @@ const table$1 = {
|
|
|
7739
7740
|
"align-middle"
|
|
7740
7741
|
].join(" "),
|
|
7741
7742
|
separator: [
|
|
7742
|
-
"absolute z-
|
|
7743
|
+
"absolute z-1 left-0",
|
|
7743
7744
|
"w-full h-px",
|
|
7744
7745
|
"bg-(--ui-color-design-tinted-na-stroke)"
|
|
7745
7746
|
].join(" "),
|
|
@@ -7766,12 +7767,12 @@ const table$1 = {
|
|
|
7766
7767
|
th: [
|
|
7767
7768
|
"sticky",
|
|
7768
7769
|
"bg-(--ui-color-bg-content-primary)",
|
|
7769
|
-
"z-
|
|
7770
|
+
"z-1"
|
|
7770
7771
|
].join(" "),
|
|
7771
7772
|
td: [
|
|
7772
7773
|
"sticky",
|
|
7773
7774
|
"bg-(--ui-color-bg-content-primary)",
|
|
7774
|
-
"z-
|
|
7775
|
+
"z-1"
|
|
7775
7776
|
].join(" ")
|
|
7776
7777
|
}
|
|
7777
7778
|
},
|
|
@@ -7781,14 +7782,14 @@ const table$1 = {
|
|
|
7781
7782
|
"sticky",
|
|
7782
7783
|
"top-0 inset-x-0",
|
|
7783
7784
|
"bg-(--ui-color-bg-content-primary)",
|
|
7784
|
-
"z-
|
|
7785
|
+
"z-2 backdrop-blur"
|
|
7785
7786
|
].join(" "),
|
|
7786
7787
|
// bg-default/75
|
|
7787
7788
|
tfoot: [
|
|
7788
7789
|
"sticky",
|
|
7789
7790
|
"bottom-0 inset-x-0",
|
|
7790
7791
|
"bg-(--ui-color-bg-content-primary)",
|
|
7791
|
-
"z-
|
|
7792
|
+
"z-2 backdrop-blur"
|
|
7792
7793
|
].join(" ")
|
|
7793
7794
|
// bg-default/75
|
|
7794
7795
|
},
|
|
@@ -7797,7 +7798,7 @@ const table$1 = {
|
|
|
7797
7798
|
"sticky",
|
|
7798
7799
|
"top-0 inset-x-0",
|
|
7799
7800
|
"bg-(--ui-color-bg-content-primary)",
|
|
7800
|
-
"z-
|
|
7801
|
+
"z-2 backdrop-blur"
|
|
7801
7802
|
].join(" ")
|
|
7802
7803
|
// bg-default/75
|
|
7803
7804
|
},
|
|
@@ -7806,7 +7807,7 @@ const table$1 = {
|
|
|
7806
7807
|
"sticky",
|
|
7807
7808
|
"bottom-0 inset-x-0",
|
|
7808
7809
|
"bg-(--ui-color-bg-content-primary)",
|
|
7809
|
-
"z-
|
|
7810
|
+
"z-2 backdrop-blur"
|
|
7810
7811
|
].join(" ")
|
|
7811
7812
|
// bg-default/75
|
|
7812
7813
|
}
|
|
@@ -7815,7 +7816,7 @@ const table$1 = {
|
|
|
7815
7816
|
true: {
|
|
7816
7817
|
thead: [
|
|
7817
7818
|
"after:absolute",
|
|
7818
|
-
"after:z-
|
|
7819
|
+
"after:z-1",
|
|
7819
7820
|
"after:h-px",
|
|
7820
7821
|
"after:bg-(--b24ui-background)"
|
|
7821
7822
|
].join(" ")
|
|
@@ -10154,7 +10155,7 @@ const contentSearch = {
|
|
|
10154
10155
|
variants: {
|
|
10155
10156
|
fullscreen: {
|
|
10156
10157
|
false: {
|
|
10157
|
-
modal: "sm:max-w-[768px] sm:h-[436px]"
|
|
10158
|
+
modal: "sm:max-w-[768px] h-full sm:h-[436px]"
|
|
10158
10159
|
}
|
|
10159
10160
|
}
|
|
10160
10161
|
}
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.BCphUjPy.mjs';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.10",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"@tanstack/vue-table": "^8.21.3",
|
|
120
120
|
"@tanstack/vue-virtual": "^3.13.12",
|
|
121
121
|
"@unhead/vue": "^2.0.19",
|
|
122
|
-
"@vueuse/core": "^
|
|
123
|
-
"@vueuse/integrations": "^
|
|
122
|
+
"@vueuse/core": "^14.1.0",
|
|
123
|
+
"@vueuse/integrations": "^14.1.0",
|
|
124
124
|
"canvas-confetti": "^1.9.3",
|
|
125
125
|
"colortranslator": "^5.0.0",
|
|
126
126
|
"consola": "^3.4.2",
|
|
@@ -140,20 +140,20 @@
|
|
|
140
140
|
"motion-v": "^1.7.3",
|
|
141
141
|
"ohash": "^2.0.11",
|
|
142
142
|
"pathe": "^2.0.3",
|
|
143
|
-
"reka-ui": "2.6.
|
|
143
|
+
"reka-ui": "2.6.1",
|
|
144
144
|
"scule": "^1.3.0",
|
|
145
145
|
"tailwind-merge": "^3.4.0",
|
|
146
146
|
"tailwind-variants": "^3.2.2",
|
|
147
147
|
"tailwindcss": "^4.1.17",
|
|
148
148
|
"tinyglobby": "^0.2.15",
|
|
149
149
|
"unplugin": "^2.3.11",
|
|
150
|
-
"unplugin-auto-import": "^20.
|
|
150
|
+
"unplugin-auto-import": "^20.3.0",
|
|
151
151
|
"unplugin-vue-components": "^30.0.0",
|
|
152
152
|
"vaul-vue": "0.4.1",
|
|
153
153
|
"vue-component-type-helpers": "^3.1.5"
|
|
154
154
|
},
|
|
155
155
|
"devDependencies": {
|
|
156
|
-
"@nuxt/eslint-config": "^1.
|
|
156
|
+
"@nuxt/eslint-config": "^1.11.0",
|
|
157
157
|
"@nuxt/module-builder": "^1.0.2",
|
|
158
158
|
"@nuxt/test-utils": "^3.20.1",
|
|
159
159
|
"@types/canvas-confetti": "^1.9.0",
|
|
@@ -162,10 +162,10 @@
|
|
|
162
162
|
"nuxt-component-meta": "^0.14.2",
|
|
163
163
|
"sharp": "^0.34.3",
|
|
164
164
|
"@vue/test-utils": "^2.4.6",
|
|
165
|
-
"ai": "^5.0.
|
|
165
|
+
"ai": "^5.0.105",
|
|
166
166
|
"embla-carousel": "^8.6.0",
|
|
167
167
|
"eslint": "^9.39.1",
|
|
168
|
-
"happy-dom": "^20.0.
|
|
168
|
+
"happy-dom": "^20.0.11",
|
|
169
169
|
"nuxt": "^4.2.1",
|
|
170
170
|
"vitest": "^3.2.4",
|
|
171
171
|
"vitest-axe": "^0.1.0",
|
|
@@ -212,7 +212,6 @@
|
|
|
212
212
|
"resolutions": {
|
|
213
213
|
"@nuxt/kit": "^4.2.1",
|
|
214
214
|
"@bitrix24/b24ui-nuxt": "workspace:*",
|
|
215
|
-
"debug": "4.3.7",
|
|
216
215
|
"typescript": "5.8.3",
|
|
217
216
|
"unplugin": "^2.3.11"
|
|
218
217
|
},
|
|
@@ -255,6 +254,7 @@
|
|
|
255
254
|
"lint:fix": "eslint . --fix",
|
|
256
255
|
"typecheck": "vue-tsc --noEmit && nuxt typecheck playgrounds/nuxt && nuxt typecheck playgrounds/demo && nuxt typecheck docs && cd playgrounds/vue && vue-tsc --noEmit",
|
|
257
256
|
"test": "vitest",
|
|
258
|
-
"test:vue": "vitest
|
|
257
|
+
"test:vue": "vitest --project vue",
|
|
258
|
+
"test:nuxt": "vitest --project nuxt"
|
|
259
259
|
}
|
|
260
260
|
}
|