@k-int/stripes-kint-components 4.5.0 → 4.5.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/CHANGELOG.md +3 -0
- package/es/lib/utils/parseKiwtQueryGroups.js +39 -11
- package/es/lib/utils/parseKiwtQueryGroups.test.js +54 -0
- package/es/lib/utils/selectorSafe.js +1 -1
- package/junit.xml +1485 -215
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +1 -1
- 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 +42 -42
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +48 -48
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +57 -57
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +27 -27
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +53 -53
- 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 +17 -17
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +26 -26
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +90 -90
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +116 -116
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +26 -26
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +64 -64
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +31 -31
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +47 -47
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +20 -20
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +42 -42
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +96 -96
- 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 +5 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +35 -35
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +37 -37
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +34 -34
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +14 -14
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +43 -43
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +30 -30
- 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/CycleButton/CycleButton.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +20 -20
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +37 -37
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +62 -62
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +62 -62
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +43 -43
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +20 -20
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +30 -30
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +21 -21
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- 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 +52 -52
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +21 -21
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
- 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 +12 -12
- 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/hooks/index.html +31 -31
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +24 -24
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +38 -38
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/index.html +124 -124
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +1 -1
- 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 +4 -4
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +22 -22
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +40 -40
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +161 -80
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- 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 +16 -16
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/validators/index.html +19 -19
- package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +32 -32
- package/src/artifacts/coverage-jest/lcov.info +944 -944
- package/src/lib/utils/parseKiwtQueryGroups.js +39 -12
- package/src/lib/utils/parseKiwtQueryGroups.test.js +60 -0
package/package.json
CHANGED
|
@@ -358,7 +358,7 @@ export default ActionList;
|
|
|
358
358
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
359
359
|
Code coverage generated by
|
|
360
360
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
361
|
-
at 2023-03-
|
|
361
|
+
at 2023-03-21T17:34:57.995Z
|
|
362
362
|
</div>
|
|
363
363
|
<script src="../prettify.js"></script>
|
|
364
364
|
<script>
|
|
@@ -1450,7 +1450,7 @@ export default ActionListFieldArray;
|
|
|
1450
1450
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1451
1451
|
Code coverage generated by
|
|
1452
1452
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1453
|
-
at 2023-03-
|
|
1453
|
+
at 2023-03-21T17:34:57.995Z
|
|
1454
1454
|
</div>
|
|
1455
1455
|
<script src="../prettify.js"></script>
|
|
1456
1456
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-03-
|
|
134
|
+
at 2023-03-21T17:34:57.995Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
76
|
-
at 2023-03-
|
|
76
|
+
at 2023-03-21T17:34:57.995Z
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|
|
@@ -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">10.52% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>2/19</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/5</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/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">10.52% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>2/19</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -278,12 +278,12 @@
|
|
|
278
278
|
<span class="cline-any cline-neutral"> </span>
|
|
279
279
|
<span class="cline-any cline-neutral"> </span>
|
|
280
280
|
<span class="cline-any cline-neutral"> </span>
|
|
281
|
-
<span class="cline-any cline-
|
|
281
|
+
<span class="cline-any cline-no"> </span>
|
|
282
282
|
<span class="cline-any cline-neutral"> </span>
|
|
283
283
|
<span class="cline-any cline-neutral"> </span>
|
|
284
|
-
<span class="cline-any cline-
|
|
284
|
+
<span class="cline-any cline-no"> </span>
|
|
285
285
|
<span class="cline-any cline-neutral"> </span>
|
|
286
|
-
<span class="cline-any cline-
|
|
286
|
+
<span class="cline-any cline-no"> </span>
|
|
287
287
|
<span class="cline-any cline-neutral"> </span>
|
|
288
288
|
<span class="cline-any cline-neutral"> </span>
|
|
289
289
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -301,17 +301,17 @@
|
|
|
301
301
|
<span class="cline-any cline-neutral"> </span>
|
|
302
302
|
<span class="cline-any cline-neutral"> </span>
|
|
303
303
|
<span class="cline-any cline-neutral"> </span>
|
|
304
|
-
<span class="cline-any cline-
|
|
304
|
+
<span class="cline-any cline-no"> </span>
|
|
305
305
|
<span class="cline-any cline-no"> </span>
|
|
306
306
|
<span class="cline-any cline-neutral"> </span>
|
|
307
307
|
<span class="cline-any cline-neutral"> </span>
|
|
308
308
|
<span class="cline-any cline-neutral"> </span>
|
|
309
309
|
<span class="cline-any cline-neutral"> </span>
|
|
310
|
-
<span class="cline-any cline-
|
|
310
|
+
<span class="cline-any cline-no"> </span>
|
|
311
311
|
<span class="cline-any cline-neutral"> </span>
|
|
312
|
-
<span class="cline-any cline-
|
|
312
|
+
<span class="cline-any cline-no"> </span>
|
|
313
313
|
<span class="cline-any cline-neutral"> </span>
|
|
314
|
-
<span class="cline-any cline-
|
|
314
|
+
<span class="cline-any cline-no"> </span>
|
|
315
315
|
<span class="cline-any cline-neutral"> </span>
|
|
316
316
|
<span class="cline-any cline-neutral"> </span>
|
|
317
317
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
<span class="cline-any cline-no"> </span>
|
|
320
320
|
<span class="cline-any cline-neutral"> </span>
|
|
321
321
|
<span class="cline-any cline-neutral"> </span>
|
|
322
|
-
<span class="cline-any cline-
|
|
322
|
+
<span class="cline-any cline-no"> </span>
|
|
323
323
|
<span class="cline-any cline-neutral"> </span>
|
|
324
324
|
<span class="cline-any cline-neutral"> </span>
|
|
325
325
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -399,15 +399,15 @@
|
|
|
399
399
|
<span class="cline-any cline-neutral"> </span>
|
|
400
400
|
<span class="cline-any cline-neutral"> </span>
|
|
401
401
|
<span class="cline-any cline-neutral"> </span>
|
|
402
|
-
<span class="cline-any cline-
|
|
403
|
-
<span class="cline-any cline-
|
|
402
|
+
<span class="cline-any cline-no"> </span>
|
|
403
|
+
<span class="cline-any cline-no"> </span>
|
|
404
404
|
<span class="cline-any cline-neutral"> </span>
|
|
405
405
|
<span class="cline-any cline-neutral"> </span>
|
|
406
406
|
<span class="cline-any cline-neutral"> </span>
|
|
407
407
|
<span class="cline-any cline-neutral"> </span>
|
|
408
408
|
<span class="cline-any cline-neutral"> </span>
|
|
409
409
|
<span class="cline-any cline-neutral"> </span>
|
|
410
|
-
<span class="cline-any cline-
|
|
410
|
+
<span class="cline-any cline-no"> </span>
|
|
411
411
|
<span class="cline-any cline-neutral"> </span>
|
|
412
412
|
<span class="cline-any cline-neutral"> </span>
|
|
413
413
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -416,12 +416,12 @@
|
|
|
416
416
|
<span class="cline-any cline-neutral"> </span>
|
|
417
417
|
<span class="cline-any cline-neutral"> </span>
|
|
418
418
|
<span class="cline-any cline-neutral"> </span>
|
|
419
|
-
<span class="cline-any cline-
|
|
419
|
+
<span class="cline-any cline-no"> </span>
|
|
420
420
|
<span class="cline-any cline-neutral"> </span>
|
|
421
421
|
<span class="cline-any cline-neutral"> </span>
|
|
422
422
|
<span class="cline-any cline-neutral"> </span>
|
|
423
423
|
<span class="cline-any cline-neutral"> </span>
|
|
424
|
-
<span class="cline-any cline-
|
|
424
|
+
<span class="cline-any cline-no"> </span>
|
|
425
425
|
<span class="cline-any cline-neutral"> </span>
|
|
426
426
|
<span class="cline-any cline-neutral"> </span>
|
|
427
427
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -462,22 +462,22 @@ import { useCustomProperties, useKintIntl } from '../../hooks';
|
|
|
462
462
|
|
|
463
463
|
import css from '../../../../styles/CustomProperties.css';
|
|
464
464
|
|
|
465
|
-
const CustomPropertiesLookup = ({
|
|
465
|
+
const CustomPropertiesLookup = <span class="fstat-no" title="function not covered" >({</span>
|
|
466
466
|
contextFilterOptions, // expects an array of the form [{value: "OpenAccess", label: "Open Access"}, {value: false, label: "None"}]
|
|
467
467
|
customPropertiesEndpoint: endpoint,
|
|
468
468
|
intlKey: passedIntlKey,
|
|
469
469
|
intlNS: passedIntlNS,
|
|
470
|
-
labelOverrides = {}
|
|
470
|
+
labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
471
471
|
mclProps,
|
|
472
472
|
onSelectCustomProperty,
|
|
473
473
|
queryParams
|
|
474
474
|
}) => {
|
|
475
|
-
const [nsValues, setNsValues] = useState({
|
|
475
|
+
const [nsValues, setNsValues] = <span class="cstat-no" title="statement not covered" >useState({</span>
|
|
476
476
|
sort: 'label'
|
|
477
477
|
});
|
|
478
|
-
const [selectedContext, setSelectedContext] = useState()
|
|
478
|
+
const [selectedContext, setSelectedContext] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
479
479
|
|
|
480
|
-
const { data: custprops, isLoading } = useCustomProperties({
|
|
480
|
+
const { data: custprops, isLoading } = <span class="cstat-no" title="statement not covered" >useCustomProperties({</span>
|
|
481
481
|
endpoint,
|
|
482
482
|
nsValues,
|
|
483
483
|
queryParams,
|
|
@@ -495,25 +495,25 @@ const CustomPropertiesLookup = ({
|
|
|
495
495
|
}
|
|
496
496
|
});
|
|
497
497
|
|
|
498
|
-
const handleSearch = <span class="fstat-no" title="function not covered" >(q</span>uery) => {
|
|
498
|
+
const handleSearch = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(q</span>uery) => {</span>
|
|
499
499
|
<span class="cstat-no" title="statement not covered" > setNsValues({</span>
|
|
500
500
|
...nsValues,
|
|
501
501
|
query,
|
|
502
502
|
});
|
|
503
503
|
};
|
|
504
|
-
const [searchTerm, setSearchTerm] = useState('')
|
|
504
|
+
const [searchTerm, setSearchTerm] = <span class="cstat-no" title="statement not covered" >useState('');</span>
|
|
505
505
|
|
|
506
|
-
const kintIntl = useKintIntl(passedIntlKey, passedIntlNS)
|
|
506
|
+
const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
|
|
507
507
|
|
|
508
|
-
return (
|
|
508
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
509
509
|
<>
|
|
510
510
|
<Form
|
|
511
511
|
enableReinitialize
|
|
512
512
|
keepDirtyOnReinitialize
|
|
513
513
|
onSubmit={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >handleSearch(searchTerm)}</span>
|
|
514
514
|
>
|
|
515
|
-
{({ handleSubmit }) => (
|
|
516
|
-
<form
|
|
515
|
+
{<span class="fstat-no" title="function not covered" >({</span> handleSubmit }) => (
|
|
516
|
+
<span class="cstat-no" title="statement not covered" > <form</span>
|
|
517
517
|
className={css.lookupSearchContainer}
|
|
518
518
|
onSubmit={handleSubmit}
|
|
519
519
|
>
|
|
@@ -562,7 +562,7 @@ const CustomPropertiesLookup = ({
|
|
|
562
562
|
</Col>
|
|
563
563
|
</Row>
|
|
564
564
|
{isLoading ?
|
|
565
|
-
|
|
565
|
+
<Spinner /> :
|
|
566
566
|
<MultiColumnList
|
|
567
567
|
columnMapping={{
|
|
568
568
|
'label': kintIntl.formatKintMessage({
|
|
@@ -592,16 +592,16 @@ const CustomPropertiesLookup = ({
|
|
|
592
592
|
}}
|
|
593
593
|
contentData={custprops}
|
|
594
594
|
formatter={{
|
|
595
|
-
primary:
|
|
596
|
-
if (data?.primary) {
|
|
597
|
-
return (
|
|
595
|
+
primary: <span class="fstat-no" title="function not covered" >da</span>ta => {
|
|
596
|
+
<span class="cstat-no" title="statement not covered" > if (data?.primary) {</span>
|
|
597
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
598
598
|
kintIntl.formatKintMessage({
|
|
599
599
|
id: 'yes',
|
|
600
600
|
overrideValue: labelOverrides.yes
|
|
601
601
|
})
|
|
602
602
|
);
|
|
603
603
|
} else {
|
|
604
|
-
return (
|
|
604
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
605
605
|
kintIntl.formatKintMessage({
|
|
606
606
|
id: 'no',
|
|
607
607
|
overrideValue: labelOverrides.no
|
|
@@ -609,13 +609,13 @@ const CustomPropertiesLookup = ({
|
|
|
609
609
|
);
|
|
610
610
|
}
|
|
611
611
|
},
|
|
612
|
-
type:
|
|
613
|
-
kintIntl.formatKintMessage({
|
|
612
|
+
type: <span class="fstat-no" title="function not covered" >da</span>ta => (
|
|
613
|
+
<span class="cstat-no" title="statement not covered" > kintIntl.formatKintMessage({</span>
|
|
614
614
|
id: `customProperties.type.${data?.type}`,
|
|
615
615
|
overrideValue: labelOverrides?.[data?.type]
|
|
616
616
|
})
|
|
617
617
|
),
|
|
618
|
-
category:
|
|
618
|
+
category: <span class="fstat-no" title="function not covered" >da</span>ta => <span class="cstat-no" title="statement not covered" >data?.category?.desc</span>
|
|
619
619
|
}}
|
|
620
620
|
onRowClick={onSelectCustomProperty}
|
|
621
621
|
visibleColumns={['label', 'primary', 'ctx', 'weight', 'type', 'category']}
|
|
@@ -652,7 +652,7 @@ export default CustomPropertiesLookup;
|
|
|
652
652
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
653
653
|
Code coverage generated by
|
|
654
654
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
655
|
-
at 2023-03-
|
|
655
|
+
at 2023-03-21T17:34:57.995Z
|
|
656
656
|
</div>
|
|
657
657
|
<script src="../../prettify.js"></script>
|
|
658
658
|
<script>
|
|
@@ -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">8.47% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>5/59</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/47</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/17</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">8.47% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>5/59</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -490,25 +490,25 @@
|
|
|
490
490
|
<span class="cline-any cline-neutral"> </span>
|
|
491
491
|
<span class="cline-any cline-neutral"> </span>
|
|
492
492
|
<span class="cline-any cline-neutral"> </span>
|
|
493
|
-
<span class="cline-any cline-
|
|
493
|
+
<span class="cline-any cline-no"> </span>
|
|
494
494
|
<span class="cline-any cline-neutral"> </span>
|
|
495
|
-
<span class="cline-any cline-
|
|
496
|
-
<span class="cline-any cline-
|
|
495
|
+
<span class="cline-any cline-no"> </span>
|
|
496
|
+
<span class="cline-any cline-no"> </span>
|
|
497
497
|
<span class="cline-any cline-neutral"> </span>
|
|
498
|
-
<span class="cline-any cline-
|
|
499
|
-
<span class="cline-any cline-
|
|
498
|
+
<span class="cline-any cline-no"> </span>
|
|
499
|
+
<span class="cline-any cline-no"> </span>
|
|
500
500
|
<span class="cline-any cline-neutral"> </span>
|
|
501
|
-
<span class="cline-any cline-
|
|
501
|
+
<span class="cline-any cline-no"> </span>
|
|
502
502
|
<span class="cline-any cline-neutral"> </span>
|
|
503
503
|
<span class="cline-any cline-neutral"> </span>
|
|
504
504
|
<span class="cline-any cline-neutral"> </span>
|
|
505
|
-
<span class="cline-any cline-
|
|
505
|
+
<span class="cline-any cline-no"> </span>
|
|
506
506
|
<span class="cline-any cline-neutral"> </span>
|
|
507
|
-
<span class="cline-any cline-
|
|
507
|
+
<span class="cline-any cline-no"> </span>
|
|
508
508
|
<span class="cline-any cline-neutral"> </span>
|
|
509
509
|
<span class="cline-any cline-neutral"> </span>
|
|
510
|
-
<span class="cline-any cline-
|
|
511
|
-
<span class="cline-any cline-
|
|
510
|
+
<span class="cline-any cline-no"> </span>
|
|
511
|
+
<span class="cline-any cline-no"> </span>
|
|
512
512
|
<span class="cline-any cline-neutral"> </span>
|
|
513
513
|
<span class="cline-any cline-neutral"> </span>
|
|
514
514
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
<span class="cline-any cline-neutral"> </span>
|
|
532
532
|
<span class="cline-any cline-neutral"> </span>
|
|
533
533
|
<span class="cline-any cline-neutral"> </span>
|
|
534
|
-
<span class="cline-any cline-
|
|
534
|
+
<span class="cline-any cline-no"> </span>
|
|
535
535
|
<span class="cline-any cline-neutral"> </span>
|
|
536
536
|
<span class="cline-any cline-neutral"> </span>
|
|
537
537
|
<span class="cline-any cline-no"> </span>
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
<span class="cline-any cline-neutral"> </span>
|
|
585
585
|
<span class="cline-any cline-neutral"> </span>
|
|
586
586
|
<span class="cline-any cline-neutral"> </span>
|
|
587
|
-
<span class="cline-any cline-
|
|
587
|
+
<span class="cline-any cline-no"> </span>
|
|
588
588
|
<span class="cline-any cline-no"> </span>
|
|
589
589
|
<span class="cline-any cline-neutral"> </span>
|
|
590
590
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
<span class="cline-any cline-neutral"> </span>
|
|
594
594
|
<span class="cline-any cline-neutral"> </span>
|
|
595
595
|
<span class="cline-any cline-neutral"> </span>
|
|
596
|
-
<span class="cline-any cline-
|
|
596
|
+
<span class="cline-any cline-no"> </span>
|
|
597
597
|
<span class="cline-any cline-no"> </span>
|
|
598
598
|
<span class="cline-any cline-no"> </span>
|
|
599
599
|
<span class="cline-any cline-no"> </span>
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
<span class="cline-any cline-neutral"> </span>
|
|
603
603
|
<span class="cline-any cline-neutral"> </span>
|
|
604
604
|
<span class="cline-any cline-neutral"> </span>
|
|
605
|
-
<span class="cline-any cline-
|
|
605
|
+
<span class="cline-any cline-no"> </span>
|
|
606
606
|
<span class="cline-any cline-neutral"> </span>
|
|
607
607
|
<span class="cline-any cline-neutral"> </span>
|
|
608
608
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
<span class="cline-any cline-neutral"> </span>
|
|
765
765
|
<span class="cline-any cline-neutral"> </span>
|
|
766
766
|
<span class="cline-any cline-neutral"> </span>
|
|
767
|
-
<span class="cline-any cline-
|
|
767
|
+
<span class="cline-any cline-no"> </span>
|
|
768
768
|
<span class="cline-any cline-neutral"> </span>
|
|
769
769
|
<span class="cline-any cline-neutral"> </span>
|
|
770
770
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -855,12 +855,12 @@ const CREATING = 'create';
|
|
|
855
855
|
const VIEWING = 'view';
|
|
856
856
|
|
|
857
857
|
// A default option for setting up panes manually
|
|
858
|
-
const CustomPropertiesSettings = ({
|
|
858
|
+
const CustomPropertiesSettings = <span class="fstat-no" title="function not covered" >({</span>
|
|
859
859
|
afterQueryCalls,
|
|
860
860
|
catchQueryCalls,
|
|
861
861
|
contextFilterOptions,
|
|
862
862
|
customPropertiesEndpoint,
|
|
863
|
-
displayConditions = {
|
|
863
|
+
displayConditions = <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
|
|
864
864
|
create: true,
|
|
865
865
|
delete: true,
|
|
866
866
|
edit: true
|
|
@@ -868,32 +868,32 @@ const CustomPropertiesSettings = ({
|
|
|
868
868
|
helpPopovers,
|
|
869
869
|
intlKey: passedIntlKey,
|
|
870
870
|
intlNS: passedIntlNS,
|
|
871
|
-
labelOverrides = {}
|
|
871
|
+
labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
872
872
|
refdataEndpoint,
|
|
873
873
|
}) => {
|
|
874
874
|
const {
|
|
875
875
|
create: createCondition = <span class="branch-0 cbranch-no" title="branch not covered" >true,</span>
|
|
876
876
|
delete: deleteCondition = <span class="branch-0 cbranch-no" title="branch not covered" >true,</span>
|
|
877
877
|
edit: editCondition = <span class="branch-0 cbranch-no" title="branch not covered" >true</span>
|
|
878
|
-
} = displayConditions
|
|
878
|
+
} = <span class="cstat-no" title="statement not covered" >displayConditions;</span>
|
|
879
879
|
|
|
880
|
-
const callout = useContext(CalloutContext)
|
|
881
|
-
const queryClient = useQueryClient()
|
|
880
|
+
const callout = <span class="cstat-no" title="statement not covered" >useContext(CalloutContext);</span>
|
|
881
|
+
const queryClient = <span class="cstat-no" title="statement not covered" >useQueryClient();</span>
|
|
882
882
|
|
|
883
|
-
const [customProperty, setCustomProperty] = useState()
|
|
884
|
-
const [deleteModal, setDeleteModal] = useState(false)
|
|
883
|
+
const [customProperty, setCustomProperty] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
884
|
+
const [deleteModal, setDeleteModal] = <span class="cstat-no" title="statement not covered" >useState(false);</span>
|
|
885
885
|
|
|
886
|
-
const refdata = useRefdata({
|
|
886
|
+
const refdata = <span class="cstat-no" title="statement not covered" >useRefdata({</span>
|
|
887
887
|
endpoint: refdataEndpoint,
|
|
888
888
|
});
|
|
889
889
|
|
|
890
|
-
const [mode, setMode] = useState(VIEWING)
|
|
890
|
+
const [mode, setMode] = <span class="cstat-no" title="statement not covered" >useState(VIEWING);</span>
|
|
891
891
|
|
|
892
|
-
const kintIntl = useKintIntl(passedIntlKey, passedIntlNS)
|
|
892
|
+
const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
|
|
893
893
|
|
|
894
894
|
// Default props that need hooks are hard
|
|
895
|
-
let renderContextFilterOptions = contextFilterOptions
|
|
896
|
-
|
|
895
|
+
let renderContextFilterOptions = <span class="cstat-no" title="statement not covered" >contextFilterOptions;</span>
|
|
896
|
+
<span class="cstat-no" title="statement not covered" > if (!contextFilterOptions) {</span>
|
|
897
897
|
/*
|
|
898
898
|
Default is {value: '', label: 'All'}, empty string will map to ALL contexts
|
|
899
899
|
If null context is needed, use
|
|
@@ -916,7 +916,7 @@ const CustomPropertiesSettings = ({
|
|
|
916
916
|
post: createCustprop,
|
|
917
917
|
put: editCustProp,
|
|
918
918
|
delete: deleteCustProp
|
|
919
|
-
} = useMutateCustomProperties({
|
|
919
|
+
} = <span class="cstat-no" title="statement not covered" >useMutateCustomProperties({</span>
|
|
920
920
|
afterQueryCalls: {
|
|
921
921
|
put: <span class="fstat-no" title="function not covered" >re</span>s => {
|
|
922
922
|
<span class="cstat-no" title="statement not covered" > setMode(VIEWING);</span>
|
|
@@ -969,7 +969,7 @@ const CustomPropertiesSettings = ({
|
|
|
969
969
|
id: customProperty?.id
|
|
970
970
|
});
|
|
971
971
|
|
|
972
|
-
const handeContextSubmit = <span class="fstat-no" title="function not covered" >(s</span>ubmitData) => {
|
|
972
|
+
const handeContextSubmit = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(s</span>ubmitData) => {</span>
|
|
973
973
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
974
974
|
...submitData,
|
|
975
975
|
ctx: submitData?.ctx?.[0]?.value ?? ''
|
|
@@ -978,7 +978,7 @@ const CustomPropertiesSettings = ({
|
|
|
978
978
|
|
|
979
979
|
// When POSTing a custom property, the backend expects a shorthand "Integer" or "LocalDate"
|
|
980
980
|
// When PUTing a custom property, the backend needs the full class name
|
|
981
|
-
const handleType = <span class="fstat-no" title="function not covered" >(s</span>ubmitData) => {
|
|
981
|
+
const handleType = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(s</span>ubmitData) => {</span>
|
|
982
982
|
const typeRegex = <span class="cstat-no" title="statement not covered" >/(com\.k_int\.web\.toolkit\.custprops\.types\.CustomProperty)(.*)/g;</span>
|
|
983
983
|
const typeMatch = <span class="cstat-no" title="statement not covered" >typeRegex.exec(submitData?.type) ?? [];</span>
|
|
984
984
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
@@ -987,7 +987,7 @@ const CustomPropertiesSettings = ({
|
|
|
987
987
|
};
|
|
988
988
|
};
|
|
989
989
|
|
|
990
|
-
return (
|
|
990
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
991
991
|
<>
|
|
992
992
|
<Pane
|
|
993
993
|
defaultWidth="fill"
|
|
@@ -1025,7 +1025,7 @@ const CustomPropertiesSettings = ({
|
|
|
1025
1025
|
/>
|
|
1026
1026
|
</Pane>
|
|
1027
1027
|
{customProperty &&
|
|
1028
|
-
|
|
1028
|
+
<Pane
|
|
1029
1029
|
actionMenu={<span class="fstat-no" title="function not covered" >({</span> onToggle }) => {
|
|
1030
1030
|
const actionsArray = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
1031
1031
|
<span class="cstat-no" title="statement not covered" > if (editCondition) {</span>
|
|
@@ -1105,7 +1105,7 @@ const CustomPropertiesSettings = ({
|
|
|
1105
1105
|
}
|
|
1106
1106
|
<FormModal
|
|
1107
1107
|
initialValues={mode === CREATING ?
|
|
1108
|
-
|
|
1108
|
+
{
|
|
1109
1109
|
weight: 0,
|
|
1110
1110
|
primary: true,
|
|
1111
1111
|
retired: false,
|
|
@@ -1113,14 +1113,14 @@ const CustomPropertiesSettings = ({
|
|
|
1113
1113
|
} :
|
|
1114
1114
|
{
|
|
1115
1115
|
...customProperty,
|
|
1116
|
-
ctx: customProperty?.ctx ?
|
|
1117
|
-
category: customProperty?.category ?
|
|
1116
|
+
ctx: customProperty?.ctx ? [{ value: customProperty.ctx, label: customProperty.ctx }] : null,
|
|
1117
|
+
category: customProperty?.category ? customProperty?.category?.id : null
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
modalProps={{
|
|
1121
1121
|
dismissible: true,
|
|
1122
1122
|
label: mode === CREATING ?
|
|
1123
|
-
|
|
1123
|
+
kintIntl.formatKintMessage(
|
|
1124
1124
|
{
|
|
1125
1125
|
id: 'customProperties.config.newModal',
|
|
1126
1126
|
overrideValue: labelOverrides?.newModalTitle
|
|
@@ -1139,7 +1139,7 @@ const CustomPropertiesSettings = ({
|
|
|
1139
1139
|
open: (mode === CREATING || mode === EDITING)
|
|
1140
1140
|
}}
|
|
1141
1141
|
onSubmit={mode === CREATING ?
|
|
1142
|
-
|
|
1142
|
+
compose(createCustprop, handeContextSubmit, handleType) :
|
|
1143
1143
|
compose(editCustProp, handeContextSubmit)
|
|
1144
1144
|
}
|
|
1145
1145
|
>
|
|
@@ -1149,7 +1149,7 @@ const CustomPropertiesSettings = ({
|
|
|
1149
1149
|
intlKey={passedIntlKey}
|
|
1150
1150
|
intlNS={passedIntlNS}
|
|
1151
1151
|
labelOverrides={labelOverrides}
|
|
1152
|
-
refdata={refdata.map(
|
|
1152
|
+
refdata={refdata.map(<span class="fstat-no" title="function not covered" >rd</span>c => (<span class="cstat-no" title="statement not covered" >{ label: rdc.desc, value: rdc.id })</span>)}
|
|
1153
1153
|
/>
|
|
1154
1154
|
</FormModal>
|
|
1155
1155
|
<ConfirmationModal
|
|
@@ -1225,7 +1225,7 @@ export default CustomPropertiesSettings;
|
|
|
1225
1225
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1226
1226
|
Code coverage generated by
|
|
1227
1227
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1228
|
-
at 2023-03-
|
|
1228
|
+
at 2023-03-21T17:34:57.995Z
|
|
1229
1229
|
</div>
|
|
1230
1230
|
<script src="../../prettify.js"></script>
|
|
1231
1231
|
<script>
|