@clr/angular 13.1.0 → 13.2.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 (33) hide show
  1. package/clarity.api.md +72 -25
  2. package/clr-angular.module.d.ts +13 -12
  3. package/data/tree-view/models/tree-node.model.d.ts +1 -0
  4. package/data/tree-view/tree-focus-manager.service.d.ts +6 -0
  5. package/data/tree-view/tree-node.d.ts +9 -4
  6. package/esm2020/clr-angular.module.mjs +5 -1
  7. package/esm2020/data/tree-view/models/tree-node.model.mjs +1 -1
  8. package/esm2020/data/tree-view/tree-focus-manager.service.mjs +69 -1
  9. package/esm2020/data/tree-view/tree-node.mjs +45 -16
  10. package/esm2020/forms/datepicker/calendar.mjs +3 -3
  11. package/esm2020/layout/nav/aria-current-link.mjs +28 -0
  12. package/esm2020/layout/nav/index.mjs +2 -1
  13. package/esm2020/layout/nav/navigation.module.mjs +5 -1
  14. package/esm2020/utils/focus/key-focus/util.mjs +6 -1
  15. package/esm2020/utils/for-type-ahead/for-type-ahead.mjs +54 -0
  16. package/esm2020/utils/for-type-ahead/for-type-ahead.module.mjs +23 -0
  17. package/esm2020/utils/for-type-ahead/for-type-ahead.service.mjs +29 -0
  18. package/esm2020/utils/for-type-ahead/index.mjs +8 -0
  19. package/esm2020/utils/index.mjs +2 -1
  20. package/fesm2015/clr-angular.mjs +238 -5
  21. package/fesm2015/clr-angular.mjs.map +1 -1
  22. package/fesm2020/clr-angular.mjs +238 -5
  23. package/fesm2020/clr-angular.mjs.map +1 -1
  24. package/layout/nav/aria-current-link.d.ts +13 -0
  25. package/layout/nav/index.d.ts +1 -0
  26. package/layout/nav/navigation.module.d.ts +7 -6
  27. package/package.json +1 -1
  28. package/utils/focus/key-focus/util.d.ts +1 -0
  29. package/utils/for-type-ahead/for-type-ahead.d.ts +15 -0
  30. package/utils/for-type-ahead/for-type-ahead.module.d.ts +8 -0
  31. package/utils/for-type-ahead/for-type-ahead.service.d.ts +11 -0
  32. package/utils/for-type-ahead/index.d.ts +2 -0
  33. package/utils/index.d.ts +1 -0
@@ -0,0 +1,13 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { RouterLinkActive } from '@angular/router';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ClrAriaCurrentLink implements OnInit, OnDestroy {
5
+ private rla;
6
+ ariaCurrent: string | undefined;
7
+ private subscription;
8
+ constructor(rla: RouterLinkActive);
9
+ ngOnInit(): void;
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClrAriaCurrentLink, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClrAriaCurrentLink, "[clrAriaCurrentLink]", never, {}, {}, never>;
13
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './chocolate/index';
2
2
  export * from './header';
3
3
  export * from './nav-level';
4
+ export * from './aria-current-link';
4
5
  export * from './navigation.module';
@@ -2,14 +2,15 @@ import { Type } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./header";
4
4
  import * as i2 from "./nav-level";
5
- import * as i3 from "./chocolate/nav-detection-oompa-loompa";
6
- import * as i4 from "./chocolate/main-container-willy-wonka";
7
- import * as i5 from "@angular/common";
8
- import * as i6 from "../../icon/icon.module";
9
- import * as i7 from "../../popover/dropdown/dropdown.module";
5
+ import * as i3 from "./aria-current-link";
6
+ import * as i4 from "./chocolate/nav-detection-oompa-loompa";
7
+ import * as i5 from "./chocolate/main-container-willy-wonka";
8
+ import * as i6 from "@angular/common";
9
+ import * as i7 from "../../icon/icon.module";
10
+ import * as i8 from "../../popover/dropdown/dropdown.module";
10
11
  export declare const CLR_NAVIGATION_DIRECTIVES: Type<any>[];
11
12
  export declare class ClrNavigationModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ClrNavigationModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<ClrNavigationModule, [typeof i1.ClrHeader, typeof i2.ClrNavLevel, typeof i3.NavDetectionOompaLoompa, typeof i4.MainContainerWillyWonka], [typeof i5.CommonModule, typeof i6.ClrIconModule, typeof i7.ClrDropdownModule], [typeof i1.ClrHeader, typeof i2.ClrNavLevel, typeof i3.NavDetectionOompaLoompa, typeof i4.MainContainerWillyWonka]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ClrNavigationModule, [typeof i1.ClrHeader, typeof i2.ClrNavLevel, typeof i3.ClrAriaCurrentLink, typeof i4.NavDetectionOompaLoompa, typeof i5.MainContainerWillyWonka], [typeof i6.CommonModule, typeof i7.ClrIconModule, typeof i8.ClrDropdownModule], [typeof i1.ClrHeader, typeof i2.ClrNavLevel, typeof i3.ClrAriaCurrentLink, typeof i4.NavDetectionOompaLoompa, typeof i5.MainContainerWillyWonka]>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<ClrNavigationModule>;
15
16
  }
package/package.json CHANGED
@@ -45,5 +45,5 @@
45
45
  "dependencies": {
46
46
  "tslib": "^2.3.0"
47
47
  },
48
- "version": "13.1.0"
48
+ "version": "13.2.0"
49
49
  }
@@ -1,2 +1,3 @@
1
1
  export declare function keyValidator(key: string): string;
2
2
  export declare function preventArrowKeyScroll(event: KeyboardEvent): void;
3
+ export declare function isKeyEitherLetterOrNumber(event: KeyboardEvent): boolean;
@@ -0,0 +1,15 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ForTypeAheadProvider } from './for-type-ahead.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ClrForTypeAhead {
5
+ private el;
6
+ private forTypeAheadProvider;
7
+ constructor(el: ElementRef, forTypeAheadProvider: ForTypeAheadProvider);
8
+ private trimAndLowerCase;
9
+ private _content;
10
+ get content(): string;
11
+ set content(value: string);
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClrForTypeAhead, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClrForTypeAhead, "[clrForTypeAhead]", never, { "content": "clrForTypeAhead"; }, {}, never>;
15
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./for-type-ahead";
3
+ import * as i2 from "@angular/common";
4
+ export declare class ClrForTypeAheadModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClrForTypeAheadModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ClrForTypeAheadModule, [typeof i1.ClrForTypeAhead], [typeof i2.CommonModule], [typeof i1.ClrForTypeAhead]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ClrForTypeAheadModule>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ForTypeAheadProvider {
4
+ private _textContentChange;
5
+ get textContentChange(): Observable<string>;
6
+ private _textContent;
7
+ get textContent(): string;
8
+ set textContent(value: string);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ForTypeAheadProvider, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ForTypeAheadProvider>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export { ClrForTypeAhead } from './for-type-ahead';
2
+ export { ClrForTypeAheadModule } from './for-type-ahead.module';
package/utils/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './popover/index';
8
8
  export * from './focus/focus-on-view-init/index';
9
9
  export * from './focus-trap/index';
10
10
  export * from './destroy';
11
+ export * from './for-type-ahead/index';