@k-int/stripes-kint-components 3.2.2 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/es/lib/ActionList/ActionListFieldArray.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +22 -24
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +26 -32
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +39 -47
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +82 -100
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +2 -2
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +22 -28
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +69 -85
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +2 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +26 -32
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +2 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +15 -19
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +17 -21
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +129 -161
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -2
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +2 -2
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
- package/es/lib/CycleButton/CycleButton.js +2 -2
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +22 -24
- package/es/lib/EditableRefdataList/EditableRefdataList.js +25 -27
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +44 -50
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +1 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +139 -163
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +9 -9
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +117 -133
- package/es/lib/IconSelect/IconSelect.js +2 -2
- package/es/lib/QueryTypedown/QueryTypedown.js +2 -2
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +1 -1
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +2 -2
- package/es/lib/RichSelect/RichSelect.js +2 -2
- package/es/lib/RichSelect/useSelectedOption.js +2 -2
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +2 -2
- package/es/lib/Typedown/Typedown.js +2 -2
- package/es/lib/hooks/settingsHooks/useAppSettings.js +1 -1
- package/es/lib/hooks/settingsHooks/useSettings.js +1 -1
- package/es/lib/hooks/typedownHooks/useTypedownData.js +2 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
- package/es/lib/hooks/useActiveElement.js +2 -2
- package/es/lib/hooks/useHelperApp.js +2 -2
- package/es/lib/hooks/useKiwtFieldArray.js +2 -2
- package/es/lib/hooks/useKiwtSASQuery.js +2 -2
- package/es/lib/hooks/useLocalStorageState.js +2 -2
- package/es/lib/hooks/useMutateCustomProperties.js +23 -29
- package/es/lib/hooks/useMutateRefdataCategory.js +21 -25
- package/es/lib/hooks/useMutateRefdataValue.js +30 -34
- package/es/lib/hooks/useQIndex.js +2 -2
- package/es/lib/hooks/useSASQQueryMeta.js +1 -1
- package/es/lib/utils/generateKiwtQueryParams.js +2 -2
- package/es/lib/utils/groupCustomPropertiesByCtx.js +1 -1
- package/es/lib/utils/highlightString.js +2 -2
- package/es/lib/utils/parseErrorResponse.js +42 -44
- package/junit.xml +1492 -222
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +12 -3
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +53 -14
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +8 -8
- 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 +42 -42
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +166 -88
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +58 -58
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +27 -27
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +53 -53
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +26 -26
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +90 -90
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +116 -116
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +26 -26
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +64 -64
- 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 +31 -31
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +48 -48
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +20 -20
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +43 -43
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +96 -96
- 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 +5 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +35 -35
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +37 -37
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +35 -35
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +14 -14
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +43 -43
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +5 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +31 -31
- 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 +96 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +152 -29
- 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 +13 -4
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +29 -20
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +37 -37
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +62 -62
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +85 -70
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +43 -43
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +21 -21
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +30 -30
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +21 -21
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +23 -8
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +52 -52
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +21 -21
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +11 -2
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +58 -10
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
- 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 +1 -1
- 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 +16 -4
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +20 -8
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +12 -12
- 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 +2 -2
- 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 +34 -34
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +2 -5
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +30 -18
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +24 -24
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +38 -38
- 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 +161 -146
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +292 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +211 -0
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +466 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +4 -4
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +22 -22
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +42 -57
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +2 -35
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +161 -80
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +45 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +16 -16
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/validators/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +370 -0
- package/src/artifacts/coverage-jest/lcov.info +1843 -1735
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +3 -3
|
@@ -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">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>32/32</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">94.73% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>18/19</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>4/4</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>32/32</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -128,133 +128,214 @@
|
|
|
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
|
|
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>
|
|
158
|
+
<a name='L93'></a><a href='#L93'>93</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
132
159
|
<span class="cline-any cline-neutral"> </span>
|
|
133
|
-
<span class="cline-any cline-no"> </span>
|
|
134
160
|
<span class="cline-any cline-neutral"> </span>
|
|
135
|
-
<span class="cline-any cline-no"> </span>
|
|
136
161
|
<span class="cline-any cline-neutral"> </span>
|
|
137
162
|
<span class="cline-any cline-neutral"> </span>
|
|
138
163
|
<span class="cline-any cline-neutral"> </span>
|
|
139
|
-
<span class="cline-any cline-no"> </span>
|
|
140
|
-
<span class="cline-any cline-no"> </span>
|
|
141
|
-
<span class="cline-any cline-no"> </span>
|
|
142
164
|
<span class="cline-any cline-neutral"> </span>
|
|
143
|
-
<span class="cline-any cline-no"> </span>
|
|
144
|
-
<span class="cline-any cline-no"> </span>
|
|
145
|
-
<span class="cline-any cline-no"> </span>
|
|
146
|
-
<span class="cline-any cline-no"> </span>
|
|
147
165
|
<span class="cline-any cline-neutral"> </span>
|
|
148
166
|
<span class="cline-any cline-neutral"> </span>
|
|
149
167
|
<span class="cline-any cline-neutral"> </span>
|
|
150
|
-
<span class="cline-any cline-no"> </span>
|
|
151
|
-
<span class="cline-any cline-no"> </span>
|
|
152
168
|
<span class="cline-any cline-neutral"> </span>
|
|
153
169
|
<span class="cline-any cline-neutral"> </span>
|
|
154
170
|
<span class="cline-any cline-neutral"> </span>
|
|
155
|
-
<span class="cline-any cline-no"> </span>
|
|
156
|
-
<span class="cline-any cline-no"> </span>
|
|
157
|
-
<span class="cline-any cline-no"> </span>
|
|
158
171
|
<span class="cline-any cline-neutral"> </span>
|
|
159
|
-
<span class="cline-any cline-no"> </span>
|
|
160
172
|
<span class="cline-any cline-neutral"> </span>
|
|
161
173
|
<span class="cline-any cline-neutral"> </span>
|
|
162
|
-
<span class="cline-any cline-no"> </span>
|
|
163
|
-
<span class="cline-any cline-no"> </span>
|
|
164
|
-
<span class="cline-any cline-no"> </span>
|
|
165
174
|
<span class="cline-any cline-neutral"> </span>
|
|
166
|
-
<span class="cline-any cline-no"> </span>
|
|
167
|
-
<span class="cline-any cline-no"> </span>
|
|
168
175
|
<span class="cline-any cline-neutral"> </span>
|
|
169
|
-
<span class="cline-any cline-no"> </span>
|
|
170
|
-
<span class="cline-any cline-no"> </span>
|
|
171
176
|
<span class="cline-any cline-neutral"> </span>
|
|
172
|
-
<span class="cline-any cline-no"> </span>
|
|
173
|
-
<span class="cline-any cline-no"> </span>
|
|
174
177
|
<span class="cline-any cline-neutral"> </span>
|
|
175
|
-
<span class="cline-any cline-no"> </span>
|
|
176
178
|
<span class="cline-any cline-neutral"> </span>
|
|
179
|
+
<span class="cline-any cline-yes">3x</span>
|
|
177
180
|
<span class="cline-any cline-neutral"> </span>
|
|
178
181
|
<span class="cline-any cline-neutral"> </span>
|
|
179
|
-
<span class="cline-any cline-no"> </span>
|
|
180
182
|
<span class="cline-any cline-neutral"> </span>
|
|
181
183
|
<span class="cline-any cline-neutral"> </span>
|
|
182
|
-
<span class="cline-any cline-no"> </span>
|
|
183
184
|
<span class="cline-any cline-neutral"> </span>
|
|
184
185
|
<span class="cline-any cline-neutral"> </span>
|
|
185
|
-
<span class="cline-any cline-no"> </span>
|
|
186
186
|
<span class="cline-any cline-neutral"> </span>
|
|
187
|
+
<span class="cline-any cline-yes">9x</span>
|
|
187
188
|
<span class="cline-any cline-neutral"> </span>
|
|
188
|
-
<span class="cline-any cline-no"> </span>
|
|
189
|
-
<span class="cline-any cline-no"> </span>
|
|
190
189
|
<span class="cline-any cline-neutral"> </span>
|
|
190
|
+
<span class="cline-any cline-yes">9x</span>
|
|
191
191
|
<span class="cline-any cline-neutral"> </span>
|
|
192
|
-
<span class="cline-any cline-no"> </span>
|
|
193
192
|
<span class="cline-any cline-neutral"> </span>
|
|
193
|
+
<span class="cline-any cline-yes">9x</span>
|
|
194
|
+
<span class="cline-any cline-yes">9x</span>
|
|
195
|
+
<span class="cline-any cline-yes">18x</span>
|
|
194
196
|
<span class="cline-any cline-neutral"> </span>
|
|
197
|
+
<span class="cline-any cline-yes">18x</span>
|
|
198
|
+
<span class="cline-any cline-yes">81x</span>
|
|
199
|
+
<span class="cline-any cline-yes">38x</span>
|
|
200
|
+
<span class="cline-any cline-yes">38x</span>
|
|
195
201
|
<span class="cline-any cline-neutral"> </span>
|
|
196
|
-
<span class="cline-any cline-neutral"> </span
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
202
|
+
<span class="cline-any cline-neutral"> </span>
|
|
203
|
+
<span class="cline-any cline-neutral"> </span>
|
|
204
|
+
<span class="cline-any cline-yes">43x</span>
|
|
205
|
+
<span class="cline-any cline-yes">2x</span>
|
|
206
|
+
<span class="cline-any cline-neutral"> </span>
|
|
207
|
+
<span class="cline-any cline-neutral"> </span>
|
|
208
|
+
<span class="cline-any cline-neutral"> </span>
|
|
209
|
+
<span class="cline-any cline-yes">41x</span>
|
|
210
|
+
<span class="cline-any cline-yes">79x</span>
|
|
211
|
+
<span class="cline-any cline-yes">38x</span>
|
|
212
|
+
<span class="cline-any cline-neutral"> </span>
|
|
213
|
+
<span class="cline-any cline-yes">41x</span>
|
|
214
|
+
<span class="cline-any cline-neutral"> </span>
|
|
215
|
+
<span class="cline-any cline-neutral"> </span>
|
|
216
|
+
<span class="cline-any cline-yes">41x</span>
|
|
217
|
+
<span class="cline-any cline-yes">25x</span>
|
|
218
|
+
<span class="cline-any cline-yes">16x</span>
|
|
219
|
+
<span class="cline-any cline-neutral"> </span>
|
|
220
|
+
<span class="cline-any cline-yes">7x</span>
|
|
221
|
+
<span class="cline-any cline-yes">7x</span>
|
|
222
|
+
<span class="cline-any cline-neutral"> </span>
|
|
223
|
+
<span class="cline-any cline-yes">7x</span>
|
|
224
|
+
<span class="cline-any cline-yes">9x</span>
|
|
225
|
+
<span class="cline-any cline-neutral"> </span>
|
|
226
|
+
<span class="cline-any cline-yes">9x</span>
|
|
227
|
+
<span class="cline-any cline-yes">9x</span>
|
|
228
|
+
<span class="cline-any cline-neutral"> </span>
|
|
229
|
+
<span class="cline-any cline-yes">9x</span>
|
|
230
|
+
<span class="cline-any cline-neutral"> </span>
|
|
231
|
+
<span class="cline-any cline-neutral"> </span>
|
|
232
|
+
<span class="cline-any cline-neutral"> </span>
|
|
233
|
+
<span class="cline-any cline-yes">34x</span>
|
|
234
|
+
<span class="cline-any cline-neutral"> </span>
|
|
235
|
+
<span class="cline-any cline-neutral"> </span>
|
|
236
|
+
<span class="cline-any cline-yes">16x</span>
|
|
237
|
+
<span class="cline-any cline-neutral"> </span>
|
|
238
|
+
<span class="cline-any cline-neutral"> </span>
|
|
239
|
+
<span class="cline-any cline-yes">9x</span>
|
|
240
|
+
<span class="cline-any cline-neutral"> </span>
|
|
241
|
+
<span class="cline-any cline-neutral"> </span>
|
|
242
|
+
<span class="cline-any cline-yes">7x</span>
|
|
243
|
+
<span class="cline-any cline-yes">2x</span>
|
|
244
|
+
<span class="cline-any cline-neutral"> </span>
|
|
245
|
+
<span class="cline-any cline-neutral"> </span>
|
|
246
|
+
<span class="cline-any cline-yes">5x</span>
|
|
247
|
+
<span class="cline-any cline-neutral"> </span>
|
|
248
|
+
<span class="cline-any cline-neutral"> </span>
|
|
249
|
+
<span class="cline-any cline-neutral"> </span>
|
|
250
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/**
|
|
251
|
+
* parseKiwtQueryGroups
|
|
252
|
+
* Given a string containing query groups like
|
|
253
|
+
* (foo == bar && (bat == baz || bat == quux))
|
|
254
|
+
* parse it into a series of nested arrys like
|
|
255
|
+
* [
|
|
256
|
+
* foo == bar, &&
|
|
257
|
+
* [
|
|
258
|
+
* bat == baz, ||, bat == quux
|
|
259
|
+
* ]
|
|
260
|
+
* ]
|
|
261
|
+
* Nested groups are parsed recursively. There are four tokens:
|
|
262
|
+
* ||
|
|
263
|
+
* &&
|
|
264
|
+
* (
|
|
265
|
+
* )
|
|
266
|
+
*
|
|
267
|
+
* @param {string} query
|
|
268
|
+
* @returns [] tokenized query as a series of nested arrays
|
|
269
|
+
* @throws Error if parens are unmatched
|
|
270
|
+
*/
|
|
271
|
+
const parseKiwtQueryGroups = (query) => {
|
|
272
|
+
// Split on tokens, keeping them all in tact in the correct position.
|
|
273
|
+
// This could be handled without the filter, which omits empty-string
|
|
274
|
+
// matches, using a look-behind:
|
|
275
|
+
// query.split(/(?<=\|\||&&|\(|\))|(?=\|\||&&|\(|\))/);
|
|
276
|
+
// but Webkit hasn't implemented look-behind yet so that breaks Safari.
|
|
277
|
+
// https://bugs.webkit.org/show_bug.cgi?id=174931
|
|
278
|
+
// <sigh>
|
|
279
|
+
const splitString = query.split(/(\|\||&&|\(|\))/).filter(Boolean);
|
|
201
280
|
|
|
281
|
+
// Keep track of what to skip over when we return from each level of nesting
|
|
282
|
+
let skipCount = [0];
|
|
202
283
|
|
|
203
|
-
// Ensure
|
|
204
|
-
let
|
|
205
|
-
const groupParser =
|
|
206
|
-
const group =
|
|
207
|
-
// Iterate over each element in the array, recursively calling this when hitting
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
284
|
+
// Ensure parens are properly closed
|
|
285
|
+
let unclosedParens = 0;
|
|
286
|
+
const groupParser = (parseArray, nestLevel = 0) => {
|
|
287
|
+
const group = [];
|
|
288
|
+
// Iterate over each element in the array, recursively calling this when hitting parens
|
|
289
|
+
parseArray?.every((element, index) => {
|
|
290
|
+
if (skipCount[nestLevel] > 0) {
|
|
291
|
+
skipCount[nestLevel] -= 1;
|
|
292
|
+
return true; // Equivalent to BREAK -- move onto next element
|
|
212
293
|
}
|
|
213
294
|
|
|
214
|
-
//
|
|
215
|
-
|
|
216
|
-
|
|
295
|
+
// abort: dangling close-paren
|
|
296
|
+
if (nestLevel === 0 && element === ')') {
|
|
297
|
+
throw new Error('Unexpected character \')\' found, stopping parse.');
|
|
217
298
|
}
|
|
218
299
|
|
|
219
300
|
// At the levels below all of the following will need
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
301
|
+
skipCount = skipCount?.map((n, i) => {
|
|
302
|
+
if (i < nestLevel) {
|
|
303
|
+
return n + 1;
|
|
223
304
|
}
|
|
224
|
-
|
|
305
|
+
return n;
|
|
225
306
|
});
|
|
226
307
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
} else
|
|
308
|
+
if (element !== '(' && element !== ')') {
|
|
309
|
+
group?.push(element);
|
|
310
|
+
} else if (element === ')') {
|
|
230
311
|
// Remove the corresponding skipCount level because we're going down a nesting level
|
|
231
|
-
|
|
232
|
-
|
|
312
|
+
skipCount.pop();
|
|
313
|
+
unclosedParens -= 1;
|
|
233
314
|
|
|
234
|
-
|
|
235
|
-
} else <span class="
|
|
315
|
+
return false; // Equivalent to BREAK -- go up a nesting level
|
|
316
|
+
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (element === '(') {
|
|
236
317
|
// Add next index to skipcount for the nesting
|
|
237
|
-
|
|
238
|
-
|
|
318
|
+
skipCount.push(0);
|
|
319
|
+
unclosedParens += 1;
|
|
239
320
|
|
|
240
|
-
|
|
321
|
+
group.push(groupParser(parseArray.slice(index + 1, parseArray?.length), nestLevel + 1));
|
|
241
322
|
}
|
|
242
323
|
|
|
243
324
|
// If all is well, continue on parsing
|
|
244
|
-
|
|
325
|
+
return true;
|
|
245
326
|
});
|
|
246
327
|
|
|
247
|
-
|
|
328
|
+
return group;
|
|
248
329
|
};
|
|
249
330
|
|
|
250
|
-
const outputGroups =
|
|
331
|
+
const outputGroups = groupParser(splitString);
|
|
251
332
|
|
|
252
|
-
//
|
|
253
|
-
|
|
254
|
-
|
|
333
|
+
// abort: dangling open-paren
|
|
334
|
+
if (unclosedParens > 0) {
|
|
335
|
+
throw new Error('Found unclosed paretheses, stopping parse.');
|
|
255
336
|
}
|
|
256
337
|
|
|
257
|
-
|
|
338
|
+
return outputGroups;
|
|
258
339
|
};
|
|
259
340
|
|
|
260
341
|
export default parseKiwtQueryGroups;
|
|
@@ -265,7 +346,7 @@ export default parseKiwtQueryGroups;
|
|
|
265
346
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
266
347
|
Code coverage generated by
|
|
267
348
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
268
|
-
at 2023-
|
|
349
|
+
at 2023-03-21T17:34:57.995Z
|
|
269
350
|
</div>
|
|
270
351
|
<script src="../prettify.js"></script>
|
|
271
352
|
<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 2023-
|
|
97
|
+
at 2023-03-21T17:34:57.995Z
|
|
98
98
|
</div>
|
|
99
99
|
<script src="../prettify.js"></script>
|
|
100
100
|
<script>
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
73
|
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
74
|
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
|
|
76
76
|
<span class="cline-any cline-no"> </span>
|
|
77
77
|
<span class="cline-any cline-no"> </span>
|
|
78
78
|
<span class="cline-any cline-no"> </span>
|
|
@@ -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 2023-
|
|
100
|
+
at 2023-03-21T17:34:57.995Z
|
|
101
101
|
</div>
|
|
102
102
|
<script src="../prettify.js"></script>
|
|
103
103
|
<script>
|
|
@@ -69,18 +69,60 @@
|
|
|
69
69
|
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
70
|
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
71
|
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</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></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
|
|
87
|
+
<span class="cline-any cline-neutral"> </span>
|
|
88
|
+
<span class="cline-any cline-neutral"> </span>
|
|
73
89
|
<span class="cline-any cline-no"> </span>
|
|
74
90
|
<span class="cline-any cline-neutral"> </span>
|
|
75
91
|
<span class="cline-any cline-neutral"> </span>
|
|
76
92
|
<span class="cline-any cline-neutral"> </span>
|
|
77
93
|
<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-neutral"> </span>
|
|
98
|
+
<span class="cline-any cline-neutral"> </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-neutral"> </span>
|
|
104
|
+
<span class="cline-any cline-neutral"> </span>
|
|
105
|
+
<span class="cline-any cline-neutral"> </span>
|
|
78
106
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const selectorSafe = <span class="fstat-no" title="function not covered" >(s</span>tring) => {
|
|
79
|
-
|
|
107
|
+
// Normalise to separate diacritics from their base characters as "marks"
|
|
108
|
+
// then strip out all marks.
|
|
109
|
+
<span class="cstat-no" title="statement not covered" > return string.normalize('NFKD')?.replace(/\p{M}/gu, '')</span>
|
|
110
|
+
// Then swap out any non-letter/number characters (Also ignore - and _) for `_`
|
|
111
|
+
?.replace(/[^\p{L}\p{N}\-_]/gu, '_');
|
|
80
112
|
};
|
|
81
113
|
|
|
82
114
|
export default selectorSafe;
|
|
83
115
|
|
|
116
|
+
/*
|
|
117
|
+
* Should transform as follows:
|
|
118
|
+
* %%&&||()_-*^%$£"!:;@'~#<>/??|\ --> _________-____________________
|
|
119
|
+
* étéaoûtçapère; --> eteaoutcapere_
|
|
120
|
+
* Wörtertschüss; --> wortertschuss_
|
|
121
|
+
* mañanaángel'brødfråłzaźlepięćkuşgöz`tŷ --> mananaangel_brødfrałzazlepieckusgoz_ty
|
|
122
|
+
* æøß --> æøß
|
|
123
|
+
* How do we handle numbers 00!1 --> how_do_we_handle_numbers_00_1
|
|
124
|
+
* This is a normal case --> this_is_a_normal_case
|
|
125
|
+
*/
|
|
84
126
|
</pre></td></tr></table></pre>
|
|
85
127
|
|
|
86
128
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -88,7 +130,7 @@ export default selectorSafe;
|
|
|
88
130
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
89
131
|
Code coverage generated by
|
|
90
132
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
91
|
-
at 2023-
|
|
133
|
+
at 2023-03-21T17:34:57.995Z
|
|
92
134
|
</div>
|
|
93
135
|
<script src="../prettify.js"></script>
|
|
94
136
|
<script>
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
79
|
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
80
|
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
-
<a name='L16'></a><a href='#L16'>16</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
|
|
82
82
|
<span class="cline-any cline-no"> </span>
|
|
83
83
|
<span class="cline-any cline-no"> </span>
|
|
84
84
|
<span class="cline-any cline-no"> </span>
|
|
@@ -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 2023-
|
|
118
|
+
at 2023-03-21T17:34:57.995Z
|
|
119
119
|
</div>
|
|
120
120
|
<script src="../prettify.js"></script>
|
|
121
121
|
<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">33.33% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>1/3</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/2</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/2</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">33.33% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>1/3</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -77,28 +77,28 @@
|
|
|
77
77
|
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
78
|
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
79
|
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
-
<a name='L15'></a><a href='#L15'>15</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
|
|
81
81
|
<span class="cline-any cline-neutral"> </span>
|
|
82
|
-
<span class="cline-any cline-
|
|
82
|
+
<span class="cline-any cline-no"> </span>
|
|
83
83
|
<span class="cline-any cline-neutral"> </span>
|
|
84
84
|
<span class="cline-any cline-neutral"> </span>
|
|
85
85
|
<span class="cline-any cline-neutral"> </span>
|
|
86
86
|
<span class="cline-any cline-neutral"> </span>
|
|
87
|
-
<span class="cline-any cline-
|
|
87
|
+
<span class="cline-any cline-no"> </span>
|
|
88
88
|
<span class="cline-any cline-neutral"> </span>
|
|
89
89
|
<span class="cline-any cline-neutral"> </span>
|
|
90
90
|
<span class="cline-any cline-neutral"> </span>
|
|
91
91
|
<span class="cline-any cline-neutral"> </span>
|
|
92
92
|
<span class="cline-any cline-neutral"> </span>
|
|
93
93
|
<span class="cline-any cline-neutral"> </span>
|
|
94
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const toCamelCase = (
|
|
94
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const toCamelCase = <span class="fstat-no" title="function not covered" >(s</span>tr) => (
|
|
95
95
|
// First split string on any capital letters
|
|
96
|
-
str.split(/(?=[A-Z])/).join(' ')
|
|
96
|
+
<span class="cstat-no" title="statement not covered" > str.split(/(?=[A-Z])/).join(' ')</span>
|
|
97
97
|
// Remove all non alpha-numeric chars, and replace _ with ' '
|
|
98
98
|
.replace(/[_]/gi, ' ')
|
|
99
99
|
.replace(/[^0-9a-zA-Z\s]/gi, '')
|
|
100
100
|
// CamelCase the remains
|
|
101
|
-
.replace(/(?:^\w|[A-Z]|\b\w)/g, (
|
|
101
|
+
.replace(/(?:^\w|[A-Z]|\b\w)/g, <span class="fstat-no" title="function not covered" >(l</span>tr, idx) => (<span class="cstat-no" title="statement not covered" >idx === 0 ?</span>
|
|
102
102
|
ltr.toLowerCase() :
|
|
103
103
|
ltr.toUpperCase()))
|
|
104
104
|
.replace(/\s+/g, '')
|
|
@@ -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 2023-
|
|
115
|
+
at 2023-03-21T17:34:57.995Z
|
|
116
116
|
</div>
|
|
117
117
|
<script src="../prettify.js"></script>
|
|
118
118
|
<script>
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
73
|
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
74
|
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
|
|
76
76
|
<span class="cline-any cline-no"> </span>
|
|
77
77
|
<span class="cline-any cline-no"> </span>
|
|
78
78
|
<span class="cline-any cline-no"> </span>
|
|
@@ -97,7 +97,7 @@ export default typedownQueryKey;
|
|
|
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 2023-
|
|
100
|
+
at 2023-03-21T17:34:57.995Z
|
|
101
101
|
</div>
|
|
102
102
|
<script src="../prettify.js"></script>
|
|
103
103
|
<script>
|