@sedoo/unidoo 0.1.63 → 0.1.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.
- package/dist/auth/auth.common.js +1 -1
- package/dist/auth/auth.umd.js +1 -1
- package/dist/auth/auth.umd.min.js +1 -1
- package/dist/unidoo/unidoo.common.js +1 -1
- package/dist/unidoo/unidoo.umd.js +1 -1
- package/dist/unidoo/unidoo.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/components/UnidooConfirmDialog.vue +1 -1
- package/src/utils.js +4 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-dialog v-model="confirmDialog" persistent :width="width">
|
|
2
|
+
<v-dialog v-model="confirmDialog" persistent :width="width" @keydown.enter="confirm">
|
|
3
3
|
<v-card>
|
|
4
4
|
<v-card-title :class="titleClasses">{{title}}</v-card-title>
|
|
5
5
|
<v-card-text>{{message}}</v-card-text>
|
package/src/utils.js
CHANGED
|
@@ -17,8 +17,10 @@ export function dateToSpecificTimeZone(date) {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
export const isEmpty = (obj) => {
|
|
20
|
-
if (obj
|
|
20
|
+
if ((obj && obj.length) || (obj && obj.size)) return false;
|
|
21
21
|
if (typeof obj !== "object") return true;
|
|
22
|
-
for (const key in obj)
|
|
22
|
+
for (const key in obj) {
|
|
23
|
+
if (Object.hasOwn(obj, key)) return false;
|
|
24
|
+
}
|
|
23
25
|
return true;
|
|
24
26
|
};
|