@k-int/stripes-kint-components 4.7.1 → 4.7.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 +8 -1
- package/README.md +1 -1
- package/es/index.js +2 -2
- package/es/lib/ActionList/ActionList.js +3 -4
- package/es/lib/ActionList/ActionListFieldArray.js +32 -36
- package/es/lib/ComboButton/ComboButton.js +6 -8
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -9
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +30 -34
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +59 -60
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +33 -35
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +2 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +4 -5
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +6 -12
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +21 -29
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +3 -4
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
- package/es/lib/CustomProperties/Edit/testResources.js +14 -17
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +7 -13
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +21 -30
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +7 -8
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -2
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -10
- package/es/lib/CustomProperties/Filter/testResources.js +5 -9
- package/es/lib/CustomProperties/Filter/useOperators.js +3 -4
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -4
- package/es/lib/CustomProperties/Filter/useValueProps.js +3 -4
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +2 -3
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +19 -28
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -15
- package/es/lib/CustomProperties/View/testResources.js +5 -9
- package/es/lib/CycleButton/CycleButton.js +2 -3
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +24 -36
- package/es/lib/EditableRefdataList/EditableRefdataList.js +29 -37
- package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -2
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -3
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +6 -7
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +11 -14
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +7 -8
- package/es/lib/FormModal/FormModal.js +1 -2
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +5 -9
- package/es/lib/IconSelect/IconSelect.js +8 -13
- package/es/lib/NoResultsMessage/NoResultsMessage.js +5 -6
- package/es/lib/QueryTypedown/QueryTypedown.js +3 -4
- package/es/lib/RefdataButtons/RefdataButtons.js +4 -5
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +22 -30
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +6 -8
- package/es/lib/RichSelect/RichSelect.js +15 -21
- package/es/lib/RichSelect/useSelectedOption.js +2 -4
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +15 -19
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +5 -8
- package/es/lib/SASQRoute/SASQRoute.js +3 -4
- package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -11
- package/es/lib/SearchField/SearchField.js +1 -2
- package/es/lib/SettingPage/SettingPage.js +3 -4
- package/es/lib/SettingPage/SettingPagePane.js +3 -4
- package/es/lib/SettingsFormContainer/SettingsFormContainer.js +3 -4
- package/es/lib/Typedown/Typedown.js +22 -30
- package/es/lib/constants/customProperties.js +11 -22
- package/es/lib/constants/endpoints.js +1 -2
- package/es/lib/constants/eventCodes.js +3 -6
- package/es/lib/contexts/SettingsContext.js +1 -2
- package/es/lib/hooks/typedownHooks/useTypedown.js +3 -4
- package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +3 -4
- package/es/lib/hooks/useActiveElement.js +2 -3
- package/es/lib/hooks/useCustomProperties.js +3 -4
- package/es/lib/hooks/useHelperApp.js +9 -10
- package/es/lib/hooks/useIntlKey.js +1 -2
- package/es/lib/hooks/useIntlKeyStore.js +5 -9
- package/es/lib/hooks/useInvalidateRefdata.js +1 -2
- package/es/lib/hooks/useKintIntl.js +6 -13
- package/es/lib/hooks/useKiwtFieldArray.js +1 -2
- package/es/lib/hooks/useKiwtSASQuery.js +4 -5
- package/es/lib/hooks/useLocalStorageState.js +3 -4
- package/es/lib/hooks/useModConfigEntries.js +3 -4
- package/es/lib/hooks/useMutateCustomProperties.js +9 -10
- package/es/lib/hooks/useMutateModConfigEntry.js +3 -4
- package/es/lib/hooks/useMutateRefdataCategory.js +5 -6
- package/es/lib/hooks/useMutateRefdataValue.js +7 -8
- package/es/lib/hooks/useQIndex.js +8 -9
- package/es/lib/hooks/useRefdata.js +4 -5
- package/es/lib/hooks/useSASQQueryMeta.js +1 -2
- package/es/lib/hooks/useTemplates.js +5 -6
- package/es/lib/settingsHooks/useAppSettings.js +8 -13
- package/es/lib/settingsHooks/useSettingSection.js +3 -4
- package/es/lib/settingsHooks/useSettings.js +4 -5
- package/es/lib/utils/buildUrl.js +1 -1
- package/es/lib/utils/generateKiwtQuery.js +1 -2
- package/es/lib/utils/generateKiwtQueryParams.js +28 -38
- package/es/lib/utils/groupCustomPropertiesByCtx.js +3 -5
- package/es/lib/utils/matchString.js +2 -3
- package/es/lib/utils/modConfigEntriesQueryKey.js +1 -2
- package/es/lib/utils/parseErrorResponse.js +3 -5
- package/es/lib/utils/parseKiwtQueryGroups.js +5 -7
- package/es/lib/utils/parseModConfigEntry.js +1 -2
- package/es/lib/utils/refdataOptions.js +2 -3
- package/es/lib/utils/refdataQueryKey.js +1 -2
- package/es/lib/utils/selectorSafe.js +4 -6
- package/es/lib/utils/sortByLabel.js +3 -5
- package/es/lib/utils/toCamelCase.js +1 -2
- package/es/lib/utils/typedownQueryKey.js +1 -2
- package/es/lib/validators/validators.js +3 -3
- package/package.json +12 -2
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
- package/junit.xml +0 -293
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -373
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1465
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1240
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -751
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -853
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -280
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -259
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -574
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -205
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -580
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -301
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -220
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +0 -337
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -913
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
- package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
- package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -401
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -142
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -295
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
- package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +0 -226
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +0 -238
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/index.html +0 -611
- package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
- package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +0 -292
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +0 -466
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -356
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -169
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +0 -142
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -361
- package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +0 -130
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -145
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov-report/validators/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov.info +0 -5223
|
@@ -14,8 +14,8 @@ var _validators = require("../validators");
|
|
|
14
14
|
var _utils = require("../utils");
|
|
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 propTypes = {
|
|
20
20
|
afterQueryCalls: _propTypes.default.object,
|
|
21
21
|
allowSpecial: _propTypes.default.bool,
|
|
@@ -33,7 +33,6 @@ const propTypes = {
|
|
|
33
33
|
refdataEndpoint: _propTypes.default.string
|
|
34
34
|
};
|
|
35
35
|
const EditableRefdataList = _ref => {
|
|
36
|
-
var _deleteModal$refdata2;
|
|
37
36
|
let {
|
|
38
37
|
afterQueryCalls,
|
|
39
38
|
allowSpecial = false,
|
|
@@ -88,8 +87,7 @@ const EditableRefdataList = _ref => {
|
|
|
88
87
|
const sortByLabel = (a, b) => a.label.localeCompare(b.label);
|
|
89
88
|
(0, _react.useEffect)(() => {
|
|
90
89
|
if (!isRefdataLoading) {
|
|
91
|
-
|
|
92
|
-
setContentData((_refdata$values$sort = refdata === null || refdata === void 0 ? void 0 : (_refdata$values = refdata.values) === null || _refdata$values === void 0 ? void 0 : _refdata$values.sort(sortByLabel)) !== null && _refdata$values$sort !== void 0 ? _refdata$values$sort : []);
|
|
90
|
+
setContentData(refdata?.values?.sort(sortByLabel) ?? []);
|
|
93
91
|
}
|
|
94
92
|
}, [isRefdataLoading, refdata]);
|
|
95
93
|
|
|
@@ -100,16 +98,14 @@ const EditableRefdataList = _ref => {
|
|
|
100
98
|
} = (0, _hooks.useMutateRefdataValue)({
|
|
101
99
|
afterQueryCalls: {
|
|
102
100
|
delete: json => {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.delete) {
|
|
101
|
+
setContentData(json?.values?.sort(sortByLabel) ?? []);
|
|
102
|
+
if (afterQueryCalls?.delete) {
|
|
106
103
|
afterQueryCalls.delete(json);
|
|
107
104
|
}
|
|
108
105
|
},
|
|
109
106
|
put: json => {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.put) {
|
|
107
|
+
setContentData(json?.values?.sort(sortByLabel) ?? []);
|
|
108
|
+
if (afterQueryCalls?.put) {
|
|
113
109
|
afterQueryCalls.put(json);
|
|
114
110
|
}
|
|
115
111
|
}
|
|
@@ -118,15 +114,14 @@ const EditableRefdataList = _ref => {
|
|
|
118
114
|
// Default delete behaviour is to fire a callout, either with kint-components default message
|
|
119
115
|
// or one provided in labelOverrides, which is passed the error message and refdata in question
|
|
120
116
|
delete: async err => {
|
|
121
|
-
var _deleteModal$refdata;
|
|
122
117
|
const errorResp = await (0, _utils.parseErrorResponse)(err.response);
|
|
123
118
|
callout.sendCallout({
|
|
124
119
|
message: kintIntl.formatKintMessage({
|
|
125
120
|
id: 'refdata.deleteRefdataValue.errorMessage',
|
|
126
|
-
overrideValue: labelOverrides
|
|
121
|
+
overrideValue: labelOverrides?.deleteError
|
|
127
122
|
}, {
|
|
128
|
-
label: deleteModal
|
|
129
|
-
error: errorResp
|
|
123
|
+
label: deleteModal?.refdata?.label,
|
|
124
|
+
error: errorResp?.message
|
|
130
125
|
}),
|
|
131
126
|
type: 'error'
|
|
132
127
|
});
|
|
@@ -135,7 +130,7 @@ const EditableRefdataList = _ref => {
|
|
|
135
130
|
},
|
|
136
131
|
|
|
137
132
|
endpoint: refdataEndpoint,
|
|
138
|
-
id: refdata
|
|
133
|
+
id: refdata?.id,
|
|
139
134
|
queryParams: {
|
|
140
135
|
delete: {
|
|
141
136
|
enabled: !!refdata
|
|
@@ -157,24 +152,24 @@ const EditableRefdataList = _ref => {
|
|
|
157
152
|
name: 'edit',
|
|
158
153
|
label: kintIntl.formatKintMessage({
|
|
159
154
|
id: 'edit',
|
|
160
|
-
overrideValue: labelOverrides
|
|
155
|
+
overrideValue: labelOverrides?.edit
|
|
161
156
|
}),
|
|
162
157
|
icon: 'edit',
|
|
163
158
|
callback: data => editRefdataValue(data),
|
|
164
159
|
ariaLabel: data => kintIntl.formatKintMessage({
|
|
165
160
|
id: 'refdata.editAriaLabel',
|
|
166
|
-
overrideValue: labelOverrides
|
|
161
|
+
overrideValue: labelOverrides?.editAriaLabel
|
|
167
162
|
}, {
|
|
168
|
-
label: data
|
|
163
|
+
label: data?.label
|
|
169
164
|
})
|
|
170
165
|
});
|
|
171
166
|
}
|
|
172
|
-
if (!
|
|
167
|
+
if (!refdata?.internal && deleteCondition) {
|
|
173
168
|
actionArray.push({
|
|
174
169
|
name: 'delete',
|
|
175
170
|
label: kintIntl.formatKintMessage({
|
|
176
171
|
id: 'delete',
|
|
177
|
-
overrideValue: labelOverrides
|
|
172
|
+
overrideValue: labelOverrides?.delete
|
|
178
173
|
}),
|
|
179
174
|
icon: 'trash',
|
|
180
175
|
callback: data => setDeleteModal({
|
|
@@ -183,9 +178,9 @@ const EditableRefdataList = _ref => {
|
|
|
183
178
|
}),
|
|
184
179
|
ariaLabel: data => kintIntl.formatKintMessage({
|
|
185
180
|
id: 'refdata.deleteAriaLabel',
|
|
186
|
-
overrideValue: labelOverrides
|
|
181
|
+
overrideValue: labelOverrides?.deleteAriaLabel
|
|
187
182
|
}, {
|
|
188
|
-
label: data
|
|
183
|
+
label: data?.label
|
|
189
184
|
})
|
|
190
185
|
});
|
|
191
186
|
}
|
|
@@ -197,25 +192,24 @@ const EditableRefdataList = _ref => {
|
|
|
197
192
|
columnMapping: {
|
|
198
193
|
label: kintIntl.formatKintMessage({
|
|
199
194
|
id: 'refdata.label',
|
|
200
|
-
overrideValue: labelOverrides
|
|
195
|
+
overrideValue: labelOverrides?.label
|
|
201
196
|
}),
|
|
202
197
|
value: kintIntl.formatKintMessage({
|
|
203
198
|
id: 'refdata.value',
|
|
204
|
-
overrideValue: labelOverrides
|
|
199
|
+
overrideValue: labelOverrides?.value
|
|
205
200
|
})
|
|
206
201
|
},
|
|
207
202
|
contentData: contentData,
|
|
208
203
|
creatableFields: {
|
|
209
204
|
value: () => false
|
|
210
205
|
},
|
|
211
|
-
createCallback: !createCondition || refdata
|
|
206
|
+
createCallback: !createCondition || refdata?.internal ? null : data => {
|
|
212
207
|
if (allowSpecial) {
|
|
213
208
|
editRefdataValue(data);
|
|
214
209
|
} else {
|
|
215
|
-
var _selectorSafe;
|
|
216
210
|
editRefdataValue({
|
|
217
211
|
...data,
|
|
218
|
-
value: (
|
|
212
|
+
value: (0, _utils.selectorSafe)(data?.label)?.replaceAll('%20', ' ')
|
|
219
213
|
});
|
|
220
214
|
}
|
|
221
215
|
},
|
|
@@ -232,34 +226,32 @@ const EditableRefdataList = _ref => {
|
|
|
232
226
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ConfirmationModal, {
|
|
233
227
|
confirmLabel: kintIntl.formatKintMessage({
|
|
234
228
|
id: 'delete',
|
|
235
|
-
overrideValue: labelOverrides
|
|
229
|
+
overrideValue: labelOverrides?.delete
|
|
236
230
|
}),
|
|
237
231
|
heading: kintIntl.formatKintMessage({
|
|
238
232
|
id: 'refdata.deleteRefdataValue',
|
|
239
|
-
overrideValue: labelOverrides
|
|
233
|
+
overrideValue: labelOverrides?.deleteRefdataValue
|
|
240
234
|
}),
|
|
241
235
|
message: kintIntl.formatKintMessage({
|
|
242
236
|
id: 'refdata.deleteRefdataValue.confirmMessage',
|
|
243
|
-
overrideValue: labelOverrides
|
|
237
|
+
overrideValue: labelOverrides?.deleteRefdataValueMessage
|
|
244
238
|
}, {
|
|
245
|
-
name: deleteModal
|
|
239
|
+
name: deleteModal?.refdata?.label
|
|
246
240
|
}),
|
|
247
241
|
onCancel: () => setDeleteModal({
|
|
248
242
|
visible: false,
|
|
249
243
|
refdata: null
|
|
250
244
|
}),
|
|
251
245
|
onConfirm: () => {
|
|
252
|
-
|
|
253
|
-
deleteRefdataValue(deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata3 = deleteModal.refdata) === null || _deleteModal$refdata3 === void 0 ? void 0 : _deleteModal$refdata3.id);
|
|
246
|
+
deleteRefdataValue(deleteModal?.refdata?.id);
|
|
254
247
|
setDeleteModal({
|
|
255
248
|
visible: false,
|
|
256
249
|
refdata: null
|
|
257
250
|
});
|
|
258
251
|
},
|
|
259
|
-
open: deleteModal
|
|
252
|
+
open: deleteModal?.visible
|
|
260
253
|
})]
|
|
261
254
|
});
|
|
262
255
|
};
|
|
263
256
|
EditableRefdataList.propTypes = propTypes;
|
|
264
|
-
var _default = EditableRefdataList;
|
|
265
|
-
exports.default = _default;
|
|
257
|
+
var _default = exports.default = EditableRefdataList;
|
|
@@ -28,7 +28,7 @@ const EditableSettingsListFieldArray = _ref => {
|
|
|
28
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
29
29
|
allowEdit: allowEdit,
|
|
30
30
|
component: _SettingField.SettingField,
|
|
31
|
-
"data-testid":
|
|
31
|
+
"data-testid": `editableSettingsListFieldArray[${i}]`,
|
|
32
32
|
intlKey: passedIntlKey,
|
|
33
33
|
intlNS: passedIntlNS,
|
|
34
34
|
labelOverrides: labelOverrides,
|
|
@@ -54,5 +54,4 @@ EditableSettingsListFieldArray.propTypes = {
|
|
|
54
54
|
mutators: _propTypes.default.object,
|
|
55
55
|
initialValues: _propTypes.default.object
|
|
56
56
|
};
|
|
57
|
-
var _default = EditableSettingsListFieldArray;
|
|
58
|
-
exports.default = _default;
|
|
57
|
+
var _default = exports.default = EditableSettingsListFieldArray;
|
|
@@ -25,7 +25,7 @@ const EditSettingValue = props => {
|
|
|
25
25
|
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
26
26
|
const fieldLabel = kintIntl.formatKintMessage({
|
|
27
27
|
id: 'settings.valueFor',
|
|
28
|
-
overrideValue: labelOverrides
|
|
28
|
+
overrideValue: labelOverrides?.valueFor
|
|
29
29
|
}, {
|
|
30
30
|
name: setting.key
|
|
31
31
|
});
|
|
@@ -41,14 +41,14 @@ const EditSettingValue = props => {
|
|
|
41
41
|
"aria-label": fieldLabel,
|
|
42
42
|
component: RefdataComponent,
|
|
43
43
|
dataOptions: refdata,
|
|
44
|
-
name:
|
|
44
|
+
name: `${input.name}.value`
|
|
45
45
|
});
|
|
46
46
|
case 'Password':
|
|
47
47
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
48
48
|
"aria-label": fieldLabel,
|
|
49
49
|
autoFocus: true,
|
|
50
50
|
component: _components.TextField,
|
|
51
|
-
name:
|
|
51
|
+
name: `${input.name}.value`,
|
|
52
52
|
parse: v => v // Lets us send an empty string instead of 'undefined'
|
|
53
53
|
,
|
|
54
54
|
type: "password"
|
|
@@ -68,7 +68,7 @@ const EditSettingValue = props => {
|
|
|
68
68
|
"aria-label": fieldLabel,
|
|
69
69
|
component: _components.Select,
|
|
70
70
|
dataOptions: selectTemplateValues,
|
|
71
|
-
name:
|
|
71
|
+
name: `${input.name}.value`,
|
|
72
72
|
parse: v => v
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -78,7 +78,7 @@ const EditSettingValue = props => {
|
|
|
78
78
|
"aria-label": fieldLabel,
|
|
79
79
|
autoFocus: true,
|
|
80
80
|
component: _components.TextField,
|
|
81
|
-
name:
|
|
81
|
+
name: `${input.name}.value`,
|
|
82
82
|
parse: v => v // Lets us send an empty string instead of 'undefined'
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -101,5 +101,4 @@ EditSettingValue.propTypes = {
|
|
|
101
101
|
id: _propTypes.default.string
|
|
102
102
|
}))
|
|
103
103
|
};
|
|
104
|
-
var _default = EditSettingValue;
|
|
105
|
-
exports.default = _default;
|
|
104
|
+
var _default = exports.default = EditSettingValue;
|
|
@@ -20,23 +20,21 @@ const RenderSettingValue = props => {
|
|
|
20
20
|
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
21
21
|
const NoCurrentValue = kintIntl.formatKintMessage({
|
|
22
22
|
id: 'settings.noCurrentValue',
|
|
23
|
-
overrideValue: labelOverrides
|
|
23
|
+
overrideValue: labelOverrides?.noCurrentValue
|
|
24
24
|
});
|
|
25
|
-
const defaultText =
|
|
25
|
+
const defaultText = `[${kintIntl.formatKintMessage({
|
|
26
26
|
id: 'settings.default',
|
|
27
|
-
overrideValue: labelOverrides
|
|
28
|
-
})
|
|
27
|
+
overrideValue: labelOverrides?.default
|
|
28
|
+
})}]`;
|
|
29
29
|
switch (setting.settingType) {
|
|
30
30
|
case 'Refdata':
|
|
31
31
|
{
|
|
32
32
|
if (setting.value) {
|
|
33
|
-
|
|
34
|
-
return (_refdata$filter$0$lab = refdata === null || refdata === void 0 ? void 0 : (_refdata$filter$ = refdata.filter(obj => obj.value === setting.value)[0]) === null || _refdata$filter$ === void 0 ? void 0 : _refdata$filter$.label) !== null && _refdata$filter$0$lab !== void 0 ? _refdata$filter$0$lab : null;
|
|
33
|
+
return refdata?.filter(obj => obj.value === setting.value)[0]?.label ?? null;
|
|
35
34
|
}
|
|
36
35
|
if (setting.defValue) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return "".concat(defaultText, " ").concat(defValue);
|
|
36
|
+
const defValue = refdata?.filter(obj => obj.value === setting.defValue)[0]?.label;
|
|
37
|
+
return `${defaultText} ${defValue}`;
|
|
40
38
|
}
|
|
41
39
|
return NoCurrentValue;
|
|
42
40
|
}
|
|
@@ -46,7 +44,7 @@ const RenderSettingValue = props => {
|
|
|
46
44
|
return '********';
|
|
47
45
|
}
|
|
48
46
|
if (setting.defValue) {
|
|
49
|
-
return
|
|
47
|
+
return `${defaultText} ********`;
|
|
50
48
|
}
|
|
51
49
|
return NoCurrentValue;
|
|
52
50
|
}
|
|
@@ -56,7 +54,7 @@ const RenderSettingValue = props => {
|
|
|
56
54
|
const settingId = setting.value || setting.defValue;
|
|
57
55
|
return obj.id === settingId;
|
|
58
56
|
})[0];
|
|
59
|
-
return
|
|
57
|
+
return templateValue?.name || NoCurrentValue;
|
|
60
58
|
}
|
|
61
59
|
default:
|
|
62
60
|
{
|
|
@@ -64,7 +62,7 @@ const RenderSettingValue = props => {
|
|
|
64
62
|
return setting.value;
|
|
65
63
|
}
|
|
66
64
|
if (setting.defValue) {
|
|
67
|
-
return
|
|
65
|
+
return `${defaultText} ${setting.defValue}`;
|
|
68
66
|
}
|
|
69
67
|
return NoCurrentValue;
|
|
70
68
|
}
|
|
@@ -78,5 +76,4 @@ RenderSettingValue.propTypes = {
|
|
|
78
76
|
refdata: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
79
77
|
templates: _propTypes.default.arrayOf(_propTypes.default.object)
|
|
80
78
|
};
|
|
81
|
-
var _default = RenderSettingValue;
|
|
82
|
-
exports.default = _default;
|
|
79
|
+
var _default = exports.default = RenderSettingValue;
|
|
@@ -15,8 +15,8 @@ var _utils = require("../../utils");
|
|
|
15
15
|
var _renderHelpText = _interopRequireDefault(require("../../../../styles/renderHelpText.css"));
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
18
|
+
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); }
|
|
19
|
+
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; }
|
|
20
20
|
const SettingField = settingFieldProps => {
|
|
21
21
|
const {
|
|
22
22
|
allowEdit = true,
|
|
@@ -42,14 +42,14 @@ const SettingField = settingFieldProps => {
|
|
|
42
42
|
endpoint: refdataEndpoint,
|
|
43
43
|
desc: currentSetting.vocab,
|
|
44
44
|
queryParams: {
|
|
45
|
-
enabled: !!
|
|
45
|
+
enabled: !!currentSetting?.vocab && currentSetting.settingType === 'Refdata'
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
const templates = (0, _hooks.useTemplates)({
|
|
49
49
|
context: currentSetting.vocab,
|
|
50
50
|
endpoint: templateEndpoint,
|
|
51
51
|
queryParams: {
|
|
52
|
-
enabled: !!
|
|
52
|
+
enabled: !!currentSetting?.vocab && currentSetting.settingType === 'Template'
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
const renderHelpText = helpTextId => {
|
|
@@ -115,10 +115,10 @@ const SettingField = settingFieldProps => {
|
|
|
115
115
|
} else {
|
|
116
116
|
RenderFunction = _EditSettingValue.default;
|
|
117
117
|
}
|
|
118
|
-
const id =
|
|
118
|
+
const id = `settings.${(0, _utils.toCamelCase)(currentSetting.section)}.${(0, _utils.toCamelCase)(currentSetting.key)}.help`;
|
|
119
119
|
const renderHeaderStart = () => {
|
|
120
120
|
const settingName = Object.keys(currentSetting).length > 0 ? kintIntl.formatKintMessage({
|
|
121
|
-
id:
|
|
121
|
+
id: `settings.${(0, _utils.toCamelCase)(currentSetting.section)}.${(0, _utils.toCamelCase)(currentSetting.key)}`
|
|
122
122
|
}) : kintIntl.formatKintMessage({
|
|
123
123
|
id: 'loading'
|
|
124
124
|
});
|
|
@@ -153,5 +153,4 @@ SettingField.propTypes = {
|
|
|
153
153
|
input: _propTypes.default.object,
|
|
154
154
|
onSave: _propTypes.default.func
|
|
155
155
|
};
|
|
156
|
-
var _default = SettingField;
|
|
157
|
-
exports.default = _default;
|
|
156
|
+
var _default = exports.default = SettingField;
|
|
@@ -11,7 +11,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
// This works analogously to useKintIntl's "formatKintMessage"
|
|
13
13
|
const FormattedKintMessage = _ref => {
|
|
14
|
-
var _intlObj$messages2;
|
|
15
14
|
let {
|
|
16
15
|
fallbackMessage,
|
|
17
16
|
id,
|
|
@@ -23,12 +22,11 @@ const FormattedKintMessage = _ref => {
|
|
|
23
22
|
const intlKey = (0, _hooks.useIntlKey)(passedIntlKey, passedIntlNS);
|
|
24
23
|
const intlObj = (0, _reactIntl.useIntl)();
|
|
25
24
|
if (overrideValue) {
|
|
26
|
-
var _intlObj$messages;
|
|
27
25
|
// Version 3 is a breaking change, where labelOverrides must be strings.
|
|
28
26
|
if (typeof overrideValue !== 'string') {
|
|
29
27
|
throw new Error('Override values must be strings as of stripes-kint-components ^3.0.0');
|
|
30
28
|
}
|
|
31
|
-
if (
|
|
29
|
+
if (intlObj.messages?.[overrideValue]) {
|
|
32
30
|
// We've been passed a key as an override, return formattedMessage with it
|
|
33
31
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
34
32
|
id: overrideValue,
|
|
@@ -42,10 +40,9 @@ const FormattedKintMessage = _ref => {
|
|
|
42
40
|
// If key does not exist in intl, and we have a specified "fallbackMessage", use that
|
|
43
41
|
|
|
44
42
|
// (FallbackMessage works like defaultMessage but with no warning)
|
|
45
|
-
if (!
|
|
46
|
-
var _intlObj$messages3;
|
|
43
|
+
if (!intlObj.messages?.[`${intlKey}.${id}`] && fallbackMessage) {
|
|
47
44
|
// Allow fallback message to be an intl key
|
|
48
|
-
if (
|
|
45
|
+
if (intlObj.messages?.[fallbackMessage]) {
|
|
49
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
50
47
|
id: fallbackMessage,
|
|
51
48
|
...formattedMessageProps
|
|
@@ -54,7 +51,7 @@ const FormattedKintMessage = _ref => {
|
|
|
54
51
|
return fallbackMessage;
|
|
55
52
|
}
|
|
56
53
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
57
|
-
id:
|
|
54
|
+
id: `${intlKey}.${id}`,
|
|
58
55
|
...formattedMessageProps
|
|
59
56
|
});
|
|
60
57
|
};
|
|
@@ -65,5 +62,4 @@ FormattedKintMessage.propTypes = {
|
|
|
65
62
|
intlNS: _propTypes.default.string,
|
|
66
63
|
overrideValue: _propTypes.default.string
|
|
67
64
|
};
|
|
68
|
-
var _default = FormattedKintMessage;
|
|
69
|
-
exports.default = _default;
|
|
65
|
+
var _default = exports.default = FormattedKintMessage;
|
|
@@ -12,12 +12,11 @@ var _IconSelect = _interopRequireDefault(require("../../../styles/IconSelect.css
|
|
|
12
12
|
var _RichSelect = _interopRequireWildcard(require("../RichSelect"));
|
|
13
13
|
var _FormattedKintMessage = _interopRequireDefault(require("../FormattedKintMessage"));
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
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
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
// A form component which acts as a "Select for states with corresponding icons"
|
|
19
19
|
const IconSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
20
|
-
var _selectedOption$butto;
|
|
21
20
|
let {
|
|
22
21
|
ariaLabel,
|
|
23
22
|
disabled = false,
|
|
@@ -44,7 +43,7 @@ const IconSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
44
43
|
};
|
|
45
44
|
|
|
46
45
|
// Options with notSet
|
|
47
|
-
const options = [notSet
|
|
46
|
+
const options = [notSet ?? defaultNotSet, ...userOptions];
|
|
48
47
|
const [richSelectRef, selectedOption] = (0, _RichSelect.useSelectedOption)();
|
|
49
48
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
50
49
|
selectedOption
|
|
@@ -52,7 +51,7 @@ const IconSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
52
51
|
const {
|
|
53
52
|
className: iconButtonClassName,
|
|
54
53
|
...buttonProps
|
|
55
|
-
} =
|
|
54
|
+
} = selectedOption?.buttonProps ?? {};
|
|
56
55
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RichSelect.default, {
|
|
57
56
|
ref: richSelectRef,
|
|
58
57
|
ariaLabel: ariaLabel,
|
|
@@ -64,19 +63,16 @@ const IconSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
64
63
|
onChange: onChange,
|
|
65
64
|
options: options,
|
|
66
65
|
renderOption: opt => {
|
|
67
|
-
var _opt$label2;
|
|
68
66
|
if (opt.icon) {
|
|
69
|
-
var _opt$label;
|
|
70
67
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
|
|
71
68
|
icon: opt.icon,
|
|
72
69
|
...opt.iconProps,
|
|
73
|
-
children:
|
|
70
|
+
children: opt.label ?? opt.value
|
|
74
71
|
});
|
|
75
72
|
}
|
|
76
|
-
return
|
|
73
|
+
return opt.label ?? opt.value;
|
|
77
74
|
},
|
|
78
75
|
renderTrigger: _ref2 => {
|
|
79
|
-
var _selectedOption$icon;
|
|
80
76
|
let {
|
|
81
77
|
onToggle,
|
|
82
78
|
triggerRef,
|
|
@@ -87,7 +83,7 @@ const IconSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
87
83
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
|
|
88
84
|
ref: triggerRef,
|
|
89
85
|
disabled: disabled,
|
|
90
|
-
icon:
|
|
86
|
+
icon: selectedOption?.icon ?? 'ellipsis',
|
|
91
87
|
marginBottom0: true,
|
|
92
88
|
onClick: onToggle,
|
|
93
89
|
onKeyDown: keyHandler,
|
|
@@ -125,5 +121,4 @@ IconSelect.propTypes = {
|
|
|
125
121
|
required: _propTypes.default.bool,
|
|
126
122
|
value: _propTypes.default.string
|
|
127
123
|
};
|
|
128
|
-
var _default = IconSelect;
|
|
129
|
-
exports.default = _default;
|
|
124
|
+
var _default = exports.default = IconSelect;
|
|
@@ -54,18 +54,18 @@ const NoResultsMessage = _ref => {
|
|
|
54
54
|
// Request failure
|
|
55
55
|
if (isError) {
|
|
56
56
|
icon = 'exclamation-circle';
|
|
57
|
-
label = error
|
|
57
|
+
label = error?.message;
|
|
58
58
|
}
|
|
59
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
60
60
|
className: _NoResultsMessage.default.noResultsMessage,
|
|
61
61
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
62
62
|
className: _NoResultsMessage.default.noResultsMessageLabelWrap,
|
|
63
63
|
children: [(icon || userIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
|
|
64
|
-
icon: userIcon
|
|
64
|
+
icon: userIcon ?? icon,
|
|
65
65
|
iconRootClass: _NoResultsMessage.default.noResultsMessageIcon
|
|
66
66
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
67
67
|
className: _NoResultsMessage.default.noResultsMessageLabel,
|
|
68
|
-
children: userLabel
|
|
68
|
+
children: userLabel ?? label
|
|
69
69
|
})]
|
|
70
70
|
}), !filterPaneIsVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
71
71
|
buttonClass: _NoResultsMessage.default.noResultsMessageButton,
|
|
@@ -73,7 +73,7 @@ const NoResultsMessage = _ref => {
|
|
|
73
73
|
onClick: toggleFilterPane,
|
|
74
74
|
children: kintIntl.formatKintMessage({
|
|
75
75
|
id: 'showFilters',
|
|
76
|
-
overrideValue: labelOverrides
|
|
76
|
+
overrideValue: labelOverrides?.showFilters
|
|
77
77
|
})
|
|
78
78
|
})]
|
|
79
79
|
});
|
|
@@ -91,5 +91,4 @@ NoResultsMessage.propTypes = {
|
|
|
91
91
|
searchTerm: _propTypes.default.string,
|
|
92
92
|
toggleFilterPane: _propTypes.default.func.isRequired
|
|
93
93
|
};
|
|
94
|
-
var _default = NoResultsMessage;
|
|
95
|
-
exports.default = _default;
|
|
94
|
+
var _default = exports.default = NoResultsMessage;
|
|
@@ -10,8 +10,8 @@ var _Typedown = _interopRequireDefault(require("../Typedown"));
|
|
|
10
10
|
var _typedownHooks = require("../hooks/typedownHooks");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
15
|
const QueryTypedown = _ref => {
|
|
16
16
|
let {
|
|
17
17
|
dataFormatter = d => d,
|
|
@@ -39,5 +39,4 @@ QueryTypedown.propTypes = {
|
|
|
39
39
|
path: _propTypes.default.string,
|
|
40
40
|
pathMutator: _propTypes.default.func
|
|
41
41
|
};
|
|
42
|
-
var _default = QueryTypedown;
|
|
43
|
-
exports.default = _default;
|
|
42
|
+
var _default = exports.default = QueryTypedown;
|
|
@@ -32,7 +32,7 @@ const RefdataButtons = props => {
|
|
|
32
32
|
'checked': input.value === option.value,
|
|
33
33
|
'fullWidth': true,
|
|
34
34
|
'label': labelTranslations ? intl.formatMessage({
|
|
35
|
-
id:
|
|
35
|
+
id: `${labelTranslations.key}.${option.value}`,
|
|
36
36
|
defaultMessage: option.label
|
|
37
37
|
}) : option.label,
|
|
38
38
|
'marginBottom0': true,
|
|
@@ -44,7 +44,7 @@ const RefdataButtons = props => {
|
|
|
44
44
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RadioButton, {
|
|
45
45
|
...buttonProps
|
|
46
46
|
})
|
|
47
|
-
},
|
|
47
|
+
}, `${input.name}:${option.id}`);
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
const returnRows = dataOptions => {
|
|
@@ -71,7 +71,7 @@ const RefdataButtons = props => {
|
|
|
71
71
|
return chunkedDataOptions.map((cdo, index) => {
|
|
72
72
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Row, {
|
|
73
73
|
children: buttonRender(cdo, false)
|
|
74
|
-
},
|
|
74
|
+
}, `${props.input.name}:row${index}`);
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
return returnRows(props.dataOptions);
|
|
@@ -87,5 +87,4 @@ RefdataButtons.propTypes = {
|
|
|
87
87
|
onChange: _propTypes.default.func.isRequired
|
|
88
88
|
}).isRequired
|
|
89
89
|
};
|
|
90
|
-
var _default = RefdataButtons;
|
|
91
|
-
exports.default = _default;
|
|
90
|
+
var _default = exports.default = RefdataButtons;
|