Add translation for components and credentials

* Add typeahead feature of the Lookup component
This commit is contained in:
gconsidine
2017-06-29 17:33:19 -04:00
parent e8433c6301
commit 727568c80d
28 changed files with 335 additions and 117 deletions
@@ -34,14 +34,14 @@ function AtInputGroupController ($scope, $compile) {
};
vm.update = () => {
if (!vm.isValidSource()) {
return;
}
if (state._group) {
vm.clear();
}
if (!vm.isValidSource()) {
return;
}
state._value = source._value;
let inputs = state._get(source._value);
@@ -101,7 +101,8 @@ function AtInputGroupController ($scope, $compile) {
config._data = input.choices;
config._exp = 'index as choice for (index, choice) in state._data';
} else {
throw new Error('Unsupported input type: ' + input.type)
let preface = vm.strings.components.UNSUPPORTED_ERROR_PREFACE;
throw new Error(`${preface}: ${input.type}`)
}
return config;
@@ -158,6 +159,8 @@ function AtInputGroupController ($scope, $compile) {
vm.clear = () => {
form.deregisterInputGroup(state._group);
element.innerHTML = '';
state._group = undefined;
state._value = undefined;
};
}