@lblod/ember-rdfa-editor-lblod-plugins 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/environment.js +10 -0
- package/dist/components/table-of-contents-plugin/inline-components/outline.js +1 -1
- package/dist/components/table-of-contents-plugin/inline-components/outline.js.map +1 -1
- package/dist/initializers/plugin-initializer.js +1 -1
- package/dist/initializers/plugin-initializer.js.map +1 -1
- package/package.json +7 -2
- package/translations/en-US.yaml +70 -0
- package/translations/nl-BE.yaml +71 -0
|
@@ -2,7 +2,7 @@ import { setComponentTemplate } from '@ember/component';
|
|
|
2
2
|
import { hbs } from 'ember-cli-htmlbars';
|
|
3
3
|
import templateOnly from '@ember/component/template-only';
|
|
4
4
|
|
|
5
|
-
var TEMPLATE = hbs("<AuList @divider={{true}} class=\'table-of-contents\'>\n {{#each @entries as |outlineEntry|}}\n <AuList::Item>\n <AuButton\n @wrap={{true}}\n {{! template-lint-disable no-capital-arguments }}\n @block={{true}}\n @skin=\'link-secondary\'\n onclick={{fn @onEntryClick outlineEntry.node}}\n >\n {{outlineEntry.content}}\n </AuButton>\n {{#if outlineEntry.children}}\n <InlineComponents::Outline\n @entries={{outlineEntry.children}}\n @onEntryClick={{@onEntryClick}}\n />\n {{/if}}\n </AuList::Item>\n {{/each}}\n</AuList>\n");
|
|
5
|
+
var TEMPLATE = hbs("<AuList @divider={{true}} class=\'table-of-contents\'>\n {{#each @entries as |outlineEntry|}}\n <AuList::Item>\n <AuButton\n @wrap={{true}}\n {{! template-lint-disable no-capital-arguments }}\n @block={{true}}\n @skin=\'link-secondary\'\n onclick={{fn @onEntryClick outlineEntry.node}}\n >\n {{outlineEntry.content}}\n </AuButton>\n {{#if outlineEntry.children}}\n <TableOfContentsPlugin::InlineComponents::Outline\n @entries={{outlineEntry.children}}\n @onEntryClick={{@onEntryClick}}\n />\n {{/if}}\n </AuList::Item>\n {{/each}}\n</AuList>\n");
|
|
6
6
|
|
|
7
7
|
var outline = setComponentTemplate(TEMPLATE, templateOnly());
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outline.js","sources":["../../../../src/components/table-of-contents-plugin/inline-components/outline.hbs.js","../../../../src/components/table-of-contents-plugin/inline-components/outline.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuList @divider={{true}} class=\\'table-of-contents\\'>\\n {{#each @entries as |outlineEntry|}}\\n <AuList::Item>\\n <AuButton\\n @wrap={{true}}\\n {{! template-lint-disable no-capital-arguments }}\\n @block={{true}}\\n @skin=\\'link-secondary\\'\\n onclick={{fn @onEntryClick outlineEntry.node}}\\n >\\n {{outlineEntry.content}}\\n </AuButton>\\n {{#if outlineEntry.children}}\\n <InlineComponents::Outline\\n @entries={{outlineEntry.children}}\\n @onEntryClick={{@onEntryClick}}\\n />\\n {{/if}}\\n </AuList::Item>\\n {{/each}}\\n</AuList>\\n\")","import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n"],"names":["hbs","templateOnly"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"outline.js","sources":["../../../../src/components/table-of-contents-plugin/inline-components/outline.hbs.js","../../../../src/components/table-of-contents-plugin/inline-components/outline.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuList @divider={{true}} class=\\'table-of-contents\\'>\\n {{#each @entries as |outlineEntry|}}\\n <AuList::Item>\\n <AuButton\\n @wrap={{true}}\\n {{! template-lint-disable no-capital-arguments }}\\n @block={{true}}\\n @skin=\\'link-secondary\\'\\n onclick={{fn @onEntryClick outlineEntry.node}}\\n >\\n {{outlineEntry.content}}\\n </AuButton>\\n {{#if outlineEntry.children}}\\n <TableOfContentsPlugin::InlineComponents::Outline\\n @entries={{outlineEntry.children}}\\n @onEntryClick={{@onEntryClick}}\\n />\\n {{/if}}\\n </AuList::Item>\\n {{/each}}\\n</AuList>\\n\")","import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n"],"names":["hbs","templateOnly"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,4oBAA4oB,CAAC;;ACAhqB,cAAA,oBAAA,CAAA,QAAA,EAAeC,YAAY,EAAE,CAAA;;;;"}
|
|
@@ -158,7 +158,7 @@ class TableOfContentsSpec extends InlineComponentSpec {
|
|
|
158
158
|
tag: this.tag,
|
|
159
159
|
attributeBuilder: node => {
|
|
160
160
|
if (isElement(node)) {
|
|
161
|
-
if (node.classList.contains('inline-component') && node.classList.contains(this.name) || node.dataset.inlineComponent === this.name) {
|
|
161
|
+
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') {
|
|
162
162
|
return {};
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -1 +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,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,MAAM;IACXC,gBAAgB,EAAGC,IAAI,IAAK;AAC1B,MAAA,IACEA,IAAI,CAACC,OAAO,IACZC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACL,IAAI,CAACC,OAAO,EAAE,aAAa,CAAC,EACjE;QACA,OAAO;AACLK,UAAAA,IAAI,EAAEN,IAAI,CAACC,OAAO,CAACM,WAAW;AAC9BC,UAAAA,kBAAkB,EAAER,IAAI,CAACC,OAAO,CAACO,kBAAAA;SAClC,CAAA;AACH,OAAA;AACF,KAAA;AACF,GAAC,CACF;AACDnB,EAAAA,IAAI,EAAE,SAAS;AACfoB,EAAAA,QAAQ,EAAE,GAAG;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GAAC,CAAC,CAAA;EACFF,WAAW,CAACC,QAAQ,CAClB,0BAA0B,EAC1BP,aAAa,CAACrF,sBAAsB,CAAC,EACrC;AAAE6F,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAClB,qBAAqB,EACrBP,aAAa,CAAClH,iBAAiB,CAAC,EAChC;AAAE0H,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CACrB,CAAA;EACDF,WAAW,CAACC,QAAQ,CAClB,0BAA0B,EAC1BP,aAAa,CAAC9B,qBAAqB,CAAC,EACpC;AAAEsC,IAAAA,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;;;;"}
|
|
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.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","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,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,MAAM;IACXC,gBAA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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;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"files": [
|
|
12
12
|
"addon-main.js",
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"config",
|
|
15
|
+
"translations"
|
|
14
16
|
],
|
|
15
17
|
"scripts": {
|
|
16
18
|
"build": "rollup --config",
|
|
@@ -113,5 +115,8 @@
|
|
|
113
115
|
".": "./dist/index.js",
|
|
114
116
|
"./*": "./dist/*.js",
|
|
115
117
|
"./addon-main.js": "./addon-main.js"
|
|
118
|
+
},
|
|
119
|
+
"volta": {
|
|
120
|
+
"node": "16.16.0"
|
|
116
121
|
}
|
|
117
122
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
citaten-plugin:
|
|
2
|
+
card:
|
|
3
|
+
title: Add reference
|
|
4
|
+
suggestions: Suggestions
|
|
5
|
+
|
|
6
|
+
insert:
|
|
7
|
+
title: Insert reference
|
|
8
|
+
|
|
9
|
+
search:
|
|
10
|
+
term: Search term
|
|
11
|
+
advanced: Advanced search
|
|
12
|
+
type: Type of document
|
|
13
|
+
placeholder: Type to search
|
|
14
|
+
date-document: Filter on date document
|
|
15
|
+
date-document-from: "Filter document on date from:"
|
|
16
|
+
date-document-to: "Filter document on date until:"
|
|
17
|
+
date-publication: Filter on date government gazette
|
|
18
|
+
date-publication-from: "Filter publication on date from:"
|
|
19
|
+
date-publication-to: "Filter publication on date until:"
|
|
20
|
+
from: from
|
|
21
|
+
to: to
|
|
22
|
+
article: Search for article
|
|
23
|
+
article-placeholder: Article number
|
|
24
|
+
back: Back to search results
|
|
25
|
+
results: Results
|
|
26
|
+
|
|
27
|
+
pagination:
|
|
28
|
+
next: Next page
|
|
29
|
+
previous: Previous page
|
|
30
|
+
of: of
|
|
31
|
+
|
|
32
|
+
references:
|
|
33
|
+
insert: Insert reference
|
|
34
|
+
details: Details
|
|
35
|
+
refer-whole: Refer to whole document
|
|
36
|
+
refer-article: Refer to this article
|
|
37
|
+
lookup-codex: Lookup in Flemish Codex
|
|
38
|
+
|
|
39
|
+
alert:
|
|
40
|
+
loading: Loading…
|
|
41
|
+
no-results: No results found
|
|
42
|
+
error-title: Error while loading results
|
|
43
|
+
error-intro: "An error occured while loading results from the Flemish Codex:"
|
|
44
|
+
error-outro: In case this problem keeps occuring, please contact
|
|
45
|
+
table-of-contents-plugin:
|
|
46
|
+
title: Table of Contents
|
|
47
|
+
toggle: Show Table of Contents
|
|
48
|
+
besluit-type-plugin:
|
|
49
|
+
dt: "Decision type"
|
|
50
|
+
insert-dt: "Select a decision type"
|
|
51
|
+
search-message: "Typ to search"
|
|
52
|
+
no-matches-message: "No results"
|
|
53
|
+
alert-title: "Attention"
|
|
54
|
+
alert-body: "You must select a subtype in order to save the decision type"
|
|
55
|
+
error-short: "Error fetching decision types"
|
|
56
|
+
error-title: "Error"
|
|
57
|
+
error-first-body: "An error occured while fetching the decision types. Try again later. If this problem persists, please contact"
|
|
58
|
+
error-rest-body: ". For more specific details about this problem, inspect the browser console."
|
|
59
|
+
date-plugin:
|
|
60
|
+
insert:
|
|
61
|
+
date: "Insert date"
|
|
62
|
+
datetime: "Insert date and time"
|
|
63
|
+
card:
|
|
64
|
+
title: "Date"
|
|
65
|
+
insert-date: "Insert date"
|
|
66
|
+
insert-datetime: "Insert date and time"
|
|
67
|
+
label: "Select date"
|
|
68
|
+
hours: "Hours"
|
|
69
|
+
minutes: "Minutes"
|
|
70
|
+
now: "Now"
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
citaten-plugin:
|
|
2
|
+
card:
|
|
3
|
+
title: Voeg verwijzing toe
|
|
4
|
+
suggestions: Suggesties
|
|
5
|
+
|
|
6
|
+
insert:
|
|
7
|
+
title: Verwijzing invoegen
|
|
8
|
+
|
|
9
|
+
search:
|
|
10
|
+
term: Zoekterm
|
|
11
|
+
advanced: Uitgebreid zoeken
|
|
12
|
+
type: Type van document
|
|
13
|
+
placeholder: Typ om te zoeken
|
|
14
|
+
date-document: Filter op datum document
|
|
15
|
+
date-document-from: "Filter document op datum vanaf:"
|
|
16
|
+
date-document-to: "Filter document op datum tot:"
|
|
17
|
+
date-publication: Filter op datum staatsblad
|
|
18
|
+
date-publication-from: "Filter publication op datum vanaf:"
|
|
19
|
+
date-publication-to: "Filter publicatie op datum tot:"
|
|
20
|
+
from: van
|
|
21
|
+
to: tot
|
|
22
|
+
article: Zoek artikel
|
|
23
|
+
article-placeholder: Artikel nummer
|
|
24
|
+
back: Terug naar zoekresultaten
|
|
25
|
+
results: Resultaten
|
|
26
|
+
|
|
27
|
+
pagination:
|
|
28
|
+
next: Volgende pagina
|
|
29
|
+
previous: Vorige pagina
|
|
30
|
+
of: van
|
|
31
|
+
|
|
32
|
+
references:
|
|
33
|
+
insert: Verwijzing invoegen
|
|
34
|
+
details: Details
|
|
35
|
+
refer-whole: Verwijs naar volledig document
|
|
36
|
+
refer-article: Verwijs naar artikel
|
|
37
|
+
lookup-codex: Bekijk in Vlaams Codex
|
|
38
|
+
|
|
39
|
+
alert:
|
|
40
|
+
loading: Laden…
|
|
41
|
+
no-results: Geen resultaten gevonden
|
|
42
|
+
error-title: Probleem bij het laden
|
|
43
|
+
error-intro: "Er heeft zich een fout voorgedaan bij het zoeken in de Vlaamse Codex:"
|
|
44
|
+
error-outro: Moest dit probleem aanhouden, neem contact op met
|
|
45
|
+
table-of-contents-plugin:
|
|
46
|
+
title: Inhoudstafel
|
|
47
|
+
toggle: Toon Inhoudstafel
|
|
48
|
+
besluit-type-plugin:
|
|
49
|
+
dt: "Besluittype"
|
|
50
|
+
insert-dt: "Selecteer een besluittype"
|
|
51
|
+
search-message: "Typ om te zoeken"
|
|
52
|
+
no-matches-message: "Geen resultaten"
|
|
53
|
+
alert-title: "Pas op"
|
|
54
|
+
alert-body: "U moet een subtype selecteren opdat het besluittype kan worden opgeslagen"
|
|
55
|
+
error-short: "Fout bij ophalen besluittypes"
|
|
56
|
+
error-title: "Fout"
|
|
57
|
+
error-first-body: "Er was een probleem bij het ophalen van de besluittypes. Probeer later opnieuw. Bij blijvende problemen, contacteer"
|
|
58
|
+
error-rest-body: ". Voor meer specifieke details, controleer de console in de browser."
|
|
59
|
+
date-plugin:
|
|
60
|
+
insert:
|
|
61
|
+
date: "Datum invoegen"
|
|
62
|
+
datetime: "Datum en tijd invoegen"
|
|
63
|
+
|
|
64
|
+
card:
|
|
65
|
+
title: "Datum"
|
|
66
|
+
insert-date: "Datum invoegen"
|
|
67
|
+
insert-datetime: "Datum en tijd invoegen"
|
|
68
|
+
label: "Selecteer datum"
|
|
69
|
+
hours: "Uur"
|
|
70
|
+
minutes: "Minuten"
|
|
71
|
+
now: "Nu"
|