@lblod/ember-rdfa-editor-lblod-plugins 0.3.1 → 0.4.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 (269) hide show
  1. package/.release-it.json +14 -0
  2. package/.woodpecker/.release.yml +15 -0
  3. package/.woodpecker/.test.yml +23 -0
  4. package/CHANGELOG.md +84 -0
  5. package/RELEASE.md +60 -0
  6. package/addon/commands/generate-template-command.js +35 -0
  7. package/addon/commands/insert-and-collapse.js +32 -0
  8. package/addon/commands/modify-date-command.js +42 -0
  9. package/addon/components/besluit-type-plugin/besluit-type-select.hbs +28 -0
  10. package/addon/components/besluit-type-plugin/besluit-type-select.js +21 -0
  11. package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +83 -0
  12. package/addon/components/besluit-type-plugin/toolbar-dropdown.js +188 -0
  13. package/addon/components/citaten-plugin/citaat-card.hbs +76 -0
  14. package/addon/components/citaten-plugin/citaat-card.js +286 -0
  15. package/addon/components/citaten-plugin/citaat-insert.hbs +20 -0
  16. package/addon/components/citaten-plugin/citaat-insert.js +68 -0
  17. package/addon/components/citaten-plugin/citations/article-list.hbs +13 -0
  18. package/addon/components/citaten-plugin/citations/article-preview.hbs +16 -0
  19. package/addon/components/citaten-plugin/citations/decision-detail.hbs +110 -0
  20. package/addon/components/citaten-plugin/citations/decision-detail.js +94 -0
  21. package/addon/components/citaten-plugin/citations/decision-list.hbs +15 -0
  22. package/addon/components/citaten-plugin/citations/decision-preview.hbs +53 -0
  23. package/addon/components/citaten-plugin/citations/search-modal.hbs +175 -0
  24. package/addon/components/citaten-plugin/citations/search-modal.js +244 -0
  25. package/addon/components/citaten-plugin/helpers/alert-load-error.hbs +21 -0
  26. package/addon/components/citaten-plugin/helpers/alert-no-items.hbs +10 -0
  27. package/addon/components/import-snippet-plugin/card.hbs +17 -0
  28. package/addon/components/import-snippet-plugin/card.js +95 -0
  29. package/addon/components/insert-variable-plugin/insert-variable-card.hbs +33 -0
  30. package/addon/components/insert-variable-plugin/insert-variable-card.js +125 -0
  31. package/addon/components/rdfa-date-plugin/rdfa-date-plugin-card.hbs +22 -0
  32. package/addon/components/rdfa-date-plugin/rdfa-date-plugin-card.js +64 -0
  33. package/addon/components/rdfa-date-plugin/rdfa-date-plugin-insert.hbs +18 -0
  34. package/addon/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +24 -0
  35. package/addon/components/rdfa-date-plugin/rdfa-date-time-picker.hbs +21 -0
  36. package/addon/components/rdfa-date-plugin/rdfa-date-time-picker.js +73 -0
  37. package/addon/components/roadsign-regulation-plugin/expanded-measure.hbs +44 -0
  38. package/addon/components/roadsign-regulation-plugin/expanded-measure.js +38 -0
  39. package/addon/components/roadsign-regulation-plugin/measure-template.hbs +5 -0
  40. package/addon/components/roadsign-regulation-plugin/measure-template.js +30 -0
  41. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +12 -0
  42. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.js +101 -0
  43. package/addon/components/roadsign-regulation-plugin/roadsigns-modal.hbs +92 -0
  44. package/addon/components/roadsign-regulation-plugin/roadsigns-modal.js +268 -0
  45. package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.hbs +25 -0
  46. package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.js +55 -0
  47. package/addon/components/roadsign-regulation-plugin/roadsigns-table.hbs +73 -0
  48. package/addon/components/roadsign-regulation-plugin/roadsigns-table.js +24 -0
  49. package/addon/components/standard-template-plugin/template-card.hbs +16 -0
  50. package/addon/components/standard-template-plugin/template-card.js +7 -0
  51. package/addon/components/standard-template-plugin/template-provider.hbs +6 -0
  52. package/addon/components/standard-template-plugin/template-provider.js +75 -0
  53. package/addon/components/table-of-contents-plugin/card.hbs +5 -0
  54. package/addon/components/table-of-contents-plugin/card.js +53 -0
  55. package/addon/components/table-of-contents-plugin/inline-components/outline.hbs +21 -0
  56. package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.hbs +9 -0
  57. package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.js +100 -0
  58. package/addon/components/template-variable-plugin/template-variable-card.hbs +34 -0
  59. package/addon/components/template-variable-plugin/template-variable-card.js +230 -0
  60. package/addon/constants.js +24 -0
  61. package/{dist → addon}/helpers/limit-text.js +1 -4
  62. package/addon/initializers/plugin-initializer.js +75 -0
  63. package/addon/inline-components/table-of-contents.js +43 -0
  64. package/addon/marks/citaten-mark.js +32 -0
  65. package/addon/models/instruction.js +19 -0
  66. package/addon/models/measure.js +46 -0
  67. package/{dist → addon}/models/sign.js +12 -13
  68. package/addon/models/template.js +9 -0
  69. package/addon/plugins/besluit-type-plugin.js +16 -0
  70. package/addon/plugins/citaten-plugin.js +22 -0
  71. package/addon/plugins/generate-template-plugin.js +16 -0
  72. package/addon/plugins/import-snippet-plugin.js +16 -0
  73. package/addon/plugins/insert-variable-plugin.js +19 -0
  74. package/addon/plugins/rdfa-date-plugin.js +26 -0
  75. package/addon/plugins/roadsign-regulation-plugin.js +24 -0
  76. package/addon/plugins/standard-template-plugin.js +33 -0
  77. package/addon/plugins/table-of-contents-plugin.js +27 -0
  78. package/addon/plugins/template-variable-plugin.js +21 -0
  79. package/addon/serializers/application.js +8 -0
  80. package/{dist → addon}/services/import-rdfa-snippet.js +28 -18
  81. package/{dist → addon}/services/roadsign-registry.js +67 -121
  82. package/addon/services/standard-template-plugin.js +45 -0
  83. package/addon/utils/fetchBesluitTypes.js +90 -0
  84. package/addon/utils/generate-template-plugin/default-resources.js +9 -0
  85. package/addon/utils/instantiate-uuids.js +34 -0
  86. package/addon/utils/legislation-types.js +32 -0
  87. package/addon/utils/memoize.js +8 -0
  88. package/addon/utils/processMatch.js +80 -0
  89. package/addon/utils/roadsign-regulation-plugin/fetchData.js +78 -0
  90. package/addon/utils/roadsign-regulation-plugin/includeInstructions.js +10 -0
  91. package/addon/utils/variable-plugins/default-variable-types.js +56 -0
  92. package/{dist/fetch-data-284bf106.js → addon/utils/variable-plugins/fetch-data.js} +36 -18
  93. package/{dist/vlaamse-codex-187fe526.js → addon/utils/vlaamse-codex.js} +159 -63
  94. package/app/components/besluit-type-plugin/besluit-type-select.js +1 -0
  95. package/app/components/besluit-type-plugin/toolbar-dropdown.js +1 -0
  96. package/app/components/citaten-plugin/citaat-card.js +1 -0
  97. package/app/components/citaten-plugin/citaat-insert.js +1 -0
  98. package/app/components/citaten-plugin/citations/article-list.js +1 -0
  99. package/app/components/citaten-plugin/citations/article-preview.js +1 -0
  100. package/app/components/citaten-plugin/citations/decision-detail.js +1 -0
  101. package/app/components/citaten-plugin/citations/decision-list.js +1 -0
  102. package/app/components/citaten-plugin/citations/decision-preview.js +1 -0
  103. package/app/components/citaten-plugin/citations/modal.js +1 -0
  104. package/app/components/citaten-plugin/citations/search-modal.js +1 -0
  105. package/app/components/citaten-plugin/helpers/alert-load-error.js +1 -0
  106. package/app/components/citaten-plugin/helpers/alert-no-items.js +1 -0
  107. package/app/components/import-snippet-plugin/card.js +1 -0
  108. package/app/components/insert-variable-plugin/insert-variable-card.js +1 -0
  109. package/app/components/rdfa-date-plugin/rdfa-date-plugin-card.js +1 -0
  110. package/app/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +1 -0
  111. package/app/components/rdfa-date-plugin/rdfa-date-time-picker.js +1 -0
  112. package/app/components/roadsign-regulation-plugin/expanded-measure.js +1 -0
  113. package/app/components/roadsign-regulation-plugin/measure-template.js +1 -0
  114. package/app/components/roadsign-regulation-plugin/roadsign-regulation-card.js +1 -0
  115. package/app/components/roadsign-regulation-plugin/roadsigns-modal.js +1 -0
  116. package/app/components/roadsign-regulation-plugin/roadsigns-pagination.js +1 -0
  117. package/app/components/roadsign-regulation-plugin/roadsigns-table.js +1 -0
  118. package/app/components/standard-template-plugin/template-card.js +1 -0
  119. package/app/components/standard-template-plugin/template-provider.js +1 -0
  120. package/app/components/table-of-contents-plugin/card.js +1 -0
  121. package/app/components/table-of-contents-plugin/inline-components/outline.js +1 -0
  122. package/app/components/table-of-contents-plugin/inline-components/table-of-contents.js +1 -0
  123. package/app/components/template-variable-plugin/template-variable-card.js +1 -0
  124. package/app/helpers/limit-text.js +4 -0
  125. package/app/initializers/plugin-initializer.js +4 -0
  126. package/app/models/instruction.js +1 -0
  127. package/app/models/measure.js +1 -0
  128. package/app/models/sign.js +1 -0
  129. package/app/models/template.js +1 -0
  130. package/app/serializers/application.js +1 -0
  131. package/app/services/import-rdfa-snippet.js +1 -0
  132. package/app/services/rdfa-editor-roadsign-regulation-plugin.js +1 -0
  133. package/app/services/roadsign-registry.js +1 -0
  134. package/app/services/standard-template-plugin.js +1 -0
  135. package/{dist → app}/styles/citaten-plugin.scss +0 -0
  136. package/config/environment.js +0 -1
  137. package/index.js +8 -0
  138. package/package.json +110 -106
  139. package/tsconfig.json +42 -0
  140. package/types/dummy/index.d.ts +1 -0
  141. package/types/ember-data/types/registries/model.d.ts +6 -0
  142. package/types/global.d.ts +7 -0
  143. package/addon-main.js +0 -4
  144. package/dist/_app_/components/besluit-type-plugin/besluit-type-select.js +0 -1
  145. package/dist/_app_/components/besluit-type-plugin/toolbar-dropdown.js +0 -1
  146. package/dist/_app_/components/citaten-plugin/citaat-card.js +0 -1
  147. package/dist/_app_/components/citaten-plugin/citaat-insert.js +0 -1
  148. package/dist/_app_/components/citaten-plugin/citations/article-list.js +0 -1
  149. package/dist/_app_/components/citaten-plugin/citations/article-preview.js +0 -1
  150. package/dist/_app_/components/citaten-plugin/citations/decision-detail.js +0 -1
  151. package/dist/_app_/components/citaten-plugin/citations/decision-list.js +0 -1
  152. package/dist/_app_/components/citaten-plugin/citations/decision-preview.js +0 -1
  153. package/dist/_app_/components/citaten-plugin/citations/search-modal.js +0 -1
  154. package/dist/_app_/components/citaten-plugin/helpers/alert-load-error.js +0 -1
  155. package/dist/_app_/components/citaten-plugin/helpers/alert-no-items.js +0 -1
  156. package/dist/_app_/components/import-snippet-plugin/card.js +0 -1
  157. package/dist/_app_/components/insert-variable-plugin/insert-variable-card.js +0 -1
  158. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -1
  159. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -1
  160. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-time-picker.js +0 -1
  161. package/dist/_app_/components/roadsign-regulation-plugin/expanded-measure.js +0 -1
  162. package/dist/_app_/components/roadsign-regulation-plugin/measure-template.js +0 -1
  163. package/dist/_app_/components/roadsign-regulation-plugin/roadsign-regulation-card.js +0 -1
  164. package/dist/_app_/components/roadsign-regulation-plugin/roadsigns-modal.js +0 -1
  165. package/dist/_app_/components/roadsign-regulation-plugin/roadsigns-pagination.js +0 -1
  166. package/dist/_app_/components/roadsign-regulation-plugin/roadsigns-table.js +0 -1
  167. package/dist/_app_/components/standard-template-plugin/template-card.js +0 -1
  168. package/dist/_app_/components/standard-template-plugin/template-provider.js +0 -1
  169. package/dist/_app_/components/table-of-contents-plugin/card.js +0 -1
  170. package/dist/_app_/components/table-of-contents-plugin/inline-components/outline.js +0 -1
  171. package/dist/_app_/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -1
  172. package/dist/_app_/components/template-variable-plugin/template-variable-card.js +0 -1
  173. package/dist/_app_/helpers/limit-text.js +0 -1
  174. package/dist/_app_/initializers/plugin-initializer.js +0 -1
  175. package/dist/_app_/models/instruction.js +0 -1
  176. package/dist/_app_/models/measure.js +0 -1
  177. package/dist/_app_/models/sign.js +0 -1
  178. package/dist/_app_/models/template.js +0 -1
  179. package/dist/_app_/serializers/application.js +0 -1
  180. package/dist/_app_/services/import-rdfa-snippet.js +0 -1
  181. package/dist/_app_/services/roadsign-registry.js +0 -1
  182. package/dist/_app_/services/standard-template-plugin.js +0 -1
  183. package/dist/_rollupPluginBabelHelpers-537ad14b.js +0 -48
  184. package/dist/_rollupPluginBabelHelpers-537ad14b.js.map +0 -1
  185. package/dist/components/besluit-type-plugin/besluit-type-select.js +0 -30
  186. package/dist/components/besluit-type-plugin/besluit-type-select.js.map +0 -1
  187. package/dist/components/besluit-type-plugin/toolbar-dropdown.js +0 -292
  188. package/dist/components/besluit-type-plugin/toolbar-dropdown.js.map +0 -1
  189. package/dist/components/citaten-plugin/citaat-card.js +0 -367
  190. package/dist/components/citaten-plugin/citaat-card.js.map +0 -1
  191. package/dist/components/citaten-plugin/citaat-insert.js +0 -84
  192. package/dist/components/citaten-plugin/citaat-insert.js.map +0 -1
  193. package/dist/components/citaten-plugin/citations/article-list.js +0 -10
  194. package/dist/components/citaten-plugin/citations/article-list.js.map +0 -1
  195. package/dist/components/citaten-plugin/citations/article-preview.js +0 -10
  196. package/dist/components/citaten-plugin/citations/article-preview.js.map +0 -1
  197. package/dist/components/citaten-plugin/citations/decision-detail.js +0 -123
  198. package/dist/components/citaten-plugin/citations/decision-detail.js.map +0 -1
  199. package/dist/components/citaten-plugin/citations/decision-list.js +0 -10
  200. package/dist/components/citaten-plugin/citations/decision-list.js.map +0 -1
  201. package/dist/components/citaten-plugin/citations/decision-preview.js +0 -10
  202. package/dist/components/citaten-plugin/citations/decision-preview.js.map +0 -1
  203. package/dist/components/citaten-plugin/citations/search-modal.js +0 -282
  204. package/dist/components/citaten-plugin/citations/search-modal.js.map +0 -1
  205. package/dist/components/citaten-plugin/helpers/alert-load-error.js +0 -10
  206. package/dist/components/citaten-plugin/helpers/alert-load-error.js.map +0 -1
  207. package/dist/components/citaten-plugin/helpers/alert-no-items.js +0 -10
  208. package/dist/components/citaten-plugin/helpers/alert-no-items.js.map +0 -1
  209. package/dist/components/import-snippet-plugin/card.js +0 -99
  210. package/dist/components/import-snippet-plugin/card.js.map +0 -1
  211. package/dist/components/insert-variable-plugin/insert-variable-card.js +0 -190
  212. package/dist/components/insert-variable-plugin/insert-variable-card.js.map +0 -1
  213. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -85
  214. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js.map +0 -1
  215. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -23
  216. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js.map +0 -1
  217. package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js +0 -91
  218. package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js.map +0 -1
  219. package/dist/components/roadsign-regulation-plugin/expanded-measure.js +0 -52
  220. package/dist/components/roadsign-regulation-plugin/expanded-measure.js.map +0 -1
  221. package/dist/components/roadsign-regulation-plugin/measure-template.js +0 -42
  222. package/dist/components/roadsign-regulation-plugin/measure-template.js.map +0 -1
  223. package/dist/components/roadsign-regulation-plugin/roadsign-regulation-card.js +0 -82
  224. package/dist/components/roadsign-regulation-plugin/roadsign-regulation-card.js.map +0 -1
  225. package/dist/components/roadsign-regulation-plugin/roadsigns-modal.js +0 -251
  226. package/dist/components/roadsign-regulation-plugin/roadsigns-modal.js.map +0 -1
  227. package/dist/components/roadsign-regulation-plugin/roadsigns-pagination.js +0 -71
  228. package/dist/components/roadsign-regulation-plugin/roadsigns-pagination.js.map +0 -1
  229. package/dist/components/roadsign-regulation-plugin/roadsigns-table.js +0 -36
  230. package/dist/components/roadsign-regulation-plugin/roadsigns-table.js.map +0 -1
  231. package/dist/components/standard-template-plugin/template-card.js +0 -15
  232. package/dist/components/standard-template-plugin/template-card.js.map +0 -1
  233. package/dist/components/standard-template-plugin/template-provider.js +0 -109
  234. package/dist/components/standard-template-plugin/template-provider.js.map +0 -1
  235. package/dist/components/table-of-contents-plugin/card.js +0 -52
  236. package/dist/components/table-of-contents-plugin/card.js.map +0 -1
  237. package/dist/components/table-of-contents-plugin/inline-components/outline.js +0 -10
  238. package/dist/components/table-of-contents-plugin/inline-components/outline.js.map +0 -1
  239. package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -92
  240. package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js.map +0 -1
  241. package/dist/components/template-variable-plugin/template-variable-card.js +0 -178
  242. package/dist/components/template-variable-plugin/template-variable-card.js.map +0 -1
  243. package/dist/constants-c77fd478.js +0 -16
  244. package/dist/constants-c77fd478.js.map +0 -1
  245. package/dist/fetch-data-284bf106.js.map +0 -1
  246. package/dist/helpers/limit-text.js.map +0 -1
  247. package/dist/includeInstructions-a32c24e6.js +0 -10
  248. package/dist/includeInstructions-a32c24e6.js.map +0 -1
  249. package/dist/index.js +0 -2
  250. package/dist/index.js.map +0 -1
  251. package/dist/initializers/plugin-initializer.js +0 -401
  252. package/dist/initializers/plugin-initializer.js.map +0 -1
  253. package/dist/legislation-types-4d487cb9.js +0 -26
  254. package/dist/legislation-types-4d487cb9.js.map +0 -1
  255. package/dist/models/instruction.js +0 -18
  256. package/dist/models/instruction.js.map +0 -1
  257. package/dist/models/measure.js +0 -41
  258. package/dist/models/measure.js.map +0 -1
  259. package/dist/models/sign.js.map +0 -1
  260. package/dist/models/template.js +0 -48
  261. package/dist/models/template.js.map +0 -1
  262. package/dist/serializers/application.js +0 -10
  263. package/dist/serializers/application.js.map +0 -1
  264. package/dist/services/import-rdfa-snippet.js.map +0 -1
  265. package/dist/services/roadsign-registry.js.map +0 -1
  266. package/dist/services/standard-template-plugin.js +0 -53
  267. package/dist/services/standard-template-plugin.js.map +0 -1
  268. package/dist/styles/test.css +0 -0
  269. package/dist/vlaamse-codex-187fe526.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-variable-card.js","sources":["../../../src/components/template-variable-plugin/template-variable-card.hbs.js","../../../src/components/template-variable-plugin/template-variable-card.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"{{#if this.showCard}}\\n <AuCard @flex={{true}} @divided={{true}} @isOpenInitially={{true}} @expandable={{true}} @shadow={{true}} @size=\\\"small\\\" as |c|>\\n <c.header>\\n <AuHeading @level=\\\"3\\\" @skin=\\\"6\\\">\\n Maatregel parameters\\n </AuHeading>\\n </c.header>\\n <c.content>\\n {{#if this.multiSelect}}\\n <PowerSelectMultiple\\n @allowClear={{false}}\\n @searchEnabled={{false}}\\n @options={{this.variableOptions}}\\n @selected={{this.selectedVariable}}\\n @onChange={{this.updateVariable}} as |variable|\\n >\\n {{variable.label}}\\n </PowerSelectMultiple>\\n {{else}}\\n <PowerSelect\\n @allowClear={{false}}\\n @searchEnabled={{false}}\\n @options={{this.variableOptions}}\\n @selected={{this.selectedVariable}}\\n @onChange={{this.updateVariable}} as |variable|\\n >\\n {{variable.label}}\\n </PowerSelect>\\n {{/if}}\\n <AuButton {{on \\'click\\' this.insert}} @disabled={{not this.selectedVariable}}>Voeg in</AuButton>\\n </c.content>\\n </AuCard>\\n{{/if}}\\n\\n\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { getOwner } from '@ember/application';\nimport { task } from 'ember-concurrency';\n\nimport { fetchCodeListOptions } from '../../utils/variable-plugins/fetch-data';\nimport { MULTI_SELECT_CODELIST_TYPE, ZONAL_URI } from '../../constants';\n\nexport default class EditorPluginsTemplateVariableCardComponent extends Component {\n @tracked variableOptions = [];\n @tracked selectedVariable;\n @tracked showCard = false;\n @tracked multiSelect = false;\n mappingUri;\n\n constructor() {\n super(...arguments);\n const config = getOwner(this).resolveRegistration('config:environment');\n this.zonalLocationCodelistUri =\n config.templateVariablePlugin.zonalLocationCodelistUri;\n this.endpoint = config.templateVariablePlugin.endpoint;\n this.nonZonalLocationCodelistUri =\n config.templateVariablePlugin.nonZonalLocationCodelistUri;\n this.args.controller.onEvent('selectionChanged', this.selectionChanged);\n this.liveHighlights = this.args.controller.createLiveMarkSet({\n datastoreQuery: (datastore) => {\n const limitedDataset = datastore.transformDataset(\n (dataset, termconverter) => {\n const mappings = dataset.match(\n null,\n termconverter('a'),\n termconverter('ext:Mapping')\n );\n const locations = dataset.match(\n null,\n termconverter('>http://purl.org/dc/terms/type'),\n termconverter('@en-US\"location')\n );\n const codelists = dataset.match(\n null,\n termconverter('>http://purl.org/dc/terms/type'),\n termconverter('@en-US\"codelist')\n );\n const supportedMappings = locations.union(codelists);\n return mappings.filter(\n (quad) => supportedMappings.match(quad.subject).size !== 0\n );\n }\n );\n const matches = limitedDataset.searchTextIn(\n 'subject',\n new RegExp('.*')\n );\n return matches;\n },\n\n liveMarkSpecs: ['highlighted'],\n });\n }\n\n @action\n insert() {\n const selectedRange = this.args.controller.selection.lastRange;\n if (!selectedRange) {\n return;\n }\n const limitedDatastore = this.args.controller.datastore.limitToRange(\n selectedRange,\n 'rangeIsInside'\n );\n const mapping = limitedDatastore\n .match(`>${this.mappingUri}`, 'ext:content', null)\n .asSubjectNodes()\n .next().value;\n const mappingNode = [...mapping.nodes][0];\n let mappingContentNode;\n for (let child of mappingNode.children) {\n if (child.attributeMap.get('property') === 'ext:content') {\n mappingContentNode = child;\n break;\n }\n }\n let textToInsert = '';\n if (this.selectedVariable.length) {\n textToInsert = this.selectedVariable\n .map((variable) => variable.value)\n .join(', ');\n } else {\n textToInsert = this.selectedVariable.value;\n }\n textToInsert = this.wrapVariableInHighlight(textToInsert);\n this.args.controller.executeCommand(\n 'insert-and-collapse',\n this.args.controller,\n textToInsert,\n mappingContentNode\n );\n }\n\n wrapVariableInHighlight(text) {\n return text.replace(\n /\\$\\{(.+?)\\}/g,\n '<span class=\"mark-highlight-manual\">${$1}</span>'\n );\n }\n\n @action\n selectionChanged() {\n this.showCard = false;\n this.selectedVariable = undefined;\n const selectedRange = this.args.controller.selection.lastRange;\n if (!selectedRange) {\n return;\n }\n const fullDatastore = this.args.controller.datastore;\n const limitedDatastore = this.args.controller.datastore.limitToRange(\n selectedRange,\n 'rangeIsInside'\n );\n const mapping = limitedDatastore\n .match(null, 'a', 'ext:Mapping')\n .asQuads()\n .next().value;\n console.log('MAPPING: ', mapping);\n if (mapping) {\n const mappingUri = mapping.subject.value;\n this.mappingUri = mappingUri;\n const mappingTypeTriple = fullDatastore\n .match(`>${mappingUri}`, 'dct:type', null)\n .asQuads()\n .next().value;\n console.log('TRIPLE: ', mappingTypeTriple);\n if (mappingTypeTriple) {\n const mappingType = mappingTypeTriple.object.value;\n if (mappingType === 'codelist') {\n const codelistTriple = fullDatastore\n .match(`>${mappingUri}`, 'ext:codelist', null)\n .asQuads()\n .next().value;\n const codelistSource = this.getCodelistSource(\n fullDatastore,\n mappingUri\n );\n this.showCard = true;\n const codelistUri = codelistTriple.object.value;\n this.fetchCodeListOptions.perform(codelistSource, codelistUri);\n } else if (mappingType === 'location') {\n const codelistSource = this.getCodelistSource(\n fullDatastore,\n mappingUri\n );\n const measureTriple = limitedDatastore\n .match(\n null,\n 'a',\n '>https://data.vlaanderen.be/ns/mobiliteit#Mobiliteitsmaatregel'\n )\n .asQuads()\n .next().value;\n const measureUri = measureTriple.subject.value;\n const zonalityTriple = fullDatastore\n .match(`>${measureUri}`, 'ext:zonality', null)\n .asQuads()\n .next().value;\n const zonalityUri = zonalityTriple.object.value;\n if (zonalityUri === ZONAL_URI) {\n this.fetchCodeListOptions.perform(\n codelistSource,\n this.zonalLocationCodelistUri,\n true\n );\n } else {\n this.fetchCodeListOptions.perform(\n codelistSource,\n this.nonZonalLocationCodelistUri,\n true\n );\n }\n this.showCard = true;\n }\n }\n }\n }\n\n getCodelistSource(fullDatastore, mappingUri) {\n const codelistSourceTriple = fullDatastore\n .match(`>${mappingUri}`, 'dct:source', null)\n .asQuads()\n .next();\n\n if (codelistSourceTriple && codelistSourceTriple.value) {\n const codelistSourceTripleValue = codelistSourceTriple.value;\n return codelistSourceTripleValue.object.value;\n } else {\n return this.endpoint;\n }\n }\n\n @action\n updateVariable(variable) {\n this.selectedVariable = variable;\n }\n\n @task\n *fetchCodeListOptions(endpoint, codelistUri, isLocation) {\n const { type, options } = yield fetchCodeListOptions(endpoint, codelistUri);\n if (isLocation) {\n this.variableOptions = options.map((option) => ({\n label: option.label,\n value: this.wrapInLocation(option.value),\n }));\n } else {\n this.variableOptions = options;\n }\n if (type === MULTI_SELECT_CODELIST_TYPE) {\n this.multiSelect = true;\n } else {\n this.multiSelect = false;\n }\n }\n\n wrapInLocation(value) {\n return `\n <span property=\"https://data.vlaanderen.be/ns/mobiliteit#plaatsbepaling\">\n ${value}\n </span>\n `;\n }\n}\n"],"names":["hbs","EditorPluginsTemplateVariableCardComponent","Component","constructor","arguments","config","getOwner","resolveRegistration","zonalLocationCodelistUri","templateVariablePlugin","endpoint","nonZonalLocationCodelistUri","args","controller","onEvent","selectionChanged","liveHighlights","createLiveMarkSet","datastoreQuery","datastore","limitedDataset","transformDataset","dataset","termconverter","mappings","match","locations","codelists","supportedMappings","union","filter","quad","subject","size","matches","searchTextIn","RegExp","liveMarkSpecs","insert","selectedRange","selection","lastRange","limitedDatastore","limitToRange","mapping","mappingUri","asSubjectNodes","next","value","mappingNode","nodes","mappingContentNode","child","children","attributeMap","get","textToInsert","selectedVariable","length","map","variable","join","wrapVariableInHighlight","executeCommand","text","replace","showCard","undefined","fullDatastore","asQuads","console","log","mappingTypeTriple","mappingType","object","codelistTriple","codelistSource","getCodelistSource","codelistUri","fetchCodeListOptions","perform","measureTriple","measureUri","zonalityTriple","zonalityUri","ZONAL_URI","codelistSourceTriple","codelistSourceTripleValue","updateVariable","isLocation","type","options","variableOptions","option","label","wrapInLocation","MULTI_SELECT_CODELIST_TYPE","multiSelect","tracked","action","task"],"mappings":";;;;;;;;;;;AACA,eAAeA,GAAG,CAAC,qnCAAqnC,CAAC;;;ACMjkC,IAEnDC,0CAA0C,IAAhD,MAAA,GAAA,MAAMA,0CAA0C,SAASC,SAAS,CAAC;AAOhFC,EAAAA,WAAW,GAAG;IACZ,KAAK,CAAC,GAAGC,SAAS,CAAC,CAAA;AAAC,IAAA,0BAAA,CAAA,IAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,IAAA,CAAA,CAAA;AAAA,IAAA,0BAAA,CAAA,IAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,IAAA,CAAA,CAAA;AAAA,IAAA,0BAAA,CAAA,IAAA,EAAA,UAAA,EAAA,YAAA,EAAA,IAAA,CAAA,CAAA;AAAA,IAAA,0BAAA,CAAA,IAAA,EAAA,aAA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AA,kBAAAA,CAAAA,EAAAA,MAAAA,CAAAA,SAAAA,CAAAA,EAAAA,yBAAAA,CAAAA,MAAAA,CAAAA,SAAAA,EAAAA,gBAAAA,EAAAA,CAAAA,MAAM,gKAKNC,IAAI,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,sBAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,MAAA,EAAA;AAnMwD,oBAAA,CAAA,QAAA,EAAA,0CAAA,CAAA;;;;"}
@@ -1,16 +0,0 @@
1
- const TABLE_OF_CONTENTS_DEFAULT_CONFIG = [{
2
- sectionPredicate: 'https://say.data.gift/ns/hasPart',
3
- value: {
4
- predicate: 'https://say.data.gift/ns/heading'
5
- }
6
- }, {
7
- sectionPredicate: 'https://say.data.gift/ns/hasParagraph',
8
- value: '§'
9
- }];
10
- const ZONAL_URI = 'http://lblod.data.gift/concepts/c81c6b96-736a-48cf-b003-6f5cc3dbc55d';
11
- const POTENTIALLY_ZONAL_URI = 'http://lblod.data.gift/concepts/8f9367b2-c717-4be7-8833-4c75bbb4ae1f';
12
- const NON_ZONAL_URI = 'http://lblod.data.gift/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc';
13
- const MULTI_SELECT_CODELIST_TYPE = 'http://lblod.data.gift/concepts/57C93E12-A02C-4D4B-8B95-666B6701286C';
14
-
15
- export { MULTI_SELECT_CODELIST_TYPE as M, NON_ZONAL_URI as N, POTENTIALLY_ZONAL_URI as P, TABLE_OF_CONTENTS_DEFAULT_CONFIG as T, ZONAL_URI as Z };
16
- //# sourceMappingURL=constants-c77fd478.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-c77fd478.js","sources":["../src/constants.js"],"sourcesContent":["export const TABLE_OF_CONTENTS_DEFAULT_CONFIG = [\n {\n sectionPredicate: 'https://say.data.gift/ns/hasPart',\n value: {\n predicate: 'https://say.data.gift/ns/heading',\n },\n },\n {\n sectionPredicate: 'https://say.data.gift/ns/hasParagraph',\n value: '§',\n },\n];\n\nexport const ZONAL_URI =\n 'http://lblod.data.gift/concepts/c81c6b96-736a-48cf-b003-6f5cc3dbc55d';\n\nexport const POTENTIALLY_ZONAL_URI =\n 'http://lblod.data.gift/concepts/8f9367b2-c717-4be7-8833-4c75bbb4ae1f';\n\nexport const NON_ZONAL_URI =\n 'http://lblod.data.gift/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc';\n\nexport const MULTI_SELECT_CODELIST_TYPE =\n 'http://lblod.data.gift/concepts/57C93E12-A02C-4D4B-8B95-666B6701286C';\n"],"names":["TABLE_OF_CONTENTS_DEFAULT_CONFIG","sectionPredicate","value","predicate","ZONAL_URI","POTENTIALLY_ZONAL_URI","NON_ZONAL_URI","MULTI_SELECT_CODELIST_TYPE"],"mappings":"AAAO,MAAMA,gCAAgC,GAAG,CAC9C;AACEC,EAAAA,gBAAgB,EAAE,kCAAkC;AACpDC,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAE,kCAAA;AACb,GAAA;AACF,CAAC,EACD;AACEF,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,EAAAA,KAAK,EAAE,GAAA;AACT,CAAC,EACF;AAEM,MAAME,SAAS,GACpB,uEAAsE;AAEjE,MAAMC,qBAAqB,GAChC,uEAAsE;AAEjE,MAAMC,aAAa,GACxB,uEAAsE;AAEjE,MAAMC,0BAA0B,GACrC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-data-284bf106.js","sources":["../src/utils/variable-plugins/fetch-data.js"],"sourcesContent":["function generateCodeListOptionsQuery(codelistUri) {\n const codeListOptionsQuery = `\n PREFIX lblodMobilitiet: <http://data.lblod.info/vocabularies/mobiliteit/>\n PREFIX dct: <http://purl.org/dc/terms/>\n PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\n PREFIX schema: <http://schema.org/>\n SELECT DISTINCT * WHERE { \n <${codelistUri}> a lblodMobilitiet:Codelist.\n ?codelistOptions skos:inScheme <${codelistUri}>.\n ?codelistOptions skos:prefLabel ?label.\n OPTIONAL {\n ?codelistOptions schema:position ?position .\n }\n OPTIONAL {\n <${codelistUri}> dct:type ?type.\n }\n }\n ORDER BY (!BOUND(?position)) ASC(?position)\n `;\n return codeListOptionsQuery;\n}\n\nfunction generateCodeListsByPublisherQuery(publisher) {\n const codeListOptionsQuery = `\n PREFIX lblodMobilitiet: <http://data.lblod.info/vocabularies/mobiliteit/>\n PREFIX dct: <http://purl.org/dc/terms/>\n PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\n PREFIX mu: <http://mu.semte.ch/vocabularies/core/>\n SELECT DISTINCT * WHERE { \n ?uri a lblodMobilitiet:Codelist;\n skos:prefLabel ?label.\n ${\n publisher\n ? `\n ?uri dct:publisher <${publisher}>.\n `\n : ''\n }\n }\n `;\n return codeListOptionsQuery;\n}\n\nexport async function fetchCodeListOptions(endpoint, codelistUri) {\n const codelistsOptionsQueryResult = await executeQuery(\n endpoint,\n generateCodeListOptionsQuery(codelistUri)\n );\n const options = parseCodelistOptions(codelistsOptionsQueryResult);\n return {\n type:\n codelistsOptionsQueryResult.results.bindings[0] &&\n codelistsOptionsQueryResult.results.bindings[0].type\n ? codelistsOptionsQueryResult.results.bindings[0].type.value\n : '',\n options,\n };\n}\n\nexport async function fetchCodeListsByPublisher(endpoint, publisher) {\n const codelistsOptionsQueryResult = await executeQuery(\n endpoint,\n generateCodeListsByPublisherQuery(publisher)\n );\n const bindings = codelistsOptionsQueryResult.results.bindings;\n return bindings.map((binding) => ({\n uri: binding.uri.value,\n label: binding.label.value,\n }));\n}\n\nfunction parseCodelistOptions(queryResult) {\n const bindings = queryResult.results.bindings;\n return bindings.map((binding) => ({\n value: binding.label.value,\n label: binding.label.value,\n }));\n}\n\nasync function executeQuery(endpoint, query) {\n const encodedQuery = encodeURIComponent(query.trim());\n const response = await fetch(endpoint, {\n method: 'POST',\n mode: 'cors',\n headers: {\n Accept: 'application/sparql-results+json',\n 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n },\n body: `query=${encodedQuery}`,\n });\n if (response.ok) {\n return response.json();\n } else {\n throw new Error(\n `Request to MOW backend was unsuccessful: [${response.status}] ${response.statusText}`\n );\n }\n}\n"],"names":["generateCodeListOptionsQuery","codelistUri","codeListOptionsQuery","generateCodeListsByPublisherQuery","publisher","fetchCodeListOptions","endpoint","codelistsOptionsQueryResult","executeQuery","options","parseCodelistOptions","type","results","bindings","value","fetchCodeListsByPublisher","map","binding","uri","label","queryResult","query","encodedQuery","encodeURIComponent","trim","response","fetch","method","mode","headers","Accept","body","ok","json","Error","status","statusText"],"mappings":"AAAA,SAASA,4BAA4B,CAACC,WAAW,EAAE;AACjD,EAAA,MAAMC,oBAAoB,GAAI,CAAA;AAChC;AACA;AACA;AACA;AACA;AACA,OAAA,EAASD,WAAY,CAAA;AACrB,sCAAA,EAAwCA,WAAY,CAAA;AACpD;AACA;AACA;AACA;AACA;AACA,SAAA,EAAWA,WAAY,CAAA;AACvB;AACA;AACA;AACA,EAAG,CAAA,CAAA;AACD,EAAA,OAAOC,oBAAoB,CAAA;AAC7B,CAAA;AAEA,SAASC,iCAAiC,CAACC,SAAS,EAAE;AACpD,EAAA,MAAMF,oBAAoB,GAAI,CAAA;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAA,EACQE,SAAS,GACJ,CAAA;AACb,4BAAA,EAA8BA,SAAU,CAAA;AACxC,MAAA,CAAO,GACK,EACL,CAAA;AACP;AACA,EAAG,CAAA,CAAA;AACD,EAAA,OAAOF,oBAAoB,CAAA;AAC7B,CAAA;AAEO,eAAeG,oBAAoB,CAACC,QAAQ,EAAEL,WAAW,EAAE;EAChE,MAAMM,2BAA2B,GAAG,MAAMC,YAAY,CACpDF,QAAQ,EACRN,4BAA4B,CAACC,WAAW,CAAC,CAC1C,CAAA;AACD,EAAA,MAAMQ,OAAO,GAAGC,oBAAoB,CAACH,2BAA2B,CAAC,CAAA;EACjE,OAAO;AACLI,IAAAA,IAAI,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,EAAE;AACrCqB,IAAAA,MAAM,EAAE,MAAM;AACdC,IAAAA,IAAI,EAAE,MAAM;AACZC,IAAAA,OAAO,EAAE;AACPC,MAAAA,MAAM,EAAE,iCAAiC;AACzC,MAAA,cAAc,EAAE,kDAAA;KACjB;IACDC,IAAI,EAAG,SAAQT,YAAa,CAAA,CAAA;AAC9B,GAAC,CAAC,CAAA;EACF,IAAIG,QAAQ,CAACO,EAAE,EAAE;IACf,OAAOP,QAAQ,CAACQ,IAAI,EAAE,CAAA;AACxB,GAAC,MAAM;AACL,IAAA,MAAM,IAAIC,KAAK,CACZ,CAAA,0CAAA,EAA4CT,QAAQ,CAACU,MAAO,CAAA,EAAA,EAAIV,QAAQ,CAACW,UAAW,CAAA,CAAC,CACvF,CAAA;AACH,GAAA;AACF;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"limit-text.js","sources":["../../src/helpers/limit-text.js"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nexport default helper(function limitText([string]) {\n if (string.length > 140) {\n return string.slice(0, 140) + '...';\n } else {\n return string;\n }\n});\n"],"names":["helper","limitText","string","length","slice"],"mappings":";;AAEA,gBAAeA,MAAM,CAAC,SAASC,SAAS,CAAC,CAACC,MAAM,CAAC,EAAE;AACjD,EAAA,IAAIA,MAAM,CAACC,MAAM,GAAG,GAAG,EAAE;IACvB,OAAOD,MAAM,CAACE,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAA;AACrC,GAAC,MAAM;AACL,IAAA,OAAOF,MAAM,CAAA;AACf,GAAA;AACF,CAAC,CAAC;;;;"}
@@ -1,10 +0,0 @@
1
- function includeInstructions(html, instructions, annotated) {
2
- let finalHtml = html;
3
- for (let instruction of instructions) {
4
- finalHtml = finalHtml.replaceAll(`\${${instruction.name}}`, annotated ? instruction.annotatedTemplate : instruction.template);
5
- }
6
- return finalHtml;
7
- }
8
-
9
- export { includeInstructions as i };
10
- //# sourceMappingURL=includeInstructions-a32c24e6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"includeInstructions-a32c24e6.js","sources":["../src/utils/roadsign-regulation-plugin/includeInstructions.js"],"sourcesContent":["export default function includeInstructions(html, instructions, annotated) {\n let finalHtml = html;\n for (let instruction of instructions) {\n finalHtml = finalHtml.replaceAll(\n `\\${${instruction.name}}`,\n annotated ? instruction.annotatedTemplate : instruction.template\n );\n }\n return finalHtml;\n}\n"],"names":["includeInstructions","html","instructions","annotated","finalHtml","instruction","replaceAll","name","annotatedTemplate","template"],"mappings":"AAAe,SAASA,mBAAmB,CAACC,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAE;EACzE,IAAIC,SAAS,GAAGH,IAAI,CAAA;AACpB,EAAA,KAAK,IAAII,WAAW,IAAIH,YAAY,EAAE;IACpCE,SAAS,GAAGA,SAAS,CAACE,UAAU,CAC7B,CAAKD,GAAAA,EAAAA,WAAW,CAACE,IAAK,CAAA,CAAA,CAAE,EACzBJ,SAAS,GAAGE,WAAW,CAACG,iBAAiB,GAAGH,WAAW,CAACI,QAAQ,CACjE,CAAA;AACH,GAAA;AACA,EAAA,OAAOL,SAAS,CAAA;AAClB;;;;"}
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,401 +0,0 @@
1
- import { b as _defineProperty, _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-537ad14b.js';
2
- import { inject } from '@ember/service';
3
- import { InlineComponentSpec } from '@lblod/ember-rdfa-editor/model/inline-components/model-inline-component';
4
- import { isElement } from '@lblod/ember-rdfa-editor/utils/dom-helpers';
5
- import { T as TABLE_OF_CONTENTS_DEFAULT_CONFIG } from '../constants-c77fd478.js';
6
-
7
- class BesluitTypePlugin {
8
- constructor() {
9
- _defineProperty(this, "controller", void 0);
10
- }
11
- get name() {
12
- return 'besluit-type-plugin';
13
- }
14
- initialize(controller) {
15
- this.controller = controller;
16
- controller.registerWidget({
17
- componentName: 'besluit-type-plugin/toolbar-dropdown',
18
- identifier: 'besluit-type-plugin/dropdown',
19
- desiredLocation: 'toolbar'
20
- });
21
- }
22
- }
23
-
24
- const citatenMarkSpec = {
25
- matchers: [{
26
- tag: 'span',
27
- attributeBuilder: node => {
28
- if (node.dataset && Object.prototype.hasOwnProperty.call(node.dataset, 'citatenText')) {
29
- return {
30
- text: node.dataset.citatenText,
31
- legislationTypeUri: node.dataset.legislationTypeUri
32
- };
33
- }
34
- }
35
- }],
36
- name: 'citaten',
37
- priority: 100,
38
- renderSpec(mark) {
39
- return {
40
- tag: 'span',
41
- attributes: {
42
- 'data-citaten-text': mark.attributes.text,
43
- 'data-legislation-type-uri': mark.attributes.legislationTypeUri
44
- },
45
- children: [0]
46
- };
47
- }
48
- };
49
-
50
- class CitatenPlugin {
51
- constructor() {
52
- _defineProperty(this, "controller", void 0);
53
- }
54
- get name() {
55
- return 'citaten-plugin';
56
- }
57
- async initialize(controller) {
58
- this.controller = controller;
59
- controller.registerWidget({
60
- desiredLocation: 'sidebar',
61
- componentName: 'citaten-plugin/citaat-card',
62
- identifier: 'citaten-plugin/citaat-card'
63
- });
64
- controller.registerWidget({
65
- desiredLocation: 'insertSidebar',
66
- componentName: 'citaten-plugin/citaat-insert',
67
- identifier: 'citaten-plugin/citaat-insert'
68
- });
69
- controller.registerMark(citatenMarkSpec);
70
- }
71
- }
72
-
73
- var _class, _descriptor;
74
- let StandardTemplatePlugin = (_class = class StandardTemplatePlugin {
75
- constructor() {
76
- _initializerDefineProperty(this, "standardTemplatePlugin", _descriptor, this);
77
- _defineProperty(this, "matches", new Set());
78
- _defineProperty(this, "controller", void 0);
79
- }
80
- get name() {
81
- return 'standard-template-plugin';
82
- }
83
- async initialize(controller) {
84
- let templates;
85
- try {
86
- templates = await this.standardTemplatePlugin.fetchTemplates.perform();
87
- } catch (e) {
88
- console.warn(`Plugin ${this.name} had trouble initializing: Templates failed to load`);
89
- }
90
- if (templates) {
91
- templates.forEach(template => {
92
- template.matches.forEach(match => this.matches.add(match));
93
- });
94
- }
95
- this.controller = controller;
96
- controller.registerWidget({
97
- desiredLocation: 'insertSidebar',
98
- componentName: 'standard-template-plugin/template-card',
99
- identifier: 'standard-template-plugin/template-card'
100
- });
101
- }
102
- }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "standardTemplatePlugin", [inject], {
103
- configurable: true,
104
- enumerable: true,
105
- writable: true,
106
- initializer: null
107
- })), _class);
108
-
109
- const defaultResources = ['https://say.data.gift/ns/Article', 'https://say.data.gift/ns/Subsection', 'https://say.data.gift/ns/Section', 'https://say.data.gift/ns/Chapter', 'https://say.data.gift/ns/Title'];
110
-
111
- class GenerateTemplateCommand {
112
- constructor(model) {
113
- _defineProperty(this, "name", 'generateTemplate');
114
- this.model = model;
115
- }
116
- canExecute() {
117
- return true;
118
- }
119
- execute(controller) {
120
- let uris = [];
121
- for (let resource of defaultResources) {
122
- const quads = [...controller.datastore.match(null, 'a', `>${resource}`).asQuads()];
123
- const resourceUris = quads.map(quad => quad.subject.value);
124
- uris = [...uris, ...resourceUris];
125
- }
126
- let documentHTML = controller.htmlContent;
127
- for (let uri of uris) {
128
- const uriParts = uri.split('/');
129
- uriParts.pop();
130
- const uriWithoutUuid = uriParts.join('/');
131
- documentHTML = documentHTML.replace(uri, `${uriWithoutUuid}/\${generateUuid()}`);
132
- }
133
- return documentHTML;
134
- }
135
- }
136
-
137
- class GenerateTemplatePlugin {
138
- constructor() {
139
- _defineProperty(this, "controller", void 0);
140
- }
141
- get name() {
142
- return 'generate-template-plugin';
143
- }
144
- initialize(controller) {
145
- this.controller = controller;
146
- controller.registerCommand(new GenerateTemplateCommand(controller._rawEditor._model));
147
- }
148
- }
149
-
150
- /**
151
- * Entrypoint for the roadsign regulation plugin.
152
- */
153
- class RoadSignRegulationPlugin {
154
- constructor() {
155
- _defineProperty(this, "controller", void 0);
156
- }
157
- get name() {
158
- return 'roadsign-regulation-plugin';
159
- }
160
-
161
- /**
162
- * Gets called when the editor loads.
163
- * Can optionally be async if needed.
164
- * @param controller
165
- */
166
- initialize(controller) {
167
- this.controller = controller;
168
- controller.registerWidget({
169
- componentName: 'roadsign-regulation-plugin/roadsign-regulation-card',
170
- identifier: 'roadsign-regulation-plugin/roadsign-regulation-card',
171
- desiredLocation: 'insertSidebar'
172
- });
173
- }
174
- }
175
-
176
- class TableOfContentsSpec extends InlineComponentSpec {
177
- _renderStatic() {
178
- // TODO: should be implemented when static version of inline components work correctly
179
- return '';
180
- }
181
- constructor(controller) {
182
- super('table-of-contents-plugin/inline-components/table-of-contents', 'div', controller);
183
- _defineProperty(this, "matcher", {
184
- tag: this.tag,
185
- attributeBuilder: node => {
186
- if (isElement(node)) {
187
- if (node.classList.contains('inline-component') && (node.classList.contains(this.name) || node.classList.contains('inline-components/table-of-contents')) || node.dataset.inlineComponent === this.name || node.dataset.inlineComponent === 'inline-components/table-of-contents') {
188
- return {};
189
- }
190
- }
191
- return null;
192
- }
193
- });
194
- _defineProperty(this, "properties", {
195
- config: {
196
- serializable: true,
197
- defaultValue: TABLE_OF_CONTENTS_DEFAULT_CONFIG
198
- }
199
- });
200
- }
201
- }
202
-
203
- class TableOfContentsPlugin {
204
- constructor() {
205
- _defineProperty(this, "controller", void 0);
206
- }
207
- get name() {
208
- return 'table-of-contents-plugin';
209
- }
210
- initialize(controller, options) {
211
- this.controller = controller;
212
- controller.registerInlineComponent(new TableOfContentsSpec(this.controller));
213
- const widgetArgs = options?.config ? {
214
- config: options.config
215
- } : {};
216
- controller.registerWidget({
217
- componentName: 'table-of-contents-plugin/card',
218
- identifier: 'table-of-contents-plugin/card',
219
- desiredLocation: 'sidebar',
220
- widgetArgs
221
- });
222
- }
223
- }
224
-
225
- class ModifyDateCommand {
226
- constructor(model) {
227
- _defineProperty(this, "name", 'modify-date');
228
- this.model = model;
229
- }
230
- canExecute() {
231
- return true;
232
- }
233
- execute(controller, element, dateValue, onlyDate) {
234
- this.model.change(mutator => {
235
- const range = controller.rangeFactory.fromInElement(element, 0, element.getMaxOffset());
236
- mutator.insertText(range, this.formatDate(dateValue, onlyDate), range.getMarks());
237
- element.attributeMap.set('content', dateValue.toISOString());
238
- });
239
- }
240
- formatDate(date, onlyDate) {
241
- let options = {
242
- year: 'numeric',
243
- month: '2-digit',
244
- day: '2-digit',
245
- hour: '2-digit',
246
- minute: '2-digit'
247
- };
248
- if (onlyDate) {
249
- options.hour = undefined;
250
- options.minute = undefined;
251
- }
252
- return date.toLocaleString('nl-BE', options);
253
- }
254
- }
255
-
256
- class RdfaDatePlugin {
257
- constructor() {
258
- _defineProperty(this, "controller", void 0);
259
- }
260
- get name() {
261
- return 'rdfa-date-plugin';
262
- }
263
- initialize(controller) {
264
- this.controller = controller;
265
- controller.registerWidget({
266
- componentName: 'rdfa-date-plugin/rdfa-date-plugin-card',
267
- identifier: 'rdfa-date-plugin/card',
268
- desiredLocation: 'sidebar'
269
- });
270
- controller.registerWidget({
271
- componentName: 'rdfa-date-plugin/rdfa-date-plugin-insert',
272
- identifier: 'rdfa-date-plugin/insert',
273
- desiredLocation: 'insertSidebar'
274
- });
275
- controller.registerCommand(new ModifyDateCommand(controller._rawEditor._model));
276
- }
277
- }
278
-
279
- class ImportSnippetPlugin {
280
- constructor() {
281
- _defineProperty(this, "controller", void 0);
282
- }
283
- get name() {
284
- return 'import-snippet-plugin';
285
- }
286
- initialize(controller) {
287
- this.controller = controller;
288
- controller.registerWidget({
289
- componentName: 'import-snippet-plugin/card',
290
- identifier: 'import-snippet-plugin/card',
291
- desiredLocation: 'sidebar'
292
- });
293
- }
294
- }
295
-
296
- class InsertAndCollapseCommand {
297
- constructor(model) {
298
- _defineProperty(this, "name", 'insert-and-collapse');
299
- this.model = model;
300
- }
301
- canExecute() {
302
- return true;
303
- }
304
- execute(controller, htmlString, node) {
305
- const range = controller.rangeFactory.fromInNode(node, 0, node.getMaxOffset());
306
- controller.executeCommand('insert-html', htmlString, range);
307
- controller.selection.selectRange(controller.selection.lastRange.shrinkToVisible());
308
- const containedNodes = controller.selection.lastRange.contextNodes('rangeContains');
309
- containedNodes.next();
310
- const span = containedNodes.next().value;
311
- const finalRange = controller.rangeFactory.fromInNode(span);
312
- controller.selection.selectRange(finalRange);
313
- this.model.writeSelection();
314
- }
315
- }
316
-
317
- class TemplateVariablePlugin {
318
- constructor() {
319
- _defineProperty(this, "controller", void 0);
320
- }
321
- get name() {
322
- return 'template-variable-plugin';
323
- }
324
- initialize(controller) {
325
- this.controller = controller;
326
- controller.registerWidget({
327
- componentName: 'template-variable-plugin/template-variable-card',
328
- identifier: 'template-variable-plugin/card',
329
- desiredLocation: 'sidebar'
330
- });
331
- controller.registerCommand(new InsertAndCollapseCommand(controller._rawEditor._model));
332
- }
333
- }
334
-
335
- class InsertVariablePlugin {
336
- constructor() {
337
- _defineProperty(this, "controller", void 0);
338
- }
339
- get name() {
340
- return 'insert-variable-plugin';
341
- }
342
- initialize(controller, options) {
343
- this.controller = controller;
344
- controller.registerWidget({
345
- componentName: 'insert-variable-plugin/insert-variable-card',
346
- identifier: 'insert-variable-plugin/card',
347
- desiredLocation: 'sidebar',
348
- widgetArgs: {
349
- options: options
350
- }
351
- });
352
- }
353
- }
354
-
355
- function pluginFactory(plugin) {
356
- return {
357
- create: initializers => {
358
- const pluginInstance = new plugin();
359
- Object.assign(pluginInstance, initializers);
360
- return pluginInstance;
361
- }
362
- };
363
- }
364
- function initialize(application) {
365
- application.register('plugin:citaten', pluginFactory(CitatenPlugin), {
366
- singleton: false
367
- });
368
- application.register('plugin:standard-template', pluginFactory(StandardTemplatePlugin), {
369
- singleton: false
370
- });
371
- application.register('plugin:besluit-type', pluginFactory(BesluitTypePlugin), {
372
- singleton: false
373
- });
374
- application.register('plugin:table-of-contents', pluginFactory(TableOfContentsPlugin), {
375
- singleton: false
376
- });
377
- application.register('plugin:generate-template', pluginFactory(GenerateTemplatePlugin), {
378
- singleton: false
379
- });
380
- application.register('plugin:roadsign-regulation', pluginFactory(RoadSignRegulationPlugin), {
381
- singleton: false
382
- });
383
- application.register('plugin:rdfa-date', pluginFactory(RdfaDatePlugin), {
384
- singleton: false
385
- });
386
- application.register('plugin:import-snippet', pluginFactory(ImportSnippetPlugin), {
387
- singleton: false
388
- });
389
- application.register('plugin:template-variable', pluginFactory(TemplateVariablePlugin), {
390
- singleton: false
391
- });
392
- application.register('plugin:insert-variable', pluginFactory(InsertVariablePlugin), {
393
- singleton: false
394
- });
395
- }
396
- var pluginInitializer = {
397
- initialize
398
- };
399
-
400
- export { pluginInitializer as default, initialize };
401
- //# sourceMappingURL=plugin-initializer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-initializer.js","sources":["../../src/plugins/besluit-type-plugin.js","../../src/marks/citaten-mark.js","../../src/plugins/citaten-plugin.js","../../src/plugins/standard-template-plugin.js","../../src/utils/generate-template-plugin/default-resources.js","../../src/commands/generate-template-command.js","../../src/plugins/generate-template-plugin.js","../../src/plugins/roadsign-regulation-plugin.js","../../src/inline-components/table-of-contents.js","../../src/plugins/table-of-contents-plugin.js","../../src/commands/modify-date-command.js","../../src/plugins/rdfa-date-plugin.js","../../src/plugins/import-snippet-plugin.js","../../src/commands/insert-and-collapse.js","../../src/plugins/template-variable-plugin.js","../../src/plugins/insert-variable-plugin.js","../../src/initializers/plugin-initializer.js"],"sourcesContent":["export default class BesluitTypePlugin {\n controller;\n\n get name() {\n return 'besluit-type-plugin';\n }\n\n initialize(controller) {\n this.controller = controller;\n controller.registerWidget({\n componentName: 'besluit-type-plugin/toolbar-dropdown',\n identifier: 'besluit-type-plugin/dropdown',\n desiredLocation: 'toolbar',\n });\n }\n}\n","const citatenMarkSpec = {\n matchers: [\n {\n tag: 'span',\n attributeBuilder: (node) => {\n if (\n node.dataset &&\n Object.prototype.hasOwnProperty.call(node.dataset, 'citatenText')\n ) {\n return {\n text: node.dataset.citatenText,\n legislationTypeUri: node.dataset.legislationTypeUri,\n };\n }\n },\n },\n ],\n name: 'citaten',\n priority: 100,\n renderSpec(mark) {\n return {\n tag: 'span',\n attributes: {\n 'data-citaten-text': mark.attributes.text,\n 'data-legislation-type-uri': mark.attributes.legislationTypeUri,\n },\n children: [0],\n };\n },\n};\n\nexport default citatenMarkSpec;\n","import CitatenMark from '../marks/citaten-mark';\nexport default class CitatenPlugin {\n controller;\n\n get name() {\n return 'citaten-plugin';\n }\n async initialize(controller) {\n this.controller = controller;\n controller.registerWidget({\n desiredLocation: 'sidebar',\n componentName: 'citaten-plugin/citaat-card',\n identifier: 'citaten-plugin/citaat-card',\n });\n controller.registerWidget({\n desiredLocation: 'insertSidebar',\n componentName: 'citaten-plugin/citaat-insert',\n identifier: 'citaten-plugin/citaat-insert',\n });\n controller.registerMark(CitatenMark);\n }\n}\n","import { inject as service } from '@ember/service';\n\nexport default class StandardTemplatePlugin {\n @service standardTemplatePlugin;\n matches = new Set();\n controller;\n\n get name() {\n return 'standard-template-plugin';\n }\n\n async initialize(controller) {\n let templates;\n try {\n templates = await this.standardTemplatePlugin.fetchTemplates.perform();\n } catch (e) {\n console.warn(\n `Plugin ${this.name} had trouble initializing: Templates failed to load`\n );\n }\n if (templates) {\n templates.forEach((template) => {\n template.matches.forEach((match) => this.matches.add(match));\n });\n }\n this.controller = controller;\n controller.registerWidget({\n desiredLocation: 'insertSidebar',\n componentName: 'standard-template-plugin/template-card',\n identifier: 'standard-template-plugin/template-card',\n });\n }\n}\n","const defaultResources = [\n 'https://say.data.gift/ns/Article',\n 'https://say.data.gift/ns/Subsection',\n 'https://say.data.gift/ns/Section',\n 'https://say.data.gift/ns/Chapter',\n 'https://say.data.gift/ns/Title',\n];\n\nexport default defaultResources;\n","import defaultResources from '../utils/generate-template-plugin/default-resources';\n\nexport default class GenerateTemplateCommand {\n name = 'generateTemplate';\n\n constructor(model) {\n this.model = model;\n }\n\n canExecute() {\n return true;\n }\n\n execute(controller) {\n let uris = [];\n for (let resource of defaultResources) {\n const quads = [\n ...controller.datastore.match(null, 'a', `>${resource}`).asQuads(),\n ];\n const resourceUris = quads.map((quad) => quad.subject.value);\n uris = [...uris, ...resourceUris];\n }\n let documentHTML = controller.htmlContent;\n for (let uri of uris) {\n const uriParts = uri.split('/');\n uriParts.pop();\n const uriWithoutUuid = uriParts.join('/');\n documentHTML = documentHTML.replace(\n uri,\n `${uriWithoutUuid}/\\${generateUuid()}`\n );\n }\n return documentHTML;\n }\n}\n","import GenerateTemplateCommand from '../commands/generate-template-command';\n\nexport default class GenerateTemplatePlugin {\n controller;\n\n get name() {\n return 'generate-template-plugin';\n }\n\n initialize(controller) {\n this.controller = controller;\n controller.registerCommand(\n new GenerateTemplateCommand(controller._rawEditor._model)\n );\n }\n}\n","/**\n * Entrypoint for the roadsign regulation plugin.\n */\nexport default class RoadSignRegulationPlugin {\n controller;\n\n get name() {\n return 'roadsign-regulation-plugin';\n }\n\n /**\n * Gets called when the editor loads.\n * Can optionally be async if needed.\n * @param controller\n */\n initialize(controller) {\n this.controller = controller;\n controller.registerWidget({\n componentName: 'roadsign-regulation-plugin/roadsign-regulation-card',\n identifier: 'roadsign-regulation-plugin/roadsign-regulation-card',\n desiredLocation: 'insertSidebar',\n });\n }\n}\n","import { InlineComponentSpec } from '@lblod/ember-rdfa-editor/model/inline-components/model-inline-component';\nimport { isElement } from '@lblod/ember-rdfa-editor/utils/dom-helpers';\nimport { TABLE_OF_CONTENTS_DEFAULT_CONFIG } from '../constants';\nexport default class TableOfContentsSpec extends InlineComponentSpec {\n matcher = {\n tag: this.tag,\n attributeBuilder: (node) => {\n if (isElement(node)) {\n if (\n (node.classList.contains('inline-component') &&\n (node.classList.contains(this.name) ||\n node.classList.contains(\n 'inline-components/table-of-contents'\n ))) ||\n node.dataset.inlineComponent === this.name ||\n node.dataset.inlineComponent === 'inline-components/table-of-contents'\n ) {\n return {};\n }\n }\n return null;\n },\n };\n\n properties = {\n config: {\n serializable: true,\n defaultValue: TABLE_OF_CONTENTS_DEFAULT_CONFIG,\n },\n };\n\n _renderStatic() {\n // TODO: should be implemented when static version of inline components work correctly\n return '';\n }\n constructor(controller) {\n super(\n 'table-of-contents-plugin/inline-components/table-of-contents',\n 'div',\n controller\n );\n }\n}\n","import TableOfContentsSpec from '../inline-components/table-of-contents';\n\nexport default class TableOfContentsPlugin {\n controller;\n\n get name() {\n return 'table-of-contents-plugin';\n }\n\n initialize(controller, options) {\n this.controller = controller;\n controller.registerInlineComponent(\n new TableOfContentsSpec(this.controller)\n );\n const widgetArgs = options?.config\n ? {\n config: options.config,\n }\n : {};\n controller.registerWidget({\n componentName: 'table-of-contents-plugin/card',\n identifier: 'table-of-contents-plugin/card',\n desiredLocation: 'sidebar',\n widgetArgs,\n });\n }\n}\n","export default class ModifyDateCommand {\n name = 'modify-date';\n\n constructor(model) {\n this.model = model;\n }\n\n canExecute() {\n return true;\n }\n\n execute(controller, element, dateValue, onlyDate) {\n this.model.change((mutator) => {\n const range = controller.rangeFactory.fromInElement(\n element,\n 0,\n element.getMaxOffset()\n );\n mutator.insertText(\n range,\n this.formatDate(dateValue, onlyDate),\n range.getMarks()\n );\n element.attributeMap.set('content', dateValue.toISOString());\n });\n }\n\n formatDate(date, onlyDate) {\n let options = {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n };\n if (onlyDate) {\n options.hour = undefined;\n options.minute = undefined;\n }\n return date.toLocaleString('nl-BE', options);\n }\n}\n","import ModifyDateCommand from '../commands/modify-date-command';\n\nexport default class RdfaDatePlugin {\n controller;\n\n get name() {\n return 'rdfa-date-plugin';\n }\n\n initialize(controller) {\n this.controller = controller;\n controller.registerWidget({\n componentName: 'rdfa-date-plugin/rdfa-date-plugin-card',\n identifier: 'rdfa-date-plugin/card',\n desiredLocation: 'sidebar',\n });\n controller.registerWidget({\n componentName: 'rdfa-date-plugin/rdfa-date-plugin-insert',\n identifier: 'rdfa-date-plugin/insert',\n desiredLocation: 'insertSidebar',\n });\n controller.registerCommand(\n new ModifyDateCommand(controller._rawEditor._model)\n );\n }\n}\n","export default class ImportSnippetPlugin {\n controller;\n\n get name() {\n return 'import-snippet-plugin';\n }\n\n initialize(controller) {\n this.controller = controller;\n controller.registerWidget({\n componentName: 'import-snippet-plugin/card',\n identifier: 'import-snippet-plugin/card',\n desiredLocation: 'sidebar',\n });\n }\n}\n","export default class InsertAndCollapseCommand {\n name = 'insert-and-collapse';\n\n constructor(model) {\n this.model = model;\n }\n\n canExecute() {\n return true;\n }\n\n execute(controller, htmlString, node) {\n const range = controller.rangeFactory.fromInNode(\n node,\n 0,\n node.getMaxOffset()\n );\n controller.executeCommand('insert-html', htmlString, range);\n\n controller.selection.selectRange(\n controller.selection.lastRange.shrinkToVisible()\n );\n const containedNodes =\n controller.selection.lastRange.contextNodes('rangeContains');\n containedNodes.next();\n const span = containedNodes.next().value;\n const finalRange = controller.rangeFactory.fromInNode(span);\n controller.selection.selectRange(finalRange);\n\n this.model.writeSelection();\n }\n}\n","import InsertAndCollapseCommand from '../commands/insert-and-collapse';\n\nexport default class TemplateVariablePlugin {\n controller;\n\n get name() {\n return 'template-variable-plugin';\n }\n\n initialize(controller) {\n this.controller = controller;\n controller.registerWidget({\n componentName: 'template-variable-plugin/template-variable-card',\n identifier: 'template-variable-plugin/card',\n desiredLocation: 'sidebar',\n });\n controller.registerCommand(\n new InsertAndCollapseCommand(controller._rawEditor._model)\n );\n }\n}\n","export default class InsertVariablePlugin {\n controller;\n\n get name() {\n return 'insert-variable-plugin';\n }\n\n initialize(controller, options) {\n this.controller = controller;\n controller.registerWidget({\n componentName: 'insert-variable-plugin/insert-variable-card',\n identifier: 'insert-variable-plugin/card',\n desiredLocation: 'sidebar',\n widgetArgs: {\n options: options,\n },\n });\n }\n}\n","import BesluitTypePlugin from '../plugins/besluit-type-plugin';\nimport CitatenPlugin from '../plugins/citaten-plugin';\nimport StandardTemplatePlugin from '../plugins/standard-template-plugin';\nimport GenerateTemplatePlugin from '../plugins/generate-template-plugin';\nimport RoadSignRegulationPlugin from '../plugins/roadsign-regulation-plugin';\nimport TableOfContentsPlugin from '../plugins/table-of-contents-plugin';\nimport RdfaDatePlugin from '../plugins/rdfa-date-plugin';\nimport ImportSnippetPlugin from '../plugins/import-snippet-plugin';\nimport TemplateVariablePlugin from '../plugins/template-variable-plugin';\nimport InsertVariablePlugin from '../plugins/insert-variable-plugin';\n\nfunction pluginFactory(plugin) {\n return {\n create: (initializers) => {\n const pluginInstance = new plugin();\n Object.assign(pluginInstance, initializers);\n return pluginInstance;\n },\n };\n}\n\nexport function initialize(application) {\n application.register('plugin:citaten', pluginFactory(CitatenPlugin), {\n singleton: false,\n });\n application.register(\n 'plugin:standard-template',\n pluginFactory(StandardTemplatePlugin),\n { singleton: false }\n );\n application.register(\n 'plugin:besluit-type',\n pluginFactory(BesluitTypePlugin),\n { singleton: false }\n );\n application.register(\n 'plugin:table-of-contents',\n pluginFactory(TableOfContentsPlugin),\n { singleton: false }\n );\n application.register(\n 'plugin:generate-template',\n pluginFactory(GenerateTemplatePlugin),\n { singleton: false }\n );\n application.register(\n 'plugin:roadsign-regulation',\n pluginFactory(RoadSignRegulationPlugin),\n { singleton: false }\n );\n application.register('plugin:rdfa-date', pluginFactory(RdfaDatePlugin), {\n singleton: false,\n });\n application.register(\n 'plugin:import-snippet',\n pluginFactory(ImportSnippetPlugin),\n {\n singleton: false,\n }\n );\n application.register(\n 'plugin:template-variable',\n pluginFactory(TemplateVariablePlugin),\n { singleton: false }\n );\n application.register(\n 'plugin:insert-variable',\n pluginFactory(InsertVariablePlugin),\n { singleton: false }\n );\n}\n\nexport default {\n initialize,\n};\n"],"names":["BesluitTypePlugin","name","initialize","controller","registerWidget","componentName","identifier","desiredLocation","citatenMarkSpec","matchers","tag","attributeBuilder","node","dataset","Object","prototype","hasOwnProperty","call","text","citatenText","legislationTypeUri","priority","renderSpec","mark","attributes","children","CitatenPlugin","registerMark","CitatenMark","StandardTemplatePlugin","Set","templates","standardTemplatePlugin","fetchTemplates","perform","e","console","warn","forEach","template","matches","match","add","service","defaultResources","GenerateTemplateCommand","constructor","model","canExecute","execute","uris","resource","quads","datastore","asQuads","resourceUris","map","quad","subject","value","documentHTML","htmlContent","uri","uriParts","split","pop","uriWithoutUuid","join","replace","GenerateTemplatePlugin","registerCommand","_rawEditor","_model","RoadSignRegulationPlugin","TableOfContentsSpec","InlineComponentSpec","_renderStatic","isElement","classList","contains","inlineComponent","config","serializable","defaultValue","TABLE_OF_CONTENTS_DEFAULT_CONFIG","TableOfContentsPlugin","options","registerInlineComponent","widgetArgs","ModifyDateCommand","element","dateValue","onlyDate","change","mutator","range","rangeFactory","fromInElement","getMaxOffset","insertText","formatDate","getMarks","attributeMap","set","toISOString","date","year","month","day","hour","minute","undefined","toLocaleString","RdfaDatePlugin","ImportSnippetPlugin","InsertAndCollapseCommand","htmlString","fromInNode","executeCommand","selection","selectRange","lastRange","shrinkToVisible","containedNodes","contextNodes","next","span","finalRange","writeSelection","TemplateVariablePlugin","InsertVariablePlugin","pluginFactory","plugin","create","initializers","pluginInstance","assign","application","register","singleton"],"mappings":";;;;;;AAAe,MAAMA,iBAAiB,CAAC;AAAA,EAAA,WAAA,GAAA;AAAA,IAAA,eAAA,CAAA,IAAA,EAAA,YAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAA,GAAA;AAGrC,EAAA,IAAIC,IAAI,GAAG;AACT,IAAA,OAAO,qBAAqB,CAAA;AAC9B,GAAA;EAEAC,UAAU,CAACC,UAAU,EAAE;IACrB,IAAI,CAACA,UAAU,GAAGA,UAAU,CAAA;IAC5BA,UAAU,CAACC,cAAc,CAAC;AACxBC,MAAAA,aAAa,EAAE,sCAAsC;AACrDC,MAAAA,UAAU,EAAE,8BAA8B;AAC1CC,MAAAA,eAAe,EAAE,SAAA;AACnB,KAAC,CAAC,CAAA;AACJ,GAAA;AACF;;ACfA,MAAMC,eAAe,GAAG;AACtBC,EAAAA,QAAQ,EAAE,CACR;AACEC,IAAAA,GAAG,EAAE,MA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AM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAClB,0BAA0B,EAC1BP,aAAa,CAAC9D,sBAAsB,CAAC,EACrC;AAAEsE,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAClB,4BAA4B,EAC5BP,aAAa,CAAC1D,wBAAwB,CAAC,EACvC;AAAEkE,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAAC,kBAAkB,EAAEP,aAAa,CAAClB,cAAc,CAAC,EAAE;AACtE0B,IAAAA,SAAS,EAAE,KAAA;AACb,GAAC,CAAC,CAAA;EACFF,WAAW,CAACC,QAAQ,CAClB,uBAAuB,EACvBP,aAAa,CAACjB,mBAAmB,CAAC,EAClC;AACEyB,IAAAA,SAAS,EAAE,KAAA;AACb,GAAC,CACF,CAAA;EACDF,WAAW,CAACC,QAAQ,CAClB,0BAA0B,EAC1BP,aAAa,CAACF,sBAAsB,CAAC,EACrC;AAAEU,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAClB,wBAAwB,EACxBP,aAAa,CAACD,oBAAoB,CAAC,EACnC;AAAES,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;AACH,CAAA;AAEA,wBAAe;AACbzI,EAAAA,UAAAA;AACF,CAAC;;;;"}
@@ -1,26 +0,0 @@
1
- const LEGISLATION_TYPES = {
2
- decreet: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Decreet',
3
- 'koninklijk besluit': 'https://data.vlaanderen.be/id/concept/AardWetgeving/KoninklijkBesluit',
4
- wet: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Wet',
5
- 'ministerieel besluit': 'https://data.vlaanderen.be/id/concept/AardWetgeving/MinisterieelBesluit',
6
- 'besluit van de vlaamse regering': 'https://data.vlaanderen.be/id/concept/AardWetgeving/BesluitVanDeVlaamseRegering',
7
- omzendbrief: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Omzendbrief',
8
- verdrag: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Verdrag',
9
- grondwet: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Grondwet',
10
- grondwetswijziging: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Grondwetwijziging',
11
- samenwerkingsakkoord: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Samenwerkingsakkoord',
12
- wetboek: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Wetboek',
13
- 'gecoördineerde wetten': 'https://data.vlaanderen.be/id/concept/AardWetgeving/GecoordineerdeWetten',
14
- 'bijzondere wet': 'https://data.vlaanderen.be/id/concept/AardWetgeving/BijzondereWet',
15
- 'genummerd koninklijk besluit': 'https://data.vlaanderen.be/id/concept/AardWetgeving/GenummerdKoninklijkBesluit',
16
- protocol: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Protocol'
17
- };
18
- const LEGISLATION_TYPE_CONCEPTS = Object.keys(LEGISLATION_TYPES).map(key => {
19
- return {
20
- label: key,
21
- value: LEGISLATION_TYPES[key]
22
- };
23
- });
24
-
25
- export { LEGISLATION_TYPES as L, LEGISLATION_TYPE_CONCEPTS as a };
26
- //# sourceMappingURL=legislation-types-4d487cb9.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"legislation-types-4d487cb9.js","sources":["../src/utils/legislation-types.js"],"sourcesContent":["const LEGISLATION_TYPES = {\n decreet: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Decreet',\n 'koninklijk besluit':\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/KoninklijkBesluit',\n wet: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Wet',\n 'ministerieel besluit':\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/MinisterieelBesluit',\n 'besluit van de vlaamse regering':\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/BesluitVanDeVlaamseRegering',\n omzendbrief:\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/Omzendbrief',\n verdrag: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Verdrag',\n grondwet: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Grondwet',\n grondwetswijziging:\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/Grondwetwijziging',\n samenwerkingsakkoord:\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/Samenwerkingsakkoord',\n wetboek: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Wetboek',\n 'gecoördineerde wetten':\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/GecoordineerdeWetten',\n 'bijzondere wet':\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/BijzondereWet',\n 'genummerd koninklijk besluit':\n 'https://data.vlaanderen.be/id/concept/AardWetgeving/GenummerdKoninklijkBesluit',\n protocol: 'https://data.vlaanderen.be/id/concept/AardWetgeving/Protocol',\n};\n\nconst LEGISLATION_TYPE_CONCEPTS = Object.keys(LEGISLATION_TYPES).map((key) => {\n return { label: key, value: LEGISLATION_TYPES[key] };\n});\n\nexport { LEGISLATION_TYPES, LEGISLATION_TYPE_CONCEPTS };\n"],"names":["LEGISLATION_TYPES","decreet","wet","omzendbrief","verdrag","grondwet","grondwetswijziging","samenwerkingsakkoord","wetboek","protocol","LEGISLATION_TYPE_CONCEPTS","Object","keys","map","key","label","value"],"mappings":"AAAA,MAAMA,iBAAiB,GAAG;AACxBC,EAAAA,OAAO,EAAE,6DAA6D;AACtE,EAAA,oBAAoB,EAClB,uEAAuE;AACzEC,EAAAA,GAAG,EAAE,yDAAyD;AAC9D,EAAA,sBAAsB,EACpB,yEAAyE;AAC3E,EAAA,iCAAiC,EAC/B,iFAAiF;AACnFC,EAAAA,WAAW,EACT,iEAAiE;AACnEC,EAAAA,OAAO,EAAE,6DAA6D;AACtEC,EAAAA,QAAQ,EAAE,8DAA8D;AACxEC,EAAAA,kBAAkB,EAChB,uEAAuE;AACzEC,EAAAA,oBAAoB,EAClB,0EAA0E;AAC5EC,EAAAA,OAAO,EAAE,6DAA6D;AACtE,EAAA,uBAAuB,EACrB,0EAA0E;AAC5E,EAAA,gBAAgB,EACd,mEAAmE;AACrE,EAAA,8BAA8B,EAC5B,gFAAgF;AAClFC,EAAAA,QAAQ,EAAE,8DAAA;AACZ,EAAC;AAED,MAAMC,yBAAyB,GAAGC,MAAM,CAACC,IAAI,CAACZ,iBAAiB,CAAC,CAACa,GAAG,CAAEC,GAAG,IAAK;EAC5E,OAAO;AAAEC,IAAAA,KAAK,EAAED,GAAG;IAAEE,KAAK,EAAEhB,iBAAiB,CAACc,GAAG,CAAA;GAAG,CAAA;AACtD,CAAC;;;;"}
@@ -1,18 +0,0 @@
1
- import { b as _defineProperty } from '../_rollupPluginBabelHelpers-537ad14b.js';
2
-
3
- class Instruction {
4
- static fromBinding(binding) {
5
- return new Instruction(binding.name.value, binding.template.value, binding.annotatedTemplate.value);
6
- }
7
- constructor(name, template, annotatedTemplate) {
8
- _defineProperty(this, "name", void 0);
9
- _defineProperty(this, "template", void 0);
10
- _defineProperty(this, "annotatedTemplate", void 0);
11
- this.name = name;
12
- this.template = template;
13
- this.annotatedTemplate = annotatedTemplate;
14
- }
15
- }
16
-
17
- export { Instruction as default };
18
- //# sourceMappingURL=instruction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instruction.js","sources":["../../src/models/instruction.js"],"sourcesContent":["export default class Instruction {\n name;\n template;\n annotatedTemplate;\n\n static fromBinding(binding) {\n return new Instruction(\n binding.name.value,\n binding.template.value,\n binding.annotatedTemplate.value\n );\n }\n\n constructor(name, template, annotatedTemplate) {\n this.name = name;\n this.template = template;\n this.annotatedTemplate = annotatedTemplate;\n }\n}\n"],"names":["Instruction","fromBinding","binding","name","value","template","annotatedTemplate","constructor"],"mappings":";;AAAe,MAAMA,WAAW,CAAC;EAK/B,OAAOC,WAAW,CAACC,OAAO,EAAE;IAC1B,OAAO,IAAIF,WAAW,CACpBE,OAAO,CAACC,IAAI,CAACC,KAAK,EAClBF,OAAO,CAACG,QAAQ,CAACD,KAAK,EACtBF,OAAO,CAACI,iBAAiB,CAACF,KAAK,CAChC,CAAA;AACH,GAAA;AAEAG,EAAAA,WAAW,CAACJ,IAAI,EAAEE,QAAQ,EAAEC,iBAAiB,EAAE;AAAA,IAAA,eAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IAAA,eAAA,CAAA,IAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IAAA,eAAA,CAAA,IAAA,EAAA,mBAAA,EAAA,KAAA,CAAA,CAAA,CAAA;IAC7C,IAAI,CAACH,IAAI,GAAGA,IAAI,CAAA;IAChB,IAAI,CAACE,QAAQ,GAAGA,QAAQ,CAAA;IACxB,IAAI,CAACC,iBAAiB,GAAGA,iBAAiB,CAAA;AAC5C,GAAA;AACF;;;;"}