@bitrix24/b24ui-nuxt 0.7.1 → 1.0.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/.nuxt/b24ui/accordion.ts +3 -3
- package/.nuxt/b24ui/advice.ts +6 -5
- package/.nuxt/b24ui/alert.ts +102 -49
- package/.nuxt/b24ui/avatar-group.ts +10 -10
- package/.nuxt/b24ui/avatar.ts +18 -18
- package/.nuxt/b24ui/badge.ts +167 -176
- package/.nuxt/b24ui/button-group.ts +3 -1
- package/.nuxt/b24ui/button.ts +179 -170
- package/.nuxt/b24ui/calendar.ts +48 -28
- package/.nuxt/b24ui/checkbox.ts +82 -85
- package/.nuxt/b24ui/chip.ts +121 -32
- package/.nuxt/b24ui/container.ts +1 -1
- package/.nuxt/b24ui/content/table-wrapper.ts +11 -11
- package/.nuxt/b24ui/countdown.ts +11 -11
- package/.nuxt/b24ui/description-list.ts +6 -6
- package/.nuxt/b24ui/dropdown-menu.ts +111 -183
- package/.nuxt/b24ui/form-field.ts +19 -19
- package/.nuxt/b24ui/index.ts +0 -1
- package/.nuxt/b24ui/input-menu.ts +294 -357
- package/.nuxt/b24ui/input-number.ts +111 -259
- package/.nuxt/b24ui/input.ts +136 -259
- package/.nuxt/b24ui/kbd.ts +15 -13
- package/.nuxt/b24ui/link.ts +5 -5
- package/.nuxt/b24ui/modal.ts +14 -12
- package/.nuxt/b24ui/navbar-divider.ts +1 -1
- package/.nuxt/b24ui/navbar-section.ts +1 -1
- package/.nuxt/b24ui/navbar.ts +1 -1
- package/.nuxt/b24ui/navigation-menu.ts +70 -754
- package/.nuxt/b24ui/popover.ts +2 -2
- package/.nuxt/b24ui/progress.ts +58 -68
- package/.nuxt/b24ui/prose/a.ts +1 -1
- package/.nuxt/b24ui/prose/blockquote.ts +1 -1
- package/.nuxt/b24ui/prose/code.ts +45 -9
- package/.nuxt/b24ui/prose/h1.ts +21 -2
- package/.nuxt/b24ui/prose/h2.ts +21 -12
- package/.nuxt/b24ui/prose/h3.ts +21 -12
- package/.nuxt/b24ui/prose/h4.ts +21 -12
- package/.nuxt/b24ui/prose/h5.ts +21 -12
- package/.nuxt/b24ui/prose/h6.ts +21 -12
- package/.nuxt/b24ui/prose/hr.ts +1 -1
- package/.nuxt/b24ui/prose/ol.ts +1 -1
- package/.nuxt/b24ui/prose/p.ts +26 -1
- package/.nuxt/b24ui/prose/thead.ts +1 -1
- package/.nuxt/b24ui/prose/ul.ts +1 -1
- package/.nuxt/b24ui/radio-group.ts +115 -155
- package/.nuxt/b24ui/range.ts +38 -26
- package/.nuxt/b24ui/select-menu.ts +251 -306
- package/.nuxt/b24ui/select.ts +246 -301
- package/.nuxt/b24ui/separator.ts +40 -85
- package/.nuxt/b24ui/sidebar-header.ts +1 -1
- package/.nuxt/b24ui/sidebar-heading.ts +1 -1
- package/.nuxt/b24ui/sidebar-layout.ts +130 -19
- package/.nuxt/b24ui/sidebar-section.ts +1 -1
- package/.nuxt/b24ui/skeleton.ts +19 -1
- package/.nuxt/b24ui/slideover.ts +35 -34
- package/.nuxt/b24ui/switch.ts +59 -48
- package/.nuxt/b24ui/tabs.ts +26 -239
- package/.nuxt/b24ui/textarea.ts +50 -236
- package/.nuxt/b24ui/toast.ts +38 -30
- package/.nuxt/b24ui/toaster.ts +1 -1
- package/.nuxt/b24ui/tooltip.ts +5 -5
- package/cli/templates.mjs +2 -1
- package/dist/meta.d.mts +18759 -5002
- package/dist/meta.mjs +18759 -5002
- package/dist/module.d.mts +1 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -5
- package/dist/runtime/air-design-tokens/001_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/002_b24_context_utility.css +0 -0
- package/dist/runtime/air-design-tokens/003_b24_context_light.css +1 -0
- package/dist/runtime/air-design-tokens/004_b24_context_dark.css +1 -0
- package/dist/runtime/air-design-tokens/005_b24_context_edge-light.css +1 -0
- package/dist/runtime/air-design-tokens/006_b24_context_edge-dark.css +1 -0
- package/dist/runtime/air-design-tokens/007_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/008_ui_global.css +1 -0
- package/dist/runtime/air-design-tokens/009_b24_tools.css +1 -0
- package/dist/runtime/air-design-tokens/components/badge-counter.css +1 -0
- package/dist/runtime/air-design-tokens/components/button.css +1 -0
- package/dist/runtime/air-design-tokens/components/navigation-menu.css +1 -0
- package/dist/runtime/air-design-tokens/components/popup.css +1 -0
- package/dist/runtime/air-design-tokens/components/scrollbar.css +2 -0
- package/dist/runtime/air-design-tokens/index.css +1 -0
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Advice.vue +1 -13
- package/dist/runtime/components/Advice.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue +6 -4
- package/dist/runtime/components/Alert.vue.d.ts +11 -4
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +7 -11
- package/dist/runtime/components/Badge.vue.d.ts +6 -8
- package/dist/runtime/components/Button.vue +18 -15
- package/dist/runtime/components/Button.vue.d.ts +5 -7
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +8 -8
- package/dist/runtime/components/Calendar.vue.d.ts +14 -8
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/Chip.vue +28 -7
- package/dist/runtime/components/Chip.vue.d.ts +22 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/Countdown.vue.d.ts +5 -3
- package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue +20 -9
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -5
- package/dist/runtime/components/DropdownMenuContent.vue +29 -7
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +14 -6
- package/dist/runtime/components/Form.vue +3 -3
- package/dist/runtime/components/Form.vue.d.ts +6 -5
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +4 -4
- package/dist/runtime/components/Input.vue +8 -4
- package/dist/runtime/components/Input.vue.d.ts +9 -8
- package/dist/runtime/components/InputMenu.vue +44 -18
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -223
- package/dist/runtime/components/InputNumber.vue +14 -11
- package/dist/runtime/components/InputNumber.vue.d.ts +13 -87
- package/dist/runtime/components/Kbd.vue +6 -3
- package/dist/runtime/components/Kbd.vue.d.ts +7 -3
- package/dist/runtime/components/Link.vue +6 -5
- package/dist/runtime/components/Link.vue.d.ts +1 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue +37 -33
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +1 -1
- package/dist/runtime/components/Navbar.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarDivider.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarSection.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +1 -1
- package/dist/runtime/components/NavigationMenu.vue +95 -84
- package/dist/runtime/components/NavigationMenu.vue.d.ts +31 -33
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Popover.vue +8 -2
- package/dist/runtime/components/Popover.vue.d.ts +9 -3
- package/dist/runtime/components/Progress.vue.d.ts +3 -3
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +6 -5
- package/dist/runtime/components/Range.vue.d.ts +6 -6
- package/dist/runtime/components/Select.vue +25 -11
- package/dist/runtime/components/Select.vue.d.ts +7 -7
- package/dist/runtime/components/SelectMenu.vue +38 -19
- package/dist/runtime/components/SelectMenu.vue.d.ts +11 -10
- package/dist/runtime/components/Separator.vue +4 -4
- package/dist/runtime/components/Separator.vue.d.ts +6 -3
- package/dist/runtime/components/Sidebar.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarBody.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarFooter.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarHeader.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarHeading.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarLayout.vue +148 -63
- package/dist/runtime/components/SidebarLayout.vue.d.ts +61 -8
- package/dist/runtime/components/SidebarSection.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +4 -1
- package/dist/runtime/components/Skeleton.vue +7 -3
- package/dist/runtime/components/Skeleton.vue.d.ts +12 -1
- package/dist/runtime/components/Slideover.vue +120 -43
- package/dist/runtime/components/Slideover.vue.d.ts +22 -9
- package/dist/runtime/components/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/Tabs.vue +11 -3
- package/dist/runtime/components/Tabs.vue.d.ts +8 -7
- package/dist/runtime/components/Textarea.vue +8 -4
- package/dist/runtime/components/Textarea.vue.d.ts +8 -7
- package/dist/runtime/components/Toast.vue +16 -8
- package/dist/runtime/components/Toast.vue.d.ts +16 -15
- package/dist/runtime/components/Toaster.vue.d.ts +2 -2
- package/dist/runtime/components/Tooltip.vue +9 -5
- package/dist/runtime/components/Tooltip.vue.d.ts +7 -1
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +5 -3
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
- package/dist/runtime/composables/useFormField.d.ts +4 -7
- package/dist/runtime/composables/useFormField.js +6 -3
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +29 -2
- package/dist/runtime/composables/useOverlay.js +8 -7
- package/dist/runtime/composables/usePortal.d.ts +1 -1
- package/dist/runtime/composables/useSidebarLayout.d.ts +20 -0
- package/dist/runtime/composables/useSidebarLayout.js +16 -0
- package/dist/runtime/dictionary/icons.js +7 -7
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/inertia/components/Link.vue +3 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -0
- package/dist/runtime/inertia/stubs.js +4 -2
- package/dist/runtime/locale/ar.js +6 -0
- package/dist/runtime/locale/br.js +6 -0
- package/dist/runtime/locale/de.js +6 -0
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/fr.js +6 -0
- package/dist/runtime/locale/id.js +6 -0
- package/dist/runtime/locale/it.js +6 -0
- package/dist/runtime/locale/ja.js +6 -0
- package/dist/runtime/locale/kz.js +6 -0
- package/dist/runtime/locale/la.js +6 -0
- package/dist/runtime/locale/ms.js +6 -0
- package/dist/runtime/locale/pl.js +6 -0
- package/dist/runtime/locale/ru.js +6 -0
- package/dist/runtime/locale/sc.js +6 -0
- package/dist/runtime/locale/tc.js +6 -0
- package/dist/runtime/locale/th.js +6 -0
- package/dist/runtime/locale/tr.js +6 -0
- package/dist/runtime/locale/ua.js +6 -0
- package/dist/runtime/locale/vn.js +6 -0
- package/dist/runtime/plugins/ui-version.d.ts +5 -0
- package/dist/runtime/plugins/ui-version.js +8 -0
- package/dist/runtime/prose/A.vue.d.ts +4 -1
- package/dist/runtime/prose/Blockquote.vue.d.ts +4 -1
- package/dist/runtime/prose/Code.vue.d.ts +4 -1
- package/dist/runtime/prose/Em.vue.d.ts +4 -1
- package/dist/runtime/prose/H1.vue +4 -1
- package/dist/runtime/prose/H1.vue.d.ts +7 -1
- package/dist/runtime/prose/H2.vue +4 -1
- package/dist/runtime/prose/H2.vue.d.ts +7 -1
- package/dist/runtime/prose/H3.vue +4 -1
- package/dist/runtime/prose/H3.vue.d.ts +7 -1
- package/dist/runtime/prose/H4.vue +4 -1
- package/dist/runtime/prose/H4.vue.d.ts +7 -1
- package/dist/runtime/prose/H5.vue +4 -1
- package/dist/runtime/prose/H5.vue.d.ts +7 -1
- package/dist/runtime/prose/H6.vue +4 -1
- package/dist/runtime/prose/H6.vue.d.ts +7 -1
- package/dist/runtime/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/prose/Li.vue.d.ts +4 -1
- package/dist/runtime/prose/Ol.vue.d.ts +4 -1
- package/dist/runtime/prose/P.vue +6 -1
- package/dist/runtime/prose/P.vue.d.ts +12 -1
- package/dist/runtime/prose/Pre.vue.d.ts +4 -1
- package/dist/runtime/prose/Strong.vue.d.ts +4 -1
- package/dist/runtime/prose/Table.vue.d.ts +5 -2
- package/dist/runtime/prose/Tbody.vue.d.ts +4 -1
- package/dist/runtime/prose/Td.vue.d.ts +4 -1
- package/dist/runtime/prose/Th.vue.d.ts +4 -1
- package/dist/runtime/prose/Thead.vue.d.ts +4 -1
- package/dist/runtime/prose/Tr.vue.d.ts +4 -1
- package/dist/runtime/prose/Ul.vue.d.ts +4 -1
- package/dist/runtime/types/index.d.ts +1 -2
- package/dist/runtime/types/index.js +1 -2
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/utils/index.d.ts +6 -0
- package/dist/runtime/utils/index.js +27 -0
- package/dist/runtime/utils/tv.js +66 -1
- package/dist/runtime/vue/components/Link.vue +3 -0
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +1 -0
- package/dist/runtime/vue/stubs.js +3 -1
- package/dist/shared/b24ui-nuxt.dLc5H7ID.mjs +6100 -0
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +40 -28
- package/.nuxt/b24ui/stacked-layout.ts +0 -34
- package/dist/runtime/air-design-tokens.css +0 -1
- package/dist/runtime/components/StackedLayout.vue +0 -117
- package/dist/runtime/components/StackedLayout.vue.d.ts +0 -44
- package/dist/shared/b24ui-nuxt.CxsFEY3M.mjs +0 -7895
|
@@ -6,10 +6,13 @@ export interface ProseTrProps {
|
|
|
6
6
|
class?: any;
|
|
7
7
|
b24ui?: ProseTr['slots'];
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @todo add Pick<Xxxx
|
|
11
|
+
*/
|
|
9
12
|
export interface ProseTrSlots {
|
|
10
13
|
default(props?: {}): any;
|
|
11
14
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseTrProps,
|
|
15
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseTrProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseTrProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseTrSlots>;
|
|
13
16
|
export default _default;
|
|
14
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
18
|
new (): {
|
|
@@ -6,10 +6,13 @@ export interface ProseUlProps {
|
|
|
6
6
|
class?: any;
|
|
7
7
|
b24ui?: ProseUl['slots'];
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @todo add Pick<Xxxx
|
|
11
|
+
*/
|
|
9
12
|
export interface ProseUlSlots {
|
|
10
13
|
default(props?: {}): any;
|
|
11
14
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseUlProps,
|
|
15
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseUlProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseUlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseUlSlots>;
|
|
13
16
|
export default _default;
|
|
14
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
18
|
new (): {
|
|
@@ -48,7 +48,6 @@ export * from '../components/SidebarFooter.vue';
|
|
|
48
48
|
export * from '../components/SidebarSection.vue';
|
|
49
49
|
export * from '../components/SidebarHeading.vue';
|
|
50
50
|
export * from '../components/SidebarSpacer.vue';
|
|
51
|
-
export * from '../components/StackedLayout.vue';
|
|
52
51
|
export * from '../components/Navbar.vue';
|
|
53
52
|
export * from '../components/NavbarSection.vue';
|
|
54
53
|
export * from '../components/NavbarDivider.vue';
|
|
@@ -57,7 +56,6 @@ export * from '../components/content/TableWrapper.vue';
|
|
|
57
56
|
export * from '../prose/H1.vue';
|
|
58
57
|
export * from '../prose/H2.vue';
|
|
59
58
|
export * from '../prose/H3.vue';
|
|
60
|
-
export * from '../prose/H3.vue';
|
|
61
59
|
export * from '../prose/H4.vue';
|
|
62
60
|
export * from '../prose/H5.vue';
|
|
63
61
|
export * from '../prose/H6.vue';
|
|
@@ -65,6 +63,7 @@ export * from '../prose/P.vue';
|
|
|
65
63
|
export * from '../prose/A.vue';
|
|
66
64
|
export * from '../prose/Blockquote.vue';
|
|
67
65
|
export * from '../prose/Strong.vue';
|
|
66
|
+
export * from '../prose/Em.vue';
|
|
68
67
|
export * from '../prose/Ol.vue';
|
|
69
68
|
export * from '../prose/Ul.vue';
|
|
70
69
|
export * from '../prose/Li.vue';
|
|
@@ -48,7 +48,6 @@ export * from "../components/SidebarFooter.vue";
|
|
|
48
48
|
export * from "../components/SidebarSection.vue";
|
|
49
49
|
export * from "../components/SidebarHeading.vue";
|
|
50
50
|
export * from "../components/SidebarSpacer.vue";
|
|
51
|
-
export * from "../components/StackedLayout.vue";
|
|
52
51
|
export * from "../components/Navbar.vue";
|
|
53
52
|
export * from "../components/NavbarSection.vue";
|
|
54
53
|
export * from "../components/NavbarDivider.vue";
|
|
@@ -57,7 +56,6 @@ export * from "../components/content/TableWrapper.vue";
|
|
|
57
56
|
export * from "../prose/H1.vue";
|
|
58
57
|
export * from "../prose/H2.vue";
|
|
59
58
|
export * from "../prose/H3.vue";
|
|
60
|
-
export * from "../prose/H3.vue";
|
|
61
59
|
export * from "../prose/H4.vue";
|
|
62
60
|
export * from "../prose/H5.vue";
|
|
63
61
|
export * from "../prose/H6.vue";
|
|
@@ -65,6 +63,7 @@ export * from "../prose/P.vue";
|
|
|
65
63
|
export * from "../prose/A.vue";
|
|
66
64
|
export * from "../prose/Blockquote.vue";
|
|
67
65
|
export * from "../prose/Strong.vue";
|
|
66
|
+
export * from "../prose/Em.vue";
|
|
68
67
|
export * from "../prose/Ol.vue";
|
|
69
68
|
export * from "../prose/Ul.vue";
|
|
70
69
|
export * from "../prose/Li.vue";
|
|
@@ -46,6 +46,12 @@ export type Messages = {
|
|
|
46
46
|
table: {
|
|
47
47
|
noData: string;
|
|
48
48
|
};
|
|
49
|
+
sidebarLayout: {
|
|
50
|
+
open: string;
|
|
51
|
+
close: string;
|
|
52
|
+
slideoverTitle: string;
|
|
53
|
+
slideoverDescription: string;
|
|
54
|
+
};
|
|
49
55
|
};
|
|
50
56
|
export type Direction = 'ltr' | 'rtl';
|
|
51
57
|
export type Locale<M> = {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import type { GetItemKeys, NestedItem } from '../types/utils';
|
|
1
2
|
export declare function pick<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Pick<Data, Keys>;
|
|
2
3
|
export declare function omit<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Omit<Data, Keys>;
|
|
3
4
|
export declare function get(object: Record<string, any> | undefined, path: (string | number)[] | string, defaultValue?: any): any;
|
|
4
5
|
export declare function set(object: Record<string, any>, path: (string | number)[] | string, value: any): void;
|
|
5
6
|
export declare function looseToNumber(val: any): any;
|
|
6
7
|
export declare function compare<T>(value?: T, currentValue?: T, comparator?: string | ((a: T, b: T) => boolean)): boolean;
|
|
8
|
+
export declare function getDisplayValue<T, V>(items: T[], value: V | undefined | null, options?: {
|
|
9
|
+
valueKey?: GetItemKeys<T>;
|
|
10
|
+
labelKey?: keyof NestedItem<T>;
|
|
11
|
+
}): string | undefined;
|
|
7
12
|
export declare function isArrayOfArray<A>(item: A[] | A[][]): item is A[][];
|
|
13
|
+
export declare function mergeClasses(appConfigClass?: string | string[], propClass?: string): "" | (string | undefined)[];
|
|
@@ -61,6 +61,33 @@ export function compare(value, currentValue, comparator) {
|
|
|
61
61
|
}
|
|
62
62
|
return isEqual(value, currentValue);
|
|
63
63
|
}
|
|
64
|
+
export function getDisplayValue(items, value, options = {}) {
|
|
65
|
+
const { valueKey, labelKey } = options;
|
|
66
|
+
if (value === null || value === void 0) {
|
|
67
|
+
return void 0;
|
|
68
|
+
}
|
|
69
|
+
const foundItem = items.find((item) => {
|
|
70
|
+
const itemValue = typeof item === "object" && item !== null && valueKey ? get(item, valueKey) : item;
|
|
71
|
+
return compare(itemValue, value);
|
|
72
|
+
});
|
|
73
|
+
const source = foundItem ?? value;
|
|
74
|
+
if (source === null || source === void 0) {
|
|
75
|
+
return void 0;
|
|
76
|
+
}
|
|
77
|
+
if (typeof source === "object") {
|
|
78
|
+
return labelKey ? get(source, labelKey) : void 0;
|
|
79
|
+
}
|
|
80
|
+
return String(source);
|
|
81
|
+
}
|
|
64
82
|
export function isArrayOfArray(item) {
|
|
65
83
|
return Array.isArray(item[0]);
|
|
66
84
|
}
|
|
85
|
+
export function mergeClasses(appConfigClass, propClass) {
|
|
86
|
+
if (!appConfigClass && !propClass) {
|
|
87
|
+
return "";
|
|
88
|
+
}
|
|
89
|
+
return [
|
|
90
|
+
...Array.isArray(appConfigClass) ? appConfigClass : [appConfigClass],
|
|
91
|
+
propClass
|
|
92
|
+
].filter(Boolean);
|
|
93
|
+
}
|
package/dist/runtime/utils/tv.js
CHANGED
|
@@ -1,4 +1,69 @@
|
|
|
1
1
|
import { createTV } from "tailwind-variants";
|
|
2
2
|
import appConfig from "#build/app.config";
|
|
3
3
|
const appConfigTv = appConfig;
|
|
4
|
-
|
|
4
|
+
const twMergeConfig = {
|
|
5
|
+
theme: {},
|
|
6
|
+
classGroups: {
|
|
7
|
+
"b24-context": [
|
|
8
|
+
"light",
|
|
9
|
+
"dark",
|
|
10
|
+
"edge-light",
|
|
11
|
+
"edge-dark",
|
|
12
|
+
"inherit"
|
|
13
|
+
],
|
|
14
|
+
"b24-colors": [
|
|
15
|
+
// primary ////
|
|
16
|
+
"style-filled",
|
|
17
|
+
"style-filled-inverted",
|
|
18
|
+
"style-filled-success",
|
|
19
|
+
"style-filled-success-inverted",
|
|
20
|
+
"style-filled-alert",
|
|
21
|
+
"style-filled-alert-inverted",
|
|
22
|
+
"style-filled-copilot",
|
|
23
|
+
"style-filled-alert-inverted",
|
|
24
|
+
"style-filled-warning",
|
|
25
|
+
"style-filled-warning-inverted",
|
|
26
|
+
"style-filled-no-accent",
|
|
27
|
+
"style-filled-no-accent-inverted",
|
|
28
|
+
// secondary ////
|
|
29
|
+
"style-tinted",
|
|
30
|
+
"style-tinted-alert",
|
|
31
|
+
"style-outline",
|
|
32
|
+
"style-outline-accent-1",
|
|
33
|
+
"style-outline-accent-2",
|
|
34
|
+
"style-outline-no-accent",
|
|
35
|
+
"style-tinted-no-accent-1",
|
|
36
|
+
// tertiary ////
|
|
37
|
+
"style-plain",
|
|
38
|
+
"style-plain-accent",
|
|
39
|
+
"style-plain-no-accent",
|
|
40
|
+
// custom ////
|
|
41
|
+
"style-selection",
|
|
42
|
+
"style-filled-boost",
|
|
43
|
+
// old ////
|
|
44
|
+
"style-old-default",
|
|
45
|
+
"style-old-danger",
|
|
46
|
+
"style-old-success",
|
|
47
|
+
"style-old-warning",
|
|
48
|
+
"style-old-primary",
|
|
49
|
+
"style-old-secondary",
|
|
50
|
+
"style-old-collab",
|
|
51
|
+
"style-old-ai"
|
|
52
|
+
],
|
|
53
|
+
"b24-bg": [
|
|
54
|
+
"style-blurred-bg",
|
|
55
|
+
"style-blurred-bg-input",
|
|
56
|
+
"style-transparent-bg"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
conflictingClassGroups: {
|
|
60
|
+
"b24-context": ["b24-context"],
|
|
61
|
+
"b24-colors": ["b24-colors"],
|
|
62
|
+
"b24-bg": ["b24-bg"]
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export const tv = /* @__PURE__ */ createTV({
|
|
66
|
+
...appConfigTv.b24ui?.tv || {},
|
|
67
|
+
twMerge: true,
|
|
68
|
+
twMergeConfig
|
|
69
|
+
});
|
|
@@ -79,7 +79,7 @@ export interface LinkSlots {
|
|
|
79
79
|
active: boolean;
|
|
80
80
|
}): any;
|
|
81
81
|
}
|
|
82
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
82
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
83
83
|
as: any;
|
|
84
84
|
type: "reset" | "submit" | "button";
|
|
85
85
|
activeClass: string;
|
|
@@ -8,6 +8,7 @@ export { defineLocale } from '../composables/defineLocale';
|
|
|
8
8
|
export { useLocale } from '../composables/useLocale';
|
|
9
9
|
export { useConfetti } from '../composables/useConfetti';
|
|
10
10
|
export { useOverlay } from '../composables/useOverlay';
|
|
11
|
+
export declare const clearError: () => void;
|
|
11
12
|
export declare const useColorMode: () => {
|
|
12
13
|
forced: boolean;
|
|
13
14
|
preference?: undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, onScopeDispose } from "vue";
|
|
2
2
|
import { createHooks } from "hookable";
|
|
3
|
-
import appConfig from "#build/app.config";
|
|
4
3
|
import { useColorMode as useColorModeVueUse } from "@vueuse/core";
|
|
4
|
+
import appConfig from "#build/app.config";
|
|
5
5
|
export { useHead } from "@unhead/vue";
|
|
6
6
|
export { useRoute, useRouter } from "vue-router";
|
|
7
7
|
export { useAppConfig } from "./composables/useAppConfig.js";
|
|
@@ -10,6 +10,8 @@ export { defineLocale } from "../composables/defineLocale.js";
|
|
|
10
10
|
export { useLocale } from "../composables/useLocale.js";
|
|
11
11
|
export { useConfetti } from "../composables/useConfetti.js";
|
|
12
12
|
export { useOverlay } from "../composables/useOverlay.js";
|
|
13
|
+
export const clearError = () => {
|
|
14
|
+
};
|
|
13
15
|
export const useColorMode = () => {
|
|
14
16
|
if (!appConfig.colorMode) {
|
|
15
17
|
return {
|