@k-int/stripes-kint-components 4.7.1 → 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 +8 -1
- package/README.md +1 -1
- 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
|
@@ -28,12 +28,12 @@ const calculateCumulativeThreshold = function (arrayOfNumbers, maximum) {
|
|
|
28
28
|
let value = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
29
29
|
// If all the numbers fit, return the last index
|
|
30
30
|
if (arrayOfNumbers.reduce((partialSum, a) => partialSum + a, 0) <= maximum) {
|
|
31
|
-
return
|
|
31
|
+
return arrayOfNumbers?.length - 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
// Else we'll need a down arrow button, so include that in calculations
|
|
35
35
|
const nextValue = value + arrayOfNumbers[index];
|
|
36
|
-
if (nextValue + SIZE_OF_DOWN_ARROW_BUTTON <= maximum && index + 1 <
|
|
36
|
+
if (nextValue + SIZE_OF_DOWN_ARROW_BUTTON <= maximum && index + 1 < arrayOfNumbers?.length) {
|
|
37
37
|
return calculateCumulativeThreshold(arrayOfNumbers, maximum, index + 1, nextValue);
|
|
38
38
|
}
|
|
39
39
|
return index - 1;
|
|
@@ -65,7 +65,6 @@ const ResponsiveButtonGroup = props => {
|
|
|
65
65
|
});
|
|
66
66
|
const buttonThreshold = calculateCumulativeThreshold(cachedSizeArray, containerWidth);
|
|
67
67
|
const renderActionMenuToggle = (0, _react.useCallback)(_ref => {
|
|
68
|
-
var _displayButtons$lengt;
|
|
69
68
|
let {
|
|
70
69
|
displayButtons,
|
|
71
70
|
onToggle,
|
|
@@ -79,11 +78,11 @@ const ResponsiveButtonGroup = props => {
|
|
|
79
78
|
ref: triggerRef,
|
|
80
79
|
"aria-label": "menu",
|
|
81
80
|
buttonClass: (0, _classnames.default)(_ResponsiveButtonGroup.default.width100, {
|
|
82
|
-
[
|
|
81
|
+
[`${_ResponsiveButtonGroup.default.dropdownButtonClass}`]: (displayButtons?.length ?? 0) > 0
|
|
83
82
|
}, {
|
|
84
|
-
[
|
|
83
|
+
[`${_ResponsiveButtonGroup.default.marginBottom}`]: !marginBottom0
|
|
85
84
|
}, {
|
|
86
|
-
[
|
|
85
|
+
[`${_ResponsiveButtonGroup.default.marginBottom0}`]: marginBottom0
|
|
87
86
|
}),
|
|
88
87
|
buttonStyle: selectedIndex > buttonThreshold ? 'primary' : 'default',
|
|
89
88
|
onClick: onToggle,
|
|
@@ -98,25 +97,19 @@ const ResponsiveButtonGroup = props => {
|
|
|
98
97
|
})
|
|
99
98
|
});
|
|
100
99
|
}, [buttonThreshold, dropdownTriggerProps, marginBottom0, selectedIndex]);
|
|
101
|
-
const displayButtons = (0, _react.useMemo)(() => {
|
|
102
|
-
|
|
103
|
-
return buttons === null || buttons === void 0 ? void 0 : (_buttons$slice = buttons.slice(0, buttonThreshold + 1)) === null || _buttons$slice === void 0 ? void 0 : _buttons$slice.map((button, index) => {
|
|
104
|
-
if (index === selectedIndex && !(button !== null && button !== void 0 && button.buttonStyle)) {
|
|
105
|
-
return /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
106
|
-
buttonStyle: 'primary'
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return button;
|
|
110
|
-
});
|
|
111
|
-
}, [buttonThreshold, buttons, selectedIndex]);
|
|
112
|
-
const dropdownButtons = (0, _react.useMemo)(() => {
|
|
113
|
-
var _buttons$slice2;
|
|
114
|
-
return [...((_buttons$slice2 = buttons.slice(buttonThreshold + 1, buttons === null || buttons === void 0 ? void 0 : buttons.length)) === null || _buttons$slice2 === void 0 ? void 0 : _buttons$slice2.map(button => {
|
|
100
|
+
const displayButtons = (0, _react.useMemo)(() => buttons?.slice(0, buttonThreshold + 1)?.map((button, index) => {
|
|
101
|
+
if (index === selectedIndex && !button?.buttonStyle) {
|
|
115
102
|
return /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
116
|
-
buttonStyle: '
|
|
103
|
+
buttonStyle: 'primary'
|
|
117
104
|
});
|
|
118
|
-
}
|
|
119
|
-
|
|
105
|
+
}
|
|
106
|
+
return button;
|
|
107
|
+
}), [buttonThreshold, buttons, selectedIndex]);
|
|
108
|
+
const dropdownButtons = (0, _react.useMemo)(() => [...buttons.slice(buttonThreshold + 1, buttons?.length)?.map(button => {
|
|
109
|
+
return /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
110
|
+
buttonStyle: 'dropdownItem'
|
|
111
|
+
});
|
|
112
|
+
})], [buttonThreshold, buttons]);
|
|
120
113
|
|
|
121
114
|
// eslint-disable-next-line react/prop-types
|
|
122
115
|
const renderActionMenuContent = (0, _react.useCallback)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DropdownMenu, {
|
|
@@ -136,16 +129,16 @@ const ResponsiveButtonGroup = props => {
|
|
|
136
129
|
className: "width: 100%;"
|
|
137
130
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
138
131
|
className: (0, _classnames.default)({
|
|
139
|
-
[
|
|
132
|
+
[`${_ResponsiveButtonGroup.default.hidden}`]: !ready
|
|
140
133
|
}, _ResponsiveButtonGroup.default.buttonGroup, {
|
|
141
|
-
[
|
|
134
|
+
[`${_ResponsiveButtonGroup.default.fullWidth}`]: ready && fullWidth
|
|
142
135
|
}, className),
|
|
143
136
|
style: fullWidth ? {
|
|
144
|
-
width:
|
|
137
|
+
width: `${containerWidth}px`
|
|
145
138
|
} : {},
|
|
146
139
|
...rest,
|
|
147
|
-
children: !ready || buttonThreshold ===
|
|
148
|
-
if (index === selectedIndex && !
|
|
140
|
+
children: !ready || buttonThreshold === cachedSizeArray?.length - 1 ? buttons?.map((button, index) => {
|
|
141
|
+
if (index === selectedIndex && !button?.buttonStyle) {
|
|
149
142
|
return /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
150
143
|
buttonStyle: 'primary'
|
|
151
144
|
});
|
|
@@ -156,5 +149,4 @@ const ResponsiveButtonGroup = props => {
|
|
|
156
149
|
});
|
|
157
150
|
};
|
|
158
151
|
ResponsiveButtonGroup.propTypes = propTypes;
|
|
159
|
-
var _default = ResponsiveButtonGroup;
|
|
160
|
-
exports.default = _default;
|
|
152
|
+
var _default = exports.default = ResponsiveButtonGroup;
|
|
@@ -14,7 +14,7 @@ const useResponsiveButtonGroupSizing = _ref => {
|
|
|
14
14
|
id,
|
|
15
15
|
buttons = []
|
|
16
16
|
} = _ref;
|
|
17
|
-
const eventString = 'responsive-button-group-loaded' + (id ?
|
|
17
|
+
const eventString = 'responsive-button-group-loaded' + (id ? `-${id}` : '');
|
|
18
18
|
const loadedEvent = new Event(eventString);
|
|
19
19
|
const isMounted = (0, _react.useRef)(false);
|
|
20
20
|
(0, _react.useEffect)(() => {
|
|
@@ -37,8 +37,7 @@ const useResponsiveButtonGroupSizing = _ref => {
|
|
|
37
37
|
const refArray = buttons.map((_button, index) => {
|
|
38
38
|
return node => {
|
|
39
39
|
if (node !== null) {
|
|
40
|
-
|
|
41
|
-
const newSizeArray = sizeArray.slice(0, index).concat([(_node$clientWidth = node === null || node === void 0 ? void 0 : node.clientWidth) !== null && _node$clientWidth !== void 0 ? _node$clientWidth : 0]).concat(sizeArray.slice(index + 1));
|
|
40
|
+
const newSizeArray = sizeArray.slice(0, index).concat([node?.clientWidth ?? 0]).concat(sizeArray.slice(index + 1));
|
|
42
41
|
if (!(0, _isEqual.default)(sizeArray, newSizeArray)) {
|
|
43
42
|
setSizeArray(newSizeArray);
|
|
44
43
|
}
|
|
@@ -50,16 +49,16 @@ const useResponsiveButtonGroupSizing = _ref => {
|
|
|
50
49
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
51
50
|
(0, _react.useEffect)((0, _debounce2.default)(() => {
|
|
52
51
|
if (isMounted.current) {
|
|
53
|
-
if (!
|
|
52
|
+
if (!cachedSizeArray?.length && sizeArray?.length) {
|
|
54
53
|
setCachedSizeArray(sizeArray);
|
|
55
54
|
setReady(true);
|
|
56
55
|
document.dispatchEvent(loadedEvent);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
}, 150), [cachedSizeArray, sizeArray]);
|
|
60
|
-
const returnButtons = buttons
|
|
59
|
+
const returnButtons = buttons?.map((button, index) => {
|
|
61
60
|
return /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
62
|
-
ref: refArray
|
|
61
|
+
ref: refArray?.[index]
|
|
63
62
|
});
|
|
64
63
|
});
|
|
65
64
|
return {
|
|
@@ -71,5 +70,4 @@ const useResponsiveButtonGroupSizing = _ref => {
|
|
|
71
70
|
sizeArray
|
|
72
71
|
};
|
|
73
72
|
};
|
|
74
|
-
var _default = useResponsiveButtonGroupSizing;
|
|
75
|
-
exports.default = _default;
|
|
73
|
+
var _default = exports.default = useResponsiveButtonGroupSizing;
|
|
@@ -12,7 +12,6 @@ var _FormattedKintMessage = _interopRequireDefault(require("../FormattedKintMess
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
15
|
-
var _ref2, _meta$initial, _findSelectedOptionBy, _meta$initial2;
|
|
16
15
|
let {
|
|
17
16
|
ariaLabel,
|
|
18
17
|
disabled = false,
|
|
@@ -33,17 +32,17 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
33
32
|
value
|
|
34
33
|
} = _ref;
|
|
35
34
|
const hiddenInput = (0, _react.useRef)(null);
|
|
36
|
-
const [internalValue, setInternalValue] = (0, _react.useState)(
|
|
35
|
+
const [internalValue, setInternalValue] = (0, _react.useState)(meta?.initial ?? value ?? '');
|
|
37
36
|
const findSelectedOptionByValue = (0, _react.useCallback)(val => {
|
|
38
37
|
return userOptions.find(opt => opt.value === val);
|
|
39
38
|
}, [userOptions]);
|
|
40
|
-
const [selectedOption, setSelectedOption] = (0, _react.useState)(
|
|
39
|
+
const [selectedOption, setSelectedOption] = (0, _react.useState)(findSelectedOptionByValue(meta?.initial ?? '') ?? {});
|
|
41
40
|
(0, _react.useEffect)(() => {
|
|
42
41
|
// We treat non-undefined value/formInput values as valid values, whereas undefined is only relevant when prop has not been provided
|
|
43
|
-
if (value !== undefined && !(value ===
|
|
42
|
+
if (value !== undefined && !(value === selectedOption?.value && value === internalValue)) {
|
|
44
43
|
setSelectedOption(findSelectedOptionByValue(value));
|
|
45
44
|
setInternalValue(value);
|
|
46
|
-
} else if (
|
|
45
|
+
} else if (formInput?.value !== undefined && !(value === selectedOption?.value && value === internalValue)) {
|
|
47
46
|
setSelectedOption(findSelectedOptionByValue(formInput.value));
|
|
48
47
|
setInternalValue(formInput.value);
|
|
49
48
|
}
|
|
@@ -53,15 +52,14 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
53
52
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
54
53
|
selectedOption
|
|
55
54
|
}));
|
|
56
|
-
const defaultRenderTrigger =
|
|
57
|
-
var _ref4, _ref5, _ref6, _selectedOption$label;
|
|
55
|
+
const defaultRenderTrigger = _ref2 => {
|
|
58
56
|
let {
|
|
59
57
|
onToggle,
|
|
60
58
|
triggerRef,
|
|
61
59
|
keyHandler,
|
|
62
60
|
ariaProps,
|
|
63
61
|
getTriggerProps
|
|
64
|
-
} =
|
|
62
|
+
} = _ref2;
|
|
65
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DropdownButton, {
|
|
66
64
|
ref: triggerRef,
|
|
67
65
|
buttonClass: _RichSelect.default.triggerButton,
|
|
@@ -74,7 +72,7 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
74
72
|
type: "button",
|
|
75
73
|
...getTriggerProps(),
|
|
76
74
|
...ariaProps,
|
|
77
|
-
children:
|
|
75
|
+
children: selectedOption?.label ?? selectedOption?.value ?? (internalValue || null) ?? placeholder ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormattedKintMessage.default, {
|
|
78
76
|
id: "pleaseSelectOption",
|
|
79
77
|
intlKey: passedIntlKey,
|
|
80
78
|
intlNS: passedIntlNS
|
|
@@ -83,7 +81,7 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
83
81
|
};
|
|
84
82
|
const handleChange = e => {
|
|
85
83
|
// Actually set the value in the form (If formInput exists)
|
|
86
|
-
if (formInput
|
|
84
|
+
if (formInput?.onChange) {
|
|
87
85
|
formInput.onChange(e);
|
|
88
86
|
}
|
|
89
87
|
|
|
@@ -95,20 +93,17 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
95
93
|
const changeField = val => {
|
|
96
94
|
(0, _components.nativeChangeFieldValue)(hiddenInput, false, val);
|
|
97
95
|
};
|
|
98
|
-
const defaultRenderOption = opt =>
|
|
99
|
-
|
|
100
|
-
return (_opt$label = opt.label) !== null && _opt$label !== void 0 ? _opt$label : opt.value;
|
|
101
|
-
};
|
|
102
|
-
const defaultRenderMenu = _ref7 => {
|
|
96
|
+
const defaultRenderOption = opt => opt.label ?? opt.value;
|
|
97
|
+
const defaultRenderMenu = _ref3 => {
|
|
103
98
|
let {
|
|
104
99
|
onToggle
|
|
105
|
-
} =
|
|
100
|
+
} = _ref3;
|
|
106
101
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DropdownMenu, {
|
|
107
102
|
children: userOptions.map(opt => {
|
|
108
103
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
109
|
-
autoFocus:
|
|
104
|
+
autoFocus: selectedOption?.value === opt.value,
|
|
110
105
|
buttonStyle: "dropdownItem",
|
|
111
|
-
id:
|
|
106
|
+
id: `${id}-${formInput.name}-option-${opt.value}`,
|
|
112
107
|
marginBottom0: true,
|
|
113
108
|
onClick: () => {
|
|
114
109
|
// Trigger change event
|
|
@@ -126,7 +121,7 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
126
121
|
children: [label || ariaLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Label, {
|
|
127
122
|
className: ariaLabel && 'sr-only',
|
|
128
123
|
htmlFor: id,
|
|
129
|
-
id:
|
|
124
|
+
id: `${id}-label`,
|
|
130
125
|
required: required,
|
|
131
126
|
children: ariaLabel || label
|
|
132
127
|
}) : '', /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Dropdown, {
|
|
@@ -187,5 +182,4 @@ RichSelect.propTypes = {
|
|
|
187
182
|
required: _propTypes.default.bool,
|
|
188
183
|
value: _propTypes.default.string
|
|
189
184
|
};
|
|
190
|
-
var _default = RichSelect;
|
|
191
|
-
exports.default = _default;
|
|
185
|
+
var _default = exports.default = RichSelect;
|
|
@@ -8,12 +8,10 @@ var _react = require("react");
|
|
|
8
8
|
const useSelectedOption = () => {
|
|
9
9
|
const [selectedOption, setSelectedOption] = (0, _react.useState)();
|
|
10
10
|
const ref = (0, _react.useCallback)(node => {
|
|
11
|
-
|
|
12
|
-
if (node !== null && (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) !== ((_node$selectedOption = node.selectedOption) === null || _node$selectedOption === void 0 ? void 0 : _node$selectedOption.value)) {
|
|
11
|
+
if (node !== null && selectedOption?.value !== node.selectedOption?.value) {
|
|
13
12
|
setSelectedOption(node.selectedOption);
|
|
14
13
|
}
|
|
15
14
|
}, [selectedOption]);
|
|
16
15
|
return [ref, selectedOption];
|
|
17
16
|
};
|
|
18
|
-
var _default = useSelectedOption;
|
|
19
|
-
exports.default = _default;
|
|
17
|
+
var _default = exports.default = useSelectedOption;
|
|
@@ -17,7 +17,6 @@ var _TableBody = _interopRequireDefault(require("./TableBody"));
|
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
20
|
-
var _totalData$pages$redu, _totalData$pages;
|
|
21
20
|
const {
|
|
22
21
|
children,
|
|
23
22
|
fetchParameters = {},
|
|
@@ -46,14 +45,14 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
46
45
|
0: namespace
|
|
47
46
|
} = (0, _core.useNamespace)();
|
|
48
47
|
const ky = (0, _core.useOkapiKy)();
|
|
49
|
-
const filterPaneVisibileKey =
|
|
48
|
+
const filterPaneVisibileKey = `${namespace}-${id}-filterPaneVisibility`;
|
|
50
49
|
const fetchPageData = _ref => {
|
|
51
50
|
let {
|
|
52
51
|
pageParam = 0
|
|
53
52
|
} = _ref;
|
|
54
53
|
const queryMap = fetchParameters.SASQ_MAP;
|
|
55
54
|
queryMap.offset = pageParam;
|
|
56
|
-
return ky(
|
|
55
|
+
return ky(`${fetchParameters.endpoint}${(0, _utils.generateKiwtQuery)(queryMap, query)}`).json();
|
|
57
56
|
};
|
|
58
57
|
const [filterPaneVisible, setFilterPaneVisible] = (0, _hooks.useLocalStorageState)(filterPaneVisibileKey, true);
|
|
59
58
|
const toggleFilterPane = () => setFilterPaneVisible(!filterPaneVisible);
|
|
@@ -73,8 +72,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
73
72
|
...restOfInfiniteQueryProps
|
|
74
73
|
}
|
|
75
74
|
}));
|
|
76
|
-
const data =
|
|
77
|
-
var _acc$results, _curr$results;
|
|
75
|
+
const data = totalData.pages?.reduce((acc, curr) => {
|
|
78
76
|
const newAcc = {
|
|
79
77
|
...acc
|
|
80
78
|
};
|
|
@@ -83,11 +81,11 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
83
81
|
newAcc[key] = value;
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
|
-
const newResults = [...(
|
|
87
|
-
newResults.push(...(
|
|
84
|
+
const newResults = [...(acc.results ?? [])];
|
|
85
|
+
newResults.push(...(curr.results ?? []));
|
|
88
86
|
newAcc.results = newResults;
|
|
89
87
|
return newAcc;
|
|
90
|
-
}, {})
|
|
88
|
+
}, {}) ?? {};
|
|
91
89
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.SearchAndSortQuery, {
|
|
92
90
|
initialSearchState: {
|
|
93
91
|
query: ''
|
|
@@ -109,7 +107,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
109
107
|
const searchHandlers = getSearchHandlers();
|
|
110
108
|
const disableReset = !filterChanged && !searchChanged;
|
|
111
109
|
const filterCount = activeFilters.string ? activeFilters.string.split(',').length : 0;
|
|
112
|
-
const Body = RenderBody
|
|
110
|
+
const Body = RenderBody ?? _TableBody.default;
|
|
113
111
|
const {
|
|
114
112
|
filterPaneFirstMenu,
|
|
115
113
|
filterPaneLastMenu,
|
|
@@ -131,12 +129,12 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
131
129
|
};
|
|
132
130
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_smartComponents.PersistedPaneset, {
|
|
133
131
|
appId: namespace,
|
|
134
|
-
id:
|
|
132
|
+
id: `${id}-paneset`,
|
|
135
133
|
...persistedPanesetProps,
|
|
136
134
|
children: [filterPaneVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, {
|
|
137
135
|
defaultWidth: "20%",
|
|
138
136
|
firstMenu: filterPaneFirstMenu ? filterPaneFirstMenu(internalStateProps) : null,
|
|
139
|
-
id:
|
|
137
|
+
id: `${id}-filter-pane`,
|
|
140
138
|
lastMenu: filterPaneLastMenu ? filterPaneLastMenu(internalStateProps) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
|
|
141
139
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.CollapseFilterPaneButton, {
|
|
142
140
|
onClick: toggleFilterPane
|
|
@@ -152,11 +150,10 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
152
150
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchField, {
|
|
153
151
|
ariaLabel: searchFieldAriaLabel,
|
|
154
152
|
autoFocus: true,
|
|
155
|
-
id:
|
|
153
|
+
id: `sasq-search-field-${id}`,
|
|
156
154
|
name: "query",
|
|
157
155
|
onChange: e => {
|
|
158
|
-
|
|
159
|
-
if ((_e$target = e.target) !== null && _e$target !== void 0 && _e$target.value) {
|
|
156
|
+
if (e.target?.value) {
|
|
160
157
|
searchHandlers.query(e); // SASQ needs the whole event here
|
|
161
158
|
} else {
|
|
162
159
|
searchHandlers.reset();
|
|
@@ -203,15 +200,15 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
203
200
|
onClick: toggleFilterPane
|
|
204
201
|
})
|
|
205
202
|
}) : null,
|
|
206
|
-
id:
|
|
203
|
+
id: `${id}-main-pane`,
|
|
207
204
|
lastMenu: mainPaneLastMenu ? mainPaneLastMenu(internalStateProps) : null,
|
|
208
205
|
noOverflow: true,
|
|
209
206
|
padContent: false,
|
|
210
207
|
paneSub: kintIntl.formatKintMessage({
|
|
211
208
|
id: 'found#Values',
|
|
212
|
-
overrideValue: labelOverrides
|
|
209
|
+
overrideValue: labelOverrides?.foundValues
|
|
213
210
|
}, {
|
|
214
|
-
total: data
|
|
211
|
+
total: data?.total
|
|
215
212
|
}),
|
|
216
213
|
...restOfMainPaneProps,
|
|
217
214
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
|
|
@@ -257,5 +254,4 @@ SASQLookupComponent.propTypes = {
|
|
|
257
254
|
searchFieldAriaLabel: _propTypes.default.string,
|
|
258
255
|
searchFieldProps: _propTypes.default.object
|
|
259
256
|
};
|
|
260
|
-
var _default = SASQLookupComponent;
|
|
261
|
-
exports.default = _default;
|
|
257
|
+
var _default = exports.default = SASQLookupComponent;
|
|
@@ -11,7 +11,6 @@ var _NoResultsMessage = _interopRequireDefault(require("../../NoResultsMessage")
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
const TableBody = _ref => {
|
|
14
|
-
var _query$sort;
|
|
15
14
|
let {
|
|
16
15
|
data,
|
|
17
16
|
error,
|
|
@@ -30,7 +29,7 @@ const TableBody = _ref => {
|
|
|
30
29
|
toggleFilterPane,
|
|
31
30
|
query
|
|
32
31
|
} = _ref;
|
|
33
|
-
const sortOrder =
|
|
32
|
+
const sortOrder = query.sort ?? '';
|
|
34
33
|
const history = (0, _reactRouterDom.useHistory)();
|
|
35
34
|
const location = (0, _reactRouterDom.useLocation)();
|
|
36
35
|
const onNeedMoreData = (_askAmount, index) => {
|
|
@@ -47,7 +46,7 @@ const TableBody = _ref => {
|
|
|
47
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, {
|
|
48
47
|
autosize: true,
|
|
49
48
|
columnMapping: columnMapping,
|
|
50
|
-
contentData: data
|
|
49
|
+
contentData: data?.results,
|
|
51
50
|
hasMargin: true,
|
|
52
51
|
isEmptyMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoResultsMessage.default, {
|
|
53
52
|
error,
|
|
@@ -61,16 +60,15 @@ const TableBody = _ref => {
|
|
|
61
60
|
toggleFilterPane
|
|
62
61
|
}),
|
|
63
62
|
isSelected: _ref2 => {
|
|
64
|
-
var _match$params;
|
|
65
63
|
let {
|
|
66
64
|
item
|
|
67
65
|
} = _ref2;
|
|
68
|
-
return item.id ===
|
|
66
|
+
return item.id === match?.params?.id;
|
|
69
67
|
},
|
|
70
68
|
onHeaderClick: onSort,
|
|
71
69
|
onNeedMoreData: onNeedMoreData,
|
|
72
70
|
onRowClick: (_e, rowData) => {
|
|
73
|
-
history.push(
|
|
71
|
+
history.push(`${path}/${rowData?.id}${location?.search}`);
|
|
74
72
|
},
|
|
75
73
|
pagingType: "click",
|
|
76
74
|
sortDirection: sortOrder.startsWith('-') ? 'descending' : 'ascending',
|
|
@@ -103,5 +101,4 @@ TableBody.propTypes = {
|
|
|
103
101
|
resultColumns: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
104
102
|
toggleFilterPane: _propTypes.default.func
|
|
105
103
|
};
|
|
106
|
-
var _default = TableBody;
|
|
107
|
-
exports.default = _default;
|
|
104
|
+
var _default = exports.default = TableBody;
|
|
@@ -36,7 +36,7 @@ const SASQRoute = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
36
36
|
// Reinsert the SASQ_MAP
|
|
37
37
|
fetchParameters.SASQ_MAP = SASQ_MAP;
|
|
38
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
|
|
39
|
-
path:
|
|
39
|
+
path: `${path}/:id?`,
|
|
40
40
|
render: routeProps => {
|
|
41
41
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SASQLookupComponent.SASQLookupComponent, {
|
|
42
42
|
ref: lookupRef,
|
|
@@ -46,7 +46,7 @@ const SASQRoute = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
46
46
|
...props,
|
|
47
47
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactRouterDom.Switch, {
|
|
48
48
|
children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
|
|
49
|
-
path:
|
|
49
|
+
path: `${path}/:id`,
|
|
50
50
|
render: innerProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(_SASQViewComponent.default, {
|
|
51
51
|
ref: viewRef,
|
|
52
52
|
...innerProps,
|
|
@@ -67,5 +67,4 @@ SASQRoute.propTypes = {
|
|
|
67
67
|
path: _propTypes.default.string,
|
|
68
68
|
ViewComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
|
|
69
69
|
};
|
|
70
|
-
var _default = SASQRoute;
|
|
71
|
-
exports.default = _default;
|
|
70
|
+
var _default = exports.default = SASQRoute;
|
|
@@ -11,7 +11,6 @@ var _core = require("@folio/stripes/core");
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
const SASQViewComponent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
14
|
-
var _fetchParameters$item, _match$params, _match$params3;
|
|
15
14
|
let {
|
|
16
15
|
fetchParameters,
|
|
17
16
|
history,
|
|
@@ -27,22 +26,19 @@ const SASQViewComponent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
27
26
|
} = (0, _core.useNamespace)();
|
|
28
27
|
|
|
29
28
|
// If itemEndpoint is available, use that, otherwise use standard endpoint
|
|
30
|
-
const endpoint =
|
|
29
|
+
const endpoint = fetchParameters?.itemEndpoint ?? fetchParameters?.endpoint;
|
|
31
30
|
const queryNamespace = [namespace, 'SASQ'];
|
|
32
31
|
if (id) {
|
|
33
32
|
queryNamespace.push(id);
|
|
34
33
|
}
|
|
35
34
|
queryNamespace.push('view');
|
|
36
|
-
queryNamespace.push(match
|
|
35
|
+
queryNamespace.push(match?.params?.id);
|
|
37
36
|
const ky = (0, _core.useOkapiKy)();
|
|
38
37
|
const {
|
|
39
38
|
data = {},
|
|
40
39
|
...rest
|
|
41
|
-
} = (0, _reactQuery.useQuery)(queryNamespace, () => {
|
|
42
|
-
|
|
43
|
-
return ky("".concat(endpoint, "/").concat(match === null || match === void 0 ? void 0 : (_match$params2 = match.params) === null || _match$params2 === void 0 ? void 0 : _match$params2.id)).json();
|
|
44
|
-
}, {
|
|
45
|
-
enabled: !!(match !== null && match !== void 0 && (_match$params3 = match.params) !== null && _match$params3 !== void 0 && _match$params3.id)
|
|
40
|
+
} = (0, _reactQuery.useQuery)(queryNamespace, () => ky(`${endpoint}/${match?.params?.id}`).json(), {
|
|
41
|
+
enabled: !!match?.params?.id
|
|
46
42
|
});
|
|
47
43
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
48
44
|
queryProps: {
|
|
@@ -51,7 +47,7 @@ const SASQViewComponent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
51
47
|
}
|
|
52
48
|
}));
|
|
53
49
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewComponent, {
|
|
54
|
-
onClose: () => history.push(
|
|
50
|
+
onClose: () => history.push(`${path}${location.search}`),
|
|
55
51
|
queryProps: {
|
|
56
52
|
...rest
|
|
57
53
|
},
|
|
@@ -68,5 +64,4 @@ SASQViewComponent.propTypes = {
|
|
|
68
64
|
path: _propTypes.default.string.isRequired,
|
|
69
65
|
ViewComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
|
|
70
66
|
};
|
|
71
|
-
var _default = SASQViewComponent;
|
|
72
|
-
exports.default = _default;
|
|
67
|
+
var _default = exports.default = SASQViewComponent;
|
|
@@ -11,8 +11,8 @@ var _contexts = require("../contexts");
|
|
|
11
11
|
var _useSettingSection = _interopRequireDefault(require("../settingsHooks/useSettingSection"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
16
|
// Importing directly here to avoid cyclic dependency
|
|
17
17
|
|
|
18
18
|
const SettingPage = _ref => {
|
|
@@ -53,5 +53,4 @@ SettingPage.propTypes = {
|
|
|
53
53
|
labelOverrides: _propTypes.default.object,
|
|
54
54
|
sectionName: _propTypes.default.string
|
|
55
55
|
};
|
|
56
|
-
var _default = SettingPage;
|
|
57
|
-
exports.default = _default;
|
|
56
|
+
var _default = exports.default = SettingPage;
|
|
@@ -20,9 +20,9 @@ const SettingPagePane = _ref => {
|
|
|
20
20
|
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
21
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, {
|
|
22
22
|
defaultWidth: "fill",
|
|
23
|
-
id:
|
|
23
|
+
id: `settings-${sectionName}`,
|
|
24
24
|
paneTitle: kintIntl.formatKintMessage({
|
|
25
|
-
id:
|
|
25
|
+
id: `settings.settingsSection.${(0, _utils.toCamelCase)(sectionName)}`,
|
|
26
26
|
fallbackMessage: sectionName
|
|
27
27
|
}),
|
|
28
28
|
children: children
|
|
@@ -34,5 +34,4 @@ SettingPagePane.propTypes = {
|
|
|
34
34
|
intlNS: _propTypes.default.string,
|
|
35
35
|
children: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
|
|
36
36
|
};
|
|
37
|
-
var _default = SettingPagePane;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = SettingPagePane;
|
|
@@ -49,7 +49,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
49
49
|
} = (0, _hooks.useMutateModConfigEntry)({
|
|
50
50
|
configName,
|
|
51
51
|
moduleName,
|
|
52
|
-
id: settings
|
|
52
|
+
id: settings?.id
|
|
53
53
|
});
|
|
54
54
|
const onSubmit = values => {
|
|
55
55
|
const setting = {
|
|
@@ -70,7 +70,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
70
70
|
id: 'settingSaveSuccess',
|
|
71
71
|
intlKey: passedIntlKey,
|
|
72
72
|
intlNS: passedIntlNS,
|
|
73
|
-
overrideValue: labelOverrides
|
|
73
|
+
overrideValue: labelOverrides?.settingSaveSuccess
|
|
74
74
|
}),
|
|
75
75
|
type: 'success'
|
|
76
76
|
});
|
|
@@ -108,5 +108,4 @@ SettingsFormContainer.propTypes = {
|
|
|
108
108
|
moduleName: _propTypes.default.string.isRequired,
|
|
109
109
|
scope: _propTypes.default.string
|
|
110
110
|
};
|
|
111
|
-
var _default = SettingsFormContainer;
|
|
112
|
-
exports.default = _default;
|
|
111
|
+
var _default = exports.default = SettingsFormContainer;
|