@nubisco/ui 1.13.1 → 1.15.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/components/CommandPalette.vue.d.ts +9 -0
- package/dist/components/CommandPalette.vue.d.ts.map +1 -0
- package/dist/components/Menu.vue.d.ts +39 -0
- package/dist/components/Menu.vue.d.ts.map +1 -0
- package/dist/components/MenuBar.vue.d.ts +17 -0
- package/dist/components/MenuBar.vue.d.ts.map +1 -0
- package/dist/components/MenuBarItem.vue.d.ts +27 -0
- package/dist/components/MenuBarItem.vue.d.ts.map +1 -0
- package/dist/components/MenuDivider.vue.d.ts +4 -0
- package/dist/components/MenuDivider.vue.d.ts.map +1 -0
- package/dist/components/MenuItem.vue.d.ts +31 -0
- package/dist/components/MenuItem.vue.d.ts.map +1 -0
- package/dist/components/NumberInput.vue.d.ts +1 -1
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/Select.vue.d.ts +1 -1
- package/dist/components/Shell.vue.d.ts +9 -7
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/Submenu.vue.d.ts +18 -0
- package/dist/components/Submenu.vue.d.ts.map +1 -0
- package/dist/components/TextInput.vue.d.ts +2 -2
- package/dist/components/TextInput.vue.d.ts.map +1 -1
- package/dist/components/Tree.vue.d.ts +41 -0
- package/dist/components/Tree.vue.d.ts.map +1 -0
- package/dist/components/TreeContext.d.ts +5 -0
- package/dist/components/TreeContext.d.ts.map +1 -0
- package/dist/components/TreeNode.vue.d.ts +34 -0
- package/dist/components/TreeNode.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/composables/useCommandPalette.composable.d.ts +6 -0
- package/dist/composables/useCommandPalette.composable.d.ts.map +1 -0
- package/dist/composables/useCommandPalette.composable.js +50 -0
- package/dist/composables/useContextMenu.composable.d.ts +17 -0
- package/dist/composables/useContextMenu.composable.d.ts.map +1 -0
- package/dist/directives/ContextMenu.directive.d.ts +3 -0
- package/dist/directives/ContextMenu.directive.d.ts.map +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11480 -10521
- package/dist/index.mjs.map +1 -1
- package/dist/main.d.ts +15 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/plugins/commandPalette.d.ts +5 -0
- package/dist/plugins/commandPalette.d.ts.map +1 -0
- package/dist/plugins/commandPalette.js +7 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/src/plugins/commandPalette.ts +12 -0
- package/src/styles/variables/_layout.scss +2 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ICommandPaletteProps } from './CommandPalette.d';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ICommandPaletteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ICommandPaletteProps> & Readonly<{}>, {
|
|
3
|
+
openShortcut: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
maxResults: number;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=CommandPalette.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPalette.vue.d.ts","sourceRoot":"","sources":["../../src/components/CommandPalette.vue"],"names":[],"mappings":"AAwfA,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,oBAAoB,CAAA;AAkb3B,QAAA,MAAM,YAAY;;;;6EAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IMenuProps } from './Menu.d';
|
|
2
|
+
declare function setPosition(rect: {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
width: number;
|
|
7
|
+
}): void;
|
|
8
|
+
declare function setPositionXY(x: number, y: number): void;
|
|
9
|
+
declare function close(): void;
|
|
10
|
+
declare var __VLS_13: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_13) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<IMenuProps, {
|
|
15
|
+
setPosition: typeof setPosition;
|
|
16
|
+
setPositionXY: typeof setPositionXY;
|
|
17
|
+
close: typeof close;
|
|
18
|
+
el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
close: () => any;
|
|
21
|
+
"update:open": (value: boolean) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<IMenuProps> & Readonly<{
|
|
23
|
+
onClose?: (() => any) | undefined;
|
|
24
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
size: import("./Menu.d").TMenuItemSize;
|
|
27
|
+
maxWidth: number;
|
|
28
|
+
open: boolean;
|
|
29
|
+
minWidth: number;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Menu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.vue.d.ts","sourceRoot":"","sources":["../../src/components/Menu.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,UAAU,EAAgB,MAAM,UAAU,CAAA;AA+BxD,iBAAS,WAAW,CAAC,IAAI,EAAE;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd,QAGA;AAED,iBAAS,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,QAG1C;AAED,iBAAS,KAAK,SAGb;AAmMD,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;AAOhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;6EAKd,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,17 @@
|
|
|
1
|
+
import type { IMenuBarProps } from './Menu.d';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<IMenuBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IMenuBarProps> & Readonly<{}>, {
|
|
7
|
+
maxWidth: string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=MenuBar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/MenuBar.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AA+H7C,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;AAO/C,QAAA,MAAM,UAAU;;6EAGd,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,27 @@
|
|
|
1
|
+
import type { TMenuItemSize } from './Menu.d';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
size?: TMenuItemSize;
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
maxWidth?: number;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {}, __VLS_13: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_13) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
size: TMenuItemSize;
|
|
16
|
+
maxWidth: number;
|
|
17
|
+
minWidth: number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=MenuBarItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuBarItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/MenuBarItem.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AAiKJ,QAAA,IAAI,OAAO,IAAU,EAAsB,QAAQ,IAAY,CAAE;AACjE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAMhD,QAAA,MAAM,UAAU;UA7KL,aAAa;cAET,MAAM;cADN,MAAM;6EA+KnB,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
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=MenuDivider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuDivider.vue.d.ts","sourceRoot":"","sources":["../../src/components/MenuDivider.vue"],"names":[],"mappings":"AA8BA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IMenuItemProps } from './Menu.d';
|
|
2
|
+
declare var __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
trailing?: (props: typeof __VLS_11) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<IMenuItemProps, {
|
|
7
|
+
el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
select: () => any;
|
|
10
|
+
highlight: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<IMenuItemProps> & Readonly<{
|
|
12
|
+
onSelect?: (() => any) | undefined;
|
|
13
|
+
onHighlight?: (() => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
selected: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
icon: string;
|
|
18
|
+
shortcut: string;
|
|
19
|
+
danger: boolean;
|
|
20
|
+
selectable: boolean;
|
|
21
|
+
radioGroup: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=MenuItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/MenuItem.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,UAAU,CAAA;AA+J5D,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAOjD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;6EAKd,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"}
|
|
@@ -22,12 +22,12 @@ declare const __VLS_export: import("vue").DefineComponent<INumberInputProps, {
|
|
|
22
22
|
required: boolean;
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
modelValue: number | null;
|
|
25
|
+
placeholder: string;
|
|
25
26
|
step: number;
|
|
26
27
|
warning: string;
|
|
27
28
|
helper: string;
|
|
28
29
|
min: number;
|
|
29
30
|
max: number;
|
|
30
|
-
placeholder: string;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
|
33
33
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/NumberInput.vue"],"names":[],"mappings":"AA0hBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAKtD,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAukBD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;gBA3kBH,MAAM,GAAG,IAAI
|
|
1
|
+
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/NumberInput.vue"],"names":[],"mappings":"AA0hBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAKtD,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAukBD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;gBA3kBH,MAAM,GAAG,IAAI;;UAGnB,MAAM;;;SAFP,MAAM;SACN,MAAM;6EA8kBZ,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -27,10 +27,10 @@ declare const __VLS_base: import("vue").DefineComponent<ISelectProps, {
|
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
modelValue: string | number | Array<string | number> | null;
|
|
29
29
|
options: ISelectOption[];
|
|
30
|
+
placeholder: string;
|
|
30
31
|
multiple: boolean;
|
|
31
32
|
warning: string;
|
|
32
33
|
helper: string;
|
|
33
|
-
placeholder: string;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
36
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IShellProps } from './Shell.d';
|
|
2
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
'sidebar-logo'?: (props: typeof __VLS_1) => any;
|
|
5
5
|
} & {
|
|
@@ -9,17 +9,19 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
} & {
|
|
10
10
|
notification?: (props: typeof __VLS_7) => any;
|
|
11
11
|
} & {
|
|
12
|
-
|
|
12
|
+
menubar?: (props: typeof __VLS_9) => any;
|
|
13
13
|
} & {
|
|
14
|
-
'topbar-
|
|
14
|
+
'topbar-left'?: (props: typeof __VLS_11) => any;
|
|
15
15
|
} & {
|
|
16
|
-
|
|
16
|
+
'topbar-right'?: (props: typeof __VLS_13) => any;
|
|
17
17
|
} & {
|
|
18
|
-
|
|
18
|
+
fixedbar?: (props: typeof __VLS_15) => any;
|
|
19
19
|
} & {
|
|
20
|
-
|
|
20
|
+
default?: (props: typeof __VLS_17) => any;
|
|
21
21
|
} & {
|
|
22
|
-
|
|
22
|
+
bottom?: (props: typeof __VLS_19) => any;
|
|
23
|
+
} & {
|
|
24
|
+
inspector?: (props: typeof __VLS_21) => any;
|
|
23
25
|
};
|
|
24
26
|
declare const __VLS_base: import("vue").DefineComponent<IShellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IShellProps> & Readonly<{}>, {
|
|
25
27
|
inspectorVisible: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shell.vue.d.ts","sourceRoot":"","sources":["../../src/components/Shell.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shell.vue.d.ts","sourceRoot":"","sources":["../../src/components/Shell.vue"],"names":[],"mappings":"AAsSA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AA+KvC,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClO,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAClD;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;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,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKlD,QAAA,MAAM,UAAU;;;6EAGd,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,18 @@
|
|
|
1
|
+
import type { ISubmenuProps } from './Menu.d';
|
|
2
|
+
declare var __VLS_23: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_23) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ISubmenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ISubmenuProps> & Readonly<{}>, {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
icon: string;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Submenu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Submenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/Submenu.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,UAAU,CAAA;AAoQ3D,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;AAMhD,QAAA,MAAM,UAAU;;;6EAGd,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"}
|
|
@@ -58,16 +58,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
58
58
|
id: string;
|
|
59
59
|
required: boolean;
|
|
60
60
|
disabled: boolean;
|
|
61
|
+
placeholder: string;
|
|
61
62
|
step: string | number;
|
|
63
|
+
highlight: (text: string) => string;
|
|
62
64
|
warning: string;
|
|
63
65
|
helper: string;
|
|
64
66
|
min: string | number;
|
|
65
67
|
max: string | number;
|
|
66
|
-
placeholder: string;
|
|
67
68
|
readonly: boolean;
|
|
68
69
|
maxlength: number;
|
|
69
70
|
multiline: boolean;
|
|
70
|
-
highlight: (text: string) => string;
|
|
71
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
72
72
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
73
73
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.vue"],"names":[],"mappings":"AA6hBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAO9D,MAAM,WAAW,eAAgB,SAAQ,uBAAuB;IAC9D,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACrC;AAED,KAAK,WAAW,GAAG,eAAe,CAAC;AAyFnC,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AA2BF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAoYxD,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACjI,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ9C,QAAA,MAAM,UAAU;;;;;;;;;;;;UA7hBP,MAAM;UAQN,MAAM
|
|
1
|
+
{"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.vue"],"names":[],"mappings":"AA6hBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAO9D,MAAM,WAAW,eAAgB,SAAQ,uBAAuB;IAC9D,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACrC;AAED,KAAK,WAAW,GAAG,eAAe,CAAC;AAyFnC,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AA2BF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAoYxD,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACjI,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ9C,QAAA,MAAM,UAAU;;;;;;;;;;;;UA7hBP,MAAM;UAQN,MAAM;;;;;;;UALN,MAAM,GAAG,MAAM;eAcV,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM;;;SAhB9B,MAAM,GAAG,MAAM;SACf,MAAM,GAAG,MAAM;;eAET,MAAM;eAEN,OAAO;6EA4hBnB,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,41 @@
|
|
|
1
|
+
import type { ITreeProps, ITreeDropEvent } from './Tree.d';
|
|
2
|
+
/**
|
|
3
|
+
* Expand a set of node IDs programmatically.
|
|
4
|
+
*/
|
|
5
|
+
declare function expandIds(ids: string[]): void;
|
|
6
|
+
/**
|
|
7
|
+
* Collapse all expanded nodes.
|
|
8
|
+
*/
|
|
9
|
+
declare function collapseAll(): void;
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<ITreeProps, {
|
|
15
|
+
expandIds: typeof expandIds;
|
|
16
|
+
collapseAll: typeof collapseAll;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
select: (id: string) => any;
|
|
19
|
+
drop: (event: ITreeDropEvent) => any;
|
|
20
|
+
toggle: (id: string, expanded: boolean) => any;
|
|
21
|
+
"update:modelValue": (id: string) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<ITreeProps> & Readonly<{
|
|
23
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
24
|
+
onDrop?: ((event: ITreeDropEvent) => any) | undefined;
|
|
25
|
+
onToggle?: ((id: string, expanded: boolean) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((id: string) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
size: "sm" | "md";
|
|
29
|
+
modelValue: string | null;
|
|
30
|
+
compact: boolean;
|
|
31
|
+
draggable: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=Tree.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tree.vue.d.ts","sourceRoot":"","sources":["../../src/components/Tree.vue"],"names":[],"mappings":"AAoNA,OAAO,KAAK,EACV,UAAU,EAGV,cAAc,EAEf,MAAM,UAAU,CAAA;AA0FjB;;GAEG;AACH,iBAAS,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAE/B;AAED;;GAEG;AACH,iBAAS,WAAW,SAEnB;AA2GD,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;AAO/C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;6EAKd,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 @@
|
|
|
1
|
+
{"version":3,"file":"TreeContext.d.ts","sourceRoot":"","sources":["../../src/components/TreeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,eAAO,MAAM,WAAW,EAAwB,YAAY,CAAC,YAAY,CAAC,CAAA;AAC1E,eAAO,MAAM,iBAAiB,EAA8B,YAAY,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ITreeNodeProps } from './Tree.d';
|
|
2
|
+
declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
label?: (props: typeof __VLS_11) => any;
|
|
5
|
+
} & {
|
|
6
|
+
actions?: (props: typeof __VLS_13) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: typeof __VLS_15) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<ITreeNodeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
select: (id: string) => any;
|
|
12
|
+
contextmenu: (e: MouseEvent, id: string) => any;
|
|
13
|
+
dblclick: (id: string) => any;
|
|
14
|
+
toggle: (id: string, expanded: boolean) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<ITreeNodeProps> & Readonly<{
|
|
16
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
17
|
+
onContextmenu?: ((e: MouseEvent, id: string) => any) | undefined;
|
|
18
|
+
onDblclick?: ((id: string) => any) | undefined;
|
|
19
|
+
onToggle?: ((id: string, expanded: boolean) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
icon: string;
|
|
23
|
+
draggable: boolean | null;
|
|
24
|
+
depth: number | null;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=TreeNode.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeNode.vue.d.ts","sourceRoot":"","sources":["../../src/components/TreeNode.vue"],"names":[],"mappings":"AA+bA,OAAO,KAAK,EAAE,cAAc,EAAmC,MAAM,UAAU,CAAA;AAkU/E,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;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;AAKhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;6EAId,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":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;iBA0Ff,GAAG;;AADlB,wBAMC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type InjectionKey } from 'vue';
|
|
2
|
+
import type { ICommandPaletteState } from '../components/CommandPalette.d';
|
|
3
|
+
export declare const NB_COMMAND_PALETTE_KEY: InjectionKey<ICommandPaletteState>;
|
|
4
|
+
export declare function createCommandPaletteState(): ICommandPaletteState;
|
|
5
|
+
export declare function useCommandPalette(): ICommandPaletteState;
|
|
6
|
+
//# sourceMappingURL=useCommandPalette.composable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommandPalette.composable.d.ts","sourceRoot":"","sources":["../../src/composables/useCommandPalette.composable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,KAAK,CAAA;AAC9D,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAM,gCAAgC,CAAA;AAEvC,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,oBAAoB,CACxC,CAAA;AAE9B,wBAAgB,yBAAyB,IAAI,oBAAoB,CA8ChE;AAED,wBAAgB,iBAAiB,IAAI,oBAAoB,CASxD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ref, reactive, inject } from 'vue';
|
|
2
|
+
export const NB_COMMAND_PALETTE_KEY = Symbol('nb-command-palette');
|
|
3
|
+
export function createCommandPaletteState() {
|
|
4
|
+
const commands = reactive(new Map());
|
|
5
|
+
const isOpen = ref(false);
|
|
6
|
+
const activeContext = ref(undefined);
|
|
7
|
+
const searchFilter = ref(undefined);
|
|
8
|
+
function register(command) {
|
|
9
|
+
commands.set(command.id, command);
|
|
10
|
+
}
|
|
11
|
+
function registerMany(cmds) {
|
|
12
|
+
for (const cmd of cmds) {
|
|
13
|
+
commands.set(cmd.id, cmd);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function unregister(id) {
|
|
17
|
+
commands.delete(id);
|
|
18
|
+
}
|
|
19
|
+
function open(filter) {
|
|
20
|
+
searchFilter.value = filter;
|
|
21
|
+
isOpen.value = true;
|
|
22
|
+
}
|
|
23
|
+
function close() {
|
|
24
|
+
isOpen.value = false;
|
|
25
|
+
searchFilter.value = undefined;
|
|
26
|
+
}
|
|
27
|
+
function setContext(context) {
|
|
28
|
+
activeContext.value = context;
|
|
29
|
+
}
|
|
30
|
+
return reactive({
|
|
31
|
+
commands,
|
|
32
|
+
isOpen,
|
|
33
|
+
activeContext,
|
|
34
|
+
searchFilter,
|
|
35
|
+
register,
|
|
36
|
+
registerMany,
|
|
37
|
+
unregister,
|
|
38
|
+
open,
|
|
39
|
+
close,
|
|
40
|
+
setContext,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export function useCommandPalette() {
|
|
44
|
+
const state = inject(NB_COMMAND_PALETTE_KEY);
|
|
45
|
+
if (!state) {
|
|
46
|
+
throw new Error('useCommandPalette() requires NbCommandPalettePlugin to be installed. ' +
|
|
47
|
+
'Call app.use(NbCommandPalettePlugin) in your app setup.');
|
|
48
|
+
}
|
|
49
|
+
return state;
|
|
50
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function useContextMenu(): {
|
|
2
|
+
isOpen: import("vue").Ref<boolean, boolean>;
|
|
3
|
+
position: import("vue").Ref<{
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}, {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
} | {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}>;
|
|
13
|
+
onContextMenu: (e: MouseEvent) => void;
|
|
14
|
+
open: (x: number, y: number) => void;
|
|
15
|
+
close: () => void;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useContextMenu.composable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContextMenu.composable.d.ts","sourceRoot":"","sources":["../../src/composables/useContextMenu.composable.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc;;;;;;;;;;;;uBAIF,UAAU;cAUnB,MAAM,KAAK,MAAM;;EAMnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.directive.d.ts","sourceRoot":"","sources":["../../src/directives/ContextMenu.directive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAoB,MAAM,KAAK,CAAA;AAQhD,MAAM,CAAC,OAAO,WAAW,GAAG,EAAE,GAAG,QAwChC"}
|