@sumaris-net/ngx-components 18.0.6-alpha1 → 18.0.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.
- package/doc/changelog.md +8 -0
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +2 -2
- package/esm2022/src/app/core/menu/menu.service.mjs +2 -1
- package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +12 -7
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +2 -2
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +18 -8
- package/esm2022/src/app/shared/platforms.mjs +11 -4
- package/fesm2022/sumaris-net.ngx-components.mjs +53 -31
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/hotkeys/hotkeys.service.d.ts +5 -3
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/platforms.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { EventManager } from '@angular/platform-browser';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ModalController, PopoverController } from '@ionic/angular';
|
|
4
|
+
import { ModalController, Platform, PopoverController } from '@ionic/angular';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
interface Options {
|
|
@@ -33,10 +33,12 @@ export declare class Hotkeys {
|
|
|
33
33
|
private _defaults;
|
|
34
34
|
private _dialogRef;
|
|
35
35
|
private _config;
|
|
36
|
-
|
|
36
|
+
readonly defaultControlKey: string;
|
|
37
|
+
readonly defaultControlKeyName: string;
|
|
38
|
+
constructor(platform: Platform, eventManager: EventManager, dialog: MatDialog, modalController: ModalController, popoverController: PopoverController, config?: Partial<HotKeysConfig>);
|
|
37
39
|
addShortcut(options: Partial<Options>): Observable<KeyboardEvent>;
|
|
38
40
|
openHelpModal(): void;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Hotkeys, [null, null, null, null, { optional: true; }]>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Hotkeys, [null, null, null, null, null, { optional: true; }]>;
|
|
40
42
|
static ɵprov: i0.ɵɵInjectableDeclaration<Hotkeys>;
|
|
41
43
|
}
|
|
42
44
|
export {};
|
|
@@ -16,7 +16,7 @@ export interface InputElement extends FocusableElement {
|
|
|
16
16
|
}
|
|
17
17
|
export declare function isInputElement(object: any): object is InputElement;
|
|
18
18
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
19
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
19
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
|
|
20
20
|
export interface CanGainFocusOptions {
|
|
21
21
|
minTabindex?: number;
|
|
22
22
|
maxTabindex?: number;
|
|
@@ -2,6 +2,8 @@ export declare const matchMedia: (win: Window, query: string) => boolean;
|
|
|
2
2
|
export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
|
|
3
3
|
export declare const isWindows: (win?: Window) => boolean;
|
|
4
4
|
export declare const isTouchUi: (win?: Window) => boolean;
|
|
5
|
+
export declare const isIpad: (win: Window) => boolean;
|
|
6
|
+
export declare const isMac: (win: Window) => boolean;
|
|
5
7
|
export declare const isIOS: (win: Window) => boolean;
|
|
6
8
|
export declare const isAndroid: (win: Window) => boolean;
|
|
7
9
|
export declare const isCapacitor: (win: any) => boolean;
|