@taiga-ui/kit
Version:
Taiga UI Angular main components kit
124 lines (119 loc) • 3.99 kB
JavaScript
import { __decorate } from 'tslib';
import { Input, HostBinding, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
import { tuiDefaultProp } from '@taiga-ui/cdk';
import { CommonModule } from '@angular/common';
var TuiIslandComponent = /** @class */ (function () {
function TuiIslandComponent() {
this.size = 'm';
this.textAlign = "left" /* Left */;
this.hoverable = false;
this.transparent = false;
}
Object.defineProperty(TuiIslandComponent.prototype, "sizeS", {
get: function () {
return this.size === 's';
},
enumerable: true,
configurable: true
});
Object.defineProperty(TuiIslandComponent.prototype, "sizeM", {
get: function () {
return this.size === 'm';
},
enumerable: true,
configurable: true
});
Object.defineProperty(TuiIslandComponent.prototype, "sizeL", {
get: function () {
return this.size === 'l';
},
enumerable: true,
configurable: true
});
Object.defineProperty(TuiIslandComponent.prototype, "textAlignLeft", {
get: function () {
return this.textAlign === 'left';
},
enumerable: true,
configurable: true
});
Object.defineProperty(TuiIslandComponent.prototype, "textAlignCenter", {
get: function () {
return this.textAlign === 'center';
},
enumerable: true,
configurable: true
});
Object.defineProperty(TuiIslandComponent.prototype, "textAlignRight", {
get: function () {
return this.textAlign === 'right';
},
enumerable: true,
configurable: true
});
__decorate([
Input(),
tuiDefaultProp()
], TuiIslandComponent.prototype, "size", void 0);
__decorate([
Input(),
tuiDefaultProp()
], TuiIslandComponent.prototype, "textAlign", void 0);
__decorate([
Input(),
HostBinding('class.tui-island_hoverable'),
tuiDefaultProp()
], TuiIslandComponent.prototype, "hoverable", void 0);
__decorate([
Input(),
HostBinding('class.tui-island_transparent'),
tuiDefaultProp()
], TuiIslandComponent.prototype, "transparent", void 0);
__decorate([
HostBinding('class.tui-island_size_s')
], TuiIslandComponent.prototype, "sizeS", null);
__decorate([
HostBinding('class.tui-island_size_m')
], TuiIslandComponent.prototype, "sizeM", null);
__decorate([
HostBinding('class.tui-island_size_l')
], TuiIslandComponent.prototype, "sizeL", null);
__decorate([
HostBinding('class.tui-island_text-align_left')
], TuiIslandComponent.prototype, "textAlignLeft", null);
__decorate([
HostBinding('class.tui-island_text-align_center')
], TuiIslandComponent.prototype, "textAlignCenter", null);
__decorate([
HostBinding('class.tui-island_text-align_right')
], TuiIslandComponent.prototype, "textAlignRight", null);
TuiIslandComponent = __decorate([
Component({
selector: 'tui-island, a[tuiIsland]',
changeDetection: ChangeDetectionStrategy.OnPush,
template: "<ng-content></ng-content>\n",
host: {
class: 'tui-island',
},
styles: [":host{display:block}"]
})
], TuiIslandComponent);
return TuiIslandComponent;
}());
var TuiIslandModule = /** @class */ (function () {
function TuiIslandModule() {
}
TuiIslandModule = __decorate([
NgModule({
imports: [CommonModule],
declarations: [TuiIslandComponent],
exports: [TuiIslandComponent],
})
], TuiIslandModule);
return TuiIslandModule;
}());
/**
* Generated bundle index. Do not edit.
*/
export { TuiIslandComponent, TuiIslandModule };
//# sourceMappingURL=taiga-ui-kit-components-island.js.map