@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,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">3.52% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>3/85</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/79</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/18</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">3.94% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>3/76</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -195,10 +195,116 @@
|
|
|
195
195
|
<a name='L130'></a><a href='#L130'>130</a>
|
|
196
196
|
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
197
|
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
|
-
<a name='L133'></a><a href='#L133'>133</a
|
|
198
|
+
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
+
<a name='L134'></a><a href='#L134'>134</a>
|
|
200
|
+
<a name='L135'></a><a href='#L135'>135</a>
|
|
201
|
+
<a name='L136'></a><a href='#L136'>136</a>
|
|
202
|
+
<a name='L137'></a><a href='#L137'>137</a>
|
|
203
|
+
<a name='L138'></a><a href='#L138'>138</a>
|
|
204
|
+
<a name='L139'></a><a href='#L139'>139</a>
|
|
205
|
+
<a name='L140'></a><a href='#L140'>140</a>
|
|
206
|
+
<a name='L141'></a><a href='#L141'>141</a>
|
|
207
|
+
<a name='L142'></a><a href='#L142'>142</a>
|
|
208
|
+
<a name='L143'></a><a href='#L143'>143</a>
|
|
209
|
+
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
|
+
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
|
+
<a name='L146'></a><a href='#L146'>146</a>
|
|
212
|
+
<a name='L147'></a><a href='#L147'>147</a>
|
|
213
|
+
<a name='L148'></a><a href='#L148'>148</a>
|
|
214
|
+
<a name='L149'></a><a href='#L149'>149</a>
|
|
215
|
+
<a name='L150'></a><a href='#L150'>150</a>
|
|
216
|
+
<a name='L151'></a><a href='#L151'>151</a>
|
|
217
|
+
<a name='L152'></a><a href='#L152'>152</a>
|
|
218
|
+
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
|
+
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
|
+
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
|
+
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
|
+
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
+
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
+
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
+
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
+
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
+
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
+
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
+
<a name='L164'></a><a href='#L164'>164</a>
|
|
230
|
+
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
|
+
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
|
+
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
+
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
+
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
+
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
+
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
+
<a name='L172'></a><a href='#L172'>172</a>
|
|
238
|
+
<a name='L173'></a><a href='#L173'>173</a>
|
|
239
|
+
<a name='L174'></a><a href='#L174'>174</a>
|
|
240
|
+
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
|
+
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
|
+
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
+
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
+
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
+
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
+
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
+
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
+
<a name='L183'></a><a href='#L183'>183</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
|
|
249
|
+
<span class="cline-any cline-no"> </span>
|
|
250
|
+
<span class="cline-any cline-no"> </span>
|
|
251
|
+
<span class="cline-any cline-neutral"> </span>
|
|
252
|
+
<span class="cline-any cline-neutral"> </span>
|
|
253
|
+
<span class="cline-any cline-no"> </span>
|
|
254
|
+
<span class="cline-any cline-neutral"> </span>
|
|
255
|
+
<span class="cline-any cline-neutral"> </span>
|
|
256
|
+
<span class="cline-any cline-yes">3x</span>
|
|
257
|
+
<span class="cline-any cline-no"> </span>
|
|
258
|
+
<span class="cline-any cline-no"> </span>
|
|
259
|
+
<span class="cline-any cline-neutral"> </span>
|
|
260
|
+
<span class="cline-any cline-neutral"> </span>
|
|
261
|
+
<span class="cline-any cline-no"> </span>
|
|
262
|
+
<span class="cline-any cline-neutral"> </span>
|
|
263
|
+
<span class="cline-any cline-neutral"> </span>
|
|
264
|
+
<span class="cline-any cline-no"> </span>
|
|
265
|
+
<span class="cline-any cline-neutral"> </span>
|
|
266
|
+
<span class="cline-any cline-neutral"> </span>
|
|
267
|
+
<span class="cline-any cline-neutral"> </span>
|
|
268
|
+
<span class="cline-any cline-neutral"> </span>
|
|
269
|
+
<span class="cline-any cline-no"> </span>
|
|
270
|
+
<span class="cline-any cline-no"> </span>
|
|
271
|
+
<span class="cline-any cline-neutral"> </span>
|
|
199
272
|
<span class="cline-any cline-no"> </span>
|
|
200
273
|
<span class="cline-any cline-neutral"> </span>
|
|
201
274
|
<span class="cline-any cline-neutral"> </span>
|
|
275
|
+
<span class="cline-any cline-no"> </span>
|
|
276
|
+
<span class="cline-any cline-neutral"> </span>
|
|
277
|
+
<span class="cline-any cline-no"> </span>
|
|
278
|
+
<span class="cline-any cline-no"> </span>
|
|
279
|
+
<span class="cline-any cline-no"> </span>
|
|
280
|
+
<span class="cline-any cline-no"> </span>
|
|
281
|
+
<span class="cline-any cline-neutral"> </span>
|
|
282
|
+
<span class="cline-any cline-no"> </span>
|
|
283
|
+
<span class="cline-any cline-neutral"> </span>
|
|
284
|
+
<span class="cline-any cline-neutral"> </span>
|
|
285
|
+
<span class="cline-any cline-neutral"> </span>
|
|
286
|
+
<span class="cline-any cline-no"> </span>
|
|
287
|
+
<span class="cline-any cline-no"> </span>
|
|
288
|
+
<span class="cline-any cline-no"> </span>
|
|
289
|
+
<span class="cline-any cline-no"> </span>
|
|
290
|
+
<span class="cline-any cline-no"> </span>
|
|
291
|
+
<span class="cline-any cline-neutral"> </span>
|
|
292
|
+
<span class="cline-any cline-neutral"> </span>
|
|
293
|
+
<span class="cline-any cline-no"> </span>
|
|
294
|
+
<span class="cline-any cline-neutral"> </span>
|
|
295
|
+
<span class="cline-any cline-neutral"> </span>
|
|
296
|
+
<span class="cline-any cline-no"> </span>
|
|
297
|
+
<span class="cline-any cline-neutral"> </span>
|
|
298
|
+
<span class="cline-any cline-neutral"> </span>
|
|
299
|
+
<span class="cline-any cline-yes">3x</span>
|
|
300
|
+
<span class="cline-any cline-no"> </span>
|
|
301
|
+
<span class="cline-any cline-neutral"> </span>
|
|
302
|
+
<span class="cline-any cline-neutral"> </span>
|
|
303
|
+
<span class="cline-any cline-neutral"> </span>
|
|
304
|
+
<span class="cline-any cline-neutral"> </span>
|
|
305
|
+
<span class="cline-any cline-neutral"> </span>
|
|
306
|
+
<span class="cline-any cline-neutral"> </span>
|
|
307
|
+
<span class="cline-any cline-neutral"> </span>
|
|
202
308
|
<span class="cline-any cline-neutral"> </span>
|
|
203
309
|
<span class="cline-any cline-neutral"> </span>
|
|
204
310
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -228,38 +334,29 @@
|
|
|
228
334
|
<span class="cline-any cline-neutral"> </span>
|
|
229
335
|
<span class="cline-any cline-neutral"> </span>
|
|
230
336
|
<span class="cline-any cline-neutral"> </span>
|
|
231
|
-
<span class="cline-any cline-no"> </span>
|
|
232
337
|
<span class="cline-any cline-neutral"> </span>
|
|
233
|
-
<span class="cline-any cline-no"> </span>
|
|
234
338
|
<span class="cline-any cline-neutral"> </span>
|
|
235
|
-
<span class="cline-any cline-no"> </span>
|
|
236
|
-
<span class="cline-any cline-no"> </span>
|
|
237
|
-
<span class="cline-any cline-no"> </span>
|
|
238
339
|
<span class="cline-any cline-neutral"> </span>
|
|
239
340
|
<span class="cline-any cline-neutral"> </span>
|
|
240
|
-
<span class="cline-any cline-no"> </span>
|
|
241
|
-
<span class="cline-any cline-no"> </span>
|
|
242
341
|
<span class="cline-any cline-no"> </span>
|
|
243
342
|
<span class="cline-any cline-neutral"> </span>
|
|
244
343
|
<span class="cline-any cline-no"> </span>
|
|
344
|
+
<span class="cline-any cline-neutral"> </span>
|
|
245
345
|
<span class="cline-any cline-no"> </span>
|
|
246
346
|
<span class="cline-any cline-no"> </span>
|
|
247
347
|
<span class="cline-any cline-no"> </span>
|
|
248
348
|
<span class="cline-any cline-neutral"> </span>
|
|
249
|
-
<span class="cline-any cline-no"> </span>
|
|
250
349
|
<span class="cline-any cline-neutral"> </span>
|
|
251
350
|
<span class="cline-any cline-neutral"> </span>
|
|
252
351
|
<span class="cline-any cline-no"> </span>
|
|
253
352
|
<span class="cline-any cline-no"> </span>
|
|
254
353
|
<span class="cline-any cline-no"> </span>
|
|
255
354
|
<span class="cline-any cline-no"> </span>
|
|
256
|
-
<span class="cline-any cline-neutral"> </span>
|
|
257
355
|
<span class="cline-any cline-no"> </span>
|
|
258
356
|
<span class="cline-any cline-neutral"> </span>
|
|
259
357
|
<span class="cline-any cline-neutral"> </span>
|
|
260
358
|
<span class="cline-any cline-neutral"> </span>
|
|
261
359
|
<span class="cline-any cline-neutral"> </span>
|
|
262
|
-
<span class="cline-any cline-neutral"> </span>
|
|
263
360
|
<span class="cline-any cline-no"> </span>
|
|
264
361
|
<span class="cline-any cline-no"> </span>
|
|
265
362
|
<span class="cline-any cline-no"> </span>
|
|
@@ -298,6 +395,7 @@
|
|
|
298
395
|
<span class="cline-any cline-no"> </span>
|
|
299
396
|
<span class="cline-any cline-no"> </span>
|
|
300
397
|
<span class="cline-any cline-no"> </span>
|
|
398
|
+
<span class="cline-any cline-no"> </span>
|
|
301
399
|
<span class="cline-any cline-neutral"> </span>
|
|
302
400
|
<span class="cline-any cline-neutral"> </span>
|
|
303
401
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -313,6 +411,8 @@
|
|
|
313
411
|
<span class="cline-any cline-neutral"> </span>
|
|
314
412
|
<span class="cline-any cline-no"> </span>
|
|
315
413
|
<span class="cline-any cline-neutral"> </span>
|
|
414
|
+
<span class="cline-any cline-no"> </span>
|
|
415
|
+
<span class="cline-any cline-neutral"> </span>
|
|
316
416
|
<span class="cline-any cline-neutral"> </span>
|
|
317
417
|
<span class="cline-any cline-neutral"> </span>
|
|
318
418
|
<span class="cline-any cline-no"> </span>
|
|
@@ -327,7 +427,58 @@
|
|
|
327
427
|
<span class="cline-any cline-neutral"> </span>
|
|
328
428
|
<span class="cline-any cline-neutral"> </span>
|
|
329
429
|
<span class="cline-any cline-neutral"> </span>
|
|
330
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const
|
|
430
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const conditionalEncodeURIComponent = <span class="fstat-no" title="function not covered" >(s</span>tr, encode = <span class="branch-0 cbranch-no" title="branch not covered" >true)</span> => {
|
|
431
|
+
<span class="cstat-no" title="statement not covered" > if (encode) {</span>
|
|
432
|
+
<span class="cstat-no" title="statement not covered" > return encodeURIComponent(str);</span>
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
<span class="cstat-no" title="statement not covered" > return str;</span>
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
const buildFilterOptionBlock = <span class="fstat-no" title="function not covered" >(o</span>pf, isNested = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span> encode = <span class="branch-0 cbranch-no" title="branch not covered" >true)</span> => {
|
|
439
|
+
<span class="cstat-no" title="statement not covered" > if (opf?.groupValues) {</span>
|
|
440
|
+
const groupValues = <span class="cstat-no" title="statement not covered" >opf.groupValues;</span>
|
|
441
|
+
|
|
442
|
+
// Small utility function to add negation and brackets to the options block where necessary
|
|
443
|
+
const negationAndNesting = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(s</span>tr) => <span class="cstat-no" title="statement not covered" >`${groupValues?.NOT ? '!' : ''}${(isNested || groupValues?.NOT) ? '(' : ''}${str}${(isNested || groupValues?.NOT) ? ')' : ''}`;</span></span>
|
|
444
|
+
|
|
445
|
+
// First check whether groupValues is ANDed or ORed together
|
|
446
|
+
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
447
|
+
(groupValues?.AND && Array.isArray(groupValues.AND)) ||
|
|
448
|
+
(groupValues?.OR && Array.isArray(groupValues.OR))
|
|
449
|
+
) {
|
|
450
|
+
// AND takes precedence
|
|
451
|
+
<span class="cstat-no" title="statement not covered" > if (groupValues.AND) {</span>
|
|
452
|
+
<span class="cstat-no" title="statement not covered" > return negationAndNesting(groupValues?.AND?.map(<span class="fstat-no" title="function not covered" >gv</span>o => <span class="cstat-no" title="statement not covered" >buildFilterOptionBlock(gvo, true, encode))</span>?.join('&&'));</span>
|
|
453
|
+
}
|
|
454
|
+
<span class="cstat-no" title="statement not covered" > return negationAndNesting(groupValues?.OR?.map(<span class="fstat-no" title="function not covered" >gv</span>o => <span class="cstat-no" title="statement not covered" >buildFilterOptionBlock(gvo, true, encode))</span>?.join('||'));</span>
|
|
455
|
+
}
|
|
456
|
+
// If neither valid OR nor AND exist, ignore the block
|
|
457
|
+
} else <span class="cstat-no" title="statement not covered" >if (opf?.values) {</span>
|
|
458
|
+
// Build the values filter block
|
|
459
|
+
const innerFilters = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
460
|
+
<span class="cstat-no" title="statement not covered" > opf.values.forEach(<span class="fstat-no" title="function not covered" >op</span>fv => {</span>
|
|
461
|
+
<span class="cstat-no" title="statement not covered" > if (opf.path) {</span>
|
|
462
|
+
<span class="cstat-no" title="statement not covered" > innerFilters.push(`${opf.path}${opf.comparator ?? '=='}${opfv}`);</span>
|
|
463
|
+
} else {
|
|
464
|
+
<span class="cstat-no" title="statement not covered" > innerFilters.push(opfv);</span>
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
<span class="cstat-no" title="statement not covered" > return conditionalEncodeURIComponent(innerFilters.join('||'), encode);</span>
|
|
469
|
+
} else <span class="cstat-no" title="statement not covered" >if (opf?.value) { // If no value OR values, then ignore</span>
|
|
470
|
+
<span class="cstat-no" title="statement not covered" > if (opf.path) {</span>
|
|
471
|
+
const filterString = <span class="cstat-no" title="statement not covered" >`${opf.path}${opf.comparator ?? '=='}${opf.value}`;</span>
|
|
472
|
+
<span class="cstat-no" title="statement not covered" > return conditionalEncodeURIComponent(filterString, encode);</span>
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
<span class="cstat-no" title="statement not covered" > return conditionalEncodeURIComponent(opf.value, encode);</span>
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
const generateKiwtQueryParams = <span class="fstat-no" title="function not covered" >(o</span>ptions, nsValues, encode = <span class="branch-0 cbranch-no" title="branch not covered" >true)</span> => {
|
|
331
482
|
const { qindex, query, filters, sort } = <span class="cstat-no" title="statement not covered" >nsValues;</span>
|
|
332
483
|
const {
|
|
333
484
|
searchKey = <span class="branch-0 cbranch-no" title="branch not covered" >'',</span>
|
|
@@ -347,7 +498,13 @@
|
|
|
347
498
|
path: 'this.is.some.path'
|
|
348
499
|
comparator: '=='
|
|
349
500
|
value: 'this is a value' //OR
|
|
350
|
-
values: ['value1', 'value2']
|
|
501
|
+
values: ['value1', 'value2'] //OR
|
|
502
|
+
groupValues: { // This is an object containing objects either in groups of AND or OR. AND takes precedence
|
|
503
|
+
AND: [
|
|
504
|
+
// Objects of the same shape as an individual filters object, recursively.
|
|
505
|
+
],
|
|
506
|
+
NOT: true // When this is set to true, the entire group is negated
|
|
507
|
+
}
|
|
351
508
|
},
|
|
352
509
|
...
|
|
353
510
|
]
|
|
@@ -356,6 +513,9 @@
|
|
|
356
513
|
* If no comparator is passed, it assumes '=='
|
|
357
514
|
* Values overwrites value and will construct "filters=this.is.some.path==value1||this.is.some.path==value2"
|
|
358
515
|
* Values WITHOUT path will construct "filters=value1||value2"
|
|
516
|
+
*
|
|
517
|
+
* GroupValues will override everything above, and group into brackets.
|
|
518
|
+
*
|
|
359
519
|
* If more complex query building is desired, this should be done externally and passed in as a standalone 'value'
|
|
360
520
|
*/
|
|
361
521
|
filters: optionsFilters,
|
|
@@ -365,29 +525,16 @@
|
|
|
365
525
|
const paramsArray = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
366
526
|
|
|
367
527
|
<span class="cstat-no" title="statement not covered" > if (query) {</span>
|
|
368
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(...(qindex || searchKey).split(',')?.map(<span class="fstat-no" title="function not covered" >m </span>=> <span class="cstat-no" title="statement not covered" >`match=${m}`)</span>);</span>
|
|
369
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`term=${query}`);</span>
|
|
528
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(...(qindex || searchKey).split(',')?.map(<span class="fstat-no" title="function not covered" >m </span>=> <span class="cstat-no" title="statement not covered" >`match=${conditionalEncodeURIComponent(m, encode)}`)</span>);</span>
|
|
529
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(`term=${conditionalEncodeURIComponent(query, encode)}`);</span>
|
|
370
530
|
}
|
|
371
531
|
|
|
532
|
+
// Actually build the optionsFilters block (Moved logic to its own function to allow recursion)
|
|
372
533
|
<span class="cstat-no" title="statement not covered" > if (optionsFilters) {</span>
|
|
373
534
|
<span class="cstat-no" title="statement not covered" > optionsFilters.forEach(<span class="fstat-no" title="function not covered" >op</span>f => {</span>
|
|
374
|
-
<span class="cstat-no" title="statement not covered" >
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
<span class="cstat-no" title="statement not covered" > opf.values.forEach(<span class="fstat-no" title="function not covered" >op</span>fv => {</span>
|
|
378
|
-
<span class="cstat-no" title="statement not covered" > if (opf.path) {</span>
|
|
379
|
-
<span class="cstat-no" title="statement not covered" > innerFilters.push(`${opf.path}${opf.comparator ?? '=='}${opfv}`);</span>
|
|
380
|
-
} else {
|
|
381
|
-
<span class="cstat-no" title="statement not covered" > innerFilters.push(opfv);</span>
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${innerFilters.join('||')}`);</span>
|
|
385
|
-
} else <span class="cstat-no" title="statement not covered" >if (opf?.value) { // If no value OR values, then ignore</span>
|
|
386
|
-
<span class="cstat-no" title="statement not covered" > if (opf.path) {</span>
|
|
387
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${opf.path}${opf.comparator ?? '=='}${opf.value}`);</span>
|
|
388
|
-
} else {
|
|
389
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${opf.value}`);</span>
|
|
390
|
-
}
|
|
535
|
+
const optionsBlock = <span class="cstat-no" title="statement not covered" >buildFilterOptionBlock(opf, false, encode);</span>
|
|
536
|
+
<span class="cstat-no" title="statement not covered" > if (optionsBlock) {</span>
|
|
537
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${optionsBlock}`);</span>
|
|
391
538
|
}
|
|
392
539
|
});
|
|
393
540
|
}
|
|
@@ -413,13 +560,13 @@
|
|
|
413
560
|
<span class="cstat-no" title="statement not covered" > return `${filterName}==${fceValue ?? v}`;</span>
|
|
414
561
|
}).join('||');
|
|
415
562
|
|
|
416
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${filterString}`);</span>
|
|
563
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString, encode)}`);</span>
|
|
417
564
|
} else <span class="cstat-no" title="statement not covered" >if (!filterKey) {</span>
|
|
418
565
|
// These filters have no key mapping so we just pass the values to the backend as-is.
|
|
419
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(...filterValues?.map(<span class="fstat-no" title="function not covered" >f </span>=> <span class="cstat-no" title="statement not covered" >`filters=${f}`)</span>);</span>
|
|
566
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(...filterValues?.map(<span class="fstat-no" title="function not covered" >f </span>=> <span class="cstat-no" title="statement not covered" >`filters=${conditionalEncodeURIComponent(f, encode)}`)</span>);</span>
|
|
420
567
|
} else {
|
|
421
568
|
const filterString = <span class="cstat-no" title="statement not covered" >filterValues.map(<span class="fstat-no" title="function not covered" >v </span>=> <span class="cstat-no" title="statement not covered" >`${filterKey}==${v}`)</span>.join('||');</span>
|
|
422
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${filterString}`);</span>
|
|
569
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString, encode)}`);</span>
|
|
423
570
|
}
|
|
424
571
|
});
|
|
425
572
|
}
|
|
@@ -427,9 +574,10 @@
|
|
|
427
574
|
<span class="cstat-no" title="statement not covered" > if (optionsSort && optionsSort.length > 0) {</span>
|
|
428
575
|
<span class="cstat-no" title="statement not covered" > optionsSort.forEach(<span class="fstat-no" title="function not covered" >os</span> => {</span>
|
|
429
576
|
<span class="cstat-no" title="statement not covered" > if (os.value) {</span>
|
|
430
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`sort=${os.value}`);</span>
|
|
577
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(`sort=${conditionalEncodeURIComponent(os.value, encode)}`);</span>
|
|
431
578
|
} else <span class="cstat-no" title="statement not covered" >if (os.path) { // If no path then ignore</span>
|
|
432
|
-
<span class="cstat-no" title="statement not covered"
|
|
579
|
+
const sortString = <span class="cstat-no" title="statement not covered" >`${os.path};${os.direction ?? 'asc'}`;</span>
|
|
580
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(`sort=${conditionalEncodeURIComponent(sortString, encode)}`);</span>
|
|
433
581
|
}
|
|
434
582
|
});
|
|
435
583
|
}
|
|
@@ -443,7 +591,9 @@
|
|
|
443
591
|
<span class="cstat-no" title="statement not covered" > term = term.replace(term, sortKeys[term]);</span>
|
|
444
592
|
}
|
|
445
593
|
|
|
446
|
-
<span class="cstat-no" title="statement not covered"
|
|
594
|
+
const sortString = <span class="cstat-no" title="statement not covered" >`${term};${descending ? 'desc' : 'asc'}`;</span>
|
|
595
|
+
|
|
596
|
+
<span class="cstat-no" title="statement not covered" > return `sort=${conditionalEncodeURIComponent(sortString, encode)}`;</span>
|
|
447
597
|
}));
|
|
448
598
|
}
|
|
449
599
|
|
|
@@ -452,7 +602,7 @@
|
|
|
452
602
|
}
|
|
453
603
|
|
|
454
604
|
<span class="cstat-no" title="statement not covered" > for (const [key, value] of Object.entries(rest)) {</span>
|
|
455
|
-
<span class="cstat-no" title="statement not covered" > paramsArray.push(`${key}=${value}`);</span>
|
|
605
|
+
<span class="cstat-no" title="statement not covered" > paramsArray.push(`${key}=${conditionalEncodeURIComponent(value, encode)}`);</span>
|
|
456
606
|
}
|
|
457
607
|
|
|
458
608
|
<span class="cstat-no" title="statement not covered" > return paramsArray;</span>
|
|
@@ -466,7 +616,7 @@ export default generateKiwtQueryParams;
|
|
|
466
616
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
467
617
|
Code coverage generated by
|
|
468
618
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
469
|
-
at
|
|
619
|
+
at 2023-01-18T10:53:27.335Z
|
|
470
620
|
</div>
|
|
471
621
|
<script src="../prettify.js"></script>
|
|
472
622
|
<script>
|
|
@@ -109,7 +109,7 @@ export default groupCustomPropertiesByCtx;
|
|
|
109
109
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
110
110
|
Code coverage generated by
|
|
111
111
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
112
|
-
at
|
|
112
|
+
at 2023-01-18T10:53:27.335Z
|
|
113
113
|
</div>
|
|
114
114
|
<script src="../prettify.js"></script>
|
|
115
115
|
<script>
|
|
@@ -196,7 +196,7 @@ export {
|
|
|
196
196
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
197
197
|
Code coverage generated by
|
|
198
198
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
199
|
-
at
|
|
199
|
+
at 2023-01-18T10:53:27.335Z
|
|
200
200
|
</div>
|
|
201
201
|
<script src="../prettify.js"></script>
|
|
202
202
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">16.36% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>36/220</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">8.13% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>14/
|
|
35
|
+
<span class='fraction'>14/172</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">14.03% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>8/
|
|
42
|
+
<span class='fraction'>8/57</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">17.39% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>36/207</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -95,32 +95,32 @@
|
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
97
97
|
<td class="file low" data-value="generateKiwtQuery.js"><a href="generateKiwtQuery.js.html">generateKiwtQuery.js</a></td>
|
|
98
|
-
<td data-value="
|
|
99
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
98
|
+
<td data-value="33.33" class="pic low">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 33%"></div><div class="cover-empty" style="width: 67%"></div></div>
|
|
100
100
|
</td>
|
|
101
|
-
<td data-value="
|
|
102
|
-
<td data-value="
|
|
101
|
+
<td data-value="33.33" class="pct low">33.33%</td>
|
|
102
|
+
<td data-value="3" class="abs low">1/3</td>
|
|
103
103
|
<td data-value="0" class="pct low">0%</td>
|
|
104
|
-
<td data-value="
|
|
104
|
+
<td data-value="3" class="abs low">0/3</td>
|
|
105
105
|
<td data-value="0" class="pct low">0%</td>
|
|
106
|
-
<td data-value="
|
|
106
|
+
<td data-value="1" class="abs low">0/1</td>
|
|
107
107
|
<td data-value="33.33" class="pct low">33.33%</td>
|
|
108
108
|
<td data-value="3" class="abs low">1/3</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
112
|
<td class="file low" data-value="generateKiwtQueryParams.js"><a href="generateKiwtQueryParams.js.html">generateKiwtQueryParams.js</a></td>
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
113
|
+
<td data-value="3.52" class="pic low">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 3%"></div><div class="cover-empty" style="width: 97%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="
|
|
116
|
+
<td data-value="3.52" class="pct low">3.52%</td>
|
|
117
|
+
<td data-value="85" class="abs low">3/85</td>
|
|
118
118
|
<td data-value="0" class="pct low">0%</td>
|
|
119
|
-
<td data-value="
|
|
119
|
+
<td data-value="79" class="abs low">0/79</td>
|
|
120
120
|
<td data-value="0" class="pct low">0%</td>
|
|
121
|
-
<td data-value="
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="
|
|
121
|
+
<td data-value="18" class="abs low">0/18</td>
|
|
122
|
+
<td data-value="3.94" class="pct low">3.94%</td>
|
|
123
|
+
<td data-value="76" class="abs low">3/76</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
@@ -185,17 +185,32 @@
|
|
|
185
185
|
|
|
186
186
|
<tr>
|
|
187
187
|
<td class="file low" data-value="parseErrorResponse.js"><a href="parseErrorResponse.js.html">parseErrorResponse.js</a></td>
|
|
188
|
-
<td data-value="
|
|
189
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
188
|
+
<td data-value="10" class="pic low">
|
|
189
|
+
<div class="chart"><div class="cover-fill" style="width: 10%"></div><div class="cover-empty" style="width: 90%"></div></div>
|
|
190
190
|
</td>
|
|
191
|
-
<td data-value="
|
|
192
|
-
<td data-value="
|
|
191
|
+
<td data-value="10" class="pct low">10%</td>
|
|
192
|
+
<td data-value="10" class="abs low">1/10</td>
|
|
193
193
|
<td data-value="0" class="pct low">0%</td>
|
|
194
194
|
<td data-value="2" class="abs low">0/2</td>
|
|
195
195
|
<td data-value="0" class="pct low">0%</td>
|
|
196
196
|
<td data-value="2" class="abs low">0/2</td>
|
|
197
|
-
<td data-value="
|
|
198
|
-
<td data-value="
|
|
197
|
+
<td data-value="11.11" class="pct low">11.11%</td>
|
|
198
|
+
<td data-value="9" class="abs low">1/9</td>
|
|
199
|
+
</tr>
|
|
200
|
+
|
|
201
|
+
<tr>
|
|
202
|
+
<td class="file low" data-value="parseKiwtQueryGroups.js"><a href="parseKiwtQueryGroups.js.html">parseKiwtQueryGroups.js</a></td>
|
|
203
|
+
<td data-value="3.12" class="pic low">
|
|
204
|
+
<div class="chart"><div class="cover-fill" style="width: 3%"></div><div class="cover-empty" style="width: 97%"></div></div>
|
|
205
|
+
</td>
|
|
206
|
+
<td data-value="3.12" class="pct low">3.12%</td>
|
|
207
|
+
<td data-value="32" class="abs low">1/32</td>
|
|
208
|
+
<td data-value="0" class="pct low">0%</td>
|
|
209
|
+
<td data-value="19" class="abs low">0/19</td>
|
|
210
|
+
<td data-value="0" class="pct low">0%</td>
|
|
211
|
+
<td data-value="4" class="abs low">0/4</td>
|
|
212
|
+
<td data-value="3.12" class="pct low">3.12%</td>
|
|
213
|
+
<td data-value="32" class="abs low">1/32</td>
|
|
199
214
|
</tr>
|
|
200
215
|
|
|
201
216
|
<tr>
|
|
@@ -311,7 +326,7 @@
|
|
|
311
326
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
312
327
|
Code coverage generated by
|
|
313
328
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
314
|
-
at
|
|
329
|
+
at 2023-01-18T10:53:27.335Z
|
|
315
330
|
</div>
|
|
316
331
|
<script src="../prettify.js"></script>
|
|
317
332
|
<script>
|
|
@@ -97,7 +97,11 @@
|
|
|
97
97
|
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
98
|
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
99
|
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
-
<a name='L35'></a><a href='#L35'>35</a
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
103
|
+
<span class="cline-any cline-neutral"> </span>
|
|
104
|
+
<span class="cline-any cline-neutral"> </span>
|
|
101
105
|
<span class="cline-any cline-neutral"> </span>
|
|
102
106
|
<span class="cline-any cline-neutral"> </span>
|
|
103
107
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -152,6 +156,8 @@ export { default as toCamelCase } from './toCamelCase'; // I hate that this exis
|
|
|
152
156
|
export { default as matchString } from './matchString';
|
|
153
157
|
export { boldString, highlightString } from './highlightString';
|
|
154
158
|
|
|
159
|
+
export { default as parseKiwtQueryGroups } from './parseKiwtQueryGroups';
|
|
160
|
+
|
|
155
161
|
// HTTP Utils
|
|
156
162
|
export { default as parseErrorResponse } from './parseErrorResponse';
|
|
157
163
|
|
|
@@ -172,7 +178,7 @@ export {
|
|
|
172
178
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
173
179
|
Code coverage generated by
|
|
174
180
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
175
|
-
at
|
|
181
|
+
at 2023-01-18T10:53:27.335Z
|
|
176
182
|
</div>
|
|
177
183
|
<script src="../prettify.js"></script>
|
|
178
184
|
<script>
|
|
@@ -112,7 +112,7 @@ export default matchString;
|
|
|
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>
|