@k-int/stripes-kint-components 2.8.4 → 2.8.6
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 +7 -0
- package/es/lib/ActionList/ActionList.js +3 -1
- package/es/lib/ActionList/ActionListFieldArray.js +4 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +4 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +6 -4
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +5 -3
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +5 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +4 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +4 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +5 -2
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +5 -3
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +3 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +4 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +5 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +5 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +4 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +5 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +4 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -1
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -1
- package/es/lib/CycleButton/CycleButton.js +5 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +6 -4
- package/es/lib/EditableRefdataList/EditableRefdataList.js +6 -4
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +4 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +1 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -1
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +4 -2
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +1 -1
- package/es/lib/FormModal/FormModal.js +4 -1
- package/es/lib/IconSelect/IconSelect.js +4 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +4 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +4 -1
- package/es/lib/RichSelect/RichSelect.js +5 -2
- package/es/lib/RichSelect/useSelectedOption.js +1 -1
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +5 -2
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +4 -1
- package/es/lib/SASQRoute/SASQRoute.js +4 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +4 -1
- package/es/lib/SearchField/SearchField.js +4 -1
- package/es/lib/Typedown/Typedown.js +1 -1
- package/es/lib/hooks/settingsHooks/useSettings.js +3 -1
- package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -1
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -1
- package/es/lib/hooks/useActiveElement.js +1 -1
- package/es/lib/hooks/useAvailableCustomProperties.js +1 -1
- package/es/lib/hooks/useCustomProperties.js +4 -1
- package/es/lib/hooks/useHelperApp.js +4 -2
- package/es/lib/hooks/useKiwtFieldArray.js +5 -2
- package/es/lib/hooks/useKiwtSASQuery.js +4 -2
- package/es/lib/hooks/useLocalStorageState.js +1 -1
- package/es/lib/hooks/useMutateCustomProperties.js +1 -1
- package/es/lib/hooks/useMutateRefdataCategory.js +4 -2
- package/es/lib/hooks/useMutateRefdataValue.js +1 -1
- package/es/lib/hooks/useQIndex.js +4 -2
- package/es/lib/utils/generateKiwtQueryParams.js +1 -1
- package/es/lib/utils/groupCustomPropertiesByCtx.js +4 -1
- package/es/lib/utils/highlightString.js +1 -1
- package/es/lib/utils/parseErrorResponse.js +23 -19
- package/junit.xml +150 -150
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +23 -5
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +324 -48
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +7 -7
- 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 +171 -39
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +271 -52
- 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 +41 -56
- 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 +54 -42
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +213 -54
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +260 -41
- 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 +53 -53
- 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 +62 -3065
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +45 -45
- 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 +81 -81
- 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 +45 -45
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +6 -6
- 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 +52 -46
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +53 -74
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +25 -25
- 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 +86 -32
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +109 -37
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +3 -3
- 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 +1 -1
- 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 +67 -34
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +49 -7
- 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/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +36 -12
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +24 -81
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +3 -3
- 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 +146 -14
- 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 +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +53 -8
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +65 -11
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +9 -9
- 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 +1 -1
- 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 +151 -106
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +12 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +25 -25
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- 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 +37 -37
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
- 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 +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +7 -7
- 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/useSASQQueryMeta.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/index.html +166 -136
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +16 -16
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +240 -90
- 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 +62 -62
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +39 -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 +11 -8
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +280 -0
- 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 +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 +124 -76
- package/src/artifacts/coverage-jest/lcov.info +2706 -2419
- package/src/lib/utils/parseErrorResponse.js +3 -2
- package/translations/stripes-kint-components/de.json +41 -41
- package/translations/stripes-kint-components/ja.json +45 -45
- package/translations/stripes-kint-components/ko.json +49 -49
- package/yarn-error.log +0 -147
package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html
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/20</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -254,8 +254,31 @@
|
|
|
254
254
|
<a name='L189'></a><a href='#L189'>189</a>
|
|
255
255
|
<a name='L190'></a><a href='#L190'>190</a>
|
|
256
256
|
<a name='L191'></a><a href='#L191'>191</a>
|
|
257
|
-
<a name='L192'></a><a href='#L192'>192</a
|
|
258
|
-
<
|
|
257
|
+
<a name='L192'></a><a href='#L192'>192</a>
|
|
258
|
+
<a name='L193'></a><a href='#L193'>193</a>
|
|
259
|
+
<a name='L194'></a><a href='#L194'>194</a>
|
|
260
|
+
<a name='L195'></a><a href='#L195'>195</a>
|
|
261
|
+
<a name='L196'></a><a href='#L196'>196</a>
|
|
262
|
+
<a name='L197'></a><a href='#L197'>197</a>
|
|
263
|
+
<a name='L198'></a><a href='#L198'>198</a>
|
|
264
|
+
<a name='L199'></a><a href='#L199'>199</a>
|
|
265
|
+
<a name='L200'></a><a href='#L200'>200</a>
|
|
266
|
+
<a name='L201'></a><a href='#L201'>201</a>
|
|
267
|
+
<a name='L202'></a><a href='#L202'>202</a>
|
|
268
|
+
<a name='L203'></a><a href='#L203'>203</a>
|
|
269
|
+
<a name='L204'></a><a href='#L204'>204</a>
|
|
270
|
+
<a name='L205'></a><a href='#L205'>205</a>
|
|
271
|
+
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
|
+
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
|
+
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
+
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
+
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
|
+
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
+
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
+
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
|
+
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
|
+
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
+
<a name='L216'></a><a href='#L216'>216</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
259
282
|
<span class="cline-any cline-neutral"> </span>
|
|
260
283
|
<span class="cline-any cline-neutral"> </span>
|
|
261
284
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -279,6 +302,8 @@
|
|
|
279
302
|
<span class="cline-any cline-neutral"> </span>
|
|
280
303
|
<span class="cline-any cline-neutral"> </span>
|
|
281
304
|
<span class="cline-any cline-neutral"> </span>
|
|
305
|
+
<span class="cline-any cline-neutral"> </span>
|
|
306
|
+
<span class="cline-any cline-neutral"> </span>
|
|
282
307
|
<span class="cline-any cline-no"> </span>
|
|
283
308
|
<span class="cline-any cline-neutral"> </span>
|
|
284
309
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -288,6 +313,8 @@
|
|
|
288
313
|
<span class="cline-any cline-neutral"> </span>
|
|
289
314
|
<span class="cline-any cline-neutral"> </span>
|
|
290
315
|
<span class="cline-any cline-neutral"> </span>
|
|
316
|
+
<span class="cline-any cline-neutral"> </span>
|
|
317
|
+
<span class="cline-any cline-neutral"> </span>
|
|
291
318
|
<span class="cline-any cline-no"> </span>
|
|
292
319
|
<span class="cline-any cline-no"> </span>
|
|
293
320
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -359,7 +386,6 @@
|
|
|
359
386
|
<span class="cline-any cline-neutral"> </span>
|
|
360
387
|
<span class="cline-any cline-neutral"> </span>
|
|
361
388
|
<span class="cline-any cline-neutral"> </span>
|
|
362
|
-
<span class="cline-any cline-neutral"> </span>
|
|
363
389
|
<span class="cline-any cline-no"> </span>
|
|
364
390
|
<span class="cline-any cline-no"> </span>
|
|
365
391
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -371,6 +397,9 @@
|
|
|
371
397
|
<span class="cline-any cline-neutral"> </span>
|
|
372
398
|
<span class="cline-any cline-neutral"> </span>
|
|
373
399
|
<span class="cline-any cline-neutral"> </span>
|
|
400
|
+
<span class="cline-any cline-neutral"> </span>
|
|
401
|
+
<span class="cline-any cline-neutral"> </span>
|
|
402
|
+
<span class="cline-any cline-neutral"> </span>
|
|
374
403
|
<span class="cline-any cline-no"> </span>
|
|
375
404
|
<span class="cline-any cline-no"> </span>
|
|
376
405
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -379,11 +408,17 @@
|
|
|
379
408
|
<span class="cline-any cline-neutral"> </span>
|
|
380
409
|
<span class="cline-any cline-neutral"> </span>
|
|
381
410
|
<span class="cline-any cline-neutral"> </span>
|
|
411
|
+
<span class="cline-any cline-neutral"> </span>
|
|
412
|
+
<span class="cline-any cline-neutral"> </span>
|
|
413
|
+
<span class="cline-any cline-neutral"> </span>
|
|
382
414
|
<span class="cline-any cline-no"> </span>
|
|
383
415
|
<span class="cline-any cline-no"> </span>
|
|
384
416
|
<span class="cline-any cline-neutral"> </span>
|
|
385
417
|
<span class="cline-any cline-neutral"> </span>
|
|
386
418
|
<span class="cline-any cline-neutral"> </span>
|
|
419
|
+
<span class="cline-any cline-neutral"> </span>
|
|
420
|
+
<span class="cline-any cline-neutral"> </span>
|
|
421
|
+
<span class="cline-any cline-neutral"> </span>
|
|
387
422
|
<span class="cline-any cline-no"> </span>
|
|
388
423
|
<span class="cline-any cline-no"> </span>
|
|
389
424
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -391,6 +426,9 @@
|
|
|
391
426
|
<span class="cline-any cline-neutral"> </span>
|
|
392
427
|
<span class="cline-any cline-neutral"> </span>
|
|
393
428
|
<span class="cline-any cline-neutral"> </span>
|
|
429
|
+
<span class="cline-any cline-neutral"> </span>
|
|
430
|
+
<span class="cline-any cline-neutral"> </span>
|
|
431
|
+
<span class="cline-any cline-neutral"> </span>
|
|
394
432
|
<span class="cline-any cline-no"> </span>
|
|
395
433
|
<span class="cline-any cline-neutral"> </span>
|
|
396
434
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -404,6 +442,12 @@
|
|
|
404
442
|
<span class="cline-any cline-neutral"> </span>
|
|
405
443
|
<span class="cline-any cline-neutral"> </span>
|
|
406
444
|
<span class="cline-any cline-neutral"> </span>
|
|
445
|
+
<span class="cline-any cline-neutral"> </span>
|
|
446
|
+
<span class="cline-any cline-neutral"> </span>
|
|
447
|
+
<span class="cline-any cline-neutral"> </span>
|
|
448
|
+
<span class="cline-any cline-neutral"> </span>
|
|
449
|
+
<span class="cline-any cline-neutral"> </span>
|
|
450
|
+
<span class="cline-any cline-neutral"> </span>
|
|
407
451
|
<span class="cline-any cline-no"> </span>
|
|
408
452
|
<span class="cline-any cline-neutral"> </span>
|
|
409
453
|
<span class="cline-any cline-no"> </span>
|
|
@@ -431,6 +475,10 @@
|
|
|
431
475
|
<span class="cline-any cline-neutral"> </span>
|
|
432
476
|
<span class="cline-any cline-neutral"> </span>
|
|
433
477
|
<span class="cline-any cline-neutral"> </span>
|
|
478
|
+
<span class="cline-any cline-neutral"> </span>
|
|
479
|
+
<span class="cline-any cline-neutral"> </span>
|
|
480
|
+
<span class="cline-any cline-neutral"> </span>
|
|
481
|
+
<span class="cline-any cline-neutral"> </span>
|
|
434
482
|
<span class="cline-any cline-no"> </span>
|
|
435
483
|
<span class="cline-any cline-neutral"> </span>
|
|
436
484
|
<span class="cline-any cline-no"> </span>
|
|
@@ -447,12 +495,11 @@
|
|
|
447
495
|
<span class="cline-any cline-neutral"> </span>
|
|
448
496
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useEffect, useState, useContext } from 'react';
|
|
449
497
|
import PropTypes from 'prop-types';
|
|
450
|
-
import { FormattedMessage, useIntl } from 'react-intl';
|
|
451
498
|
|
|
452
499
|
import { ConfirmationModal } from '@folio/stripes/components';
|
|
453
500
|
import { CalloutContext } from '@folio/stripes/core';
|
|
454
501
|
|
|
455
|
-
import { useMutateRefdataValue, useRefdata } from '../hooks';
|
|
502
|
+
import { useKintIntl, useMutateRefdataValue, useRefdata } from '../hooks';
|
|
456
503
|
|
|
457
504
|
import ActionList from '../ActionList';
|
|
458
505
|
import { required } from '../utils/validators';
|
|
@@ -462,6 +509,8 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
462
509
|
afterQueryCalls: PropTypes.object,
|
|
463
510
|
catchQueryCalls: PropTypes.object,
|
|
464
511
|
desc: PropTypes.string,
|
|
512
|
+
intlKey: PropTypes.string,
|
|
513
|
+
intlNS: PropTypes.string,
|
|
465
514
|
label: PropTypes.oneOfType([
|
|
466
515
|
PropTypes.string,
|
|
467
516
|
PropTypes.node
|
|
@@ -474,13 +523,15 @@ const EditableRefdataList = <span class="cstat-no" title="statement not covered"
|
|
|
474
523
|
afterQueryCalls,
|
|
475
524
|
catchQueryCalls,
|
|
476
525
|
desc,
|
|
526
|
+
intlKey: passedIntlKey,
|
|
527
|
+
intlNS: passedIntlNS,
|
|
477
528
|
label,
|
|
478
529
|
labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span> // An object containing translation alternatives
|
|
479
530
|
refdataEndpoint
|
|
480
531
|
}) => {
|
|
481
532
|
/* A component that allows for editing of refdata values */
|
|
482
533
|
const callout = <span class="cstat-no" title="statement not covered" >useContext(CalloutContext);</span>
|
|
483
|
-
const
|
|
534
|
+
const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
|
|
484
535
|
|
|
485
536
|
// fetch refdata values
|
|
486
537
|
const { data: { 0: refdata } = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span> isLoading: isRefdataLoading } = <span class="cstat-no" title="statement not covered" >useRefdata({</span>
|
|
@@ -525,15 +576,14 @@ const EditableRefdataList = <span class="cstat-no" title="statement not covered"
|
|
|
525
576
|
delete: <span class="fstat-no" title="function not covered" >as</span>ync (err) => {
|
|
526
577
|
const errorResp = <span class="cstat-no" title="statement not covered" >await parseErrorResponse(err.response);</span>
|
|
527
578
|
<span class="cstat-no" title="statement not covered" > callout.sendCallout({</span>
|
|
528
|
-
message:
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
),
|
|
579
|
+
message: kintIntl.formatKintMessage({
|
|
580
|
+
id: 'refdata.deleteRefdataValue.errorMessage',
|
|
581
|
+
overrideValue: labelOverrides?.deleteError
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
label: deleteModal?.refdata?.label,
|
|
585
|
+
error: errorResp?.message
|
|
586
|
+
}),
|
|
537
587
|
type: 'error',
|
|
538
588
|
});
|
|
539
589
|
},
|
|
@@ -560,26 +610,38 @@ const EditableRefdataList = <span class="cstat-no" title="statement not covered"
|
|
|
560
610
|
const actionArray = <span class="cstat-no" title="statement not covered" >[</span>
|
|
561
611
|
{
|
|
562
612
|
name: 'edit',
|
|
563
|
-
label:
|
|
613
|
+
label: kintIntl.formatKintMessage({
|
|
614
|
+
id: 'edit',
|
|
615
|
+
overrideValue: labelOverrides?.edit
|
|
616
|
+
}),
|
|
564
617
|
icon: 'edit',
|
|
565
618
|
callback: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >editRefdataValue(data),</span>
|
|
566
|
-
ariaLabel: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
619
|
+
ariaLabel: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >kintIntl.formatKintMessage(</span>
|
|
620
|
+
{
|
|
621
|
+
id: 'refdata.editAriaLabel',
|
|
622
|
+
overrideValue: labelOverrides?.editAriaLabel
|
|
623
|
+
},
|
|
624
|
+
{ label: data?.label }
|
|
625
|
+
),
|
|
570
626
|
}
|
|
571
627
|
];
|
|
572
628
|
|
|
573
629
|
<span class="cstat-no" title="statement not covered" > if (!refdata?.internal) {</span>
|
|
574
630
|
<span class="cstat-no" title="statement not covered" > actionArray.push({</span>
|
|
575
631
|
name: 'delete',
|
|
576
|
-
label:
|
|
632
|
+
label: kintIntl.formatKintMessage({
|
|
633
|
+
id: 'delete',
|
|
634
|
+
overrideValue: labelOverrides?.delete
|
|
635
|
+
}),
|
|
577
636
|
icon: 'trash',
|
|
578
637
|
callback: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >setDeleteModal({ visible: true, refdata: data }),</span>
|
|
579
|
-
ariaLabel: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
638
|
+
ariaLabel: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >kintIntl.formatKintMessage(</span>
|
|
639
|
+
{
|
|
640
|
+
id: 'refdata.deleteAriaLabel',
|
|
641
|
+
overrideValue: labelOverrides?.deleteAriaLabel
|
|
642
|
+
},
|
|
643
|
+
{ label: data?.label }
|
|
644
|
+
),
|
|
583
645
|
});
|
|
584
646
|
}
|
|
585
647
|
<span class="cstat-no" title="statement not covered" > return actionArray;</span>
|
|
@@ -590,8 +652,14 @@ const EditableRefdataList = <span class="cstat-no" title="statement not covered"
|
|
|
590
652
|
<ActionList
|
|
591
653
|
actionAssigner={actionAssigner}
|
|
592
654
|
columnMapping={{
|
|
593
|
-
label:
|
|
594
|
-
|
|
655
|
+
label: kintIntl.formatKintMessage({
|
|
656
|
+
id: 'refdata.label',
|
|
657
|
+
overrideValue: labelOverrides?.label
|
|
658
|
+
}),
|
|
659
|
+
value: kintIntl.formatKintMessage({
|
|
660
|
+
id: 'refdata.value',
|
|
661
|
+
overrideValue: labelOverrides?.value
|
|
662
|
+
}),
|
|
595
663
|
}}
|
|
596
664
|
contentData={contentData}
|
|
597
665
|
creatableFields={{
|
|
@@ -609,18 +677,22 @@ const EditableRefdataList = <span class="cstat-no" title="statement not covered"
|
|
|
609
677
|
/>
|
|
610
678
|
<ConfirmationModal
|
|
611
679
|
confirmLabel={
|
|
612
|
-
|
|
680
|
+
kintIntl.formatKintMessage({
|
|
681
|
+
id: 'delete',
|
|
682
|
+
overrideValue: labelOverrides?.delete
|
|
683
|
+
})
|
|
613
684
|
}
|
|
614
685
|
heading={
|
|
615
|
-
|
|
616
|
-
|
|
686
|
+
kintIntl.formatKintMessage({
|
|
687
|
+
id: 'refdata.deleteRefdataValue',
|
|
688
|
+
overrideValue: labelOverrides?.deleteRefdataValue
|
|
689
|
+
})
|
|
617
690
|
}
|
|
618
691
|
message={
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
/>
|
|
692
|
+
kintIntl.formatKintMessage({
|
|
693
|
+
id: 'refdata.deleteRefdataValue.confirmMessage',
|
|
694
|
+
overrideValue: labelOverrides?.deleteRefdataValueMessage
|
|
695
|
+
}, { name: deleteModal?.refdata?.label })
|
|
624
696
|
}
|
|
625
697
|
onCancel={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >setDeleteModal({ visible: false, refdata: null })}</span>
|
|
626
698
|
onConfirm={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
@@ -643,7 +715,7 @@ export default EditableRefdataList;
|
|
|
643
715
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
644
716
|
Code coverage generated by
|
|
645
717
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
646
|
-
at 2022-
|
|
718
|
+
at 2022-12-09T15:17:50.295Z
|
|
647
719
|
</div>
|
|
648
720
|
<script src="../prettify.js"></script>
|
|
649
721
|
<script>
|
|
@@ -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/20</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
87
|
<td data-value="41" class="abs low">0/41</td>
|
|
88
88
|
<td data-value="0" class="pct low">0%</td>
|
|
89
|
-
<td data-value="
|
|
89
|
+
<td data-value="20" class="abs low">0/20</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="17" class="abs low">0/17</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2022-
|
|
119
|
+
at 2022-12-09T15:17:50.295Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../prettify.js"></script>
|
|
122
122
|
<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 2022-
|
|
76
|
+
at 2022-12-09T15:17:50.295Z
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|
package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html
CHANGED
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>0/4</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'>0/
|
|
35
|
+
<span class='fraction'>0/1</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>0/4</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>
|
|
@@ -116,15 +116,27 @@
|
|
|
116
116
|
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
117
|
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
118
|
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
-
<a name='L54'></a><a href='#L54'>54</a
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
+
<a name='L63'></a><a href='#L63'>63</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
120
130
|
<span class="cline-any cline-neutral"> </span>
|
|
121
131
|
<span class="cline-any cline-neutral"> </span>
|
|
122
132
|
<span class="cline-any cline-neutral"> </span>
|
|
123
133
|
<span class="cline-any cline-neutral"> </span>
|
|
124
134
|
<span class="cline-any cline-neutral"> </span>
|
|
125
135
|
<span class="cline-any cline-neutral"> </span>
|
|
136
|
+
<span class="cline-any cline-no"> </span>
|
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
|
126
139
|
<span class="cline-any cline-neutral"> </span>
|
|
127
|
-
<span class="cline-any cline-yes">4x</span>
|
|
128
140
|
<span class="cline-any cline-neutral"> </span>
|
|
129
141
|
<span class="cline-any cline-neutral"> </span>
|
|
130
142
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -155,7 +167,13 @@
|
|
|
155
167
|
<span class="cline-any cline-neutral"> </span>
|
|
156
168
|
<span class="cline-any cline-neutral"> </span>
|
|
157
169
|
<span class="cline-any cline-neutral"> </span>
|
|
158
|
-
<span class="cline-any cline-
|
|
170
|
+
<span class="cline-any cline-neutral"> </span>
|
|
171
|
+
<span class="cline-any cline-neutral"> </span>
|
|
172
|
+
<span class="cline-any cline-neutral"> </span>
|
|
173
|
+
<span class="cline-any cline-no"> </span>
|
|
174
|
+
<span class="cline-any cline-neutral"> </span>
|
|
175
|
+
<span class="cline-any cline-neutral"> </span>
|
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
177
|
<span class="cline-any cline-neutral"> </span>
|
|
160
178
|
<span class="cline-any cline-neutral"> </span>
|
|
161
179
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -177,10 +195,13 @@ import arrayMutators from 'final-form-arrays';
|
|
|
177
195
|
|
|
178
196
|
import EditableSettingsListFieldArray from './EditableSettingsListFieldArray';
|
|
179
197
|
|
|
180
|
-
const EditableSettingsList = <span class="fstat-no" title="function not covered" >({</span>
|
|
198
|
+
const EditableSettingsList = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
|
|
181
199
|
data,
|
|
182
200
|
initialValues,
|
|
201
|
+
intlKey: passedIntlKey,
|
|
202
|
+
intlNS: passedIntlNS,
|
|
183
203
|
label,
|
|
204
|
+
labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
184
205
|
onSave
|
|
185
206
|
}) => {
|
|
186
207
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
@@ -198,7 +219,10 @@ const EditableSettingsList = <span class="fstat-no" title="function not covered"
|
|
|
198
219
|
<FieldArray
|
|
199
220
|
component={EditableSettingsListFieldArray}
|
|
200
221
|
data={data}
|
|
222
|
+
intlKey={passedIntlKey}
|
|
223
|
+
intlNS={passedIntlNS}
|
|
201
224
|
label={label}
|
|
225
|
+
labelOverrides={labelOverrides}
|
|
202
226
|
name="settings"
|
|
203
227
|
onSave={onSave}
|
|
204
228
|
/>
|
|
@@ -208,17 +232,20 @@ const EditableSettingsList = <span class="fstat-no" title="function not covered"
|
|
|
208
232
|
);
|
|
209
233
|
};
|
|
210
234
|
|
|
211
|
-
EditableSettingsList.propTypes = {
|
|
235
|
+
<span class="cstat-no" title="statement not covered" >EditableSettingsList.propTypes = {</span>
|
|
212
236
|
onSave: PropTypes.func,
|
|
213
237
|
data: PropTypes.shape({
|
|
214
238
|
refdatavalues: PropTypes.arrayOf(PropTypes.object)
|
|
215
239
|
}),
|
|
216
240
|
initialValues: PropTypes.object,
|
|
241
|
+
intlKey: PropTypes.string,
|
|
242
|
+
intlNS: PropTypes.string,
|
|
217
243
|
label: PropTypes.oneOfType([
|
|
218
244
|
PropTypes.string,
|
|
219
245
|
PropTypes.node,
|
|
220
246
|
PropTypes.object
|
|
221
|
-
])
|
|
247
|
+
]),
|
|
248
|
+
labelOverrides: PropTypes.object,
|
|
222
249
|
};
|
|
223
250
|
|
|
224
251
|
export default EditableSettingsList;
|
|
@@ -229,7 +256,7 @@ export default EditableSettingsList;
|
|
|
229
256
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
230
257
|
Code coverage generated by
|
|
231
258
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
232
|
-
at 2022-
|
|
259
|
+
at 2022-12-09T15:17:50.295Z
|
|
233
260
|
</div>
|
|
234
261
|
<script src="../prettify.js"></script>
|
|
235
262
|
<script>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>1/1</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -105,13 +105,33 @@
|
|
|
105
105
|
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
106
|
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
107
|
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
-
<a name='L43'></a><a href='#L43'>43</a
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
122
|
+
<span class="cline-any cline-neutral"> </span>
|
|
123
|
+
<span class="cline-any cline-neutral"> </span>
|
|
124
|
+
<span class="cline-any cline-neutral"> </span>
|
|
125
|
+
<span class="cline-any cline-neutral"> </span>
|
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-yes">1x</span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
109
130
|
<span class="cline-any cline-neutral"> </span>
|
|
110
131
|
<span class="cline-any cline-neutral"> </span>
|
|
111
132
|
<span class="cline-any cline-neutral"> </span>
|
|
112
133
|
<span class="cline-any cline-neutral"> </span>
|
|
113
134
|
<span class="cline-any cline-neutral"> </span>
|
|
114
|
-
<span class="cline-any cline-yes">5x</span>
|
|
115
135
|
<span class="cline-any cline-yes">3x</span>
|
|
116
136
|
<span class="cline-any cline-no"> </span>
|
|
117
137
|
<span class="cline-any cline-no"> </span>
|
|
@@ -125,6 +145,9 @@
|
|
|
125
145
|
<span class="cline-any cline-neutral"> </span>
|
|
126
146
|
<span class="cline-any cline-neutral"> </span>
|
|
127
147
|
<span class="cline-any cline-neutral"> </span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
|
128
151
|
<span class="cline-any cline-no"> </span>
|
|
129
152
|
<span class="cline-any cline-neutral"> </span>
|
|
130
153
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -136,7 +159,10 @@
|
|
|
136
159
|
<span class="cline-any cline-neutral"> </span>
|
|
137
160
|
<span class="cline-any cline-neutral"> </span>
|
|
138
161
|
<span class="cline-any cline-neutral"> </span>
|
|
139
|
-
<span class="cline-any cline-yes">
|
|
162
|
+
<span class="cline-any cline-yes">1x</span>
|
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
|
164
|
+
<span class="cline-any cline-neutral"> </span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
|
140
166
|
<span class="cline-any cline-neutral"> </span>
|
|
141
167
|
<span class="cline-any cline-neutral"> </span>
|
|
142
168
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -153,7 +179,14 @@ import { Field } from 'react-final-form';
|
|
|
153
179
|
|
|
154
180
|
import { SettingField } from './SettingField';
|
|
155
181
|
|
|
156
|
-
const EditableSettingsListFieldArray = ({
|
|
182
|
+
const EditableSettingsListFieldArray = ({
|
|
183
|
+
data,
|
|
184
|
+
fields,
|
|
185
|
+
intlKey: passedIntlKey,
|
|
186
|
+
intlNS: passedIntlNS,
|
|
187
|
+
labelOverrides = {},
|
|
188
|
+
onSave
|
|
189
|
+
}) => {
|
|
157
190
|
const handleSave = <span class="fstat-no" title="function not covered" >(i</span>ndex) => {
|
|
158
191
|
const setting = <span class="cstat-no" title="statement not covered" >fields.value[index];</span>
|
|
159
192
|
<span class="cstat-no" title="statement not covered" > return onSave(setting);</span>
|
|
@@ -166,6 +199,9 @@ const EditableSettingsListFieldArray = ({ data, fields, onSave }) => {
|
|
|
166
199
|
key={setting}
|
|
167
200
|
component={SettingField}
|
|
168
201
|
data-testid={`editableSettingsListFieldArray[${i}]`}
|
|
202
|
+
intlKey={passedIntlKey}
|
|
203
|
+
intlNS={passedIntlNS}
|
|
204
|
+
labelOverrides={labelOverrides}
|
|
169
205
|
name={setting}
|
|
170
206
|
onSave={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >handleSave(i)}</span>
|
|
171
207
|
settingData={{
|
|
@@ -180,6 +216,9 @@ const EditableSettingsListFieldArray = ({ data, fields, onSave }) => {
|
|
|
180
216
|
|
|
181
217
|
EditableSettingsListFieldArray.propTypes = {
|
|
182
218
|
fields: PropTypes.object,
|
|
219
|
+
intlKey: PropTypes.string,
|
|
220
|
+
intlNS: PropTypes.string,
|
|
221
|
+
labelOverrides: PropTypes.object,
|
|
183
222
|
onSave: PropTypes.func,
|
|
184
223
|
data: PropTypes.shape({
|
|
185
224
|
refdatavalues: PropTypes.arrayOf(PropTypes.object)
|
|
@@ -196,7 +235,7 @@ export default EditableSettingsListFieldArray;
|
|
|
196
235
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
197
236
|
Code coverage generated by
|
|
198
237
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
199
|
-
at 2022-
|
|
238
|
+
at 2022-12-09T15:17:50.295Z
|
|
200
239
|
</div>
|
|
201
240
|
<script src="../prettify.js"></script>
|
|
202
241
|
<script>
|