@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
|
@@ -79,7 +79,7 @@ export { default as CustomPropertyCard } from './CustomPropertyCard';
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at 2022-
|
|
82
|
+
at 2022-12-09T15:17:50.295Z
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -556,7 +556,7 @@ export {
|
|
|
556
556
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
557
557
|
Code coverage generated by
|
|
558
558
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
559
|
-
at 2022-
|
|
559
|
+
at 2022-12-09T15:17:50.295Z
|
|
560
560
|
</div>
|
|
561
561
|
<script src="../../prettify.js"></script>
|
|
562
562
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2022-
|
|
104
|
+
at 2022-12-09T15:17:50.295Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -160,7 +160,7 @@ export {
|
|
|
160
160
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
161
161
|
Code coverage generated by
|
|
162
162
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
163
|
-
at 2022-
|
|
163
|
+
at 2022-12-09T15:17:50.295Z
|
|
164
164
|
</div>
|
|
165
165
|
<script src="../prettify.js"></script>
|
|
166
166
|
<script>
|
|
@@ -202,7 +202,7 @@ export default CycleButton;
|
|
|
202
202
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
203
203
|
Code coverage generated by
|
|
204
204
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
205
|
-
at 2022-
|
|
205
|
+
at 2022-12-09T15:17:50.295Z
|
|
206
206
|
</div>
|
|
207
207
|
<script src="../prettify.js"></script>
|
|
208
208
|
<script>
|
|
@@ -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>
|
|
@@ -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/14</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -238,8 +238,25 @@
|
|
|
238
238
|
<a name='L173'></a><a href='#L173'>173</a>
|
|
239
239
|
<a name='L174'></a><a href='#L174'>174</a>
|
|
240
240
|
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
|
-
<a name='L176'></a><a href='#L176'>176</a
|
|
242
|
-
<
|
|
241
|
+
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
|
+
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
+
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
+
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
+
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
+
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
+
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
+
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
+
<a name='L184'></a><a href='#L184'>184</a>
|
|
250
|
+
<a name='L185'></a><a href='#L185'>185</a>
|
|
251
|
+
<a name='L186'></a><a href='#L186'>186</a>
|
|
252
|
+
<a name='L187'></a><a href='#L187'>187</a>
|
|
253
|
+
<a name='L188'></a><a href='#L188'>188</a>
|
|
254
|
+
<a name='L189'></a><a href='#L189'>189</a>
|
|
255
|
+
<a name='L190'></a><a href='#L190'>190</a>
|
|
256
|
+
<a name='L191'></a><a href='#L191'>191</a>
|
|
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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
243
260
|
<span class="cline-any cline-neutral"> </span>
|
|
244
261
|
<span class="cline-any cline-neutral"> </span>
|
|
245
262
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -262,6 +279,8 @@
|
|
|
262
279
|
<span class="cline-any cline-neutral"> </span>
|
|
263
280
|
<span class="cline-any cline-neutral"> </span>
|
|
264
281
|
<span class="cline-any cline-neutral"> </span>
|
|
282
|
+
<span class="cline-any cline-neutral"> </span>
|
|
283
|
+
<span class="cline-any cline-neutral"> </span>
|
|
265
284
|
<span class="cline-any cline-no"> </span>
|
|
266
285
|
<span class="cline-any cline-neutral"> </span>
|
|
267
286
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -270,6 +289,8 @@
|
|
|
270
289
|
<span class="cline-any cline-neutral"> </span>
|
|
271
290
|
<span class="cline-any cline-neutral"> </span>
|
|
272
291
|
<span class="cline-any cline-neutral"> </span>
|
|
292
|
+
<span class="cline-any cline-neutral"> </span>
|
|
293
|
+
<span class="cline-any cline-neutral"> </span>
|
|
273
294
|
<span class="cline-any cline-no"> </span>
|
|
274
295
|
<span class="cline-any cline-no"> </span>
|
|
275
296
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -338,7 +359,6 @@
|
|
|
338
359
|
<span class="cline-any cline-neutral"> </span>
|
|
339
360
|
<span class="cline-any cline-neutral"> </span>
|
|
340
361
|
<span class="cline-any cline-neutral"> </span>
|
|
341
|
-
<span class="cline-any cline-neutral"> </span>
|
|
342
362
|
<span class="cline-any cline-no"> </span>
|
|
343
363
|
<span class="cline-any cline-no"> </span>
|
|
344
364
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -352,6 +372,9 @@
|
|
|
352
372
|
<span class="cline-any cline-neutral"> </span>
|
|
353
373
|
<span class="cline-any cline-neutral"> </span>
|
|
354
374
|
<span class="cline-any cline-neutral"> </span>
|
|
375
|
+
<span class="cline-any cline-neutral"> </span>
|
|
376
|
+
<span class="cline-any cline-neutral"> </span>
|
|
377
|
+
<span class="cline-any cline-neutral"> </span>
|
|
355
378
|
<span class="cline-any cline-no"> </span>
|
|
356
379
|
<span class="cline-any cline-no"> </span>
|
|
357
380
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -359,6 +382,9 @@
|
|
|
359
382
|
<span class="cline-any cline-neutral"> </span>
|
|
360
383
|
<span class="cline-any cline-neutral"> </span>
|
|
361
384
|
<span class="cline-any cline-neutral"> </span>
|
|
385
|
+
<span class="cline-any cline-neutral"> </span>
|
|
386
|
+
<span class="cline-any cline-neutral"> </span>
|
|
387
|
+
<span class="cline-any cline-neutral"> </span>
|
|
362
388
|
<span class="cline-any cline-no"> </span>
|
|
363
389
|
<span class="cline-any cline-neutral"> </span>
|
|
364
390
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -372,6 +398,12 @@
|
|
|
372
398
|
<span class="cline-any cline-neutral"> </span>
|
|
373
399
|
<span class="cline-any cline-neutral"> </span>
|
|
374
400
|
<span class="cline-any cline-neutral"> </span>
|
|
401
|
+
<span class="cline-any cline-neutral"> </span>
|
|
402
|
+
<span class="cline-any cline-neutral"> </span>
|
|
403
|
+
<span class="cline-any cline-neutral"> </span>
|
|
404
|
+
<span class="cline-any cline-neutral"> </span>
|
|
405
|
+
<span class="cline-any cline-neutral"> </span>
|
|
406
|
+
<span class="cline-any cline-neutral"> </span>
|
|
375
407
|
<span class="cline-any cline-no"> </span>
|
|
376
408
|
<span class="cline-any cline-neutral"> </span>
|
|
377
409
|
<span class="cline-any cline-no"> </span>
|
|
@@ -399,6 +431,10 @@
|
|
|
399
431
|
<span class="cline-any cline-neutral"> </span>
|
|
400
432
|
<span class="cline-any cline-neutral"> </span>
|
|
401
433
|
<span class="cline-any cline-neutral"> </span>
|
|
434
|
+
<span class="cline-any cline-neutral"> </span>
|
|
435
|
+
<span class="cline-any cline-neutral"> </span>
|
|
436
|
+
<span class="cline-any cline-neutral"> </span>
|
|
437
|
+
<span class="cline-any cline-neutral"> </span>
|
|
402
438
|
<span class="cline-any cline-no"> </span>
|
|
403
439
|
<span class="cline-any cline-neutral"> </span>
|
|
404
440
|
<span class="cline-any cline-no"> </span>
|
|
@@ -415,12 +451,11 @@
|
|
|
415
451
|
<span class="cline-any cline-neutral"> </span>
|
|
416
452
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useEffect, useState, useContext } from 'react';
|
|
417
453
|
import PropTypes from 'prop-types';
|
|
418
|
-
import { FormattedMessage, useIntl } from 'react-intl';
|
|
419
454
|
|
|
420
455
|
import { ConfirmationModal } from '@folio/stripes/components';
|
|
421
456
|
import { CalloutContext } from '@folio/stripes/core';
|
|
422
457
|
|
|
423
|
-
import { useMutateRefdataCategory, useRefdata } from '../hooks';
|
|
458
|
+
import { useKintIntl, useMutateRefdataCategory, useRefdata } from '../hooks';
|
|
424
459
|
|
|
425
460
|
import ActionList from '../ActionList';
|
|
426
461
|
import { required } from '../utils/validators';
|
|
@@ -429,6 +464,8 @@ import { parseErrorResponse } from '../utils';
|
|
|
429
464
|
const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
430
465
|
afterQueryCalls: PropTypes.object,
|
|
431
466
|
catchQueryCalls: PropTypes.object,
|
|
467
|
+
intlKey: PropTypes.string,
|
|
468
|
+
intlNS: PropTypes.string,
|
|
432
469
|
label: PropTypes.oneOfType([
|
|
433
470
|
PropTypes.string,
|
|
434
471
|
PropTypes.node
|
|
@@ -440,13 +477,15 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
440
477
|
const EditableRefdataCategoryList = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
|
|
441
478
|
afterQueryCalls,
|
|
442
479
|
catchQueryCalls,
|
|
480
|
+
intlKey: passedIntlKey,
|
|
481
|
+
intlNS: passedIntlNS,
|
|
443
482
|
label,
|
|
444
483
|
labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span> // An object containing translation alternatives
|
|
445
484
|
refdataEndpoint
|
|
446
485
|
}) => {
|
|
447
486
|
/* A component that allows for editing of refdata categories */
|
|
448
487
|
const callout = <span class="cstat-no" title="statement not covered" >useContext(CalloutContext);</span>
|
|
449
|
-
const
|
|
488
|
+
const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
|
|
450
489
|
|
|
451
490
|
// fetch refdata values
|
|
452
491
|
const { data: refdata = <span class="branch-0 cbranch-no" title="branch not covered" >[],</span> isLoading: isRefdataLoading } = <span class="cstat-no" title="statement not covered" >useRefdata({</span>
|
|
@@ -488,15 +527,14 @@ const EditableRefdataCategoryList = <span class="cstat-no" title="statement not
|
|
|
488
527
|
delete: <span class="fstat-no" title="function not covered" >as</span>ync (err) => {
|
|
489
528
|
const errorResp = <span class="cstat-no" title="statement not covered" >await parseErrorResponse(err.response);</span>
|
|
490
529
|
<span class="cstat-no" title="statement not covered" > callout.sendCallout({</span>
|
|
491
|
-
message:
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
),
|
|
530
|
+
message: kintIntl.formatKintMessage({
|
|
531
|
+
id: 'refdataCategory.deleteRefdataCategory.errorMessage',
|
|
532
|
+
overrideValue: labelOverrides?.deleteError
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
label: deleteModal?.refdata?.label,
|
|
536
|
+
error: errorResp?.message
|
|
537
|
+
}),
|
|
500
538
|
type: 'error',
|
|
501
539
|
});
|
|
502
540
|
},
|
|
@@ -525,13 +563,19 @@ const EditableRefdataCategoryList = <span class="cstat-no" title="statement not
|
|
|
525
563
|
<span class="cstat-no" title="statement not covered" > if (!rowData?.values?.length) {</span>
|
|
526
564
|
<span class="cstat-no" title="statement not covered" > actionArray.push({</span>
|
|
527
565
|
name: 'delete',
|
|
528
|
-
label:
|
|
566
|
+
label: kintIntl.formatKintMessage({
|
|
567
|
+
id: 'delete',
|
|
568
|
+
overrideValue: labelOverrides?.delete
|
|
569
|
+
}),
|
|
529
570
|
icon: 'trash',
|
|
530
571
|
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>
|
|
531
|
-
ariaLabel: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
572
|
+
ariaLabel: <span class="fstat-no" title="function not covered" >(d</span>ata) => <span class="cstat-no" title="statement not covered" >kintIntl.formatKintMessage(</span>
|
|
573
|
+
{
|
|
574
|
+
id: 'refdataCategory.deleteAriaLabel',
|
|
575
|
+
overrideValue: labelOverrides?.deleteAriaLabel
|
|
576
|
+
},
|
|
577
|
+
{ label: data?.label }
|
|
578
|
+
),
|
|
535
579
|
});
|
|
536
580
|
}
|
|
537
581
|
<span class="cstat-no" title="statement not covered" > return actionArray;</span>
|
|
@@ -542,8 +586,14 @@ const EditableRefdataCategoryList = <span class="cstat-no" title="statement not
|
|
|
542
586
|
<ActionList
|
|
543
587
|
actionAssigner={actionAssigner}
|
|
544
588
|
columnMapping={{
|
|
545
|
-
desc:
|
|
546
|
-
|
|
589
|
+
desc: kintIntl.formatKintMessage({
|
|
590
|
+
id: 'refdataCategory.refdataCategory',
|
|
591
|
+
overrideValue: labelOverrides?.refdataCategory
|
|
592
|
+
}),
|
|
593
|
+
values: kintIntl.formatKintMessage({
|
|
594
|
+
id: 'refdataCategory.noOfValues',
|
|
595
|
+
overrideValue: labelOverrides?.noOfValues
|
|
596
|
+
}),
|
|
547
597
|
}}
|
|
548
598
|
contentData={contentData}
|
|
549
599
|
creatableFields={{
|
|
@@ -561,18 +611,22 @@ const EditableRefdataCategoryList = <span class="cstat-no" title="statement not
|
|
|
561
611
|
/>
|
|
562
612
|
<ConfirmationModal
|
|
563
613
|
confirmLabel={
|
|
564
|
-
|
|
614
|
+
kintIntl.formatKintMessage({
|
|
615
|
+
id: 'delete',
|
|
616
|
+
overrideValue: labelOverrides?.delete
|
|
617
|
+
})
|
|
565
618
|
}
|
|
566
619
|
heading={
|
|
567
|
-
|
|
568
|
-
|
|
620
|
+
kintIntl.formatKintMessage({
|
|
621
|
+
id: 'refdataCategory.deleteRefdataCategory',
|
|
622
|
+
overrideValue: labelOverrides?.deleteRefdataCategory
|
|
623
|
+
})
|
|
569
624
|
}
|
|
570
625
|
message={
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
/>
|
|
626
|
+
kintIntl.formatKintMessage({
|
|
627
|
+
id: 'refdataCategory.deleteRefdataCategory.confirmMessage',
|
|
628
|
+
overrideValue: labelOverrides?.deleteRefdataCategoryMessage
|
|
629
|
+
}, { name: deleteModal?.refdata?.desc })
|
|
576
630
|
}
|
|
577
631
|
onCancel={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >setDeleteModal({ visible: false, refdata: null })}</span>
|
|
578
632
|
onConfirm={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
@@ -595,7 +649,7 @@ export default EditableRefdataCategoryList;
|
|
|
595
649
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
596
650
|
Code coverage generated by
|
|
597
651
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
598
|
-
at 2022-
|
|
652
|
+
at 2022-12-09T15:17:50.295Z
|
|
599
653
|
</div>
|
|
600
654
|
<script src="../prettify.js"></script>
|
|
601
655
|
<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/14</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="37" class="abs low">0/37</td>
|
|
88
88
|
<td data-value="0" class="pct low">0%</td>
|
|
89
|
-
<td data-value="
|
|
89
|
+
<td data-value="14" class="abs low">0/14</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="15" class="abs low">0/15</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>
|