commons-assessment 12.0.3 → 12.0.4

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.
@@ -12,7 +12,7 @@ export declare class QuestionTypeEditorComponent implements ControlValueAccessor
12
12
  formControl: FormControl;
13
13
  onTouched: () => void;
14
14
  constructor(ngControl: NgControl);
15
- checkFormControlValid(): "" | "assessment-input-border-invalid";
15
+ checkFormControlValid(): boolean;
16
16
  writeValue(value: any): void;
17
17
  registerOnChange(fn: Function): void;
18
18
  registerOnTouched(fn: Function): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commons-assessment",
3
- "version": "12.0.3",
3
+ "version": "12.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=12.0.0 <16.0.0",
6
6
  "@angular/core": ">=12.0.0 <16.0.0",
@@ -68,20 +68,21 @@ GLOBAL stylesheet for commons-assessment library
68
68
  angular-editor {
69
69
  .angular-editor {
70
70
  gap: 0 !important;
71
+ border-radius: var(--assessment-border-radius-two);
72
+ border: var(--assessment-input-border-one);
73
+ overflow: hidden;
71
74
  }
72
75
 
73
76
  .angular-editor-textarea {
74
77
  outline: none !important;
78
+ border: none !important;
75
79
  background-color: var(--assessment-white) !important;
76
- border-bottom-left-radius: 0.375rem !important;
77
- border-bottom-right-radius: 0.375rem !important;
78
80
  }
79
81
 
80
82
  .angular-editor-toolbar {
81
83
  background-color: var(--assessment-grey-one) !important;
82
- border-bottom: 0 !important;
83
- border-top-left-radius: 0.375rem;
84
- border-top-right-radius: 0.375rem;
84
+ border: none !important;
85
+ border-bottom: var(--assessment-input-border-one) !important;
85
86
  }
86
87
 
87
88
  .angular-editor-button {
@@ -97,14 +98,12 @@ GLOBAL stylesheet for commons-assessment library
97
98
  }
98
99
  }
99
100
  }
101
+ }
100
102
 
101
- .ng-submitted {
102
- angular-editor {
103
- &.ng-invalid {
104
- .angular-editor-textarea {
105
- border-color: var(--assessment-danger) !important;
106
- }
107
- }
103
+ .assessment-custom-angular-editor-invalid {
104
+ angular-editor {
105
+ .angular-editor {
106
+ border: var(--assessment-input-border-invalid) !important;
108
107
  }
109
108
  }
110
109
  }