@lblod/ember-rdfa-editor-lblod-plugins 0.4.1 → 1.0.0-alpha.1
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 +25 -0
- package/addon/commands/article-structure-plugin/delete-structure.ts +85 -0
- package/addon/commands/article-structure-plugin/index.ts +4 -0
- package/addon/commands/article-structure-plugin/insert-article-structure.ts +137 -0
- package/addon/commands/article-structure-plugin/move-structure.ts +227 -0
- package/addon/commands/article-structure-plugin/recalculate-structure-numbers.ts +88 -0
- package/addon/commands/besluit-plugin/get-article-nodes-for-besluit.ts +30 -0
- package/addon/commands/besluit-plugin/index.ts +4 -0
- package/addon/commands/besluit-plugin/insert-article.ts +94 -0
- package/addon/commands/besluit-plugin/insert-title.ts +67 -0
- package/addon/commands/besluit-plugin/move-article.ts +69 -0
- package/addon/commands/besluit-plugin/recalculate-article-numbers.ts +44 -0
- package/addon/commands/modify-date-command.ts +48 -0
- package/addon/components/article-structure-plugin/article-structure-card.hbs +14 -0
- package/addon/components/article-structure-plugin/article-structure-card.ts +83 -0
- package/addon/components/article-structure-plugin/structure-card.hbs +42 -0
- package/addon/components/article-structure-plugin/structure-card.ts +140 -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 +144 -0
- package/addon/components/besluit-plugin/besluit-plugin-card.hbs +20 -0
- package/addon/components/besluit-plugin/besluit-plugin-card.ts +42 -0
- package/addon/components/besluit-type-plugin/{besluit-type-select.js → besluit-type-select.ts} +9 -4
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +2 -0
- package/addon/components/besluit-type-plugin/toolbar-dropdown.ts +216 -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} +116 -89
- 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 +44 -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} +101 -64
- 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/{constants.js → constants.ts} +15 -3
- package/addon/ember-nodes/table-of-contents.ts +53 -0
- package/addon/helpers/{limit-text.js → limit-text.ts} +2 -2
- package/addon/initializers/plugin-initializer.js +0 -75
- 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.ts +55 -0
- package/addon/plugins/besluit-plugin.ts +27 -0
- package/addon/plugins/besluit-type-plugin.ts +6 -0
- 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/plugins/citation-plugin/utils/process-match.ts +135 -0
- package/addon/{utils/vlaamse-codex.js → plugins/citation-plugin/utils/vlaamse-codex.ts} +161 -42
- package/addon/plugins/import-snippet-plugin.ts +6 -0
- package/addon/plugins/insert-variable-plugin.ts +11 -0
- package/addon/plugins/rdfa-date-plugin.ts +11 -0
- package/addon/plugins/roadsign-regulation-plugin.ts +6 -0
- package/addon/plugins/standard-template-plugin.ts +6 -0
- package/addon/plugins/table-of-contents-plugin.ts +14 -0
- package/addon/plugins/template-variable-plugin.ts +6 -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/article-structure-plugin/constants.ts +260 -0
- package/addon/utils/article-structure-plugin/defaults.ts +3 -0
- package/addon/utils/article-structure-plugin/options-with-defaults.ts +31 -0
- package/addon/utils/article-structure-plugin/validate-datastore.ts +23 -0
- package/addon/utils/besluit-plugin/get-title-for-decision.ts +35 -0
- package/addon/utils/{fetchBesluitTypes.js → fetchBesluitTypes.ts} +36 -16
- package/addon/utils/generate-template-plugin/{default-resources.js → default-resources.ts} +0 -0
- package/addon/utils/{instantiate-uuids.js → instantiate-uuids.ts} +9 -6
- package/addon/utils/{legislation-types.js → legislation-types.ts} +17 -3
- package/addon/utils/{memoize.js → memoize.ts} +4 -2
- package/addon/utils/option.ts +58 -0
- package/addon/utils/roadsign-regulation-plugin/{fetchData.js → fetchData.ts} +19 -2
- package/addon/utils/roadsign-regulation-plugin/includeInstructions.ts +16 -0
- package/addon/utils/romanize.ts +47 -0
- package/addon/utils/variable-plugins/{default-variable-types.js → default-variable-types.ts} +18 -7
- package/addon/utils/variable-plugins/{fetch-data.js → fetch-data.ts} +43 -15
- 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/commands/article-structure-plugin/delete-structure.d.ts +4 -0
- package/commands/article-structure-plugin/index.d.ts +4 -0
- package/commands/article-structure-plugin/insert-article-structure.d.ts +6 -0
- package/commands/article-structure-plugin/move-structure.d.ts +5 -0
- package/commands/article-structure-plugin/recalculate-structure-numbers.d.ts +7 -0
- package/commands/besluit-plugin/get-article-nodes-for-besluit.d.ts +5 -0
- package/commands/besluit-plugin/index.d.ts +4 -0
- package/commands/besluit-plugin/insert-article.d.ts +3 -0
- package/commands/besluit-plugin/insert-title.d.ts +2 -0
- package/commands/besluit-plugin/move-article.d.ts +2 -0
- package/commands/besluit-plugin/recalculate-article-numbers.d.ts +2 -0
- package/commands/modify-date-command.d.ts +2 -0
- package/components/article-structure-plugin/article-structure-card.d.ts +36 -0
- package/components/article-structure-plugin/structure-card.d.ts +23 -0
- package/components/au-native-input.d.ts +20 -0
- package/components/besluit-plugin/besluit-context-card.d.ts +29 -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/constants.d.ts +11 -0
- package/ember-nodes/table-of-contents.d.ts +4 -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 +27 -8
- package/plugins/article-structure-plugin.d.ts +29 -0
- package/plugins/besluit-plugin.d.ts +9 -0
- package/plugins/besluit-type-plugin.d.ts +2 -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/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.d.ts +2 -0
- package/plugins/rdfa-date-plugin.d.ts +3 -0
- package/plugins/roadsign-regulation-plugin.d.ts +2 -0
- package/plugins/standard-template-plugin.d.ts +2 -0
- package/plugins/table-of-contents-plugin.d.ts +3 -0
- package/plugins/template-variable-plugin.d.ts +2 -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 +47 -1
- package/translations/nl-BE.yaml +49 -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/article-structure-plugin/constants.d.ts +2 -0
- package/utils/article-structure-plugin/defaults.d.ts +4 -0
- package/utils/article-structure-plugin/options-with-defaults.d.ts +2 -0
- package/utils/article-structure-plugin/validate-datastore.d.ts +3 -0
- package/utils/besluit-plugin/get-title-for-decision.d.ts +10 -0
- package/utils/fetchBesluitTypes.d.ts +12 -0
- package/utils/generate-template-plugin/default-resources.d.ts +2 -0
- package/utils/instantiate-uuids.d.ts +1 -0
- package/utils/legislation-types.d.ts +24 -0
- package/utils/memoize.d.ts +1 -0
- package/utils/option.d.ts +14 -0
- package/utils/roadsign-regulation-plugin/fetchData.d.ts +8 -0
- package/utils/roadsign-regulation-plugin/includeInstructions.d.ts +2 -0
- package/utils/romanize.d.ts +2 -0
- package/utils/variable-plugins/default-variable-types.d.ts +7 -0
- package/utils/variable-plugins/fetch-data.d.ts +14 -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/inline-components/table-of-contents.js +0 -43
- 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/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/processMatch.js +0 -80
- package/addon/utils/roadsign-regulation-plugin/includeInstructions.js +0 -10
- 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,35 @@
|
|
|
1
|
+
import { ProseStore } from '@lblod/ember-rdfa-editor/plugins/datastore';
|
|
2
|
+
|
|
3
|
+
export function getTitleForDecision(
|
|
4
|
+
decisionUri: string,
|
|
5
|
+
datastore: ProseStore
|
|
6
|
+
) {
|
|
7
|
+
const title = datastore
|
|
8
|
+
.match(`>${decisionUri}`, '>http://data.europa.eu/eli/ontology#title')
|
|
9
|
+
.asQuads()
|
|
10
|
+
.next().value;
|
|
11
|
+
|
|
12
|
+
return !!title;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Gets all nodes defining a eli:title predicate for a certain
|
|
17
|
+
* decision subject URI
|
|
18
|
+
* @param decisionUri
|
|
19
|
+
* @param datastore
|
|
20
|
+
* @returns {null|*}
|
|
21
|
+
*/
|
|
22
|
+
export function getTitleNodesForDecision(
|
|
23
|
+
decisionUri: string,
|
|
24
|
+
datastore: ProseStore
|
|
25
|
+
) {
|
|
26
|
+
const mapping = datastore
|
|
27
|
+
.match(`>${decisionUri}`, '>http://data.europa.eu/eli/ontology#title')
|
|
28
|
+
.asPredicateNodeMapping()
|
|
29
|
+
.single();
|
|
30
|
+
if (mapping) {
|
|
31
|
+
return mapping.nodes;
|
|
32
|
+
} else {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
|
|
1
|
+
import { IBindings, SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
|
|
2
|
+
import * as RDF from '@rdfjs/types';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export type BesluitType = {
|
|
5
|
+
uri: string;
|
|
6
|
+
definition: string;
|
|
7
|
+
label: string;
|
|
8
|
+
broader: string;
|
|
9
|
+
subTypes?: BesluitType[];
|
|
10
|
+
};
|
|
11
|
+
export default async function fetchBesluitTypes(
|
|
12
|
+
classificationUri: string,
|
|
13
|
+
ENV: {
|
|
14
|
+
besluitTypePlugin: {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
) {
|
|
4
19
|
const query = `
|
|
5
20
|
PREFIX conceptscheme: <https://data.vlaanderen.be/id/conceptscheme/>
|
|
6
21
|
PREFIX BesluitType: <https://data.vlaanderen.be/id/concept/BesluitType/>
|
|
@@ -42,11 +57,11 @@ export default async function fetchBesluitTypes(classificationUri, ENV) {
|
|
|
42
57
|
});
|
|
43
58
|
const endpoint = ENV.besluitTypePlugin.endpoint;
|
|
44
59
|
const bindingStream = await typeFetcher.fetchBindings(endpoint, query);
|
|
45
|
-
const validBesluitTriples = [];
|
|
46
|
-
bindingStream.on('data', (triple) => {
|
|
60
|
+
const validBesluitTriples: IBindings[] = [];
|
|
61
|
+
bindingStream.on('data', (triple: IBindings) => {
|
|
47
62
|
validBesluitTriples.push(triple);
|
|
48
63
|
});
|
|
49
|
-
return new Promise((resolve, reject) => {
|
|
64
|
+
return new Promise<IBindings[]>((resolve, reject) => {
|
|
50
65
|
bindingStream.on('error', reject);
|
|
51
66
|
bindingStream.on('end', () => {
|
|
52
67
|
resolve(validBesluitTriples);
|
|
@@ -54,29 +69,34 @@ export default async function fetchBesluitTypes(classificationUri, ENV) {
|
|
|
54
69
|
}).then(quadsToBesluitTypeObjects);
|
|
55
70
|
}
|
|
56
71
|
|
|
57
|
-
function quadsToBesluitTypeObjects(triples) {
|
|
58
|
-
const besluitTypes = new Map();
|
|
72
|
+
function quadsToBesluitTypeObjects(triples: IBindings[]) {
|
|
73
|
+
const besluitTypes = new Map<string, BesluitType>();
|
|
59
74
|
triples.forEach((triple) => {
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
75
|
+
const subject = triple['s'] as RDF.Term;
|
|
76
|
+
const predicate = triple['p'] as RDF.Term;
|
|
77
|
+
const object = triple['o'] as RDF.Term;
|
|
78
|
+
const existing =
|
|
79
|
+
besluitTypes.get(subject.value) ||
|
|
80
|
+
({
|
|
81
|
+
uri: subject.value,
|
|
82
|
+
} as BesluitType);
|
|
83
|
+
switch (predicate.value) {
|
|
64
84
|
case 'http://www.w3.org/2004/02/skos/core#definition':
|
|
65
|
-
existing.definition =
|
|
85
|
+
existing.definition = object.value;
|
|
66
86
|
break;
|
|
67
87
|
case 'http://www.w3.org/2004/02/skos/core#prefLabel':
|
|
68
|
-
existing.label =
|
|
88
|
+
existing.label = object.value;
|
|
69
89
|
break;
|
|
70
90
|
case 'http://www.w3.org/2004/02/skos/core#broader':
|
|
71
|
-
existing.broader =
|
|
91
|
+
existing.broader = object.value;
|
|
72
92
|
break;
|
|
73
93
|
}
|
|
74
|
-
besluitTypes.set(
|
|
94
|
+
besluitTypes.set(subject.value, existing);
|
|
75
95
|
});
|
|
76
96
|
return createBesluitTypeObjectsHierarchy([...besluitTypes.values()]);
|
|
77
97
|
}
|
|
78
98
|
|
|
79
|
-
function createBesluitTypeObjectsHierarchy(allBesluitTypes) {
|
|
99
|
+
function createBesluitTypeObjectsHierarchy(allBesluitTypes: BesluitType[]) {
|
|
80
100
|
const besluitTypes = allBesluitTypes.filter((bst) => !bst.broader);
|
|
81
101
|
const subTypes = allBesluitTypes.filter((bst) => !!bst.broader);
|
|
82
102
|
subTypes.forEach((subtype) => {
|
|
File without changes
|
|
@@ -16,7 +16,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
16
16
|
* @private
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
function determineFunction(string) {
|
|
19
|
+
function determineFunction(string: string): () => string {
|
|
20
20
|
switch (string) {
|
|
21
21
|
case 'generateUuid()':
|
|
22
22
|
return uuidv4;
|
|
@@ -26,9 +26,12 @@ function determineFunction(string) {
|
|
|
26
26
|
throw new Error(`Could not convert ${string} to function`);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
export default function instantiateUuids(templateString) {
|
|
30
|
-
return templateString.replace(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
export default function instantiateUuids(templateString: string) {
|
|
30
|
+
return templateString.replace(
|
|
31
|
+
/\$\{(generateUuid|generateBoundUuid)\(\)\}/g,
|
|
32
|
+
(match) => {
|
|
33
|
+
//input '${content}' and eval('content')
|
|
34
|
+
return determineFunction(match.substring(2, match.length - 1))();
|
|
35
|
+
}
|
|
36
|
+
);
|
|
34
37
|
}
|
|
@@ -25,8 +25,22 @@ const LEGISLATION_TYPES = {
|
|
|
25
25
|
protocol: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Protocol',
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
export type Legislations = typeof LEGISLATION_TYPES;
|
|
29
|
+
export type LegislationKey = keyof Legislations;
|
|
30
|
+
// export type MappedLegislations = {
|
|
31
|
+
// [K in LegislationKey]: {
|
|
32
|
+
// label: K;
|
|
33
|
+
// value: Legislations[K];
|
|
34
|
+
// };
|
|
35
|
+
// };
|
|
36
|
+
// export type MappedLegislation = MappedLegislations[LegislationKey];
|
|
37
|
+
const LEGISLATION_TYPE_CONCEPTS = Object.entries(LEGISLATION_TYPES).map(
|
|
38
|
+
(pair: [string, string]) => {
|
|
39
|
+
return {
|
|
40
|
+
label: pair[0],
|
|
41
|
+
value: pair[1],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
);
|
|
31
45
|
|
|
32
46
|
export { LEGISLATION_TYPES, LEGISLATION_TYPE_CONCEPTS };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export default function memoize(func) {
|
|
2
|
-
|
|
4
|
+
const cache = {};
|
|
3
5
|
return function () {
|
|
4
|
-
|
|
6
|
+
const args = JSON.stringify(arguments);
|
|
5
7
|
cache[args] = cache[args] || func.apply(this, arguments);
|
|
6
8
|
return cache[args];
|
|
7
9
|
};
|
|
@@ -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
|
+
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { POTENTIALLY_ZONAL_URI } from '../../constants';
|
|
2
2
|
|
|
3
|
-
function buildFilters({
|
|
3
|
+
function buildFilters({
|
|
4
|
+
zonality,
|
|
5
|
+
type,
|
|
6
|
+
codes,
|
|
7
|
+
category,
|
|
8
|
+
}: {
|
|
9
|
+
zonality?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
codes?: string[];
|
|
12
|
+
category?: string;
|
|
13
|
+
}) {
|
|
4
14
|
const filters = [];
|
|
5
15
|
if (zonality) {
|
|
6
16
|
filters.push(
|
|
@@ -33,7 +43,14 @@ export function generateMeasuresQuery({
|
|
|
33
43
|
codes,
|
|
34
44
|
category,
|
|
35
45
|
pageStart = 0,
|
|
36
|
-
count,
|
|
46
|
+
count = false,
|
|
47
|
+
}: {
|
|
48
|
+
zonality?: string;
|
|
49
|
+
type?: string;
|
|
50
|
+
codes?: string[];
|
|
51
|
+
category?: string;
|
|
52
|
+
pageStart?: number;
|
|
53
|
+
count?: boolean;
|
|
37
54
|
}) {
|
|
38
55
|
const filters = buildFilters({ zonality, type, codes, category });
|
|
39
56
|
let pagination = '';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Instruction from '@lblod/ember-rdfa-editor-lblod-plugins/models/instruction';
|
|
2
|
+
|
|
3
|
+
export default function includeInstructions(
|
|
4
|
+
html: string,
|
|
5
|
+
instructions: Instruction[],
|
|
6
|
+
annotated: boolean
|
|
7
|
+
) {
|
|
8
|
+
let finalHtml = html;
|
|
9
|
+
for (const instruction of instructions) {
|
|
10
|
+
finalHtml = finalHtml.replaceAll(
|
|
11
|
+
`\${${instruction.name ?? ''}}`,
|
|
12
|
+
annotated ? instruction.annotatedTemplate : instruction.template
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
return finalHtml;
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function romanize(num: number) {
|
|
2
|
+
if (isNaN(num)) throw new Error('Provided number is NaN');
|
|
3
|
+
const digits = String(+num).split('');
|
|
4
|
+
const key = [
|
|
5
|
+
'',
|
|
6
|
+
'C',
|
|
7
|
+
'CC',
|
|
8
|
+
'CCC',
|
|
9
|
+
'CD',
|
|
10
|
+
'D',
|
|
11
|
+
'DC',
|
|
12
|
+
'DCC',
|
|
13
|
+
'DCCC',
|
|
14
|
+
'CM',
|
|
15
|
+
'',
|
|
16
|
+
'X',
|
|
17
|
+
'XX',
|
|
18
|
+
'XXX',
|
|
19
|
+
'XL',
|
|
20
|
+
'L',
|
|
21
|
+
'LX',
|
|
22
|
+
'LXX',
|
|
23
|
+
'LXXX',
|
|
24
|
+
'XC',
|
|
25
|
+
'',
|
|
26
|
+
'I',
|
|
27
|
+
'II',
|
|
28
|
+
'III',
|
|
29
|
+
'IV',
|
|
30
|
+
'V',
|
|
31
|
+
'VI',
|
|
32
|
+
'VII',
|
|
33
|
+
'VIII',
|
|
34
|
+
'IX',
|
|
35
|
+
];
|
|
36
|
+
let roman = '';
|
|
37
|
+
let i = 3;
|
|
38
|
+
while (i--) {
|
|
39
|
+
const digit = digits.pop();
|
|
40
|
+
if (digit) {
|
|
41
|
+
roman = (key[Number(digit) + i * 10] || '') + roman;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return Array(+digits.join('') + 1).join('M') + roman;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default romanize;
|
package/addon/utils/variable-plugins/{default-variable-types.js → default-variable-types.ts}
RENAMED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { fetchCodeListsByPublisher } from './fetch-data';
|
|
1
|
+
import { CodeList, fetchCodeListsByPublisher } from './fetch-data';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export type VariableType = {
|
|
4
|
+
label: string;
|
|
5
|
+
fetchSubtypes?: (endpoint: string, publisher: string) => Promise<CodeList[]>;
|
|
6
|
+
template:
|
|
7
|
+
| string
|
|
8
|
+
| ((endpoint: string, selectedCodelist?: CodeList) => string);
|
|
9
|
+
};
|
|
10
|
+
export const defaultVariableTypes: Record<string, VariableType> = {
|
|
4
11
|
text: {
|
|
5
12
|
label: 'text',
|
|
6
13
|
template: `
|
|
@@ -30,7 +37,7 @@ export const defaultVariableTypes = {
|
|
|
30
37
|
},
|
|
31
38
|
location: {
|
|
32
39
|
label: 'location',
|
|
33
|
-
template: (endpoint) => `
|
|
40
|
+
template: (endpoint: string) => `
|
|
34
41
|
<span property="dct:type" content="location"></span>
|
|
35
42
|
<span property="dct:source" resource="${endpoint}"></span>
|
|
36
43
|
<span property="ext:content">
|
|
@@ -40,16 +47,20 @@ export const defaultVariableTypes = {
|
|
|
40
47
|
},
|
|
41
48
|
codelist: {
|
|
42
49
|
label: 'codelist',
|
|
43
|
-
fetchSubtypes: async (endpoint, publisher) => {
|
|
50
|
+
fetchSubtypes: async (endpoint: string, publisher: string) => {
|
|
44
51
|
const codelists = fetchCodeListsByPublisher(endpoint, publisher);
|
|
45
52
|
return codelists;
|
|
46
53
|
},
|
|
47
|
-
template: (endpoint, selectedCodelist) => `
|
|
48
|
-
<span property="ext:codelist" resource="${
|
|
54
|
+
template: (endpoint: string, selectedCodelist?: CodeList) => `
|
|
55
|
+
<span property="ext:codelist" resource="${
|
|
56
|
+
selectedCodelist?.uri ?? ''
|
|
57
|
+
}"></span>
|
|
49
58
|
<span property="dct:type" content="codelist"></span>
|
|
50
59
|
<span property="dct:source" resource="${endpoint}"></span>
|
|
51
60
|
<span property="ext:content">
|
|
52
|
-
<span class="mark-highlight-manual">\${${
|
|
61
|
+
<span class="mark-highlight-manual">\${${
|
|
62
|
+
selectedCodelist?.label ?? ''
|
|
63
|
+
}}</span>
|
|
53
64
|
</span>
|
|
54
65
|
`,
|
|
55
66
|
},
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import * as RDF from '@rdfjs/types';
|
|
2
|
+
|
|
3
|
+
type QueryResult = {
|
|
4
|
+
results: {
|
|
5
|
+
bindings: Record<string, RDF.Term>[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type CodeList = {
|
|
10
|
+
uri?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type CodeListOptions = {
|
|
15
|
+
type: string;
|
|
16
|
+
options: CodeListOption[];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type CodeListOption = {
|
|
20
|
+
value?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function generateCodeListOptionsQuery(codelistUri: string): string {
|
|
2
25
|
const codeListOptionsQuery = `
|
|
3
26
|
PREFIX lblodMobilitiet: <http://data.lblod.info/vocabularies/mobiliteit/>
|
|
4
27
|
PREFIX dct: <http://purl.org/dc/terms/>
|
|
@@ -20,7 +43,7 @@ function generateCodeListOptionsQuery(codelistUri) {
|
|
|
20
43
|
return codeListOptionsQuery;
|
|
21
44
|
}
|
|
22
45
|
|
|
23
|
-
function generateCodeListsByPublisherQuery(publisher) {
|
|
46
|
+
function generateCodeListsByPublisherQuery(publisher: string): string {
|
|
24
47
|
const codeListOptionsQuery = `
|
|
25
48
|
PREFIX lblodMobilitiet: <http://data.lblod.info/vocabularies/mobiliteit/>
|
|
26
49
|
PREFIX dct: <http://purl.org/dc/terms/>
|
|
@@ -41,7 +64,10 @@ function generateCodeListsByPublisherQuery(publisher) {
|
|
|
41
64
|
return codeListOptionsQuery;
|
|
42
65
|
}
|
|
43
66
|
|
|
44
|
-
export async function fetchCodeListOptions(
|
|
67
|
+
export async function fetchCodeListOptions(
|
|
68
|
+
endpoint: string,
|
|
69
|
+
codelistUri: string
|
|
70
|
+
): Promise<CodeListOptions> {
|
|
45
71
|
const codelistsOptionsQueryResult = await executeQuery(
|
|
46
72
|
endpoint,
|
|
47
73
|
generateCodeListOptionsQuery(codelistUri)
|
|
@@ -49,35 +75,37 @@ export async function fetchCodeListOptions(endpoint, codelistUri) {
|
|
|
49
75
|
const options = parseCodelistOptions(codelistsOptionsQueryResult);
|
|
50
76
|
return {
|
|
51
77
|
type:
|
|
52
|
-
codelistsOptionsQueryResult.results.bindings[0] &&
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
: '',
|
|
78
|
+
(codelistsOptionsQueryResult.results.bindings[0] &&
|
|
79
|
+
codelistsOptionsQueryResult.results.bindings[0]['type']?.value) ||
|
|
80
|
+
'',
|
|
56
81
|
options,
|
|
57
82
|
};
|
|
58
83
|
}
|
|
59
84
|
|
|
60
|
-
export async function fetchCodeListsByPublisher(
|
|
85
|
+
export async function fetchCodeListsByPublisher(
|
|
86
|
+
endpoint: string,
|
|
87
|
+
publisher: string
|
|
88
|
+
): Promise<CodeList[]> {
|
|
61
89
|
const codelistsOptionsQueryResult = await executeQuery(
|
|
62
90
|
endpoint,
|
|
63
91
|
generateCodeListsByPublisherQuery(publisher)
|
|
64
92
|
);
|
|
65
93
|
const bindings = codelistsOptionsQueryResult.results.bindings;
|
|
66
94
|
return bindings.map((binding) => ({
|
|
67
|
-
uri: binding
|
|
68
|
-
label: binding
|
|
95
|
+
uri: binding['uri']?.value,
|
|
96
|
+
label: binding['label']?.value,
|
|
69
97
|
}));
|
|
70
98
|
}
|
|
71
99
|
|
|
72
|
-
function parseCodelistOptions(queryResult) {
|
|
100
|
+
function parseCodelistOptions(queryResult: QueryResult): CodeListOption[] {
|
|
73
101
|
const bindings = queryResult.results.bindings;
|
|
74
102
|
return bindings.map((binding) => ({
|
|
75
|
-
value: binding
|
|
76
|
-
label: binding
|
|
103
|
+
value: binding['label']?.value,
|
|
104
|
+
label: binding['label']?.value,
|
|
77
105
|
}));
|
|
78
106
|
}
|
|
79
107
|
|
|
80
|
-
async function executeQuery(endpoint, query) {
|
|
108
|
+
async function executeQuery(endpoint: string, query: string) {
|
|
81
109
|
const encodedQuery = encodeURIComponent(query.trim());
|
|
82
110
|
const response = await fetch(endpoint, {
|
|
83
111
|
method: 'POST',
|
|
@@ -89,7 +117,7 @@ async function executeQuery(endpoint, query) {
|
|
|
89
117
|
body: `query=${encodedQuery}`,
|
|
90
118
|
});
|
|
91
119
|
if (response.ok) {
|
|
92
|
-
return response.json();
|
|
120
|
+
return response.json() as unknown as QueryResult;
|
|
93
121
|
} else {
|
|
94
122
|
throw new Error(
|
|
95
123
|
`Request to MOW backend was unsuccessful: [${response.status}] ${response.statusText}`
|
|
@@ -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,4 @@
|
|
|
1
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
2
|
+
import { ResolvedArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
3
|
+
import { Command } from 'prosemirror-state';
|
|
4
|
+
export default function deleteStructure(controller: ProseController, uri: string, options: ResolvedArticleStructurePluginOptions): Command;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as deleteStructure } from './delete-structure';
|
|
2
|
+
export { default as insertArticleStructure } from './insert-article-structure';
|
|
3
|
+
export { default as moveStructure } from './move-structure';
|
|
4
|
+
export { default as recalculateStructureNumbers } from './recalculate-structure-numbers';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
2
|
+
import IntlService from 'ember-intl/services/intl';
|
|
3
|
+
import { Command } from 'prosemirror-state';
|
|
4
|
+
import ValidationReport from 'rdf-validate-shacl/src/validation-report';
|
|
5
|
+
import { ResolvedArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
6
|
+
export default function insertArticleStructureV2(controller: ProseController, structureName: string, options: ResolvedArticleStructurePluginOptions, report: ValidationReport, intlService: IntlService): Command;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
2
|
+
import { Command } from 'prosemirror-state';
|
|
3
|
+
import ValidationReport from 'rdf-validate-shacl/src/validation-report';
|
|
4
|
+
import { ResolvedArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
5
|
+
export default function moveStructure(controller: ProseController, structureURI: string, moveUp: boolean, options: ResolvedArticleStructurePluginOptions, report: ValidationReport): Command;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
2
|
+
import { Command } from 'prosemirror-state';
|
|
3
|
+
import { ResolvedArticleStructurePluginOptions, StructureSpec } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
4
|
+
export default function recalculateStructureNumbers(controller: ProseController, containerRange: {
|
|
5
|
+
from: number;
|
|
6
|
+
to: number;
|
|
7
|
+
} | undefined | null, structureType: StructureSpec, options: ResolvedArticleStructurePluginOptions): Command;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
2
|
+
export default function getArticleNodesForBesluit(controller: ProseController, besluitUri?: string): {
|
|
3
|
+
uri: string;
|
|
4
|
+
range: import("@lblod/ember-rdfa-editor/addon/plugins/datastore").TextPNode | import("@lblod/ember-rdfa-editor/addon/plugins/datastore").ElementPNode;
|
|
5
|
+
}[] | undefined;
|