@opentinyvue/vue-input 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,95 @@
1
+ import { defineComponent, $prefix, setup } from '@opentinyvue/vue-common';
2
+ import { renderless, api } from '@opentinyvue/vue-renderless/tall-storage/vue';
3
+ import '@opentinyvue/vue-theme/tall-storage/index.css';
4
+
5
+ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
6
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
7
+ if (render) {
8
+ options.render = render;
9
+ options.staticRenderFns = staticRenderFns;
10
+ options._compiled = true;
11
+ }
12
+ var hook;
13
+ if (injectStyles) {
14
+ hook = injectStyles;
15
+ }
16
+ if (hook) {
17
+ if (options.functional) {
18
+ options._injectStyles = hook;
19
+ var originalRender = options.render;
20
+ options.render = function renderWithStyleInjection(h, context) {
21
+ hook.call(context);
22
+ return originalRender(h, context);
23
+ };
24
+ } else {
25
+ var existing = options.beforeCreate;
26
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
27
+ }
28
+ }
29
+ return {
30
+ exports: scriptExports,
31
+ options
32
+ };
33
+ }
34
+
35
+ var __vue2_script = defineComponent({
36
+ name: $prefix + "TallStorage",
37
+ inheritAttrs: false,
38
+ props: {
39
+ isMemoryStorage: Boolean,
40
+ localstorageData: Array
41
+ },
42
+ setup: function setup$1(props, context) {
43
+ return setup({
44
+ props,
45
+ context,
46
+ renderless,
47
+ api
48
+ });
49
+ }
50
+ });
51
+ var render = function render2() {
52
+ var _vm = this;
53
+ var _h = _vm.$createElement;
54
+ var _c = _vm._self._c || _h;
55
+ return _c("div", {
56
+ staticClass: "tiny-tall-storage",
57
+ on: {
58
+ "mousedown": _vm.mousedown
59
+ }
60
+ }, [_c("div", {
61
+ staticClass: "tiny-storage-list-style"
62
+ }, [_c("ul", {
63
+ staticClass: "tiny-storage-list",
64
+ on: {
65
+ "keydown": function keydown($event) {
66
+ if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
67
+ return _vm.keydownEvent.apply(null, arguments);
68
+ }
69
+ }
70
+ }, _vm._l(_vm.localstorageData, function(item) {
71
+ return _c("li", {
72
+ key: item,
73
+ staticClass: "tiny-storage-item",
74
+ class: [_vm.state.hoverValue === item ? "item-hover" : ""],
75
+ on: {
76
+ "click": function click($event) {
77
+ return _vm.selectItem(item);
78
+ }
79
+ }
80
+ }, [_vm._v(" " + _vm._s(item) + " ")]);
81
+ }), 0)])]);
82
+ };
83
+ var staticRenderFns = [];
84
+ var __cssModules = {};
85
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
86
+ function __vue2_injectStyles(context) {
87
+ for (var o in __cssModules) {
88
+ this[o] = __cssModules[o];
89
+ }
90
+ }
91
+ var tallStorage = /* @__PURE__ */ function() {
92
+ return __component__.exports;
93
+ }();
94
+
95
+ export { tallStorage as default };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@opentinyvue/vue-input",
3
+ "version": "2.21.0",
4
+ "description": "",
5
+ "main": "./lib/index.js",
6
+ "module": "./lib/index.js",
7
+ "sideEffects": false,
8
+ "type": "module",
9
+ "dependencies": {
10
+ "@opentinyvue/vue-action-sheet": "~2.21.0",
11
+ "@opentinyvue/vue-common": "~2.21.0",
12
+ "@opentinyvue/vue-icon": "~2.21.0",
13
+ "@opentinyvue/vue-tooltip": "~2.21.0",
14
+ "@opentinyvue/vue-button": "~2.21.0",
15
+ "@opentinyvue/vue-dialog-box": "~2.21.0",
16
+ "@opentinyvue/vue-renderless": "~3.21.0",
17
+ "@opentinyvue/vue-theme-mobile": "~3.21.0",
18
+ "@opentinyvue/vue-theme": "~3.21.0"
19
+ },
20
+ "license": "MIT",
21
+ "types": "index.d.ts",
22
+ "scripts": {
23
+ "build": "pnpm -w build:ui $npm_package_name",
24
+ "//postversion": "pnpm build"
25
+ }
26
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,217 @@
1
+ /**
2
+ * Copyright (c) 2022 - present TinyVue Authors.
3
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license.
6
+ *
7
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10
+ *
11
+ */
12
+ import type { PropType } from '@opentinyvue/vue-common';
13
+ export declare const $constants: {
14
+ INPUT_PC: string;
15
+ INPUTGROUP_PC: string;
16
+ INPUT_MOBILE: string;
17
+ INPUTGROUP_MOBILE: string;
18
+ Mode: string;
19
+ inputMode(mode: any): string;
20
+ inputGroupMode(mode: any): string;
21
+ VALIDATE_ICON: {
22
+ Validating: string;
23
+ Success: string;
24
+ Error: string;
25
+ };
26
+ COMPONENT_NAME: {
27
+ FormItem: string;
28
+ };
29
+ MASKSYMBOL: string;
30
+ TEXTAREA_HEIGHT_MOBILE: number;
31
+ };
32
+ export declare const inputProps: {
33
+ _constants: {
34
+ type: ObjectConstructor;
35
+ default: () => {
36
+ INPUT_PC: string;
37
+ INPUTGROUP_PC: string;
38
+ INPUT_MOBILE: string;
39
+ INPUTGROUP_MOBILE: string;
40
+ Mode: string;
41
+ inputMode(mode: any): string;
42
+ inputGroupMode(mode: any): string;
43
+ VALIDATE_ICON: {
44
+ Validating: string;
45
+ Success: string;
46
+ Error: string;
47
+ };
48
+ COMPONENT_NAME: {
49
+ FormItem: string;
50
+ };
51
+ MASKSYMBOL: string;
52
+ TEXTAREA_HEIGHT_MOBILE: number;
53
+ };
54
+ };
55
+ name: StringConstructor;
56
+ size: StringConstructor;
57
+ form: StringConstructor;
58
+ label: StringConstructor;
59
+ height: NumberConstructor;
60
+ resize: StringConstructor;
61
+ tabindex: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ disabled: BooleanConstructor;
66
+ readonly: BooleanConstructor;
67
+ hoverExpand: BooleanConstructor;
68
+ mask: BooleanConstructor;
69
+ suffixIcon: (StringConstructor | ObjectConstructor)[];
70
+ prefixIcon: (StringConstructor | ObjectConstructor)[];
71
+ modelValue: PropType<string | number | null>;
72
+ type: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ memorySpace: {
77
+ type: NumberConstructor;
78
+ default: number;
79
+ };
80
+ vertical: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ selectMenu: {
85
+ type: {
86
+ (arrayLength: number): {
87
+ id: string;
88
+ label: string;
89
+ }[];
90
+ (...items: {
91
+ id: string;
92
+ label: string;
93
+ }[]): {
94
+ id: string;
95
+ label: string;
96
+ }[];
97
+ new (arrayLength: number): {
98
+ id: string;
99
+ label: string;
100
+ }[];
101
+ new (...items: {
102
+ id: string;
103
+ label: string;
104
+ }[]): {
105
+ id: string;
106
+ label: string;
107
+ }[];
108
+ isArray(arg: any): arg is any[];
109
+ readonly prototype: any[];
110
+ from<T>(arrayLike: ArrayLike<T>): T[];
111
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
112
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
113
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
114
+ of<T_4>(...items: T_4[]): T_4[];
115
+ readonly [Symbol.species]: ArrayConstructor;
116
+ };
117
+ default: () => never[];
118
+ };
119
+ ellipsis: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ contentStyle: {
124
+ type: ObjectConstructor;
125
+ default: () => {};
126
+ };
127
+ isSelect: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ tips: StringConstructor;
132
+ counter: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ autosize: {
137
+ type: (ObjectConstructor | BooleanConstructor)[];
138
+ default: boolean;
139
+ };
140
+ clearable: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ autocomplete: {
145
+ type: StringConstructor;
146
+ default: string;
147
+ };
148
+ showPassword: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ showWordLimit: {
153
+ type: BooleanConstructor;
154
+ default: boolean;
155
+ };
156
+ showTitle: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ validateEvent: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
164
+ popupMore: {
165
+ type: BooleanConstructor;
166
+ default: boolean;
167
+ };
168
+ textareaTitle: {
169
+ type: StringConstructor;
170
+ default: string;
171
+ };
172
+ displayOnly: {
173
+ type: BooleanConstructor;
174
+ default: boolean;
175
+ };
176
+ displayOnlyContent: {
177
+ type: StringConstructor;
178
+ default: string;
179
+ };
180
+ customClass: {
181
+ type: StringConstructor;
182
+ default: string;
183
+ };
184
+ frontClearIcon: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ showEmptyValue: {
189
+ type: BooleanConstructor;
190
+ default: undefined;
191
+ };
192
+ textAlign: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ width: {
197
+ type: PropType<string | number | null>;
198
+ };
199
+ showTooltip: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ /** 输入框的边框模式,当值为underline时,只显示一条底部直线 */
204
+ inputBoxType: {
205
+ type: StringConstructor;
206
+ default: string;
207
+ validator: (value: string) => boolean;
208
+ };
209
+ tiny_mode: StringConstructor;
210
+ tiny_mode_root: BooleanConstructor;
211
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
212
+ tiny_renderless: FunctionConstructor;
213
+ tiny_theme: StringConstructor;
214
+ tiny_chart_theme: ObjectConstructor;
215
+ };
216
+ declare const _default: any;
217
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;