@esfaenza/admin-module 11.2.3 → 11.2.4

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.
@@ -1548,6 +1548,22 @@
1548
1548
  { type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
1549
1549
  ]; };
1550
1550
 
1551
+ var AdmLogsLoc = /** @class */ (function (_super) {
1552
+ __extends(AdmLogsLoc, _super);
1553
+ function AdmLogsLoc(LOC_LOCALE) {
1554
+ var _this = _super.call(this, LOC_LOCALE) || this;
1555
+ _super.prototype.set.call(_this, "en->it", "Server Logs", ["Log del Server"]);
1556
+ return _this;
1557
+ }
1558
+ return AdmLogsLoc;
1559
+ }(localizations.LocalizationService));
1560
+ AdmLogsLoc.decorators = [
1561
+ { type: core.Injectable }
1562
+ ];
1563
+ AdmLogsLoc.ctorParameters = function () { return [
1564
+ { type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
1565
+ ]; };
1566
+
1551
1567
  // Angular
1552
1568
  var AdmLogsComponent = /** @class */ (function () {
1553
1569
  function AdmLogsComponent(intercom, http, lc, route, backend) {
@@ -1567,6 +1583,7 @@
1567
1583
  AdmLogsComponent.decorators = [
1568
1584
  { type: core.Component, args: [{
1569
1585
  selector: "adm_logs",
1586
+ viewProviders: [{ provide: localizations.LocalizationService, useClass: AdmLogsLoc }],
1570
1587
  template: "<div class=\"row\">\r\n <div class=\"col-12 bottom-15\">\r\n <p *ngIf=\"Log\" class=\"app-whitespace-prewrap\" [innerHTML]=\"Log\"></p>\r\n </div>\r\n</div>"
1571
1588
  },] }
1572
1589
  ];
@@ -1584,19 +1601,22 @@
1584
1601
  AdmMessageTypes[AdmMessageTypes["Message"] = 0] = "Message";
1585
1602
  })(exports.AdmMessageTypes || (exports.AdmMessageTypes = {}));
1586
1603
 
1604
+ // Angular
1587
1605
  var AdminModuleCommService = /** @class */ (function () {
1588
1606
  function AdminModuleCommService(intercom) {
1589
- var _this = this;
1590
1607
  this.intercom = intercom;
1608
+ }
1609
+ AdminModuleCommService.prototype.register = function () {
1610
+ var _this = this;
1591
1611
  this.intercom.register(MK_ADM);
1592
1612
  this.intercom.outbounds[MK_ADM].subscribe(function (t) { _this.handleOutbound(t.type, t.message); });
1593
- }
1613
+ };
1594
1614
  AdminModuleCommService.prototype.handleOutbound = function (type, message) {
1595
1615
  switch (type) {
1596
1616
  case exports.AdmMessageTypes.Message:
1597
1617
  {
1598
1618
  if (myconfig.DEBUG_MODE)
1599
- console.log("@admin-module:" + message);
1619
+ console.log("@admin-module outbound message: " + message);
1600
1620
  }
1601
1621
  }
1602
1622
  };
@@ -1659,7 +1679,10 @@
1659
1679
  ];
1660
1680
  var ɵ7 = myconfig.LOCALE, ɵ8 = myconfig.BACKEND_URL;
1661
1681
  var AdmModule = /** @class */ (function () {
1662
- function AdmModule() {
1682
+ function AdmModule(commService) {
1683
+ this.commService = commService;
1684
+ console.log("@esfaenza/admin-module: BOOTSTRAP");
1685
+ this.commService.register();
1663
1686
  }
1664
1687
  return AdmModule;
1665
1688
  }());
@@ -1673,7 +1696,10 @@
1673
1696
  { provide: ADM_BACKEND_URL, useValue: ɵ8 },
1674
1697
  ]
1675
1698
  },] }
1676
- ];
1699
+ ];
1700
+ AdmModule.ctorParameters = function () { return [
1701
+ { type: AdminModuleCommService }
1702
+ ]; };
1677
1703
 
1678
1704
  /**
1679
1705
  * Generated bundle index. Do not edit.
@@ -1703,11 +1729,12 @@
1703
1729
  exports.ɵg = AdmMetricsComponent;
1704
1730
  exports.ɵh = AdmMetricsLoc;
1705
1731
  exports.ɵi = AdmLogsComponent;
1706
- exports.ɵj = AdmAuditsComponent;
1707
- exports.ɵk = AdmAuditLoc;
1708
- exports.ɵl = AdmEnqComponent;
1709
- exports.ɵm = AdmEnqLoc;
1710
- exports.ɵn = AdminModuleCommService;
1732
+ exports.ɵj = AdmLogsLoc;
1733
+ exports.ɵk = AdmAuditsComponent;
1734
+ exports.ɵl = AdmAuditLoc;
1735
+ exports.ɵm = AdmEnqComponent;
1736
+ exports.ɵn = AdmEnqLoc;
1737
+ exports.ɵo = AdminModuleCommService;
1711
1738
 
1712
1739
  Object.defineProperty(exports, '__esModule', { value: true });
1713
1740