@hina-ui/vue 1.5.0 → 1.7.0
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/index.js +945 -420
- package/dist/index.js.map +1 -1
- package/dist/types/components/anchor/Anchor.vue.d.ts +26 -10
- package/dist/types/components/anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/types/components/anchor/composables/useAnchor.d.ts +15 -0
- package/dist/types/components/anchor/composables/useAnchor.d.ts.map +1 -0
- package/dist/types/components/anchor/composables/useScrollSpy.d.ts.map +1 -1
- package/dist/types/components/anchor/types.d.ts +9 -0
- package/dist/types/components/anchor/types.d.ts.map +1 -0
- package/dist/types/components/app-shell/AppShell.vue.d.ts +1 -0
- package/dist/types/components/app-shell/AppShell.vue.d.ts.map +1 -1
- package/dist/types/components/app-shell/composables/useSidebarScrollUpdates.d.ts +4 -0
- package/dist/types/components/app-shell/composables/useSidebarScrollUpdates.d.ts.map +1 -0
- package/dist/types/components/combobox/Combobox.vue.d.ts +2 -1
- package/dist/types/components/combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/types/components/combobox/composables/useCombobox.d.ts +25 -0
- package/dist/types/components/combobox/composables/useCombobox.d.ts.map +1 -0
- package/dist/types/components/combobox/composables/useOptionLabels.d.ts +3 -0
- package/dist/types/components/combobox/composables/useOptionLabels.d.ts.map +1 -0
- package/dist/types/components/multi-combobox/MultiCombobox.vue.d.ts +1 -0
- package/dist/types/components/multi-combobox/MultiCombobox.vue.d.ts.map +1 -1
- package/dist/types/components/multi-combobox/composables/useMultiCombobox.d.ts +2 -1
- package/dist/types/components/multi-combobox/composables/useMultiCombobox.d.ts.map +1 -1
- package/dist/types/components/nav-link/NavLink.vue.d.ts.map +1 -1
- package/dist/types/components/nav-link/nav-link.variants.d.ts +1 -18
- package/dist/types/components/nav-link/nav-link.variants.d.ts.map +1 -1
- package/dist/types/components/sidebar/DrawerScope.d.ts +13 -2
- package/dist/types/components/sidebar/DrawerScope.d.ts.map +1 -1
- package/dist/types/components/sidebar/Sidebar.vue.d.ts +19 -12
- package/dist/types/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarGroup.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarLabel.vue.d.ts +20 -0
- package/dist/types/components/sidebar/SidebarLabel.vue.d.ts.map +1 -0
- package/dist/types/components/sidebar/context.d.ts +1 -0
- package/dist/types/components/sidebar/context.d.ts.map +1 -1
- package/dist/types/components/sidebar/sidebar.variants.d.ts +46 -0
- package/dist/types/components/sidebar/sidebar.variants.d.ts.map +1 -0
- package/dist/types/components/tree/Tree.vue.d.ts +37 -0
- package/dist/types/components/tree/Tree.vue.d.ts.map +1 -0
- package/dist/types/components/tree/TreeCheck.vue.d.ts +8 -0
- package/dist/types/components/tree/TreeCheck.vue.d.ts.map +1 -0
- package/dist/types/components/tree/composables/useTree.d.ts +23 -0
- package/dist/types/components/tree/composables/useTree.d.ts.map +1 -0
- package/dist/types/components/tree/tree.variants.d.ts +5 -0
- package/dist/types/components/tree/tree.variants.d.ts.map +1 -0
- package/dist/types/components/tree/types.d.ts +18 -0
- package/dist/types/components/tree/types.d.ts.map +1 -0
- package/dist/types/components/tree/utils/selection.d.ts +16 -0
- package/dist/types/components/tree/utils/selection.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/locale/en-US.d.ts.map +1 -1
- package/dist/types/locale/index.d.ts.map +1 -1
- package/dist/types/locale/types.d.ts +3 -0
- package/dist/types/locale/types.d.ts.map +1 -1
- package/dist/types/locale/zh-CN.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/anchor/Anchor.vue +15 -19
- package/src/components/anchor/composables/useAnchor.ts +19 -0
- package/src/components/anchor/composables/useScrollSpy.ts +6 -1
- package/src/components/anchor/types.ts +8 -0
- package/src/components/app-shell/AppShell.vue +7 -3
- package/src/components/app-shell/composables/useSidebarScrollUpdates.ts +52 -0
- package/src/components/combobox/Combobox.vue +14 -23
- package/src/components/combobox/composables/useCombobox.ts +63 -0
- package/src/components/combobox/composables/useOptionLabels.ts +20 -0
- package/src/components/multi-combobox/MultiCombobox.vue +2 -0
- package/src/components/multi-combobox/composables/useMultiCombobox.ts +5 -10
- package/src/components/nav-link/NavLink.vue +7 -1
- package/src/components/nav-link/nav-link.variants.ts +1 -10
- package/src/components/sidebar/DrawerScope.ts +12 -4
- package/src/components/sidebar/Sidebar.vue +68 -38
- package/src/components/sidebar/SidebarGroup.vue +12 -11
- package/src/components/sidebar/SidebarLabel.vue +24 -0
- package/src/components/sidebar/context.ts +1 -0
- package/src/components/sidebar/sidebar.variants.ts +36 -0
- package/src/components/tree/Tree.vue +132 -0
- package/src/components/tree/TreeCheck.vue +33 -0
- package/src/components/tree/composables/useTree.ts +81 -0
- package/src/components/tree/tree.variants.ts +22 -0
- package/src/components/tree/types.ts +20 -0
- package/src/components/tree/utils/selection.ts +78 -0
- package/src/index.ts +4 -1
- package/src/locale/en-US.ts +1 -0
- package/src/locale/index.ts +1 -0
- package/src/locale/types.ts +3 -0
- package/src/locale/zh-CN.ts +1 -0
- package/src/styles/motion.css +40 -0
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { AnchorItem, AnchorSlotItem } from './types';
|
|
2
|
+
export type { AnchorItem } from './types';
|
|
3
|
+
declare const __VLS_export: <T extends AnchorItem = AnchorItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
items: T[];
|
|
6
|
+
label?: string;
|
|
7
|
+
class?: string;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {
|
|
14
|
+
trailing?(props: {
|
|
15
|
+
item: AnchorSlotItem<T>;
|
|
16
|
+
active: boolean;
|
|
17
|
+
}): unknown;
|
|
18
|
+
};
|
|
19
|
+
emit: {};
|
|
20
|
+
}>) => import("vue").VNode & {
|
|
21
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
10
22
|
};
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
23
|
declare const _default: typeof __VLS_export;
|
|
13
24
|
export default _default;
|
|
25
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} : {
|
|
28
|
+
[K in keyof T as K]: T[K];
|
|
29
|
+
}) & {};
|
|
14
30
|
//# sourceMappingURL=Anchor.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/anchor/Anchor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/anchor/Anchor.vue"],"names":[],"mappings":"AAgFE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEzD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,UAAU,GAAG,UAAU,EACzD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAwJO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;eApJ5C,CAAC,EAAE;gBACF,MAAM;gBACN,MAAM;MAkJwD,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;yBA/IU;YAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;YAAC,MAAM,EAAE,OAAO,CAAA;SAAE,GAAG,OAAO;;UAiJpE,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AnchorItem, AnchorSlotItem } from '../types';
|
|
2
|
+
export declare function useAnchor<T extends AnchorItem>(items: () => T[]): {
|
|
3
|
+
visible: import("vue").ShallowRef<ReadonlySet<string>, ReadonlySet<string>>;
|
|
4
|
+
covered: import("vue").ComputedRef<import("./useScrollSpy").SpyEntry[]>;
|
|
5
|
+
current: import("vue").ComputedRef<string>;
|
|
6
|
+
span: import("vue").ComputedRef<string | undefined>;
|
|
7
|
+
jump: (event: MouseEvent, id: string) => void;
|
|
8
|
+
entries: import("vue").ComputedRef<{
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
depth: number;
|
|
12
|
+
item: AnchorSlotItem<T>;
|
|
13
|
+
}[]>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useAnchor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/components/anchor/composables/useAnchor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAG1D,wBAAgB,SAAS,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE;;;;;;;;;;cAGA,cAAc,CAAC,CAAC,CAAC;;EAWhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollSpy.d.ts","sourceRoot":"","sources":["../../../../../src/components/anchor/composables/useScrollSpy.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,QAAQ,EAAE;;;;;
|
|
1
|
+
{"version":3,"file":"useScrollSpy.d.ts","sourceRoot":"","sources":["../../../../../src/components/anchor/composables/useScrollSpy.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,QAAQ,EAAE;;;;;kBAqD/B,UAAU,MAAM,MAAM;EAU5C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface AnchorItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
children?: AnchorItem[];
|
|
5
|
+
}
|
|
6
|
+
export type AnchorSlotItem<T extends AnchorItem> = T | (T extends {
|
|
7
|
+
children?: AnchorItem[];
|
|
8
|
+
} ? NonNullable<T['children']>[number] : never);
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/anchor/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,UAAU,IAC7C,CAAC,GAAG,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/app-shell/AppShell.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppShell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/app-shell/AppShell.vue"],"names":[],"mappings":"AAoHE,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMtE,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAoDN,KAAK,gBAAgB,GAAG;IACxB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAOF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAgKxD,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAU,EAAE,QAAQ,IAAW,EAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAChI,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAOhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwB2sa,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAxQ7za,MAAM,GAAG,QAAQ;eAEnB,OAAO;6EAmPvB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type ScrollArea from '../../scroll-area/ScrollArea.vue';
|
|
3
|
+
export declare function useSidebarScrollUpdates(area: Readonly<Ref<InstanceType<typeof ScrollArea> | undefined>>): (event: TransitionEvent) => void;
|
|
4
|
+
//# sourceMappingURL=useSidebarScrollUpdates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSidebarScrollUpdates.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-shell/composables/useSidebarScrollUpdates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAElE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAA;AAE9D,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,CAAC,IA+BxD,OAAO,eAAe,UAe/B"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type InputVariants } from '../input/input.variants';
|
|
2
|
-
import {
|
|
2
|
+
import type { SelectItems, SelectOption } from '../select/types';
|
|
3
3
|
declare const __VLS_export: <T extends SelectOption = SelectOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
5
|
options: SelectItems<T>;
|
|
6
|
+
selectedOption?: T | null;
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
ignoreFilter?: boolean;
|
|
8
9
|
clearable?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/combobox/Combobox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Combobox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/combobox/Combobox.vue"],"names":[],"mappings":"AAqJE,OAAO,EAOL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAIhE,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,YAAY,GAAG,YAAY,EAC7D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAoUO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;iBAhU3C,WAAW,CAAC,CAAC,CAAC;yBACN,CAAC,GAAG,IAAI;sBACX,MAAM;uBACL,OAAO;oBACV,OAAO;kBACT,aAAa,CAAC,SAAS,CAAC;eAC3B,aAAa,CAAC,MAAM,CAAC;mBACjB,OAAO;kBACR,OAAO;gBACT,MAAM;;qBA8CL,MAAM,GAAG,MAAM,GAAG,IAAI;iBACxB,MAAM;eACR,OAAO;;;;;;KAuQ2E,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;uBA/S2B;YAAE,MAAM,EAAE,CAAC,CAAA;SAAE,GAAG,OAAO;;UAiTtD,qNAAoC;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { SelectItems, SelectOption } from '../../select/types';
|
|
3
|
+
interface ComboboxOptions<T extends SelectOption> {
|
|
4
|
+
options: () => SelectItems<T>;
|
|
5
|
+
selectedOption: () => T | null | undefined;
|
|
6
|
+
model: Ref<string | number | null | undefined>;
|
|
7
|
+
search: Ref<string>;
|
|
8
|
+
open: Ref<boolean>;
|
|
9
|
+
disabled: () => boolean;
|
|
10
|
+
onClear: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function useCombobox<T extends SelectOption>(options: ComboboxOptions<T>): {
|
|
13
|
+
keyboard: Ref<boolean, boolean>;
|
|
14
|
+
input: import("vue").ShallowRef<{
|
|
15
|
+
$el: HTMLInputElement;
|
|
16
|
+
} | null, {
|
|
17
|
+
$el: HTMLInputElement;
|
|
18
|
+
} | null>;
|
|
19
|
+
displayValue: (value: string | number | null | undefined) => string;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
onInput: (event: Event) => void;
|
|
22
|
+
onHostClick: (event: MouseEvent) => void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=useCombobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCombobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/combobox/composables/useCombobox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGnE,UAAU,eAAe,CAAC,CAAC,SAAS,YAAY;IAC9C,OAAO,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,CAAA;IAC7B,cAAc,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;IAC1C,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAC9C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACnB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAA;IACvB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,YAAY,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;;;aAS7C,gBAAgB;;aAAhB,gBAAgB;;0BAEnB,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS;;qBAWvC,KAAK;yBAOD,UAAU;EAkBvC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type SelectItems, type SelectOption } from '../../select/types';
|
|
2
|
+
export declare function useOptionLabels<T extends SelectOption>(options: () => SelectItems<T>, selectedOptions: () => T[] | undefined): import("vue").Reactive<Map<string | number, string>>;
|
|
3
|
+
//# sourceMappingURL=useOptionLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOptionLabels.d.ts","sourceRoot":"","sources":["../../../../../src/components/combobox/composables/useOptionLabels.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAExF,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EACpD,OAAO,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,EAC7B,eAAe,EAAE,MAAM,CAAC,EAAE,GAAG,SAAS,wDAcvC"}
|
|
@@ -3,6 +3,7 @@ import type { SelectItems, SelectOption } from '../select/types';
|
|
|
3
3
|
declare const __VLS_export: <T extends SelectOption = SelectOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
5
|
options: SelectItems<T>;
|
|
6
|
+
selectedOptions?: T[];
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
ignoreFilter?: boolean;
|
|
8
9
|
loading?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiCombobox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-combobox/MultiCombobox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiCombobox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-combobox/MultiCombobox.vue"],"names":[],"mappings":"AA2LE,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAUhE,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,YAAY,GAAG,YAAY,EAC7D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAkZO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;iBA9YzC,WAAW,CAAC,CAAC,CAAC;0BACL,CAAC,EAAE;sBACP,MAAM;uBACL,OAAO;kBACZ,OAAO;oBACL,OAAO;eACZ,MAAM;kBACH,aAAa,CAAC,SAAS,CAAC;eAC3B,aAAa,CAAC,MAAM,CAAC;mBACjB,OAAO;kBACR,OAAO;gBACT,MAAM;;qBA+CP,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;iBACxB,MAAM;eACR,OAAO;;;;;;KAkV2E,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;uBAxX2B;YAAE,MAAM,EAAE,CAAC,CAAA;SAAE,GAAG,OAAO;;UA0XtD,sMAAoC;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import type { SelectItems, SelectOption } from '../../select/types';
|
|
3
3
|
interface MultiComboboxOptions<T extends SelectOption> {
|
|
4
4
|
options: () => SelectItems<T>;
|
|
5
|
+
selectedOptions: () => T[] | undefined;
|
|
5
6
|
model: Ref<Array<string | number>>;
|
|
6
7
|
open: Ref<boolean>;
|
|
7
8
|
disabled: () => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMultiCombobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-combobox/composables/useMultiCombobox.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useMultiCombobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-combobox/composables/useMultiCombobox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGnE,UAAU,oBAAoB,CAAC,CAAC,SAAS,YAAY;IACnD,OAAO,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,CAAA;IAC7B,eAAe,EAAE,MAAM,CAAC,EAAE,GAAG,SAAS,CAAA;IACtC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAClC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAA;IACvB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,YAAY,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;aAGvD,gBAAgB;;aAAhB,gBAAgB;;oBAWzB,MAAM,GAAG,MAAM;;yBAYV,UAAU;4BAKP,aAAa;EAY7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-link/NavLink.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavLink.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-link/NavLink.vue"],"names":[],"mappings":"AA4DE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,SAAS,CAAA;AASxD,KAAK,WAAW,GAAG,cAAc,GAAG;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAkGR,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;cA7GG,OAAO;YADT,OAAO;6EAiHtB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type VariantProps } from '../../lib/tv';
|
|
2
1
|
export declare const navLink: import("tailwind-variants").TVReturnType<{
|
|
3
2
|
active: {
|
|
4
3
|
true: "text-fg font-medium";
|
|
@@ -15,21 +14,5 @@ export declare const navLink: import("tailwind-variants").TVReturnType<{
|
|
|
15
14
|
false: "text-muted";
|
|
16
15
|
};
|
|
17
16
|
}, undefined>>;
|
|
18
|
-
export declare const navLinkLabel: import("tailwind-variants").TVReturnType<{
|
|
19
|
-
rail: {
|
|
20
|
-
true: "opacity-0 [transition:opacity_calc(var(--hn-duration-fast)/2)_var(--hn-ease-exit)]";
|
|
21
|
-
false: "opacity-100 [transition:opacity_var(--hn-duration-fast)_var(--hn-ease-enter)]";
|
|
22
|
-
};
|
|
23
|
-
}, undefined, "shrink-0 whitespace-nowrap", {
|
|
24
|
-
rail: {
|
|
25
|
-
true: "opacity-0 [transition:opacity_calc(var(--hn-duration-fast)/2)_var(--hn-ease-exit)]";
|
|
26
|
-
false: "opacity-100 [transition:opacity_var(--hn-duration-fast)_var(--hn-ease-enter)]";
|
|
27
|
-
};
|
|
28
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
29
|
-
rail: {
|
|
30
|
-
true: "opacity-0 [transition:opacity_calc(var(--hn-duration-fast)/2)_var(--hn-ease-exit)]";
|
|
31
|
-
false: "opacity-100 [transition:opacity_var(--hn-duration-fast)_var(--hn-ease-enter)]";
|
|
32
|
-
};
|
|
33
|
-
}, undefined>>;
|
|
34
|
-
export type NavLinkVariants = VariantProps<typeof navLink>;
|
|
17
|
+
export declare const navLinkLabel: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-sidebar-label shrink-0 whitespace-nowrap", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
35
18
|
//# sourceMappingURL=nav-link.variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-link.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-link/nav-link.variants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nav-link.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-link/nav-link.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;cAclB,CAAA;AAEF,eAAO,MAAM,YAAY,wMAEvB,CAAA"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
close: {
|
|
4
|
+
type: PropType<() => void>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
8
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
9
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
close: {
|
|
11
|
+
type: PropType<() => void>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
15
|
export default _default;
|
|
5
16
|
//# sourceMappingURL=DrawerScope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerScope.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/DrawerScope.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"DrawerScope.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/DrawerScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;;;cAM7B,QAAQ,CAAC,MAAM,IAAI,CAAC;;;;;;;cAApB,QAAQ,CAAC,MAAM,IAAI,CAAC;;;;AAHnD,wBAmBE"}
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
+
import { type SidebarState } from './context';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
label?: string;
|
|
4
|
+
closable?: boolean;
|
|
3
5
|
class?: string;
|
|
4
6
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default?(): unknown;
|
|
9
|
+
header?(props: {
|
|
10
|
+
state: SidebarState;
|
|
11
|
+
}): unknown;
|
|
12
|
+
icon?(props: {
|
|
13
|
+
state: SidebarState;
|
|
14
|
+
}): unknown;
|
|
15
|
+
wordmark?(props: {
|
|
16
|
+
state: SidebarState;
|
|
17
|
+
}): unknown;
|
|
18
|
+
footer?(props: {
|
|
19
|
+
state: SidebarState;
|
|
20
|
+
}): unknown;
|
|
9
21
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
default?: (props: typeof __VLS_16) => any;
|
|
14
|
-
} & {
|
|
15
|
-
footer?: (props: typeof __VLS_18) => any;
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
closable: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
26
|
declare const _default: typeof __VLS_export;
|
|
20
27
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AAyGE,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAYzD,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAMJ,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;IACnB,MAAM,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAA;IAChD,IAAI,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAA;IAC9C,QAAQ,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAA;IAClD,MAAM,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAA;CACjD,CAAC;AAuNJ,QAAA,MAAM,UAAU;cArOC,OAAO;6EAwOtB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/SidebarGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/SidebarGroup.vue"],"names":[],"mappings":"AAmFE,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAqJN,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;iBA9JI,OAAO;6EAiKzB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
as?: string;
|
|
3
|
+
class?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
as: string;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=SidebarLabel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarLabel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/SidebarLabel.vue"],"names":[],"mappings":"AAkCE,KAAK,WAAW,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA+CrD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;QAtDY,MAAM;6EAyDhC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -5,6 +5,7 @@ export interface SidebarContext {
|
|
|
5
5
|
toggle: () => void;
|
|
6
6
|
openMobile: () => void;
|
|
7
7
|
inDrawer?: boolean;
|
|
8
|
+
onTransitionRun?: (event: TransitionEvent) => void;
|
|
8
9
|
}
|
|
9
10
|
export declare function provideSidebar(context: SidebarContext): void;
|
|
10
11
|
export declare function useSidebar(): SidebarContext | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAElE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEzD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAElE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEzD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;CACnD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,QAErD;AAED,wBAAgB,UAAU,0BAEzB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const sidebarRoot: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
inDrawer: {
|
|
3
|
+
true: "w-full";
|
|
4
|
+
false: "hn-sidebar border-line w-64 border-e data-[state=rail]:w-14 data-[state=hidden]:w-0 data-[state=hidden]:border-e-transparent";
|
|
5
|
+
};
|
|
6
|
+
}, undefined, "flex h-full min-h-0 shrink-0 flex-col overflow-hidden", {
|
|
7
|
+
inDrawer: {
|
|
8
|
+
true: "w-full";
|
|
9
|
+
false: "hn-sidebar border-line w-64 border-e data-[state=rail]:w-14 data-[state=hidden]:w-0 data-[state=hidden]:border-e-transparent";
|
|
10
|
+
};
|
|
11
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
12
|
+
inDrawer: {
|
|
13
|
+
true: "w-full";
|
|
14
|
+
false: "hn-sidebar border-line w-64 border-e data-[state=rail]:w-14 data-[state=hidden]:w-0 data-[state=hidden]:border-e-transparent";
|
|
15
|
+
};
|
|
16
|
+
}, undefined>>;
|
|
17
|
+
export declare const sidebarRegion: import("tailwind-variants").TVReturnType<{
|
|
18
|
+
inDrawer: {
|
|
19
|
+
true: "w-full";
|
|
20
|
+
false: "w-[calc(16rem-1px)] px-3";
|
|
21
|
+
};
|
|
22
|
+
footer: {
|
|
23
|
+
true: "border-line w-full border-t";
|
|
24
|
+
};
|
|
25
|
+
}, undefined, "shrink-0 py-3", {
|
|
26
|
+
inDrawer: {
|
|
27
|
+
true: "w-full";
|
|
28
|
+
false: "w-[calc(16rem-1px)] px-3";
|
|
29
|
+
};
|
|
30
|
+
footer: {
|
|
31
|
+
true: "border-line w-full border-t";
|
|
32
|
+
};
|
|
33
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
34
|
+
inDrawer: {
|
|
35
|
+
true: "w-full";
|
|
36
|
+
false: "w-[calc(16rem-1px)] px-3";
|
|
37
|
+
};
|
|
38
|
+
footer: {
|
|
39
|
+
true: "border-line w-full border-t";
|
|
40
|
+
};
|
|
41
|
+
}, undefined>>;
|
|
42
|
+
export declare const sidebarLabel: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-sidebar-label min-w-0", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
43
|
+
export declare const sidebarBrand: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex min-h-8 items-center gap-2", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
44
|
+
export declare const sidebarIcon: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex size-8 shrink-0 items-center justify-center overflow-hidden [&>*]:size-full [&_img]:size-full [&_img]:object-contain [&_svg]:size-full", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
45
|
+
export declare const sidebarWordmark: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex flex-1 items-center [&_img]:max-h-8 [&_img]:max-w-full [&_img]:object-contain [&_svg]:max-h-8 [&_svg]:max-w-full", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
46
|
+
//# sourceMappingURL=sidebar.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/sidebar.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;cAStB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;cAMxB,CAAA;AAEF,eAAO,MAAM,YAAY,qLAEvB,CAAA;AAEF,eAAO,MAAM,YAAY,4LAEvB,CAAA;AAEF,eAAO,MAAM,WAAW,wSAEtB,CAAA;AAEF,eAAO,MAAM,eAAe,kRAE1B,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { TreeNode, TreeNodeSlot, TreeValue } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: TreeNode[];
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
defaultExpanded?: TreeValue[];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
class?: string;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
node?(props: TreeNodeSlot): unknown;
|
|
12
|
+
trailing?(props: TreeNodeSlot): unknown;
|
|
13
|
+
empty?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_ModelProps = {
|
|
16
|
+
modelValue?: TreeValue | TreeValue[] | null;
|
|
17
|
+
'expanded'?: TreeValue[];
|
|
18
|
+
};
|
|
19
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: TreeValue | TreeValue[] | null | undefined) => any;
|
|
22
|
+
"update:expanded": (value: TreeValue[] | undefined) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: TreeValue | TreeValue[] | null | undefined) => any) | undefined;
|
|
25
|
+
"onUpdate:expanded"?: ((value: TreeValue[] | undefined) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
defaultExpanded: TreeValue[];
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=Tree.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tree.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/tree/Tree.vue"],"names":[],"mappings":"AA+IE,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGhE,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,SAAS,EAAE,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAOJ,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAA;IACnC,QAAQ,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAA;IACvC,KAAK,CAAC,IAAI,OAAO,CAAA;CAClB,CAAC;AAeJ,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CACxB,CAAC;AAOF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA8OxD,QAAA,MAAM,UAAU;;;;;;;qBAtRQ,SAAS,EAAE;6EA0RjC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
selected: boolean;
|
|
3
|
+
indeterminate: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=TreeCheck.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeCheck.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/tree/TreeCheck.vue"],"names":[],"mappings":"AAwCE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,OAAO,CAAA;CAAE,CAAC;AA6FnE,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { TreeNode, TreeNodeState, TreeValue } from '../types';
|
|
3
|
+
interface Options {
|
|
4
|
+
items: TreeNode[];
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
defaultExpanded: TreeValue[];
|
|
7
|
+
}
|
|
8
|
+
export declare function useTree(props: Options, model: Ref<TreeValue | TreeValue[] | null | undefined>, expandedModel: Ref<TreeValue[] | undefined>, disabled: Ref<boolean>): {
|
|
9
|
+
selected: import("vue").ComputedRef<TreeNode[]>;
|
|
10
|
+
expanded: import("vue").WritableComputedRef<string[], string[]>;
|
|
11
|
+
key: (node: Pick<TreeNode, "value">) => string;
|
|
12
|
+
getChildren: (node: TreeNode) => TreeNode[] | undefined;
|
|
13
|
+
state: (node: TreeNode) => TreeNodeState;
|
|
14
|
+
select: (event: CustomEvent<{
|
|
15
|
+
value?: TreeNode;
|
|
16
|
+
}>) => void;
|
|
17
|
+
toggle: (node: TreeNode) => void;
|
|
18
|
+
keepRowClick: (event: CustomEvent<{
|
|
19
|
+
originalEvent: Event;
|
|
20
|
+
}>) => void;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTree.d.ts","sourceRoot":"","sources":["../../../../../src/components/tree/composables/useTree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGlE,UAAU,OAAO;IACf,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,SAAS,EAAE,CAAA;CAC7B;AAED,wBAAgB,OAAO,CACrB,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,GAAG,CAAC,SAAS,GAAG,SAAS,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC,EACtD,aAAa,EAAE,GAAG,CAAC,SAAS,EAAE,GAAG,SAAS,CAAC,EAC3C,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;;;gBAmCH,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC;wBAGf,QAAQ;kBAGd,QAAQ,KAAG,aAAa;oBAItB,WAAW,CAAC;QAAE,KAAK,CAAC,EAAE,QAAQ,CAAA;KAAE,CAAC;mBAUlC,QAAQ;0BAOD,WAAW,CAAC;QAAE,aAAa,EAAE,KAAK,CAAA;KAAE,CAAC;EAInE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const tree: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex w-full min-w-0 flex-col outline-none", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
2
|
+
export declare const treeRow: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
3
|
+
export declare const treeToggle: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-muted flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-sm rtl:-scale-x-100 [&>span>svg]:size-3.5", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
4
|
+
export declare const treeEmpty: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-muted px-2.5 py-2 text-sm", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
5
|
+
//# sourceMappingURL=tree.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/tree/tree.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,sMAEf,CAAA;AAEF,eAAO,MAAM,OAAO,mKAOlB,CAAA;AAEF,eAAO,MAAM,UAAU,yRAErB,CAAA;AAEF,eAAO,MAAM,SAAS,2LAEpB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type TreeValue = string | number;
|
|
2
|
+
export interface TreeNode {
|
|
3
|
+
value: TreeValue;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
children?: TreeNode[];
|
|
8
|
+
}
|
|
9
|
+
export interface TreeNodeState {
|
|
10
|
+
selected: boolean;
|
|
11
|
+
indeterminate: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface TreeNodeSlot extends TreeNodeState {
|
|
15
|
+
node: TreeNode;
|
|
16
|
+
expanded: boolean;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/tree/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEvC,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,OAAO,CAAA;CAClB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TreeNode, TreeNodeState, TreeValue } from '../types';
|
|
2
|
+
interface Entry {
|
|
3
|
+
node: TreeNode;
|
|
4
|
+
parent?: TreeValue;
|
|
5
|
+
children: TreeValue[];
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TreeIndex {
|
|
9
|
+
roots: TreeValue[];
|
|
10
|
+
entries: Map<TreeValue, Entry>;
|
|
11
|
+
}
|
|
12
|
+
export declare function indexTree(nodes: TreeNode[]): TreeIndex;
|
|
13
|
+
export declare function checkedState(tree: TreeIndex, values: TreeValue[]): Map<TreeValue, TreeNodeState>;
|
|
14
|
+
export declare function toggleChecked(tree: TreeIndex, values: TreeValue[], value: TreeValue): TreeValue[];
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../src/components/tree/utils/selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAElE,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,EAAE,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,OAAO,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;CAC/B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,SAAS,CActD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,iCAkBhE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,CA2BjG"}
|