@seniorsistemas/angular-components 16.7.0 → 16.7.2

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.
@@ -1394,10 +1394,10 @@ var CountryPhonePickerComponent = /** @class */ (function () {
1394
1394
  this.value = value;
1395
1395
  };
1396
1396
  CountryPhonePickerComponent.prototype.registerOnChange = function (onChange) {
1397
- this.onChange = onChange;
1397
+ this._onChange = onChange;
1398
1398
  };
1399
1399
  CountryPhonePickerComponent.prototype.registerOnTouched = function (onTouched) {
1400
- this.onTouched = onTouched;
1400
+ this._onTouched = onTouched;
1401
1401
  };
1402
1402
  CountryPhonePickerComponent.prototype.onClickout = function (event) {
1403
1403
  if (!this.eRef.nativeElement.contains(event.target)) {
@@ -1424,7 +1424,7 @@ var CountryPhonePickerComponent = /** @class */ (function () {
1424
1424
  rawValue: value !== null && value !== void 0 ? value : "",
1425
1425
  value: value ? "" + _this._applyMask(value) : "",
1426
1426
  };
1427
- _this.onChange(_this.value);
1427
+ _this._onChange(_this.value);
1428
1428
  });
1429
1429
  };
1430
1430
  CountryPhonePickerComponent.prototype.onKeydown = function (event) {
@@ -4116,7 +4116,7 @@ var InfoSignComponent = /** @class */ (function () {
4116
4116
  InfoSignComponent = __decorate([
4117
4117
  Component({
4118
4118
  selector: "s-info-sign-component",
4119
- template: "<span class=\"info-sign\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i\n class=\"info-sign__icon fa fa-info-circle\"\n aria-hidden=\"true\"\n [sTooltip]=\"tooltip\"\n [escape]=\"false\"\n tooltipPosition=\"top\"\n [displayTime]=\"5000\"\n mobileBehavior=\"tap\"\n showDelay=\"0\">\n </i>\n</span>",
4119
+ template: "<span class=\"info-sign\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i\n class=\"info-sign__icon fa fa-info-circle\"\n aria-hidden=\"true\"\n [sTooltip]=\"tooltip\"\n [escape]=\"false\"\n tooltipPosition=\"top\"\n [displayTime]=\"displayTime\"\n mobileBehavior=\"tap\"\n showDelay=\"0\">\n </i>\n</span>",
4120
4120
  styles: [".info-sign{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start}.info-sign .info-sign__icon{padding:0 12px}"]
4121
4121
  })
4122
4122
  ], InfoSignComponent);
@@ -4128,6 +4128,7 @@ var InfoSignDirective = /** @class */ (function () {
4128
4128
  this.templateRef = templateRef;
4129
4129
  this.viewContainer = viewContainer;
4130
4130
  this.componentFactoryResolver = componentFactoryResolver;
4131
+ this.displayTime = 5000;
4131
4132
  }
4132
4133
  InfoSignDirective.prototype.ngOnInit = function () {
4133
4134
  if (!this.componentRef && this.sInfoSign) {
@@ -4136,6 +4137,7 @@ var InfoSignDirective = /** @class */ (function () {
4136
4137
  this.componentRef = this.viewContainer.createComponent(componentFactory);
4137
4138
  this.componentRef.instance.templateRef = this.templateRef;
4138
4139
  this.componentRef.instance.tooltip = this.sInfoSign;
4140
+ this.componentRef.instance.displayTime = this.displayTime;
4139
4141
  }
4140
4142
  else if (this.componentRef && this.sInfoSign) {
4141
4143
  this.componentRef.instance.tooltip = this.sInfoSign;
@@ -4158,6 +4160,9 @@ var InfoSignDirective = /** @class */ (function () {
4158
4160
  __decorate([
4159
4161
  Input()
4160
4162
  ], InfoSignDirective.prototype, "sInfoSign", void 0);
4163
+ __decorate([
4164
+ Input('sInfoSignDisplayTime')
4165
+ ], InfoSignDirective.prototype, "displayTime", void 0);
4161
4166
  InfoSignDirective = __decorate([
4162
4167
  Directive({
4163
4168
  selector: "[sInfoSign]",
@@ -11449,6 +11454,7 @@ var WorkspaceSwitchComponent = /** @class */ (function () {
11449
11454
  this.eRef = eRef;
11450
11455
  this.footerButtonLabel = "Adicionar";
11451
11456
  this.showFooterButton = true;
11457
+ this.disabled = false;
11452
11458
  this.footerButtonClicked = new EventEmitter();
11453
11459
  this.selected = new EventEmitter();
11454
11460
  this.open = false;
@@ -11483,6 +11489,11 @@ var WorkspaceSwitchComponent = /** @class */ (function () {
11483
11489
  }
11484
11490
  }
11485
11491
  };
11492
+ WorkspaceSwitchComponent.prototype.ngOnInit = function () {
11493
+ if (this.disabled) {
11494
+ this.tabindex = -1;
11495
+ }
11496
+ };
11486
11497
  WorkspaceSwitchComponent.prototype.validations = function () {
11487
11498
  if (!this.workspaces.length) {
11488
11499
  throw new Error("Workspaces list is empty.");
@@ -11514,6 +11525,9 @@ var WorkspaceSwitchComponent = /** @class */ (function () {
11514
11525
  __decorate([
11515
11526
  Input()
11516
11527
  ], WorkspaceSwitchComponent.prototype, "showFooterButton", void 0);
11528
+ __decorate([
11529
+ Input()
11530
+ ], WorkspaceSwitchComponent.prototype, "disabled", void 0);
11517
11531
  __decorate([
11518
11532
  Output()
11519
11533
  ], WorkspaceSwitchComponent.prototype, "footerButtonClicked", void 0);
@@ -11532,8 +11546,8 @@ var WorkspaceSwitchComponent = /** @class */ (function () {
11532
11546
  WorkspaceSwitchComponent = __decorate([
11533
11547
  Component({
11534
11548
  selector: "s-workspace-switch",
11535
- template: "<div class=\"workspace-switch\" (blur)=\"buttonOnBlur()\">\n <div class=\"button\" (click)=\"open = !open\">\n <div class=\"item\">\n <span class=\"title\">{{ workspaces[selectedItemIndex].title }}</span>\n <span class=\"subtitle\">{{ workspaces[selectedItemIndex].subtitle }}</span>\n </div>\n <div class=\"icons\">\n <span class=\"fas fa-chevron-up\"></span>\n <span class=\"fas fa-chevron-down\"></span>\n </div>\n </div>\n <div *ngIf=\"open\" class=\"select\">\n <div\n *ngFor=\"let workspace of workspaces; let i = index\"\n class=\"select-item\"\n [ngClass]=\"{ 'select-item--focused': i == currentItemIndex }\"\n (click)=\"onSelectItem(workspace)\">\n <div class=\"item\">\n <span class=\"title\">{{ workspace.title }}</span>\n <span class=\"subtitle\">{{ workspace.subtitle }}</span>\n </div>\n <span *ngIf=\"i === selectedItemIndex\" class=\"active-icon fas fa-check\"></span>\n </div>\n <div *ngIf=\"showFooterButton\" class=\"footer\">\n <div class=\"footer__button\" (click)=\"onFooterButtonClick()\">\n <span class=\"footer__button__icon fas fa-plus\"></span>\n <span class=\"footer__button__title\">{{ footerButtonLabel }}</span>\n </div>\n </div>\n </div>\n</div>",
11536
- styles: [".workspace-switch{border-radius:4px;border:1px solid transparent;width:324px}.workspace-switch .button{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none}.workspace-switch .button .icons{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;margin:0 12px}.workspace-switch .select{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.25);cursor:pointer;margin:20px 0;padding-top:4px;position:absolute;width:324px}.workspace-switch .select .select-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none}.workspace-switch .select .select-item .active-icon{color:#7892a1;font-size:12px;margin:0 12px}.workspace-switch .select .select-item--focused,.workspace-switch .select .select-item:hover{background-color:#f1f7f8}.workspace-switch .select .footer{border-top:1px solid #ccc;padding:12px}.workspace-switch .select .footer .footer__button{-ms-flex-align:center;align-items:center;border:1px solid #d8d8d8;border-radius:4px;padding:8px 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.workspace-switch .select .footer .footer__button .footer__button__icon{color:#333;margin-right:8px}.workspace-switch .select .footer .footer__button:active{border:1px solid #428bca}.workspace-switch .item{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;padding:12px}.workspace-switch .item .title{color:#333;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:700;line-height:150%;text-transform:uppercase}.workspace-switch .item .subtitle{color:#999;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%}.workspace-switch:focus{border:1px solid #428bca}"]
11549
+ template: "<div\n class=\"workspace-switch\"\n [ngClass]=\"{ 'workspace-switch--disabled': disabled }\"\n (blur)=\"buttonOnBlur()\">\n <div class=\"button\" (click)=\"open = !open\">\n <div class=\"item\">\n <span class=\"title\">{{ workspaces[selectedItemIndex].title }}</span>\n <span class=\"subtitle\">{{ workspaces[selectedItemIndex].subtitle }}</span>\n </div>\n <div class=\"icons\">\n <span class=\"fas fa-chevron-up\"></span>\n <span class=\"fas fa-chevron-down\"></span>\n </div>\n </div>\n <div *ngIf=\"!disabled && open\" class=\"select\">\n <div\n *ngFor=\"let workspace of workspaces; let i = index\"\n class=\"select-item\"\n [ngClass]=\"{ 'select-item--focused': i == currentItemIndex }\"\n (click)=\"onSelectItem(workspace)\">\n <div class=\"item\">\n <span class=\"title\">{{ workspace.title }}</span>\n <span class=\"subtitle\">{{ workspace.subtitle }}</span>\n </div>\n <span *ngIf=\"i === selectedItemIndex\" class=\"active-icon fas fa-check\"></span>\n </div>\n <div *ngIf=\"showFooterButton\" class=\"footer\">\n <div class=\"footer__button\" (click)=\"onFooterButtonClick()\">\n <span class=\"footer__button__icon fas fa-plus\"></span>\n <span class=\"footer__button__title\">{{ footerButtonLabel }}</span>\n </div>\n </div>\n </div>\n</div>",
11550
+ styles: [".workspace-switch{border-radius:4px;border:1px solid transparent;width:324px}.workspace-switch .button{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none}.workspace-switch .button .icons{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;margin:0 12px}.workspace-switch .select{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.25);cursor:pointer;margin:20px 0;padding-top:4px;position:absolute;width:324px}.workspace-switch .select .select-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none}.workspace-switch .select .select-item .active-icon{color:#7892a1;font-size:12px;margin:0 12px}.workspace-switch .select .select-item--focused,.workspace-switch .select .select-item:hover{background-color:#f1f7f8}.workspace-switch .select .footer{border-top:1px solid #ccc;padding:12px}.workspace-switch .select .footer .footer__button{-ms-flex-align:center;align-items:center;border:1px solid #d8d8d8;border-radius:4px;padding:8px 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.workspace-switch .select .footer .footer__button .footer__button__icon{color:#333;margin-right:8px}.workspace-switch .select .footer .footer__button:active{border:1px solid #428bca}.workspace-switch .item{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;padding:12px}.workspace-switch .item .title{color:#333;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:700;line-height:150%;text-transform:uppercase}.workspace-switch .item .subtitle{color:#999;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%}.workspace-switch:focus{border:1px solid #428bca}.workspace-switch--disabled .button{cursor:default}.workspace-switch--disabled .button .icons,.workspace-switch--disabled .item .subtitle,.workspace-switch--disabled .item .title{color:#ccc}"]
11537
11551
  })
11538
11552
  ], WorkspaceSwitchComponent);
11539
11553
  return WorkspaceSwitchComponent;