@destyler/dialog 0.0.1-beta.9 → 0.0.1
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 -0
- package/dist/component.cjs +550 -0
- package/dist/component.d.cts +225 -0
- package/dist/component.d.mts +225 -0
- package/dist/component.d.ts +225 -0
- package/dist/component.mjs +537 -0
- package/dist/index.cjs +21 -482
- package/dist/index.d.cts +4 -653
- package/dist/index.d.mts +4 -653
- package/dist/index.d.ts +4 -653
- package/dist/index.mjs +10 -457
- package/dist/resolver.cjs +27 -0
- package/dist/resolver.d.cts +6 -0
- package/dist/resolver.d.mts +6 -0
- package/dist/resolver.d.ts +6 -0
- package/dist/resolver.mjs +24 -0
- package/dist/shared/dialog.25aba8c4.d.cts +420 -0
- package/dist/shared/dialog.25aba8c4.d.mts +420 -0
- package/dist/shared/dialog.25aba8c4.d.ts +420 -0
- package/package.json +19 -9
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { D as DialogRootContext } from './shared/dialog.25aba8c4.cjs';
|
|
2
|
+
export { a as DestylerDialogClose, b as DestylerDialogCloseProps, c as DestylerDialogContent, d as DestylerDialogContentProps, e as DestylerDialogDescription, f as DestylerDialogDescriptionProps, g as DestylerDialogOverlay, h as DestylerDialogPortal, i as DestylerDialogPortalProps, j as DestylerDialogRoot, k as DestylerDialogRootProps, l as DestylerDialogTitle, m as DestylerDialogTitleProps, n as DestylerDialogTrigger, o as DestylerDialogTriggerProps } from './shared/dialog.25aba8c4.cjs';
|
|
3
|
+
import * as vue from 'vue';
|
|
4
|
+
import { PropType, Component } from 'vue';
|
|
5
|
+
import * as _destyler_primitive from '@destyler/primitive';
|
|
6
|
+
import { AsTag } from '@destyler/primitive';
|
|
7
|
+
import { ExtractPublicPropTypes } from '@destyler/shared';
|
|
8
|
+
|
|
9
|
+
declare const DestylerDialogContentImpl: vue.DefineComponent<{
|
|
10
|
+
readonly as: {
|
|
11
|
+
readonly type: PropType<AsTag | Component>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly default: "div";
|
|
14
|
+
};
|
|
15
|
+
readonly asChild: {
|
|
16
|
+
readonly type: PropType<boolean>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly default: false;
|
|
19
|
+
};
|
|
20
|
+
readonly forceMount: {
|
|
21
|
+
readonly type: PropType<boolean>;
|
|
22
|
+
readonly required: false;
|
|
23
|
+
};
|
|
24
|
+
readonly trapFocus: {
|
|
25
|
+
readonly type: PropType<boolean>;
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
rootContext: DialogRootContext;
|
|
31
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
32
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
33
|
+
readonly as: {
|
|
34
|
+
readonly type: PropType<AsTag | Component>;
|
|
35
|
+
readonly required: false;
|
|
36
|
+
readonly default: "div";
|
|
37
|
+
};
|
|
38
|
+
readonly asChild: {
|
|
39
|
+
readonly type: PropType<boolean>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
43
|
+
readonly forceMount: {
|
|
44
|
+
readonly type: PropType<boolean>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
};
|
|
47
|
+
readonly trapFocus: {
|
|
48
|
+
readonly type: PropType<boolean>;
|
|
49
|
+
readonly required: false;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
}>> & {
|
|
53
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
readonly asChild: boolean;
|
|
62
|
+
readonly as: AsTag | Component;
|
|
63
|
+
readonly trapFocus: boolean;
|
|
64
|
+
}, {}>;
|
|
65
|
+
|
|
66
|
+
declare const DestylerDialogContentModal: vue.DefineComponent<{
|
|
67
|
+
readonly as: {
|
|
68
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly default: "div";
|
|
71
|
+
};
|
|
72
|
+
readonly asChild: {
|
|
73
|
+
readonly type: vue.PropType<boolean>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly default: false;
|
|
76
|
+
};
|
|
77
|
+
readonly forceMount: {
|
|
78
|
+
readonly type: vue.PropType<boolean>;
|
|
79
|
+
readonly required: false;
|
|
80
|
+
};
|
|
81
|
+
readonly trapFocus: {
|
|
82
|
+
readonly type: vue.PropType<boolean>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly default: false;
|
|
85
|
+
};
|
|
86
|
+
}, {
|
|
87
|
+
rootContext: DialogRootContext;
|
|
88
|
+
emitsAsProps: Record<string, any>;
|
|
89
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
90
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
91
|
+
readonly as: {
|
|
92
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly default: "div";
|
|
95
|
+
};
|
|
96
|
+
readonly asChild: {
|
|
97
|
+
readonly type: vue.PropType<boolean>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly default: false;
|
|
100
|
+
};
|
|
101
|
+
readonly forceMount: {
|
|
102
|
+
readonly type: vue.PropType<boolean>;
|
|
103
|
+
readonly required: false;
|
|
104
|
+
};
|
|
105
|
+
readonly trapFocus: {
|
|
106
|
+
readonly type: vue.PropType<boolean>;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly default: false;
|
|
109
|
+
};
|
|
110
|
+
}>> & {
|
|
111
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
readonly asChild: boolean;
|
|
120
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
121
|
+
readonly trapFocus: boolean;
|
|
122
|
+
}, {}>;
|
|
123
|
+
|
|
124
|
+
declare const DestylerDialogContentNonModal: vue.DefineComponent<{
|
|
125
|
+
readonly as: {
|
|
126
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
127
|
+
readonly required: false;
|
|
128
|
+
readonly default: "div";
|
|
129
|
+
};
|
|
130
|
+
readonly asChild: {
|
|
131
|
+
readonly type: vue.PropType<boolean>;
|
|
132
|
+
readonly required: false;
|
|
133
|
+
readonly default: false;
|
|
134
|
+
};
|
|
135
|
+
readonly forceMount: {
|
|
136
|
+
readonly type: vue.PropType<boolean>;
|
|
137
|
+
readonly required: false;
|
|
138
|
+
};
|
|
139
|
+
readonly trapFocus: {
|
|
140
|
+
readonly type: vue.PropType<boolean>;
|
|
141
|
+
readonly required: false;
|
|
142
|
+
readonly default: false;
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
rootContext: DialogRootContext;
|
|
146
|
+
hasInteractedOutsideRef: vue.Ref<boolean>;
|
|
147
|
+
hasPointerDownOutsideRef: vue.Ref<boolean>;
|
|
148
|
+
emitsAsProps: Record<string, any>;
|
|
149
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
150
|
+
readonly as: {
|
|
151
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
152
|
+
readonly required: false;
|
|
153
|
+
readonly default: "div";
|
|
154
|
+
};
|
|
155
|
+
readonly asChild: {
|
|
156
|
+
readonly type: vue.PropType<boolean>;
|
|
157
|
+
readonly required: false;
|
|
158
|
+
readonly default: false;
|
|
159
|
+
};
|
|
160
|
+
readonly forceMount: {
|
|
161
|
+
readonly type: vue.PropType<boolean>;
|
|
162
|
+
readonly required: false;
|
|
163
|
+
};
|
|
164
|
+
readonly trapFocus: {
|
|
165
|
+
readonly type: vue.PropType<boolean>;
|
|
166
|
+
readonly required: false;
|
|
167
|
+
readonly default: false;
|
|
168
|
+
};
|
|
169
|
+
}>> & {
|
|
170
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
171
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
173
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
174
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
readonly asChild: boolean;
|
|
179
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
180
|
+
readonly trapFocus: boolean;
|
|
181
|
+
}, {}>;
|
|
182
|
+
|
|
183
|
+
declare const destylerDialogOverlayImplProps: {
|
|
184
|
+
readonly as: {
|
|
185
|
+
readonly type: PropType<AsTag | Component>;
|
|
186
|
+
readonly required: false;
|
|
187
|
+
readonly default: "div";
|
|
188
|
+
};
|
|
189
|
+
readonly asChild: {
|
|
190
|
+
readonly type: PropType<boolean>;
|
|
191
|
+
readonly required: false;
|
|
192
|
+
readonly default: false;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
type DestylerDialogOverlayImplProps = ExtractPublicPropTypes<typeof destylerDialogOverlayImplProps>;
|
|
196
|
+
declare const DestylerDialogOverlayImpl: vue.DefineComponent<{
|
|
197
|
+
readonly as: {
|
|
198
|
+
readonly type: PropType<AsTag | Component>;
|
|
199
|
+
readonly required: false;
|
|
200
|
+
readonly default: "div";
|
|
201
|
+
};
|
|
202
|
+
readonly asChild: {
|
|
203
|
+
readonly type: PropType<boolean>;
|
|
204
|
+
readonly required: false;
|
|
205
|
+
readonly default: false;
|
|
206
|
+
};
|
|
207
|
+
}, {
|
|
208
|
+
rootContext: DialogRootContext;
|
|
209
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
210
|
+
readonly as: {
|
|
211
|
+
readonly type: PropType<AsTag | Component>;
|
|
212
|
+
readonly required: false;
|
|
213
|
+
readonly default: "div";
|
|
214
|
+
};
|
|
215
|
+
readonly asChild: {
|
|
216
|
+
readonly type: PropType<boolean>;
|
|
217
|
+
readonly required: false;
|
|
218
|
+
readonly default: false;
|
|
219
|
+
};
|
|
220
|
+
}>>, {
|
|
221
|
+
readonly asChild: boolean;
|
|
222
|
+
readonly as: AsTag | Component;
|
|
223
|
+
}, {}>;
|
|
224
|
+
|
|
225
|
+
export { DestylerDialogContentImpl, DestylerDialogContentModal, DestylerDialogContentNonModal, DestylerDialogOverlayImpl, type DestylerDialogOverlayImplProps };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { D as DialogRootContext } from './shared/dialog.25aba8c4.mjs';
|
|
2
|
+
export { a as DestylerDialogClose, b as DestylerDialogCloseProps, c as DestylerDialogContent, d as DestylerDialogContentProps, e as DestylerDialogDescription, f as DestylerDialogDescriptionProps, g as DestylerDialogOverlay, h as DestylerDialogPortal, i as DestylerDialogPortalProps, j as DestylerDialogRoot, k as DestylerDialogRootProps, l as DestylerDialogTitle, m as DestylerDialogTitleProps, n as DestylerDialogTrigger, o as DestylerDialogTriggerProps } from './shared/dialog.25aba8c4.mjs';
|
|
3
|
+
import * as vue from 'vue';
|
|
4
|
+
import { PropType, Component } from 'vue';
|
|
5
|
+
import * as _destyler_primitive from '@destyler/primitive';
|
|
6
|
+
import { AsTag } from '@destyler/primitive';
|
|
7
|
+
import { ExtractPublicPropTypes } from '@destyler/shared';
|
|
8
|
+
|
|
9
|
+
declare const DestylerDialogContentImpl: vue.DefineComponent<{
|
|
10
|
+
readonly as: {
|
|
11
|
+
readonly type: PropType<AsTag | Component>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly default: "div";
|
|
14
|
+
};
|
|
15
|
+
readonly asChild: {
|
|
16
|
+
readonly type: PropType<boolean>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly default: false;
|
|
19
|
+
};
|
|
20
|
+
readonly forceMount: {
|
|
21
|
+
readonly type: PropType<boolean>;
|
|
22
|
+
readonly required: false;
|
|
23
|
+
};
|
|
24
|
+
readonly trapFocus: {
|
|
25
|
+
readonly type: PropType<boolean>;
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
rootContext: DialogRootContext;
|
|
31
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
32
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
33
|
+
readonly as: {
|
|
34
|
+
readonly type: PropType<AsTag | Component>;
|
|
35
|
+
readonly required: false;
|
|
36
|
+
readonly default: "div";
|
|
37
|
+
};
|
|
38
|
+
readonly asChild: {
|
|
39
|
+
readonly type: PropType<boolean>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
43
|
+
readonly forceMount: {
|
|
44
|
+
readonly type: PropType<boolean>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
};
|
|
47
|
+
readonly trapFocus: {
|
|
48
|
+
readonly type: PropType<boolean>;
|
|
49
|
+
readonly required: false;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
}>> & {
|
|
53
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
readonly asChild: boolean;
|
|
62
|
+
readonly as: AsTag | Component;
|
|
63
|
+
readonly trapFocus: boolean;
|
|
64
|
+
}, {}>;
|
|
65
|
+
|
|
66
|
+
declare const DestylerDialogContentModal: vue.DefineComponent<{
|
|
67
|
+
readonly as: {
|
|
68
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly default: "div";
|
|
71
|
+
};
|
|
72
|
+
readonly asChild: {
|
|
73
|
+
readonly type: vue.PropType<boolean>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly default: false;
|
|
76
|
+
};
|
|
77
|
+
readonly forceMount: {
|
|
78
|
+
readonly type: vue.PropType<boolean>;
|
|
79
|
+
readonly required: false;
|
|
80
|
+
};
|
|
81
|
+
readonly trapFocus: {
|
|
82
|
+
readonly type: vue.PropType<boolean>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly default: false;
|
|
85
|
+
};
|
|
86
|
+
}, {
|
|
87
|
+
rootContext: DialogRootContext;
|
|
88
|
+
emitsAsProps: Record<string, any>;
|
|
89
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
90
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
91
|
+
readonly as: {
|
|
92
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly default: "div";
|
|
95
|
+
};
|
|
96
|
+
readonly asChild: {
|
|
97
|
+
readonly type: vue.PropType<boolean>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly default: false;
|
|
100
|
+
};
|
|
101
|
+
readonly forceMount: {
|
|
102
|
+
readonly type: vue.PropType<boolean>;
|
|
103
|
+
readonly required: false;
|
|
104
|
+
};
|
|
105
|
+
readonly trapFocus: {
|
|
106
|
+
readonly type: vue.PropType<boolean>;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly default: false;
|
|
109
|
+
};
|
|
110
|
+
}>> & {
|
|
111
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
readonly asChild: boolean;
|
|
120
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
121
|
+
readonly trapFocus: boolean;
|
|
122
|
+
}, {}>;
|
|
123
|
+
|
|
124
|
+
declare const DestylerDialogContentNonModal: vue.DefineComponent<{
|
|
125
|
+
readonly as: {
|
|
126
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
127
|
+
readonly required: false;
|
|
128
|
+
readonly default: "div";
|
|
129
|
+
};
|
|
130
|
+
readonly asChild: {
|
|
131
|
+
readonly type: vue.PropType<boolean>;
|
|
132
|
+
readonly required: false;
|
|
133
|
+
readonly default: false;
|
|
134
|
+
};
|
|
135
|
+
readonly forceMount: {
|
|
136
|
+
readonly type: vue.PropType<boolean>;
|
|
137
|
+
readonly required: false;
|
|
138
|
+
};
|
|
139
|
+
readonly trapFocus: {
|
|
140
|
+
readonly type: vue.PropType<boolean>;
|
|
141
|
+
readonly required: false;
|
|
142
|
+
readonly default: false;
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
rootContext: DialogRootContext;
|
|
146
|
+
hasInteractedOutsideRef: vue.Ref<boolean>;
|
|
147
|
+
hasPointerDownOutsideRef: vue.Ref<boolean>;
|
|
148
|
+
emitsAsProps: Record<string, any>;
|
|
149
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
150
|
+
readonly as: {
|
|
151
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
152
|
+
readonly required: false;
|
|
153
|
+
readonly default: "div";
|
|
154
|
+
};
|
|
155
|
+
readonly asChild: {
|
|
156
|
+
readonly type: vue.PropType<boolean>;
|
|
157
|
+
readonly required: false;
|
|
158
|
+
readonly default: false;
|
|
159
|
+
};
|
|
160
|
+
readonly forceMount: {
|
|
161
|
+
readonly type: vue.PropType<boolean>;
|
|
162
|
+
readonly required: false;
|
|
163
|
+
};
|
|
164
|
+
readonly trapFocus: {
|
|
165
|
+
readonly type: vue.PropType<boolean>;
|
|
166
|
+
readonly required: false;
|
|
167
|
+
readonly default: false;
|
|
168
|
+
};
|
|
169
|
+
}>> & {
|
|
170
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
171
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
173
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
174
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
readonly asChild: boolean;
|
|
179
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
180
|
+
readonly trapFocus: boolean;
|
|
181
|
+
}, {}>;
|
|
182
|
+
|
|
183
|
+
declare const destylerDialogOverlayImplProps: {
|
|
184
|
+
readonly as: {
|
|
185
|
+
readonly type: PropType<AsTag | Component>;
|
|
186
|
+
readonly required: false;
|
|
187
|
+
readonly default: "div";
|
|
188
|
+
};
|
|
189
|
+
readonly asChild: {
|
|
190
|
+
readonly type: PropType<boolean>;
|
|
191
|
+
readonly required: false;
|
|
192
|
+
readonly default: false;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
type DestylerDialogOverlayImplProps = ExtractPublicPropTypes<typeof destylerDialogOverlayImplProps>;
|
|
196
|
+
declare const DestylerDialogOverlayImpl: vue.DefineComponent<{
|
|
197
|
+
readonly as: {
|
|
198
|
+
readonly type: PropType<AsTag | Component>;
|
|
199
|
+
readonly required: false;
|
|
200
|
+
readonly default: "div";
|
|
201
|
+
};
|
|
202
|
+
readonly asChild: {
|
|
203
|
+
readonly type: PropType<boolean>;
|
|
204
|
+
readonly required: false;
|
|
205
|
+
readonly default: false;
|
|
206
|
+
};
|
|
207
|
+
}, {
|
|
208
|
+
rootContext: DialogRootContext;
|
|
209
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
210
|
+
readonly as: {
|
|
211
|
+
readonly type: PropType<AsTag | Component>;
|
|
212
|
+
readonly required: false;
|
|
213
|
+
readonly default: "div";
|
|
214
|
+
};
|
|
215
|
+
readonly asChild: {
|
|
216
|
+
readonly type: PropType<boolean>;
|
|
217
|
+
readonly required: false;
|
|
218
|
+
readonly default: false;
|
|
219
|
+
};
|
|
220
|
+
}>>, {
|
|
221
|
+
readonly asChild: boolean;
|
|
222
|
+
readonly as: AsTag | Component;
|
|
223
|
+
}, {}>;
|
|
224
|
+
|
|
225
|
+
export { DestylerDialogContentImpl, DestylerDialogContentModal, DestylerDialogContentNonModal, DestylerDialogOverlayImpl, type DestylerDialogOverlayImplProps };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { D as DialogRootContext } from './shared/dialog.25aba8c4.js';
|
|
2
|
+
export { a as DestylerDialogClose, b as DestylerDialogCloseProps, c as DestylerDialogContent, d as DestylerDialogContentProps, e as DestylerDialogDescription, f as DestylerDialogDescriptionProps, g as DestylerDialogOverlay, h as DestylerDialogPortal, i as DestylerDialogPortalProps, j as DestylerDialogRoot, k as DestylerDialogRootProps, l as DestylerDialogTitle, m as DestylerDialogTitleProps, n as DestylerDialogTrigger, o as DestylerDialogTriggerProps } from './shared/dialog.25aba8c4.js';
|
|
3
|
+
import * as vue from 'vue';
|
|
4
|
+
import { PropType, Component } from 'vue';
|
|
5
|
+
import * as _destyler_primitive from '@destyler/primitive';
|
|
6
|
+
import { AsTag } from '@destyler/primitive';
|
|
7
|
+
import { ExtractPublicPropTypes } from '@destyler/shared';
|
|
8
|
+
|
|
9
|
+
declare const DestylerDialogContentImpl: vue.DefineComponent<{
|
|
10
|
+
readonly as: {
|
|
11
|
+
readonly type: PropType<AsTag | Component>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly default: "div";
|
|
14
|
+
};
|
|
15
|
+
readonly asChild: {
|
|
16
|
+
readonly type: PropType<boolean>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly default: false;
|
|
19
|
+
};
|
|
20
|
+
readonly forceMount: {
|
|
21
|
+
readonly type: PropType<boolean>;
|
|
22
|
+
readonly required: false;
|
|
23
|
+
};
|
|
24
|
+
readonly trapFocus: {
|
|
25
|
+
readonly type: PropType<boolean>;
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
rootContext: DialogRootContext;
|
|
31
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
32
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
33
|
+
readonly as: {
|
|
34
|
+
readonly type: PropType<AsTag | Component>;
|
|
35
|
+
readonly required: false;
|
|
36
|
+
readonly default: "div";
|
|
37
|
+
};
|
|
38
|
+
readonly asChild: {
|
|
39
|
+
readonly type: PropType<boolean>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
43
|
+
readonly forceMount: {
|
|
44
|
+
readonly type: PropType<boolean>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
};
|
|
47
|
+
readonly trapFocus: {
|
|
48
|
+
readonly type: PropType<boolean>;
|
|
49
|
+
readonly required: false;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
}>> & {
|
|
53
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
readonly asChild: boolean;
|
|
62
|
+
readonly as: AsTag | Component;
|
|
63
|
+
readonly trapFocus: boolean;
|
|
64
|
+
}, {}>;
|
|
65
|
+
|
|
66
|
+
declare const DestylerDialogContentModal: vue.DefineComponent<{
|
|
67
|
+
readonly as: {
|
|
68
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly default: "div";
|
|
71
|
+
};
|
|
72
|
+
readonly asChild: {
|
|
73
|
+
readonly type: vue.PropType<boolean>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly default: false;
|
|
76
|
+
};
|
|
77
|
+
readonly forceMount: {
|
|
78
|
+
readonly type: vue.PropType<boolean>;
|
|
79
|
+
readonly required: false;
|
|
80
|
+
};
|
|
81
|
+
readonly trapFocus: {
|
|
82
|
+
readonly type: vue.PropType<boolean>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly default: false;
|
|
85
|
+
};
|
|
86
|
+
}, {
|
|
87
|
+
rootContext: DialogRootContext;
|
|
88
|
+
emitsAsProps: Record<string, any>;
|
|
89
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
90
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
91
|
+
readonly as: {
|
|
92
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly default: "div";
|
|
95
|
+
};
|
|
96
|
+
readonly asChild: {
|
|
97
|
+
readonly type: vue.PropType<boolean>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly default: false;
|
|
100
|
+
};
|
|
101
|
+
readonly forceMount: {
|
|
102
|
+
readonly type: vue.PropType<boolean>;
|
|
103
|
+
readonly required: false;
|
|
104
|
+
};
|
|
105
|
+
readonly trapFocus: {
|
|
106
|
+
readonly type: vue.PropType<boolean>;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly default: false;
|
|
109
|
+
};
|
|
110
|
+
}>> & {
|
|
111
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
readonly asChild: boolean;
|
|
120
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
121
|
+
readonly trapFocus: boolean;
|
|
122
|
+
}, {}>;
|
|
123
|
+
|
|
124
|
+
declare const DestylerDialogContentNonModal: vue.DefineComponent<{
|
|
125
|
+
readonly as: {
|
|
126
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
127
|
+
readonly required: false;
|
|
128
|
+
readonly default: "div";
|
|
129
|
+
};
|
|
130
|
+
readonly asChild: {
|
|
131
|
+
readonly type: vue.PropType<boolean>;
|
|
132
|
+
readonly required: false;
|
|
133
|
+
readonly default: false;
|
|
134
|
+
};
|
|
135
|
+
readonly forceMount: {
|
|
136
|
+
readonly type: vue.PropType<boolean>;
|
|
137
|
+
readonly required: false;
|
|
138
|
+
};
|
|
139
|
+
readonly trapFocus: {
|
|
140
|
+
readonly type: vue.PropType<boolean>;
|
|
141
|
+
readonly required: false;
|
|
142
|
+
readonly default: false;
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
rootContext: DialogRootContext;
|
|
146
|
+
hasInteractedOutsideRef: vue.Ref<boolean>;
|
|
147
|
+
hasPointerDownOutsideRef: vue.Ref<boolean>;
|
|
148
|
+
emitsAsProps: Record<string, any>;
|
|
149
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "openAutoFocus" | "closeAutoFocus" | "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
150
|
+
readonly as: {
|
|
151
|
+
readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
152
|
+
readonly required: false;
|
|
153
|
+
readonly default: "div";
|
|
154
|
+
};
|
|
155
|
+
readonly asChild: {
|
|
156
|
+
readonly type: vue.PropType<boolean>;
|
|
157
|
+
readonly required: false;
|
|
158
|
+
readonly default: false;
|
|
159
|
+
};
|
|
160
|
+
readonly forceMount: {
|
|
161
|
+
readonly type: vue.PropType<boolean>;
|
|
162
|
+
readonly required: false;
|
|
163
|
+
};
|
|
164
|
+
readonly trapFocus: {
|
|
165
|
+
readonly type: vue.PropType<boolean>;
|
|
166
|
+
readonly required: false;
|
|
167
|
+
readonly default: false;
|
|
168
|
+
};
|
|
169
|
+
}>> & {
|
|
170
|
+
onOpenAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
171
|
+
onCloseAutoFocus?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
|
|
173
|
+
onPointerDownOutside?: ((...args: any[]) => any) | undefined;
|
|
174
|
+
onFocusOutside?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
onInteractOutside?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
readonly asChild: boolean;
|
|
179
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
180
|
+
readonly trapFocus: boolean;
|
|
181
|
+
}, {}>;
|
|
182
|
+
|
|
183
|
+
declare const destylerDialogOverlayImplProps: {
|
|
184
|
+
readonly as: {
|
|
185
|
+
readonly type: PropType<AsTag | Component>;
|
|
186
|
+
readonly required: false;
|
|
187
|
+
readonly default: "div";
|
|
188
|
+
};
|
|
189
|
+
readonly asChild: {
|
|
190
|
+
readonly type: PropType<boolean>;
|
|
191
|
+
readonly required: false;
|
|
192
|
+
readonly default: false;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
type DestylerDialogOverlayImplProps = ExtractPublicPropTypes<typeof destylerDialogOverlayImplProps>;
|
|
196
|
+
declare const DestylerDialogOverlayImpl: vue.DefineComponent<{
|
|
197
|
+
readonly as: {
|
|
198
|
+
readonly type: PropType<AsTag | Component>;
|
|
199
|
+
readonly required: false;
|
|
200
|
+
readonly default: "div";
|
|
201
|
+
};
|
|
202
|
+
readonly asChild: {
|
|
203
|
+
readonly type: PropType<boolean>;
|
|
204
|
+
readonly required: false;
|
|
205
|
+
readonly default: false;
|
|
206
|
+
};
|
|
207
|
+
}, {
|
|
208
|
+
rootContext: DialogRootContext;
|
|
209
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
210
|
+
readonly as: {
|
|
211
|
+
readonly type: PropType<AsTag | Component>;
|
|
212
|
+
readonly required: false;
|
|
213
|
+
readonly default: "div";
|
|
214
|
+
};
|
|
215
|
+
readonly asChild: {
|
|
216
|
+
readonly type: PropType<boolean>;
|
|
217
|
+
readonly required: false;
|
|
218
|
+
readonly default: false;
|
|
219
|
+
};
|
|
220
|
+
}>>, {
|
|
221
|
+
readonly asChild: boolean;
|
|
222
|
+
readonly as: AsTag | Component;
|
|
223
|
+
}, {}>;
|
|
224
|
+
|
|
225
|
+
export { DestylerDialogContentImpl, DestylerDialogContentModal, DestylerDialogContentNonModal, DestylerDialogOverlayImpl, type DestylerDialogOverlayImplProps };
|