@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.
Files changed (76) hide show
  1. package/bundles/ifsworld-granite-components.umd.js +444 -4
  2. package/bundles/ifsworld-granite-components.umd.js.map +1 -1
  3. package/bundles/ifsworld-granite-components.umd.min.js +3 -3
  4. package/bundles/ifsworld-granite-components.umd.min.js.map +1 -1
  5. package/esm2015/ifsworld-granite-components.js +5 -0
  6. package/esm2015/ifsworld-granite-components.js.map +1 -1
  7. package/esm2015/ifsworld-granite-components.metadata.json +1 -1
  8. package/esm2015/index.js +7 -0
  9. package/esm2015/index.js.map +1 -1
  10. package/esm2015/index.metadata.json +1 -1
  11. package/esm2015/lib/core/pipes/pure-pipes.module.js +11 -0
  12. package/esm2015/lib/core/pipes/pure-pipes.module.js.map +1 -0
  13. package/esm2015/lib/core/pipes/pure-pipes.module.metadata.json +1 -0
  14. package/esm2015/lib/core/pipes/title.pipe.js +17 -0
  15. package/esm2015/lib/core/pipes/title.pipe.js.map +1 -0
  16. package/esm2015/lib/core/pipes/title.pipe.metadata.json +1 -0
  17. package/esm2015/lib/core/types.js +2 -0
  18. package/esm2015/lib/core/types.js.map +1 -0
  19. package/esm2015/lib/core/types.metadata.json +1 -0
  20. package/esm2015/lib/input-field/input-field.component.js +144 -0
  21. package/esm2015/lib/input-field/input-field.component.js.map +1 -0
  22. package/esm2015/lib/input-field/input-field.component.metadata.json +1 -0
  23. package/esm2015/lib/input-field/input-field.module.js +15 -0
  24. package/esm2015/lib/input-field/input-field.module.js.map +1 -0
  25. package/esm2015/lib/input-field/input-field.module.metadata.json +1 -0
  26. package/esm2015/lib/radio-button/radio-button.component.js +109 -0
  27. package/esm2015/lib/radio-button/radio-button.component.js.map +1 -0
  28. package/esm2015/lib/radio-button/radio-button.component.metadata.json +1 -0
  29. package/esm2015/lib/radio-button/radio-button.module.js +11 -0
  30. package/esm2015/lib/radio-button/radio-button.module.js.map +1 -0
  31. package/esm2015/lib/radio-button/radio-button.module.metadata.json +1 -0
  32. package/esm2015/lib/table/cell/cell.js +12 -0
  33. package/esm2015/lib/table/cell/cell.js.map +1 -0
  34. package/esm2015/lib/table/cell/cell.metadata.json +1 -0
  35. package/esm2015/lib/table/cell/table-data-cell.component.js +20 -0
  36. package/esm2015/lib/table/cell/table-data-cell.component.js.map +1 -0
  37. package/esm2015/lib/table/cell/table-data-cell.component.metadata.json +1 -0
  38. package/esm2015/lib/table/cell/table-header-cell.component.js +13 -0
  39. package/esm2015/lib/table/cell/table-header-cell.component.js.map +1 -0
  40. package/esm2015/lib/table/cell/table-header-cell.component.metadata.json +1 -0
  41. package/esm2015/lib/table/column/table-column.directive.js +16 -0
  42. package/esm2015/lib/table/column/table-column.directive.js.map +1 -0
  43. package/esm2015/lib/table/column/table-column.directive.metadata.json +1 -0
  44. package/esm2015/lib/table/table-constants.library.js +4 -0
  45. package/esm2015/lib/table/table-constants.library.js.map +1 -0
  46. package/esm2015/lib/table/table-constants.library.metadata.json +1 -0
  47. package/esm2015/lib/table/table.component.js +28 -0
  48. package/esm2015/lib/table/table.component.js.map +1 -0
  49. package/esm2015/lib/table/table.component.metadata.json +1 -0
  50. package/esm2015/lib/table/table.module.js +24 -0
  51. package/esm2015/lib/table/table.module.js.map +1 -0
  52. package/esm2015/lib/table/table.module.metadata.json +1 -0
  53. package/esm2015/lib/toggle-switch/toggle-switch.component.js.map +1 -1
  54. package/esm2015/lib/toggle-switch/toggle-switch.component.metadata.json +1 -1
  55. package/fesm2015/ifsworld-granite-components.js +392 -2
  56. package/fesm2015/ifsworld-granite-components.js.map +1 -1
  57. package/ifsworld-granite-components.d.ts +5 -0
  58. package/ifsworld-granite-components.metadata.json +1 -1
  59. package/index.d.ts +7 -0
  60. package/lib/core/pipes/pure-pipes.module.d.ts +2 -0
  61. package/lib/core/pipes/title.pipe.d.ts +4 -0
  62. package/lib/core/types.d.ts +1 -0
  63. package/lib/input-field/input-field.component.d.ts +39 -0
  64. package/lib/input-field/input-field.module.d.ts +2 -0
  65. package/lib/radio-button/radio-button.component.d.ts +32 -0
  66. package/lib/radio-button/radio-button.module.d.ts +2 -0
  67. package/lib/table/cell/cell.d.ts +5 -0
  68. package/lib/table/cell/table-data-cell.component.d.ts +10 -0
  69. package/lib/table/cell/table-header-cell.component.d.ts +3 -0
  70. package/lib/table/column/table-column.directive.d.ts +13 -0
  71. package/lib/table/table-constants.library.d.ts +3 -0
  72. package/lib/table/table.component.d.ts +16 -0
  73. package/lib/table/table.module.d.ts +2 -0
  74. package/lib/toggle-switch/toggle-switch.component.d.ts +1 -1
  75. package/package.json +1 -1
  76. 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,2 @@
1
+ export declare class PurePipesModule {
2
+ }
@@ -0,0 +1,4 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ export declare class GraniteTitlePipe implements PipeTransform {
3
+ transform(value: string): string;
4
+ }
@@ -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,2 @@
1
+ export declare class GraniteInputFieldModule {
2
+ }
@@ -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,2 @@
1
+ export declare class GraniteRadioButtonModule {
2
+ }
@@ -0,0 +1,5 @@
1
+ import { GraniteTableColumnDirective } from '../column/table-column.directive';
2
+ export declare abstract class GraniteCell {
3
+ id: string;
4
+ column: GraniteTableColumnDirective;
5
+ }
@@ -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,3 @@
1
+ import { GraniteCell } from './cell';
2
+ export declare class GraniteTableHeaderCellComponent extends GraniteCell {
3
+ }
@@ -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,3 @@
1
+ export declare class TableConstants {
2
+ static readonly CELL_ID_PREFIX: string;
3
+ }
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ export declare class GraniteTableModule {
2
+ }
@@ -1,6 +1,6 @@
1
1
  import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
2
2
  import { OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
3
- export declare type Position = 'before' | 'after';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifsworld/granite-components",
3
- "version": "3.0.0",
3
+ "version": "3.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=11.2.13",
6
6
  "@angular/common": ">=11.2.14",
@@ -1,4 +1,5 @@
1
1
  @use 'tokens' as *;
2
+ @use 'range-functions' as *;
2
3
 
3
4
  /**
4
5
  * Helper variables for media queries. Makes sure we use standard queries and not make up our own