frappe-ui 0.1.237 → 0.1.239
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.
|
@@ -41,6 +41,18 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
|
|
44
|
+
<div v-if="warnings.length" class="space-y-2">
|
|
45
|
+
<div class="text-ink-gray-5 text-sm">
|
|
46
|
+
Warnings
|
|
47
|
+
</div>
|
|
48
|
+
<div class="rounded-md bg-surface-amber-2 p-2 space-y-2 text-xs">
|
|
49
|
+
<div v-for="warning in warnings" class="flex items-center space-x-2">
|
|
50
|
+
<FeatherIcon name="alert-circle" class="size-3 text-ink-amber-3" />
|
|
51
|
+
<div v-html="warning.message" class=""></div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
44
56
|
<div v-if="preview?.data?.length" class="border rounded-md overflow-x-auto">
|
|
45
57
|
<table class="divide-y">
|
|
46
58
|
<thead class="rounded-t-md">
|
|
@@ -325,6 +337,10 @@ const mapping = computed(() => {
|
|
|
325
337
|
return warningMap;
|
|
326
338
|
})
|
|
327
339
|
|
|
340
|
+
const warnings = computed(() => {
|
|
341
|
+
return preview.value?.warnings?.filter((warning: any) => warning.type != "info") || [];
|
|
342
|
+
})
|
|
343
|
+
|
|
328
344
|
const listRoute = computed(() => {
|
|
329
345
|
return props.doctypeMap[props.data.reference_doctype]?.listRoute
|
|
330
346
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frappe-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.239",
|
|
4
4
|
"description": "A set of components and utilities for rapid UI development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"repository": {
|
|
55
55
|
"type": "git",
|
|
56
|
-
"url": "https://github.com/frappe/frappe-ui.git"
|
|
56
|
+
"url": "git+https://github.com/frappe/frappe-ui.git"
|
|
57
57
|
},
|
|
58
58
|
"author": "Frappe Technologies Pvt. Ltd.",
|
|
59
59
|
"license": "MIT",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<DialogRoot v-model:open="isOpen" @update:open="handleOpenChange">
|
|
3
3
|
<DialogPortal>
|
|
4
4
|
<DialogOverlay
|
|
5
|
-
class="fixed inset-0 bg-black-overlay-200
|
|
5
|
+
class="fixed inset-0 bg-black-overlay-200 dark:bg-black-overlay-700 overflow-y-auto dialog-overlay outline-none"
|
|
6
6
|
:data-dialog="options.title"
|
|
7
7
|
@after-leave="$emit('after-leave')"
|
|
8
8
|
>
|