@indice/ng-components 0.2.154 → 0.2.157

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/_styles.css +2 -2
  2. package/esm2020/lib/controls/stepper/lib-step-info.directive.mjs +16 -0
  3. package/esm2020/lib/controls/stepper/lib-step-label.directive.mjs +16 -0
  4. package/esm2020/lib/controls/stepper/lib-step.component.mjs +81 -0
  5. package/esm2020/lib/controls/stepper/lib-stepper.component.mjs +85 -0
  6. package/esm2020/lib/controls/stepper/types/step-selected-event.mjs +4 -0
  7. package/esm2020/lib/controls/stepper/types/stepper-type.mjs +12 -0
  8. package/esm2020/lib/controls/tabs/lib-tab-group.component.mjs +1 -1
  9. package/esm2020/lib/controls/tabs/lib-tab.component.mjs +2 -2
  10. package/esm2020/lib/layouts/shell/shell-sidebar/shell-sidebar.component.mjs +3 -3
  11. package/esm2020/lib/ng-components.module.mjs +25 -3
  12. package/esm2020/lib/tokens.mjs +4 -3
  13. package/esm2020/public-api.mjs +6 -1
  14. package/fesm2015/indice-ng-components.mjs +228 -8
  15. package/fesm2015/indice-ng-components.mjs.map +1 -1
  16. package/fesm2020/indice-ng-components.mjs +222 -8
  17. package/fesm2020/indice-ng-components.mjs.map +1 -1
  18. package/lib/controls/stepper/lib-step-info.directive.d.ts +8 -0
  19. package/lib/controls/stepper/lib-step-label.directive.d.ts +8 -0
  20. package/lib/controls/stepper/lib-step.component.d.ts +34 -0
  21. package/lib/controls/stepper/lib-stepper.component.d.ts +32 -0
  22. package/lib/controls/stepper/types/step-selected-event.d.ts +12 -0
  23. package/lib/controls/stepper/types/stepper-type.d.ts +10 -0
  24. package/lib/ng-components.module.d.ts +8 -4
  25. package/lib/tokens.d.ts +5 -3
  26. package/package.json +1 -1
  27. package/public-api.d.ts +5 -0
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LibStepInfoDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibStepInfoDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LibStepInfoDirective, "[libStepInfo]", never, {}, {}, never, never, false>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LibStepLabelDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibStepLabelDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LibStepLabelDirective, "[libStepLabel]", never, {}, {}, never, never, false>;
8
+ }
@@ -0,0 +1,34 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { LibStepInfoDirective } from './lib-step-info.directive';
4
+ import { LibStepLabelDirective } from './lib-step-label.directive';
5
+ import * as i0 from "@angular/core";
6
+ export declare enum StepState {
7
+ Active = "Active",
8
+ Completed = "Completed",
9
+ Upcoming = "Upcoming"
10
+ }
11
+ export declare class LibStepComponent {
12
+ readonly _stepper?: any;
13
+ constructor(_stepper?: any);
14
+ /** The content provided for the step. */
15
+ content: TemplateRef<any>;
16
+ /** The label of the step displayed in header, if applicable. */
17
+ stepLabel: LibStepLabelDirective | undefined;
18
+ /** The info of the step displayed in header, if applicable. */
19
+ stepInfo: LibStepInfoDirective | undefined;
20
+ /** An optional CSS class for the step header. */
21
+ class: string | undefined;
22
+ /** The abstract control of the step. */
23
+ stepControl: AbstractControl | undefined;
24
+ /** Indicates the index of the step. */
25
+ get index(): number;
26
+ /** Indicates whether this step is the last step. */
27
+ get isLast(): boolean;
28
+ /** Indicates whether you can navigate to the step or not. */
29
+ get isValid(): boolean;
30
+ /** Shows the current state of the step. */
31
+ get state(): StepState;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibStepComponent, [{ optional: true; }]>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibStepComponent, "lib-step", never, { "class": "class"; "stepControl": "stepControl"; }, {}, ["stepLabel", "stepInfo"], ["*"], false>;
34
+ }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter, OnInit, QueryList } from '@angular/core';
2
+ import { LibStepComponent, StepState } from './lib-step.component';
3
+ import { StepperType } from './types/stepper-type';
4
+ import { StepSelectedEvent } from './types/step-selected-event';
5
+ import * as i0 from "@angular/core";
6
+ export declare class LibStepperComponent implements OnInit {
7
+ private _currentStepIndex;
8
+ constructor();
9
+ /** The inner steps of the wizard. */
10
+ steps: QueryList<LibStepComponent>;
11
+ /** Emmited when a step change occurs. */
12
+ readonly stepChanged: EventEmitter<StepSelectedEvent>;
13
+ /** Indicates whether each step has to be validated before proceeding to the next. */
14
+ linear: boolean;
15
+ /** The type of the stepper. */
16
+ type: StepperType;
17
+ StepState: typeof StepState;
18
+ StepperType: typeof StepperType;
19
+ /** The current wizard step. */
20
+ get currentStep(): LibStepComponent | undefined;
21
+ /** The index (starting from zero) of the current wizard step. */
22
+ get currentStepIndex(): number;
23
+ ngOnInit(): void;
24
+ /** Proceeds to the next step, if any. */
25
+ goToNextStep(): void;
26
+ /** Proceeds to the previous step, if any. */
27
+ goToPreviousStep(): void;
28
+ onSelectStep(selectedStep: LibStepComponent): void;
29
+ private updateCurrentStepIndex;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibStepperComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibStepperComponent, "lib-stepper", never, { "linear": "linear"; "type": "type"; }, { "stepChanged": "stepChanged"; }, ["steps"], never, false>;
32
+ }
@@ -0,0 +1,12 @@
1
+ import { LibStepComponent } from '../lib-step.component';
2
+ /** Change event emitted on step changes. */
3
+ export declare class StepSelectedEvent {
4
+ /** Index of the step now selected. */
5
+ selectedIndex: number;
6
+ /** Index of the step previously selected. */
7
+ previouslySelectedIndex: number | undefined;
8
+ /** The step instance now selected. */
9
+ selectedStep: LibStepComponent;
10
+ /** The step instance previously selected. */
11
+ previouslySelectedStep: LibStepComponent | undefined;
12
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum StepperType {
2
+ Bullets = "Bullets",
3
+ BulletsAndText = "BulletsAndText",
4
+ Circles = "Circles",
5
+ CirclesWithText = "CirclesWithText",
6
+ Panels = "Panels",
7
+ PanelsWithBorder = "PanelsWithBorder",
8
+ Progress = "Progress",
9
+ Simple = "Simple"
10
+ }
@@ -41,12 +41,16 @@ import * as i38 from "./controls/user-profile-menu/user-profile-menu.component";
41
41
  import * as i39 from "./layouts/shell/shell-sidebar/shell-sidebar.component";
42
42
  import * as i40 from "./controls/tabs/lib-tab.component";
43
43
  import * as i41 from "./controls/tabs/lib-tab-group.component";
44
- import * as i42 from "@angular/common";
45
- import * as i43 from "@angular/router";
46
- import * as i44 from "@indice/ng-auth";
44
+ import * as i42 from "./controls/stepper/lib-stepper.component";
45
+ import * as i43 from "./controls/stepper/lib-step.component";
46
+ import * as i44 from "./controls/stepper/lib-step-label.directive";
47
+ import * as i45 from "./controls/stepper/lib-step-info.directive";
48
+ import * as i46 from "@angular/common";
49
+ import * as i47 from "@angular/router";
50
+ import * as i48 from "@indice/ng-auth";
47
51
  export declare class IndiceComponentsModule {
48
52
  static forRoot(): ModuleWithProviders<IndiceComponentsModule>;
49
53
  static ɵfac: i0.ɵɵFactoryDeclaration<IndiceComponentsModule, never>;
50
- static ɵmod: i0.ɵɵNgModuleDeclaration<IndiceComponentsModule, [typeof i1.ClickOutsideDirective, typeof i2.DynamicComponentHostDirective, typeof i3.DropDownMenuComponent, typeof i4.PagerComponent, typeof i5.ListViewComponent, typeof i6.ListColumnComponent, typeof i7.ListTileComponent, typeof i8.ListDetailsSectionComponent, typeof i9.ListViewEmptyStateComponent, typeof i10.SkeletonLoaderComponent, typeof i11.CollapsiblePanelComponent, typeof i12.KpiTileComponent, typeof i13.SidePaneComponent, typeof i14.DatepickerComponent, typeof i15.AvatarInitialsComponent, typeof i16.ToggleComponent, typeof i17.ComboboxComponent, typeof i18.ToasterContainerComponent, typeof i19.ToasterComponent, typeof i20.ShellLayoutComponent, typeof i21.ShellHeaderComponent, typeof i22.ShellFooterComponent, typeof i23.ViewLayoutComponent, typeof i24.SideViewLayoutComponent, typeof i25.ModelViewLayoutComponent, typeof i26.FormLayoutComponent, typeof i27.AuthCallbackComponent, typeof i28.AuthRenewComponent, typeof i29.LoggedOutComponent, typeof i30.ErrorComponent, typeof i31.PageNotFoundComponent, typeof i32.UnauthorizedComponent, typeof i33.AddressPipe, typeof i34.DurationFormatPipe, typeof i35.NavLinksListComponent, typeof i36.NotificationsIndicatorComponent, typeof i37.LanguageSelectionComponent, typeof i38.UserProfileMenuComponent, typeof i39.ShellSidebarComponent, typeof i40.LibTabComponent, typeof i41.LibTabGroupComponent], [typeof i42.CommonModule, typeof i43.RouterModule, typeof i44.IndiceAuthModule], [typeof i33.AddressPipe, typeof i27.AuthCallbackComponent, typeof i28.AuthRenewComponent, typeof i15.AvatarInitialsComponent, typeof i1.ClickOutsideDirective, typeof i11.CollapsiblePanelComponent, typeof i17.ComboboxComponent, typeof i14.DatepickerComponent, typeof i3.DropDownMenuComponent, typeof i34.DurationFormatPipe, typeof i30.ErrorComponent, typeof i26.FormLayoutComponent, typeof i12.KpiTileComponent, typeof i40.LibTabComponent, typeof i41.LibTabGroupComponent, typeof i6.ListColumnComponent, typeof i8.ListDetailsSectionComponent, typeof i7.ListTileComponent, typeof i5.ListViewComponent, typeof i9.ListViewEmptyStateComponent, typeof i29.LoggedOutComponent, typeof i25.ModelViewLayoutComponent, typeof i31.PageNotFoundComponent, typeof i4.PagerComponent, typeof i22.ShellFooterComponent, typeof i21.ShellHeaderComponent, typeof i20.ShellLayoutComponent, typeof i13.SidePaneComponent, typeof i24.SideViewLayoutComponent, typeof i10.SkeletonLoaderComponent, typeof i19.ToasterComponent, typeof i18.ToasterContainerComponent, typeof i16.ToggleComponent, typeof i32.UnauthorizedComponent, typeof i23.ViewLayoutComponent]>;
54
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IndiceComponentsModule, [typeof i1.ClickOutsideDirective, typeof i2.DynamicComponentHostDirective, typeof i3.DropDownMenuComponent, typeof i4.PagerComponent, typeof i5.ListViewComponent, typeof i6.ListColumnComponent, typeof i7.ListTileComponent, typeof i8.ListDetailsSectionComponent, typeof i9.ListViewEmptyStateComponent, typeof i10.SkeletonLoaderComponent, typeof i11.CollapsiblePanelComponent, typeof i12.KpiTileComponent, typeof i13.SidePaneComponent, typeof i14.DatepickerComponent, typeof i15.AvatarInitialsComponent, typeof i16.ToggleComponent, typeof i17.ComboboxComponent, typeof i18.ToasterContainerComponent, typeof i19.ToasterComponent, typeof i20.ShellLayoutComponent, typeof i21.ShellHeaderComponent, typeof i22.ShellFooterComponent, typeof i23.ViewLayoutComponent, typeof i24.SideViewLayoutComponent, typeof i25.ModelViewLayoutComponent, typeof i26.FormLayoutComponent, typeof i27.AuthCallbackComponent, typeof i28.AuthRenewComponent, typeof i29.LoggedOutComponent, typeof i30.ErrorComponent, typeof i31.PageNotFoundComponent, typeof i32.UnauthorizedComponent, typeof i33.AddressPipe, typeof i34.DurationFormatPipe, typeof i35.NavLinksListComponent, typeof i36.NotificationsIndicatorComponent, typeof i37.LanguageSelectionComponent, typeof i38.UserProfileMenuComponent, typeof i39.ShellSidebarComponent, typeof i40.LibTabComponent, typeof i41.LibTabGroupComponent, typeof i42.LibStepperComponent, typeof i43.LibStepComponent, typeof i44.LibStepLabelDirective, typeof i45.LibStepInfoDirective], [typeof i46.CommonModule, typeof i47.RouterModule, typeof i48.IndiceAuthModule], [typeof i33.AddressPipe, typeof i27.AuthCallbackComponent, typeof i28.AuthRenewComponent, typeof i15.AvatarInitialsComponent, typeof i1.ClickOutsideDirective, typeof i11.CollapsiblePanelComponent, typeof i17.ComboboxComponent, typeof i14.DatepickerComponent, typeof i3.DropDownMenuComponent, typeof i34.DurationFormatPipe, typeof i30.ErrorComponent, typeof i26.FormLayoutComponent, typeof i12.KpiTileComponent, typeof i43.LibStepComponent, typeof i45.LibStepInfoDirective, typeof i44.LibStepLabelDirective, typeof i42.LibStepperComponent, typeof i40.LibTabComponent, typeof i41.LibTabGroupComponent, typeof i6.ListColumnComponent, typeof i8.ListDetailsSectionComponent, typeof i7.ListTileComponent, typeof i5.ListViewComponent, typeof i9.ListViewEmptyStateComponent, typeof i29.LoggedOutComponent, typeof i25.ModelViewLayoutComponent, typeof i31.PageNotFoundComponent, typeof i4.PagerComponent, typeof i22.ShellFooterComponent, typeof i21.ShellHeaderComponent, typeof i20.ShellLayoutComponent, typeof i13.SidePaneComponent, typeof i24.SideViewLayoutComponent, typeof i10.SkeletonLoaderComponent, typeof i19.ToasterComponent, typeof i18.ToasterContainerComponent, typeof i16.ToggleComponent, typeof i32.UnauthorizedComponent, typeof i23.ViewLayoutComponent]>;
51
55
  static ɵinj: i0.ɵɵInjectorDeclaration<IndiceComponentsModule>;
52
56
  }
package/lib/tokens.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { LibTabGroupComponent } from './controls/tabs/lib-tab-group.component';
3
2
  import { IAppLinks, IAppLanguagesService, IAppNotifications, IShellConfig } from './types';
3
+ import { LibStepperComponent } from './controls/stepper/lib-stepper.component';
4
+ import { LibTabGroupComponent } from './controls/tabs/lib-tab-group.component';
5
+ export declare const APP_LANGUAGES: InjectionToken<IAppLanguagesService>;
4
6
  export declare const APP_LINKS: InjectionToken<IAppLinks>;
5
7
  export declare const APP_NOTIFICATIONS: InjectionToken<IAppNotifications>;
6
- export declare const SHELL_CONFIG: InjectionToken<IShellConfig>;
7
- export declare const APP_LANGUAGES: InjectionToken<IAppLanguagesService>;
8
+ export declare const LIBSTEPPER_ACCESSOR: InjectionToken<LibStepperComponent>;
8
9
  export declare const LIBTABGROUP_ACCESSOR: InjectionToken<LibTabGroupComponent>;
10
+ export declare const SHELL_CONFIG: InjectionToken<IShellConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indice/ng-components",
3
- "version": "0.2.154",
3
+ "version": "0.2.157",
4
4
  "description": "Indice common components for Angular v12",
5
5
  "repository": {
6
6
  "type": "git",
package/public-api.d.ts CHANGED
@@ -19,6 +19,11 @@ export * from './lib/controls/nav-links-list/nav-links-list.component';
19
19
  export * from './lib/controls/combobox/combobox.component';
20
20
  export * from './lib/controls/tabs/lib-tab.component';
21
21
  export * from './lib/controls/tabs/lib-tab-group.component';
22
+ export * from './lib/controls/stepper/lib-stepper.component';
23
+ export * from './lib/controls/stepper/lib-step.component';
24
+ export * from './lib/controls/stepper/lib-step-label.directive';
25
+ export * from './lib/controls/stepper/lib-step-info.directive';
26
+ export * from './lib/controls/stepper/types/stepper-type';
22
27
  export * from './lib/layouts/shell/shell-layout/shell-layout.component';
23
28
  export * from './lib/layouts/shell/shell-header/shell-header.component';
24
29
  export * from './lib/layouts/shell/shell-footer/shell-footer.component';