@sumaris-net/ngx-components 21.0.0-rc34 → 21.0.0-rc35

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "21.0.0-rc34",
4
+ "version": "21.0.0-rc35",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "21.0.0-rc34",
5
+ "version": "21.0.0-rc35",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -1531,7 +1531,7 @@ interface InputElement extends FocusableElement {
1531
1531
  }
1532
1532
  declare function isInputElement(object: any): object is InputElement;
1533
1533
  declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
1534
- declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
1534
+ declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
1535
1535
  interface CanGainFocusOptions {
1536
1536
  minTabindex?: number;
1537
1537
  maxTabindex?: number;
@@ -6184,6 +6184,14 @@ declare class UserSettings extends Entity<UserSettings> {
6184
6184
  }
6185
6185
  declare function accountToString(data: Account): string;
6186
6186
 
6187
+ interface Image {
6188
+ dataUrl: string;
6189
+ url: string;
6190
+ title?: string;
6191
+ exif?: any;
6192
+ }
6193
+ type ImageSize = 'small' | 'medium' | 'large' | 'full';
6194
+
6187
6195
  declare const IMAGE_DEFAULTS: {
6188
6196
  MAX_HEIGHT: number;
6189
6197
  MAX_WIDTH: number;
@@ -6223,6 +6231,17 @@ declare class ImagesUtils {
6223
6231
  type?: string;
6224
6232
  filename?: string;
6225
6233
  }): File;
6234
+ /**
6235
+ * Returns the query params to append to an image url to get the image with the given size and version.
6236
+ **/
6237
+ static computeUrlQueryParams<T extends Image>(image: T, opts?: {
6238
+ imageSize?: ImageSize | string;
6239
+ imageSizeQueryParam?: string;
6240
+ imageVersionQueryParam?: string;
6241
+ imageVersionFn?: (image: T) => string;
6242
+ }): {
6243
+ [key: string]: any;
6244
+ };
6226
6245
  }
6227
6246
 
6228
6247
  declare class FileService {
@@ -6994,14 +7013,6 @@ declare class ComponentDirtyGuard implements CanDeactivate<CanLeave> {
6994
7013
  static ɵprov: i0.ɵɵInjectableDeclaration<ComponentDirtyGuard>;
6995
7014
  }
6996
7015
 
6997
- interface Image {
6998
- dataUrl: string;
6999
- url: string;
7000
- title?: string;
7001
- exif?: any;
7002
- }
7003
- type ImageSize = 'small' | 'medium' | 'large' | 'full';
7004
-
7005
7016
  type GalleryMode = 'mosaic' | 'list';
7006
7017
  type ImageEditFormat = 'png' | 'jpeg';
7007
7018
  interface ImageEditEvent<T extends Image = Image> {
@@ -7155,7 +7166,7 @@ declare class AppImageGallerySlideshowComponent<T extends Image = Image> impleme
7155
7166
  * @param image - The image object for which the query parameters are being generated.
7156
7167
  * @return An object containing key-value pairs representing the query parameters for the image URL.
7157
7168
  */
7158
- protected getImageUrlQueryParams(image: T): {
7169
+ protected computeImageUrlQueryParams(image: T): {
7159
7170
  [key: string]: any;
7160
7171
  };
7161
7172
  protected discardEdit(swiperElement: any): void;
@@ -7441,7 +7452,7 @@ declare class AppImageGalleryComponent<T extends Image> implements OnInit, OnDes
7441
7452
  backdropDismiss?: boolean;
7442
7453
  keyboardClose?: boolean;
7443
7454
  }): Promise<boolean>;
7444
- protected getImageSizeQueryParams(mode?: GalleryMode | 'modal'): {
7455
+ protected computeImageUrlQueryParams(image: T, mode?: GalleryMode | 'modal'): {
7445
7456
  [key: string]: any;
7446
7457
  };
7447
7458
  protected markForCheck(): void;