"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ui/lib/core/addon/components/masked-input.js" between
vault-1.8.1.tar.gz and vault-1.8.2.tar.gz

About: vault is a tool for secrets management, encryption as a service, and privileged access management.

masked-input.js  (vault-1.8.1):masked-input.js  (vault-1.8.2)
skipping to change at line 14 skipping to change at line 14
/** /**
* @module MaskedInput * @module MaskedInput
* `MaskedInput` components are textarea inputs where the input is hidden. They are used to enter sensitive information like passwords. * `MaskedInput` components are textarea inputs where the input is hidden. They are used to enter sensitive information like passwords.
* *
* @example * @example
* <MaskedInput * <MaskedInput
* @value={{attr.options.defaultValue}} * @value={{attr.options.defaultValue}}
* @allowCopy={{true}} * @allowCopy={{true}}
* @onChange={{action "someAction"}} * @onChange={{action "someAction"}}
* @onKeyUp={{action "onKeyUp"}}
* /> * />
* *
* @param [value] {String} - The value to display in the input. * @param [value] {String} - The value to display in the input.
* @param [allowCopy=null] {bool} - Whether or not the input should render with a copy button. * @param [allowCopy=null] {bool} - Whether or not the input should render with a copy button.
* @param [displayOnly=false] {bool} - Whether or not to display the value as a display only `pre` element or as an input. * @param [displayOnly=false] {bool} - Whether or not to display the value as a display only `pre` element or as an input.
* @param [onChange=Function.prototype] {Function|action} - A function to call w hen the value of the input changes. * @param [onChange=Function.prototype] {Function|action} - A function to call w hen the value of the input changes.
* @param [onKeyUp=Function.prototype] {Function|action} - A function to call wh enever on the dom event onkeyup. Generally passed down from higher level parent.
* @param [isCertificate=false] {bool} - If certificate display the label and ic ons differently. * @param [isCertificate=false] {bool} - If certificate display the label and ic ons differently.
* *
*/ */
export default Component.extend({ export default Component.extend({
layout, layout,
value: null, value: null,
showValue: false, showValue: false,
didInsertElement() { didInsertElement() {
this._super(...arguments); this._super(...arguments);
autosize(this.element.querySelector('textarea')); autosize(this.element.querySelector('textarea'));
skipping to change at line 41 skipping to change at line 43
didUpdate() { didUpdate() {
this._super(...arguments); this._super(...arguments);
autosize.update(this.element.querySelector('textarea')); autosize.update(this.element.querySelector('textarea'));
}, },
willDestroyElement() { willDestroyElement() {
this._super(...arguments); this._super(...arguments);
autosize.destroy(this.element.querySelector('textarea')); autosize.destroy(this.element.querySelector('textarea'));
}, },
displayOnly: false, displayOnly: false,
onKeyDown() {}, onKeyDown() {},
onKeyUp() {},
onChange() {}, onChange() {},
actions: { actions: {
toggleMask() { toggleMask() {
this.toggleProperty('showValue'); this.toggleProperty('showValue');
}, },
updateValue(e) { updateValue(e) {
let value = e.target.value; let value = e.target.value;
this.set('value', value); this.set('value', value);
this.onChange(value); this.onChange(value);
}, },
handleKeyUp(name, value) {
this.onKeyUp(name, value);
},
}, },
}); });
 End of changes. 4 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)