@k-int/stripes-kint-components 1.6.0 → 2.0.1
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 +34 -1
- package/es/index.js +49 -8
- package/es/lib/ActionList/ActionList.js +51 -26
- package/es/lib/ActionList/ActionListFieldArray.js +84 -27
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +198 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +326 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesView.js +166 -0
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +360 -0
- package/es/lib/CustomProperties/Config/index.js +41 -0
- package/es/lib/EditableRefdataList/EditableRefdataList.js +17 -9
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -2
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +3 -3
- package/es/lib/FormModal/FormModal.js +126 -0
- package/es/lib/{TypeDown → FormModal}/index.js +2 -2
- package/es/lib/NoResultsMessage/NoResultsMessage.js +1 -1
- package/es/lib/QueryTypedown/QueryTypedown.js +3 -3
- package/es/lib/RefdataButtons/RefdataButtons.js +2 -2
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +8 -3
- package/es/lib/SASQRoute/SASQRoute.js +2 -2
- package/es/lib/SASQViewComponent/SASQViewComponent.js +2 -2
- package/es/lib/SearchField/SearchField.js +2 -2
- package/es/lib/SettingPage/SettingPage.js +1 -1
- package/es/lib/SettingPage/SettingPagePane.js +1 -1
- package/es/lib/Typedown/Typedown.js +45 -14
- package/es/lib/constants/customProperties.js +60 -0
- package/es/lib/hooks/index.js +16 -0
- package/es/lib/hooks/settingsHooks/useSettings.js +3 -3
- package/es/lib/hooks/useCustomProperties.js +112 -0
- package/es/lib/hooks/useHelperApp.js +3 -3
- package/es/lib/hooks/useKiwtFieldArray.js +2 -2
- package/es/lib/hooks/useKiwtSASQuery.js +3 -3
- package/es/lib/hooks/useLocalStorageState.js +1 -1
- package/es/lib/hooks/useMutateCustomProperties.js +143 -0
- package/es/lib/hooks/useQIndex.js +3 -3
- package/es/lib/hooks/useRefdata.js +3 -9
- package/es/lib/utils/index.js +8 -0
- package/es/lib/utils/refdataOptions.js +43 -0
- package/junit.xml +38 -38
- package/package.json +5 -3
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +58 -29
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +167 -18
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +13 -14
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +2 -3
- package/{artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/SettingField/SettingField.js.html → src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html} +121 -140
- package/{artifacts/coverage-jest/lcov-report/src/lib/Typedown/Typedown.js.html → src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html} +263 -246
- package/{artifacts/coverage-jest/lcov-report/src/lib/hooks/typedownHooks/useTypedown.js.html → src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesView.js.html} +222 -211
- package/{artifacts/coverage-jest/lcov-report/src/lib/SASQLookupComponent/SASQLookupComponent.js.html → src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html} +356 -315
- package/{artifacts/coverage-jest/lcov-report/src/lib/hooks/typedownHooks → src/artifacts/coverage-jest/lcov-report/CustomProperties/Config}/index.html +55 -41
- package/{artifacts/coverage-jest/lcov-report/src/lib/hooks/typedownHooks → src/artifacts/coverage-jest/lcov-report/CustomProperties/Config}/index.js.html +18 -16
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +24 -13
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +8 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +2 -3
- package/{artifacts/coverage-jest/lcov-report/src/index.js.html → src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html} +86 -93
- package/src/artifacts/coverage-jest/lcov-report/{TypeDown → FormModal}/index.html +15 -16
- package/src/artifacts/coverage-jest/lcov-report/{TypeDown → FormModal}/index.js.html +5 -6
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +4 -5
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +4 -5
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +25 -8
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +10 -11
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +141 -16
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +8 -9
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +2 -3
- package/{artifacts/coverage-jest/lcov-report/src/lib/utils/sortByLabel.js.html → src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html} +28 -47
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +19 -5
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +36 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +9 -4
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +6 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +32 -36
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +2 -3
- package/{artifacts/coverage-jest/lcov-report/src/lib/hooks/useRefdata.js.html → src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html} +64 -47
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +2 -3
- package/{artifacts/coverage-jest/lcov-report/src/lib/hooks/useMutateRefdataValue.js.html → src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html} +43 -74
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +5 -24
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/index.html +72 -58
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +21 -22
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +9 -4
- package/{artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/index.js.html → src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html} +27 -16
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -3
- package/src/artifacts/coverage-jest/lcov.info +924 -552
- package/src/index.js +12 -4
- package/src/lib/ActionList/ActionList.js +32 -22
- package/src/lib/ActionList/ActionListFieldArray.js +60 -10
- package/src/lib/ActionList/README.md +5 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +111 -0
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +240 -0
- package/src/lib/CustomProperties/Config/CustomPropertiesView.js +150 -0
- package/src/lib/CustomProperties/Config/CustomPropertyForm.js +296 -0
- package/src/lib/CustomProperties/Config/index.js +4 -0
- package/src/lib/EditableRefdataList/EditableRefdataList.js +9 -5
- package/src/lib/FormModal/FormModal.js +71 -0
- package/src/lib/FormModal/index.js +1 -0
- package/src/lib/NoResultsMessage/NoResultsMessage.js +2 -2
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +6 -0
- package/src/lib/Typedown/Typedown.js +50 -8
- package/src/lib/constants/customProperties.js +9 -0
- package/src/lib/hooks/index.js +2 -0
- package/src/lib/hooks/useCustomProperties.js +73 -0
- package/src/lib/hooks/useMutateCustomProperties.js +62 -0
- package/src/lib/hooks/useRefdata.js +2 -8
- package/src/lib/utils/index.js +2 -0
- package/src/lib/utils/refdataOptions.js +7 -0
- package/translations/stripes-kint-components/en.json +49 -1
- package/artifacts/coverage-jest/lcov-report/base.css +0 -224
- package/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
- package/artifacts/coverage-jest/lcov-report/es/lib/ActionList/ActionList.js.html +0 -389
- package/artifacts/coverage-jest/lcov-report/es/lib/ActionList/ActionListFieldArray.js.html +0 -1076
- package/artifacts/coverage-jest/lcov-report/es/lib/ActionList/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/es/lib/ActionList/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableRefdataList/EditableRefdataList.js.html +0 -680
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableRefdataList/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableRefdataList/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/EditableSettingsList.js.html +0 -353
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -353
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -482
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -434
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/SettingField/SettingField.js.html +0 -644
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/SettingField/index.html +0 -162
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/SettingField/index.js.html +0 -188
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/es/lib/EditableSettingsList/index.js.html +0 -188
- package/artifacts/coverage-jest/lcov-report/es/lib/NoResultsMessage/NoResultsMessage.js.html +0 -449
- package/artifacts/coverage-jest/lcov-report/es/lib/NoResultsMessage/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/NoResultsMessage/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/QueryTypedown/QueryTypedown.js.html +0 -413
- package/artifacts/coverage-jest/lcov-report/es/lib/QueryTypedown/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/QueryTypedown/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/RefdataButtons/RefdataButtons.js.html +0 -512
- package/artifacts/coverage-jest/lcov-report/es/lib/RefdataButtons/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/RefdataButtons/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQLookupComponent/SASQLookupComponent.js.html +0 -1115
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQLookupComponent/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQLookupComponent/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQRoute/SASQRoute.js.html +0 -404
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQRoute/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQRoute/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQViewComponent/SASQViewComponent.js.html +0 -413
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQViewComponent/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/SASQViewComponent/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/SearchField/SearchField.js.html +0 -353
- package/artifacts/coverage-jest/lcov-report/es/lib/SearchField/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/SearchField/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/SettingPage/SettingPage.js.html +0 -380
- package/artifacts/coverage-jest/lcov-report/es/lib/SettingPage/SettingPagePane.js.html +0 -308
- package/artifacts/coverage-jest/lcov-report/es/lib/SettingPage/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/es/lib/SettingPage/index.js.html +0 -164
- package/artifacts/coverage-jest/lcov-report/es/lib/TypeDown/TypeDown.js.html +0 -839
- package/artifacts/coverage-jest/lcov-report/es/lib/TypeDown/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/TypeDown/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/Typedown/Typedown.js.html +0 -887
- package/artifacts/coverage-jest/lcov-report/es/lib/Typedown/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/Typedown/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/constants/eventCodes.js.html +0 -209
- package/artifacts/coverage-jest/lcov-report/es/lib/constants/index.html +0 -117
- package/artifacts/coverage-jest/lcov-report/es/lib/contexts/SettingsContext.js.html +0 -206
- package/artifacts/coverage-jest/lcov-report/es/lib/contexts/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/es/lib/contexts/index.js.html +0 -140
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/index.html +0 -252
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/index.js.html +0 -374
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/settingsHooks/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/settingsHooks/index.js.html +0 -164
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/settingsHooks/useSettingSection.js.html +0 -305
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/settingsHooks/useSettings.js.html +0 -584
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/typedownHooks/index.html +0 -162
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/typedownHooks/index.js.html +0 -188
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/typedownHooks/useTypedown.js.html +0 -644
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/typedownHooks/useTypedownData.js.html +0 -335
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/typedownHooks/useTypedownToggle.js.html +0 -350
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useActiveElement.js.html +0 -323
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useHelperApp.js.html +0 -488
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useKiwtFieldArray.js.html +0 -509
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useKiwtSASQuery.js.html +0 -467
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useLocalStorageState.js.html +0 -329
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useMutateRefdataValue.js.html +0 -488
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useQIndex.js.html +0 -407
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useRefdata.js.html +0 -401
- package/artifacts/coverage-jest/lcov-report/es/lib/hooks/useTemplates.js.html +0 -314
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/buildUrl.js.html +0 -296
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/generateKiwtQuery.js.html +0 -230
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/generateKiwtQueryParams.js.html +0 -545
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/getFocusableElements.js.html +0 -572
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/index.html +0 -237
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/index.js.html +0 -284
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/renderHelpText.js.html +0 -410
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/selectorSafe.js.html +0 -209
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/sortByLabel.js.html +0 -248
- package/artifacts/coverage-jest/lcov-report/es/lib/utils/toCamelCase.js.html +0 -227
- package/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/artifacts/coverage-jest/lcov-report/index.html +0 -717
- package/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
- package/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
- package/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
- package/artifacts/coverage-jest/lcov-report/src/index.html +0 -117
- package/artifacts/coverage-jest/lcov-report/src/lib/ActionList/ActionList.js.html +0 -248
- package/artifacts/coverage-jest/lcov-report/src/lib/ActionList/ActionListFieldArray.js.html +0 -764
- package/artifacts/coverage-jest/lcov-report/src/lib/ActionList/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/src/lib/ActionList/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableRefdataList/EditableRefdataList.js.html +0 -362
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableRefdataList/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableRefdataList/index.js.html +0 -86
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/EditableSettingsList.js.html +0 -224
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -212
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -308
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -260
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/SettingField/index.html +0 -162
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/SettingField/index.js.html +0 -95
- package/artifacts/coverage-jest/lcov-report/src/lib/EditableSettingsList/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/src/lib/NoResultsMessage/NoResultsMessage.js.html +0 -320
- package/artifacts/coverage-jest/lcov-report/src/lib/NoResultsMessage/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/NoResultsMessage/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/QueryTypedown/QueryTypedown.js.html +0 -185
- package/artifacts/coverage-jest/lcov-report/src/lib/QueryTypedown/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/QueryTypedown/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/RefdataButtons/RefdataButtons.js.html +0 -371
- package/artifacts/coverage-jest/lcov-report/src/lib/RefdataButtons/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/RefdataButtons/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQLookupComponent/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQLookupComponent/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQRoute/SASQRoute.js.html +0 -275
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQRoute/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQRoute/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQViewComponent/SASQViewComponent.js.html +0 -251
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQViewComponent/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/SASQViewComponent/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/SearchField/SearchField.js.html +0 -215
- package/artifacts/coverage-jest/lcov-report/src/lib/SearchField/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/SearchField/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/SettingPage/SettingPage.js.html +0 -212
- package/artifacts/coverage-jest/lcov-report/src/lib/SettingPage/SettingPagePane.js.html +0 -149
- package/artifacts/coverage-jest/lcov-report/src/lib/SettingPage/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/src/lib/SettingPage/index.js.html +0 -92
- package/artifacts/coverage-jest/lcov-report/src/lib/TypeDown/TypeDown.js.html +0 -764
- package/artifacts/coverage-jest/lcov-report/src/lib/TypeDown/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/TypeDown/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/Typedown/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/Typedown/index.js.html +0 -89
- package/artifacts/coverage-jest/lcov-report/src/lib/constants/eventCodes.js.html +0 -95
- package/artifacts/coverage-jest/lcov-report/src/lib/constants/index.html +0 -117
- package/artifacts/coverage-jest/lcov-report/src/lib/contexts/SettingsContext.js.html +0 -98
- package/artifacts/coverage-jest/lcov-report/src/lib/contexts/index.html +0 -132
- package/artifacts/coverage-jest/lcov-report/src/lib/contexts/index.js.html +0 -86
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/index.html +0 -252
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/index.js.html +0 -116
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/settingsHooks/index.html +0 -147
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/settingsHooks/index.js.html +0 -92
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/settingsHooks/useSettingSection.js.html +0 -164
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/settingsHooks/useSettings.js.html +0 -377
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/typedownHooks/useTypedownData.js.html +0 -164
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/typedownHooks/useTypedownToggle.js.html +0 -164
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useActiveElement.js.html +0 -158
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useHelperApp.js.html +0 -284
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useKiwtFieldArray.js.html +0 -275
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useKiwtSASQuery.js.html +0 -179
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useLocalStorageState.js.html +0 -137
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useQIndex.js.html +0 -209
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useTemplates.js.html +0 -167
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/buildUrl.js.html +0 -194
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/generateKiwtQuery.js.html +0 -110
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/generateKiwtQueryParams.js.html +0 -287
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/getFocusableElements.js.html +0 -380
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/index.html +0 -237
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/index.js.html +0 -116
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/renderHelpText.js.html +0 -167
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/selectorSafe.js.html +0 -104
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/toCamelCase.js.html +0 -128
- package/artifacts/coverage-jest/lcov.info +0 -10040
- package/es/lib/TypeDown/TypeDown.js +0 -251
- package/src/artifacts/coverage-jest/lcov-report/TypeDown/TypeDown.js.html +0 -770
- package/src/artifacts/coverage-jest/lcov-report/utils/getFocusableElements.js.html +0 -386
- package/src/lib/TypeDown/README.md +0 -1
- package/src/lib/TypeDown/TypeDown.js +0 -228
- package/src/lib/TypeDown/index.js +0 -1
- package/yarn-error.log +0 -15050
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for CustomProperties/Config/CustomPropertyForm.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,34 +19,34 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">CustomProperties/Config</a> CustomPropertyForm.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/27</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/54</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/9</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/24</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -345,7 +345,21 @@
|
|
|
345
345
|
<a name='L280'></a><a href='#L280'>280</a>
|
|
346
346
|
<a name='L281'></a><a href='#L281'>281</a>
|
|
347
347
|
<a name='L282'></a><a href='#L282'>282</a>
|
|
348
|
-
<a name='L283'></a><a href='#L283'>283</a
|
|
348
|
+
<a name='L283'></a><a href='#L283'>283</a>
|
|
349
|
+
<a name='L284'></a><a href='#L284'>284</a>
|
|
350
|
+
<a name='L285'></a><a href='#L285'>285</a>
|
|
351
|
+
<a name='L286'></a><a href='#L286'>286</a>
|
|
352
|
+
<a name='L287'></a><a href='#L287'>287</a>
|
|
353
|
+
<a name='L288'></a><a href='#L288'>288</a>
|
|
354
|
+
<a name='L289'></a><a href='#L289'>289</a>
|
|
355
|
+
<a name='L290'></a><a href='#L290'>290</a>
|
|
356
|
+
<a name='L291'></a><a href='#L291'>291</a>
|
|
357
|
+
<a name='L292'></a><a href='#L292'>292</a>
|
|
358
|
+
<a name='L293'></a><a href='#L293'>293</a>
|
|
359
|
+
<a name='L294'></a><a href='#L294'>294</a>
|
|
360
|
+
<a name='L295'></a><a href='#L295'>295</a>
|
|
361
|
+
<a name='L296'></a><a href='#L296'>296</a>
|
|
362
|
+
<a name='L297'></a><a href='#L297'>297</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
349
363
|
<span class="cline-any cline-neutral"> </span>
|
|
350
364
|
<span class="cline-any cline-neutral"> </span>
|
|
351
365
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -361,24 +375,38 @@
|
|
|
361
375
|
<span class="cline-any cline-neutral"> </span>
|
|
362
376
|
<span class="cline-any cline-neutral"> </span>
|
|
363
377
|
<span class="cline-any cline-neutral"> </span>
|
|
378
|
+
<span class="cline-any cline-no"> </span>
|
|
364
379
|
<span class="cline-any cline-neutral"> </span>
|
|
365
380
|
<span class="cline-any cline-neutral"> </span>
|
|
366
381
|
<span class="cline-any cline-neutral"> </span>
|
|
367
382
|
<span class="cline-any cline-neutral"> </span>
|
|
368
383
|
<span class="cline-any cline-neutral"> </span>
|
|
384
|
+
<span class="cline-any cline-no"> </span>
|
|
385
|
+
<span class="cline-any cline-no"> </span>
|
|
386
|
+
<span class="cline-any cline-no"> </span>
|
|
369
387
|
<span class="cline-any cline-neutral"> </span>
|
|
388
|
+
<span class="cline-any cline-no"> </span>
|
|
389
|
+
<span class="cline-any cline-no"> </span>
|
|
370
390
|
<span class="cline-any cline-neutral"> </span>
|
|
391
|
+
<span class="cline-any cline-no"> </span>
|
|
371
392
|
<span class="cline-any cline-neutral"> </span>
|
|
393
|
+
<span class="cline-any cline-no"> </span>
|
|
394
|
+
<span class="cline-any cline-no"> </span>
|
|
395
|
+
<span class="cline-any cline-no"> </span>
|
|
396
|
+
<span class="cline-any cline-no"> </span>
|
|
372
397
|
<span class="cline-any cline-neutral"> </span>
|
|
373
398
|
<span class="cline-any cline-neutral"> </span>
|
|
399
|
+
<span class="cline-any cline-no"> </span>
|
|
400
|
+
<span class="cline-any cline-no"> </span>
|
|
401
|
+
<span class="cline-any cline-no"> </span>
|
|
374
402
|
<span class="cline-any cline-neutral"> </span>
|
|
403
|
+
<span class="cline-any cline-no"> </span>
|
|
375
404
|
<span class="cline-any cline-neutral"> </span>
|
|
376
405
|
<span class="cline-any cline-neutral"> </span>
|
|
377
406
|
<span class="cline-any cline-neutral"> </span>
|
|
378
407
|
<span class="cline-any cline-no"> </span>
|
|
379
408
|
<span class="cline-any cline-neutral"> </span>
|
|
380
409
|
<span class="cline-any cline-neutral"> </span>
|
|
381
|
-
<span class="cline-any cline-no"> </span>
|
|
382
410
|
<span class="cline-any cline-neutral"> </span>
|
|
383
411
|
<span class="cline-any cline-neutral"> </span>
|
|
384
412
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -391,20 +419,10 @@
|
|
|
391
419
|
<span class="cline-any cline-neutral"> </span>
|
|
392
420
|
<span class="cline-any cline-neutral"> </span>
|
|
393
421
|
<span class="cline-any cline-neutral"> </span>
|
|
394
|
-
<span class="cline-any cline-no"> </span>
|
|
395
|
-
<span class="cline-any cline-no"> </span>
|
|
396
|
-
<span class="cline-any cline-no"> </span>
|
|
397
422
|
<span class="cline-any cline-neutral"> </span>
|
|
398
|
-
<span class="cline-any cline-no"> </span>
|
|
399
423
|
<span class="cline-any cline-neutral"> </span>
|
|
400
|
-
<span class="cline-any cline-no"> </span>
|
|
401
|
-
<span class="cline-any cline-no"> </span>
|
|
402
|
-
<span class="cline-any cline-no"> </span>
|
|
403
|
-
<span class="cline-any cline-no"> </span>
|
|
404
424
|
<span class="cline-any cline-neutral"> </span>
|
|
405
425
|
<span class="cline-any cline-neutral"> </span>
|
|
406
|
-
<span class="cline-any cline-no"> </span>
|
|
407
|
-
<span class="cline-any cline-no"> </span>
|
|
408
426
|
<span class="cline-any cline-neutral"> </span>
|
|
409
427
|
<span class="cline-any cline-neutral"> </span>
|
|
410
428
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -412,16 +430,17 @@
|
|
|
412
430
|
<span class="cline-any cline-neutral"> </span>
|
|
413
431
|
<span class="cline-any cline-neutral"> </span>
|
|
414
432
|
<span class="cline-any cline-neutral"> </span>
|
|
415
|
-
<span class="cline-any cline-no"> </span>
|
|
416
433
|
<span class="cline-any cline-neutral"> </span>
|
|
417
434
|
<span class="cline-any cline-neutral"> </span>
|
|
418
435
|
<span class="cline-any cline-neutral"> </span>
|
|
419
436
|
<span class="cline-any cline-neutral"> </span>
|
|
420
|
-
<span class="cline-any cline-
|
|
437
|
+
<span class="cline-any cline-neutral"> </span>
|
|
438
|
+
<span class="cline-any cline-neutral"> </span>
|
|
421
439
|
<span class="cline-any cline-neutral"> </span>
|
|
422
440
|
<span class="cline-any cline-no"> </span>
|
|
423
441
|
<span class="cline-any cline-no"> </span>
|
|
424
|
-
<span class="cline-any cline-
|
|
442
|
+
<span class="cline-any cline-neutral"> </span>
|
|
443
|
+
<span class="cline-any cline-neutral"> </span>
|
|
425
444
|
<span class="cline-any cline-neutral"> </span>
|
|
426
445
|
<span class="cline-any cline-neutral"> </span>
|
|
427
446
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -430,30 +449,20 @@
|
|
|
430
449
|
<span class="cline-any cline-neutral"> </span>
|
|
431
450
|
<span class="cline-any cline-neutral"> </span>
|
|
432
451
|
<span class="cline-any cline-neutral"> </span>
|
|
433
|
-
<span class="cline-any cline-no"> </span>
|
|
434
|
-
<span class="cline-any cline-no"> </span>
|
|
435
|
-
<span class="cline-any cline-no"> </span>
|
|
436
452
|
<span class="cline-any cline-neutral"> </span>
|
|
437
|
-
<span class="cline-any cline-no"> </span>
|
|
438
453
|
<span class="cline-any cline-neutral"> </span>
|
|
439
454
|
<span class="cline-any cline-neutral"> </span>
|
|
440
455
|
<span class="cline-any cline-neutral"> </span>
|
|
441
456
|
<span class="cline-any cline-neutral"> </span>
|
|
442
457
|
<span class="cline-any cline-neutral"> </span>
|
|
443
458
|
<span class="cline-any cline-neutral"> </span>
|
|
444
|
-
<span class="cline-any cline-no"> </span>
|
|
445
|
-
<span class="cline-any cline-no"> </span>
|
|
446
459
|
<span class="cline-any cline-neutral"> </span>
|
|
447
460
|
<span class="cline-any cline-neutral"> </span>
|
|
448
461
|
<span class="cline-any cline-neutral"> </span>
|
|
449
|
-
<span class="cline-any cline-no"> </span>
|
|
450
|
-
<span class="cline-any cline-no"> </span>
|
|
451
462
|
<span class="cline-any cline-neutral"> </span>
|
|
452
463
|
<span class="cline-any cline-neutral"> </span>
|
|
453
464
|
<span class="cline-any cline-neutral"> </span>
|
|
454
|
-
<span class="cline-any cline-no"> </span>
|
|
455
465
|
<span class="cline-any cline-neutral"> </span>
|
|
456
|
-
<span class="cline-any cline-no"> </span>
|
|
457
466
|
<span class="cline-any cline-neutral"> </span>
|
|
458
467
|
<span class="cline-any cline-neutral"> </span>
|
|
459
468
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -472,14 +481,8 @@
|
|
|
472
481
|
<span class="cline-any cline-neutral"> </span>
|
|
473
482
|
<span class="cline-any cline-neutral"> </span>
|
|
474
483
|
<span class="cline-any cline-neutral"> </span>
|
|
475
|
-
<span class="cline-any cline-no"> </span>
|
|
476
|
-
<span class="cline-any cline-no"> </span>
|
|
477
|
-
<span class="cline-any cline-no"> </span>
|
|
478
484
|
<span class="cline-any cline-neutral"> </span>
|
|
479
|
-
<span class="cline-any cline-no"> </span>
|
|
480
485
|
<span class="cline-any cline-neutral"> </span>
|
|
481
|
-
<span class="cline-any cline-no"> </span>
|
|
482
|
-
<span class="cline-any cline-no"> </span>
|
|
483
486
|
<span class="cline-any cline-neutral"> </span>
|
|
484
487
|
<span class="cline-any cline-neutral"> </span>
|
|
485
488
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -495,11 +498,9 @@
|
|
|
495
498
|
<span class="cline-any cline-neutral"> </span>
|
|
496
499
|
<span class="cline-any cline-neutral"> </span>
|
|
497
500
|
<span class="cline-any cline-neutral"> </span>
|
|
498
|
-
<span class="cline-any cline-no"> </span>
|
|
499
501
|
<span class="cline-any cline-neutral"> </span>
|
|
500
502
|
<span class="cline-any cline-neutral"> </span>
|
|
501
503
|
<span class="cline-any cline-neutral"> </span>
|
|
502
|
-
<span class="cline-any cline-no"> </span>
|
|
503
504
|
<span class="cline-any cline-neutral"> </span>
|
|
504
505
|
<span class="cline-any cline-neutral"> </span>
|
|
505
506
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -511,9 +512,7 @@
|
|
|
511
512
|
<span class="cline-any cline-neutral"> </span>
|
|
512
513
|
<span class="cline-any cline-neutral"> </span>
|
|
513
514
|
<span class="cline-any cline-neutral"> </span>
|
|
514
|
-
<span class="cline-any cline-no"> </span>
|
|
515
515
|
<span class="cline-any cline-neutral"> </span>
|
|
516
|
-
<span class="cline-any cline-no"> </span>
|
|
517
516
|
<span class="cline-any cline-neutral"> </span>
|
|
518
517
|
<span class="cline-any cline-neutral"> </span>
|
|
519
518
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -525,7 +524,6 @@
|
|
|
525
524
|
<span class="cline-any cline-neutral"> </span>
|
|
526
525
|
<span class="cline-any cline-neutral"> </span>
|
|
527
526
|
<span class="cline-any cline-neutral"> </span>
|
|
528
|
-
<span class="cline-any cline-no"> </span>
|
|
529
527
|
<span class="cline-any cline-neutral"> </span>
|
|
530
528
|
<span class="cline-any cline-neutral"> </span>
|
|
531
529
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -567,6 +565,37 @@
|
|
|
567
565
|
<span class="cline-any cline-neutral"> </span>
|
|
568
566
|
<span class="cline-any cline-neutral"> </span>
|
|
569
567
|
<span class="cline-any cline-neutral"> </span>
|
|
568
|
+
<span class="cline-any cline-no"> </span>
|
|
569
|
+
<span class="cline-any cline-no"> </span>
|
|
570
|
+
<span class="cline-any cline-neutral"> </span>
|
|
571
|
+
<span class="cline-any cline-no"> </span>
|
|
572
|
+
<span class="cline-any cline-neutral"> </span>
|
|
573
|
+
<span class="cline-any cline-neutral"> </span>
|
|
574
|
+
<span class="cline-any cline-no"> </span>
|
|
575
|
+
<span class="cline-any cline-neutral"> </span>
|
|
576
|
+
<span class="cline-any cline-neutral"> </span>
|
|
577
|
+
<span class="cline-any cline-neutral"> </span>
|
|
578
|
+
<span class="cline-any cline-neutral"> </span>
|
|
579
|
+
<span class="cline-any cline-neutral"> </span>
|
|
580
|
+
<span class="cline-any cline-neutral"> </span>
|
|
581
|
+
<span class="cline-any cline-neutral"> </span>
|
|
582
|
+
<span class="cline-any cline-neutral"> </span>
|
|
583
|
+
<span class="cline-any cline-neutral"> </span>
|
|
584
|
+
<span class="cline-any cline-neutral"> </span>
|
|
585
|
+
<span class="cline-any cline-neutral"> </span>
|
|
586
|
+
<span class="cline-any cline-neutral"> </span>
|
|
587
|
+
<span class="cline-any cline-neutral"> </span>
|
|
588
|
+
<span class="cline-any cline-neutral"> </span>
|
|
589
|
+
<span class="cline-any cline-neutral"> </span>
|
|
590
|
+
<span class="cline-any cline-neutral"> </span>
|
|
591
|
+
<span class="cline-any cline-neutral"> </span>
|
|
592
|
+
<span class="cline-any cline-neutral"> </span>
|
|
593
|
+
<span class="cline-any cline-neutral"> </span>
|
|
594
|
+
<span class="cline-any cline-neutral"> </span>
|
|
595
|
+
<span class="cline-any cline-neutral"> </span>
|
|
596
|
+
<span class="cline-any cline-neutral"> </span>
|
|
597
|
+
<span class="cline-any cline-neutral"> </span>
|
|
598
|
+
<span class="cline-any cline-neutral"> </span>
|
|
570
599
|
<span class="cline-any cline-neutral"> </span>
|
|
571
600
|
<span class="cline-any cline-neutral"> </span>
|
|
572
601
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -580,7 +609,6 @@
|
|
|
580
609
|
<span class="cline-any cline-neutral"> </span>
|
|
581
610
|
<span class="cline-any cline-neutral"> </span>
|
|
582
611
|
<span class="cline-any cline-neutral"> </span>
|
|
583
|
-
<span class="cline-any cline-no"> </span>
|
|
584
612
|
<span class="cline-any cline-neutral"> </span>
|
|
585
613
|
<span class="cline-any cline-neutral"> </span>
|
|
586
614
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -599,7 +627,6 @@
|
|
|
599
627
|
<span class="cline-any cline-neutral"> </span>
|
|
600
628
|
<span class="cline-any cline-neutral"> </span>
|
|
601
629
|
<span class="cline-any cline-neutral"> </span>
|
|
602
|
-
<span class="cline-any cline-no"> </span>
|
|
603
630
|
<span class="cline-any cline-neutral"> </span>
|
|
604
631
|
<span class="cline-any cline-neutral"> </span>
|
|
605
632
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -620,6 +647,7 @@
|
|
|
620
647
|
<span class="cline-any cline-neutral"> </span>
|
|
621
648
|
<span class="cline-any cline-neutral"> </span>
|
|
622
649
|
<span class="cline-any cline-neutral"> </span>
|
|
650
|
+
<span class="cline-any cline-no"> </span>
|
|
623
651
|
<span class="cline-any cline-neutral"> </span>
|
|
624
652
|
<span class="cline-any cline-neutral"> </span>
|
|
625
653
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -627,306 +655,319 @@
|
|
|
627
655
|
<span class="cline-any cline-neutral"> </span>
|
|
628
656
|
<span class="cline-any cline-neutral"> </span>
|
|
629
657
|
<span class="cline-any cline-neutral"> </span>
|
|
630
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import
|
|
658
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { useState } from 'react';
|
|
631
659
|
import PropTypes from 'prop-types';
|
|
632
|
-
import { FormattedMessage } from 'react-intl';
|
|
633
|
-
import {
|
|
634
|
-
|
|
635
|
-
import {
|
|
636
|
-
useNamespace,
|
|
637
|
-
useOkapiKy
|
|
638
|
-
} from '@folio/stripes/core';
|
|
639
|
-
|
|
640
|
-
import {
|
|
641
|
-
SearchAndSortQuery,
|
|
642
|
-
PersistedPaneset,
|
|
643
|
-
} from '@folio/stripes/smart-components';
|
|
660
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
661
|
+
import { Field, useFormState, useForm } from 'react-final-form';
|
|
644
662
|
|
|
645
663
|
import {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
664
|
+
Col,
|
|
665
|
+
InfoPopover,
|
|
666
|
+
MultiSelection,
|
|
667
|
+
Row,
|
|
668
|
+
Select,
|
|
669
|
+
TextArea,
|
|
670
|
+
TextField
|
|
653
671
|
} from '@folio/stripes/components';
|
|
654
|
-
import {
|
|
655
|
-
|
|
656
|
-
import { generateKiwtQuery } from '../utils';
|
|
657
|
-
import { useKiwtSASQuery, useLocalStorageState } from '../hooks';
|
|
672
|
+
import { requiredValidator } from '@folio/stripes-erm-components';
|
|
658
673
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
history,
|
|
665
|
-
id,
|
|
666
|
-
location,
|
|
667
|
-
mainPaneProps,
|
|
668
|
-
match,
|
|
669
|
-
mclProps,
|
|
670
|
-
noSearchField,
|
|
671
|
-
path,
|
|
672
|
-
resultColumns = <span class="branch-0 cbranch-no" title="branch not covered" >[],</span>
|
|
673
|
-
RenderBody,
|
|
674
|
-
sasqProps,
|
|
674
|
+
const CustomPropertyForm = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
|
|
675
|
+
contextFilterOptions,
|
|
676
|
+
helpPopovers,
|
|
677
|
+
labelOverrides,
|
|
678
|
+
refdata
|
|
675
679
|
}) => {
|
|
676
|
-
const {
|
|
677
|
-
const {
|
|
678
|
-
const
|
|
679
|
-
|
|
680
|
-
const filterPaneVisibileKey = <span class="cstat-no" title="statement not covered" >`${namespace}-${id}-filterPaneVisibility`;</span>
|
|
681
|
-
|
|
682
|
-
const fetchPageData = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span> pageParam = <span class="branch-0 cbranch-no" title="branch not covered" >0 </span>}) => {</span>
|
|
683
|
-
const queryMap = <span class="cstat-no" title="statement not covered" >fetchParameters.SASQ_MAP;</span>
|
|
684
|
-
<span class="cstat-no" title="statement not covered" > queryMap.offset = pageParam;</span>
|
|
685
|
-
<span class="cstat-no" title="statement not covered" > return ky(`${fetchParameters.endpoint}${generateKiwtQuery(queryMap, query)}`).json();</span>
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
const [filterPaneVisible, setFilterPaneVisible] = <span class="cstat-no" title="statement not covered" >useLocalStorageState(filterPaneVisibileKey, true);</span>
|
|
689
|
-
const toggleFilterPane = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >setFilterPaneVisible(!filterPaneVisible);</span></span>
|
|
690
|
-
|
|
691
|
-
const {
|
|
692
|
-
data: totalData = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
693
|
-
error,
|
|
694
|
-
isError,
|
|
695
|
-
isLoading,
|
|
696
|
-
fetchNextPage,
|
|
697
|
-
} = <span class="cstat-no" title="statement not covered" >useInfiniteQuery(</span>
|
|
698
|
-
[namespace, id, 'data', query],
|
|
699
|
-
fetchPageData
|
|
700
|
-
);
|
|
701
|
-
|
|
702
|
-
const data = <span class="cstat-no" title="statement not covered" >totalData.pages?.reduce(</span>
|
|
703
|
-
<span class="fstat-no" title="function not covered" > (a</span>cc, curr) => {
|
|
704
|
-
const newAcc = <span class="cstat-no" title="statement not covered" >{ ...acc };</span>
|
|
705
|
-
<span class="cstat-no" title="statement not covered" > for (const [key, value] of Object.entries(curr)) {</span>
|
|
706
|
-
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
707
|
-
key !== 'page' &&
|
|
708
|
-
key !== 'result' &&
|
|
709
|
-
acc[key] !== value
|
|
710
|
-
) {
|
|
711
|
-
<span class="cstat-no" title="statement not covered" > newAcc[key] = value;</span>
|
|
712
|
-
}
|
|
713
|
-
}
|
|
680
|
+
const { values } = <span class="cstat-no" title="statement not covered" >useFormState();</span>
|
|
681
|
+
const { change } = <span class="cstat-no" title="statement not covered" >useForm();</span>
|
|
682
|
+
const intl = <span class="cstat-no" title="statement not covered" >useIntl();</span>
|
|
714
683
|
|
|
715
|
-
|
|
716
|
-
<span class="cstat-no" title="statement not covered" >
|
|
717
|
-
<span class="cstat-no" title="statement not covered" > newAcc.results = newResults;</span>
|
|
684
|
+
const booleanToString = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >bo</span>oleanValue => <span class="cstat-no" title="statement not covered" >booleanValue?.toString();</span></span>
|
|
685
|
+
const stringToBoolean = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >st</span>ringValue => <span class="cstat-no" title="statement not covered" >stringValue === 'true';</span></span>
|
|
718
686
|
|
|
719
|
-
<span class="cstat-no" title="statement not covered" >
|
|
720
|
-
},
|
|
721
|
-
{}
|
|
722
|
-
) ?? {};
|
|
687
|
+
const [contextOptions, setContextOptions] = <span class="cstat-no" title="statement not covered" >useState(contextFilterOptions?.filter(<span class="fstat-no" title="function not covered" >ct</span>x => <span class="cstat-no" title="statement not covered" >ctx.value !== '' && ctx?.value !== 'isNull')</span>);</span>
|
|
723
688
|
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
<span class="cstat-no" title="statement not covered" >
|
|
689
|
+
const addCtx = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span> _r, _e, filterText }) => {</span>
|
|
690
|
+
const newOption = <span class="cstat-no" title="statement not covered" >{ value: filterText, label: filterText };</span>
|
|
691
|
+
<span class="cstat-no" title="statement not covered" > setContextOptions([newOption, ...contextOptions]);</span>
|
|
692
|
+
<span class="cstat-no" title="statement not covered" > change('ctx', [newOption]);</span>
|
|
728
693
|
};
|
|
729
694
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
&
|
|
735
|
-
|
|
736
|
-
|
|
695
|
+
const renderAddCtx = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span> filterValue, exactMatch }) => {</span>
|
|
696
|
+
<span class="cstat-no" title="statement not covered" > if (!filterValue || exactMatch) {</span>
|
|
697
|
+
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
698
|
+
} else {
|
|
699
|
+
<span class="cstat-no" title="statement not covered" > return <FormattedMessage id="stripes-kint-components.customProperties.ctx.addContext" values={{ value: filterValue }} />;</span>
|
|
700
|
+
}
|
|
701
|
+
};
|
|
737
702
|
|
|
738
703
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
739
|
-
<
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}}
|
|
778
|
-
/>
|
|
704
|
+
<>
|
|
705
|
+
<Row>
|
|
706
|
+
<Col xs={6}>
|
|
707
|
+
<Field
|
|
708
|
+
component={TextField}
|
|
709
|
+
label={labelOverrides?.label ??
|
|
710
|
+
<FormattedMessage id="stripes-kint-components.customProperties.label" />
|
|
711
|
+
}
|
|
712
|
+
name="label"
|
|
713
|
+
required
|
|
714
|
+
startControl={helpPopovers?.label ?
|
|
715
|
+
<InfoPopover
|
|
716
|
+
content={helpPopovers?.label}
|
|
717
|
+
/> : null
|
|
718
|
+
}
|
|
719
|
+
validate={requiredValidator}
|
|
720
|
+
/>
|
|
721
|
+
</Col>
|
|
722
|
+
<Col xs={6}>
|
|
723
|
+
<Field
|
|
724
|
+
component={TextField}
|
|
725
|
+
label={labelOverrides?.name ??
|
|
726
|
+
<FormattedMessage id="stripes-kint-components.customProperties.name" />
|
|
727
|
+
}
|
|
728
|
+
name="name"
|
|
729
|
+
required
|
|
730
|
+
startControl={helpPopovers?.name ?
|
|
731
|
+
<InfoPopover
|
|
732
|
+
content={helpPopovers?.name}
|
|
733
|
+
/> : null
|
|
734
|
+
}
|
|
735
|
+
validate={<span class="fstat-no" title="function not covered" >v </span>=> {
|
|
736
|
+
<span class="cstat-no" title="statement not covered" > if (v && v.length) {</span>
|
|
737
|
+
<span class="cstat-no" title="statement not covered" > return /^[a-z][a-z0-9]*$/i.test(v) ? (</span>
|
|
738
|
+
undefined
|
|
739
|
+
) : (
|
|
740
|
+
<FormattedMessage id="stripes-kint-components.errors.hasNonAlphaName" />
|
|
741
|
+
);
|
|
779
742
|
}
|
|
780
|
-
isSelected={<span class="fstat-no" title="function not covered" >({</span> item }) => <span class="cstat-no" title="statement not covered" >item.id === match?.params?.id}</span>
|
|
781
|
-
onHeaderClick={onSort}
|
|
782
|
-
onNeedMoreData={onNeedMoreData}
|
|
783
|
-
onRowClick={<span class="fstat-no" title="function not covered" >(_</span>e, rowData) => {
|
|
784
|
-
<span class="cstat-no" title="statement not covered" > history.push(`${path}/${rowData?.id}${location?.search}`);</span>
|
|
785
|
-
}}
|
|
786
|
-
pagingType="click"
|
|
787
|
-
sortDirection={sortOrder.startsWith('-') ? 'descending' : 'ascending'}
|
|
788
|
-
sortOrder={sortOrder.replace(/^-/, '').replace(/,.*/, '')}
|
|
789
|
-
totalCount={data.totalRecords}
|
|
790
|
-
virtualize
|
|
791
|
-
visibleColumns={visibleColumns}
|
|
792
|
-
{...mclProps}
|
|
793
|
-
/>
|
|
794
|
-
);
|
|
795
743
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
744
|
+
<span class="cstat-no" title="statement not covered" > return requiredValidator(v);</span>
|
|
745
|
+
}}
|
|
746
|
+
/>
|
|
747
|
+
</Col>
|
|
748
|
+
</Row>
|
|
749
|
+
<Row>
|
|
750
|
+
<Col xs={12}>
|
|
751
|
+
<Field
|
|
752
|
+
component={TextArea}
|
|
753
|
+
label={labelOverrides?.description ??
|
|
754
|
+
<FormattedMessage id="stripes-kint-components.customProperties.description" />
|
|
755
|
+
}
|
|
756
|
+
name="description"
|
|
757
|
+
required
|
|
758
|
+
startControl={helpPopovers?.description ?
|
|
759
|
+
<InfoPopover
|
|
760
|
+
content={helpPopovers?.description}
|
|
761
|
+
/> : null
|
|
762
|
+
}
|
|
763
|
+
validate={requiredValidator}
|
|
764
|
+
/>
|
|
765
|
+
</Col>
|
|
766
|
+
</Row>
|
|
767
|
+
<Row>
|
|
768
|
+
<Col xs={3}>
|
|
769
|
+
<Field
|
|
770
|
+
component={TextField}
|
|
771
|
+
label={labelOverrides?.weight ??
|
|
772
|
+
<FormattedMessage id="stripes-kint-components.customProperties.weight" />
|
|
773
|
+
}
|
|
774
|
+
name="weight"
|
|
775
|
+
required
|
|
776
|
+
startControl={helpPopovers?.weight ?
|
|
777
|
+
<InfoPopover
|
|
778
|
+
content={helpPopovers?.weight}
|
|
779
|
+
/> : null
|
|
780
|
+
}
|
|
781
|
+
type="number"
|
|
782
|
+
validate={requiredValidator}
|
|
783
|
+
/>
|
|
784
|
+
</Col>
|
|
785
|
+
<Col xs={3}>
|
|
786
|
+
<Field
|
|
787
|
+
component={Select}
|
|
788
|
+
dataOptions={[
|
|
789
|
+
{
|
|
790
|
+
label: intl.formatMessage({
|
|
791
|
+
id: 'stripes-kint-components.yes',
|
|
792
|
+
}),
|
|
793
|
+
value: 'true',
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
label: intl.formatMessage({
|
|
797
|
+
id: 'stripes-kint-components.no',
|
|
798
|
+
}),
|
|
799
|
+
value: 'false',
|
|
800
|
+
},
|
|
801
|
+
]}
|
|
802
|
+
format={booleanToString}
|
|
803
|
+
label={labelOverrides?.primary ??
|
|
804
|
+
<FormattedMessage
|
|
805
|
+
id="stripes-kint-components.customProperties.primary"
|
|
806
|
+
/>
|
|
807
|
+
}
|
|
808
|
+
name="primary"
|
|
809
|
+
parse={stringToBoolean}
|
|
810
|
+
required
|
|
811
|
+
startControl={helpPopovers?.primary ?
|
|
812
|
+
<InfoPopover
|
|
813
|
+
content={helpPopovers?.primary}
|
|
814
|
+
/> : null
|
|
815
|
+
}
|
|
816
|
+
validate={requiredValidator}
|
|
817
|
+
/>
|
|
818
|
+
</Col>
|
|
819
|
+
<Col xs={3}>
|
|
820
|
+
<Field
|
|
821
|
+
component={Select}
|
|
822
|
+
dataOptions={[
|
|
823
|
+
{
|
|
824
|
+
label: intl.formatMessage({
|
|
825
|
+
id:
|
|
826
|
+
'stripes-kint-components.customProperties.internalTrue',
|
|
827
|
+
}),
|
|
828
|
+
value: 'true',
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
label: intl.formatMessage({
|
|
832
|
+
id:
|
|
833
|
+
'stripes-kint-components.customProperties.internalFalse',
|
|
834
|
+
}),
|
|
835
|
+
value: 'false',
|
|
836
|
+
},
|
|
837
|
+
]}
|
|
838
|
+
format={booleanToString}
|
|
839
|
+
label={labelOverrides?.defaultVisibility ??
|
|
840
|
+
<FormattedMessage id="stripes-kint-components.customProperties.defaultVisibility" />
|
|
841
|
+
}
|
|
842
|
+
name="defaultInternal"
|
|
843
|
+
parse={stringToBoolean}
|
|
844
|
+
required
|
|
845
|
+
startControl={helpPopovers?.defaultVisibility ?
|
|
846
|
+
<InfoPopover
|
|
847
|
+
content={helpPopovers?.defaultVisibility}
|
|
848
|
+
/> : null
|
|
849
|
+
}
|
|
850
|
+
validate={requiredValidator}
|
|
851
|
+
/>
|
|
852
|
+
</Col>
|
|
853
|
+
<Col xs={3}>
|
|
854
|
+
<Field
|
|
855
|
+
actions={[{ onSelect: addCtx, render: renderAddCtx }]}
|
|
856
|
+
component={MultiSelection}
|
|
857
|
+
dataOptions={contextOptions}
|
|
858
|
+
emptyMessage={intl.formatMessage({ id: 'stripes-kint-components.customProperties.noCtxFound' })}
|
|
859
|
+
label={labelOverrides?.ctx ??
|
|
860
|
+
<FormattedMessage id="stripes-kint-components.customProperties.ctx" />
|
|
861
|
+
}
|
|
862
|
+
name="ctx"
|
|
863
|
+
onChange={<span class="fstat-no" title="function not covered" >(s</span>electedItems) => {
|
|
864
|
+
<span class="cstat-no" title="statement not covered" > if (selectedItems.length) {</span>
|
|
865
|
+
<span class="cstat-no" title="statement not covered" > change('ctx', [selectedItems?.[selectedItems?.length - 1]]);</span>
|
|
866
|
+
} else {
|
|
867
|
+
<span class="cstat-no" title="statement not covered" > change('ctx', undefined);</span>
|
|
857
868
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
{
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
869
|
+
}}
|
|
870
|
+
validate={<span class="fstat-no" title="function not covered" >va</span>lue => (<span class="cstat-no" title="statement not covered" >value?.length > 1 ? <FormattedMessage id="stripes-kint-components.customProperties.ctx.error.moreThanOne" /> : null)</span>}
|
|
871
|
+
/>
|
|
872
|
+
</Col>
|
|
873
|
+
</Row>
|
|
874
|
+
{/* Users can only configure the type of a custom property when creating it, not when editing it */}
|
|
875
|
+
{!values?.id && (
|
|
876
|
+
<Row>
|
|
877
|
+
<Col xs={6}>
|
|
878
|
+
<Field
|
|
879
|
+
component={Select}
|
|
880
|
+
dataOptions={[
|
|
881
|
+
{ label: '', value: '' },
|
|
882
|
+
{
|
|
883
|
+
label: intl.formatMessage({
|
|
884
|
+
id: 'stripes-kint-components.customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal',
|
|
885
|
+
}),
|
|
886
|
+
value: 'Decimal',
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
label: intl.formatMessage({
|
|
890
|
+
id: 'stripes-kint-components.customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyInteger',
|
|
891
|
+
}),
|
|
892
|
+
value: 'Integer',
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
label: intl.formatMessage({
|
|
896
|
+
id: 'stripes-kint-components.customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyText',
|
|
897
|
+
}),
|
|
898
|
+
value: 'Text',
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
label: intl.formatMessage({
|
|
902
|
+
id: 'stripes-kint-components.customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata',
|
|
903
|
+
}),
|
|
904
|
+
value: 'Refdata',
|
|
905
|
+
},
|
|
906
|
+
]
|
|
907
|
+
}
|
|
908
|
+
label={labelOverrides?.type ??
|
|
909
|
+
<FormattedMessage id="stripes-kint-components.customProperties.type" />
|
|
910
|
+
}
|
|
911
|
+
name="type"
|
|
912
|
+
required
|
|
913
|
+
startControl={helpPopovers?.type ?
|
|
914
|
+
<InfoPopover
|
|
915
|
+
content={helpPopovers?.type}
|
|
916
|
+
/> : null
|
|
917
|
+
}
|
|
918
|
+
validate={requiredValidator}
|
|
919
|
+
/>
|
|
920
|
+
</Col>
|
|
921
|
+
<Col xs={6}>
|
|
922
|
+
{values?.type === 'Refdata' && (
|
|
923
|
+
<Field
|
|
924
|
+
component={Select}
|
|
925
|
+
dataOptions={[{ label: '', value: '' }, ...refdata]}
|
|
926
|
+
label={labelOverrides?.category ??
|
|
927
|
+
<FormattedMessage id="stripes-kint-components.customProperties.category" />
|
|
928
|
+
}
|
|
929
|
+
name="category"
|
|
930
|
+
required
|
|
931
|
+
startControl={helpPopovers?.category ?
|
|
932
|
+
<InfoPopover
|
|
933
|
+
content={helpPopovers?.category}
|
|
934
|
+
/> : null
|
|
935
|
+
}
|
|
936
|
+
validate={requiredValidator}
|
|
937
|
+
/>
|
|
938
|
+
)}
|
|
939
|
+
</Col>
|
|
940
|
+
</Row>
|
|
941
|
+
)}
|
|
942
|
+
</>
|
|
881
943
|
);
|
|
882
944
|
};
|
|
883
945
|
|
|
884
|
-
<span class="cstat-no" title="statement not covered" >
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
fetchParameters: PropTypes.object,
|
|
890
|
-
FilterComponent: PropTypes.oneOfType([
|
|
891
|
-
PropTypes.func,
|
|
892
|
-
PropTypes.node
|
|
893
|
-
]),
|
|
894
|
-
history: PropTypes.object,
|
|
895
|
-
id: PropTypes.string.isRequired,
|
|
896
|
-
location: PropTypes.object,
|
|
897
|
-
mainPaneProps: PropTypes.object,
|
|
898
|
-
match: PropTypes.object,
|
|
899
|
-
mclProps: PropTypes.object,
|
|
900
|
-
noSearchField: PropTypes.bool,
|
|
901
|
-
path: PropTypes.string.isRequired,
|
|
902
|
-
RenderBody: PropTypes.oneOfType([
|
|
903
|
-
PropTypes.func,
|
|
904
|
-
PropTypes.node
|
|
905
|
-
]),
|
|
906
|
-
resource: PropTypes.object,
|
|
907
|
-
resultColumns: PropTypes.arrayOf(PropTypes.object),
|
|
908
|
-
sasqProps: PropTypes.object
|
|
946
|
+
<span class="cstat-no" title="statement not covered" >CustomPropertyForm.propTypes = {</span>
|
|
947
|
+
contextFilterOptions: PropTypes.arrayOf(PropTypes.string),
|
|
948
|
+
helpPopovers: PropTypes.object,
|
|
949
|
+
labelOverrides: PropTypes.object,
|
|
950
|
+
refdata: PropTypes.arrayOf(PropTypes.object)
|
|
909
951
|
};
|
|
910
952
|
|
|
911
|
-
export default
|
|
953
|
+
export default CustomPropertyForm;
|
|
912
954
|
</pre></td></tr></table></pre>
|
|
913
955
|
|
|
914
956
|
<div class='push'></div><!-- for sticky footer -->
|
|
915
957
|
</div><!-- /wrapper -->
|
|
916
958
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
917
959
|
Code coverage generated by
|
|
918
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
919
|
-
at
|
|
960
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
961
|
+
at Tue Mar 08 2022 11:38:49 GMT+0000 (Greenwich Mean Time)
|
|
920
962
|
</div>
|
|
921
|
-
|
|
922
|
-
<script src="../../../prettify.js"></script>
|
|
963
|
+
<script src="../../prettify.js"></script>
|
|
923
964
|
<script>
|
|
924
965
|
window.onload = function () {
|
|
925
966
|
prettyPrint();
|
|
926
967
|
};
|
|
927
968
|
</script>
|
|
928
|
-
<script src="
|
|
929
|
-
<script src="
|
|
969
|
+
<script src="../../sorter.js"></script>
|
|
970
|
+
<script src="../../block-navigation.js"></script>
|
|
930
971
|
</body>
|
|
931
972
|
</html>
|
|
932
973
|
|