@lblod/ember-rdfa-editor-lblod-plugins 0.4.1 → 1.0.0-alpha.2
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/CHANGELOG.md +46 -0
- package/addon/components/article-structure-plugin/article-structure-card.hbs +10 -0
- package/addon/components/article-structure-plugin/article-structure-card.ts +33 -0
- package/addon/components/article-structure-plugin/structure-card.hbs +46 -0
- package/addon/components/article-structure-plugin/structure-card.ts +124 -0
- package/addon/components/au-native-input.hbs +30 -0
- package/addon/components/au-native-input.ts +47 -0
- package/addon/components/besluit-plugin/besluit-context-card.hbs +44 -0
- package/addon/components/besluit-plugin/besluit-context-card.ts +138 -0
- package/addon/components/besluit-plugin/besluit-plugin-card.hbs +20 -0
- package/addon/components/besluit-plugin/besluit-plugin-card.ts +40 -0
- package/addon/components/besluit-type-plugin/{besluit-type-select.js → besluit-type-select.ts} +8 -4
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +2 -0
- package/addon/components/besluit-type-plugin/toolbar-dropdown.ts +218 -0
- package/addon/components/citation-plugin/citation-card.hbs +118 -0
- package/addon/components/citation-plugin/citation-card.ts +230 -0
- package/addon/components/citation-plugin/citation-insert.hbs +20 -0
- package/addon/components/citation-plugin/citation-insert.ts +102 -0
- package/addon/components/{citaten-plugin → citation-plugin}/citations/article-list.hbs +2 -2
- package/addon/components/{citaten-plugin → citation-plugin}/citations/article-preview.hbs +0 -0
- package/addon/components/{citaten-plugin → citation-plugin}/citations/decision-detail.hbs +9 -6
- package/addon/components/{citaten-plugin/citations/decision-detail.js → citation-plugin/citations/decision-detail.ts} +30 -31
- package/addon/components/{citaten-plugin → citation-plugin}/citations/decision-list.hbs +2 -2
- package/addon/components/{citaten-plugin → citation-plugin}/citations/decision-preview.hbs +0 -0
- package/addon/components/citation-plugin/citations/search-modal.hbs +254 -0
- package/addon/components/{citaten-plugin/citations/search-modal.js → citation-plugin/citations/search-modal.ts} +117 -90
- package/addon/components/{citaten-plugin → citation-plugin}/helpers/alert-load-error.hbs +0 -0
- package/addon/components/{citaten-plugin → citation-plugin}/helpers/alert-no-items.hbs +0 -0
- package/addon/components/import-snippet-plugin/card.ts +119 -0
- package/addon/components/insert-variable-plugin/insert-variable-card.hbs +2 -1
- package/addon/components/insert-variable-plugin/insert-variable-card.ts +134 -0
- package/addon/components/rdfa-date-plugin/{rdfa-date-plugin-card.hbs → card.hbs} +3 -1
- package/addon/components/rdfa-date-plugin/card.ts +72 -0
- package/addon/components/rdfa-date-plugin/{rdfa-date-time-picker.hbs → date-time-picker.hbs} +0 -0
- package/addon/components/rdfa-date-plugin/{rdfa-date-time-picker.js → date-time-picker.ts} +26 -12
- package/addon/components/rdfa-date-plugin/{rdfa-date-plugin-insert.hbs → insert.hbs} +0 -0
- package/addon/components/rdfa-date-plugin/insert.ts +45 -0
- package/addon/components/roadsign-regulation-plugin/expanded-measure.ts +58 -0
- package/addon/components/roadsign-regulation-plugin/measure-template.ts +35 -0
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +2 -2
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.ts +60 -0
- package/addon/components/roadsign-regulation-plugin/{roadsigns-modal.js → roadsigns-modal.ts} +103 -66
- package/addon/components/roadsign-regulation-plugin/{roadsigns-pagination.js → roadsigns-pagination.ts} +7 -3
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.ts +32 -0
- package/addon/components/standard-template-plugin/{template-card.hbs → card.hbs} +0 -0
- package/addon/components/standard-template-plugin/card.ts +11 -0
- package/addon/components/standard-template-plugin/template-provider.hbs +3 -1
- package/addon/components/standard-template-plugin/template-provider.ts +75 -0
- package/addon/components/table-of-contents-plugin/card.hbs +12 -1
- package/addon/components/table-of-contents-plugin/card.ts +60 -0
- package/addon/components/table-of-contents-plugin/{inline-components → ember-nodes}/outline.hbs +2 -2
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.hbs +9 -0
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.ts +95 -0
- package/addon/components/template-variable-plugin/template-variable-card.hbs +2 -1
- package/addon/components/template-variable-plugin/template-variable-card.ts +227 -0
- package/addon/helpers/{limit-text.js → limit-text.ts} +2 -2
- package/addon/models/instruction.ts +18 -0
- package/addon/models/measure.ts +38 -0
- package/addon/models/sign.ts +36 -0
- package/addon/models/template.ts +14 -0
- package/addon/plugins/article-structure-plugin/commands/index.ts +6 -0
- package/addon/plugins/article-structure-plugin/commands/insert-structure.ts +80 -0
- package/addon/plugins/article-structure-plugin/commands/move-selected-structure.ts +130 -0
- package/addon/plugins/article-structure-plugin/commands/recalculate-structure-numbers.ts +26 -0
- package/addon/plugins/article-structure-plugin/commands/remove-structure.ts +21 -0
- package/addon/plugins/article-structure-plugin/commands/unwrap-structure.ts +40 -0
- package/addon/plugins/article-structure-plugin/commands/wrap-structure-content.ts +66 -0
- package/addon/plugins/article-structure-plugin/constants.ts +11 -0
- package/addon/plugins/article-structure-plugin/index.ts +70 -0
- package/addon/plugins/article-structure-plugin/structures/article-paragraph.ts +94 -0
- package/addon/plugins/article-structure-plugin/structures/article.ts +129 -0
- package/addon/plugins/article-structure-plugin/structures/chapter.ts +83 -0
- package/addon/plugins/article-structure-plugin/structures/index.ts +33 -0
- package/addon/plugins/article-structure-plugin/structures/section.ts +82 -0
- package/addon/plugins/article-structure-plugin/structures/structure-header.ts +65 -0
- package/addon/plugins/article-structure-plugin/structures/subsection.ts +83 -0
- package/addon/plugins/article-structure-plugin/structures/title.ts +83 -0
- package/addon/plugins/article-structure-plugin/utils/namespace.ts +25 -0
- package/addon/plugins/article-structure-plugin/utils/structure.ts +162 -0
- package/addon/plugins/besluit-plugin/commands/get-article-nodes-for-besluit.ts +30 -0
- package/addon/plugins/besluit-plugin/commands/index.ts +4 -0
- package/addon/plugins/besluit-plugin/commands/insert-article.ts +70 -0
- package/addon/plugins/besluit-plugin/commands/insert-title.ts +67 -0
- package/addon/plugins/besluit-plugin/commands/move-article.ts +69 -0
- package/addon/plugins/besluit-plugin/commands/recalculate-article-numbers.ts +44 -0
- package/addon/plugins/besluit-plugin/index.ts +11 -0
- package/addon/plugins/besluit-plugin/utils/get-title-for-decision.ts +35 -0
- package/addon/plugins/besluit-type-plugin/index.ts +6 -0
- package/addon/{utils/fetchBesluitTypes.js → plugins/besluit-type-plugin/utils/fetchBesluitTypes.ts} +35 -16
- package/addon/plugins/citation-plugin/index.ts +216 -0
- package/addon/plugins/citation-plugin/marks/citation.ts +27 -0
- package/addon/plugins/citation-plugin/utils/cited-text.ts +17 -0
- package/addon/{utils/legislation-types.js → plugins/citation-plugin/utils/legislation-types.ts} +17 -3
- package/addon/plugins/citation-plugin/utils/process-match.ts +132 -0
- package/addon/{utils/vlaamse-codex.js → plugins/citation-plugin/utils/vlaamse-codex.ts} +160 -41
- package/addon/plugins/import-snippet-plugin.ts +6 -0
- package/addon/plugins/insert-variable-plugin/index.ts +11 -0
- package/addon/{utils/variable-plugins/default-variable-types.js → plugins/insert-variable-plugin/utils/constants.ts} +18 -7
- package/addon/plugins/insert-variable-plugin/utils/fetch-data.ts +41 -0
- package/addon/plugins/rdfa-date-plugin/commands/index.ts +1 -0
- package/addon/plugins/rdfa-date-plugin/commands/modify-date.ts +48 -0
- package/addon/plugins/rdfa-date-plugin/index.ts +11 -0
- package/addon/plugins/roadsign-regulation-plugin/index.ts +6 -0
- package/addon/plugins/roadsign-regulation-plugin/utils/constants.ts +8 -0
- package/addon/{utils/roadsign-regulation-plugin/fetchData.js → plugins/roadsign-regulation-plugin/utils/fetchData.ts} +20 -3
- package/addon/plugins/roadsign-regulation-plugin/utils/includeInstructions.ts +16 -0
- package/addon/plugins/standard-template-plugin/index.ts +6 -0
- package/addon/plugins/standard-template-plugin/utils/instantiate-uuids.ts +48 -0
- package/addon/plugins/table-of-contents-plugin/index.ts +14 -0
- package/addon/plugins/table-of-contents-plugin/nodes/index.ts +1 -0
- package/addon/plugins/table-of-contents-plugin/nodes/table-of-contents.ts +53 -0
- package/addon/plugins/table-of-contents-plugin/utils/constants.ts +17 -0
- package/addon/plugins/template-variable-plugin/index.ts +6 -0
- package/addon/plugins/template-variable-plugin/utils/constants.ts +2 -0
- package/addon/plugins/template-variable-plugin/utils/fetch-data.ts +62 -0
- package/addon/services/{import-rdfa-snippet.js → import-rdfa-snippet.ts} +48 -36
- package/addon/services/roadsign-registry.ts +288 -0
- package/addon/services/{standard-template-plugin.js → standard-template-plugin.ts} +17 -11
- package/addon/utils/memoize.ts +8 -0
- package/addon/utils/option.ts +58 -0
- package/addon/utils/sparql-helpers.ts +27 -0
- package/app/components/article-structure-plugin/article-structure-card.js +1 -0
- package/app/components/article-structure-plugin/structure-card.js +1 -0
- package/app/components/{citaten-plugin/citaat-card.js → au-native-input.js} +1 -1
- package/app/components/{citaten-plugin/citations/article-list.js → besluit-plugin/besluit-context-card.js} +1 -1
- package/app/components/besluit-plugin/besluit-plugin-card.js +1 -0
- package/app/components/{citaten-plugin/citations/modal.js → citation-plugin/citation-card.js} +1 -1
- package/app/components/citation-plugin/citation-insert.js +1 -0
- package/app/components/{citaten-plugin/citations/decision-list.js → citation-plugin/citations/article-list.js} +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/citations/article-preview.js +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/citations/decision-detail.js +1 -1
- package/app/components/citation-plugin/citations/decision-list.js +1 -0
- package/app/components/{citaten-plugin → citation-plugin}/citations/decision-preview.js +1 -1
- package/app/components/citation-plugin/citations/modal.js +1 -0
- package/app/components/{citaten-plugin → citation-plugin}/citations/search-modal.js +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/helpers/alert-load-error.js +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/helpers/alert-no-items.js +1 -1
- package/app/components/{citaten-plugin/citaat-insert.js → rdfa-date-plugin/card.js} +1 -1
- package/app/components/rdfa-date-plugin/date-time-picker.js +1 -0
- package/app/components/rdfa-date-plugin/insert.js +1 -0
- package/app/components/standard-template-plugin/card.js +1 -0
- package/app/components/table-of-contents-plugin/ember-nodes/outline.js +1 -0
- package/app/components/table-of-contents-plugin/ember-nodes/table-of-contents.js +1 -0
- package/app/styles/citaten-plugin.scss +1 -1
- package/components/article-structure-plugin/article-structure-card.d.ts +17 -0
- package/components/article-structure-plugin/structure-card.d.ts +32 -0
- package/components/au-native-input.d.ts +20 -0
- package/components/besluit-plugin/besluit-context-card.d.ts +24 -0
- package/components/besluit-plugin/besluit-plugin-card.d.ts +14 -0
- package/components/besluit-type-plugin/besluit-type-select.d.ts +11 -0
- package/components/besluit-type-plugin/toolbar-dropdown.d.ts +46 -0
- package/components/citation-plugin/citation-card.d.ts +51 -0
- package/components/citation-plugin/citation-insert.d.ts +24 -0
- package/components/citation-plugin/citations/decision-detail.d.ts +26 -0
- package/components/citation-plugin/citations/search-modal.d.ts +67 -0
- package/components/import-snippet-plugin/card.d.ts +19 -0
- package/components/insert-variable-plugin/insert-variable-card.d.ts +31 -0
- package/components/rdfa-date-plugin/card.d.ts +20 -0
- package/components/rdfa-date-plugin/date-time-picker.d.ts +32 -0
- package/components/rdfa-date-plugin/insert.d.ts +12 -0
- package/components/roadsign-regulation-plugin/expanded-measure.d.ts +20 -0
- package/components/roadsign-regulation-plugin/measure-template.d.ts +14 -0
- package/components/roadsign-regulation-plugin/roadsign-regulation-card.d.ts +12 -0
- package/components/roadsign-regulation-plugin/roadsigns-modal.d.ts +57 -0
- package/components/roadsign-regulation-plugin/roadsigns-pagination.d.ts +19 -0
- package/components/roadsign-regulation-plugin/roadsigns-table.d.ts +9 -0
- package/components/standard-template-plugin/card.d.ts +9 -0
- package/components/standard-template-plugin/template-provider.d.ts +17 -0
- package/components/table-of-contents-plugin/card.d.ts +20 -0
- package/components/table-of-contents-plugin/ember-nodes/table-of-contents.d.ts +22 -0
- package/components/template-variable-plugin/template-variable-card.d.ts +27 -0
- package/helpers/limit-text.d.ts +8 -0
- package/index.js +5 -0
- package/models/instruction.d.ts +8 -0
- package/models/measure.d.ts +14 -0
- package/models/sign.d.ts +12 -0
- package/models/template.d.ts +13 -0
- package/package.json +29 -8
- package/plugins/article-structure-plugin/commands/index.d.ts +6 -0
- package/plugins/article-structure-plugin/commands/insert-structure.d.ts +5 -0
- package/plugins/article-structure-plugin/commands/move-selected-structure.d.ts +10 -0
- package/plugins/article-structure-plugin/commands/recalculate-structure-numbers.d.ts +3 -0
- package/plugins/article-structure-plugin/commands/remove-structure.d.ts +7 -0
- package/plugins/article-structure-plugin/commands/unwrap-structure.d.ts +8 -0
- package/plugins/article-structure-plugin/commands/wrap-structure-content.d.ts +8 -0
- package/plugins/article-structure-plugin/constants.d.ts +5 -0
- package/plugins/article-structure-plugin/index.d.ts +41 -0
- package/plugins/article-structure-plugin/structures/article-paragraph.d.ts +4 -0
- package/plugins/article-structure-plugin/structures/article.d.ts +6 -0
- package/plugins/article-structure-plugin/structures/chapter.d.ts +4 -0
- package/plugins/article-structure-plugin/structures/index.d.ts +17 -0
- package/plugins/article-structure-plugin/structures/section.d.ts +4 -0
- package/plugins/article-structure-plugin/structures/structure-header.d.ts +2 -0
- package/plugins/article-structure-plugin/structures/subsection.d.ts +4 -0
- package/plugins/article-structure-plugin/structures/title.d.ts +4 -0
- package/plugins/article-structure-plugin/utils/namespace.d.ts +6 -0
- package/plugins/article-structure-plugin/utils/structure.d.ts +20 -0
- package/plugins/besluit-plugin/commands/get-article-nodes-for-besluit.d.ts +5 -0
- package/plugins/besluit-plugin/commands/index.d.ts +4 -0
- package/plugins/besluit-plugin/commands/insert-article.d.ts +3 -0
- package/plugins/besluit-plugin/commands/insert-title.d.ts +2 -0
- package/plugins/besluit-plugin/commands/move-article.d.ts +2 -0
- package/plugins/besluit-plugin/commands/recalculate-article-numbers.d.ts +2 -0
- package/plugins/besluit-plugin/index.d.ts +3 -0
- package/plugins/besluit-plugin/utils/get-title-for-decision.d.ts +10 -0
- package/plugins/besluit-type-plugin/index.d.ts +2 -0
- package/plugins/besluit-type-plugin/utils/fetchBesluitTypes.d.ts +12 -0
- package/plugins/citation-plugin/index.d.ts +31 -0
- package/plugins/citation-plugin/marks/citation.d.ts +2 -0
- package/plugins/citation-plugin/utils/cited-text.d.ts +3 -0
- package/plugins/citation-plugin/utils/legislation-types.d.ts +24 -0
- package/plugins/citation-plugin/utils/process-match.d.ts +23 -0
- package/plugins/citation-plugin/utils/vlaamse-codex.d.ts +56 -0
- package/plugins/import-snippet-plugin.d.ts +2 -0
- package/plugins/insert-variable-plugin/index.d.ts +2 -0
- package/plugins/insert-variable-plugin/utils/constants.d.ts +7 -0
- package/plugins/insert-variable-plugin/utils/fetch-data.d.ts +5 -0
- package/plugins/rdfa-date-plugin/commands/index.d.ts +1 -0
- package/plugins/rdfa-date-plugin/commands/modify-date.d.ts +2 -0
- package/plugins/rdfa-date-plugin/index.d.ts +3 -0
- package/plugins/roadsign-regulation-plugin/index.d.ts +2 -0
- package/plugins/roadsign-regulation-plugin/utils/constants.d.ts +3 -0
- package/plugins/roadsign-regulation-plugin/utils/fetchData.d.ts +8 -0
- package/plugins/roadsign-regulation-plugin/utils/includeInstructions.d.ts +2 -0
- package/plugins/standard-template-plugin/index.d.ts +2 -0
- package/plugins/standard-template-plugin/utils/instantiate-uuids.d.ts +15 -0
- package/plugins/table-of-contents-plugin/index.d.ts +3 -0
- package/plugins/table-of-contents-plugin/nodes/index.d.ts +1 -0
- package/plugins/table-of-contents-plugin/nodes/table-of-contents.d.ts +4 -0
- package/plugins/table-of-contents-plugin/utils/constants.d.ts +7 -0
- package/plugins/template-variable-plugin/index.d.ts +2 -0
- package/plugins/template-variable-plugin/utils/constants.d.ts +1 -0
- package/plugins/template-variable-plugin/utils/fetch-data.d.ts +9 -0
- package/services/import-rdfa-snippet.d.ts +99 -0
- package/services/roadsign-registry.d.ts +42 -0
- package/services/standard-template-plugin.d.ts +21 -0
- package/translations/en-US.yaml +64 -1
- package/translations/nl-BE.yaml +66 -3
- package/tsconfig.json +34 -9
- package/types/config/environment.d.ts +22 -0
- package/types/ember-mu-transform-helpers/transforms/string-set.d.ts +14 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/account.d.ts +10 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/bestuurseenheid-classificatie-code.d.ts +10 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/bestuurseenheid.d.ts +12 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/gebruiker-model.d.ts +18 -0
- package/types/lblod/frontend-gelinkt-notuleren/services/current-session.d.ts +30 -0
- package/types/lblod/marawa/dom-helpers.d.ts +4 -0
- package/types/lblod/marawa/ember-object-mock.d.ts +3 -0
- package/types/lblod/marawa/node-walker.d.ts +18 -0
- package/types/lblod/marawa/range-helpers.d.ts +10 -0
- package/types/lblod/marawa/rdfa-attributes.d.ts +25 -0
- package/types/lblod/marawa/rdfa-block.d.ts +22 -0
- package/types/lblod/marawa/rdfa-context-scanner.d.ts +13 -0
- package/types/lblod/marawa/rdfa-helpers.d.ts +22 -0
- package/types/lblod/marawa/rich-node.d.ts +50 -0
- package/types/lblod/marawa/triple.d.ts +16 -0
- package/utils/memoize.d.ts +1 -0
- package/utils/option.d.ts +14 -0
- package/utils/sparql-helpers.d.ts +7 -0
- package/addon/commands/generate-template-command.js +0 -35
- package/addon/commands/insert-and-collapse.js +0 -32
- package/addon/commands/modify-date-command.js +0 -42
- package/addon/components/besluit-type-plugin/toolbar-dropdown.js +0 -188
- package/addon/components/citaten-plugin/citaat-card.hbs +0 -76
- package/addon/components/citaten-plugin/citaat-card.js +0 -286
- package/addon/components/citaten-plugin/citaat-insert.hbs +0 -20
- package/addon/components/citaten-plugin/citaat-insert.js +0 -68
- package/addon/components/citaten-plugin/citations/search-modal.hbs +0 -175
- package/addon/components/import-snippet-plugin/card.js +0 -95
- package/addon/components/insert-variable-plugin/insert-variable-card.js +0 -125
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -71
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -24
- package/addon/components/roadsign-regulation-plugin/expanded-measure.js +0 -38
- package/addon/components/roadsign-regulation-plugin/measure-template.js +0 -30
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.js +0 -101
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.js +0 -24
- package/addon/components/standard-template-plugin/template-card.js +0 -7
- package/addon/components/standard-template-plugin/template-provider.js +0 -75
- package/addon/components/table-of-contents-plugin/card.js +0 -53
- package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.hbs +0 -9
- package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -100
- package/addon/components/template-variable-plugin/template-variable-card.js +0 -230
- package/addon/constants.js +0 -24
- package/addon/initializers/plugin-initializer.js +0 -75
- package/addon/inline-components/table-of-contents.js +0 -43
- package/addon/marks/citaten-mark.js +0 -32
- package/addon/models/instruction.js +0 -19
- package/addon/models/measure.js +0 -46
- package/addon/models/sign.js +0 -37
- package/addon/models/template.js +0 -9
- package/addon/plugins/besluit-type-plugin.js +0 -16
- package/addon/plugins/citaten-plugin.js +0 -22
- package/addon/plugins/generate-template-plugin.js +0 -16
- package/addon/plugins/import-snippet-plugin.js +0 -16
- package/addon/plugins/insert-variable-plugin.js +0 -19
- package/addon/plugins/rdfa-date-plugin.js +0 -26
- package/addon/plugins/roadsign-regulation-plugin.js +0 -24
- package/addon/plugins/standard-template-plugin.js +0 -33
- package/addon/plugins/table-of-contents-plugin.js +0 -27
- package/addon/plugins/template-variable-plugin.js +0 -21
- package/addon/services/roadsign-registry.js +0 -240
- package/addon/utils/generate-template-plugin/default-resources.js +0 -9
- package/addon/utils/instantiate-uuids.js +0 -34
- package/addon/utils/memoize.js +0 -8
- package/addon/utils/processMatch.js +0 -80
- package/addon/utils/roadsign-regulation-plugin/includeInstructions.js +0 -10
- package/addon/utils/variable-plugins/fetch-data.js +0 -98
- package/app/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -1
- package/app/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -1
- package/app/components/rdfa-date-plugin/rdfa-date-time-picker.js +0 -1
- package/app/components/standard-template-plugin/template-card.js +0 -1
- package/app/components/table-of-contents-plugin/inline-components/outline.js +0 -1
- package/app/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -1
- package/app/initializers/plugin-initializer.js +0 -4
- package/types/dummy/index.d.ts +0 -1
- package/types/ember-data/types/registries/model.d.ts +0 -6
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import Service from '@ember/service';
|
|
2
|
+
import { task, timeout } from 'ember-concurrency';
|
|
3
|
+
import { tracked } from '@glimmer/tracking';
|
|
4
|
+
import { getOwner } from '@ember/application';
|
|
5
|
+
import { generateMeasuresQuery } from '../plugins/roadsign-regulation-plugin/utils/fetchData';
|
|
6
|
+
import Instruction from '../models/instruction';
|
|
7
|
+
import Measure from '../models/measure';
|
|
8
|
+
import Sign from '../models/sign';
|
|
9
|
+
import { IBindings } from 'fetch-sparql-endpoint';
|
|
10
|
+
import { optionMapOr, unwrap } from '@lblod/ember-rdfa-editor/utils/option';
|
|
11
|
+
import dataFactory from '@rdfjs/data-model';
|
|
12
|
+
|
|
13
|
+
const PREFIXES = `
|
|
14
|
+
PREFIX ex: <http://example.org#>
|
|
15
|
+
PREFIX lblodMobiliteit: <http://data.lblod.info/vocabularies/mobiliteit/>
|
|
16
|
+
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
|
17
|
+
PREFIX sh: <http://www.w3.org/ns/shacl#>
|
|
18
|
+
PREFIX oslo: <http://data.vlaanderen.be/ns#>
|
|
19
|
+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
20
|
+
PREFIX org: <http://www.w3.org/ns/org#>
|
|
21
|
+
PREFIX mobiliteit: <https://data.vlaanderen.be/ns/mobiliteit#>
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
const DEBOUNCE_MS = 100;
|
|
25
|
+
|
|
26
|
+
export default class RoadsignRegistryService extends Service {
|
|
27
|
+
@tracked classifications: { value: string; label: string }[] = [];
|
|
28
|
+
instructions: Map<string, Instruction[]> = new Map();
|
|
29
|
+
endpoint: string;
|
|
30
|
+
imageBaseUrl: string;
|
|
31
|
+
|
|
32
|
+
constructor() {
|
|
33
|
+
// eslint-disable-next-line prefer-rest-params
|
|
34
|
+
super(...arguments);
|
|
35
|
+
const config = getOwner(this).resolveRegistration('config:environment') as {
|
|
36
|
+
roadsignRegulationPlugin: {
|
|
37
|
+
imageBaseUrl: string;
|
|
38
|
+
endpoint: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
this.imageBaseUrl = config.roadsignRegulationPlugin.imageBaseUrl;
|
|
42
|
+
this.endpoint = config.roadsignRegulationPlugin.endpoint;
|
|
43
|
+
void this.loadClassifications.perform();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
loadClassifications = task(async () => {
|
|
47
|
+
const result = await this.executeQuery.perform(`
|
|
48
|
+
SELECT DISTINCT ?classificationUri ?classificationLabel WHERE {
|
|
49
|
+
?measure ext:relation/ext:concept ?signUri.
|
|
50
|
+
?signUri org:classification ?classificationUri.
|
|
51
|
+
?classificationUri a mobiliteit:Verkeersbordcategorie;
|
|
52
|
+
skos:prefLabel ?classificationLabel.
|
|
53
|
+
}
|
|
54
|
+
`);
|
|
55
|
+
const bindings = result.results.bindings;
|
|
56
|
+
this.classifications = bindings.map((binding) => ({
|
|
57
|
+
value: unwrap(binding['classificationUri']?.value),
|
|
58
|
+
label: unwrap(binding['classificationLabel']?.value),
|
|
59
|
+
}));
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
getInstructionsForMeasure = task(
|
|
63
|
+
async (uri: string): Promise<Instruction[]> => {
|
|
64
|
+
if (this.instructions.has(uri)) {
|
|
65
|
+
return unwrap(this.instructions.get(uri));
|
|
66
|
+
} else {
|
|
67
|
+
const instructions = await this.fetchInstructionsForMeasure.perform(
|
|
68
|
+
uri
|
|
69
|
+
);
|
|
70
|
+
this.instructions.set(uri, instructions);
|
|
71
|
+
return instructions;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
searchCode = task(
|
|
77
|
+
{ restartable: true },
|
|
78
|
+
async (
|
|
79
|
+
codeString?: string,
|
|
80
|
+
category?: string,
|
|
81
|
+
type?: string,
|
|
82
|
+
combinedSigns?: string[]
|
|
83
|
+
) => {
|
|
84
|
+
await timeout(DEBOUNCE_MS);
|
|
85
|
+
if (!Array.isArray(combinedSigns)) {
|
|
86
|
+
if (combinedSigns) combinedSigns = [combinedSigns];
|
|
87
|
+
else combinedSigns = [];
|
|
88
|
+
}
|
|
89
|
+
let signFilter = '';
|
|
90
|
+
if (combinedSigns.length > 0) {
|
|
91
|
+
signFilter = combinedSigns
|
|
92
|
+
.map((sign) => `?measure ext:relation/ext:concept <${sign}>.`)
|
|
93
|
+
.join('\n');
|
|
94
|
+
signFilter += '\n';
|
|
95
|
+
const commaSeperatedSigns = combinedSigns
|
|
96
|
+
.map((sign) => `<${sign}>`)
|
|
97
|
+
.join(',');
|
|
98
|
+
signFilter += `FILTER (?signUri NOT IN (${commaSeperatedSigns}))`;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const query = `
|
|
102
|
+
SELECT DISTINCT ?signUri ?signCode WHERE {
|
|
103
|
+
?measure ext:relation/ext:concept ?signUri.
|
|
104
|
+
?signUri a ${type ? `<${type}>` : '?signType'};
|
|
105
|
+
skos:prefLabel ?signCode;
|
|
106
|
+
ext:valid "true"^^<http://mu.semte.ch/vocabularies/typed-literals/boolean>.
|
|
107
|
+
${category ? `?signUri org:classification <${category}>` : ''}
|
|
108
|
+
${
|
|
109
|
+
type
|
|
110
|
+
? ''
|
|
111
|
+
: `
|
|
112
|
+
VALUES ?signType {
|
|
113
|
+
<https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept>
|
|
114
|
+
<https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept>
|
|
115
|
+
<https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept>
|
|
116
|
+
}
|
|
117
|
+
`
|
|
118
|
+
}
|
|
119
|
+
${signFilter}
|
|
120
|
+
${
|
|
121
|
+
codeString
|
|
122
|
+
? `FILTER(CONTAINS(LCASE(?signCode), "${codeString.toLowerCase()}"))`
|
|
123
|
+
: ''
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
ORDER BY ASC(?signCode)
|
|
127
|
+
`;
|
|
128
|
+
const result = await this.executeQuery.perform(query);
|
|
129
|
+
const codes = result.results.bindings.map((binding) => ({
|
|
130
|
+
value: unwrap(binding['signUri']?.value),
|
|
131
|
+
label: unwrap(binding['signCode']?.value),
|
|
132
|
+
}));
|
|
133
|
+
return codes;
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
executeQuery = task(
|
|
138
|
+
async (
|
|
139
|
+
query: string
|
|
140
|
+
): Promise<{
|
|
141
|
+
results: {
|
|
142
|
+
bindings: IBindings[];
|
|
143
|
+
};
|
|
144
|
+
}> => {
|
|
145
|
+
const encodedQuery = encodeURIComponent(`${PREFIXES}\n${query.trim()}`);
|
|
146
|
+
const response = await fetch(this.endpoint, {
|
|
147
|
+
method: 'POST',
|
|
148
|
+
mode: 'cors',
|
|
149
|
+
headers: {
|
|
150
|
+
Accept: 'application/sparql-results+json',
|
|
151
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
152
|
+
},
|
|
153
|
+
body: `query=${encodedQuery}`,
|
|
154
|
+
});
|
|
155
|
+
if (response.ok) {
|
|
156
|
+
return response.json() as unknown as {
|
|
157
|
+
results: {
|
|
158
|
+
bindings: IBindings[];
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
} else {
|
|
162
|
+
throw new Error(
|
|
163
|
+
`Request to MOW backend was unsuccessful: [${response.status}] ${response.statusText}`
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
fetchInstructionsForMeasure = task(
|
|
170
|
+
async (uri: string): Promise<Instruction[]> => {
|
|
171
|
+
const query = `SELECT ?name ?template ?annotatedTemplate
|
|
172
|
+
WHERE {
|
|
173
|
+
<${uri}> ext:template/ext:mapping ?mapping.
|
|
174
|
+
?mapping ext:variableType 'instruction';
|
|
175
|
+
ext:variable ?name;
|
|
176
|
+
ext:instructionVariable ?instructionVariable.
|
|
177
|
+
?instructionVariable ext:annotated ?annotatedTemplate;
|
|
178
|
+
ext:value ?template.
|
|
179
|
+
}
|
|
180
|
+
`;
|
|
181
|
+
const result = await this.executeQuery.perform(query);
|
|
182
|
+
const instructions = result.results.bindings.map((binding) =>
|
|
183
|
+
Instruction.fromBinding(binding)
|
|
184
|
+
);
|
|
185
|
+
return instructions;
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
fetchMeasures = task(
|
|
190
|
+
{ restartable: true },
|
|
191
|
+
async ({
|
|
192
|
+
zonality,
|
|
193
|
+
type,
|
|
194
|
+
codes,
|
|
195
|
+
category,
|
|
196
|
+
pageStart,
|
|
197
|
+
}: {
|
|
198
|
+
zonality?: string;
|
|
199
|
+
type?: string;
|
|
200
|
+
codes?: string[];
|
|
201
|
+
category?: string;
|
|
202
|
+
pageStart?: number;
|
|
203
|
+
} = {}) => {
|
|
204
|
+
const selectQuery = generateMeasuresQuery({
|
|
205
|
+
zonality,
|
|
206
|
+
type,
|
|
207
|
+
codes,
|
|
208
|
+
category,
|
|
209
|
+
pageStart,
|
|
210
|
+
});
|
|
211
|
+
const countQuery = generateMeasuresQuery({
|
|
212
|
+
zonality,
|
|
213
|
+
type,
|
|
214
|
+
codes,
|
|
215
|
+
category,
|
|
216
|
+
count: true,
|
|
217
|
+
});
|
|
218
|
+
const countResult = await this.executeQuery.perform(countQuery);
|
|
219
|
+
|
|
220
|
+
const count = optionMapOr(
|
|
221
|
+
0,
|
|
222
|
+
parseInt,
|
|
223
|
+
countResult.results.bindings[0]?.['count']?.value
|
|
224
|
+
);
|
|
225
|
+
const measures = [];
|
|
226
|
+
const result = await this.executeQuery.perform(selectQuery);
|
|
227
|
+
for (const binding of result.results.bindings) {
|
|
228
|
+
const measure = Measure.fromBinding(binding);
|
|
229
|
+
measure.signs = await this.fetchSignsForMeasure.perform(measure.uri);
|
|
230
|
+
measure.classifications = makeClassificationSet(measure.signs);
|
|
231
|
+
measures.push(measure);
|
|
232
|
+
}
|
|
233
|
+
return { measures, count };
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
fetchSignsForMeasure = task(async (uri: string) => {
|
|
238
|
+
const query = `
|
|
239
|
+
SELECT ?uri ?code ?image ?zonality ?order (GROUP_CONCAT(?classification; SEPARATOR="|") AS ?classifications)
|
|
240
|
+
WHERE {
|
|
241
|
+
<${uri}> ext:relation ?relation.
|
|
242
|
+
?relation a ext:MustUseRelation;
|
|
243
|
+
<http://purl.org/linked-data/cube#order> ?order;
|
|
244
|
+
ext:concept ?uri.
|
|
245
|
+
?uri a ?type;
|
|
246
|
+
skos:prefLabel ?code;
|
|
247
|
+
ext:zonality ?zonality;
|
|
248
|
+
mobiliteit:grafischeWeergave ?image.
|
|
249
|
+
OPTIONAL {
|
|
250
|
+
?uri org:classification/skos:prefLabel ?classification.
|
|
251
|
+
}
|
|
252
|
+
} ORDER BY ASC(?order)
|
|
253
|
+
`;
|
|
254
|
+
const result = await this.executeQuery.perform(query);
|
|
255
|
+
const signs = [];
|
|
256
|
+
for (const binding of result.results.bindings) {
|
|
257
|
+
const sign = Sign.fromBinding({
|
|
258
|
+
...binding,
|
|
259
|
+
imageBaseUrl: dataFactory.namedNode(this.imageBaseUrl),
|
|
260
|
+
});
|
|
261
|
+
signs.push(sign);
|
|
262
|
+
}
|
|
263
|
+
return signs;
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function makeClassificationSet(signs: Iterable<Sign>) {
|
|
268
|
+
const classifications = new Set();
|
|
269
|
+
for (const sign of signs) {
|
|
270
|
+
for (const c of sign.classifications) {
|
|
271
|
+
classifications.add(c);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
sortSet(classifications);
|
|
275
|
+
return classifications;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function sortSet<T>(set: Set<T>) {
|
|
279
|
+
const entries = [];
|
|
280
|
+
for (const member of set) {
|
|
281
|
+
entries.push(member);
|
|
282
|
+
}
|
|
283
|
+
set.clear();
|
|
284
|
+
for (const entry of entries.sort()) {
|
|
285
|
+
set.add(entry);
|
|
286
|
+
}
|
|
287
|
+
return set;
|
|
288
|
+
}
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
+
import Store from '@ember-data/store';
|
|
2
|
+
// eslint-disable-next-line ember/use-ember-data-rfc-395-imports
|
|
3
|
+
import { DS } from 'ember-data';
|
|
1
4
|
import Service, { inject as service } from '@ember/service';
|
|
2
|
-
import { task, waitForProperty } from 'ember-concurrency';
|
|
5
|
+
import { task, waitForProperty, Task } from 'ember-concurrency';
|
|
3
6
|
import { tracked } from '@glimmer/tracking';
|
|
7
|
+
import TemplateModel from '../models/template';
|
|
4
8
|
|
|
5
|
-
export default class
|
|
6
|
-
@service store;
|
|
7
|
-
@tracked templates
|
|
9
|
+
export default class StandardTemplatePluginService extends Service {
|
|
10
|
+
@service declare store: Store;
|
|
11
|
+
@tracked declare templates: DS.RecordArray<TemplateModel>;
|
|
8
12
|
|
|
9
13
|
constructor() {
|
|
14
|
+
// eslint-disable-next-line prefer-rest-params
|
|
10
15
|
super(...arguments);
|
|
11
|
-
this.loadTemplates();
|
|
16
|
+
void this.loadTemplates();
|
|
12
17
|
}
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
fetchTemplates: Task<DS.RecordArray<TemplateModel>, []> = task(async () => {
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
await waitForProperty(this, 'templates');
|
|
17
23
|
return this.templates;
|
|
18
|
-
}
|
|
24
|
+
});
|
|
19
25
|
|
|
20
26
|
async loadTemplates() {
|
|
21
27
|
this.templates = await this.store.query('template', {
|
|
@@ -31,8 +37,8 @@ export default class RdfaEditorStandardTemplatePluginService extends Service {
|
|
|
31
37
|
@return {Array} Array of templates (filtered)
|
|
32
38
|
@private
|
|
33
39
|
*/
|
|
34
|
-
templatesForContext(templates, rdfaTypes) {
|
|
35
|
-
|
|
40
|
+
templatesForContext(templates: TemplateModel[], rdfaTypes: string[]) {
|
|
41
|
+
const isMatchingForContext = (template: TemplateModel) => {
|
|
36
42
|
return (
|
|
37
43
|
rdfaTypes.filter((e) => template.get('contexts').includes(e)).length >
|
|
38
44
|
0 &&
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default function memoize(func: (...a: unknown[]) => unknown) {
|
|
2
|
+
const cache: Record<string, unknown> = {};
|
|
3
|
+
return (...args: unknown[]) => {
|
|
4
|
+
const serializedArgs = JSON.stringify(args);
|
|
5
|
+
cache[serializedArgs] = cache[serializedArgs] || func(args);
|
|
6
|
+
return cache[serializedArgs];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export abstract class CustomError extends Error {
|
|
2
|
+
constructor(message?: string) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.name = this.constructor.name;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class AssertionError extends CustomError {}
|
|
9
|
+
|
|
10
|
+
export type None = null | undefined;
|
|
11
|
+
export type Option<A> = A | None;
|
|
12
|
+
|
|
13
|
+
export function expect<A>(msg: string, thing: Option<A>): A {
|
|
14
|
+
if (!isSome(thing)) {
|
|
15
|
+
throw new AssertionError(msg);
|
|
16
|
+
}
|
|
17
|
+
return thing;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function unwrap<A>(thing: Option<A>): A {
|
|
21
|
+
return expect('Unwrapped a null or undefined value!', thing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function unwrapOr<A>(defaultValue: A, thing: Option<A>): A {
|
|
25
|
+
if (isSome(thing)) {
|
|
26
|
+
return thing;
|
|
27
|
+
}
|
|
28
|
+
return defaultValue;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function optionMap<A, U>(
|
|
32
|
+
func: (thing: A) => U,
|
|
33
|
+
thing: Option<A>
|
|
34
|
+
): Option<U> {
|
|
35
|
+
if (isSome(thing)) {
|
|
36
|
+
return func(thing);
|
|
37
|
+
}
|
|
38
|
+
return thing;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function optionMapOr<A, U>(
|
|
42
|
+
defaultValue: U,
|
|
43
|
+
func: (thing: A) => U,
|
|
44
|
+
thing: Option<A>
|
|
45
|
+
): U {
|
|
46
|
+
if (isSome(thing)) {
|
|
47
|
+
return func(thing);
|
|
48
|
+
}
|
|
49
|
+
return defaultValue;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function isSome<A>(thing: Option<A>): thing is A {
|
|
53
|
+
return thing !== null && thing !== undefined;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function isNone<A>(thing: Option<A>): thing is None {
|
|
57
|
+
return !isSome(thing);
|
|
58
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as RDF from '@rdfjs/types';
|
|
2
|
+
|
|
3
|
+
export type QueryResult = {
|
|
4
|
+
results: {
|
|
5
|
+
bindings: Record<string, RDF.Term>[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export async function executeQuery(endpoint: string, query: string) {
|
|
10
|
+
const encodedQuery = encodeURIComponent(query.trim());
|
|
11
|
+
const response = await fetch(endpoint, {
|
|
12
|
+
method: 'POST',
|
|
13
|
+
mode: 'cors',
|
|
14
|
+
headers: {
|
|
15
|
+
Accept: 'application/sparql-results+json',
|
|
16
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
17
|
+
},
|
|
18
|
+
body: `query=${encodedQuery}`,
|
|
19
|
+
});
|
|
20
|
+
if (response.ok) {
|
|
21
|
+
return response.json() as unknown as QueryResult;
|
|
22
|
+
} else {
|
|
23
|
+
throw new Error(
|
|
24
|
+
`Request to MOW backend was unsuccessful: [${response.status}] ${response.statusText}`
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/article-structure-plugin/article-structure-card';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/article-structure-plugin/structure-card';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/au-native-input';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/besluit-plugin/besluit-context-card';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/besluit-plugin/besluit-plugin-card';
|
package/app/components/{citaten-plugin/citations/modal.js → citation-plugin/citation-card.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citation-card';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citation-insert';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/article-list';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/article-preview';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/decision-detail';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/decision-list';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/decision-preview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/modal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/search-modal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/helpers/alert-load-error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/helpers/alert-no-items';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/rdfa-date-plugin/card';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/rdfa-date-plugin/date-time-picker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/rdfa-date-plugin/insert';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/standard-template-plugin/card';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/table-of-contents-plugin/ember-nodes/outline';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/table-of-contents-plugin/ember-nodes/table-of-contents';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
import IntlService from 'ember-intl/services/intl';
|
|
4
|
+
import { ArticleStructurePluginOptions, StructureSpec } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
5
|
+
type Args = {
|
|
6
|
+
controller: ProseController;
|
|
7
|
+
widgetArgs: {
|
|
8
|
+
options: ArticleStructurePluginOptions;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default class EditorPluginsArticleStructureCardComponent extends Component<Args> {
|
|
12
|
+
intl: IntlService;
|
|
13
|
+
get structureTypes(): ArticleStructurePluginOptions;
|
|
14
|
+
insertStructure(spec: StructureSpec): void;
|
|
15
|
+
canInsertStructure: (spec: StructureSpec) => boolean;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
import { ArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
4
|
+
import IntlService from 'ember-intl/services/intl';
|
|
5
|
+
type Args = {
|
|
6
|
+
controller: ProseController;
|
|
7
|
+
widgetArgs: {
|
|
8
|
+
options: ArticleStructurePluginOptions;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default class EditorPluginsStructureCardComponent extends Component<Args> {
|
|
12
|
+
intl: IntlService;
|
|
13
|
+
removeStructureContent: boolean;
|
|
14
|
+
get controller(): ProseController;
|
|
15
|
+
moveStructure(direction: 'up' | 'down'): void;
|
|
16
|
+
removeStructure(): void;
|
|
17
|
+
setRemoveStructureContent(value: boolean): void;
|
|
18
|
+
get structureTypes(): ArticleStructurePluginOptions;
|
|
19
|
+
get structureNodeSpecs(): import("prosemirror-model").NodeType[];
|
|
20
|
+
get structure(): {
|
|
21
|
+
pos: number;
|
|
22
|
+
start: number;
|
|
23
|
+
depth: number;
|
|
24
|
+
node: import("prosemirror-model").Node;
|
|
25
|
+
} | undefined;
|
|
26
|
+
get currentStructureType(): import("@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin").StructureSpec | undefined;
|
|
27
|
+
get isOutsideStructure(): boolean;
|
|
28
|
+
get canMoveDown(): boolean;
|
|
29
|
+
get canMoveUp(): boolean;
|
|
30
|
+
get canRemoveStructure(): boolean;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
interface Args {
|
|
3
|
+
width?: 'block';
|
|
4
|
+
iconAlignment?: 'left' | 'right';
|
|
5
|
+
error?: boolean;
|
|
6
|
+
warning?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
type?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class AuNativeInput extends Component<Args> {
|
|
12
|
+
constructor(owner: unknown, args: Args);
|
|
13
|
+
get width(): "au-c-input--block" | "";
|
|
14
|
+
get iconAlignment(): "" | "au-c-input-wrapper--left" | "au-c-input-wrapper--right";
|
|
15
|
+
get error(): "" | "au-c-input--error";
|
|
16
|
+
get warning(): "" | "au-c-input--warning";
|
|
17
|
+
get disabled(): "" | "is-disabled";
|
|
18
|
+
get type(): string;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ResolvedPNode } from '@lblod/ember-rdfa-editor/plugins/datastore';
|
|
3
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
4
|
+
interface Args {
|
|
5
|
+
controller: ProseController;
|
|
6
|
+
}
|
|
7
|
+
export default class BesluitContextCardComponent extends Component<Args> {
|
|
8
|
+
articleElement?: ResolvedPNode;
|
|
9
|
+
constructor(parent: unknown, args: Args);
|
|
10
|
+
get controller(): ProseController;
|
|
11
|
+
get doc(): import("prosemirror-model").Node;
|
|
12
|
+
focus(): void;
|
|
13
|
+
deleteArticle(): void;
|
|
14
|
+
moveUpArticle(): void;
|
|
15
|
+
moveDownArticle(): void;
|
|
16
|
+
get disableMoveUp(): boolean;
|
|
17
|
+
get disableMoveDown(): boolean;
|
|
18
|
+
get besluitURI(): string | undefined;
|
|
19
|
+
get activeArticle(): {
|
|
20
|
+
uri: string;
|
|
21
|
+
range: ResolvedPNode;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
type Args = {
|
|
4
|
+
controller: ProseController;
|
|
5
|
+
};
|
|
6
|
+
export default class BesluitPluginCardComponent extends Component<Args> {
|
|
7
|
+
get controller(): ProseController;
|
|
8
|
+
focus(): void;
|
|
9
|
+
insertArticle(): void;
|
|
10
|
+
insertTitle(): void;
|
|
11
|
+
get hasTitle(): boolean;
|
|
12
|
+
get disableArticleInsert(): boolean;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { BesluitType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-type-plugin/utils/fetchBesluitTypes';
|
|
3
|
+
type Args = {
|
|
4
|
+
besluitTypes: BesluitType[];
|
|
5
|
+
};
|
|
6
|
+
export default class BesluitTypePluginBesluitTypeSelectComponent extends Component<Args> {
|
|
7
|
+
besluitTypes: BesluitType[];
|
|
8
|
+
constructor(parent: unknown, args: Args);
|
|
9
|
+
search(term: string): BesluitType[];
|
|
10
|
+
}
|
|
11
|
+
export {};
|