@siemens/element-ng 47.3.0 → 47.4.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/badge/si-badge.component.d.ts +1 -1
- package/breadcrumb/breadcrumb-item.model.d.ts +36 -0
- package/breadcrumb/index.d.ts +7 -0
- package/breadcrumb/package.json +3 -0
- package/breadcrumb/si-breadcrumb-item-template.directive.d.ts +10 -0
- package/breadcrumb/si-breadcrumb.component.d.ts +46 -0
- package/breadcrumb/si-breadcrumb.module.d.ts +7 -0
- package/card/index.d.ts +6 -0
- package/card/package.json +3 -0
- package/card/si-card.component.d.ts +79 -0
- package/card/si-card.module.d.ts +7 -0
- package/circle-status/index.d.ts +6 -0
- package/circle-status/package.json +3 -0
- package/circle-status/si-circle-status.component.d.ts +66 -0
- package/circle-status/si-circle-status.module.d.ts +7 -0
- package/column-selection-dialog/column-selection-editor/si-column-selection-editor.component.d.ts +23 -0
- package/column-selection-dialog/index.d.ts +6 -0
- package/column-selection-dialog/package.json +3 -0
- package/column-selection-dialog/si-column-selection-dialog.component.d.ts +114 -0
- package/column-selection-dialog/si-column-selection-dialog.service.d.ts +20 -0
- package/column-selection-dialog/si-column-selection-dialog.types.d.ts +68 -0
- package/common/models/status-type.model.d.ts +2 -2
- package/date-range-filter/index.d.ts +8 -0
- package/date-range-filter/package.json +3 -0
- package/date-range-filter/si-date-range-calculation.service.d.ts +33 -0
- package/date-range-filter/si-date-range-filter.component.d.ts +248 -0
- package/date-range-filter/si-date-range-filter.module.d.ts +7 -0
- package/date-range-filter/si-date-range-filter.types.d.ts +40 -0
- package/date-range-filter/si-relative-date.component.d.ts +31 -0
- package/datepicker/components/si-calendar-body.component.d.ts +137 -0
- package/datepicker/components/si-calendar-date-cell.directive.d.ts +16 -0
- package/datepicker/components/si-calendar-direction-button.component.d.ts +18 -0
- package/datepicker/components/si-compare-adapter.d.ts +37 -0
- package/datepicker/components/si-day-selection.component.d.ts +76 -0
- package/datepicker/components/si-initial-focus.component.d.ts +74 -0
- package/datepicker/components/si-month-selection.component.d.ts +62 -0
- package/datepicker/components/si-year-selection.component.d.ts +65 -0
- package/datepicker/date-time-helper.d.ts +302 -0
- package/datepicker/index.d.ts +15 -0
- package/datepicker/package.json +3 -0
- package/datepicker/si-calendar-button.component.d.ts +49 -0
- package/datepicker/si-date-input.directive.d.ts +114 -0
- package/datepicker/si-date-range.component.d.ts +150 -0
- package/datepicker/si-datepicker-overlay.component.d.ts +82 -0
- package/datepicker/si-datepicker-overlay.directive.d.ts +104 -0
- package/datepicker/si-datepicker.component.d.ts +228 -0
- package/datepicker/si-datepicker.directive.d.ts +62 -0
- package/datepicker/si-datepicker.model.d.ts +129 -0
- package/datepicker/si-datepicker.module.d.ts +12 -0
- package/datepicker/si-timepicker.component.d.ts +214 -0
- package/electron-titlebar/electron.helpers.d.ts +5 -0
- package/electron-titlebar/index.d.ts +7 -0
- package/electron-titlebar/package.json +3 -0
- package/electron-titlebar/si-electron-titlebar.component.d.ts +72 -0
- package/electron-titlebar/si-electron-titlebar.module.d.ts +7 -0
- package/fesm2022/siemens-element-ng-badge.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +302 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-card.mjs +122 -0
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs +146 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +369 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +649 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs +4231 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +142 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs +751 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs +153 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon.mjs +11 -1
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-info-page.mjs +63 -0
- package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-inline-notification.mjs +4 -6
- package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ip-input.mjs +451 -0
- package/fesm2022/siemens-element-ng-ip-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-localization.mjs +306 -0
- package/fesm2022/siemens-element-ng-localization.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs +480 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs +193 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-slider.mjs +313 -0
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs +89 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-split.mjs +575 -0
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs +196 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs +47 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-tabs.mjs +395 -0
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs +76 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs.map +1 -0
- package/file-uploader/index.d.ts +8 -0
- package/file-uploader/package.json +3 -0
- package/file-uploader/si-file-dropzone.component.d.ts +106 -0
- package/file-uploader/si-file-uploader.component.d.ts +296 -0
- package/file-uploader/si-file-uploader.model.d.ts +12 -0
- package/file-uploader/si-file-uploader.module.d.ts +8 -0
- package/filter-bar/filter.d.ts +26 -0
- package/filter-bar/index.d.ts +8 -0
- package/filter-bar/package.json +3 -0
- package/filter-bar/si-filter-bar.component.d.ts +65 -0
- package/filter-bar/si-filter-bar.module.d.ts +7 -0
- package/filter-bar/si-filter-pill.component.d.ts +20 -0
- package/icon/element-icons.d.ts +10 -0
- package/info-page/index.d.ts +5 -0
- package/info-page/package.json +3 -0
- package/info-page/si-info-page.component.d.ts +38 -0
- package/inline-notification/si-inline-notification.component.d.ts +0 -2
- package/ip-input/address-utils.d.ts +28 -0
- package/ip-input/address-validators.d.ts +21 -0
- package/ip-input/index.d.ts +7 -0
- package/ip-input/package.json +3 -0
- package/ip-input/si-ip-input.directive.d.ts +53 -0
- package/ip-input/si-ip4-input.directive.d.ts +9 -0
- package/ip-input/si-ip6-input.directive.d.ts +10 -0
- package/localization/index.d.ts +8 -0
- package/localization/package.json +3 -0
- package/localization/si-directionality.d.ts +41 -0
- package/localization/si-locale-id.d.ts +22 -0
- package/localization/si-locale-store.d.ts +16 -0
- package/localization/si-locale.service.d.ts +73 -0
- package/package.json +91 -3
- package/photo-upload/index.d.ts +6 -0
- package/photo-upload/package.json +3 -0
- package/photo-upload/si-image-cropper-style.component.d.ts +5 -0
- package/photo-upload/si-photo-upload.component.d.ts +298 -0
- package/search-bar/index.d.ts +6 -0
- package/search-bar/package.json +3 -0
- package/search-bar/si-search-bar.component.d.ts +87 -0
- package/search-bar/si-search-bar.module.d.ts +7 -0
- package/slider/index.d.ts +6 -0
- package/slider/package.json +3 -0
- package/slider/si-slider.component.d.ts +129 -0
- package/slider/si-slider.module.d.ts +7 -0
- package/sort-bar/index.d.ts +6 -0
- package/sort-bar/package.json +3 -0
- package/sort-bar/si-sort-bar.component.d.ts +42 -0
- package/sort-bar/si-sort-bar.module.d.ts +7 -0
- package/split/index.d.ts +8 -0
- package/split/package.json +3 -0
- package/split/si-split-part.component.d.ts +154 -0
- package/split/si-split.component.d.ts +48 -0
- package/split/si-split.interfaces.d.ts +17 -0
- package/split/si-split.module.d.ts +8 -0
- package/status-toggle/index.d.ts +6 -0
- package/status-toggle/package.json +3 -0
- package/status-toggle/si-status-toggle.component.d.ts +54 -0
- package/status-toggle/status-toggle.model.d.ts +26 -0
- package/system-banner/index.d.ts +5 -0
- package/system-banner/package.json +3 -0
- package/system-banner/system-banner.component.d.ts +23 -0
- package/tabs/index.d.ts +7 -0
- package/tabs/package.json +3 -0
- package/tabs/si-tab/index.d.ts +5 -0
- package/tabs/si-tab/si-tab.component.d.ts +58 -0
- package/tabs/si-tabs.module.d.ts +8 -0
- package/tabs/si-tabset/index.d.ts +5 -0
- package/tabs/si-tabset/si-tabset.component.d.ts +100 -0
- package/template-i18n.json +82 -0
- package/translate/si-translatable-keys.interface.d.ts +82 -0
- package/unauthorized-page/index.d.ts +6 -0
- package/unauthorized-page/package.json +3 -0
- package/unauthorized-page/si-unauthorized-page.component.d.ts +35 -0
- package/unauthorized-page/si-unauthorized-page.module.d.ts +7 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type StatusType } from '@siemens/element-ng/common';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export type BadgeType = StatusType | 'default' | 'inverse' | '
|
|
3
|
+
export type BadgeType = StatusType | 'default' | 'inverse' | 'info-emphasis' | 'success-emphasis' | 'warning-emphasis' | 'danger-emphasis' | 'critical-emphasis' | 'caution-emphasis';
|
|
4
4
|
export declare class SiBadgeComponent {
|
|
5
5
|
/**
|
|
6
6
|
* Optional icon
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { Link } from '@siemens/element-ng/link';
|
|
6
|
+
/**
|
|
7
|
+
* Item that should be displayed in a breadcrumb.
|
|
8
|
+
* As input, we expect an optional title and link,
|
|
9
|
+
* which can be an URL or array of URL segments.
|
|
10
|
+
*/
|
|
11
|
+
export interface BreadcrumbItem extends Link {
|
|
12
|
+
title: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Extends {@link EnumeratedBreadcrumbItem} and adds
|
|
16
|
+
* the level, if it is shortened, a shortened title and
|
|
17
|
+
* if it is the last item
|
|
18
|
+
*/
|
|
19
|
+
export interface EnumeratedBreadcrumbItem extends BreadcrumbItem {
|
|
20
|
+
/**
|
|
21
|
+
* The current level relative to the root, the root is 0
|
|
22
|
+
*/
|
|
23
|
+
level: number;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the title is displayed in full length or it is shortened.
|
|
26
|
+
*/
|
|
27
|
+
shortened?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The shortened title, if the title is not shortened, it is the same as the title.
|
|
30
|
+
*/
|
|
31
|
+
shortenedTitle?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether it is the last breadcrumb item and should be styled differently.
|
|
34
|
+
*/
|
|
35
|
+
lastItem?: boolean;
|
|
36
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EnumeratedBreadcrumbItem } from './breadcrumb-item.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiBreadcrumbItemTemplateDirective {
|
|
4
|
+
static ngTemplateContextGuard(directive: SiBreadcrumbItemTemplateDirective, context: unknown): context is {
|
|
5
|
+
item: EnumeratedBreadcrumbItem;
|
|
6
|
+
title?: string;
|
|
7
|
+
};
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiBreadcrumbItemTemplateDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiBreadcrumbItemTemplateDirective, "[siBreadcrumbItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { BreadcrumbItem, EnumeratedBreadcrumbItem } from './breadcrumb-item.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiBreadcrumbComponent implements OnChanges, OnDestroy {
|
|
5
|
+
/** Array of breadcrumb items. */
|
|
6
|
+
readonly items: import("@angular/core").InputSignal<BreadcrumbItem[]>;
|
|
7
|
+
/**
|
|
8
|
+
* Shows the "root" route as the provided title string instead of an icon.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue false
|
|
11
|
+
*/
|
|
12
|
+
readonly showRootAsText: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
/**
|
|
14
|
+
* Aria label for the main breadcrumb navigation. Needed for a11y.
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue
|
|
17
|
+
* ```
|
|
18
|
+
* $localize`:@@SI_BREADCRUMB:Breadcrumbs`
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
readonly ariaLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
22
|
+
private translationSubscription?;
|
|
23
|
+
private itemsProcessed;
|
|
24
|
+
private numberOfItems;
|
|
25
|
+
protected itemsShown: EnumeratedBreadcrumbItem[];
|
|
26
|
+
protected itemsHidden: EnumeratedBreadcrumbItem[];
|
|
27
|
+
protected breadcrumbShortened: boolean;
|
|
28
|
+
protected ellipsesLevel: number;
|
|
29
|
+
protected breadcrumbDropdownOpen: number | undefined;
|
|
30
|
+
protected addExpandDropdown: boolean;
|
|
31
|
+
protected controlId: string;
|
|
32
|
+
protected readonly icons: Record<"elementBreadcrumbRoot" | "elementRight2", string>;
|
|
33
|
+
private readonly breadcrumbElement;
|
|
34
|
+
private readonly breadcrumbElements;
|
|
35
|
+
private changeDetector;
|
|
36
|
+
private translate;
|
|
37
|
+
ngOnChanges(): void;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
private processItems;
|
|
40
|
+
protected toggleBreadcrumbDropdown(itemLevel: number): void;
|
|
41
|
+
protected documentClick(targetElement: any): void;
|
|
42
|
+
protected resetBreadcrumb(): void;
|
|
43
|
+
private calculateBreadcrumb;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiBreadcrumbComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiBreadcrumbComponent, "si-breadcrumb", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "showRootAsText": { "alias": "showRootAsText"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-breadcrumb.component";
|
|
3
|
+
export declare class SiBreadcrumbModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiBreadcrumbModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiBreadcrumbModule, never, [typeof i1.SiBreadcrumbComponent], [typeof i1.SiBreadcrumbComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiBreadcrumbModule>;
|
|
7
|
+
}
|
package/card/index.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { MenuItem as MenuItemLegacy } from '@siemens/element-ng/common';
|
|
2
|
+
import { ContentActionBarMainItem, ViewType } from '@siemens/element-ng/content-action-bar';
|
|
3
|
+
import { MenuItem } from '@siemens/element-ng/menu';
|
|
4
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SiCardComponent {
|
|
7
|
+
/**
|
|
8
|
+
* Card header text.
|
|
9
|
+
*/
|
|
10
|
+
readonly heading: import("@angular/core").InputSignal<TranslatableString | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* Input list of primary action items. Supports up to **4** actions and omits additional ones.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue []
|
|
15
|
+
*/
|
|
16
|
+
readonly primaryActions: import("@angular/core").InputSignal<(MenuItemLegacy | ContentActionBarMainItem)[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Input list of secondary action items.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue []
|
|
21
|
+
*/
|
|
22
|
+
readonly secondaryActions: import("@angular/core").InputSignal<(MenuItemLegacy | MenuItem)[]>;
|
|
23
|
+
/**
|
|
24
|
+
* A param that will be passed to the `action` in the primary/secondary actions.
|
|
25
|
+
* This allows to re-use the same primary/secondary action arrays across rows
|
|
26
|
+
* in a table.
|
|
27
|
+
*/
|
|
28
|
+
readonly actionParam: import("@angular/core").InputSignal<any>;
|
|
29
|
+
/**
|
|
30
|
+
* The view type of the content action bar of the card. Default is `collapsible`
|
|
31
|
+
* for dashboards. However, in some cases you might need to change to `expanded`
|
|
32
|
+
* or `mobile`.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue 'collapsible'
|
|
35
|
+
*/
|
|
36
|
+
readonly actionBarViewType: import("@angular/core").InputSignal<ViewType>;
|
|
37
|
+
/**
|
|
38
|
+
* Optional setting of html title attribute for the content action bar.
|
|
39
|
+
* Helpful for a11y when only one action is configured in expand mode.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue ''
|
|
42
|
+
*/
|
|
43
|
+
readonly actionBarTitle: import("@angular/core").InputSignal<TranslatableString>;
|
|
44
|
+
/**
|
|
45
|
+
* Image source for the card.
|
|
46
|
+
*/
|
|
47
|
+
readonly imgSrc: import("@angular/core").InputSignal<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Alt text for a provided image.
|
|
50
|
+
*/
|
|
51
|
+
readonly imgAlt: import("@angular/core").InputSignal<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Defines if an image is placed on top or start (left) of the card.
|
|
54
|
+
*
|
|
55
|
+
* @defaultValue 'vertical'
|
|
56
|
+
*/
|
|
57
|
+
readonly imgDir: import("@angular/core").InputSignal<"horizontal" | "vertical" | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the image [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property,
|
|
60
|
+
* Sets the image [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property.
|
|
61
|
+
*
|
|
62
|
+
* @defaultValue 'scale-down'
|
|
63
|
+
*/
|
|
64
|
+
readonly imgObjectFit: import("@angular/core").InputSignal<"fill" | "contain" | "cover" | "none" | "scale-down" | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the image [object-position](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) CSS property.
|
|
67
|
+
*/
|
|
68
|
+
readonly imgObjectPosition: import("@angular/core").InputSignal<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* In case the card uses an image and horizontal direction is used we set flex row direction.
|
|
71
|
+
*/
|
|
72
|
+
protected readonly classCardHorizontal: import("@angular/core").Signal<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* Returns `true` when primary or secondary actions are set.
|
|
75
|
+
*/
|
|
76
|
+
readonly displayContentActionBar: import("@angular/core").Signal<boolean>;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCardComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiCardComponent, "si-card", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "primaryActions": { "alias": "primaryActions"; "required": false; "isSignal": true; }; "secondaryActions": { "alias": "secondaryActions"; "required": false; "isSignal": true; }; "actionParam": { "alias": "actionParam"; "required": false; "isSignal": true; }; "actionBarViewType": { "alias": "actionBarViewType"; "required": false; "isSignal": true; }; "actionBarTitle": { "alias": "actionBarTitle"; "required": false; "isSignal": true; }; "imgSrc": { "alias": "imgSrc"; "required": false; "isSignal": true; }; "imgAlt": { "alias": "imgAlt"; "required": false; "isSignal": true; }; "imgDir": { "alias": "imgDir"; "required": false; "isSignal": true; }; "imgObjectFit": { "alias": "imgObjectFit"; "required": false; "isSignal": true; }; "imgObjectPosition": { "alias": "imgObjectPosition"; "required": false; "isSignal": true; }; }, {}, never, ["[headerIcon]", "[body]", "[footer]"], true, never>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-card.component";
|
|
3
|
+
export declare class SiCardModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCardModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiCardModule, never, [typeof i1.SiCardComponent], [typeof i1.SiCardComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiCardModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { EntityStatusType, StatusIcon } from '@siemens/element-ng/common';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SiCircleStatusComponent implements OnChanges, OnDestroy {
|
|
6
|
+
private readonly statusIcons;
|
|
7
|
+
/**
|
|
8
|
+
* The status (success, info, warning, danger) to be visualized.
|
|
9
|
+
*/
|
|
10
|
+
readonly status: import("@angular/core").InputSignal<EntityStatusType | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* A custom color (e.g. `#fefefe`) for exceptional cases.
|
|
13
|
+
* @deprecated use the semantic `status` input instead.
|
|
14
|
+
*/
|
|
15
|
+
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Set a domain type icon (e.g. `element-door`) for which the status shall be shown.
|
|
18
|
+
* Leave undefined for visualizing the status without an icon.
|
|
19
|
+
*/
|
|
20
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Set the size using either regular or small only works when used together with `icon`
|
|
23
|
+
*
|
|
24
|
+
* @defaultValue 'regular'
|
|
25
|
+
*/
|
|
26
|
+
readonly size: import("@angular/core").InputSignal<"regular" | "small">;
|
|
27
|
+
/**
|
|
28
|
+
* event direction is out
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue false
|
|
31
|
+
*/
|
|
32
|
+
readonly eventOut: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Custom icon class for event out
|
|
35
|
+
*/
|
|
36
|
+
readonly eventIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the status should appear with a pulsing circle around the badge.
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue false
|
|
41
|
+
*/
|
|
42
|
+
readonly blink: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Blink pulse generator for synchronized blinking with other components
|
|
45
|
+
*/
|
|
46
|
+
readonly blinkPulse: import("@angular/core").InputSignal<Observable<boolean> | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Aria label for icon and status combo. Needed for a11y
|
|
49
|
+
*/
|
|
50
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
51
|
+
protected readonly backgroundClass: import("@angular/core").Signal<string>;
|
|
52
|
+
protected readonly theAriaLabel: import("@angular/core").Signal<string>;
|
|
53
|
+
protected readonly autoLabel: import("@angular/core").Signal<string>;
|
|
54
|
+
protected readonly statusIcon: import("@angular/core").Signal<StatusIcon | undefined>;
|
|
55
|
+
protected readonly blinkOn: import("@angular/core").WritableSignal<boolean>;
|
|
56
|
+
protected readonly contrastFix: import("@angular/core").WritableSignal<boolean>;
|
|
57
|
+
protected readonly icons: Record<"elementRight4", string>;
|
|
58
|
+
private blinkSubs?;
|
|
59
|
+
private readonly bg;
|
|
60
|
+
private blinkService;
|
|
61
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
62
|
+
ngOnDestroy(): void;
|
|
63
|
+
private calculateContrastFix;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCircleStatusComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiCircleStatusComponent, "si-circle-status", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "eventOut": { "alias": "eventOut"; "required": false; "isSignal": true; }; "eventIcon": { "alias": "eventIcon"; "required": false; "isSignal": true; }; "blink": { "alias": "blink"; "required": false; "isSignal": true; }; "blinkPulse": { "alias": "blinkPulse"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-circle-status.component";
|
|
3
|
+
export declare class SiCircleStatusModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCircleStatusModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiCircleStatusModule, never, [typeof i1.SiCircleStatusComponent], [typeof i1.SiCircleStatusComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiCircleStatusModule>;
|
|
7
|
+
}
|
package/column-selection-dialog/column-selection-editor/si-column-selection-editor.component.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CdkOption } from '@angular/cdk/listbox';
|
|
2
|
+
import { Column } from '../si-column-selection-dialog.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiColumnSelectionEditorComponent {
|
|
5
|
+
readonly column: import("@angular/core").InputSignal<Column>;
|
|
6
|
+
readonly selected: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
readonly renameInputLabel: import("@angular/core").InputSignal<string>;
|
|
8
|
+
readonly columnVisibilityConfigurable: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
readonly titleChange: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
readonly visibilityChange: import("@angular/core").OutputEmitterRef<void>;
|
|
11
|
+
protected readonly cdkOption: CdkOption<any>;
|
|
12
|
+
protected editing: boolean;
|
|
13
|
+
private readonly title;
|
|
14
|
+
private readonly elementRef;
|
|
15
|
+
protected readonly icons: Record<"elementHide" | "elementMenu" | "elementLock" | "elementShow", string>;
|
|
16
|
+
protected tryEdit(event: KeyboardEvent): void;
|
|
17
|
+
protected updateTitle(value: string): void;
|
|
18
|
+
startEdit(): void;
|
|
19
|
+
stopEdit(): void;
|
|
20
|
+
toggleVisibility(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiColumnSelectionEditorComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiColumnSelectionEditorComponent, "si-column-selection-editor", never, { "column": { "alias": "column"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": true; "isSignal": true; }; "renameInputLabel": { "alias": "renameInputLabel"; "required": true; "isSignal": true; }; "columnVisibilityConfigurable": { "alias": "columnVisibilityConfigurable"; "required": true; "isSignal": true; }; }, { "titleChange": "titleChange"; "visibilityChange": "visibilityChange"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ModalRef } from '@siemens/element-ng/modal';
|
|
4
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
5
|
+
import { Column, ColumnSelectionDialogResult } from './si-column-selection-dialog.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SiColumnSelectionDialogComponent implements OnInit {
|
|
8
|
+
readonly titleId: import("@angular/core").InputSignal<string | undefined>;
|
|
9
|
+
readonly heading: import("@angular/core").InputSignal<TranslatableString | undefined>;
|
|
10
|
+
readonly bodyTitle: import("@angular/core").InputSignal<TranslatableString | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* @defaultValue
|
|
13
|
+
* ```
|
|
14
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.SUBMIT:Apply`
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
readonly submitBtnName: import("@angular/core").InputSignal<TranslatableString>;
|
|
18
|
+
/**
|
|
19
|
+
* @defaultValue
|
|
20
|
+
* ```
|
|
21
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.CANCEL:Cancel`
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
readonly cancelBtnName: import("@angular/core").InputSignal<TranslatableString>;
|
|
25
|
+
/**
|
|
26
|
+
* @defaultValue
|
|
27
|
+
* ```
|
|
28
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.RESTORE_TO_DEFAULT:Restore to default`
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
readonly restoreToDefaultBtnName: import("@angular/core").InputSignal<TranslatableString>;
|
|
32
|
+
/**
|
|
33
|
+
* @defaultValue
|
|
34
|
+
* ```
|
|
35
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.HIDDEN:Hidden`
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
readonly hiddenText: import("@angular/core").InputSignal<TranslatableString>;
|
|
39
|
+
/**
|
|
40
|
+
* @defaultValue
|
|
41
|
+
* ```
|
|
42
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.VISIBLE:Visible`
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
readonly visibleText: import("@angular/core").InputSignal<TranslatableString>;
|
|
46
|
+
/** @defaultValue false */
|
|
47
|
+
readonly restoreEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
48
|
+
readonly columns: import("@angular/core").ModelSignal<Column[]>;
|
|
49
|
+
/**
|
|
50
|
+
* @defaultValue
|
|
51
|
+
* ```
|
|
52
|
+
* {}
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
readonly translationParams: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
56
|
+
/**
|
|
57
|
+
* @defaultValue
|
|
58
|
+
* ```
|
|
59
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.LIST_ARIA_LABEL:
|
|
60
|
+
* List of possible columns.
|
|
61
|
+
* Items can be moved using Alt+ArrowUp or Alt+ArrowDown.
|
|
62
|
+
* Press Enter to rename supported items.`
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
readonly listAriaLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
66
|
+
/**
|
|
67
|
+
* @defaultValue
|
|
68
|
+
* ```
|
|
69
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.RENAME_INPUT_ARIA_LABEL:Rename column`
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
readonly renameInputAriaLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
73
|
+
/**
|
|
74
|
+
* @defaultValue
|
|
75
|
+
* ```
|
|
76
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.ITEM_MOVED:Item is now at position {{targetPosition}}`
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
readonly a11yItemMovedMessage: import("@angular/core").InputSignal<TranslatableString>;
|
|
80
|
+
/**
|
|
81
|
+
* @defaultValue
|
|
82
|
+
* ```
|
|
83
|
+
* $localize`:@@SI_COLUMN_SELECTION_DIALOG.ITEM_NOT_MOVED:Item was not moved`
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
readonly a11yItemNotMovedMessage: import("@angular/core").InputSignal<TranslatableString>;
|
|
87
|
+
/** @defaultValue true */
|
|
88
|
+
readonly columnVisibilityConfigurable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
89
|
+
private readonly listOptions;
|
|
90
|
+
private readonly modalBodyElement;
|
|
91
|
+
private tempHeaderData;
|
|
92
|
+
protected readonly modalRef: ModalRef<SiColumnSelectionDialogComponent, ColumnSelectionDialogResult>;
|
|
93
|
+
protected readonly icons: Record<"elementCancel", string>;
|
|
94
|
+
protected visibleIds: string[];
|
|
95
|
+
private readonly liveAnnouncer;
|
|
96
|
+
private readonly translateService;
|
|
97
|
+
ngOnInit(): void;
|
|
98
|
+
/** @internal */
|
|
99
|
+
get backupColumns(): Column[];
|
|
100
|
+
protected submitColumnSelection(): void;
|
|
101
|
+
protected cancelColumnSelection(): void;
|
|
102
|
+
protected drop(event: CdkDragDrop<string[]>): void;
|
|
103
|
+
protected restoreToDefault(): void;
|
|
104
|
+
protected moveDown(index: number, event: Event): void;
|
|
105
|
+
protected moveUp(index: number, event: Event): void;
|
|
106
|
+
protected emitChange(): void;
|
|
107
|
+
protected updateVisibility(): void;
|
|
108
|
+
private setupColumnData;
|
|
109
|
+
private announceSuccessfulMove;
|
|
110
|
+
private announceNotSuccessfulMove;
|
|
111
|
+
private announceMove;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiColumnSelectionDialogComponent, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiColumnSelectionDialogComponent, "si-column-selection-dialog", never, { "titleId": { "alias": "titleId"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "bodyTitle": { "alias": "bodyTitle"; "required": false; "isSignal": true; }; "submitBtnName": { "alias": "submitBtnName"; "required": false; "isSignal": true; }; "cancelBtnName": { "alias": "cancelBtnName"; "required": false; "isSignal": true; }; "restoreToDefaultBtnName": { "alias": "restoreToDefaultBtnName"; "required": false; "isSignal": true; }; "hiddenText": { "alias": "hiddenText"; "required": false; "isSignal": true; }; "visibleText": { "alias": "visibleText"; "required": false; "isSignal": true; }; "restoreEnabled": { "alias": "restoreEnabled"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "translationParams": { "alias": "translationParams"; "required": false; "isSignal": true; }; "listAriaLabel": { "alias": "listAriaLabel"; "required": false; "isSignal": true; }; "renameInputAriaLabel": { "alias": "renameInputAriaLabel"; "required": false; "isSignal": true; }; "a11yItemMovedMessage": { "alias": "a11yItemMovedMessage"; "required": false; "isSignal": true; }; "a11yItemNotMovedMessage": { "alias": "a11yItemNotMovedMessage"; "required": false; "isSignal": true; }; "columnVisibilityConfigurable": { "alias": "columnVisibilityConfigurable"; "required": false; "isSignal": true; }; }, { "columns": "columnsChange"; }, never, never, true, never>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ModalDependencyInjectionOptions } from '@siemens/element-ng/modal';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ColumnSelectionDialogResult, SiColumnSelectionDialogConfig } from './si-column-selection-dialog.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SiColumnSelectionDialogService {
|
|
6
|
+
private modalService;
|
|
7
|
+
/**
|
|
8
|
+
* Opens a column selection dialog.
|
|
9
|
+
*
|
|
10
|
+
* Despite other dialogs,
|
|
11
|
+
* this dialog informs the consumer not ONLY with clicking `submit` or `cancel`,
|
|
12
|
+
* but also with changing the place or visibility of a dialog row
|
|
13
|
+
* thanks to the `instant` type of emitted event.
|
|
14
|
+
*
|
|
15
|
+
* {@label WITH_OBJECT}
|
|
16
|
+
*/
|
|
17
|
+
showColumnSelectionDialog(dialogConfig: SiColumnSelectionDialogConfig, diOptions?: ModalDependencyInjectionOptions): Observable<ColumnSelectionDialogResult>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiColumnSelectionDialogService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SiColumnSelectionDialogService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
6
|
+
export interface Column {
|
|
7
|
+
/**
|
|
8
|
+
* Unique id
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Title of the column.
|
|
13
|
+
*/
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* Decides if the column is visible to the user.
|
|
17
|
+
*/
|
|
18
|
+
visible: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* If true, the order of the column can be changed by dragging it to another position.
|
|
21
|
+
*/
|
|
22
|
+
draggable: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the column is disabled and cannot be interacted with.
|
|
25
|
+
* This means, the user cannot change any of the column options
|
|
26
|
+
* like the visibility etc.
|
|
27
|
+
*/
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If true, the {@link title} can be renamed.
|
|
31
|
+
*/
|
|
32
|
+
editable?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface SiColumnSelectionDialogConfig {
|
|
35
|
+
heading: TranslatableString;
|
|
36
|
+
bodyTitle: TranslatableString;
|
|
37
|
+
submitBtnName?: TranslatableString;
|
|
38
|
+
cancelBtnName?: TranslatableString;
|
|
39
|
+
restoreToDefaultBtnName?: TranslatableString;
|
|
40
|
+
hiddenText?: TranslatableString;
|
|
41
|
+
visibleText?: TranslatableString;
|
|
42
|
+
columnVisibilityConfigurable?: boolean;
|
|
43
|
+
restoreEnabled?: boolean;
|
|
44
|
+
columns: Column[];
|
|
45
|
+
translationParams?: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
listAriaLabel?: TranslatableString;
|
|
49
|
+
renameInputAriaLabel?: TranslatableString;
|
|
50
|
+
a11yItemMovedMessage?: TranslatableString;
|
|
51
|
+
a11yItemNotMovedMessage?: TranslatableString;
|
|
52
|
+
}
|
|
53
|
+
export interface ColumnSelectionDialogResult {
|
|
54
|
+
type: ColumnSelectionDialogResultType;
|
|
55
|
+
columns: Column[];
|
|
56
|
+
/** when `type === 'restoreDefault'`, this function is set and allows to provide the columns */
|
|
57
|
+
updateColumns?: (columns: Column[]) => void;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Emit type of dialog actions.
|
|
61
|
+
*
|
|
62
|
+
* `ok` : Emitted when user submits.
|
|
63
|
+
* `cancel` : Emitted when user clicks cancel.
|
|
64
|
+
* `instant` : Emitted when visibility or place of a row changes.
|
|
65
|
+
*
|
|
66
|
+
* `instant` type is used to reflect the ui changes real time even before closing the dialog.
|
|
67
|
+
*/
|
|
68
|
+
export type ColumnSelectionDialogResultType = 'ok' | 'cancel' | 'instant' | 'restoreDefault';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright Siemens 2016 - 2025.
|
|
3
3
|
* SPDX-License-Identifier: MIT
|
|
4
4
|
*/
|
|
5
|
-
export type StatusType = 'success' | 'info' | 'warning' | 'danger';
|
|
6
|
-
export type ExtendedStatusType = StatusType | '
|
|
5
|
+
export type StatusType = 'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical';
|
|
6
|
+
export type ExtendedStatusType = StatusType | 'unknown';
|
|
7
7
|
export type EntityStatusType = ExtendedStatusType | 'pending' | 'progress';
|
|
8
8
|
export type AccentLineType = StatusType | 'caution' | 'primary' | 'inactive';
|
|
9
9
|
export interface StatusIcon {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
export * from './si-date-range-filter.component';
|
|
6
|
+
export * from './si-date-range-filter.module';
|
|
7
|
+
export * from './si-date-range-filter.types';
|
|
8
|
+
export * from './si-date-range-calculation.service';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DateRangeFilter, ResolvedDateRange } from './si-date-range-filter.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ResolveDateRangeOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Resolve time? When set to false, hours/minutes/seconds/ms are set to zero
|
|
6
|
+
* @defaultValue true
|
|
7
|
+
**/
|
|
8
|
+
withTime?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Skip normalization? When skipped, `point1` will always be `start`, `point2` will be `end`
|
|
11
|
+
*/
|
|
12
|
+
skipNormalization?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Service to transform and calculate with DateRangeFilter objects.
|
|
16
|
+
*/
|
|
17
|
+
export declare class SiDateRangeCalculationService {
|
|
18
|
+
/**
|
|
19
|
+
* Calculates the start and end dates of a DateRangeFilter.
|
|
20
|
+
* @param filter - The date range filter object to be resolved.
|
|
21
|
+
* @param options - Options for time handling
|
|
22
|
+
* @returns The resolved result in form of a ResolvedDateRange object.
|
|
23
|
+
*/
|
|
24
|
+
resolveDateRangeFilter(filter: DateRangeFilter, options?: ResolveDateRangeOptions): ResolvedDateRange;
|
|
25
|
+
private datePlusOffset;
|
|
26
|
+
private normalize;
|
|
27
|
+
/**
|
|
28
|
+
* Utility to reset the time attributes to 0 (hours/minutes/seconds/milliseconds).
|
|
29
|
+
*/
|
|
30
|
+
removeTime(date: Date): Date;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiDateRangeCalculationService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SiDateRangeCalculationService>;
|
|
33
|
+
}
|