@myrmidon/cadmus-refs-asserted-ids 10.0.7 → 10.0.9

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 CHANGED
@@ -16,6 +16,8 @@ This project was generated using [Angular CLI](https://github.com/angular/angula
16
16
  - [Asserted Composite ID](#asserted-composite-id)
17
17
  - [Asserted Composite IDs](#asserted-composite-ids)
18
18
  - [History](#history)
19
+ - [10.0.9](#1009)
20
+ - [10.0.8](#1008)
19
21
  - [10.0.5](#1005)
20
22
  - [10.0.4](#1004)
21
23
  - [10.0.3](#1003)
@@ -81,25 +83,19 @@ Various components from this library provide a different level of complexity, so
81
83
  - 🔑 `AssertedIdComponent`
82
84
  - 🚩 `cadmus-refs-asserted-id`
83
85
  - ▶️ input:
84
- - id (`AssertedId? | null`)
85
- - external (`boolean?`)
86
- - hasSubmit (`boolean?`)
87
- - pinByTypeMode (`boolean?`)
88
- - canSwitchMode (`boolean?`)
89
- - canEditTarget (`boolean?`)
90
- - defaultPartTypeKey (`string?|null`)
91
- - lookupDefinitions (`IndexLookupDefinitions?`)
92
- - internalDefault (`boolean?`): true to start a new ID as internal rather than external
86
+ - `id` (`AssertedId? | null`)
87
+ - `noEidLookup` (`boolean?`)
88
+ - `hasSubmit` (`boolean?`)
93
89
  - 📚 thesauri:
94
- - `asserted-id-scopes` (idScopeEntries)
95
- - `asserted-id-tags` (idTagEntries).
96
- - `assertion-tags` (assTagEntries).
97
- - `doc-reference-types` (refTypeEntries).
98
- - `doc-reference-tags` (refTagEntries).
90
+ - `asserted-id-scopes` (for `idScopeEntries`)
91
+ - `asserted-id-tags` (for `idTagEntries`).
92
+ - `assertion-tags` (for `assTagEntries`).
93
+ - `doc-reference-types` (for `refTypeEntries`).
94
+ - `doc-reference-tags` (for `refTagEntries`).
99
95
  - 🔥 output:
100
- - idChange (`AssertedId`)
101
- - editorClose
102
- - extMoreRequest (`RefLookupSetEvent`): the user requested more about the current external lookup source.
96
+ - `idChange` (`AssertedId`)
97
+ - `editorClose`
98
+ - `extMoreRequest` (`RefLookupSetEvent`): the user requested more about the current external lookup source.
103
99
 
104
100
  The asserted ID component allows editing a simple model representing a generic ID with an optional assertion. The ID has:
105
101
 
@@ -180,30 +176,29 @@ An editable list of asserted IDs.
180
176
  - 🔑 `AssertedIdsComponent`
181
177
  - 🚩 `cadmus-refs-asserted-ids`
182
178
  - ▶️ input:
183
- - ids (`AssertedId[]`)
179
+ - `ids` (`AssertedId[]`)
184
180
  - 📚 thesauri:
185
- - `asserted-id-scopes` (idScopeEntries)
186
- - `asserted-id-tags` (idTagEntries)
187
- - `assertion-tags` (assTagEntries)
188
- - `doc-reference-types` (refTypeEntries)
189
- - `doc-reference-tags` (refTagEntries)
181
+ - `asserted-id-scopes` (for `idScopeEntries`)
182
+ - `asserted-id-tags` (for `idTagEntries`)
183
+ - `assertion-tags` (for `assTagEntries`)
184
+ - `doc-reference-types` (for `refTypeEntries`)
185
+ - `doc-reference-tags` (for `refTagEntries`)
190
186
  - 🔥 output:
191
- - idsChange (`AssertedId[]`)
187
+ - `idsChange` (`AssertedId[]`)
192
188
 
193
189
  ## PinTargetLookupComponent
194
190
 
195
191
  - ▶️ input:
196
- - target (`PinTarget? | null`)
197
- - pinByTypeMode (`boolean?`)
198
- - canSwitchMode (`boolean?`)
199
- - canEditTarget (`boolean?`)
200
- - defaultPartTypeKey (`string?|null`)
201
- - lookupDefinitions (`IndexLookupDefinitions?`)
202
- - extLookupConfigs (`RefLookupConfig[]`): the configurations of external lookup providers, if any.
203
- - internalDefault (`boolean?`): true to start a new ID as internal rather than external
192
+ - `target` (`PinTarget? | null`)
193
+ - `pinByTypeMode` (`boolean?`)
194
+ - `canSwitchMode` (`boolean?`)
195
+ - `canEditTarget` (`boolean?`)
196
+ - `defaultPartTypeKey` (`string?|null`)
197
+ - `lookupDefinitions` (`IndexLookupDefinitions?`)
198
+ - `extLookupConfigs` (`RefLookupConfig[]`): the configurations of external lookup providers, if any.
204
199
  - 🔥 output:
205
- - targetChange (`PinTarget`)
206
- - editorClose
200
+ - `targetChange` (`PinTarget`)
201
+ - `editorClose`
207
202
 
208
203
  This component is used to edit an internal or external ID via lookup, and is the core of the [asserted composite ID](#asserted-composite-id) component:
209
204
 
@@ -288,21 +283,21 @@ export const INDEX_LOOKUP_DEFINITIONS: IndexLookupDefinitions = {
288
283
  - 🔑 `AssertedCompositeIdComponent`
289
284
  - 🚩 `cadmus-refs-asserted-composite-id`
290
285
  - ▶️ input:
291
- - ids (`AssertedId[]`)
292
- - pinByTypeMode (`boolean?`)
293
- - canSwitchMode (`boolean?`)
294
- - canEditTarget (`boolean?`)
295
- - defaultPartTypeKey (`string?|null`)
296
- - lookupDefinitions (`IndexLookupDefinitions?`)
297
- - internalDefault (`boolean?`): true to start a new ID as internal rather than external
286
+ - `id` (`AssertedId`)
287
+ - `pinByTypeMode` (`boolean?`)
288
+ - `canSwitchMode` (`boolean?`)
289
+ - `canEditTarget` (`boolean?`)
290
+ - `defaultPartTypeKey` (`string?|null`)
291
+ - `lookupDefinitions` (`IndexLookupDefinitions?`)
298
292
  - 📚 thesauri:
299
- - `asserted-id-scopes` (idScopeEntries)
300
- - `asserted-id-tags` (idTagEntries)
301
- - `assertion-tags` (assTagEntries)
302
- - `doc-reference-types` (refTypeEntries)
303
- - `doc-reference-tags` (refTagEntries)
293
+ - `asserted-id-scopes` (for `idScopeEntries`)
294
+ - `asserted-id-tags` (for `idTagEntries`)
295
+ - `assertion-tags` (for `assTagEntries`)
296
+ - `doc-reference-types` (for `refTypeEntries`)
297
+ - `doc-reference-tags` (for `refTagEntries`)
304
298
  - ⚡ output:
305
- - `idsChange` (`AssertedId[]`)
299
+ - `idChange` (`AssertedId[]`)
300
+ - `editorClose`
306
301
  - `extMoreRequest` (`RefLookupSetEvent`): the user requested more about the current external lookup source.
307
302
 
308
303
  This is the most complete ID reference, which can be used for both external and internal IDs, providing full lookup in either cases. Each asserted composite ID has:
@@ -360,24 +355,31 @@ A collection of asserted composite IDs.
360
355
  - 🔑 `AssertedCompositeIdsComponent`
361
356
  - 🚩 `cadmus-refs-asserted-composite-ids`
362
357
  - ▶️ input:
363
- - ids (`AssertedId[]`)
364
- - pinByTypeMode (`boolean?`)
365
- - canSwitchMode (`boolean?`)
366
- - canEditTarget (`boolean?`)
367
- - defaultPartTypeKey (`string?|null`)
368
- - lookupDefinitions (`IndexLookupDefinitions?`)
369
- - internalDefault (`boolean?`): true to start a new ID as internal rather than external
358
+ - `ids` (`AssertedId[]`)
359
+ - `pinByTypeMode` (`boolean?`)
360
+ - `canSwitchMode` (`boolean?`)
361
+ - `canEditTarget` (`boolean?`)
362
+ - `defaultPartTypeKey` (`string?|null`)
363
+ - `lookupDefinitions` (`IndexLookupDefinitions?`)
370
364
  - 📚 thesauri:
371
- - `asserted-id-scopes` (idScopeEntries)
372
- - `asserted-id-tags` (idTagEntries)
373
- - `assertion-tags` (assTagEntries)
374
- - `doc-reference-types` (refTypeEntries)
375
- - `doc-reference-tags` (refTagEntries)
365
+ - `asserted-id-scopes` (for `idScopeEntries`)
366
+ - `asserted-id-tags` (for `idTagEntries`)
367
+ - `assertion-tags` (for `assTagEntries`)
368
+ - `doc-reference-types` (for `refTypeEntries`)
369
+ - `doc-reference-tags` (for `refTagEntries`)
376
370
  - ⚡ output:
377
- - idsChange (`AssertedCompositeId[]`)
371
+ - `idsChange` (`AssertedCompositeId[]`)
378
372
 
379
373
  ## History
380
374
 
375
+ ### 10.0.9
376
+
377
+ - 2025-09-11: refactored for `OnPush`.
378
+
379
+ ### 10.0.8
380
+
381
+ - 2025-08-06: automatically update scope in asserted composite ID only when not updating form and lookup is external and scope is empty.
382
+
381
383
  ### 10.0.5
382
384
 
383
385
  - 2025-06-27: