@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
|
@@ -1,145 +1,103 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
10
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
17
|
-
|
|
18
11
|
var _components = require("@folio/stripes/components");
|
|
19
|
-
|
|
20
12
|
var _interactionStyles = require("@folio/stripes-components/lib/sharedStyles/interactionStyles.css");
|
|
21
|
-
|
|
22
13
|
var _SearchField = _interopRequireDefault(require("../SearchField"));
|
|
23
|
-
|
|
24
14
|
var _TypeDown = _interopRequireDefault(require("../../../styles/TypeDown.css"));
|
|
25
|
-
|
|
26
15
|
var _typedownHooks = require("../hooks/typedownHooks");
|
|
27
|
-
|
|
28
16
|
var _selectorSafe = _interopRequireDefault(require("../utils/selectorSafe"));
|
|
29
|
-
|
|
30
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
-
|
|
32
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
-
|
|
38
|
-
(function () {
|
|
39
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
40
|
-
enterModule && enterModule(module);
|
|
41
|
-
})();
|
|
42
|
-
|
|
43
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
44
|
-
|
|
45
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
46
|
-
|
|
47
|
-
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); }
|
|
48
|
-
|
|
49
|
-
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; }
|
|
50
|
-
|
|
51
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
52
|
-
|
|
53
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
54
|
-
|
|
55
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
56
|
-
return a;
|
|
57
|
-
};
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
21
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
58
22
|
|
|
59
23
|
/* @deprecated
|
|
60
24
|
* Replaced by Typedown and QueryTypedown.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
uniqueIdentificationPath = _ref$uniqueIdentifica === void 0 ? 'id' : _ref$uniqueIdentifica;
|
|
74
|
-
(0, _react.useEffect)(function () {
|
|
25
|
+
*/const TypeDown = _ref => {
|
|
26
|
+
let {
|
|
27
|
+
input,
|
|
28
|
+
meta,
|
|
29
|
+
onChange,
|
|
30
|
+
path,
|
|
31
|
+
pathMutator,
|
|
32
|
+
renderFooter = null,
|
|
33
|
+
renderListItem = null,
|
|
34
|
+
uniqueIdentificationPath = 'id'
|
|
35
|
+
} = _ref;
|
|
36
|
+
(0, _react.useEffect)(() => {
|
|
75
37
|
if (process.env.NODE_ENV === 'development') {
|
|
76
38
|
// eslint-disable-next-line no-console
|
|
77
39
|
console.warn('TypeDown component is deprecated, you likely want either Typedown or QueryTypedown');
|
|
78
40
|
}
|
|
79
41
|
}, []);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
});
|
|
110
|
-
}, [renderListItem, uniqueIdentificationPath]);
|
|
111
|
-
var handleChange = (0, _react.useCallback)(function (value) {
|
|
42
|
+
const selectedUniqueId = (0, _get.default)(input.value, uniqueIdentificationPath);
|
|
43
|
+
const [callPath, setCallPath] = (0, _react.useState)(pathMutator(null, path));
|
|
44
|
+
const data = (0, _typedownHooks.useTypedownData)(callPath);
|
|
45
|
+
|
|
46
|
+
// Hook to set up all the essentials
|
|
47
|
+
const {
|
|
48
|
+
refs: {
|
|
49
|
+
listRef,
|
|
50
|
+
triggerRef,
|
|
51
|
+
overlayRef,
|
|
52
|
+
footerRef
|
|
53
|
+
},
|
|
54
|
+
handlers: {
|
|
55
|
+
handleNextFocus,
|
|
56
|
+
listKeyDownHandler,
|
|
57
|
+
searchFieldKeyDownHandler
|
|
58
|
+
},
|
|
59
|
+
variables: {
|
|
60
|
+
open,
|
|
61
|
+
portal,
|
|
62
|
+
resizeRef,
|
|
63
|
+
searchWidth
|
|
64
|
+
}
|
|
65
|
+
} = (0, _typedownHooks.useTypedown)(input.name);
|
|
66
|
+
const renderItem = (0, _react.useCallback)(option => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
+
className: _TypeDown.default.listItem,
|
|
68
|
+
children: renderListItem ? renderListItem(option) : (0, _get.default)(option, uniqueIdentificationPath)
|
|
69
|
+
}), [renderListItem, uniqueIdentificationPath]);
|
|
70
|
+
const handleChange = (0, _react.useCallback)(value => {
|
|
112
71
|
input.onChange(value);
|
|
113
|
-
|
|
114
72
|
if (typeof onChange === 'function') {
|
|
115
73
|
onChange(value);
|
|
116
74
|
}
|
|
117
75
|
}, [input, onChange]);
|
|
118
|
-
|
|
76
|
+
const dropDown = (0, _react.useCallback)(() => {
|
|
119
77
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
120
78
|
className: _TypeDown.default.dropdownMenu,
|
|
121
|
-
id:
|
|
79
|
+
id: `typedown-parent-${(0, _selectorSafe.default)(input.name)}-menu`,
|
|
122
80
|
style: {
|
|
123
|
-
'--searchWidth':
|
|
81
|
+
'--searchWidth': `${searchWidth}px`
|
|
124
82
|
},
|
|
125
83
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
126
84
|
ref: listRef,
|
|
127
85
|
className: _TypeDown.default.listContainer,
|
|
128
86
|
id: "typedown-list",
|
|
129
|
-
children: data
|
|
130
|
-
|
|
87
|
+
children: data?.length ? data?.map((d, index) => {
|
|
88
|
+
const isSelected = (0, _get.default)(input.value, uniqueIdentificationPath) === (0, _get.default)(d, uniqueIdentificationPath);
|
|
131
89
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
132
90
|
className: (0, _classnames.default)(_interactionStyles.interactionStyles, _TypeDown.default.fullWidth, _TypeDown.default.menuButton),
|
|
133
91
|
"data-selected": isSelected,
|
|
134
|
-
id:
|
|
135
|
-
onClick:
|
|
92
|
+
id: `typedown-button-[${index}]`,
|
|
93
|
+
onClick: () => {
|
|
136
94
|
handleChange(d);
|
|
137
95
|
handleNextFocus();
|
|
138
96
|
},
|
|
139
97
|
onKeyDown: listKeyDownHandler,
|
|
140
98
|
type: "button",
|
|
141
99
|
children: renderItem(d)
|
|
142
|
-
},
|
|
100
|
+
}, `typedown-button-[${index}]`);
|
|
143
101
|
}) :
|
|
144
102
|
/*#__PURE__*/
|
|
145
103
|
// TODO test this
|
|
@@ -152,24 +110,23 @@ var TypeDown = function TypeDown(_ref) {
|
|
|
152
110
|
})]
|
|
153
111
|
});
|
|
154
112
|
}, [data, footerRef, handleChange, handleNextFocus, input, listKeyDownHandler, listRef, renderFooter, renderItem, searchWidth, uniqueIdentificationPath]);
|
|
155
|
-
|
|
156
|
-
var renderSearchField = function renderSearchField() {
|
|
113
|
+
const renderSearchField = () => {
|
|
157
114
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
158
115
|
ref: triggerRef,
|
|
159
|
-
id:
|
|
160
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchField.default
|
|
116
|
+
id: `typedown-parent-${(0, _selectorSafe.default)(input.name)}-searchField`,
|
|
117
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchField.default
|
|
118
|
+
// Pass meta through so correct styling gets applied to the TextField
|
|
161
119
|
, {
|
|
162
120
|
id: "typedown-searchField",
|
|
163
121
|
marginBottom0: true,
|
|
164
122
|
meta: meta,
|
|
165
|
-
onChange:
|
|
123
|
+
onChange: e => {
|
|
166
124
|
setCallPath(pathMutator(e.target.value, path));
|
|
167
125
|
},
|
|
168
126
|
onKeyDown: searchFieldKeyDownHandler
|
|
169
127
|
})
|
|
170
128
|
});
|
|
171
129
|
};
|
|
172
|
-
|
|
173
130
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
174
131
|
ref: resizeRef,
|
|
175
132
|
children: [renderSearchField(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Popper, {
|
|
@@ -189,11 +146,11 @@ var TypeDown = function TypeDown(_ref) {
|
|
|
189
146
|
overlayProps: {
|
|
190
147
|
'ref': overlayRef,
|
|
191
148
|
'tabIndex': '-1',
|
|
192
|
-
'onClick':
|
|
149
|
+
'onClick': e => {
|
|
193
150
|
e.stopPropagation();
|
|
194
151
|
} // prevent propagation of click events
|
|
195
|
-
|
|
196
152
|
},
|
|
153
|
+
|
|
197
154
|
overlayRef: overlayRef,
|
|
198
155
|
portal: portal,
|
|
199
156
|
children: dropDown()
|
|
@@ -205,18 +162,11 @@ var TypeDown = function TypeDown(_ref) {
|
|
|
205
162
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
|
|
206
163
|
className: _TypeDown.default.clearItem,
|
|
207
164
|
icon: "times-circle-solid",
|
|
208
|
-
onClick:
|
|
209
|
-
return handleChange();
|
|
210
|
-
}
|
|
165
|
+
onClick: () => handleChange()
|
|
211
166
|
})]
|
|
212
167
|
})]
|
|
213
168
|
});
|
|
214
169
|
};
|
|
215
|
-
|
|
216
|
-
__signature__(TypeDown, "useEffect{}\nuseState{[callPath, setCallPath](pathMutator(null, path))}\nuseTypedownData{data}\nuseTypedown{{\n refs: {\n listRef,\n triggerRef,\n overlayRef,\n footerRef\n },\n handlers: {\n handleNextFocus,\n listKeyDownHandler,\n searchFieldKeyDownHandler\n },\n variables: {\n open,\n portal,\n resizeRef,\n searchWidth\n }\n }}\nuseCallback{renderItem}\nuseCallback{handleChange}\nuseCallback{dropDown}", function () {
|
|
217
|
-
return [_typedownHooks.useTypedownData, _typedownHooks.useTypedown];
|
|
218
|
-
});
|
|
219
|
-
|
|
220
170
|
TypeDown.propTypes = {
|
|
221
171
|
input: _propTypes.default.object,
|
|
222
172
|
meta: _propTypes.default.object,
|
|
@@ -227,25 +177,4 @@ TypeDown.propTypes = {
|
|
|
227
177
|
renderListItem: _propTypes.default.func,
|
|
228
178
|
uniqueIdentificationPath: _propTypes.default.string
|
|
229
179
|
};
|
|
230
|
-
var _default = TypeDown;
|
|
231
|
-
var _default2 = _default;
|
|
232
|
-
exports.default = _default2;
|
|
233
|
-
;
|
|
234
|
-
|
|
235
|
-
(function () {
|
|
236
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
237
|
-
|
|
238
|
-
if (!reactHotLoader) {
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
reactHotLoader.register(TypeDown, "TypeDown", "/home/ethan/FolioModules/stripes-kint-components/src/lib/TypeDown/TypeDown.js");
|
|
243
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/TypeDown/TypeDown.js");
|
|
244
|
-
})();
|
|
245
|
-
|
|
246
|
-
;
|
|
247
|
-
|
|
248
|
-
(function () {
|
|
249
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
250
|
-
leaveModule && leaveModule(module);
|
|
251
|
-
})();
|
|
180
|
+
var _default = exports.default = TypeDown;
|
package/es/lib/TypeDown/index.js
CHANGED
|
@@ -5,15 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _TypeDown.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _TypeDown = _interopRequireDefault(require("./TypeDown"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
17
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,164 +1,114 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
var _get3 = _interopRequireDefault(require("lodash/get"));
|
|
17
|
-
|
|
10
|
+
var _get = _interopRequireDefault(require("lodash/get"));
|
|
18
11
|
var _components = require("@folio/stripes/components");
|
|
19
|
-
|
|
20
12
|
var _interactionStyles = require("@folio/stripes-components/lib/sharedStyles/interactionStyles.css");
|
|
21
|
-
|
|
22
13
|
var _SearchField = _interopRequireDefault(require("../SearchField"));
|
|
23
|
-
|
|
24
14
|
var _TypeDown = _interopRequireDefault(require("../../../styles/TypeDown.css"));
|
|
25
|
-
|
|
26
15
|
var _typedownHooks = require("../hooks/typedownHooks");
|
|
27
|
-
|
|
28
16
|
var _selectorSafe = _interopRequireDefault(require("../utils/selectorSafe"));
|
|
29
|
-
|
|
30
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
-
|
|
32
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
56
|
-
return a;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
var Typedown = function Typedown(_ref) {
|
|
60
|
-
var dataOptions = _ref.dataOptions,
|
|
61
|
-
input = _ref.input,
|
|
62
|
-
filterPath = _ref.filterPath,
|
|
63
|
-
meta = _ref.meta,
|
|
64
|
-
onChange = _ref.onChange,
|
|
65
|
-
onType = _ref.onType,
|
|
66
|
-
_ref$renderFooter = _ref.renderFooter,
|
|
67
|
-
renderFooter = _ref$renderFooter === void 0 ? null : _ref$renderFooter,
|
|
68
|
-
_ref$renderListItem = _ref.renderListItem,
|
|
69
|
-
renderListItem = _ref$renderListItem === void 0 ? null : _ref$renderListItem,
|
|
70
|
-
_ref$uniqueIdentifica = _ref.uniqueIdentificationPath,
|
|
71
|
-
uniqueIdentificationPath = _ref$uniqueIdentifica === void 0 ? 'id' : _ref$uniqueIdentifica;
|
|
72
|
-
var selectedUniqueId = (0, _get3.default)(input.value, uniqueIdentificationPath); // Display data needs to be in line with data options but also able to react to default handleType
|
|
73
|
-
|
|
74
|
-
var _useState = (0, _react.useState)(dataOptions),
|
|
75
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
76
|
-
displayData = _useState2[0],
|
|
77
|
-
setDisplayData = _useState2[1];
|
|
78
|
-
|
|
79
|
-
(0, _react.useEffect)(function () {
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
21
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
22
|
+
|
|
23
|
+
const Typedown = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
dataOptions,
|
|
26
|
+
input,
|
|
27
|
+
filterPath,
|
|
28
|
+
meta,
|
|
29
|
+
onChange,
|
|
30
|
+
onType,
|
|
31
|
+
renderFooter = null,
|
|
32
|
+
renderListItem = null,
|
|
33
|
+
uniqueIdentificationPath = 'id'
|
|
34
|
+
} = _ref;
|
|
35
|
+
const selectedUniqueId = (0, _get.default)(input.value, uniqueIdentificationPath);
|
|
36
|
+
|
|
37
|
+
// Display data needs to be in line with data options but also able to react to default handleType
|
|
38
|
+
const [displayData, setDisplayData] = (0, _react.useState)(dataOptions);
|
|
39
|
+
(0, _react.useEffect)(() => {
|
|
80
40
|
setDisplayData(dataOptions);
|
|
81
|
-
}, [dataOptions]);
|
|
82
|
-
|
|
83
|
-
var handleType = function handleType(e) {
|
|
84
|
-
var _e$target, _e$target2;
|
|
85
|
-
|
|
86
|
-
var regex = new RegExp("".concat(e.target.value.toLowerCase()));
|
|
41
|
+
}, [dataOptions]);
|
|
87
42
|
|
|
43
|
+
// Setup default handleType
|
|
44
|
+
const handleType = e => {
|
|
45
|
+
const regex = new RegExp(`${e.target.value.toLowerCase()}`);
|
|
88
46
|
if (onType) {
|
|
89
47
|
onType(e);
|
|
90
|
-
} else if (filterPath && e
|
|
91
|
-
setDisplayData(dataOptions.filter(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return (_get = (0, _get3.default)(item, filterPath)) === null || _get === void 0 ? void 0 : (_get$toLowerCase = _get.toLowerCase()) === null || _get$toLowerCase === void 0 ? void 0 : _get$toLowerCase.match(regex);
|
|
95
|
-
}));
|
|
96
|
-
} else if (e !== null && e !== void 0 && (_e$target2 = e.target) !== null && _e$target2 !== void 0 && _e$target2.value) {
|
|
97
|
-
setDisplayData(dataOptions.filter(function (item) {
|
|
98
|
-
var _get2, _get2$toLowerCase;
|
|
99
|
-
|
|
100
|
-
return (_get2 = (0, _get3.default)(item, uniqueIdentificationPath)) === null || _get2 === void 0 ? void 0 : (_get2$toLowerCase = _get2.toLowerCase()) === null || _get2$toLowerCase === void 0 ? void 0 : _get2$toLowerCase.match(regex);
|
|
101
|
-
}));
|
|
48
|
+
} else if (filterPath && e?.target?.value) {
|
|
49
|
+
setDisplayData(dataOptions.filter(item => (0, _get.default)(item, filterPath)?.toLowerCase()?.match(regex)));
|
|
50
|
+
} else if (e?.target?.value) {
|
|
51
|
+
setDisplayData(dataOptions.filter(item => (0, _get.default)(item, uniqueIdentificationPath)?.toLowerCase()?.match(regex)));
|
|
102
52
|
} else {
|
|
103
53
|
setDisplayData(dataOptions);
|
|
104
54
|
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
var _useTypedown = (0, _typedownHooks.useTypedown)(input.name),
|
|
109
|
-
_useTypedown$refs = _useTypedown.refs,
|
|
110
|
-
listRef = _useTypedown$refs.listRef,
|
|
111
|
-
triggerRef = _useTypedown$refs.triggerRef,
|
|
112
|
-
overlayRef = _useTypedown$refs.overlayRef,
|
|
113
|
-
footerRef = _useTypedown$refs.footerRef,
|
|
114
|
-
_useTypedown$handlers = _useTypedown.handlers,
|
|
115
|
-
handleNextFocus = _useTypedown$handlers.handleNextFocus,
|
|
116
|
-
listKeyDownHandler = _useTypedown$handlers.listKeyDownHandler,
|
|
117
|
-
searchFieldKeyDownHandler = _useTypedown$handlers.searchFieldKeyDownHandler,
|
|
118
|
-
_useTypedown$variable = _useTypedown.variables,
|
|
119
|
-
open = _useTypedown$variable.open,
|
|
120
|
-
portal = _useTypedown$variable.portal,
|
|
121
|
-
resizeRef = _useTypedown$variable.resizeRef,
|
|
122
|
-
searchWidth = _useTypedown$variable.searchWidth;
|
|
55
|
+
};
|
|
123
56
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
57
|
+
// Hook to set up all the essentials
|
|
58
|
+
const {
|
|
59
|
+
refs: {
|
|
60
|
+
listRef,
|
|
61
|
+
triggerRef,
|
|
62
|
+
overlayRef,
|
|
63
|
+
footerRef
|
|
64
|
+
},
|
|
65
|
+
handlers: {
|
|
66
|
+
handleNextFocus,
|
|
67
|
+
listKeyDownHandler,
|
|
68
|
+
searchFieldKeyDownHandler
|
|
69
|
+
},
|
|
70
|
+
variables: {
|
|
71
|
+
open,
|
|
72
|
+
portal,
|
|
73
|
+
resizeRef,
|
|
74
|
+
searchWidth
|
|
75
|
+
}
|
|
76
|
+
} = (0, _typedownHooks.useTypedown)(input.name);
|
|
77
|
+
const renderItem = (0, _react.useCallback)(option => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
|
+
className: _TypeDown.default.listItem,
|
|
79
|
+
children: renderListItem ? renderListItem(option) : (0, _get.default)(option, uniqueIdentificationPath)
|
|
80
|
+
}), [renderListItem, uniqueIdentificationPath]);
|
|
81
|
+
const handleChange = (0, _react.useCallback)(value => {
|
|
131
82
|
input.onChange(value);
|
|
132
|
-
|
|
133
83
|
if (typeof onChange === 'function') {
|
|
134
84
|
onChange(value);
|
|
135
85
|
}
|
|
136
86
|
}, [input, onChange]);
|
|
137
|
-
|
|
87
|
+
const dropDown = (0, _react.useCallback)(() => {
|
|
138
88
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
139
89
|
className: _TypeDown.default.dropdownMenu,
|
|
140
|
-
id:
|
|
90
|
+
id: `typedown-parent-${(0, _selectorSafe.default)(input.name)}-menu`,
|
|
141
91
|
style: {
|
|
142
|
-
'--searchWidth':
|
|
92
|
+
'--searchWidth': `${searchWidth}px`
|
|
143
93
|
},
|
|
144
94
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
145
95
|
ref: listRef,
|
|
146
96
|
className: _TypeDown.default.listContainer,
|
|
147
97
|
id: "typedown-list",
|
|
148
|
-
children: displayData
|
|
149
|
-
|
|
98
|
+
children: displayData?.length ? displayData?.map((d, index) => {
|
|
99
|
+
const isSelected = (0, _get.default)(input.value, uniqueIdentificationPath) === (0, _get.default)(d, uniqueIdentificationPath);
|
|
150
100
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
151
101
|
className: (0, _classnames.default)(_interactionStyles.interactionStyles, _TypeDown.default.fullWidth, _TypeDown.default.menuButton),
|
|
152
102
|
"data-selected": isSelected,
|
|
153
|
-
id:
|
|
154
|
-
onClick:
|
|
103
|
+
id: `typedown-button-[${index}]`,
|
|
104
|
+
onClick: () => {
|
|
155
105
|
handleChange(d);
|
|
156
106
|
handleNextFocus();
|
|
157
107
|
},
|
|
158
108
|
onKeyDown: listKeyDownHandler,
|
|
159
109
|
type: "button",
|
|
160
110
|
children: renderItem(d)
|
|
161
|
-
},
|
|
111
|
+
}, `typedown-button-[${index}]`);
|
|
162
112
|
}) :
|
|
163
113
|
/*#__PURE__*/
|
|
164
114
|
// TODO test this
|
|
@@ -166,19 +116,19 @@ var Typedown = function Typedown(_ref) {
|
|
|
166
116
|
}), renderFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
167
117
|
ref: footerRef,
|
|
168
118
|
className: _TypeDown.default.footer,
|
|
169
|
-
id:
|
|
119
|
+
id: `typedown-footer-${(0, _selectorSafe.default)(input.name)}`,
|
|
170
120
|
children: renderFooter()
|
|
171
121
|
})]
|
|
172
122
|
});
|
|
173
123
|
}, [displayData, footerRef, handleChange, handleNextFocus, input, listKeyDownHandler, listRef, renderFooter, renderItem, searchWidth, uniqueIdentificationPath]);
|
|
174
|
-
|
|
175
|
-
var renderSearchField = function renderSearchField() {
|
|
124
|
+
const renderSearchField = () => {
|
|
176
125
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
177
126
|
ref: triggerRef,
|
|
178
|
-
id:
|
|
179
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchField.default
|
|
127
|
+
id: `typedown-parent-${(0, _selectorSafe.default)(input.name)}-searchField`,
|
|
128
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchField.default
|
|
129
|
+
// Pass meta through so correct styling gets applied to the TextField
|
|
180
130
|
, {
|
|
181
|
-
id:
|
|
131
|
+
id: `typedown-searchField-${(0, _selectorSafe.default)(input.name)}`,
|
|
182
132
|
marginBottom0: true,
|
|
183
133
|
meta: meta,
|
|
184
134
|
onChange: handleType,
|
|
@@ -186,7 +136,6 @@ var Typedown = function Typedown(_ref) {
|
|
|
186
136
|
})
|
|
187
137
|
});
|
|
188
138
|
};
|
|
189
|
-
|
|
190
139
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
191
140
|
ref: resizeRef,
|
|
192
141
|
children: [renderSearchField(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Popper, {
|
|
@@ -206,11 +155,11 @@ var Typedown = function Typedown(_ref) {
|
|
|
206
155
|
overlayProps: {
|
|
207
156
|
'ref': overlayRef,
|
|
208
157
|
'tabIndex': '-1',
|
|
209
|
-
'onClick':
|
|
158
|
+
'onClick': e => {
|
|
210
159
|
e.stopPropagation();
|
|
211
160
|
} // prevent propagation of click events
|
|
212
|
-
|
|
213
161
|
},
|
|
162
|
+
|
|
214
163
|
overlayRef: overlayRef,
|
|
215
164
|
portal: portal,
|
|
216
165
|
children: dropDown()
|
|
@@ -222,18 +171,11 @@ var Typedown = function Typedown(_ref) {
|
|
|
222
171
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
|
|
223
172
|
className: _TypeDown.default.clearItem,
|
|
224
173
|
icon: "times-circle-solid",
|
|
225
|
-
onClick:
|
|
226
|
-
return handleChange();
|
|
227
|
-
}
|
|
174
|
+
onClick: () => handleChange()
|
|
228
175
|
})]
|
|
229
176
|
})]
|
|
230
177
|
});
|
|
231
178
|
};
|
|
232
|
-
|
|
233
|
-
__signature__(Typedown, "useState{[displayData, setDisplayData](dataOptions)}\nuseEffect{}\nuseTypedown{{\n refs: {\n listRef,\n triggerRef,\n overlayRef,\n footerRef\n },\n handlers: {\n handleNextFocus,\n listKeyDownHandler,\n searchFieldKeyDownHandler\n },\n variables: {\n open,\n portal,\n resizeRef,\n searchWidth\n }\n }}\nuseCallback{renderItem}\nuseCallback{handleChange}\nuseCallback{dropDown}", function () {
|
|
234
|
-
return [_typedownHooks.useTypedown];
|
|
235
|
-
});
|
|
236
|
-
|
|
237
179
|
Typedown.propTypes = {
|
|
238
180
|
dataOptions: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
239
181
|
filterPath: _propTypes.default.string,
|
|
@@ -245,25 +187,4 @@ Typedown.propTypes = {
|
|
|
245
187
|
renderListItem: _propTypes.default.func,
|
|
246
188
|
uniqueIdentificationPath: _propTypes.default.string
|
|
247
189
|
};
|
|
248
|
-
var _default = Typedown;
|
|
249
|
-
var _default2 = _default;
|
|
250
|
-
exports.default = _default2;
|
|
251
|
-
;
|
|
252
|
-
|
|
253
|
-
(function () {
|
|
254
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
255
|
-
|
|
256
|
-
if (!reactHotLoader) {
|
|
257
|
-
return;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
reactHotLoader.register(Typedown, "Typedown", "/home/ethan/FolioModules/stripes-kint-components/src/lib/Typedown/Typedown.js");
|
|
261
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/Typedown/Typedown.js");
|
|
262
|
-
})();
|
|
263
|
-
|
|
264
|
-
;
|
|
265
|
-
|
|
266
|
-
(function () {
|
|
267
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
268
|
-
leaveModule && leaveModule(module);
|
|
269
|
-
})();
|
|
190
|
+
var _default = exports.default = Typedown;
|