@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.
- package/.release-it.json +1 -1
- package/.woodpecker/.verify-pr.yml +6 -0
- package/CHANGELOG.md +10 -0
- package/README.md +21 -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-topic-plugin/besluit-topic-select.hbs +19 -0
- package/addon/components/besluit-topic-plugin/besluit-topic-select.ts +32 -0
- package/addon/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.hbs +93 -0
- package/addon/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.ts +151 -0
- 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/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/besluit-topic-plugin/commands/update-besluit-topic-resource.ts +59 -0
- package/addon/plugins/besluit-topic-plugin/index.ts +3 -0
- package/addon/plugins/besluit-topic-plugin/utils/fetchBesluitTopics.ts +66 -0
- package/addon/plugins/besluit-topic-plugin/utils/helpers.ts +36 -0
- package/app/components/besluit-topic-plugin/besluit-topic-select.js +1 -0
- package/app/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.js +1 -0
- 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 +1 -1
- package/app/styles/variable-plugin.scss +5 -3
- package/declarations/addon/components/besluit-topic-plugin/besluit-topic-select.d.ts +12 -0
- package/declarations/addon/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.d.ts +28 -0
- package/declarations/addon/plugins/besluit-topic-plugin/commands/update-besluit-topic-resource.d.ts +8 -0
- package/declarations/addon/plugins/besluit-topic-plugin/index.d.ts +3 -0
- package/declarations/addon/plugins/besluit-topic-plugin/utils/fetchBesluitTopics.d.ts +16 -0
- package/declarations/addon/plugins/besluit-topic-plugin/utils/helpers.d.ts +4 -0
- package/package.json +3 -1
- package/translations/appuniversum/en-us.yaml +10 -10
- package/translations/appuniversum/nl-be.yaml +10 -10
- package/translations/en-US.yaml +18 -5
- package/translations/nl-BE.yaml +61 -52
- package/tsconfig.json +1 -1
- package/tsconfig.main.json +5 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<tr class=
|
|
3
|
-
<td colspan=
|
|
4
|
-
<AuHeading @level=
|
|
5
|
-
{{t
|
|
2
|
+
<tr class='au-c-data-table__detail'>
|
|
3
|
+
<td colspan='5' class='au-o-flow au-o-flow--small'>
|
|
4
|
+
<AuHeading @level='6' @skin='6'>
|
|
5
|
+
{{t 'editor-plugins.roadsign-regulation.expanded-measure.insert-measure'}}
|
|
6
6
|
</AuHeading>
|
|
7
7
|
<p>
|
|
8
8
|
<AuPill>
|
|
@@ -14,51 +14,66 @@
|
|
|
14
14
|
</AuPill>
|
|
15
15
|
</p>
|
|
16
16
|
{{#if this.isPotentiallyZonal}}
|
|
17
|
-
<AuHeading @level=
|
|
18
|
-
{{t
|
|
17
|
+
<AuHeading @level='6' @skin='6'>
|
|
18
|
+
{{t
|
|
19
|
+
'editor-plugins.roadsign-regulation.expanded-measure.select-zonality.label'
|
|
20
|
+
}}
|
|
19
21
|
</AuHeading>
|
|
20
|
-
<div class=
|
|
22
|
+
<div class='au-c-form'>
|
|
21
23
|
<AuRadioGroup
|
|
22
|
-
@name=
|
|
24
|
+
@name='zonal'
|
|
23
25
|
@selected={{this.zonalityValue}}
|
|
24
26
|
@onChange={{this.changeZonality}}
|
|
25
27
|
as |Group|
|
|
26
28
|
>
|
|
27
29
|
<Group.Radio @value={{this.ZONAL_URI}}>
|
|
28
|
-
{{t
|
|
30
|
+
{{t
|
|
31
|
+
'editor-plugins.roadsign-regulation.expanded-measure.select-zonality.zonal'
|
|
32
|
+
}}
|
|
29
33
|
</Group.Radio>
|
|
30
34
|
<Group.Radio @value={{this.NON_ZONAL_URI}}>
|
|
31
|
-
{{t
|
|
35
|
+
{{t
|
|
36
|
+
'editor-plugins.roadsign-regulation.expanded-measure.select-zonality.non-zonal'
|
|
37
|
+
}}
|
|
32
38
|
</Group.Radio>
|
|
33
39
|
</AuRadioGroup>
|
|
34
40
|
</div>
|
|
35
41
|
{{/if}}
|
|
36
42
|
{{#if @measure.temporal}}
|
|
37
|
-
<AuHeading @level=
|
|
38
|
-
{{t
|
|
43
|
+
<AuHeading @level='6' @skin='6'>
|
|
44
|
+
{{t
|
|
45
|
+
'editor-plugins.roadsign-regulation.expanded-measure.varying-signalisation.label'
|
|
46
|
+
}}
|
|
39
47
|
</AuHeading>
|
|
40
|
-
<div class=
|
|
48
|
+
<div class='au-c-form'>
|
|
41
49
|
<AuRadioGroup
|
|
42
|
-
@name=
|
|
50
|
+
@name='temporal'
|
|
43
51
|
@selected={{this.temporalValue}}
|
|
44
52
|
@onChange={{this.changeTemporality}}
|
|
45
53
|
as |Group|
|
|
46
54
|
>
|
|
47
|
-
<Group.Radio @value=
|
|
48
|
-
{{t
|
|
55
|
+
<Group.Radio @value='true'>
|
|
56
|
+
{{t
|
|
57
|
+
'editor-plugins.roadsign-regulation.expanded-measure.varying-signalisation.varying'
|
|
58
|
+
}}
|
|
49
59
|
</Group.Radio>
|
|
50
|
-
<Group.Radio @value=
|
|
51
|
-
{{t
|
|
60
|
+
<Group.Radio @value='false'>
|
|
61
|
+
{{t
|
|
62
|
+
'editor-plugins.roadsign-regulation.expanded-measure.varying-signalisation.non-varying'
|
|
63
|
+
}}
|
|
52
64
|
</Group.Radio>
|
|
53
65
|
</AuRadioGroup>
|
|
54
66
|
</div>
|
|
55
67
|
{{/if}}
|
|
56
68
|
<AuButtonGroup>
|
|
57
|
-
<AuButton
|
|
58
|
-
{{
|
|
69
|
+
<AuButton
|
|
70
|
+
{{on 'click' this.insert}}
|
|
71
|
+
@disabled={{this.insertButtonDisabled}}
|
|
72
|
+
>
|
|
73
|
+
{{t 'editor-plugins.utils.insert'}}
|
|
59
74
|
</AuButton>
|
|
60
|
-
<AuButton @skin=
|
|
61
|
-
{{t
|
|
75
|
+
<AuButton @skin='secondary' {{on 'click' this.unselectRow}}>
|
|
76
|
+
{{t 'editor-plugins.utils.cancel'}}
|
|
62
77
|
</AuButton>
|
|
63
78
|
</AuButtonGroup>
|
|
64
79
|
</td>
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<li class=
|
|
2
|
+
<li class='au-c-list__item'>
|
|
3
3
|
<AuButton
|
|
4
|
-
@skin=
|
|
4
|
+
@skin='link'
|
|
5
5
|
@icon={{this.AddIcon}}
|
|
6
|
-
@iconAlignment=
|
|
6
|
+
@iconAlignment='left'
|
|
7
7
|
@disabled={{not this.showCard}}
|
|
8
|
-
{{on
|
|
8
|
+
{{on 'click' this.openModal}}
|
|
9
9
|
>
|
|
10
|
-
{{t
|
|
10
|
+
{{t 'editor-plugins.roadsign-regulation.card.insert-measure'}}
|
|
11
11
|
</AuButton>
|
|
12
12
|
</li>
|
|
13
|
-
<RoadsignRegulationPlugin::RoadsignsModal
|
|
13
|
+
<RoadsignRegulationPlugin::RoadsignsModal
|
|
14
|
+
@modalOpen={{this.modalOpen}}
|
|
15
|
+
@closeModal={{this.closeModal}}
|
|
16
|
+
@controller={{@controller}}
|
|
17
|
+
@options={{@options}}
|
|
18
|
+
/>
|
|
@@ -1,83 +1,91 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
2
|
<AuModal
|
|
3
|
-
class=
|
|
4
|
-
@size=
|
|
5
|
-
@modalTitle={{t
|
|
3
|
+
class='au-c-modal--flush'
|
|
4
|
+
@size='large'
|
|
5
|
+
@modalTitle={{t 'editor-plugins.roadsign-regulation.modal.title'}}
|
|
6
6
|
@modalOpen={{@modalOpen}}
|
|
7
|
-
@closeModal={{this.closeModal}}
|
|
7
|
+
@closeModal={{this.closeModal}}
|
|
8
|
+
as |Modal|
|
|
9
|
+
>
|
|
8
10
|
<Modal.Body>
|
|
9
|
-
<div class=
|
|
10
|
-
<div class=
|
|
11
|
-
<div class=
|
|
12
|
-
<div class=
|
|
11
|
+
<div class='au-c-body-container'>
|
|
12
|
+
<div class='au-o-box au-u-background-gray-100'>
|
|
13
|
+
<div class='au-o-grid au-o-grid--tiny au-o-grid--bottom'>
|
|
14
|
+
<div class='au-o-grid__item au-u-1-4'>
|
|
13
15
|
<AuLabel>
|
|
14
|
-
{{t
|
|
16
|
+
{{t 'editor-plugins.roadsign-regulation.modal.filter.type'}}
|
|
15
17
|
</AuLabel>
|
|
16
18
|
<PowerSelect
|
|
17
19
|
@renderInPlace={{true}}
|
|
18
20
|
@options={{this.typeOptions}}
|
|
19
|
-
@verticalPosition=
|
|
21
|
+
@verticalPosition='below'
|
|
20
22
|
@searchEnabled={{true}}
|
|
21
23
|
@selected={{or this.typeSelected this.categorySelected}}
|
|
22
24
|
@allowClear={{true}}
|
|
23
25
|
@onChange={{this.selectTypeOrCategory}}
|
|
24
|
-
as |option
|
|
26
|
+
as |option|
|
|
27
|
+
>
|
|
25
28
|
{{option.label}}
|
|
26
29
|
</PowerSelect>
|
|
27
30
|
</div>
|
|
28
|
-
<div class=
|
|
31
|
+
<div class='au-o-grid__item au-u-1-4'>
|
|
29
32
|
<AuLabel>
|
|
30
|
-
{{t
|
|
33
|
+
{{t 'editor-plugins.roadsign-regulation.modal.filter.code'}}
|
|
31
34
|
</AuLabel>
|
|
32
35
|
<PowerSelect
|
|
33
36
|
@renderInPlace={{true}}
|
|
34
|
-
@verticalPosition=
|
|
37
|
+
@verticalPosition='below'
|
|
35
38
|
@searchEnabled={{true}}
|
|
36
39
|
@search={{this.searchCodes}}
|
|
37
40
|
@selected={{this.selectedCode}}
|
|
38
41
|
@allowClear={{true}}
|
|
39
42
|
@onChange={{this.changeCode}}
|
|
40
|
-
as |option
|
|
43
|
+
as |option|
|
|
44
|
+
>
|
|
41
45
|
{{option.label}}
|
|
42
46
|
</PowerSelect>
|
|
43
47
|
</div>
|
|
44
|
-
|
|
48
|
+
<div class='au-o-grid__item au-u-1-4'>
|
|
45
49
|
<AuLabel>
|
|
46
|
-
{{t
|
|
50
|
+
{{t 'editor-plugins.roadsign-regulation.modal.combine-with-code'}}
|
|
47
51
|
</AuLabel>
|
|
48
52
|
<PowerSelectMultiple
|
|
49
53
|
@renderInPlace={{true}}
|
|
50
|
-
@verticalPosition=
|
|
54
|
+
@verticalPosition='below'
|
|
51
55
|
@searchEnabled={{true}}
|
|
52
|
-
@searchField=
|
|
56
|
+
@searchField='label'
|
|
53
57
|
@selected={{this.selectedCodeCombination}}
|
|
54
58
|
@allowClear={{true}}
|
|
55
59
|
@onChange={{this.changeCodeCombination}}
|
|
56
60
|
@options={{this.codeCombinationOptions}}
|
|
57
61
|
@disabled={{not this.selectedCode}}
|
|
58
|
-
|
|
62
|
+
as |option|
|
|
63
|
+
>
|
|
59
64
|
{{option.label}}
|
|
60
65
|
</PowerSelectMultiple>
|
|
61
66
|
</div>
|
|
62
|
-
<div class=
|
|
67
|
+
<div class='au-o-grid__item au-u-1-4'>
|
|
63
68
|
<AuLabel>
|
|
64
|
-
{{t
|
|
69
|
+
{{t
|
|
70
|
+
'editor-plugins.roadsign-regulation.modal.filter.zonal-validity'
|
|
71
|
+
}}
|
|
65
72
|
</AuLabel>
|
|
66
73
|
<PowerSelect
|
|
67
74
|
@renderInPlace={{true}}
|
|
68
75
|
@options={{this.zonalityOptions}}
|
|
69
|
-
@verticalPosition=
|
|
76
|
+
@verticalPosition='below'
|
|
70
77
|
@searchEnabled={{false}}
|
|
71
78
|
@selected={{this.zonalitySelected}}
|
|
72
79
|
@allowClear={{true}}
|
|
73
80
|
@onChange={{this.selectZonality}}
|
|
74
|
-
as |option
|
|
81
|
+
as |option|
|
|
82
|
+
>
|
|
75
83
|
{{option.label}}
|
|
76
84
|
</PowerSelect>
|
|
77
85
|
</div>
|
|
78
86
|
</div>
|
|
79
87
|
</div>
|
|
80
|
-
<div class=
|
|
88
|
+
<div class='au-c-body-container'>
|
|
81
89
|
<RoadsignRegulationPlugin::RoadsignsTable
|
|
82
90
|
@content={{this.tableData}}
|
|
83
91
|
@isLoading={{this.fetchSigns.isRunning}}
|
|
@@ -91,4 +99,4 @@
|
|
|
91
99
|
</div>
|
|
92
100
|
</div>
|
|
93
101
|
</Modal.Body>
|
|
94
|
-
</AuModal>
|
|
102
|
+
</AuModal>
|
|
@@ -1,28 +1,45 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<AuToolbar
|
|
2
|
+
<AuToolbar
|
|
3
|
+
@border='top'
|
|
4
|
+
@size='large'
|
|
5
|
+
@nowrap={{true}}
|
|
3
6
|
{{did-update this.onUpdateCount @count @pageStart}}
|
|
4
7
|
{{did-insert this.onUpdateCount @count @pageStart}}
|
|
5
8
|
>
|
|
6
|
-
<div class=
|
|
9
|
+
<div class='au-c-pagination'>
|
|
7
10
|
{{#if this.hasPreviousPage}}
|
|
8
|
-
<div class=
|
|
9
|
-
<AuButton
|
|
10
|
-
|
|
11
|
+
<div class='au-c-pagination__list-item'>
|
|
12
|
+
<AuButton
|
|
13
|
+
@skin='link'
|
|
14
|
+
{{on 'click' this.goToPreviousPage}}
|
|
15
|
+
@iconAlignment='left'
|
|
16
|
+
@icon={{this.NavLeftIcon}}
|
|
17
|
+
>
|
|
18
|
+
{{t 'pagination.previous'}}
|
|
11
19
|
</AuButton>
|
|
12
20
|
</div>
|
|
13
21
|
{{/if}}
|
|
14
22
|
<p>
|
|
15
|
-
<span class=
|
|
23
|
+
<span class='au-u-hidden-visually'>{{t
|
|
24
|
+
'editor-plugins.roadsign-regulation.pagination.publications'
|
|
25
|
+
}}</span>
|
|
16
26
|
<strong>
|
|
17
|
-
{{this.pageStart}}
|
|
27
|
+
{{this.pageStart}}
|
|
28
|
+
-
|
|
29
|
+
{{this.pageEnd}}
|
|
18
30
|
</strong>
|
|
19
|
-
{{t
|
|
31
|
+
{{t 'pagination.of'}}
|
|
20
32
|
{{this.count}}
|
|
21
33
|
</p>
|
|
22
34
|
{{#if this.hasNextPage}}
|
|
23
|
-
<div class=
|
|
24
|
-
<AuButton
|
|
25
|
-
|
|
35
|
+
<div class='au-c-pagination__list-item'>
|
|
36
|
+
<AuButton
|
|
37
|
+
@skin='link'
|
|
38
|
+
{{on 'click' this.goToNextPage}}
|
|
39
|
+
@icon={{this.NavRightIcon}}
|
|
40
|
+
@iconAlignment='right'
|
|
41
|
+
>
|
|
42
|
+
{{t 'pagination.next'}}
|
|
26
43
|
</AuButton>
|
|
27
44
|
</div>
|
|
28
45
|
{{/if}}
|
|
@@ -1,90 +1,118 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<AuDataTable @isLoading={{@isLoading}} @noDataMessage=
|
|
2
|
+
<AuDataTable @isLoading={{@isLoading}} @noDataMessage='No data' as |table|>
|
|
3
3
|
<table.content as |c|>
|
|
4
4
|
<c.header>
|
|
5
|
-
<th class=
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<th class=
|
|
9
|
-
|
|
5
|
+
<th class='data-table__header-title'>{{t
|
|
6
|
+
'editor-plugins.roadsign-regulation.table.header.code'
|
|
7
|
+
}}</th>
|
|
8
|
+
<th class='data-table__header-title'>{{t
|
|
9
|
+
'editor-plugins.roadsign-regulation.table.header.image'
|
|
10
|
+
}}</th>
|
|
11
|
+
<th class='data-table__header-title'>{{t
|
|
12
|
+
'editor-plugins.roadsign-regulation.table.header.template'
|
|
13
|
+
}}</th>
|
|
14
|
+
<th class='data-table__header-title'>{{t
|
|
15
|
+
'editor-plugins.roadsign-regulation.table.header.category'
|
|
16
|
+
}}</th>
|
|
17
|
+
<th class='data-table__header-title'></th>
|
|
10
18
|
</c.header>
|
|
11
19
|
{{#if c.body}}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{{
|
|
23
|
-
<tr
|
|
20
|
+
<tbody>
|
|
21
|
+
{{#if @isLoading}}
|
|
22
|
+
<tr>
|
|
23
|
+
<td colspan='100%' class='is-loading-data'>
|
|
24
|
+
<AuLoader />
|
|
25
|
+
<AuHelpText>{{t 'editor-plugins.utils.loading'}}</AuHelpText>
|
|
26
|
+
</td>
|
|
27
|
+
</tr>
|
|
28
|
+
{{else}}
|
|
29
|
+
{{#each @content as |row|}}
|
|
30
|
+
{{! template-lint-disable require-presentational-children }}
|
|
31
|
+
<tr
|
|
32
|
+
role='button'
|
|
33
|
+
class='au-c-data-table__clickable-row'
|
|
34
|
+
{{on 'click' (fn this.selectRow row.uri)}}
|
|
35
|
+
>
|
|
24
36
|
<td>
|
|
25
37
|
<p>{{row.label}}</p>
|
|
26
38
|
</td>
|
|
27
39
|
<td>
|
|
28
|
-
<div class=
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
<div class='au-o-grid au-o-grid--tiny'>
|
|
41
|
+
{{#each row.signs as |sign|}}
|
|
42
|
+
<div class='au-o-grid__item au-u-1-3'>
|
|
43
|
+
<img
|
|
44
|
+
src={{sign.image}}
|
|
45
|
+
alt={{t
|
|
46
|
+
'editor-plugins.roadsign-regulation.table.content.image.alt'
|
|
47
|
+
code=sign.code
|
|
48
|
+
}}
|
|
49
|
+
class='au-c-data-table__image'
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
{{/each}}
|
|
37
53
|
</div>
|
|
38
54
|
</td>
|
|
39
55
|
<td>
|
|
40
|
-
<AuHelpText skin=
|
|
56
|
+
<AuHelpText skin='secondary' class='au-u-margin-none'>
|
|
41
57
|
<RoadsignRegulationPlugin::MeasureTemplate
|
|
42
58
|
@measure={{row.uri}}
|
|
43
59
|
@template={{row.template}}
|
|
44
60
|
@limitText={{true}}
|
|
45
|
-
@endpoint={{@options.endpoint}}
|
|
61
|
+
@endpoint={{@options.endpoint}}
|
|
62
|
+
/>
|
|
46
63
|
</AuHelpText>
|
|
47
64
|
</td>
|
|
48
65
|
<td>
|
|
49
66
|
{{#each row.classifications as |classification|}}
|
|
50
67
|
{{#if classification}}
|
|
51
|
-
<AuPill @skin=
|
|
68
|
+
<AuPill @skin='border'>{{classification}}</AuPill>
|
|
52
69
|
{{/if}}
|
|
53
70
|
{{/each}}
|
|
54
71
|
</td>
|
|
55
72
|
<td>
|
|
56
73
|
{{#if (eq this.selected row.uri)}}
|
|
57
|
-
|
|
74
|
+
<AuIcon
|
|
75
|
+
@icon={{this.NavUpIcon}}
|
|
76
|
+
@ariaHidden={{true}}
|
|
77
|
+
class='au-c-data-table__clickable-row-icon'
|
|
78
|
+
/>
|
|
58
79
|
{{else}}
|
|
59
|
-
|
|
80
|
+
<AuIcon
|
|
81
|
+
@icon={{this.NavDownIcon}}
|
|
82
|
+
@ariaHidden={{true}}
|
|
83
|
+
class='au-c-data-table__clickable-row-icon'
|
|
84
|
+
/>
|
|
60
85
|
{{/if}}
|
|
61
86
|
</td>
|
|
62
87
|
</tr>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
{{#if (eq this.selected row.uri)}}
|
|
89
|
+
<RoadsignRegulationPlugin::ExpandedMeasure
|
|
90
|
+
@measure={{row}}
|
|
91
|
+
@insert={{@insert}}
|
|
92
|
+
@selectRow={{this.selectRow}}
|
|
93
|
+
@endpoint={{@options.endpoint}}
|
|
94
|
+
/>
|
|
95
|
+
{{/if}}
|
|
96
|
+
{{else}}
|
|
97
|
+
<tr>
|
|
98
|
+
<td colspan='5' class='no-data-message'>
|
|
99
|
+
<p>{{t
|
|
100
|
+
'editor-plugins.roadsign-regulation.table.content.no-data-message'
|
|
101
|
+
}}
|
|
102
|
+
</p>
|
|
103
|
+
</td>
|
|
104
|
+
</tr>
|
|
105
|
+
{{/each}}
|
|
106
|
+
{{/if}}
|
|
107
|
+
</tbody>
|
|
80
108
|
{{/if}}
|
|
81
109
|
</table.content>
|
|
82
110
|
</AuDataTable>
|
|
83
111
|
{{#if @count}}
|
|
84
|
-
<RoadsignRegulationPlugin::RoadsignsPagination
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/>
|
|
112
|
+
<RoadsignRegulationPlugin::RoadsignsPagination
|
|
113
|
+
@goToPage={{@goToPage}}
|
|
114
|
+
@pageSize={{@pageSize}}
|
|
115
|
+
@pageStart={{@pageStart}}
|
|
116
|
+
@count={{@count}}
|
|
117
|
+
/>
|
|
90
118
|
{{/if}}
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
<mc.content @scroll={{true}}>
|
|
13
13
|
<div class='snippet-modal--list-container'>
|
|
14
14
|
{{#if this.error}}
|
|
15
|
-
<Common::Search::AlertLoadError
|
|
15
|
+
<Common::Search::AlertLoadError
|
|
16
|
+
@error={{this.error}}
|
|
17
|
+
class='au-u-margin-top-none'
|
|
18
|
+
/>
|
|
16
19
|
{{else}}
|
|
17
20
|
<SnippetPlugin::SnippetList::SnippetListView
|
|
18
21
|
@snippetLists={{this.snippetListResource.value}}
|
|
@@ -24,7 +27,12 @@
|
|
|
24
27
|
/>
|
|
25
28
|
{{/if}}
|
|
26
29
|
</div>
|
|
27
|
-
<AuToolbar
|
|
30
|
+
<AuToolbar
|
|
31
|
+
@border='top'
|
|
32
|
+
@size='large'
|
|
33
|
+
@nowrap={{true}}
|
|
34
|
+
@reverse={{true}}
|
|
35
|
+
>
|
|
28
36
|
<AuButtonGroup>
|
|
29
37
|
<AuButton @skin='secondary' {{on 'click' this.closeModal}}>
|
|
30
38
|
{{t 'snippet-plugin.snippet-list.modal.button.cancel'}}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<div class=
|
|
3
|
-
{{#let
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<div class='say-snippet-lists-table'>
|
|
3
|
+
{{#let
|
|
4
|
+
(t 'snippet-plugin.snippet-list.modal.table.list')
|
|
5
|
+
(t 'snippet-plugin.snippet-list.modal.table.created')
|
|
6
|
+
(t 'snippet-plugin.snippet-list.modal.table.select')
|
|
7
|
+
(t 'snippet-plugin.snippet-list.modal.subtitle')
|
|
8
|
+
(t 'snippet-plugin.snippet-list.modal.search.label')
|
|
9
|
+
as |list created select subtitle search|
|
|
10
|
+
}}
|
|
9
11
|
<AuDataTable
|
|
10
12
|
@content={{this.snippetLists}}
|
|
11
13
|
@isLoading={{@isLoading}}
|
|
@@ -16,32 +18,36 @@
|
|
|
16
18
|
>
|
|
17
19
|
<t.menu as |menu|>
|
|
18
20
|
<menu.general>
|
|
19
|
-
<AuToolbar class=
|
|
21
|
+
<AuToolbar class='au-o-box' as |Group|>
|
|
20
22
|
<Group />
|
|
21
|
-
<Group class=
|
|
22
|
-
<AuDataTableTextSearch
|
|
23
|
+
<Group class='au-c-toolbar__group--center'>
|
|
24
|
+
<AuDataTableTextSearch
|
|
25
|
+
@wait={{500}}
|
|
26
|
+
@filter={{@listNameFilter}}
|
|
27
|
+
@placeholder={{search}}
|
|
28
|
+
/>
|
|
23
29
|
</Group>
|
|
24
30
|
</AuToolbar>
|
|
25
31
|
</menu.general>
|
|
26
32
|
</t.menu>
|
|
27
33
|
<t.content as |c|>
|
|
28
34
|
<c.header>
|
|
29
|
-
<th class=
|
|
35
|
+
<th class='snippet-list-table-select-column'>{{select}}</th>
|
|
30
36
|
<AuDataTableThSortable
|
|
31
|
-
@field=
|
|
37
|
+
@field='label'
|
|
32
38
|
@label={{list}}
|
|
33
39
|
@currentSorting={{@sort}}
|
|
34
|
-
@class=
|
|
40
|
+
@class='data-table__header-title'
|
|
35
41
|
/>
|
|
36
42
|
<AuDataTableThSortable
|
|
37
|
-
@field=
|
|
43
|
+
@field='createdOn'
|
|
38
44
|
@label={{created}}
|
|
39
45
|
@currentSorting={{@sort}}
|
|
40
|
-
@class=
|
|
46
|
+
@class='data-table__header-title snippet-list-table-created-column'
|
|
41
47
|
/>
|
|
42
48
|
</c.header>
|
|
43
49
|
<c.body as |row|>
|
|
44
|
-
<td class=
|
|
50
|
+
<td class='snippet-list-table-select-column'>
|
|
45
51
|
<AuCheckbox
|
|
46
52
|
id={{row.label}}
|
|
47
53
|
@onChange={{fn this.onChange row.id}}
|
|
@@ -49,9 +55,9 @@
|
|
|
49
55
|
/>
|
|
50
56
|
</td>
|
|
51
57
|
<td>{{row.label}}</td>
|
|
52
|
-
<td class=
|
|
58
|
+
<td class='snippet-list-table-created-column'>{{row.createdOn}}</td>
|
|
53
59
|
</c.body>
|
|
54
60
|
</t.content>
|
|
55
61
|
</AuDataTable>
|
|
56
62
|
{{/let}}
|
|
57
|
-
</div>
|
|
63
|
+
</div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
2
|
{{#if this.isResourceNode}}
|
|
3
|
-
<SnippetPlugin::SnippetListSelect
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/>
|
|
3
|
+
<SnippetPlugin::SnippetListSelect
|
|
4
|
+
@config={{this.config}}
|
|
5
|
+
@assignedSnippetListsIds={{this.assignedSnippetListsIds}}
|
|
6
|
+
@onSaveSnippetListIds={{this.saveChanges}}
|
|
7
|
+
/>
|
|
8
8
|
{{/if}}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<StandardTemplatePlugin::TemplateProvider
|
|
2
|
+
<StandardTemplatePlugin::TemplateProvider
|
|
3
|
+
@controller={{@controller}}
|
|
4
|
+
@templates={{@templates}}
|
|
5
|
+
as |provider|
|
|
6
|
+
>
|
|
3
7
|
{{#if provider.hasApplicableTemplates}}
|
|
4
8
|
{{#each provider.applicableTemplates as |template|}}
|
|
5
|
-
<li class=
|
|
9
|
+
<li class='au-c-list__item'>
|
|
6
10
|
<AuButton
|
|
7
|
-
@skin=
|
|
11
|
+
@skin='link'
|
|
8
12
|
@icon={{this.AddIcon}}
|
|
9
|
-
@iconAlignment=
|
|
10
|
-
{{on
|
|
13
|
+
@iconAlignment='left'
|
|
14
|
+
{{on 'click' (fn provider.insert template)}}
|
|
11
15
|
>
|
|
12
16
|
{{template.title}}
|
|
13
17
|
</AuButton>
|