@lblod/ember-rdfa-editor-lblod-plugins 18.1.1 → 19.0.0-dev.876c0a65199576300bbc5fa00be3013e6793fcf5
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/brown-carpets-cry.md +5 -0
- package/.changeset/strong-weeks-invent.md +5 -0
- package/.release-it.json +1 -1
- package/.woodpecker/.verify-pr.yml +6 -0
- package/CHANGELOG.md +12 -0
- package/addon/components/article-structure-plugin/article-structure-card.hbs +11 -6
- package/addon/components/article-structure-plugin/structure-card.hbs +50 -39
- package/addon/components/besluit-type-plugin/besluit-type-select.hbs +11 -8
- package/addon/components/citation-plugin/citation-card.hbs +1 -4
- package/addon/components/citation-plugin/citation-insert.hbs +1 -1
- package/addon/components/citation-plugin/citations/article-list.hbs +7 -3
- package/addon/components/citation-plugin/citations/article-preview.hbs +12 -8
- package/addon/components/citation-plugin/citations/legal-document-detail.hbs +75 -53
- package/addon/components/citation-plugin/citations/legal-document-list.hbs +8 -4
- package/addon/components/citation-plugin/citations/legal-document-preview.hbs +51 -41
- package/addon/components/citation-plugin/citations/search-modal.hbs +1 -1
- package/addon/components/confidentiality-plugin/toolbar.hbs +1 -1
- package/addon/components/decision-plugin/decision-plugin-card.hbs +42 -12
- package/addon/components/document-title-plugin/insert-title-card.hbs +4 -4
- package/addon/components/hover-tooltip.hbs +4 -1
- package/addon/components/import-snippet-plugin/card.hbs +25 -11
- package/addon/components/loading-alert.hbs +12 -12
- package/addon/components/roadsign-regulation-plugin/expanded-measure.hbs +37 -22
- package/addon/components/roadsign-regulation-plugin/measure-template.hbs +1 -1
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +11 -6
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.hbs +34 -26
- package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.hbs +28 -11
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.hbs +83 -55
- package/addon/components/snippet-plugin/search-modal.hbs +1 -1
- package/addon/components/snippet-plugin/snippet-insert.hbs +1 -1
- package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +10 -2
- package/addon/components/snippet-plugin/snippet-list/snippet-list-view.hbs +24 -18
- package/addon/components/snippet-plugin/snippet-list-select-rdfa.hbs +5 -5
- package/addon/components/standard-template-plugin/card.hbs +9 -5
- package/addon/components/standard-template-plugin/template-provider.hbs +7 -5
- package/addon/components/table-of-contents-plugin/ember-nodes/outline.hbs +1 -1
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.hbs +1 -1
- package/addon/components/template-comments-plugin/edit-card.hbs +4 -2
- package/addon/components/template-comments-plugin/insert.hbs +1 -1
- package/addon/components/template-comments-plugin/template-comment.hbs +3 -3
- package/addon/components/validation-plugin/validation-card.hbs +7 -4
- package/addon/components/validation-plugin/validation-item.hbs +7 -2
- package/addon/components/variable-plugin/address/edit.hbs +67 -34
- package/addon/components/variable-plugin/address/insert-variable.hbs +2 -2
- package/addon/components/variable-plugin/address/insert.hbs +6 -5
- package/addon/components/variable-plugin/codelist/edit.hbs +23 -10
- package/addon/components/variable-plugin/codelist/insert.hbs +2 -5
- package/addon/components/variable-plugin/date/date-time-picker.hbs +8 -7
- package/addon/components/variable-plugin/date/edit.hbs +49 -30
- package/addon/components/variable-plugin/date/help-modal.hbs +22 -19
- package/addon/components/variable-plugin/date/insert.hbs +6 -5
- package/addon/components/variable-plugin/date/nodeview.hbs +3 -3
- package/addon/components/variable-plugin/location/edit.hbs +23 -10
- package/addon/components/variable-plugin/location/insert.hbs +2 -2
- package/addon/components/variable-plugin/location/nodeview.hbs +7 -2
- package/addon/components/variable-plugin/number/insert.hbs +7 -7
- package/addon/components/variable-plugin/number/nodeview.hbs +5 -3
- package/addon/components/variable-plugin/number/nodeview.ts +1 -0
- package/addon/components/variable-plugin/text/insert.hbs +2 -2
- package/addon/components/variable-plugin/utils/label-input.hbs +1 -1
- package/addon/components/variable-plugin/variable/nodeview.hbs +7 -2
- package/addon/components/worship-plugin/administrative-unit-picker.hbs +2 -1
- package/addon/components/worship-plugin/list.hbs +1 -3
- package/addon/components/worship-plugin/search-modal.hbs +10 -10
- package/addon/components/worship-plugin/sortable-table-header.hbs +11 -5
- package/addon/plugins/snippet-plugin/nodes/snippet-placeholder.ts +5 -3
- package/app/styles/article-structure-plugin.scss +12 -6
- package/app/styles/besluit-plugin.scss +2 -2
- package/app/styles/citaten-plugin.scss +19 -16
- package/app/styles/confidentiality-plugin.scss +2 -2
- package/app/styles/document-title-plugin.scss +1 -1
- package/app/styles/snippet-plugin.scss +18 -1
- package/app/styles/variable-plugin.scss +5 -3
- package/declarations/addon/components/variable-plugin/number/nodeview.d.ts +1 -0
- package/package.json +5 -3
- package/pnpm-lock.yaml +4 -4
- package/translations/appuniversum/en-us.yaml +10 -10
- package/translations/appuniversum/nl-be.yaml +10 -10
- package/translations/en-US.yaml +4 -4
- package/translations/nl-BE.yaml +49 -53
- package/tsconfig.json +1 -1
- package/tsconfig.main.json +5 -16
package/.release-it.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 19.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`b9f7f56a469a18adbd75951e5ddd2a2f1cda7e45`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/b9f7f56a469a18adbd75951e5ddd2a2f1cda7e45) Thanks [@abeforgit](https://github.com/abeforgit)! - Use the selectNode argument instead of the helper
|
|
8
|
+
|
|
9
|
+
The select-on-click helper was removed in 9.8.0 of the editor, and was arguably never really public API.
|
|
10
|
+
|
|
11
|
+
This uses the replacement, a selectNode argument all ember-nodes receive.
|
|
12
|
+
|
|
13
|
+
This is breaking cause it restricts the peerdep to at least 9.8.0.
|
|
14
|
+
|
|
3
15
|
## 18.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
2
|
<div>
|
|
3
3
|
{{#each this.structureTypes as |structureType|}}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
<li class='au-c-list__item'>
|
|
5
|
+
<AuButton
|
|
6
|
+
@icon={{this.AddIcon}}
|
|
7
|
+
@iconAlignment='left'
|
|
8
|
+
@skin='link'
|
|
9
|
+
@disabled={{not (this.canInsertStructure structureType)}}
|
|
10
|
+
{{on 'click' (fn this.insertStructure structureType)}}
|
|
11
|
+
>
|
|
12
|
+
{{t structureType.translations.insert}}
|
|
13
|
+
</AuButton>
|
|
14
|
+
</li>
|
|
10
15
|
{{/each}}
|
|
11
16
|
</div>
|
|
@@ -1,28 +1,43 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
2
|
{{#unless this.isOutsideStructure}}
|
|
3
|
-
<AuCard
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<AuCard
|
|
4
|
+
@flex={{true}}
|
|
5
|
+
@divided={{true}}
|
|
6
|
+
@expandable={{false}}
|
|
7
|
+
@shadow={{true}}
|
|
8
|
+
@size='flush'
|
|
9
|
+
as |c|
|
|
10
|
+
>
|
|
11
|
+
<c.header class='au-u-hidden-visually'>
|
|
12
|
+
<AuHeading @level='3' @skin='6'>{{t
|
|
13
|
+
'article-structure-plugin.title.structure-card'
|
|
14
|
+
}}</AuHeading>
|
|
6
15
|
</c.header>
|
|
7
|
-
<c.content class=
|
|
8
|
-
<AuList
|
|
16
|
+
<c.content class='au-c-content--small'>
|
|
17
|
+
<AuList
|
|
18
|
+
@divider={{true}}
|
|
19
|
+
class='au-u-padding-top-tiny au-u-padding-bottom-tiny'
|
|
20
|
+
as |Item|
|
|
21
|
+
>
|
|
9
22
|
<Item>
|
|
10
23
|
<AuButton
|
|
11
24
|
@icon={{this.ChevronUpIcon}}
|
|
12
|
-
@iconAlignment=
|
|
13
|
-
@skin=
|
|
25
|
+
@iconAlignment='left'
|
|
26
|
+
@skin='link'
|
|
14
27
|
@disabled={{not this.canMoveUp}}
|
|
15
|
-
{{on 'click' (fn this.moveStructure 'up')}}
|
|
28
|
+
{{on 'click' (fn this.moveStructure 'up')}}
|
|
29
|
+
>
|
|
16
30
|
{{t this.currentStructureType.translations.move.up}}
|
|
17
31
|
</AuButton>
|
|
18
32
|
</Item>
|
|
19
33
|
<Item>
|
|
20
34
|
<AuButton
|
|
21
35
|
@icon={{this.ChevronDownIcon}}
|
|
22
|
-
@iconAlignment=
|
|
23
|
-
@skin=
|
|
36
|
+
@iconAlignment='left'
|
|
37
|
+
@skin='link'
|
|
24
38
|
@disabled={{not this.canMoveDown}}
|
|
25
|
-
{{on 'click' (fn this.moveStructure 'down')}}
|
|
39
|
+
{{on 'click' (fn this.moveStructure 'down')}}
|
|
40
|
+
>
|
|
26
41
|
{{t this.currentStructureType.translations.move.down}}
|
|
27
42
|
</AuButton>
|
|
28
43
|
</Item>
|
|
@@ -32,23 +47,20 @@
|
|
|
32
47
|
<:hover as |hover|>
|
|
33
48
|
<AuButton
|
|
34
49
|
@icon={{this.BinIcon}}
|
|
35
|
-
@iconAlignment=
|
|
36
|
-
@skin=
|
|
50
|
+
@iconAlignment='left'
|
|
51
|
+
@skin='link'
|
|
37
52
|
@alert={{true}}
|
|
38
53
|
@disabled={{not this.canRemoveStructure}}
|
|
39
|
-
aria-describedby=
|
|
54
|
+
aria-describedby='remove-tooltip'
|
|
40
55
|
{{hover.velcroHook}}
|
|
41
56
|
{{hover.handleHover}}
|
|
42
|
-
{{on 'click' (fn this.removeStructure false)}}
|
|
57
|
+
{{on 'click' (fn this.removeStructure false)}}
|
|
58
|
+
>
|
|
43
59
|
{{this.remove}}
|
|
44
60
|
</AuButton>
|
|
45
61
|
</:hover>
|
|
46
62
|
<:tooltip as |tooltip|>
|
|
47
|
-
<AuPill
|
|
48
|
-
id="remove-tooltip"
|
|
49
|
-
role="tooltip"
|
|
50
|
-
{{tooltip}}
|
|
51
|
-
>
|
|
63
|
+
<AuPill id='remove-tooltip' role='tooltip' {{tooltip}}>
|
|
52
64
|
{{t 'article-structure-plugin.remove.help-text'}}
|
|
53
65
|
</AuPill>
|
|
54
66
|
</:tooltip>
|
|
@@ -57,22 +69,19 @@
|
|
|
57
69
|
<:hover as |hover|>
|
|
58
70
|
<AuButton
|
|
59
71
|
@icon={{this.BinIcon}}
|
|
60
|
-
@iconAlignment=
|
|
61
|
-
@skin=
|
|
62
|
-
aria-describedby=
|
|
72
|
+
@iconAlignment='left'
|
|
73
|
+
@skin='link'
|
|
74
|
+
aria-describedby='remove-content-tooltip'
|
|
63
75
|
@alert={{true}}
|
|
64
76
|
{{hover.velcroHook}}
|
|
65
77
|
{{hover.handleHover}}
|
|
66
|
-
{{on 'click' (fn this.removeStructure true)}}
|
|
78
|
+
{{on 'click' (fn this.removeStructure true)}}
|
|
79
|
+
>
|
|
67
80
|
{{this.removeWithContent}}
|
|
68
81
|
</AuButton>
|
|
69
82
|
</:hover>
|
|
70
83
|
<:tooltip as |tooltip|>
|
|
71
|
-
<AuPill
|
|
72
|
-
id="remove-content-tooltip"
|
|
73
|
-
role="tooltip"
|
|
74
|
-
{{tooltip}}
|
|
75
|
-
>
|
|
84
|
+
<AuPill id='remove-content-tooltip' role='tooltip' {{tooltip}}>
|
|
76
85
|
{{t 'article-structure-plugin.remove-with-content.help-text'}}
|
|
77
86
|
</AuPill>
|
|
78
87
|
</:tooltip>
|
|
@@ -81,7 +90,7 @@
|
|
|
81
90
|
</AuButtonGroup>
|
|
82
91
|
</Item>
|
|
83
92
|
{{#if this.currentStructureType.getStartNumber}}
|
|
84
|
-
<Item class=
|
|
93
|
+
<Item class='au-u-padding-left-small'>
|
|
85
94
|
<AuFormRow>
|
|
86
95
|
{{#let (unique-id) as |id|}}
|
|
87
96
|
<AuLabel for={{id}}>
|
|
@@ -90,25 +99,27 @@
|
|
|
90
99
|
<AuInput
|
|
91
100
|
id={{id}}
|
|
92
101
|
value={{this.startNumberInputValue}}
|
|
93
|
-
{{on
|
|
94
|
-
placeholder={{t
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
{{on 'change' this.onStartNumberChange}}
|
|
103
|
+
placeholder={{t
|
|
104
|
+
'article-structure-plugin.start-number.start-number'
|
|
105
|
+
}}
|
|
106
|
+
type='number'
|
|
107
|
+
min='1'
|
|
97
108
|
/>
|
|
98
109
|
{{/let}}
|
|
99
110
|
</AuFormRow>
|
|
100
111
|
<AuButton
|
|
101
|
-
@iconAlignment=
|
|
102
|
-
class=
|
|
112
|
+
@iconAlignment='left'
|
|
113
|
+
class='au-u-margin-top-tiny'
|
|
103
114
|
{{on 'click' this.setStructureStartNumber}}
|
|
104
115
|
>
|
|
105
116
|
{{t 'article-structure-plugin.start-number.set'}}
|
|
106
117
|
</AuButton>
|
|
107
118
|
<AuButton
|
|
108
|
-
@iconAlignment=
|
|
109
|
-
@skin=
|
|
119
|
+
@iconAlignment='left'
|
|
120
|
+
@skin='secondary'
|
|
110
121
|
@disabled={{not this.structureStartNumber}}
|
|
111
|
-
class=
|
|
122
|
+
class='au-u-margin-top-tiny'
|
|
112
123
|
{{on 'click' this.resetStructureStartNumber}}
|
|
113
124
|
>
|
|
114
125
|
{{t 'article-structure-plugin.start-number.reset'}}
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
<PowerSelect
|
|
4
4
|
@renderInPlace={{true}}
|
|
5
5
|
@searchEnabled={{true}}
|
|
6
|
-
@searchMessage={{t
|
|
7
|
-
@noMatchesMessage={{t
|
|
6
|
+
@searchMessage={{t 'besluit-type-plugin.search-message'}}
|
|
7
|
+
@noMatchesMessage={{t 'besluit-type-plugin.no-matches-message'}}
|
|
8
8
|
@search={{this.search}}
|
|
9
9
|
@options={{this.besluitTypes}}
|
|
10
10
|
@selected={{@selected}}
|
|
11
|
-
@onChange={{@onchange}}
|
|
11
|
+
@onChange={{@onchange}}
|
|
12
|
+
as |besluitType|
|
|
13
|
+
>
|
|
12
14
|
{{besluitType.label}}
|
|
13
15
|
</PowerSelect>
|
|
14
16
|
<p class='au-u-muted au-u-margin-tiny au-u-margin-bottom-small'>
|
|
@@ -18,11 +20,12 @@
|
|
|
18
20
|
{{#unless @selected}}
|
|
19
21
|
<AuAlert
|
|
20
22
|
@icon={{this.AlertTriangleIcon}}
|
|
21
|
-
@title={{t
|
|
22
|
-
@skin=
|
|
23
|
-
@size=
|
|
24
|
-
class=
|
|
25
|
-
|
|
23
|
+
@title={{t 'besluit-type-plugin.alert-title'}}
|
|
24
|
+
@skin='warning'
|
|
25
|
+
@size='small'
|
|
26
|
+
class='au-u-margin-bottom-none au-u-margin-top-small'
|
|
27
|
+
>
|
|
28
|
+
<p>{{t 'besluit-type-plugin.alert-body'}}</p>
|
|
26
29
|
</AuAlert>
|
|
27
30
|
{{/unless}}
|
|
28
31
|
{{/if}}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{{#if @articles.length}}
|
|
2
|
-
<AuList @direction=
|
|
2
|
+
<AuList @direction='vertical' @divider={{true}} as |Item|>
|
|
3
3
|
{{#each @articles as |article|}}
|
|
4
4
|
<Item>
|
|
5
5
|
<CitationPlugin::Citations::ArticlePreview
|
|
6
6
|
@insertArticleCitation={{fn @insertArticleCitation article}}
|
|
7
|
-
@article={{article}}
|
|
7
|
+
@article={{article}}
|
|
8
|
+
/>
|
|
8
9
|
</Item>
|
|
9
10
|
{{/each}}
|
|
10
11
|
</AuList>
|
|
11
12
|
{{else}}
|
|
12
|
-
<Common::Search::AlertNoItems
|
|
13
|
+
<Common::Search::AlertNoItems
|
|
14
|
+
@fullSize={{@fullSize}}
|
|
15
|
+
class={{if @fullSize 'au-u-margin'}}
|
|
16
|
+
/>
|
|
13
17
|
{{/if}}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<div class=
|
|
3
|
-
<AuHeading @level=
|
|
4
|
-
|
|
2
|
+
<div class='au-u-margin' ...attributes>
|
|
3
|
+
<AuHeading @level='3' @skin='5' class='au-u-margin-bottom-small'>
|
|
4
|
+
{{@article.number}}
|
|
5
|
+
({{@article.dateInForce}}
|
|
6
|
+
-
|
|
7
|
+
{{if @article.dateNoLongerInForce @article.dateNoLongerInForce '…'}})
|
|
5
8
|
</AuHeading>
|
|
6
9
|
<p>
|
|
7
10
|
{{this.content}}
|
|
8
11
|
</p>
|
|
9
12
|
<AuButton
|
|
10
|
-
@skin=
|
|
13
|
+
@skin='primary'
|
|
11
14
|
@icon={{this.PlusTextIcon}}
|
|
12
|
-
@iconAlignment=
|
|
13
|
-
class=
|
|
14
|
-
{{on
|
|
15
|
-
|
|
15
|
+
@iconAlignment='left'
|
|
16
|
+
class='au-u-margin-top-small'
|
|
17
|
+
{{on 'click' @insertArticleCitation}}
|
|
18
|
+
>
|
|
19
|
+
{{t 'citaten-plugin.references.refer-article'}}
|
|
16
20
|
</AuButton>
|
|
17
21
|
</div>
|
|
@@ -1,115 +1,137 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<div
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
class='citaten--main-container au-u-flex au-u-flex--column au-u-flex--between'
|
|
4
|
+
>
|
|
5
|
+
<div class='citaten--container-content'>
|
|
4
6
|
{{! Heading with title and actions }}
|
|
5
|
-
<div class=
|
|
6
|
-
<AuHeading @level=
|
|
7
|
+
<div class='citaten--container-header au-u-background-gray-100 au-o-box'>
|
|
8
|
+
<AuHeading @level='2' @skin='4'>
|
|
7
9
|
{{capitalize @legalDocument.fullTitle}}
|
|
8
10
|
</AuHeading>
|
|
9
11
|
{{#if @legalDocument.publicationDate}}
|
|
10
12
|
<AuPill
|
|
11
|
-
class=
|
|
12
|
-
@skin=
|
|
13
|
+
class='au-u-margin-top-small au-u-margin-bottom-small'
|
|
14
|
+
@skin='border'
|
|
13
15
|
@icon={{this.CalendarIcon}}
|
|
14
|
-
@iconAlignment=
|
|
16
|
+
@iconAlignment='left'
|
|
17
|
+
>
|
|
15
18
|
{{@legalDocument.publicationDate}}
|
|
16
19
|
</AuPill>
|
|
17
20
|
{{/if}}
|
|
18
|
-
<br/>
|
|
21
|
+
<br />
|
|
19
22
|
<AuButton
|
|
20
|
-
@skin=
|
|
23
|
+
@skin='primary'
|
|
21
24
|
@icon={{this.PlusTextIcon}}
|
|
22
|
-
@iconAlignment=
|
|
23
|
-
class=
|
|
24
|
-
{{on
|
|
25
|
-
|
|
25
|
+
@iconAlignment='left'
|
|
26
|
+
class='au-u-margin-right'
|
|
27
|
+
{{on 'click' (fn @insertLegalDocumentCitation @legalDocument)}}
|
|
28
|
+
>
|
|
29
|
+
{{t 'citaten-plugin.references.refer-whole'}}
|
|
26
30
|
</AuButton>
|
|
27
31
|
<AuLinkExternal
|
|
28
|
-
@skin=
|
|
32
|
+
@skin='primary'
|
|
29
33
|
@icon={{this.LinkExternalIcon}}
|
|
30
|
-
@iconAlignment=
|
|
34
|
+
@iconAlignment='left'
|
|
31
35
|
href={{@legalDocument.uri}}
|
|
32
|
-
rel=
|
|
33
|
-
|
|
36
|
+
rel='noreferrer noopener'
|
|
37
|
+
>
|
|
38
|
+
{{t 'citaten-plugin.references.lookup-codex'}}
|
|
34
39
|
</AuLinkExternal>
|
|
35
40
|
{{! Search field }}
|
|
36
|
-
<AuLabel
|
|
37
|
-
|
|
41
|
+
<AuLabel
|
|
42
|
+
class='au-u-margin-top-small au-margin-bottom-small'
|
|
43
|
+
for='searchCodex'
|
|
44
|
+
@inline={{true}}
|
|
45
|
+
@required={{false}}
|
|
46
|
+
@error={{false}}
|
|
47
|
+
@warning={{false}}
|
|
48
|
+
>{{t 'citaten-plugin.search.article'}}</AuLabel>
|
|
38
49
|
<AuInput
|
|
39
|
-
id=
|
|
40
|
-
placeholder=
|
|
41
|
-
type=
|
|
42
|
-
@width=
|
|
50
|
+
id='searchCodex'
|
|
51
|
+
placeholder='{{t "citaten-plugin.search.article-placeholder"}}'
|
|
52
|
+
type='text'
|
|
53
|
+
@width='default'
|
|
43
54
|
@icon={{this.SearchIcon}}
|
|
44
|
-
@iconAlignment=
|
|
55
|
+
@iconAlignment='right'
|
|
45
56
|
value={{this.articleFilter}}
|
|
46
|
-
{{on
|
|
57
|
+
{{on 'input' (perform this.updateArticleFilter)}}
|
|
47
58
|
/>
|
|
48
59
|
</div>
|
|
49
60
|
{{! Search results }}
|
|
50
61
|
<div>
|
|
51
62
|
{{#if this.articleResource.isRunning}}
|
|
52
|
-
<div class=
|
|
53
|
-
<AuLoader @padding=
|
|
54
|
-
<span class=
|
|
63
|
+
<div class='au-o-box'>
|
|
64
|
+
<AuLoader @padding='large' />
|
|
65
|
+
<span class='au-u-hidden-visually'>{{t
|
|
66
|
+
'citaten-plugin.alert.loading'
|
|
67
|
+
}}</span>
|
|
55
68
|
</div>
|
|
56
69
|
{{else}}
|
|
57
70
|
{{#if this.error}}
|
|
58
|
-
<Common::Search::AlertLoadError
|
|
71
|
+
<Common::Search::AlertLoadError
|
|
72
|
+
@fullSize={{true}}
|
|
73
|
+
@error={{this.error}}
|
|
74
|
+
class='au-o-box'
|
|
75
|
+
/>
|
|
59
76
|
{{else}}
|
|
60
77
|
<CitationPlugin::Citations::ArticleList
|
|
61
78
|
@insertArticleCitation={{fn @insertArticleCitation @legalDocument}}
|
|
62
79
|
@articles={{this.articleResource.value}}
|
|
63
|
-
@fullSize={{true}}
|
|
80
|
+
@fullSize={{true}}
|
|
81
|
+
/>
|
|
64
82
|
{{/if}}
|
|
65
83
|
{{/if}}
|
|
66
84
|
</div>
|
|
67
85
|
</div>
|
|
68
86
|
{{! Footer }}
|
|
69
87
|
<div>
|
|
70
|
-
<div class=
|
|
71
|
-
<AuToolbar
|
|
72
|
-
|
|
73
|
-
@size="large"
|
|
74
|
-
@nowrap={{true}}>
|
|
75
|
-
<div class="au-c-pagination">
|
|
88
|
+
<div class='citaten--container-footer au-u-background-gray-100'>
|
|
89
|
+
<AuToolbar @border='top' @size='large' @nowrap={{true}}>
|
|
90
|
+
<div class='au-c-pagination'>
|
|
76
91
|
{{! Always shown, back to main dialog }}
|
|
77
|
-
<div class=
|
|
92
|
+
<div class='au-c-pagination__list-item'>
|
|
78
93
|
<AuButton
|
|
79
|
-
@skin=
|
|
94
|
+
@skin='link'
|
|
80
95
|
@icon={{this.HierarchicalBackIcon}}
|
|
81
|
-
@iconAlignment=
|
|
82
|
-
{{on
|
|
83
|
-
|
|
96
|
+
@iconAlignment='left'
|
|
97
|
+
{{on 'click' this.close}}
|
|
98
|
+
>
|
|
99
|
+
{{t 'citaten-plugin.search.back'}}
|
|
84
100
|
</AuButton>
|
|
85
101
|
</div>
|
|
86
102
|
{{! Pagination of articles }}
|
|
87
103
|
{{#if this.articleResource.value.length}}
|
|
88
104
|
<p>
|
|
89
|
-
<span class=
|
|
105
|
+
<span class='au-u-hidden-visually'>{{t
|
|
106
|
+
'citaten-plugin.search.results'
|
|
107
|
+
}}</span>
|
|
90
108
|
<strong>
|
|
91
|
-
{{this.rangeStart}}
|
|
109
|
+
{{this.rangeStart}}
|
|
110
|
+
-
|
|
111
|
+
{{this.rangeEnd}}
|
|
92
112
|
</strong>
|
|
93
|
-
{{t
|
|
113
|
+
{{t 'citaten-plugin.pagination.of'}}
|
|
94
114
|
{{this.totalCount}}
|
|
95
115
|
</p>
|
|
96
|
-
<div class=
|
|
116
|
+
<div class='au-c-pagination__list-item'>
|
|
97
117
|
{{#unless this.isFirstPage}}
|
|
98
118
|
<AuButton
|
|
99
|
-
@skin=
|
|
119
|
+
@skin='link'
|
|
100
120
|
@icon={{this.NavLeftIcon}}
|
|
101
|
-
@iconAlignment=
|
|
102
|
-
{{on
|
|
103
|
-
|
|
121
|
+
@iconAlignment='left'
|
|
122
|
+
{{on 'click' this.previousPage}}
|
|
123
|
+
>
|
|
124
|
+
{{t 'citaten-plugin.pagination.previous'}}
|
|
104
125
|
</AuButton>
|
|
105
126
|
{{/unless}}
|
|
106
127
|
{{#unless this.isLastPage}}
|
|
107
128
|
<AuButton
|
|
108
|
-
@skin=
|
|
129
|
+
@skin='link'
|
|
109
130
|
@icon={{this.NavRightIcon}}
|
|
110
|
-
@iconAlignment=
|
|
111
|
-
{{on
|
|
112
|
-
|
|
131
|
+
@iconAlignment='right'
|
|
132
|
+
{{on 'click' this.nextPage}}
|
|
133
|
+
>
|
|
134
|
+
{{t 'citaten-plugin.pagination.next'}}
|
|
113
135
|
</AuButton>
|
|
114
136
|
{{/unless}}
|
|
115
137
|
</div>
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{{#if @legalDocuments.length}}
|
|
2
|
-
<AuList @direction=
|
|
2
|
+
<AuList @direction='vertical' @divider={{true}} as |Item|>
|
|
3
3
|
{{#each @legalDocuments as |legalDocument|}}
|
|
4
|
-
<Item class=
|
|
4
|
+
<Item class='au-u-padding-left-small au-u-padding-right-small'>
|
|
5
5
|
<CitationPlugin::Citations::LegalDocumentPreview
|
|
6
6
|
@legalDocument={{legalDocument}}
|
|
7
7
|
@onCitationInsert={{fn @onCitationInsert legalDocument}}
|
|
8
8
|
@onCitationDetails={{fn @onCitationDetails legalDocument}}
|
|
9
|
-
@fullSize={{@fullSize}}
|
|
9
|
+
@fullSize={{@fullSize}}
|
|
10
|
+
/>
|
|
10
11
|
</Item>
|
|
11
12
|
{{/each}}
|
|
12
13
|
</AuList>
|
|
13
14
|
{{else}}
|
|
14
|
-
<Common::Search::AlertNoItems
|
|
15
|
+
<Common::Search::AlertNoItems
|
|
16
|
+
@fullSize={{@fullSize}}
|
|
17
|
+
class={{if @fullSize 'au-u-margin'}}
|
|
18
|
+
/>
|
|
15
19
|
{{/if}}
|