suis 0.24.0 → 0.26.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/README.md +4 -1
- package/esm2022/lib/components/index.mjs +4 -2
- package/esm2022/lib/components/suis-box/suis-box.component.mjs +2 -2
- package/esm2022/lib/components/suis-breadcrumbs/suis-breadcrumbs.component.mjs +3 -9
- package/esm2022/lib/components/suis-form-field/suis-form-field.component.mjs +3 -11
- package/esm2022/lib/components/suis-input/index.mjs +3 -0
- package/esm2022/lib/components/suis-input/suis-input.component.mjs +66 -0
- package/esm2022/lib/components/suis-input/suis-input.types.mjs +2 -0
- package/esm2022/lib/components/suis-input-checkbox/index.mjs +2 -0
- package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +55 -0
- package/esm2022/lib/components/suis-input-chips/suis-input-chips.component.mjs +5 -5
- package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +3 -3
- package/esm2022/lib/components/suis-label/suis-label.component.mjs +15 -7
- package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +3 -9
- package/esm2022/lib/components/suis-table/suis-table.component.mjs +3 -3
- package/esm2022/lib/components/suis-title/suis-title.component.mjs +5 -13
- package/esm2022/lib/components/suis-toolbar/index.mjs +2 -0
- package/esm2022/lib/components/suis-toolbar/suis-toolbar.component.mjs +21 -0
- package/esm2022/lib/shared/classes/suis-input.base.mjs +7 -3
- package/fesm2022/suis.mjs +123 -76
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +3 -1
- package/lib/components/suis-breadcrumbs/suis-breadcrumbs.component.d.ts +1 -5
- package/lib/components/suis-form-field/suis-form-field.component.d.ts +1 -5
- package/lib/components/suis-input/index.d.ts +2 -0
- package/lib/components/suis-input/suis-input.component.d.ts +25 -0
- package/lib/components/suis-input/suis-input.types.d.ts +1 -0
- package/lib/components/suis-input-checkbox/index.d.ts +1 -0
- package/lib/components/suis-input-checkbox/suis-input-checkbox.component.d.ts +17 -0
- package/lib/components/suis-label/suis-label.component.d.ts +11 -3
- package/lib/components/suis-pagination/suis-pagination.component.d.ts +1 -5
- package/lib/components/suis-title/suis-title.component.d.ts +1 -5
- package/lib/components/suis-toolbar/index.d.ts +1 -0
- package/lib/components/suis-toolbar/suis-toolbar.component.d.ts +9 -0
- package/lib/shared/classes/suis-input.base.d.ts +9 -1
- package/package.json +1 -1
- package/esm2022/lib/components/suis-input-text/index.mjs +0 -3
- package/esm2022/lib/components/suis-input-text/suis-input-text.component.mjs +0 -66
- package/esm2022/lib/components/suis-input-text/suis-input-text.types.mjs +0 -2
- package/lib/components/suis-input-text/index.d.ts +0 -2
- package/lib/components/suis-input-text/suis-input-text.component.d.ts +0 -25
- package/lib/components/suis-input-text/suis-input-text.types.d.ts +0 -1
@@ -8,9 +8,10 @@ export * from './suis-chip';
|
|
8
8
|
export * from './suis-container';
|
9
9
|
export * from './suis-form-field';
|
10
10
|
export * from './suis-icon';
|
11
|
+
export * from './suis-input';
|
12
|
+
export * from './suis-input-checkbox';
|
11
13
|
export * from './suis-input-chips';
|
12
14
|
export * from './suis-input-number';
|
13
|
-
export * from './suis-input-text';
|
14
15
|
export * from './suis-label';
|
15
16
|
export * from './suis-navigation';
|
16
17
|
export * from './suis-navigation-group';
|
@@ -28,3 +29,4 @@ export * from './suis-spinner-container';
|
|
28
29
|
export * from './suis-table';
|
29
30
|
export * from './suis-tabs';
|
30
31
|
export * from './suis-title';
|
32
|
+
export * from './suis-toolbar';
|
@@ -5,12 +5,8 @@ export declare class SuisBreadcrumbsComponent {
|
|
5
5
|
* List of breadcrumbs items. Type of SuisBreadcrumbItem[]. By default set to empty array.
|
6
6
|
*/
|
7
7
|
items: SuisBreadcrumbItem[];
|
8
|
-
/**
|
9
|
-
* Adds a bottom margin below the breadcrumbs. By default set to false.
|
10
|
-
*/
|
11
|
-
spacing: boolean;
|
12
8
|
/** @internal */
|
13
9
|
itemTrackBy(index: number, item: SuisBreadcrumbItem): string;
|
14
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisBreadcrumbsComponent, never>;
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisBreadcrumbsComponent, "suis-breadcrumbs", never, { "items": { "alias": "items"; "required": false; };
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisBreadcrumbsComponent, "suis-breadcrumbs", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
|
16
12
|
}
|
@@ -5,10 +5,6 @@ export declare class SuisFormFieldComponent {
|
|
5
5
|
* Template to be added below the field with error message.
|
6
6
|
*/
|
7
7
|
errorTemplate?: TemplateRef<HTMLElement>;
|
8
|
-
/**
|
9
|
-
* Adds a bottom margin below the field. By default set to false.
|
10
|
-
*/
|
11
|
-
spacing: boolean;
|
12
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisFormFieldComponent, never>;
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisFormFieldComponent, "suis-form-field", never, { "errorTemplate": { "alias": "errorTemplate"; "required": false; };
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisFormFieldComponent, "suis-form-field", never, { "errorTemplate": { "alias": "errorTemplate"; "required": false; }; }, {}, never, ["*"], true, never>;
|
14
10
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { SuisInputType } from './suis-input.types';
|
3
|
+
import { SuisInputBase } from '../../shared/classes/suis-input.base';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class SuisInputComponent extends SuisInputBase {
|
6
|
+
/**
|
7
|
+
* Sets input's type to one of the accepted values - type of SuisInputType. By default set to 'text'.
|
8
|
+
*/
|
9
|
+
type: SuisInputType;
|
10
|
+
/**
|
11
|
+
* Placeholder text displayed in input. By default set to empty string.
|
12
|
+
*/
|
13
|
+
placeholder: string;
|
14
|
+
/**
|
15
|
+
* Emits on keydown enter input event.
|
16
|
+
*/
|
17
|
+
enterPressed: EventEmitter<void>;
|
18
|
+
/** @internal */
|
19
|
+
value: string;
|
20
|
+
writeValue(obj: string): void;
|
21
|
+
onChange(event: Event): void;
|
22
|
+
onEnter(): void;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputComponent, never>;
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputComponent, "suis-input", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "enterPressed": "enterPressed"; }, never, never, true, never>;
|
25
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type SuisInputType = 'date' | 'datetime-local' | 'email' | 'month' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-input-checkbox.component';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { SuisInputBase } from '../../shared/classes/suis-input.base';
|
2
|
+
import { SuisIconType } from '../suis-icon';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisInputCheckboxComponent extends SuisInputBase {
|
5
|
+
/** @internal */
|
6
|
+
readonly SuisIconType: typeof SuisIconType;
|
7
|
+
/** @internal */
|
8
|
+
value: boolean;
|
9
|
+
/**
|
10
|
+
* Adds a red colored asterisk after the label. By default set to false.
|
11
|
+
*/
|
12
|
+
required: boolean;
|
13
|
+
writeValue(obj: boolean): void;
|
14
|
+
onChange(event: Event): void;
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputCheckboxComponent, never>;
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputCheckboxComponent, "suis-input-checkbox", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, ["*"], true, never>;
|
17
|
+
}
|
@@ -1,13 +1,21 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class SuisLabelComponent {
|
3
|
+
/**
|
4
|
+
* Sets the HTML for attribute of the label. By default is undefined.
|
5
|
+
*/
|
6
|
+
for?: string;
|
3
7
|
/**
|
4
8
|
* Adds a red colored asterisk after the label. By default set to false.
|
5
9
|
*/
|
6
10
|
required: boolean;
|
7
11
|
/**
|
8
|
-
*
|
12
|
+
* Shows the pointer cursor when hovered. By default set to false.
|
13
|
+
*/
|
14
|
+
pointer: boolean;
|
15
|
+
/**
|
16
|
+
* Grays out the label content and removes cursor pointer behavior. By default set to false.
|
9
17
|
*/
|
10
|
-
|
18
|
+
readonly: boolean;
|
11
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisLabelComponent, never>;
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisLabelComponent, "suis-label", never, { "required": { "alias": "required"; "required": false; }; "
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisLabelComponent, "suis-label", never, { "for": { "alias": "for"; "required": false; }; "required": { "alias": "required"; "required": false; }; "pointer": { "alias": "pointer"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, ["*", "[suisLabelAside]"], true, never>;
|
13
21
|
}
|
@@ -27,10 +27,6 @@ export declare class SuisPaginationComponent implements OnInit, OnChanges {
|
|
27
27
|
* Number of total items in data source. By default set to 0.
|
28
28
|
*/
|
29
29
|
totalItems: number;
|
30
|
-
/**
|
31
|
-
* Adds margin top above the pagination. By default set to false.
|
32
|
-
*/
|
33
|
-
spacing: boolean;
|
34
30
|
/**
|
35
31
|
* Sets the of label "1 'of' 25". By default set to 'of'.
|
36
32
|
*/
|
@@ -55,5 +51,5 @@ export declare class SuisPaginationComponent implements OnInit, OnChanges {
|
|
55
51
|
previous(): void;
|
56
52
|
onPerPageChange(value: number): void;
|
57
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisPaginationComponent, never>;
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisPaginationComponent, "suis-pagination", never, { "page": { "alias": "page"; "required": false; }; "perPage": { "alias": "perPage"; "required": false; }; "perPageOptions": { "alias": "perPageOptions"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisPaginationComponent, "suis-pagination", never, { "page": { "alias": "page"; "required": false; }; "perPage": { "alias": "perPage"; "required": false; }; "perPageOptions": { "alias": "perPageOptions"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "ofLabel": { "alias": "ofLabel"; "required": false; }; "itemsLabel": { "alias": "itemsLabel"; "required": false; }; }, { "pageChange": "pageChange"; "perPageChange": "perPageChange"; }, never, never, true, never>;
|
59
55
|
}
|
@@ -1,9 +1,5 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class SuisTitleComponent {
|
3
|
-
/**
|
4
|
-
* Adds a bottom margin below the title. By default set to false.
|
5
|
-
*/
|
6
|
-
spacing: boolean;
|
7
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisTitleComponent, never>;
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisTitleComponent, "suis-title", never, {
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisTitleComponent, "suis-title", never, {}, {}, never, ["*"], true, never>;
|
9
5
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-toolbar.component';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class SuisToolbarComponent {
|
3
|
+
/**
|
4
|
+
* Adds a padding around the content. By default set to false.
|
5
|
+
*/
|
6
|
+
spacing: boolean;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisToolbarComponent, never>;
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisToolbarComponent, "suis-toolbar", never, { "spacing": { "alias": "spacing"; "required": false; }; }, {}, never, ["[suisToolbarLeft]", "[suisToolbarCenter]", "[suisToolbarRight]"], true, never>;
|
9
|
+
}
|
@@ -6,6 +6,14 @@ export declare abstract class SuisInputBase implements ControlValueAccessor {
|
|
6
6
|
protected readonly cdRef: ChangeDetectorRef;
|
7
7
|
/** @internal */
|
8
8
|
protected readonly elRef: ElementRef<any>;
|
9
|
+
/**
|
10
|
+
* Sets HTML id attribute of the input. By default is undefined.
|
11
|
+
*/
|
12
|
+
id?: string;
|
13
|
+
/**
|
14
|
+
* Sets HTML name attribute of the input. By default is undefined.
|
15
|
+
*/
|
16
|
+
name?: string;
|
9
17
|
/**
|
10
18
|
* Sets input disabled state. By default set to false.
|
11
19
|
*/
|
@@ -30,5 +38,5 @@ export declare abstract class SuisInputBase implements ControlValueAccessor {
|
|
30
38
|
/** @internal */
|
31
39
|
onTouch(): void;
|
32
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputBase, never>;
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisInputBase, never, never, { "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, { "changed": "changed"; "touched": "touched"; }, never, never, false, never>;
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisInputBase, never, never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, { "changed": "changed"; "touched": "touched"; }, never, never, false, never>;
|
34
42
|
}
|
package/package.json
CHANGED
@@ -1,3 +0,0 @@
|
|
1
|
-
export * from './suis-input-text.component';
|
2
|
-
export * from './suis-input-text.types';
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtdGV4dC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtaW5wdXQtdGV4dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLWlucHV0LXRleHQudHlwZXMnO1xuIl19
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, forwardRef, } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
-
import { SuisInputBase } from '../../shared/classes/suis-input.base';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
class SuisInputTextComponent extends SuisInputBase {
|
7
|
-
constructor() {
|
8
|
-
super(...arguments);
|
9
|
-
/**
|
10
|
-
* Sets input's type to one of the accepted values - 'text' or 'password'. By default set to 'text'.
|
11
|
-
*/
|
12
|
-
this.type = 'text';
|
13
|
-
/**
|
14
|
-
* Placeholder text displayed in input. By default set to empty string.
|
15
|
-
*/
|
16
|
-
this.placeholder = '';
|
17
|
-
/**
|
18
|
-
* Emits on keydown enter input event.
|
19
|
-
*/
|
20
|
-
this.enterPressed = new EventEmitter();
|
21
|
-
/** @internal */
|
22
|
-
this.value = '';
|
23
|
-
}
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
25
|
-
writeValue(obj) {
|
26
|
-
this.value = obj;
|
27
|
-
this._onChange(this.value);
|
28
|
-
this.cdRef.markForCheck();
|
29
|
-
}
|
30
|
-
onChange(event) {
|
31
|
-
const target = event.target;
|
32
|
-
this.value = target.value;
|
33
|
-
this._onChange(this.value);
|
34
|
-
this.changed.emit(this.value);
|
35
|
-
this.cdRef.markForCheck();
|
36
|
-
}
|
37
|
-
onEnter() {
|
38
|
-
this.enterPressed.emit();
|
39
|
-
}
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisInputTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: SuisInputTextComponent, isStandalone: true, selector: "suis-input-text", inputs: { type: "type", placeholder: "placeholder" }, outputs: { enterPressed: "enterPressed" }, providers: [
|
42
|
-
{
|
43
|
-
provide: NG_VALUE_ACCESSOR,
|
44
|
-
multi: true,
|
45
|
-
useExisting: forwardRef(() => SuisInputTextComponent),
|
46
|
-
},
|
47
|
-
], usesInheritance: true, ngImport: i0, template: "<input\n class=\"suis-input-text\"\n [class.suis-input-text--invalid]=\"invalid\"\n [type]=\"type\"\n [value]=\"value\"\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n (keydown.enter)=\"onEnter()\"\n/>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-input-text{width:100%;background-color:#fff;box-shadow:0 2px 5px #00000040;border-radius:.25rem;padding:.5rem 1rem;border:0;min-height:2rem}.suis-input-text:focus{box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-text--invalid{box-shadow:0 2px 5px #ff4757bf}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
48
|
-
}
|
49
|
-
export { SuisInputTextComponent };
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisInputTextComponent, decorators: [{
|
51
|
-
type: Component,
|
52
|
-
args: [{ selector: 'suis-input-text', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
53
|
-
{
|
54
|
-
provide: NG_VALUE_ACCESSOR,
|
55
|
-
multi: true,
|
56
|
-
useExisting: forwardRef(() => SuisInputTextComponent),
|
57
|
-
},
|
58
|
-
], template: "<input\n class=\"suis-input-text\"\n [class.suis-input-text--invalid]=\"invalid\"\n [type]=\"type\"\n [value]=\"value\"\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n (keydown.enter)=\"onEnter()\"\n/>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-input-text{width:100%;background-color:#fff;box-shadow:0 2px 5px #00000040;border-radius:.25rem;padding:.5rem 1rem;border:0;min-height:2rem}.suis-input-text:focus{box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-text--invalid{box-shadow:0 2px 5px #ff4757bf}\n"] }]
|
59
|
-
}], propDecorators: { type: [{
|
60
|
-
type: Input
|
61
|
-
}], placeholder: [{
|
62
|
-
type: Input
|
63
|
-
}], enterPressed: [{
|
64
|
-
type: Output
|
65
|
-
}] } });
|
66
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC10ZXh0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1pbnB1dC10ZXh0L3N1aXMtaW5wdXQtdGV4dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtdGV4dC9zdWlzLWlucHV0LXRleHQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04sVUFBVSxHQUNYLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFB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aWRcIlxuICBbdHlwZV09XCJ0eXBlXCJcbiAgW3ZhbHVlXT1cInZhbHVlXCJcbiAgW3BsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcbiAgW2Rpc2FibGVkXT1cInJlYWRvbmx5XCJcbiAgKGlucHV0KT1cIm9uQ2hhbmdlKCRldmVudClcIlxuICAoZm9jdXMpPVwib25Ub3VjaCgpXCJcbiAgKGtleWRvd24uZW50ZXIpPVwib25FbnRlcigpXCJcbi8+XG4iXX0=
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC10ZXh0LnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLWlucHV0LXRleHQvc3Vpcy1pbnB1dC10ZXh0LnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBTdWlzSW5wdXRUZXh0VHlwZSA9ICd0ZXh0JyB8ICdwYXNzd29yZCc7XG4iXX0=
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
2
|
-
import { SuisInputTextType } from './suis-input-text.types';
|
3
|
-
import { SuisInputBase } from '../../shared/classes/suis-input.base';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export declare class SuisInputTextComponent extends SuisInputBase {
|
6
|
-
/**
|
7
|
-
* Sets input's type to one of the accepted values - 'text' or 'password'. By default set to 'text'.
|
8
|
-
*/
|
9
|
-
type: SuisInputTextType;
|
10
|
-
/**
|
11
|
-
* Placeholder text displayed in input. By default set to empty string.
|
12
|
-
*/
|
13
|
-
placeholder: string;
|
14
|
-
/**
|
15
|
-
* Emits on keydown enter input event.
|
16
|
-
*/
|
17
|
-
enterPressed: EventEmitter<void>;
|
18
|
-
/** @internal */
|
19
|
-
value: string;
|
20
|
-
writeValue(obj: string): void;
|
21
|
-
onChange(event: Event): void;
|
22
|
-
onEnter(): void;
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputTextComponent, never>;
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputTextComponent, "suis-input-text", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "enterPressed": "enterPressed"; }, never, never, true, never>;
|
25
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export type SuisInputTextType = 'text' | 'password';
|