@stemy/ngx-utils 12.0.3 → 12.0.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.
@@ -3454,6 +3454,40 @@
3454
3454
  { type: undefined, decorators: [{ type: core.Inject, args: [LANGUAGE_SERVICE,] }] }
3455
3455
  ]; };
3456
3456
 
3457
+ var GlobalTemplateService = /** @class */ (function () {
3458
+ function GlobalTemplateService() {
3459
+ this.templatesUpdated = new core.EventEmitter();
3460
+ this.globalTemplates = {};
3461
+ this.componentModifiers = {};
3462
+ }
3463
+ GlobalTemplateService.prototype.get = function (id, component) {
3464
+ var template = this.globalTemplates[id];
3465
+ if (!template)
3466
+ return undefined;
3467
+ var modifier = this.componentModifiers[id];
3468
+ if (ObjectUtils.isFunction(modifier) && component) {
3469
+ modifier(component);
3470
+ }
3471
+ return template;
3472
+ };
3473
+ GlobalTemplateService.prototype.add = function (id, template) {
3474
+ this.globalTemplates[id] = template;
3475
+ this.templatesUpdated.emit();
3476
+ };
3477
+ GlobalTemplateService.prototype.remove = function (id) {
3478
+ delete this.globalTemplates[id];
3479
+ this.templatesUpdated.emit();
3480
+ };
3481
+ GlobalTemplateService.prototype.addComponentModifier = function (id, modifier) {
3482
+ this.componentModifiers[id] = modifier;
3483
+ };
3484
+ return GlobalTemplateService;
3485
+ }());
3486
+ GlobalTemplateService.decorators = [
3487
+ { type: core.Injectable }
3488
+ ];
3489
+ GlobalTemplateService.ctorParameters = function () { return []; };
3490
+
3457
3491
  var IconService = /** @class */ (function () {
3458
3492
  function IconService() {
3459
3493
  this.iconsLoaded = new core.EventEmitter();
@@ -5730,40 +5764,6 @@
5730
5764
  boundaryLinks: [{ type: core.Input }]
5731
5765
  };
5732
5766
 
5733
- var GlobalTemplateService = /** @class */ (function () {
5734
- function GlobalTemplateService() {
5735
- this.templatesUpdated = new core.EventEmitter();
5736
- this.globalTemplates = {};
5737
- this.componentModifiers = {};
5738
- }
5739
- GlobalTemplateService.prototype.get = function (id, component) {
5740
- var template = this.globalTemplates[id];
5741
- if (!template)
5742
- return undefined;
5743
- var modifier = this.componentModifiers[id];
5744
- if (ObjectUtils.isFunction(modifier) && component) {
5745
- modifier(component);
5746
- }
5747
- return template;
5748
- };
5749
- GlobalTemplateService.prototype.add = function (id, template) {
5750
- this.globalTemplates[id] = template;
5751
- this.templatesUpdated.emit();
5752
- };
5753
- GlobalTemplateService.prototype.remove = function (id) {
5754
- delete this.globalTemplates[id];
5755
- this.templatesUpdated.emit();
5756
- };
5757
- GlobalTemplateService.prototype.addComponentModifier = function (id, modifier) {
5758
- this.componentModifiers[id] = modifier;
5759
- };
5760
- return GlobalTemplateService;
5761
- }());
5762
- GlobalTemplateService.decorators = [
5763
- { type: core.Injectable }
5764
- ];
5765
- GlobalTemplateService.ctorParameters = function () { return []; };
5766
-
5767
5767
  var StickyClassDirective = /** @class */ (function () {
5768
5768
  function StickyClassDirective(events, element, renderer) {
5769
5769
  this.events = events;
@@ -6005,6 +6005,7 @@
6005
6005
  exports.GetTypePipe = GetTypePipe;
6006
6006
  exports.GlobalTemplateDirective = GlobalTemplateDirective;
6007
6007
  exports.GlobalTemplatePipe = GlobalTemplatePipe;
6008
+ exports.GlobalTemplateService = GlobalTemplateService;
6008
6009
  exports.GroupByPipe = GroupByPipe;
6009
6010
  exports.HttpPromise = HttpPromise;
6010
6011
  exports.ICON_SERVICE = ICON_SERVICE;
@@ -6074,7 +6075,6 @@
6074
6075
  exports["ɵd"] = providers;
6075
6076
  exports["ɵe"] = loadConfig;
6076
6077
  exports["ɵf"] = StickyClassDirective;
6077
- exports["ɵg"] = GlobalTemplateService;
6078
6078
 
6079
6079
  Object.defineProperty(exports, '__esModule', { value: true });
6080
6080