@indice/ng-components 0.4.2 → 0.5.0-beta.0

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.
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef, NgZone, SimpleChanges, QueryList, TemplateRef, AfterContentInit, AfterContentChecked, AfterViewChecked, ChangeDetectorRef, ComponentRef, ViewContainerRef, ComponentFactoryResolver, ApplicationRef, Injector, Type, StaticProvider, AfterViewInit, PipeTransform, InjectionToken, Renderer2, RendererFactory2, ModuleWithProviders } from '@angular/core';
3
3
  import { Observable, Subject, Subscription } from 'rxjs';
4
4
  import * as i60 from '@angular/router';
5
- import { Params, Router, ActivatedRoute, Event as Event$1 } from '@angular/router';
5
+ import { Route, Params, Router, ActivatedRoute, Event as Event$1 } from '@angular/router';
6
6
  import * as i62 from '@angular/forms';
7
7
  import { ControlValueAccessor, AbstractControl } from '@angular/forms';
8
8
  import * as _indice_ng_components from '@indice/ng-components';
@@ -173,6 +173,9 @@ interface IShellConfig {
173
173
  showUserNameOnHeader?: boolean;
174
174
  showPictureOnHeader?: boolean;
175
175
  }
176
+ interface IBreadcrumbLabelProcessor {
177
+ process(route: Route): string;
178
+ }
176
179
  declare enum ShellLayoutType {
177
180
  Stacked = "Stacked",
178
181
  Sidebar = "Sidebar"
@@ -317,10 +320,11 @@ declare class UtilitiesService {
317
320
  declare class BreadcrumbService {
318
321
  private _router;
319
322
  private _utilities;
323
+ breadcrumbLabelResolver?: IBreadcrumbLabelProcessor | undefined;
320
324
  _shellConfig?: any | undefined;
321
325
  private _defaultHome;
322
326
  private _breadcrumb$;
323
- constructor(_router: Router, _utilities: UtilitiesService, _shellConfig?: any | undefined);
327
+ constructor(_router: Router, _utilities: UtilitiesService, breadcrumbLabelResolver?: IBreadcrumbLabelProcessor | undefined, _shellConfig?: any | undefined);
324
328
  breadcrumb: Observable<BreadcrumbItem[]>;
325
329
  private _getDefaultHomeItem;
326
330
  private _getRouteTitle;
@@ -329,7 +333,7 @@ declare class BreadcrumbService {
329
333
  private _findParentRoutes;
330
334
  private _flattenRoutes;
331
335
  private _getBreadcrumbRouteData;
332
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, [null, null, { optional: true; }]>;
336
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, [null, null, { optional: true; }, { optional: true; }]>;
333
337
  static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
334
338
  }
335
339
  declare class BreadcrumbRouteData {
@@ -663,6 +667,8 @@ declare class AvatarInitialsComponent implements OnInit {
663
667
  declare class ToggleComponent implements OnInit, ControlValueAccessor {
664
668
  value: boolean | null | undefined;
665
669
  disabled: boolean | null | undefined;
670
+ privateLabel: string;
671
+ publicLabel: string;
666
672
  valueChange: EventEmitter<Boolean>;
667
673
  private onChange$;
668
674
  private onTouched$;
@@ -674,7 +680,7 @@ declare class ToggleComponent implements OnInit, ControlValueAccessor {
674
680
  ngOnInit(): void;
675
681
  changeValue(): void;
676
682
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
677
- static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "lib-toggle", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
683
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "lib-toggle", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "privateLabel": { "alias": "privateLabel"; "required": false; }; "publicLabel": { "alias": "publicLabel"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
678
684
  }
679
685
 
680
686
  declare class SidePaneComponent implements OnInit, OnDestroy, OnChanges {
@@ -972,12 +978,13 @@ declare class ToggleButtonsListComponent implements OnInit {
972
978
  options: MenuOption[] | undefined;
973
979
  value: any | undefined;
974
980
  compact: boolean;
981
+ dropDownMenuPlaceholder: string;
975
982
  valueChange: EventEmitter<any>;
976
983
  constructor();
977
984
  ngOnInit(): void;
978
985
  selectOption(optionValue: any): void;
979
986
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButtonsListComponent, never>;
980
- static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonsListComponent, "lib-toggle-buttons-list", never, { "icon": { "alias": "icon"; "required": false; }; "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
987
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonsListComponent, "lib-toggle-buttons-list", never, { "icon": { "alias": "icon"; "required": false; }; "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "dropDownMenuPlaceholder": { "alias": "dropDownMenuPlaceholder"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
981
988
  }
982
989
 
983
990
  declare class ContentTileHeaderComponent {
@@ -1047,6 +1054,7 @@ declare class AdvancedSearchComponent implements OnInit, OnChanges {
1047
1054
  operatorsDisabled: boolean;
1048
1055
  searchOptions: SearchOption[];
1049
1056
  filters: FilterClause[];
1057
+ searchCriteriaLabel: string;
1050
1058
  menuOptions: MenuOption[];
1051
1059
  operatorMenuOptions: MenuOption[];
1052
1060
  operatorOptions: _indice_ng_components.IDictionary<{
@@ -1078,7 +1086,7 @@ declare class AdvancedSearchComponent implements OnInit, OnChanges {
1078
1086
  isFieldAndOperatorUnpicked(): boolean;
1079
1087
  clear(): void;
1080
1088
  static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSearchComponent, never>;
1081
- static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSearchComponent, "lib-advanced-search", never, { "operatorsDisabled": { "alias": "operators-disabled"; "required": false; }; "searchOptions": { "alias": "search-options"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, { "advancedSearchChanged": "advancedSearchChanged"; }, never, never, false, never>;
1089
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSearchComponent, "lib-advanced-search", never, { "operatorsDisabled": { "alias": "operators-disabled"; "required": false; }; "searchOptions": { "alias": "search-options"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "searchCriteriaLabel": { "alias": "searchCriteriaLabel"; "required": false; }; }, { "advancedSearchChanged": "advancedSearchChanged"; }, never, never, false, never>;
1082
1090
  }
1083
1091
 
1084
1092
  /**
@@ -1505,6 +1513,7 @@ declare const APP_NOTIFICATIONS: InjectionToken<IAppNotifications>;
1505
1513
  declare const LIBSTEPPER_ACCESSOR: InjectionToken<LibStepperComponent>;
1506
1514
  declare const LIBTABGROUP_ACCESSOR: InjectionToken<LibTabGroupComponent>;
1507
1515
  declare const SHELL_CONFIG: InjectionToken<IShellConfig>;
1516
+ declare const BREADCRUMB_LABEL_RESOLVER: InjectionToken<IBreadcrumbLabelProcessor>;
1508
1517
 
1509
1518
  declare class Icons {
1510
1519
  static Dashboard: string;
@@ -1559,6 +1568,8 @@ declare abstract class BaseListComponent<T> implements OnInit, OnDestroy {
1559
1568
  searchOptions: SearchOption[];
1560
1569
  sortOptions: MenuOption[];
1561
1570
  metaItems: HeaderMetaItem[];
1571
+ singularResult: string;
1572
+ pluralResults: string;
1562
1573
  abstract newItemLink: string | null;
1563
1574
  private routeSub$;
1564
1575
  private loadSub$;
@@ -1832,6 +1843,8 @@ declare class NotificationsIndicatorComponent implements OnInit, OnDestroy {
1832
1843
  allNotificationsLink?: NavLink;
1833
1844
  private notificationsSub$;
1834
1845
  private inboxAction;
1846
+ noNotifications: string;
1847
+ showNotificationsText: string;
1835
1848
  newArrival: boolean;
1836
1849
  constructor(notifications?: IAppNotifications | undefined, links?: any | undefined);
1837
1850
  ngOnDestroy(): void;
@@ -1840,7 +1853,7 @@ declare class NotificationsIndicatorComponent implements OnInit, OnDestroy {
1840
1853
  removeItem(index: number): void;
1841
1854
  onClickOutside($event: any): void;
1842
1855
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsIndicatorComponent, never>;
1843
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsIndicatorComponent, "lib-notifications-indicator", never, {}, {}, never, never, false, never>;
1856
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsIndicatorComponent, "lib-notifications-indicator", never, { "noNotifications": { "alias": "noNotifications"; "required": false; }; "showNotificationsText": { "alias": "showNotificationsText"; "required": false; }; }, {}, never, never, false, never>;
1844
1857
  }
1845
1858
 
1846
1859
  declare class ShellSidebarLayoutComponent implements OnInit {
@@ -1892,5 +1905,5 @@ declare class IndiceComponentsModule {
1892
1905
  static ɵinj: i0.ɵɵInjectorDeclaration<IndiceComponentsModule>;
1893
1906
  }
1894
1907
 
1895
- export { APP_LANGUAGES, APP_LINKS, APP_NOTIFICATIONS, AddressPipe, AdvancedSearchComponent, AuthCallbackComponent, AuthRenewComponent, AvatarInitialsComponent, BaseListComponent, BreadcrumbComponent, BreadcrumbItem, BreadcrumbRouteData, BreadcrumbService, ClickOutsideDirective, CollapsiblePanelComponent, ComboboxComponent, ComponentLoaderFactory, ContentTileComponent, ContentTileHeaderComponent, ContentTileItemComponent, DatepickerComponent, DefaultShellConfig, DropDownMenuComponent, DurationFormatPipe, EnhancedComboboxComponent, ErrorComponent, ExternalNavLink, FilterClause, FormLayoutComponent, FragmentNavLink, HeaderMetaItem, Icons, IndiceComponentsModule, KpiTileComponent, LIBSTEPPER_ACCESSOR, LIBTABGROUP_ACCESSOR, LibStepComponent, LibStepInfoDirective, LibStepLabelDirective, LibStepperComponent, LibTabComponent, LibTabGroupComponent, LibTabLabelDirective, ListColumnComponent, ListDetailsSectionComponent, ListTileComponent, ListViewComponent, ListViewEmptyStateComponent, ListViewType, LoggedOutComponent, MODAL_CONFIG_DEFAULT_OVERRIDE, MenuOption, Modal, ModalOptions, ModalService, ModelViewLayoutComponent, NULL_TOAST, NavLink, NavLinkSeparator, NavLinksListComponent, NotificationNavLink, OperatorOptions, Operators, PageNotFoundComponent, PagerComponent, PagerPosition, ProgressBarComponent, QueryParameters, RouterViewAction, SCREEN_SIZE, SHELL_CONFIG, ShellFooterComponent, ShellHeaderComponent, ShellLayoutComponent, ShellLayoutType, ShellSidebarComponent, ShellSidebarHeaderComponent, ShortNumberPipe, SidePaneComponent, SidePaneOverlayType, SidePaneSize, SideViewLayoutComponent, SkeletonLoaderComponent, StatsGridComponent, StepSelectedEvent, StepState, StepperType, SwitchViewAction, ToastType, ToasterComponent, ToasterContainerComponent, ToasterService, ToggleButtonComponent, ToggleButtonsListComponent, ToggleComponent, UnauthorizedComponent, UserSettingsService, ViewAction, ViewLayoutComponent };
1896
- export type { CloseInterceptorFn, IAddress, IAppLanguagesService, IAppLinks, IAppNotifications, IDictionary, IResultSet, IScreenSize, IShellConfig, IValidationProblemDetails, SearchOption, SelectInputOption, Toast, UserSettingKey };
1908
+ export { APP_LANGUAGES, APP_LINKS, APP_NOTIFICATIONS, AddressPipe, AdvancedSearchComponent, AuthCallbackComponent, AuthRenewComponent, AvatarInitialsComponent, BREADCRUMB_LABEL_RESOLVER, BaseListComponent, BreadcrumbComponent, BreadcrumbItem, BreadcrumbRouteData, BreadcrumbService, ClickOutsideDirective, CollapsiblePanelComponent, ComboboxComponent, ComponentLoaderFactory, ContentTileComponent, ContentTileHeaderComponent, ContentTileItemComponent, DatepickerComponent, DefaultShellConfig, DropDownMenuComponent, DurationFormatPipe, EnhancedComboboxComponent, ErrorComponent, ExternalNavLink, FilterClause, FormLayoutComponent, FragmentNavLink, HeaderMetaItem, Icons, IndiceComponentsModule, KpiTileComponent, LIBSTEPPER_ACCESSOR, LIBTABGROUP_ACCESSOR, LibStepComponent, LibStepInfoDirective, LibStepLabelDirective, LibStepperComponent, LibTabComponent, LibTabGroupComponent, LibTabLabelDirective, ListColumnComponent, ListDetailsSectionComponent, ListTileComponent, ListViewComponent, ListViewEmptyStateComponent, ListViewType, LoggedOutComponent, MODAL_CONFIG_DEFAULT_OVERRIDE, MenuOption, Modal, ModalOptions, ModalService, ModelViewLayoutComponent, NULL_TOAST, NavLink, NavLinkSeparator, NavLinksListComponent, NotificationNavLink, OperatorOptions, Operators, PageNotFoundComponent, PagerComponent, PagerPosition, ProgressBarComponent, QueryParameters, RouterViewAction, SCREEN_SIZE, SHELL_CONFIG, ShellFooterComponent, ShellHeaderComponent, ShellLayoutComponent, ShellLayoutType, ShellSidebarComponent, ShellSidebarHeaderComponent, ShortNumberPipe, SidePaneComponent, SidePaneOverlayType, SidePaneSize, SideViewLayoutComponent, SkeletonLoaderComponent, StatsGridComponent, StepSelectedEvent, StepState, StepperType, SwitchViewAction, ToastType, ToasterComponent, ToasterContainerComponent, ToasterService, ToggleButtonComponent, ToggleButtonsListComponent, ToggleComponent, UnauthorizedComponent, UserSettingsService, ViewAction, ViewLayoutComponent };
1909
+ export type { CloseInterceptorFn, IAddress, IAppLanguagesService, IAppLinks, IAppNotifications, IBreadcrumbLabelProcessor, IDictionary, IResultSet, IScreenSize, IShellConfig, IValidationProblemDetails, SearchOption, SelectInputOption, Toast, UserSettingKey };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indice/ng-components",
3
- "version": "0.4.2",
3
+ "version": "0.5.0-beta.0",
4
4
  "description": "Indice common components for Angular v20",
5
5
  "repository": {
6
6
  "type": "git",