@stemy/ngx-utils 11.2.10 → 12.0.2

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('reflect-metadata'), require('moment'), require('rxjs/operators'), require('rxjs'), require('invokable'), require('@angular/router'), require('@angular/common'), require('ngx-device-detector'), require('@angular/common/http'), require('@angular/platform-browser'), require('resize-detector'), require('@angular/forms')) :
3
3
  typeof define === 'function' && define.amd ? define('@stemy/ngx-utils', ['exports', '@angular/core', 'reflect-metadata', 'moment', 'rxjs/operators', 'rxjs', 'invokable', '@angular/router', '@angular/common', 'ngx-device-detector', '@angular/common/http', '@angular/platform-browser', 'resize-detector', '@angular/forms'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.stemy = global.stemy || {}, global.stemy['ngx-utils'] = {}), global.ng.core, null, global.moment, global.rxjs.operators, global.rxjs, global.invokable, global.ng.router, global.ng.common, global['ngx-device-detector'], global.ng.common.http, global.ng.platformBrowser, global['resize-detector'], global.ng.forms));
5
- }(this, (function (exports, core, reflectMetadata, moment, operators, rxjs, invokable, router, common, ngxDeviceDetector, http, platformBrowser, resizeDetector, forms) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.stemy = global.stemy || {}, global.stemy["ngx-utils"] = {}), global.ng.core, null, global.moment, global.rxjs.operators, global.rxjs, global.invokable, global.ng.router, global.ng.common, global["ngx-device-detector"], global.ng.common.http, global.ng.platformBrowser, global["resize-detector"], global.ng.forms));
5
+ })(this, (function (exports, core, reflectMetadata, moment, operators, rxjs, invokable, router, common, ngxDeviceDetector, http, platformBrowser, resizeDetector, forms) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -28,6 +28,8 @@
28
28
  return extendStatics(d, b);
29
29
  };
30
30
  function __extends(d, b) {
31
+ if (typeof b !== "function" && b !== null)
32
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
31
33
  extendStatics(d, b);
32
34
  function __() { this.constructor = d; }
33
35
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -213,11 +215,13 @@
213
215
  }
214
216
  return ar;
215
217
  }
218
+ /** @deprecated */
216
219
  function __spread() {
217
220
  for (var ar = [], i = 0; i < arguments.length; i++)
218
221
  ar = ar.concat(__read(arguments[i]));
219
222
  return ar;
220
223
  }
224
+ /** @deprecated */
221
225
  function __spreadArrays() {
222
226
  for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
227
  s += arguments[i].length;
@@ -226,7 +230,11 @@
226
230
  r[k] = a[j];
227
231
  return r;
228
232
  }
229
- ;
233
+ function __spreadArray(to, from) {
234
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
235
+ to[j] = from[i];
236
+ return to;
237
+ }
230
238
  function __await(v) {
231
239
  return this instanceof __await ? (this.v = v, this) : new __await(v);
232
240
  }
@@ -632,6 +640,8 @@
632
640
  var ICON_SERVICE = new core.InjectionToken("icon-service");
633
641
  var LANGUAGE_SERVICE = new core.InjectionToken("language-service");
634
642
  var AUTH_SERVICE = new core.InjectionToken("auth-service");
643
+ // --- Storage Service ---
644
+ exports.StorageMode = void 0;
635
645
  (function (StorageMode) {
636
646
  StorageMode[StorageMode["Local"] = 0] = "Local";
637
647
  StorageMode[StorageMode["Session"] = 1] = "Session";
@@ -1673,6 +1683,135 @@
1673
1683
  return MathUtils;
1674
1684
  }());
1675
1685
 
1686
+ /**
1687
+ * Use this service to determine which is the current environment
1688
+ */
1689
+ var UniversalService = /** @class */ (function () {
1690
+ function UniversalService(platformId, dds) {
1691
+ this.platformId = platformId;
1692
+ this.dds = dds;
1693
+ var info = this.dds.getDeviceInfo();
1694
+ this.crawler = /(bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|lighthouse|angular-universal|PTST)/gi.test(info.userAgent);
1695
+ }
1696
+ Object.defineProperty(UniversalService.prototype, "isBrowser", {
1697
+ get: function () {
1698
+ return common.isPlatformBrowser(this.platformId);
1699
+ },
1700
+ enumerable: false,
1701
+ configurable: true
1702
+ });
1703
+ Object.defineProperty(UniversalService.prototype, "isServer", {
1704
+ get: function () {
1705
+ return common.isPlatformServer(this.platformId);
1706
+ },
1707
+ enumerable: false,
1708
+ configurable: true
1709
+ });
1710
+ Object.defineProperty(UniversalService.prototype, "deviceInfo", {
1711
+ get: function () {
1712
+ return this.isServer
1713
+ ? {
1714
+ userAgent: "angular-universal",
1715
+ os: "unknown",
1716
+ browser: "node",
1717
+ device: "node",
1718
+ os_version: "unknown",
1719
+ browser_version: "unknown",
1720
+ deviceType: "unknown",
1721
+ orientation: "landscape"
1722
+ }
1723
+ : this.dds.getDeviceInfo();
1724
+ },
1725
+ enumerable: false,
1726
+ configurable: true
1727
+ });
1728
+ Object.defineProperty(UniversalService.prototype, "browserName", {
1729
+ get: function () {
1730
+ return this.dds.browser;
1731
+ },
1732
+ enumerable: false,
1733
+ configurable: true
1734
+ });
1735
+ Object.defineProperty(UniversalService.prototype, "browserVersion", {
1736
+ get: function () {
1737
+ return this.dds.browser_version;
1738
+ },
1739
+ enumerable: false,
1740
+ configurable: true
1741
+ });
1742
+ Object.defineProperty(UniversalService.prototype, "isExplorer", {
1743
+ get: function () {
1744
+ return this.dds.browser == "ie";
1745
+ },
1746
+ enumerable: false,
1747
+ configurable: true
1748
+ });
1749
+ Object.defineProperty(UniversalService.prototype, "isEdge", {
1750
+ get: function () {
1751
+ return this.dds.browser == "ms-edge";
1752
+ },
1753
+ enumerable: false,
1754
+ configurable: true
1755
+ });
1756
+ Object.defineProperty(UniversalService.prototype, "isChrome", {
1757
+ get: function () {
1758
+ return this.dds.browser == "chrome";
1759
+ },
1760
+ enumerable: false,
1761
+ configurable: true
1762
+ });
1763
+ Object.defineProperty(UniversalService.prototype, "isFirefox", {
1764
+ get: function () {
1765
+ return this.dds.browser == "firefox";
1766
+ },
1767
+ enumerable: false,
1768
+ configurable: true
1769
+ });
1770
+ Object.defineProperty(UniversalService.prototype, "isSafari", {
1771
+ get: function () {
1772
+ return this.dds.browser == "safari";
1773
+ },
1774
+ enumerable: false,
1775
+ configurable: true
1776
+ });
1777
+ Object.defineProperty(UniversalService.prototype, "isTablet", {
1778
+ get: function () {
1779
+ return this.dds.isTablet();
1780
+ },
1781
+ enumerable: false,
1782
+ configurable: true
1783
+ });
1784
+ Object.defineProperty(UniversalService.prototype, "isMobile", {
1785
+ get: function () {
1786
+ return this.dds.isMobile();
1787
+ },
1788
+ enumerable: false,
1789
+ configurable: true
1790
+ });
1791
+ Object.defineProperty(UniversalService.prototype, "isDesktop", {
1792
+ get: function () {
1793
+ return this.dds.isDesktop();
1794
+ },
1795
+ enumerable: false,
1796
+ configurable: true
1797
+ });
1798
+ Object.defineProperty(UniversalService.prototype, "isCrawler", {
1799
+ get: function () {
1800
+ return this.crawler;
1801
+ },
1802
+ enumerable: false,
1803
+ configurable: true
1804
+ });
1805
+ return UniversalService;
1806
+ }());
1807
+ UniversalService.decorators = [
1808
+ { type: core.Injectable }
1809
+ ];
1810
+ UniversalService.ctorParameters = function () { return [
1811
+ { type: String, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },
1812
+ { type: ngxDeviceDetector.DeviceDetectorService }
1813
+ ]; };
1814
+
1676
1815
  var emptySnapshot = new router.ActivatedRouteSnapshot();
1677
1816
  var emptyData = { id: "" };
1678
1817
  var emptyParams = {};
@@ -1680,11 +1819,12 @@
1680
1819
  var emptyComponents = [];
1681
1820
  var StateService = /** @class */ (function (_super) {
1682
1821
  __extends(StateService, _super);
1683
- function StateService(injector, zone, router$1) {
1822
+ function StateService(injector, zone, universal, router$1) {
1684
1823
  if (router$1 === void 0) { router$1 = null; }
1685
1824
  var _this = _super.call(this, null) || this;
1686
1825
  _this.injector = injector;
1687
1826
  _this.zone = zone;
1827
+ _this.universal = universal;
1688
1828
  _this.router = router$1;
1689
1829
  _this.handleRouterEvent = function (event) {
1690
1830
  if (!(event instanceof router.NavigationEnd))
@@ -1855,27 +1995,75 @@
1855
1995
  });
1856
1996
  });
1857
1997
  };
1858
- StateService.prototype.navigate = function (commands, extras) {
1859
- if (!this.router)
1860
- return Promise.resolve(false);
1861
- extras = Object.assign({}, this.globalExtras, extras || {});
1862
- var tree = this.router.createUrlTree(commands, extras);
1863
- return this.navigateByUrl(tree, extras);
1998
+ StateService.prototype.navigateByUrl = function (url, navigationExtras) {
1999
+ if (navigationExtras === void 0) { navigationExtras = {}; }
2000
+ return __awaiter(this, void 0, void 0, function () {
2001
+ return __generator(this, function (_a) {
2002
+ return [2 /*return*/, this.navigate(url, navigationExtras)];
2003
+ });
2004
+ });
1864
2005
  };
1865
- StateService.prototype.navigateByUrl = function (url, extras) {
1866
- var _this = this;
1867
- if (!this.router)
1868
- return Promise.resolve(false);
1869
- extras = Object.assign({}, this.globalExtras, extras || {});
1870
- return new Promise(function (resolve) {
1871
- _this.zone.run(function () {
1872
- _this.router.navigateByUrl(url, extras).then(resolve, function () { return resolve(false); });
2006
+ StateService.prototype.navigate = function (url, navigationExtras) {
2007
+ if (navigationExtras === void 0) { navigationExtras = {}; }
2008
+ return __awaiter(this, void 0, void 0, function () {
2009
+ var _a, tree, extras;
2010
+ var _this = this;
2011
+ return __generator(this, function (_b) {
2012
+ if (!this.router)
2013
+ return [2 /*return*/, false];
2014
+ _a = __read(this.createUrlTree(url, navigationExtras), 2), tree = _a[0], extras = _a[1];
2015
+ return [2 /*return*/, this.zone.run(function () {
2016
+ return _this.router.navigateByUrl(tree, extras);
2017
+ })];
2018
+ });
2019
+ });
2020
+ };
2021
+ StateService.prototype.open = function (url, target, navigationExtras) {
2022
+ if (target === void 0) { target = "_blank"; }
2023
+ if (navigationExtras === void 0) { navigationExtras = {}; }
2024
+ return __awaiter(this, void 0, void 0, function () {
2025
+ var _a, tree, extras;
2026
+ var _this = this;
2027
+ return __generator(this, function (_b) {
2028
+ if (!this.router)
2029
+ return [2 /*return*/, false];
2030
+ _a = __read(this.createUrlTree(url, navigationExtras), 2), tree = _a[0], extras = _a[1];
2031
+ return [2 /*return*/, this.zone.run(function () {
2032
+ return _this.openInNewWindow(tree, target) || _this.router.navigateByUrl(tree, extras);
2033
+ })];
1873
2034
  });
1874
2035
  });
1875
2036
  };
1876
2037
  StateService.prototype.subscribeImmediately = function (next, error, complete) {
1877
2038
  return this.pipe(operators.skipWhile(function (v) { return v == null; })).subscribe(next, error, complete);
1878
2039
  };
2040
+ StateService.prototype.openInNewWindow = function (tree, target) {
2041
+ if (!this.universal.isBrowser)
2042
+ return false;
2043
+ var baseUrl = window.location.href.replace(this.router.url, "");
2044
+ try {
2045
+ var serialized = this.router.serializeUrl(tree);
2046
+ var separator = serialized.startsWith("/") ? "" : "/";
2047
+ window.open(baseUrl + separator + serialized, target);
2048
+ return true;
2049
+ }
2050
+ catch (e) {
2051
+ console.log("Can't open new window: " + e);
2052
+ return false;
2053
+ }
2054
+ };
2055
+ StateService.prototype.createUrlTree = function (url, extras) {
2056
+ if (!this.router)
2057
+ return null;
2058
+ extras = Object.assign(extras, this.globalExtras, extras || {});
2059
+ if (ObjectUtils.isArray(url)) {
2060
+ return [this.router.createUrlTree(url, extras), extras];
2061
+ }
2062
+ if (ObjectUtils.isString(url)) {
2063
+ return [this.router.parseUrl(url), extras];
2064
+ }
2065
+ return [url, extras];
2066
+ };
1879
2067
  return StateService;
1880
2068
  }(rxjs.BehaviorSubject));
1881
2069
  StateService.decorators = [
@@ -1884,6 +2072,7 @@
1884
2072
  StateService.ctorParameters = function () { return [
1885
2073
  { type: core.Injector },
1886
2074
  { type: core.NgZone },
2075
+ { type: UniversalService },
1887
2076
  { type: router.Router, decorators: [{ type: core.Optional }] }
1888
2077
  ]; };
1889
2078
 
@@ -2162,7 +2351,7 @@
2162
2351
  return;
2163
2352
  cb();
2164
2353
  });
2165
- return ObservableUtils.multiSubscription.apply(ObservableUtils, __spread(subscriptions));
2354
+ return ObservableUtils.multiSubscription.apply(ObservableUtils, __spreadArray([], __read(subscriptions)));
2166
2355
  };
2167
2356
  ObservableUtils.fromFunction = function (callbackFunc) {
2168
2357
  var subject;
@@ -2482,135 +2671,6 @@
2482
2671
  return Vector;
2483
2672
  }());
2484
2673
 
2485
- /**
2486
- * Use this service to determine which is the current environment
2487
- */
2488
- var UniversalService = /** @class */ (function () {
2489
- function UniversalService(platformId, dds) {
2490
- this.platformId = platformId;
2491
- this.dds = dds;
2492
- var info = this.dds.getDeviceInfo();
2493
- this.crawler = /(bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|lighthouse|angular-universal|PTST)/gi.test(info.userAgent);
2494
- }
2495
- Object.defineProperty(UniversalService.prototype, "isBrowser", {
2496
- get: function () {
2497
- return common.isPlatformBrowser(this.platformId);
2498
- },
2499
- enumerable: false,
2500
- configurable: true
2501
- });
2502
- Object.defineProperty(UniversalService.prototype, "isServer", {
2503
- get: function () {
2504
- return common.isPlatformServer(this.platformId);
2505
- },
2506
- enumerable: false,
2507
- configurable: true
2508
- });
2509
- Object.defineProperty(UniversalService.prototype, "deviceInfo", {
2510
- get: function () {
2511
- return this.isServer
2512
- ? {
2513
- userAgent: "angular-universal",
2514
- os: "unknown",
2515
- browser: "node",
2516
- device: "node",
2517
- os_version: "unknown",
2518
- browser_version: "unknown",
2519
- deviceType: "unknown",
2520
- orientation: "landscape"
2521
- }
2522
- : this.dds.getDeviceInfo();
2523
- },
2524
- enumerable: false,
2525
- configurable: true
2526
- });
2527
- Object.defineProperty(UniversalService.prototype, "browserName", {
2528
- get: function () {
2529
- return this.dds.browser;
2530
- },
2531
- enumerable: false,
2532
- configurable: true
2533
- });
2534
- Object.defineProperty(UniversalService.prototype, "browserVersion", {
2535
- get: function () {
2536
- return this.dds.browser_version;
2537
- },
2538
- enumerable: false,
2539
- configurable: true
2540
- });
2541
- Object.defineProperty(UniversalService.prototype, "isExplorer", {
2542
- get: function () {
2543
- return this.dds.browser == "ie";
2544
- },
2545
- enumerable: false,
2546
- configurable: true
2547
- });
2548
- Object.defineProperty(UniversalService.prototype, "isEdge", {
2549
- get: function () {
2550
- return this.dds.browser == "ms-edge";
2551
- },
2552
- enumerable: false,
2553
- configurable: true
2554
- });
2555
- Object.defineProperty(UniversalService.prototype, "isChrome", {
2556
- get: function () {
2557
- return this.dds.browser == "chrome";
2558
- },
2559
- enumerable: false,
2560
- configurable: true
2561
- });
2562
- Object.defineProperty(UniversalService.prototype, "isFirefox", {
2563
- get: function () {
2564
- return this.dds.browser == "firefox";
2565
- },
2566
- enumerable: false,
2567
- configurable: true
2568
- });
2569
- Object.defineProperty(UniversalService.prototype, "isSafari", {
2570
- get: function () {
2571
- return this.dds.browser == "safari";
2572
- },
2573
- enumerable: false,
2574
- configurable: true
2575
- });
2576
- Object.defineProperty(UniversalService.prototype, "isTablet", {
2577
- get: function () {
2578
- return this.dds.isTablet();
2579
- },
2580
- enumerable: false,
2581
- configurable: true
2582
- });
2583
- Object.defineProperty(UniversalService.prototype, "isMobile", {
2584
- get: function () {
2585
- return this.dds.isMobile();
2586
- },
2587
- enumerable: false,
2588
- configurable: true
2589
- });
2590
- Object.defineProperty(UniversalService.prototype, "isDesktop", {
2591
- get: function () {
2592
- return this.dds.isDesktop();
2593
- },
2594
- enumerable: false,
2595
- configurable: true
2596
- });
2597
- Object.defineProperty(UniversalService.prototype, "isCrawler", {
2598
- get: function () {
2599
- return this.crawler;
2600
- },
2601
- enumerable: false,
2602
- configurable: true
2603
- });
2604
- return UniversalService;
2605
- }());
2606
- UniversalService.decorators = [
2607
- { type: core.Injectable }
2608
- ];
2609
- UniversalService.ctorParameters = function () { return [
2610
- { type: String, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },
2611
- { type: ngxDeviceDetector.DeviceDetectorService }
2612
- ]; };
2613
-
2614
2674
  var emptyGuards = [];
2615
2675
  var AclService = /** @class */ (function () {
2616
2676
  function AclService(injector, state, auth) {
@@ -4020,7 +4080,10 @@
4020
4080
  { type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] }
4021
4081
  ]; };
4022
4082
 
4023
- function emptyRemove() {
4083
+ function emptyRemove$1() {
4084
+ }
4085
+ function isWindow(el) {
4086
+ return typeof window !== "undefined" && el === window;
4024
4087
  }
4025
4088
  var ResizeEventPlugin = /** @class */ (function (_super) {
4026
4089
  __extends(ResizeEventPlugin, _super);
@@ -4037,38 +4100,32 @@
4037
4100
  var zone = this.manager.getZone();
4038
4101
  return zone.runOutsideAngular(function () {
4039
4102
  if (_this.universal.isServer)
4040
- return emptyRemove;
4103
+ return emptyRemove$1;
4041
4104
  var cb = function (el) {
4042
4105
  zone.run(function () { return handler(el); });
4043
4106
  };
4044
- resizeDetector.addListener(element, cb);
4107
+ if (isWindow(element)) {
4108
+ element.addEventListener(eventName, cb);
4109
+ }
4110
+ else {
4111
+ resizeDetector.addListener(element, cb);
4112
+ }
4045
4113
  return function () {
4046
4114
  try {
4047
- resizeDetector.removeListener(element, cb);
4115
+ if (isWindow(element)) {
4116
+ element.removeEventListener(eventName, cb);
4117
+ }
4118
+ else {
4119
+ resizeDetector.removeListener(element, cb);
4120
+ }
4048
4121
  }
4049
4122
  catch (e) {
4050
4123
  }
4051
4124
  };
4052
4125
  });
4053
4126
  };
4054
- ResizeEventPlugin.prototype.addGlobalEventListener = function (element, eventName, handler) {
4055
- var _this = this;
4056
- var zone = this.manager.getZone();
4057
- return zone.runOutsideAngular(function () {
4058
- if (_this.universal.isServer)
4059
- return emptyRemove;
4060
- if (!StringUtils.has(element, "document", "window")) {
4061
- console.error("Global resize event other than window or document?", element);
4062
- return emptyRemove;
4063
- }
4064
- var target = "window" == element ? window : document;
4065
- var listener = handler;
4066
- target.addEventListener(eventName, listener);
4067
- return function () { return target.removeEventListener(eventName, listener); };
4068
- });
4069
- };
4070
4127
  return ResizeEventPlugin;
4071
- }(platformBrowserangular_packages_platform_browser_platform_browser_g));
4128
+ }(platformBrowser["ɵangular_packages_platform_browser_platform_browser_g"]));
4072
4129
  ResizeEventPlugin.EVENT_NAME = "resize";
4073
4130
  ResizeEventPlugin.decorators = [
4074
4131
  { type: core.Injectable }
@@ -4078,7 +4135,7 @@
4078
4135
  { type: UniversalService }
4079
4136
  ]; };
4080
4137
 
4081
- function emptyRemove$1() {
4138
+ function emptyRemove() {
4082
4139
  }
4083
4140
  var ScrollEventPlugin = /** @class */ (function (_super) {
4084
4141
  __extends(ScrollEventPlugin, _super);
@@ -4095,7 +4152,7 @@
4095
4152
  var zone = this.manager.getZone();
4096
4153
  return zone.runOutsideAngular(function () {
4097
4154
  if (_this.universal.isServer)
4098
- return emptyRemove$1;
4155
+ return emptyRemove;
4099
4156
  var callback = function (e) {
4100
4157
  zone.run(function () { return handler(e); });
4101
4158
  };
@@ -4103,24 +4160,8 @@
4103
4160
  return function () { return element.removeEventListener(eventName, callback); };
4104
4161
  });
4105
4162
  };
4106
- ScrollEventPlugin.prototype.addGlobalEventListener = function (element, eventName, handler) {
4107
- var _this = this;
4108
- var zone = this.manager.getZone();
4109
- return zone.runOutsideAngular(function () {
4110
- if (_this.universal.isServer)
4111
- return emptyRemove$1;
4112
- if (!StringUtils.has(element, "document", "window")) {
4113
- console.error("Global resize event other than window or document?", element);
4114
- return emptyRemove$1;
4115
- }
4116
- var target = "window" == element ? window : document;
4117
- var listener = handler;
4118
- target.addEventListener(eventName, listener);
4119
- return function () { return target.removeEventListener(eventName, listener); };
4120
- });
4121
- };
4122
4163
  return ScrollEventPlugin;
4123
- }(platformBrowserangular_packages_platform_browser_platform_browser_g));
4164
+ }(platformBrowser["ɵangular_packages_platform_browser_platform_browser_g"]));
4124
4165
  ScrollEventPlugin.EVENT_NAME = "scroll";
4125
4166
  ScrollEventPlugin.decorators = [
4126
4167
  { type: core.Injectable }
@@ -4207,14 +4248,14 @@
4207
4248
  },] }
4208
4249
  ];
4209
4250
 
4210
- function defaultFilter() {
4251
+ function defaultFilter$1() {
4211
4252
  return true;
4212
4253
  }
4213
4254
  var FilterPipe = /** @class */ (function () {
4214
4255
  function FilterPipe() {
4215
4256
  }
4216
4257
  FilterPipe.prototype.transform = function (values, filter, params) {
4217
- if (filter === void 0) { filter = defaultFilter; }
4258
+ if (filter === void 0) { filter = defaultFilter$1; }
4218
4259
  if (params === void 0) { params = {}; }
4219
4260
  var isObject = ObjectUtils.isObject(values);
4220
4261
  if (!isObject && !ObjectUtils.isArray(values))
@@ -4248,14 +4289,14 @@
4248
4289
  },] }
4249
4290
  ];
4250
4291
 
4251
- function defaultFilter$1() {
4292
+ function defaultFilter() {
4252
4293
  return true;
4253
4294
  }
4254
4295
  var FindPipe = /** @class */ (function () {
4255
4296
  function FindPipe() {
4256
4297
  }
4257
4298
  FindPipe.prototype.transform = function (values, filter, params) {
4258
- if (filter === void 0) { filter = defaultFilter$1; }
4299
+ if (filter === void 0) { filter = defaultFilter; }
4259
4300
  if (params === void 0) { params = {}; }
4260
4301
  if (!ObjectUtils.isArray(values))
4261
4302
  return [];
@@ -5804,7 +5845,7 @@
5804
5845
  PaginationMenuComponent,
5805
5846
  UnorderedListComponent
5806
5847
  ];
5807
- var providers = __spread(pipes, [
5848
+ var providers = __spreadArray(__spreadArray([], __read(pipes)), [
5808
5849
  BaseHttpClient,
5809
5850
  BaseHttpService,
5810
5851
  AuthGuard,
@@ -5855,7 +5896,7 @@
5855
5896
  NgxUtilsModule.forRoot = function (config) {
5856
5897
  return {
5857
5898
  ngModule: NgxUtilsModule,
5858
- providers: __spread(providers, [
5899
+ providers: __spreadArray(__spreadArray([], __read(providers)), [
5859
5900
  {
5860
5901
  provide: API_SERVICE,
5861
5902
  useExisting: (!config ? null : config.apiService) || ApiService
@@ -5901,12 +5942,12 @@
5901
5942
  }());
5902
5943
  NgxUtilsModule.decorators = [
5903
5944
  { type: core.NgModule, args: [{
5904
- declarations: __spread(pipes, directives, components),
5945
+ declarations: __spreadArray(__spreadArray(__spreadArray([], __read(pipes)), __read(directives)), __read(components)),
5905
5946
  imports: [
5906
5947
  common.CommonModule,
5907
5948
  forms.FormsModule
5908
5949
  ],
5909
- exports: __spread(pipes, directives, components, [
5950
+ exports: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(pipes)), __read(directives)), __read(components)), [
5910
5951
  forms.FormsModule
5911
5952
  ]),
5912
5953
  providers: pipes
@@ -6020,14 +6061,14 @@
6020
6061
  exports.ValuedPromise = ValuedPromise;
6021
6062
  exports.ValuesPipe = ValuesPipe;
6022
6063
  exports.Vector = Vector;
6023
- exports.ɵa = pipes;
6024
- exports.ɵb = directives;
6025
- exports.ɵc = components;
6026
- exports.ɵd = providers;
6027
- exports.ɵe = loadConfig;
6028
- exports.ɵf = StickyClassDirective;
6064
+ exports["ɵa"] = pipes;
6065
+ exports["ɵb"] = directives;
6066
+ exports["ɵc"] = components;
6067
+ exports["ɵd"] = providers;
6068
+ exports["ɵe"] = loadConfig;
6069
+ exports["ɵf"] = StickyClassDirective;
6029
6070
 
6030
6071
  Object.defineProperty(exports, '__esModule', { value: true });
6031
6072
 
6032
- })));
6073
+ }));
6033
6074
  //# sourceMappingURL=stemy-ngx-utils.umd.js.map