data-restructor 3.4.0 → 3.4.1
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/.auto-changelog +9 -0
- package/.auto-changelog-template.hbs +36 -0
- package/CHANGELOG.md +114 -31
- package/Commands.md +1 -0
- package/README.md +5 -0
- package/coverage/coverage-summary.json +3 -3
- package/coverage/datarestructor.js.html +133 -133
- package/coverage/describedfield.js.html +45 -45
- package/coverage/index.html +1 -1
- package/coverage/templateResolver.js.html +26 -26
- package/devdist/datarestructor-ie.js +53 -58
- package/devdist/datarestructor.js +35 -42
- package/devdist/describedfield-ie.js +10 -12
- package/devdist/describedfield.js +8 -10
- package/devdist/templateResolver-ie.js +22 -26
- package/devdist/templateResolver.js +11 -16
- package/dist/datarestructor-ie.js +1 -1
- package/dist/datarestructor-ie.js.map +1 -1
- package/dist/datarestructor.js +1 -1
- package/dist/datarestructor.js.map +1 -1
- package/dist/describedfield-ie.js +1 -1
- package/dist/describedfield-ie.js.map +1 -1
- package/dist/describedfield.js +1 -1
- package/dist/describedfield.js.map +1 -1
- package/dist/templateResolver-ie.js +1 -1
- package/dist/templateResolver-ie.js.map +1 -1
- package/dist/templateResolver.js +1 -1
- package/dist/templateResolver.js.map +1 -1
- package/docs/datarestructor.js.html +1 -1
- package/docs/describedfield.js.html +1 -1
- package/docs/index.html +6 -1
- package/docs/module-datarestructor.DescribedEntryCreator.html +94 -94
- package/docs/module-datarestructor.PropertyStructureDescriptionBuilder.html +1 -1
- package/docs/module-datarestructor.Restructor.html +1 -1
- package/docs/module-datarestructor.Transform.html +605 -605
- package/docs/module-datarestructor.html +959 -995
- package/docs/module-described_field.DescribedDataFieldBuilder.html +1 -1
- package/docs/module-described_field.DescribedDataFieldGroup.html +1 -1
- package/docs/module-described_field.html +1 -37
- package/docs/module-template_resolver.Resolver.html +167 -167
- package/docs/module-template_resolver.html +1 -37
- package/docs/templateResolver.js.html +1 -1
- package/package.json +10 -6
- package/renovate.json +0 -6
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
|
|
268
|
-
<h4 class="name" id="
|
|
268
|
+
<h4 class="name" id="replaceResolvableFields"><span class="type-signature"></span>replaceResolvableFields<span class="signature">(stringContainingVariables, resolvableFields)</span><span class="type-signature"></span></h4>
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
|
|
@@ -273,8 +273,9 @@
|
|
|
273
273
|
|
|
274
274
|
|
|
275
275
|
<div class="description">
|
|
276
|
-
<p>
|
|
277
|
-
|
|
276
|
+
<p>Replaces all variables in double curly brackets, e.g. {{property}},
|
|
277
|
+
with the value of that property from the resolvableProperties.</p>
|
|
278
|
+
<p>Supported property types: string, number, boolean</p>
|
|
278
279
|
</div>
|
|
279
280
|
|
|
280
281
|
|
|
@@ -310,13 +311,13 @@ For example: detail[2].fieldName="name", detail[2].value="Smith&q
|
|
|
310
311
|
|
|
311
312
|
<tr>
|
|
312
313
|
|
|
313
|
-
<td class="name"><code>
|
|
314
|
+
<td class="name"><code>stringContainingVariables</code></td>
|
|
314
315
|
|
|
315
316
|
|
|
316
317
|
<td class="type">
|
|
317
318
|
|
|
318
319
|
|
|
319
|
-
<span class="param-type">
|
|
320
|
+
<span class="param-type">string</span>
|
|
320
321
|
|
|
321
322
|
|
|
322
323
|
|
|
@@ -326,7 +327,30 @@ For example: detail[2].fieldName="name", detail[2].value="Smith&q
|
|
|
326
327
|
|
|
327
328
|
|
|
328
329
|
|
|
329
|
-
<td class="description last"
|
|
330
|
+
<td class="description last"></td>
|
|
331
|
+
</tr>
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
<tr>
|
|
336
|
+
|
|
337
|
+
<td class="name"><code>resolvableFields</code></td>
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
<td class="type">
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
<span class="param-type">Array.<object></span>
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
</td>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
<td class="description last"><p>(name=value)</p></td>
|
|
330
354
|
</tr>
|
|
331
355
|
|
|
332
356
|
|
|
@@ -367,7 +391,7 @@ For example: detail[2].fieldName="name", detail[2].value="Smith&q
|
|
|
367
391
|
|
|
368
392
|
<dt class="tag-source">Source:</dt>
|
|
369
393
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
370
|
-
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#
|
|
394
|
+
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#line84">line 84</a>
|
|
371
395
|
</li></ul></dd>
|
|
372
396
|
|
|
373
397
|
|
|
@@ -392,28 +416,6 @@ For example: detail[2].fieldName="name", detail[2].value="Smith&q
|
|
|
392
416
|
|
|
393
417
|
|
|
394
418
|
|
|
395
|
-
<h5>Returns:</h5>
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
<div class="param-desc">
|
|
399
|
-
<p>object with resolvable field names and their values.</p>
|
|
400
|
-
</div>
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
<dl>
|
|
405
|
-
<dt>
|
|
406
|
-
Type
|
|
407
|
-
</dt>
|
|
408
|
-
<dd>
|
|
409
|
-
|
|
410
|
-
<span class="param-type">object</span>
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
</dd>
|
|
414
|
-
</dl>
|
|
415
|
-
|
|
416
|
-
|
|
417
419
|
|
|
418
420
|
|
|
419
421
|
|
|
@@ -425,7 +427,7 @@ For example: detail[2].fieldName="name", detail[2].value="Smith&q
|
|
|
425
427
|
|
|
426
428
|
|
|
427
429
|
|
|
428
|
-
<h4 class="name" id="
|
|
430
|
+
<h4 class="name" id="resolvableFieldsOfAll"><span class="type-signature"></span>resolvableFieldsOfAll<span class="signature">(…varArgs)</span><span class="type-signature"> → {object}</span></h4>
|
|
429
431
|
|
|
430
432
|
|
|
431
433
|
|
|
@@ -433,8 +435,12 @@ For example: detail[2].fieldName="name", detail[2].value="Smith&q
|
|
|
433
435
|
|
|
434
436
|
|
|
435
437
|
<div class="description">
|
|
436
|
-
<p>
|
|
437
|
-
|
|
438
|
+
<p>Returns a map like object, that contains all resolvable fields and their values as properties.
|
|
439
|
+
This function takes a variable count of input parameters,
|
|
440
|
+
each containing an object that contains resolvable fields to extract from.</p>
|
|
441
|
+
<p>The recursion depth is limited to 3, so that an object,
|
|
442
|
+
that contains an object can contain another object (but not further).</p>
|
|
443
|
+
<p>Properties beginning with an underscore in their name will be filtered out, since they are considered as internal fields.</p>
|
|
438
444
|
</div>
|
|
439
445
|
|
|
440
446
|
|
|
@@ -458,6 +464,8 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
458
464
|
<th>Type</th>
|
|
459
465
|
|
|
460
466
|
|
|
467
|
+
<th>Attributes</th>
|
|
468
|
+
|
|
461
469
|
|
|
462
470
|
|
|
463
471
|
|
|
@@ -470,30 +478,7 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
470
478
|
|
|
471
479
|
<tr>
|
|
472
480
|
|
|
473
|
-
<td class="name"><code>
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
<td class="type">
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
<span class="param-type">Array.<NameValuePair></span>
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
</td>
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
<td class="description last"><p>flattened array of name-value-pairs</p></td>
|
|
490
|
-
</tr>
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
<tr>
|
|
495
|
-
|
|
496
|
-
<td class="name"><code>mapObject</code></td>
|
|
481
|
+
<td class="name"><code>varArgs</code></td>
|
|
497
482
|
|
|
498
483
|
|
|
499
484
|
<td class="type">
|
|
@@ -506,33 +491,20 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
506
491
|
</td>
|
|
507
492
|
|
|
508
493
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
<td class="description last"><p>container to collect the results. Needs to be created before e.g. using <code>{}</code>.</p></td>
|
|
513
|
-
</tr>
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
<tr>
|
|
518
|
-
|
|
519
|
-
<td class="name"><code>filterMatchesFunction</code></td>
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
<td class="type">
|
|
523
|
-
|
|
494
|
+
<td class="attributes">
|
|
524
495
|
|
|
525
|
-
<span class="param-type">function</span>
|
|
526
|
-
|
|
527
496
|
|
|
528
|
-
|
|
529
|
-
</td>
|
|
497
|
+
|
|
530
498
|
|
|
499
|
+
|
|
500
|
+
<repeatable><br>
|
|
501
|
+
|
|
502
|
+
</td>
|
|
531
503
|
|
|
532
504
|
|
|
533
505
|
|
|
534
506
|
|
|
535
|
-
<td class="description last"><p>
|
|
507
|
+
<td class="description last"><p>variable count of parameters. Each parameter contains an object that fields should be resolvable for variables.</p></td>
|
|
536
508
|
</tr>
|
|
537
509
|
|
|
538
510
|
|
|
@@ -573,7 +545,7 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
573
545
|
|
|
574
546
|
<dt class="tag-source">Source:</dt>
|
|
575
547
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
576
|
-
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#
|
|
548
|
+
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#line65">line 65</a>
|
|
577
549
|
</li></ul></dd>
|
|
578
550
|
|
|
579
551
|
|
|
@@ -598,6 +570,28 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
598
570
|
|
|
599
571
|
|
|
600
572
|
|
|
573
|
+
<h5>Returns:</h5>
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
<div class="param-desc">
|
|
577
|
+
<p>object with resolvable field names and their values.</p>
|
|
578
|
+
</div>
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
<dl>
|
|
583
|
+
<dt>
|
|
584
|
+
Type
|
|
585
|
+
</dt>
|
|
586
|
+
<dd>
|
|
587
|
+
|
|
588
|
+
<span class="param-type">object</span>
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
</dd>
|
|
592
|
+
</dl>
|
|
593
|
+
|
|
594
|
+
|
|
601
595
|
|
|
602
596
|
|
|
603
597
|
|
|
@@ -609,7 +603,7 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
609
603
|
|
|
610
604
|
|
|
611
605
|
|
|
612
|
-
<h4 class="name" id="
|
|
606
|
+
<h4 class="name" id="resolveTemplate"><span class="type-signature"></span>resolveTemplate<span class="signature">(template)</span><span class="type-signature"> → {string}</span></h4>
|
|
613
607
|
|
|
614
608
|
|
|
615
609
|
|
|
@@ -617,7 +611,11 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
617
611
|
|
|
618
612
|
|
|
619
613
|
<div class="description">
|
|
620
|
-
<p>
|
|
614
|
+
<p>Resolves the given template.</p>
|
|
615
|
+
<p>The template may contain variables in double curly brackets.
|
|
616
|
+
Supported variables are all properties of this object, e.g. "{{fieldName}}", "{{displayName}}", "{{value}}".
|
|
617
|
+
Since this object may also contains (described) groups of sub objects, they can also be used, e.g. "{{summaries[0].value}}"
|
|
618
|
+
Parts of the index can be inserted by using e.g. "{{index[1]}}".</p>
|
|
621
619
|
</div>
|
|
622
620
|
|
|
623
621
|
|
|
@@ -653,13 +651,13 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
653
651
|
|
|
654
652
|
<tr>
|
|
655
653
|
|
|
656
|
-
<td class="name"><code>
|
|
654
|
+
<td class="name"><code>template</code></td>
|
|
657
655
|
|
|
658
656
|
|
|
659
657
|
<td class="type">
|
|
660
658
|
|
|
661
659
|
|
|
662
|
-
<span class="param-type">
|
|
660
|
+
<span class="param-type">string</span>
|
|
663
661
|
|
|
664
662
|
|
|
665
663
|
|
|
@@ -710,7 +708,7 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
710
708
|
|
|
711
709
|
<dt class="tag-source">Source:</dt>
|
|
712
710
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
713
|
-
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#
|
|
711
|
+
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#line48">line 48</a>
|
|
714
712
|
</li></ul></dd>
|
|
715
713
|
|
|
716
714
|
|
|
@@ -739,7 +737,7 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
739
737
|
|
|
740
738
|
|
|
741
739
|
<div class="param-desc">
|
|
742
|
-
<p>
|
|
740
|
+
<p>resolved template</p>
|
|
743
741
|
</div>
|
|
744
742
|
|
|
745
743
|
|
|
@@ -750,7 +748,7 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
750
748
|
</dt>
|
|
751
749
|
<dd>
|
|
752
750
|
|
|
753
|
-
<span class="param-type">
|
|
751
|
+
<span class="param-type">string</span>
|
|
754
752
|
|
|
755
753
|
|
|
756
754
|
</dd>
|
|
@@ -768,7 +766,7 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
768
766
|
|
|
769
767
|
|
|
770
768
|
|
|
771
|
-
<h4 class="name" id="
|
|
769
|
+
<h4 class="name" id=".addFieldsPerGroup"><span class="type-signature">(protected, static) </span>addFieldsPerGroup<span class="signature">(object)</span><span class="type-signature"> → {object}</span></h4>
|
|
772
770
|
|
|
773
771
|
|
|
774
772
|
|
|
@@ -776,9 +774,8 @@ Example: <code>{name: "accountNumber", value: "12345"}</code
|
|
|
776
774
|
|
|
777
775
|
|
|
778
776
|
<div class="description">
|
|
779
|
-
<p>
|
|
780
|
-
|
|
781
|
-
<p>Supported property types: string, number, boolean</p>
|
|
777
|
+
<p>Adds the value of the "fieldName" property (including its group prefix) and its associated "value" property content.
|
|
778
|
+
For example: detail[2].fieldName="name", detail[2].value="Smith" lead to the additional property detail.name="Smith".</p>
|
|
782
779
|
</div>
|
|
783
780
|
|
|
784
781
|
|
|
@@ -814,36 +811,13 @@ with the value of that property from the resolvableProperties.</p>
|
|
|
814
811
|
|
|
815
812
|
<tr>
|
|
816
813
|
|
|
817
|
-
<td class="name"><code>
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
<td class="type">
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
<span class="param-type">string</span>
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
</td>
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
<td class="description last"></td>
|
|
834
|
-
</tr>
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
<tr>
|
|
839
|
-
|
|
840
|
-
<td class="name"><code>resolvableFields</code></td>
|
|
814
|
+
<td class="name"><code>object</code></td>
|
|
841
815
|
|
|
842
816
|
|
|
843
817
|
<td class="type">
|
|
844
818
|
|
|
845
819
|
|
|
846
|
-
<span class="param-type">
|
|
820
|
+
<span class="param-type">object</span>
|
|
847
821
|
|
|
848
822
|
|
|
849
823
|
|
|
@@ -853,7 +827,7 @@ with the value of that property from the resolvableProperties.</p>
|
|
|
853
827
|
|
|
854
828
|
|
|
855
829
|
|
|
856
|
-
<td class="description last"><p>
|
|
830
|
+
<td class="description last"><p>with resolvable field names and their values.</p></td>
|
|
857
831
|
</tr>
|
|
858
832
|
|
|
859
833
|
|
|
@@ -894,7 +868,7 @@ with the value of that property from the resolvableProperties.</p>
|
|
|
894
868
|
|
|
895
869
|
<dt class="tag-source">Source:</dt>
|
|
896
870
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
897
|
-
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#
|
|
871
|
+
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#line107">line 107</a>
|
|
898
872
|
</li></ul></dd>
|
|
899
873
|
|
|
900
874
|
|
|
@@ -919,6 +893,28 @@ with the value of that property from the resolvableProperties.</p>
|
|
|
919
893
|
|
|
920
894
|
|
|
921
895
|
|
|
896
|
+
<h5>Returns:</h5>
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
<div class="param-desc">
|
|
900
|
+
<p>object with resolvable field names and their values.</p>
|
|
901
|
+
</div>
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
<dl>
|
|
906
|
+
<dt>
|
|
907
|
+
Type
|
|
908
|
+
</dt>
|
|
909
|
+
<dd>
|
|
910
|
+
|
|
911
|
+
<span class="param-type">object</span>
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
</dd>
|
|
915
|
+
</dl>
|
|
916
|
+
|
|
917
|
+
|
|
922
918
|
|
|
923
919
|
|
|
924
920
|
|
|
@@ -930,7 +926,7 @@ with the value of that property from the resolvableProperties.</p>
|
|
|
930
926
|
|
|
931
927
|
|
|
932
928
|
|
|
933
|
-
<h4 class="name" id="
|
|
929
|
+
<h4 class="name" id=".addToFilteredMapObject"><span class="type-signature">(protected, static) </span>addToFilteredMapObject<span class="signature">(elements, mapObject, filterMatchesFunction)</span><span class="type-signature"></span></h4>
|
|
934
930
|
|
|
935
931
|
|
|
936
932
|
|
|
@@ -938,12 +934,8 @@ with the value of that property from the resolvableProperties.</p>
|
|
|
938
934
|
|
|
939
935
|
|
|
940
936
|
<div class="description">
|
|
941
|
-
<p>
|
|
942
|
-
|
|
943
|
-
each containing an object that contains resolvable fields to extract from.</p>
|
|
944
|
-
<p>The recursion depth is limited to 3, so that an object,
|
|
945
|
-
that contains an object can contain another object (but not further).</p>
|
|
946
|
-
<p>Properties beginning with an underscore in their name will be filtered out, since they are considered as internal fields.</p>
|
|
937
|
+
<p>Collects all flattened name-value-pairs into one object using the property names as keys and their values as values (map-like).
|
|
938
|
+
Example: <code>{name: "accountNumber", value: "12345"}</code> becomes <code>mapObject["accountNumber"]="12345"</code>.</p>
|
|
947
939
|
</div>
|
|
948
940
|
|
|
949
941
|
|
|
@@ -967,8 +959,6 @@ that contains an object can contain another object (but not further).</p>
|
|
|
967
959
|
<th>Type</th>
|
|
968
960
|
|
|
969
961
|
|
|
970
|
-
<th>Attributes</th>
|
|
971
|
-
|
|
972
962
|
|
|
973
963
|
|
|
974
964
|
|
|
@@ -981,33 +971,69 @@ that contains an object can contain another object (but not further).</p>
|
|
|
981
971
|
|
|
982
972
|
<tr>
|
|
983
973
|
|
|
984
|
-
<td class="name"><code>
|
|
974
|
+
<td class="name"><code>elements</code></td>
|
|
985
975
|
|
|
986
976
|
|
|
987
977
|
<td class="type">
|
|
988
978
|
|
|
989
979
|
|
|
990
|
-
<span class="param-type">
|
|
980
|
+
<span class="param-type">Array.<NameValuePair></span>
|
|
991
981
|
|
|
992
982
|
|
|
993
983
|
|
|
994
984
|
</td>
|
|
995
985
|
|
|
996
986
|
|
|
997
|
-
<td class="attributes">
|
|
998
|
-
|
|
999
987
|
|
|
1000
|
-
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
<td class="description last"><p>flattened array of name-value-pairs</p></td>
|
|
991
|
+
</tr>
|
|
1001
992
|
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
<tr>
|
|
996
|
+
|
|
997
|
+
<td class="name"><code>mapObject</code></td>
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
<td class="type">
|
|
1001
|
+
|
|
1002
1002
|
|
|
1003
|
-
|
|
1003
|
+
<span class="param-type">object</span>
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
</td>
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
<td class="description last"><p>container to collect the results. Needs to be created before e.g. using <code>{}</code>.</p></td>
|
|
1014
|
+
</tr>
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
<tr>
|
|
1019
|
+
|
|
1020
|
+
<td class="name"><code>filterMatchesFunction</code></td>
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
<td class="type">
|
|
1024
|
+
|
|
1004
1025
|
|
|
1005
|
-
|
|
1026
|
+
<span class="param-type">function</span>
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
</td>
|
|
1031
|
+
|
|
1006
1032
|
|
|
1007
1033
|
|
|
1008
1034
|
|
|
1009
1035
|
|
|
1010
|
-
<td class="description last"><p>
|
|
1036
|
+
<td class="description last"><p>takes the property name as string argument and returns true (include) or false (exclude).</p></td>
|
|
1011
1037
|
</tr>
|
|
1012
1038
|
|
|
1013
1039
|
|
|
@@ -1048,7 +1074,7 @@ that contains an object can contain another object (but not further).</p>
|
|
|
1048
1074
|
|
|
1049
1075
|
<dt class="tag-source">Source:</dt>
|
|
1050
1076
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1051
|
-
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#
|
|
1077
|
+
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#line156">line 156</a>
|
|
1052
1078
|
</li></ul></dd>
|
|
1053
1079
|
|
|
1054
1080
|
|
|
@@ -1073,28 +1099,6 @@ that contains an object can contain another object (but not further).</p>
|
|
|
1073
1099
|
|
|
1074
1100
|
|
|
1075
1101
|
|
|
1076
|
-
<h5>Returns:</h5>
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
<div class="param-desc">
|
|
1080
|
-
<p>object with resolvable field names and their values.</p>
|
|
1081
|
-
</div>
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
<dl>
|
|
1086
|
-
<dt>
|
|
1087
|
-
Type
|
|
1088
|
-
</dt>
|
|
1089
|
-
<dd>
|
|
1090
|
-
|
|
1091
|
-
<span class="param-type">object</span>
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
</dd>
|
|
1095
|
-
</dl>
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
1102
|
|
|
1099
1103
|
|
|
1100
1104
|
|
|
@@ -1106,7 +1110,7 @@ that contains an object can contain another object (but not further).</p>
|
|
|
1106
1110
|
|
|
1107
1111
|
|
|
1108
1112
|
|
|
1109
|
-
<h4 class="name" id="
|
|
1113
|
+
<h4 class="name" id=".getPropertyNameInfos"><span class="type-signature">(protected, static) </span>getPropertyNameInfos<span class="signature">(fullPropertyName)</span><span class="type-signature"> → {Object}</span></h4>
|
|
1110
1114
|
|
|
1111
1115
|
|
|
1112
1116
|
|
|
@@ -1114,11 +1118,7 @@ that contains an object can contain another object (but not further).</p>
|
|
|
1114
1118
|
|
|
1115
1119
|
|
|
1116
1120
|
<div class="description">
|
|
1117
|
-
<p>
|
|
1118
|
-
<p>The template may contain variables in double curly brackets.
|
|
1119
|
-
Supported variables are all properties of this object, e.g. "{{fieldName}}", "{{displayName}}", "{{value}}".
|
|
1120
|
-
Since this object may also contains (described) groups of sub objects, they can also be used, e.g. "{{summaries[0].value}}"
|
|
1121
|
-
Parts of the index can be inserted by using e.g. "{{index[1]}}".</p>
|
|
1121
|
+
<p>Infos about the full property name including the name of the group (followed by the separator) and the name of the property itself.</p>
|
|
1122
1122
|
</div>
|
|
1123
1123
|
|
|
1124
1124
|
|
|
@@ -1154,13 +1154,13 @@ Parts of the index can be inserted by using e.g. "{{index[1]}}".</p>
|
|
|
1154
1154
|
|
|
1155
1155
|
<tr>
|
|
1156
1156
|
|
|
1157
|
-
<td class="name"><code>
|
|
1157
|
+
<td class="name"><code>fullPropertyName</code></td>
|
|
1158
1158
|
|
|
1159
1159
|
|
|
1160
1160
|
<td class="type">
|
|
1161
1161
|
|
|
1162
1162
|
|
|
1163
|
-
<span class="param-type">
|
|
1163
|
+
<span class="param-type">String</span>
|
|
1164
1164
|
|
|
1165
1165
|
|
|
1166
1166
|
|
|
@@ -1211,7 +1211,7 @@ Parts of the index can be inserted by using e.g. "{{index[1]}}".</p>
|
|
|
1211
1211
|
|
|
1212
1212
|
<dt class="tag-source">Source:</dt>
|
|
1213
1213
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1214
|
-
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#
|
|
1214
|
+
<a href="templateResolver.js.html">templateResolver.js</a>, <a href="templateResolver.js.html#line132">line 132</a>
|
|
1215
1215
|
</li></ul></dd>
|
|
1216
1216
|
|
|
1217
1217
|
|
|
@@ -1240,7 +1240,7 @@ Parts of the index can be inserted by using e.g. "{{index[1]}}".</p>
|
|
|
1240
1240
|
|
|
1241
1241
|
|
|
1242
1242
|
<div class="param-desc">
|
|
1243
|
-
<p>
|
|
1243
|
+
<p>Contains "group" (empty or group name including trailing separator "."), "groupWithoutArrayIndices" and "name" (property name).</p>
|
|
1244
1244
|
</div>
|
|
1245
1245
|
|
|
1246
1246
|
|
|
@@ -1251,7 +1251,7 @@ Parts of the index can be inserted by using e.g. "{{index[1]}}".</p>
|
|
|
1251
1251
|
</dt>
|
|
1252
1252
|
<dd>
|
|
1253
1253
|
|
|
1254
|
-
<span class="param-type">
|
|
1254
|
+
<span class="param-type">Object</span>
|
|
1255
1255
|
|
|
1256
1256
|
|
|
1257
1257
|
</dd>
|
|
@@ -1285,7 +1285,7 @@ Parts of the index can be inserted by using e.g. "{{index[1]}}".</p>
|
|
|
1285
1285
|
<br class="clear">
|
|
1286
1286
|
|
|
1287
1287
|
<footer>
|
|
1288
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc
|
|
1288
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Feb 28 2023 21:27:12 GMT+0100 (Central European Standard Time)
|
|
1289
1289
|
</footer>
|
|
1290
1290
|
|
|
1291
1291
|
<script> prettyPrint(); </script>
|