@k-int/stripes-kint-components 4.1.0 → 4.3.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 +27 -1
- package/es/__mocks__/@folio/stripes/components.js +26 -0
- package/es/__mocks__/@folio/stripes/core.js +10 -0
- package/es/__mocks__/@folio/stripes/smart-components.js +10 -0
- package/es/__mocks__/currency-codes/data.js +6 -0
- package/es/__mocks__/react-query.js +10 -0
- package/es/__mocks__/react-router-dom.js +10 -0
- package/es/__mocks__/stripes-config.js +4 -0
- package/es/index.js +72 -108
- package/es/lib/ActionList/ActionList.js +7 -2
- package/es/lib/ActionList/ActionListFieldArray.js +28 -17
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +0 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +6 -4
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +1 -2
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +7 -6
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -2
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +0 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +0 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +5 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +3 -4
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +3 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +11 -10
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +0 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +5 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +1 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +5 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +2 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +3 -4
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +4 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +5 -4
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +4 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +3 -4
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +0 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -2
- package/es/lib/CycleButton/CycleButton.js +5 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +6 -4
- package/es/lib/EditableRefdataList/EditableRefdataList.js +19 -8
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +4 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +6 -7
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +10 -11
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -2
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +4 -2
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +4 -5
- package/es/lib/FormModal/FormModal.js +4 -1
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +4 -1
- package/es/lib/IconSelect/IconSelect.js +4 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +4 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +4 -1
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +25 -11
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +1 -1
- package/es/lib/RichSelect/RichSelect.js +5 -2
- package/es/lib/RichSelect/useSelectedOption.js +1 -1
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +34 -18
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +4 -1
- package/es/lib/SASQRoute/SASQRoute.js +4 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +4 -1
- package/es/lib/SearchField/SearchField.js +4 -1
- package/es/lib/Typedown/Typedown.js +1 -1
- package/es/lib/hooks/settingsHooks/useSettings.js +4 -1
- package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -1
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -1
- package/es/lib/hooks/useActiveElement.js +1 -1
- package/es/lib/hooks/useCustomProperties.js +4 -1
- package/es/lib/hooks/useHelperApp.js +4 -2
- package/es/lib/hooks/useIntlKeyStore.js +6 -7
- package/es/lib/hooks/useKintIntl.js +4 -1
- package/es/lib/hooks/useKiwtFieldArray.js +5 -2
- package/es/lib/hooks/useKiwtSASQuery.js +4 -2
- package/es/lib/hooks/useLocalStorageState.js +1 -1
- package/es/lib/hooks/useMutateCustomProperties.js +1 -1
- package/es/lib/hooks/useMutateRefdataCategory.js +4 -2
- package/es/lib/hooks/useMutateRefdataValue.js +1 -1
- package/es/lib/hooks/useQIndex.js +4 -2
- package/es/lib/utils/generateKiwtQueryParams.js +71 -37
- package/es/lib/utils/groupCustomPropertiesByCtx.js +4 -1
- package/es/lib/utils/highlightString.js +1 -1
- package/es/lib/utils/index.js +7 -0
- package/es/lib/utils/parseErrorResponse.js +23 -19
- package/es/lib/utils/parseKiwtQueryGroups.js +66 -0
- package/jest.config.js +1 -1
- package/junit.xml +146 -146
- package/package.json +4 -4
- package/src/__mocks__/@folio/stripes/components.js +11 -0
- package/src/__mocks__/@folio/stripes/core.js +6 -0
- package/src/__mocks__/@folio/stripes/smart-components.js +6 -0
- package/src/__mocks__/currency-codes/data.js +4 -0
- package/src/__mocks__/react-query.js +6 -0
- package/src/__mocks__/react-router-dom.js +7 -0
- package/src/__mocks__/stripes-config.js +3 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +49 -7
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +793 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +6 -9
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +10 -10
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +28 -22
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +48 -12
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +103 -25
- 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 +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/index.html +35 -35
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +8 -8
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +196 -46
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +44 -29
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +8 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +11 -8
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +280 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov.info +562 -425
- package/src/index.js +2 -25
- package/src/lib/ActionList/ActionList.js +2 -0
- package/src/lib/ActionList/ActionListFieldArray.js +29 -10
- package/src/lib/ActionList/README.md +2 -2
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +1 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +1 -1
- package/src/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
- package/src/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
- package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +1 -1
- package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +1 -1
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +0 -1
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +2 -2
- package/src/lib/CustomProperties/Edit/CustomPropertyField.test.js +2 -2
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +1 -1
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +1 -1
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +2 -2
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +2 -2
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +1 -1
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +2 -2
- package/src/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -1
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -1
- package/src/lib/EditableRefdataList/EditableRefdataList.js +16 -3
- package/src/lib/EditableRefdataList/README.md +1 -0
- package/src/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +2 -2
- package/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +2 -2
- package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -1
- package/src/lib/EditableSettingsList/SettingField/SettingField.test.js +2 -2
- package/src/lib/ResponsiveButtonGroup/README.md +1 -0
- package/src/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +17 -5
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +44 -18
- package/src/lib/hooks/useIntlKeyStore.js +1 -1
- package/src/lib/utils/generateKiwtQueryParams.js +74 -38
- package/src/lib/utils/index.js +2 -0
- package/src/lib/utils/parseErrorResponse.js +3 -2
- package/src/lib/utils/parseKiwtQueryGroups.js +65 -0
- package/styles/ResponsiveButtonGroup.css +12 -1
- package/styles/TypeDown.css +37 -2
- package/test/helpers/translationsProperties.js +3 -34
- package/test/jest/helpers/KintHarness.js +1 -1
- package/yarn-error.log +0 -147
|
@@ -1,3 +1,54 @@
|
|
|
1
|
+
const conditionalEncodeURIComponent = (str, encode = true) => {
|
|
2
|
+
if (encode) {
|
|
3
|
+
return encodeURIComponent(str);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
return str;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const buildFilterOptionBlock = (opf, isNested = false, encode = true) => {
|
|
10
|
+
if (opf?.groupValues) {
|
|
11
|
+
const groupValues = opf.groupValues;
|
|
12
|
+
|
|
13
|
+
// Small utility function to add negation and brackets to the options block where necessary
|
|
14
|
+
const negationAndNesting = (str) => `${groupValues?.NOT ? '!' : ''}${(isNested || groupValues?.NOT) ? '(' : ''}${str}${(isNested || groupValues?.NOT) ? ')' : ''}`;
|
|
15
|
+
|
|
16
|
+
// First check whether groupValues is ANDed or ORed together
|
|
17
|
+
if (
|
|
18
|
+
(groupValues?.AND && Array.isArray(groupValues.AND)) ||
|
|
19
|
+
(groupValues?.OR && Array.isArray(groupValues.OR))
|
|
20
|
+
) {
|
|
21
|
+
// AND takes precedence
|
|
22
|
+
if (groupValues.AND) {
|
|
23
|
+
return negationAndNesting(groupValues?.AND?.map(gvo => buildFilterOptionBlock(gvo, true, encode))?.join('&&'));
|
|
24
|
+
}
|
|
25
|
+
return negationAndNesting(groupValues?.OR?.map(gvo => buildFilterOptionBlock(gvo, true, encode))?.join('||'));
|
|
26
|
+
}
|
|
27
|
+
// If neither valid OR nor AND exist, ignore the block
|
|
28
|
+
} else if (opf?.values) {
|
|
29
|
+
// Build the values filter block
|
|
30
|
+
const innerFilters = [];
|
|
31
|
+
opf.values.forEach(opfv => {
|
|
32
|
+
if (opf.path) {
|
|
33
|
+
innerFilters.push(`${opf.path}${opf.comparator ?? '=='}${opfv}`);
|
|
34
|
+
} else {
|
|
35
|
+
innerFilters.push(opfv);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
return conditionalEncodeURIComponent(innerFilters.join('||'), encode);
|
|
40
|
+
} else if (opf?.value) { // If no value OR values, then ignore
|
|
41
|
+
if (opf.path) {
|
|
42
|
+
const filterString = `${opf.path}${opf.comparator ?? '=='}${opf.value}`;
|
|
43
|
+
return conditionalEncodeURIComponent(filterString, encode);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return conditionalEncodeURIComponent(opf.value, encode);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
|
|
1
52
|
const generateKiwtQueryParams = (options, nsValues, encode = true) => {
|
|
2
53
|
const { qindex, query, filters, sort } = nsValues;
|
|
3
54
|
const {
|
|
@@ -18,7 +69,13 @@ const generateKiwtQueryParams = (options, nsValues, encode = true) => {
|
|
|
18
69
|
path: 'this.is.some.path'
|
|
19
70
|
comparator: '=='
|
|
20
71
|
value: 'this is a value' //OR
|
|
21
|
-
values: ['value1', 'value2']
|
|
72
|
+
values: ['value1', 'value2'] //OR
|
|
73
|
+
groupValues: { // This is an object containing objects either in groups of AND or OR. AND takes precedence
|
|
74
|
+
AND: [
|
|
75
|
+
// Objects of the same shape as an individual filters object, recursively.
|
|
76
|
+
],
|
|
77
|
+
NOT: true // When this is set to true, the entire group is negated
|
|
78
|
+
}
|
|
22
79
|
},
|
|
23
80
|
...
|
|
24
81
|
]
|
|
@@ -27,49 +84,28 @@ const generateKiwtQueryParams = (options, nsValues, encode = true) => {
|
|
|
27
84
|
* If no comparator is passed, it assumes '=='
|
|
28
85
|
* Values overwrites value and will construct "filters=this.is.some.path==value1||this.is.some.path==value2"
|
|
29
86
|
* Values WITHOUT path will construct "filters=value1||value2"
|
|
87
|
+
*
|
|
88
|
+
* GroupValues will override everything above, and group into brackets.
|
|
89
|
+
*
|
|
30
90
|
* If more complex query building is desired, this should be done externally and passed in as a standalone 'value'
|
|
31
91
|
*/
|
|
32
92
|
filters: optionsFilters,
|
|
33
93
|
...rest
|
|
34
94
|
} = options;
|
|
35
95
|
|
|
36
|
-
const conditionalEncodeURIComponent = (str) => {
|
|
37
|
-
if (encode) {
|
|
38
|
-
return encodeURIComponent(str);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return str;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
96
|
const paramsArray = [];
|
|
46
97
|
|
|
47
98
|
if (query) {
|
|
48
|
-
paramsArray.push(...(qindex || searchKey).split(',')?.map(m => `match=${conditionalEncodeURIComponent(m)}`));
|
|
49
|
-
paramsArray.push(`term=${conditionalEncodeURIComponent(query)}`);
|
|
99
|
+
paramsArray.push(...(qindex || searchKey).split(',')?.map(m => `match=${conditionalEncodeURIComponent(m, encode)}`));
|
|
100
|
+
paramsArray.push(`term=${conditionalEncodeURIComponent(query, encode)}`);
|
|
50
101
|
}
|
|
51
102
|
|
|
103
|
+
// Actually build the optionsFilters block (Moved logic to its own function to allow recursion)
|
|
52
104
|
if (optionsFilters) {
|
|
53
105
|
optionsFilters.forEach(opf => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
opf.values.forEach(opfv => {
|
|
58
|
-
if (opf.path) {
|
|
59
|
-
innerFilters.push(`${opf.path}${opf.comparator ?? '=='}${opfv}`);
|
|
60
|
-
} else {
|
|
61
|
-
innerFilters.push(opfv);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
paramsArray.push(`filters=${conditionalEncodeURIComponent(innerFilters.join('||'))}`);
|
|
66
|
-
} else if (opf?.value) { // If no value OR values, then ignore
|
|
67
|
-
if (opf.path) {
|
|
68
|
-
const filterString = `${opf.path}${opf.comparator ?? '=='}${opf.value}`;
|
|
69
|
-
paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString)}`);
|
|
70
|
-
} else {
|
|
71
|
-
paramsArray.push(`filters=${conditionalEncodeURIComponent(opf.value)}`);
|
|
72
|
-
}
|
|
106
|
+
const optionsBlock = buildFilterOptionBlock(opf, false, encode);
|
|
107
|
+
if (optionsBlock) {
|
|
108
|
+
paramsArray.push(`filters=${optionsBlock}`);
|
|
73
109
|
}
|
|
74
110
|
});
|
|
75
111
|
}
|
|
@@ -95,13 +131,13 @@ const generateKiwtQueryParams = (options, nsValues, encode = true) => {
|
|
|
95
131
|
return `${filterName}==${fceValue ?? v}`;
|
|
96
132
|
}).join('||');
|
|
97
133
|
|
|
98
|
-
paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString)}`);
|
|
134
|
+
paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString, encode)}`);
|
|
99
135
|
} else if (!filterKey) {
|
|
100
136
|
// These filters have no key mapping so we just pass the values to the backend as-is.
|
|
101
|
-
paramsArray.push(...filterValues?.map(f => `filters=${conditionalEncodeURIComponent(f)}`));
|
|
137
|
+
paramsArray.push(...filterValues?.map(f => `filters=${conditionalEncodeURIComponent(f, encode)}`));
|
|
102
138
|
} else {
|
|
103
139
|
const filterString = filterValues.map(v => `${filterKey}==${v}`).join('||');
|
|
104
|
-
paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString)}`);
|
|
140
|
+
paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString, encode)}`);
|
|
105
141
|
}
|
|
106
142
|
});
|
|
107
143
|
}
|
|
@@ -109,10 +145,10 @@ const generateKiwtQueryParams = (options, nsValues, encode = true) => {
|
|
|
109
145
|
if (optionsSort && optionsSort.length > 0) {
|
|
110
146
|
optionsSort.forEach(os => {
|
|
111
147
|
if (os.value) {
|
|
112
|
-
paramsArray.push(`sort=${conditionalEncodeURIComponent(os.value)}`);
|
|
148
|
+
paramsArray.push(`sort=${conditionalEncodeURIComponent(os.value, encode)}`);
|
|
113
149
|
} else if (os.path) { // If no path then ignore
|
|
114
150
|
const sortString = `${os.path};${os.direction ?? 'asc'}`;
|
|
115
|
-
paramsArray.push(`sort=${conditionalEncodeURIComponent(sortString)}`);
|
|
151
|
+
paramsArray.push(`sort=${conditionalEncodeURIComponent(sortString, encode)}`);
|
|
116
152
|
}
|
|
117
153
|
});
|
|
118
154
|
}
|
|
@@ -128,7 +164,7 @@ const generateKiwtQueryParams = (options, nsValues, encode = true) => {
|
|
|
128
164
|
|
|
129
165
|
const sortString = `${term};${descending ? 'desc' : 'asc'}`;
|
|
130
166
|
|
|
131
|
-
return `sort=${conditionalEncodeURIComponent(sortString)}`;
|
|
167
|
+
return `sort=${conditionalEncodeURIComponent(sortString, encode)}`;
|
|
132
168
|
}));
|
|
133
169
|
}
|
|
134
170
|
|
|
@@ -137,7 +173,7 @@ const generateKiwtQueryParams = (options, nsValues, encode = true) => {
|
|
|
137
173
|
}
|
|
138
174
|
|
|
139
175
|
for (const [key, value] of Object.entries(rest)) {
|
|
140
|
-
paramsArray.push(`${key}=${conditionalEncodeURIComponent(value)}`);
|
|
176
|
+
paramsArray.push(`${key}=${conditionalEncodeURIComponent(value, encode)}`);
|
|
141
177
|
}
|
|
142
178
|
|
|
143
179
|
return paramsArray;
|
package/src/lib/utils/index.js
CHANGED
|
@@ -19,6 +19,8 @@ export { default as toCamelCase } from './toCamelCase'; // I hate that this exis
|
|
|
19
19
|
export { default as matchString } from './matchString';
|
|
20
20
|
export { boldString, highlightString } from './highlightString';
|
|
21
21
|
|
|
22
|
+
export { default as parseKiwtQueryGroups } from './parseKiwtQueryGroups';
|
|
23
|
+
|
|
22
24
|
// HTTP Utils
|
|
23
25
|
export { default as parseErrorResponse } from './parseErrorResponse';
|
|
24
26
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
const parseErrorResponse = async (responseObj) => {
|
|
2
2
|
let errorResp;
|
|
3
|
+
const code = responseObj?.status;
|
|
3
4
|
const contentType = [...responseObj?.headers]?.find(header => header[0] === 'content-type')?.[1];
|
|
4
5
|
|
|
5
6
|
if (contentType.includes('json')) {
|
|
6
7
|
errorResp = await responseObj.json();
|
|
7
8
|
} else {
|
|
8
9
|
try {
|
|
9
|
-
errorResp = { message: await responseObj.text() };
|
|
10
|
+
errorResp = { code, message: await responseObj.text() };
|
|
10
11
|
} catch {
|
|
11
|
-
errorResp = { message: 'something went wrong' };
|
|
12
|
+
errorResp = { code, message: 'something went wrong' };
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const parseKiwtQueryGroups = (query) => {
|
|
2
|
+
// Split out all operators and brackets, but keeping them all intact in the correct potition.
|
|
3
|
+
const splitString = query.split(/(?<=\|\||&&|\(|\))|(?=\|\||&&|\(|\))/);
|
|
4
|
+
// Keep track of what to skip over when wereturn from each level of nesting
|
|
5
|
+
let skipCount = [0];
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// Ensure brackets are properly closed
|
|
9
|
+
let unclosedBrackets = 0;
|
|
10
|
+
const groupParser = (parseArray, nestLevel = 0) => {
|
|
11
|
+
const group = [];
|
|
12
|
+
// Iterate over each element in the array, recursively calling this when hitting brackets
|
|
13
|
+
parseArray?.every((element, index) => {
|
|
14
|
+
if (skipCount[nestLevel] > 0) {
|
|
15
|
+
skipCount[nestLevel] -= 1;
|
|
16
|
+
return true; // Equivalent to BREAK -- move onto next element
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Deal with unexpected extra closure
|
|
20
|
+
if (nestLevel === 0 && element === ')') {
|
|
21
|
+
throw new Error('Unexpected character \')\' found, stopping parse.');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// At the levels below all of the following will need
|
|
25
|
+
skipCount = skipCount?.map((n, i) => {
|
|
26
|
+
if (i < nestLevel) {
|
|
27
|
+
return n + 1;
|
|
28
|
+
}
|
|
29
|
+
return n;
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
if (element !== '(' && element !== ')') {
|
|
33
|
+
group?.push(element);
|
|
34
|
+
} else if (element === ')') {
|
|
35
|
+
// Remove the corresponding skipCount level because we're going down a nesting level
|
|
36
|
+
skipCount.pop();
|
|
37
|
+
unclosedBrackets -= 1;
|
|
38
|
+
|
|
39
|
+
return false; // Equivalent to BREAK -- go up a nesting level
|
|
40
|
+
} else if (element === '(') {
|
|
41
|
+
// Add next index to skipcount for the nesting
|
|
42
|
+
skipCount.push(0);
|
|
43
|
+
unclosedBrackets += 1;
|
|
44
|
+
|
|
45
|
+
group.push(groupParser(parseArray.slice(index + 1, parseArray?.length), nestLevel + 1));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// If all is well, continue on parsing
|
|
49
|
+
return true;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return group;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const outputGroups = groupParser(splitString);
|
|
56
|
+
|
|
57
|
+
// Deal with unclosed parentheses
|
|
58
|
+
if (unclosedBrackets > 0) {
|
|
59
|
+
throw new Error('Found unclosed paretheses, stopping parse.');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return outputGroups;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export default parseKiwtQueryGroups;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
@import '@folio/stripes-components/lib/variables.css';
|
|
2
2
|
|
|
3
|
+
.width100 {
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.marginBottom {
|
|
8
|
+
margin-bottom: var(--gutter);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.marginBottom0 {
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
3
15
|
.buttonGroup {
|
|
4
16
|
display: inline-flex;
|
|
5
17
|
justify-content: space-between;
|
|
@@ -66,7 +78,6 @@
|
|
|
66
78
|
.dropdownButtonClass {
|
|
67
79
|
border-top-left-radius: 0;
|
|
68
80
|
border-bottom-left-radius: 0;
|
|
69
|
-
width: 100%;
|
|
70
81
|
}
|
|
71
82
|
|
|
72
83
|
.dropdownButtonClass::before {
|
package/styles/TypeDown.css
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
padding: 0;
|
|
18
18
|
float: left;
|
|
19
19
|
right: 0;
|
|
20
|
-
border-radius: 0 0 var(--radius) var(--radius);
|
|
21
20
|
box-shadow: var(--shadow);
|
|
22
21
|
border: 1px solid #ccc;
|
|
23
22
|
margin-top: 0;
|
|
@@ -27,11 +26,46 @@
|
|
|
27
26
|
z-index: 1000;
|
|
28
27
|
}
|
|
29
28
|
|
|
29
|
+
/* Ensure dropdown menu has correct border radius when rendered above/below/floating */
|
|
30
|
+
div[class^="overlay"][x-placement="top"]:not([x-out-of-boundaries=""]) > div[class^="dropdownMenu"] {
|
|
31
|
+
border-radius: var(--radius) var(--radius) 0 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
div[class^="overlay"][x-placement="bottom"]:not([x-out-of-boundaries=""]) > div[class^="dropdownMenu"] {
|
|
35
|
+
border-radius: 0 0 var(--radius) var(--radius);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
div[class^="overlay"][x-out-of-boundaries=""] > div[class^="dropdownMenu"] {
|
|
39
|
+
border-radius: var(--radius);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Ensure buttons also follow the proper border radius */
|
|
43
|
+
div[class^="overlay"][x-placement="top"]:not([x-out-of-boundaries=""]) > div[class^="dropdownMenu"] > div[class^=listContainer] > button:first-child:before {
|
|
44
|
+
border-radius: var(--radius) var(--radius) 0 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
div[class^="overlay"][x-placement="bottom"]:not([x-out-of-boundaries=""]) > div[class^="dropdownMenu"] > div[class^=listContainer] > button:last-child:before {
|
|
48
|
+
border-radius: 0 0 var(--radius) var(--radius);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* When floating, last and first buttons need rounding */
|
|
52
|
+
div[class^="overlay"][x-out-of-boundaries=""] > div[class^="dropdownMenu"] > div[class^=listContainer] > button:first-child:before {
|
|
53
|
+
border-radius: var(--radius) var(--radius) 0 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div[class^="overlay"][x-out-of-boundaries=""] > div[class^="dropdownMenu"] > div[class^=listContainer] > button:last-child:before {
|
|
57
|
+
border-radius: 0 0 var(--radius) var(--radius);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* If there is only one element in a floating list, it needs both corners rounding */
|
|
61
|
+
div[class^="overlay"][x-out-of-boundaries=""] > div[class^="dropdownMenu"] > div[class^=listContainer] > button:only-child:before {
|
|
62
|
+
border-radius: var(--radius);
|
|
63
|
+
}
|
|
64
|
+
|
|
30
65
|
.menuButton {
|
|
31
66
|
composes: interactionStyles from "@folio/stripes-components/lib/sharedStyles/interactionStyles.css";
|
|
32
67
|
margin-bottom: 0;
|
|
33
68
|
border: none;
|
|
34
|
-
border-radius: 0;
|
|
35
69
|
text-align: left;
|
|
36
70
|
}
|
|
37
71
|
|
|
@@ -48,6 +82,7 @@
|
|
|
48
82
|
background-color: var(--color-fill-table-row-even);
|
|
49
83
|
}
|
|
50
84
|
|
|
85
|
+
/* Default menu button style is no rounded edges */
|
|
51
86
|
.menuButton::before {
|
|
52
87
|
border-radius: 0;
|
|
53
88
|
}
|
|
@@ -1,40 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { translationsProperties as coreTranslations } from '@folio/stripes-erm-testing';
|
|
2
|
+
|
|
2
3
|
import testTranslations from './test-implementor-translations';
|
|
3
4
|
|
|
4
5
|
const translationsProperties = [
|
|
5
|
-
|
|
6
|
-
prefix: 'stripes-kint-components',
|
|
7
|
-
translations,
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
prefix: 'stripes-core',
|
|
11
|
-
translations: {
|
|
12
|
-
'label.missingRequiredField': 'Please fill this in to continue',
|
|
13
|
-
'button.save': 'Save',
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
prefix: 'stripes-components',
|
|
18
|
-
translations: {
|
|
19
|
-
'saveAndClose': 'Save and close',
|
|
20
|
-
'cancel': 'Cancel',
|
|
21
|
-
'paneMenuActionsToggleLabel': 'Actions',
|
|
22
|
-
'collapseAll': 'Collapse all',
|
|
23
|
-
'button.edit': 'Edit'
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
prefix: 'stripes-smart-components',
|
|
28
|
-
translations: {
|
|
29
|
-
'permissionError': 'Sorry - your permissions do not allow access to this page.',
|
|
30
|
-
'searchAndFilter': 'Search and filter',
|
|
31
|
-
'hideSearchPane': 'Hide search pane',
|
|
32
|
-
'search': 'Search',
|
|
33
|
-
'resetAll': 'Reset all',
|
|
34
|
-
'searchResultsCountHeader': '"{count, number} {count, plural, one {record found} other {records found}}"',
|
|
35
|
-
'new': 'New'
|
|
36
|
-
},
|
|
37
|
-
},
|
|
6
|
+
...coreTranslations,
|
|
38
7
|
{
|
|
39
8
|
// Extra translations to allow us to properly test the translation pattern as if we had an implementing module
|
|
40
9
|
prefix: 'ui-test-implementor',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { Harness } from '@folio/stripes-erm-
|
|
3
|
+
import { Harness } from '@folio/stripes-erm-testing';
|
|
4
4
|
|
|
5
5
|
import { SettingsContext } from '../../../src/lib/contexts';
|
|
6
6
|
import translationsProperties from '../../helpers';
|
package/yarn-error.log
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
Arguments:
|
|
2
|
-
/home/ethan/.nvm/versions/node/v16.17.0/bin/node /usr/share/yarn/bin/yarn.js install --ignore-scripts
|
|
3
|
-
|
|
4
|
-
PATH:
|
|
5
|
-
/home/ethan/.rd/bin:/home/ethan/.nvm/versions/node/v16.17.0/bin:/home/ethan/.sdkman/candidates/java/current/bin:/home/ethan/.sdkman/candidates/groovy/current/bin:/home/ethan/.sdkman/candidates/grails/current/bin:/home/ethan/.sdkman/candidates/gradle/current/bin:/home/ethan/.rd/bin:/home/ethan/.yarn/bin:/home/ethan/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
|
|
6
|
-
|
|
7
|
-
Yarn version:
|
|
8
|
-
1.22.19
|
|
9
|
-
|
|
10
|
-
Node version:
|
|
11
|
-
16.17.0
|
|
12
|
-
|
|
13
|
-
Platform:
|
|
14
|
-
linux x64
|
|
15
|
-
|
|
16
|
-
Trace:
|
|
17
|
-
Error: https://repository.folio.org/repository/npm-folio/@folio%2fstripes-erm-testing: Package '@folio/stripes-erm-testing' not found
|
|
18
|
-
at Request.params.callback [as _callback] (/usr/share/yarn/lib/cli.js:66145:18)
|
|
19
|
-
at Request.self.callback (/usr/share/yarn/lib/cli.js:140890:22)
|
|
20
|
-
at Request.emit (node:events:513:28)
|
|
21
|
-
at Request.<anonymous> (/usr/share/yarn/lib/cli.js:141862:10)
|
|
22
|
-
at Request.emit (node:events:513:28)
|
|
23
|
-
at IncomingMessage.<anonymous> (/usr/share/yarn/lib/cli.js:141784:12)
|
|
24
|
-
at Object.onceWrapper (node:events:627:28)
|
|
25
|
-
at IncomingMessage.emit (node:events:525:35)
|
|
26
|
-
at endReadableNT (node:internal/streams/readable:1358:12)
|
|
27
|
-
at processTicksAndRejections (node:internal/process/task_queues:83:21)
|
|
28
|
-
|
|
29
|
-
npm manifest:
|
|
30
|
-
{
|
|
31
|
-
"name": "@k-int/stripes-kint-components",
|
|
32
|
-
"version": "3.1.0",
|
|
33
|
-
"description": "Stripes Component library for K-Int specific applications",
|
|
34
|
-
"sideEffects": [
|
|
35
|
-
"*.css"
|
|
36
|
-
],
|
|
37
|
-
"license": "Apache-2.0",
|
|
38
|
-
"engines": {
|
|
39
|
-
"node": ">=10.0.0"
|
|
40
|
-
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"lint": "eslint src",
|
|
43
|
-
"test": "yarn run test:jest",
|
|
44
|
-
"test:jest": "jest --ci --coverage",
|
|
45
|
-
"build:es": "rm -rf ./es && babel --extensions .js --ignore ./src/**/tests/**/* ./src --out-dir es",
|
|
46
|
-
"build": "yarn build:es",
|
|
47
|
-
"clean": "rm -rf ./node_modules ./*/node_modules ./yarn.lock && yarn install",
|
|
48
|
-
"clean-build": "yarn clean && yarn build",
|
|
49
|
-
"prepare": "yarn build"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"@rehooks/local-storage": "2.4.0",
|
|
53
|
-
"compose-function": "^3.0.3",
|
|
54
|
-
"react-resize-detector": "^7.1.2",
|
|
55
|
-
"zustand": "^4.0.0"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@babel/cli": "^7.18.10",
|
|
59
|
-
"@babel/core": "^7.18.6",
|
|
60
|
-
"@babel/eslint-parser": "^7.15.0",
|
|
61
|
-
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
62
|
-
"@babel/plugin-proposal-decorators": "^7.12.1",
|
|
63
|
-
"@babel/plugin-proposal-function-sent": "^7.18.6",
|
|
64
|
-
"@babel/plugin-proposal-throw-expressions": "^7.18.6",
|
|
65
|
-
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
66
|
-
"@babel/plugin-transform-runtime": "^7.12.1",
|
|
67
|
-
"@babel/preset-env": "^7.18.9",
|
|
68
|
-
"@babel/preset-flow": "^7.18.6",
|
|
69
|
-
"@babel/preset-react": "^7.18.6",
|
|
70
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
71
|
-
"@folio/eslint-config-stripes": "^6.1.0",
|
|
72
|
-
"@folio/stripes": "^7.2.0",
|
|
73
|
-
"@folio/stripes-cli": "^2.6.0",
|
|
74
|
-
"@folio/stripes-erm-testing": "^1.0.0",
|
|
75
|
-
"@folio/stripes-testing": "^4.2.0",
|
|
76
|
-
"@formatjs/cli": "^4.2.31",
|
|
77
|
-
"@interactors/html": "^1.0.0-rc1.2",
|
|
78
|
-
"@testing-library/dom": "^8.16.0",
|
|
79
|
-
"@testing-library/jest-dom": "^5.16.4",
|
|
80
|
-
"@testing-library/react": "^12.1.5",
|
|
81
|
-
"@testing-library/user-event": "^14.3.0",
|
|
82
|
-
"babel-eslint": "^10.1.0",
|
|
83
|
-
"babel-jest": "^28.1.3",
|
|
84
|
-
"babel-plugin-const-enum": "^1.0.1",
|
|
85
|
-
"babel-plugin-module-resolver": "^4.0.0",
|
|
86
|
-
"babel-plugin-require-context-hook": "^1.0.0",
|
|
87
|
-
"babel-plugin-transform-async-to-promises": "^0.8.15",
|
|
88
|
-
"babel-polyfill": "^6.26.0",
|
|
89
|
-
"classnames": ">=2.2.6",
|
|
90
|
-
"core-js": "^3.6.1",
|
|
91
|
-
"eslint": "^7.32.0",
|
|
92
|
-
"eslint-plugin-import": "^2.26.0",
|
|
93
|
-
"eslint-plugin-jest": "^26.6.0",
|
|
94
|
-
"eslint-plugin-jest-dom": "^4.0.2",
|
|
95
|
-
"eslint-plugin-testing-library": "^5.5.1",
|
|
96
|
-
"graphql": "^16.0.0",
|
|
97
|
-
"identity-obj-proxy": "^3.0.0",
|
|
98
|
-
"jest": "^28.1.0",
|
|
99
|
-
"jest-css-modules": "^2.1.0",
|
|
100
|
-
"jest-css-modules-transform": "^4.0.0",
|
|
101
|
-
"jest-environment-jsdom": "^28.1.2",
|
|
102
|
-
"jest-junit": "^13.2.0",
|
|
103
|
-
"jest-webpack": "^0.5.1",
|
|
104
|
-
"moment": "^2.29.4",
|
|
105
|
-
"prop-types-extra": ">=1.1.0",
|
|
106
|
-
"react": "^17.0.2",
|
|
107
|
-
"react-dom": "^17.0.2",
|
|
108
|
-
"react-intl": "^5.8.1",
|
|
109
|
-
"react-query": "^3.6.0",
|
|
110
|
-
"react-redux": "^7.0.0",
|
|
111
|
-
"react-router": "^5.2.0",
|
|
112
|
-
"react-router-dom": "^5.2.0",
|
|
113
|
-
"redux": "^4.0.0",
|
|
114
|
-
"redux-observable": "^1.2.0",
|
|
115
|
-
"regenerator-runtime": "^0.13.3",
|
|
116
|
-
"rxjs": "^6.6.3",
|
|
117
|
-
"sinon": "^14.0.0",
|
|
118
|
-
"typescript": "^2.8.0"
|
|
119
|
-
},
|
|
120
|
-
"peerDependencies": {
|
|
121
|
-
"@folio/stripes": ">=7.0.3",
|
|
122
|
-
"final-form": ">=4.18.4",
|
|
123
|
-
"final-form-arrays": ">=3.0.1",
|
|
124
|
-
"lodash": ">=4.17.0",
|
|
125
|
-
"prop-types": ">=15.6.0",
|
|
126
|
-
"query-string": ">=6.6.0",
|
|
127
|
-
"react": "*",
|
|
128
|
-
"react-final-form": ">=6.3.0",
|
|
129
|
-
"react-final-form-arrays": ">=3.1.0",
|
|
130
|
-
"react-intl": ">=5.8.1",
|
|
131
|
-
"react-query": ">=3.9.0",
|
|
132
|
-
"react-router-dom": ">=5.2.0"
|
|
133
|
-
},
|
|
134
|
-
"main": "src/index.js",
|
|
135
|
-
"module": "es/index.js",
|
|
136
|
-
"repository": {
|
|
137
|
-
"type": "git",
|
|
138
|
-
"url": "git@gitlab.com:knowledge-integration/folio/stripes-kint-components.git"
|
|
139
|
-
},
|
|
140
|
-
"author": "knowledgeintegration"
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
yarn manifest:
|
|
144
|
-
No manifest
|
|
145
|
-
|
|
146
|
-
Lockfile:
|
|
147
|
-
No lockfile
|