@k-int/stripes-kint-components 1.6.0 → 1.7.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 +15 -1
- package/es/index.js +34 -48
- package/es/lib/ActionList/ActionList.js +29 -69
- package/es/lib/ActionList/ActionListFieldArray.js +105 -211
- package/es/lib/ActionList/index.js +2 -8
- package/es/lib/EditableRefdataList/EditableRefdataList.js +48 -127
- package/es/lib/EditableRefdataList/index.js +2 -8
- package/es/lib/EditableSettingsList/EditableSettingsList.js +11 -47
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +16 -61
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +62 -137
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +23 -91
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +103 -127
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +19 -75
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +188 -357
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +39 -120
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +61 -157
- package/es/lib/EditableSettingsList/SettingField/index.js +4 -12
- package/es/lib/EditableSettingsList/index.js +4 -12
- package/es/lib/NoResultsMessage/NoResultsMessage.js +24 -61
- package/es/lib/NoResultsMessage/index.js +2 -8
- package/es/lib/QueryTypedown/QueryTypedown.js +15 -89
- package/es/lib/QueryTypedown/index.js +2 -8
- package/es/lib/RefdataButtons/RefdataButtons.js +32 -85
- package/es/lib/RefdataButtons/index.js +2 -8
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +122 -224
- package/es/lib/SASQLookupComponent/index.js +2 -8
- package/es/lib/SASQRoute/SASQRoute.js +27 -76
- package/es/lib/SASQRoute/index.js +2 -8
- package/es/lib/SASQViewComponent/SASQViewComponent.js +28 -89
- package/es/lib/SASQViewComponent/index.js +2 -8
- package/es/lib/SearchField/SearchField.js +11 -61
- package/es/lib/SearchField/index.js +2 -8
- package/es/lib/SettingPage/SettingPage.js +17 -63
- package/es/lib/SettingPage/SettingPagePane.js +13 -58
- package/es/lib/SettingPage/index.js +3 -10
- package/es/lib/TypeDown/TypeDown.js +61 -132
- package/es/lib/TypeDown/index.js +2 -8
- package/es/lib/Typedown/Typedown.js +74 -153
- package/es/lib/Typedown/index.js +2 -8
- package/es/lib/constants/eventCodes.js +3 -36
- package/es/lib/contexts/SettingsContext.js +2 -34
- package/es/lib/contexts/index.js +2 -8
- package/es/lib/hooks/index.js +12 -27
- package/es/lib/hooks/settingsHooks/index.js +3 -10
- package/es/lib/hooks/settingsHooks/useSettingSection.js +16 -60
- package/es/lib/hooks/settingsHooks/useSettings.js +51 -130
- package/es/lib/hooks/typedownHooks/index.js +4 -12
- package/es/lib/hooks/typedownHooks/useTypedown.js +60 -114
- package/es/lib/hooks/typedownHooks/useTypedownData.js +13 -69
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +15 -71
- package/es/lib/hooks/useActiveElement.js +10 -63
- package/es/lib/hooks/useHelperApp.js +37 -111
- package/es/lib/hooks/useKiwtFieldArray.js +35 -101
- package/es/lib/hooks/useKiwtSASQuery.js +36 -107
- package/es/lib/hooks/useLocalStorageState.js +7 -69
- package/es/lib/hooks/useMutateRefdataValue.js +31 -115
- package/es/lib/hooks/useQIndex.js +17 -87
- package/es/lib/hooks/useRefdata.js +19 -71
- package/es/lib/hooks/useTemplates.js +16 -60
- package/es/lib/utils/buildUrl.js +11 -51
- package/es/lib/utils/generateKiwtQuery.js +4 -40
- package/es/lib/utils/generateKiwtQueryParams.js +38 -125
- package/es/lib/utils/index.js +15 -20
- package/es/lib/utils/refdataOptions.js +13 -0
- package/es/lib/utils/renderHelpText.js +32 -89
- package/es/lib/utils/selectorSafe.js +2 -34
- package/es/lib/utils/sortByLabel.js +4 -41
- package/es/lib/utils/toCamelCase.js +8 -42
- package/package.json +17 -3
- package/src/index.js +1 -0
- package/src/lib/ActionList/ActionList.js +5 -2
- package/src/lib/ActionList/ActionListFieldArray.js +20 -8
- package/src/lib/ActionList/README.md +1 -0
- package/src/lib/EditableRefdataList/EditableRefdataList.js +9 -4
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +6 -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/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/index.js.html +0 -305
- 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/SettingField.js.html +0 -437
- 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/EditableSettingsList/index.js.html +0 -95
- 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/SASQLookupComponent.js.html +0 -932
- 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/Typedown.js.html +0 -788
- 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/index.html +0 -162
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/typedownHooks/index.js.html +0 -95
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/typedownHooks/useTypedown.js.html +0 -524
- 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/useMutateRefdataValue.js.html +0 -302
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useQIndex.js.html +0 -209
- package/artifacts/coverage-jest/lcov-report/src/lib/hooks/useRefdata.js.html +0 -287
- 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/sortByLabel.js.html +0 -131
- package/artifacts/coverage-jest/lcov-report/src/lib/utils/toCamelCase.js.html +0 -128
- package/artifacts/coverage-jest/lcov.info +0 -10040
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -109
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -998
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -238
- package/junit.xml +0 -79
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -248
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -764
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -147
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -362
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -224
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -212
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -377
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -263
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -437
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -162
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -95
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -147
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -95
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -320
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -185
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -371
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -932
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -275
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -251
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -215
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -212
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -179
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -147
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -92
- package/src/artifacts/coverage-jest/lcov-report/TypeDown/TypeDown.js.html +0 -770
- package/src/artifacts/coverage-jest/lcov-report/TypeDown/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/TypeDown/index.js.html +0 -89
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -791
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -89
- 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/eventCodes.js.html +0 -95
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -117
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -98
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -132
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -92
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -252
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -116
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -147
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -92
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -164
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -404
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -162
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -95
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -524
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -164
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -164
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -158
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -284
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -275
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -179
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -137
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -302
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -209
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -287
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -167
- package/src/artifacts/coverage-jest/lcov-report/index.html +0 -402
- 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 -194
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -110
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -287
- package/src/artifacts/coverage-jest/lcov-report/utils/getFocusableElements.js.html +0 -386
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -237
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -116
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -167
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -104
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -128
- package/src/artifacts/coverage-jest/lcov.info +0 -2073
- package/yarn-error.log +0 -15050
|
@@ -4,151 +4,64 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
25
|
-
|
|
26
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
-
|
|
28
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
29
|
-
|
|
30
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
31
|
-
|
|
32
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
33
|
-
|
|
34
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
35
|
-
|
|
36
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
37
|
-
|
|
38
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
39
|
-
|
|
40
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
41
|
-
return a;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues) {
|
|
45
|
-
var qindex = nsValues.qindex,
|
|
46
|
-
query = nsValues.query,
|
|
47
|
-
filters = nsValues.filters,
|
|
48
|
-
sort = nsValues.sort;
|
|
49
|
-
|
|
50
|
-
var _options$searchKey = options.searchKey,
|
|
51
|
-
searchKey = _options$searchKey === void 0 ? '' : _options$searchKey,
|
|
52
|
-
_options$filterKeys = options.filterKeys,
|
|
53
|
-
filterKeys = _options$filterKeys === void 0 ? {} : _options$filterKeys,
|
|
54
|
-
_options$sortKeys = options.sortKeys,
|
|
55
|
-
sortKeys = _options$sortKeys === void 0 ? {} : _options$sortKeys,
|
|
56
|
-
_options$stats = options.stats,
|
|
57
|
-
stats = _options$stats === void 0 ? true : _options$stats,
|
|
58
|
-
rest = _objectWithoutProperties(options, _excluded);
|
|
59
|
-
|
|
60
|
-
var paramsArray = [];
|
|
61
|
-
|
|
7
|
+
const generateKiwtQueryParams = (options, nsValues) => {
|
|
8
|
+
const {
|
|
9
|
+
qindex,
|
|
10
|
+
query,
|
|
11
|
+
filters,
|
|
12
|
+
sort
|
|
13
|
+
} = nsValues;
|
|
14
|
+
const {
|
|
15
|
+
searchKey = '',
|
|
16
|
+
/* Assumtion made that if no filterKey is provided then the given filterValues for that key are standalaone, ie require no comparator or key */
|
|
17
|
+
filterKeys = {},
|
|
18
|
+
sortKeys = {},
|
|
19
|
+
stats = true,
|
|
20
|
+
...rest
|
|
21
|
+
} = options;
|
|
22
|
+
const paramsArray = [];
|
|
62
23
|
if (query) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
paramsArray.push.apply(paramsArray, _toConsumableArray((_split = (qindex || searchKey).split(',')) === null || _split === void 0 ? void 0 : _split.map(function (m) {
|
|
66
|
-
return "match=".concat(m);
|
|
67
|
-
})));
|
|
68
|
-
paramsArray.push("term=".concat(query));
|
|
24
|
+
paramsArray.push(...(qindex || searchKey).split(',')?.map(m => `match=${m}`));
|
|
25
|
+
paramsArray.push(`term=${query}`);
|
|
69
26
|
}
|
|
70
|
-
|
|
71
27
|
if (filters) {
|
|
72
|
-
|
|
73
|
-
filters.split(',').forEach(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
filterName = _filter$split2[0],
|
|
77
|
-
filterRest = _filter$split2.slice(1);
|
|
78
|
-
|
|
79
|
-
var filterValue = filterRest.join('.');
|
|
28
|
+
const filterMap = {};
|
|
29
|
+
filters.split(',').forEach(filter => {
|
|
30
|
+
const [filterName, ...filterRest] = filter.split('.');
|
|
31
|
+
const filterValue = filterRest.join('.');
|
|
80
32
|
if (filterMap[filterName] === undefined) filterMap[filterName] = [];
|
|
81
33
|
filterMap[filterName].push(filterValue);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
Object.entries(filterMap).forEach(function (_ref) {
|
|
85
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
86
|
-
filterName = _ref2[0],
|
|
87
|
-
filterValues = _ref2[1];
|
|
88
|
-
|
|
89
|
-
var filterKey = filterKeys[filterName];
|
|
34
|
+
});
|
|
90
35
|
|
|
36
|
+
// We now have a filterMap of shape { status: ['active', 'cancelled'], type: ['local'] }
|
|
37
|
+
Object.entries(filterMap).forEach(_ref => {
|
|
38
|
+
let [filterName, filterValues] = _ref;
|
|
39
|
+
const filterKey = filterKeys[filterName];
|
|
91
40
|
if (!filterKey) {
|
|
92
41
|
// These filters have no key mapping so we just pass the values to the backend as-is.
|
|
93
|
-
paramsArray.push
|
|
94
|
-
return "filters=".concat(f);
|
|
95
|
-
})));
|
|
42
|
+
paramsArray.push(...filterValues?.map(f => `filters=${f}`));
|
|
96
43
|
} else {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}).join('||');
|
|
100
|
-
paramsArray.push("filters=".concat(filterString));
|
|
44
|
+
const filterString = filterValues.map(v => `${filterKey}==${v}`).join('||');
|
|
45
|
+
paramsArray.push(`filters=${filterString}`);
|
|
101
46
|
}
|
|
102
47
|
});
|
|
103
48
|
}
|
|
104
|
-
|
|
105
49
|
if (sort) {
|
|
106
|
-
paramsArray.push
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
50
|
+
paramsArray.push(...sort.split(',').map(sortKey => {
|
|
51
|
+
const descending = sortKey.startsWith('-');
|
|
52
|
+
let term = sortKey.replace('-', '');
|
|
110
53
|
if (term in sortKeys) {
|
|
111
54
|
term = term.replace(term, sortKeys[term]);
|
|
112
55
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
})));
|
|
56
|
+
return `sort=${term};${descending ? 'desc' : 'asc'}`;
|
|
57
|
+
}));
|
|
116
58
|
}
|
|
117
|
-
|
|
118
59
|
if (stats) {
|
|
119
60
|
paramsArray.push('stats=true');
|
|
120
61
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
var _Object$entries$_i = _slicedToArray(_Object$entries[_i2], 2),
|
|
124
|
-
key = _Object$entries$_i[0],
|
|
125
|
-
value = _Object$entries$_i[1];
|
|
126
|
-
|
|
127
|
-
paramsArray.push("".concat(key, "=").concat(value));
|
|
62
|
+
for (const [key, value] of Object.entries(rest)) {
|
|
63
|
+
paramsArray.push(`${key}=${value}`);
|
|
128
64
|
}
|
|
129
|
-
|
|
130
65
|
return paramsArray;
|
|
131
66
|
};
|
|
132
|
-
|
|
133
|
-
var _default = generateKiwtQueryParams;
|
|
134
|
-
var _default2 = _default;
|
|
135
|
-
exports.default = _default2;
|
|
136
|
-
;
|
|
137
|
-
|
|
138
|
-
(function () {
|
|
139
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
140
|
-
|
|
141
|
-
if (!reactHotLoader) {
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
reactHotLoader.register(generateKiwtQueryParams, "generateKiwtQueryParams", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/generateKiwtQueryParams.js");
|
|
146
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/generateKiwtQueryParams.js");
|
|
147
|
-
})();
|
|
148
|
-
|
|
149
|
-
;
|
|
150
|
-
|
|
151
|
-
(function () {
|
|
152
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
153
|
-
leaveModule && leaveModule(module);
|
|
154
|
-
})();
|
|
67
|
+
var _default = exports.default = generateKiwtQueryParams;
|
package/es/lib/utils/index.js
CHANGED
|
@@ -5,63 +5,58 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "buildUrl", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _buildUrl.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "generateKiwtQuery", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _generateKiwtQuery.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "generateKiwtQueryParams", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _generateKiwtQueryParams.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "refdataOptions", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _refdataOptions.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "renderHelpText", {
|
|
25
31
|
enumerable: true,
|
|
26
|
-
get: function
|
|
32
|
+
get: function () {
|
|
27
33
|
return _renderHelpText.default;
|
|
28
34
|
}
|
|
29
35
|
});
|
|
30
36
|
Object.defineProperty(exports, "selectorSafe", {
|
|
31
37
|
enumerable: true,
|
|
32
|
-
get: function
|
|
38
|
+
get: function () {
|
|
33
39
|
return _selectorSafe.default;
|
|
34
40
|
}
|
|
35
41
|
});
|
|
36
42
|
Object.defineProperty(exports, "sortByLabel", {
|
|
37
43
|
enumerable: true,
|
|
38
|
-
get: function
|
|
44
|
+
get: function () {
|
|
39
45
|
return _sortByLabel.default;
|
|
40
46
|
}
|
|
41
47
|
});
|
|
42
48
|
Object.defineProperty(exports, "toCamelCase", {
|
|
43
49
|
enumerable: true,
|
|
44
|
-
get: function
|
|
50
|
+
get: function () {
|
|
45
51
|
return _toCamelCase.default;
|
|
46
52
|
}
|
|
47
53
|
});
|
|
48
|
-
|
|
49
54
|
var _generateKiwtQuery = _interopRequireDefault(require("./generateKiwtQuery"));
|
|
50
|
-
|
|
51
55
|
var _generateKiwtQueryParams = _interopRequireDefault(require("./generateKiwtQueryParams"));
|
|
52
|
-
|
|
53
56
|
var _selectorSafe = _interopRequireDefault(require("./selectorSafe"));
|
|
54
|
-
|
|
55
57
|
var _buildUrl = _interopRequireDefault(require("./buildUrl"));
|
|
56
|
-
|
|
58
|
+
var _refdataOptions = _interopRequireDefault(require("./refdataOptions"));
|
|
57
59
|
var _renderHelpText = _interopRequireDefault(require("./renderHelpText"));
|
|
58
|
-
|
|
59
60
|
var _sortByLabel = _interopRequireDefault(require("./sortByLabel"));
|
|
60
|
-
|
|
61
61
|
var _toCamelCase = _interopRequireDefault(require("./toCamelCase"));
|
|
62
|
-
|
|
63
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
64
|
-
|
|
65
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
66
|
-
return a;
|
|
67
|
-
}; // I hate that this exists
|
|
62
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,106 +4,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _reactIntl = require("react-intl");
|
|
11
|
-
|
|
12
9
|
var _renderHelpText = _interopRequireDefault(require("../../../styles/renderHelpText.css"));
|
|
13
|
-
|
|
14
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
(function () {
|
|
19
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
|
-
enterModule && enterModule(module);
|
|
21
|
-
})();
|
|
22
|
-
|
|
23
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
24
|
-
return a;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var renderHelpText = function renderHelpText(id) {
|
|
12
|
+
const renderHelpText = id => {
|
|
28
13
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
14
|
className: _renderHelpText.default.help,
|
|
30
15
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
31
16
|
id: id,
|
|
32
17
|
values: {
|
|
33
|
-
b:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
p: function p(chunks) {
|
|
64
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
65
|
-
children: chunks
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
ul: function ul(chunks) {
|
|
69
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
70
|
-
children: chunks
|
|
71
|
-
});
|
|
72
|
-
},
|
|
73
|
-
ol: function ol(chunks) {
|
|
74
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("ol", {
|
|
75
|
-
children: chunks
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
li: function li(chunks) {
|
|
79
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
80
|
-
children: chunks
|
|
81
|
-
});
|
|
82
|
-
}
|
|
18
|
+
b: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
|
|
19
|
+
children: chunks
|
|
20
|
+
}),
|
|
21
|
+
i: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
22
|
+
children: chunks
|
|
23
|
+
}),
|
|
24
|
+
em: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("em", {
|
|
25
|
+
children: chunks
|
|
26
|
+
}),
|
|
27
|
+
strong: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("strong", {
|
|
28
|
+
children: chunks
|
|
29
|
+
}),
|
|
30
|
+
span: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
31
|
+
children: chunks
|
|
32
|
+
}),
|
|
33
|
+
div: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
|
+
children: chunks
|
|
35
|
+
}),
|
|
36
|
+
p: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
37
|
+
children: chunks
|
|
38
|
+
}),
|
|
39
|
+
ul: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
40
|
+
children: chunks
|
|
41
|
+
}),
|
|
42
|
+
ol: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("ol", {
|
|
43
|
+
children: chunks
|
|
44
|
+
}),
|
|
45
|
+
li: chunks => /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
46
|
+
children: chunks
|
|
47
|
+
})
|
|
83
48
|
}
|
|
84
49
|
})
|
|
85
50
|
});
|
|
86
51
|
};
|
|
87
|
-
|
|
88
|
-
var _default = renderHelpText;
|
|
89
|
-
var _default2 = _default;
|
|
90
|
-
exports.default = _default2;
|
|
91
|
-
;
|
|
92
|
-
|
|
93
|
-
(function () {
|
|
94
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
95
|
-
|
|
96
|
-
if (!reactHotLoader) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
reactHotLoader.register(renderHelpText, "renderHelpText", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/renderHelpText.js");
|
|
101
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/renderHelpText.js");
|
|
102
|
-
})();
|
|
103
|
-
|
|
104
|
-
;
|
|
105
|
-
|
|
106
|
-
(function () {
|
|
107
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
108
|
-
leaveModule && leaveModule(module);
|
|
109
|
-
})();
|
|
52
|
+
var _default = exports.default = renderHelpText;
|
|
@@ -4,39 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
(function () {
|
|
9
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
|
-
enterModule && enterModule(module);
|
|
11
|
-
})();
|
|
12
|
-
|
|
13
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
14
|
-
return a;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
var selectorSafe = function selectorSafe(string) {
|
|
7
|
+
const selectorSafe = string => {
|
|
18
8
|
return string.replaceAll(/[^a-zA-Z0-9\-_]/g, '_');
|
|
19
9
|
};
|
|
20
|
-
|
|
21
|
-
var _default = selectorSafe;
|
|
22
|
-
var _default2 = _default;
|
|
23
|
-
exports.default = _default2;
|
|
24
|
-
;
|
|
25
|
-
|
|
26
|
-
(function () {
|
|
27
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
28
|
-
|
|
29
|
-
if (!reactHotLoader) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
reactHotLoader.register(selectorSafe, "selectorSafe", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/selectorSafe.js");
|
|
34
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/selectorSafe.js");
|
|
35
|
-
})();
|
|
36
|
-
|
|
37
|
-
;
|
|
38
|
-
|
|
39
|
-
(function () {
|
|
40
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
41
|
-
leaveModule && leaveModule(module);
|
|
42
|
-
})();
|
|
10
|
+
var _default = exports.default = selectorSafe;
|
|
@@ -4,52 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
(
|
|
9
|
-
|
|
10
|
-
enterModule && enterModule(module);
|
|
11
|
-
})();
|
|
12
|
-
|
|
13
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
14
|
-
return a;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
var sortByLabel = function sortByLabel(a, b) {
|
|
18
|
-
var _a$label$toLowerCase, _a$label, _a$id, _b$label$toLowerCase, _b$label, _b$id;
|
|
19
|
-
|
|
20
|
-
var al = (_a$label$toLowerCase = (_a$label = a.label) === null || _a$label === void 0 ? void 0 : _a$label.toLowerCase()) !== null && _a$label$toLowerCase !== void 0 ? _a$label$toLowerCase : (_a$id = a.id) === null || _a$id === void 0 ? void 0 : _a$id.toLowerCase();
|
|
21
|
-
var bl = (_b$label$toLowerCase = (_b$label = b.label) === null || _b$label === void 0 ? void 0 : _b$label.toLowerCase()) !== null && _b$label$toLowerCase !== void 0 ? _b$label$toLowerCase : (_b$id = b.id) === null || _b$id === void 0 ? void 0 : _b$id.toLowerCase();
|
|
22
|
-
|
|
7
|
+
const sortByLabel = (a, b) => {
|
|
8
|
+
const al = a.label?.toLowerCase() ?? a.id?.toLowerCase();
|
|
9
|
+
const bl = b.label?.toLowerCase() ?? b.id?.toLowerCase();
|
|
23
10
|
if (al < bl) {
|
|
24
11
|
return -1;
|
|
25
12
|
}
|
|
26
|
-
|
|
27
13
|
if (al > bl) {
|
|
28
14
|
return 1;
|
|
29
15
|
}
|
|
30
|
-
|
|
31
16
|
return 0;
|
|
32
17
|
};
|
|
33
|
-
|
|
34
|
-
var _default = sortByLabel;
|
|
35
|
-
var _default2 = _default;
|
|
36
|
-
exports.default = _default2;
|
|
37
|
-
;
|
|
38
|
-
|
|
39
|
-
(function () {
|
|
40
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
41
|
-
|
|
42
|
-
if (!reactHotLoader) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
reactHotLoader.register(sortByLabel, "sortByLabel", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/sortByLabel.js");
|
|
47
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/sortByLabel.js");
|
|
48
|
-
})();
|
|
49
|
-
|
|
50
|
-
;
|
|
51
|
-
|
|
52
|
-
(function () {
|
|
53
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
54
|
-
leaveModule && leaveModule(module);
|
|
55
|
-
})();
|
|
18
|
+
var _default = exports.default = sortByLabel;
|
|
@@ -4,45 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
var toCamelCase = function toCamelCase(str) {
|
|
18
|
-
return (// First split string on any capital letters
|
|
19
|
-
str.split(/(?=[A-Z])/).join(' ') // Remove all non alpha-numeric chars, and replace _ with ' '
|
|
20
|
-
.replace(/[_]/gi, ' ').replace(/[^0-9a-zA-Z\s]/gi, '') // CamelCase the remains
|
|
21
|
-
.replace(/(?:^\w|[A-Z]|\b\w)/g, function (ltr, idx) {
|
|
22
|
-
return idx === 0 ? ltr.toLowerCase() : ltr.toUpperCase();
|
|
23
|
-
}).replace(/\s+/g, '')
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var _default = toCamelCase;
|
|
28
|
-
var _default2 = _default;
|
|
29
|
-
exports.default = _default2;
|
|
30
|
-
;
|
|
31
|
-
|
|
32
|
-
(function () {
|
|
33
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
34
|
-
|
|
35
|
-
if (!reactHotLoader) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
reactHotLoader.register(toCamelCase, "toCamelCase", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/toCamelCase.js");
|
|
40
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/toCamelCase.js");
|
|
41
|
-
})();
|
|
42
|
-
|
|
43
|
-
;
|
|
44
|
-
|
|
45
|
-
(function () {
|
|
46
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
47
|
-
leaveModule && leaveModule(module);
|
|
48
|
-
})();
|
|
7
|
+
const toCamelCase = str =>
|
|
8
|
+
// First split string on any capital letters
|
|
9
|
+
str.split(/(?=[A-Z])/).join(' ')
|
|
10
|
+
// Remove all non alpha-numeric chars, and replace _ with ' '
|
|
11
|
+
.replace(/[_]/gi, ' ').replace(/[^0-9a-zA-Z\s]/gi, '')
|
|
12
|
+
// CamelCase the remains
|
|
13
|
+
.replace(/(?:^\w|[A-Z]|\b\w)/g, (ltr, idx) => idx === 0 ? ltr.toLowerCase() : ltr.toUpperCase()).replace(/\s+/g, '');
|
|
14
|
+
var _default = exports.default = toCamelCase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-int/stripes-kint-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Stripes Component library for K-Int specific applications",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -17,7 +17,11 @@
|
|
|
17
17
|
"build": "yarn build:es",
|
|
18
18
|
"clean": "rm -rf ./node_modules ./*/node_modules ./yarn.lock && yarn install",
|
|
19
19
|
"clean-build": "yarn clean && yarn build",
|
|
20
|
-
"prepare": "yarn build"
|
|
20
|
+
"prepare": "yarn build",
|
|
21
|
+
"semantic-release": "semantic-release"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
21
25
|
},
|
|
22
26
|
"dependencies": {
|
|
23
27
|
"react-resize-detector": "^6.7.6",
|
|
@@ -62,7 +66,17 @@
|
|
|
62
66
|
"react-router-dom": "^5.2.0",
|
|
63
67
|
"@folio/stripes": ">=7.0.3",
|
|
64
68
|
"react-intl": ">=5.8.1",
|
|
65
|
-
"
|
|
69
|
+
"redux": "^4.0.0",
|
|
70
|
+
"redux-observable": "^1.2.0",
|
|
71
|
+
"regenerator-runtime": "^0.13.9",
|
|
72
|
+
"rxjs": "^6.6.3",
|
|
73
|
+
"sinon": "^14.0.0",
|
|
74
|
+
"typescript": "^2.8.0",
|
|
75
|
+
"@semantic-release/git": "^10.0.1",
|
|
76
|
+
"@semantic-release/gitlab": "^12.0.6",
|
|
77
|
+
"@semantic-release/npm": "^11.0.0",
|
|
78
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
79
|
+
"semantic-release": "^22.0.5"
|
|
66
80
|
},
|
|
67
81
|
"peerDependencies": {
|
|
68
82
|
"@folio/stripes": ">=7.0.3",
|
package/src/index.js
CHANGED
|
@@ -12,6 +12,7 @@ const propTypes = {
|
|
|
12
12
|
actionCalls: PropTypes.object,
|
|
13
13
|
columnMapping: PropTypes.object,
|
|
14
14
|
contentData: PropTypes.arrayOf(PropTypes.object),
|
|
15
|
+
creatableFields: PropTypes.object,
|
|
15
16
|
editableFields: PropTypes.object,
|
|
16
17
|
visibleFields: PropTypes.arrayOf(PropTypes.string)
|
|
17
18
|
};
|
|
@@ -21,6 +22,7 @@ const ActionList = ({
|
|
|
21
22
|
actionCalls = {},
|
|
22
23
|
columnMapping,
|
|
23
24
|
contentData,
|
|
25
|
+
creatableFields = {},
|
|
24
26
|
editableFields = {},
|
|
25
27
|
visibleFields
|
|
26
28
|
}) => {
|
|
@@ -32,13 +34,14 @@ const ActionList = ({
|
|
|
32
34
|
onSubmit={actionCalls.edit}
|
|
33
35
|
subscription={{ contentData: true }}
|
|
34
36
|
>
|
|
35
|
-
{(
|
|
36
|
-
<form onSubmit={
|
|
37
|
+
{() => (
|
|
38
|
+
<form onSubmit={e => { e.preventDefault(); }}>
|
|
37
39
|
<FieldArray
|
|
38
40
|
actionAssigner={actionAssigner}
|
|
39
41
|
actionCalls={actionCalls}
|
|
40
42
|
columnMapping={columnMapping}
|
|
41
43
|
component={ActionListFieldArray}
|
|
44
|
+
creatableFields={creatableFields}
|
|
42
45
|
editableFields={editableFields}
|
|
43
46
|
name="contentData"
|
|
44
47
|
visibleFields={visibleFields}
|