@ifsworld/granite-components 3.4.0 → 3.5.2
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/bundles/ifsworld-granite-components.umd.js +128 -17
- package/bundles/ifsworld-granite-components.umd.js.map +1 -1
- package/bundles/ifsworld-granite-components.umd.min.js +2 -17
- package/bundles/ifsworld-granite-components.umd.min.js.map +1 -1
- package/esm2015/index.js +2 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/index.metadata.json +1 -1
- package/esm2015/lib/badge/badge.component.js +1 -1
- package/esm2015/lib/badge/badge.component.metadata.json +1 -1
- package/esm2015/lib/button/button.component.js +2 -2
- package/esm2015/lib/button/button.component.metadata.json +1 -1
- package/esm2015/lib/checkbox/checkbox.component.js +89 -0
- package/esm2015/lib/checkbox/checkbox.component.js.map +1 -0
- package/esm2015/lib/checkbox/checkbox.component.metadata.json +1 -0
- package/esm2015/lib/checkbox/checkbox.module.js +11 -0
- package/esm2015/lib/checkbox/checkbox.module.js.map +1 -0
- package/esm2015/lib/checkbox/checkbox.module.metadata.json +1 -0
- package/esm2015/lib/input-field/input-field.component.js +2 -2
- package/esm2015/lib/input-field/input-field.component.js.map +1 -1
- package/esm2015/lib/input-field/input-field.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu-item.component.js +1 -1
- package/esm2015/lib/menu/menu-item.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu-touch-close.component.js +1 -1
- package/esm2015/lib/menu/menu-touch-close.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu-touch-title.component.js +1 -1
- package/esm2015/lib/menu/menu-touch-title.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu.component.js +1 -1
- package/esm2015/lib/menu/menu.component.metadata.json +1 -1
- package/esm2015/lib/radio-button/radio-button.component.js +4 -4
- package/esm2015/lib/radio-button/radio-button.component.js.map +1 -1
- package/esm2015/lib/radio-button/radio-button.component.metadata.json +1 -1
- package/esm2015/lib/table/table.component.js +1 -1
- package/esm2015/lib/table/table.component.metadata.json +1 -1
- package/esm2015/lib/toggle-switch/toggle-switch.component.js +1 -1
- package/esm2015/lib/toggle-switch/toggle-switch.component.js.map +1 -1
- package/esm2015/lib/toggle-switch/toggle-switch.component.metadata.json +1 -1
- package/fesm2015/ifsworld-granite-components.js +111 -16
- package/fesm2015/ifsworld-granite-components.js.map +1 -1
- package/ifsworld-granite-components.metadata.json +1 -1
- package/index.d.ts +2 -0
- package/lib/checkbox/checkbox.component.d.ts +26 -0
- package/lib/checkbox/checkbox.module.d.ts +2 -0
- package/lib/input-field/input-field.component.d.ts +3 -3
- package/lib/radio-button/radio-button.component.d.ts +1 -1
- package/lib/toggle-switch/toggle-switch.component.d.ts +3 -3
- package/package.json +2 -2
- package/src/lib/core/style/_tokens.scss +7 -0
package/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export * from './lib/toggle-switch/toggle-switch.module';
|
|
|
22
22
|
export * from './lib/toggle-switch/toggle-switch.component';
|
|
23
23
|
export * from './lib/radio-button/radio-button.module';
|
|
24
24
|
export * from './lib/radio-button/radio-button.component';
|
|
25
|
+
export * from './lib/checkbox/checkbox.module';
|
|
26
|
+
export * from './lib/checkbox/checkbox.component';
|
|
25
27
|
export * from './lib/button/button.module';
|
|
26
28
|
export * from './lib/button/button.component';
|
|
27
29
|
export * from './lib/table/table.module';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
2
|
+
import { OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Position } from '../core/types';
|
|
4
|
+
export declare class GraniteCheckboxComponent implements OnChanges {
|
|
5
|
+
private _focusMonitor;
|
|
6
|
+
id: string | null;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
labelPosition: Position;
|
|
11
|
+
ariaLabel: string | null;
|
|
12
|
+
ariaLabelledby: string | null;
|
|
13
|
+
readonly valueChange: EventEmitter<boolean>;
|
|
14
|
+
readonly checkboxChange: EventEmitter<void>;
|
|
15
|
+
readonly checkboxBlur: EventEmitter<void>;
|
|
16
|
+
private _inputElement;
|
|
17
|
+
_positionBefore: boolean;
|
|
18
|
+
_checkboxDisabled: boolean;
|
|
19
|
+
constructor(_focusMonitor: FocusMonitor);
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
22
|
+
_onBlur(): void;
|
|
23
|
+
_checkboxChange(): void;
|
|
24
|
+
_checkboxClick(): void;
|
|
25
|
+
private _getInputElement;
|
|
26
|
+
}
|
|
@@ -16,22 +16,22 @@ export declare class GraniteInputFieldComponent implements OnInit, OnChanges {
|
|
|
16
16
|
countcharacters: boolean;
|
|
17
17
|
ariaLabel: string | null;
|
|
18
18
|
ariaLabelledby: string | null;
|
|
19
|
-
valueChange: EventEmitter<string>;
|
|
19
|
+
readonly valueChange: EventEmitter<string>;
|
|
20
20
|
private _inputElement;
|
|
21
21
|
private _textareaElement;
|
|
22
22
|
_supported: boolean;
|
|
23
23
|
_empty: boolean;
|
|
24
24
|
_passwordFieldIcon: string;
|
|
25
25
|
_passwordField: boolean;
|
|
26
|
+
_currentCharCount: number;
|
|
26
27
|
private _passwordToggled;
|
|
27
|
-
private _currentCharCount;
|
|
28
28
|
constructor(_focusMonitor: FocusMonitor);
|
|
29
29
|
ngOnInit(): void;
|
|
30
30
|
ngOnChanges(changes: SimpleChanges): void;
|
|
31
31
|
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
32
32
|
_togglePassword(): void;
|
|
33
33
|
_onKeyUp(event: KeyboardEvent): void;
|
|
34
|
-
_onInput(event:
|
|
34
|
+
_onInput(event: Event): void;
|
|
35
35
|
protected _validateType(): void;
|
|
36
36
|
private _applyCharacterCount;
|
|
37
37
|
private _getInputElement;
|
|
@@ -24,7 +24,7 @@ export declare class GraniteRadioButtonComponent implements OnChanges, OnDestroy
|
|
|
24
24
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
25
|
ngOnDestroy(): void;
|
|
26
26
|
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
27
|
-
_radioClick(
|
|
27
|
+
_radioClick(element: Partial<HTMLInputElement>): void;
|
|
28
28
|
_radioChange(): void;
|
|
29
29
|
_onBlur(): void;
|
|
30
30
|
private _getInputElement;
|
|
@@ -10,9 +10,9 @@ export declare class GraniteToggleSwitchComponent implements OnChanges {
|
|
|
10
10
|
labelPosition: Position;
|
|
11
11
|
ariaLabel: string | null;
|
|
12
12
|
ariaLabelledby: string | null;
|
|
13
|
-
valueChange: EventEmitter<boolean>;
|
|
14
|
-
toggleChange: EventEmitter<void>;
|
|
15
|
-
toggleBlur: EventEmitter<void>;
|
|
13
|
+
readonly valueChange: EventEmitter<boolean>;
|
|
14
|
+
readonly toggleChange: EventEmitter<void>;
|
|
15
|
+
readonly toggleBlur: EventEmitter<void>;
|
|
16
16
|
private _inputElement;
|
|
17
17
|
_positionBefore: boolean;
|
|
18
18
|
_toggleSwitchDisabled: boolean;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ifsworld/granite-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=11.2.13",
|
|
6
6
|
"@angular/common": ">=11.2.14",
|
|
7
7
|
"@angular/core": ">=11.2.14",
|
|
8
|
-
"@ifsworld/granite-icons": "^
|
|
8
|
+
"@ifsworld/granite-icons": "^1.0.2",
|
|
9
9
|
"@ifsworld/token-interfaces": "^1.0.0",
|
|
10
10
|
"@ifsworld/granite-tokens": "^3.0.0",
|
|
11
11
|
"rxjs": "~6.6.3",
|
|
@@ -4,3 +4,10 @@ $layout-breakpoint-sm: 600px !default;
|
|
|
4
4
|
$layout-breakpoint-md: 960px !default;
|
|
5
5
|
$layout-breakpoint-lg: 1280px !default;
|
|
6
6
|
$layout-breakpoint-xl: 1920px !default;
|
|
7
|
+
|
|
8
|
+
// Remove these when correct rem based tokens are exposed from design tokens
|
|
9
|
+
$granite-base-rem: 1rem;
|
|
10
|
+
$granite-border-width-regular: 0.0625rem;
|
|
11
|
+
$granite-radius-l: 1rem;
|
|
12
|
+
$granite-radius-m: 0.5rem;
|
|
13
|
+
$granite-radius-s: 0.25rem;
|