@indice/ng-components 0.2.62 → 0.2.68
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.
- package/README.md +4 -4
- package/bundles/indice-ng-components.umd.js +10 -10
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +1 -1
- package/esm2015/lib/controls/list-view/list-column.component.js +1 -1
- package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +2 -2
- package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +1 -1
- package/esm2015/lib/controls/toggle/toggle.component.js +2 -2
- package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +9 -9
- package/esm2015/lib/layouts/views/side-view-layout/side-view-layout.component.js +3 -3
- package/esm2015/lib/pages/auth/logged-out/logged-out.component.js +2 -2
- package/esm2015/lib/services/toaster.service.js +1 -1
- package/fesm2015/indice-ng-components.js +11 -11
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/indice-ng-components.metadata.json +1 -1
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +1 -2
- package/lib/pages/auth/logged-out/logged-out.component.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# INDICE ANGULAR Components
|
|
2
|
-
|
|
3
|
-
Indice common components for Angular 2+
|
|
4
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.14.
|
|
1
|
+
# INDICE ANGULAR Components
|
|
2
|
+
|
|
3
|
+
Indice common components for Angular 2+
|
|
4
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.14.
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
ListViewEmptyStateComponent.decorators = [
|
|
1079
1079
|
{ type: i0.Component, args: [{
|
|
1080
1080
|
selector: 'lib-list-view-empty-state',
|
|
1081
|
-
template: "<div class=\"p-20\">\
|
|
1081
|
+
template: "<div class=\"p-20\">\n <div class=\"text-center p-2\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-auto h-12 w-12 text-gray-400\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4\" />\n </svg>\n <h3 class=\"mt-2 text-sm font-medium text-gray-900\">{{title}}</h3>\n <p class=\"mt-1 text-sm text-gray-500\">\n {{subTitle}}\n </p>\n <div class=\"mt-6\" *ngIf=\"false\">\n <button type=\"button\" class=\"inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-gray-600 hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-gray-500\">\n <!-- Heroicon name: solid/plus -->\n <svg class=\"-ml-1 mr-2 h-6 w-6\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path vector-effect=\"non-scaling-stroke\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z\" />\n </svg>\n {{newItemLabel}}\n </button>\n </div>\n </div>\n</div>\n"
|
|
1082
1082
|
},] }
|
|
1083
1083
|
];
|
|
1084
1084
|
ListViewEmptyStateComponent.ctorParameters = function () { return []; };
|
|
@@ -1545,7 +1545,7 @@
|
|
|
1545
1545
|
ToggleComponent.decorators = [
|
|
1546
1546
|
{ type: i0.Component, args: [{
|
|
1547
1547
|
selector: 'lib-toggle',
|
|
1548
|
-
template: "<button type=\"button\"\n [ngClass]=\"value ? 'enabled' : 'disabled'\"\n class=\"toggle-button\"\n role=\"switch\"\n aria-checked=\"false\"\n aria-labelledby=\"isPrivate\"\n (click)=\"changeValue()\"\n (blur)=\"onBlur($event)\"\n value=\"{{value}}\"\n [disabled]=\"disabled\"\n [title]=\"disabled ? '\u03A4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B9\u03B4\u03C9\u03C4\u03B9\u03BA\u03CC' : '\u0399\u03B4\u03B9\u03C9\u03C4\u03B9\u03BA\u03CC'\">\n <span aria-hidden=\"true\"\n [ngClass]=\"value ? 'enabled-anim' : 'disabled-anim'\"\n class=\"toggle-span\"></span>\n</button>",
|
|
1548
|
+
template: "<button type=\"button\"\r\n [ngClass]=\"value ? 'enabled' : 'disabled'\"\r\n class=\"toggle-button\"\r\n role=\"switch\"\r\n aria-checked=\"false\"\r\n aria-labelledby=\"isPrivate\"\r\n (click)=\"changeValue()\"\r\n (blur)=\"onBlur($event)\"\r\n value=\"{{value}}\"\r\n [disabled]=\"disabled\"\r\n [title]=\"disabled ? '\u03A4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B9\u03B4\u03C9\u03C4\u03B9\u03BA\u03CC' : '\u0399\u03B4\u03B9\u03C9\u03C4\u03B9\u03BA\u03CC'\">\r\n <span aria-hidden=\"true\"\r\n [ngClass]=\"value ? 'enabled-anim' : 'disabled-anim'\"\r\n class=\"toggle-span\"></span>\r\n</button>",
|
|
1549
1549
|
providers: [
|
|
1550
1550
|
{
|
|
1551
1551
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -1916,6 +1916,7 @@
|
|
|
1916
1916
|
this.sectionLinksPath = 'main';
|
|
1917
1917
|
// tslint:disable-next-line:no-input-rename
|
|
1918
1918
|
this.profileMenuVisible = true;
|
|
1919
|
+
// tslint:disable-next-line:no-input-rename
|
|
1919
1920
|
this.showUserNameOnHeader = false;
|
|
1920
1921
|
this.border = true;
|
|
1921
1922
|
this.sectionLinks = [];
|
|
@@ -1927,7 +1928,6 @@
|
|
|
1927
1928
|
this.user = null;
|
|
1928
1929
|
this.avatarName = null;
|
|
1929
1930
|
this.routeSubject = this.router.events.pipe(operators.filter(function (event) { return event instanceof router.NavigationStart; }));
|
|
1930
|
-
this.userSubject = this.authService.user$;
|
|
1931
1931
|
}
|
|
1932
1932
|
ShellHeaderComponent.prototype.ngOnDestroy = function () {
|
|
1933
1933
|
console.log(this.showUserNameOnHeader);
|
|
@@ -1953,11 +1953,11 @@
|
|
|
1953
1953
|
console.log(user);
|
|
1954
1954
|
_this.setCurrentUser(user);
|
|
1955
1955
|
}, function (error) {
|
|
1956
|
-
|
|
1956
|
+
console.error(error);
|
|
1957
1957
|
});
|
|
1958
1958
|
// Detect user changes and display / or not user info accordingly...
|
|
1959
|
-
this.userSub$ = this.
|
|
1960
|
-
//console.log('ShellHeaderComponent user subscription');
|
|
1959
|
+
this.userSub$ = this.authService.user$.subscribe(function (user) {
|
|
1960
|
+
// console.log('ShellHeaderComponent user subscription');
|
|
1961
1961
|
_this.setCurrentUser(user);
|
|
1962
1962
|
});
|
|
1963
1963
|
};
|
|
@@ -1975,8 +1975,8 @@
|
|
|
1975
1975
|
var _a, _b;
|
|
1976
1976
|
this.user = user;
|
|
1977
1977
|
if (this.user && this.user.profile) {
|
|
1978
|
-
this.avatarName = "" + ((_a = this.user.profile.given_name) === null || _a === void 0 ? void 0 : _a.charAt(0)) + ((_b = this.user.profile.family_name) === null || _b === void 0 ? void 0 : _b.charAt(0));
|
|
1979
|
-
//console.log('load user', this.avatarName);
|
|
1978
|
+
this.avatarName = ("" + ((_a = this.user.profile.given_name) === null || _a === void 0 ? void 0 : _a.charAt(0)) + ((_b = this.user.profile.family_name) === null || _b === void 0 ? void 0 : _b.charAt(0))).toUpperCase();
|
|
1979
|
+
// console.log('load user', this.avatarName);
|
|
1980
1980
|
}
|
|
1981
1981
|
};
|
|
1982
1982
|
return ShellHeaderComponent;
|
|
@@ -2185,10 +2185,10 @@
|
|
|
2185
2185
|
this.router.navigateByUrl('/', { skipLocationChange: true }).then(function () { return _this.router.navigateByUrl(_this.returnPath || '/'); });
|
|
2186
2186
|
}
|
|
2187
2187
|
else {
|
|
2188
|
-
if (this.router.url.split('/(')[0] && !this.forceLocationBack) {
|
|
2188
|
+
if ((this.router.url.split('/(')[0] !== this.router.url) && !this.forceLocationBack) {
|
|
2189
2189
|
this.router.navigateByUrl(this.router.url.split('/(')[0]);
|
|
2190
2190
|
}
|
|
2191
|
-
else if (this.router.url.split('(')[0] && !this.forceLocationBack) {
|
|
2191
|
+
else if ((this.router.url.split('(')[0] !== this.router.url) && !this.forceLocationBack) {
|
|
2192
2192
|
this.router.navigateByUrl(this.router.url.split('(')[0]);
|
|
2193
2193
|
}
|
|
2194
2194
|
else {
|