@lblod/ember-rdfa-editor-lblod-plugins 8.2.1 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.woodpecker/.test.yml +5 -0
- package/CHANGELOG.md +30 -1
- package/addon/components/citation-plugin/citations/search-modal.hbs +18 -41
- package/addon/components/citation-plugin/citations/search-modal.ts +0 -17
- package/addon/components/pagination/pagination-view.hbs +39 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.ts +7 -1
- package/addon/components/snippet-plugin/helpers/alert-load-error.hbs +22 -0
- package/addon/components/snippet-plugin/helpers/alert-no-items.hbs +8 -0
- package/addon/components/snippet-plugin/search-modal.hbs +83 -0
- package/addon/components/snippet-plugin/search-modal.ts +97 -0
- package/addon/components/snippet-plugin/snippet-insert.hbs +17 -0
- package/addon/components/snippet-plugin/snippet-insert.ts +50 -0
- package/addon/components/snippet-plugin/snippets/snippet-list.hbs +12 -0
- package/addon/components/snippet-plugin/snippets/snippet-preview.hbs +27 -0
- package/addon/components/snippet-plugin/snippets/snippet-preview.ts +28 -0
- package/addon/helpers/pagination.ts +40 -0
- package/addon/plugins/citation-plugin/utils/vlaamse-codex.ts +4 -34
- package/addon/plugins/snippet-plugin/index.ts +27 -0
- package/addon/plugins/snippet-plugin/utils/fetch-data.ts +96 -0
- package/addon/plugins/variable-plugin/nodes.ts +15 -11
- package/addon/plugins/variable-plugin/utils/fetch-data.ts +6 -6
- package/addon/utils/sparql-helpers.ts +28 -6
- package/addon/utils/strings.ts +34 -0
- package/addon/utils/types.ts +3 -0
- package/app/components/pagination/pagination-view.js +1 -0
- package/app/components/snippet-plugin/helpers/alert-load-error.js +1 -0
- package/app/components/snippet-plugin/helpers/alert-no-items.js +1 -0
- package/app/components/snippet-plugin/search-modal.js +1 -0
- package/app/components/snippet-plugin/snippet-insert.js +1 -0
- package/app/components/snippet-plugin/snippets/snippet-list.js +1 -0
- package/app/components/snippet-plugin/snippets/snippet-preview.js +1 -0
- package/app/helpers/pagination.js +4 -0
- package/app/styles/snippet-plugin.scss +66 -0
- package/components/besluit-type-plugin/toolbar-dropdown.d.ts +1 -1
- package/components/citation-plugin/citations/search-modal.d.ts +0 -4
- package/components/snippet-plugin/search-modal.d.ts +22 -0
- package/components/snippet-plugin/snippet-insert.d.ts +16 -0
- package/components/snippet-plugin/snippets/snippet-preview.d.ts +14 -0
- package/helpers/pagination.d.ts +25 -0
- package/package.json +5 -5
- package/plugins/snippet-plugin/index.d.ts +16 -0
- package/plugins/snippet-plugin/utils/fetch-data.d.ts +18 -0
- package/plugins/table-of-contents-plugin/nodes/table-of-contents.d.ts +1 -1
- package/plugins/variable-plugin/nodes.d.ts +3 -3
- package/translations/en-US.yaml +23 -0
- package/translations/nl-BE.yaml +24 -1
- package/tsconfig.json +5 -13
- package/utils/sparql-helpers.d.ts +11 -4
- package/utils/strings.d.ts +2 -0
- package/utils/types.d.ts +2 -0
package/tsconfig.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"skipLibCheck": true,
|
|
24
24
|
"experimentalDecorators": true,
|
|
25
25
|
"typeRoots": [
|
|
26
|
-
"./node_modules/@types"
|
|
26
|
+
"./node_modules/@types"
|
|
27
27
|
],
|
|
28
28
|
"paths": {
|
|
29
29
|
"dummy/tests/*": [
|
|
@@ -46,24 +46,16 @@
|
|
|
46
46
|
"addon-test-support/*"
|
|
47
47
|
],
|
|
48
48
|
"*": [
|
|
49
|
-
"types/*"
|
|
50
|
-
|
|
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
|
-
},
|
|
49
|
+
"types/*"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
59
52
|
},
|
|
60
53
|
"include": [
|
|
61
54
|
"app/**/*",
|
|
62
55
|
"addon/**/*",
|
|
63
56
|
"tests/**/*",
|
|
64
57
|
"types/**/*",
|
|
65
|
-
"node_modules/@lblod/ember-rdfa-editor/types/**/*",
|
|
66
58
|
"test-support/**/*",
|
|
67
|
-
"addon-test-support/**/*"
|
|
59
|
+
"addon-test-support/**/*"
|
|
68
60
|
]
|
|
69
61
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as RDF from '@rdfjs/types';
|
|
2
|
-
export
|
|
2
|
+
export interface QueryResult<Binding = Record<string, RDF.Term>> {
|
|
3
3
|
results: {
|
|
4
|
-
bindings:
|
|
4
|
+
bindings: Binding[];
|
|
5
5
|
};
|
|
6
|
-
}
|
|
7
|
-
|
|
6
|
+
}
|
|
7
|
+
interface QueryConfig {
|
|
8
|
+
query: string;
|
|
9
|
+
endpoint: string;
|
|
10
|
+
abortSignal?: AbortSignal;
|
|
11
|
+
}
|
|
12
|
+
export declare function executeQuery<Binding = Record<string, RDF.Term>>({ query, endpoint, abortSignal, }: QueryConfig): Promise<QueryResult<Binding>>;
|
|
13
|
+
export declare function executeCountQuery(queryConfig: QueryConfig): Promise<number>;
|
|
14
|
+
export {};
|
package/utils/types.d.ts
ADDED