@indice/ng-components 0.2.153-beta.13 → 0.2.153-beta.16

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.
@@ -1985,7 +1985,8 @@
1985
1985
  }] } });
1986
1986
 
1987
1987
  var LibTabGroupComponent = /** @class */ (function () {
1988
- function LibTabGroupComponent() {
1988
+ function LibTabGroupComponent(_tab) {
1989
+ this._tab = _tab;
1989
1990
  /** The inner tabs of the group. */
1990
1991
  this.tabs = undefined;
1991
1992
  /** Emmited when a step change occurs. */
@@ -2034,28 +2035,31 @@
2034
2035
  };
2035
2036
  return LibTabGroupComponent;
2036
2037
  }());
2037
- LibTabGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabGroupComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2038
- LibTabGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LibTabGroupComponent, selector: "lib-tab-group", outputs: { tabChanged: "tabChanged" }, queries: [{ propertyName: "tabs", predicate: LibTabComponent, descendants: true }], ngImport: i0__namespace, template: "<div class=\"sm:hidden\">\r\n <label for=\"tabs\" class=\"sr-only\">Select a tab</label>\r\n <select id=\"tabs\" name=\"tabs\" (change)=\"onTabSelectChanged(+tabsSelect.value)\" class=\"tab-group-select\" #tabsSelect>\r\n <option [value]=\"i\" *ngFor=\"let tab of tabs; let i = index\">{{ tab.label }}</option>\r\n </select>\r\n</div>\r\n<div class=\"hidden sm:block\">\r\n <div class=\"tab-group-container\">\r\n <nav class=\"-mb-px flex space-x-8\" aria-label=\"Tabs\">\r\n <a *ngFor=\"let tab of tabs\" href=\"javascript:void(0)\" [class.tab]=\"!tab.isActive\" [class.tab-active]=\"tab.isActive\" (click)=\"onTabChanged(tab)\">\r\n {{ tab.label }}\r\n </a>\r\n </nav>\r\n </div>\r\n</div>\r\n<div *ngIf=\"currentTab?.content\">\r\n <ng-container [ngTemplateOutlet]=\"currentTab!.content\"></ng-container>\r\n</div>", directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
2038
+ LibTabGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabGroupComponent, deps: [{ token: LibTabComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
2039
+ LibTabGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LibTabGroupComponent, selector: "lib-tab-group", outputs: { tabChanged: "tabChanged" }, providers: [{ provide: LibTabComponent, useExisting: i0.forwardRef(function () { return LibTabGroupComponent; }) }], queries: [{ propertyName: "tabs", predicate: LibTabComponent, descendants: true }], ngImport: i0__namespace, template: "<div class=\"sm:hidden\">\r\n <label for=\"tabs\" class=\"sr-only\">Select a tab</label>\r\n <select id=\"tabs\" name=\"tabs\" (change)=\"onTabSelectChanged(+tabsSelect.value)\" class=\"tab-group-select\" #tabsSelect>\r\n <option [value]=\"i\" *ngFor=\"let tab of tabs; let i = index\">{{ tab.label }}</option>\r\n </select>\r\n</div>\r\n<div class=\"hidden sm:block\">\r\n <div class=\"tab-group-container\">\r\n <nav class=\"-mb-px flex space-x-8\" aria-label=\"Tabs\">\r\n <a *ngFor=\"let tab of tabs\" href=\"javascript:void(0)\" [class.tab]=\"!tab.isActive\" [class.tab-active]=\"tab.isActive\" (click)=\"onTabChanged(tab)\">\r\n {{ tab.label }}\r\n </a>\r\n </nav>\r\n </div>\r\n</div>\r\n<div *ngIf=\"currentTab?.content\">\r\n <ng-container [ngTemplateOutlet]=\"currentTab!.content\"></ng-container>\r\n</div>", directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
2039
2040
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabGroupComponent, decorators: [{
2040
2041
  type: i0.Component,
2041
2042
  args: [{
2042
2043
  selector: 'lib-tab-group',
2044
+ providers: [{ provide: LibTabComponent, useExisting: i0.forwardRef(function () { return LibTabGroupComponent; }) }],
2043
2045
  templateUrl: './lib-tab-group.component.html'
2044
2046
  }]
2045
- }], ctorParameters: function () { return []; }, propDecorators: { tabs: [{
2047
+ }], ctorParameters: function () {
2048
+ return [{ type: LibTabComponent, decorators: [{
2049
+ type: i0.Inject,
2050
+ args: [LibTabComponent]
2051
+ }] }];
2052
+ }, propDecorators: { tabs: [{
2046
2053
  type: i0.ContentChildren,
2047
2054
  args: [LibTabComponent, { descendants: true }]
2048
2055
  }], tabChanged: [{
2049
2056
  type: i0.Output
2050
2057
  }] } });
2051
2058
 
2052
- var LibTabComponent = /** @class */ (function (_super) {
2053
- __extends(LibTabComponent, _super);
2059
+ var LibTabComponent = /** @class */ (function () {
2054
2060
  function LibTabComponent(_tabGroup) {
2055
- var _this = _super.call(this) || this;
2056
- _this._tabGroup = _tabGroup;
2057
- _this._isActive = false;
2058
- return _this;
2061
+ this._tabGroup = _tabGroup;
2062
+ this._isActive = false;
2059
2063
  }
2060
2064
  Object.defineProperty(LibTabComponent.prototype, "index", {
2061
2065
  /** Indicates the index of the tab. */
@@ -2082,9 +2086,9 @@
2082
2086
  this.id = this.id || uuid__namespace.v4();
2083
2087
  };
2084
2088
  return LibTabComponent;
2085
- }(LibTabGroupComponent));
2089
+ }());
2086
2090
  LibTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabComponent, deps: [{ token: LibTabGroupComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
2087
- LibTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LibTabComponent, selector: "lib-tab", inputs: { label: "label", id: "id" }, providers: [{ provide: LibTabGroupComponent, useExisting: i0.forwardRef(function () { return LibTabComponent; }) }], viewQueries: [{ propertyName: "content", first: true, predicate: i0.TemplateRef, descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n ", isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
2091
+ LibTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LibTabComponent, selector: "lib-tab", inputs: { label: "label", id: "id" }, providers: [{ provide: LibTabGroupComponent, useExisting: i0.forwardRef(function () { return LibTabComponent; }) }], viewQueries: [{ propertyName: "content", first: true, predicate: i0.TemplateRef, descendants: true, static: true }], ngImport: i0__namespace, template: "\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n ", isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
2088
2092
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabComponent, decorators: [{
2089
2093
  type: i0.Component,
2090
2094
  args: [{
@@ -2094,7 +2098,12 @@
2094
2098
  encapsulation: i0.ViewEncapsulation.None,
2095
2099
  changeDetection: i0.ChangeDetectionStrategy.OnPush
2096
2100
  }]
2097
- }], ctorParameters: function () { return [{ type: LibTabGroupComponent }]; }, propDecorators: { content: [{
2101
+ }], ctorParameters: function () {
2102
+ return [{ type: LibTabGroupComponent, decorators: [{
2103
+ type: i0.Inject,
2104
+ args: [LibTabGroupComponent]
2105
+ }] }];
2106
+ }, propDecorators: { content: [{
2098
2107
  type: i0.ViewChild,
2099
2108
  args: [i0.TemplateRef, { static: true }]
2100
2109
  }], label: [{