@myrmidon/cadmus-refs-asserted-ids 6.0.1 → 8.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.
@@ -1,6 +1,6 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
- import { RamStorageService } from '@myrmidon/ng-tools';
3
+ import { RamStorageService } from '@myrmidon/ngx-tools';
4
4
  import { IndexLookupDefinitions, ThesaurusEntry } from '@myrmidon/cadmus-core';
5
5
  import { Assertion } from '@myrmidon/cadmus-refs-assertion';
6
6
  import { RefLookupConfig, RefLookupSetEvent } from '@myrmidon/cadmus-refs-lookup';
@@ -32,7 +32,6 @@ export declare class AssertedCompositeIdComponent implements OnInit {
32
32
  lookupService: PinRefLookupService;
33
33
  lookupDefs: IndexLookupDefinitions;
34
34
  private _updatingForm;
35
- private _id;
36
35
  extLookupConfigs: RefLookupConfig[];
37
36
  targetExpanded: boolean;
38
37
  target: FormControl<PinTarget | null>;
@@ -40,39 +39,38 @@ export declare class AssertedCompositeIdComponent implements OnInit {
40
39
  tag: FormControl<string | null>;
41
40
  assertion: FormControl<Assertion | null>;
42
41
  form: FormGroup;
43
- idScopeEntries?: ThesaurusEntry[];
44
- idTagEntries?: ThesaurusEntry[];
45
- assTagEntries?: ThesaurusEntry[];
46
- refTypeEntries: ThesaurusEntry[] | undefined;
47
- refTagEntries: ThesaurusEntry[] | undefined;
42
+ readonly idScopeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
43
+ readonly idTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
44
+ readonly assTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
45
+ readonly refTypeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
46
+ readonly refTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
48
47
  /**
49
48
  * The ID being edited.
50
49
  */
51
- get id(): AssertedCompositeId | undefined | null;
52
- set id(value: AssertedCompositeId | undefined | null);
50
+ readonly id: import("@angular/core").ModelSignal<AssertedCompositeId | undefined>;
53
51
  /**
54
52
  * True if when a new ID is set it should be internal rather than
55
53
  * external by default.
56
54
  */
57
- internalDefault: boolean | undefined;
55
+ readonly internalDefault: import("@angular/core").InputSignal<boolean | undefined>;
58
56
  /**
59
57
  * True if the UI has a submit button.
60
58
  */
61
- hasSubmit: boolean | undefined;
59
+ readonly hasSubmit: import("@angular/core").InputSignal<boolean | undefined>;
62
60
  /**
63
61
  * True when the internal UI preselected mode should be by type rather than
64
62
  * by item. User can change mode unless modeSwitching is false.
65
63
  */
66
- pinByTypeMode?: boolean;
64
+ readonly pinByTypeMode: import("@angular/core").InputSignal<boolean | undefined>;
67
65
  /**
68
66
  * True when the user can switch between by-type and by-item mode in
69
67
  * the internal UI.
70
68
  */
71
- canSwitchMode?: boolean;
69
+ readonly canSwitchMode: import("@angular/core").InputSignal<boolean | undefined>;
72
70
  /**
73
71
  * True when the user can edit the target's gid/label for internal targets.
74
72
  */
75
- canEditTarget?: boolean;
73
+ readonly canEditTarget: import("@angular/core").InputSignal<boolean | undefined>;
76
74
  /**
77
75
  * The lookup definitions to be used for the by-type lookup in the internal UI.
78
76
  * If not specified, the lookup definitions will be got via injection
@@ -81,24 +79,23 @@ export declare class AssertedCompositeIdComponent implements OnInit {
81
79
  * if this is not available either, the by-type lookup will be
82
80
  * disabled.
83
81
  */
84
- lookupDefinitions?: IndexLookupDefinitions;
82
+ readonly lookupDefinitions: import("@angular/core").InputSignal<IndexLookupDefinitions | undefined>;
85
83
  /**
86
84
  * The default part type key to be used.
87
85
  */
88
- defaultPartTypeKey?: string | null;
86
+ readonly defaultPartTypeKey: import("@angular/core").InputSignal<string | undefined>;
89
87
  /**
90
- * Emitted whenever the ID changes.
88
+ * Emitted whenever the user requests to close the editor.
91
89
  */
92
- idChange: EventEmitter<AssertedCompositeId>;
90
+ readonly editorClose: import("@angular/core").OutputEmitterRef<void>;
93
91
  /**
94
- * Emitted whenever the user requests to close the editor.
92
+ * Emitted when the user requests more.
95
93
  */
96
- editorClose: EventEmitter<any>;
97
- extMoreRequest: EventEmitter<RefLookupSetEvent>;
94
+ readonly extMoreRequest: import("@angular/core").OutputEmitterRef<RefLookupSetEvent>;
98
95
  constructor(formBuilder: FormBuilder, lookupService: PinRefLookupService, lookupDefs: IndexLookupDefinitions, settings: RamStorageService);
99
96
  ngOnInit(): void;
100
97
  onAssertionChange(assertion: Assertion | undefined): void;
101
- onTargetChange(target: PinTarget): void;
98
+ onTargetChange(target?: PinTarget): void;
102
99
  private updateForm;
103
100
  private getId;
104
101
  emitIdChange(): void;
@@ -108,5 +105,5 @@ export declare class AssertedCompositeIdComponent implements OnInit {
108
105
  cancel(): void;
109
106
  save(): void;
110
107
  static ɵfac: i0.ɵɵFactoryDeclaration<AssertedCompositeIdComponent, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<AssertedCompositeIdComponent, "cadmus-refs-asserted-composite-id", never, { "idScopeEntries": { "alias": "idScopeEntries"; "required": false; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; }; "id": { "alias": "id"; "required": false; }; "internalDefault": { "alias": "internalDefault"; "required": false; }; "hasSubmit": { "alias": "hasSubmit"; "required": false; }; "pinByTypeMode": { "alias": "pinByTypeMode"; "required": false; }; "canSwitchMode": { "alias": "canSwitchMode"; "required": false; }; "canEditTarget": { "alias": "canEditTarget"; "required": false; }; "lookupDefinitions": { "alias": "lookupDefinitions"; "required": false; }; "defaultPartTypeKey": { "alias": "defaultPartTypeKey"; "required": false; }; }, { "idChange": "idChange"; "editorClose": "editorClose"; "extMoreRequest": "extMoreRequest"; }, never, never, true, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssertedCompositeIdComponent, "cadmus-refs-asserted-composite-id", never, { "idScopeEntries": { "alias": "idScopeEntries"; "required": false; "isSignal": true; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; "isSignal": true; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; "isSignal": true; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; "isSignal": true; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "internalDefault": { "alias": "internalDefault"; "required": false; "isSignal": true; }; "hasSubmit": { "alias": "hasSubmit"; "required": false; "isSignal": true; }; "pinByTypeMode": { "alias": "pinByTypeMode"; "required": false; "isSignal": true; }; "canSwitchMode": { "alias": "canSwitchMode"; "required": false; "isSignal": true; }; "canEditTarget": { "alias": "canEditTarget"; "required": false; "isSignal": true; }; "lookupDefinitions": { "alias": "lookupDefinitions"; "required": false; "isSignal": true; }; "defaultPartTypeKey": { "alias": "defaultPartTypeKey"; "required": false; "isSignal": true; }; }, { "id": "idChange"; "editorClose": "editorClose"; "extMoreRequest": "extMoreRequest"; }, never, never, true, never>;
112
109
  }
@@ -1,11 +1,10 @@
1
- import { EventEmitter } from '@angular/core';
2
1
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
2
  import { IndexLookupDefinitions, ThesaurusEntry } from '@myrmidon/cadmus-core';
4
- import { DialogService } from '@myrmidon/ng-mat-tools';
3
+ import { DialogService } from '@myrmidon/ngx-mat-tools';
5
4
  import { AssertedCompositeId } from '../asserted-composite-id/asserted-composite-id.component';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
8
- * Asserted IDs editor.
7
+ * Asserted composite IDs editor.
9
8
  */
10
9
  export declare class AssertedCompositeIdsComponent {
11
10
  private _dialogService;
@@ -17,25 +16,25 @@ export declare class AssertedCompositeIdsComponent {
17
16
  */
18
17
  get ids(): AssertedCompositeId[];
19
18
  set ids(value: AssertedCompositeId[]);
20
- idScopeEntries?: ThesaurusEntry[];
21
- idTagEntries?: ThesaurusEntry[];
22
- assTagEntries?: ThesaurusEntry[];
23
- refTypeEntries: ThesaurusEntry[] | undefined;
24
- refTagEntries: ThesaurusEntry[] | undefined;
19
+ readonly idScopeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
20
+ readonly idTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
21
+ readonly assTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
22
+ readonly refTypeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
23
+ readonly refTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
25
24
  /**
26
25
  * True when the internal UI preselected mode should be by type rather than
27
26
  * by item. User can change mode unless modeSwitching is false.
28
27
  */
29
- pinByTypeMode?: boolean;
28
+ readonly pinByTypeMode: import("@angular/core").InputSignal<boolean | undefined>;
30
29
  /**
31
30
  * True when the user can switch between by-type and by-item mode in
32
31
  * the internal UI.
33
32
  */
34
- canSwitchMode?: boolean;
33
+ readonly canSwitchMode: import("@angular/core").InputSignal<boolean | undefined>;
35
34
  /**
36
35
  * True when the user can edit the target's gid/label for internal targets.
37
36
  */
38
- canEditTarget?: boolean;
37
+ readonly canEditTarget: import("@angular/core").InputSignal<boolean | undefined>;
39
38
  /**
40
39
  * The lookup definitions to be used for the by-type lookup in the internal UI.
41
40
  * If not specified, the lookup definitions will be got via injection
@@ -44,20 +43,20 @@ export declare class AssertedCompositeIdsComponent {
44
43
  * if this is not available either, the by-type lookup will be
45
44
  * disabled.
46
45
  */
47
- lookupDefinitions?: IndexLookupDefinitions;
46
+ readonly lookupDefinitions: import("@angular/core").InputSignal<IndexLookupDefinitions | undefined>;
48
47
  /**
49
48
  * The default part type key.
50
49
  */
51
- defaultPartTypeKey?: string | null;
50
+ readonly defaultPartTypeKey: import("@angular/core").InputSignal<string | undefined>;
52
51
  /**
53
52
  * True if when a new ID is set it should be internal rather than
54
53
  * external by default.
55
54
  */
56
- internalDefault: boolean | undefined;
55
+ readonly internalDefault: import("@angular/core").InputSignal<boolean | undefined>;
57
56
  /**
58
57
  * Emitted whenever any ID changes.
59
58
  */
60
- idsChange: EventEmitter<AssertedCompositeId[]>;
59
+ readonly idsChange: import("@angular/core").OutputEmitterRef<AssertedCompositeId[]>;
61
60
  entries: FormControl<AssertedCompositeId[]>;
62
61
  form: FormGroup;
63
62
  constructor(formBuilder: FormBuilder, _dialogService: DialogService);
@@ -70,7 +69,7 @@ export declare class AssertedCompositeIdsComponent {
70
69
  deleteId(index: number): void;
71
70
  moveIdUp(index: number): void;
72
71
  moveIdDown(index: number): void;
73
- onIdChange(id: AssertedCompositeId): void;
72
+ onIdChange(id?: AssertedCompositeId): void;
74
73
  static ɵfac: i0.ɵɵFactoryDeclaration<AssertedCompositeIdsComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<AssertedCompositeIdsComponent, "cadmus-refs-asserted-composite-ids", never, { "ids": { "alias": "ids"; "required": false; }; "idScopeEntries": { "alias": "idScopeEntries"; "required": false; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; }; "pinByTypeMode": { "alias": "pinByTypeMode"; "required": false; }; "canSwitchMode": { "alias": "canSwitchMode"; "required": false; }; "canEditTarget": { "alias": "canEditTarget"; "required": false; }; "lookupDefinitions": { "alias": "lookupDefinitions"; "required": false; }; "defaultPartTypeKey": { "alias": "defaultPartTypeKey"; "required": false; }; "internalDefault": { "alias": "internalDefault"; "required": false; }; }, { "idsChange": "idsChange"; }, never, never, true, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssertedCompositeIdsComponent, "cadmus-refs-asserted-composite-ids", never, { "ids": { "alias": "ids"; "required": false; }; "idScopeEntries": { "alias": "idScopeEntries"; "required": false; "isSignal": true; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; "isSignal": true; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; "isSignal": true; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; "isSignal": true; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; "isSignal": true; }; "pinByTypeMode": { "alias": "pinByTypeMode"; "required": false; "isSignal": true; }; "canSwitchMode": { "alias": "canSwitchMode"; "required": false; "isSignal": true; }; "canEditTarget": { "alias": "canEditTarget"; "required": false; "isSignal": true; }; "lookupDefinitions": { "alias": "lookupDefinitions"; "required": false; "isSignal": true; }; "defaultPartTypeKey": { "alias": "defaultPartTypeKey"; "required": false; "isSignal": true; }; "internalDefault": { "alias": "internalDefault"; "required": false; "isSignal": true; }; }, { "idsChange": "idsChange"; }, never, never, true, never>;
76
75
  }
@@ -1,9 +1,12 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
3
  import { IndexLookupDefinitions, ThesaurusEntry } from '@myrmidon/cadmus-core';
4
4
  import { Assertion } from '@myrmidon/cadmus-refs-assertion';
5
5
  import { PinRefLookupService } from '../services/pin-ref-lookup.service';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * An asserted ID.
9
+ */
7
10
  export interface AssertedId {
8
11
  tag?: string;
9
12
  value: string;
@@ -11,11 +14,14 @@ export interface AssertedId {
11
14
  scope: string;
12
15
  assertion?: Assertion;
13
16
  }
14
- export declare class AssertedIdComponent implements OnInit {
17
+ /**
18
+ * Asserted ID editor component.
19
+ */
20
+ export declare class AssertedIdComponent implements OnInit, OnDestroy {
15
21
  lookupService: PinRefLookupService;
16
22
  lookupDefs: IndexLookupDefinitions;
23
+ private _sub?;
17
24
  private _updatingForm;
18
- private _id;
19
25
  tag: FormControl<string | null>;
20
26
  value: FormControl<string | null>;
21
27
  label: FormControl<string | null>;
@@ -23,22 +29,30 @@ export declare class AssertedIdComponent implements OnInit {
23
29
  assertion: FormControl<Assertion | null>;
24
30
  form: FormGroup;
25
31
  lookupExpanded: boolean;
26
- idScopeEntries?: ThesaurusEntry[];
27
- idTagEntries?: ThesaurusEntry[];
28
- assTagEntries?: ThesaurusEntry[];
29
- refTypeEntries: ThesaurusEntry[] | undefined;
30
- refTagEntries: ThesaurusEntry[] | undefined;
31
- get id(): AssertedId | undefined | null;
32
- set id(value: AssertedId | undefined | null);
32
+ readonly idScopeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
33
+ readonly idTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
34
+ readonly assTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
35
+ readonly refTypeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
36
+ readonly refTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
37
+ /**
38
+ * The asserted ID being edited.
39
+ */
40
+ readonly id: import("@angular/core").ModelSignal<AssertedId | undefined>;
33
41
  /**
34
42
  * True to hide the pin-based EID lookup UI.
35
43
  */
36
- noEidLookup: boolean | undefined;
37
- hasSubmit: boolean | undefined;
38
- idChange: EventEmitter<AssertedId>;
39
- editorClose: EventEmitter<any>;
44
+ readonly noEidLookup: import("@angular/core").InputSignal<boolean | undefined>;
45
+ /**
46
+ * True to show the submit button.
47
+ */
48
+ readonly hasSubmit: import("@angular/core").InputSignal<boolean | undefined>;
49
+ /**
50
+ * Emitted when the editor is closed.
51
+ */
52
+ readonly editorClose: import("@angular/core").OutputEmitterRef<void>;
40
53
  constructor(formBuilder: FormBuilder, lookupService: PinRefLookupService, lookupDefs: IndexLookupDefinitions);
41
54
  ngOnInit(): void;
55
+ ngOnDestroy(): void;
42
56
  onAssertionChange(assertion: Assertion | undefined): void;
43
57
  onIdPick(id: string): void;
44
58
  private updateForm;
@@ -47,5 +61,5 @@ export declare class AssertedIdComponent implements OnInit {
47
61
  cancel(): void;
48
62
  save(): void;
49
63
  static ɵfac: i0.ɵɵFactoryDeclaration<AssertedIdComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<AssertedIdComponent, "cadmus-refs-asserted-id", never, { "idScopeEntries": { "alias": "idScopeEntries"; "required": false; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; }; "id": { "alias": "id"; "required": false; }; "noEidLookup": { "alias": "noEidLookup"; "required": false; }; "hasSubmit": { "alias": "hasSubmit"; "required": false; }; }, { "idChange": "idChange"; "editorClose": "editorClose"; }, never, never, true, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssertedIdComponent, "cadmus-refs-asserted-id", never, { "idScopeEntries": { "alias": "idScopeEntries"; "required": false; "isSignal": true; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; "isSignal": true; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; "isSignal": true; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; "isSignal": true; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "noEidLookup": { "alias": "noEidLookup"; "required": false; "isSignal": true; }; "hasSubmit": { "alias": "hasSubmit"; "required": false; "isSignal": true; }; }, { "id": "idChange"; "editorClose": "editorClose"; }, never, never, true, never>;
51
65
  }
@@ -1,7 +1,6 @@
1
- import { EventEmitter } from '@angular/core';
2
1
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
2
  import { ThesaurusEntry } from '@myrmidon/cadmus-core';
4
- import { DialogService } from '@myrmidon/ng-mat-tools';
3
+ import { DialogService } from '@myrmidon/ngx-mat-tools';
5
4
  import { AssertedId } from '../asserted-id/asserted-id.component';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
@@ -9,28 +8,21 @@ import * as i0 from "@angular/core";
9
8
  */
10
9
  export declare class AssertedIdsComponent {
11
10
  private _dialogService;
12
- private _ids;
13
11
  private _editedIndex;
14
12
  edited?: AssertedId;
15
13
  /**
16
14
  * The asserted IDs.
17
15
  */
18
- get ids(): AssertedId[];
19
- set ids(value: AssertedId[]);
20
- idScopeEntries?: ThesaurusEntry[];
21
- idTagEntries?: ThesaurusEntry[];
22
- assTagEntries?: ThesaurusEntry[];
23
- refTypeEntries: ThesaurusEntry[] | undefined;
24
- refTagEntries: ThesaurusEntry[] | undefined;
25
- /**
26
- * Emitted whenever any ID changes.
27
- */
28
- idsChange: EventEmitter<AssertedId[]>;
16
+ readonly ids: import("@angular/core").ModelSignal<AssertedId[]>;
17
+ readonly idScopeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
18
+ readonly idTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
19
+ readonly assTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
20
+ readonly refTypeEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
21
+ readonly refTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
29
22
  entries: FormControl<AssertedId[]>;
30
23
  form: FormGroup;
31
24
  constructor(formBuilder: FormBuilder, _dialogService: DialogService);
32
25
  private updateForm;
33
- private emitIdsChange;
34
26
  addId(): void;
35
27
  editId(id: AssertedId, index: number): void;
36
28
  closeId(): void;
@@ -38,7 +30,7 @@ export declare class AssertedIdsComponent {
38
30
  deleteId(index: number): void;
39
31
  moveIdUp(index: number): void;
40
32
  moveIdDown(index: number): void;
41
- onIdChange(id: AssertedId): void;
33
+ onIdChange(id?: AssertedId): void;
42
34
  static ɵfac: i0.ɵɵFactoryDeclaration<AssertedIdsComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<AssertedIdsComponent, "cadmus-refs-asserted-ids", never, { "ids": { "alias": "ids"; "required": false; }; "idScopeEntries": { "alias": "idScopeEntries"; "required": false; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; }; }, { "idsChange": "idsChange"; }, never, never, true, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssertedIdsComponent, "cadmus-refs-asserted-ids", never, { "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "idScopeEntries": { "alias": "idScopeEntries"; "required": false; "isSignal": true; }; "idTagEntries": { "alias": "idTagEntries"; "required": false; "isSignal": true; }; "assTagEntries": { "alias": "assTagEntries"; "required": false; "isSignal": true; }; "refTypeEntries": { "alias": "refTypeEntries"; "required": false; "isSignal": true; }; "refTagEntries": { "alias": "refTagEntries"; "required": false; "isSignal": true; }; }, { "ids": "idsChange"; }, never, never, true, never>;
44
36
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
3
  import { ItemService, ThesaurusService } from '@myrmidon/cadmus-api';
4
4
  import { DataPinInfo, IndexLookupDefinition, IndexLookupDefinitions, Item, Part, ThesaurusEntry } from '@myrmidon/cadmus-core';
@@ -45,25 +45,24 @@ export declare class PinTargetLookupComponent implements OnInit, OnDestroy {
45
45
  private _itemService;
46
46
  private _thesService;
47
47
  private _snackbar;
48
- private _subs;
49
- private _target;
48
+ private readonly _subs;
50
49
  private _noTargetUpdate?;
50
+ private _noFormUpdate?;
51
51
  private _startWithByTypeMode?;
52
52
  /**
53
53
  * True when the by-type pin lookup mode is active.
54
54
  * User can change mode unless modeSwitching is false.
55
55
  */
56
- get pinByTypeMode(): boolean | undefined;
57
- set pinByTypeMode(value: boolean | undefined);
56
+ readonly pinByTypeMode: import("@angular/core").ModelSignal<boolean | undefined>;
58
57
  /**
59
58
  * True when the user can switch between by-type and by-item mode.
60
59
  */
61
- canSwitchMode?: boolean;
60
+ readonly canSwitchMode: import("@angular/core").ModelSignal<boolean | undefined>;
62
61
  /**
63
62
  * True when the user can edit the target's gid/label for internal
64
63
  * targets.
65
64
  */
66
- canEditTarget?: boolean;
65
+ readonly canEditTarget: import("@angular/core").InputSignal<boolean | undefined>;
67
66
  /**
68
67
  * The lookup definitions to be used for the by-type lookup. If
69
68
  * not specified, the lookup definitions will be got via injection
@@ -72,36 +71,36 @@ export declare class PinTargetLookupComponent implements OnInit, OnDestroy {
72
71
  * if this is not available either, the by-type lookup will be
73
72
  * disabled.
74
73
  */
75
- lookupDefinitions?: IndexLookupDefinitions;
74
+ readonly lookupDefinitions: import("@angular/core").ModelSignal<IndexLookupDefinitions | undefined>;
76
75
  /**
77
76
  * The optional configurations for using external lookup services.
78
77
  */
79
- extLookupConfigs: RefLookupConfig[];
78
+ readonly extLookupConfigs: import("@angular/core").InputSignal<RefLookupConfig[]>;
80
79
  /**
81
80
  * True if when a new target is set it should be internal rather than
82
81
  * external by default.
83
82
  */
84
- internalDefault: boolean | undefined;
83
+ readonly internalDefault: import("@angular/core").InputSignal<boolean | undefined>;
85
84
  /**
86
85
  * The target to be edited.
87
86
  */
88
- get target(): PinTarget | undefined | null;
89
- set target(value: PinTarget | undefined | null);
87
+ readonly target: import("@angular/core").ModelSignal<PinTarget | undefined>;
90
88
  /**
91
89
  * The default value for part type key when the by-type mode is active.
92
90
  */
93
- defaultPartTypeKey?: string | null;
91
+ readonly defaultPartTypeKey: import("@angular/core").InputSignal<string | undefined>;
94
92
  /**
95
93
  * Emitted when user closes the editor.
96
94
  */
97
- readonly editorClose: EventEmitter<any>;
95
+ readonly editorClose: import("@angular/core").OutputEmitterRef<void>;
98
96
  /**
99
- * Emitted whenever the target changes.
100
- * The event's value is the new target.
97
+ * Emitted when the user requests more items from an external lookup.
101
98
  */
102
- readonly targetChange: EventEmitter<PinTarget>;
103
- readonly extMoreRequest: EventEmitter<RefLookupSetEvent>;
104
- readonly extLookupConfigChange: EventEmitter<RefLookupConfig>;
99
+ readonly extMoreRequest: import("@angular/core").OutputEmitterRef<RefLookupSetEvent>;
100
+ /**
101
+ * Emitted when the user changes the external lookup configuration.
102
+ */
103
+ readonly extLookupConfigChange: import("@angular/core").OutputEmitterRef<RefLookupConfig>;
105
104
  modelEntries: ThesaurusEntry[];
106
105
  partTypeKeys: string[];
107
106
  itemParts: Part[];
@@ -124,6 +123,7 @@ export declare class PinTargetLookupComponent implements OnInit, OnDestroy {
124
123
  private buildGid;
125
124
  private buildLabel;
126
125
  private getTarget;
126
+ private emitChange;
127
127
  private updateTarget;
128
128
  private updateForm;
129
129
  /**
@@ -132,7 +132,7 @@ export declare class PinTargetLookupComponent implements OnInit, OnDestroy {
132
132
  *
133
133
  * @param item The item got from lookup.
134
134
  */
135
- onItemLookupChange(item: Item): void;
135
+ onItemLookupChange(item: unknown): void;
136
136
  private loadItemInfo;
137
137
  /**
138
138
  * Called when the pin lookup change. A pin is looked up by its
@@ -143,7 +143,7 @@ export declare class PinTargetLookupComponent implements OnInit, OnDestroy {
143
143
  *
144
144
  * @param info The pin info from pin lookup.
145
145
  */
146
- onPinLookupChange(info: DataPinInfo): void;
146
+ onPinLookupChange(info: unknown): void;
147
147
  onExtItemChange(event: RefLookupSetEvent): void;
148
148
  onExtMoreRequest(event: RefLookupSetEvent): void;
149
149
  onCopied(): void;
@@ -151,6 +151,6 @@ export declare class PinTargetLookupComponent implements OnInit, OnDestroy {
151
151
  close(): void;
152
152
  save(): void;
153
153
  static ɵfac: i0.ɵɵFactoryDeclaration<PinTargetLookupComponent, never>;
154
- static ɵcmp: i0.ɵɵComponentDeclaration<PinTargetLookupComponent, "cadmus-pin-target-lookup", never, { "pinByTypeMode": { "alias": "pinByTypeMode"; "required": false; }; "canSwitchMode": { "alias": "canSwitchMode"; "required": false; }; "canEditTarget": { "alias": "canEditTarget"; "required": false; }; "lookupDefinitions": { "alias": "lookupDefinitions"; "required": false; }; "extLookupConfigs": { "alias": "extLookupConfigs"; "required": false; }; "internalDefault": { "alias": "internalDefault"; "required": false; }; "target": { "alias": "target"; "required": false; }; "defaultPartTypeKey": { "alias": "defaultPartTypeKey"; "required": false; }; }, { "editorClose": "editorClose"; "targetChange": "targetChange"; "extMoreRequest": "extMoreRequest"; "extLookupConfigChange": "extLookupConfigChange"; }, never, never, true, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<PinTargetLookupComponent, "cadmus-pin-target-lookup", never, { "pinByTypeMode": { "alias": "pinByTypeMode"; "required": false; "isSignal": true; }; "canSwitchMode": { "alias": "canSwitchMode"; "required": false; "isSignal": true; }; "canEditTarget": { "alias": "canEditTarget"; "required": false; "isSignal": true; }; "lookupDefinitions": { "alias": "lookupDefinitions"; "required": false; "isSignal": true; }; "extLookupConfigs": { "alias": "extLookupConfigs"; "required": false; "isSignal": true; }; "internalDefault": { "alias": "internalDefault"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "defaultPartTypeKey": { "alias": "defaultPartTypeKey"; "required": false; "isSignal": true; }; }, { "pinByTypeMode": "pinByTypeModeChange"; "canSwitchMode": "canSwitchModeChange"; "lookupDefinitions": "lookupDefinitionsChange"; "target": "targetChange"; "editorClose": "editorClose"; "extMoreRequest": "extMoreRequest"; "extLookupConfigChange": "extLookupConfigChange"; }, never, never, true, never>;
155
155
  }
156
156
  export {};
@@ -1,4 +1,3 @@
1
- import { EventEmitter } from '@angular/core';
2
1
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
2
  import { ItemService } from '@myrmidon/cadmus-api';
4
3
  import { DataPinInfo, IndexLookupDefinitions, Item, Part } from '@myrmidon/cadmus-core';
@@ -26,10 +25,13 @@ export declare class ScopedPinLookupComponent {
26
25
  info?: LookupInfo;
27
26
  id: FormControl<string | null>;
28
27
  idForm: FormGroup;
29
- idPick: EventEmitter<string>;
28
+ /**
29
+ * Emitted whenever the user picks an ID.
30
+ */
31
+ readonly idPick: import("@angular/core").OutputEmitterRef<string>;
30
32
  constructor(formBuilder: FormBuilder, _itemService: ItemService, lookupService: PinRefLookupService, lookupDefs: IndexLookupDefinitions);
31
33
  ngOnInit(): void;
32
- onItemChange(item: DataPinInfo): void;
34
+ onItemChange(item: unknown): void;
33
35
  appendIdComponent(type: string, metaIndex?: number): void;
34
36
  pickId(): void;
35
37
  resetId(): void;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@myrmidon/cadmus-refs-asserted-ids",
3
- "version": "6.0.1",
3
+ "version": "8.0.0",
4
4
  "description": "Cadmus - asserted IDs components.",
5
5
  "keywords": [
6
6
  "Cadmus",
7
7
  "bricks"
8
8
  ],
9
- "homepage": "https://github.com/vedph/cadmus-bricks",
9
+ "homepage": "https://github.com/vedph/cadmus-bricks-shell-v3",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/vedph/cadmus-bricks"
12
+ "url": "https://github.com/vedph/cadmus-bricks-shell-v3"
13
13
  },
14
14
  "author": {
15
15
  "name": "Daniele Fusi"
@@ -17,8 +17,9 @@
17
17
  "peerDependencies": {
18
18
  "@angular/common": "^19.0.0",
19
19
  "@angular/core": "^19.0.0",
20
- "@myrmidon/ng-mat-tools": "^4.0.0",
21
- "@myrmidon/cadmus-refs-assertion": "^6.0.1"
20
+ "@myrmidon/ngx-mat-tools": "^0.0.1",
21
+ "@myrmidon/cadmus-api": "^10.1.0",
22
+ "@myrmidon/cadmus-refs-assertion": "^8.0.0"
22
23
  },
23
24
  "dependencies": {
24
25
  "tslib": "^2.3.0"