@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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ export type WizardValue = string | number;
3
+ export type WizardContext = {
4
+ activeValue: ComputedRef<WizardValue | undefined>;
5
+ getPanelId: (value: WizardValue) => string;
6
+ getStepId: (value: WizardValue) => string;
7
+ isActive: (value: WizardValue) => boolean;
8
+ };
9
+ export declare const wizardKey: InjectionKey<WizardContext>;
@@ -0,0 +1,21 @@
1
+ import { WizardValue } from './wizard-context';
2
+ interface Props {
3
+ value: WizardValue;
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,78 @@
1
+ import { WizardValue } from './wizard-context';
2
+ type ValidateResult = boolean | string | null | undefined;
3
+ type ValidateHandler = (step: WizardStepItem, index: number, value: WizardValue) => ValidateResult | Promise<ValidateResult>;
4
+ export interface WizardStepItem {
5
+ value: WizardValue;
6
+ title?: string;
7
+ description?: string;
8
+ optional?: boolean;
9
+ disabled?: boolean;
10
+ validate?: (value: WizardValue, index: number) => ValidateResult | Promise<ValidateResult>;
11
+ }
12
+ interface Props {
13
+ modelValue?: WizardValue;
14
+ steps?: Array<WizardStepItem>;
15
+ linear?: boolean;
16
+ disabled?: boolean;
17
+ nextLabel?: string;
18
+ prevLabel?: string;
19
+ finishLabel?: string;
20
+ validateStep?: ValidateHandler;
21
+ ariaLabel?: string;
22
+ ariaLabelledby?: string;
23
+ }
24
+ declare function __VLS_template(): {
25
+ attrs: Partial<{}>;
26
+ slots: {
27
+ indicator?(_: {
28
+ step: WizardStepItem;
29
+ index: number;
30
+ }): any;
31
+ default?(_: {}): any;
32
+ actions?(_: {
33
+ step: WizardStepItem | undefined;
34
+ index: number;
35
+ isFirst: boolean;
36
+ isLast: boolean;
37
+ next: () => Promise<void>;
38
+ prev: () => Promise<void>;
39
+ complete: () => Promise<void>;
40
+ }): any;
41
+ };
42
+ refs: {};
43
+ rootEl: HTMLDivElement;
44
+ };
45
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
46
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ change: (...args: any[]) => void;
48
+ "update:modelValue": (...args: any[]) => void;
49
+ complete: (...args: any[]) => void;
50
+ next: (...args: any[]) => void;
51
+ prev: (...args: any[]) => void;
52
+ invalidStep: (...args: any[]) => void;
53
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
54
+ onChange?: ((...args: any[]) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
56
+ onComplete?: ((...args: any[]) => any) | undefined;
57
+ onNext?: ((...args: any[]) => any) | undefined;
58
+ onPrev?: ((...args: any[]) => any) | undefined;
59
+ onInvalidStep?: ((...args: any[]) => any) | undefined;
60
+ }>, {
61
+ disabled: boolean;
62
+ modelValue: WizardValue;
63
+ ariaLabel: string;
64
+ ariaLabelledby: string;
65
+ prevLabel: string;
66
+ nextLabel: string;
67
+ steps: Array<WizardStepItem>;
68
+ finishLabel: string;
69
+ linear: boolean;
70
+ validateStep: ValidateHandler;
71
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
72
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
73
+ export default _default;
74
+ type __VLS_WithTemplateSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };
@@ -1496,6 +1496,45 @@ export type StepperTokens = {
1496
1496
  itemGap?: string;
1497
1497
  };
1498
1498
  };
1499
+ export type WizardTokens = {
1500
+ gap?: string;
1501
+ borderColor?: string;
1502
+ headerPaddingBottom?: string;
1503
+ itemGap?: string;
1504
+ stepGap?: string;
1505
+ indicatorSize?: string;
1506
+ indicatorBorderRadius?: string;
1507
+ indicatorFontSize?: string;
1508
+ indicatorBorderColor?: string;
1509
+ indicatorBackgroundColor?: string;
1510
+ indicatorTextColor?: string;
1511
+ activeIndicatorBorderColor?: string;
1512
+ activeIndicatorBackgroundColor?: string;
1513
+ activeIndicatorTextColor?: string;
1514
+ completedIndicatorBorderColor?: string;
1515
+ completedIndicatorBackgroundColor?: string;
1516
+ completedIndicatorTextColor?: string;
1517
+ errorIndicatorBorderColor?: string;
1518
+ errorIndicatorBackgroundColor?: string;
1519
+ errorIndicatorTextColor?: string;
1520
+ titleFontSize?: string;
1521
+ titleColor?: string;
1522
+ descriptionFontSize?: string;
1523
+ descriptionColor?: string;
1524
+ actionsGap?: string;
1525
+ buttonMinWidth?: string;
1526
+ buttonPadding?: string;
1527
+ buttonBorderRadius?: string;
1528
+ buttonBorderColor?: string;
1529
+ buttonBackgroundColor?: string;
1530
+ buttonTextColor?: string;
1531
+ buttonHoverBackgroundColor?: string;
1532
+ secondaryButtonBorderColor?: string;
1533
+ secondaryButtonBackgroundColor?: string;
1534
+ secondaryButtonTextColor?: string;
1535
+ secondaryButtonHoverBackgroundColor?: string;
1536
+ disabledOpacity?: string;
1537
+ };
1499
1538
  export type TimelineTokens = {
1500
1539
  gap?: string;
1501
1540
  itemGap?: string;
@@ -1903,6 +1942,7 @@ export type ThemeComponentTokens = {
1903
1942
  slider?: SliderTokens;
1904
1943
  splitter?: SplitterTokens;
1905
1944
  stepper?: StepperTokens;
1945
+ wizard?: WizardTokens;
1906
1946
  timeline?: TimelineTokens;
1907
1947
  datatable?: DataTableTokens;
1908
1948
  toast?: ToastTokens;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ gap: string;
3
+ borderColor: string;
4
+ headerPaddingBottom: string;
5
+ itemGap: string;
6
+ stepGap: string;
7
+ indicatorSize: string;
8
+ indicatorBorderRadius: string;
9
+ indicatorFontSize: string;
10
+ indicatorBorderColor: string;
11
+ indicatorBackgroundColor: string;
12
+ indicatorTextColor: string;
13
+ activeIndicatorBorderColor: string;
14
+ activeIndicatorBackgroundColor: string;
15
+ activeIndicatorTextColor: string;
16
+ completedIndicatorBorderColor: string;
17
+ completedIndicatorBackgroundColor: string;
18
+ completedIndicatorTextColor: string;
19
+ errorIndicatorBorderColor: string;
20
+ errorIndicatorBackgroundColor: string;
21
+ errorIndicatorTextColor: string;
22
+ titleFontSize: string;
23
+ titleColor: string;
24
+ descriptionFontSize: string;
25
+ descriptionColor: string;
26
+ actionsGap: string;
27
+ buttonMinWidth: string;
28
+ buttonPadding: string;
29
+ buttonBorderRadius: string;
30
+ buttonBorderColor: string;
31
+ buttonBackgroundColor: string;
32
+ buttonTextColor: string;
33
+ buttonHoverBackgroundColor: string;
34
+ secondaryButtonBorderColor: string;
35
+ secondaryButtonBackgroundColor: string;
36
+ secondaryButtonTextColor: string;
37
+ secondaryButtonHoverBackgroundColor: string;
38
+ disabledOpacity: string;
39
+ };
40
+ export default _default;
@@ -1917,6 +1917,45 @@ declare const _default: {
1917
1917
  itemGap: string;
1918
1918
  };
1919
1919
  };
1920
+ wizard: {
1921
+ gap: string;
1922
+ borderColor: string;
1923
+ headerPaddingBottom: string;
1924
+ itemGap: string;
1925
+ stepGap: string;
1926
+ indicatorSize: string;
1927
+ indicatorBorderRadius: string;
1928
+ indicatorFontSize: string;
1929
+ indicatorBorderColor: string;
1930
+ indicatorBackgroundColor: string;
1931
+ indicatorTextColor: string;
1932
+ activeIndicatorBorderColor: string;
1933
+ activeIndicatorBackgroundColor: string;
1934
+ activeIndicatorTextColor: string;
1935
+ completedIndicatorBorderColor: string;
1936
+ completedIndicatorBackgroundColor: string;
1937
+ completedIndicatorTextColor: string;
1938
+ errorIndicatorBorderColor: string;
1939
+ errorIndicatorBackgroundColor: string;
1940
+ errorIndicatorTextColor: string;
1941
+ titleFontSize: string;
1942
+ titleColor: string;
1943
+ descriptionFontSize: string;
1944
+ descriptionColor: string;
1945
+ actionsGap: string;
1946
+ buttonMinWidth: string;
1947
+ buttonPadding: string;
1948
+ buttonBorderRadius: string;
1949
+ buttonBorderColor: string;
1950
+ buttonBackgroundColor: string;
1951
+ buttonTextColor: string;
1952
+ buttonHoverBackgroundColor: string;
1953
+ secondaryButtonBorderColor: string;
1954
+ secondaryButtonBackgroundColor: string;
1955
+ secondaryButtonTextColor: string;
1956
+ secondaryButtonHoverBackgroundColor: string;
1957
+ disabledOpacity: string;
1958
+ };
1920
1959
  timeline: {
1921
1960
  gap: string;
1922
1961
  itemGap: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.63.0",
3
+ "version": "0.64.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",