@k-int/stripes-kint-components 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/es/lib/ActionList/ActionList.js +3 -1
- package/es/lib/ActionList/ActionListFieldArray.js +4 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +6 -4
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +5 -3
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +5 -2
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +3 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +5 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +5 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +4 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +5 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +4 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -1
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -1
- package/es/lib/CycleButton/CycleButton.js +5 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +6 -4
- package/es/lib/EditableRefdataList/EditableRefdataList.js +6 -4
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +4 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +1 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -1
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +4 -2
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +1 -1
- package/es/lib/FormModal/FormModal.js +4 -1
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +4 -1
- package/es/lib/IconSelect/IconSelect.js +4 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +4 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +4 -1
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +4 -1
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +1 -1
- package/es/lib/RichSelect/RichSelect.js +5 -2
- package/es/lib/RichSelect/useSelectedOption.js +1 -1
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +5 -2
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +4 -1
- package/es/lib/SASQRoute/SASQRoute.js +4 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +4 -1
- package/es/lib/SearchField/SearchField.js +4 -1
- package/es/lib/Typedown/Typedown.js +1 -1
- package/es/lib/hooks/settingsHooks/useSettings.js +4 -1
- package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -1
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -1
- package/es/lib/hooks/useActiveElement.js +1 -1
- package/es/lib/hooks/useCustomProperties.js +4 -1
- package/es/lib/hooks/useHelperApp.js +4 -2
- package/es/lib/hooks/useIntlKeyStore.js +4 -4
- package/es/lib/hooks/useKintIntl.js +4 -1
- package/es/lib/hooks/useKiwtFieldArray.js +5 -2
- package/es/lib/hooks/useKiwtSASQuery.js +4 -2
- package/es/lib/hooks/useLocalStorageState.js +1 -1
- package/es/lib/hooks/useMutateCustomProperties.js +1 -1
- package/es/lib/hooks/useMutateRefdataCategory.js +4 -2
- package/es/lib/hooks/useMutateRefdataValue.js +1 -1
- package/es/lib/hooks/useQIndex.js +4 -2
- package/es/lib/utils/generateKiwtQuery.js +4 -3
- package/es/lib/utils/generateKiwtQueryParams.js +13 -23
- package/es/lib/utils/groupCustomPropertiesByCtx.js +4 -1
- package/es/lib/utils/highlightString.js +1 -1
- package/es/lib/utils/parseErrorResponse.js +23 -19
- package/junit.xml +146 -146
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +296 -44
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +8 -23
- 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 +1 -1
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/{SettingsActionList/SettingsActionList.js.html → CustomProperties/Config/testResources.js.html} +313 -256
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +6 -9
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
- 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 +10 -10
- 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 +1 -1
- 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 +1 -1
- 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 +8 -74
- 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 +4 -31
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +28 -22
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -18
- 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/{SettingsActionList/EditSettingValue.js.html → ResponsiveButtonGroup/ResponsiveButtonGroup.js.html} +199 -142
- package/src/artifacts/coverage-jest/lcov-report/{SettingsActionList → ResponsiveButtonGroup}/index.html +26 -41
- package/src/artifacts/coverage-jest/lcov-report/{SettingsActionList → ResponsiveButtonGroup}/index.js.html +4 -4
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +253 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +119 -26
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
- 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 +5 -56
- 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/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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
- 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 +3 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +2 -2
- 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 +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/index.html +61 -61
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +8 -8
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +196 -46
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +44 -29
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +8 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +11 -8
- package/src/artifacts/coverage-jest/lcov-report/{SettingsActionList/RenderSettingValue.js.html → utils/parseKiwtQueryGroups.js.html} +67 -145
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov.info +962 -920
- package/src/lib/utils/README.md +1 -3
- package/src/lib/utils/generateKiwtQuery.js +3 -3
- package/src/lib/utils/generateKiwtQueryParams.js +13 -27
- package/src/lib/utils/parseErrorResponse.js +3 -2
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionTrigger.js.html +0 -418
|
@@ -25,14 +25,14 @@
|
|
|
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/123</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/88</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
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/117</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -426,7 +426,110 @@
|
|
|
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
|
|
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>
|
|
500
|
+
<a name='L435'></a><a href='#L435'>435</a>
|
|
501
|
+
<a name='L436'></a><a href='#L436'>436</a>
|
|
502
|
+
<a name='L437'></a><a href='#L437'>437</a>
|
|
503
|
+
<a name='L438'></a><a href='#L438'>438</a>
|
|
504
|
+
<a name='L439'></a><a href='#L439'>439</a>
|
|
505
|
+
<a name='L440'></a><a href='#L440'>440</a>
|
|
506
|
+
<a name='L441'></a><a href='#L441'>441</a>
|
|
507
|
+
<a name='L442'></a><a href='#L442'>442</a>
|
|
508
|
+
<a name='L443'></a><a href='#L443'>443</a>
|
|
509
|
+
<a name='L444'></a><a href='#L444'>444</a>
|
|
510
|
+
<a name='L445'></a><a href='#L445'>445</a>
|
|
511
|
+
<a name='L446'></a><a href='#L446'>446</a>
|
|
512
|
+
<a name='L447'></a><a href='#L447'>447</a>
|
|
513
|
+
<a name='L448'></a><a href='#L448'>448</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
514
|
+
<span class="cline-any cline-neutral"> </span>
|
|
515
|
+
<span class="cline-any cline-neutral"> </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>
|
|
519
|
+
<span class="cline-any cline-neutral"> </span>
|
|
520
|
+
<span class="cline-any cline-neutral"> </span>
|
|
521
|
+
<span class="cline-any cline-neutral"> </span>
|
|
522
|
+
<span class="cline-any cline-neutral"> </span>
|
|
523
|
+
<span class="cline-any cline-neutral"> </span>
|
|
524
|
+
<span class="cline-any cline-neutral"> </span>
|
|
525
|
+
<span class="cline-any cline-no"> </span>
|
|
526
|
+
<span class="cline-any cline-no"> </span>
|
|
527
|
+
<span class="cline-any cline-no"> </span>
|
|
528
|
+
<span class="cline-any cline-neutral"> </span>
|
|
529
|
+
<span class="cline-any cline-no"> </span>
|
|
530
|
+
<span class="cline-any cline-neutral"> </span>
|
|
531
|
+
<span class="cline-any cline-neutral"> </span>
|
|
532
|
+
<span class="cline-any cline-neutral"> </span>
|
|
430
533
|
<span class="cline-any cline-neutral"> </span>
|
|
431
534
|
<span class="cline-any cline-neutral"> </span>
|
|
432
535
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -452,7 +555,6 @@
|
|
|
452
555
|
<span class="cline-any cline-no"> </span>
|
|
453
556
|
<span class="cline-any cline-no"> </span>
|
|
454
557
|
<span class="cline-any cline-neutral"> </span>
|
|
455
|
-
<span class="cline-any cline-no"> </span>
|
|
456
558
|
<span class="cline-any cline-neutral"> </span>
|
|
457
559
|
<span class="cline-any cline-neutral"> </span>
|
|
458
560
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -460,6 +562,7 @@
|
|
|
460
562
|
<span class="cline-any cline-neutral"> </span>
|
|
461
563
|
<span class="cline-any cline-neutral"> </span>
|
|
462
564
|
<span class="cline-any cline-neutral"> </span>
|
|
565
|
+
<span class="cline-any cline-no"> </span>
|
|
463
566
|
<span class="cline-any cline-neutral"> </span>
|
|
464
567
|
<span class="cline-any cline-neutral"> </span>
|
|
465
568
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -470,6 +573,8 @@
|
|
|
470
573
|
<span class="cline-any cline-neutral"> </span>
|
|
471
574
|
<span class="cline-any cline-neutral"> </span>
|
|
472
575
|
<span class="cline-any cline-neutral"> </span>
|
|
576
|
+
<span class="cline-any cline-no"> </span>
|
|
577
|
+
<span class="cline-any cline-neutral"> </span>
|
|
473
578
|
<span class="cline-any cline-neutral"> </span>
|
|
474
579
|
<span class="cline-any cline-neutral"> </span>
|
|
475
580
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -579,9 +684,22 @@
|
|
|
579
684
|
<span class="cline-any cline-no"> </span>
|
|
580
685
|
<span class="cline-any cline-neutral"> </span>
|
|
581
686
|
<span class="cline-any cline-no"> </span>
|
|
687
|
+
<span class="cline-any cline-neutral"> </span>
|
|
688
|
+
<span class="cline-any cline-no"> </span>
|
|
689
|
+
<span class="cline-any cline-neutral"> </span>
|
|
690
|
+
<span class="cline-any cline-neutral"> </span>
|
|
691
|
+
<span class="cline-any cline-neutral"> </span>
|
|
692
|
+
<span class="cline-any cline-neutral"> </span>
|
|
693
|
+
<span class="cline-any cline-neutral"> </span>
|
|
694
|
+
<span class="cline-any cline-neutral"> </span>
|
|
695
|
+
<span class="cline-any cline-neutral"> </span>
|
|
696
|
+
<span class="cline-any cline-no"> </span>
|
|
697
|
+
<span class="cline-any cline-neutral"> </span>
|
|
698
|
+
<span class="cline-any cline-no"> </span>
|
|
582
699
|
<span class="cline-any cline-no"> </span>
|
|
583
700
|
<span class="cline-any cline-no"> </span>
|
|
584
701
|
<span class="cline-any cline-neutral"> </span>
|
|
702
|
+
<span class="cline-any cline-no"> </span>
|
|
585
703
|
<span class="cline-any cline-neutral"> </span>
|
|
586
704
|
<span class="cline-any cline-no"> </span>
|
|
587
705
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -596,14 +714,13 @@
|
|
|
596
714
|
<span class="cline-any cline-neutral"> </span>
|
|
597
715
|
<span class="cline-any cline-neutral"> </span>
|
|
598
716
|
<span class="cline-any cline-neutral"> </span>
|
|
599
|
-
<span class="cline-any cline-
|
|
717
|
+
<span class="cline-any cline-neutral"> </span>
|
|
600
718
|
<span class="cline-any cline-neutral"> </span>
|
|
601
719
|
<span class="cline-any cline-no"> </span>
|
|
602
720
|
<span class="cline-any cline-no"> </span>
|
|
603
721
|
<span class="cline-any cline-no"> </span>
|
|
604
722
|
<span class="cline-any cline-neutral"> </span>
|
|
605
723
|
<span class="cline-any cline-no"> </span>
|
|
606
|
-
<span class="cline-any cline-neutral"> </span>
|
|
607
724
|
<span class="cline-any cline-no"> </span>
|
|
608
725
|
<span class="cline-any cline-neutral"> </span>
|
|
609
726
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -617,34 +734,79 @@
|
|
|
617
734
|
<span class="cline-any cline-neutral"> </span>
|
|
618
735
|
<span class="cline-any cline-neutral"> </span>
|
|
619
736
|
<span class="cline-any cline-neutral"> </span>
|
|
737
|
+
<span class="cline-any cline-no"> </span>
|
|
620
738
|
<span class="cline-any cline-neutral"> </span>
|
|
621
739
|
<span class="cline-any cline-neutral"> </span>
|
|
740
|
+
<span class="cline-any cline-neutral"> </span>
|
|
741
|
+
<span class="cline-any cline-no"> </span>
|
|
622
742
|
<span class="cline-any cline-no"> </span>
|
|
743
|
+
<span class="cline-any cline-neutral"> </span>
|
|
744
|
+
<span class="cline-any cline-neutral"> </span>
|
|
745
|
+
<span class="cline-any cline-neutral"> </span>
|
|
623
746
|
<span class="cline-any cline-no"> </span>
|
|
624
747
|
<span class="cline-any cline-no"> </span>
|
|
625
748
|
<span class="cline-any cline-neutral"> </span>
|
|
749
|
+
<span class="cline-any cline-neutral"> </span>
|
|
750
|
+
<span class="cline-any cline-no"> </span>
|
|
751
|
+
<span class="cline-any cline-no"> </span>
|
|
752
|
+
<span class="cline-any cline-no"> </span>
|
|
753
|
+
<span class="cline-any cline-no"> </span>
|
|
626
754
|
<span class="cline-any cline-no"> </span>
|
|
627
755
|
<span class="cline-any cline-no"> </span>
|
|
628
756
|
<span class="cline-any cline-neutral"> </span>
|
|
757
|
+
<span class="cline-any cline-no"> </span>
|
|
629
758
|
<span class="cline-any cline-neutral"> </span>
|
|
630
759
|
<span class="cline-any cline-neutral"> </span>
|
|
631
760
|
<span class="cline-any cline-neutral"> </span>
|
|
632
761
|
<span class="cline-any cline-neutral"> </span>
|
|
633
762
|
<span class="cline-any cline-neutral"> </span>
|
|
763
|
+
<span class="cline-any cline-no"> </span>
|
|
764
|
+
<span class="cline-any cline-no"> </span>
|
|
765
|
+
<span class="cline-any cline-no"> </span>
|
|
634
766
|
<span class="cline-any cline-neutral"> </span>
|
|
635
767
|
<span class="cline-any cline-no"> </span>
|
|
636
768
|
<span class="cline-any cline-neutral"> </span>
|
|
637
769
|
<span class="cline-any cline-neutral"> </span>
|
|
770
|
+
<span class="cline-any cline-no"> </span>
|
|
771
|
+
<span class="cline-any cline-no"> </span>
|
|
772
|
+
<span class="cline-any cline-no"> </span>
|
|
638
773
|
<span class="cline-any cline-neutral"> </span>
|
|
639
774
|
<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-no"> </span>
|
|
781
|
+
<span class="cline-any cline-no"> </span>
|
|
782
|
+
<span class="cline-any cline-neutral"> </span>
|
|
783
|
+
<span class="cline-any cline-neutral"> </span>
|
|
784
|
+
<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>
|
|
640
788
|
<span class="cline-any cline-no"> </span>
|
|
641
789
|
<span class="cline-any cline-neutral"> </span>
|
|
642
790
|
<span class="cline-any cline-neutral"> </span>
|
|
643
791
|
<span class="cline-any cline-neutral"> </span>
|
|
792
|
+
<span class="cline-any cline-neutral"> </span>
|
|
793
|
+
<span class="cline-any cline-neutral"> </span>
|
|
794
|
+
<span class="cline-any cline-neutral"> </span>
|
|
795
|
+
<span class="cline-any cline-neutral"> </span>
|
|
796
|
+
<span class="cline-any cline-no"> </span>
|
|
644
797
|
<span class="cline-any cline-no"> </span>
|
|
645
798
|
<span class="cline-any cline-no"> </span>
|
|
646
799
|
<span class="cline-any cline-neutral"> </span>
|
|
647
800
|
<span class="cline-any cline-neutral"> </span>
|
|
801
|
+
<span class="cline-any cline-no"> </span>
|
|
802
|
+
<span class="cline-any cline-neutral"> </span>
|
|
803
|
+
<span class="cline-any cline-neutral"> </span>
|
|
804
|
+
<span class="cline-any cline-neutral"> </span>
|
|
805
|
+
<span class="cline-any cline-neutral"> </span>
|
|
806
|
+
<span class="cline-any cline-neutral"> </span>
|
|
807
|
+
<span class="cline-any cline-neutral"> </span>
|
|
808
|
+
<span class="cline-any cline-neutral"> </span>
|
|
809
|
+
<span class="cline-any cline-neutral"> </span>
|
|
648
810
|
<span class="cline-any cline-neutral"> </span>
|
|
649
811
|
<span class="cline-any cline-no"> </span>
|
|
650
812
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -652,9 +814,16 @@
|
|
|
652
814
|
<span class="cline-any cline-neutral"> </span>
|
|
653
815
|
<span class="cline-any cline-neutral"> </span>
|
|
654
816
|
<span class="cline-any cline-neutral"> </span>
|
|
817
|
+
<span class="cline-any cline-neutral"> </span>
|
|
818
|
+
<span class="cline-any cline-no"> </span>
|
|
819
|
+
<span class="cline-any cline-no"> </span>
|
|
655
820
|
<span class="cline-any cline-no"> </span>
|
|
656
821
|
<span class="cline-any cline-neutral"> </span>
|
|
657
822
|
<span class="cline-any cline-neutral"> </span>
|
|
823
|
+
<span class="cline-any cline-no"> </span>
|
|
824
|
+
<span class="cline-any cline-neutral"> </span>
|
|
825
|
+
<span class="cline-any cline-neutral"> </span>
|
|
826
|
+
<span class="cline-any cline-neutral"> </span>
|
|
658
827
|
<span class="cline-any cline-neutral"> </span>
|
|
659
828
|
<span class="cline-any cline-neutral"> </span>
|
|
660
829
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -719,7 +888,6 @@
|
|
|
719
888
|
<span class="cline-any cline-neutral"> </span>
|
|
720
889
|
<span class="cline-any cline-neutral"> </span>
|
|
721
890
|
<span class="cline-any cline-neutral"> </span>
|
|
722
|
-
<span class="cline-any cline-neutral"> </span>
|
|
723
891
|
<span class="cline-any cline-no"> </span>
|
|
724
892
|
<span class="cline-any cline-neutral"> </span>
|
|
725
893
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -796,19 +964,9 @@ import get from 'lodash/get';
|
|
|
796
964
|
import cloneDeep from 'lodash/cloneDeep';
|
|
797
965
|
|
|
798
966
|
import { Field, useForm, useFormState } from 'react-final-form';
|
|
799
|
-
|
|
800
|
-
import {
|
|
801
|
-
Button,
|
|
802
|
-
Headline,
|
|
803
|
-
MultiColumnList,
|
|
804
|
-
omitProps,
|
|
805
|
-
TextField
|
|
806
|
-
} from '@folio/stripes/components';
|
|
807
|
-
|
|
967
|
+
import { Button, Headline, IconButton, MultiColumnList, TextField, Tooltip } from '@folio/stripes/components';
|
|
808
968
|
import { useKintIntl } from '../hooks';
|
|
809
969
|
|
|
810
|
-
import ActionTrigger from './ActionTrigger';
|
|
811
|
-
|
|
812
970
|
import css from '../../../styles/ActionListFieldArray.css';
|
|
813
971
|
|
|
814
972
|
const EDITING_ACTIONS_WIDTH = <span class="cstat-no" title="statement not covered" >25;</span>
|
|
@@ -839,6 +997,37 @@ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
839
997
|
visibleFields: PropTypes.arrayOf(PropTypes.string)
|
|
840
998
|
};
|
|
841
999
|
|
|
1000
|
+
// This needs to be outside of the main component for forwardRef to work properly it seems.
|
|
1001
|
+
const ActionTrigger = <span class="cstat-no" title="statement not covered" >forwardRef(<span class="fstat-no" title="function not covered" >({</span> action, ...actionTriggerProps }, ref) => {</span>
|
|
1002
|
+
<span class="cstat-no" title="statement not covered" > if (action.icon) {</span>
|
|
1003
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1004
|
+
<IconButton
|
|
1005
|
+
ref={ref}
|
|
1006
|
+
icon={action.icon}
|
|
1007
|
+
{...actionTriggerProps}
|
|
1008
|
+
/>
|
|
1009
|
+
);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1013
|
+
<Button
|
|
1014
|
+
ref={ref}
|
|
1015
|
+
marginBottom0
|
|
1016
|
+
{...actionTriggerProps}
|
|
1017
|
+
>
|
|
1018
|
+
{action.label ?? action.name}
|
|
1019
|
+
</Button>
|
|
1020
|
+
);
|
|
1021
|
+
});
|
|
1022
|
+
|
|
1023
|
+
<span class="cstat-no" title="statement not covered" >ActionTrigger.propTypes = {</span>
|
|
1024
|
+
action: PropTypes.shape({
|
|
1025
|
+
icon: PropTypes.string,
|
|
1026
|
+
label: PropTypes.string,
|
|
1027
|
+
name: PropTypes.string
|
|
1028
|
+
})
|
|
1029
|
+
};
|
|
1030
|
+
|
|
842
1031
|
const ActionListFieldArray = <span class="cstat-no" title="statement not covered" >forwardRef(<span class="fstat-no" title="function not covered" >({</span></span>
|
|
843
1032
|
actionAssigner,
|
|
844
1033
|
columnMapping,
|
|
@@ -942,22 +1131,14 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
942
1131
|
const { actionListActions: actions, ...rest } = <span class="cstat-no" title="statement not covered" >data;</span>
|
|
943
1132
|
|
|
944
1133
|
<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
|
-
|
|
948
1134
|
// Render the save/cancel buttons
|
|
949
1135
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
950
1136
|
<div id="action-button-parent">
|
|
951
|
-
<
|
|
1137
|
+
<Button
|
|
952
1138
|
key={`save[${data.rowIndex}]`}
|
|
953
|
-
action={saveAction}
|
|
954
|
-
buttonLabel={kintIntl.formatKintMessage({
|
|
955
|
-
id: 'save',
|
|
956
|
-
overrideValue: labelOverrides?.save
|
|
957
|
-
})}
|
|
958
1139
|
buttonStyle="primary"
|
|
959
|
-
data={data}
|
|
960
1140
|
disabled={hasValidationErrors || submitting || pristine}
|
|
1141
|
+
marginBottom0
|
|
961
1142
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
962
1143
|
<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
|
|
963
1144
|
|
|
@@ -971,16 +1152,16 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
971
1152
|
}
|
|
972
1153
|
}}
|
|
973
1154
|
type="submit"
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
buttonLabel={kintIntl.formatKintMessage({
|
|
979
|
-
id: 'cancel',
|
|
980
|
-
overrideValue: labelOverrides?.cancel
|
|
1155
|
+
>
|
|
1156
|
+
{kintIntl.formatKintMessage({
|
|
1157
|
+
id: 'save',
|
|
1158
|
+
overrideValue: labelOverrides?.save
|
|
981
1159
|
})}
|
|
982
|
-
|
|
1160
|
+
</Button>
|
|
1161
|
+
<Button
|
|
1162
|
+
key={`cancel[${data.rowIndex}]`}
|
|
983
1163
|
data-type-button="cancel"
|
|
1164
|
+
marginBottom0
|
|
984
1165
|
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
985
1166
|
<span class="cstat-no" title="statement not covered" > if (!data.id && editing === 'NEW_ROW') {</span>
|
|
986
1167
|
<span class="cstat-no" title="statement not covered" > fields.remove(data.rowIndex);</span>
|
|
@@ -990,7 +1171,12 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
990
1171
|
<span class="cstat-no" title="statement not covered" > toggleEditing(data.id);</span>
|
|
991
1172
|
}
|
|
992
1173
|
}}
|
|
993
|
-
|
|
1174
|
+
>
|
|
1175
|
+
{kintIntl.formatKintMessage({
|
|
1176
|
+
id: 'cancel',
|
|
1177
|
+
overrideValue: labelOverrides?.cancel
|
|
1178
|
+
})}
|
|
1179
|
+
</Button>
|
|
994
1180
|
</div>
|
|
995
1181
|
);
|
|
996
1182
|
}
|
|
@@ -1007,15 +1193,82 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1007
1193
|
<span class="cstat-no" title="statement not covered" > if (action.name === 'edit') {</span>
|
|
1008
1194
|
<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>
|
|
1009
1195
|
}
|
|
1196
|
+
|
|
1197
|
+
let ariaLabel = <span class="cstat-no" title="statement not covered" >`action-${action.name}[${data.rowIndex}]`;</span>
|
|
1198
|
+
<span class="cstat-no" title="statement not covered" > if (action?.ariaLabel) {</span>
|
|
1199
|
+
<span class="cstat-no" title="statement not covered" > if (typeof action.ariaLabel === 'function') {</span>
|
|
1200
|
+
<span class="cstat-no" title="statement not covered" > ariaLabel = action.ariaLabel(data);</span>
|
|
1201
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof action.ariaLabel === 'string') {</span>
|
|
1202
|
+
<span class="cstat-no" title="statement not covered" > ariaLabel = action.ariaLabel;</span>
|
|
1203
|
+
} else {
|
|
1204
|
+
<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>
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
let tooltip;
|
|
1209
|
+
let tooltipSub;
|
|
1210
|
+
<span class="cstat-no" title="statement not covered" > if (action?.tooltip) {</span>
|
|
1211
|
+
<span class="cstat-no" title="statement not covered" > if (typeof action.tooltip === 'function') {</span>
|
|
1212
|
+
<span class="cstat-no" title="statement not covered" > tooltip = action.tooltip(data);</span>
|
|
1213
|
+
} else {
|
|
1214
|
+
<span class="cstat-no" title="statement not covered" > tooltip = action.tooltip;</span>
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
<span class="cstat-no" title="statement not covered" > if (action?.tooltipSub) {</span>
|
|
1218
|
+
<span class="cstat-no" title="statement not covered" > if (typeof action.tooltipSub === 'function') {</span>
|
|
1219
|
+
<span class="cstat-no" title="statement not covered" > tooltipSub = action.tooltipSub(data);</span>
|
|
1220
|
+
} else {
|
|
1221
|
+
<span class="cstat-no" title="statement not covered" > tooltipSub = action.tooltipSub;</span>
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
// If a tooltip is declared, render that around the actionButton
|
|
1227
|
+
<span class="cstat-no" title="statement not covered" > if (tooltip) {</span>
|
|
1228
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1229
|
+
<Tooltip
|
|
1230
|
+
id={`action-${action.name}[${data.rowIndex}]-tooltip`}
|
|
1231
|
+
sub={tooltipSub}
|
|
1232
|
+
text={tooltip}
|
|
1233
|
+
>
|
|
1234
|
+
{<span class="fstat-no" title="function not covered" >({</span> ref: actionTriggerRef, ariaIds }) => (
|
|
1235
|
+
<span class="cstat-no" title="statement not covered" > <ActionTrigger</span>
|
|
1236
|
+
key={`action-${action.name}[${data.rowIndex}]`}
|
|
1237
|
+
ref={actionTriggerRef}
|
|
1238
|
+
action={action}
|
|
1239
|
+
aria-describedby={ariaIds.sub}
|
|
1240
|
+
aria-labelledby={ariaIds.text}
|
|
1241
|
+
disabled={editing}
|
|
1242
|
+
onClick={<span class="fstat-no" title="function not covered" >e </span>=> {
|
|
1243
|
+
<span class="cstat-no" title="statement not covered" > e.stopPropagation();</span>
|
|
1244
|
+
<span class="cstat-no" title="statement not covered" > if (actionFunction) {</span>
|
|
1245
|
+
<span class="cstat-no" title="statement not covered" > return actionFunction();</span>
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
1249
|
+
}}
|
|
1250
|
+
to={action.to}
|
|
1251
|
+
/>
|
|
1252
|
+
)}
|
|
1253
|
+
</Tooltip>
|
|
1254
|
+
);
|
|
1255
|
+
}
|
|
1010
1256
|
|
|
1011
1257
|
// Finally, render the action button itself
|
|
1012
1258
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1013
1259
|
<ActionTrigger
|
|
1014
1260
|
key={`action-${action.name}[${data.rowIndex}]`}
|
|
1015
1261
|
action={action}
|
|
1016
|
-
|
|
1017
|
-
disabled={
|
|
1018
|
-
onClick={<span class="fstat-no" title="function not covered" >
|
|
1262
|
+
ariaLabel={ariaLabel}
|
|
1263
|
+
disabled={editing}
|
|
1264
|
+
onClick={<span class="fstat-no" title="function not covered" >e </span>=> {
|
|
1265
|
+
<span class="cstat-no" title="statement not covered" > e.stopPropagation();</span>
|
|
1266
|
+
<span class="cstat-no" title="statement not covered" > if (actionFunction) {</span>
|
|
1267
|
+
<span class="cstat-no" title="statement not covered" > return actionFunction();</span>
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
1271
|
+
}}
|
|
1019
1272
|
to={action.to}
|
|
1020
1273
|
/>
|
|
1021
1274
|
);
|
|
@@ -1075,8 +1328,7 @@ const ActionListFieldArray = <span class="cstat-no" title="statement not covered
|
|
|
1075
1328
|
<span class="cstat-no" title="statement not covered" > returnValue =</span>
|
|
1076
1329
|
fieldComponents[key] ?
|
|
1077
1330
|
fieldComponents[key]({
|
|
1078
|
-
name: `${cd.fieldName}.${key}
|
|
1079
|
-
data: omitProps(cd, 'actionListActions')
|
|
1331
|
+
name: `${cd.fieldName}.${key}`
|
|
1080
1332
|
}) :
|
|
1081
1333
|
<Field
|
|
1082
1334
|
autoFocus={autoFocus}
|
|
@@ -1159,7 +1411,7 @@ export default ActionListFieldArray;
|
|
|
1159
1411
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1160
1412
|
Code coverage generated by
|
|
1161
1413
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1162
|
-
at
|
|
1414
|
+
at 2023-01-18T10:53:27.335Z
|
|
1163
1415
|
</div>
|
|
1164
1416
|
<script src="../prettify.js"></script>
|
|
1165
1417
|
<script>
|
|
@@ -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/132</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/93</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/33</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/125</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -99,28 +99,13 @@
|
|
|
99
99
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="0" class="pct low">0%</td>
|
|
102
|
-
<td data-value="
|
|
102
|
+
<td data-value="123" class="abs low">0/123</td>
|
|
103
103
|
<td data-value="0" class="pct low">0%</td>
|
|
104
|
-
<td data-value="
|
|
104
|
+
<td data-value="88" class="abs low">0/88</td>
|
|
105
105
|
<td data-value="0" class="pct low">0%</td>
|
|
106
106
|
<td data-value="28" class="abs low">0/28</td>
|
|
107
107
|
<td data-value="0" class="pct low">0%</td>
|
|
108
|
-
<td data-value="
|
|
109
|
-
</tr>
|
|
110
|
-
|
|
111
|
-
<tr>
|
|
112
|
-
<td class="file low" data-value="ActionTrigger.js"><a href="ActionTrigger.js.html">ActionTrigger.js</a></td>
|
|
113
|
-
<td data-value="0" class="pic low">
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
115
|
-
</td>
|
|
116
|
-
<td data-value="0" class="pct low">0%</td>
|
|
117
|
-
<td data-value="18" class="abs low">0/18</td>
|
|
118
|
-
<td data-value="0" class="pct low">0%</td>
|
|
119
|
-
<td data-value="20" class="abs low">0/20</td>
|
|
120
|
-
<td data-value="0" class="pct low">0%</td>
|
|
121
|
-
<td data-value="3" class="abs low">0/3</td>
|
|
122
|
-
<td data-value="0" class="pct low">0%</td>
|
|
123
|
-
<td data-value="18" class="abs low">0/18</td>
|
|
108
|
+
<td data-value="117" class="abs low">0/117</td>
|
|
124
109
|
</tr>
|
|
125
110
|
|
|
126
111
|
<tr>
|
|
@@ -146,7 +131,7 @@
|
|
|
146
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
132
|
Code coverage generated by
|
|
148
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at
|
|
134
|
+
at 2023-01-18T10:53:27.335Z
|
|
150
135
|
</div>
|
|
151
136
|
<script src="../prettify.js"></script>
|
|
152
137
|
<script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at 2023-01-18T10:53:27.335Z
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|
|
@@ -652,7 +652,7 @@ export default CustomPropertiesLookup;
|
|
|
652
652
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
653
653
|
Code coverage generated by
|
|
654
654
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
655
|
-
at
|
|
655
|
+
at 2023-01-18T10:53:27.335Z
|
|
656
656
|
</div>
|
|
657
657
|
<script src="../../prettify.js"></script>
|
|
658
658
|
<script>
|
|
@@ -1147,7 +1147,7 @@ export default CustomPropertiesSettings;
|
|
|
1147
1147
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1148
1148
|
Code coverage generated by
|
|
1149
1149
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1150
|
-
at
|
|
1150
|
+
at 2023-01-18T10:53:27.335Z
|
|
1151
1151
|
</div>
|
|
1152
1152
|
<script src="../../prettify.js"></script>
|
|
1153
1153
|
<script>
|