@k-int/stripes-kint-components 5.31.0 → 5.31.1
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 +8 -0
- package/es/lib/ButtonTypedown/ButtonTypedown.js +4 -3
- package/es/lib/Typedown/Typedown.js +4 -2
- package/es/lib/hooks/typedownHooks/useTypedown.js +130 -90
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/ActionList/ActionListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/ActionList/index.html +1 -1
- package/src/artifacts/coverage-jest/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/ButtonTypedown/ButtonTypedown.js.html +8 -5
- package/src/artifacts/coverage-jest/ButtonTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/ButtonTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/ComboButton/ComboButton.js.html +1 -1
- package/src/artifacts/coverage-jest/ComboButton/index.html +1 -1
- package/src/artifacts/coverage-jest/ComboButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyView.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Edit/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/useOperators.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/Filter/useValueProps.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesView.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertyCard.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/CycleButton/CycleButton.js.html +1 -1
- package/src/artifacts/coverage-jest/CycleButton/index.html +1 -1
- package/src/artifacts/coverage-jest/CycleButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/FieldLabel/FieldLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/FieldLabel/index.html +1 -1
- package/src/artifacts/coverage-jest/FieldLabel/index.js.html +1 -1
- package/src/artifacts/coverage-jest/FormModal/FormModal.js.html +1 -1
- package/src/artifacts/coverage-jest/FormModal/index.html +1 -1
- package/src/artifacts/coverage-jest/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/IconSelect/IconSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/NoResultsMessage/NoResultsMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/NumberField/NumberField.js.html +1 -1
- package/src/artifacts/coverage-jest/NumberField/index.html +1 -1
- package/src/artifacts/coverage-jest/NumberField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/RefdataButtons/RefdataButtons.js.html +1 -1
- package/src/artifacts/coverage-jest/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/RichSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQRoute/SASQRoute.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchKeyControl/SearchKeyControl.js.html +1 -1
- package/src/artifacts/coverage-jest/SearchKeyControl/index.html +1 -1
- package/src/artifacts/coverage-jest/SearchKeyControl/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataList/EditableRefdataList.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsList.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/SettingField.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/RefdataCategoriesSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPage.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/SettingsFormContainer.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsField.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/StaticSettingsFieldComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/constants/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/constants/queryKeys.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/contexts/SettingsContext.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/useSettingCallout.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/useSettingsSectionInitalValues.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useStaticSettingsSection.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/hooks/useSettings/useSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/Tags.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/index.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/useTags.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/useTagsEnabled.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/index.html +1 -1
- package/src/artifacts/coverage-jest/Tags/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/tagsConfig.js.html +1 -1
- package/src/artifacts/coverage-jest/Typedown/Typedown.js.html +17 -8
- package/src/artifacts/coverage-jest/Typedown/index.html +10 -10
- package/src/artifacts/coverage-jest/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/cobertura-coverage.xml +150 -98
- package/src/artifacts/coverage-jest/constants/comparators.js.html +1 -1
- package/src/artifacts/coverage-jest/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/constants/endpoints.js.html +1 -1
- package/src/artifacts/coverage-jest/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/constants/pagination.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/useKintIntl.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/index.html +14 -14
- package/src/artifacts/coverage-jest/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedown.js.html +266 -107
- package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useActionListRef.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useLocalPageStore.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useModConfigEntries.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/useMutateCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateGeneric/useMutateGeneric.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateModConfigEntry.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/usePrevNextPagination.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useSASQQueryMeta.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/useStandaloneSASQQueryParameter.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/index.html +22 -22
- package/src/artifacts/coverage-jest/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/deparseKiwtQueryFilters.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryFilters.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryGroups.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/generateKiwtQueryParams.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/groupCustomPropertiesByCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/highlightString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/matchString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/modConfigEntriesQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/parseErrorResponse.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/parseModConfigEntry.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/refdataQueryKey/refdataQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/selectorSafe.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/sortByLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/toCamelCase.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/typedownQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/validators/index.html +1 -1
- package/src/artifacts/coverage-jest/validators/index.js.html +1 -1
- package/src/artifacts/coverage-jest/validators/validators.js.html +1 -1
- package/src/lib/ButtonTypedown/ButtonTypedown.js +4 -3
- package/src/lib/Typedown/Typedown.js +5 -2
- package/src/lib/hooks/typedownHooks/useTypedown.js +145 -92
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">1.
|
|
26
|
+
<span class="strong">1.17% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>1/
|
|
28
|
+
<span class='fraction'>1/85</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/61</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/22</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">1.
|
|
47
|
+
<span class="strong">1.29% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>1/
|
|
49
|
+
<span class='fraction'>1/77</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -240,7 +240,60 @@
|
|
|
240
240
|
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
241
|
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
242
|
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
-
<a name='L178'></a><a href='#L178'>178</a
|
|
243
|
+
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
+
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
+
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
+
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
+
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
+
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
+
<a name='L184'></a><a href='#L184'>184</a>
|
|
250
|
+
<a name='L185'></a><a href='#L185'>185</a>
|
|
251
|
+
<a name='L186'></a><a href='#L186'>186</a>
|
|
252
|
+
<a name='L187'></a><a href='#L187'>187</a>
|
|
253
|
+
<a name='L188'></a><a href='#L188'>188</a>
|
|
254
|
+
<a name='L189'></a><a href='#L189'>189</a>
|
|
255
|
+
<a name='L190'></a><a href='#L190'>190</a>
|
|
256
|
+
<a name='L191'></a><a href='#L191'>191</a>
|
|
257
|
+
<a name='L192'></a><a href='#L192'>192</a>
|
|
258
|
+
<a name='L193'></a><a href='#L193'>193</a>
|
|
259
|
+
<a name='L194'></a><a href='#L194'>194</a>
|
|
260
|
+
<a name='L195'></a><a href='#L195'>195</a>
|
|
261
|
+
<a name='L196'></a><a href='#L196'>196</a>
|
|
262
|
+
<a name='L197'></a><a href='#L197'>197</a>
|
|
263
|
+
<a name='L198'></a><a href='#L198'>198</a>
|
|
264
|
+
<a name='L199'></a><a href='#L199'>199</a>
|
|
265
|
+
<a name='L200'></a><a href='#L200'>200</a>
|
|
266
|
+
<a name='L201'></a><a href='#L201'>201</a>
|
|
267
|
+
<a name='L202'></a><a href='#L202'>202</a>
|
|
268
|
+
<a name='L203'></a><a href='#L203'>203</a>
|
|
269
|
+
<a name='L204'></a><a href='#L204'>204</a>
|
|
270
|
+
<a name='L205'></a><a href='#L205'>205</a>
|
|
271
|
+
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
|
+
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
|
+
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
+
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
+
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
|
+
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
+
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
+
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
|
+
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
|
+
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
+
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
+
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
+
<a name='L218'></a><a href='#L218'>218</a>
|
|
284
|
+
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
|
+
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
|
+
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
+
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
|
+
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
|
+
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
+
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
+
<a name='L226'></a><a href='#L226'>226</a>
|
|
292
|
+
<a name='L227'></a><a href='#L227'>227</a>
|
|
293
|
+
<a name='L228'></a><a href='#L228'>228</a>
|
|
294
|
+
<a name='L229'></a><a href='#L229'>229</a>
|
|
295
|
+
<a name='L230'></a><a href='#L230'>230</a>
|
|
296
|
+
<a name='L231'></a><a href='#L231'>231</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
244
297
|
<span class="cline-any cline-neutral"> </span>
|
|
245
298
|
<span class="cline-any cline-neutral"> </span>
|
|
246
299
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -263,6 +316,9 @@
|
|
|
263
316
|
<span class="cline-any cline-neutral"> </span>
|
|
264
317
|
<span class="cline-any cline-neutral"> </span>
|
|
265
318
|
<span class="cline-any cline-neutral"> </span>
|
|
319
|
+
<span class="cline-any cline-neutral"> </span>
|
|
320
|
+
<span class="cline-any cline-neutral"> </span>
|
|
321
|
+
<span class="cline-any cline-neutral"> </span>
|
|
266
322
|
<span class="cline-any cline-no"> </span>
|
|
267
323
|
<span class="cline-any cline-no"> </span>
|
|
268
324
|
<span class="cline-any cline-no"> </span>
|
|
@@ -276,9 +332,36 @@
|
|
|
276
332
|
<span class="cline-any cline-no"> </span>
|
|
277
333
|
<span class="cline-any cline-no"> </span>
|
|
278
334
|
<span class="cline-any cline-neutral"> </span>
|
|
335
|
+
<span class="cline-any cline-neutral"> </span>
|
|
336
|
+
<span class="cline-any cline-no"> </span>
|
|
337
|
+
<span class="cline-any cline-neutral"> </span>
|
|
338
|
+
<span class="cline-any cline-no"> </span>
|
|
339
|
+
<span class="cline-any cline-no"> </span>
|
|
340
|
+
<span class="cline-any cline-no"> </span>
|
|
341
|
+
<span class="cline-any cline-neutral"> </span>
|
|
342
|
+
<span class="cline-any cline-neutral"> </span>
|
|
343
|
+
<span class="cline-any cline-neutral"> </span>
|
|
344
|
+
<span class="cline-any cline-no"> </span>
|
|
345
|
+
<span class="cline-any cline-neutral"> </span>
|
|
346
|
+
<span class="cline-any cline-no"> </span>
|
|
347
|
+
<span class="cline-any cline-neutral"> </span>
|
|
348
|
+
<span class="cline-any cline-neutral"> </span>
|
|
349
|
+
<span class="cline-any cline-no"> </span>
|
|
350
|
+
<span class="cline-any cline-no"> </span>
|
|
351
|
+
<span class="cline-any cline-neutral"> </span>
|
|
352
|
+
<span class="cline-any cline-neutral"> </span>
|
|
353
|
+
<span class="cline-any cline-neutral"> </span>
|
|
354
|
+
<span class="cline-any cline-no"> </span>
|
|
355
|
+
<span class="cline-any cline-neutral"> </span>
|
|
356
|
+
<span class="cline-any cline-no"> </span>
|
|
357
|
+
<span class="cline-any cline-no"> </span>
|
|
358
|
+
<span class="cline-any cline-neutral"> </span>
|
|
359
|
+
<span class="cline-any cline-neutral"> </span>
|
|
279
360
|
<span class="cline-any cline-no"> </span>
|
|
280
361
|
<span class="cline-any cline-no"> </span>
|
|
281
362
|
<span class="cline-any cline-neutral"> </span>
|
|
363
|
+
<span class="cline-any cline-no"> </span>
|
|
364
|
+
<span class="cline-any cline-neutral"> </span>
|
|
282
365
|
<span class="cline-any cline-neutral"> </span>
|
|
283
366
|
<span class="cline-any cline-neutral"> </span>
|
|
284
367
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -314,46 +397,73 @@
|
|
|
314
397
|
<span class="cline-any cline-no"> </span>
|
|
315
398
|
<span class="cline-any cline-neutral"> </span>
|
|
316
399
|
<span class="cline-any cline-no"> </span>
|
|
400
|
+
<span class="cline-any cline-neutral"> </span>
|
|
401
|
+
<span class="cline-any cline-neutral"> </span>
|
|
402
|
+
<span class="cline-any cline-neutral"> </span>
|
|
403
|
+
<span class="cline-any cline-neutral"> </span>
|
|
404
|
+
<span class="cline-any cline-neutral"> </span>
|
|
405
|
+
<span class="cline-any cline-neutral"> </span>
|
|
406
|
+
<span class="cline-any cline-neutral"> </span>
|
|
407
|
+
<span class="cline-any cline-neutral"> </span>
|
|
317
408
|
<span class="cline-any cline-no"> </span>
|
|
318
409
|
<span class="cline-any cline-no"> </span>
|
|
319
410
|
<span class="cline-any cline-no"> </span>
|
|
320
411
|
<span class="cline-any cline-no"> </span>
|
|
321
412
|
<span class="cline-any cline-no"> </span>
|
|
322
413
|
<span class="cline-any cline-no"> </span>
|
|
414
|
+
<span class="cline-any cline-neutral"> </span>
|
|
323
415
|
<span class="cline-any cline-no"> </span>
|
|
324
416
|
<span class="cline-any cline-neutral"> </span>
|
|
417
|
+
<span class="cline-any cline-neutral"> </span>
|
|
418
|
+
<span class="cline-any cline-no"> </span>
|
|
325
419
|
<span class="cline-any cline-no"> </span>
|
|
326
420
|
<span class="cline-any cline-neutral"> </span>
|
|
421
|
+
<span class="cline-any cline-neutral"> </span>
|
|
422
|
+
<span class="cline-any cline-no"> </span>
|
|
423
|
+
<span class="cline-any cline-no"> </span>
|
|
327
424
|
<span class="cline-any cline-no"> </span>
|
|
328
425
|
<span class="cline-any cline-no"> </span>
|
|
329
426
|
<span class="cline-any cline-neutral"> </span>
|
|
427
|
+
<span class="cline-any cline-neutral"> </span>
|
|
330
428
|
<span class="cline-any cline-no"> </span>
|
|
331
429
|
<span class="cline-any cline-neutral"> </span>
|
|
332
430
|
<span class="cline-any cline-neutral"> </span>
|
|
333
431
|
<span class="cline-any cline-no"> </span>
|
|
334
432
|
<span class="cline-any cline-neutral"> </span>
|
|
335
433
|
<span class="cline-any cline-no"> </span>
|
|
434
|
+
<span class="cline-any cline-neutral"> </span>
|
|
435
|
+
<span class="cline-any cline-no"> </span>
|
|
436
|
+
<span class="cline-any cline-no"> </span>
|
|
336
437
|
<span class="cline-any cline-no"> </span>
|
|
337
438
|
<span class="cline-any cline-neutral"> </span>
|
|
338
439
|
<span class="cline-any cline-no"> </span>
|
|
339
440
|
<span class="cline-any cline-neutral"> </span>
|
|
441
|
+
<span class="cline-any cline-neutral"> </span>
|
|
340
442
|
<span class="cline-any cline-no"> </span>
|
|
341
443
|
<span class="cline-any cline-no"> </span>
|
|
342
444
|
<span class="cline-any cline-neutral"> </span>
|
|
343
|
-
<span class="cline-any cline-no"> </span>
|
|
344
445
|
<span class="cline-any cline-neutral"> </span>
|
|
345
446
|
<span class="cline-any cline-no"> </span>
|
|
346
447
|
<span class="cline-any cline-no"> </span>
|
|
347
448
|
<span class="cline-any cline-no"> </span>
|
|
348
449
|
<span class="cline-any cline-no"> </span>
|
|
450
|
+
<span class="cline-any cline-neutral"> </span>
|
|
451
|
+
<span class="cline-any cline-neutral"> </span>
|
|
349
452
|
<span class="cline-any cline-no"> </span>
|
|
350
453
|
<span class="cline-any cline-neutral"> </span>
|
|
454
|
+
<span class="cline-any cline-neutral"> </span>
|
|
351
455
|
<span class="cline-any cline-no"> </span>
|
|
352
456
|
<span class="cline-any cline-no"> </span>
|
|
353
|
-
<span class="cline-any cline-neutral"> </span>
|
|
354
457
|
<span class="cline-any cline-no"> </span>
|
|
355
458
|
<span class="cline-any cline-neutral"> </span>
|
|
356
459
|
<span class="cline-any cline-neutral"> </span>
|
|
460
|
+
<span class="cline-any cline-no"> </span>
|
|
461
|
+
<span class="cline-any cline-no"> </span>
|
|
462
|
+
<span class="cline-any cline-no"> </span>
|
|
463
|
+
<span class="cline-any cline-no"> </span>
|
|
464
|
+
<span class="cline-any cline-no"> </span>
|
|
465
|
+
<span class="cline-any cline-no"> </span>
|
|
466
|
+
<span class="cline-any cline-neutral"> </span>
|
|
357
467
|
<span class="cline-any cline-neutral"> </span>
|
|
358
468
|
<span class="cline-any cline-neutral"> </span>
|
|
359
469
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -365,14 +475,13 @@
|
|
|
365
475
|
<span class="cline-any cline-no"> </span>
|
|
366
476
|
<span class="cline-any cline-neutral"> </span>
|
|
367
477
|
<span class="cline-any cline-neutral"> </span>
|
|
478
|
+
<span class="cline-any cline-neutral"> </span>
|
|
368
479
|
<span class="cline-any cline-no"> </span>
|
|
369
480
|
<span class="cline-any cline-no"> </span>
|
|
370
481
|
<span class="cline-any cline-neutral"> </span>
|
|
371
482
|
<span class="cline-any cline-neutral"> </span>
|
|
372
483
|
<span class="cline-any cline-neutral"> </span>
|
|
373
484
|
<span class="cline-any cline-neutral"> </span>
|
|
374
|
-
<span class="cline-any cline-neutral"> </span>
|
|
375
|
-
<span class="cline-any cline-neutral"> </span>
|
|
376
485
|
<span class="cline-any cline-no"> </span>
|
|
377
486
|
<span class="cline-any cline-neutral"> </span>
|
|
378
487
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -392,9 +501,6 @@
|
|
|
392
501
|
<span class="cline-any cline-neutral"> </span>
|
|
393
502
|
<span class="cline-any cline-no"> </span>
|
|
394
503
|
<span class="cline-any cline-neutral"> </span>
|
|
395
|
-
<span class="cline-any cline-neutral"> </span>
|
|
396
|
-
<span class="cline-any cline-no"> </span>
|
|
397
|
-
<span class="cline-any cline-neutral"> </span>
|
|
398
504
|
<span class="cline-any cline-no"> </span>
|
|
399
505
|
<span class="cline-any cline-neutral"> </span>
|
|
400
506
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -437,119 +543,175 @@ import useTypedownToggle from './useTypedownToggle';
|
|
|
437
543
|
|
|
438
544
|
const useTypedown = <span class="fstat-no" title="function not covered" >(</span>
|
|
439
545
|
name,
|
|
440
|
-
{
|
|
546
|
+
{
|
|
547
|
+
dataOptions,
|
|
548
|
+
timeout = <span class="branch-0 cbranch-no" title="branch not covered" >800</span>
|
|
549
|
+
} = <span class="branch-0 cbranch-no" title="branch not covered" >{}</span>
|
|
441
550
|
) => {
|
|
442
551
|
// SET UP STATE HOLDING DOM ELEMENTS
|
|
443
|
-
const [list,
|
|
444
|
-
const [trigger,
|
|
445
|
-
const [footer,
|
|
446
|
-
const [header,
|
|
552
|
+
const [list, setList] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
553
|
+
const [trigger, setTrigger] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
554
|
+
const [footer, setFooter] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
555
|
+
const [header, setHeader] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
447
556
|
|
|
448
557
|
// SET UP REFS
|
|
449
558
|
const triggerRef = <span class="cstat-no" title="statement not covered" >useRef();</span>
|
|
450
559
|
const overlayRef = <span class="cstat-no" title="statement not covered" >useRef();</span>
|
|
451
|
-
const listRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >
|
|
452
|
-
const triggerComponentRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >
|
|
453
|
-
const footerRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >
|
|
454
|
-
const headerRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >
|
|
560
|
+
const listRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >setList(node),</span> []);</span>
|
|
561
|
+
const triggerComponentRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >setTrigger(node),</span> []);</span>
|
|
562
|
+
const footerRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >setFooter(node),</span> []);</span>
|
|
563
|
+
const headerRef = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >no</span>de => <span class="cstat-no" title="statement not covered" >setHeader(node),</span> []);</span>
|
|
455
564
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
element: footer,
|
|
470
|
-
allowTabThroughContents: true,
|
|
471
|
-
previousElement: (header && getLastFocusable(header)) ?? trigger,
|
|
472
|
-
nextElement: getNextFocusable(trigger, false),
|
|
473
|
-
downElement: list && getFirstFocusable(list),
|
|
474
|
-
upElement: list && getLastFocusable(list),
|
|
475
|
-
},
|
|
476
|
-
// --- LIST/CONTAINER CONFIG ---
|
|
477
|
-
{
|
|
478
|
-
element: list,
|
|
479
|
-
allowUpDownThroughContents: true,
|
|
480
|
-
previousElement: (header && getLastFocusable(header)) ?? trigger,
|
|
481
|
-
nextElement: (footer && getFirstFocusable(footer)) ?? getNextFocusable(trigger, false)
|
|
482
|
-
},
|
|
483
|
-
// --- TRIGGER CONFIG ---
|
|
484
|
-
{
|
|
485
|
-
element: trigger,
|
|
486
|
-
nextElement: (header && getFirstFocusable(header)) ?? (footer && getFirstFocusable(footer)) ?? getNextFocusable(trigger, false),
|
|
487
|
-
previousElement: getPreviousFocusable(trigger, false),
|
|
488
|
-
downElement: list && getFirstFocusable(list),
|
|
489
|
-
upElement: list && getLastFocusable(list),
|
|
490
|
-
}
|
|
491
|
-
].filter(<span class="fstat-no" title="function not covered" >c </span>=> <span class="cstat-no" title="statement not covered" >c.element)</span>; // Filter out configs where the element (e.g., header) is null
|
|
565
|
+
// OVERLAY PORTAL
|
|
566
|
+
const portal = <span class="cstat-no" title="statement not covered" >document.getElementById('OverlayContainer');</span>
|
|
567
|
+
|
|
568
|
+
const getPreviousToTrigger = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
569
|
+
const prevElem = <span class="cstat-no" title="statement not covered" >getPreviousFocusable(trigger, false, false, false);</span>
|
|
570
|
+
<span class="cstat-no" title="statement not covered" > if (prevElem.closest('[id^=OverlayContainer]') !== null) {</span>
|
|
571
|
+
// If we find ourselves inside the OverlayContainer when heading backwards from the trigger
|
|
572
|
+
// then we must be the first focusable element on the page.
|
|
573
|
+
// From here we need to skip over the overlay container and head backwards
|
|
574
|
+
<span class="cstat-no" title="statement not covered" > return getPreviousFocusable(portal, false, false, false);</span>
|
|
575
|
+
}
|
|
576
|
+
<span class="cstat-no" title="statement not covered" > return prevElem;</span>
|
|
577
|
+
}, [portal, trigger]);
|
|
492
578
|
|
|
579
|
+
<span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
493
580
|
const cleanups = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
<span class="cstat-no" title="statement not covered" >
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
<span class="cstat-no" title="statement not covered" >
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
581
|
+
|
|
582
|
+
// There appears to be some BIZARRE off-by-one issue with selectors here, that can be fixed by introducing a 1ms delay...
|
|
583
|
+
// I hate it but it is effective
|
|
584
|
+
<span class="cstat-no" title="statement not covered" > setTimeout(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
585
|
+
// Split these out to shut up the linter
|
|
586
|
+
const rawFirstItemInList = (<span class="cstat-no" title="statement not covered" >list ? getFirstFocusable(list) : null)</span>;
|
|
587
|
+
const rawLastItemInList = (<span class="cstat-no" title="statement not covered" >list ? getLastFocusable(list) : null)</span>;
|
|
588
|
+
|
|
589
|
+
// If there are no dataOptions, this can get a bit stuck, so deliberately set to null when no dataOptions are present
|
|
590
|
+
const firstItemInList = <span class="cstat-no" title="statement not covered" >dataOptions.length > 0 ? rawFirstItemInList : null;</span>
|
|
591
|
+
const lastItemInList = <span class="cstat-no" title="statement not covered" >dataOptions.length > 0 ? rawLastItemInList : null;</span>
|
|
592
|
+
|
|
593
|
+
const configs = <span class="cstat-no" title="statement not covered" >[</span>
|
|
594
|
+
// --- HEADER CONFIG ---
|
|
595
|
+
{
|
|
596
|
+
element: header,
|
|
597
|
+
allowTabThroughContents: true,
|
|
598
|
+
previousElement: trigger,
|
|
599
|
+
nextElement: (footer ? getFirstFocusable(footer) : null) ?? getNextFocusable(trigger, false),
|
|
600
|
+
downElement: firstItemInList,
|
|
601
|
+
upElement: lastItemInList,
|
|
602
|
+
},
|
|
603
|
+
// --- FOOTER CONFIG ---
|
|
604
|
+
{
|
|
605
|
+
element: footer,
|
|
606
|
+
allowTabThroughContents: true,
|
|
607
|
+
previousElement: (header ? getLastFocusable(header) : null) ?? trigger,
|
|
608
|
+
nextElement: getNextFocusable(trigger, false),
|
|
609
|
+
downElement: firstItemInList,
|
|
610
|
+
upElement: lastItemInList,
|
|
611
|
+
},
|
|
612
|
+
// --- LIST/CONTAINER CONFIG ---
|
|
613
|
+
{
|
|
614
|
+
element: list,
|
|
615
|
+
allowUpDownThroughContents: true,
|
|
616
|
+
previousElement: (header ? getLastFocusable(header) : null) ?? trigger,
|
|
617
|
+
nextElement: (footer ? getFirstFocusable(footer) : null) ?? getNextFocusable(trigger, false)
|
|
618
|
+
},
|
|
619
|
+
// --- TRIGGER CONFIG ---
|
|
620
|
+
{
|
|
621
|
+
element: trigger,
|
|
622
|
+
nextElement: (header ? getFirstFocusable(header) : null) ?? (footer ? getFirstFocusable(footer) : null) ?? getNextFocusable(trigger, false),
|
|
623
|
+
previousElement: getPreviousToTrigger(),
|
|
624
|
+
downElement: firstItemInList,
|
|
625
|
+
upElement: lastItemInList,
|
|
626
|
+
}
|
|
627
|
+
].filter(<span class="fstat-no" title="function not covered" >c </span>=> <span class="cstat-no" title="statement not covered" >c.element)</span>; // Filter out configs where the element (e.g., header) is null
|
|
628
|
+
|
|
629
|
+
const setupListener = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(c</span>onfig) => {</span>
|
|
630
|
+
const {
|
|
631
|
+
element,
|
|
632
|
+
allowTabThroughContents,
|
|
633
|
+
previousElement,
|
|
634
|
+
nextElement,
|
|
635
|
+
allowUpDownThroughContents,
|
|
636
|
+
downElement,
|
|
637
|
+
upElement,
|
|
638
|
+
} = <span class="cstat-no" title="statement not covered" >config;</span>
|
|
639
|
+
const handleTab = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >e </span>=> {</span>
|
|
640
|
+
const IS_SHIFT = <span class="cstat-no" title="statement not covered" >e.shiftKey;</span>
|
|
641
|
+
const tabIgnoreContents = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
642
|
+
<span class="cstat-no" title="statement not covered" > if (IS_SHIFT) {</span>
|
|
643
|
+
<span class="cstat-no" title="statement not covered" > return previousElement?.focus();</span>
|
|
511
644
|
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
<span class="cstat-no" title="statement not covered" >
|
|
645
|
+
<span class="cstat-no" title="statement not covered" > return nextElement?.focus();</span>
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
<span class="cstat-no" title="statement not covered" > if (!allowTabThroughContents) {</span>
|
|
649
|
+
<span class="cstat-no" title="statement not covered" > return tabIgnoreContents();</span>
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
const focusFunc = <span class="cstat-no" title="statement not covered" >IS_SHIFT ? getPreviousFocusable : getNextFocusable;</span>
|
|
653
|
+
const elem = <span class="cstat-no" title="statement not covered" >focusFunc(element, true, true, false, true);</span>
|
|
654
|
+
<span class="cstat-no" title="statement not covered" > if (elem) {</span>
|
|
655
|
+
<span class="cstat-no" title="statement not covered" > return elem.focus();</span>
|
|
516
656
|
}
|
|
517
|
-
|
|
518
|
-
<span class="cstat-no" title="statement not covered" >
|
|
657
|
+
|
|
658
|
+
<span class="cstat-no" title="statement not covered" > return tabIgnoreContents();</span>
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
const handleUpDown = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >e </span>=> {</span>
|
|
519
662
|
// Prevent the default behaviour
|
|
520
|
-
<span class="cstat-no" title="statement not covered" >
|
|
663
|
+
const IS_UP = <span class="cstat-no" title="statement not covered" >e.code === UP_ARROW;</span>
|
|
521
664
|
|
|
522
|
-
<span class="cstat-no" title="statement not covered" >
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
<span class="cstat-no" title="statement not covered" > if (elem) {</span>
|
|
526
|
-
<span class="cstat-no" title="statement not covered" > elem.focus();</span>
|
|
665
|
+
const upDownIgnoreContents = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
666
|
+
<span class="cstat-no" title="statement not covered" > if (IS_UP) {</span>
|
|
667
|
+
<span class="cstat-no" title="statement not covered" > return upElement?.focus();</span>
|
|
527
668
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
<span class="cstat-no" title="statement not covered" >
|
|
669
|
+
<span class="cstat-no" title="statement not covered" > return downElement?.focus();</span>
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
<span class="cstat-no" title="statement not covered" > if (!allowUpDownThroughContents) {</span>
|
|
673
|
+
<span class="cstat-no" title="statement not covered" > return upDownIgnoreContents();</span>
|
|
532
674
|
}
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
675
|
|
|
536
|
-
|
|
537
|
-
<span class="cstat-no" title="statement not covered" >
|
|
538
|
-
<span class="cstat-no" title="statement not covered" >
|
|
539
|
-
|
|
676
|
+
const focusFunc = <span class="cstat-no" title="statement not covered" >IS_UP ? getPreviousFocusable : getNextFocusable;</span>
|
|
677
|
+
const elem = <span class="cstat-no" title="statement not covered" >focusFunc(element, true, true, true, true);</span> // Allow looping through elements
|
|
678
|
+
<span class="cstat-no" title="statement not covered" > if (elem) {</span>
|
|
679
|
+
<span class="cstat-no" title="statement not covered" > return elem.focus();</span>
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
<span class="cstat-no" title="statement not covered" > return upDownIgnoreContents();</span>
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
const handler = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(e</span>) => {</span>
|
|
686
|
+
<span class="cstat-no" title="statement not covered" > if (!element.contains(document.activeElement)) {</span>
|
|
687
|
+
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
<span class="cstat-no" title="statement not covered" > if (e.code === TAB) {</span>
|
|
691
|
+
<span class="cstat-no" title="statement not covered" > e.preventDefault();</span>
|
|
692
|
+
<span class="cstat-no" title="statement not covered" > handleTab(e);</span>
|
|
693
|
+
} else <span class="cstat-no" title="statement not covered" >if (e.code === DOWN_ARROW || e.code === UP_ARROW) {</span>
|
|
694
|
+
<span class="cstat-no" title="statement not covered" > e.preventDefault();</span>
|
|
695
|
+
<span class="cstat-no" title="statement not covered" > handleUpDown(e);</span>
|
|
696
|
+
}
|
|
697
|
+
};
|
|
540
698
|
|
|
541
|
-
|
|
542
|
-
<span class="cstat-no" title="statement not covered" >
|
|
699
|
+
// Add event listener and add the removal of said event listener to the cleanup function
|
|
700
|
+
<span class="cstat-no" title="statement not covered" > element.addEventListener('keydown', handler);</span>
|
|
701
|
+
<span class="cstat-no" title="statement not covered" > cleanups.push(<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >element.removeEventListener('keydown', handler))</span>;</span>
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
// Set up the event listener for each config entry
|
|
705
|
+
<span class="cstat-no" title="statement not covered" > configs.forEach(setupListener);</span>
|
|
706
|
+
}, 0);
|
|
543
707
|
|
|
544
708
|
// Cleanup any event listeners
|
|
545
709
|
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
546
710
|
<span class="cstat-no" title="statement not covered" > cleanups.forEach(<span class="fstat-no" title="function not covered" >cl</span>eanup => <span class="cstat-no" title="statement not covered" >cleanup())</span>;</span>
|
|
547
711
|
};
|
|
548
|
-
|
|
549
712
|
// Re-add the listener ANY time any of the elements changes (this is why we're using callback refs)
|
|
550
|
-
}, [header, trigger, footer, list]);
|
|
713
|
+
}, [dataOptions, header, trigger, footer, list, getPreviousToTrigger]);
|
|
551
714
|
|
|
552
|
-
// TODO is this still necessary?
|
|
553
715
|
const handleNextFocus = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >getNextFocusable(trigger, false).focus();</span></span>
|
|
554
716
|
|
|
555
717
|
// SET UP VARIABLES
|
|
@@ -568,9 +730,6 @@ const useTypedown = <span class="fstat-no" title="function not covered" >(</span
|
|
|
568
730
|
|
|
569
731
|
// RESIZE STUFF
|
|
570
732
|
const { width: searchWidth, ref: resizeRef } = <span class="cstat-no" title="statement not covered" >useResizeDetector();</span>
|
|
571
|
-
|
|
572
|
-
// OVERLAY PORTAL
|
|
573
|
-
const portal = <span class="cstat-no" title="statement not covered" >document.getElementById('OverlayContainer');</span>
|
|
574
733
|
|
|
575
734
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
576
735
|
refs: {
|
|
@@ -601,7 +760,7 @@ export default useTypedown;
|
|
|
601
760
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
602
761
|
Code coverage generated by
|
|
603
762
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
604
|
-
at 2025-12-
|
|
763
|
+
at 2025-12-12T20:17:01.385Z
|
|
605
764
|
</div>
|
|
606
765
|
<script src="../../prettify.js"></script>
|
|
607
766
|
<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 2025-12-
|
|
169
|
+
at 2025-12-12T20:17:01.385Z
|
|
170
170
|
</div>
|
|
171
171
|
<script src="../../prettify.js"></script>
|
|
172
172
|
<script>
|
|
@@ -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 2025-12-
|
|
151
|
+
at 2025-12-12T20:17:01.385Z
|
|
152
152
|
</div>
|
|
153
153
|
<script src="../../prettify.js"></script>
|
|
154
154
|
<script>
|
|
@@ -178,7 +178,7 @@ export default useActionListRef;
|
|
|
178
178
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
179
179
|
Code coverage generated by
|
|
180
180
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
181
|
-
at 2025-12-
|
|
181
|
+
at 2025-12-12T20:17:01.385Z
|
|
182
182
|
</div>
|
|
183
183
|
<script src="../prettify.js"></script>
|
|
184
184
|
<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 2025-12-
|
|
145
|
+
at 2025-12-12T20:17:01.385Z
|
|
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 2025-12-
|
|
313
|
+
at 2025-12-12T20:17:01.385Z
|
|
314
314
|
</div>
|
|
315
315
|
<script src="../prettify.js"></script>
|
|
316
316
|
<script>
|
|
@@ -304,7 +304,7 @@ export default useHelperApp;
|
|
|
304
304
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
305
305
|
Code coverage generated by
|
|
306
306
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
307
|
-
at 2025-12-
|
|
307
|
+
at 2025-12-12T20:17:01.385Z
|
|
308
308
|
</div>
|
|
309
309
|
<script src="../prettify.js"></script>
|
|
310
310
|
<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 2025-12-
|
|
119
|
+
at 2025-12-12T20:17:01.385Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|