@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
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var
|
|
10
|
+
var _get = _interopRequireDefault(require("lodash/get"));
|
|
11
11
|
var _components = require("@folio/stripes/components");
|
|
12
12
|
var _SearchField = _interopRequireDefault(require("../SearchField"));
|
|
13
13
|
var _TypeDown = _interopRequireDefault(require("../../../styles/TypeDown.css"));
|
|
@@ -15,8 +15,8 @@ var _typedownHooks = require("../hooks/typedownHooks");
|
|
|
15
15
|
var _selectorSafe = _interopRequireDefault(require("../utils/selectorSafe"));
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
18
|
+
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); }
|
|
19
|
+
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; }
|
|
20
20
|
const Typedown = _ref => {
|
|
21
21
|
let {
|
|
22
22
|
className,
|
|
@@ -36,7 +36,7 @@ const Typedown = _ref => {
|
|
|
36
36
|
required,
|
|
37
37
|
uniqueIdentificationPath = 'id'
|
|
38
38
|
} = _ref;
|
|
39
|
-
const selectedUniqueId = (0,
|
|
39
|
+
const selectedUniqueId = (0, _get.default)(input.value, uniqueIdentificationPath);
|
|
40
40
|
|
|
41
41
|
// Display data needs to be in line with data options but also able to react to default handleType
|
|
42
42
|
const [displayData, setDisplayData] = (0, _react.useState)(dataOptions);
|
|
@@ -50,25 +50,18 @@ const Typedown = _ref => {
|
|
|
50
50
|
|
|
51
51
|
// Setup default handleType
|
|
52
52
|
const handleType = e => {
|
|
53
|
-
|
|
54
|
-
const regex = new RegExp("".concat(e.target.value.toLowerCase()));
|
|
53
|
+
const regex = new RegExp(`${e.target.value.toLowerCase()}`);
|
|
55
54
|
if (onType) {
|
|
56
55
|
onType(e);
|
|
57
|
-
} else if (filterPath && e
|
|
58
|
-
setDisplayData(dataOptions.filter(item =>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}));
|
|
62
|
-
} else if (e !== null && e !== void 0 && (_e$target2 = e.target) !== null && _e$target2 !== void 0 && _e$target2.value) {
|
|
63
|
-
setDisplayData(dataOptions.filter(item => {
|
|
64
|
-
var _get2, _get2$toLowerCase;
|
|
65
|
-
return (_get2 = (0, _get3.default)(item, uniqueIdentificationPath)) === null || _get2 === void 0 ? void 0 : (_get2$toLowerCase = _get2.toLowerCase()) === null || _get2$toLowerCase === void 0 ? void 0 : _get2$toLowerCase.match(regex);
|
|
66
|
-
}));
|
|
56
|
+
} else if (filterPath && e?.target?.value) {
|
|
57
|
+
setDisplayData(dataOptions.filter(item => (0, _get.default)(item, filterPath)?.toLowerCase()?.match(regex)));
|
|
58
|
+
} else if (e?.target?.value) {
|
|
59
|
+
setDisplayData(dataOptions.filter(item => (0, _get.default)(item, uniqueIdentificationPath)?.toLowerCase()?.match(regex)));
|
|
67
60
|
} else {
|
|
68
61
|
setDisplayData(dataOptions);
|
|
69
62
|
}
|
|
70
63
|
setCurrentlyTyped(e.target.value);
|
|
71
|
-
if (displayData.length === 1 && (0,
|
|
64
|
+
if (displayData.length === 1 && (0, _get.default)(displayData[0], filterPath) === e.target.value) {
|
|
72
65
|
setExactMatch(true);
|
|
73
66
|
} else {
|
|
74
67
|
setExactMatch(false);
|
|
@@ -97,7 +90,7 @@ const Typedown = _ref => {
|
|
|
97
90
|
} = (0, _typedownHooks.useTypedown)(input.name);
|
|
98
91
|
const renderItem = (0, _react.useCallback)(option => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
92
|
className: _TypeDown.default.listItem,
|
|
100
|
-
children: renderListItem ? renderListItem(option, currentlyTyped, exactMatch) : (0,
|
|
93
|
+
children: renderListItem ? renderListItem(option, currentlyTyped, exactMatch) : (0, _get.default)(option, uniqueIdentificationPath)
|
|
101
94
|
}), [currentlyTyped, exactMatch, renderListItem, uniqueIdentificationPath]);
|
|
102
95
|
const handleChange = (0, _react.useCallback)(value => {
|
|
103
96
|
input.onChange(value);
|
|
@@ -108,20 +101,20 @@ const Typedown = _ref => {
|
|
|
108
101
|
const dropDown = (0, _react.useCallback)(() => {
|
|
109
102
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
110
103
|
className: _TypeDown.default.dropdownMenu,
|
|
111
|
-
id:
|
|
104
|
+
id: `typedown-parent-${(0, _selectorSafe.default)(input.name)}-menu`,
|
|
112
105
|
style: {
|
|
113
|
-
'--searchWidth':
|
|
106
|
+
'--searchWidth': `${searchWidth}px`
|
|
114
107
|
},
|
|
115
108
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
116
109
|
ref: listRef,
|
|
117
110
|
className: _TypeDown.default.listContainer,
|
|
118
111
|
id: "typedown-list",
|
|
119
|
-
children: displayData
|
|
120
|
-
const isSelectedEval = isSelected ? isSelected(input.value, d) : (0,
|
|
112
|
+
children: displayData?.length ? displayData?.map((d, index) => {
|
|
113
|
+
const isSelectedEval = isSelected ? isSelected(input.value, d) : (0, _get.default)(input.value, uniqueIdentificationPath) === (0, _get.default)(d, uniqueIdentificationPath);
|
|
121
114
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
122
115
|
className: (0, _classnames.default)(_TypeDown.default.fullWidth, _TypeDown.default.menuButton),
|
|
123
116
|
"data-selected": isSelectedEval,
|
|
124
|
-
id:
|
|
117
|
+
id: `typedown-button-[${index}]`,
|
|
125
118
|
onClick: () => {
|
|
126
119
|
handleChange(d);
|
|
127
120
|
handleNextFocus();
|
|
@@ -129,12 +122,12 @@ const Typedown = _ref => {
|
|
|
129
122
|
onKeyDown: listKeyDownHandler,
|
|
130
123
|
type: "button",
|
|
131
124
|
children: renderItem(d)
|
|
132
|
-
},
|
|
125
|
+
}, `typedown-button-[${index}]`);
|
|
133
126
|
}) : endOfList || /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.EndOfList, {})
|
|
134
127
|
}), renderFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
135
128
|
ref: footerRef,
|
|
136
129
|
className: _TypeDown.default.footer,
|
|
137
|
-
id:
|
|
130
|
+
id: `typedown-footer-${(0, _selectorSafe.default)(input.name)}`,
|
|
138
131
|
children: renderFooter(displayData, currentlyTyped, exactMatch)
|
|
139
132
|
})]
|
|
140
133
|
});
|
|
@@ -142,11 +135,11 @@ const Typedown = _ref => {
|
|
|
142
135
|
const renderSearchField = () => {
|
|
143
136
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
144
137
|
ref: triggerRef,
|
|
145
|
-
id:
|
|
138
|
+
id: `typedown-parent-${(0, _selectorSafe.default)(input.name)}-searchField`,
|
|
146
139
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchField.default
|
|
147
140
|
// Pass meta through so correct styling gets applied to the TextField
|
|
148
141
|
, {
|
|
149
|
-
id:
|
|
142
|
+
id: `typedown-searchField-${(0, _selectorSafe.default)(input.name)}`,
|
|
150
143
|
label: label,
|
|
151
144
|
marginBottom0: true,
|
|
152
145
|
meta: meta,
|
|
@@ -159,7 +152,7 @@ const Typedown = _ref => {
|
|
|
159
152
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
160
153
|
ref: resizeRef,
|
|
161
154
|
className: (0, _classnames.default)(_TypeDown.default.typedown, className),
|
|
162
|
-
id:
|
|
155
|
+
id: `typedown-id-${id}`,
|
|
163
156
|
children: [renderSearchField(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Popper, {
|
|
164
157
|
anchorRef: triggerRef,
|
|
165
158
|
className: (0, _classnames.default)(_TypeDown.default.dropdown, _TypeDown.default.fullWidth),
|
|
@@ -216,5 +209,4 @@ Typedown.propTypes = {
|
|
|
216
209
|
required: _propTypes.default.bool,
|
|
217
210
|
uniqueIdentificationPath: _propTypes.default.string
|
|
218
211
|
};
|
|
219
|
-
var _default = Typedown;
|
|
220
|
-
exports.default = _default;
|
|
212
|
+
var _default = exports.default = Typedown;
|
|
@@ -4,25 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TYPE_CLASS_PREFIX = exports.TEXT_CLASS_NAME = exports.REFDATA_DEFINITION_CLASS_NAME = exports.REFDATA_CLASS_NAME = exports.MULTI_REFDATA_CLASS_NAME = exports.INTEGER_CLASS_NAME = exports.DECIMAL_CLASS_NAME = exports.DATE_CLASS_NAME = exports.CONTAINER_CLASS_NAME = exports.BOOLEAN_CLASS_NAME = exports.BLOB_CLASS_NAME = void 0;
|
|
7
|
-
const TYPE_CLASS_PREFIX = 'com.k_int.web.toolkit.custprops.types.CustomProperty';
|
|
8
|
-
exports.
|
|
9
|
-
const
|
|
10
|
-
exports.
|
|
11
|
-
const
|
|
12
|
-
exports.
|
|
13
|
-
const
|
|
14
|
-
exports.
|
|
15
|
-
const
|
|
16
|
-
exports.
|
|
17
|
-
const
|
|
18
|
-
exports.INTEGER_CLASS_NAME = INTEGER_CLASS_NAME;
|
|
19
|
-
const REFDATA_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata';
|
|
20
|
-
exports.REFDATA_CLASS_NAME = REFDATA_CLASS_NAME;
|
|
21
|
-
const MULTI_REFDATA_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyMultiRefdata';
|
|
22
|
-
exports.MULTI_REFDATA_CLASS_NAME = MULTI_REFDATA_CLASS_NAME;
|
|
23
|
-
const REFDATA_DEFINITION_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdataDefinition';
|
|
24
|
-
exports.REFDATA_DEFINITION_CLASS_NAME = REFDATA_DEFINITION_CLASS_NAME;
|
|
25
|
-
const TEXT_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyText';
|
|
26
|
-
exports.TEXT_CLASS_NAME = TEXT_CLASS_NAME;
|
|
27
|
-
const DATE_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate';
|
|
28
|
-
exports.DATE_CLASS_NAME = DATE_CLASS_NAME;
|
|
7
|
+
const TYPE_CLASS_PREFIX = exports.TYPE_CLASS_PREFIX = 'com.k_int.web.toolkit.custprops.types.CustomProperty';
|
|
8
|
+
const BLOB_CLASS_NAME = exports.BLOB_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyBlob';
|
|
9
|
+
const BOOLEAN_CLASS_NAME = exports.BOOLEAN_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyBoolean';
|
|
10
|
+
const CONTAINER_CLASS_NAME = exports.CONTAINER_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyContainer';
|
|
11
|
+
const DECIMAL_CLASS_NAME = exports.DECIMAL_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal';
|
|
12
|
+
const INTEGER_CLASS_NAME = exports.INTEGER_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyInteger';
|
|
13
|
+
const REFDATA_CLASS_NAME = exports.REFDATA_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata';
|
|
14
|
+
const MULTI_REFDATA_CLASS_NAME = exports.MULTI_REFDATA_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyMultiRefdata';
|
|
15
|
+
const REFDATA_DEFINITION_CLASS_NAME = exports.REFDATA_DEFINITION_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdataDefinition';
|
|
16
|
+
const TEXT_CLASS_NAME = exports.TEXT_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyText';
|
|
17
|
+
const DATE_CLASS_NAME = exports.DATE_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate';
|
|
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.MOD_SETTINGS_ENDPOINT = void 0;
|
|
7
7
|
// eslint-disable-next-line import/prefer-default-export
|
|
8
|
-
const MOD_SETTINGS_ENDPOINT = 'configurations/entries';
|
|
9
|
-
exports.MOD_SETTINGS_ENDPOINT = MOD_SETTINGS_ENDPOINT;
|
|
8
|
+
const MOD_SETTINGS_ENDPOINT = exports.MOD_SETTINGS_ENDPOINT = 'configurations/entries';
|
|
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UP_ARROW = exports.TAB = exports.DOWN_ARROW = void 0;
|
|
7
|
-
const UP_ARROW = 'ArrowUp';
|
|
8
|
-
exports.
|
|
9
|
-
const
|
|
10
|
-
exports.DOWN_ARROW = DOWN_ARROW;
|
|
11
|
-
const TAB = 'Tab';
|
|
12
|
-
exports.TAB = TAB;
|
|
7
|
+
const UP_ARROW = exports.UP_ARROW = 'ArrowUp';
|
|
8
|
+
const DOWN_ARROW = exports.DOWN_ARROW = 'ArrowDown';
|
|
9
|
+
const TAB = exports.TAB = 'Tab';
|
|
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
const SettingsContext = /*#__PURE__*/(0, _react.createContext)();
|
|
9
|
-
var _default = SettingsContext;
|
|
10
|
-
exports.default = _default;
|
|
9
|
+
var _default = exports.default = SettingsContext;
|
|
@@ -13,14 +13,14 @@ var _useTypedownToggle = _interopRequireDefault(require("./useTypedownToggle"));
|
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
const useTypedown = name => {
|
|
15
15
|
// SEARCHFIELD COMPONENT
|
|
16
|
-
const searchFieldComponent = document.getElementById(
|
|
16
|
+
const searchFieldComponent = document.getElementById(`typedown-searchField-${(0, _selectorSafe.default)(name)}`);
|
|
17
17
|
|
|
18
18
|
// SET UP REFS
|
|
19
19
|
const listRef = (0, _react.useRef)();
|
|
20
20
|
const triggerRef = (0, _react.useRef)();
|
|
21
21
|
const overlayRef = (0, _react.useRef)();
|
|
22
22
|
const footerRef = (0, _react.useRef)();
|
|
23
|
-
const footer = document.getElementById(
|
|
23
|
+
const footer = document.getElementById(`typedown-footer-${(0, _selectorSafe.default)(name)}`);
|
|
24
24
|
// Add an event listener to the footer, so that we can control tab behaviour between footer elements
|
|
25
25
|
|
|
26
26
|
if (footer && footer.getAttribute('hasListener') !== 'true') {
|
|
@@ -130,5 +130,4 @@ const useTypedown = name => {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
var _default = useTypedown;
|
|
134
|
-
exports.default = _default;
|
|
133
|
+
var _default = exports.default = useTypedown;
|
|
@@ -18,8 +18,8 @@ const useTypedownToggle = name => {
|
|
|
18
18
|
} = (0, _useActiveElement.default)();
|
|
19
19
|
|
|
20
20
|
// Trawl up element stack and check if a typedown-parent exists, use that to toggle
|
|
21
|
-
const openBool = !open && hasParent(
|
|
22
|
-
const closeBool = open && !hasParent(
|
|
21
|
+
const openBool = !open && hasParent(`typedown-parent-${(0, _selectorSafe.default)(name)}`);
|
|
22
|
+
const closeBool = open && !hasParent(`typedown-parent-${(0, _selectorSafe.default)(name)}`);
|
|
23
23
|
(0, _react.useEffect)(() => {
|
|
24
24
|
if (openBool || closeBool) {
|
|
25
25
|
onToggle();
|
|
@@ -30,5 +30,4 @@ const useTypedownToggle = name => {
|
|
|
30
30
|
onToggle
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
var _default = useTypedownToggle;
|
|
34
|
-
exports.default = _default;
|
|
33
|
+
var _default = exports.default = useTypedownToggle;
|
|
@@ -11,7 +11,7 @@ const useActiveElement = () => {
|
|
|
11
11
|
setActive(document.activeElement);
|
|
12
12
|
};
|
|
13
13
|
const hasParent = id => {
|
|
14
|
-
return active.closest(
|
|
14
|
+
return active.closest(`[id^=${id}]`) !== null;
|
|
15
15
|
};
|
|
16
16
|
(0, _react.useEffect)(() => {
|
|
17
17
|
document.addEventListener('focusin', handleFocusIn);
|
|
@@ -24,5 +24,4 @@ const useActiveElement = () => {
|
|
|
24
24
|
hasParent
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
var _default = useActiveElement;
|
|
28
|
-
exports.default = _default;
|
|
27
|
+
var _default = exports.default = useActiveElement;
|
|
@@ -41,7 +41,7 @@ const useCustomProperties = _ref => {
|
|
|
41
41
|
|
|
42
42
|
// Special case if one is isNull
|
|
43
43
|
custPropOptions.filters.push({
|
|
44
|
-
values: ctx.map(c => c === 'isNull' ? 'ctx isNull' :
|
|
44
|
+
values: ctx.map(c => c === 'isNull' ? 'ctx isNull' : `ctx==${c}`)
|
|
45
45
|
});
|
|
46
46
|
} else if (ctx === 'isNull') {
|
|
47
47
|
// isNull is a special case
|
|
@@ -55,7 +55,7 @@ const useCustomProperties = _ref => {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
const query = (0, _utils.generateKiwtQuery)(custPropOptions, nsValues);
|
|
58
|
-
const path =
|
|
58
|
+
const path = `${endpoint}${query}`;
|
|
59
59
|
const queryObject = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useCustomProperties', 'custprops', ctx, path], () => ky(path).json(), queryParams);
|
|
60
60
|
if (returnQueryObject) {
|
|
61
61
|
return queryObject || {};
|
|
@@ -71,5 +71,4 @@ useCustomProperties.propTypes = {
|
|
|
71
71
|
queryParams: _propTypes.default.object,
|
|
72
72
|
returnQueryObject: _propTypes.default.bool
|
|
73
73
|
};
|
|
74
|
-
var _default = useCustomProperties;
|
|
75
|
-
exports.default = _default;
|
|
74
|
+
var _default = exports.default = useCustomProperties;
|
|
@@ -10,14 +10,14 @@ var _queryString = _interopRequireDefault(require("query-string"));
|
|
|
10
10
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
let helperObject = {};
|
|
16
16
|
const useHelperApp = helpers => {
|
|
17
17
|
const history = (0, _reactRouterDom.useHistory)();
|
|
18
18
|
const location = (0, _reactRouterDom.useLocation)();
|
|
19
19
|
const query = _queryString.default.parse(location.search);
|
|
20
|
-
const [currentHelper, setCurrentHelper] = (0, _react.useState)(query
|
|
20
|
+
const [currentHelper, setCurrentHelper] = (0, _react.useState)(query?.helper);
|
|
21
21
|
const handleToggleHelper = (0, _react.useCallback)(helper => {
|
|
22
22
|
setCurrentHelper(helper !== currentHelper ? helper : undefined);
|
|
23
23
|
}, [currentHelper]);
|
|
@@ -29,26 +29,26 @@ const useHelperApp = helpers => {
|
|
|
29
29
|
if (!(0, _isEqual.default)(Object.keys(helperObject), Object.keys(helpers))) {
|
|
30
30
|
helperObject = helpers;
|
|
31
31
|
}
|
|
32
|
-
if (currentHelper !==
|
|
32
|
+
if (currentHelper !== query?.helper) {
|
|
33
33
|
const newQuery = {
|
|
34
34
|
...query,
|
|
35
35
|
helper: currentHelper
|
|
36
36
|
};
|
|
37
37
|
history.push({
|
|
38
38
|
pathname: location.pathname,
|
|
39
|
-
search:
|
|
39
|
+
search: `?${_queryString.default.stringify(newQuery)}`
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}, [currentHelper, helpers, history, location, query]);
|
|
43
43
|
|
|
44
44
|
// Set the HelperComponent
|
|
45
45
|
const HelperComponent = (0, _react.useMemo)(() => props => {
|
|
46
|
-
if (!
|
|
46
|
+
if (!query?.helper) return null;
|
|
47
47
|
let Component = null;
|
|
48
|
-
Component = helperObject[query
|
|
48
|
+
Component = helperObject[query?.helper];
|
|
49
49
|
if (!Component) return null;
|
|
50
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
51
|
-
onToggle: () => handleToggleHelper(query
|
|
51
|
+
onToggle: () => handleToggleHelper(query?.helper),
|
|
52
52
|
...props
|
|
53
53
|
});
|
|
54
54
|
}, [handleToggleHelper, query.helper]);
|
|
@@ -65,5 +65,4 @@ const useHelperApp = helpers => {
|
|
|
65
65
|
isOpen
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
var _default = useHelperApp;
|
|
69
|
-
exports.default = _default;
|
|
68
|
+
var _default = exports.default = useHelperApp;
|
|
@@ -12,9 +12,8 @@ var _zustand = require("zustand");
|
|
|
12
12
|
const useIntlKeyStore = (0, _zustand.create)((set, get) => ({
|
|
13
13
|
intlKeys: {},
|
|
14
14
|
addKey: (key, namespace) => set(state => {
|
|
15
|
-
var _useNamespace;
|
|
16
15
|
let ns = namespace;
|
|
17
|
-
const folioNS = (
|
|
16
|
+
const folioNS = (0, _core.useNamespace)()?.[0];
|
|
18
17
|
if (!ns) {
|
|
19
18
|
ns = folioNS;
|
|
20
19
|
}
|
|
@@ -27,9 +26,8 @@ const useIntlKeyStore = (0, _zustand.create)((set, get) => ({
|
|
|
27
26
|
};
|
|
28
27
|
}),
|
|
29
28
|
removeKey: namespace => set(state => {
|
|
30
|
-
var _useNamespace2;
|
|
31
29
|
let ns = namespace;
|
|
32
|
-
const folioNS = (
|
|
30
|
+
const folioNS = (0, _core.useNamespace)()?.[0];
|
|
33
31
|
if (!ns) {
|
|
34
32
|
ns = folioNS;
|
|
35
33
|
}
|
|
@@ -43,14 +41,12 @@ const useIntlKeyStore = (0, _zustand.create)((set, get) => ({
|
|
|
43
41
|
};
|
|
44
42
|
}),
|
|
45
43
|
getKey: namespace => {
|
|
46
|
-
var _useNamespace3, _get$intlKeys;
|
|
47
44
|
let ns = namespace;
|
|
48
|
-
const folioNS = (
|
|
45
|
+
const folioNS = (0, _core.useNamespace)()?.[0];
|
|
49
46
|
if (!ns) {
|
|
50
47
|
ns = folioNS;
|
|
51
48
|
}
|
|
52
|
-
return
|
|
49
|
+
return get().intlKeys?.[ns];
|
|
53
50
|
}
|
|
54
51
|
}));
|
|
55
|
-
var _default = useIntlKeyStore;
|
|
56
|
-
exports.default = _default;
|
|
52
|
+
var _default = exports.default = useIntlKeyStore;
|
|
@@ -10,5 +10,4 @@ const useInvalidateRefdata = desc => {
|
|
|
10
10
|
const queryClient = (0, _reactQuery.useQueryClient)();
|
|
11
11
|
return () => queryClient.invalidateQueries((0, _utils.refdataQueryKey)(desc));
|
|
12
12
|
};
|
|
13
|
-
var _default = useInvalidateRefdata;
|
|
14
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = useInvalidateRefdata;
|
|
@@ -15,7 +15,6 @@ const useKintIntl = (passedIntlKey, passedIntlNS) => {
|
|
|
15
15
|
// FormatKintMessage id misses out the top level key part of the path.
|
|
16
16
|
// This works analogously to FormattedKintMessage component
|
|
17
17
|
const formatKintMessage = (_ref, formatValues) => {
|
|
18
|
-
var _intlObj$messages2;
|
|
19
18
|
let {
|
|
20
19
|
id,
|
|
21
20
|
overrideValue,
|
|
@@ -23,12 +22,11 @@ const useKintIntl = (passedIntlKey, passedIntlNS) => {
|
|
|
23
22
|
...formatParams
|
|
24
23
|
} = _ref;
|
|
25
24
|
if (overrideValue) {
|
|
26
|
-
var _intlObj$messages;
|
|
27
25
|
// Version 3 is a breaking change, where labelOverrides must be strings.
|
|
28
26
|
if (typeof overrideValue !== 'string') {
|
|
29
27
|
throw new Error('Override values must be strings as of stripes-kint-components ^3.0.0');
|
|
30
28
|
}
|
|
31
|
-
if (
|
|
29
|
+
if (intlObj.messages?.[overrideValue]) {
|
|
32
30
|
// We've been passed a key as an override, use it
|
|
33
31
|
return intlObj.formatMessage({
|
|
34
32
|
id: overrideValue,
|
|
@@ -42,10 +40,9 @@ const useKintIntl = (passedIntlKey, passedIntlNS) => {
|
|
|
42
40
|
// If key does not exist in intl, and we have a specified "fallbackMessage", use that
|
|
43
41
|
|
|
44
42
|
// (FallbackMessage works like defaultMessage but with no warning)
|
|
45
|
-
if (!
|
|
46
|
-
var _intlObj$messages3;
|
|
43
|
+
if (!intlObj.messages?.[`${intlKey}.${id}`] && fallbackMessage) {
|
|
47
44
|
// Allow fallback message to be an intl key
|
|
48
|
-
if (
|
|
45
|
+
if (intlObj.messages?.[fallbackMessage]) {
|
|
49
46
|
return intlObj.formatMessage({
|
|
50
47
|
id: fallbackMessage,
|
|
51
48
|
...formatParams
|
|
@@ -56,19 +53,15 @@ const useKintIntl = (passedIntlKey, passedIntlNS) => {
|
|
|
56
53
|
|
|
57
54
|
// After all that, render the message from key
|
|
58
55
|
return intlObj.formatMessage({
|
|
59
|
-
id:
|
|
56
|
+
id: `${intlKey}.${id}`,
|
|
60
57
|
...formatParams
|
|
61
58
|
}, formatValues);
|
|
62
59
|
};
|
|
63
|
-
const messageExists = key => {
|
|
64
|
-
var _intlObj$messages4;
|
|
65
|
-
return !!((_intlObj$messages4 = intlObj.messages) !== null && _intlObj$messages4 !== void 0 && _intlObj$messages4["".concat(intlKey, ".").concat(key)]);
|
|
66
|
-
};
|
|
60
|
+
const messageExists = key => !!intlObj.messages?.[`${intlKey}.${key}`];
|
|
67
61
|
return {
|
|
68
62
|
...intlObj,
|
|
69
63
|
formatKintMessage,
|
|
70
64
|
messageExists
|
|
71
65
|
};
|
|
72
66
|
};
|
|
73
|
-
var _default = useKintIntl;
|
|
74
|
-
exports.default = _default;
|
|
67
|
+
var _default = exports.default = useKintIntl;
|
|
@@ -9,8 +9,8 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
9
9
|
var _buildUrl = _interopRequireDefault(require("../utils/buildUrl"));
|
|
10
10
|
var _useQIndex = _interopRequireDefault(require("./useQIndex"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
14
|
const locationQuerySetter = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
location,
|
|
@@ -25,7 +25,7 @@ const locationQuerySetter = _ref => {
|
|
|
25
25
|
|
|
26
26
|
// Do not push to history if the url didn't change
|
|
27
27
|
// https://issues.folio.org/browse/STSMACOM-637
|
|
28
|
-
if (
|
|
28
|
+
if (`${pathname}${search}` !== url) {
|
|
29
29
|
history.push(url);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
@@ -63,5 +63,4 @@ const useKiwtSASQuery = () => {
|
|
|
63
63
|
querySetter
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
var _default = useKiwtSASQuery;
|
|
67
|
-
exports.default = _default;
|
|
66
|
+
var _default = exports.default = useKiwtSASQuery;
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _localStorage = require("@rehooks/local-storage");
|
|
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 useLocalStorageState = (key, defaultValue) => {
|
|
12
12
|
const [local] = (0, _localStorage.useLocalStorage)(key, defaultValue);
|
|
13
13
|
const [localState, setLocalState] = (0, _react.useState)(local);
|
|
@@ -17,5 +17,4 @@ const useLocalStorageState = (key, defaultValue) => {
|
|
|
17
17
|
};
|
|
18
18
|
return [localState, setLocalStorageState];
|
|
19
19
|
};
|
|
20
|
-
var _default = useLocalStorageState;
|
|
21
|
-
exports.default = _default;
|
|
20
|
+
var _default = exports.default = useLocalStorageState;
|
|
@@ -18,8 +18,8 @@ const useModConfigEntries = _ref => {
|
|
|
18
18
|
queryParams
|
|
19
19
|
} = _ref;
|
|
20
20
|
const ky = (0, _core.useOkapiKy)();
|
|
21
|
-
const query =
|
|
22
|
-
const path =
|
|
21
|
+
const query = `?query=(module=${moduleName} and configName=${configName})`;
|
|
22
|
+
const path = `${_endpoints.MOD_SETTINGS_ENDPOINT}${query}`;
|
|
23
23
|
const namespace = (0, _utils.modConfigEntriesQueryKey)({
|
|
24
24
|
configName,
|
|
25
25
|
moduleName,
|
|
@@ -45,5 +45,4 @@ useModConfigEntries.propTypes = {
|
|
|
45
45
|
configName: _propTypes.default.string,
|
|
46
46
|
queryParams: _propTypes.default.object
|
|
47
47
|
};
|
|
48
|
-
var _default = useModConfigEntries;
|
|
49
|
-
exports.default = _default;
|
|
48
|
+
var _default = exports.default = useModConfigEntries;
|
|
@@ -21,29 +21,28 @@ const useMutateCustomProperties = _ref => {
|
|
|
21
21
|
} = _ref;
|
|
22
22
|
const returnObj = {};
|
|
23
23
|
const ky = (0, _core.useOkapiKy)();
|
|
24
|
-
const deleteQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateCustomProperties', 'delete', id], async () => ky.delete(
|
|
25
|
-
const putQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateCustomProperties', 'put', id], async data => ky.put(
|
|
24
|
+
const deleteQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateCustomProperties', 'delete', id], async () => ky.delete(`${endpoint}/${id}`).json().then(afterQueryCalls?.delete).catch(catchQueryCalls?.delete), queryParams?.delete);
|
|
25
|
+
const putQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateCustomProperties', 'put', id], async data => ky.put(`${endpoint}/${id}`, {
|
|
26
26
|
json: data
|
|
27
|
-
}).json().then(afterQueryCalls
|
|
28
|
-
const postQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateCustomProperties', 'post'], async data => ky.post(
|
|
27
|
+
}).json().then(afterQueryCalls?.put).catch(catchQueryCalls?.put), queryParams?.put);
|
|
28
|
+
const postQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateCustomProperties', 'post'], async data => ky.post(`${endpoint}`, {
|
|
29
29
|
json: data
|
|
30
|
-
}).json().then(afterQueryCalls
|
|
31
|
-
if (returnQueryObject
|
|
30
|
+
}).json().then(afterQueryCalls?.post).catch(catchQueryCalls?.post), queryParams?.post);
|
|
31
|
+
if (returnQueryObject?.delete) {
|
|
32
32
|
returnObj.delete = deleteQueryObject;
|
|
33
33
|
} else {
|
|
34
34
|
returnObj.delete = deleteQueryObject.mutateAsync;
|
|
35
35
|
}
|
|
36
|
-
if (returnQueryObject
|
|
36
|
+
if (returnQueryObject?.put) {
|
|
37
37
|
returnObj.put = putQueryObject;
|
|
38
38
|
} else {
|
|
39
39
|
returnObj.put = putQueryObject.mutateAsync;
|
|
40
40
|
}
|
|
41
|
-
if (returnQueryObject
|
|
41
|
+
if (returnQueryObject?.post) {
|
|
42
42
|
returnObj.post = postQueryObject;
|
|
43
43
|
} else {
|
|
44
44
|
returnObj.post = postQueryObject.mutateAsync;
|
|
45
45
|
}
|
|
46
46
|
return returnObj;
|
|
47
47
|
};
|
|
48
|
-
var _default = useMutateCustomProperties;
|
|
49
|
-
exports.default = _default;
|
|
48
|
+
var _default = exports.default = useMutateCustomProperties;
|