@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 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.citaten-plugin.alert.loading"}}"
16
- @noMatchesMessage="{{t "citaten-plugin.citaten-plugin.alert.no-results"}}"
17
- @searchMessage="{{t "citaten-plugin.citaten-plugin.search.placeholder"}}"
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.citaten-plugin.search.article-placeholder"}}" @type="text" @width="default" @icon="search" @iconAlignment="right" @value={{this.articleFilter}} {{on "input" (perform this.updateArticleFilter)}}/>
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>
@@ -1,5 +1,5 @@
1
1
  <AuAlert
2
- @alertTitle="{{t "citaten-plugin.citaten-plugin.alert.error-title"}}"
2
+ @alertTitle="{{t "citaten-plugin.alert.error-title"}}"
3
3
  @alertSkin="error"
4
4
  @alertIcon="alert-triangle"
5
5
  @alertSize="{{if @fullSize "default" "small"}}"
@@ -1,5 +1,5 @@
1
1
  <AuAlert
2
- @alertTitle="{{t "citaten-plugin.citaten-plugin.alert.no-results"}}"
2
+ @alertTitle="{{t "citaten-plugin.alert.no-results"}}"
3
3
  @alertSkin="warning"
4
4
  @alertIcon="cross"
5
5
  @alertSize="{{if @fullSize "default" "small"}}"
@@ -40,7 +40,14 @@ export default class RdfaDatePluginCardComponent extends Component {
40
40
  if (!selectedRange) {
41
41
  return;
42
42
  }
43
- const selectionParent = selectedRange.start.parent;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",
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/*": [