@lblod/ember-rdfa-editor-lblod-plugins 16.1.0 → 16.2.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 +14 -0
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +93 -78
- package/addon/components/table-of-contents-plugin/toolbar-button.hbs +11 -7
- package/addon/components/template-comments-plugin/template-comment.ts +1 -1
- package/addon/plugins/template-comments-plugin/node.ts +1 -4
- package/package.json +2 -2
- package/translations/en-US.yaml +5 -6
- package/translations/nl-BE.yaml +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 16.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#386](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/386) [`83becf142951f09a3cef68a27ae1a23ed141a2ad`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/83becf142951f09a3cef68a27ae1a23ed141a2ad) Thanks [@elpoelma](https://github.com/elpoelma)! - Simplify label of template-comments from 'Toelichtings- en voorbeeldbepaling' to 'Toelichting'
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#401](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/401) [`3a1cd544608a272a1c228b42c67fc44b6d856bc3`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/3a1cd544608a272a1c228b42c67fc44b6d856bc3) Thanks [@elpoelma](https://github.com/elpoelma)! - Add title attribute to table-of-contents toggle
|
|
12
|
+
|
|
13
|
+
- [#402](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/402) [`cb204915559bfd3a61e6104ac4cbb80652c36f44`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/cb204915559bfd3a61e6104ac4cbb80652c36f44) Thanks [@piemonkey](https://github.com/piemonkey)! - Widen support for ember-rdfa-editor to include upcoming v10
|
|
14
|
+
|
|
15
|
+
- [#401](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/401) [`31415d8bccfa0525af047d9f126c18f8574a2413`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/31415d8bccfa0525af047d9f126c18f8574a2413) Thanks [@elpoelma](https://github.com/elpoelma)! - Add title attribute to decision-type selector
|
|
16
|
+
|
|
3
17
|
## 16.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -1,86 +1,101 @@
|
|
|
1
|
-
<div
|
|
2
|
-
|
|
3
|
-
{{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@icon="circle-x"
|
|
8
|
-
@iconAlignment="left"
|
|
9
|
-
class="au-c-pill--link besluit-toolbar-pill"
|
|
10
|
-
{{on "click" this.toggleCard}}>
|
|
11
|
-
{{t "besluit-type-plugin.error-short"}}
|
|
12
|
-
</AuPill>
|
|
13
|
-
{{else}}
|
|
14
|
-
{{#if this.besluit.label}}
|
|
1
|
+
<div
|
|
2
|
+
{{did-update this.updateBesluitTypes @controller.mainEditorState}}
|
|
3
|
+
{{did-update this.updateBesluitTypes this.types.value}}
|
|
4
|
+
>
|
|
5
|
+
{{#if this.showCard}}
|
|
6
|
+
{{#if this.types.isError}}
|
|
15
7
|
<AuPill
|
|
16
|
-
@skin=
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
@skin='error'
|
|
9
|
+
@icon='circle-x'
|
|
10
|
+
@iconAlignment='left'
|
|
11
|
+
class='au-c-pill--link besluit-toolbar-pill'
|
|
12
|
+
{{on 'click' this.toggleCard}}
|
|
13
|
+
title={{t 'besluit-type-plugin.insert-dt'}}
|
|
14
|
+
>
|
|
15
|
+
{{t 'besluit-type-plugin.error-short'}}
|
|
19
16
|
</AuPill>
|
|
20
17
|
{{else}}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
{{#if this.besluit.label}}
|
|
19
|
+
<AuPill
|
|
20
|
+
@skin='link'
|
|
21
|
+
{{on 'click' this.toggleCard}}
|
|
22
|
+
title={{t 'besluit-type-plugin.insert-dt'}}
|
|
23
|
+
>
|
|
24
|
+
{{t 'besluit-type-plugin.dt'}}:
|
|
25
|
+
{{this.besluit.label}}
|
|
26
|
+
</AuPill>
|
|
27
|
+
{{else}}
|
|
28
|
+
<AuPill
|
|
29
|
+
@icon='alert-triangle'
|
|
30
|
+
@iconAlignment='left'
|
|
31
|
+
@skin='link'
|
|
32
|
+
{{on 'click' this.toggleCard}}
|
|
33
|
+
title={{t 'besluit-type-plugin.insert-dt'}}
|
|
34
|
+
>
|
|
35
|
+
{{t 'besluit-type-plugin.insert-dt'}}
|
|
36
|
+
</AuPill>
|
|
37
|
+
{{/if}}
|
|
28
38
|
{{/if}}
|
|
29
39
|
{{/if}}
|
|
30
|
-
{{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@onchange={{this.updateBesluitType}}
|
|
62
|
-
@selected={{this.besluit}}
|
|
63
|
-
@showWarningWhenEmpty={{false}}/>
|
|
64
|
-
{{#if this.besluit.subTypes.length}}
|
|
65
|
-
<AuHr @size="large"/>
|
|
40
|
+
{{#if this.cardExpanded}}
|
|
41
|
+
<AuModal
|
|
42
|
+
@title={{t 'besluit-type-plugin.insert-dt'}}
|
|
43
|
+
@closeModal={{this.toggleCard}}
|
|
44
|
+
@modalOpen={{true}}
|
|
45
|
+
@size='default'
|
|
46
|
+
class='au-c-modal--overflow'
|
|
47
|
+
as |Modal|
|
|
48
|
+
>
|
|
49
|
+
<Modal.Body>
|
|
50
|
+
{{#if this.types.isError}}
|
|
51
|
+
<AuAlert
|
|
52
|
+
@title={{t 'besluit-type-plugin.error-title'}}
|
|
53
|
+
@skin='error'
|
|
54
|
+
@icon='cross'
|
|
55
|
+
>
|
|
56
|
+
<p>
|
|
57
|
+
{{t 'besluit-type-plugin.error-first-body'}}
|
|
58
|
+
{{! template-lint-disable no-bare-strings }}
|
|
59
|
+
<AuLinkExternal
|
|
60
|
+
href='mailto:gelinktnotuleren@vlaanderen.be'
|
|
61
|
+
@icon='mail'
|
|
62
|
+
@iconAlignment='left'
|
|
63
|
+
>
|
|
64
|
+
GelinktNotuleren@vlaanderen.be
|
|
65
|
+
</AuLinkExternal>
|
|
66
|
+
{{! template-lint-enable no-bare-strings }}
|
|
67
|
+
{{t 'besluit-type-plugin.error-rest-body'}}
|
|
68
|
+
</p>
|
|
69
|
+
</AuAlert>
|
|
70
|
+
{{else}}
|
|
66
71
|
<BesluitTypePlugin::BesluitTypeSelect
|
|
67
|
-
@besluitTypes={{this.
|
|
68
|
-
@onchange={{this.
|
|
69
|
-
@selected={{this.
|
|
70
|
-
@showWarningWhenEmpty={{
|
|
71
|
-
|
|
72
|
+
@besluitTypes={{this.types.value}}
|
|
73
|
+
@onchange={{this.updateBesluitType}}
|
|
74
|
+
@selected={{this.besluit}}
|
|
75
|
+
@showWarningWhenEmpty={{false}}
|
|
76
|
+
/>
|
|
77
|
+
{{#if this.besluit.subTypes.length}}
|
|
78
|
+
<AuHr @size='large' />
|
|
79
|
+
<BesluitTypePlugin::BesluitTypeSelect
|
|
80
|
+
@besluitTypes={{this.besluit.subTypes}}
|
|
81
|
+
@onchange={{this.updateBesluitSubType}}
|
|
82
|
+
@selected={{this.subBesluit}}
|
|
83
|
+
@showWarningWhenEmpty={{true}}
|
|
84
|
+
class='au-u-padding-left au-u-padding-right'
|
|
85
|
+
/>
|
|
86
|
+
{{/if}}
|
|
87
|
+
{{#if this.subBesluit.subTypes.length}}
|
|
88
|
+
<AuHr @size='large' />
|
|
89
|
+
<BesluitTypePlugin::BesluitTypeSelect
|
|
90
|
+
@besluitTypes={{this.subBesluit.subTypes}}
|
|
91
|
+
@onchange={{this.updateBesluitSubSubType}}
|
|
92
|
+
@selected={{this.subSubBesluit}}
|
|
93
|
+
@showWarningWhenEmpty={{true}}
|
|
94
|
+
class='au-u-padding-left au-u-padding-right'
|
|
95
|
+
/>
|
|
96
|
+
{{/if}}
|
|
72
97
|
{{/if}}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
@besluitTypes={{this.subBesluit.subTypes}}
|
|
77
|
-
@onchange={{this.updateBesluitSubSubType}}
|
|
78
|
-
@selected={{this.subSubBesluit}}
|
|
79
|
-
@showWarningWhenEmpty={{true}}
|
|
80
|
-
class="au-u-padding-left au-u-padding-right"/>
|
|
81
|
-
{{/if}}
|
|
82
|
-
{{/if}}
|
|
83
|
-
</Modal.Body>
|
|
84
|
-
</AuModal>
|
|
85
|
-
{{/if}}
|
|
98
|
+
</Modal.Body>
|
|
99
|
+
</AuModal>
|
|
100
|
+
{{/if}}
|
|
86
101
|
</div>
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
<label class=
|
|
2
|
-
<input
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
<label class='au-c-toggle-switch' title={{t 'table-of-contents-plugin.toggle'}}>
|
|
2
|
+
<input
|
|
3
|
+
type='checkbox'
|
|
4
|
+
checked={{this.toggled}}
|
|
5
|
+
class='au-c-toggle-switch__input au-u-hidden-visually'
|
|
6
|
+
{{on 'input' this.toggle}}
|
|
7
|
+
/>
|
|
8
|
+
<span class='au-c-toggle-switch__toggle'></span>
|
|
9
|
+
<span class='au-c-toggle-switch__label'>{{t
|
|
10
|
+
'table-of-contents-plugin.toggle'
|
|
11
|
+
}}</span>
|
|
8
12
|
</label>
|
|
@@ -16,7 +16,7 @@ export default class TemplateCommentsPluginTemplateCommentComponent extends Comp
|
|
|
16
16
|
|
|
17
17
|
get translation() {
|
|
18
18
|
return {
|
|
19
|
-
title: this.intl.t('template-comments-plugin.
|
|
19
|
+
title: this.intl.t('template-comments-plugin.title', {
|
|
20
20
|
locale: this.documentLanguage,
|
|
21
21
|
}),
|
|
22
22
|
};
|
|
@@ -23,10 +23,7 @@ export const emberNodeConfig: () => EmberNodeConfig = () => {
|
|
|
23
23
|
attrs: {},
|
|
24
24
|
serialize(_, state) {
|
|
25
25
|
const t = getTranslationFunction(state);
|
|
26
|
-
const heading = t(
|
|
27
|
-
'template-comments-plugin.long-title',
|
|
28
|
-
'Toelichtings- of voorbeeldbepaling',
|
|
29
|
-
);
|
|
26
|
+
const heading = t('template-comments-plugin.title', 'Toelichting');
|
|
30
27
|
|
|
31
28
|
return [
|
|
32
29
|
'div',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"@appuniversum/ember-appuniversum": "^2.15.0",
|
|
147
147
|
"@ember/string": "3.x",
|
|
148
148
|
"@glint/template": "^1.1.0",
|
|
149
|
-
"@lblod/ember-rdfa-editor": "^9.0.0",
|
|
149
|
+
"@lblod/ember-rdfa-editor": "^9.0.0 || ^10.0.0",
|
|
150
150
|
"ember-concurrency": "^2.3.7 || ^3.1.0",
|
|
151
151
|
"ember-intl": "^5.7.2 || ^6.1.0",
|
|
152
152
|
"ember-modifier": "^3.2.7",
|
package/translations/en-US.yaml
CHANGED
|
@@ -290,14 +290,13 @@ snippet-plugin:
|
|
|
290
290
|
list: List
|
|
291
291
|
|
|
292
292
|
template-comments-plugin:
|
|
293
|
-
|
|
293
|
+
title: Template comment
|
|
294
294
|
insert:
|
|
295
|
-
title: Add template comment
|
|
295
|
+
title: Add template comment
|
|
296
296
|
edit:
|
|
297
|
-
remove: Remove template comment
|
|
298
|
-
move-up: Move comment up
|
|
299
|
-
move-down: Move comment down
|
|
300
|
-
heading: comment or example
|
|
297
|
+
remove: Remove template comment
|
|
298
|
+
move-up: Move template comment up
|
|
299
|
+
move-down: Move template comment down
|
|
301
300
|
|
|
302
301
|
pagination:
|
|
303
302
|
next: Next page
|
package/translations/nl-BE.yaml
CHANGED
|
@@ -294,14 +294,13 @@ snippet-plugin:
|
|
|
294
294
|
list: Lijst
|
|
295
295
|
|
|
296
296
|
template-comments-plugin:
|
|
297
|
-
|
|
297
|
+
title: Toelichting
|
|
298
298
|
insert:
|
|
299
|
-
title:
|
|
299
|
+
title: Toelichting invoegen
|
|
300
300
|
edit:
|
|
301
|
-
remove: Verwijder
|
|
302
|
-
move-down:
|
|
303
|
-
move-up:
|
|
304
|
-
heading: toelichtingsbepaling
|
|
301
|
+
remove: Verwijder toelichting
|
|
302
|
+
move-down: Toelichting naar onder verplaatsen
|
|
303
|
+
move-up: Toelichting naar boven verplaatsen
|
|
305
304
|
|
|
306
305
|
pagination:
|
|
307
306
|
next: Volgende pagina
|