@seniorsistemas/angular-components 14.16.28 → 14.16.30
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 +13 -3
- 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/button/button-animation-type.d.ts +3 -0
- package/components/button/button.component.d.ts +3 -1
- package/esm2015/components/button/button-animation-type.js +5 -0
- package/esm2015/components/button/button.component.js +10 -4
- package/esm5/components/button/button-animation-type.js +5 -0
- package/esm5/components/button/button.component.js +10 -4
- package/fesm2015/seniorsistemas-angular-components.js +13 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +13 -3
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -342,6 +342,11 @@
|
|
|
342
342
|
ButtonSize["Small"] = "small";
|
|
343
343
|
})(exports.ButtonSize || (exports.ButtonSize = {}));
|
|
344
344
|
|
|
345
|
+
var EnumButtonAnimation;
|
|
346
|
+
(function (EnumButtonAnimation) {
|
|
347
|
+
EnumButtonAnimation["rotate"] = "rotate";
|
|
348
|
+
})(EnumButtonAnimation || (EnumButtonAnimation = {}));
|
|
349
|
+
|
|
345
350
|
var ButtonComponent = /** @class */ (function () {
|
|
346
351
|
function ButtonComponent() {
|
|
347
352
|
this.minWidth = "40px";
|
|
@@ -355,7 +360,6 @@
|
|
|
355
360
|
this.model = [];
|
|
356
361
|
this.size = exports.ButtonSize.Default;
|
|
357
362
|
this.onClick = new core.EventEmitter();
|
|
358
|
-
this.isSlideButton = false;
|
|
359
363
|
}
|
|
360
364
|
ButtonComponent_1 = ButtonComponent;
|
|
361
365
|
ButtonComponent.prototype.ngOnInit = function () {
|
|
@@ -385,6 +389,9 @@
|
|
|
385
389
|
ButtonComponent.prototype.updateTooltipZIndex = function () {
|
|
386
390
|
this.tooltipZIndex = this.baseZIndex + ++dom.DomHandler.zindex;
|
|
387
391
|
};
|
|
392
|
+
ButtonComponent.prototype.isRotateAnimation = function () {
|
|
393
|
+
return this.animation === EnumButtonAnimation.rotate;
|
|
394
|
+
};
|
|
388
395
|
var ButtonComponent_1;
|
|
389
396
|
ButtonComponent.nextId = 0;
|
|
390
397
|
__decorate([
|
|
@@ -435,6 +442,9 @@
|
|
|
435
442
|
__decorate([
|
|
436
443
|
core.Input()
|
|
437
444
|
], ButtonComponent.prototype, "slide", void 0);
|
|
445
|
+
__decorate([
|
|
446
|
+
core.Input()
|
|
447
|
+
], ButtonComponent.prototype, "animation", void 0);
|
|
438
448
|
__decorate([
|
|
439
449
|
core.Output()
|
|
440
450
|
], ButtonComponent.prototype, "onClick", void 0);
|
|
@@ -444,8 +454,8 @@
|
|
|
444
454
|
ButtonComponent = ButtonComponent_1 = __decorate([
|
|
445
455
|
core.Component({
|
|
446
456
|
selector: "s-button",
|
|
447
|
-
template: "<p-tieredMenu [id]=\"id + '-menu'\" [popup]=\"true\" appendTo=\"body\" [baseZIndex]=\"baseZIndex\"></p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\"\n>\n <span *ngIf=\"iconClass\" [class]=\"iconClass\" [ngClass]=\"{ 's-button-icon': true }\" aria-hidden=\"true\"></span>\n <span *ngIf=\"label\" class=\"s-button-text\">{{ label }}</span>\n <ng-content></ng-content>\n\n <span *ngIf=\"rightIconClass\" [class]=\"rightIconClass\" [ngClass]=\"{ 's-button-right-icon': true }\" aria-hidden=\"true\"></span>\n <span *ngIf=\"caret && (model && model.length)\" class=\"fa fa-fw fa-caret-down s-button-menu-icon\" aria-hidden=\"true\"></span>\n\n\n</button>\n",
|
|
448
|
-
styles: ["button{-ms-flex-align:center;align-items:center;border-radius:4px;border:1px solid;cursor:pointer;font-family:\"Open Sans\",sans-serif;font-size:14px;height:34px;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;text-decoration:none;text-transform:none;vertical-align:bottom;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button:disabled,button:disabled *{cursor:text!important}button.s-button-auxiliary{border-radius:20px}button.s-button-size-small{padding:0 20px;height:25px}button.s-button-with-icon.s-button-multiple,button.s-button-with-text{min-width:80px}button.s-button-with-icon.s-button-with-text.s-button-multiple{min-width:100px}button .s-button-icon
|
|
457
|
+
template: "<p-tieredMenu [id]=\"id + '-menu'\" [popup]=\"true\" appendTo=\"body\" [baseZIndex]=\"baseZIndex\"></p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton(),\n 's-button--rotate-animation': isRotateAnimation()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\"\n>\n <span *ngIf=\"iconClass\" [class]=\"iconClass\" [ngClass]=\"{ 's-button-icon': true }\" aria-hidden=\"true\"></span>\n <span *ngIf=\"label\" class=\"s-button-text\">{{ label }}</span>\n <ng-content></ng-content>\n\n <span *ngIf=\"rightIconClass\" [class]=\"rightIconClass\" [ngClass]=\"{ 's-button-right-icon': true }\" aria-hidden=\"true\"></span>\n <span *ngIf=\"caret && (model && model.length)\" class=\"fa fa-fw fa-caret-down s-button-menu-icon\" aria-hidden=\"true\"></span>\n\n\n</button>\n",
|
|
458
|
+
styles: ["button{-ms-flex-align:center;align-items:center;border-radius:4px;border:1px solid;cursor:pointer;font-family:\"Open Sans\",sans-serif;font-size:14px;height:34px;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;text-decoration:none;text-transform:none;vertical-align:bottom;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button:disabled,button:disabled *{cursor:text!important}button.s-button-auxiliary{border-radius:20px}button.s-button-size-small{padding:0 20px;height:25px}button.s-button-with-icon.s-button-multiple,button.s-button-with-text{min-width:80px}button.s-button-with-icon.s-button-with-text.s-button-multiple{min-width:100px}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button.s-button-with-icon.s-button-multiple:not(.s-button-with-text) .s-button-icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}button.s-button-multiple .s-button-text{display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left;-ms-flex-align:left;align-items:left}button.s-button-with-icon .s-button-text{display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right;-ms-flex-align:right;align-items:right}.s-button-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin:0 10px}.s-button-menu-icon{right:10px;transition:transform .2s ease-out}.s-button-active .s-button-menu-icon{transform:rotateX(180deg)}button,button.s-button-priority-primary{background-color:#428bca;border-color:#428bca}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button .s-button-text,button.s-button-priority-primary .s-button-icon,button.s-button-priority-primary .s-button-menu-icon,button.s-button-priority-primary .s-button-right-icon,button.s-button-priority-primary .s-button-text{color:#fff}button.s-button-priority-primary:hover,button:hover{background-color:#2a6496}button.s-button-priority-primary:focus,button:focus{background-color:#2a6496;border-color:#22dce6}button.s-button-active:not(:disabled),button.s-button-priority-primary.s-button-active:not(:disabled),button.s-button-priority-primary:active:not(:disabled),button:active:not(:disabled){background-color:#245682;border-color:#245682}button.s-button-priority-secondary{background-color:#7892a1;border-color:#7892a1}button.s-button-priority-secondary .s-button-icon,button.s-button-priority-secondary .s-button-menu-icon,button.s-button-priority-secondary .s-button-right-icon,button.s-button-priority-secondary .s-button-text{color:#fff}button.s-button-priority-secondary:hover{background-color:#546b79}button.s-button-priority-secondary:focus{background-color:#546b79;border-color:#22dce6}button.s-button-priority-secondary.s-button-active:not(:disabled),button.s-button-priority-secondary:active:not(:disabled){background-color:#495e6a;border-color:#495e6a}button.s-button-priority-default{background-color:#fff;border-color:#ccc}button.s-button-priority-default .s-button-icon,button.s-button-priority-default .s-button-menu-icon,button.s-button-priority-default .s-button-right-icon,button.s-button-priority-default .s-button-text{color:#333}button.s-button-priority-default:hover{background-color:#d9d9d9}button.s-button-priority-default:focus{background-color:#d9d9d9;border-color:#22dce6}button.s-button-priority-default.s-button-active:not(:disabled),button.s-button-priority-default:active:not(:disabled){background-color:#ccc;border-color:#ccc}button.s-button-priority-link{background-color:transparent;border-color:transparent}button.s-button-priority-link .s-button-icon,button.s-button-priority-link .s-button-menu-icon,button.s-button-priority-link .s-button-right-icon,button.s-button-priority-link .s-button-text{color:#428bca}button.s-button-priority-link:hover{background-color:transparent}button.s-button-priority-link:hover .s-button-icon,button.s-button-priority-link:hover .s-button-menu-icon,button.s-button-priority-link:hover .s-button-right-icon,button.s-button-priority-link:hover .s-button-text{color:#2a6496}button.s-button-priority-link:focus{border-color:#22dce6;background-color:transparent}button.s-button-priority-link:focus .s-button-icon,button.s-button-priority-link:focus .s-button-menu-icon,button.s-button-priority-link:focus .s-button-right-icon,button.s-button-priority-link:focus .s-button-text{color:#2a6496}button.s-button-priority-link.s-button-active:not(:disabled),button.s-button-priority-link:active:not(:disabled){background-color:transparent;border-color:transparent}button.s-button-priority-link.s-button-active:not(:disabled) .s-button-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-right-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-text,button.s-button-priority-link:active:not(:disabled) .s-button-icon,button.s-button-priority-link:active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link:active:not(:disabled) .s-button-right-icon,button.s-button-priority-link:active:not(:disabled) .s-button-text{color:#245682}.s-button--slide.s-button-with-icon.s-button-multiple,.s-button--slide.s-button-with-text{min-width:40px}.s-button--slide .s-button-text{position:absolute;opacity:0}.s-button--slide:hover .s-button-text{transition:1s;position:relative;opacity:1}.s-button--slide:hover.s-button--rotate-animation .s-button-icon,.s-button--slide:hover.s-button--rotate-animation .s-button-right-icon{transition:1.5s;transform:rotate(360deg)}"]
|
|
449
459
|
})
|
|
450
460
|
], ButtonComponent);
|
|
451
461
|
return ButtonComponent;
|