genus-ui 2.35.35 → 2.36.35

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "2.35.35",
4
+ "version": "2.36.35",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
@@ -0,0 +1,20 @@
1
+ import { TemplateResult } from "lit";
2
+ import InputBuilder from "./models/builder-model";
3
+ import InputType from "./input-types";
4
+ declare class TextboxBuilder implements InputBuilder {
5
+ private inputControl;
6
+ setInputType(type: InputType): void;
7
+ setInputValue(value: string): void;
8
+ setInputName(name: string): void;
9
+ setDefaultLabelIcon(label: string, icon: string): void;
10
+ setPlaceholderText(placeholderText: string): void;
11
+ setIcon(icon: string): void;
12
+ setReadOnly(): void;
13
+ setFormatInput(): void;
14
+ setDataPattern(pattern: string): void;
15
+ removeLabel(): void;
16
+ removeIcon(): void;
17
+ removeLabelIcon(placeholderText: string): void;
18
+ renderControl(eventFunction: any): TemplateResult;
19
+ }
20
+ export default TextboxBuilder;
@@ -3,7 +3,7 @@ export declare class GenusTextBox extends LitElement {
3
3
  labelText: string;
4
4
  inputValue: string;
5
5
  inputType: string;
6
- formatInput: string;
6
+ formatInput: boolean;
7
7
  inputName: string;
8
8
  inputIcon: string;
9
9
  placeholderText: string;
@@ -15,14 +15,14 @@ export declare class GenusTextBox extends LitElement {
15
15
  readOnly: boolean;
16
16
  static styles: import("lit").CSSResult[];
17
17
  private _targetInput;
18
- private _defaultValue;
18
+ private _textboxBuilder;
19
19
  getInputValue: (e: Event) => void;
20
- renderInputControl: (type: string) => any;
20
+ renderInputControl: (type: string) => import("lit-html").TemplateResult;
21
21
  updated(): void;
22
22
  static formAssociated: boolean;
23
23
  private _internals;
24
24
  constructor();
25
- render(): any;
25
+ render(): import("lit-html").TemplateResult;
26
26
  }
27
27
  declare global {
28
28
  interface HTMLElementTagNameMap {
@@ -0,0 +1,7 @@
1
+ declare enum InputType {
2
+ Text = "text",
3
+ Email = "email",
4
+ Password = "password",
5
+ Number = "number"
6
+ }
7
+ export default InputType;
@@ -0,0 +1,18 @@
1
+ import { TemplateResult } from "lit";
2
+ import InputType from "../input-types";
3
+ interface InputBuilder {
4
+ setInputType(type: InputType): void;
5
+ setInputValue(value: string): void;
6
+ setInputName(name: string): void;
7
+ setDefaultLabelIcon(label: string, icon: string): void;
8
+ setPlaceholderText(placeholderText: string): void;
9
+ setIcon(icon: string): void;
10
+ setFormatInput(): void;
11
+ setDataPattern(pattern: string): void;
12
+ setReadOnly(): void;
13
+ removeLabel(): void;
14
+ removeIcon(): void;
15
+ removeLabelIcon(placeholderText: string): void;
16
+ renderControl(eventFunction: any): TemplateResult;
17
+ }
18
+ export default InputBuilder;
@@ -0,0 +1,16 @@
1
+ type InputControl = {
2
+ labelText: string;
3
+ inputValue: string;
4
+ inputType: string;
5
+ formatInput: boolean;
6
+ inputName: string;
7
+ inputIcon: string;
8
+ placeholderText: string;
9
+ dataPattern: string;
10
+ disallowedCharacters: string;
11
+ withoutIcon: boolean;
12
+ withoutLabel: boolean;
13
+ withoutLabelIcon: boolean;
14
+ isReadOnly: boolean;
15
+ };
16
+ export default InputControl;