@lblod/ember-rdfa-editor-lblod-plugins 8.2.2 → 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 +24 -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/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
|
@@ -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