@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.
Files changed (38) hide show
  1. package/CHANGELOG.md +64 -3
  2. package/dsivd-prestations-ng-v15.0.0-beta6.tgz +0 -0
  3. package/esm2020/foehn-address/address.type.mjs +1 -1
  4. package/esm2020/foehn-address/foehn-input-address.component.mjs +2 -2
  5. package/esm2020/foehn-checkables/foehn-checkable-group.component.mjs +12 -3
  6. package/esm2020/foehn-date-picker/foehn-date-picker.component.mjs +3 -3
  7. package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.mjs +254 -0
  8. package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.mjs +42 -0
  9. package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.component.mjs +2 -4
  10. package/esm2020/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.mjs +3 -3
  11. package/esm2020/index.mjs +11 -1
  12. package/esm2020/refinf/model/address-type-light.mjs +3 -0
  13. package/esm2020/refinf/model/canton.mjs +3 -0
  14. package/esm2020/refinf/model/district.mjs +3 -0
  15. package/esm2020/refinf/model/municipality.mjs +3 -0
  16. package/esm2020/refinf/model/place-of-origin.mjs +3 -0
  17. package/esm2020/refinf/model/postal-locality.mjs +3 -0
  18. package/esm2020/sdk-dictionary/default-dictionary.mjs +11 -3
  19. package/esm2020/sdk-recaptcha/grecaptcha/grecaptcha.component.mjs +2 -2
  20. package/fesm2015/dsivd-prestations-ng.mjs +410 -102
  21. package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
  22. package/fesm2020/dsivd-prestations-ng.mjs +410 -102
  23. package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
  24. package/foehn-address/address.type.d.ts +3 -3
  25. package/foehn-address/foehn-input-address.component.d.ts +2 -2
  26. package/foehn-checkables/foehn-checkable-group.component.d.ts +3 -2
  27. package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.d.ts +45 -0
  28. package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.d.ts +13 -0
  29. package/index.d.ts +8 -0
  30. package/package.json +1 -1
  31. package/refinf/model/address-type-light.d.ts +5 -0
  32. package/refinf/model/canton.d.ts +4 -0
  33. package/refinf/model/district.d.ts +7 -0
  34. package/refinf/model/municipality.d.ts +8 -0
  35. package/refinf/model/place-of-origin.d.ts +9 -0
  36. package/refinf/model/postal-locality.d.ts +11 -0
  37. package/sdk-recaptcha/grecaptcha/grecaptcha.component.d.ts +1 -1
  38. package/dsivd-prestations-ng-v15.0.0-beta3.tgz +0 -0
@@ -1,12 +1,12 @@
1
1
  export declare class Street {
2
- estrid?: number;
2
+ estrid?: string;
3
3
  longName: string;
4
4
  }
5
5
  export declare class Locality {
6
- postalLocalityHistoryId?: number;
6
+ postalLocalityHistoryId?: string;
7
7
  zipCode?: string;
8
8
  longName?: string;
9
- zipCodeId?: number;
9
+ zipCodeId?: string;
10
10
  }
11
11
  export declare class Country {
12
12
  iso2Id: string;
@@ -53,8 +53,8 @@ export declare class FoehnInputAddressComponent extends FoehnInputComponent<Addr
53
53
  constructor(httpClient: HttpClient, ngZone: NgZone);
54
54
  identity: <T>(n: T) => T;
55
55
  countryIdentity: (country: Country) => string;
56
- localityIdentity: (loc: Locality) => number;
57
- streetIdentity: (street: Street) => number;
56
+ localityIdentity: (loc: Locality) => string;
57
+ streetIdentity: (street: Street) => string;
58
58
  streetGenerator: (longName: string) => Street;
59
59
  ngOnInit(): void;
60
60
  updateAddress(): void;
@@ -1,4 +1,4 @@
1
- import { NgZone, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { NgZone, OnChanges, OnInit, SimpleChanges, EventEmitter } from '@angular/core';
2
2
  import { FoehnInputComponent } from '../foehn-input/foehn-input.component';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { Observable, Subject } from 'rxjs';
@@ -26,6 +26,7 @@ export declare abstract class FoehnCheckableGroupComponent extends FoehnInputCom
26
26
  elementDisabled: any;
27
27
  allElementDisabled: boolean;
28
28
  elementGroup: any;
29
+ elementsLoaded: EventEmitter<any>;
29
30
  groupedElements: FormSelectOptionGroup[];
30
31
  httpClient: HttpClient;
31
32
  protected multiple: boolean;
@@ -59,5 +60,5 @@ export declare abstract class FoehnCheckableGroupComponent extends FoehnInputCom
59
60
  private onElementsChange;
60
61
  private onElementsUrlChange;
61
62
  static ɵfac: i0.ɵɵFactoryDeclaration<FoehnCheckableGroupComponent, never>;
62
- static ɵdir: i0.ɵɵDirectiveDeclaration<FoehnCheckableGroupComponent, never, never, { "elements": "elements"; "elementsUrl": "elementsUrl"; "elementValue": "elementValue"; "elementLabel": "elementLabel"; "elementValueIdentity": "elementValueIdentity"; "elementDisabled": "elementDisabled"; "allElementDisabled": "allElementDisabled"; "elementGroup": "elementGroup"; "defaultElementValue": "defaultElementValue"; }, {}, never>;
63
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FoehnCheckableGroupComponent, never, never, { "elements": "elements"; "elementsUrl": "elementsUrl"; "elementValue": "elementValue"; "elementLabel": "elementLabel"; "elementValueIdentity": "elementValueIdentity"; "elementDisabled": "elementDisabled"; "allElementDisabled": "allElementDisabled"; "elementGroup": "elementGroup"; "defaultElementValue": "defaultElementValue"; }, { "elementsLoaded": "elementsLoaded"; }, never>;
63
64
  }
@@ -0,0 +1,45 @@
1
+ import { ElementRef, NgZone, OnInit, QueryList } from '@angular/core';
2
+ import { FoehnAutocompleteComponent } from '../foehn-autocomplete/foehn-autocomplete.component';
3
+ import { SdkDictionaryService } from '../sdk-dictionary/sdk-dictionary.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteComponent implements OnInit {
6
+ private dictionaryService;
7
+ hostName: string;
8
+ autocompleteComponent: FoehnAutocompleteComponent;
9
+ alertMessageContainer: ElementRef;
10
+ selectedElemRef: QueryList<ElementRef>;
11
+ defaultElemRef: QueryList<ElementRef>;
12
+ defaultDeleteFocusArea: ElementRef;
13
+ autocompleteInputValue: string;
14
+ showEmptyListMessage: boolean;
15
+ srAnnouncements: string;
16
+ private defaultElementValues_;
17
+ private srAnnouncementClearTimer;
18
+ private readonly SR_ANNOUNCEMENT_CLEAR_TIMEOUT_INTERVAL_MS;
19
+ constructor(ngZone: NgZone, dictionaryService: SdkDictionaryService);
20
+ get defaultElementValues(): unknown[];
21
+ set defaultElementValues(items: unknown[]);
22
+ set defaultElementValue(item: string);
23
+ ngOnInit(): void;
24
+ hasErrorsToDisplay(): boolean;
25
+ updateMultiselectAutocomplete(): void;
26
+ handleUserInput(): void;
27
+ addItem(item: unknown): void;
28
+ removeItem(item: unknown, index: number): void;
29
+ trackByFn(index: number): number;
30
+ getLabel(value: any): string;
31
+ canBeDeleted(index: number): boolean;
32
+ onAutocompleteElementsLoaded(elements: []): void;
33
+ getDeleteButtonAriaLabel(element: unknown): string;
34
+ hasDefaultDeleteFocusArea(): boolean;
35
+ private findElementByModelItem;
36
+ private getValidValue;
37
+ private focusNextAreaAfterDelete;
38
+ private filterAutocompleteElements;
39
+ private manageSuggestionListAndFocusAfterAddingAnItem;
40
+ private manageSuggestionListAndFocusAfterRemovingAnItem;
41
+ private showAlertMessageAndHideAutocomplete;
42
+ private manageScreenReaderAnnouncement;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<FoehnMultiselectAutocompleteComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnMultiselectAutocompleteComponent, "foehn-multiselect-autocomplete", never, { "defaultElementValues": "defaultElementValues"; "defaultElementValue": "defaultElementValue"; }, {}, never, never>;
45
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./foehn-multiselect-autocomplete.component";
3
+ import * as i2 from "../foehn-autocomplete/foehn-autocomplete.module";
4
+ import * as i3 from "../sdk-dictionary/sdk-dictionary.module";
5
+ import * as i4 from "../foehn-validation-alerts/foehn-validation-alerts.module";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "../foehn-icons/foehn-icons.module";
8
+ import * as i7 from "@angular/forms";
9
+ export declare class FoehnMultiselectAutocompleteModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FoehnMultiselectAutocompleteModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FoehnMultiselectAutocompleteModule, [typeof i1.FoehnMultiselectAutocompleteComponent], [typeof i2.FoehnAutocompleteModule, typeof i3.SdkDictionaryModule, typeof i4.FoehnValidationAlertsModule, typeof i5.CommonModule, typeof i6.FoehnIconsModule, typeof i7.FormsModule], [typeof i1.FoehnMultiselectAutocompleteComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<FoehnMultiselectAutocompleteModule>;
13
+ }
package/index.d.ts CHANGED
@@ -42,6 +42,8 @@ export * from './foehn-checkables/foehn-select.component';
42
42
  export * from './foehn-checkables/form-select-option';
43
43
  export * from './foehn-autocomplete/foehn-autocomplete.component';
44
44
  export * from './foehn-autocomplete/foehn-autocomplete.module';
45
+ export * from './foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component';
46
+ export * from './foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module';
45
47
  export * from './foehn-input/foehn-input.module';
46
48
  export * from './foehn-input/foehn-input.component';
47
49
  export * from './foehn-input/foehn-input-string.component';
@@ -189,3 +191,9 @@ export * from './foehn-date-picker-button/foehn-date-picker-button.component';
189
191
  export * from './foehn-decision-electronique/foehn-decision-electronique.module';
190
192
  export * from './foehn-decision-electronique/foehn-decision-electronique.component';
191
193
  export * from './helpers/object.helper';
194
+ export * from './refinf/model/address-type-light';
195
+ export * from './refinf/model/canton';
196
+ export * from './refinf/model/district';
197
+ export * from './refinf/model/municipality';
198
+ export * from './refinf/model/place-of-origin';
199
+ export * from './refinf/model/postal-locality';
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "ng-update": {
37
37
  "migrations": "./schematics/migration-collection.json"
38
38
  },
39
- "version": "15.0.0-beta3",
39
+ "version": "15.0.0-beta6",
40
40
  "module": "fesm2015/dsivd-prestations-ng.mjs",
41
41
  "es2020": "fesm2020/dsivd-prestations-ng.mjs",
42
42
  "esm2020": "esm2020/dsivd-prestations-ng.mjs",
@@ -0,0 +1,5 @@
1
+ export declare class AddressTypeLight {
2
+ id: string;
3
+ egid: string;
4
+ number: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare class Canton {
2
+ code: string;
3
+ label: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ export declare class District {
2
+ districtHistId: string;
3
+ cantonId: string;
4
+ districtId: string;
5
+ districtLongName: string;
6
+ districtShortName: string;
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare class Municipality {
2
+ id: number;
3
+ name: string;
4
+ canton: string;
5
+ districtHistId: string;
6
+ historyMunicipalityId: string;
7
+ municipalityEntryMode: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ export declare class PlaceOfOrigin {
2
+ canton: string;
3
+ historyMunicipalityId: number;
4
+ placeOfOriginId: string;
5
+ name: string;
6
+ successorId: string;
7
+ validFrom: number[];
8
+ validTo: number[];
9
+ }
@@ -0,0 +1,11 @@
1
+ import { Canton } from './canton';
2
+ export declare class PostalLocality {
3
+ id: string;
4
+ zipCode: string;
5
+ zipCodeAddOn: string;
6
+ zipCodeId: number;
7
+ name: string;
8
+ municipalityId: number;
9
+ canton: Canton;
10
+ zipCodeType: string;
11
+ }
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare const RECAPTCHA_URL = "https://www.google.com/recaptcha/api.js?onload=reCaptchaLoad&render=explicit";
3
+ export declare const RECAPTCHA_URL = "https://www.recaptcha.net/recaptcha/api.js?onload=reCaptchaLoad&render=explicit";
4
4
  export declare const SCRIPT_ID = "prestations-ng-captcha-script";
5
5
  declare global {
6
6
  interface Window {