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

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.
@@ -1984,9 +1984,14 @@
1984
1984
  type: i0.Output
1985
1985
  }] } });
1986
1986
 
1987
+ var APP_LINKS = new i0.InjectionToken('APP_LINKS');
1988
+ var APP_NOTIFICATIONS = new i0.InjectionToken('APP_NOTIFICATIONS');
1989
+ var SHELL_CONFIG = new i0.InjectionToken('SHELL_CONFIG');
1990
+ var APP_LANGUAGES = new i0.InjectionToken('APP_LANGUAGES');
1991
+ var LIBTABGROUP_ACCESSOR = new i0.InjectionToken('LibTabGroupAccessor');
1992
+
1987
1993
  var LibTabGroupComponent = /** @class */ (function () {
1988
- function LibTabGroupComponent(_tab) {
1989
- this._tab = _tab;
1994
+ function LibTabGroupComponent() {
1990
1995
  /** The inner tabs of the group. */
1991
1996
  this.tabs = undefined;
1992
1997
  /** Emmited when a step change occurs. */
@@ -2035,21 +2040,20 @@
2035
2040
  };
2036
2041
  return LibTabGroupComponent;
2037
2042
  }());
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"] }] });
2043
+ LibTabGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabGroupComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2044
+ LibTabGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LibTabGroupComponent, selector: "lib-tab-group", outputs: { tabChanged: "tabChanged" }, providers: [
2045
+ { provide: LIBTABGROUP_ACCESSOR, useExisting: i0.forwardRef(function () { return LibTabGroupComponent; }) }
2046
+ ], 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"] }] });
2040
2047
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabGroupComponent, decorators: [{
2041
2048
  type: i0.Component,
2042
2049
  args: [{
2043
2050
  selector: 'lib-tab-group',
2044
- providers: [{ provide: LibTabComponent, useExisting: i0.forwardRef(function () { return LibTabGroupComponent; }) }],
2045
- templateUrl: './lib-tab-group.component.html'
2051
+ templateUrl: './lib-tab-group.component.html',
2052
+ providers: [
2053
+ { provide: LIBTABGROUP_ACCESSOR, useExisting: i0.forwardRef(function () { return LibTabGroupComponent; }) }
2054
+ ]
2046
2055
  }]
2047
- }], ctorParameters: function () {
2048
- return [{ type: LibTabComponent, decorators: [{
2049
- type: i0.Inject,
2050
- args: [LibTabComponent]
2051
- }] }];
2052
- }, propDecorators: { tabs: [{
2056
+ }], ctorParameters: function () { return []; }, propDecorators: { tabs: [{
2053
2057
  type: i0.ContentChildren,
2054
2058
  args: [LibTabComponent, { descendants: true }]
2055
2059
  }], tabChanged: [{
@@ -2064,8 +2068,8 @@
2064
2068
  Object.defineProperty(LibTabComponent.prototype, "index", {
2065
2069
  /** Indicates the index of the tab. */
2066
2070
  get: function () {
2067
- var _a;
2068
- return ((_a = this._tabGroup.tabs) === null || _a === void 0 ? void 0 : _a.toArray().indexOf(this)) || undefined;
2071
+ var _a, _b;
2072
+ return ((_b = (_a = this._tabGroup) === null || _a === void 0 ? void 0 : _a.tabs) === null || _b === void 0 ? void 0 : _b.toArray().indexOf(this)) || undefined;
2069
2073
  },
2070
2074
  enumerable: false,
2071
2075
  configurable: true
@@ -2087,21 +2091,22 @@
2087
2091
  };
2088
2092
  return LibTabComponent;
2089
2093
  }());
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 });
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 });
2094
+ LibTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabComponent, deps: [{ token: LIBTABGROUP_ACCESSOR, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
2095
+ LibTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LibTabComponent, selector: "lib-tab", inputs: { label: "label", id: "id" }, 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 });
2092
2096
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabComponent, decorators: [{
2093
2097
  type: i0.Component,
2094
2098
  args: [{
2095
2099
  selector: 'lib-tab',
2096
- providers: [{ provide: LibTabGroupComponent, useExisting: i0.forwardRef(function () { return LibTabComponent; }) }],
2097
2100
  template: "\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n ",
2098
2101
  encapsulation: i0.ViewEncapsulation.None,
2099
2102
  changeDetection: i0.ChangeDetectionStrategy.OnPush
2100
2103
  }]
2101
2104
  }], ctorParameters: function () {
2102
2105
  return [{ type: LibTabGroupComponent, decorators: [{
2106
+ type: i0.Optional
2107
+ }, {
2103
2108
  type: i0.Inject,
2104
- args: [LibTabGroupComponent]
2109
+ args: [LIBTABGROUP_ACCESSOR]
2105
2110
  }] }];
2106
2111
  }, propDecorators: { content: [{
2107
2112
  type: i0.ViewChild,
@@ -2112,11 +2117,6 @@
2112
2117
  type: i0.Input
2113
2118
  }] } });
2114
2119
 
2115
- var APP_LINKS = new i0.InjectionToken('APP_LINKS');
2116
- var APP_NOTIFICATIONS = new i0.InjectionToken('APP_NOTIFICATIONS');
2117
- var SHELL_CONFIG = new i0.InjectionToken('SHELL_CONFIG');
2118
- var APP_LANGUAGES = new i0.InjectionToken('APP_LANGUAGES');
2119
-
2120
2120
  var DynamicComponentHostDirective = /** @class */ (function () {
2121
2121
  function DynamicComponentHostDirective(viewContainerRef) {
2122
2122
  this.viewContainerRef = viewContainerRef;
@@ -4080,8 +4080,8 @@
4080
4080
  UserProfileMenuComponent,
4081
4081
  ShellSidebarComponent,
4082
4082
  // Tab Group Component
4083
- LibTabGroupComponent,
4084
- LibTabComponent
4083
+ LibTabComponent,
4084
+ LibTabGroupComponent
4085
4085
  ], imports: [i1.CommonModule,
4086
4086
  i1$1.RouterModule,
4087
4087
  i2.IndiceAuthModule], exports: [AddressPipe,
@@ -4097,8 +4097,8 @@
4097
4097
  ErrorComponent,
4098
4098
  FormLayoutComponent,
4099
4099
  KpiTileComponent,
4100
- LibTabGroupComponent,
4101
4100
  LibTabComponent,
4101
+ LibTabGroupComponent,
4102
4102
  ListColumnComponent,
4103
4103
  ListDetailsSectionComponent,
4104
4104
  ListTileComponent,
@@ -4175,8 +4175,8 @@
4175
4175
  UserProfileMenuComponent,
4176
4176
  ShellSidebarComponent,
4177
4177
  // Tab Group Component
4178
- LibTabGroupComponent,
4179
- LibTabComponent
4178
+ LibTabComponent,
4179
+ LibTabGroupComponent
4180
4180
  ],
4181
4181
  imports: [
4182
4182
  i1.CommonModule,
@@ -4197,8 +4197,8 @@
4197
4197
  ErrorComponent,
4198
4198
  FormLayoutComponent,
4199
4199
  KpiTileComponent,
4200
- LibTabGroupComponent,
4201
4200
  LibTabComponent,
4201
+ LibTabGroupComponent,
4202
4202
  ListColumnComponent,
4203
4203
  ListDetailsSectionComponent,
4204
4204
  ListTileComponent,
@@ -4253,6 +4253,7 @@
4253
4253
  exports.Icons = Icons;
4254
4254
  exports.IndiceComponentsModule = IndiceComponentsModule;
4255
4255
  exports.KpiTileComponent = KpiTileComponent;
4256
+ exports.LIBTABGROUP_ACCESSOR = LIBTABGROUP_ACCESSOR;
4256
4257
  exports.LibTabComponent = LibTabComponent;
4257
4258
  exports.LibTabGroupComponent = LibTabGroupComponent;
4258
4259
  exports.ListColumnComponent = ListColumnComponent;