design-angular-kit 1.0.0-2 → 1.0.0-4

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 (34) hide show
  1. package/README.md +7 -2
  2. package/assets/i18n/en.json +84 -0
  3. package/assets/i18n/it.json +3 -0
  4. package/esm2020/lib/components/core/callout/callout.component.mjs +49 -24
  5. package/esm2020/lib/components/form/input/input.component.mjs +70 -3
  6. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +7 -4
  7. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +6 -4
  8. package/esm2020/lib/components/utils/icon/icon.component.mjs +1 -1
  9. package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +39 -0
  10. package/esm2020/lib/design-angular-kit.module.mjs +23 -8
  11. package/esm2020/lib/interfaces/form.mjs +1 -1
  12. package/esm2020/lib/interfaces/utils.mjs +2 -0
  13. package/esm2020/lib/modules/components.module.mjs +12 -4
  14. package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +36 -0
  15. package/esm2020/lib/validators/it-validators.mjs +13 -10
  16. package/esm2020/public_api.mjs +5 -1
  17. package/fesm2015/design-angular-kit.mjs +263 -84
  18. package/fesm2015/design-angular-kit.mjs.map +1 -1
  19. package/fesm2020/design-angular-kit.mjs +266 -82
  20. package/fesm2020/design-angular-kit.mjs.map +1 -1
  21. package/lib/components/core/callout/callout.component.d.ts +26 -15
  22. package/lib/components/form/input/input.component.d.ts +30 -2
  23. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +1 -1
  24. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +3 -1
  25. package/lib/components/utils/icon/icon.component.d.ts +1 -1
  26. package/lib/components/utils/language-switcher/language-switcher.component.d.ts +23 -0
  27. package/lib/design-angular-kit.module.d.ts +4 -1
  28. package/lib/interfaces/form.d.ts +21 -2
  29. package/lib/interfaces/utils.d.ts +10 -0
  30. package/lib/modules/components.module.d.ts +7 -5
  31. package/lib/pipes/mark-matching-text.pipe.d.ts +10 -0
  32. package/lib/validators/it-validators.d.ts +7 -7
  33. package/package.json +3 -1
  34. package/public_api.d.ts +3 -0
@@ -1,22 +1,30 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
- import { IconName } from "../../../interfaces/icon";
3
1
  import { CalloutAppearance, CalloutColor } from "../../../interfaces/core";
2
+ import { IconName } from '../../../interfaces/icon';
4
3
  import * as i0 from "@angular/core";
5
- export declare class CalloutComponent implements AfterViewInit {
6
- private readonly _renderer;
7
- private readonly _elementRef;
4
+ export declare class CalloutComponent {
8
5
  /**
9
- * Callout title
6
+ * Callout label
10
7
  */
11
- title?: string;
8
+ set label(value: string | undefined);
9
+ get label(): string | undefined;
10
+ private _label;
12
11
  /**
13
- * Custom icon
12
+ * Callout hiddenLabel
14
13
  */
15
- icon?: IconName;
14
+ set hiddenLabel(value: string | undefined);
15
+ get hiddenLabel(): string | undefined;
16
+ private _hiddenLabel;
16
17
  /**
17
18
  * Callout color
19
+ * - <b>success</b>
20
+ * - <b>danger</b>
21
+ * - <b>warning</b>
22
+ * - <b>important</b>
23
+ * - <b>note</b>
18
24
  */
19
- color?: CalloutColor;
25
+ set color(value: CalloutColor | undefined);
26
+ get color(): CalloutColor | undefined;
27
+ private _color;
20
28
  /**
21
29
  * Callout appearance
22
30
  * - <b>default</b>
@@ -24,13 +32,16 @@ export declare class CalloutComponent implements AfterViewInit {
24
32
  * - <b>more</b>: It looks radically different from the other styles available and is suitable for more extensive texts
25
33
  * @default default
26
34
  */
27
- appearance: CalloutAppearance;
35
+ set appearance(value: CalloutAppearance);
36
+ get appearance(): CalloutAppearance;
37
+ private _appearance;
28
38
  /**
29
- * Retrieve the current icon to show
39
+ * Custom icon
30
40
  */
41
+ set icon(value: IconName | undefined);
42
+ get icon(): IconName | undefined;
43
+ private _icon;
31
44
  get iconName(): IconName;
32
- constructor(_renderer: Renderer2, _elementRef: ElementRef);
33
- ngAfterViewInit(): void;
34
45
  static ɵfac: i0.ɵɵFactoryDeclaration<CalloutComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<CalloutComponent, "it-callout", never, { "title": "title"; "icon": "icon"; "color": "color"; "appearance": "appearance"; }, {}, never, ["[bigText]", "*"], false, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalloutComponent, "it-callout", never, { "label": "label"; "hiddenLabel": "hiddenLabel"; "color": "color"; "appearance": "appearance"; "icon": "icon"; }, {}, never, ["[bigText]", "*"], false, never>;
36
47
  }
@@ -1,5 +1,5 @@
1
1
  import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
2
- import { InputControlType } from '../../../interfaces/form';
2
+ import { AutoCompleteItem, InputControlType } from '../../../interfaces/form';
3
3
  import { BooleanInput } from '../../../utils/boolean-input';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -46,6 +46,15 @@ export declare class InputComponent extends AbstractFormComponent<string | numbe
46
46
  * To make the numeric field automatically resize according to the value contained in it. [Used only in type = 'number']
47
47
  */
48
48
  adaptive?: BooleanInput;
49
+ /**
50
+ * Opzionale.
51
+ * Disponibile solo se il type è search.
52
+ * Indica la lista di elementi ricercabili su cui basare il sistema di autocompletamento della input
53
+ */
54
+ set autoCompleteData(value: Array<AutoCompleteItem>);
55
+ get autoCompleteData(): Array<AutoCompleteItem>;
56
+ private _autoCompleteData;
57
+ showAutocompletion: boolean;
49
58
  get isActiveLabel(): boolean;
50
59
  /**
51
60
  * Check is readonly field
@@ -55,12 +64,31 @@ export declare class InputComponent extends AbstractFormComponent<string | numbe
55
64
  * Return the invalid message string from TranslateService
56
65
  */
57
66
  get invalidMessage(): Observable<string>;
67
+ /** Observable da cui vengono emessi i risultati dell'auto completamento */
68
+ autocompleteResults$: Observable<{
69
+ searchedValue: string;
70
+ relatedEntries: Array<AutoCompleteItem & {
71
+ original: string;
72
+ lowercase: string;
73
+ }>;
74
+ }>;
58
75
  ngOnInit(): void;
59
76
  /**
60
77
  * Increment or decrease the input number value of step
61
78
  * @param decrease true to decrease value
62
79
  */
63
80
  incrementNumber(decrease?: boolean): void;
81
+ getAutocompleteResults$(): Observable<{
82
+ searchedValue: string;
83
+ relatedEntries: Array<AutoCompleteItem & {
84
+ original: string;
85
+ lowercase: string;
86
+ }>;
87
+ }>;
88
+ isAutocompletable(): boolean;
89
+ onEntryClick(entry: AutoCompleteItem, event: Event): void;
90
+ autocompleteItemTrackByValueFn(index: number, item: AutoCompleteItem): string;
91
+ onKeyDown(): void;
64
92
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "it-input[id]", never, { "type": "type"; "placeholder": "placeholder"; "description": "description"; "readonly": "readonly"; "max": "max"; "min": "min"; "step": "step"; "currency": "currency"; "percentage": "percentage"; "adaptive": "adaptive"; }, {}, never, ["[prepend]", "[prependText]", "[append]", "[appendText]", "[error]"], false, never>;
93
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "it-input[id]", never, { "type": "type"; "placeholder": "placeholder"; "description": "description"; "readonly": "readonly"; "max": "max"; "min": "min"; "step": "step"; "currency": "currency"; "percentage": "percentage"; "adaptive": "adaptive"; "autoCompleteData": "autoCompleteData"; }, {}, never, ["[prepend]", "[prependText]", "[append]", "[appendText]", "[error]"], false, never>;
66
94
  }
@@ -37,7 +37,7 @@ export declare class UploadDragDropComponent extends AbstractComponent {
37
37
  start(file: File): void;
38
38
  /**
39
39
  * Percentage of upload
40
- * @param value the percentage
40
+ * @param value the percentage [0 - 100]
41
41
  */
42
42
  progress(value: number): void;
43
43
  /**
@@ -9,7 +9,9 @@ export declare class UploadFileListComponent extends AbstractComponent implement
9
9
  */
10
10
  fileList: Array<UploadFileListItem>;
11
11
  /**
12
- * The accepted file type to upload
12
+ * The accepted file type to upload <br>
13
+ * Possible values: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME Types</a> separated by comma
14
+ * @example application/pdf,image/png
13
15
  * @default *
14
16
  */
15
17
  accept: string;
@@ -6,7 +6,7 @@ export declare class IconComponent implements AfterViewInit {
6
6
  protected readonly _renderer: Renderer2;
7
7
  protected readonly _elementRef: ElementRef;
8
8
  /**
9
- * The icon size
9
+ * The icon name
10
10
  */
11
11
  name: IconName;
12
12
  /**
@@ -0,0 +1,23 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { AvailableLanguage } from '../../../interfaces/utils';
5
+ import * as i0 from "@angular/core";
6
+ export declare class LanguageSwitcherComponent implements OnInit {
7
+ private readonly translateService;
8
+ /**
9
+ * The available languages
10
+ * @default The languages available through TranslateService (ngx-translate)
11
+ */
12
+ availableLanguages?: Array<AvailableLanguage>;
13
+ currentLang$: Observable<AvailableLanguage | undefined>;
14
+ constructor(translateService: TranslateService);
15
+ ngOnInit(): void;
16
+ /**
17
+ * Change the current language
18
+ * @param lang the language code
19
+ */
20
+ changeLanguage(lang: string): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSwitcherComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSwitcherComponent, "it-language-switcher", never, { "availableLanguages": "availableLanguages"; }, {}, never, never, false, never>;
23
+ }
@@ -1,9 +1,12 @@
1
+ import { TranslateService } from '@ngx-translate/core';
1
2
  import * as i0 from "@angular/core";
2
3
  import * as i1 from "./modules/components.module";
3
4
  import * as i2 from "@angular/common/http";
4
5
  import * as i3 from "@ngx-translate/core";
5
6
  export declare class DesignAngularKitModule {
7
+ private readonly translateService;
8
+ constructor(translateService: TranslateService);
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ComponentsModule, typeof i2.HttpClientModule, typeof i3.TranslateModule], [typeof i1.ComponentsModule]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ComponentsModule, typeof i2.HttpClientModule, typeof i3.TranslateModule], [typeof i1.ComponentsModule, typeof i3.TranslateModule]>;
8
11
  static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
9
12
  }
@@ -1,4 +1,5 @@
1
- export declare type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url';
1
+ import { IconName } from "./icon";
2
+ export declare type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url' | 'search';
2
3
  export interface SelectControlOption {
3
4
  value: any;
4
5
  text?: string;
@@ -35,9 +36,27 @@ export interface UploadFileListItem {
35
36
  /**
36
37
  * Set the status of the item as 'error'
37
38
  */
38
- error?: string;
39
+ error?: boolean;
39
40
  /**
40
41
  * Add tooltip on file item name
42
+ * @example It can be used to show the error message or additional information about the file
41
43
  */
42
44
  tooltip?: string;
43
45
  }
46
+ /**
47
+ * Elemento disponibile per l'autocompletamento del it-form-input
48
+ */
49
+ export interface AutoCompleteItem {
50
+ /** Valore voce di autocompletamento */
51
+ value: string;
52
+ /** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
53
+ avatarSrcPath?: string;
54
+ /** Opzionale. Testo in alternativa dell'avatar per accessibilità */
55
+ avatarAltText?: string;
56
+ /** Opzionale. Icona posizionata a sinistra della voce di autocompletamento */
57
+ icon?: IconName;
58
+ /** Opzionale. Label posizionata a destra della voce di autocompletamento */
59
+ label?: string;
60
+ /** Opzionale. Link relativo all'elemento */
61
+ link?: string;
62
+ }
@@ -0,0 +1,10 @@
1
+ export interface AvailableLanguage {
2
+ /**
3
+ * The language code
4
+ */
5
+ code: string;
6
+ /**
7
+ * Label to show
8
+ */
9
+ label: string;
10
+ }
@@ -46,12 +46,14 @@ import * as i44 from "../components/navigation/breadcrumbs/breadcrumb-item/bread
46
46
  import * as i45 from "../components/navigation/header/header.component";
47
47
  import * as i46 from "../components/utils/icon/icon.component";
48
48
  import * as i47 from "../components/utils/not-found-page/not-found-page.component";
49
- import * as i48 from "@angular/common";
50
- import * as i49 from "@ngx-translate/core";
51
- import * as i50 from "@angular/forms";
52
- import * as i51 from "@angular/router";
49
+ import * as i48 from "../components/utils/language-switcher/language-switcher.component";
50
+ import * as i49 from "../pipes/mark-matching-text.pipe";
51
+ import * as i50 from "@angular/common";
52
+ import * as i51 from "@ngx-translate/core";
53
+ import * as i52 from "@angular/forms";
54
+ import * as i53 from "@angular/router";
53
55
  export declare class ComponentsModule {
54
56
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
55
- static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractComponent, typeof i2.AbstractFormComponent, typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.SpinnerComponent, typeof i29.TabContainerComponent, typeof i30.TabItemComponent, typeof i31.TableComponent, typeof i32.TooltipDirective, typeof i33.CheckboxComponent, typeof i34.InputComponent, typeof i35.PasswordInputComponent, typeof i36.RadioButtonComponent, typeof i37.SelectComponent, typeof i38.TextareaComponent, typeof i39.UploadDragDropComponent, typeof i40.UploadFileListComponent, typeof i41.BackButtonComponent, typeof i42.BackToTopComponent, typeof i43.BreadcrumbComponent, typeof i44.BreadcrumbItemComponent, typeof i45.HeaderComponent, typeof i46.IconComponent, typeof i47.NotFoundPageComponent], [typeof i48.CommonModule, typeof i49.TranslateModule, typeof i50.ReactiveFormsModule, typeof i48.NgIf, typeof i48.NgForOf, typeof i51.RouterLink], [typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.SpinnerComponent, typeof i29.TabContainerComponent, typeof i30.TabItemComponent, typeof i31.TableComponent, typeof i32.TooltipDirective, typeof i33.CheckboxComponent, typeof i34.InputComponent, typeof i35.PasswordInputComponent, typeof i36.RadioButtonComponent, typeof i37.SelectComponent, typeof i38.TextareaComponent, typeof i39.UploadDragDropComponent, typeof i40.UploadFileListComponent, typeof i41.BackButtonComponent, typeof i42.BackToTopComponent, typeof i43.BreadcrumbComponent, typeof i44.BreadcrumbItemComponent, typeof i45.HeaderComponent, typeof i46.IconComponent, typeof i47.NotFoundPageComponent]>;
57
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractComponent, typeof i2.AbstractFormComponent, typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.SpinnerComponent, typeof i29.TabContainerComponent, typeof i30.TabItemComponent, typeof i31.TableComponent, typeof i32.TooltipDirective, typeof i33.CheckboxComponent, typeof i34.InputComponent, typeof i35.PasswordInputComponent, typeof i36.RadioButtonComponent, typeof i37.SelectComponent, typeof i38.TextareaComponent, typeof i39.UploadDragDropComponent, typeof i40.UploadFileListComponent, typeof i41.BackButtonComponent, typeof i42.BackToTopComponent, typeof i43.BreadcrumbComponent, typeof i44.BreadcrumbItemComponent, typeof i45.HeaderComponent, typeof i46.IconComponent, typeof i47.NotFoundPageComponent, typeof i48.LanguageSwitcherComponent, typeof i49.MarkMatchingTextPipe], [typeof i50.CommonModule, typeof i51.TranslateModule, typeof i52.ReactiveFormsModule, typeof i50.NgIf, typeof i50.NgForOf, typeof i53.RouterLink], [typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.SpinnerComponent, typeof i29.TabContainerComponent, typeof i30.TabItemComponent, typeof i31.TableComponent, typeof i32.TooltipDirective, typeof i33.CheckboxComponent, typeof i34.InputComponent, typeof i35.PasswordInputComponent, typeof i36.RadioButtonComponent, typeof i37.SelectComponent, typeof i38.TextareaComponent, typeof i39.UploadDragDropComponent, typeof i40.UploadFileListComponent, typeof i41.BackButtonComponent, typeof i42.BackToTopComponent, typeof i43.BreadcrumbComponent, typeof i44.BreadcrumbItemComponent, typeof i45.HeaderComponent, typeof i46.IconComponent, typeof i47.NotFoundPageComponent, typeof i48.LanguageSwitcherComponent, typeof i49.MarkMatchingTextPipe]>;
56
58
  static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
57
59
  }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { DomSanitizer } from "@angular/platform-browser";
3
+ import * as i0 from "@angular/core";
4
+ export declare class MarkMatchingTextPipe implements PipeTransform {
5
+ private domSanitizer;
6
+ constructor(domSanitizer: DomSanitizer);
7
+ transform(allString: string, searchString: string): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkMatchingTextPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<MarkMatchingTextPipe, "markMatchingText", false>;
10
+ }
@@ -30,29 +30,29 @@ export declare class ItValidators {
30
30
  /**
31
31
  * Email validator
32
32
  */
33
- static email(): Array<ValidatorFn>;
33
+ static get email(): ValidatorFn;
34
34
  /**
35
35
  * Phone number validator
36
36
  */
37
- static tel(): ValidatorFn;
37
+ static get tel(): ValidatorFn;
38
38
  /**
39
39
  * URL validator
40
40
  */
41
- static url(): ValidatorFn;
41
+ static get url(): ValidatorFn;
42
42
  /**
43
43
  * Italian Tax Code validator
44
44
  */
45
- static taxCode(): ValidatorFn;
45
+ static get taxCode(): ValidatorFn;
46
46
  /**
47
47
  * VAT Number validator
48
48
  */
49
- static vatNumber(): ValidatorFn;
49
+ static get vatNumber(): ValidatorFn;
50
50
  /**
51
51
  * Italian Postal Code validator (CAP)
52
52
  */
53
- static cap(): ValidatorFn;
53
+ static get cap(): ValidatorFn;
54
54
  /**
55
55
  * Check if value is a valid RegExp
56
56
  */
57
- static regExp(): ValidatorFn;
57
+ static get regExp(): ValidatorFn;
58
58
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "design-angular-kit",
3
3
  "description": "Un toolkit Angular conforme alle linee guida di design per i servizi web della PA",
4
- "version": "1.0.0-2",
4
+ "version": "1.0.0-4",
5
5
  "license": "BSD-3-Clause",
6
6
  "keywords": [
7
7
  "angular",
@@ -31,8 +31,10 @@
31
31
  "tslib": "^2.4.1"
32
32
  },
33
33
  "peerDependencies": {
34
+ "@angular/animations": "^15.0.4",
34
35
  "@angular/common": "^15.0.4",
35
36
  "@angular/core": "^15.0.4",
37
+ "@angular/platform-browser": "^15.0.4",
36
38
  "@ngx-translate/core": "^14.0.0",
37
39
  "@ngx-translate/http-loader": "^7.0.0",
38
40
  "bootstrap-italia": "^2.2.0"
package/public_api.d.ts CHANGED
@@ -44,11 +44,14 @@ export * from './lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.com
44
44
  export * from './lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component';
45
45
  export * from './lib/components/navigation/header/header.component';
46
46
  export * from './lib/components/utils/icon/icon.component';
47
+ export * from './lib/components/utils/language-switcher/language-switcher.component';
47
48
  export * from './lib/components/utils/not-found-page/not-found-page.component';
48
49
  export * from './lib/services/notifications/notifications.service';
50
+ export * from './lib/pipes/mark-matching-text.pipe';
49
51
  export * from './lib/interfaces/core';
50
52
  export * from './lib/interfaces/form';
51
53
  export * from './lib/interfaces/icon';
54
+ export * from './lib/interfaces/utils';
52
55
  export * from './lib/utils/regex';
53
56
  export * from './lib/utils/file-utils';
54
57
  export * from './lib/validators/it-validators';