@seniorsistemas/angular-components 17.15.3 → 17.15.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.
@@ -7116,7 +7116,8 @@
7116
7116
  return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
7117
7117
  };
7118
7118
  LookupComponent.prototype.getBadgeFromValue = function (value, options) {
7119
- return options === null || options === void 0 ? void 0 : options.find(function (opt) { return opt.value === value; }).badge;
7119
+ var _a;
7120
+ return (_a = options === null || options === void 0 ? void 0 : options.find(function (opt) { return opt.value === value; })) === null || _a === void 0 ? void 0 : _a.badge;
7120
7121
  };
7121
7122
  LookupComponent.prototype.getLabelForValue = function (value, options) {
7122
7123
  if (!options)
@@ -17762,11 +17763,16 @@
17762
17763
  this.collapsable = false;
17763
17764
  this.collapsed = false;
17764
17765
  this.severity = exports.EnumSeverity.Default;
17766
+ this.collapsedChange = new core.EventEmitter();
17765
17767
  this.EnumSeverity = exports.EnumSeverity;
17766
17768
  }
17767
17769
  PanelComponent.prototype.ngAfterContentInit = function () {
17768
17770
  this._getTemplates();
17769
17771
  };
17772
+ PanelComponent.prototype.toggleCollapsed = function () {
17773
+ this.collapsed = !this.collapsed;
17774
+ this.collapsedChange.emit(this.collapsed);
17775
+ };
17770
17776
  PanelComponent.prototype._getCustomTemplate = function (type) {
17771
17777
  var _a;
17772
17778
  return (_a = this.templates.find(function (template) { return template.type === type; })) === null || _a === void 0 ? void 0 : _a.template;
@@ -17803,10 +17809,13 @@
17803
17809
  __decorate([
17804
17810
  core.Input()
17805
17811
  ], PanelComponent.prototype, "borderButtonOptions", void 0);
17812
+ __decorate([
17813
+ core.Output()
17814
+ ], PanelComponent.prototype, "collapsedChange", void 0);
17806
17815
  PanelComponent = __decorate([
17807
17816
  core.Component({
17808
17817
  selector: "s-panel",
17809
- template: "<div\n class=\"panel\"\n [ngClass]=\"{\n 'panel--success': severity === EnumSeverity.Success,\n 'panel--info': severity === EnumSeverity.Info,\n 'panel--warn': severity === EnumSeverity.Warn,\n 'panel--error': severity === EnumSeverity.Error,\n 'panel--collapsed': collapsed\n }\">\n <s-border-button\n *ngIf=\"\n borderButtonOptions?.visible\n ? borderButtonOptions?.visible(severity)\n : false\n \"\n [severity]=\"severity\"\n [options]=\"borderButtonOptions\"\n class=\"border-button\"\n [@BorderButtonAnimation]\n ></s-border-button>\n\n <div class=\"header\">\n <ng-container *ngIf=\"headerTemplate; then customHeaderTemplate; else simpleHeaderTemplate\"></ng-container>\n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-template>\n <ng-template #simpleHeaderTemplate>\n <span>{{ header }}</span>\n </ng-template>\n\n <button\n *ngIf=\"collapsable\"\n class=\"collapse-button fas\"\n [ngClass]=\"{\n 'fa-plus': collapsed,\n 'fa-minus': !collapsed\n }\"\n (click)=\"collapsed = !collapsed\">\n </button>\n </div>\n <div *ngIf=\"!collapsable || !collapsed\" class=\"panel-content\">\n <div class=\"body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n</div>",
17818
+ template: "<div\n class=\"panel\"\n [ngClass]=\"{\n 'panel--success': severity === EnumSeverity.Success,\n 'panel--info': severity === EnumSeverity.Info,\n 'panel--warn': severity === EnumSeverity.Warn,\n 'panel--error': severity === EnumSeverity.Error,\n 'panel--collapsed': collapsed\n }\">\n <s-border-button\n *ngIf=\"\n borderButtonOptions?.visible\n ? borderButtonOptions?.visible(severity)\n : false\n \"\n [severity]=\"severity\"\n [options]=\"borderButtonOptions\"\n class=\"border-button\"\n [@BorderButtonAnimation]\n ></s-border-button>\n\n <div class=\"header\">\n <ng-container *ngIf=\"headerTemplate; then customHeaderTemplate; else simpleHeaderTemplate\"></ng-container>\n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-template>\n <ng-template #simpleHeaderTemplate>\n <span>{{ header }}</span>\n </ng-template>\n\n <button\n *ngIf=\"collapsable\"\n class=\"collapse-button fas\"\n [ngClass]=\"{\n 'fa-plus': collapsed,\n 'fa-minus': !collapsed\n }\"\n (click)=\"toggleCollapsed()\">\n </button>\n </div>\n <div *ngIf=\"!collapsable || !collapsed\" class=\"panel-content\">\n <div class=\"body\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"bodyTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n</div>",
17810
17819
  animations: [
17811
17820
  animations.trigger("BorderButtonAnimation", [
17812
17821
  animations.transition(":enter", [