nuance-ui 0.2.2 → 0.2.5
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/LICENSE.md +9 -9
- package/README.md +75 -75
- package/dist/module.json +1 -1
- package/dist/runtime/components/action-icon/action-icon-section.vue +3 -3
- package/dist/runtime/components/action-icon/action-icon.vue +22 -22
- package/dist/runtime/components/alert.vue +128 -128
- package/dist/runtime/components/app-shell/app-shell-aside.vue +30 -30
- package/dist/runtime/components/app-shell/app-shell-footer.vue +29 -29
- package/dist/runtime/components/app-shell/app-shell-header.vue +30 -30
- package/dist/runtime/components/app-shell/app-shell-navbar.vue +34 -34
- package/dist/runtime/components/app-shell/app-shell-section.vue +10 -10
- package/dist/runtime/components/app-shell/app-shell.vue +34 -34
- package/dist/runtime/components/avatar/avatar-group.vue +3 -3
- package/dist/runtime/components/avatar/avatar.vue +14 -14
- package/dist/runtime/components/background-image.vue +18 -18
- package/dist/runtime/components/badge.vue +159 -160
- package/dist/runtime/components/box.vue +3 -3
- package/dist/runtime/components/breadcrumbs.vue +78 -78
- package/dist/runtime/components/button/button-group.vue +3 -3
- package/dist/runtime/components/button/button.vue +37 -37
- package/dist/runtime/components/button/unstyled-button.vue +23 -23
- package/dist/runtime/components/calendar/calendar.vue +60 -60
- package/dist/runtime/components/calendar/ui/core/calendar-cell.vue +115 -115
- package/dist/runtime/components/calendar/ui/core/calendar-header.vue +95 -95
- package/dist/runtime/components/calendar/ui/core/calendar-root.vue +3 -3
- package/dist/runtime/components/calendar/ui/levels/calendar-decade.vue +40 -40
- package/dist/runtime/components/calendar/ui/levels/calendar-month.vue +77 -77
- package/dist/runtime/components/calendar/ui/levels/calendar-year.vue +40 -40
- package/dist/runtime/components/card/card-section.vue +3 -3
- package/dist/runtime/components/card/card.vue +3 -3
- package/dist/runtime/components/checkbox/checkbox-card.vue +36 -36
- package/dist/runtime/components/checkbox/checkbox-group.vue +16 -16
- package/dist/runtime/components/checkbox/checkbox-indicator.vue +116 -116
- package/dist/runtime/components/checkbox/checkbox.vue +140 -140
- package/dist/runtime/components/chip/chip-group.vue +2 -2
- package/dist/runtime/components/chip/chip.vue +200 -200
- package/dist/runtime/components/combobox/combobox-dropdown.vue +14 -14
- package/dist/runtime/components/combobox/combobox-empty.vue +3 -3
- package/dist/runtime/components/combobox/combobox-group.vue +21 -21
- package/dist/runtime/components/combobox/combobox-option-list.vue +3 -3
- package/dist/runtime/components/combobox/combobox-option.vue +26 -26
- package/dist/runtime/components/combobox/combobox-options-dropdown.vue +28 -28
- package/dist/runtime/components/combobox/combobox-root.vue +3 -3
- package/dist/runtime/components/combobox/combobox-target.vue +3 -3
- package/dist/runtime/components/container.vue +8 -8
- package/dist/runtime/components/date-time-picker.vue +65 -65
- package/dist/runtime/components/dialog/ui/dialog-close-button.vue +11 -11
- package/dist/runtime/components/dialog/ui/dialog-header.vue +5 -5
- package/dist/runtime/components/dialog/ui/dialog-root.vue +20 -20
- package/dist/runtime/components/dialog/ui/dialog-title.vue +5 -5
- package/dist/runtime/components/drawer/drawer-close-button.vue +3 -3
- package/dist/runtime/components/drawer/drawer-header.vue +3 -3
- package/dist/runtime/components/drawer/drawer-root.vue +15 -15
- package/dist/runtime/components/drawer/drawer-title.vue +3 -3
- package/dist/runtime/components/files/file-upload-button.vue +12 -12
- package/dist/runtime/components/files/file-upload-icon.vue +1 -1
- package/dist/runtime/components/input/date-picker.vue +85 -85
- package/dist/runtime/components/input/email-input.vue +21 -21
- package/dist/runtime/components/input/number-input.vue +132 -132
- package/dist/runtime/components/input/password-input.vue +28 -28
- package/dist/runtime/components/input/text-input.vue +33 -33
- package/dist/runtime/components/input/ui/button-input.vue +64 -64
- package/dist/runtime/components/input/ui/input-base.vue +283 -283
- package/dist/runtime/components/input/ui/input-inline.vue +105 -105
- package/dist/runtime/components/input/ui/input-label.vue +4 -4
- package/dist/runtime/components/input/ui/input-wrapper.vue +54 -54
- package/dist/runtime/components/input/ui/spin-input.vue +69 -69
- package/dist/runtime/components/link/link-button.vue +16 -16
- package/dist/runtime/components/link/link.vue +10 -10
- package/dist/runtime/components/loader/_loaders/bars-loader.vue +5 -5
- package/dist/runtime/components/loader/_loaders/dots-loader.vue +5 -5
- package/dist/runtime/components/loader/_loaders/oval-loader.vue +1 -1
- package/dist/runtime/components/loader/loader.vue +1 -1
- package/dist/runtime/components/modal/modal-close-button.vue +3 -3
- package/dist/runtime/components/modal/modal-header.vue +3 -3
- package/dist/runtime/components/modal/modal-root.vue +13 -13
- package/dist/runtime/components/modal/modal-title.vue +3 -3
- package/dist/runtime/components/nav-link/nav-icon-link.vue +15 -15
- package/dist/runtime/components/nav-link/nav-link.vue +130 -130
- package/dist/runtime/components/paper.vue +33 -33
- package/dist/runtime/components/popover/popover-dropdown.vue +69 -70
- package/dist/runtime/components/popover/popover-target.vue +8 -8
- package/dist/runtime/components/popover/popover.vue +1 -1
- package/dist/runtime/components/progress/progress-label.vue +3 -3
- package/dist/runtime/components/progress/progress-root.vue +3 -3
- package/dist/runtime/components/progress/progress-section.vue +8 -8
- package/dist/runtime/components/progress/progress.vue +9 -9
- package/dist/runtime/components/renderless/renderless.vue +3 -3
- package/dist/runtime/components/roving-focus/roving-focus-item.vue +14 -14
- package/dist/runtime/components/roving-focus/roving-focus.vue +3 -3
- package/dist/runtime/components/select/select.vue +59 -59
- package/dist/runtime/components/table/table.d.ts +30 -30
- package/dist/runtime/components/table/ui/table-sort-icon.vue +1 -1
- package/dist/runtime/components/table/ui/table-sortable-header.vue +11 -11
- package/dist/runtime/components/table/ui/table.vue +295 -295
- package/dist/runtime/components/tabs/tabs-list.vue +10 -10
- package/dist/runtime/components/tabs/tabs-panel.vue +11 -11
- package/dist/runtime/components/tabs/tabs-root.vue +8 -8
- package/dist/runtime/components/tabs/tabs-tab.vue +20 -20
- package/dist/runtime/components/text.vue +67 -67
- package/dist/runtime/components/textarea.vue +34 -34
- package/dist/runtime/components/time-picker/time-picker.vue +230 -230
- package/dist/runtime/components/title.vue +14 -14
- package/dist/runtime/components/transition/transition.vue +3 -3
- package/dist/runtime/components/tree/_ui/tree-item.vue +128 -129
- package/dist/runtime/components/tree/_ui/tree-root.vue +21 -21
- package/dist/runtime/components/tree/tree.vue +20 -20
- package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +1 -1
- package/dist/runtime/components/visually-hidden/visually-hidden.vue +9 -9
- package/dist/runtime/modals/_confirm-modal/confirm-modal.vue +31 -31
- package/dist/runtime/modals/modals-provider.vue +10 -10
- package/dist/runtime/styles/dark-theme.css +1 -1
- package/package.json +9 -48
|
@@ -33,85 +33,85 @@ const breadcrumbs = computed(() => unref(items) ?? []);
|
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
35
|
<template>
|
|
36
|
-
<Box :is :mod :style :class='$style.root' aria-label='breadcrumb'>
|
|
37
|
-
<template v-for='(item, ix) in breadcrumbs' :key='item.to'>
|
|
38
|
-
<li :class='$style.breadcrumb' role='presentation' aria-hidden='true'>
|
|
39
|
-
<slot
|
|
40
|
-
:name='item.slot ?? "item"'
|
|
41
|
-
:item='item'
|
|
42
|
-
:ix='ix'
|
|
43
|
-
:active='item.active ?? ix === breadcrumbs.length - 1'
|
|
44
|
-
>
|
|
45
|
-
<Button
|
|
46
|
-
:size
|
|
47
|
-
:variant
|
|
48
|
-
:class='$style.item'
|
|
49
|
-
:mod='{ active: item.active ?? ix === breadcrumbs.length - 1 }'
|
|
50
|
-
:color='item.active ?? ix === breadcrumbs.length - 1 ? color : inactive'
|
|
51
|
-
@click.stop.prevent='$emit("click", item)'
|
|
52
|
-
>
|
|
53
|
-
<template v-if='item?.icon' #leftSection>
|
|
54
|
-
<Icon :name='item.icon' :class='$style.icon' />
|
|
55
|
-
</template>
|
|
56
|
-
{{ item.label }}
|
|
57
|
-
</Button>
|
|
58
|
-
</slot>
|
|
59
|
-
</li>
|
|
60
|
-
<li v-if='ix < breadcrumbs.length - 1' role='presentation' aria-hidden='true' :class='$style.separator'>
|
|
61
|
-
<slot name='separator'>
|
|
62
|
-
<Icon :name='separator' />
|
|
63
|
-
</slot>
|
|
64
|
-
</li>
|
|
65
|
-
</template>
|
|
66
|
-
</Box>
|
|
36
|
+
<Box :is :mod :style :class='$style.root' aria-label='breadcrumb'>
|
|
37
|
+
<template v-for='(item, ix) in breadcrumbs' :key='item.to'>
|
|
38
|
+
<li :class='$style.breadcrumb' role='presentation' aria-hidden='true'>
|
|
39
|
+
<slot
|
|
40
|
+
:name='item.slot ?? "item"'
|
|
41
|
+
:item='item'
|
|
42
|
+
:ix='ix'
|
|
43
|
+
:active='item.active ?? ix === breadcrumbs.length - 1'
|
|
44
|
+
>
|
|
45
|
+
<Button
|
|
46
|
+
:size
|
|
47
|
+
:variant
|
|
48
|
+
:class='$style.item'
|
|
49
|
+
:mod='{ active: item.active ?? ix === breadcrumbs.length - 1 }'
|
|
50
|
+
:color='item.active ?? ix === breadcrumbs.length - 1 ? color : inactive'
|
|
51
|
+
@click.stop.prevent='$emit("click", item)'
|
|
52
|
+
>
|
|
53
|
+
<template v-if='item?.icon' #leftSection>
|
|
54
|
+
<Icon :name='item.icon' :class='$style.icon' />
|
|
55
|
+
</template>
|
|
56
|
+
{{ item.label }}
|
|
57
|
+
</Button>
|
|
58
|
+
</slot>
|
|
59
|
+
</li>
|
|
60
|
+
<li v-if='ix < breadcrumbs.length - 1' role='presentation' aria-hidden='true' :class='$style.separator'>
|
|
61
|
+
<slot name='separator'>
|
|
62
|
+
<Icon :name='separator' />
|
|
63
|
+
</slot>
|
|
64
|
+
</li>
|
|
65
|
+
</template>
|
|
66
|
+
</Box>
|
|
67
67
|
</template>
|
|
68
68
|
|
|
69
69
|
<style module lang="postcss">
|
|
70
|
-
.root {
|
|
71
|
-
--bc-spacing: var(--spacing-xs);
|
|
72
|
-
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-wrap: wrap;
|
|
75
|
-
gap: var(--bc-spacing);
|
|
76
|
-
align-items: center;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.breadcrumb {
|
|
80
|
-
line-height: 1;
|
|
81
|
-
|
|
82
|
-
color: var(--color-text);
|
|
83
|
-
white-space: nowrap;
|
|
84
|
-
-webkit-tap-highlight-color: transparent;
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.item {
|
|
89
|
-
display: flex;
|
|
90
|
-
gap: .25rem;
|
|
91
|
-
align-items: center;
|
|
92
|
-
text-transform: capitalize;
|
|
93
|
-
|
|
94
|
-
font-weight: 600;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.icon {
|
|
98
|
-
width: 1.2em;
|
|
99
|
-
height: 1.2em;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.separator {
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
|
|
107
|
-
line-height: 1;
|
|
108
|
-
|
|
109
|
-
@mixin where-light {
|
|
110
|
-
color: var(--color-gray-7);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@mixin where-dark {
|
|
114
|
-
color: var(--color-dark-2);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
70
|
+
.root {
|
|
71
|
+
--bc-spacing: var(--spacing-xs);
|
|
72
|
+
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-wrap: wrap;
|
|
75
|
+
gap: var(--bc-spacing);
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.breadcrumb {
|
|
80
|
+
line-height: 1;
|
|
81
|
+
|
|
82
|
+
color: var(--color-text);
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
-webkit-tap-highlight-color: transparent;
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.item {
|
|
89
|
+
display: flex;
|
|
90
|
+
gap: .25rem;
|
|
91
|
+
align-items: center;
|
|
92
|
+
text-transform: capitalize;
|
|
93
|
+
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.icon {
|
|
98
|
+
width: 1.2em;
|
|
99
|
+
height: 1.2em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.separator {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
|
|
107
|
+
line-height: 1;
|
|
108
|
+
|
|
109
|
+
@mixin where-light {
|
|
110
|
+
color: var(--color-gray-7);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@mixin where-dark {
|
|
114
|
+
color: var(--color-dark-2);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
117
|
</style>
|
|
@@ -9,7 +9,7 @@ const { is, mod, orientation = "horizontal" } = defineProps({
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
|
-
<Box :is :mod='[mod, { orientation }]' :class='css.group' role='group'>
|
|
13
|
-
<slot />
|
|
14
|
-
</Box>
|
|
12
|
+
<Box :is :mod='[mod, { orientation }]' :class='css.group' role='group'>
|
|
13
|
+
<slot />
|
|
14
|
+
</Box>
|
|
15
15
|
</template>
|
|
@@ -67,47 +67,47 @@ const style = computed(() => useStyleResolver((theme) => {
|
|
|
67
67
|
</script>
|
|
68
68
|
|
|
69
69
|
<template>
|
|
70
|
-
<Box
|
|
71
|
-
:is
|
|
70
|
+
<Box
|
|
71
|
+
:is
|
|
72
72
|
:mod='[
|
|
73
73
|
{
|
|
74
74
|
"with-left-section": !!$slots?.leftSection,
|
|
75
75
|
"with-right-section": !!$slots?.rightSection
|
|
76
76
|
},
|
|
77
77
|
mod
|
|
78
|
-
]'
|
|
79
|
-
:style='style.root'
|
|
80
|
-
:class='[css.root, classes?.root]'
|
|
81
|
-
:disabled='loading'
|
|
82
|
-
>
|
|
83
|
-
<Transition name='fade-down'>
|
|
84
|
-
<Loader v-show='loading' :class='css.loader' :color :size />
|
|
85
|
-
</Transition>
|
|
86
|
-
|
|
87
|
-
<span :class='[css.inner, classes?.inner]'>
|
|
88
|
-
<span
|
|
89
|
-
v-if='$slots.leftSection'
|
|
90
|
-
:class='[css.section, classes?.section]'
|
|
91
|
-
data-position='left'
|
|
92
|
-
v-bind='leftSectionProps'
|
|
93
|
-
:style='style.leftSection'
|
|
94
|
-
>
|
|
95
|
-
<slot name='leftSection' />
|
|
96
|
-
</span>
|
|
97
|
-
|
|
98
|
-
<span :class='[css.label, classes?.label]'>
|
|
99
|
-
<slot />
|
|
100
|
-
</span>
|
|
101
|
-
|
|
102
|
-
<span
|
|
103
|
-
v-if='$slots.rightSection'
|
|
104
|
-
data-position='right'
|
|
105
|
-
:class='[css.section, classes?.section]'
|
|
106
|
-
v-bind='rightSectionProps'
|
|
107
|
-
:style='style.rightSection'
|
|
108
|
-
>
|
|
109
|
-
<slot name='rightSection' />
|
|
110
|
-
</span>
|
|
111
|
-
</span>
|
|
112
|
-
</Box>
|
|
78
|
+
]'
|
|
79
|
+
:style='style.root'
|
|
80
|
+
:class='[css.root, classes?.root]'
|
|
81
|
+
:disabled='loading'
|
|
82
|
+
>
|
|
83
|
+
<Transition name='fade-down'>
|
|
84
|
+
<Loader v-show='loading' :class='css.loader' :color :size />
|
|
85
|
+
</Transition>
|
|
86
|
+
|
|
87
|
+
<span :class='[css.inner, classes?.inner]'>
|
|
88
|
+
<span
|
|
89
|
+
v-if='$slots.leftSection'
|
|
90
|
+
:class='[css.section, classes?.section]'
|
|
91
|
+
data-position='left'
|
|
92
|
+
v-bind='leftSectionProps'
|
|
93
|
+
:style='style.leftSection'
|
|
94
|
+
>
|
|
95
|
+
<slot name='leftSection' />
|
|
96
|
+
</span>
|
|
97
|
+
|
|
98
|
+
<span :class='[css.label, classes?.label]'>
|
|
99
|
+
<slot />
|
|
100
|
+
</span>
|
|
101
|
+
|
|
102
|
+
<span
|
|
103
|
+
v-if='$slots.rightSection'
|
|
104
|
+
data-position='right'
|
|
105
|
+
:class='[css.section, classes?.section]'
|
|
106
|
+
v-bind='rightSectionProps'
|
|
107
|
+
:style='style.rightSection'
|
|
108
|
+
>
|
|
109
|
+
<slot name='rightSection' />
|
|
110
|
+
</span>
|
|
111
|
+
</span>
|
|
112
|
+
</Box>
|
|
113
113
|
</template>
|
|
@@ -9,30 +9,30 @@ const { is = "button", ...props } = defineProps({
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
|
-
<Box :is :class='$style.unstyled' v-bind='props' type='button'>
|
|
13
|
-
<slot />
|
|
14
|
-
</Box>
|
|
12
|
+
<Box :is :class='$style.unstyled' v-bind='props' type='button'>
|
|
13
|
+
<slot />
|
|
14
|
+
</Box>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<style module lang="postcss">
|
|
18
|
-
:where(.unstyled) {
|
|
19
|
-
touch-action: manipulation;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
|
|
22
|
-
padding: 0;
|
|
23
|
-
border: 0;
|
|
24
|
-
|
|
25
|
-
font-size: var(--font-size-md);
|
|
26
|
-
color: inherit;
|
|
27
|
-
text-align: left;
|
|
28
|
-
text-decoration: none;
|
|
29
|
-
|
|
30
|
-
appearance: none;
|
|
31
|
-
background-color: transparent;
|
|
32
|
-
-webkit-tap-highlight-color: transparent;
|
|
33
|
-
|
|
34
|
-
@mixin where-rtl {
|
|
35
|
-
text-align: right;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
18
|
+
:where(.unstyled) {
|
|
19
|
+
touch-action: manipulation;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
|
|
22
|
+
padding: 0;
|
|
23
|
+
border: 0;
|
|
24
|
+
|
|
25
|
+
font-size: var(--font-size-md);
|
|
26
|
+
color: inherit;
|
|
27
|
+
text-align: left;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
|
|
30
|
+
appearance: none;
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
-webkit-tap-highlight-color: transparent;
|
|
33
|
+
|
|
34
|
+
@mixin where-rtl {
|
|
35
|
+
text-align: right;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
38
|
</style>
|
|
@@ -42,86 +42,86 @@ const [calendars, nav] = useCalendarNavigation({
|
|
|
42
42
|
</script>
|
|
43
43
|
|
|
44
44
|
<template>
|
|
45
|
-
<CalendarRoot
|
|
46
|
-
v-slot='{ config }'
|
|
47
|
-
v-model:date='date'
|
|
48
|
-
v-model:select='select'
|
|
49
|
-
v-bind='props'
|
|
50
|
-
:class='$style.content'
|
|
51
|
-
@select='(select) => $emit("select", select)'
|
|
52
|
-
>
|
|
53
|
-
<section v-for='(calendar, ix) in calendars' :key='`calendar-${ix}`'>
|
|
54
|
-
<CalendarHeader
|
|
55
|
-
:with-prev='ix === 0'
|
|
56
|
-
:with-next='ix === calendars.length - 1'
|
|
57
|
-
:prev-disabled='nav.isPrevDisabled'
|
|
58
|
-
:next-disabled='nav.isNextDisabled'
|
|
45
|
+
<CalendarRoot
|
|
46
|
+
v-slot='{ config }'
|
|
47
|
+
v-model:date='date'
|
|
48
|
+
v-model:select='select'
|
|
49
|
+
v-bind='props'
|
|
50
|
+
:class='$style.content'
|
|
51
|
+
@select='(select) => $emit("select", select)'
|
|
52
|
+
>
|
|
53
|
+
<section v-for='(calendar, ix) in calendars' :key='`calendar-${ix}`'>
|
|
54
|
+
<CalendarHeader
|
|
55
|
+
:with-prev='ix === 0'
|
|
56
|
+
:with-next='ix === calendars.length - 1'
|
|
57
|
+
:prev-disabled='nav.isPrevDisabled'
|
|
58
|
+
:next-disabled='nav.isNextDisabled'
|
|
59
59
|
@prev='() => {
|
|
60
60
|
nav.move(-1);
|
|
61
61
|
$emit("prev");
|
|
62
|
-
}'
|
|
62
|
+
}'
|
|
63
63
|
@next='() => {
|
|
64
64
|
nav.move(1);
|
|
65
65
|
$emit("next");
|
|
66
|
-
}'
|
|
66
|
+
}'
|
|
67
67
|
@level='() => {
|
|
68
68
|
level = nav.nextLevel();
|
|
69
69
|
$emit("level");
|
|
70
|
-
}'
|
|
71
|
-
>
|
|
72
|
-
<slot name='level' :config>
|
|
73
|
-
{{ nav.getLevelLabel(calendar, config) }}
|
|
74
|
-
</slot>
|
|
75
|
-
</CalendarHeader>
|
|
76
|
-
|
|
77
|
-
<CalendarMonth
|
|
78
|
-
v-if='level === "month"'
|
|
79
|
-
:month='calendar'
|
|
80
|
-
:with-week-numbers='props.withWeekNumbers'
|
|
81
|
-
:with-cell-spacing='props.withCellSpacing'
|
|
82
|
-
:size
|
|
83
|
-
>
|
|
84
|
-
<template v-if='!!$slots.weekday' #weekday>
|
|
85
|
-
<slot name='weekday' />
|
|
86
|
-
</template>
|
|
87
|
-
|
|
88
|
-
<slot name='day' />
|
|
89
|
-
</CalendarMonth>
|
|
90
|
-
<CalendarYear
|
|
91
|
-
v-if='level === "year"'
|
|
92
|
-
:year='calendar'
|
|
93
|
-
:size
|
|
94
|
-
:selectable='props.minLevel === "year"'
|
|
70
|
+
}'
|
|
71
|
+
>
|
|
72
|
+
<slot name='level' :config>
|
|
73
|
+
{{ nav.getLevelLabel(calendar, config) }}
|
|
74
|
+
</slot>
|
|
75
|
+
</CalendarHeader>
|
|
76
|
+
|
|
77
|
+
<CalendarMonth
|
|
78
|
+
v-if='level === "month"'
|
|
79
|
+
:month='calendar'
|
|
80
|
+
:with-week-numbers='props.withWeekNumbers'
|
|
81
|
+
:with-cell-spacing='props.withCellSpacing'
|
|
82
|
+
:size
|
|
83
|
+
>
|
|
84
|
+
<template v-if='!!$slots.weekday' #weekday>
|
|
85
|
+
<slot name='weekday' />
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<slot name='day' />
|
|
89
|
+
</CalendarMonth>
|
|
90
|
+
<CalendarYear
|
|
91
|
+
v-if='level === "year"'
|
|
92
|
+
:year='calendar'
|
|
93
|
+
:size
|
|
94
|
+
:selectable='props.minLevel === "year"'
|
|
95
95
|
@select='(month) => {
|
|
96
96
|
if (props.minLevel !== "year") {
|
|
97
97
|
level = nav.prevLevel();
|
|
98
98
|
date = month;
|
|
99
99
|
}
|
|
100
|
-
}'
|
|
101
|
-
/>
|
|
102
|
-
<CalendarDecade
|
|
103
|
-
v-if='level === "decade"'
|
|
104
|
-
:date='calendar'
|
|
105
|
-
:size
|
|
106
|
-
:selectable='props.minLevel === "decade"'
|
|
100
|
+
}'
|
|
101
|
+
/>
|
|
102
|
+
<CalendarDecade
|
|
103
|
+
v-if='level === "decade"'
|
|
104
|
+
:date='calendar'
|
|
105
|
+
:size
|
|
106
|
+
:selectable='props.minLevel === "decade"'
|
|
107
107
|
@select='(year) => {
|
|
108
108
|
if (props.minLevel !== "decade") {
|
|
109
109
|
level = nav.prevLevel();
|
|
110
110
|
date = year;
|
|
111
111
|
}
|
|
112
|
-
}'
|
|
113
|
-
/>
|
|
114
|
-
</section>
|
|
115
|
-
</CalendarRoot>
|
|
112
|
+
}'
|
|
113
|
+
/>
|
|
114
|
+
</section>
|
|
115
|
+
</CalendarRoot>
|
|
116
116
|
</template>
|
|
117
117
|
|
|
118
118
|
<style lang="postcss" module>
|
|
119
|
-
.content {
|
|
120
|
-
--calendar-cell-spacing: rem(1px);
|
|
121
|
-
|
|
122
|
-
display: flex;
|
|
123
|
-
gap: var(--spacing-sm);
|
|
124
|
-
|
|
125
|
-
width: fit-content;
|
|
126
|
-
}
|
|
119
|
+
.content {
|
|
120
|
+
--calendar-cell-spacing: rem(1px);
|
|
121
|
+
|
|
122
|
+
display: flex;
|
|
123
|
+
gap: var(--spacing-sm);
|
|
124
|
+
|
|
125
|
+
width: fit-content;
|
|
126
|
+
}
|
|
127
127
|
</style>
|