@leanix/components 0.4.108 → 0.4.110

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 (116) hide show
  1. package/esm2022/lib/core-ui/components/badge/badge.component.mjs +3 -3
  2. package/esm2022/lib/core-ui/components/banner/banner.component.mjs +3 -3
  3. package/esm2022/lib/core-ui/components/button/button.component.mjs +3 -3
  4. package/esm2022/lib/core-ui/components/button-group/button-group.component.mjs +3 -3
  5. package/esm2022/lib/core-ui/components/card/card.component.mjs +3 -3
  6. package/esm2022/lib/core-ui/components/collapsible/collapsible.component.mjs +3 -3
  7. package/esm2022/lib/core-ui/components/colored-label/colored-label.component.mjs +3 -3
  8. package/esm2022/lib/core-ui/components/ellipsis/ellipsis.component.mjs +3 -3
  9. package/esm2022/lib/core-ui/components/file-download-button/file-download-button.component.mjs +3 -3
  10. package/esm2022/lib/core-ui/components/icon-scale/icon-scale.component.mjs +3 -3
  11. package/esm2022/lib/core-ui/components/spinner/spinner.component.mjs +3 -3
  12. package/esm2022/lib/core-ui/components/table/table-header/table-header.component.mjs +3 -3
  13. package/esm2022/lib/core-ui/components/table/table.component.mjs +3 -3
  14. package/esm2022/lib/core-ui/components/tiny-spinner/tiny-spinner.component.mjs +3 -3
  15. package/esm2022/lib/core-ui/core-ui.module.mjs +4 -4
  16. package/esm2022/lib/core-ui/directives/after-view-init.directive.mjs +3 -3
  17. package/esm2022/lib/core-ui/directives/autoclose-group.service.mjs +3 -3
  18. package/esm2022/lib/core-ui/directives/autoclose.directive.mjs +3 -3
  19. package/esm2022/lib/core-ui/directives/autofocus.directive.mjs +3 -3
  20. package/esm2022/lib/core-ui/linkify/linkify.pipe.mjs +3 -3
  21. package/esm2022/lib/core-ui/linkify/unlinkify.pipe.mjs +3 -3
  22. package/esm2022/lib/core-ui/pipes/br.pipe.mjs +3 -3
  23. package/esm2022/lib/core-ui/pipes/contrast-color.pipe.mjs +3 -3
  24. package/esm2022/lib/core-ui/pipes/custom-date.pipe.mjs +3 -3
  25. package/esm2022/lib/core-ui/pipes/highlight-range.pipe.mjs +3 -3
  26. package/esm2022/lib/core-ui/pipes/highlight-term.pipe.mjs +3 -3
  27. package/esm2022/lib/core-ui/pipes/lx-is-uuid.pipe.mjs +3 -3
  28. package/esm2022/lib/core-ui/pipes/lx-time-ago.pipe.mjs +3 -3
  29. package/esm2022/lib/core-ui/pipes/lx-translate.pipe.mjs +4 -4
  30. package/esm2022/lib/core-ui/pipes/markdown.pipe.mjs +3 -3
  31. package/esm2022/lib/core-ui/pipes/nbsp.pipe.mjs +3 -3
  32. package/esm2022/lib/core-ui/pipes/sort.pipe.mjs +3 -3
  33. package/esm2022/lib/core-ui/pipes/translation-after.pipe.mjs +3 -3
  34. package/esm2022/lib/core-ui/pipes/translation-before.pipe.mjs +3 -3
  35. package/esm2022/lib/core-ui/pipes/translation-between.pipe.mjs +3 -3
  36. package/esm2022/lib/core-ui/pipes/unescape-curly-braces.pipe.mjs +3 -3
  37. package/esm2022/lib/core-ui/services/resize-observer.service.mjs +3 -3
  38. package/esm2022/lib/core-ui/tooltip/tooltip.component.mjs +3 -3
  39. package/esm2022/lib/core-ui/tooltip/tooltip.directive.mjs +3 -3
  40. package/esm2022/lib/forms-ui/components/basic-dropdown/basic-dropdown.component.mjs +3 -3
  41. package/esm2022/lib/forms-ui/components/basic-dropdown-item/basic-dropdown-item.component.mjs +3 -3
  42. package/esm2022/lib/forms-ui/components/breadcrumb/breadcrumb.component.mjs +3 -3
  43. package/esm2022/lib/forms-ui/components/cdk-options-dropdown/cdk-options-dropdown.component.mjs +3 -3
  44. package/esm2022/lib/forms-ui/components/cdk-options-sub-dropdown/cdk-options-sub-dropdown.component.mjs +3 -3
  45. package/esm2022/lib/forms-ui/components/copy-button/copy-button.component.mjs +3 -3
  46. package/esm2022/lib/forms-ui/components/currency/currency-input.component.mjs +3 -3
  47. package/esm2022/lib/forms-ui/components/currency/currency-symbol.component.mjs +3 -3
  48. package/esm2022/lib/forms-ui/components/date-input/date-input.component.mjs +3 -3
  49. package/esm2022/lib/forms-ui/components/date-picker-ui/datepicker-inner.component.mjs +3 -3
  50. package/esm2022/lib/forms-ui/components/date-picker-ui/datepicker-ui.module.mjs +4 -4
  51. package/esm2022/lib/forms-ui/components/date-picker-ui/datepicker.component.mjs +3 -3
  52. package/esm2022/lib/forms-ui/components/date-picker-ui/datepicker.config.mjs +3 -3
  53. package/esm2022/lib/forms-ui/components/date-picker-ui/daypicker.component.mjs +3 -3
  54. package/esm2022/lib/forms-ui/components/date-picker-ui/monthpicker.component.mjs +3 -3
  55. package/esm2022/lib/forms-ui/components/date-picker-ui/yearpicker.component.mjs +3 -3
  56. package/esm2022/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list-item/drag-and-drop-list-item.component.mjs +3 -3
  57. package/esm2022/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.component.mjs +3 -3
  58. package/esm2022/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.module.mjs +4 -4
  59. package/esm2022/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-item/keyboard-sortable-item.directive.mjs +3 -3
  60. package/esm2022/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-list/keyboard-sortable-list.directive.mjs +3 -3
  61. package/esm2022/lib/forms-ui/components/error-message/error-message.component.mjs +3 -3
  62. package/esm2022/lib/forms-ui/components/expanded-dropdown/expanded-dropdown.component.mjs +3 -3
  63. package/esm2022/lib/forms-ui/components/form-error/form-error.component.mjs +3 -3
  64. package/esm2022/lib/forms-ui/components/icon/icon.component.mjs +3 -3
  65. package/esm2022/lib/forms-ui/components/input/input.component.mjs +3 -3
  66. package/esm2022/lib/forms-ui/components/keyboard-select.directive.mjs +3 -3
  67. package/esm2022/lib/forms-ui/components/multi-select/multi-select.component.mjs +3 -3
  68. package/esm2022/lib/forms-ui/components/option/option.component.mjs +3 -3
  69. package/esm2022/lib/forms-ui/components/option-group/option-group.component.mjs +3 -3
  70. package/esm2022/lib/forms-ui/components/option-group-dropdown/option-group-dropdown.component.mjs +3 -3
  71. package/esm2022/lib/forms-ui/components/options-dropdown/options-dropdown.component.mjs +3 -3
  72. package/esm2022/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.mjs +3 -3
  73. package/esm2022/lib/forms-ui/components/picker/picker-trigger.directive.mjs +3 -3
  74. package/esm2022/lib/forms-ui/components/picker/picker.component.mjs +3 -3
  75. package/esm2022/lib/forms-ui/components/picker-option/picker-option.component.mjs +3 -3
  76. package/esm2022/lib/forms-ui/components/pill-item/pill-item.component.mjs +3 -3
  77. package/esm2022/lib/forms-ui/components/pill-list/pill-list.component.mjs +3 -3
  78. package/esm2022/lib/forms-ui/components/responsive-input/responsive-input.component.mjs +3 -3
  79. package/esm2022/lib/forms-ui/components/select-list/select-list.component.mjs +3 -3
  80. package/esm2022/lib/forms-ui/components/single-select/single-select.component.mjs +3 -3
  81. package/esm2022/lib/forms-ui/components/slider-toggle/slider-toggle.component.mjs +3 -3
  82. package/esm2022/lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component.mjs +3 -3
  83. package/esm2022/lib/forms-ui/components/sorting-dropdown-trigger/sorting-dropdown-trigger.component.mjs +3 -3
  84. package/esm2022/lib/forms-ui/directives/contenteditable.directive.mjs +3 -3
  85. package/esm2022/lib/forms-ui/directives/form-error.directive.mjs +3 -3
  86. package/esm2022/lib/forms-ui/directives/form-submit.directive.mjs +3 -3
  87. package/esm2022/lib/forms-ui/directives/keyboard-action-source.directive.mjs +3 -3
  88. package/esm2022/lib/forms-ui/directives/mark-invalid.directive.mjs +3 -3
  89. package/esm2022/lib/forms-ui/directives/select-dropdown.directive.mjs +3 -3
  90. package/esm2022/lib/forms-ui/directives/selectable-item.directive.mjs +3 -3
  91. package/esm2022/lib/forms-ui/directives/selected-option.directive.mjs +3 -3
  92. package/esm2022/lib/forms-ui/forms-ui.module.mjs +4 -4
  93. package/esm2022/lib/forms-ui/models/base-select.directive.mjs +3 -3
  94. package/esm2022/lib/forms-ui/pipes/filter-selection.pipe.mjs +3 -3
  95. package/esm2022/lib/forms-ui/pipes/filter-term.pipe.mjs +3 -3
  96. package/esm2022/lib/forms-ui/pipes/format-number.pipe.mjs +3 -3
  97. package/esm2022/lib/modal-ui/components/modal/modal.component.mjs +3 -3
  98. package/esm2022/lib/modal-ui/components/modal-footer/modal-footer.component.mjs +3 -3
  99. package/esm2022/lib/modal-ui/components/modal-header/modal-header.component.mjs +3 -3
  100. package/esm2022/lib/modal-ui/directives/modal-content.directive.mjs +3 -3
  101. package/esm2022/lib/modal-ui/modal.module.mjs +4 -4
  102. package/esm2022/lib/popover-ui/components/popover/popover.component.mjs +3 -3
  103. package/esm2022/lib/popover-ui/directives/popover-click.directive.mjs +3 -3
  104. package/esm2022/lib/popover-ui/directives/popover-content.directive.mjs +3 -3
  105. package/esm2022/lib/popover-ui/directives/popover-hover.directive.mjs +3 -3
  106. package/esm2022/lib/popover-ui/popover-ui.module.mjs +4 -4
  107. package/esm2022/lib/tab-ui/components/tab/tab.component.mjs +55 -11
  108. package/esm2022/lib/tab-ui/components/tab-group/tab-group-key-codes.enum.mjs +12 -0
  109. package/esm2022/lib/tab-ui/components/tab-group/tab-group.component.mjs +78 -11
  110. package/esm2022/lib/tab-ui/tab-ui.module.mjs +4 -4
  111. package/fesm2022/leanix-components.mjs +468 -352
  112. package/fesm2022/leanix-components.mjs.map +1 -1
  113. package/lib/tab-ui/components/tab/tab.component.d.ts +23 -6
  114. package/lib/tab-ui/components/tab-group/tab-group-key-codes.enum.d.ts +10 -0
  115. package/lib/tab-ui/components/tab-group/tab-group.component.d.ts +16 -3
  116. package/package.json +1 -1
@@ -1,9 +1,12 @@
1
1
  import { TemplatePortal } from '@angular/cdk/portal';
2
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
3
- import { RouterLinkActive } from '@angular/router';
2
+ import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
3
+ import { ActivatedRoute, Router, RouterLinkActive } from '@angular/router';
4
+ import { Observable } from 'rxjs';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TabComponent {
6
7
  private cd;
8
+ private router;
9
+ private activatedRoute;
7
10
  /**
8
11
  * The icon input takes a font awesome selector
9
12
  * WARNING: Currently this component does not support using an icon together with a label or counter.
@@ -11,7 +14,12 @@ export declare class TabComponent {
11
14
  icon?: string;
12
15
  label: string;
13
16
  title?: string;
14
- tabLink?: string;
17
+ /**
18
+ * In some parts of the application, we are passing a plain string to the tabLink input, whereas in
19
+ * most parts, the input is passed as an array. The RouterLink directive also accepts both types,
20
+ * therefore we are using type of the input as string | any[].
21
+ */
22
+ tabLink?: string | any[];
15
23
  counter?: number;
16
24
  routerLinkActiveOptions: {
17
25
  exact: boolean;
@@ -22,15 +30,24 @@ export declare class TabComponent {
22
30
  background: 'white' | 'gray';
23
31
  disabled: boolean;
24
32
  switch: EventEmitter<any>;
25
- tabPanelId: string;
33
+ keyDownAction: EventEmitter<KeyboardEvent>;
26
34
  tabId: string;
27
35
  content?: TemplatePortal<any>;
36
+ tabElement?: ElementRef<HTMLElement>;
37
+ routerLinkActive$: Observable<RouterLinkActive>;
28
38
  routerLinkActive?: RouterLinkActive;
39
+ /**
40
+ * Used by the lx-tab-group to be notified when a lx-tab that is a link
41
+ * is set to active by the Angular router.
42
+ */
43
+ routerLinkActiveChange$: Observable<boolean>;
29
44
  set isActive(value: boolean);
30
45
  get isActive(): boolean;
31
46
  private _isActive;
32
- constructor(cd: ChangeDetectorRef);
47
+ constructor(cd: ChangeDetectorRef, router: Router, activatedRoute: ActivatedRoute);
33
48
  select(): void;
49
+ setFocus(): void;
50
+ handleKeyDown(event: KeyboardEvent): void;
34
51
  static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "lx-tab", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "title": { "alias": "title"; "required": false; }; "tabLink": { "alias": "tabLink"; "required": false; }; "counter": { "alias": "counter"; "required": false; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; }; "counterBadgeSize": { "alias": "counterBadgeSize"; "required": false; }; "noMargin": { "alias": "noMargin"; "required": false; }; "noLeftMarginForFirstTab": { "alias": "noLeftMarginForFirstTab"; "required": false; }; "background": { "alias": "background"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "switch": "switch"; }, never, ["*"], true, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "lx-tab", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "title": { "alias": "title"; "required": false; }; "tabLink": { "alias": "tabLink"; "required": false; }; "counter": { "alias": "counter"; "required": false; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; }; "counterBadgeSize": { "alias": "counterBadgeSize"; "required": false; }; "noMargin": { "alias": "noMargin"; "required": false; }; "noLeftMarginForFirstTab": { "alias": "noLeftMarginForFirstTab"; "required": false; }; "background": { "alias": "background"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "switch": "switch"; "keyDownAction": "keyDownAction"; }, never, ["*"], true, never>;
36
53
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Key codes that we listen to for
3
+ * user action on our lx-tab-group
4
+ */
5
+ export declare enum LxTabGroupKeyCode {
6
+ ArrowRight = "ArrowRight",
7
+ ArrowLeft = "ArrowLeft",
8
+ Home = "Home",
9
+ End = "End"
10
+ }
@@ -1,13 +1,23 @@
1
- import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core';
2
- import { Subject } from 'rxjs';
1
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core';
2
+ import { Observable, Subject } from 'rxjs';
3
3
  import { TabComponent } from '../tab/tab.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TabGroupComponent implements OnChanges, AfterContentInit, OnDestroy {
6
6
  private cd;
7
7
  isCentered: boolean;
8
+ /**
9
+ * The tab whose content should be displayed.
10
+ */
8
11
  selectedIndex: number;
9
12
  indexChange: EventEmitter<number>;
13
+ tabsQueryList$: Observable<QueryList<TabComponent>>;
10
14
  tabsQueryList?: QueryList<TabComponent>;
15
+ tabListElement?: ElementRef<HTMLElement>;
16
+ /**
17
+ * The tab that is currently focused via keyboard.
18
+ */
19
+ focusedIndex: number;
20
+ get tabIds(): string[];
11
21
  private get tabs();
12
22
  get activeTabPortal(): import("@angular/cdk/portal").TemplatePortal<any> | undefined;
13
23
  readonly destroyed$: Subject<void>;
@@ -15,8 +25,11 @@ export declare class TabGroupComponent implements OnChanges, AfterContentInit, O
15
25
  ngOnChanges(changes: SimpleChanges): void;
16
26
  ngAfterContentInit(): void;
17
27
  ngOnDestroy(): void;
18
- tabIds(): string[];
28
+ onFocusOut(event: any): void;
19
29
  switchTo(tab: TabComponent): void;
30
+ handleKeyDown(event: KeyboardEvent): void;
31
+ private focusTab;
32
+ private listenToFirstTabSelectByAngularRouterForTabLinks;
20
33
  static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
21
34
  static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "lx-tab-group", never, { "isCentered": { "alias": "isCentered"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "indexChange": "indexChange"; }, ["tabsQueryList"], ["*"], true, never>;
22
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.4.108",
3
+ "version": "0.4.110",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {