edvoyui-component-library-test-flight 0.0.209 → 0.0.211
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/dist/components/modal/EUIModal.d.ts +1 -0
- package/dist/components/modal/EUIModal.vue +10 -2
- package/dist/components/searchTagSelect/EUISearchTagSelect.d.ts +4 -0
- package/dist/components/searchTagSelect/EUISearchTagSelect.vue +4 -0
- package/dist/edvoy-ui.cjs.js +2 -2
- package/dist/edvoy-ui.css +1 -1
- package/dist/edvoy-ui.es.js +15 -12
- package/dist/edvoy-ui.umd.js +3 -3
- package/package.json +1 -1
|
@@ -34,6 +34,7 @@ declare const _default: import('../../../node_modules/vue').DefineComponent<impo
|
|
|
34
34
|
};
|
|
35
35
|
}>, {
|
|
36
36
|
closeModal: () => void;
|
|
37
|
+
dismissModal: () => void;
|
|
37
38
|
slideClass: import('../../../node_modules/vue').ComputedRef<string>;
|
|
38
39
|
}, {}, {}, {}, import('../../../node_modules/vue').ComponentOptionsMixin, import('../../../node_modules/vue').ComponentOptionsMixin, ("update:isVisible" | "confirm")[], "update:isVisible" | "confirm", import('../../../node_modules/vue').PublicProps, Readonly<import('../../../node_modules/vue').ExtractPropTypes<{
|
|
39
40
|
isVisible: {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<button
|
|
45
45
|
type="button"
|
|
46
46
|
class="flex items-center justify-center text-gray-400 bg-white hover:bg-gray-50 rounded-3xl hover:text-gray-600 size-8"
|
|
47
|
-
@click="
|
|
47
|
+
@click="dismissModal"
|
|
48
48
|
>
|
|
49
49
|
<span class="sr-only">Close</span>
|
|
50
50
|
<svg
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
class="sticky bottom-0 flex items-center justify-end float-none p-4 space-x-2"
|
|
85
85
|
>
|
|
86
86
|
<button
|
|
87
|
-
@click="
|
|
87
|
+
@click="dismissModal"
|
|
88
88
|
class="px-4 py-2 text-base font-semibold tracking-wide text-gray-600 transition-colors duration-75 bg-white rounded-md hover:bg-gray-100"
|
|
89
89
|
>
|
|
90
90
|
Cancel
|
|
@@ -166,11 +166,18 @@ export default defineComponent({
|
|
|
166
166
|
});
|
|
167
167
|
|
|
168
168
|
// Methods
|
|
169
|
+
// Accidental dismissal (backdrop click / Esc) — suppressed when persistent.
|
|
169
170
|
const closeModal = () => {
|
|
170
171
|
if (!props.persistent) {
|
|
171
172
|
emit("update:isVisible", false);
|
|
172
173
|
}
|
|
173
174
|
};
|
|
175
|
+
// Explicit close affordances (the X button and default Cancel) always
|
|
176
|
+
// dismiss, even when persistent. `persistent` only guards against the
|
|
177
|
+
// accidental backdrop/Esc dismissal handled by closeModal.
|
|
178
|
+
const dismissModal = () => {
|
|
179
|
+
emit("update:isVisible", false);
|
|
180
|
+
};
|
|
174
181
|
const handleKeydown = (event: KeyboardEvent) => {
|
|
175
182
|
if (event.key === "Escape" && props.isVisible && !props.persistent) {
|
|
176
183
|
closeModal();
|
|
@@ -194,6 +201,7 @@ export default defineComponent({
|
|
|
194
201
|
});
|
|
195
202
|
return {
|
|
196
203
|
closeModal,
|
|
204
|
+
dismissModal,
|
|
197
205
|
slideClass,
|
|
198
206
|
};
|
|
199
207
|
},
|
|
@@ -157,17 +157,21 @@ declare function __VLS_template(): {
|
|
|
157
157
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
158
158
|
declare const __VLS_component: import('../../../node_modules/vue').DefineComponent<Props, {}, {}, {}, {}, import('../../../node_modules/vue').ComponentOptionsMixin, import('../../../node_modules/vue').ComponentOptionsMixin, {
|
|
159
159
|
blur: () => any;
|
|
160
|
+
close: () => any;
|
|
160
161
|
toggle: (value?: any) => any;
|
|
161
162
|
search: (value: string) => any;
|
|
162
163
|
"update:modelValue": (value: any) => any;
|
|
164
|
+
open: () => any;
|
|
163
165
|
"on-change": (value: any) => any;
|
|
164
166
|
create: (value: string) => any;
|
|
165
167
|
"on-deselect": (value: any) => any;
|
|
166
168
|
}, string, import('../../../node_modules/vue').PublicProps, Readonly<Props> & Readonly<{
|
|
167
169
|
onBlur?: (() => any) | undefined;
|
|
170
|
+
onClose?: (() => any) | undefined;
|
|
168
171
|
onToggle?: ((value?: any) => any) | undefined;
|
|
169
172
|
onSearch?: ((value: string) => any) | undefined;
|
|
170
173
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
174
|
+
onOpen?: (() => any) | undefined;
|
|
171
175
|
"onOn-change"?: ((value: any) => any) | undefined;
|
|
172
176
|
onCreate?: ((value: string) => any) | undefined;
|
|
173
177
|
"onOn-deselect"?: ((value: any) => any) | undefined;
|
|
@@ -326,6 +326,8 @@ const emit = defineEmits<{
|
|
|
326
326
|
"on-change": [value: any];
|
|
327
327
|
"on-deselect": [value: any];
|
|
328
328
|
toggle: [value?: any];
|
|
329
|
+
open: [];
|
|
330
|
+
close: [];
|
|
329
331
|
}>();
|
|
330
332
|
|
|
331
333
|
// Refs
|
|
@@ -542,6 +544,7 @@ const handleOpen = () => {
|
|
|
542
544
|
internalSearch.value = "";
|
|
543
545
|
}
|
|
544
546
|
showDropDown.value = true;
|
|
547
|
+
emit("open");
|
|
545
548
|
|
|
546
549
|
nextTick(() => {
|
|
547
550
|
setTimeout(() => {
|
|
@@ -562,6 +565,7 @@ const handleOpen = () => {
|
|
|
562
565
|
const handleClose = () => {
|
|
563
566
|
if (showDropDown.value) {
|
|
564
567
|
emit("blur");
|
|
568
|
+
emit("close");
|
|
565
569
|
}
|
|
566
570
|
showDropDown.value = false;
|
|
567
571
|
|