@codemonster-ru/vueforge 0.51.0 → 0.52.0
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/README.md +47 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.ts.mjs +3016 -2835
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/calendar.test.d.ts +1 -0
- package/dist/package/components/calendar.vue.d.ts +31 -0
- package/dist/package/config/theme-core.d.ts +40 -0
- package/dist/package/themes/default/components/calendar.d.ts +40 -0
- package/dist/package/themes/default/index.d.ts +39 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
MultiSelect,
|
|
43
43
|
TagInput,
|
|
44
44
|
DatePicker,
|
|
45
|
+
Calendar,
|
|
45
46
|
DateRangePicker,
|
|
46
47
|
TimePicker,
|
|
47
48
|
DateTimePicker,
|
|
@@ -99,6 +100,7 @@ app.use(VueForge, {
|
|
|
99
100
|
<MultiSelect v-model="countries" :options="countryOptions" placeholder="Select countries" clearable />
|
|
100
101
|
<TagInput v-model="skills" :options="skillOptions" placeholder="Add skills" clearable />
|
|
101
102
|
<DatePicker v-model="birthday" placeholder="Pick birthday" />
|
|
103
|
+
<Calendar v-model="selectedDate" />
|
|
102
104
|
<DateRangePicker v-model="range" placeholder="Pick range" />
|
|
103
105
|
<TimePicker v-model="meetingTime" placeholder="Pick time" />
|
|
104
106
|
<DateTimePicker v-model="meetingAt" placeholder="Pick date and time" />
|
|
@@ -207,6 +209,7 @@ app.use(VueForge, {
|
|
|
207
209
|
- MultiSelect
|
|
208
210
|
- TagInput
|
|
209
211
|
- DatePicker
|
|
212
|
+
- Calendar
|
|
210
213
|
- DateRangePicker
|
|
211
214
|
- TimePicker
|
|
212
215
|
- DateTimePicker
|
|
@@ -237,7 +240,7 @@ Input / Search / Password / Textarea (quick API):
|
|
|
237
240
|
- `NumberInput`: numeric control, supports `v-model`, `min`, `max`, `step`, `precision`, `controls`, `size`, `variant`.
|
|
238
241
|
- `Textarea`: multi-line control, same as Input plus `rows`.
|
|
239
242
|
- `TagInput`: token/tag control, supports `v-model` (array), suggestions, custom tags, `maxTags`, `clearable`, `size`, `variant`.
|
|
240
|
-
- `SearchInput`, `OtpInput`, `ColorPicker`, `MaskedInput`, `Checkbox`, `Select`, `Autocomplete`, `MultiSelect`, `TagInput`, `DatePicker`, `DateRangePicker`, `DateTimePicker`, `Pagination`, `DataTable`, and `TreeSelect` also support `variant: 'filled' | 'outlined'`.
|
|
243
|
+
- `SearchInput`, `OtpInput`, `ColorPicker`, `MaskedInput`, `Checkbox`, `Select`, `Autocomplete`, `MultiSelect`, `TagInput`, `DatePicker`, `Calendar`, `DateRangePicker`, `DateTimePicker`, `Pagination`, `DataTable`, and `TreeSelect` also support `variant: 'filled' | 'outlined'`.
|
|
241
244
|
|
|
242
245
|
## FormField
|
|
243
246
|
|
|
@@ -443,6 +446,48 @@ Example:
|
|
|
443
446
|
<DatePicker v-model="startDate" placeholder="Pick date" min="2026-01-01" max="2026-12-31" />
|
|
444
447
|
```
|
|
445
448
|
|
|
449
|
+
## Calendar
|
|
450
|
+
|
|
451
|
+
Props:
|
|
452
|
+
|
|
453
|
+
- `modelValue?: string` (v-model, ISO date `YYYY-MM-DD`)
|
|
454
|
+
- `disabled?: boolean`
|
|
455
|
+
- `readonly?: boolean`
|
|
456
|
+
- `min?: string` (ISO date `YYYY-MM-DD`)
|
|
457
|
+
- `max?: string` (ISO date `YYYY-MM-DD`)
|
|
458
|
+
- `locale?: string` (default `en-US`)
|
|
459
|
+
- `firstDayOfWeek?: number` (default `0`, Sunday)
|
|
460
|
+
- `size?: 'small' | 'normal' | 'large'` (default `normal`)
|
|
461
|
+
- `variant?: 'filled' | 'outlined'` (default `filled`)
|
|
462
|
+
|
|
463
|
+
Events:
|
|
464
|
+
|
|
465
|
+
- `update:modelValue`
|
|
466
|
+
- `change`
|
|
467
|
+
|
|
468
|
+
Example:
|
|
469
|
+
|
|
470
|
+
```vue
|
|
471
|
+
<Calendar v-model="selectedDate" min="2026-01-01" max="2026-12-31" />
|
|
472
|
+
<Calendar v-model="selectedDateAlt" variant="outlined" :first-day-of-week="1" />
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### Calendar tokens
|
|
476
|
+
|
|
477
|
+
Component tokens (override via `theme.overrides.components.calendar`):
|
|
478
|
+
|
|
479
|
+
- `width`, `fontSize`, `padding`
|
|
480
|
+
- `borderRadius`, `borderColor`
|
|
481
|
+
- `backgroundColor`, `textColor`
|
|
482
|
+
- `disabledOpacity`
|
|
483
|
+
- `headerGap`, `headerPadding`, `monthLabelFontSize`, `monthLabelFontWeight`
|
|
484
|
+
- `navButtonSize`, `navButtonRadius`, `navButtonFontSize`
|
|
485
|
+
- `weekdayColor`, `weekdayFontSize`, `weekdaysMarginBottom`
|
|
486
|
+
- `daysGap`, `daySize`, `dayFontSize`, `dayBorderRadius`
|
|
487
|
+
- `dayHoverBackgroundColor`, `daySelectedBackgroundColor`, `daySelectedTextColor`, `dayMutedColor`, `dayTodayBorderColor`
|
|
488
|
+
- `small.fontSize`, `small.padding`, `small.daySize`
|
|
489
|
+
- `large.fontSize`, `large.padding`, `large.daySize`
|
|
490
|
+
|
|
446
491
|
## DateRangePicker
|
|
447
492
|
|
|
448
493
|
Props:
|
|
@@ -2055,7 +2100,7 @@ VueForge exposes design tokens as CSS variables generated from the theme preset.
|
|
|
2055
2100
|
Typed tokens:
|
|
2056
2101
|
|
|
2057
2102
|
- `ThemeTokens`/`ThemeOptions`/`ThemePreset` are exported for type-safe theming in TS.
|
|
2058
|
-
- `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/searchInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/select/autocomplete/multiselect/taginput/datepicker/daterangepicker/timepicker/datetimepicker/pagination/switch/tooltip/skeleton/progress/badge/chip/avatar/datatable/slider/stepper/rating/tree/treeselect/virtualScroller).
|
|
2103
|
+
- `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/searchInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/select/autocomplete/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/tooltip/skeleton/progress/badge/chip/avatar/datatable/slider/stepper/rating/tree/treeselect/virtualScroller).
|
|
2059
2104
|
|
|
2060
2105
|
Default core values (from `DefaultTheme`):
|
|
2061
2106
|
|