@fluxhub/fluxhub-lib 1.0.258 → 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
|
@@ -34,7 +34,7 @@ import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteM
|
|
|
34
34
|
import { __read, __assign, __extends } from 'tslib';
|
|
35
35
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
36
36
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
37
|
-
import { Injectable, Component,
|
|
37
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
38
38
|
import { Http } from '@angular/http';
|
|
39
39
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
40
40
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -10828,6 +10828,22 @@ var FHUserFieldComponent = /** @class */ (function () {
|
|
|
10828
10828
|
}
|
|
10829
10829
|
return s_nc;
|
|
10830
10830
|
};
|
|
10831
|
+
/**
|
|
10832
|
+
* @return {?}
|
|
10833
|
+
*/
|
|
10834
|
+
FHUserFieldComponent.prototype.getUsersEmail = /**
|
|
10835
|
+
* @return {?}
|
|
10836
|
+
*/
|
|
10837
|
+
function () {
|
|
10838
|
+
/** @type {?} */
|
|
10839
|
+
var s_nc = '';
|
|
10840
|
+
for (var i = 0; i < this.selectedUser.length; i++) {
|
|
10841
|
+
if (s_nc != '')
|
|
10842
|
+
s_nc = s_nc + ',';
|
|
10843
|
+
s_nc = s_nc + ("" + this.selectedUser[i].email);
|
|
10844
|
+
}
|
|
10845
|
+
return s_nc;
|
|
10846
|
+
};
|
|
10831
10847
|
/**
|
|
10832
10848
|
* @return {?}
|
|
10833
10849
|
*/
|
|
@@ -10876,6 +10892,54 @@ var FHUserFieldComponent = /** @class */ (function () {
|
|
|
10876
10892
|
this.userName = this.getUsersNc();
|
|
10877
10893
|
}
|
|
10878
10894
|
};
|
|
10895
|
+
/**
|
|
10896
|
+
* @param {?} emails
|
|
10897
|
+
* @return {?}
|
|
10898
|
+
*/
|
|
10899
|
+
FHUserFieldComponent.prototype.setByEmail = /**
|
|
10900
|
+
* @param {?} emails
|
|
10901
|
+
* @return {?}
|
|
10902
|
+
*/
|
|
10903
|
+
function (emails) {
|
|
10904
|
+
var _this = this;
|
|
10905
|
+
if (!emails)
|
|
10906
|
+
return;
|
|
10907
|
+
/** @type {?} */
|
|
10908
|
+
var a = emails.split(',');
|
|
10909
|
+
/** @type {?} */
|
|
10910
|
+
var s_nc = '';
|
|
10911
|
+
for (var i = 0; i < a.length; i++) {
|
|
10912
|
+
if (s_nc != '')
|
|
10913
|
+
s_nc = s_nc + ',';
|
|
10914
|
+
s_nc = s_nc + '\'' + a[i] + '\'';
|
|
10915
|
+
}
|
|
10916
|
+
/** @type {?} */
|
|
10917
|
+
var param = {
|
|
10918
|
+
sql: 'SELECT_USERS_INFOS_BY_EMAIL_NOREP',
|
|
10919
|
+
types: ['string'],
|
|
10920
|
+
values: [s_nc],
|
|
10921
|
+
names: [],
|
|
10922
|
+
};
|
|
10923
|
+
this.dataservice.doQuery(param)
|
|
10924
|
+
.subscribe((/**
|
|
10925
|
+
* @param {?} data
|
|
10926
|
+
* @return {?}
|
|
10927
|
+
*/
|
|
10928
|
+
function (data) {
|
|
10929
|
+
/** @type {?} */
|
|
10930
|
+
var result = data.result_data;
|
|
10931
|
+
if (result != null) {
|
|
10932
|
+
_this.selectedUser = result;
|
|
10933
|
+
_this.writeValue('noop');
|
|
10934
|
+
_this.select.emit(_this.selectedUser);
|
|
10935
|
+
console.log(_this.selectedUser);
|
|
10936
|
+
_this.userName = _this.getUsersNc();
|
|
10937
|
+
console.log(_this.userName);
|
|
10938
|
+
}
|
|
10939
|
+
else
|
|
10940
|
+
_this.clear();
|
|
10941
|
+
}));
|
|
10942
|
+
};
|
|
10879
10943
|
/**
|
|
10880
10944
|
* @param {?} username
|
|
10881
10945
|
* @return {?}
|