@sumaris-net/ngx-components 18.16.5 → 18.16.7

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.
Files changed (31) hide show
  1. package/doc/changelog.md +8 -0
  2. package/esm2022/public_api.mjs +3 -1
  3. package/esm2022/src/app/core/graphql/graphql.service.mjs +16 -30
  4. package/esm2022/src/app/core/services/account.service.mjs +3 -3
  5. package/esm2022/src/app/core/services/local-settings.service.mjs +3 -3
  6. package/esm2022/src/app/core/services/network.service.mjs +100 -32
  7. package/esm2022/src/app/shared/base64.utils.mjs +59 -0
  8. package/esm2022/src/app/shared/functions.mjs +1 -10
  9. package/esm2022/src/app/shared/html.utils.mjs +35 -0
  10. package/esm2022/src/app/shared/pipes/html.pipes.mjs +36 -3
  11. package/esm2022/src/app/shared/pipes/pipes.module.mjs +5 -2
  12. package/esm2022/src/app/social/feed/feed.component.mjs +13 -11
  13. package/esm2022/src/app/social/feed/feed.model.mjs +4 -12
  14. package/esm2022/src/app/social/feed/feed.module.mjs +5 -4
  15. package/esm2022/src/app/social/feed/feed.service.mjs +2 -2
  16. package/esm2022/src/environments/environment.mjs +2 -1
  17. package/fesm2022/sumaris-net.ngx-components.mjs +258 -92
  18. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/public_api.d.ts +2 -0
  21. package/src/app/core/graphql/graphql.service.d.ts +5 -9
  22. package/src/app/core/services/network.service.d.ts +28 -10
  23. package/src/app/shared/base64.utils.d.ts +7 -0
  24. package/src/app/shared/functions.d.ts +0 -1
  25. package/src/app/shared/html.utils.d.ts +17 -0
  26. package/src/app/shared/inputs.d.ts +1 -1
  27. package/src/app/shared/pipes/html.pipes.d.ts +28 -0
  28. package/src/app/shared/pipes/pipes.module.d.ts +1 -1
  29. package/src/app/social/feed/feed.model.d.ts +2 -3
  30. package/src/app/social/feed/feed.module.d.ts +2 -1
  31. package/src/assets/manifest.json +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.16.5",
4
+ "version": "18.16.7",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -121,6 +121,8 @@ export * from './src/app/shared/observables';
121
121
  export * from './src/app/shared/events';
122
122
  export * from './src/app/shared/alerts';
123
123
  export * from './src/app/shared/platforms';
124
+ export * from './src/app/shared/html.utils';
125
+ export * from './src/app/shared/base64.utils';
124
126
  export * from './src/app/shared/geolocation/geolocation.utils';
125
127
  export * from './src/app/shared/version/versions';
126
128
  export * from './src/app/shared/file/file.utils';
@@ -16,6 +16,7 @@ import { PropertyMap } from '../../shared/types';
16
16
  import { StartableService } from '../../shared/services/startable-service.class';
17
17
  import { StorageService } from '../../shared/storage/storage.service';
18
18
  import { DocumentNode } from 'graphql';
19
+ import { LocalSettingsService } from '../services/local-settings.service';
19
20
  import * as i0 from "@angular/core";
20
21
  export interface WatchQueryOptions<V> {
21
22
  query: any;
@@ -35,23 +36,19 @@ export interface MutateQueryOptions<TData, TVariables = OperationVariables, TCon
35
36
  }
36
37
  export declare const APP_GRAPHQL_TYPE_POLICIES: InjectionToken<TypePolicies>;
37
38
  export declare const APP_GRAPHQL_FRAGMENTS: InjectionToken<DocumentNode[]>;
38
- export interface ConnectionParams extends Record<string, string> {
39
- authToken?: string;
40
- authBasic?: string;
41
- }
42
39
  export declare class GraphqlService extends StartableService<ApolloClient<any>> {
43
40
  private platform;
44
41
  private apollo;
45
42
  private httpLink;
46
43
  private network;
47
44
  private storage;
45
+ private settings;
48
46
  protected environment: Environment;
49
47
  private typePolicies;
50
48
  private fragments;
51
49
  private readonly _networkStatusChanged$;
52
50
  private httpParams;
53
51
  private wsParams;
54
- private connectionParams;
55
52
  private readonly _defaultFetchPolicy;
56
53
  private onNetworkError;
57
54
  private customErrors;
@@ -59,9 +56,8 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
59
56
  get client(): ApolloClient<any>;
60
57
  get cache(): ApolloCache<any>;
61
58
  get defaultFetchPolicy(): WatchQueryFetchPolicy;
62
- constructor(platform: Platform, apollo: Apollo, httpLink: HttpLink, network: NetworkService, storage: StorageService, environment: Environment, typePolicies: TypePolicies, fragments: DocumentNode[]);
63
- setAuthToken(token: string): Promise<void>;
64
- setAuthBasic(basic: string): Promise<void>;
59
+ private get connectionParams();
60
+ constructor(platform: Platform, apollo: Apollo, httpLink: HttpLink, network: NetworkService, storage: StorageService, settings: LocalSettingsService, environment: Environment, typePolicies: TypePolicies, fragments: DocumentNode[]);
65
61
  /**
66
62
  * Allow to add a field resolver
67
63
  * (see doc: https://www.apollographql.com/docs/react/data/local-state/#handling-client-fields-with-resolvers)
@@ -137,6 +133,6 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
137
133
  private createAppErrorByCode;
138
134
  private getI18nErrorMessageByCode;
139
135
  private toAppError;
140
- static ɵfac: i0.ɵɵFactoryDeclaration<GraphqlService, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
136
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraphqlService, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
141
137
  static ɵprov: i0.ɵɵInjectableDeclaration<GraphqlService>;
142
138
  }
@@ -17,6 +17,10 @@ import { StartableObservableService } from '../../shared/services/startable-obse
17
17
  import { NetworkEventType } from './network.types';
18
18
  import { ILoggingService } from '../../shared/logging/logger.model';
19
19
  import * as i0 from "@angular/core";
20
+ export interface ConnectionParams extends Record<string, string> {
21
+ authToken?: string;
22
+ authBasic?: string;
23
+ }
20
24
  export declare const PEER_URL_REGEXP: RegExp;
21
25
  export declare const NETWORK_DEFAULT_CONNECTION_TIMEOUT = 10000;
22
26
  export declare class NetworkService extends StartableObservableService<Peer, Peer> {
@@ -41,6 +45,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
41
45
  private _deviceConnectionType;
42
46
  private _forceOffline;
43
47
  private readonly _connectionTimeout;
48
+ private readonly _connectionParams;
44
49
  private _listeners;
45
50
  get online(): boolean;
46
51
  get offline(): boolean;
@@ -49,6 +54,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
49
54
  get peer(): Peer;
50
55
  set peer(peer: Peer);
51
56
  get connectionTimeout(): number;
57
+ get connectionParams(): ConnectionParams;
52
58
  constructor(_document: any, platform: Platform, modalCtrl: ModalController, storage: Storage, settings: LocalSettingsService, cache: CacheService, http: HttpClient, environment: Environment, loggingService: ILoggingService, translate: TranslateService, toastController: ToastController);
53
59
  /**
54
60
  * Register to network event
@@ -111,7 +117,27 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
111
117
  clearCache(opts?: {
112
118
  emitEvent?: boolean;
113
119
  }): Promise<void>;
114
- fetch<T>(url: string): Promise<T>;
120
+ /**
121
+ * Sends a GET request to the specified path and returns a promise of the response.
122
+ *
123
+ * @param {string} path The endpoint path to send the GET request to.
124
+ * @param {Object} [opts] Optional parameters for the GET request.
125
+ * @param {HttpHeaders | Object} [opts.headers] Headers to include in the request. Can be an instance of HttpHeaders or an object with header key-value pairs.
126
+ * @param {'json'} [opts.responseType] The type of response expected. Defaults to 'json'.
127
+ * @param {boolean} [opts.nocache] If true, indicates that the response should not be cached.
128
+ * @param {number} [opts.timeout] The timeout for the request in milliseconds.
129
+ * @return {Promise<T>} A promise that resolves with the response of type T.
130
+ */
131
+ get<T>(path: string, opts?: {
132
+ headers?: HttpHeaders | {
133
+ [header: string]: string | string[];
134
+ };
135
+ responseType?: 'json';
136
+ nocache?: boolean;
137
+ timeout?: number;
138
+ }): Promise<T>;
139
+ setAuthToken(token: string): Promise<void>;
140
+ setAuthBasic(basic: string): Promise<void>;
115
141
  protected ngOnStart(peer?: Peer): Promise<Peer>;
116
142
  protected ngOnAfterStart(peer: Peer): Promise<void>;
117
143
  protected ngOnStop(): void;
@@ -138,15 +164,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
138
164
  responseType?: 'text';
139
165
  nocache?: boolean;
140
166
  }): Promise<string>;
141
- protected get<T>(path: string, opts?: {
142
- headers?: HttpHeaders | {
143
- [header: string]: string | string[];
144
- };
145
- responseType?: 'json';
146
- nocache?: boolean;
147
- timeout?: number;
148
- }): Promise<T>;
149
- protected addVersionHeader<T extends {
167
+ protected addAppHeaders<T extends {
150
168
  headers?: HttpHeaders | {
151
169
  [header: string]: string | string[];
152
170
  };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Converts an ArrayBuffer into a Base64 encoded string.
3
+ *
4
+ * @param {ArrayBuffer} arrayBuffer - The buffer to be converted into a Base64 string.
5
+ * @return {string} The Base64 encoded string representation of the provided ArrayBuffer.
6
+ */
7
+ export declare function base64ArrayBuffer(arrayBuffer: any): string;
@@ -169,7 +169,6 @@ export declare class Beans {
169
169
  }
170
170
  export declare function findParentWithClass(elem: HTMLElement, className: string): HTMLElement;
171
171
  export declare function intersectArrays<T = any>(values: T[][]): T[];
172
- export declare function noHtml(value: string): string;
173
172
  /**
174
173
  * Interpolates a string by replacing placeholders with corresponding values from the provided object.
175
174
  *
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Removes all HTML tags from a given string.
3
+ *
4
+ * @param {string} value - The input string potentially containing HTML tags.
5
+ * @return {string} A string with all HTML tags removed.
6
+ */
7
+ export declare function noHtml(value: string): string;
8
+ /**
9
+ * Truncates the given HTML string to the specified maximum length, ensuring that the truncation
10
+ * does not break HTML structure and attempts to truncate at word or tag boundaries when possible.
11
+ * Appends an ellipsis (" (...)") to indicate truncation if the content exceeds the maximum length.
12
+ *
13
+ * @param {string} html - The HTML string to be truncated.
14
+ * @param {number} maxLength - The maximum length for the truncated string, including the ellipsis.
15
+ * @return {string} The truncated HTML string, or the original HTML string if its length is within the maximum length.
16
+ */
17
+ export declare function truncateHtml(html: string, maxLength: number): string;
@@ -17,7 +17,7 @@ export interface InputElement extends FocusableElement {
17
17
  }
18
18
  export declare function isInputElement(object: any): object is InputElement;
19
19
  export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
20
- export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
20
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
21
21
  export interface CanGainFocusOptions {
22
22
  minTabindex?: number;
23
23
  maxTabindex?: number;
@@ -1,6 +1,13 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * A custom Angular pipe that removes all HTML tags from a provided string.
6
+ * This is useful for cases where HTML content needs to be sanitized or plain text is required.
7
+ * Applies a function to strip HTML tags from the input value.
8
+ *
9
+ * It implements the `PipeTransform` interface provided by Angular to define its transformation logic.
10
+ */
4
11
  export declare class NoHtmlPipe implements PipeTransform {
5
12
  transform(value: string): string;
6
13
  static ɵfac: i0.ɵɵFactoryDeclaration<NoHtmlPipe, never>;
@@ -20,3 +27,24 @@ export declare class SafeStylePipe implements PipeTransform {
20
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SafeStylePipe, never>;
21
28
  static ɵpipe: i0.ɵɵPipeDeclaration<SafeStylePipe, "safeStyle", false>;
22
29
  }
30
+ /**
31
+ * A custom Angular pipe that truncates an HTML string to a specified maximum length.
32
+ * This pipe ensures that the HTML structure remains valid and properly closed,
33
+ * even after truncation.
34
+ *
35
+ * It uses the `truncateHtml` function internally to handle the truncation logic.
36
+ * This can be useful when there is a need to display a shortened version of an HTML
37
+ * formatted string while preserving its structure.
38
+ *
39
+ * @pipe TruncateHtmlPipe
40
+ * @member {string} name - The name to use for this pipe in Angular templates.
41
+ * @method transform - Takes an HTML string input and truncates it to the specified length.
42
+ * @param value - The HTML string to be truncated.
43
+ * @param maxLength - The maximum length for the truncated string.
44
+ * @returns The truncated HTML string with valid structure.
45
+ */
46
+ export declare class TruncateHtmlPipe implements PipeTransform {
47
+ transform(value: string, maxLength: number): string;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncateHtmlPipe, never>;
49
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncateHtmlPipe, "truncateHtml", false>;
50
+ }
@@ -30,6 +30,6 @@ import * as i28 from "@ionic/angular";
30
30
  import * as i29 from "@ngx-translate/core";
31
31
  export declare class SharedPipesModule {
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
33
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i10.RoundPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i11.ArrayFindByPropertyPipe, typeof i11.SplitArrayInChunksPipe, typeof i11.ArrayMapPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncHtmlPipe, typeof i13.TruncTextPipe, typeof i15.AppendQueryParamsPipePipe, typeof i1.BooleanFormatPipe, typeof i1.MapToPipe, typeof i16.TranslateContextPipe, typeof i16.TranslatablePipe, typeof i17.NgInitDirective, typeof i18.FormErrorPipe, typeof i18.FormErrorTranslatePipe, typeof i18.FormGetPipe, typeof i18.FormGetControlPipe, typeof i18.FormGetArrayPipe, typeof i18.FormGetGroupPipe, typeof i18.FormGetValuePipe, typeof i19.MatColorPipe, typeof i20.AsAnyPipe, typeof i20.AsArrayPipe, typeof i20.AsObservablePipe, typeof i20.AsFloatLabelTypePipe, typeof i21.MaskitoPlaceholderPipe, typeof i22.IsSelectedPipe, typeof i22.IsNotEmptySelectionPipe, typeof i22.IsEmptySelectionPipe, typeof i22.SelectionLengthPipe, typeof i22.IsMultipleSelectionPipe, typeof i22.IsSingleSelectionPipe, typeof i23.BadgeNumberPipe, typeof i20.AsBooleanPipe, typeof i24.SafeHtmlPipe, typeof i24.SafeStylePipe, typeof i24.NoHtmlPipe, typeof i25.DisplayWithPipe, typeof i26.FirstTruePipe, typeof i26.FirstFalsePipe, typeof i26.FirstPipe, typeof i26.MapPipe], [typeof i27.CommonModule, typeof i28.IonicModule, typeof i29.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i10.RoundPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i11.ArrayFindByPropertyPipe, typeof i11.SplitArrayInChunksPipe, typeof i11.ArrayMapPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncHtmlPipe, typeof i13.TruncTextPipe, typeof i15.AppendQueryParamsPipePipe, typeof i1.BooleanFormatPipe, typeof i1.MapToPipe, typeof i16.TranslateContextPipe, typeof i16.TranslatablePipe, typeof i17.NgInitDirective, typeof i18.FormErrorPipe, typeof i18.FormErrorTranslatePipe, typeof i18.FormGetPipe, typeof i18.FormGetControlPipe, typeof i18.FormGetArrayPipe, typeof i18.FormGetGroupPipe, typeof i18.FormGetValuePipe, typeof i19.MatColorPipe, typeof i20.AsAnyPipe, typeof i20.AsArrayPipe, typeof i20.AsObservablePipe, typeof i20.AsFloatLabelTypePipe, typeof i21.MaskitoPlaceholderPipe, typeof i22.IsSelectedPipe, typeof i22.IsNotEmptySelectionPipe, typeof i22.IsEmptySelectionPipe, typeof i22.SelectionLengthPipe, typeof i22.IsMultipleSelectionPipe, typeof i22.IsSingleSelectionPipe, typeof i23.BadgeNumberPipe, typeof i20.AsBooleanPipe, typeof i24.SafeHtmlPipe, typeof i24.SafeStylePipe, typeof i24.NoHtmlPipe, typeof i25.DisplayWithPipe, typeof i26.FirstTruePipe, typeof i26.FirstFalsePipe, typeof i26.FirstPipe, typeof i26.MapPipe]>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i10.RoundPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i11.ArrayFindByPropertyPipe, typeof i11.SplitArrayInChunksPipe, typeof i11.ArrayMapPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncHtmlPipe, typeof i13.TruncTextPipe, typeof i15.AppendQueryParamsPipePipe, typeof i1.BooleanFormatPipe, typeof i1.MapToPipe, typeof i16.TranslateContextPipe, typeof i16.TranslatablePipe, typeof i17.NgInitDirective, typeof i18.FormErrorPipe, typeof i18.FormErrorTranslatePipe, typeof i18.FormGetPipe, typeof i18.FormGetControlPipe, typeof i18.FormGetArrayPipe, typeof i18.FormGetGroupPipe, typeof i18.FormGetValuePipe, typeof i19.MatColorPipe, typeof i20.AsAnyPipe, typeof i20.AsArrayPipe, typeof i20.AsObservablePipe, typeof i20.AsFloatLabelTypePipe, typeof i21.MaskitoPlaceholderPipe, typeof i22.IsSelectedPipe, typeof i22.IsNotEmptySelectionPipe, typeof i22.IsEmptySelectionPipe, typeof i22.SelectionLengthPipe, typeof i22.IsMultipleSelectionPipe, typeof i22.IsSingleSelectionPipe, typeof i23.BadgeNumberPipe, typeof i20.AsBooleanPipe, typeof i24.SafeHtmlPipe, typeof i24.SafeStylePipe, typeof i24.NoHtmlPipe, typeof i24.TruncateHtmlPipe, typeof i25.DisplayWithPipe, typeof i26.FirstTruePipe, typeof i26.FirstFalsePipe, typeof i26.FirstPipe, typeof i26.MapPipe], [typeof i27.CommonModule, typeof i28.IonicModule, typeof i29.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i10.RoundPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i11.ArrayFindByPropertyPipe, typeof i11.SplitArrayInChunksPipe, typeof i11.ArrayMapPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncHtmlPipe, typeof i13.TruncTextPipe, typeof i15.AppendQueryParamsPipePipe, typeof i1.BooleanFormatPipe, typeof i1.MapToPipe, typeof i16.TranslateContextPipe, typeof i16.TranslatablePipe, typeof i17.NgInitDirective, typeof i18.FormErrorPipe, typeof i18.FormErrorTranslatePipe, typeof i18.FormGetPipe, typeof i18.FormGetControlPipe, typeof i18.FormGetArrayPipe, typeof i18.FormGetGroupPipe, typeof i18.FormGetValuePipe, typeof i19.MatColorPipe, typeof i20.AsAnyPipe, typeof i20.AsArrayPipe, typeof i20.AsObservablePipe, typeof i20.AsFloatLabelTypePipe, typeof i21.MaskitoPlaceholderPipe, typeof i22.IsSelectedPipe, typeof i22.IsNotEmptySelectionPipe, typeof i22.IsEmptySelectionPipe, typeof i22.SelectionLengthPipe, typeof i22.IsMultipleSelectionPipe, typeof i22.IsSingleSelectionPipe, typeof i23.BadgeNumberPipe, typeof i20.AsBooleanPipe, typeof i24.SafeHtmlPipe, typeof i24.SafeStylePipe, typeof i24.NoHtmlPipe, typeof i24.TruncateHtmlPipe, typeof i25.DisplayWithPipe, typeof i26.FirstTruePipe, typeof i26.FirstFalsePipe, typeof i26.FirstPipe, typeof i26.MapPipe]>;
34
34
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
35
35
  }
@@ -1,3 +1,4 @@
1
+ import { truncateHtml } from '../../shared/html.utils';
1
2
  export interface JsonFeed {
2
3
  version: string;
3
4
  title: string;
@@ -58,9 +59,7 @@ export declare class JsonFeedUtils {
58
59
  static truncateFeedItemsHtml(feed: JsonFeed, opts?: {
59
60
  maxContentLength?: number;
60
61
  }): JsonFeed;
61
- static truncateHtml(html: string, opts?: {
62
- maxContentLength?: number;
63
- }): string;
62
+ static truncateHtml: typeof truncateHtml;
64
63
  /**
65
64
  * Migrate from old version 1.0 to 1.1
66
65
  * @param feed
@@ -4,8 +4,9 @@ import * as i2 from "./feed.directive";
4
4
  import * as i3 from "../../shared/shared.module";
5
5
  import * as i4 from "@ngx-translate/core";
6
6
  import * as i5 from "../../shared/debug/debug.module";
7
+ import * as i6 from "../../shared/markdown/markdown.module";
7
8
  export declare class FeedModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<FeedModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<FeedModule, [typeof i1.FeedsComponent, typeof i2.FeedDirective], [typeof i3.SharedModule, typeof i4.TranslateModule, typeof i5.SharedDebugModule], [typeof i4.TranslateModule, typeof i1.FeedsComponent, typeof i2.FeedDirective]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FeedModule, [typeof i1.FeedsComponent, typeof i2.FeedDirective], [typeof i3.SharedModule, typeof i4.TranslateModule, typeof i5.SharedDebugModule, typeof i6.SharedMarkdownModule], [typeof i4.TranslateModule, typeof i1.FeedsComponent, typeof i2.FeedDirective]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<FeedModule>;
11
12
  }
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.16.5",
5
+ "version": "18.16.7",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{