@mouseless/baked 1.7.1 → 1.7.2
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
|
@@ -67,7 +67,10 @@
|
|
|
67
67
|
{ 'horizontal': horizontal }
|
|
68
68
|
]"
|
|
69
69
|
>
|
|
70
|
-
<h2
|
|
70
|
+
<h2
|
|
71
|
+
v-if="alwaysShowTitle"
|
|
72
|
+
class="font-bold text-xl truncate"
|
|
73
|
+
>
|
|
71
74
|
{{ l(title) }}
|
|
72
75
|
</h2>
|
|
73
76
|
<div
|
|
@@ -118,7 +121,7 @@ const { schema } = defineProps({
|
|
|
118
121
|
schema: { type: null, required: true }
|
|
119
122
|
});
|
|
120
123
|
const emit = defineEmits(["submit"]);
|
|
121
|
-
const { dialogOptions, inputs, horizontal, submit, title, validations = [], showValidationSummary
|
|
124
|
+
const { alwaysShowTitle, dialogOptions, inputs, horizontal, submit, title, validations = [], showValidationSummary } = schema;
|
|
122
125
|
const model = ref({});
|
|
123
126
|
const readyData = ref({});
|
|
124
127
|
const submitted = ref(false);
|
|
@@ -39,7 +39,9 @@ function Composable() {
|
|
|
39
39
|
|
|
40
40
|
function Is() {
|
|
41
41
|
async function evaluate({ constraint, value }) {
|
|
42
|
-
|
|
42
|
+
if(constraint["null"]) { return value == null; }
|
|
43
|
+
|
|
44
|
+
return constraint.is === value;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
return {
|
|
@@ -49,7 +51,9 @@ function Is() {
|
|
|
49
51
|
|
|
50
52
|
function IsNot() {
|
|
51
53
|
async function evaluate({ constraint, value }) {
|
|
52
|
-
|
|
54
|
+
if(constraint["null"]) { return value != null; }
|
|
55
|
+
|
|
56
|
+
return constraint.isNot !== value;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
return {
|