info-library 2.10.40 → 2.10.43
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 +30 -6
- 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 +1 -0
- package/esm2015/controls/editor/editor.component.js +7 -3
- package/esm2015/model/app-config.model.js +4 -1
- package/esm2015/service/authentication.service.js +4 -3
- package/esm2015/service/configuration.service.js +18 -3
- package/fesm2015/info-library.js +29 -6
- package/fesm2015/info-library.js.map +1 -1
- package/info-library.metadata.json +1 -1
- package/model/app-config.model.d.ts +1 -0
- package/package.json +1 -1
- package/service/authentication.service.d.ts +1 -1
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
this.theme = '';
|
|
33
33
|
this.dictionary = '';
|
|
34
34
|
this.ux = 2;
|
|
35
|
+
this.style = '';
|
|
35
36
|
this.topMenu = false;
|
|
36
37
|
this.enabledPrime = false;
|
|
37
38
|
}
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
/** @type {?} */
|
|
52
53
|
InfoAppConfigModel.prototype.ux;
|
|
53
54
|
/** @type {?} */
|
|
55
|
+
InfoAppConfigModel.prototype.style;
|
|
56
|
+
/** @type {?} */
|
|
54
57
|
InfoAppConfigModel.prototype.topMenu;
|
|
55
58
|
/** @type {?} */
|
|
56
59
|
InfoAppConfigModel.prototype.enabledPrime;
|
|
@@ -1636,14 +1639,16 @@
|
|
|
1636
1639
|
* @param {?} usuario
|
|
1637
1640
|
* @param {?} senha
|
|
1638
1641
|
* @param {?=} reCaptchaToken
|
|
1642
|
+
* @param {?=} codigo2FA
|
|
1639
1643
|
* @return {?}
|
|
1640
1644
|
*/
|
|
1641
|
-
InfoAuthenticationService.prototype.login = function (usuario, senha, reCaptchaToken) {
|
|
1645
|
+
InfoAuthenticationService.prototype.login = function (usuario, senha, reCaptchaToken, codigo2FA) {
|
|
1642
1646
|
var _this = this;
|
|
1643
1647
|
if (reCaptchaToken === void 0) { reCaptchaToken = null; }
|
|
1648
|
+
if (codigo2FA === void 0) { codigo2FA = null; }
|
|
1644
1649
|
this.removeSessao();
|
|
1645
1650
|
return this._http
|
|
1646
|
-
.post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha, ReCaptchaToken: reCaptchaToken })
|
|
1651
|
+
.post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha, ReCaptchaToken: reCaptchaToken, Codigo2FA: codigo2FA })
|
|
1647
1652
|
.pipe(operators.map(( /**
|
|
1648
1653
|
* @param {?} r
|
|
1649
1654
|
* @return {?}
|
|
@@ -2297,8 +2302,23 @@
|
|
|
2297
2302
|
_this._plataforma.Config.ux = 2;
|
|
2298
2303
|
if (_this._plataforma.Config.ux == 2)
|
|
2299
2304
|
menuMin = 'false';
|
|
2300
|
-
|
|
2301
|
-
|
|
2305
|
+
/** @type {?} */
|
|
2306
|
+
var cssFile = document.createElement('link');
|
|
2307
|
+
cssFile.href = _this._plataforma.Config.webapiUrl.replace(/\/api\/$/ig, '') + '/layout/temas.css';
|
|
2308
|
+
cssFile.type = 'text/css';
|
|
2309
|
+
cssFile.rel = 'stylesheet';
|
|
2310
|
+
document.head.appendChild(cssFile);
|
|
2311
|
+
if (_this._plataforma.Config.style != null) {
|
|
2312
|
+
/** @type {?} */
|
|
2313
|
+
var cssClient = document.createElement('link');
|
|
2314
|
+
cssClient.href = '/assets/' + _this._plataforma.Config.style + '/style.css';
|
|
2315
|
+
cssClient.type = 'text/css';
|
|
2316
|
+
cssClient.rel = 'stylesheet';
|
|
2317
|
+
document.head.appendChild(cssClient);
|
|
2318
|
+
}
|
|
2319
|
+
if (activeTheme == null || activeTheme == undefined)
|
|
2320
|
+
activeTheme = "_" + _this._plataforma.Config.ux + "-theme";
|
|
2321
|
+
_this._themeService.setTheme(activeTheme || 'default-theme');
|
|
2302
2322
|
_this._themeService.setMenuMin(menuMin == 'true');
|
|
2303
2323
|
_this._themeService.setModePrime(prime == 'true');
|
|
2304
2324
|
r(config);
|
|
@@ -6031,6 +6051,7 @@
|
|
|
6031
6051
|
function InfoEditorComponent(_sanitizer) {
|
|
6032
6052
|
this._sanitizer = _sanitizer;
|
|
6033
6053
|
this.required = false;
|
|
6054
|
+
this.enabledhtmlmode = false;
|
|
6034
6055
|
this.value = '';
|
|
6035
6056
|
this.focused = false;
|
|
6036
6057
|
this.id = null;
|
|
@@ -6213,7 +6234,7 @@
|
|
|
6213
6234
|
InfoEditorComponent.decorators = [
|
|
6214
6235
|
{ type: i0.Component, args: [{
|
|
6215
6236
|
selector: 'info-editor',
|
|
6216
|
-
template: "<angular-editor [attr.id]=\"id\" [attr.focused]=\"focused\" [(ngModel)]=\"value\" name=\"editor\" [config]=\"editorConfig\" (ngModelChange)=\"onChangeValue()\" [required]=\"required\" #editor></angular-editor>\r\n",
|
|
6237
|
+
template: "<angular-editor [attr.id]=\"id\" [attr.focused]=\"focused\" [attr.htmlmode]=\"enabledhtmlmode\" [(ngModel)]=\"value\" name=\"editor\" [config]=\"editorConfig\" (ngModelChange)=\"onChangeValue()\" [required]=\"required\" #editor></angular-editor>\r\n",
|
|
6217
6238
|
providers: [{
|
|
6218
6239
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
6219
6240
|
useExisting: i0.forwardRef(( /**
|
|
@@ -6221,7 +6242,7 @@
|
|
|
6221
6242
|
*/function () { return InfoEditorComponent; })),
|
|
6222
6243
|
multi: true
|
|
6223
6244
|
}],
|
|
6224
|
-
styles: [":host ::ng-deep .angular-editor-toolbar-set #insertVideo-,:host ::ng-deep .angular-editor-toolbar-set #toggleEditorMode-{display:none}:host ::ng-deep .angular-editor-textarea{border:none!important;border-bottom:1px solid!important;outline:none}:host ::ng-deep .angular-editor-textarea[contenteditable=false]{border-bottom:1.5px dotted #d3d3d3!important}:host ::ng-deep .angular-editor-wrapper:after{background-color:#000;bottom:0;content:\"\";height:2px;left:0;opacity:0;position:absolute;transform:scaleX(.5);transform-origin:50%;transition:background-color .3s cubic-bezier(.55,0,.55,.2);width:100%}:host ::ng-deep [focused=true] .angular-editor-wrapper:after{opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-wrapper:after{background-color:#f44336!important}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-textarea[contenteditable=true]{border-bottom-color:#f44336!important}"]
|
|
6245
|
+
styles: [":host ::ng-deep .angular-editor-toolbar-set #insertVideo-,:host ::ng-deep [htmlmode=false] .angular-editor-toolbar-set #toggleEditorMode-{display:none}:host ::ng-deep .angular-editor-textarea{border:none!important;border-bottom:1px solid!important;outline:none}:host ::ng-deep .angular-editor-textarea[contenteditable=false]{border-bottom:1.5px dotted #d3d3d3!important}:host ::ng-deep .angular-editor-wrapper:after{background-color:#000;bottom:0;content:\"\";height:2px;left:0;opacity:0;position:absolute;transform:scaleX(.5);transform-origin:50%;transition:background-color .3s cubic-bezier(.55,0,.55,.2);width:100%}:host ::ng-deep [focused=true] .angular-editor-wrapper:after{opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-wrapper:after{background-color:#f44336!important}:host ::ng-deep .ng-touched.ng-invalid .angular-editor-textarea[contenteditable=true]{border-bottom-color:#f44336!important}"]
|
|
6225
6246
|
}] }
|
|
6226
6247
|
];
|
|
6227
6248
|
/** @nocollapse */
|
|
@@ -6231,6 +6252,7 @@
|
|
|
6231
6252
|
InfoEditorComponent.propDecorators = {
|
|
6232
6253
|
editor: [{ type: i0.ViewChild, args: ['editor',] }],
|
|
6233
6254
|
required: [{ type: i0.Input }],
|
|
6255
|
+
enabledhtmlmode: [{ type: i0.Input }],
|
|
6234
6256
|
disabled: [{ type: i0.Input }],
|
|
6235
6257
|
height: [{ type: i0.Input }],
|
|
6236
6258
|
minheight: [{ type: i0.Input }],
|
|
@@ -6244,6 +6266,8 @@
|
|
|
6244
6266
|
/** @type {?} */
|
|
6245
6267
|
InfoEditorComponent.prototype.required;
|
|
6246
6268
|
/** @type {?} */
|
|
6269
|
+
InfoEditorComponent.prototype.enabledhtmlmode;
|
|
6270
|
+
/** @type {?} */
|
|
6247
6271
|
InfoEditorComponent.prototype.value;
|
|
6248
6272
|
/** @type {?} */
|
|
6249
6273
|
InfoEditorComponent.prototype.onChange;
|