@lumx/vue 4.28.0-next.2 → 4.28.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.
|
@@ -61,3 +61,13 @@ export declare const LazyParentItem: {
|
|
|
61
61
|
decorators: ((story: any, context: any) => any)[];
|
|
62
62
|
render: ({ snacks, onSnacksChange }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
63
63
|
};
|
|
64
|
+
export declare const WithSections: {
|
|
65
|
+
args: {
|
|
66
|
+
value: {
|
|
67
|
+
text: string;
|
|
68
|
+
selected: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
decorators: ((story: any, context: any) => any)[];
|
|
72
|
+
render: ({ value, onUpdate }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
73
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TreeListSectionProps as UIProps, TreeListSectionPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/TreeList/TreeListSection';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type TreeListSectionProps = VueToJSXProps<UIProps, TreeListSectionPropsToOverride | 'hidden'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Section label, shown as the section title (visual only), when the `label` slot is not used. Without a
|
|
6
|
+
* label, the section is a plain group.
|
|
7
|
+
*/
|
|
8
|
+
label?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* TreeListSection component: a section of root tree items in a `TreeList`, with an optional label (`label`
|
|
12
|
+
* prop or slot). Default slot: the `TreeListItem` elements.
|
|
13
|
+
*
|
|
14
|
+
* - The sections get a divider between them (and between them and the standalone tree items). Use a section
|
|
15
|
+
* without a label as a separator.
|
|
16
|
+
* - Root level only: the tree items of a section are root tree items. Do not use it in a tree item.
|
|
17
|
+
* - With `filter="auto"`, the section is hidden when the filter hides all of its tree items.
|
|
18
|
+
* - The label is visual only: the section has no ARIA semantics (a group in a tree changes the tree item levels).
|
|
19
|
+
* - Renders nothing without children.
|
|
20
|
+
*
|
|
21
|
+
* @param props Component props.
|
|
22
|
+
* @return Vue element.
|
|
23
|
+
*/
|
|
24
|
+
declare const TreeListSection: import('vue').DefineSetupFnComponent<TreeListSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "hidden" | TreeListSectionPropsToOverride> & {
|
|
25
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
26
|
+
} & {
|
|
27
|
+
/**
|
|
28
|
+
* Section label, shown as the section title (visual only), when the `label` slot is not used. Without a
|
|
29
|
+
* label, the section is a plain group.
|
|
30
|
+
*/
|
|
31
|
+
label?: string;
|
|
32
|
+
} & {}, import('vue').PublicProps>;
|
|
33
|
+
export { COMPONENT_NAME, CLASSNAME };
|
|
34
|
+
export default TreeListSection;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { default as TreeListItem } from './TreeListItem';
|
|
2
|
+
import { default as TreeListSection } from './TreeListSection';
|
|
2
3
|
export type { TreeListProps, SingleTreeListProps, MultipleTreeListProps } from './TreeList';
|
|
3
4
|
export type { TreeListItemProps } from './TreeListItem';
|
|
5
|
+
export type { TreeListSectionProps } from './TreeListSection';
|
|
4
6
|
/**
|
|
5
|
-
* TreeList compound component: `TreeList.Item` is the tree item (also exported as `TreeListItem`)
|
|
7
|
+
* TreeList compound component: `TreeList.Item` is the tree item (also exported as `TreeListItem`), and
|
|
8
|
+
* `TreeList.Section` a section of root tree items (also exported as `TreeListSection`).
|
|
6
9
|
*/
|
|
7
10
|
export declare const TreeList: import('vue').DefineSetupFnComponent<import('./TreeList').TreeListProps, {
|
|
8
11
|
select: (option: {
|
|
@@ -30,5 +33,11 @@ export declare const TreeList: import('vue').DefineSetupFnComponent<import('./Tr
|
|
|
30
33
|
onClick?: (() => any) | undefined;
|
|
31
34
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
32
35
|
}, import('vue').PublicProps>;
|
|
36
|
+
/** A section of root tree items, with an optional label (a divider between the sections). */
|
|
37
|
+
Section: import('vue').DefineSetupFnComponent<import('./TreeListSection').TreeListSectionProps, {}, {}, Omit<import('@lumx/core/js/components/TreeList/TreeListSection').TreeListSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "hidden" | import('@lumx/core/js/components/TreeList/TreeListSection').TreeListSectionPropsToOverride> & {
|
|
38
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
39
|
+
} & {
|
|
40
|
+
label?: string;
|
|
41
|
+
} & {}, import('vue').PublicProps>;
|
|
33
42
|
};
|
|
34
|
-
export { TreeListItem };
|
|
43
|
+
export { TreeListItem, TreeListSection };
|