@dsivd/prestations-ng 15.4.9 → 15.5.0-beta1
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 +25 -0
- package/dsivd-prestations-ng-v15.5.0-beta1.tgz +0 -0
- package/esm2020/foehn-address/foehn-input-address.component.mjs +47 -16
- package/esm2020/foehn-autocomplete/foehn-autocomplete.component.mjs +28 -6
- package/esm2020/foehn-boolean/foehn-boolean-radio.component.mjs +7 -4
- package/esm2020/foehn-checkables/foehn-checkable-group.component.mjs +5 -2
- package/esm2020/foehn-input/foehn-input.component.mjs +23 -12
- package/esm2020/foehn-input/foehn-input.module.mjs +10 -5
- package/esm2020/foehn-input-date-time/foehn-input-date-time.component.mjs +139 -0
- package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.mjs +1 -1
- package/esm2020/gesdem-confirmation/gesdem-confirmation.component.mjs +3 -3
- package/esm2020/index.mjs +2 -1
- package/esm2020/sdk-dictionary/default-dictionary.mjs +3 -2
- package/fesm2015/dsivd-prestations-ng.mjs +242 -39
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +242 -39
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-address/foehn-input-address.component.d.ts +9 -1
- package/foehn-autocomplete/foehn-autocomplete.component.d.ts +7 -1
- package/foehn-boolean/foehn-boolean-radio.component.d.ts +2 -1
- package/foehn-input/foehn-input.component.d.ts +5 -3
- package/foehn-input/foehn-input.module.d.ts +9 -8
- package/foehn-input-date-time/foehn-input-date-time.component.d.ts +28 -0
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/dsivd-prestations-ng-v15.4.9.tgz +0 -0
|
@@ -6,6 +6,7 @@ import { Observable } from 'rxjs';
|
|
|
6
6
|
import { FoehnInputForeignLocalityComponent } from './foehn-input-foreign-locality.component';
|
|
7
7
|
import { FoehnInputForeignStreetComponent } from './foehn-input-foreign-street.component';
|
|
8
8
|
import { FoehnInputTextComponent } from '../foehn-input/foehn-input-text.component';
|
|
9
|
+
import { SdkDictionaryService } from '../sdk-dictionary/sdk-dictionary.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare const SWISS_ISO_ID = "CH";
|
|
11
12
|
export declare class StreetNumber {
|
|
@@ -14,6 +15,7 @@ export declare class StreetNumber {
|
|
|
14
15
|
export declare class FoehnInputAddressComponent extends FoehnInputComponent<Address> implements OnInit {
|
|
15
16
|
private httpClient;
|
|
16
17
|
private ngZone;
|
|
18
|
+
private dictionaryService;
|
|
17
19
|
foreignLocalityComponent: FoehnInputForeignLocalityComponent;
|
|
18
20
|
foreignStreetComponent: FoehnInputForeignStreetComponent;
|
|
19
21
|
foreignHouseNumber: FoehnInputTextComponent;
|
|
@@ -47,10 +49,13 @@ export declare class FoehnInputAddressComponent extends FoehnInputComponent<Addr
|
|
|
47
49
|
localities: Observable<Locality[]>;
|
|
48
50
|
streets: Observable<Street[]>;
|
|
49
51
|
streetNumbers: Observable<StreetNumber[]>;
|
|
52
|
+
streetCustomErrors: {
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
};
|
|
50
55
|
private iso2IdSubject;
|
|
51
56
|
private zipCodeIdSubject;
|
|
52
57
|
private estrIdSubject;
|
|
53
|
-
constructor(httpClient: HttpClient, ngZone: NgZone);
|
|
58
|
+
constructor(httpClient: HttpClient, ngZone: NgZone, dictionaryService: SdkDictionaryService);
|
|
54
59
|
identity: <T>(n: T) => T;
|
|
55
60
|
countryIdentity: (country: Country) => string;
|
|
56
61
|
localityIdentity: (loc: Locality) => string;
|
|
@@ -68,6 +73,9 @@ export declare class FoehnInputAddressComponent extends FoehnInputComponent<Addr
|
|
|
68
73
|
getLocalityDisplayedName(locality: Locality): string | void;
|
|
69
74
|
localityUpdated(locality: Locality): void;
|
|
70
75
|
streetUpdated(street: Street): void;
|
|
76
|
+
isStreetRequired(): boolean;
|
|
77
|
+
isForeignStreetRequired(): boolean;
|
|
78
|
+
isPostOfficeBoxTextRequired(): boolean;
|
|
71
79
|
private getCountries;
|
|
72
80
|
private getLocalities;
|
|
73
81
|
private getStreetNumberFor;
|
|
@@ -39,6 +39,9 @@ export declare class FoehnAutocompleteComponent extends FoehnCheckableGroupCompo
|
|
|
39
39
|
VIEW_PORT_HEIGHT: number;
|
|
40
40
|
displayedElements: any[];
|
|
41
41
|
notificationMessageUpdated: boolean;
|
|
42
|
+
disabledSubject: Observable<string>;
|
|
43
|
+
private pendingDisabledSubject;
|
|
44
|
+
private elementsLoadedSubject;
|
|
42
45
|
private currentItemGlobalIndex;
|
|
43
46
|
private readonly NB_ITEMS_VISIBLE;
|
|
44
47
|
private filterSubject;
|
|
@@ -47,10 +50,13 @@ export declare class FoehnAutocompleteComponent extends FoehnCheckableGroupCompo
|
|
|
47
50
|
private activeDescendantId;
|
|
48
51
|
private onInitSubscription;
|
|
49
52
|
private modelChangeSubscription;
|
|
53
|
+
private elementsLoadedSubscription;
|
|
50
54
|
private readonly SUGGESTION_SELECTED_CLASS;
|
|
51
55
|
private readonly EXCLUDE_HTML_TAGS_REGEX;
|
|
52
56
|
private readonly SUGGESTION_CUSTOM_ATTRIBUTE_LABEL_VALUE;
|
|
53
57
|
constructor(zone: NgZone);
|
|
58
|
+
get disabled(): boolean;
|
|
59
|
+
set disabled(value: boolean);
|
|
54
60
|
ngOnInit(): void;
|
|
55
61
|
ngOnDestroy(): void;
|
|
56
62
|
onInputFocus(): void;
|
|
@@ -98,5 +104,5 @@ export declare class FoehnAutocompleteComponent extends FoehnCheckableGroupCompo
|
|
|
98
104
|
private getCustomValue;
|
|
99
105
|
private getModelValueDisplayValue;
|
|
100
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<FoehnAutocompleteComponent, never>;
|
|
101
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FoehnAutocompleteComponent, "foehn-autocomplete", never, { "searchValueMinCharsCount": "searchValueMinCharsCount"; "allowCustomValue": "allowCustomValue"; "customValueModelGenerator": "customValueModelGenerator"; "itemHeightInSuggestionListInPx": "itemHeightInSuggestionListInPx"; "elementSuggestionLabel": "elementSuggestionLabel"; "caseSensitiveSearch": "caseSensitiveSearch"; }, {}, never, ["*"]>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FoehnAutocompleteComponent, "foehn-autocomplete", never, { "searchValueMinCharsCount": "searchValueMinCharsCount"; "allowCustomValue": "allowCustomValue"; "customValueModelGenerator": "customValueModelGenerator"; "itemHeightInSuggestionListInPx": "itemHeightInSuggestionListInPx"; "elementSuggestionLabel": "elementSuggestionLabel"; "caseSensitiveSearch": "caseSensitiveSearch"; "disabled": "disabled"; }, {}, never, ["*"]>;
|
|
102
108
|
}
|
|
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class FoehnBooleanRadioComponent extends FoehnInputComponent<boolean> {
|
|
4
4
|
trueLabel: string;
|
|
5
5
|
falseLabel: string;
|
|
6
|
+
verticalDisplay: boolean;
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FoehnBooleanRadioComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FoehnBooleanRadioComponent, "foehn-boolean-radio", never, { "trueLabel": "trueLabel"; "falseLabel": "falseLabel"; }, {}, never, ["*"]>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FoehnBooleanRadioComponent, "foehn-boolean-radio", never, { "trueLabel": "trueLabel"; "falseLabel": "falseLabel"; "verticalDisplay": "verticalDisplay"; }, {}, never, ["*"]>;
|
|
8
9
|
}
|
|
@@ -31,7 +31,6 @@ export declare abstract class FoehnInputComponent<T> implements OnInit, OnDestro
|
|
|
31
31
|
* See https://developer.mozilla.org/fr/docs/Web/HTML/Attributes/autocomplete
|
|
32
32
|
*/
|
|
33
33
|
autocomplete: string;
|
|
34
|
-
disabled: boolean;
|
|
35
34
|
preventPaste: boolean;
|
|
36
35
|
clearButton: boolean;
|
|
37
36
|
/**
|
|
@@ -74,12 +73,15 @@ export declare abstract class FoehnInputComponent<T> implements OnInit, OnDestro
|
|
|
74
73
|
private _errors;
|
|
75
74
|
private validationErrorsSubjectSubscription;
|
|
76
75
|
private showClearButton;
|
|
77
|
-
private
|
|
76
|
+
private userInputSubject;
|
|
78
77
|
private userInputSubscription;
|
|
78
|
+
private _disabled;
|
|
79
79
|
constructor();
|
|
80
80
|
get errors(): FormError[];
|
|
81
81
|
get model(): T;
|
|
82
82
|
set model(value: T);
|
|
83
|
+
get disabled(): boolean;
|
|
84
|
+
set disabled(value: boolean);
|
|
83
85
|
ngOnInit(): void;
|
|
84
86
|
ngOnDestroy(): void;
|
|
85
87
|
onModelChange(value: T): void;
|
|
@@ -113,5 +115,5 @@ export declare abstract class FoehnInputComponent<T> implements OnInit, OnDestro
|
|
|
113
115
|
protected isEmpty(data: any): boolean;
|
|
114
116
|
protected triggerUserInput(value: T): void;
|
|
115
117
|
static ɵfac: i0.ɵɵFactoryDeclaration<FoehnInputComponent<any>, never>;
|
|
116
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FoehnInputComponent<any>, never, never, { "id": "id"; "required": "required"; "label": "label"; "isLabelSrOnly": "isLabelSrOnly"; "helpText": "helpText"; "name": "name"; "pattern": "pattern"; "labelStyleModifier": "labelStyleModifier"; "customErrors": "customErrors"; "maxlength": "maxlength"; "overrideGesdemMaxlength": "overrideGesdemMaxlength"; "min": "min"; "max": "max"; "autocomplete": "autocomplete"; "
|
|
118
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FoehnInputComponent<any>, never, never, { "id": "id"; "required": "required"; "label": "label"; "isLabelSrOnly": "isLabelSrOnly"; "helpText": "helpText"; "name": "name"; "pattern": "pattern"; "labelStyleModifier": "labelStyleModifier"; "customErrors": "customErrors"; "maxlength": "maxlength"; "overrideGesdemMaxlength": "overrideGesdemMaxlength"; "min": "min"; "max": "max"; "autocomplete": "autocomplete"; "preventPaste": "preventPaste"; "clearButton": "clearButton"; "excludeFromErrorSummary": "excludeFromErrorSummary"; "hideNotRequiredExtraLabel": "hideNotRequiredExtraLabel"; "isErrorInherited": "isErrorInherited"; "showErrorWhenDisabled": "showErrorWhenDisabled"; "autocapitalize": "autocapitalize"; "helpModal": "helpModal"; "model": "model"; "disabled": "disabled"; }, { "modelChange": "modelChange"; "userInput": "userInput"; "blurHandler": "blur"; "focusHandler": "focus"; }, never>;
|
|
117
119
|
}
|
|
@@ -8,15 +8,16 @@ import * as i6 from "./foehn-input-textarea.component";
|
|
|
8
8
|
import * as i7 from "../foehn-input-date/foehn-input-date.component";
|
|
9
9
|
import * as i8 from "../foehn-input-time/foehn-input-time.component";
|
|
10
10
|
import * as i9 from "./foehn-input-phone.component";
|
|
11
|
-
import * as i10 from "../foehn-
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "@angular/
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "../
|
|
16
|
-
import * as i15 from "../
|
|
17
|
-
import * as i16 from "../foehn-
|
|
11
|
+
import * as i10 from "../foehn-input-date-time/foehn-input-date-time.component";
|
|
12
|
+
import * as i11 from "../foehn-icons/foehn-icons.module";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "@angular/forms";
|
|
15
|
+
import * as i14 from "../foehn-validation-alerts/foehn-validation-alerts.module";
|
|
16
|
+
import * as i15 from "../sdk-dictionary/sdk-dictionary.module";
|
|
17
|
+
import * as i16 from "../foehn-date-picker-button/foehn-date-picker-button.module";
|
|
18
|
+
import * as i17 from "../foehn-help-modal/foehn-help-modal.module";
|
|
18
19
|
export declare class FoehnInputModule {
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FoehnInputModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FoehnInputModule, [typeof i1.FoehnInputTextComponent, typeof i2.FoehnInputNumberComponent, typeof i3.FoehnInputEmailComponent, typeof i4.FoehnInputHiddenComponent, typeof i5.FoehnInputPasswordComponent, typeof i6.FoehnInputTextareaComponent, typeof i7.FoehnDateComponent, typeof i8.FoehnTimeComponent, typeof i9.FoehnInputPhoneComponent], [typeof
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FoehnInputModule, [typeof i1.FoehnInputTextComponent, typeof i2.FoehnInputNumberComponent, typeof i3.FoehnInputEmailComponent, typeof i4.FoehnInputHiddenComponent, typeof i5.FoehnInputPasswordComponent, typeof i6.FoehnInputTextareaComponent, typeof i7.FoehnDateComponent, typeof i8.FoehnTimeComponent, typeof i9.FoehnInputPhoneComponent, typeof i10.FoehnDateTimeComponent], [typeof i11.FoehnIconsModule, typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.FoehnValidationAlertsModule, typeof i15.SdkDictionaryModule, typeof i16.FoehnDatePickerButtonModule, typeof i17.FoehnHelpModalModule], [typeof i1.FoehnInputTextComponent, typeof i2.FoehnInputNumberComponent, typeof i3.FoehnInputEmailComponent, typeof i4.FoehnInputHiddenComponent, typeof i5.FoehnInputPasswordComponent, typeof i6.FoehnInputTextareaComponent, typeof i7.FoehnDateComponent, typeof i8.FoehnTimeComponent, typeof i9.FoehnInputPhoneComponent, typeof i10.FoehnDateTimeComponent]>;
|
|
21
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<FoehnInputModule>;
|
|
22
23
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { FoehnInputComponent } from '../foehn-input/foehn-input.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FoehnDateTimeComponent extends FoehnInputComponent<number[]> implements OnDestroy {
|
|
5
|
+
disableDay: boolean;
|
|
6
|
+
disableMonth: boolean;
|
|
7
|
+
disableYear: boolean;
|
|
8
|
+
minDate: number[];
|
|
9
|
+
maxDate: number[];
|
|
10
|
+
hideDatePickerButton: boolean;
|
|
11
|
+
date: number[];
|
|
12
|
+
time: string;
|
|
13
|
+
private userInputTimeSubject;
|
|
14
|
+
private timeModelChangeSubject;
|
|
15
|
+
private readonly userInputTimeSubscription;
|
|
16
|
+
constructor();
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
updateDateTime(): void;
|
|
19
|
+
handleUserInput(): void;
|
|
20
|
+
timeModelChange(value: string): void;
|
|
21
|
+
handleUserInputTime(value: string): void;
|
|
22
|
+
onModelChange(value: number[]): void;
|
|
23
|
+
getValidValue(): number[] | null | undefined;
|
|
24
|
+
private toNumber;
|
|
25
|
+
private toString;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FoehnDateTimeComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FoehnDateTimeComponent, "foehn-input-date-time", never, { "disableDay": "disableDay"; "disableMonth": "disableMonth"; "disableYear": "disableYear"; "minDate": "minDate"; "maxDate": "maxDate"; "hideDatePickerButton": "hideDatePickerButton"; }, {}, never, ["*"]>;
|
|
28
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export * from './foehn-input/foehn-input-hidden.component';
|
|
|
57
57
|
export * from './foehn-input/foehn-input-phone.component';
|
|
58
58
|
export * from './foehn-input-date/foehn-input-date.component';
|
|
59
59
|
export * from './foehn-input-time/foehn-input-time.component';
|
|
60
|
+
export * from './foehn-input-date-time/foehn-input-date-time.component';
|
|
60
61
|
export * from './foehn-nav13/foehn-input-nav13.module';
|
|
61
62
|
export * from './foehn-nav13/foehn-input-nav13.component';
|
|
62
63
|
export * from './foehn-boolean/foehn-boolean.module';
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"ng-update": {
|
|
37
37
|
"migrations": "./schematics/migration-collection.json"
|
|
38
38
|
},
|
|
39
|
-
"version": "15.
|
|
39
|
+
"version": "15.5.0-beta1",
|
|
40
40
|
"module": "fesm2015/dsivd-prestations-ng.mjs",
|
|
41
41
|
"es2020": "fesm2020/dsivd-prestations-ng.mjs",
|
|
42
42
|
"esm2020": "esm2020/dsivd-prestations-ng.mjs",
|
|
Binary file
|