@siemens/element-ng 48.5.2 → 48.7.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/datatable/index.d.ts +54 -3
- package/fesm2022/siemens-element-ng-datatable.mjs +11 -5
- package/fesm2022/siemens-element-ng-datatable.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filtered-search.mjs +4 -4
- package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-icon.mjs +4 -4
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-loading-spinner.mjs +3 -1
- package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-markdown-renderer.mjs +12 -1
- package/fesm2022/siemens-element-ng-markdown-renderer.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-phone-number.mjs +2 -2
- package/fesm2022/siemens-element-ng-phone-number.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-chip.mjs +4 -4
- package/fesm2022/siemens-element-ng-summary-chip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs +41 -7
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -1
- package/icon/index.d.ts +4 -4
- package/loading-spinner/index.d.ts +1 -0
- package/package.json +16 -16
- package/schematics/scss-import-to-siemens-migration/index.js +0 -3
- package/schematics/scss-import-to-siemens-migration/style-mappings.js +20 -4
- package/schematics/utils/ts-utils.js +8 -4
- package/summary-chip/index.d.ts +3 -3
- package/typeahead/index.d.ts +21 -3
package/typeahead/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _siemens_element_translate_ng_translate_types from '@siemens/element-translate-ng/translate-types';
|
|
2
1
|
import * as _angular_core from '@angular/core';
|
|
3
2
|
import { OnChanges, OnDestroy, TemplateRef, SimpleChanges } from '@angular/core';
|
|
4
3
|
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
4
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import * as i1 from '@siemens/element-ng/autocomplete';
|
|
7
7
|
|
|
@@ -200,13 +200,22 @@ declare class SiTypeaheadDirective implements OnChanges, OnDestroy {
|
|
|
200
200
|
* t(() => $localize`:@@SI_TYPEAHEAD.AUTOCOMPLETE_LIST_LABEL:Suggestions`)
|
|
201
201
|
* ```
|
|
202
202
|
*/
|
|
203
|
-
readonly typeaheadAutocompleteListLabel: _angular_core.InputSignal<
|
|
203
|
+
readonly typeaheadAutocompleteListLabel: _angular_core.InputSignal<TranslatableString>;
|
|
204
204
|
/**
|
|
205
205
|
* If set, the typeahead will at minium have the width of the connected input field.
|
|
206
206
|
*
|
|
207
207
|
* @defaultValue false
|
|
208
208
|
*/
|
|
209
209
|
readonly typeaheadFullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
210
|
+
/**
|
|
211
|
+
* This option will be shown at the end of the typeahead.
|
|
212
|
+
* Use it to allow users to create new options on the fly.
|
|
213
|
+
*
|
|
214
|
+
* Use the `{{ query }}` parameter in translation values to include the current text from the input.
|
|
215
|
+
*
|
|
216
|
+
* @experimental
|
|
217
|
+
*/
|
|
218
|
+
readonly typeaheadCreateOption: _angular_core.InputSignal<TranslatableString | undefined>;
|
|
210
219
|
/**
|
|
211
220
|
* Emits an Event when the input field is changed.
|
|
212
221
|
*/
|
|
@@ -224,6 +233,13 @@ declare class SiTypeaheadDirective implements OnChanges, OnDestroy {
|
|
|
224
233
|
readonly typeaheadOnFullMatch: _angular_core.OutputEmitterRef<TypeaheadMatch>;
|
|
225
234
|
/** Emits whenever the typeahead overlay is opened or closed. */
|
|
226
235
|
readonly typeaheadOpenChange: _angular_core.OutputEmitterRef<boolean>;
|
|
236
|
+
/**
|
|
237
|
+
* Emits when the create option is selected.
|
|
238
|
+
* It will emit the current search query.
|
|
239
|
+
*
|
|
240
|
+
* @experimental
|
|
241
|
+
*/
|
|
242
|
+
readonly typeaheadOnCreateOption: _angular_core.OutputEmitterRef<string>;
|
|
227
243
|
/** @internal */
|
|
228
244
|
readonly foundMatches: _angular_core.Signal<{
|
|
229
245
|
itemSelected: any;
|
|
@@ -323,12 +339,14 @@ declare class SiTypeaheadDirective implements OnChanges, OnDestroy {
|
|
|
323
339
|
*/
|
|
324
340
|
private getOptionField;
|
|
325
341
|
/** @internal */
|
|
342
|
+
createOption(): void;
|
|
343
|
+
/** @internal */
|
|
326
344
|
selectMatch(match: TypeaheadMatch): void;
|
|
327
345
|
private removeComponent;
|
|
328
346
|
private clearTimer;
|
|
329
347
|
private escapeRegex;
|
|
330
348
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiTypeaheadDirective, never>;
|
|
331
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SiTypeaheadDirective, "[siTypeahead]", ["si-typeahead"], { "siTypeahead": { "alias": "siTypeahead"; "required": true; "isSignal": true; }; "typeaheadProcess": { "alias": "typeaheadProcess"; "required": false; "isSignal": true; }; "typeaheadScrollable": { "alias": "typeaheadScrollable"; "required": false; "isSignal": true; }; "typeaheadOptionsInScrollableView": { "alias": "typeaheadOptionsInScrollableView"; "required": false; "isSignal": true; }; "typeaheadOptionsLimit": { "alias": "typeaheadOptionsLimit"; "required": false; "isSignal": true; }; "typeaheadScrollableAdditionalHeight": { "alias": "typeaheadScrollableAdditionalHeight"; "required": false; "isSignal": true; }; "typeaheadAutoSelectIndex": { "alias": "typeaheadAutoSelectIndex"; "required": false; "isSignal": true; }; "typeaheadCloseOnEsc": { "alias": "typeaheadCloseOnEsc"; "required": false; "isSignal": true; }; "typeaheadClearValueOnSelect": { "alias": "typeaheadClearValueOnSelect"; "required": false; "isSignal": true; }; "typeaheadWaitMs": { "alias": "typeaheadWaitMs"; "required": false; "isSignal": true; }; "typeaheadMinLength": { "alias": "typeaheadMinLength"; "required": false; "isSignal": true; }; "typeaheadOptionField": { "alias": "typeaheadOptionField"; "required": false; "isSignal": true; }; "typeaheadMultiSelect": { "alias": "typeaheadMultiSelect"; "required": false; "isSignal": true; }; "typeaheadTokenize": { "alias": "typeaheadTokenize"; "required": false; "isSignal": true; }; "typeaheadMatchAllTokens": { "alias": "typeaheadMatchAllTokens"; "required": false; "isSignal": true; }; "typeaheadItemTemplate": { "alias": "typeaheadItemTemplate"; "required": false; "isSignal": true; }; "typeaheadSkipSortingMatches": { "alias": "typeaheadSkipSortingMatches"; "required": false; "isSignal": true; }; "typeaheadAutocompleteListLabel": { "alias": "typeaheadAutocompleteListLabel"; "required": false; "isSignal": true; }; "typeaheadFullWidth": { "alias": "typeaheadFullWidth"; "required": false; "isSignal": true; }; }, { "typeaheadOnInput": "typeaheadOnInput"; "typeaheadOnSelect": "typeaheadOnSelect"; "typeaheadOnFullMatch": "typeaheadOnFullMatch"; "typeaheadOpenChange": "typeaheadOpenChange"; }, never, never, true, [{ directive: typeof i1.SiAutocompleteDirective; inputs: {}; outputs: {}; }]>;
|
|
349
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SiTypeaheadDirective, "[siTypeahead]", ["si-typeahead"], { "siTypeahead": { "alias": "siTypeahead"; "required": true; "isSignal": true; }; "typeaheadProcess": { "alias": "typeaheadProcess"; "required": false; "isSignal": true; }; "typeaheadScrollable": { "alias": "typeaheadScrollable"; "required": false; "isSignal": true; }; "typeaheadOptionsInScrollableView": { "alias": "typeaheadOptionsInScrollableView"; "required": false; "isSignal": true; }; "typeaheadOptionsLimit": { "alias": "typeaheadOptionsLimit"; "required": false; "isSignal": true; }; "typeaheadScrollableAdditionalHeight": { "alias": "typeaheadScrollableAdditionalHeight"; "required": false; "isSignal": true; }; "typeaheadAutoSelectIndex": { "alias": "typeaheadAutoSelectIndex"; "required": false; "isSignal": true; }; "typeaheadCloseOnEsc": { "alias": "typeaheadCloseOnEsc"; "required": false; "isSignal": true; }; "typeaheadClearValueOnSelect": { "alias": "typeaheadClearValueOnSelect"; "required": false; "isSignal": true; }; "typeaheadWaitMs": { "alias": "typeaheadWaitMs"; "required": false; "isSignal": true; }; "typeaheadMinLength": { "alias": "typeaheadMinLength"; "required": false; "isSignal": true; }; "typeaheadOptionField": { "alias": "typeaheadOptionField"; "required": false; "isSignal": true; }; "typeaheadMultiSelect": { "alias": "typeaheadMultiSelect"; "required": false; "isSignal": true; }; "typeaheadTokenize": { "alias": "typeaheadTokenize"; "required": false; "isSignal": true; }; "typeaheadMatchAllTokens": { "alias": "typeaheadMatchAllTokens"; "required": false; "isSignal": true; }; "typeaheadItemTemplate": { "alias": "typeaheadItemTemplate"; "required": false; "isSignal": true; }; "typeaheadSkipSortingMatches": { "alias": "typeaheadSkipSortingMatches"; "required": false; "isSignal": true; }; "typeaheadAutocompleteListLabel": { "alias": "typeaheadAutocompleteListLabel"; "required": false; "isSignal": true; }; "typeaheadFullWidth": { "alias": "typeaheadFullWidth"; "required": false; "isSignal": true; }; "typeaheadCreateOption": { "alias": "typeaheadCreateOption"; "required": false; "isSignal": true; }; }, { "typeaheadOnInput": "typeaheadOnInput"; "typeaheadOnSelect": "typeaheadOnSelect"; "typeaheadOnFullMatch": "typeaheadOnFullMatch"; "typeaheadOpenChange": "typeaheadOpenChange"; "typeaheadOnCreateOption": "typeaheadOnCreateOption"; }, never, never, true, [{ directive: typeof i1.SiAutocompleteDirective; inputs: {}; outputs: {}; }]>;
|
|
332
350
|
}
|
|
333
351
|
|
|
334
352
|
declare class SiTypeaheadItemTemplateDirective {
|