@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
|
@@ -75,17 +75,17 @@
|
|
|
75
75
|
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
76
|
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
77
|
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
-
<a name='L13'></a><a href='#L13'>13</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">
|
|
79
|
-
<span class="cline-any cline-yes">
|
|
80
|
-
<span class="cline-any cline-yes">
|
|
81
|
-
<span class="cline-any cline-yes">
|
|
82
|
-
<span class="cline-any cline-yes">
|
|
83
|
-
<span class="cline-any cline-yes">
|
|
84
|
-
<span class="cline-any cline-yes">
|
|
85
|
-
<span class="cline-any cline-yes">
|
|
86
|
-
<span class="cline-any cline-yes">
|
|
87
|
-
<span class="cline-any cline-yes">
|
|
88
|
-
<span class="cline-any cline-yes">
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">6x</span>
|
|
79
|
+
<span class="cline-any cline-yes">6x</span>
|
|
80
|
+
<span class="cline-any cline-yes">6x</span>
|
|
81
|
+
<span class="cline-any cline-yes">6x</span>
|
|
82
|
+
<span class="cline-any cline-yes">6x</span>
|
|
83
|
+
<span class="cline-any cline-yes">6x</span>
|
|
84
|
+
<span class="cline-any cline-yes">6x</span>
|
|
85
|
+
<span class="cline-any cline-yes">6x</span>
|
|
86
|
+
<span class="cline-any cline-yes">6x</span>
|
|
87
|
+
<span class="cline-any cline-yes">6x</span>
|
|
88
|
+
<span class="cline-any cline-yes">6x</span>
|
|
89
89
|
<span class="cline-any cline-neutral"> </span>
|
|
90
90
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export const TYPE_CLASS_PREFIX = 'com.k_int.web.toolkit.custprops.types.CustomProperty';
|
|
91
91
|
export const BLOB_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomPropertyBlob';
|
|
@@ -106,7 +106,7 @@ export const DATE_CLASS_NAME = 'com.k_int.web.toolkit.custprops.types.CustomProp
|
|
|
106
106
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
107
107
|
Code coverage generated by
|
|
108
108
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
109
|
-
at 2023-
|
|
109
|
+
at 2023-03-21T17:34:57.995Z
|
|
110
110
|
</div>
|
|
111
111
|
<script src="../prettify.js"></script>
|
|
112
112
|
<script>
|
|
@@ -79,7 +79,7 @@ export const TAB = <span class="cstat-no" title="statement not covered" >'Tab';<
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at 2023-
|
|
82
|
+
at 2023-03-21T17:34:57.995Z
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-
|
|
119
|
+
at 2023-03-21T17:34:57.995Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
70
|
<a name='L5'></a><a href='#L5'>5</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
71
71
|
<span class="cline-any cline-neutral"> </span>
|
|
72
|
-
<span class="cline-any cline-yes">
|
|
72
|
+
<span class="cline-any cline-yes">19x</span>
|
|
73
73
|
<span class="cline-any cline-neutral"> </span>
|
|
74
74
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { createContext } from 'react';
|
|
75
75
|
|
|
@@ -82,7 +82,7 @@ export default SettingsContext;
|
|
|
82
82
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
83
83
|
Code coverage generated by
|
|
84
84
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
85
|
-
at 2023-
|
|
85
|
+
at 2023-03-21T17:34:57.995Z
|
|
86
86
|
</div>
|
|
87
87
|
<script src="../prettify.js"></script>
|
|
88
88
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-
|
|
119
|
+
at 2023-03-21T17:34:57.995Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -76,7 +76,7 @@ export { default as SettingsContext } from './SettingsContext';
|
|
|
76
76
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
77
77
|
Code coverage generated by
|
|
78
78
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
79
|
-
at 2023-
|
|
79
|
+
at 2023-03-21T17:34:57.995Z
|
|
80
80
|
</div>
|
|
81
81
|
<script src="../prettify.js"></script>
|
|
82
82
|
<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">0.72% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>2/276</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/112</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/70</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">0.75% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>2/265</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -129,28 +129,28 @@
|
|
|
129
129
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
130
130
|
</td>
|
|
131
131
|
<td data-value="0" class="pct low">0%</td>
|
|
132
|
-
<td data-value="
|
|
132
|
+
<td data-value="31" class="abs low">0/31</td>
|
|
133
133
|
<td data-value="0" class="pct low">0%</td>
|
|
134
|
-
<td data-value="
|
|
134
|
+
<td data-value="10" class="abs low">0/10</td>
|
|
135
135
|
<td data-value="0" class="pct low">0%</td>
|
|
136
136
|
<td data-value="9" class="abs low">0/9</td>
|
|
137
137
|
<td data-value="0" class="pct low">0%</td>
|
|
138
|
-
<td data-value="
|
|
138
|
+
<td data-value="27" class="abs low">0/27</td>
|
|
139
139
|
</tr>
|
|
140
140
|
|
|
141
141
|
<tr>
|
|
142
|
-
<td class="file
|
|
143
|
-
<td data-value="
|
|
144
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
142
|
+
<td class="file low" data-value="useIntlKey.js"><a href="useIntlKey.js.html">useIntlKey.js</a></td>
|
|
143
|
+
<td data-value="9.09" class="pic low">
|
|
144
|
+
<div class="chart"><div class="cover-fill" style="width: 9%"></div><div class="cover-empty" style="width: 91%"></div></div>
|
|
145
145
|
</td>
|
|
146
|
-
<td data-value="
|
|
147
|
-
<td data-value="11" class="abs
|
|
148
|
-
<td data-value="
|
|
149
|
-
<td data-value="6" class="abs
|
|
150
|
-
<td data-value="
|
|
151
|
-
<td data-value="2" class="abs
|
|
152
|
-
<td data-value="
|
|
153
|
-
<td data-value="10" class="abs
|
|
146
|
+
<td data-value="9.09" class="pct low">9.09%</td>
|
|
147
|
+
<td data-value="11" class="abs low">1/11</td>
|
|
148
|
+
<td data-value="0" class="pct low">0%</td>
|
|
149
|
+
<td data-value="6" class="abs low">0/6</td>
|
|
150
|
+
<td data-value="0" class="pct low">0%</td>
|
|
151
|
+
<td data-value="2" class="abs low">0/2</td>
|
|
152
|
+
<td data-value="10" class="pct low">10%</td>
|
|
153
|
+
<td data-value="10" class="abs low">1/10</td>
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
156
|
<tr>
|
|
@@ -184,18 +184,18 @@
|
|
|
184
184
|
</tr>
|
|
185
185
|
|
|
186
186
|
<tr>
|
|
187
|
-
<td class="file
|
|
188
|
-
<td data-value="
|
|
189
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
187
|
+
<td class="file low" data-value="useKintIntl.js"><a href="useKintIntl.js.html">useKintIntl.js</a></td>
|
|
188
|
+
<td data-value="5.55" class="pic low">
|
|
189
|
+
<div class="chart"><div class="cover-fill" style="width: 5%"></div><div class="cover-empty" style="width: 95%"></div></div>
|
|
190
190
|
</td>
|
|
191
|
-
<td data-value="
|
|
192
|
-
<td data-value="18" class="abs
|
|
193
|
-
<td data-value="
|
|
194
|
-
<td data-value="12" class="abs
|
|
195
|
-
<td data-value="
|
|
196
|
-
<td data-value="3" class="abs
|
|
197
|
-
<td data-value="
|
|
198
|
-
<td data-value="17" class="abs
|
|
191
|
+
<td data-value="5.55" class="pct low">5.55%</td>
|
|
192
|
+
<td data-value="18" class="abs low">1/18</td>
|
|
193
|
+
<td data-value="0" class="pct low">0%</td>
|
|
194
|
+
<td data-value="12" class="abs low">0/12</td>
|
|
195
|
+
<td data-value="0" class="pct low">0%</td>
|
|
196
|
+
<td data-value="3" class="abs low">0/3</td>
|
|
197
|
+
<td data-value="5.88" class="pct low">5.88%</td>
|
|
198
|
+
<td data-value="17" class="abs low">1/17</td>
|
|
199
199
|
</tr>
|
|
200
200
|
|
|
201
201
|
<tr>
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
357
357
|
Code coverage generated by
|
|
358
358
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
359
|
-
at 2023-
|
|
359
|
+
at 2023-03-21T17:34:57.995Z
|
|
360
360
|
</div>
|
|
361
361
|
<script src="../prettify.js"></script>
|
|
362
362
|
<script>
|
|
@@ -80,9 +80,7 @@
|
|
|
80
80
|
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
81
|
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
85
|
-
<span class="cline-any cline-neutral"> </span>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
86
84
|
<span class="cline-any cline-neutral"> </span>
|
|
87
85
|
<span class="cline-any cline-neutral"> </span>
|
|
88
86
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -107,7 +105,6 @@ export { default as useKiwtSASQuery } from './useKiwtSASQuery';
|
|
|
107
105
|
export { default as useHelperApp } from './useHelperApp';
|
|
108
106
|
export { default as useLocalStorageState } from './useLocalStorageState';
|
|
109
107
|
export { default as useQIndex } from './useQIndex';
|
|
110
|
-
export { useSettings, useSettingSection, useAppSettings } from './settingsHooks';
|
|
111
108
|
export { default as useKiwtFieldArray } from './useKiwtFieldArray';
|
|
112
109
|
export { default as useCustomProperties } from './useCustomProperties';
|
|
113
110
|
export { default as useMutateCustomProperties } from './useMutateCustomProperties';
|
|
@@ -124,7 +121,7 @@ export { default as useSASQQueryMeta } from './useSASQQueryMeta';
|
|
|
124
121
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
122
|
Code coverage generated by
|
|
126
123
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at 2023-
|
|
124
|
+
at 2023-03-21T17:34:57.995Z
|
|
128
125
|
</div>
|
|
129
126
|
<script src="../prettify.js"></script>
|
|
130
127
|
<script>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at 2023-
|
|
149
|
+
at 2023-03-21T17:34:57.995Z
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -79,7 +79,7 @@ export { default as useTypedownData } from './useTypedownData';
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at 2023-
|
|
82
|
+
at 2023-03-21T17:34:57.995Z
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -505,7 +505,7 @@ export default useTypedown;
|
|
|
505
505
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
506
506
|
Code coverage generated by
|
|
507
507
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
508
|
-
at 2023-
|
|
508
|
+
at 2023-03-21T17:34:57.995Z
|
|
509
509
|
</div>
|
|
510
510
|
<script src="../../prettify.js"></script>
|
|
511
511
|
<script>
|
|
@@ -166,7 +166,7 @@ export default useTypedownData;
|
|
|
166
166
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
167
167
|
Code coverage generated by
|
|
168
168
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
169
|
-
at 2023-
|
|
169
|
+
at 2023-03-21T17:34:57.995Z
|
|
170
170
|
</div>
|
|
171
171
|
<script src="../../prettify.js"></script>
|
|
172
172
|
<script>
|
package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html
CHANGED
|
@@ -148,7 +148,7 @@ export default useTypedownToggle;
|
|
|
148
148
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
149
149
|
Code coverage generated by
|
|
150
150
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
151
|
-
at 2023-
|
|
151
|
+
at 2023-03-21T17:34:57.995Z
|
|
152
152
|
</div>
|
|
153
153
|
<script src="../../prettify.js"></script>
|
|
154
154
|
<script>
|
|
@@ -142,7 +142,7 @@ export default useActiveElement;
|
|
|
142
142
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
143
143
|
Code coverage generated by
|
|
144
144
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
145
|
-
at 2023-
|
|
145
|
+
at 2023-03-21T17:34:57.995Z
|
|
146
146
|
</div>
|
|
147
147
|
<script src="../prettify.js"></script>
|
|
148
148
|
<script>
|
|
@@ -310,7 +310,7 @@ export default useCustomProperties;
|
|
|
310
310
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
311
311
|
Code coverage generated by
|
|
312
312
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
313
|
-
at 2023-
|
|
313
|
+
at 2023-03-21T17:34:57.995Z
|
|
314
314
|
</div>
|
|
315
315
|
<script src="../prettify.js"></script>
|
|
316
316
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/31</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/10</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/27</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -129,10 +129,18 @@
|
|
|
129
129
|
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
130
|
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
131
|
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
-
<a name='L67'></a><a href='#L67'>67</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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
133
137
|
<span class="cline-any cline-neutral"> </span>
|
|
134
138
|
<span class="cline-any cline-neutral"> </span>
|
|
135
139
|
<span class="cline-any cline-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-no"> </span>
|
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
144
|
<span class="cline-any cline-no"> </span>
|
|
137
145
|
<span class="cline-any cline-no"> </span>
|
|
138
146
|
<span class="cline-any cline-no"> </span>
|
|
@@ -149,18 +157,18 @@
|
|
|
149
157
|
<span class="cline-any cline-neutral"> </span>
|
|
150
158
|
<span class="cline-any cline-neutral"> </span>
|
|
151
159
|
<span class="cline-any cline-no"> </span>
|
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
161
|
<span class="cline-any cline-no"> </span>
|
|
153
162
|
<span class="cline-any cline-no"> </span>
|
|
154
163
|
<span class="cline-any cline-neutral"> </span>
|
|
155
164
|
<span class="cline-any cline-neutral"> </span>
|
|
156
|
-
<span class="cline-any cline-
|
|
157
|
-
<span class="cline-any cline-neutral"> </span>
|
|
165
|
+
<span class="cline-any cline-no"> </span>
|
|
158
166
|
<span class="cline-any cline-no"> </span>
|
|
159
167
|
<span class="cline-any cline-neutral"> </span>
|
|
160
168
|
<span class="cline-any cline-neutral"> </span>
|
|
161
169
|
<span class="cline-any cline-neutral"> </span>
|
|
162
170
|
<span class="cline-any cline-neutral"> </span>
|
|
163
|
-
<span class="cline-any cline-
|
|
171
|
+
<span class="cline-any cline-no"> </span>
|
|
164
172
|
<span class="cline-any cline-neutral"> </span>
|
|
165
173
|
<span class="cline-any cline-neutral"> </span>
|
|
166
174
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -197,7 +205,11 @@
|
|
|
197
205
|
<span class="cline-any cline-neutral"> </span>
|
|
198
206
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
199
207
|
import { useHistory, useLocation } from 'react-router-dom';
|
|
208
|
+
|
|
200
209
|
import queryString from 'query-string';
|
|
210
|
+
import isEqual from 'lodash/isEqual';
|
|
211
|
+
|
|
212
|
+
let helperObject = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
201
213
|
|
|
202
214
|
const useHelperApp = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(h</span>elpers) => {</span>
|
|
203
215
|
const history = <span class="cstat-no" title="statement not covered" >useHistory();</span>
|
|
@@ -215,6 +227,11 @@ const useHelperApp = <span class="cstat-no" title="statement not covered" ><span
|
|
|
215
227
|
};
|
|
216
228
|
|
|
217
229
|
<span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
230
|
+
// Keep object outside of hook to avoid redraw, oncly change when keys change
|
|
231
|
+
<span class="cstat-no" title="statement not covered" > if (!isEqual(Object.keys(helperObject), Object.keys(helpers))) {</span>
|
|
232
|
+
<span class="cstat-no" title="statement not covered" > helperObject = helpers;</span>
|
|
233
|
+
}
|
|
234
|
+
|
|
218
235
|
<span class="cstat-no" title="statement not covered" > if (currentHelper !== query?.helper) {</span>
|
|
219
236
|
const newQuery = <span class="cstat-no" title="statement not covered" >{</span>
|
|
220
237
|
...query,
|
|
@@ -226,12 +243,7 @@ const useHelperApp = <span class="cstat-no" title="statement not covered" ><span
|
|
|
226
243
|
search: `?${queryString.stringify(newQuery)}`
|
|
227
244
|
});
|
|
228
245
|
}
|
|
229
|
-
}, [
|
|
230
|
-
currentHelper,
|
|
231
|
-
history,
|
|
232
|
-
location,
|
|
233
|
-
query
|
|
234
|
-
]);
|
|
246
|
+
}, [currentHelper, helpers, history, location, query]);
|
|
235
247
|
|
|
236
248
|
// Set the HelperComponent
|
|
237
249
|
const HelperComponent = <span class="cstat-no" title="statement not covered" >useMemo(<span class="fstat-no" title="function not covered" >()</span> => (<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(p</span>rops) => {</span></span>
|
|
@@ -239,7 +251,7 @@ const useHelperApp = <span class="cstat-no" title="statement not covered" ><span
|
|
|
239
251
|
|
|
240
252
|
let Component = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
241
253
|
|
|
242
|
-
<span class="cstat-no" title="statement not covered" > Component =
|
|
254
|
+
<span class="cstat-no" title="statement not covered" > Component = helperObject[query?.helper];</span>
|
|
243
255
|
|
|
244
256
|
<span class="cstat-no" title="statement not covered" > if (!Component) <span class="cstat-no" title="statement not covered" >return null;</span></span>
|
|
245
257
|
|
|
@@ -249,15 +261,15 @@ const useHelperApp = <span class="cstat-no" title="statement not covered" ><span
|
|
|
249
261
|
{...props}
|
|
250
262
|
/>
|
|
251
263
|
);
|
|
252
|
-
}), [handleToggleHelper, query.helper
|
|
264
|
+
}), [handleToggleHelper, query.helper]);
|
|
253
265
|
|
|
254
266
|
// Set up the helperToggleFunctions
|
|
255
267
|
const helperToggleFunctions = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
256
|
-
<span class="cstat-no" title="statement not covered" > Object.keys(
|
|
268
|
+
<span class="cstat-no" title="statement not covered" > Object.keys(helperObject).forEach(<span class="fstat-no" title="function not covered" >h </span>=> {</span>
|
|
257
269
|
<span class="cstat-no" title="statement not covered" > helperToggleFunctions[h] = <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >handleToggleHelper(h);</span></span>
|
|
258
270
|
});
|
|
259
271
|
|
|
260
|
-
<span class="cstat-no" title="statement not covered" > return { HelperComponent, helperToggleFunctions, isOpen };</span>
|
|
272
|
+
<span class="cstat-no" title="statement not covered" > return { currentHelper, HelperComponent, helperToggleFunctions, isOpen };</span>
|
|
261
273
|
};
|
|
262
274
|
|
|
263
275
|
export default useHelperApp;
|
|
@@ -268,7 +280,7 @@ export default useHelperApp;
|
|
|
268
280
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
269
281
|
Code coverage generated by
|
|
270
282
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
271
|
-
at 2023-
|
|
283
|
+
at 2023-03-21T17:34:57.995Z
|
|
272
284
|
</div>
|
|
273
285
|
<script src="../prettify.js"></script>
|
|
274
286
|
<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">9.09% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>1/11</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/6</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">10% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>1/10</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>
|
|
@@ -87,45 +87,45 @@
|
|
|
87
87
|
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
88
|
<a name='L23'></a><a href='#L23'>23</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
89
89
|
<span class="cline-any cline-neutral"> </span>
|
|
90
|
-
<span class="cline-any cline-yes">
|
|
91
|
-
<span class="cline-any cline-
|
|
90
|
+
<span class="cline-any cline-yes">16x</span>
|
|
91
|
+
<span class="cline-any cline-no"> </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-yes">172x</span>
|
|
95
94
|
<span class="cline-any cline-no"> </span>
|
|
96
|
-
<span class="cline-any cline-
|
|
95
|
+
<span class="cline-any cline-no"> </span>
|
|
96
|
+
<span class="cline-any cline-no"> </span>
|
|
97
97
|
<span class="cline-any cline-no"> </span>
|
|
98
98
|
<span class="cline-any cline-neutral"> </span>
|
|
99
|
-
<span class="cline-any cline-
|
|
99
|
+
<span class="cline-any cline-no"> </span>
|
|
100
100
|
<span class="cline-any cline-neutral"> </span>
|
|
101
101
|
<span class="cline-any cline-neutral"> </span>
|
|
102
|
-
<span class="cline-any cline-
|
|
102
|
+
<span class="cline-any cline-no"> </span>
|
|
103
103
|
<span class="cline-any cline-no"> </span>
|
|
104
104
|
<span class="cline-any cline-neutral"> </span>
|
|
105
105
|
<span class="cline-any cline-neutral"> </span>
|
|
106
|
-
<span class="cline-any cline-
|
|
106
|
+
<span class="cline-any cline-no"> </span>
|
|
107
107
|
<span class="cline-any cline-neutral"> </span>
|
|
108
108
|
<span class="cline-any cline-neutral"> </span>
|
|
109
109
|
<span class="cline-any cline-neutral"> </span>
|
|
110
110
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import useIntlKeyStore from './useIntlKeyStore';
|
|
111
111
|
|
|
112
|
-
const useIntlKey = (
|
|
113
|
-
const getKey = useIntlKeyStore(<span class="fstat-no" title="function not covered" >st</span>ate => <span class="cstat-no" title="statement not covered" >state.getKey)</span
|
|
112
|
+
const useIntlKey = <span class="fstat-no" title="function not covered" >(p</span>assedIntlKey, passedIntlNS) => {
|
|
113
|
+
const getKey = <span class="cstat-no" title="statement not covered" >useIntlKeyStore(<span class="fstat-no" title="function not covered" >st</span>ate => <span class="cstat-no" title="statement not covered" >state.getKey)</span>;</span>
|
|
114
114
|
let intlKey;
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
<span class="cstat-no" title="statement not covered" > if (passedIntlKey) {</span>
|
|
117
117
|
<span class="cstat-no" title="statement not covered" > intlKey = passedIntlKey;</span>
|
|
118
|
-
} else <span class="
|
|
118
|
+
} else <span class="cstat-no" title="statement not covered" >if (passedIntlNS) {</span>
|
|
119
119
|
<span class="cstat-no" title="statement not covered" > intlKey = getKey(passedIntlNS);</span>
|
|
120
120
|
} else {
|
|
121
|
-
intlKey = getKey()
|
|
121
|
+
<span class="cstat-no" title="statement not covered" > intlKey = getKey();</span>
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
<span class="cstat-no" title="statement not covered" > if (!intlKey) {</span>
|
|
125
125
|
<span class="cstat-no" title="statement not covered" > throw new Error('Stripes kint components requires an intl key to be either configured via `addKey` from `useIntlKeyStore` or passed directly into components');</span>
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
return intlKey
|
|
128
|
+
<span class="cstat-no" title="statement not covered" > return intlKey;</span>
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
export default useIntlKey;
|
|
@@ -136,7 +136,7 @@ export default useIntlKey;
|
|
|
136
136
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
137
137
|
Code coverage generated by
|
|
138
138
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
139
|
-
at 2023-
|
|
139
|
+
at 2023-03-21T17:34:57.995Z
|
|
140
140
|
</div>
|
|
141
141
|
<script src="../prettify.js"></script>
|
|
142
142
|
<script>
|
|
@@ -184,7 +184,7 @@ export default useIntlKeyStore;
|
|
|
184
184
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
185
185
|
Code coverage generated by
|
|
186
186
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
187
|
-
at 2023-
|
|
187
|
+
at 2023-03-21T17:34:57.995Z
|
|
188
188
|
</div>
|
|
189
189
|
<script src="../prettify.js"></script>
|
|
190
190
|
<script>
|
|
@@ -103,7 +103,7 @@ export default useInvalidateRefdata;
|
|
|
103
103
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
104
104
|
Code coverage generated by
|
|
105
105
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
106
|
-
at 2023-
|
|
106
|
+
at 2023-03-21T17:34:57.995Z
|
|
107
107
|
</div>
|
|
108
108
|
<script src="../prettify.js"></script>
|
|
109
109
|
<script>
|