@dsivd/prestations-ng 14.5.21 → 14.5.23-beta2

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 (27) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/bundles/dsivd-prestations-ng.umd.js +463 -103
  3. package/bundles/dsivd-prestations-ng.umd.js.map +1 -1
  4. package/dsivd-prestations-ng-v14.5.23-beta2.tgz +0 -0
  5. package/esm2015/foehn-checkables/foehn-checkable-group.component.js +11 -3
  6. package/esm2015/foehn-date-picker/foehn-date-picker.component.js +2 -2
  7. package/esm2015/foehn-input/foehn-input-email.component.js +2 -2
  8. package/esm2015/foehn-input/foehn-input-hidden.component.js +2 -2
  9. package/esm2015/foehn-input/foehn-input-number.component.js +2 -2
  10. package/esm2015/foehn-input/foehn-input-password.component.js +2 -2
  11. package/esm2015/foehn-input/foehn-input-phone.component.js +2 -2
  12. package/esm2015/foehn-input/foehn-input-text.component.js +2 -2
  13. package/esm2015/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.js +287 -0
  14. package/esm2015/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.js +42 -0
  15. package/esm2015/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.js +2 -2
  16. package/esm2015/index.js +4 -1
  17. package/esm2015/sdk-dictionary/default-dictionary.js +12 -2
  18. package/esm2015/sdk-recaptcha/grecaptcha/grecaptcha.component.js +2 -2
  19. package/fesm2015/dsivd-prestations-ng.js +427 -101
  20. package/fesm2015/dsivd-prestations-ng.js.map +1 -1
  21. package/foehn-checkables/foehn-checkable-group.component.d.ts +3 -2
  22. package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.d.ts +47 -0
  23. package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.d.ts +13 -0
  24. package/index.d.ts +2 -0
  25. package/package.json +1 -1
  26. package/sdk-recaptcha/grecaptcha/grecaptcha.component.d.ts +1 -1
  27. package/dsivd-prestations-ng-v14.5.21.tgz +0 -0
@@ -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
  set defaultElementValue(val: string);
30
31
  get defaultElementValue(): string;
31
32
  groupedElements: FormSelectOptionGroup[];
@@ -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,47 @@
1
+ import { NgZone } 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 {
6
+ private dictionaryService;
7
+ private autocompleteComponent;
8
+ private alertMessageContainer;
9
+ private closeButtonsElemRef;
10
+ private selectedElemRef;
11
+ set defaultElementValues(items: unknown[]);
12
+ get defaultElementValues(): unknown[];
13
+ set defaultElementValue(item: string);
14
+ autocompleteInputValue: string;
15
+ showEmptyListMessage: boolean;
16
+ private defaultElementValues_;
17
+ private keyboardNavigationAllowed;
18
+ private currentFocusedElem;
19
+ constructor(ngZone: NgZone, dictionaryService: SdkDictionaryService);
20
+ private handleKeyboardDownEvent;
21
+ updateMultiselectAutocomplete(): void;
22
+ handleUserInput(): void;
23
+ addItem(item: unknown): void;
24
+ removeItem(item: unknown): void;
25
+ trackByFn(index: number): number;
26
+ getLabel(value: any): string;
27
+ getSelectedElementTabIndex(index: number): number;
28
+ isSelectedItemFocusable(index: number): boolean;
29
+ canBeDeleted(index: number): boolean;
30
+ onSelectedItemsFocusin(): void;
31
+ onSelectedItemsFocusout(): void;
32
+ onAutocompleteElementsLoaded(elements: []): void;
33
+ getDeleteButtonAriaLabel(element: unknown): string;
34
+ getSelectedListAriaLabel(): string;
35
+ private findElementByModelItem;
36
+ private getValidValue;
37
+ private getFirstDeleteButtonToFocus;
38
+ private navigateSelectedList;
39
+ private getDefaultSelectedElements;
40
+ private onKeyDownSelectedInner;
41
+ private filterAutocompleteElements;
42
+ private manageSuggestionListAndFocusAfterAddingAnItem;
43
+ private manageSuggestionListAndFocusAfterRemovingAnItem;
44
+ private showAlertMessageAndHideAutocomplete;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<FoehnMultiselectAutocompleteComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnMultiselectAutocompleteComponent, "foehn-multiselect-autocomplete", never, { "defaultElementValues": "defaultElementValues"; "defaultElementValue": "defaultElementValue"; }, {}, never, never>;
47
+ }
@@ -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';
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "ng-update": {
37
37
  "migrations": "./schematics/migration-collection.json"
38
38
  },
39
- "version": "14.5.21",
39
+ "version": "14.5.23-beta2",
40
40
  "main": "bundles/dsivd-prestations-ng.umd.js",
41
41
  "module": "fesm2015/dsivd-prestations-ng.js",
42
42
  "es2015": "fesm2015/dsivd-prestations-ng.js",
@@ -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 {
Binary file