@siemens/element-ng 47.5.0 → 47.6.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/breadcrumb-router/index.d.ts +8 -0
- package/breadcrumb-router/package.json +3 -0
- package/breadcrumb-router/si-breadcrumb-default-resolver.service.d.ts +23 -0
- package/breadcrumb-router/si-breadcrumb-router.component.d.ts +30 -0
- package/breadcrumb-router/si-breadcrumb-router.model.d.ts +53 -0
- package/breadcrumb-router/si-breadcrumb-router.module.d.ts +7 -0
- package/date-range-filter/si-date-range-filter.component.d.ts +5 -1
- package/fesm2022/siemens-element-ng-breadcrumb-router.mjs +263 -0
- package/fesm2022/siemens-element-ng-breadcrumb-router.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +1 -1
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +26 -5
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-formly.mjs +2 -2
- package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-icon.mjs +8 -22
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-main-detail-container.mjs +269 -0
- package/fesm2022/siemens-element-ng-main-detail-container.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-modal.mjs +1 -1
- package/fesm2022/siemens-element-ng-modal.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs +802 -0
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-resize-observer.mjs +6 -3
- package/fesm2022/siemens-element-ng-resize-observer.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-side-panel.mjs +1 -1
- package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-bar.mjs +1 -1
- package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs-next.mjs +29 -164
- package/fesm2022/siemens-element-ng-tabs-next.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs.mjs +1 -1
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-threshold.mjs +319 -0
- package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-tour.mjs +384 -0
- package/fesm2022/siemens-element-ng-tour.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tree-view.mjs +1 -1
- package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-wizard.mjs +1 -1
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -1
- package/icon/si-status-icon.component.d.ts +1 -6
- package/main-detail-container/index.d.ts +6 -0
- package/main-detail-container/package.json +3 -0
- package/main-detail-container/si-main-detail-container.component.d.ts +151 -0
- package/main-detail-container/si-main-detail-container.module.d.ts +7 -0
- package/navbar-vertical/index.d.ts +7 -0
- package/navbar-vertical/package.json +3 -0
- package/navbar-vertical/si-navbar-vertical-divider.component.d.ts +5 -0
- package/navbar-vertical/si-navbar-vertical-group-trigger.directive.d.ts +38 -0
- package/navbar-vertical/si-navbar-vertical-group.component.d.ts +16 -0
- package/navbar-vertical/si-navbar-vertical-header.component.d.ts +6 -0
- package/navbar-vertical/si-navbar-vertical-item-legacy.component.d.ts +17 -0
- package/navbar-vertical/si-navbar-vertical-item.component.d.ts +21 -0
- package/navbar-vertical/si-navbar-vertical.component.d.ts +148 -0
- package/navbar-vertical/si-navbar-vertical.model.d.ts +77 -0
- package/navbar-vertical/si-navbar-vertical.module.d.ts +7 -0
- package/navbar-vertical/si-navbar-vertical.provider.d.ts +7 -0
- package/package.json +24 -4
- package/resize-observer/si-resize-observer.directive.d.ts +3 -1
- package/tabs-next/si-tab-next-base.directive.d.ts +2 -5
- package/tabs-next/si-tab-next-link.component.d.ts +0 -2
- package/tabs-next/si-tabset-next.component.d.ts +3 -18
- package/template-i18n.json +16 -0
- package/threshold/index.d.ts +6 -0
- package/threshold/package.json +3 -0
- package/threshold/si-readonly-threshold-option.component.d.ts +11 -0
- package/threshold/si-threshold.component.d.ts +147 -0
- package/threshold/si-threshold.module.d.ts +7 -0
- package/tour/index.d.ts +6 -0
- package/tour/package.json +3 -0
- package/tour/si-tour-highlight.component.d.ts +15 -0
- package/tour/si-tour-token.model.d.ts +27 -0
- package/tour/si-tour.component.d.ts +31 -0
- package/tour/si-tour.model.d.ts +51 -0
- package/tour/si-tour.service.d.ts +62 -0
- package/translate/si-translatable-keys.interface.d.ts +16 -0
- package/tree-view/si-tree-view.component.d.ts +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-threshold.component";
|
|
3
|
+
export declare class SiThresholdModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiThresholdModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiThresholdModule, never, [typeof i1.SiThresholdComponent], [typeof i1.SiThresholdComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiThresholdModule>;
|
|
7
|
+
}
|
package/tour/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SiTourHighlightComponent {
|
|
3
|
+
private tourToken;
|
|
4
|
+
private anchor?;
|
|
5
|
+
protected readonly dim: import("@angular/core").WritableSignal<{
|
|
6
|
+
top: number;
|
|
7
|
+
left: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}>;
|
|
11
|
+
constructor();
|
|
12
|
+
private updateHighlight;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTourHighlightComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiTourHighlightComponent, "si-tour-highlight", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
6
|
+
import { ElementRef, InjectionToken, WritableSignal } from '@angular/core';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
import { TourStep } from './si-tour.model';
|
|
9
|
+
export interface TourStepInternal {
|
|
10
|
+
step: TourStep;
|
|
11
|
+
stepNumber: number;
|
|
12
|
+
totalSteps: number;
|
|
13
|
+
anchor?: ElementRef<HTMLElement>;
|
|
14
|
+
}
|
|
15
|
+
export type TourAction = 'next' | 'back' | 'cancel' | 'complete';
|
|
16
|
+
export interface PositionChange {
|
|
17
|
+
change: ConnectedOverlayPositionChange;
|
|
18
|
+
anchor: ElementRef;
|
|
19
|
+
}
|
|
20
|
+
export interface TourToken {
|
|
21
|
+
currentStep: Subject<TourStepInternal>;
|
|
22
|
+
blocked: WritableSignal<boolean>;
|
|
23
|
+
positionChange: Subject<PositionChange | undefined>;
|
|
24
|
+
sizeChange: Subject<void>;
|
|
25
|
+
control: Subject<TourAction>;
|
|
26
|
+
}
|
|
27
|
+
export declare const SI_TOUR_TOKEN: InjectionToken<TourToken>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { OverlayArrowPosition } from '@siemens/element-ng/common';
|
|
3
|
+
import { TourAction, TourStepInternal } from './si-tour-token.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SiTourComponent implements OnDestroy {
|
|
6
|
+
protected readonly positionClass: import("@angular/core").WritableSignal<string>;
|
|
7
|
+
protected readonly arrowPos: import("@angular/core").WritableSignal<OverlayArrowPosition | undefined>;
|
|
8
|
+
protected readonly step: import("@angular/core").WritableSignal<TourStepInternal | undefined>;
|
|
9
|
+
protected readonly show: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
protected readonly icons: Record<"elementCancel", string>;
|
|
11
|
+
protected tourToken: import("./si-tour-token.model").TourToken;
|
|
12
|
+
protected backText: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
13
|
+
protected nextText: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
14
|
+
protected skipText: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
15
|
+
protected doneText: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
16
|
+
protected ariaLabelClose: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
17
|
+
protected progressText: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
18
|
+
private elementRef;
|
|
19
|
+
private subscription?;
|
|
20
|
+
private prevFocus;
|
|
21
|
+
private readonly focusTrap;
|
|
22
|
+
private document;
|
|
23
|
+
constructor();
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
protected action(action: TourAction): void;
|
|
26
|
+
protected ensureFocused(): void;
|
|
27
|
+
protected keyListener(event: KeyboardEvent): void;
|
|
28
|
+
private updatePosition;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTourComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiTourComponent, "si-tour", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
6
|
+
/** Common options for tour step and as default for tour step */
|
|
7
|
+
export interface TourStepCommonOptions {
|
|
8
|
+
/** Whether Scroll the element into view. */
|
|
9
|
+
scrollTo?: boolean | ScrollIntoViewOptions;
|
|
10
|
+
/** Custom handler to perform scrolling. */
|
|
11
|
+
scrollToHandler?: (element: HTMLElement) => void;
|
|
12
|
+
/**
|
|
13
|
+
* A function that returns a promise.
|
|
14
|
+
* When the promise resolves, the step will be shown. E.g. use this to open
|
|
15
|
+
* dialogs, etc.
|
|
16
|
+
*/
|
|
17
|
+
beforeShowPromise?: () => Promise<any>;
|
|
18
|
+
/**
|
|
19
|
+
* A function that returns a promise.
|
|
20
|
+
* When the promise resolves, the next step will be shown. This can be used
|
|
21
|
+
* to 'clean up' action from `beforeShowPromise`.
|
|
22
|
+
*/
|
|
23
|
+
beforeNextPromise?: () => Promise<any>;
|
|
24
|
+
}
|
|
25
|
+
/** Options for each tour step. */
|
|
26
|
+
export interface TourStep extends TourStepCommonOptions {
|
|
27
|
+
/** Unique id for the step. Exposed in DOM as `data-step-id` */
|
|
28
|
+
id?: string;
|
|
29
|
+
/** Title to be displayed on the modal. */
|
|
30
|
+
title: TranslatableString;
|
|
31
|
+
/** Body text of the modal. */
|
|
32
|
+
text?: TranslatableString;
|
|
33
|
+
/** The element, the step should be attached to on the page. */
|
|
34
|
+
attachTo?: {
|
|
35
|
+
element: string | HTMLElement | (() => string | HTMLElement);
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated this has no effect, position is automatic
|
|
38
|
+
*/
|
|
39
|
+
on?: ModalPosition;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/** Options for tour */
|
|
43
|
+
export interface TourOptions {
|
|
44
|
+
/** Default options applied to all tour steps. */
|
|
45
|
+
defaultStepOptions?: TourStepCommonOptions;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The position of the modal dialog with respect to the highlighted element.
|
|
49
|
+
* @deprecated this has no effect, position is automatic
|
|
50
|
+
*/
|
|
51
|
+
export type ModalPosition = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { TourOptions, TourStep } from './si-tour.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiTourService {
|
|
5
|
+
private injector;
|
|
6
|
+
private resizeObserver;
|
|
7
|
+
private overlay;
|
|
8
|
+
private outsideClickDispatcher;
|
|
9
|
+
private overlayRefHighlight?;
|
|
10
|
+
private overlayRef?;
|
|
11
|
+
private portal?;
|
|
12
|
+
private options;
|
|
13
|
+
private steps;
|
|
14
|
+
private currentStepIndex;
|
|
15
|
+
private currentStep?;
|
|
16
|
+
private active;
|
|
17
|
+
private tourToken;
|
|
18
|
+
private positionChangeSub?;
|
|
19
|
+
private resizeSub?;
|
|
20
|
+
private document;
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Event triggered after the tour is completed.
|
|
24
|
+
*/
|
|
25
|
+
readonly onTourComplete: Subject<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Event triggered after the tour is cancelled, either through skip button or closing the tour dialog.
|
|
28
|
+
*/
|
|
29
|
+
readonly onTourCancel: Subject<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Sets options for the whole tour.
|
|
32
|
+
*/
|
|
33
|
+
setOptions(options: TourOptions): void;
|
|
34
|
+
/**
|
|
35
|
+
* Add steps to the tour
|
|
36
|
+
*/
|
|
37
|
+
addSteps(steps: TourStep[]): void;
|
|
38
|
+
/**
|
|
39
|
+
* Clear all steps
|
|
40
|
+
*/
|
|
41
|
+
clearSteps(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Start the tour
|
|
44
|
+
*/
|
|
45
|
+
start(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Finish the tour
|
|
48
|
+
*/
|
|
49
|
+
complete(): void;
|
|
50
|
+
private controlAction;
|
|
51
|
+
private makeStep;
|
|
52
|
+
private scrollIntoView;
|
|
53
|
+
private handleBeforeNextPromise;
|
|
54
|
+
private makeOverlay;
|
|
55
|
+
private handleResizeSubscription;
|
|
56
|
+
private isElementVisible;
|
|
57
|
+
private handlePositionChangeSubscription;
|
|
58
|
+
private getElement;
|
|
59
|
+
private hide;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTourService, never>;
|
|
61
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SiTourService>;
|
|
62
|
+
}
|
|
@@ -124,8 +124,14 @@ export interface SiTranslatableKeys {
|
|
|
124
124
|
'SI_LAUNCHPAD.TITLE'?: string;
|
|
125
125
|
'SI_LIST_DETAILS.BACK'?: string;
|
|
126
126
|
'SI_LOADING_SPINNER.LABEL'?: string;
|
|
127
|
+
'SI_MAIN_DETAIL_CONTAINER.BACK'?: string;
|
|
127
128
|
'SI_NAVBAR.OPEN_LAUNCHPAD'?: string;
|
|
128
129
|
'SI_NAVBAR.TOGGLE_NAVIGATION'?: string;
|
|
130
|
+
'SI_NAVBAR_VERTICAL.COLLAPSE'?: string;
|
|
131
|
+
'SI_NAVBAR_VERTICAL.EXPAND'?: string;
|
|
132
|
+
'SI_NAVBAR_VERTICAL.SEARCH_PLACEHOLDER'?: string;
|
|
133
|
+
'SI_NAVBAR_VERTICAL.SKIP_LINK.MAIN_LABEL'?: string;
|
|
134
|
+
'SI_NAVBAR_VERTICAL.SKIP_LINK.NAVIGATION_LABEL'?: string;
|
|
129
135
|
'SI_PAGINATION.BACK'?: string;
|
|
130
136
|
'SI_PAGINATION.FORWARD'?: string;
|
|
131
137
|
'SI_PAGINATION.NAV_LABEL'?: string;
|
|
@@ -160,7 +166,17 @@ export interface SiTranslatableKeys {
|
|
|
160
166
|
'SI_STATUS_BAR.COLLAPSE'?: string;
|
|
161
167
|
'SI_STATUS_BAR.EXPAND'?: string;
|
|
162
168
|
'SI_STATUS_BAR.MUTE'?: string;
|
|
169
|
+
'SI_THRESHOLD.ADD'?: string;
|
|
170
|
+
'SI_THRESHOLD.DELETE'?: string;
|
|
171
|
+
'SI_THRESHOLD.INPUT_LABEL'?: string;
|
|
172
|
+
'SI_THRESHOLD.STATUS'?: string;
|
|
163
173
|
'SI_TOAST.CLOSE'?: string;
|
|
174
|
+
'SI_TOUR.BACK'?: string;
|
|
175
|
+
'SI_TOUR.CLOSE'?: string;
|
|
176
|
+
'SI_TOUR.DONE'?: string;
|
|
177
|
+
'SI_TOUR.NEXT'?: string;
|
|
178
|
+
'SI_TOUR.PROGRESS'?: string;
|
|
179
|
+
'SI_TOUR.SKIP'?: string;
|
|
164
180
|
'SI_TREE_VIEW.COLLAPSE_ALL'?: string;
|
|
165
181
|
'SI_TREE_VIEW.EXPAND_ALL'?: string;
|
|
166
182
|
'SI_TYPEAHEAD.AUTOCOMPLETE_LIST_LABEL'?: string;
|
|
@@ -159,7 +159,7 @@ export declare class SiTreeViewComponent implements OnInit, OnChanges, OnDestroy
|
|
|
159
159
|
*/
|
|
160
160
|
readonly enableIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
161
161
|
/**
|
|
162
|
-
* Shows or hides context menu button.
|
|
162
|
+
* Shows or hides context menu button and also controls context menu visibility on right click.
|
|
163
163
|
* @defaultValue true
|
|
164
164
|
* @defaultref {@link SiTreeViewService#enableContextMenuButton}
|
|
165
165
|
*/
|