@firstnoodle-ui/bui 0.0.62 → 0.0.64

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.
@@ -8,61 +8,17 @@ type __VLS_Props = {
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
10
  slots: {
11
- title?(_: {}): any;
12
- main?(_: {}): any;
13
- footer?(_: {}): any;
14
- };
15
- refs: {
16
- windowRef: ({
17
- $: import('vue').ComponentInternalInstance;
18
- $data: {};
19
- $props: Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
20
- $attrs: {
21
- [x: string]: unknown;
22
- };
23
- $refs: {
24
- [x: string]: unknown;
25
- } & {
26
- windowRef: HTMLDivElement;
27
- };
28
- $slots: Readonly<{
29
- [name: string]: import('vue').Slot<any> | undefined;
30
- }>;
31
- $root: import('vue').ComponentPublicInstance | null;
32
- $parent: import('vue').ComponentPublicInstance | null;
33
- $host: Element | null;
34
- $emit: (event: string, ...args: any[]) => void;
35
- $el: HTMLDivElement;
36
- $options: import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
37
- focus: void | undefined;
38
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
39
- beforeCreate?: (() => void) | (() => void)[];
40
- created?: (() => void) | (() => void)[];
41
- beforeMount?: (() => void) | (() => void)[];
42
- mounted?: (() => void) | (() => void)[];
43
- beforeUpdate?: (() => void) | (() => void)[];
44
- updated?: (() => void) | (() => void)[];
45
- activated?: (() => void) | (() => void)[];
46
- deactivated?: (() => void) | (() => void)[];
47
- beforeDestroy?: (() => void) | (() => void)[];
48
- beforeUnmount?: (() => void) | (() => void)[];
49
- destroyed?: (() => void) | (() => void)[];
50
- unmounted?: (() => void) | (() => void)[];
51
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
52
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
53
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
54
- };
55
- $forceUpdate: () => void;
56
- $nextTick: typeof import('vue').nextTick;
57
- $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;
58
- } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, "focus"> & import('vue').ShallowUnwrapRef<{
59
- focus: void | undefined;
60
- }> & {} & import('vue').ComponentCustomProperties & {} & {
61
- $slots: {
62
- default?(_: {}): any;
63
- };
64
- }) | null;
11
+ title?(_: {
12
+ close: () => boolean;
13
+ }): any;
14
+ main?(_: {
15
+ close: () => boolean;
16
+ }): any;
17
+ footer?(_: {
18
+ close: () => boolean;
19
+ }): any;
65
20
  };
21
+ refs: {};
66
22
  rootEl: any;
67
23
  };
68
24
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -74,57 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
74
30
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
75
31
  onClose?: ((...args: any[]) => any) | undefined;
76
32
  onOpen?: ((...args: any[]) => any) | undefined;
77
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
78
- windowRef: ({
79
- $: import('vue').ComponentInternalInstance;
80
- $data: {};
81
- $props: Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
82
- $attrs: {
83
- [x: string]: unknown;
84
- };
85
- $refs: {
86
- [x: string]: unknown;
87
- } & {
88
- windowRef: HTMLDivElement;
89
- };
90
- $slots: Readonly<{
91
- [name: string]: import('vue').Slot<any> | undefined;
92
- }>;
93
- $root: import('vue').ComponentPublicInstance | null;
94
- $parent: import('vue').ComponentPublicInstance | null;
95
- $host: Element | null;
96
- $emit: (event: string, ...args: any[]) => void;
97
- $el: HTMLDivElement;
98
- $options: import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
99
- focus: void | undefined;
100
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
101
- beforeCreate?: (() => void) | (() => void)[];
102
- created?: (() => void) | (() => void)[];
103
- beforeMount?: (() => void) | (() => void)[];
104
- mounted?: (() => void) | (() => void)[];
105
- beforeUpdate?: (() => void) | (() => void)[];
106
- updated?: (() => void) | (() => void)[];
107
- activated?: (() => void) | (() => void)[];
108
- deactivated?: (() => void) | (() => void)[];
109
- beforeDestroy?: (() => void) | (() => void)[];
110
- beforeUnmount?: (() => void) | (() => void)[];
111
- destroyed?: (() => void) | (() => void)[];
112
- unmounted?: (() => void) | (() => void)[];
113
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
114
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
115
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
116
- };
117
- $forceUpdate: () => void;
118
- $nextTick: typeof import('vue').nextTick;
119
- $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;
120
- } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, "focus"> & import('vue').ShallowUnwrapRef<{
121
- focus: void | undefined;
122
- }> & {} & import('vue').ComponentCustomProperties & {} & {
123
- $slots: {
124
- default?(_: {}): any;
125
- };
126
- }) | null;
127
- }, any>;
33
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
128
34
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
129
35
  export default _default;
130
36
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,7 +1,13 @@
1
1
  import { Ref } from 'vue';
2
2
  import { LocationQuery } from 'vue-router';
3
3
  import { Filter } from '../types';
4
- export declare const useFilters: <T>(groupId: string, filters: Filter<T>[], items: Ref<T[]>, remoteFilterMethod?: ((filters: Filter<T>[]) => Promise<T[]>) | null) => {
4
+ type FilterOptions<T> = {
5
+ groupId: string;
6
+ filters: Filter<T>[];
7
+ items?: Ref<T[]>;
8
+ remoteFilterMethod?: (filters: Filter<T>[]) => Promise<T[]>;
9
+ };
10
+ export declare const useFilters: <T>({ filters, groupId, items, remoteFilterMethod }: FilterOptions<T>) => {
5
11
  activeFilters: import('vue').ComputedRef<{
6
12
  id: string;
7
13
  name: string;
@@ -41,3 +47,4 @@ export declare const useFilters: <T>(groupId: string, filters: Filter<T>[], item
41
47
  clearFilters: () => Promise<void>;
42
48
  updateFilters: (routeQuery: LocationQuery) => void;
43
49
  };
50
+ export {};