@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
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import { ModalRef } from '@siemens/element-ng/modal';
|
|
4
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
5
|
+
import { ImageCroppedEvent, ImageCropperComponent } from 'ngx-image-cropper';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@siemens/element-ng/avatar";
|
|
8
|
+
/**
|
|
9
|
+
* A component used to upload, edit, and delete a user's photo. The user can upload
|
|
10
|
+
* a photo either via file browser or a URL to the photo. You can set the source
|
|
11
|
+
* photo with the `sourcePhoto` Data URL input or the `sourcePhotoUrl` URL input.
|
|
12
|
+
* If you already have a cropped image you can set it with the `croppedPhoto` input.
|
|
13
|
+
* Cropping changes are emitted via the `croppedPhotoChange` output.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SiPhotoUploadComponent implements OnChanges, OnDestroy {
|
|
16
|
+
private static idCounter;
|
|
17
|
+
/**
|
|
18
|
+
* Indicate that changing or uploads are disabled.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Optionally disable image cropping.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue false
|
|
27
|
+
*/
|
|
28
|
+
readonly disabledCropping: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Accepted image formats for the file selection dialog.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue '.png, .jpg, .jpeg'
|
|
33
|
+
*
|
|
34
|
+
* @see
|
|
35
|
+
*
|
|
36
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#attr-accept
|
|
37
|
+
*/
|
|
38
|
+
readonly acceptedUploadFormats: import("@angular/core").InputSignal<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum allowed file size of the uploaded file in kilobytes.
|
|
41
|
+
*
|
|
42
|
+
* @defaultValue 2048
|
|
43
|
+
*/
|
|
44
|
+
readonly maxFileSize: import("@angular/core").InputSignal<number>;
|
|
45
|
+
/**
|
|
46
|
+
* If the uploaded file is of an unsupported type, this
|
|
47
|
+
* error message will be displayed to the user.
|
|
48
|
+
*
|
|
49
|
+
* @defaultValue
|
|
50
|
+
* ```
|
|
51
|
+
* $localize`:@@SI_PHOTO_UPLOAD.ERROR_FILE_TYPE:The image file is not valid. Please upload a PNG or JP(E)G.`
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
readonly uploadErrorWrongType: import("@angular/core").InputSignal<TranslatableString>;
|
|
55
|
+
/**
|
|
56
|
+
* If the uploaded file exceeds the allowed upload size, this
|
|
57
|
+
* error message will be displayed to the user.
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue
|
|
60
|
+
* ```
|
|
61
|
+
* $localize`:@@SI_PHOTO_UPLOAD.ERROR_FILE_SIZE_EXCEEDED:The actual file size {{mb}} MB exceeds the {{maxSizeMb}} MB limit.`
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
readonly uploadErrorTooBig: import("@angular/core").InputSignal<TranslatableString>;
|
|
65
|
+
/**
|
|
66
|
+
* Alternative text for the photo.
|
|
67
|
+
*
|
|
68
|
+
* @defaultValue ''
|
|
69
|
+
*/
|
|
70
|
+
readonly photoAltText: import("@angular/core").InputSignal<TranslatableString>;
|
|
71
|
+
/**
|
|
72
|
+
* Alternative text for the photo´s placeholder.
|
|
73
|
+
* The value will be used to calculate the background color when `autoColor` is true.
|
|
74
|
+
*
|
|
75
|
+
* @defaultValue ''
|
|
76
|
+
*/
|
|
77
|
+
readonly placeholderAltText: import("@angular/core").InputSignal<TranslatableString>;
|
|
78
|
+
/**
|
|
79
|
+
* Text for the button changing the photo.
|
|
80
|
+
*
|
|
81
|
+
* @defaultValue
|
|
82
|
+
* ```
|
|
83
|
+
* $localize`:@@SI_PHOTO_UPLOAD.CHANGE_PHOTO:Change`
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
readonly changePhotoText: import("@angular/core").InputSignal<TranslatableString>;
|
|
87
|
+
/**
|
|
88
|
+
* Cropper frame aria label.
|
|
89
|
+
*
|
|
90
|
+
* @defaultValue
|
|
91
|
+
* ```
|
|
92
|
+
* $localize`:@@SI_PHOTO_UPLOAD.CROPPER_FRAME_LABEL:Crop photo`
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
readonly cropperFrameAriaLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
96
|
+
/**
|
|
97
|
+
* Text for the button uploading a photo.
|
|
98
|
+
*
|
|
99
|
+
* @defaultValue
|
|
100
|
+
* ```
|
|
101
|
+
* $localize`:@@SI_PHOTO_UPLOAD.UPLOAD_PHOTO:Upload photo`
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
readonly uploadPhotoText: import("@angular/core").InputSignal<TranslatableString>;
|
|
105
|
+
/**
|
|
106
|
+
* Text for the button removing the photo.
|
|
107
|
+
*
|
|
108
|
+
* @defaultValue
|
|
109
|
+
* ```
|
|
110
|
+
* $localize`:@@SI_PHOTO_UPLOAD.REMOVE:Remove`
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
readonly removePhotoText: import("@angular/core").InputSignal<TranslatableString>;
|
|
114
|
+
/**
|
|
115
|
+
* Text for the button cancelling the editing process.
|
|
116
|
+
*
|
|
117
|
+
* @defaultValue
|
|
118
|
+
* ```
|
|
119
|
+
* $localize`:@@SI_PHOTO_UPLOAD.CANCEL:Cancel`
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
readonly cancelEditText: import("@angular/core").InputSignal<TranslatableString>;
|
|
123
|
+
/**
|
|
124
|
+
* Text for the button applying the edited photo.
|
|
125
|
+
*
|
|
126
|
+
* @defaultValue
|
|
127
|
+
* ```
|
|
128
|
+
* $localize`:@@SI_PHOTO_UPLOAD.APPLY_PHOTO:Apply`
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
readonly applyEditText: import("@angular/core").InputSignal<TranslatableString>;
|
|
132
|
+
/**
|
|
133
|
+
* Text displayed as header of the editing modal.
|
|
134
|
+
*
|
|
135
|
+
* @defaultValue
|
|
136
|
+
* ```
|
|
137
|
+
* $localize`:@@SI_PHOTO_UPLOAD.MODAL_TITLE:Avatar photo`
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
readonly modalHeader: import("@angular/core").InputSignal<TranslatableString>;
|
|
141
|
+
/**
|
|
142
|
+
* Text displayed as description of the editing modal.
|
|
143
|
+
*/
|
|
144
|
+
readonly modalDescription: import("@angular/core").InputSignal<TranslatableString | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Output format of the edited image.
|
|
147
|
+
*
|
|
148
|
+
* @defaultValue 'jpeg'
|
|
149
|
+
*/
|
|
150
|
+
readonly cropperImageFormat: import("@angular/core").InputSignal<"png" | "jpeg">;
|
|
151
|
+
/**
|
|
152
|
+
* The width / height ratio (e.g. 1 / 1 for a square, 4 / 3, 16 / 9 ...).
|
|
153
|
+
*
|
|
154
|
+
* @defaultValue 1
|
|
155
|
+
*/
|
|
156
|
+
readonly cropperAspectRatio: import("@angular/core").InputSignal<number>;
|
|
157
|
+
/**
|
|
158
|
+
* Whether to keep the width and height of the cropped image equal according
|
|
159
|
+
* to the aspectRatio.
|
|
160
|
+
*
|
|
161
|
+
* @defaultValue true
|
|
162
|
+
*/
|
|
163
|
+
readonly cropperMaintainAspectRatio: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
164
|
+
/**
|
|
165
|
+
* When set to true, padding will be added around the image to make it fit to
|
|
166
|
+
* the aspect ratio. Be aware that this transformation will cause the loaded
|
|
167
|
+
* image to be a png file with an increased base64 string payload.
|
|
168
|
+
*
|
|
169
|
+
* @defaultValue false
|
|
170
|
+
*/
|
|
171
|
+
readonly cropperContainWithinAspectRatio: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
172
|
+
/**
|
|
173
|
+
* The cropper´s width cannot be made smaller than this number of pixels
|
|
174
|
+
* (relative to original image´s size). (0 = disabled).
|
|
175
|
+
*
|
|
176
|
+
* @defaultValue 50
|
|
177
|
+
*/
|
|
178
|
+
readonly cropperMinWidth: import("@angular/core").InputSignal<number>;
|
|
179
|
+
/**
|
|
180
|
+
* The cropper´s height cannot be made smaller than this number of pixels
|
|
181
|
+
* (relative to original image´s size). Will be ignored if
|
|
182
|
+
* `cropperMaintainAspectRatio` is set. (0 = disabled).
|
|
183
|
+
*
|
|
184
|
+
* @defaultValue 50
|
|
185
|
+
*/
|
|
186
|
+
readonly cropperMinHeight: import("@angular/core").InputSignal<number>;
|
|
187
|
+
/**
|
|
188
|
+
* The cropper´s width cannot be made bigger than this number of pixels.
|
|
189
|
+
* Default is 0 (disabled).
|
|
190
|
+
*
|
|
191
|
+
* @defaultValue 0
|
|
192
|
+
*/
|
|
193
|
+
readonly cropperMaxWidth: import("@angular/core").InputSignal<number>;
|
|
194
|
+
/**
|
|
195
|
+
* The cropper´s height cannot be made bigger than this number of pixels.
|
|
196
|
+
* Default is 0 (disabled).
|
|
197
|
+
*
|
|
198
|
+
* @defaultValue 0
|
|
199
|
+
*/
|
|
200
|
+
readonly cropperMaxHeight: import("@angular/core").InputSignal<number>;
|
|
201
|
+
/**
|
|
202
|
+
* Set this to true for a round cropper. Resulting image will still
|
|
203
|
+
* be square, but visually clipped with a border-radius: 50% on the
|
|
204
|
+
* resulting image to show it as round.
|
|
205
|
+
*
|
|
206
|
+
* @defaultValue true
|
|
207
|
+
*/
|
|
208
|
+
readonly roundImage: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
209
|
+
/**
|
|
210
|
+
* The input photo to be used for cropping. A string in [Data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs) format
|
|
211
|
+
* with base64 encoding.
|
|
212
|
+
*/
|
|
213
|
+
readonly sourcePhoto: import("@angular/core").ModelSignal<string | undefined>;
|
|
214
|
+
/**
|
|
215
|
+
* URL to a photo to be used for cropping.
|
|
216
|
+
*/
|
|
217
|
+
readonly sourcePhotoUrl: import("@angular/core").InputSignal<string | undefined>;
|
|
218
|
+
/**
|
|
219
|
+
* The photo to be displayed and edited (when not readonly).
|
|
220
|
+
*/
|
|
221
|
+
readonly croppedPhoto: import("@angular/core").ModelSignal<string | undefined>;
|
|
222
|
+
protected readonly editPhotoTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
223
|
+
protected readonly fileInput: import("@angular/core").Signal<ElementRef<any>>;
|
|
224
|
+
protected readonly imageCropper: import("@angular/core").Signal<ImageCropperComponent | undefined>;
|
|
225
|
+
protected readonly titleId: string;
|
|
226
|
+
/**
|
|
227
|
+
* The trusted photo url string which is used to display the photo.
|
|
228
|
+
*/
|
|
229
|
+
protected readonly sanitizedPhotoUrl: import("@angular/core").WritableSignal<SafeResourceUrl | undefined>;
|
|
230
|
+
/**
|
|
231
|
+
* The appropriate error message displayed to the user. Might be
|
|
232
|
+
* `uploadErrorWrongType` or `uploadErrorTooBig`.
|
|
233
|
+
*/
|
|
234
|
+
protected readonly uploadErrorMessage: import("@angular/core").WritableSignal<string | undefined>;
|
|
235
|
+
protected readonly editButtonText: import("@angular/core").Signal<TranslatableString>;
|
|
236
|
+
protected readonly currentFileSizeKilobytes: import("@angular/core").WritableSignal<number>;
|
|
237
|
+
protected readonly currentFileSizeMegabytes: import("@angular/core").WritableSignal<number>;
|
|
238
|
+
protected readonly maxSizeMb: import("@angular/core").Signal<number>;
|
|
239
|
+
/**
|
|
240
|
+
* The photo instance to be used in the image cropper. We need a different
|
|
241
|
+
* reference than `sourcePhoto` to support the cancel after uploading
|
|
242
|
+
* a new photo. While `sourcePhoto` is A and image cropper uploads B,
|
|
243
|
+
* we should not replace `sourcePhoto` A until user presses apply.
|
|
244
|
+
*/
|
|
245
|
+
protected readonly imageCropperPhoto: import("@angular/core").WritableSignal<string | undefined>;
|
|
246
|
+
protected readonly icons: Record<"elementCancel" | "elementCircleFilled" | "elementStateExclamationMark", string>;
|
|
247
|
+
/**
|
|
248
|
+
* Reference to the modal displaying the photo to edit.
|
|
249
|
+
*/
|
|
250
|
+
protected modalRef?: ModalRef;
|
|
251
|
+
/**
|
|
252
|
+
* The last cropped event of the image cropper component.
|
|
253
|
+
* Will be set on every mouse drag of the user. It contains
|
|
254
|
+
* the cropped image and the position. When user completes
|
|
255
|
+
* the cropping, the data from the last event is used.
|
|
256
|
+
*/
|
|
257
|
+
private imageCroppedEvent?;
|
|
258
|
+
/**
|
|
259
|
+
* Applied cropper position necessary to restore the cropper position when the use press the Change button.
|
|
260
|
+
*/
|
|
261
|
+
private cropperPosition?;
|
|
262
|
+
private readonly sanitizer;
|
|
263
|
+
private readonly modalService;
|
|
264
|
+
private readonly autoBackgroundColorDirective;
|
|
265
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
266
|
+
ngOnDestroy(): void;
|
|
267
|
+
/**
|
|
268
|
+
* Opens a modal dialog with the cropping component.
|
|
269
|
+
*/
|
|
270
|
+
protected showCroppingDialog(): void;
|
|
271
|
+
protected fileUpload(event: Event): void;
|
|
272
|
+
private updateCroppedPhoto;
|
|
273
|
+
protected removePhoto(): void;
|
|
274
|
+
/**
|
|
275
|
+
* Invoked when user cropped the photo and pressed apply button.
|
|
276
|
+
* Updates the current photo by the selected cropped photo and
|
|
277
|
+
* closes the modal dialog.
|
|
278
|
+
*/
|
|
279
|
+
protected imageCropperApplied(): void;
|
|
280
|
+
protected imageCropperCanceled(): void;
|
|
281
|
+
/**
|
|
282
|
+
* Callback from the image cropper on every mouse drag invoking a cropping.
|
|
283
|
+
*
|
|
284
|
+
* @param event - Event containing the cropped image and the image cropped position.
|
|
285
|
+
*
|
|
286
|
+
*/
|
|
287
|
+
protected cropperImageCropped(event: ImageCroppedEvent): void;
|
|
288
|
+
/**
|
|
289
|
+
* Lifecycle hook from the image cropper component. Informs
|
|
290
|
+
* us when initialized and ready.
|
|
291
|
+
*/
|
|
292
|
+
protected cropperReady(): void;
|
|
293
|
+
private resetFileInputValue;
|
|
294
|
+
private resetErrorMessage;
|
|
295
|
+
private setPhoto;
|
|
296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPhotoUploadComponent, never>;
|
|
297
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiPhotoUploadComponent, "si-photo-upload", never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabledCropping": { "alias": "disabledCropping"; "required": false; "isSignal": true; }; "acceptedUploadFormats": { "alias": "acceptedUploadFormats"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "uploadErrorWrongType": { "alias": "uploadErrorWrongType"; "required": false; "isSignal": true; }; "uploadErrorTooBig": { "alias": "uploadErrorTooBig"; "required": false; "isSignal": true; }; "photoAltText": { "alias": "photoAltText"; "required": false; "isSignal": true; }; "placeholderAltText": { "alias": "placeholderAltText"; "required": false; "isSignal": true; }; "changePhotoText": { "alias": "changePhotoText"; "required": false; "isSignal": true; }; "cropperFrameAriaLabel": { "alias": "cropperFrameAriaLabel"; "required": false; "isSignal": true; }; "uploadPhotoText": { "alias": "uploadPhotoText"; "required": false; "isSignal": true; }; "removePhotoText": { "alias": "removePhotoText"; "required": false; "isSignal": true; }; "cancelEditText": { "alias": "cancelEditText"; "required": false; "isSignal": true; }; "applyEditText": { "alias": "applyEditText"; "required": false; "isSignal": true; }; "modalHeader": { "alias": "modalHeader"; "required": false; "isSignal": true; }; "modalDescription": { "alias": "modalDescription"; "required": false; "isSignal": true; }; "cropperImageFormat": { "alias": "cropperImageFormat"; "required": false; "isSignal": true; }; "cropperAspectRatio": { "alias": "cropperAspectRatio"; "required": false; "isSignal": true; }; "cropperMaintainAspectRatio": { "alias": "cropperMaintainAspectRatio"; "required": false; "isSignal": true; }; "cropperContainWithinAspectRatio": { "alias": "cropperContainWithinAspectRatio"; "required": false; "isSignal": true; }; "cropperMinWidth": { "alias": "cropperMinWidth"; "required": false; "isSignal": true; }; "cropperMinHeight": { "alias": "cropperMinHeight"; "required": false; "isSignal": true; }; "cropperMaxWidth": { "alias": "cropperMaxWidth"; "required": false; "isSignal": true; }; "cropperMaxHeight": { "alias": "cropperMaxHeight"; "required": false; "isSignal": true; }; "roundImage": { "alias": "roundImage"; "required": false; "isSignal": true; }; "sourcePhoto": { "alias": "sourcePhoto"; "required": false; "isSignal": true; }; "sourcePhotoUrl": { "alias": "sourcePhotoUrl"; "required": false; "isSignal": true; }; "croppedPhoto": { "alias": "croppedPhoto"; "required": false; "isSignal": true; }; }, { "sourcePhoto": "sourcePhotoChange"; "croppedPhoto": "croppedPhotoChange"; }, never, never, true, [{ directive: typeof i1.SiAvatarBackgroundColorDirective; inputs: { "color": "color"; "autoColor": "autoColor"; }; outputs: {}; }]>;
|
|
298
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { BackgroundColorVariant } from '@siemens/element-ng/common';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SiSearchBarComponent implements OnInit, OnDestroy, ControlValueAccessor, OnChanges {
|
|
10
|
+
private readonly inputRef;
|
|
11
|
+
private debouncer;
|
|
12
|
+
private readonly disabledNgControl;
|
|
13
|
+
/**
|
|
14
|
+
* Time unit change of search input takes effect.
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue 400
|
|
17
|
+
*/
|
|
18
|
+
readonly debounceTime: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Prohibited characters restricting search.
|
|
21
|
+
*/
|
|
22
|
+
readonly prohibitedCharacters: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* Define search input placeholder.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue ''
|
|
27
|
+
*/
|
|
28
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Display search icon before search input.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue false
|
|
33
|
+
*/
|
|
34
|
+
readonly showIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the search is tabbable or not.
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue true
|
|
39
|
+
*/
|
|
40
|
+
readonly tabbable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Define search input content.
|
|
43
|
+
*/
|
|
44
|
+
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
45
|
+
/** @defaultValue false */
|
|
46
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* Color to use for component background
|
|
49
|
+
*
|
|
50
|
+
* @defaultValue 'base-1'
|
|
51
|
+
*/
|
|
52
|
+
readonly colorVariant: import("@angular/core").InputSignal<BackgroundColorVariant>;
|
|
53
|
+
/** @defaultValue false */
|
|
54
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Output callback event will provide you with search term if search input changes.
|
|
57
|
+
*/
|
|
58
|
+
readonly searchChange: import("@angular/core").OutputEmitterRef<string>;
|
|
59
|
+
protected isInvalid: boolean;
|
|
60
|
+
protected inFocus: boolean;
|
|
61
|
+
protected onChange: (val: any) => void;
|
|
62
|
+
protected onTouch: () => void;
|
|
63
|
+
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
64
|
+
protected readonly searchValue: import("@angular/core").WritableSignal<string>;
|
|
65
|
+
protected readonly icons: Record<"elementCancel" | "elementSearch", string>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
writeValue(value: string): void;
|
|
68
|
+
/** @internal */
|
|
69
|
+
registerOnChange(fn: any): void;
|
|
70
|
+
/** @internal */
|
|
71
|
+
registerOnTouched(fn: () => void): void;
|
|
72
|
+
/** @internal */
|
|
73
|
+
setDisabledState(disabled: boolean): void;
|
|
74
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
75
|
+
ngOnInit(): void;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
private setSearch;
|
|
78
|
+
private isProhibitedCharactersUsed;
|
|
79
|
+
/** @internal */
|
|
80
|
+
focus(): void;
|
|
81
|
+
protected onCancelFocus(event: Event): void;
|
|
82
|
+
protected input(event: Event): void;
|
|
83
|
+
protected onBlur(): void;
|
|
84
|
+
protected resetForm(): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSearchBarComponent, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSearchBarComponent, "si-search-bar", never, { "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; "prohibitedCharacters": { "alias": "prohibitedCharacters"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "tabbable": { "alias": "tabbable"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "colorVariant": { "alias": "colorVariant"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "searchChange": "searchChange"; }, never, never, true, never>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-search-bar.component";
|
|
3
|
+
export declare class SiSearchBarModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSearchBarModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiSearchBarModule, never, [typeof i1.SiSearchBarComponent], [typeof i1.SiSearchBarComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiSearchBarModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { SiFormItemControl } from '@siemens/element-ng/form';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiSliderComponent implements ControlValueAccessor, SiFormItemControl {
|
|
5
|
+
private static idCounter;
|
|
6
|
+
private readonly handleRef;
|
|
7
|
+
private readonly disabledNgControl;
|
|
8
|
+
/**
|
|
9
|
+
* @defaultValue
|
|
10
|
+
* ```
|
|
11
|
+
* `__si-slider-${SiSliderComponent.idCounter++}`
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Current value of slider.
|
|
17
|
+
*/
|
|
18
|
+
readonly value: import("@angular/core").ModelSignal<number | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Minimum of slider range.
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue 0
|
|
23
|
+
*/
|
|
24
|
+
readonly min: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* Maximum of slider range.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue 100
|
|
29
|
+
*/
|
|
30
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* Label to describe minimum of slider range.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue ''
|
|
35
|
+
*/
|
|
36
|
+
readonly minLabel: import("@angular/core").InputSignal<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Label to describe maximum of slider range.
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue ''
|
|
41
|
+
*/
|
|
42
|
+
readonly maxLabel: import("@angular/core").InputSignal<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Interval to step through the slider.
|
|
45
|
+
*
|
|
46
|
+
* @defaultValue 1
|
|
47
|
+
*/
|
|
48
|
+
readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Icon to use as the slider thumb.
|
|
51
|
+
*/
|
|
52
|
+
readonly thumbIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Text for aria-label of increment. Needed for a11y.
|
|
55
|
+
*
|
|
56
|
+
* @defaultValue
|
|
57
|
+
* ```
|
|
58
|
+
* $localize`:@@SI_SLIDER.INCREMENT:Increment`
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
readonly incrementLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
62
|
+
/**
|
|
63
|
+
* Text for aria-label of decrement. Needed for a11y.
|
|
64
|
+
*
|
|
65
|
+
* @defaultValue
|
|
66
|
+
* ```
|
|
67
|
+
* $localize`:@@SI_SLIDER.DECREMENT:Decrement`
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
readonly decrementLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
71
|
+
/**
|
|
72
|
+
* Text for aria-label of slider. Needed for a11y
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue
|
|
75
|
+
* ```
|
|
76
|
+
* $localize`:@@SI_SLIDER.LABEL:Value`
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
readonly sliderLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
80
|
+
/**
|
|
81
|
+
* @defaultValue
|
|
82
|
+
* ```
|
|
83
|
+
* `${this.id()}-label`
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
readonly labelledby: import("@angular/core").InputSignal<string>;
|
|
87
|
+
/** @defaultValue false */
|
|
88
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
89
|
+
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
90
|
+
protected readonly sliderValue: import("@angular/core").Signal<number>;
|
|
91
|
+
/** @internal */
|
|
92
|
+
readonly errormessageId: string;
|
|
93
|
+
protected readonly indicatorPos: import("@angular/core").Signal<number>;
|
|
94
|
+
protected readonly icons: Record<"elementMinus" | "elementPlus", string>;
|
|
95
|
+
protected isDragging: boolean;
|
|
96
|
+
private autoUpdate$;
|
|
97
|
+
private autoUpdateSubs?;
|
|
98
|
+
private rtl;
|
|
99
|
+
private unlistenDragEvents;
|
|
100
|
+
private onTouchedCallback;
|
|
101
|
+
private onChangeCallback;
|
|
102
|
+
private zone;
|
|
103
|
+
private changeDetectorRef;
|
|
104
|
+
private incrementValue;
|
|
105
|
+
private decrementValue;
|
|
106
|
+
private roundToStepPrecision;
|
|
107
|
+
private normalizeValue;
|
|
108
|
+
private handleTouchMove;
|
|
109
|
+
private handleMouseMove;
|
|
110
|
+
private handleDragMove;
|
|
111
|
+
private handleDragEnd;
|
|
112
|
+
private valueChanged;
|
|
113
|
+
protected handlePointerDown(event: Event): void;
|
|
114
|
+
protected autoUpdateKeydown(event: KeyboardEvent): void;
|
|
115
|
+
protected autoUpdateStart(event: Event, isIncrement: boolean): void;
|
|
116
|
+
protected autoUpdateStop(): void;
|
|
117
|
+
protected handleMouseDown(event: MouseEvent): void;
|
|
118
|
+
protected handleTouchStart(event: TouchEvent): void;
|
|
119
|
+
/** @internal */
|
|
120
|
+
writeValue(val: any): void;
|
|
121
|
+
/** @internal */
|
|
122
|
+
registerOnChange(fn: any): void;
|
|
123
|
+
/** @internal */
|
|
124
|
+
registerOnTouched(fn: () => void): void;
|
|
125
|
+
/** @internal */
|
|
126
|
+
setDisabledState(isDisabled: boolean): void;
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSliderComponent, never>;
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSliderComponent, "si-slider", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minLabel": { "alias": "minLabel"; "required": false; "isSignal": true; }; "maxLabel": { "alias": "maxLabel"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "thumbIcon": { "alias": "thumbIcon"; "required": false; "isSignal": true; }; "incrementLabel": { "alias": "incrementLabel"; "required": false; "isSignal": true; }; "decrementLabel": { "alias": "decrementLabel"; "required": false; "isSignal": true; }; "sliderLabel": { "alias": "sliderLabel"; "required": false; "isSignal": true; }; "labelledby": { "alias": "labelledby"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
|
|
129
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-slider.component";
|
|
3
|
+
export declare class SiSliderModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSliderModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiSliderModule, never, [typeof i1.SiSliderComponent], [typeof i1.SiSliderComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiSliderModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { HttpParams } from '@angular/common/http';
|
|
6
|
+
import { OnInit } from '@angular/core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export interface SortCriteria {
|
|
9
|
+
name: string;
|
|
10
|
+
key: number | string;
|
|
11
|
+
}
|
|
12
|
+
export declare class SiSortBarComponent implements OnInit {
|
|
13
|
+
/**
|
|
14
|
+
* Custom sort title.
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue
|
|
17
|
+
* ```
|
|
18
|
+
* $localize`:@@SI_SORT_BAR.TITLE:Sort by`
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
readonly sortTitle: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
22
|
+
/**
|
|
23
|
+
* List of sort criteria.
|
|
24
|
+
*/
|
|
25
|
+
readonly sortCriteria: import("@angular/core").InputSignal<SortCriteria[]>;
|
|
26
|
+
/**
|
|
27
|
+
* `key` which sortCriteria is active by default.
|
|
28
|
+
*/
|
|
29
|
+
readonly defaultSortCriteria: import("@angular/core").InputSignal<string | number>;
|
|
30
|
+
/**
|
|
31
|
+
* Output callback event will provide you with a HttpParams object if active
|
|
32
|
+
* sortCriteria change.
|
|
33
|
+
*/
|
|
34
|
+
readonly sortChange: import("@angular/core").OutputEmitterRef<HttpParams>;
|
|
35
|
+
protected readonly icons: Record<"elementSortDown" | "elementSortUp", string>;
|
|
36
|
+
protected activeSortCriteria: SortCriteria['key'];
|
|
37
|
+
protected sortIsDescending: boolean;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
protected setActive(key: SortCriteria['key']): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSortBarComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSortBarComponent, "si-sort-bar", never, { "sortTitle": { "alias": "sortTitle"; "required": false; "isSignal": true; }; "sortCriteria": { "alias": "sortCriteria"; "required": true; "isSignal": true; }; "defaultSortCriteria": { "alias": "defaultSortCriteria"; "required": true; "isSignal": true; }; }, { "sortChange": "sortChange"; }, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-sort-bar.component";
|
|
3
|
+
export declare class SiSortBarModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSortBarModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiSortBarModule, never, [typeof i1.SiSortBarComponent], [typeof i1.SiSortBarComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiSortBarModule>;
|
|
7
|
+
}
|
package/split/index.d.ts
ADDED