@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
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">10% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>1/
|
|
28
|
+
<span class='fraction'>1/10</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">11.11% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>1/
|
|
49
|
+
<span class='fraction'>1/9</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -81,9 +81,11 @@
|
|
|
81
81
|
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
82
|
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
83
|
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
-
<a name='L19'></a><a href='#L19'>19</a
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
|
|
85
86
|
<span class="cline-any cline-neutral"> </span>
|
|
86
87
|
<span class="cline-any cline-no"> </span>
|
|
88
|
+
<span class="cline-any cline-no"> </span>
|
|
87
89
|
<span class="cline-any cline-neutral"> </span>
|
|
88
90
|
<span class="cline-any cline-no"> </span>
|
|
89
91
|
<span class="cline-any cline-no"> </span>
|
|
@@ -101,15 +103,16 @@
|
|
|
101
103
|
<span class="cline-any cline-neutral"> </span>
|
|
102
104
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const parseErrorResponse = <span class="fstat-no" title="function not covered" >as</span>ync (responseObj) => {
|
|
103
105
|
let errorResp;
|
|
106
|
+
const code = <span class="cstat-no" title="statement not covered" >responseObj?.status;</span>
|
|
104
107
|
const contentType = <span class="cstat-no" title="statement not covered" >[...responseObj?.headers]?.find(<span class="fstat-no" title="function not covered" >he</span>ader => <span class="cstat-no" title="statement not covered" >header[0] === 'content-type')</span>?.[1];</span>
|
|
105
108
|
|
|
106
109
|
<span class="cstat-no" title="statement not covered" > if (contentType.includes('json')) {</span>
|
|
107
110
|
<span class="cstat-no" title="statement not covered" > errorResp = await responseObj.json();</span>
|
|
108
111
|
} else {
|
|
109
112
|
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
110
|
-
<span class="cstat-no" title="statement not covered" > errorResp = { message: await responseObj.text() };</span>
|
|
113
|
+
<span class="cstat-no" title="statement not covered" > errorResp = { code, message: await responseObj.text() };</span>
|
|
111
114
|
} catch {
|
|
112
|
-
<span class="cstat-no" title="statement not covered" > errorResp = { message: 'something went wrong' };</span>
|
|
115
|
+
<span class="cstat-no" title="statement not covered" > errorResp = { code, message: 'something went wrong' };</span>
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
118
|
|
|
@@ -124,7 +127,7 @@ export default parseErrorResponse;
|
|
|
124
127
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
128
|
Code coverage generated by
|
|
126
129
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at
|
|
130
|
+
at 2023-01-18T10:53:27.335Z
|
|
128
131
|
</div>
|
|
129
132
|
<script src="../prettify.js"></script>
|
|
130
133
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for utils/parseKiwtQueryGroups.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../base.css" />
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../index.html">All files</a> / <a href="index.html">
|
|
22
|
+
<h1><a href="../index.html">All files</a> / <a href="index.html">utils</a> parseKiwtQueryGroups.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">3.12% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>1/32</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/19</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">3.12% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>1/32</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -128,214 +128,136 @@
|
|
|
128
128
|
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
129
|
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
130
|
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
-
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
-
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
-
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
-
<a name='L69'></a><a href='#L69'>69</a>
|
|
135
|
-
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
|
-
<a name='L71'></a><a href='#L71'>71</a>
|
|
137
|
-
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
|
-
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
|
-
<a name='L74'></a><a href='#L74'>74</a>
|
|
140
|
-
<a name='L75'></a><a href='#L75'>75</a>
|
|
141
|
-
<a name='L76'></a><a href='#L76'>76</a>
|
|
142
|
-
<a name='L77'></a><a href='#L77'>77</a>
|
|
143
|
-
<a name='L78'></a><a href='#L78'>78</a>
|
|
144
|
-
<a name='L79'></a><a href='#L79'>79</a>
|
|
145
|
-
<a name='L80'></a><a href='#L80'>80</a>
|
|
146
|
-
<a name='L81'></a><a href='#L81'>81</a>
|
|
147
|
-
<a name='L82'></a><a href='#L82'>82</a>
|
|
148
|
-
<a name='L83'></a><a href='#L83'>83</a>
|
|
149
|
-
<a name='L84'></a><a href='#L84'>84</a>
|
|
150
|
-
<a name='L85'></a><a href='#L85'>85</a>
|
|
151
|
-
<a name='L86'></a><a href='#L86'>86</a>
|
|
152
|
-
<a name='L87'></a><a href='#L87'>87</a>
|
|
153
|
-
<a name='L88'></a><a href='#L88'>88</a>
|
|
154
|
-
<a name='L89'></a><a href='#L89'>89</a>
|
|
155
|
-
<a name='L90'></a><a href='#L90'>90</a>
|
|
156
|
-
<a name='L91'></a><a href='#L91'>91</a>
|
|
157
|
-
<a name='L92'></a><a href='#L92'>92</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
158
|
-
<span class="cline-any cline-neutral"> </span>
|
|
159
|
-
<span class="cline-any cline-neutral"> </span>
|
|
160
|
-
<span class="cline-any cline-neutral"> </span>
|
|
161
|
-
<span class="cline-any cline-neutral"> </span>
|
|
162
|
-
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<a name='L66'></a><a href='#L66'>66</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
|
|
163
132
|
<span class="cline-any cline-neutral"> </span>
|
|
164
133
|
<span class="cline-any cline-no"> </span>
|
|
165
134
|
<span class="cline-any cline-neutral"> </span>
|
|
166
|
-
<span class="cline-any cline-
|
|
135
|
+
<span class="cline-any cline-no"> </span>
|
|
167
136
|
<span class="cline-any cline-neutral"> </span>
|
|
168
137
|
<span class="cline-any cline-neutral"> </span>
|
|
169
138
|
<span class="cline-any cline-neutral"> </span>
|
|
170
139
|
<span class="cline-any cline-no"> </span>
|
|
171
|
-
<span class="cline-any cline-neutral"> </span>
|
|
172
140
|
<span class="cline-any cline-no"> </span>
|
|
173
141
|
<span class="cline-any cline-no"> </span>
|
|
174
142
|
<span class="cline-any cline-neutral"> </span>
|
|
175
|
-
<span class="cline-any cline-neutral"> </span>
|
|
176
|
-
<span class="cline-any cline-neutral"> </span>
|
|
177
|
-
<span class="cline-any cline-neutral"> </span>
|
|
178
|
-
<span class="cline-any cline-neutral"> </span>
|
|
179
143
|
<span class="cline-any cline-no"> </span>
|
|
180
|
-
<span class="cline-any cline-neutral"> </span>
|
|
181
|
-
<span class="cline-any cline-neutral"> </span>
|
|
182
|
-
<span class="cline-any cline-neutral"> </span>
|
|
183
|
-
<span class="cline-any cline-neutral"> </span>
|
|
184
|
-
<span class="cline-any cline-neutral"> </span>
|
|
185
|
-
<span class="cline-any cline-neutral"> </span>
|
|
186
|
-
<span class="cline-any cline-neutral"> </span>
|
|
187
144
|
<span class="cline-any cline-no"> </span>
|
|
188
|
-
<span class="cline-any cline-
|
|
189
|
-
<span class="cline-any cline-
|
|
190
|
-
<span class="cline-any cline-neutral"> </span>
|
|
191
|
-
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-no"> </span>
|
|
146
|
+
<span class="cline-any cline-no"> </span>
|
|
192
147
|
<span class="cline-any cline-neutral"> </span>
|
|
193
148
|
<span class="cline-any cline-neutral"> </span>
|
|
194
149
|
<span class="cline-any cline-neutral"> </span>
|
|
195
150
|
<span class="cline-any cline-no"> </span>
|
|
196
151
|
<span class="cline-any cline-no"> </span>
|
|
197
152
|
<span class="cline-any cline-neutral"> </span>
|
|
198
|
-
<span class="cline-any cline-no"> </span>
|
|
199
|
-
<span class="cline-any cline-no"> </span>
|
|
200
153
|
<span class="cline-any cline-neutral"> </span>
|
|
201
154
|
<span class="cline-any cline-neutral"> </span>
|
|
202
155
|
<span class="cline-any cline-no"> </span>
|
|
203
156
|
<span class="cline-any cline-no"> </span>
|
|
204
157
|
<span class="cline-any cline-no"> </span>
|
|
205
158
|
<span class="cline-any cline-neutral"> </span>
|
|
206
|
-
<span class="cline-any cline-neutral"> </span>
|
|
207
159
|
<span class="cline-any cline-no"> </span>
|
|
208
160
|
<span class="cline-any cline-neutral"> </span>
|
|
209
161
|
<span class="cline-any cline-neutral"> </span>
|
|
210
162
|
<span class="cline-any cline-no"> </span>
|
|
211
163
|
<span class="cline-any cline-no"> </span>
|
|
212
|
-
<span class="cline-any cline-neutral"> </span>
|
|
213
|
-
<span class="cline-any cline-neutral"> </span>
|
|
214
164
|
<span class="cline-any cline-no"> </span>
|
|
215
|
-
<span class="cline-any cline-no"> </span>
|
|
216
|
-
<span class="cline-any cline-neutral"> </span>
|
|
217
165
|
<span class="cline-any cline-neutral"> </span>
|
|
218
166
|
<span class="cline-any cline-no"> </span>
|
|
219
|
-
<span class="cline-any cline-neutral"> </span>
|
|
220
|
-
<span class="cline-any cline-neutral"> </span>
|
|
221
167
|
<span class="cline-any cline-no"> </span>
|
|
168
|
+
<span class="cline-any cline-neutral"> </span>
|
|
222
169
|
<span class="cline-any cline-no"> </span>
|
|
223
170
|
<span class="cline-any cline-no"> </span>
|
|
224
171
|
<span class="cline-any cline-neutral"> </span>
|
|
225
172
|
<span class="cline-any cline-no"> </span>
|
|
226
|
-
<span class="cline-any cline-neutral"> </span>
|
|
227
|
-
<span class="cline-any cline-neutral"> </span>
|
|
228
173
|
<span class="cline-any cline-no"> </span>
|
|
174
|
+
<span class="cline-any cline-neutral"> </span>
|
|
229
175
|
<span class="cline-any cline-no"> </span>
|
|
230
176
|
<span class="cline-any cline-neutral"> </span>
|
|
231
177
|
<span class="cline-any cline-neutral"> </span>
|
|
232
|
-
<span class="cline-any cline-no"> </span>
|
|
233
|
-
<span class="cline-any cline-no"> </span>
|
|
234
178
|
<span class="cline-any cline-neutral"> </span>
|
|
235
179
|
<span class="cline-any cline-no"> </span>
|
|
236
180
|
<span class="cline-any cline-neutral"> </span>
|
|
237
181
|
<span class="cline-any cline-neutral"> </span>
|
|
182
|
+
<span class="cline-any cline-no"> </span>
|
|
238
183
|
<span class="cline-any cline-neutral"> </span>
|
|
239
184
|
<span class="cline-any cline-neutral"> </span>
|
|
240
185
|
<span class="cline-any cline-no"> </span>
|
|
241
186
|
<span class="cline-any cline-neutral"> </span>
|
|
242
187
|
<span class="cline-any cline-neutral"> </span>
|
|
188
|
+
<span class="cline-any cline-no"> </span>
|
|
189
|
+
<span class="cline-any cline-no"> </span>
|
|
243
190
|
<span class="cline-any cline-neutral"> </span>
|
|
244
191
|
<span class="cline-any cline-neutral"> </span>
|
|
192
|
+
<span class="cline-any cline-no"> </span>
|
|
245
193
|
<span class="cline-any cline-neutral"> </span>
|
|
246
194
|
<span class="cline-any cline-neutral"> </span>
|
|
247
195
|
<span class="cline-any cline-neutral"> </span>
|
|
248
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">
|
|
249
|
-
|
|
196
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const parseKiwtQueryGroups = <span class="fstat-no" title="function not covered" >(q</span>uery) => {
|
|
197
|
+
// Split out all operators and brackets, but keeping them all intact in the correct potition.
|
|
198
|
+
const splitString = <span class="cstat-no" title="statement not covered" >query.split(/(?<=\|\||&&|\(|\))|(?=\|\||&&|\(|\))/);</span>
|
|
199
|
+
// Keep track of what to skip over when wereturn from each level of nesting
|
|
200
|
+
let skipCount = <span class="cstat-no" title="statement not covered" >[0];</span>
|
|
250
201
|
|
|
251
|
-
import { SettingsContext } from '../contexts';
|
|
252
202
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
203
|
+
// Ensure brackets are properly closed
|
|
204
|
+
let unclosedBrackets = <span class="cstat-no" title="statement not covered" >0;</span>
|
|
205
|
+
const groupParser = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(p</span>arseArray, nestLevel = <span class="branch-0 cbranch-no" title="branch not covered" >0)</span> => {</span>
|
|
206
|
+
const group = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
207
|
+
// Iterate over each element in the array, recursively calling this when hitting brackets
|
|
208
|
+
<span class="cstat-no" title="statement not covered" > parseArray?.every(<span class="fstat-no" title="function not covered" >(e</span>lement, index) => {</span>
|
|
209
|
+
<span class="cstat-no" title="statement not covered" > if (skipCount[nestLevel] > 0) {</span>
|
|
210
|
+
<span class="cstat-no" title="statement not covered" > skipCount[nestLevel] -= 1;</span>
|
|
211
|
+
<span class="cstat-no" title="statement not covered" > return true; </span>// Equivalent to BREAK -- move onto next element
|
|
212
|
+
}
|
|
262
213
|
|
|
263
|
-
|
|
264
|
-
|
|
214
|
+
// Deal with unexpected extra closure
|
|
215
|
+
<span class="cstat-no" title="statement not covered" > if (nestLevel === 0 && element === ')') {</span>
|
|
216
|
+
<span class="cstat-no" title="statement not covered" > throw new Error('Unexpected character \')\' found, stopping parse.');</span>
|
|
217
|
+
}
|
|
265
218
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
queryParams: {
|
|
274
|
-
enabled: !!setting?.vocab && setting.settingType === 'Refdata'
|
|
275
|
-
}
|
|
276
|
-
});
|
|
219
|
+
// At the levels below all of the following will need
|
|
220
|
+
<span class="cstat-no" title="statement not covered" > skipCount = skipCount?.map(<span class="fstat-no" title="function not covered" >(n</span>, i) => {</span>
|
|
221
|
+
<span class="cstat-no" title="statement not covered" > if (i < nestLevel) {</span>
|
|
222
|
+
<span class="cstat-no" title="statement not covered" > return n + 1;</span>
|
|
223
|
+
}
|
|
224
|
+
<span class="cstat-no" title="statement not covered" > return n;</span>
|
|
225
|
+
});
|
|
277
226
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
});
|
|
227
|
+
<span class="cstat-no" title="statement not covered" > if (element !== '(' && element !== ')') {</span>
|
|
228
|
+
<span class="cstat-no" title="statement not covered" > group?.push(element);</span>
|
|
229
|
+
} else <span class="cstat-no" title="statement not covered" >if (element === ')') {</span>
|
|
230
|
+
// Remove the corresponding skipCount level because we're going down a nesting level
|
|
231
|
+
<span class="cstat-no" title="statement not covered" > skipCount.pop();</span>
|
|
232
|
+
<span class="cstat-no" title="statement not covered" > unclosedBrackets -= 1;</span>
|
|
285
233
|
|
|
286
|
-
|
|
287
|
-
<span class="cstat-no" title="statement not covered" >
|
|
288
|
-
|
|
289
|
-
<span class="cstat-no" title="statement not covered" >
|
|
290
|
-
<span class="cstat-no" title="statement not covered" >
|
|
291
|
-
}
|
|
234
|
+
<span class="cstat-no" title="statement not covered" > return false; </span>// Equivalent to BREAK -- go up a nesting level
|
|
235
|
+
} else <span class="cstat-no" title="statement not covered" >if (element === '(') {</span>
|
|
236
|
+
// Add next index to skipcount for the nesting
|
|
237
|
+
<span class="cstat-no" title="statement not covered" > skipCount.push(0);</span>
|
|
238
|
+
<span class="cstat-no" title="statement not covered" > unclosedBrackets += 1;</span>
|
|
292
239
|
|
|
293
|
-
<span class="cstat-no" title="statement not covered" >
|
|
294
|
-
const defValue = <span class="cstat-no" title="statement not covered" >refdata?.filter(<span class="fstat-no" title="function not covered" >(o</span>bj) => <span class="cstat-no" title="statement not covered" >obj.value === setting.defValue)</span>[0]?.label;</span>
|
|
295
|
-
<span class="cstat-no" title="statement not covered" > return `${defaultText} ${defValue}`;</span>
|
|
240
|
+
<span class="cstat-no" title="statement not covered" > group.push(groupParser(parseArray.slice(index + 1, parseArray?.length), nestLevel + 1));</span>
|
|
296
241
|
}
|
|
297
242
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
<span class="cstat-no" title="statement not covered" > if (setting.value) {</span>
|
|
302
|
-
<span class="cstat-no" title="statement not covered" > return '********';</span>
|
|
303
|
-
}
|
|
243
|
+
// If all is well, continue on parsing
|
|
244
|
+
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
245
|
+
});
|
|
304
246
|
|
|
305
|
-
<span class="cstat-no" title="statement not covered" >
|
|
306
|
-
|
|
307
|
-
}
|
|
247
|
+
<span class="cstat-no" title="statement not covered" > return group;</span>
|
|
248
|
+
};
|
|
308
249
|
|
|
309
|
-
<span class="cstat-no" title="statement not covered" >
|
|
310
|
-
}
|
|
311
|
-
case 'Template': {
|
|
312
|
-
const templateValue = <span class="cstat-no" title="statement not covered" >templates.filter(<span class="fstat-no" title="function not covered" >(o</span>bj) => {</span>
|
|
313
|
-
const settingId = <span class="cstat-no" title="statement not covered" >setting.value || setting.defValue;</span>
|
|
314
|
-
<span class="cstat-no" title="statement not covered" > return obj.id === settingId;</span>
|
|
315
|
-
})[0];
|
|
316
|
-
<span class="cstat-no" title="statement not covered" > return templateValue?.name || '';</span>
|
|
317
|
-
}
|
|
318
|
-
default: {
|
|
319
|
-
<span class="cstat-no" title="statement not covered" > if (setting.value) {</span>
|
|
320
|
-
<span class="cstat-no" title="statement not covered" > return setting.value;</span>
|
|
321
|
-
}
|
|
250
|
+
const outputGroups = <span class="cstat-no" title="statement not covered" >groupParser(splitString);</span>
|
|
322
251
|
|
|
323
|
-
|
|
324
|
-
<span class="cstat-no" title="statement not covered" >
|
|
325
|
-
|
|
326
|
-
<span class="cstat-no" title="statement not covered" > return '';</span>
|
|
327
|
-
}
|
|
252
|
+
// Deal with unclosed parentheses
|
|
253
|
+
<span class="cstat-no" title="statement not covered" > if (unclosedBrackets > 0) {</span>
|
|
254
|
+
<span class="cstat-no" title="statement not covered" > throw new Error('Found unclosed paretheses, stopping parse.');</span>
|
|
328
255
|
}
|
|
329
|
-
};
|
|
330
256
|
|
|
331
|
-
<span class="cstat-no" title="statement not covered" >
|
|
332
|
-
intlKey: PropTypes.string,
|
|
333
|
-
intlNS: PropTypes.string,
|
|
334
|
-
labelOverrides: PropTypes.object,
|
|
335
|
-
setting: PropTypes.object,
|
|
257
|
+
<span class="cstat-no" title="statement not covered" > return outputGroups;</span>
|
|
336
258
|
};
|
|
337
259
|
|
|
338
|
-
export default
|
|
260
|
+
export default parseKiwtQueryGroups;
|
|
339
261
|
</pre></td></tr></table></pre>
|
|
340
262
|
|
|
341
263
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -343,7 +265,7 @@ export default RenderSettingValue;
|
|
|
343
265
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
344
266
|
Code coverage generated by
|
|
345
267
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
346
|
-
at
|
|
268
|
+
at 2023-01-18T10:53:27.335Z
|
|
347
269
|
</div>
|
|
348
270
|
<script src="../prettify.js"></script>
|
|
349
271
|
<script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
97
|
-
at
|
|
97
|
+
at 2023-01-18T10:53:27.335Z
|
|
98
98
|
</div>
|
|
99
99
|
<script src="../prettify.js"></script>
|
|
100
100
|
<script>
|
|
@@ -97,7 +97,7 @@ export default refdataQueryKey;
|
|
|
97
97
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
98
98
|
Code coverage generated by
|
|
99
99
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
100
|
-
at
|
|
100
|
+
at 2023-01-18T10:53:27.335Z
|
|
101
101
|
</div>
|
|
102
102
|
<script src="../prettify.js"></script>
|
|
103
103
|
<script>
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for utils/renderHelpText.js</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../index.html">All files</a> / <a href="index.html">utils</a> renderHelpText.js</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">8.33% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>1/12</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/0</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/11</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">8.33% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>1/12</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
94
|
+
<span class="cline-any cline-neutral"> </span>
|
|
95
|
+
<span class="cline-any cline-neutral"> </span>
|
|
96
|
+
<span class="cline-any cline-neutral"> </span>
|
|
97
|
+
<span class="cline-any cline-yes">7x</span>
|
|
98
|
+
<span class="cline-any cline-no"> </span>
|
|
99
|
+
<span class="cline-any cline-neutral"> </span>
|
|
100
|
+
<span class="cline-any cline-neutral"> </span>
|
|
101
|
+
<span class="cline-any cline-neutral"> </span>
|
|
102
|
+
<span class="cline-any cline-neutral"> </span>
|
|
103
|
+
<span class="cline-any cline-no"> </span>
|
|
104
|
+
<span class="cline-any cline-no"> </span>
|
|
105
|
+
<span class="cline-any cline-no"> </span>
|
|
106
|
+
<span class="cline-any cline-no"> </span>
|
|
107
|
+
<span class="cline-any cline-no"> </span>
|
|
108
|
+
<span class="cline-any cline-no"> </span>
|
|
109
|
+
<span class="cline-any cline-no"> </span>
|
|
110
|
+
<span class="cline-any cline-no"> </span>
|
|
111
|
+
<span class="cline-any cline-no"> </span>
|
|
112
|
+
<span class="cline-any cline-no"> </span>
|
|
113
|
+
<span class="cline-any cline-neutral"> </span>
|
|
114
|
+
<span class="cline-any cline-neutral"> </span>
|
|
115
|
+
<span class="cline-any cline-neutral"> </span>
|
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
120
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
121
|
+
import { FormattedMessage } from 'react-intl';
|
|
122
|
+
import css from '../../../styles/renderHelpText.css';
|
|
123
|
+
|
|
124
|
+
const renderHelpText = <span class="fstat-no" title="function not covered" >(i</span>d) => {
|
|
125
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
126
|
+
<div className={css.help}>
|
|
127
|
+
<FormattedMessage
|
|
128
|
+
id={id}
|
|
129
|
+
values={{
|
|
130
|
+
b: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><b>{chunks}</b>,</span>
|
|
131
|
+
i: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><i>{chunks}</i>,</span>
|
|
132
|
+
em: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><em>{chunks}</em>,</span>
|
|
133
|
+
strong: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><strong>{chunks}</strong>,</span>
|
|
134
|
+
span: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><span>{chunks}</span>,</span>
|
|
135
|
+
div: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><div>{chunks}</div>,</span>
|
|
136
|
+
p: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><p>{chunks}</p>,</span>
|
|
137
|
+
ul: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><ul>{chunks}</ul>,</span>
|
|
138
|
+
ol: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><ol>{chunks}</ol>,</span>
|
|
139
|
+
li: <span class="fstat-no" title="function not covered" >(c</span>hunks) => <span class="cstat-no" title="statement not covered" ><li>{chunks}</li>,</span>
|
|
140
|
+
}}
|
|
141
|
+
/>
|
|
142
|
+
</div>
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export default renderHelpText;
|
|
147
|
+
</pre></td></tr></table></pre>
|
|
148
|
+
|
|
149
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
150
|
+
</div><!-- /wrapper -->
|
|
151
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
152
|
+
Code coverage generated by
|
|
153
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
154
|
+
at 2022-11-22T09:57:19.883Z
|
|
155
|
+
</div>
|
|
156
|
+
<script src="../prettify.js"></script>
|
|
157
|
+
<script>
|
|
158
|
+
window.onload = function () {
|
|
159
|
+
prettyPrint();
|
|
160
|
+
};
|
|
161
|
+
</script>
|
|
162
|
+
<script src="../sorter.js"></script>
|
|
163
|
+
<script src="../block-navigation.js"></script>
|
|
164
|
+
</body>
|
|
165
|
+
</html>
|
|
166
|
+
|
|
@@ -88,7 +88,7 @@ export default selectorSafe;
|
|
|
88
88
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
89
89
|
Code coverage generated by
|
|
90
90
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
91
|
-
at
|
|
91
|
+
at 2023-01-18T10:53:27.335Z
|
|
92
92
|
</div>
|
|
93
93
|
<script src="../prettify.js"></script>
|
|
94
94
|
<script>
|
|
@@ -115,7 +115,7 @@ export default sortByLabel;
|
|
|
115
115
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
116
116
|
Code coverage generated by
|
|
117
117
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
118
|
-
at
|
|
118
|
+
at 2023-01-18T10:53:27.335Z
|
|
119
119
|
</div>
|
|
120
120
|
<script src="../prettify.js"></script>
|
|
121
121
|
<script>
|
|
@@ -112,7 +112,7 @@ export default toCamelCase;
|
|
|
112
112
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
113
113
|
Code coverage generated by
|
|
114
114
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
115
|
-
at
|
|
115
|
+
at 2023-01-18T10:53:27.335Z
|
|
116
116
|
</div>
|
|
117
117
|
<script src="../prettify.js"></script>
|
|
118
118
|
<script>
|