cedar-embeddable-editor 1.5.0 → 1.5.1

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/CHANGELOG.md CHANGED
@@ -4,85 +4,115 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.5.1] - - 2026-07-16
9
+
10
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ### Fixed
15
+
16
+ - Checkbox selection race condition
17
+
7
18
  ## [1.5.0] - - 2025-05-30
8
19
 
9
20
  ### Added
21
+
10
22
  - Configuration option to control visibility of the preferences-menu.
11
23
 
12
24
  ### Fixed
25
+
13
26
  - Issue where the preferences menu could override the initial read-only mode configuration.
14
27
  - Hide the section-break help icon when no help text is available.
15
28
 
16
29
  ### Changed
30
+
17
31
  - Text input values now detect HTML context using a DOM parser.
32
+
18
33
  ## [1.4.0]
19
34
 
20
35
  ### Added
36
+
21
37
  - ORCID and ROR fields.
22
38
  - Preferences menu and read-only mode toggle under it.
23
39
  - Version number under the logo.
24
40
 
25
41
  ### Fixed
42
+
26
43
  - Non-empty attribute key/value fields being incorrectly hidden in read-only mode.
27
44
 
28
45
  ### Changed
46
+
29
47
  - Rendering style of section breaks.
30
48
 
31
49
  ## [1.3.5]
32
50
 
33
51
  ### Fixed
52
+
34
53
  - Instance load issue that appears when instance and template passed in different times
35
54
 
36
55
  ## [1.3.4]
37
56
 
38
57
  ### Changed
58
+
39
59
  - Pagination on multi instances are not shown if the instance count is less than the page size
40
60
 
41
61
  ## [1.3.3]
42
62
 
43
63
  ### Changed
64
+
44
65
  - Removed outer border of fields for a cleaner look
45
66
  - Representation of BioPortal, ORCID and ROR iris
46
67
  - Added icons for expand and collapse all. These buttons are also repositioned to top right corner.
47
68
 
48
69
  ### Fixed
70
+
49
71
  - Some internal errors that appear in the stand-alone mode
50
72
  - Some border color to comply with accessibility requirements
51
73
 
52
74
  ## [1.3.2]
53
75
 
54
76
  ### Added
77
+
55
78
  - Link to BioPortal controlled terms
56
79
  - Link to ORCID and ROR ids
57
80
 
58
81
  ### Fixed
82
+
59
83
  - Hiding state of nested empty elements
60
84
 
61
85
  ## [1.3.1]
62
86
 
63
87
  ### Added
88
+
64
89
  - New property to set template and instance together
65
90
  - Option to hide empty fields in viewer mode
66
91
  - Configuration option to display template description
67
92
 
68
93
  ### Changed
94
+
69
95
  - Fields that have HTML as their value will be rendered in readOnlyMode
70
96
 
71
97
  ### Fixed
98
+
72
99
  - Not making terminology calls in viewer mode
73
100
 
74
101
  ## [1.2.1] - 2024-02-20
75
102
 
76
103
  ### Fixed
77
- - https://github.com/metadatacenter/cedar-embeddable-editor/issues/102 Updating required fields with value constraints does not update validation status.
104
+
105
+ - <https://github.com/metadatacenter/cedar-embeddable-editor/issues/102> Updating required fields with value constraints does not update validation status.
78
106
 
79
107
  ## [1.2.0] - 2024-02-14
80
108
 
81
109
  ### Added
110
+
82
111
  - Viewer mode
83
112
  - Configuration option to display template description
84
113
 
85
114
  ### Changed
115
+
86
116
  - Name of linked static fields are rendered
87
117
  - Better accessibility support
88
118
 
@@ -93,12 +123,15 @@ This version contains only fixes and non-breaking changes related to the languag
93
123
  However, there was a new feature introduced in 1.0.14 - the data quality report. Because of this, we are changing the minor version number.
94
124
 
95
125
  ### Added
126
+
96
127
  - `CustomEvent` with `type`:`'change'` is emitted when a multi instance operation is performed (add, copy, delete)
97
128
 
98
129
  ### Fixed
130
+
99
131
  - Load built-in `en` language map if nothing is specified in the config
100
132
 
101
133
  ### Changed
134
+
102
135
  - Better language map related logging
103
136
  - If no external or internal language map can be found based on the config, still use the built-in `en` map
104
137
  - Allow uppercase in domain names of Link components
@@ -106,19 +139,23 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
106
139
  ## [1.0.16] - 2024-02-07
107
140
 
108
141
  ### Added
142
+
109
143
  - Language map loading configuration option `languageMapPathPrefix` + docs
110
144
 
111
145
  ### Fixed
146
+
112
147
  - Data Quality Report in case of mandatory fields with 0..n cardinality
113
148
  - Fixed bug regarding required value of multi-instance fields
114
149
 
115
150
  ## [1.0.15] - 2024-02-05
116
151
 
117
152
  ### Added
153
+
118
154
  - Added naive throttling prevention to the `/integrated-search` calls (random delay < 2000 ms)
119
155
  - Added validation error message for links
120
156
 
121
157
  ### Fixed
158
+
122
159
  - Fixed null reference in Data Quality Report builder
123
160
  - Fixed required symbol for multi instance fields
124
161
 
@@ -135,7 +172,6 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
135
172
  - showAllMultiInstanceValues flag is added.
136
173
  Now it's possible to hide "All Values" section of multi instance fields by adding showAllMultiInstanceValues : false to config.
137
174
 
138
-
139
175
  ## [1.0.12] - 2024-01-19
140
176
 
141
177
  ### Changed
@@ -151,6 +187,7 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
151
187
  ## [1.0.10] - 2024-01-11
152
188
 
153
189
  ### Added
190
+
154
191
  - A randomly generated UUID together with the trailing path is assigned as to @id is to nested element instances for model validation
155
192
 
156
193
  ## [1.0.9] - UNPUBLISHED
@@ -158,71 +195,86 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
158
195
  ## [1.0.8] - 2023-11-20
159
196
 
160
197
  ### Changed
198
+
161
199
  - Added some error-tolerance to instances that don't align with the template
162
200
 
163
201
  ## [1.0.7] - 2023-11-20
164
202
 
165
203
  ### Fixed
204
+
166
205
  - Fixed null reference
167
206
 
168
207
  ### Changed
208
+
169
209
  - Language map loading logging
170
210
 
171
211
  ## [1.0.6] - 2023-11-17
172
212
 
173
213
  ### Fixed
214
+
174
215
  - Fixed empty link value handling in the model
175
216
 
176
217
  ## [1.0.5] - 2023-11-16
177
218
 
178
219
  ### Fixed
220
+
179
221
  - Fixed null/undefined references
180
222
  - Added prettier as dev dependency
181
223
 
182
224
  ## [1.0.4] - 2023-11-08
183
225
 
184
226
  ### Fixed
227
+
185
228
  - Fixed same density style multiple generation
186
229
  - Removed `console.log` debug messages
187
230
 
188
231
  ## [1.0.3] - 2023-11-07
189
232
 
190
233
  ### Fixed
234
+
191
235
  - Default `en` and `hu` language maps embedded in production build
192
236
  - Removed `console.log` debug messages
193
237
 
194
238
  ### Added
239
+
195
240
  - `Load metadata` checkbox added to the sample template loader
196
241
 
197
242
  ### Changed
243
+
198
244
  - Dev mode config changed to compact initial view (hidden sample template links, hidden core metadata)
199
245
  - Dependency version updates
200
246
 
201
247
  ## [1.0.2] - 2023-11-03
202
248
 
203
249
  ### Fixed
250
+
204
251
  - Stylesheet not properly rendering
205
252
  - Multi-instance field add bug
206
253
 
207
254
  ### Changed
255
+
208
256
  - Refactoring: eslint + prettier added
209
257
 
210
258
  ## [1.0.1] - 2023-11-03
211
259
 
212
260
  ### Added
261
+
213
262
  - Changelog
214
263
  - Code of conduct
215
264
 
216
265
  ### Fixed
266
+
217
267
  - Controlled term field UI update on invalid data
218
268
  - Model update when date is entered from input (see 'Changed' below)
219
269
  - Default value selection for dropdowns
220
270
 
221
271
  ### Changed
272
+
222
273
  - Date can only be selected with date picker (no keyboard input)
223
274
  - Refactored component initialization
224
275
 
225
276
  ### Removed
277
+
226
278
  - Removed extra style inclusion causing duplicate style generation
227
279
 
228
280
  ## [1.0.0] - 2023-09-08
package/README.md CHANGED
@@ -144,7 +144,7 @@ There are other optional configuration parameters available for controlling vari
144
144
 
145
145
  "collapseStaticComponents": false,
146
146
  "showStaticText": true,
147
-
147
+
148
148
  "readOnlyMode": false,
149
149
  "hideEmptyFields": false,
150
150
  "showPreferencesMenu": true
@@ -289,7 +289,7 @@ In order to use an external language file, specify the config as follows:
289
289
  }
290
290
  ```
291
291
 
292
- In the example above we want to use a `German` language file, which is located in the specified directory. Starting the path with `/` makes the path absolute.
292
+ In the example above we want to use a `German` language file, which is located in the specified directory. Starting the path with `/` makes the path absolute.
293
293
 
294
294
  In our case the `/assets/i18n-cee/de.json` will be loaded if present.
295
295
 
@@ -297,7 +297,7 @@ If the file is missing, the `/assets/i18n-cee/en.json` will be used.
297
297
 
298
298
  If that file is also missing, the built-in `de` map would be the next. As this does not exist at this moment, the last option, the built-in `en` map will be used.
299
299
 
300
- Information about the loading process is logged onto the console with the `CEE TRACE` prefix.
300
+ Information about the loading process is logged onto the console with the `CEE TRACE` prefix.
301
301
 
302
302
  ### Listening for changes
303
303
 
@@ -318,8 +318,8 @@ An example in Angular is:
318
318
  - `component.ts`:
319
319
  ```typescript
320
320
  logChange(event) {
321
- console.log('CHANGE', event);
322
- }
321
+ console.log('CHANGE', event);
322
+ }
323
323
  ```
324
324
 
325
325
  ### Viewer Mode