suis 0.26.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -0
- package/esm2022/lib/components/index.mjs +3 -1
- package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +8 -28
- 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-toggle/index.mjs +2 -0
- package/esm2022/lib/components/suis-toggle/suis-toggle.component.mjs +28 -0
- package/esm2022/lib/shared/classes/index.mjs +2 -1
- package/esm2022/lib/shared/classes/suis-checkbox.base.mjs +42 -0
- package/fesm2022/suis.mjs +102 -11
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/suis-input-checkbox/suis-input-checkbox.component.d.ts +3 -11
- 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-toggle/index.d.ts +1 -0
- package/lib/components/suis-toggle/suis-toggle.component.d.ts +6 -0
- package/lib/shared/classes/index.d.ts +1 -0
- package/lib/shared/classes/suis-checkbox.base.d.ts +18 -0
- package/package.json +1 -1
@@ -12,6 +12,7 @@ export * from './suis-input';
|
|
12
12
|
export * from './suis-input-checkbox';
|
13
13
|
export * from './suis-input-chips';
|
14
14
|
export * from './suis-input-number';
|
15
|
+
export * from './suis-input-radio';
|
15
16
|
export * from './suis-label';
|
16
17
|
export * from './suis-navigation';
|
17
18
|
export * from './suis-navigation-group';
|
@@ -29,4 +30,5 @@ export * from './suis-spinner-container';
|
|
29
30
|
export * from './suis-table';
|
30
31
|
export * from './suis-tabs';
|
31
32
|
export * from './suis-title';
|
33
|
+
export * from './suis-toggle';
|
32
34
|
export * from './suis-toolbar';
|
@@ -1,17 +1,9 @@
|
|
1
|
-
import { SuisInputBase } from '../../shared/classes/suis-input.base';
|
2
1
|
import { SuisIconType } from '../suis-icon';
|
2
|
+
import { SuisCheckboxBase } from '../../shared/classes/suis-checkbox.base';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class SuisInputCheckboxComponent extends
|
4
|
+
export declare class SuisInputCheckboxComponent extends SuisCheckboxBase {
|
5
5
|
/** @internal */
|
6
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
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputCheckboxComponent, never>;
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputCheckboxComponent, "suis-input-checkbox", never, {
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputCheckboxComponent, "suis-input-checkbox", never, {}, {}, never, ["*"], true, never>;
|
17
9
|
}
|
@@ -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
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-toggle.component';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { SuisCheckboxBase } from '../../shared/classes/suis-checkbox.base';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class SuisToggleComponent extends SuisCheckboxBase {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisToggleComponent, never>;
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisToggleComponent, "suis-toggle", never, {}, {}, never, ["*"], true, never>;
|
6
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
2
|
+
import { SuisInputBase } from './suis-input.base';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare abstract class SuisCheckboxBase extends SuisInputBase implements AfterViewInit {
|
5
|
+
/** @internal */
|
6
|
+
checkboxInput?: ElementRef;
|
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
|
+
ngAfterViewInit(): void;
|
14
|
+
writeValue(obj: boolean): void;
|
15
|
+
onChange(event: Event): void;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisCheckboxBase, never>;
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisCheckboxBase, never, never, { "required": { "alias": "required"; "required": false; }; }, {}, never, never, false, never>;
|
18
|
+
}
|