@k-int/stripes-kint-components 4.7.2 → 5.1.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 +14 -2
- package/README.md +1 -1
- package/es/index.js +11 -6
- package/es/lib/ActionList/ActionList.js +1 -2
- package/es/lib/ActionList/ActionListFieldArray.js +3 -4
- package/es/lib/ComboButton/ComboButton.js +1 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +2 -3
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +4 -5
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +4 -4
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +1 -2
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +4 -5
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +2 -3
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +10 -10
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -2
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +1 -2
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +2 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +4 -5
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +4 -5
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +15 -13
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +1 -2
- package/es/lib/CustomProperties/Edit/testResources.js +6 -8
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +2 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +4 -4
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +1 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +1 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +4 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +3 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +3 -4
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +33 -18
- package/es/lib/CustomProperties/Filter/testResources.js +6 -9
- package/es/lib/CustomProperties/Filter/useOperators.js +1 -2
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -2
- package/es/lib/CustomProperties/Filter/useValueProps.js +1 -2
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -2
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +9 -10
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +1 -2
- package/es/lib/CustomProperties/View/testResources.js +5 -9
- package/es/lib/CycleButton/CycleButton.js +1 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +6 -7
- package/es/lib/EditableRefdataList/EditableRefdataList.js +7 -8
- package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -2
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +1 -2
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +1 -2
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +3 -4
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +1 -2
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +7 -5
- package/es/lib/FormModal/FormModal.js +1 -2
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +1 -2
- package/es/lib/IconSelect/IconSelect.js +1 -2
- package/es/lib/NoResultsMessage/NoResultsMessage.js +1 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +1 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +1 -2
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +2 -3
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +3 -4
- package/es/lib/RichSelect/RichSelect.js +1 -2
- package/es/lib/RichSelect/useSelectedOption.js +1 -2
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +1 -2
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +2 -3
- package/es/lib/SASQRoute/SASQRoute.js +1 -2
- package/es/lib/SASQViewComponent/SASQViewComponent.js +3 -4
- package/es/lib/SearchField/SearchField.js +1 -2
- package/es/lib/SettingPage/SettingPage.js +1 -2
- package/es/lib/SettingPage/SettingPagePane.js +1 -2
- package/es/lib/SettingsFormContainer/SettingsFormContainer.js +1 -2
- package/es/lib/Typedown/Typedown.js +5 -6
- package/es/lib/constants/comparators.js +7 -0
- package/es/lib/constants/customProperties.js +11 -22
- package/es/lib/constants/endpoints.js +1 -2
- package/es/lib/constants/eventCodes.js +3 -6
- package/es/lib/contexts/SettingsContext.js +1 -2
- package/es/lib/hooks/typedownHooks/useTypedown.js +1 -2
- package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -2
- package/es/lib/hooks/useActiveElement.js +1 -2
- package/es/lib/hooks/useCustomProperties.js +1 -2
- package/es/lib/hooks/useHelperApp.js +1 -2
- package/es/lib/hooks/useIntlKey.js +1 -2
- package/es/lib/hooks/useIntlKeyStore.js +1 -2
- package/es/lib/hooks/useInvalidateRefdata.js +1 -2
- package/es/lib/hooks/useKintIntl.js +1 -2
- package/es/lib/hooks/useKiwtFieldArray.js +1 -2
- package/es/lib/hooks/useKiwtSASQuery.js +2 -5
- package/es/lib/hooks/useLocalStorageState.js +1 -2
- package/es/lib/hooks/useModConfigEntries.js +1 -2
- package/es/lib/hooks/useMutateCustomProperties.js +1 -2
- package/es/lib/hooks/useMutateModConfigEntry.js +1 -2
- package/es/lib/hooks/useMutateRefdataCategory.js +1 -2
- package/es/lib/hooks/useMutateRefdataValue.js +1 -2
- package/es/lib/hooks/useQIndex.js +1 -2
- package/es/lib/hooks/useRefdata.js +1 -2
- package/es/lib/hooks/useSASQQueryMeta.js +1 -2
- package/es/lib/hooks/useTemplates.js +1 -2
- package/es/lib/settingsHooks/useAppSettings.js +2 -3
- package/es/lib/settingsHooks/useSettingSection.js +1 -2
- package/es/lib/settingsHooks/useSettings.js +1 -2
- package/es/lib/utils/buildUrl.js +6 -10
- package/es/lib/utils/filterParsers/deparseKiwtQueryFilters.js +36 -0
- package/es/lib/utils/filterParsers/index.js +48 -0
- package/es/lib/utils/filterParsers/parseKiwtQueryFilters.js +47 -0
- package/es/lib/utils/{parseKiwtQueryGroups.js → filterParsers/parseKiwtQueryGroups.js} +4 -5
- package/es/lib/utils/filterParsers/parseKiwtQueryString.js +34 -0
- package/es/lib/utils/generateKiwtQuery.js +1 -2
- package/es/lib/utils/generateKiwtQueryParams.js +20 -18
- package/es/lib/utils/groupCustomPropertiesByCtx.js +1 -2
- package/es/lib/utils/index.js +32 -2
- package/es/lib/utils/matchString.js +1 -2
- package/es/lib/utils/modConfigEntriesQueryKey.js +1 -2
- package/es/lib/utils/parseErrorResponse.js +3 -4
- package/es/lib/utils/parseModConfigEntry.js +1 -2
- package/es/lib/utils/refdataOptions.js +2 -3
- package/es/lib/utils/refdataQueryKey.js +1 -2
- package/es/lib/utils/selectorSafe.js +5 -6
- package/es/lib/utils/sortByLabel.js +1 -2
- package/es/lib/utils/toCamelCase.js +1 -2
- package/es/lib/utils/typedownQueryKey.js +1 -2
- package/junit.xml +160 -160
- package/package.json +12 -30
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +7 -4
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionTrigger.js.html +418 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ComboButton/ComboButton.js.html +568 -0
- package/src/artifacts/coverage-jest/lcov-report/ComboButton/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/ComboButton/index.js.html +88 -0
- 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/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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +10 -10
- 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 +15 -15
- 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 +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +1 -1
- 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 +1 -1
- 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 +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 +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/SettingsActionList/EditSettingValue.js.html +514 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/RenderSettingValue.js.html +358 -0
- package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/testResources.js.html → SettingsActionList/SettingsActionList.js.html} +256 -313
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +82 -10
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +15 -15
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/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/comparators.js.html +121 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.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 +16 -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/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 +1 -1
- 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 +2 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.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/useMutateModConfigEntry.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 +65 -35
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +6 -18
- package/src/artifacts/coverage-jest/lcov-report/utils/{renderHelpText.js.html → filterParsers/deparseKiwtQueryFilters.js.html} +62 -47
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/index.html +176 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/index.js.html +124 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryFilters.js.html +211 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryGroups.js.html +367 -0
- package/src/artifacts/coverage-jest/lcov-report/{hooks/useAvailableCustomProperties.js.html → utils/filterParsers/parseKiwtQueryString.js.html} +56 -77
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +13 -7
- 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 +13 -28
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +24 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +1 -1
- 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/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-report/validators/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov.info +471 -272
- package/src/index.js +1 -2
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +1 -1
- package/src/lib/CustomProperties/Config/CustomPropertyForm.test.js +1 -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.test.js +2 -3
- package/src/lib/CustomProperties/Edit/CustomPropertyField.test.js +15 -6
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +1 -1
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +2 -5
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +1 -1
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +27 -12
- package/src/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -1
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -1
- package/src/lib/EditableSettingsList/SettingField/SettingField.test.js +4 -5
- package/src/lib/constants/comparators.js +12 -0
- package/src/lib/hooks/useKiwtSASQuery.js +1 -1
- package/src/lib/utils/buildUrl.js +1 -5
- package/src/lib/utils/filterParsers/deparseKiwtQueryFilters.js +32 -0
- package/src/lib/utils/filterParsers/index.js +13 -0
- package/src/lib/utils/filterParsers/parseKiwtQueryFilters.js +42 -0
- package/src/lib/utils/{parseKiwtQueryGroups.js → filterParsers/parseKiwtQueryGroups.js} +3 -1
- package/src/lib/utils/filterParsers/parseKiwtQueryString.js +33 -0
- package/src/lib/utils/generateKiwtQueryParams.js +6 -4
- package/src/lib/utils/index.js +8 -1
- package/test/jest/helpers/renderWithKintHarness.js +1 -1
- /package/es/lib/utils/{parseKiwtQueryGroups.test.js → filterParsers/parseKiwtQueryGroups.test.js} +0 -0
- /package/src/lib/utils/{parseKiwtQueryGroups.test.js → filterParsers/parseKiwtQueryGroups.test.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
##
|
|
2
|
-
*
|
|
1
|
+
## 5.1.0 2023-09-26
|
|
2
|
+
* KIWT filter parsers
|
|
3
|
+
* parseKiwtQueryFilters - will parse grouped KIWT query strings into structured array
|
|
4
|
+
* parseKiwtQueryFiltersRecursive - will do the same as the above, after it has already run through parseKiwtQueryGroups
|
|
5
|
+
* deparseKiwtQueryFilters - will take an array of the shape created by parseKiwtQueryFilters and return it to string form
|
|
6
|
+
* deparseKiwtQueryFiltersObject - will take a singular object of the shape specified by the array created in parseKiwtQueryFilters, and will return a string for that singular object.
|
|
7
|
+
* generateKiwtQueryParams - some null safety
|
|
8
|
+
* buildUrl - small refactor
|
|
9
|
+
* dependency bumps
|
|
10
|
+
* test tweaks
|
|
3
11
|
|
|
12
|
+
## 5.0.0 2023-08-07
|
|
13
|
+
* Fixed rogue CSS from ComboButton
|
|
14
|
+
* Removed typo deprecated export customPropertyContants
|
|
15
|
+
* Bumped dependencies to bring in line with react18 version of stripes
|
|
4
16
|
## 4.7.0 2023-06-06
|
|
5
17
|
* Added success callout to SettingsFormContainer
|
|
6
18
|
* Bumped @rehooks/local-storage dep to ^2.4.4
|
package/README.md
CHANGED
|
@@ -43,4 +43,4 @@ Release major | Latest release | Flower releases present in (ERM) | Flower compa
|
|
|
43
43
|
v1 | 1.7.0 | Lotus | Kiwi - Morning Glory |
|
|
44
44
|
v2 | 2.8.6 | Morning Glory | Kiwi - Morning Glory |
|
|
45
45
|
v3 | 3.2.3 | Nolana | Morning Glory - Nolana |
|
|
46
|
-
v4 | 4.7.
|
|
46
|
+
v4 | 4.7.0 | Orchid | Morning Glory - Orchid+ |
|
package/es/index.js
CHANGED
|
@@ -38,9 +38,9 @@ var _exportNames = {
|
|
|
38
38
|
CustomPropertiesFilterFieldArray: true,
|
|
39
39
|
useOperators: true,
|
|
40
40
|
useParseActiveFilterStrings: true,
|
|
41
|
-
customPropertyContants: true,
|
|
42
41
|
customPropertyConstants: true,
|
|
43
42
|
endpoints: true,
|
|
43
|
+
comparators: true,
|
|
44
44
|
CycleButton: true,
|
|
45
45
|
IconSelect: true,
|
|
46
46
|
RichSelect: true,
|
|
@@ -284,7 +284,13 @@ Object.defineProperty(exports, "Typedown", {
|
|
|
284
284
|
return _Typedown.default;
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
|
-
|
|
287
|
+
Object.defineProperty(exports, "comparators", {
|
|
288
|
+
enumerable: true,
|
|
289
|
+
get: function () {
|
|
290
|
+
return _comparators.default;
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
exports.endpoints = exports.customPropertyConstants = void 0;
|
|
288
294
|
Object.defineProperty(exports, "useOperators", {
|
|
289
295
|
enumerable: true,
|
|
290
296
|
get: function () {
|
|
@@ -366,12 +372,11 @@ var _NoResultsMessage = _interopRequireDefault(require("./lib/NoResultsMessage")
|
|
|
366
372
|
var _RefdataButtons = _interopRequireDefault(require("./lib/RefdataButtons"));
|
|
367
373
|
var _FormModal = _interopRequireDefault(require("./lib/FormModal"));
|
|
368
374
|
var _CustomProperties = require("./lib/CustomProperties");
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
exports.customPropertyContants = _customPropertyContants;
|
|
372
|
-
exports.customPropertyConstants = _customPropertyContants;
|
|
375
|
+
var _customPropertyConstants = _interopRequireWildcard(require("./lib/constants/customProperties"));
|
|
376
|
+
exports.customPropertyConstants = _customPropertyConstants;
|
|
373
377
|
var _endpoints = _interopRequireWildcard(require("./lib/constants/endpoints"));
|
|
374
378
|
exports.endpoints = _endpoints;
|
|
379
|
+
var _comparators = _interopRequireDefault(require("./lib/constants/comparators"));
|
|
375
380
|
var _CycleButton = _interopRequireDefault(require("./lib/CycleButton"));
|
|
376
381
|
var _IconSelect = _interopRequireDefault(require("./lib/IconSelect"));
|
|
377
382
|
var _RichSelect = _interopRequireWildcard(require("./lib/RichSelect"));
|
|
@@ -117,7 +117,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
const handleSave = index => {
|
|
120
|
-
var _actionAssigner
|
|
120
|
+
var _actionAssigner;
|
|
121
121
|
const {
|
|
122
122
|
actionListActions: _a,
|
|
123
123
|
fieldName: _fn,
|
|
@@ -126,7 +126,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
126
126
|
} = fields.value[index];
|
|
127
127
|
|
|
128
128
|
// Find "edit" entry in actionAssigner
|
|
129
|
-
const editCallback = (_actionAssigner = actionAssigner(rowData)) === null || _actionAssigner === void 0
|
|
129
|
+
const editCallback = (_actionAssigner = actionAssigner(rowData)) === null || _actionAssigner === void 0 || (_actionAssigner = _actionAssigner.find(act => act.name === 'edit')) === null || _actionAssigner === void 0 ? void 0 : _actionAssigner.callback;
|
|
130
130
|
if (editCallback) {
|
|
131
131
|
editCallback(rowData);
|
|
132
132
|
}
|
|
@@ -421,5 +421,4 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
421
421
|
});
|
|
422
422
|
});
|
|
423
423
|
ActionListFieldArray.propTypes = propTypes;
|
|
424
|
-
var _default = ActionListFieldArray;
|
|
425
|
-
exports.default = _default;
|
|
424
|
+
var _default = exports.default = ActionListFieldArray;
|
|
@@ -151,7 +151,7 @@ const CustomPropertiesLookup = _ref => {
|
|
|
151
151
|
}),
|
|
152
152
|
category: data => {
|
|
153
153
|
var _data$category;
|
|
154
|
-
return data === null || data === void 0
|
|
154
|
+
return data === null || data === void 0 || (_data$category = data.category) === null || _data$category === void 0 ? void 0 : _data$category.desc;
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
onRowClick: onSelectCustomProperty,
|
|
@@ -174,5 +174,4 @@ CustomPropertiesLookup.propTypes = {
|
|
|
174
174
|
queryParams: _propTypes.default.object,
|
|
175
175
|
refdataEndpoint: _propTypes.default.string
|
|
176
176
|
};
|
|
177
|
-
var _default = CustomPropertiesLookup;
|
|
178
|
-
exports.default = _default;
|
|
177
|
+
var _default = exports.default = CustomPropertiesLookup;
|
|
@@ -127,10 +127,10 @@ const CustomPropertiesSettings = _ref => {
|
|
|
127
127
|
id: customProperty === null || customProperty === void 0 ? void 0 : customProperty.id
|
|
128
128
|
});
|
|
129
129
|
const handeContextSubmit = submitData => {
|
|
130
|
-
var _submitData$ctx$0$val, _submitData$ctx
|
|
130
|
+
var _submitData$ctx$0$val, _submitData$ctx;
|
|
131
131
|
return {
|
|
132
132
|
...submitData,
|
|
133
|
-
ctx: (_submitData$ctx$0$val = submitData === null || submitData === void 0
|
|
133
|
+
ctx: (_submitData$ctx$0$val = submitData === null || submitData === void 0 || (_submitData$ctx = submitData.ctx) === null || _submitData$ctx === void 0 || (_submitData$ctx = _submitData$ctx[0]) === null || _submitData$ctx === void 0 ? void 0 : _submitData$ctx.value) !== null && _submitData$ctx$0$val !== void 0 ? _submitData$ctx$0$val : ''
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
136
|
|
|
@@ -240,7 +240,7 @@ const CustomPropertiesSettings = _ref => {
|
|
|
240
240
|
value: customProperty.ctx,
|
|
241
241
|
label: customProperty.ctx
|
|
242
242
|
}] : null,
|
|
243
|
-
category: customProperty !== null && customProperty !== void 0 && customProperty.category ? customProperty === null || customProperty === void 0
|
|
243
|
+
category: customProperty !== null && customProperty !== void 0 && customProperty.category ? customProperty === null || customProperty === void 0 || (_customProperty$categ = customProperty.category) === null || _customProperty$categ === void 0 ? void 0 : _customProperty$categ.id : null
|
|
244
244
|
},
|
|
245
245
|
modalProps: {
|
|
246
246
|
dismissible: true,
|
|
@@ -314,5 +314,4 @@ CustomPropertiesSettings.propTypes = {
|
|
|
314
314
|
labelOverrides: _propTypes.default.object,
|
|
315
315
|
refdataEndpoint: _propTypes.default.string
|
|
316
316
|
};
|
|
317
|
-
var _default = CustomPropertiesSettings;
|
|
318
|
-
exports.default = _default;
|
|
317
|
+
var _default = exports.default = CustomPropertiesSettings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
var
|
|
4
|
+
var _stripesErmTesting = require("@folio/stripes-erm-testing");
|
|
5
5
|
var _reactRouterDom = require("react-router-dom");
|
|
6
6
|
var _CustomPropertiesSettings = _interopRequireDefault(require("./CustomPropertiesSettings"));
|
|
7
7
|
var _jest = require("../../../../test/jest");
|
|
@@ -44,15 +44,15 @@ describe('CustomPropertiesSettings', () => {
|
|
|
44
44
|
expect(getByText('CustomPropertiesLookup')).toBeInTheDocument();
|
|
45
45
|
});
|
|
46
46
|
it('renders the expected New button', async () => {
|
|
47
|
-
await (0,
|
|
47
|
+
await (0, _stripesErmTesting.Button)('New').exists();
|
|
48
48
|
});
|
|
49
49
|
it('renders the expected Pane ', async () => {
|
|
50
|
-
await (0,
|
|
50
|
+
await (0, _stripesErmTesting.Pane)('Custom properties').is({
|
|
51
51
|
visible: true
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
it('renders the expected Pane header', async () => {
|
|
55
|
-
await (0,
|
|
55
|
+
await (0, _stripesErmTesting.PaneHeader)('Custom properties').is({
|
|
56
56
|
visible: true
|
|
57
57
|
});
|
|
58
58
|
});
|
|
@@ -370,5 +370,4 @@ CustomPropertyForm.propTypes = {
|
|
|
370
370
|
labelOverrides: _propTypes.default.object,
|
|
371
371
|
refdata: _propTypes.default.arrayOf(_propTypes.default.object)
|
|
372
372
|
};
|
|
373
|
-
var _default = CustomPropertyForm;
|
|
374
|
-
exports.default = _default;
|
|
373
|
+
var _default = exports.default = CustomPropertyForm;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
var _stripesTesting = require("@folio/stripes-testing");
|
|
5
4
|
var _stripesErmTesting = require("@folio/stripes-erm-testing");
|
|
6
5
|
var _refdata = _interopRequireDefault(require("../../../../test/jest/refdata"));
|
|
7
6
|
var _CustomPropertyForm = _interopRequireDefault(require("./CustomPropertyForm"));
|
|
@@ -96,24 +95,24 @@ describe('CustomPropertyForm', () => {
|
|
|
96
95
|
expect(getByText('Type')).toBeInTheDocument();
|
|
97
96
|
});
|
|
98
97
|
test('Displays expected description value', async () => {
|
|
99
|
-
await (0,
|
|
98
|
+
await (0, _stripesErmTesting.TextArea)({
|
|
100
99
|
id: 'custom-prop-description'
|
|
101
100
|
}).has({
|
|
102
101
|
value: 'Test description'
|
|
103
102
|
});
|
|
104
103
|
});
|
|
105
104
|
test('renders the Name TextField', async () => {
|
|
106
|
-
await (0,
|
|
105
|
+
await (0, _stripesErmTesting.TextField)({
|
|
107
106
|
id: 'custom-prop-name'
|
|
108
107
|
}).exists();
|
|
109
108
|
});
|
|
110
109
|
test('renders the Lable TextField', async () => {
|
|
111
|
-
await (0,
|
|
110
|
+
await (0, _stripesErmTesting.TextField)({
|
|
112
111
|
id: 'custom-prop-label'
|
|
113
112
|
}).exists();
|
|
114
113
|
});
|
|
115
114
|
test('renders the order weight TextField', async () => {
|
|
116
|
-
await (0,
|
|
115
|
+
await (0, _stripesErmTesting.TextField)({
|
|
117
116
|
id: 'custom-prop-weight'
|
|
118
117
|
}).exists();
|
|
119
118
|
});
|
|
@@ -145,7 +145,7 @@ const CustomPropertyView = _ref => {
|
|
|
145
145
|
id: 'customProperties.category',
|
|
146
146
|
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.category
|
|
147
147
|
}),
|
|
148
|
-
value: (_customProperty$categ = customProperty === null || customProperty === void 0
|
|
148
|
+
value: (_customProperty$categ = customProperty === null || customProperty === void 0 || (_customProperty$categ2 = customProperty.category) === null || _customProperty$categ2 === void 0 ? void 0 : _customProperty$categ2.desc) !== null && _customProperty$categ !== void 0 ? _customProperty$categ : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoValue, {})
|
|
149
149
|
})
|
|
150
150
|
})]
|
|
151
151
|
})]
|
|
@@ -172,5 +172,4 @@ CustomPropertyView.propTypes = {
|
|
|
172
172
|
intlNS: _propTypes.default.string,
|
|
173
173
|
labelOverrides: _propTypes.default.object
|
|
174
174
|
};
|
|
175
|
-
var _default = CustomPropertyView;
|
|
176
|
-
exports.default = _default;
|
|
175
|
+
var _default = exports.default = CustomPropertyView;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
4
|
var _reactRouterDom = require("react-router-dom");
|
|
5
|
-
var
|
|
5
|
+
var _stripesErmTesting = require("@folio/stripes-erm-testing");
|
|
6
6
|
var _CustomPropertyView = _interopRequireDefault(require("./CustomPropertyView"));
|
|
7
7
|
var _customProperties = _interopRequireDefault(require("../../../../test/jest/customProperties"));
|
|
8
8
|
var _jest = require("../../../../test/jest");
|
|
@@ -18,47 +18,47 @@ describe('CustomPropertyView', () => {
|
|
|
18
18
|
}));
|
|
19
19
|
});
|
|
20
20
|
test('displays expected label value', async () => {
|
|
21
|
-
await (0,
|
|
21
|
+
await (0, _stripesErmTesting.KeyValue)('Label').has({
|
|
22
22
|
value: 'Does this agreement support publishing'
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
test('displays expected name value', async () => {
|
|
26
|
-
await (0,
|
|
26
|
+
await (0, _stripesErmTesting.KeyValue)('Name').has({
|
|
27
27
|
value: 'Eligible authors'
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
test('displays expected Description value', async () => {
|
|
31
|
-
await (0,
|
|
31
|
+
await (0, _stripesErmTesting.KeyValue)('Description').has({
|
|
32
32
|
value: 'Does this agreement support publishing'
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
test('displays expected Primary value', async () => {
|
|
36
|
-
await (0,
|
|
36
|
+
await (0, _stripesErmTesting.KeyValue)('Primary').has({
|
|
37
37
|
value: 'Yes'
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
test('displays expected Retired value', async () => {
|
|
41
|
-
await (0,
|
|
41
|
+
await (0, _stripesErmTesting.KeyValue)('Retired').has({
|
|
42
42
|
value: 'No'
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
test('displays expected Weight value', async () => {
|
|
46
|
-
await (0,
|
|
46
|
+
await (0, _stripesErmTesting.KeyValue)('Order weight').has({
|
|
47
47
|
value: '0'
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
test('displays expected Default visibility value', async () => {
|
|
51
|
-
await (0,
|
|
51
|
+
await (0, _stripesErmTesting.KeyValue)('Default visibility').has({
|
|
52
52
|
value: 'Internal'
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
test('displays expected Context value', async () => {
|
|
56
|
-
await (0,
|
|
56
|
+
await (0, _stripesErmTesting.KeyValue)('Context').has({
|
|
57
57
|
value: 'OpenAccess'
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
test('displays expected Type value', async () => {
|
|
61
|
-
await (0,
|
|
61
|
+
await (0, _stripesErmTesting.KeyValue)('Type').has({
|
|
62
62
|
value: 'Text'
|
|
63
63
|
});
|
|
64
64
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
var _react2 = require("@testing-library/react");
|
|
4
|
+
var _react2 = require("@folio/jest-config-stripes/testing-library/react");
|
|
5
5
|
var _reactRouterDom = require("react-router-dom");
|
|
6
6
|
var _CustomPropertiesEdit = _interopRequireDefault(require("./CustomPropertiesEdit"));
|
|
7
7
|
var _jest = require("../../../../test/jest");
|
|
@@ -87,5 +87,4 @@ CustomPropertiesEditCtx.propTypes = {
|
|
|
87
87
|
labelOverrides: _propTypes.default.object,
|
|
88
88
|
nameOverride: _propTypes.default.string
|
|
89
89
|
};
|
|
90
|
-
var _default = CustomPropertiesEditCtx;
|
|
91
|
-
exports.default = _default;
|
|
90
|
+
var _default = exports.default = CustomPropertiesEditCtx;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
var _react2 = require("@testing-library/react");
|
|
4
|
+
var _react2 = require("@folio/jest-config-stripes/testing-library/react");
|
|
5
5
|
var _reactRouterDom = require("react-router-dom");
|
|
6
6
|
var _CustomPropertiesEditCtx = _interopRequireDefault(require("./CustomPropertiesEditCtx"));
|
|
7
7
|
var _jest = require("../../../../test/jest");
|
|
@@ -145,7 +145,7 @@ const CustomPropertiesListField = _ref2 => {
|
|
|
145
145
|
// Map customProperties to bring together the options and the definition values
|
|
146
146
|
const availableCustomProperties = customProperties === null || customProperties === void 0 ? void 0 : customProperties.map(customProperty => {
|
|
147
147
|
var _customProperty$categ;
|
|
148
|
-
let options = customProperty === null || customProperty === void 0
|
|
148
|
+
let options = customProperty === null || customProperty === void 0 || (_customProperty$categ = customProperty.category) === null || _customProperty$categ === void 0 ? void 0 : _customProperty$categ.values;
|
|
149
149
|
if (options) {
|
|
150
150
|
options = [{
|
|
151
151
|
label: kintIntl.formatKintMessage({
|
|
@@ -231,5 +231,4 @@ CustomPropertiesList.propTypes = {
|
|
|
231
231
|
labelOverrides: _propTypes.default.object,
|
|
232
232
|
meta: _propTypes.default.object
|
|
233
233
|
};
|
|
234
|
-
var _default = CustomPropertiesListField;
|
|
235
|
-
exports.default = _default;
|
|
234
|
+
var _default = exports.default = CustomPropertiesListField;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
var _stripesTesting = require("@folio/stripes-testing");
|
|
5
4
|
var _stripesErmTesting = require("@folio/stripes-erm-testing");
|
|
6
|
-
var _react2 = require("@testing-library/react");
|
|
5
|
+
var _react2 = require("@folio/jest-config-stripes/testing-library/react");
|
|
7
6
|
var _testResources = require("./testResources");
|
|
8
7
|
var _CustomPropertiesListField = _interopRequireDefault(require("./CustomPropertiesListField"));
|
|
9
8
|
var _jest = require("../../../../test/jest");
|
|
@@ -28,10 +27,10 @@ describe('CustomPropertiesListField', () => {
|
|
|
28
27
|
}));
|
|
29
28
|
});
|
|
30
29
|
test('displays expected primary properties key value', async () => {
|
|
31
|
-
await (0,
|
|
30
|
+
await (0, _stripesErmTesting.KeyValue)('Primary properties').exists();
|
|
32
31
|
});
|
|
33
32
|
test('displays expected optional properties key value', async () => {
|
|
34
|
-
await (0,
|
|
33
|
+
await (0, _stripesErmTesting.KeyValue)('Optional properties').exists();
|
|
35
34
|
});
|
|
36
35
|
it('renders CustomPropertyFormCard component ', () => {
|
|
37
36
|
const {
|
|
@@ -46,6 +45,6 @@ describe('CustomPropertiesListField', () => {
|
|
|
46
45
|
(0, _react2.waitFor)(() => expect(getAllByText('CustomPropertiesList')).toBeInTheDocument());
|
|
47
46
|
});
|
|
48
47
|
test('renders the Add property button', async () => {
|
|
49
|
-
await (0,
|
|
48
|
+
await (0, _stripesErmTesting.Button)('Add property').exists();
|
|
50
49
|
});
|
|
51
50
|
});
|
|
@@ -32,12 +32,12 @@ const CustomPropertyField = _ref => {
|
|
|
32
32
|
|
|
33
33
|
// Set up the validator for the customProperty
|
|
34
34
|
const customPropertyValidator = (fieldValue, allValues) => {
|
|
35
|
-
var _allValues$customProp, _allValues$customProp2
|
|
35
|
+
var _allValues$customProp, _allValues$customProp2;
|
|
36
36
|
const {
|
|
37
37
|
note,
|
|
38
38
|
publicNote,
|
|
39
39
|
value: currentValue
|
|
40
|
-
} = (_allValues$customProp = allValues === null || allValues === void 0
|
|
40
|
+
} = (_allValues$customProp = allValues === null || allValues === void 0 || (_allValues$customProp2 = allValues.customProperties) === null || _allValues$customProp2 === void 0 || (_allValues$customProp2 = _allValues$customProp2[customProperty === null || customProperty === void 0 ? void 0 : customProperty.value]) === null || _allValues$customProp2 === void 0 ? void 0 : _allValues$customProp2[0]) !== null && _allValues$customProp !== void 0 ? _allValues$customProp : {};
|
|
41
41
|
if (note && !currentValue || publicNote && !currentValue) {
|
|
42
42
|
if (customProperty.type === CUSTOM_PROPERTY_TYPES.DECIMAL_CLASS_NAME || customProperty.type === CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME) {
|
|
43
43
|
return kintIntl.formatKintMessage({
|
|
@@ -95,7 +95,7 @@ const CustomPropertyField = _ref => {
|
|
|
95
95
|
return false;
|
|
96
96
|
});
|
|
97
97
|
const customPropertyValue = value[customProperty.value];
|
|
98
|
-
const id = customPropertyValue === null || customPropertyValue === void 0
|
|
98
|
+
const id = customPropertyValue === null || customPropertyValue === void 0 || (_customPropertyValue$ = customPropertyValue[0]) === null || _customPropertyValue$ === void 0 ? void 0 : _customPropertyValue$.id;
|
|
99
99
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
|
|
100
100
|
autoFocus: !id,
|
|
101
101
|
dataOptions: [customProperty, ...unsetCustomProperties] // The selected customProperty, and the available unset customProperties
|
|
@@ -363,5 +363,4 @@ CustomPropertyField.propTypes = {
|
|
|
363
363
|
setCustomProperties: _propTypes.default.func,
|
|
364
364
|
value: _propTypes.default.object
|
|
365
365
|
};
|
|
366
|
-
var _default = CustomPropertyField;
|
|
367
|
-
exports.default = _default;
|
|
366
|
+
var _default = exports.default = CustomPropertyField;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _react =
|
|
4
|
-
var _stripesTesting = require("@folio/stripes-testing");
|
|
3
|
+
var _react = require("@folio/jest-config-stripes/testing-library/react");
|
|
5
4
|
var _stripesErmTesting = require("@folio/stripes-erm-testing");
|
|
6
5
|
var _CustomPropertyField = _interopRequireDefault(require("./CustomPropertyField"));
|
|
7
6
|
var _jest = require("../../../../test/jest");
|
|
@@ -52,7 +51,7 @@ describe('CustomPropertyField', () => {
|
|
|
52
51
|
expect(getByText('Value(s)')).toBeInTheDocument();
|
|
53
52
|
});
|
|
54
53
|
test('Displays expected Value(s) dropdown values ', () => {
|
|
55
|
-
(0,
|
|
54
|
+
(0, _stripesErmTesting.MultiSelect)('Value(s)').select(['Not set', 'ORCID', 'Ringgold ID', 'Email Domain', 'Over IP Range', 'FOR ID', 'Other', 'Over Institute']);
|
|
56
55
|
});
|
|
57
56
|
it('Displays expected Internal note label ', () => {
|
|
58
57
|
const {
|
|
@@ -61,12 +60,13 @@ describe('CustomPropertyField', () => {
|
|
|
61
60
|
expect(getByText('Internal note')).toBeInTheDocument();
|
|
62
61
|
});
|
|
63
62
|
test('Displays expected internal note value', async () => {
|
|
64
|
-
await (0,
|
|
63
|
+
await (0, _stripesErmTesting.TextArea)('Internal note').has({
|
|
65
64
|
value: 'this is an internal note'
|
|
66
65
|
});
|
|
67
66
|
});
|
|
68
|
-
test('Displays expected visibilities
|
|
69
|
-
(0,
|
|
67
|
+
test('Displays expected visibilities dropdown values ', async () => {
|
|
68
|
+
await (0, _stripesErmTesting.Select)('Visibility').choose('Internal');
|
|
69
|
+
await (0, _stripesErmTesting.Select)('Visibility').choose('Public');
|
|
70
70
|
});
|
|
71
71
|
it('Displays expected Public note label ', () => {
|
|
72
72
|
const {
|
|
@@ -75,7 +75,7 @@ describe('CustomPropertyField', () => {
|
|
|
75
75
|
expect(getByText('Public note')).toBeInTheDocument();
|
|
76
76
|
});
|
|
77
77
|
test('Displays expected public note value', async () => {
|
|
78
|
-
await (0,
|
|
78
|
+
await (0, _stripesErmTesting.TextArea)('Public note').has({
|
|
79
79
|
value: 'this is a public note'
|
|
80
80
|
});
|
|
81
81
|
});
|
|
@@ -93,7 +93,7 @@ describe('CustomPropertyField', () => {
|
|
|
93
93
|
}));
|
|
94
94
|
});
|
|
95
95
|
test('Displays expected Decimal field', async () => {
|
|
96
|
-
await (0,
|
|
96
|
+
await (0, _stripesErmTesting.TextInput)({
|
|
97
97
|
id: 'edit-customproperty-2-value'
|
|
98
98
|
}).exists();
|
|
99
99
|
});
|
|
@@ -111,7 +111,7 @@ describe('CustomPropertyField', () => {
|
|
|
111
111
|
}));
|
|
112
112
|
});
|
|
113
113
|
test('Displays expected integer Field', async () => {
|
|
114
|
-
await (0,
|
|
114
|
+
await (0, _stripesErmTesting.TextInput)({
|
|
115
115
|
id: 'edit-customproperty-3-value'
|
|
116
116
|
}).has({
|
|
117
117
|
value: '1'
|
|
@@ -131,7 +131,7 @@ describe('CustomPropertyField', () => {
|
|
|
131
131
|
}));
|
|
132
132
|
});
|
|
133
133
|
test('Displays expected multi-select Refdata Field', async () => {
|
|
134
|
-
await (0,
|
|
134
|
+
await (0, _stripesErmTesting.MultiSelect)('Value(s)').exists();
|
|
135
135
|
});
|
|
136
136
|
it('Displays expected value(s) label ', () => {
|
|
137
137
|
const {
|
|
@@ -140,7 +140,9 @@ describe('CustomPropertyField', () => {
|
|
|
140
140
|
expect(getByText('Value(s)')).toBeInTheDocument();
|
|
141
141
|
});
|
|
142
142
|
test('renders multi-select Refdata values', async () => {
|
|
143
|
-
await (0,
|
|
143
|
+
await (0, _react.waitFor)(async () => {
|
|
144
|
+
await (0, _stripesErmTesting.MultiSelect)('Value(s)').select(['Future', 'Current', 'Historical', 'Does not apply']);
|
|
145
|
+
});
|
|
144
146
|
});
|
|
145
147
|
});
|
|
146
148
|
describe('Date field', () => {
|
|
@@ -156,10 +158,10 @@ describe('CustomPropertyField', () => {
|
|
|
156
158
|
}));
|
|
157
159
|
});
|
|
158
160
|
test('renders values DatePicker', async () => {
|
|
159
|
-
await (0,
|
|
161
|
+
await (0, _stripesErmTesting.Datepicker)('Value(s)').exists();
|
|
160
162
|
});
|
|
161
163
|
test('Displays expected date Field', async () => {
|
|
162
|
-
await (0,
|
|
164
|
+
await (0, _stripesErmTesting.TextInput)({
|
|
163
165
|
id: 'edit-customproperty-5-value'
|
|
164
166
|
}).exists();
|
|
165
167
|
});
|
|
@@ -111,5 +111,4 @@ CustomPropertyFormCard.propTypes = {
|
|
|
111
111
|
setCustomProperties: _propTypes.default.func,
|
|
112
112
|
value: _propTypes.default.object
|
|
113
113
|
};
|
|
114
|
-
var _default = CustomPropertyFormCard;
|
|
115
|
-
exports.default = _default;
|
|
114
|
+
var _default = exports.default = CustomPropertyFormCard;
|
|
@@ -8,19 +8,19 @@ var _jest = require("../../../../test/jest");
|
|
|
8
8
|
var _agreementStatusRefda, _agreementStatusRefda2, _licenseAmendmentStat;
|
|
9
9
|
const agreementStatusRefdata = _jest.refdata === null || _jest.refdata === void 0 ? void 0 : _jest.refdata.find(rdc => rdc.desc === 'SubscriptionAgreement.AgreementStatus');
|
|
10
10
|
const licenseAmendmentStatusRefdata = _jest.refdata === null || _jest.refdata === void 0 ? void 0 : _jest.refdata.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status');
|
|
11
|
-
const value = {
|
|
11
|
+
const value = exports.value = {
|
|
12
12
|
AuthorIdentification: [{
|
|
13
13
|
id: 2,
|
|
14
14
|
internal: true,
|
|
15
15
|
publicNote: 'this is a public note',
|
|
16
16
|
note: 'this is an internal note',
|
|
17
|
-
value: agreementStatusRefdata === null || agreementStatusRefdata === void 0
|
|
17
|
+
value: agreementStatusRefdata === null || agreementStatusRefdata === void 0 || (_agreementStatusRefda = agreementStatusRefdata.values) === null || _agreementStatusRefda === void 0 ? void 0 : _agreementStatusRefda.find(rdv => rdv.value === 'active'),
|
|
18
18
|
type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'AuthorIdentification')
|
|
19
19
|
}],
|
|
20
20
|
Test: [{
|
|
21
21
|
id: 4,
|
|
22
22
|
internal: true,
|
|
23
|
-
value: agreementStatusRefdata === null || agreementStatusRefdata === void 0
|
|
23
|
+
value: agreementStatusRefdata === null || agreementStatusRefdata === void 0 || (_agreementStatusRefda2 = agreementStatusRefdata.values) === null || _agreementStatusRefda2 === void 0 ? void 0 : _agreementStatusRefda2.find(rdv => rdv.value === 'active'),
|
|
24
24
|
type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'Test')
|
|
25
25
|
}],
|
|
26
26
|
decimal: [{
|
|
@@ -52,12 +52,10 @@ const value = {
|
|
|
52
52
|
publicNote: 'refdata',
|
|
53
53
|
note: 'refdata',
|
|
54
54
|
internal: true,
|
|
55
|
-
value: licenseAmendmentStatusRefdata === null || licenseAmendmentStatusRefdata === void 0
|
|
55
|
+
value: licenseAmendmentStatusRefdata === null || licenseAmendmentStatusRefdata === void 0 || (_licenseAmendmentStat = licenseAmendmentStatusRefdata.values) === null || _licenseAmendmentStat === void 0 ? void 0 : _licenseAmendmentStat.find(rdv => rdv.value === 'current'),
|
|
56
56
|
type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'Refdata')
|
|
57
57
|
}]
|
|
58
58
|
};
|
|
59
|
-
exports.
|
|
60
|
-
const initialValues = {
|
|
59
|
+
const initialValues = exports.initialValues = {
|
|
61
60
|
customProperties: value
|
|
62
|
-
};
|
|
63
|
-
exports.initialValues = initialValues;
|
|
61
|
+
};
|
|
@@ -76,7 +76,7 @@ const CustomPropertiesFilter = _ref => {
|
|
|
76
76
|
} = values;
|
|
77
77
|
const filterStrings = filters.filter(filter => filter.rules).map(filter => {
|
|
78
78
|
var _custprops$filter$, _custprops$filter;
|
|
79
|
-
const relevantCustomProperty = (_custprops$filter$ = custprops === null || custprops === void 0
|
|
79
|
+
const relevantCustomProperty = (_custprops$filter$ = custprops === null || custprops === void 0 || (_custprops$filter = custprops.filter(cp => cp.name === filter.customProperty)) === null || _custprops$filter === void 0 ? void 0 : _custprops$filter[0]) !== null && _custprops$filter$ !== void 0 ? _custprops$filter$ : {};
|
|
80
80
|
const filterByValueId = (relevantCustomProperty === null || relevantCustomProperty === void 0 ? void 0 : relevantCustomProperty.type) === _customProperties.MULTI_REFDATA_CLASS_NAME || (relevantCustomProperty === null || relevantCustomProperty === void 0 ? void 0 : relevantCustomProperty.type) === _customProperties.REFDATA_CLASS_NAME;
|
|
81
81
|
return filter.rules.map(rule => {
|
|
82
82
|
var _rule$value;
|
|
@@ -133,5 +133,4 @@ CustomPropertiesFilter.propTypes = {
|
|
|
133
133
|
intlNS: _propTypes.default.string,
|
|
134
134
|
labelOverrides: _propTypes.default.object
|
|
135
135
|
};
|
|
136
|
-
var _default = CustomPropertiesFilter;
|
|
137
|
-
exports.default = _default;
|
|
136
|
+
var _default = exports.default = CustomPropertiesFilter;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
4
|
var _reactRouterDom = require("react-router-dom");
|
|
5
|
-
var
|
|
5
|
+
var _stripesErmTesting = require("@folio/stripes-erm-testing");
|
|
6
6
|
var _testResources = require("./testResources");
|
|
7
7
|
var _CustomPropertiesFilter = _interopRequireDefault(require("./CustomPropertiesFilter"));
|
|
8
8
|
var _helpers = _interopRequireDefault(require("../../../../test/helpers"));
|
|
@@ -25,15 +25,15 @@ describe('CustomPropertiesFilter', () => {
|
|
|
25
25
|
}), {}, _helpers.default);
|
|
26
26
|
});
|
|
27
27
|
test('renders the Custom properties Accordion by id', async () => {
|
|
28
|
-
await (0,
|
|
28
|
+
await (0, _stripesErmTesting.Accordion)({
|
|
29
29
|
id: 'clickable-custprop-filter'
|
|
30
30
|
}).exists();
|
|
31
31
|
});
|
|
32
32
|
test('renders the Custom properties Accordion', async () => {
|
|
33
|
-
await (0,
|
|
33
|
+
await (0, _stripesErmTesting.Accordion)('Custom properties').exists();
|
|
34
34
|
});
|
|
35
35
|
test('renders the edit custom property filters button', async () => {
|
|
36
|
-
await (0,
|
|
36
|
+
await (0, _stripesErmTesting.Button)({
|
|
37
37
|
id: 'accordion-toggle-button-clickable-custprop-filter'
|
|
38
38
|
}).exists();
|
|
39
39
|
});
|
|
@@ -158,5 +158,4 @@ CustomPropertiesFilterField.propTypes = {
|
|
|
158
158
|
labelOverrides: _propTypes.default.object,
|
|
159
159
|
name: _propTypes.default.string
|
|
160
160
|
};
|
|
161
|
-
var _default = CustomPropertiesFilterField;
|
|
162
|
-
exports.default = _default;
|
|
161
|
+
var _default = exports.default = CustomPropertiesFilterField;
|