@arrai-innovations/reactive-helpers 17.0.0 → 17.0.2
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/.circleci/config.yml +4 -4
- package/docs/config/listCrud.md +9 -9
- package/docs/config/objectCrud.md +6 -6
- package/docs/use/list.md +3 -3
- package/docs/use/listCalculated.md +17 -17
- package/docs/use/listFilter.md +18 -18
- package/docs/use/listInstance.md +2 -2
- package/docs/use/listRelated.md +9 -9
- package/docs/use/listSearch.md +13 -13
- package/docs/use/listSort.md +19 -19
- package/docs/use/object.md +3 -3
- package/docs/use/objectCalculated.md +7 -7
- package/docs/use/objectInstance.md +5 -5
- package/docs/use/objectRelated.md +5 -5
- package/docs/use/objectSubscription.md +2 -2
- package/docs/use/search.md +2 -2
- package/docs/use/watchesRunning.md +2 -2
- package/docs/utils/assignReactiveObject.md +14 -0
- package/docs/utils/classes.md +2 -0
- package/docs/utils/flattenPaths.md +3 -3
- package/docs/utils/keyDiff.md +7 -3
- package/docs/utils/relatedCalculatedHelpers.md +4 -4
- package/docs/utils/watches.md +17 -15
- package/lint-staged.config.js +1 -1
- package/make_type_doc.js +59 -0
- package/package.json +11 -11
- package/tests/unit/use/listInstance.spec.js +20 -12
- package/use/listInstance.js +4 -0
- package/utils/classes.js +8 -0
package/docs/use/listSort.md
CHANGED
|
@@ -38,7 +38,7 @@ The calculated objects.
|
|
|
38
38
|
|
|
39
39
|
###### Index Signature
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
\[`pk`: `string`\]: `object`
|
|
42
42
|
|
|
43
43
|
###### calculatedObjectsParentStateObjectsWatchRunning?
|
|
44
44
|
|
|
@@ -54,7 +54,7 @@ The rules for the calculated objects.
|
|
|
54
54
|
|
|
55
55
|
###### Index Signature
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
\[`rule`: `string`\]: (`object`, `relatedObject`, `calculatedObjects`) => `any`
|
|
58
58
|
|
|
59
59
|
###### calculatedObjectsWatchRunning?
|
|
60
60
|
|
|
@@ -124,7 +124,7 @@ Maintains computed references to the foreign keys for each object pk and rule, c
|
|
|
124
124
|
|
|
125
125
|
###### Index Signature
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
\[`pk`: `string`\]: `object`
|
|
128
128
|
|
|
129
129
|
###### inResults?
|
|
130
130
|
|
|
@@ -164,7 +164,7 @@ Maps each object pk and rule to a tuple consisting of the related object and its
|
|
|
164
164
|
|
|
165
165
|
###### Index Signature
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
\[`pk`: `string`\]: `object`
|
|
168
168
|
|
|
169
169
|
###### objectIndexes?
|
|
170
170
|
|
|
@@ -216,7 +216,7 @@ Stores computed references to related objects, allowing for dynamic access based
|
|
|
216
216
|
|
|
217
217
|
###### Index Signature
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
\[`pk`: `string`\]: `object`
|
|
220
220
|
|
|
221
221
|
###### relatedObjectsParentStateObjectsWatchRunning?
|
|
222
222
|
|
|
@@ -232,7 +232,7 @@ Defines the rules for establishing relationships, such as foreign key links and
|
|
|
232
232
|
|
|
233
233
|
###### Index Signature
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
\[`rule`: `string`\]: [`ListRelatedRule`](listRelated.md#listrelatedrule)
|
|
236
236
|
|
|
237
237
|
###### relatedObjectsWatchRunning?
|
|
238
238
|
|
|
@@ -345,7 +345,7 @@ The calculated objects.
|
|
|
345
345
|
|
|
346
346
|
###### Index Signature
|
|
347
347
|
|
|
348
|
-
|
|
348
|
+
\[`pk`: `string`\]: `object`
|
|
349
349
|
|
|
350
350
|
###### calculatedObjectsParentStateObjectsWatchRunning?
|
|
351
351
|
|
|
@@ -361,7 +361,7 @@ The rules for the calculated objects.
|
|
|
361
361
|
|
|
362
362
|
###### Index Signature
|
|
363
363
|
|
|
364
|
-
|
|
364
|
+
\[`rule`: `string`\]: (`object`, `relatedObject`, `calculatedObjects`) => `any`
|
|
365
365
|
|
|
366
366
|
###### calculatedObjectsWatchRunning?
|
|
367
367
|
|
|
@@ -431,7 +431,7 @@ Maintains computed references to the foreign keys for each object pk and rule, c
|
|
|
431
431
|
|
|
432
432
|
###### Index Signature
|
|
433
433
|
|
|
434
|
-
|
|
434
|
+
\[`pk`: `string`\]: `object`
|
|
435
435
|
|
|
436
436
|
###### inResults?
|
|
437
437
|
|
|
@@ -471,7 +471,7 @@ Maps each object pk and rule to a tuple consisting of the related object and its
|
|
|
471
471
|
|
|
472
472
|
###### Index Signature
|
|
473
473
|
|
|
474
|
-
|
|
474
|
+
\[`pk`: `string`\]: `object`
|
|
475
475
|
|
|
476
476
|
###### objectIndexes?
|
|
477
477
|
|
|
@@ -523,7 +523,7 @@ Stores computed references to related objects, allowing for dynamic access based
|
|
|
523
523
|
|
|
524
524
|
###### Index Signature
|
|
525
525
|
|
|
526
|
-
|
|
526
|
+
\[`pk`: `string`\]: `object`
|
|
527
527
|
|
|
528
528
|
###### relatedObjectsParentStateObjectsWatchRunning?
|
|
529
529
|
|
|
@@ -539,7 +539,7 @@ Defines the rules for establishing relationships, such as foreign key links and
|
|
|
539
539
|
|
|
540
540
|
###### Index Signature
|
|
541
541
|
|
|
542
|
-
|
|
542
|
+
\[`rule`: `string`\]: [`ListRelatedRule`](listRelated.md#listrelatedrule)
|
|
543
543
|
|
|
544
544
|
###### relatedObjectsWatchRunning?
|
|
545
545
|
|
|
@@ -634,7 +634,7 @@ The calculated objects.
|
|
|
634
634
|
|
|
635
635
|
###### Index Signature
|
|
636
636
|
|
|
637
|
-
|
|
637
|
+
\[`pk`: `string`\]: `object`
|
|
638
638
|
|
|
639
639
|
###### calculatedObjectsParentStateObjectsWatchRunning?
|
|
640
640
|
|
|
@@ -650,7 +650,7 @@ The rules for the calculated objects.
|
|
|
650
650
|
|
|
651
651
|
###### Index Signature
|
|
652
652
|
|
|
653
|
-
|
|
653
|
+
\[`rule`: `string`\]: (`object`, `relatedObject`, `calculatedObjects`) => `any`
|
|
654
654
|
|
|
655
655
|
###### calculatedObjectsWatchRunning?
|
|
656
656
|
|
|
@@ -720,7 +720,7 @@ Maintains computed references to the foreign keys for each object pk and rule, c
|
|
|
720
720
|
|
|
721
721
|
###### Index Signature
|
|
722
722
|
|
|
723
|
-
|
|
723
|
+
\[`pk`: `string`\]: `object`
|
|
724
724
|
|
|
725
725
|
###### inResults?
|
|
726
726
|
|
|
@@ -760,7 +760,7 @@ Maps each object pk and rule to a tuple consisting of the related object and its
|
|
|
760
760
|
|
|
761
761
|
###### Index Signature
|
|
762
762
|
|
|
763
|
-
|
|
763
|
+
\[`pk`: `string`\]: `object`
|
|
764
764
|
|
|
765
765
|
###### objectIndexes?
|
|
766
766
|
|
|
@@ -830,7 +830,7 @@ Stores computed references to related objects, allowing for dynamic access based
|
|
|
830
830
|
|
|
831
831
|
###### Index Signature
|
|
832
832
|
|
|
833
|
-
|
|
833
|
+
\[`pk`: `string`\]: `object`
|
|
834
834
|
|
|
835
835
|
###### relatedObjectsParentStateObjectsWatchRunning?
|
|
836
836
|
|
|
@@ -846,7 +846,7 @@ Defines the rules for establishing relationships, such as foreign key links and
|
|
|
846
846
|
|
|
847
847
|
###### Index Signature
|
|
848
848
|
|
|
849
|
-
|
|
849
|
+
\[`rule`: `string`\]: [`ListRelatedRule`](listRelated.md#listrelatedrule)
|
|
850
850
|
|
|
851
851
|
###### relatedObjectsWatchRunning?
|
|
852
852
|
|
|
@@ -1081,7 +1081,7 @@ instance configurations.
|
|
|
1081
1081
|
|
|
1082
1082
|
Configuration options to set as defaults for list sorting.
|
|
1083
1083
|
|
|
1084
|
-
######
|
|
1084
|
+
###### sortThrottleWait
|
|
1085
1085
|
|
|
1086
1086
|
`number`
|
|
1087
1087
|
|
package/docs/use/object.md
CHANGED
|
@@ -206,7 +206,7 @@ The calculated object.
|
|
|
206
206
|
|
|
207
207
|
###### Index Signature
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
\[`ruleKey`: `string`\]: `ComputedRef`
|
|
210
210
|
|
|
211
211
|
###### calculatedObjectRules
|
|
212
212
|
|
|
@@ -372,7 +372,7 @@ Whether the object is loading.
|
|
|
372
372
|
|
|
373
373
|
###### object
|
|
374
374
|
|
|
375
|
-
> **object**: \{\} \| \{`[key: string]`: `any`;
|
|
375
|
+
> **object**: \{\} \| \{ `[key: string]`: `any`; `pkKey`: `string`; \}
|
|
376
376
|
|
|
377
377
|
The object.
|
|
378
378
|
|
|
@@ -402,7 +402,7 @@ The related objects, indexed by the key in the related object.
|
|
|
402
402
|
|
|
403
403
|
###### Index Signature
|
|
404
404
|
|
|
405
|
-
|
|
405
|
+
\[`rule`: `string`\]: `ComputedRef`
|
|
406
406
|
|
|
407
407
|
###### relatedObjectRules
|
|
408
408
|
|
|
@@ -170,7 +170,7 @@ Whether the object is loading.
|
|
|
170
170
|
|
|
171
171
|
###### object
|
|
172
172
|
|
|
173
|
-
> **object**: \{\} \| \{`[key: string]`: `any`;
|
|
173
|
+
> **object**: \{\} \| \{ `[key: string]`: `any`; `pkKey`: `string`; \}
|
|
174
174
|
|
|
175
175
|
The object.
|
|
176
176
|
|
|
@@ -200,7 +200,7 @@ The related objects, indexed by the key in the related object.
|
|
|
200
200
|
|
|
201
201
|
###### Index Signature
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
\[`rule`: `string`\]: `ComputedRef`
|
|
204
204
|
|
|
205
205
|
###### relatedObjectRules?
|
|
206
206
|
|
|
@@ -270,7 +270,7 @@ The calculated object.
|
|
|
270
270
|
|
|
271
271
|
###### Index Signature
|
|
272
272
|
|
|
273
|
-
|
|
273
|
+
\[`ruleKey`: `string`\]: `ComputedRef`
|
|
274
274
|
|
|
275
275
|
###### calculatedObjectRules
|
|
276
276
|
|
|
@@ -436,7 +436,7 @@ Whether the object is loading.
|
|
|
436
436
|
|
|
437
437
|
###### object
|
|
438
438
|
|
|
439
|
-
> **object**: \{\} \| \{`[key: string]`: `any`;
|
|
439
|
+
> **object**: \{\} \| \{ `[key: string]`: `any`; `pkKey`: `string`; \}
|
|
440
440
|
|
|
441
441
|
The object.
|
|
442
442
|
|
|
@@ -466,7 +466,7 @@ The related objects, indexed by the key in the related object.
|
|
|
466
466
|
|
|
467
467
|
###### Index Signature
|
|
468
468
|
|
|
469
|
-
|
|
469
|
+
\[`rule`: `string`\]: `ComputedRef`
|
|
470
470
|
|
|
471
471
|
###### relatedObjectRules?
|
|
472
472
|
|
|
@@ -556,7 +556,7 @@ The calculated object.
|
|
|
556
556
|
|
|
557
557
|
###### Index Signature
|
|
558
558
|
|
|
559
|
-
|
|
559
|
+
\[`ruleKey`: `string`\]: `ComputedRef`
|
|
560
560
|
|
|
561
561
|
##### calculatedObjectRules
|
|
562
562
|
|
|
@@ -638,7 +638,7 @@ The object calculated options.
|
|
|
638
638
|
|
|
639
639
|
#### Index Signature
|
|
640
640
|
|
|
641
|
-
|
|
641
|
+
\[`ruleKey`: `string`\]: (`object`, `relatedObject`) => `any`
|
|
642
642
|
|
|
643
643
|
***
|
|
644
644
|
|
|
@@ -93,7 +93,7 @@ Called to turn the current object into a new object on the server.
|
|
|
93
93
|
|
|
94
94
|
###### args
|
|
95
95
|
|
|
96
|
-
######
|
|
96
|
+
###### object
|
|
97
97
|
|
|
98
98
|
`any`
|
|
99
99
|
|
|
@@ -121,7 +121,7 @@ Called to patch the current object on the server.
|
|
|
121
121
|
|
|
122
122
|
###### args
|
|
123
123
|
|
|
124
|
-
######
|
|
124
|
+
###### partialObject
|
|
125
125
|
|
|
126
126
|
[`CrudObject`](objectInstance.md#crudobject)
|
|
127
127
|
|
|
@@ -149,7 +149,7 @@ Called to update the current object on the server.
|
|
|
149
149
|
|
|
150
150
|
###### args
|
|
151
151
|
|
|
152
|
-
######
|
|
152
|
+
###### object
|
|
153
153
|
|
|
154
154
|
[`CrudObject`](objectInstance.md#crudobject)
|
|
155
155
|
|
|
@@ -447,7 +447,7 @@ Whether the object is loading.
|
|
|
447
447
|
|
|
448
448
|
###### object
|
|
449
449
|
|
|
450
|
-
> **object**: \{\} \| \{`[key: string]`: `any`;
|
|
450
|
+
> **object**: \{\} \| \{ `[key: string]`: `any`; `pkKey`: `string`; \}
|
|
451
451
|
|
|
452
452
|
The object.
|
|
453
453
|
|
|
@@ -563,7 +563,7 @@ The arguments to be passed to the retrieve function.
|
|
|
563
563
|
|
|
564
564
|
### CrudObject
|
|
565
565
|
|
|
566
|
-
> **CrudObject**\<\>: \{`[key: string]`: `any`;
|
|
566
|
+
> **CrudObject**\<\>: \{ `[key: string]`: `any`; `pkKey`: `string`; \} \| \{\}
|
|
567
567
|
|
|
568
568
|
#### Type Parameters
|
|
569
569
|
|
|
@@ -170,7 +170,7 @@ Whether the object is loading.
|
|
|
170
170
|
|
|
171
171
|
###### object
|
|
172
172
|
|
|
173
|
-
> **object**: \{\} \| \{`[key: string]`: `any`;
|
|
173
|
+
> **object**: \{\} \| \{ `[key: string]`: `any`; `pkKey`: `string`; \}
|
|
174
174
|
|
|
175
175
|
The object.
|
|
176
176
|
|
|
@@ -368,7 +368,7 @@ Whether the object is loading.
|
|
|
368
368
|
|
|
369
369
|
###### object
|
|
370
370
|
|
|
371
|
-
> **object**: \{\} \| \{`[key: string]`: `any`;
|
|
371
|
+
> **object**: \{\} \| \{ `[key: string]`: `any`; `pkKey`: `string`; \}
|
|
372
372
|
|
|
373
373
|
The object.
|
|
374
374
|
|
|
@@ -398,7 +398,7 @@ The related objects, indexed by the key in the related object.
|
|
|
398
398
|
|
|
399
399
|
###### Index Signature
|
|
400
400
|
|
|
401
|
-
|
|
401
|
+
\[`rule`: `string`\]: `ComputedRef`
|
|
402
402
|
|
|
403
403
|
###### relatedObjectRules
|
|
404
404
|
|
|
@@ -492,7 +492,7 @@ The related objects, indexed by the key in the related object.
|
|
|
492
492
|
|
|
493
493
|
###### Index Signature
|
|
494
494
|
|
|
495
|
-
|
|
495
|
+
\[`rule`: `string`\]: `ComputedRef`
|
|
496
496
|
|
|
497
497
|
##### relatedObjectRules
|
|
498
498
|
|
|
@@ -590,7 +590,7 @@ The key in the managed object that corresponds to the key in the related object.
|
|
|
590
590
|
|
|
591
591
|
#### Index Signature
|
|
592
592
|
|
|
593
|
-
|
|
593
|
+
\[`rule`: `string`\]: [`ObjectRelatedRule`](objectRelated.md#objectrelatedrule)
|
|
594
594
|
|
|
595
595
|
***
|
|
596
596
|
|
|
@@ -98,7 +98,7 @@ Subscribes to updates from an object, managing subscription state and
|
|
|
98
98
|
|
|
99
99
|
###### \_\_namedParameters?
|
|
100
100
|
|
|
101
|
-
######
|
|
101
|
+
###### retrieve
|
|
102
102
|
|
|
103
103
|
`boolean`
|
|
104
104
|
|
|
@@ -309,7 +309,7 @@ Whether the object is loading.
|
|
|
309
309
|
|
|
310
310
|
###### object
|
|
311
311
|
|
|
312
|
-
> **object**: \{\} \| \{`[key: string]`: `any`;
|
|
312
|
+
> **object**: \{\} \| \{ `[key: string]`: `any`; `pkKey`: `string`; \}
|
|
313
313
|
|
|
314
314
|
The object.
|
|
315
315
|
|
package/docs/use/search.md
CHANGED
|
@@ -302,13 +302,13 @@ A reactive wrapper around FlexSearch.Index.
|
|
|
302
302
|
|
|
303
303
|
Options.
|
|
304
304
|
|
|
305
|
-
######
|
|
305
|
+
###### props
|
|
306
306
|
|
|
307
307
|
[`SearchProps`](search.md#searchprops)
|
|
308
308
|
|
|
309
309
|
Props.
|
|
310
310
|
|
|
311
|
-
######
|
|
311
|
+
###### throttle
|
|
312
312
|
|
|
313
313
|
`number` = `500`
|
|
314
314
|
|
|
@@ -65,13 +65,13 @@ A composable function for handling watches running. When all the trigger refs ar
|
|
|
65
65
|
|
|
66
66
|
The options for the watches running.
|
|
67
67
|
|
|
68
|
-
######
|
|
68
|
+
###### triggerRefs
|
|
69
69
|
|
|
70
70
|
`WatchSource`\<`any`\>[]
|
|
71
71
|
|
|
72
72
|
The trigger refs.
|
|
73
73
|
|
|
74
|
-
######
|
|
74
|
+
###### watchSentinelRefs
|
|
75
75
|
|
|
76
76
|
`Ref`\<`boolean`, `boolean`\>[]
|
|
77
77
|
|
|
@@ -107,10 +107,16 @@ Keys to exclude from the addition or update.
|
|
|
107
107
|
|
|
108
108
|
##### addedKeys?
|
|
109
109
|
|
|
110
|
+
Precaulcated array of keys to add, if available. Otherwise, the
|
|
111
|
+
keys will be calculated.
|
|
112
|
+
|
|
110
113
|
`any`[] | `Set`\<`any`\>
|
|
111
114
|
|
|
112
115
|
##### sameKeys?
|
|
113
116
|
|
|
117
|
+
Precaulcated array of keys to update, if available. Otherwise, the
|
|
118
|
+
keys will be calculated.
|
|
119
|
+
|
|
114
120
|
`any`[] | `Set`\<`any`\>
|
|
115
121
|
|
|
116
122
|
##### doNotSetUndefinedKeys?
|
|
@@ -194,6 +200,9 @@ Keys to exclude from the addition.
|
|
|
194
200
|
|
|
195
201
|
##### addedKeys?
|
|
196
202
|
|
|
203
|
+
Precaulcated array of keys to add, if available. Otherwise, the
|
|
204
|
+
keys will be calculated.
|
|
205
|
+
|
|
197
206
|
`any`[] | `Set`\<`any`\>
|
|
198
207
|
|
|
199
208
|
#### Returns
|
|
@@ -344,6 +353,8 @@ Keys to exclude from removal.
|
|
|
344
353
|
|
|
345
354
|
##### removedKeys?
|
|
346
355
|
|
|
356
|
+
An array to store removed keys.
|
|
357
|
+
|
|
347
358
|
`any`[] | `Set`\<`any`\>
|
|
348
359
|
|
|
349
360
|
#### Returns
|
|
@@ -386,6 +397,9 @@ Keys to exclude from the update.
|
|
|
386
397
|
|
|
387
398
|
##### sameKeys?
|
|
388
399
|
|
|
400
|
+
Precaulcated array of keys to update, if available. Otherwise, the
|
|
401
|
+
keys will be calculated.
|
|
402
|
+
|
|
389
403
|
`any`[] | `Set`\<`any`\>
|
|
390
404
|
|
|
391
405
|
#### Returns
|
package/docs/utils/classes.md
CHANGED
|
@@ -103,6 +103,8 @@ We unref your refs, so probably want a computed around this. We filter out false
|
|
|
103
103
|
|
|
104
104
|
##### cls
|
|
105
105
|
|
|
106
|
+
Handles the multiple ways of specifying CSS class related values.
|
|
107
|
+
|
|
106
108
|
[`CombinedClassesArgument`](classes.md#combinedclassesargument) | [`CombinedClassesArgument`](classes.md#combinedclassesargument)[]
|
|
107
109
|
|
|
108
110
|
#### Returns
|
|
@@ -28,19 +28,19 @@ Array or object to flatten.
|
|
|
28
28
|
|
|
29
29
|
Options.
|
|
30
30
|
|
|
31
|
-
######
|
|
31
|
+
###### currentPath
|
|
32
32
|
|
|
33
33
|
`string`
|
|
34
34
|
|
|
35
35
|
Current path, for recursion or as a starting point.
|
|
36
36
|
|
|
37
|
-
######
|
|
37
|
+
###### depth
|
|
38
38
|
|
|
39
39
|
`number`
|
|
40
40
|
|
|
41
41
|
Current depth, for recursion.
|
|
42
42
|
|
|
43
|
-
######
|
|
43
|
+
###### limit
|
|
44
44
|
|
|
45
45
|
`number`
|
|
46
46
|
|
package/docs/utils/keyDiff.md
CHANGED
|
@@ -43,29 +43,33 @@ are the same, what keys are removed, and what keys are added.
|
|
|
43
43
|
|
|
44
44
|
##### newKeys
|
|
45
45
|
|
|
46
|
+
Keys to consider as new.
|
|
47
|
+
|
|
46
48
|
`string`[] | `Set`\<`any`\>
|
|
47
49
|
|
|
48
50
|
##### oldKeys
|
|
49
51
|
|
|
52
|
+
Keys to consider as old.
|
|
53
|
+
|
|
50
54
|
`string`[] | `Set`\<`any`\>
|
|
51
55
|
|
|
52
56
|
##### options?
|
|
53
57
|
|
|
54
58
|
Which differences are returned.
|
|
55
59
|
|
|
56
|
-
######
|
|
60
|
+
###### addedKeys
|
|
57
61
|
|
|
58
62
|
`boolean` = `true`
|
|
59
63
|
|
|
60
64
|
If true, return keys that are added.
|
|
61
65
|
|
|
62
|
-
######
|
|
66
|
+
###### removedKeys
|
|
63
67
|
|
|
64
68
|
`boolean` = `true`
|
|
65
69
|
|
|
66
70
|
If true, return keys that are removed.
|
|
67
71
|
|
|
68
|
-
######
|
|
72
|
+
###### sameKeys
|
|
69
73
|
|
|
70
74
|
`boolean` = `true`
|
|
71
75
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
### getObjectRelatedByKey()
|
|
24
24
|
|
|
25
|
-
> **getObjectRelatedByKey**(`obj`, `relatedObj`, `key`): [`any`, `string
|
|
25
|
+
> **getObjectRelatedByKey**(`obj`, `relatedObj`, `key`): \[`any`, `string`\]
|
|
26
26
|
|
|
27
27
|
Get the object and key of a related item.
|
|
28
28
|
|
|
@@ -48,7 +48,7 @@ The key to get the related item from.
|
|
|
48
48
|
|
|
49
49
|
#### Returns
|
|
50
50
|
|
|
51
|
-
[`any`, `string
|
|
51
|
+
\[`any`, `string`\]
|
|
52
52
|
|
|
53
53
|
The object and key of the related item.
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ The object and key of the related item.
|
|
|
56
56
|
|
|
57
57
|
### getObjectRelatedCalculatedByKey()
|
|
58
58
|
|
|
59
|
-
> **getObjectRelatedCalculatedByKey**(`obj`, `relatedObj`, `calculatedObj`, `key`): [`any`, `string
|
|
59
|
+
> **getObjectRelatedCalculatedByKey**(`obj`, `relatedObj`, `calculatedObj`, `key`): \[`any`, `string`\]
|
|
60
60
|
|
|
61
61
|
Get the object and key of a calculated item.
|
|
62
62
|
|
|
@@ -88,6 +88,6 @@ The key to get the calculated item from.
|
|
|
88
88
|
|
|
89
89
|
#### Returns
|
|
90
90
|
|
|
91
|
-
[`any`, `string
|
|
91
|
+
\[`any`, `string`\]
|
|
92
92
|
|
|
93
93
|
The object and key of the calculated item.
|
package/docs/utils/watches.md
CHANGED
|
@@ -27,31 +27,31 @@ Initializes the AwaitNot with specified options for reactive property watching a
|
|
|
27
27
|
|
|
28
28
|
Configuration options for AwaitNot.
|
|
29
29
|
|
|
30
|
-
######
|
|
30
|
+
###### couldAlreadyBeFalse
|
|
31
31
|
|
|
32
32
|
`boolean` = `false`
|
|
33
33
|
|
|
34
34
|
Indicates if the property could already be in the false state at initialization.
|
|
35
35
|
|
|
36
|
-
######
|
|
36
|
+
###### obj
|
|
37
37
|
|
|
38
38
|
`any`
|
|
39
39
|
|
|
40
40
|
The object containing the property to watch.
|
|
41
41
|
|
|
42
|
-
######
|
|
42
|
+
###### prop
|
|
43
43
|
|
|
44
44
|
`string`
|
|
45
45
|
|
|
46
46
|
The property name to watch within the object.
|
|
47
47
|
|
|
48
|
-
######
|
|
48
|
+
###### ref
|
|
49
49
|
|
|
50
|
-
`Ref
|
|
50
|
+
`Ref`
|
|
51
51
|
|
|
52
52
|
A Vue ref to directly watch if provided.
|
|
53
53
|
|
|
54
|
-
######
|
|
54
|
+
###### timeout
|
|
55
55
|
|
|
56
56
|
`number` = `1000`
|
|
57
57
|
|
|
@@ -77,7 +77,7 @@ The timeout in milliseconds before the promise is rejected.
|
|
|
77
77
|
|
|
78
78
|
##### ref
|
|
79
79
|
|
|
80
|
-
> **ref**: `Readonly`\<`Ref
|
|
80
|
+
> **ref**: `Readonly`\<`Ref`\>
|
|
81
81
|
|
|
82
82
|
##### reject()
|
|
83
83
|
|
|
@@ -216,7 +216,7 @@ Creates an instance of AwaitTimeout with a specified timeout duration.
|
|
|
216
216
|
|
|
217
217
|
The options for the AwaitTimeout.
|
|
218
218
|
|
|
219
|
-
######
|
|
219
|
+
###### timeout
|
|
220
220
|
|
|
221
221
|
`number` = `1000`
|
|
222
222
|
|
|
@@ -380,6 +380,8 @@ Starts the watch.
|
|
|
380
380
|
|
|
381
381
|
###### watchSources
|
|
382
382
|
|
|
383
|
+
The source(s) to watch.
|
|
384
|
+
|
|
383
385
|
`WatchSource`\<`any`\> | `WatchSource`\<`any`\>[]
|
|
384
386
|
|
|
385
387
|
###### watchFunc
|
|
@@ -396,7 +398,7 @@ Optional arguments to pass to the watch function.
|
|
|
396
398
|
|
|
397
399
|
###### watchOptions?
|
|
398
400
|
|
|
399
|
-
`WatchOptions
|
|
401
|
+
`WatchOptions` = `{}`
|
|
400
402
|
|
|
401
403
|
Optional watch options.
|
|
402
404
|
|
|
@@ -428,31 +430,31 @@ Helper function to get the resulting promise from an AwaitNot instance.
|
|
|
428
430
|
|
|
429
431
|
Configuration options for AwaitNot.
|
|
430
432
|
|
|
431
|
-
######
|
|
433
|
+
###### couldAlreadyBeFalse
|
|
432
434
|
|
|
433
435
|
`boolean` = `true`
|
|
434
436
|
|
|
435
437
|
Indicates if the property could already be in the false state at initialization.
|
|
436
438
|
|
|
437
|
-
######
|
|
439
|
+
###### obj
|
|
438
440
|
|
|
439
441
|
`any`
|
|
440
442
|
|
|
441
443
|
The object containing the property to watch.
|
|
442
444
|
|
|
443
|
-
######
|
|
445
|
+
###### prop
|
|
444
446
|
|
|
445
447
|
`string`
|
|
446
448
|
|
|
447
449
|
The property name to watch within the object.
|
|
448
450
|
|
|
449
|
-
######
|
|
451
|
+
###### ref
|
|
450
452
|
|
|
451
|
-
`Ref
|
|
453
|
+
`Ref`
|
|
452
454
|
|
|
453
455
|
A Vue ref to directly watch if provided.
|
|
454
456
|
|
|
455
|
-
######
|
|
457
|
+
###### timeout
|
|
456
458
|
|
|
457
459
|
`number` = `1000`
|
|
458
460
|
|