UNPKG

angular-phonetic

Version:

A simple component to easily render ruby text.

2 lines 1.17 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("angular-phonetic",["exports","@angular/core"],e):e((t=t||self)["angular-phonetic"]={},t.ng.core)}(this,function(t,e){"use strict";var r=function(){function t(){this.brackets="()"}return t.prototype.ngOnInit=function(){var t=this.parseBrackets();this.left=t[0],this.right=t[1]},t.prototype.parseBrackets=function(){switch(this.brackets.length){case 0:return["",""];case 1:return[this.brackets,this.brackets];default:return[this.brackets[0],this.brackets[1]]}},t.decorators=[{type:e.Component,args:[{selector:"ng-phonetic",template:"\n <ruby>\n <ng-content></ng-content> <rp>{{left}}</rp> <rt>{{phonetic}}</rt><rp>{{right}}</rp>\n </ruby>\n "}]}],t.propDecorators={phonetic:[{type:e.Input}],brackets:[{type:e.Input}]},t}();var n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[r],imports:[],exports:[r]}]}],t}();t.AngularPhoneticComponent=r,t.AngularPhoneticModule=n,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=angular-phonetic.umd.min.js.map