@k-int/stripes-kint-components 3.2.2 → 3.2.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/ActionList/ActionListFieldArray.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +22 -24
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +26 -32
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +39 -47
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +82 -100
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +2 -2
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +22 -28
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +69 -85
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +2 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +26 -32
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +2 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +15 -19
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +17 -21
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +129 -161
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -2
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +2 -2
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
- package/es/lib/CycleButton/CycleButton.js +2 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +22 -24
- package/es/lib/EditableRefdataList/EditableRefdataList.js +25 -27
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +44 -50
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +1 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +139 -163
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +9 -9
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +117 -133
- package/es/lib/IconSelect/IconSelect.js +2 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +2 -2
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +1 -1
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +2 -2
- package/es/lib/RichSelect/RichSelect.js +2 -2
- package/es/lib/RichSelect/useSelectedOption.js +2 -2
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +2 -2
- package/es/lib/Typedown/Typedown.js +2 -2
- package/es/lib/hooks/settingsHooks/useAppSettings.js +1 -1
- package/es/lib/hooks/settingsHooks/useSettings.js +1 -1
- package/es/lib/hooks/typedownHooks/useTypedownData.js +2 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
- package/es/lib/hooks/useActiveElement.js +2 -2
- package/es/lib/hooks/useHelperApp.js +2 -2
- package/es/lib/hooks/useKiwtFieldArray.js +2 -2
- package/es/lib/hooks/useKiwtSASQuery.js +2 -2
- package/es/lib/hooks/useLocalStorageState.js +2 -2
- package/es/lib/hooks/useMutateCustomProperties.js +23 -29
- package/es/lib/hooks/useMutateRefdataCategory.js +21 -25
- package/es/lib/hooks/useMutateRefdataValue.js +30 -34
- package/es/lib/hooks/useQIndex.js +2 -2
- package/es/lib/hooks/useSASQQueryMeta.js +1 -1
- package/es/lib/utils/generateKiwtQueryParams.js +2 -2
- package/es/lib/utils/groupCustomPropertiesByCtx.js +1 -1
- package/es/lib/utils/highlightString.js +2 -2
- package/es/lib/utils/parseErrorResponse.js +42 -44
- package/junit.xml +1492 -222
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +12 -3
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +53 -14
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +8 -8
- 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 +166 -88
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +58 -58
- 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 +48 -48
- 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 +43 -43
- 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 +35 -35
- 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 +5 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +31 -31
- 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 +96 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +152 -29
- 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 +13 -4
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +29 -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 +85 -70
- 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 +21 -21
- 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 +23 -8
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +7 -7
- 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 +11 -2
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +58 -10
- 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 +16 -4
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +20 -8
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +3 -3
- 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 +34 -34
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +2 -5
- 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 +30 -18
- 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 +161 -146
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +292 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +211 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +466 -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 +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 +42 -57
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +2 -35
- 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 +45 -3
- 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 +131 -0
- package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +370 -0
- package/src/artifacts/coverage-jest/lcov.info +1843 -1735
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +3 -3
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/6</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -156,7 +156,10 @@
|
|
|
156
156
|
<a name='L91'></a><a href='#L91'>91</a>
|
|
157
157
|
<a name='L92'></a><a href='#L92'>92</a>
|
|
158
158
|
<a name='L93'></a><a href='#L93'>93</a>
|
|
159
|
-
<a name='L94'></a><a href='#L94'>94</a
|
|
159
|
+
<a name='L94'></a><a href='#L94'>94</a>
|
|
160
|
+
<a name='L95'></a><a href='#L95'>95</a>
|
|
161
|
+
<a name='L96'></a><a href='#L96'>96</a>
|
|
162
|
+
<a name='L97'></a><a href='#L97'>97</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
160
163
|
<span class="cline-any cline-neutral"> </span>
|
|
161
164
|
<span class="cline-any cline-neutral"> </span>
|
|
162
165
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -186,6 +189,7 @@
|
|
|
186
189
|
<span class="cline-any cline-neutral"> </span>
|
|
187
190
|
<span class="cline-any cline-neutral"> </span>
|
|
188
191
|
<span class="cline-any cline-neutral"> </span>
|
|
192
|
+
<span class="cline-any cline-neutral"> </span>
|
|
189
193
|
<span class="cline-any cline-no"> </span>
|
|
190
194
|
<span class="cline-any cline-neutral"> </span>
|
|
191
195
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -204,6 +208,7 @@
|
|
|
204
208
|
<span class="cline-any cline-neutral"> </span>
|
|
205
209
|
<span class="cline-any cline-neutral"> </span>
|
|
206
210
|
<span class="cline-any cline-neutral"> </span>
|
|
211
|
+
<span class="cline-any cline-neutral"> </span>
|
|
207
212
|
<span class="cline-any cline-no"> </span>
|
|
208
213
|
<span class="cline-any cline-no"> </span>
|
|
209
214
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -246,6 +251,7 @@
|
|
|
246
251
|
<span class="cline-any cline-neutral"> </span>
|
|
247
252
|
<span class="cline-any cline-neutral"> </span>
|
|
248
253
|
<span class="cline-any cline-neutral"> </span>
|
|
254
|
+
<span class="cline-any cline-neutral"> </span>
|
|
249
255
|
<span class="cline-any cline-no"> </span>
|
|
250
256
|
<span class="cline-any cline-neutral"> </span>
|
|
251
257
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -267,6 +273,7 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
267
273
|
defaultNewObject: PropTypes.object,
|
|
268
274
|
editableFields: PropTypes.object,
|
|
269
275
|
fieldComponents: PropTypes.object,
|
|
276
|
+
hideActionsColumn: PropTypes.bool,
|
|
270
277
|
hideCreateButton: PropTypes.bool,
|
|
271
278
|
intlKey: PropTypes.string,
|
|
272
279
|
intlNS: PropTypes.string,
|
|
@@ -288,6 +295,7 @@ const ActionList = <span class="cstat-no" title="statement not covered" >forward
|
|
|
288
295
|
defaultNewObject = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
289
296
|
editableFields = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
290
297
|
fieldComponents = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
298
|
+
hideActionsColumn = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span>
|
|
291
299
|
hideCreateButton,
|
|
292
300
|
intlKey: passedIntlKey,
|
|
293
301
|
intlNS: passedIntlNS,
|
|
@@ -321,6 +329,7 @@ const ActionList = <span class="cstat-no" title="statement not covered" >forward
|
|
|
321
329
|
defaultNewObject={defaultNewObject}
|
|
322
330
|
editableFields={editableFields}
|
|
323
331
|
fieldComponents={fieldComponents}
|
|
332
|
+
hideActionsColumn={hideActionsColumn}
|
|
324
333
|
hideCreateButton={hideCreateButton}
|
|
325
334
|
intlKey={passedIntlKey}
|
|
326
335
|
intlNS={passedIntlNS}
|
|
@@ -349,7 +358,7 @@ export default ActionList;
|
|
|
349
358
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
350
359
|
Code coverage generated by
|
|
351
360
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
352
|
-
at 2023-
|
|
361
|
+
at 2023-03-21T17:34:57.995Z
|
|
353
362
|
</div>
|
|
354
363
|
<script src="../prettify.js"></script>
|
|
355
364
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/124</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/93</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/118</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -510,7 +510,20 @@
|
|
|
510
510
|
<a name='L445'></a><a href='#L445'>445</a>
|
|
511
511
|
<a name='L446'></a><a href='#L446'>446</a>
|
|
512
512
|
<a name='L447'></a><a href='#L447'>447</a>
|
|
513
|
-
<a name='L448'></a><a href='#L448'>448</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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
514
527
|
<span class="cline-any cline-neutral"> </span>
|
|
515
528
|
<span class="cline-any cline-neutral"> </span>
|
|
516
529
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -551,6 +564,7 @@
|
|
|
551
564
|
<span class="cline-any cline-neutral"> </span>
|
|
552
565
|
<span class="cline-any cline-neutral"> </span>
|
|
553
566
|
<span class="cline-any cline-neutral"> </span>
|
|
567
|
+
<span class="cline-any cline-neutral"> </span>
|
|
554
568
|
<span class="cline-any cline-no"> </span>
|
|
555
569
|
<span class="cline-any cline-no"> </span>
|
|
556
570
|
<span class="cline-any cline-no"> </span>
|
|
@@ -602,6 +616,7 @@
|
|
|
602
616
|
<span class="cline-any cline-neutral"> </span>
|
|
603
617
|
<span class="cline-any cline-neutral"> </span>
|
|
604
618
|
<span class="cline-any cline-neutral"> </span>
|
|
619
|
+
<span class="cline-any cline-neutral"> </span>
|
|
605
620
|
<span class="cline-any cline-no"> </span>
|
|
606
621
|
<span class="cline-any cline-no"> </span>
|
|
607
622
|
<span class="cline-any cline-no"> </span>
|
|
@@ -878,13 +893,18 @@
|
|
|
878
893
|
<span class="cline-any cline-neutral"> </span>
|
|
879
894
|
<span class="cline-any cline-no"> </span>
|
|
880
895
|
<span class="cline-any cline-neutral"> </span>
|
|
881
|
-
<span class="cline-any cline-no"> </span>
|
|
882
896
|
<span class="cline-any cline-neutral"> </span>
|
|
883
897
|
<span class="cline-any cline-neutral"> </span>
|
|
884
898
|
<span class="cline-any cline-neutral"> </span>
|
|
885
899
|
<span class="cline-any cline-neutral"> </span>
|
|
886
900
|
<span class="cline-any cline-neutral"> </span>
|
|
887
901
|
<span class="cline-any cline-neutral"> </span>
|
|
902
|
+
<span class="cline-any cline-no"> </span>
|
|
903
|
+
<span class="cline-any cline-no"> </span>
|
|
904
|
+
<span class="cline-any cline-neutral"> </span>
|
|
905
|
+
<span class="cline-any cline-neutral"> </span>
|
|
906
|
+
<span class="cline-any cline-neutral"> </span>
|
|
907
|
+
<span class="cline-any cline-neutral"> </span>
|
|
888
908
|
<span class="cline-any cline-neutral"> </span>
|
|
889
909
|
<span class="cline-any cline-neutral"> </span>
|
|
890
910
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -954,6 +974,12 @@
|
|
|
954
974
|
<span class="cline-any cline-neutral"> </span>
|
|
955
975
|
<span class="cline-any cline-neutral"> </span>
|
|
956
976
|
<span class="cline-any cline-neutral"> </span>
|
|
977
|
+
<span class="cline-any cline-neutral"> </span>
|
|
978
|
+
<span class="cline-any cline-neutral"> </span>
|
|
979
|
+
<span class="cline-any cline-neutral"> </span>
|
|
980
|
+
<span class="cline-any cline-neutral"> </span>
|
|
981
|
+
<span class="cline-any cline-neutral"> </span>
|
|
982
|
+
<span class="cline-any cline-neutral"> </span>
|
|
957
983
|
<span class="cline-any cline-no"> </span>
|
|
958
984
|
<span class="cline-any cline-neutral"> </span>
|
|
959
985
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -983,6 +1009,7 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
983
1009
|
fields: PropTypes.object,
|
|
984
1010
|
fieldComponents: PropTypes.object,
|
|
985
1011
|
formatter: PropTypes.object,
|
|
1012
|
+
hideActionsColumn: PropTypes.bool,
|
|
986
1013
|
hideCreateButton: PropTypes.bool,
|
|
987
1014
|
intlKey: PropTypes.string,
|
|
988
1015
|
intlNS: PropTypes.string,
|
|
@@ -1037,6 +1064,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1037
1064
|
editableFields,
|
|
1038
1065
|
fields,
|
|
1039
1066
|
fieldComponents,
|
|
1067
|
+
hideActionsColumn = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span>
|
|
1040
1068
|
hideCreateButton = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span>
|
|
1041
1069
|
intlKey: passedIntlKey,
|
|
1042
1070
|
intlNS: passedIntlNS,
|
|
@@ -1238,7 +1266,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1238
1266
|
action={action}
|
|
1239
1267
|
aria-describedby={ariaIds.sub}
|
|
1240
1268
|
aria-labelledby={ariaIds.text}
|
|
1241
|
-
disabled={editing}
|
|
1269
|
+
disabled={!!editing}
|
|
1242
1270
|
onClick={<span class="fstat-no" title="function not covered" >e </span>=> {
|
|
1243
1271
|
<span class="cstat-no" title="statement not covered" > e.stopPropagation();</span>
|
|
1244
1272
|
<span class="cstat-no" title="statement not covered" > if (actionFunction) {</span>
|
|
@@ -1260,7 +1288,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1260
1288
|
key={`action-${action.name}[${data.rowIndex}]`}
|
|
1261
1289
|
action={action}
|
|
1262
1290
|
ariaLabel={ariaLabel}
|
|
1263
|
-
disabled={editing}
|
|
1291
|
+
disabled={!!editing}
|
|
1264
1292
|
onClick={<span class="fstat-no" title="function not covered" >e </span>=> {
|
|
1265
1293
|
<span class="cstat-no" title="statement not covered" > e.stopPropagation();</span>
|
|
1266
1294
|
<span class="cstat-no" title="statement not covered" > if (actionFunction) {</span>
|
|
@@ -1323,13 +1351,18 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1323
1351
|
(!cd.id && createFunction(cd)) ||
|
|
1324
1352
|
(!!cd.id && editFunction(cd))
|
|
1325
1353
|
) {
|
|
1326
|
-
const
|
|
1354
|
+
const passedObject = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1355
|
+
allValues: values,
|
|
1356
|
+
index: cd?.fieldIndex,
|
|
1357
|
+
key,
|
|
1358
|
+
name: `${cd.fieldName}.${key}`,
|
|
1359
|
+
rowFieldName: cd.fieldName
|
|
1360
|
+
};
|
|
1327
1361
|
|
|
1362
|
+
const validateFunction = <span class="cstat-no" title="statement not covered" >validateFields?.[key] ? validateFields?.[key](passedObject) : null;</span>
|
|
1328
1363
|
<span class="cstat-no" title="statement not covered" > returnValue =</span>
|
|
1329
1364
|
fieldComponents[key] ?
|
|
1330
|
-
fieldComponents[key](
|
|
1331
|
-
name: `${cd.fieldName}.${key}`
|
|
1332
|
-
}) :
|
|
1365
|
+
fieldComponents[key](passedObject) :
|
|
1333
1366
|
<Field
|
|
1334
1367
|
autoFocus={autoFocus}
|
|
1335
1368
|
component={TextField}
|
|
@@ -1359,7 +1392,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1359
1392
|
</Headline>
|
|
1360
1393
|
{!hideCreateButton &&
|
|
1361
1394
|
<Button
|
|
1362
|
-
disabled={editing || !createCallback}
|
|
1395
|
+
disabled={!!editing || !createCallback}
|
|
1363
1396
|
marginBottom0
|
|
1364
1397
|
onClick={handleClickCreate}
|
|
1365
1398
|
>
|
|
@@ -1394,7 +1427,13 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1394
1427
|
<span class="cstat-no" title="statement not covered" > onRowClick(e, rowWithoutActions);</span>
|
|
1395
1428
|
}
|
|
1396
1429
|
} : null}
|
|
1397
|
-
visibleColumns={
|
|
1430
|
+
visibleColumns={(
|
|
1431
|
+
!hideActionsColumn ||
|
|
1432
|
+
!!editing
|
|
1433
|
+
) ?
|
|
1434
|
+
[...visibleFields, 'actionListActions'] :
|
|
1435
|
+
visibleFields
|
|
1436
|
+
}
|
|
1398
1437
|
{...restOfMclProps}
|
|
1399
1438
|
/>
|
|
1400
1439
|
</>
|
|
@@ -1411,7 +1450,7 @@ export default ActionListFieldArray;
|
|
|
1411
1450
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1412
1451
|
Code coverage generated by
|
|
1413
1452
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1414
|
-
at 2023-
|
|
1453
|
+
at 2023-03-21T17:34:57.995Z
|
|
1415
1454
|
</div>
|
|
1416
1455
|
<script src="../prettify.js"></script>
|
|
1417
1456
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/133</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/99</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/126</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
87
|
<td data-value="9" class="abs low">0/9</td>
|
|
88
88
|
<td data-value="0" class="pct low">0%</td>
|
|
89
|
-
<td data-value="
|
|
89
|
+
<td data-value="6" class="abs low">0/6</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="5" class="abs low">0/5</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="0" class="pct low">0%</td>
|
|
102
|
-
<td data-value="
|
|
102
|
+
<td data-value="124" class="abs low">0/124</td>
|
|
103
103
|
<td data-value="0" class="pct low">0%</td>
|
|
104
|
-
<td data-value="
|
|
104
|
+
<td data-value="93" class="abs low">0/93</td>
|
|
105
105
|
<td data-value="0" class="pct low">0%</td>
|
|
106
106
|
<td data-value="28" class="abs low">0/28</td>
|
|
107
107
|
<td data-value="0" class="pct low">0%</td>
|
|
108
|
-
<td data-value="
|
|
108
|
+
<td data-value="118" class="abs low">0/118</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
655
|
+
at 2023-03-21T17:34:57.995Z
|
|
656
656
|
</div>
|
|
657
657
|
<script src="../../prettify.js"></script>
|
|
658
658
|
<script>
|