UNPKG

@aurigma/ui-framework

Version:

A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.

1 lines 1.5 kB
(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[12],{886:function(t,n){t.exports='<style>\n :host {\n width: 100%;\n height: 100%;\n }\n</style>\n<au-input-text id="input-text" type="text"></au-input-text>'},943:function(t,n,e){e.r(n),e.d(n,"AuOptionText",function(){return c}),e.d(n,"option",function(){return c});var i,n=e(0),o=e(448),o=(i=o.a,Object(n.d)(u,i),u.prototype._onOptionChange=function(){"function"==typeof this.changeCallback&&this.changeCallback()},u);function u(){return null!==i&&i.apply(this,arguments)||this}var a,p=e(886),e=e(2),c=(a=o,Object(n.d)(l,a),l.prototype.init=function(t){a.prototype.init.call(this,t),this._definition=t;var n=this._getInputElement();n&&(n.configuration=t)},l.prototype.connectedCallback=function(){var n=this,t=(a.prototype.connectedCallback.call(this),this._getInputElement());t.type="text",t.configuration=this._definition,t.language=this.language,t.addEventListener("value",function(t){n.value=t.detail.value,n._onOptionChange()})},l.prototype._langChange=function(t){this._getInputElement().language=t},l.prototype._getInputElement=function(){return this.$?this.$["input-text"]:null},Object(n.c)([Object(e.b)("language"),Object(n.g)("design:type",Function),Object(n.g)("design:paramtypes",[String]),Object(n.g)("design:returntype",void 0)],l.prototype,"_langChange",null),Object(n.c)([Object(e.a)("au-option-text",p)],l));function l(){return null!==a&&a.apply(this,arguments)||this}}}]);