@k-int/stripes-kint-components 2.8.3 → 2.8.4
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/artifacts/coverage-jest/lcov-report/block-navigation.js +6 -19
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +2 -182
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +64 -94
- package/es/index.js +0 -27
- package/es/lib/ActionList/ActionList.js +18 -38
- package/es/lib/ActionList/ActionListFieldArray.js +57 -112
- package/es/lib/ActionList/index.js +0 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +32 -63
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +2 -13
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +89 -138
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +3 -22
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +14 -50
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +17 -34
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +3 -12
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -26
- package/es/lib/CustomProperties/Config/index.js +0 -5
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -12
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +1 -13
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +24 -39
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +1 -13
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +25 -69
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +3 -23
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +26 -77
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +6 -33
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +19 -33
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -14
- package/es/lib/CustomProperties/Edit/index.js +0 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +33 -70
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +2 -18
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +14 -44
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -10
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +4 -23
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +2 -19
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +8 -22
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +2 -20
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -27
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -32
- package/es/lib/CustomProperties/Filter/index.js +0 -7
- package/es/lib/CustomProperties/Filter/useOperators.js +5 -21
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -15
- package/es/lib/CustomProperties/Filter/useValueProps.js +5 -20
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +6 -12
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -10
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +43 -65
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -13
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -38
- package/es/lib/CustomProperties/View/index.js +0 -4
- package/es/lib/CustomProperties/index.js +0 -4
- package/es/lib/CycleButton/CycleButton.js +8 -33
- package/es/lib/CycleButton/index.js +0 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +85 -131
- package/es/lib/EditableRefdataCategoryList/index.js +0 -2
- package/es/lib/EditableRefdataList/EditableRefdataList.js +90 -139
- package/es/lib/EditableRefdataList/index.js +0 -2
- package/es/lib/EditableSettingsList/EditableSettingsList.js +3 -13
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -15
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +4 -19
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +3 -25
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +19 -26
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +2 -20
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +14 -35
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +15 -51
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +6 -31
- package/es/lib/EditableSettingsList/SettingField/index.js +0 -4
- package/es/lib/EditableSettingsList/index.js +0 -4
- package/es/lib/FormModal/FormModal.js +14 -34
- package/es/lib/FormModal/index.js +0 -2
- package/es/lib/IconSelect/IconSelect.js +29 -67
- package/es/lib/IconSelect/index.js +0 -2
- package/es/lib/NoResultsMessage/NoResultsMessage.js +13 -22
- package/es/lib/NoResultsMessage/index.js +0 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +9 -36
- package/es/lib/QueryTypedown/index.js +0 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +5 -24
- package/es/lib/RefdataButtons/index.js +0 -2
- package/es/lib/RichSelect/RichSelect.js +39 -67
- package/es/lib/RichSelect/index.js +0 -3
- package/es/lib/RichSelect/useSelectedOption.js +3 -14
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +36 -80
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +16 -29
- package/es/lib/SASQLookupComponent/TableBody/index.js +0 -2
- package/es/lib/SASQLookupComponent/index.js +0 -3
- package/es/lib/SASQRoute/SASQRoute.js +6 -23
- package/es/lib/SASQRoute/index.js +0 -2
- package/es/lib/SASQViewComponent/SASQViewComponent.js +17 -36
- package/es/lib/SASQViewComponent/index.js +0 -2
- package/es/lib/SearchField/SearchField.js +1 -17
- package/es/lib/SearchField/index.js +0 -2
- package/es/lib/SettingPage/SettingPage.js +6 -21
- package/es/lib/SettingPage/SettingPagePane.js +2 -17
- package/es/lib/SettingPage/index.js +0 -3
- package/es/lib/Typedown/Typedown.js +51 -82
- package/es/lib/Typedown/index.js +0 -2
- package/es/lib/contexts/SettingsContext.js +0 -2
- package/es/lib/contexts/index.js +0 -2
- package/es/lib/hooks/index.js +0 -16
- package/es/lib/hooks/settingsHooks/index.js +0 -4
- package/es/lib/hooks/settingsHooks/useAppSettings.js +6 -27
- package/es/lib/hooks/settingsHooks/useSettingSection.js +10 -20
- package/es/lib/hooks/settingsHooks/useSettings.js +10 -43
- package/es/lib/hooks/typedownHooks/index.js +0 -4
- package/es/lib/hooks/typedownHooks/useTypedown.js +17 -37
- package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -26
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +5 -19
- package/es/lib/hooks/useActiveElement.js +3 -15
- package/es/lib/hooks/useAvailableCustomProperties.js +3 -22
- package/es/lib/hooks/useCustomProperties.js +11 -25
- package/es/lib/hooks/useHelperApp.js +7 -30
- package/es/lib/hooks/useInvalidateRefdata.js +0 -4
- package/es/lib/hooks/useKiwtFieldArray.js +5 -29
- package/es/lib/hooks/useKiwtSASQuery.js +12 -37
- package/es/lib/hooks/useLocalStorageState.js +5 -21
- package/es/lib/hooks/useMutateCustomProperties.js +11 -28
- package/es/lib/hooks/useMutateRefdataCategory.js +9 -29
- package/es/lib/hooks/useMutateRefdataValue.js +10 -27
- package/es/lib/hooks/useQIndex.js +3 -27
- package/es/lib/hooks/useRefdata.js +7 -16
- package/es/lib/hooks/useTemplates.js +6 -17
- package/es/lib/utils/buildUrl.js +1 -10
- package/es/lib/utils/generateKiwtQuery.js +0 -4
- package/es/lib/utils/generateKiwtQueryParams.js +24 -62
- package/es/lib/utils/groupCustomPropertiesByCtx.js +0 -14
- package/es/lib/utils/highlightString.js +6 -23
- package/es/lib/utils/index.js +0 -15
- package/es/lib/utils/matchString.js +0 -6
- package/es/lib/utils/parseErrorResponse.js +2 -24
- package/es/lib/utils/refdataQueryKey.js +0 -4
- package/es/lib/utils/renderHelpText.js +0 -7
- package/es/lib/utils/selectorSafe.js +0 -2
- package/es/lib/utils/sortByLabel.js +0 -6
- package/es/lib/utils/toCamelCase.js +6 -5
- package/es/lib/utils/typedownQueryKey.js +0 -4
- package/es/lib/utils/validators.js +4 -35
- package/junit.xml +151 -151
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +5 -23
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +48 -282
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +9 -9
- 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 +39 -171
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +53 -272
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +74 -293
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +54 -126
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +56 -41
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +793 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +5 -23
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +42 -54
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +54 -216
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +37 -319
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +68 -41
- 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 +3077 -74
- 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 +64 -103
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +63 -54
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +16 -49
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +18 -69
- 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 +786 -33
- 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 +28 -43
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +2 -20
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +39 -45
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +74 -53
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +24 -24
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/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 +32 -86
- 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 +37 -109
- 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 +14 -41
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +6 -45
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +11 -47
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +14 -65
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +31 -154
- 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 +17 -35
- 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 +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 +14 -41
- 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 +6 -48
- 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 +535 -0
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +253 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +82 -22
- 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 +7 -52
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +4 -31
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +27 -24
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +17 -47
- 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 +106 -136
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +3 -9
- 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 +22 -61
- 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/useAvailableCustomProperties.js.html +205 -0
- 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 +3 -3
- 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 +187 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/index.html +129 -144
- 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 +66 -66
- 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 +55 -40
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +3 -33
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +3 -3
- 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/renderHelpText.js.html +166 -0
- 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 +80 -128
- package/src/artifacts/coverage-jest/lcov.info +2284 -2232
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +0 -1
- package/src/lib/utils/parseErrorResponse.js +1 -1
- package/translate.sh +4 -0
- package/translations/stripes-kint-components/ar.json +12 -12
- package/translations/stripes-kint-components/cs_CZ.json +4 -4
- package/translations/stripes-kint-components/en_GB.json +1 -0
- package/translations/stripes-kint-components/en_SE.json +1 -0
- package/translations/stripes-kint-components/es_419.json +122 -0
- package/translations/stripes-kint-components/es_ES.json +122 -0
- package/translations/stripes-kint-components/fr.json +105 -1
- package/translations/stripes-kint-components/fr_FR.json +105 -0
- package/translations/stripes-kint-components/hu.json +12 -12
- package/translations/stripes-kint-components/it_IT.json +6 -6
- package/translations/stripes-kint-components/pt_PT.json +6 -6
- package/translations/stripes-kint-components/ru.json +1 -1
- package/translations/stripes-kint-components/sv.json +7 -7
- package/translations/stripes-kint-components/zh_TW.json +122 -0
- package/yarn-error.log +147 -0
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">87.5% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>8
|
|
35
|
+
<span class='fraction'>7/8</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -160,19 +160,7 @@
|
|
|
160
160
|
<a name='L95'></a><a href='#L95'>95</a>
|
|
161
161
|
<a name='L96'></a><a href='#L96'>96</a>
|
|
162
162
|
<a name='L97'></a><a href='#L97'>97</a>
|
|
163
|
-
<a name='L98'></a><a href='#L98'>98</a>
|
|
164
|
-
<a name='L99'></a><a href='#L99'>99</a>
|
|
165
|
-
<a name='L100'></a><a href='#L100'>100</a>
|
|
166
|
-
<a name='L101'></a><a href='#L101'>101</a>
|
|
167
|
-
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
|
-
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
|
-
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
-
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
-
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
-
<a name='L107'></a><a href='#L107'>107</a>
|
|
173
|
-
<a name='L108'></a><a href='#L108'>108</a>
|
|
174
|
-
<a name='L109'></a><a href='#L109'>109</a>
|
|
175
|
-
<a name='L110'></a><a href='#L110'>110</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<a name='L98'></a><a href='#L98'>98</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
176
164
|
<span class="cline-any cline-neutral"> </span>
|
|
177
165
|
<span class="cline-any cline-neutral"> </span>
|
|
178
166
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -183,24 +171,16 @@
|
|
|
183
171
|
<span class="cline-any cline-neutral"> </span>
|
|
184
172
|
<span class="cline-any cline-neutral"> </span>
|
|
185
173
|
<span class="cline-any cline-neutral"> </span>
|
|
186
|
-
<span class="cline-any cline-yes">
|
|
187
|
-
<span class="cline-any cline-neutral"> </span>
|
|
188
|
-
<span class="cline-any cline-neutral"> </span>
|
|
189
|
-
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-yes">5x</span>
|
|
190
175
|
<span class="cline-any cline-neutral"> </span>
|
|
191
176
|
<span class="cline-any cline-neutral"> </span>
|
|
192
177
|
<span class="cline-any cline-neutral"> </span>
|
|
193
178
|
<span class="cline-any cline-neutral"> </span>
|
|
194
179
|
<span class="cline-any cline-neutral"> </span>
|
|
195
180
|
<span class="cline-any cline-yes">16x</span>
|
|
196
|
-
<span class="cline-any cline-neutral"> </span>
|
|
197
181
|
<span class="cline-any cline-yes">16x</span>
|
|
198
|
-
<span class="cline-any cline-neutral"> </span>
|
|
199
182
|
<span class="cline-any cline-yes">16x</span>
|
|
200
183
|
<span class="cline-any cline-neutral"> </span>
|
|
201
|
-
<span class="cline-any cline-neutral"> </span>
|
|
202
|
-
<span class="cline-any cline-neutral"> </span>
|
|
203
|
-
<span class="cline-any cline-neutral"> </span>
|
|
204
184
|
<span class="cline-any cline-yes">16x</span>
|
|
205
185
|
<span class="cline-any cline-neutral"> </span>
|
|
206
186
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -262,11 +242,7 @@
|
|
|
262
242
|
<span class="cline-any cline-neutral"> </span>
|
|
263
243
|
<span class="cline-any cline-neutral"> </span>
|
|
264
244
|
<span class="cline-any cline-neutral"> </span>
|
|
265
|
-
<span class="cline-any cline-yes">
|
|
266
|
-
<span class="cline-any cline-neutral"> </span>
|
|
267
|
-
<span class="cline-any cline-neutral"> </span>
|
|
268
|
-
<span class="cline-any cline-neutral"> </span>
|
|
269
|
-
<span class="cline-any cline-neutral"> </span>
|
|
245
|
+
<span class="cline-any cline-yes">5x</span>
|
|
270
246
|
<span class="cline-any cline-neutral"> </span>
|
|
271
247
|
<span class="cline-any cline-neutral"> </span>
|
|
272
248
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -283,6 +259,7 @@
|
|
|
283
259
|
<span class="cline-any cline-neutral"> </span>
|
|
284
260
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
285
261
|
import PropTypes from 'prop-types';
|
|
262
|
+
import { useIntl } from 'react-intl';
|
|
286
263
|
|
|
287
264
|
import { Field } from 'react-final-form';
|
|
288
265
|
import {
|
|
@@ -290,25 +267,16 @@ import {
|
|
|
290
267
|
TextField,
|
|
291
268
|
} from '@folio/stripes/components';
|
|
292
269
|
import RefdataButtons from '../../RefdataButtons';
|
|
293
|
-
import { useKintIntl } from '../../hooks';
|
|
294
270
|
|
|
295
271
|
const EditSettingValue = (props) => {
|
|
296
272
|
const {
|
|
297
|
-
currentSetting: setting,
|
|
298
273
|
input,
|
|
299
|
-
|
|
300
|
-
intlNS: passedIntlNS,
|
|
301
|
-
labelOverrides = {},
|
|
274
|
+
currentSetting: setting,
|
|
302
275
|
refdata,
|
|
303
276
|
templates
|
|
304
277
|
} = props;
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
const fieldLabel = kintIntl.formatKintMessage({
|
|
309
|
-
id: 'settings.valueFor',
|
|
310
|
-
overrideValue: labelOverrides?.valueFor
|
|
311
|
-
}, { name: setting.key });
|
|
278
|
+
const intl = useIntl();
|
|
279
|
+
const fieldLabel = intl.formatMessage({ id: 'stripes-kint-components.settings.valueFor', values: { name: setting.key } });
|
|
312
280
|
|
|
313
281
|
switch (setting.settingType) {
|
|
314
282
|
case 'Refdata':
|
|
@@ -373,15 +341,11 @@ const EditSettingValue = (props) => {
|
|
|
373
341
|
|
|
374
342
|
EditSettingValue.propTypes = {
|
|
375
343
|
currentSetting: PropTypes.shape({
|
|
376
|
-
settingType: PropTypes.string
|
|
377
|
-
key: PropTypes.string,
|
|
344
|
+
settingType: PropTypes.string
|
|
378
345
|
}),
|
|
379
346
|
input: PropTypes.shape({
|
|
380
347
|
name: PropTypes.string
|
|
381
348
|
}),
|
|
382
|
-
intlKey: PropTypes.string,
|
|
383
|
-
intlNS: PropTypes.string,
|
|
384
|
-
labelOverrides: PropTypes.object,
|
|
385
349
|
refdata: PropTypes.arrayOf(PropTypes.object),
|
|
386
350
|
templates: PropTypes.arrayOf(PropTypes.shape({
|
|
387
351
|
name: PropTypes.string,
|
|
@@ -397,7 +361,7 @@ export default EditSettingValue;
|
|
|
397
361
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
398
362
|
Code coverage generated by
|
|
399
363
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
400
|
-
at 2022-
|
|
364
|
+
at 2022-11-22T09:57:19.883Z
|
|
401
365
|
</div>
|
|
402
366
|
<script src="../../prettify.js"></script>
|
|
403
367
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>28/28</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">95.
|
|
33
|
+
<span class="strong">95.45% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>22
|
|
35
|
+
<span class='fraction'>21/22</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">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>26/26</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -122,31 +122,10 @@
|
|
|
122
122
|
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
123
|
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
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>
|
|
129
|
-
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
-
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
-
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
-
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
-
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
-
<a name='L69'></a><a href='#L69'>69</a>
|
|
135
|
-
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
|
-
<a name='L71'></a><a href='#L71'>71</a>
|
|
137
|
-
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
|
-
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
|
-
<a name='L74'></a><a href='#L74'>74</a>
|
|
140
|
-
<a name='L75'></a><a href='#L75'>75</a>
|
|
141
|
-
<a name='L76'></a><a href='#L76'>76</a>
|
|
142
|
-
<a name='L77'></a><a href='#L77'>77</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
143
|
-
<span class="cline-any cline-neutral"> </span>
|
|
144
|
-
<span class="cline-any cline-neutral"> </span>
|
|
145
|
-
<span class="cline-any cline-neutral"> </span>
|
|
146
|
-
<span class="cline-any cline-yes">1x</span>
|
|
147
|
-
<span class="cline-any cline-neutral"> </span>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
148
126
|
<span class="cline-any cline-neutral"> </span>
|
|
149
127
|
<span class="cline-any cline-neutral"> </span>
|
|
128
|
+
<span class="cline-any cline-yes">5x</span>
|
|
150
129
|
<span class="cline-any cline-neutral"> </span>
|
|
151
130
|
<span class="cline-any cline-neutral"> </span>
|
|
152
131
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -156,10 +135,6 @@
|
|
|
156
135
|
<span class="cline-any cline-yes">12x</span>
|
|
157
136
|
<span class="cline-any cline-neutral"> </span>
|
|
158
137
|
<span class="cline-any cline-yes">12x</span>
|
|
159
|
-
<span class="cline-any cline-neutral"> </span>
|
|
160
|
-
<span class="cline-any cline-neutral"> </span>
|
|
161
|
-
<span class="cline-any cline-neutral"> </span>
|
|
162
|
-
<span class="cline-any cline-neutral"> </span>
|
|
163
138
|
<span class="cline-any cline-yes">12x</span>
|
|
164
139
|
<span class="cline-any cline-yes">12x</span>
|
|
165
140
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -205,38 +180,21 @@
|
|
|
205
180
|
<span class="cline-any cline-neutral"> </span>
|
|
206
181
|
<span class="cline-any cline-neutral"> </span>
|
|
207
182
|
<span class="cline-any cline-neutral"> </span>
|
|
208
|
-
<span class="cline-any cline-yes">1x</span>
|
|
209
|
-
<span class="cline-any cline-neutral"> </span>
|
|
210
|
-
<span class="cline-any cline-neutral"> </span>
|
|
211
|
-
<span class="cline-any cline-neutral"> </span>
|
|
212
|
-
<span class="cline-any cline-neutral"> </span>
|
|
213
|
-
<span class="cline-any cline-neutral"> </span>
|
|
214
|
-
<span class="cline-any cline-neutral"> </span>
|
|
215
|
-
<span class="cline-any cline-neutral"> </span>
|
|
216
183
|
<span class="cline-any cline-neutral"> </span>
|
|
217
|
-
<span class="cline-any cline-neutral"> </span>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
import { useKintIntl } from '../../hooks';
|
|
184
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
185
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
221
186
|
|
|
222
187
|
const RenderSettingValue = (props) => {
|
|
223
188
|
const {
|
|
224
189
|
currentSetting: setting,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
labelOverrides = {},
|
|
228
|
-
refdata, // TODO ... can we get away without passing these in now, using useRefdata?
|
|
229
|
-
templates // TODO ... can we get away without passing these in now, using useTemplates?
|
|
190
|
+
refdata,
|
|
191
|
+
templates
|
|
230
192
|
} = props;
|
|
231
193
|
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const NoCurrentValue = kintIntl.formatKintMessage({
|
|
235
|
-
id: 'settings.noCurrentValue',
|
|
236
|
-
overrideValue: labelOverrides?.noCurrentValue
|
|
237
|
-
});
|
|
194
|
+
const intl = useIntl();
|
|
238
195
|
|
|
239
|
-
const
|
|
196
|
+
const NoCurrentValue = <FormattedMessage id="stripes-kint-components.settings.noCurrentValue" />;
|
|
197
|
+
const defaultText = `[${intl.formatMessage({ id: 'stripes-kint-components.settings.default' })}]`;
|
|
240
198
|
switch (setting.settingType) {
|
|
241
199
|
case 'Refdata': {
|
|
242
200
|
if (setting.value) {
|
|
@@ -281,15 +239,6 @@ const RenderSettingValue = (props) => {
|
|
|
281
239
|
}
|
|
282
240
|
};
|
|
283
241
|
|
|
284
|
-
RenderSettingValue.propTypes = {
|
|
285
|
-
currentSetting: PropTypes.object,
|
|
286
|
-
intlKey: PropTypes.string,
|
|
287
|
-
intlNS: PropTypes.string,
|
|
288
|
-
labelOverrides: PropTypes.object,
|
|
289
|
-
refdata: PropTypes.arrayOf(PropTypes.object),
|
|
290
|
-
templates: PropTypes.arrayOf(PropTypes.object),
|
|
291
|
-
};
|
|
292
|
-
|
|
293
242
|
export default RenderSettingValue;
|
|
294
243
|
</pre></td></tr></table></pre>
|
|
295
244
|
|
|
@@ -298,7 +247,7 @@ export default RenderSettingValue;
|
|
|
298
247
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
299
248
|
Code coverage generated by
|
|
300
249
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
301
|
-
at 2022-
|
|
250
|
+
at 2022-11-22T09:57:19.883Z
|
|
302
251
|
</div>
|
|
303
252
|
<script src="../../prettify.js"></script>
|
|
304
253
|
<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">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>22/22</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">70.58% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>12/17</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>5/
|
|
42
|
+
<span class='fraction'>5/5</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>22/22</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 high'></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>
|
|
@@ -180,48 +180,7 @@
|
|
|
180
180
|
<a name='L115'></a><a href='#L115'>115</a>
|
|
181
181
|
<a name='L116'></a><a href='#L116'>116</a>
|
|
182
182
|
<a name='L117'></a><a href='#L117'>117</a>
|
|
183
|
-
<a name='L118'></a><a href='#L118'>118</a>
|
|
184
|
-
<a name='L119'></a><a href='#L119'>119</a>
|
|
185
|
-
<a name='L120'></a><a href='#L120'>120</a>
|
|
186
|
-
<a name='L121'></a><a href='#L121'>121</a>
|
|
187
|
-
<a name='L122'></a><a href='#L122'>122</a>
|
|
188
|
-
<a name='L123'></a><a href='#L123'>123</a>
|
|
189
|
-
<a name='L124'></a><a href='#L124'>124</a>
|
|
190
|
-
<a name='L125'></a><a href='#L125'>125</a>
|
|
191
|
-
<a name='L126'></a><a href='#L126'>126</a>
|
|
192
|
-
<a name='L127'></a><a href='#L127'>127</a>
|
|
193
|
-
<a name='L128'></a><a href='#L128'>128</a>
|
|
194
|
-
<a name='L129'></a><a href='#L129'>129</a>
|
|
195
|
-
<a name='L130'></a><a href='#L130'>130</a>
|
|
196
|
-
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
|
-
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
|
-
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
-
<a name='L134'></a><a href='#L134'>134</a>
|
|
200
|
-
<a name='L135'></a><a href='#L135'>135</a>
|
|
201
|
-
<a name='L136'></a><a href='#L136'>136</a>
|
|
202
|
-
<a name='L137'></a><a href='#L137'>137</a>
|
|
203
|
-
<a name='L138'></a><a href='#L138'>138</a>
|
|
204
|
-
<a name='L139'></a><a href='#L139'>139</a>
|
|
205
|
-
<a name='L140'></a><a href='#L140'>140</a>
|
|
206
|
-
<a name='L141'></a><a href='#L141'>141</a>
|
|
207
|
-
<a name='L142'></a><a href='#L142'>142</a>
|
|
208
|
-
<a name='L143'></a><a href='#L143'>143</a>
|
|
209
|
-
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
|
-
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
|
-
<a name='L146'></a><a href='#L146'>146</a>
|
|
212
|
-
<a name='L147'></a><a href='#L147'>147</a>
|
|
213
|
-
<a name='L148'></a><a href='#L148'>148</a>
|
|
214
|
-
<a name='L149'></a><a href='#L149'>149</a>
|
|
215
|
-
<a name='L150'></a><a href='#L150'>150</a>
|
|
216
|
-
<a name='L151'></a><a href='#L151'>151</a>
|
|
217
|
-
<a name='L152'></a><a href='#L152'>152</a>
|
|
218
|
-
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
|
-
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
|
-
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
|
-
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
|
-
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
-
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
-
<a name='L159'></a><a href='#L159'>159</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
183
|
+
<a name='L118'></a><a href='#L118'>118</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
225
184
|
<span class="cline-any cline-neutral"> </span>
|
|
226
185
|
<span class="cline-any cline-neutral"> </span>
|
|
227
186
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -237,11 +196,7 @@
|
|
|
237
196
|
<span class="cline-any cline-neutral"> </span>
|
|
238
197
|
<span class="cline-any cline-neutral"> </span>
|
|
239
198
|
<span class="cline-any cline-neutral"> </span>
|
|
240
|
-
<span class="cline-any cline-
|
|
241
|
-
<span class="cline-any cline-yes">1x</span>
|
|
242
|
-
<span class="cline-any cline-neutral"> </span>
|
|
243
|
-
<span class="cline-any cline-neutral"> </span>
|
|
244
|
-
<span class="cline-any cline-neutral"> </span>
|
|
199
|
+
<span class="cline-any cline-yes">5x</span>
|
|
245
200
|
<span class="cline-any cline-neutral"> </span>
|
|
246
201
|
<span class="cline-any cline-neutral"> </span>
|
|
247
202
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -274,40 +229,12 @@
|
|
|
274
229
|
<span class="cline-any cline-neutral"> </span>
|
|
275
230
|
<span class="cline-any cline-neutral"> </span>
|
|
276
231
|
<span class="cline-any cline-yes">5x</span>
|
|
277
|
-
<span class="cline-any cline-no"> </span>
|
|
278
|
-
<span class="cline-any cline-neutral"> </span>
|
|
279
|
-
<span class="cline-any cline-neutral"> </span>
|
|
280
|
-
<span class="cline-any cline-neutral"> </span>
|
|
281
|
-
<span class="cline-any cline-neutral"> </span>
|
|
282
|
-
<span class="cline-any cline-neutral"> </span>
|
|
283
|
-
<span class="cline-any cline-no"> </span>
|
|
284
|
-
<span class="cline-any cline-no"> </span>
|
|
285
|
-
<span class="cline-any cline-no"> </span>
|
|
286
|
-
<span class="cline-any cline-no"> </span>
|
|
287
|
-
<span class="cline-any cline-no"> </span>
|
|
288
|
-
<span class="cline-any cline-no"> </span>
|
|
289
|
-
<span class="cline-any cline-no"> </span>
|
|
290
|
-
<span class="cline-any cline-no"> </span>
|
|
291
|
-
<span class="cline-any cline-no"> </span>
|
|
292
|
-
<span class="cline-any cline-no"> </span>
|
|
293
|
-
<span class="cline-any cline-neutral"> </span>
|
|
294
|
-
<span class="cline-any cline-neutral"> </span>
|
|
295
|
-
<span class="cline-any cline-neutral"> </span>
|
|
296
|
-
<span class="cline-any cline-neutral"> </span>
|
|
297
|
-
<span class="cline-any cline-neutral"> </span>
|
|
298
|
-
<span class="cline-any cline-neutral"> </span>
|
|
299
|
-
<span class="cline-any cline-yes">5x</span>
|
|
300
232
|
<span class="cline-any cline-yes">5x</span>
|
|
301
233
|
<span class="cline-any cline-neutral"> </span>
|
|
302
234
|
<span class="cline-any cline-neutral"> </span>
|
|
303
|
-
<span class="cline-any cline-neutral"> </span>
|
|
304
|
-
<span class="cline-any cline-neutral"> </span>
|
|
305
|
-
<span class="cline-any cline-neutral"> </span>
|
|
306
|
-
<span class="cline-any cline-neutral"> </span>
|
|
307
235
|
<span class="cline-any cline-yes">5x</span>
|
|
308
236
|
<span class="cline-any cline-neutral"> </span>
|
|
309
237
|
<span class="cline-any cline-neutral"> </span>
|
|
310
|
-
<span class="cline-any cline-neutral"> </span>
|
|
311
238
|
<span class="cline-any cline-yes">2x</span>
|
|
312
239
|
<span class="cline-any cline-yes">2x</span>
|
|
313
240
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -335,11 +262,6 @@
|
|
|
335
262
|
<span class="cline-any cline-yes">5x</span>
|
|
336
263
|
<span class="cline-any cline-neutral"> </span>
|
|
337
264
|
<span class="cline-any cline-neutral"> </span>
|
|
338
|
-
<span class="cline-any cline-neutral"> </span>
|
|
339
|
-
<span class="cline-any cline-neutral"> </span>
|
|
340
|
-
<span class="cline-any cline-neutral"> </span>
|
|
341
|
-
<span class="cline-any cline-neutral"> </span>
|
|
342
|
-
<span class="cline-any cline-neutral"> </span>
|
|
343
265
|
<span class="cline-any cline-yes">5x</span>
|
|
344
266
|
<span class="cline-any cline-neutral"> </span>
|
|
345
267
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -348,7 +270,6 @@
|
|
|
348
270
|
<span class="cline-any cline-neutral"> </span>
|
|
349
271
|
<span class="cline-any cline-neutral"> </span>
|
|
350
272
|
<span class="cline-any cline-neutral"> </span>
|
|
351
|
-
<span class="cline-any cline-neutral"> </span>
|
|
352
273
|
<span class="cline-any cline-yes">5x</span>
|
|
353
274
|
<span class="cline-any cline-neutral"> </span>
|
|
354
275
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -365,10 +286,7 @@
|
|
|
365
286
|
<span class="cline-any cline-neutral"> </span>
|
|
366
287
|
<span class="cline-any cline-neutral"> </span>
|
|
367
288
|
<span class="cline-any cline-neutral"> </span>
|
|
368
|
-
<span class="cline-any cline-
|
|
369
|
-
<span class="cline-any cline-neutral"> </span>
|
|
370
|
-
<span class="cline-any cline-neutral"> </span>
|
|
371
|
-
<span class="cline-any cline-yes">1x</span>
|
|
289
|
+
<span class="cline-any cline-yes">5x</span>
|
|
372
290
|
<span class="cline-any cline-neutral"> </span>
|
|
373
291
|
<span class="cline-any cline-neutral"> </span>
|
|
374
292
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -381,7 +299,7 @@
|
|
|
381
299
|
<span class="cline-any cline-neutral"> </span>
|
|
382
300
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useContext, useState } from 'react';
|
|
383
301
|
import PropTypes from 'prop-types';
|
|
384
|
-
|
|
302
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
385
303
|
import {
|
|
386
304
|
Button,
|
|
387
305
|
Card,
|
|
@@ -391,16 +309,12 @@ import {
|
|
|
391
309
|
import EditSettingValue from './EditSettingValue';
|
|
392
310
|
import RenderSettingValue from './RenderSettingValue';
|
|
393
311
|
import { SettingsContext } from '../../contexts';
|
|
394
|
-
import {
|
|
395
|
-
import { toCamelCase } from '../../utils';
|
|
312
|
+
import { useRefdata, useTemplates } from '../../hooks';
|
|
313
|
+
import { renderHelpText, toCamelCase } from '../../utils';
|
|
396
314
|
|
|
397
|
-
import renderHelpTextCSS from '../../../../styles/renderHelpText.css';
|
|
398
315
|
|
|
399
316
|
const SettingField = (settingFieldProps) => {
|
|
400
317
|
const {
|
|
401
|
-
intlKey: passedIntlKey,
|
|
402
|
-
intlNS: passedIntlNS,
|
|
403
|
-
labelOverrides = {},
|
|
404
318
|
onSave,
|
|
405
319
|
settingData: {
|
|
406
320
|
currentSetting
|
|
@@ -408,13 +322,13 @@ const SettingField = (settingFieldProps) => {
|
|
|
408
322
|
} = settingFieldProps;
|
|
409
323
|
|
|
410
324
|
const [editing, setEditing] = useState(false);
|
|
411
|
-
const
|
|
412
|
-
const { refdataEndpoint, templateEndpoint } = useContext(SettingsContext);
|
|
325
|
+
const intl = useIntl();
|
|
326
|
+
const { intlKey, refdataEndpoint, templateEndpoint } = useContext(SettingsContext);
|
|
413
327
|
|
|
414
328
|
const {
|
|
415
329
|
0: {
|
|
416
|
-
values: refdata =
|
|
417
|
-
} =
|
|
330
|
+
values: refdata = []
|
|
331
|
+
} = {}
|
|
418
332
|
} = useRefdata({
|
|
419
333
|
endpoint: refdataEndpoint,
|
|
420
334
|
desc: currentSetting.vocab,
|
|
@@ -430,41 +344,13 @@ const SettingField = (settingFieldProps) => {
|
|
|
430
344
|
enabled: !!currentSetting?.vocab && <span class="branch-1 cbranch-no" title="branch not covered" >currentSetting.settingType === 'Template'</span>
|
|
431
345
|
}
|
|
432
346
|
});
|
|
433
|
-
|
|
434
|
-
const renderHelpText = <span class="fstat-no" title="function not covered" >(h</span>elpTextId) => {
|
|
435
|
-
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
436
|
-
<div className={renderHelpTextCSS.help}>
|
|
437
|
-
{
|
|
438
|
-
kintIntl.formatKintMessage({
|
|
439
|
-
id: helpTextId
|
|
440
|
-
}, {
|
|
441
|
-
b: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><b>{chunks}</b>,</span>
|
|
442
|
-
i: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><i>{chunks}</i>,</span>
|
|
443
|
-
em: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><em>{chunks}</em>,</span>
|
|
444
|
-
strong: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><strong>{chunks}</strong>,</span>
|
|
445
|
-
span: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><span>{chunks}</span>,</span>
|
|
446
|
-
div: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><div>{chunks}</div>,</span>
|
|
447
|
-
p: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><p>{chunks}</p>,</span>
|
|
448
|
-
ul: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><ul>{chunks}</ul>,</span>
|
|
449
|
-
ol: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><ol>{chunks}</ol>,</span>
|
|
450
|
-
li: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><li>{chunks}</li>,</span>
|
|
451
|
-
})
|
|
452
|
-
}
|
|
453
|
-
</div>
|
|
454
|
-
);
|
|
455
|
-
};
|
|
456
347
|
|
|
457
348
|
const renderEditButton = () => {
|
|
458
349
|
const EditText = editing ?
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}) :
|
|
462
|
-
kintIntl.formatKintMessage({
|
|
463
|
-
id: 'edit'
|
|
464
|
-
});
|
|
350
|
+
<FormattedMessage id="stripes-kint-components.settings.finishEditing" /> :
|
|
351
|
+
<FormattedMessage id="stripes-kint-components.settings.edit" />;
|
|
465
352
|
return (
|
|
466
353
|
<Button
|
|
467
|
-
marginBottom0
|
|
468
354
|
onClick={(e) => {
|
|
469
355
|
e.preventDefault();
|
|
470
356
|
return (
|
|
@@ -486,25 +372,19 @@ const SettingField = (settingFieldProps) => {
|
|
|
486
372
|
RenderFunction = EditSettingValue;
|
|
487
373
|
}
|
|
488
374
|
|
|
489
|
-
const id =
|
|
375
|
+
const id = `${intlKey}.settings.${toCamelCase(currentSetting.section)}.${toCamelCase(currentSetting.key)}.help`;
|
|
490
376
|
|
|
491
377
|
|
|
492
378
|
const renderHeaderStart = () => {
|
|
493
379
|
const settingName = Object.keys(currentSetting).length > 0 ?
|
|
494
|
-
|
|
495
|
-
id
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
&
|
|
501
|
-
|
|
502
|
-
<>
|
|
503
|
-
{
|
|
504
|
-
kintIntl.messageExists(id) && <span class="branch-1 cbranch-no" title="branch not covered" ><InfoPopover content={renderHelpText(id)} />}</span>
|
|
505
|
-
{settingName}
|
|
506
|
-
</>
|
|
507
|
-
);
|
|
380
|
+
<FormattedMessage id={`${intlKey}.settings.${toCamelCase(currentSetting.section)}.${toCamelCase(currentSetting.key)}`} /> :
|
|
381
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > <FormattedMessage id="stripes-kint-components.settings.settingLoading" />;</span>
|
|
382
|
+
return (
|
|
383
|
+
<>
|
|
384
|
+
{intl.messages[id] && <span class="branch-1 cbranch-no" title="branch not covered" ><InfoPopover content={renderHelpText(id)} />}</span>
|
|
385
|
+
{settingName}
|
|
386
|
+
</>
|
|
387
|
+
);
|
|
508
388
|
};
|
|
509
389
|
|
|
510
390
|
return (
|
|
@@ -515,9 +395,6 @@ const SettingField = (settingFieldProps) => {
|
|
|
515
395
|
>
|
|
516
396
|
<RenderFunction
|
|
517
397
|
currentSetting={currentSetting}
|
|
518
|
-
intlKey={passedIntlKey}
|
|
519
|
-
intlNS={passedIntlNS}
|
|
520
|
-
labelOverrides={labelOverrides}
|
|
521
398
|
refdata={refdata}
|
|
522
399
|
templates={templates}
|
|
523
400
|
{...settingFieldProps}
|
|
@@ -544,7 +421,7 @@ export default SettingField;
|
|
|
544
421
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
545
422
|
Code coverage generated by
|
|
546
423
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
547
|
-
at 2022-
|
|
424
|
+
at 2022-11-22T09:57:19.883Z
|
|
548
425
|
</div>
|
|
549
426
|
<script src="../../prettify.js"></script>
|
|
550
427
|
<script>
|