@signal24/vue-foundation 4.25.0 → 4.25.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@signal24/vue-foundation",
3
3
  "type": "module",
4
- "version": "4.25.0",
4
+ "version": "4.25.2",
5
5
  "description": "Common components, directives, and helpers for Vue 3 apps",
6
6
  "module": "./dist/vue-foundation.es.js",
7
7
  "exports": {
@@ -227,7 +227,7 @@ const effectiveOptions = computed(() => {
227
227
  });
228
228
 
229
229
  const groupedOptions = computed(() => {
230
- if (!effectiveOptions.value[0]?.group) {
230
+ if (!isGrouped.value) {
231
231
  return [
232
232
  {
233
233
  groupTitle: '',
@@ -237,7 +237,7 @@ const groupedOptions = computed(() => {
237
237
  }
238
238
 
239
239
  const groupTitles = uniq(effectiveOptions.value.map(option => option.group ?? ''));
240
- const groupedOptions = groupBy(effectiveOptions.value, option => option.group);
240
+ const groupedOptions = groupBy(effectiveOptions.value, option => option.group ?? '');
241
241
  return groupTitles.map(groupTitle => ({
242
242
  groupTitle,
243
243
  options: groupedOptions[groupTitle!]
@@ -84,7 +84,7 @@ function time(value: string | null, formatStr?: string) {
84
84
 
85
85
  function dateTime(value: string | null, formatStr?: string) {
86
86
  if (!value) return value;
87
- return format(new Date(value), formatStr ?? VfOptions.defaultDateFormat);
87
+ return format(new Date(value), formatStr ?? `${VfOptions.defaultDateFormat} ${VfOptions.defaultTimeFormat}`);
88
88
  }
89
89
 
90
90
  function oneDayForward(date?: string | null) {