@k-int/stripes-kint-components 3.0.4 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -10
- package/LICENSE +201 -0
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +6 -19
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +2 -182
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +64 -94
- package/es/index.js +13 -27
- package/es/lib/ActionList/ActionList.js +20 -40
- package/es/lib/ActionList/ActionListFieldArray.js +67 -129
- package/es/lib/ActionList/index.js +0 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +34 -61
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +2 -9
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +92 -138
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +3 -18
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +18 -51
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +13 -35
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +5 -14
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -23
- package/es/lib/CustomProperties/Config/index.js +0 -5
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +8 -14
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +1 -9
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +25 -35
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +1 -9
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +32 -75
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +3 -20
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +34 -91
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +6 -33
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +15 -27
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -13
- package/es/lib/CustomProperties/Edit/index.js +0 -6
- package/es/lib/CustomProperties/Edit/testResources.js +0 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +35 -67
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +2 -19
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +13 -42
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -12
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +6 -18
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +2 -19
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +10 -23
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +2 -19
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +13 -31
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -32
- package/es/lib/CustomProperties/Filter/index.js +0 -7
- package/es/lib/CustomProperties/Filter/testResources.js +0 -3
- package/es/lib/CustomProperties/Filter/useOperators.js +5 -19
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -15
- package/es/lib/CustomProperties/Filter/useValueProps.js +5 -22
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +8 -14
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -10
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +45 -62
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -13
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +11 -33
- package/es/lib/CustomProperties/View/index.js +0 -4
- package/es/lib/CustomProperties/index.js +0 -4
- package/es/lib/CycleButton/CycleButton.js +8 -33
- package/es/lib/CycleButton/index.js +0 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +87 -132
- package/es/lib/EditableRefdataCategoryList/index.js +0 -2
- package/es/lib/EditableRefdataList/EditableRefdataList.js +92 -140
- package/es/lib/EditableRefdataList/index.js +0 -2
- package/es/lib/EditableSettingsList/EditableSettingsList.js +7 -17
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +6 -19
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +4 -19
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +7 -29
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +19 -26
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +6 -23
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +14 -35
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +18 -55
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/index.js +0 -4
- package/es/lib/EditableSettingsList/index.js +0 -4
- package/es/lib/FormModal/FormModal.js +16 -35
- package/es/lib/FormModal/index.js +0 -2
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +10 -31
- package/es/lib/FormattedKintMessage/index.js +0 -2
- package/es/lib/IconSelect/IconSelect.js +26 -63
- package/es/lib/IconSelect/index.js +0 -2
- package/es/lib/NoResultsMessage/NoResultsMessage.js +18 -28
- package/es/lib/NoResultsMessage/index.js +0 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +9 -36
- package/es/lib/QueryTypedown/index.js +0 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +5 -24
- package/es/lib/RefdataButtons/index.js +0 -2
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +148 -0
- package/es/lib/ResponsiveButtonGroup/index.js +13 -0
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +74 -0
- package/es/lib/RichSelect/RichSelect.js +38 -65
- package/es/lib/RichSelect/index.js +0 -3
- package/es/lib/RichSelect/useSelectedOption.js +3 -14
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +75 -93
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +20 -33
- package/es/lib/SASQLookupComponent/TableBody/index.js +0 -2
- package/es/lib/SASQLookupComponent/index.js +0 -3
- package/es/lib/SASQRoute/SASQRoute.js +21 -29
- package/es/lib/SASQRoute/index.js +0 -2
- package/es/lib/SASQViewComponent/SASQViewComponent.js +37 -41
- package/es/lib/SASQViewComponent/index.js +0 -2
- package/es/lib/SearchField/SearchField.js +1 -17
- package/es/lib/SearchField/index.js +0 -2
- package/es/lib/SettingPage/SettingPage.js +10 -25
- package/es/lib/SettingPage/SettingPagePane.js +3 -11
- package/es/lib/SettingPage/index.js +0 -3
- package/es/lib/Typedown/Typedown.js +51 -82
- package/es/lib/Typedown/index.js +0 -2
- package/es/lib/contexts/SettingsContext.js +0 -2
- package/es/lib/contexts/index.js +0 -2
- package/es/lib/hooks/__mocks__/index.js +0 -5
- package/es/lib/hooks/index.js +7 -18
- package/es/lib/hooks/settingsHooks/index.js +0 -4
- package/es/lib/hooks/settingsHooks/useAppSettings.js +6 -27
- package/es/lib/hooks/settingsHooks/useSettingSection.js +10 -20
- package/es/lib/hooks/settingsHooks/useSettings.js +13 -44
- package/es/lib/hooks/typedownHooks/index.js +0 -4
- package/es/lib/hooks/typedownHooks/useTypedown.js +17 -37
- package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -26
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +5 -19
- package/es/lib/hooks/useActiveElement.js +3 -15
- package/es/lib/hooks/useCustomProperties.js +11 -25
- package/es/lib/hooks/useHelperApp.js +7 -30
- package/es/lib/hooks/useIntlKey.js +0 -7
- package/es/lib/hooks/useIntlKeyStore.js +2 -24
- package/es/lib/hooks/useInvalidateRefdata.js +0 -4
- package/es/lib/hooks/useKintIntl.js +13 -32
- package/es/lib/hooks/useKiwtFieldArray.js +5 -29
- package/es/lib/hooks/useKiwtSASQuery.js +12 -37
- package/es/lib/hooks/useLocalStorageState.js +5 -21
- package/es/lib/hooks/useMutateCustomProperties.js +11 -28
- package/es/lib/hooks/useMutateRefdataCategory.js +9 -29
- package/es/lib/hooks/useMutateRefdataValue.js +10 -27
- package/es/lib/hooks/useQIndex.js +3 -27
- package/es/lib/hooks/useRefdata.js +7 -16
- package/es/lib/hooks/useSASQQueryMeta.js +41 -0
- package/es/lib/hooks/useTemplates.js +6 -17
- package/es/lib/utils/buildUrl.js +1 -10
- package/es/lib/utils/generateKiwtQuery.js +3 -8
- package/es/lib/utils/generateKiwtQueryParams.js +46 -74
- package/es/lib/utils/groupCustomPropertiesByCtx.js +0 -14
- package/es/lib/utils/highlightString.js +6 -23
- package/es/lib/utils/index.js +0 -15
- package/es/lib/utils/matchString.js +0 -6
- package/es/lib/utils/parseErrorResponse.js +1 -23
- package/es/lib/utils/refdataQueryKey.js +0 -4
- package/es/lib/utils/selectorSafe.js +0 -2
- package/es/lib/utils/sortByLabel.js +0 -6
- package/es/lib/utils/toCamelCase.js +6 -5
- package/es/lib/utils/typedownQueryKey.js +0 -4
- package/es/lib/utils/validators.js +5 -38
- package/junit.xml +148 -148
- package/package.json +2 -2
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +44 -254
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionTrigger.js.html +418 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +24 -9
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +4 -4
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +5 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +29 -92
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +19 -19
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +15 -15
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +74 -8
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +31 -4
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +18 -3
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +83 -11
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +53 -8
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +65 -11
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +56 -5
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/EditSettingValue.js.html +514 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/RenderSettingValue.js.html +358 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/SettingsActionList.js.html +736 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +24 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +9 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +187 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/index.html +92 -77
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +20 -20
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +39 -39
- package/src/artifacts/coverage-jest/lcov.info +1063 -760
- package/src/index.js +4 -1
- package/src/lib/CustomProperties/Edit/CustomPropertyField.js +0 -7
- package/src/lib/IconSelect/IconSelect.js +22 -20
- package/src/lib/NoResultsMessage/NoResultsMessage.js +1 -1
- package/src/lib/ResponsiveButtonGroup/README.md +31 -0
- package/src/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +150 -0
- package/src/lib/ResponsiveButtonGroup/index.js +1 -0
- package/src/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +56 -0
- package/src/lib/RichSelect/RichSelect.js +1 -0
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +34 -5
- package/src/lib/SASQRoute/SASQRoute.js +18 -3
- package/src/lib/SASQViewComponent/SASQViewComponent.js +23 -5
- package/src/lib/hooks/index.js +1 -0
- package/src/lib/hooks/useSASQQueryMeta.js +34 -0
- package/src/lib/utils/README.md +3 -1
- package/src/lib/utils/generateKiwtQuery.js +3 -3
- package/src/lib/utils/generateKiwtQueryParams.js +27 -13
- package/styles/ResponsiveButtonGroup.css +79 -0
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/98</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/70</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/28</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/89</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -426,96 +426,7 @@
|
|
|
426
426
|
<a name='L361'></a><a href='#L361'>361</a>
|
|
427
427
|
<a name='L362'></a><a href='#L362'>362</a>
|
|
428
428
|
<a name='L363'></a><a href='#L363'>363</a>
|
|
429
|
-
<a name='L364'></a><a href='#L364'>364</a>
|
|
430
|
-
<a name='L365'></a><a href='#L365'>365</a>
|
|
431
|
-
<a name='L366'></a><a href='#L366'>366</a>
|
|
432
|
-
<a name='L367'></a><a href='#L367'>367</a>
|
|
433
|
-
<a name='L368'></a><a href='#L368'>368</a>
|
|
434
|
-
<a name='L369'></a><a href='#L369'>369</a>
|
|
435
|
-
<a name='L370'></a><a href='#L370'>370</a>
|
|
436
|
-
<a name='L371'></a><a href='#L371'>371</a>
|
|
437
|
-
<a name='L372'></a><a href='#L372'>372</a>
|
|
438
|
-
<a name='L373'></a><a href='#L373'>373</a>
|
|
439
|
-
<a name='L374'></a><a href='#L374'>374</a>
|
|
440
|
-
<a name='L375'></a><a href='#L375'>375</a>
|
|
441
|
-
<a name='L376'></a><a href='#L376'>376</a>
|
|
442
|
-
<a name='L377'></a><a href='#L377'>377</a>
|
|
443
|
-
<a name='L378'></a><a href='#L378'>378</a>
|
|
444
|
-
<a name='L379'></a><a href='#L379'>379</a>
|
|
445
|
-
<a name='L380'></a><a href='#L380'>380</a>
|
|
446
|
-
<a name='L381'></a><a href='#L381'>381</a>
|
|
447
|
-
<a name='L382'></a><a href='#L382'>382</a>
|
|
448
|
-
<a name='L383'></a><a href='#L383'>383</a>
|
|
449
|
-
<a name='L384'></a><a href='#L384'>384</a>
|
|
450
|
-
<a name='L385'></a><a href='#L385'>385</a>
|
|
451
|
-
<a name='L386'></a><a href='#L386'>386</a>
|
|
452
|
-
<a name='L387'></a><a href='#L387'>387</a>
|
|
453
|
-
<a name='L388'></a><a href='#L388'>388</a>
|
|
454
|
-
<a name='L389'></a><a href='#L389'>389</a>
|
|
455
|
-
<a name='L390'></a><a href='#L390'>390</a>
|
|
456
|
-
<a name='L391'></a><a href='#L391'>391</a>
|
|
457
|
-
<a name='L392'></a><a href='#L392'>392</a>
|
|
458
|
-
<a name='L393'></a><a href='#L393'>393</a>
|
|
459
|
-
<a name='L394'></a><a href='#L394'>394</a>
|
|
460
|
-
<a name='L395'></a><a href='#L395'>395</a>
|
|
461
|
-
<a name='L396'></a><a href='#L396'>396</a>
|
|
462
|
-
<a name='L397'></a><a href='#L397'>397</a>
|
|
463
|
-
<a name='L398'></a><a href='#L398'>398</a>
|
|
464
|
-
<a name='L399'></a><a href='#L399'>399</a>
|
|
465
|
-
<a name='L400'></a><a href='#L400'>400</a>
|
|
466
|
-
<a name='L401'></a><a href='#L401'>401</a>
|
|
467
|
-
<a name='L402'></a><a href='#L402'>402</a>
|
|
468
|
-
<a name='L403'></a><a href='#L403'>403</a>
|
|
469
|
-
<a name='L404'></a><a href='#L404'>404</a>
|
|
470
|
-
<a name='L405'></a><a href='#L405'>405</a>
|
|
471
|
-
<a name='L406'></a><a href='#L406'>406</a>
|
|
472
|
-
<a name='L407'></a><a href='#L407'>407</a>
|
|
473
|
-
<a name='L408'></a><a href='#L408'>408</a>
|
|
474
|
-
<a name='L409'></a><a href='#L409'>409</a>
|
|
475
|
-
<a name='L410'></a><a href='#L410'>410</a>
|
|
476
|
-
<a name='L411'></a><a href='#L411'>411</a>
|
|
477
|
-
<a name='L412'></a><a href='#L412'>412</a>
|
|
478
|
-
<a name='L413'></a><a href='#L413'>413</a>
|
|
479
|
-
<a name='L414'></a><a href='#L414'>414</a>
|
|
480
|
-
<a name='L415'></a><a href='#L415'>415</a>
|
|
481
|
-
<a name='L416'></a><a href='#L416'>416</a>
|
|
482
|
-
<a name='L417'></a><a href='#L417'>417</a>
|
|
483
|
-
<a name='L418'></a><a href='#L418'>418</a>
|
|
484
|
-
<a name='L419'></a><a href='#L419'>419</a>
|
|
485
|
-
<a name='L420'></a><a href='#L420'>420</a>
|
|
486
|
-
<a name='L421'></a><a href='#L421'>421</a>
|
|
487
|
-
<a name='L422'></a><a href='#L422'>422</a>
|
|
488
|
-
<a name='L423'></a><a href='#L423'>423</a>
|
|
489
|
-
<a name='L424'></a><a href='#L424'>424</a>
|
|
490
|
-
<a name='L425'></a><a href='#L425'>425</a>
|
|
491
|
-
<a name='L426'></a><a href='#L426'>426</a>
|
|
492
|
-
<a name='L427'></a><a href='#L427'>427</a>
|
|
493
|
-
<a name='L428'></a><a href='#L428'>428</a>
|
|
494
|
-
<a name='L429'></a><a href='#L429'>429</a>
|
|
495
|
-
<a name='L430'></a><a href='#L430'>430</a>
|
|
496
|
-
<a name='L431'></a><a href='#L431'>431</a>
|
|
497
|
-
<a name='L432'></a><a href='#L432'>432</a>
|
|
498
|
-
<a name='L433'></a><a href='#L433'>433</a>
|
|
499
|
-
<a name='L434'></a><a href='#L434'>434</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
500
|
-
<span class="cline-any cline-neutral"> </span>
|
|
501
|
-
<span class="cline-any cline-neutral"> </span>
|
|
502
|
-
<span class="cline-any cline-neutral"> </span>
|
|
503
|
-
<span class="cline-any cline-neutral"> </span>
|
|
504
|
-
<span class="cline-any cline-neutral"> </span>
|
|
505
|
-
<span class="cline-any cline-neutral"> </span>
|
|
506
|
-
<span class="cline-any cline-neutral"> </span>
|
|
507
|
-
<span class="cline-any cline-neutral"> </span>
|
|
508
|
-
<span class="cline-any cline-neutral"> </span>
|
|
509
|
-
<span class="cline-any cline-neutral"> </span>
|
|
510
|
-
<span class="cline-any cline-neutral"> </span>
|
|
511
|
-
<span class="cline-any cline-no"> </span>
|
|
512
|
-
<span class="cline-any cline-no"> </span>
|
|
513
|
-
<span class="cline-any cline-no"> </span>
|
|
514
|
-
<span class="cline-any cline-neutral"> </span>
|
|
515
|
-
<span class="cline-any cline-no"> </span>
|
|
516
|
-
<span class="cline-any cline-neutral"> </span>
|
|
517
|
-
<span class="cline-any cline-neutral"> </span>
|
|
518
|
-
<span class="cline-any cline-neutral"> </span>
|
|
429
|
+
<a name='L364'></a><a href='#L364'>364</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
519
430
|
<span class="cline-any cline-neutral"> </span>
|
|
520
431
|
<span class="cline-any cline-neutral"> </span>
|
|
521
432
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -541,6 +452,7 @@
|
|
|
541
452
|
<span class="cline-any cline-no"> </span>
|
|
542
453
|
<span class="cline-any cline-no"> </span>
|
|
543
454
|
<span class="cline-any cline-neutral"> </span>
|
|
455
|
+
<span class="cline-any cline-no"> </span>
|
|
544
456
|
<span class="cline-any cline-neutral"> </span>
|
|
545
457
|
<span class="cline-any cline-neutral"> </span>
|
|
546
458
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -548,8 +460,6 @@
|
|
|
548
460
|
<span class="cline-any cline-neutral"> </span>
|
|
549
461
|
<span class="cline-any cline-neutral"> </span>
|
|
550
462
|
<span class="cline-any cline-neutral"> </span>
|
|
551
|
-
<span class="cline-any cline-no"> </span>
|
|
552
|
-
<span class="cline-any cline-neutral"> </span>
|
|
553
463
|
<span class="cline-any cline-neutral"> </span>
|
|
554
464
|
<span class="cline-any cline-neutral"> </span>
|
|
555
465
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -559,7 +469,6 @@
|
|
|
559
469
|
<span class="cline-any cline-neutral"> </span>
|
|
560
470
|
<span class="cline-any cline-neutral"> </span>
|
|
561
471
|
<span class="cline-any cline-neutral"> </span>
|
|
562
|
-
<span class="cline-any cline-no"> </span>
|
|
563
472
|
<span class="cline-any cline-neutral"> </span>
|
|
564
473
|
<span class="cline-any cline-neutral"> </span>
|
|
565
474
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -670,22 +579,9 @@
|
|
|
670
579
|
<span class="cline-any cline-no"> </span>
|
|
671
580
|
<span class="cline-any cline-neutral"> </span>
|
|
672
581
|
<span class="cline-any cline-no"> </span>
|
|
673
|
-
<span class="cline-any cline-neutral"> </span>
|
|
674
|
-
<span class="cline-any cline-no"> </span>
|
|
675
|
-
<span class="cline-any cline-neutral"> </span>
|
|
676
|
-
<span class="cline-any cline-neutral"> </span>
|
|
677
|
-
<span class="cline-any cline-neutral"> </span>
|
|
678
|
-
<span class="cline-any cline-neutral"> </span>
|
|
679
|
-
<span class="cline-any cline-neutral"> </span>
|
|
680
|
-
<span class="cline-any cline-neutral"> </span>
|
|
681
|
-
<span class="cline-any cline-neutral"> </span>
|
|
682
|
-
<span class="cline-any cline-no"> </span>
|
|
683
|
-
<span class="cline-any cline-neutral"> </span>
|
|
684
|
-
<span class="cline-any cline-no"> </span>
|
|
685
582
|
<span class="cline-any cline-no"> </span>
|
|
686
583
|
<span class="cline-any cline-no"> </span>
|
|
687
584
|
<span class="cline-any cline-neutral"> </span>
|
|
688
|
-
<span class="cline-any cline-no"> </span>
|
|
689
585
|
<span class="cline-any cline-neutral"> </span>
|
|
690
586
|
<span class="cline-any cline-no"> </span>
|
|
691
587
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -700,15 +596,15 @@
|
|
|
700
596
|
<span class="cline-any cline-neutral"> </span>
|
|
701
597
|
<span class="cline-any cline-neutral"> </span>
|
|
702
598
|
<span class="cline-any cline-neutral"> </span>
|
|
703
|
-
<span class="cline-any cline-
|
|
599
|
+
<span class="cline-any cline-no"> </span>
|
|
704
600
|
<span class="cline-any cline-neutral"> </span>
|
|
705
601
|
<span class="cline-any cline-no"> </span>
|
|
706
602
|
<span class="cline-any cline-no"> </span>
|
|
707
603
|
<span class="cline-any cline-no"> </span>
|
|
708
604
|
<span class="cline-any cline-neutral"> </span>
|
|
709
605
|
<span class="cline-any cline-no"> </span>
|
|
710
|
-
<span class="cline-any cline-no"> </span>
|
|
711
606
|
<span class="cline-any cline-neutral"> </span>
|
|
607
|
+
<span class="cline-any cline-no"> </span>
|
|
712
608
|
<span class="cline-any cline-neutral"> </span>
|
|
713
609
|
<span class="cline-any cline-neutral"> </span>
|
|
714
610
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -720,73 +616,36 @@
|
|
|
720
616
|
<span class="cline-any cline-neutral"> </span>
|
|
721
617
|
<span class="cline-any cline-neutral"> </span>
|
|
722
618
|
<span class="cline-any cline-neutral"> </span>
|
|
723
|
-
<span class="cline-any cline-no"> </span>
|
|
724
619
|
<span class="cline-any cline-neutral"> </span>
|
|
725
620
|
<span class="cline-any cline-neutral"> </span>
|
|
726
621
|
<span class="cline-any cline-neutral"> </span>
|
|
727
622
|
<span class="cline-any cline-no"> </span>
|
|
728
623
|
<span class="cline-any cline-no"> </span>
|
|
729
|
-
<span class="cline-any cline-neutral"> </span>
|
|
730
|
-
<span class="cline-any cline-neutral"> </span>
|
|
731
|
-
<span class="cline-any cline-neutral"> </span>
|
|
732
|
-
<span class="cline-any cline-no"> </span>
|
|
733
624
|
<span class="cline-any cline-no"> </span>
|
|
734
625
|
<span class="cline-any cline-neutral"> </span>
|
|
735
|
-
<span class="cline-any cline-neutral"> </span>
|
|
736
|
-
<span class="cline-any cline-no"> </span>
|
|
737
|
-
<span class="cline-any cline-no"> </span>
|
|
738
|
-
<span class="cline-any cline-no"> </span>
|
|
739
|
-
<span class="cline-any cline-no"> </span>
|
|
740
626
|
<span class="cline-any cline-no"> </span>
|
|
741
627
|
<span class="cline-any cline-no"> </span>
|
|
742
628
|
<span class="cline-any cline-neutral"> </span>
|
|
743
|
-
<span class="cline-any cline-no"> </span>
|
|
744
629
|
<span class="cline-any cline-neutral"> </span>
|
|
745
630
|
<span class="cline-any cline-neutral"> </span>
|
|
746
631
|
<span class="cline-any cline-neutral"> </span>
|
|
747
632
|
<span class="cline-any cline-neutral"> </span>
|
|
748
633
|
<span class="cline-any cline-neutral"> </span>
|
|
749
|
-
<span class="cline-any cline-no"> </span>
|
|
750
|
-
<span class="cline-any cline-no"> </span>
|
|
751
|
-
<span class="cline-any cline-no"> </span>
|
|
752
634
|
<span class="cline-any cline-neutral"> </span>
|
|
753
635
|
<span class="cline-any cline-no"> </span>
|
|
754
636
|
<span class="cline-any cline-neutral"> </span>
|
|
755
637
|
<span class="cline-any cline-neutral"> </span>
|
|
756
|
-
<span class="cline-any cline-no"> </span>
|
|
757
|
-
<span class="cline-any cline-no"> </span>
|
|
758
|
-
<span class="cline-any cline-no"> </span>
|
|
759
638
|
<span class="cline-any cline-neutral"> </span>
|
|
760
639
|
<span class="cline-any cline-no"> </span>
|
|
761
|
-
<span class="cline-any cline-neutral"> </span>
|
|
762
|
-
<span class="cline-any cline-neutral"> </span>
|
|
763
|
-
<span class="cline-any cline-neutral"> </span>
|
|
764
|
-
<span class="cline-any cline-neutral"> </span>
|
|
765
|
-
<span class="cline-any cline-neutral"> </span>
|
|
766
640
|
<span class="cline-any cline-no"> </span>
|
|
767
|
-
<span class="cline-any cline-no"> </span>
|
|
768
|
-
<span class="cline-any cline-neutral"> </span>
|
|
769
|
-
<span class="cline-any cline-neutral"> </span>
|
|
770
|
-
<span class="cline-any cline-neutral"> </span>
|
|
771
641
|
<span class="cline-any cline-neutral"> </span>
|
|
772
642
|
<span class="cline-any cline-neutral"> </span>
|
|
773
643
|
<span class="cline-any cline-neutral"> </span>
|
|
774
644
|
<span class="cline-any cline-no"> </span>
|
|
775
|
-
<span class="cline-any cline-neutral"> </span>
|
|
776
|
-
<span class="cline-any cline-neutral"> </span>
|
|
777
|
-
<span class="cline-any cline-neutral"> </span>
|
|
778
|
-
<span class="cline-any cline-neutral"> </span>
|
|
779
|
-
<span class="cline-any cline-neutral"> </span>
|
|
780
|
-
<span class="cline-any cline-neutral"> </span>
|
|
781
645
|
<span class="cline-any cline-no"> </span>
|
|
782
646
|
<span class="cline-any cline-neutral"> </span>
|
|
783
647
|
<span class="cline-any cline-neutral"> </span>
|
|
784
648
|
<span class="cline-any cline-neutral"> </span>
|
|
785
|
-
<span class="cline-any cline-neutral"> </span>
|
|
786
|
-
<span class="cline-any cline-neutral"> </span>
|
|
787
|
-
<span class="cline-any cline-neutral"> </span>
|
|
788
|
-
<span class="cline-any cline-neutral"> </span>
|
|
789
|
-
<span class="cline-any cline-neutral"> </span>
|
|
790
649
|
<span class="cline-any cline-no"> </span>
|
|
791
650
|
<span class="cline-any cline-neutral"> </span>
|
|
792
651
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -860,6 +719,7 @@
|
|
|
860
719
|
<span class="cline-any cline-neutral"> </span>
|
|
861
720
|
<span class="cline-any cline-neutral"> </span>
|
|
862
721
|
<span class="cline-any cline-neutral"> </span>
|
|
722
|
+
<span class="cline-any cline-neutral"> </span>
|
|
863
723
|
<span class="cline-any cline-no"> </span>
|
|
864
724
|
<span class="cline-any cline-neutral"> </span>
|
|
865
725
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -936,9 +796,19 @@ import get from 'lodash/get';
|
|
|
936
796
|
import cloneDeep from 'lodash/cloneDeep';
|
|
937
797
|
|
|
938
798
|
import { Field, useForm, useFormState } from 'react-final-form';
|
|
939
|
-
|
|
799
|
+
|
|
800
|
+
import {
|
|
801
|
+
Button,
|
|
802
|
+
Headline,
|
|
803
|
+
MultiColumnList,
|
|
804
|
+
omitProps,
|
|
805
|
+
TextField
|
|
806
|
+
} from '@folio/stripes/components';
|
|
807
|
+
|
|
940
808
|
import { useKintIntl } from '../hooks';
|
|
941
809
|
|
|
810
|
+
import ActionTrigger from './ActionTrigger';
|
|
811
|
+
|
|
942
812
|
import css from '../../../styles/ActionListFieldArray.css';
|
|
943
813
|
|
|
944
814
|
const EDITING_ACTIONS_WIDTH = <span class="cstat-no" title="statement not covered" >25;</span>
|
|
@@ -969,37 +839,6 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
969
839
|
visibleFields: PropTypes.arrayOf(PropTypes.string)
|
|
970
840
|
};
|
|
971
841
|
|
|
972
|
-
// This needs to be outside of the main component for forwardRef to work properly it seems.
|
|
973
|
-
const ActionTrigger = <span class="cstat-no" title="statement not covered" >forwardRef(<span class="fstat-no" title="function not covered" >({</span> action, ...actionTriggerProps }, ref) => {</span>
|
|
974
|
-
<span class="cstat-no" title="statement not covered" > if (action.icon) {</span>
|
|
975
|
-
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
976
|
-
<IconButton
|
|
977
|
-
ref={ref}
|
|
978
|
-
icon={action.icon}
|
|
979
|
-
{...actionTriggerProps}
|
|
980
|
-
/>
|
|
981
|
-
);
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
985
|
-
<Button
|
|
986
|
-
ref={ref}
|
|
987
|
-
marginBottom0
|
|
988
|
-
{...actionTriggerProps}
|
|
989
|
-
>
|
|
990
|
-
{action.label ?? action.name}
|
|
991
|
-
</Button>
|
|
992
|
-
);
|
|
993
|
-
});
|
|
994
|
-
|
|
995
|
-
<span class="cstat-no" title="statement not covered" >ActionTrigger.propTypes = {</span>
|
|
996
|
-
action: PropTypes.shape({
|
|
997
|
-
icon: PropTypes.string,
|
|
998
|
-
label: PropTypes.string,
|
|
999
|
-
name: PropTypes.string
|
|
1000
|
-
})
|
|
1001
|
-
};
|
|
1002
|
-
|
|
1003
842
|
const ActionListFieldArray = <span class="cstat-no" title="statement not covered" >forwardRef(<span class="fstat-no" title="function not covered" >({</span></span>
|
|
1004
843
|
actionAssigner,
|
|
1005
844
|
columnMapping,
|
|
@@ -1103,14 +942,22 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1103
942
|
const { actionListActions: actions, ...rest } = <span class="cstat-no" title="statement not covered" >data;</span>
|
|
1104
943
|
|
|
1105
944
|
<span class="cstat-no" title="statement not covered" > if (data.id === editing || (!data.id && editing === 'NEW_ROW')) {</span>
|
|
945
|
+
const saveAction = <span class="cstat-no" title="statement not covered" >actions?.find(<span class="fstat-no" title="function not covered" >ac</span>t => <span class="cstat-no" title="statement not covered" >act.name === 'edit')</span>?.saveAction ?? { name: 'save' };</span>
|
|
946
|
+
const cancelAction = <span class="cstat-no" title="statement not covered" >actions?.find(<span class="fstat-no" title="function not covered" >ac</span>t => <span class="cstat-no" title="statement not covered" >act.name === 'edit')</span>?.cancelAction ?? { name: 'cancel' };</span>
|
|
947
|
+
|
|
1106
948
|
// Render the save/cancel buttons
|
|
1107
949
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1108
950
|
<div id="action-button-parent">
|
|
1109
|
-
<
|
|
951
|
+
<ActionTrigger
|
|
1110
952
|
key={`save[${data.rowIndex}]`}
|
|
953
|
+
action={saveAction}
|
|
954
|
+
buttonLabel={kintIntl.formatKintMessage({
|
|
955
|
+
id: 'save',
|
|
956
|
+
overrideValue: labelOverrides?.save
|
|
957
|
+
})}
|
|
1111
958
|
buttonStyle="primary"
|
|
959
|
+
data={data}
|
|
1112
960
|
disabled={hasValidationErrors || submitting || pristine}
|
|
1113
|
-
marginBottom0
|
|
1114
961
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
1115
962
|
<span class="cstat-no" title="statement not covered" > triggerFormSubmit(); </span>// This is set up as () => null in ActionList, so essentially only acts here to force validation
|
|
1116
963
|
|
|
@@ -1124,16 +971,16 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1124
971
|
}
|
|
1125
972
|
}}
|
|
1126
973
|
type="submit"
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
id: 'save',
|
|
1130
|
-
overrideValue: labelOverrides?.save
|
|
1131
|
-
})}
|
|
1132
|
-
</Button>
|
|
1133
|
-
<Button
|
|
974
|
+
/>
|
|
975
|
+
<ActionTrigger
|
|
1134
976
|
key={`cancel[${data.rowIndex}]`}
|
|
977
|
+
action={cancelAction}
|
|
978
|
+
buttonLabel={kintIntl.formatKintMessage({
|
|
979
|
+
id: 'cancel',
|
|
980
|
+
overrideValue: labelOverrides?.cancel
|
|
981
|
+
})}
|
|
982
|
+
data={data}
|
|
1135
983
|
data-type-button="cancel"
|
|
1136
|
-
marginBottom0
|
|
1137
984
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
1138
985
|
<span class="cstat-no" title="statement not covered" > if (!data.id && editing === 'NEW_ROW') {</span>
|
|
1139
986
|
<span class="cstat-no" title="statement not covered" > fields.remove(data.rowIndex);</span>
|
|
@@ -1143,12 +990,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1143
990
|
<span class="cstat-no" title="statement not covered" > toggleEditing(data.id);</span>
|
|
1144
991
|
}
|
|
1145
992
|
}}
|
|
1146
|
-
|
|
1147
|
-
{kintIntl.formatKintMessage({
|
|
1148
|
-
id: 'cancel',
|
|
1149
|
-
overrideValue: labelOverrides?.cancel
|
|
1150
|
-
})}
|
|
1151
|
-
</Button>
|
|
993
|
+
/>
|
|
1152
994
|
</div>
|
|
1153
995
|
);
|
|
1154
996
|
}
|
|
@@ -1165,67 +1007,14 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1165
1007
|
<span class="cstat-no" title="statement not covered" > if (action.name === 'edit') {</span>
|
|
1166
1008
|
<span class="cstat-no" title="statement not covered" > actionFunction = <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >toggleEditing(data.id);</span></span>
|
|
1167
1009
|
}
|
|
1168
|
-
|
|
1169
|
-
let ariaLabel = <span class="cstat-no" title="statement not covered" >`action-${action.name}[${data.rowIndex}]`;</span>
|
|
1170
|
-
<span class="cstat-no" title="statement not covered" > if (action?.ariaLabel) {</span>
|
|
1171
|
-
<span class="cstat-no" title="statement not covered" > if (typeof action.ariaLabel === 'function') {</span>
|
|
1172
|
-
<span class="cstat-no" title="statement not covered" > ariaLabel = action.ariaLabel(data);</span>
|
|
1173
|
-
} else <span class="cstat-no" title="statement not covered" >if (typeof action.ariaLabel === 'string') {</span>
|
|
1174
|
-
<span class="cstat-no" title="statement not covered" > ariaLabel = action.ariaLabel;</span>
|
|
1175
|
-
} else {
|
|
1176
|
-
<span class="cstat-no" title="statement not covered" > throw new Error(`Provided ariaLabel for action "${action.name}" must be a function or a string.`);</span>
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
let tooltip;
|
|
1181
|
-
let tooltipSub;
|
|
1182
|
-
<span class="cstat-no" title="statement not covered" > if (action?.tooltip) {</span>
|
|
1183
|
-
<span class="cstat-no" title="statement not covered" > if (typeof action.tooltip === 'function') {</span>
|
|
1184
|
-
<span class="cstat-no" title="statement not covered" > tooltip = action.tooltip(data);</span>
|
|
1185
|
-
} else {
|
|
1186
|
-
<span class="cstat-no" title="statement not covered" > tooltip = action.tooltip;</span>
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
<span class="cstat-no" title="statement not covered" > if (action?.tooltipSub) {</span>
|
|
1190
|
-
<span class="cstat-no" title="statement not covered" > if (typeof action.tooltipSub === 'function') {</span>
|
|
1191
|
-
<span class="cstat-no" title="statement not covered" > tooltipSub = action.tooltipSub(data);</span>
|
|
1192
|
-
} else {
|
|
1193
|
-
<span class="cstat-no" title="statement not covered" > tooltipSub = action.tooltipSub;</span>
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
// If a tooltip is declared, render that around the actionButton
|
|
1199
|
-
<span class="cstat-no" title="statement not covered" > if (tooltip) {</span>
|
|
1200
|
-
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1201
|
-
<Tooltip
|
|
1202
|
-
id={`action-${action.name}[${data.rowIndex}]-tooltip`}
|
|
1203
|
-
sub={tooltipSub}
|
|
1204
|
-
text={tooltip}
|
|
1205
|
-
>
|
|
1206
|
-
{<span class="fstat-no" title="function not covered" >({</span> ref: actionTriggerRef, ariaIds }) => (
|
|
1207
|
-
<span class="cstat-no" title="statement not covered" > <ActionTrigger</span>
|
|
1208
|
-
key={`action-${action.name}[${data.rowIndex}]`}
|
|
1209
|
-
ref={actionTriggerRef}
|
|
1210
|
-
action={action}
|
|
1211
|
-
aria-describedby={ariaIds.sub}
|
|
1212
|
-
aria-labelledby={ariaIds.text}
|
|
1213
|
-
disabled={editing}
|
|
1214
|
-
onClick={<span class="fstat-no" title="function not covered" >()</span> => (<span class="cstat-no" title="statement not covered" >actionFunction ? actionFunction() : <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null)</span></span>}
|
|
1215
|
-
to={action.to}
|
|
1216
|
-
/>
|
|
1217
|
-
)}
|
|
1218
|
-
</Tooltip>
|
|
1219
|
-
);
|
|
1220
|
-
}
|
|
1221
1010
|
|
|
1222
1011
|
// Finally, render the action button itself
|
|
1223
1012
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1224
1013
|
<ActionTrigger
|
|
1225
1014
|
key={`action-${action.name}[${data.rowIndex}]`}
|
|
1226
1015
|
action={action}
|
|
1227
|
-
|
|
1228
|
-
disabled={editing}
|
|
1016
|
+
data={data}
|
|
1017
|
+
disabled={!!editing}
|
|
1229
1018
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => (<span class="cstat-no" title="statement not covered" >actionFunction ? actionFunction() : <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null)</span></span>}
|
|
1230
1019
|
to={action.to}
|
|
1231
1020
|
/>
|
|
@@ -1286,7 +1075,8 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1286
1075
|
<span class="cstat-no" title="statement not covered" > returnValue =</span>
|
|
1287
1076
|
fieldComponents[key] ?
|
|
1288
1077
|
fieldComponents[key]({
|
|
1289
|
-
name: `${cd.fieldName}.${key}
|
|
1078
|
+
name: `${cd.fieldName}.${key}`,
|
|
1079
|
+
data: omitProps(cd, 'actionListActions')
|
|
1290
1080
|
}) :
|
|
1291
1081
|
<Field
|
|
1292
1082
|
autoFocus={autoFocus}
|
|
@@ -1369,7 +1159,7 @@ export default ActionListFieldArray;
|
|
|
1369
1159
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1370
1160
|
Code coverage generated by
|
|
1371
1161
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1372
|
-
at 2022-
|
|
1162
|
+
at 2022-10-18T08:59:08.296Z
|
|
1373
1163
|
</div>
|
|
1374
1164
|
<script src="../prettify.js"></script>
|
|
1375
1165
|
<script>
|