cedar-embeddable-editor 1.3.5 → 1.5.0

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