@k-int/stripes-kint-components 2.8.6 → 2.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/es/index.js +70 -71
- package/es/lib/ActionList/ActionList.js +37 -49
- package/es/lib/ActionList/ActionListFieldArray.js +124 -164
- package/es/lib/ActionList/index.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +62 -89
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +17 -24
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +114 -167
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +37 -89
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +85 -102
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +90 -122
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +36 -37
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +50 -156
- package/es/lib/CustomProperties/Config/index.js +4 -4
- package/es/lib/CustomProperties/Config/testResources.js +13 -21
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +16 -19
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +14 -23
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +30 -31
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +14 -23
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +82 -104
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +29 -75
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +131 -131
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +90 -178
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +40 -43
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +20 -21
- package/es/lib/CustomProperties/Edit/index.js +5 -5
- package/es/lib/CustomProperties/Edit/testResources.js +15 -29
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +66 -96
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +23 -63
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +50 -75
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +7 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +33 -33
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +18 -49
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +18 -22
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +20 -52
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +42 -46
- 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 +36 -42
- package/es/lib/CustomProperties/Filter/useOperators.js +17 -19
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +17 -32
- package/es/lib/CustomProperties/Filter/useValueProps.js +21 -25
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +16 -19
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +11 -16
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +60 -79
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +17 -30
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +30 -41
- 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 +98 -157
- package/es/lib/EditableRefdataCategoryList/index.js +1 -1
- package/es/lib/EditableRefdataList/EditableRefdataList.js +110 -172
- package/es/lib/EditableRefdataList/index.js +1 -1
- package/es/lib/EditableSettingsList/EditableSettingsList.js +12 -9
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +16 -22
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +61 -96
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +23 -36
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +99 -83
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +19 -24
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +187 -299
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +43 -57
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +60 -106
- package/es/lib/EditableSettingsList/SettingField/index.js +3 -3
- package/es/lib/EditableSettingsList/index.js +3 -3
- package/es/lib/FormModal/FormModal.js +43 -48
- package/es/lib/FormModal/index.js +1 -1
- package/es/lib/IconSelect/IconSelect.js +50 -76
- package/es/lib/IconSelect/index.js +1 -1
- package/es/lib/NoResultsMessage/NoResultsMessage.js +18 -17
- 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/RichSelect/RichSelect.js +77 -99
- package/es/lib/RichSelect/index.js +2 -2
- package/es/lib/RichSelect/useSelectedOption.js +5 -16
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +84 -113
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +39 -47
- package/es/lib/SASQLookupComponent/TableBody/index.js +1 -1
- package/es/lib/SASQLookupComponent/index.js +2 -2
- package/es/lib/SASQRoute/SASQRoute.js +26 -32
- package/es/lib/SASQRoute/index.js +1 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +29 -40
- 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 +17 -15
- package/es/lib/SettingPage/SettingPagePane.js +13 -12
- 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/index.js +17 -17
- 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 +56 -69
- 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/useAvailableCustomProperties.js +10 -25
- package/es/lib/hooks/useCustomProperties.js +23 -32
- package/es/lib/hooks/useHelperApp.js +31 -51
- package/es/lib/hooks/useInvalidateRefdata.js +4 -7
- 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/useTemplates.js +16 -16
- package/es/lib/utils/buildUrl.js +9 -11
- 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 +15 -15
- 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/renderHelpText.js +32 -53
- 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 +28 -34
- package/package.json +24 -9
- 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 -559
- 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 -991
- 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 -4951
|
@@ -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
|
});
|
|
@@ -12,69 +11,54 @@ var _components = require("@folio/stripes/components");
|
|
|
12
11
|
var CUSTOM_PROPERTY_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
|
|
13
12
|
var _validators = require("../../utils/validators");
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
14
|
+
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); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
index = _ref.index,
|
|
35
|
-
_ref$labelOverrides = _ref.labelOverrides,
|
|
36
|
-
labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides,
|
|
37
|
-
name = _ref.name,
|
|
38
|
-
_onChange = _ref.onChange,
|
|
39
|
-
value = _ref.value,
|
|
40
|
-
setCustomProperties = _ref.setCustomProperties;
|
|
41
|
-
var intl = (0, _reactIntl.useIntl)();
|
|
42
|
-
var getCustomProperty = function getCustomProperty(customPropertyValue) {
|
|
43
|
-
return availableCustomProperties.find(function (cp) {
|
|
44
|
-
return cp.value === customPropertyValue;
|
|
45
|
-
});
|
|
17
|
+
const CustomPropertyField = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
availableCustomProperties,
|
|
20
|
+
customProperty,
|
|
21
|
+
customPropertyType,
|
|
22
|
+
customProperties,
|
|
23
|
+
index,
|
|
24
|
+
labelOverrides = {},
|
|
25
|
+
name,
|
|
26
|
+
onChange,
|
|
27
|
+
value,
|
|
28
|
+
setCustomProperties
|
|
29
|
+
} = _ref;
|
|
30
|
+
const intl = (0, _reactIntl.useIntl)();
|
|
31
|
+
const getCustomProperty = customPropertyValue => {
|
|
32
|
+
return availableCustomProperties.find(cp => cp.value === customPropertyValue);
|
|
46
33
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
var unsetCustomProperties = availableCustomProperties.filter(function (t) {
|
|
50
|
-
var _custPropValue$;
|
|
34
|
+
const renderCustomPropertyName = () => {
|
|
35
|
+
const unsetCustomProperties = availableCustomProperties.filter(t => {
|
|
51
36
|
// Only optional properties can be set
|
|
52
37
|
if (t.primary) return false;
|
|
53
|
-
|
|
38
|
+
const custPropValue = value[t.value];
|
|
54
39
|
|
|
55
40
|
// The customProperty is unset and has no value.
|
|
56
41
|
if (custPropValue === undefined) return true;
|
|
57
42
|
|
|
58
43
|
// The customProperty is set but is marked for deletion. Allow reuse.
|
|
59
|
-
if (
|
|
44
|
+
if (custPropValue[0]?._delete) return true;
|
|
60
45
|
return false;
|
|
61
46
|
});
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
const customPropertyValue = value[customProperty.value];
|
|
48
|
+
const id = customPropertyValue?.[0]?.id;
|
|
64
49
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
|
|
65
50
|
autoFocus: !id,
|
|
66
|
-
dataOptions: [customProperty]
|
|
51
|
+
dataOptions: [customProperty, ...unsetCustomProperties] // The selected customProperty, and the available unset customProperties
|
|
67
52
|
,
|
|
68
|
-
id:
|
|
69
|
-
label:
|
|
53
|
+
id: `edit-customproperty-${index}-name`,
|
|
54
|
+
label: labelOverrides.name ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
70
55
|
id: "stripes-kint-components.customProperty.name"
|
|
71
56
|
}),
|
|
72
|
-
onChange:
|
|
73
|
-
|
|
74
|
-
var newValue = e.target.value;
|
|
57
|
+
onChange: e => {
|
|
58
|
+
const newValue = e.target.value;
|
|
75
59
|
|
|
76
60
|
// Update `state.customProperties` which controls what customProperties are being edited.
|
|
77
|
-
|
|
61
|
+
const newCustomProperties = [...customProperties];
|
|
78
62
|
newCustomProperties[index] = getCustomProperty(newValue);
|
|
79
63
|
setCustomProperties(newCustomProperties);
|
|
80
64
|
|
|
@@ -82,58 +66,65 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
82
66
|
// in essence we're deleting a customProperty and creating a new customProperty.
|
|
83
67
|
// We do this by 1) marking the current customProperty for deletion and 2) initing
|
|
84
68
|
// the new customProperty to an empty object.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
69
|
+
const currentValue = value[customProperty.value] ? value[customProperty.value][0] : {};
|
|
70
|
+
onChange({
|
|
71
|
+
...value,
|
|
72
|
+
[customProperty.value]: [{
|
|
73
|
+
id: currentValue.id,
|
|
74
|
+
_delete: true
|
|
75
|
+
}],
|
|
76
|
+
[newValue]: [{}]
|
|
77
|
+
});
|
|
90
78
|
},
|
|
91
79
|
required: true,
|
|
92
80
|
value: customProperty.value
|
|
93
81
|
});
|
|
94
82
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var max = Number.MAX_SAFE_INTEGER;
|
|
83
|
+
const renderCustomPropertyValue = () => {
|
|
84
|
+
const currentValue = value[customProperty.value] ? value[customProperty.value][0] : {};
|
|
85
|
+
const min = Number.MIN_SAFE_INTEGER;
|
|
86
|
+
const max = Number.MAX_SAFE_INTEGER;
|
|
100
87
|
|
|
101
88
|
// Default change handler
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
89
|
+
let handleChange = e => {
|
|
90
|
+
onChange({
|
|
91
|
+
...value,
|
|
92
|
+
[customProperty.value]: [{
|
|
93
|
+
...currentValue,
|
|
94
|
+
_delete: e.target.value === '',
|
|
95
|
+
// Delete customProperty if removing the value.
|
|
96
|
+
value: e.target.value // send down the number for integers and decimal types
|
|
97
|
+
}]
|
|
98
|
+
});
|
|
108
99
|
};
|
|
109
100
|
// Figure out which component we're rendering and specify its unique props.
|
|
110
|
-
|
|
101
|
+
let fieldProps;
|
|
111
102
|
switch (customProperty.type) {
|
|
112
103
|
case CUSTOM_PROPERTY_TYPES.REFDATA_CLASS_NAME:
|
|
113
104
|
fieldProps = {
|
|
114
105
|
component: _components.Select,
|
|
115
106
|
dataOptions: customProperty.options,
|
|
116
|
-
format:
|
|
117
|
-
return v === null || v === void 0 ? void 0 : v.value;
|
|
118
|
-
}
|
|
107
|
+
format: v => v?.value
|
|
119
108
|
};
|
|
120
109
|
break;
|
|
121
110
|
case CUSTOM_PROPERTY_TYPES.MULTI_REFDATA_CLASS_NAME:
|
|
122
111
|
fieldProps = {
|
|
123
112
|
component: _components.MultiSelection,
|
|
124
113
|
// The "not set" value is not relevant for a multi select
|
|
125
|
-
dataOptions:
|
|
126
|
-
return !!(opt !== null && opt !== void 0 && opt.value);
|
|
127
|
-
}),
|
|
114
|
+
dataOptions: customProperty.options?.filter(opt => !!opt?.value),
|
|
128
115
|
renderToOverlay: true
|
|
129
116
|
};
|
|
130
117
|
// MultiSelection passes the changed array as a value not an event
|
|
131
|
-
handleChange =
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
118
|
+
handleChange = refdataArray => {
|
|
119
|
+
onChange({
|
|
120
|
+
...value,
|
|
121
|
+
[customProperty.value]: [{
|
|
122
|
+
...currentValue,
|
|
123
|
+
_delete: refdataArray?.length === 0 ? true : undefined,
|
|
124
|
+
// Delete customProperty if removing all values.
|
|
125
|
+
value: refdataArray
|
|
126
|
+
}]
|
|
127
|
+
});
|
|
137
128
|
};
|
|
138
129
|
break;
|
|
139
130
|
case CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME:
|
|
@@ -143,37 +134,39 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
143
134
|
id: 'stripes-kint-components.errors.customPropertyInvalidNumber'
|
|
144
135
|
}),
|
|
145
136
|
component: _components.TextField,
|
|
146
|
-
max
|
|
147
|
-
min
|
|
137
|
+
max,
|
|
138
|
+
min,
|
|
148
139
|
rangeOverflow: intl.formatMessage({
|
|
149
140
|
id: 'stripes-kint-components.errors.customPropertyDecimalValueNotInRange'
|
|
150
141
|
}, {
|
|
151
|
-
min
|
|
152
|
-
max
|
|
142
|
+
min,
|
|
143
|
+
max
|
|
153
144
|
}),
|
|
154
145
|
rangeUnderflow: intl.formatMessage({
|
|
155
146
|
id: 'stripes-kint-components.errors.customPropertyDecimalValueNotInRange'
|
|
156
147
|
}, {
|
|
157
|
-
min
|
|
158
|
-
max
|
|
148
|
+
min,
|
|
149
|
+
max
|
|
159
150
|
}),
|
|
160
151
|
step: 'any',
|
|
161
152
|
type: 'number'
|
|
162
153
|
};
|
|
163
|
-
handleChange =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
154
|
+
handleChange = e => {
|
|
155
|
+
onChange({
|
|
156
|
+
...value,
|
|
157
|
+
[customProperty.value]: [{
|
|
158
|
+
...currentValue,
|
|
159
|
+
_delete: e.target.value === '' ? true : undefined,
|
|
160
|
+
// Delete customProperty if removing the value.
|
|
161
|
+
value: parseFloat(e.target.value)
|
|
162
|
+
}]
|
|
163
|
+
});
|
|
169
164
|
};
|
|
170
165
|
break;
|
|
171
166
|
case CUSTOM_PROPERTY_TYPES.TEXT_CLASS_NAME:
|
|
172
167
|
fieldProps = {
|
|
173
168
|
component: _components.TextArea,
|
|
174
|
-
parse:
|
|
175
|
-
return v;
|
|
176
|
-
} // Lets us send an empty string instead of `undefined`
|
|
169
|
+
parse: v => v // Lets us send an empty string instead of `undefined`
|
|
177
170
|
};
|
|
178
171
|
|
|
179
172
|
break;
|
|
@@ -191,30 +184,32 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
191
184
|
};
|
|
192
185
|
break;
|
|
193
186
|
}
|
|
194
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field,
|
|
187
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
195
188
|
"data-test-customproperty-value": true,
|
|
196
|
-
id:
|
|
197
|
-
label:
|
|
189
|
+
id: `edit-customproperty-${index}-value`,
|
|
190
|
+
label: labelOverrides.value ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
198
191
|
id: "stripes-kint-components.customProperty.value"
|
|
199
192
|
}),
|
|
200
|
-
name:
|
|
193
|
+
name: `${name}.${customProperty.value}[0].value`,
|
|
201
194
|
onChange: handleChange,
|
|
202
195
|
required: !customProperty.primary,
|
|
203
|
-
validate:
|
|
204
|
-
return (0, _validators.customPropertyValidator)(fieldValue, allValues, customProperty);
|
|
205
|
-
},
|
|
196
|
+
validate: (fieldValue, allValues) => (0, _validators.customPropertyValidator)(fieldValue, allValues, customProperty),
|
|
206
197
|
valueMissing: intl.formatMessage({
|
|
207
198
|
id: 'stripes-core.label.missingRequiredField'
|
|
208
|
-
})
|
|
209
|
-
|
|
199
|
+
}),
|
|
200
|
+
...fieldProps
|
|
201
|
+
});
|
|
210
202
|
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
203
|
+
const renderCustomPropertyVisibility = () => {
|
|
204
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
205
|
+
const handleChange = e => {
|
|
206
|
+
onChange({
|
|
207
|
+
...value,
|
|
208
|
+
[customProperty.value]: [{
|
|
209
|
+
...customPropertyObject,
|
|
210
|
+
internal: e.target.value
|
|
211
|
+
}]
|
|
212
|
+
});
|
|
218
213
|
};
|
|
219
214
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
|
|
220
215
|
"data-test-customproperty-visibility": true,
|
|
@@ -229,48 +224,54 @@ var CustomPropertyField = function CustomPropertyField(_ref) {
|
|
|
229
224
|
id: 'stripes-kint-components.customProperty.internalFalse'
|
|
230
225
|
})
|
|
231
226
|
}],
|
|
232
|
-
id:
|
|
233
|
-
label:
|
|
227
|
+
id: `edit-customproperty-${index}-visibility`,
|
|
228
|
+
label: labelOverrides.visibility ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
234
229
|
id: "stripes-kint-components.customProperty.visibility"
|
|
235
230
|
}),
|
|
236
231
|
onChange: handleChange,
|
|
237
|
-
value:
|
|
232
|
+
value: customPropertyObject?.internal ?? customProperty.defaultInternal
|
|
238
233
|
});
|
|
239
234
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
235
|
+
const renderCustomPropertyNoteInternal = () => {
|
|
236
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
237
|
+
const handleChange = e => {
|
|
238
|
+
onChange({
|
|
239
|
+
...value,
|
|
240
|
+
[customProperty.value]: [{
|
|
241
|
+
...customPropertyObject,
|
|
242
|
+
note: e.target.value
|
|
243
|
+
}]
|
|
244
|
+
});
|
|
247
245
|
};
|
|
248
246
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
|
|
249
247
|
"data-test-customproperty-note": true,
|
|
250
|
-
id:
|
|
251
|
-
label:
|
|
248
|
+
id: `edit-customproperty-${index}-internal-note`,
|
|
249
|
+
label: labelOverrides.internalNote ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
252
250
|
id: "stripes-kint-components.customProperty.internalNote"
|
|
253
251
|
}),
|
|
254
252
|
onChange: handleChange,
|
|
255
|
-
value: customPropertyObject
|
|
253
|
+
value: customPropertyObject?.note
|
|
256
254
|
});
|
|
257
255
|
};
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
256
|
+
const renderCustomPropertyNotePublic = () => {
|
|
257
|
+
const customPropertyObject = value[customProperty.value]?.[0] ?? {};
|
|
258
|
+
const handleChange = e => {
|
|
259
|
+
onChange({
|
|
260
|
+
...value,
|
|
261
|
+
[customProperty.value]: [{
|
|
262
|
+
...customPropertyObject,
|
|
263
|
+
publicNote: e.target.value
|
|
264
|
+
}]
|
|
265
|
+
});
|
|
265
266
|
};
|
|
266
267
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
|
|
267
268
|
"data-test-customproperty-public-note": true,
|
|
268
|
-
id:
|
|
269
|
-
label:
|
|
269
|
+
id: `edit-customproperty-${index}-public-note`,
|
|
270
|
+
label: labelOverrides.publicNote ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
270
271
|
id: "stripes-kint-components.customProperty.publicNote"
|
|
271
272
|
}),
|
|
272
273
|
onChange: handleChange,
|
|
273
|
-
value: customPropertyObject
|
|
274
|
+
value: customPropertyObject?.publicNote
|
|
274
275
|
});
|
|
275
276
|
};
|
|
276
277
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
@@ -317,5 +318,4 @@ CustomPropertyField.propTypes = {
|
|
|
317
318
|
setCustomProperties: _propTypes.default.func,
|
|
318
319
|
value: _propTypes.default.object
|
|
319
320
|
};
|
|
320
|
-
var _default = CustomPropertyField;
|
|
321
|
-
exports.default = _default;
|
|
321
|
+
var _default = exports.default = CustomPropertyField;
|