@mouseless/baked 1.7.0 → 1.7.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/dist/module.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div
|
|
10
10
|
class="
|
|
11
11
|
w-full
|
|
12
|
-
grid grid-cols-1 items-start gap-4
|
|
12
|
+
grid grid-cols-1 items-start content-start gap-4
|
|
13
13
|
lg:grid-cols-2
|
|
14
14
|
"
|
|
15
15
|
>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div
|
|
26
26
|
v-if="sideContents.length"
|
|
27
27
|
class="
|
|
28
|
-
w-[30rem] gap-2 flex flex-col
|
|
28
|
+
w-[30rem] gap-2 flex flex-col mt-2
|
|
29
29
|
max-md:w-full
|
|
30
30
|
max-lg:w-80
|
|
31
31
|
"
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
<div
|
|
58
58
|
v-if="inputGroups.length > 0"
|
|
59
59
|
class="
|
|
60
|
+
b-input-groups
|
|
60
61
|
grid grid-cols-2 grid-flow-col
|
|
61
62
|
gap-4 items-start
|
|
62
63
|
max-md:flex max-md:flex-col
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
class="w-full flex gap-4 max-md:flex-col"
|
|
70
71
|
:class="{
|
|
71
72
|
'col-span-2': inputGroup.wide,
|
|
72
|
-
'reset-min-w': inputGroup.inputs.length > 1
|
|
73
|
+
'b-input-group reset-min-w': inputGroup.inputs.length > 1
|
|
73
74
|
}"
|
|
74
75
|
>
|
|
75
76
|
<Inputs
|
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
@submit="() => visible = false"
|
|
44
44
|
/>
|
|
45
45
|
<Button
|
|
46
|
+
v-tooltip.top="{
|
|
47
|
+
disabled: !showValidationSummary,
|
|
48
|
+
value: messages,
|
|
49
|
+
pt: { text: 'text-sm' }
|
|
50
|
+
}"
|
|
46
51
|
:schema="submit"
|
|
47
52
|
:ready
|
|
48
53
|
@submit="execute"
|
|
@@ -57,7 +62,10 @@
|
|
|
57
62
|
<div
|
|
58
63
|
v-bind="$attrs"
|
|
59
64
|
class="flex flex-col gap-4"
|
|
60
|
-
:class="
|
|
65
|
+
:class="[
|
|
66
|
+
{ 'gap-8': !horizontal },
|
|
67
|
+
{ 'horizontal': horizontal }
|
|
68
|
+
]"
|
|
61
69
|
>
|
|
62
70
|
<h2 class="font-bold text-xl truncate">
|
|
63
71
|
{{ l(title) }}
|
|
@@ -84,7 +92,10 @@
|
|
|
84
92
|
:schema="submit"
|
|
85
93
|
:ready
|
|
86
94
|
class="min-w-min"
|
|
87
|
-
:class="
|
|
95
|
+
:class="[
|
|
96
|
+
{ 'mt-4': !horizontal && inputs.length },
|
|
97
|
+
{ 'text-nowrap self-start': horizontal }
|
|
98
|
+
]"
|
|
88
99
|
@submit="$emit('submit', model)"
|
|
89
100
|
/>
|
|
90
101
|
<ErrorPopover ref="errorPopoverRef">
|
|
@@ -148,3 +159,7 @@ function emitSubmit() {
|
|
|
148
159
|
}
|
|
149
160
|
}
|
|
150
161
|
</script>
|
|
162
|
+
|
|
163
|
+
<style scoped>
|
|
164
|
+
.horizontal :has(.p-iftalabel) .p-button[data-p=large]{@apply mt-1}.horizontal :has(.p-iftalabel) .p-button:not([data-p=large]){@apply mt-2}
|
|
165
|
+
</style>
|
|
@@ -39,7 +39,7 @@ function Composable() {
|
|
|
39
39
|
|
|
40
40
|
function Is() {
|
|
41
41
|
async function evaluate({ constraint, value }) {
|
|
42
|
-
return constraint.is === value;
|
|
42
|
+
return (constraint.null && value == null) || constraint.is === value;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
return {
|
|
@@ -49,10 +49,10 @@ function Is() {
|
|
|
49
49
|
|
|
50
50
|
function IsNot() {
|
|
51
51
|
async function evaluate({ constraint, value }) {
|
|
52
|
-
return constraint.isNot !== value;
|
|
52
|
+
return (constraint.null && value != null) || constraint.isNot !== value;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
return {
|
|
56
56
|
evaluate
|
|
57
57
|
};
|
|
58
|
-
}
|
|
58
|
+
}
|