@fluxhub/fluxhub-lib 1.0.259 → 1.0.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/fluxhub-fluxhub-lib.umd.js +63 -0
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/FHUserFieldComponent.html +109 -0
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhuserfield.js +57 -1
- package/esm5/lib/controls/fhuserfield.js +65 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +57 -1
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +65 -1
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuserfield.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9659,6 +9659,22 @@
|
|
|
9659
9659
|
/**
|
|
9660
9660
|
* @return {?}
|
|
9661
9661
|
*/
|
|
9662
|
+
FHUserFieldComponent.prototype.getUsersEmail = /**
|
|
9663
|
+
* @return {?}
|
|
9664
|
+
*/
|
|
9665
|
+
function () {
|
|
9666
|
+
/** @type {?} */
|
|
9667
|
+
var s_nc = '';
|
|
9668
|
+
for (var i = 0; i < this.selectedUser.length; i++) {
|
|
9669
|
+
if (s_nc != '')
|
|
9670
|
+
s_nc = s_nc + ',';
|
|
9671
|
+
s_nc = s_nc + ("" + this.selectedUser[i].email);
|
|
9672
|
+
}
|
|
9673
|
+
return s_nc;
|
|
9674
|
+
};
|
|
9675
|
+
/**
|
|
9676
|
+
* @return {?}
|
|
9677
|
+
*/
|
|
9662
9678
|
FHUserFieldComponent.prototype.getUsersUsername = /**
|
|
9663
9679
|
* @return {?}
|
|
9664
9680
|
*/
|
|
@@ -9704,6 +9720,53 @@
|
|
|
9704
9720
|
this.userName = this.getUsersNc();
|
|
9705
9721
|
}
|
|
9706
9722
|
};
|
|
9723
|
+
/**
|
|
9724
|
+
* @param {?} emails
|
|
9725
|
+
* @return {?}
|
|
9726
|
+
*/
|
|
9727
|
+
FHUserFieldComponent.prototype.setByEmail = /**
|
|
9728
|
+
* @param {?} emails
|
|
9729
|
+
* @return {?}
|
|
9730
|
+
*/
|
|
9731
|
+
function (emails) {
|
|
9732
|
+
var _this = this;
|
|
9733
|
+
if (!emails)
|
|
9734
|
+
return;
|
|
9735
|
+
/** @type {?} */
|
|
9736
|
+
var a = emails.split(',');
|
|
9737
|
+
/** @type {?} */
|
|
9738
|
+
var s_nc = '';
|
|
9739
|
+
for (var i = 0; i < a.length; i++) {
|
|
9740
|
+
if (s_nc != '')
|
|
9741
|
+
s_nc = s_nc + ',';
|
|
9742
|
+
s_nc = s_nc + '\'' + a[i] + '\'';
|
|
9743
|
+
}
|
|
9744
|
+
/** @type {?} */
|
|
9745
|
+
var param = {
|
|
9746
|
+
sql: 'SELECT_USERS_INFOS_BY_EMAIL_NOREP',
|
|
9747
|
+
types: ['string'],
|
|
9748
|
+
values: [s_nc],
|
|
9749
|
+
names: [],
|
|
9750
|
+
};
|
|
9751
|
+
this.dataservice.doQuery(param)
|
|
9752
|
+
.subscribe(( /**
|
|
9753
|
+
* @param {?} data
|
|
9754
|
+
* @return {?}
|
|
9755
|
+
*/function (data) {
|
|
9756
|
+
/** @type {?} */
|
|
9757
|
+
var result = data.result_data;
|
|
9758
|
+
if (result != null) {
|
|
9759
|
+
_this.selectedUser = result;
|
|
9760
|
+
_this.writeValue('noop');
|
|
9761
|
+
_this.select.emit(_this.selectedUser);
|
|
9762
|
+
console.log(_this.selectedUser);
|
|
9763
|
+
_this.userName = _this.getUsersNc();
|
|
9764
|
+
console.log(_this.userName);
|
|
9765
|
+
}
|
|
9766
|
+
else
|
|
9767
|
+
_this.clear();
|
|
9768
|
+
}));
|
|
9769
|
+
};
|
|
9707
9770
|
/**
|
|
9708
9771
|
* @param {?} username
|
|
9709
9772
|
* @return {?}
|