@k-int/stripes-kint-components 5.34.1 → 5.36.0
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 +15 -0
- package/es/index.js +12 -0
- package/es/lib/Files/FileUploader/FileUploader.js +119 -0
- package/es/lib/Files/FileUploader/index.js +13 -0
- package/es/lib/Files/FileView/FileView.js +116 -0
- package/es/lib/Files/FileView/index.js +13 -0
- package/es/lib/Files/index.js +27 -0
- package/es/lib/Files/useFileHandlers.js +133 -0
- package/es/lib/NoResultsMessage/NoResultsMessage.js +28 -10
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +109 -60
- package/es/lib/SASQLookupComponent/SASQLookupComponent.test.js +11 -0
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +6 -0
- package/es/lib/hooks/index.js +8 -0
- package/es/lib/hooks/useMutateTemplates/index.js +13 -0
- package/es/lib/hooks/useMutateTemplates/useMutateTemplates.js +45 -0
- package/es/lib/utils/downloadBlob.js +42 -0
- package/es/lib/utils/index.js +9 -1
- package/package.json +2 -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 +1 -1
- 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/Files/FileUploader/FileUploader.js.html +487 -0
- package/src/artifacts/coverage-jest/Files/FileUploader/index.html +131 -0
- package/src/artifacts/coverage-jest/Files/FileUploader/index.js.html +88 -0
- package/src/artifacts/coverage-jest/Files/FileView/FileView.js.html +430 -0
- package/src/artifacts/coverage-jest/Files/FileView/index.html +131 -0
- package/src/artifacts/coverage-jest/Files/FileView/index.js.html +88 -0
- package/src/artifacts/coverage-jest/Files/index.html +131 -0
- package/src/artifacts/coverage-jest/Files/index.js.html +94 -0
- package/src/artifacts/coverage-jest/Files/useFileHandlers.js.html +469 -0
- 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 +70 -13
- package/src/artifacts/coverage-jest/NoResultsMessage/index.html +3 -3
- 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 +298 -136
- package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/TableBody.js.html +12 -3
- 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 +16 -16
- 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 +12 -12
- package/src/artifacts/coverage-jest/SASQViewComponent/index.html +15 -15
- 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/Settings/Settings.js.html +1 -1
- package/src/artifacts/coverage-jest/Settings/Settings/index.html +1 -1
- package/src/artifacts/coverage-jest/Settings/Settings/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 +9 -9
- package/src/artifacts/coverage-jest/Tags/hooks/index.html +16 -16
- package/src/artifacts/coverage-jest/Tags/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/hooks/useTags.js.html +9 -9
- package/src/artifacts/coverage-jest/Tags/hooks/useTagsEnabled.js.html +1 -1
- package/src/artifacts/coverage-jest/Tags/index.html +15 -15
- 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 +1 -1
- package/src/artifacts/coverage-jest/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/cobertura-coverage.xml +580 -314
- 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 +15 -15
- package/src/artifacts/coverage-jest/hooks/index.js.html +8 -2
- 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 +7 -7
- 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 +11 -11
- 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 +9 -9
- package/src/artifacts/coverage-jest/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedown.js.html +1 -1
- 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/useCustProps.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 +16 -16
- package/src/artifacts/coverage-jest/hooks/useLocalPageStore.js.html +1 -1
- package/src/artifacts/coverage-jest/hooks/useLocalStorageState.js.html +5 -5
- 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/useMutateTemplates/index.html +131 -0
- package/src/artifacts/coverage-jest/hooks/useMutateTemplates/index.js.html +88 -0
- package/src/artifacts/coverage-jest/hooks/useMutateTemplates/useMutateTemplates.js.html +217 -0
- package/src/artifacts/coverage-jest/hooks/useParallelBatchFetch.js.html +9 -9
- package/src/artifacts/coverage-jest/hooks/usePrevNextPagination.js.html +37 -37
- package/src/artifacts/coverage-jest/hooks/useQIndex.js.html +9 -9
- 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 +120 -60
- package/src/artifacts/coverage-jest/utils/buildUrl.js.html +12 -12
- package/src/artifacts/coverage-jest/utils/downloadBlob.js.html +211 -0
- 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 +3 -3
- package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/generateKiwtQueryParams.js.html +19 -19
- 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/index.html +24 -9
- package/src/artifacts/coverage-jest/utils/index.js.html +5 -2
- package/src/artifacts/coverage-jest/utils/matchString/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/matchString/index.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/matchString/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/stringStyling/boldString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/stringStyling/highlightString.js.html +1 -1
- package/src/artifacts/coverage-jest/utils/stringStyling/index.html +1 -1
- package/src/artifacts/coverage-jest/utils/stringStyling/index.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/index.js +2 -0
- package/src/lib/Files/FileUploader/FileUploader.js +134 -0
- package/src/lib/Files/FileUploader/index.js +1 -0
- package/src/lib/Files/FileView/FileView.js +115 -0
- package/src/lib/Files/FileView/index.js +1 -0
- package/src/lib/Files/index.js +3 -0
- package/src/lib/Files/useFileHandlers.js +128 -0
- package/src/lib/NoResultsMessage/NoResultsMessage.js +29 -10
- package/src/lib/NoResultsMessage/README.md +16 -13
- package/src/lib/SASQLookupComponent/README.md +12 -0
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +127 -73
- package/src/lib/SASQLookupComponent/SASQLookupComponent.test.js +13 -1
- package/src/lib/SASQLookupComponent/TableBody/TableBody.js +4 -1
- package/src/lib/SASQRoute/README.md +6 -1
- package/src/lib/hooks/index.js +2 -0
- package/src/lib/hooks/useMutateTemplates/index.js +1 -0
- package/src/lib/hooks/useMutateTemplates/useMutateTemplates.js +44 -0
- package/src/lib/utils/downloadBlob.js +42 -0
- package/src/lib/utils/index.js +1 -0
- package/styles/FileUploader.css +34 -0
- package/styles/FileView.css +8 -0
- package/styles/NoResultsMessage.css +1 -0
- package/styles/SASQLookupComponent.css +15 -0
|
@@ -15,6 +15,7 @@ var _utils = require("../utils");
|
|
|
15
15
|
var _hooks = require("../hooks");
|
|
16
16
|
var _TableBody = _interopRequireDefault(require("./TableBody"));
|
|
17
17
|
var _SearchKeyControl = _interopRequireDefault(require("../SearchKeyControl"));
|
|
18
|
+
var _SASQLookupComponent = _interopRequireDefault(require("../../../styles/SASQLookupComponent.css"));
|
|
18
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
21
|
const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
@@ -41,9 +42,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
41
42
|
if (passedId) {
|
|
42
43
|
queryNamespace.push(passedId);
|
|
43
44
|
}
|
|
44
|
-
queryNamespace.push('viewAll');
|
|
45
|
-
queryNamespace.push(query);
|
|
46
|
-
queryNamespace.push(currentPage);
|
|
45
|
+
queryNamespace.push('viewAll', query, currentPage);
|
|
47
46
|
return queryNamespace;
|
|
48
47
|
},
|
|
49
48
|
lookupQueryPromise = _ref2 => {
|
|
@@ -68,6 +67,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
68
67
|
// Default navigation onRowClick
|
|
69
68
|
sasqProps,
|
|
70
69
|
searchableIndexes = [],
|
|
70
|
+
SearchComponent: PassedSearchComponent,
|
|
71
71
|
searchFieldAriaLabel,
|
|
72
72
|
searchFieldProps = {}
|
|
73
73
|
} = props;
|
|
@@ -156,6 +156,53 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
156
156
|
},
|
|
157
157
|
queryParams
|
|
158
158
|
}));
|
|
159
|
+
const InternalSearchComponent = (0, _react.useCallback)(_ref3 => {
|
|
160
|
+
let {
|
|
161
|
+
disableReset,
|
|
162
|
+
resetAll,
|
|
163
|
+
searchHandlers,
|
|
164
|
+
searchValue
|
|
165
|
+
} = _ref3;
|
|
166
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
167
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchField, {
|
|
168
|
+
ariaLabel: searchFieldAriaLabel,
|
|
169
|
+
autoFocus: true,
|
|
170
|
+
id: `sasq-search-field-${id}`,
|
|
171
|
+
name: "query",
|
|
172
|
+
onChange: e => {
|
|
173
|
+
if (e.target?.value) {
|
|
174
|
+
searchHandlers.query(e); // SASQ needs the whole event here
|
|
175
|
+
} else {
|
|
176
|
+
searchHandlers.reset();
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
onClear: searchHandlers.reset,
|
|
180
|
+
value: searchValue.query,
|
|
181
|
+
...searchFieldProps
|
|
182
|
+
}), searchableIndexes?.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchKeyControl.default, {
|
|
183
|
+
options: searchableIndexes
|
|
184
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
185
|
+
buttonStyle: "primary",
|
|
186
|
+
disabled: !searchValue.query,
|
|
187
|
+
fullWidth: true,
|
|
188
|
+
type: "submit",
|
|
189
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
190
|
+
id: "stripes-smart-components.search"
|
|
191
|
+
})
|
|
192
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
193
|
+
buttonStyle: "none",
|
|
194
|
+
disabled: disableReset,
|
|
195
|
+
id: "clickable-reset-all",
|
|
196
|
+
onClick: resetAll,
|
|
197
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
|
|
198
|
+
icon: "times-circle-solid",
|
|
199
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
200
|
+
id: "stripes-smart-components.resetAll"
|
|
201
|
+
})
|
|
202
|
+
})
|
|
203
|
+
})]
|
|
204
|
+
});
|
|
205
|
+
}, [id, searchFieldAriaLabel, searchFieldProps, searchableIndexes]);
|
|
159
206
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.SearchAndSortQuery, {
|
|
160
207
|
initialSearchState: {
|
|
161
208
|
query: ''
|
|
@@ -213,6 +260,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
213
260
|
}
|
|
214
261
|
return null;
|
|
215
262
|
};
|
|
263
|
+
const SearchComponent = PassedSearchComponent ?? InternalSearchComponent;
|
|
216
264
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_smartComponents.PersistedPaneset, {
|
|
217
265
|
appId: namespace,
|
|
218
266
|
id: `${id}-paneset`,
|
|
@@ -232,46 +280,14 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
232
280
|
...restOfFilterPaneProps,
|
|
233
281
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("form", {
|
|
234
282
|
onSubmit: onSubmitSearch,
|
|
235
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FilterPaneHeaderComponent, {}), !noSearchField && /*#__PURE__*/(0, _jsxRuntime.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
name: "query",
|
|
241
|
-
onChange: e => {
|
|
242
|
-
if (e.target?.value) {
|
|
243
|
-
searchHandlers.query(e); // SASQ needs the whole event here
|
|
244
|
-
} else {
|
|
245
|
-
searchHandlers.reset();
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
onClear: searchHandlers.reset,
|
|
249
|
-
value: searchValue.query,
|
|
250
|
-
...searchFieldProps
|
|
251
|
-
}), searchableIndexes?.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchKeyControl.default, {
|
|
252
|
-
options: searchableIndexes
|
|
253
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
254
|
-
buttonStyle: "primary",
|
|
255
|
-
disabled: !searchValue.query,
|
|
256
|
-
fullWidth: true,
|
|
257
|
-
type: "submit",
|
|
258
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
259
|
-
id: "stripes-smart-components.search"
|
|
260
|
-
})
|
|
261
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
262
|
-
buttonStyle: "none",
|
|
263
|
-
disabled: disableReset,
|
|
264
|
-
id: "clickable-reset-all",
|
|
265
|
-
onClick: resetAll,
|
|
266
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
|
|
267
|
-
icon: "times-circle-solid",
|
|
268
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
269
|
-
id: "stripes-smart-components.resetAll"
|
|
270
|
-
})
|
|
271
|
-
})
|
|
272
|
-
})]
|
|
283
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FilterPaneHeaderComponent, {}), !noSearchField && /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchComponent, {
|
|
284
|
+
disableReset: disableReset,
|
|
285
|
+
resetAll: resetAll,
|
|
286
|
+
searchHandlers: searchHandlers,
|
|
287
|
+
searchValue: searchValue
|
|
273
288
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FilterComponent, {
|
|
274
|
-
activeFilters: activeFilters
|
|
289
|
+
activeFilters: activeFilters,
|
|
290
|
+
data: data,
|
|
275
291
|
filterChanged: filterChanged,
|
|
276
292
|
filterHandlers: getFilterHandlers(),
|
|
277
293
|
resetAll: resetAll,
|
|
@@ -296,24 +312,56 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
296
312
|
total: data?.total ?? data?.totalRecords ?? 0
|
|
297
313
|
}),
|
|
298
314
|
...restOfMainPaneProps,
|
|
299
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
316
|
+
className: _SASQLookupComponent.default.mainPaneContainer,
|
|
317
|
+
children: [!hasFilterPane && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
318
|
+
className: _SASQLookupComponent.default.controlsContainer,
|
|
319
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("form", {
|
|
320
|
+
onSubmit: onSubmitSearch,
|
|
321
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FilterPaneHeaderComponent, {}), !noSearchField && /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchComponent, {
|
|
322
|
+
disableReset: disableReset,
|
|
323
|
+
resetAll: resetAll,
|
|
324
|
+
searchHandlers: searchHandlers,
|
|
325
|
+
searchValue: searchValue
|
|
326
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FilterComponent, {
|
|
327
|
+
activeFilters: activeFilters,
|
|
328
|
+
data: data,
|
|
329
|
+
filterChanged: filterChanged,
|
|
330
|
+
filterHandlers: getFilterHandlers(),
|
|
331
|
+
resetAll: resetAll,
|
|
332
|
+
searchChanged: searchChanged,
|
|
333
|
+
searchHandlers: getSearchHandlers(),
|
|
334
|
+
searchValue: searchValue
|
|
335
|
+
})]
|
|
336
|
+
})
|
|
337
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
338
|
+
className: _SASQLookupComponent.default.bodyContainer,
|
|
339
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
|
|
340
|
+
data: data,
|
|
341
|
+
filterPaneVisible: filterPaneVisible,
|
|
342
|
+
intlKey: passedIntlKey,
|
|
343
|
+
intlNS: passedIntlNS,
|
|
344
|
+
labelOverrides: labelOverrides,
|
|
345
|
+
noResultsProps: {
|
|
346
|
+
...noResultsProps,
|
|
347
|
+
iconPresets: {
|
|
348
|
+
noTermsWhenFilterPane: hasFilterPane ? null : 'arrow-up',
|
|
349
|
+
...noResultsProps.iconPresets
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
query: query,
|
|
353
|
+
rowNavigation: rowNavigation,
|
|
354
|
+
toggleFilterPane: toggleFilterPane,
|
|
355
|
+
...restOfQueryProps,
|
|
356
|
+
...sasqRenderProps,
|
|
357
|
+
...sasqProps,
|
|
358
|
+
...props,
|
|
359
|
+
mclProps: {
|
|
360
|
+
...paginationMCLProps,
|
|
361
|
+
...mclProps
|
|
362
|
+
}
|
|
363
|
+
})
|
|
364
|
+
})]
|
|
317
365
|
})
|
|
318
366
|
}), children]
|
|
319
367
|
});
|
|
@@ -347,6 +395,7 @@ SASQLookupComponent.propTypes = {
|
|
|
347
395
|
key: _propTypes.default.string.isRequired,
|
|
348
396
|
label: _propTypes.default.string
|
|
349
397
|
})),
|
|
398
|
+
SearchComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node]),
|
|
350
399
|
searchFieldAriaLabel: _propTypes.default.string,
|
|
351
400
|
searchFieldProps: _propTypes.default.object
|
|
352
401
|
};
|
|
@@ -226,6 +226,16 @@ describe('SASQLookupComponent', () => {
|
|
|
226
226
|
hasFilterPane: false
|
|
227
227
|
},
|
|
228
228
|
expectQueryFire: false,
|
|
229
|
+
expectedSearchField: true,
|
|
230
|
+
expectedFilterPane: false
|
|
231
|
+
}, {
|
|
232
|
+
testLabel: 'with filter pane disabled (and no search)',
|
|
233
|
+
props: {
|
|
234
|
+
...baseSASQLookupProps,
|
|
235
|
+
hasFilterPane: false,
|
|
236
|
+
noSearchField: true
|
|
237
|
+
},
|
|
238
|
+
expectQueryFire: false,
|
|
229
239
|
expectedSearchField: false,
|
|
230
240
|
expectedFilterPane: false
|
|
231
241
|
}, {
|
|
@@ -435,6 +445,7 @@ describe('SASQLookupComponent', () => {
|
|
|
435
445
|
beforeEach(async () => {
|
|
436
446
|
_core.mockKy.mockClear();
|
|
437
447
|
await (0, _react2.waitFor)(async () => {
|
|
448
|
+
await (0, _stripesErmTesting.SearchField)().fillIn(''); // Needed to avoid flakiness
|
|
438
449
|
await (0, _stripesErmTesting.SearchField)().fillIn('some test query');
|
|
439
450
|
await (0, _stripesErmTesting.Button)('Search').click();
|
|
440
451
|
});
|
|
@@ -99,13 +99,18 @@ const TableBody = _ref => {
|
|
|
99
99
|
interactive: rowNavigation,
|
|
100
100
|
isEmptyMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(NoResultsComponent, {
|
|
101
101
|
error,
|
|
102
|
+
filters: query.filters,
|
|
103
|
+
// Separate out filters as per "searchTerm" below
|
|
102
104
|
filterPaneIsVisible: filterPaneVisible,
|
|
103
105
|
intlKey: passedIntlKey,
|
|
104
106
|
intlNS: passedIntlNS,
|
|
105
107
|
isError,
|
|
106
108
|
isLoading,
|
|
107
109
|
labelOverrides,
|
|
110
|
+
query,
|
|
111
|
+
// Passing the whole query object just in case
|
|
108
112
|
searchTerm: query.query,
|
|
113
|
+
// Here for compatibility, probably better to just use "query" prop
|
|
109
114
|
toggleFilterPane,
|
|
110
115
|
...noResultsProps // Anything passed in directly takes precedence
|
|
111
116
|
}),
|
|
@@ -138,6 +143,7 @@ TableBody.propTypes = {
|
|
|
138
143
|
location: _propTypes.default.object,
|
|
139
144
|
match: _propTypes.default.object,
|
|
140
145
|
mclProps: _propTypes.default.object,
|
|
146
|
+
noResultsProps: _propTypes.default.object,
|
|
141
147
|
onSort: _propTypes.default.func,
|
|
142
148
|
path: _propTypes.default.string.isRequired,
|
|
143
149
|
query: _propTypes.default.object,
|
package/es/lib/hooks/index.js
CHANGED
|
@@ -23,6 +23,7 @@ var _exportNames = {
|
|
|
23
23
|
useMutateRefdataCategory: true,
|
|
24
24
|
useMutateCustomProperties: true,
|
|
25
25
|
useMutateModConfigEntry: true,
|
|
26
|
+
useMutateTemplates: true,
|
|
26
27
|
usePrevNextPagination: true,
|
|
27
28
|
useStandaloneSASQQueryParameter: true,
|
|
28
29
|
useParallelBatchFetch: true
|
|
@@ -117,6 +118,12 @@ Object.defineProperty(exports, "useMutateRefdataValue", {
|
|
|
117
118
|
return _useMutateRefdataValue.default;
|
|
118
119
|
}
|
|
119
120
|
});
|
|
121
|
+
Object.defineProperty(exports, "useMutateTemplates", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () {
|
|
124
|
+
return _useMutateTemplates.default;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
120
127
|
Object.defineProperty(exports, "useParallelBatchFetch", {
|
|
121
128
|
enumerable: true,
|
|
122
129
|
get: function () {
|
|
@@ -178,6 +185,7 @@ var _useMutateRefdataValue = _interopRequireDefault(require("./useMutateRefdataV
|
|
|
178
185
|
var _useMutateRefdataCategory = _interopRequireDefault(require("./useMutateRefdataCategory"));
|
|
179
186
|
var _useMutateCustomProperties = _interopRequireDefault(require("./useMutateCustomProperties"));
|
|
180
187
|
var _useMutateModConfigEntry = _interopRequireDefault(require("./useMutateModConfigEntry"));
|
|
188
|
+
var _useMutateTemplates = _interopRequireDefault(require("./useMutateTemplates"));
|
|
181
189
|
var _usePrevNextPagination = _interopRequireDefault(require("./usePrevNextPagination"));
|
|
182
190
|
var _useStandaloneSASQQueryParameter = _interopRequireDefault(require("./useStandaloneSASQQueryParameter"));
|
|
183
191
|
var _useParallelBatchFetch = _interopRequireDefault(require("./useParallelBatchFetch"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _useMutateTemplates.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _useMutateTemplates = _interopRequireDefault(require("./useMutateTemplates"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _noop = _interopRequireDefault(require("lodash/noop"));
|
|
8
|
+
var _useInvalidateRefdata = _interopRequireDefault(require("../useInvalidateRefdata"));
|
|
9
|
+
var _useMutateGeneric = _interopRequireDefault(require("../useMutateGeneric"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const useMutateTemplates = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
afterQueryCalls: {
|
|
14
|
+
delete: afterQueryDelete = _noop.default,
|
|
15
|
+
post: afterQueryPost = _noop.default,
|
|
16
|
+
put: afterQueryPut = _noop.default
|
|
17
|
+
} = {},
|
|
18
|
+
endpoint,
|
|
19
|
+
...mutateGenericProps
|
|
20
|
+
} = _ref;
|
|
21
|
+
const invalidateRefdata = (0, _useInvalidateRefdata.default)();
|
|
22
|
+
return (0, _useMutateGeneric.default)({
|
|
23
|
+
afterQueryCalls: {
|
|
24
|
+
delete: res => {
|
|
25
|
+
invalidateRefdata().then(() => {
|
|
26
|
+
afterQueryDelete(res);
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
post: res => {
|
|
30
|
+
invalidateRefdata().then(() => {
|
|
31
|
+
afterQueryPost(res);
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
put: res => {
|
|
35
|
+
invalidateRefdata().then(() => {
|
|
36
|
+
afterQueryPut(res);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
endpoint,
|
|
41
|
+
queryKey: ['stripes-kint-components', 'useMutateTemplates'],
|
|
42
|
+
...mutateGenericProps
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var _default = exports.default = useMutateTemplates;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* The options block allows for a very customisable approach to naming files
|
|
9
|
+
* and applying extensions. The default options are chosen in order to keep default
|
|
10
|
+
* behaviour found in other apps, but this can now be changed use case by use case.
|
|
11
|
+
*
|
|
12
|
+
* This is copied from stripes-erm-components
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const downloadBlob = function (name) {
|
|
16
|
+
let {
|
|
17
|
+
fileExt = '',
|
|
18
|
+
spaceDelimiter = '_',
|
|
19
|
+
dotDelimiter = '',
|
|
20
|
+
processWhitespace = true,
|
|
21
|
+
processDots = false
|
|
22
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
23
|
+
let downloadName = name;
|
|
24
|
+
if (processWhitespace) {
|
|
25
|
+
downloadName = downloadName.replaceAll(/\s/g, spaceDelimiter);
|
|
26
|
+
}
|
|
27
|
+
if (processDots) {
|
|
28
|
+
downloadName = downloadName.replaceAll(/\./g, dotDelimiter);
|
|
29
|
+
}
|
|
30
|
+
if (fileExt.length) {
|
|
31
|
+
downloadName = `${downloadName}.${fileExt}`;
|
|
32
|
+
}
|
|
33
|
+
return blob => {
|
|
34
|
+
const url = URL.createObjectURL(blob);
|
|
35
|
+
const a = document.createElement('a');
|
|
36
|
+
a.href = url;
|
|
37
|
+
a.download = downloadName;
|
|
38
|
+
a.click();
|
|
39
|
+
URL.revokeObjectURL(url);
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
var _default = exports.default = downloadBlob;
|
package/es/lib/utils/index.js
CHANGED
|
@@ -23,7 +23,8 @@ var _exportNames = {
|
|
|
23
23
|
deparseKiwtQueryFiltersObject: true,
|
|
24
24
|
parseErrorResponse: true,
|
|
25
25
|
modConfigEntriesQueryKey: true,
|
|
26
|
-
parseModConfigEntry: true
|
|
26
|
+
parseModConfigEntry: true,
|
|
27
|
+
downloadBlob: true
|
|
27
28
|
};
|
|
28
29
|
Object.defineProperty(exports, "buildUrl", {
|
|
29
30
|
enumerable: true,
|
|
@@ -43,6 +44,12 @@ Object.defineProperty(exports, "deparseKiwtQueryFiltersObject", {
|
|
|
43
44
|
return _filterParsers.deparseKiwtQueryFiltersObject;
|
|
44
45
|
}
|
|
45
46
|
});
|
|
47
|
+
Object.defineProperty(exports, "downloadBlob", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () {
|
|
50
|
+
return _downloadBlob.default;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
46
53
|
Object.defineProperty(exports, "generateKiwtQuery", {
|
|
47
54
|
enumerable: true,
|
|
48
55
|
get: function () {
|
|
@@ -172,4 +179,5 @@ var _filterParsers = require("./filterParsers");
|
|
|
172
179
|
var _parseErrorResponse = _interopRequireDefault(require("./parseErrorResponse"));
|
|
173
180
|
var _modConfigEntriesQueryKey = _interopRequireDefault(require("./modConfigEntriesQueryKey"));
|
|
174
181
|
var _parseModConfigEntry = _interopRequireDefault(require("./parseModConfigEntry"));
|
|
182
|
+
var _downloadBlob = _interopRequireDefault(require("./downloadBlob"));
|
|
175
183
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-int/stripes-kint-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.36.0",
|
|
4
4
|
"description": "Stripes Component library for K-Int specific applications",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@rehooks/local-storage": "^2.4.4",
|
|
30
30
|
"compose-function": "^3.0.3",
|
|
31
|
+
"react-dropzone": "^15.0.0",
|
|
31
32
|
"react-resize-detector": "^11.0.0",
|
|
32
33
|
"zustand": "^5.0.0"
|
|
33
34
|
},
|
|
@@ -358,7 +358,7 @@ export default ActionList;
|
|
|
358
358
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
359
359
|
Code coverage generated by
|
|
360
360
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
361
|
-
at 2026-
|
|
361
|
+
at 2026-04-16T17:02:24.586Z
|
|
362
362
|
</div>
|
|
363
363
|
<script src="../prettify.js"></script>
|
|
364
364
|
<script>
|
|
@@ -1495,7 +1495,7 @@ export default ActionListFieldArray;
|
|
|
1495
1495
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1496
1496
|
Code coverage generated by
|
|
1497
1497
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1498
|
-
at 2026-
|
|
1498
|
+
at 2026-04-16T17:02:24.586Z
|
|
1499
1499
|
</div>
|
|
1500
1500
|
<script src="../prettify.js"></script>
|
|
1501
1501
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2026-
|
|
134
|
+
at 2026-04-16T17:02:24.586Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
76
|
-
at 2026-
|
|
76
|
+
at 2026-04-16T17:02:24.586Z
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|
|
@@ -421,7 +421,7 @@ ButtonTypedown.propTypes = {
|
|
|
421
421
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
422
422
|
Code coverage generated by
|
|
423
423
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
424
|
-
at 2026-
|
|
424
|
+
at 2026-04-16T17:02:24.586Z
|
|
425
425
|
</div>
|
|
426
426
|
<script src="../prettify.js"></script>
|
|
427
427
|
<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 2026-
|
|
119
|
+
at 2026-04-16T17:02:24.586Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
76
|
-
at 2026-
|
|
76
|
+
at 2026-04-16T17:02:24.586Z
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|
|
@@ -553,7 +553,7 @@ export default ComboButton;
|
|
|
553
553
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
554
554
|
Code coverage generated by
|
|
555
555
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
556
|
-
at 2026-
|
|
556
|
+
at 2026-04-16T17:02:24.586Z
|
|
557
557
|
</div>
|
|
558
558
|
<script src="../prettify.js"></script>
|
|
559
559
|
<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 2026-
|
|
119
|
+
at 2026-04-16T17:02:24.586Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
76
|
-
at 2026-
|
|
76
|
+
at 2026-04-16T17:02:24.586Z
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|
|
@@ -649,7 +649,7 @@ export default CustomPropertiesLookup;
|
|
|
649
649
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
650
650
|
Code coverage generated by
|
|
651
651
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
652
|
-
at 2026-
|
|
652
|
+
at 2026-04-16T17:02:24.586Z
|
|
653
653
|
</div>
|
|
654
654
|
<script src="../../prettify.js"></script>
|
|
655
655
|
<script>
|
package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesSettings.js.html
CHANGED
|
@@ -1360,7 +1360,7 @@ export default CustomPropertiesSettings;
|
|
|
1360
1360
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1361
1361
|
Code coverage generated by
|
|
1362
1362
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1363
|
-
at 2026-
|
|
1363
|
+
at 2026-04-16T17:02:24.586Z
|
|
1364
1364
|
</div>
|
|
1365
1365
|
<script src="../../prettify.js"></script>
|
|
1366
1366
|
<script>
|
|
@@ -1459,7 +1459,7 @@ export default CustomPropertyForm;
|
|
|
1459
1459
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1460
1460
|
Code coverage generated by
|
|
1461
1461
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1462
|
-
at 2026-
|
|
1462
|
+
at 2026-04-16T17:02:24.586Z
|
|
1463
1463
|
</div>
|
|
1464
1464
|
<script src="../../prettify.js"></script>
|
|
1465
1465
|
<script>
|
|
@@ -718,7 +718,7 @@ export default CustomPropertyView;
|
|
|
718
718
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
719
719
|
Code coverage generated by
|
|
720
720
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
721
|
-
at 2026-
|
|
721
|
+
at 2026-04-16T17:02:24.586Z
|
|
722
722
|
</div>
|
|
723
723
|
<script src="../../prettify.js"></script>
|
|
724
724
|
<script>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
162
162
|
Code coverage generated by
|
|
163
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
164
|
-
at 2026-
|
|
164
|
+
at 2026-04-16T17:02:24.586Z
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -82,7 +82,7 @@ export { default as CustomPropertyForm } from './CustomPropertyForm';
|
|
|
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 2026-
|
|
85
|
+
at 2026-04-16T17:02:24.586Z
|
|
86
86
|
</div>
|
|
87
87
|
<script src="../../prettify.js"></script>
|
|
88
88
|
<script>
|
|
@@ -193,7 +193,7 @@ export default CustomPropertiesEdit;
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at 2026-
|
|
196
|
+
at 2026-04-16T17:02:24.586Z
|
|
197
197
|
</div>
|
|
198
198
|
<script src="../../prettify.js"></script>
|
|
199
199
|
<script>
|
|
@@ -334,7 +334,7 @@ export default CustomPropertiesEditCtx;
|
|
|
334
334
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
335
335
|
Code coverage generated by
|
|
336
336
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
337
|
-
at 2026-
|
|
337
|
+
at 2026-04-16T17:02:24.586Z
|
|
338
338
|
</div>
|
|
339
339
|
<script src="../../prettify.js"></script>
|
|
340
340
|
<script>
|