@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,9 @@
|
|
|
1
|
+
export type CodeListOptions = {
|
|
2
|
+
type: string;
|
|
3
|
+
options: CodeListOption[];
|
|
4
|
+
};
|
|
5
|
+
export type CodeListOption = {
|
|
6
|
+
value?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function fetchCodeListOptions(endpoint: string, codelistUri: string): Promise<CodeListOptions>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import Service from '@ember/service';
|
|
2
|
+
import ContextScanner from '@lblod/marawa/rdfa-context-scanner';
|
|
3
|
+
import RdfaBlock from '@lblod/marawa/rdfa-block';
|
|
4
|
+
type RequestParams = {
|
|
5
|
+
source: string;
|
|
6
|
+
uri?: string;
|
|
7
|
+
omitCredentials: boolean | string;
|
|
8
|
+
mock: boolean | string;
|
|
9
|
+
};
|
|
10
|
+
export declare class RdfaSnippet {
|
|
11
|
+
readonly source: string;
|
|
12
|
+
readonly type: string;
|
|
13
|
+
readonly content: string;
|
|
14
|
+
readonly blocks: RdfaBlock[];
|
|
15
|
+
constructor(source: string, type: string, content: string, blocks: RdfaBlock[]);
|
|
16
|
+
}
|
|
17
|
+
type Error = {
|
|
18
|
+
source: string;
|
|
19
|
+
details: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Service responsible for fetching and storing a snippet
|
|
23
|
+
*
|
|
24
|
+
* Assumptions
|
|
25
|
+
* -----------
|
|
26
|
+
* - one toplevel rdfa block per snippet
|
|
27
|
+
*
|
|
28
|
+
* @module editor-import-snippet-plugin
|
|
29
|
+
* @class ImportRdfaSnippet
|
|
30
|
+
* @constructor
|
|
31
|
+
* @extends EmberService
|
|
32
|
+
*/
|
|
33
|
+
export default class ImportRdfaSnippet extends Service {
|
|
34
|
+
errors: Error[];
|
|
35
|
+
snippets: RdfaSnippet[];
|
|
36
|
+
contextScanner: ContextScanner;
|
|
37
|
+
constructor();
|
|
38
|
+
/**
|
|
39
|
+
* Download, processes and stores snippet
|
|
40
|
+
* @method downloadSnippet
|
|
41
|
+
* @param {Object}: {source}
|
|
42
|
+
* @return {String}
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
downloadSnippet(params: RequestParams): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Remove a snippet from the store, typically after using it
|
|
48
|
+
* @method removeSnippet
|
|
49
|
+
* @return void
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
removeSnippet(snippet: RdfaSnippet): void;
|
|
53
|
+
/**
|
|
54
|
+
* Return snippets for a given type, current supported types are 'roadsign' and 'generic'
|
|
55
|
+
* @method snippetsForType
|
|
56
|
+
* @params {String} type
|
|
57
|
+
* @return {Array} array of RdfaSnippets
|
|
58
|
+
*/
|
|
59
|
+
snippetsForType(type: string): RdfaSnippet[];
|
|
60
|
+
/**
|
|
61
|
+
* Fetches snippet from remote
|
|
62
|
+
* @method processSnippet
|
|
63
|
+
* @param params.omitCredentials {String} if truthy, the fetch call will omit credentials (this is important for endpoints that only provide simple CORS headers). When not set or falsy we fetch with "include" credentials. This means the endpoint needs to provide the Access-Control-Allow-Credentials and Access-Controlled-Allow-Origin needs to be set to the requesting domain ('*' is not allowed)
|
|
64
|
+
* @param params.source {String} the URL of the document to fetch
|
|
65
|
+
* @result {Response} result from ember fetch call
|
|
66
|
+
* @private
|
|
67
|
+
*/
|
|
68
|
+
getSnippet(params: RequestParams): Promise<Response | null>;
|
|
69
|
+
/**
|
|
70
|
+
* heuristic to determine the type of snippet
|
|
71
|
+
* currently just a very basic check if a type exists in the snippet.
|
|
72
|
+
* @method determineType
|
|
73
|
+
*/
|
|
74
|
+
determineType(rdfaBlocks: RdfaBlock[]): string;
|
|
75
|
+
/**
|
|
76
|
+
* Processes and stores snippet
|
|
77
|
+
* @method processSnippet
|
|
78
|
+
* @private
|
|
79
|
+
*/
|
|
80
|
+
processSnippet(params: RequestParams, data: Response): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Make HTML Content Template from string
|
|
83
|
+
* @method htmlToElement
|
|
84
|
+
* @param {String}
|
|
85
|
+
* @return {Object}
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
htmlToElements(html: string): Element[];
|
|
89
|
+
/**
|
|
90
|
+
* Stores snippet
|
|
91
|
+
* @method storeSnippet
|
|
92
|
+
* @param {String} source the source url of the snippet
|
|
93
|
+
* @param {String} content the unparsed text content of the snippet
|
|
94
|
+
* @param {Array} block array of richnodes representing the content of the snippet
|
|
95
|
+
* @private
|
|
96
|
+
*/
|
|
97
|
+
storeSnippet(source: string, type: string, content: string, blocks: RdfaBlock[]): void;
|
|
98
|
+
}
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Service from '@ember/service';
|
|
2
|
+
import Instruction from '../models/instruction';
|
|
3
|
+
import Measure from '../models/measure';
|
|
4
|
+
import Sign from '../models/sign';
|
|
5
|
+
import { IBindings } from 'fetch-sparql-endpoint';
|
|
6
|
+
export default class RoadsignRegistryService extends Service {
|
|
7
|
+
classifications: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
instructions: Map<string, Instruction[]>;
|
|
12
|
+
endpoint: string;
|
|
13
|
+
imageBaseUrl: string;
|
|
14
|
+
constructor();
|
|
15
|
+
loadClassifications: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<void>>;
|
|
16
|
+
getInstructionsForMeasure: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (uri: string) => Promise<Instruction[]>>;
|
|
17
|
+
searchCode: import("ember-concurrency").TaskForAsyncTaskFunction<{
|
|
18
|
+
restartable: boolean;
|
|
19
|
+
}, (codeString?: string, category?: string, type?: string, combinedSigns?: string[]) => Promise<{
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[]>>;
|
|
23
|
+
executeQuery: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (query: string) => Promise<{
|
|
24
|
+
results: {
|
|
25
|
+
bindings: IBindings[];
|
|
26
|
+
};
|
|
27
|
+
}>>;
|
|
28
|
+
fetchInstructionsForMeasure: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (uri: string) => Promise<Instruction[]>>;
|
|
29
|
+
fetchMeasures: import("ember-concurrency").TaskForAsyncTaskFunction<{
|
|
30
|
+
restartable: boolean;
|
|
31
|
+
}, ({ zonality, type, codes, category, pageStart, }?: {
|
|
32
|
+
zonality?: string | undefined;
|
|
33
|
+
type?: string | undefined;
|
|
34
|
+
codes?: string[] | undefined;
|
|
35
|
+
category?: string | undefined;
|
|
36
|
+
pageStart?: number | undefined;
|
|
37
|
+
}) => Promise<{
|
|
38
|
+
measures: Measure[];
|
|
39
|
+
count: number;
|
|
40
|
+
}>>;
|
|
41
|
+
fetchSignsForMeasure: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (uri: string) => Promise<Sign[]>>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Store from '@ember-data/store';
|
|
2
|
+
import { DS } from 'ember-data';
|
|
3
|
+
import Service from '@ember/service';
|
|
4
|
+
import { Task } from 'ember-concurrency';
|
|
5
|
+
import TemplateModel from '../models/template';
|
|
6
|
+
export default class StandardTemplatePluginService extends Service {
|
|
7
|
+
store: Store;
|
|
8
|
+
templates: DS.RecordArray<TemplateModel>;
|
|
9
|
+
constructor();
|
|
10
|
+
fetchTemplates: Task<DS.RecordArray<TemplateModel>, []>;
|
|
11
|
+
loadTemplates(): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
Filter the valid templates for a context.
|
|
14
|
+
@method templatesForContext
|
|
15
|
+
@param {Array} Array of templates
|
|
16
|
+
@param {Array} The path of rdfaContext objects from the root till the current context
|
|
17
|
+
@return {Array} Array of templates (filtered)
|
|
18
|
+
@private
|
|
19
|
+
*/
|
|
20
|
+
templatesForContext(templates: TemplateModel[], rdfaTypes: string[]): TemplateModel[];
|
|
21
|
+
}
|
package/translations/en-US.yaml
CHANGED
|
@@ -56,6 +56,16 @@ besluit-type-plugin:
|
|
|
56
56
|
error-title: "Error"
|
|
57
57
|
error-first-body: "An error occured while fetching the decision types. Try again later. If this problem persists, please contact"
|
|
58
58
|
error-rest-body: ". For more specific details about this problem, inspect the browser console."
|
|
59
|
+
besluit-plugin:
|
|
60
|
+
card:
|
|
61
|
+
title: Edit decision
|
|
62
|
+
insert:
|
|
63
|
+
article: Insert article
|
|
64
|
+
decision-title: Insert decision title
|
|
65
|
+
action:
|
|
66
|
+
delete-article: Delete article
|
|
67
|
+
article-up: Move article up
|
|
68
|
+
article-down: Move article down
|
|
59
69
|
date-plugin:
|
|
60
70
|
insert:
|
|
61
71
|
date: "Insert date"
|
|
@@ -70,4 +80,57 @@ date-plugin:
|
|
|
70
80
|
now: "Now"
|
|
71
81
|
insert-variable-plugin:
|
|
72
82
|
variable: Insert variable
|
|
73
|
-
button: Insert
|
|
83
|
+
button: Insert
|
|
84
|
+
article-structure-plugin:
|
|
85
|
+
insert:
|
|
86
|
+
paragraph: Insert paragraph
|
|
87
|
+
article: Insert article
|
|
88
|
+
articleBelow: Insert article below
|
|
89
|
+
title: Insert title
|
|
90
|
+
chapter: Insert chapter
|
|
91
|
+
section: Insert section
|
|
92
|
+
subsection: Insert subsection
|
|
93
|
+
moveUp:
|
|
94
|
+
paragraph: Move paragraph up
|
|
95
|
+
article: Move article up
|
|
96
|
+
title: Move title up
|
|
97
|
+
chapter: Move chapter up
|
|
98
|
+
section: Move section up
|
|
99
|
+
subsection: Move subsection up
|
|
100
|
+
moveDown:
|
|
101
|
+
paragraph: Move paragraph down
|
|
102
|
+
article: Move article down
|
|
103
|
+
title: Move title down
|
|
104
|
+
chapter: Move chapter down
|
|
105
|
+
section: Move section down
|
|
106
|
+
subsection: Move subsection down
|
|
107
|
+
title:
|
|
108
|
+
paragraphCard: Paragraph Card
|
|
109
|
+
articleCard: Article Card
|
|
110
|
+
structureCard: Structure Card
|
|
111
|
+
remove:
|
|
112
|
+
article: Remove Article
|
|
113
|
+
paragraph: Remove Paragraph
|
|
114
|
+
subsection: Remove subsection
|
|
115
|
+
section: Remove section
|
|
116
|
+
chapter: Remove chapter
|
|
117
|
+
title: Remove title
|
|
118
|
+
content: Remove content
|
|
119
|
+
placeholder:
|
|
120
|
+
generic:
|
|
121
|
+
heading: Insert title
|
|
122
|
+
body: Insert content
|
|
123
|
+
chapter:
|
|
124
|
+
heading: Insert chapter heading
|
|
125
|
+
body: Insert chapter content
|
|
126
|
+
section:
|
|
127
|
+
heading: Insert section heading
|
|
128
|
+
body: Insert section content
|
|
129
|
+
subsection:
|
|
130
|
+
heading: Insert subsection heading
|
|
131
|
+
body: Insert subsection content
|
|
132
|
+
article:
|
|
133
|
+
heading: Insert article heading
|
|
134
|
+
body: Insert article content
|
|
135
|
+
paragraph:
|
|
136
|
+
body: Insert paragraph content
|
package/translations/nl-BE.yaml
CHANGED
|
@@ -20,7 +20,7 @@ citaten-plugin:
|
|
|
20
20
|
from: van
|
|
21
21
|
to: tot
|
|
22
22
|
article: Zoek artikel
|
|
23
|
-
article-placeholder: Artikel nummer
|
|
23
|
+
article-placeholder: Artikel nummer
|
|
24
24
|
back: Terug naar zoekresultaten
|
|
25
25
|
results: Resultaten
|
|
26
26
|
|
|
@@ -41,7 +41,7 @@ citaten-plugin:
|
|
|
41
41
|
no-results: Geen resultaten gevonden
|
|
42
42
|
error-title: Probleem bij het laden
|
|
43
43
|
error-intro: "Er heeft zich een fout voorgedaan bij het zoeken in de Vlaamse Codex:"
|
|
44
|
-
error-outro: Moest dit probleem aanhouden, neem contact op met
|
|
44
|
+
error-outro: Moest dit probleem aanhouden, neem contact op met
|
|
45
45
|
table-of-contents-plugin:
|
|
46
46
|
title: Inhoudstafel
|
|
47
47
|
toggle: Toon Inhoudstafel
|
|
@@ -56,6 +56,16 @@ besluit-type-plugin:
|
|
|
56
56
|
error-title: "Fout"
|
|
57
57
|
error-first-body: "Er was een probleem bij het ophalen van de besluittypes. Probeer later opnieuw. Bij blijvende problemen, contacteer"
|
|
58
58
|
error-rest-body: ". Voor meer specifieke details, controleer de console in de browser."
|
|
59
|
+
besluit-plugin:
|
|
60
|
+
card:
|
|
61
|
+
title: Artikels bewerken
|
|
62
|
+
insert:
|
|
63
|
+
article: Voeg artikel in
|
|
64
|
+
decision-title: Voeg besluittitel in
|
|
65
|
+
action:
|
|
66
|
+
delete-article: Artikel verwijderen
|
|
67
|
+
article-up: Artikel naar boven verplaatsen
|
|
68
|
+
article-down: Artikel naar beneden verplaatsen
|
|
59
69
|
date-plugin:
|
|
60
70
|
insert:
|
|
61
71
|
date: "Datum invoegen"
|
|
@@ -71,4 +81,57 @@ date-plugin:
|
|
|
71
81
|
now: "Nu"
|
|
72
82
|
insert-variable-plugin:
|
|
73
83
|
variable: Voeg variabele in
|
|
74
|
-
button: Voeg in
|
|
84
|
+
button: Voeg in
|
|
85
|
+
article-structure-plugin:
|
|
86
|
+
insert:
|
|
87
|
+
paragraph: Paragraaf invoegen
|
|
88
|
+
article: Artikel invoegen
|
|
89
|
+
articleBelow: Voeg onderstaand artikel in
|
|
90
|
+
title: Titel invoegen
|
|
91
|
+
chapter: Hoofdstuk invoegen
|
|
92
|
+
section: Afdeling invoegen
|
|
93
|
+
subsection: Onderafdeling invoegen
|
|
94
|
+
moveUp:
|
|
95
|
+
paragraph: Paragraaf naar boven verplaatsen
|
|
96
|
+
article: Artikel naar boven verplaatsen
|
|
97
|
+
title: Titel naar boven verplaatsen
|
|
98
|
+
chapter: Hoofdstuk naar boven verplaatsen
|
|
99
|
+
section: Afdeling naar boven verplaatsen
|
|
100
|
+
subsection: Onderafdeling naar boven verplaatsen
|
|
101
|
+
moveDown:
|
|
102
|
+
paragraph: Paragraaf naar beneden verplaatsen
|
|
103
|
+
article: Artikel naar beneden verplaatsen
|
|
104
|
+
title: Titel naar beneden verplaatsen
|
|
105
|
+
chapter: Hoofdstuk naar beneden verplaatsen
|
|
106
|
+
section: Afdeling naar beneden verplaatsen
|
|
107
|
+
subsection: Onderafdeling naar boven verplaatsen
|
|
108
|
+
title:
|
|
109
|
+
paragraphCard: Paragraaf card
|
|
110
|
+
articleCard: Artikel card
|
|
111
|
+
structureCard: Structuur card
|
|
112
|
+
remove:
|
|
113
|
+
article: Artikel verwijderen
|
|
114
|
+
paragraph: Paragraaf verwijderen
|
|
115
|
+
subsection: Onderafdeling verwijderen
|
|
116
|
+
section: Afdeling verwijderen
|
|
117
|
+
chapter: Hoofdstuk verwijderen
|
|
118
|
+
title: Titel verwijderen
|
|
119
|
+
content: Inhoud verwijderen
|
|
120
|
+
placeholder:
|
|
121
|
+
generic:
|
|
122
|
+
heading: Voeg titel in
|
|
123
|
+
body: Voeg inhoud in
|
|
124
|
+
chapter:
|
|
125
|
+
heading: Voeg hoofdstuk in
|
|
126
|
+
body: Voeg inhoud hoofdstuk in
|
|
127
|
+
section:
|
|
128
|
+
heading: Voeg afdeling in
|
|
129
|
+
body: Voeg inhoud afdeling in
|
|
130
|
+
subsection:
|
|
131
|
+
heading: Voeg onderafdeling in
|
|
132
|
+
body: Voeg inhoud onderafdeling in
|
|
133
|
+
article:
|
|
134
|
+
heading: Voeg artikel in
|
|
135
|
+
body: Voeg inhoud artikel in
|
|
136
|
+
paragraph:
|
|
137
|
+
body: Voeg inhoud paragraaf in
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "@tsconfig/ember/tsconfig.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// layout, which is not resolvable with the Node resolution algorithm, to
|
|
7
|
-
// work with TypeScript.
|
|
3
|
+
"target": "es2021",
|
|
4
|
+
"module": "es2020",
|
|
8
5
|
"allowJs": true,
|
|
6
|
+
"checkJs": false,
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"noImplicitAny": true,
|
|
10
|
+
"noImplicitThis": true,
|
|
11
|
+
"alwaysStrict": true,
|
|
12
|
+
"strictNullChecks": true,
|
|
13
|
+
"strictPropertyInitialization": true,
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
"noUnusedLocals": false,
|
|
16
|
+
"noUnusedParameters": false,
|
|
17
|
+
"noImplicitReturns": true,
|
|
9
18
|
"noEmitOnError": false,
|
|
19
|
+
"noEmit": true,
|
|
20
|
+
"inlineSourceMap": true,
|
|
21
|
+
"inlineSources": true,
|
|
10
22
|
"baseUrl": ".",
|
|
23
|
+
"skipLibCheck": true,
|
|
24
|
+
"experimentalDecorators": true,
|
|
25
|
+
"typeRoots": [
|
|
26
|
+
"./node_modules/@types",
|
|
27
|
+
],
|
|
11
28
|
"paths": {
|
|
12
29
|
"dummy/tests/*": [
|
|
13
30
|
"tests/*"
|
|
@@ -29,16 +46,24 @@
|
|
|
29
46
|
"addon-test-support/*"
|
|
30
47
|
],
|
|
31
48
|
"*": [
|
|
32
|
-
"types/*"
|
|
33
|
-
|
|
34
|
-
|
|
49
|
+
"types/*",
|
|
50
|
+
"node_modules/@lblod/ember-rdfa-editor/types/*"
|
|
51
|
+
],
|
|
52
|
+
"@lblod/ember-rdfa-editor": [
|
|
53
|
+
"node_modules/@lblod/ember-rdfa-editor/addon"
|
|
54
|
+
],
|
|
55
|
+
"@lblod/ember-rdfa-editor/*": [
|
|
56
|
+
"node_modules/@lblod/ember-rdfa-editor/addon/*"
|
|
57
|
+
],
|
|
58
|
+
},
|
|
35
59
|
},
|
|
36
60
|
"include": [
|
|
37
61
|
"app/**/*",
|
|
38
62
|
"addon/**/*",
|
|
39
63
|
"tests/**/*",
|
|
40
64
|
"types/**/*",
|
|
65
|
+
"node_modules/@lblod/ember-rdfa-editor/types/**/*",
|
|
41
66
|
"test-support/**/*",
|
|
42
|
-
"addon-test-support/**/*"
|
|
67
|
+
"addon-test-support/**/*",
|
|
43
68
|
]
|
|
44
69
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
environment: string;
|
|
3
|
+
modulePrefix: string;
|
|
4
|
+
podModulePrefix: string;
|
|
5
|
+
locationType: 'history' | 'hash' | 'none' | 'auto';
|
|
6
|
+
rootURL: string;
|
|
7
|
+
APP: Record<string, unknown>;
|
|
8
|
+
roadsignRegulationPlugin: {
|
|
9
|
+
endpoint: string;
|
|
10
|
+
imageBaseUrl: string;
|
|
11
|
+
};
|
|
12
|
+
besluitTypePlugin: {
|
|
13
|
+
endpoint: string;
|
|
14
|
+
};
|
|
15
|
+
templateVariablePlugin: {
|
|
16
|
+
endpoint: string;
|
|
17
|
+
zonalLocationCodelistUri: string;
|
|
18
|
+
nonZonalLocationCodelistUri: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default config;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare module 'ember-mu-transform-helpers/transforms/string-set' {
|
|
2
|
+
import Transform from '@ember-data/serializer/transform';
|
|
3
|
+
|
|
4
|
+
module 'ember-data/types/registries/transform' {
|
|
5
|
+
export default interface TransformRegistry {
|
|
6
|
+
'string-set': StringSetTransform;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export default class StringSetTransform extends Transform {
|
|
10
|
+
deserialize(serialized: unknown[]): unknown[];
|
|
11
|
+
|
|
12
|
+
serialize(deserialized: unknown[]): unknown[];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare module '@lblod/frontend-gelinkt-notuleren/models/account' {
|
|
2
|
+
import Model, { AsyncBelongsTo } from '@ember-data/model';
|
|
3
|
+
import GebruikerModel from '@lblod/frontend-gelinkt-notuleren/models/gebruiker';
|
|
4
|
+
|
|
5
|
+
export default class AccountModel extends Model {
|
|
6
|
+
voId: string;
|
|
7
|
+
provider: string;
|
|
8
|
+
gebruiker: AsyncBelongsTo<GebruikerModel>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare module '@lblod/frontend-gelinkt-notuleren/models/bestuurseenheid-classificatie' {
|
|
2
|
+
import Model from '@ember-data/model';
|
|
3
|
+
export default class BestuurseenheidClassificatieCodeModel extends Model {
|
|
4
|
+
label: string;
|
|
5
|
+
scopeNote: string;
|
|
6
|
+
uri: string;
|
|
7
|
+
|
|
8
|
+
rdfaBindings: Record<string, string>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare module '@lblod/frontend-gelinkt-notuleren/models/bestuurseenheid' {
|
|
2
|
+
import Model, { AsyncBelongsTo } from '@ember-data/model';
|
|
3
|
+
import BestuurseenheidClassificatieCodeModel from '@lblod/frontend-gelinkt-notuleren/models/bestuurseenheid-classificatie';
|
|
4
|
+
export default class BestuurseenheidModel extends Model {
|
|
5
|
+
naam: string;
|
|
6
|
+
uri: string;
|
|
7
|
+
|
|
8
|
+
classificatie: AsyncBelongsTo<BestuurseenheidClassificatieCodeModel>;
|
|
9
|
+
|
|
10
|
+
rdfaBindings: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare module '@lblod/frontend-gelinkt-notuleren/models/gebruiker' {
|
|
2
|
+
import Model, { AsyncHasMany } from '@ember-data/model';
|
|
3
|
+
import AccountModel from '@lblod/frontend-gelinkt-notuleren/models/account';
|
|
4
|
+
import BestuurseenheidModel from '@lblod/frontend-gelinkt-notuleren/models/bestuurseenheid';
|
|
5
|
+
export default class GebruikerModel extends Model {
|
|
6
|
+
voornaam: string;
|
|
7
|
+
achternaam: string;
|
|
8
|
+
rijksregisterNummer: string;
|
|
9
|
+
|
|
10
|
+
account: AsyncHasMany<AccountModel>;
|
|
11
|
+
|
|
12
|
+
bestuurseenheden: AsyncHasMany<BestuurseenheidModel>;
|
|
13
|
+
|
|
14
|
+
// this is only used for mock login afaik
|
|
15
|
+
get group(): BestuurseenheidModel;
|
|
16
|
+
get fullName(): string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare module '@lblod/frontend-gelinkt-notuleren/services/current-session' {
|
|
2
|
+
import Service from '@ember/service';
|
|
3
|
+
// eslint-disable-next-line ember/use-ember-data-rfc-395-imports
|
|
4
|
+
import DS from 'ember-data';
|
|
5
|
+
import AccountModel from '@lblod/frontend-gelinkt-notuleren/models/account';
|
|
6
|
+
import GebruikerModel from '@lblod/frontend-gelinkt-notuleren/models/gebruiker';
|
|
7
|
+
import BestuurseenheidModel from '@lblod/frontend-gelinkt-notuleren/models/bestuurseenheid';
|
|
8
|
+
|
|
9
|
+
export default class CurrentSessionService extends Service {
|
|
10
|
+
session: Service;
|
|
11
|
+
store: DS.Store;
|
|
12
|
+
|
|
13
|
+
account: AccountModel;
|
|
14
|
+
user: GebruikerModel;
|
|
15
|
+
group: BestuurseenheidModel;
|
|
16
|
+
roles: unknown[];
|
|
17
|
+
|
|
18
|
+
get canRead(): boolean;
|
|
19
|
+
|
|
20
|
+
get canWrite(): boolean;
|
|
21
|
+
|
|
22
|
+
get canPublish(): boolean;
|
|
23
|
+
|
|
24
|
+
get canSign(): boolean;
|
|
25
|
+
|
|
26
|
+
hasRole(role: unknown): boolean;
|
|
27
|
+
|
|
28
|
+
load(): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare module '@lblod/marawa/node-walker' {
|
|
2
|
+
import RichNode, { RichNodeContent } from '@lblod/marawa/rich-node';
|
|
3
|
+
|
|
4
|
+
export function walk(node: Node): RichNode;
|
|
5
|
+
export default class NodeWalker {
|
|
6
|
+
processDomNode(domNode: Node, parentNode?: Node, start?: number): RichNode;
|
|
7
|
+
stepInDomNode(richNode: RichNode, childDomNode: Node): RichNode;
|
|
8
|
+
stepNextDomNode(richNode: RichNode, nextDomChildren: Node[]): RichNode[];
|
|
9
|
+
finishChildSteps(richNode: RichNode): void;
|
|
10
|
+
processTextNode(richNode: RichNode): RichNode;
|
|
11
|
+
processTagNode(richNode: RichNode): RichNode;
|
|
12
|
+
processRegularTagNode(richNode: RichNode): RichNode;
|
|
13
|
+
processVoidTagNode(richNode: RichNode): RichNode;
|
|
14
|
+
processOtherNode(richNode: RichNode): RichNode;
|
|
15
|
+
detectDomNodeType(domNode: Node): string;
|
|
16
|
+
createRichNode(content: RichNodeContent): RichNode;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare module '@lblod/marawa/range-helpers' {
|
|
2
|
+
type Range = [number, number];
|
|
3
|
+
export function positionInRange(position: number, range: Range): boolean;
|
|
4
|
+
export function rangeAStartsOrEndsinB(rangeA: Range, rangeB: Range): boolean;
|
|
5
|
+
export function isLeftAdjacentRange(rangeA: Range, rangeB: Range): boolean;
|
|
6
|
+
export function isRightAdjacentRange(rangeA: Range, rangeB: Range): boolean;
|
|
7
|
+
export function isAdjacentRange(rangeA: Range, rangeB: Range): boolean;
|
|
8
|
+
export function isEmptyRange(range: Range): boolean;
|
|
9
|
+
export function isEqualRange(rangeA: Range, rangeB: Range): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare module '@lblod/marawa/rdfa-attributes' {
|
|
2
|
+
export default class RdfaAttributes {
|
|
3
|
+
constructor(
|
|
4
|
+
node: { getAttribute(key: string): string | undefined },
|
|
5
|
+
knownPrefixes?: unknown,
|
|
6
|
+
options?: Record<string, unknown>
|
|
7
|
+
);
|
|
8
|
+
get vocab(): string;
|
|
9
|
+
get content(): string;
|
|
10
|
+
get properties(): string[];
|
|
11
|
+
get rel(): string[];
|
|
12
|
+
get typeof(): string[];
|
|
13
|
+
get rev(): string[];
|
|
14
|
+
get about(): string;
|
|
15
|
+
get datatype(): string;
|
|
16
|
+
get src(): string;
|
|
17
|
+
get href(): string;
|
|
18
|
+
get resource(): string;
|
|
19
|
+
get isEmpty(): boolean;
|
|
20
|
+
currentPrefixes: Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
export function parsePrefixString(prefixString: string): {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare module '@lblod/marawa/rdfa-block' {
|
|
2
|
+
import Triple from '@lblod/marawa/triple';
|
|
3
|
+
import RichNode from '@lblod/marawa/rich-node';
|
|
4
|
+
type Region = [number, number];
|
|
5
|
+
export default class RdfaBlock {
|
|
6
|
+
constructor(content: unknown);
|
|
7
|
+
|
|
8
|
+
get region(): Region;
|
|
9
|
+
set region(region: Region);
|
|
10
|
+
|
|
11
|
+
get length(): number;
|
|
12
|
+
get richNode(): RichNode;
|
|
13
|
+
|
|
14
|
+
get context(): Triple[];
|
|
15
|
+
|
|
16
|
+
isInRegion(region: Region): boolean;
|
|
17
|
+
isPartiallyInRegion(region: Region): boolean;
|
|
18
|
+
isPartiallyOrFullyInRegion(region: Region): boolean;
|
|
19
|
+
containsRegion(region: Region): boolean;
|
|
20
|
+
normalizeRegion(region: Region): Region;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare module '@lblod/marawa/rdfa-context-scanner' {
|
|
2
|
+
import RdfaBlock from '@lblod/marawa/rdfa-block';
|
|
3
|
+
|
|
4
|
+
type Region = [number, number];
|
|
5
|
+
export default class RdfaContextScanner {
|
|
6
|
+
analyse(domNode: Node, region?: Region, options?: unknown): RdfaBlock[];
|
|
7
|
+
}
|
|
8
|
+
export function analyse(
|
|
9
|
+
node: Node,
|
|
10
|
+
region?: Region,
|
|
11
|
+
options?: unknown
|
|
12
|
+
): RdfaBlock[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare module '@lblod/marawa/rdfa-helpers' {
|
|
2
|
+
import RichNode from '@lblod/marawa/rich-node';
|
|
3
|
+
import RdfaAttributes from '@lblod/marawa/rdfa-attributes';
|
|
4
|
+
|
|
5
|
+
export function enrichWithRdfaProperties(
|
|
6
|
+
richNode: RichNode,
|
|
7
|
+
parentContext: RdfaAttributes[],
|
|
8
|
+
parentPrefixes?: unknown,
|
|
9
|
+
options?: Record<string, unknown>
|
|
10
|
+
): void;
|
|
11
|
+
export function resolvePrefix(
|
|
12
|
+
attribute: string,
|
|
13
|
+
uri: string | string[],
|
|
14
|
+
prefixes: unknown,
|
|
15
|
+
documentUri?: string
|
|
16
|
+
): string;
|
|
17
|
+
export function rdfaAttributesToTriples(
|
|
18
|
+
rdfaAttributes: RdfaAttributes[]
|
|
19
|
+
): unknown[];
|
|
20
|
+
export function isFullUri(uri: string): boolean;
|
|
21
|
+
export function isPrefixedUri(uri: string): boolean;
|
|
22
|
+
}
|