@six-group/ui-library-angular 0.0.0-insider.820700f → 0.0.0-insider.9eaaa42
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/esm2020/lib/control-value-accessors/value-accessor.mjs +13 -11
- package/esm2020/lib/link/six-router-link.directive.mjs +47 -0
- package/esm2020/lib/stencil-generated/angular-component-lib/utils.mjs +9 -1
- package/esm2020/lib/stencil-generated/components.mjs +54 -31
- package/esm2020/lib/stencil-generated/index.mjs +2 -1
- package/esm2020/lib/ui-library-angular.module.mjs +15 -7
- package/esm2020/lib/validators/six-ui-library-validators.mjs +13 -7
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/six-group-ui-library-angular.mjs +150 -56
- package/fesm2015/six-group-ui-library-angular.mjs.map +1 -1
- package/fesm2020/six-group-ui-library-angular.mjs +145 -54
- package/fesm2020/six-group-ui-library-angular.mjs.map +1 -1
- package/lib/control-value-accessors/value-accessor.d.ts +1 -1
- package/lib/link/six-router-link.directive.d.ts +24 -0
- package/lib/stencil-generated/components.d.ts +19 -10
- package/lib/stencil-generated/index.d.ts +1 -1
- package/lib/ui-library-angular.module.d.ts +2 -1
- package/lib/validators/six-ui-library-validators.d.ts +4 -4
- package/package.json +5 -1
- package/public-api.d.ts +1 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { __decorate, __awaiter } from 'tslib';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Injectable, inject, Directive, HostListener, Input, EventEmitter, Output, APP_INITIALIZER, NgModule } from '@angular/core';
|
|
3
|
-
import { __decorate } from 'tslib';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Injectable, inject, Directive, HostListener, Input, EventEmitter, Output, Optional, APP_INITIALIZER, NgModule } from '@angular/core';
|
|
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
8
|
import { getErrorMessage } from '@six-group/ui-library';
|
|
9
|
+
import * as i1$1 from '@angular/common';
|
|
10
|
+
import * as i2 from '@angular/router';
|
|
9
11
|
|
|
10
12
|
/* eslint-disable */
|
|
11
13
|
/* tslint:disable */
|
|
@@ -19,6 +21,14 @@ const proxyInputs = (Cmp, inputs) => {
|
|
|
19
21
|
set(val) {
|
|
20
22
|
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
21
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* In the event that proxyInputs is called
|
|
26
|
+
* multiple times re-defining these inputs
|
|
27
|
+
* will cause an error to be thrown. As a result
|
|
28
|
+
* we set configurable: true to indicate these
|
|
29
|
+
* properties can be changed.
|
|
30
|
+
*/
|
|
31
|
+
configurable: true,
|
|
22
32
|
});
|
|
23
33
|
});
|
|
24
34
|
};
|
|
@@ -212,10 +222,10 @@ let SixCheckbox = class SixCheckbox {
|
|
|
212
222
|
}
|
|
213
223
|
};
|
|
214
224
|
SixCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixCheckbox, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
215
|
-
SixCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixCheckbox, selector: "six-checkbox", inputs: { checked: "checked", disabled: "disabled", errorText: "errorText", indeterminate: "indeterminate", invalid: "invalid", label: "label", name: "name", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
225
|
+
SixCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixCheckbox, selector: "six-checkbox", inputs: { checked: "checked", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", indeterminate: "indeterminate", invalid: "invalid", label: "label", name: "name", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
216
226
|
SixCheckbox = __decorate([
|
|
217
227
|
ProxyCmp({
|
|
218
|
-
inputs: ['checked', 'disabled', 'errorText', 'indeterminate', 'invalid', 'label', 'name', 'required', 'value'],
|
|
228
|
+
inputs: ['checked', 'disabled', 'errorText', 'errorTextCount', 'indeterminate', 'invalid', 'label', 'name', 'required', 'value'],
|
|
219
229
|
methods: ['setFocus', 'removeFocus']
|
|
220
230
|
})
|
|
221
231
|
], SixCheckbox);
|
|
@@ -226,7 +236,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
226
236
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
227
237
|
template: '<ng-content></ng-content>',
|
|
228
238
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
229
|
-
inputs: ['checked', 'disabled', 'errorText', 'indeterminate', 'invalid', 'label', 'name', 'required', 'value'],
|
|
239
|
+
inputs: ['checked', 'disabled', 'errorText', 'errorTextCount', 'indeterminate', 'invalid', 'label', 'name', 'required', 'value'],
|
|
230
240
|
}]
|
|
231
241
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
232
242
|
let SixDatepicker = class SixDatepicker {
|
|
@@ -238,10 +248,10 @@ let SixDatepicker = class SixDatepicker {
|
|
|
238
248
|
}
|
|
239
249
|
};
|
|
240
250
|
SixDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixDatepicker, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
241
|
-
SixDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixDatepicker, selector: "six-datepicker", inputs: { allowedDates: "allowedDates", clearable: "clearable", closeOnSelect: "closeOnSelect", containingElement: "containingElement", dateFormat: "dateFormat", debounce: "debounce", defaultDate: "defaultDate", disabled: "disabled", errorText: "errorText", hoist: "hoist", iconPosition: "iconPosition", inline: "inline", invalid: "invalid", label: "label", locale: "locale", max: "max", min: "min", name: "name", open: "open", placeholder: "placeholder", placement: "placement", readonly: "readonly", required: "required", size: "size", type: "type", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
251
|
+
SixDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixDatepicker, selector: "six-datepicker", inputs: { allowedDates: "allowedDates", clearable: "clearable", closeOnSelect: "closeOnSelect", containingElement: "containingElement", dateFormat: "dateFormat", debounce: "debounce", defaultDate: "defaultDate", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", hoist: "hoist", iconPosition: "iconPosition", inline: "inline", invalid: "invalid", label: "label", locale: "locale", max: "max", min: "min", name: "name", open: "open", placeholder: "placeholder", placement: "placement", readonly: "readonly", required: "required", size: "size", type: "type", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
242
252
|
SixDatepicker = __decorate([
|
|
243
253
|
ProxyCmp({
|
|
244
|
-
inputs: ['allowedDates', 'clearable', 'closeOnSelect', 'containingElement', 'dateFormat', 'debounce', 'defaultDate', 'disabled', 'errorText', 'hoist', 'iconPosition', 'inline', 'invalid', 'label', 'locale', 'max', 'min', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'size', 'type', 'value'],
|
|
254
|
+
inputs: ['allowedDates', 'clearable', 'closeOnSelect', 'containingElement', 'dateFormat', 'debounce', 'defaultDate', 'disabled', 'errorText', 'errorTextCount', 'hoist', 'iconPosition', 'inline', 'invalid', 'label', 'locale', 'max', 'min', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'size', 'type', 'value'],
|
|
245
255
|
methods: ['setFocus', 'select']
|
|
246
256
|
})
|
|
247
257
|
], SixDatepicker);
|
|
@@ -252,7 +262,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
252
262
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
253
263
|
template: '<ng-content></ng-content>',
|
|
254
264
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
255
|
-
inputs: ['allowedDates', 'clearable', 'closeOnSelect', 'containingElement', 'dateFormat', 'debounce', 'defaultDate', 'disabled', 'errorText', 'hoist', 'iconPosition', 'inline', 'invalid', 'label', 'locale', 'max', 'min', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'size', 'type', 'value'],
|
|
265
|
+
inputs: ['allowedDates', 'clearable', 'closeOnSelect', 'containingElement', 'dateFormat', 'debounce', 'defaultDate', 'disabled', 'errorText', 'errorTextCount', 'hoist', 'iconPosition', 'inline', 'invalid', 'label', 'locale', 'max', 'min', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'size', 'type', 'value'],
|
|
256
266
|
}]
|
|
257
267
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
258
268
|
let SixDetails = class SixDetails {
|
|
@@ -359,6 +369,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
359
369
|
inputs: ['asyncFilter', 'autofocusFilter', 'closeOnSelect', 'containingElement', 'disableHideOnEnterAndSpace', 'distance', 'filter', 'filterDebounce', 'filterPlaceholder', 'hoist', 'open', 'options', 'placement', 'skidding', 'virtualScroll'],
|
|
360
370
|
}]
|
|
361
371
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
372
|
+
let SixError = class SixError {
|
|
373
|
+
constructor(c, r, z) {
|
|
374
|
+
this.z = z;
|
|
375
|
+
c.detach();
|
|
376
|
+
this.el = r.nativeElement;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
SixError.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixError, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
380
|
+
SixError.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixError, selector: "six-error", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
381
|
+
SixError = __decorate([
|
|
382
|
+
ProxyCmp({})
|
|
383
|
+
], SixError);
|
|
384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixError, decorators: [{
|
|
385
|
+
type: Component,
|
|
386
|
+
args: [{
|
|
387
|
+
selector: 'six-error',
|
|
388
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
389
|
+
template: '<ng-content></ng-content>',
|
|
390
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
391
|
+
inputs: [],
|
|
392
|
+
}]
|
|
393
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
362
394
|
let SixErrorPage = class SixErrorPage {
|
|
363
395
|
constructor(c, r, z) {
|
|
364
396
|
this.z = z;
|
|
@@ -584,10 +616,10 @@ let SixInput = class SixInput {
|
|
|
584
616
|
}
|
|
585
617
|
};
|
|
586
618
|
SixInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
587
|
-
SixInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixInput, selector: "six-input", inputs: { autocapitalize: "autocapitalize", autocomplete: "autocomplete", autocorrect: "autocorrect", autofocus: "autofocus", clearable: "clearable", disabled: "disabled", errorText: "errorText", 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
|
+
SixInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
|
|
588
620
|
SixInput = __decorate([
|
|
589
621
|
ProxyCmp({
|
|
590
|
-
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearable', 'disabled', 'errorText', 'helpText', 'inputmode', 'invalid', 'label', 'line', 'max', 'maxlength', 'min', 'minlength', 'name', 'pattern', 'pill', 'placeholder', 'readonly', 'required', 'size', 'spellcheck', 'step', 'togglePassword', 'type', 'value'],
|
|
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'],
|
|
591
623
|
methods: ['setFocus', 'removeFocus', 'select', 'setSelectionRange', 'setRangeText']
|
|
592
624
|
})
|
|
593
625
|
], SixInput);
|
|
@@ -598,7 +630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
598
630
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
599
631
|
template: '<ng-content></ng-content>',
|
|
600
632
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
601
|
-
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearable', 'disabled', 'errorText', 'helpText', 'inputmode', 'invalid', 'label', 'line', 'max', 'maxlength', 'min', 'minlength', 'name', 'pattern', 'pill', 'placeholder', 'readonly', 'required', 'size', 'spellcheck', 'step', 'togglePassword', 'type', 'value'],
|
|
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'],
|
|
602
634
|
}]
|
|
603
635
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
604
636
|
let SixItemPicker = class SixItemPicker {
|
|
@@ -901,10 +933,10 @@ let SixRange = class SixRange {
|
|
|
901
933
|
}
|
|
902
934
|
};
|
|
903
935
|
SixRange.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixRange, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
904
|
-
SixRange.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixRange, selector: "six-range", inputs: { disabled: "disabled", errorText: "errorText", helpText: "helpText", invalid: "invalid", label: "label", max: "max", min: "min", name: "name", required: "required", step: "step", tooltip: "tooltip", tooltipFormatter: "tooltipFormatter", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
936
|
+
SixRange.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixRange, selector: "six-range", inputs: { disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", helpText: "helpText", invalid: "invalid", label: "label", max: "max", min: "min", name: "name", required: "required", step: "step", tooltip: "tooltip", tooltipFormatter: "tooltipFormatter", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
905
937
|
SixRange = __decorate([
|
|
906
938
|
ProxyCmp({
|
|
907
|
-
inputs: ['disabled', 'errorText', 'helpText', 'invalid', 'label', 'max', 'min', 'name', 'required', 'step', 'tooltip', 'tooltipFormatter', 'value'],
|
|
939
|
+
inputs: ['disabled', 'errorText', 'errorTextCount', 'helpText', 'invalid', 'label', 'max', 'min', 'name', 'required', 'step', 'tooltip', 'tooltipFormatter', 'value'],
|
|
908
940
|
methods: ['setFocus', 'removeFocus']
|
|
909
941
|
})
|
|
910
942
|
], SixRange);
|
|
@@ -915,7 +947,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
915
947
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
916
948
|
template: '<ng-content></ng-content>',
|
|
917
949
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
918
|
-
inputs: ['disabled', 'errorText', 'helpText', 'invalid', 'label', 'max', 'min', 'name', 'required', 'step', 'tooltip', 'tooltipFormatter', 'value'],
|
|
950
|
+
inputs: ['disabled', 'errorText', 'errorTextCount', 'helpText', 'invalid', 'label', 'max', 'min', 'name', 'required', 'step', 'tooltip', 'tooltipFormatter', 'value'],
|
|
919
951
|
}]
|
|
920
952
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
921
953
|
let SixRoot = class SixRoot {
|
|
@@ -977,10 +1009,10 @@ let SixSelect = class SixSelect {
|
|
|
977
1009
|
}
|
|
978
1010
|
};
|
|
979
1011
|
SixSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
980
|
-
SixSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixSelect, selector: "six-select", inputs: { asyncFilter: "asyncFilter", autocomplete: "autocomplete", clearable: "clearable", disabled: "disabled", errorText: "errorText", 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", size: "size", value: "value", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1012
|
+
SixSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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", size: "size", value: "value", virtualScroll: "virtualScroll" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
981
1013
|
SixSelect = __decorate([
|
|
982
1014
|
ProxyCmp({
|
|
983
|
-
inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'maxTagsVisible', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'size', 'value', 'virtualScroll'],
|
|
1015
|
+
inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'errorTextCount', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'maxTagsVisible', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'size', 'value', 'virtualScroll'],
|
|
984
1016
|
methods: ['setFocus']
|
|
985
1017
|
})
|
|
986
1018
|
], SixSelect);
|
|
@@ -991,7 +1023,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
991
1023
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
992
1024
|
template: '<ng-content></ng-content>',
|
|
993
1025
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
994
|
-
inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'maxTagsVisible', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'size', 'value', 'virtualScroll'],
|
|
1026
|
+
inputs: ['asyncFilter', 'autocomplete', 'clearable', 'disabled', 'errorText', 'errorTextCount', 'filter', 'filterDebounce', 'filterPlaceholder', 'helpText', 'hoist', 'inputDebounce', 'invalid', 'label', 'line', 'maxTagsVisible', 'multiple', 'name', 'options', 'pill', 'placeholder', 'required', 'size', 'value', 'virtualScroll'],
|
|
995
1027
|
}]
|
|
996
1028
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
997
1029
|
let SixSidebar = class SixSidebar {
|
|
@@ -1028,10 +1060,10 @@ let SixSidebarItem = class SixSidebarItem {
|
|
|
1028
1060
|
}
|
|
1029
1061
|
};
|
|
1030
1062
|
SixSidebarItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixSidebarItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1031
|
-
SixSidebarItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixSidebarItem, selector: "six-sidebar-item", inputs: { disabled: "disabled", selected: "selected", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1063
|
+
SixSidebarItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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 });
|
|
1032
1064
|
SixSidebarItem = __decorate([
|
|
1033
1065
|
ProxyCmp({
|
|
1034
|
-
inputs: ['disabled', 'selected', 'value']
|
|
1066
|
+
inputs: ['disabled', 'href', 'selected', 'value']
|
|
1035
1067
|
})
|
|
1036
1068
|
], SixSidebarItem);
|
|
1037
1069
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixSidebarItem, decorators: [{
|
|
@@ -1041,7 +1073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1041
1073
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1042
1074
|
template: '<ng-content></ng-content>',
|
|
1043
1075
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1044
|
-
inputs: ['disabled', 'selected', 'value'],
|
|
1076
|
+
inputs: ['disabled', 'href', 'selected', 'value'],
|
|
1045
1077
|
}]
|
|
1046
1078
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1047
1079
|
let SixSidebarItemGroup = class SixSidebarItemGroup {
|
|
@@ -1052,10 +1084,10 @@ let SixSidebarItemGroup = class SixSidebarItemGroup {
|
|
|
1052
1084
|
}
|
|
1053
1085
|
};
|
|
1054
1086
|
SixSidebarItemGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixSidebarItemGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1055
|
-
SixSidebarItemGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixSidebarItemGroup, selector: "six-sidebar-item-group", inputs: { icon: "icon", name: "name", open: "open", summaryIcon: "summaryIcon", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1087
|
+
SixSidebarItemGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixSidebarItemGroup, selector: "six-sidebar-item-group", inputs: { href: "href", icon: "icon", name: "name", open: "open", summaryIcon: "summaryIcon", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1056
1088
|
SixSidebarItemGroup = __decorate([
|
|
1057
1089
|
ProxyCmp({
|
|
1058
|
-
inputs: ['icon', 'name', 'open', 'summaryIcon', 'value']
|
|
1090
|
+
inputs: ['href', 'icon', 'name', 'open', 'summaryIcon', 'value']
|
|
1059
1091
|
})
|
|
1060
1092
|
], SixSidebarItemGroup);
|
|
1061
1093
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixSidebarItemGroup, decorators: [{
|
|
@@ -1065,7 +1097,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1065
1097
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1066
1098
|
template: '<ng-content></ng-content>',
|
|
1067
1099
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1068
|
-
inputs: ['icon', 'name', 'open', 'summaryIcon', 'value'],
|
|
1100
|
+
inputs: ['href', 'icon', 'name', 'open', 'summaryIcon', 'value'],
|
|
1069
1101
|
}]
|
|
1070
1102
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1071
1103
|
let SixSpinner = class SixSpinner {
|
|
@@ -1125,10 +1157,10 @@ let SixSwitch = class SixSwitch {
|
|
|
1125
1157
|
}
|
|
1126
1158
|
};
|
|
1127
1159
|
SixSwitch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixSwitch, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1128
|
-
SixSwitch.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixSwitch, selector: "six-switch", inputs: { checked: "checked", disabled: "disabled", errorText: "errorText", invalid: "invalid", label: "label", name: "name", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1160
|
+
SixSwitch.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixSwitch, selector: "six-switch", inputs: { checked: "checked", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", invalid: "invalid", label: "label", name: "name", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1129
1161
|
SixSwitch = __decorate([
|
|
1130
1162
|
ProxyCmp({
|
|
1131
|
-
inputs: ['checked', 'disabled', 'errorText', 'invalid', 'label', 'name', 'required', 'value'],
|
|
1163
|
+
inputs: ['checked', 'disabled', 'errorText', 'errorTextCount', 'invalid', 'label', 'name', 'required', 'value'],
|
|
1132
1164
|
methods: ['setFocus', 'removeFocus']
|
|
1133
1165
|
})
|
|
1134
1166
|
], SixSwitch);
|
|
@@ -1139,7 +1171,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1139
1171
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1140
1172
|
template: '<ng-content></ng-content>',
|
|
1141
1173
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1142
|
-
inputs: ['checked', 'disabled', 'errorText', 'invalid', 'label', 'name', 'required', 'value'],
|
|
1174
|
+
inputs: ['checked', 'disabled', 'errorText', 'errorTextCount', 'invalid', 'label', 'name', 'required', 'value'],
|
|
1143
1175
|
}]
|
|
1144
1176
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1145
1177
|
let SixTab = class SixTab {
|
|
@@ -1252,10 +1284,10 @@ let SixTextarea = class SixTextarea {
|
|
|
1252
1284
|
}
|
|
1253
1285
|
};
|
|
1254
1286
|
SixTextarea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixTextarea, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1255
|
-
SixTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixTextarea, selector: "six-textarea", inputs: { autocapitalize: "autocapitalize", autocomplete: "autocomplete", autocorrect: "autocorrect", autofocus: "autofocus", disabled: "disabled", errorText: "errorText", helpText: "helpText", inputmode: "inputmode", invalid: "invalid", label: "label", maxlength: "maxlength", minlength: "minlength", name: "name", placeholder: "placeholder", readonly: "readonly", required: "required", resize: "resize", rows: "rows", size: "size", spellcheck: "spellcheck", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1287
|
+
SixTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixTextarea, selector: "six-textarea", inputs: { autocapitalize: "autocapitalize", autocomplete: "autocomplete", autocorrect: "autocorrect", autofocus: "autofocus", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", helpText: "helpText", inputmode: "inputmode", invalid: "invalid", label: "label", maxlength: "maxlength", minlength: "minlength", name: "name", placeholder: "placeholder", readonly: "readonly", required: "required", resize: "resize", rows: "rows", size: "size", spellcheck: "spellcheck", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1256
1288
|
SixTextarea = __decorate([
|
|
1257
1289
|
ProxyCmp({
|
|
1258
|
-
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'disabled', 'errorText', 'helpText', 'inputmode', 'invalid', 'label', 'maxlength', 'minlength', 'name', 'placeholder', 'readonly', 'required', 'resize', 'rows', 'size', 'spellcheck', 'value'],
|
|
1290
|
+
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'disabled', 'errorText', 'errorTextCount', 'helpText', 'inputmode', 'invalid', 'label', 'maxlength', 'minlength', 'name', 'placeholder', 'readonly', 'required', 'resize', 'rows', 'size', 'spellcheck', 'value'],
|
|
1259
1291
|
methods: ['setFocus', 'removeFocus', 'select', 'setSelectionRange', 'setRangeText']
|
|
1260
1292
|
})
|
|
1261
1293
|
], SixTextarea);
|
|
@@ -1266,7 +1298,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1266
1298
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1267
1299
|
template: '<ng-content></ng-content>',
|
|
1268
1300
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1269
|
-
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'disabled', 'errorText', 'helpText', 'inputmode', 'invalid', 'label', 'maxlength', 'minlength', 'name', 'placeholder', 'readonly', 'required', 'resize', 'rows', 'size', 'spellcheck', 'value'],
|
|
1301
|
+
inputs: ['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'disabled', 'errorText', 'errorTextCount', 'helpText', 'inputmode', 'invalid', 'label', 'maxlength', 'minlength', 'name', 'placeholder', 'readonly', 'required', 'resize', 'rows', 'size', 'spellcheck', 'value'],
|
|
1270
1302
|
}]
|
|
1271
1303
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1272
1304
|
let SixTile = class SixTile {
|
|
@@ -1304,10 +1336,10 @@ let SixTimepicker = class SixTimepicker {
|
|
|
1304
1336
|
}
|
|
1305
1337
|
};
|
|
1306
1338
|
SixTimepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixTimepicker, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1307
|
-
SixTimepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixTimepicker, selector: "six-timepicker", inputs: { clearable: "clearable", debounce: "debounce", defaultTime: "defaultTime", disabled: "disabled", errorText: "errorText", format: "format", hoist: "hoist", iconPosition: "iconPosition", inline: "inline", interval: "interval", invalid: "invalid", label: "label", name: "name", open: "open", placeholder: "placeholder", placement: "placement", readonly: "readonly", required: "required", separator: "separator", size: "size", timeout: "timeout", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1339
|
+
SixTimepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SixTimepicker, selector: "six-timepicker", inputs: { clearable: "clearable", debounce: "debounce", defaultTime: "defaultTime", disabled: "disabled", errorText: "errorText", errorTextCount: "errorTextCount", format: "format", hoist: "hoist", iconPosition: "iconPosition", inline: "inline", interval: "interval", invalid: "invalid", label: "label", name: "name", open: "open", placeholder: "placeholder", placement: "placement", readonly: "readonly", required: "required", separator: "separator", size: "size", timeout: "timeout", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1308
1340
|
SixTimepicker = __decorate([
|
|
1309
1341
|
ProxyCmp({
|
|
1310
|
-
inputs: ['clearable', 'debounce', 'defaultTime', 'disabled', 'errorText', 'format', 'hoist', 'iconPosition', 'inline', 'interval', 'invalid', 'label', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'separator', 'size', 'timeout', 'value'],
|
|
1342
|
+
inputs: ['clearable', 'debounce', 'defaultTime', 'disabled', 'errorText', 'errorTextCount', 'format', 'hoist', 'iconPosition', 'inline', 'interval', 'invalid', 'label', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'separator', 'size', 'timeout', 'value'],
|
|
1311
1343
|
methods: ['setFocus']
|
|
1312
1344
|
})
|
|
1313
1345
|
], SixTimepicker);
|
|
@@ -1318,7 +1350,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1318
1350
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1319
1351
|
template: '<ng-content></ng-content>',
|
|
1320
1352
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1321
|
-
inputs: ['clearable', 'debounce', 'defaultTime', 'disabled', 'errorText', 'format', 'hoist', 'iconPosition', 'inline', 'interval', 'invalid', 'label', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'separator', 'size', 'timeout', 'value'],
|
|
1353
|
+
inputs: ['clearable', 'debounce', 'defaultTime', 'disabled', 'errorText', 'errorTextCount', 'format', 'hoist', 'iconPosition', 'inline', 'interval', 'invalid', 'label', 'name', 'open', 'placeholder', 'placement', 'readonly', 'required', 'separator', 'size', 'timeout', 'value'],
|
|
1322
1354
|
}]
|
|
1323
1355
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1324
1356
|
let SixTooltip = class SixTooltip {
|
|
@@ -1361,6 +1393,7 @@ const DIRECTIVES = [
|
|
|
1361
1393
|
SixDialog,
|
|
1362
1394
|
SixDrawer,
|
|
1363
1395
|
SixDropdown,
|
|
1396
|
+
SixError,
|
|
1364
1397
|
SixErrorPage,
|
|
1365
1398
|
SixFileList,
|
|
1366
1399
|
SixFileListItem,
|
|
@@ -1466,12 +1499,12 @@ class ValueAccessor {
|
|
|
1466
1499
|
const element = this.el.nativeElement;
|
|
1467
1500
|
const control = (_b = this.ngControl) === null || _b === void 0 ? void 0 : _b.control;
|
|
1468
1501
|
const invalid = !control.valid && control.dirty && control.touched;
|
|
1469
|
-
let
|
|
1502
|
+
let errorTexts;
|
|
1470
1503
|
if (invalid) {
|
|
1471
|
-
|
|
1504
|
+
errorTexts = this.initialErrorText || this.getErrorTexts(control);
|
|
1472
1505
|
}
|
|
1473
1506
|
element.invalid = invalid;
|
|
1474
|
-
element.errorText =
|
|
1507
|
+
element.errorText = errorTexts !== null && errorTexts !== void 0 ? errorTexts : '';
|
|
1475
1508
|
});
|
|
1476
1509
|
}
|
|
1477
1510
|
setDisabledState(isDisabled) {
|
|
@@ -1516,19 +1549,21 @@ class ValueAccessor {
|
|
|
1516
1549
|
});
|
|
1517
1550
|
}
|
|
1518
1551
|
}
|
|
1519
|
-
|
|
1520
|
-
var _a;
|
|
1552
|
+
getErrorTexts(control) {
|
|
1521
1553
|
if (control.errors == null) {
|
|
1522
1554
|
console.warn('no errors for invalid control', control);
|
|
1523
|
-
return
|
|
1555
|
+
return [];
|
|
1524
1556
|
}
|
|
1525
|
-
const
|
|
1526
|
-
if (
|
|
1557
|
+
const errorList = Object.entries(control.errors);
|
|
1558
|
+
if (errorList.length <= 0) {
|
|
1527
1559
|
console.warn('no errors for invalid control', control);
|
|
1528
|
-
return
|
|
1560
|
+
return [];
|
|
1529
1561
|
}
|
|
1530
|
-
|
|
1531
|
-
|
|
1562
|
+
return errorList.map((error) => {
|
|
1563
|
+
var _a;
|
|
1564
|
+
const [key, value] = error;
|
|
1565
|
+
return ((_a = this.validationMessagesService.getErrorMessage(getLanguage(), Object.assign({ key: key }, value))) !== null && _a !== void 0 ? _a : key);
|
|
1566
|
+
});
|
|
1532
1567
|
}
|
|
1533
1568
|
}
|
|
1534
1569
|
ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -1877,34 +1912,40 @@ class SixUiLibraryValidators {
|
|
|
1877
1912
|
}
|
|
1878
1913
|
class MinDateValidator {
|
|
1879
1914
|
validate(control) {
|
|
1880
|
-
|
|
1915
|
+
if (this.min != null) {
|
|
1916
|
+
return SixUiLibraryValidators.minDate(this.min)(control);
|
|
1917
|
+
}
|
|
1918
|
+
return null;
|
|
1881
1919
|
}
|
|
1882
1920
|
}
|
|
1883
1921
|
MinDateValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinDateValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1884
|
-
MinDateValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MinDateValidator, selector: "six-datepicker[min]", inputs: {
|
|
1922
|
+
MinDateValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MinDateValidator, selector: "six-datepicker[min]", inputs: { min: "min" }, providers: [{ provide: NG_VALIDATORS, useExisting: MinDateValidator, multi: true }], ngImport: i0 });
|
|
1885
1923
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinDateValidator, decorators: [{
|
|
1886
1924
|
type: Directive,
|
|
1887
1925
|
args: [{
|
|
1888
1926
|
selector: 'six-datepicker[min]',
|
|
1889
1927
|
providers: [{ provide: NG_VALIDATORS, useExisting: MinDateValidator, multi: true }],
|
|
1890
1928
|
}]
|
|
1891
|
-
}], propDecorators: {
|
|
1929
|
+
}], propDecorators: { min: [{
|
|
1892
1930
|
type: Input
|
|
1893
1931
|
}] } });
|
|
1894
1932
|
class MaxDateValidator {
|
|
1895
1933
|
validate(control) {
|
|
1896
|
-
|
|
1934
|
+
if (this.max != null) {
|
|
1935
|
+
return SixUiLibraryValidators.maxDate(this.max)(control);
|
|
1936
|
+
}
|
|
1937
|
+
return null;
|
|
1897
1938
|
}
|
|
1898
1939
|
}
|
|
1899
1940
|
MaxDateValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaxDateValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1900
|
-
MaxDateValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MaxDateValidator, selector: "six-datepicker[max]", inputs: {
|
|
1941
|
+
MaxDateValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MaxDateValidator, selector: "six-datepicker[max]", inputs: { max: "max" }, providers: [{ provide: NG_VALIDATORS, useExisting: MaxDateValidator, multi: true }], ngImport: i0 });
|
|
1901
1942
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaxDateValidator, decorators: [{
|
|
1902
1943
|
type: Directive,
|
|
1903
1944
|
args: [{
|
|
1904
1945
|
selector: 'six-datepicker[max]',
|
|
1905
1946
|
providers: [{ provide: NG_VALIDATORS, useExisting: MaxDateValidator, multi: true }],
|
|
1906
1947
|
}]
|
|
1907
|
-
}], propDecorators: {
|
|
1948
|
+
}], propDecorators: { max: [{
|
|
1908
1949
|
type: Input
|
|
1909
1950
|
}] } });
|
|
1910
1951
|
class AllowedDatesValidator {
|
|
@@ -2140,6 +2181,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2140
2181
|
args: ['change', ['$event.target']]
|
|
2141
2182
|
}] } });
|
|
2142
2183
|
|
|
2184
|
+
/**
|
|
2185
|
+
* Forked from https://github.com/ionic-team/ionic-framework/blob/main/packages/angular/common/src/directives/navigation/router-link-delegate.ts.
|
|
2186
|
+
*/
|
|
2187
|
+
class SixRouterLinkDirective {
|
|
2188
|
+
constructor(locationStrategy, elementRef, router, routerLinkDirective) {
|
|
2189
|
+
this.locationStrategy = locationStrategy;
|
|
2190
|
+
this.elementRef = elementRef;
|
|
2191
|
+
this.router = router;
|
|
2192
|
+
this.routerLinkDirective = routerLinkDirective;
|
|
2193
|
+
}
|
|
2194
|
+
ngOnInit() {
|
|
2195
|
+
this.updateTargetUrlAndHref();
|
|
2196
|
+
}
|
|
2197
|
+
ngOnChanges() {
|
|
2198
|
+
this.updateTargetUrlAndHref();
|
|
2199
|
+
}
|
|
2200
|
+
updateTargetUrlAndHref() {
|
|
2201
|
+
var _a;
|
|
2202
|
+
if ((_a = this.routerLinkDirective) === null || _a === void 0 ? void 0 : _a.urlTree) {
|
|
2203
|
+
this.elementRef.nativeElement.href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLinkDirective.urlTree));
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
SixRouterLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixRouterLinkDirective, deps: [{ token: i1$1.LocationStrategy }, { token: i0.ElementRef }, { token: i2.Router }, { token: i2.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2208
|
+
SixRouterLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", 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" }, usesOnChanges: true, ngImport: i0 });
|
|
2209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixRouterLinkDirective, decorators: [{
|
|
2210
|
+
type: Directive,
|
|
2211
|
+
args: [{
|
|
2212
|
+
selector: 'six-sidebar-item[routerLink],six-sidebar-item-group[routerLink],six-button[routerLink]',
|
|
2213
|
+
}]
|
|
2214
|
+
}], ctorParameters: function () {
|
|
2215
|
+
return [{ type: i1$1.LocationStrategy }, { type: i0.ElementRef }, { type: i2.Router }, { type: i2.RouterLink, decorators: [{
|
|
2216
|
+
type: Optional
|
|
2217
|
+
}] }];
|
|
2218
|
+
}, propDecorators: { routerLink: [{
|
|
2219
|
+
type: Input
|
|
2220
|
+
}], queryParams: [{
|
|
2221
|
+
type: Input
|
|
2222
|
+
}], fragment: [{
|
|
2223
|
+
type: Input
|
|
2224
|
+
}], queryParamsHandling: [{
|
|
2225
|
+
type: Input
|
|
2226
|
+
}], relativeTo: [{
|
|
2227
|
+
type: Input
|
|
2228
|
+
}] } });
|
|
2229
|
+
|
|
2143
2230
|
class UiLibraryAngularModule {
|
|
2144
2231
|
static forRoot(customValidationMessagesService) {
|
|
2145
2232
|
return {
|
|
@@ -2147,9 +2234,8 @@ class UiLibraryAngularModule {
|
|
|
2147
2234
|
providers: [
|
|
2148
2235
|
{
|
|
2149
2236
|
provide: APP_INITIALIZER,
|
|
2150
|
-
useFactory: () => {
|
|
2151
|
-
|
|
2152
|
-
},
|
|
2237
|
+
useFactory: () => () => __awaiter(this, void 0, void 0, function* () { return defineCustomElements(); }),
|
|
2238
|
+
multi: true,
|
|
2153
2239
|
},
|
|
2154
2240
|
{ provide: ValidationMessagesService, useClass: customValidationMessagesService !== null && customValidationMessagesService !== void 0 ? customValidationMessagesService : ValidationMessagesService },
|
|
2155
2241
|
],
|
|
@@ -2157,7 +2243,7 @@ class UiLibraryAngularModule {
|
|
|
2157
2243
|
}
|
|
2158
2244
|
}
|
|
2159
2245
|
UiLibraryAngularModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UiLibraryAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2160
|
-
UiLibraryAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UiLibraryAngularModule, declarations: [SetAttributes, SixAlert, SixAvatar, SixBadge, SixButton, SixCard, SixCheckbox, SixDatepicker, SixDetails, SixDialog, SixDrawer, SixDropdown, 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,
|
|
2246
|
+
UiLibraryAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", 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,
|
|
2161
2247
|
// value accessors
|
|
2162
2248
|
TextValueAccessor,
|
|
2163
2249
|
NumericValueAccessor,
|
|
@@ -2176,7 +2262,9 @@ UiLibraryAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
2176
2262
|
AllowedDatesValidator,
|
|
2177
2263
|
// form helpers
|
|
2178
2264
|
SixFormDirective,
|
|
2179
|
-
SixFormUtilDirective
|
|
2265
|
+
SixFormUtilDirective,
|
|
2266
|
+
// router link directive
|
|
2267
|
+
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,
|
|
2180
2268
|
// value accessors
|
|
2181
2269
|
TextValueAccessor,
|
|
2182
2270
|
NumericValueAccessor,
|
|
@@ -2195,7 +2283,9 @@ UiLibraryAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
2195
2283
|
AllowedDatesValidator,
|
|
2196
2284
|
// form helpers
|
|
2197
2285
|
SixFormDirective,
|
|
2198
|
-
SixFormUtilDirective
|
|
2286
|
+
SixFormUtilDirective,
|
|
2287
|
+
// router link directive
|
|
2288
|
+
SixRouterLinkDirective] });
|
|
2199
2289
|
UiLibraryAngularModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UiLibraryAngularModule });
|
|
2200
2290
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UiLibraryAngularModule, decorators: [{
|
|
2201
2291
|
type: NgModule,
|
|
@@ -2222,6 +2312,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2222
2312
|
// form helpers
|
|
2223
2313
|
SixFormDirective,
|
|
2224
2314
|
SixFormUtilDirective,
|
|
2315
|
+
// router link directive
|
|
2316
|
+
SixRouterLinkDirective,
|
|
2225
2317
|
],
|
|
2226
2318
|
imports: [],
|
|
2227
2319
|
exports: [
|
|
@@ -2246,6 +2338,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2246
2338
|
// form helpers
|
|
2247
2339
|
SixFormDirective,
|
|
2248
2340
|
SixFormUtilDirective,
|
|
2341
|
+
// router link directive
|
|
2342
|
+
SixRouterLinkDirective,
|
|
2249
2343
|
],
|
|
2250
2344
|
}]
|
|
2251
2345
|
}] });
|
|
@@ -2258,5 +2352,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2258
2352
|
* Generated bundle index. Do not edit.
|
|
2259
2353
|
*/
|
|
2260
2354
|
|
|
2261
|
-
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, 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, SixSearchField, SixSelect, SixSidebar, SixSidebarItem, SixSidebarItemGroup, SixSpinner, SixStageIndicator, SixSwitch, SixTab, SixTabGroup, SixTabPanel, SixTag, SixTextarea, SixTile, SixTimepicker, SixTooltip, SixUiLibraryValidators, SwitchValueAccessor, TextValueAccessor, TimepickerValueAccessor, UiLibraryAngularModule, ValidationMessagesService, ValueAccessor };
|
|
2355
|
+
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 };
|
|
2262
2356
|
//# sourceMappingURL=six-group-ui-library-angular.mjs.map
|