@lblod/ember-rdfa-editor-lblod-plugins 19.0.0 → 19.1.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.
Files changed (92) hide show
  1. package/.release-it.json +1 -1
  2. package/.woodpecker/.verify-pr.yml +6 -0
  3. package/CHANGELOG.md +10 -0
  4. package/README.md +21 -0
  5. package/addon/components/article-structure-plugin/article-structure-card.hbs +11 -6
  6. package/addon/components/article-structure-plugin/structure-card.hbs +50 -39
  7. package/addon/components/besluit-topic-plugin/besluit-topic-select.hbs +19 -0
  8. package/addon/components/besluit-topic-plugin/besluit-topic-select.ts +32 -0
  9. package/addon/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.hbs +93 -0
  10. package/addon/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.ts +151 -0
  11. package/addon/components/besluit-type-plugin/besluit-type-select.hbs +11 -8
  12. package/addon/components/citation-plugin/citation-card.hbs +1 -4
  13. package/addon/components/citation-plugin/citation-insert.hbs +1 -1
  14. package/addon/components/citation-plugin/citations/article-list.hbs +7 -3
  15. package/addon/components/citation-plugin/citations/article-preview.hbs +12 -8
  16. package/addon/components/citation-plugin/citations/legal-document-detail.hbs +75 -53
  17. package/addon/components/citation-plugin/citations/legal-document-list.hbs +8 -4
  18. package/addon/components/citation-plugin/citations/legal-document-preview.hbs +51 -41
  19. package/addon/components/citation-plugin/citations/search-modal.hbs +1 -1
  20. package/addon/components/confidentiality-plugin/toolbar.hbs +1 -1
  21. package/addon/components/decision-plugin/decision-plugin-card.hbs +42 -12
  22. package/addon/components/document-title-plugin/insert-title-card.hbs +4 -4
  23. package/addon/components/hover-tooltip.hbs +4 -1
  24. package/addon/components/import-snippet-plugin/card.hbs +25 -11
  25. package/addon/components/loading-alert.hbs +12 -12
  26. package/addon/components/roadsign-regulation-plugin/expanded-measure.hbs +37 -22
  27. package/addon/components/roadsign-regulation-plugin/measure-template.hbs +1 -1
  28. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +11 -6
  29. package/addon/components/roadsign-regulation-plugin/roadsigns-modal.hbs +34 -26
  30. package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.hbs +28 -11
  31. package/addon/components/roadsign-regulation-plugin/roadsigns-table.hbs +83 -55
  32. package/addon/components/snippet-plugin/search-modal.hbs +1 -1
  33. package/addon/components/snippet-plugin/snippet-insert.hbs +1 -1
  34. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +10 -2
  35. package/addon/components/snippet-plugin/snippet-list/snippet-list-view.hbs +24 -18
  36. package/addon/components/snippet-plugin/snippet-list-select-rdfa.hbs +5 -5
  37. package/addon/components/standard-template-plugin/card.hbs +9 -5
  38. package/addon/components/standard-template-plugin/template-provider.hbs +7 -5
  39. package/addon/components/table-of-contents-plugin/ember-nodes/outline.hbs +1 -1
  40. package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.hbs +1 -1
  41. package/addon/components/template-comments-plugin/edit-card.hbs +4 -2
  42. package/addon/components/template-comments-plugin/insert.hbs +1 -1
  43. package/addon/components/template-comments-plugin/template-comment.hbs +3 -3
  44. package/addon/components/validation-plugin/validation-card.hbs +7 -4
  45. package/addon/components/validation-plugin/validation-item.hbs +7 -2
  46. package/addon/components/variable-plugin/address/edit.hbs +67 -34
  47. package/addon/components/variable-plugin/address/insert-variable.hbs +2 -2
  48. package/addon/components/variable-plugin/address/insert.hbs +6 -5
  49. package/addon/components/variable-plugin/codelist/edit.hbs +23 -10
  50. package/addon/components/variable-plugin/codelist/insert.hbs +2 -5
  51. package/addon/components/variable-plugin/date/date-time-picker.hbs +8 -7
  52. package/addon/components/variable-plugin/date/edit.hbs +49 -30
  53. package/addon/components/variable-plugin/date/help-modal.hbs +22 -19
  54. package/addon/components/variable-plugin/date/insert.hbs +6 -5
  55. package/addon/components/variable-plugin/date/nodeview.hbs +3 -3
  56. package/addon/components/variable-plugin/location/edit.hbs +23 -10
  57. package/addon/components/variable-plugin/location/insert.hbs +2 -2
  58. package/addon/components/variable-plugin/location/nodeview.hbs +7 -2
  59. package/addon/components/variable-plugin/number/insert.hbs +7 -7
  60. package/addon/components/variable-plugin/number/nodeview.hbs +5 -3
  61. package/addon/components/variable-plugin/text/insert.hbs +2 -2
  62. package/addon/components/variable-plugin/utils/label-input.hbs +1 -1
  63. package/addon/components/variable-plugin/variable/nodeview.hbs +7 -2
  64. package/addon/components/worship-plugin/administrative-unit-picker.hbs +2 -1
  65. package/addon/components/worship-plugin/list.hbs +1 -3
  66. package/addon/components/worship-plugin/search-modal.hbs +10 -10
  67. package/addon/components/worship-plugin/sortable-table-header.hbs +11 -5
  68. package/addon/plugins/besluit-topic-plugin/commands/update-besluit-topic-resource.ts +59 -0
  69. package/addon/plugins/besluit-topic-plugin/index.ts +3 -0
  70. package/addon/plugins/besluit-topic-plugin/utils/fetchBesluitTopics.ts +66 -0
  71. package/addon/plugins/besluit-topic-plugin/utils/helpers.ts +36 -0
  72. package/app/components/besluit-topic-plugin/besluit-topic-select.js +1 -0
  73. package/app/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.js +1 -0
  74. package/app/styles/besluit-plugin.scss +2 -2
  75. package/app/styles/citaten-plugin.scss +19 -16
  76. package/app/styles/confidentiality-plugin.scss +2 -2
  77. package/app/styles/document-title-plugin.scss +1 -1
  78. package/app/styles/snippet-plugin.scss +1 -1
  79. package/app/styles/variable-plugin.scss +5 -3
  80. package/declarations/addon/components/besluit-topic-plugin/besluit-topic-select.d.ts +12 -0
  81. package/declarations/addon/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.d.ts +28 -0
  82. package/declarations/addon/plugins/besluit-topic-plugin/commands/update-besluit-topic-resource.d.ts +8 -0
  83. package/declarations/addon/plugins/besluit-topic-plugin/index.d.ts +3 -0
  84. package/declarations/addon/plugins/besluit-topic-plugin/utils/fetchBesluitTopics.d.ts +16 -0
  85. package/declarations/addon/plugins/besluit-topic-plugin/utils/helpers.d.ts +4 -0
  86. package/package.json +3 -1
  87. package/translations/appuniversum/en-us.yaml +10 -10
  88. package/translations/appuniversum/nl-be.yaml +10 -10
  89. package/translations/en-US.yaml +18 -5
  90. package/translations/nl-BE.yaml +61 -52
  91. package/tsconfig.json +1 -1
  92. package/tsconfig.main.json +5 -16
@@ -1,8 +1,10 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
2
  <div>
3
- {{yield (hash
4
- applicableTemplates=this.applicableTemplates
5
- hasApplicableTemplates=this.hasApplicableTemplates
6
- insert=this.insert
7
- )}}
3
+ {{yield
4
+ (hash
5
+ applicableTemplates=this.applicableTemplates
6
+ hasApplicableTemplates=this.hasApplicableTemplates
7
+ insert=this.insert
8
+ )
9
+ }}
8
10
  </div>
@@ -18,4 +18,4 @@
18
18
  {{/if}}
19
19
  </Item>
20
20
  {{/each}}
21
- </AuList>
21
+ </AuList>
@@ -7,4 +7,4 @@
7
7
  @onEntryClick={{this.moveToPosition}}
8
8
  />
9
9
  {{/if}}
10
- </div>
10
+ </div>
@@ -5,12 +5,14 @@
5
5
  @divided={{true}}
6
6
  @expandable={{false}}
7
7
  @shadow={{true}}
8
- @size='flush' as |c|
8
+ @size='flush'
9
+ as |c|
9
10
  >
10
11
  <c.content class='au-c-content--small'>
11
12
  <AuList
12
13
  @divider={{true}}
13
- class='au-u-padding-top-tiny au-u-padding-bottom-tiny' as |Item|
14
+ class='au-u-padding-top-tiny au-u-padding-bottom-tiny'
15
+ as |Item|
14
16
  >
15
17
  <Item>
16
18
  <AuButton
@@ -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'
@@ -4,9 +4,9 @@
4
4
  @title={{this.translation.title}}
5
5
  @skin='info'
6
6
  @icon={{this.CircleInfoIcon}}
7
- class='say-template-comment {{
8
- if this.selectionInside 'ProseMirror-selectednode'
9
- }} say-default-cursor'
7
+ class='say-template-comment
8
+ {{if this.selectionInside "ProseMirror-selectednode"}}
9
+ say-default-cursor'
10
10
  >
11
11
  <div class='say-text-cursor'>
12
12
  {{yield}}
@@ -1,13 +1,16 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
2
  {{#if this.shouldShow}}
3
- <AuCard @shadow={{true}} @size="small" as |Card|>
3
+ <AuCard @shadow={{true}} @size='small' as |Card|>
4
4
  <Card.header>
5
- <AuHeading @level="2" @skin="4">{{@title}}</AuHeading>
5
+ <AuHeading @level='2' @skin='4'>{{@title}}</AuHeading>
6
6
  </Card.header>
7
7
  <Card.content>
8
8
  {{#each this.results as |result|}}
9
- <ValidationPlugin::ValidationItem @controller={{@controller}} @result={{result}}/>
9
+ <ValidationPlugin::ValidationItem
10
+ @controller={{@controller}}
11
+ @result={{result}}
12
+ />
10
13
  {{/each}}
11
14
  </Card.content>
12
15
  </AuCard>
13
- {{/if}}
16
+ {{/if}}
@@ -1,3 +1,8 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
- <AuAlert @size='small' @icon={{this.icon}} @title={{this.message}} @skin={{this.skin}} @closable={{false}}>
3
- </AuAlert>
2
+ <AuAlert
3
+ @size='small'
4
+ @icon={{this.icon}}
5
+ @title={{this.message}}
6
+ @skin={{this.skin}}
7
+ @closable={{false}}
8
+ />
@@ -1,65 +1,89 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
2
  {{#if this.showCard}}
3
- <AuCard @flex={{true}} @divided={{true}} @shadow={{true}} @size="small" as |c|>
3
+ <AuCard
4
+ @flex={{true}}
5
+ @divided={{true}}
6
+ @shadow={{true}}
7
+ @size='small'
8
+ as |c|
9
+ >
4
10
  <c.content>
5
- <form class="au-c-form">
11
+ <form class='au-c-form'>
6
12
  <AuLabel for='municipality-select'>
7
- {{t "editor-plugins.address.edit.municipality.label"}}*
13
+ {{t 'editor-plugins.address.edit.municipality.label'}}*
8
14
  </AuLabel>
9
15
  <PowerSelect
10
- id="municipality-select"
11
- @loadingMessage={{t "editor-plugins.utils.loading"}}
12
- @searchMessage={{t "editor-plugins.address.edit.municipality.search-message"}}
13
- @noMatchesMessage={{t "editor-plugins.address.edit.municipality.no-results"}}
14
- @placeholder={{t "editor-plugins.address.edit.municipality.placeholder"}}
16
+ id='municipality-select'
17
+ @loadingMessage={{t 'editor-plugins.utils.loading'}}
18
+ @searchMessage={{t
19
+ 'editor-plugins.address.edit.municipality.search-message'
20
+ }}
21
+ @noMatchesMessage={{t
22
+ 'editor-plugins.address.edit.municipality.no-results'
23
+ }}
24
+ @placeholder={{t
25
+ 'editor-plugins.address.edit.municipality.placeholder'
26
+ }}
15
27
  @allowClear={{true}}
16
28
  @renderInPlace={{true}}
17
29
  @searchEnabled={{true}}
18
30
  @search={{perform this.searchMunicipality}}
19
31
  @selected={{this.newMunicipality}}
20
- @onChange={{this.selectMunicipality}} as |municipality|>
32
+ @onChange={{this.selectMunicipality}}
33
+ as |municipality|
34
+ >
21
35
  {{municipality}}
22
36
  </PowerSelect>
23
37
  <AuLabel for='streetname-select'>
24
- {{t "editor-plugins.address.edit.street.label"}}*
38
+ {{t 'editor-plugins.address.edit.street.label'}}*
25
39
  </AuLabel>
26
40
  <PowerSelect
27
- id="streetname-select"
28
- @loadingMessage={{t "editor-plugins.utils.loading"}}
29
- @searchMessage={{t "editor-plugins.address.edit.street.search-message"}}
30
- @noMatchesMessage={{t "editor-plugins.address.edit.street.no-results"}}
31
- @placeholder={{t "editor-plugins.address.edit.street.placeholder"}}
41
+ id='streetname-select'
42
+ @loadingMessage={{t 'editor-plugins.utils.loading'}}
43
+ @searchMessage={{t
44
+ 'editor-plugins.address.edit.street.search-message'
45
+ }}
46
+ @noMatchesMessage={{t
47
+ 'editor-plugins.address.edit.street.no-results'
48
+ }}
49
+ @placeholder={{t 'editor-plugins.address.edit.street.placeholder'}}
32
50
  @allowClear={{true}}
33
51
  @renderInPlace={{true}}
34
52
  @searchEnabled={{true}}
35
53
  @search={{perform this.searchStreet}}
36
54
  @selected={{this.newStreetName}}
37
55
  @disabled={{not this.canUpdateStreet}}
38
- @onChange={{this.selectStreet}} as |street|>
56
+ @onChange={{this.selectStreet}}
57
+ as |street|
58
+ >
39
59
  {{street}}
40
60
  </PowerSelect>
41
- <div class="au-o-grid au-o-grid--tiny">
42
- <div class="au-o-grid__item au-u-1-2@medium">
43
- <AuLabel for="housenumber-select">
44
- {{t "editor-plugins.address.edit.housenumber.label"}}
61
+ <div class='au-o-grid au-o-grid--tiny'>
62
+ <div class='au-o-grid__item au-u-1-2@medium'>
63
+ <AuLabel for='housenumber-select'>
64
+ {{t 'editor-plugins.address.edit.housenumber.label'}}
45
65
  </AuLabel>
46
66
  <AuNativeInput
47
- id="housenumber-select"
48
- placeholder={{t "editor-plugins.address.edit.housenumber.placeholder"}}
49
- @width="block"
67
+ id='housenumber-select'
68
+ placeholder={{t
69
+ 'editor-plugins.address.edit.housenumber.placeholder'
70
+ }}
71
+ @width='block'
50
72
  value={{this.newHousenumber}}
51
73
  @disabled={{not this.canUpdateHousenumber}}
52
74
  {{on 'input' this.updateHousenumber}}
53
75
  />
54
76
  </div>
55
- <div class="au-o-grid__item au-u-1-2@medium">
56
- <AuLabel for="busnumber-select">
57
- {{t "editor-plugins.address.edit.busnumber.label"}}
77
+ <div class='au-o-grid__item au-u-1-2@medium'>
78
+ <AuLabel for='busnumber-select'>
79
+ {{t 'editor-plugins.address.edit.busnumber.label'}}
58
80
  </AuLabel>
59
81
  <AuNativeInput
60
- id="busnumber-select"
61
- placeholder={{t "editor-plugins.address.edit.busnumber.placeholder"}}
62
- @width="block"
82
+ id='busnumber-select'
83
+ placeholder={{t
84
+ 'editor-plugins.address.edit.busnumber.placeholder'
85
+ }}
86
+ @width='block'
63
87
  value={{this.newBusnumber}}
64
88
  @disabled={{not this.canUpdateBusnumber}}
65
89
  {{on 'input' this.updateBusnumber}}
@@ -68,21 +92,30 @@
68
92
  </div>
69
93
 
70
94
  {{#if this.newAddress.isRunning}}
71
- <LoadingAlert @title={{t "editor-plugins.address.edit.loading"}} @size="small" @skin="info"/>
95
+ <LoadingAlert
96
+ @title={{t 'editor-plugins.address.edit.loading'}}
97
+ @size='small'
98
+ @skin='info'
99
+ />
72
100
  {{/if}}
73
101
  {{#if this.message}}
74
- <AuAlert @skin={{this.message.skin}} @icon={{this.message.icon}} @title={{this.message.title}}>
102
+ <AuAlert
103
+ @skin={{this.message.skin}}
104
+ @icon={{this.message.icon}}
105
+ @title={{this.message.title}}
106
+ >
75
107
  {{this.message.body}}
76
108
  </AuAlert>
77
109
  {{/if}}
78
110
  <AuButton
79
111
  {{on 'click' this.updateAddressVariable}}
80
- @disabled={{not this.canUpdateAddressVariable}}>
81
- {{t "editor-plugins.utils.insert"}}
112
+ @disabled={{not this.canUpdateAddressVariable}}
113
+ >
114
+ {{t 'editor-plugins.utils.insert'}}
82
115
  </AuButton>
83
116
 
84
117
  </form>
85
118
 
86
119
  </c.content>
87
120
  </AuCard>
88
- {{/if}}
121
+ {{/if}}
@@ -1,7 +1,7 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
2
  <AuFormRow>
3
- <VariablePlugin::Utils::LabelInput
4
- @label={{this.label}}
3
+ <VariablePlugin::Utils::LabelInput
4
+ @label={{this.label}}
5
5
  @updateLabel={{this.updateLabel}}
6
6
  />
7
7
  </AuFormRow>
@@ -1,11 +1,12 @@
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
- @iconAlignment="left"
6
- @skin="link"
5
+ @iconAlignment='left'
6
+ @skin='link'
7
7
  {{on 'click' (fn this.insertAddress true)}}
8
- @disabled={{not this.canInsertAddress}}>
9
- {{t "editor-plugins.address.insert"}}
8
+ @disabled={{not this.canInsertAddress}}
9
+ >
10
+ {{t 'editor-plugins.address.insert'}}
10
11
  </AuButton>
11
12
  </li>
@@ -1,9 +1,17 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
2
  {{#if this.showCard}}
3
- <AuCard @flex={{true}} @divided={{true}} @isOpenInitially={{true}} @expandable={{true}} @shadow={{true}} @size="small" as |c|>
3
+ <AuCard
4
+ @flex={{true}}
5
+ @divided={{true}}
6
+ @isOpenInitially={{true}}
7
+ @expandable={{true}}
8
+ @shadow={{true}}
9
+ @size='small'
10
+ as |c|
11
+ >
4
12
  <c.header>
5
- <AuHeading @level="3" @skin="6">
6
- {{t "variable-plugin.enter-variable-value"}}
13
+ <AuHeading @level='3' @skin='6'>
14
+ {{t 'variable-plugin.enter-variable-value'}}
7
15
  </AuHeading>
8
16
  </c.header>
9
17
  <c.content>
@@ -12,30 +20,35 @@
12
20
  </AuLabel>
13
21
  {{#if this.multiSelect}}
14
22
  <PowerSelectMultiple
15
- id="codelist-select"
23
+ id='codelist-select'
16
24
  @allowClear={{false}}
17
25
  @searchEnabled={{false}}
18
26
  @options={{this.codelistOptions.value.options}}
19
27
  @selected={{this.selectedCodelistOption}}
20
- @onChange={{this.updateCodelistOption}} as |option|
28
+ @onChange={{this.updateCodelistOption}}
29
+ as |option|
21
30
  >
22
31
  {{option.label}}
23
32
  </PowerSelectMultiple>
24
33
  {{else}}
25
34
  <PowerSelect
26
- id="codelist-select"
35
+ id='codelist-select'
27
36
  @allowClear={{false}}
28
37
  @searchEnabled={{false}}
29
38
  @options={{this.codelistOptions.value.options}}
30
39
  @selected={{this.selectedCodelistOption}}
31
- @onChange={{this.updateCodelistOption}} as |option|
40
+ @onChange={{this.updateCodelistOption}}
41
+ as |option|
32
42
  >
33
43
  {{option.label}}
34
44
  </PowerSelect>
35
45
  {{/if}}
36
- <AuButton {{on 'click' this.insert}} @disabled={{not this.selectedCodelistOption}}>
37
- {{t "editor-plugins.utils.insert"}}
46
+ <AuButton
47
+ {{on 'click' this.insert}}
48
+ @disabled={{not this.selectedCodelistOption}}
49
+ >
50
+ {{t 'editor-plugins.utils.insert'}}
38
51
  </AuButton>
39
52
  </c.content>
40
53
  </AuCard>
41
- {{/if}}
54
+ {{/if}}
@@ -20,14 +20,11 @@
20
20
  {{style.label}}
21
21
  </PowerSelect>
22
22
  <AuFormRow>
23
- <VariablePlugin::Utils::LabelInput
23
+ <VariablePlugin::Utils::LabelInput
24
24
  @label={{this.label}}
25
25
  @updateLabel={{this.updateLabel}}
26
26
  />
27
27
  </AuFormRow>
28
- <AuButton
29
- {{on 'click' this.insert}}
30
- @disabled={{not this.selectedCodelist}}
31
- >
28
+ <AuButton {{on 'click' this.insert}} @disabled={{not this.selectedCodelist}}>
32
29
  {{t 'variable-plugin.button'}}
33
30
  </AuButton>
@@ -3,17 +3,18 @@
3
3
  <AuDatePicker
4
4
  @onChange={{this.onChangeDate}}
5
5
  @value={{this.date}}
6
- @label={{t "date-plugin.card.label"}}
7
- @localization={{this.datePickerLocalization}}/>
6
+ @label={{t 'date-plugin.card.label'}}
7
+ @localization={{this.datePickerLocalization}}
8
+ />
8
9
  </AuFormRow>
9
10
  {{yield}}
10
11
  {{#unless @onlyDate}}
11
12
  <AuFormRow>
12
13
  <AuTimePicker
13
- @hoursLabel={{t "date-plugin.card.hours"}}
14
- @minutesLabel={{t "date-plugin.card.minutes"}}
15
- @secondsLabel={{t "date-plugin.card.seconds"}}
16
- @nowLabel={{t "date-plugin.card.now"}}
14
+ @hoursLabel={{t 'date-plugin.card.hours'}}
15
+ @minutesLabel={{t 'date-plugin.card.minutes'}}
16
+ @secondsLabel={{t 'date-plugin.card.seconds'}}
17
+ @nowLabel={{t 'date-plugin.card.now'}}
17
18
  @hours={{this.hours}}
18
19
  @minutes={{this.minutes}}
19
20
  @seconds={{this.seconds}}
@@ -22,4 +23,4 @@
22
23
  @onChange={{this.onChangeTime}}
23
24
  />
24
25
  </AuFormRow>
25
- {{/unless}}
26
+ {{/unless}}
@@ -1,12 +1,14 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
2
  <div>
3
3
  {{#if this.showCard}}
4
- <AuCard @shadow={{true}} @size="flush" as |c|>
5
- <c.header class="au-u-hidden-visually">
6
- <AuHeading @level="3" @skin="6">{{t "date-plugin.card.title"}}</AuHeading>
4
+ <AuCard @shadow={{true}} @size='flush' as |c|>
5
+ <c.header class='au-u-hidden-visually'>
6
+ <AuHeading @level='3' @skin='6'>{{t
7
+ 'date-plugin.card.title'
8
+ }}</AuHeading>
7
9
  </c.header>
8
- <c.content class="au-o-box au-o-box--small">
9
- <div class="au-o-flow au-o-flow--small">
10
+ <c.content class='au-o-box au-o-box--small'>
11
+ <div class='au-o-flow au-o-flow--small'>
10
12
  <VariablePlugin::Date::DateTimePicker
11
13
  @onChange={{this.changeDate}}
12
14
  @value={{this.pickerDate}}
@@ -14,32 +16,37 @@
14
16
  @showSeconds={{this.showSeconds}}
15
17
  >
16
18
 
17
- <AuFormRow @alignment="inline">
19
+ <AuFormRow @alignment='inline'>
18
20
  <AuCheckbox
19
- @name="include-time"
20
- @disabled={{eq this.dateFormatType "custom"}}
21
+ @name='include-time'
22
+ @disabled={{eq this.dateFormatType 'custom'}}
21
23
  @checked={{not this.onlyDate}}
22
24
  @onChange={{this.changeIncludeTime}}
23
25
  >
24
26
  {{t 'date-plugin.card.include-time'}}
25
27
  </AuCheckbox>
26
28
  {{#if this.isCustom}}
27
- <this.Velcro @placement="top" @offsetOptions={{hash mainAxis=10}} as |velcro|>
29
+ <this.Velcro
30
+ @placement='top'
31
+ @offsetOptions={{hash mainAxis=10}}
32
+ as |velcro|
33
+ >
28
34
  <AuBadge
29
- @size="small"
35
+ @size='small'
30
36
  @icon={{this.InfoCircleIcon}}
31
- aria-describedby="date-plugin-time-info-tooltip"
37
+ aria-describedby='date-plugin-time-info-tooltip'
32
38
  {{velcro.hook}}
33
- {{on "mouseenter" this.showTooltip }}
34
- {{on "mouseleave" this.hideTooltip}}
35
- {{on "focus" this.showTooltip }}
36
- {{on "blur" this.hideTooltip }}
39
+ {{on 'mouseenter' this.showTooltip}}
40
+ {{on 'mouseleave' this.hideTooltip}}
41
+ {{on 'focus' this.showTooltip}}
42
+ {{on 'blur' this.hideTooltip}}
37
43
  />
38
44
  {{#if this.tooltipOpen}}
39
45
  <AuPill
40
- id="date-plugin-time-info-tooltip"
41
- role="tooltip"
42
- {{velcro.loop}}>
46
+ id='date-plugin-time-info-tooltip'
47
+ role='tooltip'
48
+ {{velcro.loop}}
49
+ >
43
50
  {{t 'date-plugin.card.info-custom-time'}}
44
51
  </AuPill>
45
52
  {{/if}}
@@ -48,35 +55,44 @@
48
55
  </AuFormRow>
49
56
  </VariablePlugin::Date::DateTimePicker>
50
57
  <AuRadioGroup
51
- @name="dateFormat"
58
+ @name='dateFormat'
52
59
  @selected={{this.dateFormatType}}
53
60
  @onChange={{this.setDateFormatFromKey}}
54
61
  as |Group|
55
62
  >
56
63
  {{#each this.formats as |format|}}
57
64
  <Group.Radio @value={{format.key}}>
58
- {{if format.label format.label (if this.onlyDate format.dateFormat format.dateTimeFormat)}}
65
+ {{if
66
+ format.label
67
+ format.label
68
+ (if this.onlyDate format.dateFormat format.dateTimeFormat)
69
+ }}
59
70
  </Group.Radio>
60
71
  {{/each}}
61
72
  {{#if this.isCustomAllowed}}
62
- <Group.Radio @value="custom">
63
- {{t "date-plugin.card.custom-date" }}
73
+ <Group.Radio @value='custom'>
74
+ {{t 'date-plugin.card.custom-date'}}
64
75
  </Group.Radio>
65
76
  {{/if}}
66
77
  </AuRadioGroup>
67
- {{#if (eq this.dateFormatType "custom")}}
68
- <AuFormRow @alignment="post">
69
- <AuButton @skin="secondary" @icon={{this.InfoCircleIcon}}
70
- {{on 'click' this.toggleHelpModal}}>
71
- </AuButton>
78
+ {{#if (eq this.dateFormatType 'custom')}}
79
+ <AuFormRow @alignment='post'>
80
+ <AuButton
81
+ @skin='secondary'
82
+ @icon={{this.InfoCircleIcon}}
83
+ {{on 'click' this.toggleHelpModal}}
84
+ />
72
85
  <AuNativeInput
73
86
  @error={{this.customDateFormatError}}
74
87
  value={{this.documentDateFormat}}
75
- {{on "input" this.setCustomDateFormat}}
88
+ {{on 'input' this.setCustomDateFormat}}
76
89
  />
77
90
  </AuFormRow>
78
91
  {{#if this.humanError}}
79
- <AuPill @skin="error" @icon={{this.CrossIcon}}>{{this.humanError}}</AuPill>
92
+ <AuPill
93
+ @skin='error'
94
+ @icon={{this.CrossIcon}}
95
+ >{{this.humanError}}</AuPill>
80
96
  {{/if}}
81
97
  {{/if}}
82
98
  </div>
@@ -84,4 +100,7 @@
84
100
  </AuCard>
85
101
  {{/if}}
86
102
  </div>
87
- <VariablePlugin::Date::HelpModal @modalOpen={{this.helpModalOpen}} @closeModal={{this.toggleHelpModal}} />
103
+ <VariablePlugin::Date::HelpModal
104
+ @modalOpen={{this.helpModalOpen}}
105
+ @closeModal={{this.toggleHelpModal}}
106
+ />
@@ -4,7 +4,8 @@
4
4
  @closeModal={{@closeModal}}
5
5
  @modalOpen={{@modalOpen}}
6
6
  @size='default'
7
- as |Modal|>
7
+ as |Modal|
8
+ >
8
9
  <Modal.Body>
9
10
  <div>
10
11
  <p>{{t 'date-plugin.help.first-line'}}</p>
@@ -20,80 +21,82 @@
20
21
  <:body>
21
22
  <tr>
22
23
  <td>{{t 'date-plugin.help.short-weekday-title'}}</td>
23
- {{!-- template-lint-disable no-bare-strings --}}
24
+ {{! template-lint-disable no-bare-strings }}
24
25
  <td>E</td>
25
26
  <td>{{this.formatExample 'E'}}</td>
26
27
  </tr>
27
28
  <tr>
28
29
  <td>{{t 'date-plugin.help.long-weekday-title'}}</td>
29
- {{!-- template-lint-disable no-bare-strings --}}
30
+ {{! template-lint-disable no-bare-strings }}
30
31
  <td>EEEE</td>
31
32
  <td>{{this.formatExample 'EEEE'}}</td>
32
33
  </tr>
33
34
  <tr>
34
35
  <td>{{t 'date-plugin.help.month-day'}}</td>
35
- {{!-- template-lint-disable no-bare-strings --}}
36
+ {{! template-lint-disable no-bare-strings }}
36
37
  <td>dd</td>
37
38
  <td>{{this.formatExample 'dd'}}</td>
38
39
  </tr>
39
40
  <tr>
40
41
  <td>{{t 'date-plugin.help.short-month'}}</td>
41
- {{!-- template-lint-disable no-bare-strings --}}
42
+ {{! template-lint-disable no-bare-strings }}
42
43
  <td>MM</td>
43
44
  <td>{{this.formatExample 'MM'}}</td>
44
45
  </tr>
45
46
  <tr>
46
47
  <td>{{t 'date-plugin.help.long-month-title'}}</td>
47
- {{!-- template-lint-disable no-bare-strings --}}
48
+ {{! template-lint-disable no-bare-strings }}
48
49
  <td>MMMM</td>
49
50
  <td>{{this.formatExample 'MMMM'}}</td>
50
51
  </tr>
51
52
  <tr>
52
53
  <td>{{t 'date-plugin.help.long-year'}}</td>
53
- {{!-- template-lint-disable no-bare-strings --}}
54
+ {{! template-lint-disable no-bare-strings }}
54
55
  <td>yyyy</td>
55
56
  <td>{{this.formatExample 'yyyy'}}</td>
56
57
  </tr>
57
58
  </:body>
58
59
  </AuTable>
59
- <p>{{t "date-plugin.help.detailed-info"}} <a href="https://date-fns.org/v2.29.3/docs/format">{{t
60
- "date-plugin.help.docs-link"}}</a></p>
61
- <p>{{t "date-plugin.help.date-examples"}}</p>
60
+ <p>{{t 'date-plugin.help.detailed-info'}}
61
+ <a href='https://date-fns.org/v2.29.3/docs/format'>{{t
62
+ 'date-plugin.help.docs-link'
63
+ }}</a></p>
64
+ <p>{{t 'date-plugin.help.date-examples'}}</p>
62
65
  <AuTable>
63
66
  <:header>
64
67
  <tr>
65
- <th>{{t "date-plugin.help.date-format"}}</th>
66
- <th>{{t "date-plugin.help.result"}}</th>
68
+ <th>{{t 'date-plugin.help.date-format'}}</th>
69
+ <th>{{t 'date-plugin.help.result'}}</th>
67
70
  </tr>
68
71
  </:header>
69
72
  <:body>
70
73
  <tr>
71
- {{!-- template-lint-disable no-bare-strings --}}
74
+ {{! template-lint-disable no-bare-strings }}
72
75
  <td>EEEE dd MMMM yyyy</td>
73
76
  <td>{{this.formatExample 'EEEE dd MMMM yyyy'}}</td>
74
77
  </tr>
75
78
  <tr>
76
- {{!-- template-lint-disable no-bare-strings --}}
79
+ {{! template-lint-disable no-bare-strings }}
77
80
  <td>dd/MM/yy</td>
78
81
  <td>{{this.formatExample 'dd/MM/yy'}}</td>
79
82
  </tr>
80
83
  <tr>
81
- {{!-- template-lint-disable no-bare-strings --}}
84
+ {{! template-lint-disable no-bare-strings }}
82
85
  <td>dd/M/yyyy</td>
83
86
  <td>{{this.formatExample 'dd/M/yyyy'}}</td>
84
87
  </tr>
85
88
  <tr>
86
- {{!-- template-lint-disable no-bare-strings --}}
89
+ {{! template-lint-disable no-bare-strings }}
87
90
  <td>dd/MM/yy hh:mm:ss</td>
88
91
  <td>{{this.formatExample 'dd/MM/yy hh:mm:ss'}}</td>
89
92
  </tr>
90
93
  <tr>
91
- {{!-- template-lint-disable no-bare-strings --}}
94
+ {{! template-lint-disable no-bare-strings }}
92
95
  <td>'Vandaag is' dd/MM/yy BBBB</td>
93
96
  <td>{{this.formatExample "'Vandaag is' dd/MM/yy BBBB"}}</td>
94
97
  </tr>
95
98
  <tr>
96
- {{!-- template-lint-disable no-bare-strings --}}
99
+ {{! template-lint-disable no-bare-strings }}
97
100
  <td>PPPPpppp</td>
98
101
  <td>{{this.formatExample 'PPPPpppp'}}</td>
99
102
  </tr>
@@ -101,4 +104,4 @@
101
104
  </AuTable>
102
105
  </div>
103
106
  </Modal.Body>
104
- </AuModal>
107
+ </AuModal>