@myrmidon/cadmus-part-general-ui 14.0.2 → 14.0.3

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';
@@ -1907,6 +1910,105 @@ declare class ExternalIdsPartComponent extends ModelEditorComponentBase<External
1907
1910
  static ɵcmp: i0.ɵɵComponentDeclaration<ExternalIdsPartComponent, "cadmus-refs-external-ids-part", never, {}, {}, never, never, true, never>;
1908
1911
  }
1909
1912
 
1913
+ /**
1914
+ * The flags part model.
1915
+ */
1916
+ interface FlagsPart extends Part {
1917
+ flags: string[];
1918
+ notes?: {
1919
+ [key: string]: string;
1920
+ };
1921
+ }
1922
+ /**
1923
+ * The type ID used to identify the FlagsPart type.
1924
+ */
1925
+ declare const FLAGS_PART_TYPEID = "it.vedph.flags";
1926
+ /**
1927
+ * JSON schema for the Flags part.
1928
+ * You can use the JSON schema tool at https://jsonschema.net/.
1929
+ */
1930
+ declare const FLAGS_PART_SCHEMA: {
1931
+ $schema: string;
1932
+ $id: string;
1933
+ type: string;
1934
+ title: string;
1935
+ required: string[];
1936
+ properties: {
1937
+ timeCreated: {
1938
+ type: string;
1939
+ pattern: string;
1940
+ };
1941
+ creatorId: {
1942
+ type: string;
1943
+ };
1944
+ timeModified: {
1945
+ type: string;
1946
+ pattern: string;
1947
+ };
1948
+ userId: {
1949
+ type: string;
1950
+ };
1951
+ id: {
1952
+ type: string;
1953
+ pattern: string;
1954
+ };
1955
+ itemId: {
1956
+ type: string;
1957
+ pattern: string;
1958
+ };
1959
+ typeId: {
1960
+ type: string;
1961
+ pattern: string;
1962
+ };
1963
+ roleId: {
1964
+ type: string[];
1965
+ pattern: string;
1966
+ };
1967
+ flags: {
1968
+ type: string;
1969
+ items: {
1970
+ type: string;
1971
+ pattern: string;
1972
+ };
1973
+ minItems: number;
1974
+ };
1975
+ notes: {
1976
+ type: string;
1977
+ additionalProperties: {
1978
+ type: string;
1979
+ };
1980
+ };
1981
+ };
1982
+ };
1983
+
1984
+ /**
1985
+ * Flags part editor component.
1986
+ * Thesauri: flags.
1987
+ * Settings: note set definitions for this part type (and role). If not defined,
1988
+ * no notes will be available.
1989
+ * See https://github.com/vedph/cadmus-bricks-shell-v3/blob/master/projects/myrmidon/cadmus-ui-note-set/README.md.
1990
+ */
1991
+ declare class FlagsPartComponent extends ModelEditorComponentBase<FlagsPart> implements OnInit {
1992
+ flags: FormControl<string[]>;
1993
+ notes: FormControl<NoteSet>;
1994
+ readonly settings: i0.WritableSignal<NoteSet | undefined>;
1995
+ readonly flagEntries: i0.WritableSignal<ThesaurusEntry[]>;
1996
+ featureFlags: i0.Signal<Flag[]>;
1997
+ constructor(authService: AuthJwtService, formBuilder: FormBuilder);
1998
+ ngOnInit(): Promise<void>;
1999
+ protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
2000
+ private updateThesauri;
2001
+ private getNoteSet;
2002
+ private updateForm;
2003
+ protected onDataSet(data?: EditedObject<FlagsPart>): void;
2004
+ onFlagsCheckedIdsChange(ids: string[]): void;
2005
+ onNoteChange(note: KeyValue<string, string | null>): void;
2006
+ onSetChange(set: NoteSet): void;
2007
+ protected getValue(): FlagsPart;
2008
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlagsPartComponent, never>;
2009
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlagsPartComponent, "cadmus-flags-part", never, {}, {}, never, never, true, never>;
2010
+ }
2011
+
1910
2012
  /**
1911
2013
  * The historical events part model.
1912
2014
  */
@@ -3994,5 +4096,5 @@ declare class TokenTextPartComponent extends ModelEditorComponentBase<TokenTextP
3994
4096
  static ɵcmp: i0.ɵɵComponentDeclaration<TokenTextPartComponent, "cadmus-token-text-part", never, {}, {}, never, never, true, never>;
3995
4097
  }
3996
4098
 
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 };
4099
+ 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 };
4100
+ 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.2",
3
+ "version": "14.0.3",
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.6",
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",