@lenne.tech/ng-base 13.2.0 → 13.2.1
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/public-api.mjs +3 -1
- package/esm2020/src/decorators/debounce.decorator.mjs +12 -0
- package/fesm2015/lenne.tech-ng-base.mjs +13 -1
- package/fesm2015/lenne.tech-ng-base.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base.mjs +13 -1
- package/fesm2020/lenne.tech-ng-base.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/decorators/debounce.decorator.d.ts +1 -0
|
@@ -1464,6 +1464,18 @@ class GraphQLMeta {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
|
+
function debounce(delay = 300) {
|
|
1468
|
+
return (target, propertyKey, descriptor) => {
|
|
1469
|
+
const timeoutKey = Symbol();
|
|
1470
|
+
const original = descriptor.value;
|
|
1471
|
+
descriptor.value = (...args) => {
|
|
1472
|
+
clearTimeout(this[timeoutKey]);
|
|
1473
|
+
this[timeoutKey] = setTimeout(() => original.apply(this, args), delay);
|
|
1474
|
+
};
|
|
1475
|
+
return descriptor;
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1467
1479
|
/**
|
|
1468
1480
|
* Authentication guard
|
|
1469
1481
|
*/
|
|
@@ -2658,5 +2670,5 @@ const MustMatch = (control) => {
|
|
|
2658
2670
|
* Generated bundle index. Do not edit.
|
|
2659
2671
|
*/
|
|
2660
2672
|
|
|
2661
|
-
export { AuthGuard, AuthService, BASE_MODULE_CONFIG, BaseModule, BasicUser, CanDeactivateGuard, ComparisonOperatorEnum, ContextMenuDirective, DateAgoPipe, EllipsesPipe, FormsService, FullscreenService, GraphQLEnum, GraphQLMeta, GraphQLMetaService, GraphQLPlusService, GraphQLRequestType, GraphQLService, GraphQLType, Helper, ImageService, LazyLoadDirective, LoaderService, LogicalOperatorEnum, LogoutGuard, MatchHeightDirective, MustMatch, ResizableDirective, SEOService, SafeHtmlPipe, ScrollService, SortOrderEnum, Standard, StorageService, ThemeService, WsService, apolloOptionsFactory };
|
|
2673
|
+
export { AuthGuard, AuthService, BASE_MODULE_CONFIG, BaseModule, BasicUser, CanDeactivateGuard, ComparisonOperatorEnum, ContextMenuDirective, DateAgoPipe, EllipsesPipe, FormsService, FullscreenService, GraphQLEnum, GraphQLMeta, GraphQLMetaService, GraphQLPlusService, GraphQLRequestType, GraphQLService, GraphQLType, Helper, ImageService, LazyLoadDirective, LoaderService, LogicalOperatorEnum, LogoutGuard, MatchHeightDirective, MustMatch, ResizableDirective, SEOService, SafeHtmlPipe, ScrollService, SortOrderEnum, Standard, StorageService, ThemeService, WsService, apolloOptionsFactory, debounce };
|
|
2662
2674
|
//# sourceMappingURL=lenne.tech-ng-base.mjs.map
|