@sumaris-net/ngx-components 18.3.18 → 18.3.20
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 -2
- package/esm2022/public_api.mjs +2 -1
- package/esm2022/src/app/shared/directives/directives.module.mjs +5 -4
- package/esm2022/src/app/shared/directives/throttled-click.directive.mjs +42 -0
- package/fesm2022/sumaris-net.ngx-components.mjs +43 -5
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/shared/directives/directives.module.d.ts +4 -3
- package/src/app/shared/directives/throttled-click.directive.d.ts +15 -0
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.scss +2 -3
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './src/app/shared/directives/autofocus.directive';
|
|
|
62
62
|
export * from './src/app/shared/directives/ng-var.directive';
|
|
63
63
|
export * from './src/app/shared/directives/drag-and-drop.directive';
|
|
64
64
|
export * from './src/app/shared/directives/autotitle.directive';
|
|
65
|
+
export * from './src/app/shared/directives/throttled-click.directive';
|
|
65
66
|
export * from './src/app/shared/directives/resizable/resizable.directive';
|
|
66
67
|
export * from './src/app/shared/directives/resizable/resizable.component';
|
|
67
68
|
export * from './src/app/shared/directives/resizable/resizable.module';
|
|
@@ -3,10 +3,11 @@ import * as i1 from "./autofocus.directive";
|
|
|
3
3
|
import * as i2 from "./ng-var.directive";
|
|
4
4
|
import * as i3 from "./drag-and-drop.directive";
|
|
5
5
|
import * as i4 from "./autotitle.directive";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "@
|
|
6
|
+
import * as i5 from "./throttled-click.directive";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@ionic/angular";
|
|
8
9
|
export declare class SharedDirectivesModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDirectivesModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective], [typeof
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective], [typeof i6.CommonModule, typeof i7.IonicModule], [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedDirectivesModule>;
|
|
12
13
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ThrottledClickDirective implements OnInit, OnDestroy {
|
|
4
|
+
throttleTime: number;
|
|
5
|
+
throttledClick: EventEmitter<UIEvent>;
|
|
6
|
+
private clicks;
|
|
7
|
+
private subscription;
|
|
8
|
+
constructor();
|
|
9
|
+
clickEvent(event: UIEvent): void;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
emitThrottledClick(e: UIEvent): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThrottledClickDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThrottledClickDirective, "[appPreventDoubleClick],[throttledClick]", never, { "throttleTime": { "alias": "throttleTime"; "required": false; }; }, { "throttledClick": "throttledClick"; }, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -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):
|
|
20
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
|
|
21
21
|
export interface CanGainFocusOptions {
|
|
22
22
|
minTabindex?: number;
|
|
23
23
|
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.3.
|
|
5
|
+
"version": "18.3.20",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
package/src/theme/_material.scss
CHANGED
|
@@ -34,10 +34,9 @@
|
|
|
34
34
|
--mat-tab-header-label-text-tracking: 0.0178571429em;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// Fix height of the mat-latlong-field, otherwise there is one more pixel (because of the sign that use a mat-select)
|
|
38
38
|
.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
|
|
39
|
-
|
|
40
|
-
//transform: translateY(0px) !important;
|
|
39
|
+
height: auto;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
// Allow to hidden the down arrow of the mat-select (e.g. used in autocomplete - desktop + multiple )
|