@lblod/ember-rdfa-editor-lblod-plugins 16.3.0 → 17.0.0-dev.f473cdfb5868261b49cdae52ea2558970c082d01

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 (418) hide show
  1. package/.changeset/afraid-tips-visit.md +5 -0
  2. package/.changeset/chilly-ravens-think.md +6 -0
  3. package/.changeset/hot-owls-laugh.md +5 -0
  4. package/.changeset/olive-pets-cheer.md +5 -0
  5. package/.changeset/smooth-fireants-doubt.md +5 -0
  6. package/.changeset/tall-carrots-ring.md +5 -0
  7. package/.changeset/wet-baboons-serve.md +5 -0
  8. package/.changeset/witty-suns-speak.md +5 -0
  9. package/.woodpecker/.release-commit.yml +18 -0
  10. package/.woodpecker/.release.yml +21 -0
  11. package/.woodpecker/.verify-pr.yml +30 -0
  12. package/CHANGELOG.md +20 -0
  13. package/Dockerfile +6 -4
  14. package/addon/commands/index.ts +1 -0
  15. package/addon/commands/replace-selection-and-select-node.ts +24 -0
  16. package/addon/components/article-structure-plugin/article-structure-card.hbs +2 -1
  17. package/addon/components/article-structure-plugin/article-structure-card.ts +2 -0
  18. package/addon/components/article-structure-plugin/structure-card.hbs +7 -6
  19. package/addon/components/article-structure-plugin/structure-card.ts +49 -35
  20. package/addon/components/au-native-input.hbs +1 -0
  21. package/addon/components/au-native-input.ts +2 -1
  22. package/addon/components/besluit-type-plugin/besluit-type-select.hbs +3 -2
  23. package/addon/components/besluit-type-plugin/besluit-type-select.ts +4 -0
  24. package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +5 -4
  25. package/addon/components/besluit-type-plugin/toolbar-dropdown.ts +48 -20
  26. package/addon/components/citation-plugin/citation-card.hbs +4 -3
  27. package/addon/components/citation-plugin/citation-card.ts +9 -2
  28. package/addon/components/citation-plugin/citation-insert.hbs +2 -1
  29. package/addon/components/citation-plugin/citation-insert.ts +3 -0
  30. package/addon/components/citation-plugin/citations/article-list.hbs +2 -2
  31. package/addon/components/citation-plugin/citations/article-preview.hbs +3 -2
  32. package/addon/components/citation-plugin/citations/article-preview.ts +2 -0
  33. package/addon/components/citation-plugin/citations/legal-document-detail.hbs +19 -11
  34. package/addon/components/citation-plugin/citations/legal-document-detail.ts +18 -1
  35. package/addon/components/citation-plugin/citations/legal-document-list.hbs +2 -2
  36. package/addon/components/citation-plugin/citations/legal-document-preview.hbs +10 -9
  37. package/addon/components/citation-plugin/citations/legal-document-preview.ts +9 -0
  38. package/addon/components/citation-plugin/citations/search-modal.hbs +7 -8
  39. package/addon/components/citation-plugin/citations/search-modal.ts +3 -0
  40. package/addon/components/common/search/alert-load-error.gts +34 -0
  41. package/addon/components/common/search/alert-no-items.gts +18 -0
  42. package/addon/components/common/search/loading.hbs +4 -0
  43. package/addon/components/confidentiality-plugin/redact.gts +13 -0
  44. package/addon/components/decision-plugin/decision-plugin-card.hbs +4 -3
  45. package/addon/components/decision-plugin/decision-plugin-card.ts +3 -0
  46. package/addon/components/document-title-plugin/insert-title-card.hbs +8 -1
  47. package/addon/components/document-title-plugin/insert-title-card.ts +3 -0
  48. package/addon/components/generic-rdfa-variable/insert-menu.hbs +2 -1
  49. package/addon/components/generic-rdfa-variable/insert-menu.ts +3 -1
  50. package/addon/components/hover-tooltip.hbs +1 -0
  51. package/addon/components/import-snippet-plugin/card.hbs +1 -0
  52. package/addon/components/import-snippet-plugin/card.ts +7 -2
  53. package/addon/components/loading-alert.hbs +2 -1
  54. package/addon/components/loading-alert.ts +5 -2
  55. package/addon/components/pagination/pagination-view.gts +55 -0
  56. package/addon/components/roadsign-regulation-plugin/expanded-measure.hbs +28 -37
  57. package/addon/components/roadsign-regulation-plugin/expanded-measure.ts +4 -13
  58. package/addon/components/roadsign-regulation-plugin/measure-template.hbs +1 -0
  59. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +2 -1
  60. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.ts +3 -0
  61. package/addon/components/roadsign-regulation-plugin/roadsigns-modal.hbs +1 -0
  62. package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.hbs +9 -4
  63. package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.ts +5 -0
  64. package/addon/components/roadsign-regulation-plugin/roadsigns-table.hbs +7 -6
  65. package/addon/components/roadsign-regulation-plugin/roadsigns-table.ts +5 -0
  66. package/addon/components/snippet-plugin/search-modal.hbs +5 -6
  67. package/addon/components/snippet-plugin/snippet-insert-rdfa.hbs +7 -0
  68. package/addon/components/snippet-plugin/snippet-insert-rdfa.ts +78 -0
  69. package/addon/components/snippet-plugin/snippet-insert.hbs +3 -1
  70. package/addon/components/snippet-plugin/snippet-insert.ts +25 -4
  71. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +4 -6
  72. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.ts +3 -3
  73. package/addon/components/snippet-plugin/snippet-list/snippet-list-view.hbs +3 -2
  74. package/addon/components/snippet-plugin/snippet-list-select-rdfa.hbs +8 -0
  75. package/addon/components/snippet-plugin/snippet-list-select-rdfa.ts +69 -0
  76. package/addon/components/snippet-plugin/snippet-list-select.hbs +2 -1
  77. package/addon/components/snippet-plugin/snippet-list-select.ts +2 -1
  78. package/addon/components/snippet-plugin/snippets/snippet-preview.hbs +1 -0
  79. package/addon/components/standard-template-plugin/card.hbs +2 -1
  80. package/addon/components/standard-template-plugin/card.ts +2 -0
  81. package/addon/components/standard-template-plugin/template-provider.hbs +1 -0
  82. package/addon/components/standard-template-plugin/template-provider.ts +10 -4
  83. package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.hbs +1 -0
  84. package/addon/components/table-of-contents-plugin/toolbar-button.hbs +1 -0
  85. package/addon/components/template-comments-plugin/edit-card.hbs +4 -3
  86. package/addon/components/template-comments-plugin/edit-card.ts +7 -0
  87. package/addon/components/template-comments-plugin/insert.hbs +2 -1
  88. package/addon/components/template-comments-plugin/insert.ts +3 -0
  89. package/addon/components/template-comments-plugin/template-comment.hbs +2 -1
  90. package/addon/components/template-comments-plugin/template-comment.ts +3 -0
  91. package/addon/components/validation-plugin/validation-card.hbs +1 -0
  92. package/addon/components/validation-plugin/validation-item.hbs +1 -0
  93. package/addon/components/validation-plugin/validation-item.ts +7 -4
  94. package/addon/components/variable-plugin/address/edit.hbs +1 -0
  95. package/addon/components/variable-plugin/address/edit.ts +5 -3
  96. package/addon/components/variable-plugin/address/insert-variable.hbs +1 -0
  97. package/addon/components/variable-plugin/address/insert.hbs +3 -2
  98. package/addon/components/variable-plugin/address/insert.ts +3 -0
  99. package/addon/components/variable-plugin/address/nodeview.hbs +4 -3
  100. package/addon/components/variable-plugin/address/nodeview.ts +9 -0
  101. package/addon/components/variable-plugin/address/utils.ts +28 -3
  102. package/addon/components/variable-plugin/codelist/edit.hbs +1 -0
  103. package/addon/components/variable-plugin/codelist/edit.ts +24 -7
  104. package/addon/components/variable-plugin/codelist/insert.hbs +1 -0
  105. package/addon/components/variable-plugin/codelist/insert.ts +52 -17
  106. package/addon/components/variable-plugin/date/date-time-picker.hbs +1 -0
  107. package/addon/components/variable-plugin/date/edit.hbs +27 -31
  108. package/addon/components/variable-plugin/date/edit.ts +47 -8
  109. package/addon/components/variable-plugin/date/help-modal.hbs +1 -0
  110. package/addon/components/variable-plugin/date/insert-variable.hbs +1 -0
  111. package/addon/components/variable-plugin/date/insert-variable.ts +36 -10
  112. package/addon/components/variable-plugin/date/insert.hbs +2 -1
  113. package/addon/components/variable-plugin/date/insert.ts +38 -10
  114. package/addon/components/variable-plugin/date/nodeview.hbs +4 -3
  115. package/addon/components/variable-plugin/date/nodeview.ts +11 -1
  116. package/addon/components/variable-plugin/insert-variable-card.hbs +1 -0
  117. package/addon/components/variable-plugin/insert-variable-card.ts +9 -1
  118. package/addon/components/variable-plugin/location/edit.hbs +1 -0
  119. package/addon/components/variable-plugin/location/edit.ts +1 -9
  120. package/addon/components/variable-plugin/location/insert.hbs +1 -0
  121. package/addon/components/variable-plugin/location/insert.ts +4 -7
  122. package/addon/components/variable-plugin/location/nodeview.hbs +19 -8
  123. package/addon/components/variable-plugin/location/nodeview.ts +37 -9
  124. package/addon/components/variable-plugin/number/insert.hbs +1 -0
  125. package/addon/components/variable-plugin/number/insert.ts +34 -10
  126. package/addon/components/variable-plugin/number/nodeview.hbs +7 -5
  127. package/addon/components/variable-plugin/number/nodeview.ts +32 -5
  128. package/addon/components/variable-plugin/text/insert.hbs +1 -0
  129. package/addon/components/variable-plugin/text/insert.ts +40 -12
  130. package/addon/components/variable-plugin/variable/nodeview.hbs +12 -8
  131. package/addon/components/variable-plugin/variable/nodeview.ts +16 -9
  132. package/addon/components/worship-plugin/administrative-unit-picker.hbs +16 -0
  133. package/addon/components/worship-plugin/administrative-unit-picker.ts +38 -0
  134. package/addon/components/worship-plugin/insert.hbs +18 -0
  135. package/addon/components/worship-plugin/insert.ts +41 -0
  136. package/addon/components/worship-plugin/list.hbs +46 -0
  137. package/addon/components/worship-plugin/search-modal.hbs +79 -0
  138. package/addon/components/worship-plugin/search-modal.ts +131 -0
  139. package/addon/components/worship-plugin/sortable-table-header.hbs +36 -0
  140. package/addon/components/worship-plugin/sortable-table-header.ts +45 -0
  141. package/addon/plugins/article-structure-plugin/commands/insert-structure.ts +82 -15
  142. package/addon/plugins/article-structure-plugin/commands/move-selected-structure.ts +2 -1
  143. package/addon/plugins/article-structure-plugin/commands/recalculate-structure-numbers.ts +70 -2
  144. package/addon/plugins/article-structure-plugin/commands/remove-structure.ts +1 -1
  145. package/addon/plugins/article-structure-plugin/commands/set-structure-start-number.ts +5 -14
  146. package/addon/plugins/article-structure-plugin/commands/unwrap-structure.ts +1 -1
  147. package/addon/plugins/article-structure-plugin/commands/wrap-structure-content.ts +197 -105
  148. package/addon/plugins/article-structure-plugin/index.ts +16 -7
  149. package/addon/plugins/article-structure-plugin/structures/article-paragraph.ts +181 -71
  150. package/addon/plugins/article-structure-plugin/structures/article.ts +91 -98
  151. package/addon/plugins/article-structure-plugin/structures/chapter.ts +89 -39
  152. package/addon/plugins/article-structure-plugin/structures/index.ts +12 -1
  153. package/addon/plugins/article-structure-plugin/structures/section.ts +88 -39
  154. package/addon/plugins/article-structure-plugin/structures/structure-header-number.ts +56 -0
  155. package/addon/plugins/article-structure-plugin/structures/structure-header-title.ts +38 -0
  156. package/addon/plugins/article-structure-plugin/structures/structure-header.ts +87 -73
  157. package/addon/plugins/article-structure-plugin/structures/subsection.ts +81 -39
  158. package/addon/plugins/article-structure-plugin/structures/title.ts +91 -39
  159. package/addon/plugins/article-structure-plugin/utils/structure.ts +223 -127
  160. package/addon/plugins/citation-plugin/utils/cited-text.ts +38 -8
  161. package/addon/plugins/confidentiality-plugin/marks/redacted.ts +1 -1
  162. package/addon/plugins/document-title-plugin/nodes/document-title.ts +4 -3
  163. package/addon/plugins/roadsign-regulation-plugin/nodes.ts +4 -3
  164. package/addon/plugins/snippet-plugin/commands/index.ts +1 -0
  165. package/addon/plugins/snippet-plugin/commands/update-snippet-ids.ts +55 -0
  166. package/addon/plugins/snippet-plugin/index.ts +6 -1
  167. package/addon/plugins/snippet-plugin/utils/fetch-data.ts +1 -3
  168. package/addon/plugins/snippet-plugin/utils/rdfa-predicate.ts +33 -0
  169. package/addon/plugins/standard-template-plugin/utils/nodes.ts +293 -81
  170. package/addon/plugins/table-of-contents-plugin/nodes/table-of-contents.ts +3 -2
  171. package/addon/plugins/variable-plugin/utils/attribute-parsers.ts +19 -1
  172. package/addon/plugins/variable-plugin/utils/dom-constructors.ts +3 -3
  173. package/addon/plugins/variable-plugin/variables/address.ts +93 -26
  174. package/addon/plugins/variable-plugin/variables/codelist.ts +99 -50
  175. package/addon/plugins/variable-plugin/variables/date.ts +143 -53
  176. package/addon/plugins/variable-plugin/variables/location.ts +1 -0
  177. package/addon/plugins/variable-plugin/variables/number.ts +99 -52
  178. package/addon/plugins/variable-plugin/variables/text.ts +80 -28
  179. package/addon/plugins/worship-plugin/index.ts +9 -0
  180. package/addon/plugins/worship-plugin/utils/fetchAdministrativeUnits.ts +52 -0
  181. package/addon/plugins/worship-plugin/utils/fetchWorshipServices.ts +109 -0
  182. package/addon/plugins/worship-plugin/utils/insertWorshipService.ts +16 -0
  183. package/addon/utils/_private/find-insertion-range.ts +18 -5
  184. package/addon/utils/dom-utils.ts +4 -0
  185. package/addon/utils/namespace.ts +63 -13
  186. package/addon/utils/sparql-helpers.ts +8 -0
  187. package/app/components/{citation-plugin/helpers/alert-no-items.js → common/search/alert-load-error.js} +1 -1
  188. package/app/components/{snippet-plugin/helpers → common/search}/alert-no-items.js +1 -1
  189. package/app/components/{snippet-plugin/helpers/alert-load-error.js → common/search/loading.js} +1 -1
  190. package/app/components/{citation-plugin/helpers/alert-load-error.js → snippet-plugin/snippet-list-insert-rdfa.js} +1 -1
  191. package/app/components/snippet-plugin/snippet-list-select-rdfa.js +1 -0
  192. package/app/components/worship-plugin/administrative-unit-picker.js +1 -0
  193. package/app/components/worship-plugin/insert.js +1 -0
  194. package/app/components/worship-plugin/list.js +1 -0
  195. package/app/components/worship-plugin/search-modal.js +1 -0
  196. package/app/components/worship-plugin/sortable-table-header.js +1 -0
  197. package/app/styles/article-structure-plugin.scss +106 -3
  198. package/app/styles/citaten-plugin.scss +1 -1
  199. package/app/styles/snippet-plugin.scss +1 -1
  200. package/app/styles/worship-plugin.scss +19 -0
  201. package/declarations/addon/commands/index.d.ts +1 -0
  202. package/declarations/addon/commands/replace-selection-and-select-node.d.ts +3 -0
  203. package/{components → declarations/addon/components}/article-structure-plugin/article-structure-card.d.ts +1 -0
  204. package/{components → declarations/addon/components}/article-structure-plugin/structure-card.d.ts +5 -2
  205. package/{components → declarations/addon/components}/au-native-input.d.ts +2 -1
  206. package/{components → declarations/addon/components}/besluit-type-plugin/besluit-type-select.d.ts +1 -0
  207. package/{components → declarations/addon/components}/besluit-type-plugin/toolbar-dropdown.d.ts +4 -5
  208. package/{components → declarations/addon/components}/citation-plugin/citation-card.d.ts +3 -2
  209. package/{components → declarations/addon/components}/citation-plugin/citation-insert.d.ts +1 -0
  210. package/declarations/addon/components/citation-plugin/citations/article-list.d.ts +1 -0
  211. package/{components → declarations/addon/components}/citation-plugin/citations/article-preview.d.ts +2 -1
  212. package/{components → declarations/addon/components}/citation-plugin/citations/legal-document-detail.d.ts +8 -1
  213. package/declarations/addon/components/citation-plugin/citations/legal-document-list.d.ts +1 -0
  214. package/declarations/addon/components/citation-plugin/citations/legal-document-preview.d.ts +14 -0
  215. package/{components → declarations/addon/components}/citation-plugin/citations/search-modal.d.ts +1 -0
  216. package/declarations/addon/components/common/search/alert-load-error.d.ts +4 -0
  217. package/declarations/addon/components/common/search/alert-no-items.d.ts +4 -0
  218. package/declarations/addon/components/common/search/loading.d.ts +1 -0
  219. package/declarations/addon/components/confidentiality-plugin/redact.d.ts +4 -0
  220. package/declarations/addon/components/confidentiality-plugin/toolbar.d.ts +1 -0
  221. package/{components → declarations/addon/components}/decision-plugin/decision-plugin-card.d.ts +1 -0
  222. package/{components → declarations/addon/components}/document-title-plugin/insert-title-card.d.ts +1 -0
  223. package/{components → declarations/addon/components}/generic-rdfa-variable/insert-menu.d.ts +1 -0
  224. package/{components → declarations/addon/components}/import-snippet-plugin/card.d.ts +6 -5
  225. package/{components → declarations/addon/components}/loading-alert.d.ts +1 -0
  226. package/declarations/addon/components/pagination/pagination-view.d.ts +4 -0
  227. package/{components → declarations/addon/components}/roadsign-regulation-plugin/expanded-measure.d.ts +2 -2
  228. package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsign-regulation-card.d.ts +1 -0
  229. package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsigns-pagination.d.ts +2 -0
  230. package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsigns-table.d.ts +2 -0
  231. package/declarations/addon/components/snippet-plugin/snippet-insert-rdfa.d.ts +19 -0
  232. package/{components → declarations/addon/components}/snippet-plugin/snippet-insert.d.ts +3 -0
  233. package/declarations/addon/components/snippet-plugin/snippet-list-select-rdfa.d.ts +21 -0
  234. package/{components → declarations/addon/components}/snippet-plugin/snippet-list-select.d.ts +1 -0
  235. package/declarations/addon/components/snippet-plugin/snippets/snippet-list.d.ts +1 -0
  236. package/{components → declarations/addon/components}/standard-template-plugin/card.d.ts +1 -0
  237. package/declarations/addon/components/table-of-contents-plugin/ember-nodes/outline.d.ts +1 -0
  238. package/{components → declarations/addon/components}/template-comments-plugin/edit-card.d.ts +3 -0
  239. package/{components → declarations/addon/components}/template-comments-plugin/insert.d.ts +1 -0
  240. package/{components → declarations/addon/components}/template-comments-plugin/template-comment.d.ts +1 -0
  241. package/{components → declarations/addon/components}/validation-plugin/validation-item.d.ts +2 -2
  242. package/{components → declarations/addon/components}/variable-plugin/address/edit.d.ts +2 -2
  243. package/{components → declarations/addon/components}/variable-plugin/address/insert.d.ts +1 -0
  244. package/{components → declarations/addon/components}/variable-plugin/address/nodeview.d.ts +2 -0
  245. package/{components → declarations/addon/components}/variable-plugin/date/edit.d.ts +4 -2
  246. package/{components → declarations/addon/components}/variable-plugin/date/insert.d.ts +1 -0
  247. package/{components → declarations/addon/components}/variable-plugin/date/nodeview.d.ts +2 -0
  248. package/{components → declarations/addon/components}/variable-plugin/insert-variable-card.d.ts +9 -1
  249. package/{components → declarations/addon/components}/variable-plugin/location/edit.d.ts +0 -1
  250. package/declarations/addon/components/variable-plugin/location/nodeview.d.ts +11 -0
  251. package/{components → declarations/addon/components}/variable-plugin/number/nodeview.d.ts +4 -1
  252. package/{components → declarations/addon/components}/variable-plugin/text/insert.d.ts +1 -1
  253. package/declarations/addon/components/variable-plugin/utils/label-input.d.ts +1 -0
  254. package/declarations/addon/components/variable-plugin/variable/nodeview.d.ts +11 -0
  255. package/declarations/addon/components/worship-plugin/administrative-unit-picker.d.ts +12 -0
  256. package/declarations/addon/components/worship-plugin/insert.d.ts +17 -0
  257. package/declarations/addon/components/worship-plugin/list.d.ts +1 -0
  258. package/declarations/addon/components/worship-plugin/search-modal.d.ts +30 -0
  259. package/declarations/addon/components/worship-plugin/sortable-table-header.d.ts +16 -0
  260. package/declarations/addon/plugins/article-structure-plugin/commands/recalculate-structure-numbers.d.ts +3 -0
  261. package/declarations/addon/plugins/article-structure-plugin/commands/set-structure-start-number.d.ts +7 -0
  262. package/{plugins → declarations/addon/plugins}/article-structure-plugin/index.d.ts +15 -7
  263. package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/article-paragraph.d.ts +2 -0
  264. package/declarations/addon/plugins/article-structure-plugin/structures/article.d.ts +5 -0
  265. package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/index.d.ts +4 -0
  266. package/declarations/addon/plugins/article-structure-plugin/structures/structure-header-number.d.ts +2 -0
  267. package/declarations/addon/plugins/article-structure-plugin/structures/structure-header-title.d.ts +2 -0
  268. package/declarations/addon/plugins/article-structure-plugin/structures/structure-header.d.ts +17 -0
  269. package/declarations/addon/plugins/article-structure-plugin/utils/structure.d.ts +42 -0
  270. package/declarations/addon/plugins/confidentiality-plugin/marks/redacted.d.ts +2 -0
  271. package/declarations/addon/plugins/snippet-plugin/commands/index.d.ts +1 -0
  272. package/declarations/addon/plugins/snippet-plugin/commands/update-snippet-ids.d.ts +8 -0
  273. package/{plugins → declarations/addon/plugins}/snippet-plugin/index.d.ts +2 -0
  274. package/declarations/addon/plugins/snippet-plugin/utils/rdfa-predicate.d.ts +5 -0
  275. package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/nodes/table-of-contents.d.ts +1 -1
  276. package/{plugins → declarations/addon/plugins}/template-comments-plugin/node.d.ts +1 -1
  277. package/{plugins → declarations/addon/plugins}/variable-plugin/utils/attribute-parsers.d.ts +3 -0
  278. package/{plugins → declarations/addon/plugins}/variable-plugin/variables/address.d.ts +1 -1
  279. package/{plugins → declarations/addon/plugins}/variable-plugin/variables/codelist.d.ts +1 -1
  280. package/{plugins → declarations/addon/plugins}/variable-plugin/variables/date.d.ts +1 -1
  281. package/{plugins → declarations/addon/plugins}/variable-plugin/variables/location.d.ts +1 -1
  282. package/{plugins → declarations/addon/plugins}/variable-plugin/variables/number.d.ts +1 -1
  283. package/{plugins → declarations/addon/plugins}/variable-plugin/variables/text.d.ts +1 -1
  284. package/declarations/addon/plugins/worship-plugin/index.d.ts +8 -0
  285. package/declarations/addon/plugins/worship-plugin/utils/fetchAdministrativeUnits.d.ts +7 -0
  286. package/declarations/addon/plugins/worship-plugin/utils/fetchWorshipServices.d.ts +23 -0
  287. package/declarations/addon/plugins/worship-plugin/utils/insertWorshipService.d.ts +3 -0
  288. package/declarations/addon/serializers/application.d.ts +3 -0
  289. package/{services → declarations/addon/services}/import-rdfa-snippet.d.ts +2 -0
  290. package/{utils → declarations/addon/utils}/_private/find-insertion-range.d.ts +7 -4
  291. package/declarations/addon/utils/dom-utils.d.ts +2 -0
  292. package/declarations/addon/utils/namespace.d.ts +21 -0
  293. package/{utils → declarations/addon/utils}/sparql-helpers.d.ts +4 -0
  294. package/package.json +54 -19
  295. package/pnpm-lock.yaml +17788 -0
  296. package/scripts/generate-type-declarations.sh +16 -0
  297. package/translations/en-US.yaml +27 -12
  298. package/translations/nl-BE.yaml +27 -12
  299. package/tsconfig.declarations.json +15 -0
  300. package/tsconfig.json +7 -57
  301. package/tsconfig.main.json +62 -0
  302. package/types/ember-intl.d.ts +15 -0
  303. package/types/graphy/memory.dataset.fast.d.ts +74 -0
  304. package/.woodpecker/.test.yml +0 -49
  305. package/addon/components/citation-plugin/helpers/alert-load-error.hbs +0 -21
  306. package/addon/components/citation-plugin/helpers/alert-no-items.hbs +0 -10
  307. package/addon/components/confidentiality-plugin/redact.hbs +0 -6
  308. package/addon/components/pagination/pagination-view.hbs +0 -39
  309. package/addon/components/snippet-plugin/helpers/alert-load-error.hbs +0 -22
  310. package/addon/components/snippet-plugin/helpers/alert-no-items.hbs +0 -8
  311. package/components/citation-plugin/citations/legal-document-preview.d.ts +0 -10
  312. package/components/variable-plugin/location/nodeview.d.ts +0 -12
  313. package/components/variable-plugin/variable/nodeview.d.ts +0 -11
  314. package/plugins/article-structure-plugin/commands/recalculate-structure-numbers.d.ts +0 -3
  315. package/plugins/article-structure-plugin/commands/set-structure-start-number.d.ts +0 -4
  316. package/plugins/article-structure-plugin/structures/article.d.ts +0 -6
  317. package/plugins/article-structure-plugin/structures/structure-header.d.ts +0 -2
  318. package/plugins/article-structure-plugin/utils/structure.d.ts +0 -36
  319. package/plugins/confidentiality-plugin/marks/redacted.d.ts +0 -2
  320. package/utils/namespace.d.ts +0 -12
  321. package/{components → declarations/addon/components}/hover-tooltip.d.ts +0 -0
  322. package/{components → declarations/addon/components}/roadsign-regulation-plugin/measure-template.d.ts +0 -0
  323. package/{components → declarations/addon/components}/roadsign-regulation-plugin/roadsigns-modal.d.ts +0 -0
  324. package/{components → declarations/addon/components}/snippet-plugin/search-modal.d.ts +0 -0
  325. package/{components → declarations/addon/components}/snippet-plugin/snippet-list/snippet-list-modal.d.ts +0 -0
  326. package/{components → declarations/addon/components}/snippet-plugin/snippet-list/snippet-list-view.d.ts +0 -0
  327. package/{components → declarations/addon/components}/snippet-plugin/snippets/snippet-preview.d.ts +0 -0
  328. package/{components → declarations/addon/components}/standard-template-plugin/template-provider.d.ts +0 -0
  329. package/{components → declarations/addon/components}/table-of-contents-plugin/ember-nodes/table-of-contents.d.ts +0 -0
  330. package/{components → declarations/addon/components}/table-of-contents-plugin/toolbar-button.d.ts +0 -0
  331. package/{components → declarations/addon/components}/validation-plugin/validation-card.d.ts +0 -0
  332. package/{components → declarations/addon/components}/variable-plugin/address/insert-variable.d.ts +0 -0
  333. package/{components → declarations/addon/components}/variable-plugin/address/utils.d.ts +0 -0
  334. package/{components → declarations/addon/components}/variable-plugin/codelist/edit.d.ts +0 -0
  335. package/{components → declarations/addon/components}/variable-plugin/codelist/insert.d.ts +0 -0
  336. package/{components → declarations/addon/components}/variable-plugin/date/date-time-picker.d.ts +0 -0
  337. package/{components → declarations/addon/components}/variable-plugin/date/help-modal.d.ts +0 -0
  338. package/{components → declarations/addon/components}/variable-plugin/date/insert-variable.d.ts +0 -0
  339. package/{components → declarations/addon/components}/variable-plugin/location/insert.d.ts +0 -0
  340. package/{components → declarations/addon/components}/variable-plugin/number/insert.d.ts +0 -0
  341. package/{helpers → declarations/addon/helpers}/capitalize.d.ts +0 -0
  342. package/{helpers → declarations/addon/helpers}/in-array.d.ts +0 -0
  343. package/{helpers → declarations/addon/helpers}/limit-text.d.ts +0 -0
  344. package/{helpers → declarations/addon/helpers}/pagination.d.ts +0 -0
  345. package/{models → declarations/addon/models}/instruction.d.ts +0 -0
  346. package/{models → declarations/addon/models}/measure.d.ts +0 -0
  347. package/{models → declarations/addon/models}/sign.d.ts +0 -0
  348. package/{models → declarations/addon/models}/template.d.ts +0 -0
  349. package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/index.d.ts +0 -0
  350. package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/insert-structure.d.ts +0 -0
  351. package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/move-selected-structure.d.ts +0 -0
  352. package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/remove-structure.d.ts +0 -0
  353. package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/unwrap-structure.d.ts +0 -0
  354. package/{plugins → declarations/addon/plugins}/article-structure-plugin/commands/wrap-structure-content.d.ts +1 -1
  355. /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/chapter.d.ts +0 -0
  356. /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/section.d.ts +0 -0
  357. /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/subsection.d.ts +0 -0
  358. /package/{plugins → declarations/addon/plugins}/article-structure-plugin/structures/title.d.ts +0 -0
  359. /package/{plugins → declarations/addon/plugins}/article-structure-plugin/utils/romanize.d.ts +0 -0
  360. /package/{plugins → declarations/addon/plugins}/besluit-type-plugin/index.d.ts +0 -0
  361. /package/{plugins → declarations/addon/plugins}/besluit-type-plugin/utils/fetchBesluitTypes.d.ts +0 -0
  362. /package/{plugins → declarations/addon/plugins}/citation-plugin/index.d.ts +0 -0
  363. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/article.d.ts +0 -0
  364. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/cache.d.ts +0 -0
  365. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/cited-text.d.ts +0 -0
  366. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/legal-documents.d.ts +0 -0
  367. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/process-match.d.ts +0 -0
  368. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/public-decisions.d.ts +0 -0
  369. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/types.d.ts +0 -0
  370. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/utils.d.ts +0 -0
  371. /package/{plugins → declarations/addon/plugins}/citation-plugin/utils/vlaamse-codex.d.ts +0 -0
  372. /package/{plugins → declarations/addon/plugins}/confidentiality-plugin/index.d.ts +0 -0
  373. /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/index.d.ts +0 -0
  374. /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-article-container.d.ts +0 -0
  375. /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-description.d.ts +0 -0
  376. /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-motivation.d.ts +0 -0
  377. /package/{plugins → declarations/addon/plugins}/decision-plugin/commands/insert-title.d.ts +0 -0
  378. /package/{plugins → declarations/addon/plugins}/decision-plugin/utils/get-title-for-decision.d.ts +0 -0
  379. /package/{plugins → declarations/addon/plugins}/decision-plugin/utils/validation-rules.d.ts +0 -0
  380. /package/{plugins → declarations/addon/plugins}/document-title-plugin/commands/insert-document-title.d.ts +0 -0
  381. /package/{plugins → declarations/addon/plugins}/document-title-plugin/nodes/document-title.d.ts +0 -0
  382. /package/{plugins → declarations/addon/plugins}/document-title-plugin/nodes/index.d.ts +0 -0
  383. /package/{plugins → declarations/addon/plugins}/generic-rdfa-variable/commands/index.d.ts +0 -0
  384. /package/{plugins → declarations/addon/plugins}/generic-rdfa-variable/commands/insert-generic-rdfa.d.ts +0 -0
  385. /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/index.d.ts +0 -0
  386. /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/nodes.d.ts +0 -0
  387. /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/utils/constants.d.ts +0 -0
  388. /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/utils/fetchData.d.ts +0 -0
  389. /package/{plugins → declarations/addon/plugins}/roadsign-regulation-plugin/utils/includeInstructions.d.ts +0 -0
  390. /package/{plugins → declarations/addon/plugins}/snippet-plugin/utils/fetch-data.d.ts +0 -0
  391. /package/{plugins → declarations/addon/plugins}/standard-template-plugin/index.d.ts +0 -0
  392. /package/{plugins → declarations/addon/plugins}/standard-template-plugin/utils/instantiate-uuids.d.ts +0 -0
  393. /package/{plugins → declarations/addon/plugins}/standard-template-plugin/utils/nodes.d.ts +0 -0
  394. /package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/index.d.ts +0 -0
  395. /package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/nodes/index.d.ts +0 -0
  396. /package/{plugins → declarations/addon/plugins}/table-of-contents-plugin/utils/index.d.ts +0 -0
  397. /package/{plugins → declarations/addon/plugins}/template-comments-plugin/index.d.ts +0 -0
  398. /package/{plugins → declarations/addon/plugins}/validation/index.d.ts +0 -0
  399. /package/{plugins → declarations/addon/plugins}/validation/utils/transaction-complies-with-shapes.d.ts +0 -0
  400. /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/address-helpers.d.ts +0 -0
  401. /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/codelist-utils.d.ts +0 -0
  402. /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/constants.d.ts +0 -0
  403. /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/date-helpers.d.ts +0 -0
  404. /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/dom-constructors.d.ts +0 -0
  405. /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/fetch-data.d.ts +0 -0
  406. /package/{plugins → declarations/addon/plugins}/variable-plugin/utils/number-to-words.d.ts +0 -0
  407. /package/{plugins → declarations/addon/plugins}/variable-plugin/variables/index.d.ts +0 -0
  408. /package/{services → declarations/addon/services}/roadsign-registry.d.ts +0 -0
  409. /package/{utils → declarations/addon/utils}/changed-descendants.d.ts +0 -0
  410. /package/{utils → declarations/addon/utils}/constants.d.ts +0 -0
  411. /package/{utils → declarations/addon/utils}/dom-output-spec-helpers.d.ts +0 -0
  412. /package/{utils → declarations/addon/utils}/find-insertion-contentmatch.d.ts +0 -0
  413. /package/{utils → declarations/addon/utils}/find-insertion-pos-in-ancestor-of-type.d.ts +0 -0
  414. /package/{utils → declarations/addon/utils}/memoize.d.ts +0 -0
  415. /package/{utils → declarations/addon/utils}/option.d.ts +0 -0
  416. /package/{utils → declarations/addon/utils}/strings.d.ts +0 -0
  417. /package/{utils → declarations/addon/utils}/translation.d.ts +0 -0
  418. /package/{utils → declarations/addon/utils}/types.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': patch
3
+ ---
4
+
5
+ Remove `@import "ember-appuniversum"` statements from plugin sass modules in order to prevent style overrding.
@@ -0,0 +1,6 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': minor
3
+ ---
4
+
5
+ - Addition of the `say-template-comment` class to the static version of template comments.
6
+ - Addition of some extra styles to the `say-template-comment` class.
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': patch
3
+ ---
4
+
5
+ GN-4650: Fix behavior of "Insert snippet" button
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': minor
3
+ ---
4
+
5
+ GN-4650: Snippet selection placeholder in template
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': minor
3
+ ---
4
+
5
+ Add helper function to help with locale selection and add translation note to readme
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': patch
3
+ ---
4
+
5
+ Fix template-comment padding
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@lblod/ember-rdfa-editor-lblod-plugins": minor
3
+ ---
4
+
5
+ Ensure that variables are node-selected/focused after insertion
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@lblod/ember-rdfa-editor-lblod-plugins": patch
3
+ ---
4
+
5
+ Allow to insert structure even if insertion range does not have RDFA attributes.
@@ -0,0 +1,18 @@
1
+ steps:
2
+ install:
3
+ image: node:20-slim
4
+ commands:
5
+ - corepack enable
6
+ - pnpm i --frozen-lockfile
7
+ version:
8
+ image: node:20-slim
9
+ commands:
10
+ - npm version --no-git-tag-version $(npm pkg get version | sed 's/"//g')-dev.${CI_COMMIT_SHA}
11
+ release:
12
+ image: plugins/npm
13
+ settings:
14
+ token:
15
+ from_secret: npm_access_token
16
+ tag: dev
17
+ when:
18
+ - event: push
@@ -0,0 +1,21 @@
1
+ steps:
2
+ install:
3
+ image: node:20-slim
4
+ commands:
5
+ - corepack enable
6
+ - pnpm i --frozen-lockfile
7
+ release:
8
+ image: plugins/npm
9
+ settings:
10
+ token:
11
+ from_secret: npm_access_token
12
+ push-tagged-build:
13
+ image: plugins/docker
14
+ settings:
15
+ repo: lblod/ember-rdfa-editor-lblod-plugins
16
+ tags: '${CI_COMMIT_TAG##v}'
17
+ purge: true
18
+ secrets: [docker_username, docker_password]
19
+ when:
20
+ event: tag
21
+ ref: refs/tags/v*
@@ -0,0 +1,30 @@
1
+ steps:
2
+ install:
3
+ image: node:20-slim
4
+ commands:
5
+ - corepack enable
6
+ - pnpm i --frozen-lockfile
7
+ lint-js:
8
+ image: node:20-slim
9
+ group: lint
10
+ commands:
11
+ - corepack enable
12
+ - pnpm lint:js
13
+ lint-hbs:
14
+ image: node:20-slim
15
+ group: lint
16
+ commands:
17
+ - corepack enable
18
+ - pnpm lint:hbs
19
+ test:
20
+ image: danlynn/ember-cli:4.12.1
21
+ commands:
22
+ - corepack enable
23
+ - pnpm test:ember
24
+ precompile:
25
+ image: node:20-slim
26
+ commands:
27
+ - corepack enable
28
+ - pnpm prepack
29
+ when:
30
+ - evaluate: 'CI_PIPELINE_EVENT == "pull_request" && not (CI_COMMIT_PULL_REQUEST_LABELS contains "dependabot")'
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 17.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#407](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/407) [`f2a7660`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/f2a7660d32c6c54016c0547cd71e25ae239168a8) Thanks [@piemonkey](https://github.com/piemonkey)! - BREAKING: Update ember-appuniversum dependency to 3.4.1 in order to support the use of inline svg components for e.g. embeddable
8
+
9
+ ### Minor Changes
10
+
11
+ - [#407](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/407) [`d4b8814`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/d4b8814df14a5f66354ce3948db898c928a658a7) Thanks [@piemonkey](https://github.com/piemonkey)! - Modernise typescript configuration
12
+
13
+ ### Patch Changes
14
+
15
+ - [#407](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/407) [`f7d257b`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/f7d257bbc03e7b7f9375ade79a08f9e103e0c3df) Thanks [@piemonkey](https://github.com/piemonkey)! - Update deprecated use of AppUniversum
16
+
17
+ ## 16.4.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [#404](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/404) [`9382c7f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/9382c7f3e1c0e9495e2d9a7c21a58505653693b4) Thanks [@piemonkey](https://github.com/piemonkey)! - Add plugin to handle inserting worship services (erediensten)
22
+
3
23
  ## 16.3.0
4
24
 
5
25
  ### Minor Changes
package/Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
- FROM madnificent/ember:4.12.1-node_18 as builder
1
+ FROM node:20-slim AS builder
2
2
 
3
3
  LABEL maintainer="info@redpencil.io"
4
4
 
5
+ RUN corepack enable
6
+ RUN corepack prepare pnpm@latest-8 --activate
5
7
  WORKDIR /app
6
- COPY package.json package-lock.json ./
7
- RUN npm ci
8
+ COPY package.json pnpm-lock.yaml ./
9
+ RUN pnpm i --frozen-lockfile
8
10
  COPY . .
9
- RUN ember build -prod
11
+ RUN pnpm build
10
12
 
11
13
  FROM semtech/static-file-service:0.2.0
12
14
  COPY --from=builder /app/dist /data
@@ -0,0 +1 @@
1
+ export { default as replaceSelectionWithAndSelectNode } from './replace-selection-and-select-node';
@@ -0,0 +1,24 @@
1
+ import { Command, NodeSelection, PNode } from '@lblod/ember-rdfa-editor';
2
+
3
+ const replaceSelectionWithAndSelectNode = (node: PNode): Command => {
4
+ return (state, dispatch) => {
5
+ if (!node.type.spec.selectable) {
6
+ return false;
7
+ }
8
+
9
+ if (dispatch) {
10
+ const tr = state.tr;
11
+ tr.replaceSelectionWith(node);
12
+ if (tr.selection.$anchor.nodeBefore) {
13
+ const resolvedPos = tr.doc.resolve(
14
+ tr.selection.anchor - tr.selection.$anchor.nodeBefore?.nodeSize,
15
+ );
16
+ tr.setSelection(new NodeSelection(resolvedPos));
17
+ }
18
+ dispatch(tr);
19
+ }
20
+ return true;
21
+ };
22
+ };
23
+
24
+ export default replaceSelectionWithAndSelectNode;
@@ -1,7 +1,8 @@
1
+ {{! @glint-nocheck: not typesafe yet }}
1
2
  <div>
2
3
  {{#each this.structureTypes as |structureType|}}
3
4
  <li class="au-c-list__item">
4
- <AuButton @icon="add" @iconAlignment="left" @skin="link" @disabled={{not (this.canInsertStructure structureType)}}
5
+ <AuButton @icon={{this.AddIcon}} @iconAlignment="left" @skin="link" @disabled={{not (this.canInsertStructure structureType)}}
5
6
  {{on 'click' (fn this.insertStructure structureType)}}>
6
7
  {{t structureType.translations.insert}}
7
8
  </AuButton>
@@ -8,12 +8,14 @@ import {
8
8
  import { action } from '@ember/object';
9
9
  import { insertStructure } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin/commands';
10
10
  import { SayController } from '@lblod/ember-rdfa-editor';
11
+ import { AddIcon } from '@appuniversum/ember-appuniversum/components/icons/add';
11
12
 
12
13
  type Args = {
13
14
  controller: SayController;
14
15
  options: ArticleStructurePluginOptions;
15
16
  };
16
17
  export default class EditorPluginsArticleStructureCardComponent extends Component<Args> {
18
+ AddIcon = AddIcon;
17
19
  @service declare intl: IntlService;
18
20
 
19
21
  get structureTypes() {
@@ -1,3 +1,4 @@
1
+ {{! @glint-nocheck: not typesafe yet }}
1
2
  {{#unless this.isOutsideStructure}}
2
3
  <AuCard @flex={{true}} @divided={{true}} @expandable={{false}} @shadow={{true}} @size="flush" as |c|>
3
4
  <c.header class="au-u-hidden-visually">
@@ -7,7 +8,7 @@
7
8
  <AuList @divider={{true}} class="au-u-padding-top-tiny au-u-padding-bottom-tiny" as |Item|>
8
9
  <Item>
9
10
  <AuButton
10
- @icon="chevron-up"
11
+ @icon={{this.ChevronUpIcon}}
11
12
  @iconAlignment="left"
12
13
  @skin="link"
13
14
  @disabled={{not this.canMoveUp}}
@@ -17,7 +18,7 @@
17
18
  </Item>
18
19
  <Item>
19
20
  <AuButton
20
- @icon="chevron-down"
21
+ @icon={{this.ChevronDownIcon}}
21
22
  @iconAlignment="left"
22
23
  @skin="link"
23
24
  @disabled={{not this.canMoveDown}}
@@ -30,7 +31,7 @@
30
31
  <HoverTooltip>
31
32
  <:hover as |hover|>
32
33
  <AuButton
33
- @icon="bin"
34
+ @icon={{this.BinIcon}}
34
35
  @iconAlignment="left"
35
36
  @skin="link"
36
37
  @alert={{true}}
@@ -55,7 +56,7 @@
55
56
  <HoverTooltip>
56
57
  <:hover as |hover|>
57
58
  <AuButton
58
- @icon="bin"
59
+ @icon={{this.BinIcon}}
59
60
  @iconAlignment="left"
60
61
  @skin="link"
61
62
  aria-describedby="remove-content-tooltip"
@@ -93,7 +94,7 @@
93
94
  type="number"
94
95
  min="1"
95
96
  />
96
- {{/let}}
97
+ {{/let}}
97
98
  </AuFormRow>
98
99
  <AuButton
99
100
  @iconAlignment="left"
@@ -115,4 +116,4 @@
115
116
  </AuList>
116
117
  </c.content>
117
118
  </AuCard>
118
- {{/unless}}
119
+ {{/unless}}
@@ -12,6 +12,9 @@ import { findAncestorOfType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugi
12
12
  import { tracked } from '@glimmer/tracking';
13
13
  import { service } from '@ember/service';
14
14
  import IntlService from 'ember-intl/services/intl';
15
+ import { ChevronUpIcon } from '@appuniversum/ember-appuniversum/components/icons/chevron-up';
16
+ import { ChevronDownIcon } from '@appuniversum/ember-appuniversum/components/icons/chevron-down';
17
+ import { BinIcon } from '@appuniversum/ember-appuniversum/components/icons/bin';
15
18
 
16
19
  type Args = {
17
20
  controller: SayController;
@@ -19,6 +22,9 @@ type Args = {
19
22
  };
20
23
 
21
24
  export default class EditorPluginsStructureCardComponent extends Component<Args> {
25
+ BinIcon = BinIcon;
26
+ ChevronDownIcon = ChevronDownIcon;
27
+ ChevronUpIcon = ChevronUpIcon;
22
28
  @service declare intl: IntlService;
23
29
  @tracked removeStructureContent = false;
24
30
  @tracked startNumber: number | null = null;
@@ -36,11 +42,45 @@ export default class EditorPluginsStructureCardComponent extends Component<Args>
36
42
  this.controller.focus();
37
43
  }
38
44
 
45
+ @action
46
+ removeStructure(withContent: boolean) {
47
+ if (this.structure && this.currentStructureType) {
48
+ if (withContent || this.currentStructureType.noUnwrap) {
49
+ this.controller.doCommand(
50
+ removeStructure(this.structure, this.structureTypes),
51
+ { view: this.controller.mainEditorView },
52
+ );
53
+ } else {
54
+ this.controller.doCommand(
55
+ unwrapStructure(
56
+ {
57
+ ...this.structure,
58
+ type: this.currentStructureType,
59
+ },
60
+ this.structureTypes,
61
+ ),
62
+ { view: this.controller.mainEditorView },
63
+ );
64
+ }
65
+ }
66
+ this.controller.focus();
67
+ }
68
+
69
+ @action
70
+ setRemoveStructureContent(value: boolean) {
71
+ this.removeStructureContent = value;
72
+ }
73
+
39
74
  @action
40
75
  setStructureStartNumber() {
41
- if (this.startNumber) {
76
+ if (this.startNumber && this.structure && this.currentStructureType) {
42
77
  this.controller.doCommand(
43
- setStructureStartNumber(this.structureTypes, this.startNumber),
78
+ setStructureStartNumber(
79
+ this.structure,
80
+ this.structureTypes,
81
+ this.startNumber,
82
+ ),
83
+ { view: this.controller.mainEditorView },
44
84
  );
45
85
 
46
86
  this.startNumber = null;
@@ -49,11 +89,14 @@ export default class EditorPluginsStructureCardComponent extends Component<Args>
49
89
 
50
90
  @action
51
91
  resetStructureStartNumber() {
52
- this.controller.doCommand(
53
- setStructureStartNumber(this.structureTypes, null),
54
- );
92
+ if (this.structure) {
93
+ this.controller.doCommand(
94
+ setStructureStartNumber(this.structure, this.structureTypes, null),
95
+ { view: this.controller.mainEditorView },
96
+ );
55
97
 
56
- this.startNumber = null;
98
+ this.startNumber = null;
99
+ }
57
100
  }
58
101
 
59
102
  get structureNumber() {
@@ -87,35 +130,6 @@ export default class EditorPluginsStructureCardComponent extends Component<Args>
87
130
  this.startNumber = parseInt(target.value);
88
131
  };
89
132
 
90
- @action
91
- removeStructure(withContent: boolean) {
92
- if (this.structure && this.currentStructureType) {
93
- if (withContent || this.currentStructureType.noUnwrap) {
94
- this.controller.doCommand(
95
- removeStructure(this.structure, this.structureTypes),
96
- { view: this.controller.mainEditorView },
97
- );
98
- } else {
99
- this.controller.doCommand(
100
- unwrapStructure(
101
- {
102
- ...this.structure,
103
- type: this.currentStructureType,
104
- },
105
- this.structureTypes,
106
- ),
107
- { view: this.controller.mainEditorView },
108
- );
109
- }
110
- }
111
- this.controller.focus();
112
- }
113
-
114
- @action
115
- setRemoveStructureContent(value: boolean) {
116
- this.removeStructureContent = value;
117
- }
118
-
119
133
  get structureTypes() {
120
134
  return this.args.options;
121
135
  }
@@ -1,3 +1,4 @@
1
+ {{! @glint-nocheck: not typesafe yet }}
1
2
  {{#if @icon}}
2
3
  <span class='au-c-input-wrapper {{this.iconAlignment}} {{this.width}}'>
3
4
  <input
@@ -1,4 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
+ import { ComponentLike } from '@glint/template';
2
3
 
3
4
  interface Args {
4
5
  width?: 'block';
@@ -7,7 +8,7 @@ interface Args {
7
8
  warning?: boolean;
8
9
  disabled?: boolean;
9
10
  type?: string;
10
- icon?: string;
11
+ icon?: ComponentLike;
11
12
  }
12
13
 
13
14
  export default class AuNativeInput extends Component<Args> {
@@ -1,3 +1,4 @@
1
+ {{! @glint-nocheck: not typesafe yet }}
1
2
  <div ...attributes>
2
3
  <PowerSelect
3
4
  @renderInPlace={{true}}
@@ -16,7 +17,7 @@
16
17
  {{#if @showWarningWhenEmpty}}
17
18
  {{#unless @selected}}
18
19
  <AuAlert
19
- @icon="alert-triangle"
20
+ @icon={{this.AlertTriangleIcon}}
20
21
  @title={{t "besluit-type-plugin.alert-title"}}
21
22
  @skin="warning"
22
23
  @size="small"
@@ -25,4 +26,4 @@
25
26
  </AuAlert>
26
27
  {{/unless}}
27
28
  {{/if}}
28
- </div>
29
+ </div>
@@ -2,11 +2,15 @@ import Component from '@glimmer/component';
2
2
  import { action } from '@ember/object';
3
3
  import { tracked } from '@glimmer/tracking';
4
4
  import { BesluitType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-type-plugin/utils/fetchBesluitTypes';
5
+ import { AlertTriangleIcon } from '@appuniversum/ember-appuniversum/components/icons/alert-triangle';
6
+
5
7
  type Args = {
6
8
  besluitTypes: BesluitType[];
7
9
  };
8
10
 
9
11
  export default class BesluitTypePluginBesluitTypeSelectComponent extends Component<Args> {
12
+ AlertTriangleIcon = AlertTriangleIcon;
13
+
10
14
  @tracked besluitTypes;
11
15
  constructor(parent: unknown, args: Args) {
12
16
  super(parent, args);
@@ -1,3 +1,4 @@
1
+ {{! @glint-nocheck: not typesafe yet }}
1
2
  <div
2
3
  {{did-update this.updateBesluitTypes @controller.mainEditorState}}
3
4
  {{did-update this.updateBesluitTypes this.types.value}}
@@ -6,7 +7,7 @@
6
7
  {{#if this.types.isError}}
7
8
  <AuPill
8
9
  @skin='error'
9
- @icon='circle-x'
10
+ @icon={{this.CircleXIcon}}
10
11
  @iconAlignment='left'
11
12
  class='au-c-pill--link besluit-toolbar-pill'
12
13
  {{on 'click' this.toggleCard}}
@@ -26,7 +27,7 @@
26
27
  </AuPill>
27
28
  {{else}}
28
29
  <AuPill
29
- @icon='alert-triangle'
30
+ @icon={{this.AlertTriangleIcon}}
30
31
  @iconAlignment='left'
31
32
  @skin='link'
32
33
  {{on 'click' this.toggleCard}}
@@ -51,14 +52,14 @@
51
52
  <AuAlert
52
53
  @title={{t 'besluit-type-plugin.error-title'}}
53
54
  @skin='error'
54
- @icon='cross'
55
+ @icon={{this.CrossIcon}}
55
56
  >
56
57
  <p>
57
58
  {{t 'besluit-type-plugin.error-first-body'}}
58
59
  {{! template-lint-disable no-bare-strings }}
59
60
  <AuLinkExternal
60
61
  href='mailto:gelinktnotuleren@vlaanderen.be'
61
- @icon='mail'
62
+ @icon={{this.MailIcon}}
62
63
  @iconAlignment='left'
63
64
  >
64
65
  GelinktNotuleren@vlaanderen.be
@@ -1,13 +1,10 @@
1
1
  import { tracked } from '@glimmer/tracking';
2
2
  import Component from '@glimmer/component';
3
3
  import { action } from '@ember/object';
4
- import {
5
- addType,
6
- removeType,
7
- } from '@lblod/ember-rdfa-editor/commands/type-commands';
4
+ import { addProperty, removeProperty } from '@lblod/ember-rdfa-editor/commands';
8
5
  import { SayController } from '@lblod/ember-rdfa-editor';
6
+ import { sayDataFactory } from '@lblod/ember-rdfa-editor/core/say-data-factory';
9
7
  import { ResolvedPNode } from '@lblod/ember-rdfa-editor/plugins/datastore';
10
- import { getRdfaAttribute } from '@lblod/ember-rdfa-editor/utils/rdfa-utils';
11
8
  import fetchBesluitTypes, {
12
9
  BesluitType,
13
10
  } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-type-plugin/utils/fetchBesluitTypes';
@@ -15,12 +12,12 @@ import { findAncestorOfType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugi
15
12
  import { trackedFunction } from 'ember-resources/util/function';
16
13
  import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
17
14
  import { BesluitTypePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-type-plugin';
18
-
19
- declare module 'ember__owner' {
20
- export default interface Owner {
21
- resolveRegistration(name: string): unknown;
22
- }
23
- }
15
+ import { RDF } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
16
+ import { getOutgoingTripleList } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace';
17
+ import { AlertTriangleIcon } from '@appuniversum/ember-appuniversum/components/icons/alert-triangle';
18
+ import { CrossIcon } from '@appuniversum/ember-appuniversum/components/icons/cross';
19
+ import { MailIcon } from '@appuniversum/ember-appuniversum/components/icons/mail';
20
+ import { CircleXIcon } from '@appuniversum/ember-appuniversum/components/icons/circle-x';
24
21
 
25
22
  type Args = {
26
23
  controller: SayController;
@@ -28,6 +25,10 @@ type Args = {
28
25
  };
29
26
 
30
27
  export default class EditorPluginsToolbarDropdownComponent extends Component<Args> {
28
+ CircleIcon = CircleXIcon;
29
+ MailIcon = MailIcon;
30
+ CrossIcon = CrossIcon;
31
+ AlertTriangleIcon = AlertTriangleIcon;
31
32
  /**
32
33
  * Actual besluit type selected
33
34
  * @property besluitType
@@ -83,7 +84,7 @@ export default class EditorPluginsToolbarDropdownComponent extends Component<Arg
83
84
  get currentBesluitURI() {
84
85
  if (this.currentBesluitRange) {
85
86
  const node = unwrap(this.doc.nodeAt(this.currentBesluitRange.from));
86
- return getRdfaAttribute(node, 'resource').pop();
87
+ return node.attrs['subject'] as string | undefined;
87
88
  }
88
89
  return;
89
90
  }
@@ -101,11 +102,21 @@ export default class EditorPluginsToolbarDropdownComponent extends Component<Arg
101
102
  this.controller.mainEditorState.selection,
102
103
  this.controller.schema.nodes['besluit'],
103
104
  );
104
- const besluitTypeof = besluit?.node.attrs.typeof as string;
105
- const besluitTypesUris = besluitTypeof.split(' ');
106
- const besluitTypeRelevant = besluitTypesUris.find((type) =>
107
- type.includes('https://data.vlaanderen.be/id/concept/BesluitType/'),
108
- );
105
+ if (!besluit) {
106
+ console.warn(
107
+ `We have a besluit URI (${this.currentBesluitURI}), but can't find a besluit ancestor`,
108
+ );
109
+ return;
110
+ }
111
+ const besluitTypes = getOutgoingTripleList(besluit.node.attrs, RDF('type'));
112
+ const besluitTypeRelevant = besluitTypes.find(
113
+ (type) =>
114
+ type.object.termType === 'NamedNode' &&
115
+ type.object.value.includes(
116
+ 'https://data.vlaanderen.be/id/concept/BesluitType/',
117
+ ),
118
+ )?.object.value;
119
+
109
120
  if (besluitTypeRelevant) {
110
121
  this.previousBesluitType = besluitTypeRelevant;
111
122
  const besluitType = this.findBesluitTypeByURI(besluitTypeRelevant);
@@ -197,16 +208,33 @@ export default class EditorPluginsToolbarDropdownComponent extends Component<Arg
197
208
  }
198
209
 
199
210
  insert() {
200
- if (this.besluitType && this.currentBesluitRange) {
211
+ const resource =
212
+ (this.currentBesluitRange &&
213
+ 'node' in this.currentBesluitRange &&
214
+ (this.currentBesluitRange.node.attrs.subject as string)) ||
215
+ undefined;
216
+ if (this.besluitType && resource) {
201
217
  this.cardExpanded = false;
202
218
  if (this.previousBesluitType) {
203
219
  this.controller.doCommand(
204
- removeType(this.currentBesluitRange.from, this.previousBesluitType),
220
+ removeProperty({
221
+ resource,
222
+ property: {
223
+ predicate: RDF('type').full,
224
+ object: sayDataFactory.namedNode(this.previousBesluitType),
225
+ },
226
+ }),
205
227
  { view: this.controller.mainEditorView },
206
228
  );
207
229
  }
208
230
  this.controller.doCommand(
209
- addType(this.currentBesluitRange.from, this.besluitType.uri),
231
+ addProperty({
232
+ resource,
233
+ property: {
234
+ predicate: RDF('type').full,
235
+ object: sayDataFactory.namedNode(this.besluitType.uri),
236
+ },
237
+ }),
210
238
  { view: this.controller.mainEditorView },
211
239
  );
212
240
  }
@@ -1,3 +1,4 @@
1
+ {{! @glint-nocheck: not typesafe yet }}
1
2
  {{#if this.showCard}}
2
3
  <AuCard
3
4
  @flex={{true}}
@@ -58,7 +59,7 @@
58
59
  @warning={{false}}
59
60
  >{{t 'citaten-plugin.search.term'}}</AuLabel>
60
61
  <AuNativeInput
61
- @icon='search'
62
+ @icon={{this.SearchIcon}}
62
63
  @type='text'
63
64
  @width='block'
64
65
  @iconAlignment='right'
@@ -71,7 +72,7 @@
71
72
  <AuFormRow>
72
73
  <AuButton
73
74
  @skin='link'
74
- @icon='search'
75
+ @icon={{this.SearchIcon}}
75
76
  @iconAlignment='left'
76
77
  {{on 'click' this.openSearchModal}}
77
78
  >{{t 'citaten-plugin.search.advanced'}}</AuButton>
@@ -86,7 +87,7 @@
86
87
  }}</span>
87
88
  {{else}}
88
89
  {{#if this.error}}
89
- <CitationPlugin::Helpers::AlertLoadError
90
+ <Common::Search::AlertLoadError
90
91
  @fullSize={{false}}
91
92
  @error={{this.error}}
92
93
  />