@myrmidon/cadmus-ui 15.1.1 → 15.1.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
@@ -1,6 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { OnInit, ElementRef, OnDestroy, Type } from '@angular/core';
3
3
  import { FormGroup, UntypedFormGroup, FormArray, FormControl, FormBuilder, UntypedFormControl, UntypedFormBuilder, ValidatorFn, AbstractControl } from '@angular/forms';
4
+ import * as _myrmidon_cadmus_core from '@myrmidon/cadmus-core';
4
5
  import { TokenLocation, TextLayerService, FacetDefinition, FlagDefinition, LayerHint, DataPinInfo, IndexLookupDefinitions, ThesaurusEntry as ThesaurusEntry$1, Thesaurus, PartTypeIds, Part, Fragment, PartIdentity, FragmentIdentity, EditedObject } from '@myrmidon/cadmus-core';
5
6
  import { DialogService } from '@myrmidon/ngx-mat-tools';
6
7
  import { Observable, BehaviorSubject } from 'rxjs';
@@ -415,7 +416,6 @@ declare function getPartIdName(typeId: string, roleId?: string | null, typeThesa
415
416
  */
416
417
  declare class PartBadgeComponent {
417
418
  private _facetService;
418
- private _colorService;
419
419
  /**
420
420
  * The badge type: 0=part and role, 1=part only, 2=role only.
421
421
  */
@@ -432,20 +432,31 @@ declare class PartBadgeComponent {
432
432
  * The part type IDs.
433
433
  */
434
434
  readonly partTypeIds: _angular_core.InputSignal<PartTypeIds | undefined>;
435
- readonly typeName: _angular_core.WritableSignal<string | undefined>;
436
- readonly roleName: _angular_core.WritableSignal<string | undefined>;
437
- readonly color: _angular_core.WritableSignal<string>;
438
- readonly contrastColor: _angular_core.WritableSignal<string>;
439
- constructor(_facetService: FacetService, _colorService: ColorService);
435
+ /**
436
+ * The part type name.
437
+ */
438
+ readonly typeName: _angular_core.Signal<string | undefined>;
439
+ /**
440
+ * The part role name.
441
+ */
442
+ readonly roleName: _angular_core.Signal<string | undefined>;
443
+ /**
444
+ * The part badge color.
445
+ */
446
+ readonly color: _angular_core.Signal<string>;
447
+ /**
448
+ * The part definition matching the part type ID and role ID.
449
+ */
450
+ readonly partDefinition: _angular_core.Signal<_myrmidon_cadmus_core.PartDefinition | undefined>;
451
+ constructor(_facetService: FacetService);
440
452
  private getPartColor;
441
453
  /**
442
454
  * Get the role's human-friendly name from its ID.
443
455
  * @param roleId The role ID.
444
456
  * @param typeThesaurus The types thesaurus.
445
- * @returns The name.?
457
+ * @returns The name or undefined.
446
458
  */
447
459
  private getRoleIdName;
448
- private updateBadge;
449
460
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PartBadgeComponent, never>;
450
461
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PartBadgeComponent, "cadmus-part-badge", never, { "badgeType": { "alias": "badgeType"; "required": false; "isSignal": true; }; "typeThesaurus": { "alias": "typeThesaurus"; "required": false; "isSignal": true; }; "facetDefinition": { "alias": "facetDefinition"; "required": false; "isSignal": true; }; "partTypeIds": { "alias": "partTypeIds"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
451
462
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/cadmus-ui",
3
- "version": "15.1.1",
3
+ "version": "15.1.3",
4
4
  "description": "Cadmus - general UI components.",
5
5
  "keywords": [
6
6
  "Cadmus"