@mouseless/baked 1.6.3 → 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.d.mts CHANGED
@@ -5,6 +5,7 @@ interface ModuleOptions {
5
5
  apiBaseURL: String;
6
6
  components?: Components;
7
7
  composables: Composables;
8
+ plugins?: Plugins;
8
9
  primevue: PrimeVueOptions;
9
10
  i18n: NuxtI18nOptions;
10
11
  }
@@ -23,6 +24,13 @@ interface Composables {
23
24
  useDataFetcher: UseDataFetcherOptions;
24
25
  useFormat?: UseFormatOptions;
25
26
  }
27
+ interface Plugins {
28
+ cacheApplication?: CacheOptions;
29
+ cacheUser?: CacheOptions;
30
+ }
31
+ interface CacheOptions {
32
+ expirationInMinutes: any;
33
+ }
26
34
  interface UseDataFetcherOptions {
27
35
  retry?: RetryOptions | Boolean;
28
36
  }
@@ -42,4 +50,4 @@ interface ScreenOptions {
42
50
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
43
51
 
44
52
  export { _default as default };
45
- export type { Components, Composables, ModuleOptions, PageOptions, PrimeVueOptions, RetryOptions, ScreenOptions, UseBreakpointsOptions, UseDataFetcherOptions, UseFormatOptions };
53
+ export type { CacheOptions, Components, Composables, ModuleOptions, PageOptions, Plugins, PrimeVueOptions, RetryOptions, ScreenOptions, UseBreakpointsOptions, UseDataFetcherOptions, UseFormatOptions };
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mouseless/baked",
3
3
  "configKey": "baked",
4
- "version": "1.6.3",
4
+ "version": "1.7.1",
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,7 +62,10 @@
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
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="{ 'mt-4': !horizontal && inputs.length }"
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
+ }
@@ -5,8 +5,8 @@ export default defineNuxtPlugin({
5
5
  name: "cache-application",
6
6
  enforce: "pre",
7
7
  setup(nuxtApp) {
8
- const { public: { cacheApplication } } = useRuntimeConfig();
9
- const { expirationInMinutes } = cacheApplication;
8
+ const { public: { plugins: { cacheApplication = { } } = { } } } = useRuntimeConfig();
9
+ const { expirationInMinutes = 60 } = cacheApplication;
10
10
  const cache = useCache("cache:application", { expirationInMinutes });
11
11
  const { $fetchInterceptors } = nuxtApp;
12
12
 
@@ -5,8 +5,8 @@ export default defineNuxtPlugin({
5
5
  name: "cache-user",
6
6
  enforce: "pre",
7
7
  setup(nuxtApp) {
8
- const { public: { cacheUser } } = useRuntimeConfig();
9
- const { expirationInMinutes } = cacheUser;
8
+ const { public: { plugins: { cacheUser = { } } = { } } } = useRuntimeConfig();
9
+ const { expirationInMinutes = 60 } = cacheUser;
10
10
  const cache = useCache("cache:user", { expirationInMinutes });
11
11
  const { $fetchInterceptors } = nuxtApp;
12
12
 
package/dist/types.d.mts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { default } from './module.mjs'
2
2
 
3
- export { type Components, type Composables, type ModuleOptions, type PageOptions, type PrimeVueOptions, type RetryOptions, type ScreenOptions, type UseBreakpointsOptions, type UseDataFetcherOptions, type UseFormatOptions } from './module.mjs'
3
+ export { type CacheOptions, type Components, type Composables, type ModuleOptions, type PageOptions, type Plugins, type PrimeVueOptions, type RetryOptions, type ScreenOptions, type UseBreakpointsOptions, type UseDataFetcherOptions, type UseFormatOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mouseless/baked",
3
- "version": "1.6.3",
3
+ "version": "1.7.1",
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",
@@ -47,7 +47,7 @@
47
47
  "@nuxtjs/tailwindcss": "6.14.0",
48
48
  "@primeuix/themes": "2.0.3",
49
49
  "async-mutex": "0.5.0",
50
- "playwright": "^1.60.0",
50
+ "playwright": "1.60.0",
51
51
  "primeicons": "7.0.0",
52
52
  "primevue": "4.5.5"
53
53
  },
@@ -56,20 +56,20 @@
56
56
  "@nuxt/module-builder": "1.0.2",
57
57
  "@nuxt/test-utils": "4.0.3",
58
58
  "@playwright/test": "1.60.0",
59
- "@types/node": "25.9.1",
59
+ "@types/node": "25.9.3",
60
60
  "changelogen": "0.6.2",
61
- "nuxt": "4.4.6",
62
- "sass": "1.100.0",
61
+ "nuxt": "4.4.8",
62
+ "sass": "1.101.0",
63
63
  "typescript": "6.0.3",
64
- "vitest": "4.1.7",
65
- "vue-tsc": "3.3.2"
64
+ "vitest": "4.1.8",
65
+ "vue-tsc": "3.3.4"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@oxc-parser/binding-darwin-arm64": "0.133.0",
69
- "@oxc-parser/binding-linux-arm64-gnu": "0.133.0",
70
- "@oxc-parser/binding-linux-arm64-musl": "0.133.0",
71
- "@oxc-parser/binding-linux-x64-gnu": "0.133.0",
72
- "@oxc-parser/binding-linux-x64-musl": "0.133.0",
73
- "@oxc-parser/binding-win32-x64-msvc": "0.133.0"
68
+ "@oxc-parser/binding-darwin-arm64": "0.135.0",
69
+ "@oxc-parser/binding-linux-arm64-gnu": "0.135.0",
70
+ "@oxc-parser/binding-linux-arm64-musl": "0.135.0",
71
+ "@oxc-parser/binding-linux-x64-gnu": "0.135.0",
72
+ "@oxc-parser/binding-linux-x64-musl": "0.135.0",
73
+ "@oxc-parser/binding-win32-x64-msvc": "0.135.0"
74
74
  }
75
- }
75
+ }