@myrmidon/cadmus-part-general-ui 12.0.2 → 13.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 +118 -118
- 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,405 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
import { AssertedChronotope } from '@myrmidon/cadmus-refs-asserted-chronotope';
|
|
3
|
-
import { AssertedCompositeId } from '@myrmidon/cadmus-refs-asserted-ids';
|
|
4
|
-
import { Assertion } from '@myrmidon/cadmus-refs-assertion';
|
|
5
|
-
/**
|
|
6
|
-
* The historical events part model.
|
|
7
|
-
*/
|
|
8
|
-
export interface HistoricalEventsPart extends Part {
|
|
9
|
-
events: HistoricalEvent[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Any entity related to an event in the EventsPart.
|
|
13
|
-
*/
|
|
14
|
-
export interface RelatedEntity {
|
|
15
|
-
relation: string;
|
|
16
|
-
id: AssertedCompositeId;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* An event in the EventsPart.
|
|
20
|
-
*/
|
|
21
|
-
export interface HistoricalEvent {
|
|
22
|
-
eid: string;
|
|
23
|
-
type: string;
|
|
24
|
-
tag?: string;
|
|
25
|
-
chronotopes?: AssertedChronotope[];
|
|
26
|
-
assertion?: Assertion;
|
|
27
|
-
description?: string;
|
|
28
|
-
relatedEntities?: RelatedEntity[];
|
|
29
|
-
note?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* The type ID used to identify the EventsPart type.
|
|
33
|
-
*/
|
|
34
|
-
export declare const HISTORICAL_EVENTS_PART_TYPEID = "it.vedph.historical-events";
|
|
35
|
-
/**
|
|
36
|
-
* JSON schema for the Events part.
|
|
37
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
38
|
-
*/
|
|
39
|
-
export declare const HISTORICAL_EVENTS_PART_SCHEMA: {
|
|
40
|
-
$schema: string;
|
|
41
|
-
$id: string;
|
|
42
|
-
type: string;
|
|
43
|
-
title: string;
|
|
44
|
-
required: string[];
|
|
45
|
-
properties: {
|
|
46
|
-
timeCreated: {
|
|
47
|
-
type: string;
|
|
48
|
-
pattern: string;
|
|
49
|
-
};
|
|
50
|
-
creatorId: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
timeModified: {
|
|
54
|
-
type: string;
|
|
55
|
-
pattern: string;
|
|
56
|
-
};
|
|
57
|
-
userId: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
id: {
|
|
61
|
-
type: string;
|
|
62
|
-
pattern: string;
|
|
63
|
-
};
|
|
64
|
-
itemId: {
|
|
65
|
-
type: string;
|
|
66
|
-
pattern: string;
|
|
67
|
-
};
|
|
68
|
-
typeId: {
|
|
69
|
-
type: string;
|
|
70
|
-
pattern: string;
|
|
71
|
-
};
|
|
72
|
-
roleId: {
|
|
73
|
-
type: string[];
|
|
74
|
-
pattern: string;
|
|
75
|
-
};
|
|
76
|
-
events: {
|
|
77
|
-
type: string;
|
|
78
|
-
items: {
|
|
79
|
-
anyOf: {
|
|
80
|
-
type: string;
|
|
81
|
-
required: string[];
|
|
82
|
-
properties: {
|
|
83
|
-
eid: {
|
|
84
|
-
type: string;
|
|
85
|
-
};
|
|
86
|
-
type: {
|
|
87
|
-
type: string;
|
|
88
|
-
};
|
|
89
|
-
tag: {
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
chronotopes: {
|
|
93
|
-
type: string;
|
|
94
|
-
items: {
|
|
95
|
-
anyOf: {
|
|
96
|
-
place: {
|
|
97
|
-
type: string;
|
|
98
|
-
required: string[];
|
|
99
|
-
properties: {
|
|
100
|
-
tag: {
|
|
101
|
-
type: string;
|
|
102
|
-
};
|
|
103
|
-
value: {
|
|
104
|
-
type: string;
|
|
105
|
-
};
|
|
106
|
-
assertion: {
|
|
107
|
-
type: string;
|
|
108
|
-
required: string[];
|
|
109
|
-
properties: {
|
|
110
|
-
tag: {
|
|
111
|
-
type: string;
|
|
112
|
-
};
|
|
113
|
-
rank: {
|
|
114
|
-
type: string;
|
|
115
|
-
};
|
|
116
|
-
note: {
|
|
117
|
-
type: string;
|
|
118
|
-
};
|
|
119
|
-
references: {
|
|
120
|
-
type: string;
|
|
121
|
-
items: {
|
|
122
|
-
anyOf: {
|
|
123
|
-
type: string;
|
|
124
|
-
required: string[];
|
|
125
|
-
properties: {
|
|
126
|
-
type: {
|
|
127
|
-
type: string;
|
|
128
|
-
};
|
|
129
|
-
tag: {
|
|
130
|
-
type: string;
|
|
131
|
-
};
|
|
132
|
-
citation: {
|
|
133
|
-
type: string;
|
|
134
|
-
};
|
|
135
|
-
note: {
|
|
136
|
-
type: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
}[];
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
date: {
|
|
147
|
-
type: string;
|
|
148
|
-
required: string[];
|
|
149
|
-
properties: {
|
|
150
|
-
tag: {
|
|
151
|
-
type: string;
|
|
152
|
-
};
|
|
153
|
-
date: {
|
|
154
|
-
type: string;
|
|
155
|
-
required: string[];
|
|
156
|
-
properties: {
|
|
157
|
-
a: {
|
|
158
|
-
type: string;
|
|
159
|
-
required: string[];
|
|
160
|
-
properties: {
|
|
161
|
-
value: {
|
|
162
|
-
type: string;
|
|
163
|
-
};
|
|
164
|
-
isCentury: {
|
|
165
|
-
type: string;
|
|
166
|
-
};
|
|
167
|
-
isSpan: {
|
|
168
|
-
type: string;
|
|
169
|
-
};
|
|
170
|
-
isApproximate: {
|
|
171
|
-
type: string;
|
|
172
|
-
};
|
|
173
|
-
isDubious: {
|
|
174
|
-
type: string;
|
|
175
|
-
};
|
|
176
|
-
day: {
|
|
177
|
-
type: string;
|
|
178
|
-
};
|
|
179
|
-
month: {
|
|
180
|
-
type: string;
|
|
181
|
-
};
|
|
182
|
-
hint: {
|
|
183
|
-
type: string[];
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
b: {
|
|
188
|
-
type: string;
|
|
189
|
-
required: string[];
|
|
190
|
-
properties: {
|
|
191
|
-
value: {
|
|
192
|
-
type: string;
|
|
193
|
-
};
|
|
194
|
-
isCentury: {
|
|
195
|
-
type: string;
|
|
196
|
-
};
|
|
197
|
-
isSpan: {
|
|
198
|
-
type: string;
|
|
199
|
-
};
|
|
200
|
-
isApproximate: {
|
|
201
|
-
type: string;
|
|
202
|
-
};
|
|
203
|
-
isDubious: {
|
|
204
|
-
type: string;
|
|
205
|
-
};
|
|
206
|
-
day: {
|
|
207
|
-
type: string;
|
|
208
|
-
};
|
|
209
|
-
month: {
|
|
210
|
-
type: string;
|
|
211
|
-
};
|
|
212
|
-
hint: {
|
|
213
|
-
type: string[];
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
assertion: {
|
|
220
|
-
type: string;
|
|
221
|
-
required: string[];
|
|
222
|
-
properties: {
|
|
223
|
-
tag: {
|
|
224
|
-
type: string;
|
|
225
|
-
};
|
|
226
|
-
rank: {
|
|
227
|
-
type: string;
|
|
228
|
-
};
|
|
229
|
-
note: {
|
|
230
|
-
type: string;
|
|
231
|
-
};
|
|
232
|
-
references: {
|
|
233
|
-
type: string;
|
|
234
|
-
items: {
|
|
235
|
-
anyOf: {
|
|
236
|
-
type: string;
|
|
237
|
-
required: string[];
|
|
238
|
-
properties: {
|
|
239
|
-
type: {
|
|
240
|
-
type: string;
|
|
241
|
-
};
|
|
242
|
-
tag: {
|
|
243
|
-
type: string;
|
|
244
|
-
};
|
|
245
|
-
citation: {
|
|
246
|
-
type: string;
|
|
247
|
-
};
|
|
248
|
-
note: {
|
|
249
|
-
type: string;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
}[];
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
}[];
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
assertion: {
|
|
263
|
-
type: string;
|
|
264
|
-
required: string[];
|
|
265
|
-
properties: {
|
|
266
|
-
tag: {
|
|
267
|
-
type: string;
|
|
268
|
-
};
|
|
269
|
-
rank: {
|
|
270
|
-
type: string;
|
|
271
|
-
};
|
|
272
|
-
note: {
|
|
273
|
-
type: string;
|
|
274
|
-
};
|
|
275
|
-
references: {
|
|
276
|
-
type: string;
|
|
277
|
-
items: {
|
|
278
|
-
anyOf: {
|
|
279
|
-
type: string;
|
|
280
|
-
required: string[];
|
|
281
|
-
properties: {
|
|
282
|
-
type: {
|
|
283
|
-
type: string;
|
|
284
|
-
};
|
|
285
|
-
tag: {
|
|
286
|
-
type: string;
|
|
287
|
-
};
|
|
288
|
-
citation: {
|
|
289
|
-
type: string;
|
|
290
|
-
};
|
|
291
|
-
note: {
|
|
292
|
-
type: string;
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
}[];
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
description: {
|
|
301
|
-
type: string;
|
|
302
|
-
};
|
|
303
|
-
relatedEntities: {
|
|
304
|
-
type: string;
|
|
305
|
-
items: {
|
|
306
|
-
anyOf: {
|
|
307
|
-
type: string;
|
|
308
|
-
required: string[];
|
|
309
|
-
properties: {
|
|
310
|
-
relation: {
|
|
311
|
-
type: string;
|
|
312
|
-
};
|
|
313
|
-
id: {
|
|
314
|
-
type: string;
|
|
315
|
-
required: string[];
|
|
316
|
-
properties: {
|
|
317
|
-
target: {
|
|
318
|
-
type: string;
|
|
319
|
-
required: string[];
|
|
320
|
-
properties: {
|
|
321
|
-
gid: {
|
|
322
|
-
type: string;
|
|
323
|
-
};
|
|
324
|
-
label: {
|
|
325
|
-
type: string;
|
|
326
|
-
};
|
|
327
|
-
itemId: {
|
|
328
|
-
type: string;
|
|
329
|
-
};
|
|
330
|
-
partId: {
|
|
331
|
-
type: string;
|
|
332
|
-
};
|
|
333
|
-
partTypeId: {
|
|
334
|
-
type: string;
|
|
335
|
-
};
|
|
336
|
-
roleId: {
|
|
337
|
-
type: string;
|
|
338
|
-
};
|
|
339
|
-
name: {
|
|
340
|
-
type: string;
|
|
341
|
-
};
|
|
342
|
-
value: {
|
|
343
|
-
type: string;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
scope: {
|
|
347
|
-
type: string;
|
|
348
|
-
};
|
|
349
|
-
tag: {
|
|
350
|
-
type: string;
|
|
351
|
-
};
|
|
352
|
-
assertion: {
|
|
353
|
-
type: string;
|
|
354
|
-
required: string[];
|
|
355
|
-
properties: {
|
|
356
|
-
tag: {
|
|
357
|
-
type: string;
|
|
358
|
-
};
|
|
359
|
-
rank: {
|
|
360
|
-
type: string;
|
|
361
|
-
};
|
|
362
|
-
note: {
|
|
363
|
-
type: string;
|
|
364
|
-
};
|
|
365
|
-
references: {
|
|
366
|
-
type: string;
|
|
367
|
-
items: {
|
|
368
|
-
anyOf: {
|
|
369
|
-
type: string;
|
|
370
|
-
required: string[];
|
|
371
|
-
properties: {
|
|
372
|
-
type: {
|
|
373
|
-
type: string;
|
|
374
|
-
};
|
|
375
|
-
tag: {
|
|
376
|
-
type: string;
|
|
377
|
-
};
|
|
378
|
-
citation: {
|
|
379
|
-
type: string;
|
|
380
|
-
};
|
|
381
|
-
note: {
|
|
382
|
-
type: string;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
}[];
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
}[];
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
note: {
|
|
398
|
-
type: string;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
}[];
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
3
|
-
import { IndexKeyword } from '../index-keywords-part';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IndexKeywordComponent {
|
|
6
|
-
readonly keyword: import("@angular/core").ModelSignal<IndexKeyword | undefined>;
|
|
7
|
-
readonly idxEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
8
|
-
readonly tagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
9
|
-
readonly langEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
|
|
10
|
-
readonly editorClose: import("@angular/core").OutputEmitterRef<void>;
|
|
11
|
-
indexId: FormControl<string | null>;
|
|
12
|
-
language: FormControl<string | null>;
|
|
13
|
-
value: FormControl<string | null>;
|
|
14
|
-
note: FormControl<string | null>;
|
|
15
|
-
tag: FormControl<string | null>;
|
|
16
|
-
form: FormGroup;
|
|
17
|
-
constructor(formBuilder: FormBuilder);
|
|
18
|
-
private updateForm;
|
|
19
|
-
private getKeyword;
|
|
20
|
-
cancel(): void;
|
|
21
|
-
submit(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IndexKeywordComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IndexKeywordComponent, "cadmus-index-keyword", never, { "keyword": { "alias": "keyword"; "required": false; "isSignal": true; }; "idxEntries": { "alias": "idxEntries"; "required": false; "isSignal": true; }; "tagEntries": { "alias": "tagEntries"; "required": false; "isSignal": true; }; "langEntries": { "alias": "langEntries"; "required": false; "isSignal": true; }; }, { "keyword": "keywordChange"; "editorClose": "editorClose"; }, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormControl, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { AuthJwtService } from '@myrmidon/auth-jwt-login';
|
|
4
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
5
|
-
import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
|
|
6
|
-
import { IndexKeywordsPart, IndexKeyword } from '../index-keywords-part';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Index keywords part editor.
|
|
10
|
-
* Thesauri: languages, keyword-indexes, keyword-tags.
|
|
11
|
-
*/
|
|
12
|
-
export declare class IndexKeywordsPartComponent extends ModelEditorComponentBase<IndexKeywordsPart> implements OnInit {
|
|
13
|
-
editedKeyword?: IndexKeyword;
|
|
14
|
-
idxEntries: ThesaurusEntry[] | undefined;
|
|
15
|
-
langEntries: ThesaurusEntry[] | undefined;
|
|
16
|
-
tagEntries: ThesaurusEntry[] | undefined;
|
|
17
|
-
keywords: FormControl<IndexKeyword[]>;
|
|
18
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
21
|
-
private updateThesauri;
|
|
22
|
-
private compareKeywords;
|
|
23
|
-
private updateForm;
|
|
24
|
-
protected onDataSet(data?: EditedObject<IndexKeywordsPart>): void;
|
|
25
|
-
protected getValue(): IndexKeywordsPart;
|
|
26
|
-
private addKeyword;
|
|
27
|
-
addNewKeyword(): void;
|
|
28
|
-
deleteKeyword(keyword: IndexKeyword): void;
|
|
29
|
-
editKeyword(keyword: IndexKeyword): void;
|
|
30
|
-
onKeywordClose(): void;
|
|
31
|
-
onKeywordChange(keyword: IndexKeyword): void;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IndexKeywordsPartComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IndexKeywordsPartComponent, "cadmus-index-keywords-part", never, {}, {}, never, never, true, never>;
|
|
34
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
/**
|
|
3
|
-
* Index keyword.
|
|
4
|
-
*/
|
|
5
|
-
export interface IndexKeyword {
|
|
6
|
-
indexId?: string;
|
|
7
|
-
language: string;
|
|
8
|
-
value: string;
|
|
9
|
-
note?: string;
|
|
10
|
-
tag?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Index keywords part.
|
|
14
|
-
*/
|
|
15
|
-
export interface IndexKeywordsPart extends Part {
|
|
16
|
-
keywords: IndexKeyword[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* The type ID used to identify the IndexKeywordsPart type.
|
|
20
|
-
*/
|
|
21
|
-
export declare const INDEX_KEYWORDS_PART_TYPEID = "it.vedph.index-keywords";
|
|
22
|
-
/**
|
|
23
|
-
* JSON schema for the index keywords part. This is used in the editor demo.
|
|
24
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
25
|
-
*/
|
|
26
|
-
export declare const INDEX_KEYWORDS_PART_SCHEMA: {
|
|
27
|
-
$schema: string;
|
|
28
|
-
$id: string;
|
|
29
|
-
type: string;
|
|
30
|
-
title: string;
|
|
31
|
-
required: string[];
|
|
32
|
-
properties: {
|
|
33
|
-
timeCreated: {
|
|
34
|
-
type: string;
|
|
35
|
-
pattern: string;
|
|
36
|
-
};
|
|
37
|
-
creatorId: {
|
|
38
|
-
type: string;
|
|
39
|
-
};
|
|
40
|
-
timeModified: {
|
|
41
|
-
type: string;
|
|
42
|
-
pattern: string;
|
|
43
|
-
};
|
|
44
|
-
userId: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
id: {
|
|
48
|
-
type: string;
|
|
49
|
-
pattern: string;
|
|
50
|
-
};
|
|
51
|
-
itemId: {
|
|
52
|
-
type: string;
|
|
53
|
-
pattern: string;
|
|
54
|
-
};
|
|
55
|
-
typeId: {
|
|
56
|
-
type: string;
|
|
57
|
-
pattern: string;
|
|
58
|
-
};
|
|
59
|
-
roleId: {
|
|
60
|
-
type: string[];
|
|
61
|
-
pattern: string;
|
|
62
|
-
};
|
|
63
|
-
keywords: {
|
|
64
|
-
type: string;
|
|
65
|
-
items: {
|
|
66
|
-
type: string;
|
|
67
|
-
required: string[];
|
|
68
|
-
properties: {
|
|
69
|
-
indexId: {
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
language: {
|
|
73
|
-
type: string;
|
|
74
|
-
};
|
|
75
|
-
value: {
|
|
76
|
-
type: string;
|
|
77
|
-
};
|
|
78
|
-
note: {
|
|
79
|
-
type: string;
|
|
80
|
-
};
|
|
81
|
-
tag: {
|
|
82
|
-
type: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormControl, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
|
|
4
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
5
|
-
import { AuthJwtService } from '@myrmidon/auth-jwt-login';
|
|
6
|
-
import { KeywordsPart, Keyword } from '../keywords-part';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Keywords editor component.
|
|
10
|
-
* Thesauri: languages.
|
|
11
|
-
*/
|
|
12
|
-
export declare class KeywordsPartComponent extends ModelEditorComponentBase<KeywordsPart> implements OnInit {
|
|
13
|
-
keywords: FormControl<Keyword[]>;
|
|
14
|
-
newLanguage: FormControl<string | null>;
|
|
15
|
-
newValue: FormControl<string | null>;
|
|
16
|
-
newForm: FormGroup;
|
|
17
|
-
langEntries?: ThesaurusEntry[];
|
|
18
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
21
|
-
private updateThesauri;
|
|
22
|
-
private compareKeywords;
|
|
23
|
-
private updateForm;
|
|
24
|
-
protected onDataSet(data?: EditedObject<KeywordsPart>): void;
|
|
25
|
-
protected getValue(): KeywordsPart;
|
|
26
|
-
addKeyword(): void;
|
|
27
|
-
deleteKeyword(keyword: Keyword): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KeywordsPartComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KeywordsPartComponent, "cadmus-keywords-part", never, {}, {}, never, never, true, never>;
|
|
30
|
-
}
|
package/lib/keywords-part.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
export interface Keyword {
|
|
3
|
-
language: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* The Keywords part model.
|
|
8
|
-
*/
|
|
9
|
-
export interface KeywordsPart extends Part {
|
|
10
|
-
keywords: Keyword[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The type ID used to identify the KeywordsPart type.
|
|
14
|
-
*/
|
|
15
|
-
export declare const KEYWORDS_PART_TYPEID = "it.vedph.keywords";
|
|
16
|
-
/**
|
|
17
|
-
* JSON schema for the Keywords part. This is used in the editor demo.
|
|
18
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
19
|
-
*/
|
|
20
|
-
export declare const KEYWORDS_PART_SCHEMA: {
|
|
21
|
-
$schema: string;
|
|
22
|
-
$id: string;
|
|
23
|
-
type: string;
|
|
24
|
-
title: string;
|
|
25
|
-
required: string[];
|
|
26
|
-
properties: {
|
|
27
|
-
timeCreated: {
|
|
28
|
-
type: string;
|
|
29
|
-
pattern: string;
|
|
30
|
-
};
|
|
31
|
-
creatorId: {
|
|
32
|
-
type: string;
|
|
33
|
-
};
|
|
34
|
-
timeModified: {
|
|
35
|
-
type: string;
|
|
36
|
-
pattern: string;
|
|
37
|
-
};
|
|
38
|
-
userId: {
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
id: {
|
|
42
|
-
type: string;
|
|
43
|
-
pattern: string;
|
|
44
|
-
};
|
|
45
|
-
itemId: {
|
|
46
|
-
type: string;
|
|
47
|
-
pattern: string;
|
|
48
|
-
};
|
|
49
|
-
typeId: {
|
|
50
|
-
type: string;
|
|
51
|
-
pattern: string;
|
|
52
|
-
};
|
|
53
|
-
roleId: {
|
|
54
|
-
type: string[];
|
|
55
|
-
pattern: string;
|
|
56
|
-
};
|
|
57
|
-
keywords: {
|
|
58
|
-
type: string;
|
|
59
|
-
items: {
|
|
60
|
-
type: string;
|
|
61
|
-
required: string[];
|
|
62
|
-
properties: {
|
|
63
|
-
language: {
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
value: {
|
|
67
|
-
type: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
};
|