@ifsworld/granite-components 3.0.0 → 3.3.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/bundles/ifsworld-granite-components.umd.js +444 -4
- package/bundles/ifsworld-granite-components.umd.js.map +1 -1
- package/bundles/ifsworld-granite-components.umd.min.js +3 -3
- package/bundles/ifsworld-granite-components.umd.min.js.map +1 -1
- package/esm2015/ifsworld-granite-components.js +5 -0
- package/esm2015/ifsworld-granite-components.js.map +1 -1
- package/esm2015/ifsworld-granite-components.metadata.json +1 -1
- package/esm2015/index.js +7 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/index.metadata.json +1 -1
- package/esm2015/lib/core/pipes/pure-pipes.module.js +11 -0
- package/esm2015/lib/core/pipes/pure-pipes.module.js.map +1 -0
- package/esm2015/lib/core/pipes/pure-pipes.module.metadata.json +1 -0
- package/esm2015/lib/core/pipes/title.pipe.js +17 -0
- package/esm2015/lib/core/pipes/title.pipe.js.map +1 -0
- package/esm2015/lib/core/pipes/title.pipe.metadata.json +1 -0
- package/esm2015/lib/core/types.js +2 -0
- package/esm2015/lib/core/types.js.map +1 -0
- package/esm2015/lib/core/types.metadata.json +1 -0
- package/esm2015/lib/input-field/input-field.component.js +144 -0
- package/esm2015/lib/input-field/input-field.component.js.map +1 -0
- package/esm2015/lib/input-field/input-field.component.metadata.json +1 -0
- package/esm2015/lib/input-field/input-field.module.js +15 -0
- package/esm2015/lib/input-field/input-field.module.js.map +1 -0
- package/esm2015/lib/input-field/input-field.module.metadata.json +1 -0
- package/esm2015/lib/radio-button/radio-button.component.js +109 -0
- package/esm2015/lib/radio-button/radio-button.component.js.map +1 -0
- package/esm2015/lib/radio-button/radio-button.component.metadata.json +1 -0
- package/esm2015/lib/radio-button/radio-button.module.js +11 -0
- package/esm2015/lib/radio-button/radio-button.module.js.map +1 -0
- package/esm2015/lib/radio-button/radio-button.module.metadata.json +1 -0
- package/esm2015/lib/table/cell/cell.js +12 -0
- package/esm2015/lib/table/cell/cell.js.map +1 -0
- package/esm2015/lib/table/cell/cell.metadata.json +1 -0
- package/esm2015/lib/table/cell/table-data-cell.component.js +20 -0
- package/esm2015/lib/table/cell/table-data-cell.component.js.map +1 -0
- package/esm2015/lib/table/cell/table-data-cell.component.metadata.json +1 -0
- package/esm2015/lib/table/cell/table-header-cell.component.js +13 -0
- package/esm2015/lib/table/cell/table-header-cell.component.js.map +1 -0
- package/esm2015/lib/table/cell/table-header-cell.component.metadata.json +1 -0
- package/esm2015/lib/table/column/table-column.directive.js +16 -0
- package/esm2015/lib/table/column/table-column.directive.js.map +1 -0
- package/esm2015/lib/table/column/table-column.directive.metadata.json +1 -0
- package/esm2015/lib/table/table-constants.library.js +4 -0
- package/esm2015/lib/table/table-constants.library.js.map +1 -0
- package/esm2015/lib/table/table-constants.library.metadata.json +1 -0
- package/esm2015/lib/table/table.component.js +28 -0
- package/esm2015/lib/table/table.component.js.map +1 -0
- package/esm2015/lib/table/table.component.metadata.json +1 -0
- package/esm2015/lib/table/table.module.js +24 -0
- package/esm2015/lib/table/table.module.js.map +1 -0
- package/esm2015/lib/table/table.module.metadata.json +1 -0
- 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 +392 -2
- package/fesm2015/ifsworld-granite-components.js.map +1 -1
- package/ifsworld-granite-components.d.ts +5 -0
- package/ifsworld-granite-components.metadata.json +1 -1
- package/index.d.ts +7 -0
- package/lib/core/pipes/pure-pipes.module.d.ts +2 -0
- package/lib/core/pipes/title.pipe.d.ts +4 -0
- package/lib/core/types.d.ts +1 -0
- package/lib/input-field/input-field.component.d.ts +39 -0
- package/lib/input-field/input-field.module.d.ts +2 -0
- package/lib/radio-button/radio-button.component.d.ts +32 -0
- package/lib/radio-button/radio-button.module.d.ts +2 -0
- package/lib/table/cell/cell.d.ts +5 -0
- package/lib/table/cell/table-data-cell.component.d.ts +10 -0
- package/lib/table/cell/table-header-cell.component.d.ts +3 -0
- package/lib/table/column/table-column.directive.d.ts +13 -0
- package/lib/table/table-constants.library.d.ts +3 -0
- package/lib/table/table.component.d.ts +16 -0
- package/lib/table/table.module.d.ts +2 -0
- package/lib/toggle-switch/toggle-switch.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/core/style/_responsive.scss +1 -0
package/index.d.ts
CHANGED
|
@@ -20,8 +20,15 @@ export * from './lib/icon/icon.module';
|
|
|
20
20
|
export * from './lib/icon/icon.component';
|
|
21
21
|
export * from './lib/toggle-switch/toggle-switch.module';
|
|
22
22
|
export * from './lib/toggle-switch/toggle-switch.component';
|
|
23
|
+
export * from './lib/radio-button/radio-button.module';
|
|
24
|
+
export * from './lib/radio-button/radio-button.component';
|
|
23
25
|
export * from './lib/button/button.module';
|
|
24
26
|
export * from './lib/button/button.component';
|
|
27
|
+
export * from './lib/table/table.module';
|
|
28
|
+
export * from './lib/table/table.component';
|
|
29
|
+
export * from './lib/table/column/table-column.directive';
|
|
30
|
+
export * from './lib/input-field/input-field.module';
|
|
31
|
+
export * from './lib/input-field/input-field.component';
|
|
25
32
|
export * from './lib/core/client-environment';
|
|
26
33
|
export * from './lib/core/core.module';
|
|
27
34
|
export * from './lib/core/devices/client-output-touch.directive';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Position = 'before' | 'after';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
2
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
|
+
export declare class GraniteInputFieldComponent implements OnInit, OnChanges {
|
|
4
|
+
private _focusMonitor;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
type: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
required: boolean;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
invalid: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
prefixicon: string;
|
|
15
|
+
maxlength: number;
|
|
16
|
+
countcharacters: boolean;
|
|
17
|
+
ariaLabel: string | null;
|
|
18
|
+
ariaLabelledby: string | null;
|
|
19
|
+
valueChange: EventEmitter<string>;
|
|
20
|
+
private _inputElement;
|
|
21
|
+
private _textareaElement;
|
|
22
|
+
_supported: boolean;
|
|
23
|
+
_empty: boolean;
|
|
24
|
+
_passwordFieldIcon: string;
|
|
25
|
+
_passwordField: boolean;
|
|
26
|
+
private _passwordToggled;
|
|
27
|
+
private _currentCharCount;
|
|
28
|
+
constructor(_focusMonitor: FocusMonitor);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
31
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
32
|
+
_togglePassword(): void;
|
|
33
|
+
_onKeyUp(event: KeyboardEvent): void;
|
|
34
|
+
_onInput(event: KeyboardEvent): void;
|
|
35
|
+
protected _validateType(): void;
|
|
36
|
+
private _applyCharacterCount;
|
|
37
|
+
private _getInputElement;
|
|
38
|
+
private _getTextareaElement;
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
3
|
+
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
|
|
4
|
+
import { Position } from '../core/types';
|
|
5
|
+
export declare class GraniteRadioButtonComponent implements OnChanges, OnDestroy {
|
|
6
|
+
private _focusMonitor;
|
|
7
|
+
private _radioDispatcher;
|
|
8
|
+
value: any;
|
|
9
|
+
id: string | null;
|
|
10
|
+
name: string;
|
|
11
|
+
checked: boolean;
|
|
12
|
+
required: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
labelPosition: Position;
|
|
16
|
+
ariaLabel: string | null;
|
|
17
|
+
ariaLabelledby: string | null;
|
|
18
|
+
readonly radioChange: EventEmitter<any>;
|
|
19
|
+
readonly radioBlur: EventEmitter<void>;
|
|
20
|
+
private _inputElement;
|
|
21
|
+
_positionBefore: boolean;
|
|
22
|
+
_radioDisabled: boolean;
|
|
23
|
+
constructor(_focusMonitor: FocusMonitor, _radioDispatcher: UniqueSelectionDispatcher);
|
|
24
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
27
|
+
_radioClick(targetValue: string): void;
|
|
28
|
+
_radioChange(): void;
|
|
29
|
+
_onBlur(): void;
|
|
30
|
+
private _getInputElement;
|
|
31
|
+
private _removeUniqueSelectionListener;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { GraniteCell } from './cell';
|
|
3
|
+
export declare type StaticType = 'text' | 'badge';
|
|
4
|
+
export declare class GraniteTableDataCellComponent extends GraniteCell {
|
|
5
|
+
value: any;
|
|
6
|
+
staticType: StaticType;
|
|
7
|
+
rowIndex: number;
|
|
8
|
+
columnIndex: number;
|
|
9
|
+
tableCellTemplateRef: TemplateRef<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { StaticType } from '../cell/table-data-cell.component';
|
|
3
|
+
export interface GraniteTableColumnInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
staticType?: StaticType;
|
|
7
|
+
}
|
|
8
|
+
export declare class GraniteTableColumnDirective implements GraniteTableColumnInterface {
|
|
9
|
+
name: string;
|
|
10
|
+
title: string;
|
|
11
|
+
staticType: StaticType;
|
|
12
|
+
tableCellTemplateRef: TemplateRef<any>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DataSource } from '@angular/cdk/table';
|
|
2
|
+
import { TrackByFunction, QueryList, AfterContentInit } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { GraniteTableColumnDirective } from './column/table-column.directive';
|
|
5
|
+
declare type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
|
|
6
|
+
export declare class GraniteTableComponent<T> implements AfterContentInit {
|
|
7
|
+
dataSource: CdkTableDataSourceInput<T>;
|
|
8
|
+
trackBy: TrackByFunction<T>;
|
|
9
|
+
ariaLabel: string | null;
|
|
10
|
+
tableColumnsComponent: QueryList<GraniteTableColumnDirective>;
|
|
11
|
+
readonly cellIdPrefix: string;
|
|
12
|
+
columns: GraniteTableColumnDirective[];
|
|
13
|
+
renderedColumns: string[];
|
|
14
|
+
ngAfterContentInit(): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
2
2
|
import { OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
3
|
-
|
|
3
|
+
import { Position } from '../core/types';
|
|
4
4
|
export declare class GraniteToggleSwitchComponent implements OnChanges {
|
|
5
5
|
private _focusMonitor;
|
|
6
6
|
id: string | null;
|
package/package.json
CHANGED