info-library 2.10.34 → 2.10.37
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/info-library.umd.js +42 -7
- package/bundles/info-library.umd.js.map +1 -1
- package/bundles/info-library.umd.min.js +1 -1
- package/bundles/info-library.umd.min.js.map +1 -1
- package/controls/editor/editor.component.d.ts +2 -1
- package/esm2015/controls/autocomplete/autocomplete.component.js +20 -3
- package/esm2015/controls/editor/editor.component.js +11 -3
- package/esm2015/controls/multi-select/multi-select.component.js +5 -2
- package/esm2015/controls/select/select.component.js +5 -2
- package/esm2015/service/authentication.service.js +4 -3
- package/fesm2015/info-library.js +39 -8
- package/fesm2015/info-library.js.map +1 -1
- package/info-library.metadata.json +1 -1
- package/package.json +1 -1
- package/service/authentication.service.d.ts +1 -1
|
@@ -1633,13 +1633,15 @@
|
|
|
1633
1633
|
/**
|
|
1634
1634
|
* @param {?} usuario
|
|
1635
1635
|
* @param {?} senha
|
|
1636
|
+
* @param {?=} reCaptchaToken
|
|
1636
1637
|
* @return {?}
|
|
1637
1638
|
*/
|
|
1638
|
-
InfoAuthenticationService.prototype.login = function (usuario, senha) {
|
|
1639
|
+
InfoAuthenticationService.prototype.login = function (usuario, senha, reCaptchaToken) {
|
|
1639
1640
|
var _this = this;
|
|
1641
|
+
if (reCaptchaToken === void 0) { reCaptchaToken = null; }
|
|
1640
1642
|
this.removeSessao();
|
|
1641
1643
|
return this._http
|
|
1642
|
-
.post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha })
|
|
1644
|
+
.post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha, ReCaptchaToken: reCaptchaToken })
|
|
1643
1645
|
.pipe(operators.map(( /**
|
|
1644
1646
|
* @param {?} r
|
|
1645
1647
|
* @return {?}
|
|
@@ -2518,7 +2520,18 @@
|
|
|
2518
2520
|
*/function (/**
|
|
2519
2521
|
* @param {?} a
|
|
2520
2522
|
* @return {?}
|
|
2521
|
-
*/ a) {
|
|
2523
|
+
*/ a) {
|
|
2524
|
+
_this.data = a.data;
|
|
2525
|
+
_this.loading = false;
|
|
2526
|
+
if (_this.selectedValue && _this.onselecteditem != null)
|
|
2527
|
+
_this.onselecteditem.emit(_this.data == null ? null : _this.data.find(( /**
|
|
2528
|
+
* @param {?} r
|
|
2529
|
+
* @return {?}
|
|
2530
|
+
*/function (/**
|
|
2531
|
+
* @param {?} r
|
|
2532
|
+
* @return {?}
|
|
2533
|
+
*/ r) { return r.Id == _this.selectedValue; })));
|
|
2534
|
+
}));
|
|
2522
2535
|
this.control.valueChanges.subscribe(( /**
|
|
2523
2536
|
* @param {?} value
|
|
2524
2537
|
* @return {?}
|
|
@@ -2540,7 +2553,17 @@
|
|
|
2540
2553
|
*/function (/**
|
|
2541
2554
|
* @param {?} a
|
|
2542
2555
|
* @return {?}
|
|
2543
|
-
*/ a) {
|
|
2556
|
+
*/ a) {
|
|
2557
|
+
_this.data = _this.options = a.data;
|
|
2558
|
+
if (_this.selectedValue && _this.onselecteditem != null)
|
|
2559
|
+
_this.onselecteditem.emit(_this.data == null ? null : _this.data.find(( /**
|
|
2560
|
+
* @param {?} r
|
|
2561
|
+
* @return {?}
|
|
2562
|
+
*/function (/**
|
|
2563
|
+
* @param {?} r
|
|
2564
|
+
* @return {?}
|
|
2565
|
+
*/ r) { return r.Id == _this.selectedValue; })));
|
|
2566
|
+
}));
|
|
2544
2567
|
}
|
|
2545
2568
|
};
|
|
2546
2569
|
/**
|
|
@@ -5812,8 +5835,11 @@
|
|
|
5812
5835
|
* @param {?} r
|
|
5813
5836
|
* @return {?}
|
|
5814
5837
|
*/ r) {
|
|
5815
|
-
if (r.success)
|
|
5838
|
+
if (r.success) {
|
|
5816
5839
|
_this.data = r.data;
|
|
5840
|
+
if (_this.selectedValue)
|
|
5841
|
+
_this.onChangeValue();
|
|
5842
|
+
}
|
|
5817
5843
|
_this.loading = false;
|
|
5818
5844
|
}));
|
|
5819
5845
|
};
|
|
@@ -6142,6 +6168,9 @@
|
|
|
6142
6168
|
document.querySelector("#" + this.id + " .angular-editor-textarea").addEventListener('blur', ( /**
|
|
6143
6169
|
* @return {?}
|
|
6144
6170
|
*/function () { return _this.focused = false; }));
|
|
6171
|
+
document.querySelector("#" + this.id + " .angular-editor-textarea").addEventListener('mouseout', ( /**
|
|
6172
|
+
* @return {?}
|
|
6173
|
+
*/function () { return _this.editor.editorToolbar['editorService'].saveSelection(); }));
|
|
6145
6174
|
};
|
|
6146
6175
|
/**
|
|
6147
6176
|
* @private
|
|
@@ -6201,7 +6230,7 @@
|
|
|
6201
6230
|
InfoEditorComponent.decorators = [
|
|
6202
6231
|
{ type: i0.Component, args: [{
|
|
6203
6232
|
selector: 'info-editor',
|
|
6204
|
-
template: "<angular-editor [attr.id]=\"id\" [attr.focused]=\"focused\" [(ngModel)]=\"value\" name=\"editor\" [config]=\"editorConfig\" (ngModelChange)=\"onChangeValue()\" [required]=\"required\"></angular-editor>\r\n",
|
|
6233
|
+
template: "<angular-editor [attr.id]=\"id\" [attr.focused]=\"focused\" [(ngModel)]=\"value\" name=\"editor\" [config]=\"editorConfig\" (ngModelChange)=\"onChangeValue()\" [required]=\"required\" #editor></angular-editor>\r\n",
|
|
6205
6234
|
providers: [{
|
|
6206
6235
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
6207
6236
|
useExisting: i0.forwardRef(( /**
|
|
@@ -6217,6 +6246,7 @@
|
|
|
6217
6246
|
{ type: platformBrowser.DomSanitizer }
|
|
6218
6247
|
]; };
|
|
6219
6248
|
InfoEditorComponent.propDecorators = {
|
|
6249
|
+
editor: [{ type: i0.ViewChild, args: ['editor',] }],
|
|
6220
6250
|
required: [{ type: i0.Input }],
|
|
6221
6251
|
disabled: [{ type: i0.Input }],
|
|
6222
6252
|
height: [{ type: i0.Input }],
|
|
@@ -6226,6 +6256,8 @@
|
|
|
6226
6256
|
minwidth: [{ type: i0.Input }]
|
|
6227
6257
|
};
|
|
6228
6258
|
if (false) {
|
|
6259
|
+
/** @type {?} */
|
|
6260
|
+
InfoEditorComponent.prototype.editor;
|
|
6229
6261
|
/** @type {?} */
|
|
6230
6262
|
InfoEditorComponent.prototype.required;
|
|
6231
6263
|
/** @type {?} */
|
|
@@ -6352,8 +6384,11 @@
|
|
|
6352
6384
|
* @param {?} r
|
|
6353
6385
|
* @return {?}
|
|
6354
6386
|
*/ r) {
|
|
6355
|
-
if (r.success)
|
|
6387
|
+
if (r.success) {
|
|
6356
6388
|
_this.data = r.data;
|
|
6389
|
+
if ((_this.selectedValues || []).length > 0)
|
|
6390
|
+
_this.onChangeValue();
|
|
6391
|
+
}
|
|
6357
6392
|
_this.loading = false;
|
|
6358
6393
|
}));
|
|
6359
6394
|
};
|