@colijnit/corecomponents_v12 12.0.93 → 12.0.95

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.
Files changed (67) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +139 -149
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.d.ts +2 -0
  4. package/colijnit-corecomponents_v12.metadata.json +1 -1
  5. package/esm2015/colijnit-corecomponents_v12.js +3 -1
  6. package/esm2015/lib/components/base/base-input.component.js +2 -1
  7. package/esm2015/lib/components/co-schedule/co-schedule.component.js +1 -1
  8. package/esm2015/lib/components/co-toggle/co-toggle.component.js +2 -2
  9. package/esm2015/lib/components/drop-down-list/drop-down-list.component.js +3 -3
  10. package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +3 -3
  11. package/esm2015/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.js +3 -3
  12. package/esm2015/lib/components/input-combo-box/input-combo-box.component.js +3 -3
  13. package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +3 -3
  14. package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +4 -3
  15. package/esm2015/lib/components/input-listbox/input-listbox.component.js +3 -3
  16. package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +3 -3
  17. package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +3 -3
  18. package/esm2015/lib/components/input-text/input-text.component.js +3 -3
  19. package/esm2015/lib/components/input-textarea/input-textarea.component.js +3 -3
  20. package/esm2015/lib/components/multi-select-list/multi-select-list.component.js +3 -3
  21. package/esm2015/lib/directives/screen-configuration/screen-config-component-wrapper.component.js +21 -0
  22. package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +72 -0
  23. package/esm2015/lib/directives/screen-configuration/screen-configuration.module.js +21 -0
  24. package/esm2015/lib/interfaces/screen-config-adapter-component-interface-name.js +4 -0
  25. package/esm2015/lib/interfaces/screen-config-adapter.component.interface.js +2 -0
  26. package/esm2015/public-api.js +4 -6
  27. package/fesm2015/colijnit-corecomponents_v12.js +126 -161
  28. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  29. package/lib/components/base/base-input.component.d.ts +2 -2
  30. package/lib/components/co-kanban/style/material.scss +0 -8
  31. package/lib/components/grid/style/_material-definition.scss +0 -9
  32. package/lib/components/input-checkbox/style/material.scss +0 -2
  33. package/lib/components/input-checkbox-multi-select/style/_material-definition.scss +1 -7
  34. package/lib/components/input-combo-box/style/material.scss +1 -7
  35. package/lib/components/input-date-picker/style/_material-definition.scss +1 -10
  36. package/lib/components/input-date-range-picker/style/_material-definition.scss +1 -9
  37. package/lib/components/input-radio-button/style/_material-definition.scss +0 -3
  38. package/lib/components/input-search/style/_layout.scss +1 -0
  39. package/lib/components/input-search/style/_material-definition.scss +1 -0
  40. package/lib/components/input-text/style/_layout.scss +1 -1
  41. package/lib/components/multi-select-list/style/_material-definition.scss +1 -7
  42. package/lib/components/pivot/style/_material-definition.scss +0 -11
  43. package/lib/directives/screen-configuration/screen-config-component-wrapper.component.d.ts +8 -0
  44. package/lib/directives/screen-configuration/screen-configuration.directive.d.ts +18 -0
  45. package/lib/directives/screen-configuration/screen-configuration.module.d.ts +2 -0
  46. package/lib/interfaces/screen-config-adapter-component-interface-name.d.ts +3 -0
  47. package/lib/{components/base/configuration-adapter-component.interface.d.ts → interfaces/screen-config-adapter.component.interface.d.ts} +1 -1
  48. package/lib/style/corecomponents-globals.scss +17 -0
  49. package/lib/style/material2/style/_elevation.scss +2 -2
  50. package/package.json +1 -2
  51. package/public-api.d.ts +3 -5
  52. package/esm2015/lib/components/base/component-interface-name.js +0 -4
  53. package/esm2015/lib/components/base/configuration-adapter-component.interface.js +0 -2
  54. package/esm2015/lib/components/co-dialog-prompt/co-dialog-prompt.component.js +0 -60
  55. package/esm2015/lib/components/co-dialog-prompt/co-dialog-prompt.module.js +0 -16
  56. package/esm2015/lib/components/co-rich-text-editor/co-rich-text-editor.component.js +0 -53
  57. package/esm2015/lib/components/co-rich-text-editor/co-rich-text-editor.module.js +0 -21
  58. package/lib/components/base/component-interface-name.d.ts +0 -3
  59. package/lib/components/co-dialog-prompt/co-dialog-prompt.component.d.ts +0 -19
  60. package/lib/components/co-dialog-prompt/co-dialog-prompt.component.scss +0 -0
  61. package/lib/components/co-dialog-prompt/co-dialog-prompt.module.d.ts +0 -2
  62. package/lib/components/co-rich-text-editor/co-rich-text-editor.component.d.ts +0 -13
  63. package/lib/components/co-rich-text-editor/co-rich-text-editor.module.d.ts +0 -2
  64. package/lib/components/co-rich-text-editor/style/_layout.scss +0 -3
  65. package/lib/components/co-rich-text-editor/style/_material-definition.scss +0 -9
  66. package/lib/components/co-rich-text-editor/style/_theme.scss +0 -3
  67. package/lib/components/co-rich-text-editor/style/material.scss +0 -4
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('@syncfusion/ej2-angular-splitbuttons'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/animations'), require('@syncfusion/ej2-angular-popups'), require('@syncfusion/ej2-angular-kanban'), require('@syncfusion/ej2-angular-richtexteditor'), require('@angular/forms'), require('@syncfusion/ej2-angular-schedule'), require('@syncfusion/ej2-angular-navigations'), require('@syncfusion/ej2-angular-buttons'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-angular-grids'), require('@syncfusion/ej2-base'), require('@syncfusion/ej2-angular-calendars'), require('@syncfusion/ej2-angular-inputs'), require('@syncfusion/ej2-angular-pivotview'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/drag-drop'), require('@angular/cdk/scrolling')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/common', '@angular/common/http', '@angular/platform-browser', 'rxjs', 'rxjs/operators', '@syncfusion/ej2-angular-splitbuttons', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/animations', '@syncfusion/ej2-angular-popups', '@syncfusion/ej2-angular-kanban', '@syncfusion/ej2-angular-richtexteditor', '@angular/forms', '@syncfusion/ej2-angular-schedule', '@syncfusion/ej2-angular-navigations', '@syncfusion/ej2-angular-buttons', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-angular-grids', '@syncfusion/ej2-base', '@syncfusion/ej2-angular-calendars', '@syncfusion/ej2-angular-inputs', '@syncfusion/ej2-angular-pivotview', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/drag-drop', '@angular/cdk/scrolling'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.common, global.ng.common.http, global.ng.platformBrowser, global.rxjs, global.rxjs.operators, global.ej2AngularSplitbuttons, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.animations, global.ej2AngularPopups, global.ej2AngularKanban, global.ej2AngularRichtexteditor, global.ng.forms, global.ej2AngularSchedule, global.ej2AngularNavigations, global.ej2AngularButtons, global.ej2AngularDropdowns, global.ej2AngularGrids, global.ej2Base, global.ej2AngularCalendars, global.ej2AngularInputs, global.ej2AngularPivotview, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.dragDrop, global.ng.cdk.scrolling));
5
- })(this, (function (exports, i0, common, http, platformBrowser, rxjs, operators, ej2AngularSplitbuttons, three, CSS3DRenderer, TWEEN, hammerjs, animations, ej2AngularPopups, ej2AngularKanban, ej2AngularRichtexteditor, forms, ej2AngularSchedule, ej2AngularNavigations, ej2AngularButtons, ej2AngularDropdowns, ej2AngularGrids, ej2Base, ej2AngularCalendars, ej2AngularInputs, ej2AngularPivotview, overlay, portal, dragDrop, scrolling) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('@syncfusion/ej2-angular-splitbuttons'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/animations'), require('@syncfusion/ej2-angular-kanban'), require('@syncfusion/ej2-angular-schedule'), require('@syncfusion/ej2-angular-navigations'), require('@syncfusion/ej2-angular-buttons'), require('@angular/forms'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-angular-grids'), require('@syncfusion/ej2-base'), require('@syncfusion/ej2-angular-calendars'), require('@syncfusion/ej2-angular-inputs'), require('@syncfusion/ej2-angular-pivotview'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/drag-drop'), require('@angular/cdk/scrolling')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/common', '@angular/common/http', '@angular/platform-browser', 'rxjs', 'rxjs/operators', '@syncfusion/ej2-angular-splitbuttons', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/animations', '@syncfusion/ej2-angular-kanban', '@syncfusion/ej2-angular-schedule', '@syncfusion/ej2-angular-navigations', '@syncfusion/ej2-angular-buttons', '@angular/forms', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-angular-grids', '@syncfusion/ej2-base', '@syncfusion/ej2-angular-calendars', '@syncfusion/ej2-angular-inputs', '@syncfusion/ej2-angular-pivotview', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/drag-drop', '@angular/cdk/scrolling'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.common, global.ng.common.http, global.ng.platformBrowser, global.rxjs, global.rxjs.operators, global.ej2AngularSplitbuttons, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.animations, global.ej2AngularKanban, global.ej2AngularSchedule, global.ej2AngularNavigations, global.ej2AngularButtons, global.ng.forms, global.ej2AngularDropdowns, global.ej2AngularGrids, global.ej2Base, global.ej2AngularCalendars, global.ej2AngularInputs, global.ej2AngularPivotview, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.dragDrop, global.ng.cdk.scrolling));
5
+ })(this, (function (exports, i0, common, http, platformBrowser, rxjs, operators, ej2AngularSplitbuttons, three, CSS3DRenderer, TWEEN, hammerjs, animations, ej2AngularKanban, ej2AngularSchedule, ej2AngularNavigations, ej2AngularButtons, forms, ej2AngularDropdowns, ej2AngularGrids, ej2Base, ej2AngularCalendars, ej2AngularInputs, ej2AngularPivotview, overlay, portal, dragDrop, scrolling) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -3770,70 +3770,6 @@
3770
3770
  },] }
3771
3771
  ];
3772
3772
 
3773
- var CoDialogPromptComponent = /** @class */ (function () {
3774
- function CoDialogPromptComponent() {
3775
- var _this = this;
3776
- this.header = "header";
3777
- this.content = "content";
3778
- this.visible = false;
3779
- this.width = "50%";
3780
- this.showCloseIcon = true;
3781
- this.closeClick = new i0.EventEmitter();
3782
- this.target = '.co-dialog-prompt-root-container';
3783
- this.buttons = [
3784
- { click: this.buttonClick.bind(this), buttonModel: { content: 'Ja', isPrimary: 'true' } },
3785
- { click: this.buttonClick.bind(this), buttonModel: { content: 'Nee' } }
3786
- ];
3787
- this.onCloseClick = function () {
3788
- _this.close();
3789
- _this.closeClick.emit();
3790
- };
3791
- }
3792
- CoDialogPromptComponent.prototype.open = function () {
3793
- this.coDialogPrompt.show();
3794
- };
3795
- CoDialogPromptComponent.prototype.close = function () {
3796
- this.coDialogPrompt.hide();
3797
- };
3798
- CoDialogPromptComponent.prototype.buttonClick = function () {
3799
- this.close();
3800
- };
3801
- return CoDialogPromptComponent;
3802
- }());
3803
- CoDialogPromptComponent.decorators = [
3804
- { type: i0.Component, args: [{
3805
- selector: 'co-dialog-prompt',
3806
- template: "\n <div #coDialogPromptRootContainer class='co-dialog-prompt-root-container'></div>\n <ejs-dialog #coDialogPrompt\n [buttons]=\"buttons\"\n [header]=\"header\"\n [content]=\"content\"\n [showCloseIcon]=\"showCloseIcon\"\n [target]=\"target\"\n [visible]=\"visible\"\n [width]=\"width\"\n (close)=\"onCloseClick()\"\n >\n </ejs-dialog>\n ",
3807
- styles: [""]
3808
- },] }
3809
- ];
3810
- CoDialogPromptComponent.ctorParameters = function () { return []; };
3811
- CoDialogPromptComponent.propDecorators = {
3812
- coDialogPrompt: [{ type: i0.ViewChild, args: ['coDialogPrompt',] }],
3813
- header: [{ type: i0.Input }],
3814
- content: [{ type: i0.Input }],
3815
- visible: [{ type: i0.Input }],
3816
- width: [{ type: i0.Input }],
3817
- showCloseIcon: [{ type: i0.Input }],
3818
- closeClick: [{ type: i0.Output }]
3819
- };
3820
-
3821
- var CoDialogPromptModule = /** @class */ (function () {
3822
- function CoDialogPromptModule() {
3823
- }
3824
- return CoDialogPromptModule;
3825
- }());
3826
- CoDialogPromptModule.decorators = [
3827
- { type: i0.NgModule, args: [{
3828
- imports: [
3829
- ej2AngularPopups.DialogModule
3830
- ],
3831
- declarations: [CoDialogPromptComponent],
3832
- providers: [],
3833
- exports: [CoDialogPromptComponent]
3834
- },] }
3835
- ];
3836
-
3837
3773
  var CoDialogWizardComponent = /** @class */ (function () {
3838
3774
  function CoDialogWizardComponent() {
3839
3775
  this.icons = exports.CoreComponentsIcon;
@@ -3986,68 +3922,6 @@
3986
3922
  },] }
3987
3923
  ];
3988
3924
 
3989
- var CoRichTextEditorComponent = /** @class */ (function () {
3990
- function CoRichTextEditorComponent() {
3991
- this.onChangeEvent = new i0.EventEmitter();
3992
- }
3993
- CoRichTextEditorComponent.prototype.showClass = function () {
3994
- return true;
3995
- };
3996
- CoRichTextEditorComponent.prototype.ngAfterViewInit = function () {
3997
- };
3998
- CoRichTextEditorComponent.prototype.ngOnInit = function () {
3999
- };
4000
- CoRichTextEditorComponent.prototype.getContent = function () {
4001
- if (this.editor) {
4002
- return this.editor.getContent();
4003
- }
4004
- };
4005
- CoRichTextEditorComponent.prototype.getText = function () {
4006
- if (this.editor) {
4007
- return this.editor.getText();
4008
- }
4009
- };
4010
- CoRichTextEditorComponent.prototype.onChange = function (args) {
4011
- if (args) {
4012
- this.onChangeEvent.next(args);
4013
- }
4014
- };
4015
- return CoRichTextEditorComponent;
4016
- }());
4017
- CoRichTextEditorComponent.decorators = [
4018
- { type: i0.Component, args: [{
4019
- selector: 'co-rich-text-editor',
4020
- template: "\n <ejs-richtexteditor\n #rte\n id=\"Rte\"\n [ngModel]=\"model\"\n (change)=\"onChange($event)\"\n >\n <ng-template></ng-template>\n </ejs-richtexteditor>\n ",
4021
- providers: [ej2AngularRichtexteditor.ToolbarService, ej2AngularRichtexteditor.LinkService, ej2AngularRichtexteditor.ImageService, ej2AngularRichtexteditor.HtmlEditorService],
4022
- encapsulation: i0.ViewEncapsulation.None
4023
- },] }
4024
- ];
4025
- CoRichTextEditorComponent.propDecorators = {
4026
- editor: [{ type: i0.ViewChild, args: ['rte', { static: false },] }],
4027
- onChangeEvent: [{ type: i0.Output }],
4028
- model: [{ type: i0.Input }],
4029
- showClass: [{ type: i0.HostBinding, args: ["class.co-rich-text-editor",] }]
4030
- };
4031
-
4032
- var CoRichTextEditorModule = /** @class */ (function () {
4033
- function CoRichTextEditorModule() {
4034
- }
4035
- return CoRichTextEditorModule;
4036
- }());
4037
- CoRichTextEditorModule.decorators = [
4038
- { type: i0.NgModule, args: [{
4039
- declarations: [CoRichTextEditorComponent],
4040
- exports: [
4041
- CoRichTextEditorComponent
4042
- ],
4043
- imports: [
4044
- common.CommonModule,
4045
- ej2AngularRichtexteditor.RichTextEditorModule,
4046
- forms.FormsModule
4047
- ]
4048
- },] }
4049
- ];
4050
-
4051
3925
  var CoScheduleComponent = /** @class */ (function () {
4052
3926
  function CoScheduleComponent() {
4053
3927
  this.enablePersistence = false;
@@ -4182,7 +4056,7 @@
4182
4056
  CoToggleComponent.decorators = [
4183
4057
  { type: i0.Component, args: [{
4184
4058
  selector: 'co-toggle',
4185
- template: "\n <ejs-switch \n [checked]=\"checked\"\n [disabled]=\"readonly\"\n ></ejs-switch>\n ",
4059
+ template: "\n <ejs-switch\n [checked]=\"checked\"\n [disabled]=\"readonly\"\n ></ejs-switch>\n ",
4186
4060
  styles: [""]
4187
4061
  },] }
4188
4062
  ];
@@ -4357,7 +4231,7 @@
4357
4231
  ];
4358
4232
 
4359
4233
  // Enables "DI for interfaces" (see ConfigNameDirective injected .hostComponent).
4360
- var COMPONENT_INTERFACE_NAME = new i0.InjectionToken("ConfigurationAdapterComponent");
4234
+ var SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME = new i0.InjectionToken("ScreenConfigAdapterComponent");
4361
4235
 
4362
4236
  function requiredValidator(control) {
4363
4237
  var isValid = !(control.value === null || control.value === undefined || control.value === "");
@@ -5150,6 +5024,7 @@
5150
5024
  _a = event.code;
5151
5025
  switch (_a) {
5152
5026
  case 'Enter': return [3 /*break*/, 1];
5027
+ case 'NumpadEnter': return [3 /*break*/, 1];
5153
5028
  case 'Tab': return [3 /*break*/, 4];
5154
5029
  case 'Escape': return [3 /*break*/, 6];
5155
5030
  }
@@ -5649,7 +5524,7 @@
5649
5524
  providers: [
5650
5525
  ej2AngularDropdowns.CheckBoxSelectionService,
5651
5526
  {
5652
- provide: COMPONENT_INTERFACE_NAME,
5527
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
5653
5528
  useExisting: i0.forwardRef(function () { return DropDownListComponent; })
5654
5529
  }, {
5655
5530
  provide: BaseInputComponent,
@@ -6433,7 +6308,7 @@
6433
6308
  selector: "co-input-checkbox",
6434
6309
  template: "\n <div class=\"checkbox\" (click)=\"handleModelChange($event)\" [class.checked]=\"model\">\n <div class=\"checkmark\" [class.show]=\"model\"></div>\n </div>\n <div class=\"label\" [class.clickable]=\"clickableLabel\" *ngIf=\"label\" [textContent]=\"label\"\n (click)=\"clickableLabel ? handleModelChange($event) : true\"></div>\n ",
6435
6310
  providers: [{
6436
- provide: COMPONENT_INTERFACE_NAME,
6311
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
6437
6312
  useExisting: i0.forwardRef(function () { return InputCheckboxComponent; })
6438
6313
  }, {
6439
6314
  provide: BaseInputComponent,
@@ -6536,7 +6411,7 @@
6536
6411
  selector: "co-input-checkbox-multi-select",
6537
6412
  template: "\n <ejs-multiselect\n [placeholder]=\"placeholder\"\n [dataSource]=\"source\"\n [fields]=\"fields\"\n mode=\"CheckBox\"\n showDropDownIcon=\"true\"\n [showSelectAll]=\"false\"\n [filterBarPlaceholder]=\"filterPlaceholder\"\n ></ejs-multiselect>\n ",
6538
6413
  providers: [{
6539
- provide: COMPONENT_INTERFACE_NAME,
6414
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
6540
6415
  useExisting: i0.forwardRef(function () { return InputCheckboxMultiSelectComponent; })
6541
6416
  }, {
6542
6417
  provide: BaseInputComponent,
@@ -6616,7 +6491,7 @@
6616
6491
  selector: "co-input-combo-box",
6617
6492
  template: "\n <ejs-combobox #combo [dataSource]=\"collection\"\n [fields]=\"fields\"\n [disabled]=\"readonly\"\n [placeholder]=\"placeholder\"\n [autofill]=\"autofill\"\n [ngModel]=\"model\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (valueChange)=\"valueChange.emit($event)\"\n (focus)=\"onFocus()\"\n [popupWidth]=\"popupWidth\"\n [popupHeight]=\"popupHeight\"\n [filterType]=\"filterType\"\n [allowFiltering]=\"allowFiltering\"\n showClearButton=\"true\"\n floatLabelType=\"Auto\"\n >\n </ejs-combobox>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
6618
6493
  providers: [{
6619
- provide: COMPONENT_INTERFACE_NAME,
6494
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
6620
6495
  useExisting: i0.forwardRef(function () { return InputComboBoxComponent; })
6621
6496
  }, {
6622
6497
  provide: BaseInputComponent,
@@ -6735,7 +6610,7 @@
6735
6610
  selector: "co-input-date",
6736
6611
  template: "\n <ejs-datepicker #ejsDatePicker\n floatLabelType=\"Auto\"\n [format]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n (ngModelChange)=\"modelChange.emit($event)\"\n ></ejs-datepicker>\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
6737
6612
  providers: [{
6738
- provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDatePickerComponent; })
6613
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDatePickerComponent; })
6739
6614
  }, {
6740
6615
  provide: BaseInputComponent,
6741
6616
  useExisting: InputDatePickerComponent
@@ -6930,7 +6805,8 @@
6930
6805
  selector: "co-input-date-range",
6931
6806
  template: "\n <ejs-daterangepicker #ejsDateRangePicker\n [format]=\"dateFormat\"\n floatLabelType=\"Auto\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n [(startDate)]=\"startDate\"\n [(endDate)]=\"endDate\"\n [readonly]=\"readonly\"\n (ngModelChange)=\"rangeChange()\"\n (close)=\"close.next($event)\"\n (select)=\"select.next($event)\"\n (cleared)=\"cleared.next($event)\"\n ></ejs-daterangepicker>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
6932
6807
  providers: [{
6933
- provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDateRangePickerComponent; })
6808
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
6809
+ useExisting: i0.forwardRef(function () { return InputDateRangePickerComponent; })
6934
6810
  }, {
6935
6811
  provide: BaseInputComponent,
6936
6812
  useExisting: InputDateRangePickerComponent
@@ -7029,7 +6905,7 @@
7029
6905
  selector: 'co-input-listbox',
7030
6906
  template: "\n <div class=\"co-input-listbox-header\" [textContent]=\"placeholder\"></div>\n <div class=\"co-input-listbox-content\" [ngClass]=\"customCssClass ? customCssClass : undefined\">\n <ejs-listbox\n [ngModel]=\"value\"\n [dataSource]=\"collection\"\n [fields]=\"fields\"\n [disabled]=\"readonly\"\n [selectionSettings]=\"selectionSettings\"\n (ngModelChange)=\"modelChange.emit($event)\"\n ></ejs-listbox>\n </div>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
7031
6907
  providers: [{
7032
- provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputListboxComponent; })
6908
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputListboxComponent; })
7033
6909
  }, {
7034
6910
  provide: BaseInputComponent,
7035
6911
  useExisting: InputListboxComponent
@@ -7666,7 +7542,7 @@
7666
7542
  selector: 'co-input-number-picker',
7667
7543
  template: "\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"minus-operator circle\" [class.select]=\"minSelected\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(minusIcon)\"\n (mousedown)=\"onMinusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n <input type=\"text\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n (ngModelChange)=\"handleChangeModel($event)\"\n (keydown)=\"handleKeyDown($event)\"/>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"plus-operator circle\" [class.select]=\"plusSelected\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(plusIcon)\"\n (mousedown)=\"onPlusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n ",
7668
7544
  providers: [{
7669
- provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputNumberPickerComponent; })
7545
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputNumberPickerComponent; })
7670
7546
  }, {
7671
7547
  provide: BaseInputComponent,
7672
7548
  useExisting: InputNumberPickerComponent
@@ -7775,7 +7651,7 @@
7775
7651
  selector: "co-input-text",
7776
7652
  template: "\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\"></co-icon>\n <co-icon *ngIf=\"rightIcon\" class=\"input-text-right-icon\" [icon]=\"rightIcon\"></co-icon>\n <input #input\n [type]=\"digitsOnly ? 'number' : type\"\n [ngModel]=\"model\"\n [min]=\"type === 'number' && this.min ? this.min : undefined\"\n [max]=\"type === 'number' && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
7777
7653
  providers: [{
7778
- provide: COMPONENT_INTERFACE_NAME,
7654
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
7779
7655
  useExisting: i0.forwardRef(function () { return InputTextComponent; })
7780
7656
  }, {
7781
7657
  provide: BaseInputComponent,
@@ -7916,7 +7792,7 @@
7916
7792
  selector: "co-input-radio-button",
7917
7793
  template: "\n <div class=\"outer-circle\" [class.selected]=\"model\">\n <div class=\"inner-circle\" *ngIf=\"model\" @showSelected></div>\n </div>\n <div class=\"label\" *ngIf=\"label\" [textContent]=\"label\"></div>\n <input #input [ngModel]=\"model\" type=\"hidden\">\n ",
7918
7794
  providers: [{
7919
- provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputRadioButtonComponent; })
7795
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputRadioButtonComponent; })
7920
7796
  }, {
7921
7797
  provide: BaseInputComponent,
7922
7798
  useExisting: InputRadioButtonComponent
@@ -8055,7 +7931,7 @@
8055
7931
  selector: "co-input-textarea",
8056
7932
  template: "\n <label [textContent]=\"placeholder\"></label>\n <textarea\n #input\n type=\"textarea\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n ></textarea>\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
8057
7933
  providers: [{
8058
- provide: COMPONENT_INTERFACE_NAME,
7934
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
8059
7935
  useExisting: i0.forwardRef(function () { return InputTextareaComponent; })
8060
7936
  }, {
8061
7937
  provide: BaseInputComponent,
@@ -8149,7 +8025,7 @@
8149
8025
  providers: [
8150
8026
  ej2AngularDropdowns.CheckBoxSelectionService,
8151
8027
  {
8152
- provide: COMPONENT_INTERFACE_NAME,
8028
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
8153
8029
  useExisting: i0.forwardRef(function () { return MultiSelectListComponent; })
8154
8030
  }, {
8155
8031
  provide: BaseInputComponent,
@@ -11677,6 +11553,121 @@
11677
11553
  },] }
11678
11554
  ];
11679
11555
 
11556
+ var ScreenConfigComponentWrapper = /** @class */ (function () {
11557
+ function ScreenConfigComponentWrapper() {
11558
+ }
11559
+ ScreenConfigComponentWrapper.prototype.setWrapperContent = function (element) {
11560
+ this.contentNativeElement = element;
11561
+ };
11562
+ ScreenConfigComponentWrapper.prototype.ngAfterViewInit = function () {
11563
+ if (this.screenConfigComponentWrapper) {
11564
+ this.screenConfigComponentWrapper.nativeElement.appendChild(this.contentNativeElement);
11565
+ }
11566
+ };
11567
+ return ScreenConfigComponentWrapper;
11568
+ }());
11569
+ ScreenConfigComponentWrapper.decorators = [
11570
+ { type: i0.Component, args: [{
11571
+ selector: "screen-config-component-wrapper",
11572
+ template: "<div *ngIf=\"!hidden\" #screenConfigComponentWrapper></div>"
11573
+ },] }
11574
+ ];
11575
+ ScreenConfigComponentWrapper.propDecorators = {
11576
+ screenConfigComponentWrapper: [{ type: i0.ViewChild, args: ['screenConfigComponentWrapper',] }]
11577
+ };
11578
+
11579
+ // Directive to represents the marker of "screen config name ID's" of components within a module.
11580
+ // Manipulates visibility, readonly and other dynamic states of an input element according to its db-fetched screen configuration object.
11581
+ var ScreenConfigurationDirective = /** @class */ (function () {
11582
+ function ScreenConfigurationDirective(hostComponent, _viewContainerRef, _componentFactoryResolver) {
11583
+ this.hostComponent = hostComponent;
11584
+ this._viewContainerRef = _viewContainerRef;
11585
+ this._componentFactoryResolver = _componentFactoryResolver;
11586
+ this.noModuleService = false;
11587
+ }
11588
+ Object.defineProperty(ScreenConfigurationDirective.prototype, "screenConfigurationObject", {
11589
+ get: function () {
11590
+ return this._screenConfigurationObject;
11591
+ },
11592
+ set: function (screenConfigurationObject) {
11593
+ if (screenConfigurationObject) {
11594
+ this._screenConfigurationObject = screenConfigurationObject;
11595
+ this._initWrapperComponent();
11596
+ this._updateHost();
11597
+ }
11598
+ },
11599
+ enumerable: false,
11600
+ configurable: true
11601
+ });
11602
+ ScreenConfigurationDirective.prototype.ngOnDestroy = function () {
11603
+ this.hostComponent = undefined;
11604
+ this._wrapperComponentInstance = undefined;
11605
+ };
11606
+ ScreenConfigurationDirective.prototype._initWrapperComponent = function () {
11607
+ if (!this._wrapperComponentInstance) {
11608
+ var componentFactory = this._componentFactoryResolver.resolveComponentFactory(ScreenConfigComponentWrapper);
11609
+ var componentRef = this._viewContainerRef.createComponent(componentFactory);
11610
+ this._wrapperComponentInstance = componentRef.instance;
11611
+ componentRef.instance.setWrapperContent(this._viewContainerRef.element.nativeElement);
11612
+ this._setHostVisible(!!this.screenConfigurationObject ? this.screenConfigurationObject.immediatelyVisible() : false);
11613
+ }
11614
+ };
11615
+ ScreenConfigurationDirective.prototype._updateHost = function () {
11616
+ if (!!this.hostComponent && !!this._screenConfigurationObject) {
11617
+ this.hostComponent.objectConfigName = this.screenConfigurationObject.configName;
11618
+ if (this.screenConfigurationObject) {
11619
+ this.hostComponent.required = this.screenConfigurationObject.isRequired();
11620
+ // readonly based on forced boolean, based on rights value or based on variable value affected by module read only state
11621
+ this.hostComponent.readonly = this.hostComponent.forceReadonly || this.screenConfigurationObject.isReadonly() || this.screenConfigurationObject.variableReadOnly;
11622
+ this.hostComponent.decimals = this.screenConfigurationObject.scale;
11623
+ this.hostComponent.maxLength = this.screenConfigurationObject.maxLength;
11624
+ }
11625
+ }
11626
+ };
11627
+ ScreenConfigurationDirective.prototype._setHostVisible = function (value) {
11628
+ this._wrapperComponentInstance.hidden = !value;
11629
+ };
11630
+ return ScreenConfigurationDirective;
11631
+ }());
11632
+ ScreenConfigurationDirective.decorators = [
11633
+ { type: i0.Directive, args: [{
11634
+ selector: "[screenConfigurationObject]"
11635
+ },] }
11636
+ ];
11637
+ ScreenConfigurationDirective.ctorParameters = function () { return [
11638
+ { type: undefined, decorators: [{ type: i0.Inject, args: [SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,] }] },
11639
+ { type: i0.ViewContainerRef },
11640
+ { type: i0.ComponentFactoryResolver }
11641
+ ]; };
11642
+ ScreenConfigurationDirective.propDecorators = {
11643
+ container: [{ type: i0.ViewChild, args: ['test', { read: i0.ViewContainerRef },] }],
11644
+ screenConfigurationObject: [{ type: i0.Input }],
11645
+ noModuleService: [{ type: i0.Input }]
11646
+ };
11647
+ __decorate([
11648
+ InputBoolean()
11649
+ ], ScreenConfigurationDirective.prototype, "noModuleService", void 0);
11650
+
11651
+ var ScreenConfigurationModule = /** @class */ (function () {
11652
+ function ScreenConfigurationModule() {
11653
+ }
11654
+ return ScreenConfigurationModule;
11655
+ }());
11656
+ ScreenConfigurationModule.decorators = [
11657
+ { type: i0.NgModule, args: [{
11658
+ imports: [
11659
+ common.CommonModule
11660
+ ],
11661
+ declarations: [
11662
+ ScreenConfigurationDirective,
11663
+ ScreenConfigComponentWrapper
11664
+ ],
11665
+ exports: [
11666
+ ScreenConfigurationDirective,
11667
+ ]
11668
+ },] }
11669
+ ];
11670
+
11680
11671
  var ColorSequenceService = /** @class */ (function () {
11681
11672
  function ColorSequenceService() {
11682
11673
  this.colors = new Map();
@@ -11737,7 +11728,6 @@
11737
11728
  exports.ButtonDropDownComponent = ButtonDropDownComponent;
11738
11729
  exports.ButtonDropDownModule = ButtonDropDownModule;
11739
11730
  exports.ButtonModule = ButtonModule;
11740
- exports.COMPONENT_INTERFACE_NAME = COMPONENT_INTERFACE_NAME;
11741
11731
  exports.CardComponent = CardComponent;
11742
11732
  exports.CardModule = CardModule;
11743
11733
  exports.Carousel3dComponent = Carousel3dComponent;
@@ -11749,8 +11739,6 @@
11749
11739
  exports.ClickoutsideModule = ClickoutsideModule;
11750
11740
  exports.CoDialogComponent = CoDialogComponent;
11751
11741
  exports.CoDialogModule = CoDialogModule;
11752
- exports.CoDialogPromptComponent = CoDialogPromptComponent;
11753
- exports.CoDialogPromptModule = CoDialogPromptModule;
11754
11742
  exports.CoDialogWizardComponent = CoDialogWizardComponent;
11755
11743
  exports.CoDialogWizardModule = CoDialogWizardModule;
11756
11744
  exports.CoGridComponent = CoGridComponent;
@@ -11759,8 +11747,6 @@
11759
11747
  exports.CoKanbanModule = CoKanbanModule;
11760
11748
  exports.CoPivotComponent = CoPivotComponent;
11761
11749
  exports.CoPivotModule = CoPivotModule;
11762
- exports.CoRichTextEditorComponent = CoRichTextEditorComponent;
11763
- exports.CoRichTextEditorModule = CoRichTextEditorModule;
11764
11750
  exports.CoScheduleComponent = CoScheduleComponent;
11765
11751
  exports.CoScheduleModule = CoScheduleModule;
11766
11752
  exports.CoSidebarComponent = CoSidebarComponent;
@@ -11831,6 +11817,8 @@
11831
11817
  exports.PriceDisplayPipe = PriceDisplayPipe;
11832
11818
  exports.PriceDisplayPipeModule = PriceDisplayPipeModule;
11833
11819
  exports.PromptService = PromptService;
11820
+ exports.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME = SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME;
11821
+ exports.ScreenConfigurationModule = ScreenConfigurationModule;
11834
11822
  exports.SimpleGridColumnDirective = SimpleGridColumnDirective;
11835
11823
  exports.SimpleGridComponent = SimpleGridComponent;
11836
11824
  exports.SimpleGridModule = SimpleGridModule;
@@ -11850,6 +11838,8 @@
11850
11838
  exports["ɵbf"] = ClickOutsideDirective;
11851
11839
  exports["ɵbg"] = ClickOutsideMasterService;
11852
11840
  exports["ɵbh"] = CheckmarkOverlayComponent;
11841
+ exports["ɵbi"] = ScreenConfigurationDirective;
11842
+ exports["ɵbj"] = ScreenConfigComponentWrapper;
11853
11843
  exports["ɵc"] = CoRippleDirective;
11854
11844
  exports["ɵd"] = CoViewportRulerService;
11855
11845
  exports["ɵe"] = CoScrollDispatcherService;