@k-int/stripes-kint-components 4.7.2 → 4.7.3
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/index.js +2 -2
- package/es/lib/ActionList/ActionList.js +3 -4
- package/es/lib/ActionList/ActionListFieldArray.js +32 -36
- package/es/lib/ComboButton/ComboButton.js +6 -8
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -9
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +30 -34
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +59 -60
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +33 -35
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +2 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +4 -5
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +6 -12
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +21 -29
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +3 -4
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
- package/es/lib/CustomProperties/Edit/testResources.js +14 -17
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +7 -13
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +21 -30
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +7 -8
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -10
- package/es/lib/CustomProperties/Filter/testResources.js +5 -9
- package/es/lib/CustomProperties/Filter/useOperators.js +3 -4
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -4
- package/es/lib/CustomProperties/Filter/useValueProps.js +3 -4
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +2 -3
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +19 -28
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -15
- package/es/lib/CustomProperties/View/testResources.js +5 -9
- package/es/lib/CycleButton/CycleButton.js +2 -3
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +24 -36
- package/es/lib/EditableRefdataList/EditableRefdataList.js +29 -37
- package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -2
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -3
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +6 -7
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +11 -14
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +7 -8
- package/es/lib/FormModal/FormModal.js +1 -2
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +5 -9
- package/es/lib/IconSelect/IconSelect.js +8 -13
- package/es/lib/NoResultsMessage/NoResultsMessage.js +5 -6
- package/es/lib/QueryTypedown/QueryTypedown.js +3 -4
- package/es/lib/RefdataButtons/RefdataButtons.js +4 -5
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +22 -30
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +6 -8
- package/es/lib/RichSelect/RichSelect.js +15 -21
- package/es/lib/RichSelect/useSelectedOption.js +2 -4
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +15 -19
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +5 -8
- package/es/lib/SASQRoute/SASQRoute.js +3 -4
- package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -11
- package/es/lib/SearchField/SearchField.js +1 -2
- package/es/lib/SettingPage/SettingPage.js +3 -4
- package/es/lib/SettingPage/SettingPagePane.js +3 -4
- package/es/lib/SettingsFormContainer/SettingsFormContainer.js +3 -4
- package/es/lib/Typedown/Typedown.js +22 -30
- package/es/lib/constants/customProperties.js +11 -22
- package/es/lib/constants/endpoints.js +1 -2
- package/es/lib/constants/eventCodes.js +3 -6
- package/es/lib/contexts/SettingsContext.js +1 -2
- package/es/lib/hooks/typedownHooks/useTypedown.js +3 -4
- package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +3 -4
- package/es/lib/hooks/useActiveElement.js +2 -3
- package/es/lib/hooks/useCustomProperties.js +3 -4
- package/es/lib/hooks/useHelperApp.js +9 -10
- package/es/lib/hooks/useIntlKey.js +1 -2
- package/es/lib/hooks/useIntlKeyStore.js +5 -9
- package/es/lib/hooks/useInvalidateRefdata.js +1 -2
- package/es/lib/hooks/useKintIntl.js +6 -13
- package/es/lib/hooks/useKiwtFieldArray.js +1 -2
- package/es/lib/hooks/useKiwtSASQuery.js +4 -5
- package/es/lib/hooks/useLocalStorageState.js +3 -4
- package/es/lib/hooks/useModConfigEntries.js +3 -4
- package/es/lib/hooks/useMutateCustomProperties.js +9 -10
- package/es/lib/hooks/useMutateModConfigEntry.js +3 -4
- package/es/lib/hooks/useMutateRefdataCategory.js +5 -6
- package/es/lib/hooks/useMutateRefdataValue.js +7 -8
- package/es/lib/hooks/useQIndex.js +8 -9
- package/es/lib/hooks/useRefdata.js +4 -5
- package/es/lib/hooks/useSASQQueryMeta.js +1 -2
- package/es/lib/hooks/useTemplates.js +5 -6
- package/es/lib/settingsHooks/useAppSettings.js +8 -13
- package/es/lib/settingsHooks/useSettingSection.js +3 -4
- package/es/lib/settingsHooks/useSettings.js +4 -5
- package/es/lib/utils/buildUrl.js +1 -1
- package/es/lib/utils/generateKiwtQuery.js +1 -2
- package/es/lib/utils/generateKiwtQueryParams.js +28 -38
- package/es/lib/utils/groupCustomPropertiesByCtx.js +3 -5
- package/es/lib/utils/matchString.js +2 -3
- package/es/lib/utils/modConfigEntriesQueryKey.js +1 -2
- package/es/lib/utils/parseErrorResponse.js +3 -5
- package/es/lib/utils/parseKiwtQueryGroups.js +5 -7
- package/es/lib/utils/parseModConfigEntry.js +1 -2
- package/es/lib/utils/refdataOptions.js +2 -3
- package/es/lib/utils/refdataQueryKey.js +1 -2
- package/es/lib/utils/selectorSafe.js +4 -6
- package/es/lib/utils/sortByLabel.js +3 -5
- package/es/lib/utils/toCamelCase.js +1 -2
- package/es/lib/utils/typedownQueryKey.js +1 -2
- package/es/lib/validators/validators.js +3 -3
- package/package.json +12 -2
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
- package/junit.xml +0 -293
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -373
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1465
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1240
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -751
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -853
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -280
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -259
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -574
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -205
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -580
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -301
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -220
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +0 -337
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -913
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
- package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
- package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -401
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -142
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -295
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
- package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +0 -226
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +0 -238
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/index.html +0 -611
- package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
- package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +0 -292
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +0 -466
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -356
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -169
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +0 -142
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -361
- package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +0 -130
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -145
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov-report/validators/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov.info +0 -5223
|
@@ -5,20 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.filterHandlers = exports.data = exports.activeFilters = void 0;
|
|
7
7
|
var _jest = require("../../../../test/jest");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
'customProperties': ["customProperties.AuthorIdentification.value==".concat(_jest.refdata === null || _jest.refdata === void 0 ? void 0 : (_refdata$find = _jest.refdata.find(rdc => rdc.desc === 'AuthIdent')) === null || _refdata$find === void 0 ? void 0 : (_refdata$find$values = _refdata$find.values) === null || _refdata$find$values === void 0 ? void 0 : (_refdata$find$values$ = _refdata$find$values.find(rdv => rdv.value === 'email_domain')) === null || _refdata$find$values$ === void 0 ? void 0 : _refdata$find$values$.id)]
|
|
8
|
+
const activeFilters = exports.activeFilters = {
|
|
9
|
+
'customProperties': [`customProperties.AuthorIdentification.value==${_jest.refdata?.find(rdc => rdc.desc === 'AuthIdent')?.values?.find(rdv => rdv.value === 'email_domain')?.id}`]
|
|
11
10
|
};
|
|
12
|
-
exports.
|
|
13
|
-
const filterHandlers = {
|
|
11
|
+
const filterHandlers = exports.filterHandlers = {
|
|
14
12
|
'state': () => ({}),
|
|
15
13
|
'checkbox': () => ({}),
|
|
16
14
|
'clear': () => ({}),
|
|
17
15
|
'clearGroup': () => ({}),
|
|
18
16
|
'reset': () => ({})
|
|
19
17
|
};
|
|
20
|
-
exports.
|
|
21
|
-
const data = {
|
|
18
|
+
const data = exports.data = {
|
|
22
19
|
customProperties: _jest.customProperties,
|
|
23
20
|
editingFilters: true,
|
|
24
21
|
filters: [{
|
|
@@ -39,5 +36,4 @@ const data = {
|
|
|
39
36
|
'openEditModal': () => ({})
|
|
40
37
|
},
|
|
41
38
|
'onSubmit': () => ({})
|
|
42
|
-
};
|
|
43
|
-
exports.data = data;
|
|
39
|
+
};
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
8
8
|
var _hooks = require("../../hooks");
|
|
9
|
-
function _getRequireWildcardCache(
|
|
10
|
-
function _interopRequireWildcard(
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
11
|
const {
|
|
12
12
|
REFDATA_CLASS_NAME: REFDATA,
|
|
13
13
|
MULTI_REFDATA_CLASS_NAME: MULTIREFDATA,
|
|
@@ -133,5 +133,4 @@ const useOperators = function () {
|
|
|
133
133
|
}
|
|
134
134
|
return operators;
|
|
135
135
|
};
|
|
136
|
-
var _default = useOperators;
|
|
137
|
-
exports.default = _default;
|
|
136
|
+
var _default = exports.default = useOperators;
|
|
@@ -13,14 +13,13 @@ const useParseActiveFilterStrings = function (filterStrings, passedIntlKey, pass
|
|
|
13
13
|
const filters = filterStrings.map(filter => {
|
|
14
14
|
let customProperty;
|
|
15
15
|
const rules = filter.split('||').map(ruleString => {
|
|
16
|
-
var _operators$find;
|
|
17
16
|
// ruleString is constructed in this.handleSubmit passed to CustomPropertyFiltersForm
|
|
18
17
|
// and has shape "customProperties.foo.value!=42"
|
|
19
18
|
// OR customProperties.foo.value.id==1234, so make sure to disregard the .id
|
|
20
19
|
const [customPropertyPath, rule] = ruleString.split('.value');
|
|
21
20
|
const idSafeRule = rule.replace('.id', '');
|
|
22
21
|
customProperty = customPropertyPath.replace('customProperties.', '');
|
|
23
|
-
const operator =
|
|
22
|
+
const operator = operators.find(o => idSafeRule.startsWith(o)) ?? '';
|
|
24
23
|
const value = idSafeRule.substring(operator.length);
|
|
25
24
|
numberOfFilters += 1;
|
|
26
25
|
return {
|
|
@@ -38,5 +37,4 @@ const useParseActiveFilterStrings = function (filterStrings, passedIntlKey, pass
|
|
|
38
37
|
numberOfFilters
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
|
-
var _default = useParseActiveFilterStrings;
|
|
42
|
-
exports.default = _default;
|
|
40
|
+
var _default = exports.default = useParseActiveFilterStrings;
|
|
@@ -7,8 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var _components = require("@folio/stripes/components");
|
|
8
8
|
var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
9
9
|
var _validators = require("../../validators");
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
const {
|
|
13
13
|
REFDATA_CLASS_NAME: REFDATA,
|
|
14
14
|
MULTI_REFDATA_CLASS_NAME: MULTIREFDATA,
|
|
@@ -58,5 +58,4 @@ const useValueProps = function (custPropDefinition, intlKey, intlNS) {
|
|
|
58
58
|
}
|
|
59
59
|
return props;
|
|
60
60
|
};
|
|
61
|
-
var _default = useValueProps;
|
|
62
|
-
exports.default = _default;
|
|
61
|
+
var _default = exports.default = useValueProps;
|
|
@@ -26,7 +26,7 @@ const CustomPropertiesView = _ref => {
|
|
|
26
26
|
intlKey: passedIntlKey,
|
|
27
27
|
intlNS: passedIntlNS,
|
|
28
28
|
labelOverrides
|
|
29
|
-
},
|
|
29
|
+
}, `customPropertiesView-${ctx}`));
|
|
30
30
|
};
|
|
31
31
|
CustomPropertiesView.propTypes = {
|
|
32
32
|
contexts: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
@@ -38,5 +38,4 @@ CustomPropertiesView.propTypes = {
|
|
|
38
38
|
labelOverrides: _propTypes.default.object,
|
|
39
39
|
nameOverride: _propTypes.default.string
|
|
40
40
|
};
|
|
41
|
-
var _default = CustomPropertiesView;
|
|
42
|
-
exports.default = _default;
|
|
41
|
+
var _default = exports.default = CustomPropertiesView;
|
|
@@ -11,7 +11,6 @@ var _CustomPropertyCard = _interopRequireDefault(require("./CustomPropertyCard")
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
const CustomPropertiesViewCtx = _ref => {
|
|
14
|
-
var _custprops$filter$len, _custprops$filter;
|
|
15
14
|
let {
|
|
16
15
|
ctx,
|
|
17
16
|
customProperties = [],
|
|
@@ -36,7 +35,7 @@ const CustomPropertiesViewCtx = _ref => {
|
|
|
36
35
|
// Chain formatKintMessages together using provided fallbackMessage to
|
|
37
36
|
// allow for "If override or translation exists, use it, else use default"
|
|
38
37
|
return kintIntl.formatKintMessage({
|
|
39
|
-
id:
|
|
38
|
+
id: `customProperties.ctx.${ctx}`,
|
|
40
39
|
overrideValue: labelOverrides[ctx],
|
|
41
40
|
fallbackMessage: kintIntl.formatKintMessage({
|
|
42
41
|
id: 'customProperties.defaultTitle',
|
|
@@ -81,25 +80,21 @@ const CustomPropertiesViewCtx = _ref => {
|
|
|
81
80
|
closedByDefault: true,
|
|
82
81
|
displayWhenClosed: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {}),
|
|
83
82
|
displayWhenOpen: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {}),
|
|
84
|
-
id:
|
|
83
|
+
id: `${id}-accordion-${ctx}`,
|
|
85
84
|
label: getAccordionLabel(),
|
|
86
85
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {})
|
|
87
86
|
});
|
|
88
87
|
}
|
|
89
|
-
const countSetProperties = primary => {
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
((_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
|
|
97
|
-
;
|
|
98
|
-
})) === null || _Object$entries$filte2 === void 0 ? void 0 : _Object$entries$filte2.length) !== null && _Object$entries$filte !== void 0 ? _Object$entries$filte : 0;
|
|
99
|
-
};
|
|
88
|
+
const countSetProperties = primary => Object.entries(customProperties)?.filter(_ref2 => {
|
|
89
|
+
let [_key, cp] = _ref2;
|
|
90
|
+
return (cp[0]?.type?.ctx === ctx || ctx === 'isNull' && !cp[0]?.type?.ctx) &&
|
|
91
|
+
// Either the ctx string matches, or isNull matches blank
|
|
92
|
+
cp[0]?.type?.primary === primary // Only count non-primary set custprops
|
|
93
|
+
;
|
|
94
|
+
})?.length ?? 0;
|
|
100
95
|
|
|
101
96
|
// We need to display any set properties, along with any non-set primary properties
|
|
102
|
-
const primaryCount =
|
|
97
|
+
const primaryCount = custprops?.filter(cp => cp.primary === true)?.length ?? 0;
|
|
103
98
|
const optionalCount = countSetProperties(false);
|
|
104
99
|
const setPrimaryCount = countSetProperties(true);
|
|
105
100
|
return primaryCount + optionalCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Accordion, {
|
|
@@ -110,18 +105,15 @@ const CustomPropertiesViewCtx = _ref => {
|
|
|
110
105
|
displayWhenOpen: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Badge, {
|
|
111
106
|
children: setPrimaryCount + optionalCount
|
|
112
107
|
}),
|
|
113
|
-
id:
|
|
108
|
+
id: `${id}-accordion-${ctx}`,
|
|
114
109
|
label: getAccordionLabel(),
|
|
115
|
-
children: custprops.map((cp, index) => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
labelOverrides: labelOverrides
|
|
123
|
-
}, "custom-property-card-".concat(ctx, "[").concat(index, "]"));
|
|
124
|
-
})
|
|
110
|
+
children: custprops.map((cp, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyCard.default, {
|
|
111
|
+
ctx: ctx,
|
|
112
|
+
customProperty: customProperties?.[cp.name]?.[0],
|
|
113
|
+
customPropertyDefinition: cp,
|
|
114
|
+
index: index,
|
|
115
|
+
labelOverrides: labelOverrides
|
|
116
|
+
}, `custom-property-card-${ctx}[${index}]`))
|
|
125
117
|
});
|
|
126
118
|
};
|
|
127
119
|
CustomPropertiesViewCtx.propTypes = {
|
|
@@ -133,5 +125,4 @@ CustomPropertiesViewCtx.propTypes = {
|
|
|
133
125
|
intlNS: _propTypes.default.string,
|
|
134
126
|
labelOverrides: _propTypes.default.object
|
|
135
127
|
};
|
|
136
|
-
var _default = CustomPropertiesViewCtx;
|
|
137
|
-
exports.default = _default;
|
|
128
|
+
var _default = exports.default = CustomPropertiesViewCtx;
|
|
@@ -10,8 +10,8 @@ var _components = require("@folio/stripes/components");
|
|
|
10
10
|
var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
11
11
|
var _hooks = require("../../hooks");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
const CustomPropertyCard = _ref => {
|
|
17
17
|
let {
|
|
@@ -30,9 +30,8 @@ const CustomPropertyCard = _ref => {
|
|
|
30
30
|
if (!toDisplay) {
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
33
|
-
const internalFalse =
|
|
33
|
+
const internalFalse = customProperty?.internal === false || customProperty?.internal === undefined && customPropertyDefinition.defaultInternal === false;
|
|
34
34
|
const renderValue = () => {
|
|
35
|
-
var _customProperty$value, _customProperty$value2, _customProperty$value3, _customProperty$value4;
|
|
36
35
|
if (!customProperty) {
|
|
37
36
|
return kintIntl.formatKintMessage({
|
|
38
37
|
id: 'notSet',
|
|
@@ -42,14 +41,11 @@ const CustomPropertyCard = _ref => {
|
|
|
42
41
|
switch (customPropertyDefinition.type) {
|
|
43
42
|
case CUSTPROP_TYPES.MULTI_REFDATA_CLASS_NAME:
|
|
44
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.List, {
|
|
45
|
-
items:
|
|
46
|
-
var _item$label;
|
|
47
|
-
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;
|
|
48
|
-
}),
|
|
44
|
+
items: customProperty.value?.map(item => item?.label ?? item?.value),
|
|
49
45
|
listStyle: "bullets"
|
|
50
46
|
});
|
|
51
47
|
case CUSTPROP_TYPES.REFDATA_CLASS_NAME:
|
|
52
|
-
return
|
|
48
|
+
return customProperty.value?.label ?? customProperty.value?.value;
|
|
53
49
|
case CUSTPROP_TYPES.DECIMAL_CLASS_NAME:
|
|
54
50
|
case CUSTPROP_TYPES.INTEGER_CLASS_NAME:
|
|
55
51
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedNumber, {
|
|
@@ -77,7 +73,7 @@ const CustomPropertyCard = _ref => {
|
|
|
77
73
|
content: customPropertyDefinition.description
|
|
78
74
|
}) : null]
|
|
79
75
|
}),
|
|
80
|
-
id:
|
|
76
|
+
id: `customproperty-card-${index}`,
|
|
81
77
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
|
|
82
78
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
83
79
|
xs: 6,
|
|
@@ -88,7 +84,7 @@ const CustomPropertyCard = _ref => {
|
|
|
88
84
|
}),
|
|
89
85
|
children: renderValue()
|
|
90
86
|
})
|
|
91
|
-
}), customProperty
|
|
87
|
+
}), customProperty?.note ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
92
88
|
xs: 6,
|
|
93
89
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
94
90
|
label: kintIntl.formatKintMessage({
|
|
@@ -123,7 +119,7 @@ const CustomPropertyCard = _ref => {
|
|
|
123
119
|
id: 'customProperties.publicNote',
|
|
124
120
|
overrideValue: labelOverrides.publicNote
|
|
125
121
|
}),
|
|
126
|
-
children: customProperty
|
|
122
|
+
children: customProperty?.publicNote ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
127
123
|
style: {
|
|
128
124
|
whiteSpace: 'pre-wrap'
|
|
129
125
|
},
|
|
@@ -132,7 +128,7 @@ const CustomPropertyCard = _ref => {
|
|
|
132
128
|
})
|
|
133
129
|
})]
|
|
134
130
|
})]
|
|
135
|
-
},
|
|
131
|
+
}, `customPropertyCard-${ctx}[${index}]`);
|
|
136
132
|
};
|
|
137
133
|
CustomPropertyCard.propTypes = {
|
|
138
134
|
ctx: _propTypes.default.string,
|
|
@@ -143,5 +139,4 @@ CustomPropertyCard.propTypes = {
|
|
|
143
139
|
intlNS: _propTypes.default.string,
|
|
144
140
|
labelOverrides: _propTypes.default.object
|
|
145
141
|
};
|
|
146
|
-
var _default = CustomPropertyCard;
|
|
147
|
-
exports.default = _default;
|
|
142
|
+
var _default = exports.default = CustomPropertyCard;
|
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.labelOverrides = exports.data = exports.customProperties = exports.contexts = void 0;
|
|
7
|
-
const contexts = ['isNull', 'OpenAccess'];
|
|
8
|
-
exports.
|
|
9
|
-
const customProperties = {
|
|
7
|
+
const contexts = exports.contexts = ['isNull', 'OpenAccess'];
|
|
8
|
+
const customProperties = exports.customProperties = {
|
|
10
9
|
'AuthorIdentification': [{
|
|
11
10
|
'id': 2,
|
|
12
11
|
'publicNote': 'public note',
|
|
@@ -65,15 +64,13 @@ const customProperties = {
|
|
|
65
64
|
}
|
|
66
65
|
}]
|
|
67
66
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const labelOverrides = {
|
|
67
|
+
const labelOverrides = exports.labelOverrides = {
|
|
70
68
|
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
71
69
|
'noContext': '<Memo />',
|
|
72
70
|
'OpenAccess': '<Memo />',
|
|
73
71
|
'retiredName': 'ƒ retiredName() {}'
|
|
74
72
|
};
|
|
75
|
-
exports.
|
|
76
|
-
const data = {
|
|
73
|
+
const data = exports.data = {
|
|
77
74
|
'ctx': 'isNull',
|
|
78
75
|
'customProperties': {
|
|
79
76
|
'AuthorIdentification': [{
|
|
@@ -140,5 +137,4 @@ const data = {
|
|
|
140
137
|
'OpenAccess': '<Memo />',
|
|
141
138
|
'retiredName': 'ƒ retiredName() {}'
|
|
142
139
|
}
|
|
143
|
-
};
|
|
144
|
-
exports.data = data;
|
|
140
|
+
};
|
|
@@ -29,7 +29,7 @@ const CycleButton = _ref => {
|
|
|
29
29
|
if (onClick) {
|
|
30
30
|
onClick(e);
|
|
31
31
|
}
|
|
32
|
-
setIndex(index !==
|
|
32
|
+
setIndex(index !== buttons?.length - 1 ? index + 1 : 0);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
};
|
|
@@ -41,5 +41,4 @@ CycleButton.propTypes = {
|
|
|
41
41
|
})),
|
|
42
42
|
startIndex: _propTypes.default.number
|
|
43
43
|
};
|
|
44
|
-
var _default = CycleButton;
|
|
45
|
-
exports.default = _default;
|
|
44
|
+
var _default = exports.default = CycleButton;
|
|
@@ -14,8 +14,8 @@ var _validators = require("../validators");
|
|
|
14
14
|
var _utils = require("../utils");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
function _getRequireWildcardCache(
|
|
18
|
-
function _interopRequireWildcard(
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
const propTypes = {
|
|
20
20
|
afterQueryCalls: _propTypes.default.object,
|
|
21
21
|
catchQueryCalls: _propTypes.default.object,
|
|
@@ -31,7 +31,6 @@ const propTypes = {
|
|
|
31
31
|
refdataEndpoint: _propTypes.default.string
|
|
32
32
|
};
|
|
33
33
|
const EditableRefdataCategoryList = _ref => {
|
|
34
|
-
var _deleteModal$refdata2;
|
|
35
34
|
let {
|
|
36
35
|
afterQueryCalls,
|
|
37
36
|
catchQueryCalls,
|
|
@@ -77,8 +76,7 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
77
76
|
const sortByDesc = (a, b) => a.desc.localeCompare(b.desc);
|
|
78
77
|
(0, _react.useEffect)(() => {
|
|
79
78
|
if (!isRefdataLoading) {
|
|
80
|
-
|
|
81
|
-
setContentData((_refdata$sort = refdata === null || refdata === void 0 ? void 0 : refdata.sort(sortByDesc)) !== null && _refdata$sort !== void 0 ? _refdata$sort : []);
|
|
79
|
+
setContentData(refdata?.sort(sortByDesc) ?? []);
|
|
82
80
|
}
|
|
83
81
|
}, [isRefdataLoading, refdata]);
|
|
84
82
|
|
|
@@ -89,12 +87,12 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
89
87
|
} = (0, _hooks.useMutateRefdataCategory)({
|
|
90
88
|
afterQueryCalls: {
|
|
91
89
|
delete: json => {
|
|
92
|
-
if (afterQueryCalls
|
|
90
|
+
if (afterQueryCalls?.delete) {
|
|
93
91
|
afterQueryCalls.delete(json);
|
|
94
92
|
}
|
|
95
93
|
},
|
|
96
94
|
post: json => {
|
|
97
|
-
if (afterQueryCalls
|
|
95
|
+
if (afterQueryCalls?.post) {
|
|
98
96
|
afterQueryCalls.post(json);
|
|
99
97
|
}
|
|
100
98
|
}
|
|
@@ -103,15 +101,14 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
103
101
|
// Default delete behaviour is to fire a callout, either with kint-components default message
|
|
104
102
|
// or one provided in labelOverrides, which is passed the error message and refdata in question
|
|
105
103
|
delete: async err => {
|
|
106
|
-
var _deleteModal$refdata;
|
|
107
104
|
const errorResp = await (0, _utils.parseErrorResponse)(err.response);
|
|
108
105
|
callout.sendCallout({
|
|
109
106
|
message: kintIntl.formatKintMessage({
|
|
110
107
|
id: 'refdataCategory.deleteRefdataCategory.errorMessage',
|
|
111
|
-
overrideValue: labelOverrides
|
|
108
|
+
overrideValue: labelOverrides?.deleteError
|
|
112
109
|
}, {
|
|
113
|
-
label: deleteModal
|
|
114
|
-
error: errorResp
|
|
110
|
+
label: deleteModal?.refdata?.label,
|
|
111
|
+
error: errorResp?.message
|
|
115
112
|
}),
|
|
116
113
|
type: 'error'
|
|
117
114
|
});
|
|
@@ -120,7 +117,7 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
120
117
|
},
|
|
121
118
|
|
|
122
119
|
endpoint: refdataEndpoint,
|
|
123
|
-
id: refdata
|
|
120
|
+
id: refdata?.id,
|
|
124
121
|
queryParams: {
|
|
125
122
|
delete: {
|
|
126
123
|
enabled: !!refdata
|
|
@@ -136,14 +133,13 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
136
133
|
|
|
137
134
|
// This is the function which will take a row in the table and assign the relevant actions to it
|
|
138
135
|
const actionAssigner = rowData => {
|
|
139
|
-
var _rowData$values;
|
|
140
136
|
const actionArray = [];
|
|
141
|
-
if (!
|
|
137
|
+
if (!rowData?.values?.length && deleteCondition) {
|
|
142
138
|
actionArray.push({
|
|
143
139
|
name: 'delete',
|
|
144
140
|
label: kintIntl.formatKintMessage({
|
|
145
141
|
id: 'delete',
|
|
146
|
-
overrideValue: labelOverrides
|
|
142
|
+
overrideValue: labelOverrides?.delete
|
|
147
143
|
}),
|
|
148
144
|
icon: 'trash',
|
|
149
145
|
callback: data => setDeleteModal({
|
|
@@ -152,9 +148,9 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
152
148
|
}),
|
|
153
149
|
ariaLabel: data => kintIntl.formatKintMessage({
|
|
154
150
|
id: 'refdataCategory.deleteAriaLabel',
|
|
155
|
-
overrideValue: labelOverrides
|
|
151
|
+
overrideValue: labelOverrides?.deleteAriaLabel
|
|
156
152
|
}, {
|
|
157
|
-
label: data
|
|
153
|
+
label: data?.label
|
|
158
154
|
})
|
|
159
155
|
});
|
|
160
156
|
}
|
|
@@ -166,11 +162,11 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
166
162
|
columnMapping: {
|
|
167
163
|
desc: kintIntl.formatKintMessage({
|
|
168
164
|
id: 'refdataCategory.refdataCategory',
|
|
169
|
-
overrideValue: labelOverrides
|
|
165
|
+
overrideValue: labelOverrides?.refdataCategory
|
|
170
166
|
}),
|
|
171
167
|
values: kintIntl.formatKintMessage({
|
|
172
168
|
id: 'refdataCategory.noOfValues',
|
|
173
|
-
overrideValue: labelOverrides
|
|
169
|
+
overrideValue: labelOverrides?.noOfValues
|
|
174
170
|
})
|
|
175
171
|
},
|
|
176
172
|
contentData: contentData,
|
|
@@ -179,16 +175,10 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
179
175
|
},
|
|
180
176
|
createCallback: !createCondition ? null : data => createRefdataCategory(data),
|
|
181
177
|
formatter: {
|
|
182
|
-
values: rowData =>
|
|
183
|
-
var _rowData$values2;
|
|
184
|
-
return rowData === null || rowData === void 0 ? void 0 : (_rowData$values2 = rowData.values) === null || _rowData$values2 === void 0 ? void 0 : _rowData$values2.length;
|
|
185
|
-
}
|
|
178
|
+
values: rowData => rowData?.values?.length
|
|
186
179
|
}
|
|
187
180
|
/* Hide actions column when no permissions, or no deletable refdata categories */,
|
|
188
|
-
hideActionsColumn: !createCondition && !deleteCondition || !
|
|
189
|
-
var _cd$values;
|
|
190
|
-
return (cd === null || cd === void 0 ? void 0 : (_cd$values = cd.values) === null || _cd$values === void 0 ? void 0 : _cd$values.length) === 0;
|
|
191
|
-
})),
|
|
181
|
+
hideActionsColumn: !createCondition && !deleteCondition || !contentData?.find(cd => cd?.values?.length === 0),
|
|
192
182
|
label: label,
|
|
193
183
|
validateFields: {
|
|
194
184
|
desc: () => _validators.required
|
|
@@ -197,34 +187,32 @@ const EditableRefdataCategoryList = _ref => {
|
|
|
197
187
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ConfirmationModal, {
|
|
198
188
|
confirmLabel: kintIntl.formatKintMessage({
|
|
199
189
|
id: 'delete',
|
|
200
|
-
overrideValue: labelOverrides
|
|
190
|
+
overrideValue: labelOverrides?.delete
|
|
201
191
|
}),
|
|
202
192
|
heading: kintIntl.formatKintMessage({
|
|
203
193
|
id: 'refdataCategory.deleteRefdataCategory',
|
|
204
|
-
overrideValue: labelOverrides
|
|
194
|
+
overrideValue: labelOverrides?.deleteRefdataCategory
|
|
205
195
|
}),
|
|
206
196
|
message: kintIntl.formatKintMessage({
|
|
207
197
|
id: 'refdataCategory.deleteRefdataCategory.confirmMessage',
|
|
208
|
-
overrideValue: labelOverrides
|
|
198
|
+
overrideValue: labelOverrides?.deleteRefdataCategoryMessage
|
|
209
199
|
}, {
|
|
210
|
-
name: deleteModal
|
|
200
|
+
name: deleteModal?.refdata?.desc
|
|
211
201
|
}),
|
|
212
202
|
onCancel: () => setDeleteModal({
|
|
213
203
|
visible: false,
|
|
214
204
|
refdata: null
|
|
215
205
|
}),
|
|
216
206
|
onConfirm: () => {
|
|
217
|
-
|
|
218
|
-
deleteRefdataCategory(deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata3 = deleteModal.refdata) === null || _deleteModal$refdata3 === void 0 ? void 0 : _deleteModal$refdata3.id);
|
|
207
|
+
deleteRefdataCategory(deleteModal?.refdata?.id);
|
|
219
208
|
setDeleteModal({
|
|
220
209
|
visible: false,
|
|
221
210
|
refdata: null
|
|
222
211
|
});
|
|
223
212
|
},
|
|
224
|
-
open: deleteModal
|
|
213
|
+
open: deleteModal?.visible
|
|
225
214
|
})]
|
|
226
215
|
});
|
|
227
216
|
};
|
|
228
217
|
EditableRefdataCategoryList.propTypes = propTypes;
|
|
229
|
-
var _default = EditableRefdataCategoryList;
|
|
230
|
-
exports.default = _default;
|
|
218
|
+
var _default = exports.default = EditableRefdataCategoryList;
|