@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mouseless/baked",
3
3
  "configKey": "baked",
4
- "version": "1.7.1",
4
+ "version": "1.7.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -67,7 +67,10 @@
67
67
  { 'horizontal': horizontal }
68
68
  ]"
69
69
  >
70
- <h2 class="font-bold text-xl truncate">
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 = false } = schema;
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
- return (constraint.null && value == null) || constraint.is === value;
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
- return (constraint.null && value != null) || constraint.isNot !== value;
54
+ if(constraint["null"]) { return value != null; }
55
+
56
+ return constraint.isNot !== value;
53
57
  }
54
58
 
55
59
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mouseless/baked",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Baked is an opinionated framework for .NET and Vue. This is the UI package of Baked project.",
5
5
  "keywords": [
6
6
  "baked",