@stemy/ngx-utils 19.9.26 → 19.9.28

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.
@@ -3314,6 +3314,7 @@ class AclService {
3314
3314
  path: `${basePath}/${route.path}`,
3315
3315
  page: route.data.page || route.data.id,
3316
3316
  label: route.data.name,
3317
+ icon: route.data.icon,
3317
3318
  side: route.data.side || `left`,
3318
3319
  external: false,
3319
3320
  data: route.data
@@ -3579,6 +3580,10 @@ class BaseHttpService {
3579
3580
  if (mode instanceof Date) {
3580
3581
  return this.caches.expiresAt(mode);
3581
3582
  }
3583
+ const num = Number(mode);
3584
+ if (0 < num) {
3585
+ return this.caches.expiresIn(num);
3586
+ }
3582
3587
  return mode === false ? this.caches.ignore : this.caches.permanent;
3583
3588
  }
3584
3589
  url(url) {
@@ -3645,7 +3650,7 @@ class BaseHttpService {
3645
3650
  : Number(params.limit);
3646
3651
  const page = Math.max(Number(params.page), 0);
3647
3652
  const start = Math.max(page * limit, 0);
3648
- const end = Math.min(start + limit, data.length - 1);
3653
+ const end = Math.min(start + limit, data.length);
3649
3654
  resolve({
3650
3655
  total: data.length,
3651
3656
  items: data.slice(start, end),
@@ -6307,7 +6312,7 @@ class AsyncMethodBase {
6307
6312
  handleClick(ev) {
6308
6313
  if (ev) {
6309
6314
  // If it's a new tab action then we dont handle the click
6310
- if (ev.ctrlKey || ev.metaKey || ev.button === 1) {
6315
+ if (ev.ctrlKey || ev.shiftKey || ev.metaKey || ev.button === 1) {
6311
6316
  return true;
6312
6317
  }
6313
6318
  ev.preventDefault();