@opentiny/vue-renderless 3.12.1 → 3.13.0-alpha.1
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/action-sheet/index.js +20 -13
- package/action-sheet/vue.js +8 -7
- package/alert/index.js +50 -1
- package/alert/vue.js +36 -9
- package/amount/index.js +100 -25
- package/amount/vue.js +102 -26
- package/anchor/index.js +1 -0
- package/area/index.js +8 -8
- package/area/vue.js +5 -5
- package/async-flowchart/index.js +16 -3
- package/autocomplete/index.js +58 -14
- package/autocomplete/vue.js +40 -12
- package/badge/index.js +12 -0
- package/badge/vue.js +6 -4
- package/breadcrumb/vue.js +3 -1
- package/breadcrumb-item/vue.js +6 -2
- package/button/index.js +5 -1
- package/calendar/index.js +2 -86
- package/calendar-bar/index.js +20 -6
- package/calendar-view/index.js +10 -12
- package/calendar-view/vue.js +17 -4
- package/cascader/index.js +80 -34
- package/cascader/vue.js +49 -19
- package/cascader-menu/index.js +7 -7
- package/cascader-menu/vue.js +2 -3
- package/cascader-mobile/index.js +37 -24
- package/cascader-mobile/vue.js +7 -1
- package/cascader-node/index.js +13 -1
- package/cascader-node/vue.js +15 -4
- package/cascader-panel/index.js +1 -1
- package/cascader-select/column-index.js +150 -0
- package/cascader-select/column.js +120 -0
- package/cascader-select/index.js +29 -165
- package/cascader-select/usePicker.js +251 -0
- package/cascader-select/useTouch.js +65 -0
- package/cascader-select/vue.js +35 -47
- package/cascader-view/index.js +1 -1
- package/cell/vue.js +2 -1
- package/chart-bar/index.js +2 -3
- package/chart-core/deps/constants.js +43 -43
- package/chart-core/index.js +1 -1
- package/chart-gauge/index.js +2 -2
- package/chart-heatmap/index.js +17 -10
- package/chart-line/index.js +8 -9
- package/chart-tree/index.js +2 -2
- package/chart-waterfall/index.js +4 -6
- package/checkbox/index.js +17 -0
- package/checkbox/vue.js +16 -7
- package/checkbox-group/vue.js +2 -0
- package/col/vue.js +3 -2
- package/collapse/index.js +3 -3
- package/color-select-panel/vue.js +0 -7
- package/column-list-item/index.js +17 -1
- package/column-list-item/vue.js +8 -3
- package/common/date.js +2 -0
- package/common/deps/dom.js +19 -4
- package/common/deps/popper.js +48 -5
- package/common/deps/touch-emulator.js +4 -1
- package/common/deps/tree-model/node.js +1 -1
- package/common/deps/tree-model/tree-store.js +2 -13
- package/common/deps/useRect.js +25 -0
- package/common/deps/vue-popper.js +22 -10
- package/common/index.js +1 -1
- package/common/runtime.js +1 -1
- package/common/type.js +2 -1
- package/common/validate/rules/enum.js +1 -1
- package/common/validate/rules/pattern.js +2 -2
- package/common/validate/rules/range.js +8 -5
- package/common/validate/rules/required.js +1 -1
- package/common/validate/rules/type.js +5 -5
- package/common/validate/rules/whitespace.js +1 -1
- package/common/validate/util.js +15 -16
- package/common/validate/validations/integer.js +1 -1
- package/common/validate/validations/method.js +1 -1
- package/container/index.js +17 -1
- package/container/vue.js +12 -3
- package/currency/index.js +74 -7
- package/currency/vue.js +21 -5
- package/date-panel/index.js +16 -0
- package/date-panel/vue.js +8 -2
- package/date-picker-mobile/index.js +12 -0
- package/date-picker-mobile/vue.js +7 -1
- package/date-range/vue.js +12 -5
- package/date-table/index.js +5 -0
- package/date-table/vue.js +3 -1
- package/dialog-box/index.js +17 -6
- package/dialog-select/index.js +6 -3
- package/dialog-select/vue.js +8 -4
- package/drawer/index.js +26 -5
- package/drawer/vue.js +13 -7
- package/dropdown/index.js +7 -7
- package/dropdown/vue.js +6 -2
- package/dropdown-item/index.js +9 -1
- package/dropdown-item/mf.js +6 -10
- package/dropdown-item/vue.js +21 -8
- package/dropdown-menu/index.js +20 -7
- package/dropdown-menu/vue.js +4 -3
- package/exception/index.js +2 -7
- package/exception/vue.js +7 -10
- package/fall-menu/index.js +5 -1
- package/fall-menu/vue.js +13 -2
- package/file-upload/index.js +47 -12
- package/file-upload/vue.js +38 -8
- package/filter-box/index.js +1 -0
- package/floating-button/index.js +62 -16
- package/floating-button/vue.js +27 -9
- package/flowchart/index.js +134 -25
- package/flowchart/node.js +13 -4
- package/flowchart/vue.js +16 -4
- package/form/vue.js +3 -1
- package/form-item/index.js +4 -4
- package/form-item/vue.js +3 -1
- package/fullscreen/index.js +5 -5
- package/fullscreen/vue.js +3 -3
- package/grid/utils/common.js +10 -5
- package/grid/utils/dom.js +7 -1
- package/image/index.js +6 -0
- package/image/vue.js +6 -3
- package/image-viewer/index.js +62 -51
- package/image-viewer/vue.js +17 -5
- package/input/index.js +89 -22
- package/input/vue.js +52 -21
- package/ip-address/index.js +61 -19
- package/ip-address/vue.js +22 -4
- package/label/index.js +56 -0
- package/label/vue.js +26 -0
- package/link/vue.js +3 -1
- package/loading/vue.js +8 -2
- package/logout/index.js +1 -1
- package/mask/index.js +13 -0
- package/mask/vue.js +18 -0
- package/mind-map/index.js +47 -0
- package/mind-map/vue.js +53 -0
- package/multi-select/index.js +150 -10
- package/multi-select/vue.js +46 -11
- package/multi-select-item/index.js +17 -0
- package/multi-select-item/vue.js +31 -0
- package/numeric/index.js +51 -9
- package/numeric/vue.js +44 -14
- package/option/index.js +12 -5
- package/option/vue.js +15 -7
- package/option-group/index.js +3 -3
- package/package.json +1 -1
- package/pager/index.js +372 -0
- package/pager/vue.js +125 -2
- package/picker/index.js +253 -48
- package/picker/mb.js +42 -0
- package/picker/vue.js +70 -17
- package/picker-column/index.js +1 -1
- package/pop-upload/index.js +0 -2
- package/pop-upload/vue.js +3 -4
- package/popconfirm/index.js +3 -6
- package/popconfirm/vue.js +1 -1
- package/popeditor/index.js +55 -24
- package/popeditor/vue.js +15 -11
- package/popover/index.js +4 -4
- package/popover/vue.js +6 -6
- package/popup/index.js +3 -3
- package/popup/vue.js +5 -5
- package/pull-refresh/index.js +57 -65
- package/pull-refresh/vue.js +23 -7
- package/radio/index.js +0 -17
- package/radio/vue.js +4 -10
- package/rate/index.js +1 -1
- package/rate/vue.js +0 -2
- package/record/index.js +4 -1
- package/{rich-text-edtior → rich-text-editor}/index.js +2 -2
- package/{rich-text-edtior → rich-text-editor}/vue.js +2 -5
- package/scrollbar/index.js +11 -11
- package/scrollbar/vue-bar.js +3 -3
- package/scrollbar/vue.js +5 -5
- package/search/index.js +1 -1
- package/search/vue.js +3 -1
- package/select/index.js +176 -110
- package/select/vue.js +105 -20
- package/select-dropdown/index.js +62 -4
- package/select-dropdown/vue.js +85 -8
- package/select-view/index.js +3 -1
- package/signature/index.js +241 -0
- package/signature/vue.js +88 -0
- package/skeleton/index.js +14 -0
- package/skeleton/vue.js +15 -0
- package/skeleton-item/vue.js +15 -0
- package/slider/index.js +27 -7
- package/slider/vue.js +26 -7
- package/split/index.js +1 -1
- package/split/vue.js +4 -6
- package/standard-list-item/index.js +15 -1
- package/standard-list-item/vue.js +6 -5
- package/steps/index.js +25 -2
- package/steps/slide-bar.js +8 -1
- package/steps/vue.js +15 -3
- package/tab-item-mf/vue.js +14 -8
- package/tab-nav/index.js +9 -4
- package/tab-nav/vue.js +6 -2
- package/tabbar/vue.js +9 -3
- package/tabbar-item/vue.js +3 -2
- package/tabs/index.js +1 -1
- package/tabs/vue.js +1 -0
- package/tabs-mf/index.js +20 -6
- package/tabs-mf/vue-nav.js +26 -11
- package/tabs-mf/vue.js +7 -7
- package/tag/index.js +1 -1
- package/tag/vue.js +5 -1
- package/tag-group/index.js +2 -1
- package/tall-storage/index.js +4 -5
- package/time/index.js +4 -1
- package/time/vue.js +1 -1
- package/time-line/vue.js +1 -1
- package/time-picker-mobile/index.js +24 -5
- package/time-picker-mobile/vue.js +17 -7
- package/time-range/index.js +2 -0
- package/time-spinner/index.js +0 -3
- package/time-spinner/vue.js +2 -3
- package/timeline-item/vue.js +1 -1
- package/tooltip/index.js +1 -2
- package/tooltip/vue.js +3 -3
- package/transfer/index.js +20 -22
- package/transfer/vue.js +1 -6
- package/transfer-panel/vue.js +3 -5
- package/tree/index.js +21 -4
- package/tree/vue.js +10 -8
- package/tree-menu/index.js +27 -3
- package/tree-menu/vue.js +27 -14
- package/tree-node/index.js +12 -10
- package/tree-node/vue.js +6 -5
- package/types/action-menu.type.d.ts +5 -0
- package/types/action-sheet.type.d.ts +118 -1
- package/types/alert.type.d.ts +16 -1
- package/types/amount.type.d.ts +168 -1
- package/types/area.type.d.ts +134 -1
- package/types/async-flowchart.type.d.ts +72 -0
- package/types/autocomplete.type.d.ts +199 -1
- package/types/badge.type.d.ts +3 -1
- package/types/breadcrumb-item.type.d.ts +2 -0
- package/types/breadcrumb.type.d.ts +2 -0
- package/types/button.type.d.ts +5 -0
- package/types/cascader-menu.type.d.ts +3 -4
- package/types/cascader-node.type.d.ts +5 -2
- package/types/cascader-panel.type-2bd03be3.d.ts +241 -0
- package/types/cascader-panel.type.d.ts +3 -241
- package/types/cascader.type.d.ts +327 -1
- package/types/checkbox.type.d.ts +9 -0
- package/types/collapse.type.d.ts +19 -2
- package/types/date-picker.type.d.ts +34 -1
- package/types/dialog-box.type.d.ts +5 -1
- package/types/drawer.type.d.ts +132 -1
- package/types/{dropdown-item.type-bf83e929.d.ts → dropdown-item.type-8475a549.d.ts} +8 -14
- package/types/dropdown-item.type.d.ts +1 -1
- package/types/dropdown-menu.type.d.ts +1 -1
- package/types/dropdown.type.d.ts +2 -5
- package/types/fall-menu.type.d.ts +94 -1
- package/types/file-upload.type.d.ts +1 -1
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-d0fd42f3.d.ts → form.type-d88482e4.d.ts} +3 -0
- package/types/form.type.d.ts +1 -1
- package/types/input.type.d.ts +23 -9
- package/types/ip-address.type.d.ts +160 -1
- package/types/label.type.d.ts +81 -0
- package/types/link.type.d.ts +6 -3
- package/types/mind-map.type.d.ts +20 -0
- package/types/modal.type.d.ts +4 -2
- package/types/numeric.type.d.ts +36 -9
- package/types/pager.type.d.ts +171 -1
- package/types/picker.type.d.ts +14 -0
- package/types/popconfirm.type.d.ts +85 -1
- package/types/popeditor.type.d.ts +4 -0
- package/types/popover.type.d.ts +3 -3
- package/types/radio.type.d.ts +0 -4
- package/types/rate.type.d.ts +236 -1
- package/types/search.type.d.ts +88 -1
- package/types/shared.type.d.ts +1 -1
- package/types/skeleton-item.type.d.ts +38 -0
- package/types/skeleton.type.d.ts +45 -0
- package/types/slider.type.d.ts +8 -1
- package/types/steps.type.d.ts +14 -3
- package/types/tab-item.type.d.ts +0 -1
- package/types/tab-nav.type.d.ts +6 -1
- package/types/tabs.type.d.ts +5 -0
- package/types/tag-group.type.d.ts +64 -1
- package/types/tag.type.d.ts +12 -0
- package/types/tooltip.type.d.ts +1 -1
- package/types/transfer.type.d.ts +183 -1
- package/types/tree-menu.type.d.ts +210 -1
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-343e8c11.d.ts → upload-list.type-1078fba2.d.ts} +27 -6
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/wizard.type.d.ts +1 -0
- package/upload/index.js +59 -29
- package/upload/vue.js +6 -4
- package/upload-list/index.js +14 -14
- package/upload-list/vue.js +5 -2
- package/user/index.js +5 -4
- package/user-head/index.js +1 -1
- package/wheel/index.js +3 -0
- package/wizard/vue.js +4 -2
package/types/pager.type.d.ts
CHANGED
|
@@ -1,2 +1,172 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const pagerProps: {
|
|
5
|
+
accurateJumper: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: () => boolean;
|
|
8
|
+
};
|
|
9
|
+
appendToBody: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: () => boolean;
|
|
12
|
+
};
|
|
13
|
+
currentPage: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: () => number;
|
|
16
|
+
};
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: () => boolean;
|
|
20
|
+
};
|
|
21
|
+
hideOnSinglePage: BooleanConstructor;
|
|
22
|
+
isBeforePageChange: BooleanConstructor;
|
|
23
|
+
layout: StringConstructor;
|
|
24
|
+
mode: StringConstructor;
|
|
25
|
+
nextText: StringConstructor;
|
|
26
|
+
pageCount: NumberConstructor;
|
|
27
|
+
pageSize: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: () => number;
|
|
30
|
+
};
|
|
31
|
+
pageSizes: {
|
|
32
|
+
type: PropType<number[]>;
|
|
33
|
+
default: () => number[];
|
|
34
|
+
};
|
|
35
|
+
pagerCount: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
validator: (value: any) => boolean;
|
|
38
|
+
default: () => number;
|
|
39
|
+
};
|
|
40
|
+
popperAppendToBody: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: () => boolean;
|
|
43
|
+
};
|
|
44
|
+
showTotalLoading: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: () => boolean;
|
|
47
|
+
};
|
|
48
|
+
customTotal: {
|
|
49
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
50
|
+
default: () => boolean;
|
|
51
|
+
};
|
|
52
|
+
popperClass: StringConstructor;
|
|
53
|
+
prevText: StringConstructor;
|
|
54
|
+
total: NumberConstructor;
|
|
55
|
+
size: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
align: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
validator: (value: any) => boolean;
|
|
62
|
+
};
|
|
63
|
+
totalFixedLeft: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
tiny_mode: StringConstructor;
|
|
68
|
+
tiny_mode_root: BooleanConstructor;
|
|
69
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
70
|
+
tiny_renderless: FunctionConstructor;
|
|
71
|
+
tiny_theme: StringConstructor;
|
|
72
|
+
tiny_chart_theme: ObjectConstructor;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
declare const computedShowPager: ({ props, state }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => boolean;
|
|
76
|
+
declare const computedInternalLayout: ({ props }: Pick<IPagerRenderlessParams, 'props'>) => () => string[];
|
|
77
|
+
declare const computedTotalText: ({ props, t }: Pick<IPagerRenderlessParams, 'props' | 't'>) => () => string;
|
|
78
|
+
declare const computedInternalPageCount: ({ props, state }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => number | null;
|
|
79
|
+
declare const handleJumperFocus: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
|
|
80
|
+
declare const watchInternalCurrentPage: ({ state, emit }: Pick<IPagerRenderlessParams, 'state' | 'emit'>) => (currentPage: number) => void;
|
|
81
|
+
declare const watchPageSizes: ({ state, props }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => (newVal: number[]) => void;
|
|
82
|
+
declare const watchCurrentPage: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (curPage: number) => void;
|
|
83
|
+
declare const watchInternalPageCount: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (pageCount: number | null) => void;
|
|
84
|
+
declare const watchPageSize: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (pageSize: number) => void;
|
|
85
|
+
declare const watchTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (total: number | undefined) => void;
|
|
86
|
+
declare const watchShowSizes: ({ nextTick, vm }: Pick<IPagerRenderlessParams, 'nextTick' | 'vm'>) => (newVal: boolean) => void;
|
|
87
|
+
declare const handleSizeChange: ({ props, state, api, emit, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit' | 'vm'>) => (val: number) => void;
|
|
88
|
+
declare const handleJumperInput: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
|
|
89
|
+
declare const handleJumperChange: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
|
|
90
|
+
declare const handleJumperClick: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
|
|
91
|
+
declare const isValueNumber: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => boolean;
|
|
92
|
+
declare const parseValueNumber: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => void;
|
|
93
|
+
declare const handleSizeShowPopover: ({ state, props }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => void;
|
|
94
|
+
declare const handleSizeHidePopover: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => void;
|
|
95
|
+
declare const canJumperGo: ({ props, state, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'vm'>) => () => boolean;
|
|
96
|
+
declare const beforeSizeChangeHandler: ({ state, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state'>) => (params: any) => void;
|
|
97
|
+
declare const beforePagerChangeHandler: ({ state, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state'>) => (params: any) => void;
|
|
98
|
+
declare const copyEmit: ({ emit }: Pick<IPagerRenderlessParams, 'emit'>) => (...args: any[]) => void;
|
|
99
|
+
declare const beforeChangeHandler: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (val?: number) => boolean;
|
|
100
|
+
declare const handleCurrentChange: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (val: number) => void;
|
|
101
|
+
declare const prev: ({ state, props, api, emit }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit'>) => () => void;
|
|
102
|
+
declare const next: ({ props, state, api, emit }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit'>) => () => void;
|
|
103
|
+
declare const buildBeforePageChangeParam: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (param: any) => any;
|
|
104
|
+
declare const getValidCurrentPage: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: string | number) => any;
|
|
105
|
+
declare const emitChange: ({ state, nextTick, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state' | 'nextTick'>) => () => void;
|
|
106
|
+
declare const setTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: number) => void;
|
|
107
|
+
declare const clickSizes: () => (e: Event) => void;
|
|
108
|
+
|
|
109
|
+
type IPagerProps = ExtractPropTypes<typeof pagerProps>;
|
|
110
|
+
interface IPagerState {
|
|
111
|
+
showPager: boolean;
|
|
112
|
+
showSizes: boolean;
|
|
113
|
+
internalCurrentPage: number;
|
|
114
|
+
internalPageSize: number;
|
|
115
|
+
lastEmittedPage: number;
|
|
116
|
+
userChangePageSize: boolean;
|
|
117
|
+
internalTotal: number | undefined;
|
|
118
|
+
jumperValue: string;
|
|
119
|
+
jumperBackup: string;
|
|
120
|
+
internalLayout: string[];
|
|
121
|
+
totalText: string;
|
|
122
|
+
internalPageCount: number | null;
|
|
123
|
+
showJumperSufix: boolean;
|
|
124
|
+
align: 'left' | 'center' | 'right';
|
|
125
|
+
totalI18n: 'total' | 'totals';
|
|
126
|
+
totalFixedLeft: boolean;
|
|
127
|
+
}
|
|
128
|
+
interface IPagerApi {
|
|
129
|
+
state: IPagerState;
|
|
130
|
+
t: IPagerRenderlessParamUtils['t'];
|
|
131
|
+
computedShowPager: ReturnType<typeof computedShowPager>;
|
|
132
|
+
computedInternalLayout: ReturnType<typeof computedInternalLayout>;
|
|
133
|
+
computedTotalText: ReturnType<typeof computedTotalText>;
|
|
134
|
+
computedInternalPageCount: ReturnType<typeof computedInternalPageCount>;
|
|
135
|
+
handleJumperFocus: ReturnType<typeof handleJumperFocus>;
|
|
136
|
+
handleSizeChange: ReturnType<typeof handleSizeChange>;
|
|
137
|
+
handleJumperInput: ReturnType<typeof handleJumperInput>;
|
|
138
|
+
handleJumperChange: ReturnType<typeof handleJumperChange>;
|
|
139
|
+
handleJumperClick: ReturnType<typeof handleJumperClick>;
|
|
140
|
+
isValueNumber: ReturnType<typeof isValueNumber>;
|
|
141
|
+
parseValueNumber: ReturnType<typeof parseValueNumber>;
|
|
142
|
+
handleSizeShowPopover: ReturnType<typeof handleSizeShowPopover>;
|
|
143
|
+
handleSizeHidePopover: ReturnType<typeof handleSizeHidePopover>;
|
|
144
|
+
canJumperGo: ReturnType<typeof canJumperGo>;
|
|
145
|
+
beforeSizeChangeHandler: ReturnType<typeof beforeSizeChangeHandler>;
|
|
146
|
+
beforePagerChangeHandler: ReturnType<typeof beforePagerChangeHandler>;
|
|
147
|
+
copyEmit: ReturnType<typeof copyEmit>;
|
|
148
|
+
beforeChangeHandler: ReturnType<typeof beforeChangeHandler>;
|
|
149
|
+
handleCurrentChange: ReturnType<typeof handleCurrentChange>;
|
|
150
|
+
prev: ReturnType<typeof prev>;
|
|
151
|
+
next: ReturnType<typeof next>;
|
|
152
|
+
buildBeforePageChangeParam: ReturnType<typeof buildBeforePageChangeParam>;
|
|
153
|
+
getValidCurrentPage: ReturnType<typeof getValidCurrentPage>;
|
|
154
|
+
emitChange: ReturnType<typeof emitChange>;
|
|
155
|
+
setTotal: ReturnType<typeof setTotal>;
|
|
156
|
+
clickSizes: ReturnType<typeof clickSizes>;
|
|
157
|
+
watchInternalCurrentPage: ReturnType<typeof watchInternalCurrentPage>;
|
|
158
|
+
watchPageSizes: ReturnType<typeof watchPageSizes>;
|
|
159
|
+
watchCurrentPage: ReturnType<typeof watchCurrentPage>;
|
|
160
|
+
watchInternalPageCount: ReturnType<typeof watchInternalPageCount>;
|
|
161
|
+
watchPageSize: ReturnType<typeof watchPageSize>;
|
|
162
|
+
watchTotal: ReturnType<typeof watchTotal>;
|
|
163
|
+
watchShowSizes: ReturnType<typeof watchShowSizes>;
|
|
164
|
+
}
|
|
165
|
+
type IPagerRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
166
|
+
api: IPagerApi;
|
|
167
|
+
state: IPagerState;
|
|
168
|
+
props: IPagerProps;
|
|
169
|
+
};
|
|
170
|
+
type IPagerRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
|
|
171
|
+
|
|
172
|
+
export { IPagerApi, IPagerProps, IPagerRenderlessParamUtils, IPagerRenderlessParams, IPagerState };
|
package/types/picker.type.d.ts
CHANGED
|
@@ -43,6 +43,10 @@ declare const pickerProps: {
|
|
|
43
43
|
type: BooleanConstructor;
|
|
44
44
|
default: boolean;
|
|
45
45
|
};
|
|
46
|
+
changeOnConfirm: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
46
50
|
disabled: BooleanConstructor;
|
|
47
51
|
id: {
|
|
48
52
|
default: string;
|
|
@@ -88,6 +92,7 @@ declare const pickerProps: {
|
|
|
88
92
|
};
|
|
89
93
|
dbTimezone: NumberConstructor;
|
|
90
94
|
timezone: NumberConstructor;
|
|
95
|
+
timezoneOffset: NumberConstructor;
|
|
91
96
|
iso8601: BooleanConstructor;
|
|
92
97
|
displayOnly: {
|
|
93
98
|
type: BooleanConstructor;
|
|
@@ -106,6 +111,15 @@ declare const pickerProps: {
|
|
|
106
111
|
default: boolean;
|
|
107
112
|
};
|
|
108
113
|
formatWeeks: FunctionConstructor;
|
|
114
|
+
autoFormat: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
title: StringConstructor;
|
|
119
|
+
blank: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
109
123
|
};
|
|
110
124
|
|
|
111
125
|
type IPickerProps = ExtractPropTypes<typeof pickerProps>;
|
|
@@ -1,2 +1,86 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const $constants: {
|
|
5
|
+
PC_PREFIXCLS: string;
|
|
6
|
+
MOBILE_PREFIXCLS: string;
|
|
7
|
+
Mode: string;
|
|
8
|
+
prefixcls(mode: any): any;
|
|
9
|
+
ICON_MAP: {
|
|
10
|
+
success: string;
|
|
11
|
+
error: string;
|
|
12
|
+
info: string;
|
|
13
|
+
warning: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare const popConfirmProps: {
|
|
17
|
+
_constants: {
|
|
18
|
+
type: ObjectConstructor;
|
|
19
|
+
default: () => {
|
|
20
|
+
PC_PREFIXCLS: string;
|
|
21
|
+
MOBILE_PREFIXCLS: string;
|
|
22
|
+
Mode: string;
|
|
23
|
+
prefixcls(mode: any): any;
|
|
24
|
+
ICON_MAP: {
|
|
25
|
+
success: string;
|
|
26
|
+
error: string;
|
|
27
|
+
info: string;
|
|
28
|
+
warning: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
message: StringConstructor;
|
|
33
|
+
customClass: StringConstructor;
|
|
34
|
+
trigger: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
validator: (value: string) => boolean;
|
|
38
|
+
};
|
|
39
|
+
cancelButton: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
title: StringConstructor;
|
|
44
|
+
placement: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
49
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
50
|
+
reference: {};
|
|
51
|
+
events: ObjectConstructor;
|
|
52
|
+
tiny_mode: StringConstructor;
|
|
53
|
+
tiny_mode_root: BooleanConstructor;
|
|
54
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
55
|
+
tiny_renderless: FunctionConstructor;
|
|
56
|
+
tiny_theme: StringConstructor;
|
|
57
|
+
tiny_chart_theme: ObjectConstructor;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
declare const hide: ({ state, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit'>) => () => void;
|
|
61
|
+
declare const show: ({ state, props, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'props' | 'emit'>) => (trigger: any) => void;
|
|
62
|
+
declare const confirm: ({ state, api }: Pick<IPopconfirmRenderlessParams, 'state' | 'api'>) => () => void;
|
|
63
|
+
declare const handleEmit: ({ state, emit, vm }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit' | 'vm'>) => (type: any) => void;
|
|
64
|
+
|
|
65
|
+
interface IPopconfirmState {
|
|
66
|
+
isLock: boolean;
|
|
67
|
+
showPopover: boolean;
|
|
68
|
+
getIcon: string;
|
|
69
|
+
}
|
|
70
|
+
type IPopconfirmProps = ExtractPropTypes<typeof popConfirmProps>;
|
|
71
|
+
type IPopconfirmConstants = typeof $constants;
|
|
72
|
+
type IPopconfirmRenderlessParams = ISharedRenderlessFunctionParams<IPopconfirmConstants> & {
|
|
73
|
+
api: IPopconfirmApi;
|
|
74
|
+
state: IPopconfirmState;
|
|
75
|
+
props: IPopconfirmProps;
|
|
76
|
+
};
|
|
77
|
+
interface IPopconfirmApi {
|
|
78
|
+
state: IPopconfirmState;
|
|
79
|
+
show: ReturnType<typeof show>;
|
|
80
|
+
hide: ReturnType<typeof hide>;
|
|
81
|
+
confirm: ReturnType<typeof confirm>;
|
|
82
|
+
handleEmit: ReturnType<typeof handleEmit>;
|
|
83
|
+
}
|
|
84
|
+
type IPopconfirmRenderlessParamUtils = ISharedRenderlessParamUtils<IPopconfirmConstants>;
|
|
85
|
+
|
|
86
|
+
export { IPopconfirmApi, IPopconfirmConstants, IPopconfirmProps, IPopconfirmRenderlessParamUtils, IPopconfirmRenderlessParams, IPopconfirmState };
|
|
@@ -212,6 +212,10 @@ declare const popeditorProps: {
|
|
|
212
212
|
type: BooleanConstructor;
|
|
213
213
|
default: boolean;
|
|
214
214
|
};
|
|
215
|
+
radioChangeClose: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
215
219
|
tiny_mode: StringConstructor;
|
|
216
220
|
tiny_mode_root: BooleanConstructor;
|
|
217
221
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
package/types/popover.type.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare const popoverProps: {
|
|
|
92
92
|
*
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
|
-
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "
|
|
95
|
+
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "props" | "nextTick" | "api" | "mode"> & {
|
|
96
96
|
constants: {
|
|
97
97
|
IDPREFIX: string;
|
|
98
98
|
};
|
|
@@ -106,7 +106,7 @@ declare const handleBlur: ({ props, state }: Pick<IPopoverRenderlessParams, 'sta
|
|
|
106
106
|
declare const handleMouseEnter: ({ props, state }: Pick<IPopoverRenderlessParams, 'state' | 'props'>) => () => void;
|
|
107
107
|
declare const handleKeydown: ({ api, props }: Pick<IPopoverRenderlessParams, 'api' | 'props'>) => (event: KeyboardEvent) => void;
|
|
108
108
|
declare const handleMouseLeave: ({ props, state }: Pick<IPopoverRenderlessParams, 'state' | 'props'>) => () => void;
|
|
109
|
-
declare const handleDocumentClick: ({
|
|
109
|
+
declare const handleDocumentClick: ({ vm, state }: Pick<IPopoverRenderlessParams, 'state' | 'vm'>) => (event: MouseEvent) => void;
|
|
110
110
|
declare const handleAfterEnter: (emit: IPopoverRenderlessParams['emit']) => () => void;
|
|
111
111
|
declare const handleAfterLeave: (emit: IPopoverRenderlessParams['emit']) => () => void;
|
|
112
112
|
/** mobile.vue中,给listData项的点击事件 */
|
|
@@ -116,7 +116,7 @@ declare const destroyed: ({ state, api }: Pick<IPopoverRenderlessParams, 'state'
|
|
|
116
116
|
declare const computedTooltipId: (constants: {
|
|
117
117
|
IDPREFIX: string;
|
|
118
118
|
}) => () => string;
|
|
119
|
-
declare const wrapMounted: ({ api, props,
|
|
119
|
+
declare const wrapMounted: ({ api, props, vm, state }: Pick<IPopoverRenderlessParams, 'state' | 'api' | 'props' | 'vm'>) => () => void;
|
|
120
120
|
declare const observeCallback: ({ state, vm }: Pick<IPopoverRenderlessParams, 'state' | 'vm'>) => (mutationsList: any) => void;
|
|
121
121
|
|
|
122
122
|
type IPopoverProps = ExtractPropTypes<typeof popoverProps>;
|
package/types/radio.type.d.ts
CHANGED
|
@@ -61,8 +61,6 @@ declare const isDisplayOnly: ({ props }: Pick<IRadioRenderlessParams, 'props'>)
|
|
|
61
61
|
declare const tabIndex: ({ props, state }: Pick<IRadioRenderlessParams, 'props' | 'state'>) => () => number;
|
|
62
62
|
declare const getModel: ({ props, state }: Pick<IRadioRenderlessParams, 'props' | 'state'>) => () => IRadioState['model'];
|
|
63
63
|
declare const setModel: ({ constants, dispatch, emit, props, vm, state }: Pick<IRadioRenderlessParams, 'constants' | 'dispatch' | 'emit' | 'props' | 'vm' | 'state'>) => (val: IRadioState['model']) => void;
|
|
64
|
-
declare const dispatchDisplayedValue: ({ state, dispatch, api }: Pick<IRadioRenderlessParams, 'state' | 'dispatch' | 'api'>) => () => void;
|
|
65
|
-
declare const getDisplayedValue: ({ vm, state, props }: Pick<IRadioRenderlessParams, 'vm' | 'props' | 'state'>) => () => string;
|
|
66
64
|
|
|
67
65
|
type IRadioProps = ExtractPropTypes<typeof radioProps>;
|
|
68
66
|
type IRadioConstants = typeof $constants;
|
|
@@ -95,8 +93,6 @@ interface IRadioApi {
|
|
|
95
93
|
tabIndex: ReturnType<typeof tabIndex>;
|
|
96
94
|
getModel: ReturnType<typeof getModel>;
|
|
97
95
|
setModel: ReturnType<typeof setModel>;
|
|
98
|
-
dispatchDisplayedValue: ReturnType<typeof dispatchDisplayedValue>;
|
|
99
|
-
getDisplayedValue: ReturnType<typeof getDisplayedValue>;
|
|
100
96
|
}
|
|
101
97
|
type IRadioRenderlessParamUtils = ISharedRenderlessParamUtils<IRadioConstants>;
|
|
102
98
|
|
package/types/rate.type.d.ts
CHANGED
|
@@ -1,2 +1,237 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const $constants: {
|
|
5
|
+
RATENODECLS: string;
|
|
6
|
+
ICON_PREFIXCLS: string;
|
|
7
|
+
DECIMALCLS: string;
|
|
8
|
+
};
|
|
9
|
+
declare const rateProps: {
|
|
10
|
+
_constants: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
RATENODECLS: string;
|
|
14
|
+
ICON_PREFIXCLS: string;
|
|
15
|
+
DECIMALCLS: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
allowHalf: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
colors: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
default: () => string[];
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
disabledVoidColor: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
disabledVoidIconClass: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
highThreshold: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
iconClasses: {
|
|
43
|
+
type: ArrayConstructor;
|
|
44
|
+
default: () => string[];
|
|
45
|
+
};
|
|
46
|
+
lowThreshold: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
max: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
modelValue: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
radio: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
scoreTemplate: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
showScore: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
showText: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
space: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
textColor: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
textOnBottom: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
texts: {
|
|
91
|
+
type: ArrayConstructor;
|
|
92
|
+
default: () => any[];
|
|
93
|
+
};
|
|
94
|
+
voidColor: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
voidIconClass: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
tiny_mode: StringConstructor;
|
|
103
|
+
tiny_mode_root: BooleanConstructor;
|
|
104
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
105
|
+
tiny_renderless: FunctionConstructor;
|
|
106
|
+
tiny_theme: StringConstructor;
|
|
107
|
+
tiny_chart_theme: ObjectConstructor;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
112
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
113
|
+
*
|
|
114
|
+
* Use of this source code is governed by an MIT-style license.
|
|
115
|
+
*
|
|
116
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
117
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
118
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
declare const computedActiveColor: (props: IRateProps) => (state: IRateState) => string;
|
|
123
|
+
declare const computedActiveClass: (props: IRateProps) => (state: IRateState) => string;
|
|
124
|
+
declare const getTextStyle: ({ props, state }: {
|
|
125
|
+
props: any;
|
|
126
|
+
state: any;
|
|
127
|
+
}) => () => {
|
|
128
|
+
color: any;
|
|
129
|
+
};
|
|
130
|
+
declare const handelKey: ({ emit, props, state }: {
|
|
131
|
+
emit: any;
|
|
132
|
+
props: any;
|
|
133
|
+
state: any;
|
|
134
|
+
}) => (event: any) => void;
|
|
135
|
+
declare const selectValue: ({ emit, props, state }: {
|
|
136
|
+
emit: any;
|
|
137
|
+
props: any;
|
|
138
|
+
state: any;
|
|
139
|
+
}) => (value: any) => void;
|
|
140
|
+
declare const setCurrentValue: ({ constants: { RATENODECLS, DECIMALCLS, ICON_PREFIXCLS }, props, state, parent, api }: {
|
|
141
|
+
constants: {
|
|
142
|
+
RATENODECLS: any;
|
|
143
|
+
DECIMALCLS: any;
|
|
144
|
+
ICON_PREFIXCLS: any;
|
|
145
|
+
};
|
|
146
|
+
props: any;
|
|
147
|
+
state: any;
|
|
148
|
+
parent: any;
|
|
149
|
+
api: any;
|
|
150
|
+
}) => ({ event, item }: {
|
|
151
|
+
event: any;
|
|
152
|
+
item: any;
|
|
153
|
+
}) => void;
|
|
154
|
+
declare const resetCurrentValue: ({ props, state }: {
|
|
155
|
+
props: any;
|
|
156
|
+
state: any;
|
|
157
|
+
}) => () => void;
|
|
158
|
+
declare const showDecimalIcon: ({ props, state }: {
|
|
159
|
+
props: any;
|
|
160
|
+
state: any;
|
|
161
|
+
}) => (item: any) => any;
|
|
162
|
+
declare const getIconStyle: ({ api, props, state }: {
|
|
163
|
+
api: any;
|
|
164
|
+
props: any;
|
|
165
|
+
state: any;
|
|
166
|
+
}) => (item: any) => {
|
|
167
|
+
fill: any;
|
|
168
|
+
'font-size': any;
|
|
169
|
+
};
|
|
170
|
+
declare const computedText: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string;
|
|
171
|
+
declare const computedDecimalStyle: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => {
|
|
172
|
+
fill: string;
|
|
173
|
+
width: string;
|
|
174
|
+
clip: string;
|
|
175
|
+
clipPath: string;
|
|
176
|
+
fontSize: string;
|
|
177
|
+
};
|
|
178
|
+
declare const computedClasses: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string[];
|
|
179
|
+
declare const computedClassMap: (props: IRateProps) => {
|
|
180
|
+
lowClass: unknown;
|
|
181
|
+
mediumClass: unknown;
|
|
182
|
+
highClass: unknown;
|
|
183
|
+
voidClass: string;
|
|
184
|
+
disabledVoidClass: string;
|
|
185
|
+
};
|
|
186
|
+
declare const computedColorMap: (props: IRateProps) => {
|
|
187
|
+
lowColor: unknown;
|
|
188
|
+
mediumColor: unknown;
|
|
189
|
+
highColor: unknown;
|
|
190
|
+
voidColor: string;
|
|
191
|
+
disabledVoidColor: string;
|
|
192
|
+
};
|
|
193
|
+
declare const computedVoidClass: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string;
|
|
194
|
+
|
|
195
|
+
interface IRateState {
|
|
196
|
+
pointerAtLeftHalf: boolean;
|
|
197
|
+
colorMap: ReturnType<typeof computedColorMap>;
|
|
198
|
+
classMap: ReturnType<typeof computedClassMap>;
|
|
199
|
+
text: ReturnType<typeof computedText>;
|
|
200
|
+
activeClass: string;
|
|
201
|
+
activeColor: string;
|
|
202
|
+
classes: ReturnType<typeof computedClasses>;
|
|
203
|
+
decimalIconClass: string;
|
|
204
|
+
voidClass: ReturnType<typeof computedVoidClass>;
|
|
205
|
+
decimalStyle: ReturnType<typeof computedDecimalStyle>;
|
|
206
|
+
hoverIndex: number;
|
|
207
|
+
currentValue: number;
|
|
208
|
+
mouseTarget: null | HTMLElement;
|
|
209
|
+
}
|
|
210
|
+
type IRateProps = ExtractPropTypes<typeof rateProps>;
|
|
211
|
+
type IRateConstants = typeof $constants;
|
|
212
|
+
type IRateRenderlessParams = ISharedRenderlessFunctionParams<IRateConstants> & {
|
|
213
|
+
api: IRateApi;
|
|
214
|
+
state: IRateState;
|
|
215
|
+
props: IRateProps;
|
|
216
|
+
};
|
|
217
|
+
interface IRateApi {
|
|
218
|
+
state: IRateState;
|
|
219
|
+
computedText: typeof computedText;
|
|
220
|
+
computedClasses: typeof computedClasses;
|
|
221
|
+
computedClassMap: typeof computedClassMap;
|
|
222
|
+
computedColorMap: typeof computedColorMap;
|
|
223
|
+
computedVoidClass: typeof computedVoidClass;
|
|
224
|
+
computedDecimalStyle: typeof computedDecimalStyle;
|
|
225
|
+
getTextStyle: ReturnType<typeof getTextStyle>;
|
|
226
|
+
handelKey: ReturnType<typeof handelKey>;
|
|
227
|
+
computedActiveColor: ReturnType<typeof computedActiveColor>;
|
|
228
|
+
computedActiveClass: ReturnType<typeof computedActiveClass>;
|
|
229
|
+
showDecimalIcon: ReturnType<typeof showDecimalIcon>;
|
|
230
|
+
getIconStyle: ReturnType<typeof getIconStyle>;
|
|
231
|
+
selectValue: ReturnType<typeof selectValue>;
|
|
232
|
+
resetCurrentValue: ReturnType<typeof resetCurrentValue>;
|
|
233
|
+
setCurrentValue: ReturnType<typeof setCurrentValue>;
|
|
234
|
+
}
|
|
235
|
+
type IRateRenderlessParamUtils = ISharedRenderlessParamUtils<IRateConstants>;
|
|
236
|
+
|
|
237
|
+
export { IRateApi, IRateConstants, IRateProps, IRateRenderlessParamUtils, IRateRenderlessParams, IRateState };
|