@k-int/stripes-kint-components 2.8.2 → 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 +6 -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 +91 -140
- 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 +164 -663
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +35 -5
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +120 -24
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +8 -8
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +29 -26
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +136 -70
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +10 -10
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +5 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +35 -35
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +15 -15
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +88 -88
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +92 -80
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +4 -4
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +44 -44
- 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 +2394 -12
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +72 -33
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +4 -4
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +4 -4
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +37 -37
- 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 +4 -4
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +14 -14
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +9 -6
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +6 -6
- 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 +217 -0
- 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 +610 -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 +192 -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 +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
- 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/IconSelect/IconSelect.js.html +475 -0
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +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/CustomPropertiesView.js.html → ResponsiveButtonGroup/ResponsiveButtonGroup.js.html} +186 -252
- 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 +775 -0
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
- 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 +44 -29
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +6 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +22 -7
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +2 -2
- 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 +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +32 -32
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +34 -37
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +151 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +199 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +238 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +18 -6
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +274 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +14 -5
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +187 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/index.html +138 -78
- 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 +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 +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +53 -38
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +11 -2
- 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/renderHelpText.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 +28 -28
- package/src/artifacts/coverage-jest/lcov.info +1724 -1155
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +1 -1
- 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
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/5</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -140,7 +140,17 @@
|
|
|
140
140
|
<a name='L75'></a><a href='#L75'>75</a>
|
|
141
141
|
<a name='L76'></a><a href='#L76'>76</a>
|
|
142
142
|
<a name='L77'></a><a href='#L77'>77</a>
|
|
143
|
-
<a name='L78'></a><a href='#L78'>78</a
|
|
143
|
+
<a name='L78'></a><a href='#L78'>78</a>
|
|
144
|
+
<a name='L79'></a><a href='#L79'>79</a>
|
|
145
|
+
<a name='L80'></a><a href='#L80'>80</a>
|
|
146
|
+
<a name='L81'></a><a href='#L81'>81</a>
|
|
147
|
+
<a name='L82'></a><a href='#L82'>82</a>
|
|
148
|
+
<a name='L83'></a><a href='#L83'>83</a>
|
|
149
|
+
<a name='L84'></a><a href='#L84'>84</a>
|
|
150
|
+
<a name='L85'></a><a href='#L85'>85</a>
|
|
151
|
+
<a name='L86'></a><a href='#L86'>86</a>
|
|
152
|
+
<a name='L87'></a><a href='#L87'>87</a>
|
|
153
|
+
<a name='L88'></a><a href='#L88'>88</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
144
154
|
<span class="cline-any cline-neutral"> </span>
|
|
145
155
|
<span class="cline-any cline-neutral"> </span>
|
|
146
156
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -163,6 +173,11 @@
|
|
|
163
173
|
<span class="cline-any cline-neutral"> </span>
|
|
164
174
|
<span class="cline-any cline-neutral"> </span>
|
|
165
175
|
<span class="cline-any cline-neutral"> </span>
|
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
|
177
|
+
<span class="cline-any cline-neutral"> </span>
|
|
178
|
+
<span class="cline-any cline-neutral"> </span>
|
|
179
|
+
<span class="cline-any cline-neutral"> </span>
|
|
180
|
+
<span class="cline-any cline-neutral"> </span>
|
|
166
181
|
<span class="cline-any cline-no"> </span>
|
|
167
182
|
<span class="cline-any cline-neutral"> </span>
|
|
168
183
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -177,6 +192,8 @@
|
|
|
177
192
|
<span class="cline-any cline-neutral"> </span>
|
|
178
193
|
<span class="cline-any cline-neutral"> </span>
|
|
179
194
|
<span class="cline-any cline-neutral"> </span>
|
|
195
|
+
<span class="cline-any cline-neutral"> </span>
|
|
196
|
+
<span class="cline-any cline-neutral"> </span>
|
|
180
197
|
<span class="cline-any cline-no"> </span>
|
|
181
198
|
<span class="cline-any cline-no"> </span>
|
|
182
199
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -214,6 +231,9 @@
|
|
|
214
231
|
<span class="cline-any cline-neutral"> </span>
|
|
215
232
|
<span class="cline-any cline-neutral"> </span>
|
|
216
233
|
<span class="cline-any cline-neutral"> </span>
|
|
234
|
+
<span class="cline-any cline-neutral"> </span>
|
|
235
|
+
<span class="cline-any cline-neutral"> </span>
|
|
236
|
+
<span class="cline-any cline-neutral"> </span>
|
|
217
237
|
<span class="cline-any cline-no"> </span>
|
|
218
238
|
<span class="cline-any cline-neutral"> </span>
|
|
219
239
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -233,10 +253,15 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
233
253
|
contentData: PropTypes.arrayOf(PropTypes.object),
|
|
234
254
|
creatableFields: PropTypes.object,
|
|
235
255
|
createCallback: PropTypes.func,
|
|
256
|
+
defaultNewObject: PropTypes.object,
|
|
236
257
|
editableFields: PropTypes.object,
|
|
237
258
|
fieldComponents: PropTypes.object,
|
|
238
259
|
hideCreateButton: PropTypes.bool,
|
|
239
|
-
label: PropTypes.
|
|
260
|
+
label: PropTypes.oneOfType([
|
|
261
|
+
PropTypes.string,
|
|
262
|
+
PropTypes.node
|
|
263
|
+
]),
|
|
264
|
+
validateFields: PropTypes.object,
|
|
240
265
|
visibleFields: PropTypes.arrayOf(PropTypes.string)
|
|
241
266
|
};
|
|
242
267
|
|
|
@@ -247,10 +272,12 @@ const ActionList = <span class="cstat-no" title="statement not covered" >forward
|
|
|
247
272
|
contentData,
|
|
248
273
|
creatableFields = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
249
274
|
createCallback,
|
|
275
|
+
defaultNewObject = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
250
276
|
editableFields = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
251
277
|
fieldComponents = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
252
278
|
hideCreateButton,
|
|
253
279
|
label,
|
|
280
|
+
validateFields,
|
|
254
281
|
visibleFields,
|
|
255
282
|
...mclProps // Assume anything left over is to directly apply to the MCL
|
|
256
283
|
}, ref) => {
|
|
@@ -267,7 +294,7 @@ const ActionList = <span class="cstat-no" title="statement not covered" >forward
|
|
|
267
294
|
onSubmit={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null}</span>
|
|
268
295
|
subscription={{ contentData: true }}
|
|
269
296
|
>
|
|
270
|
-
{<span class="fstat-no" title="function not covered" >(
|
|
297
|
+
{<span class="fstat-no" title="function not covered" >({</span> handleSubmit }) => (
|
|
271
298
|
<span class="cstat-no" title="statement not covered" > <form onSubmit={<span class="fstat-no" title="function not covered" >e </span>=> { <span class="cstat-no" title="statement not covered" >e.preventDefault(); </span>}}></span>
|
|
272
299
|
<FieldArray
|
|
273
300
|
actionAssigner={actionAssigner}
|
|
@@ -276,11 +303,14 @@ const ActionList = <span class="cstat-no" title="statement not covered" >forward
|
|
|
276
303
|
component={ActionListFieldArrayWithRef}
|
|
277
304
|
creatableFields={creatableFields}
|
|
278
305
|
createCallback={createCallback}
|
|
306
|
+
defaultNewObject={defaultNewObject}
|
|
279
307
|
editableFields={editableFields}
|
|
280
308
|
fieldComponents={fieldComponents}
|
|
281
309
|
hideCreateButton={hideCreateButton}
|
|
282
310
|
label={label}
|
|
283
311
|
name="contentData"
|
|
312
|
+
triggerFormSubmit={handleSubmit}
|
|
313
|
+
validateFields={validateFields}
|
|
284
314
|
visibleFields={visibleFields}
|
|
285
315
|
{...mclProps}
|
|
286
316
|
/>
|
|
@@ -301,7 +331,7 @@ export default ActionList;
|
|
|
301
331
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
302
332
|
Code coverage generated by
|
|
303
333
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
304
|
-
at
|
|
334
|
+
at 2022-11-22T09:57:19.883Z
|
|
305
335
|
</div>
|
|
306
336
|
<script src="../prettify.js"></script>
|
|
307
337
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/105</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/78</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/96</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -386,7 +386,40 @@
|
|
|
386
386
|
<a name='L321'></a><a href='#L321'>321</a>
|
|
387
387
|
<a name='L322'></a><a href='#L322'>322</a>
|
|
388
388
|
<a name='L323'></a><a href='#L323'>323</a>
|
|
389
|
-
<a name='L324'></a><a href='#L324'>324</a
|
|
389
|
+
<a name='L324'></a><a href='#L324'>324</a>
|
|
390
|
+
<a name='L325'></a><a href='#L325'>325</a>
|
|
391
|
+
<a name='L326'></a><a href='#L326'>326</a>
|
|
392
|
+
<a name='L327'></a><a href='#L327'>327</a>
|
|
393
|
+
<a name='L328'></a><a href='#L328'>328</a>
|
|
394
|
+
<a name='L329'></a><a href='#L329'>329</a>
|
|
395
|
+
<a name='L330'></a><a href='#L330'>330</a>
|
|
396
|
+
<a name='L331'></a><a href='#L331'>331</a>
|
|
397
|
+
<a name='L332'></a><a href='#L332'>332</a>
|
|
398
|
+
<a name='L333'></a><a href='#L333'>333</a>
|
|
399
|
+
<a name='L334'></a><a href='#L334'>334</a>
|
|
400
|
+
<a name='L335'></a><a href='#L335'>335</a>
|
|
401
|
+
<a name='L336'></a><a href='#L336'>336</a>
|
|
402
|
+
<a name='L337'></a><a href='#L337'>337</a>
|
|
403
|
+
<a name='L338'></a><a href='#L338'>338</a>
|
|
404
|
+
<a name='L339'></a><a href='#L339'>339</a>
|
|
405
|
+
<a name='L340'></a><a href='#L340'>340</a>
|
|
406
|
+
<a name='L341'></a><a href='#L341'>341</a>
|
|
407
|
+
<a name='L342'></a><a href='#L342'>342</a>
|
|
408
|
+
<a name='L343'></a><a href='#L343'>343</a>
|
|
409
|
+
<a name='L344'></a><a href='#L344'>344</a>
|
|
410
|
+
<a name='L345'></a><a href='#L345'>345</a>
|
|
411
|
+
<a name='L346'></a><a href='#L346'>346</a>
|
|
412
|
+
<a name='L347'></a><a href='#L347'>347</a>
|
|
413
|
+
<a name='L348'></a><a href='#L348'>348</a>
|
|
414
|
+
<a name='L349'></a><a href='#L349'>349</a>
|
|
415
|
+
<a name='L350'></a><a href='#L350'>350</a>
|
|
416
|
+
<a name='L351'></a><a href='#L351'>351</a>
|
|
417
|
+
<a name='L352'></a><a href='#L352'>352</a>
|
|
418
|
+
<a name='L353'></a><a href='#L353'>353</a>
|
|
419
|
+
<a name='L354'></a><a href='#L354'>354</a>
|
|
420
|
+
<a name='L355'></a><a href='#L355'>355</a>
|
|
421
|
+
<a name='L356'></a><a href='#L356'>356</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
422
|
+
<span class="cline-any cline-neutral"> </span>
|
|
390
423
|
<span class="cline-any cline-neutral"> </span>
|
|
391
424
|
<span class="cline-any cline-neutral"> </span>
|
|
392
425
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -414,6 +447,12 @@
|
|
|
414
447
|
<span class="cline-any cline-neutral"> </span>
|
|
415
448
|
<span class="cline-any cline-neutral"> </span>
|
|
416
449
|
<span class="cline-any cline-neutral"> </span>
|
|
450
|
+
<span class="cline-any cline-neutral"> </span>
|
|
451
|
+
<span class="cline-any cline-neutral"> </span>
|
|
452
|
+
<span class="cline-any cline-neutral"> </span>
|
|
453
|
+
<span class="cline-any cline-neutral"> </span>
|
|
454
|
+
<span class="cline-any cline-neutral"> </span>
|
|
455
|
+
<span class="cline-any cline-neutral"> </span>
|
|
417
456
|
<span class="cline-any cline-no"> </span>
|
|
418
457
|
<span class="cline-any cline-neutral"> </span>
|
|
419
458
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -429,6 +468,9 @@
|
|
|
429
468
|
<span class="cline-any cline-neutral"> </span>
|
|
430
469
|
<span class="cline-any cline-neutral"> </span>
|
|
431
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>
|
|
432
474
|
<span class="cline-any cline-no"> </span>
|
|
433
475
|
<span class="cline-any cline-no"> </span>
|
|
434
476
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -525,6 +567,9 @@
|
|
|
525
567
|
<span class="cline-any cline-neutral"> </span>
|
|
526
568
|
<span class="cline-any cline-neutral"> </span>
|
|
527
569
|
<span class="cline-any cline-no"> </span>
|
|
570
|
+
<span class="cline-any cline-neutral"> </span>
|
|
571
|
+
<span class="cline-any cline-no"> </span>
|
|
572
|
+
<span class="cline-any cline-no"> </span>
|
|
528
573
|
<span class="cline-any cline-no"> </span>
|
|
529
574
|
<span class="cline-any cline-neutral"> </span>
|
|
530
575
|
<span class="cline-any cline-no"> </span>
|
|
@@ -539,6 +584,8 @@
|
|
|
539
584
|
<span class="cline-any cline-neutral"> </span>
|
|
540
585
|
<span class="cline-any cline-neutral"> </span>
|
|
541
586
|
<span class="cline-any cline-neutral"> </span>
|
|
587
|
+
<span class="cline-any cline-neutral"> </span>
|
|
588
|
+
<span class="cline-any cline-neutral"> </span>
|
|
542
589
|
<span class="cline-any cline-no"> </span>
|
|
543
590
|
<span class="cline-any cline-no"> </span>
|
|
544
591
|
<span class="cline-any cline-no"> </span>
|
|
@@ -571,6 +618,17 @@
|
|
|
571
618
|
<span class="cline-any cline-no"> </span>
|
|
572
619
|
<span class="cline-any cline-neutral"> </span>
|
|
573
620
|
<span class="cline-any cline-neutral"> </span>
|
|
621
|
+
<span class="cline-any cline-no"> </span>
|
|
622
|
+
<span class="cline-any cline-no"> </span>
|
|
623
|
+
<span class="cline-any cline-no"> </span>
|
|
624
|
+
<span class="cline-any cline-no"> </span>
|
|
625
|
+
<span class="cline-any cline-no"> </span>
|
|
626
|
+
<span class="cline-any cline-no"> </span>
|
|
627
|
+
<span class="cline-any cline-neutral"> </span>
|
|
628
|
+
<span class="cline-any cline-no"> </span>
|
|
629
|
+
<span class="cline-any cline-neutral"> </span>
|
|
630
|
+
<span class="cline-any cline-neutral"> </span>
|
|
631
|
+
<span class="cline-any cline-neutral"> </span>
|
|
574
632
|
<span class="cline-any cline-neutral"> </span>
|
|
575
633
|
<span class="cline-any cline-no"> </span>
|
|
576
634
|
<span class="cline-any cline-no"> </span>
|
|
@@ -578,6 +636,7 @@
|
|
|
578
636
|
<span class="cline-any cline-neutral"> </span>
|
|
579
637
|
<span class="cline-any cline-neutral"> </span>
|
|
580
638
|
<span class="cline-any cline-neutral"> </span>
|
|
639
|
+
<span class="cline-any cline-neutral"> </span>
|
|
581
640
|
<span class="cline-any cline-no"> </span>
|
|
582
641
|
<span class="cline-any cline-neutral"> </span>
|
|
583
642
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -590,6 +649,7 @@
|
|
|
590
649
|
<span class="cline-any cline-neutral"> </span>
|
|
591
650
|
<span class="cline-any cline-neutral"> </span>
|
|
592
651
|
<span class="cline-any cline-neutral"> </span>
|
|
652
|
+
<span class="cline-any cline-neutral"> </span>
|
|
593
653
|
<span class="cline-any cline-no"> </span>
|
|
594
654
|
<span class="cline-any cline-neutral"> </span>
|
|
595
655
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -616,6 +676,9 @@
|
|
|
616
676
|
<span class="cline-any cline-no"> </span>
|
|
617
677
|
<span class="cline-any cline-no"> </span>
|
|
618
678
|
<span class="cline-any cline-neutral"> </span>
|
|
679
|
+
<span class="cline-any cline-neutral"> </span>
|
|
680
|
+
<span class="cline-any cline-neutral"> </span>
|
|
681
|
+
<span class="cline-any cline-no"> </span>
|
|
619
682
|
<span class="cline-any cline-no"> </span>
|
|
620
683
|
<span class="cline-any cline-no"> </span>
|
|
621
684
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -646,6 +709,8 @@
|
|
|
646
709
|
<span class="cline-any cline-neutral"> </span>
|
|
647
710
|
<span class="cline-any cline-no"> </span>
|
|
648
711
|
<span class="cline-any cline-neutral"> </span>
|
|
712
|
+
<span class="cline-any cline-no"> </span>
|
|
713
|
+
<span class="cline-any cline-neutral"> </span>
|
|
649
714
|
<span class="cline-any cline-neutral"> </span>
|
|
650
715
|
<span class="cline-any cline-neutral"> </span>
|
|
651
716
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -658,11 +723,10 @@
|
|
|
658
723
|
<span class="cline-any cline-neutral"> </span>
|
|
659
724
|
<span class="cline-any cline-neutral"> </span>
|
|
660
725
|
<span class="cline-any cline-neutral"> </span>
|
|
661
|
-
<span class="cline-any cline-neutral"> </span>
|
|
662
|
-
<span class="cline-any cline-no"> </span>
|
|
663
726
|
<span class="cline-any cline-no"> </span>
|
|
664
727
|
<span class="cline-any cline-neutral"> </span>
|
|
665
728
|
<span class="cline-any cline-neutral"> </span>
|
|
729
|
+
<span class="cline-any cline-neutral"> </span>
|
|
666
730
|
<span class="cline-any cline-no"> </span>
|
|
667
731
|
<span class="cline-any cline-neutral"> </span>
|
|
668
732
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -713,6 +777,7 @@
|
|
|
713
777
|
import PropTypes from 'prop-types';
|
|
714
778
|
import { FormattedMessage } from 'react-intl';
|
|
715
779
|
import get from 'lodash/get';
|
|
780
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
716
781
|
|
|
717
782
|
import { Field, useForm, useFormState } from 'react-final-form';
|
|
718
783
|
import { Button, Headline, IconButton, MultiColumnList, TextField } from '@folio/stripes/components';
|
|
@@ -728,12 +793,18 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
728
793
|
columnMapping: PropTypes.object,
|
|
729
794
|
creatableFields: PropTypes.object,
|
|
730
795
|
createCallback: PropTypes.func,
|
|
796
|
+
defaultNewObject: PropTypes.object,
|
|
731
797
|
editableFields: PropTypes.object,
|
|
732
798
|
fields: PropTypes.object,
|
|
733
799
|
fieldComponents: PropTypes.object,
|
|
734
800
|
formatter: PropTypes.object,
|
|
735
801
|
hideCreateButton: PropTypes.bool,
|
|
736
|
-
label: PropTypes.
|
|
802
|
+
label: PropTypes.oneOfType([
|
|
803
|
+
PropTypes.string,
|
|
804
|
+
PropTypes.node
|
|
805
|
+
]),
|
|
806
|
+
triggerFormSubmit: PropTypes.func.isRequired,
|
|
807
|
+
validateFields: PropTypes.object,
|
|
737
808
|
visibleFields: PropTypes.arrayOf(PropTypes.string)
|
|
738
809
|
};
|
|
739
810
|
|
|
@@ -743,17 +814,20 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
743
814
|
columnMapping,
|
|
744
815
|
creatableFields,
|
|
745
816
|
createCallback,
|
|
817
|
+
defaultNewObject,
|
|
746
818
|
editableFields,
|
|
747
819
|
fields,
|
|
748
820
|
fieldComponents,
|
|
749
821
|
hideCreateButton = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span>
|
|
750
822
|
label,
|
|
823
|
+
validateFields,
|
|
751
824
|
visibleFields,
|
|
825
|
+
triggerFormSubmit,
|
|
752
826
|
...mclProps // Assume anything left over is to directly apply to the MCL
|
|
753
827
|
}, ref) => {
|
|
754
828
|
// Grab finalForm functions/values from form hooks
|
|
755
829
|
const { change } = <span class="cstat-no" title="statement not covered" >useForm();</span>
|
|
756
|
-
const { initialValues, pristine, submitting, values } = <span class="cstat-no" title="statement not covered" >useFormState();</span>
|
|
830
|
+
const { hasValidationErrors, initialValues, pristine, submitting, values } = <span class="cstat-no" title="statement not covered" >useFormState();</span>
|
|
757
831
|
|
|
758
832
|
/*
|
|
759
833
|
Keep track of which field we are editing.
|
|
@@ -804,7 +878,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
804
878
|
|
|
805
879
|
const handleClickCreate = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
806
880
|
<span class="cstat-no" title="statement not covered" > toggleEditing('NEW_ROW');</span>
|
|
807
|
-
<span class="cstat-no" title="statement not covered" > fields.
|
|
881
|
+
<span class="cstat-no" title="statement not covered" > fields.unshift(defaultNewObject);</span>
|
|
808
882
|
};
|
|
809
883
|
|
|
810
884
|
// Way to go into create mode from external component, and way to tell internal editing state
|
|
@@ -844,16 +918,21 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
844
918
|
<Button
|
|
845
919
|
key={`save[${data.rowIndex}]`}
|
|
846
920
|
buttonStyle="primary"
|
|
847
|
-
disabled={submitting || pristine}
|
|
921
|
+
disabled={hasValidationErrors || submitting || pristine}
|
|
848
922
|
marginBottom0
|
|
849
923
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
850
|
-
<span class="cstat-no" title="statement not covered" >
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
<span class="cstat-no" title="statement not covered" >
|
|
924
|
+
<span class="cstat-no" title="statement not covered" > triggerFormSubmit(); </span>// This is set up as () => null in ActionList, so essentially only acts here to force validation
|
|
925
|
+
|
|
926
|
+
<span class="cstat-no" title="statement not covered" > if (!hasValidationErrors) {</span>
|
|
927
|
+
<span class="cstat-no" title="statement not covered" > if (!data.id && editing === 'NEW_ROW') {</span>
|
|
928
|
+
<span class="cstat-no" title="statement not covered" > handleCreate(data.rowIndex);</span>
|
|
929
|
+
} else {
|
|
930
|
+
<span class="cstat-no" title="statement not covered" > handleSave(data.rowIndex);</span>
|
|
931
|
+
}
|
|
932
|
+
<span class="cstat-no" title="statement not covered" > toggleEditing(data.id);</span>
|
|
854
933
|
}
|
|
855
|
-
<span class="cstat-no" title="statement not covered" > toggleEditing(data.id);</span>
|
|
856
934
|
}}
|
|
935
|
+
type="submit"
|
|
857
936
|
>
|
|
858
937
|
<FormattedMessage id="stripes-kint-components.actionList.save" />
|
|
859
938
|
</Button>
|
|
@@ -893,12 +972,24 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
893
972
|
<span class="cstat-no" title="statement not covered" > if (action.name === 'edit') {</span>
|
|
894
973
|
<span class="cstat-no" title="statement not covered" > actionFunction = <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >toggleEditing(data.id);</span></span>
|
|
895
974
|
}
|
|
975
|
+
|
|
976
|
+
let ariaLabel = <span class="cstat-no" title="statement not covered" >`action-${action.name}[${data.rowIndex}]`;</span>
|
|
977
|
+
<span class="cstat-no" title="statement not covered" > if (action?.ariaLabel) {</span>
|
|
978
|
+
<span class="cstat-no" title="statement not covered" > if (typeof action.ariaLabel === 'function') {</span>
|
|
979
|
+
<span class="cstat-no" title="statement not covered" > ariaLabel = action.ariaLabel(data);</span>
|
|
980
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof action.ariaLabel === 'string') {</span>
|
|
981
|
+
<span class="cstat-no" title="statement not covered" > ariaLabel = action.ariaLabel;</span>
|
|
982
|
+
} else {
|
|
983
|
+
<span class="cstat-no" title="statement not covered" > throw new Error(`Provided ariaLabel for action "${action.name}" must be a function or a string.`);</span>
|
|
984
|
+
}
|
|
985
|
+
}
|
|
896
986
|
|
|
897
987
|
// If we're handed an icon, use that for the action button
|
|
898
988
|
<span class="cstat-no" title="statement not covered" > if (action.icon) {</span>
|
|
899
989
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
900
990
|
<IconButton
|
|
901
991
|
key={`action-${action.name}[${data.rowIndex}]`}
|
|
992
|
+
ariaLabel={ariaLabel}
|
|
902
993
|
disabled={editing}
|
|
903
994
|
icon={action.icon}
|
|
904
995
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => (<span class="cstat-no" title="statement not covered" >actionFunction ? actionFunction() : <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null)</span></span>}
|
|
@@ -911,6 +1002,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
911
1002
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
912
1003
|
<Button
|
|
913
1004
|
key={`action-${action.name}[${data.rowIndex}]`}
|
|
1005
|
+
ariaLabel={ariaLabel}
|
|
914
1006
|
disabled={editing}
|
|
915
1007
|
marginBottom0
|
|
916
1008
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => (<span class="cstat-no" title="statement not covered" >actionFunction ? actionFunction() : <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null)</span></span>}
|
|
@@ -928,7 +1020,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
928
1020
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
929
1021
|
fields.map(<span class="fstat-no" title="function not covered" >(f</span>ieldName, fieldIndex) => {
|
|
930
1022
|
// Fetch the content from the field Values
|
|
931
|
-
const cd = <span class="cstat-no" title="statement not covered" >get(values, fieldName);</span>
|
|
1023
|
+
const cd = <span class="cstat-no" title="statement not covered" >cloneDeep(get(values, fieldName));</span>
|
|
932
1024
|
<span class="cstat-no" title="statement not covered" > cd.actionListActions = actionAssigner(cd);</span>
|
|
933
1025
|
<span class="cstat-no" title="statement not covered" > return { ...cd, fieldName, fieldIndex };</span>
|
|
934
1026
|
})
|
|
@@ -939,6 +1031,9 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
939
1031
|
const fieldAwareFormatter = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
940
1032
|
const returnObj = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
941
1033
|
// For each visible field, if it's being edited then ignore passed formatters, else use them
|
|
1034
|
+
|
|
1035
|
+
// Track whether we've autoFocused on a field yet
|
|
1036
|
+
let autoFocus = <span class="cstat-no" title="statement not covered" >true;</span>
|
|
942
1037
|
<span class="cstat-no" title="statement not covered" > visibleFields.forEach(<span class="fstat-no" title="function not covered" >ke</span>y => {</span>
|
|
943
1038
|
<span class="cstat-no" title="statement not covered" > returnObj[key] = <span class="fstat-no" title="function not covered" >cd</span> => {</span>
|
|
944
1039
|
// Row is being edited if it has no id, or its id is in the editing string
|
|
@@ -965,27 +1060,28 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
965
1060
|
*/
|
|
966
1061
|
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
967
1062
|
(!cd.id && createFunction(cd)) ||
|
|
968
|
-
(editFunction(cd))
|
|
1063
|
+
(!!cd.id && editFunction(cd))
|
|
969
1064
|
) {
|
|
1065
|
+
const validateFunction = <span class="cstat-no" title="statement not covered" >validateFields?.[key] ? validateFields?.[key](cd) : null;</span>
|
|
1066
|
+
|
|
970
1067
|
<span class="cstat-no" title="statement not covered" > returnValue =</span>
|
|
971
1068
|
fieldComponents[key] ?
|
|
972
1069
|
fieldComponents[key]({
|
|
973
1070
|
name: `${cd.fieldName}.${key}`
|
|
974
1071
|
}) :
|
|
975
1072
|
<Field
|
|
976
|
-
autoFocus={
|
|
1073
|
+
autoFocus={autoFocus}
|
|
977
1074
|
component={TextField}
|
|
978
1075
|
marginBottom0
|
|
979
1076
|
name={`${cd.fieldName}.${key}`}
|
|
980
1077
|
parse={<span class="fstat-no" title="function not covered" >v </span>=> <span class="cstat-no" title="statement not covered" >v}</span>
|
|
1078
|
+
validate={validateFunction}
|
|
981
1079
|
/>;
|
|
1080
|
+
// After first field, every other field should not autofocus
|
|
1081
|
+
<span class="cstat-no" title="statement not covered" > autoFocus = false;</span>
|
|
982
1082
|
}
|
|
983
1083
|
}
|
|
984
1084
|
|
|
985
|
-
<span class="cstat-no" title="statement not covered" > if (formatter?.[key]) {</span>
|
|
986
|
-
<span class="cstat-no" title="statement not covered" > returnValue = formatter[key](cd);</span>
|
|
987
|
-
}
|
|
988
|
-
|
|
989
1085
|
<span class="cstat-no" title="statement not covered" > return returnValue;</span>
|
|
990
1086
|
};
|
|
991
1087
|
});
|
|
@@ -1006,7 +1102,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1006
1102
|
marginBottom0
|
|
1007
1103
|
onClick={handleClickCreate}
|
|
1008
1104
|
>
|
|
1009
|
-
<FormattedMessage id="stripes-kint-components.
|
|
1105
|
+
<FormattedMessage id="stripes-kint-components.new" />
|
|
1010
1106
|
</Button>
|
|
1011
1107
|
}
|
|
1012
1108
|
</div>
|
|
@@ -1039,7 +1135,7 @@ export default ActionListFieldArray;
|
|
|
1039
1135
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1040
1136
|
Code coverage generated by
|
|
1041
1137
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1042
|
-
at
|
|
1138
|
+
at 2022-11-22T09:57:19.883Z
|
|
1043
1139
|
</div>
|
|
1044
1140
|
<script src="../prettify.js"></script>
|
|
1045
1141
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/114</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/83</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/104</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
87
|
<td data-value="9" class="abs low">0/9</td>
|
|
88
88
|
<td data-value="0" class="pct low">0%</td>
|
|
89
|
-
<td data-value="
|
|
89
|
+
<td data-value="5" class="abs low">0/5</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="5" class="abs low">0/5</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="0" class="pct low">0%</td>
|
|
102
|
-
<td data-value="
|
|
102
|
+
<td data-value="105" class="abs low">0/105</td>
|
|
103
103
|
<td data-value="0" class="pct low">0%</td>
|
|
104
|
-
<td data-value="
|
|
104
|
+
<td data-value="78" class="abs low">0/78</td>
|
|
105
105
|
<td data-value="0" class="pct low">0%</td>
|
|
106
106
|
<td data-value="28" class="abs low">0/28</td>
|
|
107
107
|
<td data-value="0" class="pct low">0%</td>
|
|
108
|
-
<td data-value="
|
|
108
|
+
<td data-value="96" class="abs low">0/96</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at
|
|
134
|
+
at 2022-11-22T09:57:19.883Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at 2022-11-22T09:57:19.883Z
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|