@lblod/ember-rdfa-editor-lblod-plugins 2.1.1 → 3.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.
- package/.woodpecker/.release.yml +1 -1
- package/.woodpecker/.test-scenarios.yml +17 -0
- package/.woodpecker/.test.yml +5 -5
- package/CHANGELOG.md +31 -1
- package/README.md +1 -0
- package/addon/components/article-structure-plugin/article-structure-card.hbs +1 -3
- package/addon/components/article-structure-plugin/article-structure-card.ts +14 -8
- package/addon/components/article-structure-plugin/structure-card.hbs +6 -4
- package/addon/components/article-structure-plugin/structure-card.ts +19 -15
- package/addon/components/besluit-plugin/besluit-plugin-card.ts +8 -4
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +2 -2
- package/addon/components/besluit-type-plugin/toolbar-dropdown.ts +12 -10
- package/addon/components/citation-plugin/citation-card.ts +27 -25
- package/addon/components/citation-plugin/citation-insert.ts +34 -27
- package/addon/components/import-snippet-plugin/card.ts +9 -6
- package/addon/components/rdfa-date-plugin/card.ts +14 -18
- package/addon/components/rdfa-date-plugin/insert.hbs +0 -9
- package/addon/components/rdfa-date-plugin/insert.ts +12 -20
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.ts +3 -3
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.ts +5 -4
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.ts +1 -1
- package/addon/components/standard-template-plugin/card.ts +2 -2
- package/addon/components/standard-template-plugin/template-provider.ts +6 -5
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.ts +1 -1
- package/addon/components/table-of-contents-plugin/toolbar-button.ts +15 -9
- package/addon/components/variable-plugin/insert-variable-card.ts +19 -14
- package/addon/components/variable-plugin/template-variable-card.hbs +1 -1
- package/addon/components/variable-plugin/template-variable-card.ts +10 -7
- package/addon/components/variable-plugin/variable.hbs +8 -3
- package/addon/models/instruction.ts +1 -1
- package/addon/models/measure.ts +1 -1
- package/addon/models/sign.ts +1 -1
- package/addon/plugins/article-structure-plugin/commands/move-selected-structure.ts +1 -1
- package/addon/plugins/article-structure-plugin/index.ts +2 -32
- package/addon/plugins/article-structure-plugin/structures/article-paragraph.ts +16 -7
- package/addon/plugins/article-structure-plugin/structures/article.ts +7 -3
- package/addon/plugins/article-structure-plugin/structures/chapter.ts +1 -1
- package/addon/plugins/article-structure-plugin/structures/section.ts +1 -1
- package/addon/plugins/article-structure-plugin/structures/structure-header.ts +7 -2
- package/addon/plugins/article-structure-plugin/structures/subsection.ts +1 -1
- package/addon/plugins/article-structure-plugin/structures/title.ts +1 -1
- package/addon/plugins/besluit-plugin/utils/get-title-for-decision.ts +3 -6
- package/addon/plugins/citation-plugin/index.ts +1 -49
- package/addon/plugins/rdfa-date-plugin/index.ts +5 -28
- package/addon/plugins/rdfa-date-plugin/nodes/date.ts +1 -6
- package/addon/plugins/standard-template-plugin/index.ts +0 -6
- package/addon/plugins/standard-template-plugin/utils/nodes.ts +1 -1
- package/addon/plugins/table-of-contents-plugin/index.ts +0 -7
- package/addon/plugins/variable-plugin/nodes.ts +6 -3
- package/addon/services/roadsign-registry.ts +1 -1
- package/app/styles/article-structure-plugin.scss +7 -0
- package/app/styles/besluit-plugin.scss +4 -0
- package/components/article-structure-plugin/article-structure-card.d.ts +4 -5
- package/components/article-structure-plugin/structure-card.d.ts +4 -6
- package/components/besluit-plugin/besluit-plugin-card.d.ts +3 -3
- package/components/besluit-type-plugin/toolbar-dropdown.d.ts +3 -3
- package/components/citation-plugin/citation-card.d.ts +4 -6
- package/components/citation-plugin/citation-insert.d.ts +5 -7
- package/components/import-snippet-plugin/card.d.ts +3 -3
- package/components/rdfa-date-plugin/card.d.ts +5 -10
- package/components/rdfa-date-plugin/insert.d.ts +6 -12
- package/components/roadsign-regulation-plugin/roadsign-regulation-card.d.ts +3 -3
- package/components/roadsign-regulation-plugin/roadsigns-modal.d.ts +2 -2
- package/components/standard-template-plugin/card.d.ts +3 -3
- package/components/standard-template-plugin/template-provider.d.ts +3 -3
- package/components/table-of-contents-plugin/ember-nodes/table-of-contents.d.ts +1 -1
- package/components/table-of-contents-plugin/toolbar-button.d.ts +3 -3
- package/components/variable-plugin/insert-variable-card.d.ts +7 -8
- package/components/variable-plugin/template-variable-card.d.ts +3 -3
- package/package.json +26 -29
- package/plugins/article-structure-plugin/index.d.ts +2 -3
- package/plugins/besluit-plugin/utils/get-title-for-decision.d.ts +3 -3
- package/plugins/citation-plugin/index.d.ts +2 -12
- package/plugins/rdfa-date-plugin/index.d.ts +5 -5
- package/plugins/rdfa-date-plugin/nodes/date.d.ts +1 -6
- package/plugins/standard-template-plugin/index.d.ts +0 -2
- package/plugins/table-of-contents-plugin/index.d.ts +0 -2
- package/plugins/table-of-contents-plugin/nodes/table-of-contents.d.ts +1 -1
- package/plugins/variable-plugin/nodes.d.ts +1 -1
- package/translations/en-US.yaml +63 -61
- package/translations/nl-BE.yaml +65 -59
- package/addon/components/variable-plugin/variable.ts +0 -262
- package/addon/plugins/besluit-plugin/index.ts +0 -6
- package/addon/plugins/besluit-type-plugin/index.ts +0 -6
- package/addon/plugins/import-snippet-plugin.ts +0 -6
- package/addon/plugins/rdfa-date-plugin/nodes/index.ts +0 -1
- package/addon/plugins/roadsign-regulation-plugin/index.ts +0 -6
- package/addon/plugins/variable-plugin/index.ts +0 -16
- package/components/variable-plugin/variable.d.ts +0 -43
- package/plugins/besluit-plugin/index.d.ts +0 -2
- package/plugins/besluit-type-plugin/index.d.ts +0 -2
- package/plugins/import-snippet-plugin.d.ts +0 -2
- package/plugins/rdfa-date-plugin/nodes/index.d.ts +0 -1
- package/plugins/roadsign-regulation-plugin/index.d.ts +0 -2
- package/plugins/variable-plugin/index.d.ts +0 -3
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
getStructureHeaderAttrs,
|
|
7
7
|
} from '../utils/structure';
|
|
8
8
|
import { v4 as uuid } from 'uuid';
|
|
9
|
-
import { unwrap } from '@lblod/ember-rdfa-editor/utils/option';
|
|
10
9
|
import {
|
|
11
10
|
ELI,
|
|
12
11
|
EXT,
|
|
13
12
|
SAY,
|
|
14
13
|
XSD,
|
|
15
14
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
15
|
+
import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
16
16
|
|
|
17
17
|
const PLACEHOLDERS = {
|
|
18
18
|
title: 'article-structure-plugin.placeholder.article.heading',
|
|
@@ -106,10 +106,14 @@ export const article_header: NodeSpec = {
|
|
|
106
106
|
'Artikel ',
|
|
107
107
|
[
|
|
108
108
|
'span',
|
|
109
|
-
{
|
|
109
|
+
{
|
|
110
|
+
property: ELI('number').prefixed,
|
|
111
|
+
datatype: XSD('string').prefixed,
|
|
112
|
+
contenteditable: false,
|
|
113
|
+
},
|
|
110
114
|
node.attrs.number,
|
|
111
115
|
],
|
|
112
|
-
': ',
|
|
116
|
+
['span', { contenteditable: false }, ': '],
|
|
113
117
|
[
|
|
114
118
|
'span',
|
|
115
119
|
{
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { unwrap } from '@lblod/ember-rdfa-editor/utils/option';
|
|
2
1
|
import { StructureSpec } from '..';
|
|
3
2
|
import {
|
|
4
3
|
constructStructureBodyNodeSpec,
|
|
@@ -7,6 +6,7 @@ import {
|
|
|
7
6
|
} from '../utils/structure';
|
|
8
7
|
import { v4 as uuid } from 'uuid';
|
|
9
8
|
import { SAY } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
9
|
+
import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
10
10
|
|
|
11
11
|
const PLACEHOLDERS = {
|
|
12
12
|
title: 'article-structure-plugin.placeholder.chapter.heading',
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from '../utils/structure';
|
|
6
6
|
import { v4 as uuid } from 'uuid';
|
|
7
7
|
import { StructureSpec } from '..';
|
|
8
|
-
import { unwrap } from '@lblod/ember-rdfa-editor/utils/option';
|
|
9
8
|
import { SAY } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
9
|
+
import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
10
10
|
|
|
11
11
|
const PLACEHOLDERS = {
|
|
12
12
|
title: 'article-structure-plugin.placeholder.section.heading',
|
|
@@ -21,6 +21,7 @@ export const structure_header: NodeSpec = {
|
|
|
21
21
|
inline: false,
|
|
22
22
|
defining: true,
|
|
23
23
|
isolating: true,
|
|
24
|
+
selectable: false,
|
|
24
25
|
attrs: {
|
|
25
26
|
property: {
|
|
26
27
|
default: SAY('heading').prefixed,
|
|
@@ -42,10 +43,14 @@ export const structure_header: NodeSpec = {
|
|
|
42
43
|
{ property: node.attrs.property as string },
|
|
43
44
|
[
|
|
44
45
|
'span',
|
|
45
|
-
{
|
|
46
|
+
{
|
|
47
|
+
property: ELI('number').prefixed,
|
|
48
|
+
datatype: XSD('string').prefixed,
|
|
49
|
+
contenteditable: false,
|
|
50
|
+
},
|
|
46
51
|
node.attrs.number,
|
|
47
52
|
],
|
|
48
|
-
'. ',
|
|
53
|
+
['span', { contenteditable: false }, '. '],
|
|
49
54
|
[
|
|
50
55
|
'span',
|
|
51
56
|
{
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
romanize,
|
|
6
6
|
} from '../utils/structure';
|
|
7
7
|
import { v4 as uuid } from 'uuid';
|
|
8
|
-
import { unwrap } from '@lblod/ember-rdfa-editor/utils/option';
|
|
9
8
|
import { SAY } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
9
|
+
import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
10
10
|
|
|
11
11
|
const PLACEHOLDERS = {
|
|
12
12
|
title: 'article-structure-plugin.placeholder.subsection.heading',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { unwrap } from '@lblod/ember-rdfa-editor/utils/option';
|
|
2
1
|
import { StructureSpec } from '..';
|
|
3
2
|
import {
|
|
4
3
|
constructStructureBodyNodeSpec,
|
|
@@ -7,6 +6,7 @@ import {
|
|
|
7
6
|
} from '../utils/structure';
|
|
8
7
|
import { v4 as uuid } from 'uuid';
|
|
9
8
|
import { SAY } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
9
|
+
import { unwrap } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
10
10
|
|
|
11
11
|
const PLACEHOLDERS = {
|
|
12
12
|
heading: 'article-structure-plugin.placeholder.generic.heading',
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SayStore } from '@lblod/ember-rdfa-editor/plugins/datastore';
|
|
2
2
|
|
|
3
|
-
export function getTitleForDecision(
|
|
4
|
-
decisionUri: string,
|
|
5
|
-
datastore: ProseStore
|
|
6
|
-
) {
|
|
3
|
+
export function getTitleForDecision(decisionUri: string, datastore: SayStore) {
|
|
7
4
|
const title = datastore
|
|
8
5
|
.match(`>${decisionUri}`, '>http://data.europa.eu/eli/ontology#title')
|
|
9
6
|
.asQuads()
|
|
@@ -21,7 +18,7 @@ export function getTitleForDecision(
|
|
|
21
18
|
*/
|
|
22
19
|
export function getTitleNodesForDecision(
|
|
23
20
|
decisionUri: string,
|
|
24
|
-
datastore:
|
|
21
|
+
datastore: SayStore
|
|
25
22
|
) {
|
|
26
23
|
const mapping = datastore
|
|
27
24
|
.match(`>${decisionUri}`, '>http://data.europa.eu/eli/ontology#title')
|
|
@@ -4,17 +4,14 @@ import {
|
|
|
4
4
|
EditorState,
|
|
5
5
|
EditorStateConfig,
|
|
6
6
|
InlineDecorationSpec,
|
|
7
|
-
MarkSpec,
|
|
8
7
|
NodeType,
|
|
9
8
|
PNode,
|
|
10
9
|
ProsePlugin,
|
|
11
10
|
Schema,
|
|
12
|
-
WidgetSpec,
|
|
13
11
|
} from '@lblod/ember-rdfa-editor';
|
|
14
12
|
import processMatch, {
|
|
15
13
|
RegexpMatchArrayWithIndices,
|
|
16
14
|
} from './utils/process-match';
|
|
17
|
-
import { citation } from './marks/citation';
|
|
18
15
|
import { changedDescendants } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/changed-descendants';
|
|
19
16
|
|
|
20
17
|
const BASIC_MULTIPLANE_CHARACTER = '\u0021-\uFFFF'; // most of the characters used around the world
|
|
@@ -115,17 +112,6 @@ interface CitationPluginState {
|
|
|
115
112
|
|
|
116
113
|
export type CitationPlugin = ProsePlugin<CitationPluginState>;
|
|
117
114
|
|
|
118
|
-
export interface CitationPluginBundle {
|
|
119
|
-
plugin: ProsePlugin<CitationPluginState>;
|
|
120
|
-
widgets: {
|
|
121
|
-
citationCard: WidgetSpec;
|
|
122
|
-
citationInsert: WidgetSpec;
|
|
123
|
-
};
|
|
124
|
-
marks: {
|
|
125
|
-
citation: MarkSpec;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
115
|
export interface CitationPluginNodeConfig {
|
|
130
116
|
type: 'nodes';
|
|
131
117
|
regex?: RegExp;
|
|
@@ -144,41 +130,7 @@ export type CitationPluginConfig =
|
|
|
144
130
|
| CitationPluginNodeConfig
|
|
145
131
|
| CitationPluginRangeConfig;
|
|
146
132
|
|
|
147
|
-
export function
|
|
148
|
-
config: CitationPluginConfig = {
|
|
149
|
-
type: 'nodes',
|
|
150
|
-
activeInNodeTypes(schema): Set<NodeType> {
|
|
151
|
-
return new Set([schema.nodes.doc]);
|
|
152
|
-
},
|
|
153
|
-
}
|
|
154
|
-
): CitationPluginBundle {
|
|
155
|
-
const plugin = citationPlugin(config);
|
|
156
|
-
return {
|
|
157
|
-
plugin,
|
|
158
|
-
widgets: {
|
|
159
|
-
citationCard: {
|
|
160
|
-
desiredLocation: 'sidebar',
|
|
161
|
-
componentName: 'citation-plugin/citation-card',
|
|
162
|
-
widgetArgs: {
|
|
163
|
-
plugin,
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
citationInsert: {
|
|
167
|
-
desiredLocation: 'insertSidebar',
|
|
168
|
-
componentName: 'citation-plugin/citation-insert',
|
|
169
|
-
widgetArgs: {
|
|
170
|
-
config,
|
|
171
|
-
plugin,
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
marks: {
|
|
176
|
-
citation,
|
|
177
|
-
},
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
function citationPlugin(config: CitationPluginConfig): CitationPlugin {
|
|
133
|
+
export function citationPlugin(config: CitationPluginConfig): CitationPlugin {
|
|
182
134
|
const citation: CitationPlugin = new ProsePlugin({
|
|
183
135
|
state: {
|
|
184
136
|
init(stateConfig: EditorStateConfig, state: EditorState) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { WidgetSpec } from '@lblod/ember-rdfa-editor';
|
|
2
|
-
|
|
3
1
|
export const defaultDateFormats: DateFormat[] = [
|
|
4
2
|
{
|
|
5
3
|
label: 'Short Date',
|
|
@@ -15,31 +13,6 @@ export const defaultDateFormats: DateFormat[] = [
|
|
|
15
13
|
},
|
|
16
14
|
];
|
|
17
15
|
|
|
18
|
-
const defaultOptions = {
|
|
19
|
-
formats: defaultDateFormats,
|
|
20
|
-
allowCustomFormat: true,
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export function rdfaDateCardWidget(options?: DatePluginOptions): WidgetSpec {
|
|
24
|
-
return {
|
|
25
|
-
componentName: 'rdfa-date-plugin/card',
|
|
26
|
-
desiredLocation: 'sidebar',
|
|
27
|
-
widgetArgs: {
|
|
28
|
-
options: options ? options : defaultOptions,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function rdfaDateInsertWidget(options?: DatePluginOptions): WidgetSpec {
|
|
34
|
-
return {
|
|
35
|
-
componentName: 'rdfa-date-plugin/insert',
|
|
36
|
-
desiredLocation: 'insertSidebar',
|
|
37
|
-
widgetArgs: {
|
|
38
|
-
options: options ? options : defaultOptions,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
16
|
export type DateFormat = {
|
|
44
17
|
label: string;
|
|
45
18
|
key: string;
|
|
@@ -47,7 +20,11 @@ export type DateFormat = {
|
|
|
47
20
|
dateTimeFormat: string;
|
|
48
21
|
};
|
|
49
22
|
|
|
50
|
-
type
|
|
23
|
+
export type DateOptions = {
|
|
24
|
+
placeholder: {
|
|
25
|
+
insertDate: string;
|
|
26
|
+
insertDateTime: string;
|
|
27
|
+
};
|
|
51
28
|
formats: DateFormat[];
|
|
52
29
|
allowCustomFormat: boolean;
|
|
53
30
|
};
|
|
@@ -5,14 +5,9 @@ import {
|
|
|
5
5
|
XSD,
|
|
6
6
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
7
7
|
import { hasRDFaAttribute } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace';
|
|
8
|
+
import { DateOptions } from '..';
|
|
8
9
|
import { formatDate, validateDateFormat } from '../utils';
|
|
9
10
|
|
|
10
|
-
export type DateOptions = {
|
|
11
|
-
placeholder: {
|
|
12
|
-
insertDate: string;
|
|
13
|
-
insertDateTime: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
11
|
const date: (options: DateOptions) => NodeSpec = (options) => {
|
|
17
12
|
return {
|
|
18
13
|
group: 'inline',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { WidgetSpec } from '@lblod/ember-rdfa-editor';
|
|
2
1
|
import {
|
|
3
2
|
besluit,
|
|
4
3
|
title,
|
|
@@ -12,11 +11,6 @@ import {
|
|
|
12
11
|
besluitArticleStructure,
|
|
13
12
|
} from './utils/nodes';
|
|
14
13
|
|
|
15
|
-
export const standardTemplateWidget: WidgetSpec = {
|
|
16
|
-
desiredLocation: 'insertSidebar',
|
|
17
|
-
componentName: 'standard-template-plugin/card',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
14
|
export const besluitNodes = {
|
|
21
15
|
besluit,
|
|
22
16
|
title,
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { WidgetSpec } from '@lblod/ember-rdfa-editor';
|
|
2
|
-
|
|
3
1
|
export type TableOfContentsConfig = {
|
|
4
2
|
nodeHierarchy: string[];
|
|
5
3
|
}[];
|
|
6
|
-
|
|
7
|
-
export const tableOfContentsWidget: WidgetSpec = {
|
|
8
|
-
componentName: 'table-of-contents-plugin/toolbar-button',
|
|
9
|
-
desiredLocation: 'toolbarRight',
|
|
10
|
-
};
|
|
@@ -102,9 +102,12 @@ const emberNodeConfig: EmberNodeConfig = {
|
|
|
102
102
|
.find((el) => hasRDFaAttribute(el, 'property', EXT('instance')))
|
|
103
103
|
?.getAttribute('resource');
|
|
104
104
|
const mappingResource = node.getAttribute('resource');
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
const codelistSpan = [...node.children].find((el) =>
|
|
106
|
+
hasRDFaAttribute(el, 'property', EXT('codelist'))
|
|
107
|
+
);
|
|
108
|
+
const codelistResource =
|
|
109
|
+
codelistSpan?.getAttribute('resource') ??
|
|
110
|
+
codelistSpan?.getAttribute('content');
|
|
108
111
|
const source = [...node.children]
|
|
109
112
|
.find((el) => hasRDFaAttribute(el, 'property', DCT('source')))
|
|
110
113
|
?.getAttribute('resource');
|
|
@@ -7,8 +7,8 @@ import Instruction from '../models/instruction';
|
|
|
7
7
|
import Measure from '../models/measure';
|
|
8
8
|
import Sign from '../models/sign';
|
|
9
9
|
import { IBindings } from 'fetch-sparql-endpoint';
|
|
10
|
-
import { optionMapOr, unwrap } from '@lblod/ember-rdfa-editor/utils/option';
|
|
11
10
|
import dataFactory from '@rdfjs/data-model';
|
|
11
|
+
import { optionMapOr, unwrap } from '../utils/option';
|
|
12
12
|
|
|
13
13
|
const PREFIXES = `
|
|
14
14
|
PREFIX ex: <http://example.org#>
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
2
|
import IntlService from 'ember-intl/services/intl';
|
|
4
3
|
import { ArticleStructurePluginOptions, StructureSpec } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
4
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
5
5
|
type Args = {
|
|
6
|
-
controller:
|
|
7
|
-
|
|
8
|
-
options: ArticleStructurePluginOptions;
|
|
9
|
-
};
|
|
6
|
+
controller: SayController;
|
|
7
|
+
options: ArticleStructurePluginOptions;
|
|
10
8
|
};
|
|
11
9
|
export default class EditorPluginsArticleStructureCardComponent extends Component<Args> {
|
|
12
10
|
intl: IntlService;
|
|
13
11
|
get structureTypes(): ArticleStructurePluginOptions;
|
|
12
|
+
get controller(): SayController;
|
|
14
13
|
insertStructure(spec: StructureSpec): void;
|
|
15
14
|
canInsertStructure: (spec: StructureSpec) => boolean;
|
|
16
15
|
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import { ArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
4
4
|
import IntlService from 'ember-intl/services/intl';
|
|
5
5
|
type Args = {
|
|
6
|
-
controller:
|
|
7
|
-
|
|
8
|
-
options: ArticleStructurePluginOptions;
|
|
9
|
-
};
|
|
6
|
+
controller: SayController;
|
|
7
|
+
options: ArticleStructurePluginOptions;
|
|
10
8
|
};
|
|
11
9
|
export default class EditorPluginsStructureCardComponent extends Component<Args> {
|
|
12
10
|
intl: IntlService;
|
|
13
11
|
removeStructureContent: boolean;
|
|
14
|
-
get controller():
|
|
12
|
+
get controller(): SayController;
|
|
15
13
|
moveStructure(direction: 'up' | 'down'): void;
|
|
16
14
|
removeStructure(): void;
|
|
17
15
|
setRemoveStructureContent(value: boolean): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import IntlService from 'ember-intl/services/intl';
|
|
4
4
|
type Args = {
|
|
5
|
-
controller:
|
|
5
|
+
controller: SayController;
|
|
6
6
|
};
|
|
7
7
|
export default class BesluitPluginCardComponent extends Component<Args> {
|
|
8
8
|
intl: IntlService;
|
|
9
|
-
get controller():
|
|
9
|
+
get controller(): SayController;
|
|
10
10
|
focus(): void;
|
|
11
11
|
insertTitle(): void;
|
|
12
12
|
get canInsertTitle(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import CurrentSessionService from '@lblod/frontend-gelinkt-notuleren/services/current-session';
|
|
4
4
|
import { ResolvedPNode } from '@lblod/ember-rdfa-editor/plugins/datastore';
|
|
5
5
|
import { BesluitType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-type-plugin/utils/fetchBesluitTypes';
|
|
@@ -9,7 +9,7 @@ declare module 'ember__owner' {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
type Args = {
|
|
12
|
-
controller:
|
|
12
|
+
controller: SayController;
|
|
13
13
|
};
|
|
14
14
|
export default class EditorPluginsToolbarDropdownComponent extends Component<Args> {
|
|
15
15
|
currentSession: CurrentSessionService;
|
|
@@ -26,7 +26,7 @@ export default class EditorPluginsToolbarDropdownComponent extends Component<Arg
|
|
|
26
26
|
subSubBesluit?: BesluitType;
|
|
27
27
|
cardExpanded: boolean;
|
|
28
28
|
constructor(parent: unknown, args: Args);
|
|
29
|
-
get controller():
|
|
29
|
+
get controller(): SayController;
|
|
30
30
|
get doc(): import("prosemirror-model").Node;
|
|
31
31
|
types: import("ember-resources/util/function").State<BesluitType[]>;
|
|
32
32
|
get currentBesluitRange(): ResolvedPNode | undefined;
|
|
@@ -2,12 +2,10 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { Article, Decision } from '../../plugins/citation-plugin/utils/vlaamse-codex';
|
|
3
3
|
import { Option } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
4
4
|
import { CitationDecoration, CitationPlugin } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin';
|
|
5
|
-
import {
|
|
5
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
6
6
|
interface Args {
|
|
7
|
-
controller:
|
|
8
|
-
|
|
9
|
-
plugin: CitationPlugin;
|
|
10
|
-
};
|
|
7
|
+
controller: SayController;
|
|
8
|
+
plugin: CitationPlugin;
|
|
11
9
|
}
|
|
12
10
|
export default class CitationCardComponent extends Component<Args> {
|
|
13
11
|
pageNumber: number;
|
|
@@ -20,7 +18,7 @@ export default class CitationCardComponent extends Component<Args> {
|
|
|
20
18
|
decision: Decision | null;
|
|
21
19
|
cardText: string | null;
|
|
22
20
|
cardLegislationType: string | null;
|
|
23
|
-
get controller():
|
|
21
|
+
get controller(): SayController;
|
|
24
22
|
get showCard(): false | Option<CitationDecoration>;
|
|
25
23
|
get plugin(): CitationPlugin;
|
|
26
24
|
get decorations(): import("prosemirror-view").DecorationSet | undefined;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import { Article, Decision } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/vlaamse-codex';
|
|
4
4
|
import { CitationPlugin, CitationPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin';
|
|
5
5
|
interface Args {
|
|
6
|
-
controller:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
config: CitationPluginConfig;
|
|
10
|
-
};
|
|
6
|
+
controller: SayController;
|
|
7
|
+
plugin: CitationPlugin;
|
|
8
|
+
config: CitationPluginConfig;
|
|
11
9
|
}
|
|
12
10
|
export default class EditorPluginsCitationInsertComponent extends Component<Args> {
|
|
13
11
|
showModal: boolean;
|
|
@@ -24,7 +22,7 @@ export default class EditorPluginsCitationInsertComponent extends Component<Args
|
|
|
24
22
|
get disableInsert(): boolean;
|
|
25
23
|
get plugin(): CitationPlugin;
|
|
26
24
|
get activeRanges(): [number, number][] | undefined;
|
|
27
|
-
get controller():
|
|
25
|
+
get controller(): SayController;
|
|
28
26
|
openModal(): void;
|
|
29
27
|
closeModal(): void;
|
|
30
28
|
insertDecisionCitation(decision: Decision): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import ImportRdfaSnippet from '@lblod/ember-rdfa-editor-lblod-plugins/services/import-rdfa-snippet';
|
|
4
4
|
import { RdfaSnippet } from '@lblod/ember-rdfa-editor-lblod-plugins/services/import-rdfa-snippet';
|
|
5
5
|
type Args = {
|
|
6
|
-
controller:
|
|
6
|
+
controller: SayController;
|
|
7
7
|
};
|
|
8
8
|
export default class ImportSnippetPluginCard extends Component<Args> {
|
|
9
9
|
importRdfaSnippet: ImportRdfaSnippet;
|
|
10
|
-
get controller():
|
|
10
|
+
get controller(): SayController;
|
|
11
11
|
get snippets(): RdfaSnippet[];
|
|
12
12
|
get insertRange(): import("prosemirror-state").Selection | {
|
|
13
13
|
from: number;
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import { PNode } from '@lblod/ember-rdfa-editor';
|
|
4
|
-
import { DateFormat } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/rdfa-date-plugin';
|
|
4
|
+
import { DateFormat, DateOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/rdfa-date-plugin';
|
|
5
5
|
import { ValidationError } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/rdfa-date-plugin/utils';
|
|
6
6
|
import IntlService from 'ember-intl/services/intl';
|
|
7
7
|
import { Option } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
8
8
|
type Args = {
|
|
9
|
-
controller:
|
|
10
|
-
|
|
11
|
-
options: {
|
|
12
|
-
formats: [DateFormat];
|
|
13
|
-
allowCustomFormat: boolean;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
9
|
+
controller: SayController;
|
|
10
|
+
options: DateOptions;
|
|
16
11
|
};
|
|
17
12
|
export default class RdfaDatePluginCardComponent extends Component<Args> {
|
|
18
13
|
intl: IntlService;
|
|
19
14
|
helpModalOpen: boolean;
|
|
20
15
|
tooltipOpen: boolean;
|
|
21
16
|
get formats(): DateFormat[];
|
|
22
|
-
get controller():
|
|
17
|
+
get controller(): SayController;
|
|
23
18
|
get selection(): import("prosemirror-state").Selection;
|
|
24
19
|
get selectedDateNode(): Option<PNode>;
|
|
25
20
|
get documentDate(): Option<Date>;
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
3
|
-
import { DateFormat } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/rdfa-date-plugin';
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
import { DateFormat, DateOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/rdfa-date-plugin';
|
|
4
4
|
import { Option } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
5
5
|
type Args = {
|
|
6
|
-
controller:
|
|
7
|
-
|
|
8
|
-
options: {
|
|
9
|
-
formats: [DateFormat];
|
|
10
|
-
allowCustomFormat: boolean;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
6
|
+
controller: SayController;
|
|
7
|
+
options: DateOptions;
|
|
13
8
|
};
|
|
14
9
|
export default class RdfaDatePluginInsertComponent extends Component<Args> {
|
|
15
|
-
get controller():
|
|
10
|
+
get controller(): SayController;
|
|
16
11
|
get schema(): import("prosemirror-model").Schema<any, any>;
|
|
17
12
|
get formats(): DateFormat[];
|
|
18
13
|
get defaultDateFormat(): Option<string>;
|
|
19
|
-
|
|
20
|
-
insertDate(onlyDate: boolean): void;
|
|
14
|
+
insertDate(): void;
|
|
21
15
|
}
|
|
22
16
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
type Args = {
|
|
4
|
-
controller:
|
|
4
|
+
controller: SayController;
|
|
5
5
|
};
|
|
6
6
|
export default class RoadsignRegulationCard extends Component<Args> {
|
|
7
7
|
modalOpen: boolean;
|
|
8
8
|
openModal(): void;
|
|
9
9
|
closeModal(): void;
|
|
10
|
-
get controller():
|
|
10
|
+
get controller(): SayController;
|
|
11
11
|
get schema(): import("prosemirror-model").Schema<any, any>;
|
|
12
12
|
get showCard(): boolean;
|
|
13
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import RoadsignRegistryService from '@lblod/ember-rdfa-editor-lblod-plugins/services/roadsign-registry';
|
|
3
3
|
import Measure from '@lblod/ember-rdfa-editor-lblod-plugins/models/measure';
|
|
4
|
-
import {
|
|
4
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
5
5
|
import IntlService from 'ember-intl/services/intl';
|
|
6
6
|
type Option = {
|
|
7
7
|
label: string;
|
|
@@ -13,7 +13,7 @@ type Code = Option;
|
|
|
13
13
|
type Category = Option;
|
|
14
14
|
type Args = {
|
|
15
15
|
closeModal: () => void;
|
|
16
|
-
controller:
|
|
16
|
+
controller: SayController;
|
|
17
17
|
};
|
|
18
18
|
export default class RoadsignRegulationCard extends Component<Args> {
|
|
19
19
|
endpoint: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
2
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
type Args = {
|
|
4
|
-
controller:
|
|
4
|
+
controller: SayController;
|
|
5
5
|
};
|
|
6
6
|
export default class StandardTemplatePluginCardComponent extends Component<Args> {
|
|
7
|
-
get controller():
|
|
7
|
+
get controller(): SayController;
|
|
8
8
|
}
|
|
9
9
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import StandardTemplatePluginService from '@lblod/ember-rdfa-editor-lblod-plugins/services/standard-template-plugin';
|
|
3
|
-
import {
|
|
3
|
+
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
4
4
|
import TemplateModel from '@lblod/ember-rdfa-editor-lblod-plugins/models/template';
|
|
5
5
|
import { PNode, ResolvedPos } from '@lblod/ember-rdfa-editor';
|
|
6
6
|
type Args = {
|
|
7
|
-
controller:
|
|
7
|
+
controller: SayController;
|
|
8
8
|
};
|
|
9
9
|
export declare function findAncestors(pos: ResolvedPos, predicate?: (node: PNode) => boolean): {
|
|
10
10
|
node: PNode;
|
|
@@ -13,7 +13,7 @@ export declare function findAncestors(pos: ResolvedPos, predicate?: (node: PNode
|
|
|
13
13
|
export default class TemplateProviderComponent extends Component<Args> {
|
|
14
14
|
standardTemplatePlugin: StandardTemplatePluginService;
|
|
15
15
|
get busy(): boolean;
|
|
16
|
-
get controller():
|
|
16
|
+
get controller(): SayController;
|
|
17
17
|
get hasApplicableTemplates(): boolean;
|
|
18
18
|
get applicableTemplates(): TemplateModel[];
|
|
19
19
|
templateIsApplicable(template: TemplateModel): boolean | 0;
|