@siemens/element-ng 49.0.0-rc.4 → 49.1.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 (39) hide show
  1. package/fesm2022/siemens-element-ng-accordion.mjs +2 -2
  2. package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
  3. package/fesm2022/siemens-element-ng-application-header.mjs +2 -2
  4. package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
  5. package/fesm2022/siemens-element-ng-chat-messages.mjs +5 -5
  6. package/fesm2022/siemens-element-ng-chat-messages.mjs.map +1 -1
  7. package/fesm2022/siemens-element-ng-dashboard.mjs +15 -19
  8. package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
  9. package/fesm2022/siemens-element-ng-datatable.mjs +2 -1
  10. package/fesm2022/siemens-element-ng-datatable.mjs.map +1 -1
  11. package/fesm2022/siemens-element-ng-datepicker.mjs +1 -1
  12. package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
  13. package/fesm2022/siemens-element-ng-file-uploader.mjs +0 -1
  14. package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -1
  15. package/fesm2022/siemens-element-ng-filtered-search.mjs +9 -12
  16. package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -1
  17. package/fesm2022/siemens-element-ng-formly.mjs +1 -1
  18. package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
  19. package/fesm2022/siemens-element-ng-landing-page.mjs +19 -5
  20. package/fesm2022/siemens-element-ng-landing-page.mjs.map +1 -1
  21. package/fesm2022/siemens-element-ng-navbar-vertical.mjs +2 -2
  22. package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
  23. package/fesm2022/siemens-element-ng-side-panel.mjs +2 -2
  24. package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
  25. package/fesm2022/siemens-element-ng-tabs.mjs +67 -5
  26. package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
  27. package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
  28. package/fesm2022/siemens-element-ng-typeahead.mjs +69 -19
  29. package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -1
  30. package/package.json +4 -4
  31. package/schematics/utils/ts-compiler-host.js +3 -0
  32. package/template-i18n.json +2 -0
  33. package/types/siemens-element-ng-dashboard.d.ts +13 -14
  34. package/types/siemens-element-ng-datatable.d.ts +1 -0
  35. package/types/siemens-element-ng-file-uploader.d.ts +1 -1
  36. package/types/siemens-element-ng-landing-page.d.ts +6 -0
  37. package/types/siemens-element-ng-tabs.d.ts +51 -2
  38. package/types/siemens-element-ng-translate.d.ts +2 -0
  39. package/types/siemens-element-ng-typeahead.d.ts +29 -2
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, input, booleanAttribute, output, signal, computed, inject, ElementRef, Component, DestroyRef, viewChild, ChangeDetectorRef, DOCUMENT, NgModule, model } from '@angular/core';
2
+ import { Injectable, input, booleanAttribute, output, signal, computed, inject, ElementRef, Component, DestroyRef, viewChild, ChangeDetectorRef, DOCUMENT, NgModule, Directive, model } from '@angular/core';
3
3
  import { elementZoom, elementPinch, elementRight2, elementSortUp, elementSortDown } from '@siemens/element-icons';
4
4
  import { SiCardComponent } from '@siemens/element-ng/card';
5
5
  import { SiContentActionBarComponent } from '@siemens/element-ng/content-action-bar';
@@ -465,13 +465,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
465
465
  * SPDX-License-Identifier: MIT
466
466
  */
467
467
  /**
468
- * The SiWidgetBaseComponent<T> implements the timing for the skeleton loading
468
+ * The SiWidgetBaseDirective<T> implements the timing for the skeleton loading
469
469
  * indicator of widgets. It supports a generic value input property that represents
470
470
  * the main value to be displayed by a widget. When the value is not set, the `showLoadingIndicator`
471
471
  * changes after the `initialLoadingIndicatorDebounceTime` delay to `true` and subclasses
472
472
  * should show the skeleton loading indicator.
473
473
  */
474
- class SiWidgetBaseComponent {
474
+ class SiWidgetBaseDirective {
475
475
  /**
476
476
  * The main value to be displayed. If no value is set,
477
477
  * the skeleton indicates the loading of the value. Disable
@@ -504,7 +504,6 @@ class SiWidgetBaseComponent {
504
504
  * @defaultValue 300
505
505
  */
506
506
  initialLoadingIndicatorDebounceTime = input(300, ...(ngDevMode ? [{ debugName: "initialLoadingIndicatorDebounceTime" }] : []));
507
- cdRef = inject(ChangeDetectorRef);
508
507
  loadingTimer;
509
508
  ngOnChanges(changes) {
510
509
  if (!this.disableAutoLoadingIndicator() &&
@@ -524,14 +523,11 @@ class SiWidgetBaseComponent {
524
523
  }, this.initialLoadingIndicatorDebounceTime());
525
524
  }
526
525
  }
527
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiWidgetBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
528
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.8", type: SiWidgetBaseComponent, isStandalone: true, selector: "ng-component", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disableAutoLoadingIndicator: { classPropertyName: "disableAutoLoadingIndicator", publicName: "disableAutoLoadingIndicator", isSignal: true, isRequired: false, transformFunction: null }, showLoadingIndicatorInput: { classPropertyName: "showLoadingIndicatorInput", publicName: "showLoadingIndicator", isSignal: true, isRequired: false, transformFunction: null }, initialLoadingIndicatorDebounceTime: { classPropertyName: "initialLoadingIndicatorDebounceTime", publicName: "initialLoadingIndicatorDebounceTime", isSignal: true, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
526
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiWidgetBaseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
527
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.8", type: SiWidgetBaseDirective, isStandalone: true, inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disableAutoLoadingIndicator: { classPropertyName: "disableAutoLoadingIndicator", publicName: "disableAutoLoadingIndicator", isSignal: true, isRequired: false, transformFunction: null }, showLoadingIndicatorInput: { classPropertyName: "showLoadingIndicatorInput", publicName: "showLoadingIndicator", isSignal: true, isRequired: false, transformFunction: null }, initialLoadingIndicatorDebounceTime: { classPropertyName: "initialLoadingIndicatorDebounceTime", publicName: "initialLoadingIndicatorDebounceTime", isSignal: true, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0 });
529
528
  }
530
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiWidgetBaseComponent, decorators: [{
531
- type: Component,
532
- args: [{
533
- template: ''
534
- }]
529
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiWidgetBaseDirective, decorators: [{
530
+ type: Directive
535
531
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disableAutoLoadingIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableAutoLoadingIndicator", required: false }] }], showLoadingIndicatorInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoadingIndicator", required: false }] }], initialLoadingIndicatorDebounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialLoadingIndicatorDebounceTime", required: false }] }] } });
536
532
 
537
533
  /**
@@ -542,7 +538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
542
538
  * The `<si-link-widget>` supports an easy composition of links and actions
543
539
  * with support for skeleton loading indicator.
544
540
  */
545
- class SiLinkWidgetComponent extends SiWidgetBaseComponent {
541
+ class SiLinkWidgetComponent extends SiWidgetBaseDirective {
546
542
  /**
547
543
  * Option to enable trailing link arrow icons for each link.
548
544
  *
@@ -573,7 +569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
573
569
  * The `<si-link-widget>` supports an easy composition of links and actions
574
570
  * with support for skeleton loading indicator.
575
571
  */
576
- class SiListWidgetItemComponent extends SiWidgetBaseComponent {
572
+ class SiListWidgetItemComponent extends SiWidgetBaseDirective {
577
573
  isLink = computed(() => {
578
574
  return typeof this.value()?.label === 'object';
579
575
  }, ...(ngDevMode ? [{ debugName: "isLink" }] : []));
@@ -606,7 +602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
606
602
  * The `<si-list-widget-body>` implements the body of the <si-list-widget> that can be
607
603
  * used for composition within other components.
608
604
  */
609
- class SiListWidgetBodyComponent extends SiWidgetBaseComponent {
605
+ class SiListWidgetBodyComponent extends SiWidgetBaseDirective {
610
606
  /** Optional footer link for the list widget */
611
607
  link = input(...(ngDevMode ? [undefined, { debugName: "link" }] : []));
612
608
  /**
@@ -725,7 +721,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
725
721
  * The `<si-list-widget>` supports an easy composition of links and actions
726
722
  * with support for skeleton loading indicator, wrapped in a card.
727
723
  */
728
- class SiListWidgetComponent extends SiWidgetBaseComponent {
724
+ class SiListWidgetComponent extends SiWidgetBaseDirective {
729
725
  icons = addIcons({ elementRight2, elementSortDown, elementSortUp });
730
726
  /** List widget heading. */
731
727
  heading = input(...(ngDevMode ? [undefined, { debugName: "heading" }] : []));
@@ -881,7 +877,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
881
877
  /**
882
878
  * The items of the `<si-timeline-widget>`.
883
879
  */
884
- class SiTimelineWidgetItemComponent extends SiWidgetBaseComponent {
880
+ class SiTimelineWidgetItemComponent extends SiWidgetBaseDirective {
885
881
  /**
886
882
  * Whether to show or hide the description row during skeleton progress indication.
887
883
  *
@@ -907,7 +903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
907
903
  * Copyright (c) Siemens 2016 - 2026
908
904
  * SPDX-License-Identifier: MIT
909
905
  */
910
- class SiTimelineWidgetBodyComponent extends SiWidgetBaseComponent {
906
+ class SiTimelineWidgetBodyComponent extends SiWidgetBaseDirective {
911
907
  /**
912
908
  * Number of skeleton progress indication items.
913
909
  *
@@ -936,7 +932,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
936
932
  * Copyright (c) Siemens 2016 - 2026
937
933
  * SPDX-License-Identifier: MIT
938
934
  */
939
- class SiTimelineWidgetComponent extends SiWidgetBaseComponent {
935
+ class SiTimelineWidgetComponent extends SiWidgetBaseDirective {
940
936
  /**
941
937
  * Timeline widget header text.
942
938
  */
@@ -1001,7 +997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
1001
997
  /**
1002
998
  * The body of the `<si-value-widget>`. Useful for compositions.
1003
999
  */
1004
- class SiValueWidgetBodyComponent extends SiWidgetBaseComponent {
1000
+ class SiValueWidgetBodyComponent extends SiWidgetBaseDirective {
1005
1001
  /**
1006
1002
  * The unit of the value (e.g. kWh or users). Only visible if `value` is available.
1007
1003
  */