@messaia/cdk 22.0.1-rc.3 → 22.0.1-rc.5

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.
@@ -1383,6 +1383,17 @@ class BaseComponent {
1383
1383
  this.router.navigateByUrl(urlTree.toString());
1384
1384
  }
1385
1385
  }
1386
+ /**
1387
+ * Navigates to the previous page in browser history.
1388
+ */
1389
+ navigateBack() {
1390
+ /* If history is unavailable or too short, fallback to configured return URL */
1391
+ if (typeof window === 'undefined' || (window.history?.length ?? 0) <= 1) {
1392
+ this.navigateToReturnUrl();
1393
+ return;
1394
+ }
1395
+ this.location.back();
1396
+ }
1386
1397
  /**
1387
1398
  * Expands the specified expansion panel path (supporting nested IDs) and collapses others.
1388
1399
  * @param panelPath - The dot-separated ID path (e.g., 'warehouse.orders.details').
@@ -1672,7 +1683,7 @@ class BaseComponent {
1672
1683
  * @param playSound A flag indicating whether to play a warning sound when the message type is Warning or Error. Defaults to false.
1673
1684
  * @returns An observable that emits when the action button is clicked.
1674
1685
  */
1675
- showMessage(message, type = MessageType.Success, duration, actionLabel = $localize `:@@ok:OK`, playSound = false) {
1686
+ showMessage(message, type = MessageType.Success, duration, actionLabel = $localize `:@@ok:Ok`, playSound = false) {
1676
1687
  /* Default snack bar class to 'primary' (for success messages) */
1677
1688
  let snackBarClass = 'primary';
1678
1689
  /* If duration is not provided, calculate it based on message length */
@@ -25456,7 +25467,7 @@ class MsaGenericFormMsaChipsFieldComponent extends MsaGenericFormFieldBaseCompon
25456
25467
  <mat-hint>{{field.hint}}</mat-hint>
25457
25468
  }
25458
25469
  @if (vdChip.emptyResult) {
25459
- <mat-hint class="tc-red-400" i18n="@@noResultsFound">No results were found.</mat-hint>
25470
+ <mat-hint class="tc-red-400" i18n="@@noResultsFound">No results found</mat-hint>
25460
25471
  }
25461
25472
  @for (errorMessage of $any(formGroup.controls[field.name!])['errorMessages']; track errorMessage) {
25462
25473
  <mat-error>{{errorMessage}}</mat-error>
@@ -25515,7 +25526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
25515
25526
  <mat-hint>{{field.hint}}</mat-hint>
25516
25527
  }
25517
25528
  @if (vdChip.emptyResult) {
25518
- <mat-hint class="tc-red-400" i18n="@@noResultsFound">No results were found.</mat-hint>
25529
+ <mat-hint class="tc-red-400" i18n="@@noResultsFound">No results found</mat-hint>
25519
25530
  }
25520
25531
  @for (errorMessage of $any(formGroup.controls[field.name!])['errorMessages']; track errorMessage) {
25521
25532
  <mat-error>{{errorMessage}}</mat-error>