@opentiny/vue-renderless 3.13.2 → 3.14.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/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 +18 -4
- package/calendar-view/index.js +5 -1
- package/calendar-view/vue.js +16 -3
- package/card-group/vue.js +4 -2
- package/cascader/index.js +86 -34
- package/cascader/vue.js +61 -20
- package/cascader-menu/index.js +7 -7
- package/cascader-menu/vue.js +2 -3
- package/cascader-mobile/index.js +36 -23
- package/cascader-mobile/vue.js +6 -0
- 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/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 +18 -1
- package/checkbox/vue.js +15 -7
- package/checkbox-group/vue.js +1 -0
- package/col/vue.js +1 -1
- 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/bigInt.js +2 -2
- package/common/date.js +7 -5
- package/common/deps/clickoutside.js +6 -2
- package/common/deps/date-util.js +4 -2
- package/common/deps/dom.js +19 -4
- package/common/deps/popper.js +44 -11
- package/common/deps/resize-event.js +1 -0
- package/common/deps/touch-emulator.js +4 -1
- package/common/deps/tree-model/node.js +2 -2
- package/common/deps/tree-model/tree-store.js +2 -13
- package/common/deps/useRect.js +25 -0
- package/common/deps/vue-popper.js +38 -20
- package/common/index.js +2 -2
- package/common/runtime.js +1 -1
- package/common/string.js +2 -2
- 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/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 +15 -6
- package/date-table/index.js +35 -53
- package/date-table/vue.js +4 -2
- package/dialog-box/index.js +46 -14
- package/dialog-box/vue.js +30 -7
- package/dialog-select/index.js +6 -3
- package/dialog-select/vue.js +8 -4
- package/drawer/index.js +27 -5
- package/drawer/vue.js +14 -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 +20 -7
- 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 +68 -18
- package/file-upload/vue.js +38 -8
- package/filter-box/index.js +1 -0
- package/float-button/index.js +42 -0
- package/float-button/vue.js +101 -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 +8 -0
- package/form-item/index.js +5 -5
- package/form-item/vue.js +3 -1
- package/fullscreen/index.js +5 -5
- package/fullscreen/vue.js +3 -3
- package/grid/plugins/export.js +5 -2
- package/grid/utils/column.js +1 -0
- package/grid/utils/dom.js +7 -1
- package/image/index.js +6 -1
- package/image/vue.js +6 -3
- package/image-viewer/index.js +62 -51
- package/image-viewer/vue.js +17 -5
- package/input/index.js +81 -20
- package/input/vue.js +44 -18
- package/ip-address/index.js +61 -19
- package/ip-address/vue.js +22 -4
- package/link/vue.js +3 -1
- package/loading/index.js +2 -2
- package/loading/vue.js +8 -2
- package/logout/index.js +1 -1
- package/menu/index.js +15 -2
- package/menu/vue.js +22 -17
- package/mind-map/index.js +47 -0
- package/mind-map/vue.js +53 -0
- package/modal/index.js +44 -4
- package/modal/vue.js +18 -4
- package/multi-select/index.js +186 -11
- package/multi-select/vue.js +60 -15
- package/multi-select-item/index.js +23 -0
- package/multi-select-item/vue.js +31 -0
- package/numeric/index.js +48 -12
- package/numeric/vue.js +44 -19
- package/option/index.js +27 -9
- package/option/vue.js +37 -21
- package/option-group/index.js +3 -3
- package/package.json +1 -1
- package/pager/index.js +18 -4
- package/pager/vue.js +16 -5
- package/picker/index.js +290 -77
- package/picker/mb.js +42 -0
- package/picker/vue.js +76 -20
- package/picker-column/index.js +1 -1
- package/pop-upload/vue.js +3 -0
- package/popconfirm/index.js +3 -6
- package/popconfirm/vue.js +1 -1
- package/popeditor/index.js +73 -34
- 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 +13 -13
- package/pull-refresh/vue.js +5 -4
- 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/clipboard.js +54 -0
- package/rich-text/index.js +192 -0
- package/rich-text/module/file-upload.js +107 -0
- package/rich-text/module/image-drop.js +63 -0
- package/rich-text/module/image-upload.js +89 -0
- package/rich-text/options.js +141 -0
- package/rich-text/table-module.js +382 -0
- package/rich-text/vue.js +102 -0
- 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 +9 -9
- package/search/vue.js +8 -6
- package/select/index.js +442 -393
- package/select/vue.js +278 -164
- package/select-dropdown/index.js +61 -3
- package/select-dropdown/vue.js +85 -8
- package/select-view/index.js +3 -1
- package/selected-box/index.js +2 -0
- package/selected-box/vue.js +6 -3
- 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 +70 -17
- package/slider/vue.js +16 -7
- package/split/index.js +5 -3
- 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 +30 -5
- package/tab-nav/vue.js +16 -4
- package/tabbar/vue.js +9 -3
- package/tabbar-item/vue.js +3 -2
- package/tabs/index.js +16 -4
- package/tabs/vue.js +2 -1
- package/tabs-mf/index.js +20 -6
- package/tabs-mf/vue-nav.js +26 -11
- package/tabs-mf/vue.js +7 -7
- package/tabs-mf/wheel.js +1 -0
- package/tag/index.js +1 -1
- package/tag-group/index.js +2 -1
- package/time/index.js +5 -2
- package/time/vue.js +1 -1
- package/time-line/index.js +3 -3
- package/time-line/vue.js +2 -2
- package/time-picker-mobile/index.js +24 -5
- package/time-picker-mobile/vue.js +17 -7
- package/time-range/index.js +2 -0
- package/timeline-item/vue.js +1 -1
- package/tooltip/index.js +6 -3
- package/tooltip/vue.js +4 -4
- 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 +29 -3
- package/tree-menu/vue.js +28 -15
- package/tree-node/index.js +18 -18
- package/tree-node/vue.js +6 -5
- package/types/action-sheet.type.d.ts +118 -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-group.type.d.ts +3 -3
- package/types/button.type.d.ts +4 -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 +329 -1
- package/types/checkbox.type.d.ts +6 -0
- package/types/collapse.type.d.ts +19 -2
- package/types/date-picker.type.d.ts +38 -1
- package/types/dialog-box.type.d.ts +13 -3
- package/types/drawer.type.d.ts +133 -1
- package/types/{dropdown-item.type-8ea6c633.d.ts → dropdown-item.type-8475a549.d.ts} +7 -13
- package/types/dropdown-item.type.d.ts +1 -1
- package/types/dropdown-menu.type.d.ts +1 -1
- package/types/dropdown.type.d.ts +1 -5
- package/types/fall-menu.type.d.ts +94 -1
- package/types/file-upload.type.d.ts +1 -1
- package/types/float-button.type.d.ts +123 -0
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-d0fd42f3.d.ts → form.type-a2dc0099.d.ts} +4 -1
- package/types/form.type.d.ts +1 -1
- package/types/{index-e0250f63.d.ts → index-b012f687.d.ts} +9 -0
- package/types/input.type.d.ts +2 -6
- package/types/ip-address.type.d.ts +160 -1
- package/types/link.type.d.ts +6 -3
- package/types/loading.type.d.ts +7 -0
- package/types/mind-map.type.d.ts +20 -0
- package/types/modal.type.d.ts +29 -2
- package/types/numeric.type.d.ts +41 -10
- package/types/pager.type.d.ts +12 -0
- package/types/picker.type.d.ts +18 -0
- package/types/popconfirm.type.d.ts +86 -1
- package/types/popeditor.type.d.ts +4 -0
- package/types/popover.type.d.ts +3 -3
- package/types/progress.type.d.ts +2 -0
- 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 +49 -10
- package/types/steps.type.d.ts +14 -3
- package/types/tab-bar.type.d.ts +1 -1
- package/types/tab-nav.type.d.ts +7 -2
- package/types/tabs.type.d.ts +9 -1
- package/types/tag-group.type.d.ts +64 -1
- package/types/{time-line.type-d7daa669.d.ts → time-line.type-b155cb4f.d.ts} +12 -0
- package/types/time-line.type.d.ts +1 -1
- package/types/timeline-item.type.d.ts +1 -1
- package/types/tooltip.type.d.ts +2 -2
- package/types/transfer.type.d.ts +185 -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-6d6e3d0e.d.ts} +35 -8
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/user-head.type.d.ts +146 -1
- package/types/wizard.type.d.ts +1 -0
- package/upload/index.js +64 -34
- package/upload/vue.js +9 -5
- package/upload-dragger/index.js +22 -20
- package/upload-list/index.js +24 -18
- package/upload-list/vue.js +9 -4
- package/user/index.js +35 -26
- package/user/vue.js +1 -1
- package/user-head/index.js +3 -3
- package/watermark/index.js +11 -0
- package/wheel/index.js +3 -0
- package/wizard/vue.js +4 -2
- package/common/deps/modal-queue.js +0 -6
- package/common/deps/requestAnimationFrame.js +0 -25
package/types/numeric.type.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const $constants: {
|
|
|
34
34
|
change: string;
|
|
35
35
|
};
|
|
36
36
|
COMPONENT_NAME: string;
|
|
37
|
+
FILTER_OPTION: string[];
|
|
37
38
|
};
|
|
38
39
|
declare const numericProps: {
|
|
39
40
|
_constants: {
|
|
@@ -50,6 +51,7 @@ declare const numericProps: {
|
|
|
50
51
|
change: string;
|
|
51
52
|
};
|
|
52
53
|
COMPONENT_NAME: string;
|
|
54
|
+
FILTER_OPTION: string[];
|
|
53
55
|
};
|
|
54
56
|
};
|
|
55
57
|
allowEmpty: {
|
|
@@ -140,6 +142,28 @@ declare const numericProps: {
|
|
|
140
142
|
type: BooleanConstructor;
|
|
141
143
|
default: boolean;
|
|
142
144
|
};
|
|
145
|
+
title: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
tip: StringConstructor;
|
|
150
|
+
shape: StringConstructor;
|
|
151
|
+
clearable: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
filter: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
blank: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
changeCompat: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
143
167
|
tiny_mode: StringConstructor;
|
|
144
168
|
tiny_mode_root: BooleanConstructor;
|
|
145
169
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -165,7 +189,7 @@ declare const initService: (service: INumericRenderlessParamUtils['service']) =>
|
|
|
165
189
|
getNumberFormat: Function;
|
|
166
190
|
};
|
|
167
191
|
declare const getDecimal: (props: INumericProps) => (value: number) => BigIntDecimal;
|
|
168
|
-
declare const watchValue: ({ api, state, nextTick }: Pick<INumericRenderlessParams, 'api' | 'state' | 'nextTick'>) => (value: number) => void;
|
|
192
|
+
declare const watchValue: ({ api, props, state, nextTick }: Pick<INumericRenderlessParams, 'api' | 'state' | 'nextTick' | 'props'>) => (value: number) => void;
|
|
169
193
|
declare const toPrecision: (state: INumericState) => ({ num, precision }: {
|
|
170
194
|
num: number;
|
|
171
195
|
precision: number;
|
|
@@ -182,28 +206,32 @@ declare const internalDecrease: ({ api, state }: Pick<INumericRenderlessParams,
|
|
|
182
206
|
declare const increase: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
|
|
183
207
|
declare const decrease: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
|
|
184
208
|
declare const handleBlur: ({ constants, dispatch, emit, props, state, api }: Pick<INumericRenderlessParams, 'constants' | 'dispatch' | 'emit' | 'props' | 'state' | 'api'>) => (event: FocusEvent) => void;
|
|
185
|
-
declare const handleFocus: ({ emit, state, props, api,
|
|
186
|
-
declare const focus: (
|
|
187
|
-
declare const setCurrentValue: ({ api, constants, dispatch, emit, props, state }: Pick<INumericRenderlessParams, 'api' | 'constants' | 'dispatch' | 'emit' | 'props' | 'state'>) => (newVal: number) => void;
|
|
209
|
+
declare const handleFocus: ({ emit, state, props, api, vm }: Pick<INumericRenderlessParams, 'emit' | 'state' | 'props' | 'api' | 'vm'>) => (event: FocusEvent) => void;
|
|
210
|
+
declare const focus: (vm: INumericRenderlessParams['vm']) => () => void;
|
|
211
|
+
declare const setCurrentValue: ({ api, constants, dispatch, emit, props, state }: Pick<INumericRenderlessParams, 'api' | 'constants' | 'dispatch' | 'emit' | 'props' | 'state'>) => (newVal: number, emitChangeFlag?: boolean) => void;
|
|
188
212
|
declare const handleInput: ({ state, api, emit, props }: Pick<INumericRenderlessParams, 'state' | 'api' | 'emit' | 'props'>) => (event: InputEvent) => void;
|
|
189
213
|
declare const handleInputChange: ({ api, state, props }: Pick<INumericRenderlessParams, 'api' | 'state' | 'props'>) => (event: Event) => void;
|
|
190
|
-
declare const select: (
|
|
214
|
+
declare const select: (vm: INumericRenderlessParams['vm']) => () => any;
|
|
191
215
|
declare const mounted: ({ constants, parent, props, state }: Pick<INumericRenderlessParams, 'constants' | 'parent' | 'props' | 'state'>) => () => void;
|
|
192
216
|
declare const unmounted: ({ parent, state }: Pick<INumericRenderlessParams, 'parent' | 'state'>) => () => void;
|
|
193
217
|
declare const updated: ({ constants, parent, state }: Pick<INumericRenderlessParams, 'constants' | 'parent' | 'state'>) => () => void;
|
|
194
|
-
declare const displayValue: ({ props, state }: Pick<INumericRenderlessParams, 'props' | 'state'>) => () => string | number;
|
|
218
|
+
declare const displayValue: ({ props, state, api }: Pick<INumericRenderlessParams, 'props' | 'state' | 'api'>) => () => string | number;
|
|
195
219
|
declare const getNumPecision: ({ api, props }: Pick<INumericRenderlessParams, 'api' | 'props'>) => () => number;
|
|
196
220
|
declare const mouseEvent: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => (event: MouseEvent) => void | boolean;
|
|
197
221
|
declare const dispatchDisplayedValue: ({ state, api, dispatch }: Pick<INumericRenderlessParams, 'state' | 'api' | 'dispatch'>) => () => void;
|
|
198
222
|
declare const getDisplayedValue: ({ state, props }: Pick<INumericRenderlessParams, 'state' | 'props'>) => () => string;
|
|
199
223
|
declare const getDisplayOnlyText: ({ parent, state, props }: Pick<INumericRenderlessParams, 'parent' | 'state' | 'props'>) => () => string | number;
|
|
224
|
+
declare const filterValue: ({ state }: Pick<INumericRenderlessParams, 'state'>) => () => number | string;
|
|
225
|
+
declare const handleClear: ({ state, emit }: Pick<INumericRenderlessParams, 'state' | 'emit'>) => () => void;
|
|
226
|
+
declare const handleChange: ({ state, emit }: Pick<INumericRenderlessParams, 'state' | 'emit'>) => () => void;
|
|
200
227
|
|
|
201
228
|
type INumericProps = ExtractPropTypes<typeof numericProps>;
|
|
202
229
|
type INumericConstants = typeof $constants;
|
|
203
230
|
interface INumericState {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
231
|
+
radioVal: string;
|
|
232
|
+
currentValue: number | string;
|
|
233
|
+
userInput: number | string;
|
|
234
|
+
lastInput: number | string;
|
|
207
235
|
inputStatus: boolean;
|
|
208
236
|
decimal: BigIntDecimal;
|
|
209
237
|
strictInput: boolean;
|
|
@@ -244,6 +272,9 @@ interface INumericApi {
|
|
|
244
272
|
dispatchDisplayedValue: ReturnType<typeof dispatchDisplayedValue>;
|
|
245
273
|
getDisplayedValue: ReturnType<typeof getDisplayedValue>;
|
|
246
274
|
getDisplayOnlyText: ReturnType<typeof getDisplayOnlyText>;
|
|
275
|
+
filterValue: ReturnType<typeof filterValue>;
|
|
276
|
+
handleClear: ReturnType<typeof handleClear>;
|
|
277
|
+
handleChange: ReturnType<typeof handleChange>;
|
|
247
278
|
}
|
|
248
279
|
type INumericRenderlessParams = ISharedRenderlessFunctionParams<INumericConstants> & {
|
|
249
280
|
api: INumericApi;
|
|
@@ -259,7 +290,7 @@ interface INumericUnitPrecision {
|
|
|
259
290
|
rounding?: string;
|
|
260
291
|
zeroize: boolean;
|
|
261
292
|
}
|
|
262
|
-
interface INumericInitStateParams extends Pick<INumericRenderlessParams, 'reactive' | 'computed' | 'props' | 'api' | 'parent'> {
|
|
293
|
+
interface INumericInitStateParams extends Pick<INumericRenderlessParams, 'constants' | 'reactive' | 'computed' | 'props' | 'api' | 'parent'> {
|
|
263
294
|
$service: ReturnType<typeof initService>;
|
|
264
295
|
}
|
|
265
296
|
interface INumericGetEmitValueParams {
|
package/types/pager.type.d.ts
CHANGED
|
@@ -60,6 +60,10 @@ declare const pagerProps: {
|
|
|
60
60
|
type: StringConstructor;
|
|
61
61
|
validator: (value: any) => boolean;
|
|
62
62
|
};
|
|
63
|
+
totalFixedLeft: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
63
67
|
tiny_mode: StringConstructor;
|
|
64
68
|
tiny_mode_root: BooleanConstructor;
|
|
65
69
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -79,6 +83,7 @@ declare const watchCurrentPage: ({ state, api }: Pick<IPagerRenderlessParams, 'a
|
|
|
79
83
|
declare const watchInternalPageCount: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (pageCount: number | null) => void;
|
|
80
84
|
declare const watchPageSize: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (pageSize: number) => void;
|
|
81
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;
|
|
82
87
|
declare const handleSizeChange: ({ props, state, api, emit, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit' | 'vm'>) => (val: number) => void;
|
|
83
88
|
declare const handleJumperInput: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
|
|
84
89
|
declare const handleJumperChange: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
|
|
@@ -99,6 +104,7 @@ declare const buildBeforePageChangeParam: ({ state }: Pick<IPagerRenderlessParam
|
|
|
99
104
|
declare const getValidCurrentPage: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: string | number) => any;
|
|
100
105
|
declare const emitChange: ({ state, nextTick, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state' | 'nextTick'>) => () => void;
|
|
101
106
|
declare const setTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: number) => void;
|
|
107
|
+
declare const clickSizes: () => (e: Event) => void;
|
|
102
108
|
|
|
103
109
|
type IPagerProps = ExtractPropTypes<typeof pagerProps>;
|
|
104
110
|
interface IPagerState {
|
|
@@ -114,6 +120,10 @@ interface IPagerState {
|
|
|
114
120
|
internalLayout: string[];
|
|
115
121
|
totalText: string;
|
|
116
122
|
internalPageCount: number | null;
|
|
123
|
+
showJumperSufix: boolean;
|
|
124
|
+
align: 'left' | 'center' | 'right';
|
|
125
|
+
totalI18n: 'total' | 'totals';
|
|
126
|
+
totalFixedLeft: boolean;
|
|
117
127
|
}
|
|
118
128
|
interface IPagerApi {
|
|
119
129
|
state: IPagerState;
|
|
@@ -143,12 +153,14 @@ interface IPagerApi {
|
|
|
143
153
|
getValidCurrentPage: ReturnType<typeof getValidCurrentPage>;
|
|
144
154
|
emitChange: ReturnType<typeof emitChange>;
|
|
145
155
|
setTotal: ReturnType<typeof setTotal>;
|
|
156
|
+
clickSizes: ReturnType<typeof clickSizes>;
|
|
146
157
|
watchInternalCurrentPage: ReturnType<typeof watchInternalCurrentPage>;
|
|
147
158
|
watchPageSizes: ReturnType<typeof watchPageSizes>;
|
|
148
159
|
watchCurrentPage: ReturnType<typeof watchCurrentPage>;
|
|
149
160
|
watchInternalPageCount: ReturnType<typeof watchInternalPageCount>;
|
|
150
161
|
watchPageSize: ReturnType<typeof watchPageSize>;
|
|
151
162
|
watchTotal: ReturnType<typeof watchTotal>;
|
|
163
|
+
watchShowSizes: ReturnType<typeof watchShowSizes>;
|
|
152
164
|
}
|
|
153
165
|
type IPagerRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
154
166
|
api: IPagerApi;
|
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,19 @@ 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
|
+
};
|
|
123
|
+
changeCompat: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
109
127
|
};
|
|
110
128
|
|
|
111
129
|
type IPickerProps = ExtractPropTypes<typeof pickerProps>;
|
|
@@ -1,2 +1,87 @@
|
|
|
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
|
+
popperOptions: ObjectConstructor;
|
|
35
|
+
trigger: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
validator: (value: string) => boolean;
|
|
39
|
+
};
|
|
40
|
+
cancelButton: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
title: StringConstructor;
|
|
45
|
+
placement: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
50
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
51
|
+
reference: {};
|
|
52
|
+
events: ObjectConstructor;
|
|
53
|
+
tiny_mode: StringConstructor;
|
|
54
|
+
tiny_mode_root: BooleanConstructor;
|
|
55
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
56
|
+
tiny_renderless: FunctionConstructor;
|
|
57
|
+
tiny_theme: StringConstructor;
|
|
58
|
+
tiny_chart_theme: ObjectConstructor;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
declare const hide: ({ state, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit'>) => () => void;
|
|
62
|
+
declare const show: ({ state, props, emit }: Pick<IPopconfirmRenderlessParams, 'state' | 'props' | 'emit'>) => (trigger: any) => void;
|
|
63
|
+
declare const confirm: ({ state, api }: Pick<IPopconfirmRenderlessParams, 'state' | 'api'>) => () => void;
|
|
64
|
+
declare const handleEmit: ({ state, emit, vm }: Pick<IPopconfirmRenderlessParams, 'state' | 'emit' | 'vm'>) => (type: any) => void;
|
|
65
|
+
|
|
66
|
+
interface IPopconfirmState {
|
|
67
|
+
isLock: boolean;
|
|
68
|
+
showPopover: boolean;
|
|
69
|
+
getIcon: string;
|
|
70
|
+
}
|
|
71
|
+
type IPopconfirmProps = ExtractPropTypes<typeof popConfirmProps>;
|
|
72
|
+
type IPopconfirmConstants = typeof $constants;
|
|
73
|
+
type IPopconfirmRenderlessParams = ISharedRenderlessFunctionParams<IPopconfirmConstants> & {
|
|
74
|
+
api: IPopconfirmApi;
|
|
75
|
+
state: IPopconfirmState;
|
|
76
|
+
props: IPopconfirmProps;
|
|
77
|
+
};
|
|
78
|
+
interface IPopconfirmApi {
|
|
79
|
+
state: IPopconfirmState;
|
|
80
|
+
show: ReturnType<typeof show>;
|
|
81
|
+
hide: ReturnType<typeof hide>;
|
|
82
|
+
confirm: ReturnType<typeof confirm>;
|
|
83
|
+
handleEmit: ReturnType<typeof handleEmit>;
|
|
84
|
+
}
|
|
85
|
+
type IPopconfirmRenderlessParamUtils = ISharedRenderlessParamUtils<IPopconfirmConstants>;
|
|
86
|
+
|
|
87
|
+
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/progress.type.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const $constants: {
|
|
|
18
18
|
LARGE: number;
|
|
19
19
|
};
|
|
20
20
|
PROGRESS_STATUS: {
|
|
21
|
+
DEFAULT: string;
|
|
21
22
|
SUCCESS: string;
|
|
22
23
|
EXCEPTION: string;
|
|
23
24
|
WARNING: string;
|
|
@@ -64,6 +65,7 @@ declare const progressProps: {
|
|
|
64
65
|
LARGE: number;
|
|
65
66
|
};
|
|
66
67
|
PROGRESS_STATUS: {
|
|
68
|
+
DEFAULT: string;
|
|
67
69
|
SUCCESS: string;
|
|
68
70
|
EXCEPTION: string;
|
|
69
71
|
WARNING: string;
|
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 };
|