@acorex/core 3.0.34 → 3.0.45

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.
@@ -7,18 +7,18 @@
7
7
  merge = merge && Object.prototype.hasOwnProperty.call(merge, 'default') ? merge['default'] : merge;
8
8
 
9
9
  /*! *****************************************************************************
10
- Copyright (c) Microsoft Corporation. All rights reserved.
11
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
12
- this file except in compliance with the License. You may obtain a copy of the
13
- License at http://www.apache.org/licenses/LICENSE-2.0
10
+ Copyright (c) Microsoft Corporation.
14
11
 
15
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
17
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
18
- MERCHANTABLITY OR NON-INFRINGEMENT.
12
+ Permission to use, copy, modify, and/or distribute this software for any
13
+ purpose with or without fee is hereby granted.
19
14
 
20
- See the Apache Version 2.0 License for specific language governing permissions
21
- and limitations under the License.
15
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
+ PERFORMANCE OF THIS SOFTWARE.
22
22
  ***************************************************************************** */
23
23
  /* global Reflect, Promise */
24
24
 
@@ -111,8 +111,13 @@
111
111
  }
112
112
  }
113
113
 
114
+ function __createBinding(o, m, k, k2) {
115
+ if (k2 === undefined) k2 = k;
116
+ o[k2] = m[k];
117
+ }
118
+
114
119
  function __exportStar(m, exports) {
115
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
120
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
116
121
  }
117
122
 
118
123
  function __values(o) {
@@ -534,7 +539,7 @@
534
539
  return moment(date).locale('fa').format('YYYY/M/D');
535
540
  };
536
541
  AXDateTime.prototype.convertStringToGregorian = function (date, format) {
537
- return new Date((moment.from(date, 'fa', 'YYYY/MM/DD').format('YYYY/MM/DD')));
542
+ return new Date(moment.from(date, 'fa', 'YYYY/MM/DD').format('YYYY/MM/DD'));
538
543
  };
539
544
  AXDateTime.prototype.add = function (unit, amount) {
540
545
  if (unit === void 0) { unit = 'day'; }
@@ -878,7 +883,7 @@
878
883
  AXErrorService.ctorParameters = function () { return [
879
884
  { type: core.Injector }
880
885
  ]; };
881
- AXErrorService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AXErrorService_Factory() { return new AXErrorService(core["ɵɵinject"](core.INJECTOR)); }, token: AXErrorService, providedIn: "root" });
886
+ AXErrorService.ɵprov = core.ɵɵdefineInjectable({ factory: function AXErrorService_Factory() { return new AXErrorService(core.ɵɵinject(core.INJECTOR)); }, token: AXErrorService, providedIn: "root" });
882
887
  AXErrorService = __decorate([
883
888
  core.Injectable({ providedIn: 'root' }),
884
889
  __metadata("design:paramtypes", [core.Injector])
@@ -1174,7 +1179,7 @@
1174
1179
  d.events = [];
1175
1180
  }
1176
1181
  };
1177
- AXEventService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AXEventService_Factory() { return new AXEventService(); }, token: AXEventService, providedIn: "root" });
1182
+ AXEventService.ɵprov = core.ɵɵdefineInjectable({ factory: function AXEventService_Factory() { return new AXEventService(); }, token: AXEventService, providedIn: "root" });
1178
1183
  AXEventService = __decorate([
1179
1184
  core.Injectable({ providedIn: 'root' })
1180
1185
  ], AXEventService);
@@ -1247,7 +1252,7 @@
1247
1252
  AXTranslatorService.prototype.get = function (key, lang) {
1248
1253
  return AXTranslator.get(lang, lang);
1249
1254
  };
1250
- AXTranslatorService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AXTranslatorService_Factory() { return new AXTranslatorService(); }, token: AXTranslatorService, providedIn: "platform" });
1255
+ AXTranslatorService.ɵprov = core.ɵɵdefineInjectable({ factory: function AXTranslatorService_Factory() { return new AXTranslatorService(); }, token: AXTranslatorService, providedIn: "platform" });
1251
1256
  AXTranslatorService = __decorate([
1252
1257
  core.Injectable({ providedIn: 'platform' })
1253
1258
  ], AXTranslatorService);
@@ -2294,9 +2299,6 @@
2294
2299
  for (var p in children) {
2295
2300
  if (children.hasOwnProperty(p)) {
2296
2301
  var route = children[p];
2297
- if (parentPath == 'lazyWidgets') {
2298
- debugger;
2299
- }
2300
2302
  var pp = (route.path != '' && route.path != null) ? parentPath + '/' + route.path : parentPath;
2301
2303
  if (pp == search && !route._loadedConfig && route.component) {
2302
2304
  found = route;
@@ -2317,23 +2319,6 @@
2317
2319
  else if (route['_loadedConfig'] || route.children) {
2318
2320
  f(route.children || route['_loadedConfig'].routes, route.path);
2319
2321
  }
2320
- // else if (route.loadChildren && typeof route.loadChildren =='function' ) {
2321
- // const tempModule = await route.loadChildren();
2322
- // let moduleFactory:NgModuleFactory<any>;
2323
- // if (tempModule instanceof NgModuleFactory) {
2324
- // // For AOT
2325
- // moduleFactory = tempModule;
2326
- // } else {
2327
- // // For JIT
2328
- // moduleFactory = await this.compiler.compileModuleAsync(tempModule);
2329
- // }
2330
- // moduleFactory.create(this.injector);
2331
- // debugger
2332
- // const config = this.router.config;
2333
- // config.find(c=>c.path==route.path)
2334
- // route.loadChildren = () => moduleFactory.moduleType;
2335
- // this.router.resetConfig(config);
2336
- // }
2337
2322
  if (found)
2338
2323
  break;
2339
2324
  }
@@ -2350,7 +2335,7 @@
2350
2335
  { type: AXOnDemandPreloadService },
2351
2336
  { type: core.Injector }
2352
2337
  ]; };
2353
- AXRenderService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AXRenderService_Factory() { return new AXRenderService(core["ɵɵinject"](core.ApplicationRef), core["ɵɵinject"](router.Router), core["ɵɵinject"](core.ComponentFactoryResolver), core["ɵɵinject"](core.Compiler), core["ɵɵinject"](AXOnDemandPreloadService), core["ɵɵinject"](core.INJECTOR)); }, token: AXRenderService, providedIn: "root" });
2338
+ AXRenderService.ɵprov = core.ɵɵdefineInjectable({ factory: function AXRenderService_Factory() { return new AXRenderService(core.ɵɵinject(core.ApplicationRef), core.ɵɵinject(router.Router), core.ɵɵinject(core.ComponentFactoryResolver), core.ɵɵinject(core.Compiler), core.ɵɵinject(AXOnDemandPreloadService), core.ɵɵinject(core.INJECTOR)); }, token: AXRenderService, providedIn: "root" });
2354
2339
  AXRenderService = __decorate([
2355
2340
  core.Injectable({ providedIn: 'root' }),
2356
2341
  __metadata("design:paramtypes", [core.ApplicationRef,
@@ -2485,7 +2470,7 @@
2485
2470
  maximumFractionDigits: decimal
2486
2471
  }).format(Number(value)) + (currency != '' ? ' ' + currency : ''));
2487
2472
  };
2488
- AXSeparatorPipe.ɵprov = core["ɵɵdefineInjectable"]({ factory: function AXSeparatorPipe_Factory() { return new AXSeparatorPipe(); }, token: AXSeparatorPipe, providedIn: "root" });
2473
+ AXSeparatorPipe.ɵprov = core.ɵɵdefineInjectable({ factory: function AXSeparatorPipe_Factory() { return new AXSeparatorPipe(); }, token: AXSeparatorPipe, providedIn: "root" });
2489
2474
  AXSeparatorPipe = __decorate([
2490
2475
  core.Pipe({ name: 'separator' }),
2491
2476
  core.Injectable({