@codemonster-ru/vueforge 0.62.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 @@
1
+ export {};
@@ -0,0 +1,98 @@
1
+ type Placement = 'top' | 'bottom' | 'left' | 'right';
2
+ export interface TourStep {
3
+ target?: string | HTMLElement;
4
+ title?: string;
5
+ content?: string;
6
+ placement?: Placement;
7
+ offset?: number;
8
+ }
9
+ interface Props {
10
+ modelValue?: boolean;
11
+ steps?: Array<TourStep>;
12
+ startIndex?: number;
13
+ placement?: Placement;
14
+ offset?: number;
15
+ mask?: boolean;
16
+ closeOnOverlay?: boolean;
17
+ closeOnEsc?: boolean;
18
+ showSkip?: boolean;
19
+ showProgress?: boolean;
20
+ spotlightPadding?: number;
21
+ nextLabel?: string;
22
+ prevLabel?: string;
23
+ finishLabel?: string;
24
+ skipLabel?: string;
25
+ ariaLabel?: string;
26
+ }
27
+ declare function __VLS_template(): {
28
+ attrs: Partial<{}>;
29
+ slots: {
30
+ title?(_: {
31
+ step: TourStep | undefined;
32
+ index: number;
33
+ }): any;
34
+ default?(_: {
35
+ step: TourStep | undefined;
36
+ index: number;
37
+ }): any;
38
+ actions?(_: {
39
+ step: TourStep | undefined;
40
+ index: number;
41
+ isFirst: boolean;
42
+ isLast: boolean;
43
+ prev: () => void;
44
+ next: () => void;
45
+ skip: () => void;
46
+ }): any;
47
+ };
48
+ refs: {
49
+ panel: HTMLDivElement;
50
+ };
51
+ rootEl: any;
52
+ };
53
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
54
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
55
+ close: (...args: any[]) => void;
56
+ "update:modelValue": (...args: any[]) => void;
57
+ open: (...args: any[]) => void;
58
+ complete: (...args: any[]) => void;
59
+ stepChange: (...args: any[]) => void;
60
+ next: (...args: any[]) => void;
61
+ prev: (...args: any[]) => void;
62
+ skip: (...args: any[]) => void;
63
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
64
+ onClose?: ((...args: any[]) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
+ onOpen?: ((...args: any[]) => any) | undefined;
67
+ onComplete?: ((...args: any[]) => any) | undefined;
68
+ onStepChange?: ((...args: any[]) => any) | undefined;
69
+ onNext?: ((...args: any[]) => any) | undefined;
70
+ onPrev?: ((...args: any[]) => any) | undefined;
71
+ onSkip?: ((...args: any[]) => any) | undefined;
72
+ }>, {
73
+ mask: boolean;
74
+ modelValue: boolean;
75
+ ariaLabel: string;
76
+ placement: Placement;
77
+ prevLabel: string;
78
+ nextLabel: string;
79
+ closeOnOverlay: boolean;
80
+ closeOnEsc: boolean;
81
+ offset: number;
82
+ steps: Array<TourStep>;
83
+ startIndex: number;
84
+ showSkip: boolean;
85
+ showProgress: boolean;
86
+ spotlightPadding: number;
87
+ finishLabel: string;
88
+ skipLabel: string;
89
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
90
+ panel: HTMLDivElement;
91
+ }, any>;
92
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
93
+ export default _default;
94
+ type __VLS_WithTemplateSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
@@ -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
+ };
@@ -1413,6 +1413,45 @@ export type SplitterTokens = {
1413
1413
  gutterActiveBackgroundColor?: string;
1414
1414
  disabledOpacity?: string;
1415
1415
  };
1416
+ export type TourTokens = {
1417
+ zIndex?: string;
1418
+ overlayBackgroundColor?: string;
1419
+ width?: string;
1420
+ maxWidth?: string;
1421
+ padding?: string;
1422
+ borderRadius?: string;
1423
+ borderColor?: string;
1424
+ backgroundColor?: string;
1425
+ textColor?: string;
1426
+ shadow?: string;
1427
+ titleGap?: string;
1428
+ titleFontSize?: string;
1429
+ titleLineHeight?: string;
1430
+ titleFontWeight?: string;
1431
+ contentGap?: string;
1432
+ contentFontSize?: string;
1433
+ contentLineHeight?: string;
1434
+ contentColor?: string;
1435
+ progressGap?: string;
1436
+ progressFontSize?: string;
1437
+ progressColor?: string;
1438
+ actionsGap?: string;
1439
+ buttonMinWidth?: string;
1440
+ buttonPadding?: string;
1441
+ buttonRadius?: string;
1442
+ buttonBorderColor?: string;
1443
+ buttonBackgroundColor?: string;
1444
+ buttonTextColor?: string;
1445
+ buttonHoverBackgroundColor?: string;
1446
+ secondaryButtonBorderColor?: string;
1447
+ secondaryButtonBackgroundColor?: string;
1448
+ secondaryButtonTextColor?: string;
1449
+ secondaryButtonHoverBackgroundColor?: string;
1450
+ spotlightRadius?: string;
1451
+ spotlightBorderWidth?: string;
1452
+ spotlightBorderColor?: string;
1453
+ disabledOpacity?: string;
1454
+ };
1416
1455
  export type StepperTokens = {
1417
1456
  gap?: string;
1418
1457
  itemGap?: string;
@@ -1457,6 +1496,45 @@ export type StepperTokens = {
1457
1496
  itemGap?: string;
1458
1497
  };
1459
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
+ };
1460
1538
  export type TimelineTokens = {
1461
1539
  gap?: string;
1462
1540
  itemGap?: string;
@@ -1858,11 +1936,13 @@ export type ThemeComponentTokens = {
1858
1936
  switch?: SwitchTokens;
1859
1937
  segmentedControl?: SegmentedControlTokens;
1860
1938
  tooltip?: TooltipTokens;
1939
+ tour?: TourTokens;
1861
1940
  skeleton?: SkeletonTokens;
1862
1941
  progress?: ProgressTokens;
1863
1942
  slider?: SliderTokens;
1864
1943
  splitter?: SplitterTokens;
1865
1944
  stepper?: StepperTokens;
1945
+ wizard?: WizardTokens;
1866
1946
  timeline?: TimelineTokens;
1867
1947
  datatable?: DataTableTokens;
1868
1948
  toast?: ToastTokens;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ zIndex: string;
3
+ overlayBackgroundColor: string;
4
+ width: string;
5
+ maxWidth: string;
6
+ padding: string;
7
+ borderRadius: string;
8
+ borderColor: string;
9
+ backgroundColor: string;
10
+ textColor: string;
11
+ shadow: string;
12
+ titleGap: string;
13
+ titleFontSize: string;
14
+ titleLineHeight: string;
15
+ titleFontWeight: string;
16
+ contentGap: string;
17
+ contentFontSize: string;
18
+ contentLineHeight: string;
19
+ contentColor: string;
20
+ progressGap: string;
21
+ progressFontSize: string;
22
+ progressColor: string;
23
+ actionsGap: string;
24
+ buttonMinWidth: string;
25
+ buttonPadding: string;
26
+ buttonRadius: string;
27
+ buttonBorderColor: string;
28
+ buttonBackgroundColor: string;
29
+ buttonTextColor: string;
30
+ buttonHoverBackgroundColor: string;
31
+ secondaryButtonBorderColor: string;
32
+ secondaryButtonBackgroundColor: string;
33
+ secondaryButtonTextColor: string;
34
+ secondaryButtonHoverBackgroundColor: string;
35
+ spotlightRadius: string;
36
+ spotlightBorderWidth: string;
37
+ spotlightBorderColor: string;
38
+ disabledOpacity: string;
39
+ };
40
+ export default _default;
@@ -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;
@@ -1402,6 +1402,45 @@ declare const _default: {
1402
1402
  maxWidth: string;
1403
1403
  arrowSize: string;
1404
1404
  };
1405
+ tour: {
1406
+ zIndex: string;
1407
+ overlayBackgroundColor: string;
1408
+ width: string;
1409
+ maxWidth: string;
1410
+ padding: string;
1411
+ borderRadius: string;
1412
+ borderColor: string;
1413
+ backgroundColor: string;
1414
+ textColor: string;
1415
+ shadow: string;
1416
+ titleGap: string;
1417
+ titleFontSize: string;
1418
+ titleLineHeight: string;
1419
+ titleFontWeight: string;
1420
+ contentGap: string;
1421
+ contentFontSize: string;
1422
+ contentLineHeight: string;
1423
+ contentColor: string;
1424
+ progressGap: string;
1425
+ progressFontSize: string;
1426
+ progressColor: string;
1427
+ actionsGap: string;
1428
+ buttonMinWidth: string;
1429
+ buttonPadding: string;
1430
+ buttonRadius: string;
1431
+ buttonBorderColor: string;
1432
+ buttonBackgroundColor: string;
1433
+ buttonTextColor: string;
1434
+ buttonHoverBackgroundColor: string;
1435
+ secondaryButtonBorderColor: string;
1436
+ secondaryButtonBackgroundColor: string;
1437
+ secondaryButtonTextColor: string;
1438
+ secondaryButtonHoverBackgroundColor: string;
1439
+ spotlightRadius: string;
1440
+ spotlightBorderWidth: string;
1441
+ spotlightBorderColor: string;
1442
+ disabledOpacity: string;
1443
+ };
1405
1444
  skeleton: {
1406
1445
  width: string;
1407
1446
  height: string;
@@ -1878,6 +1917,45 @@ declare const _default: {
1878
1917
  itemGap: string;
1879
1918
  };
1880
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
+ };
1881
1959
  timeline: {
1882
1960
  gap: string;
1883
1961
  itemGap: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.62.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",