@indice/ng-components 0.4.2 → 0.5.0-beta.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.
- package/fesm2022/indice-ng-components.mjs +80 -41
- package/fesm2022/indice-ng-components.mjs.map +1 -1
- package/index.d.ts +30 -11
- package/package.json +1 -1
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 { ActivatedRouteSnapshot, 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,14 @@ interface IShellConfig {
|
|
|
173
173
|
showUserNameOnHeader?: boolean;
|
|
174
174
|
showPictureOnHeader?: boolean;
|
|
175
175
|
}
|
|
176
|
+
interface IBreadcrumbLabelProcessor {
|
|
177
|
+
process(context: BreadcrumbContext): string | Observable<string>;
|
|
178
|
+
}
|
|
179
|
+
interface BreadcrumbContext {
|
|
180
|
+
routeSnapshot?: ActivatedRouteSnapshot;
|
|
181
|
+
route?: Route;
|
|
182
|
+
defaultValue?: string;
|
|
183
|
+
}
|
|
176
184
|
declare enum ShellLayoutType {
|
|
177
185
|
Stacked = "Stacked",
|
|
178
186
|
Sidebar = "Sidebar"
|
|
@@ -297,9 +305,9 @@ declare class PagerComponent implements OnInit, OnChanges {
|
|
|
297
305
|
}
|
|
298
306
|
|
|
299
307
|
declare class BreadcrumbItem {
|
|
300
|
-
title?: string | undefined;
|
|
308
|
+
title?: (string | Observable<string>) | undefined;
|
|
301
309
|
url?: string | undefined;
|
|
302
|
-
constructor(title?: string | undefined, url?: string | undefined);
|
|
310
|
+
constructor(title?: (string | Observable<string>) | undefined, url?: string | undefined);
|
|
303
311
|
level: number;
|
|
304
312
|
get urlSegments(): string[] | undefined;
|
|
305
313
|
}
|
|
@@ -317,10 +325,11 @@ declare class UtilitiesService {
|
|
|
317
325
|
declare class BreadcrumbService {
|
|
318
326
|
private _router;
|
|
319
327
|
private _utilities;
|
|
328
|
+
breadcrumbLabelResolver?: IBreadcrumbLabelProcessor | undefined;
|
|
320
329
|
_shellConfig?: any | undefined;
|
|
321
330
|
private _defaultHome;
|
|
322
331
|
private _breadcrumb$;
|
|
323
|
-
constructor(_router: Router, _utilities: UtilitiesService, _shellConfig?: any | undefined);
|
|
332
|
+
constructor(_router: Router, _utilities: UtilitiesService, breadcrumbLabelResolver?: IBreadcrumbLabelProcessor | undefined, _shellConfig?: any | undefined);
|
|
324
333
|
breadcrumb: Observable<BreadcrumbItem[]>;
|
|
325
334
|
private _getDefaultHomeItem;
|
|
326
335
|
private _getRouteTitle;
|
|
@@ -329,7 +338,7 @@ declare class BreadcrumbService {
|
|
|
329
338
|
private _findParentRoutes;
|
|
330
339
|
private _flattenRoutes;
|
|
331
340
|
private _getBreadcrumbRouteData;
|
|
332
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, [null, null, { optional: true; }]>;
|
|
341
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, [null, null, { optional: true; }, { optional: true; }]>;
|
|
333
342
|
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
|
|
334
343
|
}
|
|
335
344
|
declare class BreadcrumbRouteData {
|
|
@@ -343,6 +352,7 @@ declare class BreadcrumbComponent implements OnInit {
|
|
|
343
352
|
private _breadcrumbService;
|
|
344
353
|
constructor(_breadcrumbService: BreadcrumbService);
|
|
345
354
|
ngOnInit(): void;
|
|
355
|
+
isAsync(value: any): boolean;
|
|
346
356
|
breadcrumb: BreadcrumbItem[];
|
|
347
357
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
348
358
|
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "lib-breadcrumb", never, {}, {}, never, never, false, never>;
|
|
@@ -663,6 +673,8 @@ declare class AvatarInitialsComponent implements OnInit {
|
|
|
663
673
|
declare class ToggleComponent implements OnInit, ControlValueAccessor {
|
|
664
674
|
value: boolean | null | undefined;
|
|
665
675
|
disabled: boolean | null | undefined;
|
|
676
|
+
privateLabel: string;
|
|
677
|
+
publicLabel: string;
|
|
666
678
|
valueChange: EventEmitter<Boolean>;
|
|
667
679
|
private onChange$;
|
|
668
680
|
private onTouched$;
|
|
@@ -674,7 +686,7 @@ declare class ToggleComponent implements OnInit, ControlValueAccessor {
|
|
|
674
686
|
ngOnInit(): void;
|
|
675
687
|
changeValue(): void;
|
|
676
688
|
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>;
|
|
689
|
+
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
690
|
}
|
|
679
691
|
|
|
680
692
|
declare class SidePaneComponent implements OnInit, OnDestroy, OnChanges {
|
|
@@ -972,12 +984,13 @@ declare class ToggleButtonsListComponent implements OnInit {
|
|
|
972
984
|
options: MenuOption[] | undefined;
|
|
973
985
|
value: any | undefined;
|
|
974
986
|
compact: boolean;
|
|
987
|
+
dropDownMenuPlaceholder: string;
|
|
975
988
|
valueChange: EventEmitter<any>;
|
|
976
989
|
constructor();
|
|
977
990
|
ngOnInit(): void;
|
|
978
991
|
selectOption(optionValue: any): void;
|
|
979
992
|
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>;
|
|
993
|
+
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
994
|
}
|
|
982
995
|
|
|
983
996
|
declare class ContentTileHeaderComponent {
|
|
@@ -1047,6 +1060,7 @@ declare class AdvancedSearchComponent implements OnInit, OnChanges {
|
|
|
1047
1060
|
operatorsDisabled: boolean;
|
|
1048
1061
|
searchOptions: SearchOption[];
|
|
1049
1062
|
filters: FilterClause[];
|
|
1063
|
+
searchCriteriaLabel: string;
|
|
1050
1064
|
menuOptions: MenuOption[];
|
|
1051
1065
|
operatorMenuOptions: MenuOption[];
|
|
1052
1066
|
operatorOptions: _indice_ng_components.IDictionary<{
|
|
@@ -1078,7 +1092,7 @@ declare class AdvancedSearchComponent implements OnInit, OnChanges {
|
|
|
1078
1092
|
isFieldAndOperatorUnpicked(): boolean;
|
|
1079
1093
|
clear(): void;
|
|
1080
1094
|
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>;
|
|
1095
|
+
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
1096
|
}
|
|
1083
1097
|
|
|
1084
1098
|
/**
|
|
@@ -1505,6 +1519,7 @@ declare const APP_NOTIFICATIONS: InjectionToken<IAppNotifications>;
|
|
|
1505
1519
|
declare const LIBSTEPPER_ACCESSOR: InjectionToken<LibStepperComponent>;
|
|
1506
1520
|
declare const LIBTABGROUP_ACCESSOR: InjectionToken<LibTabGroupComponent>;
|
|
1507
1521
|
declare const SHELL_CONFIG: InjectionToken<IShellConfig>;
|
|
1522
|
+
declare const BREADCRUMB_LABEL_RESOLVER: InjectionToken<IBreadcrumbLabelProcessor>;
|
|
1508
1523
|
|
|
1509
1524
|
declare class Icons {
|
|
1510
1525
|
static Dashboard: string;
|
|
@@ -1559,6 +1574,8 @@ declare abstract class BaseListComponent<T> implements OnInit, OnDestroy {
|
|
|
1559
1574
|
searchOptions: SearchOption[];
|
|
1560
1575
|
sortOptions: MenuOption[];
|
|
1561
1576
|
metaItems: HeaderMetaItem[];
|
|
1577
|
+
singularResult: string;
|
|
1578
|
+
pluralResults: string;
|
|
1562
1579
|
abstract newItemLink: string | null;
|
|
1563
1580
|
private routeSub$;
|
|
1564
1581
|
private loadSub$;
|
|
@@ -1832,6 +1849,8 @@ declare class NotificationsIndicatorComponent implements OnInit, OnDestroy {
|
|
|
1832
1849
|
allNotificationsLink?: NavLink;
|
|
1833
1850
|
private notificationsSub$;
|
|
1834
1851
|
private inboxAction;
|
|
1852
|
+
noNotifications: string;
|
|
1853
|
+
showNotificationsText: string;
|
|
1835
1854
|
newArrival: boolean;
|
|
1836
1855
|
constructor(notifications?: IAppNotifications | undefined, links?: any | undefined);
|
|
1837
1856
|
ngOnDestroy(): void;
|
|
@@ -1840,7 +1859,7 @@ declare class NotificationsIndicatorComponent implements OnInit, OnDestroy {
|
|
|
1840
1859
|
removeItem(index: number): void;
|
|
1841
1860
|
onClickOutside($event: any): void;
|
|
1842
1861
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsIndicatorComponent, never>;
|
|
1843
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsIndicatorComponent, "lib-notifications-indicator", never, {}, {}, never, never, false, never>;
|
|
1862
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsIndicatorComponent, "lib-notifications-indicator", never, { "noNotifications": { "alias": "noNotifications"; "required": false; }; "showNotificationsText": { "alias": "showNotificationsText"; "required": false; }; }, {}, never, never, false, never>;
|
|
1844
1863
|
}
|
|
1845
1864
|
|
|
1846
1865
|
declare class ShellSidebarLayoutComponent implements OnInit {
|
|
@@ -1892,5 +1911,5 @@ declare class IndiceComponentsModule {
|
|
|
1892
1911
|
static ɵinj: i0.ɵɵInjectorDeclaration<IndiceComponentsModule>;
|
|
1893
1912
|
}
|
|
1894
1913
|
|
|
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 };
|
|
1914
|
+
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 };
|
|
1915
|
+
export type { BreadcrumbContext, CloseInterceptorFn, IAddress, IAppLanguagesService, IAppLinks, IAppNotifications, IBreadcrumbLabelProcessor, IDictionary, IResultSet, IScreenSize, IShellConfig, IValidationProblemDetails, SearchOption, SelectInputOption, Toast, UserSettingKey };
|