@firstnoodle-ui/bui 0.0.33 → 0.0.35
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/LICENSE +21 -21
- package/dist/bui.css +1 -1
- package/dist/components/calendar-view/CalendarView.vue.d.ts +6 -20
- package/dist/components/calendar-view/index.d.ts +3 -0
- package/dist/components/calendar-view/types.d.ts +9 -0
- package/dist/components/calendar-view/utils/types.d.ts +1 -1
- package/dist/components/calendar-view/utils/utils/format.d.ts +2 -11
- package/dist/components/dialog/Dialog.vue.d.ts +15 -9
- package/dist/components/modal/Modal.vue.d.ts +12 -4
- package/dist/components/pop-calendar/PopCalendar.vue.d.ts +322 -16
- package/dist/components/side-over/SideOver.vue.d.ts +101 -10
- package/dist/components/switch/Switch.vue.d.ts +4 -8
- package/dist/components/tag-input/TagInput.vue.d.ts +16 -7
- package/dist/components/tag-input/components/entry-tag/EntryTag.vue.d.ts +10 -0
- package/dist/components/tag-input/components/entry-tag/index.d.ts +1 -0
- package/dist/components/tag-input/components/index.d.ts +1 -0
- package/dist/components/tag-input/index.d.ts +2 -0
- package/dist/components/tag-input/types.d.ts +9 -0
- package/dist/components/tag-input/validators.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +2 -13
- package/dist/components/tree-list/TreeList.vue.d.ts +1 -1
- package/dist/components/tree-list/index.d.ts +2 -1
- package/dist/components/tree-list/{types.d.ts → tree-list-types.d.ts} +10 -1
- package/dist/components/tree-list/tree-list-utils.d.ts +29 -0
- package/dist/components/window-frame/WindowFrame.vue.d.ts +3 -1
- package/dist/index.mjs +5546 -5352
- package/package.json +2 -2
- package/dist/components/tag-input/index 2.d.ts +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TreeNode, TreeNodeAction, TreeNodeIdKey, TreeNodeLabelKey, TreeNodeParentIdKey } from './tree-list-types';
|
|
2
|
+
export declare const openPath: <T>(path: TreeNode<T>[]) => void;
|
|
3
|
+
export declare const getNodeValueByPath: <T, K extends keyof TreeNode<T>>(root: TreeNode<T>, path: TreeNode<T>[], key: K) => TreeNode<T>[K] | undefined;
|
|
4
|
+
export declare const setNodeValueByPath: <T, K extends keyof TreeNode<T>>(root: TreeNode<T>, path: TreeNode<T>[], key: K, newValue: TreeNode<T>[K]) => boolean;
|
|
5
|
+
export declare const setNodeObjectValueByPath: <T, K extends keyof T>(root: TreeNode<T>, path: TreeNode<T>[], key: K, newValue: T[K]) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Flattens a tree structure into an array of nodes with their paths
|
|
8
|
+
* @param root The root node of the tree
|
|
9
|
+
* @param path Optional initial path (used internally for recursion)
|
|
10
|
+
* @returns Array of objects containing the node and its path from root
|
|
11
|
+
*/
|
|
12
|
+
export declare const flattenTree: <T>(root: TreeNode<T>, path?: TreeNode<T>[]) => Array<{
|
|
13
|
+
node: TreeNode<T>;
|
|
14
|
+
path: TreeNode<T>[];
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Alternative flatten function that returns just the nodes in depth-first order
|
|
18
|
+
* @param root The root node of the tree
|
|
19
|
+
* @returns Array of all nodes in depth-first traversal order
|
|
20
|
+
*/
|
|
21
|
+
export declare const flattenTreeNodes: <T>(root: TreeNode<T>) => TreeNode<T>[];
|
|
22
|
+
export declare const buildTree: <T extends object>({ items, itemIdField, parentIdField, labelField, treeIsOpen, actions, }: {
|
|
23
|
+
items: T[];
|
|
24
|
+
itemIdField: TreeNodeIdKey<T>;
|
|
25
|
+
parentIdField: TreeNodeParentIdKey<T>;
|
|
26
|
+
labelField: TreeNodeLabelKey<T>;
|
|
27
|
+
treeIsOpen: boolean;
|
|
28
|
+
actions: TreeNodeAction<T>[];
|
|
29
|
+
}) => TreeNode<T> | null;
|
|
@@ -9,7 +9,9 @@ declare function __VLS_template(): {
|
|
|
9
9
|
rootEl: HTMLDivElement;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
13
|
+
focus: void | undefined;
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
13
15
|
windowRef: HTMLDivElement;
|
|
14
16
|
}, HTMLDivElement>;
|
|
15
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|