ps-toolkit-ui 1.14.16 → 1.14.17

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.
@@ -387,6 +387,30 @@
387
387
  { type: PsToolkitUiConfigService }
388
388
  ]; };
389
389
 
390
+ var HeaderComponent = /** @class */ (function () {
391
+ function HeaderComponent(config) {
392
+ this.config = config;
393
+ this.header = null;
394
+ }
395
+ HeaderComponent.prototype.showUserDropDown = function (e) {
396
+ $__namespace(e.target).closest('#Header').find('.user-drop-down').slideToggle(100);
397
+ };
398
+ return HeaderComponent;
399
+ }());
400
+ HeaderComponent.decorators = [
401
+ { type: core.Component, args: [{
402
+ selector: 'lib-header',
403
+ template: "<div id=\"Header\" class=\"underline\">\r\n <div class=\"content\"><ng-content></ng-content></div>\r\n <div (click)=\"showUserDropDown($event)\" class=\"user-con\">\r\n <i class=\"fa-duotone fa-user user\"></i>\r\n <div class=\"user-drop-down\">\r\n <div class=\"username\" *ngIf=\"header.username != null\">{{header.username}}</div>\r\n <lib-form-button *ngFor=\"let btn of header.buttons\" [inp]=\"btn\"></lib-form-button>\r\n </div>\r\n </div>\r\n</div>\r\n",
404
+ styles: ["#Header{background-color:#fff;float:right;height:50px;position:relative;width:100%;z-index:11}#Header .content{float:right;height:100%;margin-right:50px;text-align:center;width:calc(100% - 150px)}#Header .user-con{align-items:center;display:flex;float:right;height:100%;justify-content:center;position:relative;width:100px}#Header .user-con .user{border-radius:50%;color:var(--primary);cursor:pointer;float:right;font-size:18px;height:30px;line-height:30px;text-align:center;width:30px}#Header .user-con .user:hover{color:var(--primary-dark)}#Header .user-con .user-drop-down{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow);display:none;left:20px;overflow:hidden;position:absolute;top:55px;width:150px}#Header .user-con .user-drop-down .username{float:right;font-weight:700;line-height:35px;text-align:center;width:100%}::ng-deep #LogoutButtonInput .control{border-radius:0}@media (max-width:399.98px){#Header .content{font-size:12px;width:calc(100% - 100px)}#Header .user-con{width:50px}}@media (min-width:400px) and (max-width:499.98px){#Header .content{font-size:12px;width:calc(100% - 100px)}#Header .user-con{width:50px}}"]
405
+ },] }
406
+ ];
407
+ HeaderComponent.ctorParameters = function () { return [
408
+ { type: PsToolkitUiConfigService }
409
+ ]; };
410
+ HeaderComponent.propDecorators = {
411
+ header: [{ type: core.Input }]
412
+ };
413
+
390
414
  /******************************************************************************
391
415
  Copyright (c) Microsoft Corporation.
392
416
 
@@ -2495,42 +2519,6 @@
2495
2519
  return AccordionRowClass;
2496
2520
  }());
2497
2521
 
2498
- var HeaderComponent = /** @class */ (function () {
2499
- function HeaderComponent(config) {
2500
- var _this = this;
2501
- this.config = config;
2502
- this.currentData = null;
2503
- this.logout = new core.EventEmitter();
2504
- var lang = new LangClass(config.currentLang, config.strings);
2505
- var l = function (key, v) {
2506
- if (v === void 0) { v = null; }
2507
- return lang.get('Public', 'Header', key, v);
2508
- };
2509
- this.logoutInp = new InputClass(config.environment, l, 'Logout', 'fa-duotone fa-right-from-bracket', exports.InputType.Button, 'grey h-30 p-0');
2510
- this.logoutInp.onClick = function () {
2511
- _this.logout.emit(_this.logoutInp);
2512
- };
2513
- }
2514
- HeaderComponent.prototype.showUserDropDown = function (e) {
2515
- $__namespace(e.target).closest('#Header').find('.user-drop-down').slideToggle(100);
2516
- };
2517
- return HeaderComponent;
2518
- }());
2519
- HeaderComponent.decorators = [
2520
- { type: core.Component, args: [{
2521
- selector: 'lib-header',
2522
- template: "<div id=\"Header\" class=\"underline\">\r\n <div class=\"content\"><ng-content></ng-content></div>\r\n <div (click)=\"showUserDropDown($event)\" class=\"user-con\">\r\n <i class=\"fa-duotone fa-user user\"></i>\r\n <div class=\"user-drop-down\">\r\n <div class=\"username\" *ngIf=\"currentData != null && currentData.user != null\">{{currentData.user.Username}}</div>\r\n <lib-form-button [inp]=\"logoutInp\"></lib-form-button>\r\n </div>\r\n </div>\r\n</div>\r\n",
2523
- styles: ["#Header{background-color:#fff;float:right;height:50px;position:relative;width:100%;z-index:11}#Header .content{float:right;height:100%;margin-right:50px;text-align:center;width:calc(100% - 150px)}#Header .user-con{align-items:center;display:flex;float:right;height:100%;justify-content:center;position:relative;width:100px}#Header .user-con .user{border-radius:50%;color:var(--primary);cursor:pointer;float:right;font-size:18px;height:30px;line-height:30px;text-align:center;width:30px}#Header .user-con .user:hover{color:var(--primary-dark)}#Header .user-con .user-drop-down{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow);display:none;left:20px;overflow:hidden;position:absolute;top:55px;width:150px}#Header .user-con .user-drop-down .username{float:right;font-weight:700;line-height:35px;text-align:center;width:100%}::ng-deep #LogoutButtonInput .control{border-radius:0}@media (max-width:399.98px){#Header .content{font-size:12px;width:calc(100% - 100px)}#Header .user-con{width:50px}}@media (min-width:400px) and (max-width:499.98px){#Header .content{font-size:12px;width:calc(100% - 100px)}#Header .user-con{width:50px}}"]
2524
- },] }
2525
- ];
2526
- HeaderComponent.ctorParameters = function () { return [
2527
- { type: PsToolkitUiConfigService }
2528
- ]; };
2529
- HeaderComponent.propDecorators = {
2530
- currentData: [{ type: core.Input }],
2531
- logout: [{ type: core.Output }]
2532
- };
2533
-
2534
2522
  var ModalComponent = /** @class */ (function () {
2535
2523
  function ModalComponent() {
2536
2524
  }
@@ -7722,21 +7710,20 @@
7722
7710
 
7723
7711
  var LayoutComponent = /** @class */ (function () {
7724
7712
  function LayoutComponent() {
7725
- this.logout = new core.EventEmitter();
7726
7713
  }
7727
7714
  return LayoutComponent;
7728
7715
  }());
7729
7716
  LayoutComponent.decorators = [
7730
7717
  { type: core.Component, args: [{
7731
7718
  selector: 'lib-layout',
7732
- template: "<div id=\"Layout\">\r\n <div class=\"layout-con\">\r\n <div class=\"panel\" *ngIf=\"currentData.user != null\">\r\n <lib-sidebar [currentData]=\"currentData\">\r\n <ng-content select=\"[slot=sidebar]\"></ng-content>\r\n </lib-sidebar>\r\n <div class=\"content\">\r\n <lib-header (logout)=\"logout.emit()\" [currentData]=\"currentData\">\r\n <ng-content select=\"[slot=header]\"></ng-content>\r\n </lib-header>\r\n\r\n <div class=\"content-scroll-con\">\r\n <div class=\"content-scroll\">\r\n <router-outlet></router-outlet>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <lib-footer></lib-footer>\r\n </div>\r\n</div>\r\n",
7719
+ template: "<div id=\"Layout\">\r\n <div class=\"layout-con\">\r\n <div class=\"panel\" *ngIf=\"currentData.user != null\">\r\n <lib-sidebar [currentData]=\"currentData\">\r\n <ng-content select=\"[slot=sidebar]\"></ng-content>\r\n </lib-sidebar>\r\n <div class=\"content\">\r\n <lib-header [header]=\"header\">\r\n <ng-content select=\"[slot=header]\"></ng-content>\r\n </lib-header>\r\n\r\n <div class=\"content-scroll-con\">\r\n <div class=\"content-scroll\">\r\n <router-outlet></router-outlet>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <lib-footer></lib-footer>\r\n </div>\r\n</div>\r\n",
7733
7720
  styles: ["#Layout,#Layout .layout-con,#Layout .panel{float:right;width:100%}#Layout .panel{display:flex;flex-direction:row;position:relative}#Layout .panel .content{background-color:var(--base-white);direction:rtl;float:left;overflow:hidden;position:relative;transition:width .3s;width:100%}#Layout .panel .content .content-scroll-con{height:calc(100vh - 85px);min-height:calc(100vh - 85px);overflow-y:auto;width:100%}#Layout .panel .content .content-scroll-con .content-scroll{float:right;padding:20px;width:100%}@media (max-width:599.98px){#Layout .panel .content .content-scroll-con{height:calc(100vh - 50px);min-height:calc(100vh - 50px)}}"]
7734
7721
  },] }
7735
7722
  ];
7736
7723
  LayoutComponent.ctorParameters = function () { return []; };
7737
7724
  LayoutComponent.propDecorators = {
7738
7725
  currentData: [{ type: core.Input }],
7739
- logout: [{ type: core.Output }]
7726
+ header: [{ type: core.Input }]
7740
7727
  };
7741
7728
 
7742
7729
  var FormHiddenComponent = /** @class */ (function () {