@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.
Files changed (49) hide show
  1. package/.woodpecker/.test.yml +5 -0
  2. package/CHANGELOG.md +24 -1
  3. package/addon/components/citation-plugin/citations/search-modal.hbs +18 -41
  4. package/addon/components/citation-plugin/citations/search-modal.ts +0 -17
  5. package/addon/components/pagination/pagination-view.hbs +39 -0
  6. package/addon/components/snippet-plugin/helpers/alert-load-error.hbs +22 -0
  7. package/addon/components/snippet-plugin/helpers/alert-no-items.hbs +8 -0
  8. package/addon/components/snippet-plugin/search-modal.hbs +83 -0
  9. package/addon/components/snippet-plugin/search-modal.ts +97 -0
  10. package/addon/components/snippet-plugin/snippet-insert.hbs +17 -0
  11. package/addon/components/snippet-plugin/snippet-insert.ts +50 -0
  12. package/addon/components/snippet-plugin/snippets/snippet-list.hbs +12 -0
  13. package/addon/components/snippet-plugin/snippets/snippet-preview.hbs +27 -0
  14. package/addon/components/snippet-plugin/snippets/snippet-preview.ts +28 -0
  15. package/addon/helpers/pagination.ts +40 -0
  16. package/addon/plugins/citation-plugin/utils/vlaamse-codex.ts +4 -34
  17. package/addon/plugins/snippet-plugin/index.ts +27 -0
  18. package/addon/plugins/snippet-plugin/utils/fetch-data.ts +96 -0
  19. package/addon/plugins/variable-plugin/nodes.ts +15 -11
  20. package/addon/plugins/variable-plugin/utils/fetch-data.ts +6 -6
  21. package/addon/utils/sparql-helpers.ts +28 -6
  22. package/addon/utils/strings.ts +34 -0
  23. package/addon/utils/types.ts +3 -0
  24. package/app/components/pagination/pagination-view.js +1 -0
  25. package/app/components/snippet-plugin/helpers/alert-load-error.js +1 -0
  26. package/app/components/snippet-plugin/helpers/alert-no-items.js +1 -0
  27. package/app/components/snippet-plugin/search-modal.js +1 -0
  28. package/app/components/snippet-plugin/snippet-insert.js +1 -0
  29. package/app/components/snippet-plugin/snippets/snippet-list.js +1 -0
  30. package/app/components/snippet-plugin/snippets/snippet-preview.js +1 -0
  31. package/app/helpers/pagination.js +4 -0
  32. package/app/styles/snippet-plugin.scss +66 -0
  33. package/components/besluit-type-plugin/toolbar-dropdown.d.ts +1 -1
  34. package/components/citation-plugin/citations/search-modal.d.ts +0 -4
  35. package/components/snippet-plugin/search-modal.d.ts +22 -0
  36. package/components/snippet-plugin/snippet-insert.d.ts +16 -0
  37. package/components/snippet-plugin/snippets/snippet-preview.d.ts +14 -0
  38. package/helpers/pagination.d.ts +25 -0
  39. package/package.json +5 -5
  40. package/plugins/snippet-plugin/index.d.ts +16 -0
  41. package/plugins/snippet-plugin/utils/fetch-data.d.ts +18 -0
  42. package/plugins/table-of-contents-plugin/nodes/table-of-contents.d.ts +1 -1
  43. package/plugins/variable-plugin/nodes.d.ts +3 -3
  44. package/translations/en-US.yaml +23 -0
  45. package/translations/nl-BE.yaml +24 -1
  46. package/tsconfig.json +5 -13
  47. package/utils/sparql-helpers.d.ts +11 -4
  48. package/utils/strings.d.ts +2 -0
  49. package/utils/types.d.ts +2 -0
@@ -1,7 +1,14 @@
1
1
  import * as RDF from '@rdfjs/types';
2
- export type QueryResult = {
2
+ export interface QueryResult<Binding = Record<string, RDF.Term>> {
3
3
  results: {
4
- bindings: Record<string, RDF.Term>[];
4
+ bindings: Binding[];
5
5
  };
6
- };
7
- export declare function executeQuery(endpoint: string, query: string): Promise<QueryResult>;
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 {};
@@ -0,0 +1,2 @@
1
+ export declare function escapeValue(value?: string): string | null;
2
+ export declare function dateValue(value?: string): string | null;
@@ -0,0 +1,2 @@
1
+ import { htmlSafe } from '@ember/template';
2
+ export type SafeString = ReturnType<typeof htmlSafe>;