@bitrix24/b24ui-nuxt 2.1.2 → 2.1.3
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 +1301 -178
- package/dist/meta.mjs +1301 -178
- 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 +60 -21
- 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 +35 -19
- 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 +33 -14
- 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.vue +18 -13
- 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/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/shared/{b24ui-nuxt.B9uYyQGR.mjs → b24ui-nuxt.mq1NUekN.mjs} +3 -3
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +11 -11
|
@@ -25,12 +25,14 @@ const generate = computed(() => props.id && typeof headings?.anchorLinks === "ob
|
|
|
25
25
|
<template>
|
|
26
26
|
<h3
|
|
27
27
|
:id="id"
|
|
28
|
+
data-slot="base"
|
|
28
29
|
:class="b24ui.base({ class: [props.b24ui?.base, props.class] })"
|
|
29
30
|
>
|
|
30
|
-
<a v-if="id && generate" :href="`#${id}`" :class="b24ui.link({ class: props.b24ui?.link })">
|
|
31
|
-
<span :class="b24ui.leading({ class: props.b24ui?.leading })">
|
|
31
|
+
<a v-if="id && generate" :href="`#${id}`" data-slot="link" :class="b24ui.link({ class: props.b24ui?.link })">
|
|
32
|
+
<span data-slot="leading" :class="b24ui.leading({ class: props.b24ui?.leading })">
|
|
32
33
|
<Component
|
|
33
34
|
:is="icons.hash"
|
|
35
|
+
data-slot="leadingIcon"
|
|
34
36
|
:class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon })"
|
|
35
37
|
/>
|
|
36
38
|
</span>
|
|
@@ -25,12 +25,14 @@ const generate = computed(() => props.id && typeof headings?.anchorLinks === "ob
|
|
|
25
25
|
<template>
|
|
26
26
|
<h4
|
|
27
27
|
:id="id"
|
|
28
|
+
data-slot="base"
|
|
28
29
|
:class="b24ui.base({ class: [props.b24ui?.base, props.class] })"
|
|
29
30
|
>
|
|
30
|
-
<a v-if="id && generate" :href="`#${id}`" :class="b24ui.link({ class: props.b24ui?.link })">
|
|
31
|
-
<span :class="b24ui.leading({ class: props.b24ui?.leading })">
|
|
31
|
+
<a v-if="id && generate" :href="`#${id}`" data-slot="link" :class="b24ui.link({ class: props.b24ui?.link })">
|
|
32
|
+
<span data-slot="leading" :class="b24ui.leading({ class: props.b24ui?.leading })">
|
|
32
33
|
<Component
|
|
33
34
|
:is="icons.hash"
|
|
35
|
+
data-slot="leadingIcon"
|
|
34
36
|
:class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon })"
|
|
35
37
|
/>
|
|
36
38
|
</span>
|
|
@@ -15,5 +15,5 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<template>
|
|
18
|
-
<hr :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
18
|
+
<hr data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
19
|
</template>
|
|
@@ -48,6 +48,7 @@ if (props.zoom) {
|
|
|
48
48
|
:width="width"
|
|
49
49
|
:height="height"
|
|
50
50
|
v-bind="$attrs"
|
|
51
|
+
data-slot="base"
|
|
51
52
|
:class="b24ui.base({ class: [props.b24ui?.base, props.class] })"
|
|
52
53
|
/>
|
|
53
54
|
</DefineImageTemplate>
|
|
@@ -58,6 +59,7 @@ if (props.zoom) {
|
|
|
58
59
|
:src="refinedSrc"
|
|
59
60
|
:alt="alt"
|
|
60
61
|
v-bind="$attrs"
|
|
62
|
+
data-slot="zoomedImage"
|
|
61
63
|
:class="b24ui.zoomedImage({ class: [props.b24ui?.zoomedImage] })"
|
|
62
64
|
/>
|
|
63
65
|
</DefineZoomedImageTemplate>
|
|
@@ -81,11 +83,13 @@ if (props.zoom) {
|
|
|
81
83
|
:initial="{ opacity: 0 }"
|
|
82
84
|
:animate="{ opacity: 1 }"
|
|
83
85
|
:exit="{ opacity: 0 }"
|
|
86
|
+
data-slot="overlay"
|
|
84
87
|
:class="b24ui.overlay({ class: [props.b24ui?.overlay] })"
|
|
85
88
|
/>
|
|
86
89
|
|
|
87
90
|
<div
|
|
88
91
|
v-if="open"
|
|
92
|
+
data-slot="content"
|
|
89
93
|
:class="b24ui.content({ class: [props.b24ui?.content] })"
|
|
90
94
|
@click="close"
|
|
91
95
|
>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<li :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<li data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</li>
|
|
22
22
|
</template>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<ol :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<ol data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</ol>
|
|
22
22
|
</template>
|
|
@@ -21,7 +21,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
<template>
|
|
24
|
-
<p :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
24
|
+
<p data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
25
25
|
<slot />
|
|
26
26
|
</p>
|
|
27
27
|
</template>
|
|
@@ -31,17 +31,18 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
|
-
<div :class="b24ui.root({ class: [props.b24ui?.root], filename: !!filename })">
|
|
35
|
-
<div v-if="filename && !hideHeader" :class="b24ui.header({ class: props.b24ui?.header })">
|
|
36
|
-
<B24CodeIcon :icon="icon" :filename="filename" :class="b24ui.icon({ class: props.b24ui?.icon })" />
|
|
34
|
+
<div data-slot="root" :class="b24ui.root({ class: [props.b24ui?.root], filename: !!filename })">
|
|
35
|
+
<div v-if="filename && !hideHeader" data-slot="header" :class="b24ui.header({ class: props.b24ui?.header })">
|
|
36
|
+
<B24CodeIcon :icon="icon" :filename="filename" data-slot="icon" :class="b24ui.icon({ class: props.b24ui?.icon })" />
|
|
37
37
|
|
|
38
|
-
<span :class="b24ui.filename({ class: props.b24ui?.filename })">{{ filename }}</span>
|
|
38
|
+
<span data-slot="filename" :class="b24ui.filename({ class: props.b24ui?.filename })">{{ filename }}</span>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
41
|
<B24Button
|
|
42
42
|
color="air-secondary-no-accent"
|
|
43
43
|
size="sm"
|
|
44
44
|
:aria-label="t('prose.pre.copy')"
|
|
45
|
+
data-slot="copy"
|
|
45
46
|
:class="b24ui.copy({ class: props.b24ui?.copy })"
|
|
46
47
|
tabindex="-1"
|
|
47
48
|
:icon="copied ? icons.copyCheck : icons.copy"
|
|
@@ -51,7 +52,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
51
52
|
@click="copy(props.code || '')"
|
|
52
53
|
/>
|
|
53
54
|
|
|
54
|
-
<pre :class="b24ui.base({ class: [props.b24ui?.base, props.class] })" v-bind="$attrs"><slot /></pre>
|
|
55
|
+
<pre data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })" v-bind="$attrs"><slot /></pre>
|
|
55
56
|
</div>
|
|
56
57
|
</template>
|
|
57
58
|
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<strong :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<strong data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</strong>
|
|
22
22
|
</template>
|
|
@@ -25,6 +25,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
25
25
|
<template>
|
|
26
26
|
<B24TableWrapper
|
|
27
27
|
:as="as"
|
|
28
|
+
data-slot="root"
|
|
28
29
|
:class="b24ui.root({ class: [props.b24ui?.root, props.class] })"
|
|
29
30
|
:zebra="props.zebra"
|
|
30
31
|
:row-hover="props.rowHover"
|
|
@@ -32,7 +33,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
32
33
|
:bordered="props.bordered"
|
|
33
34
|
size="sm"
|
|
34
35
|
>
|
|
35
|
-
<table :class="b24ui.base({ class: props.b24ui?.base })">
|
|
36
|
+
<table data-slot="base" :class="b24ui.base({ class: props.b24ui?.base })">
|
|
36
37
|
<slot />
|
|
37
38
|
</table>
|
|
38
39
|
</B24TableWrapper>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<tbody :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<tbody data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</tbody>
|
|
22
22
|
</template>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<td :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<td data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</td>
|
|
22
22
|
</template>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<th :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<th data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</th>
|
|
22
22
|
</template>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<thead :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<thead data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</thead>
|
|
22
22
|
</template>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<tr :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<tr data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</tr>
|
|
22
22
|
</template>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<ul :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<ul data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</ul>
|
|
22
22
|
</template>
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import type { ContentNavigationItem } from '@nuxt/content';
|
|
2
|
+
import type { ContentSearchFile, ContentSearchItem } from '../components/content/ContentSearch.vue';
|
|
1
3
|
declare function _useContentSearch(): {
|
|
2
4
|
open: import("vue").Ref<boolean, boolean>;
|
|
5
|
+
mapFile: (file: ContentSearchFile, link: ContentNavigationItem, parent?: ContentNavigationItem) => ContentSearchItem;
|
|
6
|
+
mapNavigationItems: (children: ContentNavigationItem[], files: ContentSearchFile[], parent?: ContentNavigationItem) => ContentSearchItem[];
|
|
7
|
+
postFilter: (query: string, items: ContentSearchItem[]) => ContentSearchItem[];
|
|
3
8
|
};
|
|
4
9
|
export declare const useContentSearch: typeof _useContentSearch;
|
|
5
10
|
export {};
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { ref } from "vue";
|
|
2
2
|
import { createSharedComposable } from "@vueuse/core";
|
|
3
|
+
import icons from "../dictionary/icons.js";
|
|
3
4
|
function _useContentSearch() {
|
|
4
5
|
const open = ref(false);
|
|
6
|
+
function mapFile(file, link, parent) {
|
|
7
|
+
const prefix = [...new Set([parent?.title, ...file.titles].filter(Boolean))];
|
|
8
|
+
return {
|
|
9
|
+
prefix: prefix?.length ? prefix.join(" > ") + " >" : void 0,
|
|
10
|
+
label: file.id === link.path ? link.title : file.title,
|
|
11
|
+
suffix: file.content.replaceAll("<", "<").replaceAll(">", ">"),
|
|
12
|
+
to: file.id,
|
|
13
|
+
icon: link.icon || parent?.icon || (file.level > 1 ? icons.hash : icons.file),
|
|
14
|
+
level: file.level
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function mapNavigationItems(children, files, parent) {
|
|
18
|
+
return children.flatMap((link) => {
|
|
19
|
+
if (link.children?.length) {
|
|
20
|
+
return mapNavigationItems(link.children, files, link);
|
|
21
|
+
}
|
|
22
|
+
return files?.filter((file) => file.id === link.path || file.id.startsWith(`${link.path}#`))?.map((file) => mapFile(file, link, parent)) || [];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function postFilter(query, items) {
|
|
26
|
+
if (!query) {
|
|
27
|
+
return items?.filter((item) => item.level === 1);
|
|
28
|
+
}
|
|
29
|
+
return items;
|
|
30
|
+
}
|
|
5
31
|
return {
|
|
6
|
-
open
|
|
32
|
+
open,
|
|
33
|
+
mapFile,
|
|
34
|
+
mapNavigationItems,
|
|
35
|
+
postFilter
|
|
7
36
|
};
|
|
8
37
|
}
|
|
9
38
|
export const useContentSearch = /* @__PURE__ */ createSharedComposable(_useContentSearch);
|
|
@@ -91,7 +91,10 @@ export * from '../components/color-mode/ColorModeImage.vue';
|
|
|
91
91
|
export * from '../components/color-mode/ColorModeSelect.vue';
|
|
92
92
|
export * from '../components/color-mode/ColorModeSwitch.vue';
|
|
93
93
|
export * from '../components/locale/LocaleSelect.vue';
|
|
94
|
+
export * from './content';
|
|
94
95
|
export * from './form';
|
|
95
96
|
export * from './icons';
|
|
96
97
|
export * from './locale';
|
|
98
|
+
export * from './prose';
|
|
97
99
|
export * from './color-mode';
|
|
100
|
+
export * from './utils';
|
|
@@ -91,7 +91,10 @@ export * from "../components/color-mode/ColorModeImage.vue";
|
|
|
91
91
|
export * from "../components/color-mode/ColorModeSelect.vue";
|
|
92
92
|
export * from "../components/color-mode/ColorModeSwitch.vue";
|
|
93
93
|
export * from "../components/locale/LocaleSelect.vue";
|
|
94
|
+
export * from "./content.js";
|
|
94
95
|
export * from "./form.js";
|
|
95
96
|
export * from "./icons.js";
|
|
96
97
|
export * from "./locale.js";
|
|
98
|
+
export * from "./prose.js";
|
|
97
99
|
export * from "./color-mode.js";
|
|
100
|
+
export * from "./utils.js";
|
|
@@ -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.3";
|
|
12
12
|
|
|
13
13
|
function getDefaultConfig(theme) {
|
|
14
14
|
return {
|
|
@@ -8927,7 +8927,7 @@ const sidebarHeader = {
|
|
|
8927
8927
|
"flex flex-col",
|
|
8928
8928
|
"text-(--ui-color-base-1)",
|
|
8929
8929
|
"border-b border-(--leftmenu-bg-divider)",
|
|
8930
|
-
"[&>[data-
|
|
8930
|
+
"[&>[data-component=section]+[data-component=section]]:mt-2.5"
|
|
8931
8931
|
].join(" ")
|
|
8932
8932
|
}
|
|
8933
8933
|
};
|
|
@@ -8960,7 +8960,7 @@ const sidebarFooter = {
|
|
|
8960
8960
|
"flex flex-col",
|
|
8961
8961
|
"max-lg:hidden",
|
|
8962
8962
|
// 'border-t border-(--leftmenu-bg-divider)',
|
|
8963
|
-
"[&>[data-
|
|
8963
|
+
"[&>[data-component=section]+[data-component=section]]:mt-2.5"
|
|
8964
8964
|
].join(" ")
|
|
8965
8965
|
}
|
|
8966
8966
|
};
|
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.mq1NUekN.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.3",
|
|
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",
|