@robuust-digital/vue-components 2.1.0 → 2.2.0
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/CHANGELOG.md +6 -0
- package/dist/_shared/ButtonBase.vue_vue_type_script_setup_true_lang-DeflHqux.js +60 -0
- package/dist/_shared/ChevronDownIcon-DaaXfD3C.js +41 -0
- package/dist/_shared/Combobox.vue_vue_type_script_setup_true_lang-CP3x2DUA.js +266 -0
- package/dist/_shared/Drawer.vue_vue_type_script_setup_true_lang-CD5914Fk.js +185 -0
- package/dist/_shared/Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js +115 -0
- package/dist/_shared/FormInput.vue_vue_type_script_setup_true_lang-BhJpG-Fw.js +75 -0
- package/dist/_shared/Lightswitch.vue_vue_type_script_setup_true_lang-DX23lEFd.js +43 -0
- package/dist/_shared/Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js +186 -0
- package/dist/_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-CIVhqJtE.js +274 -0
- package/dist/_shared/Tabs.vue_vue_type_script_setup_true_lang-BgOTdYXd.js +676 -0
- package/dist/_shared/Toast.vue_vue_type_script_setup_true_lang-Be3i_0zE.js +78 -0
- package/dist/_shared/Tooltip.vue_vue_type_script_setup_true_lang-CoydN9sS.js +96 -0
- package/dist/_shared/{icon-spinner-CmxIOqaK.js → icon-spinner-CP0VP_YM.js} +2 -2
- package/dist/combobox/index.js +3 -347
- package/dist/combobox.d.ts +132 -0
- package/dist/core/index.js +17 -826
- package/dist/core.d.ts +669 -0
- package/dist/dialogs/index.js +4 -216
- package/dist/dialogs.d.ts +226 -0
- package/dist/dropdown/index.js +3 -131
- package/dist/dropdown.d.ts +145 -0
- package/dist/index/index.js +35 -0
- package/dist/index.d.ts +1343 -0
- package/dist/lightswitch/index.js +3 -47
- package/dist/lightswitch.d.ts +39 -0
- package/dist/rich-text-editor/index.js +3 -261
- package/dist/rich-text-editor.d.ts +89 -0
- package/dist/toast/index.js +3 -99
- package/dist/toast.d.ts +66 -0
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip.d.ts +61 -0
- package/package.json +69 -38
- package/dist/_shared/ButtonBase-DfkwHIhN.js +0 -87
- package/dist/_shared/ChevronDownIcon-z-5U4fIb.js +0 -55
- package/dist/_shared/FormInput-B-SQTZTA.js +0 -92
- package/dist/_shared/Modal-Bw2sID1x.js +0 -213
- package/dist/_shared/Tooltip-B93ZF7IF.js +0 -126
package/dist/dialogs/index.js
CHANGED
|
@@ -1,218 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _ as k } from "../_shared/ButtonBase-DfkwHIhN.js";
|
|
4
|
-
import { u as R } from "../_shared/Modal-Bw2sID1x.js";
|
|
5
|
-
import { _ as Y } from "../_shared/Modal-Bw2sID1x.js";
|
|
6
|
-
import { r as C } from "../_shared/XMarkIcon-90mcPzBs.js";
|
|
7
|
-
const q = {
|
|
8
|
-
class: "rvc-drawer-presentation",
|
|
9
|
-
role: "presentation"
|
|
10
|
-
}, A = { class: "rvc-drawer-container" }, H = { class: "rvc-drawer-inner" }, I = { class: "rvc-drawer-panel-inner" }, M = { class: "rvc-drawer-header-inner" }, z = { class: "rvc-drawer-close-wrapper" }, P = ["id"], j = {
|
|
11
|
-
key: 2,
|
|
12
|
-
class: "rvc-drawer-footer"
|
|
13
|
-
}, U = {
|
|
14
|
-
__name: "Drawer",
|
|
15
|
-
props: {
|
|
16
|
-
as: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "form"
|
|
19
|
-
},
|
|
20
|
-
id: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: !0
|
|
23
|
-
},
|
|
24
|
-
title: {
|
|
25
|
-
type: String,
|
|
26
|
-
required: !0
|
|
27
|
-
},
|
|
28
|
-
showClose: {
|
|
29
|
-
type: Boolean
|
|
30
|
-
},
|
|
31
|
-
scrolledDown: {
|
|
32
|
-
type: Boolean
|
|
33
|
-
},
|
|
34
|
-
headerSticky: {
|
|
35
|
-
type: Boolean
|
|
36
|
-
},
|
|
37
|
-
spinning: {
|
|
38
|
-
type: Boolean
|
|
39
|
-
},
|
|
40
|
-
submitLabel: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: "Save"
|
|
43
|
-
},
|
|
44
|
-
cancelLabel: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: "Cancel"
|
|
47
|
-
},
|
|
48
|
-
panelClass: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: "rvc-drawer-panel-max-width"
|
|
51
|
-
},
|
|
52
|
-
resetHeader: {
|
|
53
|
-
type: Boolean
|
|
54
|
-
},
|
|
55
|
-
resetFooter: {
|
|
56
|
-
type: Boolean
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
emits: ["drawer:open", "drawer:opened", "drawer:close", "drawer:save", "drawer:closed"],
|
|
60
|
-
setup(e, { emit: $ }) {
|
|
61
|
-
const l = $, S = e, {
|
|
62
|
-
contentRef: B,
|
|
63
|
-
ready: v,
|
|
64
|
-
isForm: h,
|
|
65
|
-
titleId: w,
|
|
66
|
-
descriptionId: m,
|
|
67
|
-
initialFocusElement: D
|
|
68
|
-
} = R(S);
|
|
69
|
-
return (o, r) => (c(), u(t(F), { as: "template" }, {
|
|
70
|
-
default: d(() => [
|
|
71
|
-
i(t(N), {
|
|
72
|
-
as: e.as,
|
|
73
|
-
class: "rvc-drawer",
|
|
74
|
-
static: "",
|
|
75
|
-
"aria-modal": "true",
|
|
76
|
-
role: "dialog",
|
|
77
|
-
"initial-focus": t(D),
|
|
78
|
-
"aria-labelledby": t(w),
|
|
79
|
-
onClose: r[6] || (r[6] = (n) => o.$emit("drawer:close")),
|
|
80
|
-
onSubmit: r[7] || (r[7] = E((n) => l("drawer:save", n), ["prevent"]))
|
|
81
|
-
}, {
|
|
82
|
-
default: d(() => [
|
|
83
|
-
i(t(p), {
|
|
84
|
-
as: "template",
|
|
85
|
-
enter: "rvc-drawer-backdrop-transition-enter",
|
|
86
|
-
"enter-from": "rvc-drawer-backdrop-transition-enter-from",
|
|
87
|
-
"enter-to": "rvc-drawer-backdrop-transition-enter-to",
|
|
88
|
-
leave: "rvc-drawer-backdrop-transition-leave",
|
|
89
|
-
"leave-from": "rvc-drawer-backdrop-transition-leave-from",
|
|
90
|
-
"leave-to": "rvc-drawer-backdrop-transition-leave-to",
|
|
91
|
-
onBeforeEnter: r[0] || (r[0] = (n) => l("drawer:open")),
|
|
92
|
-
onAfterEnter: r[1] || (r[1] = (n) => l("drawer:opened"))
|
|
93
|
-
}, {
|
|
94
|
-
default: d(() => r[8] || (r[8] = [
|
|
95
|
-
a("div", {
|
|
96
|
-
class: "rvc-drawer-backdrop",
|
|
97
|
-
"aria-hidden": "true"
|
|
98
|
-
}, null, -1)
|
|
99
|
-
])),
|
|
100
|
-
_: 1,
|
|
101
|
-
__: [8]
|
|
102
|
-
}),
|
|
103
|
-
a("div", q, [
|
|
104
|
-
a("div", A, [
|
|
105
|
-
a("div", H, [
|
|
106
|
-
i(t(p), {
|
|
107
|
-
as: "template",
|
|
108
|
-
enter: "rvc-drawer-transition-enter",
|
|
109
|
-
"enter-from": "rvc-drawer-transition-enter-from",
|
|
110
|
-
"enter-to": "rvc-drawer-transition-enter-to",
|
|
111
|
-
leave: "rvc-drawer-transition-leave",
|
|
112
|
-
"leave-from": "rvc-drawer-transition-leave-from",
|
|
113
|
-
"leave-to": "rvc-drawer-transition-leave-to",
|
|
114
|
-
onBeforeEnter: r[4] || (r[4] = (n) => v.value = !0),
|
|
115
|
-
onAfterLeave: r[5] || (r[5] = (n) => (v.value = !1, l("drawer:closed")))
|
|
116
|
-
}, {
|
|
117
|
-
default: d(() => [
|
|
118
|
-
i(t(V), {
|
|
119
|
-
class: f(["rvc-drawer-panel", e.panelClass]),
|
|
120
|
-
"aria-busy": e.spinning,
|
|
121
|
-
"aria-describedby": t(m)
|
|
122
|
-
}, {
|
|
123
|
-
default: d(() => [
|
|
124
|
-
a("div", I, [
|
|
125
|
-
e.resetHeader ? s(o.$slots, "header", { key: 1 }) : (c(), b("header", {
|
|
126
|
-
key: 0,
|
|
127
|
-
class: f([{ "rvc-drawer-header-sticky": e.headerSticky }, "rvc-drawer-header"])
|
|
128
|
-
}, [
|
|
129
|
-
s(o.$slots, "header", {
|
|
130
|
-
title: e.title,
|
|
131
|
-
showClose: e.showClose
|
|
132
|
-
}, () => [
|
|
133
|
-
a("div", M, [
|
|
134
|
-
s(o.$slots, "title", {
|
|
135
|
-
id: t(w),
|
|
136
|
-
dialogTitle: t(g),
|
|
137
|
-
title: e.title
|
|
138
|
-
}, () => [
|
|
139
|
-
i(t(g), {
|
|
140
|
-
id: t(w),
|
|
141
|
-
class: "rvc-drawer-title"
|
|
142
|
-
}, {
|
|
143
|
-
default: d(() => [
|
|
144
|
-
L(T(e.title), 1)
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["id"])
|
|
148
|
-
]),
|
|
149
|
-
e.showClose ? s(o.$slots, "close", {
|
|
150
|
-
key: 0,
|
|
151
|
-
icon: t(C),
|
|
152
|
-
emitClose: () => l("drawer:close")
|
|
153
|
-
}, () => [
|
|
154
|
-
a("div", z, [
|
|
155
|
-
a("button", {
|
|
156
|
-
type: "button",
|
|
157
|
-
class: "rvc-drawer-close",
|
|
158
|
-
"aria-label": "Close panel",
|
|
159
|
-
onClick: r[2] || (r[2] = (n) => l("drawer:close"))
|
|
160
|
-
}, [
|
|
161
|
-
i(t(C), { "aria-hidden": "true" })
|
|
162
|
-
])
|
|
163
|
-
])
|
|
164
|
-
]) : y("", !0)
|
|
165
|
-
])
|
|
166
|
-
])
|
|
167
|
-
], 2)),
|
|
168
|
-
a("div", {
|
|
169
|
-
class: f([{ "rvc-drawer-scroll-reverse": e.scrolledDown }, "rvc-drawer-scroll"])
|
|
170
|
-
}, [
|
|
171
|
-
a("div", {
|
|
172
|
-
id: t(m),
|
|
173
|
-
ref_key: "contentRef",
|
|
174
|
-
ref: B,
|
|
175
|
-
class: "rvc-drawer-content"
|
|
176
|
-
}, [
|
|
177
|
-
s(o.$slots, "default", { ready: t(v) })
|
|
178
|
-
], 8, P)
|
|
179
|
-
], 2),
|
|
180
|
-
e.resetFooter ? s(o.$slots, "footer", { key: 3 }) : (c(), b("footer", j, [
|
|
181
|
-
s(o.$slots, "footer", { loading: e.spinning }, () => [
|
|
182
|
-
i(k, {
|
|
183
|
-
type: "button",
|
|
184
|
-
label: e.cancelLabel,
|
|
185
|
-
color: "light",
|
|
186
|
-
onClick: r[3] || (r[3] = (n) => l("drawer:close"))
|
|
187
|
-
}, null, 8, ["label"]),
|
|
188
|
-
t(h) ? (c(), u(k, {
|
|
189
|
-
key: 0,
|
|
190
|
-
type: "submit",
|
|
191
|
-
label: e.submitLabel,
|
|
192
|
-
spinning: e.spinning,
|
|
193
|
-
disabled: e.spinning
|
|
194
|
-
}, null, 8, ["label", "spinning", "disabled"])) : y("", !0)
|
|
195
|
-
])
|
|
196
|
-
]))
|
|
197
|
-
])
|
|
198
|
-
]),
|
|
199
|
-
_: 3
|
|
200
|
-
}, 8, ["class", "aria-busy", "aria-describedby"])
|
|
201
|
-
]),
|
|
202
|
-
_: 3
|
|
203
|
-
})
|
|
204
|
-
])
|
|
205
|
-
])
|
|
206
|
-
])
|
|
207
|
-
]),
|
|
208
|
-
_: 3
|
|
209
|
-
}, 8, ["as", "initial-focus", "aria-labelledby"])
|
|
210
|
-
]),
|
|
211
|
-
_: 3
|
|
212
|
-
}));
|
|
213
|
-
}
|
|
214
|
-
};
|
|
1
|
+
import { _ as a } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-CD5914Fk.js";
|
|
2
|
+
import { _ as f } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js";
|
|
215
3
|
export {
|
|
216
|
-
|
|
217
|
-
|
|
4
|
+
a as Drawer,
|
|
5
|
+
f as Modal
|
|
218
6
|
};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { ComponentCustomProps } from 'vue';
|
|
3
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
4
|
+
import { ComponentProvideOptions } from 'vue';
|
|
5
|
+
import { DefineComponent } from 'vue';
|
|
6
|
+
import { ExtractPropTypes } from 'vue';
|
|
7
|
+
import { FunctionalComponent } from 'vue';
|
|
8
|
+
import { HTMLAttributes } from 'vue';
|
|
9
|
+
import { PublicProps } from 'vue';
|
|
10
|
+
import { RendererElement } from 'vue';
|
|
11
|
+
import { RendererNode } from 'vue';
|
|
12
|
+
import { VNode } from 'vue';
|
|
13
|
+
import { VNodeProps } from 'vue';
|
|
14
|
+
|
|
15
|
+
declare const __VLS_component: DefineComponent<DrawerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
16
|
+
"drawer:open": () => any;
|
|
17
|
+
"drawer:opened": () => any;
|
|
18
|
+
"drawer:close": () => any;
|
|
19
|
+
"drawer:save": (event: Event) => any;
|
|
20
|
+
"drawer:closed": () => any;
|
|
21
|
+
}, string, PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
22
|
+
"onDrawer:open"?: (() => any) | undefined;
|
|
23
|
+
"onDrawer:opened"?: (() => any) | undefined;
|
|
24
|
+
"onDrawer:close"?: (() => any) | undefined;
|
|
25
|
+
"onDrawer:save"?: ((event: Event) => any) | undefined;
|
|
26
|
+
"onDrawer:closed"?: (() => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
as: string;
|
|
29
|
+
spinning: boolean;
|
|
30
|
+
showClose: boolean;
|
|
31
|
+
scrolledDown: boolean;
|
|
32
|
+
headerSticky: boolean;
|
|
33
|
+
submitLabel: string;
|
|
34
|
+
cancelLabel: string;
|
|
35
|
+
panelClass: string;
|
|
36
|
+
resetHeader: boolean;
|
|
37
|
+
resetFooter: boolean;
|
|
38
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
39
|
+
contentRef: HTMLDivElement;
|
|
40
|
+
}, any>;
|
|
41
|
+
|
|
42
|
+
declare const __VLS_component_2: DefineComponent<ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
43
|
+
"modal:open": () => any;
|
|
44
|
+
"modal:opened": () => any;
|
|
45
|
+
"modal:close": () => any;
|
|
46
|
+
"modal:save": (event?: Event | undefined) => any;
|
|
47
|
+
"modal:closed": () => any;
|
|
48
|
+
}, string, PublicProps, Readonly<ModalProps> & Readonly<{
|
|
49
|
+
"onModal:open"?: (() => any) | undefined;
|
|
50
|
+
"onModal:opened"?: (() => any) | undefined;
|
|
51
|
+
"onModal:close"?: (() => any) | undefined;
|
|
52
|
+
"onModal:save"?: ((event?: Event | undefined) => any) | undefined;
|
|
53
|
+
"onModal:closed"?: (() => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
as: string;
|
|
56
|
+
spinning: boolean;
|
|
57
|
+
showClose: boolean;
|
|
58
|
+
submitLabel: string;
|
|
59
|
+
cancelLabel: string;
|
|
60
|
+
panelClass: string;
|
|
61
|
+
resetHeader: boolean;
|
|
62
|
+
resetFooter: boolean;
|
|
63
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
64
|
+
contentRef: HTMLDivElement;
|
|
65
|
+
}, any>;
|
|
66
|
+
|
|
67
|
+
declare function __VLS_template(): {
|
|
68
|
+
attrs: Partial<{}>;
|
|
69
|
+
slots: {
|
|
70
|
+
header?(_: {
|
|
71
|
+
title: string;
|
|
72
|
+
showClose: boolean;
|
|
73
|
+
}): any;
|
|
74
|
+
header?(_: {}): any;
|
|
75
|
+
title?(_: {
|
|
76
|
+
id: string;
|
|
77
|
+
dialogTitle: DefineComponent< {
|
|
78
|
+
as: {
|
|
79
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
id: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: null;
|
|
85
|
+
};
|
|
86
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
}> | VNode<RendererNode, RendererElement, {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
91
|
+
as: {
|
|
92
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
id: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: null;
|
|
98
|
+
};
|
|
99
|
+
}>>, {
|
|
100
|
+
id: string;
|
|
101
|
+
as: string | Record<string, any>;
|
|
102
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
103
|
+
title: string;
|
|
104
|
+
}): any;
|
|
105
|
+
close?(_: {
|
|
106
|
+
icon: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
|
|
107
|
+
emitClose: () => void;
|
|
108
|
+
}): any;
|
|
109
|
+
default?(_: {
|
|
110
|
+
ready: boolean;
|
|
111
|
+
}): any;
|
|
112
|
+
footer?(_: {
|
|
113
|
+
loading: boolean;
|
|
114
|
+
}): any;
|
|
115
|
+
footer?(_: {}): any;
|
|
116
|
+
};
|
|
117
|
+
refs: {
|
|
118
|
+
contentRef: HTMLDivElement;
|
|
119
|
+
};
|
|
120
|
+
rootEl: any;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
declare function __VLS_template_2(): {
|
|
124
|
+
attrs: Partial<{}>;
|
|
125
|
+
slots: {
|
|
126
|
+
header?(_: {
|
|
127
|
+
title: string;
|
|
128
|
+
}): any;
|
|
129
|
+
header?(_: {}): any;
|
|
130
|
+
title?(_: {
|
|
131
|
+
id: string;
|
|
132
|
+
dialogTitle: DefineComponent< {
|
|
133
|
+
as: {
|
|
134
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
id: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: null;
|
|
140
|
+
};
|
|
141
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
}> | VNode<RendererNode, RendererElement, {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
}>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
146
|
+
as: {
|
|
147
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
id: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
default: null;
|
|
153
|
+
};
|
|
154
|
+
}>>, {
|
|
155
|
+
id: string;
|
|
156
|
+
as: string | Record<string, any>;
|
|
157
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
158
|
+
title: string;
|
|
159
|
+
}): any;
|
|
160
|
+
close?(_: {
|
|
161
|
+
icon: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
|
|
162
|
+
emitClose: () => void;
|
|
163
|
+
}): any;
|
|
164
|
+
default?(_: {
|
|
165
|
+
ready: boolean;
|
|
166
|
+
}): any;
|
|
167
|
+
footer?(_: {
|
|
168
|
+
loading: boolean;
|
|
169
|
+
}): any;
|
|
170
|
+
footer?(_: {}): any;
|
|
171
|
+
};
|
|
172
|
+
refs: {
|
|
173
|
+
contentRef: HTMLDivElement;
|
|
174
|
+
};
|
|
175
|
+
rootEl: any;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
179
|
+
|
|
180
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
181
|
+
|
|
182
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
183
|
+
new (): {
|
|
184
|
+
$slots: S;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
189
|
+
new (): {
|
|
190
|
+
$slots: S;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export declare const Drawer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
195
|
+
|
|
196
|
+
declare interface DrawerProps {
|
|
197
|
+
as?: string;
|
|
198
|
+
id: string;
|
|
199
|
+
title: string;
|
|
200
|
+
showClose?: boolean;
|
|
201
|
+
scrolledDown?: boolean;
|
|
202
|
+
headerSticky?: boolean;
|
|
203
|
+
spinning?: boolean;
|
|
204
|
+
submitLabel?: string;
|
|
205
|
+
cancelLabel?: string;
|
|
206
|
+
panelClass?: string;
|
|
207
|
+
resetHeader?: boolean;
|
|
208
|
+
resetFooter?: boolean;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export declare const Modal: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
212
|
+
|
|
213
|
+
declare interface ModalProps {
|
|
214
|
+
as?: string;
|
|
215
|
+
id: string;
|
|
216
|
+
title: string;
|
|
217
|
+
showClose?: boolean;
|
|
218
|
+
spinning?: boolean;
|
|
219
|
+
submitLabel?: string;
|
|
220
|
+
cancelLabel?: string;
|
|
221
|
+
panelClass?: string;
|
|
222
|
+
resetHeader?: boolean;
|
|
223
|
+
resetFooter?: boolean;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export { }
|
package/dist/dropdown/index.js
CHANGED
|
@@ -1,133 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Menu as N, MenuButton as v, MenuItems as S, MenuItem as p } from "@headlessui/vue";
|
|
3
|
-
import { _ as V } from "../_shared/ButtonBase-DfkwHIhN.js";
|
|
4
|
-
function x(t, c) {
|
|
5
|
-
return r(), w("svg", {
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
viewBox: "0 0 20 20",
|
|
8
|
-
fill: "currentColor",
|
|
9
|
-
"aria-hidden": "true",
|
|
10
|
-
"data-slot": "icon"
|
|
11
|
-
}, [
|
|
12
|
-
C("path", { d: "M10 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM10 8.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM11.5 15.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z" })
|
|
13
|
-
]);
|
|
14
|
-
}
|
|
15
|
-
const T = /* @__PURE__ */ Object.assign({
|
|
16
|
-
inheritAttrs: !1
|
|
17
|
-
}, {
|
|
18
|
-
__name: "Dropdown",
|
|
19
|
-
props: {
|
|
20
|
-
items: {
|
|
21
|
-
type: Array,
|
|
22
|
-
required: !0,
|
|
23
|
-
default: () => []
|
|
24
|
-
},
|
|
25
|
-
alignLeft: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
},
|
|
29
|
-
fullWidth: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
32
|
-
},
|
|
33
|
-
label: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: "Options"
|
|
36
|
-
},
|
|
37
|
-
rootClass: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: ""
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["dropdown:click"],
|
|
43
|
-
setup(t, { emit: c }) {
|
|
44
|
-
const b = c, g = (o) => {
|
|
45
|
-
const {
|
|
46
|
-
as: h,
|
|
47
|
-
bindAs: e,
|
|
48
|
-
event: d,
|
|
49
|
-
icon: y,
|
|
50
|
-
name: I,
|
|
51
|
-
...k
|
|
52
|
-
} = o;
|
|
53
|
-
return k;
|
|
54
|
-
};
|
|
55
|
-
return (o, h) => (r(), l(n(N), {
|
|
56
|
-
as: "div",
|
|
57
|
-
class: u(["rvc-dropdown", t.rootClass])
|
|
58
|
-
}, {
|
|
59
|
-
default: a(() => [
|
|
60
|
-
s(o.$slots, "button", {
|
|
61
|
-
label: t.label,
|
|
62
|
-
button: n(v)
|
|
63
|
-
}, () => [
|
|
64
|
-
i(n(v), f({
|
|
65
|
-
as: V,
|
|
66
|
-
label: t.label,
|
|
67
|
-
color: "light",
|
|
68
|
-
icon: n(x),
|
|
69
|
-
"icon-left": t.alignLeft
|
|
70
|
-
}, o.$attrs), null, 16, ["label", "icon", "icon-left"])
|
|
71
|
-
]),
|
|
72
|
-
i(B, {
|
|
73
|
-
"enter-active-class": "rvc-dropdown-transition-enter",
|
|
74
|
-
"enter-from-class": "rvc-dropdown-transition-enter-from",
|
|
75
|
-
"enter-to-class": "rvc-dropdown-transition-enter-to",
|
|
76
|
-
"leave-active-class": "rvc-dropdown-transition-leave",
|
|
77
|
-
"leave-from-class": "rvc-dropdown-transition-leave-from",
|
|
78
|
-
"leave-to-class": "rvc-dropdown-transition-leave-to"
|
|
79
|
-
}, {
|
|
80
|
-
default: a(() => [
|
|
81
|
-
i(n(S), {
|
|
82
|
-
class: u([
|
|
83
|
-
"rvc-dropdown-items",
|
|
84
|
-
{
|
|
85
|
-
"rvc-dropdown-items-left": t.alignLeft,
|
|
86
|
-
"rvc-dropdown-items-full": t.fullWidth
|
|
87
|
-
}
|
|
88
|
-
])
|
|
89
|
-
}, {
|
|
90
|
-
default: a(() => [
|
|
91
|
-
s(o.$slots, "items", {
|
|
92
|
-
items: t.items,
|
|
93
|
-
menuItem: n(p)
|
|
94
|
-
}, () => [
|
|
95
|
-
(r(!0), w(M, null, $(t.items, (e, d) => (r(), l(n(p), {
|
|
96
|
-
key: `${d}-dropdown-item`,
|
|
97
|
-
as: "template"
|
|
98
|
-
}, {
|
|
99
|
-
default: a(() => [
|
|
100
|
-
s(o.$slots, "item", { item: e }, () => [
|
|
101
|
-
(r(), l(m(e.as ? e.as : "button"), f({ class: "rvc-dropdown-item" }, { ref_for: !0 }, g(e), {
|
|
102
|
-
as: e.bindAs ? e.bindAs : void 0,
|
|
103
|
-
onClick: (y) => (b("dropdown:click", e), e.event ? e.event() : null)
|
|
104
|
-
}), {
|
|
105
|
-
default: a(() => [
|
|
106
|
-
e.icon ? (r(), l(m(e.icon), {
|
|
107
|
-
key: 0,
|
|
108
|
-
class: "rvc-dropdown-item-icon"
|
|
109
|
-
})) : A("", !0),
|
|
110
|
-
D(" " + L(e.name), 1)
|
|
111
|
-
]),
|
|
112
|
-
_: 2
|
|
113
|
-
}, 1040, ["as", "onClick"]))
|
|
114
|
-
])
|
|
115
|
-
]),
|
|
116
|
-
_: 2
|
|
117
|
-
}, 1024))), 128))
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
_: 3
|
|
121
|
-
}, 8, ["class"])
|
|
122
|
-
]),
|
|
123
|
-
_: 3
|
|
124
|
-
})
|
|
125
|
-
]),
|
|
126
|
-
_: 3
|
|
127
|
-
}, 8, ["class"]));
|
|
128
|
-
}
|
|
129
|
-
});
|
|
1
|
+
import { _ as o } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js";
|
|
130
2
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
3
|
+
o as Dropdown,
|
|
4
|
+
o as default
|
|
133
5
|
};
|