File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/svelte-ux/src/lib/components Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
import Dialog from ' ./Dialog.svelte' ;
9
9
import Field from ' ./Field.svelte' ;
10
10
11
- import { PeriodType , getDateFuncsByPeriodType , getPeriodTypeName } from ' ../utils/date' ;
11
+ import { PeriodType , getDateFuncsByPeriodType } from ' ../utils/date' ;
12
12
import { getDateRangePresets , type DateRange as DateRangeType } from ' ../utils/dateRange' ;
13
13
import { cls } from ' ../utils/styles' ;
14
14
import { getSettings } from ' ./settings' ;
15
15
16
16
const dispatch = createEventDispatcher ();
17
17
const settings = getSettings ();
18
+ const { format } = settings ;
18
19
19
20
const _defaultValue: DateRangeType = {
20
21
from: null ,
60
61
</script >
61
62
62
63
<Field
63
- label ={label ?? (value .periodType ? getPeriodTypeName (settings , value .periodType ) : ' ' )}
64
+ label ={label ?? (value .periodType ? $format . getPeriodTypeName (value .periodType ) : ' ' )}
64
65
{icon }
65
66
{error }
66
67
{hint }
153
154
>
154
155
<div class =" flex flex-col justify-center bg-primary text-primary-content px-6 h-24" >
155
156
<div class =" text-sm opacity-50" >
156
- {currentValue .periodType ? getPeriodTypeName (settings , currentValue .periodType ) : ' ' }
157
+ {currentValue .periodType ? $format . getPeriodTypeName (currentValue .periodType ) : ' ' }
157
158
</div >
158
159
<div class =" text-xl sm:text-2xl" >
159
160
<DateRangeDisplay value ={currentValue } />
You can’t perform that action at this time.
0 commit comments