@mouseless/baked 1.7.0 → 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.0",
4
+ "version": "1.7.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -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,9 +62,15 @@
57
62
  <div
58
63
  v-bind="$attrs"
59
64
  class="flex flex-col gap-4"
60
- :class="{ 'gap-8': !horizontal }"
65
+ :class="[
66
+ { 'gap-8': !horizontal },
67
+ { 'horizontal': horizontal }
68
+ ]"
61
69
  >
62
- <h2 class="font-bold text-xl truncate">
70
+ <h2
71
+ v-if="alwaysShowTitle"
72
+ class="font-bold text-xl truncate"
73
+ >
63
74
  {{ l(title) }}
64
75
  </h2>
65
76
  <div
@@ -84,7 +95,10 @@
84
95
  :schema="submit"
85
96
  :ready
86
97
  class="min-w-min"
87
- :class="{ 'mt-4': !horizontal && inputs.length }"
98
+ :class="[
99
+ { 'mt-4': !horizontal && inputs.length },
100
+ { 'text-nowrap self-start': horizontal }
101
+ ]"
88
102
  @submit="$emit('submit', model)"
89
103
  />
90
104
  <ErrorPopover ref="errorPopoverRef">
@@ -107,7 +121,7 @@ const { schema } = defineProps({
107
121
  schema: { type: null, required: true }
108
122
  });
109
123
  const emit = defineEmits(["submit"]);
110
- const { dialogOptions, inputs, horizontal, submit, title, validations = [], showValidationSummary = false } = schema;
124
+ const { alwaysShowTitle, dialogOptions, inputs, horizontal, submit, title, validations = [], showValidationSummary } = schema;
111
125
  const model = ref({});
112
126
  const readyData = ref({});
113
127
  const submitted = ref(false);
@@ -148,3 +162,7 @@ function emitSubmit() {
148
162
  }
149
163
  }
150
164
  </script>
165
+
166
+ <style scoped>
167
+ .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}
168
+ </style>
@@ -39,6 +39,8 @@ function Composable() {
39
39
 
40
40
  function Is() {
41
41
  async function evaluate({ constraint, value }) {
42
+ if(constraint["null"]) { return value == null; }
43
+
42
44
  return constraint.is === value;
43
45
  }
44
46
 
@@ -49,10 +51,12 @@ function Is() {
49
51
 
50
52
  function IsNot() {
51
53
  async function evaluate({ constraint, value }) {
54
+ if(constraint["null"]) { return value != null; }
55
+
52
56
  return constraint.isNot !== value;
53
57
  }
54
58
 
55
59
  return {
56
60
  evaluate
57
61
  };
58
- }
62
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mouseless/baked",
3
- "version": "1.7.0",
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",