@lblod/ember-rdfa-editor-lblod-plugins 25.2.0 → 25.2.1-dev.3f3b7d0dfbeef50aaf66f35c51097fc42ad192cd
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/.changeset/metal-bags-pump.md +5 -0
- package/.changeset/twelve-mugs-think.md +9 -0
- package/.changeset/wild-walls-turn.md +17 -0
- package/CHANGELOG.md +8 -0
- package/addon/components/lmb-plugin/insert.ts +10 -3
- package/addon/components/lmb-plugin/list.hbs +16 -22
- package/addon/components/lmb-plugin/search-modal.ts +11 -11
- package/addon/components/location-plugin/nodeview.gts +16 -28
- package/addon/components/variable-plugin/address/nodeview.hbs +4 -18
- package/addon/components/variable-plugin/address/nodeview.ts +12 -23
- package/addon/components/variable-plugin/autofilled/insert.gts +3 -2
- package/addon/components/variable-plugin/codelist/insert.ts +1 -1
- package/addon/components/variable-plugin/date/nodeview.hbs +4 -12
- package/addon/components/variable-plugin/date/nodeview.ts +5 -23
- package/addon/components/variable-plugin/location/insert.ts +4 -2
- package/addon/components/variable-plugin/number/nodeview.hbs +4 -19
- package/addon/components/variable-plugin/number/nodeview.ts +12 -10
- package/addon/components/variable-plugin/person/edit.ts +12 -12
- package/addon/components/variable-plugin/person/nodeview.hbs +4 -18
- package/addon/components/variable-plugin/person/nodeview.ts +16 -23
- package/addon/components/variable-plugin/text/insert.ts +1 -1
- package/addon/components/variable-plugin/variable/nodeview.hbs +2 -8
- package/addon/components/variable-plugin/variable/nodeview.ts +16 -7
- package/addon/models/electee.ts +22 -0
- package/addon/plugins/lmb-plugin/index.ts +7 -9
- package/addon/plugins/lmb-plugin/utils/fetchElectees.ts +163 -0
- package/addon/plugins/variable-plugin/variables/autofilled.ts +2 -2
- package/addon/plugins/variable-plugin/variables/location.ts +2 -3
- package/addon/plugins/variable-plugin/variables/person.ts +27 -10
- package/addon/utils/namespace.ts +4 -1
- package/app/styles/variable-plugin.scss +21 -26
- package/declarations/addon/components/lmb-plugin/insert.d.ts +2 -2
- package/declarations/addon/components/lmb-plugin/search-modal.d.ts +6 -6
- package/declarations/addon/components/location-plugin/nodeview.d.ts +2 -3
- package/declarations/addon/components/variable-plugin/address/nodeview.d.ts +2 -8
- package/declarations/addon/components/variable-plugin/date/nodeview.d.ts +2 -6
- package/declarations/addon/components/variable-plugin/number/nodeview.d.ts +2 -4
- package/declarations/addon/components/variable-plugin/person/edit.d.ts +2 -2
- package/declarations/addon/components/variable-plugin/person/nodeview.d.ts +4 -9
- package/declarations/addon/components/variable-plugin/variable/nodeview.d.ts +2 -2
- package/declarations/addon/models/electee.d.ts +10 -0
- package/declarations/addon/plugins/lmb-plugin/index.d.ts +2 -2
- package/declarations/addon/plugins/lmb-plugin/utils/{fetchMandatees.d.ts → fetchElectees.d.ts} +4 -4
- package/declarations/addon/plugins/variable-plugin/variables/person.d.ts +5 -0
- package/package.json +3 -3
- package/pnpm-lock.yaml +24 -17
- package/translations/en-US.yaml +12 -11
- package/translations/nl-BE.yaml +9 -10
- package/addon/components/variable-plugin/autofilled/nodeview.gts +0 -100
- package/addon/components/variable-plugin/location/nodeview.hbs +0 -24
- package/addon/components/variable-plugin/location/nodeview.ts +0 -46
- package/addon/models/mandatee.ts +0 -35
- package/addon/plugins/lmb-plugin/utils/fetchMandatees.ts +0 -143
- package/declarations/addon/components/variable-plugin/autofilled/nodeview.d.ts +0 -22
- package/declarations/addon/components/variable-plugin/location/nodeview.d.ts +0 -11
- package/declarations/addon/models/mandatee.d.ts +0 -13
|
@@ -13,7 +13,6 @@ type Args = {
|
|
|
13
13
|
selectNode: () => void;
|
|
14
14
|
};
|
|
15
15
|
export default class NumberNodeviewComponent extends Component<Args> {
|
|
16
|
-
PencilIcon: TOC<import("@appuniversum/ember-appuniversum/components/icons/pencil").PencilIconSignature>;
|
|
17
16
|
Velcro: typeof Velcro;
|
|
18
17
|
inputNumber: string;
|
|
19
18
|
writtenNumber: boolean;
|
|
@@ -22,12 +21,11 @@ export default class NumberNodeviewComponent extends Component<Args> {
|
|
|
22
21
|
focus(element: HTMLInputElement): void;
|
|
23
22
|
get controller(): SayController;
|
|
24
23
|
get documentLanguage(): string;
|
|
25
|
-
get translations(): {
|
|
26
|
-
placeholder: string;
|
|
27
|
-
};
|
|
28
24
|
get node(): PNode;
|
|
29
25
|
get number(): string | null | undefined;
|
|
30
26
|
get formattedNumber(): string | null | undefined;
|
|
27
|
+
get filled(): boolean;
|
|
28
|
+
get content(): string | null | undefined;
|
|
31
29
|
get selected(): boolean;
|
|
32
30
|
get minValue(): number;
|
|
33
31
|
get maxValue(): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { SayController, PNode } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import { LmbPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/lmb-plugin';
|
|
4
|
-
import
|
|
4
|
+
import Electee from '@lblod/ember-rdfa-editor-lblod-plugins/models/electee';
|
|
5
5
|
type Args = {
|
|
6
6
|
controller: SayController;
|
|
7
7
|
config: LmbPluginConfig;
|
|
@@ -18,6 +18,6 @@ export default class PersonEditComponent extends Component<Args> {
|
|
|
18
18
|
get isEditing(): boolean;
|
|
19
19
|
openModal(): void;
|
|
20
20
|
closeModal(): void;
|
|
21
|
-
onInsert(
|
|
21
|
+
onInsert(electee: Electee): void;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import IntlService from 'ember-intl/services/intl';
|
|
3
2
|
import { PNode, SayController } from '@lblod/ember-rdfa-editor';
|
|
4
|
-
import
|
|
3
|
+
import { Person } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/variables';
|
|
5
4
|
type Args = {
|
|
6
5
|
getPos: () => number | undefined;
|
|
7
6
|
node: PNode;
|
|
8
7
|
controller: SayController;
|
|
9
8
|
};
|
|
10
9
|
export default class PersonNodeviewComponent extends Component<Args> {
|
|
11
|
-
PencilIcon: TOC<import("@appuniversum/ember-appuniversum/components/icons/pencil").PencilIconSignature>;
|
|
12
|
-
intl: IntlService;
|
|
13
10
|
get controller(): SayController;
|
|
14
|
-
get documentLanguage(): string;
|
|
15
|
-
get translations(): {
|
|
16
|
-
placeholder: string;
|
|
17
|
-
};
|
|
18
11
|
get node(): PNode;
|
|
19
|
-
get
|
|
12
|
+
get person(): Person | null;
|
|
20
13
|
get label(): string | undefined;
|
|
14
|
+
get filled(): boolean;
|
|
15
|
+
get content(): string | undefined;
|
|
21
16
|
}
|
|
22
17
|
export {};
|
|
@@ -2,10 +2,10 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { ProsePlugin, SayView } from '@lblod/ember-rdfa-editor';
|
|
3
3
|
import { EmberNodeArgs } from '@lblod/ember-rdfa-editor/utils/ember-node';
|
|
4
4
|
export default class VariableNodeViewComponent extends Component<EmberNodeArgs> {
|
|
5
|
-
PencilIcon: TOC<import("@appuniversum/ember-appuniversum/components/icons/pencil").PencilIconSignature>;
|
|
6
5
|
innerView?: SayView;
|
|
7
6
|
get plugins(): ProsePlugin[];
|
|
8
7
|
onClick(): void;
|
|
9
8
|
initEditor(view: SayView): void;
|
|
10
|
-
|
|
9
|
+
resetVariable(): void;
|
|
10
|
+
get label(): any;
|
|
11
11
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBindings } from 'fetch-sparql-endpoint';
|
|
2
|
+
export default class Electee {
|
|
3
|
+
readonly uri: string;
|
|
4
|
+
readonly firstName: string;
|
|
5
|
+
readonly lastName: string;
|
|
6
|
+
readonly kandidatenlijst?: string | undefined;
|
|
7
|
+
constructor(uri: string, firstName: string, lastName: string, kandidatenlijst?: string | undefined);
|
|
8
|
+
static fromBinding(binding: IBindings): Electee;
|
|
9
|
+
get fullName(): string;
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SayController } from '@lblod/ember-rdfa-editor';
|
|
2
|
-
import Mandatee from '@lblod/ember-rdfa-editor-lblod-plugins/models/mandatee';
|
|
3
2
|
import { BestuursperiodeLabel } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
3
|
+
import { Person } from '../variable-plugin/variables';
|
|
4
4
|
export type LmbPluginConfig = {
|
|
5
5
|
endpoint: string;
|
|
6
6
|
defaultPeriod?: BestuursperiodeLabel;
|
|
7
7
|
defaultAdminUnit?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function createPersonNode(controller: SayController, person: Person): import("prosemirror-model").Node;
|
package/declarations/addon/plugins/lmb-plugin/utils/{fetchMandatees.d.ts → fetchElectees.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchSort } from '@lblod/ember-rdfa-editor-lblod-plugins/components/lmb-plugin/search-modal';
|
|
2
|
-
import
|
|
2
|
+
import Electee from '@lblod/ember-rdfa-editor-lblod-plugins/models/electee';
|
|
3
3
|
import { BESTUURSPERIODES } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
4
4
|
export type FetchMandateesArgs = {
|
|
5
5
|
endpoint: string;
|
|
@@ -10,8 +10,8 @@ export type FetchMandateesArgs = {
|
|
|
10
10
|
sort: SearchSort;
|
|
11
11
|
period: (typeof BESTUURSPERIODES)[keyof typeof BESTUURSPERIODES];
|
|
12
12
|
};
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
15
|
-
|
|
13
|
+
export declare function countElectees({ endpoint, searchString, adminUnitSearch, period, }: Pick<FetchMandateesArgs, 'searchString' | 'endpoint' | 'period' | 'adminUnitSearch'>): Promise<number>;
|
|
14
|
+
export declare function fetchElectees({ endpoint, page, pageSize, searchString, adminUnitSearch, sort, period, }: FetchMandateesArgs): Promise<{
|
|
15
|
+
electees: Electee[];
|
|
16
16
|
count: number;
|
|
17
17
|
}>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
export type Person = {
|
|
2
|
+
uri: string;
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
};
|
|
1
6
|
export declare const person_variable: import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
|
|
2
7
|
export declare const personVariableView: (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "25.2.
|
|
3
|
+
"version": "25.2.1-dev.3f3b7d0dfbeef50aaf66f35c51097fc42ad192cd",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@glint/template": "^1.4.0",
|
|
106
106
|
"@graphy/content.ttl.write": "^4.3.7",
|
|
107
107
|
"@graphy/memory.dataset.fast": "4.3.3",
|
|
108
|
-
"@lblod/ember-rdfa-editor": "10.7.
|
|
108
|
+
"@lblod/ember-rdfa-editor": "10.7.3",
|
|
109
109
|
"@rdfjs/types": "^1.1.0",
|
|
110
110
|
"@release-it/keep-a-changelog": "^4.0.0",
|
|
111
111
|
"@tsconfig/ember": "^3.0.8",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"@appuniversum/ember-appuniversum": "^3.4.1",
|
|
193
193
|
"@ember/string": "3.x",
|
|
194
194
|
"@glint/template": "^1.4.0",
|
|
195
|
-
"@lblod/ember-rdfa-editor": "
|
|
195
|
+
"@lblod/ember-rdfa-editor": "10.7.3",
|
|
196
196
|
"ember-concurrency": "^3.1.0",
|
|
197
197
|
"ember-element-helper": "^0.8.6",
|
|
198
198
|
"ember-intl": "^7.0.0",
|
package/pnpm-lock.yaml
CHANGED
|
@@ -169,8 +169,8 @@ importers:
|
|
|
169
169
|
specifier: 4.3.3
|
|
170
170
|
version: 4.3.3
|
|
171
171
|
'@lblod/ember-rdfa-editor':
|
|
172
|
-
specifier: 10.7.
|
|
173
|
-
version: 10.7.
|
|
172
|
+
specifier: 10.7.3
|
|
173
|
+
version: 10.7.3(2ef3gpurqxbttnmniw6grhzpuy)
|
|
174
174
|
'@rdfjs/types':
|
|
175
175
|
specifier: ^1.1.0
|
|
176
176
|
version: 1.1.0
|
|
@@ -1595,8 +1595,8 @@ packages:
|
|
|
1595
1595
|
'@jridgewell/trace-mapping@0.3.25':
|
|
1596
1596
|
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
|
|
1597
1597
|
|
|
1598
|
-
'@lblod/ember-rdfa-editor@10.7.
|
|
1599
|
-
resolution: {integrity: sha512-
|
|
1598
|
+
'@lblod/ember-rdfa-editor@10.7.3':
|
|
1599
|
+
resolution: {integrity: sha512-8VsatXPiST7AM4Ruf/DT0BvX5gotcL5DSTP9HZGmxZQV7QIp3XQyiey7zwGHaD0c/ZHneq/h+vbvg0/r08RIlw==}
|
|
1600
1600
|
engines: {node: 16.* || 18.* || >= 20}
|
|
1601
1601
|
peerDependencies:
|
|
1602
1602
|
'@appuniversum/ember-appuniversum': ^3.4.2
|
|
@@ -4974,7 +4974,7 @@ packages:
|
|
|
4974
4974
|
resolution: {integrity: sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==}
|
|
4975
4975
|
engines: {node: '>= 4.0'}
|
|
4976
4976
|
os: [darwin]
|
|
4977
|
-
deprecated:
|
|
4977
|
+
deprecated: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
|
|
4978
4978
|
|
|
4979
4979
|
fsevents@2.3.3:
|
|
4980
4980
|
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
|
|
@@ -7276,8 +7276,8 @@ packages:
|
|
|
7276
7276
|
property-expr@2.0.6:
|
|
7277
7277
|
resolution: {integrity: sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==}
|
|
7278
7278
|
|
|
7279
|
-
prosemirror-commands@1.6.
|
|
7280
|
-
resolution: {integrity: sha512-
|
|
7279
|
+
prosemirror-commands@1.6.2:
|
|
7280
|
+
resolution: {integrity: sha512-0nDHH++qcf/BuPLYvmqZTUUsPJUCPBUXt0J1ErTcDIS369CTp773itzLGIgIXG4LJXOlwYCr44+Mh4ii6MP1QA==}
|
|
7281
7281
|
|
|
7282
7282
|
prosemirror-dev-tools@4.1.0:
|
|
7283
7283
|
resolution: {integrity: sha512-TqMyXLiY8EUoq4f4LV+8dQVuRejwGfeOJdJWjrHNXR9ttKy3MVYBCqmiu3CDULgjv8gtLsqoZY6+ab6BZRmr1g==}
|
|
@@ -7310,6 +7310,9 @@ packages:
|
|
|
7310
7310
|
prosemirror-state@1.4.3:
|
|
7311
7311
|
resolution: {integrity: sha512-goFKORVbvPuAQaXhpbemJFRKJ2aixr+AZMGiquiqKxaucC6hlpHNZHWgz5R7dS4roHiwq9vDctE//CZ++o0W1Q==}
|
|
7312
7312
|
|
|
7313
|
+
prosemirror-transform@1.10.2:
|
|
7314
|
+
resolution: {integrity: sha512-2iUq0wv2iRoJO/zj5mv8uDUriOHWzXRnOTVgCzSXnktS/2iQRa3UUQwVlkBlYZFtygw6Nh1+X4mGqoYBINn5KQ==}
|
|
7315
|
+
|
|
7313
7316
|
prosemirror-transform@1.9.0:
|
|
7314
7317
|
resolution: {integrity: sha512-5UXkr1LIRx3jmpXXNKDhv8OyAOeLTGuXNwdVfg8x27uASna/wQkr9p6fD3eupGOi4PLJfbezxTyi/7fSJypXHg==}
|
|
7315
7318
|
|
|
@@ -10735,7 +10738,7 @@ snapshots:
|
|
|
10735
10738
|
'@jridgewell/resolve-uri': 3.1.2
|
|
10736
10739
|
'@jridgewell/sourcemap-codec': 1.4.15
|
|
10737
10740
|
|
|
10738
|
-
'@lblod/ember-rdfa-editor@10.7.
|
|
10741
|
+
'@lblod/ember-rdfa-editor@10.7.3(2ef3gpurqxbttnmniw6grhzpuy)':
|
|
10739
10742
|
dependencies:
|
|
10740
10743
|
'@appuniversum/ember-appuniversum': 3.4.2(yenc6o4wruytt4u2jbwlbsqcl4)
|
|
10741
10744
|
'@babel/core': 7.24.7
|
|
@@ -10778,7 +10781,7 @@ snapshots:
|
|
|
10778
10781
|
linkifyjs: 4.1.3
|
|
10779
10782
|
mdn-polyfills: 5.20.0
|
|
10780
10783
|
process: 0.11.10
|
|
10781
|
-
prosemirror-commands: 1.6.
|
|
10784
|
+
prosemirror-commands: 1.6.2
|
|
10782
10785
|
prosemirror-dropcursor: 1.8.1
|
|
10783
10786
|
prosemirror-history: 1.4.1
|
|
10784
10787
|
prosemirror-inputrules: 1.4.0
|
|
@@ -10787,7 +10790,7 @@ snapshots:
|
|
|
10787
10790
|
prosemirror-schema-basic: 1.2.3
|
|
10788
10791
|
prosemirror-schema-list: 1.4.1
|
|
10789
10792
|
prosemirror-state: 1.4.3
|
|
10790
|
-
prosemirror-transform: 1.
|
|
10793
|
+
prosemirror-transform: 1.10.2
|
|
10791
10794
|
prosemirror-view: 1.33.8
|
|
10792
10795
|
rdf-data-factory: 1.1.2
|
|
10793
10796
|
relative-to-absolute-iri: 1.0.7
|
|
@@ -11181,7 +11184,7 @@ snapshots:
|
|
|
11181
11184
|
prosemirror-keymap: 1.2.2
|
|
11182
11185
|
prosemirror-model: 1.21.3
|
|
11183
11186
|
prosemirror-state: 1.4.3
|
|
11184
|
-
prosemirror-transform: 1.
|
|
11187
|
+
prosemirror-transform: 1.10.2
|
|
11185
11188
|
prosemirror-view: 1.33.8
|
|
11186
11189
|
|
|
11187
11190
|
'@simple-dom/document@1.4.0':
|
|
@@ -18266,11 +18269,11 @@ snapshots:
|
|
|
18266
18269
|
|
|
18267
18270
|
property-expr@2.0.6: {}
|
|
18268
18271
|
|
|
18269
|
-
prosemirror-commands@1.6.
|
|
18272
|
+
prosemirror-commands@1.6.2:
|
|
18270
18273
|
dependencies:
|
|
18271
18274
|
prosemirror-model: 1.21.3
|
|
18272
18275
|
prosemirror-state: 1.4.3
|
|
18273
|
-
prosemirror-transform: 1.
|
|
18276
|
+
prosemirror-transform: 1.10.2
|
|
18274
18277
|
|
|
18275
18278
|
prosemirror-dev-tools@4.1.0(@babel/core@7.24.7)(@babel/template@7.24.7)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
|
|
18276
18279
|
dependencies:
|
|
@@ -18303,20 +18306,20 @@ snapshots:
|
|
|
18303
18306
|
prosemirror-dropcursor@1.8.1:
|
|
18304
18307
|
dependencies:
|
|
18305
18308
|
prosemirror-state: 1.4.3
|
|
18306
|
-
prosemirror-transform: 1.
|
|
18309
|
+
prosemirror-transform: 1.10.2
|
|
18307
18310
|
prosemirror-view: 1.33.8
|
|
18308
18311
|
|
|
18309
18312
|
prosemirror-history@1.4.1:
|
|
18310
18313
|
dependencies:
|
|
18311
18314
|
prosemirror-state: 1.4.3
|
|
18312
|
-
prosemirror-transform: 1.
|
|
18315
|
+
prosemirror-transform: 1.10.2
|
|
18313
18316
|
prosemirror-view: 1.33.8
|
|
18314
18317
|
rope-sequence: 1.3.4
|
|
18315
18318
|
|
|
18316
18319
|
prosemirror-inputrules@1.4.0:
|
|
18317
18320
|
dependencies:
|
|
18318
18321
|
prosemirror-state: 1.4.3
|
|
18319
|
-
prosemirror-transform: 1.
|
|
18322
|
+
prosemirror-transform: 1.10.2
|
|
18320
18323
|
|
|
18321
18324
|
prosemirror-keymap@1.2.2:
|
|
18322
18325
|
dependencies:
|
|
@@ -18335,7 +18338,7 @@ snapshots:
|
|
|
18335
18338
|
dependencies:
|
|
18336
18339
|
prosemirror-model: 1.21.3
|
|
18337
18340
|
prosemirror-state: 1.4.3
|
|
18338
|
-
prosemirror-transform: 1.
|
|
18341
|
+
prosemirror-transform: 1.10.2
|
|
18339
18342
|
|
|
18340
18343
|
prosemirror-state@1.4.3:
|
|
18341
18344
|
dependencies:
|
|
@@ -18343,6 +18346,10 @@ snapshots:
|
|
|
18343
18346
|
prosemirror-transform: 1.9.0
|
|
18344
18347
|
prosemirror-view: 1.33.8
|
|
18345
18348
|
|
|
18349
|
+
prosemirror-transform@1.10.2:
|
|
18350
|
+
dependencies:
|
|
18351
|
+
prosemirror-model: 1.21.3
|
|
18352
|
+
|
|
18346
18353
|
prosemirror-transform@1.9.0:
|
|
18347
18354
|
dependencies:
|
|
18348
18355
|
prosemirror-model: 1.21.3
|
package/translations/en-US.yaml
CHANGED
|
@@ -10,6 +10,7 @@ common:
|
|
|
10
10
|
sort: Sort
|
|
11
11
|
asc: Sort ascending
|
|
12
12
|
desc: Sort descending
|
|
13
|
+
not-applicable: 'N/A'
|
|
13
14
|
|
|
14
15
|
structure-plugin:
|
|
15
16
|
move-up: 'Move {structureName} up'
|
|
@@ -201,8 +202,8 @@ date-plugin:
|
|
|
201
202
|
long-month-content: January, February, ..., December
|
|
202
203
|
long-year: Long year
|
|
203
204
|
insert:
|
|
204
|
-
date: '
|
|
205
|
-
datetime: '
|
|
205
|
+
date: 'Date'
|
|
206
|
+
datetime: 'Date and time'
|
|
206
207
|
card:
|
|
207
208
|
title: 'Date'
|
|
208
209
|
insert-date: 'Insert date'
|
|
@@ -232,7 +233,7 @@ document-title-plugin:
|
|
|
232
233
|
|
|
233
234
|
variable:
|
|
234
235
|
number:
|
|
235
|
-
placeholder:
|
|
236
|
+
placeholder: Number
|
|
236
237
|
label: number
|
|
237
238
|
type-number: Type a number...
|
|
238
239
|
error-not-integer: Only integers are allowed
|
|
@@ -272,7 +273,7 @@ variable-plugin:
|
|
|
272
273
|
to: to
|
|
273
274
|
person:
|
|
274
275
|
card-title: Insert person
|
|
275
|
-
nodeview-placeholder:
|
|
276
|
+
nodeview-placeholder: Person
|
|
276
277
|
autofill:
|
|
277
278
|
autofillKey: Autofill Key
|
|
278
279
|
convertToString: Replace variable node with plain text on text insertion
|
|
@@ -430,7 +431,7 @@ editor-plugins:
|
|
|
430
431
|
projection-error: 'Unable to convert location coordinates: {coords}'
|
|
431
432
|
contact: In case of persisting issues, contact <a href="mailto:{email}">{email}</a>.
|
|
432
433
|
nodeview:
|
|
433
|
-
placeholder:
|
|
434
|
+
placeholder: Address
|
|
434
435
|
|
|
435
436
|
confidentiality-plugin:
|
|
436
437
|
redact: Redact
|
|
@@ -452,23 +453,23 @@ worship-plugin:
|
|
|
452
453
|
|
|
453
454
|
lmb-plugin:
|
|
454
455
|
insert:
|
|
455
|
-
title: Insert
|
|
456
|
+
title: Insert electee
|
|
456
457
|
modal:
|
|
457
|
-
title: Choose
|
|
458
|
+
title: Choose an electee
|
|
458
459
|
insert: Insert
|
|
459
460
|
search:
|
|
460
461
|
title: Filter on
|
|
461
462
|
nameSearch:
|
|
462
463
|
placeholder: Search by name...
|
|
463
|
-
|
|
464
|
-
placeholder:
|
|
464
|
+
adminUnitSearch:
|
|
465
|
+
placeholder: e.g. Gent, Aalst...
|
|
465
466
|
fields:
|
|
466
467
|
name: Name
|
|
467
468
|
status: Status
|
|
468
|
-
|
|
469
|
+
kandidatenlijst: Candidate list
|
|
469
470
|
role: Role
|
|
470
471
|
period: Administrative Period
|
|
471
|
-
adminUnit:
|
|
472
|
+
adminUnit: Administrative unit
|
|
472
473
|
|
|
473
474
|
location-plugin:
|
|
474
475
|
modal:
|
package/translations/nl-BE.yaml
CHANGED
|
@@ -10,6 +10,7 @@ common:
|
|
|
10
10
|
sort: Sorteren
|
|
11
11
|
asc: Oplopend sorteren
|
|
12
12
|
desc: Aflopend sorteren
|
|
13
|
+
not-applicable: 'n.v.t.'
|
|
13
14
|
|
|
14
15
|
structure-plugin:
|
|
15
16
|
move-up: '{structureName} naar boven verplaatsen'
|
|
@@ -201,8 +202,8 @@ date-plugin:
|
|
|
201
202
|
long-month-content: Januari, Februari, ..., December
|
|
202
203
|
long-year: Jaar
|
|
203
204
|
insert:
|
|
204
|
-
date: 'Datum
|
|
205
|
-
datetime: 'Datum en tijd
|
|
205
|
+
date: 'Datum'
|
|
206
|
+
datetime: 'Datum en tijd'
|
|
206
207
|
card:
|
|
207
208
|
title: 'Datum'
|
|
208
209
|
insert-date: 'Datum invoegen'
|
|
@@ -236,7 +237,7 @@ table-of-contents-plugin:
|
|
|
236
237
|
|
|
237
238
|
variable:
|
|
238
239
|
number:
|
|
239
|
-
placeholder:
|
|
240
|
+
placeholder: Getal
|
|
240
241
|
label: nummer
|
|
241
242
|
type-number: typ een nummer...
|
|
242
243
|
error-not-integer: Enkel gehele getallen zijn toegelaten
|
|
@@ -276,7 +277,7 @@ variable-plugin:
|
|
|
276
277
|
to: tot
|
|
277
278
|
person:
|
|
278
279
|
card-title: Persoon invoegen
|
|
279
|
-
nodeview-placeholder:
|
|
280
|
+
nodeview-placeholder: Persoon
|
|
280
281
|
autofill:
|
|
281
282
|
autofillKey: Sleutelwaarde
|
|
282
283
|
convertToString: Vervang variabele door platte tekst bij invoegen
|
|
@@ -429,7 +430,7 @@ editor-plugins:
|
|
|
429
430
|
projection-error: 'Kan locatiecoördinaten niet converteren: {coords}'
|
|
430
431
|
contact: Bij blijvende problemen, contacteer <a href="mailto:{email}">{email}</a>.
|
|
431
432
|
nodeview:
|
|
432
|
-
placeholder:
|
|
433
|
+
placeholder: Adres
|
|
433
434
|
|
|
434
435
|
confidentiality-plugin:
|
|
435
436
|
redact: Redigeren
|
|
@@ -451,9 +452,9 @@ worship-plugin:
|
|
|
451
452
|
|
|
452
453
|
lmb-plugin:
|
|
453
454
|
insert:
|
|
454
|
-
title:
|
|
455
|
+
title: Verkozene invoegen
|
|
455
456
|
modal:
|
|
456
|
-
title: Kies een
|
|
457
|
+
title: Kies een verkozene
|
|
457
458
|
insert: Invoegen
|
|
458
459
|
search:
|
|
459
460
|
title: Filter op
|
|
@@ -463,9 +464,7 @@ lmb-plugin:
|
|
|
463
464
|
placeholder: bv. Gent, Aalst...
|
|
464
465
|
fields:
|
|
465
466
|
name: Naam
|
|
466
|
-
|
|
467
|
-
fractie: Fractie
|
|
468
|
-
role: Rol
|
|
467
|
+
kandidatenlijst: Kandidatenlijst
|
|
469
468
|
period: Bestuursperiode
|
|
470
469
|
adminUnit: Bestuurseenheid
|
|
471
470
|
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import {
|
|
3
|
-
NodeSelection,
|
|
4
|
-
PNode,
|
|
5
|
-
ProsePlugin,
|
|
6
|
-
SayController,
|
|
7
|
-
SayView,
|
|
8
|
-
} from '@lblod/ember-rdfa-editor';
|
|
9
|
-
import { editableNodePlugin } from '@lblod/ember-rdfa-editor/plugins/editable-node';
|
|
10
|
-
import { tracked } from '@glimmer/tracking';
|
|
11
|
-
import { action } from '@ember/object';
|
|
12
|
-
import { PencilIcon } from '@appuniversum/ember-appuniversum/components/icons/pencil';
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
EmberNodeArgs,
|
|
16
|
-
SayNodeViewConstructor,
|
|
17
|
-
} from '@lblod/ember-rdfa-editor/utils/ember-node';
|
|
18
|
-
import { getOutgoingTriple } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace';
|
|
19
|
-
import { EXT } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/constants';
|
|
20
|
-
import AuPill from '@appuniversum/ember-appuniversum/components/au-pill';
|
|
21
|
-
import { on } from '@ember/modifier';
|
|
22
|
-
import EmbeddedEditor from '@lblod/ember-rdfa-editor/components/ember-node/embedded-editor';
|
|
23
|
-
|
|
24
|
-
type Args = EmberNodeArgs & {
|
|
25
|
-
getPos: () => number | undefined;
|
|
26
|
-
node: PNode;
|
|
27
|
-
updateAttribute: (attr: string, value: unknown) => void;
|
|
28
|
-
controller: SayController;
|
|
29
|
-
view: SayView;
|
|
30
|
-
selected: boolean;
|
|
31
|
-
selectNode: () => void;
|
|
32
|
-
nodeViews: Record<string, SayNodeViewConstructor>;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default class AutoFilledVariableNodeViewComponent extends Component<Args> {
|
|
36
|
-
PencilIcon = PencilIcon;
|
|
37
|
-
|
|
38
|
-
@tracked innerView?: SayView;
|
|
39
|
-
|
|
40
|
-
get plugins(): ProsePlugin[] {
|
|
41
|
-
return [editableNodePlugin(this.args.getPos)];
|
|
42
|
-
}
|
|
43
|
-
@action
|
|
44
|
-
onClick() {
|
|
45
|
-
if (this.innerView) {
|
|
46
|
-
if (this.innerView.state.doc.firstChild?.type.name === 'placeholder') {
|
|
47
|
-
this.innerView.focus();
|
|
48
|
-
// Use request animation frame to only change the selection when the focus has been established
|
|
49
|
-
window.requestAnimationFrame(() => {
|
|
50
|
-
if (this.innerView) {
|
|
51
|
-
const tr = this.innerView.state.tr;
|
|
52
|
-
tr.setSelection(NodeSelection.create(this.innerView?.state.doc, 0));
|
|
53
|
-
this.innerView?.dispatch(tr);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
} else {
|
|
57
|
-
this.innerView.focus();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
@action
|
|
62
|
-
initEditor(view: SayView) {
|
|
63
|
-
this.innerView = view;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
get label() {
|
|
67
|
-
if (this.innerView?.state.doc.firstChild?.type.name !== 'placeholder') {
|
|
68
|
-
return '';
|
|
69
|
-
}
|
|
70
|
-
return getOutgoingTriple(this.args.node.attrs, EXT('label'))?.object.value;
|
|
71
|
-
}
|
|
72
|
-
<template>
|
|
73
|
-
<AuPill
|
|
74
|
-
@icon={{this.PencilIcon}}
|
|
75
|
-
@iconAlignment='right'
|
|
76
|
-
class='variable'
|
|
77
|
-
{{on 'click' this.onClick}}
|
|
78
|
-
>
|
|
79
|
-
<EmbeddedEditor
|
|
80
|
-
@controller={{@controller}}
|
|
81
|
-
@view={{@view}}
|
|
82
|
-
@getPos={{@getPos}}
|
|
83
|
-
@node={{@node}}
|
|
84
|
-
@selected={{@selected}}
|
|
85
|
-
@initEditor={{this.initEditor}}
|
|
86
|
-
@nodeViews={{@nodeViews}}
|
|
87
|
-
@plugins={{this.plugins}}
|
|
88
|
-
@updateAttribute={{@updateAttribute}}
|
|
89
|
-
@selectNode={{@selectNode}}
|
|
90
|
-
@placeholder=''
|
|
91
|
-
@contentDecorations={{@contentDecorations}}
|
|
92
|
-
/>
|
|
93
|
-
{{#if this.label}}
|
|
94
|
-
<span class='label'>
|
|
95
|
-
({{this.label}})
|
|
96
|
-
</span>
|
|
97
|
-
{{/if}}
|
|
98
|
-
</AuPill>
|
|
99
|
-
</template>
|
|
100
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<AuPill
|
|
3
|
-
@icon={{this.PencilIcon}}
|
|
4
|
-
@iconAlignment='right'
|
|
5
|
-
class='variable'
|
|
6
|
-
{{on 'click' this.onClick}}
|
|
7
|
-
>
|
|
8
|
-
<EmberNode::EmbeddedEditor
|
|
9
|
-
@controller={{@controller}}
|
|
10
|
-
@node={{@node}}
|
|
11
|
-
@view={{@view}}
|
|
12
|
-
@getPos={{@getPos}}
|
|
13
|
-
@selected={{@selected}}
|
|
14
|
-
@initEditor={{this.initEditor}}
|
|
15
|
-
@plugins={{this.plugins}}
|
|
16
|
-
@decorations={{@decorations}}
|
|
17
|
-
@contentDecorations={{@contentDecorations}}
|
|
18
|
-
/>
|
|
19
|
-
{{#if this.label}}
|
|
20
|
-
<span class='label'>
|
|
21
|
-
({{this.label}})
|
|
22
|
-
</span>
|
|
23
|
-
{{/if}}
|
|
24
|
-
</AuPill>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { NodeSelection, ProsePlugin, SayView } from '@lblod/ember-rdfa-editor';
|
|
3
|
-
import { editableNodePlugin } from '@lblod/ember-rdfa-editor/plugins/editable-node';
|
|
4
|
-
import { tracked } from '@glimmer/tracking';
|
|
5
|
-
import { action } from '@ember/object';
|
|
6
|
-
import { PencilIcon } from '@appuniversum/ember-appuniversum/components/icons/pencil';
|
|
7
|
-
import { EmberNodeArgs } from '@lblod/ember-rdfa-editor/utils/ember-node';
|
|
8
|
-
|
|
9
|
-
export default class LocationNodeViewComponent extends Component<EmberNodeArgs> {
|
|
10
|
-
PencilIcon = PencilIcon;
|
|
11
|
-
|
|
12
|
-
@tracked innerView?: SayView;
|
|
13
|
-
|
|
14
|
-
get plugins(): ProsePlugin[] {
|
|
15
|
-
return [editableNodePlugin(this.args.getPos)];
|
|
16
|
-
}
|
|
17
|
-
@action
|
|
18
|
-
onClick() {
|
|
19
|
-
if (this.innerView) {
|
|
20
|
-
if (this.innerView.state.doc.firstChild?.type.name === 'placeholder') {
|
|
21
|
-
this.innerView.focus();
|
|
22
|
-
// Use request animation frame to only change the selection when the focus has been established
|
|
23
|
-
window.requestAnimationFrame(() => {
|
|
24
|
-
if (this.innerView) {
|
|
25
|
-
const tr = this.innerView.state.tr;
|
|
26
|
-
tr.setSelection(NodeSelection.create(this.innerView?.state.doc, 0));
|
|
27
|
-
this.innerView?.dispatch(tr);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
} else {
|
|
31
|
-
this.innerView.focus();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
@action
|
|
36
|
-
initEditor(view: SayView) {
|
|
37
|
-
this.innerView = view;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
get label() {
|
|
41
|
-
if (this.innerView?.state.doc.firstChild?.type.name !== 'placeholder') {
|
|
42
|
-
return '';
|
|
43
|
-
}
|
|
44
|
-
return this.args.node.attrs.label as string;
|
|
45
|
-
}
|
|
46
|
-
}
|
package/addon/models/mandatee.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IBindings } from 'fetch-sparql-endpoint';
|
|
2
|
-
import { unwrap } from '../utils/option';
|
|
3
|
-
|
|
4
|
-
export default class Mandatee {
|
|
5
|
-
constructor(
|
|
6
|
-
readonly personUri: string,
|
|
7
|
-
readonly mandateeUri: string,
|
|
8
|
-
readonly firstName: string,
|
|
9
|
-
readonly lastName: string,
|
|
10
|
-
readonly fullName: string,
|
|
11
|
-
readonly status: string,
|
|
12
|
-
readonly role: string,
|
|
13
|
-
readonly fractie: string,
|
|
14
|
-
) {}
|
|
15
|
-
static fromBinding(binding: IBindings) {
|
|
16
|
-
const personUri = unwrap(binding['person']?.value);
|
|
17
|
-
const mandateeUri = unwrap(binding['mandatee']?.value);
|
|
18
|
-
const firstName = unwrap(binding['firstName']?.value);
|
|
19
|
-
const lastName = unwrap(binding['lastName']?.value);
|
|
20
|
-
const fullName = `${firstName} ${lastName}`;
|
|
21
|
-
const status = unwrap(binding['statusLabel']?.value);
|
|
22
|
-
const role = unwrap(binding['roleLabel']?.value);
|
|
23
|
-
const fractie = binding['fractieLabel']?.value ?? 'Onafhankelijk';
|
|
24
|
-
return new Mandatee(
|
|
25
|
-
personUri,
|
|
26
|
-
mandateeUri,
|
|
27
|
-
firstName,
|
|
28
|
-
lastName,
|
|
29
|
-
fullName,
|
|
30
|
-
status,
|
|
31
|
-
role,
|
|
32
|
-
fractie,
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
}
|