@bitrix24/b24ui-nuxt 2.1.2 → 2.1.4
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/cli/templates.mjs +2 -2
- package/dist/meta.d.mts +1321 -192
- package/dist/meta.mjs +1321 -192
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Accordion.vue +9 -4
- package/dist/runtime/components/Advice.vue +9 -5
- package/dist/runtime/components/Alert.vue +9 -7
- package/dist/runtime/components/Avatar.vue +4 -2
- package/dist/runtime/components/AvatarGroup.vue +3 -3
- package/dist/runtime/components/Badge.vue +6 -1
- package/dist/runtime/components/Banner.vue +9 -8
- package/dist/runtime/components/Breadcrumb.vue +9 -4
- package/dist/runtime/components/Button.vue +12 -9
- package/dist/runtime/components/Calendar.vue +11 -5
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/ChatMessage.vue +7 -5
- package/dist/runtime/components/ChatMessages.vue +4 -2
- package/dist/runtime/components/ChatPalette.vue +3 -3
- package/dist/runtime/components/ChatPrompt.vue +4 -3
- package/dist/runtime/components/ChatPromptSubmit.vue +1 -0
- package/dist/runtime/components/Checkbox.vue +9 -7
- package/dist/runtime/components/CheckboxGroup.vue +4 -2
- package/dist/runtime/components/Chip.vue +3 -0
- package/dist/runtime/components/Collapsible.vue +2 -2
- package/dist/runtime/components/ColorPicker.vue +7 -3
- package/dist/runtime/components/CommandPalette.vue +68 -23
- package/dist/runtime/components/ContextMenu.vue +1 -0
- package/dist/runtime/components/ContextMenuContent.vue +19 -6
- package/dist/runtime/components/Countdown.vue +8 -1
- package/dist/runtime/components/DashboardSearch.vue +1 -0
- package/dist/runtime/components/DashboardSearchButton.vue +2 -1
- package/dist/runtime/components/DescriptionList.vue +12 -4
- package/dist/runtime/components/DropdownMenu.vue +2 -1
- package/dist/runtime/components/DropdownMenuContent.vue +21 -7
- package/dist/runtime/components/Empty.vue +9 -8
- package/dist/runtime/components/Error.vue +5 -5
- package/dist/runtime/components/FileUpload.vue +15 -8
- package/dist/runtime/components/FormField.vue +11 -11
- package/dist/runtime/components/Input.vue +8 -3
- package/dist/runtime/components/InputDate.vue +9 -2
- package/dist/runtime/components/InputMenu.vue +50 -32
- package/dist/runtime/components/InputNumber.vue +5 -2
- package/dist/runtime/components/InputTags.vue +12 -3
- package/dist/runtime/components/InputTime.vue +8 -2
- package/dist/runtime/components/Kbd.vue +1 -1
- package/dist/runtime/components/Modal.vue +11 -8
- package/dist/runtime/components/Navbar.vue +1 -1
- package/dist/runtime/components/NavbarDivider.vue +1 -1
- package/dist/runtime/components/NavbarSection.vue +2 -1
- package/dist/runtime/components/NavbarSpacer.vue +1 -1
- package/dist/runtime/components/NavigationMenu.vue +43 -12
- package/dist/runtime/components/PageCard.vue +10 -9
- package/dist/runtime/components/PageLinks.vue +9 -7
- package/dist/runtime/components/Pagination.vue +8 -8
- package/dist/runtime/components/PinInput.vue +2 -0
- package/dist/runtime/components/Popover.vue +2 -2
- package/dist/runtime/components/Progress.vue +6 -6
- package/dist/runtime/components/RadioGroup.d.vue.ts +2 -2
- package/dist/runtime/components/RadioGroup.vue +10 -4
- package/dist/runtime/components/RadioGroup.vue.d.ts +2 -2
- package/dist/runtime/components/Range.vue +5 -4
- package/dist/runtime/components/Select.vue +25 -11
- package/dist/runtime/components/SelectMenu.vue +47 -25
- package/dist/runtime/components/Separator.vue +7 -7
- package/dist/runtime/components/Sidebar.vue +1 -1
- package/dist/runtime/components/SidebarBody.vue +1 -1
- package/dist/runtime/components/SidebarFooter.vue +1 -1
- package/dist/runtime/components/SidebarHeader.vue +1 -1
- package/dist/runtime/components/SidebarHeading.vue +1 -1
- package/dist/runtime/components/SidebarLayout.vue +18 -13
- package/dist/runtime/components/SidebarSection.vue +2 -1
- package/dist/runtime/components/SidebarSpacer.vue +1 -1
- package/dist/runtime/components/Skeleton.vue +1 -0
- package/dist/runtime/components/Slideover.vue +10 -7
- package/dist/runtime/components/Stepper.vue +12 -9
- package/dist/runtime/components/Switch.vue +10 -6
- package/dist/runtime/components/Table.d.vue.ts +2 -2
- package/dist/runtime/components/Table.vue +33 -15
- package/dist/runtime/components/Table.vue.d.ts +2 -2
- package/dist/runtime/components/TableWrapper.vue +1 -0
- package/dist/runtime/components/Tabs.d.vue.ts +3 -3
- package/dist/runtime/components/Tabs.vue +24 -15
- package/dist/runtime/components/Tabs.vue.d.ts +3 -3
- package/dist/runtime/components/Textarea.vue +8 -3
- package/dist/runtime/components/Timeline.vue +9 -6
- package/dist/runtime/components/Toast.vue +10 -6
- package/dist/runtime/components/Toaster.vue +2 -0
- package/dist/runtime/components/Tooltip.vue +4 -4
- package/dist/runtime/components/User.vue +13 -6
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +2 -9
- package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -13
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +2 -9
- package/dist/runtime/components/content/ContentSearch.vue +59 -68
- package/dist/runtime/components/content/ContentSearchButton.vue +2 -1
- package/dist/runtime/components/content/ContentSurround.vue +6 -4
- package/dist/runtime/components/content/ContentToc.vue +13 -10
- package/dist/runtime/components/prose/A.vue +1 -1
- package/dist/runtime/components/prose/Blockquote.vue +1 -1
- package/dist/runtime/components/prose/Callout.vue +4 -1
- package/dist/runtime/components/prose/Card.vue +5 -3
- package/dist/runtime/components/prose/Code.vue +1 -0
- package/dist/runtime/components/prose/CodeCollapse.vue +3 -2
- package/dist/runtime/components/prose/CodeGroup.vue +6 -6
- package/dist/runtime/components/prose/CodePreview.vue +3 -3
- package/dist/runtime/components/prose/Collapsible.vue +3 -2
- package/dist/runtime/components/prose/Em.vue +1 -1
- package/dist/runtime/components/prose/Field.vue +7 -7
- package/dist/runtime/components/prose/H1.vue +1 -0
- package/dist/runtime/components/prose/H2.vue +4 -2
- package/dist/runtime/components/prose/H3.vue +4 -2
- package/dist/runtime/components/prose/H4.vue +4 -2
- package/dist/runtime/components/prose/H5.vue +1 -0
- package/dist/runtime/components/prose/H6.vue +1 -0
- package/dist/runtime/components/prose/Hr.vue +1 -1
- package/dist/runtime/components/prose/Img.vue +4 -0
- package/dist/runtime/components/prose/Li.vue +1 -1
- package/dist/runtime/components/prose/Ol.vue +1 -1
- package/dist/runtime/components/prose/P.vue +1 -1
- package/dist/runtime/components/prose/Pre.vue +6 -5
- package/dist/runtime/components/prose/Strong.vue +1 -1
- package/dist/runtime/components/prose/Table.d.vue.ts +0 -3
- package/dist/runtime/components/prose/Table.vue +2 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +0 -3
- package/dist/runtime/components/prose/Tbody.vue +1 -1
- package/dist/runtime/components/prose/Td.vue +1 -1
- package/dist/runtime/components/prose/Th.vue +1 -1
- package/dist/runtime/components/prose/Thead.vue +1 -1
- package/dist/runtime/components/prose/Tr.vue +1 -1
- package/dist/runtime/components/prose/Ul.vue +1 -1
- package/dist/runtime/composables/useContentSearch.d.ts +5 -0
- package/dist/runtime/composables/useContentSearch.js +30 -1
- package/dist/runtime/inertia/stubs.js +1 -1
- package/dist/runtime/types/index.d.ts +3 -0
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/utils/virtualizer.d.ts +6 -0
- package/dist/runtime/utils/virtualizer.js +32 -0
- package/dist/shared/{b24ui-nuxt.B9uYyQGR.mjs → b24ui-nuxt.Bs0V9FLV.mjs} +25 -19
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +11 -11
- package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +0 -12
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +0 -83
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +0 -12
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.Bs0V9FLV.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.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"embla-carousel-wheel-gestures": "^8.1.0",
|
|
131
131
|
"fuse.js": "^7.1.0",
|
|
132
132
|
"hookable": "^5.5.3",
|
|
133
|
-
"knitwork": "^1.
|
|
133
|
+
"knitwork": "^1.3.0",
|
|
134
134
|
"magic-string": "^0.30.21",
|
|
135
135
|
"mlly": "^1.8.0",
|
|
136
136
|
"motion-v": "^1.7.3",
|
|
@@ -146,20 +146,19 @@
|
|
|
146
146
|
"unplugin-auto-import": "^20.2.0",
|
|
147
147
|
"unplugin-vue-components": "^30.0.0",
|
|
148
148
|
"vaul-vue": "0.4.1",
|
|
149
|
-
"vue-component-type-helpers": "^3.1.
|
|
149
|
+
"vue-component-type-helpers": "^3.1.4"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
|
-
"@nuxt/content": "^3.8.0",
|
|
153
152
|
"@nuxt/eslint-config": "^1.10.0",
|
|
154
153
|
"@nuxt/module-builder": "^1.0.2",
|
|
155
154
|
"@nuxt/test-utils": "^3.20.1",
|
|
156
155
|
"@types/canvas-confetti": "^1.9.0",
|
|
157
156
|
"@types/node": "^24.7.0",
|
|
158
157
|
"esno": "^4.8.0",
|
|
159
|
-
"nuxt-component-meta": "^0.14.
|
|
158
|
+
"nuxt-component-meta": "^0.14.2",
|
|
160
159
|
"sharp": "^0.34.3",
|
|
161
160
|
"@vue/test-utils": "^2.4.6",
|
|
162
|
-
"ai": "^5.0.
|
|
161
|
+
"ai": "^5.0.93",
|
|
163
162
|
"embla-carousel": "^8.6.0",
|
|
164
163
|
"eslint": "^9.39.1",
|
|
165
164
|
"happy-dom": "^20.0.10",
|
|
@@ -167,10 +166,11 @@
|
|
|
167
166
|
"vitest": "^3.2.4",
|
|
168
167
|
"vitest-axe": "^0.1.0",
|
|
169
168
|
"vitest-environment-nuxt": "^1.0.1",
|
|
170
|
-
"vue-tsc": "^3.1.
|
|
169
|
+
"vue-tsc": "^3.1.4"
|
|
171
170
|
},
|
|
172
171
|
"peerDependencies": {
|
|
173
172
|
"@inertiajs/vue3": "^2.0.7",
|
|
173
|
+
"@nuxt/content": "^3.8.0",
|
|
174
174
|
"joi": "^18.0.0",
|
|
175
175
|
"superstruct": "^2.0.0",
|
|
176
176
|
"typescript": "^5.6.3",
|
|
@@ -183,6 +183,9 @@
|
|
|
183
183
|
"@inertiajs/vue3": {
|
|
184
184
|
"optional": true
|
|
185
185
|
},
|
|
186
|
+
"@nuxt/content": {
|
|
187
|
+
"optional": true
|
|
188
|
+
},
|
|
186
189
|
"joi": {
|
|
187
190
|
"optional": true
|
|
188
191
|
},
|
|
@@ -207,9 +210,7 @@
|
|
|
207
210
|
"@bitrix24/b24ui-nuxt": "workspace:*",
|
|
208
211
|
"debug": "4.3.7",
|
|
209
212
|
"typescript": "5.8.3",
|
|
210
|
-
"unplugin": "^2.3.10"
|
|
211
|
-
"ai": "5.0.90",
|
|
212
|
-
"@ai-sdk/vue": "2.0.90"
|
|
213
|
+
"unplugin": "^2.3.10"
|
|
213
214
|
},
|
|
214
215
|
"keywords": [
|
|
215
216
|
"bitrix24-ui",
|
|
@@ -238,7 +239,6 @@
|
|
|
238
239
|
"dev:vue": "pnpm --filter ./playgrounds/vue dev -- --uiDev",
|
|
239
240
|
"dev:vue:build": "pnpm --filter ./playgrounds/vue build",
|
|
240
241
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playgrounds/nuxt && nuxt prepare docs && pnpm dev:vue:build && nuxt prepare playgrounds/demo && nuxt-component-meta playgrounds/nuxt --outputDir ../../src/.component-meta/",
|
|
241
|
-
"dev:prepare-component-meta": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare docs && nuxt-component-meta docs --outputDir ../../src/.component-meta/",
|
|
242
242
|
"demo:dev": "nuxt dev playgrounds/demo",
|
|
243
243
|
"demo:generate": "nuxt generate playgrounds/demo",
|
|
244
244
|
"demo:preview": "nuxt preview playgrounds/demo",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
3
|
-
/**
|
|
4
|
-
* @defaultValue 'air-tertiary-no-accent'
|
|
5
|
-
*/
|
|
6
|
-
color?: ButtonProps['color'];
|
|
7
|
-
}
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
|
-
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<script setup>
|
|
6
|
-
import { computed } from "vue";
|
|
7
|
-
import { useForwardProps } from "reka-ui";
|
|
8
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
9
|
-
import { useColorMode } from "#imports";
|
|
10
|
-
import { useLocale } from "../../../composables/useLocale";
|
|
11
|
-
import icons from "../../../dictionary/icons";
|
|
12
|
-
import B24Button from "../../../components/Button.vue";
|
|
13
|
-
defineOptions({ inheritAttrs: false });
|
|
14
|
-
const props = defineProps({
|
|
15
|
-
color: { type: null, required: false, default: "air-tertiary-no-accent" },
|
|
16
|
-
label: { type: String, required: false },
|
|
17
|
-
activeColor: { type: null, required: false },
|
|
18
|
-
depth: { type: null, required: false },
|
|
19
|
-
activeDepth: { type: null, required: false },
|
|
20
|
-
size: { type: null, required: false },
|
|
21
|
-
rounded: { type: Boolean, required: false },
|
|
22
|
-
block: { type: Boolean, required: false },
|
|
23
|
-
loadingAuto: { type: Boolean, required: false },
|
|
24
|
-
normalCase: { type: Boolean, required: false },
|
|
25
|
-
useWait: { type: Boolean, required: false },
|
|
26
|
-
useClock: { type: Boolean, required: false },
|
|
27
|
-
useDropdown: { type: Boolean, required: false },
|
|
28
|
-
onClick: { type: [Function, Array], required: false },
|
|
29
|
-
class: { type: null, required: false },
|
|
30
|
-
activeClass: { type: String, required: false },
|
|
31
|
-
inactiveClass: { type: String, required: false },
|
|
32
|
-
b24ui: { type: null, required: false },
|
|
33
|
-
icon: { type: [Function, Object], required: false },
|
|
34
|
-
avatar: { type: Object, required: false },
|
|
35
|
-
loading: { type: Boolean, required: false },
|
|
36
|
-
as: { type: null, required: false },
|
|
37
|
-
type: { type: null, required: false },
|
|
38
|
-
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
|
-
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
|
-
exactActiveClass: { type: String, required: false },
|
|
56
|
-
ariaCurrentValue: { type: String, required: false },
|
|
57
|
-
viewTransition: { type: Boolean, required: false },
|
|
58
|
-
replace: { type: Boolean, required: false }
|
|
59
|
-
});
|
|
60
|
-
const { t } = useLocale();
|
|
61
|
-
const colorMode = useColorMode();
|
|
62
|
-
const buttonProps = useForwardProps(reactiveOmit(props, "icon"));
|
|
63
|
-
const isDark = computed({
|
|
64
|
-
get() {
|
|
65
|
-
return colorMode.value === "dark";
|
|
66
|
-
},
|
|
67
|
-
set(_isDark) {
|
|
68
|
-
colorMode.preference = _isDark ? "dark" : "light";
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
</script>
|
|
72
|
-
|
|
73
|
-
<template>
|
|
74
|
-
<B24Button
|
|
75
|
-
v-bind="{
|
|
76
|
-
...buttonProps,
|
|
77
|
-
'icon': props.icon || (isDark ? icons.dark : icons.light),
|
|
78
|
-
'aria-label': isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark'),
|
|
79
|
-
...$attrs
|
|
80
|
-
}"
|
|
81
|
-
@click="isDark = !isDark"
|
|
82
|
-
/>
|
|
83
|
-
</template>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
3
|
-
/**
|
|
4
|
-
* @defaultValue 'air-tertiary-no-accent'
|
|
5
|
-
*/
|
|
6
|
-
color?: ButtonProps['color'];
|
|
7
|
-
}
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
|
-
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|