@myrmidon/cadmus-part-general-ui 14.0.2 → 14.0.4
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/index.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ import { DocReference } from '@myrmidon/cadmus-refs-doc-references';
|
|
|
13
13
|
import { CadmusTextEdService, CadmusTextEdBindings } from '@myrmidon/cadmus-text-ed';
|
|
14
14
|
import { DecoratedCount } from '@myrmidon/cadmus-refs-decorated-counts';
|
|
15
15
|
import { ProperName, AssertedProperName } from '@myrmidon/cadmus-refs-proper-name';
|
|
16
|
+
import { KeyValue } from '@angular/common';
|
|
17
|
+
import { Flag } from '@myrmidon/cadmus-ui-flag-set';
|
|
18
|
+
import { NoteSet } from '@myrmidon/cadmus-ui-note-set';
|
|
16
19
|
import { PhysicalMeasurement } from '@myrmidon/cadmus-mat-physical-size';
|
|
17
20
|
import { PhysicalState } from '@myrmidon/cadmus-mat-physical-state';
|
|
18
21
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -1785,15 +1788,23 @@ declare const DOC_REFERENCES_PART_SCHEMA: {
|
|
|
1785
1788
|
};
|
|
1786
1789
|
};
|
|
1787
1790
|
|
|
1791
|
+
interface DocReferencesPartSettings {
|
|
1792
|
+
noLookup?: boolean;
|
|
1793
|
+
noCitation?: boolean;
|
|
1794
|
+
defaultPicker?: 'citation' | 'lookup';
|
|
1795
|
+
}
|
|
1788
1796
|
/**
|
|
1789
1797
|
* Document references part editor.
|
|
1790
1798
|
* Thesauri: doc-reference-tags, doc-reference-types (all optional).
|
|
1799
|
+
* You can configure doc references lookup properties via settings.
|
|
1791
1800
|
*/
|
|
1792
1801
|
declare class DocReferencesPartComponent extends ModelEditorComponentBase<DocReferencesPart> implements OnInit {
|
|
1793
1802
|
references: FormControl<DocReference[]>;
|
|
1794
|
-
typeEntries: ThesaurusEntry[] | undefined
|
|
1795
|
-
tagEntries: ThesaurusEntry[] | undefined
|
|
1803
|
+
readonly typeEntries: i0.WritableSignal<ThesaurusEntry[] | undefined>;
|
|
1804
|
+
readonly tagEntries: i0.WritableSignal<ThesaurusEntry[] | undefined>;
|
|
1805
|
+
readonly settings: i0.WritableSignal<DocReferencesPartSettings | undefined>;
|
|
1796
1806
|
constructor(authService: AuthJwtService, formBuilder: FormBuilder);
|
|
1807
|
+
private loadSettings;
|
|
1797
1808
|
ngOnInit(): void;
|
|
1798
1809
|
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
1799
1810
|
private updateThesauri;
|
|
@@ -1907,6 +1918,105 @@ declare class ExternalIdsPartComponent extends ModelEditorComponentBase<External
|
|
|
1907
1918
|
static ɵcmp: i0.ɵɵComponentDeclaration<ExternalIdsPartComponent, "cadmus-refs-external-ids-part", never, {}, {}, never, never, true, never>;
|
|
1908
1919
|
}
|
|
1909
1920
|
|
|
1921
|
+
/**
|
|
1922
|
+
* The flags part model.
|
|
1923
|
+
*/
|
|
1924
|
+
interface FlagsPart extends Part {
|
|
1925
|
+
flags: string[];
|
|
1926
|
+
notes?: {
|
|
1927
|
+
[key: string]: string;
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* The type ID used to identify the FlagsPart type.
|
|
1932
|
+
*/
|
|
1933
|
+
declare const FLAGS_PART_TYPEID = "it.vedph.flags";
|
|
1934
|
+
/**
|
|
1935
|
+
* JSON schema for the Flags part.
|
|
1936
|
+
* You can use the JSON schema tool at https://jsonschema.net/.
|
|
1937
|
+
*/
|
|
1938
|
+
declare const FLAGS_PART_SCHEMA: {
|
|
1939
|
+
$schema: string;
|
|
1940
|
+
$id: string;
|
|
1941
|
+
type: string;
|
|
1942
|
+
title: string;
|
|
1943
|
+
required: string[];
|
|
1944
|
+
properties: {
|
|
1945
|
+
timeCreated: {
|
|
1946
|
+
type: string;
|
|
1947
|
+
pattern: string;
|
|
1948
|
+
};
|
|
1949
|
+
creatorId: {
|
|
1950
|
+
type: string;
|
|
1951
|
+
};
|
|
1952
|
+
timeModified: {
|
|
1953
|
+
type: string;
|
|
1954
|
+
pattern: string;
|
|
1955
|
+
};
|
|
1956
|
+
userId: {
|
|
1957
|
+
type: string;
|
|
1958
|
+
};
|
|
1959
|
+
id: {
|
|
1960
|
+
type: string;
|
|
1961
|
+
pattern: string;
|
|
1962
|
+
};
|
|
1963
|
+
itemId: {
|
|
1964
|
+
type: string;
|
|
1965
|
+
pattern: string;
|
|
1966
|
+
};
|
|
1967
|
+
typeId: {
|
|
1968
|
+
type: string;
|
|
1969
|
+
pattern: string;
|
|
1970
|
+
};
|
|
1971
|
+
roleId: {
|
|
1972
|
+
type: string[];
|
|
1973
|
+
pattern: string;
|
|
1974
|
+
};
|
|
1975
|
+
flags: {
|
|
1976
|
+
type: string;
|
|
1977
|
+
items: {
|
|
1978
|
+
type: string;
|
|
1979
|
+
pattern: string;
|
|
1980
|
+
};
|
|
1981
|
+
minItems: number;
|
|
1982
|
+
};
|
|
1983
|
+
notes: {
|
|
1984
|
+
type: string;
|
|
1985
|
+
additionalProperties: {
|
|
1986
|
+
type: string;
|
|
1987
|
+
};
|
|
1988
|
+
};
|
|
1989
|
+
};
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* Flags part editor component.
|
|
1994
|
+
* Thesauri: flags.
|
|
1995
|
+
* Settings: note set definitions for this part type (and role). If not defined,
|
|
1996
|
+
* no notes will be available.
|
|
1997
|
+
* See https://github.com/vedph/cadmus-bricks-shell-v3/blob/master/projects/myrmidon/cadmus-ui-note-set/README.md.
|
|
1998
|
+
*/
|
|
1999
|
+
declare class FlagsPartComponent extends ModelEditorComponentBase<FlagsPart> implements OnInit {
|
|
2000
|
+
flags: FormControl<string[]>;
|
|
2001
|
+
notes: FormControl<NoteSet>;
|
|
2002
|
+
readonly settings: i0.WritableSignal<NoteSet | undefined>;
|
|
2003
|
+
readonly flagEntries: i0.WritableSignal<ThesaurusEntry[]>;
|
|
2004
|
+
featureFlags: i0.Signal<Flag[]>;
|
|
2005
|
+
constructor(authService: AuthJwtService, formBuilder: FormBuilder);
|
|
2006
|
+
ngOnInit(): Promise<void>;
|
|
2007
|
+
protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
|
|
2008
|
+
private updateThesauri;
|
|
2009
|
+
private getNoteSet;
|
|
2010
|
+
private updateForm;
|
|
2011
|
+
protected onDataSet(data?: EditedObject<FlagsPart>): void;
|
|
2012
|
+
onFlagsCheckedIdsChange(ids: string[]): void;
|
|
2013
|
+
onNoteChange(note: KeyValue<string, string | null>): void;
|
|
2014
|
+
onSetChange(set: NoteSet): void;
|
|
2015
|
+
protected getValue(): FlagsPart;
|
|
2016
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlagsPartComponent, never>;
|
|
2017
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlagsPartComponent, "cadmus-flags-part", never, {}, {}, never, never, true, never>;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1910
2020
|
/**
|
|
1911
2021
|
* The historical events part model.
|
|
1912
2022
|
*/
|
|
@@ -3994,5 +4104,5 @@ declare class TokenTextPartComponent extends ModelEditorComponentBase<TokenTextP
|
|
|
3994
4104
|
static ɵcmp: i0.ɵɵComponentDeclaration<TokenTextPartComponent, "cadmus-token-text-part", never, {}, {}, never, never, true, never>;
|
|
3995
4105
|
}
|
|
3996
4106
|
|
|
3997
|
-
export { ASSERTED_HISTORICAL_DATES_PART_SCHEMA, ASSERTED_HISTORICAL_DATES_PART_TYPEID, AssertedHistoricalDateComponent, AssertedHistoricalDatesPartComponent, BIBLIOGRAPHY_PART_SCHEMA, BIBLIOGRAPHY_PART_TYPEID, BibAuthorsEditorComponent, BibliographyEntryComponent, BibliographyPartComponent, CATEGORIES_PART_SCHEMA, CATEGORIES_PART_TYPEID, CHRONOLOGY_FRAGMENT_SCHEMA, CHRONOLOGY_FRAGMENT_TYPEID, CHRONOTOPES_PART_TYPEID, COMMENT_FRAGMENT_SCHEMA, COMMENT_FRAGMENT_TYPEID, COMMENT_PART_SCHEMA, COMMENT_PART_TYPEID, CategoriesPartComponent, ChronologyFragmentComponent, ChronotopesPartComponent, Chronotopes_PART_SCHEMA, CommentEditorComponent, DECORATED_COUNTS_PART_SCHEMA, DECORATED_COUNTS_PART_TYPEID, DISTRICT_LOCATION_PART_SCHEMA, DISTRICT_LOCATION_PART_TYPEID, DOC_REFERENCES_PART_SCHEMA, DOC_REFERENCES_PART_TYPEID, DecoratedCountsPartComponent, DistrictLocationPartComponent, DocReferencesPartComponent, EXTERNAL_IDS_PART_SCHEMA, EXTERNAL_IDS_PART_TYPEID, ExternalIdsPartComponent, HISTORICAL_DATE_PART_SCHEMA, HISTORICAL_DATE_PART_TYPEID, HISTORICAL_EVENTS_PART_SCHEMA, HISTORICAL_EVENTS_PART_TYPEID, HistoricalDatePartComponent, HistoricalEventEditorComponent, HistoricalEventsPartComponent, INDEX_KEYWORDS_PART_SCHEMA, INDEX_KEYWORDS_PART_TYPEID, IndexKeywordComponent, IndexKeywordsPartComponent, KEYWORDS_PART_SCHEMA, KEYWORDS_PART_TYPEID, KeywordsPartComponent, METADATA_PART_SCHEMA, METADATA_PART_TYPEID, MetadataPartComponent, NAMES_PART_SCHEMA, NAMES_PART_TYPEID, NOTE_PART_SCHEMA, NOTE_PART_TYPEID, NamesPartComponent, NotePartComponent, PHYSICAL_MEASUREMENTS_PART_SCHEMA, PHYSICAL_MEASUREMENTS_PART_TYPEID, PHYSICAL_STATES_PART_SCHEMA, PHYSICAL_STATES_PART_TYPEID, PIN_LINKS_FRAGMENT_SCHEMA, PIN_LINKS_FRAGMENT_TYPEID, PIN_LINKS_PART_SCHEMA, PIN_LINKS_PART_TYPEID, PhysicalMeasurementsPartComponent, PhysicalStatesPartComponent, PinLinksFragmentComponent, PinLinksPartComponent, RelatedEntityComponent, TEXT_TILE_TEXT_DATA_NAME, TILEDTEXTPART_SCHEMA, TILED_TEXT_PART_TYPEID, TOKEN_TEXT_PART_SCHEMA, TOKEN_TEXT_PART_TYPEID, TextTileComponent, TiledDataComponent, TiledTextPartComponent, TokenTextPartComponent };
|
|
3998
|
-
export type { AssertedHistoricalDatesPart, BibAuthor, BibEntry, BibliographyPart, CategoriesPart, ChronologyFragment, ChronotopesPart, Comment, CommentFragment, CommentPart, DecoratedCountsPart, DistrictLocationPart, DocReferencesPart, ExternalIdsPart, HistoricalDatePart, HistoricalEvent, HistoricalEventsPart, IndexKeyword, IndexKeywordsPart, Keyword, KeywordsPart, MetadataPart, Metadatum, NamesPart, NotePart, PhysicalMeasurementsPart, PhysicalStatesPart, PinLinksFragment, PinLinksPart, RelatedEntity, TextTile, TextTileRow, TiledTextPart, TokenTextLine, TokenTextPart };
|
|
4107
|
+
export { ASSERTED_HISTORICAL_DATES_PART_SCHEMA, ASSERTED_HISTORICAL_DATES_PART_TYPEID, AssertedHistoricalDateComponent, AssertedHistoricalDatesPartComponent, BIBLIOGRAPHY_PART_SCHEMA, BIBLIOGRAPHY_PART_TYPEID, BibAuthorsEditorComponent, BibliographyEntryComponent, BibliographyPartComponent, CATEGORIES_PART_SCHEMA, CATEGORIES_PART_TYPEID, CHRONOLOGY_FRAGMENT_SCHEMA, CHRONOLOGY_FRAGMENT_TYPEID, CHRONOTOPES_PART_TYPEID, COMMENT_FRAGMENT_SCHEMA, COMMENT_FRAGMENT_TYPEID, COMMENT_PART_SCHEMA, COMMENT_PART_TYPEID, CategoriesPartComponent, ChronologyFragmentComponent, ChronotopesPartComponent, Chronotopes_PART_SCHEMA, CommentEditorComponent, DECORATED_COUNTS_PART_SCHEMA, DECORATED_COUNTS_PART_TYPEID, DISTRICT_LOCATION_PART_SCHEMA, DISTRICT_LOCATION_PART_TYPEID, DOC_REFERENCES_PART_SCHEMA, DOC_REFERENCES_PART_TYPEID, DecoratedCountsPartComponent, DistrictLocationPartComponent, DocReferencesPartComponent, EXTERNAL_IDS_PART_SCHEMA, EXTERNAL_IDS_PART_TYPEID, ExternalIdsPartComponent, FLAGS_PART_SCHEMA, FLAGS_PART_TYPEID, FlagsPartComponent, HISTORICAL_DATE_PART_SCHEMA, HISTORICAL_DATE_PART_TYPEID, HISTORICAL_EVENTS_PART_SCHEMA, HISTORICAL_EVENTS_PART_TYPEID, HistoricalDatePartComponent, HistoricalEventEditorComponent, HistoricalEventsPartComponent, INDEX_KEYWORDS_PART_SCHEMA, INDEX_KEYWORDS_PART_TYPEID, IndexKeywordComponent, IndexKeywordsPartComponent, KEYWORDS_PART_SCHEMA, KEYWORDS_PART_TYPEID, KeywordsPartComponent, METADATA_PART_SCHEMA, METADATA_PART_TYPEID, MetadataPartComponent, NAMES_PART_SCHEMA, NAMES_PART_TYPEID, NOTE_PART_SCHEMA, NOTE_PART_TYPEID, NamesPartComponent, NotePartComponent, PHYSICAL_MEASUREMENTS_PART_SCHEMA, PHYSICAL_MEASUREMENTS_PART_TYPEID, PHYSICAL_STATES_PART_SCHEMA, PHYSICAL_STATES_PART_TYPEID, PIN_LINKS_FRAGMENT_SCHEMA, PIN_LINKS_FRAGMENT_TYPEID, PIN_LINKS_PART_SCHEMA, PIN_LINKS_PART_TYPEID, PhysicalMeasurementsPartComponent, PhysicalStatesPartComponent, PinLinksFragmentComponent, PinLinksPartComponent, RelatedEntityComponent, TEXT_TILE_TEXT_DATA_NAME, TILEDTEXTPART_SCHEMA, TILED_TEXT_PART_TYPEID, TOKEN_TEXT_PART_SCHEMA, TOKEN_TEXT_PART_TYPEID, TextTileComponent, TiledDataComponent, TiledTextPartComponent, TokenTextPartComponent };
|
|
4108
|
+
export type { AssertedHistoricalDatesPart, BibAuthor, BibEntry, BibliographyPart, CategoriesPart, ChronologyFragment, ChronotopesPart, Comment, CommentFragment, CommentPart, DecoratedCountsPart, DistrictLocationPart, DocReferencesPart, ExternalIdsPart, FlagsPart, HistoricalDatePart, HistoricalEvent, HistoricalEventsPart, IndexKeyword, IndexKeywordsPart, Keyword, KeywordsPart, MetadataPart, Metadatum, NamesPart, NotePart, PhysicalMeasurementsPart, PhysicalStatesPart, PinLinksFragment, PinLinksPart, RelatedEntity, TextTile, TextTileRow, TiledTextPart, TokenTextLine, TokenTextPart };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrmidon/cadmus-part-general-ui",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"description": "Cadmus - generic parts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Cadmus"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@cisstech/nge": "^18.2.1",
|
|
20
20
|
"@myrmidon/ngx-tools": "^2.0.0",
|
|
21
21
|
"@myrmidon/ngx-mat-tools": "^1.0.0",
|
|
22
|
-
"@myrmidon/cadmus-refs-asserted-ids": "^10.0.
|
|
22
|
+
"@myrmidon/cadmus-refs-asserted-ids": "^10.0.8",
|
|
23
23
|
"@myrmidon/cadmus-refs-doc-references": "^10.0.1",
|
|
24
24
|
"@myrmidon/cadmus-refs-historical-date": "9.0.1",
|
|
25
25
|
"@myrmidon/cadmus-refs-asserted-chronotope": "10.0.2",
|