@lblod/ember-rdfa-editor-lblod-plugins 0.1.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 (94) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +37 -0
  3. package/addon-main.js +4 -0
  4. package/dist/_app_/components/besluit-type-plugin/besluit-type-select.js +1 -0
  5. package/dist/_app_/components/besluit-type-plugin/toolbar-dropdown.js +1 -0
  6. package/dist/_app_/components/citaten-plugin/citaat-card.js +1 -0
  7. package/dist/_app_/components/citaten-plugin/citaat-insert.js +1 -0
  8. package/dist/_app_/components/citaten-plugin/citations/article-list.js +1 -0
  9. package/dist/_app_/components/citaten-plugin/citations/article-preview.js +1 -0
  10. package/dist/_app_/components/citaten-plugin/citations/decision-detail.js +1 -0
  11. package/dist/_app_/components/citaten-plugin/citations/decision-list.js +1 -0
  12. package/dist/_app_/components/citaten-plugin/citations/decision-preview.js +1 -0
  13. package/dist/_app_/components/citaten-plugin/citations/search-modal.js +1 -0
  14. package/dist/_app_/components/citaten-plugin/helpers/alert-load-error.js +1 -0
  15. package/dist/_app_/components/citaten-plugin/helpers/alert-no-items.js +1 -0
  16. package/dist/_app_/components/import-snippet-plugin/card.js +1 -0
  17. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-card.js +1 -0
  18. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +1 -0
  19. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-time-picker.js +1 -0
  20. package/dist/_app_/components/standard-template-plugin/template-card.js +1 -0
  21. package/dist/_app_/components/standard-template-plugin/template-provider.js +1 -0
  22. package/dist/_app_/components/table-of-contents-plugin/card.js +1 -0
  23. package/dist/_app_/components/table-of-contents-plugin/inline-components/outline.js +1 -0
  24. package/dist/_app_/components/table-of-contents-plugin/inline-components/table-of-contents.js +1 -0
  25. package/dist/_app_/initializers/plugin-initializer.js +1 -0
  26. package/dist/_app_/models/template.js +1 -0
  27. package/dist/_app_/serializers/application.js +1 -0
  28. package/dist/_app_/services/import-rdfa-snippet.js +1 -0
  29. package/dist/_app_/services/standard-template-plugin.js +1 -0
  30. package/dist/_rollupPluginBabelHelpers-537ad14b.js +48 -0
  31. package/dist/_rollupPluginBabelHelpers-537ad14b.js.map +1 -0
  32. package/dist/components/besluit-type-plugin/besluit-type-select.js +30 -0
  33. package/dist/components/besluit-type-plugin/besluit-type-select.js.map +1 -0
  34. package/dist/components/besluit-type-plugin/toolbar-dropdown.js +292 -0
  35. package/dist/components/besluit-type-plugin/toolbar-dropdown.js.map +1 -0
  36. package/dist/components/citaten-plugin/citaat-card.js +367 -0
  37. package/dist/components/citaten-plugin/citaat-card.js.map +1 -0
  38. package/dist/components/citaten-plugin/citaat-insert.js +84 -0
  39. package/dist/components/citaten-plugin/citaat-insert.js.map +1 -0
  40. package/dist/components/citaten-plugin/citations/article-list.js +10 -0
  41. package/dist/components/citaten-plugin/citations/article-list.js.map +1 -0
  42. package/dist/components/citaten-plugin/citations/article-preview.js +10 -0
  43. package/dist/components/citaten-plugin/citations/article-preview.js.map +1 -0
  44. package/dist/components/citaten-plugin/citations/decision-detail.js +123 -0
  45. package/dist/components/citaten-plugin/citations/decision-detail.js.map +1 -0
  46. package/dist/components/citaten-plugin/citations/decision-list.js +10 -0
  47. package/dist/components/citaten-plugin/citations/decision-list.js.map +1 -0
  48. package/dist/components/citaten-plugin/citations/decision-preview.js +10 -0
  49. package/dist/components/citaten-plugin/citations/decision-preview.js.map +1 -0
  50. package/dist/components/citaten-plugin/citations/search-modal.js +282 -0
  51. package/dist/components/citaten-plugin/citations/search-modal.js.map +1 -0
  52. package/dist/components/citaten-plugin/helpers/alert-load-error.js +10 -0
  53. package/dist/components/citaten-plugin/helpers/alert-load-error.js.map +1 -0
  54. package/dist/components/citaten-plugin/helpers/alert-no-items.js +10 -0
  55. package/dist/components/citaten-plugin/helpers/alert-no-items.js.map +1 -0
  56. package/dist/components/import-snippet-plugin/card.js +99 -0
  57. package/dist/components/import-snippet-plugin/card.js.map +1 -0
  58. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js +85 -0
  59. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js.map +1 -0
  60. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +23 -0
  61. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js.map +1 -0
  62. package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js +91 -0
  63. package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js.map +1 -0
  64. package/dist/components/standard-template-plugin/template-card.js +15 -0
  65. package/dist/components/standard-template-plugin/template-card.js.map +1 -0
  66. package/dist/components/standard-template-plugin/template-provider.js +109 -0
  67. package/dist/components/standard-template-plugin/template-provider.js.map +1 -0
  68. package/dist/components/table-of-contents-plugin/card.js +52 -0
  69. package/dist/components/table-of-contents-plugin/card.js.map +1 -0
  70. package/dist/components/table-of-contents-plugin/inline-components/outline.js +10 -0
  71. package/dist/components/table-of-contents-plugin/inline-components/outline.js.map +1 -0
  72. package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js +92 -0
  73. package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js.map +1 -0
  74. package/dist/constants-af958fcd.js +12 -0
  75. package/dist/constants-af958fcd.js.map +1 -0
  76. package/dist/index.js +2 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/initializers/plugin-initializer.js +307 -0
  79. package/dist/initializers/plugin-initializer.js.map +1 -0
  80. package/dist/legislation-types-4d487cb9.js +26 -0
  81. package/dist/legislation-types-4d487cb9.js.map +1 -0
  82. package/dist/models/template.js +48 -0
  83. package/dist/models/template.js.map +1 -0
  84. package/dist/serializers/application.js +10 -0
  85. package/dist/serializers/application.js.map +1 -0
  86. package/dist/services/import-rdfa-snippet.js +178 -0
  87. package/dist/services/import-rdfa-snippet.js.map +1 -0
  88. package/dist/services/standard-template-plugin.js +53 -0
  89. package/dist/services/standard-template-plugin.js.map +1 -0
  90. package/dist/styles/citaten-plugin.scss +50 -0
  91. package/dist/styles/test.css +0 -0
  92. package/dist/vlaamse-codex-187fe526.js +304 -0
  93. package/dist/vlaamse-codex-187fe526.js.map +1 -0
  94. package/package.json +117 -0
@@ -0,0 +1,92 @@
1
+ import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../../../_rollupPluginBabelHelpers-537ad14b.js';
2
+ import { setComponentTemplate } from '@ember/component';
3
+ import { hbs } from 'ember-cli-htmlbars';
4
+ import ModelNode from '@lblod/ember-rdfa-editor/model/model-node';
5
+ import { tracked } from '@glimmer/tracking';
6
+ import ModelNodeUtils from '@lblod/ember-rdfa-editor/model/util/model-node-utils';
7
+ import { action } from '@ember/object';
8
+ import Component from '@glimmer/component';
9
+ import dataFactory from '@rdfjs/data-model';
10
+ import { T as TABLE_OF_CONTENTS_DEFAULT_CONFIG } from '../../../constants-af958fcd.js';
11
+
12
+ var TEMPLATE = hbs("<div class=\'au-u-background-gray-100 au-u-padding-tiny table-of-contents\'>\n <h3>{{t \"table-of-contents-plugin.title\"}}</h3>\n {{#if this.documentOutline}}\n <TableOfContentsPlugin::InlineComponents::Outline\n @entries={{this.documentOutline.entries}}\n @onEntryClick={{this.moveToSection}}\n />\n {{/if}}\n</div>\n");
13
+
14
+ var _class, _descriptor;
15
+ let TableOfContentsComponent = (_class = class TableOfContentsComponent extends Component {
16
+ constructor(owner, args) {
17
+ super(owner, args);
18
+ _initializerDefineProperty(this, "documentOutline", _descriptor, this);
19
+ this.update();
20
+ this.args.editorController.onEvent('contentChanged', this.update.bind(this));
21
+ this.args.editorController.onEvent('modelRead', this.update.bind(this));
22
+ }
23
+ get config() {
24
+ return this.args.componentController.getProperty('config') ?? TABLE_OF_CONTENTS_DEFAULT_CONFIG;
25
+ }
26
+ willDestroy() {
27
+ this.args.editorController.offEvent('contentChanged', this.update.bind(this));
28
+ this.args.editorController.offEvent('modelRead', this.update.bind(this));
29
+ super.willDestroy();
30
+ }
31
+ update() {
32
+ const outline = {
33
+ entries: this.extractOutline(this.args.editorController.modelRoot)
34
+ };
35
+ this.documentOutline = outline;
36
+ }
37
+ extractOutline(node) {
38
+ let result = [];
39
+ if (ModelNode.isModelElement(node)) {
40
+ let parent;
41
+ const attributes = node.getRdfaAttributes();
42
+ if (attributes.properties) {
43
+ for (const tocConfigEntry of this.config) {
44
+ if (attributes.properties.includes(tocConfigEntry.sectionPredicate)) {
45
+ if (typeof tocConfigEntry.value === 'string') {
46
+ parent = {
47
+ content: tocConfigEntry.value,
48
+ node
49
+ };
50
+ break;
51
+ } else {
52
+ const nodes = [...this.args.editorController.datastore.match(`>${attributes.resource}`, dataFactory.namedNode(tocConfigEntry.value.predicate)).asObjectNodeMapping().nodes()];
53
+ if (nodes.length) {
54
+ parent = {
55
+ content: ModelNodeUtils.getTextContent(nodes[0]),
56
+ node
57
+ };
58
+ break;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ const subResults = [];
65
+ node.children.forEach(child => {
66
+ subResults.push(...this.extractOutline(child));
67
+ });
68
+ if (parent) {
69
+ parent.children = subResults;
70
+ result = [parent];
71
+ } else {
72
+ result = subResults;
73
+ }
74
+ }
75
+ return result;
76
+ }
77
+ moveToSection(node) {
78
+ console.log('moveToSection');
79
+ const range = this.args.editorController.rangeFactory.fromInNode(node, 0);
80
+ this.args.editorController.selection.selectRange(range);
81
+ this.args.editorController.write(true, true);
82
+ }
83
+ }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "documentOutline", [tracked], {
84
+ configurable: true,
85
+ enumerable: true,
86
+ writable: true,
87
+ initializer: null
88
+ }), _applyDecoratedDescriptor(_class.prototype, "moveToSection", [action], Object.getOwnPropertyDescriptor(_class.prototype, "moveToSection"), _class.prototype)), _class);
89
+ setComponentTemplate(TEMPLATE, TableOfContentsComponent);
90
+
91
+ export { TableOfContentsComponent as default };
92
+ //# sourceMappingURL=table-of-contents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-of-contents.js","sources":["../../../../src/components/table-of-contents-plugin/inline-components/table-of-contents.hbs.js","../../../../src/components/table-of-contents-plugin/inline-components/table-of-contents.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<div class=\\'au-u-background-gray-100 au-u-padding-tiny table-of-contents\\'>\\n <h3>{{t \\\"table-of-contents-plugin.title\\\"}}</h3>\\n {{#if this.documentOutline}}\\n <TableOfContentsPlugin::InlineComponents::Outline\\n @entries={{this.documentOutline.entries}}\\n @onEntryClick={{this.moveToSection}}\\n />\\n {{/if}}\\n</div>\\n\")","import ModelNode from '@lblod/ember-rdfa-editor/model/model-node';\nimport { tracked } from '@glimmer/tracking';\nimport ModelNodeUtils from '@lblod/ember-rdfa-editor/model/util/model-node-utils';\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport dataFactory from '@rdfjs/data-model';\nimport { TABLE_OF_CONTENTS_DEFAULT_CONFIG } from '../../../constants';\nexport default class TableOfContentsComponent extends Component {\n @tracked\n documentOutline;\n\n constructor(owner, args) {\n super(owner, args);\n this.update();\n\n this.args.editorController.onEvent(\n 'contentChanged',\n this.update.bind(this)\n );\n this.args.editorController.onEvent('modelRead', this.update.bind(this));\n }\n\n get config() {\n return (\n this.args.componentController.getProperty('config') ??\n TABLE_OF_CONTENTS_DEFAULT_CONFIG\n );\n }\n\n willDestroy() {\n this.args.editorController.offEvent(\n 'contentChanged',\n this.update.bind(this)\n );\n this.args.editorController.offEvent('modelRead', this.update.bind(this));\n super.willDestroy();\n }\n\n update() {\n const outline = {\n entries: this.extractOutline(this.args.editorController.modelRoot),\n };\n this.documentOutline = outline;\n }\n\n extractOutline(node) {\n let result = [];\n\n if (ModelNode.isModelElement(node)) {\n let parent;\n const attributes = node.getRdfaAttributes();\n if (attributes.properties) {\n for (const tocConfigEntry of this.config) {\n if (attributes.properties.includes(tocConfigEntry.sectionPredicate)) {\n if (typeof tocConfigEntry.value === 'string') {\n parent = { content: tocConfigEntry.value, node };\n break;\n } else {\n const nodes = [\n ...this.args.editorController.datastore\n .match(\n `>${attributes.resource}`,\n dataFactory.namedNode(tocConfigEntry.value.predicate)\n )\n .asObjectNodeMapping()\n .nodes(),\n ];\n if (nodes.length) {\n parent = {\n content: ModelNodeUtils.getTextContent(nodes[0]),\n node,\n };\n break;\n }\n }\n }\n }\n }\n const subResults = [];\n node.children.forEach((child) => {\n subResults.push(...this.extractOutline(child));\n });\n if (parent) {\n parent.children = subResults;\n result = [parent];\n } else {\n result = subResults;\n }\n }\n return result;\n }\n\n @action\n moveToSection(node) {\n console.log('moveToSection');\n const range = this.args.editorController.rangeFactory.fromInNode(node, 0);\n this.args.editorController.selection.selectRange(range);\n this.args.editorController.write(true, true);\n }\n}\n"],"names":["hbs","TableOfContentsComponent","Component","constructor","owner","args","update","editorController","onEvent","bind","config","componentController","getProperty","TABLE_OF_CONTENTS_DEFAULT_CONFIG","willDestroy","offEvent","outline","entries","extractOutline","modelRoot","documentOutline","node","result","ModelNode","isModelElement","parent","attributes","getRdfaAttributes","properties","tocConfigEntry","includes","sectionPredicate","value","content","nodes","datastore","match","resource","dataFactory","namedNode","predicate","asObjectNodeMapping","length","ModelNodeUtils","getTextContent","subResults","children","forEach","child","push","moveToSection","console","log","range","rangeFactory","fromInNode","selection","selectRange","write","tracked","action"],"mappings":";;;;;;;;;;;AACA,eAAeA,GAAG,CAAC,oVAAoV,CAAC;;;ACKlS,IACjDC,wBAAwB,IAA9B,MAAA,GAAA,MAAMA,wBAAwB,SAASC,SAAS,CAAC;AAI9DC,EAAAA,WAAW,CAACC,KAAK,EAAEC,IAAI,EAAE;AACvB,IAAA,KAAK,CAACD,KAAK,EAAEC,IAAI,CAAC,CAAA;AAAC,IAAA,0BAAA,CAAA,IAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,IAAA,CAAA,CAAA;IACnB,IAAI,CAACC,MAAM,EAAE,CAAA;AAEb,IAAA,IAAI,CAACD,IAAI,CAACE,gBAAgB,CAACC,OAAO,CAChC,gBAAgB,EAChB,I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AAA;AACF,KAAA;AACA,IAAA,OAAOvB,MAAM,CAAA;AACf,GAAA;EAGA4B,aAAa,CAAC7B,IAAI,EAAE;AAClB8B,IAAAA,OAAO,CAACC,GAAG,CAAC,eAAe,CAAC,CAAA;AAC5B,IAAA,MAAMC,KAAK,GAAG,IAAI,CAAChD,IAAI,CAACE,gBAAgB,CAAC+C,YAAY,CAACC,UAAU,CAAClC,IAAI,EAAE,CAAC,CAAC,CAAA;IACzE,IAAI,CAAChB,IAAI,CAACE,gBAAgB,CAACiD,SAAS,CAACC,WAAW,CAACJ,KAAK,CAAC,CAAA;IACvD,IAAI,CAAChD,IAAI,CAACE,gBAAgB,CAACmD,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAC9C,GAAA;AACF,CAAC,iFA3FEC,OAAO,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,eAAA,EAAA,CAoFPC,MAAM,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,eAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,MAAA,EAAA;AArFoC,oBAAA,CAAA,QAAA,EAAA,wBAAA,CAAA;;;;"}
@@ -0,0 +1,12 @@
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
+
11
+ export { TABLE_OF_CONTENTS_DEFAULT_CONFIG as T };
12
+ //# sourceMappingURL=constants-af958fcd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-af958fcd.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"],"names":["TABLE_OF_CONTENTS_DEFAULT_CONFIG","sectionPredicate","value","predicate"],"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;;;;"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,307 @@
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-af958fcd.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
+ class TableOfContentsSpec extends InlineComponentSpec {
151
+ _renderStatic() {
152
+ // TODO: should be implemented when static version of inline components work correctly
153
+ return '';
154
+ }
155
+ constructor(controller) {
156
+ super('table-of-contents-plugin/inline-components/table-of-contents', 'div', controller);
157
+ _defineProperty(this, "matcher", {
158
+ tag: this.tag,
159
+ attributeBuilder: node => {
160
+ if (isElement(node)) {
161
+ if (node.classList.contains('inline-component') && node.classList.contains(this.name) || node.dataset.inlineComponent === this.name) {
162
+ return {};
163
+ }
164
+ }
165
+ return null;
166
+ }
167
+ });
168
+ _defineProperty(this, "properties", {
169
+ config: {
170
+ serializable: true,
171
+ defaultValue: TABLE_OF_CONTENTS_DEFAULT_CONFIG
172
+ }
173
+ });
174
+ }
175
+ }
176
+
177
+ class TableOfContentsPlugin {
178
+ constructor() {
179
+ _defineProperty(this, "controller", void 0);
180
+ }
181
+ get name() {
182
+ return 'table-of-contents-plugin';
183
+ }
184
+ initialize(controller, options) {
185
+ this.controller = controller;
186
+ controller.registerInlineComponent(new TableOfContentsSpec(this.controller));
187
+ const widgetArgs = options?.config ? {
188
+ config: options.config
189
+ } : {};
190
+ controller.registerWidget({
191
+ componentName: 'table-of-contents-plugin/card',
192
+ identifier: 'table-of-contents-plugin/card',
193
+ desiredLocation: 'sidebar',
194
+ widgetArgs
195
+ });
196
+ }
197
+ }
198
+
199
+ class ModifyDateCommand {
200
+ constructor(model) {
201
+ _defineProperty(this, "name", 'modify-date');
202
+ this.model = model;
203
+ }
204
+ canExecute() {
205
+ return true;
206
+ }
207
+ execute(controller, element, dateValue, onlyDate) {
208
+ this.model.change(mutator => {
209
+ const range = controller.rangeFactory.fromInElement(element, 0, element.getMaxOffset());
210
+ mutator.insertText(range, this.formatDate(dateValue, onlyDate), range.getMarks());
211
+ element.attributeMap.set('content', dateValue.toISOString());
212
+ });
213
+ }
214
+ formatDate(date, onlyDate) {
215
+ let options = {
216
+ year: 'numeric',
217
+ month: '2-digit',
218
+ day: '2-digit',
219
+ hour: '2-digit',
220
+ minute: '2-digit'
221
+ };
222
+ if (onlyDate) {
223
+ options.hour = undefined;
224
+ options.minute = undefined;
225
+ }
226
+ return date.toLocaleString('nl-BE', options);
227
+ }
228
+ }
229
+
230
+ class RdfaDatePlugin {
231
+ constructor() {
232
+ _defineProperty(this, "controller", void 0);
233
+ }
234
+ get name() {
235
+ return 'rdfa-date-plugin';
236
+ }
237
+ initialize(controller) {
238
+ this.controller = controller;
239
+ controller.registerWidget({
240
+ componentName: 'rdfa-date-plugin/rdfa-date-plugin-card',
241
+ identifier: 'rdfa-date-plugin/card',
242
+ desiredLocation: 'sidebar'
243
+ });
244
+ controller.registerWidget({
245
+ componentName: 'rdfa-date-plugin/rdfa-date-plugin-insert',
246
+ identifier: 'rdfa-date-plugin/insert',
247
+ desiredLocation: 'insertSidebar'
248
+ });
249
+ controller.registerCommand(new ModifyDateCommand(controller._rawEditor._model));
250
+ }
251
+ }
252
+
253
+ class ImportSnippetPlugin {
254
+ constructor() {
255
+ _defineProperty(this, "controller", void 0);
256
+ }
257
+ get name() {
258
+ return 'import-snippet-plugin';
259
+ }
260
+ initialize(controller) {
261
+ this.controller = controller;
262
+ controller.registerWidget({
263
+ componentName: 'import-snippet-plugin/card',
264
+ identifier: 'import-snippet-plugin/card',
265
+ desiredLocation: 'sidebar'
266
+ });
267
+ }
268
+ }
269
+
270
+ function pluginFactory(plugin) {
271
+ return {
272
+ create: initializers => {
273
+ const pluginInstance = new plugin();
274
+ Object.assign(pluginInstance, initializers);
275
+ return pluginInstance;
276
+ }
277
+ };
278
+ }
279
+ function initialize(application) {
280
+ application.register('plugin:citaten', pluginFactory(CitatenPlugin), {
281
+ singleton: false
282
+ });
283
+ application.register('plugin:standard-template', pluginFactory(StandardTemplatePlugin), {
284
+ singleton: false
285
+ });
286
+ application.register('plugin:besluit-type', pluginFactory(BesluitTypePlugin), {
287
+ singleton: false
288
+ });
289
+ application.register('plugin:table-of-contents', pluginFactory(TableOfContentsPlugin), {
290
+ singleton: false
291
+ });
292
+ application.register('plugin:generate-template', pluginFactory(GenerateTemplatePlugin), {
293
+ singleton: false
294
+ });
295
+ application.register('plugin:rdfa-date', pluginFactory(RdfaDatePlugin), {
296
+ singleton: false
297
+ });
298
+ application.register('plugin:import-snippet', pluginFactory(ImportSnippetPlugin), {
299
+ singleton: false
300
+ });
301
+ }
302
+ var pluginInitializer = {
303
+ initialize
304
+ };
305
+
306
+ export { pluginInitializer as default, initialize };
307
+ //# sourceMappingURL=plugin-initializer.js.map
@@ -0,0 +1 @@
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/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/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","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.dataset.inlineComponent === this.name\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","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 TableOfContentsPlugin from '../plugins/table-of-contents-plugin';\nimport RdfaDatePlugin from '../plugins/rdfa-date-plugin';\nimport ImportSnippetPlugin from '../plugins/import-snippet-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('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}\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","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","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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,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAClB,0BAA0B,EAC1BP,aAAa,CAAC7C,sBAAsB,CAAC,EACrC;AAAEqD,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAAC,kBAAkB,EAAEP,aAAa,CAACF,cAAc,CAAC,EAAE;AACtEU,IAAAA,SAAS,EAAE,KAAA;AACb,GAAC,CAAC,CAAA;EACFF,WAAW,CAACC,QAAQ,CAClB,uBAAuB,EACvBP,aAAa,CAACD,mBAAmB,CAAC,EAClC;AACES,IAAAA,SAAS,EAAE,KAAA;AACb,GAAC,CACF,CAAA;AACH,CAAA;AAEA,wBAAe;AACbxH,EAAAA,UAAAA;AACF,CAAC;;;;"}
@@ -0,0 +1,26 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -0,0 +1,48 @@
1
+ import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-537ad14b.js';
2
+ import Model, { attr } from '@ember-data/model';
3
+
4
+ var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
5
+ let TemplateModel = (_dec = attr('string-set', {
6
+ defaultValue: () => []
7
+ }), _dec2 = attr('string-set', {
8
+ defaultValue: () => []
9
+ }), _dec3 = attr('string-set', {
10
+ defaultValue: () => []
11
+ }), (_class = class TemplateModel extends Model {
12
+ constructor(...args) {
13
+ super(...args);
14
+ _initializerDefineProperty(this, "title", _descriptor, this);
15
+ _initializerDefineProperty(this, "matches", _descriptor2, this);
16
+ _initializerDefineProperty(this, "body", _descriptor3, this);
17
+ _initializerDefineProperty(this, "contexts", _descriptor4, this);
18
+ _initializerDefineProperty(this, "disabledInContexts", _descriptor5, this);
19
+ }
20
+ }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "title", [attr], {
21
+ configurable: true,
22
+ enumerable: true,
23
+ writable: true,
24
+ initializer: null
25
+ }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "matches", [_dec], {
26
+ configurable: true,
27
+ enumerable: true,
28
+ writable: true,
29
+ initializer: null
30
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "body", [attr], {
31
+ configurable: true,
32
+ enumerable: true,
33
+ writable: true,
34
+ initializer: null
35
+ }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "contexts", [_dec2], {
36
+ configurable: true,
37
+ enumerable: true,
38
+ writable: true,
39
+ initializer: null
40
+ }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "disabledInContexts", [_dec3], {
41
+ configurable: true,
42
+ enumerable: true,
43
+ writable: true,
44
+ initializer: null
45
+ })), _class));
46
+
47
+ export { TemplateModel as default };
48
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sources":["../../src/models/template.js"],"sourcesContent":["import Model, { attr } from '@ember-data/model';\n\nexport default class TemplateModel extends Model {\n @attr title;\n @attr('string-set', { defaultValue: () => [] }) matches;\n @attr body;\n @attr('string-set', { defaultValue: () => [] }) contexts;\n @attr('string-set', { defaultValue: () => [] }) disabledInContexts;\n}\n"],"names":["TemplateModel","attr","defaultValue","Model"],"mappings":";;;;AAAgD,IAE3BA,aAAa,IAAA,IAAA,GAE/BC,IAAI,CAAC,YAAY,EAAE;AAAEC,EAAAA,YAAY,EAAE,MAAM,EAAA;AAAG,CAAC,CAAC,EAAA,KAAA,GAE9CD,IAAI,CAAC,YAAY,EAAE;AAAEC,EAAAA,YAAY,EAAE,MAAM,EAAA;AAAG,CAAC,CAAC,EAAA,KAAA,GAC9CD,IAAI,CAAC,YAAY,EAAE;AAAEC,EAAAA,YAAY,EAAE,MAAM,EAAA;AAAG,CAAC,CAAC,GALlC,MAAA,GAAA,MAAMF,aAAa,SAASG,KAAK,CAAC;AAAA,EAAA,WAAA,CAAA,GAAA,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAA,IAAA,CAAA,CAAA;AAAA,IAAA,0BAAA,CAAA,IAAA,EAAA,OAAA,EAAA,WAAA,EAAA,IAAA,CAAA,CAAA;AAAA,IAAA,0BAAA,CAAA,IAAA,EAAA,SAAA,EAAA,YAAA,EAAA,IAAA,CAAA,CAAA;AAAA,IAAA,0BAAA,CAAA,IAAA,EAAA,MAAA,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,oBAAA,EAAA,YAAA,EAAA,IAAA,CAAA,CAAA;AAAA,GAAA;AAMjD,CAAC,uEALEF,IAAI,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,YAAA,GAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,SAAA,EAAA,CAAA,IAAA,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,YAAA,GAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,MAAA,EAAA,CAEJA,IAAI,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,YAAA,GAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,UAAA,EAAA,CAAA,KAAA,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,YAAA,GAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,oBAAA,EAAA,CAAA,KAAA,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,GAAA,MAAA,CAAA;;;;"}
@@ -0,0 +1,10 @@
1
+ import JSONAPISerializer from '@ember-data/serializer/json-api';
2
+
3
+ class ApplicationSerializer extends JSONAPISerializer {
4
+ serializeAttribute(snapshot, json, key, attributes) {
5
+ if (key !== 'uri') super.serializeAttribute(snapshot, json, key, attributes);
6
+ }
7
+ }
8
+
9
+ export { ApplicationSerializer as default };
10
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sources":["../../src/serializers/application.js"],"sourcesContent":["import JSONAPISerializer from '@ember-data/serializer/json-api';\n\nexport default class ApplicationSerializer extends JSONAPISerializer {\n serializeAttribute(snapshot, json, key, attributes) {\n if (key !== 'uri')\n super.serializeAttribute(snapshot, json, key, attributes);\n }\n}\n"],"names":["ApplicationSerializer","JSONAPISerializer","serializeAttribute","snapshot","json","key","attributes"],"mappings":";;AAEe,MAAMA,qBAAqB,SAASC,iBAAiB,CAAC;EACnEC,kBAAkB,CAACC,QAAQ,EAAEC,IAAI,EAAEC,GAAG,EAAEC,UAAU,EAAE;AAClD,IAAA,IAAID,GAAG,KAAK,KAAK,EACf,KAAK,CAACH,kBAAkB,CAACC,QAAQ,EAAEC,IAAI,EAAEC,GAAG,EAAEC,UAAU,CAAC,CAAA;AAC7D,GAAA;AACF;;;;"}