info-library 2.10.41 → 2.10.44
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 +26 -4
- 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/configuration.service.js +18 -3
- package/fesm2015/info-library.js +26 -4
- 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
|
@@ -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;
|
|
@@ -2299,8 +2302,23 @@
|
|
|
2299
2302
|
_this._plataforma.Config.ux = 2;
|
|
2300
2303
|
if (_this._plataforma.Config.ux == 2)
|
|
2301
2304
|
menuMin = 'false';
|
|
2302
|
-
|
|
2303
|
-
|
|
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.theme + "-theme";
|
|
2321
|
+
_this._themeService.setTheme(activeTheme || 'default-theme');
|
|
2304
2322
|
_this._themeService.setMenuMin(menuMin == 'true');
|
|
2305
2323
|
_this._themeService.setModePrime(prime == 'true');
|
|
2306
2324
|
r(config);
|
|
@@ -6033,6 +6051,7 @@
|
|
|
6033
6051
|
function InfoEditorComponent(_sanitizer) {
|
|
6034
6052
|
this._sanitizer = _sanitizer;
|
|
6035
6053
|
this.required = false;
|
|
6054
|
+
this.enabledhtmlmode = false;
|
|
6036
6055
|
this.value = '';
|
|
6037
6056
|
this.focused = false;
|
|
6038
6057
|
this.id = null;
|
|
@@ -6215,7 +6234,7 @@
|
|
|
6215
6234
|
InfoEditorComponent.decorators = [
|
|
6216
6235
|
{ type: i0.Component, args: [{
|
|
6217
6236
|
selector: 'info-editor',
|
|
6218
|
-
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",
|
|
6219
6238
|
providers: [{
|
|
6220
6239
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
6221
6240
|
useExisting: i0.forwardRef(( /**
|
|
@@ -6223,7 +6242,7 @@
|
|
|
6223
6242
|
*/function () { return InfoEditorComponent; })),
|
|
6224
6243
|
multi: true
|
|
6225
6244
|
}],
|
|
6226
|
-
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}"]
|
|
6227
6246
|
}] }
|
|
6228
6247
|
];
|
|
6229
6248
|
/** @nocollapse */
|
|
@@ -6233,6 +6252,7 @@
|
|
|
6233
6252
|
InfoEditorComponent.propDecorators = {
|
|
6234
6253
|
editor: [{ type: i0.ViewChild, args: ['editor',] }],
|
|
6235
6254
|
required: [{ type: i0.Input }],
|
|
6255
|
+
enabledhtmlmode: [{ type: i0.Input }],
|
|
6236
6256
|
disabled: [{ type: i0.Input }],
|
|
6237
6257
|
height: [{ type: i0.Input }],
|
|
6238
6258
|
minheight: [{ type: i0.Input }],
|
|
@@ -6246,6 +6266,8 @@
|
|
|
6246
6266
|
/** @type {?} */
|
|
6247
6267
|
InfoEditorComponent.prototype.required;
|
|
6248
6268
|
/** @type {?} */
|
|
6269
|
+
InfoEditorComponent.prototype.enabledhtmlmode;
|
|
6270
|
+
/** @type {?} */
|
|
6249
6271
|
InfoEditorComponent.prototype.value;
|
|
6250
6272
|
/** @type {?} */
|
|
6251
6273
|
InfoEditorComponent.prototype.onChange;
|