@six-group/ui-library-angular 0.0.0-insider.ad9373a → 0.0.0-insider.afba913

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.
@@ -1,13 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, Injectable, inject, Directive, HostListener, Input, EventEmitter, Output, Optional, APP_INITIALIZER, NgModule } from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Injectable, inject, Directive, HostListener, Input, EventEmitter, Output, Optional, HostBinding, ContentChildren, APP_INITIALIZER, NgModule, NgZone } from '@angular/core';
3
3
  import { __decorate } from 'tslib';
4
4
  import { fromEvent } from 'rxjs';
5
5
  import { defineCustomElements } from '@six-group/ui-library/loader';
6
6
  import * as i1 from '@angular/forms';
7
7
  import { NgControl, NG_VALUE_ACCESSOR, FormControl, FormGroup, FormArray, NG_VALIDATORS, Validators } from '@angular/forms';
8
- import { getErrorMessage, getLanguage } from '@six-group/ui-library';
8
+ import { getErrorMessage, getLanguage, showAlert } from '@six-group/ui-library';
9
9
  import * as i1$1 from '@angular/common';
10
10
  import * as i2 from '@angular/router';
11
+ import { RouterLinkActive } from '@angular/router';
11
12
 
12
13
  /* eslint-disable */
13
14
  /* tslint:disable */
@@ -67,30 +68,6 @@ function ProxyCmp(opts) {
67
68
  return decorator;
68
69
  }
69
70
 
70
- let SetAttributes = class SetAttributes {
71
- constructor(c, r, z) {
72
- this.z = z;
73
- c.detach();
74
- this.el = r.nativeElement;
75
- }
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SetAttributes, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
77
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SetAttributes, selector: "set-attributes", inputs: { value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
78
- };
79
- SetAttributes = __decorate([
80
- ProxyCmp({
81
- inputs: ['value']
82
- })
83
- ], SetAttributes);
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SetAttributes, decorators: [{
85
- type: Component,
86
- args: [{
87
- selector: 'set-attributes',
88
- changeDetection: ChangeDetectionStrategy.OnPush,
89
- template: '<ng-content></ng-content>',
90
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
91
- inputs: ['value'],
92
- }]
93
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
94
71
  let SixAlert = class SixAlert {
95
72
  constructor(c, r, z) {
96
73
  this.z = z;
@@ -239,6 +216,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
239
216
  inputs: ['checked', 'disabled', 'errorText', 'errorTextCount', 'indeterminate', 'invalid', 'label', 'name', 'required', 'value'],
240
217
  }]
241
218
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
219
+ let SixDate = class SixDate {
220
+ constructor(c, r, z) {
221
+ this.z = z;
222
+ c.detach();
223
+ this.el = r.nativeElement;
224
+ proxyOutputs(this, this.el, ['six-change', 'six-blur']);
225
+ }
226
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixDate, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
227
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixDate, selector: "six-date", inputs: { allowedDates: "allowedDates", clearable: "clearable", dateFormat: "dateFormat", debounce: "debounce", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", helpText: "helpText", invalid: "invalid", label: "label", language: "language", max: "max", min: "min", name: "name", placeholder: "placeholder", readonly: "readonly", required: "required", size: "size", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
228
+ };
229
+ SixDate = __decorate([
230
+ ProxyCmp({
231
+ inputs: ['allowedDates', 'clearable', 'dateFormat', 'debounce', 'disabled', 'errorText', 'errorTextCount', 'helpText', 'invalid', 'label', 'language', 'max', 'min', 'name', 'placeholder', 'readonly', 'required', 'size', 'value'],
232
+ methods: ['setFocus']
233
+ })
234
+ ], SixDate);
235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixDate, decorators: [{
236
+ type: Component,
237
+ args: [{
238
+ selector: 'six-date',
239
+ changeDetection: ChangeDetectionStrategy.OnPush,
240
+ template: '<ng-content></ng-content>',
241
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
242
+ inputs: ['allowedDates', 'clearable', 'dateFormat', 'debounce', 'disabled', 'errorText', 'errorTextCount', 'helpText', 'invalid', 'label', 'language', 'max', 'min', 'name', 'placeholder', 'readonly', 'required', 'size', 'value'],
243
+ }]
244
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
242
245
  let SixDatepicker = class SixDatepicker {
243
246
  constructor(c, r, z) {
244
247
  this.z = z;
@@ -356,7 +359,7 @@ let SixDropdown = class SixDropdown {
356
359
  SixDropdown = __decorate([
357
360
  ProxyCmp({
358
361
  inputs: ['asyncFilter', 'autofocusFilter', 'closeOnSelect', 'containingElement', 'disableHideOnEnterAndSpace', 'distance', 'filter', 'filterDebounce', 'filterPlaceholder', 'hoist', 'matchTriggerWidth', 'open', 'options', 'placement', 'skidding', 'virtualScroll'],
359
- methods: ['show', 'hide', 'reposition']
362
+ methods: ['show', 'hide']
360
363
  })
361
364
  ], SixDropdown);
362
365
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixDropdown, decorators: [{
@@ -470,11 +473,11 @@ let SixFileUpload = class SixFileUpload {
470
473
  proxyOutputs(this, this.el, ['six-file-upload-success', 'six-file-upload-failure']);
471
474
  }
472
475
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixFileUpload, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
473
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixFileUpload, selector: "six-file-upload", inputs: { accept: "accept", compact: "compact", disabled: "disabled", label: "label", maxFileSize: "maxFileSize", multiple: "multiple" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
476
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixFileUpload, selector: "six-file-upload", inputs: { accept: "accept", compact: "compact", disabled: "disabled", errorText: "errorText", invalid: "invalid", label: "label", maxFileSize: "maxFileSize", multiple: "multiple", uploading: "uploading" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
474
477
  };
475
478
  SixFileUpload = __decorate([
476
479
  ProxyCmp({
477
- inputs: ['accept', 'compact', 'disabled', 'label', 'maxFileSize', 'multiple']
480
+ inputs: ['accept', 'compact', 'disabled', 'errorText', 'invalid', 'label', 'maxFileSize', 'multiple', 'uploading']
478
481
  })
479
482
  ], SixFileUpload);
480
483
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixFileUpload, decorators: [{
@@ -484,7 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
484
487
  changeDetection: ChangeDetectionStrategy.OnPush,
485
488
  template: '<ng-content></ng-content>',
486
489
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
487
- inputs: ['accept', 'compact', 'disabled', 'label', 'maxFileSize', 'multiple'],
490
+ inputs: ['accept', 'compact', 'disabled', 'errorText', 'invalid', 'label', 'maxFileSize', 'multiple', 'uploading'],
488
491
  }]
489
492
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
490
493
  let SixFooter = class SixFooter {
@@ -538,15 +541,13 @@ let SixHeader = class SixHeader {
538
541
  this.z = z;
539
542
  c.detach();
540
543
  this.el = r.nativeElement;
541
- proxyOutputs(this, this.el, ['six-header-app-name-clicked', 'six-header-app-switcher-select', 'six-header-profile-select', 'six-header-hamburger-menu-clicked', 'six-header-logo-clicked', 'six-header-search-field-toggle']);
542
544
  }
543
545
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
544
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixHeader, selector: "six-header", inputs: { clickableLogo: "clickableLogo", hideHamburgerMenu: "hideHamburgerMenu", openHamburgerMenu: "openHamburgerMenu", openSearch: "openSearch", shiftContent: "shiftContent" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
546
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixHeader, selector: "six-header", inputs: { openSearch: "openSearch", shiftContent: "shiftContent" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
545
547
  };
546
548
  SixHeader = __decorate([
547
549
  ProxyCmp({
548
- inputs: ['clickableLogo', 'hideHamburgerMenu', 'openHamburgerMenu', 'openSearch', 'shiftContent'],
549
- methods: ['setSearchOpenState', 'getIsSearchOpen']
550
+ inputs: ['openSearch', 'shiftContent']
550
551
  })
551
552
  ], SixHeader);
552
553
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeader, decorators: [{
@@ -556,7 +557,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
556
557
  changeDetection: ChangeDetectionStrategy.OnPush,
557
558
  template: '<ng-content></ng-content>',
558
559
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
559
- inputs: ['clickableLogo', 'hideHamburgerMenu', 'openHamburgerMenu', 'openSearch', 'shiftContent'],
560
+ inputs: ['openSearch', 'shiftContent'],
561
+ }]
562
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
563
+ let SixHeaderDropdownItem = class SixHeaderDropdownItem {
564
+ constructor(c, r, z) {
565
+ this.z = z;
566
+ c.detach();
567
+ this.el = r.nativeElement;
568
+ }
569
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeaderDropdownItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
570
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixHeaderDropdownItem, selector: "six-header-dropdown-item", inputs: { filter: "filter", filterPlaceholder: "filterPlaceholder" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
571
+ };
572
+ SixHeaderDropdownItem = __decorate([
573
+ ProxyCmp({
574
+ inputs: ['filter', 'filterPlaceholder']
575
+ })
576
+ ], SixHeaderDropdownItem);
577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeaderDropdownItem, decorators: [{
578
+ type: Component,
579
+ args: [{
580
+ selector: 'six-header-dropdown-item',
581
+ changeDetection: ChangeDetectionStrategy.OnPush,
582
+ template: '<ng-content></ng-content>',
583
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
584
+ inputs: ['filter', 'filterPlaceholder'],
585
+ }]
586
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
587
+ let SixHeaderItem = class SixHeaderItem {
588
+ constructor(c, r, z) {
589
+ this.z = z;
590
+ c.detach();
591
+ this.el = r.nativeElement;
592
+ }
593
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeaderItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
594
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixHeaderItem, selector: "six-header-item", inputs: { active: "active" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
595
+ };
596
+ SixHeaderItem = __decorate([
597
+ ProxyCmp({
598
+ inputs: ['active']
599
+ })
600
+ ], SixHeaderItem);
601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeaderItem, decorators: [{
602
+ type: Component,
603
+ args: [{
604
+ selector: 'six-header-item',
605
+ changeDetection: ChangeDetectionStrategy.OnPush,
606
+ template: '<ng-content></ng-content>',
607
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
608
+ inputs: ['active'],
609
+ }]
610
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
611
+ let SixHeaderMenuButton = class SixHeaderMenuButton {
612
+ constructor(c, r, z) {
613
+ this.z = z;
614
+ c.detach();
615
+ this.el = r.nativeElement;
616
+ }
617
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeaderMenuButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
618
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixHeaderMenuButton, selector: "six-header-menu-button", inputs: { caret: "caret", disabled: "disabled", loading: "loading", reset: "reset", submit: "submit" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
619
+ };
620
+ SixHeaderMenuButton = __decorate([
621
+ ProxyCmp({
622
+ inputs: ['caret', 'disabled', 'loading', 'reset', 'submit']
623
+ })
624
+ ], SixHeaderMenuButton);
625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixHeaderMenuButton, decorators: [{
626
+ type: Component,
627
+ args: [{
628
+ selector: 'six-header-menu-button',
629
+ changeDetection: ChangeDetectionStrategy.OnPush,
630
+ template: '<ng-content></ng-content>',
631
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
632
+ inputs: ['caret', 'disabled', 'loading', 'reset', 'submit'],
560
633
  }]
561
634
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
562
635
  let SixIcon = class SixIcon {
@@ -590,11 +663,11 @@ let SixIconButton = class SixIconButton {
590
663
  this.el = r.nativeElement;
591
664
  }
592
665
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixIconButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
593
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixIconButton, selector: "six-icon-button", inputs: { disabled: "disabled", html: "html", label: "label", name: "name", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
666
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixIconButton, selector: "six-icon-button", inputs: { disabled: "disabled", download: "download", href: "href", html: "html", label: "label", name: "name", size: "size", target: "target" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
594
667
  };
595
668
  SixIconButton = __decorate([
596
669
  ProxyCmp({
597
- inputs: ['disabled', 'html', 'label', 'name', 'size']
670
+ inputs: ['disabled', 'download', 'href', 'html', 'label', 'name', 'size', 'target']
598
671
  })
599
672
  ], SixIconButton);
600
673
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixIconButton, decorators: [{
@@ -604,7 +677,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
604
677
  changeDetection: ChangeDetectionStrategy.OnPush,
605
678
  template: '<ng-content></ng-content>',
606
679
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
607
- inputs: ['disabled', 'html', 'label', 'name', 'size'],
680
+ inputs: ['disabled', 'download', 'href', 'html', 'label', 'name', 'size', 'target'],
608
681
  }]
609
682
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
610
683
  let SixInput = class SixInput {
@@ -620,7 +693,7 @@ let SixInput = class SixInput {
620
693
  SixInput = __decorate([
621
694
  ProxyCmp({
622
695
  inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearable', 'disabled', 'dropdownSearch', 'errorText', 'errorTextCount', 'helpText', 'inputmode', 'invalid', 'label', 'line', 'max', 'maxlength', 'min', 'minlength', 'name', 'pattern', 'pill', 'placeholder', 'readonly', 'required', 'size', 'spellcheck', 'step', 'togglePassword', 'type', 'value'],
623
- methods: ['setFocus', 'removeFocus', 'select', 'setSelectionRange', 'setRangeText']
696
+ methods: ['setFocus', 'removeFocus', 'select', 'setSelectionRange', 'getSelectionRange', 'setRangeText']
624
697
  })
625
698
  ], SixInput);
626
699
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixInput, decorators: [{
@@ -707,6 +780,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
707
780
  inputs: ['columns'],
708
781
  }]
709
782
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
783
+ let SixLogo = class SixLogo {
784
+ constructor(c, r, z) {
785
+ this.z = z;
786
+ c.detach();
787
+ this.el = r.nativeElement;
788
+ }
789
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixLogo, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
790
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixLogo, selector: "six-logo", inputs: { brand: "brand" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
791
+ };
792
+ SixLogo = __decorate([
793
+ ProxyCmp({
794
+ inputs: ['brand']
795
+ })
796
+ ], SixLogo);
797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixLogo, decorators: [{
798
+ type: Component,
799
+ args: [{
800
+ selector: 'six-logo',
801
+ changeDetection: ChangeDetectionStrategy.OnPush,
802
+ template: '<ng-content></ng-content>',
803
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
804
+ inputs: ['brand'],
805
+ }]
806
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
710
807
  let SixMainContainer = class SixMainContainer {
711
808
  constructor(c, r, z) {
712
809
  this.z = z;
@@ -955,14 +1052,13 @@ let SixRoot = class SixRoot {
955
1052
  this.z = z;
956
1053
  c.detach();
957
1054
  this.el = r.nativeElement;
958
- proxyOutputs(this, this.el, ['six-root-collapsed']);
959
1055
  }
960
1056
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixRoot, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
961
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixRoot, selector: "six-root", inputs: { breakpoint: "breakpoint", padded: "padded", stage: "stage", version: "version" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1057
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixRoot, selector: "six-root", inputs: { padded: "padded", stage: "stage", version: "version" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
962
1058
  };
963
1059
  SixRoot = __decorate([
964
1060
  ProxyCmp({
965
- inputs: ['breakpoint', 'padded', 'stage', 'version']
1061
+ inputs: ['padded', 'stage', 'version']
966
1062
  })
967
1063
  ], SixRoot);
968
1064
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixRoot, decorators: [{
@@ -972,7 +1068,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
972
1068
  changeDetection: ChangeDetectionStrategy.OnPush,
973
1069
  template: '<ng-content></ng-content>',
974
1070
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
975
- inputs: ['breakpoint', 'padded', 'stage', 'version'],
1071
+ inputs: ['padded', 'stage', 'version'],
976
1072
  }]
977
1073
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
978
1074
  let SixSearchField = class SixSearchField {
@@ -1008,11 +1104,11 @@ let SixSelect = class SixSelect {
1008
1104
  proxyOutputs(this, this.el, ['six-select-change', 'six-select-focus', 'six-select-blur']);
1009
1105
  }
1010
1106
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1011
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixSelect, selector: "six-select", inputs: { asyncFilter: "asyncFilter", autocomplete: "autocomplete", clearable: "clearable", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", filter: "filter", filterDebounce: "filterDebounce", filterPlaceholder: "filterPlaceholder", helpText: "helpText", hoist: "hoist", inputDebounce: "inputDebounce", invalid: "invalid", label: "label", line: "line", maxTagsVisible: "maxTagsVisible", multiple: "multiple", name: "name", options: "options", pill: "pill", placeholder: "placeholder", required: "required", selectAllButton: "selectAllButton", selectAllText: "selectAllText", size: "size", value: "value", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1107
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixSelect, selector: "six-select", inputs: { asyncFilter: "asyncFilter", autocomplete: "autocomplete", clearable: "clearable", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", filter: "filter", filterDebounce: "filterDebounce", filterPlaceholder: "filterPlaceholder", helpText: "helpText", hoist: "hoist", inputDebounce: "inputDebounce", invalid: "invalid", label: "label", line: "line", multiple: "multiple", name: "name", options: "options", pill: "pill", placeholder: "placeholder", required: "required", selectAllButton: "selectAllButton", selectAllText: "selectAllText", size: "size", value: "value", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1012
1108
  };
1013
1109
  SixSelect = __decorate([
1014
1110
  ProxyCmp({
1015
- inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'errorTextCount', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'maxTagsVisible', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'selectAllButton', 'selectAllText', 'size', 'value', 'virtualScroll'],
1111
+ inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'errorTextCount', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'selectAllButton', 'selectAllText', 'size', 'value', 'virtualScroll'],
1016
1112
  methods: ['setFocus']
1017
1113
  })
1018
1114
  ], SixSelect);
@@ -1023,7 +1119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1023
1119
  changeDetection: ChangeDetectionStrategy.OnPush,
1024
1120
  template: '<ng-content></ng-content>',
1025
1121
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1026
- inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'errorTextCount', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'maxTagsVisible', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'selectAllButton', 'selectAllText', 'size', 'value', 'virtualScroll'],
1122
+ inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'errorTextCount', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'selectAllButton', 'selectAllText', 'size', 'value', 'virtualScroll'],
1027
1123
  }]
1028
1124
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1029
1125
  let SixSidebar = class SixSidebar {
@@ -1059,11 +1155,11 @@ let SixSidebarItem = class SixSidebarItem {
1059
1155
  this.el = r.nativeElement;
1060
1156
  }
1061
1157
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixSidebarItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1062
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixSidebarItem, selector: "six-sidebar-item", inputs: { disabled: "disabled", href: "href", selected: "selected", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1158
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixSidebarItem, selector: "six-sidebar-item", inputs: { disabled: "disabled", href: "href", icon: "icon", selected: "selected", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1063
1159
  };
1064
1160
  SixSidebarItem = __decorate([
1065
1161
  ProxyCmp({
1066
- inputs: ['disabled', 'href', 'selected', 'value']
1162
+ inputs: ['disabled', 'href', 'icon', 'selected', 'value']
1067
1163
  })
1068
1164
  ], SixSidebarItem);
1069
1165
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixSidebarItem, decorators: [{
@@ -1073,7 +1169,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1073
1169
  changeDetection: ChangeDetectionStrategy.OnPush,
1074
1170
  template: '<ng-content></ng-content>',
1075
1171
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1076
- inputs: ['disabled', 'href', 'selected', 'value'],
1172
+ inputs: ['disabled', 'href', 'icon', 'selected', 'value'],
1077
1173
  }]
1078
1174
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1079
1175
  let SixSidebarItemGroup = class SixSidebarItemGroup {
@@ -1107,11 +1203,11 @@ let SixSpinner = class SixSpinner {
1107
1203
  this.el = r.nativeElement;
1108
1204
  }
1109
1205
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixSpinner, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1110
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixSpinner, selector: "six-spinner", inputs: { six: "six" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1206
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixSpinner, selector: "six-spinner", inputs: { logo: "logo", six: "six" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1111
1207
  };
1112
1208
  SixSpinner = __decorate([
1113
1209
  ProxyCmp({
1114
- inputs: ['six']
1210
+ inputs: ['logo', 'six']
1115
1211
  })
1116
1212
  ], SixSpinner);
1117
1213
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixSpinner, decorators: [{
@@ -1121,7 +1217,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1121
1217
  changeDetection: ChangeDetectionStrategy.OnPush,
1122
1218
  template: '<ng-content></ng-content>',
1123
1219
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1124
- inputs: ['six'],
1220
+ inputs: ['logo', 'six'],
1125
1221
  }]
1126
1222
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1127
1223
  let SixStageIndicator = class SixStageIndicator {
@@ -1381,13 +1477,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1381
1477
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1382
1478
 
1383
1479
  const DIRECTIVES = [
1384
- SetAttributes,
1385
1480
  SixAlert,
1386
1481
  SixAvatar,
1387
1482
  SixBadge,
1388
1483
  SixButton,
1389
1484
  SixCard,
1390
1485
  SixCheckbox,
1486
+ SixDate,
1391
1487
  SixDatepicker,
1392
1488
  SixDetails,
1393
1489
  SixDialog,
@@ -1401,12 +1497,16 @@ const DIRECTIVES = [
1401
1497
  SixFooter,
1402
1498
  SixGroupLabel,
1403
1499
  SixHeader,
1500
+ SixHeaderDropdownItem,
1501
+ SixHeaderItem,
1502
+ SixHeaderMenuButton,
1404
1503
  SixIcon,
1405
1504
  SixIconButton,
1406
1505
  SixInput,
1407
1506
  SixItemPicker,
1408
1507
  SixLanguageSwitcher,
1409
1508
  SixLayoutGrid,
1509
+ SixLogo,
1410
1510
  SixMainContainer,
1411
1511
  SixMenu,
1412
1512
  SixMenuDivider,
@@ -1497,7 +1597,7 @@ class ValueAccessor {
1497
1597
  return;
1498
1598
  const element = this.el.nativeElement;
1499
1599
  const control = this.ngControl?.control;
1500
- const invalid = !control.valid && control.dirty && control.touched;
1600
+ const invalid = control.status === 'INVALID' && control.dirty && control.touched;
1501
1601
  let errorTexts;
1502
1602
  if (invalid) {
1503
1603
  errorTexts = this.initialErrorText || this.getErrorTexts(control);
@@ -1898,6 +1998,30 @@ class SixUiLibraryValidators {
1898
1998
  return allowed ? null : { invaliddate: { actual: control.value } };
1899
1999
  };
1900
2000
  }
2001
+ static minDateIso(mindate) {
2002
+ return (control) => {
2003
+ if (control.value == null || control.value === '')
2004
+ return null;
2005
+ const actualDate = control.value;
2006
+ return actualDate >= mindate ? null : { mindate: { mindate, actual: actualDate } };
2007
+ };
2008
+ }
2009
+ static maxDateIso(maxdate) {
2010
+ return (control) => {
2011
+ if (control.value == null || control.value === '')
2012
+ return null;
2013
+ const actualDate = control.value;
2014
+ return actualDate <= maxdate ? null : { maxdate: { maxdate, actual: actualDate } };
2015
+ };
2016
+ }
2017
+ static allowedDatesIso(allowedDates = () => true) {
2018
+ return (control) => {
2019
+ if (control.value == null || control.value === '')
2020
+ return null;
2021
+ const allowed = allowedDates(control.value);
2022
+ return allowed ? null : { invaliddate: { actual: control.value } };
2023
+ };
2024
+ }
1901
2025
  }
1902
2026
  class MinDateValidator {
1903
2027
  validate(control) {
@@ -1956,6 +2080,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1956
2080
  }], propDecorators: { allowedDates: [{
1957
2081
  type: Input
1958
2082
  }] } });
2083
+ class MinDateValidatorIso {
2084
+ validate(control) {
2085
+ if (this.min != null) {
2086
+ return SixUiLibraryValidators.minDateIso(this.min)(control);
2087
+ }
2088
+ return null;
2089
+ }
2090
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MinDateValidatorIso, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2091
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MinDateValidatorIso, selector: "six-date[min]", inputs: { min: "min" }, providers: [{ provide: NG_VALIDATORS, useExisting: MinDateValidatorIso, multi: true }], ngImport: i0 }); }
2092
+ }
2093
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MinDateValidatorIso, decorators: [{
2094
+ type: Directive,
2095
+ args: [{
2096
+ selector: 'six-date[min]',
2097
+ providers: [{ provide: NG_VALIDATORS, useExisting: MinDateValidatorIso, multi: true }],
2098
+ }]
2099
+ }], propDecorators: { min: [{
2100
+ type: Input
2101
+ }] } });
2102
+ class MaxDateValidatorIso {
2103
+ validate(control) {
2104
+ if (this.max != null) {
2105
+ return SixUiLibraryValidators.maxDateIso(this.max)(control);
2106
+ }
2107
+ return null;
2108
+ }
2109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaxDateValidatorIso, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2110
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MaxDateValidatorIso, selector: "six-date[max]", inputs: { max: "max" }, providers: [{ provide: NG_VALIDATORS, useExisting: MaxDateValidatorIso, multi: true }], ngImport: i0 }); }
2111
+ }
2112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaxDateValidatorIso, decorators: [{
2113
+ type: Directive,
2114
+ args: [{
2115
+ selector: 'six-date[max]',
2116
+ providers: [{ provide: NG_VALIDATORS, useExisting: MaxDateValidatorIso, multi: true }],
2117
+ }]
2118
+ }], propDecorators: { max: [{
2119
+ type: Input
2120
+ }] } });
2121
+ class AllowedDatesValidatorIso {
2122
+ constructor() {
2123
+ this.allowedDates = () => true;
2124
+ }
2125
+ validate(control) {
2126
+ return SixUiLibraryValidators.allowedDatesIso(this.allowedDates)(control);
2127
+ }
2128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AllowedDatesValidatorIso, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2129
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AllowedDatesValidatorIso, selector: "six-date[allowedDates]", inputs: { allowedDates: "allowedDates" }, providers: [{ provide: NG_VALIDATORS, useExisting: AllowedDatesValidatorIso, multi: true }], ngImport: i0 }); }
2130
+ }
2131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AllowedDatesValidatorIso, decorators: [{
2132
+ type: Directive,
2133
+ args: [{
2134
+ selector: 'six-date[allowedDates]',
2135
+ providers: [{ provide: NG_VALIDATORS, useExisting: AllowedDatesValidatorIso, multi: true }],
2136
+ }]
2137
+ }], propDecorators: { allowedDates: [{
2138
+ type: Input
2139
+ }] } });
1959
2140
  class MinValidator {
1960
2141
  validate(control) {
1961
2142
  return Validators.min(toFloat(this.min))(control);
@@ -2195,15 +2376,20 @@ class SixRouterLinkDirective {
2195
2376
  if (this.routerLinkDirective?.urlTree) {
2196
2377
  const url = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLinkDirective.urlTree));
2197
2378
  this.renderer.setAttribute(this.elementRef.nativeElement, 'href', url);
2379
+ // Remove the `tabindex` attribute to prevent redundant focus behavior.
2380
+ // Angular's RouterLink adds `tabindex="0"` to non-focusable elements (e.g., `<div>`),
2381
+ // but custom components like `six-button` already handle focusability.
2382
+ // Keeping the tabindex would cause the element to receive focus twice.
2383
+ this.renderer.removeAttribute(this.elementRef.nativeElement, 'tabindex');
2198
2384
  }
2199
2385
  }
2200
2386
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixRouterLinkDirective, deps: [{ token: i1$1.LocationStrategy }, { token: i0.ElementRef }, { token: i2.Router }, { token: i0.Renderer2 }, { token: i2.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
2201
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SixRouterLinkDirective, selector: "six-sidebar-item[routerLink],six-sidebar-item-group[routerLink],six-button[routerLink]", inputs: { routerLink: "routerLink", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", relativeTo: "relativeTo" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 }); }
2387
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SixRouterLinkDirective, selector: "six-sidebar-item[routerLink],six-sidebar-item-group[routerLink],six-button[routerLink],six-icon-button[routerLink]", inputs: { routerLink: "routerLink", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", relativeTo: "relativeTo" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 }); }
2202
2388
  }
2203
2389
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixRouterLinkDirective, decorators: [{
2204
2390
  type: Directive,
2205
2391
  args: [{
2206
- selector: 'six-sidebar-item[routerLink],six-sidebar-item-group[routerLink],six-button[routerLink]',
2392
+ selector: 'six-sidebar-item[routerLink],six-sidebar-item-group[routerLink],six-button[routerLink],six-icon-button[routerLink]',
2207
2393
  }]
2208
2394
  }], ctorParameters: function () { return [{ type: i1$1.LocationStrategy }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.Renderer2 }, { type: i2.RouterLink, decorators: [{
2209
2395
  type: Optional
@@ -2222,6 +2408,148 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2222
2408
  type: Input
2223
2409
  }] } });
2224
2410
 
2411
+ /**
2412
+ * Enables Angular router integration for the six-sidebar component.
2413
+ *
2414
+ * When this directive is added to a six-sidebar component using the 'sixRouterLinkActive' attribute,
2415
+ * it activates automatic route-based selection for sidebar items and groups.
2416
+ *
2417
+ * @recommended Add this directive to enable automatic route-based navigation in sidebars.
2418
+ *
2419
+ * @example
2420
+ * ```html
2421
+ * <six-sidebar sixRouterLinkActive>
2422
+ * <six-sidebar-item routerLink="/home">Home</six-sidebar-item>
2423
+ * <six-sidebar-item-group>
2424
+ * <six-sidebar-item routerLink="/settings/profile">Profile</six-sidebar-item>
2425
+ * </six-sidebar-item-group>
2426
+ * </six-sidebar>
2427
+ * ```
2428
+ */
2429
+ class ActiveSidebarDirective {
2430
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActiveSidebarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2431
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ActiveSidebarDirective, selector: "six-sidebar[sixRouterLinkActive]", ngImport: i0 }); }
2432
+ }
2433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActiveSidebarDirective, decorators: [{
2434
+ type: Directive,
2435
+ args: [{
2436
+ selector: 'six-sidebar[sixRouterLinkActive]',
2437
+ }]
2438
+ }] });
2439
+ /**
2440
+ * Enhances six-sidebar-item with Angular router integration.
2441
+ *
2442
+ * This directive automatically manages the 'selected' state of sidebar items based on the current route.
2443
+ * When used with ActiveSidebarDirective, it switches from manual selection to route-based selection.
2444
+ *
2445
+ * @requires RouterLinkActive
2446
+ * @optional ActiveSidebarDirective - If present, enables route-based selection
2447
+ */
2448
+ class ActiveSidebarItemDirective {
2449
+ constructor() {
2450
+ this.routerLinkActive = inject(RouterLinkActive);
2451
+ this.sidebarItem = inject(SixSidebarItem);
2452
+ this.activeSidebarDirective = inject(ActiveSidebarDirective, { optional: true });
2453
+ }
2454
+ get selected() {
2455
+ if (this.activeSidebarDirective == null) {
2456
+ return this.sidebarItem.selected;
2457
+ }
2458
+ else {
2459
+ return this.routerLinkActive.isActive;
2460
+ }
2461
+ }
2462
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActiveSidebarItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2463
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ActiveSidebarItemDirective, selector: "six-sidebar-item", host: { properties: { "selected": "this.selected" } }, hostDirectives: [{ directive: i2.RouterLinkActive }], ngImport: i0 }); }
2464
+ }
2465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActiveSidebarItemDirective, decorators: [{
2466
+ type: Directive,
2467
+ args: [{
2468
+ selector: 'six-sidebar-item',
2469
+ hostDirectives: [RouterLinkActive],
2470
+ }]
2471
+ }], propDecorators: { selected: [{
2472
+ type: HostBinding,
2473
+ args: ['selected']
2474
+ }] } });
2475
+ /**
2476
+ * Enhances six-sidebar-item-group with Angular router integration.
2477
+ *
2478
+ * This directive automatically manages the 'open' state of sidebar groups based on the active route.
2479
+ * When a child route is active, the group automatically expands to show the active item.
2480
+ *
2481
+ * @requires RouterLinkActive
2482
+ * @optional ActiveSidebarDirective - If present, enables route-based expansion
2483
+ */
2484
+ class ActiveSidebarItemGroupDirective {
2485
+ constructor() {
2486
+ this.routerLinkActive = inject(RouterLinkActive);
2487
+ this.sidebarItemGroup = inject(SixSidebarItemGroup);
2488
+ this.activeSidebarDirective = inject(ActiveSidebarDirective, { optional: true });
2489
+ }
2490
+ get open() {
2491
+ if (this.activeSidebarDirective == null) {
2492
+ return this.sidebarItemGroup.open;
2493
+ }
2494
+ if (this.sidebarItems?.length > 0) {
2495
+ return this.routerLinkActive.isActive ? true : this.sidebarItemGroup.open;
2496
+ }
2497
+ return this.routerLinkActive.isActive;
2498
+ }
2499
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActiveSidebarItemGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2500
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ActiveSidebarItemGroupDirective, selector: "six-sidebar-item-group", host: { properties: { "open": "this.open" } }, queries: [{ propertyName: "sidebarItems", predicate: SixSidebarItem }], hostDirectives: [{ directive: i2.RouterLinkActive }], ngImport: i0 }); }
2501
+ }
2502
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActiveSidebarItemGroupDirective, decorators: [{
2503
+ type: Directive,
2504
+ args: [{
2505
+ selector: 'six-sidebar-item-group',
2506
+ hostDirectives: [RouterLinkActive],
2507
+ }]
2508
+ }], propDecorators: { sidebarItems: [{
2509
+ type: ContentChildren,
2510
+ args: [SixSidebarItem]
2511
+ }], open: [{
2512
+ type: HostBinding,
2513
+ args: ['open']
2514
+ }] } });
2515
+
2516
+ class DateValueAccessor extends ValueAccessor {
2517
+ constructor(injector, el) {
2518
+ super(injector, el);
2519
+ }
2520
+ handleInputEvent(el) {
2521
+ this.handleValueChange(el, el.value);
2522
+ }
2523
+ writeValue(value) {
2524
+ this.el.nativeElement.value = value == null ? '' : value;
2525
+ this.updateValidation();
2526
+ }
2527
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateValueAccessor, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2528
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateValueAccessor, selector: "six-date", host: { listeners: { "change": "handleInputEvent($event.target)" } }, providers: [
2529
+ {
2530
+ provide: NG_VALUE_ACCESSOR,
2531
+ useExisting: DateValueAccessor,
2532
+ multi: true,
2533
+ },
2534
+ ], usesInheritance: true, ngImport: i0 }); }
2535
+ }
2536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateValueAccessor, decorators: [{
2537
+ type: Directive,
2538
+ args: [{
2539
+ selector: 'six-date',
2540
+ providers: [
2541
+ {
2542
+ provide: NG_VALUE_ACCESSOR,
2543
+ useExisting: DateValueAccessor,
2544
+ multi: true,
2545
+ },
2546
+ ],
2547
+ }]
2548
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { handleInputEvent: [{
2549
+ type: HostListener,
2550
+ args: ['change', ['$event.target']]
2551
+ }] } });
2552
+
2225
2553
  class UiLibraryAngularModule {
2226
2554
  static forRoot(customValidationMessagesService) {
2227
2555
  return {
@@ -2237,12 +2565,13 @@ class UiLibraryAngularModule {
2237
2565
  };
2238
2566
  }
2239
2567
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2240
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule, declarations: [SetAttributes, SixAlert, SixAvatar, SixBadge, SixButton, SixCard, SixCheckbox, SixDatepicker, SixDetails, SixDialog, SixDrawer, SixDropdown, SixError, SixErrorPage, SixFileList, SixFileListItem, SixFileUpload, SixFooter, SixGroupLabel, SixHeader, SixIcon, SixIconButton, SixInput, SixItemPicker, SixLanguageSwitcher, SixLayoutGrid, SixMainContainer, SixMenu, SixMenuDivider, SixMenuItem, SixMenuLabel, SixPicto, SixProgressBar, SixProgressRing, SixRadio, SixRange, SixRoot, SixSearchField, SixSelect, SixSidebar, SixSidebarItem, SixSidebarItemGroup, SixSpinner, SixStageIndicator, SixSwitch, SixTab, SixTabGroup, SixTabPanel, SixTag, SixTextarea, SixTile, SixTimepicker, SixTooltip,
2568
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule, declarations: [SixAlert, SixAvatar, SixBadge, SixButton, SixCard, SixCheckbox, SixDate, SixDatepicker, SixDetails, SixDialog, SixDrawer, SixDropdown, SixError, SixErrorPage, SixFileList, SixFileListItem, SixFileUpload, SixFooter, SixGroupLabel, SixHeader, SixHeaderDropdownItem, SixHeaderItem, SixHeaderMenuButton, SixIcon, SixIconButton, SixInput, SixItemPicker, SixLanguageSwitcher, SixLayoutGrid, SixLogo, SixMainContainer, SixMenu, SixMenuDivider, SixMenuItem, SixMenuLabel, SixPicto, SixProgressBar, SixProgressRing, SixRadio, SixRange, SixRoot, SixSearchField, SixSelect, SixSidebar, SixSidebarItem, SixSidebarItemGroup, SixSpinner, SixStageIndicator, SixSwitch, SixTab, SixTabGroup, SixTabPanel, SixTag, SixTextarea, SixTile, SixTimepicker, SixTooltip,
2241
2569
  // value accessors
2242
2570
  TextValueAccessor,
2243
2571
  NumericValueAccessor,
2244
2572
  RadioValueAccessor,
2245
2573
  DatepickerValueAccessor,
2574
+ DateValueAccessor,
2246
2575
  TimepickerValueAccessor,
2247
2576
  SelectValueAccessor,
2248
2577
  CheckboxValueAccessor,
@@ -2254,16 +2583,24 @@ class UiLibraryAngularModule {
2254
2583
  MinDateValidator,
2255
2584
  MaxDateValidator,
2256
2585
  AllowedDatesValidator,
2586
+ MinDateValidatorIso,
2587
+ MaxDateValidatorIso,
2588
+ AllowedDatesValidatorIso,
2257
2589
  // form helpers
2258
2590
  SixFormDirective,
2259
2591
  SixFormUtilDirective,
2260
2592
  // router link directive
2261
- SixRouterLinkDirective], exports: [SetAttributes, SixAlert, SixAvatar, SixBadge, SixButton, SixCard, SixCheckbox, SixDatepicker, SixDetails, SixDialog, SixDrawer, SixDropdown, SixError, SixErrorPage, SixFileList, SixFileListItem, SixFileUpload, SixFooter, SixGroupLabel, SixHeader, SixIcon, SixIconButton, SixInput, SixItemPicker, SixLanguageSwitcher, SixLayoutGrid, SixMainContainer, SixMenu, SixMenuDivider, SixMenuItem, SixMenuLabel, SixPicto, SixProgressBar, SixProgressRing, SixRadio, SixRange, SixRoot, SixSearchField, SixSelect, SixSidebar, SixSidebarItem, SixSidebarItemGroup, SixSpinner, SixStageIndicator, SixSwitch, SixTab, SixTabGroup, SixTabPanel, SixTag, SixTextarea, SixTile, SixTimepicker, SixTooltip,
2593
+ SixRouterLinkDirective,
2594
+ // sidebar helpers
2595
+ ActiveSidebarItemDirective,
2596
+ ActiveSidebarItemGroupDirective,
2597
+ ActiveSidebarDirective], exports: [SixAlert, SixAvatar, SixBadge, SixButton, SixCard, SixCheckbox, SixDate, SixDatepicker, SixDetails, SixDialog, SixDrawer, SixDropdown, SixError, SixErrorPage, SixFileList, SixFileListItem, SixFileUpload, SixFooter, SixGroupLabel, SixHeader, SixHeaderDropdownItem, SixHeaderItem, SixHeaderMenuButton, SixIcon, SixIconButton, SixInput, SixItemPicker, SixLanguageSwitcher, SixLayoutGrid, SixLogo, SixMainContainer, SixMenu, SixMenuDivider, SixMenuItem, SixMenuLabel, SixPicto, SixProgressBar, SixProgressRing, SixRadio, SixRange, SixRoot, SixSearchField, SixSelect, SixSidebar, SixSidebarItem, SixSidebarItemGroup, SixSpinner, SixStageIndicator, SixSwitch, SixTab, SixTabGroup, SixTabPanel, SixTag, SixTextarea, SixTile, SixTimepicker, SixTooltip,
2262
2598
  // value accessors
2263
2599
  TextValueAccessor,
2264
2600
  NumericValueAccessor,
2265
2601
  RadioValueAccessor,
2266
2602
  DatepickerValueAccessor,
2603
+ DateValueAccessor,
2267
2604
  TimepickerValueAccessor,
2268
2605
  SelectValueAccessor,
2269
2606
  CheckboxValueAccessor,
@@ -2275,11 +2612,18 @@ class UiLibraryAngularModule {
2275
2612
  MinDateValidator,
2276
2613
  MaxDateValidator,
2277
2614
  AllowedDatesValidator,
2615
+ MinDateValidatorIso,
2616
+ MaxDateValidatorIso,
2617
+ AllowedDatesValidatorIso,
2278
2618
  // form helpers
2279
2619
  SixFormDirective,
2280
2620
  SixFormUtilDirective,
2281
2621
  // router link directive
2282
- SixRouterLinkDirective] }); }
2622
+ SixRouterLinkDirective,
2623
+ // sidebar helpers
2624
+ ActiveSidebarItemDirective,
2625
+ ActiveSidebarItemGroupDirective,
2626
+ ActiveSidebarDirective] }); }
2283
2627
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule }); }
2284
2628
  }
2285
2629
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule, decorators: [{
@@ -2293,6 +2637,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2293
2637
  NumericValueAccessor,
2294
2638
  RadioValueAccessor,
2295
2639
  DatepickerValueAccessor,
2640
+ DateValueAccessor,
2296
2641
  TimepickerValueAccessor,
2297
2642
  SelectValueAccessor,
2298
2643
  CheckboxValueAccessor,
@@ -2304,11 +2649,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2304
2649
  MinDateValidator,
2305
2650
  MaxDateValidator,
2306
2651
  AllowedDatesValidator,
2652
+ MinDateValidatorIso,
2653
+ MaxDateValidatorIso,
2654
+ AllowedDatesValidatorIso,
2307
2655
  // form helpers
2308
2656
  SixFormDirective,
2309
2657
  SixFormUtilDirective,
2310
2658
  // router link directive
2311
2659
  SixRouterLinkDirective,
2660
+ // sidebar helpers
2661
+ ActiveSidebarItemDirective,
2662
+ ActiveSidebarItemGroupDirective,
2663
+ ActiveSidebarDirective,
2312
2664
  ],
2313
2665
  imports: [],
2314
2666
  exports: [
@@ -2319,6 +2671,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2319
2671
  NumericValueAccessor,
2320
2672
  RadioValueAccessor,
2321
2673
  DatepickerValueAccessor,
2674
+ DateValueAccessor,
2322
2675
  TimepickerValueAccessor,
2323
2676
  SelectValueAccessor,
2324
2677
  CheckboxValueAccessor,
@@ -2330,15 +2683,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2330
2683
  MinDateValidator,
2331
2684
  MaxDateValidator,
2332
2685
  AllowedDatesValidator,
2686
+ MinDateValidatorIso,
2687
+ MaxDateValidatorIso,
2688
+ AllowedDatesValidatorIso,
2333
2689
  // form helpers
2334
2690
  SixFormDirective,
2335
2691
  SixFormUtilDirective,
2336
2692
  // router link directive
2337
2693
  SixRouterLinkDirective,
2694
+ // sidebar helpers
2695
+ ActiveSidebarItemDirective,
2696
+ ActiveSidebarItemGroupDirective,
2697
+ ActiveSidebarDirective,
2338
2698
  ],
2339
2699
  }]
2340
2700
  }] });
2341
2701
 
2702
+ class AlertService {
2703
+ constructor() {
2704
+ this.ngZone = inject(NgZone);
2705
+ }
2706
+ /**
2707
+ * Displays an alert as a toast notification.
2708
+ */
2709
+ showAlert(message, alertType, duration, iconName) {
2710
+ this.ngZone.runOutsideAngular(() => showAlert(message, alertType, duration, iconName));
2711
+ }
2712
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2713
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertService, providedIn: 'root' }); }
2714
+ }
2715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertService, decorators: [{
2716
+ type: Injectable,
2717
+ args: [{ providedIn: 'root' }]
2718
+ }] });
2719
+
2342
2720
  /*
2343
2721
  * Public API Surface of ui-library-angular
2344
2722
  */
@@ -2347,5 +2725,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2347
2725
  * Generated bundle index. Do not edit.
2348
2726
  */
2349
2727
 
2350
- export { AllowedDatesValidator, CheckboxValueAccessor, DIRECTIVES, DatepickerValueAccessor, MaxDateValidator, MaxValidator, MinDateValidator, MinValidator, NumericValueAccessor, RadioValueAccessor, RangeValueAccessor, SelectValueAccessor, SetAttributes, SixAlert, SixAvatar, SixBadge, SixButton, SixCard, SixCheckbox, SixDatepicker, SixDetails, SixDialog, SixDrawer, SixDropdown, SixError, SixErrorPage, SixFileList, SixFileListItem, SixFileUpload, SixFooter, SixFormDirective, SixFormUtilDirective, SixGroupLabel, SixHeader, SixIcon, SixIconButton, SixInput, SixItemPicker, SixLanguageSwitcher, SixLayoutGrid, SixMainContainer, SixMenu, SixMenuDivider, SixMenuItem, SixMenuLabel, SixPicto, SixProgressBar, SixProgressRing, SixRadio, SixRange, SixRoot, SixRouterLinkDirective, SixSearchField, SixSelect, SixSidebar, SixSidebarItem, SixSidebarItemGroup, SixSpinner, SixStageIndicator, SixSwitch, SixTab, SixTabGroup, SixTabPanel, SixTag, SixTextarea, SixTile, SixTimepicker, SixTooltip, SixUiLibraryValidators, SwitchValueAccessor, TextValueAccessor, TimepickerValueAccessor, UiLibraryAngularModule, ValidationMessagesService, ValueAccessor };
2728
+ export { ActiveSidebarDirective, ActiveSidebarItemDirective, ActiveSidebarItemGroupDirective, AlertService, AllowedDatesValidator, AllowedDatesValidatorIso, CheckboxValueAccessor, DIRECTIVES, DateValueAccessor, DatepickerValueAccessor, MaxDateValidator, MaxDateValidatorIso, MaxValidator, MinDateValidator, MinDateValidatorIso, MinValidator, NumericValueAccessor, RadioValueAccessor, RangeValueAccessor, SelectValueAccessor, SixAlert, SixAvatar, SixBadge, SixButton, SixCard, SixCheckbox, SixDate, SixDatepicker, SixDetails, SixDialog, SixDrawer, SixDropdown, SixError, SixErrorPage, SixFileList, SixFileListItem, SixFileUpload, SixFooter, SixFormDirective, SixFormUtilDirective, SixGroupLabel, SixHeader, SixHeaderDropdownItem, SixHeaderItem, SixHeaderMenuButton, SixIcon, SixIconButton, SixInput, SixItemPicker, SixLanguageSwitcher, SixLayoutGrid, SixLogo, SixMainContainer, SixMenu, SixMenuDivider, SixMenuItem, SixMenuLabel, SixPicto, SixProgressBar, SixProgressRing, SixRadio, SixRange, SixRoot, SixRouterLinkDirective, SixSearchField, SixSelect, SixSidebar, SixSidebarItem, SixSidebarItemGroup, SixSpinner, SixStageIndicator, SixSwitch, SixTab, SixTabGroup, SixTabPanel, SixTag, SixTextarea, SixTile, SixTimepicker, SixTooltip, SixUiLibraryValidators, SwitchValueAccessor, TextValueAccessor, TimepickerValueAccessor, UiLibraryAngularModule, ValidationMessagesService, ValueAccessor };
2351
2729
  //# sourceMappingURL=six-group-ui-library-angular.mjs.map