@festo-ui/angular 3.1.0-pre-20220203.4 → 3.1.0-pre-20220217.3

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.
@@ -20,11 +20,12 @@ import * as i18 from "./tabs/tabs.component";
20
20
  import * as i19 from "./tabs/tab-pane/tab-pane.component";
21
21
  import * as i20 from "./scroll/scrollable.directive";
22
22
  import * as i21 from "./search-input/search-input.component";
23
- import * as i22 from "./click-outside.directive";
24
- import * as i23 from "@angular/router";
25
- import * as i24 from "@angular/common";
26
- import * as i25 from "@angular/cdk/overlay";
27
- import * as i26 from "@angular/cdk/portal";
23
+ import * as i22 from "./search-input/safe-html.pipe";
24
+ import * as i23 from "./click-outside.directive";
25
+ import * as i24 from "@angular/router";
26
+ import * as i25 from "@angular/common";
27
+ import * as i26 from "@angular/cdk/overlay";
28
+ import * as i27 from "@angular/cdk/portal";
28
29
  export * from './buttons/button/button.component';
29
30
  export * from './buttons/link-button/link-button.component';
30
31
  export * from './breadcrumb/breadcrumb.component';
@@ -47,9 +48,10 @@ export * from './tabs/tab-pane/tab-pane.component';
47
48
  export * from './pagination/pagination.component';
48
49
  export * from './scroll';
49
50
  export * from './search-input/search-input.component';
51
+ export * from './search-input/safe-html.pipe';
50
52
  export * from './click-outside.directive';
51
53
  export declare class FestoAngularComponentsModule {
52
54
  static ɵfac: i0.ɵɵFactoryDeclaration<FestoAngularComponentsModule, never>;
53
- static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularComponentsModule, [typeof i1.ButtonComponent, typeof i2.LinkButtonComponent, typeof i3.BreadcrumbComponent, typeof i4.LoadingIndicatorComponent, typeof i5.ChipContainerComponent, typeof i6.ChipComponent, typeof i7.PaginationComponent, typeof i8.TableHeaderCellDirective, typeof i9.StepperComponent, typeof i10.PopoverComponent, typeof i11.PopoverMenuComponent, typeof i12.TooltipDirective, typeof i13.PopoverContentComponent, typeof i14.PopoverContentDirective, typeof i15.LegendComponent, typeof i16.LegendDirective, typeof i17.ProgressComponent, typeof i18.TabsComponent, typeof i19.TabPaneComponent, typeof i20.ScrollableDirective, typeof i21.SearchInputComponent, typeof i22.ClickOutsideDirective], [typeof i23.RouterModule, typeof i24.CommonModule, typeof i25.OverlayModule, typeof i26.PortalModule], [typeof i1.ButtonComponent, typeof i2.LinkButtonComponent, typeof i3.BreadcrumbComponent, typeof i4.LoadingIndicatorComponent, typeof i5.ChipContainerComponent, typeof i6.ChipComponent, typeof i7.PaginationComponent, typeof i8.TableHeaderCellDirective, typeof i9.StepperComponent, typeof i10.PopoverComponent, typeof i11.PopoverMenuComponent, typeof i12.TooltipDirective, typeof i13.PopoverContentComponent, typeof i14.PopoverContentDirective, typeof i15.LegendComponent, typeof i16.LegendDirective, typeof i17.ProgressComponent, typeof i18.TabsComponent, typeof i19.TabPaneComponent, typeof i20.ScrollableDirective, typeof i21.SearchInputComponent, typeof i22.ClickOutsideDirective]>;
55
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularComponentsModule, [typeof i1.ButtonComponent, typeof i2.LinkButtonComponent, typeof i3.BreadcrumbComponent, typeof i4.LoadingIndicatorComponent, typeof i5.ChipContainerComponent, typeof i6.ChipComponent, typeof i7.PaginationComponent, typeof i8.TableHeaderCellDirective, typeof i9.StepperComponent, typeof i10.PopoverComponent, typeof i11.PopoverMenuComponent, typeof i12.TooltipDirective, typeof i13.PopoverContentComponent, typeof i14.PopoverContentDirective, typeof i15.LegendComponent, typeof i16.LegendDirective, typeof i17.ProgressComponent, typeof i18.TabsComponent, typeof i19.TabPaneComponent, typeof i20.ScrollableDirective, typeof i21.SearchInputComponent, typeof i22.SafeHtmlPipe, typeof i23.ClickOutsideDirective], [typeof i24.RouterModule, typeof i25.CommonModule, typeof i26.OverlayModule, typeof i27.PortalModule], [typeof i1.ButtonComponent, typeof i2.LinkButtonComponent, typeof i3.BreadcrumbComponent, typeof i4.LoadingIndicatorComponent, typeof i5.ChipContainerComponent, typeof i6.ChipComponent, typeof i7.PaginationComponent, typeof i8.TableHeaderCellDirective, typeof i9.StepperComponent, typeof i10.PopoverComponent, typeof i11.PopoverMenuComponent, typeof i12.TooltipDirective, typeof i13.PopoverContentComponent, typeof i14.PopoverContentDirective, typeof i15.LegendComponent, typeof i16.LegendDirective, typeof i17.ProgressComponent, typeof i18.TabsComponent, typeof i19.TabPaneComponent, typeof i20.ScrollableDirective, typeof i21.SearchInputComponent, typeof i22.SafeHtmlPipe, typeof i23.ClickOutsideDirective]>;
54
56
  static ɵinj: i0.ɵɵInjectorDeclaration<FestoAngularComponentsModule>;
55
57
  }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SafeHtmlPipe implements PipeTransform {
5
+ protected sanitizer: DomSanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(value: any): SafeHtml;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml">;
10
+ }
@@ -1,5 +1,22 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ export declare class SearchSuggestion {
4
+ /**
5
+ * a html-string. e.g.: '<b> hello </b>'
6
+ */
7
+ template: string;
8
+ /**
9
+ * This Value will be used as new query when the user selects the suggestion.
10
+ */
11
+ value: string;
12
+ /**
13
+ * Creates a basic Suggestion from a string. The first query match is highlighted by bold tags.
14
+ * @param suggestionString The suggested string (should contain the whole query)
15
+ * @param query The current query. This string will be highlighted.
16
+ * @returns a html-string.
17
+ */
18
+ static basicSuggestion(suggestionString: string, query: string): SearchSuggestion;
19
+ }
3
20
  /**
4
21
  * A custom form element for search inputs.
5
22
  */
@@ -36,12 +53,12 @@ export declare class SearchInputComponent {
36
53
  /**
37
54
  * The list of suggestions
38
55
  */
39
- set suggestions(value: string[]);
56
+ set suggestions(value: SearchSuggestion[]);
40
57
  /**
41
58
  * The list of suggestions capped by 10 entries
42
59
  */
43
- get cappedSuggestions(): string[];
44
- innerSuggestions: string[];
60
+ get cappedSuggestions(): SearchSuggestion[];
61
+ innerSuggestions: SearchSuggestion[];
45
62
  hideSuggestionList: boolean;
46
63
  selectedSuggestionIndex: number;
47
64
  keyhandler(event: KeyboardEvent): void;
@@ -49,8 +66,8 @@ export declare class SearchInputComponent {
49
66
  onFocus(): void;
50
67
  onInput(event: any): void;
51
68
  onSearch(event: any): void;
52
- onSuggestionClick(suggestion: string): void;
53
- clearQuerry(): void;
69
+ onSuggestionClick(suggestion: SearchSuggestion): void;
70
+ clearQuery(): void;
54
71
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchInputComponent, never>;
55
72
  static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "fng-search-input", never, { "label": "label"; "disabled": "disabled"; "value": "value"; "suggestions": "suggestions"; }, { "fngChange": "fngChange"; "fngSearch": "fngSearch"; }, never, never>;
56
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/angular",
3
- "version": "3.1.0-pre-20220203.4",
3
+ "version": "3.1.0-pre-20220217.3",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "license": "apache-2.0",
6
6
  "description": "CSS framework and utils to build FESTO web applications",
@@ -1,3 +1,7 @@
1
1
  .fwe-w-100 {
2
2
  width: 100%;
3
3
  }
4
+
5
+ .fwe-search-suggestion {
6
+ height: 40px;
7
+ }