@myrmidon/cadmus-part-general-ui 12.0.2 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/myrmidon-cadmus-part-general-ui.mjs +177 -181
- package/fesm2022/myrmidon-cadmus-part-general-ui.mjs.map +1 -1
- package/index.d.ts +4038 -3
- package/package.json +14 -14
- package/lib/asserted-historical-date/asserted-historical-date.component.d.ts +0 -27
- package/lib/asserted-historical-dates-part/asserted-historical-dates-part.component.d.ts +0 -41
- package/lib/asserted-historical-dates-part.d.ts +0 -167
- package/lib/bib-authors-editor/bib-authors-editor.component.d.ts +0 -23
- package/lib/bibliography-entry/bibliography-entry.component.d.ts +0 -59
- package/lib/bibliography-part/bibliography-part.component.d.ts +0 -41
- package/lib/bibliography-part.d.ts +0 -199
- package/lib/categories-part/categories-part.component.d.ts +0 -26
- package/lib/categories-part.d.ts +0 -60
- package/lib/chronology-fragment/chronology-fragment.component.d.ts +0 -30
- package/lib/chronology-fragment.d.ts +0 -105
- package/lib/chronotopes-part/chronotopes-part.component.d.ts +0 -41
- package/lib/chronotopes-part.d.ts +0 -224
- package/lib/comment-editor/comment-editor.component.d.ts +0 -75
- package/lib/comment-fragment.d.ts +0 -95
- package/lib/comment-part.d.ts +0 -190
- package/lib/decorated-counts-part/decorated-counts-part.component.d.ts +0 -27
- package/lib/decorated-counts-part.d.ts +0 -78
- package/lib/district-location-part/district-location-part.component.d.ts +0 -29
- package/lib/district-location-part.d.ts +0 -88
- package/lib/doc-references-part/doc-references-part.component.d.ts +0 -27
- package/lib/doc-references-part.d.ts +0 -78
- package/lib/external-ids-part/external-ids-part.component.d.ts +0 -32
- package/lib/external-ids-part.d.ts +0 -78
- package/lib/historical-date-part/historical-date-part.component.d.ts +0 -26
- package/lib/historical-date-part.d.ts +0 -146
- package/lib/historical-event-editor/historical-event-editor.component.d.ts +0 -103
- package/lib/historical-events-part/historical-events-part.component.d.ts +0 -75
- package/lib/historical-events-part.d.ts +0 -405
- package/lib/index-keyword/index-keyword.component.d.ts +0 -24
- package/lib/index-keywords-part/index-keywords-part.component.d.ts +0 -34
- package/lib/index-keywords-part.d.ts +0 -88
- package/lib/keywords-part/keywords-part.component.d.ts +0 -30
- package/lib/keywords-part.d.ts +0 -73
- package/lib/metadata-part/metadata-part.component.d.ts +0 -40
- package/lib/metadata-part.d.ts +0 -82
- package/lib/names-part/names-part.component.d.ts +0 -52
- package/lib/names-part.d.ts +0 -127
- package/lib/note-part/note-part.component.d.ts +0 -34
- package/lib/note-part.d.ts +0 -61
- package/lib/physical-measurements-part/physical-measurements-part.component.d.ts +0 -28
- package/lib/physical-measurements-part.d.ts +0 -78
- package/lib/physical-states-part/physical-states-part.component.d.ts +0 -39
- package/lib/physical-states-part.d.ts +0 -84
- package/lib/pin-links-fragment/pin-links-fragment.component.d.ts +0 -41
- package/lib/pin-links-fragment.d.ts +0 -111
- package/lib/pin-links-part/pin-links-part.component.d.ts +0 -41
- package/lib/pin-links-part.d.ts +0 -139
- package/lib/related-entity/related-entity.component.d.ts +0 -44
- package/lib/text-tile/text-tile.component.d.ts +0 -34
- package/lib/tiled-data/tiled-data.component.d.ts +0 -43
- package/lib/tiled-text-part/tiled-text-part.component.d.ts +0 -71
- package/lib/tiled-text-part.d.ts +0 -127
- package/lib/token-text-part/token-text-part.component.d.ts +0 -35
- package/lib/token-text-part.d.ts +0 -85
- package/public-api.d.ts +0 -55
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
import { DocReference } from '@myrmidon/cadmus-refs-doc-references';
|
|
3
|
-
import { HistoricalDateModel } from '@myrmidon/cadmus-refs-historical-date';
|
|
4
|
-
/**
|
|
5
|
-
* The HistoricalDate part model.
|
|
6
|
-
*/
|
|
7
|
-
export interface HistoricalDatePart extends Part {
|
|
8
|
-
date: HistoricalDateModel;
|
|
9
|
-
references?: DocReference[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The type ID used to identify the HistoricalDatePart type.
|
|
13
|
-
*/
|
|
14
|
-
export declare const HISTORICAL_DATE_PART_TYPEID = "it.vedph.historical-date";
|
|
15
|
-
/**
|
|
16
|
-
* JSON schema for the HistoricalDate part. This is used in the editor demo.
|
|
17
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
18
|
-
*/
|
|
19
|
-
export declare const HISTORICAL_DATE_PART_SCHEMA: {
|
|
20
|
-
$schema: string;
|
|
21
|
-
$id: string;
|
|
22
|
-
type: string;
|
|
23
|
-
title: string;
|
|
24
|
-
required: string[];
|
|
25
|
-
properties: {
|
|
26
|
-
timeCreated: {
|
|
27
|
-
type: string;
|
|
28
|
-
pattern: string;
|
|
29
|
-
};
|
|
30
|
-
creatorId: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
timeModified: {
|
|
34
|
-
type: string;
|
|
35
|
-
pattern: string;
|
|
36
|
-
};
|
|
37
|
-
userId: {
|
|
38
|
-
type: string;
|
|
39
|
-
};
|
|
40
|
-
id: {
|
|
41
|
-
type: string;
|
|
42
|
-
pattern: string;
|
|
43
|
-
};
|
|
44
|
-
itemId: {
|
|
45
|
-
type: string;
|
|
46
|
-
pattern: string;
|
|
47
|
-
};
|
|
48
|
-
typeId: {
|
|
49
|
-
type: string;
|
|
50
|
-
pattern: string;
|
|
51
|
-
};
|
|
52
|
-
roleId: {
|
|
53
|
-
type: string[];
|
|
54
|
-
pattern: string;
|
|
55
|
-
};
|
|
56
|
-
date: {
|
|
57
|
-
type: string;
|
|
58
|
-
required: string[];
|
|
59
|
-
properties: {
|
|
60
|
-
a: {
|
|
61
|
-
type: string;
|
|
62
|
-
required: string[];
|
|
63
|
-
properties: {
|
|
64
|
-
value: {
|
|
65
|
-
type: string;
|
|
66
|
-
};
|
|
67
|
-
isCentury: {
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
isSpan: {
|
|
71
|
-
type: string;
|
|
72
|
-
};
|
|
73
|
-
isApproximate: {
|
|
74
|
-
type: string;
|
|
75
|
-
};
|
|
76
|
-
isDubious: {
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
day: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
month: {
|
|
83
|
-
type: string;
|
|
84
|
-
};
|
|
85
|
-
hint: {
|
|
86
|
-
type: string[];
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
b: {
|
|
91
|
-
type: string;
|
|
92
|
-
required: string[];
|
|
93
|
-
properties: {
|
|
94
|
-
value: {
|
|
95
|
-
type: string;
|
|
96
|
-
};
|
|
97
|
-
isCentury: {
|
|
98
|
-
type: string;
|
|
99
|
-
};
|
|
100
|
-
isSpan: {
|
|
101
|
-
type: string;
|
|
102
|
-
};
|
|
103
|
-
isApproximate: {
|
|
104
|
-
type: string;
|
|
105
|
-
};
|
|
106
|
-
isDubious: {
|
|
107
|
-
type: string;
|
|
108
|
-
};
|
|
109
|
-
day: {
|
|
110
|
-
type: string;
|
|
111
|
-
};
|
|
112
|
-
month: {
|
|
113
|
-
type: string;
|
|
114
|
-
};
|
|
115
|
-
hint: {
|
|
116
|
-
type: string[];
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
references: {
|
|
123
|
-
type: string;
|
|
124
|
-
items: {
|
|
125
|
-
anyOf: {
|
|
126
|
-
type: string;
|
|
127
|
-
required: string[];
|
|
128
|
-
properties: {
|
|
129
|
-
type: {
|
|
130
|
-
type: string;
|
|
131
|
-
};
|
|
132
|
-
tag: {
|
|
133
|
-
type: string;
|
|
134
|
-
};
|
|
135
|
-
citation: {
|
|
136
|
-
type: string;
|
|
137
|
-
};
|
|
138
|
-
note: {
|
|
139
|
-
type: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
}[];
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { AssertedChronotope } from '@myrmidon/cadmus-refs-asserted-chronotope';
|
|
3
|
-
import { Assertion } from '@myrmidon/cadmus-refs-assertion';
|
|
4
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
5
|
-
import { HistoricalEvent, RelatedEntity } from '../historical-events-part';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Historical event editor.
|
|
9
|
-
*/
|
|
10
|
-
export declare class HistoricalEventEditorComponent {
|
|
11
|
-
private _editedEntityIndex;
|
|
12
|
-
/**
|
|
13
|
-
* The event being edited.
|
|
14
|
-
*/
|
|
15
|
-
readonly event: import("@angular/core").ModelSignal<HistoricalEvent | undefined>;
|
|
16
|
-
/**
|
|
17
|
-
* Thesaurus event-types (hierarchical).
|
|
18
|
-
*/
|
|
19
|
-
readonly eventTypeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
20
|
-
/**
|
|
21
|
-
* Thesaurus event-tags.
|
|
22
|
-
*/
|
|
23
|
-
readonly eventTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
24
|
-
/**
|
|
25
|
-
* Thesaurus event-relations (pseudo-hierarchical; the
|
|
26
|
-
* separator used is : rather than .).
|
|
27
|
-
*/
|
|
28
|
-
readonly relationEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
29
|
-
/**
|
|
30
|
-
* Thesaurus chronotope-tags.
|
|
31
|
-
*/
|
|
32
|
-
readonly ctTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
33
|
-
/**
|
|
34
|
-
* Thesaurus asserted-id-scopes.
|
|
35
|
-
*/
|
|
36
|
-
readonly idScopeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
37
|
-
/**
|
|
38
|
-
* Thesaurus asserted-id-tags.
|
|
39
|
-
*/
|
|
40
|
-
readonly idTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* Thesaurus assertion-tags.
|
|
43
|
-
*/
|
|
44
|
-
readonly assTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* Thesaurus doc-reference-tags.
|
|
47
|
-
*/
|
|
48
|
-
readonly refTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* Thesaurus doc-reference-types.
|
|
51
|
-
*/
|
|
52
|
-
readonly refTypeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
53
|
-
readonly setTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* The number of event type portions to cut from the event type ID when
|
|
56
|
-
* building the prefix used to filter the corresponding relations IDs.
|
|
57
|
-
* By default this is 0, i.e. the whole type ID (plus a final :) is
|
|
58
|
-
* used as prefix. For instance, the ID "person.birth" generates prefix
|
|
59
|
-
* "person:birth:". The portions of an ID are defined by splitting it at
|
|
60
|
-
* each dot: so, should this property be 1, we would split the ID into
|
|
61
|
-
* "person" and "birth", remove the last 1 tail(s), thus getting "person",
|
|
62
|
-
* join back the portions and append a final colon, generating "person:".
|
|
63
|
-
*/
|
|
64
|
-
readonly eventTypeTailCut: import("@angular/core").InputSignal<number>;
|
|
65
|
-
readonly pinByTypeMode: import("@angular/core").InputSignal<boolean | undefined>;
|
|
66
|
-
readonly canSwitchMode: import("@angular/core").InputSignal<boolean | undefined>;
|
|
67
|
-
readonly canEditTarget: import("@angular/core").InputSignal<boolean | undefined>;
|
|
68
|
-
/**
|
|
69
|
-
* True to disable ID lookup via scoped pin lookup.
|
|
70
|
-
*/
|
|
71
|
-
readonly noLookup: import("@angular/core").InputSignal<boolean | undefined>;
|
|
72
|
-
readonly editorClose: import("@angular/core").OutputEmitterRef<void>;
|
|
73
|
-
eid: FormControl<string | null>;
|
|
74
|
-
type: FormControl<string | null>;
|
|
75
|
-
tag: FormControl<string | null>;
|
|
76
|
-
description: FormControl<string | null>;
|
|
77
|
-
note: FormControl<string | null>;
|
|
78
|
-
relatedEntities: FormControl<RelatedEntity[]>;
|
|
79
|
-
chronotopes: FormControl<AssertedChronotope[]>;
|
|
80
|
-
hasAssertion: FormControl<boolean>;
|
|
81
|
-
assertion: FormControl<Assertion | null>;
|
|
82
|
-
form: FormGroup;
|
|
83
|
-
currentRelEntries: ThesaurusEntry[];
|
|
84
|
-
editedEntity?: RelatedEntity;
|
|
85
|
-
constructor(formBuilder: FormBuilder);
|
|
86
|
-
renderLabel(label: string): string;
|
|
87
|
-
private updateRelEntries;
|
|
88
|
-
private getTypeEntryPrefix;
|
|
89
|
-
onTypeEntryChange(entry: ThesaurusEntry): void;
|
|
90
|
-
private updateForm;
|
|
91
|
-
private getModel;
|
|
92
|
-
onChronotopesChange(chronotope: AssertedChronotope[]): void;
|
|
93
|
-
onAssertionChange(assertion: Assertion | undefined): void;
|
|
94
|
-
addEntity(): void;
|
|
95
|
-
editEntity(entity: RelatedEntity, index: number): void;
|
|
96
|
-
onEntityChange(entity: RelatedEntity): void;
|
|
97
|
-
closeEntity(): void;
|
|
98
|
-
deleteEntity(index: number): void;
|
|
99
|
-
cancel(): void;
|
|
100
|
-
save(): void;
|
|
101
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HistoricalEventEditorComponent, never>;
|
|
102
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HistoricalEventEditorComponent, "cadmus-historical-event-editor", never, { "event": { "alias": "event"; "required": false; "isSignal": true; }; "eventTypeEntries": { "alias": "eventTypeEntries"; "required": false; "isSignal": true; }; "eventTagEntries": { "alias": "eventTagEntries"; "required": false; "isSignal": true; }; "relationEntries": { "alias": "relationEntries"; "required": false; "isSignal": true; }; "ctTagEntries": { "alias": "ctTagEntries"; "required": false; "isSignal": true; }; "idScopeEntries": { "alias": "idScopeEntries"; "required": false; "isSignal": true; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; "isSignal": true; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; "isSignal": true; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; "isSignal": true; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; "isSignal": true; }; "setTagEntries": { "alias": "setTagEntries"; "required": false; "isSignal": true; }; "eventTypeTailCut": { "alias": "eventTypeTailCut"; "required": false; "isSignal": true; }; "pinByTypeMode": { "alias": "pinByTypeMode"; "required": false; "isSignal": true; }; "canSwitchMode": { "alias": "canSwitchMode"; "required": false; "isSignal": true; }; "canEditTarget": { "alias": "canEditTarget"; "required": false; "isSignal": true; }; "noLookup": { "alias": "noLookup"; "required": false; "isSignal": true; }; }, { "event": "eventChange"; "editorClose": "editorClose"; }, never, never, true, never>;
|
|
103
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, FormBuilder, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { DialogService } from '@myrmidon/ngx-mat-tools';
|
|
4
|
-
import { AuthJwtService } from '@myrmidon/auth-jwt-login';
|
|
5
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
6
|
-
import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
|
|
7
|
-
import { HistoricalEvent, HistoricalEventsPart } from '../historical-events-part';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Historical events part.
|
|
11
|
-
* Thesauri: event-types, event-tags, event-relations, chronotope-tags,
|
|
12
|
-
* asserted-id-scopes, asserted-id-tags, assertion-tags, doc-reference-tags,
|
|
13
|
-
* doc-reference-types, pin-link-scopes, pin-link-tags, pin-link-settings.
|
|
14
|
-
*/
|
|
15
|
-
export declare class HistoricalEventsPartComponent extends ModelEditorComponentBase<HistoricalEventsPart> implements OnInit {
|
|
16
|
-
private _dialogService;
|
|
17
|
-
editedEventIndex: number;
|
|
18
|
-
editedEvent: HistoricalEvent | undefined;
|
|
19
|
-
pinByTypeMode?: boolean;
|
|
20
|
-
canSwitchMode?: boolean;
|
|
21
|
-
canEditTarget?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Thesaurus event-types.
|
|
24
|
-
*/
|
|
25
|
-
eventTypeEntries: ThesaurusEntry[] | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Thesaurus event-tags.
|
|
28
|
-
*/
|
|
29
|
-
eventTagEntries: ThesaurusEntry[] | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Thesaurus event-relations.
|
|
32
|
-
*/
|
|
33
|
-
relationEntries: ThesaurusEntry[] | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Thesaurus chronotope-tags.
|
|
36
|
-
*/
|
|
37
|
-
ctTagEntries: ThesaurusEntry[] | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Thesaurus assertion-tags.
|
|
40
|
-
*/
|
|
41
|
-
assTagEntries: ThesaurusEntry[] | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Thesaurus doc-reference-tags.
|
|
44
|
-
*/
|
|
45
|
-
refTagEntries: ThesaurusEntry[] | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Thesaurus doc-reference-types.
|
|
48
|
-
*/
|
|
49
|
-
refTypeEntries: ThesaurusEntry[] | undefined;
|
|
50
|
-
idScopeEntries?: ThesaurusEntry[];
|
|
51
|
-
idTagEntries?: ThesaurusEntry[];
|
|
52
|
-
events: FormControl<HistoricalEvent[]>;
|
|
53
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder, _dialogService: DialogService);
|
|
54
|
-
ngOnInit(): void;
|
|
55
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
56
|
-
/**
|
|
57
|
-
* Load settings from thesaurus entries.
|
|
58
|
-
*
|
|
59
|
-
* @param entries The thesaurus entries if any.
|
|
60
|
-
*/
|
|
61
|
-
private loadSettings;
|
|
62
|
-
private updateThesauri;
|
|
63
|
-
private updateForm;
|
|
64
|
-
protected onDataSet(data?: EditedObject<HistoricalEventsPart>): void;
|
|
65
|
-
protected getValue(): HistoricalEventsPart;
|
|
66
|
-
closeEvent(): void;
|
|
67
|
-
addEvent(): void;
|
|
68
|
-
editEvent(event: HistoricalEvent, index: number): void;
|
|
69
|
-
onEventSave(event: HistoricalEvent): void;
|
|
70
|
-
deleteEvent(index: number): void;
|
|
71
|
-
moveEventUp(index: number): void;
|
|
72
|
-
moveEventDown(index: number): void;
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HistoricalEventsPartComponent, never>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HistoricalEventsPartComponent, "cadmus-historical-events-part", never, {}, {}, never, never, true, never>;
|
|
75
|
-
}
|