@k-int/stripes-kint-components 2.8.3 → 2.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +6 -19
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +2 -182
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +64 -94
- package/es/index.js +0 -27
- package/es/lib/ActionList/ActionList.js +18 -38
- package/es/lib/ActionList/ActionListFieldArray.js +57 -112
- package/es/lib/ActionList/index.js +0 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +32 -63
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +2 -13
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +89 -138
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +3 -22
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +14 -50
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +17 -34
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +3 -12
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -26
- package/es/lib/CustomProperties/Config/index.js +0 -5
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -12
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +1 -13
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +24 -39
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +1 -13
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +25 -69
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +3 -23
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +26 -77
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +6 -33
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +19 -33
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -14
- package/es/lib/CustomProperties/Edit/index.js +0 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +33 -70
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +2 -18
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +14 -44
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -10
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +4 -23
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +2 -19
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +8 -22
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +2 -20
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -27
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -32
- package/es/lib/CustomProperties/Filter/index.js +0 -7
- package/es/lib/CustomProperties/Filter/useOperators.js +5 -21
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -15
- package/es/lib/CustomProperties/Filter/useValueProps.js +5 -20
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +6 -12
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -10
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +43 -65
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -13
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -38
- package/es/lib/CustomProperties/View/index.js +0 -4
- package/es/lib/CustomProperties/index.js +0 -4
- package/es/lib/CycleButton/CycleButton.js +8 -33
- package/es/lib/CycleButton/index.js +0 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +85 -131
- package/es/lib/EditableRefdataCategoryList/index.js +0 -2
- package/es/lib/EditableRefdataList/EditableRefdataList.js +90 -139
- package/es/lib/EditableRefdataList/index.js +0 -2
- package/es/lib/EditableSettingsList/EditableSettingsList.js +3 -13
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -15
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +4 -19
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +3 -25
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +19 -26
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +2 -20
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +14 -35
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +15 -51
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +6 -31
- package/es/lib/EditableSettingsList/SettingField/index.js +0 -4
- package/es/lib/EditableSettingsList/index.js +0 -4
- package/es/lib/FormModal/FormModal.js +14 -34
- package/es/lib/FormModal/index.js +0 -2
- package/es/lib/IconSelect/IconSelect.js +29 -67
- package/es/lib/IconSelect/index.js +0 -2
- package/es/lib/NoResultsMessage/NoResultsMessage.js +13 -22
- package/es/lib/NoResultsMessage/index.js +0 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +9 -36
- package/es/lib/QueryTypedown/index.js +0 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +5 -24
- package/es/lib/RefdataButtons/index.js +0 -2
- package/es/lib/RichSelect/RichSelect.js +39 -67
- package/es/lib/RichSelect/index.js +0 -3
- package/es/lib/RichSelect/useSelectedOption.js +3 -14
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +36 -80
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +16 -29
- package/es/lib/SASQLookupComponent/TableBody/index.js +0 -2
- package/es/lib/SASQLookupComponent/index.js +0 -3
- package/es/lib/SASQRoute/SASQRoute.js +6 -23
- package/es/lib/SASQRoute/index.js +0 -2
- package/es/lib/SASQViewComponent/SASQViewComponent.js +17 -36
- package/es/lib/SASQViewComponent/index.js +0 -2
- package/es/lib/SearchField/SearchField.js +1 -17
- package/es/lib/SearchField/index.js +0 -2
- package/es/lib/SettingPage/SettingPage.js +6 -21
- package/es/lib/SettingPage/SettingPagePane.js +2 -17
- package/es/lib/SettingPage/index.js +0 -3
- package/es/lib/Typedown/Typedown.js +51 -82
- package/es/lib/Typedown/index.js +0 -2
- package/es/lib/contexts/SettingsContext.js +0 -2
- package/es/lib/contexts/index.js +0 -2
- package/es/lib/hooks/index.js +0 -16
- package/es/lib/hooks/settingsHooks/index.js +0 -4
- package/es/lib/hooks/settingsHooks/useAppSettings.js +6 -27
- package/es/lib/hooks/settingsHooks/useSettingSection.js +10 -20
- package/es/lib/hooks/settingsHooks/useSettings.js +10 -43
- package/es/lib/hooks/typedownHooks/index.js +0 -4
- package/es/lib/hooks/typedownHooks/useTypedown.js +17 -37
- package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -26
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +5 -19
- package/es/lib/hooks/useActiveElement.js +3 -15
- package/es/lib/hooks/useAvailableCustomProperties.js +3 -22
- package/es/lib/hooks/useCustomProperties.js +11 -25
- package/es/lib/hooks/useHelperApp.js +7 -30
- package/es/lib/hooks/useInvalidateRefdata.js +0 -4
- package/es/lib/hooks/useKiwtFieldArray.js +5 -29
- package/es/lib/hooks/useKiwtSASQuery.js +12 -37
- package/es/lib/hooks/useLocalStorageState.js +5 -21
- package/es/lib/hooks/useMutateCustomProperties.js +11 -28
- package/es/lib/hooks/useMutateRefdataCategory.js +9 -29
- package/es/lib/hooks/useMutateRefdataValue.js +10 -27
- package/es/lib/hooks/useQIndex.js +3 -27
- package/es/lib/hooks/useRefdata.js +7 -16
- package/es/lib/hooks/useTemplates.js +6 -17
- package/es/lib/utils/buildUrl.js +1 -10
- package/es/lib/utils/generateKiwtQuery.js +0 -4
- package/es/lib/utils/generateKiwtQueryParams.js +24 -62
- package/es/lib/utils/groupCustomPropertiesByCtx.js +0 -14
- package/es/lib/utils/highlightString.js +6 -23
- package/es/lib/utils/index.js +0 -15
- package/es/lib/utils/matchString.js +0 -6
- package/es/lib/utils/parseErrorResponse.js +2 -24
- package/es/lib/utils/refdataQueryKey.js +0 -4
- package/es/lib/utils/renderHelpText.js +0 -7
- package/es/lib/utils/selectorSafe.js +0 -2
- package/es/lib/utils/sortByLabel.js +0 -6
- package/es/lib/utils/toCamelCase.js +6 -5
- package/es/lib/utils/typedownQueryKey.js +0 -4
- package/es/lib/utils/validators.js +4 -35
- package/junit.xml +151 -151
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +1 -1
- 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/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +4 -4
- 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 +5 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +793 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +6 -9
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +29 -92
- 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 +24 -24
- 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 +17 -17
- 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 +15 -15
- 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 +3 -3
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +28 -22
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +2 -2
- 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 +535 -0
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +253 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +99 -12
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +53 -8
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +65 -11
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +24 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +187 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/index.html +74 -59
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +63 -21
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +33 -33
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +39 -39
- package/src/artifacts/coverage-jest/lcov.info +755 -537
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +0 -1
- package/src/lib/utils/parseErrorResponse.js +1 -1
- package/translate.sh +4 -0
- package/translations/stripes-kint-components/ar.json +12 -12
- package/translations/stripes-kint-components/cs_CZ.json +4 -4
- package/translations/stripes-kint-components/de.json +41 -41
- package/translations/stripes-kint-components/en_GB.json +1 -0
- package/translations/stripes-kint-components/en_SE.json +1 -0
- package/translations/stripes-kint-components/es_419.json +122 -0
- package/translations/stripes-kint-components/es_ES.json +122 -0
- package/translations/stripes-kint-components/fr.json +105 -1
- package/translations/stripes-kint-components/fr_FR.json +105 -0
- package/translations/stripes-kint-components/hu.json +12 -12
- package/translations/stripes-kint-components/it_IT.json +6 -6
- package/translations/stripes-kint-components/ja.json +43 -43
- package/translations/stripes-kint-components/ko.json +49 -49
- package/translations/stripes-kint-components/pt_PT.json +6 -6
- package/translations/stripes-kint-components/ru.json +1 -1
- package/translations/stripes-kint-components/sv.json +7 -7
- package/translations/stripes-kint-components/zh_TW.json +122 -0
- package/yarn-error.log +147 -0
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _reactIntl = require("react-intl");
|
|
11
|
-
|
|
12
9
|
var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
13
|
-
|
|
14
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
|
|
16
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
12
|
var REFDATA = CUSTPROP_TYPES.REFDATA_CLASS_NAME,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
MULTIREFDATA = CUSTPROP_TYPES.MULTI_REFDATA_CLASS_NAME,
|
|
14
|
+
DECIMAL = CUSTPROP_TYPES.DECIMAL_CLASS_NAME,
|
|
15
|
+
INTEGER = CUSTPROP_TYPES.INTEGER_CLASS_NAME,
|
|
16
|
+
DATE = CUSTPROP_TYPES.DATE_CLASS_NAME,
|
|
17
|
+
TEXT = CUSTPROP_TYPES.TEXT_CLASS_NAME;
|
|
25
18
|
var useOperators = function useOperators(type) {
|
|
26
19
|
var intl = (0, _reactIntl.useIntl)();
|
|
27
|
-
|
|
28
20
|
var getLabel = function getLabel(id) {
|
|
29
21
|
return intl.formatMessage({
|
|
30
22
|
id: id
|
|
31
23
|
});
|
|
32
24
|
};
|
|
33
|
-
|
|
34
25
|
var operators = [{
|
|
35
26
|
value: ' isSet',
|
|
36
27
|
label: getLabel('stripes-kint-components.operator.isSet'),
|
|
@@ -40,7 +31,6 @@ var useOperators = function useOperators(type) {
|
|
|
40
31
|
label: getLabel('stripes-kint-components.operator.isNotSet'),
|
|
41
32
|
noValueAllowed: true
|
|
42
33
|
}];
|
|
43
|
-
|
|
44
34
|
if (!type || type === INTEGER || type === DECIMAL) {
|
|
45
35
|
operators.push({
|
|
46
36
|
value: '==',
|
|
@@ -56,7 +46,6 @@ var useOperators = function useOperators(type) {
|
|
|
56
46
|
label: getLabel('stripes-kint-components.operator.isLessThanOrEqual')
|
|
57
47
|
});
|
|
58
48
|
}
|
|
59
|
-
|
|
60
49
|
if (type === DATE) {
|
|
61
50
|
// Basically the same as the "number" types above, so no need to reassign if there is no type
|
|
62
51
|
operators.push({
|
|
@@ -73,7 +62,6 @@ var useOperators = function useOperators(type) {
|
|
|
73
62
|
label: getLabel('stripes-kint-components.operator.isOnOrBefore')
|
|
74
63
|
});
|
|
75
64
|
}
|
|
76
|
-
|
|
77
65
|
if (!type || type === REFDATA) {
|
|
78
66
|
operators.push({
|
|
79
67
|
value: '==',
|
|
@@ -83,14 +71,12 @@ var useOperators = function useOperators(type) {
|
|
|
83
71
|
label: getLabel('stripes-kint-components.operator.isNot')
|
|
84
72
|
});
|
|
85
73
|
}
|
|
86
|
-
|
|
87
74
|
if (!type || type === MULTIREFDATA) {
|
|
88
75
|
operators.push({
|
|
89
76
|
value: '==',
|
|
90
77
|
label: getLabel('stripes-kint-components.operator.contains')
|
|
91
78
|
});
|
|
92
79
|
}
|
|
93
|
-
|
|
94
80
|
if (!type || type === TEXT) {
|
|
95
81
|
operators.push({
|
|
96
82
|
value: '=~',
|
|
@@ -100,9 +86,7 @@ var useOperators = function useOperators(type) {
|
|
|
100
86
|
label: getLabel('stripes-kint-components.operator.doesNotContain')
|
|
101
87
|
});
|
|
102
88
|
}
|
|
103
|
-
|
|
104
89
|
return operators;
|
|
105
90
|
};
|
|
106
|
-
|
|
107
91
|
var _default = useOperators;
|
|
108
92
|
exports.default = _default;
|
|
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _useOperators = _interopRequireDefault(require("./useOperators"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
|
-
|
|
14
10
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
15
|
-
|
|
16
11
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
|
-
|
|
18
12
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
19
|
-
|
|
20
13
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
21
|
-
|
|
22
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
-
|
|
24
15
|
var useParseActiveFilterStrings = function useParseActiveFilterStrings(filterStrings) {
|
|
25
16
|
var operators = (0, _useOperators.default)().map(function (o) {
|
|
26
17
|
return o.value;
|
|
@@ -30,15 +21,13 @@ var useParseActiveFilterStrings = function useParseActiveFilterStrings(filterStr
|
|
|
30
21
|
var customProperty;
|
|
31
22
|
var rules = filter.split('||').map(function (ruleString) {
|
|
32
23
|
var _operators$find;
|
|
33
|
-
|
|
34
24
|
// ruleString is constructed in this.handleSubmit passed to CustomPropertyFiltersForm
|
|
35
25
|
// and has shape "customProperties.foo.value!=42"
|
|
36
26
|
// OR customProperties.foo.value.id==1234, so make sure to disregard the .id
|
|
37
27
|
var _ruleString$split = ruleString.split('.value'),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
_ruleString$split2 = _slicedToArray(_ruleString$split, 2),
|
|
29
|
+
customPropertyPath = _ruleString$split2[0],
|
|
30
|
+
rule = _ruleString$split2[1];
|
|
42
31
|
var idSafeRule = rule.replace('.id', '');
|
|
43
32
|
customProperty = customPropertyPath.replace('customProperties.', '');
|
|
44
33
|
var operator = (_operators$find = operators.find(function (o) {
|
|
@@ -61,6 +50,5 @@ var useParseActiveFilterStrings = function useParseActiveFilterStrings(filterStr
|
|
|
61
50
|
numberOfFilters: numberOfFilters
|
|
62
51
|
};
|
|
63
52
|
};
|
|
64
|
-
|
|
65
53
|
var _default = useParseActiveFilterStrings;
|
|
66
54
|
exports.default = _default;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _components = require("@folio/stripes/components");
|
|
11
|
-
|
|
12
9
|
var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
13
|
-
|
|
14
10
|
var _validators = require("../../utils/validators");
|
|
15
|
-
|
|
16
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
13
|
var REFDATA = CUSTPROP_TYPES.REFDATA_CLASS_NAME,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
MULTIREFDATA = CUSTPROP_TYPES.MULTI_REFDATA_CLASS_NAME,
|
|
15
|
+
DECIMAL = CUSTPROP_TYPES.DECIMAL_CLASS_NAME,
|
|
16
|
+
INTEGER = CUSTPROP_TYPES.INTEGER_CLASS_NAME,
|
|
17
|
+
DATE = CUSTPROP_TYPES.DATE_CLASS_NAME,
|
|
18
|
+
TEXT = CUSTPROP_TYPES.TEXT_CLASS_NAME;
|
|
27
19
|
var useValueProps = function useValueProps(custPropDefinition) {
|
|
28
20
|
var props = {
|
|
29
21
|
validate: _validators.required
|
|
30
22
|
};
|
|
31
|
-
|
|
32
23
|
switch (custPropDefinition.type) {
|
|
33
24
|
case INTEGER:
|
|
34
25
|
case DECIMAL:
|
|
@@ -36,7 +27,6 @@ var useValueProps = function useValueProps(custPropDefinition) {
|
|
|
36
27
|
props.type = 'number';
|
|
37
28
|
props.validate = _validators.invalidNumber;
|
|
38
29
|
break;
|
|
39
|
-
|
|
40
30
|
case REFDATA:
|
|
41
31
|
props.component = _components.Select;
|
|
42
32
|
props.dataOptions = custPropDefinition.category.values.map(function (rdv) {
|
|
@@ -47,7 +37,6 @@ var useValueProps = function useValueProps(custPropDefinition) {
|
|
|
47
37
|
});
|
|
48
38
|
props.placeholder = ' ';
|
|
49
39
|
break;
|
|
50
|
-
|
|
51
40
|
case MULTIREFDATA:
|
|
52
41
|
props.component = _components.Select;
|
|
53
42
|
props.dataOptions = custPropDefinition.category.values.map(function (mrdv) {
|
|
@@ -58,22 +47,18 @@ var useValueProps = function useValueProps(custPropDefinition) {
|
|
|
58
47
|
});
|
|
59
48
|
props.placeholder = ' ';
|
|
60
49
|
break;
|
|
61
|
-
|
|
62
50
|
case DATE:
|
|
63
51
|
props.component = _components.Datepicker;
|
|
64
52
|
props.backendDateStandard = 'YYYY-MM-DD';
|
|
65
53
|
props.timeZone = 'UTC';
|
|
66
54
|
props.usePortal = true;
|
|
67
55
|
break;
|
|
68
|
-
|
|
69
56
|
case TEXT:
|
|
70
57
|
default:
|
|
71
58
|
props.component = _components.TextField;
|
|
72
59
|
break;
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
return props;
|
|
76
62
|
};
|
|
77
|
-
|
|
78
63
|
var _default = useValueProps;
|
|
79
64
|
exports.default = _default;
|
|
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
8
|
var _CustomPropertiesViewCtx = _interopRequireDefault(require("./CustomPropertiesViewCtx"));
|
|
11
|
-
|
|
12
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
11
|
var CustomPropertiesView = function CustomPropertiesView(_ref) {
|
|
17
12
|
var _ref$contexts = _ref.contexts,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
contexts = _ref$contexts === void 0 ? [] : _ref$contexts,
|
|
14
|
+
customProperties = _ref.customProperties,
|
|
15
|
+
customPropertiesEndpoint = _ref.customPropertiesEndpoint,
|
|
16
|
+
id = _ref.id,
|
|
17
|
+
_ref$labelOverrides = _ref.labelOverrides,
|
|
18
|
+
labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides;
|
|
24
19
|
return contexts.map(function (ctx) {
|
|
25
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesViewCtx.default, {
|
|
26
21
|
ctx: ctx,
|
|
@@ -31,7 +26,6 @@ var CustomPropertiesView = function CustomPropertiesView(_ref) {
|
|
|
31
26
|
}, "customPropertiesView-".concat(ctx));
|
|
32
27
|
});
|
|
33
28
|
};
|
|
34
|
-
|
|
35
29
|
CustomPropertiesView.propTypes = {
|
|
36
30
|
contexts: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
37
31
|
customProperties: _propTypes.default.object,
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
4
|
require("@folio/stripes-erm-components/test/jest/__mock__");
|
|
6
|
-
|
|
7
5
|
var _react2 = require("@testing-library/react");
|
|
8
|
-
|
|
9
6
|
var _reactRouterDom = require("react-router-dom");
|
|
10
|
-
|
|
11
7
|
var _helpers = require("../../../../test/jest/helpers");
|
|
12
|
-
|
|
13
8
|
var _testResources = require("./testResources");
|
|
14
|
-
|
|
15
9
|
var _CustomPropertiesView = _interopRequireDefault(require("./CustomPropertiesView"));
|
|
16
|
-
|
|
17
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
|
|
19
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
12
|
jest.mock('./CustomPropertiesViewCtx', function () {
|
|
22
13
|
return function () {
|
|
23
14
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -40,7 +31,7 @@ describe('CustomPropertiesView', function () {
|
|
|
40
31
|
});
|
|
41
32
|
it('renders CustomPropertiesViewCtx component ', function () {
|
|
42
33
|
var _renderComponent = renderComponent,
|
|
43
|
-
|
|
34
|
+
getByText = _renderComponent.getByText;
|
|
44
35
|
(0, _react2.waitFor)(function () {
|
|
45
36
|
return expect(getByText('CustomPropertiesViewCtx')).toBeInTheDocument();
|
|
46
37
|
});
|
|
@@ -4,68 +4,50 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
8
|
var _reactIntl = require("react-intl");
|
|
11
|
-
|
|
12
9
|
var _components = require("@folio/stripes/components");
|
|
13
|
-
|
|
14
10
|
var _hooks = require("../../hooks");
|
|
15
|
-
|
|
16
11
|
var _CustomPropertyCard = _interopRequireDefault(require("./CustomPropertyCard"));
|
|
17
|
-
|
|
18
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
|
-
|
|
24
15
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
|
-
|
|
26
16
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
27
|
-
|
|
28
17
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
29
|
-
|
|
30
18
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
31
|
-
|
|
32
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
|
-
|
|
34
20
|
var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
35
21
|
var _custprops$filter$len, _custprops$filter;
|
|
36
|
-
|
|
37
22
|
var ctx = _ref.ctx,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
_ref$customProperties = _ref.customProperties,
|
|
24
|
+
customProperties = _ref$customProperties === void 0 ? [] : _ref$customProperties,
|
|
25
|
+
customPropertiesEndpoint = _ref.customPropertiesEndpoint,
|
|
26
|
+
id = _ref.id,
|
|
27
|
+
_ref$labelOverrides = _ref.labelOverrides,
|
|
28
|
+
labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides;
|
|
45
29
|
// Deal with all the possible label override options
|
|
46
30
|
var getAccordionLabel = function getAccordionLabel() {
|
|
47
31
|
var _labelOverrides$defau;
|
|
48
|
-
|
|
49
32
|
// Special case for null context
|
|
50
33
|
if (ctx === 'isNull') {
|
|
51
34
|
var _labelOverrides$noCon;
|
|
52
|
-
|
|
53
35
|
return (_labelOverrides$noCon = labelOverrides.noContext) !== null && _labelOverrides$noCon !== void 0 ? _labelOverrides$noCon : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
54
36
|
id: "stripes-kint-components.customProperties"
|
|
55
37
|
});
|
|
56
|
-
}
|
|
57
|
-
|
|
38
|
+
}
|
|
58
39
|
|
|
40
|
+
// Label overrides for specific contexts
|
|
59
41
|
if (labelOverrides[ctx]) {
|
|
60
42
|
return labelOverrides[ctx];
|
|
61
|
-
}
|
|
62
|
-
|
|
43
|
+
}
|
|
63
44
|
|
|
45
|
+
// Label override for default title, taking ctx into account
|
|
64
46
|
if (labelOverrides.defaultTitle && typeof labelOverrides.defaultTitle === 'function') {
|
|
65
47
|
return labelOverrides.defaultTitle(ctx);
|
|
66
|
-
}
|
|
67
|
-
|
|
48
|
+
}
|
|
68
49
|
|
|
50
|
+
// Label override for default title or finally built in default
|
|
69
51
|
return (_labelOverrides$defau = labelOverrides.defaultTitle) !== null && _labelOverrides$defau !== void 0 ? _labelOverrides$defau : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
70
52
|
id: "stripes-kint-components.customProperties.ctx.title",
|
|
71
53
|
values: {
|
|
@@ -73,31 +55,32 @@ var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
|
73
55
|
}
|
|
74
56
|
});
|
|
75
57
|
};
|
|
76
|
-
|
|
77
58
|
var _useCustomProperties = (0, _hooks.useCustomProperties)({
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
59
|
+
ctx: ctx,
|
|
60
|
+
endpoint: customPropertiesEndpoint,
|
|
61
|
+
returnQueryObject: true,
|
|
62
|
+
options: {
|
|
63
|
+
sort: [{
|
|
64
|
+
path: 'retired'
|
|
65
|
+
},
|
|
66
|
+
// Place retired custprops at the end
|
|
67
|
+
{
|
|
68
|
+
path: 'primary',
|
|
69
|
+
direction: 'desc'
|
|
70
|
+
},
|
|
71
|
+
// Primary properties should display before optional
|
|
72
|
+
{
|
|
73
|
+
path: 'weight'
|
|
74
|
+
},
|
|
75
|
+
// Within those groups, sort by weight
|
|
76
|
+
{
|
|
77
|
+
path: 'label'
|
|
78
|
+
} // For those with the same weight, sort by label
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
custprops = _useCustomProperties.data,
|
|
83
|
+
isLoading = _useCustomProperties.isLoading;
|
|
101
84
|
if (isLoading) {
|
|
102
85
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Accordion, {
|
|
103
86
|
closedByDefault: true,
|
|
@@ -108,24 +91,21 @@ var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
|
108
91
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {})
|
|
109
92
|
});
|
|
110
93
|
}
|
|
111
|
-
|
|
112
94
|
var countSetProperties = function countSetProperties(primary) {
|
|
113
95
|
var _Object$entries$filte, _Object$entries, _Object$entries$filte2;
|
|
114
|
-
|
|
115
96
|
return (_Object$entries$filte = (_Object$entries = Object.entries(customProperties)) === null || _Object$entries === void 0 ? void 0 : (_Object$entries$filte2 = _Object$entries.filter(function (_ref2) {
|
|
116
97
|
var _cp$, _cp$$type, _cp$2, _cp$2$type, _cp$3, _cp$3$type;
|
|
117
|
-
|
|
118
98
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
99
|
+
_key = _ref3[0],
|
|
100
|
+
cp = _ref3[1];
|
|
101
|
+
return (((_cp$ = cp[0]) === null || _cp$ === void 0 ? void 0 : (_cp$$type = _cp$.type) === null || _cp$$type === void 0 ? void 0 : _cp$$type.ctx) === ctx || ctx === 'isNull' && !((_cp$2 = cp[0]) !== null && _cp$2 !== void 0 && (_cp$2$type = _cp$2.type) !== null && _cp$2$type !== void 0 && _cp$2$type.ctx)) &&
|
|
102
|
+
// Either the ctx string matches, or isNull matches blank
|
|
123
103
|
((_cp$3 = cp[0]) === null || _cp$3 === void 0 ? void 0 : (_cp$3$type = _cp$3.type) === null || _cp$3$type === void 0 ? void 0 : _cp$3$type.primary) === primary // Only count non-primary set custprops
|
|
124
104
|
;
|
|
125
105
|
})) === null || _Object$entries$filte2 === void 0 ? void 0 : _Object$entries$filte2.length) !== null && _Object$entries$filte !== void 0 ? _Object$entries$filte : 0;
|
|
126
|
-
};
|
|
127
|
-
|
|
106
|
+
};
|
|
128
107
|
|
|
108
|
+
// We need to display any set properties, along with any non-set primary properties
|
|
129
109
|
var primaryCount = (_custprops$filter$len = custprops === null || custprops === void 0 ? void 0 : (_custprops$filter = custprops.filter(function (cp) {
|
|
130
110
|
return cp.primary === true;
|
|
131
111
|
})) === null || _custprops$filter === void 0 ? void 0 : _custprops$filter.length) !== null && _custprops$filter$len !== void 0 ? _custprops$filter$len : 0;
|
|
@@ -143,7 +123,6 @@ var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
|
143
123
|
label: getAccordionLabel(),
|
|
144
124
|
children: custprops.map(function (cp, index) {
|
|
145
125
|
var _customProperties$cp$;
|
|
146
|
-
|
|
147
126
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyCard.default, {
|
|
148
127
|
ctx: ctx,
|
|
149
128
|
customProperty: customProperties === null || customProperties === void 0 ? void 0 : (_customProperties$cp$ = customProperties[cp.name]) === null || _customProperties$cp$ === void 0 ? void 0 : _customProperties$cp$[0],
|
|
@@ -154,7 +133,6 @@ var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
|
154
133
|
})
|
|
155
134
|
});
|
|
156
135
|
};
|
|
157
|
-
|
|
158
136
|
CustomPropertiesViewCtx.propTypes = {
|
|
159
137
|
ctx: _propTypes.default.string,
|
|
160
138
|
customProperties: _propTypes.default.object,
|
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
4
|
require("@folio/stripes-erm-components/test/jest/__mock__");
|
|
6
|
-
|
|
7
5
|
var _reactRouterDom = require("react-router-dom");
|
|
8
|
-
|
|
9
6
|
var _react2 = require("@testing-library/react");
|
|
10
|
-
|
|
11
7
|
var _helpers = require("../../../../test/jest/helpers");
|
|
12
|
-
|
|
13
8
|
var _testResources = require("./testResources");
|
|
14
|
-
|
|
15
9
|
var _CustomPropertiesViewCtx = _interopRequireDefault(require("./CustomPropertiesViewCtx"));
|
|
16
|
-
|
|
17
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
|
|
19
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
|
-
|
|
23
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
|
-
|
|
25
14
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
-
|
|
27
15
|
jest.mock('../../hooks', function () {
|
|
28
16
|
return {
|
|
29
17
|
useCustomProperties: function useCustomProperties() {
|
|
@@ -47,7 +35,7 @@ describe('CustomPropertiesViewCtx', function () {
|
|
|
47
35
|
});
|
|
48
36
|
it('renders CustomPropertyCard component ', function () {
|
|
49
37
|
var _renderComponent = renderComponent,
|
|
50
|
-
|
|
38
|
+
getByText = _renderComponent.getByText;
|
|
51
39
|
(0, _react2.waitFor)(function () {
|
|
52
40
|
return expect(getByText('CustomPropertyCard')).toBeInTheDocument();
|
|
53
41
|
});
|
|
@@ -1,56 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _reactIntl = require("react-intl");
|
|
13
|
-
|
|
14
10
|
var _components = require("@folio/stripes/components");
|
|
15
|
-
|
|
16
11
|
var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
17
|
-
|
|
18
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
16
|
var CustomPropertyCard = function CustomPropertyCard(_ref) {
|
|
27
17
|
var _labelOverrides$value, _labelOverrides$inter3, _labelOverrides$visib, _labelOverrides$publi;
|
|
28
|
-
|
|
29
18
|
var ctx = _ref.ctx,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
customProperty = _ref.customProperty,
|
|
20
|
+
_ref$customPropertyDe = _ref.customPropertyDefinition,
|
|
21
|
+
customPropertyDefinition = _ref$customPropertyDe === void 0 ? {} : _ref$customPropertyDe,
|
|
22
|
+
index = _ref.index,
|
|
23
|
+
_ref$labelOverrides = _ref.labelOverrides,
|
|
24
|
+
labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides;
|
|
36
25
|
// We only need to display primary and set properties
|
|
37
26
|
var toDisplay = !!(customPropertyDefinition.primary || customProperty);
|
|
38
|
-
|
|
39
27
|
if (!toDisplay) {
|
|
40
28
|
return null;
|
|
41
29
|
}
|
|
30
|
+
var internalFalse = (customProperty === null || customProperty === void 0 ? void 0 : customProperty.internal) === false || (customProperty === null || customProperty === void 0 ? void 0 : customProperty.internal) === undefined && customPropertyDefinition.defaultInternal === false;
|
|
42
31
|
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
// Deal with all the possible label override options
|
|
45
33
|
var getRetiredCardTitle = function getRetiredCardTitle() {
|
|
46
34
|
var _labelOverrides$retir;
|
|
47
|
-
|
|
48
35
|
// Label override for default card title,
|
|
49
36
|
if (labelOverrides.retiredName && typeof labelOverrides.retiredName === 'function') {
|
|
50
37
|
return labelOverrides.retiredName(customPropertyDefinition.name);
|
|
51
|
-
}
|
|
52
|
-
|
|
38
|
+
}
|
|
53
39
|
|
|
40
|
+
// Label override for default title or finally built in default
|
|
54
41
|
return (_labelOverrides$retir = labelOverrides.retiredName) !== null && _labelOverrides$retir !== void 0 ? _labelOverrides$retir : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
55
42
|
id: "stripes-kint-components.customProperty.retiredName",
|
|
56
43
|
values: {
|
|
@@ -58,65 +45,51 @@ var CustomPropertyCard = function CustomPropertyCard(_ref) {
|
|
|
58
45
|
}
|
|
59
46
|
});
|
|
60
47
|
};
|
|
61
|
-
|
|
62
48
|
var getInternalLabel = function getInternalLabel() {
|
|
63
49
|
var _labelOverrides$inter2;
|
|
64
|
-
|
|
65
50
|
if (internalFalse) {
|
|
66
51
|
var _labelOverrides$inter;
|
|
67
|
-
|
|
68
52
|
return (_labelOverrides$inter = labelOverrides.internalFalse) !== null && _labelOverrides$inter !== void 0 ? _labelOverrides$inter : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
69
53
|
id: "stripes-kint-components.customProperty.internalFalse"
|
|
70
54
|
});
|
|
71
55
|
}
|
|
72
|
-
|
|
73
56
|
return (_labelOverrides$inter2 = labelOverrides.internalTrue) !== null && _labelOverrides$inter2 !== void 0 ? _labelOverrides$inter2 : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
74
57
|
id: "stripes-kint-components.customProperty.internalTrue"
|
|
75
58
|
});
|
|
76
59
|
};
|
|
77
|
-
|
|
78
60
|
var renderValue = function renderValue() {
|
|
79
61
|
var _customProperty$value, _customProperty$value2, _customProperty$value3, _customProperty$value4;
|
|
80
|
-
|
|
81
62
|
if (!customProperty) {
|
|
82
63
|
var _labelOverrides$notSe;
|
|
83
|
-
|
|
84
64
|
return (_labelOverrides$notSe = labelOverrides.notSet) !== null && _labelOverrides$notSe !== void 0 ? _labelOverrides$notSe : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
85
65
|
id: "stripes-kint-components.customProperty.notSet"
|
|
86
66
|
});
|
|
87
67
|
}
|
|
88
|
-
|
|
89
68
|
switch (customPropertyDefinition.type) {
|
|
90
69
|
case CUSTPROP_TYPES.MULTI_REFDATA_CLASS_NAME:
|
|
91
70
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.List, {
|
|
92
71
|
items: (_customProperty$value = customProperty.value) === null || _customProperty$value === void 0 ? void 0 : _customProperty$value.map(function (item) {
|
|
93
72
|
var _item$label;
|
|
94
|
-
|
|
95
73
|
return (_item$label = item === null || item === void 0 ? void 0 : item.label) !== null && _item$label !== void 0 ? _item$label : item === null || item === void 0 ? void 0 : item.value;
|
|
96
74
|
}),
|
|
97
75
|
listStyle: "bullets"
|
|
98
76
|
});
|
|
99
|
-
|
|
100
77
|
case CUSTPROP_TYPES.REFDATA_CLASS_NAME:
|
|
101
78
|
return (_customProperty$value2 = (_customProperty$value3 = customProperty.value) === null || _customProperty$value3 === void 0 ? void 0 : _customProperty$value3.label) !== null && _customProperty$value2 !== void 0 ? _customProperty$value2 : (_customProperty$value4 = customProperty.value) === null || _customProperty$value4 === void 0 ? void 0 : _customProperty$value4.value;
|
|
102
|
-
|
|
103
79
|
case CUSTPROP_TYPES.DECIMAL_CLASS_NAME:
|
|
104
80
|
case CUSTPROP_TYPES.INTEGER_CLASS_NAME:
|
|
105
81
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedNumber, {
|
|
106
82
|
value: customProperty.value
|
|
107
83
|
});
|
|
108
|
-
|
|
109
84
|
case CUSTPROP_TYPES.DATE_CLASS_NAME:
|
|
110
85
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.FormattedUTCDate, {
|
|
111
86
|
value: customProperty.value
|
|
112
87
|
});
|
|
113
|
-
|
|
114
88
|
case CUSTPROP_TYPES.TEXT_CLASS_NAME:
|
|
115
89
|
default:
|
|
116
90
|
return customProperty.value;
|
|
117
91
|
}
|
|
118
92
|
};
|
|
119
|
-
|
|
120
93
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Card, {
|
|
121
94
|
headerStart: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
122
95
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("strong", {
|
|
@@ -175,7 +148,6 @@ var CustomPropertyCard = function CustomPropertyCard(_ref) {
|
|
|
175
148
|
})]
|
|
176
149
|
}, "customPropertyCard-".concat(ctx, "[").concat(index, "]"));
|
|
177
150
|
};
|
|
178
|
-
|
|
179
151
|
CustomPropertyCard.propTypes = {
|
|
180
152
|
ctx: _propTypes.default.string,
|
|
181
153
|
customProperty: _propTypes.default.object,
|