design-angular-kit 1.1.2 → 1.1.3

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 (29) hide show
  1. package/assets/i18n/en.json +12 -0
  2. package/assets/i18n/it.json +12 -0
  3. package/esm2022/lib/components/core/button/button.directive.mjs +3 -19
  4. package/esm2022/lib/components/core/timeline/timeline-item/timeline-item.component.mjs +17 -3
  5. package/esm2022/lib/components/core/timeline/timeline.component.mjs +1 -1
  6. package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +3 -3
  7. package/esm2022/lib/components/form/rating/rating.component.mjs +3 -3
  8. package/esm2022/lib/components/form/transfer/transfer-list/transfer-list.component.mjs +5 -3
  9. package/esm2022/lib/components/form/transfer/transfer.component.mjs +5 -3
  10. package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +14 -4
  11. package/esm2022/lib/components/navigation/header/header.component.mjs +3 -3
  12. package/esm2022/lib/components/navigation/skiplink/skiplink/skiplink.component.mjs +27 -0
  13. package/esm2022/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.mjs +26 -0
  14. package/esm2022/lib/components/navigation/skiplink/skiplink.module.mjs +18 -0
  15. package/esm2022/lib/design-angular-kit.module.mjs +9 -3
  16. package/esm2022/public_api.mjs +4 -1
  17. package/fesm2022/design-angular-kit.mjs +106 -37
  18. package/fesm2022/design-angular-kit.mjs.map +1 -1
  19. package/lib/components/core/button/button.directive.d.ts +0 -3
  20. package/lib/components/core/timeline/timeline-item/timeline-item.component.d.ts +14 -1
  21. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +6 -1
  22. package/lib/components/navigation/skiplink/skiplink/skiplink.component.d.ts +17 -0
  23. package/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.d.ts +24 -0
  24. package/lib/components/navigation/skiplink/skiplink.module.d.ts +8 -0
  25. package/lib/design-angular-kit.module.d.ts +9 -8
  26. package/package.json +1 -1
  27. package/public_api.d.ts +3 -0
  28. package/schematics/collection.json +17 -17
  29. package/schematics/ng-add/schema.json +15 -15
@@ -40,10 +40,7 @@ export declare class ItButtonDirective {
40
40
  * @default undefined
41
41
  */
42
42
  protected icons?: QueryList<ItIconComponent>;
43
- private isFocus;
44
43
  constructor(progressButtonComponent: ItProgressButtonComponent);
45
- protected onFocus(): void;
46
- protected onBlur(): void;
47
44
  protected get hostClasses(): string;
48
45
  static ɵfac: i0.ɵɵFactoryDeclaration<ItButtonDirective, [{ optional: true; host: true; }]>;
49
46
  static ɵdir: i0.ɵɵDirectiveDeclaration<ItButtonDirective, "[itButton]", ["itButton"], { "color": { "alias": "itButton"; "required": false; }; "size": { "alias": "size"; "required": false; }; "block": { "alias": "block"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, ["icons"], never, true, never>;
@@ -43,6 +43,19 @@ export declare class ItTimelineItemComponent extends ItAbstractComponent {
43
43
  * @default code-circle
44
44
  */
45
45
  pinIcon: IconName | undefined;
46
+ /**
47
+ * Timeline element PIN icon
48
+ * @default code-circle
49
+ */
50
+ pinIconTitle: string | undefined;
51
+ /**
52
+ * Timeline element category label
53
+ */
54
+ categoryLabel: string | undefined;
55
+ /**
56
+ * Timeline element date label
57
+ */
58
+ dateLabel: string | undefined;
46
59
  /**
47
60
  * Timeline element category title
48
61
  */
@@ -61,6 +74,6 @@ export declare class ItTimelineItemComponent extends ItAbstractComponent {
61
74
  */
62
75
  readMoreLink: string | undefined;
63
76
  static ɵfac: i0.ɵɵFactoryDeclaration<ItTimelineItemComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<ItTimelineItemComponent, "it-timeline-item", never, { "title": { "alias": "title"; "required": true; }; "text": { "alias": "text"; "required": true; }; "signature": { "alias": "signature"; "required": false; }; "eventDate": { "alias": "eventDate"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "pinText": { "alias": "pinText"; "required": true; }; "pinType": { "alias": "pinType"; "required": false; }; "pinIcon": { "alias": "pinIcon"; "required": false; }; "categoryTitle": { "alias": "categoryTitle"; "required": false; }; "categoryLink": { "alias": "categoryLink"; "required": false; }; "showReadMore": { "alias": "showReadMore"; "required": false; }; "readMoreLink": { "alias": "readMoreLink"; "required": false; }; }, {}, never, never, true, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItTimelineItemComponent, "it-timeline-item", never, { "title": { "alias": "title"; "required": true; }; "text": { "alias": "text"; "required": true; }; "signature": { "alias": "signature"; "required": false; }; "eventDate": { "alias": "eventDate"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "pinText": { "alias": "pinText"; "required": true; }; "pinType": { "alias": "pinType"; "required": false; }; "pinIcon": { "alias": "pinIcon"; "required": false; }; "pinIconTitle": { "alias": "pinIconTitle"; "required": false; }; "categoryLabel": { "alias": "categoryLabel"; "required": false; }; "dateLabel": { "alias": "dateLabel"; "required": false; }; "categoryTitle": { "alias": "categoryTitle"; "required": false; }; "categoryLink": { "alias": "categoryLink"; "required": false; }; "showReadMore": { "alias": "showReadMore"; "required": false; }; "readMoreLink": { "alias": "readMoreLink"; "required": false; }; }, {}, never, never, true, never>;
65
78
  static ngAcceptInputType_showReadMore: i1.BooleanInput;
66
79
  }
@@ -3,6 +3,11 @@ import { ItAbstractComponent } from '../../../abstracts/abstract.component';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "../../../utils/coercion";
5
5
  export declare class ItBackToTopComponent extends ItAbstractComponent implements AfterViewInit {
6
+ /**
7
+ * Aria label for the component
8
+ * @default 'Torna su'
9
+ */
10
+ ariaLabel: string;
6
11
  /**
7
12
  * Show small button
8
13
  * @default false
@@ -38,7 +43,7 @@ export declare class ItBackToTopComponent extends ItAbstractComponent implements
38
43
  */
39
44
  dispose(): void;
40
45
  static ɵfac: i0.ɵɵFactoryDeclaration<ItBackToTopComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<ItBackToTopComponent, "it-back-to-top", ["itBackToTop"], { "small": { "alias": "small"; "required": false; }; "shadow": { "alias": "shadow"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, never, true, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItBackToTopComponent, "it-back-to-top", ["itBackToTop"], { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "small": { "alias": "small"; "required": false; }; "shadow": { "alias": "shadow"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, never, true, never>;
42
47
  static ngAcceptInputType_small: i1.BooleanInput;
43
48
  static ngAcceptInputType_shadow: i1.BooleanInput;
44
49
  static ngAcceptInputType_dark: i1.BooleanInput;
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../../../utils/coercion";
3
+ export declare class ItSkiplinkComponent {
4
+ /**
5
+ * Aria label for `nav` mode
6
+ * @default 'Scorciatoie di navigazione'
7
+ */
8
+ ariaLabel: string;
9
+ /**
10
+ * If `true` nav mode is enabled
11
+ * @default false
12
+ */
13
+ nav?: boolean;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItSkiplinkComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItSkiplinkComponent, "it-skiplink", ["itSkipLink"], { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "nav": { "alias": "nav"; "required": false; }; }, {}, never, ["*"], true, never>;
16
+ static ngAcceptInputType_nav: i1.BooleanInput;
17
+ }
@@ -0,0 +1,24 @@
1
+ import { ItSkiplinkComponent } from 'projects/design-angular-kit/src/public_api';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../../../utils/coercion";
4
+ export declare class ItSkiplinkItemComponent {
5
+ /**
6
+ * The router link action
7
+ *
8
+ * Commands to pass to Router#createUrlTree.
9
+ * - array: commands to pass to Router#createUrlTree.
10
+ * - string: shorthand for array of commands with just the string, i.e. ['/route']
11
+ * - null|undefined: Disables the link by removing the href
12
+ */
13
+ href: any[] | string | null | undefined;
14
+ /**
15
+ * Is an external link (false to not use Angular router link)
16
+ * @default false
17
+ */
18
+ externalLink?: boolean;
19
+ inNav: boolean;
20
+ constructor(parent: ItSkiplinkComponent);
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItSkiplinkItemComponent, [{ host: true; }]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItSkiplinkItemComponent, "it-skiplink-item", ["itSkipLinkItem"], { "href": { "alias": "href"; "required": false; }; "externalLink": { "alias": "externalLink"; "required": false; }; }, {}, never, ["*"], true, never>;
23
+ static ngAcceptInputType_externalLink: i1.BooleanInput;
24
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./skiplink/skiplink.component";
3
+ import * as i2 from "./skiplink-item/skiplink-item.component";
4
+ export declare class ItSkiplinkModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItSkiplinkModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ItSkiplinkModule, never, [typeof i1.ItSkiplinkComponent, typeof i2.ItSkiplinkItemComponent], [typeof i1.ItSkiplinkComponent, typeof i2.ItSkiplinkItemComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ItSkiplinkModule>;
8
+ }
@@ -36,17 +36,18 @@ import * as i32 from "./components/navigation/header/header.component";
36
36
  import * as i33 from "./components/navigation/navbar/navbar.module";
37
37
  import * as i34 from "./components/navigation/sidebar/sidebar.component";
38
38
  import * as i35 from "./components/navigation/megamenu/megamenu.component";
39
- import * as i36 from "./components/navigation/navscroll/navscroll.component";
40
- import * as i37 from "./components/utils/error-page/error-page.component";
41
- import * as i38 from "./components/utils/icon/icon.component";
42
- import * as i39 from "./components/utils/language-switcher/language-switcher.component";
43
- import * as i40 from "./pipes/date-ago.pipe";
44
- import * as i41 from "./pipes/duration.pipe";
45
- import * as i42 from "./pipes/mark-matching-text.pipe";
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";
46
47
  export declare class DesignAngularKitModule {
47
48
  static forRoot(config?: DesignAngularKitConfig): ModuleWithProviders<DesignAngularKitModule>;
48
49
  static forChild(): ModuleWithProviders<DesignAngularKitModule>;
49
50
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
50
- 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.ItNavscrollComponent, typeof i37.ItErrorPageComponent, typeof i38.ItIconComponent, typeof i39.ItLanguageSwitcherComponent, typeof i40.ItDateAgoPipe, typeof i41.ItDurationPipe, typeof i42.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.ItNavscrollComponent, typeof i37.ItErrorPageComponent, typeof i38.ItIconComponent, typeof i39.ItLanguageSwitcherComponent, typeof i40.ItDateAgoPipe, typeof i41.ItDurationPipe, typeof i42.ItMarkMatchingTextPipe]>;
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]>;
51
52
  static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
52
53
  }
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.1.2",
4
+ "version": "1.1.3",
5
5
  "license": "BSD-3-Clause",
6
6
  "keywords": [
7
7
  "angular",
package/public_api.d.ts CHANGED
@@ -75,6 +75,9 @@ export * from './lib/components/navigation/navbar/navbar/navbar.component';
75
75
  export * from './lib/components/navigation/navscroll/navscroll.component';
76
76
  export * from './lib/components/navigation/navscroll/navscroll.model';
77
77
  export * from './lib/components/navigation/sidebar/sidebar.component';
78
+ export * from './lib/components/navigation/skiplink/skiplink/skiplink.component';
79
+ export * from './lib/components/navigation/skiplink/skiplink-item/skiplink-item.component';
80
+ export * from './lib/components/navigation/skiplink/skiplink.module';
78
81
  export * from './lib/components/utils/error-page/error-page.component';
79
82
  export * from './lib/components/utils/icon/icon.component';
80
83
  export * from './lib/components/utils/language-switcher/language-switcher.component';
@@ -1,19 +1,19 @@
1
1
  {
2
- "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
- "schematics": {
4
- "ng-add": {
5
- "description": "Add my Design Angular Kit to the project.",
6
- "factory": "./ng-add/index",
7
- "schema": "./ng-add/schema.json",
8
- "hidden": true,
9
- "aliases": ["install"]
10
- },
11
- "ng-add-setup-project": {
12
- "description": "Sets up the specified project after the ng-add dependencies have been installed",
13
- "factory": "./ng-add/setup-project",
14
- "schema": "./ng-add/schema.json",
15
- "hidden": true,
16
- "private": true
17
- }
2
+ "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Add my Design Angular Kit to the project.",
6
+ "factory": "./ng-add/index",
7
+ "schema": "./ng-add/schema.json",
8
+ "hidden": true,
9
+ "aliases": ["install"]
10
+ },
11
+ "ng-add-setup-project": {
12
+ "description": "Sets up the specified project after the ng-add dependencies have been installed",
13
+ "factory": "./ng-add/setup-project",
14
+ "schema": "./ng-add/schema.json",
15
+ "hidden": true,
16
+ "private": true
18
17
  }
19
- }
18
+ }
19
+ }
@@ -1,16 +1,16 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "design-angular-kit-ng-add",
4
- "title": "Design Angular Hit ng-add schematic",
5
- "type": "object",
6
- "properties": {
7
- "project": {
8
- "type": "string",
9
- "description": "Name of the project.",
10
- "$default": {
11
- "$source": "projectName"
12
- }
13
- }
14
- },
15
- "required": []
16
- }
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "design-angular-kit-ng-add",
4
+ "title": "Design Angular Hit ng-add schematic",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "Name of the project.",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ }
14
+ },
15
+ "required": []
16
+ }