@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { action } from '@ember/object';
|
|
2
|
+
import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
|
|
2
3
|
|
|
3
4
|
import Component from '@glimmer/component';
|
|
4
5
|
import { tracked } from '@glimmer/tracking';
|
|
@@ -13,6 +14,8 @@ interface Args {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export default class SnippetInsertComponent extends Component<Args> {
|
|
17
|
+
AddIcon = AddIcon;
|
|
18
|
+
|
|
16
19
|
@tracked showModal = false;
|
|
17
20
|
|
|
18
21
|
get controller() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<AuModal
|
|
2
3
|
@modalOpen={{@open}}
|
|
3
4
|
@closeModal={{this.closeModal}}
|
|
@@ -39,14 +40,11 @@
|
|
|
39
40
|
<div class='au-u-padding-top snippet-modal--list-container'>
|
|
40
41
|
{{#if this.snippetListResource.isRunning}}
|
|
41
42
|
<div class='au-u-margin'>
|
|
42
|
-
<
|
|
43
|
-
<span class='au-u-hidden-visually'>
|
|
44
|
-
{{t 'snippet-plugin.alert.loading'}}
|
|
45
|
-
</span>
|
|
43
|
+
<Common::Search::Loading />
|
|
46
44
|
</div>
|
|
47
45
|
{{else}}
|
|
48
46
|
{{#if this.error}}
|
|
49
|
-
<
|
|
47
|
+
<Common::Search::AlertLoadError @error={{this.error}} class="au-u-margin-top-none" />
|
|
50
48
|
{{else}}
|
|
51
49
|
{{#if this.snippetListResource.value.length}}
|
|
52
50
|
<SnippetPlugin::SnippetList::SnippetListView
|
|
@@ -55,7 +53,7 @@
|
|
|
55
53
|
@onChange={{this.onChange}}
|
|
56
54
|
/>
|
|
57
55
|
{{else}}
|
|
58
|
-
<
|
|
56
|
+
<Common::Search::AlertNoItems />
|
|
59
57
|
{{/if}}
|
|
60
58
|
{{/if}}
|
|
61
59
|
{{/if}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<AuHeading @level='3' @skin='4'>
|
|
2
3
|
{{t 'snippet-plugin.snippet-list.modal.subtitle'}}
|
|
3
4
|
</AuHeading>
|
|
@@ -14,8 +15,8 @@
|
|
|
14
15
|
{{#each @snippetLists as |snippetList|}}
|
|
15
16
|
<tr>
|
|
16
17
|
<td class="selectColumn">
|
|
17
|
-
<
|
|
18
|
-
|
|
18
|
+
<AuCheckbox
|
|
19
|
+
id={{snippetList.label}}
|
|
19
20
|
@onChange={{fn this.onChange snippetList.id}}
|
|
20
21
|
@checked={{in-array @assignedSnippetListsIds snippetList.id}}
|
|
21
22
|
/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { action } from '@ember/object';
|
|
2
2
|
import { Task } from 'ember-concurrency';
|
|
3
|
-
|
|
4
3
|
import Component from '@glimmer/component';
|
|
5
4
|
import { tracked } from '@glimmer/tracking';
|
|
5
|
+
import { UnorderedListIcon } from '@appuniversum/ember-appuniversum/components/icons/unordered-list';
|
|
6
6
|
|
|
7
7
|
import { SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
|
|
8
8
|
|
|
@@ -13,6 +13,7 @@ interface Args {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export default class SnippetListSelectComponent extends Component<Args> {
|
|
16
|
+
UnorderedListIcon = UnorderedListIcon;
|
|
16
17
|
@tracked showModal = false;
|
|
17
18
|
|
|
18
19
|
@action
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<StandardTemplatePlugin::TemplateProvider @controller={{@controller}} @templates={{@templates}} as |provider|>
|
|
2
3
|
{{#if provider.hasApplicableTemplates}}
|
|
3
4
|
{{#each provider.applicableTemplates as |template|}}
|
|
4
5
|
<li class="au-c-list__item">
|
|
5
6
|
<AuButton
|
|
6
7
|
@skin="link"
|
|
7
|
-
@icon=
|
|
8
|
+
@icon={{this.AddIcon}}
|
|
8
9
|
@iconAlignment="left"
|
|
9
10
|
{{on "click" (fn provider.insert template)}}
|
|
10
11
|
>
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import StandardTemplate from '@lblod/ember-rdfa-editor-lblod-plugins/models/template';
|
|
4
|
+
import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
|
|
4
5
|
|
|
5
6
|
type Args = {
|
|
6
7
|
controller: SayController;
|
|
7
8
|
templates: StandardTemplate[];
|
|
8
9
|
};
|
|
9
10
|
export default class StandardTemplatePluginCardComponent extends Component<Args> {
|
|
11
|
+
AddIcon = AddIcon;
|
|
10
12
|
get controller() {
|
|
11
13
|
return this.args.controller;
|
|
12
14
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
{{#if this.isInsideComment}}
|
|
2
3
|
<AuCard
|
|
3
4
|
@flex={{true}}
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
>
|
|
14
15
|
<Item>
|
|
15
16
|
<AuButton
|
|
16
|
-
@icon=
|
|
17
|
+
@icon={{this.ChevronUpIcon}}
|
|
17
18
|
@iconAlignment='left'
|
|
18
19
|
@skin='link'
|
|
19
20
|
{{on 'click' this.moveUp}}
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
</Item>
|
|
24
25
|
<Item>
|
|
25
26
|
<AuButton
|
|
26
|
-
@icon=
|
|
27
|
+
@icon={{this.ChevronDownIcon}}
|
|
27
28
|
@iconAlignment='left'
|
|
28
29
|
@skin='link'
|
|
29
30
|
{{on 'click' this.moveDown}}
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
</Item>
|
|
34
35
|
<Item>
|
|
35
36
|
<AuButton
|
|
36
|
-
@icon=
|
|
37
|
+
@icon={{this.BinIcon}}
|
|
37
38
|
@iconAlignment='left'
|
|
38
39
|
@skin='link'
|
|
39
40
|
@alert={{true}}
|
|
@@ -10,12 +10,19 @@ import {
|
|
|
10
10
|
findContentMatchPosLeft,
|
|
11
11
|
findContentMatchPosRight,
|
|
12
12
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/utils/find-insertion-contentmatch';
|
|
13
|
+
import { ChevronUpIcon } from '@appuniversum/ember-appuniversum/components/icons/chevron-up';
|
|
14
|
+
import { ChevronDownIcon } from '@appuniversum/ember-appuniversum/components/icons/chevron-down';
|
|
15
|
+
import { BinIcon } from '@appuniversum/ember-appuniversum/components/icons/bin';
|
|
13
16
|
|
|
14
17
|
type Args = {
|
|
15
18
|
controller: SayController;
|
|
16
19
|
};
|
|
17
20
|
|
|
18
21
|
export default class TemplateCommentsPluginEditCardComponent extends Component<Args> {
|
|
22
|
+
BinIcon = BinIcon;
|
|
23
|
+
ChevronDownIcon = ChevronDownIcon;
|
|
24
|
+
ChevronUpIcon = ChevronUpIcon;
|
|
25
|
+
|
|
19
26
|
get controller() {
|
|
20
27
|
return this.args.controller;
|
|
21
28
|
}
|
|
@@ -2,12 +2,15 @@ import { findParentNode } from '@curvenote/prosemirror-utils';
|
|
|
2
2
|
import { action } from '@ember/object';
|
|
3
3
|
import Component from '@glimmer/component';
|
|
4
4
|
import { Command, SayController } from '@lblod/ember-rdfa-editor';
|
|
5
|
+
import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
|
|
5
6
|
|
|
6
7
|
type Args = {
|
|
7
8
|
controller: SayController;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export default class TemplateCommentsPluginInsertCardComponent extends Component<Args> {
|
|
12
|
+
AddIcon = AddIcon;
|
|
13
|
+
|
|
11
14
|
get controller() {
|
|
12
15
|
return this.args.controller;
|
|
13
16
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<AuAlert
|
|
2
3
|
@size='small'
|
|
3
4
|
@title={{this.translation.title}}
|
|
4
5
|
@skin='info'
|
|
5
|
-
@icon=
|
|
6
|
+
@icon={{this.CircleInfoIcon}}
|
|
6
7
|
class='say-template-comment {{
|
|
7
8
|
if this.selectionInside 'ProseMirror-selectednode'
|
|
8
9
|
}} say-default-cursor'
|
|
@@ -2,8 +2,11 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { service } from '@ember/service';
|
|
3
3
|
import IntlService from 'ember-intl/services/intl';
|
|
4
4
|
import { EmberNodeArgs } from '@lblod/ember-rdfa-editor/utils/ember-node';
|
|
5
|
+
import { CircleInfoIcon } from '@appuniversum/ember-appuniversum/components/icons/circle-info';
|
|
5
6
|
|
|
6
7
|
export default class TemplateCommentsPluginTemplateCommentComponent extends Component<EmberNodeArgs> {
|
|
8
|
+
CircleInfoIcon = CircleInfoIcon;
|
|
9
|
+
|
|
7
10
|
@service declare intl: IntlService;
|
|
8
11
|
|
|
9
12
|
get controller() {
|
|
@@ -3,6 +3,9 @@ import { SayController } from '@lblod/ember-rdfa-editor';
|
|
|
3
3
|
import { ValidationResult } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/validation';
|
|
4
4
|
import { service } from '@ember/service';
|
|
5
5
|
import IntlService from 'ember-intl/services/intl';
|
|
6
|
+
import { InfoCircleIcon } from '@appuniversum/ember-appuniversum/components/icons/info-circle';
|
|
7
|
+
import { AlertTriangleIcon } from '@appuniversum/ember-appuniversum/components/icons/alert-triangle';
|
|
8
|
+
import { CrossIcon } from '@appuniversum/ember-appuniversum/components/icons/cross';
|
|
6
9
|
|
|
7
10
|
interface Args {
|
|
8
11
|
icon?: string;
|
|
@@ -39,13 +42,13 @@ export default class ValidationItem extends Component<Args> {
|
|
|
39
42
|
get icon() {
|
|
40
43
|
switch (this.result.severity) {
|
|
41
44
|
case 'info':
|
|
42
|
-
return
|
|
45
|
+
return InfoCircleIcon;
|
|
43
46
|
case 'warning':
|
|
44
|
-
return
|
|
47
|
+
return AlertTriangleIcon;
|
|
45
48
|
case 'violation':
|
|
46
|
-
return
|
|
49
|
+
return CrossIcon;
|
|
47
50
|
default:
|
|
48
|
-
return
|
|
51
|
+
return InfoCircleIcon;
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
|
|
@@ -14,6 +14,8 @@ import { trackedReset } from 'tracked-toolbox';
|
|
|
14
14
|
import { trackedTask } from 'ember-resources/util/ember-concurrency';
|
|
15
15
|
import { service } from '@ember/service';
|
|
16
16
|
import IntlService from 'ember-intl/services/intl';
|
|
17
|
+
import { AlertTriangleIcon } from '@appuniversum/ember-appuniversum/components/icons/alert-triangle';
|
|
18
|
+
import { CheckIcon } from '@appuniversum/ember-appuniversum/components/icons/check';
|
|
17
19
|
|
|
18
20
|
type Args = {
|
|
19
21
|
controller: SayController;
|
|
@@ -68,7 +70,7 @@ export default class AddressEditComponent extends Component<Args> {
|
|
|
68
70
|
) {
|
|
69
71
|
return {
|
|
70
72
|
skin: 'success',
|
|
71
|
-
icon:
|
|
73
|
+
icon: CheckIcon,
|
|
72
74
|
title: this.intl.t('editor-plugins.address.edit.success.address-found'),
|
|
73
75
|
body: value.formatted,
|
|
74
76
|
};
|
|
@@ -83,7 +85,7 @@ export default class AddressEditComponent extends Component<Args> {
|
|
|
83
85
|
if (this.newAddress.error.alternativeAddress) {
|
|
84
86
|
return {
|
|
85
87
|
skin: 'warning',
|
|
86
|
-
icon:
|
|
88
|
+
icon: AlertTriangleIcon,
|
|
87
89
|
title: this.intl.t(
|
|
88
90
|
'editor-plugins.address.edit.errors.address-not-found-short',
|
|
89
91
|
),
|
|
@@ -96,7 +98,7 @@ export default class AddressEditComponent extends Component<Args> {
|
|
|
96
98
|
|
|
97
99
|
return {
|
|
98
100
|
skin: 'warning',
|
|
99
|
-
icon:
|
|
101
|
+
icon: AlertTriangleIcon,
|
|
100
102
|
title: this.intl.t(error.translation, { status: error.status }),
|
|
101
103
|
body: this.intl.t('editor-plugins.address.edit.errors.contact', {
|
|
102
104
|
htmlSafe: true,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<li class="au-c-list__item">
|
|
2
3
|
<AuButton
|
|
3
|
-
@icon=
|
|
4
|
+
@icon={{this.AddIcon}}
|
|
4
5
|
@iconAlignment="left"
|
|
5
6
|
@skin="link"
|
|
6
7
|
{{on 'click' (fn this.insertAddress true)}}
|
|
7
8
|
@disabled={{not this.canInsertAddress}}>
|
|
8
9
|
{{t "editor-plugins.address.insert"}}
|
|
9
10
|
</AuButton>
|
|
10
|
-
</li>
|
|
11
|
+
</li>
|
|
@@ -3,6 +3,7 @@ import { action } from '@ember/object';
|
|
|
3
3
|
import { service } from '@ember/service';
|
|
4
4
|
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
5
5
|
import IntlService from 'ember-intl/services/intl';
|
|
6
|
+
import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
|
|
6
7
|
|
|
7
8
|
import { replaceSelectionWithAddress } from './utils';
|
|
8
9
|
|
|
@@ -11,6 +12,8 @@ type Args = {
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export default class InsertAddressComponent extends Component<Args> {
|
|
15
|
+
AddIcon = AddIcon;
|
|
16
|
+
|
|
14
17
|
@service declare intl: IntlService;
|
|
15
18
|
|
|
16
19
|
get controller() {
|
|
@@ -2,6 +2,7 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { action } from '@ember/object';
|
|
3
3
|
import { service } from '@ember/service';
|
|
4
4
|
import IntlService from 'ember-intl/services/intl';
|
|
5
|
+
import { PencilIcon } from '@appuniversum/ember-appuniversum/components/icons/pencil';
|
|
5
6
|
|
|
6
7
|
import { NodeSelection, PNode, SayController } from '@lblod/ember-rdfa-editor';
|
|
7
8
|
import { Address } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/variables/address';
|
|
@@ -13,6 +14,8 @@ type Args = {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export default class AddressNodeviewComponent extends Component<Args> {
|
|
17
|
+
PencilIcon = PencilIcon;
|
|
18
|
+
|
|
16
19
|
@service declare intl: IntlService;
|
|
17
20
|
|
|
18
21
|
get controller() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
1
2
|
<div>
|
|
2
3
|
{{#if this.showCard}}
|
|
3
4
|
<AuCard @shadow={{true}} @size="flush" as |c|>
|
|
@@ -14,17 +15,19 @@
|
|
|
14
15
|
>
|
|
15
16
|
|
|
16
17
|
<AuFormRow @alignment="inline">
|
|
17
|
-
<
|
|
18
|
-
@
|
|
18
|
+
<AuCheckbox
|
|
19
|
+
@name="include-time"
|
|
19
20
|
@disabled={{eq this.dateFormatType "custom"}}
|
|
20
21
|
@checked={{not this.onlyDate}}
|
|
21
22
|
@onChange={{this.changeIncludeTime}}
|
|
22
|
-
|
|
23
|
+
>
|
|
24
|
+
{{t 'date-plugin.card.include-time'}}
|
|
25
|
+
</AuCheckbox>
|
|
23
26
|
{{#if this.isCustom}}
|
|
24
27
|
<this.Velcro @placement="top" @offsetOptions={{hash mainAxis=10}} as |velcro|>
|
|
25
28
|
<AuBadge
|
|
26
29
|
@size="small"
|
|
27
|
-
@icon=
|
|
30
|
+
@icon={{this.InfoCircleIcon}}
|
|
28
31
|
aria-describedby="date-plugin-time-info-tooltip"
|
|
29
32
|
{{velcro.hook}}
|
|
30
33
|
{{on "mouseenter" this.showTooltip }}
|
|
@@ -44,33 +47,26 @@
|
|
|
44
47
|
{{/if}}
|
|
45
48
|
</AuFormRow>
|
|
46
49
|
</VariablePlugin::Date::DateTimePicker>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
@name="dateFormat"
|
|
65
|
-
@value="custom"
|
|
66
|
-
checked={{eq this.dateFormatType "custom"}}
|
|
67
|
-
@onChange={{this.setDateFormatFromKey}}
|
|
68
|
-
/>
|
|
69
|
-
</AuFormRow>
|
|
70
|
-
{{/if}}
|
|
50
|
+
<AuRadioGroup
|
|
51
|
+
@name="dateFormat"
|
|
52
|
+
@selected={{this.dateFormatType}}
|
|
53
|
+
@onChange={{this.setDateFormatFromKey}}
|
|
54
|
+
as |Group|
|
|
55
|
+
>
|
|
56
|
+
{{#each this.formats as |format|}}
|
|
57
|
+
<Group.Radio @value={{format.key}}>
|
|
58
|
+
{{if format.label format.label (if this.onlyDate format.dateFormat format.dateTimeFormat)}}
|
|
59
|
+
</Group.Radio>
|
|
60
|
+
{{/each}}
|
|
61
|
+
{{#if this.isCustomAllowed}}
|
|
62
|
+
<Group.Radio @value="custom">
|
|
63
|
+
{{t "date-plugin.card.custom-date" }}
|
|
64
|
+
</Group.Radio>
|
|
65
|
+
{{/if}}
|
|
66
|
+
</AuRadioGroup>
|
|
71
67
|
{{#if (eq this.dateFormatType "custom")}}
|
|
72
68
|
<AuFormRow @alignment="post">
|
|
73
|
-
<AuButton @skin="secondary" @icon=
|
|
69
|
+
<AuButton @skin="secondary" @icon={{this.InfoCircleIcon}}
|
|
74
70
|
{{on 'click' this.toggleHelpModal}}>
|
|
75
71
|
</AuButton>
|
|
76
72
|
<AuNativeInput
|
|
@@ -80,7 +76,7 @@
|
|
|
80
76
|
/>
|
|
81
77
|
</AuFormRow>
|
|
82
78
|
{{#if this.humanError}}
|
|
83
|
-
<AuPill @skin="error" @icon=
|
|
79
|
+
<AuPill @skin="error" @icon={{this.CrossIcon}}>{{this.humanError}}</AuPill>
|
|
84
80
|
{{/if}}
|
|
85
81
|
{{/if}}
|
|
86
82
|
</div>
|
|
@@ -88,4 +84,4 @@
|
|
|
88
84
|
</AuCard>
|
|
89
85
|
{{/if}}
|
|
90
86
|
</div>
|
|
91
|
-
<VariablePlugin::Date::HelpModal @modalOpen={{this.helpModalOpen}} @closeModal={{this.toggleHelpModal}} />
|
|
87
|
+
<VariablePlugin::Date::HelpModal @modalOpen={{this.helpModalOpen}} @closeModal={{this.toggleHelpModal}} />
|
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
validateDateFormat,
|
|
24
24
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/date-helpers';
|
|
25
25
|
import { Velcro } from 'ember-velcro';
|
|
26
|
+
import { InfoCircleIcon } from '@appuniversum/ember-appuniversum/components/icons/info-circle';
|
|
27
|
+
import { CrossIcon } from '@appuniversum/ember-appuniversum/components/icons/cross';
|
|
26
28
|
|
|
27
29
|
type Args = {
|
|
28
30
|
controller: SayController;
|
|
@@ -30,6 +32,8 @@ type Args = {
|
|
|
30
32
|
};
|
|
31
33
|
const SECONDS_REGEX = new RegExp('[sStT]|p{2,}');
|
|
32
34
|
export default class DateEditComponent extends Component<Args> {
|
|
35
|
+
CrossIcon = CrossIcon;
|
|
36
|
+
InfoCircleIcon = InfoCircleIcon;
|
|
33
37
|
Velcro = Velcro;
|
|
34
38
|
|
|
35
39
|
@service
|
|
@@ -4,12 +4,15 @@ import { service } from '@ember/service';
|
|
|
4
4
|
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
5
5
|
import IntlService from 'ember-intl/services/intl';
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
|
+
import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
|
|
7
8
|
|
|
8
9
|
type Args = {
|
|
9
10
|
controller: SayController;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export default class DateInsertComponent extends Component<Args> {
|
|
14
|
+
AddIcon = AddIcon;
|
|
15
|
+
|
|
13
16
|
@service declare intl: IntlService;
|
|
14
17
|
|
|
15
18
|
get controller() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
+
<AuPill @icon={{this.PencilIcon}} @iconAlignment="right" class="variable atomic" {{on 'click' this.onClick}}>
|
|
2
3
|
|
|
3
4
|
{{this.humanReadableDate}}
|
|
4
5
|
{{#if @node.attrs.label}}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
formatDate,
|
|
14
14
|
validateDateFormat,
|
|
15
15
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/date-helpers';
|
|
16
|
+
import { PencilIcon } from '@appuniversum/ember-appuniversum/components/icons/pencil';
|
|
16
17
|
|
|
17
18
|
type Args = {
|
|
18
19
|
getPos: () => number | undefined;
|
|
@@ -25,6 +26,8 @@ type Args = {
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
export default class DateNodeviewComponent extends Component<Args> {
|
|
29
|
+
PencilIcon = PencilIcon;
|
|
30
|
+
|
|
28
31
|
@service declare intl: IntlService;
|
|
29
32
|
|
|
30
33
|
get controller() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { tracked } from '@glimmer/tracking';
|
|
3
3
|
import { action } from '@ember/object';
|
|
4
|
+
import { type ComponentLike } from '@glint/template';
|
|
4
5
|
import { NodeSelection, SayController } from '@lblod/ember-rdfa-editor';
|
|
5
6
|
import { hasGroups } from '@lblod/ember-rdfa-editor/utils/node-utils';
|
|
6
7
|
import { service } from '@ember/service';
|
|
@@ -8,7 +9,7 @@ import IntlService from 'ember-intl/services/intl';
|
|
|
8
9
|
|
|
9
10
|
export type VariableConfig = {
|
|
10
11
|
label: string;
|
|
11
|
-
component:
|
|
12
|
+
component: ComponentLike;
|
|
12
13
|
options?: unknown;
|
|
13
14
|
};
|
|
14
15
|
|