@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
|
@@ -169,6 +169,11 @@ var ButtonSize;
|
|
|
169
169
|
ButtonSize["Small"] = "small";
|
|
170
170
|
})(ButtonSize || (ButtonSize = {}));
|
|
171
171
|
|
|
172
|
+
var EnumButtonAnimation;
|
|
173
|
+
(function (EnumButtonAnimation) {
|
|
174
|
+
EnumButtonAnimation["rotate"] = "rotate";
|
|
175
|
+
})(EnumButtonAnimation || (EnumButtonAnimation = {}));
|
|
176
|
+
|
|
172
177
|
var ButtonComponent = /** @class */ (function () {
|
|
173
178
|
function ButtonComponent() {
|
|
174
179
|
this.minWidth = "40px";
|
|
@@ -182,7 +187,6 @@ var ButtonComponent = /** @class */ (function () {
|
|
|
182
187
|
this.model = [];
|
|
183
188
|
this.size = ButtonSize.Default;
|
|
184
189
|
this.onClick = new EventEmitter();
|
|
185
|
-
this.isSlideButton = false;
|
|
186
190
|
}
|
|
187
191
|
ButtonComponent_1 = ButtonComponent;
|
|
188
192
|
ButtonComponent.prototype.ngOnInit = function () {
|
|
@@ -212,6 +216,9 @@ var ButtonComponent = /** @class */ (function () {
|
|
|
212
216
|
ButtonComponent.prototype.updateTooltipZIndex = function () {
|
|
213
217
|
this.tooltipZIndex = this.baseZIndex + ++DomHandler.zindex;
|
|
214
218
|
};
|
|
219
|
+
ButtonComponent.prototype.isRotateAnimation = function () {
|
|
220
|
+
return this.animation === EnumButtonAnimation.rotate;
|
|
221
|
+
};
|
|
215
222
|
var ButtonComponent_1;
|
|
216
223
|
ButtonComponent.nextId = 0;
|
|
217
224
|
__decorate([
|
|
@@ -262,6 +269,9 @@ var ButtonComponent = /** @class */ (function () {
|
|
|
262
269
|
__decorate([
|
|
263
270
|
Input()
|
|
264
271
|
], ButtonComponent.prototype, "slide", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
Input()
|
|
274
|
+
], ButtonComponent.prototype, "animation", void 0);
|
|
265
275
|
__decorate([
|
|
266
276
|
Output()
|
|
267
277
|
], ButtonComponent.prototype, "onClick", void 0);
|
|
@@ -271,8 +281,8 @@ var ButtonComponent = /** @class */ (function () {
|
|
|
271
281
|
ButtonComponent = ButtonComponent_1 = __decorate([
|
|
272
282
|
Component({
|
|
273
283
|
selector: "s-button",
|
|
274
|
-
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",
|
|
275
|
-
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
|
|
284
|
+
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",
|
|
285
|
+
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)}"]
|
|
276
286
|
})
|
|
277
287
|
], ButtonComponent);
|
|
278
288
|
return ButtonComponent;
|