@dsivd/prestations-ng 15.0.0-beta3 → 15.0.0-beta6
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/CHANGELOG.md +64 -3
- package/dsivd-prestations-ng-v15.0.0-beta6.tgz +0 -0
- package/esm2020/foehn-address/address.type.mjs +1 -1
- package/esm2020/foehn-address/foehn-input-address.component.mjs +2 -2
- package/esm2020/foehn-checkables/foehn-checkable-group.component.mjs +12 -3
- package/esm2020/foehn-date-picker/foehn-date-picker.component.mjs +3 -3
- package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.mjs +254 -0
- package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.mjs +42 -0
- package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.component.mjs +2 -4
- package/esm2020/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.mjs +3 -3
- package/esm2020/index.mjs +11 -1
- package/esm2020/refinf/model/address-type-light.mjs +3 -0
- package/esm2020/refinf/model/canton.mjs +3 -0
- package/esm2020/refinf/model/district.mjs +3 -0
- package/esm2020/refinf/model/municipality.mjs +3 -0
- package/esm2020/refinf/model/place-of-origin.mjs +3 -0
- package/esm2020/refinf/model/postal-locality.mjs +3 -0
- package/esm2020/sdk-dictionary/default-dictionary.mjs +11 -3
- package/esm2020/sdk-recaptcha/grecaptcha/grecaptcha.component.mjs +2 -2
- package/fesm2015/dsivd-prestations-ng.mjs +410 -102
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +410 -102
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-address/address.type.d.ts +3 -3
- package/foehn-address/foehn-input-address.component.d.ts +2 -2
- package/foehn-checkables/foehn-checkable-group.component.d.ts +3 -2
- package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.d.ts +45 -0
- package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.d.ts +13 -0
- package/index.d.ts +8 -0
- package/package.json +1 -1
- package/refinf/model/address-type-light.d.ts +5 -0
- package/refinf/model/canton.d.ts +4 -0
- package/refinf/model/district.d.ts +7 -0
- package/refinf/model/municipality.d.ts +8 -0
- package/refinf/model/place-of-origin.d.ts +9 -0
- package/refinf/model/postal-locality.d.ts +11 -0
- package/sdk-recaptcha/grecaptcha/grecaptcha.component.d.ts +1 -1
- package/dsivd-prestations-ng-v15.0.0-beta3.tgz +0 -0
|
@@ -1463,8 +1463,16 @@ const DEFAULT_DICTIONARY = {
|
|
|
1463
1463
|
'foehn-status-progress-bar.step1.srOnly': 'Etape 1 sur 3, Saisie',
|
|
1464
1464
|
'foehn-status-progress-bar.step2': 'Vérification',
|
|
1465
1465
|
'foehn-status-progress-bar.step2.srOnly': 'Etape 2 sur 3, Vérification',
|
|
1466
|
-
'foehn-status-progress-bar.step3': '
|
|
1467
|
-
'foehn-status-progress-bar.step3.srOnly': 'Etape 3 sur 3,
|
|
1466
|
+
'foehn-status-progress-bar.step3': 'Transmission',
|
|
1467
|
+
'foehn-status-progress-bar.step3.srOnly': 'Etape 3 sur 3, Demande transmise',
|
|
1468
|
+
'foehn-multiselect-autocomplete.selected.delete': 'Supprimer {elementLabel}',
|
|
1469
|
+
'foehn-multiselect-autocomplete.sr-announcement.deleted': '{elementLabel} a été supprimé,',
|
|
1470
|
+
'foehn-multiselect-autocomplete.sr-announcement.added': '{elementLabel} a été ajouté,',
|
|
1471
|
+
'foehn-multiselect-autocomplete.sr-default-focus.no-element-to-delete': 'Aucun élément dans la liste.',
|
|
1472
|
+
'foehn-multiselect-autocomplete.sr-default-selected-element': '(sélection par défaut)',
|
|
1473
|
+
'foehn-multiselect-autocomplete.autocomplete.empty-message': 'Tous les éléments de la liste de proposition ont déjà été ajoutés.',
|
|
1474
|
+
'foehn-multiselect-autocomplete.autocomplete.screen-reader.label': 'Sélectionner un élément dans la liste de recherche' +
|
|
1475
|
+
" ci-dessous pour l'ajouter à votre sélection."
|
|
1468
1476
|
};
|
|
1469
1477
|
|
|
1470
1478
|
const DICTIONARY_BASE_URL = 'api/dictionary';
|
|
@@ -3780,6 +3788,95 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
3780
3788
|
class FormSelectOptionGroup {
|
|
3781
3789
|
}
|
|
3782
3790
|
|
|
3791
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3792
|
+
class ObjectHelper {
|
|
3793
|
+
/**
|
|
3794
|
+
* Angular uses object identity to select option. It's possible for the identities of items to change while the data does not.
|
|
3795
|
+
* This can happen, for example, if the items are produced from an RPC to the server, and that RPC is re-run.
|
|
3796
|
+
* Even if the data hasn't changed, the second response will produce objects with different identities.
|
|
3797
|
+
* (see: https://angular.io/api/forms/SelectControlValueAccessor#customizing-option-selection)
|
|
3798
|
+
*
|
|
3799
|
+
* @param value1 as first value to compare to
|
|
3800
|
+
* @param value2 as value to be compared to
|
|
3801
|
+
* @returns boolean
|
|
3802
|
+
*/
|
|
3803
|
+
static isEqual(value1, value2) {
|
|
3804
|
+
if (value1 &&
|
|
3805
|
+
value2 &&
|
|
3806
|
+
typeof value1 === 'object' &&
|
|
3807
|
+
typeof value2 === 'object') {
|
|
3808
|
+
const matches = (obj, source) => Object.keys(source).length === Object.keys(obj).length &&
|
|
3809
|
+
Object.keys(source).every(key => {
|
|
3810
|
+
if (obj.hasOwnProperty(key)) {
|
|
3811
|
+
if (obj[key] &&
|
|
3812
|
+
source[key] &&
|
|
3813
|
+
typeof obj[key] === 'object' &&
|
|
3814
|
+
typeof source[key] === 'object') {
|
|
3815
|
+
return matches(obj[key], source[key]);
|
|
3816
|
+
}
|
|
3817
|
+
return obj[key] === source[key];
|
|
3818
|
+
}
|
|
3819
|
+
return false;
|
|
3820
|
+
});
|
|
3821
|
+
return matches(value1, value2);
|
|
3822
|
+
}
|
|
3823
|
+
return value1 === value2;
|
|
3824
|
+
}
|
|
3825
|
+
static hasAnyValue(value) {
|
|
3826
|
+
// do not simplify with an inline variable result due to compilation error
|
|
3827
|
+
const result = Object.keys(value).some(key => {
|
|
3828
|
+
if (value[key] && typeof value[key] === 'object') {
|
|
3829
|
+
return ObjectHelper.hasAnyValue(value[key]);
|
|
3830
|
+
}
|
|
3831
|
+
return !!value[key];
|
|
3832
|
+
});
|
|
3833
|
+
return result;
|
|
3834
|
+
}
|
|
3835
|
+
static isEmpty(value) {
|
|
3836
|
+
return !ObjectHelper.hasAnyValue(value);
|
|
3837
|
+
}
|
|
3838
|
+
/**
|
|
3839
|
+
* Deep copy is a true copy for nested objects
|
|
3840
|
+
* Often, shallow copy is good enough and you will not need a deep copy.
|
|
3841
|
+
* A shallow copy means the first level is copied, deeper levels are referenced.
|
|
3842
|
+
*
|
|
3843
|
+
* Examples of shallow copy :
|
|
3844
|
+
* const shallowClone = { ...nestedObject };
|
|
3845
|
+
* const shallowClone = Object.assign({}, nestedObject);
|
|
3846
|
+
*
|
|
3847
|
+
* @param obj is the object to copied
|
|
3848
|
+
* @returns obj
|
|
3849
|
+
*/
|
|
3850
|
+
static deepCopy(obj) {
|
|
3851
|
+
if (!obj || typeof obj !== 'object') {
|
|
3852
|
+
return obj;
|
|
3853
|
+
}
|
|
3854
|
+
let copy;
|
|
3855
|
+
if (obj instanceof Date) {
|
|
3856
|
+
copy = new Date();
|
|
3857
|
+
copy.setTime(obj.getTime());
|
|
3858
|
+
return copy;
|
|
3859
|
+
}
|
|
3860
|
+
if (obj instanceof Array) {
|
|
3861
|
+
copy = [];
|
|
3862
|
+
for (let i = 0, len = obj.length; i < len; i++) {
|
|
3863
|
+
copy[i] = ObjectHelper.deepCopy(obj[i]);
|
|
3864
|
+
}
|
|
3865
|
+
return copy;
|
|
3866
|
+
}
|
|
3867
|
+
if (obj instanceof Object) {
|
|
3868
|
+
copy = {};
|
|
3869
|
+
for (const attr in obj) {
|
|
3870
|
+
if (obj.hasOwnProperty(attr)) {
|
|
3871
|
+
copy[attr] = ObjectHelper.deepCopy(obj[attr]);
|
|
3872
|
+
}
|
|
3873
|
+
}
|
|
3874
|
+
return copy;
|
|
3875
|
+
}
|
|
3876
|
+
throw new Error('Unable to copy obj! Type not supported.');
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3783
3880
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3784
3881
|
class FoehnCheckableGroupComponent extends FoehnInputComponent {
|
|
3785
3882
|
constructor(ngZone) {
|
|
@@ -3797,6 +3894,7 @@ class FoehnCheckableGroupComponent extends FoehnInputComponent {
|
|
|
3797
3894
|
this.elementLabel = 'label';
|
|
3798
3895
|
this.elementDisabled = 'disabled';
|
|
3799
3896
|
this.allElementDisabled = false;
|
|
3897
|
+
this.elementsLoaded = new EventEmitter();
|
|
3800
3898
|
this.multiple = false;
|
|
3801
3899
|
this._onInitSubject = new Subject();
|
|
3802
3900
|
this.httpClient = ServiceLocator.injector.get(HttpClient);
|
|
@@ -3845,6 +3943,7 @@ class FoehnCheckableGroupComponent extends FoehnInputComponent {
|
|
|
3845
3943
|
}
|
|
3846
3944
|
setElements(elements) {
|
|
3847
3945
|
this.elements = elements;
|
|
3946
|
+
this.elementsLoaded.next(elements);
|
|
3848
3947
|
this.onElementsRetrieved();
|
|
3849
3948
|
}
|
|
3850
3949
|
getValue(element) {
|
|
@@ -4024,6 +4123,10 @@ class FoehnCheckableGroupComponent extends FoehnInputComponent {
|
|
|
4024
4123
|
// Hack to refresh the display value
|
|
4025
4124
|
this.updateNgModel(this.model_);
|
|
4026
4125
|
}
|
|
4126
|
+
else if (change &&
|
|
4127
|
+
!ObjectHelper.isEqual(change.currentValue, change.previousValue)) {
|
|
4128
|
+
this.elementsLoaded.next(change.currentValue);
|
|
4129
|
+
}
|
|
4027
4130
|
}
|
|
4028
4131
|
onElementsUrlChange(change) {
|
|
4029
4132
|
if (change && !change.firstChange) {
|
|
@@ -4032,7 +4135,7 @@ class FoehnCheckableGroupComponent extends FoehnInputComponent {
|
|
|
4032
4135
|
}
|
|
4033
4136
|
}
|
|
4034
4137
|
FoehnCheckableGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnCheckableGroupComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4035
|
-
FoehnCheckableGroupComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.3", type: FoehnCheckableGroupComponent, inputs: { elements: "elements", elementsUrl: "elementsUrl", elementValue: "elementValue", elementLabel: "elementLabel", elementValueIdentity: "elementValueIdentity", elementDisabled: "elementDisabled", allElementDisabled: "allElementDisabled", elementGroup: "elementGroup", defaultElementValue: "defaultElementValue" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4138
|
+
FoehnCheckableGroupComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.3", type: FoehnCheckableGroupComponent, inputs: { elements: "elements", elementsUrl: "elementsUrl", elementValue: "elementValue", elementLabel: "elementLabel", elementValueIdentity: "elementValueIdentity", elementDisabled: "elementDisabled", allElementDisabled: "allElementDisabled", elementGroup: "elementGroup", defaultElementValue: "defaultElementValue" }, outputs: { elementsLoaded: "elementsLoaded" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4036
4139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnCheckableGroupComponent, decorators: [{
|
|
4037
4140
|
type: Directive
|
|
4038
4141
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; }, propDecorators: { elements: [{
|
|
@@ -4051,99 +4154,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
4051
4154
|
type: Input
|
|
4052
4155
|
}], elementGroup: [{
|
|
4053
4156
|
type: Input
|
|
4157
|
+
}], elementsLoaded: [{
|
|
4158
|
+
type: Output
|
|
4054
4159
|
}], defaultElementValue: [{
|
|
4055
4160
|
type: Input
|
|
4056
4161
|
}] } });
|
|
4057
4162
|
|
|
4058
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4059
|
-
class ObjectHelper {
|
|
4060
|
-
/**
|
|
4061
|
-
* Angular uses object identity to select option. It's possible for the identities of items to change while the data does not.
|
|
4062
|
-
* This can happen, for example, if the items are produced from an RPC to the server, and that RPC is re-run.
|
|
4063
|
-
* Even if the data hasn't changed, the second response will produce objects with different identities.
|
|
4064
|
-
* (see: https://angular.io/api/forms/SelectControlValueAccessor#customizing-option-selection)
|
|
4065
|
-
*
|
|
4066
|
-
* @param value1 as first value to compare to
|
|
4067
|
-
* @param value2 as value to be compared to
|
|
4068
|
-
* @returns boolean
|
|
4069
|
-
*/
|
|
4070
|
-
static isEqual(value1, value2) {
|
|
4071
|
-
if (value1 &&
|
|
4072
|
-
value2 &&
|
|
4073
|
-
typeof value1 === 'object' &&
|
|
4074
|
-
typeof value2 === 'object') {
|
|
4075
|
-
const matches = (obj, source) => Object.keys(source).length === Object.keys(obj).length &&
|
|
4076
|
-
Object.keys(source).every(key => {
|
|
4077
|
-
if (obj.hasOwnProperty(key)) {
|
|
4078
|
-
if (obj[key] &&
|
|
4079
|
-
source[key] &&
|
|
4080
|
-
typeof obj[key] === 'object' &&
|
|
4081
|
-
typeof source[key] === 'object') {
|
|
4082
|
-
return matches(obj[key], source[key]);
|
|
4083
|
-
}
|
|
4084
|
-
return obj[key] === source[key];
|
|
4085
|
-
}
|
|
4086
|
-
return false;
|
|
4087
|
-
});
|
|
4088
|
-
return matches(value1, value2);
|
|
4089
|
-
}
|
|
4090
|
-
return value1 === value2;
|
|
4091
|
-
}
|
|
4092
|
-
static hasAnyValue(value) {
|
|
4093
|
-
// do not simplify with an inline variable result due to compilation error
|
|
4094
|
-
const result = Object.keys(value).some(key => {
|
|
4095
|
-
if (value[key] && typeof value[key] === 'object') {
|
|
4096
|
-
return ObjectHelper.hasAnyValue(value[key]);
|
|
4097
|
-
}
|
|
4098
|
-
return !!value[key];
|
|
4099
|
-
});
|
|
4100
|
-
return result;
|
|
4101
|
-
}
|
|
4102
|
-
static isEmpty(value) {
|
|
4103
|
-
return !ObjectHelper.hasAnyValue(value);
|
|
4104
|
-
}
|
|
4105
|
-
/**
|
|
4106
|
-
* Deep copy is a true copy for nested objects
|
|
4107
|
-
* Often, shallow copy is good enough and you will not need a deep copy.
|
|
4108
|
-
* A shallow copy means the first level is copied, deeper levels are referenced.
|
|
4109
|
-
*
|
|
4110
|
-
* Examples of shallow copy :
|
|
4111
|
-
* const shallowClone = { ...nestedObject };
|
|
4112
|
-
* const shallowClone = Object.assign({}, nestedObject);
|
|
4113
|
-
*
|
|
4114
|
-
* @param obj is the object to copied
|
|
4115
|
-
* @returns obj
|
|
4116
|
-
*/
|
|
4117
|
-
static deepCopy(obj) {
|
|
4118
|
-
if (!obj || typeof obj !== 'object') {
|
|
4119
|
-
return obj;
|
|
4120
|
-
}
|
|
4121
|
-
let copy;
|
|
4122
|
-
if (obj instanceof Date) {
|
|
4123
|
-
copy = new Date();
|
|
4124
|
-
copy.setTime(obj.getTime());
|
|
4125
|
-
return copy;
|
|
4126
|
-
}
|
|
4127
|
-
if (obj instanceof Array) {
|
|
4128
|
-
copy = [];
|
|
4129
|
-
for (let i = 0, len = obj.length; i < len; i++) {
|
|
4130
|
-
copy[i] = ObjectHelper.deepCopy(obj[i]);
|
|
4131
|
-
}
|
|
4132
|
-
return copy;
|
|
4133
|
-
}
|
|
4134
|
-
if (obj instanceof Object) {
|
|
4135
|
-
copy = {};
|
|
4136
|
-
for (const attr in obj) {
|
|
4137
|
-
if (obj.hasOwnProperty(attr)) {
|
|
4138
|
-
copy[attr] = ObjectHelper.deepCopy(obj[attr]);
|
|
4139
|
-
}
|
|
4140
|
-
}
|
|
4141
|
-
return copy;
|
|
4142
|
-
}
|
|
4143
|
-
throw new Error('Unable to copy obj! Type not supported.');
|
|
4144
|
-
}
|
|
4145
|
-
}
|
|
4146
|
-
|
|
4147
4163
|
class FoehnSelectComponent extends FoehnCheckableGroupComponent {
|
|
4148
4164
|
constructor(zone) {
|
|
4149
4165
|
super(zone);
|
|
@@ -4429,9 +4445,7 @@ class FoehnStatusProgressBarComponent {
|
|
|
4429
4445
|
this.isTransmitted = merge(of(this.gesdemHand.lastResponse?.meta), this.gesdemHand.updateFormDataSubject.pipe(map(() => this.gesdemHand.lastResponse.meta))).pipe(filter(meta => !!meta), map(meta => ActionStatut[meta.statut]), map(statut => GesdemStatutUtils.isFinal(statut)));
|
|
4430
4446
|
}
|
|
4431
4447
|
isEnabled() {
|
|
4432
|
-
return
|
|
4433
|
-
this.hidden !== undefined &&
|
|
4434
|
-
this.hidden === false);
|
|
4448
|
+
return this.hidden !== true;
|
|
4435
4449
|
}
|
|
4436
4450
|
isStepVerificationActive() {
|
|
4437
4451
|
return this.navigation.initialized && this.navigation.isLastFormPage();
|
|
@@ -7453,7 +7467,7 @@ class FoehnInputAddressComponent extends FoehnInputComponent {
|
|
|
7453
7467
|
getValidLocality(value) {
|
|
7454
7468
|
// PRESTAKIT-352: Need a fake 'postalLocalityHistoryId' for individual errors on 'zipCode' and 'longName'
|
|
7455
7469
|
if (!this.isSwiss() && !value) {
|
|
7456
|
-
return { postalLocalityHistoryId: -1 };
|
|
7470
|
+
return { postalLocalityHistoryId: '-1' };
|
|
7457
7471
|
}
|
|
7458
7472
|
return value;
|
|
7459
7473
|
}
|
|
@@ -7592,6 +7606,282 @@ class Address {
|
|
|
7592
7606
|
class FormSelectOption {
|
|
7593
7607
|
}
|
|
7594
7608
|
|
|
7609
|
+
class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteComponent {
|
|
7610
|
+
constructor(ngZone, dictionaryService) {
|
|
7611
|
+
super(ngZone);
|
|
7612
|
+
this.dictionaryService = dictionaryService;
|
|
7613
|
+
this.showEmptyListMessage = false;
|
|
7614
|
+
this.srAnnouncements = '';
|
|
7615
|
+
this.SR_ANNOUNCEMENT_CLEAR_TIMEOUT_INTERVAL_MS = 2000;
|
|
7616
|
+
}
|
|
7617
|
+
get defaultElementValues() {
|
|
7618
|
+
return this.defaultElementValues_;
|
|
7619
|
+
}
|
|
7620
|
+
set defaultElementValues(items) {
|
|
7621
|
+
this.defaultElementValues_ = [...items];
|
|
7622
|
+
if ((!this.model || !this.model.length) && items) {
|
|
7623
|
+
this.updateNgModel(items);
|
|
7624
|
+
}
|
|
7625
|
+
}
|
|
7626
|
+
set defaultElementValue(item) {
|
|
7627
|
+
this.defaultElementValues = [item];
|
|
7628
|
+
}
|
|
7629
|
+
ngOnInit() {
|
|
7630
|
+
super.ngOnInit();
|
|
7631
|
+
// The host is not related to foehn error management but foehn-autocomplete is.
|
|
7632
|
+
this.hostId = this.buildId('ParentContainer');
|
|
7633
|
+
this.hostName = this.hostId;
|
|
7634
|
+
this.excludeFromErrorSummary = true;
|
|
7635
|
+
}
|
|
7636
|
+
hasErrorsToDisplay() {
|
|
7637
|
+
return !!this.autocompleteComponent
|
|
7638
|
+
? this.autocompleteComponent.hasErrorsToDisplay()
|
|
7639
|
+
: false;
|
|
7640
|
+
}
|
|
7641
|
+
updateMultiselectAutocomplete() {
|
|
7642
|
+
const validValue = this.getValidValue();
|
|
7643
|
+
if (typeof validValue !== 'undefined') {
|
|
7644
|
+
this.updateNgModel(validValue);
|
|
7645
|
+
}
|
|
7646
|
+
}
|
|
7647
|
+
handleUserInput() {
|
|
7648
|
+
const validValue = this.getValidValue();
|
|
7649
|
+
if (typeof validValue !== 'undefined') {
|
|
7650
|
+
this.handleChange(validValue);
|
|
7651
|
+
}
|
|
7652
|
+
}
|
|
7653
|
+
addItem(item) {
|
|
7654
|
+
if (!!item) {
|
|
7655
|
+
if (!this.model) {
|
|
7656
|
+
this.model = [];
|
|
7657
|
+
}
|
|
7658
|
+
const index = this.model.indexOf(item);
|
|
7659
|
+
if (index === -1) {
|
|
7660
|
+
this.model.push(item);
|
|
7661
|
+
this.updateMultiselectAutocomplete();
|
|
7662
|
+
this.handleUserInput();
|
|
7663
|
+
this.manageSuggestionListAndFocusAfterAddingAnItem();
|
|
7664
|
+
this.manageScreenReaderAnnouncement(item, false);
|
|
7665
|
+
}
|
|
7666
|
+
}
|
|
7667
|
+
}
|
|
7668
|
+
removeItem(item, index) {
|
|
7669
|
+
this.model.splice(index, 1);
|
|
7670
|
+
this.updateMultiselectAutocomplete();
|
|
7671
|
+
this.handleUserInput();
|
|
7672
|
+
this.manageSuggestionListAndFocusAfterRemovingAnItem(index);
|
|
7673
|
+
this.manageScreenReaderAnnouncement(item, true);
|
|
7674
|
+
this.autocompleteComponent.markAsDirty();
|
|
7675
|
+
}
|
|
7676
|
+
trackByFn(index) {
|
|
7677
|
+
return index;
|
|
7678
|
+
}
|
|
7679
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7680
|
+
getLabel(value) {
|
|
7681
|
+
const elem = this.findElementByModelItem(value);
|
|
7682
|
+
return super.getLabel(elem);
|
|
7683
|
+
}
|
|
7684
|
+
canBeDeleted(index) {
|
|
7685
|
+
return (!this.disabled &&
|
|
7686
|
+
(!this.defaultElementValues ||
|
|
7687
|
+
!this.defaultElementValues.includes(this.model[index])));
|
|
7688
|
+
}
|
|
7689
|
+
onAutocompleteElementsLoaded(elements) {
|
|
7690
|
+
// Need to wait for childView to be loaded
|
|
7691
|
+
setTimeout(() => {
|
|
7692
|
+
if (!!this.autocompleteComponent) {
|
|
7693
|
+
this.autocompleteComponent.elements = this.filterAutocompleteElements(elements);
|
|
7694
|
+
if (!this.disabled &&
|
|
7695
|
+
!this.autocompleteComponent.elements.length) {
|
|
7696
|
+
this.showAlertMessageAndHideAutocomplete();
|
|
7697
|
+
}
|
|
7698
|
+
}
|
|
7699
|
+
});
|
|
7700
|
+
}
|
|
7701
|
+
getDeleteButtonAriaLabel(element) {
|
|
7702
|
+
return `${this.dictionaryService.getKeySync('foehn-multiselect-autocomplete.selected.delete', { elementLabel: this.getLabel(element) })}`;
|
|
7703
|
+
}
|
|
7704
|
+
hasDefaultDeleteFocusArea() {
|
|
7705
|
+
return (!this.disabled &&
|
|
7706
|
+
(!this.defaultElementValues || !this.defaultElementValues.length) &&
|
|
7707
|
+
(!this.model || !this.model.length));
|
|
7708
|
+
}
|
|
7709
|
+
findElementByModelItem(item) {
|
|
7710
|
+
if (!!this.elements && !!this.elements.length) {
|
|
7711
|
+
const itemValue = typeof item !== 'object' ? item : this.getValue(item);
|
|
7712
|
+
const elem = this.elements.find((element) => this.getValue(element) === itemValue);
|
|
7713
|
+
if (!!elem) {
|
|
7714
|
+
return elem;
|
|
7715
|
+
}
|
|
7716
|
+
}
|
|
7717
|
+
return item;
|
|
7718
|
+
}
|
|
7719
|
+
getValidValue() {
|
|
7720
|
+
if (!this.model || !this.model.length) {
|
|
7721
|
+
if (this.model_ !== undefined) {
|
|
7722
|
+
return null;
|
|
7723
|
+
}
|
|
7724
|
+
return undefined;
|
|
7725
|
+
}
|
|
7726
|
+
return this.model;
|
|
7727
|
+
}
|
|
7728
|
+
focusNextAreaAfterDelete(removedIndex) {
|
|
7729
|
+
// Adjust index depending on default elements that are not deletable
|
|
7730
|
+
if (!!this.defaultElementValues) {
|
|
7731
|
+
removedIndex -= this.defaultElementValues.length;
|
|
7732
|
+
}
|
|
7733
|
+
const closeButtonsElemRefArray = [...this.selectedElemRef.toArray()];
|
|
7734
|
+
// Need to find an element to focus on
|
|
7735
|
+
if (removedIndex === closeButtonsElemRefArray.length) {
|
|
7736
|
+
if (!!closeButtonsElemRefArray.length) {
|
|
7737
|
+
return closeButtonsElemRefArray[removedIndex - 1].nativeElement.focus();
|
|
7738
|
+
}
|
|
7739
|
+
const defaultElemRefArray = [...this.defaultElemRef.toArray()];
|
|
7740
|
+
if (!!defaultElemRefArray.length) {
|
|
7741
|
+
return defaultElemRefArray[defaultElemRefArray.length - 1].nativeElement.focus();
|
|
7742
|
+
}
|
|
7743
|
+
return this.defaultDeleteFocusArea.nativeElement.focus();
|
|
7744
|
+
}
|
|
7745
|
+
// Otherwise focus element by DOM replacement
|
|
7746
|
+
}
|
|
7747
|
+
filterAutocompleteElements(elements) {
|
|
7748
|
+
const filteredElements = ObjectHelper.deepCopy(elements);
|
|
7749
|
+
if (!!this.model && !!this.model.length) {
|
|
7750
|
+
this.model.forEach((selected) => {
|
|
7751
|
+
for (const [index, value] of filteredElements.entries()) {
|
|
7752
|
+
const elem = this.findElementByModelItem(selected);
|
|
7753
|
+
if (ObjectHelper.isEqual(elem, value)) {
|
|
7754
|
+
filteredElements.splice(index, 1);
|
|
7755
|
+
break;
|
|
7756
|
+
}
|
|
7757
|
+
}
|
|
7758
|
+
});
|
|
7759
|
+
}
|
|
7760
|
+
return filteredElements;
|
|
7761
|
+
}
|
|
7762
|
+
manageSuggestionListAndFocusAfterAddingAnItem() {
|
|
7763
|
+
// Empty autocomplete input
|
|
7764
|
+
this.autocompleteInputValue = null;
|
|
7765
|
+
// Remove selected item from autocomplete suggestion list
|
|
7766
|
+
this.autocompleteComponent.elements = this.filterAutocompleteElements(this.elements);
|
|
7767
|
+
// Check if we still have suggestions to display
|
|
7768
|
+
if (!this.autocompleteComponent.elements.length) {
|
|
7769
|
+
this.showAlertMessageAndHideAutocomplete();
|
|
7770
|
+
// Need setTimeout to ensure alert message is on the DOM and can be focusable
|
|
7771
|
+
setTimeout(() => {
|
|
7772
|
+
const alertMessage = this.alertMessageContainer.nativeElement.querySelector('p');
|
|
7773
|
+
if (alertMessage) {
|
|
7774
|
+
alertMessage.focus();
|
|
7775
|
+
}
|
|
7776
|
+
});
|
|
7777
|
+
}
|
|
7778
|
+
}
|
|
7779
|
+
manageSuggestionListAndFocusAfterRemovingAnItem(removedIndex) {
|
|
7780
|
+
// Hide message saying no more suggestions to display
|
|
7781
|
+
this.showEmptyListMessage = false;
|
|
7782
|
+
// Manually show autocomplete because there is at least one suggestions to display
|
|
7783
|
+
this.autocompleteComponent.inputElement.nativeElement.hidden = false;
|
|
7784
|
+
// Add back selected item to autocomplete suggestion list
|
|
7785
|
+
this.autocompleteComponent.elements = this.filterAutocompleteElements(this.elements);
|
|
7786
|
+
// When deleting a selected item, check were to set focus back when no more items to delete
|
|
7787
|
+
this.selectedElemRef.changes.pipe(first()).subscribe(() => {
|
|
7788
|
+
this.focusNextAreaAfterDelete(removedIndex);
|
|
7789
|
+
});
|
|
7790
|
+
}
|
|
7791
|
+
showAlertMessageAndHideAutocomplete() {
|
|
7792
|
+
// Show a message to user indicating there is no more suggestions to display
|
|
7793
|
+
this.showEmptyListMessage = true;
|
|
7794
|
+
// Manually reset and hide autocomplete because there is no more suggestions to display
|
|
7795
|
+
this.autocompleteInputValue = null;
|
|
7796
|
+
this.autocompleteComponent.inputElement.nativeElement.hidden = true;
|
|
7797
|
+
}
|
|
7798
|
+
manageScreenReaderAnnouncement(element, isDelete) {
|
|
7799
|
+
clearTimeout(this.srAnnouncementClearTimer);
|
|
7800
|
+
if (isDelete) {
|
|
7801
|
+
this.srAnnouncements += `${this.dictionaryService.getKeySync('foehn-multiselect-autocomplete.sr-announcement.deleted', { elementLabel: this.getLabel(element) })}`;
|
|
7802
|
+
}
|
|
7803
|
+
else {
|
|
7804
|
+
this.srAnnouncements += `${this.dictionaryService.getKeySync('foehn-multiselect-autocomplete.sr-announcement.added', { elementLabel: this.getLabel(element) })}`;
|
|
7805
|
+
}
|
|
7806
|
+
this.srAnnouncementClearTimer = setTimeout(() => {
|
|
7807
|
+
this.srAnnouncements = '';
|
|
7808
|
+
}, this.SR_ANNOUNCEMENT_CLEAR_TIMEOUT_INTERVAL_MS);
|
|
7809
|
+
}
|
|
7810
|
+
}
|
|
7811
|
+
FoehnMultiselectAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnMultiselectAutocompleteComponent, deps: [{ token: i0.NgZone }, { token: SdkDictionaryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7812
|
+
FoehnMultiselectAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: FoehnMultiselectAutocompleteComponent, selector: "foehn-multiselect-autocomplete", inputs: { defaultElementValues: "defaultElementValues", defaultElementValue: "defaultElementValue" }, host: { properties: { "attr.name": "this.hostName" } }, providers: [
|
|
7813
|
+
{
|
|
7814
|
+
provide: FoehnInputComponent,
|
|
7815
|
+
useExisting: forwardRef(() => FoehnMultiselectAutocompleteComponent),
|
|
7816
|
+
multi: true
|
|
7817
|
+
}
|
|
7818
|
+
], viewQueries: [{ propertyName: "autocompleteComponent", first: true, predicate: ["autocompleteComponent"], descendants: true }, { propertyName: "alertMessageContainer", first: true, predicate: ["alertMessageContainer"], descendants: true }, { propertyName: "defaultDeleteFocusArea", first: true, predicate: ["defaultDeleteFocusArea"], descendants: true }, { propertyName: "selectedElemRef", predicate: ["selectedElemRef"], descendants: true }, { propertyName: "defaultElemRef", predicate: ["defaultElemRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<foehn-autocomplete\n #autocompleteComponent\n [name]=\"name\"\n [label]=\"label\"\n [elements]=\"elements\"\n [elementsUrl]=\"elementsUrl\"\n [elementValue]=\"elementValue\"\n [elementLabel]=\"elementLabel\"\n [elementValueIdentity]=\"elementValueIdentity\"\n [elementDisabled]=\"elementDisabled\"\n [allElementDisabled]=\"allElementDisabled\"\n [elementGroup]=\"elementGroup\"\n [allowCustomValue]=\"false\"\n [searchValueMinCharsCount]=\"searchValueMinCharsCount\"\n [customValueModelGenerator]=\"customValueModelGenerator\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n (userInput)=\"addItem($event)\"\n [(model)]=\"autocompleteInputValue\"\n (elementsLoaded)=\"onAutocompleteElementsLoaded($event)\"\n [showErrorWhenDisabled]=\"showErrorWhenDisabled\"\n [hideNotRequiredExtraLabel]=\"hideNotRequiredExtraLabel\"\n>\n <small\n *ngIf=\"!showEmptyListMessage\"\n [attr.id]=\"buildChildId('Help')\"\n class=\"form-text text-secondary\"\n [innerHTML]=\"\n helpText\n ? helpText\n : ('foehn-multiselect-autocomplete.autocomplete.screen-reader.label'\n | fromDictionary)\n \"\n ></small>\n\n <div\n [id]=\"buildChildId('AlertMessageContainer')\"\n role=\"status\"\n #alertMessageContainer\n >\n <p\n *ngIf=\"showEmptyListMessage\"\n class=\"alert alert-info mb-0\"\n tabindex=\"0\"\n >\n {{\n 'foehn-multiselect-autocomplete.autocomplete.empty-message'\n | fromDictionary\n }}\n </p>\n </div>\n</foehn-autocomplete>\n\n<p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\n {{ srAnnouncements }}\n</p>\n\n<div\n class=\"form-group selected-list-container d-flex align-content-stretch flex-wrap\"\n [ngClass]=\"!!model && !!model.length ? 'pt-2' : 'pt-0'\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n tabindex=\"-1\"\n>\n <span\n *ngIf=\"hasDefaultDeleteFocusArea()\"\n class=\"sr-only\"\n [tabindex]=\"0\"\n [innerHTML]=\"\n 'foehn-multiselect-autocomplete.sr-default-focus.no-element-to-delete'\n | fromDictionary\n \"\n #defaultDeleteFocusArea\n ></span>\n <ng-container\n *ngFor=\"let element of model; let index = index; trackBy: trackByFn\"\n >\n <span\n *ngIf=\"!canBeDeleted(index)\"\n class=\"badge badge-pill badge-secondary mr-1 mb-1 py-2 px-3 d-flex align-items-center\"\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-describedby]=\"buildChildId('Label')\"\n #defaultElemRef\n >\n {{ getLabel(element) }}\n <span class=\"sr-only\">\n {{\n 'foehn-multiselect-autocomplete.sr-default-selected-element'\n | fromDictionary\n }}\n </span>\n </span>\n <button\n *ngIf=\"canBeDeleted(index)\"\n class=\"btn btn-danger badge badge-pill mr-1 mb-1 py-2 px-3 d-flex align-items-center\"\n [tabindex]=\"0\"\n [attr.aria-label]=\"getDeleteButtonAriaLabel(element)\"\n [attr.aria-describedby]=\"buildChildId('Label')\"\n [title]=\"getDeleteButtonAriaLabel(element)\"\n (click)=\"removeItem(element, index)\"\n #selectedElemRef\n >\n {{ getLabel(element) }}\n <foehn-icon-times\n aria-hidden=\"true\"\n class=\"ml-2\"\n [title]=\"getDeleteButtonAriaLabel(element)\"\n ></foehn-icon-times>\n </button>\n </ng-container>\n</div>\n", styles: ["foehn-autocomplete p.alert:focus{outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 0 .2rem #ffbf47}:host ::ng-deep foehn-autocomplete .form-group{margin-bottom:0!important}.selected-list-container button>.btn,.btn-link{line-height:inherit;padding:0}.selected-list-container .btn{text-transform:none}:host ::ng-deep .btn .svg-inline--fa{color:#fff!important}.selected-list-container span.badge-pill:focus{outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 0 .2rem #ffbf47}\n"], components: [{ type: FoehnAutocompleteComponent, selector: "foehn-autocomplete", inputs: ["searchValueMinCharsCount", "allowCustomValue", "customValueModelGenerator"] }, { type: FoehnIconTimesComponent, selector: "foehn-icon-times" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "fromDictionary": SdkDictionaryPipe } });
|
|
7819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnMultiselectAutocompleteComponent, decorators: [{
|
|
7820
|
+
type: Component,
|
|
7821
|
+
args: [{ selector: 'foehn-multiselect-autocomplete', providers: [
|
|
7822
|
+
{
|
|
7823
|
+
provide: FoehnInputComponent,
|
|
7824
|
+
useExisting: forwardRef(() => FoehnMultiselectAutocompleteComponent),
|
|
7825
|
+
multi: true
|
|
7826
|
+
}
|
|
7827
|
+
], template: "<foehn-autocomplete\n #autocompleteComponent\n [name]=\"name\"\n [label]=\"label\"\n [elements]=\"elements\"\n [elementsUrl]=\"elementsUrl\"\n [elementValue]=\"elementValue\"\n [elementLabel]=\"elementLabel\"\n [elementValueIdentity]=\"elementValueIdentity\"\n [elementDisabled]=\"elementDisabled\"\n [allElementDisabled]=\"allElementDisabled\"\n [elementGroup]=\"elementGroup\"\n [allowCustomValue]=\"false\"\n [searchValueMinCharsCount]=\"searchValueMinCharsCount\"\n [customValueModelGenerator]=\"customValueModelGenerator\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n (userInput)=\"addItem($event)\"\n [(model)]=\"autocompleteInputValue\"\n (elementsLoaded)=\"onAutocompleteElementsLoaded($event)\"\n [showErrorWhenDisabled]=\"showErrorWhenDisabled\"\n [hideNotRequiredExtraLabel]=\"hideNotRequiredExtraLabel\"\n>\n <small\n *ngIf=\"!showEmptyListMessage\"\n [attr.id]=\"buildChildId('Help')\"\n class=\"form-text text-secondary\"\n [innerHTML]=\"\n helpText\n ? helpText\n : ('foehn-multiselect-autocomplete.autocomplete.screen-reader.label'\n | fromDictionary)\n \"\n ></small>\n\n <div\n [id]=\"buildChildId('AlertMessageContainer')\"\n role=\"status\"\n #alertMessageContainer\n >\n <p\n *ngIf=\"showEmptyListMessage\"\n class=\"alert alert-info mb-0\"\n tabindex=\"0\"\n >\n {{\n 'foehn-multiselect-autocomplete.autocomplete.empty-message'\n | fromDictionary\n }}\n </p>\n </div>\n</foehn-autocomplete>\n\n<p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\n {{ srAnnouncements }}\n</p>\n\n<div\n class=\"form-group selected-list-container d-flex align-content-stretch flex-wrap\"\n [ngClass]=\"!!model && !!model.length ? 'pt-2' : 'pt-0'\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n tabindex=\"-1\"\n>\n <span\n *ngIf=\"hasDefaultDeleteFocusArea()\"\n class=\"sr-only\"\n [tabindex]=\"0\"\n [innerHTML]=\"\n 'foehn-multiselect-autocomplete.sr-default-focus.no-element-to-delete'\n | fromDictionary\n \"\n #defaultDeleteFocusArea\n ></span>\n <ng-container\n *ngFor=\"let element of model; let index = index; trackBy: trackByFn\"\n >\n <span\n *ngIf=\"!canBeDeleted(index)\"\n class=\"badge badge-pill badge-secondary mr-1 mb-1 py-2 px-3 d-flex align-items-center\"\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-describedby]=\"buildChildId('Label')\"\n #defaultElemRef\n >\n {{ getLabel(element) }}\n <span class=\"sr-only\">\n {{\n 'foehn-multiselect-autocomplete.sr-default-selected-element'\n | fromDictionary\n }}\n </span>\n </span>\n <button\n *ngIf=\"canBeDeleted(index)\"\n class=\"btn btn-danger badge badge-pill mr-1 mb-1 py-2 px-3 d-flex align-items-center\"\n [tabindex]=\"0\"\n [attr.aria-label]=\"getDeleteButtonAriaLabel(element)\"\n [attr.aria-describedby]=\"buildChildId('Label')\"\n [title]=\"getDeleteButtonAriaLabel(element)\"\n (click)=\"removeItem(element, index)\"\n #selectedElemRef\n >\n {{ getLabel(element) }}\n <foehn-icon-times\n aria-hidden=\"true\"\n class=\"ml-2\"\n [title]=\"getDeleteButtonAriaLabel(element)\"\n ></foehn-icon-times>\n </button>\n </ng-container>\n</div>\n", styles: ["foehn-autocomplete p.alert:focus{outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 0 .2rem #ffbf47}:host ::ng-deep foehn-autocomplete .form-group{margin-bottom:0!important}.selected-list-container button>.btn,.btn-link{line-height:inherit;padding:0}.selected-list-container .btn{text-transform:none}:host ::ng-deep .btn .svg-inline--fa{color:#fff!important}.selected-list-container span.badge-pill:focus{outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 0 .2rem #ffbf47}\n"] }]
|
|
7828
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: SdkDictionaryService }]; }, propDecorators: { hostName: [{
|
|
7829
|
+
type: HostBinding,
|
|
7830
|
+
args: ['attr.name']
|
|
7831
|
+
}], autocompleteComponent: [{
|
|
7832
|
+
type: ViewChild,
|
|
7833
|
+
args: ['autocompleteComponent']
|
|
7834
|
+
}], alertMessageContainer: [{
|
|
7835
|
+
type: ViewChild,
|
|
7836
|
+
args: ['alertMessageContainer']
|
|
7837
|
+
}], selectedElemRef: [{
|
|
7838
|
+
type: ViewChildren,
|
|
7839
|
+
args: ['selectedElemRef']
|
|
7840
|
+
}], defaultElemRef: [{
|
|
7841
|
+
type: ViewChildren,
|
|
7842
|
+
args: ['defaultElemRef']
|
|
7843
|
+
}], defaultDeleteFocusArea: [{
|
|
7844
|
+
type: ViewChild,
|
|
7845
|
+
args: ['defaultDeleteFocusArea']
|
|
7846
|
+
}], defaultElementValues: [{
|
|
7847
|
+
type: Input
|
|
7848
|
+
}], defaultElementValue: [{
|
|
7849
|
+
type: Input
|
|
7850
|
+
}] } });
|
|
7851
|
+
|
|
7852
|
+
class FoehnMultiselectAutocompleteModule {
|
|
7853
|
+
}
|
|
7854
|
+
FoehnMultiselectAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnMultiselectAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7855
|
+
FoehnMultiselectAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnMultiselectAutocompleteModule, declarations: [FoehnMultiselectAutocompleteComponent], imports: [FoehnAutocompleteModule,
|
|
7856
|
+
SdkDictionaryModule,
|
|
7857
|
+
FoehnValidationAlertsModule,
|
|
7858
|
+
CommonModule,
|
|
7859
|
+
FoehnIconsModule,
|
|
7860
|
+
FormsModule], exports: [FoehnMultiselectAutocompleteComponent] });
|
|
7861
|
+
FoehnMultiselectAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnMultiselectAutocompleteModule, imports: [[
|
|
7862
|
+
FoehnAutocompleteModule,
|
|
7863
|
+
SdkDictionaryModule,
|
|
7864
|
+
FoehnValidationAlertsModule,
|
|
7865
|
+
CommonModule,
|
|
7866
|
+
FoehnIconsModule,
|
|
7867
|
+
FormsModule
|
|
7868
|
+
]] });
|
|
7869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnMultiselectAutocompleteModule, decorators: [{
|
|
7870
|
+
type: NgModule,
|
|
7871
|
+
args: [{
|
|
7872
|
+
imports: [
|
|
7873
|
+
FoehnAutocompleteModule,
|
|
7874
|
+
SdkDictionaryModule,
|
|
7875
|
+
FoehnValidationAlertsModule,
|
|
7876
|
+
CommonModule,
|
|
7877
|
+
FoehnIconsModule,
|
|
7878
|
+
FormsModule
|
|
7879
|
+
],
|
|
7880
|
+
declarations: [FoehnMultiselectAutocompleteComponent],
|
|
7881
|
+
exports: [FoehnMultiselectAutocompleteComponent]
|
|
7882
|
+
}]
|
|
7883
|
+
}] });
|
|
7884
|
+
|
|
7595
7885
|
class FoehnInputNav13Component extends FoehnInputStringComponent {
|
|
7596
7886
|
constructor() {
|
|
7597
7887
|
super(...arguments);
|
|
@@ -8645,7 +8935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
8645
8935
|
}]
|
|
8646
8936
|
}] });
|
|
8647
8937
|
|
|
8648
|
-
const RECAPTCHA_URL = 'https://www.
|
|
8938
|
+
const RECAPTCHA_URL = 'https://www.recaptcha.net/recaptcha/api.js?onload=reCaptchaLoad&render=explicit';
|
|
8649
8939
|
const SCRIPT_ID = 'prestations-ng-captcha-script';
|
|
8650
8940
|
/**
|
|
8651
8941
|
* Integration with Google Recaptcha.
|
|
@@ -9848,7 +10138,7 @@ FoehnPictureUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
9848
10138
|
useExisting: forwardRef(() => FoehnPictureUploadComponent),
|
|
9849
10139
|
multi: true
|
|
9850
10140
|
}
|
|
9851
|
-
], usesInheritance: true, ngImport: i0, template: "<div\n [attr.id]=\"buildId('Container')\"\n [class.has-danger]=\"hasErrors()\"\n [class.vd-form-group-danger]=\"hasErrors()\"\n class=\"form-group clearable-input-form-group\"\n tabindex=\"-1\"\n>\n <label\n [attr.for]=\"buildChildId()\"\n *ngIf=\"!!label\"\n [ngClass]=\"isLabelSrOnly ? 'sr-only' : labelStyleModifier\"\n >\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!required && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </label>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildChildId() + 'Help'\"\n class=\"form-text text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <input type=\"hidden\" [name]=\"name || label\" [ngModel]=\"model\" />\n\n <ng-content></ng-content>\n\n <div *ngIf=\"hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <img\n [id]=\"buildChildId('Picture')\"\n [attr.alt]=\"label\"\n [src]=\"getDownloadUrl()\"\n />\n </div>\n <div class=\"col-md-4\">\n <button\n type=\"button\"\n class=\"btn btn-danger w-100\"\n [attr.id]=\"buildChildId('DeleteButton')\"\n (click)=\"deleteFile()\"\n >\n {{\n 'foehn-picture-upload.delete-picture-label' | fromDictionary\n }}\n </button>\n </div>\n </div>\n\n <div *ngIf=\"!hasPicture && !croppedPictureAsBase64Url\">\n <input\n #inputFile\n type=\"file\"\n class=\"form-control-file d-none\"\n [attr.id]=\"name\"\n [attr.accept]=\"'.jpeg,.jpg,.png'\"\n [multiple]=\"false\"\n [name]=\"name\"\n (change)=\"onPictureSelection($event)\"\n />\n\n <button\n type=\"button\"\n class=\"btn btn-primary my-2\"\n [attr.id]=\"buildChildId('ChooseButton')\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n [attr.aria-describedby]=\"buildId('ErrorsContainer')\"\n (click)=\"inputFile.click()\"\n [disabled]=\"loading\"\n >\n {{ 'foehn-picture-upload.choose-button-label' | fromDictionary }}\n </button>\n </div>\n\n <div *ngIf=\"loading\">\n {{ 'foehn-picture-upload.loading-label' | fromDictionary }}\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <image-cropper\n [id]=\"buildChildId('Cropper')\"\n (cropperReady)=\"loading = false\"\n (imageCropped)=\"onImageCropped($event)\"\n (loadImageFailed)=\"onPictureSelectionFailed()\"\n [aspectRatio]=\"3 / 4\"\n [imageChangedEvent]=\"pictureToCrop\"\n [maintainAspectRatio]=\"true\"\n [resizeToWidth]=\"resizeToWidth\"\n [resizeToHeight]=\"resizeToHeight\"\n [onlyScaleDown]=\"true\"\n format=\"png\"\n ></image-cropper>\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"col-md-4\">\n <div class=\"row mb-3\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-primary w-100\"\n [attr.id]=\"buildChildId('SaveButton')\"\n (click)=\"savePicture()\"\n >\n {{\n 'foehn-picture-upload.validate-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n <div class=\"row\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-secondary w-100\"\n [attr.id]=\"buildChildId('CancelButton')\"\n (click)=\"resetPictureSelection()\"\n >\n {{\n 'foehn-picture-upload.cancel-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n </div>\n </div>\n</div>\n", components: [{ type: FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }, { type: i5.ImageCropperComponent, selector: "image-cropper", inputs: ["imageChangedEvent", "imageURL", "imageBase64", "imageFile", "format", "transform", "maintainAspectRatio", "aspectRatio", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "cropper", "alignImage", "disabled"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "fromDictionary": SdkDictionaryPipe } });
|
|
10141
|
+
], usesInheritance: true, ngImport: i0, template: "<div\n [attr.id]=\"buildId('Container')\"\n [class.has-danger]=\"hasErrors()\"\n [class.vd-form-group-danger]=\"hasErrors()\"\n class=\"form-group clearable-input-form-group\"\n tabindex=\"-1\"\n>\n <label\n [attr.for]=\"buildChildId()\"\n *ngIf=\"!!label\"\n [ngClass]=\"isLabelSrOnly ? 'sr-only' : labelStyleModifier\"\n >\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!required && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </label>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildChildId() + 'Help'\"\n class=\"form-text text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <input type=\"hidden\" [name]=\"name || label\" [ngModel]=\"model\" />\n\n <ng-content></ng-content>\n\n <div *ngIf=\"hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <img\n [id]=\"buildChildId('Picture')\"\n [attr.alt]=\"label\"\n [src]=\"getDownloadUrl()\"\n />\n </div>\n <div class=\"col-md-4\">\n <button\n type=\"button\"\n class=\"btn btn-danger w-100\"\n [attr.id]=\"buildChildId('DeleteButton')\"\n (click)=\"deleteFile()\"\n >\n {{\n 'foehn-picture-upload.delete-picture-label' | fromDictionary\n }}\n </button>\n </div>\n </div>\n\n <div *ngIf=\"!hasPicture && !croppedPictureAsBase64Url\">\n <input\n #inputFile\n type=\"file\"\n class=\"form-control-file d-none\"\n [attr.id]=\"name\"\n [attr.accept]=\"'.jpeg,.jpg,.png'\"\n [multiple]=\"false\"\n [name]=\"name\"\n (change)=\"onPictureSelection($event)\"\n />\n\n <button\n type=\"button\"\n class=\"btn btn-primary my-2\"\n [attr.id]=\"buildChildId('ChooseButton')\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n [attr.aria-describedby]=\"buildId('ErrorsContainer')\"\n (click)=\"inputFile.click()\"\n [attr.disabled]=\"loading ? 'disabled' : null\"\n >\n {{ 'foehn-picture-upload.choose-button-label' | fromDictionary }}\n </button>\n </div>\n\n <div *ngIf=\"loading\">\n {{ 'foehn-picture-upload.loading-label' | fromDictionary }}\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <image-cropper\n [id]=\"buildChildId('Cropper')\"\n (cropperReady)=\"loading = false\"\n (imageCropped)=\"onImageCropped($event)\"\n (loadImageFailed)=\"onPictureSelectionFailed()\"\n [aspectRatio]=\"3 / 4\"\n [imageChangedEvent]=\"pictureToCrop\"\n [maintainAspectRatio]=\"true\"\n [resizeToWidth]=\"resizeToWidth\"\n [resizeToHeight]=\"resizeToHeight\"\n [onlyScaleDown]=\"true\"\n format=\"png\"\n ></image-cropper>\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"col-md-4\">\n <div class=\"row mb-3\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-primary w-100\"\n [attr.id]=\"buildChildId('SaveButton')\"\n (click)=\"savePicture()\"\n >\n {{\n 'foehn-picture-upload.validate-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n <div class=\"row\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-secondary w-100\"\n [attr.id]=\"buildChildId('CancelButton')\"\n (click)=\"resetPictureSelection()\"\n >\n {{\n 'foehn-picture-upload.cancel-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n </div>\n </div>\n</div>\n", components: [{ type: FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }, { type: i5.ImageCropperComponent, selector: "image-cropper", inputs: ["imageChangedEvent", "imageURL", "imageBase64", "imageFile", "format", "transform", "maintainAspectRatio", "aspectRatio", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "cropper", "alignImage", "disabled"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "fromDictionary": SdkDictionaryPipe } });
|
|
9852
10142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnPictureUploadComponent, decorators: [{
|
|
9853
10143
|
type: Component,
|
|
9854
10144
|
args: [{ selector: 'foehn-picture-upload', providers: [
|
|
@@ -9857,7 +10147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
9857
10147
|
useExisting: forwardRef(() => FoehnPictureUploadComponent),
|
|
9858
10148
|
multi: true
|
|
9859
10149
|
}
|
|
9860
|
-
], template: "<div\n [attr.id]=\"buildId('Container')\"\n [class.has-danger]=\"hasErrors()\"\n [class.vd-form-group-danger]=\"hasErrors()\"\n class=\"form-group clearable-input-form-group\"\n tabindex=\"-1\"\n>\n <label\n [attr.for]=\"buildChildId()\"\n *ngIf=\"!!label\"\n [ngClass]=\"isLabelSrOnly ? 'sr-only' : labelStyleModifier\"\n >\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!required && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </label>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildChildId() + 'Help'\"\n class=\"form-text text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <input type=\"hidden\" [name]=\"name || label\" [ngModel]=\"model\" />\n\n <ng-content></ng-content>\n\n <div *ngIf=\"hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <img\n [id]=\"buildChildId('Picture')\"\n [attr.alt]=\"label\"\n [src]=\"getDownloadUrl()\"\n />\n </div>\n <div class=\"col-md-4\">\n <button\n type=\"button\"\n class=\"btn btn-danger w-100\"\n [attr.id]=\"buildChildId('DeleteButton')\"\n (click)=\"deleteFile()\"\n >\n {{\n 'foehn-picture-upload.delete-picture-label' | fromDictionary\n }}\n </button>\n </div>\n </div>\n\n <div *ngIf=\"!hasPicture && !croppedPictureAsBase64Url\">\n <input\n #inputFile\n type=\"file\"\n class=\"form-control-file d-none\"\n [attr.id]=\"name\"\n [attr.accept]=\"'.jpeg,.jpg,.png'\"\n [multiple]=\"false\"\n [name]=\"name\"\n (change)=\"onPictureSelection($event)\"\n />\n\n <button\n type=\"button\"\n class=\"btn btn-primary my-2\"\n [attr.id]=\"buildChildId('ChooseButton')\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n [attr.aria-describedby]=\"buildId('ErrorsContainer')\"\n (click)=\"inputFile.click()\"\n [disabled]=\"loading\"\n >\n {{ 'foehn-picture-upload.choose-button-label' | fromDictionary }}\n </button>\n </div>\n\n <div *ngIf=\"loading\">\n {{ 'foehn-picture-upload.loading-label' | fromDictionary }}\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <image-cropper\n [id]=\"buildChildId('Cropper')\"\n (cropperReady)=\"loading = false\"\n (imageCropped)=\"onImageCropped($event)\"\n (loadImageFailed)=\"onPictureSelectionFailed()\"\n [aspectRatio]=\"3 / 4\"\n [imageChangedEvent]=\"pictureToCrop\"\n [maintainAspectRatio]=\"true\"\n [resizeToWidth]=\"resizeToWidth\"\n [resizeToHeight]=\"resizeToHeight\"\n [onlyScaleDown]=\"true\"\n format=\"png\"\n ></image-cropper>\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"col-md-4\">\n <div class=\"row mb-3\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-primary w-100\"\n [attr.id]=\"buildChildId('SaveButton')\"\n (click)=\"savePicture()\"\n >\n {{\n 'foehn-picture-upload.validate-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n <div class=\"row\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-secondary w-100\"\n [attr.id]=\"buildChildId('CancelButton')\"\n (click)=\"resetPictureSelection()\"\n >\n {{\n 'foehn-picture-upload.cancel-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
10150
|
+
], template: "<div\n [attr.id]=\"buildId('Container')\"\n [class.has-danger]=\"hasErrors()\"\n [class.vd-form-group-danger]=\"hasErrors()\"\n class=\"form-group clearable-input-form-group\"\n tabindex=\"-1\"\n>\n <label\n [attr.for]=\"buildChildId()\"\n *ngIf=\"!!label\"\n [ngClass]=\"isLabelSrOnly ? 'sr-only' : labelStyleModifier\"\n >\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!required && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </label>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildChildId() + 'Help'\"\n class=\"form-text text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <input type=\"hidden\" [name]=\"name || label\" [ngModel]=\"model\" />\n\n <ng-content></ng-content>\n\n <div *ngIf=\"hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <img\n [id]=\"buildChildId('Picture')\"\n [attr.alt]=\"label\"\n [src]=\"getDownloadUrl()\"\n />\n </div>\n <div class=\"col-md-4\">\n <button\n type=\"button\"\n class=\"btn btn-danger w-100\"\n [attr.id]=\"buildChildId('DeleteButton')\"\n (click)=\"deleteFile()\"\n >\n {{\n 'foehn-picture-upload.delete-picture-label' | fromDictionary\n }}\n </button>\n </div>\n </div>\n\n <div *ngIf=\"!hasPicture && !croppedPictureAsBase64Url\">\n <input\n #inputFile\n type=\"file\"\n class=\"form-control-file d-none\"\n [attr.id]=\"name\"\n [attr.accept]=\"'.jpeg,.jpg,.png'\"\n [multiple]=\"false\"\n [name]=\"name\"\n (change)=\"onPictureSelection($event)\"\n />\n\n <button\n type=\"button\"\n class=\"btn btn-primary my-2\"\n [attr.id]=\"buildChildId('ChooseButton')\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n [attr.aria-describedby]=\"buildId('ErrorsContainer')\"\n (click)=\"inputFile.click()\"\n [attr.disabled]=\"loading ? 'disabled' : null\"\n >\n {{ 'foehn-picture-upload.choose-button-label' | fromDictionary }}\n </button>\n </div>\n\n <div *ngIf=\"loading\">\n {{ 'foehn-picture-upload.loading-label' | fromDictionary }}\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"row\">\n <div class=\"col-md-6\">\n <image-cropper\n [id]=\"buildChildId('Cropper')\"\n (cropperReady)=\"loading = false\"\n (imageCropped)=\"onImageCropped($event)\"\n (loadImageFailed)=\"onPictureSelectionFailed()\"\n [aspectRatio]=\"3 / 4\"\n [imageChangedEvent]=\"pictureToCrop\"\n [maintainAspectRatio]=\"true\"\n [resizeToWidth]=\"resizeToWidth\"\n [resizeToHeight]=\"resizeToHeight\"\n [onlyScaleDown]=\"true\"\n format=\"png\"\n ></image-cropper>\n </div>\n\n <div *ngIf=\"!hasPicture\" class=\"col-md-4\">\n <div class=\"row mb-3\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-primary w-100\"\n [attr.id]=\"buildChildId('SaveButton')\"\n (click)=\"savePicture()\"\n >\n {{\n 'foehn-picture-upload.validate-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n <div class=\"row\">\n <button\n *ngIf=\"croppedPictureAsBase64Url\"\n type=\"button\"\n class=\"btn btn-secondary w-100\"\n [attr.id]=\"buildChildId('CancelButton')\"\n (click)=\"resetPictureSelection()\"\n >\n {{\n 'foehn-picture-upload.cancel-selection-label'\n | fromDictionary\n }}\n </button>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
9861
10151
|
}], ctorParameters: function () { return [{ type: GrowlBrokerService }, { type: MultiUploadService }, { type: SdkDictionaryService }]; }, propDecorators: { name: [{
|
|
9862
10152
|
type: Input
|
|
9863
10153
|
}], key: [{
|
|
@@ -11311,10 +11601,10 @@ class FoehnDatePickerComponent {
|
|
|
11311
11601
|
}
|
|
11312
11602
|
}
|
|
11313
11603
|
FoehnDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnDatePickerComponent, deps: [{ token: SdkDictionaryService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
11314
|
-
FoehnDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: FoehnDatePickerComponent, selector: "foehn-date-picker", inputs: { minYear: "minYear", maxYear: "maxYear", datepickerTriggerHtmlElement: "datepickerTriggerHtmlElement", closeable: "closeable", isDatepickerVisible: "isDatepickerVisible", model: "model" }, outputs: { modelChange: "modelChange", userInput: "userInput", isDatepickerVisibleChange: "isDatepickerVisibleChange" }, host: { listeners: { "keyup": "handleKeyboardUpEvent($event)", "keydown": "handleKeyboardDownEvent($event)" } }, viewQueries: [{ propertyName: "daysButtonsElemRef", predicate: ["dayButtonElemRef"], descendants: true }], ngImport: i0, template: "<div\n id=\"datepicker_wrapper\"\n *ngIf=\"isDatepickerVisible\"\n [cdkTrapFocus]=\"!!datepickerTriggerHtmlElement\"\n tabindex=\"-1\"\n role=\"application\"\n [attr.aria-label]=\"\n 'foehn-date-picker.container.aria-label' | fromDictionary\n \"\n>\n <button\n *ngIf=\"closeable\"\n (click)=\"isDatepickerVisible = false\"\n type=\"button\"\n class=\"btn close\"\n [attr.aria-label]=\"\n 'foehn-date-picker.close-button.aria-label' | fromDictionary\n \"\n id=\"closeButton\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n <div id=\"datepicker_header\" class=\"d-flex justify-content-between\">\n <button\n id=\"previous-month\"\n class=\"btn btn-link\"\n (click)=\"previousMonth()\"\n >\n <foehn-icon-chevron-left\n [title]=\"\n 'foehn-date-picker.previous-month-button.title'\n | fromDictionary\n \"\n ></foehn-icon-chevron-left>\n </button>\n <ng-container *ngIf=\"currentMonthYear | async as monthYear\">\n <span id=\"month-year-label\" aria-live=\"polite\" class=\"sr-only\">\n {{\n 'foehn-date-picker.screen-reader.actual-month-displayed'\n | fromDictionary\n }}\n {{ getMonthAsReadable(monthYear.month) }} {{ monthYear.year }}\n </span>\n <foehn-select\n id=\"month-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.month-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"monthListItem\"\n [model]=\"monthYear.month\"\n [required]=\"false\"\n (userInput)=\"userInputMonth($event)\"\n ></foehn-select>\n <foehn-select\n id=\"year-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.year-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"yearListItem\"\n [model]=\"monthYear.year\"\n [required]=\"false\"\n (userInput)=\"userInputYear($event)\"\n ></foehn-select>\n </ng-container>\n <button id=\"next-month\" class=\"btn btn-link\" (click)=\"nextMonth()\">\n <foehn-icon-chevron-right\n [title]=\"\n 'foehn-date-picker.next-month-button.title' | fromDictionary\n \"\n ></foehn-icon-chevron-right>\n </button>\n </div>\n <table\n id=\"datepicker_table\"\n role=\"grid\"\n (focusin)=\"onDaysFocusin()\"\n (focusout)=\"onDaysFocusout()\"\n >\n <thead role=\"presentation\" aria-hidden=\"true\">\n <tr role=\"row\">\n <th\n scope=\"col\"\n role=\"columnheader\"\n *ngFor=\"let weekday of weekDays\"\n >\n <foehn-abbr\n [text]=\"weekday.substr(0, 2)\"\n [title]=\"weekday\"\n ></foehn-abbr>\n </th>\n </tr>\n </thead>\n <tbody role=\"presentation\">\n <tr role=\"row\" *ngFor=\"let week of weeks; let indexRow = index\">\n <td\n role=\"gridcell\"\n *ngFor=\"let dayOfWeek of week; let indexColumn = index\"\n >\n <button\n class=\"btn w-100\"\n #dayButtonElemRef\n [id]=\"'day_' + indexRow + '_' + indexColumn\"\n [tabindex]=\"getDayTabIndex(dayOfWeek)\"\n [class.btn-info]=\"!isToday(dayOfWeek.date)\"\n [class.btn-secondary]=\"isToday(dayOfWeek.date)\"\n [class.btn-danger]=\"isSelected(dayOfWeek.date)\"\n [attr.aria-label]=\"\n weekDays[indexColumn] +\n ' ' +\n dayOfWeek.dateAsReadable\n \"\n [attr.data-is-today]=\"isToday(dayOfWeek.date)\"\n [attr.data-is-selected]=\"isSelected(dayOfWeek.date)\"\n [attr.data-row-index]=\"indexRow\"\n [attr.data-column-index]=\"indexColumn\"\n [attr.day-number]=\"dayOfWeek.dayOfMonth\"\n [disabled]=\"!dayOfWeek.isCurrentMonth\"\n (click)=\"handleUserInput(dayOfWeek.date)\"\n >\n {{ dayOfWeek.dayOfMonth }}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [":host ::ng-deep .btn-link .svg-inline--fa{color:#000!important}#datepicker_header{margin-bottom:10px}#datepicker_wrapper{max-width:245px;padding:5px;border:1px solid #dfdfdf;background-color:#fff}#datepicker_wrapper .h4{margin-bottom:0}#datepicker_wrapper thead th{text-align:center;width:15%}#datepicker_wrapper .btn{padding:2px 4px}#datepicker_wrapper button.close{position:absolute;right:-14px;top:-18px;background-color:#fff;border:1px solid #dfdfdf;border-radius:50%;width:30px;height:30px;opacity:1}#datepicker_wrapper #month-input{width:50%;margin-right:5px}:host ::ng-deep foehn-select select.form-control{padding:0;margin:0;height:30px}:host ::ng-deep foehn-select .form-group{margin:0}\n"], components: [{ type: FoehnIconChevronLeftComponent, selector: "foehn-icon-chevron-left" }, { type: FoehnSelectComponent, selector: "foehn-select", inputs: ["multiple"] }, { type: FoehnIconChevronRightComponent, selector: "foehn-icon-chevron-right" }, { type: FoehnAbbrComponent, selector: "foehn-abbr", inputs: ["title", "text"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "fromDictionary": SdkDictionaryPipe, "async": i3.AsyncPipe } });
|
|
11604
|
+
FoehnDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: FoehnDatePickerComponent, selector: "foehn-date-picker", inputs: { minYear: "minYear", maxYear: "maxYear", datepickerTriggerHtmlElement: "datepickerTriggerHtmlElement", closeable: "closeable", isDatepickerVisible: "isDatepickerVisible", model: "model" }, outputs: { modelChange: "modelChange", userInput: "userInput", isDatepickerVisibleChange: "isDatepickerVisibleChange" }, host: { listeners: { "keyup": "handleKeyboardUpEvent($event)", "keydown": "handleKeyboardDownEvent($event)" } }, viewQueries: [{ propertyName: "daysButtonsElemRef", predicate: ["dayButtonElemRef"], descendants: true }], ngImport: i0, template: "<div\n id=\"datepicker_wrapper\"\n *ngIf=\"isDatepickerVisible\"\n [cdkTrapFocus]=\"!!datepickerTriggerHtmlElement\"\n tabindex=\"-1\"\n role=\"application\"\n [attr.aria-label]=\"\n 'foehn-date-picker.container.aria-label' | fromDictionary\n \"\n>\n <button\n *ngIf=\"closeable\"\n (click)=\"isDatepickerVisible = false\"\n type=\"button\"\n class=\"btn close\"\n [attr.aria-label]=\"\n 'foehn-date-picker.close-button.aria-label' | fromDictionary\n \"\n id=\"closeButton\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n <div id=\"datepicker_header\" class=\"d-flex justify-content-between\">\n <button\n id=\"previous-month\"\n class=\"btn btn-link\"\n (click)=\"previousMonth()\"\n >\n <foehn-icon-chevron-left\n [title]=\"\n 'foehn-date-picker.previous-month-button.title'\n | fromDictionary\n \"\n ></foehn-icon-chevron-left>\n </button>\n <ng-container *ngIf=\"currentMonthYear | async as monthYear\">\n <span id=\"month-year-label\" aria-live=\"polite\" class=\"sr-only\">\n {{\n 'foehn-date-picker.screen-reader.actual-month-displayed'\n | fromDictionary\n }}\n {{ getMonthAsReadable(monthYear.month) }} {{ monthYear.year }}\n </span>\n <foehn-select\n id=\"month-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.month-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"monthListItem\"\n [model]=\"monthYear.month\"\n [required]=\"false\"\n (userInput)=\"userInputMonth($event)\"\n ></foehn-select>\n <foehn-select\n id=\"year-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.year-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"yearListItem\"\n [model]=\"monthYear.year\"\n [required]=\"false\"\n (userInput)=\"userInputYear($event)\"\n ></foehn-select>\n </ng-container>\n <button id=\"next-month\" class=\"btn btn-link\" (click)=\"nextMonth()\">\n <foehn-icon-chevron-right\n [title]=\"\n 'foehn-date-picker.next-month-button.title' | fromDictionary\n \"\n ></foehn-icon-chevron-right>\n </button>\n </div>\n <table\n id=\"datepicker_table\"\n role=\"grid\"\n (focusin)=\"onDaysFocusin()\"\n (focusout)=\"onDaysFocusout()\"\n >\n <thead role=\"presentation\" aria-hidden=\"true\">\n <tr role=\"row\">\n <th\n scope=\"col\"\n role=\"columnheader\"\n *ngFor=\"let weekday of weekDays\"\n >\n <foehn-abbr\n [text]=\"weekday.substr(0, 2)\"\n [title]=\"weekday\"\n ></foehn-abbr>\n </th>\n </tr>\n </thead>\n <tbody role=\"presentation\">\n <tr role=\"row\" *ngFor=\"let week of weeks; let indexRow = index\">\n <td\n role=\"gridcell\"\n *ngFor=\"let dayOfWeek of week; let indexColumn = index\"\n >\n <button\n class=\"btn w-100\"\n #dayButtonElemRef\n [id]=\"'day_' + indexRow + '_' + indexColumn\"\n [tabindex]=\"getDayTabIndex(dayOfWeek)\"\n [class.btn-info]=\"!isToday(dayOfWeek.date)\"\n [class.btn-secondary]=\"isToday(dayOfWeek.date)\"\n [class.btn-danger]=\"isSelected(dayOfWeek.date)\"\n [attr.aria-label]=\"\n weekDays[indexColumn] +\n ' ' +\n dayOfWeek.dateAsReadable\n \"\n [attr.data-is-today]=\"isToday(dayOfWeek.date)\"\n [attr.data-is-selected]=\"isSelected(dayOfWeek.date)\"\n [attr.data-row-index]=\"indexRow\"\n [attr.data-column-index]=\"indexColumn\"\n [attr.day-number]=\"dayOfWeek.dayOfMonth\"\n [attr.disabled]=\"\n !dayOfWeek.isCurrentMonth ? 'disabled' : null\n \"\n (click)=\"handleUserInput(dayOfWeek.date)\"\n >\n {{ dayOfWeek.dayOfMonth }}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [":host ::ng-deep .btn-link .svg-inline--fa{color:#000!important}#datepicker_header{margin-bottom:10px}#datepicker_wrapper{max-width:245px;padding:5px;border:1px solid #dfdfdf;background-color:#fff}#datepicker_wrapper .h4{margin-bottom:0}#datepicker_wrapper thead th{text-align:center;width:15%}#datepicker_wrapper .btn{padding:2px 4px}#datepicker_wrapper button.close{position:absolute;right:-14px;top:-18px;background-color:#fff;border:1px solid #dfdfdf;border-radius:50%;width:30px;height:30px;opacity:1}#datepicker_wrapper #month-input{width:50%;margin-right:5px}:host ::ng-deep foehn-select select.form-control{padding:0;margin:0;height:30px}:host ::ng-deep foehn-select .form-group{margin:0}\n"], components: [{ type: FoehnIconChevronLeftComponent, selector: "foehn-icon-chevron-left" }, { type: FoehnSelectComponent, selector: "foehn-select", inputs: ["multiple"] }, { type: FoehnIconChevronRightComponent, selector: "foehn-icon-chevron-right" }, { type: FoehnAbbrComponent, selector: "foehn-abbr", inputs: ["title", "text"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "fromDictionary": SdkDictionaryPipe, "async": i3.AsyncPipe } });
|
|
11315
11605
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: FoehnDatePickerComponent, decorators: [{
|
|
11316
11606
|
type: Component,
|
|
11317
|
-
args: [{ selector: 'foehn-date-picker', template: "<div\n id=\"datepicker_wrapper\"\n *ngIf=\"isDatepickerVisible\"\n [cdkTrapFocus]=\"!!datepickerTriggerHtmlElement\"\n tabindex=\"-1\"\n role=\"application\"\n [attr.aria-label]=\"\n 'foehn-date-picker.container.aria-label' | fromDictionary\n \"\n>\n <button\n *ngIf=\"closeable\"\n (click)=\"isDatepickerVisible = false\"\n type=\"button\"\n class=\"btn close\"\n [attr.aria-label]=\"\n 'foehn-date-picker.close-button.aria-label' | fromDictionary\n \"\n id=\"closeButton\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n <div id=\"datepicker_header\" class=\"d-flex justify-content-between\">\n <button\n id=\"previous-month\"\n class=\"btn btn-link\"\n (click)=\"previousMonth()\"\n >\n <foehn-icon-chevron-left\n [title]=\"\n 'foehn-date-picker.previous-month-button.title'\n | fromDictionary\n \"\n ></foehn-icon-chevron-left>\n </button>\n <ng-container *ngIf=\"currentMonthYear | async as monthYear\">\n <span id=\"month-year-label\" aria-live=\"polite\" class=\"sr-only\">\n {{\n 'foehn-date-picker.screen-reader.actual-month-displayed'\n | fromDictionary\n }}\n {{ getMonthAsReadable(monthYear.month) }} {{ monthYear.year }}\n </span>\n <foehn-select\n id=\"month-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.month-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"monthListItem\"\n [model]=\"monthYear.month\"\n [required]=\"false\"\n (userInput)=\"userInputMonth($event)\"\n ></foehn-select>\n <foehn-select\n id=\"year-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.year-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"yearListItem\"\n [model]=\"monthYear.year\"\n [required]=\"false\"\n (userInput)=\"userInputYear($event)\"\n ></foehn-select>\n </ng-container>\n <button id=\"next-month\" class=\"btn btn-link\" (click)=\"nextMonth()\">\n <foehn-icon-chevron-right\n [title]=\"\n 'foehn-date-picker.next-month-button.title' | fromDictionary\n \"\n ></foehn-icon-chevron-right>\n </button>\n </div>\n <table\n id=\"datepicker_table\"\n role=\"grid\"\n (focusin)=\"onDaysFocusin()\"\n (focusout)=\"onDaysFocusout()\"\n >\n <thead role=\"presentation\" aria-hidden=\"true\">\n <tr role=\"row\">\n <th\n scope=\"col\"\n role=\"columnheader\"\n *ngFor=\"let weekday of weekDays\"\n >\n <foehn-abbr\n [text]=\"weekday.substr(0, 2)\"\n [title]=\"weekday\"\n ></foehn-abbr>\n </th>\n </tr>\n </thead>\n <tbody role=\"presentation\">\n <tr role=\"row\" *ngFor=\"let week of weeks; let indexRow = index\">\n <td\n role=\"gridcell\"\n *ngFor=\"let dayOfWeek of week; let indexColumn = index\"\n >\n <button\n class=\"btn w-100\"\n #dayButtonElemRef\n [id]=\"'day_' + indexRow + '_' + indexColumn\"\n [tabindex]=\"getDayTabIndex(dayOfWeek)\"\n [class.btn-info]=\"!isToday(dayOfWeek.date)\"\n [class.btn-secondary]=\"isToday(dayOfWeek.date)\"\n [class.btn-danger]=\"isSelected(dayOfWeek.date)\"\n [attr.aria-label]=\"\n weekDays[indexColumn] +\n ' ' +\n dayOfWeek.dateAsReadable\n \"\n [attr.data-is-today]=\"isToday(dayOfWeek.date)\"\n [attr.data-is-selected]=\"isSelected(dayOfWeek.date)\"\n [attr.data-row-index]=\"indexRow\"\n [attr.data-column-index]=\"indexColumn\"\n [attr.day-number]=\"dayOfWeek.dayOfMonth\"\n [disabled]=\"!dayOfWeek.isCurrentMonth\"\n (click)=\"handleUserInput(dayOfWeek.date)\"\n >\n {{ dayOfWeek.dayOfMonth }}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [":host ::ng-deep .btn-link .svg-inline--fa{color:#000!important}#datepicker_header{margin-bottom:10px}#datepicker_wrapper{max-width:245px;padding:5px;border:1px solid #dfdfdf;background-color:#fff}#datepicker_wrapper .h4{margin-bottom:0}#datepicker_wrapper thead th{text-align:center;width:15%}#datepicker_wrapper .btn{padding:2px 4px}#datepicker_wrapper button.close{position:absolute;right:-14px;top:-18px;background-color:#fff;border:1px solid #dfdfdf;border-radius:50%;width:30px;height:30px;opacity:1}#datepicker_wrapper #month-input{width:50%;margin-right:5px}:host ::ng-deep foehn-select select.form-control{padding:0;margin:0;height:30px}:host ::ng-deep foehn-select .form-group{margin:0}\n"] }]
|
|
11607
|
+
args: [{ selector: 'foehn-date-picker', template: "<div\n id=\"datepicker_wrapper\"\n *ngIf=\"isDatepickerVisible\"\n [cdkTrapFocus]=\"!!datepickerTriggerHtmlElement\"\n tabindex=\"-1\"\n role=\"application\"\n [attr.aria-label]=\"\n 'foehn-date-picker.container.aria-label' | fromDictionary\n \"\n>\n <button\n *ngIf=\"closeable\"\n (click)=\"isDatepickerVisible = false\"\n type=\"button\"\n class=\"btn close\"\n [attr.aria-label]=\"\n 'foehn-date-picker.close-button.aria-label' | fromDictionary\n \"\n id=\"closeButton\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n <div id=\"datepicker_header\" class=\"d-flex justify-content-between\">\n <button\n id=\"previous-month\"\n class=\"btn btn-link\"\n (click)=\"previousMonth()\"\n >\n <foehn-icon-chevron-left\n [title]=\"\n 'foehn-date-picker.previous-month-button.title'\n | fromDictionary\n \"\n ></foehn-icon-chevron-left>\n </button>\n <ng-container *ngIf=\"currentMonthYear | async as monthYear\">\n <span id=\"month-year-label\" aria-live=\"polite\" class=\"sr-only\">\n {{\n 'foehn-date-picker.screen-reader.actual-month-displayed'\n | fromDictionary\n }}\n {{ getMonthAsReadable(monthYear.month) }} {{ monthYear.year }}\n </span>\n <foehn-select\n id=\"month-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.month-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"monthListItem\"\n [model]=\"monthYear.month\"\n [required]=\"false\"\n (userInput)=\"userInputMonth($event)\"\n ></foehn-select>\n <foehn-select\n id=\"year-input\"\n class=\"align-self-center\"\n [label]=\"\n 'foehn-date-picker.screen-reader.year-input.label'\n | fromDictionary\n \"\n [isLabelSrOnly]=\"true\"\n [elements]=\"yearListItem\"\n [model]=\"monthYear.year\"\n [required]=\"false\"\n (userInput)=\"userInputYear($event)\"\n ></foehn-select>\n </ng-container>\n <button id=\"next-month\" class=\"btn btn-link\" (click)=\"nextMonth()\">\n <foehn-icon-chevron-right\n [title]=\"\n 'foehn-date-picker.next-month-button.title' | fromDictionary\n \"\n ></foehn-icon-chevron-right>\n </button>\n </div>\n <table\n id=\"datepicker_table\"\n role=\"grid\"\n (focusin)=\"onDaysFocusin()\"\n (focusout)=\"onDaysFocusout()\"\n >\n <thead role=\"presentation\" aria-hidden=\"true\">\n <tr role=\"row\">\n <th\n scope=\"col\"\n role=\"columnheader\"\n *ngFor=\"let weekday of weekDays\"\n >\n <foehn-abbr\n [text]=\"weekday.substr(0, 2)\"\n [title]=\"weekday\"\n ></foehn-abbr>\n </th>\n </tr>\n </thead>\n <tbody role=\"presentation\">\n <tr role=\"row\" *ngFor=\"let week of weeks; let indexRow = index\">\n <td\n role=\"gridcell\"\n *ngFor=\"let dayOfWeek of week; let indexColumn = index\"\n >\n <button\n class=\"btn w-100\"\n #dayButtonElemRef\n [id]=\"'day_' + indexRow + '_' + indexColumn\"\n [tabindex]=\"getDayTabIndex(dayOfWeek)\"\n [class.btn-info]=\"!isToday(dayOfWeek.date)\"\n [class.btn-secondary]=\"isToday(dayOfWeek.date)\"\n [class.btn-danger]=\"isSelected(dayOfWeek.date)\"\n [attr.aria-label]=\"\n weekDays[indexColumn] +\n ' ' +\n dayOfWeek.dateAsReadable\n \"\n [attr.data-is-today]=\"isToday(dayOfWeek.date)\"\n [attr.data-is-selected]=\"isSelected(dayOfWeek.date)\"\n [attr.data-row-index]=\"indexRow\"\n [attr.data-column-index]=\"indexColumn\"\n [attr.day-number]=\"dayOfWeek.dayOfMonth\"\n [attr.disabled]=\"\n !dayOfWeek.isCurrentMonth ? 'disabled' : null\n \"\n (click)=\"handleUserInput(dayOfWeek.date)\"\n >\n {{ dayOfWeek.dayOfMonth }}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [":host ::ng-deep .btn-link .svg-inline--fa{color:#000!important}#datepicker_header{margin-bottom:10px}#datepicker_wrapper{max-width:245px;padding:5px;border:1px solid #dfdfdf;background-color:#fff}#datepicker_wrapper .h4{margin-bottom:0}#datepicker_wrapper thead th{text-align:center;width:15%}#datepicker_wrapper .btn{padding:2px 4px}#datepicker_wrapper button.close{position:absolute;right:-14px;top:-18px;background-color:#fff;border:1px solid #dfdfdf;border-radius:50%;width:30px;height:30px;opacity:1}#datepicker_wrapper #month-input{width:50%;margin-right:5px}:host ::ng-deep foehn-select select.form-control{padding:0;margin:0;height:30px}:host ::ng-deep foehn-select .form-group{margin:0}\n"] }]
|
|
11318
11608
|
}], ctorParameters: function () { return [{ type: SdkDictionaryService }, { type: i0.NgZone }]; }, propDecorators: { minYear: [{
|
|
11319
11609
|
type: Input
|
|
11320
11610
|
}], maxYear: [{
|
|
@@ -11520,6 +11810,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
11520
11810
|
}]
|
|
11521
11811
|
}] });
|
|
11522
11812
|
|
|
11813
|
+
class AddressTypeLight {
|
|
11814
|
+
}
|
|
11815
|
+
|
|
11816
|
+
class Canton {
|
|
11817
|
+
}
|
|
11818
|
+
|
|
11819
|
+
class District {
|
|
11820
|
+
}
|
|
11821
|
+
|
|
11822
|
+
class Municipality {
|
|
11823
|
+
}
|
|
11824
|
+
|
|
11825
|
+
class PlaceOfOrigin {
|
|
11826
|
+
}
|
|
11827
|
+
|
|
11828
|
+
class PostalLocality {
|
|
11829
|
+
}
|
|
11830
|
+
|
|
11523
11831
|
/*
|
|
11524
11832
|
* Public API Surface of prestations-ng
|
|
11525
11833
|
*/
|
|
@@ -11528,5 +11836,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
11528
11836
|
* Generated bundle index. Do not edit.
|
|
11529
11837
|
*/
|
|
11530
11838
|
|
|
11531
|
-
export { APP_INFO_API_URL, AbstractFoehnUploaderComponent, AbstractListDetailPageComponent, AbstractMenuPageComponent, AbstractPageComponent, AbstractPageFromMenuComponent, ActionStatut, Address, ApplicationInfo, ApplicationInfoService, BAD_PARAMS_HELP_TEXT, BoDocumentError, BoDocumentsWithErrors, BoMultiUploadService, Breadcrumb, BreadcrumbEventService, BreadcrumbItem, CAPTCHA_ERROR_NAME, CURRENCY_REGEXP, Captcha, ComponentError, Configuration, Country, CurrencyHelper, DECIMALS_SEPARATOR, DEFAULT_INTERNATIONAL_AND_NO_SWISS, DEFAULT_INTERNATIONAL_AND_NO_SWISS_MOBILE, DEFAULT_INTERNATIONAL_AND_NO_SWISS_PHONE, DEFAULT_INTERNATIONAL_HELP_TEXT, DEFAULT_SWISS_HELP_TEXT, DEFAULT_SWISS_MOBILE_PHONE_HELP_TEXT, DEFAULT_SWISS_PHONE_HELP_TEXT, DICTIONARY_BASE_URL, DateHelper, DatePickerHelper, DatePickerNavigationHelper, DayMonth, DisplayCurrencyPipe, DisplayDatePipe, DisplayLoginMessagesData, Document, DocumentError, DocumentReference, DocumentReferenceWithFile, DocumentsWithErrors, EPaymentService, EtapeInfo, FORM_SUPPORT_CYBER_TITLE_FALLBACK, FocusedDay, FoehnAbbrComponent, FoehnAddressModule, FoehnAutocompleteComponent, FoehnAutocompleteModule, FoehnBoMultiUploadComponent, FoehnBoMultiUploadModule, FoehnBooleanCheckboxComponent, FoehnBooleanModule, FoehnBooleanRadioComponent, FoehnBreadcrumbComponent, FoehnBreadcrumbModule, FoehnCheckableGroupComponent, FoehnCheckablesModule, FoehnCheckboxComponent, FoehnConfirmModalComponent, FoehnConfirmModalContent, FoehnConfirmModalModule, FoehnConfirmModalService, FoehnDateComponent, FoehnDatePickerButtonComponent, FoehnDatePickerButtonModule, FoehnDatePickerComponent, FoehnDatePickerModule, FoehnDecisionElectroniqueComponent, FoehnDecisionElectroniqueModule, FoehnDisplayAddressComponent, FoehnErrorPillComponent, FoehnFormComponent, FoehnFormModule, FoehnHeaderComponent, FoehnHeaderModule, FoehnHelpModalComponent, FoehnHelpModalModule, FoehnIconCalendarComponent, FoehnIconCheckComponent, FoehnIconCheckSquareOComponent, FoehnIconChevronDownComponent, FoehnIconChevronLeftComponent, FoehnIconChevronRightComponent, FoehnIconChevronUpComponent, FoehnIconClockComponent, FoehnIconCommentDotsComponent, FoehnIconEditComponent, FoehnIconExternalLinkAltComponent, FoehnIconFilePdfComponent, FoehnIconInfoCircleComponent, FoehnIconLockComponent, FoehnIconMapMarkerComponent, FoehnIconMinusCircleComponent, FoehnIconPlusCircleComponent, FoehnIconPlusSquareComponent, FoehnIconSearchComponent, FoehnIconTimesComponent, FoehnIconTrashAltComponent, FoehnIconUnlockAltComponent, FoehnIconsModule, FoehnInputAddressComponent, FoehnInputComponent, FoehnInputEmailComponent, FoehnInputForeignLocalityComponent, FoehnInputForeignStreetComponent, FoehnInputHiddenComponent, FoehnInputModule, FoehnInputNav13Component, FoehnInputNav13Module, FoehnInputNumberComponent, FoehnInputPasswordComponent, FoehnInputPhoneComponent, FoehnInputStringComponent, FoehnInputTextComponent, FoehnInputTextareaComponent, FoehnListComponent, FoehnListItem, FoehnListModule, FoehnListSummaryComponent, FoehnMenuItemComponent, FoehnMenuItemTransmitComponent, FoehnMenuPrestationModule, FoehnMiscModule, FoehnModalComponent, FoehnModalModule, FoehnMultiUploadComponent, FoehnMultiUploadModule, FoehnNavigationComponent, FoehnNavigationModule, FoehnNavigationService, FoehnNotFoundModule, FoehnNotfoundComponent, FoehnPageComponent, FoehnPageCounterComponent, FoehnPageModalComponent, FoehnPageModule, FoehnPageService, FoehnPictureUploadComponent, FoehnPictureUploadModule, FoehnRadioComponent, FoehnRecapSectionComponent, FoehnRecapSectionModule, FoehnRemainingAlertsSummaryComponent, FoehnRemainingAlertsSummaryModule, FoehnSelectComponent, FoehnSkipLinkComponent, FoehnStatusProgressBarComponent, FoehnStatusProgressBarModule, FoehnTableColumnConfiguration, FoehnTableComponent, FoehnTableModule, FoehnTablePageChangeEvent, FoehnTimeComponent, FoehnUserConnectedAsComponent, FoehnUserConnectedAsModule, FoehnValidationAlertSummaryComponent, FoehnValidationAlertSummaryModule, FoehnValidationAlertsComponent, FoehnValidationAlertsModule, FooterLink, FormMetadata, FormPostResponse, FormSelectOption, FormatIdePipe, FormatterModule, GESDEM_MAX_DATA_LENGTH, GesdemActionRecoveryLoginComponent, GesdemActionRecoveryModule, GesdemActionRecoveryRegistrationComponent, GesdemConfirmationComponent, GesdemConfirmationModule, GesdemErrorComponent, GesdemErrorModule, GesdemEventService, GesdemHandlerService, GesdemLoaderGuard, GesdemStatutUtils, GrowlBrokerService, GrowlMessage, GrowlType, I18nForm, IbanFormatterDirective, IdeFormatterDirective, Locality, MonthYear, MultiUploadService, NDCFormatterDirective, NavigationDirection, NumberCurrencyFormatterDirective, ObjectHelper, PORTAIL_BASE_URL_INT, PageChangeEvent, PendingFiles, PendingUploadService, PipeModule, Portail, Preferences, PrestationsNgCoreModule, RECAPTCHA_API_URL, RecaptchaService, RedirectComponent, SESSION_INFO_API_URL, SWISS_ISO_ID, SdkDictionaryModule, SdkDictionaryPipe, SdkDictionaryService, SdkEpaymentComponent, SdkEpaymentModule, SdkRecaptchaComponent, SdkRecaptchaModule, SdkRedirectModule, ServiceLocator, SessionInfo, SessionInfoData, SessionInfoWithApplicationService, Street, StreetNumber, THOUSANDS_SEPARATOR, TableSort, UploaderHelper, ValidationHandlerService };
|
|
11839
|
+
export { APP_INFO_API_URL, AbstractFoehnUploaderComponent, AbstractListDetailPageComponent, AbstractMenuPageComponent, AbstractPageComponent, AbstractPageFromMenuComponent, ActionStatut, Address, AddressTypeLight, ApplicationInfo, ApplicationInfoService, BAD_PARAMS_HELP_TEXT, BoDocumentError, BoDocumentsWithErrors, BoMultiUploadService, Breadcrumb, BreadcrumbEventService, BreadcrumbItem, CAPTCHA_ERROR_NAME, CURRENCY_REGEXP, Canton, Captcha, ComponentError, Configuration, Country, CurrencyHelper, DECIMALS_SEPARATOR, DEFAULT_INTERNATIONAL_AND_NO_SWISS, DEFAULT_INTERNATIONAL_AND_NO_SWISS_MOBILE, DEFAULT_INTERNATIONAL_AND_NO_SWISS_PHONE, DEFAULT_INTERNATIONAL_HELP_TEXT, DEFAULT_SWISS_HELP_TEXT, DEFAULT_SWISS_MOBILE_PHONE_HELP_TEXT, DEFAULT_SWISS_PHONE_HELP_TEXT, DICTIONARY_BASE_URL, DateHelper, DatePickerHelper, DatePickerNavigationHelper, DayMonth, DisplayCurrencyPipe, DisplayDatePipe, DisplayLoginMessagesData, District, Document, DocumentError, DocumentReference, DocumentReferenceWithFile, DocumentsWithErrors, EPaymentService, EtapeInfo, FORM_SUPPORT_CYBER_TITLE_FALLBACK, FocusedDay, FoehnAbbrComponent, FoehnAddressModule, FoehnAutocompleteComponent, FoehnAutocompleteModule, FoehnBoMultiUploadComponent, FoehnBoMultiUploadModule, FoehnBooleanCheckboxComponent, FoehnBooleanModule, FoehnBooleanRadioComponent, FoehnBreadcrumbComponent, FoehnBreadcrumbModule, FoehnCheckableGroupComponent, FoehnCheckablesModule, FoehnCheckboxComponent, FoehnConfirmModalComponent, FoehnConfirmModalContent, FoehnConfirmModalModule, FoehnConfirmModalService, FoehnDateComponent, FoehnDatePickerButtonComponent, FoehnDatePickerButtonModule, FoehnDatePickerComponent, FoehnDatePickerModule, FoehnDecisionElectroniqueComponent, FoehnDecisionElectroniqueModule, FoehnDisplayAddressComponent, FoehnErrorPillComponent, FoehnFormComponent, FoehnFormModule, FoehnHeaderComponent, FoehnHeaderModule, FoehnHelpModalComponent, FoehnHelpModalModule, FoehnIconCalendarComponent, FoehnIconCheckComponent, FoehnIconCheckSquareOComponent, FoehnIconChevronDownComponent, FoehnIconChevronLeftComponent, FoehnIconChevronRightComponent, FoehnIconChevronUpComponent, FoehnIconClockComponent, FoehnIconCommentDotsComponent, FoehnIconEditComponent, FoehnIconExternalLinkAltComponent, FoehnIconFilePdfComponent, FoehnIconInfoCircleComponent, FoehnIconLockComponent, FoehnIconMapMarkerComponent, FoehnIconMinusCircleComponent, FoehnIconPlusCircleComponent, FoehnIconPlusSquareComponent, FoehnIconSearchComponent, FoehnIconTimesComponent, FoehnIconTrashAltComponent, FoehnIconUnlockAltComponent, FoehnIconsModule, FoehnInputAddressComponent, FoehnInputComponent, FoehnInputEmailComponent, FoehnInputForeignLocalityComponent, FoehnInputForeignStreetComponent, FoehnInputHiddenComponent, FoehnInputModule, FoehnInputNav13Component, FoehnInputNav13Module, FoehnInputNumberComponent, FoehnInputPasswordComponent, FoehnInputPhoneComponent, FoehnInputStringComponent, FoehnInputTextComponent, FoehnInputTextareaComponent, FoehnListComponent, FoehnListItem, FoehnListModule, FoehnListSummaryComponent, FoehnMenuItemComponent, FoehnMenuItemTransmitComponent, FoehnMenuPrestationModule, FoehnMiscModule, FoehnModalComponent, FoehnModalModule, FoehnMultiUploadComponent, FoehnMultiUploadModule, FoehnMultiselectAutocompleteComponent, FoehnMultiselectAutocompleteModule, FoehnNavigationComponent, FoehnNavigationModule, FoehnNavigationService, FoehnNotFoundModule, FoehnNotfoundComponent, FoehnPageComponent, FoehnPageCounterComponent, FoehnPageModalComponent, FoehnPageModule, FoehnPageService, FoehnPictureUploadComponent, FoehnPictureUploadModule, FoehnRadioComponent, FoehnRecapSectionComponent, FoehnRecapSectionModule, FoehnRemainingAlertsSummaryComponent, FoehnRemainingAlertsSummaryModule, FoehnSelectComponent, FoehnSkipLinkComponent, FoehnStatusProgressBarComponent, FoehnStatusProgressBarModule, FoehnTableColumnConfiguration, FoehnTableComponent, FoehnTableModule, FoehnTablePageChangeEvent, FoehnTimeComponent, FoehnUserConnectedAsComponent, FoehnUserConnectedAsModule, FoehnValidationAlertSummaryComponent, FoehnValidationAlertSummaryModule, FoehnValidationAlertsComponent, FoehnValidationAlertsModule, FooterLink, FormMetadata, FormPostResponse, FormSelectOption, FormatIdePipe, FormatterModule, GESDEM_MAX_DATA_LENGTH, GesdemActionRecoveryLoginComponent, GesdemActionRecoveryModule, GesdemActionRecoveryRegistrationComponent, GesdemConfirmationComponent, GesdemConfirmationModule, GesdemErrorComponent, GesdemErrorModule, GesdemEventService, GesdemHandlerService, GesdemLoaderGuard, GesdemStatutUtils, GrowlBrokerService, GrowlMessage, GrowlType, I18nForm, IbanFormatterDirective, IdeFormatterDirective, Locality, MonthYear, MultiUploadService, Municipality, NDCFormatterDirective, NavigationDirection, NumberCurrencyFormatterDirective, ObjectHelper, PORTAIL_BASE_URL_INT, PageChangeEvent, PendingFiles, PendingUploadService, PipeModule, PlaceOfOrigin, Portail, PostalLocality, Preferences, PrestationsNgCoreModule, RECAPTCHA_API_URL, RecaptchaService, RedirectComponent, SESSION_INFO_API_URL, SWISS_ISO_ID, SdkDictionaryModule, SdkDictionaryPipe, SdkDictionaryService, SdkEpaymentComponent, SdkEpaymentModule, SdkRecaptchaComponent, SdkRecaptchaModule, SdkRedirectModule, ServiceLocator, SessionInfo, SessionInfoData, SessionInfoWithApplicationService, Street, StreetNumber, THOUSANDS_SEPARATOR, TableSort, UploaderHelper, ValidationHandlerService };
|
|
11532
11840
|
//# sourceMappingURL=dsivd-prestations-ng.mjs.map
|