@indice/ng-components 0.2.147-beta.0 → 0.2.148-beta.0

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,6 +1984,69 @@
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
+
1993
+ var LibTabComponent = /** @class */ (function () {
1994
+ function LibTabComponent(_tabGroup) {
1995
+ this._tabGroup = _tabGroup;
1996
+ this._isActive = false;
1997
+ }
1998
+ Object.defineProperty(LibTabComponent.prototype, "index", {
1999
+ /** Indicates the index of the tab. */
2000
+ get: function () {
2001
+ var _a, _b;
2002
+ return ((_b = (_a = this._tabGroup) === null || _a === void 0 ? void 0 : _a.tabs) === null || _b === void 0 ? void 0 : _b.toArray().indexOf(this)) || undefined;
2003
+ },
2004
+ enumerable: false,
2005
+ configurable: true
2006
+ });
2007
+ Object.defineProperty(LibTabComponent.prototype, "isActive", {
2008
+ /** Indicates whether the tab is active. */
2009
+ get: function () {
2010
+ return this._isActive;
2011
+ },
2012
+ /** Setter for LibTabComponent isActive property. */
2013
+ set: function (isActive) {
2014
+ this._isActive = isActive;
2015
+ },
2016
+ enumerable: false,
2017
+ configurable: true
2018
+ });
2019
+ LibTabComponent.prototype.ngOnInit = function () {
2020
+ this.id = this.id || uuid__namespace.v4();
2021
+ };
2022
+ return LibTabComponent;
2023
+ }());
2024
+ 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 });
2025
+ 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 });
2026
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabComponent, decorators: [{
2027
+ type: i0.Component,
2028
+ args: [{
2029
+ selector: 'lib-tab',
2030
+ template: "\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n ",
2031
+ encapsulation: i0.ViewEncapsulation.None,
2032
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2033
+ }]
2034
+ }], ctorParameters: function () {
2035
+ return [{ type: undefined, decorators: [{
2036
+ type: i0.Optional
2037
+ }, {
2038
+ type: i0.Inject,
2039
+ args: [LIBTABGROUP_ACCESSOR]
2040
+ }] }];
2041
+ }, propDecorators: { content: [{
2042
+ type: i0.ViewChild,
2043
+ args: [i0.TemplateRef, { static: true }]
2044
+ }], label: [{
2045
+ type: i0.Input
2046
+ }], id: [{
2047
+ type: i0.Input
2048
+ }] } });
2049
+
1987
2050
  var LibTabGroupComponent = /** @class */ (function () {
1988
2051
  function LibTabGroupComponent() {
1989
2052
  /** The inner tabs of the group. */
@@ -2035,12 +2098,17 @@
2035
2098
  return LibTabGroupComponent;
2036
2099
  }());
2037
2100
  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"] }] });
2101
+ LibTabGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LibTabGroupComponent, selector: "lib-tab-group", outputs: { tabChanged: "tabChanged" }, providers: [
2102
+ { provide: LIBTABGROUP_ACCESSOR, useExisting: i0.forwardRef(function () { return LibTabGroupComponent; }) }
2103
+ ], 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
2104
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabGroupComponent, decorators: [{
2040
2105
  type: i0.Component,
2041
2106
  args: [{
2042
2107
  selector: 'lib-tab-group',
2043
- templateUrl: './lib-tab-group.component.html'
2108
+ templateUrl: './lib-tab-group.component.html',
2109
+ providers: [
2110
+ { provide: LIBTABGROUP_ACCESSOR, useExisting: i0.forwardRef(function () { return LibTabGroupComponent; }) }
2111
+ ]
2044
2112
  }]
2045
2113
  }], ctorParameters: function () { return []; }, propDecorators: { tabs: [{
2046
2114
  type: i0.ContentChildren,
@@ -2049,66 +2117,6 @@
2049
2117
  type: i0.Output
2050
2118
  }] } });
2051
2119
 
2052
- var LibTabComponent = /** @class */ (function () {
2053
- function LibTabComponent(_tabGroup) {
2054
- this._tabGroup = _tabGroup;
2055
- this._isActive = false;
2056
- }
2057
- Object.defineProperty(LibTabComponent.prototype, "index", {
2058
- /** Indicates the index of the tab. */
2059
- get: function () {
2060
- var _a;
2061
- return ((_a = this._tabGroup.tabs) === null || _a === void 0 ? void 0 : _a.toArray().indexOf(this)) || undefined;
2062
- },
2063
- enumerable: false,
2064
- configurable: true
2065
- });
2066
- Object.defineProperty(LibTabComponent.prototype, "isActive", {
2067
- /** Indicates whether the tab is active. */
2068
- get: function () {
2069
- return this._isActive;
2070
- },
2071
- /** Setter for LibTabComponent isActive property. */
2072
- set: function (isActive) {
2073
- this._isActive = isActive;
2074
- },
2075
- enumerable: false,
2076
- configurable: true
2077
- });
2078
- LibTabComponent.prototype.ngOnInit = function () {
2079
- this.id = this.id || uuid__namespace.v4();
2080
- };
2081
- return LibTabComponent;
2082
- }());
2083
- LibTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabComponent, deps: [{ token: i0.forwardRef(function () { return LibTabGroupComponent; }) }], target: i0__namespace.ɵɵFactoryTarget.Component });
2084
- 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 });
2085
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LibTabComponent, decorators: [{
2086
- type: i0.Component,
2087
- args: [{
2088
- selector: 'lib-tab',
2089
- template: "\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n ",
2090
- encapsulation: i0.ViewEncapsulation.None,
2091
- changeDetection: i0.ChangeDetectionStrategy.OnPush
2092
- }]
2093
- }], ctorParameters: function () {
2094
- return [{ type: LibTabGroupComponent, decorators: [{
2095
- type: i0.Inject,
2096
- args: [i0.forwardRef(function () { return LibTabGroupComponent; })]
2097
- }] }];
2098
- }, propDecorators: { content: [{
2099
- type: i0.ViewChild,
2100
- args: [i0.TemplateRef, { static: true }]
2101
- }], label: [{
2102
- type: i0.Input
2103
- }], id: [{
2104
- type: i0.Input
2105
- }] } });
2106
-
2107
- var APP_LINKS = new i0.InjectionToken('APP_LINKS');
2108
- var APP_NOTIFICATIONS = new i0.InjectionToken('APP_NOTIFICATIONS');
2109
- var SHELL_CONFIG = new i0.InjectionToken('SHELL_CONFIG');
2110
- var APP_LANGUAGES = new i0.InjectionToken('APP_LANGUAGES');
2111
-
2112
2120
  var DynamicComponentHostDirective = /** @class */ (function () {
2113
2121
  function DynamicComponentHostDirective(viewContainerRef) {
2114
2122
  this.viewContainerRef = viewContainerRef;
@@ -4072,8 +4080,8 @@
4072
4080
  UserProfileMenuComponent,
4073
4081
  ShellSidebarComponent,
4074
4082
  // Tab Group Component
4075
- LibTabGroupComponent,
4076
- LibTabComponent
4083
+ LibTabComponent,
4084
+ LibTabGroupComponent
4077
4085
  ], imports: [i1.CommonModule,
4078
4086
  i1$1.RouterModule,
4079
4087
  i2.IndiceAuthModule], exports: [AddressPipe,
@@ -4167,8 +4175,8 @@
4167
4175
  UserProfileMenuComponent,
4168
4176
  ShellSidebarComponent,
4169
4177
  // Tab Group Component
4170
- LibTabGroupComponent,
4171
- LibTabComponent
4178
+ LibTabComponent,
4179
+ LibTabGroupComponent
4172
4180
  ],
4173
4181
  imports: [
4174
4182
  i1.CommonModule,
@@ -4245,6 +4253,7 @@
4245
4253
  exports.Icons = Icons;
4246
4254
  exports.IndiceComponentsModule = IndiceComponentsModule;
4247
4255
  exports.KpiTileComponent = KpiTileComponent;
4256
+ exports.LIBTABGROUP_ACCESSOR = LIBTABGROUP_ACCESSOR;
4248
4257
  exports.LibTabComponent = LibTabComponent;
4249
4258
  exports.LibTabGroupComponent = LibTabGroupComponent;
4250
4259
  exports.ListColumnComponent = ListColumnComponent;