@k-int/stripes-kint-components 2.8.2 → 3.0.0
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 +15 -3
- package/es/index.js +48 -12
- package/es/lib/ActionList/ActionList.js +11 -5
- package/es/lib/ActionList/ActionListFieldArray.js +147 -77
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +43 -31
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +17 -14
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +64 -46
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +17 -24
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +91 -70
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +53 -36
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +50 -31
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +13 -14
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -0
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +8 -12
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +22 -24
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +9 -12
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +62 -13
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +12 -13
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +91 -44
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +80 -73
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +31 -32
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +26 -24
- package/es/lib/CustomProperties/Edit/testResources.js +73 -908
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +21 -29
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +12 -10
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +38 -39
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +28 -13
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +29 -44
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +6 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +16 -10
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +12 -12
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +20 -11
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +4 -3
- package/es/lib/CustomProperties/Filter/testResources.js +37 -233
- package/es/lib/CustomProperties/Filter/useOperators.js +69 -27
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -2
- package/es/lib/CustomProperties/Filter/useValueProps.js +7 -2
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +6 -0
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +4 -3
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +13 -19
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -10
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +34 -51
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +35 -27
- package/es/lib/EditableRefdataList/EditableRefdataList.js +41 -31
- package/es/lib/EditableSettingsList/EditableSettingsList.js +11 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +10 -0
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +19 -11
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +9 -8
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +21 -9
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -0
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +83 -16
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +138 -65
- package/es/lib/FormModal/FormModal.js +14 -9
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +91 -0
- package/es/lib/FormattedKintMessage/index.js +15 -0
- package/es/lib/IconSelect/IconSelect.js +18 -12
- package/es/lib/NoResultsMessage/NoResultsMessage.js +13 -2
- package/es/lib/RichSelect/RichSelect.js +13 -34
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +16 -5
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +11 -1
- package/es/lib/SettingPage/SettingPage.js +12 -13
- package/es/lib/SettingPage/SettingPagePane.js +12 -20
- package/es/lib/hooks/__mocks__/index.js +46 -0
- package/es/lib/hooks/index.js +24 -8
- package/es/lib/hooks/settingsHooks/useSettings.js +22 -17
- package/es/lib/hooks/useIntlKey.js +34 -0
- package/es/lib/hooks/useIntlKeyStore.js +84 -0
- package/es/lib/hooks/useKintIntl.js +93 -0
- package/es/lib/utils/index.js +40 -4
- package/es/lib/utils/parseErrorResponse.js +1 -1
- package/es/lib/utils/validators.js +76 -59
- package/jest.config.js +4 -1
- package/junit.xml +157 -656
- package/package.json +54 -33
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +56 -8
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +394 -64
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +10 -10
- 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 +187 -52
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +372 -87
- 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 +45 -60
- 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 +59 -47
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +259 -97
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +399 -105
- 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 +57 -57
- 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 +67 -688
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +92 -53
- 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 +89 -89
- 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 +46 -46
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +45 -36
- 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 +50 -41
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +54 -75
- 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/{hooks/useAvailableCustomProperties.js.html → CycleButton/CycleButton.js.html} +62 -50
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +664 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +264 -39
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +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 +247 -0
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/CustomPropertiesView.js.html → IconSelect/IconSelect.js.html} +158 -257
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +48 -6
- 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/{CustomProperties/Config/testResources.js.html → RichSelect/RichSelect.js.html} +256 -334
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +127 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +52 -7
- 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 +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 +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 +2 -2
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +142 -97
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +13 -4
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +35 -20
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +5 -2
- 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 +19 -22
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +151 -0
- package/src/artifacts/coverage-jest/lcov-report/{utils/renderHelpText.js.html → hooks/useIntlKeyStore.js.html} +71 -38
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +238 -0
- 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 +23 -11
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +274 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +19 -10
- 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/useTemplates.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/index.html +205 -130
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +2 -2
- 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 +34 -34
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +42 -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 +139 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +5 -2
- 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 +128 -80
- package/src/artifacts/coverage-jest/lcov.info +2603 -2086
- package/src/index.js +11 -4
- package/src/lib/ActionList/ActionList.js +9 -3
- package/src/lib/ActionList/ActionListFieldArray.js +115 -37
- package/src/lib/ActionList/README.md +2 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +60 -16
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +14 -4
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +106 -33
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +16 -9
- package/src/lib/CustomProperties/Config/CustomPropertyForm.js +131 -58
- package/src/lib/CustomProperties/Config/CustomPropertyForm.test.js +52 -33
- package/src/lib/CustomProperties/Config/CustomPropertyView.js +71 -47
- package/src/lib/CustomProperties/Config/CustomPropertyView.test.js +8 -6
- package/src/lib/CustomProperties/Config/README.md +33 -28
- package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -0
- package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +7 -3
- package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +23 -19
- package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +5 -3
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +65 -11
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +10 -8
- package/src/lib/CustomProperties/Edit/CustomPropertyField.js +115 -21
- package/src/lib/CustomProperties/Edit/CustomPropertyField.test.js +59 -60
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.js +24 -33
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +20 -27
- package/src/lib/CustomProperties/Edit/testResources.js +46 -1047
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +22 -22
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +12 -8
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +44 -31
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +26 -13
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +33 -36
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +3 -3
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +19 -8
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +9 -12
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.js +22 -5
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +3 -1
- package/src/lib/CustomProperties/Filter/testResources.js +14 -265
- package/src/lib/CustomProperties/Filter/useOperators.js +20 -20
- package/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -2
- package/src/lib/CustomProperties/Filter/useValueProps.js +8 -3
- package/src/lib/CustomProperties/View/CustomPropertiesView.js +6 -0
- package/src/lib/CustomProperties/View/CustomPropertiesView.test.js +2 -1
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +15 -13
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +2 -5
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +36 -43
- package/src/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +45 -27
- package/src/lib/EditableRefdataList/EditableRefdataList.js +56 -32
- package/src/lib/EditableSettingsList/EditableSettingsList.js +10 -1
- package/src/lib/EditableSettingsList/EditableSettingsListFieldArray.js +14 -1
- package/src/lib/EditableSettingsList/SettingField/EditSettingValue.js +17 -5
- package/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +9 -8
- package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.js +24 -7
- package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -0
- package/src/lib/EditableSettingsList/SettingField/SettingField.js +57 -16
- package/src/lib/EditableSettingsList/SettingField/SettingField.test.js +14 -19
- package/src/lib/FormModal/FormModal.js +15 -9
- package/src/lib/FormattedKintMessage/FormattedKintMessage.js +54 -0
- package/src/lib/FormattedKintMessage/index.js +1 -0
- package/src/lib/IconSelect/IconSelect.js +17 -8
- package/src/lib/NoResultsMessage/NoResultsMessage.js +15 -1
- package/src/lib/RichSelect/RichSelect.js +16 -36
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +17 -2
- package/src/lib/SASQLookupComponent/TableBody/TableBody.js +10 -1
- package/src/lib/SettingPage/SettingPage.js +12 -13
- package/src/lib/SettingPage/SettingPagePane.js +16 -6
- package/src/lib/hooks/__mocks__/index.js +17 -0
- package/src/lib/hooks/index.js +3 -1
- package/src/lib/hooks/settingsHooks/useSettings.js +25 -12
- package/src/lib/hooks/useIntlKey.js +22 -0
- package/src/lib/hooks/useIntlKeyStore.js +38 -0
- package/src/lib/hooks/useKintIntl.js +51 -0
- package/src/lib/utils/index.js +11 -1
- package/src/lib/utils/parseErrorResponse.js +1 -1
- package/src/lib/utils/validators.js +57 -41
- package/styles/RichSelect.css +7 -4
- package/test/helpers/test-implementor-translations.json +80 -0
- package/test/helpers/translationsProperties.js +6 -1
- package/test/jest/customProperties.js +166 -0
- package/test/jest/helpers/KintHarness.js +1 -1
- package/test/jest/helpers/renderWithKintHarness.js +2 -1
- package/test/jest/index.js +8 -0
- package/test/jest/refdata.js +471 -0
- package/test/jest/resolver.js +29 -0
- package/translations/stripes-kint-components/ar.json +1 -122
- package/translations/stripes-kint-components/cs_CZ.json +1 -122
- package/translations/stripes-kint-components/de.json +1 -122
- package/translations/stripes-kint-components/en.json +1 -148
- package/translations/stripes-kint-components/es.json +1 -122
- package/translations/stripes-kint-components/hi_IN.json +1 -122
- package/translations/stripes-kint-components/hu.json +1 -122
- package/translations/stripes-kint-components/it_IT.json +1 -122
- package/translations/stripes-kint-components/ja.json +1 -122
- package/translations/stripes-kint-components/ko.json +1 -122
- package/translations/stripes-kint-components/pt_PT.json +1 -122
- package/translations/stripes-kint-components/ru.json +1 -122
- package/translations/stripes-kint-components/sv.json +1 -122
- package/translations/stripes-kint-components/zh_CN.json +1 -122
- package/es/lib/CustomProperties/Config/testResources.js +0 -198
- package/es/lib/hooks/useAvailableCustomProperties.js +0 -73
- package/es/lib/utils/renderHelpText.js +0 -80
- package/src/lib/CustomProperties/Config/testResources.js +0 -236
- package/src/lib/hooks/useAvailableCustomProperties.js +0 -40
- package/src/lib/utils/renderHelpText.js +0 -27
package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html
CHANGED
|
@@ -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'>4/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">53.57% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>28
|
|
35
|
+
<span class='fraction'>15/28</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'>4/4</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -255,7 +255,31 @@
|
|
|
255
255
|
<a name='L190'></a><a href='#L190'>190</a>
|
|
256
256
|
<a name='L191'></a><a href='#L191'>191</a>
|
|
257
257
|
<a name='L192'></a><a href='#L192'>192</a>
|
|
258
|
-
<a name='L193'></a><a href='#L193'>193</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>
|
|
282
|
+
<a name='L217'></a><a href='#L217'>217</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
259
283
|
<span class="cline-any cline-neutral"> </span>
|
|
260
284
|
<span class="cline-any cline-neutral"> </span>
|
|
261
285
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -267,6 +291,10 @@
|
|
|
267
291
|
<span class="cline-any cline-neutral"> </span>
|
|
268
292
|
<span class="cline-any cline-neutral"> </span>
|
|
269
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-yes">9x</span>
|
|
297
|
+
<span class="cline-any cline-neutral"> </span>
|
|
270
298
|
<span class="cline-any cline-yes">9x</span>
|
|
271
299
|
<span class="cline-any cline-neutral"> </span>
|
|
272
300
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -425,6 +453,24 @@
|
|
|
425
453
|
<span class="cline-any cline-neutral"> </span>
|
|
426
454
|
<span class="cline-any cline-neutral"> </span>
|
|
427
455
|
<span class="cline-any cline-neutral"> </span>
|
|
456
|
+
<span class="cline-any cline-neutral"> </span>
|
|
457
|
+
<span class="cline-any cline-neutral"> </span>
|
|
458
|
+
<span class="cline-any cline-neutral"> </span>
|
|
459
|
+
<span class="cline-any cline-neutral"> </span>
|
|
460
|
+
<span class="cline-any cline-neutral"> </span>
|
|
461
|
+
<span class="cline-any cline-neutral"> </span>
|
|
462
|
+
<span class="cline-any cline-neutral"> </span>
|
|
463
|
+
<span class="cline-any cline-neutral"> </span>
|
|
464
|
+
<span class="cline-any cline-neutral"> </span>
|
|
465
|
+
<span class="cline-any cline-neutral"> </span>
|
|
466
|
+
<span class="cline-any cline-neutral"> </span>
|
|
467
|
+
<span class="cline-any cline-neutral"> </span>
|
|
468
|
+
<span class="cline-any cline-neutral"> </span>
|
|
469
|
+
<span class="cline-any cline-neutral"> </span>
|
|
470
|
+
<span class="cline-any cline-neutral"> </span>
|
|
471
|
+
<span class="cline-any cline-neutral"> </span>
|
|
472
|
+
<span class="cline-any cline-neutral"> </span>
|
|
473
|
+
<span class="cline-any cline-neutral"> </span>
|
|
428
474
|
<span class="cline-any cline-yes">2x</span>
|
|
429
475
|
<span class="cline-any cline-neutral"> </span>
|
|
430
476
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -447,18 +493,24 @@
|
|
|
447
493
|
<span class="cline-any cline-neutral"> </span>
|
|
448
494
|
<span class="cline-any cline-neutral"> </span>
|
|
449
495
|
<span class="cline-any cline-neutral"> </span>
|
|
496
|
+
<span class="cline-any cline-neutral"> </span>
|
|
497
|
+
<span class="cline-any cline-neutral"> </span>
|
|
450
498
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import PropTypes from 'prop-types';
|
|
451
|
-
import { FormattedMessage } from 'react-intl';
|
|
452
499
|
import { Col, InfoPopover, KeyValue, NoValue, Row } from '@folio/stripes/components';
|
|
453
500
|
|
|
501
|
+
import { useKintIntl } from '../../hooks';
|
|
454
502
|
import { MULTI_REFDATA_CLASS_NAME, REFDATA_CLASS_NAME } from '../../constants/customProperties';
|
|
455
503
|
|
|
456
504
|
// A default option for CustProp view pane, with the ability to override labels for fields
|
|
457
505
|
const CustomPropertyView = ({
|
|
458
506
|
customProperty,
|
|
459
507
|
helpPopovers,
|
|
460
|
-
|
|
508
|
+
intlKey: passedIntlKey,
|
|
509
|
+
intlNS: passedIntlNS,
|
|
510
|
+
labelOverrides = {}
|
|
461
511
|
}) => {
|
|
512
|
+
const kintIntl = useKintIntl(passedIntlKey, passedIntlNS);
|
|
513
|
+
|
|
462
514
|
return (
|
|
463
515
|
<>
|
|
464
516
|
<Row>
|
|
@@ -466,8 +518,12 @@ const CustomPropertyView = ({
|
|
|
466
518
|
<KeyValue
|
|
467
519
|
label={
|
|
468
520
|
<div>
|
|
469
|
-
{
|
|
470
|
-
|
|
521
|
+
{
|
|
522
|
+
kintIntl.formatKintMessage({
|
|
523
|
+
id: 'customProperties.label',
|
|
524
|
+
overrideValue: labelOverrides?.label
|
|
525
|
+
})
|
|
526
|
+
}
|
|
471
527
|
{helpPopovers?.label ?
|
|
472
528
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
473
529
|
content={helpPopovers?.label}
|
|
@@ -481,8 +537,12 @@ const CustomPropertyView = ({
|
|
|
481
537
|
<KeyValue
|
|
482
538
|
label={
|
|
483
539
|
<div>
|
|
484
|
-
{
|
|
485
|
-
|
|
540
|
+
{
|
|
541
|
+
kintIntl.formatKintMessage({
|
|
542
|
+
id: 'customProperties.name',
|
|
543
|
+
overrideValue: labelOverrides?.name
|
|
544
|
+
})
|
|
545
|
+
}
|
|
486
546
|
{helpPopovers?.name ?
|
|
487
547
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
488
548
|
content={helpPopovers?.name}
|
|
@@ -497,8 +557,10 @@ const CustomPropertyView = ({
|
|
|
497
557
|
<Col xs={12}>
|
|
498
558
|
<KeyValue
|
|
499
559
|
label={
|
|
500
|
-
|
|
501
|
-
|
|
560
|
+
kintIntl.formatKintMessage({
|
|
561
|
+
id: 'customProperties.description',
|
|
562
|
+
overrideValue: labelOverrides?.description
|
|
563
|
+
})
|
|
502
564
|
}
|
|
503
565
|
value={customProperty?.description}
|
|
504
566
|
/>
|
|
@@ -508,38 +570,32 @@ const CustomPropertyView = ({
|
|
|
508
570
|
<Col xs={6}>
|
|
509
571
|
<KeyValue
|
|
510
572
|
label={
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
573
|
+
kintIntl.formatKintMessage({
|
|
574
|
+
id: 'customProperties.primary',
|
|
575
|
+
overrideValue: labelOverrides?.primary
|
|
576
|
+
})
|
|
515
577
|
}
|
|
516
578
|
value={
|
|
517
|
-
|
|
518
|
-
id=
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
: <span class="branch-1 cbranch-no" title="branch not covered" >'stripes-kint-components.no'</span>
|
|
522
|
-
}
|
|
523
|
-
/>
|
|
579
|
+
kintIntl.formatKintMessage({
|
|
580
|
+
id: customProperty?.primary ? 'yes' : <span class="branch-1 cbranch-no" title="branch not covered" >'no',</span>
|
|
581
|
+
overrideValue: customProperty?.primary ? labelOverrides.yes : <span class="branch-1 cbranch-no" title="branch not covered" >labelOverrides.no,</span>
|
|
582
|
+
})
|
|
524
583
|
}
|
|
525
584
|
/>
|
|
526
585
|
</Col>
|
|
527
586
|
<Col xs={6}>
|
|
528
587
|
<KeyValue
|
|
529
588
|
label={
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
589
|
+
kintIntl.formatKintMessage({
|
|
590
|
+
id: 'customProperties.retired',
|
|
591
|
+
overrideValue: labelOverrides?.retired
|
|
592
|
+
})
|
|
534
593
|
}
|
|
535
594
|
value={
|
|
536
|
-
|
|
537
|
-
id=
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
: 'stripes-kint-components.no'
|
|
541
|
-
}
|
|
542
|
-
/>
|
|
595
|
+
kintIntl.formatKintMessage({
|
|
596
|
+
id: customProperty?.retired ? <span class="branch-0 cbranch-no" title="branch not covered" >'yes' </span>: 'no',
|
|
597
|
+
overrideValue: customProperty?.retired ? <span class="branch-0 cbranch-no" title="branch not covered" >labelOverrides.yes </span>: labelOverrides.no,
|
|
598
|
+
})
|
|
543
599
|
}
|
|
544
600
|
/>
|
|
545
601
|
</Col>
|
|
@@ -548,8 +604,10 @@ const CustomPropertyView = ({
|
|
|
548
604
|
<Col xs={6}>
|
|
549
605
|
<KeyValue
|
|
550
606
|
label={
|
|
551
|
-
|
|
552
|
-
|
|
607
|
+
kintIntl.formatKintMessage({
|
|
608
|
+
id: 'customProperties.weight',
|
|
609
|
+
overrideValue: labelOverrides?.weight
|
|
610
|
+
})
|
|
553
611
|
}
|
|
554
612
|
value={customProperty?.weight}
|
|
555
613
|
/>
|
|
@@ -557,17 +615,16 @@ const CustomPropertyView = ({
|
|
|
557
615
|
<Col xs={6}>
|
|
558
616
|
<KeyValue
|
|
559
617
|
label={
|
|
560
|
-
|
|
561
|
-
|
|
618
|
+
kintIntl.formatKintMessage({
|
|
619
|
+
id: 'customProperties.defaultVisibility',
|
|
620
|
+
overrideValue: labelOverrides?.defaultVisibility
|
|
621
|
+
})
|
|
562
622
|
}
|
|
563
623
|
value={
|
|
564
|
-
|
|
565
|
-
id=
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
: <span class="branch-1 cbranch-no" title="branch not covered" >'stripes-kint-components.customProperties.internalFalse'</span>
|
|
569
|
-
}
|
|
570
|
-
/>
|
|
624
|
+
kintIntl.formatKintMessage({
|
|
625
|
+
id: customProperty?.defaultInternal ? 'customProperties.internalTrue' : <span class="branch-1 cbranch-no" title="branch not covered" >'customProperties.internalFalse',</span>
|
|
626
|
+
overrideValue: customProperty?.defaultInternal ? labelOverrides.internalTrue : <span class="branch-1 cbranch-no" title="branch not covered" >labelOverrides.internalFalse,</span>
|
|
627
|
+
})
|
|
571
628
|
}
|
|
572
629
|
/>
|
|
573
630
|
</Col>
|
|
@@ -577,8 +634,12 @@ const CustomPropertyView = ({
|
|
|
577
634
|
<KeyValue
|
|
578
635
|
label={
|
|
579
636
|
<div>
|
|
580
|
-
{
|
|
581
|
-
|
|
637
|
+
{
|
|
638
|
+
kintIntl.formatKintMessage({
|
|
639
|
+
id: 'customProperties.ctx',
|
|
640
|
+
overrideValue: labelOverrides?.ctx
|
|
641
|
+
})
|
|
642
|
+
}
|
|
582
643
|
{helpPopovers?.ctx ?
|
|
583
644
|
<span class="branch-0 cbranch-no" title="branch not covered" > <InfoPopover</span>
|
|
584
645
|
content={helpPopovers?.ctx}
|
|
@@ -594,10 +655,17 @@ const CustomPropertyView = ({
|
|
|
594
655
|
{customProperty?.type && (
|
|
595
656
|
<KeyValue
|
|
596
657
|
label={
|
|
597
|
-
|
|
598
|
-
|
|
658
|
+
kintIntl.formatKintMessage({
|
|
659
|
+
id: 'customProperties.type',
|
|
660
|
+
overrideValue: labelOverrides?.type
|
|
661
|
+
})
|
|
662
|
+
}
|
|
663
|
+
value={
|
|
664
|
+
kintIntl.formatKintMessage({
|
|
665
|
+
id: `customProperties.type.${customProperty?.type}`,
|
|
666
|
+
overrideValue: labelOverrides?.[customProperty?.type]
|
|
667
|
+
})
|
|
599
668
|
}
|
|
600
|
-
value={<FormattedMessage id={`stripes-kint-components.customProperties.type.${customProperty?.type}`} />}
|
|
601
669
|
/>
|
|
602
670
|
)}
|
|
603
671
|
</Col>
|
|
@@ -605,8 +673,10 @@ const CustomPropertyView = ({
|
|
|
605
673
|
{(customProperty?.type === REFDATA_CLASS_NAME || customProperty?.type === MULTI_REFDATA_CLASS_NAME) && (
|
|
606
674
|
<span class="branch-2 cbranch-no" title="branch not covered" > <KeyValue</span>
|
|
607
675
|
label={
|
|
608
|
-
|
|
609
|
-
|
|
676
|
+
kintIntl.formatKintMessage({
|
|
677
|
+
id: 'customProperties.category',
|
|
678
|
+
overrideValue: labelOverrides?.category
|
|
679
|
+
})
|
|
610
680
|
}
|
|
611
681
|
value={customProperty?.category?.desc ?? <NoValue />}
|
|
612
682
|
/>
|
|
@@ -635,6 +705,8 @@ CustomPropertyView.propTypes = {
|
|
|
635
705
|
|
|
636
706
|
}),
|
|
637
707
|
helpPopovers: PropTypes.object,
|
|
708
|
+
intlKey: PropTypes.string,
|
|
709
|
+
intlNS: PropTypes.string,
|
|
638
710
|
labelOverrides: PropTypes.object
|
|
639
711
|
};
|
|
640
712
|
|
|
@@ -646,7 +718,7 @@ export default CustomPropertyView;
|
|
|
646
718
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
647
719
|
Code coverage generated by
|
|
648
720
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
649
|
-
at
|
|
721
|
+
at 2022-09-16T13:23:25.290Z
|
|
650
722
|
</div>
|
|
651
723
|
<script src="../../prettify.js"></script>
|
|
652
724
|
<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">54.71% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>58/106</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">51.85% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>56/108</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">38.88% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>14/36</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">36
|
|
47
|
+
<span class="strong">54.36% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>56/103</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 medium'></div>
|
|
65
65
|
<div class="pad1">
|
|
66
66
|
<table class="coverage-summary">
|
|
67
67
|
<thead>
|
|
@@ -79,48 +79,48 @@
|
|
|
79
79
|
</tr>
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
|
-
<td class="file
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
82
|
+
<td class="file medium" data-value="CustomPropertiesLookup.js"><a href="CustomPropertiesLookup.js.html">CustomPropertiesLookup.js</a></td>
|
|
83
|
+
<td data-value="78.94" class="pic medium">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 78%"></div><div class="cover-empty" style="width: 22%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
90
|
-
<td data-value="
|
|
91
|
-
<td data-value="9" class="abs
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
86
|
+
<td data-value="78.94" class="pct medium">78.94%</td>
|
|
87
|
+
<td data-value="19" class="abs medium">15/19</td>
|
|
88
|
+
<td data-value="80" class="pct high">80%</td>
|
|
89
|
+
<td data-value="5" class="abs high">4/5</td>
|
|
90
|
+
<td data-value="55.55" class="pct medium">55.55%</td>
|
|
91
|
+
<td data-value="9" class="abs medium">5/9</td>
|
|
92
|
+
<td data-value="78.94" class="pct medium">78.94%</td>
|
|
93
|
+
<td data-value="19" class="abs medium">15/19</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
97
97
|
<td class="file low" data-value="CustomPropertiesSettings.js"><a href="CustomPropertiesSettings.js.html">CustomPropertiesSettings.js</a></td>
|
|
98
|
-
<td data-value="
|
|
99
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
98
|
+
<td data-value="35.84" class="pic low">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 35%"></div><div class="cover-empty" style="width: 65%"></div></div>
|
|
100
100
|
</td>
|
|
101
|
-
<td data-value="
|
|
102
|
-
<td data-value="
|
|
103
|
-
<td data-value="
|
|
104
|
-
<td data-value="
|
|
105
|
-
<td data-value="
|
|
106
|
-
<td data-value="
|
|
107
|
-
<td data-value="
|
|
108
|
-
<td data-value="
|
|
101
|
+
<td data-value="35.84" class="pct low">35.84%</td>
|
|
102
|
+
<td data-value="53" class="abs low">19/53</td>
|
|
103
|
+
<td data-value="42.42" class="pct low">42.42%</td>
|
|
104
|
+
<td data-value="33" class="abs low">14/33</td>
|
|
105
|
+
<td data-value="11.76" class="pct low">11.76%</td>
|
|
106
|
+
<td data-value="17" class="abs low">2/17</td>
|
|
107
|
+
<td data-value="35.84" class="pct low">35.84%</td>
|
|
108
|
+
<td data-value="53" class="abs low">19/53</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
112
|
<td class="file medium" data-value="CustomPropertyForm.js"><a href="CustomPropertyForm.js.html">CustomPropertyForm.js</a></td>
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
113
|
+
<td data-value="66.66" class="pic medium">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 66%"></div><div class="cover-empty" style="width: 34%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="
|
|
118
|
-
<td data-value="
|
|
119
|
-
<td data-value="
|
|
120
|
-
<td data-value="
|
|
121
|
-
<td data-value="
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="
|
|
116
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
117
|
+
<td data-value="30" class="abs medium">20/30</td>
|
|
118
|
+
<td data-value="54.76" class="pct medium">54.76%</td>
|
|
119
|
+
<td data-value="42" class="abs medium">23/42</td>
|
|
120
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
121
|
+
<td data-value="9" class="abs medium">6/9</td>
|
|
122
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
123
|
+
<td data-value="27" class="abs medium">18/27</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
@@ -129,13 +129,13 @@
|
|
|
129
129
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
130
130
|
</td>
|
|
131
131
|
<td data-value="100" class="pct high">100%</td>
|
|
132
|
-
<td data-value="
|
|
133
|
-
<td data-value="
|
|
134
|
-
<td data-value="
|
|
132
|
+
<td data-value="4" class="abs high">4/4</td>
|
|
133
|
+
<td data-value="53.57" class="pct medium">53.57%</td>
|
|
134
|
+
<td data-value="28" class="abs medium">15/28</td>
|
|
135
135
|
<td data-value="100" class="pct high">100%</td>
|
|
136
136
|
<td data-value="1" class="abs high">1/1</td>
|
|
137
137
|
<td data-value="100" class="pct high">100%</td>
|
|
138
|
-
<td data-value="
|
|
138
|
+
<td data-value="4" class="abs high">4/4</td>
|
|
139
139
|
</tr>
|
|
140
140
|
|
|
141
141
|
<tr>
|
|
@@ -153,21 +153,6 @@
|
|
|
153
153
|
<td data-value="0" class="abs empty">0/0</td>
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
|
-
<tr>
|
|
157
|
-
<td class="file high" data-value="testResources.js"><a href="testResources.js.html">testResources.js</a></td>
|
|
158
|
-
<td data-value="100" class="pic high">
|
|
159
|
-
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
160
|
-
</td>
|
|
161
|
-
<td data-value="100" class="pct high">100%</td>
|
|
162
|
-
<td data-value="8" class="abs high">8/8</td>
|
|
163
|
-
<td data-value="100" class="pct high">100%</td>
|
|
164
|
-
<td data-value="0" class="abs high">0/0</td>
|
|
165
|
-
<td data-value="0" class="pct low">0%</td>
|
|
166
|
-
<td data-value="4" class="abs low">0/4</td>
|
|
167
|
-
<td data-value="100" class="pct high">100%</td>
|
|
168
|
-
<td data-value="8" class="abs high">8/8</td>
|
|
169
|
-
</tr>
|
|
170
|
-
|
|
171
156
|
</tbody>
|
|
172
157
|
</table>
|
|
173
158
|
</div>
|
|
@@ -176,7 +161,7 @@
|
|
|
176
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
177
162
|
Code coverage generated by
|
|
178
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
179
|
-
at
|
|
164
|
+
at 2022-09-16T13:23:25.290Z
|
|
180
165
|
</div>
|
|
181
166
|
<script src="../../prettify.js"></script>
|
|
182
167
|
<script>
|
|
@@ -82,7 +82,7 @@ export { default as CustomPropertyForm } from './CustomPropertyForm';
|
|
|
82
82
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
83
83
|
Code coverage generated by
|
|
84
84
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
85
|
-
at
|
|
85
|
+
at 2022-09-16T13:23:25.290Z
|
|
86
86
|
</div>
|
|
87
87
|
<script src="../../prettify.js"></script>
|
|
88
88
|
<script>
|
package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">50% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>1/2</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -98,7 +98,13 @@
|
|
|
98
98
|
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
99
|
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
100
|
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
-
<a name='L36'></a><a href='#L36'>36</a
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
102
108
|
<span class="cline-any cline-neutral"> </span>
|
|
103
109
|
<span class="cline-any cline-neutral"> </span>
|
|
104
110
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -108,6 +114,8 @@
|
|
|
108
114
|
<span class="cline-any cline-neutral"> </span>
|
|
109
115
|
<span class="cline-any cline-neutral"> </span>
|
|
110
116
|
<span class="cline-any cline-neutral"> </span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
111
119
|
<span class="cline-any cline-yes">1x</span>
|
|
112
120
|
<span class="cline-any cline-neutral"> </span>
|
|
113
121
|
<span class="cline-any cline-yes">2x</span>
|
|
@@ -124,6 +132,8 @@
|
|
|
124
132
|
<span class="cline-any cline-neutral"> </span>
|
|
125
133
|
<span class="cline-any cline-neutral"> </span>
|
|
126
134
|
<span class="cline-any cline-neutral"> </span>
|
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
|
127
137
|
<span class="cline-any cline-yes">1x</span>
|
|
128
138
|
<span class="cline-any cline-neutral"> </span>
|
|
129
139
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -133,6 +143,8 @@
|
|
|
133
143
|
<span class="cline-any cline-neutral"> </span>
|
|
134
144
|
<span class="cline-any cline-neutral"> </span>
|
|
135
145
|
<span class="cline-any cline-neutral"> </span>
|
|
146
|
+
<span class="cline-any cline-neutral"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
148
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import PropTypes from 'prop-types';
|
|
137
149
|
import CustomPropertiesEditCtx from './CustomPropertiesEditCtx';
|
|
138
150
|
|
|
@@ -140,7 +152,9 @@ const CustomPropertiesEdit = ({
|
|
|
140
152
|
contexts = <span class="branch-0 cbranch-no" title="branch not covered" >[],</span>
|
|
141
153
|
customPropertiesEndpoint,
|
|
142
154
|
id,
|
|
143
|
-
|
|
155
|
+
intlKey: passedIntlKey,
|
|
156
|
+
intlNS: passedIntlNS,
|
|
157
|
+
labelOverrides = {},
|
|
144
158
|
nameOverride
|
|
145
159
|
}) => {
|
|
146
160
|
return (
|
|
@@ -151,6 +165,8 @@ const CustomPropertiesEdit = ({
|
|
|
151
165
|
ctx,
|
|
152
166
|
customPropertiesEndpoint,
|
|
153
167
|
id,
|
|
168
|
+
intlKey: passedIntlKey,
|
|
169
|
+
intlNS: passedIntlNS,
|
|
154
170
|
labelOverrides,
|
|
155
171
|
nameOverride
|
|
156
172
|
}}
|
|
@@ -163,6 +179,8 @@ CustomPropertiesEdit.propTypes = {
|
|
|
163
179
|
contexts: PropTypes.arrayOf(PropTypes.string),
|
|
164
180
|
customPropertiesEndpoint: PropTypes.string,
|
|
165
181
|
id: PropTypes.string,
|
|
182
|
+
intlKey: PropTypes.string,
|
|
183
|
+
intlNS: PropTypes.string,
|
|
166
184
|
labelOverrides: PropTypes.object,
|
|
167
185
|
nameOverride: PropTypes.string
|
|
168
186
|
};
|
|
@@ -175,7 +193,7 @@ export default CustomPropertiesEdit;
|
|
|
175
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
176
194
|
Code coverage generated by
|
|
177
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
178
|
-
at
|
|
196
|
+
at 2022-09-16T13:23:25.290Z
|
|
179
197
|
</div>
|
|
180
198
|
<script src="../../prettify.js"></script>
|
|
181
199
|
<script>
|