@lblod/ember-rdfa-editor-lblod-plugins 0.4.0 → 0.4.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 +11 -0
- package/addon/components/citaten-plugin/citaat-card.hbs +3 -3
- package/addon/components/citaten-plugin/citations/decision-detail.hbs +1 -1
- package/addon/components/citaten-plugin/helpers/alert-load-error.hbs +1 -1
- package/addon/components/citaten-plugin/helpers/alert-no-items.hbs +1 -1
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-card.js +8 -1
- package/package.json +1 -1
- package/tsconfig.json +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
## 0.4.1 (2022-12-02)
|
|
11
|
+
|
|
12
|
+
#### :bug: Bug Fix
|
|
13
|
+
* [#25](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/25) Replace citaten-plugin.citaten-plugin by citaten-plugin ([@elpoelma](https://github.com/elpoelma))
|
|
14
|
+
* [#24](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/24) Trigger date plugin correctly ([@lagartoverde](https://github.com/lagartoverde))
|
|
15
|
+
|
|
16
|
+
#### Committers: 2
|
|
17
|
+
- Elena Poelman ([@elpoelma](https://github.com/elpoelma))
|
|
18
|
+
- Oscar Rodriguez Villalobos ([@lagartoverde](https://github.com/lagartoverde))
|
|
19
|
+
|
|
9
20
|
## 0.4.0 (2022-12-01)
|
|
10
21
|
|
|
11
22
|
#### :house: Internal
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
@allowClear={{false}}
|
|
13
13
|
@disabled={{false}}
|
|
14
14
|
@searchEnabled={{true}}
|
|
15
|
-
@loadingMessage="{{t "citaten-plugin.
|
|
16
|
-
@noMatchesMessage="{{t "citaten-plugin.
|
|
17
|
-
@searchMessage="{{t "citaten-plugin.
|
|
15
|
+
@loadingMessage="{{t "citaten-plugin.alert.loading"}}"
|
|
16
|
+
@noMatchesMessage="{{t "citaten-plugin.alert.no-results"}}"
|
|
17
|
+
@searchMessage="{{t "citaten-plugin.search.placeholder"}}"
|
|
18
18
|
@options={{this.legislationTypes}}
|
|
19
19
|
@selected={{this.legislationSelected}}
|
|
20
20
|
@onChange={{this.selectLegislationType}}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</AuLinkExternal>
|
|
34
34
|
{{! Search field }}
|
|
35
35
|
<AuLabel class="au-u-margin-top-small au-margin-bottom-small" for="searchCodex" @inline={{true}} @required={{false}} @error={{false}} @warning={{false}}>{{t "citaten-plugin.search.article"}}</AuLabel>
|
|
36
|
-
<AuInput id="searchCodex" placeholder="{{t "citaten-plugin.
|
|
36
|
+
<AuInput id="searchCodex" placeholder="{{t "citaten-plugin.search.article-placeholder"}}" @type="text" @width="default" @icon="search" @iconAlignment="right" @value={{this.articleFilter}} {{on "input" (perform this.updateArticleFilter)}}/>
|
|
37
37
|
</div>
|
|
38
38
|
{{! Search results }}
|
|
39
39
|
<div>
|
|
@@ -40,7 +40,14 @@ export default class RdfaDatePluginCardComponent extends Component {
|
|
|
40
40
|
if (!selectedRange) {
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
const selectionParent = selectedRange.start.
|
|
43
|
+
const selectionParent = selectedRange.start.findAncestors(
|
|
44
|
+
(element) => element.attributeMap && element.attributeMap.get('datatype')
|
|
45
|
+
)[0];
|
|
46
|
+
if (!selectionParent) {
|
|
47
|
+
this.showCard = false;
|
|
48
|
+
this.dateElement = undefined;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
44
51
|
const datatype = selectionParent.attributeMap.get('datatype');
|
|
45
52
|
if (datatype === 'xsd:dateTime') {
|
|
46
53
|
this.showCard = true;
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
// The combination of `baseUrl` with `paths` allows Ember's classic package
|
|
6
6
|
// layout, which is not resolvable with the Node resolution algorithm, to
|
|
7
7
|
// work with TypeScript.
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"noEmitOnError": false,
|
|
8
10
|
"baseUrl": ".",
|
|
9
11
|
"paths": {
|
|
10
12
|
"dummy/tests/*": [
|