@seniorsistemas/angular-components 16.13.0 → 16.13.1
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 -5
- 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/esm2015/components/tile/tile.component.js +5 -4
- package/esm2015/components/tile/tile.module.js +11 -4
- package/esm5/components/tile/tile.component.js +5 -4
- package/esm5/components/tile/tile.module.js +11 -4
- package/fesm2015/seniorsistemas-angular-components.js +13 -5
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +13 -5
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -10482,8 +10482,9 @@
|
|
|
10482
10482
|
configurable: true
|
|
10483
10483
|
});
|
|
10484
10484
|
TileComponent.prototype.onKeyDown = function (event) {
|
|
10485
|
-
if (!this.disabled && [13, 32].includes(event.keyCode))
|
|
10485
|
+
if (!this.disabled && [13, 32].includes(event.keyCode)) {
|
|
10486
10486
|
this.onClick.emit();
|
|
10487
|
+
}
|
|
10487
10488
|
};
|
|
10488
10489
|
var TileComponent_1;
|
|
10489
10490
|
TileComponent.nextId = 0;
|
|
@@ -10520,8 +10521,8 @@
|
|
|
10520
10521
|
TileComponent = TileComponent_1 = __decorate([
|
|
10521
10522
|
core.Component({
|
|
10522
10523
|
selector: "s-tile",
|
|
10523
|
-
template: "<div
|
|
10524
|
-
styles: ["
|
|
10524
|
+
template: "<div\n [id]=\"id\"\n class=\"tile\"\n [attr.tabindex]=\"disabled ? undefined : tabIndex\"\n [attr.aria-label]=\"label\"\n [attr.aria-disabled]=\"disabled\"\n role=\"button\"\n [ngClass]=\"{'tile--disabled': disabled}\"\n (click)=\"!disabled && onClick.emit($event)\">\n <div\n *ngIf=\"imageSource || iconClass\"\n class=\"thumbnail\">\n <s-thumbnail\n *ngIf=\"imageSource\" \n [id]=\"id + '-thumbnail'\"\n [imageSource]=\"imageSource\"\n [imageAlt]=\"imageAlt || label\"\n size=\"small\"\n [isTile]=\"true\">\n </s-thumbnail>\n <span\n *ngIf=\"!imageSource && iconClass\" \n [id]=\"id + '-icon'\"\n [class]=\"'icon ' + iconClass\"\n aria-hidden=\"true\">\n </span>\n </div>\n <div\n *ngIf=\"!iconClass && !imageSource\"\n class=\"first-letter-container\">\n <div class=\"first-letter\">\n <span>{{ initialLetter }}</span>\n </div>\n </div>\n\n <div class=\"info\">\n <span\n [id]=\"id + '-title'\"\n class=\"title\"\n [sTooltip]=\"label\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n {{ label }}\n </span>\n <span\n [id]=\"id + '-description'\"\n class=\"description\"\n [sTooltip]=\"description\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n {{ description }}\n </span>\n </div>\n</div>\n",
|
|
10525
|
+
styles: [".tile{-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #c1c1cc;cursor:pointer;display:-ms-flexbox;display:flex;min-height:80px;overflow:hidden;padding:15px;position:relative;transition:background-color .2s ease-out,border-color .2s ease-out}.tile--disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}.tile--disabled,.tile--disabled *{cursor:text!important}.tile:focus:not(.tile--disabled),.tile:hover:not(.tile--disabled){background-color:#eeebf2;outline:0}.tile .thumbnail{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:15px}.tile .thumbnail .icon{color:#428bca;font-size:2.5rem}.tile .info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden}.tile .info .description,.tile .info .title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile .info .title{color:#428bca;font-size:1.25rem}.tile .info .description{color:#6e7280;font-size:.875rem}.tile .first-letter-container{float:left;margin-right:10px;position:relative;text-align:center}.tile .first-letter-container .first-letter{background-color:#428bca;border-radius:50%;color:#fff;font-size:1.375rem;height:40px;line-height:1.8em;margin:0 auto 5px;width:40px}"]
|
|
10525
10526
|
})
|
|
10526
10527
|
], TileComponent);
|
|
10527
10528
|
return TileComponent;
|
|
@@ -10532,9 +10533,16 @@
|
|
|
10532
10533
|
}
|
|
10533
10534
|
TileModule = __decorate([
|
|
10534
10535
|
core.NgModule({
|
|
10535
|
-
imports: [
|
|
10536
|
+
imports: [
|
|
10537
|
+
common.CommonModule,
|
|
10538
|
+
TooltipModule,
|
|
10539
|
+
ThumbnailModule,
|
|
10540
|
+
],
|
|
10536
10541
|
declarations: [TileComponent],
|
|
10537
|
-
exports: [
|
|
10542
|
+
exports: [
|
|
10543
|
+
TileComponent,
|
|
10544
|
+
ThumbnailModule,
|
|
10545
|
+
],
|
|
10538
10546
|
})
|
|
10539
10547
|
], TileModule);
|
|
10540
10548
|
return TileModule;
|