@k-int/stripes-kint-components 5.29.1 → 5.30.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 +7 -0
- package/es/__mocks__/@folio/stripes/components.js +3 -7
- package/es/__mocks__/@folio/stripes/core.js +4 -6
- package/es/__mocks__/@folio/stripes/smart-components.js +4 -6
- package/es/__mocks__/react-query.js +4 -6
- package/es/__mocks__/react-router-dom.js +6 -6
- package/es/lib/ActionList/ActionList.js +26 -33
- package/es/lib/ActionList/ActionListFieldArray.js +103 -119
- package/es/lib/ComboButton/ComboButton.js +42 -47
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +11 -17
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +42 -46
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +58 -58
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +4 -8
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +32 -33
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +3 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +29 -35
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +61 -59
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +20 -20
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +2 -2
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +1 -1
- package/es/lib/CustomProperties/Edit/testResources.js +11 -12
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +22 -33
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +23 -35
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +6 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +3 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +4 -8
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +14 -17
- package/es/lib/CustomProperties/Filter/testResources.js +1 -2
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -2
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +18 -26
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +3 -6
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +7 -11
- package/es/lib/CycleButton/CycleButton.js +9 -17
- package/es/lib/FormModal/FormModal.js +24 -32
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +23 -30
- package/es/lib/IconSelect/IconSelect.js +22 -32
- package/es/lib/NoResultsMessage/NoResultsMessage.js +4 -5
- package/es/lib/NumberField/NumberField.js +17 -25
- package/es/lib/NumberField/NumberField.test.js +6 -7
- package/es/lib/QueryTypedown/QueryTypedown.js +8 -15
- package/es/lib/RefdataButtons/RefdataButtons.js +6 -9
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +48 -60
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +5 -6
- package/es/lib/RichSelect/RichSelect.js +31 -36
- package/es/lib/RichSelect/useSelectedOption.js +1 -2
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +91 -94
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +42 -52
- package/es/lib/SASQRoute/SASQRoute.js +25 -29
- package/es/lib/SASQViewComponent/SASQViewComponent.js +68 -76
- package/es/lib/SearchField/SearchField.js +7 -13
- package/es/lib/SearchKeyControl/SearchKeyControl.js +8 -13
- package/es/lib/SearchKeyControl/SearchKeyControl.test.js +2 -6
- package/es/lib/Settings/EditableRefdataCategoryList/EditableRefdataCategoryList.js +30 -46
- package/es/lib/Settings/EditableRefdataList/EditableRefdataList.js +33 -43
- package/es/lib/Settings/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js +7 -11
- package/es/lib/Settings/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js +13 -20
- package/es/lib/Settings/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js +10 -12
- package/es/lib/Settings/EditableSettingsList/SettingField/SettingField.js +10 -15
- package/es/lib/Settings/EditableSettingsList/SettingField/SettingField.test.js +3 -3
- package/es/lib/Settings/RefdataCategoriesSettings/RefdataCategoriesSettings.js +19 -26
- package/es/lib/Settings/SettingPage/SettingPagePane/SettingPagePane.js +2 -2
- package/es/lib/Settings/SettingsFormContainer/SettingsFormContainer.js +30 -35
- package/es/lib/Settings/StaticSettingsField/StaticSettingsField.js +5 -8
- package/es/lib/Settings/StaticSettingsField/StaticSettingsFieldComponent/StaticSettingsFieldComponent.js +18 -22
- package/es/lib/Settings/hooks/staticSettingsPages/useSettingCallout/useSettingCallout.js +2 -2
- package/es/lib/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/useSettingsSectionInitalValues.js +1 -1
- package/es/lib/Settings/hooks/staticSettingsPages/useStaticSettingsSection.js +3 -7
- package/es/lib/Settings/hooks/useAppSettings/useAppSettings.js +7 -11
- package/es/lib/Settings/hooks/useSettingSection/useSettingSection.js +16 -22
- package/es/lib/Settings/hooks/useSettings/useSettings.js +60 -60
- package/es/lib/Tags/Tags.js +5 -8
- package/es/lib/Tags/hooks/useTags.js +1 -1
- package/es/lib/Tags/hooks/useTagsEnabled.js +34 -4
- package/es/lib/Tags/tagsConfig.js +1 -1
- package/es/lib/Typedown/Typedown.js +21 -28
- package/es/lib/constants/endpoints.js +7 -2
- package/es/lib/hooks/__mocks__/index.js +3 -7
- package/es/lib/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js +20 -26
- package/es/lib/hooks/intlHooks/useKintIntl/useKintIntl.js +24 -34
- package/es/lib/hooks/typedownHooks/useTypedown.js +2 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
- package/es/lib/hooks/useActionListRef.js +1 -1
- package/es/lib/hooks/useActiveElement.js +1 -1
- package/es/lib/hooks/useCustomProperties.js +6 -10
- package/es/lib/hooks/useHelperApp.js +13 -16
- package/es/lib/hooks/useKiwtFieldArray.js +7 -8
- package/es/lib/hooks/useKiwtSASQuery.js +15 -19
- package/es/lib/hooks/useLocalPageStore.js +7 -10
- package/es/lib/hooks/useModConfigEntries.js +2 -2
- package/es/lib/hooks/useMutateCustomProperties/useMutateCustomProperties.js +10 -17
- package/es/lib/hooks/useMutateGeneric/useMutateGeneric.js +2 -2
- package/es/lib/hooks/useMutateModConfigEntry.js +2 -2
- package/es/lib/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js +15 -21
- package/es/lib/hooks/useMutateRefdataValue/useMutateRefdataValue.js +16 -23
- package/es/lib/hooks/usePrevNextPagination.js +17 -19
- package/es/lib/hooks/useQIndex.js +11 -14
- package/es/lib/hooks/useRefdata.js +3 -3
- package/es/lib/hooks/useStandaloneSASQQueryParameter/useStandaloneSASQQueryParameter.js +9 -13
- package/es/lib/hooks/useTemplates.js +4 -4
- package/es/lib/utils/buildUrl.js +2 -3
- package/es/lib/utils/filterParsers/deparseKiwtQueryFilters.js +5 -5
- package/es/lib/utils/filterParsers/parseKiwtQueryFilters.js +2 -2
- package/es/lib/utils/filterParsers/parseKiwtQueryGroups.js +4 -5
- package/es/lib/utils/filterParsers/parseKiwtQueryString.js +1 -1
- package/es/lib/utils/generateKiwtQueryParams/generateKiwtQueryParams.js +94 -107
- package/es/lib/utils/groupCustomPropertiesByCtx.js +5 -9
- package/es/lib/utils/matchString.js +5 -7
- package/es/lib/utils/parseErrorResponse.js +3 -7
- package/es/lib/utils/selectorSafe.js +2 -3
- package/es/lib/utils/sortByLabel.js +2 -3
- package/es/lib/validators/validators.js +6 -9
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/ActionList/ActionListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/ActionList/index.html +1 -1
- package/src/artifacts/coverage-jest/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/ComboButton/ComboButton.js.html +1 -1
- package/src/artifacts/coverage-jest/ComboButton/index.html +1 -1
- package/src/artifacts/coverage-jest/ComboButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyView.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/useOperators.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/useValueProps.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesView.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertyCard.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CycleButton/CycleButton.js.html +1 -1
- package/src/artifacts/coverage-jest/CycleButton/index.html +1 -1
- package/src/artifacts/coverage-jest/CycleButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/FieldLabel/FieldLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/FieldLabel/index.html +1 -1
- package/src/artifacts/coverage-jest/FieldLabel/index.js.html +1 -1
- package/src/artifacts/coverage-jest/FormModal/FormModal.js.html +1 -1
- package/src/artifacts/coverage-jest/FormModal/index.html +1 -1
- package/src/artifacts/coverage-jest/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/IconSelect/IconSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/NoResultsMessage/NoResultsMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/NumberField/NumberField.js.html +1 -1
- package/src/artifacts/coverage-jest/NumberField/index.html +1 -1
- package/src/artifacts/coverage-jest/NumberField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/RefdataButtons/RefdataButtons.js.html +1 -1
- package/src/artifacts/coverage-jest/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/RichSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQRoute/SASQRoute.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchKeyControl/SearchKeyControl.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchKeyControl/index.html +1 -1
- package/src/artifacts/coverage-jest/SearchKeyControl/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataList/EditableRefdataList.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsList.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/SettingField.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/RefdataCategoriesSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPage.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/SettingsFormContainer.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsField.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/StaticSettingsFieldComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/constants/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/constants/queryKeys.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/contexts/SettingsContext.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/useSettingCallout.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/useSettingsSectionInitalValues.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useStaticSettingsSection.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettings/useSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/Tags.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/index.html +15 -15
- package/src/artifacts/coverage-jest/Tags/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/useTags.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/useTagsEnabled.js.html +150 -12
- package/src/artifacts/coverage-jest/Tags/index.html +1 -1
- package/src/artifacts/coverage-jest/Tags/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/tagsConfig.js.html +1 -1
- package/src/artifacts/coverage-jest/Typedown/Typedown.js.html +1 -1
- package/src/artifacts/coverage-jest/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/cobertura-coverage.xml +25 -12
- package/src/artifacts/coverage-jest/constants/comparators.js.html +1 -1
- package/src/artifacts/coverage-jest/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/constants/endpoints.js.html +23 -5
- package/src/artifacts/coverage-jest/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/constants/index.html +5 -5
- package/src/artifacts/coverage-jest/constants/pagination.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/useKintIntl.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useActionListRef.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useLocalPageStore.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useModConfigEntries.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/useMutateCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateGeneric/useMutateGeneric.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateModConfigEntry.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/usePrevNextPagination.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useSASQQueryMeta.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/useStandaloneSASQQueryParameter.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/index.html +18 -18
- package/src/artifacts/coverage-jest/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/deparseKiwtQueryFilters.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryFilters.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryGroups.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/generateKiwtQueryParams.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/groupCustomPropertiesByCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/highlightString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/matchString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/modConfigEntriesQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/parseErrorResponse.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/parseModConfigEntry.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataQueryKey/refdataQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/selectorSafe.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/sortByLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/toCamelCase.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/typedownQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/validators/index.html +1 -1
- package/src/artifacts/coverage-jest/validators/index.js.html +1 -1
- package/src/artifacts/coverage-jest/validators/validators.js.html +1 -1
- package/src/lib/Tags/hooks/useTagsEnabled.js +51 -5
- package/src/lib/constants/endpoints.js +7 -1
|
@@ -12,15 +12,7 @@ var _components = require("@folio/stripes/components");
|
|
|
12
12
|
var _hooks = require("../../hooks");
|
|
13
13
|
var _CustomPropertyFormCard = _interopRequireDefault(require("./CustomPropertyFormCard"));
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
const _excluded = ["ctx", "customProperties", "intlKey", "intlNS", "labelOverrides"];
|
|
16
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
18
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
19
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
16
|
const CustomPropertiesList = _ref => {
|
|
25
17
|
let {
|
|
26
18
|
availableCustomProperties = [],
|
|
@@ -55,17 +47,18 @@ const CustomPropertiesList = _ref => {
|
|
|
55
47
|
}
|
|
56
48
|
}, [availableCustomProperties, dirtying, pristine, value]);
|
|
57
49
|
const handleDeleteCustomProperty = (customProperty, i) => {
|
|
58
|
-
|
|
59
|
-
const currentValue = (_value$customProperty = (_value$customProperty2 = value[customProperty.value]) === null || _value$customProperty2 === void 0 ? void 0 : _value$customProperty2[0]) !== null && _value$customProperty !== void 0 ? _value$customProperty : {};
|
|
50
|
+
const currentValue = value[customProperty.value]?.[0] ?? {};
|
|
60
51
|
const newCustomProperties = [...customProperties];
|
|
61
52
|
newCustomProperties.splice(i, 1);
|
|
62
53
|
setCustomProperties(newCustomProperties);
|
|
63
54
|
setDirtying(true);
|
|
64
|
-
onChange(
|
|
65
|
-
|
|
55
|
+
onChange({
|
|
56
|
+
...value,
|
|
57
|
+
[customProperty.value]: [{
|
|
58
|
+
...currentValue,
|
|
66
59
|
_delete: true
|
|
67
|
-
}
|
|
68
|
-
})
|
|
60
|
+
}]
|
|
61
|
+
});
|
|
69
62
|
};
|
|
70
63
|
const renderCustomProperties = customPropertyType => {
|
|
71
64
|
// This is necessary to track individually since "index" will span primary/optional for a given set
|
|
@@ -89,7 +82,7 @@ const CustomPropertiesList = _ref => {
|
|
|
89
82
|
onChange,
|
|
90
83
|
setCustomProperties,
|
|
91
84
|
value
|
|
92
|
-
},
|
|
85
|
+
}, `customPropertyField-${customProperty.value}`);
|
|
93
86
|
}).filter(cp => cp !== undefined);
|
|
94
87
|
};
|
|
95
88
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -139,20 +132,19 @@ const CustomPropertiesList = _ref => {
|
|
|
139
132
|
};
|
|
140
133
|
const CustomPropertiesListField = _ref2 => {
|
|
141
134
|
let {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
135
|
+
ctx,
|
|
136
|
+
customProperties,
|
|
137
|
+
intlKey: passedIntlKey,
|
|
138
|
+
intlNS: passedIntlNS,
|
|
139
|
+
labelOverrides = {},
|
|
140
|
+
...fieldProps
|
|
141
|
+
} = _ref2;
|
|
149
142
|
const fieldRef = (0, _react.useRef)();
|
|
150
143
|
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
151
144
|
|
|
152
145
|
// Map customProperties to bring together the options and the definition values
|
|
153
|
-
const availableCustomProperties = customProperties
|
|
154
|
-
|
|
155
|
-
let options = customProperty === null || customProperty === void 0 || (_customProperty$categ = customProperty.category) === null || _customProperty$categ === void 0 ? void 0 : _customProperty$categ.values;
|
|
146
|
+
const availableCustomProperties = customProperties?.map(customProperty => {
|
|
147
|
+
let options = customProperty?.category?.values;
|
|
156
148
|
if (options) {
|
|
157
149
|
// order by label, add notSet option afterwards
|
|
158
150
|
options = (0, _orderBy.default)(options, 'label');
|
|
@@ -191,29 +183,31 @@ const CustomPropertiesListField = _ref2 => {
|
|
|
191
183
|
// IMPORTANT -- All customproperty ctx sections are adding to the same "initialValue" field
|
|
192
184
|
// Ensure that we don't already have initialValues for this particular set before setting them,
|
|
193
185
|
// to ensure no looping behaviour
|
|
194
|
-
if (Object.keys(cps).every(key => {
|
|
195
|
-
var _initialValues$custom;
|
|
196
|
-
return ((_initialValues$custom = initialValues.customProperties) === null || _initialValues$custom === void 0 ? void 0 : _initialValues$custom[key]) !== undefined;
|
|
197
|
-
})) {
|
|
186
|
+
if (Object.keys(cps).every(key => initialValues.customProperties?.[key] !== undefined)) {
|
|
198
187
|
return initialValues.customProperties;
|
|
199
188
|
}
|
|
200
189
|
|
|
201
190
|
// Ensure that if we already had these values in initialvalues they're not overwritten
|
|
202
|
-
return
|
|
191
|
+
return {
|
|
192
|
+
...cps,
|
|
193
|
+
...initialValues.customProperties
|
|
194
|
+
};
|
|
203
195
|
};
|
|
204
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field,
|
|
196
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
197
|
+
...fieldProps,
|
|
205
198
|
initialValue: getInitialValue(),
|
|
206
199
|
render: p => {
|
|
207
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomPropertiesList,
|
|
200
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomPropertiesList, {
|
|
208
201
|
ref: fieldRef,
|
|
209
202
|
availableCustomProperties: availableCustomProperties,
|
|
210
203
|
ctx: ctx,
|
|
211
204
|
intlKey: passedIntlKey,
|
|
212
205
|
intlNS: passedIntlNS,
|
|
213
|
-
labelOverrides: labelOverrides
|
|
214
|
-
|
|
206
|
+
labelOverrides: labelOverrides,
|
|
207
|
+
...p
|
|
208
|
+
});
|
|
215
209
|
}
|
|
216
|
-
})
|
|
210
|
+
});
|
|
217
211
|
};
|
|
218
212
|
CustomPropertiesListField.propTypes = {
|
|
219
213
|
ctx: _propTypes.default.string,
|
|
@@ -14,11 +14,6 @@ var _NumberField = _interopRequireDefault(require("../../NumberField"));
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
21
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
17
|
const CustomPropertyField = _ref => {
|
|
23
18
|
let {
|
|
24
19
|
availableCustomProperties,
|
|
@@ -37,12 +32,11 @@ const CustomPropertyField = _ref => {
|
|
|
37
32
|
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
38
33
|
// Set up the validator for the customProperty
|
|
39
34
|
const customPropertyValidator = (fieldValue, allValues) => {
|
|
40
|
-
var _allValues$customProp, _allValues$customProp2;
|
|
41
35
|
const {
|
|
42
36
|
note,
|
|
43
37
|
publicNote,
|
|
44
38
|
value: currentValue
|
|
45
|
-
} =
|
|
39
|
+
} = allValues?.customProperties?.[customProperty?.value]?.[0] ?? {};
|
|
46
40
|
if (note && !currentValue || publicNote && !currentValue) {
|
|
47
41
|
if (customProperty.type === CUSTOM_PROPERTY_TYPES.DECIMAL_CLASS_NAME || customProperty.type === CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME) {
|
|
48
42
|
return kintIntl.formatKintMessage({
|
|
@@ -85,9 +79,7 @@ const CustomPropertyField = _ref => {
|
|
|
85
79
|
return availableCustomProperties.find(cp => cp.value === customPropertyValue);
|
|
86
80
|
};
|
|
87
81
|
const renderCustomPropertyName = () => {
|
|
88
|
-
var _customPropertyValue$;
|
|
89
82
|
const unsetCustomProperties = availableCustomProperties.filter(t => {
|
|
90
|
-
var _custPropValue$;
|
|
91
83
|
// Only optional properties can be set
|
|
92
84
|
if (t.primary) return false;
|
|
93
85
|
const custPropValue = value[t.value];
|
|
@@ -96,16 +88,16 @@ const CustomPropertyField = _ref => {
|
|
|
96
88
|
if (custPropValue === undefined) return true;
|
|
97
89
|
|
|
98
90
|
// The customProperty is set but is marked for deletion. Allow reuse.
|
|
99
|
-
if (
|
|
91
|
+
if (custPropValue[0]?._delete) return true;
|
|
100
92
|
return false;
|
|
101
93
|
});
|
|
102
94
|
const customPropertyValue = value[customProperty.value];
|
|
103
|
-
const id = customPropertyValue
|
|
95
|
+
const id = customPropertyValue?.[0]?.id;
|
|
104
96
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
|
|
105
97
|
autoFocus: !id,
|
|
106
98
|
dataOptions: [customProperty, ...unsetCustomProperties] // The selected customProperty, and the available unset customProperties
|
|
107
99
|
,
|
|
108
|
-
id:
|
|
100
|
+
id: `edit-customproperty-${index}-name`,
|
|
109
101
|
label: kintIntl.formatKintMessage({
|
|
110
102
|
id: 'customProperties.name',
|
|
111
103
|
overrideValue: labelOverrides.name
|
|
@@ -123,33 +115,35 @@ const CustomPropertyField = _ref => {
|
|
|
123
115
|
// We do this by 1) marking the current customProperty for deletion and 2) initing
|
|
124
116
|
// the new customProperty to an empty object.
|
|
125
117
|
const currentValue = value[customProperty.value] ? value[customProperty.value][0] : {};
|
|
126
|
-
onChange(
|
|
118
|
+
onChange({
|
|
119
|
+
...value,
|
|
127
120
|
[customProperty.value]: [{
|
|
128
121
|
id: currentValue.id,
|
|
129
122
|
_delete: true
|
|
130
123
|
}],
|
|
131
124
|
[newValue]: [{}]
|
|
132
|
-
})
|
|
125
|
+
});
|
|
133
126
|
},
|
|
134
127
|
required: true,
|
|
135
128
|
value: customProperty.value
|
|
136
129
|
});
|
|
137
130
|
};
|
|
138
131
|
const renderCustomPropertyValue = () => {
|
|
139
|
-
var _customProperty$optio;
|
|
140
132
|
const currentValue = value[customProperty.value] ? value[customProperty.value][0] : {};
|
|
141
133
|
const min = Number.MIN_SAFE_INTEGER;
|
|
142
134
|
const max = Number.MAX_SAFE_INTEGER;
|
|
143
135
|
|
|
144
136
|
// Default change handler
|
|
145
137
|
let handleChange = e => {
|
|
146
|
-
onChange(
|
|
147
|
-
|
|
138
|
+
onChange({
|
|
139
|
+
...value,
|
|
140
|
+
[customProperty.value]: [{
|
|
141
|
+
...currentValue,
|
|
148
142
|
_delete: e.target.value === '',
|
|
149
143
|
// Delete customProperty if removing the value.
|
|
150
144
|
value: e.target.value // send down the number for integers and decimal types
|
|
151
|
-
}
|
|
152
|
-
})
|
|
145
|
+
}]
|
|
146
|
+
});
|
|
153
147
|
};
|
|
154
148
|
// Figure out which component we're rendering and specify its unique props.
|
|
155
149
|
let fieldProps;
|
|
@@ -159,25 +153,27 @@ const CustomPropertyField = _ref => {
|
|
|
159
153
|
component: _components.Select,
|
|
160
154
|
// don't order dataOptions here, notSet should always be first in list
|
|
161
155
|
dataOptions: customProperty.options,
|
|
162
|
-
format: v => v
|
|
156
|
+
format: v => v?.value
|
|
163
157
|
};
|
|
164
158
|
break;
|
|
165
159
|
case CUSTOM_PROPERTY_TYPES.MULTI_REFDATA_CLASS_NAME:
|
|
166
160
|
fieldProps = {
|
|
167
161
|
component: _components.MultiSelection,
|
|
168
162
|
// The "not set" value is not relevant for a multi select
|
|
169
|
-
dataOptions: (0, _orderBy.default)(
|
|
163
|
+
dataOptions: (0, _orderBy.default)(customProperty.options?.filter(opt => !!opt?.value), 'label'),
|
|
170
164
|
renderToOverlay: true // FIXME Switch to usePortal for stripes v10
|
|
171
165
|
};
|
|
172
166
|
// MultiSelection passes the changed array as a value not an event
|
|
173
167
|
handleChange = refdataArray => {
|
|
174
|
-
onChange(
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
onChange({
|
|
169
|
+
...value,
|
|
170
|
+
[customProperty.value]: [{
|
|
171
|
+
...currentValue,
|
|
172
|
+
_delete: refdataArray?.length === 0 ? true : undefined,
|
|
177
173
|
// Delete customProperty if removing all values.
|
|
178
174
|
value: refdataArray
|
|
179
|
-
}
|
|
180
|
-
})
|
|
175
|
+
}]
|
|
176
|
+
});
|
|
181
177
|
};
|
|
182
178
|
break;
|
|
183
179
|
case CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME:
|
|
@@ -189,13 +185,15 @@ const CustomPropertyField = _ref => {
|
|
|
189
185
|
step: 'any'
|
|
190
186
|
};
|
|
191
187
|
handleChange = e => {
|
|
192
|
-
onChange(
|
|
193
|
-
|
|
188
|
+
onChange({
|
|
189
|
+
...value,
|
|
190
|
+
[customProperty.value]: [{
|
|
191
|
+
...currentValue,
|
|
194
192
|
_delete: e.target.value === '' ? true : undefined,
|
|
195
193
|
// Delete customProperty if removing the value.
|
|
196
194
|
value: e.target.value
|
|
197
|
-
}
|
|
198
|
-
})
|
|
195
|
+
}]
|
|
196
|
+
});
|
|
199
197
|
};
|
|
200
198
|
break;
|
|
201
199
|
case CUSTOM_PROPERTY_TYPES.TEXT_CLASS_NAME:
|
|
@@ -218,28 +216,30 @@ const CustomPropertyField = _ref => {
|
|
|
218
216
|
};
|
|
219
217
|
break;
|
|
220
218
|
}
|
|
221
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field,
|
|
219
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
222
220
|
"data-test-customproperty-value": true,
|
|
223
|
-
id:
|
|
221
|
+
id: `edit-customproperty-${index}-value`,
|
|
224
222
|
label: kintIntl.formatKintMessage({
|
|
225
223
|
id: 'customProperties.value',
|
|
226
224
|
overrideValue: labelOverrides.value
|
|
227
225
|
}),
|
|
228
|
-
name:
|
|
226
|
+
name: `${name}.${customProperty.value}[0].value`,
|
|
229
227
|
onChange: handleChange,
|
|
230
228
|
required: !customProperty.primary,
|
|
231
|
-
validate: (fieldValue, allValues) => customPropertyValidator(fieldValue, allValues)
|
|
232
|
-
|
|
229
|
+
validate: (fieldValue, allValues) => customPropertyValidator(fieldValue, allValues),
|
|
230
|
+
...fieldProps
|
|
231
|
+
});
|
|
233
232
|
};
|
|
234
233
|
const renderCustomPropertyVisibility = () => {
|
|
235
|
-
|
|
236
|
-
const customPropertyObject = (_value$customProperty = (_value$customProperty2 = value[customProperty.value]) === null || _value$customProperty2 === void 0 ? void 0 : _value$customProperty2[0]) !== null && _value$customProperty !== void 0 ? _value$customProperty : {};
|
|
234
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
237
235
|
const handleChange = e => {
|
|
238
|
-
onChange(
|
|
239
|
-
|
|
236
|
+
onChange({
|
|
237
|
+
...value,
|
|
238
|
+
[customProperty.value]: [{
|
|
239
|
+
...customPropertyObject,
|
|
240
240
|
internal: e.target.value
|
|
241
|
-
}
|
|
242
|
-
})
|
|
241
|
+
}]
|
|
242
|
+
});
|
|
243
243
|
};
|
|
244
244
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
|
|
245
245
|
"data-test-customproperty-visibility": true,
|
|
@@ -256,55 +256,57 @@ const CustomPropertyField = _ref => {
|
|
|
256
256
|
overrideValue: labelOverrides.internalFalse
|
|
257
257
|
})
|
|
258
258
|
}],
|
|
259
|
-
id:
|
|
259
|
+
id: `edit-customproperty-${index}-visibility`,
|
|
260
260
|
label: kintIntl.formatKintMessage({
|
|
261
261
|
id: 'customProperties.visibility',
|
|
262
262
|
overrideValue: labelOverrides.visibility
|
|
263
263
|
}),
|
|
264
264
|
onChange: handleChange,
|
|
265
|
-
value:
|
|
265
|
+
value: customPropertyObject?.internal ?? customProperty.defaultInternal
|
|
266
266
|
});
|
|
267
267
|
};
|
|
268
268
|
const renderCustomPropertyNoteInternal = () => {
|
|
269
|
-
|
|
270
|
-
const customPropertyObject = (_value$customProperty3 = (_value$customProperty4 = value[customProperty.value]) === null || _value$customProperty4 === void 0 ? void 0 : _value$customProperty4[0]) !== null && _value$customProperty3 !== void 0 ? _value$customProperty3 : {};
|
|
269
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
271
270
|
const handleChange = e => {
|
|
272
|
-
onChange(
|
|
273
|
-
|
|
271
|
+
onChange({
|
|
272
|
+
...value,
|
|
273
|
+
[customProperty.value]: [{
|
|
274
|
+
...customPropertyObject,
|
|
274
275
|
note: e.target.value
|
|
275
|
-
}
|
|
276
|
-
})
|
|
276
|
+
}]
|
|
277
|
+
});
|
|
277
278
|
};
|
|
278
279
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
|
|
279
280
|
"data-test-customproperty-note": true,
|
|
280
|
-
id:
|
|
281
|
+
id: `edit-customproperty-${index}-internal-note`,
|
|
281
282
|
label: kintIntl.formatKintMessage({
|
|
282
283
|
id: 'customProperties.internalNote',
|
|
283
284
|
overrideValue: labelOverrides.internalNote
|
|
284
285
|
}),
|
|
285
286
|
onChange: handleChange,
|
|
286
|
-
value: customPropertyObject
|
|
287
|
+
value: customPropertyObject?.note
|
|
287
288
|
});
|
|
288
289
|
};
|
|
289
290
|
const renderCustomPropertyNotePublic = () => {
|
|
290
|
-
|
|
291
|
-
const customPropertyObject = (_value$customProperty5 = (_value$customProperty6 = value[customProperty.value]) === null || _value$customProperty6 === void 0 ? void 0 : _value$customProperty6[0]) !== null && _value$customProperty5 !== void 0 ? _value$customProperty5 : {};
|
|
291
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
292
292
|
const handleChange = e => {
|
|
293
|
-
onChange(
|
|
294
|
-
|
|
293
|
+
onChange({
|
|
294
|
+
...value,
|
|
295
|
+
[customProperty.value]: [{
|
|
296
|
+
...customPropertyObject,
|
|
295
297
|
publicNote: e.target.value
|
|
296
|
-
}
|
|
297
|
-
})
|
|
298
|
+
}]
|
|
299
|
+
});
|
|
298
300
|
};
|
|
299
301
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
|
|
300
302
|
"data-test-customproperty-public-note": true,
|
|
301
|
-
id:
|
|
303
|
+
id: `edit-customproperty-${index}-public-note`,
|
|
302
304
|
label: kintIntl.formatKintMessage({
|
|
303
305
|
id: 'customProperties.publicNote',
|
|
304
306
|
overrideValue: labelOverrides.publicNote
|
|
305
307
|
}),
|
|
306
308
|
onChange: handleChange,
|
|
307
|
-
value: customPropertyObject
|
|
309
|
+
value: customPropertyObject?.publicNote
|
|
308
310
|
});
|
|
309
311
|
};
|
|
310
312
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
@@ -7,20 +7,15 @@ var _jest = require("../../../../test/jest");
|
|
|
7
7
|
var _testResources = require("./testResources");
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
14
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
10
|
const onSubmit = jest.fn();
|
|
16
11
|
jest.mock('../../hooks');
|
|
17
12
|
const onChange = () => {};
|
|
18
13
|
const setCustomProperties = () => {};
|
|
19
|
-
const authIdentCustom = _jest.availableCustomProperties
|
|
20
|
-
const decimalCustProp = _jest.availableCustomProperties
|
|
21
|
-
const integerCustProp = _jest.availableCustomProperties
|
|
22
|
-
const dateCustProp = _jest.availableCustomProperties
|
|
23
|
-
const multiRefdataCustProp = _jest.availableCustomProperties
|
|
14
|
+
const authIdentCustom = _jest.availableCustomProperties?.find(cp => cp.value === 'AuthorIdentification');
|
|
15
|
+
const decimalCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'decimal');
|
|
16
|
+
const integerCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'integer');
|
|
17
|
+
const dateCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'date');
|
|
18
|
+
const multiRefdataCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'MultiRefdata');
|
|
24
19
|
const defaultProps = {
|
|
25
20
|
availableCustomProperties: _jest.availableCustomProperties,
|
|
26
21
|
customProperties: _jest.customProperties,
|
|
@@ -38,10 +33,11 @@ describe('CustomPropertyField', () => {
|
|
|
38
33
|
renderComponent = (0, _jest.renderWithKintHarness)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_stripesErmTesting.TestForm, {
|
|
39
34
|
initialValues: _testResources.initialValues,
|
|
40
35
|
onSubmit: onSubmit,
|
|
41
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default, {
|
|
37
|
+
...defaultProps,
|
|
42
38
|
customProperty: authIdentCustom,
|
|
43
39
|
index: 0
|
|
44
|
-
})
|
|
40
|
+
})
|
|
45
41
|
}));
|
|
46
42
|
const {
|
|
47
43
|
getByTestId
|
|
@@ -89,10 +85,11 @@ describe('CustomPropertyField', () => {
|
|
|
89
85
|
renderComponent = (0, _jest.renderWithKintHarness)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_stripesErmTesting.TestForm, {
|
|
90
86
|
initialValues: _testResources.initialValues,
|
|
91
87
|
onSubmit: onSubmit,
|
|
92
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default,
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default, {
|
|
89
|
+
...defaultProps,
|
|
93
90
|
customProperty: decimalCustProp,
|
|
94
91
|
index: 2
|
|
95
|
-
})
|
|
92
|
+
})
|
|
96
93
|
}));
|
|
97
94
|
});
|
|
98
95
|
test('Displays expected Decimal field', async () => {
|
|
@@ -106,10 +103,11 @@ describe('CustomPropertyField', () => {
|
|
|
106
103
|
renderComponent = (0, _jest.renderWithKintHarness)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_stripesErmTesting.TestForm, {
|
|
107
104
|
initialValues: _testResources.initialValues,
|
|
108
105
|
onSubmit: onSubmit,
|
|
109
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default,
|
|
106
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default, {
|
|
107
|
+
...defaultProps,
|
|
110
108
|
customProperty: integerCustProp,
|
|
111
109
|
index: 3
|
|
112
|
-
})
|
|
110
|
+
})
|
|
113
111
|
}));
|
|
114
112
|
});
|
|
115
113
|
test('Displays expected integer Field', async () => {
|
|
@@ -125,10 +123,11 @@ describe('CustomPropertyField', () => {
|
|
|
125
123
|
renderComponent = (0, _jest.renderWithKintHarness)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_stripesErmTesting.TestForm, {
|
|
126
124
|
initialValues: _testResources.initialValues,
|
|
127
125
|
onSubmit: onSubmit,
|
|
128
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default,
|
|
126
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default, {
|
|
127
|
+
...defaultProps,
|
|
129
128
|
customProperty: multiRefdataCustProp,
|
|
130
129
|
index: 4
|
|
131
|
-
})
|
|
130
|
+
})
|
|
132
131
|
}));
|
|
133
132
|
});
|
|
134
133
|
test('Displays expected multi-select Refdata Field', async () => {
|
|
@@ -151,10 +150,11 @@ describe('CustomPropertyField', () => {
|
|
|
151
150
|
renderComponent = (0, _jest.renderWithKintHarness)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_stripesErmTesting.TestForm, {
|
|
152
151
|
initialValues: _testResources.initialValues,
|
|
153
152
|
onSubmit: onSubmit,
|
|
154
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default,
|
|
153
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyField.default, {
|
|
154
|
+
...defaultProps,
|
|
155
155
|
customProperty: dateCustProp,
|
|
156
156
|
index: 5
|
|
157
|
-
})
|
|
157
|
+
})
|
|
158
158
|
}));
|
|
159
159
|
});
|
|
160
160
|
test('renders values DatePicker', async () => {
|
|
@@ -57,7 +57,7 @@ const CustomPropertyFormCard = _ref => {
|
|
|
57
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Card, {
|
|
58
58
|
"data-testid": "custom-property-form-card",
|
|
59
59
|
headerEnd: customPropertyType === 'optional' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
|
|
60
|
-
id:
|
|
60
|
+
id: `customProperty-${customProperty.value}-${index}`,
|
|
61
61
|
text: getTooltipText(),
|
|
62
62
|
children: _ref2 => {
|
|
63
63
|
let {
|
|
@@ -68,7 +68,7 @@ const CustomPropertyFormCard = _ref => {
|
|
|
68
68
|
ref: ref,
|
|
69
69
|
"aria-labelledby": ariaIds.text,
|
|
70
70
|
icon: "trash",
|
|
71
|
-
id:
|
|
71
|
+
id: `edit-customproperty-${index}-delete`,
|
|
72
72
|
onClick: () => handleDeleteCustomProperty(customProperty, index)
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -11,7 +11,7 @@ jest.mock('../../hooks');
|
|
|
11
11
|
jest.mock('./CustomPropertyField', () => () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
12
12
|
children: "CustomPropertyField"
|
|
13
13
|
}));
|
|
14
|
-
const customProperty = _customProperties.availableCustomProperties
|
|
14
|
+
const customProperty = _customProperties.availableCustomProperties?.find(cp => cp.value === 'AuthorIdentification');
|
|
15
15
|
const onChange = jest.fn();
|
|
16
16
|
const setCustomProperties = jest.fn();
|
|
17
17
|
describe('CustomPropertyFormCard', () => {
|
|
@@ -5,23 +5,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.value = exports.initialValues = void 0;
|
|
7
7
|
var _jest = require("../../../../test/jest");
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const licenseAmendmentStatusRefdata = _jest.refdata === null || _jest.refdata === void 0 ? void 0 : _jest.refdata.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status');
|
|
8
|
+
const agreementStatusRefdata = _jest.refdata?.find(rdc => rdc.desc === 'SubscriptionAgreement.AgreementStatus');
|
|
9
|
+
const licenseAmendmentStatusRefdata = _jest.refdata?.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status');
|
|
11
10
|
const value = exports.value = {
|
|
12
11
|
AuthorIdentification: [{
|
|
13
12
|
id: 2,
|
|
14
13
|
internal: true,
|
|
15
14
|
publicNote: 'this is a public note',
|
|
16
15
|
note: 'this is an internal note',
|
|
17
|
-
value: agreementStatusRefdata
|
|
18
|
-
type: _jest.customProperties
|
|
16
|
+
value: agreementStatusRefdata?.values?.find(rdv => rdv.value === 'active'),
|
|
17
|
+
type: _jest.customProperties?.find(cp => cp.name === 'AuthorIdentification')
|
|
19
18
|
}],
|
|
20
19
|
Test: [{
|
|
21
20
|
id: 4,
|
|
22
21
|
internal: true,
|
|
23
|
-
value: agreementStatusRefdata
|
|
24
|
-
type: _jest.customProperties
|
|
22
|
+
value: agreementStatusRefdata?.values?.find(rdv => rdv.value === 'active'),
|
|
23
|
+
type: _jest.customProperties?.find(cp => cp.name === 'Test')
|
|
25
24
|
}],
|
|
26
25
|
decimal: [{
|
|
27
26
|
id: 8,
|
|
@@ -29,7 +28,7 @@ const value = exports.value = {
|
|
|
29
28
|
note: 'decimal',
|
|
30
29
|
internal: true,
|
|
31
30
|
value: 1,
|
|
32
|
-
type: _jest.customProperties
|
|
31
|
+
type: _jest.customProperties?.find(cp => cp.name === 'decimal')
|
|
33
32
|
}],
|
|
34
33
|
integer: [{
|
|
35
34
|
id: 6,
|
|
@@ -37,7 +36,7 @@ const value = exports.value = {
|
|
|
37
36
|
note: 'Integer',
|
|
38
37
|
internal: true,
|
|
39
38
|
value: 1,
|
|
40
|
-
type: _jest.customProperties
|
|
39
|
+
type: _jest.customProperties?.find(cp => cp.name === 'integer')
|
|
41
40
|
}],
|
|
42
41
|
text: [{
|
|
43
42
|
id: 7,
|
|
@@ -45,15 +44,15 @@ const value = exports.value = {
|
|
|
45
44
|
note: 'text',
|
|
46
45
|
internal: true,
|
|
47
46
|
value: 'text',
|
|
48
|
-
type: _jest.customProperties
|
|
47
|
+
type: _jest.customProperties?.find(cp => cp.name === 'text')
|
|
49
48
|
}],
|
|
50
49
|
Refdata: [{
|
|
51
50
|
id: 5,
|
|
52
51
|
publicNote: 'refdata',
|
|
53
52
|
note: 'refdata',
|
|
54
53
|
internal: true,
|
|
55
|
-
value: licenseAmendmentStatusRefdata
|
|
56
|
-
type: _jest.customProperties
|
|
54
|
+
value: licenseAmendmentStatusRefdata?.values?.find(rdv => rdv.value === 'current'),
|
|
55
|
+
type: _jest.customProperties?.find(cp => cp.name === 'Refdata')
|
|
57
56
|
}]
|
|
58
57
|
};
|
|
59
58
|
const initialValues = exports.initialValues = {
|