@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.
- package/bundles/seniorsistemas-angular-components.umd.js +20 -6
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/country-phone-picker/country-phone-picker.component.d.ts +3 -3
- package/components/info-sign/info-sign.component.d.ts +1 -0
- package/components/info-sign/info-sign.directive.d.ts +1 -0
- package/components/workspace-switch/workspace-switch.component.d.ts +4 -2
- package/esm2015/components/country-phone-picker/country-phone-picker.component.js +4 -4
- package/esm2015/components/info-sign/info-sign.component.js +2 -2
- package/esm2015/components/info-sign/info-sign.directive.js +6 -1
- package/esm2015/components/workspace-switch/workspace-switch.component.js +13 -4
- package/esm5/components/country-phone-picker/country-phone-picker.component.js +4 -4
- package/esm5/components/info-sign/info-sign.component.js +2 -2
- package/esm5/components/info-sign/info-sign.directive.js +6 -1
- package/esm5/components/workspace-switch/workspace-switch.component.js +13 -4
- package/fesm2015/seniorsistemas-angular-components.js +20 -6
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +20 -6
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -1563,10 +1563,10 @@
|
|
|
1563
1563
|
this.value = value;
|
|
1564
1564
|
};
|
|
1565
1565
|
CountryPhonePickerComponent.prototype.registerOnChange = function (onChange) {
|
|
1566
|
-
this.
|
|
1566
|
+
this._onChange = onChange;
|
|
1567
1567
|
};
|
|
1568
1568
|
CountryPhonePickerComponent.prototype.registerOnTouched = function (onTouched) {
|
|
1569
|
-
this.
|
|
1569
|
+
this._onTouched = onTouched;
|
|
1570
1570
|
};
|
|
1571
1571
|
CountryPhonePickerComponent.prototype.onClickout = function (event) {
|
|
1572
1572
|
if (!this.eRef.nativeElement.contains(event.target)) {
|
|
@@ -1593,7 +1593,7 @@
|
|
|
1593
1593
|
rawValue: value !== null && value !== void 0 ? value : "",
|
|
1594
1594
|
value: value ? "" + _this._applyMask(value) : "",
|
|
1595
1595
|
};
|
|
1596
|
-
_this.
|
|
1596
|
+
_this._onChange(_this.value);
|
|
1597
1597
|
});
|
|
1598
1598
|
};
|
|
1599
1599
|
CountryPhonePickerComponent.prototype.onKeydown = function (event) {
|
|
@@ -4285,7 +4285,7 @@
|
|
|
4285
4285
|
InfoSignComponent = __decorate([
|
|
4286
4286
|
core.Component({
|
|
4287
4287
|
selector: "s-info-sign-component",
|
|
4288
|
-
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]=\"
|
|
4288
|
+
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>",
|
|
4289
4289
|
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}"]
|
|
4290
4290
|
})
|
|
4291
4291
|
], InfoSignComponent);
|
|
@@ -4297,6 +4297,7 @@
|
|
|
4297
4297
|
this.templateRef = templateRef;
|
|
4298
4298
|
this.viewContainer = viewContainer;
|
|
4299
4299
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
4300
|
+
this.displayTime = 5000;
|
|
4300
4301
|
}
|
|
4301
4302
|
InfoSignDirective.prototype.ngOnInit = function () {
|
|
4302
4303
|
if (!this.componentRef && this.sInfoSign) {
|
|
@@ -4305,6 +4306,7 @@
|
|
|
4305
4306
|
this.componentRef = this.viewContainer.createComponent(componentFactory);
|
|
4306
4307
|
this.componentRef.instance.templateRef = this.templateRef;
|
|
4307
4308
|
this.componentRef.instance.tooltip = this.sInfoSign;
|
|
4309
|
+
this.componentRef.instance.displayTime = this.displayTime;
|
|
4308
4310
|
}
|
|
4309
4311
|
else if (this.componentRef && this.sInfoSign) {
|
|
4310
4312
|
this.componentRef.instance.tooltip = this.sInfoSign;
|
|
@@ -4327,6 +4329,9 @@
|
|
|
4327
4329
|
__decorate([
|
|
4328
4330
|
core.Input()
|
|
4329
4331
|
], InfoSignDirective.prototype, "sInfoSign", void 0);
|
|
4332
|
+
__decorate([
|
|
4333
|
+
core.Input('sInfoSignDisplayTime')
|
|
4334
|
+
], InfoSignDirective.prototype, "displayTime", void 0);
|
|
4330
4335
|
InfoSignDirective = __decorate([
|
|
4331
4336
|
core.Directive({
|
|
4332
4337
|
selector: "[sInfoSign]",
|
|
@@ -11618,6 +11623,7 @@
|
|
|
11618
11623
|
this.eRef = eRef;
|
|
11619
11624
|
this.footerButtonLabel = "Adicionar";
|
|
11620
11625
|
this.showFooterButton = true;
|
|
11626
|
+
this.disabled = false;
|
|
11621
11627
|
this.footerButtonClicked = new core.EventEmitter();
|
|
11622
11628
|
this.selected = new core.EventEmitter();
|
|
11623
11629
|
this.open = false;
|
|
@@ -11652,6 +11658,11 @@
|
|
|
11652
11658
|
}
|
|
11653
11659
|
}
|
|
11654
11660
|
};
|
|
11661
|
+
WorkspaceSwitchComponent.prototype.ngOnInit = function () {
|
|
11662
|
+
if (this.disabled) {
|
|
11663
|
+
this.tabindex = -1;
|
|
11664
|
+
}
|
|
11665
|
+
};
|
|
11655
11666
|
WorkspaceSwitchComponent.prototype.validations = function () {
|
|
11656
11667
|
if (!this.workspaces.length) {
|
|
11657
11668
|
throw new Error("Workspaces list is empty.");
|
|
@@ -11683,6 +11694,9 @@
|
|
|
11683
11694
|
__decorate([
|
|
11684
11695
|
core.Input()
|
|
11685
11696
|
], WorkspaceSwitchComponent.prototype, "showFooterButton", void 0);
|
|
11697
|
+
__decorate([
|
|
11698
|
+
core.Input()
|
|
11699
|
+
], WorkspaceSwitchComponent.prototype, "disabled", void 0);
|
|
11686
11700
|
__decorate([
|
|
11687
11701
|
core.Output()
|
|
11688
11702
|
], WorkspaceSwitchComponent.prototype, "footerButtonClicked", void 0);
|
|
@@ -11701,8 +11715,8 @@
|
|
|
11701
11715
|
WorkspaceSwitchComponent = __decorate([
|
|
11702
11716
|
core.Component({
|
|
11703
11717
|
selector: "s-workspace-switch",
|
|
11704
|
-
template: "<div
|
|
11705
|
-
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}"]
|
|
11718
|
+
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>",
|
|
11719
|
+
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}"]
|
|
11706
11720
|
})
|
|
11707
11721
|
], WorkspaceSwitchComponent);
|
|
11708
11722
|
return WorkspaceSwitchComponent;
|