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