@k-int/stripes-kint-components 5.1.1 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/es/index.js +2 -2
- package/es/lib/ActionList/ActionList.js +2 -2
- package/es/lib/ActionList/ActionListFieldArray.js +31 -34
- package/es/lib/ComboButton/ComboButton.js +5 -6
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +4 -7
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +29 -32
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +58 -58
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +32 -33
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +3 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +8 -10
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +22 -28
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +2 -2
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
- package/es/lib/CustomProperties/Edit/testResources.js +11 -12
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +6 -11
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +20 -28
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +6 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +8 -8
- package/es/lib/CustomProperties/Filter/testResources.js +1 -2
- package/es/lib/CustomProperties/Filter/useOperators.js +2 -2
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -2
- package/es/lib/CustomProperties/Filter/useValueProps.js +2 -2
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +18 -26
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +9 -13
- package/es/lib/CycleButton/CycleButton.js +1 -1
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +23 -34
- package/es/lib/EditableRefdataList/EditableRefdataList.js +28 -35
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +1 -1
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +5 -5
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +10 -12
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +6 -6
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +4 -7
- package/es/lib/IconSelect/IconSelect.js +7 -11
- package/es/lib/NoResultsMessage/NoResultsMessage.js +4 -4
- package/es/lib/QueryTypedown/QueryTypedown.js +2 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +3 -3
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +21 -28
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +5 -6
- package/es/lib/RichSelect/RichSelect.js +14 -19
- package/es/lib/RichSelect/useSelectedOption.js +1 -2
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +14 -17
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +4 -6
- package/es/lib/SASQRoute/SASQRoute.js +2 -2
- package/es/lib/SASQViewComponent/SASQViewComponent.js +5 -9
- package/es/lib/SettingPage/SettingPage.js +2 -2
- package/es/lib/SettingPage/SettingPagePane.js +2 -2
- package/es/lib/SettingsFormContainer/SettingsFormContainer.js +2 -2
- package/es/lib/Typedown/Typedown.js +21 -28
- package/es/lib/hooks/typedownHooks/useTypedown.js +2 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
- package/es/lib/hooks/useActiveElement.js +1 -1
- package/es/lib/hooks/useCustomProperties.js +2 -2
- package/es/lib/hooks/useHelperApp.js +8 -8
- package/es/lib/hooks/useIntlKeyStore.js +4 -7
- package/es/lib/hooks/useKintIntl.js +5 -11
- package/es/lib/hooks/useKiwtSASQuery.js +1 -1
- package/es/lib/hooks/useLocalStorageState.js +2 -2
- package/es/lib/hooks/useModConfigEntries.js +2 -2
- package/es/lib/hooks/useMutateCustomProperties.js +8 -8
- package/es/lib/hooks/useMutateModConfigEntry.js +2 -2
- package/es/lib/hooks/useMutateRefdataCategory.js +4 -4
- package/es/lib/hooks/useMutateRefdataValue.js +6 -6
- package/es/lib/hooks/useQIndex.js +7 -7
- package/es/lib/hooks/useRefdata.js +3 -3
- package/es/lib/hooks/useTemplates.js +4 -4
- package/es/lib/settingsHooks/useAppSettings.js +7 -11
- package/es/lib/settingsHooks/useSettingSection.js +2 -2
- package/es/lib/settingsHooks/useSettings.js +3 -3
- package/es/lib/utils/buildUrl.js +2 -3
- package/es/lib/utils/filterParsers/deparseKiwtQueryFilters.js +6 -6
- package/es/lib/utils/filterParsers/index.js +2 -2
- package/es/lib/utils/filterParsers/parseKiwtQueryFilters.js +2 -2
- package/es/lib/utils/filterParsers/parseKiwtQueryGroups.js +4 -5
- package/es/lib/utils/filterParsers/parseKiwtQueryString.js +1 -1
- package/es/lib/utils/generateKiwtQueryParams.js +28 -37
- package/es/lib/utils/groupCustomPropertiesByCtx.js +2 -3
- package/es/lib/utils/matchString.js +1 -1
- package/es/lib/utils/parseErrorResponse.js +2 -3
- package/es/lib/utils/selectorSafe.js +2 -3
- package/es/lib/utils/sortByLabel.js +2 -3
- package/es/lib/validators/validators.js +3 -3
- package/junit.xml +162 -162
- package/package.json +2 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ComboButton/ComboButton.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ComboButton/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ComboButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/{SettingsActionList/SettingsActionList.js.html → CustomProperties/Config/testResources.js.html} +313 -256
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +15 -6
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +10 -7
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +10 -10
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/comparators.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/index.html +10 -10
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/deparseKiwtQueryFilters.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryFilters.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryGroups.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/validators/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov.info +231 -230
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +3 -0
- package/src/lib/CustomProperties/Edit/CustomPropertyField.js +4 -3
- package/yarn-error.log +129 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionTrigger.js.html +0 -418
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/EditSettingValue.js.html +0 -514
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/RenderSettingValue.js.html +0 -358
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.js.html +0 -88
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## 5.1.3 2023-10-18
|
|
2
|
+
* ERM-3055 For custom properties with a pick list, "Not set" should always appear first in the list
|
|
3
|
+
|
|
4
|
+
## 5.1.2 2023-10-06
|
|
5
|
+
* CustomPropertyEdit
|
|
6
|
+
* Added sorting by label to refdata type custom property options
|
|
7
|
+
|
|
1
8
|
## 5.1.1 2023-10-03
|
|
2
9
|
* comparators - added !~ (Does not contain) comparator to constants array
|
|
3
10
|
|
package/es/index.js
CHANGED
|
@@ -384,6 +384,6 @@ var _FormattedKintMessage = _interopRequireDefault(require("./lib/FormattedKintM
|
|
|
384
384
|
var _ResponsiveButtonGroup = _interopRequireDefault(require("./lib/ResponsiveButtonGroup"));
|
|
385
385
|
var _SettingsFormContainer = _interopRequireDefault(require("./lib/SettingsFormContainer"));
|
|
386
386
|
var _ComboButton = _interopRequireDefault(require("./lib/ComboButton"));
|
|
387
|
-
function _getRequireWildcardCache(
|
|
388
|
-
function _interopRequireWildcard(
|
|
387
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
388
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
389
389
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -12,8 +12,8 @@ var _finalFormArrays = _interopRequireDefault(require("final-form-arrays"));
|
|
|
12
12
|
var _ActionListFieldArray = _interopRequireDefault(require("./ActionListFieldArray"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
const propTypes = {
|
|
18
18
|
actionAssigner: _propTypes.default.func,
|
|
19
19
|
columnMapping: _propTypes.default.object,
|
|
@@ -14,8 +14,8 @@ var _hooks = require("../hooks");
|
|
|
14
14
|
var _ActionListFieldArray = _interopRequireDefault(require("../../../styles/ActionListFieldArray.css"));
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
function _getRequireWildcardCache(
|
|
18
|
-
function _interopRequireWildcard(
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
const EDITING_ACTIONS_WIDTH = 25;
|
|
20
20
|
const NON_EDITING_ACTIONS_WIDTH = 20;
|
|
21
21
|
const TOTAL_WIDTH = 100;
|
|
@@ -43,7 +43,6 @@ const propTypes = {
|
|
|
43
43
|
|
|
44
44
|
// This needs to be outside of the main component for forwardRef to work properly it seems.
|
|
45
45
|
const ActionTrigger = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
46
|
-
var _action$label;
|
|
47
46
|
let {
|
|
48
47
|
action,
|
|
49
48
|
...actionTriggerProps
|
|
@@ -59,7 +58,7 @@ const ActionTrigger = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
59
58
|
ref: ref,
|
|
60
59
|
marginBottom0: true,
|
|
61
60
|
...actionTriggerProps,
|
|
62
|
-
children:
|
|
61
|
+
children: action.label ?? action.name
|
|
63
62
|
});
|
|
64
63
|
});
|
|
65
64
|
ActionTrigger.propTypes = {
|
|
@@ -117,7 +116,6 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
117
116
|
}
|
|
118
117
|
};
|
|
119
118
|
const handleSave = index => {
|
|
120
|
-
var _actionAssigner;
|
|
121
119
|
const {
|
|
122
120
|
actionListActions: _a,
|
|
123
121
|
fieldName: _fn,
|
|
@@ -126,7 +124,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
126
124
|
} = fields.value[index];
|
|
127
125
|
|
|
128
126
|
// Find "edit" entry in actionAssigner
|
|
129
|
-
const editCallback =
|
|
127
|
+
const editCallback = actionAssigner(rowData)?.find(act => act.name === 'edit')?.callback;
|
|
130
128
|
if (editCallback) {
|
|
131
129
|
editCallback(rowData);
|
|
132
130
|
}
|
|
@@ -158,14 +156,14 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
158
156
|
const widthsObject = {};
|
|
159
157
|
visibleFields.forEach(f => {
|
|
160
158
|
if (f !== 'actionListActions') {
|
|
161
|
-
widthsObject[f] =
|
|
159
|
+
widthsObject[f] = `${staticWidth}%`;
|
|
162
160
|
}
|
|
163
161
|
});
|
|
164
|
-
widthsObject.actionListActions = editing ?
|
|
162
|
+
widthsObject.actionListActions = editing ? `${EDITING_ACTIONS_WIDTH}%` : `${NON_EDITING_ACTIONS_WIDTH}%`;
|
|
165
163
|
return widthsObject;
|
|
166
164
|
};
|
|
167
165
|
const renderActionButtons = data => {
|
|
168
|
-
const fieldName =
|
|
166
|
+
const fieldName = `contentData[${data.rowIndex}]`;
|
|
169
167
|
const {
|
|
170
168
|
actionListActions: actions,
|
|
171
169
|
...rest
|
|
@@ -173,7 +171,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
173
171
|
if (data.id === editing || !data.id && editing === 'NEW_ROW') {
|
|
174
172
|
// Render the save/cancel buttons
|
|
175
173
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
176
|
-
id:
|
|
174
|
+
id: `action-button-parent-${data.rowIndex + 1}`,
|
|
177
175
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
178
176
|
buttonStyle: "primary",
|
|
179
177
|
disabled: hasValidationErrors || submitting || pristine,
|
|
@@ -193,9 +191,9 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
193
191
|
type: "submit",
|
|
194
192
|
children: kintIntl.formatKintMessage({
|
|
195
193
|
id: 'save',
|
|
196
|
-
overrideValue: labelOverrides
|
|
194
|
+
overrideValue: labelOverrides?.save
|
|
197
195
|
})
|
|
198
|
-
},
|
|
196
|
+
}, `save[${data.rowIndex}]`), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
199
197
|
"data-type-button": "cancel",
|
|
200
198
|
marginBottom0: true,
|
|
201
199
|
onClick: () => {
|
|
@@ -209,14 +207,14 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
209
207
|
},
|
|
210
208
|
children: kintIntl.formatKintMessage({
|
|
211
209
|
id: 'cancel',
|
|
212
|
-
overrideValue: labelOverrides
|
|
210
|
+
overrideValue: labelOverrides?.cancel
|
|
213
211
|
})
|
|
214
|
-
},
|
|
212
|
+
}, `cancel[${data.rowIndex}]`)]
|
|
215
213
|
});
|
|
216
214
|
}
|
|
217
215
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
218
|
-
id:
|
|
219
|
-
children: actions
|
|
216
|
+
id: `action-button-parent-${data.rowIndex + 1}`,
|
|
217
|
+
children: actions?.map(action => {
|
|
220
218
|
let actionFunction;
|
|
221
219
|
if (action.callback) {
|
|
222
220
|
actionFunction = () => action.callback(rest);
|
|
@@ -226,25 +224,25 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
226
224
|
if (action.name === 'edit') {
|
|
227
225
|
actionFunction = () => toggleEditing(data.id);
|
|
228
226
|
}
|
|
229
|
-
let ariaLabel =
|
|
230
|
-
if (action
|
|
227
|
+
let ariaLabel = `action-${action.name}[${data.rowIndex}]`;
|
|
228
|
+
if (action?.ariaLabel) {
|
|
231
229
|
if (typeof action.ariaLabel === 'function') {
|
|
232
230
|
ariaLabel = action.ariaLabel(data);
|
|
233
231
|
} else if (typeof action.ariaLabel === 'string') {
|
|
234
232
|
ariaLabel = action.ariaLabel;
|
|
235
233
|
} else {
|
|
236
|
-
throw new Error(
|
|
234
|
+
throw new Error(`Provided ariaLabel for action "${action.name}" must be a function or a string.`);
|
|
237
235
|
}
|
|
238
236
|
}
|
|
239
237
|
let tooltip;
|
|
240
238
|
let tooltipSub;
|
|
241
|
-
if (action
|
|
239
|
+
if (action?.tooltip) {
|
|
242
240
|
if (typeof action.tooltip === 'function') {
|
|
243
241
|
tooltip = action.tooltip(data);
|
|
244
242
|
} else {
|
|
245
243
|
tooltip = action.tooltip;
|
|
246
244
|
}
|
|
247
|
-
if (action
|
|
245
|
+
if (action?.tooltipSub) {
|
|
248
246
|
if (typeof action.tooltipSub === 'function') {
|
|
249
247
|
tooltipSub = action.tooltipSub(data);
|
|
250
248
|
} else {
|
|
@@ -256,7 +254,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
256
254
|
// If a tooltip is declared, render that around the actionButton
|
|
257
255
|
if (tooltip) {
|
|
258
256
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
|
|
259
|
-
id:
|
|
257
|
+
id: `action-${action.name}[${data.rowIndex}]-tooltip`,
|
|
260
258
|
sub: tooltipSub,
|
|
261
259
|
text: tooltip,
|
|
262
260
|
children: _ref3 => {
|
|
@@ -278,7 +276,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
278
276
|
return null;
|
|
279
277
|
},
|
|
280
278
|
to: action.to
|
|
281
|
-
},
|
|
279
|
+
}, `action-${action.name}[${data.rowIndex}]`);
|
|
282
280
|
}
|
|
283
281
|
});
|
|
284
282
|
}
|
|
@@ -296,7 +294,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
296
294
|
return null;
|
|
297
295
|
},
|
|
298
296
|
to: action.to
|
|
299
|
-
},
|
|
297
|
+
}, `action-${action.name}[${data.rowIndex}]`);
|
|
300
298
|
})
|
|
301
299
|
});
|
|
302
300
|
};
|
|
@@ -328,17 +326,16 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
328
326
|
const editingRow = cd.id === editing || !cd.id;
|
|
329
327
|
|
|
330
328
|
// Default to the passed formatter values
|
|
331
|
-
let returnValue = formatter
|
|
329
|
+
let returnValue = formatter?.[key] ? formatter[key](cd) : cd[key];
|
|
332
330
|
|
|
333
331
|
// If editing, replace values with fields
|
|
334
332
|
if (editingRow) {
|
|
335
|
-
var _editableFields$key, _creatableFields$key;
|
|
336
333
|
/*
|
|
337
334
|
Check if the property is a visible field.
|
|
338
335
|
If it is not then we don't allow editing in this component.
|
|
339
336
|
*/
|
|
340
|
-
const editFunction =
|
|
341
|
-
const createFunction =
|
|
337
|
+
const editFunction = editableFields[key] ?? (() => true);
|
|
338
|
+
const createFunction = creatableFields[key] ?? (() => true);
|
|
342
339
|
/*
|
|
343
340
|
Next check if this is a new row, if so we should run the createableField function with the data.
|
|
344
341
|
If it is not a new row, then we run the editableField function with the data,
|
|
@@ -349,19 +346,19 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
349
346
|
if (!cd.id && createFunction(cd) || !!cd.id && editFunction(cd)) {
|
|
350
347
|
const passedObject = {
|
|
351
348
|
allValues: values,
|
|
352
|
-
index: cd
|
|
349
|
+
index: cd?.fieldIndex,
|
|
353
350
|
key,
|
|
354
|
-
name:
|
|
351
|
+
name: `${cd.fieldName}.${key}`,
|
|
355
352
|
rowFieldName: cd.fieldName
|
|
356
353
|
};
|
|
357
|
-
const validateFunction = validateFields
|
|
354
|
+
const validateFunction = validateFields?.[key] ? validateFields?.[key](passedObject) : null;
|
|
358
355
|
returnValue = fieldComponents[key] ? fieldComponents[key](passedObject) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
359
356
|
ariaLabel: key // TODO at the moment the only way to override this is passing in an entire fieldComponent.
|
|
360
357
|
,
|
|
361
358
|
autoFocus: autoFocus,
|
|
362
359
|
component: _components.TextField,
|
|
363
360
|
marginBottom0: true,
|
|
364
|
-
name:
|
|
361
|
+
name: `${cd.fieldName}.${key}`,
|
|
365
362
|
parse: v => v,
|
|
366
363
|
validate: validateFunction
|
|
367
364
|
});
|
|
@@ -386,7 +383,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
386
383
|
onClick: handleClickCreate,
|
|
387
384
|
children: kintIntl.formatKintMessage({
|
|
388
385
|
id: 'new',
|
|
389
|
-
overrideValue: labelOverrides
|
|
386
|
+
overrideValue: labelOverrides?.new
|
|
390
387
|
})
|
|
391
388
|
})]
|
|
392
389
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, {
|
|
@@ -394,7 +391,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
|
|
|
394
391
|
...columnMapping,
|
|
395
392
|
actionListActions: kintIntl.formatKintMessage({
|
|
396
393
|
id: 'actions',
|
|
397
|
-
overrideValue: labelOverrides
|
|
394
|
+
overrideValue: labelOverrides?.actions
|
|
398
395
|
})
|
|
399
396
|
},
|
|
400
397
|
columnWidths: getColumnWidths(),
|
|
@@ -34,7 +34,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
34
34
|
const onToggle = (0, _react.useCallback)(() => setOpen(!open), [open, setOpen]);
|
|
35
35
|
|
|
36
36
|
// FIXME a lot of this is shared with ResponsiveButtonGroup
|
|
37
|
-
const styledDropdownButtons = (0, _react.useMemo)(() => dropdownButtons
|
|
37
|
+
const styledDropdownButtons = (0, _react.useMemo)(() => dropdownButtons?.map(button => {
|
|
38
38
|
return /*#__PURE__*/(0, _react.cloneElement)(button, {
|
|
39
39
|
buttonStyle: 'dropdownItem'
|
|
40
40
|
});
|
|
@@ -45,7 +45,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
45
45
|
children: [...styledDropdownButtons]
|
|
46
46
|
}), [styledDropdownButtons]);
|
|
47
47
|
const renderTrigger = (0, _react.useCallback)(_ref2 => {
|
|
48
|
-
var _buttonProps$buttonSt;
|
|
49
48
|
let {
|
|
50
49
|
onToggle: toggleFunc,
|
|
51
50
|
triggerRef,
|
|
@@ -58,11 +57,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
58
57
|
ref: triggerRef,
|
|
59
58
|
"aria-label": "menu",
|
|
60
59
|
buttonClass: (0, _classnames.default)(_ResponsiveButtonGroup.default.width100, _ResponsiveButtonGroup.default.dropdownButtonClass, {
|
|
61
|
-
[
|
|
60
|
+
[`${_ResponsiveButtonGroup.default.marginBottom}`]: !marginBottom0
|
|
62
61
|
}, {
|
|
63
|
-
[
|
|
62
|
+
[`${_ResponsiveButtonGroup.default.marginBottom0}`]: marginBottom0
|
|
64
63
|
}),
|
|
65
|
-
buttonStyle:
|
|
64
|
+
buttonStyle: buttonProps?.buttonStyle ?? 'default',
|
|
66
65
|
onClick: toggleFunc,
|
|
67
66
|
onKeyDown: keyHandler,
|
|
68
67
|
type: "button",
|
|
@@ -74,7 +73,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
74
73
|
iconPosition: "end"
|
|
75
74
|
})
|
|
76
75
|
});
|
|
77
|
-
}, [buttonProps
|
|
76
|
+
}, [buttonProps?.buttonStyle, triggerProps, marginBottom0]);
|
|
78
77
|
let comboTrigger;
|
|
79
78
|
if (dropdownButtons.length > 0) {
|
|
80
79
|
comboTrigger = /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Dropdown, {
|
|
@@ -133,7 +133,7 @@ const CustomPropertiesLookup = _ref => {
|
|
|
133
133
|
contentData: custprops,
|
|
134
134
|
formatter: {
|
|
135
135
|
primary: data => {
|
|
136
|
-
if (data
|
|
136
|
+
if (data?.primary) {
|
|
137
137
|
return kintIntl.formatKintMessage({
|
|
138
138
|
id: 'yes',
|
|
139
139
|
overrideValue: labelOverrides.yes
|
|
@@ -146,13 +146,10 @@ const CustomPropertiesLookup = _ref => {
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
type: data => kintIntl.formatKintMessage({
|
|
149
|
-
id:
|
|
150
|
-
overrideValue: labelOverrides
|
|
149
|
+
id: `customProperties.type.${data?.type}`,
|
|
150
|
+
overrideValue: labelOverrides?.[data?.type]
|
|
151
151
|
}),
|
|
152
|
-
category: data =>
|
|
153
|
-
var _data$category;
|
|
154
|
-
return data === null || data === void 0 || (_data$category = data.category) === null || _data$category === void 0 ? void 0 : _data$category.desc;
|
|
155
|
-
}
|
|
152
|
+
category: data => data?.category?.desc
|
|
156
153
|
},
|
|
157
154
|
onRowClick: onSelectCustomProperty,
|
|
158
155
|
visibleColumns: ['label', 'primary', 'ctx', 'weight', 'type', 'category'],
|
|
@@ -24,7 +24,6 @@ const VIEWING = 'view';
|
|
|
24
24
|
|
|
25
25
|
// A default option for setting up panes manually
|
|
26
26
|
const CustomPropertiesSettings = _ref => {
|
|
27
|
-
var _customProperty$label, _customProperty$label2, _customProperty$categ, _customProperty$label3, _customProperty$label4;
|
|
28
27
|
let {
|
|
29
28
|
afterQueryCalls,
|
|
30
29
|
catchQueryCalls,
|
|
@@ -69,7 +68,7 @@ const CustomPropertiesSettings = _ref => {
|
|
|
69
68
|
// empty string is all custoprop contexts
|
|
70
69
|
label: kintIntl.formatKintMessage({
|
|
71
70
|
id: 'customProperties.config.all',
|
|
72
|
-
overrideValue: labelOverrides
|
|
71
|
+
overrideValue: labelOverrides?.all
|
|
73
72
|
})
|
|
74
73
|
}];
|
|
75
74
|
}
|
|
@@ -83,7 +82,7 @@ const CustomPropertiesSettings = _ref => {
|
|
|
83
82
|
setMode(VIEWING);
|
|
84
83
|
queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
|
|
85
84
|
setCustomProperty(res);
|
|
86
|
-
if (afterQueryCalls
|
|
85
|
+
if (afterQueryCalls?.put) {
|
|
87
86
|
afterQueryCalls.put(res);
|
|
88
87
|
}
|
|
89
88
|
},
|
|
@@ -91,7 +90,7 @@ const CustomPropertiesSettings = _ref => {
|
|
|
91
90
|
setMode(VIEWING);
|
|
92
91
|
queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
|
|
93
92
|
setCustomProperty(res);
|
|
94
|
-
if (afterQueryCalls
|
|
93
|
+
if (afterQueryCalls?.post) {
|
|
95
94
|
afterQueryCalls.post(res);
|
|
96
95
|
}
|
|
97
96
|
},
|
|
@@ -99,7 +98,7 @@ const CustomPropertiesSettings = _ref => {
|
|
|
99
98
|
setMode(VIEWING);
|
|
100
99
|
queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
|
|
101
100
|
setCustomProperty();
|
|
102
|
-
if (afterQueryCalls
|
|
101
|
+
if (afterQueryCalls?.delete) {
|
|
103
102
|
afterQueryCalls.delete(res);
|
|
104
103
|
}
|
|
105
104
|
}
|
|
@@ -112,10 +111,10 @@ const CustomPropertiesSettings = _ref => {
|
|
|
112
111
|
callout.sendCallout({
|
|
113
112
|
message: kintIntl.formatKintMessage({
|
|
114
113
|
id: 'customProperties.config.delete.errorMessage',
|
|
115
|
-
overrideValue: labelOverrides
|
|
114
|
+
overrideValue: labelOverrides?.deleteError
|
|
116
115
|
}, {
|
|
117
|
-
error: errorResp
|
|
118
|
-
label: customProperty
|
|
116
|
+
error: errorResp?.message,
|
|
117
|
+
label: customProperty?.label
|
|
119
118
|
}),
|
|
120
119
|
type: 'error'
|
|
121
120
|
});
|
|
@@ -124,22 +123,20 @@ const CustomPropertiesSettings = _ref => {
|
|
|
124
123
|
},
|
|
125
124
|
|
|
126
125
|
endpoint: customPropertiesEndpoint,
|
|
127
|
-
id: customProperty
|
|
126
|
+
id: customProperty?.id
|
|
128
127
|
});
|
|
129
128
|
const handeContextSubmit = submitData => {
|
|
130
|
-
var _submitData$ctx$0$val, _submitData$ctx;
|
|
131
129
|
return {
|
|
132
130
|
...submitData,
|
|
133
|
-
ctx:
|
|
131
|
+
ctx: submitData?.ctx?.[0]?.value ?? ''
|
|
134
132
|
};
|
|
135
133
|
};
|
|
136
134
|
|
|
137
135
|
// When POSTing a custom property, the backend expects a shorthand "Integer" or "LocalDate"
|
|
138
136
|
// When PUTing a custom property, the backend needs the full class name
|
|
139
137
|
const handleType = submitData => {
|
|
140
|
-
var _typeRegex$exec;
|
|
141
138
|
const typeRegex = /(com\.k_int\.web\.toolkit\.custprops\.types\.CustomProperty)(.*)/g;
|
|
142
|
-
const typeMatch =
|
|
139
|
+
const typeMatch = typeRegex.exec(submitData?.type) ?? [];
|
|
143
140
|
return {
|
|
144
141
|
...submitData,
|
|
145
142
|
type: typeMatch[2]
|
|
@@ -156,7 +153,7 @@ const CustomPropertiesSettings = _ref => {
|
|
|
156
153
|
,
|
|
157
154
|
children: kintIntl.formatKintMessage({
|
|
158
155
|
id: 'new',
|
|
159
|
-
overrideValue: labelOverrides
|
|
156
|
+
overrideValue: labelOverrides?.new
|
|
160
157
|
})
|
|
161
158
|
}),
|
|
162
159
|
paneTitle: kintIntl.formatKintMessage({
|
|
@@ -186,10 +183,10 @@ const CustomPropertiesSettings = _ref => {
|
|
|
186
183
|
icon: "edit",
|
|
187
184
|
children: kintIntl.formatKintMessage({
|
|
188
185
|
id: 'edit',
|
|
189
|
-
overrideValue: labelOverrides
|
|
186
|
+
overrideValue: labelOverrides?.edit
|
|
190
187
|
})
|
|
191
188
|
})
|
|
192
|
-
},
|
|
189
|
+
}, `${customProperty.name}-action-edit`));
|
|
193
190
|
}
|
|
194
191
|
if (deleteCondition) {
|
|
195
192
|
actionsArray.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
@@ -203,12 +200,12 @@ const CustomPropertiesSettings = _ref => {
|
|
|
203
200
|
icon: "trash",
|
|
204
201
|
children: kintIntl.formatKintMessage({
|
|
205
202
|
id: 'delete',
|
|
206
|
-
overrideValue: labelOverrides
|
|
203
|
+
overrideValue: labelOverrides?.delete
|
|
207
204
|
})
|
|
208
205
|
})
|
|
209
|
-
},
|
|
206
|
+
}, `${customProperty.name}-action-delete`));
|
|
210
207
|
}
|
|
211
|
-
return actionsArray
|
|
208
|
+
return actionsArray?.length ? actionsArray : null;
|
|
212
209
|
},
|
|
213
210
|
defaultWidth: "fill",
|
|
214
211
|
dismissible: true,
|
|
@@ -216,10 +213,10 @@ const CustomPropertiesSettings = _ref => {
|
|
|
216
213
|
onClose: () => setCustomProperty(),
|
|
217
214
|
paneTitle: kintIntl.formatKintMessage({
|
|
218
215
|
id: 'customProperties.config.viewPaneTitle',
|
|
219
|
-
overrideValue: labelOverrides
|
|
220
|
-
fallbackMessage:
|
|
216
|
+
overrideValue: labelOverrides?.viewPaneTitle,
|
|
217
|
+
fallbackMessage: customProperty?.label ?? customProperty?.name
|
|
221
218
|
}, {
|
|
222
|
-
name:
|
|
219
|
+
name: customProperty?.label ?? customProperty?.name
|
|
223
220
|
}),
|
|
224
221
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyView.default, {
|
|
225
222
|
customProperty: customProperty,
|
|
@@ -236,22 +233,22 @@ const CustomPropertiesSettings = _ref => {
|
|
|
236
233
|
defaultInternal: true
|
|
237
234
|
} : {
|
|
238
235
|
...customProperty,
|
|
239
|
-
ctx: customProperty
|
|
236
|
+
ctx: customProperty?.ctx ? [{
|
|
240
237
|
value: customProperty.ctx,
|
|
241
238
|
label: customProperty.ctx
|
|
242
239
|
}] : null,
|
|
243
|
-
category: customProperty
|
|
240
|
+
category: customProperty?.category ? customProperty?.category?.id : null
|
|
244
241
|
},
|
|
245
242
|
modalProps: {
|
|
246
243
|
dismissible: true,
|
|
247
244
|
label: mode === CREATING ? kintIntl.formatKintMessage({
|
|
248
245
|
id: 'customProperties.config.newModal',
|
|
249
|
-
overrideValue: labelOverrides
|
|
246
|
+
overrideValue: labelOverrides?.newModalTitle
|
|
250
247
|
}) : kintIntl.formatKintMessage({
|
|
251
248
|
id: 'customProperties.config.editModal',
|
|
252
|
-
overrideValue: labelOverrides
|
|
249
|
+
overrideValue: labelOverrides?.editModalTitle
|
|
253
250
|
}, {
|
|
254
|
-
name:
|
|
251
|
+
name: customProperty?.label ?? customProperty?.name
|
|
255
252
|
}),
|
|
256
253
|
onClose: () => setMode(VIEWING),
|
|
257
254
|
open: mode === CREATING || mode === EDITING
|
|
@@ -272,22 +269,22 @@ const CustomPropertiesSettings = _ref => {
|
|
|
272
269
|
buttonStyle: "danger",
|
|
273
270
|
confirmLabel: kintIntl.formatKintMessage({
|
|
274
271
|
id: 'delete',
|
|
275
|
-
overrideValue: labelOverrides
|
|
272
|
+
overrideValue: labelOverrides?.delete
|
|
276
273
|
}),
|
|
277
274
|
heading: kintIntl.formatKintMessage({
|
|
278
275
|
id: 'customProperties.config.delete.confirmHeading',
|
|
279
|
-
overrideValue: labelOverrides
|
|
276
|
+
overrideValue: labelOverrides?.confirmHeading
|
|
280
277
|
}),
|
|
281
278
|
id: "delete-custprop-confirmation",
|
|
282
279
|
message: kintIntl.formatKintMessage({
|
|
283
280
|
id: 'customProperties.config.delete.confirmMessage',
|
|
284
|
-
overrideValue: labelOverrides
|
|
281
|
+
overrideValue: labelOverrides?.confirmMessage
|
|
285
282
|
}, {
|
|
286
|
-
name:
|
|
283
|
+
name: customProperty?.label ?? customProperty?.name
|
|
287
284
|
}),
|
|
288
285
|
onCancel: () => setDeleteModal(false),
|
|
289
286
|
onConfirm: () => {
|
|
290
|
-
deleteCustProp(customProperty
|
|
287
|
+
deleteCustProp(customProperty?.id);
|
|
291
288
|
setCustomProperty();
|
|
292
289
|
setDeleteModal(false);
|
|
293
290
|
},
|