@lblod/ember-rdfa-editor-lblod-plugins 29.0.0 → 29.0.1-dev.34a85e14cf9ba4b4996e49c476a775afbe3ab6ac
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/.changeset/eight-beans-hope.md +5 -0
- package/CHANGELOG.md +12 -0
- package/addon/components/common/documents/preview.gts +1 -3
- package/addon/plugins/location-plugin/node.ts +3 -0
- package/addon/plugins/variable-plugin/variables/address.ts +3 -0
- package/addon/plugins/variable-plugin/variables/autofilled.ts +1 -0
- package/addon/plugins/variable-plugin/variables/codelist.ts +1 -0
- package/addon/plugins/variable-plugin/variables/date.ts +1 -0
- package/addon/plugins/variable-plugin/variables/location.ts +3 -1
- package/addon/plugins/variable-plugin/variables/number.ts +2 -1
- package/addon/plugins/variable-plugin/variables/person.ts +3 -1
- package/addon/plugins/variable-plugin/variables/text.ts +3 -1
- package/app/styles/variable-plugin.scss +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 29.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Use the correct predicate for serializing variables
|
|
8
|
+
|
|
9
|
+
## 28.2.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#558](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/558) [`83e7e3f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/83e7e3f35ac79ccd86dfa3c172d0ae777470499a) Thanks [@abeforgit](https://github.com/abeforgit)! - Use the correct predicate for serializing variables
|
|
14
|
+
|
|
3
15
|
## 29.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
@@ -111,9 +111,7 @@ export default class DocumentPreview<
|
|
|
111
111
|
|
|
112
112
|
</div>
|
|
113
113
|
{{#if this.isExpanded}}
|
|
114
|
-
<div
|
|
115
|
-
class='say-editor say-content rdfa-annotations rdfa-annotations-highlight rdfa-annotations-hover snippet-preview__content'
|
|
116
|
-
>
|
|
114
|
+
<div class='say-editor say-content snippet-preview__content'>
|
|
117
115
|
{{#if this.content}}
|
|
118
116
|
{{this.content}}
|
|
119
117
|
{{else if this.contentTask.isRunning}}
|
|
@@ -107,6 +107,7 @@ const toDOM = (node: PNode): DOMOutputSpec => {
|
|
|
107
107
|
renderable: node,
|
|
108
108
|
tag: 'span',
|
|
109
109
|
attrs: {
|
|
110
|
+
class: 'say-variable',
|
|
110
111
|
'data-autofill-key': node.attrs.autofillKey,
|
|
111
112
|
'data-convert-to-string': node.attrs.convertToString,
|
|
112
113
|
'data-initialized': node.attrs.initialized,
|
|
@@ -230,6 +230,7 @@ const serialize = (node: PNode, state: EditorState) => {
|
|
|
230
230
|
: t('date-plugin.insert.datetime', TRANSLATION_FALLBACKS.insertDateTime);
|
|
231
231
|
}
|
|
232
232
|
const dateAttrs = {
|
|
233
|
+
class: 'say-variable',
|
|
233
234
|
'data-format': format as string,
|
|
234
235
|
'data-custom': custom ? 'true' : 'false',
|
|
235
236
|
'data-custom-allowed': customAllowed ? 'true' : 'false',
|
|
@@ -166,7 +166,7 @@ const serialize = (node: PNode, state: EditorState): DOMOutputSpec => {
|
|
|
166
166
|
const t = getTranslationFunction(state);
|
|
167
167
|
const docLang = state.doc.attrs.lang as string;
|
|
168
168
|
const { writtenNumber, minimumValue, maximumValue } = node.attrs;
|
|
169
|
-
const value = getOutgoingTriple(node.attrs,
|
|
169
|
+
const value = getOutgoingTriple(node.attrs, RDF('value'))?.object.value;
|
|
170
170
|
|
|
171
171
|
let humanReadableContent: string;
|
|
172
172
|
|
|
@@ -184,6 +184,7 @@ const serialize = (node: PNode, state: EditorState): DOMOutputSpec => {
|
|
|
184
184
|
renderable: node,
|
|
185
185
|
tag: 'span',
|
|
186
186
|
attrs: {
|
|
187
|
+
class: 'say-variable',
|
|
187
188
|
'data-written-number': String(writtenNumber ?? false),
|
|
188
189
|
'data-minimum-value': (minimumValue as string) ?? null,
|
|
189
190
|
'data-maximum-value': (maximumValue as string) ?? null,
|
|
@@ -111,7 +111,9 @@ const serialize = (node: PNode, state: EditorState): DOMOutputSpec => {
|
|
|
111
111
|
return renderRdfaAware({
|
|
112
112
|
renderable: node,
|
|
113
113
|
tag: 'span',
|
|
114
|
-
attrs: {
|
|
114
|
+
attrs: {
|
|
115
|
+
class: 'say-variable',
|
|
116
|
+
},
|
|
115
117
|
content: person
|
|
116
118
|
? generatePersonHtml(person)
|
|
117
119
|
: t(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "29.0.
|
|
3
|
+
"version": "29.0.1-dev.34a85e14cf9ba4b4996e49c476a775afbe3ab6ac",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|