@lblod/ember-rdfa-editor-lblod-plugins 19.1.0 → 19.2.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/CHANGELOG.md +22 -0
- package/addon/components/au-native-input.ts +12 -13
- package/addon/components/{worship-plugin → common/sort}/sortable-table-header.hbs +3 -9
- package/addon/components/{worship-plugin → common/sort}/sortable-table-header.ts +3 -6
- package/addon/components/lmb-plugin/insert.hbs +18 -0
- package/addon/components/lmb-plugin/insert.ts +121 -0
- package/addon/components/lmb-plugin/list.hbs +58 -0
- package/addon/components/lmb-plugin/search-modal.hbs +71 -0
- package/addon/components/lmb-plugin/search-modal.ts +173 -0
- package/addon/components/loading-alert.hbs +3 -1
- package/addon/components/location-plugin/edit.gts +380 -0
- package/addon/components/location-plugin/insert-variable.gts +67 -0
- package/addon/components/location-plugin/insert.gts +153 -0
- package/addon/components/location-plugin/nodeview.hbs +20 -0
- package/addon/components/location-plugin/nodeview.ts +49 -0
- package/addon/components/lpdc-plugin/lpdc-insert.hbs +19 -0
- package/addon/components/lpdc-plugin/lpdc-insert.ts +93 -0
- package/addon/components/lpdc-plugin/lpdc-modal.hbs +44 -0
- package/addon/components/lpdc-plugin/lpdc-modal.ts +79 -0
- package/addon/components/lpdc-plugin/lpdc-table-view.hbs +53 -0
- package/addon/components/lpdc-plugin/lpdc-table-view.ts +23 -0
- package/addon/components/variable-plugin/address/edit.ts +1 -1
- package/addon/components/variable-plugin/address/nodeview.ts +1 -1
- package/addon/components/worship-plugin/list.hbs +1 -1
- package/addon/models/mandatee.ts +35 -0
- package/addon/plugins/lmb-plugin/index.ts +3 -0
- package/addon/plugins/location-plugin/address.ts +405 -0
- package/addon/plugins/location-plugin/utils/address-helpers.ts +395 -0
- package/addon/plugins/location-plugin/utils/node-utils.ts +51 -0
- package/addon/plugins/lpdc-plugin/api.ts +114 -0
- package/addon/plugins/lpdc-plugin/index.ts +2 -0
- package/addon/plugins/lpdc-plugin/types.ts +5 -0
- package/addon/plugins/snippet-plugin/nodes/snippet-placeholder.ts +5 -3
- package/addon/plugins/variable-plugin/utils/address-helpers.ts +130 -12
- package/addon/plugins/variable-plugin/utils/dom-constructors.ts +3 -19
- package/addon/plugins/variable-plugin/variables/address.ts +122 -84
- package/addon/plugins/variable-plugin/variables/codelist.ts +1 -1
- package/addon/plugins/variable-plugin/variables/date.ts +1 -1
- package/addon/plugins/variable-plugin/variables/location.ts +2 -2
- package/addon/plugins/variable-plugin/variables/number.ts +1 -1
- package/addon/plugins/variable-plugin/variables/text.ts +1 -1
- package/addon/utils/constants.ts +15 -1
- package/addon/utils/dom-output-spec-helpers.ts +20 -3
- package/app/components/{worship-plugin → common/sort}/sortable-table-header.js +1 -1
- package/app/components/lmb-plugin/insert.js +1 -0
- package/app/components/lmb-plugin/list.js +1 -0
- package/app/components/lmb-plugin/search-modal.js +1 -0
- package/app/components/location-plugin/edit.js +1 -0
- package/app/components/location-plugin/insert-variable.js +1 -0
- package/app/components/location-plugin/insert.js +1 -0
- package/app/components/location-plugin/nodeview.js +1 -0
- package/app/components/lpdc-plugin/lpdc-insert.js +1 -0
- package/app/components/lpdc-plugin/lpdc-modal.js +1 -0
- package/app/components/lpdc-plugin/lpdc-table-view.js +1 -0
- package/app/styles/article-structure-plugin.scss +12 -6
- package/app/styles/snippet-plugin.scss +19 -0
- package/declarations/addon/components/au-native-input.d.ts +12 -10
- package/declarations/addon/components/{worship-plugin → common/sort}/sortable-table-header.d.ts +3 -3
- package/declarations/addon/components/lmb-plugin/insert.d.ts +17 -0
- package/declarations/addon/components/lmb-plugin/list.d.ts +1 -0
- package/declarations/addon/components/lmb-plugin/search-modal.d.ts +31 -0
- package/declarations/addon/components/location-plugin/edit.d.ts +47 -0
- package/declarations/addon/components/location-plugin/insert-variable.d.ts +17 -0
- package/declarations/addon/components/location-plugin/insert.d.ts +29 -0
- package/declarations/addon/components/location-plugin/nodeview.d.ts +22 -0
- package/declarations/addon/components/lpdc-plugin/lpdc-insert.d.ts +17 -0
- package/declarations/addon/components/lpdc-plugin/lpdc-modal.d.ts +42 -0
- package/declarations/addon/components/lpdc-plugin/lpdc-table-view.d.ts +37 -0
- package/declarations/addon/components/variable-plugin/address/edit.d.ts +1 -1
- package/declarations/addon/components/variable-plugin/address/nodeview.d.ts +1 -1
- package/declarations/addon/models/mandatee.d.ts +13 -0
- package/declarations/addon/plugins/lmb-plugin/index.d.ts +3 -0
- package/declarations/addon/plugins/location-plugin/address.d.ts +2 -0
- package/declarations/addon/plugins/location-plugin/utils/address-helpers.d.ts +65 -0
- package/declarations/addon/plugins/location-plugin/utils/node-utils.d.ts +2 -0
- package/declarations/addon/plugins/lpdc-plugin/api.d.ts +29 -0
- package/declarations/addon/plugins/lpdc-plugin/index.d.ts +2 -0
- package/declarations/addon/plugins/lpdc-plugin/types.d.ts +7 -0
- package/declarations/addon/plugins/variable-plugin/utils/address-helpers.d.ts +34 -1
- package/declarations/addon/plugins/variable-plugin/utils/dom-constructors.d.ts +5 -11
- package/declarations/addon/plugins/variable-plugin/variables/address.d.ts +0 -13
- package/declarations/addon/utils/constants.d.ts +5 -0
- package/declarations/addon/utils/dom-output-spec-helpers.d.ts +6 -2
- package/package.json +2 -2
- package/pnpm-lock.yaml +19 -8
- package/translations/en-US.yaml +41 -14
- package/translations/nl-BE.yaml +41 -13
- package/types/ember-concurrency/helpers/perform.d.ts +48 -0
- package/types/ember-power-select/components/power-select.d.ts +160 -0
- /package/addon/{plugins/variable-plugin/utils/attribute-parsers.ts → utils/variable-attribute-parsers.ts} +0 -0
- /package/declarations/addon/{plugins/variable-plugin/utils/attribute-parsers.d.ts → utils/variable-attribute-parsers.d.ts} +0 -0
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
type Children = unknown[];
|
|
1
|
+
import { Attrs, DOMOutputSpec } from '@lblod/ember-rdfa-editor';
|
|
3
2
|
/**
|
|
4
3
|
* Constructs a variable mapping span based on a mapping resource.
|
|
5
4
|
* This function also accepts additional attributes which are added to the span attributes, and a series of children.
|
|
6
5
|
*/
|
|
7
|
-
export declare const mappingSpan: (mapping: string, attributes:
|
|
6
|
+
export declare const mappingSpan: (mapping: string, attributes: Attrs, ...children: (DOMOutputSpec | 0)[]) => DOMOutputSpec;
|
|
8
7
|
/**
|
|
9
8
|
* Constructs a variable instance span based on a variable-instance resource.
|
|
10
9
|
*/
|
|
11
|
-
export declare const instanceSpan: (variableInstance: string) =>
|
|
10
|
+
export declare const instanceSpan: (variableInstance: string) => DOMOutputSpec;
|
|
12
11
|
/**
|
|
13
12
|
* Constructs a variable type span based on a variable type.
|
|
14
13
|
*/
|
|
15
|
-
export declare const typeSpan: (variableType: string) =>
|
|
14
|
+
export declare const typeSpan: (variableType: string) => DOMOutputSpec;
|
|
16
15
|
/**
|
|
17
16
|
* Constructs a variable source span based on a variable source.
|
|
18
17
|
*/
|
|
19
|
-
export declare const sourceSpan: (variableSource: string) =>
|
|
20
|
-
/**
|
|
21
|
-
* Constructs a variable content span. Accepts optional additional attributes and a series of children.
|
|
22
|
-
*/
|
|
23
|
-
export declare const contentSpan: (attributes: Attributes, ...children: Children) => import("prosemirror-model").DOMOutputSpec;
|
|
24
|
-
export {};
|
|
18
|
+
export declare const sourceSpan: (variableSource: string) => DOMOutputSpec;
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
export declare class Address {
|
|
2
|
-
id?: string;
|
|
3
|
-
street: string;
|
|
4
|
-
zipcode: string;
|
|
5
|
-
municipality: string;
|
|
6
|
-
housenumber?: string;
|
|
7
|
-
busnumber?: string;
|
|
8
|
-
gml: string;
|
|
9
|
-
constructor(args: Pick<Address, 'street' | 'housenumber' | 'zipcode' | 'municipality' | 'id' | 'busnumber' | 'gml'>);
|
|
10
|
-
get formatted(): string;
|
|
11
|
-
sameAs(other?: Pick<Address, 'street' | 'housenumber' | 'busnumber' | 'municipality'> | null): boolean;
|
|
12
|
-
get hasHouseNumber(): boolean;
|
|
13
|
-
}
|
|
14
1
|
export declare const address: import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
|
|
15
2
|
export declare const addressView: (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
|
|
@@ -8,7 +8,12 @@ export declare const PROV: (s: string) => import("@lblod/ember-rdfa-editor-lblod
|
|
|
8
8
|
export declare const SKOS: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
9
9
|
export declare const DCT: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
10
10
|
export declare const MOBILITEIT: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
11
|
+
export declare const ADRES_TYPO: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
11
12
|
export declare const ADRES: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
12
13
|
export declare const GENERIEK: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
13
14
|
export declare const GEO: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
14
15
|
export declare const GEOSPARQL: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
16
|
+
export declare const MANDAAT: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
17
|
+
export declare const FOAF: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
18
|
+
export declare const LOCN: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
19
|
+
export declare const SRO: (s: string) => import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { DOMOutputSpec } from '@lblod/ember-rdfa-editor';
|
|
2
|
-
export declare const span: (attributes?:
|
|
1
|
+
import { Attrs, DOMOutputSpec } from '@lblod/ember-rdfa-editor';
|
|
2
|
+
export declare const span: (attributes?: Attrs, ...children: (DOMOutputSpec | 0)[]) => DOMOutputSpec;
|
|
3
|
+
/**
|
|
4
|
+
* Constructs a variable content span. Accepts optional additional attributes and a series of children.
|
|
5
|
+
*/
|
|
6
|
+
export declare const contentSpan: (attributes: Attrs, ...children: (DOMOutputSpec | 0)[]) => DOMOutputSpec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.0",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"uuid": "^9.0.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@appuniversum/ember-appuniversum": "3.4.
|
|
88
|
+
"@appuniversum/ember-appuniversum": "3.4.2",
|
|
89
89
|
"@changesets/changelog-github": "^0.4.8",
|
|
90
90
|
"@changesets/cli": "^2.26.2",
|
|
91
91
|
"@ember/optional-features": "^2.0.0",
|
package/pnpm-lock.yaml
CHANGED
|
@@ -104,8 +104,8 @@ dependencies:
|
|
|
104
104
|
|
|
105
105
|
devDependencies:
|
|
106
106
|
'@appuniversum/ember-appuniversum':
|
|
107
|
-
specifier: 3.4.
|
|
108
|
-
version: 3.4.
|
|
107
|
+
specifier: 3.4.2
|
|
108
|
+
version: 3.4.2(@ember/test-helpers@2.9.4)(@glint/environment-ember-loose@1.4.0)(@glint/template@1.4.0)(ember-source@4.12.0)(tracked-built-ins@3.3.0)(webpack@5.90.3)
|
|
109
109
|
'@changesets/changelog-github':
|
|
110
110
|
specifier: ^0.4.8
|
|
111
111
|
version: 0.4.8
|
|
@@ -150,7 +150,7 @@ devDependencies:
|
|
|
150
150
|
version: 4.3.3
|
|
151
151
|
'@lblod/ember-rdfa-editor':
|
|
152
152
|
specifier: ^9.8.0
|
|
153
|
-
version: 9.9.0(@appuniversum/ember-appuniversum@3.4.
|
|
153
|
+
version: 9.9.0(@appuniversum/ember-appuniversum@3.4.2)(@glint/template@1.4.0)(@lezer/common@1.2.1)(ember-changeset@4.1.2)(ember-cli-sass@11.0.1)(ember-intl@5.7.2)(ember-modifier@3.2.7)(ember-source@4.12.0)(webpack@5.90.3)
|
|
154
154
|
'@rdfjs/types':
|
|
155
155
|
specifier: ^1.1.0
|
|
156
156
|
version: 1.1.0
|
|
@@ -394,8 +394,8 @@ packages:
|
|
|
394
394
|
'@jridgewell/gen-mapping': 0.3.3
|
|
395
395
|
'@jridgewell/trace-mapping': 0.3.22
|
|
396
396
|
|
|
397
|
-
/@appuniversum/ember-appuniversum@3.4.
|
|
398
|
-
resolution: {integrity: sha512-
|
|
397
|
+
/@appuniversum/ember-appuniversum@3.4.2(@ember/test-helpers@2.9.4)(@glint/environment-ember-loose@1.4.0)(@glint/template@1.4.0)(ember-source@4.12.0)(tracked-built-ins@3.3.0)(webpack@5.90.3):
|
|
398
|
+
resolution: {integrity: sha512-GsMbEhk5KucUwiLLTY8dP7q++7kE8vKSWvqVkrz9FilBuPTGUn6vAkfx9904eyGRKYfmutVRbVUZQQOn4nagrA==}
|
|
399
399
|
engines: {node: '>= 18'}
|
|
400
400
|
peerDependencies:
|
|
401
401
|
ember-source: ^4.12.0 || ^5.0.0
|
|
@@ -416,7 +416,7 @@ packages:
|
|
|
416
416
|
ember-focus-trap: 1.1.0(ember-source@4.12.0)
|
|
417
417
|
ember-modifier: 4.1.0(ember-source@4.12.0)
|
|
418
418
|
ember-source: 4.12.0(@babel/core@7.23.9)(@glimmer/component@1.1.2)(@glint/template@1.4.0)(webpack@5.90.3)
|
|
419
|
-
ember-template-imports:
|
|
419
|
+
ember-template-imports: 4.1.1
|
|
420
420
|
ember-test-selectors: 6.0.0
|
|
421
421
|
ember-truth-helpers: 3.1.1
|
|
422
422
|
inputmask: 5.0.9-beta.62
|
|
@@ -2792,7 +2792,7 @@ packages:
|
|
|
2792
2792
|
'@jridgewell/resolve-uri': 3.1.2
|
|
2793
2793
|
'@jridgewell/sourcemap-codec': 1.4.15
|
|
2794
2794
|
|
|
2795
|
-
/@lblod/ember-rdfa-editor@9.9.0(@appuniversum/ember-appuniversum@3.4.
|
|
2795
|
+
/@lblod/ember-rdfa-editor@9.9.0(@appuniversum/ember-appuniversum@3.4.2)(@glint/template@1.4.0)(@lezer/common@1.2.1)(ember-changeset@4.1.2)(ember-cli-sass@11.0.1)(ember-intl@5.7.2)(ember-modifier@3.2.7)(ember-source@4.12.0)(webpack@5.90.3):
|
|
2796
2796
|
resolution: {integrity: sha512-BY8zxQHFSRXOKvMCE+YOMumEzFJJVwbernmeRaBNPuiwCIpmMptu7ajYTDbyUb0J6VSvwoDRZRa2RoiVAJQntQ==}
|
|
2797
2797
|
engines: {node: 16.* || 18.* || >= 20}
|
|
2798
2798
|
peerDependencies:
|
|
@@ -2804,7 +2804,7 @@ packages:
|
|
|
2804
2804
|
ember-modifier: ^3.2.7
|
|
2805
2805
|
ember-source: ^4.12.0
|
|
2806
2806
|
dependencies:
|
|
2807
|
-
'@appuniversum/ember-appuniversum': 3.4.
|
|
2807
|
+
'@appuniversum/ember-appuniversum': 3.4.2(@ember/test-helpers@2.9.4)(@glint/environment-ember-loose@1.4.0)(@glint/template@1.4.0)(ember-source@4.12.0)(tracked-built-ins@3.3.0)(webpack@5.90.3)
|
|
2808
2808
|
'@babel/core': 7.23.9
|
|
2809
2809
|
'@codemirror/commands': 6.3.3
|
|
2810
2810
|
'@codemirror/lang-html': 6.4.8
|
|
@@ -8767,6 +8767,17 @@ packages:
|
|
|
8767
8767
|
transitivePeerDependencies:
|
|
8768
8768
|
- supports-color
|
|
8769
8769
|
|
|
8770
|
+
/ember-template-imports@4.1.1:
|
|
8771
|
+
resolution: {integrity: sha512-mnbL3hjo/Ctg7rkBtuYkBRJUn5bDYRQCEZQxmNozRnfoEp2RLSbT6SFJRAFDYXT2OrY+8i821S4kPL1i0QuGIw==}
|
|
8772
|
+
engines: {node: 16.* || >= 18}
|
|
8773
|
+
dependencies:
|
|
8774
|
+
broccoli-stew: 3.0.0
|
|
8775
|
+
content-tag: 2.0.1
|
|
8776
|
+
ember-cli-version-checker: 5.1.2
|
|
8777
|
+
transitivePeerDependencies:
|
|
8778
|
+
- supports-color
|
|
8779
|
+
dev: true
|
|
8780
|
+
|
|
8770
8781
|
/ember-template-lint@5.13.0:
|
|
8771
8782
|
resolution: {integrity: sha512-AYxz9S9fVZfHPmTsymc7NwsD7FVmDUZyfC+KYpxDlK0wic7JSQx2FNQNqQSBFRLOuzn7VQ0/+1pX6DGqKDGswg==}
|
|
8772
8783
|
engines: {node: ^14.18.0 || ^16.0.0 || >= 18.0.0}
|
package/translations/en-US.yaml
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
common:
|
|
2
|
+
insert: Insert
|
|
2
3
|
search:
|
|
3
4
|
loading: Loading…
|
|
4
5
|
no-results: No results found
|
|
5
6
|
error-title: Error while loading results
|
|
6
7
|
error-intro: 'An error occurred while loading results'
|
|
7
8
|
error-outro: In case this problem keeps occurring, please contact
|
|
9
|
+
sort:
|
|
10
|
+
sort: Sort
|
|
11
|
+
asc: Sort ascending
|
|
12
|
+
desc: Sort descending
|
|
8
13
|
|
|
9
14
|
article-structure-plugin:
|
|
10
15
|
insert:
|
|
@@ -251,16 +256,6 @@ table-of-contents-plugin:
|
|
|
251
256
|
title: Table of Contents
|
|
252
257
|
toggle: Show Table of Contents
|
|
253
258
|
|
|
254
|
-
address-plugin:
|
|
255
|
-
insert:
|
|
256
|
-
address: Insert address
|
|
257
|
-
button:
|
|
258
|
-
insert: Insert address
|
|
259
|
-
back: Back
|
|
260
|
-
search:
|
|
261
|
-
cta: 'Type to search'
|
|
262
|
-
no-match: 'No results'
|
|
263
|
-
|
|
264
259
|
dummy:
|
|
265
260
|
validation-card:
|
|
266
261
|
title: Document Validation
|
|
@@ -412,7 +407,39 @@ worship-plugin:
|
|
|
412
407
|
fields:
|
|
413
408
|
name: Name
|
|
414
409
|
admin-unit: Administrative Unit
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
410
|
+
|
|
411
|
+
lmb-plugin:
|
|
412
|
+
insert:
|
|
413
|
+
title: Insert mandatee from LMB service
|
|
414
|
+
modal:
|
|
415
|
+
title: Choose a mandatee
|
|
416
|
+
insert: Insert
|
|
417
|
+
search:
|
|
418
|
+
title: Filter on
|
|
419
|
+
fields:
|
|
420
|
+
name: Name
|
|
421
|
+
status: Status
|
|
422
|
+
fractie: Fractie
|
|
423
|
+
role: Role
|
|
424
|
+
|
|
425
|
+
location-plugin:
|
|
426
|
+
modal:
|
|
427
|
+
insert: Insert location
|
|
428
|
+
edit: Edit location
|
|
429
|
+
confirm: Set location
|
|
430
|
+
label: Label
|
|
431
|
+
labelPlaceholder: Type something...
|
|
432
|
+
default-label: location
|
|
433
|
+
|
|
434
|
+
lpdc-plugin:
|
|
435
|
+
insert:
|
|
436
|
+
title: Insert LPDC
|
|
437
|
+
modal:
|
|
438
|
+
title: Insert LPDC
|
|
439
|
+
insert: Insert
|
|
440
|
+
close: Close
|
|
441
|
+
table:
|
|
442
|
+
header:
|
|
443
|
+
name: Name
|
|
444
|
+
search:
|
|
445
|
+
placeholder: LPDC Name/Description
|
package/translations/nl-BE.yaml
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
common:
|
|
2
|
+
insert: Voeg in
|
|
2
3
|
search:
|
|
3
4
|
loading: Laden…
|
|
4
5
|
no-results: Geen resultaten gevonden
|
|
5
6
|
error-title: Probleem bij het laden
|
|
6
7
|
error-intro: 'Er is een fout opgetreden tijdens het laden van de resultaten:'
|
|
7
8
|
error-outro: Moest dit probleem aanhouden, neem contact op met
|
|
9
|
+
sort:
|
|
10
|
+
sort: Sorteren
|
|
11
|
+
asc: Oplopend sorteren
|
|
12
|
+
desc: Aflopend sorteren
|
|
8
13
|
|
|
9
14
|
article-structure-plugin:
|
|
10
15
|
insert:
|
|
@@ -252,15 +257,6 @@ variable-plugin:
|
|
|
252
257
|
maximum-placeholder: maximumwaarde
|
|
253
258
|
to: tot
|
|
254
259
|
|
|
255
|
-
address-plugin:
|
|
256
|
-
insert:
|
|
257
|
-
address: Adres invoegen
|
|
258
|
-
button:
|
|
259
|
-
insert: Adres invoegen
|
|
260
|
-
back: Terug
|
|
261
|
-
search:
|
|
262
|
-
cta: Zoekterm
|
|
263
|
-
no-match: Geen resultaten
|
|
264
260
|
dummy:
|
|
265
261
|
validation-card:
|
|
266
262
|
title: Documentvalidatie
|
|
@@ -412,7 +408,39 @@ worship-plugin:
|
|
|
412
408
|
fields:
|
|
413
409
|
name: Naam
|
|
414
410
|
admin-unit: Bestuurseenheid
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
411
|
+
|
|
412
|
+
lmb-plugin:
|
|
413
|
+
insert:
|
|
414
|
+
title: Mandataris van LMB invoegen
|
|
415
|
+
modal:
|
|
416
|
+
title: Kies een mandataris
|
|
417
|
+
insert: Invoegen
|
|
418
|
+
search:
|
|
419
|
+
title: Filter op
|
|
420
|
+
fields:
|
|
421
|
+
name: Naam
|
|
422
|
+
status: Status
|
|
423
|
+
fractie: Fractie
|
|
424
|
+
role: Rol
|
|
425
|
+
|
|
426
|
+
location-plugin:
|
|
427
|
+
modal:
|
|
428
|
+
insert: locatie invoegen
|
|
429
|
+
edit: Bewerk locatie
|
|
430
|
+
confirm: Ingestelde locatie
|
|
431
|
+
label: Label
|
|
432
|
+
labelPlaceholder: Type iets...
|
|
433
|
+
default-label: locatie
|
|
434
|
+
|
|
435
|
+
lpdc-plugin:
|
|
436
|
+
insert:
|
|
437
|
+
title: LPDC invoegen
|
|
438
|
+
modal:
|
|
439
|
+
title: LPDC invoegen
|
|
440
|
+
insert: Invoegen
|
|
441
|
+
close: Sluiten
|
|
442
|
+
table:
|
|
443
|
+
header:
|
|
444
|
+
name: Naam
|
|
445
|
+
search:
|
|
446
|
+
placeholder: LPDC-naam/beschrijving
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Taken from @gavant/glint-template-types
|
|
2
|
+
declare module 'ember-concurrency/helpers/perform' {
|
|
3
|
+
import Helper from '@ember/component/helper';
|
|
4
|
+
|
|
5
|
+
import { Task } from 'ember-concurrency';
|
|
6
|
+
|
|
7
|
+
type PrefixOf<T extends unknown[]> = T extends []
|
|
8
|
+
? []
|
|
9
|
+
: unknown[] extends T
|
|
10
|
+
? unknown[]
|
|
11
|
+
: T extends [head: infer Head, ...tail: infer Tail]
|
|
12
|
+
? [] | [Head, ...PrefixOf<Tail>]
|
|
13
|
+
: T extends [head?: infer Head, ...tail: infer Tail]
|
|
14
|
+
? [Head?, ...PrefixOf<Tail>]
|
|
15
|
+
: [];
|
|
16
|
+
|
|
17
|
+
type TaskArgs<T extends Task<unknown, unknown>> =
|
|
18
|
+
T extends Task<unknown, infer Args> ? Args : never;
|
|
19
|
+
type TaskReturn<T extends Task<unknown, unknown>> =
|
|
20
|
+
T extends Task<infer Return, unknown> ? Return : never;
|
|
21
|
+
|
|
22
|
+
type RemovePrefix<
|
|
23
|
+
Prefix extends unknown[],
|
|
24
|
+
Tuple extends unknown[],
|
|
25
|
+
> = [] extends Prefix
|
|
26
|
+
? Tuple
|
|
27
|
+
: [Prefix, Tuple] extends [
|
|
28
|
+
[unknown?, ...infer PrefixRest],
|
|
29
|
+
[unknown?, ...infer TupleRest],
|
|
30
|
+
]
|
|
31
|
+
? RemovePrefix<PrefixRest, TupleRest>
|
|
32
|
+
: [];
|
|
33
|
+
|
|
34
|
+
type PerformHelperSignature<
|
|
35
|
+
T extends Task<unknown, unknown>,
|
|
36
|
+
GivenArgs extends PrefixOf<TaskArgs<T>>,
|
|
37
|
+
> = {
|
|
38
|
+
Args: { Positional: [T, ...GivenArgs] };
|
|
39
|
+
Return: (
|
|
40
|
+
...params: RemovePrefix<GivenArgs, TaskArgs<T>>
|
|
41
|
+
) => Promise<TaskReturn<T>>;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default class PerformHelper<
|
|
45
|
+
T extends Task<unknown, unknown>,
|
|
46
|
+
PassedArgs extends PrefixOf<TaskArgs<T>>,
|
|
47
|
+
> extends Helper<PerformHelperSignature<T, PassedArgs>> {}
|
|
48
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// Types from ember-power-select but with tweaks to improve glint support. Can be removed if moving
|
|
2
|
+
// to >v8.0
|
|
3
|
+
declare module 'ember-power-select/components/power-select' {
|
|
4
|
+
import Component from '@glimmer/component';
|
|
5
|
+
import { MatcherFn } from '../utils/group-utils';
|
|
6
|
+
import {
|
|
7
|
+
Dropdown,
|
|
8
|
+
DropdownActions,
|
|
9
|
+
} from 'ember-basic-dropdown/addon/components/basic-dropdown';
|
|
10
|
+
|
|
11
|
+
interface SelectActions extends DropdownActions {
|
|
12
|
+
search: (term: string) => void;
|
|
13
|
+
highlight: (option: unknown) => void;
|
|
14
|
+
select: (selected: unknown, e?: Event) => void;
|
|
15
|
+
choose: (selected: unknown, e?: Event) => void;
|
|
16
|
+
scrollTo: (option: unknown) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface Select extends Dropdown {
|
|
19
|
+
selected: unknown;
|
|
20
|
+
highlighted: unknown;
|
|
21
|
+
options: unknown[];
|
|
22
|
+
results: unknown[];
|
|
23
|
+
resultsCount: number;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
isActive: boolean;
|
|
26
|
+
searchText: string;
|
|
27
|
+
lastSearchedText: string;
|
|
28
|
+
actions: SelectActions;
|
|
29
|
+
}
|
|
30
|
+
export interface PowerSelectArgs {
|
|
31
|
+
// The following args are not in the v6 or v7 types as they are only used in the template
|
|
32
|
+
loadingMessage?: string;
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
allowClear?: boolean;
|
|
35
|
+
renderInPlace?: boolean;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
// END extra args
|
|
38
|
+
highlightOnHover?: boolean;
|
|
39
|
+
placeholderComponent?: string;
|
|
40
|
+
searchMessage?: string;
|
|
41
|
+
searchMessageComponent?: string;
|
|
42
|
+
noMatchesMessage?: string;
|
|
43
|
+
noMatchesMessageComponent?: string;
|
|
44
|
+
matchTriggerWidth?: boolean;
|
|
45
|
+
options?: unknown[] | Promise<unknown[]>;
|
|
46
|
+
selected?: unknown | Promise<unknown>;
|
|
47
|
+
closeOnSelect?: boolean;
|
|
48
|
+
defaultHighlighted?: unknown;
|
|
49
|
+
searchField?: string;
|
|
50
|
+
searchEnabled?: boolean;
|
|
51
|
+
tabindex?: number | string;
|
|
52
|
+
triggerComponent?: string;
|
|
53
|
+
beforeOptionsComponent?: string;
|
|
54
|
+
optionsComponent?: string;
|
|
55
|
+
groupComponent?: string;
|
|
56
|
+
matcher?: MatcherFn;
|
|
57
|
+
initiallyOpened?: boolean;
|
|
58
|
+
typeAheadOptionMatcher?: MatcherFn;
|
|
59
|
+
buildSelection?: (selected: unknown, select: Select) => unknown;
|
|
60
|
+
onChange: (selection: unknown, select: Select, event?: Event) => void;
|
|
61
|
+
search?: (term: string, select: Select) => unknown[] | Promise<unknown[]>;
|
|
62
|
+
onOpen?: (select: Select, e: Event) => boolean | undefined;
|
|
63
|
+
onClose?: (select: Select, e: Event) => boolean | undefined;
|
|
64
|
+
onInput?: (term: string, select: Select, e: Event) => string | false | void;
|
|
65
|
+
onKeydown?: (select: Select, e: KeyboardEvent) => boolean | undefined;
|
|
66
|
+
onFocus?: (select: Select, event: FocusEvent) => void;
|
|
67
|
+
onBlur?: (select: Select, event: FocusEvent) => void;
|
|
68
|
+
scrollTo?: (option: unknown, select: Select) => void;
|
|
69
|
+
registerAPI?: (select: Select) => void;
|
|
70
|
+
}
|
|
71
|
+
// Copied from PS 8.0 types
|
|
72
|
+
type PowerSelectSig = {
|
|
73
|
+
Element: HTMLElement;
|
|
74
|
+
Args: PowerSelectArgs;
|
|
75
|
+
Blocks: {
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
|
+
default: [option: any, select: Select];
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export default class PowerSelect extends Component<PowerSelectSig> {
|
|
81
|
+
_publicAPIActions: {
|
|
82
|
+
search: (term: string) => void;
|
|
83
|
+
highlight: (opt: unknown) => void;
|
|
84
|
+
select: (selected: unknown, e?: Event | undefined) => void;
|
|
85
|
+
choose: (selected: unknown, e?: Event | undefined) => void;
|
|
86
|
+
scrollTo: (option: unknown) => void;
|
|
87
|
+
};
|
|
88
|
+
private _resolvedOptions?;
|
|
89
|
+
private _resolvedSelected?;
|
|
90
|
+
private _repeatingChar;
|
|
91
|
+
private _expirableSearchText;
|
|
92
|
+
private _searchResult?;
|
|
93
|
+
isActive: boolean;
|
|
94
|
+
loading: boolean;
|
|
95
|
+
searchText: string;
|
|
96
|
+
lastSearchedText: string;
|
|
97
|
+
highlighted?: unknown;
|
|
98
|
+
storedAPI: Select;
|
|
99
|
+
private _lastOptionsPromise?;
|
|
100
|
+
private _lastSelectedPromise?;
|
|
101
|
+
private _lastSearchPromise?;
|
|
102
|
+
private _filterResultsCache;
|
|
103
|
+
constructor(owner: unknown, args: PowerSelectArgs);
|
|
104
|
+
willDestroy(): void;
|
|
105
|
+
get highlightOnHover(): boolean;
|
|
106
|
+
get highlightedIndex(): string;
|
|
107
|
+
get searchMessage(): string;
|
|
108
|
+
get noMatchesMessage(): string;
|
|
109
|
+
get matchTriggerWidth(): boolean;
|
|
110
|
+
get mustShowSearchMessage(): boolean;
|
|
111
|
+
get mustShowNoMessages(): boolean;
|
|
112
|
+
get results(): unknown[];
|
|
113
|
+
get options(): unknown[];
|
|
114
|
+
get resultsCount(): number;
|
|
115
|
+
get selected(): unknown;
|
|
116
|
+
handleOpen(_select: Select, e: Event): boolean | void;
|
|
117
|
+
handleClose(_select: Select, e: Event): boolean | void;
|
|
118
|
+
handleInput(e: InputEvent): void;
|
|
119
|
+
handleKeydown(e: KeyboardEvent): boolean | void;
|
|
120
|
+
handleTriggerKeydown(e: KeyboardEvent): boolean | void;
|
|
121
|
+
handleFocus(event: FocusEvent): void;
|
|
122
|
+
handleBlur(event: FocusEvent): void;
|
|
123
|
+
_search(term: string): void;
|
|
124
|
+
_updateOptions(): void;
|
|
125
|
+
_updateHighlighted(): void;
|
|
126
|
+
_updateSelected(): void;
|
|
127
|
+
_selectedObserverCallback(): void;
|
|
128
|
+
_highlight(opt: unknown): void;
|
|
129
|
+
_select(selected: unknown, e?: Event): void;
|
|
130
|
+
_choose(selected: unknown, e?: Event): void;
|
|
131
|
+
_scrollTo(option: unknown): void;
|
|
132
|
+
_registerAPI(_: Element, [publicAPI]: [Select]): void;
|
|
133
|
+
_performSearch(_: unknown, [term]: [string]): void;
|
|
134
|
+
_defaultBuildSelection(option: unknown): unknown;
|
|
135
|
+
_routeKeydown(select: Select, e: KeyboardEvent): boolean | void;
|
|
136
|
+
_handleKeyTab(select: Select, e: KeyboardEvent): void;
|
|
137
|
+
_handleKeyESC(select: Select, e: KeyboardEvent): void;
|
|
138
|
+
_handleKeyEnter(select: Select, e: KeyboardEvent): boolean | void;
|
|
139
|
+
_handleKeySpace(select: Select, e: KeyboardEvent): void;
|
|
140
|
+
_handleKeyUpDown(select: Select, e: KeyboardEvent): void;
|
|
141
|
+
_resetHighlighted(): void;
|
|
142
|
+
_filter(
|
|
143
|
+
options: unknown[],
|
|
144
|
+
term: string,
|
|
145
|
+
skipDisabled?: boolean,
|
|
146
|
+
): unknown[];
|
|
147
|
+
_updateIsActive(value: boolean): void;
|
|
148
|
+
findWithOffset(
|
|
149
|
+
options: unknown[],
|
|
150
|
+
term: string,
|
|
151
|
+
offset: number,
|
|
152
|
+
skipDisabled?: boolean,
|
|
153
|
+
): unknown;
|
|
154
|
+
triggerTypingTask(
|
|
155
|
+
this: PowerSelect,
|
|
156
|
+
e: KeyboardEvent,
|
|
157
|
+
): Generator<import('ember-concurrency').Yieldable<void>, void, unknown>;
|
|
158
|
+
}
|
|
159
|
+
export {};
|
|
160
|
+
}
|
|
File without changes
|