@mouseless/baked 1.2.6 → 1.2.8

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.2.6",
4
+ "version": "1.2.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -23,6 +23,7 @@
23
23
  {{ lc("No records found") }}
24
24
  </template>
25
25
  <div
26
+ v-if="sort || (!paginator && serverPaginatorOptions)"
26
27
  class="
27
28
  flex flex-row items-center justify-end
28
29
  gap-4 mb-2 py-4 px-2 rounded-sm
@@ -5,19 +5,30 @@
5
5
  <Skeleton class="min-h-10" />
6
6
  </div>
7
7
  </template>
8
- <SelectButton
9
- v-if="data"
10
- v-model="selected"
11
- :options="data"
12
- :allow-empty
13
- :data-key="optionValue"
14
- :option-label
15
- :pt="{ pcToggleButton: { root: { class: 'text-[length:inherit]' } } }"
16
- >
17
- <template #option="slotProps">
18
- <span>{{ getOptionLabel(slotProps) }}</span>
19
- </template>
20
- </SelectButton>
8
+ <div :class="label ? 'flex flex-col' : 'inline-block'">
9
+ <label
10
+ v-if="label"
11
+ class="
12
+ text-xs text-slate-500 font-normal
13
+ dark:text-zinc-400 mb-1 ml-2
14
+ "
15
+ >
16
+ {{ l(label) }}
17
+ </label>
18
+ <SelectButton
19
+ v-if="data"
20
+ v-model="selected"
21
+ :options="data"
22
+ :allow-empty
23
+ :data-key="optionValue"
24
+ :option-label
25
+ :pt="{ pcToggleButton: { root: { class: 'text-[length:inherit]' } } }"
26
+ >
27
+ <template #option="slotProps">
28
+ <span>{{ getOptionLabel(slotProps) }}</span>
29
+ </template>
30
+ </SelectButton>
31
+ </div>
21
32
  </AwaitLoading>
22
33
  </template>
23
34
 
@@ -34,7 +45,7 @@ const { schema, data } = defineProps({
34
45
  data: { type: null, required: true }
35
46
  });
36
47
  const model = defineModel({ type: null, required: true });
37
- const { allowEmpty = false, localizeLabel, optionLabel, optionValue, stateful, targetProp } = schema;
48
+ const { allowEmpty = false, label, localizeLabel, optionLabel, optionValue, stateful, targetProp } = schema;
38
49
  const path = context.injectPath();
39
50
  const selected = ref();
40
51
  watch(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mouseless/baked",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
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",