@codemonster-ru/vueforge 0.49.0 → 0.50.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 CHANGED
@@ -43,6 +43,7 @@ import {
43
43
  DatePicker,
44
44
  DateRangePicker,
45
45
  TimePicker,
46
+ DateTimePicker,
46
47
  Pagination,
47
48
  DataTable,
48
49
  Checkbox,
@@ -98,6 +99,7 @@ app.use(VueForge, {
98
99
  <DatePicker v-model="birthday" placeholder="Pick birthday" />
99
100
  <DateRangePicker v-model="range" placeholder="Pick range" />
100
101
  <TimePicker v-model="meetingTime" placeholder="Pick time" />
102
+ <DateTimePicker v-model="meetingAt" placeholder="Pick date and time" />
101
103
  <Pagination v-model="page" :total-items="240" :page-size="20" />
102
104
  <DataTable :columns="columns" :rows="rows" sortable striped />
103
105
  <Checkbox v-model="agreed" label="I agree" />
@@ -204,6 +206,7 @@ app.use(VueForge, {
204
206
  - DatePicker
205
207
  - DateRangePicker
206
208
  - TimePicker
209
+ - DateTimePicker
207
210
  - Pagination
208
211
  - DataTable
209
212
  - Switch
@@ -230,7 +233,7 @@ Input / Password / Textarea (quick API):
230
233
  - `NumberInput`: numeric control, supports `v-model`, `min`, `max`, `step`, `precision`, `controls`, `size`, `variant`.
231
234
  - `Textarea`: multi-line control, same as Input plus `rows`.
232
235
  - `TagInput`: token/tag control, supports `v-model` (array), suggestions, custom tags, `maxTags`, `clearable`, `size`, `variant`.
233
- - `OtpInput`, `ColorPicker`, `MaskedInput`, `Checkbox`, `Select`, `Autocomplete`, `MultiSelect`, `TagInput`, `DatePicker`, `DateRangePicker`, `Pagination`, `DataTable`, and `TreeSelect` also support `variant: 'filled' | 'outlined'`.
236
+ - `OtpInput`, `ColorPicker`, `MaskedInput`, `Checkbox`, `Select`, `Autocomplete`, `MultiSelect`, `TagInput`, `DatePicker`, `DateRangePicker`, `DateTimePicker`, `Pagination`, `DataTable`, and `TreeSelect` also support `variant: 'filled' | 'outlined'`.
234
237
 
235
238
  ## FormField
236
239
 
@@ -510,6 +513,65 @@ Component tokens (override via `theme.overrides.components.timepicker`):
510
513
  - `small.fontSize`, `small.padding`
511
514
  - `large.fontSize`, `large.padding`
512
515
 
516
+ ## DateTimePicker
517
+
518
+ Props:
519
+
520
+ - `modelValue?: string` (v-model, ISO datetime `YYYY-MM-DDTHH:mm`)
521
+ - `placeholder?: string`
522
+ - `disabled?: boolean`
523
+ - `readonly?: boolean`
524
+ - `min?: string` (ISO datetime `YYYY-MM-DDTHH:mm`)
525
+ - `max?: string` (ISO datetime `YYYY-MM-DDTHH:mm`)
526
+ - `locale?: string` (default `en-US`)
527
+ - `firstDayOfWeek?: number` (default `0`, Sunday)
528
+ - `minuteStep?: number` (default `30`)
529
+ - `format?: '24h' | '12h'` (default `24h`)
530
+ - `size?: 'small' | 'normal' | 'large'` (default `normal`)
531
+ - `variant?: 'filled' | 'outlined'` (default `filled`)
532
+
533
+ Events:
534
+
535
+ - `update:modelValue`
536
+ - `change`
537
+ - `focus`
538
+ - `blur`
539
+
540
+ Example:
541
+
542
+ ```vue
543
+ <DateTimePicker v-model="meetingAt" placeholder="Pick date and time" />
544
+ <DateTimePicker
545
+ v-model="meetingAtAlt"
546
+ variant="outlined"
547
+ min="2026-01-10T09:00"
548
+ max="2026-12-31T18:00"
549
+ :minute-step="15"
550
+ format="12h"
551
+ />
552
+ ```
553
+
554
+ ### DateTimePicker tokens
555
+
556
+ Component tokens (override via `theme.overrides.components.datetimepicker`):
557
+
558
+ - `minWidth`, `fontSize`, `controlGap`, `chevronSize`
559
+ - `padding`, `borderRadius`, `borderColor`
560
+ - `backgroundColor`, `textColor`, `placeholderColor`
561
+ - `focusBorderColor`, `focusRingShadow`, `hoverBorderColor`
562
+ - `disabledOpacity`
563
+ - `panelWidth`, `panelBackgroundColor`, `panelBorderColor`, `panelPadding`, `panelRadiusOffset`, `panelShadow`, `panelGap`
564
+ - `headerGap`, `headerPadding`, `monthLabelFontSize`, `monthLabelFontWeight`
565
+ - `navButtonSize`, `navButtonRadius`, `navButtonFontSize`
566
+ - `weekdayColor`, `weekdayFontSize`, `weekdaysMarginBottom`
567
+ - `daysGap`, `daySize`, `dayFontSize`, `dayBorderRadius`
568
+ - `dayHoverBackgroundColor`, `daySelectedBackgroundColor`, `daySelectedTextColor`, `dayMutedColor`, `dayTodayBorderColor`
569
+ - `timesWidth`, `timesMaxHeight`, `timesPaddingLeft`, `timesBorderColor`
570
+ - `timeOptionPadding`, `timeOptionBorderRadius`, `timeOptionFontSize`
571
+ - `timeOptionHoverBackgroundColor`, `timeOptionActiveBackgroundColor`, `timeOptionActiveTextColor`
572
+ - `small.fontSize`, `small.padding`, `small.daySize`
573
+ - `large.fontSize`, `large.padding`, `large.daySize`
574
+
513
575
  ## Pagination
514
576
 
515
577
  Props:
@@ -1942,7 +2004,7 @@ VueForge exposes design tokens as CSS variables generated from the theme preset.
1942
2004
  Typed tokens:
1943
2005
 
1944
2006
  - `ThemeTokens`/`ThemeOptions`/`ThemePreset` are exported for type-safe theming in TS.
1945
- - `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/passwordInput/otpInput/colorPicker/maskedInput/numberInput/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/select/autocomplete/multiselect/taginput/datepicker/daterangepicker/timepicker/pagination/switch/tooltip/skeleton/progress/badge/chip/avatar/datatable/slider/stepper/rating/tree/treeselect/virtualScroller).
2007
+ - `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/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).
1946
2008
 
1947
2009
  Default core values (from `DefaultTheme`):
1948
2010