@opentiny/vue-renderless 3.12.0 → 3.13.0-alpha.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/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/index.js +7 -2
- 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/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 +185 -113
- 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 +33 -0
- 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
|
@@ -1,2 +1,95 @@
|
|
|
1
|
+
import { ExtractPropTypes, Ref } from 'vue';
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+
interface IData {
|
|
4
|
+
children: IData[];
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
declare const fallMenuProps: {
|
|
8
|
+
data: {
|
|
9
|
+
type: {
|
|
10
|
+
(arrayLength: number): IData[];
|
|
11
|
+
(...items: IData[]): IData[];
|
|
12
|
+
new (arrayLength: number): IData[];
|
|
13
|
+
new (...items: IData[]): IData[];
|
|
14
|
+
isArray(arg: any): arg is any[];
|
|
15
|
+
readonly prototype: any[];
|
|
16
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
17
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
18
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
19
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
20
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
21
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
22
|
+
};
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
tiny_mode: StringConstructor;
|
|
26
|
+
tiny_mode_root: BooleanConstructor;
|
|
27
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
28
|
+
tiny_renderless: FunctionConstructor;
|
|
29
|
+
tiny_theme: StringConstructor;
|
|
30
|
+
tiny_chart_theme: ObjectConstructor;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
declare const arrowClick: (state: IFallMenuState) => (opt: any) => void;
|
|
34
|
+
declare const overContent: (state: IFallMenuState) => (on: any) => void;
|
|
35
|
+
declare const mouseover: ({ fall, props, state }: {
|
|
36
|
+
fall: any;
|
|
37
|
+
props: IFallMenuProps;
|
|
38
|
+
state: IFallMenuState;
|
|
39
|
+
}) => (index: any) => void;
|
|
40
|
+
declare const mouseout: (state: IFallMenuState) => () => void;
|
|
41
|
+
declare const computePx: ({ props, refs, state }: {
|
|
42
|
+
props: IFallMenuProps;
|
|
43
|
+
refs: any;
|
|
44
|
+
state: IFallMenuState;
|
|
45
|
+
}) => () => void;
|
|
46
|
+
declare const reRender: ({ api, state, timeout }: {
|
|
47
|
+
api: IFallMenuApi;
|
|
48
|
+
state: IFallMenuState;
|
|
49
|
+
timeout?: NodeJS.Timeout | undefined;
|
|
50
|
+
}) => () => void;
|
|
51
|
+
declare const mounted: ({ api }: {
|
|
52
|
+
api: any;
|
|
53
|
+
}) => () => void;
|
|
54
|
+
declare const beforeDestroy: (api: any) => () => void;
|
|
55
|
+
declare const computeLeft: ({ state }: {
|
|
56
|
+
state: any;
|
|
57
|
+
}) => () => any;
|
|
58
|
+
declare const computeData: ({ props }: {
|
|
59
|
+
props: IFallMenuProps;
|
|
60
|
+
}) => () => IData[];
|
|
61
|
+
|
|
62
|
+
interface IPagerData {
|
|
63
|
+
data: IFallMenuProps['data'];
|
|
64
|
+
offset: string[];
|
|
65
|
+
index: number[];
|
|
66
|
+
size?: number;
|
|
67
|
+
}
|
|
68
|
+
interface IFallMenuState {
|
|
69
|
+
pager: number;
|
|
70
|
+
level2data: IFallMenuProps['data'];
|
|
71
|
+
activeNode: null;
|
|
72
|
+
isActive: boolean;
|
|
73
|
+
pagerData: IPagerData;
|
|
74
|
+
left: any;
|
|
75
|
+
data: IFallMenuProps['data'];
|
|
76
|
+
}
|
|
77
|
+
type IFallMenuProps = ExtractPropTypes<typeof fallMenuProps> & {
|
|
78
|
+
value: boolean;
|
|
79
|
+
};
|
|
80
|
+
interface IFallMenuApi {
|
|
81
|
+
fall: Ref<null>;
|
|
82
|
+
state: IFallMenuState;
|
|
83
|
+
computePx: ReturnType<typeof computePx>;
|
|
84
|
+
mounted: ReturnType<typeof mounted>;
|
|
85
|
+
computeLeft: ReturnType<typeof computeLeft>;
|
|
86
|
+
beforeDestroy: ReturnType<typeof beforeDestroy>;
|
|
87
|
+
computeData: ReturnType<typeof computeData>;
|
|
88
|
+
arrowClick: ReturnType<typeof arrowClick>;
|
|
89
|
+
overContent: ReturnType<typeof overContent>;
|
|
90
|
+
mouseout: ReturnType<typeof mouseout>;
|
|
91
|
+
mouseover: ReturnType<typeof mouseover>;
|
|
92
|
+
reRender: ReturnType<typeof reRender>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { IFallMenuApi, IFallMenuProps, IFallMenuState, IPagerData };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-
|
|
2
|
+
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-1078fba2.js';
|
|
3
3
|
import './shared.type.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-
|
|
2
|
+
export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-d88482e4.js';
|
|
3
3
|
import './shared.type.js';
|
|
@@ -279,6 +279,7 @@ interface IFormItemState {
|
|
|
279
279
|
validateIcon: object | null;
|
|
280
280
|
isErrorInline: boolean;
|
|
281
281
|
isErrorBlock: boolean;
|
|
282
|
+
tooltipType: string;
|
|
282
283
|
}
|
|
283
284
|
type IFormItemConstants = typeof $constants;
|
|
284
285
|
type IFormItemProps = ExtractPropTypes<typeof formItemProps>;
|
|
@@ -373,6 +374,8 @@ interface IFormState {
|
|
|
373
374
|
validateIcon: object | null;
|
|
374
375
|
isErrorInline: boolean;
|
|
375
376
|
isErrorBlock: boolean;
|
|
377
|
+
labelWidth: string;
|
|
378
|
+
tooltipType: string;
|
|
376
379
|
}
|
|
377
380
|
type IFormProps = ExtractPropTypes<typeof formProps>;
|
|
378
381
|
type IFormRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
package/types/form.type.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-
|
|
2
|
+
export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-d88482e4.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/input.type.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ declare const inputProps: {
|
|
|
63
63
|
type: StringConstructor;
|
|
64
64
|
default: string;
|
|
65
65
|
};
|
|
66
|
+
memorySpace: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
66
70
|
vertical: {
|
|
67
71
|
type: BooleanConstructor;
|
|
68
72
|
default: boolean;
|
|
@@ -114,7 +118,7 @@ declare const inputProps: {
|
|
|
114
118
|
type: BooleanConstructor;
|
|
115
119
|
default: boolean;
|
|
116
120
|
};
|
|
117
|
-
|
|
121
|
+
tips: StringConstructor;
|
|
118
122
|
counter: {
|
|
119
123
|
type: BooleanConstructor;
|
|
120
124
|
default: boolean;
|
|
@@ -171,6 +175,13 @@ declare const inputProps: {
|
|
|
171
175
|
type: BooleanConstructor;
|
|
172
176
|
default: boolean;
|
|
173
177
|
};
|
|
178
|
+
textAlign: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
width: {
|
|
183
|
+
type: PropType<string | number | null>;
|
|
184
|
+
};
|
|
174
185
|
tiny_mode: StringConstructor;
|
|
175
186
|
tiny_mode_root: BooleanConstructor;
|
|
176
187
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -209,22 +220,27 @@ declare const _default: ({ api, props, reactive, toRefs }: {
|
|
|
209
220
|
*
|
|
210
221
|
*/
|
|
211
222
|
|
|
223
|
+
declare const inputStyle: ({ props }: {
|
|
224
|
+
props: any;
|
|
225
|
+
}) => () => {
|
|
226
|
+
textAlign: any;
|
|
227
|
+
};
|
|
212
228
|
declare const calculateNodeStyling: () => (targetElement: HTMLElement) => {
|
|
213
229
|
contextStyle: string;
|
|
214
230
|
paddingSize: number;
|
|
215
231
|
borderSize: number;
|
|
216
232
|
boxSizing: string;
|
|
217
233
|
};
|
|
218
|
-
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state }: Pick<IInputRenderlessParams, "state" | "
|
|
234
|
+
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state }: Pick<IInputRenderlessParams, "state" | "props" | "api"> & {
|
|
219
235
|
hiddenTextarea: HTMLTextAreaElement | null;
|
|
220
236
|
}) => (targetElement: HTMLTextAreaElement, minRows?: number, maxRows?: null) => {
|
|
221
237
|
minHeight?: string | undefined;
|
|
222
238
|
height?: string | undefined;
|
|
223
239
|
};
|
|
224
|
-
declare const getInput: (
|
|
240
|
+
declare const getInput: (vm: IInputRenderlessParamUtils['vm']) => () => HTMLTextAreaElement | HTMLInputElement;
|
|
225
241
|
declare const focus: (api: IInputApi) => () => void;
|
|
226
242
|
declare const handleInput: ({ api, emit, nextTick, state }: Pick<IInputRenderlessParams, 'api' | 'emit' | 'nextTick' | 'state'>) => (event: Event) => void;
|
|
227
|
-
declare const resizeTextarea: ({ api, parent,
|
|
243
|
+
declare const resizeTextarea: ({ api, parent, vm, state, props }: Pick<IInputRenderlessParams, 'api' | 'parent' | 'vm' | 'state' | 'props'>) => () => void;
|
|
228
244
|
declare const setNativeInputValue: ({ api, state }: Pick<IInputRenderlessParams, 'api' | 'state'>) => () => void;
|
|
229
245
|
declare const calcIconOffset: ({ CLASS_PREFIX, parent }: Pick<IInputRenderlessParams, "parent"> & {
|
|
230
246
|
CLASS_PREFIX: IInputClassPrefixConstants;
|
|
@@ -232,8 +248,6 @@ declare const calcIconOffset: ({ CLASS_PREFIX, parent }: Pick<IInputRenderlessPa
|
|
|
232
248
|
declare const updateIconOffset: (api: IInputApi) => () => void;
|
|
233
249
|
declare const watchFormSelect: ({ emit, props, state }: Pick<IInputRenderlessParams, 'emit' | 'props' | 'state'>) => (value: string | number | undefined) => void;
|
|
234
250
|
declare const hiddenPassword: ({ state, props }: Pick<IInputRenderlessParams, 'state' | 'props'>) => () => string;
|
|
235
|
-
declare const dispatchDisplayedValue: ({ state, props, dispatch, api }: Pick<IInputRenderlessParams, 'state' | 'props' | 'dispatch' | 'api'>) => () => void;
|
|
236
|
-
declare const getDisplayedValue: ({ state, props }: Pick<IInputRenderlessParams, 'state' | 'props'>) => () => string;
|
|
237
251
|
|
|
238
252
|
interface IInputState {
|
|
239
253
|
mode: string;
|
|
@@ -243,7 +257,8 @@ interface IInputState {
|
|
|
243
257
|
passwordVisible: boolean;
|
|
244
258
|
boxVisibility: boolean;
|
|
245
259
|
textareaCalcStyle: object;
|
|
246
|
-
|
|
260
|
+
checkedLabel: string;
|
|
261
|
+
width: string;
|
|
247
262
|
sheetvalue: string | number | undefined;
|
|
248
263
|
inputSize: ComputedRef<string>;
|
|
249
264
|
showClear: ComputedRef<boolean>;
|
|
@@ -274,7 +289,6 @@ interface IInputApi extends Pick<IInputRenderlessParamUtils, 'dispatch'> {
|
|
|
274
289
|
setNativeInputValue: ReturnType<typeof setNativeInputValue>;
|
|
275
290
|
resizeTextarea: ReturnType<typeof resizeTextarea>;
|
|
276
291
|
updateIconOffset: ReturnType<typeof updateIconOffset>;
|
|
277
|
-
dispatchDisplayedValue: ReturnType<typeof dispatchDisplayedValue>;
|
|
278
292
|
hiddenPassword: ReturnType<typeof hiddenPassword>;
|
|
279
293
|
watchFormSelect: ReturnType<typeof watchFormSelect>;
|
|
280
294
|
getInput: ReturnType<typeof getInput>;
|
|
@@ -283,7 +297,7 @@ interface IInputApi extends Pick<IInputRenderlessParamUtils, 'dispatch'> {
|
|
|
283
297
|
handleInput: ReturnType<typeof handleInput>;
|
|
284
298
|
calcIconOffset: ReturnType<typeof calcIconOffset>;
|
|
285
299
|
focus: ReturnType<typeof focus>;
|
|
286
|
-
|
|
300
|
+
inputStyle: ReturnType<typeof inputStyle>;
|
|
287
301
|
}
|
|
288
302
|
type IInputRenderlessParams = ISharedRenderlessFunctionParams<IInputConstants> & {
|
|
289
303
|
state: IInputState;
|
|
@@ -1,2 +1,161 @@
|
|
|
1
|
+
import { ComputedRef, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ITinyVm, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const ipAddressProps: {
|
|
5
|
+
size: StringConstructor;
|
|
6
|
+
/**
|
|
7
|
+
* @property {String} value - 显示值
|
|
8
|
+
*/
|
|
9
|
+
modelValue: StringConstructor;
|
|
10
|
+
/**
|
|
11
|
+
* @property {String} [type = IPv4] - IP地址输入组件类型('IPv4', 'IPv6',)可选择
|
|
12
|
+
*/
|
|
13
|
+
type: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
validator: (value: string) => boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @property {Boolean} readonly - 只读
|
|
20
|
+
*/
|
|
21
|
+
readonly: BooleanConstructor;
|
|
22
|
+
/**
|
|
23
|
+
* @property {Boolean} disabled - 禁用
|
|
24
|
+
*/
|
|
25
|
+
disabled: BooleanConstructor;
|
|
26
|
+
/**
|
|
27
|
+
* @property {String, Object} [delimiter = .] - 组件IP段显示的分隔符改为图标
|
|
28
|
+
*/
|
|
29
|
+
delimiter: {
|
|
30
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
tiny_mode: StringConstructor; /**
|
|
34
|
+
* @property {Boolean} readonly - 只读
|
|
35
|
+
*/
|
|
36
|
+
tiny_mode_root: BooleanConstructor;
|
|
37
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
38
|
+
/**
|
|
39
|
+
* @property {Boolean} disabled - 禁用
|
|
40
|
+
*/
|
|
41
|
+
tiny_renderless: FunctionConstructor;
|
|
42
|
+
tiny_theme: StringConstructor;
|
|
43
|
+
tiny_chart_theme: ObjectConstructor;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
declare const isIP6: (str: string) => boolean;
|
|
47
|
+
declare const isIP4: (str: string) => boolean;
|
|
48
|
+
declare const ipValidator: ({ props, api }: {
|
|
49
|
+
props: IIpAddressProps;
|
|
50
|
+
api: IIpAddressApi;
|
|
51
|
+
}) => (value: string) => boolean;
|
|
52
|
+
declare const getCursorPosition: (el: any) => number;
|
|
53
|
+
declare const getValue: ({ api, props, state }: {
|
|
54
|
+
api: IIpAddressApi;
|
|
55
|
+
props: IIpAddressProps;
|
|
56
|
+
state: IIpAddressState;
|
|
57
|
+
}) => () => string;
|
|
58
|
+
declare const setValue: ({ api, props, state }: {
|
|
59
|
+
api: IIpAddressApi;
|
|
60
|
+
props: IIpAddressProps;
|
|
61
|
+
state: IIpAddressState;
|
|
62
|
+
}) => (value: string) => void;
|
|
63
|
+
declare const focus: ({ emit, parent, state }: {
|
|
64
|
+
emit: IIpAddressRenderlessParamUtils['emit'];
|
|
65
|
+
parent: IIpAddressRenderlessParamUtils['parent'];
|
|
66
|
+
state: IIpAddressState;
|
|
67
|
+
props?: IIpAddressProps | undefined;
|
|
68
|
+
}) => ({ index, event }: {
|
|
69
|
+
index: number;
|
|
70
|
+
event?: any;
|
|
71
|
+
}) => void;
|
|
72
|
+
declare const select: ({ emit, parent, state }: {
|
|
73
|
+
emit: IIpAddressRenderlessParamUtils['emit'];
|
|
74
|
+
parent: IIpAddressRenderlessParamUtils['parent'];
|
|
75
|
+
state: IIpAddressState;
|
|
76
|
+
props?: IIpAddressProps | undefined;
|
|
77
|
+
}) => ({ index, event }: {
|
|
78
|
+
index: number;
|
|
79
|
+
event?: any;
|
|
80
|
+
}) => void;
|
|
81
|
+
declare const inputEvent: ({ api, componentName, emit, eventName, props }: {
|
|
82
|
+
api: IIpAddressApi;
|
|
83
|
+
componentName: any;
|
|
84
|
+
emit: any;
|
|
85
|
+
eventName: any;
|
|
86
|
+
props: any;
|
|
87
|
+
}) => ({ item, index }: {
|
|
88
|
+
item: any;
|
|
89
|
+
index: any;
|
|
90
|
+
}) => void;
|
|
91
|
+
declare const change: ({ api, emit }: {
|
|
92
|
+
api: IIpAddressApi;
|
|
93
|
+
emit: IIpAddressRenderlessParamUtils['emit'];
|
|
94
|
+
}) => () => void;
|
|
95
|
+
declare const blur: ({ api, componentName, emit, eventName, props, state }: {
|
|
96
|
+
api: IIpAddressApi;
|
|
97
|
+
componentName: string;
|
|
98
|
+
emit: IIpAddressRenderlessParamUtils['emit'];
|
|
99
|
+
eventName: string;
|
|
100
|
+
props: IIpAddressProps;
|
|
101
|
+
state: IIpAddressState;
|
|
102
|
+
}) => ({ item, index }: {
|
|
103
|
+
item: any;
|
|
104
|
+
index: any;
|
|
105
|
+
}) => void;
|
|
106
|
+
declare const keyup: ({ api, props }: {
|
|
107
|
+
api: IIpAddressApi;
|
|
108
|
+
props: IIpAddressProps;
|
|
109
|
+
parent?: ITinyVm<null> | undefined;
|
|
110
|
+
}) => ({ item, index, event }: {
|
|
111
|
+
item: any;
|
|
112
|
+
index: any;
|
|
113
|
+
event: any;
|
|
114
|
+
}) => false | undefined;
|
|
115
|
+
declare const keydown: ({ api, props, state }: {
|
|
116
|
+
api: IIpAddressApi;
|
|
117
|
+
props: IIpAddressProps;
|
|
118
|
+
state: IIpAddressState;
|
|
119
|
+
}) => ({ item, index, event }: {
|
|
120
|
+
item: any;
|
|
121
|
+
index: number;
|
|
122
|
+
event: KeyboardEvent;
|
|
123
|
+
}) => false | undefined;
|
|
124
|
+
|
|
125
|
+
interface IIpAddressState {
|
|
126
|
+
active: boolean;
|
|
127
|
+
isDel: boolean;
|
|
128
|
+
isSelected: boolean;
|
|
129
|
+
filterKeyCodes: number[];
|
|
130
|
+
formDisabled: ComputedRef<boolean>;
|
|
131
|
+
disabled: ComputedRef<boolean>;
|
|
132
|
+
heightStyle: ComputedRef<string>;
|
|
133
|
+
lineHeightStyle: ComputedRef<string>;
|
|
134
|
+
allHeightStyle: ComputedRef<string>;
|
|
135
|
+
api: Record<string, (str: any) => boolean>;
|
|
136
|
+
address: {
|
|
137
|
+
value: string;
|
|
138
|
+
}[];
|
|
139
|
+
}
|
|
140
|
+
type IIpAddressProps = ExtractPropTypes<typeof ipAddressProps>;
|
|
141
|
+
interface IIpAddressApi {
|
|
142
|
+
state: IIpAddressState;
|
|
143
|
+
dispatch: IIpAddressRenderlessParamUtils['dispatch'];
|
|
144
|
+
broadcast: IIpAddressRenderlessParamUtils['broadcast'];
|
|
145
|
+
getCursorPosition: typeof getCursorPosition;
|
|
146
|
+
focus: ReturnType<typeof focus>;
|
|
147
|
+
select: ReturnType<typeof select>;
|
|
148
|
+
blur: ReturnType<typeof blur>;
|
|
149
|
+
keyup: ReturnType<typeof keyup>;
|
|
150
|
+
change: ReturnType<typeof change>;
|
|
151
|
+
keydown: ReturnType<typeof keydown>;
|
|
152
|
+
inputEvent: ReturnType<typeof inputEvent>;
|
|
153
|
+
isIP6: typeof isIP6;
|
|
154
|
+
isIP4: typeof isIP4;
|
|
155
|
+
getValue?: ReturnType<typeof getValue>;
|
|
156
|
+
setValue?: ReturnType<typeof setValue>;
|
|
157
|
+
ipValidator?: ReturnType<typeof ipValidator>;
|
|
158
|
+
}
|
|
159
|
+
type IIpAddressRenderlessParamUtils = ISharedRenderlessParamUtils<null>;
|
|
160
|
+
|
|
161
|
+
export { IIpAddressApi, IIpAddressProps, IIpAddressRenderlessParamUtils, IIpAddressState };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ExtractPropTypes, ComputedRef } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
3
|
+
|
|
4
|
+
declare const labelProps: {
|
|
5
|
+
label: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
color: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
wholeline: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
position: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
ellipsis: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
decimal: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
limit: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
isRequired: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
bold: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
tiny_mode: StringConstructor;
|
|
50
|
+
tiny_mode_root: BooleanConstructor;
|
|
51
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
52
|
+
tiny_renderless: FunctionConstructor;
|
|
53
|
+
tiny_theme: StringConstructor;
|
|
54
|
+
tiny_chart_theme: ObjectConstructor;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
type ILabelProps = ExtractPropTypes<typeof labelProps>;
|
|
58
|
+
interface ILabelState {
|
|
59
|
+
label: ComputedRef<string>;
|
|
60
|
+
type: ComputedRef<string>;
|
|
61
|
+
color: ComputedRef<string>;
|
|
62
|
+
size: ComputedRef<string>;
|
|
63
|
+
labelStyle: ComputedRef<object>;
|
|
64
|
+
labelClass: ComputedRef<string>;
|
|
65
|
+
isRequired: ComputedRef<boolean>;
|
|
66
|
+
}
|
|
67
|
+
interface ILabelApi {
|
|
68
|
+
state: ILabelState;
|
|
69
|
+
handleClick: (event: MouseEvent) => void;
|
|
70
|
+
computeLabel: () => string;
|
|
71
|
+
computeLabelStyle: () => object;
|
|
72
|
+
computeLabelClass: () => [];
|
|
73
|
+
}
|
|
74
|
+
type ILabelRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
75
|
+
api: ILabelApi;
|
|
76
|
+
state: ILabelState;
|
|
77
|
+
props: ILabelProps;
|
|
78
|
+
};
|
|
79
|
+
type ILabelRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
|
|
80
|
+
|
|
81
|
+
export { ILabelApi, ILabelProps, ILabelRenderlessParamUtils, ILabelRenderlessParams, ILabelState };
|
package/types/link.type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
3
3
|
|
|
4
4
|
declare const linkProps: {
|
|
@@ -6,6 +6,7 @@ declare const linkProps: {
|
|
|
6
6
|
type: StringConstructor;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
|
+
value: StringConstructor;
|
|
9
10
|
underline: {
|
|
10
11
|
type: BooleanConstructor;
|
|
11
12
|
default: boolean;
|
|
@@ -13,6 +14,7 @@ declare const linkProps: {
|
|
|
13
14
|
href: StringConstructor;
|
|
14
15
|
icon: (StringConstructor | ObjectConstructor)[];
|
|
15
16
|
disabled: BooleanConstructor;
|
|
17
|
+
size: StringConstructor;
|
|
16
18
|
tiny_mode: StringConstructor;
|
|
17
19
|
tiny_mode_root: BooleanConstructor;
|
|
18
20
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -23,8 +25,9 @@ declare const linkProps: {
|
|
|
23
25
|
|
|
24
26
|
type ILinkProps = ExtractPropTypes<typeof linkProps>;
|
|
25
27
|
interface ILinkState {
|
|
26
|
-
formDisabled:
|
|
27
|
-
disabled:
|
|
28
|
+
formDisabled: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
href: string;
|
|
28
31
|
}
|
|
29
32
|
interface ILinkApi {
|
|
30
33
|
state: ILinkState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const MindMapProps: {
|
|
4
|
+
_constants: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
modelValue: ObjectConstructor;
|
|
9
|
+
options: ObjectConstructor;
|
|
10
|
+
tiny_mode: StringConstructor;
|
|
11
|
+
tiny_mode_root: BooleanConstructor;
|
|
12
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
13
|
+
tiny_renderless: FunctionConstructor;
|
|
14
|
+
tiny_theme: StringConstructor;
|
|
15
|
+
tiny_chart_theme: ObjectConstructor;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type IMindMapProps = ExtractPropTypes<typeof MindMapProps>;
|
|
19
|
+
|
|
20
|
+
export { IMindMapProps };
|
package/types/modal.type.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ declare const modalProps: {
|
|
|
79
79
|
default: () => boolean;
|
|
80
80
|
};
|
|
81
81
|
maskClosable: BooleanConstructor;
|
|
82
|
-
message: (StringConstructor | FunctionConstructor)[];
|
|
82
|
+
message: (StringConstructor | FunctionConstructor | ObjectConstructor)[];
|
|
83
83
|
minHeight: {
|
|
84
84
|
type: (StringConstructor | NumberConstructor)[];
|
|
85
85
|
default: () => number;
|
|
@@ -133,11 +133,13 @@ declare const modalProps: {
|
|
|
133
133
|
type: ObjectConstructor;
|
|
134
134
|
default: () => {};
|
|
135
135
|
};
|
|
136
|
+
footerDragable: BooleanConstructor;
|
|
137
|
+
tiny_theme: StringConstructor;
|
|
138
|
+
slots: ObjectConstructor;
|
|
136
139
|
tiny_mode: StringConstructor;
|
|
137
140
|
tiny_mode_root: BooleanConstructor;
|
|
138
141
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
139
142
|
tiny_renderless: FunctionConstructor;
|
|
140
|
-
tiny_theme: StringConstructor;
|
|
141
143
|
tiny_chart_theme: ObjectConstructor;
|
|
142
144
|
};
|
|
143
145
|
|
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,24 @@ 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
|
+
};
|
|
143
163
|
tiny_mode: StringConstructor;
|
|
144
164
|
tiny_mode_root: BooleanConstructor;
|
|
145
165
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -182,28 +202,32 @@ declare const internalDecrease: ({ api, state }: Pick<INumericRenderlessParams,
|
|
|
182
202
|
declare const increase: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
|
|
183
203
|
declare const decrease: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
|
|
184
204
|
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: (
|
|
205
|
+
declare const handleFocus: ({ emit, state, props, api, vm }: Pick<INumericRenderlessParams, 'emit' | 'state' | 'props' | 'api' | 'vm'>) => (event: FocusEvent) => void;
|
|
206
|
+
declare const focus: (vm: INumericRenderlessParams['vm']) => () => void;
|
|
187
207
|
declare const setCurrentValue: ({ api, constants, dispatch, emit, props, state }: Pick<INumericRenderlessParams, 'api' | 'constants' | 'dispatch' | 'emit' | 'props' | 'state'>) => (newVal: number) => void;
|
|
188
208
|
declare const handleInput: ({ state, api, emit, props }: Pick<INumericRenderlessParams, 'state' | 'api' | 'emit' | 'props'>) => (event: InputEvent) => void;
|
|
189
|
-
declare const handleInputChange: ({ api }: Pick<INumericRenderlessParams, 'api'>) => (event: Event) => void;
|
|
190
|
-
declare const select: (
|
|
209
|
+
declare const handleInputChange: ({ api, state, props }: Pick<INumericRenderlessParams, 'api' | 'state' | 'props'>) => (event: Event) => void;
|
|
210
|
+
declare const select: (vm: INumericRenderlessParams['vm']) => () => any;
|
|
191
211
|
declare const mounted: ({ constants, parent, props, state }: Pick<INumericRenderlessParams, 'constants' | 'parent' | 'props' | 'state'>) => () => void;
|
|
192
212
|
declare const unmounted: ({ parent, state }: Pick<INumericRenderlessParams, 'parent' | 'state'>) => () => void;
|
|
193
213
|
declare const updated: ({ constants, parent, state }: Pick<INumericRenderlessParams, 'constants' | 'parent' | 'state'>) => () => void;
|
|
194
|
-
declare const displayValue: ({ props, state }: Pick<INumericRenderlessParams, 'props' | 'state'>) => () => string | number;
|
|
214
|
+
declare const displayValue: ({ props, state, api }: Pick<INumericRenderlessParams, 'props' | 'state' | 'api'>) => () => string | number;
|
|
195
215
|
declare const getNumPecision: ({ api, props }: Pick<INumericRenderlessParams, 'api' | 'props'>) => () => number;
|
|
196
216
|
declare const mouseEvent: ({ api, props, state }: Pick<INumericRenderlessParams, 'api' | 'props' | 'state'>) => (event: MouseEvent) => void | boolean;
|
|
197
217
|
declare const dispatchDisplayedValue: ({ state, api, dispatch }: Pick<INumericRenderlessParams, 'state' | 'api' | 'dispatch'>) => () => void;
|
|
198
218
|
declare const getDisplayedValue: ({ state, props }: Pick<INumericRenderlessParams, 'state' | 'props'>) => () => string;
|
|
199
219
|
declare const getDisplayOnlyText: ({ parent, state, props }: Pick<INumericRenderlessParams, 'parent' | 'state' | 'props'>) => () => string | number;
|
|
220
|
+
declare const filterValue: ({ state }: Pick<INumericRenderlessParams, 'state'>) => () => number | string;
|
|
221
|
+
declare const handleClear: ({ state, emit }: Pick<INumericRenderlessParams, 'state' | 'emit'>) => () => void;
|
|
222
|
+
declare const handleChange: ({ state, emit }: Pick<INumericRenderlessParams, 'state' | 'emit'>) => () => void;
|
|
200
223
|
|
|
201
224
|
type INumericProps = ExtractPropTypes<typeof numericProps>;
|
|
202
225
|
type INumericConstants = typeof $constants;
|
|
203
226
|
interface INumericState {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
227
|
+
radioVal: string;
|
|
228
|
+
currentValue: number | string;
|
|
229
|
+
userInput: number | string;
|
|
230
|
+
lastInput: number | string;
|
|
207
231
|
inputStatus: boolean;
|
|
208
232
|
decimal: BigIntDecimal;
|
|
209
233
|
strictInput: boolean;
|
|
@@ -244,6 +268,9 @@ interface INumericApi {
|
|
|
244
268
|
dispatchDisplayedValue: ReturnType<typeof dispatchDisplayedValue>;
|
|
245
269
|
getDisplayedValue: ReturnType<typeof getDisplayedValue>;
|
|
246
270
|
getDisplayOnlyText: ReturnType<typeof getDisplayOnlyText>;
|
|
271
|
+
filterValue: ReturnType<typeof filterValue>;
|
|
272
|
+
handleClear: ReturnType<typeof handleClear>;
|
|
273
|
+
handleChange: ReturnType<typeof handleChange>;
|
|
247
274
|
}
|
|
248
275
|
type INumericRenderlessParams = ISharedRenderlessFunctionParams<INumericConstants> & {
|
|
249
276
|
api: INumericApi;
|
|
@@ -259,7 +286,7 @@ interface INumericUnitPrecision {
|
|
|
259
286
|
rounding?: string;
|
|
260
287
|
zeroize: boolean;
|
|
261
288
|
}
|
|
262
|
-
interface INumericInitStateParams extends Pick<INumericRenderlessParams, 'reactive' | 'computed' | 'props' | 'api' | 'parent'> {
|
|
289
|
+
interface INumericInitStateParams extends Pick<INumericRenderlessParams, 'constants' | 'reactive' | 'computed' | 'props' | 'api' | 'parent'> {
|
|
263
290
|
$service: ReturnType<typeof initService>;
|
|
264
291
|
}
|
|
265
292
|
interface INumericGetEmitValueParams {
|