ps-toolkit-ui 1.7.83 → 1.7.86
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/ps-toolkit-ui.umd.js +5 -29
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/ckeditor/form.ckeditor.component.js +6 -30
- package/fesm2015/ps-toolkit-ui.js +5 -29
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/ckeditor/form.ckeditor.component.d.ts +3 -6
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -7652,30 +7652,10 @@
|
|
|
7652
7652
|
function FormCkeditorComponent() {
|
|
7653
7653
|
this.changeIndex = new core.EventEmitter();
|
|
7654
7654
|
this.config = {
|
|
7655
|
-
toolbar: {
|
|
7656
|
-
items: [
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
'|',
|
|
7660
|
-
'link',
|
|
7661
|
-
'bulletedList',
|
|
7662
|
-
'numberedList',
|
|
7663
|
-
'|',
|
|
7664
|
-
'outdent',
|
|
7665
|
-
'indent',
|
|
7666
|
-
'|',
|
|
7667
|
-
'insertTable',
|
|
7668
|
-
'mediaEmbed',
|
|
7669
|
-
'undo',
|
|
7670
|
-
'redo',
|
|
7671
|
-
'imageInsert',
|
|
7672
|
-
'imageUpload'
|
|
7673
|
-
]
|
|
7674
|
-
},
|
|
7675
|
-
alignment: {
|
|
7676
|
-
options: ['left', 'right', 'center', 'justify']
|
|
7677
|
-
},
|
|
7678
|
-
mediaEmbed: {}
|
|
7655
|
+
toolbar: [{ name: 'document', items: ['Source', '-', 'NewPage', 'Preview', '-', 'Templates'] },
|
|
7656
|
+
{ name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
|
|
7657
|
+
'/',
|
|
7658
|
+
{ name: 'basicstyles', items: ['Bold', 'Italic'] }]
|
|
7679
7659
|
};
|
|
7680
7660
|
}
|
|
7681
7661
|
FormCkeditorComponent.prototype.ngOnInit = function () {
|
|
@@ -7724,12 +7704,8 @@
|
|
|
7724
7704
|
};
|
|
7725
7705
|
};
|
|
7726
7706
|
FormCkeditorComponent.prototype.onFocusIn = function () {
|
|
7727
|
-
console.log(this.inputBase);
|
|
7728
7707
|
// @ts-ignore
|
|
7729
7708
|
this.inputBase.instance.focus();
|
|
7730
|
-
// @ts-ignore
|
|
7731
|
-
this.inputBase.instance.element.focus();
|
|
7732
|
-
this.inputBase.nativeElement.focus();
|
|
7733
7709
|
};
|
|
7734
7710
|
FormCkeditorComponent.prototype.onKeyDown = function (e) {
|
|
7735
7711
|
this.inp.error = null;
|
|
@@ -7744,7 +7720,7 @@
|
|
|
7744
7720
|
FormCkeditorComponent.decorators = [
|
|
7745
7721
|
{ type: core.Component, args: [{
|
|
7746
7722
|
selector: 'lib-form-ckeditor',
|
|
7747
|
-
template: "<div #inputDiv [id]=\"inp.id + 'CkeditorInput'\" [className]=\"'form-input-con ckeditor w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onFocusIn()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"fas fa-star-of-life required-icon\"></i>{{inp.getLabel()}}</div>\r\n <div class=\"w-100 p-r rtl\">\r\n <ckeditor #inputBase type=\"inline\" [(ngModel)]=\"inp.value\"></ckeditor>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
7723
|
+
template: "<div #inputDiv [id]=\"inp.id + 'CkeditorInput'\" [className]=\"'form-input-con ckeditor w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onFocusIn()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"fas fa-star-of-life required-icon\"></i>{{inp.getLabel()}}</div>\r\n <div class=\"w-100 p-r rtl\">\r\n <ckeditor [config]=\"inp.row\" #inputBase type=\"inline\" [(ngModel)]=\"inp.value\"></ckeditor>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
7748
7724
|
styles: [".form-input-con.ckeditor{padding:0 15px;position:relative}.form-input-con.ckeditor .form-input{float:right;position:relative;width:100%}.form-input-con.ckeditor .form-input .label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:rtl;float:right;font-size:12px;height:20px;line-height:20px;margin-bottom:3px;padding:0 10px;text-align:right;width:100%}.form-input-con.ckeditor.error .form-input .label{color:var(--red);font-size:10px}.form-input-con.ckeditor .form-input .label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.ckeditor .form-input .control{background-image:none;border:none;border:var(--border-input);border-radius:var(--border-radius-base);color:var(--black);display:block;font-size:11px;height:80px;margin:0;padding:10px 35px;resize:none;text-align:center;width:100%}.form-input-con.ckeditor .form-input .control:focus,.form-input-con.ckeditor .form-input .control:hover{border:var(--border-input-dark);outline:none}.form-input-con.ckeditor .form-input i.icon{color:var(--primary);cursor:text;left:0;line-height:35px;z-index:1}.form-input-con.ckeditor .form-input i.clear-icon,.form-input-con.ckeditor .form-input i.icon{font-size:14px;height:35px;position:absolute;text-align:center;top:0;transition:all .35s ease-in-out;width:35px}.form-input-con.ckeditor .form-input i.clear-icon{color:var(--red);cursor:pointer;line-height:38px;right:0;z-index:3}.form-input-con.ckeditor.error .form-input .control{border:var(--border-input-red)}.form-input-con.ckeditor.error .form-input .control:focus,.form-input-con.ckeditor.error .form-input .control:hover{border:var(--border-input-red-dark)}.form-input-con.ckeditor.error .form-input .control,.form-input-con.ckeditor.error .form-input i.icon{color:var(--red-light)}.form-input-con.ckeditor.h-50 .form-input .control{height:50px}"]
|
|
7749
7725
|
},] }
|
|
7750
7726
|
];
|