@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -11,43 +10,33 @@ var _components = require("@folio/stripes/components");
|
|
|
11
10
|
var CUSTOM_PROPERTY_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
12
11
|
var _hooks = require("../../hooks");
|
|
13
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
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; }
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
index = _ref.index,
|
|
34
|
-
passedIntlKey = _ref.intlKey,
|
|
35
|
-
passedIntlNS = _ref.intlNS,
|
|
36
|
-
_ref$labelOverrides = _ref.labelOverrides,
|
|
37
|
-
labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides,
|
|
38
|
-
name = _ref.name,
|
|
39
|
-
_onChange = _ref.onChange,
|
|
40
|
-
value = _ref.value,
|
|
41
|
-
setCustomProperties = _ref.setCustomProperties;
|
|
42
|
-
var kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
16
|
+
const CustomPropertyField = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
availableCustomProperties,
|
|
19
|
+
customProperty,
|
|
20
|
+
customPropertyType,
|
|
21
|
+
customProperties,
|
|
22
|
+
index,
|
|
23
|
+
intlKey: passedIntlKey,
|
|
24
|
+
intlNS: passedIntlNS,
|
|
25
|
+
labelOverrides = {},
|
|
26
|
+
name,
|
|
27
|
+
onChange,
|
|
28
|
+
value,
|
|
29
|
+
setCustomProperties
|
|
30
|
+
} = _ref;
|
|
31
|
+
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
43
32
|
|
|
44
33
|
// Set up the validator for the customProperty
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
const customPropertyValidator = (fieldValue, allValues) => {
|
|
35
|
+
const {
|
|
36
|
+
note,
|
|
37
|
+
publicNote,
|
|
38
|
+
value: currentValue
|
|
39
|
+
} = allValues?.customProperties?.[customProperty?.value]?.[0] ?? {};
|
|
51
40
|
if (note && !currentValue || publicNote && !currentValue) {
|
|
52
41
|
if (customProperty.type === CUSTOM_PROPERTY_TYPES.DECIMAL_CLASS_NAME || customProperty.type === CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME) {
|
|
53
42
|
return kintIntl.formatKintMessage({
|
|
@@ -62,21 +51,21 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
62
51
|
}
|
|
63
52
|
}
|
|
64
53
|
if (customProperty.type === CUSTOM_PROPERTY_TYPES.DECIMAL_CLASS_NAME) {
|
|
65
|
-
|
|
54
|
+
const regexp = /^-?[\d]*(\.[\d]{0,2})?$/;
|
|
66
55
|
return fieldValue && !regexp.test(fieldValue) ? kintIntl.formatKintMessage({
|
|
67
56
|
id: 'errors.maxTwoDecimals',
|
|
68
57
|
overrideValue: labelOverrides.maxTwoDecimalsError
|
|
69
58
|
}) : undefined;
|
|
70
59
|
}
|
|
71
60
|
if (customProperty.type === CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME) {
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
const min = Number.MIN_SAFE_INTEGER;
|
|
62
|
+
const max = Number.MAX_SAFE_INTEGER;
|
|
74
63
|
return fieldValue && (fieldValue > max || fieldValue < min) ? kintIntl.formatKintMessage({
|
|
75
64
|
id: 'errors.valueNotInRange',
|
|
76
65
|
overrideValue: labelOverrides.valueNotInRangeError
|
|
77
66
|
}, {
|
|
78
|
-
min
|
|
79
|
-
max
|
|
67
|
+
min,
|
|
68
|
+
max
|
|
80
69
|
}) : undefined;
|
|
81
70
|
}
|
|
82
71
|
if (!customProperty.primary && !currentValue) {
|
|
@@ -86,43 +75,38 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
86
75
|
}
|
|
87
76
|
return undefined;
|
|
88
77
|
};
|
|
89
|
-
|
|
90
|
-
return availableCustomProperties.find(
|
|
91
|
-
return cp.value === customPropertyValue;
|
|
92
|
-
});
|
|
78
|
+
const getCustomProperty = customPropertyValue => {
|
|
79
|
+
return availableCustomProperties.find(cp => cp.value === customPropertyValue);
|
|
93
80
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var unsetCustomProperties = availableCustomProperties.filter(function (t) {
|
|
97
|
-
var _custPropValue$;
|
|
81
|
+
const renderCustomPropertyName = () => {
|
|
82
|
+
const unsetCustomProperties = availableCustomProperties.filter(t => {
|
|
98
83
|
// Only optional properties can be set
|
|
99
84
|
if (t.primary) return false;
|
|
100
|
-
|
|
85
|
+
const custPropValue = value[t.value];
|
|
101
86
|
|
|
102
87
|
// The customProperty is unset and has no value.
|
|
103
88
|
if (custPropValue === undefined) return true;
|
|
104
89
|
|
|
105
90
|
// The customProperty is set but is marked for deletion. Allow reuse.
|
|
106
|
-
if (
|
|
91
|
+
if (custPropValue[0]?._delete) return true;
|
|
107
92
|
return false;
|
|
108
93
|
});
|
|
109
|
-
|
|
110
|
-
|
|
94
|
+
const customPropertyValue = value[customProperty.value];
|
|
95
|
+
const id = customPropertyValue?.[0]?.id;
|
|
111
96
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
|
|
112
97
|
autoFocus: !id,
|
|
113
|
-
dataOptions: [customProperty]
|
|
98
|
+
dataOptions: [customProperty, ...unsetCustomProperties] // The selected customProperty, and the available unset customProperties
|
|
114
99
|
,
|
|
115
|
-
id:
|
|
100
|
+
id: `edit-customproperty-${index}-name`,
|
|
116
101
|
label: kintIntl.formatKintMessage({
|
|
117
102
|
id: 'customProperties.name',
|
|
118
103
|
overrideValue: labelOverrides.name
|
|
119
104
|
}),
|
|
120
|
-
onChange:
|
|
121
|
-
|
|
122
|
-
var newValue = e.target.value;
|
|
105
|
+
onChange: e => {
|
|
106
|
+
const newValue = e.target.value;
|
|
123
107
|
|
|
124
108
|
// Update `state.customProperties` which controls what customProperties are being edited.
|
|
125
|
-
|
|
109
|
+
const newCustomProperties = [...customProperties];
|
|
126
110
|
newCustomProperties[index] = getCustomProperty(newValue);
|
|
127
111
|
setCustomProperties(newCustomProperties);
|
|
128
112
|
|
|
@@ -130,83 +114,92 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
130
114
|
// in essence we're deleting a customProperty and creating a new customProperty.
|
|
131
115
|
// We do this by 1) marking the current customProperty for deletion and 2) initing
|
|
132
116
|
// the new customProperty to an empty object.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
117
|
+
const currentValue = value[customProperty.value] ? value[customProperty.value][0] : {};
|
|
118
|
+
onChange({
|
|
119
|
+
...value,
|
|
120
|
+
[customProperty.value]: [{
|
|
121
|
+
id: currentValue.id,
|
|
122
|
+
_delete: true
|
|
123
|
+
}],
|
|
124
|
+
[newValue]: [{}]
|
|
125
|
+
});
|
|
138
126
|
},
|
|
139
127
|
required: true,
|
|
140
128
|
value: customProperty.value
|
|
141
129
|
});
|
|
142
130
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
var max = Number.MAX_SAFE_INTEGER;
|
|
131
|
+
const renderCustomPropertyValue = () => {
|
|
132
|
+
const currentValue = value[customProperty.value] ? value[customProperty.value][0] : {};
|
|
133
|
+
const min = Number.MIN_SAFE_INTEGER;
|
|
134
|
+
const max = Number.MAX_SAFE_INTEGER;
|
|
148
135
|
|
|
149
136
|
// Default change handler
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
137
|
+
let handleChange = e => {
|
|
138
|
+
onChange({
|
|
139
|
+
...value,
|
|
140
|
+
[customProperty.value]: [{
|
|
141
|
+
...currentValue,
|
|
142
|
+
_delete: e.target.value === '',
|
|
143
|
+
// Delete customProperty if removing the value.
|
|
144
|
+
value: e.target.value // send down the number for integers and decimal types
|
|
145
|
+
}]
|
|
146
|
+
});
|
|
156
147
|
};
|
|
157
148
|
// Figure out which component we're rendering and specify its unique props.
|
|
158
|
-
|
|
149
|
+
let fieldProps;
|
|
159
150
|
switch (customProperty.type) {
|
|
160
151
|
case CUSTOM_PROPERTY_TYPES.REFDATA_CLASS_NAME:
|
|
161
152
|
fieldProps = {
|
|
162
153
|
component: _components.Select,
|
|
163
154
|
dataOptions: customProperty.options,
|
|
164
|
-
format:
|
|
165
|
-
return v === null || v === void 0 ? void 0 : v.value;
|
|
166
|
-
}
|
|
155
|
+
format: v => v?.value
|
|
167
156
|
};
|
|
168
157
|
break;
|
|
169
158
|
case CUSTOM_PROPERTY_TYPES.MULTI_REFDATA_CLASS_NAME:
|
|
170
159
|
fieldProps = {
|
|
171
160
|
component: _components.MultiSelection,
|
|
172
161
|
// The "not set" value is not relevant for a multi select
|
|
173
|
-
dataOptions:
|
|
174
|
-
return !!(opt !== null && opt !== void 0 && opt.value);
|
|
175
|
-
}),
|
|
162
|
+
dataOptions: customProperty.options?.filter(opt => !!opt?.value),
|
|
176
163
|
renderToOverlay: true
|
|
177
164
|
};
|
|
178
165
|
// MultiSelection passes the changed array as a value not an event
|
|
179
|
-
handleChange =
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
166
|
+
handleChange = refdataArray => {
|
|
167
|
+
onChange({
|
|
168
|
+
...value,
|
|
169
|
+
[customProperty.value]: [{
|
|
170
|
+
...currentValue,
|
|
171
|
+
_delete: refdataArray?.length === 0 ? true : undefined,
|
|
172
|
+
// Delete customProperty if removing all values.
|
|
173
|
+
value: refdataArray
|
|
174
|
+
}]
|
|
175
|
+
});
|
|
185
176
|
};
|
|
186
177
|
break;
|
|
187
178
|
case CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME:
|
|
188
179
|
case CUSTOM_PROPERTY_TYPES.DECIMAL_CLASS_NAME:
|
|
189
180
|
fieldProps = {
|
|
190
181
|
component: _components.TextField,
|
|
191
|
-
max
|
|
192
|
-
min
|
|
182
|
+
max,
|
|
183
|
+
min,
|
|
193
184
|
step: 'any',
|
|
194
185
|
type: 'number'
|
|
195
186
|
};
|
|
196
|
-
handleChange =
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
187
|
+
handleChange = e => {
|
|
188
|
+
onChange({
|
|
189
|
+
...value,
|
|
190
|
+
[customProperty.value]: [{
|
|
191
|
+
...currentValue,
|
|
192
|
+
_delete: e.target.value === '' ? true : undefined,
|
|
193
|
+
// Delete customProperty if removing the value.
|
|
194
|
+
value: parseFloat(e.target.value)
|
|
195
|
+
}]
|
|
196
|
+
});
|
|
202
197
|
};
|
|
203
198
|
break;
|
|
204
199
|
case CUSTOM_PROPERTY_TYPES.TEXT_CLASS_NAME:
|
|
205
200
|
fieldProps = {
|
|
206
201
|
component: _components.TextArea,
|
|
207
|
-
parse:
|
|
208
|
-
return v;
|
|
209
|
-
} // Lets us send an empty string instead of `undefined`
|
|
202
|
+
parse: v => v // Lets us send an empty string instead of `undefined`
|
|
210
203
|
};
|
|
211
204
|
|
|
212
205
|
break;
|
|
@@ -224,28 +217,30 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
224
217
|
};
|
|
225
218
|
break;
|
|
226
219
|
}
|
|
227
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field,
|
|
220
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
228
221
|
"data-test-customproperty-value": true,
|
|
229
|
-
id:
|
|
222
|
+
id: `edit-customproperty-${index}-value`,
|
|
230
223
|
label: kintIntl.formatKintMessage({
|
|
231
224
|
id: 'customProperties.value',
|
|
232
225
|
overrideValue: labelOverrides.value
|
|
233
226
|
}),
|
|
234
|
-
name:
|
|
227
|
+
name: `${name}.${customProperty.value}[0].value`,
|
|
235
228
|
onChange: handleChange,
|
|
236
229
|
required: !customProperty.primary,
|
|
237
|
-
validate:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}, fieldProps));
|
|
230
|
+
validate: (fieldValue, allValues) => customPropertyValidator(fieldValue, allValues),
|
|
231
|
+
...fieldProps
|
|
232
|
+
});
|
|
241
233
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
234
|
+
const renderCustomPropertyVisibility = () => {
|
|
235
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
236
|
+
const handleChange = e => {
|
|
237
|
+
onChange({
|
|
238
|
+
...value,
|
|
239
|
+
[customProperty.value]: [{
|
|
240
|
+
...customPropertyObject,
|
|
241
|
+
internal: e.target.value
|
|
242
|
+
}]
|
|
243
|
+
});
|
|
249
244
|
};
|
|
250
245
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
|
|
251
246
|
"data-test-customproperty-visibility": true,
|
|
@@ -262,51 +257,57 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
262
257
|
overrideValue: labelOverrides.internalFalse
|
|
263
258
|
})
|
|
264
259
|
}],
|
|
265
|
-
id:
|
|
260
|
+
id: `edit-customproperty-${index}-visibility`,
|
|
266
261
|
label: kintIntl.formatKintMessage({
|
|
267
262
|
id: 'customProperties.visibility',
|
|
268
263
|
overrideValue: labelOverrides.visibility
|
|
269
264
|
}),
|
|
270
265
|
onChange: handleChange,
|
|
271
|
-
value:
|
|
266
|
+
value: customPropertyObject?.internal ?? customProperty.defaultInternal
|
|
272
267
|
});
|
|
273
268
|
};
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
269
|
+
const renderCustomPropertyNoteInternal = () => {
|
|
270
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
271
|
+
const handleChange = e => {
|
|
272
|
+
onChange({
|
|
273
|
+
...value,
|
|
274
|
+
[customProperty.value]: [{
|
|
275
|
+
...customPropertyObject,
|
|
276
|
+
note: e.target.value
|
|
277
|
+
}]
|
|
278
|
+
});
|
|
281
279
|
};
|
|
282
280
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
|
|
283
281
|
"data-test-customproperty-note": true,
|
|
284
|
-
id:
|
|
282
|
+
id: `edit-customproperty-${index}-internal-note`,
|
|
285
283
|
label: kintIntl.formatKintMessage({
|
|
286
284
|
id: 'customProperties.internalNote',
|
|
287
285
|
overrideValue: labelOverrides.internalNote
|
|
288
286
|
}),
|
|
289
287
|
onChange: handleChange,
|
|
290
|
-
value: customPropertyObject
|
|
288
|
+
value: customPropertyObject?.note
|
|
291
289
|
});
|
|
292
290
|
};
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
291
|
+
const renderCustomPropertyNotePublic = () => {
|
|
292
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
293
|
+
const handleChange = e => {
|
|
294
|
+
onChange({
|
|
295
|
+
...value,
|
|
296
|
+
[customProperty.value]: [{
|
|
297
|
+
...customPropertyObject,
|
|
298
|
+
publicNote: e.target.value
|
|
299
|
+
}]
|
|
300
|
+
});
|
|
300
301
|
};
|
|
301
302
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
|
|
302
303
|
"data-test-customproperty-public-note": true,
|
|
303
|
-
id:
|
|
304
|
+
id: `edit-customproperty-${index}-public-note`,
|
|
304
305
|
label: kintIntl.formatKintMessage({
|
|
305
306
|
id: 'customProperties.publicNote',
|
|
306
307
|
overrideValue: labelOverrides.publicNote
|
|
307
308
|
}),
|
|
308
309
|
onChange: handleChange,
|
|
309
|
-
value: customPropertyObject
|
|
310
|
+
value: customPropertyObject?.publicNote
|
|
310
311
|
});
|
|
311
312
|
};
|
|
312
313
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
@@ -355,5 +356,4 @@ CustomPropertyField.propTypes = {
|
|
|
355
356
|
setCustomProperties: _propTypes.default.func,
|
|
356
357
|
value: _propTypes.default.object
|
|
357
358
|
};
|
|
358
|
-
var _default = CustomPropertyField;
|
|
359
|
-
exports.default = _default;
|
|
359
|
+
var _default = exports.default = CustomPropertyField;
|