@codemonster-ru/vueforge 0.63.0 → 0.64.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 +78 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.ts.mjs +4167 -3940
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/wizard.test.d.ts +1 -0
- package/dist/package/components/wizard-context.d.ts +9 -0
- package/dist/package/components/wizard-step.vue.d.ts +21 -0
- package/dist/package/components/wizard.vue.d.ts +78 -0
- package/dist/package/config/theme-core.d.ts +40 -0
- package/dist/package/themes/default/components/wizard.d.ts +40 -0
- package/dist/package/themes/default/index.d.ts +39 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,8 @@ import {
|
|
|
70
70
|
Splitter,
|
|
71
71
|
SplitterPanel,
|
|
72
72
|
Stepper,
|
|
73
|
+
Wizard,
|
|
74
|
+
WizardStep,
|
|
73
75
|
Timeline,
|
|
74
76
|
Rating,
|
|
75
77
|
Tree,
|
|
@@ -170,6 +172,10 @@ app.use(VueForge, {
|
|
|
170
172
|
<SplitterPanel :min-size="20">Right panel</SplitterPanel>
|
|
171
173
|
</Splitter>
|
|
172
174
|
<Stepper v-model="step" :steps="steps" clickable />
|
|
175
|
+
<Wizard v-model="wizardStep" :steps="wizardSteps">
|
|
176
|
+
<WizardStep value="account">Account step</WizardStep>
|
|
177
|
+
<WizardStep value="confirm">Confirm step</WizardStep>
|
|
178
|
+
</Wizard>
|
|
173
179
|
<Timeline :items="timelineItems" />
|
|
174
180
|
<Rating v-model="rating" allow-half />
|
|
175
181
|
<Tree v-model="selectedNode" v-model:expandedKeys="expandedKeys" :items="treeItems" />
|
|
@@ -293,6 +299,8 @@ app.use(VueForge, {
|
|
|
293
299
|
- Splitter
|
|
294
300
|
- SplitterPanel
|
|
295
301
|
- Stepper
|
|
302
|
+
- Wizard
|
|
303
|
+
- WizardStep
|
|
296
304
|
- Timeline
|
|
297
305
|
- Rating
|
|
298
306
|
- Tree
|
|
@@ -314,6 +322,7 @@ Input / InputGroup / Search / Password / Textarea (quick API):
|
|
|
314
322
|
- `NumberInput`: numeric control, supports `v-model`, `min`, `max`, `step`, `precision`, `controls`, `size`, `variant`.
|
|
315
323
|
- `Splitter`: resizable multi-panel container with draggable separators and `v-model` percentage sizes.
|
|
316
324
|
- `Tour`: guided step-by-step onboarding overlay anchored to target elements.
|
|
325
|
+
- `Wizard`: multi-step flow container with linear navigation, per-step validation, and completion events.
|
|
317
326
|
- `Textarea`: multi-line control, same as Input plus `rows`.
|
|
318
327
|
- `TagInput`: token/tag control, supports `v-model` (array), suggestions, custom tags, `maxTags`, `clearable`, `size`, `variant`.
|
|
319
328
|
- `FilterChips`: compact chip-based filter toggles with single/multiple selection modes and optional clear action.
|
|
@@ -2477,6 +2486,74 @@ Component tokens (override via `theme.overrides.components.stepper`):
|
|
|
2477
2486
|
- `small.indicatorSize`, `small.indicatorFontSize`, `small.labelFontSize`, `small.descriptionFontSize`, `small.lineLength`, `small.itemGap`
|
|
2478
2487
|
- `large.indicatorSize`, `large.indicatorFontSize`, `large.labelFontSize`, `large.descriptionFontSize`, `large.lineLength`, `large.itemGap`
|
|
2479
2488
|
|
|
2489
|
+
## Wizard / WizardStep
|
|
2490
|
+
|
|
2491
|
+
Props (`Wizard`):
|
|
2492
|
+
|
|
2493
|
+
- `modelValue?: string | number` (v-model active step value)
|
|
2494
|
+
- `steps?: Array<{ value: string | number; title?: string; description?: string; optional?: boolean; disabled?: boolean; validate?: (value, index) => boolean | string | Promise<...> }>`
|
|
2495
|
+
- `linear?: boolean` (default `true`)
|
|
2496
|
+
- `disabled?: boolean` (default `false`)
|
|
2497
|
+
- `nextLabel?: string` (default `Next`)
|
|
2498
|
+
- `prevLabel?: string` (default `Back`)
|
|
2499
|
+
- `finishLabel?: string` (default `Finish`)
|
|
2500
|
+
- `validateStep?: (step, index, value) => boolean | string | Promise<...>`
|
|
2501
|
+
- `ariaLabel?: string`
|
|
2502
|
+
- `ariaLabelledby?: string`
|
|
2503
|
+
|
|
2504
|
+
Props (`WizardStep`):
|
|
2505
|
+
|
|
2506
|
+
- `value: string | number` (must match one of `Wizard.steps[].value`)
|
|
2507
|
+
|
|
2508
|
+
Slots (`Wizard`):
|
|
2509
|
+
|
|
2510
|
+
- `default` - place `WizardStep` components
|
|
2511
|
+
- `indicator` (optional) - slot props `{ step, index }`
|
|
2512
|
+
- `actions` (optional) - slot props `{ step, index, isFirst, isLast, next, prev, complete }`
|
|
2513
|
+
|
|
2514
|
+
Events (`Wizard`):
|
|
2515
|
+
|
|
2516
|
+
- `update:modelValue`
|
|
2517
|
+
- `change`
|
|
2518
|
+
- `next`
|
|
2519
|
+
- `prev`
|
|
2520
|
+
- `complete`
|
|
2521
|
+
- `invalidStep`
|
|
2522
|
+
|
|
2523
|
+
Example:
|
|
2524
|
+
|
|
2525
|
+
```vue
|
|
2526
|
+
<Wizard v-model="wizardStep" :steps="wizardSteps">
|
|
2527
|
+
<WizardStep value="account">
|
|
2528
|
+
<Input v-model="email" placeholder="Email" />
|
|
2529
|
+
</WizardStep>
|
|
2530
|
+
<WizardStep value="plan">
|
|
2531
|
+
<Select v-model="plan" :options="plans" />
|
|
2532
|
+
</WizardStep>
|
|
2533
|
+
<WizardStep value="confirm">
|
|
2534
|
+
Review and finish
|
|
2535
|
+
</WizardStep>
|
|
2536
|
+
</Wizard>
|
|
2537
|
+
```
|
|
2538
|
+
|
|
2539
|
+
### Wizard tokens
|
|
2540
|
+
|
|
2541
|
+
Component tokens (override via `theme.overrides.components.wizard`):
|
|
2542
|
+
|
|
2543
|
+
- `gap`, `borderColor`, `headerPaddingBottom`
|
|
2544
|
+
- `itemGap`, `stepGap`
|
|
2545
|
+
- `indicatorSize`, `indicatorBorderRadius`, `indicatorFontSize`
|
|
2546
|
+
- `indicatorBorderColor`, `indicatorBackgroundColor`, `indicatorTextColor`
|
|
2547
|
+
- `activeIndicatorBorderColor`, `activeIndicatorBackgroundColor`, `activeIndicatorTextColor`
|
|
2548
|
+
- `completedIndicatorBorderColor`, `completedIndicatorBackgroundColor`, `completedIndicatorTextColor`
|
|
2549
|
+
- `errorIndicatorBorderColor`, `errorIndicatorBackgroundColor`, `errorIndicatorTextColor`
|
|
2550
|
+
- `titleFontSize`, `titleColor`, `descriptionFontSize`, `descriptionColor`
|
|
2551
|
+
- `actionsGap`
|
|
2552
|
+
- `buttonMinWidth`, `buttonPadding`, `buttonBorderRadius`
|
|
2553
|
+
- `buttonBorderColor`, `buttonBackgroundColor`, `buttonTextColor`, `buttonHoverBackgroundColor`
|
|
2554
|
+
- `secondaryButtonBorderColor`, `secondaryButtonBackgroundColor`, `secondaryButtonTextColor`, `secondaryButtonHoverBackgroundColor`
|
|
2555
|
+
- `disabledOpacity`
|
|
2556
|
+
|
|
2480
2557
|
## Timeline
|
|
2481
2558
|
|
|
2482
2559
|
Props:
|
|
@@ -2724,7 +2801,7 @@ VueForge exposes design tokens as CSS variables generated from the theme preset.
|
|
|
2724
2801
|
Typed tokens:
|
|
2725
2802
|
|
|
2726
2803
|
- `ThemeTokens`/`ThemeOptions`/`ThemePreset` are exported for type-safe theming in TS.
|
|
2727
|
-
- `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/emptyState/input/inputGroup/inlineEdit/searchInput/mentionInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/form/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/tour/select/autocomplete/combobox/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/badge/chip/filterChips/avatar/datatable/slider/splitter/stepper/rating/tree/treeselect/virtualScroller).
|
|
2804
|
+
- `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/emptyState/input/inputGroup/inlineEdit/searchInput/mentionInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/form/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/tour/select/autocomplete/combobox/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/badge/chip/filterChips/avatar/datatable/slider/splitter/stepper/wizard/rating/tree/treeselect/virtualScroller).
|
|
2728
2805
|
|
|
2729
2806
|
Default core values (from `DefaultTheme`):
|
|
2730
2807
|
|