design-angular-kit 1.2.2 → 1.3.1

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 (39) hide show
  1. package/assets/i18n/en.json +89 -0
  2. package/assets/i18n/it.json +89 -0
  3. package/esm2022/lib/abstracts/abstract-form.component.mjs +19 -6
  4. package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +8 -6
  5. package/esm2022/lib/components/core/video-player/video-player-i18n.model.mjs +2 -0
  6. package/esm2022/lib/components/core/video-player/video-player-i18n.service.mjs +130 -0
  7. package/esm2022/lib/components/core/video-player/video-player.component.mjs +301 -0
  8. package/esm2022/lib/components/core/video-player/video-player.config.mjs +43 -0
  9. package/esm2022/lib/components/core/video-player/video-player.cookie.mjs +25 -0
  10. package/esm2022/lib/components/core/video-player/video-player.model.mjs +3 -0
  11. package/esm2022/lib/components/core/video-player/video-player.module.mjs +16 -0
  12. package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +144 -78
  13. package/esm2022/lib/components/form/form.module.mjs +6 -2
  14. package/esm2022/lib/components/form/input/input.component.mjs +3 -3
  15. package/esm2022/lib/components/form/search/search.component.mjs +112 -0
  16. package/esm2022/lib/components/navigation/navscroll/navscroll-list-item.component.mjs +2 -3
  17. package/esm2022/lib/design-angular-kit.module.mjs +8 -4
  18. package/esm2022/lib/interfaces/form.mjs +1 -1
  19. package/esm2022/lib/validators/it-validators.mjs +6 -1
  20. package/esm2022/public_api.mjs +7 -3
  21. package/fesm2022/design-angular-kit.mjs +785 -95
  22. package/fesm2022/design-angular-kit.mjs.map +1 -1
  23. package/lib/abstracts/abstract-form.component.d.ts +6 -4
  24. package/lib/components/core/carousel/carousel/carousel.component.d.ts +1 -1
  25. package/lib/components/core/video-player/video-player-i18n.model.d.ts +179 -0
  26. package/lib/components/core/video-player/video-player-i18n.service.d.ts +17 -0
  27. package/lib/components/core/video-player/video-player.component.d.ts +46 -0
  28. package/lib/components/core/video-player/video-player.config.d.ts +68 -0
  29. package/lib/components/core/video-player/video-player.cookie.d.ts +6 -0
  30. package/lib/components/core/video-player/video-player.model.d.ts +44 -0
  31. package/lib/components/core/video-player/video-player.module.d.ts +7 -0
  32. package/lib/components/form/autocomplete/autocomplete.component.d.ts +55 -39
  33. package/lib/components/form/form.module.d.ts +13 -12
  34. package/lib/components/form/search/search.component.d.ts +59 -0
  35. package/lib/design-angular-kit.module.d.ts +18 -17
  36. package/lib/interfaces/form.d.ts +3 -3
  37. package/lib/validators/it-validators.d.ts +1 -0
  38. package/package.json +20 -7
  39. package/public_api.d.ts +6 -2
@@ -28,26 +28,27 @@ import * as i24 from "./components/core/tab/tab.module";
28
28
  import * as i25 from "./components/core/table/table.module";
29
29
  import * as i26 from "./components/core/tooltip/tooltip.directive";
30
30
  import * as i27 from "./components/core/timeline/timeline.module";
31
- import * as i28 from "./components/form/form.module";
32
- import * as i29 from "./components/navigation/back-button/back-button.component";
33
- import * as i30 from "./components/navigation/back-to-top/back-to-top.component";
34
- import * as i31 from "./components/navigation/breadcrumbs/breadcrumbs.module";
35
- import * as i32 from "./components/navigation/header/header.component";
36
- import * as i33 from "./components/navigation/navbar/navbar.module";
37
- import * as i34 from "./components/navigation/sidebar/sidebar.component";
38
- import * as i35 from "./components/navigation/megamenu/megamenu.component";
39
- import * as i36 from "./components/navigation/skiplink/skiplink.module";
40
- import * as i37 from "./components/navigation/navscroll/navscroll.component";
41
- import * as i38 from "./components/utils/error-page/error-page.component";
42
- import * as i39 from "./components/utils/icon/icon.component";
43
- import * as i40 from "./components/utils/language-switcher/language-switcher.component";
44
- import * as i41 from "./pipes/date-ago.pipe";
45
- import * as i42 from "./pipes/duration.pipe";
46
- import * as i43 from "./pipes/mark-matching-text.pipe";
31
+ import * as i28 from "./components/core/video-player/video-player.component";
32
+ import * as i29 from "./components/form/form.module";
33
+ import * as i30 from "./components/navigation/back-button/back-button.component";
34
+ import * as i31 from "./components/navigation/back-to-top/back-to-top.component";
35
+ import * as i32 from "./components/navigation/breadcrumbs/breadcrumbs.module";
36
+ import * as i33 from "./components/navigation/header/header.component";
37
+ import * as i34 from "./components/navigation/navbar/navbar.module";
38
+ import * as i35 from "./components/navigation/sidebar/sidebar.component";
39
+ import * as i36 from "./components/navigation/megamenu/megamenu.component";
40
+ import * as i37 from "./components/navigation/skiplink/skiplink.module";
41
+ import * as i38 from "./components/navigation/navscroll/navscroll.component";
42
+ import * as i39 from "./components/utils/error-page/error-page.component";
43
+ import * as i40 from "./components/utils/icon/icon.component";
44
+ import * as i41 from "./components/utils/language-switcher/language-switcher.component";
45
+ import * as i42 from "./pipes/date-ago.pipe";
46
+ import * as i43 from "./pipes/duration.pipe";
47
+ import * as i44 from "./pipes/mark-matching-text.pipe";
47
48
  export declare class DesignAngularKitModule {
48
49
  static forRoot(config?: DesignAngularKitConfig): ModuleWithProviders<DesignAngularKitModule>;
49
50
  static forChild(): ModuleWithProviders<DesignAngularKitModule>;
50
51
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
51
- static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItTimelineModule, typeof i28.ItFormModule, typeof i29.ItBackButtonComponent, typeof i30.ItBackToTopComponent, typeof i31.ItBreadcrumbsModule, typeof i32.ItHeaderComponent, typeof i33.ItNavBarModule, typeof i34.ItSidebarComponent, typeof i35.ItMegamenuComponent, typeof i36.ItSkiplinkModule, typeof i37.ItNavscrollComponent, typeof i38.ItErrorPageComponent, typeof i39.ItIconComponent, typeof i40.ItLanguageSwitcherComponent, typeof i41.ItDateAgoPipe, typeof i42.ItDurationPipe, typeof i43.ItMarkMatchingTextPipe], [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItTimelineModule, typeof i28.ItFormModule, typeof i29.ItBackButtonComponent, typeof i30.ItBackToTopComponent, typeof i31.ItBreadcrumbsModule, typeof i32.ItHeaderComponent, typeof i33.ItNavBarModule, typeof i34.ItSidebarComponent, typeof i35.ItMegamenuComponent, typeof i36.ItSkiplinkModule, typeof i37.ItNavscrollComponent, typeof i38.ItErrorPageComponent, typeof i39.ItIconComponent, typeof i40.ItLanguageSwitcherComponent, typeof i41.ItDateAgoPipe, typeof i42.ItDurationPipe, typeof i43.ItMarkMatchingTextPipe]>;
52
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItTimelineModule, typeof i28.ItVideoPlayerComponent, typeof i29.ItFormModule, typeof i30.ItBackButtonComponent, typeof i31.ItBackToTopComponent, typeof i32.ItBreadcrumbsModule, typeof i33.ItHeaderComponent, typeof i34.ItNavBarModule, typeof i35.ItSidebarComponent, typeof i36.ItMegamenuComponent, typeof i37.ItSkiplinkModule, typeof i38.ItNavscrollComponent, typeof i39.ItErrorPageComponent, typeof i40.ItIconComponent, typeof i41.ItLanguageSwitcherComponent, typeof i42.ItDateAgoPipe, typeof i43.ItDurationPipe, typeof i44.ItMarkMatchingTextPipe], [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItTimelineModule, typeof i28.ItVideoPlayerComponent, typeof i29.ItFormModule, typeof i30.ItBackButtonComponent, typeof i31.ItBackToTopComponent, typeof i32.ItBreadcrumbsModule, typeof i33.ItHeaderComponent, typeof i34.ItNavBarModule, typeof i35.ItSidebarComponent, typeof i36.ItMegamenuComponent, typeof i37.ItSkiplinkModule, typeof i38.ItNavscrollComponent, typeof i39.ItErrorPageComponent, typeof i40.ItIconComponent, typeof i41.ItLanguageSwitcherComponent, typeof i42.ItDateAgoPipe, typeof i43.ItDurationPipe, typeof i44.ItMarkMatchingTextPipe]>;
52
53
  static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
53
54
  }
@@ -46,7 +46,7 @@ export interface UploadFileListItem {
46
46
  /**
47
47
  * Elemento disponibile per l'autocompletamento del it-form-input
48
48
  */
49
- export interface AutocompleteItem<T = any> {
49
+ export interface SearchItem<T = any> {
50
50
  /** Valore voce di autocompletamento */
51
51
  value: string;
52
52
  /** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
@@ -60,8 +60,8 @@ export interface AutocompleteItem<T = any> {
60
60
  /** Opzionale. Link relativo all'elemento */
61
61
  link?: string;
62
62
  /**
63
- * Attribute not used for autocomplete rendering.
64
- * It can be useful to retrieve some extra information when selecting the autocomplete item
63
+ * Attribute not used for Search rendering.
64
+ * It can be useful to retrieve some extra information when selecting the Search item
65
65
  */
66
66
  additionalData?: T;
67
67
  }
@@ -38,6 +38,7 @@ export declare class ItValidators {
38
38
  * Phone number validator
39
39
  */
40
40
  static get tel(): ValidatorFn;
41
+ static includes(possibleValues: string[]): ValidatorFn;
41
42
  /**
42
43
  * URL validator
43
44
  */
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.2.2",
4
+ "version": "1.3.1",
5
5
  "license": "BSD-3-Clause",
6
6
  "keywords": [
7
7
  "angular",
@@ -15,16 +15,29 @@
15
15
  "type": "git",
16
16
  "url": "https://github.com/italia/design-angular-kit.git"
17
17
  },
18
- "author": {
19
- "name": "Antonino Bonanno",
20
- "email": "bonanno@net-serv.it",
21
- "url": "https://github.com/AntoninoBonanno"
22
- },
18
+ "author": "Presidenza del Consiglio dei Ministri",
23
19
  "contributors": [
24
20
  {
25
21
  "name": "Net Service Srl",
26
22
  "email": "areatecnica@net-serv.it",
27
23
  "url": "https://www.net-serv.it/"
24
+ },
25
+ {
26
+ "name": "Antonino Bonanno",
27
+ "email": "bonanno@net-serv.it",
28
+ "url": "https://github.com/AntoninoBonanno"
29
+ },
30
+ {
31
+ "name": "Alessio Napolitano",
32
+ "url": "https://github.com/alenap93"
33
+ },
34
+ {
35
+ "name": "Cristian Borelli",
36
+ "url": "https://github.com/cri99"
37
+ },
38
+ {
39
+ "name": "Design Angular Kit community",
40
+ "url": "https://github.com/italia/design-angular-kit/graphs/contributors"
28
41
  }
29
42
  ],
30
43
  "schematics": "./schematics/collection.json",
@@ -42,7 +55,7 @@
42
55
  "@angular/router": "^18.0.0",
43
56
  "@ngx-translate/core": "^15.0.0",
44
57
  "@ngx-translate/http-loader": "^8.0.0",
45
- "bootstrap-italia": "^2.13.4"
58
+ "bootstrap-italia": "^2.14.0"
46
59
  },
47
60
  "sideEffects": false,
48
61
  "module": "fesm2022/design-angular-kit.mjs",
package/public_api.d.ts CHANGED
@@ -47,11 +47,15 @@ export * from './lib/components/core/table/table.module';
47
47
  export * from './lib/components/core/timeline/timeline-item/timeline-item.component';
48
48
  export * from './lib/components/core/timeline/timeline.component';
49
49
  export * from './lib/components/core/timeline/timeline.module';
50
+ export * from './lib/components/core/video-player/video-player.component';
51
+ export * from './lib/components/core/video-player/video-player.model';
52
+ export * from './lib/components/core/video-player/video-player.module';
50
53
  export * from './lib/components/core/tooltip/tooltip.directive';
51
- export * from './lib/components/form/autocomplete/autocomplete.component';
54
+ export * from './lib/components/form/search/search.component';
52
55
  export * from './lib/components/form/checkbox/checkbox.component';
53
56
  export * from './lib/components/form/form.module';
54
57
  export * from './lib/components/form/input/input.component';
58
+ export * from './lib/components/form/autocomplete/autocomplete.component';
55
59
  export * from './lib/components/form/password-input/password-input.component';
56
60
  export * from './lib/components/form/radio-button/radio-button.component';
57
61
  export * from './lib/components/form/range/range.component';
@@ -75,9 +79,9 @@ export * from './lib/components/navigation/navbar/navbar/navbar.component';
75
79
  export * from './lib/components/navigation/navscroll/navscroll.component';
76
80
  export * from './lib/components/navigation/navscroll/navscroll.model';
77
81
  export * from './lib/components/navigation/sidebar/sidebar.component';
78
- export * from './lib/components/navigation/skiplink/skiplink/skiplink.component';
79
82
  export * from './lib/components/navigation/skiplink/skiplink-item/skiplink-item.component';
80
83
  export * from './lib/components/navigation/skiplink/skiplink.module';
84
+ export * from './lib/components/navigation/skiplink/skiplink/skiplink.component';
81
85
  export * from './lib/components/utils/error-page/error-page.component';
82
86
  export * from './lib/components/utils/icon/icon.component';
83
87
  export * from './lib/components/utils/language-switcher/language-switcher.component';