@myrmidon/cadmus-refs-asserted-ids 10.0.8 → 10.0.10
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/README.md +62 -60
- package/fesm2022/myrmidon-cadmus-refs-asserted-ids.mjs +170 -261
- package/fesm2022/myrmidon-cadmus-refs-asserted-ids.mjs.map +1 -1
- package/index.d.ts +21 -34
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { OnInit, OnDestroy } from '@angular/core';
|
|
|
3
3
|
import { FormControl, FormGroup, FormBuilder } from '@angular/forms';
|
|
4
4
|
import { RamStorageService } from '@myrmidon/ngx-tools';
|
|
5
5
|
import { Assertion } from '@myrmidon/cadmus-refs-assertion';
|
|
6
|
-
import { Item, DataPinInfo, Part, IndexLookupDefinitions,
|
|
6
|
+
import { Item, DataPinInfo, Part, IndexLookupDefinitions, IndexLookupDefinition, ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
7
7
|
import { RefLookupService, RefLookupFilter, RefLookupConfig, RefLookupSetEvent } from '@myrmidon/cadmus-refs-lookup';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
import { ItemService, ThesaurusService } from '@myrmidon/cadmus-api';
|
|
@@ -131,9 +131,12 @@ declare class PinTargetLookupComponent implements OnInit, OnDestroy {
|
|
|
131
131
|
* Emitted when the user changes the external lookup configuration.
|
|
132
132
|
*/
|
|
133
133
|
readonly extLookupConfigChange: _angular_core.OutputEmitterRef<RefLookupConfig>;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
readonly filter: _angular_core.WritableSignal<PinRefLookupFilter>;
|
|
135
|
+
readonly pinFilterOptions: _angular_core.WritableSignal<IndexLookupDefinition | undefined>;
|
|
136
|
+
readonly lookupData: _angular_core.WritableSignal<PinLookupData | undefined>;
|
|
137
|
+
readonly modelEntries: _angular_core.WritableSignal<ThesaurusEntry[]>;
|
|
138
|
+
readonly partTypeKeys: _angular_core.WritableSignal<string[]>;
|
|
139
|
+
readonly itemParts: _angular_core.WritableSignal<Part[]>;
|
|
137
140
|
item: FormControl<Item | null>;
|
|
138
141
|
itemPart: FormControl<Part | null>;
|
|
139
142
|
partTypeKey: FormControl<string | null>;
|
|
@@ -142,9 +145,6 @@ declare class PinTargetLookupComponent implements OnInit, OnDestroy {
|
|
|
142
145
|
byTypeMode: FormControl<boolean>;
|
|
143
146
|
external: FormControl<boolean>;
|
|
144
147
|
form: FormGroup;
|
|
145
|
-
filter: PinRefLookupFilter;
|
|
146
|
-
pinFilterOptions?: IndexLookupDefinition;
|
|
147
|
-
lookupData?: PinLookupData;
|
|
148
148
|
constructor(_presetLookupDefs: IndexLookupDefinitions, itemLookupService: ItemRefLookupService, pinLookupService: PinRefLookupService, _itemService: ItemService, _thesService: ThesaurusService, _snackbar: MatSnackBar, formBuilder: FormBuilder);
|
|
149
149
|
private emitTargetChange;
|
|
150
150
|
private forceByItem;
|
|
@@ -206,8 +206,8 @@ declare class AssertedCompositeIdComponent {
|
|
|
206
206
|
lookupDefs: IndexLookupDefinitions;
|
|
207
207
|
private _updatingForm;
|
|
208
208
|
private _lookupConfigDirty;
|
|
209
|
-
extLookupConfigs: RefLookupConfig[]
|
|
210
|
-
targetExpanded: boolean
|
|
209
|
+
readonly extLookupConfigs: _angular_core.WritableSignal<RefLookupConfig[]>;
|
|
210
|
+
readonly targetExpanded: _angular_core.WritableSignal<boolean>;
|
|
211
211
|
target: FormControl<PinTarget | null>;
|
|
212
212
|
scope: FormControl<string | null>;
|
|
213
213
|
tag: FormControl<string | null>;
|
|
@@ -281,14 +281,12 @@ declare class AssertedCompositeIdComponent {
|
|
|
281
281
|
*/
|
|
282
282
|
declare class AssertedCompositeIdsComponent {
|
|
283
283
|
private _dialogService;
|
|
284
|
-
private _ids;
|
|
285
|
-
private _editedIndex;
|
|
286
|
-
edited?: AssertedCompositeId;
|
|
287
284
|
/**
|
|
288
285
|
* The asserted IDs.
|
|
289
286
|
*/
|
|
290
|
-
|
|
291
|
-
|
|
287
|
+
readonly ids: _angular_core.ModelSignal<AssertedCompositeId[]>;
|
|
288
|
+
readonly editedIndex: _angular_core.WritableSignal<number>;
|
|
289
|
+
readonly edited: _angular_core.WritableSignal<AssertedCompositeId | undefined>;
|
|
292
290
|
readonly idScopeEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
293
291
|
readonly idTagEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
294
292
|
readonly assTagEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
@@ -321,15 +319,7 @@ declare class AssertedCompositeIdsComponent {
|
|
|
321
319
|
* The default part type key.
|
|
322
320
|
*/
|
|
323
321
|
readonly defaultPartTypeKey: _angular_core.InputSignal<string | undefined>;
|
|
324
|
-
|
|
325
|
-
* Emitted whenever any ID changes.
|
|
326
|
-
*/
|
|
327
|
-
readonly idsChange: _angular_core.OutputEmitterRef<AssertedCompositeId[]>;
|
|
328
|
-
entries: FormControl<AssertedCompositeId[]>;
|
|
329
|
-
form: FormGroup;
|
|
330
|
-
constructor(formBuilder: FormBuilder, _dialogService: DialogService);
|
|
331
|
-
private updateForm;
|
|
332
|
-
private emitIdsChange;
|
|
322
|
+
constructor(_dialogService: DialogService);
|
|
333
323
|
addId(): void;
|
|
334
324
|
editId(id: AssertedCompositeId, index: number): void;
|
|
335
325
|
closeId(): void;
|
|
@@ -339,7 +329,7 @@ declare class AssertedCompositeIdsComponent {
|
|
|
339
329
|
moveIdDown(index: number): void;
|
|
340
330
|
onIdChange(id?: AssertedCompositeId): void;
|
|
341
331
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AssertedCompositeIdsComponent, never>;
|
|
342
|
-
static ɵcmp: _angular_core.ɵɵ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; }; }, { "
|
|
332
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AssertedCompositeIdsComponent, "cadmus-refs-asserted-composite-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; }; "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; }; }, { "ids": "idsChange"; }, never, never, true, never>;
|
|
343
333
|
}
|
|
344
334
|
|
|
345
335
|
/**
|
|
@@ -366,7 +356,7 @@ declare class AssertedIdComponent implements OnInit, OnDestroy {
|
|
|
366
356
|
scope: FormControl<string | null>;
|
|
367
357
|
assertion: FormControl<Assertion | null>;
|
|
368
358
|
form: FormGroup;
|
|
369
|
-
lookupExpanded: boolean
|
|
359
|
+
readonly lookupExpanded: _angular_core.WritableSignal<boolean>;
|
|
370
360
|
readonly idScopeEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
371
361
|
readonly idTagEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
372
362
|
readonly assTagEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
@@ -407,8 +397,8 @@ declare class AssertedIdComponent implements OnInit, OnDestroy {
|
|
|
407
397
|
*/
|
|
408
398
|
declare class AssertedIdsComponent {
|
|
409
399
|
private _dialogService;
|
|
410
|
-
|
|
411
|
-
edited
|
|
400
|
+
readonly editedIndex: _angular_core.WritableSignal<number>;
|
|
401
|
+
readonly edited: _angular_core.WritableSignal<AssertedId | undefined>;
|
|
412
402
|
/**
|
|
413
403
|
* The asserted IDs.
|
|
414
404
|
*/
|
|
@@ -418,14 +408,11 @@ declare class AssertedIdsComponent {
|
|
|
418
408
|
readonly assTagEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
419
409
|
readonly refTypeEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
420
410
|
readonly refTagEntries: _angular_core.InputSignal<ThesaurusEntry[] | undefined>;
|
|
421
|
-
|
|
422
|
-
form: FormGroup;
|
|
423
|
-
constructor(formBuilder: FormBuilder, _dialogService: DialogService);
|
|
424
|
-
private updateForm;
|
|
411
|
+
constructor(_dialogService: DialogService);
|
|
425
412
|
addId(): void;
|
|
426
413
|
editId(id: AssertedId, index: number): void;
|
|
427
414
|
closeId(): void;
|
|
428
|
-
saveId(
|
|
415
|
+
saveId(id: AssertedId): void;
|
|
429
416
|
deleteId(index: number): void;
|
|
430
417
|
moveIdUp(index: number): void;
|
|
431
418
|
moveIdDown(index: number): void;
|
|
@@ -452,8 +439,8 @@ declare class ScopedPinLookupComponent {
|
|
|
452
439
|
lookupDefs: IndexLookupDefinitions;
|
|
453
440
|
key: FormControl<string | null>;
|
|
454
441
|
keyForm: FormGroup;
|
|
455
|
-
keys: string[]
|
|
456
|
-
info
|
|
442
|
+
readonly keys: _angular_core.WritableSignal<string[]>;
|
|
443
|
+
readonly info: _angular_core.WritableSignal<LookupInfo | undefined>;
|
|
457
444
|
id: FormControl<string | null>;
|
|
458
445
|
idForm: FormGroup;
|
|
459
446
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrmidon/cadmus-refs-asserted-ids",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.10",
|
|
4
4
|
"description": "Cadmus - asserted IDs components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Cadmus",
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@angular/common": "^20.0.0",
|
|
19
19
|
"@angular/core": "^20.0.0",
|
|
20
|
+
"@angular/material": "^20.0.0",
|
|
20
21
|
"@myrmidon/ngx-mat-tools": "^1.0.0",
|
|
21
22
|
"@myrmidon/cadmus-api": "^14.0.3",
|
|
22
|
-
"@myrmidon/cadmus-refs-assertion": "^10.0.
|
|
23
|
+
"@myrmidon/cadmus-refs-assertion": "^10.0.4"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"tslib": "^2.3.0"
|