@indice/ng-components 0.2.63 → 0.2.69
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/_styles.css +6 -2
- package/bundles/indice-ng-components.umd.js +7 -7
- package/bundles/indice-ng-components.umd.js.map +1 -1
- 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 +2 -2
- package/esm2015/lib/pages/auth/logged-out/logged-out.component.js +2 -2
- package/fesm2015/indice-ng-components.js +8 -8
- 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/_styles.css
CHANGED
|
@@ -575,14 +575,18 @@
|
|
|
575
575
|
@apply flex-shrink-0 px-4 py-4 flex bg-gray-100 justify-end;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
.side-view-layout-action-button {
|
|
578
|
+
.side-view-layout-action-button-cancel {
|
|
579
579
|
@apply bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-gray-500;
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
.side-view-layout-action-button-
|
|
582
|
+
.side-view-layout-action-button-submit {
|
|
583
583
|
@apply ml-4 inline-flex justify-center py-2 px-4 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-1 focus:ring-offset-1 focus:ring-gray-500;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
.side-view-layout-action-button-submit:disabled {
|
|
587
|
+
@apply ml-4 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-gray-300 focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-gray-500;
|
|
588
|
+
}
|
|
589
|
+
|
|
586
590
|
}
|
|
587
591
|
|
|
588
592
|
|
|
@@ -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;
|
|
@@ -2215,7 +2215,7 @@
|
|
|
2215
2215
|
SideViewLayoutComponent.decorators = [
|
|
2216
2216
|
{ type: i0.Component, args: [{
|
|
2217
2217
|
selector: 'lib-side-view-layout',
|
|
2218
|
-
template: "<div class=\"side-view-layout-size-box\">\r\n <div class=\"side-view-layout-container\">\r\n <div class=\"side-view-layout-container-inner\">\r\n <div class=\"side-view-layout-header-margins\">\r\n <div class=\"side-view-layout-header-container\">\r\n <h2 class=\"side-view-layout-header-title\" id=\"slide-over-title\">\r\n {{title}}\r\n </h2>\r\n <div class=\"side-view-layout-close-button-container\">\r\n <button (click)=\"emitClose()\" class=\"side-view-layout-close-button\">\r\n <span class=\"sr-only\">Close panel</span>\r\n <!-- Heroicon name: outline/x -->\r\n <svg class=\"side-view-layout-close-button-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\r\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\r\n </svg>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"side-view-layout-content-container\">\r\n <!-- Replace with your content -->\r\n <ng-content></ng-content>\r\n <!-- /End replace -->\r\n </div>\r\n </div>\r\n <div *ngIf=\"showActions\" class=\"side-view-layout-actions-container\">\r\n <button *ngIf=\"cancelShow\" (click)=\"emitCancel()\" type=\"button\" class=\"side-view-layout-action-button\">\r\n {{cancelLabel}}\r\n </button>\r\n <button *ngIf=\"okShow\" (click)=\"emitOK()\" class=\"side-view-layout-action-button-
|
|
2218
|
+
template: "<div class=\"side-view-layout-size-box\">\r\n <div class=\"side-view-layout-container\">\r\n <div class=\"side-view-layout-container-inner\">\r\n <div class=\"side-view-layout-header-margins\">\r\n <div class=\"side-view-layout-header-container\">\r\n <h2 class=\"side-view-layout-header-title\" id=\"slide-over-title\">\r\n {{title}}\r\n </h2>\r\n <div class=\"side-view-layout-close-button-container\">\r\n <button (click)=\"emitClose()\" class=\"side-view-layout-close-button\">\r\n <span class=\"sr-only\">Close panel</span>\r\n <!-- Heroicon name: outline/x -->\r\n <svg class=\"side-view-layout-close-button-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\r\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\r\n </svg>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"side-view-layout-content-container\">\r\n <!-- Replace with your content -->\r\n <ng-content></ng-content>\r\n <!-- /End replace -->\r\n </div>\r\n </div>\r\n <div *ngIf=\"showActions\" class=\"side-view-layout-actions-container\">\r\n <button *ngIf=\"cancelShow\" (click)=\"emitCancel()\" type=\"button\" class=\"side-view-layout-action-button-cancel\">\r\n {{cancelLabel}}\r\n </button>\r\n <button *ngIf=\"okShow\" (click)=\"emitOK()\" class=\"side-view-layout-action-button-submit\" [disabled]=\"disabled\">\r\n {{okLabel}}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n"
|
|
2219
2219
|
},] }
|
|
2220
2220
|
];
|
|
2221
2221
|
SideViewLayoutComponent.ctorParameters = function () { return [
|