@firstnoodle-ui/bui 0.0.27 → 0.0.29

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.
Files changed (32) hide show
  1. package/LICENSE +21 -21
  2. package/dist/bui.css +1 -1
  3. package/dist/components/calendar-view/CalendarView.vue.d.ts +21 -0
  4. package/dist/components/calendar-view/components/DateButton.vue.d.ts +10 -0
  5. package/dist/components/calendar-view/components/DecadeView.vue.d.ts +12 -0
  6. package/dist/components/calendar-view/components/MonthView.vue.d.ts +17 -0
  7. package/dist/components/calendar-view/components/YearView.vue.d.ts +13 -0
  8. package/dist/components/calendar-view/composables/useCalendar.d.ts +44 -0
  9. package/dist/components/calendar-view/index.d.ts +1 -0
  10. package/dist/components/calendar-view/utils/enums.d.ts +29 -0
  11. package/dist/components/calendar-view/utils/index.d.ts +23 -0
  12. package/dist/components/calendar-view/utils/types.d.ts +12 -0
  13. package/dist/components/calendar-view/utils/utils/calendar.d.ts +22 -0
  14. package/dist/components/calendar-view/utils/utils/date.d.ts +15 -0
  15. package/dist/components/calendar-view/utils/utils/format.d.ts +18 -0
  16. package/dist/components/calendar-view/utils/utils/time.d.ts +35 -0
  17. package/dist/components/horizontal-layout/Aside.vue.d.ts +2 -6
  18. package/dist/components/index.d.ts +3 -0
  19. package/dist/components/modal/Modal.vue.d.ts +9 -3
  20. package/dist/components/notification-badge/NotificationBadge.vue.d.ts +5 -0
  21. package/dist/components/notification-badge/index.d.ts +1 -0
  22. package/dist/components/select-list/components/option-group/OptionGroup.vue.d.ts +1 -0
  23. package/dist/components/select-list/components/select-list-option/SelectListOption.vue.d.ts +1 -0
  24. package/dist/components/select-list/types.d.ts +1 -0
  25. package/dist/components/tree-list/InputNode.vue.d.ts +90 -0
  26. package/dist/components/tree-list/TreeList.vue.d.ts +27 -0
  27. package/dist/components/tree-list/index.d.ts +2 -0
  28. package/dist/components/tree-list/types.d.ts +14 -0
  29. package/dist/components/types.d.ts +1 -1
  30. package/dist/index.mjs +5915 -5100
  31. package/dist/utils/capitalizeFirstLetter.d.ts +1 -0
  32. package/package.json +22 -10
@@ -11,9 +11,15 @@ declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
12
12
  slots: {
13
13
  default?(_: {}): any;
14
- header?(_: {}): any;
15
- main?(_: {}): any;
16
- footer?(_: {}): any;
14
+ header?(_: {
15
+ close: () => boolean;
16
+ }): any;
17
+ main?(_: {
18
+ close: () => boolean;
19
+ }): any;
20
+ footer?(_: {
21
+ close: () => boolean;
22
+ }): any;
17
23
  };
18
24
  refs: {
19
25
  windowRef: ({
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ inside?: boolean;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BNotificationBadge } from './NotificationBadge.vue';
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  label?: string;
3
+ small?: boolean;
3
4
  };
4
5
  declare function __VLS_template(): {
5
6
  attrs: Partial<{}>;
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  option: SelectListOption;
5
5
  selected: boolean;
6
6
  search?: string;
7
+ small?: boolean;
7
8
  variant?: SelectOptionVariant;
8
9
  };
9
10
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -39,4 +39,5 @@ export type SelectListProps = {
39
39
  selectAll?: boolean;
40
40
  selected: SelectListOption | null | SelectListOption[];
41
41
  showSelection?: boolean;
42
+ small?: boolean;
42
43
  };
@@ -0,0 +1,90 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ indentation: number;
4
+ saving: boolean;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (...args: any[]) => void;
8
+ cancel: (...args: any[]) => void;
9
+ save: (...args: any[]) => void;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onChange?: ((...args: any[]) => any) | undefined;
12
+ onCancel?: ((...args: any[]) => any) | undefined;
13
+ onSave?: ((...args: any[]) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ container: ({
16
+ $: import('vue').ComponentInternalInstance;
17
+ $data: {};
18
+ $props: {
19
+ readonly align?: import('..').TAlignment | undefined;
20
+ readonly col?: boolean | undefined;
21
+ readonly inline?: boolean | undefined;
22
+ readonly justify?: import('..').TJustification | undefined;
23
+ readonly tag?: string | undefined;
24
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
25
+ $attrs: {
26
+ [x: string]: unknown;
27
+ };
28
+ $refs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $slots: Readonly<{
32
+ [name: string]: import('vue').Slot<any> | undefined;
33
+ }>;
34
+ $root: import('vue').ComponentPublicInstance | null;
35
+ $parent: import('vue').ComponentPublicInstance | null;
36
+ $host: Element | null;
37
+ $emit: (event: string, ...args: any[]) => void;
38
+ $el: any;
39
+ $options: import('vue').ComponentOptionsBase<Readonly<{
40
+ align?: import('..').TAlignment;
41
+ col?: boolean;
42
+ inline?: boolean;
43
+ justify?: import('..').TJustification;
44
+ tag?: string;
45
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
46
+ col: boolean;
47
+ tag: string;
48
+ align: import('..').TAlignment;
49
+ inline: boolean;
50
+ justify: import('..').TJustification;
51
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
52
+ beforeCreate?: (() => void) | (() => void)[];
53
+ created?: (() => void) | (() => void)[];
54
+ beforeMount?: (() => void) | (() => void)[];
55
+ mounted?: (() => void) | (() => void)[];
56
+ beforeUpdate?: (() => void) | (() => void)[];
57
+ updated?: (() => void) | (() => void)[];
58
+ activated?: (() => void) | (() => void)[];
59
+ deactivated?: (() => void) | (() => void)[];
60
+ beforeDestroy?: (() => void) | (() => void)[];
61
+ beforeUnmount?: (() => void) | (() => void)[];
62
+ destroyed?: (() => void) | (() => void)[];
63
+ unmounted?: (() => void) | (() => void)[];
64
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
65
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
66
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
67
+ };
68
+ $forceUpdate: () => void;
69
+ $nextTick: typeof import('vue').nextTick;
70
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
71
+ } & Readonly<{
72
+ col: boolean;
73
+ tag: string;
74
+ align: import('..').TAlignment;
75
+ inline: boolean;
76
+ justify: import('..').TJustification;
77
+ }> & Omit<Readonly<{
78
+ align?: import('..').TAlignment;
79
+ col?: boolean;
80
+ inline?: boolean;
81
+ justify?: import('..').TJustification;
82
+ tag?: string;
83
+ }> & Readonly<{}>, "col" | "tag" | "align" | "inline" | "justify"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
84
+ $slots: {
85
+ default?(_: {}): any;
86
+ };
87
+ }) | null;
88
+ inputRef: HTMLInputElement;
89
+ }, any>;
90
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { TreeNode } from './types';
2
+ declare const _default: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onSelect?: ((...args: any[]) => any) | undefined;
5
+ readonly onKey?: ((...args: any[]) => any) | undefined;
6
+ readonly onToggle?: ((...args: any[]) => any) | undefined;
7
+ readonly onSave?: ((...args: any[]) => any) | undefined;
8
+ readonly onAction?: ((...args: any[]) => any) | undefined;
9
+ readonly "onCancel-new-child"?: ((...args: any[]) => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onToggle" | "onSave" | "onKey" | "onAction" | "onCancel-new-child"> & {
11
+ indentationAmount?: number;
12
+ node: TreeNode<T>;
13
+ level: number;
14
+ selection: TreeNode<T>[];
15
+ createNewPath?: TreeNode<T>[];
16
+ } & Partial<{}>> & import('vue').PublicProps;
17
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
18
+ attrs: any;
19
+ slots: {};
20
+ emit: (event: "select" | "key" | "toggle" | "save" | "action" | "cancel-new-child", ...args: any[]) => void;
21
+ }>) => import('vue').VNode & {
22
+ __ctx?: Awaited<typeof __VLS_setup>;
23
+ };
24
+ export default _default;
25
+ type __VLS_PrettifyLocal<T> = {
26
+ [K in keyof T]: T[K];
27
+ } & {};
@@ -0,0 +1,2 @@
1
+ export { default as BTreeList } from './TreeList.vue';
2
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ import { TIcon } from '../types';
2
+ export type TreeNodeAction<T> = {
3
+ label: string;
4
+ icon?: TIcon;
5
+ handler: (path: TreeNode<T>[]) => void;
6
+ };
7
+ export type TreeNode<T> = {
8
+ id: string | number;
9
+ label: string;
10
+ open: boolean;
11
+ value: T;
12
+ children?: TreeNode<T>[];
13
+ actions: TreeNodeAction<T>[];
14
+ };
@@ -56,5 +56,5 @@ export type TTreeListNode = {
56
56
  value: unknown;
57
57
  open: boolean;
58
58
  };
59
- export declare const icons: readonly ["admin", "arrow-deviate", "arrow-down-plus", "arrow-down", "arrow-from", "arrow-left", "arrow-move", "arrow-right", "arrow-sub", "arrow-trend", "arrow-up-plus", "arrow-up", "authority", "beams", "bell", "bold", "box", "building", "bullet-list", "calendar", "camera", "categories", "check-circled", "check-outline", "check", "chevron-down", "chevron-left-double", "chevron-left", "chevron-right-double", "chevron-right", "chevron-up", "clock", "close-outline", "close", "columns", "conclusion", "copy", "crosshair", "dash", "dashboard", "delete", "delta", "download", "drag", "drilldown", "edit", "envelope", "error", "export-document", "filter", "filters", "flag", "folder", "frequency", "fullscreen-off", "fullscreen-on", "graduate", "hamburger", "handshake", "heading-1", "heading-2", "heading", "home", "id-card", "id", "indent-left", "indent-right", "information", "italics", "itenary", "keyboard", "lightning", "link", "list-collapse", "list-expand", "location", "lock-locked", "lock-unlocked", "magnifying-glass", "map", "match-case", "match-diacritics", "match-full-word", "megaphone", "message", "microscope", "moon", "new-document", "news", "numbered-list", "open-link", "options", "page", "panel-left-show", "panel-left-hide", "panel-right-show", "panel-right-hide", "paper-plane", "paper", "pen-and-paper", "phase", "photo", "pie-chart", "plus", "point-left", "point-up", "popup", "question", "radio-tower", "recycle", "redo", "refresh", "route", "rows", "scope", "settings", "share", "sign-in", "sign-up", "sort-down", "sort-up", "sort", "square-solid", "star-solid", "star", "stop-watch", "structure", "sun", "table", "tag", "team", "telescope", "text-select", "trash", "triangle-angle", "triangle-side", "underline", "undo", "user", "venn", "video", "visibility-off-alt", "visibility-off", "visibility-on", "warning", "zoom"];
59
+ export declare const icons: readonly ["admin", "arrow-deviate", "arrow-down-plus", "arrow-down", "arrow-from", "arrow-left", "arrow-move", "arrow-right", "arrow-sub", "arrow-trend", "arrow-up-plus", "arrow-up", "authority", "beams", "bell", "bold", "box", "building", "bullet-list", "calendar", "camera", "categories", "check-circled", "check-outline", "check", "chevron-down", "chevron-down-small", "chevron-left-double", "chevron-left", "chevron-left-small", "chevron-right-double", "chevron-right", "chevron-right-small", "chevron-up", "chevron-up-small", "clock", "close-outline", "close", "columns", "conclusion", "copy", "crosshair", "dash", "dashboard", "delete", "delta", "download", "drag", "drilldown", "edit", "envelope", "error", "export-document", "filter", "filters", "flag", "folder", "frequency", "fullscreen-off", "fullscreen-on", "graduate", "hamburger", "handshake", "heading-1", "heading-2", "heading", "home", "id-card", "id", "indent-left", "indent-right", "information", "italics", "itenary", "keyboard", "lightning", "link", "list-collapse", "list-expand", "location", "lock-locked", "lock-unlocked", "magnifying-glass", "map", "match-case", "match-diacritics", "match-full-word", "megaphone", "message", "message-question", "microscope", "moon", "new-document", "news", "numbered-list", "open-link", "options", "page", "panel-left-show", "panel-left-hide", "panel-right-show", "panel-right-hide", "paper-plane", "paper", "pdf", "pen-and-paper", "phase", "photo", "pie-chart", "plus", "point-left", "point-up", "popup", "question", "radio-tower", "recycle", "redo", "refresh", "route", "rows", "scope", "settings", "share", "sign-in", "sign-up", "slideshow", "sort-down", "sort-up", "sort", "square-solid", "star-solid", "star", "stop-watch", "structure", "sun", "table", "tag", "team", "telescope", "text-select", "trash", "triangle-angle", "triangle-side", "underline", "undo", "user", "venn", "video", "visibility-off-alt", "visibility-off", "visibility-on", "warning", "zoom"];
60
60
  export type TIcon = (typeof icons)[number];