@leanix/components 0.4.504 → 0.4.505

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 (31) hide show
  1. package/esm2022/lib/core-ui/components/badge/badge.component.mjs +1 -9
  2. package/esm2022/lib/core-ui/components/banner/banner.component.mjs +1 -11
  3. package/esm2022/lib/core-ui/components/button/button.component.mjs +1 -9
  4. package/esm2022/lib/core-ui/components/card/card.component.mjs +1 -9
  5. package/esm2022/lib/core-ui/components/counter/counter.component.mjs +1 -9
  6. package/esm2022/lib/core-ui/components/skeleton/skeleton.component.mjs +1 -12
  7. package/esm2022/lib/core-ui/components/tiny-spinner/tiny-spinner.component.mjs +1 -9
  8. package/esm2022/lib/core-ui/tooltip/tooltip.directive.mjs +1 -9
  9. package/esm2022/lib/forms-ui/components/breadcrumb/breadcrumb.component.mjs +1 -9
  10. package/esm2022/lib/forms-ui/components/date-input/date-input.component.mjs +1 -9
  11. package/esm2022/lib/forms-ui/components/single-select/single-select.component.mjs +1 -12
  12. package/esm2022/lib/forms-ui/components/switch/switch.component.mjs +1 -9
  13. package/esm2022/lib/popover-ui/components/popover/popover.component.mjs +3 -9
  14. package/esm2022/lib/tab-ui/components/tab-group/tab-group.component.mjs +8 -24
  15. package/fesm2022/leanix-components.mjs +9 -135
  16. package/fesm2022/leanix-components.mjs.map +1 -1
  17. package/lib/core-ui/components/badge/badge.component.d.ts +0 -8
  18. package/lib/core-ui/components/banner/banner.component.d.ts +0 -10
  19. package/lib/core-ui/components/button/button.component.d.ts +0 -8
  20. package/lib/core-ui/components/card/card.component.d.ts +0 -8
  21. package/lib/core-ui/components/counter/counter.component.d.ts +0 -8
  22. package/lib/core-ui/components/skeleton/skeleton.component.d.ts +0 -11
  23. package/lib/core-ui/components/tiny-spinner/tiny-spinner.component.d.ts +0 -8
  24. package/lib/core-ui/tooltip/tooltip.directive.d.ts +0 -8
  25. package/lib/forms-ui/components/breadcrumb/breadcrumb.component.d.ts +0 -8
  26. package/lib/forms-ui/components/date-input/date-input.component.d.ts +0 -8
  27. package/lib/forms-ui/components/single-select/single-select.component.d.ts +0 -11
  28. package/lib/forms-ui/components/switch/switch.component.d.ts +0 -8
  29. package/lib/popover-ui/components/popover/popover.component.d.ts +2 -8
  30. package/lib/tab-ui/components/tab-group/tab-group.component.d.ts +10 -23
  31. package/package.json +1 -1
@@ -274,14 +274,6 @@ const ICON_MAP = {
274
274
 
275
275
  /**
276
276
  * Badge component is used to show a small piece of information in a colored badge.
277
- *
278
- * ## Usage
279
- *
280
- * 1. Import the `LxCoreUiModule` module from `@leanix/components` in your module where you want to use the component.
281
- *
282
- * ```ts
283
- * import { LxCoreUiModule } from '@leanix/components';
284
- * ```
285
277
  */
286
278
  class BadgeComponent {
287
279
  constructor() {
@@ -350,16 +342,6 @@ const BANNER_SIZE = {
350
342
 
351
343
  /**
352
344
  * Banner can be used to display important information to the user. It allows for any type of content to be displayed in a banner.
353
- *
354
- * ## Usage
355
- *
356
- * 1. Import the `LxCoreUiModule` module from `@leanix/components` in your module where you want to use the component.
357
- *
358
- * ```ts
359
- * import { LxCoreUiModule } from '@leanix/components';
360
- * ```
361
- *
362
- * 2. Use the component in your template.
363
345
  */
364
346
  class BannerComponent {
365
347
  constructor() {
@@ -451,14 +433,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
451
433
 
452
434
  /**
453
435
  * Tiny spinner component is used to show a small spinner.
454
- *
455
- * ## Usage
456
- *
457
- * 1. Import the `TinySpinnerComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
458
- *
459
- * ```ts
460
- * import { TinySpinnerComponent } from '@leanix/components';
461
- * ```
462
436
  */
463
437
  class TinySpinnerComponent {
464
438
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: TinySpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -482,14 +456,6 @@ const LX_BUTTON_USE_SAP_ICONS = new InjectionToken('LX_BUTTON_USE_SAP_ICONS', {
482
456
  /**
483
457
  * Button component is used to create a button with different styles and sizes. This uses native button element and
484
458
  * only provides styling and some additional features like loading spinner.
485
- *
486
- * ## Usage
487
- *
488
- * 1. Import the `ButtonComponent` from `@leanix/components` where you want to use the component.
489
- *
490
- * ```ts
491
- * import { ButtonComponent } from '@leanix/components';
492
- * ```
493
459
  */
494
460
  class ButtonComponent {
495
461
  constructor() {
@@ -650,14 +616,6 @@ function removeFontAwesomeVariant(iconName) {
650
616
  /**
651
617
  * Card component is a container component that can be used to display content in a card-like style.
652
618
  * This documentation provides details on the usage and configuration of the Card Component.
653
- *
654
- * ## Usage
655
- *
656
- * 1. Import the `LxCoreUiModule` module from `@leanix/components` in your module where you want to use the component.
657
- *
658
- * ```ts
659
- * import { LxCoreUiModule } from '@leanix/components';
660
- * ```
661
619
  */
662
620
  class CardComponent {
663
621
  constructor() {
@@ -730,14 +688,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
730
688
 
731
689
  /**
732
690
  * Counter component is used to create a counter with different styles and sizes.
733
- *
734
- * ## Usage
735
- *
736
- * 1. Import the `CounterComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
737
- *
738
- * ```ts
739
- * import { CounterComponent } from '@leanix/components';
740
- * ```
741
691
  */
742
692
  class CounterComponent {
743
693
  constructor() {
@@ -2365,14 +2315,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
2365
2315
 
2366
2316
  /**
2367
2317
  * Tooltip directive is used to show a tooltip on hover or focus on an element.
2368
- *
2369
- * ## Usage
2370
- *
2371
- * 1. Import the `TooltipDirective` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
2372
- *
2373
- * ```ts
2374
- * import { TooltipDirective } from '@leanix/components';
2375
- * ```
2376
2318
  */
2377
2319
  class TooltipDirective {
2378
2320
  /** The position of the tooltip. */
@@ -2651,20 +2593,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
2651
2593
  /**
2652
2594
  * Skeleton is a component that can be used to show a loading state of a component.
2653
2595
  *
2654
- * ## Usage
2655
- *
2656
- * 1. Import the `SkeletonComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
2657
- *
2658
- * ```ts
2659
- * import { SkeletonComponent } from '@leanix/components';
2660
- * ```
2661
- *
2662
2596
  * Use skeleton loaders for pages or sections that load content progressively, like text and images. The component can
2663
2597
  * be used to compose various scenarios like placeholders for thumbnails, lists, and avatars. See the example
2664
2598
  * [patterns](?path=/docs/skeleton-patterns--docs) for more details.
2665
- *
2666
- * To get started, import the `SkeletonComponent` in your Angular module or standalone component and use it in the
2667
- * template using the `<lx-skeleton />` selector with the desired width, height, and border radius.
2668
2599
  */
2669
2600
  class SkeletonComponent {
2670
2601
  constructor() {
@@ -3706,14 +3637,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
3706
3637
 
3707
3638
  /**
3708
3639
  * Breadcrumb component is used to show a list of labels, usually to show the path of user's navigation.
3709
- *
3710
- * ## Usage
3711
- *
3712
- * 1. Import the LxFormsModule module from @leanix/components in your module where you want to use the component.
3713
- *
3714
- * ```ts
3715
- * import { LxFormsModule } from '@leanix/components';
3716
- * ```
3717
3640
  */
3718
3641
  class BreadcrumbComponent {
3719
3642
  constructor() {
@@ -5370,14 +5293,6 @@ const DEFAULT_MIN_DATE = new Date('0000-01-01');
5370
5293
  const DEFAULT_MAX_DATE = new Date('9999-12-31');
5371
5294
  /**
5372
5295
  * This is a date input component that can be used to select a date.
5373
- *
5374
- * ## Usage
5375
- *
5376
- * 1. Import the `LxFormsUiModule` module from `@leanix/components` in your module where you want to use the component.
5377
- *
5378
- * ```ts
5379
- * import { LxFormsUiModule } from '@leanix/components';
5380
- * ```
5381
5296
  */
5382
5297
  class DateInputComponent {
5383
5298
  constructor(cd, dateFormatsProvider, getDateFnLocale) {
@@ -8007,17 +7922,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
8007
7922
  }]
8008
7923
  }] });
8009
7924
 
8010
- /**
8011
- * ## Usage
8012
- *
8013
- * 1. Import the `LxFormsModule` module from `@leanix/components` in your module where you want to use the component.
8014
- *
8015
- * ```ts
8016
- * import { LxFormsModule } from '@leanix/components';
8017
- * ```
8018
- *
8019
- * 2. Use the component in your template.
8020
- */
8021
7925
  class SingleSelectComponent extends BaseSelectDirective {
8022
7926
  /** @internal */
8023
7927
  static calculateNewCursorPostionOnKeyboardNavigation(cursorPosition, keyCode) {
@@ -8373,14 +8277,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
8373
8277
 
8374
8278
  /**
8375
8279
  * Switch component is a toggle switch that can be used to switch between two states.
8376
- *
8377
- * ## Usage
8378
- *
8379
- * 1. Import the `SwitchComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
8380
- *
8381
- * ```ts
8382
- * import { SwitchComponent } from '@leanix/components';
8383
- * ```
8384
8280
  */
8385
8281
  class SwitchComponent {
8386
8282
  constructor() {
@@ -9601,14 +9497,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
9601
9497
  /**
9602
9498
  * The Popover component is based on the [ncstate-sat/popover](https://github.com/ncstate-sat/popover) library.
9603
9499
  *
9604
- * ## Usage
9605
- *
9606
- * 1. Import `LxPopoverUiModule` and `LxCoreUiModule` module from `@leanix/components` in your module where you want to use the component.
9607
- *
9608
- * ```ts
9609
- * import { LxPopoverUiModule, LxCoreUiModule } from '@leanix/components';
9610
- * ```
9611
- *
9500
+ * ## Examples
9501
+
9612
9502
  * This popover encapsulates this open source library: https://github.com/ncstate-sat/popover,
9613
9503
  * make sure to also check out the docs over there.
9614
9504
  *
@@ -10083,36 +9973,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
10083
9973
  args: [RouterLinkActive]
10084
9974
  }] } });
10085
9975
 
10086
- /**
10087
- * ## Usage
10088
- *
10089
- * 1. Import the `LxTabUiModule` module from `@leanix/components` in your module where you want to use the component.
10090
- *
10091
- * ```ts
10092
- * import { LxTabUiModule } from '@leanix/components';
10093
- *
10094
- * // ...
10095
- *
10096
- * @NgModule({
10097
- * // ...
10098
- * imports: [
10099
- * // ...
10100
- * LxTabUiModule
10101
- * // ...
10102
- * ]
10103
- * })
10104
- * export class MyModule {}
10105
- * ```
10106
- *
10107
- * 2. Use the component in your template.
10108
- */
10109
9976
  class TabGroupComponent {
9977
+ /** @internal */
10110
9978
  get tabIds() {
10111
9979
  return this.tabs.map((t) => t.tabId);
10112
9980
  }
10113
9981
  get tabs() {
10114
9982
  return this.tabsQueryList?.toArray() || [];
10115
9983
  }
9984
+ /** @internal */
10116
9985
  get activeTabPortal() {
10117
9986
  return this.tabs[this.selectedIndex]?.content;
10118
9987
  }
@@ -10126,8 +9995,10 @@ class TabGroupComponent {
10126
9995
  this.indexChange = new EventEmitter();
10127
9996
  /**
10128
9997
  * The tab that is currently focused via keyboard.
9998
+ * @internal
10129
9999
  */
10130
10000
  this.focusedIndex = 0;
10001
+ /** @internal */
10131
10002
  this.destroyed$ = new Subject();
10132
10003
  this.listenToFirstTabSelectByAngularRouterForTabLinks().subscribe((tab) => {
10133
10004
  // synchonize the focusedIndex and selectedIndex state with the tab that is active through the current route.
@@ -10163,12 +10034,14 @@ class TabGroupComponent {
10163
10034
  ngOnDestroy() {
10164
10035
  this.destroyed$.next();
10165
10036
  }
10037
+ /** @internal */
10166
10038
  onFocusOut(event) {
10167
10039
  if (!this.tabListElement?.nativeElement?.contains(event.relatedTarget)) {
10168
10040
  // resync focused index on selected index when leaving tabs
10169
10041
  this.focusedIndex = this.selectedIndex;
10170
10042
  }
10171
10043
  }
10044
+ /** @internal */
10172
10045
  switchTo(tab) {
10173
10046
  this.tabsQueryList?.forEach((t, index) => {
10174
10047
  t.isActive = t === tab;
@@ -10180,6 +10053,7 @@ class TabGroupComponent {
10180
10053
  });
10181
10054
  this.cd.markForCheck();
10182
10055
  }
10056
+ /** @internal */
10183
10057
  handleKeyDown(event) {
10184
10058
  switch (event.code) {
10185
10059
  case LxTabGroupKeyCode.ArrowRight: