UNPKG

@aurigma/ui-framework

Version:

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

1 lines 1.54 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){"use strict";e.r(n),e.d(n,"AuOptionText",(function(){return p})),e.d(n,"option",(function(){return p}));var i=e(0),o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(n,t),n.prototype._onOptionChange=function(){"function"==typeof this.changeCallback&&this.changeCallback()},n}(e(448).a),u=e(886),a=e(2),p=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(n,t),n.prototype.init=function(n){t.prototype.init.call(this,n),this._definition=n;var e=this._getInputElement();e&&(e.configuration=n)},n.prototype.connectedCallback=function(){var n=this;t.prototype.connectedCallback.call(this);var e=this._getInputElement();e.type="text",e.configuration=this._definition,e.language=this.language,e.addEventListener("value",(function(t){n.value=t.detail.value,n._onOptionChange()}))},n.prototype._langChange=function(t){this._getInputElement().language=t},n.prototype._getInputElement=function(){return this.$?this.$["input-text"]:null},Object(i.c)([Object(a.b)("language"),Object(i.g)("design:type",Function),Object(i.g)("design:paramtypes",[String]),Object(i.g)("design:returntype",void 0)],n.prototype,"_langChange",null),Object(i.c)([Object(a.a)("au-option-text",u)],n)}(o)}}]);