@sumaris-net/ngx-components 18.26.10 → 18.26.11
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/esm2022/src/app/shared/functions.mjs +1 -1
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +8 -5
- package/esm2022/src/app/shared/image/gallery/slideshow/image-gallery-slideshow.component.mjs +18 -13
- package/fesm2022/sumaris-net.ngx-components.mjs +21 -13
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +3 -3
- package/src/app/shared/image/gallery/slideshow/image-gallery-slideshow.component.d.ts +5 -3
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@ export declare function isNotNilOrBlank<T>(obj: T | null | undefined): boolean;
|
|
|
7
7
|
export declare function isNotNilOrNaN<T>(obj: T | null | undefined): boolean;
|
|
8
8
|
export declare function isNilOrNaN<T>(obj: T | null | undefined): boolean;
|
|
9
9
|
export declare function isNotEmptyArray<T>(obj: T[] | readonly T[] | null | undefined): boolean;
|
|
10
|
-
export declare function firstArrayValue<T>(obj: T[] | null | undefined): T | undefined;
|
|
11
|
-
export declare function lastArrayValue<T>(obj: T[] | null | undefined): T | undefined;
|
|
12
|
-
export declare function isEmptyArray<T>(obj: T[] | null | undefined): boolean;
|
|
10
|
+
export declare function firstArrayValue<T>(obj: T[] | readonly T[] | null | undefined): T | undefined;
|
|
11
|
+
export declare function lastArrayValue<T>(obj: T[] | readonly T[] | null | undefined): T | undefined;
|
|
12
|
+
export declare function isEmptyArray<T>(obj: T[] | readonly T[] | null | undefined): boolean;
|
|
13
13
|
export declare function arrayResize<T>(array: T[] | null | undefined, size: number, defaultValue?: T): T[];
|
|
14
14
|
export declare function newArray<T>(size: number, defaultValue?: T): T[];
|
|
15
15
|
export declare function isNotNilBoolean(obj: any | null | undefined): obj is boolean;
|
|
@@ -5,6 +5,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
5
5
|
import { Swiper } from 'swiper/types';
|
|
6
6
|
import { Image, ImageSize } from '../../image.model';
|
|
7
7
|
import { ImageEditEvent, ImageEditFormat, ImageGallerySlideChangeEvent } from '../image-gallery.model';
|
|
8
|
+
import { WaitForOptions } from '../../../observables';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
interface CropRect {
|
|
10
11
|
x: number;
|
|
@@ -22,9 +23,9 @@ export declare class AppImageGallerySlideshowComponent<T extends Image = Image>
|
|
|
22
23
|
protected alterCtrl: AlertController;
|
|
23
24
|
protected translate: TranslateService;
|
|
24
25
|
protected cd: ChangeDetectorRef;
|
|
25
|
-
protected activeSlideIndex: number;
|
|
26
|
-
protected swiperModules: ((opts: any) => void)[];
|
|
27
26
|
protected _swiper: Swiper;
|
|
27
|
+
protected swiperModules: ((opts: any) => void)[];
|
|
28
|
+
protected activeSlideIndex: number;
|
|
28
29
|
protected _zoomState: {
|
|
29
30
|
scale: number;
|
|
30
31
|
tx: number;
|
|
@@ -98,6 +99,7 @@ export declare class AppImageGallerySlideshowComponent<T extends Image = Image>
|
|
|
98
99
|
constructor(alterCtrl: AlertController, translate: TranslateService, cd: ChangeDetectorRef);
|
|
99
100
|
ngOnDestroy(): void;
|
|
100
101
|
protected getSwiper(swiperElement?: any): Swiper;
|
|
102
|
+
protected waitForSwiper(swiperElement?: any, waitForOptions?: WaitForOptions): Promise<Swiper>;
|
|
101
103
|
/**
|
|
102
104
|
* Waits (a few animation frames) until Swiper's own slides array reflects at least `minCount` items.
|
|
103
105
|
* Needed after `fetchMore`: the new `<swiper-slide>` elements come from the `rows` input re-rendering,
|
|
@@ -113,7 +115,7 @@ export declare class AppImageGallerySlideshowComponent<T extends Image = Image>
|
|
|
113
115
|
* configured here), so a simple index comparison is unambiguous.
|
|
114
116
|
*/
|
|
115
117
|
protected _emitSlideChange(previousIndex: number, activeIndex: number): void;
|
|
116
|
-
protected onSwiperInit(swiperElement: any): void
|
|
118
|
+
protected onSwiperInit(swiperElement: any): Promise<void>;
|
|
117
119
|
/**
|
|
118
120
|
* Swiper's own touch/mouse-drag-to-swipe gesture is captured very early (before our crop overlay's
|
|
119
121
|
* own mousedown handler can stop it), so it must be disabled upfront whenever the crop tool is active
|
|
@@ -18,7 +18,7 @@ export interface InputElement extends FocusableElement {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function isInputElement(object: any): object is InputElement;
|
|
20
20
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
21
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
21
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
|
|
22
22
|
export interface CanGainFocusOptions {
|
|
23
23
|
minTabindex?: number;
|
|
24
24
|
maxTabindex?: number;
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.26.
|
|
5
|
+
"version": "18.26.11",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|