@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.
Files changed (82) hide show
  1. package/.changeset/brown-carpets-cry.md +5 -0
  2. package/.changeset/strong-weeks-invent.md +5 -0
  3. package/.release-it.json +1 -1
  4. package/.woodpecker/.verify-pr.yml +6 -0
  5. package/CHANGELOG.md +12 -0
  6. package/addon/components/article-structure-plugin/article-structure-card.hbs +11 -6
  7. package/addon/components/article-structure-plugin/structure-card.hbs +50 -39
  8. package/addon/components/besluit-type-plugin/besluit-type-select.hbs +11 -8
  9. package/addon/components/citation-plugin/citation-card.hbs +1 -4
  10. package/addon/components/citation-plugin/citation-insert.hbs +1 -1
  11. package/addon/components/citation-plugin/citations/article-list.hbs +7 -3
  12. package/addon/components/citation-plugin/citations/article-preview.hbs +12 -8
  13. package/addon/components/citation-plugin/citations/legal-document-detail.hbs +75 -53
  14. package/addon/components/citation-plugin/citations/legal-document-list.hbs +8 -4
  15. package/addon/components/citation-plugin/citations/legal-document-preview.hbs +51 -41
  16. package/addon/components/citation-plugin/citations/search-modal.hbs +1 -1
  17. package/addon/components/confidentiality-plugin/toolbar.hbs +1 -1
  18. package/addon/components/decision-plugin/decision-plugin-card.hbs +42 -12
  19. package/addon/components/document-title-plugin/insert-title-card.hbs +4 -4
  20. package/addon/components/hover-tooltip.hbs +4 -1
  21. package/addon/components/import-snippet-plugin/card.hbs +25 -11
  22. package/addon/components/loading-alert.hbs +12 -12
  23. package/addon/components/roadsign-regulation-plugin/expanded-measure.hbs +37 -22
  24. package/addon/components/roadsign-regulation-plugin/measure-template.hbs +1 -1
  25. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +11 -6
  26. package/addon/components/roadsign-regulation-plugin/roadsigns-modal.hbs +34 -26
  27. package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.hbs +28 -11
  28. package/addon/components/roadsign-regulation-plugin/roadsigns-table.hbs +83 -55
  29. package/addon/components/snippet-plugin/search-modal.hbs +1 -1
  30. package/addon/components/snippet-plugin/snippet-insert.hbs +1 -1
  31. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +10 -2
  32. package/addon/components/snippet-plugin/snippet-list/snippet-list-view.hbs +24 -18
  33. package/addon/components/snippet-plugin/snippet-list-select-rdfa.hbs +5 -5
  34. package/addon/components/standard-template-plugin/card.hbs +9 -5
  35. package/addon/components/standard-template-plugin/template-provider.hbs +7 -5
  36. package/addon/components/table-of-contents-plugin/ember-nodes/outline.hbs +1 -1
  37. package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.hbs +1 -1
  38. package/addon/components/template-comments-plugin/edit-card.hbs +4 -2
  39. package/addon/components/template-comments-plugin/insert.hbs +1 -1
  40. package/addon/components/template-comments-plugin/template-comment.hbs +3 -3
  41. package/addon/components/validation-plugin/validation-card.hbs +7 -4
  42. package/addon/components/validation-plugin/validation-item.hbs +7 -2
  43. package/addon/components/variable-plugin/address/edit.hbs +67 -34
  44. package/addon/components/variable-plugin/address/insert-variable.hbs +2 -2
  45. package/addon/components/variable-plugin/address/insert.hbs +6 -5
  46. package/addon/components/variable-plugin/codelist/edit.hbs +23 -10
  47. package/addon/components/variable-plugin/codelist/insert.hbs +2 -5
  48. package/addon/components/variable-plugin/date/date-time-picker.hbs +8 -7
  49. package/addon/components/variable-plugin/date/edit.hbs +49 -30
  50. package/addon/components/variable-plugin/date/help-modal.hbs +22 -19
  51. package/addon/components/variable-plugin/date/insert.hbs +6 -5
  52. package/addon/components/variable-plugin/date/nodeview.hbs +3 -3
  53. package/addon/components/variable-plugin/location/edit.hbs +23 -10
  54. package/addon/components/variable-plugin/location/insert.hbs +2 -2
  55. package/addon/components/variable-plugin/location/nodeview.hbs +7 -2
  56. package/addon/components/variable-plugin/number/insert.hbs +7 -7
  57. package/addon/components/variable-plugin/number/nodeview.hbs +5 -3
  58. package/addon/components/variable-plugin/number/nodeview.ts +1 -0
  59. package/addon/components/variable-plugin/text/insert.hbs +2 -2
  60. package/addon/components/variable-plugin/utils/label-input.hbs +1 -1
  61. package/addon/components/variable-plugin/variable/nodeview.hbs +7 -2
  62. package/addon/components/worship-plugin/administrative-unit-picker.hbs +2 -1
  63. package/addon/components/worship-plugin/list.hbs +1 -3
  64. package/addon/components/worship-plugin/search-modal.hbs +10 -10
  65. package/addon/components/worship-plugin/sortable-table-header.hbs +11 -5
  66. package/addon/plugins/snippet-plugin/nodes/snippet-placeholder.ts +5 -3
  67. package/app/styles/article-structure-plugin.scss +12 -6
  68. package/app/styles/besluit-plugin.scss +2 -2
  69. package/app/styles/citaten-plugin.scss +19 -16
  70. package/app/styles/confidentiality-plugin.scss +2 -2
  71. package/app/styles/document-title-plugin.scss +1 -1
  72. package/app/styles/snippet-plugin.scss +18 -1
  73. package/app/styles/variable-plugin.scss +5 -3
  74. package/declarations/addon/components/variable-plugin/number/nodeview.d.ts +1 -0
  75. package/package.json +5 -3
  76. package/pnpm-lock.yaml +4 -4
  77. package/translations/appuniversum/en-us.yaml +10 -10
  78. package/translations/appuniversum/nl-be.yaml +10 -10
  79. package/translations/en-US.yaml +4 -4
  80. package/translations/nl-BE.yaml +49 -53
  81. package/tsconfig.json +1 -1
  82. package/tsconfig.main.json +5 -16
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@lblod/ember-rdfa-editor-lblod-plugins": patch
3
+ ---
4
+
5
+ Styling fixes
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@lblod/ember-rdfa-editor-lblod-plugins": patch
3
+ ---
4
+
5
+ Apply Prettier to the codebase
package/.release-it.json CHANGED
@@ -10,4 +10,4 @@
10
10
  "ignoreVersion": true,
11
11
  "allowSameVersion": true
12
12
  }
13
- }
13
+ }
@@ -16,6 +16,12 @@ steps:
16
16
  commands:
17
17
  - corepack enable
18
18
  - pnpm lint:hbs
19
+ lint-prettier:
20
+ image: node:20-slim
21
+ group: lint
22
+ commands:
23
+ - corepack enable
24
+ - pnpm lint:prettier
19
25
  test:
20
26
  image: danlynn/ember-cli:4.12.1
21
27
  commands:
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
- <li class="au-c-list__item">
5
- <AuButton @icon={{this.AddIcon}} @iconAlignment="left" @skin="link" @disabled={{not (this.canInsertStructure structureType)}}
6
- {{on 'click' (fn this.insertStructure structureType)}}>
7
- {{t structureType.translations.insert}}
8
- </AuButton>
9
- </li>
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 @flex={{true}} @divided={{true}} @expandable={{false}} @shadow={{true}} @size="flush" as |c|>
4
- <c.header class="au-u-hidden-visually">
5
- <AuHeading @level="3" @skin="6">{{t "article-structure-plugin.title.structure-card"}}</AuHeading>
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="au-c-content--small">
8
- <AuList @divider={{true}} class="au-u-padding-top-tiny au-u-padding-bottom-tiny" as |Item|>
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="left"
13
- @skin="link"
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="left"
23
- @skin="link"
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="left"
36
- @skin="link"
50
+ @iconAlignment='left'
51
+ @skin='link'
37
52
  @alert={{true}}
38
53
  @disabled={{not this.canRemoveStructure}}
39
- aria-describedby="remove-tooltip"
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="left"
61
- @skin="link"
62
- aria-describedby="remove-content-tooltip"
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="au-u-padding-left-small">
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 "change" this.onStartNumberChange}}
94
- placeholder={{t 'article-structure-plugin.start-number.start-number'}}
95
- type="number"
96
- min="1"
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="left"
102
- class="au-u-margin-top-tiny"
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="left"
109
- @skin="secondary"
119
+ @iconAlignment='left'
120
+ @skin='secondary'
110
121
  @disabled={{not this.structureStartNumber}}
111
- class="au-u-margin-top-tiny"
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 "besluit-type-plugin.search-message"}}
7
- @noMatchesMessage={{t "besluit-type-plugin.no-matches-message"}}
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}} as |besluitType|>
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 "besluit-type-plugin.alert-title"}}
22
- @skin="warning"
23
- @size="small"
24
- class="au-u-margin-bottom-none au-u-margin-top-small">
25
- <p>{{t "besluit-type-plugin.alert-body"}}</p>
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}}
@@ -12,10 +12,7 @@
12
12
  this.documentText
13
13
  this.documentLegislationType
14
14
  }}
15
- {{did-update
16
- this.update
17
- this.activeDecoration
18
- }}
15
+ {{did-update this.update this.activeDecoration}}
19
16
  as |c|
20
17
  >
21
18
  <c.header>
@@ -1,5 +1,5 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
- <li class="au-c-list__item">
2
+ <li class='au-c-list__item'>
3
3
  <AuButton
4
4
  @icon={{this.AddIcon}}
5
5
  @iconAlignment='left'
@@ -1,13 +1,17 @@
1
1
  {{#if @articles.length}}
2
- <AuList @direction="vertical" @divider={{true}} as |Item|>
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 @fullSize={{@fullSize}} class={{if @fullSize "au-u-margin"}}/>
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="au-u-margin" ...attributes>
3
- <AuHeading @level="3" @skin="5" class="au-u-margin-bottom-small">
4
- {{@article.number}} ({{@article.dateInForce}} - {{if @article.dateNoLongerInForce @article.dateNoLongerInForce "…"}})
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="primary"
13
+ @skin='primary'
11
14
  @icon={{this.PlusTextIcon}}
12
- @iconAlignment="left"
13
- class="au-u-margin-top-small"
14
- {{on "click" @insertArticleCitation}}>
15
- {{t "citaten-plugin.references.refer-article"}}
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 class="citaten--main-container au-u-flex au-u-flex--column au-u-flex--between">
3
- <div class="citaten--container-content">
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="citaten--container-header au-u-background-gray-100 au-o-box">
6
- <AuHeading @level="2" @skin="4">
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="au-u-margin-top-small au-u-margin-bottom-small"
12
- @skin="border"
13
+ class='au-u-margin-top-small au-u-margin-bottom-small'
14
+ @skin='border'
13
15
  @icon={{this.CalendarIcon}}
14
- @iconAlignment="left">
16
+ @iconAlignment='left'
17
+ >
15
18
  {{@legalDocument.publicationDate}}
16
19
  </AuPill>
17
20
  {{/if}}
18
- <br/>
21
+ <br />
19
22
  <AuButton
20
- @skin="primary"
23
+ @skin='primary'
21
24
  @icon={{this.PlusTextIcon}}
22
- @iconAlignment="left"
23
- class="au-u-margin-right"
24
- {{on "click" (fn @insertLegalDocumentCitation @legalDocument)}}>
25
- {{t "citaten-plugin.references.refer-whole"}}
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="primary"
32
+ @skin='primary'
29
33
  @icon={{this.LinkExternalIcon}}
30
- @iconAlignment="left"
34
+ @iconAlignment='left'
31
35
  href={{@legalDocument.uri}}
32
- rel="noreferrer noopener">
33
- {{t "citaten-plugin.references.lookup-codex"}}
36
+ rel='noreferrer noopener'
37
+ >
38
+ {{t 'citaten-plugin.references.lookup-codex'}}
34
39
  </AuLinkExternal>
35
40
  {{! Search field }}
36
- <AuLabel class="au-u-margin-top-small au-margin-bottom-small" for="searchCodex" @inline={{true}}
37
- @required={{false}} @error={{false}} @warning={{false}}>{{t "citaten-plugin.search.article"}}</AuLabel>
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="searchCodex"
40
- placeholder="{{t "citaten-plugin.search.article-placeholder"}}"
41
- type="text"
42
- @width="default"
50
+ id='searchCodex'
51
+ placeholder='{{t "citaten-plugin.search.article-placeholder"}}'
52
+ type='text'
53
+ @width='default'
43
54
  @icon={{this.SearchIcon}}
44
- @iconAlignment="right"
55
+ @iconAlignment='right'
45
56
  value={{this.articleFilter}}
46
- {{on "input" (perform this.updateArticleFilter)}}
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="au-o-box">
53
- <AuLoader @padding="large"/>
54
- <span class="au-u-hidden-visually">{{t "citaten-plugin.alert.loading"}}</span>
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 @fullSize={{true}} @error={{this.error}} class="au-o-box"/>
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="citaten--container-footer au-u-background-gray-100">
71
- <AuToolbar
72
- @border="top"
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="au-c-pagination__list-item">
92
+ <div class='au-c-pagination__list-item'>
78
93
  <AuButton
79
- @skin="link"
94
+ @skin='link'
80
95
  @icon={{this.HierarchicalBackIcon}}
81
- @iconAlignment="left"
82
- {{on "click" this.close}}>
83
- {{t "citaten-plugin.search.back"}}
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="au-u-hidden-visually">{{t "citaten-plugin.search.results"}}</span>
105
+ <span class='au-u-hidden-visually'>{{t
106
+ 'citaten-plugin.search.results'
107
+ }}</span>
90
108
  <strong>
91
- {{this.rangeStart}} - {{this.rangeEnd}}
109
+ {{this.rangeStart}}
110
+ -
111
+ {{this.rangeEnd}}
92
112
  </strong>
93
- {{t "citaten-plugin.pagination.of"}}
113
+ {{t 'citaten-plugin.pagination.of'}}
94
114
  {{this.totalCount}}
95
115
  </p>
96
- <div class="au-c-pagination__list-item">
116
+ <div class='au-c-pagination__list-item'>
97
117
  {{#unless this.isFirstPage}}
98
118
  <AuButton
99
- @skin="link"
119
+ @skin='link'
100
120
  @icon={{this.NavLeftIcon}}
101
- @iconAlignment="left"
102
- {{on "click" this.previousPage}}>
103
- {{t "citaten-plugin.pagination.previous"}}
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="link"
129
+ @skin='link'
109
130
  @icon={{this.NavRightIcon}}
110
- @iconAlignment="right"
111
- {{on "click" this.nextPage}}>
112
- {{t "citaten-plugin.pagination.next"}}
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="vertical" @divider={{true}} as |Item|>
2
+ <AuList @direction='vertical' @divider={{true}} as |Item|>
3
3
  {{#each @legalDocuments as |legalDocument|}}
4
- <Item class="au-u-padding-left-small au-u-padding-right-small">
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 @fullSize={{@fullSize}} class={{if @fullSize "au-u-margin"}}/>
15
+ <Common::Search::AlertNoItems
16
+ @fullSize={{@fullSize}}
17
+ class={{if @fullSize 'au-u-margin'}}
18
+ />
15
19
  {{/if}}