Skip to content

Commit 7ee6bcc

Browse files
committed
Adds build files.
1 parent 57da79d commit 7ee6bcc

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

public/cui.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46070,6 +46070,11 @@ CUI.Input = (function(superClass) {
4607046070
},
4607146071
appearance: {
4607246072
check: ["code"]
46073+
},
46074+
controlElement: {
46075+
check: function(v) {
46076+
return v instanceof CUI.DOMElement;
46077+
}
4607346078
}
4607446079
});
4607546080
};
@@ -46932,6 +46937,9 @@ CUI.Input = (function(superClass) {
4693246937
var j, k, len1, ref;
4693346938
Input.__super__.render.call(this);
4693446939
this.replace(this.__createElement(), this.getTemplateKeyForRender());
46940+
if (this._controlElement) {
46941+
this.append(this._controlElement, this.getTemplateKeyForRender());
46942+
}
4693546943
ref = ["empty", "invalid", "valid"];
4693646944
for (j = 0, len1 = ref.length; j < len1; j++) {
4693746945
k = ref[j];
@@ -58730,6 +58738,36 @@ CUI.Password = (function(superClass) {
5873058738
return Password.__super__.constructor.apply(this, arguments);
5873158739
}
5873258740

58741+
Password.prototype.initOpts = function() {
58742+
Password.__super__.initOpts.call(this);
58743+
return this.addOpts({
58744+
toggleButton: {
58745+
"default": false,
58746+
check: Boolean
58747+
}
58748+
});
58749+
};
58750+
58751+
Password.prototype.readOpts = function() {
58752+
Password.__super__.readOpts.call(this);
58753+
if (this._toggleButton) {
58754+
return this._controlElement = new CUI.Button({
58755+
icon: "fa-eye",
58756+
onClick: (function(_this) {
58757+
return function(ev, btn) {
58758+
if (CUI.dom.getAttribute(_this.__input, "type") === "password") {
58759+
btn.setIcon("fa-eye-slash");
58760+
return _this.showPassword();
58761+
} else {
58762+
btn.setIcon("fa-eye");
58763+
return _this.hidePassword();
58764+
}
58765+
};
58766+
})(this)
58767+
});
58768+
}
58769+
};
58770+
5873358771
Password.prototype.__createElement = function() {
5873458772
return Password.__super__.__createElement.call(this, "password");
5873558773
};

public/cui.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)