@lblod/ember-rdfa-editor-lblod-plugins 16.3.0 → 17.0.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/.woodpecker/.test.yml +5 -4
- package/CHANGELOG.md +20 -0
- package/addon/components/article-structure-plugin/article-structure-card.hbs +2 -1
- package/addon/components/article-structure-plugin/article-structure-card.ts +2 -0
- package/addon/components/article-structure-plugin/structure-card.hbs +6 -5
- package/addon/components/article-structure-plugin/structure-card.ts +6 -0
- package/addon/components/au-native-input.hbs +1 -0
- package/addon/components/au-native-input.ts +2 -1
- package/addon/components/besluit-type-plugin/besluit-type-select.hbs +3 -2
- package/addon/components/besluit-type-plugin/besluit-type-select.ts +4 -0
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +5 -4
- package/addon/components/besluit-type-plugin/toolbar-dropdown.ts +8 -0
- package/addon/components/citation-plugin/citation-card.hbs +4 -3
- package/addon/components/citation-plugin/citation-card.ts +3 -0
- package/addon/components/citation-plugin/citation-insert.hbs +2 -1
- package/addon/components/citation-plugin/citation-insert.ts +3 -0
- package/addon/components/citation-plugin/citations/article-list.hbs +2 -2
- package/addon/components/citation-plugin/citations/article-preview.hbs +3 -2
- package/addon/components/citation-plugin/citations/article-preview.ts +2 -0
- package/addon/components/citation-plugin/citations/legal-document-detail.hbs +19 -11
- package/addon/components/citation-plugin/citations/legal-document-detail.ts +18 -1
- package/addon/components/citation-plugin/citations/legal-document-list.hbs +2 -2
- package/addon/components/citation-plugin/citations/legal-document-preview.hbs +10 -9
- package/addon/components/citation-plugin/citations/legal-document-preview.ts +9 -0
- package/addon/components/citation-plugin/citations/search-modal.hbs +7 -8
- package/addon/components/citation-plugin/citations/search-modal.ts +3 -0
- package/addon/components/common/search/alert-load-error.gts +34 -0
- package/addon/components/common/search/alert-no-items.gts +18 -0
- package/addon/components/common/search/loading.hbs +4 -0
- package/addon/components/confidentiality-plugin/redact.gts +13 -0
- package/addon/components/decision-plugin/decision-plugin-card.hbs +4 -3
- package/addon/components/decision-plugin/decision-plugin-card.ts +3 -0
- package/addon/components/document-title-plugin/insert-title-card.hbs +8 -1
- package/addon/components/document-title-plugin/insert-title-card.ts +3 -0
- package/addon/components/generic-rdfa-variable/insert-menu.hbs +2 -1
- package/addon/components/generic-rdfa-variable/insert-menu.ts +3 -1
- package/addon/components/hover-tooltip.hbs +1 -0
- package/addon/components/import-snippet-plugin/card.hbs +1 -0
- package/addon/components/loading-alert.hbs +2 -1
- package/addon/components/loading-alert.ts +5 -2
- package/addon/components/pagination/pagination-view.gts +55 -0
- package/addon/components/roadsign-regulation-plugin/expanded-measure.hbs +28 -37
- package/addon/components/roadsign-regulation-plugin/expanded-measure.ts +4 -13
- package/addon/components/roadsign-regulation-plugin/measure-template.hbs +1 -0
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +2 -1
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.ts +3 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.hbs +1 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.hbs +9 -4
- package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.ts +5 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.hbs +7 -6
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.ts +5 -0
- package/addon/components/snippet-plugin/search-modal.hbs +5 -6
- package/addon/components/snippet-plugin/snippet-insert.hbs +2 -1
- package/addon/components/snippet-plugin/snippet-insert.ts +3 -0
- package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +4 -6
- package/addon/components/snippet-plugin/snippet-list/snippet-list-view.hbs +3 -2
- package/addon/components/snippet-plugin/snippet-list-select.hbs +2 -1
- package/addon/components/snippet-plugin/snippet-list-select.ts +2 -1
- package/addon/components/snippet-plugin/snippets/snippet-preview.hbs +1 -0
- package/addon/components/standard-template-plugin/card.hbs +2 -1
- package/addon/components/standard-template-plugin/card.ts +2 -0
- package/addon/components/standard-template-plugin/template-provider.hbs +1 -0
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.hbs +1 -0
- package/addon/components/table-of-contents-plugin/toolbar-button.hbs +1 -0
- package/addon/components/template-comments-plugin/edit-card.hbs +4 -3
- package/addon/components/template-comments-plugin/edit-card.ts +7 -0
- package/addon/components/template-comments-plugin/insert.hbs +2 -1
- package/addon/components/template-comments-plugin/insert.ts +3 -0
- package/addon/components/template-comments-plugin/template-comment.hbs +2 -1
- package/addon/components/template-comments-plugin/template-comment.ts +3 -0
- package/addon/components/validation-plugin/validation-card.hbs +1 -0
- package/addon/components/validation-plugin/validation-item.hbs +1 -0
- package/addon/components/validation-plugin/validation-item.ts +7 -4
- package/addon/components/variable-plugin/address/edit.hbs +1 -0
- package/addon/components/variable-plugin/address/edit.ts +5 -3
- package/addon/components/variable-plugin/address/insert-variable.hbs +1 -0
- package/addon/components/variable-plugin/address/insert.hbs +3 -2
- package/addon/components/variable-plugin/address/insert.ts +3 -0
- package/addon/components/variable-plugin/address/nodeview.hbs +2 -1
- package/addon/components/variable-plugin/address/nodeview.ts +3 -0
- package/addon/components/variable-plugin/codelist/edit.hbs +1 -0
- package/addon/components/variable-plugin/codelist/insert.hbs +1 -0
- package/addon/components/variable-plugin/date/date-time-picker.hbs +1 -0
- package/addon/components/variable-plugin/date/edit.hbs +27 -31
- package/addon/components/variable-plugin/date/edit.ts +4 -0
- package/addon/components/variable-plugin/date/help-modal.hbs +1 -0
- package/addon/components/variable-plugin/date/insert-variable.hbs +1 -0
- package/addon/components/variable-plugin/date/insert.hbs +2 -1
- package/addon/components/variable-plugin/date/insert.ts +3 -0
- package/addon/components/variable-plugin/date/nodeview.hbs +2 -1
- package/addon/components/variable-plugin/date/nodeview.ts +3 -0
- package/addon/components/variable-plugin/insert-variable-card.hbs +1 -0
- package/addon/components/variable-plugin/insert-variable-card.ts +2 -1
- package/addon/components/variable-plugin/location/edit.hbs +1 -0
- package/addon/components/variable-plugin/location/insert.hbs +1 -0
- package/addon/components/variable-plugin/location/nodeview.hbs +1 -0
- package/addon/components/variable-plugin/number/insert.hbs +1 -0
- package/addon/components/variable-plugin/number/nodeview.hbs +5 -3
- package/addon/components/variable-plugin/number/nodeview.ts +2 -0
- package/addon/components/variable-plugin/text/insert.hbs +1 -0
- package/addon/components/variable-plugin/variable/nodeview.hbs +7 -6
- package/addon/components/variable-plugin/variable/nodeview.ts +3 -0
- package/addon/components/worship-plugin/administrative-unit-picker.hbs +16 -0
- package/addon/components/worship-plugin/administrative-unit-picker.ts +38 -0
- package/addon/components/worship-plugin/insert.hbs +18 -0
- package/addon/components/worship-plugin/insert.ts +41 -0
- package/addon/components/worship-plugin/list.hbs +46 -0
- package/addon/components/worship-plugin/search-modal.hbs +79 -0
- package/addon/components/worship-plugin/search-modal.ts +131 -0
- package/addon/components/worship-plugin/sortable-table-header.hbs +36 -0
- package/addon/components/worship-plugin/sortable-table-header.ts +45 -0
- package/addon/plugins/snippet-plugin/utils/fetch-data.ts +1 -3
- package/addon/plugins/variable-plugin/variables/date.ts +7 -4
- package/addon/plugins/worship-plugin/index.ts +9 -0
- package/addon/plugins/worship-plugin/utils/fetchAdministrativeUnits.ts +52 -0
- package/addon/plugins/worship-plugin/utils/fetchWorshipServices.ts +109 -0
- package/addon/plugins/worship-plugin/utils/insertWorshipService.ts +16 -0
- package/addon/utils/sparql-helpers.ts +8 -0
- package/app/components/{citation-plugin/helpers/alert-no-items.js → common/search/alert-load-error.js} +1 -1
- package/app/components/{snippet-plugin/helpers → common/search}/alert-no-items.js +1 -1
- package/app/components/{snippet-plugin/helpers/alert-load-error.js → common/search/loading.js} +1 -1
- package/app/components/worship-plugin/administrative-unit-picker.js +1 -0
- package/app/components/{citation-plugin/helpers/alert-load-error.js → worship-plugin/insert.js} +1 -1
- package/app/components/worship-plugin/list.js +1 -0
- package/app/components/worship-plugin/search-modal.js +1 -0
- package/app/components/worship-plugin/sortable-table-header.js +1 -0
- package/app/styles/citaten-plugin.scss +1 -1
- package/app/styles/snippet-plugin.scss +1 -1
- package/app/styles/worship-plugin.scss +19 -0
- package/{components → declarations/addon/components}/article-structure-plugin/article-structure-card.d.ts +1 -0
- package/{components → declarations/addon/components}/article-structure-plugin/structure-card.d.ts +3 -0
- package/{components → declarations/addon/components}/au-native-input.d.ts +2 -1
- package/{components → declarations/addon/components}/besluit-type-plugin/besluit-type-select.d.ts +1 -0
- package/{components → declarations/addon/components}/besluit-type-plugin/toolbar-dropdown.d.ts +4 -0
- package/{components → declarations/addon/components}/citation-plugin/citation-card.d.ts +1 -0
- package/{components → declarations/addon/components}/citation-plugin/citation-insert.d.ts +1 -0
- package/declarations/addon/components/citation-plugin/citations/article-list.d.ts +1 -0
- package/{components → declarations/addon/components}/citation-plugin/citations/article-preview.d.ts +1 -0
- package/{components → declarations/addon/components}/citation-plugin/citations/legal-document-detail.d.ts +8 -1
- package/declarations/addon/components/citation-plugin/citations/legal-document-list.d.ts +1 -0
- package/declarations/addon/components/citation-plugin/citations/legal-document-preview.d.ts +14 -0
- package/{components → declarations/addon/components}/citation-plugin/citations/search-modal.d.ts +1 -0
- package/declarations/addon/components/common/search/alert-load-error.d.ts +4 -0
- package/declarations/addon/components/common/search/alert-no-items.d.ts +4 -0
- package/declarations/addon/components/common/search/loading.d.ts +1 -0
- package/declarations/addon/components/confidentiality-plugin/redact.d.ts +4 -0
- package/declarations/addon/components/confidentiality-plugin/toolbar.d.ts +1 -0
- package/{components → declarations/addon/components}/decision-plugin/decision-plugin-card.d.ts +1 -0
- package/{components → declarations/addon/components}/document-title-plugin/insert-title-card.d.ts +1 -0
- package/{components → declarations/addon/components}/generic-rdfa-variable/insert-menu.d.ts +1 -0
- package/{components → declarations/addon/components}/loading-alert.d.ts +1 -0
- package/declarations/addon/components/pagination/pagination-view.d.ts +4 -0
- package/{components → declarations/addon/components}/roadsign-regulation-plugin/expanded-measure.d.ts +2 -2
- package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsign-regulation-card.d.ts +1 -0
- package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsigns-pagination.d.ts +2 -0
- package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsigns-table.d.ts +2 -0
- package/{components → declarations/addon/components}/snippet-plugin/snippet-insert.d.ts +1 -0
- package/{components → declarations/addon/components}/snippet-plugin/snippet-list-select.d.ts +1 -0
- package/declarations/addon/components/snippet-plugin/snippets/snippet-list.d.ts +1 -0
- package/{components → declarations/addon/components}/standard-template-plugin/card.d.ts +1 -0
- package/declarations/addon/components/table-of-contents-plugin/ember-nodes/outline.d.ts +1 -0
- package/{components → declarations/addon/components}/template-comments-plugin/edit-card.d.ts +3 -0
- package/{components → declarations/addon/components}/template-comments-plugin/insert.d.ts +1 -0
- package/{components → declarations/addon/components}/template-comments-plugin/template-comment.d.ts +1 -0
- package/{components → declarations/addon/components}/validation-plugin/validation-item.d.ts +2 -2
- package/{components → declarations/addon/components}/variable-plugin/address/edit.d.ts +1 -1
- package/{components → declarations/addon/components}/variable-plugin/address/insert.d.ts +1 -0
- package/{components → declarations/addon/components}/variable-plugin/address/nodeview.d.ts +1 -0
- package/{components → declarations/addon/components}/variable-plugin/date/edit.d.ts +2 -0
- package/{components → declarations/addon/components}/variable-plugin/date/insert.d.ts +1 -0
- package/{components → declarations/addon/components}/variable-plugin/date/nodeview.d.ts +1 -0
- package/{components → declarations/addon/components}/variable-plugin/insert-variable-card.d.ts +2 -1
- package/{components → declarations/addon/components}/variable-plugin/location/nodeview.d.ts +1 -1
- package/{components → declarations/addon/components}/variable-plugin/number/nodeview.d.ts +1 -0
- package/declarations/addon/components/variable-plugin/utils/label-input.d.ts +1 -0
- package/{components → declarations/addon/components}/variable-plugin/variable/nodeview.d.ts +1 -0
- package/declarations/addon/components/worship-plugin/administrative-unit-picker.d.ts +12 -0
- package/declarations/addon/components/worship-plugin/insert.d.ts +17 -0
- package/declarations/addon/components/worship-plugin/list.d.ts +1 -0
- package/declarations/addon/components/worship-plugin/search-modal.d.ts +30 -0
- package/declarations/addon/components/worship-plugin/sortable-table-header.d.ts +16 -0
- package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/nodes/table-of-contents.d.ts +1 -1
- package/{plugins → declarations/addon/plugins}/template-comments-plugin/node.d.ts +1 -1
- package/{plugins → declarations/addon/plugins}/variable-plugin/variables/address.d.ts +1 -1
- package/{plugins → declarations/addon/plugins}/variable-plugin/variables/codelist.d.ts +1 -1
- package/{plugins → declarations/addon/plugins}/variable-plugin/variables/date.d.ts +1 -1
- package/{plugins → declarations/addon/plugins}/variable-plugin/variables/location.d.ts +1 -1
- package/{plugins → declarations/addon/plugins}/variable-plugin/variables/number.d.ts +1 -1
- package/{plugins → declarations/addon/plugins}/variable-plugin/variables/text.d.ts +1 -1
- package/declarations/addon/plugins/worship-plugin/index.d.ts +8 -0
- package/declarations/addon/plugins/worship-plugin/utils/fetchAdministrativeUnits.d.ts +7 -0
- package/declarations/addon/plugins/worship-plugin/utils/fetchWorshipServices.d.ts +23 -0
- package/declarations/addon/plugins/worship-plugin/utils/insertWorshipService.d.ts +3 -0
- package/declarations/addon/serializers/application.d.ts +3 -0
- package/{services → declarations/addon/services}/import-rdfa-snippet.d.ts +2 -0
- package/{utils → declarations/addon/utils}/sparql-helpers.d.ts +4 -0
- package/package.json +43 -15
- package/scripts/generate-type-declarations.sh +16 -0
- package/translations/en-US.yaml +27 -12
- package/translations/nl-BE.yaml +27 -12
- package/tsconfig.declarations.json +15 -0
- package/tsconfig.json +7 -57
- package/tsconfig.main.json +65 -0
- package/types/ember-intl.d.ts +15 -0
- package/addon/components/citation-plugin/helpers/alert-load-error.hbs +0 -21
- package/addon/components/citation-plugin/helpers/alert-no-items.hbs +0 -10
- package/addon/components/confidentiality-plugin/redact.hbs +0 -6
- package/addon/components/pagination/pagination-view.hbs +0 -39
- package/addon/components/snippet-plugin/helpers/alert-load-error.hbs +0 -22
- package/addon/components/snippet-plugin/helpers/alert-no-items.hbs +0 -8
- package/components/citation-plugin/citations/legal-document-preview.d.ts +0 -10
- /package/{components → declarations/addon/components}/hover-tooltip.d.ts +0 -0
- /package/{components → declarations/addon/components}/import-snippet-plugin/card.d.ts +0 -0
- /package/{components → declarations/addon/components}/roadsign-regulation-plugin/measure-template.d.ts +0 -0
- /package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsigns-modal.d.ts +0 -0
- /package/{components → declarations/addon/components}/snippet-plugin/search-modal.d.ts +0 -0
- /package/{components → declarations/addon/components}/snippet-plugin/snippet-list/snippet-list-modal.d.ts +0 -0
- /package/{components → declarations/addon/components}/snippet-plugin/snippet-list/snippet-list-view.d.ts +0 -0
- /package/{components → declarations/addon/components}/snippet-plugin/snippets/snippet-preview.d.ts +0 -0
- /package/{components → declarations/addon/components}/standard-template-plugin/template-provider.d.ts +0 -0
- /package/{components → declarations/addon/components}/table-of-contents-plugin/ember-nodes/table-of-contents.d.ts +0 -0
- /package/{components → declarations/addon/components}/table-of-contents-plugin/toolbar-button.d.ts +0 -0
- /package/{components → declarations/addon/components}/validation-plugin/validation-card.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/address/insert-variable.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/address/utils.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/codelist/edit.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/codelist/insert.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/date/date-time-picker.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/date/help-modal.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/date/insert-variable.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/location/edit.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/location/insert.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/number/insert.d.ts +0 -0
- /package/{components → declarations/addon/components}/variable-plugin/text/insert.d.ts +0 -0
- /package/{helpers → declarations/addon/helpers}/capitalize.d.ts +0 -0
- /package/{helpers → declarations/addon/helpers}/in-array.d.ts +0 -0
- /package/{helpers → declarations/addon/helpers}/limit-text.d.ts +0 -0
- /package/{helpers → declarations/addon/helpers}/pagination.d.ts +0 -0
- /package/{models → declarations/addon/models}/instruction.d.ts +0 -0
- /package/{models → declarations/addon/models}/measure.d.ts +0 -0
- /package/{models → declarations/addon/models}/sign.d.ts +0 -0
- /package/{models → declarations/addon/models}/template.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/insert-structure.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/move-selected-structure.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/recalculate-structure-numbers.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/remove-structure.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/set-structure-start-number.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/unwrap-structure.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/wrap-structure-content.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/article-paragraph.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/article.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/chapter.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/section.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/structure-header.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/subsection.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/title.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/utils/romanize.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/article-structure-plugin/utils/structure.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/besluit-type-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/besluit-type-plugin/utils/fetchBesluitTypes.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/article.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/cache.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/cited-text.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/legal-documents.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/process-match.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/public-decisions.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/types.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/utils.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/vlaamse-codex.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/confidentiality-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/confidentiality-plugin/marks/redacted.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-article-container.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-description.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-motivation.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-title.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/decision-plugin/utils/get-title-for-decision.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/decision-plugin/utils/validation-rules.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/document-title-plugin/commands/insert-document-title.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/document-title-plugin/nodes/document-title.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/document-title-plugin/nodes/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/generic-rdfa-variable/commands/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/generic-rdfa-variable/commands/insert-generic-rdfa.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/nodes.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/utils/constants.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/utils/fetchData.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/utils/includeInstructions.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/snippet-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/snippet-plugin/utils/fetch-data.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/standard-template-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/standard-template-plugin/utils/instantiate-uuids.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/standard-template-plugin/utils/nodes.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/nodes/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/utils/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/template-comments-plugin/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/validation/index.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/validation/utils/transaction-complies-with-shapes.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/address-helpers.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/attribute-parsers.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/codelist-utils.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/constants.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/date-helpers.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/dom-constructors.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/fetch-data.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/number-to-words.d.ts +0 -0
- /package/{plugins → declarations/addon/plugins}/variable-plugin/variables/index.d.ts +0 -0
- /package/{services → declarations/addon/services}/roadsign-registry.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/_private/find-insertion-range.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/changed-descendants.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/constants.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/dom-output-spec-helpers.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/find-insertion-contentmatch.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/find-insertion-pos-in-ancestor-of-type.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/memoize.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/namespace.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/option.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/strings.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/translation.d.ts +0 -0
- /package/{utils → declarations/addon/utils}/types.d.ts +0 -0
package/.woodpecker/.test.yml
CHANGED
|
@@ -14,15 +14,16 @@ steps:
|
|
|
14
14
|
group: check
|
|
15
15
|
commands:
|
|
16
16
|
- npm run lint:hbs
|
|
17
|
-
|
|
17
|
+
check-types:
|
|
18
18
|
image: danlynn/ember-cli:4.8.0
|
|
19
19
|
group: check
|
|
20
20
|
commands:
|
|
21
|
-
-
|
|
22
|
-
|
|
21
|
+
- npm run lint:types
|
|
22
|
+
test:
|
|
23
23
|
image: danlynn/ember-cli:4.8.0
|
|
24
|
+
group: check
|
|
24
25
|
commands:
|
|
25
|
-
- ember
|
|
26
|
+
- ember test
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
release:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 17.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#407](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/407) [`f2a7660`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/f2a7660d32c6c54016c0547cd71e25ae239168a8) Thanks [@piemonkey](https://github.com/piemonkey)! - BREAKING: Update ember-appuniversum dependency to 3.4.1 in order to support the use of inline svg components for e.g. embeddable
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- [#407](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/407) [`d4b8814`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/d4b8814df14a5f66354ce3948db898c928a658a7) Thanks [@piemonkey](https://github.com/piemonkey)! - Modernise typescript configuration
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#407](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/407) [`f7d257b`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/f7d257bbc03e7b7f9375ade79a08f9e103e0c3df) Thanks [@piemonkey](https://github.com/piemonkey)! - Update deprecated use of AppUniversum
|
|
16
|
+
|
|
17
|
+
## 16.4.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#404](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/404) [`9382c7f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/9382c7f3e1c0e9495e2d9a7c21a58505653693b4) Thanks [@piemonkey](https://github.com/piemonkey)! - Add plugin to handle inserting worship services (erediensten)
|
|
22
|
+
|
|
3
23
|
## 16.3.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<div>
|
|
2
3
|
{{#each this.structureTypes as |structureType|}}
|
|
3
4
|
<li class="au-c-list__item">
|
|
4
|
-
<AuButton @icon=
|
|
5
|
+
<AuButton @icon={{this.AddIcon}} @iconAlignment="left" @skin="link" @disabled={{not (this.canInsertStructure structureType)}}
|
|
5
6
|
{{on 'click' (fn this.insertStructure structureType)}}>
|
|
6
7
|
{{t structureType.translations.insert}}
|
|
7
8
|
</AuButton>
|
|
@@ -8,12 +8,14 @@ import {
|
|
|
8
8
|
import { action } from '@ember/object';
|
|
9
9
|
import { insertStructure } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin/commands';
|
|
10
10
|
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
11
|
+
import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
|
|
11
12
|
|
|
12
13
|
type Args = {
|
|
13
14
|
controller: SayController;
|
|
14
15
|
options: ArticleStructurePluginOptions;
|
|
15
16
|
};
|
|
16
17
|
export default class EditorPluginsArticleStructureCardComponent extends Component<Args> {
|
|
18
|
+
AddIcon = AddIcon;
|
|
17
19
|
@service declare intl: IntlService;
|
|
18
20
|
|
|
19
21
|
get structureTypes() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
{{#unless this.isOutsideStructure}}
|
|
2
3
|
<AuCard @flex={{true}} @divided={{true}} @expandable={{false}} @shadow={{true}} @size="flush" as |c|>
|
|
3
4
|
<c.header class="au-u-hidden-visually">
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
<AuList @divider={{true}} class="au-u-padding-top-tiny au-u-padding-bottom-tiny" as |Item|>
|
|
8
9
|
<Item>
|
|
9
10
|
<AuButton
|
|
10
|
-
@icon=
|
|
11
|
+
@icon={{this.ChevronUpIcon}}
|
|
11
12
|
@iconAlignment="left"
|
|
12
13
|
@skin="link"
|
|
13
14
|
@disabled={{not this.canMoveUp}}
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
</Item>
|
|
18
19
|
<Item>
|
|
19
20
|
<AuButton
|
|
20
|
-
@icon=
|
|
21
|
+
@icon={{this.ChevronDownIcon}}
|
|
21
22
|
@iconAlignment="left"
|
|
22
23
|
@skin="link"
|
|
23
24
|
@disabled={{not this.canMoveDown}}
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
<HoverTooltip>
|
|
31
32
|
<:hover as |hover|>
|
|
32
33
|
<AuButton
|
|
33
|
-
@icon=
|
|
34
|
+
@icon={{this.BinIcon}}
|
|
34
35
|
@iconAlignment="left"
|
|
35
36
|
@skin="link"
|
|
36
37
|
@alert={{true}}
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
<HoverTooltip>
|
|
56
57
|
<:hover as |hover|>
|
|
57
58
|
<AuButton
|
|
58
|
-
@icon=
|
|
59
|
+
@icon={{this.BinIcon}}
|
|
59
60
|
@iconAlignment="left"
|
|
60
61
|
@skin="link"
|
|
61
62
|
aria-describedby="remove-content-tooltip"
|
|
@@ -115,4 +116,4 @@
|
|
|
115
116
|
</AuList>
|
|
116
117
|
</c.content>
|
|
117
118
|
</AuCard>
|
|
118
|
-
{{/unless}}
|
|
119
|
+
{{/unless}}
|
|
@@ -12,6 +12,9 @@ import { findAncestorOfType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugi
|
|
|
12
12
|
import { tracked } from '@glimmer/tracking';
|
|
13
13
|
import { service } from '@ember/service';
|
|
14
14
|
import IntlService from 'ember-intl/services/intl';
|
|
15
|
+
import { ChevronUpIcon } from '@appuniversum/ember-appuniversum/components/icons/chevron-up';
|
|
16
|
+
import { ChevronDownIcon } from '@appuniversum/ember-appuniversum/components/icons/chevron-down';
|
|
17
|
+
import { BinIcon } from '@appuniversum/ember-appuniversum/components/icons/bin';
|
|
15
18
|
|
|
16
19
|
type Args = {
|
|
17
20
|
controller: SayController;
|
|
@@ -19,6 +22,9 @@ type Args = {
|
|
|
19
22
|
};
|
|
20
23
|
|
|
21
24
|
export default class EditorPluginsStructureCardComponent extends Component<Args> {
|
|
25
|
+
BinIcon = BinIcon;
|
|
26
|
+
ChevronDownIcon = ChevronDownIcon;
|
|
27
|
+
ChevronUpIcon = ChevronUpIcon;
|
|
22
28
|
@service declare intl: IntlService;
|
|
23
29
|
@tracked removeStructureContent = false;
|
|
24
30
|
@tracked startNumber: number | null = null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
+
import { ComponentLike } from '@glint/template';
|
|
2
3
|
|
|
3
4
|
interface Args {
|
|
4
5
|
width?: 'block';
|
|
@@ -7,7 +8,7 @@ interface Args {
|
|
|
7
8
|
warning?: boolean;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
type?: string;
|
|
10
|
-
icon?:
|
|
11
|
+
icon?: ComponentLike;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export default class AuNativeInput extends Component<Args> {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<div ...attributes>
|
|
2
3
|
<PowerSelect
|
|
3
4
|
@renderInPlace={{true}}
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
{{#if @showWarningWhenEmpty}}
|
|
17
18
|
{{#unless @selected}}
|
|
18
19
|
<AuAlert
|
|
19
|
-
@icon=
|
|
20
|
+
@icon={{this.AlertTriangleIcon}}
|
|
20
21
|
@title={{t "besluit-type-plugin.alert-title"}}
|
|
21
22
|
@skin="warning"
|
|
22
23
|
@size="small"
|
|
@@ -25,4 +26,4 @@
|
|
|
25
26
|
</AuAlert>
|
|
26
27
|
{{/unless}}
|
|
27
28
|
{{/if}}
|
|
28
|
-
</div>
|
|
29
|
+
</div>
|
|
@@ -2,11 +2,15 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { action } from '@ember/object';
|
|
3
3
|
import { tracked } from '@glimmer/tracking';
|
|
4
4
|
import { BesluitType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-type-plugin/utils/fetchBesluitTypes';
|
|
5
|
+
import { AlertTriangleIcon } from '@appuniversum/ember-appuniversum/components/icons/alert-triangle';
|
|
6
|
+
|
|
5
7
|
type Args = {
|
|
6
8
|
besluitTypes: BesluitType[];
|
|
7
9
|
};
|
|
8
10
|
|
|
9
11
|
export default class BesluitTypePluginBesluitTypeSelectComponent extends Component<Args> {
|
|
12
|
+
AlertTriangleIcon = AlertTriangleIcon;
|
|
13
|
+
|
|
10
14
|
@tracked besluitTypes;
|
|
11
15
|
constructor(parent: unknown, args: Args) {
|
|
12
16
|
super(parent, args);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<div
|
|
2
3
|
{{did-update this.updateBesluitTypes @controller.mainEditorState}}
|
|
3
4
|
{{did-update this.updateBesluitTypes this.types.value}}
|
|
@@ -6,7 +7,7 @@
|
|
|
6
7
|
{{#if this.types.isError}}
|
|
7
8
|
<AuPill
|
|
8
9
|
@skin='error'
|
|
9
|
-
@icon=
|
|
10
|
+
@icon={{this.CircleXIcon}}
|
|
10
11
|
@iconAlignment='left'
|
|
11
12
|
class='au-c-pill--link besluit-toolbar-pill'
|
|
12
13
|
{{on 'click' this.toggleCard}}
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
</AuPill>
|
|
27
28
|
{{else}}
|
|
28
29
|
<AuPill
|
|
29
|
-
@icon=
|
|
30
|
+
@icon={{this.AlertTriangleIcon}}
|
|
30
31
|
@iconAlignment='left'
|
|
31
32
|
@skin='link'
|
|
32
33
|
{{on 'click' this.toggleCard}}
|
|
@@ -51,14 +52,14 @@
|
|
|
51
52
|
<AuAlert
|
|
52
53
|
@title={{t 'besluit-type-plugin.error-title'}}
|
|
53
54
|
@skin='error'
|
|
54
|
-
@icon=
|
|
55
|
+
@icon={{this.CrossIcon}}
|
|
55
56
|
>
|
|
56
57
|
<p>
|
|
57
58
|
{{t 'besluit-type-plugin.error-first-body'}}
|
|
58
59
|
{{! template-lint-disable no-bare-strings }}
|
|
59
60
|
<AuLinkExternal
|
|
60
61
|
href='mailto:gelinktnotuleren@vlaanderen.be'
|
|
61
|
-
@icon=
|
|
62
|
+
@icon={{this.MailIcon}}
|
|
62
63
|
@iconAlignment='left'
|
|
63
64
|
>
|
|
64
65
|
GelinktNotuleren@vlaanderen.be
|
|
@@ -15,6 +15,10 @@ import { findAncestorOfType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugi
|
|
|
15
15
|
import { trackedFunction } from 'ember-resources/util/function';
|
|
16
16
|
import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
17
17
|
import { BesluitTypePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-type-plugin';
|
|
18
|
+
import { AlertTriangleIcon } from '@appuniversum/ember-appuniversum/components/icons/alert-triangle';
|
|
19
|
+
import { CrossIcon } from '@appuniversum/ember-appuniversum/components/icons/cross';
|
|
20
|
+
import { MailIcon } from '@appuniversum/ember-appuniversum/components/icons/mail';
|
|
21
|
+
import { CircleXIcon } from '@appuniversum/ember-appuniversum/components/icons/circle-x';
|
|
18
22
|
|
|
19
23
|
declare module 'ember__owner' {
|
|
20
24
|
export default interface Owner {
|
|
@@ -28,6 +32,10 @@ type Args = {
|
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
export default class EditorPluginsToolbarDropdownComponent extends Component<Args> {
|
|
35
|
+
CircleIcon = CircleXIcon;
|
|
36
|
+
MailIcon = MailIcon;
|
|
37
|
+
CrossIcon = CrossIcon;
|
|
38
|
+
AlertTriangleIcon = AlertTriangleIcon;
|
|
31
39
|
/**
|
|
32
40
|
* Actual besluit type selected
|
|
33
41
|
* @property besluitType
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
{{#if this.showCard}}
|
|
2
3
|
<AuCard
|
|
3
4
|
@flex={{true}}
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
@warning={{false}}
|
|
59
60
|
>{{t 'citaten-plugin.search.term'}}</AuLabel>
|
|
60
61
|
<AuNativeInput
|
|
61
|
-
@icon=
|
|
62
|
+
@icon={{this.SearchIcon}}
|
|
62
63
|
@type='text'
|
|
63
64
|
@width='block'
|
|
64
65
|
@iconAlignment='right'
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
<AuFormRow>
|
|
72
73
|
<AuButton
|
|
73
74
|
@skin='link'
|
|
74
|
-
@icon=
|
|
75
|
+
@icon={{this.SearchIcon}}
|
|
75
76
|
@iconAlignment='left'
|
|
76
77
|
{{on 'click' this.openSearchModal}}
|
|
77
78
|
>{{t 'citaten-plugin.search.advanced'}}</AuButton>
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
}}</span>
|
|
87
88
|
{{else}}
|
|
88
89
|
{{#if this.error}}
|
|
89
|
-
<
|
|
90
|
+
<Common::Search::AlertLoadError
|
|
90
91
|
@fullSize={{false}}
|
|
91
92
|
@error={{this.error}}
|
|
92
93
|
/>
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
LegalDocument,
|
|
28
28
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/legal-documents';
|
|
29
29
|
import { cleanCaches } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/cache';
|
|
30
|
+
import { SearchIcon } from '@appuniversum/ember-appuniversum/components/icons/search';
|
|
30
31
|
|
|
31
32
|
interface Args {
|
|
32
33
|
controller: SayController;
|
|
@@ -36,6 +37,8 @@ interface Args {
|
|
|
36
37
|
|
|
37
38
|
/* A component card that will only show up when certain keywords are typed */
|
|
38
39
|
export default class CitationCardComponent extends Component<Args> {
|
|
40
|
+
SearchIcon = SearchIcon;
|
|
41
|
+
|
|
39
42
|
@tracked pageNumber = 0;
|
|
40
43
|
@tracked pageSize = 5;
|
|
41
44
|
@tracked totalSize = 0;
|
|
@@ -17,6 +17,7 @@ import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
|
17
17
|
import { findParentNodeOfType } from '@curvenote/prosemirror-utils';
|
|
18
18
|
import { Article } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/article';
|
|
19
19
|
import { LegalDocument } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/legal-documents';
|
|
20
|
+
import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
|
|
20
21
|
|
|
21
22
|
interface Args {
|
|
22
23
|
controller: SayController;
|
|
@@ -24,6 +25,8 @@ interface Args {
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export default class EditorPluginsCitationInsertComponent extends Component<Args> {
|
|
28
|
+
AddIcon = AddIcon;
|
|
29
|
+
|
|
27
30
|
@tracked showModal = false;
|
|
28
31
|
@tracked legislationTypeUri = LEGISLATION_TYPES.decreet;
|
|
29
32
|
@tracked text = '';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<div class="au-u-margin" ...attributes>
|
|
2
3
|
<AuHeading @level="3" @skin="5" class="au-u-margin-bottom-small">
|
|
3
4
|
{{@article.number}} ({{@article.dateInForce}} - {{if @article.dateNoLongerInForce @article.dateNoLongerInForce "…"}})
|
|
@@ -7,10 +8,10 @@
|
|
|
7
8
|
</p>
|
|
8
9
|
<AuButton
|
|
9
10
|
@skin="primary"
|
|
10
|
-
@icon=
|
|
11
|
+
@icon={{this.PlusTextIcon}}
|
|
11
12
|
@iconAlignment="left"
|
|
12
13
|
class="au-u-margin-top-small"
|
|
13
14
|
{{on "click" @insertArticleCitation}}>
|
|
14
15
|
{{t "citaten-plugin.references.refer-article"}}
|
|
15
16
|
</AuButton>
|
|
16
|
-
</div>
|
|
17
|
+
</div>
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { htmlSafe } from '@ember/template';
|
|
3
3
|
import { Article } from '../../../plugins/citation-plugin/utils/article';
|
|
4
|
+
import { PlusTextIcon } from '@appuniversum/ember-appuniversum/components/icons/plus-text';
|
|
4
5
|
|
|
5
6
|
interface Args {
|
|
6
7
|
article: Article;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export default class ArticlePreviewComponent extends Component<Args> {
|
|
11
|
+
PlusTextIcon = PlusTextIcon;
|
|
10
12
|
get content() {
|
|
11
13
|
return htmlSafe(this.args.article.content ?? '');
|
|
12
14
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<div class="citaten--main-container au-u-flex au-u-flex--column au-u-flex--between">
|
|
2
3
|
<div class="citaten--container-content">
|
|
3
4
|
{{! Heading with title and actions }}
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
<AuPill
|
|
10
11
|
class="au-u-margin-top-small au-u-margin-bottom-small"
|
|
11
12
|
@skin="border"
|
|
12
|
-
@icon=
|
|
13
|
+
@icon={{this.CalendarIcon}}
|
|
13
14
|
@iconAlignment="left">
|
|
14
15
|
{{@legalDocument.publicationDate}}
|
|
15
16
|
</AuPill>
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
<br/>
|
|
18
19
|
<AuButton
|
|
19
20
|
@skin="primary"
|
|
20
|
-
@icon=
|
|
21
|
+
@icon={{this.PlusTextIcon}}
|
|
21
22
|
@iconAlignment="left"
|
|
22
23
|
class="au-u-margin-right"
|
|
23
24
|
{{on "click" (fn @insertLegalDocumentCitation @legalDocument)}}>
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
</AuButton>
|
|
26
27
|
<AuLinkExternal
|
|
27
28
|
@skin="primary"
|
|
28
|
-
@icon=
|
|
29
|
+
@icon={{this.LinkExternalIcon}}
|
|
29
30
|
@iconAlignment="left"
|
|
30
31
|
href={{@legalDocument.uri}}
|
|
31
32
|
rel="noreferrer noopener">
|
|
@@ -34,9 +35,16 @@
|
|
|
34
35
|
{{! Search field }}
|
|
35
36
|
<AuLabel class="au-u-margin-top-small au-margin-bottom-small" for="searchCodex" @inline={{true}}
|
|
36
37
|
@required={{false}} @error={{false}} @warning={{false}}>{{t "citaten-plugin.search.article"}}</AuLabel>
|
|
37
|
-
<AuInput
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
<AuInput
|
|
39
|
+
id="searchCodex"
|
|
40
|
+
placeholder="{{t "citaten-plugin.search.article-placeholder"}}"
|
|
41
|
+
type="text"
|
|
42
|
+
@width="default"
|
|
43
|
+
@icon={{this.SearchIcon}}
|
|
44
|
+
@iconAlignment="right"
|
|
45
|
+
value={{this.articleFilter}}
|
|
46
|
+
{{on "input" (perform this.updateArticleFilter)}}
|
|
47
|
+
/>
|
|
40
48
|
</div>
|
|
41
49
|
{{! Search results }}
|
|
42
50
|
<div>
|
|
@@ -47,7 +55,7 @@
|
|
|
47
55
|
</div>
|
|
48
56
|
{{else}}
|
|
49
57
|
{{#if this.error}}
|
|
50
|
-
<
|
|
58
|
+
<Common::Search::AlertLoadError @fullSize={{true}} @error={{this.error}} class="au-o-box"/>
|
|
51
59
|
{{else}}
|
|
52
60
|
<CitationPlugin::Citations::ArticleList
|
|
53
61
|
@insertArticleCitation={{fn @insertArticleCitation @legalDocument}}
|
|
@@ -69,7 +77,7 @@
|
|
|
69
77
|
<div class="au-c-pagination__list-item">
|
|
70
78
|
<AuButton
|
|
71
79
|
@skin="link"
|
|
72
|
-
@icon=
|
|
80
|
+
@icon={{this.HierarchicalBackIcon}}
|
|
73
81
|
@iconAlignment="left"
|
|
74
82
|
{{on "click" this.close}}>
|
|
75
83
|
{{t "citaten-plugin.search.back"}}
|
|
@@ -89,7 +97,7 @@
|
|
|
89
97
|
{{#unless this.isFirstPage}}
|
|
90
98
|
<AuButton
|
|
91
99
|
@skin="link"
|
|
92
|
-
@icon=
|
|
100
|
+
@icon={{this.NavLeftIcon}}
|
|
93
101
|
@iconAlignment="left"
|
|
94
102
|
{{on "click" this.previousPage}}>
|
|
95
103
|
{{t "citaten-plugin.pagination.previous"}}
|
|
@@ -98,7 +106,7 @@
|
|
|
98
106
|
{{#unless this.isLastPage}}
|
|
99
107
|
<AuButton
|
|
100
108
|
@skin="link"
|
|
101
|
-
@icon=
|
|
109
|
+
@icon={{this.NavRightIcon}}
|
|
102
110
|
@iconAlignment="right"
|
|
103
111
|
{{on "click" this.nextPage}}>
|
|
104
112
|
{{t "citaten-plugin.pagination.next"}}
|
|
@@ -110,4 +118,4 @@
|
|
|
110
118
|
</AuToolbar>
|
|
111
119
|
</div>
|
|
112
120
|
</div>
|
|
113
|
-
</div>
|
|
121
|
+
</div>
|
|
@@ -3,6 +3,13 @@ import { restartableTask, timeout } from 'ember-concurrency';
|
|
|
3
3
|
import { tracked } from '@glimmer/tracking';
|
|
4
4
|
import { action } from '@ember/object';
|
|
5
5
|
import { task as trackedTask } from 'ember-resources/util/ember-concurrency';
|
|
6
|
+
import { CalendarIcon } from '@appuniversum/ember-appuniversum/components/icons/calendar';
|
|
7
|
+
import { PlusTextIcon } from '@appuniversum/ember-appuniversum/components/icons/plus-text';
|
|
8
|
+
import { LinkExternalIcon } from '@appuniversum/ember-appuniversum/components/icons/link-external';
|
|
9
|
+
import { SearchIcon } from '@appuniversum/ember-appuniversum/components/icons/search';
|
|
10
|
+
import { HierarchicalBackIcon } from '@appuniversum/ember-appuniversum/components/icons/hierarchical-back';
|
|
11
|
+
import { NavLeftIcon } from '@appuniversum/ember-appuniversum/components/icons/nav-left';
|
|
12
|
+
import { NavRightIcon } from '@appuniversum/ember-appuniversum/components/icons/nav-right';
|
|
6
13
|
|
|
7
14
|
import { LegalDocument } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/legal-documents';
|
|
8
15
|
import { fetchArticles } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/article';
|
|
@@ -14,6 +21,14 @@ interface Args {
|
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
export default class LegalDocumentDetailComponent extends Component<Args> {
|
|
24
|
+
NavRightIcon = NavRightIcon;
|
|
25
|
+
NavLeftIcon = NavLeftIcon;
|
|
26
|
+
HierarchicalBackIcon = HierarchicalBackIcon;
|
|
27
|
+
SearchIcon = SearchIcon;
|
|
28
|
+
LinkExternalIcon = LinkExternalIcon;
|
|
29
|
+
PlusTextIcon = PlusTextIcon;
|
|
30
|
+
CalendarIcon = CalendarIcon;
|
|
31
|
+
|
|
17
32
|
@tracked error: unknown;
|
|
18
33
|
@tracked pageNumber = 0;
|
|
19
34
|
@tracked pageSize = 5;
|
|
@@ -22,7 +37,9 @@ export default class LegalDocumentDetailComponent extends Component<Args> {
|
|
|
22
37
|
@tracked articleFilter = '';
|
|
23
38
|
@tracked articleFilterAfterTimeout = '';
|
|
24
39
|
|
|
25
|
-
updateArticleFilter = restartableTask(async () => {
|
|
40
|
+
updateArticleFilter = restartableTask(async (event: InputEvent) => {
|
|
41
|
+
const target = event.target as HTMLInputElement;
|
|
42
|
+
this.articleFilter = target.value;
|
|
26
43
|
await timeout(500);
|
|
27
44
|
this.pageNumber = 0;
|
|
28
45
|
this.articleFilterAfterTimeout = this.articleFilter;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<div class="citaten--decision-list-item {{if @fullSize "au-u-padding-small"}}" ...attributes>
|
|
2
3
|
<p class="citaten--decision-title {{if @fullSize "au-u-h6 au-u-medium" "au-u-h-functional"}}">
|
|
3
4
|
{{if @fullSize (capitalize @legalDocument.fullTitle) @legalDocument.title}}
|
|
@@ -6,7 +7,7 @@
|
|
|
6
7
|
<AuPill
|
|
7
8
|
class="au-u-margin-top-small au-u-margin-bottom-small"
|
|
8
9
|
@skin="border"
|
|
9
|
-
@icon=
|
|
10
|
+
@icon={{this.CalendarIcon}}
|
|
10
11
|
@iconAlignment="left">
|
|
11
12
|
{{@legalDocument.publicationDate}}
|
|
12
13
|
</AuPill>
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
<AuButtonGroup @inline={{false}}>
|
|
17
18
|
<AuButton
|
|
18
19
|
@skin="primary"
|
|
19
|
-
@icon=
|
|
20
|
+
@icon={{this.PlusTextIcon}}
|
|
20
21
|
@iconAlignment="left"
|
|
21
22
|
{{on "click" @onCitationInsert}}>
|
|
22
23
|
{{t "citaten-plugin.references.insert"}}
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
{{#if this.hasPublicationLink}}
|
|
26
27
|
<AuLinkExternal
|
|
27
28
|
@skin="button"
|
|
28
|
-
@icon=
|
|
29
|
+
@icon={{this.LinkExternalIcon}}
|
|
29
30
|
@iconAlignment="left"
|
|
30
31
|
href={{@legalDocument.meta.publicationLink}}
|
|
31
32
|
rel="noreferrer noopener">
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
{{else}}
|
|
35
36
|
<AuButton
|
|
36
37
|
@skin='button'
|
|
37
|
-
@icon=
|
|
38
|
+
@icon={{this.LinkExternalIcon}}
|
|
38
39
|
@iconAlignment="left"
|
|
39
40
|
@disabled={{true}}
|
|
40
41
|
>
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
{{else}}
|
|
45
46
|
<AuButton
|
|
46
47
|
@skin="secondary"
|
|
47
|
-
@icon=
|
|
48
|
+
@icon={{this.ManualIcon}}
|
|
48
49
|
@iconAlignment="left"
|
|
49
50
|
{{on "click" @onCitationDetails}}>
|
|
50
51
|
{{t "citaten-plugin.references.details"}}
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
<div class="au-u-flex au-u-flex--row au-u-flex--no-wrap au-u-flex--between au-u-margin-top-tiny">
|
|
58
59
|
<AuButton
|
|
59
60
|
@skin="link-secondary"
|
|
60
|
-
@icon=
|
|
61
|
+
@icon={{this.PlusTextIcon}}
|
|
61
62
|
@iconAlignment="left"
|
|
62
63
|
class="au-u-h-functional"
|
|
63
64
|
{{on "click" @onCitationInsert}}>
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
{{#if this.hasPublicationLink}}
|
|
68
69
|
<AuLinkExternal
|
|
69
70
|
@skin="link"
|
|
70
|
-
@icon=
|
|
71
|
+
@icon={{this.LinkExternalIcon}}
|
|
71
72
|
@iconAlignment="left"
|
|
72
73
|
href={{@legalDocument.meta.publicationLink}}
|
|
73
74
|
rel="noreferrer noopener"
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
{{else}}
|
|
88
89
|
<AuButton
|
|
89
90
|
@skin="link"
|
|
90
|
-
@icon=
|
|
91
|
+
@icon={{this.ManualIcon}}
|
|
91
92
|
@iconAlignment="left"
|
|
92
93
|
class="au-u-h-functional"
|
|
93
94
|
{{on "click" @onCitationDetails}}>
|
|
@@ -96,4 +97,4 @@
|
|
|
96
97
|
{{/if}}
|
|
97
98
|
</div>
|
|
98
99
|
{{/if}}
|
|
99
|
-
</div>
|
|
100
|
+
</div>
|
|
@@ -3,12 +3,21 @@ import {
|
|
|
3
3
|
isBesluitLegalDocument,
|
|
4
4
|
LegalDocument,
|
|
5
5
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/legal-documents';
|
|
6
|
+
import { CalendarIcon } from '@appuniversum/ember-appuniversum/components/icons/calendar';
|
|
7
|
+
import { PlusTextIcon } from '@appuniversum/ember-appuniversum/components/icons/plus-text';
|
|
8
|
+
import { LinkExternalIcon } from '@appuniversum/ember-appuniversum/components/icons/link-external';
|
|
9
|
+
import { ManualIcon } from '@appuniversum/ember-appuniversum/components/icons/manual';
|
|
6
10
|
|
|
7
11
|
interface Args {
|
|
8
12
|
legalDocument: LegalDocument;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
export default class LegalDocumentPreviewComponent extends Component<Args> {
|
|
16
|
+
ManualIcon = ManualIcon;
|
|
17
|
+
LinkExternalIcon = LinkExternalIcon;
|
|
18
|
+
PlusTextIcon = PlusTextIcon;
|
|
19
|
+
CalendarIcon = CalendarIcon;
|
|
20
|
+
|
|
12
21
|
get isBesluit() {
|
|
13
22
|
return isBesluitLegalDocument(this.args.legalDocument);
|
|
14
23
|
}
|