@lblod/ember-rdfa-editor-lblod-plugins 23.1.0 → 24.0.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 (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/addon/components/snippet-plugin/nodes/snippet.gts +18 -8
  3. package/addon/components/snippet-plugin/snippet-insert-placeholder.gts +10 -2
  4. package/addon/components/snippet-plugin/snippet-insert-rdfa.gts +5 -0
  5. package/addon/components/snippet-plugin/snippet-insert.gts +2 -0
  6. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +23 -12
  7. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.ts +18 -3
  8. package/addon/components/snippet-plugin/snippet-list-select.gts +7 -1
  9. package/addon/components/variable-plugin/autofilled/edit.gts +224 -0
  10. package/addon/components/variable-plugin/autofilled/insert.gts +143 -0
  11. package/addon/components/variable-plugin/autofilled/nodeview.gts +100 -0
  12. package/addon/components/variable-plugin/utils/label-input.gts +28 -0
  13. package/addon/plugins/citation-plugin/utils/public-decisions.ts +7 -6
  14. package/addon/plugins/citation-plugin/utils/vlaamse-codex.ts +7 -6
  15. package/addon/plugins/snippet-plugin/commands/insert-snippet.ts +4 -1
  16. package/addon/plugins/snippet-plugin/commands/update-snippet-placeholder.ts +7 -0
  17. package/addon/plugins/snippet-plugin/nodes/snippet-placeholder.ts +10 -1
  18. package/addon/plugins/snippet-plugin/nodes/snippet.ts +7 -0
  19. package/addon/plugins/snippet-plugin/utils/fetch-data.ts +32 -29
  20. package/addon/plugins/variable-plugin/plugins/autofiller.ts +98 -0
  21. package/addon/plugins/variable-plugin/variables/autofilled.ts +170 -0
  22. package/addon/plugins/variable-plugin/variables/index.ts +1 -0
  23. package/addon/services/roadsign-registry.ts +2 -1
  24. package/app/components/variable-plugin/autofilled/edit.js +1 -0
  25. package/app/components/variable-plugin/autofilled/insert.js +1 -0
  26. package/app/components/variable-plugin/autofilled/nodeview.js +1 -0
  27. package/declarations/addon/components/snippet-plugin/nodes/snippet.d.ts +1 -0
  28. package/declarations/addon/components/snippet-plugin/snippet-insert-placeholder.d.ts +1 -1
  29. package/declarations/addon/components/snippet-plugin/snippet-insert-rdfa.d.ts +1 -0
  30. package/declarations/addon/components/snippet-plugin/snippet-insert.d.ts +1 -0
  31. package/declarations/addon/components/snippet-plugin/snippet-list/snippet-list-modal.d.ts +4 -1
  32. package/declarations/addon/components/snippet-plugin/snippet-list-select.d.ts +2 -1
  33. package/declarations/addon/components/variable-plugin/autofilled/edit.d.ts +28 -0
  34. package/declarations/addon/components/variable-plugin/autofilled/insert.d.ts +20 -0
  35. package/declarations/addon/components/variable-plugin/autofilled/nodeview.d.ts +22 -0
  36. package/declarations/addon/components/variable-plugin/utils/label-input.d.ts +11 -1
  37. package/declarations/addon/plugins/snippet-plugin/commands/insert-snippet.d.ts +2 -1
  38. package/declarations/addon/plugins/snippet-plugin/commands/update-snippet-placeholder.d.ts +2 -1
  39. package/declarations/addon/plugins/snippet-plugin/nodes/snippet-placeholder.d.ts +1 -1
  40. package/declarations/addon/plugins/snippet-plugin/nodes/snippet.d.ts +2 -1
  41. package/declarations/addon/plugins/variable-plugin/plugins/autofiller.d.ts +8 -0
  42. package/declarations/addon/plugins/variable-plugin/variables/autofilled.d.ts +2 -0
  43. package/declarations/addon/plugins/variable-plugin/variables/index.d.ts +1 -0
  44. package/package.json +1 -1
  45. package/translations/en-US.yaml +7 -0
  46. package/translations/nl-BE.yaml +7 -0
  47. package/addon/components/variable-plugin/utils/label-input.hbs +0 -11
@@ -0,0 +1,170 @@
1
+ import {
2
+ DCT,
3
+ EXT,
4
+ RDF,
5
+ } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
6
+ import {
7
+ createEmberNodeSpec,
8
+ createEmberNodeView,
9
+ EmberNodeConfig,
10
+ } from '@lblod/ember-rdfa-editor/utils/ember-node';
11
+ import { v4 as uuidv4 } from 'uuid';
12
+ import {
13
+ DOMOutputSpec,
14
+ getRdfaAttrs,
15
+ PNode,
16
+ rdfaAttrSpec,
17
+ } from '@lblod/ember-rdfa-editor';
18
+ import {
19
+ hasRdfaVariableType,
20
+ isVariable,
21
+ parseLabel,
22
+ parseVariableInstance,
23
+ parseVariableType,
24
+ } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/variable-attribute-parsers';
25
+ import AutofilledNodeViewComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/autofilled/nodeview';
26
+ import type { ComponentLike } from '@glint/template';
27
+ import { hasOutgoingNamedNodeTriple } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace';
28
+ import { renderRdfaAware } from '@lblod/ember-rdfa-editor/core/schema';
29
+ import { sayDataFactory } from '@lblod/ember-rdfa-editor/core/say-data-factory';
30
+
31
+ const CONTENT_SELECTOR = `span[property~='${EXT('content').prefixed}'],
32
+ span[property~='${EXT('content').full}']`;
33
+ const rdfaAware = true;
34
+ const parseDOM = [
35
+ {
36
+ tag: 'span',
37
+ getAttrs: (node: HTMLElement) => {
38
+ const attrs = getRdfaAttrs(node, { rdfaAware });
39
+ if (!attrs) {
40
+ return false;
41
+ }
42
+ if (
43
+ hasOutgoingNamedNodeTriple(attrs, RDF('type'), EXT('Mapping')) &&
44
+ node.querySelector('[data-content-container="true"]') &&
45
+ hasRdfaVariableType(attrs, 'autofilled')
46
+ ) {
47
+ if (attrs.rdfaNodeType !== 'resource') {
48
+ return false;
49
+ }
50
+ const autofillKey = node.dataset.autofillKey;
51
+ const convertToString = node.dataset.convertToString === 'true';
52
+ const initialized = node.dataset.initialized === 'true';
53
+ return {
54
+ ...attrs,
55
+ autofillKey,
56
+ convertToString,
57
+ initialized,
58
+ };
59
+ }
60
+
61
+ return false;
62
+ },
63
+ contentElement: '[data-content-container="true"]',
64
+ },
65
+ {
66
+ tag: 'span',
67
+ getAttrs: (node: HTMLElement) => {
68
+ if (
69
+ isVariable(node) &&
70
+ node.querySelector(CONTENT_SELECTOR) &&
71
+ parseVariableType(node) === 'autofilled'
72
+ ) {
73
+ const mappingSubject =
74
+ node.getAttribute('subject') ||
75
+ node.getAttribute('resource') ||
76
+ node.getAttribute('about');
77
+ if (!mappingSubject) {
78
+ return false;
79
+ }
80
+ const variableInstance = parseVariableInstance(node);
81
+ const label = parseLabel(node);
82
+ const autofillKey = node.dataset.autofillKey;
83
+ const convertToString = node.dataset.convertToString === 'true';
84
+ const initialized = node.dataset.initialized === 'true';
85
+ return {
86
+ __rdfaId: uuidv4(),
87
+ subject: mappingSubject,
88
+ rdfaNodeType: 'resource',
89
+ properties: [
90
+ {
91
+ predicate: RDF('type').full,
92
+ object: sayDataFactory.namedNode(EXT('Mapping').full),
93
+ },
94
+ {
95
+ predicate: EXT('instance').full,
96
+ object: sayDataFactory.namedNode(
97
+ variableInstance ??
98
+ `http://data.lblod.info/variables/${uuidv4()}`,
99
+ ),
100
+ },
101
+ {
102
+ predicate: EXT('label').full,
103
+ object: sayDataFactory.literal(label || ''),
104
+ },
105
+ {
106
+ predicate: DCT('type').full,
107
+ object: sayDataFactory.literal('autofilled'),
108
+ },
109
+ {
110
+ predicate: EXT('content').full,
111
+ object: sayDataFactory.contentLiteral(),
112
+ },
113
+ ],
114
+ autofillKey,
115
+ convertToString,
116
+ initialized,
117
+ };
118
+ }
119
+
120
+ return false;
121
+ },
122
+ contentElement: CONTENT_SELECTOR,
123
+ },
124
+ ];
125
+
126
+ const toDOM = (node: PNode): DOMOutputSpec => {
127
+ return renderRdfaAware({
128
+ renderable: node,
129
+ tag: 'span',
130
+ attrs: {
131
+ ...node.attrs,
132
+ 'data-autofill-key': node.attrs.autofillKey,
133
+ 'data-convert-to-string': node.attrs.convertToString,
134
+ 'data-initialized': node.attrs.initialized,
135
+ },
136
+ content: 0,
137
+ });
138
+ };
139
+
140
+ const emberNodeConfig: EmberNodeConfig = {
141
+ name: 'autofilled-variable',
142
+ component: AutofilledNodeViewComponent as unknown as ComponentLike,
143
+ inline: true,
144
+ group: 'inline variable',
145
+ content: 'inline*',
146
+ atom: true,
147
+ recreateUri: true,
148
+ uriAttributes: ['variableInstance'],
149
+ draggable: false,
150
+ needsFFKludge: true,
151
+ editable: true,
152
+ selectable: true,
153
+ attrs: {
154
+ ...rdfaAttrSpec({ rdfaAware }),
155
+ autofillKey: {
156
+ default: '',
157
+ },
158
+ convertToString: {
159
+ default: false,
160
+ },
161
+ initialized: {
162
+ default: false,
163
+ },
164
+ },
165
+ toDOM,
166
+ parseDOM,
167
+ };
168
+
169
+ export const autofilled_variable = createEmberNodeSpec(emberNodeConfig);
170
+ export const autofilledVariableView = createEmberNodeView(emberNodeConfig);
@@ -5,3 +5,4 @@ export * from './location';
5
5
  export * from './address';
6
6
  export * from './date';
7
7
  export * from './person';
8
+ export * from './autofilled';
@@ -8,6 +8,7 @@ import Sign from '../models/sign';
8
8
  import { IBindings } from 'fetch-sparql-endpoint';
9
9
  import dataFactory from '@rdfjs/data-model';
10
10
  import { optionMapOr, unwrap } from '../utils/option';
11
+ import { sparqlEscapeString } from '../utils/sparql-helpers';
11
12
 
12
13
  const PREFIXES = `
13
14
  PREFIX ex: <http://example.org#>
@@ -112,7 +113,7 @@ export default class RoadsignRegistryService extends Service {
112
113
  ${signFilter}
113
114
  ${
114
115
  codeString
115
- ? `FILTER(CONTAINS(LCASE(?signCode), "${codeString.toLowerCase()}"))`
116
+ ? `FILTER(CONTAINS(LCASE(?signCode), ${sparqlEscapeString(codeString.toLowerCase())}))`
116
117
  : ''
117
118
  }
118
119
  }
@@ -0,0 +1 @@
1
+ export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/autofilled/edit';
@@ -0,0 +1 @@
1
+ export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/autofilled/insert';
@@ -0,0 +1 @@
1
+ export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/autofilled/nodeview';
@@ -14,6 +14,7 @@ export default class SnippetNode extends Component<Signature> {
14
14
  get node(): PNode;
15
15
  closeModal(): void;
16
16
  openModal(): void;
17
+ get allowMultipleSnippets(): boolean;
17
18
  addFragment(): void;
18
19
  editFragment(): void;
19
20
  deleteFragment(): void;
@@ -12,6 +12,6 @@ export default class SnippetPluginSnippetInsertPlaceholder extends Component<Sig
12
12
  get placeholderNode(): NodeType | undefined;
13
13
  openModal(): void;
14
14
  closeModal(): void;
15
- insertPlaceholder(lists: SnippetList[] | undefined): void;
15
+ insertPlaceholder(lists: SnippetList[] | undefined, allowMultipleSnippets: boolean): void;
16
16
  }
17
17
  export {};
@@ -15,5 +15,6 @@ export default class SnippetInsertRdfaComponent extends Component<Sig> {
15
15
  listIds: string[];
16
16
  importedResources: ImportedResourceMap;
17
17
  } | undefined;
18
+ get allowMultipleSnippets(): boolean;
18
19
  }
19
20
  export {};
@@ -11,6 +11,7 @@ interface Sig {
11
11
  importedResources: ImportedResourceMap;
12
12
  } | undefined;
13
13
  disabled?: boolean;
14
+ allowMultipleSnippets?: boolean;
14
15
  };
15
16
  }
16
17
  export default class SnippetInsertComponent extends Component<Sig> {
@@ -4,10 +4,11 @@ import { SnippetPluginConfig, SnippetList } from '@lblod/ember-rdfa-editor-lblod
4
4
  interface Signature {
5
5
  Args: {
6
6
  config: SnippetPluginConfig;
7
- onSaveSnippetLists: (lists: SnippetList[]) => void;
7
+ onSaveSnippetLists: (lists: SnippetList[], allowMultipleSnippets: boolean) => void;
8
8
  assignedSnippetListsIds: string[] | undefined;
9
9
  closeModal: () => void;
10
10
  open: boolean;
11
+ allowMultipleSnippets?: boolean;
11
12
  };
12
13
  }
13
14
  export default class SnippetListModalComponent extends Component<Signature> {
@@ -15,6 +16,8 @@ export default class SnippetListModalComponent extends Component<Signature> {
15
16
  sort: OrderBy;
16
17
  error: unknown;
17
18
  assignedSnippetListsIds: string[];
19
+ allowMultipleSnippets: boolean;
20
+ handleMultipleSnippetsCheckbox(checked: boolean): void;
18
21
  get config(): SnippetPluginConfig;
19
22
  closeModal(): void;
20
23
  saveAndClose(): void;
@@ -18,7 +18,8 @@ export default class SnippetListSelect extends Component<Signature> {
18
18
  get isResourceNode(): boolean;
19
19
  get snippetListIdsProperties(): OutgoingTriple[];
20
20
  get assignedSnippetListsIds(): string[];
21
+ get allowMultipleSnippets(): boolean;
21
22
  get imported(): ImportedResourceMap;
22
- onSaveSnippetLists(lists: SnippetList[]): void;
23
+ onSaveSnippetLists(lists: SnippetList[], allowMultipleSnippets: boolean): void;
23
24
  }
24
25
  export {};
@@ -0,0 +1,28 @@
1
+ import Component from '@glimmer/component';
2
+ import { type SayController } from '@lblod/ember-rdfa-editor';
3
+ import IntlService from 'ember-intl/services/intl';
4
+ type Args = {
5
+ controller: SayController;
6
+ };
7
+ export default class AutoFilledVariableInsertComponent extends Component<Args> {
8
+ intl: IntlService;
9
+ convertToString: boolean;
10
+ autofillKey?: string;
11
+ label: string;
12
+ get selectedVariable(): {
13
+ node: import("prosemirror-model").Node;
14
+ pos: number;
15
+ } | null;
16
+ get autofillKeyAttr(): any;
17
+ get convertToStringAttr(): any;
18
+ get labelAttr(): string | undefined;
19
+ get showCard(): boolean;
20
+ get controller(): SayController;
21
+ get schema(): import("prosemirror-model").Schema<any, any>;
22
+ get documentLanguage(): string;
23
+ updateLabel(event: InputEvent): void;
24
+ updateAutofillKey(event: InputEvent): void;
25
+ updateConvertToString(value: boolean): void;
26
+ edit(): void;
27
+ }
28
+ export {};
@@ -0,0 +1,20 @@
1
+ import Component from '@glimmer/component';
2
+ import { type SayController } from '@lblod/ember-rdfa-editor';
3
+ import IntlService from 'ember-intl/services/intl';
4
+ type Args = {
5
+ controller: SayController;
6
+ };
7
+ export default class AutoFilledVariableInsertComponent extends Component<Args> {
8
+ intl: IntlService;
9
+ label: string;
10
+ autofillKey?: string;
11
+ convertToString?: boolean;
12
+ get controller(): SayController;
13
+ get schema(): import("prosemirror-model").Schema<any, any>;
14
+ get documentLanguage(): string;
15
+ updateLabel(event: InputEvent): void;
16
+ updateAutofillKey(event: InputEvent): void;
17
+ updateConvertToString(value: boolean): void;
18
+ insert(): void;
19
+ }
20
+ export {};
@@ -0,0 +1,22 @@
1
+ import Component from '@glimmer/component';
2
+ import { PNode, ProsePlugin, SayController, SayView } from '@lblod/ember-rdfa-editor';
3
+ import { EmberNodeArgs, SayNodeViewConstructor } from '@lblod/ember-rdfa-editor/utils/ember-node';
4
+ type Args = EmberNodeArgs & {
5
+ getPos: () => number | undefined;
6
+ node: PNode;
7
+ updateAttribute: (attr: string, value: unknown) => void;
8
+ controller: SayController;
9
+ view: SayView;
10
+ selected: boolean;
11
+ selectNode: () => void;
12
+ nodeViews: Record<string, SayNodeViewConstructor>;
13
+ };
14
+ export default class AutoFilledVariableNodeViewComponent extends Component<Args> {
15
+ PencilIcon: TOC<import("@appuniversum/ember-appuniversum/components/icons/pencil").PencilIconSignature>;
16
+ innerView?: SayView;
17
+ get plugins(): ProsePlugin[];
18
+ onClick(): void;
19
+ initEditor(view: SayView): void;
20
+ get label(): string | undefined;
21
+ }
22
+ export {};
@@ -1 +1,11 @@
1
- export {};
1
+ /// <reference types=".pnpm/ember-source@4.12.0_@babel+core@7.24.7_@glimmer+component@1.1.2_@babel+core@7.24.7__@glint+template@1.4.0_webpack@5.92.1/node_modules/ember-source/types/stable/@ember/component/template-only" />
2
+ /// <reference types="@glint/environment-ember-loose/-private/dsl/integration-declarations" />
3
+ import { TemplateOnlyComponent } from '@ember/component/template-only';
4
+ interface Sig {
5
+ Args: {
6
+ label: string;
7
+ updateLabel: (event: InputEvent) => void;
8
+ };
9
+ }
10
+ declare const LabelInput: TemplateOnlyComponent<Sig>;
11
+ export default LabelInput;
@@ -9,6 +9,7 @@ export interface InsertSnippetCommandArgs {
9
9
  start: number;
10
10
  end: number;
11
11
  };
12
+ allowMultipleSnippets?: boolean;
12
13
  }
13
- declare const insertSnippet: ({ content, title, assignedSnippetListsIds, importedResources, range, }: InsertSnippetCommandArgs) => Command;
14
+ declare const insertSnippet: ({ content, title, assignedSnippetListsIds, importedResources, range, allowMultipleSnippets, }: InsertSnippetCommandArgs) => Command;
14
15
  export default insertSnippet;
@@ -2,10 +2,11 @@ import { Command } from '@lblod/ember-rdfa-editor';
2
2
  import { type OutgoingTriple } from '@lblod/ember-rdfa-editor/core/rdfa-processor';
3
3
  import { type ResolvedPNode } from '@lblod/ember-rdfa-editor/utils/_private/types';
4
4
  import { type ImportedResourceMap, type SnippetList } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
5
- export declare const updateSnippetPlaceholder: ({ resource, oldSnippetProperties, newSnippetLists, oldImportedResources, node, }: {
5
+ export declare const updateSnippetPlaceholder: ({ resource, oldSnippetProperties, newSnippetLists, oldImportedResources, node, allowMultipleSnippets, }: {
6
6
  resource: string;
7
7
  oldSnippetProperties: OutgoingTriple[];
8
8
  newSnippetLists: SnippetList[];
9
9
  oldImportedResources: ImportedResourceMap;
10
10
  node: ResolvedPNode;
11
+ allowMultipleSnippets?: boolean | undefined;
11
12
  }) => Command;
@@ -3,6 +3,6 @@ import { type ImportedResourceMap, type SnippetList } from '@lblod/ember-rdfa-ed
3
3
  export declare function importedResourcesFromSnippetLists(lists: SnippetList[], existing?: ImportedResourceMap): {
4
4
  [k: string]: import("../../../utils/option").Option<string>;
5
5
  };
6
- export declare function createSnippetPlaceholder(lists: SnippetList[], schema: Schema): import("prosemirror-model").Node;
6
+ export declare function createSnippetPlaceholder(lists: SnippetList[], schema: Schema, allowMultipleSnippets?: boolean): import("prosemirror-model").Node;
7
7
  export declare const snippetPlaceholder: import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
8
8
  export declare const snippetPlaceholderView: (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
@@ -7,6 +7,7 @@ interface CreateSnippetArgs {
7
7
  title: string;
8
8
  snippetListIds: string[];
9
9
  importedResources?: ImportedResourceMap;
10
+ allowMultipleSnippets?: boolean;
10
11
  }
11
12
  /**
12
13
  * Creates a Snippet node wrapping the given content while allowing for further snippets to be added
@@ -14,7 +15,7 @@ interface CreateSnippetArgs {
14
15
  * @returns a tuple containing the Node and the map of imported resources to the new outgoing
15
16
  * properties that these resources will have after the snippet is inserted into the document.
16
17
  **/
17
- export declare function createSnippet({ schema, content, title, snippetListIds, importedResources, }: CreateSnippetArgs): [PNode, Map<string, OutgoingTriple[]>];
18
+ export declare function createSnippet({ schema, content, title, snippetListIds, importedResources, allowMultipleSnippets, }: CreateSnippetArgs): [PNode, Map<string, OutgoingTriple[]>];
18
19
  export declare const snippet: (config: SnippetPluginConfig) => import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
19
20
  export declare const snippetView: (config: SnippetPluginConfig) => (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
20
21
  export {};
@@ -0,0 +1,8 @@
1
+ import { ProsePlugin } from '@lblod/ember-rdfa-editor';
2
+ type AutofilledArgs = {
3
+ autofilledValues: {
4
+ [Key: string]: string;
5
+ };
6
+ };
7
+ export declare function variableAutofillerPlugin(config: AutofilledArgs): ProsePlugin;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const autofilled_variable: import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
2
+ export declare const autofilledVariableView: (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
@@ -5,3 +5,4 @@ export * from './location';
5
5
  export * from './address';
6
6
  export * from './date';
7
7
  export * from './person';
8
+ export * from './autofilled';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "23.1.0",
3
+ "version": "24.0.0",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -254,6 +254,8 @@ variable:
254
254
  label: address
255
255
  person:
256
256
  label: person
257
+ autofilled:
258
+ label: autofilled
257
259
  variable-plugin:
258
260
  insert-variable: Insert variable
259
261
  button: Insert
@@ -269,6 +271,10 @@ variable-plugin:
269
271
  person:
270
272
  card-title: Insert person
271
273
  nodeview-placeholder: Insert person
274
+ autofill:
275
+ autofillKey: Autofill Key
276
+ convertToString: Replace variable node with plain text on text insertion
277
+ autofillKeyPlaceholder: Autofill Key
272
278
 
273
279
  table-of-contents-plugin:
274
280
  title: Table of Contents
@@ -324,6 +330,7 @@ snippet-plugin:
324
330
  list: List
325
331
  created: Created
326
332
  imported-resources: Imported Resources
333
+ multi-snippet-toggle: Allow multi-snippet selection
327
334
  snippet-node:
328
335
  change-fragment: Change Fragment
329
336
  remove-fragment: Remove Fragment
@@ -258,6 +258,8 @@ variable:
258
258
  label: adres
259
259
  person:
260
260
  label: persoon
261
+ autofilled:
262
+ label: automatisch ingevuld
261
263
  variable-plugin:
262
264
  insert-variable: Voeg variabele in
263
265
  button: Voeg in
@@ -273,6 +275,10 @@ variable-plugin:
273
275
  person:
274
276
  card-title: Persoon invoegen
275
277
  nodeview-placeholder: Voeg persoon in
278
+ autofill:
279
+ autofillKey: Sleutelwaarde
280
+ convertToString: Vervang variabele door platte tekst bij invoegen
281
+ autofillKeyPlaceholder: Sleutelwaarde
276
282
  dummy:
277
283
  validation-card:
278
284
  title: Documentvalidatie
@@ -323,6 +329,7 @@ snippet-plugin:
323
329
  list: Lijst
324
330
  created: Aangemaakt op
325
331
  imported-resources: Ingevoerde Middelen
332
+ multi-snippet-toggle: Meerkeuze-fragmentselectie
326
333
  snippet-node:
327
334
  change-fragment: Fragment vervangen
328
335
  remove-fragment: Fragment verwijderen
@@ -1,11 +0,0 @@
1
- <AuLabel for='label'>
2
- {{t 'variable-plugin.label'}}
3
- </AuLabel>
4
- <AuNativeInput
5
- id='label'
6
- placeholder={{t 'variable-plugin.labelPlaceholder'}}
7
- @type='text'
8
- @width='block'
9
- value={{@label}}
10
- {{on 'input' @updateLabel}}
11
- />