@sumaris-net/ngx-components 2.4.81 → 2.4.82-rc2
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/esm2020/src/app/core/table/table-select-columns.component.mjs +1 -1
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +41 -31
- package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +3 -2
- package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +1 -1
- package/esm2020/src/app/shared/material/badge/badge.directive.mjs +128 -110
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +26 -13
- package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +43 -33
- package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +3 -2
- package/esm2020/src/app/shared/shared.module.mjs +1 -1
- package/esm2020/src/app/shared/storage/storage-explorer.component.mjs +1 -1
- package/esm2020/src/app/shared/toast/toast.testing.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +235 -182
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +230 -176
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +8 -8
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +14 -17
- package/src/app/shared/material/badge/badge.directive.d.ts +25 -18
- package/src/app/shared/material/badge/badge.test.d.ts +8 -0
- package/src/app/shared/material/swipe/material.swipe.d.ts +12 -12
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": "2.4.
|
|
4
|
+
"version": "2.4.82-rc2",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@noble/ed25519": "^1.7.1",
|
|
13
|
-
"@rx-angular/cdk": "^
|
|
14
|
-
"@rx-angular/state": "^
|
|
15
|
-
"@rx-angular/template": "^
|
|
13
|
+
"@rx-angular/cdk": "^14.0.0",
|
|
14
|
+
"@rx-angular/state": "^14.0.0",
|
|
15
|
+
"@rx-angular/template": "^14.0.0",
|
|
16
16
|
"clone": "~2.1.2",
|
|
17
17
|
"tslib": "~2.3.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@angular-devkit/build-angular": "~14.2.11",
|
|
21
21
|
"@angular/compiler-cli": "~14.2.12",
|
|
22
|
-
"@apollo/client": "~3.7.
|
|
22
|
+
"@apollo/client": "~3.7.14",
|
|
23
23
|
"@ionic/storage": "~3.0.6",
|
|
24
24
|
"d3": "~7.6.1",
|
|
25
25
|
"localforage": "~1.10.0",
|
|
26
|
-
"rxjs": "^
|
|
26
|
+
"rxjs": "^7.5.7"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"url": "https://gitlab.ifremer.fr/sih-public/sumaris/ngx-sumaris-components/-/issues"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
38
|
-
"npm": ">=
|
|
37
|
+
"node": ">= 16.17.0",
|
|
38
|
+
"npm": ">= 9.1.1",
|
|
39
39
|
"yarn": ">= 1.22.0"
|
|
40
40
|
},
|
|
41
41
|
"module": "fesm2015/sumaris-net.ngx-components.mjs",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
|
3
3
|
import { TableDataSource, TableElement } from '@e-is/ngx-material-table';
|
|
4
4
|
import { Environment } from '../../../../environments/environment.class';
|
|
5
5
|
import { ImageService } from '../image.service';
|
|
6
6
|
import { Image } from '../image.model';
|
|
7
|
-
import { AlertController, IonModal, IonPopover,
|
|
7
|
+
import { AlertController, IonModal, IonPopover, Platform, PopoverController } from '@ionic/angular';
|
|
8
8
|
import { CollectionViewer, ListRange } from '@angular/cdk/collections';
|
|
9
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
10
10
|
import { AppColors } from '../../types';
|
|
11
11
|
import { FormGroup } from '@angular/forms';
|
|
12
|
-
import { EventEmitter } from '@angular/core';
|
|
13
12
|
import { PredefinedColors } from '@ionic/core';
|
|
13
|
+
import { Swiper } from 'swiper/types';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare type GalleryMode = 'mosaic' | 'list';
|
|
16
|
-
export interface ISwiper {
|
|
16
|
+
export interface ISwiper extends Swiper {
|
|
17
17
|
activeIndex: number;
|
|
18
18
|
imagesLoaded: number;
|
|
19
19
|
}
|
|
@@ -35,16 +35,10 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
35
35
|
protected _titleForm: FormGroup;
|
|
36
36
|
protected _titleAutofocus: boolean;
|
|
37
37
|
protected _slidesSubscription: Subscription;
|
|
38
|
+
protected swiperModules: ((opts: any) => void)[];
|
|
39
|
+
protected _swiper: Swiper;
|
|
38
40
|
zoomActive: boolean;
|
|
39
41
|
zoomScale: number;
|
|
40
|
-
sliderOpts: {
|
|
41
|
-
allowSlidePrev: boolean;
|
|
42
|
-
allowSlideNext: boolean;
|
|
43
|
-
zoom: boolean;
|
|
44
|
-
};
|
|
45
|
-
modalSliderOpts: {
|
|
46
|
-
zoom: boolean;
|
|
47
|
-
};
|
|
48
42
|
viewChange: BehaviorSubject<ListRange>;
|
|
49
43
|
cardColor: string | PredefinedColors;
|
|
50
44
|
debug: boolean;
|
|
@@ -63,8 +57,10 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
63
57
|
get enabled(): boolean;
|
|
64
58
|
get rows(): TableElement<T>[];
|
|
65
59
|
get rowCount(): number;
|
|
60
|
+
get activeIndex(): number;
|
|
66
61
|
zoomModal: IonModal;
|
|
67
62
|
titlePopover: IonPopover;
|
|
63
|
+
swiperRef: ElementRef;
|
|
68
64
|
onBeforeDeleteRows: EventEmitter<import("../../events").PromiseEvent<boolean, {
|
|
69
65
|
rows: TableElement<T>[];
|
|
70
66
|
}>>;
|
|
@@ -87,11 +83,12 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
87
83
|
protected getTableUnknownDataSourceError(): Error;
|
|
88
84
|
protected clickRow(row: TableElement<T>, index: number): Promise<void>;
|
|
89
85
|
protected activeSlideIndex: number;
|
|
90
|
-
protected
|
|
91
|
-
protected
|
|
92
|
-
protected
|
|
93
|
-
protected
|
|
94
|
-
protected
|
|
86
|
+
protected getSwiper(swiperElement?: any): Swiper;
|
|
87
|
+
protected initModalSlides(swiperElement: any): Promise<void>;
|
|
88
|
+
protected zoom(swiperElement: any, zoomIn: boolean): Promise<void>;
|
|
89
|
+
protected deleteFromModal(event: any, swiperElement: any): Promise<boolean>;
|
|
90
|
+
protected slidePrev(swiperElement: any): Promise<void>;
|
|
91
|
+
protected slideNext(swiperElement: any): Promise<void>;
|
|
95
92
|
protected canDeleteRows(rows: TableElement<T>[], opts?: {
|
|
96
93
|
interactive?: boolean;
|
|
97
94
|
}): Promise<boolean>;
|
|
@@ -1,30 +1,37 @@
|
|
|
1
|
-
import { ElementRef, NgZone,
|
|
2
|
-
import { MatBadge } from '@angular/material/badge';
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MatBadge, MatBadgePosition } from '@angular/material/badge';
|
|
3
3
|
import { AppColors } from '../../types';
|
|
4
4
|
import { AriaDescriber } from '@angular/cdk/a11y';
|
|
5
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare type MatBadgeFill = 'clear' | 'solid';
|
|
7
|
-
export declare class BadgeDirective extends MatBadge implements
|
|
8
|
+
export declare class BadgeDirective extends MatBadge implements AfterViewInit, OnChanges, OnDestroy {
|
|
8
9
|
protected el: ElementRef<HTMLElement>;
|
|
9
|
-
|
|
10
|
-
get
|
|
11
|
-
|
|
12
|
-
get
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
get
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
true: any;
|
|
11
|
+
get isOverlapHost(): boolean;
|
|
12
|
+
get isAboveHost(): boolean;
|
|
13
|
+
get isBelowHost(): boolean;
|
|
14
|
+
get isBeforeHost(): boolean;
|
|
15
|
+
get isAfterHost(): boolean;
|
|
16
|
+
get isSmallHost(): boolean;
|
|
17
|
+
get isMediumHost(): boolean;
|
|
18
|
+
get isLargeHost(): boolean;
|
|
19
|
+
get isHiddenHost(): boolean;
|
|
20
|
+
get isDisabledHost(): boolean;
|
|
21
|
+
appBadgeColor: AppColors;
|
|
22
|
+
appBadgeFill: MatBadgeFill;
|
|
23
|
+
appBadgeMatIcon: string;
|
|
24
|
+
appBadgeIcon: string;
|
|
25
|
+
appBadgeHidden: BooleanInput;
|
|
26
|
+
appBadgeOverlap: BooleanInput;
|
|
27
|
+
appBadgePosition: MatBadgePosition;
|
|
21
28
|
private _html;
|
|
22
|
-
private _subscription;
|
|
23
|
-
private _$update;
|
|
24
29
|
constructor(_ngZone: NgZone, el: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
|
|
25
30
|
ngOnInit(): void;
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
26
33
|
ngOnDestroy(): void;
|
|
27
34
|
private updateView;
|
|
28
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, [null, null, null, null, { optional: true; }]>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "disabled": "matBadgeDisabled"; "color": "appBadgeColor"; "size": "appBadgeSize"; "fill": "appBadgeFill"; "overlap": "appBadgeOverlap"; "
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "disabled": "matBadgeDisabled"; "color": "appBadgeColor"; "size": "appBadgeSize"; "fill": "appBadgeFill"; "hidden": "appBadgeHidden"; "overlap": "appBadgeOverlap"; "position": "appBadgePosition"; "appBadgeColor": "appBadgeColor"; "appBadgeFill": "appBadgeFill"; "appBadgeMatIcon": "appBadgeMatIcon"; "appBadgeIcon": "appBadgeIcon"; "appBadgeHidden": "appBadgeHidden"; "appBadgeOverlap": "appBadgeOverlap"; "appBadgePosition": "appBadgePosition"; }, {}, never, never, false>;
|
|
30
37
|
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
1
2
|
import { BehaviorSubject } from 'rxjs';
|
|
2
3
|
import { MatBadgeFill } from './badge.directive';
|
|
3
4
|
import { MatBadgeSize } from '@angular/material/badge';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class MatBadgeTestPage {
|
|
7
|
+
private cd;
|
|
8
|
+
userText: string;
|
|
9
|
+
matBadgeContent: string;
|
|
6
10
|
$icon: BehaviorSubject<string>;
|
|
7
11
|
$size: BehaviorSubject<MatBadgeSize>;
|
|
8
12
|
$fill: BehaviorSubject<MatBadgeFill>;
|
|
9
13
|
$color: BehaviorSubject<string>;
|
|
10
14
|
$hidden: BehaviorSubject<boolean>;
|
|
15
|
+
$overlap: BehaviorSubject<boolean>;
|
|
16
|
+
constructor(cd: ChangeDetectorRef);
|
|
17
|
+
onInputChanged(event: any): void;
|
|
18
|
+
onMatBadgeContentChanged(event: any): void;
|
|
11
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeTestPage, never>;
|
|
12
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatBadgeTestPage, "mat-badge-test", never, {}, {}, never, never, false>;
|
|
13
21
|
}
|
|
@@ -4,8 +4,8 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
4
4
|
import { InputElement, selectInputContent } from '../../inputs';
|
|
5
5
|
import { EqualsFn, DisplayFn } from '../../form/field.model';
|
|
6
6
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
|
-
import { IonSlides } from '@ionic/angular';
|
|
8
7
|
import { MatButton } from '@angular/material/button';
|
|
8
|
+
import { Swiper } from 'swiper/types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, ControlValueAccessor {
|
|
11
11
|
protected cd: ChangeDetectorRef;
|
|
@@ -17,14 +17,13 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
17
17
|
private _itemsSubscription;
|
|
18
18
|
private _writing;
|
|
19
19
|
private _tabindex;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
20
|
+
private _swiper;
|
|
21
|
+
protected previousDisabled: boolean;
|
|
22
|
+
protected nextDisabled: boolean;
|
|
23
|
+
protected showSlides: boolean;
|
|
24
|
+
protected $items: BehaviorSubject<any[]>;
|
|
25
|
+
protected $loaded: BehaviorSubject<boolean>;
|
|
26
|
+
protected swiperModules: ((opts: any) => void)[];
|
|
28
27
|
logPrefix: string;
|
|
29
28
|
formControl: UntypedFormControl;
|
|
30
29
|
formControlName: string;
|
|
@@ -49,7 +48,7 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
49
48
|
blurred: EventEmitter<FocusEvent>;
|
|
50
49
|
focused: EventEmitter<FocusEvent>;
|
|
51
50
|
fakeInput: ElementRef;
|
|
52
|
-
|
|
51
|
+
swiperRef: ElementRef | undefined;
|
|
53
52
|
prevButton: MatButton;
|
|
54
53
|
nextButton: MatButton;
|
|
55
54
|
get value(): any;
|
|
@@ -74,15 +73,16 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
74
73
|
next(): void;
|
|
75
74
|
reachStart(reached: boolean): void;
|
|
76
75
|
reachEnd(reached: boolean): void;
|
|
77
|
-
|
|
76
|
+
swiperLoaded(): void;
|
|
78
77
|
slideChanged(): void;
|
|
78
|
+
private lockSwipes;
|
|
79
79
|
private loadItems;
|
|
80
80
|
private checkIfTouched;
|
|
81
81
|
private markForCheck;
|
|
82
82
|
private updateSlides;
|
|
83
83
|
private slideTo;
|
|
84
84
|
private updateButtons;
|
|
85
|
-
|
|
85
|
+
getSwiper(): Promise<Swiper>;
|
|
86
86
|
ready(): Promise<void>;
|
|
87
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSwipeField, [null, { optional: true; }]>;
|
|
88
88
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatSwipeField, "mat-swipe-field", never, { "logPrefix": "logPrefix"; "formControl": "formControl"; "formControlName": "formControlName"; "floatLabel": "floatLabel"; "appearance": "appearance"; "placeholder": "placeholder"; "debug": "debug"; "required": "required"; "mobile": "mobile"; "clearable": "clearable"; "equals": "equals"; "displayWith": "displayWith"; "displayAttributes": "displayAttributes"; "appAutofocus": "appAutofocus"; "classList": "class"; "tabindex": "tabindex"; "items": "items"; }, { "onClick": "click"; "blurred": "blur"; "focused": "focus"; }, never, never, false>;
|