@k-int/stripes-kint-components 3.2.2 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/es/index.js +78 -79
- package/es/lib/ActionList/ActionList.js +38 -51
- package/es/lib/ActionList/ActionListFieldArray.js +159 -194
- package/es/lib/ActionList/index.js +1 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +59 -83
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +15 -19
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +124 -177
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +30 -73
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +93 -106
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +83 -129
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +42 -43
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +48 -153
- package/es/lib/CustomProperties/Config/index.js +4 -4
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +20 -23
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +11 -16
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +33 -32
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +11 -16
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +88 -111
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +26 -69
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +134 -134
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +95 -192
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +46 -48
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +23 -27
- package/es/lib/CustomProperties/Edit/index.js +5 -5
- package/es/lib/CustomProperties/Edit/testResources.js +14 -39
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +64 -91
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +23 -63
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +53 -77
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +17 -16
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +34 -31
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +18 -49
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +19 -22
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +23 -56
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +44 -49
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +77 -257
- package/es/lib/CustomProperties/Filter/index.js +6 -6
- package/es/lib/CustomProperties/Filter/testResources.js +13 -37
- package/es/lib/CustomProperties/Filter/useOperators.js +18 -18
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +18 -33
- package/es/lib/CustomProperties/Filter/useValueProps.js +23 -29
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +20 -23
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +11 -16
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +63 -80
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +14 -23
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +25 -31
- package/es/lib/CustomProperties/View/index.js +3 -3
- package/es/lib/CustomProperties/View/testResources.js +5 -9
- package/es/lib/CustomProperties/index.js +18 -18
- package/es/lib/CycleButton/CycleButton.js +19 -35
- package/es/lib/CycleButton/index.js +1 -1
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +105 -164
- package/es/lib/EditableRefdataCategoryList/index.js +1 -1
- package/es/lib/EditableRefdataList/EditableRefdataList.js +119 -181
- package/es/lib/EditableRefdataList/index.js +1 -1
- package/es/lib/EditableSettingsList/EditableSettingsList.js +15 -13
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +19 -26
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +61 -96
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +27 -41
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +99 -83
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +25 -30
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +187 -299
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +76 -111
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +51 -172
- package/es/lib/EditableSettingsList/SettingField/index.js +3 -3
- package/es/lib/EditableSettingsList/index.js +3 -3
- package/es/lib/FormModal/FormModal.js +44 -48
- package/es/lib/FormModal/index.js +1 -1
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +27 -35
- package/es/lib/FormattedKintMessage/index.js +1 -1
- package/es/lib/IconSelect/IconSelect.js +52 -77
- package/es/lib/IconSelect/index.js +1 -1
- package/es/lib/NoResultsMessage/NoResultsMessage.js +23 -23
- package/es/lib/NoResultsMessage/index.js +1 -1
- package/es/lib/QueryTypedown/QueryTypedown.js +16 -35
- package/es/lib/QueryTypedown/index.js +1 -1
- package/es/lib/RefdataButtons/RefdataButtons.js +30 -34
- package/es/lib/RefdataButtons/index.js +1 -1
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +77 -95
- package/es/lib/ResponsiveButtonGroup/index.js +1 -1
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +24 -39
- package/es/lib/RichSelect/RichSelect.js +78 -100
- package/es/lib/RichSelect/index.js +2 -2
- package/es/lib/RichSelect/useSelectedOption.js +5 -16
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +107 -139
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +43 -52
- package/es/lib/SASQLookupComponent/TableBody/index.js +1 -1
- package/es/lib/SASQLookupComponent/index.js +2 -2
- package/es/lib/SASQRoute/SASQRoute.js +34 -41
- package/es/lib/SASQRoute/index.js +1 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +37 -49
- package/es/lib/SASQViewComponent/index.js +1 -1
- package/es/lib/SearchField/SearchField.js +11 -18
- package/es/lib/SearchField/index.js +1 -1
- package/es/lib/SettingPage/SettingPage.js +20 -19
- package/es/lib/SettingPage/SettingPagePane.js +11 -10
- package/es/lib/SettingPage/index.js +2 -2
- package/es/lib/Typedown/Typedown.js +73 -98
- package/es/lib/Typedown/index.js +1 -1
- package/es/lib/constants/customProperties.js +11 -22
- package/es/lib/constants/eventCodes.js +3 -6
- package/es/lib/contexts/SettingsContext.js +2 -3
- package/es/lib/contexts/index.js +1 -1
- package/es/lib/hooks/__mocks__/index.js +9 -29
- package/es/lib/hooks/index.js +20 -20
- package/es/lib/hooks/settingsHooks/index.js +3 -3
- package/es/lib/hooks/settingsHooks/useAppSettings.js +22 -34
- package/es/lib/hooks/settingsHooks/useSettingSection.js +17 -19
- package/es/lib/hooks/settingsHooks/useSettings.js +58 -72
- package/es/lib/hooks/typedownHooks/index.js +3 -3
- package/es/lib/hooks/typedownHooks/useTypedown.js +49 -50
- package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -23
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +13 -22
- package/es/lib/hooks/useActiveElement.js +10 -20
- package/es/lib/hooks/useCustomProperties.js +23 -32
- package/es/lib/hooks/useHelperApp.js +31 -51
- package/es/lib/hooks/useIntlKey.js +4 -7
- package/es/lib/hooks/useIntlKeyStore.js +42 -51
- package/es/lib/hooks/useInvalidateRefdata.js +4 -7
- package/es/lib/hooks/useKintIntl.js +31 -41
- package/es/lib/hooks/useKiwtFieldArray.js +35 -47
- package/es/lib/hooks/useKiwtSASQuery.js +40 -51
- package/es/lib/hooks/useLocalStorageState.js +7 -20
- package/es/lib/hooks/useMutateCustomProperties.js +23 -73
- package/es/lib/hooks/useMutateRefdataCategory.js +22 -68
- package/es/lib/hooks/useMutateRefdataValue.js +31 -73
- package/es/lib/hooks/useQIndex.js +17 -32
- package/es/lib/hooks/useRefdata.js +19 -22
- package/es/lib/hooks/useSASQQueryMeta.js +14 -22
- package/es/lib/hooks/useTemplates.js +16 -16
- package/es/lib/utils/buildUrl.js +6 -6
- package/es/lib/utils/generateKiwtQuery.js +4 -7
- package/es/lib/utils/generateKiwtQueryParams.js +77 -96
- package/es/lib/utils/groupCustomPropertiesByCtx.js +9 -21
- package/es/lib/utils/highlightString.js +17 -37
- package/es/lib/utils/index.js +21 -21
- package/es/lib/utils/matchString.js +5 -10
- package/es/lib/utils/parseErrorResponse.js +22 -67
- package/es/lib/utils/refdataOptions.js +2 -3
- package/es/lib/utils/refdataQueryKey.js +3 -4
- package/es/lib/utils/selectorSafe.js +2 -3
- package/es/lib/utils/sortByLabel.js +4 -6
- package/es/lib/utils/toCamelCase.js +8 -14
- package/es/lib/utils/typedownQueryKey.js +3 -4
- package/es/lib/utils/validators.js +25 -32
- package/package.json +12 -2
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +3 -3
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
- package/junit.xml +0 -273
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -364
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1426
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1162
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -664
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -730
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -250
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -559
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -190
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -571
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -253
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -901
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
- package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -371
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -139
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
- package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -283
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/index.html +0 -581
- package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
- package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -341
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -193
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
- package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -280
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -103
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov.info +0 -4957
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -10,53 +9,51 @@ var _reactFinalForm = require("react-final-form");
|
|
|
10
9
|
var _components = require("@folio/stripes/components");
|
|
11
10
|
var _hooks = require("../hooks");
|
|
12
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _excluded = ["footer", "onClose"],
|
|
14
|
-
_excluded2 = ["children", "intlKey", "intlNS", "labelOverrides", "modalProps", "onSubmit"];
|
|
15
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var formState = getState();
|
|
45
|
-
var handleClose = function handleClose(e) {
|
|
13
|
+
const FormModal = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
children,
|
|
16
|
+
intlKey: passedIntlKey,
|
|
17
|
+
intlNS: passedIntlNS,
|
|
18
|
+
labelOverrides = {},
|
|
19
|
+
modalProps: {
|
|
20
|
+
footer,
|
|
21
|
+
onClose,
|
|
22
|
+
...modalProps
|
|
23
|
+
},
|
|
24
|
+
onSubmit,
|
|
25
|
+
...formProps
|
|
26
|
+
} = _ref;
|
|
27
|
+
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Form, {
|
|
29
|
+
onSubmit: onSubmit,
|
|
30
|
+
...formProps,
|
|
31
|
+
children: _ref2 => {
|
|
32
|
+
let {
|
|
33
|
+
handleSubmit,
|
|
34
|
+
form: {
|
|
35
|
+
getState,
|
|
36
|
+
restart
|
|
37
|
+
}
|
|
38
|
+
} = _ref2;
|
|
39
|
+
const formState = getState();
|
|
40
|
+
const handleClose = e => {
|
|
46
41
|
onClose(e);
|
|
47
42
|
restart();
|
|
48
43
|
};
|
|
49
|
-
|
|
44
|
+
const renderFooter = () => {
|
|
50
45
|
if (footer) {
|
|
51
46
|
return footer({
|
|
52
|
-
formState
|
|
53
|
-
handleSubmit
|
|
54
|
-
handleClose
|
|
47
|
+
formState,
|
|
48
|
+
handleSubmit,
|
|
49
|
+
handleClose
|
|
55
50
|
});
|
|
56
51
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
const {
|
|
53
|
+
invalid,
|
|
54
|
+
pristine,
|
|
55
|
+
submitting
|
|
56
|
+
} = formState;
|
|
60
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.ModalFooter, {
|
|
61
58
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
62
59
|
buttonStyle: "primary",
|
|
@@ -80,16 +77,16 @@ var FormModal = function FormModal(_ref) {
|
|
|
80
77
|
};
|
|
81
78
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("form", {
|
|
82
79
|
onSubmit: handleSubmit,
|
|
83
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Modal,
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Modal, {
|
|
84
81
|
enforceFocus: false,
|
|
85
82
|
footer: renderFooter(),
|
|
86
|
-
onClose: handleClose
|
|
87
|
-
|
|
88
|
-
children:
|
|
89
|
-
})
|
|
83
|
+
onClose: handleClose,
|
|
84
|
+
...modalProps,
|
|
85
|
+
children: children
|
|
86
|
+
})
|
|
90
87
|
});
|
|
91
88
|
}
|
|
92
|
-
})
|
|
89
|
+
});
|
|
93
90
|
};
|
|
94
91
|
FormModal.propTypes = {
|
|
95
92
|
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node, _propTypes.default.func]),
|
|
@@ -102,5 +99,4 @@ FormModal.propTypes = {
|
|
|
102
99
|
}),
|
|
103
100
|
onSubmit: _propTypes.default.func
|
|
104
101
|
};
|
|
105
|
-
var _default = FormModal;
|
|
106
|
-
exports.default = _default;
|
|
102
|
+
var _default = exports.default = FormModal;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -9,37 +8,30 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
8
|
var _reactIntl = require("react-intl");
|
|
10
9
|
var _hooks = require("../hooks");
|
|
11
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _excluded = ["fallbackMessage", "id", "intlKey", "intlNS", "overrideValue"];
|
|
13
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
12
|
// This works analogously to useKintIntl's "formatKintMessage"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
id
|
|
26
|
-
passedIntlKey
|
|
27
|
-
passedIntlNS
|
|
28
|
-
overrideValue
|
|
29
|
-
formattedMessageProps
|
|
30
|
-
|
|
31
|
-
|
|
13
|
+
const FormattedKintMessage = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
fallbackMessage,
|
|
16
|
+
id,
|
|
17
|
+
intlKey: passedIntlKey,
|
|
18
|
+
intlNS: passedIntlNS,
|
|
19
|
+
overrideValue,
|
|
20
|
+
...formattedMessageProps
|
|
21
|
+
} = _ref;
|
|
22
|
+
const intlKey = (0, _hooks.useIntlKey)(passedIntlKey, passedIntlNS);
|
|
23
|
+
const intlObj = (0, _reactIntl.useIntl)();
|
|
32
24
|
if (overrideValue) {
|
|
33
|
-
var _intlObj$messages;
|
|
34
25
|
// Version 3 is a breaking change, where labelOverrides must be strings.
|
|
35
26
|
if (typeof overrideValue !== 'string') {
|
|
36
27
|
throw new Error('Override values must be strings as of stripes-kint-components ^3.0.0');
|
|
37
28
|
}
|
|
38
|
-
if (
|
|
29
|
+
if (intlObj.messages?.[overrideValue]) {
|
|
39
30
|
// We've been passed a key as an override, return formattedMessage with it
|
|
40
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage,
|
|
41
|
-
id: overrideValue
|
|
42
|
-
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
32
|
+
id: overrideValue,
|
|
33
|
+
...formattedMessageProps
|
|
34
|
+
});
|
|
43
35
|
}
|
|
44
36
|
// At this stage we have an overrideValue that's not a key, return it.
|
|
45
37
|
return overrideValue;
|
|
@@ -48,19 +40,20 @@ var FormattedKintMessage = function FormattedKintMessage(_ref) {
|
|
|
48
40
|
// If key does not exist in intl, and we have a specified "fallbackMessage", use that
|
|
49
41
|
|
|
50
42
|
// (FallbackMessage works like defaultMessage but with no warning)
|
|
51
|
-
if (!
|
|
52
|
-
var _intlObj$messages3;
|
|
43
|
+
if (!intlObj.messages?.[`${intlKey}.${id}`] && fallbackMessage) {
|
|
53
44
|
// Allow fallback message to be an intl key
|
|
54
|
-
if (
|
|
55
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage,
|
|
56
|
-
id: fallbackMessage
|
|
57
|
-
|
|
45
|
+
if (intlObj.messages?.[fallbackMessage]) {
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
47
|
+
id: fallbackMessage,
|
|
48
|
+
...formattedMessageProps
|
|
49
|
+
});
|
|
58
50
|
}
|
|
59
51
|
return fallbackMessage;
|
|
60
52
|
}
|
|
61
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage,
|
|
62
|
-
id:
|
|
63
|
-
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
54
|
+
id: `${intlKey}.${id}`,
|
|
55
|
+
...formattedMessageProps
|
|
56
|
+
});
|
|
64
57
|
};
|
|
65
58
|
FormattedKintMessage.propTypes = {
|
|
66
59
|
fallbackMessage: _propTypes.default.string,
|
|
@@ -69,5 +62,4 @@ FormattedKintMessage.propTypes = {
|
|
|
69
62
|
intlNS: _propTypes.default.string,
|
|
70
63
|
overrideValue: _propTypes.default.string
|
|
71
64
|
};
|
|
72
|
-
var _default = FormattedKintMessage;
|
|
73
|
-
exports.default = _default;
|
|
65
|
+
var _default = exports.default = FormattedKintMessage;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -13,47 +12,27 @@ var _IconSelect = _interopRequireDefault(require("../../../styles/IconSelect.css
|
|
|
13
12
|
var _RichSelect = _interopRequireWildcard(require("../RichSelect"));
|
|
14
13
|
var _FormattedKintMessage = _interopRequireDefault(require("../FormattedKintMessage"));
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
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; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
19
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
24
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
25
|
-
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; }
|
|
26
|
-
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; }
|
|
27
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
28
|
-
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."); }
|
|
29
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
30
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
32
|
-
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."); }
|
|
33
|
-
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); }
|
|
34
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
35
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
36
|
-
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; }
|
|
37
18
|
// A form component which acts as a "Select for states with corresponding icons"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
value = _ref.value;
|
|
56
|
-
var defaultNotSet = {
|
|
19
|
+
const IconSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
20
|
+
let {
|
|
21
|
+
ariaLabel,
|
|
22
|
+
disabled = false,
|
|
23
|
+
id,
|
|
24
|
+
input,
|
|
25
|
+
intlKey: passedIntlKey,
|
|
26
|
+
intlNS: passedIntlNS,
|
|
27
|
+
label,
|
|
28
|
+
meta,
|
|
29
|
+
notSet,
|
|
30
|
+
onChange,
|
|
31
|
+
options: userOptions = [],
|
|
32
|
+
required = false,
|
|
33
|
+
value
|
|
34
|
+
} = _ref;
|
|
35
|
+
const defaultNotSet = {
|
|
57
36
|
icon: 'ellipsis',
|
|
58
37
|
value: '',
|
|
59
38
|
label: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormattedKintMessage.default, {
|
|
@@ -64,19 +43,15 @@ var IconSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
64
43
|
};
|
|
65
44
|
|
|
66
45
|
// Options with notSet
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
});
|
|
77
|
-
var _ref2 = (_selectedOption$butto = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.buttonProps) !== null && _selectedOption$butto !== void 0 ? _selectedOption$butto : {},
|
|
78
|
-
iconButtonClassName = _ref2.className,
|
|
79
|
-
buttonProps = _objectWithoutProperties(_ref2, _excluded);
|
|
46
|
+
const options = [notSet ?? defaultNotSet, ...userOptions];
|
|
47
|
+
const [richSelectRef, selectedOption] = (0, _RichSelect.useSelectedOption)();
|
|
48
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
49
|
+
selectedOption
|
|
50
|
+
}));
|
|
51
|
+
const {
|
|
52
|
+
className: iconButtonClassName,
|
|
53
|
+
...buttonProps
|
|
54
|
+
} = selectedOption?.buttonProps ?? {};
|
|
80
55
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RichSelect.default, {
|
|
81
56
|
ref: richSelectRef,
|
|
82
57
|
ariaLabel: ariaLabel,
|
|
@@ -87,36 +62,37 @@ var IconSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
87
62
|
meta: meta,
|
|
88
63
|
onChange: onChange,
|
|
89
64
|
options: options,
|
|
90
|
-
renderOption:
|
|
91
|
-
var _opt$label2;
|
|
65
|
+
renderOption: opt => {
|
|
92
66
|
if (opt.icon) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}));
|
|
67
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
|
|
68
|
+
icon: opt.icon,
|
|
69
|
+
...opt.iconProps,
|
|
70
|
+
children: opt.label ?? opt.value
|
|
71
|
+
});
|
|
99
72
|
}
|
|
100
|
-
return
|
|
73
|
+
return opt.label ?? opt.value;
|
|
101
74
|
},
|
|
102
|
-
renderTrigger:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
triggerRef
|
|
106
|
-
keyHandler
|
|
107
|
-
ariaProps
|
|
108
|
-
getTriggerProps
|
|
109
|
-
|
|
75
|
+
renderTrigger: _ref2 => {
|
|
76
|
+
let {
|
|
77
|
+
onToggle,
|
|
78
|
+
triggerRef,
|
|
79
|
+
keyHandler,
|
|
80
|
+
ariaProps,
|
|
81
|
+
getTriggerProps
|
|
82
|
+
} = _ref2;
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
|
|
110
84
|
ref: triggerRef,
|
|
111
85
|
disabled: disabled,
|
|
112
|
-
icon:
|
|
86
|
+
icon: selectedOption?.icon ?? 'ellipsis',
|
|
113
87
|
marginBottom0: true,
|
|
114
88
|
onClick: onToggle,
|
|
115
89
|
onKeyDown: keyHandler,
|
|
116
|
-
type: "button"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
90
|
+
type: "button",
|
|
91
|
+
className: (0, _classnames.default)(_IconSelect.default.buttonStyle, iconButtonClassName),
|
|
92
|
+
...buttonProps,
|
|
93
|
+
...getTriggerProps(),
|
|
94
|
+
...ariaProps
|
|
95
|
+
});
|
|
120
96
|
},
|
|
121
97
|
required: required,
|
|
122
98
|
value: value
|
|
@@ -145,5 +121,4 @@ IconSelect.propTypes = {
|
|
|
145
121
|
required: _propTypes.default.bool,
|
|
146
122
|
value: _propTypes.default.string
|
|
147
123
|
};
|
|
148
|
-
var _default = IconSelect;
|
|
149
|
-
exports.default = _default;
|
|
124
|
+
var _default = exports.default = IconSelect;
|
|
@@ -12,25 +12,26 @@ var _NoResultsMessage = _interopRequireDefault(require("../../../styles/NoResult
|
|
|
12
12
|
var _hooks = require("../hooks");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
labelOverrides =
|
|
26
|
-
searchTerm
|
|
27
|
-
toggleFilterPane
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
const NoResultsMessage = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
icon: userIcon,
|
|
18
|
+
intlKey: passedIntlKey,
|
|
19
|
+
intlNS: passedIntlNS,
|
|
20
|
+
isLoading,
|
|
21
|
+
isError,
|
|
22
|
+
error,
|
|
23
|
+
filterPaneIsVisible,
|
|
24
|
+
label: userLabel,
|
|
25
|
+
labelOverrides = {},
|
|
26
|
+
searchTerm,
|
|
27
|
+
toggleFilterPane
|
|
28
|
+
} = _ref;
|
|
29
|
+
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
30
|
+
let icon = 'search';
|
|
31
|
+
let label = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
31
32
|
id: "stripes-smart-components.sas.noResults.default",
|
|
32
33
|
values: {
|
|
33
|
-
searchTerm
|
|
34
|
+
searchTerm
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
|
|
@@ -53,18 +54,18 @@ var NoResultsMessage = function NoResultsMessage(_ref) {
|
|
|
53
54
|
// Request failure
|
|
54
55
|
if (isError) {
|
|
55
56
|
icon = 'exclamation-circle';
|
|
56
|
-
label = error
|
|
57
|
+
label = error?.message;
|
|
57
58
|
}
|
|
58
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
59
60
|
className: _NoResultsMessage.default.noResultsMessage,
|
|
60
61
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
61
62
|
className: _NoResultsMessage.default.noResultsMessageLabelWrap,
|
|
62
63
|
children: [(icon || userIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
|
|
63
|
-
icon: userIcon
|
|
64
|
+
icon: userIcon ?? icon,
|
|
64
65
|
iconRootClass: _NoResultsMessage.default.noResultsMessageIcon
|
|
65
66
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
66
67
|
className: _NoResultsMessage.default.noResultsMessageLabel,
|
|
67
|
-
children: userLabel
|
|
68
|
+
children: userLabel ?? label
|
|
68
69
|
})]
|
|
69
70
|
}), !filterPaneIsVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
70
71
|
buttonClass: _NoResultsMessage.default.noResultsMessageButton,
|
|
@@ -72,7 +73,7 @@ var NoResultsMessage = function NoResultsMessage(_ref) {
|
|
|
72
73
|
onClick: toggleFilterPane,
|
|
73
74
|
children: kintIntl.formatKintMessage({
|
|
74
75
|
id: 'showFilters',
|
|
75
|
-
overrideValue: labelOverrides
|
|
76
|
+
overrideValue: labelOverrides?.showFilters
|
|
76
77
|
})
|
|
77
78
|
})]
|
|
78
79
|
});
|
|
@@ -90,5 +91,4 @@ NoResultsMessage.propTypes = {
|
|
|
90
91
|
searchTerm: _propTypes.default.string,
|
|
91
92
|
toggleFilterPane: _propTypes.default.func.isRequired
|
|
92
93
|
};
|
|
93
|
-
var _default = NoResultsMessage;
|
|
94
|
-
exports.default = _default;
|
|
94
|
+
var _default = exports.default = NoResultsMessage;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -10,48 +9,30 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
9
|
var _Typedown = _interopRequireDefault(require("../Typedown"));
|
|
11
10
|
var _typedownHooks = require("../hooks/typedownHooks");
|
|
12
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _excluded = ["dataFormatter", "path", "pathMutator"];
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
-
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; }
|
|
29
|
-
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; }
|
|
30
|
-
var QueryTypedown = function QueryTypedown(_ref) {
|
|
31
|
-
var _ref$dataFormatter = _ref.dataFormatter,
|
|
32
|
-
dataFormatter = _ref$dataFormatter === void 0 ? function (d) {
|
|
33
|
-
return d;
|
|
34
|
-
} : _ref$dataFormatter,
|
|
35
|
-
path = _ref.path,
|
|
36
|
-
pathMutator = _ref.pathMutator,
|
|
37
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
-
var _useState = (0, _react.useState)(pathMutator(null, path)),
|
|
39
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
-
callPath = _useState2[0],
|
|
41
|
-
setCallPath = _useState2[1];
|
|
42
|
-
var data = dataFormatter((0, _typedownHooks.useTypedownData)(path, callPath));
|
|
43
|
-
var onType = function onType(e) {
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
const QueryTypedown = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
dataFormatter = d => d,
|
|
18
|
+
path,
|
|
19
|
+
pathMutator,
|
|
20
|
+
...rest
|
|
21
|
+
} = _ref;
|
|
22
|
+
const [callPath, setCallPath] = (0, _react.useState)(pathMutator(null, path));
|
|
23
|
+
const data = dataFormatter((0, _typedownHooks.useTypedownData)(path, callPath));
|
|
24
|
+
const onType = e => {
|
|
44
25
|
setCallPath(pathMutator(e.target.value, path));
|
|
45
26
|
};
|
|
46
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typedown.default,
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typedown.default, {
|
|
28
|
+
...rest,
|
|
47
29
|
dataOptions: data,
|
|
48
30
|
onType: onType
|
|
49
|
-
})
|
|
31
|
+
});
|
|
50
32
|
};
|
|
51
33
|
QueryTypedown.propTypes = {
|
|
52
34
|
dataFormatter: _propTypes.default.func,
|
|
53
35
|
path: _propTypes.default.string,
|
|
54
36
|
pathMutator: _propTypes.default.func
|
|
55
37
|
};
|
|
56
|
-
var _default = QueryTypedown;
|
|
57
|
-
exports.default = _default;
|
|
38
|
+
var _default = exports.default = QueryTypedown;
|