@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.
Files changed (60) hide show
  1. package/fesm2022/myrmidon-cadmus-part-general-ui.mjs +177 -181
  2. package/fesm2022/myrmidon-cadmus-part-general-ui.mjs.map +1 -1
  3. package/index.d.ts +4038 -3
  4. package/package.json +14 -14
  5. package/lib/asserted-historical-date/asserted-historical-date.component.d.ts +0 -27
  6. package/lib/asserted-historical-dates-part/asserted-historical-dates-part.component.d.ts +0 -41
  7. package/lib/asserted-historical-dates-part.d.ts +0 -167
  8. package/lib/bib-authors-editor/bib-authors-editor.component.d.ts +0 -23
  9. package/lib/bibliography-entry/bibliography-entry.component.d.ts +0 -59
  10. package/lib/bibliography-part/bibliography-part.component.d.ts +0 -41
  11. package/lib/bibliography-part.d.ts +0 -199
  12. package/lib/categories-part/categories-part.component.d.ts +0 -26
  13. package/lib/categories-part.d.ts +0 -60
  14. package/lib/chronology-fragment/chronology-fragment.component.d.ts +0 -30
  15. package/lib/chronology-fragment.d.ts +0 -105
  16. package/lib/chronotopes-part/chronotopes-part.component.d.ts +0 -41
  17. package/lib/chronotopes-part.d.ts +0 -224
  18. package/lib/comment-editor/comment-editor.component.d.ts +0 -75
  19. package/lib/comment-fragment.d.ts +0 -95
  20. package/lib/comment-part.d.ts +0 -190
  21. package/lib/decorated-counts-part/decorated-counts-part.component.d.ts +0 -27
  22. package/lib/decorated-counts-part.d.ts +0 -78
  23. package/lib/district-location-part/district-location-part.component.d.ts +0 -29
  24. package/lib/district-location-part.d.ts +0 -88
  25. package/lib/doc-references-part/doc-references-part.component.d.ts +0 -27
  26. package/lib/doc-references-part.d.ts +0 -78
  27. package/lib/external-ids-part/external-ids-part.component.d.ts +0 -32
  28. package/lib/external-ids-part.d.ts +0 -78
  29. package/lib/historical-date-part/historical-date-part.component.d.ts +0 -26
  30. package/lib/historical-date-part.d.ts +0 -146
  31. package/lib/historical-event-editor/historical-event-editor.component.d.ts +0 -103
  32. package/lib/historical-events-part/historical-events-part.component.d.ts +0 -75
  33. package/lib/historical-events-part.d.ts +0 -405
  34. package/lib/index-keyword/index-keyword.component.d.ts +0 -24
  35. package/lib/index-keywords-part/index-keywords-part.component.d.ts +0 -34
  36. package/lib/index-keywords-part.d.ts +0 -88
  37. package/lib/keywords-part/keywords-part.component.d.ts +0 -30
  38. package/lib/keywords-part.d.ts +0 -73
  39. package/lib/metadata-part/metadata-part.component.d.ts +0 -40
  40. package/lib/metadata-part.d.ts +0 -82
  41. package/lib/names-part/names-part.component.d.ts +0 -52
  42. package/lib/names-part.d.ts +0 -127
  43. package/lib/note-part/note-part.component.d.ts +0 -34
  44. package/lib/note-part.d.ts +0 -61
  45. package/lib/physical-measurements-part/physical-measurements-part.component.d.ts +0 -28
  46. package/lib/physical-measurements-part.d.ts +0 -78
  47. package/lib/physical-states-part/physical-states-part.component.d.ts +0 -39
  48. package/lib/physical-states-part.d.ts +0 -84
  49. package/lib/pin-links-fragment/pin-links-fragment.component.d.ts +0 -41
  50. package/lib/pin-links-fragment.d.ts +0 -111
  51. package/lib/pin-links-part/pin-links-part.component.d.ts +0 -41
  52. package/lib/pin-links-part.d.ts +0 -139
  53. package/lib/related-entity/related-entity.component.d.ts +0 -44
  54. package/lib/text-tile/text-tile.component.d.ts +0 -34
  55. package/lib/tiled-data/tiled-data.component.d.ts +0 -43
  56. package/lib/tiled-text-part/tiled-text-part.component.d.ts +0 -71
  57. package/lib/tiled-text-part.d.ts +0 -127
  58. package/lib/token-text-part/token-text-part.component.d.ts +0 -35
  59. package/lib/token-text-part.d.ts +0 -85
  60. package/public-api.d.ts +0 -55
@@ -1,60 +0,0 @@
1
- import { Part } from '@myrmidon/cadmus-core';
2
- /**
3
- * The Categories part model.
4
- */
5
- export interface CategoriesPart extends Part {
6
- categories: string[];
7
- }
8
- /**
9
- * The type ID used to identify the CategoriesPart type.
10
- */
11
- export declare const CATEGORIES_PART_TYPEID = "it.vedph.categories";
12
- /**
13
- * JSON schema for the Categories part. This is used in the editor demo.
14
- * You can use the JSON schema tool at https://jsonschema.net/.
15
- */
16
- export declare const CATEGORIES_PART_SCHEMA: {
17
- $schema: string;
18
- $id: string;
19
- type: string;
20
- title: string;
21
- required: string[];
22
- properties: {
23
- timeCreated: {
24
- type: string;
25
- pattern: string;
26
- };
27
- creatorId: {
28
- type: string;
29
- };
30
- timeModified: {
31
- type: string;
32
- pattern: string;
33
- };
34
- userId: {
35
- type: string;
36
- };
37
- id: {
38
- type: string;
39
- pattern: string;
40
- };
41
- itemId: {
42
- type: string;
43
- pattern: string;
44
- };
45
- typeId: {
46
- type: string;
47
- pattern: string;
48
- };
49
- roleId: {
50
- type: string[];
51
- pattern: string;
52
- };
53
- categories: {
54
- type: string;
55
- items: {
56
- type: string;
57
- };
58
- };
59
- };
60
- };
@@ -1,30 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
3
- import { FormControl, FormBuilder, UntypedFormGroup, FormGroup } from '@angular/forms';
4
- import { AuthJwtService } from '@myrmidon/auth-jwt-login';
5
- import { ThesaurusEntry } from '@myrmidon/cadmus-core';
6
- import { HistoricalDateModel } from '@myrmidon/cadmus-refs-historical-date';
7
- import { ChronologyFragment } from '../chronology-fragment';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Chronology fragment editor component.
11
- * Thesauri: "chronology-tags" when you want to use a closed set of tags.
12
- */
13
- export declare class ChronologyFragmentComponent extends ModelEditorComponentBase<ChronologyFragment> implements OnInit {
14
- tagEntries?: ThesaurusEntry[];
15
- initialDate: HistoricalDateModel | undefined;
16
- date: FormControl<HistoricalDateModel | null>;
17
- tag: FormControl<string | null>;
18
- label: FormControl<string | null>;
19
- eventId: FormControl<string | null>;
20
- constructor(authService: AuthJwtService, formBuilder: FormBuilder);
21
- ngOnInit(): void;
22
- protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
23
- private updateThesauri;
24
- private updateForm;
25
- protected onDataSet(data?: EditedObject<ChronologyFragment>): void;
26
- onDateChange(date: HistoricalDateModel): void;
27
- protected getValue(): ChronologyFragment;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ChronologyFragmentComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ChronologyFragmentComponent, "cadmus-chronology-fragment", never, {}, {}, never, never, true, never>;
30
- }
@@ -1,105 +0,0 @@
1
- import { Fragment } from '@myrmidon/cadmus-core';
2
- import { HistoricalDateModel } from '@myrmidon/cadmus-refs-historical-date';
3
- /**
4
- * The chronology layer fragment server model.
5
- */
6
- export interface ChronologyFragment extends Fragment {
7
- date: HistoricalDateModel;
8
- label?: string;
9
- tag?: string;
10
- eventId?: string;
11
- }
12
- export declare const CHRONOLOGY_FRAGMENT_TYPEID = "fr.it.vedph.chronology";
13
- export declare const CHRONOLOGY_FRAGMENT_SCHEMA: {
14
- definitions: {};
15
- $schema: string;
16
- $id: string;
17
- type: string;
18
- title: string;
19
- required: string[];
20
- properties: {
21
- location: {
22
- $id: string;
23
- type: string;
24
- };
25
- baseText: {
26
- $id: string;
27
- type: string;
28
- };
29
- date: {
30
- type: string;
31
- required: string[];
32
- properties: {
33
- a: {
34
- type: string;
35
- required: string[];
36
- properties: {
37
- value: {
38
- type: string;
39
- };
40
- isCentury: {
41
- type: string;
42
- };
43
- isSpan: {
44
- type: string;
45
- };
46
- isApproximate: {
47
- type: string;
48
- };
49
- isDubious: {
50
- type: string;
51
- };
52
- day: {
53
- type: string;
54
- };
55
- month: {
56
- type: string;
57
- };
58
- hint: {
59
- type: string[];
60
- };
61
- };
62
- };
63
- b: {
64
- type: string;
65
- required: string[];
66
- properties: {
67
- value: {
68
- type: string;
69
- };
70
- isCentury: {
71
- type: string;
72
- };
73
- isSpan: {
74
- type: string;
75
- };
76
- isApproximate: {
77
- type: string;
78
- };
79
- isDubious: {
80
- type: string;
81
- };
82
- day: {
83
- type: string;
84
- };
85
- month: {
86
- type: string;
87
- };
88
- hint: {
89
- type: string[];
90
- };
91
- };
92
- };
93
- };
94
- label: {
95
- type: string;
96
- };
97
- tag: {
98
- type: string;
99
- };
100
- eventId: {
101
- type: string;
102
- };
103
- };
104
- };
105
- };
@@ -1,41 +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 { AssertedChronotope } from '@myrmidon/cadmus-refs-asserted-chronotope';
6
- import { ThesaurusEntry } from '@myrmidon/cadmus-core';
7
- import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
8
- import { ChronotopesPart } from '../chronotopes-part';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * Chronotopes part editor component.
12
- * Thesauri: chronotope-place-tags, chronotope-assertion-tags,
13
- * doc-reference-types, doc-reference-tags (all optional).
14
- */
15
- export declare class ChronotopesPartComponent extends ModelEditorComponentBase<ChronotopesPart> implements OnInit {
16
- private _dialogService;
17
- private _editedChronotopeIndex;
18
- editedChronotope: AssertedChronotope | undefined;
19
- tagEntries: ThesaurusEntry[] | undefined;
20
- assTagEntries?: ThesaurusEntry[];
21
- refTypeEntries: ThesaurusEntry[] | undefined;
22
- refTagEntries: ThesaurusEntry[] | undefined;
23
- chronotopes: FormControl<AssertedChronotope[]>;
24
- constructor(authService: AuthJwtService, formBuilder: FormBuilder, _dialogService: DialogService);
25
- ngOnInit(): void;
26
- protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
27
- private updateThesauri;
28
- private updateForm;
29
- protected onDataSet(data?: EditedObject<ChronotopesPart>): void;
30
- protected getValue(): ChronotopesPart;
31
- addChronotope(): void;
32
- editChronotope(chronotope: AssertedChronotope, index: number): void;
33
- onChronotopeChange(chronotope: AssertedChronotope): void;
34
- saveChronotope(): void;
35
- closeChronotope(): void;
36
- deleteChronotope(index: number): void;
37
- moveChronotopeUp(index: number): void;
38
- moveChronotopeDown(index: number): void;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<ChronotopesPartComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<ChronotopesPartComponent, "cadmus-chronotopes-part", never, {}, {}, never, never, true, never>;
41
- }
@@ -1,224 +0,0 @@
1
- import { Part } from '@myrmidon/cadmus-core';
2
- import { AssertedChronotope } from '@myrmidon/cadmus-refs-asserted-chronotope';
3
- /**
4
- * The chronotopes part model.
5
- */
6
- export interface ChronotopesPart extends Part {
7
- chronotopes: AssertedChronotope[];
8
- }
9
- /**
10
- * The type ID used to identify the ChronotopesPart type.
11
- */
12
- export declare const CHRONOTOPES_PART_TYPEID = "it.vedph.chronotopes";
13
- /**
14
- * JSON schema for the Chronotopes part.
15
- * You can use the JSON schema tool at https://jsonschema.net/.
16
- */
17
- export declare const Chronotopes_PART_SCHEMA: {
18
- $schema: string;
19
- $id: string;
20
- type: string;
21
- title: string;
22
- required: string[];
23
- properties: {
24
- timeCreated: {
25
- type: string;
26
- pattern: string;
27
- };
28
- creatorId: {
29
- type: string;
30
- };
31
- timeModified: {
32
- type: string;
33
- pattern: string;
34
- };
35
- userId: {
36
- type: string;
37
- };
38
- id: {
39
- type: string;
40
- pattern: string;
41
- };
42
- itemId: {
43
- type: string;
44
- pattern: string;
45
- };
46
- typeId: {
47
- type: string;
48
- pattern: string;
49
- };
50
- roleId: {
51
- type: string[];
52
- pattern: string;
53
- };
54
- chronotopes: {
55
- type: string;
56
- items: {
57
- anyOf: {
58
- type: string;
59
- properties: {
60
- chronotope: {
61
- place: {
62
- type: string;
63
- required: string[];
64
- properties: {
65
- tag: {
66
- type: string;
67
- };
68
- value: {
69
- type: string;
70
- };
71
- assertion: {
72
- type: string;
73
- required: string[];
74
- properties: {
75
- tag: {
76
- type: string;
77
- };
78
- rank: {
79
- type: string;
80
- };
81
- note: {
82
- type: string;
83
- };
84
- references: {
85
- type: string;
86
- items: {
87
- anyOf: {
88
- type: string;
89
- required: string[];
90
- properties: {
91
- type: {
92
- type: string;
93
- };
94
- tag: {
95
- type: string;
96
- };
97
- citation: {
98
- type: string;
99
- };
100
- note: {
101
- type: string;
102
- };
103
- };
104
- }[];
105
- };
106
- };
107
- };
108
- };
109
- };
110
- };
111
- date: {
112
- type: string;
113
- required: string[];
114
- properties: {
115
- tag: {
116
- type: string;
117
- };
118
- a: {
119
- type: string;
120
- required: string[];
121
- properties: {
122
- value: {
123
- type: string;
124
- };
125
- isCentury: {
126
- type: string;
127
- };
128
- isSpan: {
129
- type: string;
130
- };
131
- isApproximate: {
132
- type: string;
133
- };
134
- isDubious: {
135
- type: string;
136
- };
137
- day: {
138
- type: string;
139
- };
140
- month: {
141
- type: string;
142
- };
143
- hint: {
144
- type: string[];
145
- };
146
- };
147
- };
148
- b: {
149
- type: string;
150
- required: string[];
151
- properties: {
152
- value: {
153
- type: string;
154
- };
155
- isCentury: {
156
- type: string;
157
- };
158
- isSpan: {
159
- type: string;
160
- };
161
- isApproximate: {
162
- type: string;
163
- };
164
- isDubious: {
165
- type: string;
166
- };
167
- day: {
168
- type: string;
169
- };
170
- month: {
171
- type: string;
172
- };
173
- hint: {
174
- type: string[];
175
- };
176
- };
177
- };
178
- assertion: {
179
- type: string;
180
- required: string[];
181
- properties: {
182
- tag: {
183
- type: string;
184
- };
185
- rank: {
186
- type: string;
187
- };
188
- note: {
189
- type: string;
190
- };
191
- references: {
192
- type: string;
193
- items: {
194
- anyOf: {
195
- type: string;
196
- required: string[];
197
- properties: {
198
- type: {
199
- type: string;
200
- };
201
- tag: {
202
- type: string;
203
- };
204
- citation: {
205
- type: string;
206
- };
207
- note: {
208
- type: string;
209
- };
210
- };
211
- }[];
212
- };
213
- };
214
- };
215
- };
216
- };
217
- };
218
- };
219
- };
220
- }[];
221
- };
222
- };
223
- };
224
- };
@@ -1,75 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { FormControl, FormBuilder, FormArray, FormGroup, UntypedFormGroup } from '@angular/forms';
3
- import { AuthJwtService } from '@myrmidon/auth-jwt-login';
4
- import { DocReference } from '@myrmidon/cadmus-refs-doc-references';
5
- import { AssertedCompositeId } from '@myrmidon/cadmus-refs-asserted-ids';
6
- import { CadmusTextEdBindings, CadmusTextEdService } from '@myrmidon/cadmus-text-ed';
7
- import { ThesaurusEntry } from '@myrmidon/cadmus-core';
8
- import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
9
- import { CommentPart } from '../comment-part';
10
- import { IndexKeyword } from '../index-keywords-part';
11
- import { CommentFragment } from '../comment-fragment';
12
- import * as i0 from "@angular/core";
13
- /**
14
- * Comment part/fragment editor component.
15
- * Thesauri: comment-tags, doc-reference-tags, doc-reference-types, comment-categories,
16
- * languages, keyword-indexes, keyword-tags, comment-id-scopes, comment-id-tags,
17
- * assertion-tags, pin-link-settings.
18
- */
19
- export declare class CommentEditorComponent extends ModelEditorComponentBase<CommentPart | CommentFragment> implements OnInit, OnDestroy {
20
- private _editService;
21
- private _editorBindings?;
22
- private readonly _disposables;
23
- private _editorModel?;
24
- private _editor?;
25
- tag: FormControl<string | null>;
26
- text: FormControl<string | null>;
27
- references: FormControl<DocReference[]>;
28
- links: FormControl<AssertedCompositeId[]>;
29
- categories: FormControl<ThesaurusEntry[]>;
30
- keywords: FormArray;
31
- comTagEntries: ThesaurusEntry[] | undefined;
32
- refTagEntries: ThesaurusEntry[] | undefined;
33
- refTypeEntries: ThesaurusEntry[] | undefined;
34
- catEntries: ThesaurusEntry[] | undefined;
35
- langEntries: ThesaurusEntry[] | undefined;
36
- idxEntries: ThesaurusEntry[] | undefined;
37
- keyTagEntries: ThesaurusEntry[] | undefined;
38
- idScopeEntries: ThesaurusEntry[] | undefined;
39
- idTagEntries: ThesaurusEntry[] | undefined;
40
- assTagEntries: ThesaurusEntry[] | undefined;
41
- setTagEntries?: ThesaurusEntry[];
42
- pinByTypeMode?: boolean;
43
- canSwitchMode?: boolean;
44
- canEditTarget?: boolean;
45
- constructor(authService: AuthJwtService, formBuilder: FormBuilder, _editService: CadmusTextEdService, _editorBindings?: CadmusTextEdBindings | undefined);
46
- ngOnInit(): void;
47
- ngOnDestroy(): void;
48
- private applyEdit;
49
- onCreateEditor(editor: monaco.editor.IEditor): void;
50
- protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
51
- /**
52
- * Load settings from thesaurus entries.
53
- *
54
- * @param entries The thesaurus entries if any.
55
- */
56
- private loadSettings;
57
- private updateThesauri;
58
- private updateForm;
59
- protected onDataSet(data?: EditedObject<CommentPart | CommentFragment>): void;
60
- private updateComment;
61
- protected getValue(): CommentPart | CommentFragment;
62
- onReferencesChange(references: DocReference[]): void;
63
- onIdsChange(ids: AssertedCompositeId[]): void;
64
- onCategoryChange(entry: ThesaurusEntry): void;
65
- removeCategory(index: number): void;
66
- renderLabel(label: string): string;
67
- private getKeywordGroup;
68
- addKeyword(keyword?: IndexKeyword): void;
69
- removeKeyword(index: number): void;
70
- moveKeywordUp(index: number): void;
71
- moveKeywordDown(index: number): void;
72
- private getKeywords;
73
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentEditorComponent, [null, null, null, { optional: true; }]>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentEditorComponent, "cadmus-comment-editor", never, {}, {}, never, never, true, never>;
75
- }
@@ -1,95 +0,0 @@
1
- import { Fragment } from '@myrmidon/cadmus-core';
2
- import { Comment } from './comment-part';
3
- /**
4
- * The comment layer fragment server model.
5
- */
6
- export interface CommentFragment extends Fragment, Comment {
7
- }
8
- export declare const COMMENT_FRAGMENT_TYPEID = "fr.it.vedph.comment";
9
- export declare const COMMENT_FRAGMENT_SCHEMA: {
10
- definitions: {};
11
- $schema: string;
12
- $id: string;
13
- type: string;
14
- title: string;
15
- required: string[];
16
- properties: {
17
- location: {
18
- $id: string;
19
- type: string;
20
- };
21
- baseText: {
22
- $id: string;
23
- type: string;
24
- };
25
- text: {
26
- type: string;
27
- };
28
- tag: {
29
- type: string[];
30
- };
31
- references: {
32
- type: string;
33
- items: {
34
- anyOf: {
35
- type: string;
36
- required: string[];
37
- properties: {
38
- type: {
39
- type: string;
40
- };
41
- tag: {
42
- type: string;
43
- };
44
- citation: {
45
- type: string;
46
- };
47
- note: {
48
- type: string;
49
- };
50
- };
51
- }[];
52
- };
53
- };
54
- externalIds: {
55
- type: string;
56
- items: {
57
- anyOf: {
58
- type: string;
59
- }[];
60
- };
61
- };
62
- categories: {
63
- type: string;
64
- items: {
65
- anyOf: {
66
- type: string;
67
- }[];
68
- };
69
- };
70
- keywords: {
71
- type: string;
72
- items: {
73
- type: string;
74
- required: string[];
75
- properties: {
76
- indexId: {
77
- type: string;
78
- };
79
- language: {
80
- type: string;
81
- };
82
- value: {
83
- type: string;
84
- };
85
- note: {
86
- type: string;
87
- };
88
- tag: {
89
- type: string;
90
- };
91
- };
92
- };
93
- };
94
- };
95
- };