@osovitny/anatoly 2.0.47 → 2.0.48

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.
Files changed (76) hide show
  1. package/README.md +24 -2
  2. package/assets/styles/alerts.less +182 -0
  3. package/assets/styles/spinner.less +64 -0
  4. package/assets/styles/toastr.less +192 -0
  5. package/bundles/osovitny-anatoly.umd.js +91 -49
  6. package/bundles/osovitny-anatoly.umd.js.map +1 -1
  7. package/esm2015/lib/core/consts/settings.js +1 -1
  8. package/esm2015/lib/core/consts/urls.js +1 -1
  9. package/esm2015/lib/core/convert.js +1 -1
  10. package/esm2015/lib/core/core.module.js +1 -1
  11. package/esm2015/lib/core/go/base-go.service.js +1 -1
  12. package/esm2015/lib/core/guards/once-import.guard.js +1 -1
  13. package/esm2015/lib/core/guid.js +1 -1
  14. package/esm2015/lib/core/interceptors/httpInterceptor.js +1 -1
  15. package/esm2015/lib/core/localization/localization.module.js +1 -1
  16. package/esm2015/lib/core/localization/localization.service.js +1 -1
  17. package/esm2015/lib/core/localization/localizationSettings.module.js +1 -1
  18. package/esm2015/lib/core/localization/localize.pipe.js +1 -1
  19. package/esm2015/lib/core/localization/utils.js +1 -1
  20. package/esm2015/lib/core/logging/globalErrorHandler.js +1 -1
  21. package/esm2015/lib/core/logging/logging.service.js +1 -1
  22. package/esm2015/lib/core/notifications/alerts.js +1 -1
  23. package/esm2015/lib/core/notifications/interfaces/notification.js +2 -1
  24. package/esm2015/lib/core/notifications/services/notification-service.js +1 -1
  25. package/esm2015/lib/core/services/appcontext.service.js +1 -1
  26. package/esm2015/lib/core/services/dm.service.js +1 -1
  27. package/esm2015/lib/core/services/google-analytics.service.js +1 -1
  28. package/esm2015/lib/core/services/idle.service.js +1 -1
  29. package/esm2015/lib/core/services/loading.service.js +1 -1
  30. package/esm2015/lib/core/services/web-storage.service.js +1 -1
  31. package/esm2015/lib/core/subs.js +1 -1
  32. package/esm2015/lib/core/utils.js +1 -1
  33. package/esm2015/lib/data/base/base-api.service.js +1 -1
  34. package/esm2015/lib/data/base/grid/base-grid-edit.service.js +1 -1
  35. package/esm2015/lib/data/base/grid/base-grid-read.service.js +1 -1
  36. package/esm2015/lib/data/consts.js +1 -1
  37. package/esm2015/lib/data/data.module.js +1 -1
  38. package/esm2015/lib/data/services/billing-api.service.js +1 -1
  39. package/esm2015/lib/data/services/notifications/notifications-api-service.js +1 -1
  40. package/esm2015/lib/ui/components/base-edit.component.js +6 -2
  41. package/esm2015/lib/ui/components/base.component.js +6 -1
  42. package/esm2015/lib/ui/components/billing/buyaccess-button.component.js +1 -1
  43. package/esm2015/lib/ui/components/billing/subscribe-plan-button.component.js +1 -1
  44. package/esm2015/lib/ui/components/billing/upgrade-plan-button.component.js +1 -1
  45. package/esm2015/lib/ui/components/content-header/content-header.component.js +1 -1
  46. package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +13 -9
  47. package/esm2015/lib/ui/components/html-editor/forms-html-editor.component.js +1 -1
  48. package/esm2015/lib/ui/components/html-editor/html-editor.component.js +1 -1
  49. package/esm2015/lib/ui/components/html-editor/html-editor.defaultoptions.js +1 -1
  50. package/esm2015/lib/ui/components/identity/signin-button.component.js +1 -1
  51. package/esm2015/lib/ui/components/identity/signout-button.component.js +1 -1
  52. package/esm2015/lib/ui/components/identity/signup-button.component.js +1 -1
  53. package/esm2015/lib/ui/components/loading/loading.component.js +1 -1
  54. package/esm2015/lib/ui/components/spinner/spinner.component.js +1 -1
  55. package/esm2015/lib/ui/directives/native-element.directive.js +1 -1
  56. package/esm2015/lib/ui/pipes/filesize.pipe.js +1 -1
  57. package/esm2015/lib/ui/pipes/replace-text.pipe.js +1 -1
  58. package/esm2015/lib/ui/pipes/safeHtml.pipe.js +1 -1
  59. package/esm2015/lib/ui/ui.module.js +4 -3
  60. package/esm2015/lib/ui/validation/form-validation-summary.component.js +1 -1
  61. package/esm2015/lib/ui/validation/item-validation-summary.component.js +1 -1
  62. package/esm2015/lib/ui/validation/validation-summary.component.js +7 -1
  63. package/esm2015/osovitny-anatoly.js +1 -1
  64. package/esm2015/public-api.js +2 -2
  65. package/fesm2015/osovitny-anatoly.js +38 -16
  66. package/fesm2015/osovitny-anatoly.js.map +1 -1
  67. package/lib/core/convert.d.ts +1 -1
  68. package/lib/core/localization/localize.pipe.d.ts +1 -1
  69. package/lib/ui/components/base-edit.component.d.ts +1 -1
  70. package/lib/ui/components/base.component.d.ts +1 -1
  71. package/lib/ui/components/html-editor/base-html-editor.component.d.ts +3 -3
  72. package/lib/ui/validation/validation-summary.component.d.ts +1 -1
  73. package/osovitny-anatoly.metadata.json +1 -1
  74. package/package.json +5 -5
  75. package/bundles/osovitny-anatoly.umd.min.js +0 -16
  76. package/bundles/osovitny-anatoly.umd.min.js.map +0 -1
@@ -6,8 +6,34 @@
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () {
19
+ return e[k];
20
+ }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n['default'] = e;
26
+ return Object.freeze(n);
27
+ }
28
+
29
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
30
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1);
31
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
9
32
  var enUS__default = /*#__PURE__*/_interopDefaultLegacy(enUS);
33
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
10
34
  var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
35
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
36
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
11
37
 
12
38
  /*
13
39
  <file>
@@ -137,6 +163,8 @@
137
163
  return extendStatics(d, b);
138
164
  };
139
165
  function __extends(d, b) {
166
+ if (typeof b !== "function" && b !== null)
167
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
140
168
  extendStatics(d, b);
141
169
  function __() { this.constructor = d; }
142
170
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -322,11 +350,13 @@
322
350
  }
323
351
  return ar;
324
352
  }
353
+ /** @deprecated */
325
354
  function __spread() {
326
355
  for (var ar = [], i = 0; i < arguments.length; i++)
327
356
  ar = ar.concat(__read(arguments[i]));
328
357
  return ar;
329
358
  }
359
+ /** @deprecated */
330
360
  function __spreadArrays() {
331
361
  for (var s = 0, i = 0, il = arguments.length; i < il; i++)
332
362
  s += arguments[i].length;
@@ -335,7 +365,17 @@
335
365
  r[k] = a[j];
336
366
  return r;
337
367
  }
338
- ;
368
+ function __spreadArray(to, from, pack) {
369
+ if (pack || arguments.length === 2)
370
+ for (var i = 0, l = from.length, ar; i < l; i++) {
371
+ if (ar || !(i in from)) {
372
+ if (!ar)
373
+ ar = Array.prototype.slice.call(from, 0, i);
374
+ ar[i] = from[i];
375
+ }
376
+ }
377
+ return to.concat(ar || from);
378
+ }
339
379
  function __await(v) {
340
380
  return this instanceof __await ? (this.v = v, this) : new __await(v);
341
381
  }
@@ -400,18 +440,21 @@
400
440
  function __importDefault(mod) {
401
441
  return (mod && mod.__esModule) ? mod : { default: mod };
402
442
  }
403
- function __classPrivateFieldGet(receiver, privateMap) {
404
- if (!privateMap.has(receiver)) {
405
- throw new TypeError("attempted to get private field on non-instance");
406
- }
407
- return privateMap.get(receiver);
443
+ function __classPrivateFieldGet(receiver, state, kind, f) {
444
+ if (kind === "a" && !f)
445
+ throw new TypeError("Private accessor was defined without a getter");
446
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
447
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
448
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
408
449
  }
409
- function __classPrivateFieldSet(receiver, privateMap, value) {
410
- if (!privateMap.has(receiver)) {
411
- throw new TypeError("attempted to set private field on non-instance");
412
- }
413
- privateMap.set(receiver, value);
414
- return value;
450
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
451
+ if (kind === "m")
452
+ throw new TypeError("Private method is not writable");
453
+ if (kind === "a" && !f)
454
+ throw new TypeError("Private accessor was defined without a setter");
455
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
456
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
457
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
415
458
  }
416
459
 
417
460
  var LoadingService = /** @class */ (function (_super) {
@@ -458,7 +501,7 @@
458
501
  };
459
502
  return LoadingService;
460
503
  }(rxjs.BehaviorSubject));
461
- LoadingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoadingService_Factory() { return new LoadingService(); }, token: LoadingService, providedIn: "root" });
504
+ LoadingService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LoadingService_Factory() { return new LoadingService(); }, token: LoadingService, providedIn: "root" });
462
505
  LoadingService.decorators = [
463
506
  { type: i0.Injectable, args: [{
464
507
  providedIn: "root",
@@ -495,7 +538,7 @@
495
538
  };
496
539
  return LoggingService;
497
540
  }());
498
- LoggingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoggingService_Factory() { return new LoggingService(); }, token: LoggingService, providedIn: "root" });
541
+ LoggingService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LoggingService_Factory() { return new LoggingService(); }, token: LoggingService, providedIn: "root" });
499
542
  LoggingService.decorators = [
500
543
  { type: i0.Injectable, args: [{
501
544
  providedIn: "root",
@@ -814,7 +857,7 @@
814
857
  };
815
858
  return LocalizationService;
816
859
  }());
817
- LocalizationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalizationService_Factory() { return new LocalizationService(i0.ɵɵinject(i1$1.TranslateService)); }, token: LocalizationService, providedIn: "root" });
860
+ LocalizationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalizationService_Factory() { return new LocalizationService(i0__namespace.ɵɵinject(i1__namespace.TranslateService)); }, token: LocalizationService, providedIn: "root" });
818
861
  LocalizationService.decorators = [
819
862
  { type: i0.Injectable, args: [{
820
863
  providedIn: 'root'
@@ -941,6 +984,7 @@
941
984
  deps: [i1.HttpClient]
942
985
  }
943
986
  });
987
+ exports.LocalizationInjectorInstance = void 0;
944
988
  var LocalizationSettingsModule = /** @class */ (function () {
945
989
  function LocalizationSettingsModule(injector) {
946
990
  this.injector = injector;
@@ -1203,25 +1247,6 @@
1203
1247
  return Alerts;
1204
1248
  }());
1205
1249
 
1206
- /*
1207
- <file>
1208
- Project:
1209
- @osovitny/anatoly
1210
-
1211
- Authors:
1212
- Vadim Osovitny
1213
- Anatoly Osovitny
1214
-
1215
- Created:
1216
- 2 Jun 2020
1217
-
1218
- Version:
1219
- 1.0
1220
-
1221
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1222
- </file>
1223
- */
1224
-
1225
1250
  /*
1226
1251
  <file>
1227
1252
  Project:
@@ -1368,9 +1393,9 @@
1368
1393
  this.addSessionNotificationToList(notification);
1369
1394
  };
1370
1395
  NotificationService.prototype.addSessionNotificationToList = function (notification) {
1371
- this.sessionNotifications = __spread([
1396
+ this.sessionNotifications = __spreadArray([
1372
1397
  notification
1373
- ], this.sessionNotifications);
1398
+ ], __read(this.sessionNotifications));
1374
1399
  };
1375
1400
  // Public API
1376
1401
  NotificationService.prototype.removeNotification = function (id, isSession) {
@@ -1453,7 +1478,7 @@
1453
1478
  });
1454
1479
  return NotificationService;
1455
1480
  }());
1456
- NotificationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0.ɵɵinject(i1$2.ToastrService)); }, token: NotificationService, providedIn: "root" });
1481
+ NotificationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0__namespace.ɵɵinject(i1__namespace$1.ToastrService)); }, token: NotificationService, providedIn: "root" });
1457
1482
  NotificationService.decorators = [
1458
1483
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1459
1484
  ];
@@ -1664,7 +1689,7 @@
1664
1689
  };
1665
1690
  return IdleService;
1666
1691
  }());
1667
- IdleService.ɵprov = i0.ɵɵdefineInjectable({ factory: function IdleService_Factory() { return new IdleService(); }, token: IdleService, providedIn: "root" });
1692
+ IdleService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IdleService_Factory() { return new IdleService(); }, token: IdleService, providedIn: "root" });
1668
1693
  IdleService.decorators = [
1669
1694
  { type: i0.Injectable, args: [{
1670
1695
  providedIn: 'root'
@@ -1779,7 +1804,7 @@
1779
1804
  };
1780
1805
  return DigitalMarketingService;
1781
1806
  }());
1782
- DigitalMarketingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DigitalMarketingService_Factory() { return new DigitalMarketingService(i0.ɵɵinject(i1$3.Title), i0.ɵɵinject(i1$3.Meta), i0.ɵɵinject(i2.DOCUMENT)); }, token: DigitalMarketingService, providedIn: "root" });
1807
+ DigitalMarketingService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DigitalMarketingService_Factory() { return new DigitalMarketingService(i0__namespace.ɵɵinject(i1__namespace$2.Title), i0__namespace.ɵɵinject(i1__namespace$2.Meta), i0__namespace.ɵɵinject(i2__namespace.DOCUMENT)); }, token: DigitalMarketingService, providedIn: "root" });
1783
1808
  DigitalMarketingService.decorators = [
1784
1809
  { type: i0.Injectable, args: [{
1785
1810
  providedIn: 'root'
@@ -1842,6 +1867,7 @@
1842
1867
  { type: router.Router }
1843
1868
  ]; };
1844
1869
 
1870
+ exports.InjectorInstance = void 0;
1845
1871
  var AnatolyCoreModule = /** @class */ (function () {
1846
1872
  function AnatolyCoreModule(injector, parentModule) {
1847
1873
  this.injector = injector;
@@ -2113,7 +2139,7 @@
2113
2139
  };
2114
2140
  return NotificationsApiService;
2115
2141
  }(BaseApiService));
2116
- NotificationsApiService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NotificationsApiService_Factory() { return new NotificationsApiService(i0.ɵɵinject(i1.HttpClient)); }, token: NotificationsApiService, providedIn: "root" });
2142
+ NotificationsApiService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NotificationsApiService_Factory() { return new NotificationsApiService(i0__namespace.ɵɵinject(i1__namespace$3.HttpClient)); }, token: NotificationsApiService, providedIn: "root" });
2117
2143
  NotificationsApiService.decorators = [
2118
2144
  { type: i0.Injectable, args: [{
2119
2145
  providedIn: 'root'
@@ -2546,7 +2572,10 @@
2546
2572
  this.subs.unsubscribe();
2547
2573
  };
2548
2574
  return BaseComponent;
2549
- }());
2575
+ }());
2576
+ BaseComponent.decorators = [
2577
+ { type: i0.Injectable }
2578
+ ];
2550
2579
 
2551
2580
  var BaseEditComponent = /** @class */ (function (_super) {
2552
2581
  __extends(BaseEditComponent, _super);
@@ -2672,6 +2701,10 @@
2672
2701
  });
2673
2702
  return BaseEditComponent;
2674
2703
  }(BaseComponent));
2704
+ BaseEditComponent.decorators = [
2705
+ { type: i0.Injectable }
2706
+ ];
2707
+ BaseEditComponent.ctorParameters = function () { return []; };
2675
2708
  BaseEditComponent.propDecorators = {
2676
2709
  formGroup: [{ type: i0.Input }],
2677
2710
  formSubmitted: [{ type: i0.Input }]
@@ -2684,13 +2717,13 @@
2684
2717
  _this.froalaEditorInitialized = false;
2685
2718
  _this.afterInitializedActions = [];
2686
2719
  // Inputs
2687
- _this.editorLabelText = 'Html';
2720
+ _this.editorLabelText = "Html";
2688
2721
  _this.editorOptions = {};
2689
2722
  return _this;
2690
2723
  }
2691
2724
  BaseHtmlEditorComponent.prototype.ngOnInit = function () {
2692
2725
  var opt = this.editorOptions;
2693
- if (typeof this.editorOptions == 'string') {
2726
+ if (typeof this.editorOptions == "string") {
2694
2727
  opt = JSON.parse(this.editorOptions);
2695
2728
  }
2696
2729
  var newOptions = $.extend({}, DefaultEditorOptions, opt);
@@ -2744,7 +2777,7 @@
2744
2777
  BaseHtmlEditorComponent.prototype.setUploadParams = function (uploadType, uploadParentId) {
2745
2778
  this.doAfterInitialized(function (that) {
2746
2779
  var editor = that.getEditor();
2747
- if (typeof editor == 'undefined' || editor == null) {
2780
+ if (typeof editor == "undefined" || editor == null) {
2748
2781
  return;
2749
2782
  }
2750
2783
  editor.opts.imageUploadParams.uploadType = uploadType;
@@ -2753,6 +2786,10 @@
2753
2786
  };
2754
2787
  return BaseHtmlEditorComponent;
2755
2788
  }(BaseEditComponent));
2789
+ BaseHtmlEditorComponent.decorators = [
2790
+ { type: i0.Injectable }
2791
+ ];
2792
+ BaseHtmlEditorComponent.ctorParameters = function () { return []; };
2756
2793
  BaseHtmlEditorComponent.propDecorators = {
2757
2794
  editorLabelText: [{ type: i0.Input }],
2758
2795
  editorOptions: [{ type: i0.Input }]
@@ -3283,7 +3320,11 @@
3283
3320
  return title;
3284
3321
  };
3285
3322
  return ValidationSummaryComponent;
3286
- }(BaseEditComponent));
3323
+ }(BaseEditComponent));
3324
+ ValidationSummaryComponent.decorators = [
3325
+ { type: i0.Injectable }
3326
+ ];
3327
+ ValidationSummaryComponent.ctorParameters = function () { return []; };
3287
3328
 
3288
3329
  var FormValidationSummaryComponent = /** @class */ (function (_super) {
3289
3330
  __extends(FormValidationSummaryComponent, _super);
@@ -3309,10 +3350,10 @@
3309
3350
  }
3310
3351
  var messages = [];
3311
3352
  if (formValidationMessages.length > 0) {
3312
- messages.push.apply(messages, __spread(formValidationMessages));
3353
+ messages.push.apply(messages, __spreadArray([], __read(formValidationMessages)));
3313
3354
  }
3314
3355
  if (this.customerrors.length > 0) {
3315
- messages.push.apply(messages, __spread(this.customerrors));
3356
+ messages.push.apply(messages, __spreadArray([], __read(this.customerrors)));
3316
3357
  }
3317
3358
  return messages;
3318
3359
  };
@@ -3421,12 +3462,13 @@
3421
3462
  SafeHtmlPipe,
3422
3463
  ReplaceTextPipe,
3423
3464
  FileSizePipe
3424
- ]
3465
+ ],
3466
+ schemas: [i0.CUSTOM_ELEMENTS_SCHEMA]
3425
3467
  },] }
3426
3468
  ];
3427
3469
 
3428
3470
  /*
3429
- * Public API
3471
+ * Public API Surface of anatoly-lib
3430
3472
  */
3431
3473
 
3432
3474
  /**