@rebilly/revel 4.21.2 → 5.0.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/CHANGELOG.md +28 -46
- package/README.md +23 -14
- package/dist/common/date-picker-compat.d.ts +1 -0
- package/dist/common/datetime-formats.d.ts +28 -0
- package/dist/common/helpers/debounce.d.ts +2 -0
- package/dist/common/helpers/deep-clone.d.ts +2 -0
- package/dist/common/helpers/format-date.d.ts +4 -0
- package/dist/common/helpers/index.d.ts +6 -0
- package/dist/common/helpers/is-object.d.ts +2 -0
- package/dist/common/helpers/kebab-case.d.ts +2 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/r-avatar/r-avatar.vue.d.ts +86 -0
- package/dist/components/r-badge/r-badge.vue.d.ts +40 -0
- package/dist/components/r-button/r-button.vue.d.ts +195 -0
- package/dist/components/r-button-group/r-button-group.vue.d.ts +18 -0
- package/dist/components/r-checkbox/r-checkbox.vue.d.ts +148 -0
- package/dist/components/r-date-input/calendar-presets.d.ts +36 -0
- package/dist/components/r-date-input/r-calendar.vue.d.ts +159 -0
- package/dist/components/r-date-input/r-date-input.vue.d.ts +297 -0
- package/dist/components/r-date-input/r-date-range-button-group.vue.d.ts +167 -0
- package/dist/components/r-date-input/r-range-calendar.vue.d.ts +211 -0
- package/dist/components/r-date-input/shared-calendar-options.d.ts +64 -0
- package/dist/components/r-date-input/types.d.ts +8 -0
- package/dist/components/r-date-input/v-calendar.es.d.ts +459 -0
- package/dist/components/r-file-upload/r-file-upload.vue.d.ts +68 -0
- package/dist/components/r-grid/columnTypes/badge.vue.d.ts +42 -0
- package/dist/components/r-grid/columnTypes/date.vue.d.ts +25 -0
- package/dist/components/r-grid/columnTypes/index.d.ts +93 -0
- package/dist/components/r-grid/columnTypes/numeric.vue.d.ts +24 -0
- package/dist/components/r-grid/columnTypes/text.vue.d.ts +26 -0
- package/dist/components/r-grid/columnTypes/types.d.ts +24 -0
- package/dist/components/r-grid/helpers/color-generator.d.ts +4 -0
- package/dist/components/r-grid/r-grid.vue.d.ts +196 -0
- package/dist/components/r-icon/r-icon-sprites.d.ts +128 -0
- package/dist/components/r-icon/r-icon.vue.d.ts +61 -0
- package/dist/components/r-icon-button/r-icon-button.vue.d.ts +133 -0
- package/dist/components/r-img/r-img.vue.d.ts +96 -0
- package/dist/components/r-input/r-input.vue.d.ts +411 -0
- package/dist/components/r-loader/r-loader.vue.d.ts +55 -0
- package/dist/components/r-modal/r-modal.vue.d.ts +132 -0
- package/dist/components/r-month-picker/months.d.ts +1 -0
- package/dist/components/r-month-picker/r-month-picker.vue.d.ts +122 -0
- package/dist/components/r-pagination/r-pagination.vue.d.ts +97 -0
- package/dist/components/r-pagination/types.d.ts +8 -0
- package/dist/components/r-pagination-control/r-pagination-control.vue.d.ts +33 -0
- package/dist/components/r-popper/r-popper.vue.d.ts +275 -0
- package/dist/components/r-radio/r-radio.vue.d.ts +132 -0
- package/dist/components/r-repeater/r-repeater.vue.d.ts +58 -0
- package/dist/components/r-select/async-extension.d.ts +91 -0
- package/dist/components/r-select/r-select.vue.d.ts +733 -0
- package/dist/components/r-select/types.d.ts +29 -0
- package/dist/components/r-tabs/r-tab.vue.d.ts +70 -0
- package/dist/components/r-tabs/r-tabs.vue.d.ts +6983 -0
- package/dist/components/r-tabs/types.d.ts +23 -0
- package/dist/components/r-tile/r-tile.vue.d.ts +2 -0
- package/dist/components/r-toast/default-error-handler.d.ts +4 -0
- package/dist/components/r-toast/r-toast-manager.d.ts +17 -0
- package/dist/components/r-toast/r-toast.vue.d.ts +141 -0
- package/dist/components/r-toast/types.d.ts +19 -0
- package/dist/components/r-toggle/r-toggle.vue.d.ts +69 -0
- package/dist/directives/index.d.ts +8 -0
- package/dist/directives/r-click-outside/r-click-outside.d.ts +10 -0
- package/dist/directives/r-content/r-content.d.ts +9 -0
- package/dist/directives/r-fs-exclude.d.ts +7 -0
- package/dist/directives/r-lazy.d.ts +5 -0
- package/dist/directives/r-tooltip/r-tooltip.d.ts +12 -0
- package/dist/index.d.ts +20 -0
- package/dist/playground/Playground-copyme.vue.d.ts +2 -0
- package/dist/playground/main.d.ts +1 -0
- package/dist/revel.mjs +5577 -4744
- package/dist/revel.umd.js +115 -115
- package/dist/style.css +1 -1
- package/dist/styles/config.d.ts +32 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/tokens.d.ts +130 -0
- package/dist/types.d.ts +24 -0
- package/package.json +107 -85
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { Nullable } from '../../types';
|
|
3
|
+
type Position = 'bottomStart' | 'bottomEnd' | 'topStart' | 'topEnd';
|
|
4
|
+
interface Month {
|
|
5
|
+
monthIndex: Nullable<number>;
|
|
6
|
+
year: number;
|
|
7
|
+
}
|
|
8
|
+
interface State {
|
|
9
|
+
months: string[];
|
|
10
|
+
selectedDate: Nullable<Month>;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("vue").DefineComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* Label for the month picker
|
|
15
|
+
*/
|
|
16
|
+
label: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Help text for the month picker
|
|
22
|
+
*/
|
|
23
|
+
caption: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Selected month and year
|
|
29
|
+
*/
|
|
30
|
+
modelValue: {
|
|
31
|
+
required: true;
|
|
32
|
+
type: PropType<Month>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Defines if month picker is clearable
|
|
36
|
+
*/
|
|
37
|
+
clearable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
required: false;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Placeholder of the input if no month is selected
|
|
44
|
+
*/
|
|
45
|
+
placeholder: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Position of popover control
|
|
51
|
+
*/
|
|
52
|
+
position: {
|
|
53
|
+
type: PropType<Position>;
|
|
54
|
+
default: string;
|
|
55
|
+
validator: (pos: string) => boolean;
|
|
56
|
+
};
|
|
57
|
+
}, unknown, State, {
|
|
58
|
+
selectedDateLabel(): string;
|
|
59
|
+
}, {
|
|
60
|
+
selectMonth(monthIndex: number): void;
|
|
61
|
+
changeYear(value: number): void;
|
|
62
|
+
populateInput(date: Month): void;
|
|
63
|
+
onClear(): void;
|
|
64
|
+
togglePopper(): void;
|
|
65
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "clear" | "month-change" | "year-change")[], "update:modelValue" | "clear" | "month-change" | "year-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
/**
|
|
67
|
+
* Label for the month picker
|
|
68
|
+
*/
|
|
69
|
+
label: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Help text for the month picker
|
|
75
|
+
*/
|
|
76
|
+
caption: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Selected month and year
|
|
82
|
+
*/
|
|
83
|
+
modelValue: {
|
|
84
|
+
required: true;
|
|
85
|
+
type: PropType<Month>;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Defines if month picker is clearable
|
|
89
|
+
*/
|
|
90
|
+
clearable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
required: false;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Placeholder of the input if no month is selected
|
|
97
|
+
*/
|
|
98
|
+
placeholder: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Position of popover control
|
|
104
|
+
*/
|
|
105
|
+
position: {
|
|
106
|
+
type: PropType<Position>;
|
|
107
|
+
default: string;
|
|
108
|
+
validator: (pos: string) => boolean;
|
|
109
|
+
};
|
|
110
|
+
}>> & {
|
|
111
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
"onMonth-change"?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
"onYear-change"?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
caption: string;
|
|
117
|
+
label: string;
|
|
118
|
+
placeholder: string;
|
|
119
|
+
position: Position;
|
|
120
|
+
clearable: boolean;
|
|
121
|
+
}>;
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { PaginationItems } from './types';
|
|
2
|
+
interface Pagination {
|
|
3
|
+
hasPagination: boolean;
|
|
4
|
+
items: PaginationItems;
|
|
5
|
+
offset: number;
|
|
6
|
+
provider: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
/**
|
|
10
|
+
* Wrapper for async pagination data provider
|
|
11
|
+
*/
|
|
12
|
+
provider: {
|
|
13
|
+
type: FunctionConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Number of items handled by pagination in total
|
|
18
|
+
*/
|
|
19
|
+
total: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Number of items displayed on a single page
|
|
25
|
+
*/
|
|
26
|
+
limit: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of displayed pages on screen, other pages will be hidden by …
|
|
32
|
+
*/
|
|
33
|
+
totalVisible: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Number of current active page
|
|
39
|
+
*/
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
}, unknown, unknown, {
|
|
45
|
+
items(): PaginationItems;
|
|
46
|
+
pages(): number;
|
|
47
|
+
hasPagination(): boolean;
|
|
48
|
+
hasNext(): boolean;
|
|
49
|
+
hasPrevious(): boolean;
|
|
50
|
+
pagination(): Pagination;
|
|
51
|
+
}, {
|
|
52
|
+
next(): void;
|
|
53
|
+
previous(): void;
|
|
54
|
+
navigate(number: number): void;
|
|
55
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
/**
|
|
57
|
+
* Wrapper for async pagination data provider
|
|
58
|
+
*/
|
|
59
|
+
provider: {
|
|
60
|
+
type: FunctionConstructor;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Number of items handled by pagination in total
|
|
65
|
+
*/
|
|
66
|
+
total: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Number of items displayed on a single page
|
|
72
|
+
*/
|
|
73
|
+
limit: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Maximum number of displayed pages on screen, other pages will be hidden by …
|
|
79
|
+
*/
|
|
80
|
+
totalVisible: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Number of current active page
|
|
86
|
+
*/
|
|
87
|
+
modelValue: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
}>> & {
|
|
92
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
modelValue: number;
|
|
95
|
+
totalVisible: number;
|
|
96
|
+
}>;
|
|
97
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { PaginationItem, PaginationItems } from '../r-pagination/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
+
paginationNavigate: ((page: number) => void) | undefined;
|
|
4
|
+
paginationNext: (() => void) | undefined;
|
|
5
|
+
paginationPrevious: (() => void) | undefined;
|
|
6
|
+
paginationOffset: (() => number) | undefined;
|
|
7
|
+
paginationTotal: (() => number) | undefined;
|
|
8
|
+
paginationLimit: (() => number) | undefined;
|
|
9
|
+
paginationItems: (() => PaginationItems) | undefined;
|
|
10
|
+
paginationHasNext: (() => boolean) | undefined;
|
|
11
|
+
paginationHasPrevious: (() => boolean) | undefined;
|
|
12
|
+
}, {}, {
|
|
13
|
+
offset(): number | undefined;
|
|
14
|
+
total(): number | undefined;
|
|
15
|
+
limit(): number | undefined;
|
|
16
|
+
hasNext(): boolean | undefined;
|
|
17
|
+
hasPrevious(): boolean | undefined;
|
|
18
|
+
items(): PaginationItems;
|
|
19
|
+
override(): {
|
|
20
|
+
modelValue: ((page: number) => void) | undefined;
|
|
21
|
+
next: (() => void) | undefined;
|
|
22
|
+
previous: (() => void) | undefined;
|
|
23
|
+
offset: number | undefined;
|
|
24
|
+
total: number | undefined;
|
|
25
|
+
limit: number | undefined;
|
|
26
|
+
items: PaginationItems;
|
|
27
|
+
hasNext: boolean | undefined;
|
|
28
|
+
hasPrevious: boolean | undefined;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
handlePageUpdate(item: PaginationItem): void;
|
|
32
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { Nullable } from '../../types';
|
|
3
|
+
interface State {
|
|
4
|
+
id: string;
|
|
5
|
+
hideTimer: Nullable<ReturnType<typeof setTimeout>>;
|
|
6
|
+
hideDelayMs: number;
|
|
7
|
+
isPopperVisible: boolean;
|
|
8
|
+
activePopper: Nullable<string>;
|
|
9
|
+
}
|
|
10
|
+
interface Margin {
|
|
11
|
+
top: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
right: number;
|
|
14
|
+
left: number;
|
|
15
|
+
}
|
|
16
|
+
interface PopperAction {
|
|
17
|
+
delay: Nullable<number>;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import("vue").DefineComponent<{
|
|
20
|
+
/**
|
|
21
|
+
* If the popper is open by parent component
|
|
22
|
+
*/
|
|
23
|
+
state: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Escape button to hide
|
|
29
|
+
*/
|
|
30
|
+
escToHide: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* If the popper should hide automatically
|
|
36
|
+
*/
|
|
37
|
+
autoHide: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Global auto hide
|
|
43
|
+
*/
|
|
44
|
+
globalAutoHide: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* On close function
|
|
50
|
+
*/
|
|
51
|
+
closeFunction: {
|
|
52
|
+
type: FunctionConstructor;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Open on mount
|
|
57
|
+
*/
|
|
58
|
+
openOnMount: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Disabled
|
|
64
|
+
*/
|
|
65
|
+
disabled: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Fluid
|
|
71
|
+
*/
|
|
72
|
+
fluid: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Offset in px
|
|
78
|
+
*/
|
|
79
|
+
offset: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Additional offset ignoring popper direction
|
|
85
|
+
*/
|
|
86
|
+
margin: {
|
|
87
|
+
type: PropType<number[]>;
|
|
88
|
+
default: () => number[];
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Direction
|
|
92
|
+
*/
|
|
93
|
+
direction: {
|
|
94
|
+
type: PropType<"horizontal" | "vertical">;
|
|
95
|
+
default: string;
|
|
96
|
+
validator: (direction: string) => boolean;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Position
|
|
100
|
+
*/
|
|
101
|
+
position: {
|
|
102
|
+
type: PropType<"bottomEnd" | "bottomStart" | "topStart" | "topEnd">;
|
|
103
|
+
default: string;
|
|
104
|
+
validator: (position: string) => boolean;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Slide from (transition options): 'fade', 'top', 'bottom', 'left', 'right'
|
|
108
|
+
*/
|
|
109
|
+
slideFrom: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
validator: (slide: string) => boolean;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Transition duration
|
|
116
|
+
*/
|
|
117
|
+
duration: {
|
|
118
|
+
type: NumberConstructor;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
121
|
+
}, unknown, State, {
|
|
122
|
+
triggerEl(): HTMLDivElement;
|
|
123
|
+
contentEl(): HTMLDivElement;
|
|
124
|
+
/**
|
|
125
|
+
* The actions and properties available to the parent component.
|
|
126
|
+
* @returns {{}} Object of functions and properties
|
|
127
|
+
*/
|
|
128
|
+
popper(): {
|
|
129
|
+
isVisible: boolean;
|
|
130
|
+
open: (payload?: PopperAction) => void;
|
|
131
|
+
close: (payload?: PopperAction) => Promise<void>;
|
|
132
|
+
toggle: (payload?: PopperAction) => void;
|
|
133
|
+
};
|
|
134
|
+
hideTriggerHeight(): boolean;
|
|
135
|
+
}, {
|
|
136
|
+
setActivePopper(value: Nullable<string>): void;
|
|
137
|
+
setPopperVisible(visible: boolean): Promise<void>;
|
|
138
|
+
calculateContentPosition(): {
|
|
139
|
+
top: number;
|
|
140
|
+
left: number;
|
|
141
|
+
};
|
|
142
|
+
positionContent(): void;
|
|
143
|
+
getTriggerMargins(): Nullable<Margin>;
|
|
144
|
+
convertPixelsToNumber(value: string): number;
|
|
145
|
+
autoHidePopover(): void;
|
|
146
|
+
globalAutoHidePopover(): void;
|
|
147
|
+
escapePopper(): void;
|
|
148
|
+
togglePopper(payload?: PopperAction): void;
|
|
149
|
+
closePopper(payload?: PopperAction): Promise<void>;
|
|
150
|
+
openPopper(payload?: PopperAction): void;
|
|
151
|
+
mountPopup(): void;
|
|
152
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggle" | "setActivePopper" | "toggle-on" | "toggle-off")[], "toggle" | "setActivePopper" | "toggle-on" | "toggle-off", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
153
|
+
/**
|
|
154
|
+
* If the popper is open by parent component
|
|
155
|
+
*/
|
|
156
|
+
state: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: null;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Escape button to hide
|
|
162
|
+
*/
|
|
163
|
+
escToHide: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* If the popper should hide automatically
|
|
169
|
+
*/
|
|
170
|
+
autoHide: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Global auto hide
|
|
176
|
+
*/
|
|
177
|
+
globalAutoHide: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* On close function
|
|
183
|
+
*/
|
|
184
|
+
closeFunction: {
|
|
185
|
+
type: FunctionConstructor;
|
|
186
|
+
default: null;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Open on mount
|
|
190
|
+
*/
|
|
191
|
+
openOnMount: {
|
|
192
|
+
type: BooleanConstructor;
|
|
193
|
+
default: boolean;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Disabled
|
|
197
|
+
*/
|
|
198
|
+
disabled: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Fluid
|
|
204
|
+
*/
|
|
205
|
+
fluid: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Offset in px
|
|
211
|
+
*/
|
|
212
|
+
offset: {
|
|
213
|
+
type: NumberConstructor;
|
|
214
|
+
default: number;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Additional offset ignoring popper direction
|
|
218
|
+
*/
|
|
219
|
+
margin: {
|
|
220
|
+
type: PropType<number[]>;
|
|
221
|
+
default: () => number[];
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Direction
|
|
225
|
+
*/
|
|
226
|
+
direction: {
|
|
227
|
+
type: PropType<"horizontal" | "vertical">;
|
|
228
|
+
default: string;
|
|
229
|
+
validator: (direction: string) => boolean;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Position
|
|
233
|
+
*/
|
|
234
|
+
position: {
|
|
235
|
+
type: PropType<"bottomEnd" | "bottomStart" | "topStart" | "topEnd">;
|
|
236
|
+
default: string;
|
|
237
|
+
validator: (position: string) => boolean;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* Slide from (transition options): 'fade', 'top', 'bottom', 'left', 'right'
|
|
241
|
+
*/
|
|
242
|
+
slideFrom: {
|
|
243
|
+
type: StringConstructor;
|
|
244
|
+
default: string;
|
|
245
|
+
validator: (slide: string) => boolean;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Transition duration
|
|
249
|
+
*/
|
|
250
|
+
duration: {
|
|
251
|
+
type: NumberConstructor;
|
|
252
|
+
default: number;
|
|
253
|
+
};
|
|
254
|
+
}>> & {
|
|
255
|
+
onToggle?: ((...args: any[]) => any) | undefined;
|
|
256
|
+
onSetActivePopper?: ((...args: any[]) => any) | undefined;
|
|
257
|
+
"onToggle-on"?: ((...args: any[]) => any) | undefined;
|
|
258
|
+
"onToggle-off"?: ((...args: any[]) => any) | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
direction: "horizontal" | "vertical";
|
|
261
|
+
offset: number;
|
|
262
|
+
disabled: boolean;
|
|
263
|
+
fluid: boolean;
|
|
264
|
+
position: "bottomEnd" | "bottomStart" | "topStart" | "topEnd";
|
|
265
|
+
duration: number;
|
|
266
|
+
state: boolean;
|
|
267
|
+
escToHide: boolean;
|
|
268
|
+
autoHide: boolean;
|
|
269
|
+
globalAutoHide: boolean;
|
|
270
|
+
closeFunction: Function;
|
|
271
|
+
openOnMount: boolean;
|
|
272
|
+
margin: number[];
|
|
273
|
+
slideFrom: string;
|
|
274
|
+
}>;
|
|
275
|
+
export default _default;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { ValidationState } from '../../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* Label for radio input
|
|
6
|
+
*/
|
|
7
|
+
label: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Radio input id attribute. Defaults to nano ID
|
|
13
|
+
*/
|
|
14
|
+
id: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: () => string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Radio input name attribute. Defaults to nano ID.
|
|
20
|
+
*/
|
|
21
|
+
name: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: () => string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Caption to appear below the radio input
|
|
27
|
+
*/
|
|
28
|
+
caption: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: null;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Radio input value
|
|
34
|
+
*/
|
|
35
|
+
value: {
|
|
36
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Disable radio
|
|
41
|
+
*/
|
|
42
|
+
disabled: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Vuelidate object
|
|
48
|
+
*/
|
|
49
|
+
validate: {
|
|
50
|
+
type: PropType<ValidationState>;
|
|
51
|
+
default: null;
|
|
52
|
+
};
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
57
|
+
}, unknown, unknown, {
|
|
58
|
+
classes(): {
|
|
59
|
+
'r-is-error': boolean;
|
|
60
|
+
};
|
|
61
|
+
labelClasses(): {
|
|
62
|
+
'r-is-disabled': boolean;
|
|
63
|
+
'r-is-checked': boolean;
|
|
64
|
+
};
|
|
65
|
+
isInvalid(): boolean;
|
|
66
|
+
isChecked(): boolean;
|
|
67
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
+
/**
|
|
69
|
+
* Label for radio input
|
|
70
|
+
*/
|
|
71
|
+
label: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Radio input id attribute. Defaults to nano ID
|
|
77
|
+
*/
|
|
78
|
+
id: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: () => string;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Radio input name attribute. Defaults to nano ID.
|
|
84
|
+
*/
|
|
85
|
+
name: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: () => string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Caption to appear below the radio input
|
|
91
|
+
*/
|
|
92
|
+
caption: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: null;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Radio input value
|
|
98
|
+
*/
|
|
99
|
+
value: {
|
|
100
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Disable radio
|
|
105
|
+
*/
|
|
106
|
+
disabled: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Vuelidate object
|
|
112
|
+
*/
|
|
113
|
+
validate: {
|
|
114
|
+
type: PropType<ValidationState>;
|
|
115
|
+
default: null;
|
|
116
|
+
};
|
|
117
|
+
modelValue: {
|
|
118
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
119
|
+
default: null;
|
|
120
|
+
};
|
|
121
|
+
}>> & {
|
|
122
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
id: string;
|
|
125
|
+
name: string;
|
|
126
|
+
caption: string;
|
|
127
|
+
label: string;
|
|
128
|
+
disabled: boolean;
|
|
129
|
+
modelValue: string | number | boolean | unknown[];
|
|
130
|
+
validate: ValidationState;
|
|
131
|
+
}>;
|
|
132
|
+
export default _default;
|