@nexxtmove/ui 1.31.1 → 1.32.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/molecules/Tree/Tree.vue.d.ts +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1110 -1075
- package/package.json +1 -1
- package/src/components/molecules/Tree/Tree.vue +139 -6
- package/src/index.ts +5 -1
|
@@ -13,19 +13,35 @@ export interface NexxtTreeProps {
|
|
|
13
13
|
/** Accessible name for the tree, e.g. the heading above it. */
|
|
14
14
|
label: string;
|
|
15
15
|
}
|
|
16
|
+
export type NexxtTreeSlots = {
|
|
17
|
+
/** Actions at the end of a row, e.g. a delete button. Hidden until the row is hovered or holds focus, and always shown on a coarse pointer. Clicks and keys inside it never reach the tree, so they neither select the row nor move focus. Put `tabindex` on every focusable element in it: it is `0` only on the row that is the tree's tab stop, which keeps one extra Tab stop for the whole tree. Keep the content at most 24px high, or the rows grow. */
|
|
18
|
+
'node-actions'?(props: {
|
|
19
|
+
node: NexxtTreeNode;
|
|
20
|
+
tabindex: 0 | -1;
|
|
21
|
+
}): unknown;
|
|
22
|
+
};
|
|
16
23
|
type __VLS_Props = NexxtTreeProps;
|
|
24
|
+
type __VLS_Slots = NexxtTreeSlots;
|
|
17
25
|
type __VLS_ModelProps = {
|
|
18
26
|
'selected'?: string | null;
|
|
19
27
|
/** Ids of the nodes whose children are hidden. Tracking the collapsed ones makes "everything open" the default. */
|
|
20
28
|
'collapsed'?: string[];
|
|
21
29
|
};
|
|
22
30
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
-
declare const
|
|
31
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
32
|
+
focusNode: (id: string) => Promise<boolean>;
|
|
33
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
34
|
"update:selected": (value: string | null) => any;
|
|
25
35
|
"update:collapsed": (value: string[]) => any;
|
|
26
36
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
37
|
"onUpdate:selected"?: ((value: string | null) => any) | undefined;
|
|
28
38
|
"onUpdate:collapsed"?: ((value: string[]) => any) | undefined;
|
|
29
39
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
41
|
declare const _default: typeof __VLS_export;
|
|
31
42
|
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { CustomIconName } from './components/atoms/Icon/customIcons';
|
|
|
7
7
|
export type { NexxtTabItem } from './components/molecules/Tabs/Tabs.vue';
|
|
8
8
|
export type { NexxtPageCardProps, NexxtPageCardSlots, } from './components/molecules/PageCard/PageCard.vue';
|
|
9
9
|
export type { NexxtPageMockupType } from './components/molecules/PageMockup/PageMockup.vue';
|
|
10
|
-
export type { NexxtTreeNode, NexxtTreeProps } from './components/molecules/Tree/Tree.vue';
|
|
10
|
+
export type { NexxtTreeNode, NexxtTreeProps, NexxtTreeSlots, } from './components/molecules/Tree/Tree.vue';
|
|
11
11
|
export type { NexxtPlaceholderGroup, NexxtPlaceholderInputMessages, NexxtPlaceholderInputProps, } from './components/molecules/PlaceholderInput/PlaceholderInput.vue';
|
|
12
12
|
export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
13
13
|
export type { EditorBackgroundSizeMessages, EditorBackgroundSizeValue, } from './components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue';
|