@k-int/stripes-kint-components 2.8.2 → 2.8.3
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/CHANGELOG.md +3 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +2 -2
- package/junit.xml +157 -656
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +56 -8
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +394 -64
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +10 -10
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +187 -52
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +372 -87
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +293 -74
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +126 -54
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +45 -60
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +23 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +59 -47
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +259 -97
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +399 -105
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +41 -68
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +57 -57
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +67 -688
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +92 -53
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +103 -64
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +54 -63
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +49 -16
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +69 -18
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +89 -89
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +33 -786
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +46 -46
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +45 -36
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +43 -28
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +20 -2
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +50 -41
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +54 -75
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +24 -24
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/{hooks/useAvailableCustomProperties.js.html → CycleButton/CycleButton.js.html} +62 -50
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +664 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +264 -39
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +41 -14
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +45 -6
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +47 -11
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +65 -14
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +154 -31
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +26 -26
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +18 -18
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +35 -17
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +15 -15
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +247 -0
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/CustomPropertiesView.js.html → IconSelect/IconSelect.js.html} +158 -257
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +48 -6
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/testResources.js.html → RichSelect/RichSelect.js.html} +256 -334
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +127 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +52 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +31 -4
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +24 -27
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +47 -17
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +22 -22
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +142 -97
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +13 -4
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +35 -20
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +61 -22
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +19 -22
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +151 -0
- package/src/artifacts/coverage-jest/lcov-report/{utils/renderHelpText.js.html → hooks/useIntlKeyStore.js.html} +71 -38
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +238 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +23 -11
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +274 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +19 -10
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/index.html +205 -130
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +34 -34
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +42 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +139 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +128 -80
- package/src/artifacts/coverage-jest/lcov.info +2603 -2086
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +1 -1
package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html
CHANGED
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">66.66% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>20/30</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">54.76% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>23/42</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">66.66% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>6/9</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">66.66% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>18/27</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -453,7 +453,80 @@
|
|
|
453
453
|
<a name='L388'></a><a href='#L388'>388</a>
|
|
454
454
|
<a name='L389'></a><a href='#L389'>389</a>
|
|
455
455
|
<a name='L390'></a><a href='#L390'>390</a>
|
|
456
|
-
<a name='L391'></a><a href='#L391'>391</a
|
|
456
|
+
<a name='L391'></a><a href='#L391'>391</a>
|
|
457
|
+
<a name='L392'></a><a href='#L392'>392</a>
|
|
458
|
+
<a name='L393'></a><a href='#L393'>393</a>
|
|
459
|
+
<a name='L394'></a><a href='#L394'>394</a>
|
|
460
|
+
<a name='L395'></a><a href='#L395'>395</a>
|
|
461
|
+
<a name='L396'></a><a href='#L396'>396</a>
|
|
462
|
+
<a name='L397'></a><a href='#L397'>397</a>
|
|
463
|
+
<a name='L398'></a><a href='#L398'>398</a>
|
|
464
|
+
<a name='L399'></a><a href='#L399'>399</a>
|
|
465
|
+
<a name='L400'></a><a href='#L400'>400</a>
|
|
466
|
+
<a name='L401'></a><a href='#L401'>401</a>
|
|
467
|
+
<a name='L402'></a><a href='#L402'>402</a>
|
|
468
|
+
<a name='L403'></a><a href='#L403'>403</a>
|
|
469
|
+
<a name='L404'></a><a href='#L404'>404</a>
|
|
470
|
+
<a name='L405'></a><a href='#L405'>405</a>
|
|
471
|
+
<a name='L406'></a><a href='#L406'>406</a>
|
|
472
|
+
<a name='L407'></a><a href='#L407'>407</a>
|
|
473
|
+
<a name='L408'></a><a href='#L408'>408</a>
|
|
474
|
+
<a name='L409'></a><a href='#L409'>409</a>
|
|
475
|
+
<a name='L410'></a><a href='#L410'>410</a>
|
|
476
|
+
<a name='L411'></a><a href='#L411'>411</a>
|
|
477
|
+
<a name='L412'></a><a href='#L412'>412</a>
|
|
478
|
+
<a name='L413'></a><a href='#L413'>413</a>
|
|
479
|
+
<a name='L414'></a><a href='#L414'>414</a>
|
|
480
|
+
<a name='L415'></a><a href='#L415'>415</a>
|
|
481
|
+
<a name='L416'></a><a href='#L416'>416</a>
|
|
482
|
+
<a name='L417'></a><a href='#L417'>417</a>
|
|
483
|
+
<a name='L418'></a><a href='#L418'>418</a>
|
|
484
|
+
<a name='L419'></a><a href='#L419'>419</a>
|
|
485
|
+
<a name='L420'></a><a href='#L420'>420</a>
|
|
486
|
+
<a name='L421'></a><a href='#L421'>421</a>
|
|
487
|
+
<a name='L422'></a><a href='#L422'>422</a>
|
|
488
|
+
<a name='L423'></a><a href='#L423'>423</a>
|
|
489
|
+
<a name='L424'></a><a href='#L424'>424</a>
|
|
490
|
+
<a name='L425'></a><a href='#L425'>425</a>
|
|
491
|
+
<a name='L426'></a><a href='#L426'>426</a>
|
|
492
|
+
<a name='L427'></a><a href='#L427'>427</a>
|
|
493
|
+
<a name='L428'></a><a href='#L428'>428</a>
|
|
494
|
+
<a name='L429'></a><a href='#L429'>429</a>
|
|
495
|
+
<a name='L430'></a><a href='#L430'>430</a>
|
|
496
|
+
<a name='L431'></a><a href='#L431'>431</a>
|
|
497
|
+
<a name='L432'></a><a href='#L432'>432</a>
|
|
498
|
+
<a name='L433'></a><a href='#L433'>433</a>
|
|
499
|
+
<a name='L434'></a><a href='#L434'>434</a>
|
|
500
|
+
<a name='L435'></a><a href='#L435'>435</a>
|
|
501
|
+
<a name='L436'></a><a href='#L436'>436</a>
|
|
502
|
+
<a name='L437'></a><a href='#L437'>437</a>
|
|
503
|
+
<a name='L438'></a><a href='#L438'>438</a>
|
|
504
|
+
<a name='L439'></a><a href='#L439'>439</a>
|
|
505
|
+
<a name='L440'></a><a href='#L440'>440</a>
|
|
506
|
+
<a name='L441'></a><a href='#L441'>441</a>
|
|
507
|
+
<a name='L442'></a><a href='#L442'>442</a>
|
|
508
|
+
<a name='L443'></a><a href='#L443'>443</a>
|
|
509
|
+
<a name='L444'></a><a href='#L444'>444</a>
|
|
510
|
+
<a name='L445'></a><a href='#L445'>445</a>
|
|
511
|
+
<a name='L446'></a><a href='#L446'>446</a>
|
|
512
|
+
<a name='L447'></a><a href='#L447'>447</a>
|
|
513
|
+
<a name='L448'></a><a href='#L448'>448</a>
|
|
514
|
+
<a name='L449'></a><a href='#L449'>449</a>
|
|
515
|
+
<a name='L450'></a><a href='#L450'>450</a>
|
|
516
|
+
<a name='L451'></a><a href='#L451'>451</a>
|
|
517
|
+
<a name='L452'></a><a href='#L452'>452</a>
|
|
518
|
+
<a name='L453'></a><a href='#L453'>453</a>
|
|
519
|
+
<a name='L454'></a><a href='#L454'>454</a>
|
|
520
|
+
<a name='L455'></a><a href='#L455'>455</a>
|
|
521
|
+
<a name='L456'></a><a href='#L456'>456</a>
|
|
522
|
+
<a name='L457'></a><a href='#L457'>457</a>
|
|
523
|
+
<a name='L458'></a><a href='#L458'>458</a>
|
|
524
|
+
<a name='L459'></a><a href='#L459'>459</a>
|
|
525
|
+
<a name='L460'></a><a href='#L460'>460</a>
|
|
526
|
+
<a name='L461'></a><a href='#L461'>461</a>
|
|
527
|
+
<a name='L462'></a><a href='#L462'>462</a>
|
|
528
|
+
<a name='L463'></a><a href='#L463'>463</a>
|
|
529
|
+
<a name='L464'></a><a href='#L464'>464</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
457
530
|
<span class="cline-any cline-neutral"> </span>
|
|
458
531
|
<span class="cline-any cline-neutral"> </span>
|
|
459
532
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -484,6 +557,8 @@
|
|
|
484
557
|
<span class="cline-any cline-neutral"> </span>
|
|
485
558
|
<span class="cline-any cline-neutral"> </span>
|
|
486
559
|
<span class="cline-any cline-neutral"> </span>
|
|
560
|
+
<span class="cline-any cline-neutral"> </span>
|
|
561
|
+
<span class="cline-any cline-neutral"> </span>
|
|
487
562
|
<span class="cline-any cline-yes">40x</span>
|
|
488
563
|
<span class="cline-any cline-yes">40x</span>
|
|
489
564
|
<span class="cline-any cline-yes">40x</span>
|
|
@@ -507,11 +582,23 @@
|
|
|
507
582
|
<span class="cline-any cline-neutral"> </span>
|
|
508
583
|
<span class="cline-any cline-neutral"> </span>
|
|
509
584
|
<span class="cline-any cline-neutral"> </span>
|
|
585
|
+
<span class="cline-any cline-neutral"> </span>
|
|
586
|
+
<span class="cline-any cline-neutral"> </span>
|
|
587
|
+
<span class="cline-any cline-neutral"> </span>
|
|
588
|
+
<span class="cline-any cline-neutral"> </span>
|
|
589
|
+
<span class="cline-any cline-neutral"> </span>
|
|
590
|
+
<span class="cline-any cline-neutral"> </span>
|
|
591
|
+
<span class="cline-any cline-neutral"> </span>
|
|
592
|
+
<span class="cline-any cline-neutral"> </span>
|
|
510
593
|
<span class="cline-any cline-yes">40x</span>
|
|
511
594
|
<span class="cline-any cline-yes">40x</span>
|
|
512
595
|
<span class="cline-any cline-no"> </span>
|
|
513
596
|
<span class="cline-any cline-neutral"> </span>
|
|
514
597
|
<span class="cline-any cline-neutral"> </span>
|
|
598
|
+
<span class="cline-any cline-neutral"> </span>
|
|
599
|
+
<span class="cline-any cline-neutral"> </span>
|
|
600
|
+
<span class="cline-any cline-neutral"> </span>
|
|
601
|
+
<span class="cline-any cline-neutral"> </span>
|
|
515
602
|
<span class="cline-any cline-yes">40x</span>
|
|
516
603
|
<span class="cline-any cline-neutral"> </span>
|
|
517
604
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -638,6 +725,28 @@
|
|
|
638
725
|
<span class="cline-any cline-neutral"> </span>
|
|
639
726
|
<span class="cline-any cline-neutral"> </span>
|
|
640
727
|
<span class="cline-any cline-neutral"> </span>
|
|
728
|
+
<span class="cline-any cline-neutral"> </span>
|
|
729
|
+
<span class="cline-any cline-neutral"> </span>
|
|
730
|
+
<span class="cline-any cline-neutral"> </span>
|
|
731
|
+
<span class="cline-any cline-neutral"> </span>
|
|
732
|
+
<span class="cline-any cline-neutral"> </span>
|
|
733
|
+
<span class="cline-any cline-neutral"> </span>
|
|
734
|
+
<span class="cline-any cline-neutral"> </span>
|
|
735
|
+
<span class="cline-any cline-neutral"> </span>
|
|
736
|
+
<span class="cline-any cline-neutral"> </span>
|
|
737
|
+
<span class="cline-any cline-neutral"> </span>
|
|
738
|
+
<span class="cline-any cline-neutral"> </span>
|
|
739
|
+
<span class="cline-any cline-neutral"> </span>
|
|
740
|
+
<span class="cline-any cline-neutral"> </span>
|
|
741
|
+
<span class="cline-any cline-neutral"> </span>
|
|
742
|
+
<span class="cline-any cline-neutral"> </span>
|
|
743
|
+
<span class="cline-any cline-neutral"> </span>
|
|
744
|
+
<span class="cline-any cline-neutral"> </span>
|
|
745
|
+
<span class="cline-any cline-neutral"> </span>
|
|
746
|
+
<span class="cline-any cline-neutral"> </span>
|
|
747
|
+
<span class="cline-any cline-neutral"> </span>
|
|
748
|
+
<span class="cline-any cline-neutral"> </span>
|
|
749
|
+
<span class="cline-any cline-neutral"> </span>
|
|
641
750
|
<span class="cline-any cline-yes">20x</span>
|
|
642
751
|
<span class="cline-any cline-yes">20x</span>
|
|
643
752
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -646,6 +755,8 @@
|
|
|
646
755
|
<span class="cline-any cline-neutral"> </span>
|
|
647
756
|
<span class="cline-any cline-neutral"> </span>
|
|
648
757
|
<span class="cline-any cline-neutral"> </span>
|
|
758
|
+
<span class="cline-any cline-neutral"> </span>
|
|
759
|
+
<span class="cline-any cline-neutral"> </span>
|
|
649
760
|
<span class="cline-any cline-no"> </span>
|
|
650
761
|
<span class="cline-any cline-neutral"> </span>
|
|
651
762
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -689,13 +800,46 @@
|
|
|
689
800
|
<span class="cline-any cline-neutral"> </span>
|
|
690
801
|
<span class="cline-any cline-neutral"> </span>
|
|
691
802
|
<span class="cline-any cline-neutral"> </span>
|
|
803
|
+
<span class="cline-any cline-neutral"> </span>
|
|
804
|
+
<span class="cline-any cline-neutral"> </span>
|
|
805
|
+
<span class="cline-any cline-neutral"> </span>
|
|
806
|
+
<span class="cline-any cline-neutral"> </span>
|
|
807
|
+
<span class="cline-any cline-neutral"> </span>
|
|
808
|
+
<span class="cline-any cline-neutral"> </span>
|
|
809
|
+
<span class="cline-any cline-neutral"> </span>
|
|
810
|
+
<span class="cline-any cline-neutral"> </span>
|
|
811
|
+
<span class="cline-any cline-neutral"> </span>
|
|
812
|
+
<span class="cline-any cline-neutral"> </span>
|
|
813
|
+
<span class="cline-any cline-neutral"> </span>
|
|
814
|
+
<span class="cline-any cline-neutral"> </span>
|
|
815
|
+
<span class="cline-any cline-neutral"> </span>
|
|
816
|
+
<span class="cline-any cline-neutral"> </span>
|
|
692
817
|
<span class="cline-any cline-no"> </span>
|
|
693
818
|
<span class="cline-any cline-no"> </span>
|
|
694
819
|
<span class="cline-any cline-neutral"> </span>
|
|
695
820
|
<span class="cline-any cline-no"> </span>
|
|
696
821
|
<span class="cline-any cline-neutral"> </span>
|
|
697
822
|
<span class="cline-any cline-neutral"> </span>
|
|
698
|
-
<span class="cline-any cline-
|
|
823
|
+
<span class="cline-any cline-neutral"> </span>
|
|
824
|
+
<span class="cline-any cline-neutral"> </span>
|
|
825
|
+
<span class="cline-any cline-neutral"> </span>
|
|
826
|
+
<span class="cline-any cline-neutral"> </span>
|
|
827
|
+
<span class="cline-any cline-neutral"> </span>
|
|
828
|
+
<span class="cline-any cline-neutral"> </span>
|
|
829
|
+
<span class="cline-any cline-neutral"> </span>
|
|
830
|
+
<span class="cline-any cline-neutral"> </span>
|
|
831
|
+
<span class="cline-any cline-neutral"> </span>
|
|
832
|
+
<span class="cline-any cline-neutral"> </span>
|
|
833
|
+
<span class="cline-any cline-neutral"> </span>
|
|
834
|
+
<span class="cline-any cline-neutral"> </span>
|
|
835
|
+
<span class="cline-any cline-neutral"> </span>
|
|
836
|
+
<span class="cline-any cline-neutral"> </span>
|
|
837
|
+
<span class="cline-any cline-neutral"> </span>
|
|
838
|
+
<span class="cline-any cline-neutral"> </span>
|
|
839
|
+
<span class="cline-any cline-neutral"> </span>
|
|
840
|
+
<span class="cline-any cline-neutral"> </span>
|
|
841
|
+
<span class="cline-any cline-neutral"> </span>
|
|
842
|
+
<span class="cline-any cline-neutral"> </span>
|
|
699
843
|
<span class="cline-any cline-neutral"> </span>
|
|
700
844
|
<span class="cline-any cline-neutral"> </span>
|
|
701
845
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -843,9 +987,10 @@
|
|
|
843
987
|
<span class="cline-any cline-neutral"> </span>
|
|
844
988
|
<span class="cline-any cline-neutral"> </span>
|
|
845
989
|
<span class="cline-any cline-neutral"> </span>
|
|
990
|
+
<span class="cline-any cline-neutral"> </span>
|
|
991
|
+
<span class="cline-any cline-neutral"> </span>
|
|
846
992
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { useState } from 'react';
|
|
847
993
|
import PropTypes from 'prop-types';
|
|
848
|
-
import { FormattedMessage, useIntl } from 'react-intl';
|
|
849
994
|
import { Field, useFormState, useForm } from 'react-final-form';
|
|
850
995
|
|
|
851
996
|
import {
|
|
@@ -867,16 +1012,19 @@ import {
|
|
|
867
1012
|
MULTI_REFDATA_CLASS_NAME,
|
|
868
1013
|
DATE_CLASS_NAME
|
|
869
1014
|
} from '../../constants/customProperties';
|
|
1015
|
+
import { useKintIntl } from '../../hooks';
|
|
870
1016
|
|
|
871
1017
|
const CustomPropertyForm = ({
|
|
872
1018
|
contextFilterOptions,
|
|
873
1019
|
helpPopovers,
|
|
874
|
-
|
|
1020
|
+
intlKey: passedIntlKey,
|
|
1021
|
+
intlNS: passedIntlNS,
|
|
1022
|
+
labelOverrides = {},
|
|
875
1023
|
refdata
|
|
876
1024
|
}) => {
|
|
877
1025
|
const { values } = useFormState();
|
|
878
1026
|
const { change } = useForm();
|
|
879
|
-
const
|
|
1027
|
+
const kintIntl = useKintIntl(passedIntlKey, passedIntlNS);
|
|
880
1028
|
|
|
881
1029
|
const booleanToString = booleanValue => booleanValue?.toString();
|
|
882
1030
|
const stringToBoolean = <span class="fstat-no" title="function not covered" >st</span>ringValue => <span class="cstat-no" title="statement not covered" >stringValue === 'true';</span>
|
|
@@ -893,14 +1041,26 @@ const CustomPropertyForm = ({
|
|
|
893
1041
|
if (!filterValue || <span class="branch-1 cbranch-no" title="branch not covered" >exactMatch)</span> {
|
|
894
1042
|
return null;
|
|
895
1043
|
} else <span class="missing-if-branch" title="else path not taken" >E</span>{
|
|
896
|
-
<span class="cstat-no" title="statement not covered" > return
|
|
1044
|
+
<span class="cstat-no" title="statement not covered" > return kintIntl.formatKintMessage(</span>
|
|
1045
|
+
{
|
|
1046
|
+
id: 'customProperties.ctx.addContext',
|
|
1047
|
+
overrideValue: labelOverrides?.addCtx
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
value: filterValue
|
|
1051
|
+
}
|
|
1052
|
+
);
|
|
897
1053
|
}
|
|
898
1054
|
};
|
|
899
1055
|
|
|
900
1056
|
const primaryRetiredValidator = (_v, allValues) => {
|
|
901
1057
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (allValues.primary && allValues.retired) {
|
|
902
|
-
<span class="cstat-no" title="statement not covered" > return
|
|
903
|
-
|
|
1058
|
+
<span class="cstat-no" title="statement not covered" > return kintIntl.formatKintMessage(</span>
|
|
1059
|
+
{
|
|
1060
|
+
id: 'customProperties.errors.primaryRetired',
|
|
1061
|
+
overrideValue: labelOverrides?.primaryRetired
|
|
1062
|
+
}
|
|
1063
|
+
);
|
|
904
1064
|
}
|
|
905
1065
|
return null;
|
|
906
1066
|
};
|
|
@@ -915,48 +1075,58 @@ const CustomPropertyForm = ({
|
|
|
915
1075
|
dataOptions={[
|
|
916
1076
|
{ label: '', value: '' },
|
|
917
1077
|
{
|
|
918
|
-
label:
|
|
919
|
-
id: `
|
|
1078
|
+
label: kintIntl.formatKintMessage({
|
|
1079
|
+
id: `customProperties.type.${DECIMAL_CLASS_NAME}`,
|
|
1080
|
+
overrideValue: labelOverrides?.[DECIMAL_CLASS_NAME]
|
|
920
1081
|
}),
|
|
921
1082
|
value: DECIMAL_CLASS_NAME,
|
|
922
1083
|
},
|
|
923
1084
|
{
|
|
924
|
-
label:
|
|
925
|
-
id: `
|
|
1085
|
+
label: kintIntl.formatKintMessage({
|
|
1086
|
+
id: `customProperties.type.${INTEGER_CLASS_NAME}`,
|
|
1087
|
+
overrideValue: labelOverrides?.[INTEGER_CLASS_NAME]
|
|
926
1088
|
}),
|
|
927
1089
|
value: INTEGER_CLASS_NAME,
|
|
928
1090
|
},
|
|
929
1091
|
{
|
|
930
|
-
label:
|
|
931
|
-
id: `
|
|
1092
|
+
label: kintIntl.formatKintMessage({
|
|
1093
|
+
id: `customProperties.type.${TEXT_CLASS_NAME}`,
|
|
1094
|
+
overrideValue: labelOverrides?.[TEXT_CLASS_NAME]
|
|
932
1095
|
}),
|
|
933
1096
|
value: TEXT_CLASS_NAME,
|
|
934
1097
|
},
|
|
935
1098
|
{
|
|
936
|
-
label:
|
|
937
|
-
id: `
|
|
1099
|
+
label: kintIntl.formatKintMessage({
|
|
1100
|
+
id: `customProperties.type.${REFDATA_CLASS_NAME}`,
|
|
1101
|
+
overrideValue: labelOverrides?.[REFDATA_CLASS_NAME]
|
|
938
1102
|
}),
|
|
939
1103
|
value: REFDATA_CLASS_NAME,
|
|
940
1104
|
},
|
|
941
1105
|
{
|
|
942
|
-
label:
|
|
943
|
-
id: `
|
|
1106
|
+
label: kintIntl.formatKintMessage({
|
|
1107
|
+
id: `customProperties.type.${MULTI_REFDATA_CLASS_NAME}`,
|
|
1108
|
+
overrideValue: labelOverrides?.[MULTI_REFDATA_CLASS_NAME]
|
|
944
1109
|
}),
|
|
945
1110
|
value: MULTI_REFDATA_CLASS_NAME,
|
|
946
1111
|
},
|
|
947
1112
|
{
|
|
948
|
-
label:
|
|
949
|
-
id: `
|
|
1113
|
+
label: kintIntl.formatKintMessage({
|
|
1114
|
+
id: `customProperties.type.${DATE_CLASS_NAME}`,
|
|
1115
|
+
overrideValue: labelOverrides?.[DATE_CLASS_NAME]
|
|
950
1116
|
}),
|
|
951
1117
|
value: DATE_CLASS_NAME,
|
|
952
1118
|
},
|
|
953
1119
|
]
|
|
954
1120
|
}
|
|
955
|
-
disabled={values?.id}
|
|
1121
|
+
disabled={!!values?.id}
|
|
956
1122
|
label={
|
|
957
1123
|
<div>
|
|
958
|
-
{
|
|
959
|
-
|
|
1124
|
+
{
|
|
1125
|
+
kintIntl.formatKintMessage({
|
|
1126
|
+
id: 'customProperties.type',
|
|
1127
|
+
overrideValue: labelOverrides?.type
|
|
1128
|
+
})
|
|
1129
|
+
}
|
|
960
1130
|
{helpPopovers?.type ?
|
|
961
1131
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
962
1132
|
content={helpPopovers?.type}
|
|
@@ -973,11 +1143,15 @@ const CustomPropertyForm = ({
|
|
|
973
1143
|
<span class="branch-2 cbranch-no" title="branch not covered" > <Field</span>
|
|
974
1144
|
component={Select}
|
|
975
1145
|
dataOptions={[{ label: '', value: '' }, ...refdata]}
|
|
976
|
-
disabled={values?.id}
|
|
1146
|
+
disabled={!!values?.id}
|
|
977
1147
|
label={
|
|
978
1148
|
<div>
|
|
979
|
-
{
|
|
980
|
-
|
|
1149
|
+
{
|
|
1150
|
+
kintIntl.formatKintMessage({
|
|
1151
|
+
id: 'customProperties.category',
|
|
1152
|
+
overrideValue: labelOverrides?.category
|
|
1153
|
+
})
|
|
1154
|
+
}
|
|
981
1155
|
{helpPopovers?.category ?
|
|
982
1156
|
<InfoPopover
|
|
983
1157
|
content={helpPopovers?.category}
|
|
@@ -998,12 +1172,16 @@ const CustomPropertyForm = ({
|
|
|
998
1172
|
id="custom-prop-label"
|
|
999
1173
|
label={
|
|
1000
1174
|
<div>
|
|
1001
|
-
{
|
|
1002
|
-
|
|
1175
|
+
{
|
|
1176
|
+
kintIntl.formatKintMessage({
|
|
1177
|
+
id: 'customProperties.label',
|
|
1178
|
+
overrideValue: labelOverrides?.label
|
|
1179
|
+
})
|
|
1180
|
+
}
|
|
1003
1181
|
{helpPopovers?.label ?
|
|
1004
|
-
<InfoPopover
|
|
1182
|
+
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1005
1183
|
content={helpPopovers?.label}
|
|
1006
|
-
/> :
|
|
1184
|
+
/> : null}
|
|
1007
1185
|
</div>
|
|
1008
1186
|
}
|
|
1009
1187
|
name="label"
|
|
@@ -1017,12 +1195,16 @@ const CustomPropertyForm = ({
|
|
|
1017
1195
|
id="custom-prop-name"
|
|
1018
1196
|
label={
|
|
1019
1197
|
<div>
|
|
1020
|
-
{
|
|
1021
|
-
|
|
1198
|
+
{
|
|
1199
|
+
kintIntl.formatKintMessage({
|
|
1200
|
+
id: 'customProperties.name',
|
|
1201
|
+
overrideValue: labelOverrides?.name
|
|
1202
|
+
})
|
|
1203
|
+
}
|
|
1022
1204
|
{helpPopovers?.name ?
|
|
1023
|
-
<InfoPopover
|
|
1205
|
+
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1024
1206
|
content={helpPopovers?.name}
|
|
1025
|
-
/> :
|
|
1207
|
+
/> : null}
|
|
1026
1208
|
</div>
|
|
1027
1209
|
}
|
|
1028
1210
|
name="name"
|
|
@@ -1031,9 +1213,11 @@ const CustomPropertyForm = ({
|
|
|
1031
1213
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (v && v.length) {
|
|
1032
1214
|
return /^[a-z][a-z0-9]*$/i.test(v) ? (
|
|
1033
1215
|
undefined
|
|
1034
|
-
) :
|
|
1035
|
-
<span class="branch-1 cbranch-no" title="branch not covered" >
|
|
1036
|
-
|
|
1216
|
+
) :
|
|
1217
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > kintIntl.formatKintMessage({</span>
|
|
1218
|
+
id: 'errors.hasNonAlphaName',
|
|
1219
|
+
overrideValue: labelOverrides?.hasNonAlphaName
|
|
1220
|
+
});
|
|
1037
1221
|
}
|
|
1038
1222
|
|
|
1039
1223
|
<span class="cstat-no" title="statement not covered" > return requiredValidator(v);</span>
|
|
@@ -1048,8 +1232,12 @@ const CustomPropertyForm = ({
|
|
|
1048
1232
|
id="custom-prop-description"
|
|
1049
1233
|
label={
|
|
1050
1234
|
<div>
|
|
1051
|
-
{
|
|
1052
|
-
|
|
1235
|
+
{
|
|
1236
|
+
kintIntl.formatKintMessage({
|
|
1237
|
+
id: 'customProperties.description',
|
|
1238
|
+
overrideValue: labelOverrides?.description
|
|
1239
|
+
})
|
|
1240
|
+
}
|
|
1053
1241
|
{helpPopovers?.description ?
|
|
1054
1242
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1055
1243
|
content={helpPopovers?.description}
|
|
@@ -1058,6 +1246,7 @@ const CustomPropertyForm = ({
|
|
|
1058
1246
|
}
|
|
1059
1247
|
name="description"
|
|
1060
1248
|
required
|
|
1249
|
+
// FIXME I think the required Validator might pose translation problems
|
|
1061
1250
|
validate={requiredValidator}
|
|
1062
1251
|
/>
|
|
1063
1252
|
</Col>
|
|
@@ -1066,11 +1255,20 @@ const CustomPropertyForm = ({
|
|
|
1066
1255
|
actions={[{ onSelect: addCtx, render: renderAddCtx }]}
|
|
1067
1256
|
component={MultiSelection}
|
|
1068
1257
|
dataOptions={contextOptions}
|
|
1069
|
-
emptyMessage={
|
|
1258
|
+
emptyMessage={
|
|
1259
|
+
kintIntl.formatKintMessage({
|
|
1260
|
+
id: 'customProperties.noCtxFound',
|
|
1261
|
+
overrideValue: labelOverrides?.noCtxFound
|
|
1262
|
+
})
|
|
1263
|
+
}
|
|
1070
1264
|
label={
|
|
1071
1265
|
<div>
|
|
1072
|
-
{
|
|
1073
|
-
|
|
1266
|
+
{
|
|
1267
|
+
kintIntl.formatKintMessage({
|
|
1268
|
+
id: 'customProperties.ctx',
|
|
1269
|
+
overrideValue: labelOverrides?.ctx
|
|
1270
|
+
})
|
|
1271
|
+
}
|
|
1074
1272
|
{helpPopovers?.ctx ?
|
|
1075
1273
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1076
1274
|
content={helpPopovers?.ctx}
|
|
@@ -1085,7 +1283,6 @@ const CustomPropertyForm = ({
|
|
|
1085
1283
|
<span class="cstat-no" title="statement not covered" > change('ctx', undefined);</span>
|
|
1086
1284
|
}
|
|
1087
1285
|
}}
|
|
1088
|
-
validate={value => (value?.length > 1 ? <span class="branch-0 cbranch-no" title="branch not covered" ><FormattedMessage id="stripes-kint-components.customProperties.ctx.error.moreThanOne" /> </span>: null)}
|
|
1089
1286
|
/>
|
|
1090
1287
|
</Col>
|
|
1091
1288
|
</Row>
|
|
@@ -1096,8 +1293,12 @@ const CustomPropertyForm = ({
|
|
|
1096
1293
|
id="custom-prop-weight"
|
|
1097
1294
|
label={
|
|
1098
1295
|
<div>
|
|
1099
|
-
{
|
|
1100
|
-
|
|
1296
|
+
{
|
|
1297
|
+
kintIntl.formatKintMessage({
|
|
1298
|
+
id: 'customProperties.weight',
|
|
1299
|
+
overrideValue: labelOverrides?.weight
|
|
1300
|
+
})
|
|
1301
|
+
}
|
|
1101
1302
|
{helpPopovers?.weight ?
|
|
1102
1303
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1103
1304
|
content={helpPopovers?.weight}
|
|
@@ -1115,14 +1316,16 @@ const CustomPropertyForm = ({
|
|
|
1115
1316
|
component={Select}
|
|
1116
1317
|
dataOptions={[
|
|
1117
1318
|
{
|
|
1118
|
-
label:
|
|
1119
|
-
id: '
|
|
1319
|
+
label: kintIntl.formatKintMessage({
|
|
1320
|
+
id: 'yes',
|
|
1321
|
+
overrideValue: labelOverrides?.yes
|
|
1120
1322
|
}),
|
|
1121
1323
|
value: 'true',
|
|
1122
1324
|
},
|
|
1123
1325
|
{
|
|
1124
|
-
label:
|
|
1125
|
-
id: '
|
|
1326
|
+
label: kintIntl.formatKintMessage({
|
|
1327
|
+
id: 'no',
|
|
1328
|
+
overrideValue: labelOverrides?.no
|
|
1126
1329
|
}),
|
|
1127
1330
|
value: 'false',
|
|
1128
1331
|
},
|
|
@@ -1130,8 +1333,12 @@ const CustomPropertyForm = ({
|
|
|
1130
1333
|
format={booleanToString}
|
|
1131
1334
|
label={
|
|
1132
1335
|
<div>
|
|
1133
|
-
{
|
|
1134
|
-
|
|
1336
|
+
{
|
|
1337
|
+
kintIntl.formatKintMessage({
|
|
1338
|
+
id: 'customProperties.primary',
|
|
1339
|
+
overrideValue: labelOverrides?.primary
|
|
1340
|
+
})
|
|
1341
|
+
}
|
|
1135
1342
|
{helpPopovers?.primary ?
|
|
1136
1343
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1137
1344
|
content={helpPopovers?.primary}
|
|
@@ -1152,14 +1359,16 @@ const CustomPropertyForm = ({
|
|
|
1152
1359
|
component={Select}
|
|
1153
1360
|
dataOptions={[
|
|
1154
1361
|
{
|
|
1155
|
-
label:
|
|
1156
|
-
id: '
|
|
1362
|
+
label: kintIntl.formatKintMessage({
|
|
1363
|
+
id: 'yes',
|
|
1364
|
+
overrideValue: labelOverrides?.yes
|
|
1157
1365
|
}),
|
|
1158
1366
|
value: 'true',
|
|
1159
1367
|
},
|
|
1160
1368
|
{
|
|
1161
|
-
label:
|
|
1162
|
-
id: '
|
|
1369
|
+
label: kintIntl.formatKintMessage({
|
|
1370
|
+
id: 'no',
|
|
1371
|
+
overrideValue: labelOverrides?.no
|
|
1163
1372
|
}),
|
|
1164
1373
|
value: 'false',
|
|
1165
1374
|
},
|
|
@@ -1167,8 +1376,12 @@ const CustomPropertyForm = ({
|
|
|
1167
1376
|
format={booleanToString}
|
|
1168
1377
|
label={
|
|
1169
1378
|
<div>
|
|
1170
|
-
{
|
|
1171
|
-
|
|
1379
|
+
{
|
|
1380
|
+
kintIntl.formatKintMessage({
|
|
1381
|
+
id: 'customProperties.retired',
|
|
1382
|
+
overrideValue: labelOverrides?.retired
|
|
1383
|
+
})
|
|
1384
|
+
}
|
|
1172
1385
|
{helpPopovers?.retired ?
|
|
1173
1386
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1174
1387
|
content={helpPopovers?.retired}
|
|
@@ -1189,16 +1402,16 @@ const CustomPropertyForm = ({
|
|
|
1189
1402
|
component={Select}
|
|
1190
1403
|
dataOptions={[
|
|
1191
1404
|
{
|
|
1192
|
-
label:
|
|
1193
|
-
id:
|
|
1194
|
-
|
|
1405
|
+
label: kintIntl.formatKintMessage({
|
|
1406
|
+
id: 'customProperties.internalTrue',
|
|
1407
|
+
overrideValue: labelOverrides?.internalTrue
|
|
1195
1408
|
}),
|
|
1196
1409
|
value: 'true',
|
|
1197
1410
|
},
|
|
1198
1411
|
{
|
|
1199
|
-
label:
|
|
1200
|
-
id:
|
|
1201
|
-
|
|
1412
|
+
label: kintIntl.formatKintMessage({
|
|
1413
|
+
id: 'customProperties.internalFalse',
|
|
1414
|
+
overrideValue: labelOverrides?.internalFalse
|
|
1202
1415
|
}),
|
|
1203
1416
|
value: 'false',
|
|
1204
1417
|
},
|
|
@@ -1206,8 +1419,12 @@ const CustomPropertyForm = ({
|
|
|
1206
1419
|
format={booleanToString}
|
|
1207
1420
|
label={
|
|
1208
1421
|
<div>
|
|
1209
|
-
{
|
|
1210
|
-
|
|
1422
|
+
{
|
|
1423
|
+
kintIntl.formatKintMessage({
|
|
1424
|
+
id: 'customProperties.defaultVisibility',
|
|
1425
|
+
overrideValue: labelOverrides?.defaultVisibility
|
|
1426
|
+
})
|
|
1427
|
+
}
|
|
1211
1428
|
{helpPopovers?.defaultVisibility ?
|
|
1212
1429
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
1213
1430
|
content={helpPopovers?.defaultVisibility}
|
|
@@ -1228,6 +1445,8 @@ const CustomPropertyForm = ({
|
|
|
1228
1445
|
CustomPropertyForm.propTypes = {
|
|
1229
1446
|
contextFilterOptions: PropTypes.arrayOf(PropTypes.object),
|
|
1230
1447
|
helpPopovers: PropTypes.object,
|
|
1448
|
+
intlKey: PropTypes.string,
|
|
1449
|
+
intlNS: PropTypes.string,
|
|
1231
1450
|
labelOverrides: PropTypes.object,
|
|
1232
1451
|
refdata: PropTypes.arrayOf(PropTypes.object)
|
|
1233
1452
|
};
|
|
@@ -1240,7 +1459,7 @@ export default CustomPropertyForm;
|
|
|
1240
1459
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1241
1460
|
Code coverage generated by
|
|
1242
1461
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1243
|
-
at
|
|
1462
|
+
at 2022-09-16T13:23:25.290Z
|
|
1244
1463
|
</div>
|
|
1245
1464
|
<script src="../../prettify.js"></script>
|
|
1246
1465
|
<script>
|