@lblod/ember-rdfa-editor-lblod-plugins 0.4.1 → 1.0.0-alpha.1
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 +25 -0
- package/addon/commands/article-structure-plugin/delete-structure.ts +85 -0
- package/addon/commands/article-structure-plugin/index.ts +4 -0
- package/addon/commands/article-structure-plugin/insert-article-structure.ts +137 -0
- package/addon/commands/article-structure-plugin/move-structure.ts +227 -0
- package/addon/commands/article-structure-plugin/recalculate-structure-numbers.ts +88 -0
- package/addon/commands/besluit-plugin/get-article-nodes-for-besluit.ts +30 -0
- package/addon/commands/besluit-plugin/index.ts +4 -0
- package/addon/commands/besluit-plugin/insert-article.ts +94 -0
- package/addon/commands/besluit-plugin/insert-title.ts +67 -0
- package/addon/commands/besluit-plugin/move-article.ts +69 -0
- package/addon/commands/besluit-plugin/recalculate-article-numbers.ts +44 -0
- package/addon/commands/modify-date-command.ts +48 -0
- package/addon/components/article-structure-plugin/article-structure-card.hbs +14 -0
- package/addon/components/article-structure-plugin/article-structure-card.ts +83 -0
- package/addon/components/article-structure-plugin/structure-card.hbs +42 -0
- package/addon/components/article-structure-plugin/structure-card.ts +140 -0
- package/addon/components/au-native-input.hbs +30 -0
- package/addon/components/au-native-input.ts +47 -0
- package/addon/components/besluit-plugin/besluit-context-card.hbs +44 -0
- package/addon/components/besluit-plugin/besluit-context-card.ts +144 -0
- package/addon/components/besluit-plugin/besluit-plugin-card.hbs +20 -0
- package/addon/components/besluit-plugin/besluit-plugin-card.ts +42 -0
- package/addon/components/besluit-type-plugin/{besluit-type-select.js → besluit-type-select.ts} +9 -4
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +2 -0
- package/addon/components/besluit-type-plugin/toolbar-dropdown.ts +216 -0
- package/addon/components/citation-plugin/citation-card.hbs +118 -0
- package/addon/components/citation-plugin/citation-card.ts +230 -0
- package/addon/components/citation-plugin/citation-insert.hbs +20 -0
- package/addon/components/citation-plugin/citation-insert.ts +102 -0
- package/addon/components/{citaten-plugin → citation-plugin}/citations/article-list.hbs +2 -2
- package/addon/components/{citaten-plugin → citation-plugin}/citations/article-preview.hbs +0 -0
- package/addon/components/{citaten-plugin → citation-plugin}/citations/decision-detail.hbs +9 -6
- package/addon/components/{citaten-plugin/citations/decision-detail.js → citation-plugin/citations/decision-detail.ts} +30 -31
- package/addon/components/{citaten-plugin → citation-plugin}/citations/decision-list.hbs +2 -2
- package/addon/components/{citaten-plugin → citation-plugin}/citations/decision-preview.hbs +0 -0
- package/addon/components/citation-plugin/citations/search-modal.hbs +254 -0
- package/addon/components/{citaten-plugin/citations/search-modal.js → citation-plugin/citations/search-modal.ts} +116 -89
- package/addon/components/{citaten-plugin → citation-plugin}/helpers/alert-load-error.hbs +0 -0
- package/addon/components/{citaten-plugin → citation-plugin}/helpers/alert-no-items.hbs +0 -0
- package/addon/components/import-snippet-plugin/card.ts +119 -0
- package/addon/components/insert-variable-plugin/insert-variable-card.hbs +2 -1
- package/addon/components/insert-variable-plugin/insert-variable-card.ts +134 -0
- package/addon/components/rdfa-date-plugin/{rdfa-date-plugin-card.hbs → card.hbs} +3 -1
- package/addon/components/rdfa-date-plugin/card.ts +72 -0
- package/addon/components/rdfa-date-plugin/{rdfa-date-time-picker.hbs → date-time-picker.hbs} +0 -0
- package/addon/components/rdfa-date-plugin/{rdfa-date-time-picker.js → date-time-picker.ts} +26 -12
- package/addon/components/rdfa-date-plugin/{rdfa-date-plugin-insert.hbs → insert.hbs} +0 -0
- package/addon/components/rdfa-date-plugin/insert.ts +44 -0
- package/addon/components/roadsign-regulation-plugin/expanded-measure.ts +58 -0
- package/addon/components/roadsign-regulation-plugin/measure-template.ts +35 -0
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +2 -2
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.ts +60 -0
- package/addon/components/roadsign-regulation-plugin/{roadsigns-modal.js → roadsigns-modal.ts} +101 -64
- package/addon/components/roadsign-regulation-plugin/{roadsigns-pagination.js → roadsigns-pagination.ts} +7 -3
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.ts +32 -0
- package/addon/components/standard-template-plugin/{template-card.hbs → card.hbs} +0 -0
- package/addon/components/standard-template-plugin/card.ts +11 -0
- package/addon/components/standard-template-plugin/template-provider.hbs +3 -1
- package/addon/components/standard-template-plugin/template-provider.ts +75 -0
- package/addon/components/table-of-contents-plugin/card.hbs +12 -1
- package/addon/components/table-of-contents-plugin/card.ts +60 -0
- package/addon/components/table-of-contents-plugin/{inline-components → ember-nodes}/outline.hbs +2 -2
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.hbs +9 -0
- package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.ts +95 -0
- package/addon/components/template-variable-plugin/template-variable-card.hbs +2 -1
- package/addon/components/template-variable-plugin/template-variable-card.ts +227 -0
- package/addon/{constants.js → constants.ts} +15 -3
- package/addon/ember-nodes/table-of-contents.ts +53 -0
- package/addon/helpers/{limit-text.js → limit-text.ts} +2 -2
- package/addon/initializers/plugin-initializer.js +0 -75
- package/addon/models/instruction.ts +18 -0
- package/addon/models/measure.ts +38 -0
- package/addon/models/sign.ts +36 -0
- package/addon/models/template.ts +14 -0
- package/addon/plugins/article-structure-plugin.ts +55 -0
- package/addon/plugins/besluit-plugin.ts +27 -0
- package/addon/plugins/besluit-type-plugin.ts +6 -0
- package/addon/plugins/citation-plugin/index.ts +216 -0
- package/addon/plugins/citation-plugin/marks/citation.ts +27 -0
- package/addon/plugins/citation-plugin/utils/cited-text.ts +17 -0
- package/addon/plugins/citation-plugin/utils/process-match.ts +135 -0
- package/addon/{utils/vlaamse-codex.js → plugins/citation-plugin/utils/vlaamse-codex.ts} +161 -42
- package/addon/plugins/import-snippet-plugin.ts +6 -0
- package/addon/plugins/insert-variable-plugin.ts +11 -0
- package/addon/plugins/rdfa-date-plugin.ts +11 -0
- package/addon/plugins/roadsign-regulation-plugin.ts +6 -0
- package/addon/plugins/standard-template-plugin.ts +6 -0
- package/addon/plugins/table-of-contents-plugin.ts +14 -0
- package/addon/plugins/template-variable-plugin.ts +6 -0
- package/addon/services/{import-rdfa-snippet.js → import-rdfa-snippet.ts} +48 -36
- package/addon/services/roadsign-registry.ts +288 -0
- package/addon/services/{standard-template-plugin.js → standard-template-plugin.ts} +17 -11
- package/addon/utils/article-structure-plugin/constants.ts +260 -0
- package/addon/utils/article-structure-plugin/defaults.ts +3 -0
- package/addon/utils/article-structure-plugin/options-with-defaults.ts +31 -0
- package/addon/utils/article-structure-plugin/validate-datastore.ts +23 -0
- package/addon/utils/besluit-plugin/get-title-for-decision.ts +35 -0
- package/addon/utils/{fetchBesluitTypes.js → fetchBesluitTypes.ts} +36 -16
- package/addon/utils/generate-template-plugin/{default-resources.js → default-resources.ts} +0 -0
- package/addon/utils/{instantiate-uuids.js → instantiate-uuids.ts} +9 -6
- package/addon/utils/{legislation-types.js → legislation-types.ts} +17 -3
- package/addon/utils/{memoize.js → memoize.ts} +4 -2
- package/addon/utils/option.ts +58 -0
- package/addon/utils/roadsign-regulation-plugin/{fetchData.js → fetchData.ts} +19 -2
- package/addon/utils/roadsign-regulation-plugin/includeInstructions.ts +16 -0
- package/addon/utils/romanize.ts +47 -0
- package/addon/utils/variable-plugins/{default-variable-types.js → default-variable-types.ts} +18 -7
- package/addon/utils/variable-plugins/{fetch-data.js → fetch-data.ts} +43 -15
- package/app/components/article-structure-plugin/article-structure-card.js +1 -0
- package/app/components/article-structure-plugin/structure-card.js +1 -0
- package/app/components/{citaten-plugin/citaat-card.js → au-native-input.js} +1 -1
- package/app/components/{citaten-plugin/citations/article-list.js → besluit-plugin/besluit-context-card.js} +1 -1
- package/app/components/besluit-plugin/besluit-plugin-card.js +1 -0
- package/app/components/{citaten-plugin/citations/modal.js → citation-plugin/citation-card.js} +1 -1
- package/app/components/citation-plugin/citation-insert.js +1 -0
- package/app/components/{citaten-plugin/citations/decision-list.js → citation-plugin/citations/article-list.js} +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/citations/article-preview.js +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/citations/decision-detail.js +1 -1
- package/app/components/citation-plugin/citations/decision-list.js +1 -0
- package/app/components/{citaten-plugin → citation-plugin}/citations/decision-preview.js +1 -1
- package/app/components/citation-plugin/citations/modal.js +1 -0
- package/app/components/{citaten-plugin → citation-plugin}/citations/search-modal.js +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/helpers/alert-load-error.js +1 -1
- package/app/components/{citaten-plugin → citation-plugin}/helpers/alert-no-items.js +1 -1
- package/app/components/{citaten-plugin/citaat-insert.js → rdfa-date-plugin/card.js} +1 -1
- package/app/components/rdfa-date-plugin/date-time-picker.js +1 -0
- package/app/components/rdfa-date-plugin/insert.js +1 -0
- package/app/components/standard-template-plugin/card.js +1 -0
- package/app/components/table-of-contents-plugin/ember-nodes/outline.js +1 -0
- package/app/components/table-of-contents-plugin/ember-nodes/table-of-contents.js +1 -0
- package/app/styles/citaten-plugin.scss +1 -1
- package/commands/article-structure-plugin/delete-structure.d.ts +4 -0
- package/commands/article-structure-plugin/index.d.ts +4 -0
- package/commands/article-structure-plugin/insert-article-structure.d.ts +6 -0
- package/commands/article-structure-plugin/move-structure.d.ts +5 -0
- package/commands/article-structure-plugin/recalculate-structure-numbers.d.ts +7 -0
- package/commands/besluit-plugin/get-article-nodes-for-besluit.d.ts +5 -0
- package/commands/besluit-plugin/index.d.ts +4 -0
- package/commands/besluit-plugin/insert-article.d.ts +3 -0
- package/commands/besluit-plugin/insert-title.d.ts +2 -0
- package/commands/besluit-plugin/move-article.d.ts +2 -0
- package/commands/besluit-plugin/recalculate-article-numbers.d.ts +2 -0
- package/commands/modify-date-command.d.ts +2 -0
- package/components/article-structure-plugin/article-structure-card.d.ts +36 -0
- package/components/article-structure-plugin/structure-card.d.ts +23 -0
- package/components/au-native-input.d.ts +20 -0
- package/components/besluit-plugin/besluit-context-card.d.ts +29 -0
- package/components/besluit-plugin/besluit-plugin-card.d.ts +14 -0
- package/components/besluit-type-plugin/besluit-type-select.d.ts +11 -0
- package/components/besluit-type-plugin/toolbar-dropdown.d.ts +46 -0
- package/components/citation-plugin/citation-card.d.ts +51 -0
- package/components/citation-plugin/citation-insert.d.ts +24 -0
- package/components/citation-plugin/citations/decision-detail.d.ts +26 -0
- package/components/citation-plugin/citations/search-modal.d.ts +67 -0
- package/components/import-snippet-plugin/card.d.ts +19 -0
- package/components/insert-variable-plugin/insert-variable-card.d.ts +31 -0
- package/components/rdfa-date-plugin/card.d.ts +20 -0
- package/components/rdfa-date-plugin/date-time-picker.d.ts +32 -0
- package/components/rdfa-date-plugin/insert.d.ts +12 -0
- package/components/roadsign-regulation-plugin/expanded-measure.d.ts +20 -0
- package/components/roadsign-regulation-plugin/measure-template.d.ts +14 -0
- package/components/roadsign-regulation-plugin/roadsign-regulation-card.d.ts +12 -0
- package/components/roadsign-regulation-plugin/roadsigns-modal.d.ts +57 -0
- package/components/roadsign-regulation-plugin/roadsigns-pagination.d.ts +19 -0
- package/components/roadsign-regulation-plugin/roadsigns-table.d.ts +9 -0
- package/components/standard-template-plugin/card.d.ts +9 -0
- package/components/standard-template-plugin/template-provider.d.ts +17 -0
- package/components/table-of-contents-plugin/card.d.ts +20 -0
- package/components/table-of-contents-plugin/ember-nodes/table-of-contents.d.ts +22 -0
- package/components/template-variable-plugin/template-variable-card.d.ts +27 -0
- package/constants.d.ts +11 -0
- package/ember-nodes/table-of-contents.d.ts +4 -0
- package/helpers/limit-text.d.ts +8 -0
- package/index.js +5 -0
- package/models/instruction.d.ts +8 -0
- package/models/measure.d.ts +14 -0
- package/models/sign.d.ts +12 -0
- package/models/template.d.ts +13 -0
- package/package.json +27 -8
- package/plugins/article-structure-plugin.d.ts +29 -0
- package/plugins/besluit-plugin.d.ts +9 -0
- package/plugins/besluit-type-plugin.d.ts +2 -0
- package/plugins/citation-plugin/index.d.ts +31 -0
- package/plugins/citation-plugin/marks/citation.d.ts +2 -0
- package/plugins/citation-plugin/utils/cited-text.d.ts +3 -0
- package/plugins/citation-plugin/utils/process-match.d.ts +23 -0
- package/plugins/citation-plugin/utils/vlaamse-codex.d.ts +56 -0
- package/plugins/import-snippet-plugin.d.ts +2 -0
- package/plugins/insert-variable-plugin.d.ts +2 -0
- package/plugins/rdfa-date-plugin.d.ts +3 -0
- package/plugins/roadsign-regulation-plugin.d.ts +2 -0
- package/plugins/standard-template-plugin.d.ts +2 -0
- package/plugins/table-of-contents-plugin.d.ts +3 -0
- package/plugins/template-variable-plugin.d.ts +2 -0
- package/services/import-rdfa-snippet.d.ts +99 -0
- package/services/roadsign-registry.d.ts +42 -0
- package/services/standard-template-plugin.d.ts +21 -0
- package/translations/en-US.yaml +47 -1
- package/translations/nl-BE.yaml +49 -3
- package/tsconfig.json +34 -9
- package/types/config/environment.d.ts +22 -0
- package/types/ember-mu-transform-helpers/transforms/string-set.d.ts +14 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/account.d.ts +10 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/bestuurseenheid-classificatie-code.d.ts +10 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/bestuurseenheid.d.ts +12 -0
- package/types/lblod/frontend-gelinkt-notuleren/models/gebruiker-model.d.ts +18 -0
- package/types/lblod/frontend-gelinkt-notuleren/services/current-session.d.ts +30 -0
- package/types/lblod/marawa/dom-helpers.d.ts +4 -0
- package/types/lblod/marawa/ember-object-mock.d.ts +3 -0
- package/types/lblod/marawa/node-walker.d.ts +18 -0
- package/types/lblod/marawa/range-helpers.d.ts +10 -0
- package/types/lblod/marawa/rdfa-attributes.d.ts +25 -0
- package/types/lblod/marawa/rdfa-block.d.ts +22 -0
- package/types/lblod/marawa/rdfa-context-scanner.d.ts +13 -0
- package/types/lblod/marawa/rdfa-helpers.d.ts +22 -0
- package/types/lblod/marawa/rich-node.d.ts +50 -0
- package/types/lblod/marawa/triple.d.ts +16 -0
- package/utils/article-structure-plugin/constants.d.ts +2 -0
- package/utils/article-structure-plugin/defaults.d.ts +4 -0
- package/utils/article-structure-plugin/options-with-defaults.d.ts +2 -0
- package/utils/article-structure-plugin/validate-datastore.d.ts +3 -0
- package/utils/besluit-plugin/get-title-for-decision.d.ts +10 -0
- package/utils/fetchBesluitTypes.d.ts +12 -0
- package/utils/generate-template-plugin/default-resources.d.ts +2 -0
- package/utils/instantiate-uuids.d.ts +1 -0
- package/utils/legislation-types.d.ts +24 -0
- package/utils/memoize.d.ts +1 -0
- package/utils/option.d.ts +14 -0
- package/utils/roadsign-regulation-plugin/fetchData.d.ts +8 -0
- package/utils/roadsign-regulation-plugin/includeInstructions.d.ts +2 -0
- package/utils/romanize.d.ts +2 -0
- package/utils/variable-plugins/default-variable-types.d.ts +7 -0
- package/utils/variable-plugins/fetch-data.d.ts +14 -0
- package/addon/commands/generate-template-command.js +0 -35
- package/addon/commands/insert-and-collapse.js +0 -32
- package/addon/commands/modify-date-command.js +0 -42
- package/addon/components/besluit-type-plugin/toolbar-dropdown.js +0 -188
- package/addon/components/citaten-plugin/citaat-card.hbs +0 -76
- package/addon/components/citaten-plugin/citaat-card.js +0 -286
- package/addon/components/citaten-plugin/citaat-insert.hbs +0 -20
- package/addon/components/citaten-plugin/citaat-insert.js +0 -68
- package/addon/components/citaten-plugin/citations/search-modal.hbs +0 -175
- package/addon/components/import-snippet-plugin/card.js +0 -95
- package/addon/components/insert-variable-plugin/insert-variable-card.js +0 -125
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -71
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -24
- package/addon/components/roadsign-regulation-plugin/expanded-measure.js +0 -38
- package/addon/components/roadsign-regulation-plugin/measure-template.js +0 -30
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.js +0 -101
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.js +0 -24
- package/addon/components/standard-template-plugin/template-card.js +0 -7
- package/addon/components/standard-template-plugin/template-provider.js +0 -75
- package/addon/components/table-of-contents-plugin/card.js +0 -53
- package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.hbs +0 -9
- package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -100
- package/addon/components/template-variable-plugin/template-variable-card.js +0 -230
- package/addon/inline-components/table-of-contents.js +0 -43
- package/addon/models/instruction.js +0 -19
- package/addon/models/measure.js +0 -46
- package/addon/models/sign.js +0 -37
- package/addon/models/template.js +0 -9
- package/addon/plugins/besluit-type-plugin.js +0 -16
- package/addon/plugins/citaten-plugin.js +0 -22
- package/addon/plugins/import-snippet-plugin.js +0 -16
- package/addon/plugins/insert-variable-plugin.js +0 -19
- package/addon/plugins/rdfa-date-plugin.js +0 -26
- package/addon/plugins/roadsign-regulation-plugin.js +0 -24
- package/addon/plugins/standard-template-plugin.js +0 -33
- package/addon/plugins/table-of-contents-plugin.js +0 -27
- package/addon/plugins/template-variable-plugin.js +0 -21
- package/addon/services/roadsign-registry.js +0 -240
- package/addon/utils/processMatch.js +0 -80
- package/addon/utils/roadsign-regulation-plugin/includeInstructions.js +0 -10
- package/app/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -1
- package/app/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -1
- package/app/components/rdfa-date-plugin/rdfa-date-time-picker.js +0 -1
- package/app/components/standard-template-plugin/template-card.js +0 -1
- package/app/components/table-of-contents-plugin/inline-components/outline.js +0 -1
- package/app/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -1
- package/app/initializers/plugin-initializer.js +0 -4
- package/types/dummy/index.d.ts +0 -1
- package/types/ember-data/types/registries/model.d.ts +0 -6
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
import IntlService from 'ember-intl/services/intl';
|
|
4
|
+
import { ResolvedArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
5
|
+
type Args = {
|
|
6
|
+
controller: ProseController;
|
|
7
|
+
widgetArgs: {
|
|
8
|
+
options: ResolvedArticleStructurePluginOptions;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default class EditorPluginsArticleStructureCardComponent extends Component<Args> {
|
|
12
|
+
intl: IntlService;
|
|
13
|
+
structures: import("ember-resources/util/function").State<{
|
|
14
|
+
canExecute: boolean;
|
|
15
|
+
uriBase: string;
|
|
16
|
+
title: string;
|
|
17
|
+
type: string;
|
|
18
|
+
numberPredicate: string;
|
|
19
|
+
numbering?: string | undefined;
|
|
20
|
+
numberingFunction?: ((num: number) => string) | undefined;
|
|
21
|
+
heading?: string | undefined;
|
|
22
|
+
translation: string;
|
|
23
|
+
moveUp: string;
|
|
24
|
+
moveDown: string;
|
|
25
|
+
insertPredicate?: {
|
|
26
|
+
long: string;
|
|
27
|
+
short: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
shaclConstraint: string;
|
|
30
|
+
template: (uri: string, intlService: IntlService) => string;
|
|
31
|
+
}[]>;
|
|
32
|
+
insertStructure(structureName: string): Promise<void>;
|
|
33
|
+
get structureUri(): string | undefined;
|
|
34
|
+
get isOutsideStructure(): boolean;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
import { ResolvedArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
|
|
4
|
+
type Args = {
|
|
5
|
+
controller: ProseController;
|
|
6
|
+
widgetArgs: {
|
|
7
|
+
options: ResolvedArticleStructurePluginOptions;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default class EditorPluginsStructureCardComponent extends Component<Args> {
|
|
11
|
+
get controller(): ProseController;
|
|
12
|
+
moveStructure(moveUp: boolean): Promise<void>;
|
|
13
|
+
removeStructure(): void;
|
|
14
|
+
get structure(): {
|
|
15
|
+
uri: string;
|
|
16
|
+
type: string;
|
|
17
|
+
} | undefined;
|
|
18
|
+
get structureTypeSelected(): import("@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin").StructureSpec | undefined;
|
|
19
|
+
get isOutsideStructure(): boolean;
|
|
20
|
+
canMoveDown: import("ember-resources/util/function").State<boolean>;
|
|
21
|
+
canMoveUp: import("ember-resources/util/function").State<boolean>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
interface Args {
|
|
3
|
+
width?: 'block';
|
|
4
|
+
iconAlignment?: 'left' | 'right';
|
|
5
|
+
error?: boolean;
|
|
6
|
+
warning?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
type?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class AuNativeInput extends Component<Args> {
|
|
12
|
+
constructor(owner: unknown, args: Args);
|
|
13
|
+
get width(): "" | "au-c-input--block";
|
|
14
|
+
get iconAlignment(): "" | "au-c-input-wrapper--left" | "au-c-input-wrapper--right";
|
|
15
|
+
get error(): "" | "au-c-input--error";
|
|
16
|
+
get warning(): "" | "au-c-input--warning";
|
|
17
|
+
get disabled(): "" | "is-disabled";
|
|
18
|
+
get type(): string;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ResolvedPNode } from '@lblod/ember-rdfa-editor/plugins/datastore';
|
|
3
|
+
import { DecisionOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/besluit-plugin';
|
|
4
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
5
|
+
interface ContextCardWidgetArgs {
|
|
6
|
+
options?: DecisionOptions;
|
|
7
|
+
}
|
|
8
|
+
interface Args {
|
|
9
|
+
controller: ProseController;
|
|
10
|
+
widgetArgs: ContextCardWidgetArgs;
|
|
11
|
+
}
|
|
12
|
+
export default class BesluitContextCardComponent extends Component<Args> {
|
|
13
|
+
articleElement?: ResolvedPNode;
|
|
14
|
+
constructor(parent: unknown, args: Args);
|
|
15
|
+
get controller(): ProseController;
|
|
16
|
+
get doc(): import("prosemirror-model").Node;
|
|
17
|
+
focus(): void;
|
|
18
|
+
deleteArticle(): void;
|
|
19
|
+
moveUpArticle(): void;
|
|
20
|
+
moveDownArticle(): void;
|
|
21
|
+
get disableMoveUp(): boolean;
|
|
22
|
+
get disableMoveDown(): boolean;
|
|
23
|
+
get besluitURI(): string | undefined;
|
|
24
|
+
get activeArticle(): {
|
|
25
|
+
uri: string;
|
|
26
|
+
range: ResolvedPNode;
|
|
27
|
+
} | undefined;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
type Args = {
|
|
4
|
+
controller: ProseController;
|
|
5
|
+
};
|
|
6
|
+
export default class BesluitPluginCardComponent extends Component<Args> {
|
|
7
|
+
get controller(): ProseController;
|
|
8
|
+
focus(): void;
|
|
9
|
+
insertArticle(): void;
|
|
10
|
+
insertTitle(): void;
|
|
11
|
+
get hasTitle(): boolean;
|
|
12
|
+
get disableArticleInsert(): boolean;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { BesluitType } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/fetchBesluitTypes';
|
|
3
|
+
type Args = {
|
|
4
|
+
besluitTypes: BesluitType[];
|
|
5
|
+
};
|
|
6
|
+
export default class BesluitTypePluginBesluitTypeSelectComponent extends Component<Args> {
|
|
7
|
+
besluitTypes: BesluitType[];
|
|
8
|
+
constructor(parent: unknown, args: Args);
|
|
9
|
+
search(term: string): BesluitType[];
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { BesluitType } from '../../utils/fetchBesluitTypes';
|
|
3
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
4
|
+
import CurrentSessionService from '@lblod/frontend-gelinkt-notuleren/services/current-session';
|
|
5
|
+
import { ResolvedPNode } from '@lblod/ember-rdfa-editor/plugins/datastore';
|
|
6
|
+
declare module 'ember__owner' {
|
|
7
|
+
export default interface Owner {
|
|
8
|
+
resolveRegistration(name: string): unknown;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
type Args = {
|
|
12
|
+
controller: ProseController;
|
|
13
|
+
};
|
|
14
|
+
export default class EditorPluginsToolbarDropdownComponent extends Component<Args> {
|
|
15
|
+
currentSession: CurrentSessionService;
|
|
16
|
+
/**
|
|
17
|
+
* Actual besluit type selected
|
|
18
|
+
* @property besluitType
|
|
19
|
+
* @type BesluitType
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
besluitType?: BesluitType;
|
|
23
|
+
previousBesluitType?: string;
|
|
24
|
+
types: BesluitType[];
|
|
25
|
+
besluit?: BesluitType;
|
|
26
|
+
subBesluit?: BesluitType;
|
|
27
|
+
subSubBesluit?: BesluitType;
|
|
28
|
+
cardExpanded: boolean;
|
|
29
|
+
loadDataTaskInstance: import("ember-concurrency").TaskInstance<void>;
|
|
30
|
+
constructor(parent: unknown, args: Args);
|
|
31
|
+
get controller(): ProseController;
|
|
32
|
+
get doc(): import("prosemirror-model").Node;
|
|
33
|
+
loadData: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<void>>;
|
|
34
|
+
get currentBesluitRange(): ResolvedPNode | undefined;
|
|
35
|
+
get currentBesluitURI(): string | undefined;
|
|
36
|
+
get showCard(): boolean;
|
|
37
|
+
updateBesluitTypes(): void;
|
|
38
|
+
updateBesluitType(selected: BesluitType): void;
|
|
39
|
+
updateBesluitSubType(selected: BesluitType): void;
|
|
40
|
+
updateBesluitSubSubType(selected: BesluitType): void;
|
|
41
|
+
findBesluitTypeParent(besluitType?: BesluitType, array?: BesluitType[], parent?: BesluitType): BesluitType | undefined;
|
|
42
|
+
findBesluitTypeByURI(uri: string, types?: BesluitType[]): BesluitType | undefined;
|
|
43
|
+
insert(): void;
|
|
44
|
+
toggleCard(): void;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { Article, Decision } from '../../plugins/citation-plugin/utils/vlaamse-codex';
|
|
3
|
+
import { Option } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
4
|
+
import { CitationDecoration, CitationPlugin } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin';
|
|
5
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
6
|
+
interface Args {
|
|
7
|
+
controller: ProseController;
|
|
8
|
+
widgetArgs: {
|
|
9
|
+
plugin: CitationPlugin;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export default class CitationCardComponent extends Component<Args> {
|
|
13
|
+
pageNumber: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
totalSize: number;
|
|
16
|
+
totalCount: number;
|
|
17
|
+
decisions: never[];
|
|
18
|
+
error: unknown;
|
|
19
|
+
showModal: boolean;
|
|
20
|
+
decision: Decision | null;
|
|
21
|
+
cardText: string | null;
|
|
22
|
+
cardLegislationType: string | null;
|
|
23
|
+
get controller(): ProseController;
|
|
24
|
+
get showCard(): Option<CitationDecoration>;
|
|
25
|
+
get plugin(): CitationPlugin;
|
|
26
|
+
get decorations(): import("prosemirror-view").DecorationSet | undefined;
|
|
27
|
+
get activeDecoration(): Option<CitationDecoration>;
|
|
28
|
+
get documentLegislationType(): Option<string>;
|
|
29
|
+
get documentText(): Option<string>;
|
|
30
|
+
get searchText(): string;
|
|
31
|
+
get legislationTypes(): string[];
|
|
32
|
+
get selectedLegislationType(): {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
};
|
|
36
|
+
get selectedLegislationTypeLabel(): string;
|
|
37
|
+
get selectedLegislationTypeUri(): string;
|
|
38
|
+
resetToDocumentState(): void;
|
|
39
|
+
onCardTextChange(event: InputEvent): void;
|
|
40
|
+
resourceSearch: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<Decision[]>>;
|
|
41
|
+
decisionResource: import("ember-resources/util/ember-concurrency").TaskInstance<unknown>;
|
|
42
|
+
selectLegislationType(type: string): void;
|
|
43
|
+
openDecisionDetailModal(decision: Decision): void;
|
|
44
|
+
openSearchModal(): Promise<void>;
|
|
45
|
+
closeModal(lastSearchType: string, lastSearchTerm: string): void;
|
|
46
|
+
insertDecisionCitation(decision: Decision): void;
|
|
47
|
+
insertArticleCitation(decision: Decision, article: Article): void;
|
|
48
|
+
focus(): void;
|
|
49
|
+
willDestroy(): void;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor';
|
|
3
|
+
import { Article, Decision } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin/utils/vlaamse-codex';
|
|
4
|
+
import { CitationPlugin } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin';
|
|
5
|
+
interface Args {
|
|
6
|
+
controller: ProseController;
|
|
7
|
+
widgetArgs: {
|
|
8
|
+
plugin: CitationPlugin;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class EditorPluginsCitationInsertComponent extends Component<Args> {
|
|
12
|
+
showModal: boolean;
|
|
13
|
+
legislationTypeUri: string;
|
|
14
|
+
text: string;
|
|
15
|
+
get disableInsert(): boolean;
|
|
16
|
+
get plugin(): CitationPlugin;
|
|
17
|
+
get activeRanges(): [number, number][] | undefined;
|
|
18
|
+
get controller(): ProseController;
|
|
19
|
+
openModal(): void;
|
|
20
|
+
closeModal(): void;
|
|
21
|
+
insertDecisionCitation(decision: Decision): void;
|
|
22
|
+
insertArticleCitation(decision: Decision, article: Article): void;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { Decision } from '../../../plugins/citation-plugin/utils/vlaamse-codex';
|
|
3
|
+
interface Args {
|
|
4
|
+
decision: Decision;
|
|
5
|
+
close: () => void;
|
|
6
|
+
}
|
|
7
|
+
export default class EditorPluginsCitationsDecisionDetailComponent extends Component<Args> {
|
|
8
|
+
error: unknown;
|
|
9
|
+
pageNumber: number;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
totalCount: number;
|
|
12
|
+
articles: never[];
|
|
13
|
+
articleFilter: string;
|
|
14
|
+
articleFilterAfterTimeout: string;
|
|
15
|
+
updateArticleFilter: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<void>>;
|
|
16
|
+
resourceSearch: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<import("../../../plugins/citation-plugin/utils/vlaamse-codex").Article[]>>;
|
|
17
|
+
articleResource: import("ember-resources/util/ember-concurrency").TaskInstance<unknown>;
|
|
18
|
+
close(): Promise<void>;
|
|
19
|
+
previousPage(): void;
|
|
20
|
+
nextPage(): void;
|
|
21
|
+
get rangeStart(): number;
|
|
22
|
+
get rangeEnd(): number;
|
|
23
|
+
get isFirstPage(): boolean;
|
|
24
|
+
get isLastPage(): boolean;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { Article, Decision } from '../../../plugins/citation-plugin/utils/vlaamse-codex';
|
|
3
|
+
import IntlService from 'ember-intl/services/intl';
|
|
4
|
+
interface Args {
|
|
5
|
+
selectedDecision: Decision;
|
|
6
|
+
legislationTypeUri: string;
|
|
7
|
+
text: string;
|
|
8
|
+
insertDecisionCitation: (decision: Decision) => void;
|
|
9
|
+
insertArticleCitation: (decision: Decision, article: Article) => void;
|
|
10
|
+
closeModal: (legislationTypeUri?: string, text?: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export default class EditorPluginsCitationsSearchModalComponent extends Component<Args> {
|
|
13
|
+
intl: IntlService;
|
|
14
|
+
legislationTypeUri: string;
|
|
15
|
+
pageNumber: number;
|
|
16
|
+
pageSize: number;
|
|
17
|
+
totalCount: number;
|
|
18
|
+
decisions: never[];
|
|
19
|
+
error: unknown;
|
|
20
|
+
selectedDecision: Decision | null;
|
|
21
|
+
documentDateFrom: Date | null;
|
|
22
|
+
documentDateTo: Date | null;
|
|
23
|
+
publicationDateFrom: Date | null;
|
|
24
|
+
publicationDateTo: Date | null;
|
|
25
|
+
inputSearchText: string | null;
|
|
26
|
+
minDate: Date;
|
|
27
|
+
maxDate: Date;
|
|
28
|
+
constructor(owner: unknown, args: Args);
|
|
29
|
+
get datePickerLocalization(): {
|
|
30
|
+
buttonLabel: string;
|
|
31
|
+
selectedDateMessage: string;
|
|
32
|
+
prevMonthLabel: string;
|
|
33
|
+
nextMonthLabel: string;
|
|
34
|
+
monthSelectLabel: string;
|
|
35
|
+
yearSelectLabel: string;
|
|
36
|
+
closeLabel: string;
|
|
37
|
+
keyboardInstruction: string;
|
|
38
|
+
calendarHeading: string;
|
|
39
|
+
dayNames: string[];
|
|
40
|
+
monthNames: string[];
|
|
41
|
+
monthNamesShort: string[];
|
|
42
|
+
};
|
|
43
|
+
get legislationTypes(): string[];
|
|
44
|
+
get legislationSelected(): string;
|
|
45
|
+
get text(): string;
|
|
46
|
+
get searchText(): string;
|
|
47
|
+
get rangeStart(): number;
|
|
48
|
+
get rangeEnd(): number;
|
|
49
|
+
get isFirstPage(): boolean;
|
|
50
|
+
get isLastPage(): boolean;
|
|
51
|
+
resourceSearch: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<Decision[]>>;
|
|
52
|
+
decisionResource: import("ember-resources/util/ember-concurrency").TaskInstance<unknown>;
|
|
53
|
+
setInputSearchText(event: InputEvent): void;
|
|
54
|
+
selectLegislationType(type: string): void;
|
|
55
|
+
updateDocumentDateFrom(_isoDate: unknown, date: Date): void;
|
|
56
|
+
updateDocumentDateTo(_isoDate: unknown, date: Date): void;
|
|
57
|
+
updatePublicationDateFrom(_isoDate: unknown, date: Date): void;
|
|
58
|
+
updatePublicationDateTo(_isoDate: unknown, date: Date): void;
|
|
59
|
+
insertDecisionCitation(decision: Decision): Promise<void>;
|
|
60
|
+
insertArticleCitation(decision: Decision, article: Article): Promise<void>;
|
|
61
|
+
closeModal(legislationTypeUri?: string, text?: string): Promise<void>;
|
|
62
|
+
openDecisionDetail(decision: Decision): void;
|
|
63
|
+
closeDecisionDetail(): void;
|
|
64
|
+
previousPage(): void;
|
|
65
|
+
nextPage(): void;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
3
|
+
import ImportRdfaSnippet from '@lblod/ember-rdfa-editor-lblod-plugins/services/import-rdfa-snippet';
|
|
4
|
+
import { RdfaSnippet } from '@lblod/ember-rdfa-editor-lblod-plugins/services/import-rdfa-snippet';
|
|
5
|
+
type Args = {
|
|
6
|
+
controller: ProseController;
|
|
7
|
+
};
|
|
8
|
+
export default class ImportSnippetPluginCard extends Component<Args> {
|
|
9
|
+
importRdfaSnippet: ImportRdfaSnippet;
|
|
10
|
+
get controller(): ProseController;
|
|
11
|
+
get snippets(): RdfaSnippet[];
|
|
12
|
+
get insertRange(): import("prosemirror-state").Selection | {
|
|
13
|
+
from: number;
|
|
14
|
+
to: number;
|
|
15
|
+
};
|
|
16
|
+
insert(snippet: RdfaSnippet, type: string): void;
|
|
17
|
+
generateSnippetHtml(snippet: RdfaSnippet, type: string): import("prosemirror-model").Node;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { VariableType } from '../../utils/variable-plugins/default-variable-types';
|
|
3
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
4
|
+
import { CodeList } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/variable-plugins/fetch-data';
|
|
5
|
+
type Args = {
|
|
6
|
+
controller: ProseController;
|
|
7
|
+
widgetArgs: {
|
|
8
|
+
options: {
|
|
9
|
+
publisher: string;
|
|
10
|
+
variableTypes: (VariableType | string)[];
|
|
11
|
+
defaultEndpoint: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default class EditorPluginsInsertCodelistCardComponent extends Component<Args> {
|
|
16
|
+
variablesArray: VariableType[];
|
|
17
|
+
selectedVariable?: VariableType;
|
|
18
|
+
showCard: boolean;
|
|
19
|
+
hasSubtype: boolean;
|
|
20
|
+
selectedSubtype?: CodeList;
|
|
21
|
+
subtypes?: CodeList[];
|
|
22
|
+
publisher: string;
|
|
23
|
+
endpoint: string;
|
|
24
|
+
constructor(parent: unknown, args: Args);
|
|
25
|
+
insert(): void;
|
|
26
|
+
updateSelectedVariable(variable: VariableType): void;
|
|
27
|
+
fetchSubtypes: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (fetchFunction: (endpoint: string, publisher: string) => Promise<CodeList[]>) => Promise<void>>;
|
|
28
|
+
updateSubtype(subtype: CodeList): void;
|
|
29
|
+
selectionChanged(): void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
3
|
+
type Args = {
|
|
4
|
+
controller: ProseController;
|
|
5
|
+
};
|
|
6
|
+
export default class RdfaDatePluginCardComponent extends Component<Args> {
|
|
7
|
+
dateValue?: Date;
|
|
8
|
+
dateRange?: {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
};
|
|
12
|
+
dateInDocument: boolean;
|
|
13
|
+
onlyDate: boolean;
|
|
14
|
+
showCard: boolean;
|
|
15
|
+
get controller(): ProseController;
|
|
16
|
+
modifyDate(): void;
|
|
17
|
+
changeDate(date: Date): void;
|
|
18
|
+
onSelectionChanged(): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import Intl from 'ember-intl/services/intl';
|
|
3
|
+
type Args = {
|
|
4
|
+
value: Date;
|
|
5
|
+
onChange: (date: Date) => void;
|
|
6
|
+
};
|
|
7
|
+
export default class RdfaDatePluginDateTimePicker extends Component<Args> {
|
|
8
|
+
intl: Intl;
|
|
9
|
+
date: Date;
|
|
10
|
+
get hours(): number;
|
|
11
|
+
get minutes(): number;
|
|
12
|
+
get datePickerLocalization(): {
|
|
13
|
+
buttonLabel: string;
|
|
14
|
+
selectedDateMessage: string;
|
|
15
|
+
prevMonthLabel: string;
|
|
16
|
+
nextMonthLabel: string;
|
|
17
|
+
monthSelectLabel: string;
|
|
18
|
+
yearSelectLabel: string;
|
|
19
|
+
closeLabel: string;
|
|
20
|
+
keyboardInstruction: string;
|
|
21
|
+
calendarHeading: string;
|
|
22
|
+
dayNames: string[];
|
|
23
|
+
monthNames: string[];
|
|
24
|
+
monthNamesShort: string[];
|
|
25
|
+
};
|
|
26
|
+
onChangeDate(_isoDate: unknown, date: Date): void;
|
|
27
|
+
onChangeTime(timeObject: {
|
|
28
|
+
hours: number;
|
|
29
|
+
minutes: number;
|
|
30
|
+
}): void;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
3
|
+
type Args = {
|
|
4
|
+
controller: ProseController;
|
|
5
|
+
};
|
|
6
|
+
export default class RdfaDatePluginInsertComponent extends Component<Args> {
|
|
7
|
+
get controller(): ProseController;
|
|
8
|
+
get schema(): import("prosemirror-model").Schema<any, any>;
|
|
9
|
+
insertDate(): void;
|
|
10
|
+
insertDateTime(): void;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import Measure from '@lblod/ember-rdfa-editor-lblod-plugins/models/measure';
|
|
3
|
+
type Args = {
|
|
4
|
+
measure: Measure;
|
|
5
|
+
selectRow: (uri: string) => void;
|
|
6
|
+
insert: (measure: Measure, zonalityValue?: string, temporalValue?: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export default class ExpandedMeasureComponent extends Component<Args> {
|
|
9
|
+
zonalityValue?: string;
|
|
10
|
+
temporalValue?: string;
|
|
11
|
+
ZONAL_URI: string;
|
|
12
|
+
NON_ZONAL_URI: string;
|
|
13
|
+
get isPotentiallyZonal(): boolean;
|
|
14
|
+
get insertButtonDisabled(): boolean;
|
|
15
|
+
changeZonality(event: InputEvent): void;
|
|
16
|
+
changeTemporality(event: InputEvent): void;
|
|
17
|
+
insert(): void;
|
|
18
|
+
unselectRow(): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import RoadsignRegistryService from '@lblod/ember-rdfa-editor-lblod-plugins/services/roadsign-registry';
|
|
3
|
+
type Args = {
|
|
4
|
+
template: string;
|
|
5
|
+
measure: string;
|
|
6
|
+
annotated: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default class MeasureTemplateComponent extends Component<Args> {
|
|
9
|
+
roadsignRegistry: RoadsignRegistryService;
|
|
10
|
+
template: string;
|
|
11
|
+
constructor(parent: unknown, args: Args);
|
|
12
|
+
fetchData: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<void>>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
3
|
+
type Args = {
|
|
4
|
+
controller: ProseController;
|
|
5
|
+
};
|
|
6
|
+
export default class RoadsignRegulationCard extends Component<Args> {
|
|
7
|
+
modalOpen: boolean;
|
|
8
|
+
toggleModal(): void;
|
|
9
|
+
get controller(): ProseController;
|
|
10
|
+
get showCard(): boolean;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import RoadsignRegistryService from '@lblod/ember-rdfa-editor-lblod-plugins/services/roadsign-registry';
|
|
3
|
+
import Measure from '@lblod/ember-rdfa-editor-lblod-plugins/models/measure';
|
|
4
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
5
|
+
type Option = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
type Zonality = Option;
|
|
10
|
+
type TypeOption = Option;
|
|
11
|
+
type Code = Option;
|
|
12
|
+
type Category = Option;
|
|
13
|
+
type Args = {
|
|
14
|
+
closeModal: () => void;
|
|
15
|
+
controller: ProseController;
|
|
16
|
+
};
|
|
17
|
+
export default class RoadsignRegulationCard extends Component<Args> {
|
|
18
|
+
endpoint: string;
|
|
19
|
+
pageSize: number;
|
|
20
|
+
roadsignRegistry: RoadsignRegistryService;
|
|
21
|
+
typeSelected?: TypeOption;
|
|
22
|
+
categorySelected?: Category;
|
|
23
|
+
zonalityOptions: Zonality[];
|
|
24
|
+
zonalitySelected?: Zonality;
|
|
25
|
+
descriptionFilter?: string;
|
|
26
|
+
selectedCode?: Code;
|
|
27
|
+
selectedCodeCombination?: Code[];
|
|
28
|
+
codeCombinationOptions: Code[];
|
|
29
|
+
tableData: Measure[];
|
|
30
|
+
count?: number;
|
|
31
|
+
pageStart: number;
|
|
32
|
+
get isNotTypeSign(): boolean;
|
|
33
|
+
constructor(parent: unknown, args: Args);
|
|
34
|
+
selectTypeOrCategory(option: Option): void;
|
|
35
|
+
changeCode(value: Code): void;
|
|
36
|
+
changeCodeCombination(value: Code[]): void;
|
|
37
|
+
changeDescription(event: InputEvent): void;
|
|
38
|
+
selectCategory(value: Category): void;
|
|
39
|
+
selectZonality(value: Zonality): void;
|
|
40
|
+
closeModal(): void;
|
|
41
|
+
searchCodes(term: string): import("ember-concurrency").TaskInstance<{
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
}[]>;
|
|
45
|
+
fetchCodeCombinations(): Promise<void>;
|
|
46
|
+
get typeOptions(): {
|
|
47
|
+
groupName: string;
|
|
48
|
+
options: TypeOption[];
|
|
49
|
+
}[];
|
|
50
|
+
fetchSigns: import("ember-concurrency").TaskForAsyncTaskFunction<{
|
|
51
|
+
restartable: boolean;
|
|
52
|
+
}, () => Promise<void>>;
|
|
53
|
+
insertHtml(measure: Measure, zonalityValue: string, temporalValue: string): Promise<void>;
|
|
54
|
+
goToPage(pageStart: number): void;
|
|
55
|
+
search(): void;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
type Args = {
|
|
3
|
+
count: number;
|
|
4
|
+
pageSize: number;
|
|
5
|
+
goToPage: (n: number) => void;
|
|
6
|
+
};
|
|
7
|
+
export default class RoadsignsPagination extends Component<Args> {
|
|
8
|
+
actualPageStart: number;
|
|
9
|
+
actualPageEnd: number;
|
|
10
|
+
get hasNextPage(): boolean;
|
|
11
|
+
get hasPreviousPage(): boolean;
|
|
12
|
+
get count(): number;
|
|
13
|
+
get pageStart(): number;
|
|
14
|
+
get pageEnd(): number;
|
|
15
|
+
onUpdateCount(_element: HTMLElement, [_, pageStart]: [number, number]): void;
|
|
16
|
+
goToPreviousPage(): void;
|
|
17
|
+
goToNextPage(): void;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
type Args = Record<string, never>;
|
|
3
|
+
export default class RoadsignsTable extends Component<Args> {
|
|
4
|
+
selected?: string;
|
|
5
|
+
imageBaseUrl: string;
|
|
6
|
+
constructor(parent: unknown, args: Args);
|
|
7
|
+
selectRow(id: string): void;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ProseController } from '@lblod/ember-rdfa-editor/core/prosemirror';
|
|
3
|
+
type Args = {
|
|
4
|
+
controller: ProseController;
|
|
5
|
+
};
|
|
6
|
+
export default class StandardTemplatePluginCardComponent extends Component<Args> {
|
|
7
|
+
get controller(): ProseController;
|
|
8
|
+
}
|
|
9
|
+
export {};
|