update demo
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| import { Panel, Group, scroller, vlayout, layoutConfig, LayoutSpec, Input, Gravity, log, Color, input, text } from "doric"; | import { Panel, Group, scroller, vlayout, layoutConfig, LayoutSpec, Input, Gravity, log, Color, input, text, InputType } from "doric"; | ||||||
| import { title, colors } from "./utils"; | import { title, colors } from "./utils"; | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -44,7 +44,8 @@ class InputDemo extends Panel { | |||||||
|             multiline: false, |             multiline: false, | ||||||
|             textSize: 20, |             textSize: 20, | ||||||
|             maxLength: 20, |             maxLength: 20, | ||||||
|             padding: { top: 10, bottom: 11 } |             padding: { top: 10, bottom: 11 }, | ||||||
|  |             inputType: InputType.Decimal | ||||||
|         }); |         }); | ||||||
|         scroller( |         scroller( | ||||||
|             vlayout( |             vlayout( | ||||||
|   | |||||||
| @@ -2683,6 +2683,10 @@ var Input = /** @class */ (function (_super) { | |||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", String) |         __metadata$a("design:type", String) | ||||||
|     ], Input.prototype, "hintText", void 0); |     ], Input.prototype, "hintText", void 0); | ||||||
|  |     __decorate$a([ | ||||||
|  |         Property, | ||||||
|  |         __metadata$a("design:type", Number) | ||||||
|  |     ], Input.prototype, "inputType", void 0); | ||||||
|     __decorate$a([ |     __decorate$a([ | ||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", Color) |         __metadata$a("design:type", Color) | ||||||
| @@ -2709,6 +2713,13 @@ var Input = /** @class */ (function (_super) { | |||||||
|     ], Input.prototype, "maxLength", void 0); |     ], Input.prototype, "maxLength", void 0); | ||||||
|     return Input; |     return Input; | ||||||
| }(View)); | }(View)); | ||||||
|  | (function (InputType) { | ||||||
|  |     InputType[InputType["Default"] = 0] = "Default"; | ||||||
|  |     InputType[InputType["Number"] = 1] = "Number"; | ||||||
|  |     InputType[InputType["Decimal"] = 2] = "Decimal"; | ||||||
|  |     InputType[InputType["Alphabet"] = 3] = "Alphabet"; | ||||||
|  |     InputType[InputType["Phone"] = 4] = "Phone"; | ||||||
|  | })(exports.InputType || (exports.InputType = {})); | ||||||
| function input(config) { | function input(config) { | ||||||
|     var ret = new Input; |     var ret = new Input; | ||||||
|     ret.layoutConfig = layoutConfig().just(); |     ret.layoutConfig = layoutConfig().just(); | ||||||
|   | |||||||
| @@ -2101,6 +2101,10 @@ let Input = /** @class */ (() => { | |||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", String) |         __metadata$a("design:type", String) | ||||||
|     ], Input.prototype, "hintText", void 0); |     ], Input.prototype, "hintText", void 0); | ||||||
|  |     __decorate$a([ | ||||||
|  |         Property, | ||||||
|  |         __metadata$a("design:type", Number) | ||||||
|  |     ], Input.prototype, "inputType", void 0); | ||||||
|     __decorate$a([ |     __decorate$a([ | ||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", Color) |         __metadata$a("design:type", Color) | ||||||
| @@ -2127,6 +2131,13 @@ let Input = /** @class */ (() => { | |||||||
|     ], Input.prototype, "maxLength", void 0); |     ], Input.prototype, "maxLength", void 0); | ||||||
|     return Input; |     return Input; | ||||||
| })(); | })(); | ||||||
|  | (function (InputType) { | ||||||
|  |     InputType[InputType["Default"] = 0] = "Default"; | ||||||
|  |     InputType[InputType["Number"] = 1] = "Number"; | ||||||
|  |     InputType[InputType["Decimal"] = 2] = "Decimal"; | ||||||
|  |     InputType[InputType["Alphabet"] = 3] = "Alphabet"; | ||||||
|  |     InputType[InputType["Phone"] = 4] = "Phone"; | ||||||
|  | })(exports.InputType || (exports.InputType = {})); | ||||||
| function input(config) { | function input(config) { | ||||||
|     const ret = new Input; |     const ret = new Input; | ||||||
|     ret.layoutConfig = layoutConfig().just(); |     ret.layoutConfig = layoutConfig().just(); | ||||||
|   | |||||||
| @@ -3560,6 +3560,10 @@ let Input = /** @class */ (() => { | |||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", String) |         __metadata$a("design:type", String) | ||||||
|     ], Input.prototype, "hintText", void 0); |     ], Input.prototype, "hintText", void 0); | ||||||
|  |     __decorate$a([ | ||||||
|  |         Property, | ||||||
|  |         __metadata$a("design:type", Number) | ||||||
|  |     ], Input.prototype, "inputType", void 0); | ||||||
|     __decorate$a([ |     __decorate$a([ | ||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", Color) |         __metadata$a("design:type", Color) | ||||||
| @@ -3586,6 +3590,13 @@ let Input = /** @class */ (() => { | |||||||
|     ], Input.prototype, "maxLength", void 0); |     ], Input.prototype, "maxLength", void 0); | ||||||
|     return Input; |     return Input; | ||||||
| })(); | })(); | ||||||
|  | (function (InputType) { | ||||||
|  |     InputType[InputType["Default"] = 0] = "Default"; | ||||||
|  |     InputType[InputType["Number"] = 1] = "Number"; | ||||||
|  |     InputType[InputType["Decimal"] = 2] = "Decimal"; | ||||||
|  |     InputType[InputType["Alphabet"] = 3] = "Alphabet"; | ||||||
|  |     InputType[InputType["Phone"] = 4] = "Phone"; | ||||||
|  | })(exports.InputType || (exports.InputType = {})); | ||||||
| function input(config) { | function input(config) { | ||||||
|     const ret = new Input; |     const ret = new Input; | ||||||
|     ret.layoutConfig = layoutConfig().just(); |     ret.layoutConfig = layoutConfig().just(); | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								doric-js/index.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								doric-js/index.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -720,7 +720,7 @@ declare module 'doric/lib/src/widget/input' { | |||||||
|     export enum InputType { |     export enum InputType { | ||||||
|         Default = 0, |         Default = 0, | ||||||
|         Number = 1, |         Number = 1, | ||||||
|         NumberSigned = 2, |         Decimal = 2, | ||||||
|         Alphabet = 3, |         Alphabet = 3, | ||||||
|         Phone = 4 |         Phone = 4 | ||||||
|     } |     } | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								doric-js/lib/src/widget/input.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								doric-js/lib/src/widget/input.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -22,7 +22,7 @@ export declare class Input extends View { | |||||||
| export declare enum InputType { | export declare enum InputType { | ||||||
|     Default = 0, |     Default = 0, | ||||||
|     Number = 1, |     Number = 1, | ||||||
|     NumberSigned = 2, |     Decimal = 2, | ||||||
|     Alphabet = 3, |     Alphabet = 3, | ||||||
|     Phone = 4 |     Phone = 4 | ||||||
| } | } | ||||||
|   | |||||||
| @@ -60,6 +60,10 @@ let Input = /** @class */ (() => { | |||||||
|         Property, |         Property, | ||||||
|         __metadata("design:type", String) |         __metadata("design:type", String) | ||||||
|     ], Input.prototype, "hintText", void 0); |     ], Input.prototype, "hintText", void 0); | ||||||
|  |     __decorate([ | ||||||
|  |         Property, | ||||||
|  |         __metadata("design:type", Number) | ||||||
|  |     ], Input.prototype, "inputType", void 0); | ||||||
|     __decorate([ |     __decorate([ | ||||||
|         Property, |         Property, | ||||||
|         __metadata("design:type", Color) |         __metadata("design:type", Color) | ||||||
| @@ -87,6 +91,14 @@ let Input = /** @class */ (() => { | |||||||
|     return Input; |     return Input; | ||||||
| })(); | })(); | ||||||
| export { Input }; | export { Input }; | ||||||
|  | export var InputType; | ||||||
|  | (function (InputType) { | ||||||
|  |     InputType[InputType["Default"] = 0] = "Default"; | ||||||
|  |     InputType[InputType["Number"] = 1] = "Number"; | ||||||
|  |     InputType[InputType["Decimal"] = 2] = "Decimal"; | ||||||
|  |     InputType[InputType["Alphabet"] = 3] = "Alphabet"; | ||||||
|  |     InputType[InputType["Phone"] = 4] = "Phone"; | ||||||
|  | })(InputType || (InputType = {})); | ||||||
| export function input(config) { | export function input(config) { | ||||||
|     const ret = new Input; |     const ret = new Input; | ||||||
|     ret.layoutConfig = layoutConfig().just(); |     ret.layoutConfig = layoutConfig().just(); | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								doric-web/dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								doric-web/dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -3618,6 +3618,10 @@ let Input = /** @class */ (() => { | |||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", String) |         __metadata$a("design:type", String) | ||||||
|     ], Input.prototype, "hintText", void 0); |     ], Input.prototype, "hintText", void 0); | ||||||
|  |     __decorate$a([ | ||||||
|  |         Property, | ||||||
|  |         __metadata$a("design:type", Number) | ||||||
|  |     ], Input.prototype, "inputType", void 0); | ||||||
|     __decorate$a([ |     __decorate$a([ | ||||||
|         Property, |         Property, | ||||||
|         __metadata$a("design:type", Color) |         __metadata$a("design:type", Color) | ||||||
| @@ -3644,6 +3648,13 @@ let Input = /** @class */ (() => { | |||||||
|     ], Input.prototype, "maxLength", void 0); |     ], Input.prototype, "maxLength", void 0); | ||||||
|     return Input; |     return Input; | ||||||
| })(); | })(); | ||||||
|  | (function (InputType) { | ||||||
|  |     InputType[InputType["Default"] = 0] = "Default"; | ||||||
|  |     InputType[InputType["Number"] = 1] = "Number"; | ||||||
|  |     InputType[InputType["Decimal"] = 2] = "Decimal"; | ||||||
|  |     InputType[InputType["Alphabet"] = 3] = "Alphabet"; | ||||||
|  |     InputType[InputType["Phone"] = 4] = "Phone"; | ||||||
|  | })(exports.InputType || (exports.InputType = {})); | ||||||
| function input(config) { | function input(config) { | ||||||
|     const ret = new Input; |     const ret = new Input; | ||||||
|     ret.layoutConfig = layoutConfig().just(); |     ret.layoutConfig = layoutConfig().just(); | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								doric-web/dist/index.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								doric-web/dist/index.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user