@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,40 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormArray, 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 { MetadataPart, Metadatum } from '../metadata-part';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Metadata part editor component.
|
|
10
|
-
* Thesauri: metadata-types (optional).
|
|
11
|
-
*/
|
|
12
|
-
export declare class MetadataPartComponent extends ModelEditorComponentBase<MetadataPart> implements OnInit, OnDestroy {
|
|
13
|
-
private _subs;
|
|
14
|
-
metadata: FormArray;
|
|
15
|
-
/**
|
|
16
|
-
* metadata-types thesaurus entries.
|
|
17
|
-
*/
|
|
18
|
-
typeEntries: ThesaurusEntry[] | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* metadata-names thesaurus entries.
|
|
21
|
-
*/
|
|
22
|
-
nameEntries: ThesaurusEntry[] | undefined;
|
|
23
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder);
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
26
|
-
private unsubscribe;
|
|
27
|
-
ngOnDestroy(): void;
|
|
28
|
-
private updateThesauri;
|
|
29
|
-
private updateForm;
|
|
30
|
-
protected onDataSet(data?: EditedObject<MetadataPart>): void;
|
|
31
|
-
protected getValue(): MetadataPart;
|
|
32
|
-
private getMetadatumGroup;
|
|
33
|
-
addMetadatum(item?: Metadatum): void;
|
|
34
|
-
removeMetadatum(index: number): void;
|
|
35
|
-
moveMetadatumUp(index: number): void;
|
|
36
|
-
moveMetadatumDown(index: number): void;
|
|
37
|
-
private getMetadata;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataPartComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MetadataPartComponent, "cadmus-metadata-part", never, {}, {}, never, never, true, never>;
|
|
40
|
-
}
|
package/lib/metadata-part.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
/**
|
|
3
|
-
* The metadata part model.
|
|
4
|
-
*/
|
|
5
|
-
export interface MetadataPart extends Part {
|
|
6
|
-
metadata: Metadatum[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A metadata entry in MetadataPart.
|
|
10
|
-
*/
|
|
11
|
-
export interface Metadatum {
|
|
12
|
-
type?: string;
|
|
13
|
-
name: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The type ID used to identify the MetadataPart type.
|
|
18
|
-
*/
|
|
19
|
-
export declare const METADATA_PART_TYPEID = "it.vedph.metadata";
|
|
20
|
-
/**
|
|
21
|
-
* JSON schema for the metadata part.
|
|
22
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
23
|
-
*/
|
|
24
|
-
export declare const METADATA_PART_SCHEMA: {
|
|
25
|
-
$schema: string;
|
|
26
|
-
$id: string;
|
|
27
|
-
type: string;
|
|
28
|
-
title: string;
|
|
29
|
-
required: string[];
|
|
30
|
-
properties: {
|
|
31
|
-
timeCreated: {
|
|
32
|
-
type: string;
|
|
33
|
-
pattern: string;
|
|
34
|
-
};
|
|
35
|
-
creatorId: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
timeModified: {
|
|
39
|
-
type: string;
|
|
40
|
-
pattern: string;
|
|
41
|
-
};
|
|
42
|
-
userId: {
|
|
43
|
-
type: string;
|
|
44
|
-
};
|
|
45
|
-
id: {
|
|
46
|
-
type: string;
|
|
47
|
-
pattern: string;
|
|
48
|
-
};
|
|
49
|
-
itemId: {
|
|
50
|
-
type: string;
|
|
51
|
-
pattern: string;
|
|
52
|
-
};
|
|
53
|
-
typeId: {
|
|
54
|
-
type: string;
|
|
55
|
-
pattern: string;
|
|
56
|
-
};
|
|
57
|
-
roleId: {
|
|
58
|
-
type: string[];
|
|
59
|
-
pattern: string;
|
|
60
|
-
};
|
|
61
|
-
metadata: {
|
|
62
|
-
type: string;
|
|
63
|
-
items: {
|
|
64
|
-
anyOf: {
|
|
65
|
-
type: string;
|
|
66
|
-
required: string[];
|
|
67
|
-
properties: {
|
|
68
|
-
type: {
|
|
69
|
-
type: string;
|
|
70
|
-
};
|
|
71
|
-
name: {
|
|
72
|
-
type: string;
|
|
73
|
-
};
|
|
74
|
-
value: {
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
}[];
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
@@ -1,52 +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 { AssertedProperName } from '@myrmidon/cadmus-refs-proper-name';
|
|
6
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
7
|
-
import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
|
|
8
|
-
import { NamesPart } from '../names-part';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Names part editor component.
|
|
12
|
-
* Thesauri: name-languages, name-tags, name-piece-types, assertion-tags,
|
|
13
|
-
* doc-reference-types, doc-reference-tags (all optional).
|
|
14
|
-
*/
|
|
15
|
-
export declare class NamesPartComponent extends ModelEditorComponentBase<NamesPart> implements OnInit {
|
|
16
|
-
private _dialogService;
|
|
17
|
-
private _updatingForm?;
|
|
18
|
-
editedIndex: number;
|
|
19
|
-
editedName: AssertedProperName | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* The optional thesaurus proper name languages entries (name-languages).
|
|
22
|
-
*/
|
|
23
|
-
langEntries: ThesaurusEntry[] | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* The optional thesaurus name's tag entries (name-tags).
|
|
26
|
-
*/
|
|
27
|
-
tagEntries: ThesaurusEntry[] | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* The optional thesaurus name piece's type entries (name-piece-types).
|
|
30
|
-
*/
|
|
31
|
-
typeEntries: ThesaurusEntry[] | undefined;
|
|
32
|
-
assTagEntries?: ThesaurusEntry[];
|
|
33
|
-
refTypeEntries: ThesaurusEntry[] | undefined;
|
|
34
|
-
refTagEntries: ThesaurusEntry[] | undefined;
|
|
35
|
-
names: FormControl<AssertedProperName[]>;
|
|
36
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder, _dialogService: DialogService);
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
39
|
-
private updateThesauri;
|
|
40
|
-
private updateForm;
|
|
41
|
-
protected onDataSet(data?: EditedObject<NamesPart>): void;
|
|
42
|
-
protected getValue(): NamesPart;
|
|
43
|
-
addName(): void;
|
|
44
|
-
editName(index: number): void;
|
|
45
|
-
onNameChange(name: AssertedProperName | undefined): void;
|
|
46
|
-
onNameClose(): void;
|
|
47
|
-
deleteName(index: number): void;
|
|
48
|
-
moveNameUp(index: number): void;
|
|
49
|
-
moveNameDown(index: number): void;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NamesPartComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NamesPartComponent, "cadmus-names-part", never, {}, {}, never, never, true, never>;
|
|
52
|
-
}
|
package/lib/names-part.d.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
import { AssertedProperName } from '@myrmidon/cadmus-refs-proper-name';
|
|
3
|
-
/**
|
|
4
|
-
* The names part model.
|
|
5
|
-
*/
|
|
6
|
-
export interface NamesPart extends Part {
|
|
7
|
-
names: AssertedProperName[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The type ID used to identify the NamesPart type.
|
|
11
|
-
*/
|
|
12
|
-
export declare const NAMES_PART_TYPEID = "it.vedph.names";
|
|
13
|
-
/**
|
|
14
|
-
* JSON schema for the names part.
|
|
15
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
16
|
-
*/
|
|
17
|
-
export declare const NAMES_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
|
-
names: {
|
|
55
|
-
type: string;
|
|
56
|
-
items: {
|
|
57
|
-
anyOf: {
|
|
58
|
-
type: string;
|
|
59
|
-
required: string[];
|
|
60
|
-
properties: {
|
|
61
|
-
language: {
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
tag: {
|
|
65
|
-
type: string;
|
|
66
|
-
};
|
|
67
|
-
pieces: {
|
|
68
|
-
type: string;
|
|
69
|
-
items: {
|
|
70
|
-
anyOf: {
|
|
71
|
-
type: string;
|
|
72
|
-
required: string[];
|
|
73
|
-
properties: {
|
|
74
|
-
type: {
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
value: {
|
|
78
|
-
type: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
}[];
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
assertion: {
|
|
85
|
-
type: string;
|
|
86
|
-
required: string[];
|
|
87
|
-
properties: {
|
|
88
|
-
tag: {
|
|
89
|
-
type: string;
|
|
90
|
-
};
|
|
91
|
-
rank: {
|
|
92
|
-
type: string;
|
|
93
|
-
};
|
|
94
|
-
note: {
|
|
95
|
-
type: string;
|
|
96
|
-
};
|
|
97
|
-
references: {
|
|
98
|
-
type: string;
|
|
99
|
-
items: {
|
|
100
|
-
anyOf: {
|
|
101
|
-
type: string;
|
|
102
|
-
required: string[];
|
|
103
|
-
properties: {
|
|
104
|
-
type: {
|
|
105
|
-
type: string;
|
|
106
|
-
};
|
|
107
|
-
tag: {
|
|
108
|
-
type: string;
|
|
109
|
-
};
|
|
110
|
-
citation: {
|
|
111
|
-
type: string;
|
|
112
|
-
};
|
|
113
|
-
note: {
|
|
114
|
-
type: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
}[];
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
}[];
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, FormBuilder, 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 { CadmusTextEdService, CadmusTextEdBindings } from '@myrmidon/cadmus-text-ed';
|
|
7
|
-
import { NotePart } from '../note-part';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Note part editor component.
|
|
11
|
-
* Thesauri: optionally "note-tags", when you want to use a closed set of tags.
|
|
12
|
-
*/
|
|
13
|
-
export declare class NotePartComponent extends ModelEditorComponentBase<NotePart> implements OnInit, OnDestroy {
|
|
14
|
-
private _editService;
|
|
15
|
-
private _editorBindings?;
|
|
16
|
-
private readonly _disposables;
|
|
17
|
-
private _editorModel?;
|
|
18
|
-
private _editor?;
|
|
19
|
-
tag: FormControl<string | null>;
|
|
20
|
-
text: FormControl<string | null>;
|
|
21
|
-
tagEntries?: ThesaurusEntry[];
|
|
22
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder, _editService: CadmusTextEdService, _editorBindings?: CadmusTextEdBindings | undefined);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
ngOnDestroy(): void;
|
|
25
|
-
private applyEdit;
|
|
26
|
-
onCreateEditor(editor: monaco.editor.IEditor): void;
|
|
27
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
28
|
-
private updateThesauri;
|
|
29
|
-
private updateForm;
|
|
30
|
-
protected onDataSet(data?: EditedObject<NotePart>): void;
|
|
31
|
-
protected getValue(): NotePart;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotePartComponent, [null, null, null, { optional: true; }]>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotePartComponent, "cadmus-note-part", never, {}, {}, never, never, true, never>;
|
|
34
|
-
}
|
package/lib/note-part.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
/**
|
|
3
|
-
* Note part.
|
|
4
|
-
*/
|
|
5
|
-
export interface NotePart extends Part {
|
|
6
|
-
text: string;
|
|
7
|
-
tag?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The type ID used to identify the NotePart type.
|
|
11
|
-
*/
|
|
12
|
-
export declare const NOTE_PART_TYPEID = "it.vedph.note";
|
|
13
|
-
/**
|
|
14
|
-
* JSON schema for the note part. This is used in the editor demo.
|
|
15
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
16
|
-
*/
|
|
17
|
-
export declare const NOTE_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
|
-
text: {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
tag: {
|
|
58
|
-
type: string[];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, FormBuilder, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { AuthJwtService } from '@myrmidon/auth-jwt-login';
|
|
4
|
-
import { PhysicalMeasurement } from '@myrmidon/cadmus-mat-physical-size';
|
|
5
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
6
|
-
import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
|
|
7
|
-
import { PhysicalMeasurementsPart } from '../physical-measurements-part';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* PhysicalMeasurements part editor component.
|
|
11
|
-
* Thesauri: physical-size-units, physical-size-dim-tags, physical-size-set-names (all optional).
|
|
12
|
-
*/
|
|
13
|
-
export declare class PhysicalMeasurementsPartComponent extends ModelEditorComponentBase<PhysicalMeasurementsPart> implements OnInit {
|
|
14
|
-
measurements: FormControl<PhysicalMeasurement[]>;
|
|
15
|
-
unitEntries?: ThesaurusEntry[];
|
|
16
|
-
dimTagEntries?: ThesaurusEntry[];
|
|
17
|
-
nameEntries?: ThesaurusEntry[];
|
|
18
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
21
|
-
private updateThesauri;
|
|
22
|
-
private updateForm;
|
|
23
|
-
protected onDataSet(data?: EditedObject<PhysicalMeasurementsPart>): void;
|
|
24
|
-
protected getValue(): PhysicalMeasurementsPart;
|
|
25
|
-
onMeasurementsChange(measurements: PhysicalMeasurement[]): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhysicalMeasurementsPartComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhysicalMeasurementsPartComponent, "cadmus-physical-measurements-part", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
import { PhysicalMeasurement } from '@myrmidon/cadmus-mat-physical-size';
|
|
3
|
-
/**
|
|
4
|
-
* The PhysicalMeasurements part model.
|
|
5
|
-
*/
|
|
6
|
-
export interface PhysicalMeasurementsPart extends Part {
|
|
7
|
-
measurements: PhysicalMeasurement[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The type ID used to identify the PhysicalMeasurementsPart type.
|
|
11
|
-
*/
|
|
12
|
-
export declare const PHYSICAL_MEASUREMENTS_PART_TYPEID = "it.vedph.physical-measurements";
|
|
13
|
-
/**
|
|
14
|
-
* JSON schema for the PhysicalMeasurements part.
|
|
15
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
16
|
-
*/
|
|
17
|
-
export declare const PHYSICAL_MEASUREMENTS_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
|
-
measurements: {
|
|
55
|
-
type: string;
|
|
56
|
-
items: {
|
|
57
|
-
anyOf: {
|
|
58
|
-
type: string;
|
|
59
|
-
required: string[];
|
|
60
|
-
properties: {
|
|
61
|
-
name: {
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
tag: {
|
|
65
|
-
type: string;
|
|
66
|
-
};
|
|
67
|
-
value: {
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
unit: {
|
|
71
|
-
type: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
}[];
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
@@ -1,39 +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 { PhysicalState } from '@myrmidon/cadmus-mat-physical-state';
|
|
6
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
7
|
-
import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
|
|
8
|
-
import { PhysicalStatesPart } from '../physical-states-part';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* PhysicalStatesPart editor component.
|
|
12
|
-
* Thesauri: physical-states (optional), physical-state-features (optional),
|
|
13
|
-
* physical-state-reporters (optional).
|
|
14
|
-
*/
|
|
15
|
-
export declare class PhysicalStatesPartComponent extends ModelEditorComponentBase<PhysicalStatesPart> implements OnInit {
|
|
16
|
-
private _dialogService;
|
|
17
|
-
editedIndex: number;
|
|
18
|
-
edited: PhysicalState | undefined;
|
|
19
|
-
stateEntries?: ThesaurusEntry[];
|
|
20
|
-
featEntries?: ThesaurusEntry[];
|
|
21
|
-
reporterEntries?: ThesaurusEntry[];
|
|
22
|
-
entries: FormControl<PhysicalState[]>;
|
|
23
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder, _dialogService: DialogService);
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
26
|
-
private updateThesauri;
|
|
27
|
-
private updateForm;
|
|
28
|
-
protected onDataSet(data?: EditedObject<PhysicalStatesPart>): void;
|
|
29
|
-
protected getValue(): PhysicalStatesPart;
|
|
30
|
-
addState(): void;
|
|
31
|
-
editState(entry: PhysicalState, index: number): void;
|
|
32
|
-
closeState(): void;
|
|
33
|
-
saveState(entry: PhysicalState): void;
|
|
34
|
-
deleteState(index: number): void;
|
|
35
|
-
moveStateUp(index: number): void;
|
|
36
|
-
moveStateDown(index: number): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhysicalStatesPartComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhysicalStatesPartComponent, "cadmus-physical-states-part", never, {}, {}, never, never, true, never>;
|
|
39
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Part } from '@myrmidon/cadmus-core';
|
|
2
|
-
import { PhysicalState } from '@myrmidon/cadmus-mat-physical-state';
|
|
3
|
-
/**
|
|
4
|
-
* The PhysicalStates part model.
|
|
5
|
-
*/
|
|
6
|
-
export interface PhysicalStatesPart extends Part {
|
|
7
|
-
states: PhysicalState[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The type ID used to identify the PhysicalStatesPart type.
|
|
11
|
-
*/
|
|
12
|
-
export declare const PHYSICAL_STATES_PART_TYPEID = "it.vedph.physical-states";
|
|
13
|
-
/**
|
|
14
|
-
* JSON schema for the PhysicalStates part.
|
|
15
|
-
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
16
|
-
*/
|
|
17
|
-
export declare const PHYSICAL_STATES_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
|
-
states: {
|
|
55
|
-
type: string;
|
|
56
|
-
items: {
|
|
57
|
-
anyOf: {
|
|
58
|
-
type: string;
|
|
59
|
-
required: string[];
|
|
60
|
-
properties: {
|
|
61
|
-
type: {
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
features: {
|
|
65
|
-
type: string;
|
|
66
|
-
items: {
|
|
67
|
-
type: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
date: {
|
|
71
|
-
type: string;
|
|
72
|
-
};
|
|
73
|
-
reporter: {
|
|
74
|
-
type: string;
|
|
75
|
-
};
|
|
76
|
-
note: {
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
}[];
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
};
|
|
@@ -1,41 +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 { AssertedCompositeId } from '@myrmidon/cadmus-refs-asserted-ids';
|
|
5
|
-
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
6
|
-
import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
|
|
7
|
-
import { PinLinksFragment } from '../pin-links-fragment';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Pin-based links fragment editor component.
|
|
11
|
-
* Thesauri: pin-link-scopes, pin-link-tags, pin-link-assertion-tags,
|
|
12
|
-
* pin-link-docref-types, pin-link-docref-tags, pin-link-settings.
|
|
13
|
-
*/
|
|
14
|
-
export declare class PinLinksFragmentComponent extends ModelEditorComponentBase<PinLinksFragment> implements OnInit {
|
|
15
|
-
links: FormControl<AssertedCompositeId[]>;
|
|
16
|
-
pinByTypeMode?: boolean;
|
|
17
|
-
canSwitchMode?: boolean;
|
|
18
|
-
canEditTarget?: boolean;
|
|
19
|
-
idScopeEntries?: ThesaurusEntry[];
|
|
20
|
-
idTagEntries?: ThesaurusEntry[];
|
|
21
|
-
assTagEntries?: ThesaurusEntry[];
|
|
22
|
-
refTypeEntries?: ThesaurusEntry[];
|
|
23
|
-
refTagEntries?: ThesaurusEntry[];
|
|
24
|
-
setTagEntries?: ThesaurusEntry[];
|
|
25
|
-
constructor(authService: AuthJwtService, formBuilder: FormBuilder);
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
28
|
-
/**
|
|
29
|
-
* Load settings from thesaurus entries.
|
|
30
|
-
*
|
|
31
|
-
* @param entries The thesaurus entries if any.
|
|
32
|
-
*/
|
|
33
|
-
private loadSettings;
|
|
34
|
-
private updateThesauri;
|
|
35
|
-
private updateForm;
|
|
36
|
-
protected onDataSet(data?: EditedObject<PinLinksFragment>): void;
|
|
37
|
-
protected getValue(): PinLinksFragment;
|
|
38
|
-
onIdsChange(ids: AssertedCompositeId[]): void;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PinLinksFragmentComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PinLinksFragmentComponent, "cadmus-pin-links-fragment", never, {}, {}, never, never, true, never>;
|
|
41
|
-
}
|