@firstnoodle-ui/bui 0.0.63 → 0.0.65

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.
@@ -23,6 +23,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
23
23
  $props: {
24
24
  readonly closeable?: boolean | undefined;
25
25
  readonly expandVertically?: boolean | undefined;
26
+ readonly interceptClose?: (() => boolean | Promise<boolean>) | undefined;
26
27
  readonly overlayType?: import('../types').TOverlayType | undefined;
27
28
  readonly target?: string | undefined;
28
29
  readonly title?: string | undefined;
@@ -97,6 +98,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
97
98
  $options: import('vue').ComponentOptionsBase<Readonly<{
98
99
  closeable?: boolean;
99
100
  expandVertically?: boolean;
101
+ interceptClose?: () => boolean | Promise<boolean>;
100
102
  overlayType?: import('../types').TOverlayType;
101
103
  target?: string;
102
104
  title?: string;
@@ -144,6 +146,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
144
146
  }> & Omit<Readonly<{
145
147
  closeable?: boolean;
146
148
  expandVertically?: boolean;
149
+ interceptClose?: () => boolean | Promise<boolean>;
147
150
  overlayType?: import('../types').TOverlayType;
148
151
  target?: string;
149
152
  title?: string;
@@ -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 & {
@@ -2,6 +2,7 @@ import { TOverlayType } from '../types';
2
2
  type __VLS_Props = {
3
3
  closeable?: boolean;
4
4
  expandVertically?: boolean;
5
+ interceptClose?: () => boolean | Promise<boolean>;
5
6
  overlayType?: TOverlayType;
6
7
  target?: string;
7
8
  title?: string;
@@ -1,6 +1,7 @@
1
1
  import { TOverlayType } from '../types';
2
2
  type __VLS_Props = {
3
3
  closeable?: boolean;
4
+ interceptClose?: () => boolean | Promise<boolean>;
4
5
  overlayType?: TOverlayType;
5
6
  placement?: "left" | "right";
6
7
  target?: string;