suis 0.25.0 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -1
- package/esm2022/lib/components/index.mjs +4 -2
- 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-input-radio/index.mjs +2 -0
- package/esm2022/lib/components/suis-input-radio/suis-input-radio.component.mjs +58 -0
- package/esm2022/lib/components/suis-label/suis-label.component.mjs +18 -4
- package/esm2022/lib/shared/classes/suis-input.base.mjs +7 -3
- package/fesm2022/suis.mjs +143 -27
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +3 -1
- 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-input-radio/index.d.ts +1 -0
- package/lib/components/suis-input-radio/suis-input-radio.component.d.ts +26 -0
- package/lib/components/suis-label/suis-label.component.d.ts +13 -1
- 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,11 @@ 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-
|
15
|
+
export * from './suis-input-radio';
|
14
16
|
export * from './suis-label';
|
15
17
|
export * from './suis-navigation';
|
16
18
|
export * from './suis-navigation-group';
|
@@ -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
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-input-radio.component';
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
2
|
+
import { RadioControlValueAccessor } from '@angular/forms';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisInputRadioComponent extends RadioControlValueAccessor implements AfterViewInit {
|
5
|
+
/** @internal */
|
6
|
+
radioInput?: ElementRef;
|
7
|
+
/**
|
8
|
+
* Sets HTML id attribute of the input. By default is undefined.
|
9
|
+
*/
|
10
|
+
id?: string;
|
11
|
+
/**
|
12
|
+
* Sets input disabled state. By default set to false.
|
13
|
+
*/
|
14
|
+
readonly: boolean;
|
15
|
+
/**
|
16
|
+
* Adds invalid styling to the input. By default set to false.
|
17
|
+
*/
|
18
|
+
invalid: boolean;
|
19
|
+
/**
|
20
|
+
* Sets input checked state to true. By default set to false.
|
21
|
+
*/
|
22
|
+
default: boolean;
|
23
|
+
ngAfterViewInit(): void;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputRadioComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputRadioComponent, "suis-input-radio", never, { "id": { "alias": "id"; "required": true; }; "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "default": { "alias": "default"; "required": false; }; }, {}, never, ["*"], true, never>;
|
26
|
+
}
|
@@ -1,9 +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;
|
11
|
+
/**
|
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.
|
17
|
+
*/
|
18
|
+
readonly: boolean;
|
7
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisLabelComponent, never>;
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisLabelComponent, "suis-label", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, ["*", "[suisLabelAside]"], true, never>;
|
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>;
|
9
21
|
}
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC10ZXh0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1pbnB1dC10ZXh0L3N1aXMtaW5wdXQtdGV4dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtdGV4dC9zdWlzLWlucHV0LXRleHQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04sVUFBVSxHQUNYLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsaUJBQWlC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WNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcbiAgW2Rpc2FibGVkXT1cInJlYWRvbmx5XCJcbiAgKGlucHV0KT1cIm9uQ2hhbmdlKCRldmVudClcIlxuICAoZm9jdXMpPVwib25Ub3VjaCgpXCJcbiAgKGtleWRvd24uZW50ZXIpPVwib25FbnRlcigpXCJcbi8+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';
|