@k-int/stripes-kint-components 3.2.2 → 3.2.4
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 +10 -0
- package/es/index.js +78 -79
- package/es/lib/ActionList/ActionList.js +38 -51
- package/es/lib/ActionList/ActionListFieldArray.js +159 -194
- package/es/lib/ActionList/index.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +59 -83
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +15 -19
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +124 -177
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +30 -73
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +93 -106
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +83 -129
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +42 -43
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +48 -153
- package/es/lib/CustomProperties/Config/index.js +4 -4
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +20 -23
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +11 -16
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +33 -32
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +11 -16
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +88 -111
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +26 -69
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +134 -134
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +95 -192
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +46 -48
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +23 -27
- package/es/lib/CustomProperties/Edit/index.js +5 -5
- package/es/lib/CustomProperties/Edit/testResources.js +14 -39
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +64 -91
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +23 -63
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +53 -77
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +17 -16
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +34 -31
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +18 -49
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +19 -22
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +23 -56
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +44 -49
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +77 -257
- package/es/lib/CustomProperties/Filter/index.js +6 -6
- package/es/lib/CustomProperties/Filter/testResources.js +13 -37
- package/es/lib/CustomProperties/Filter/useOperators.js +18 -18
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +18 -33
- package/es/lib/CustomProperties/Filter/useValueProps.js +23 -29
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +20 -23
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +11 -16
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +63 -80
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +14 -23
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +25 -31
- package/es/lib/CustomProperties/View/index.js +3 -3
- package/es/lib/CustomProperties/View/testResources.js +5 -9
- package/es/lib/CustomProperties/index.js +18 -18
- package/es/lib/CycleButton/CycleButton.js +19 -35
- package/es/lib/CycleButton/index.js +1 -1
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +105 -164
- package/es/lib/EditableRefdataCategoryList/index.js +1 -1
- package/es/lib/EditableRefdataList/EditableRefdataList.js +119 -181
- package/es/lib/EditableRefdataList/index.js +1 -1
- package/es/lib/EditableSettingsList/EditableSettingsList.js +15 -13
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +19 -26
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +61 -96
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +27 -41
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +99 -83
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +25 -30
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +187 -299
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +76 -111
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +51 -172
- package/es/lib/EditableSettingsList/SettingField/index.js +3 -3
- package/es/lib/EditableSettingsList/index.js +3 -3
- package/es/lib/FormModal/FormModal.js +44 -48
- package/es/lib/FormModal/index.js +1 -1
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +27 -35
- package/es/lib/FormattedKintMessage/index.js +1 -1
- package/es/lib/IconSelect/IconSelect.js +52 -77
- package/es/lib/IconSelect/index.js +1 -1
- package/es/lib/NoResultsMessage/NoResultsMessage.js +23 -23
- package/es/lib/NoResultsMessage/index.js +1 -1
- package/es/lib/QueryTypedown/QueryTypedown.js +16 -35
- package/es/lib/QueryTypedown/index.js +1 -1
- package/es/lib/RefdataButtons/RefdataButtons.js +30 -34
- package/es/lib/RefdataButtons/index.js +1 -1
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +77 -95
- package/es/lib/ResponsiveButtonGroup/index.js +1 -1
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +24 -39
- package/es/lib/RichSelect/RichSelect.js +78 -100
- package/es/lib/RichSelect/index.js +2 -2
- package/es/lib/RichSelect/useSelectedOption.js +5 -16
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +107 -139
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +43 -52
- package/es/lib/SASQLookupComponent/TableBody/index.js +1 -1
- package/es/lib/SASQLookupComponent/index.js +2 -2
- package/es/lib/SASQRoute/SASQRoute.js +34 -41
- package/es/lib/SASQRoute/index.js +1 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +37 -49
- package/es/lib/SASQViewComponent/index.js +1 -1
- package/es/lib/SearchField/SearchField.js +11 -18
- package/es/lib/SearchField/index.js +1 -1
- package/es/lib/SettingPage/SettingPage.js +20 -19
- package/es/lib/SettingPage/SettingPagePane.js +11 -10
- package/es/lib/SettingPage/index.js +2 -2
- package/es/lib/Typedown/Typedown.js +73 -98
- package/es/lib/Typedown/index.js +1 -1
- package/es/lib/constants/customProperties.js +11 -22
- package/es/lib/constants/eventCodes.js +3 -6
- package/es/lib/contexts/SettingsContext.js +2 -3
- package/es/lib/contexts/index.js +1 -1
- package/es/lib/hooks/__mocks__/index.js +9 -29
- package/es/lib/hooks/index.js +20 -20
- package/es/lib/hooks/settingsHooks/index.js +3 -3
- package/es/lib/hooks/settingsHooks/useAppSettings.js +22 -34
- package/es/lib/hooks/settingsHooks/useSettingSection.js +17 -19
- package/es/lib/hooks/settingsHooks/useSettings.js +58 -72
- package/es/lib/hooks/typedownHooks/index.js +3 -3
- package/es/lib/hooks/typedownHooks/useTypedown.js +49 -50
- package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -23
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +13 -22
- package/es/lib/hooks/useActiveElement.js +10 -20
- package/es/lib/hooks/useCustomProperties.js +23 -32
- package/es/lib/hooks/useHelperApp.js +31 -51
- package/es/lib/hooks/useIntlKey.js +4 -7
- package/es/lib/hooks/useIntlKeyStore.js +42 -51
- package/es/lib/hooks/useInvalidateRefdata.js +4 -7
- package/es/lib/hooks/useKintIntl.js +31 -41
- package/es/lib/hooks/useKiwtFieldArray.js +35 -47
- package/es/lib/hooks/useKiwtSASQuery.js +40 -51
- package/es/lib/hooks/useLocalStorageState.js +7 -20
- package/es/lib/hooks/useMutateCustomProperties.js +23 -73
- package/es/lib/hooks/useMutateRefdataCategory.js +22 -68
- package/es/lib/hooks/useMutateRefdataValue.js +31 -73
- package/es/lib/hooks/useQIndex.js +17 -32
- package/es/lib/hooks/useRefdata.js +19 -22
- package/es/lib/hooks/useSASQQueryMeta.js +14 -22
- package/es/lib/hooks/useTemplates.js +16 -16
- package/es/lib/utils/buildUrl.js +6 -6
- package/es/lib/utils/generateKiwtQuery.js +4 -7
- package/es/lib/utils/generateKiwtQueryParams.js +77 -96
- package/es/lib/utils/groupCustomPropertiesByCtx.js +9 -21
- package/es/lib/utils/highlightString.js +17 -37
- package/es/lib/utils/index.js +21 -21
- package/es/lib/utils/matchString.js +5 -10
- package/es/lib/utils/parseErrorResponse.js +22 -67
- package/es/lib/utils/refdataOptions.js +2 -3
- package/es/lib/utils/refdataQueryKey.js +3 -4
- package/es/lib/utils/selectorSafe.js +2 -3
- package/es/lib/utils/sortByLabel.js +4 -6
- package/es/lib/utils/toCamelCase.js +8 -14
- package/es/lib/utils/typedownQueryKey.js +3 -4
- package/es/lib/utils/validators.js +25 -32
- package/package.json +12 -2
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +3 -3
- 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 -273
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -364
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1426
- 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 -1162
- 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 -664
- 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 -730
- 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 -271
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -250
- 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 -559
- 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 -190
- 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 -571
- 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 -253
- 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 -208
- 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/Typedown/Typedown.js.html +0 -901
- 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/eventCodes.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -131
- 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 -371
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -139
- 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 -283
- 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/useMutateCustomProperties.js.html +0 -283
- 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 -581
- 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/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 -341
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -193
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
- 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 -280
- 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 -103
- 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.info +0 -4957
|
@@ -7,16 +7,16 @@ var _EditSettingValue = _interopRequireDefault(require("./EditSettingValue"));
|
|
|
7
7
|
var _helpers2 = require("../../../../test/jest/helpers");
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
10
|
+
const onSubmit = jest.fn();
|
|
11
11
|
jest.mock('../../hooks');
|
|
12
|
-
|
|
12
|
+
const stringSetting = {
|
|
13
13
|
id: '12345',
|
|
14
14
|
key: 'testSettingKey',
|
|
15
15
|
section: 'testSettingSection',
|
|
16
16
|
settingType: 'String',
|
|
17
17
|
value: 'diku-shared'
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const refdata = [{
|
|
20
20
|
id: '123',
|
|
21
21
|
value: 'test_refdata_value',
|
|
22
22
|
label: 'Test refdata value'
|
|
@@ -29,7 +29,7 @@ var refdata = [{
|
|
|
29
29
|
value: 'final_refdata_value',
|
|
30
30
|
label: 'Final refdata value'
|
|
31
31
|
}];
|
|
32
|
-
|
|
32
|
+
const moreRefdata = [{
|
|
33
33
|
id: '123',
|
|
34
34
|
value: 'test_refdata_value',
|
|
35
35
|
label: 'Test refdata value'
|
|
@@ -54,32 +54,32 @@ var moreRefdata = [{
|
|
|
54
54
|
value: 'final_refdata_value',
|
|
55
55
|
label: 'Final refdata value'
|
|
56
56
|
}];
|
|
57
|
-
|
|
57
|
+
const refdataSetting = {
|
|
58
58
|
id: '12345',
|
|
59
59
|
key: 'testSettingKey',
|
|
60
60
|
section: 'testSettingSection',
|
|
61
61
|
settingType: 'Refdata',
|
|
62
62
|
value: 'test_refdata_value'
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
const templates = [{
|
|
65
65
|
id: 'abcde',
|
|
66
66
|
name: 'Test template'
|
|
67
67
|
}, {
|
|
68
68
|
id: '98765',
|
|
69
69
|
name: 'Red herring template'
|
|
70
70
|
}];
|
|
71
|
-
|
|
71
|
+
const templateSetting = {
|
|
72
72
|
id: '12345',
|
|
73
73
|
key: 'testSettingKey',
|
|
74
74
|
section: 'testSettingSection',
|
|
75
75
|
settingType: 'Template',
|
|
76
76
|
value: 'abcde'
|
|
77
77
|
};
|
|
78
|
-
describe('EditSettingValue',
|
|
79
|
-
describe('edit string setting',
|
|
80
|
-
describe('with no initial value',
|
|
81
|
-
|
|
82
|
-
beforeEach(
|
|
78
|
+
describe('EditSettingValue', () => {
|
|
79
|
+
describe('edit string setting', () => {
|
|
80
|
+
describe('with no initial value', () => {
|
|
81
|
+
let renderComponent;
|
|
82
|
+
beforeEach(() => {
|
|
83
83
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
84
84
|
initialValues: {},
|
|
85
85
|
onSubmit: onSubmit,
|
|
@@ -91,17 +91,18 @@ describe('EditSettingValue', function () {
|
|
|
91
91
|
})
|
|
92
92
|
}));
|
|
93
93
|
});
|
|
94
|
-
test('renders the edit field',
|
|
95
|
-
|
|
96
|
-
getByRole
|
|
94
|
+
test('renders the edit field', () => {
|
|
95
|
+
const {
|
|
96
|
+
getByRole
|
|
97
|
+
} = renderComponent;
|
|
97
98
|
expect(getByRole('textbox', {
|
|
98
99
|
name: 'Value for setting testSettingKey'
|
|
99
100
|
}));
|
|
100
101
|
});
|
|
101
102
|
});
|
|
102
|
-
describe('with initial value',
|
|
103
|
-
|
|
104
|
-
beforeEach(
|
|
103
|
+
describe('with initial value', () => {
|
|
104
|
+
let renderComponent;
|
|
105
|
+
beforeEach(() => {
|
|
105
106
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
106
107
|
initialValues: {
|
|
107
108
|
test: {
|
|
@@ -117,9 +118,10 @@ describe('EditSettingValue', function () {
|
|
|
117
118
|
})
|
|
118
119
|
}));
|
|
119
120
|
});
|
|
120
|
-
test('renders the expected value in the edit field',
|
|
121
|
-
|
|
122
|
-
getByRole
|
|
121
|
+
test('renders the expected value in the edit field', () => {
|
|
122
|
+
const {
|
|
123
|
+
getByRole
|
|
124
|
+
} = renderComponent;
|
|
123
125
|
expect(getByRole('textbox', {
|
|
124
126
|
name: 'Value for setting testSettingKey'
|
|
125
127
|
})).toHaveDisplayValue('diku-shared');
|
|
@@ -129,10 +131,10 @@ describe('EditSettingValue', function () {
|
|
|
129
131
|
|
|
130
132
|
// NOTE -- Password textbox works weirdly so isn't tested here
|
|
131
133
|
|
|
132
|
-
describe('edit refdata setting',
|
|
133
|
-
describe('with no initial value for refdata with <4 options',
|
|
134
|
-
|
|
135
|
-
beforeEach(
|
|
134
|
+
describe('edit refdata setting', () => {
|
|
135
|
+
describe('with no initial value for refdata with <4 options', () => {
|
|
136
|
+
let renderComponent;
|
|
137
|
+
beforeEach(() => {
|
|
136
138
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
137
139
|
initialValues: {},
|
|
138
140
|
onSubmit: onSubmit,
|
|
@@ -145,9 +147,10 @@ describe('EditSettingValue', function () {
|
|
|
145
147
|
})
|
|
146
148
|
}));
|
|
147
149
|
});
|
|
148
|
-
test('renders the expected radio buttons',
|
|
149
|
-
|
|
150
|
-
getByRole
|
|
150
|
+
test('renders the expected radio buttons', () => {
|
|
151
|
+
const {
|
|
152
|
+
getByRole
|
|
153
|
+
} = renderComponent;
|
|
151
154
|
expect(getByRole('radio', {
|
|
152
155
|
name: 'Test refdata value'
|
|
153
156
|
}));
|
|
@@ -158,9 +161,10 @@ describe('EditSettingValue', function () {
|
|
|
158
161
|
name: 'Final refdata value'
|
|
159
162
|
}));
|
|
160
163
|
});
|
|
161
|
-
test('no radio buttons are checked',
|
|
162
|
-
|
|
163
|
-
getByRole
|
|
164
|
+
test('no radio buttons are checked', () => {
|
|
165
|
+
const {
|
|
166
|
+
getByRole
|
|
167
|
+
} = renderComponent;
|
|
164
168
|
expect(getByRole('radio', {
|
|
165
169
|
name: 'Test refdata value'
|
|
166
170
|
})).not.toHaveAttribute('checked');
|
|
@@ -172,9 +176,9 @@ describe('EditSettingValue', function () {
|
|
|
172
176
|
})).not.toHaveAttribute('checked');
|
|
173
177
|
});
|
|
174
178
|
});
|
|
175
|
-
describe('with initial value for refdata with <4 options',
|
|
176
|
-
|
|
177
|
-
beforeEach(
|
|
179
|
+
describe('with initial value for refdata with <4 options', () => {
|
|
180
|
+
let renderComponent;
|
|
181
|
+
beforeEach(() => {
|
|
178
182
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
179
183
|
initialValues: {
|
|
180
184
|
test: {
|
|
@@ -191,9 +195,10 @@ describe('EditSettingValue', function () {
|
|
|
191
195
|
})
|
|
192
196
|
}));
|
|
193
197
|
});
|
|
194
|
-
test('renders the expected radio buttons',
|
|
195
|
-
|
|
196
|
-
getByRole
|
|
198
|
+
test('renders the expected radio buttons', () => {
|
|
199
|
+
const {
|
|
200
|
+
getByRole
|
|
201
|
+
} = renderComponent;
|
|
197
202
|
expect(getByRole('radio', {
|
|
198
203
|
name: 'Test refdata value'
|
|
199
204
|
}));
|
|
@@ -204,9 +209,10 @@ describe('EditSettingValue', function () {
|
|
|
204
209
|
name: 'Final refdata value'
|
|
205
210
|
}));
|
|
206
211
|
});
|
|
207
|
-
test('the correct radio button is checked',
|
|
208
|
-
|
|
209
|
-
getByRole
|
|
212
|
+
test('the correct radio button is checked', () => {
|
|
213
|
+
const {
|
|
214
|
+
getByRole
|
|
215
|
+
} = renderComponent;
|
|
210
216
|
expect(getByRole('radio', {
|
|
211
217
|
name: 'Test refdata value'
|
|
212
218
|
})).toHaveAttribute('checked');
|
|
@@ -218,9 +224,9 @@ describe('EditSettingValue', function () {
|
|
|
218
224
|
})).not.toHaveAttribute('checked');
|
|
219
225
|
});
|
|
220
226
|
});
|
|
221
|
-
describe('with no initial value for refdata with >4 options',
|
|
222
|
-
|
|
223
|
-
beforeEach(
|
|
227
|
+
describe('with no initial value for refdata with >4 options', () => {
|
|
228
|
+
let renderComponent;
|
|
229
|
+
beforeEach(() => {
|
|
224
230
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
225
231
|
initialValues: {},
|
|
226
232
|
onSubmit: onSubmit,
|
|
@@ -233,16 +239,18 @@ describe('EditSettingValue', function () {
|
|
|
233
239
|
})
|
|
234
240
|
}));
|
|
235
241
|
});
|
|
236
|
-
test('renders the expected select field',
|
|
237
|
-
|
|
238
|
-
getByRole
|
|
242
|
+
test('renders the expected select field', () => {
|
|
243
|
+
const {
|
|
244
|
+
getByRole
|
|
245
|
+
} = renderComponent;
|
|
239
246
|
expect(getByRole('combobox', {
|
|
240
247
|
name: 'Value for setting testSettingKey'
|
|
241
248
|
}));
|
|
242
249
|
});
|
|
243
|
-
test('renders the expected refdata options',
|
|
244
|
-
|
|
245
|
-
getByRole
|
|
250
|
+
test('renders the expected refdata options', () => {
|
|
251
|
+
const {
|
|
252
|
+
getByRole
|
|
253
|
+
} = renderComponent;
|
|
246
254
|
expect(getByRole('option', {
|
|
247
255
|
name: 'Test refdata value'
|
|
248
256
|
}));
|
|
@@ -263,9 +271,9 @@ describe('EditSettingValue', function () {
|
|
|
263
271
|
}));
|
|
264
272
|
});
|
|
265
273
|
});
|
|
266
|
-
describe('with initial value for refdata with >4 options',
|
|
267
|
-
|
|
268
|
-
beforeEach(
|
|
274
|
+
describe('with initial value for refdata with >4 options', () => {
|
|
275
|
+
let renderComponent;
|
|
276
|
+
beforeEach(() => {
|
|
269
277
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
270
278
|
initialValues: {
|
|
271
279
|
test: {
|
|
@@ -282,9 +290,10 @@ describe('EditSettingValue', function () {
|
|
|
282
290
|
})
|
|
283
291
|
}));
|
|
284
292
|
});
|
|
285
|
-
test('renders the expected refdata options',
|
|
286
|
-
|
|
287
|
-
getByRole
|
|
293
|
+
test('renders the expected refdata options', () => {
|
|
294
|
+
const {
|
|
295
|
+
getByRole
|
|
296
|
+
} = renderComponent;
|
|
288
297
|
expect(getByRole('option', {
|
|
289
298
|
name: 'Test refdata value'
|
|
290
299
|
}));
|
|
@@ -304,19 +313,20 @@ describe('EditSettingValue', function () {
|
|
|
304
313
|
name: 'Final refdata value'
|
|
305
314
|
}));
|
|
306
315
|
});
|
|
307
|
-
test('renders the expected value in the refdata dropdown',
|
|
308
|
-
|
|
309
|
-
getByRole
|
|
316
|
+
test('renders the expected value in the refdata dropdown', () => {
|
|
317
|
+
const {
|
|
318
|
+
getByRole
|
|
319
|
+
} = renderComponent;
|
|
310
320
|
expect(getByRole('combobox', {
|
|
311
321
|
name: 'Value for setting testSettingKey'
|
|
312
322
|
})).toHaveDisplayValue('Test refdata value');
|
|
313
323
|
});
|
|
314
324
|
});
|
|
315
325
|
});
|
|
316
|
-
describe('edit template setting',
|
|
317
|
-
describe('with no initial value',
|
|
318
|
-
|
|
319
|
-
beforeEach(
|
|
326
|
+
describe('edit template setting', () => {
|
|
327
|
+
describe('with no initial value', () => {
|
|
328
|
+
let renderComponent;
|
|
329
|
+
beforeEach(() => {
|
|
320
330
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
321
331
|
initialValues: {},
|
|
322
332
|
onSubmit: onSubmit,
|
|
@@ -329,16 +339,18 @@ describe('EditSettingValue', function () {
|
|
|
329
339
|
})
|
|
330
340
|
}));
|
|
331
341
|
});
|
|
332
|
-
test('renders the edit field',
|
|
333
|
-
|
|
334
|
-
getByRole
|
|
342
|
+
test('renders the edit field', () => {
|
|
343
|
+
const {
|
|
344
|
+
getByRole
|
|
345
|
+
} = renderComponent;
|
|
335
346
|
expect(getByRole('combobox', {
|
|
336
347
|
name: 'Value for setting testSettingKey'
|
|
337
348
|
}));
|
|
338
349
|
});
|
|
339
|
-
test('renders the expected template options',
|
|
340
|
-
|
|
341
|
-
getByRole
|
|
350
|
+
test('renders the expected template options', () => {
|
|
351
|
+
const {
|
|
352
|
+
getByRole
|
|
353
|
+
} = renderComponent;
|
|
342
354
|
expect(getByRole('option', {
|
|
343
355
|
name: ''
|
|
344
356
|
})); // empty option
|
|
@@ -349,17 +361,18 @@ describe('EditSettingValue', function () {
|
|
|
349
361
|
name: 'Red herring template'
|
|
350
362
|
}));
|
|
351
363
|
});
|
|
352
|
-
test('renders expected display item in template dropdown',
|
|
353
|
-
|
|
354
|
-
getByRole
|
|
364
|
+
test('renders expected display item in template dropdown', () => {
|
|
365
|
+
const {
|
|
366
|
+
getByRole
|
|
367
|
+
} = renderComponent;
|
|
355
368
|
expect(getByRole('combobox', {
|
|
356
369
|
name: 'Value for setting testSettingKey'
|
|
357
370
|
})).toHaveDisplayValue('');
|
|
358
371
|
});
|
|
359
372
|
});
|
|
360
|
-
describe('with initial value',
|
|
361
|
-
|
|
362
|
-
beforeEach(
|
|
373
|
+
describe('with initial value', () => {
|
|
374
|
+
let renderComponent;
|
|
375
|
+
beforeEach(() => {
|
|
363
376
|
renderComponent = (0, _helpers2.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
364
377
|
initialValues: {
|
|
365
378
|
test: {
|
|
@@ -376,16 +389,18 @@ describe('EditSettingValue', function () {
|
|
|
376
389
|
})
|
|
377
390
|
}));
|
|
378
391
|
});
|
|
379
|
-
test('renders the edit field',
|
|
380
|
-
|
|
381
|
-
getByRole
|
|
392
|
+
test('renders the edit field', () => {
|
|
393
|
+
const {
|
|
394
|
+
getByRole
|
|
395
|
+
} = renderComponent;
|
|
382
396
|
expect(getByRole('combobox', {
|
|
383
397
|
name: 'Value for setting testSettingKey'
|
|
384
398
|
}));
|
|
385
399
|
});
|
|
386
|
-
test('renders the expected template options',
|
|
387
|
-
|
|
388
|
-
getByRole
|
|
400
|
+
test('renders the expected template options', () => {
|
|
401
|
+
const {
|
|
402
|
+
getByRole
|
|
403
|
+
} = renderComponent;
|
|
389
404
|
expect(getByRole('option', {
|
|
390
405
|
name: ''
|
|
391
406
|
})); // empty option
|
|
@@ -396,9 +411,10 @@ describe('EditSettingValue', function () {
|
|
|
396
411
|
name: 'Red herring template'
|
|
397
412
|
}));
|
|
398
413
|
});
|
|
399
|
-
test('renders expected display item in template dropdown',
|
|
400
|
-
|
|
401
|
-
getByRole
|
|
414
|
+
test('renders expected display item in template dropdown', () => {
|
|
415
|
+
const {
|
|
416
|
+
getByRole
|
|
417
|
+
} = renderComponent;
|
|
402
418
|
expect(getByRole('combobox', {
|
|
403
419
|
name: 'Value for setting testSettingKey'
|
|
404
420
|
})).toHaveDisplayValue('Test template');
|
|
@@ -7,38 +7,34 @@ exports.default = void 0;
|
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
8
|
var _hooks = require("../../hooks");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
labelOverrides =
|
|
16
|
-
refdata
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
const RenderSettingValue = props => {
|
|
11
|
+
const {
|
|
12
|
+
currentSetting: setting,
|
|
13
|
+
intlKey: passedIntlKey,
|
|
14
|
+
intlNS: passedIntlNS,
|
|
15
|
+
labelOverrides = {},
|
|
16
|
+
refdata,
|
|
17
|
+
// TODO ... can we get away without passing these in now, using useRefdata?
|
|
18
|
+
templates // TODO ... can we get away without passing these in now, using useTemplates?
|
|
19
|
+
} = props;
|
|
20
|
+
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
21
|
+
const NoCurrentValue = kintIntl.formatKintMessage({
|
|
20
22
|
id: 'settings.noCurrentValue',
|
|
21
|
-
overrideValue: labelOverrides
|
|
23
|
+
overrideValue: labelOverrides?.noCurrentValue
|
|
22
24
|
});
|
|
23
|
-
|
|
25
|
+
const defaultText = `[${kintIntl.formatKintMessage({
|
|
24
26
|
id: 'settings.default',
|
|
25
|
-
overrideValue: labelOverrides
|
|
26
|
-
})
|
|
27
|
+
overrideValue: labelOverrides?.default
|
|
28
|
+
})}]`;
|
|
27
29
|
switch (setting.settingType) {
|
|
28
30
|
case 'Refdata':
|
|
29
31
|
{
|
|
30
32
|
if (setting.value) {
|
|
31
|
-
|
|
32
|
-
return (_refdata$filter$0$lab = refdata === null || refdata === void 0 ? void 0 : (_refdata$filter$ = refdata.filter(function (obj) {
|
|
33
|
-
return obj.value === setting.value;
|
|
34
|
-
})[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 obj.value === setting.defValue;
|
|
40
|
-
})[0]) === null || _refdata$filter$2 === void 0 ? void 0 : _refdata$filter$2.label;
|
|
41
|
-
return "".concat(defaultText, " ").concat(defValue);
|
|
36
|
+
const defValue = refdata?.filter(obj => obj.value === setting.defValue)[0]?.label;
|
|
37
|
+
return `${defaultText} ${defValue}`;
|
|
42
38
|
}
|
|
43
39
|
return NoCurrentValue;
|
|
44
40
|
}
|
|
@@ -48,17 +44,17 @@ var RenderSettingValue = function RenderSettingValue(props) {
|
|
|
48
44
|
return '********';
|
|
49
45
|
}
|
|
50
46
|
if (setting.defValue) {
|
|
51
|
-
return
|
|
47
|
+
return `${defaultText} ********`;
|
|
52
48
|
}
|
|
53
49
|
return NoCurrentValue;
|
|
54
50
|
}
|
|
55
51
|
case 'Template':
|
|
56
52
|
{
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
const templateValue = templates.filter(obj => {
|
|
54
|
+
const settingId = setting.value || setting.defValue;
|
|
59
55
|
return obj.id === settingId;
|
|
60
56
|
})[0];
|
|
61
|
-
return
|
|
57
|
+
return templateValue?.name || NoCurrentValue;
|
|
62
58
|
}
|
|
63
59
|
default:
|
|
64
60
|
{
|
|
@@ -66,7 +62,7 @@ var RenderSettingValue = function RenderSettingValue(props) {
|
|
|
66
62
|
return setting.value;
|
|
67
63
|
}
|
|
68
64
|
if (setting.defValue) {
|
|
69
|
-
return
|
|
65
|
+
return `${defaultText} ${setting.defValue}`;
|
|
70
66
|
}
|
|
71
67
|
return NoCurrentValue;
|
|
72
68
|
}
|
|
@@ -80,5 +76,4 @@ RenderSettingValue.propTypes = {
|
|
|
80
76
|
refdata: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
81
77
|
templates: _propTypes.default.arrayOf(_propTypes.default.object)
|
|
82
78
|
};
|
|
83
|
-
var _default = RenderSettingValue;
|
|
84
|
-
exports.default = _default;
|
|
79
|
+
var _default = exports.default = RenderSettingValue;
|