@six-group/ui-library-angular 0.0.0-insider.b26fdef → 0.0.0-insider.b2db78f
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.
- package/esm2022/lib/control-value-accessors/date-value-accessor.mjs +41 -0
- package/esm2022/lib/control-value-accessors/value-accessor.mjs +3 -10
- package/esm2022/lib/link/six-router-link.directive.mjs +8 -3
- package/esm2022/lib/services/alert.service.mjs +21 -0
- package/esm2022/lib/sidebar/active-sidebar.directive.mjs +110 -0
- package/esm2022/lib/stencil-generated/components.mjs +158 -63
- package/esm2022/lib/stencil-generated/index.mjs +6 -2
- package/esm2022/lib/ui-library-angular.module.mjs +39 -5
- package/esm2022/lib/validators/six-ui-library-validators.mjs +82 -1
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/six-group-ui-library-angular.mjs +450 -79
- package/fesm2022/six-group-ui-library-angular.mjs.map +1 -1
- package/lib/control-value-accessors/date-value-accessor.d.ts +10 -0
- package/lib/link/six-router-link.directive.d.ts +1 -1
- package/lib/services/alert.service.d.ts +11 -0
- package/lib/sidebar/active-sidebar.directive.d.ts +59 -0
- package/lib/stencil-generated/components.d.ts +66 -53
- package/lib/stencil-generated/index.d.ts +1 -1
- package/lib/ui-library-angular.module.d.ts +11 -9
- package/lib/validators/six-ui-library-validators.d.ts +27 -0
- package/package.json +5 -2
- package/public-api.d.ts +3 -0
|
@@ -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,
|
|
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;
|
|
@@ -351,12 +354,12 @@ let SixDropdown = class SixDropdown {
|
|
|
351
354
|
proxyOutputs(this, this.el, ['six-dropdown-show', 'six-dropdown-after-show', 'six-dropdown-hide', 'six-dropdown-after-hide', 'six-dropdown-auto-filter-fired', 'six-async-filter-fired', 'six-dropdown-scroll']);
|
|
352
355
|
}
|
|
353
356
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
354
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixDropdown, selector: "six-dropdown", inputs: { asyncFilter: "asyncFilter", autofocusFilter: "autofocusFilter", closeOnSelect: "closeOnSelect", containingElement: "containingElement", disableHideOnEnterAndSpace: "disableHideOnEnterAndSpace", distance: "distance", filter: "filter", filterDebounce: "filterDebounce", filterPlaceholder: "filterPlaceholder", hoist: "hoist", open: "open", options: "options", placement: "placement", skidding: "skidding", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
357
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixDropdown, selector: "six-dropdown", inputs: { asyncFilter: "asyncFilter", autofocusFilter: "autofocusFilter", closeOnSelect: "closeOnSelect", containingElement: "containingElement", disableHideOnEnterAndSpace: "disableHideOnEnterAndSpace", distance: "distance", filter: "filter", filterDebounce: "filterDebounce", filterPlaceholder: "filterPlaceholder", hoist: "hoist", matchTriggerWidth: "matchTriggerWidth", open: "open", options: "options", placement: "placement", skidding: "skidding", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
355
358
|
};
|
|
356
359
|
SixDropdown = __decorate([
|
|
357
360
|
ProxyCmp({
|
|
358
|
-
inputs: ['asyncFilter', 'autofocusFilter', 'closeOnSelect', 'containingElement', 'disableHideOnEnterAndSpace', 'distance', 'filter', 'filterDebounce', 'filterPlaceholder', 'hoist', 'open', 'options', 'placement', 'skidding', 'virtualScroll'],
|
|
359
|
-
methods: ['show', 'hide'
|
|
361
|
+
inputs: ['asyncFilter', 'autofocusFilter', 'closeOnSelect', 'containingElement', 'disableHideOnEnterAndSpace', 'distance', 'filter', 'filterDebounce', 'filterPlaceholder', 'hoist', 'matchTriggerWidth', 'open', 'options', 'placement', 'skidding', 'virtualScroll'],
|
|
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: [{
|
|
@@ -366,7 +369,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
366
369
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
367
370
|
template: '<ng-content></ng-content>',
|
|
368
371
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
369
|
-
inputs: ['asyncFilter', 'autofocusFilter', 'closeOnSelect', 'containingElement', 'disableHideOnEnterAndSpace', 'distance', 'filter', 'filterDebounce', 'filterPlaceholder', 'hoist', 'open', 'options', 'placement', 'skidding', 'virtualScroll'],
|
|
372
|
+
inputs: ['asyncFilter', 'autofocusFilter', 'closeOnSelect', 'containingElement', 'disableHideOnEnterAndSpace', 'distance', 'filter', 'filterDebounce', 'filterPlaceholder', 'hoist', 'matchTriggerWidth', 'open', 'options', 'placement', 'skidding', 'virtualScroll'],
|
|
370
373
|
}]
|
|
371
374
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
372
375
|
let SixError = class SixError {
|
|
@@ -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: {
|
|
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: ['
|
|
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: ['
|
|
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 {
|
|
@@ -615,12 +688,12 @@ let SixInput = class SixInput {
|
|
|
615
688
|
proxyOutputs(this, this.el, ['six-input-change', 'six-input-clear', 'six-input-input', 'six-input-focus', 'six-input-blur']);
|
|
616
689
|
}
|
|
617
690
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixInput, 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: SixInput, selector: "six-input", inputs: { autocapitalize: "autocapitalize", autocomplete: "autocomplete", autocorrect: "autocorrect", autofocus: "autofocus", clearable: "clearable", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", helpText: "helpText", inputmode: "inputmode", invalid: "invalid", label: "label", line: "line", max: "max", maxlength: "maxlength", min: "min", minlength: "minlength", name: "name", pattern: "pattern", pill: "pill", placeholder: "placeholder", readonly: "readonly", required: "required", size: "size", spellcheck: "spellcheck", step: "step", togglePassword: "togglePassword", type: "type", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
691
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixInput, selector: "six-input", inputs: { autocapitalize: "autocapitalize", autocomplete: "autocomplete", autocorrect: "autocorrect", autofocus: "autofocus", clearable: "clearable", disabled: "disabled", dropdownSearch: "dropdownSearch", errorText: "errorText", errorTextCount: "errorTextCount", helpText: "helpText", inputmode: "inputmode", invalid: "invalid", label: "label", line: "line", max: "max", maxlength: "maxlength", min: "min", minlength: "minlength", name: "name", pattern: "pattern", pill: "pill", placeholder: "placeholder", readonly: "readonly", required: "required", size: "size", spellcheck: "spellcheck", step: "step", togglePassword: "togglePassword", type: "type", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
619
692
|
};
|
|
620
693
|
SixInput = __decorate([
|
|
621
694
|
ProxyCmp({
|
|
622
|
-
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearable', 'disabled', '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']
|
|
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'],
|
|
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: [{
|
|
@@ -630,7 +703,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
630
703
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
631
704
|
template: '<ng-content></ng-content>',
|
|
632
705
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
633
|
-
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearable', 'disabled', 'errorText', 'errorTextCount', 'helpText', 'inputmode', 'invalid', 'label', 'line', 'max', 'maxlength', 'min', 'minlength', 'name', 'pattern', 'pill', 'placeholder', 'readonly', 'required', 'size', 'spellcheck', 'step', 'togglePassword', 'type', 'value'],
|
|
706
|
+
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'],
|
|
634
707
|
}]
|
|
635
708
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
636
709
|
let SixItemPicker = class SixItemPicker {
|
|
@@ -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;
|
|
@@ -739,11 +836,11 @@ let SixMenu = class SixMenu {
|
|
|
739
836
|
proxyOutputs(this, this.el, ['six-menu-item-selected']);
|
|
740
837
|
}
|
|
741
838
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixMenu, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
742
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixMenu, selector: "six-menu", inputs: { itemSize: "itemSize", items: "items", itemsShown: "itemsShown", removeBoxShadow: "removeBoxShadow", scrollingDebounce: "scrollingDebounce", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
839
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixMenu, selector: "six-menu", inputs: { disableKeyboardHandling: "disableKeyboardHandling", itemSize: "itemSize", items: "items", itemsShown: "itemsShown", removeBoxShadow: "removeBoxShadow", scrollingDebounce: "scrollingDebounce", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
743
840
|
};
|
|
744
841
|
SixMenu = __decorate([
|
|
745
842
|
ProxyCmp({
|
|
746
|
-
inputs: ['itemSize', 'items', 'itemsShown', 'removeBoxShadow', 'scrollingDebounce', 'virtualScroll'],
|
|
843
|
+
inputs: ['disableKeyboardHandling', 'itemSize', 'items', 'itemsShown', 'removeBoxShadow', 'scrollingDebounce', 'virtualScroll'],
|
|
747
844
|
methods: ['typeToSelect']
|
|
748
845
|
})
|
|
749
846
|
], SixMenu);
|
|
@@ -754,7 +851,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
754
851
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
755
852
|
template: '<ng-content></ng-content>',
|
|
756
853
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
757
|
-
inputs: ['itemSize', 'items', 'itemsShown', 'removeBoxShadow', 'scrollingDebounce', 'virtualScroll'],
|
|
854
|
+
inputs: ['disableKeyboardHandling', 'itemSize', 'items', 'itemsShown', 'removeBoxShadow', 'scrollingDebounce', 'virtualScroll'],
|
|
758
855
|
}]
|
|
759
856
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
760
857
|
let SixMenuDivider = class SixMenuDivider {
|
|
@@ -786,11 +883,11 @@ let SixMenuItem = class SixMenuItem {
|
|
|
786
883
|
this.el = r.nativeElement;
|
|
787
884
|
}
|
|
788
885
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixMenuItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
789
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixMenuItem, selector: "six-menu-item", inputs: { checked: "checked", disabled: "disabled", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
886
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SixMenuItem, selector: "six-menu-item", inputs: { checkType: "checkType", checked: "checked", disabled: "disabled", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
790
887
|
};
|
|
791
888
|
SixMenuItem = __decorate([
|
|
792
889
|
ProxyCmp({
|
|
793
|
-
inputs: ['checked', 'disabled', 'value'],
|
|
890
|
+
inputs: ['checkType', 'checked', 'disabled', 'value'],
|
|
794
891
|
methods: ['setFocus', 'removeFocus', 'getTextLabel']
|
|
795
892
|
})
|
|
796
893
|
], SixMenuItem);
|
|
@@ -801,7 +898,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
801
898
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
802
899
|
template: '<ng-content></ng-content>',
|
|
803
900
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
804
|
-
inputs: ['checked', 'disabled', 'value'],
|
|
901
|
+
inputs: ['checkType', 'checked', 'disabled', 'value'],
|
|
805
902
|
}]
|
|
806
903
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
807
904
|
let SixMenuLabel = class SixMenuLabel {
|
|
@@ -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: {
|
|
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: ['
|
|
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: ['
|
|
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",
|
|
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', '
|
|
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', '
|
|
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 =
|
|
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);
|
|
@@ -1571,13 +1671,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1571
1671
|
type: HostListener,
|
|
1572
1672
|
args: ['blur', ['$event.target']]
|
|
1573
1673
|
}] } });
|
|
1574
|
-
function getLanguage() {
|
|
1575
|
-
const documentLang = document.documentElement.lang;
|
|
1576
|
-
if (languages.includes(documentLang)) {
|
|
1577
|
-
return documentLang;
|
|
1578
|
-
}
|
|
1579
|
-
return 'de';
|
|
1580
|
-
}
|
|
1581
1674
|
const nextTick = (h) => {
|
|
1582
1675
|
if (typeof __zone_symbol__requestAnimationFrame === 'function') {
|
|
1583
1676
|
return __zone_symbol__requestAnimationFrame(h);
|
|
@@ -1905,6 +1998,30 @@ class SixUiLibraryValidators {
|
|
|
1905
1998
|
return allowed ? null : { invaliddate: { actual: control.value } };
|
|
1906
1999
|
};
|
|
1907
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
|
+
}
|
|
1908
2025
|
}
|
|
1909
2026
|
class MinDateValidator {
|
|
1910
2027
|
validate(control) {
|
|
@@ -1963,6 +2080,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1963
2080
|
}], propDecorators: { allowedDates: [{
|
|
1964
2081
|
type: Input
|
|
1965
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
|
+
}] } });
|
|
1966
2140
|
class MinValidator {
|
|
1967
2141
|
validate(control) {
|
|
1968
2142
|
return Validators.min(toFloat(this.min))(control);
|
|
@@ -2202,15 +2376,20 @@ class SixRouterLinkDirective {
|
|
|
2202
2376
|
if (this.routerLinkDirective?.urlTree) {
|
|
2203
2377
|
const url = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLinkDirective.urlTree));
|
|
2204
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');
|
|
2205
2384
|
}
|
|
2206
2385
|
}
|
|
2207
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 }); }
|
|
2208
|
-
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 }); }
|
|
2209
2388
|
}
|
|
2210
2389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SixRouterLinkDirective, decorators: [{
|
|
2211
2390
|
type: Directive,
|
|
2212
2391
|
args: [{
|
|
2213
|
-
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]',
|
|
2214
2393
|
}]
|
|
2215
2394
|
}], ctorParameters: function () { return [{ type: i1$1.LocationStrategy }, { type: i0.ElementRef }, { type: i2.Router }, { type: i0.Renderer2 }, { type: i2.RouterLink, decorators: [{
|
|
2216
2395
|
type: Optional
|
|
@@ -2229,6 +2408,148 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2229
2408
|
type: Input
|
|
2230
2409
|
}] } });
|
|
2231
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
|
+
|
|
2232
2553
|
class UiLibraryAngularModule {
|
|
2233
2554
|
static forRoot(customValidationMessagesService) {
|
|
2234
2555
|
return {
|
|
@@ -2244,12 +2565,13 @@ class UiLibraryAngularModule {
|
|
|
2244
2565
|
};
|
|
2245
2566
|
}
|
|
2246
2567
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2247
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule, declarations: [
|
|
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,
|
|
2248
2569
|
// value accessors
|
|
2249
2570
|
TextValueAccessor,
|
|
2250
2571
|
NumericValueAccessor,
|
|
2251
2572
|
RadioValueAccessor,
|
|
2252
2573
|
DatepickerValueAccessor,
|
|
2574
|
+
DateValueAccessor,
|
|
2253
2575
|
TimepickerValueAccessor,
|
|
2254
2576
|
SelectValueAccessor,
|
|
2255
2577
|
CheckboxValueAccessor,
|
|
@@ -2261,16 +2583,24 @@ class UiLibraryAngularModule {
|
|
|
2261
2583
|
MinDateValidator,
|
|
2262
2584
|
MaxDateValidator,
|
|
2263
2585
|
AllowedDatesValidator,
|
|
2586
|
+
MinDateValidatorIso,
|
|
2587
|
+
MaxDateValidatorIso,
|
|
2588
|
+
AllowedDatesValidatorIso,
|
|
2264
2589
|
// form helpers
|
|
2265
2590
|
SixFormDirective,
|
|
2266
2591
|
SixFormUtilDirective,
|
|
2267
2592
|
// router link directive
|
|
2268
|
-
SixRouterLinkDirective
|
|
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,
|
|
2269
2598
|
// value accessors
|
|
2270
2599
|
TextValueAccessor,
|
|
2271
2600
|
NumericValueAccessor,
|
|
2272
2601
|
RadioValueAccessor,
|
|
2273
2602
|
DatepickerValueAccessor,
|
|
2603
|
+
DateValueAccessor,
|
|
2274
2604
|
TimepickerValueAccessor,
|
|
2275
2605
|
SelectValueAccessor,
|
|
2276
2606
|
CheckboxValueAccessor,
|
|
@@ -2282,11 +2612,18 @@ class UiLibraryAngularModule {
|
|
|
2282
2612
|
MinDateValidator,
|
|
2283
2613
|
MaxDateValidator,
|
|
2284
2614
|
AllowedDatesValidator,
|
|
2615
|
+
MinDateValidatorIso,
|
|
2616
|
+
MaxDateValidatorIso,
|
|
2617
|
+
AllowedDatesValidatorIso,
|
|
2285
2618
|
// form helpers
|
|
2286
2619
|
SixFormDirective,
|
|
2287
2620
|
SixFormUtilDirective,
|
|
2288
2621
|
// router link directive
|
|
2289
|
-
SixRouterLinkDirective
|
|
2622
|
+
SixRouterLinkDirective,
|
|
2623
|
+
// sidebar helpers
|
|
2624
|
+
ActiveSidebarItemDirective,
|
|
2625
|
+
ActiveSidebarItemGroupDirective,
|
|
2626
|
+
ActiveSidebarDirective] }); }
|
|
2290
2627
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule }); }
|
|
2291
2628
|
}
|
|
2292
2629
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UiLibraryAngularModule, decorators: [{
|
|
@@ -2300,6 +2637,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2300
2637
|
NumericValueAccessor,
|
|
2301
2638
|
RadioValueAccessor,
|
|
2302
2639
|
DatepickerValueAccessor,
|
|
2640
|
+
DateValueAccessor,
|
|
2303
2641
|
TimepickerValueAccessor,
|
|
2304
2642
|
SelectValueAccessor,
|
|
2305
2643
|
CheckboxValueAccessor,
|
|
@@ -2311,11 +2649,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2311
2649
|
MinDateValidator,
|
|
2312
2650
|
MaxDateValidator,
|
|
2313
2651
|
AllowedDatesValidator,
|
|
2652
|
+
MinDateValidatorIso,
|
|
2653
|
+
MaxDateValidatorIso,
|
|
2654
|
+
AllowedDatesValidatorIso,
|
|
2314
2655
|
// form helpers
|
|
2315
2656
|
SixFormDirective,
|
|
2316
2657
|
SixFormUtilDirective,
|
|
2317
2658
|
// router link directive
|
|
2318
2659
|
SixRouterLinkDirective,
|
|
2660
|
+
// sidebar helpers
|
|
2661
|
+
ActiveSidebarItemDirective,
|
|
2662
|
+
ActiveSidebarItemGroupDirective,
|
|
2663
|
+
ActiveSidebarDirective,
|
|
2319
2664
|
],
|
|
2320
2665
|
imports: [],
|
|
2321
2666
|
exports: [
|
|
@@ -2326,6 +2671,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2326
2671
|
NumericValueAccessor,
|
|
2327
2672
|
RadioValueAccessor,
|
|
2328
2673
|
DatepickerValueAccessor,
|
|
2674
|
+
DateValueAccessor,
|
|
2329
2675
|
TimepickerValueAccessor,
|
|
2330
2676
|
SelectValueAccessor,
|
|
2331
2677
|
CheckboxValueAccessor,
|
|
@@ -2337,15 +2683,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2337
2683
|
MinDateValidator,
|
|
2338
2684
|
MaxDateValidator,
|
|
2339
2685
|
AllowedDatesValidator,
|
|
2686
|
+
MinDateValidatorIso,
|
|
2687
|
+
MaxDateValidatorIso,
|
|
2688
|
+
AllowedDatesValidatorIso,
|
|
2340
2689
|
// form helpers
|
|
2341
2690
|
SixFormDirective,
|
|
2342
2691
|
SixFormUtilDirective,
|
|
2343
2692
|
// router link directive
|
|
2344
2693
|
SixRouterLinkDirective,
|
|
2694
|
+
// sidebar helpers
|
|
2695
|
+
ActiveSidebarItemDirective,
|
|
2696
|
+
ActiveSidebarItemGroupDirective,
|
|
2697
|
+
ActiveSidebarDirective,
|
|
2345
2698
|
],
|
|
2346
2699
|
}]
|
|
2347
2700
|
}] });
|
|
2348
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
|
+
|
|
2349
2720
|
/*
|
|
2350
2721
|
* Public API Surface of ui-library-angular
|
|
2351
2722
|
*/
|
|
@@ -2354,5 +2725,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2354
2725
|
* Generated bundle index. Do not edit.
|
|
2355
2726
|
*/
|
|
2356
2727
|
|
|
2357
|
-
export { AllowedDatesValidator, CheckboxValueAccessor, DIRECTIVES, DatepickerValueAccessor, MaxDateValidator, MaxValidator, MinDateValidator, MinValidator, NumericValueAccessor, RadioValueAccessor, RangeValueAccessor, SelectValueAccessor,
|
|
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 };
|
|
2358
2729
|
//# sourceMappingURL=six-group-ui-library-angular.mjs.map
|