@k-int/stripes-kint-components 2.8.4 → 2.8.5
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 +3 -0
- package/junit.xml +146 -146
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +23 -5
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +282 -48
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +171 -39
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +271 -52
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +293 -74
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +126 -54
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +41 -56
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +23 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +54 -42
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +213 -54
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +260 -41
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +41 -68
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +53 -53
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +62 -3065
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +45 -45
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +103 -64
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +54 -63
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +49 -16
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +69 -18
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +81 -81
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +33 -786
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +45 -45
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +6 -6
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +43 -28
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +20 -2
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +52 -46
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +53 -74
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +25 -25
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +86 -32
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +109 -37
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +41 -14
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +45 -6
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +47 -11
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +65 -14
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +154 -31
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +26 -26
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +18 -18
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +35 -17
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +15 -15
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +67 -34
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +49 -7
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +24 -81
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +146 -14
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +31 -4
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +53 -8
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +65 -11
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +24 -27
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +47 -17
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +22 -22
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +151 -106
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +12 -3
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +25 -25
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +61 -22
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +37 -37
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/index.html +167 -137
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +16 -16
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +116 -74
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +41 -56
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +33 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +124 -76
- package/src/artifacts/coverage-jest/lcov.info +2535 -2369
- package/translations/stripes-kint-components/de.json +41 -41
- package/translations/stripes-kint-components/ja.json +43 -43
- package/translations/stripes-kint-components/ko.json +49 -49
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/50</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -274,26 +274,7 @@
|
|
|
274
274
|
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
275
|
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
276
|
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
-
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
-
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
|
-
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
|
-
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
-
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
-
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
-
<a name='L218'></a><a href='#L218'>218</a>
|
|
284
|
-
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
|
-
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
|
-
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
-
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
|
-
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
|
-
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
-
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
-
<a name='L226'></a><a href='#L226'>226</a>
|
|
292
|
-
<a name='L227'></a><a href='#L227'>227</a>
|
|
293
|
-
<a name='L228'></a><a href='#L228'>228</a>
|
|
294
|
-
<a name='L229'></a><a href='#L229'>229</a>
|
|
295
|
-
<a name='L230'></a><a href='#L230'>230</a>
|
|
296
|
-
<a name='L231'></a><a href='#L231'>231</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
277
|
+
<a name='L212'></a><a href='#L212'>212</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
297
278
|
<span class="cline-any cline-neutral"> </span>
|
|
298
279
|
<span class="cline-any cline-neutral"> </span>
|
|
299
280
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -308,9 +289,9 @@
|
|
|
308
289
|
<span class="cline-any cline-neutral"> </span>
|
|
309
290
|
<span class="cline-any cline-neutral"> </span>
|
|
310
291
|
<span class="cline-any cline-neutral"> </span>
|
|
292
|
+
<span class="cline-any cline-no"> </span>
|
|
311
293
|
<span class="cline-any cline-neutral"> </span>
|
|
312
294
|
<span class="cline-any cline-neutral"> </span>
|
|
313
|
-
<span class="cline-any cline-no"> </span>
|
|
314
295
|
<span class="cline-any cline-neutral"> </span>
|
|
315
296
|
<span class="cline-any cline-neutral"> </span>
|
|
316
297
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -383,28 +364,6 @@
|
|
|
383
364
|
<span class="cline-any cline-neutral"> </span>
|
|
384
365
|
<span class="cline-any cline-neutral"> </span>
|
|
385
366
|
<span class="cline-any cline-neutral"> </span>
|
|
386
|
-
<span class="cline-any cline-neutral"> </span>
|
|
387
|
-
<span class="cline-any cline-neutral"> </span>
|
|
388
|
-
<span class="cline-any cline-neutral"> </span>
|
|
389
|
-
<span class="cline-any cline-neutral"> </span>
|
|
390
|
-
<span class="cline-any cline-neutral"> </span>
|
|
391
|
-
<span class="cline-any cline-neutral"> </span>
|
|
392
|
-
<span class="cline-any cline-neutral"> </span>
|
|
393
|
-
<span class="cline-any cline-neutral"> </span>
|
|
394
|
-
<span class="cline-any cline-neutral"> </span>
|
|
395
|
-
<span class="cline-any cline-neutral"> </span>
|
|
396
|
-
<span class="cline-any cline-neutral"> </span>
|
|
397
|
-
<span class="cline-any cline-neutral"> </span>
|
|
398
|
-
<span class="cline-any cline-neutral"> </span>
|
|
399
|
-
<span class="cline-any cline-neutral"> </span>
|
|
400
|
-
<span class="cline-any cline-neutral"> </span>
|
|
401
|
-
<span class="cline-any cline-neutral"> </span>
|
|
402
|
-
<span class="cline-any cline-neutral"> </span>
|
|
403
|
-
<span class="cline-any cline-neutral"> </span>
|
|
404
|
-
<span class="cline-any cline-neutral"> </span>
|
|
405
|
-
<span class="cline-any cline-neutral"> </span>
|
|
406
|
-
<span class="cline-any cline-neutral"> </span>
|
|
407
|
-
<span class="cline-any cline-neutral"> </span>
|
|
408
367
|
<span class="cline-any cline-no"> </span>
|
|
409
368
|
<span class="cline-any cline-neutral"> </span>
|
|
410
369
|
<span class="cline-any cline-no"> </span>
|
|
@@ -464,6 +423,7 @@
|
|
|
464
423
|
<span class="cline-any cline-neutral"> </span>
|
|
465
424
|
<span class="cline-any cline-neutral"> </span>
|
|
466
425
|
<span class="cline-any cline-neutral"> </span>
|
|
426
|
+
<span class="cline-any cline-neutral"> </span>
|
|
467
427
|
<span class="cline-any cline-no"> </span>
|
|
468
428
|
<span class="cline-any cline-no"> </span>
|
|
469
429
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -523,22 +483,22 @@
|
|
|
523
483
|
<span class="cline-any cline-neutral"> </span>
|
|
524
484
|
<span class="cline-any cline-neutral"> </span>
|
|
525
485
|
<span class="cline-any cline-neutral"> </span>
|
|
486
|
+
<span class="cline-any cline-neutral"> </span>
|
|
487
|
+
<span class="cline-any cline-neutral"> </span>
|
|
526
488
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
527
489
|
import PropTypes from 'prop-types';
|
|
528
490
|
|
|
529
|
-
import { FormattedMessage } from 'react-intl';
|
|
530
|
-
|
|
531
491
|
import {
|
|
532
492
|
Button,
|
|
533
493
|
Dropdown,
|
|
494
|
+
DropdownButton,
|
|
534
495
|
DropdownMenu,
|
|
535
|
-
Icon,
|
|
536
|
-
// IconButton,
|
|
537
496
|
nativeChangeFieldValue as nativeChangeField,
|
|
538
497
|
Label,
|
|
539
498
|
} from '@folio/stripes/components';
|
|
540
499
|
|
|
541
500
|
import css from '../../../styles/RichSelect.css';
|
|
501
|
+
import FormattedKintMessage from '../FormattedKintMessage';
|
|
542
502
|
|
|
543
503
|
const RichSelect = <span class="cstat-no" title="statement not covered" >forwardRef(<span class="fstat-no" title="function not covered" >({</span></span>
|
|
544
504
|
ariaLabel,
|
|
@@ -546,6 +506,8 @@ const RichSelect = <span class="cstat-no" title="statement not covered" >forward
|
|
|
546
506
|
dropdownProps = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
547
507
|
id,
|
|
548
508
|
input: formInput = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
509
|
+
intlKey: passedIntlKey,
|
|
510
|
+
intlNS: passedIntlNS,
|
|
549
511
|
label,
|
|
550
512
|
meta,
|
|
551
513
|
onChange,
|
|
@@ -583,11 +545,11 @@ const RichSelect = <span class="cstat-no" title="statement not covered" >forward
|
|
|
583
545
|
selectedOption
|
|
584
546
|
}));
|
|
585
547
|
|
|
586
|
-
const defaultRenderTrigger = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span> onToggle, triggerRef, keyHandler,
|
|
548
|
+
const defaultRenderTrigger = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span> onToggle, triggerRef, keyHandler, ariaProps, getTriggerProps }) => {</span>
|
|
587
549
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
588
|
-
<
|
|
550
|
+
<DropdownButton
|
|
589
551
|
ref={triggerRef}
|
|
590
|
-
buttonClass={css.
|
|
552
|
+
buttonClass={css.triggerButton}
|
|
591
553
|
buttonStyle="none"
|
|
592
554
|
disabled={disabled}
|
|
593
555
|
marginBottom0
|
|
@@ -597,41 +559,19 @@ const RichSelect = <span class="cstat-no" title="statement not covered" >forward
|
|
|
597
559
|
type="button"
|
|
598
560
|
{...getTriggerProps()}
|
|
599
561
|
{...ariaProps}
|
|
600
|
-
>
|
|
601
|
-
<Icon
|
|
602
|
-
icon={open ? 'caret-up' : 'caret-down'}
|
|
603
|
-
iconPosition="end"
|
|
604
|
-
>
|
|
605
|
-
{
|
|
606
|
-
selectedOption?.label ??
|
|
607
|
-
selectedOption?.value ??
|
|
608
|
-
(internalValue || null) ??
|
|
609
|
-
placeholder ??
|
|
610
|
-
<FormattedMessage id="stripes-kint-components.richSelect.placeholder" />
|
|
611
|
-
}
|
|
612
|
-
</Icon>
|
|
613
|
-
</Button>
|
|
614
|
-
// Awaiting result of conversation about whether we want to allow labels on IconButtons
|
|
615
|
-
/* <IconButton
|
|
616
|
-
ref={triggerRef}
|
|
617
|
-
disabled={disabled}
|
|
618
|
-
icon={open ? 'caret-up' : 'caret-down'}
|
|
619
|
-
iconPosition="end"
|
|
620
|
-
marginBottom0
|
|
621
|
-
onClick={onToggle}
|
|
622
|
-
onKeyDown={keyHandler}
|
|
623
|
-
type="button"
|
|
624
|
-
{...getTriggerProps()}
|
|
625
|
-
{...ariaProps}
|
|
626
562
|
>
|
|
627
563
|
{
|
|
628
564
|
selectedOption?.label ??
|
|
629
565
|
selectedOption?.value ??
|
|
630
|
-
(internalValue
|
|
566
|
+
(internalValue || null) ??
|
|
631
567
|
placeholder ??
|
|
632
|
-
<
|
|
568
|
+
<FormattedKintMessage
|
|
569
|
+
id="pleaseSelectOption"
|
|
570
|
+
intlKey={passedIntlKey}
|
|
571
|
+
intlNS={passedIntlNS}
|
|
572
|
+
/>
|
|
633
573
|
}
|
|
634
|
-
</
|
|
574
|
+
</DropdownButton>
|
|
635
575
|
);
|
|
636
576
|
};
|
|
637
577
|
|
|
@@ -691,6 +631,7 @@ const RichSelect = <span class="cstat-no" title="statement not covered" >forward
|
|
|
691
631
|
: ''
|
|
692
632
|
}
|
|
693
633
|
<Dropdown
|
|
634
|
+
disabled={disabled}
|
|
694
635
|
hasPadding
|
|
695
636
|
placement="bottom-start"
|
|
696
637
|
renderMenu={<span class="fstat-no" title="function not covered" >(m</span>enuProps) => {
|
|
@@ -727,6 +668,8 @@ const RichSelect = <span class="cstat-no" title="statement not covered" >forward
|
|
|
727
668
|
dropdownProps: PropTypes.object,
|
|
728
669
|
id: PropTypes.string,
|
|
729
670
|
input: PropTypes.object,
|
|
671
|
+
intlKey: PropTypes.string,
|
|
672
|
+
intlNS: PropTypes.string,
|
|
730
673
|
label: PropTypes.oneOfType([
|
|
731
674
|
PropTypes.string,
|
|
732
675
|
PropTypes.func,
|
|
@@ -760,7 +703,7 @@ export default RichSelect;
|
|
|
760
703
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
761
704
|
Code coverage generated by
|
|
762
705
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
763
|
-
at 2022-11-
|
|
706
|
+
at 2022-11-22T10:07:38.260Z
|
|
764
707
|
</div>
|
|
765
708
|
<script src="../prettify.js"></script>
|
|
766
709
|
<script>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/54</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
87
|
<td data-value="40" class="abs low">0/40</td>
|
|
88
88
|
<td data-value="0" class="pct low">0%</td>
|
|
89
|
-
<td data-value="
|
|
89
|
+
<td data-value="50" class="abs low">0/50</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="14" class="abs low">0/14</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2022-11-
|
|
134
|
+
at 2022-11-22T10:07:38.260Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -76,7 +76,7 @@ export { default as useSelectedOption } from './useSelectedOption';
|
|
|
76
76
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
77
77
|
Code coverage generated by
|
|
78
78
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
79
|
-
at 2022-11-
|
|
79
|
+
at 2022-11-22T10:07:38.260Z
|
|
80
80
|
</div>
|
|
81
81
|
<script src="../prettify.js"></script>
|
|
82
82
|
<script>
|
|
@@ -112,7 +112,7 @@ export default useSelectedOption;
|
|
|
112
112
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
113
113
|
Code coverage generated by
|
|
114
114
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
115
|
-
at 2022-11-
|
|
115
|
+
at 2022-11-22T10:07:38.260Z
|
|
116
116
|
</div>
|
|
117
117
|
<script src="../prettify.js"></script>
|
|
118
118
|
<script>
|
package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html
CHANGED
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/46</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/35</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/11</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/45</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -321,7 +321,53 @@
|
|
|
321
321
|
<a name='L256'></a><a href='#L256'>256</a>
|
|
322
322
|
<a name='L257'></a><a href='#L257'>257</a>
|
|
323
323
|
<a name='L258'></a><a href='#L258'>258</a>
|
|
324
|
-
<a name='L259'></a><a href='#L259'>259</a
|
|
324
|
+
<a name='L259'></a><a href='#L259'>259</a>
|
|
325
|
+
<a name='L260'></a><a href='#L260'>260</a>
|
|
326
|
+
<a name='L261'></a><a href='#L261'>261</a>
|
|
327
|
+
<a name='L262'></a><a href='#L262'>262</a>
|
|
328
|
+
<a name='L263'></a><a href='#L263'>263</a>
|
|
329
|
+
<a name='L264'></a><a href='#L264'>264</a>
|
|
330
|
+
<a name='L265'></a><a href='#L265'>265</a>
|
|
331
|
+
<a name='L266'></a><a href='#L266'>266</a>
|
|
332
|
+
<a name='L267'></a><a href='#L267'>267</a>
|
|
333
|
+
<a name='L268'></a><a href='#L268'>268</a>
|
|
334
|
+
<a name='L269'></a><a href='#L269'>269</a>
|
|
335
|
+
<a name='L270'></a><a href='#L270'>270</a>
|
|
336
|
+
<a name='L271'></a><a href='#L271'>271</a>
|
|
337
|
+
<a name='L272'></a><a href='#L272'>272</a>
|
|
338
|
+
<a name='L273'></a><a href='#L273'>273</a>
|
|
339
|
+
<a name='L274'></a><a href='#L274'>274</a>
|
|
340
|
+
<a name='L275'></a><a href='#L275'>275</a>
|
|
341
|
+
<a name='L276'></a><a href='#L276'>276</a>
|
|
342
|
+
<a name='L277'></a><a href='#L277'>277</a>
|
|
343
|
+
<a name='L278'></a><a href='#L278'>278</a>
|
|
344
|
+
<a name='L279'></a><a href='#L279'>279</a>
|
|
345
|
+
<a name='L280'></a><a href='#L280'>280</a>
|
|
346
|
+
<a name='L281'></a><a href='#L281'>281</a>
|
|
347
|
+
<a name='L282'></a><a href='#L282'>282</a>
|
|
348
|
+
<a name='L283'></a><a href='#L283'>283</a>
|
|
349
|
+
<a name='L284'></a><a href='#L284'>284</a>
|
|
350
|
+
<a name='L285'></a><a href='#L285'>285</a>
|
|
351
|
+
<a name='L286'></a><a href='#L286'>286</a>
|
|
352
|
+
<a name='L287'></a><a href='#L287'>287</a>
|
|
353
|
+
<a name='L288'></a><a href='#L288'>288</a>
|
|
354
|
+
<a name='L289'></a><a href='#L289'>289</a>
|
|
355
|
+
<a name='L290'></a><a href='#L290'>290</a>
|
|
356
|
+
<a name='L291'></a><a href='#L291'>291</a>
|
|
357
|
+
<a name='L292'></a><a href='#L292'>292</a>
|
|
358
|
+
<a name='L293'></a><a href='#L293'>293</a>
|
|
359
|
+
<a name='L294'></a><a href='#L294'>294</a>
|
|
360
|
+
<a name='L295'></a><a href='#L295'>295</a>
|
|
361
|
+
<a name='L296'></a><a href='#L296'>296</a>
|
|
362
|
+
<a name='L297'></a><a href='#L297'>297</a>
|
|
363
|
+
<a name='L298'></a><a href='#L298'>298</a>
|
|
364
|
+
<a name='L299'></a><a href='#L299'>299</a>
|
|
365
|
+
<a name='L300'></a><a href='#L300'>300</a>
|
|
366
|
+
<a name='L301'></a><a href='#L301'>301</a>
|
|
367
|
+
<a name='L302'></a><a href='#L302'>302</a>
|
|
368
|
+
<a name='L303'></a><a href='#L303'>303</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
369
|
+
<span class="cline-any cline-neutral"> </span>
|
|
370
|
+
<span class="cline-any cline-neutral"> </span>
|
|
325
371
|
<span class="cline-any cline-neutral"> </span>
|
|
326
372
|
<span class="cline-any cline-neutral"> </span>
|
|
327
373
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -361,6 +407,13 @@
|
|
|
361
407
|
<span class="cline-any cline-neutral"> </span>
|
|
362
408
|
<span class="cline-any cline-neutral"> </span>
|
|
363
409
|
<span class="cline-any cline-neutral"> </span>
|
|
410
|
+
<span class="cline-any cline-neutral"> </span>
|
|
411
|
+
<span class="cline-any cline-neutral"> </span>
|
|
412
|
+
<span class="cline-any cline-neutral"> </span>
|
|
413
|
+
<span class="cline-any cline-neutral"> </span>
|
|
414
|
+
<span class="cline-any cline-neutral"> </span>
|
|
415
|
+
<span class="cline-any cline-neutral"> </span>
|
|
416
|
+
<span class="cline-any cline-no"> </span>
|
|
364
417
|
<span class="cline-any cline-no"> </span>
|
|
365
418
|
<span class="cline-any cline-neutral"> </span>
|
|
366
419
|
<span class="cline-any cline-no"> </span>
|
|
@@ -378,14 +431,30 @@
|
|
|
378
431
|
<span class="cline-any cline-no"> </span>
|
|
379
432
|
<span class="cline-any cline-no"> </span>
|
|
380
433
|
<span class="cline-any cline-neutral"> </span>
|
|
434
|
+
<span class="cline-any cline-no"> </span>
|
|
435
|
+
<span class="cline-any cline-no"> </span>
|
|
436
|
+
<span class="cline-any cline-no"> </span>
|
|
381
437
|
<span class="cline-any cline-neutral"> </span>
|
|
438
|
+
<span class="cline-any cline-no"> </span>
|
|
439
|
+
<span class="cline-any cline-no"> </span>
|
|
440
|
+
<span class="cline-any cline-neutral"> </span>
|
|
441
|
+
<span class="cline-any cline-neutral"> </span>
|
|
442
|
+
<span class="cline-any cline-neutral"> </span>
|
|
443
|
+
<span class="cline-any cline-neutral"> </span>
|
|
444
|
+
<span class="cline-any cline-no"> </span>
|
|
382
445
|
<span class="cline-any cline-neutral"> </span>
|
|
383
446
|
<span class="cline-any cline-neutral"> </span>
|
|
447
|
+
<span class="cline-any cline-neutral"> </span>
|
|
448
|
+
<span class="cline-any cline-neutral"> </span>
|
|
449
|
+
<span class="cline-any cline-no"> </span>
|
|
384
450
|
<span class="cline-any cline-no"> </span>
|
|
385
451
|
<span class="cline-any cline-neutral"> </span>
|
|
386
452
|
<span class="cline-any cline-neutral"> </span>
|
|
387
453
|
<span class="cline-any cline-neutral"> </span>
|
|
388
454
|
<span class="cline-any cline-neutral"> </span>
|
|
455
|
+
<span class="cline-any cline-neutral"> </span>
|
|
456
|
+
<span class="cline-any cline-neutral"> </span>
|
|
457
|
+
<span class="cline-any cline-neutral"> </span>
|
|
389
458
|
<span class="cline-any cline-no"> </span>
|
|
390
459
|
<span class="cline-any cline-neutral"> </span>
|
|
391
460
|
<span class="cline-any cline-no"> </span>
|
|
@@ -447,6 +516,8 @@
|
|
|
447
516
|
<span class="cline-any cline-neutral"> </span>
|
|
448
517
|
<span class="cline-any cline-neutral"> </span>
|
|
449
518
|
<span class="cline-any cline-neutral"> </span>
|
|
519
|
+
<span class="cline-any cline-neutral"> </span>
|
|
520
|
+
<span class="cline-any cline-neutral"> </span>
|
|
450
521
|
<span class="cline-any cline-no"> </span>
|
|
451
522
|
<span class="cline-any cline-neutral"> </span>
|
|
452
523
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -463,6 +534,7 @@
|
|
|
463
534
|
<span class="cline-any cline-neutral"> </span>
|
|
464
535
|
<span class="cline-any cline-neutral"> </span>
|
|
465
536
|
<span class="cline-any cline-neutral"> </span>
|
|
537
|
+
<span class="cline-any cline-neutral"> </span>
|
|
466
538
|
<span class="cline-any cline-no"> </span>
|
|
467
539
|
<span class="cline-any cline-no"> </span>
|
|
468
540
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -511,6 +583,7 @@
|
|
|
511
583
|
<span class="cline-any cline-neutral"> </span>
|
|
512
584
|
<span class="cline-any cline-neutral"> </span>
|
|
513
585
|
<span class="cline-any cline-neutral"> </span>
|
|
586
|
+
<span class="cline-any cline-neutral"> </span>
|
|
514
587
|
<span class="cline-any cline-no"> </span>
|
|
515
588
|
<span class="cline-any cline-neutral"> </span>
|
|
516
589
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -546,6 +619,15 @@
|
|
|
546
619
|
<span class="cline-any cline-neutral"> </span>
|
|
547
620
|
<span class="cline-any cline-neutral"> </span>
|
|
548
621
|
<span class="cline-any cline-neutral"> </span>
|
|
622
|
+
<span class="cline-any cline-neutral"> </span>
|
|
623
|
+
<span class="cline-any cline-neutral"> </span>
|
|
624
|
+
<span class="cline-any cline-neutral"> </span>
|
|
625
|
+
<span class="cline-any cline-neutral"> </span>
|
|
626
|
+
<span class="cline-any cline-neutral"> </span>
|
|
627
|
+
<span class="cline-any cline-neutral"> </span>
|
|
628
|
+
<span class="cline-any cline-neutral"> </span>
|
|
629
|
+
<span class="cline-any cline-neutral"> </span>
|
|
630
|
+
<span class="cline-any cline-neutral"> </span>
|
|
549
631
|
<span class="cline-any cline-no"> </span>
|
|
550
632
|
<span class="cline-any cline-neutral"> </span>
|
|
551
633
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -579,7 +661,15 @@
|
|
|
579
661
|
<span class="cline-any cline-neutral"> </span>
|
|
580
662
|
<span class="cline-any cline-neutral"> </span>
|
|
581
663
|
<span class="cline-any cline-neutral"> </span>
|
|
582
|
-
<span class="cline-any cline-neutral"> </span
|
|
664
|
+
<span class="cline-any cline-neutral"> </span>
|
|
665
|
+
<span class="cline-any cline-neutral"> </span>
|
|
666
|
+
<span class="cline-any cline-neutral"> </span>
|
|
667
|
+
<span class="cline-any cline-neutral"> </span>
|
|
668
|
+
<span class="cline-any cline-neutral"> </span>
|
|
669
|
+
<span class="cline-any cline-neutral"> </span>
|
|
670
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { forwardRef, useImperativeHandle } from 'react';
|
|
671
|
+
|
|
672
|
+
import PropTypes from 'prop-types';
|
|
583
673
|
import { FormattedMessage } from 'react-intl';
|
|
584
674
|
import { useInfiniteQuery } from 'react-query';
|
|
585
675
|
|
|
@@ -603,23 +693,30 @@ import {
|
|
|
603
693
|
} from '@folio/stripes/components';
|
|
604
694
|
|
|
605
695
|
import { generateKiwtQuery } from '../utils';
|
|
606
|
-
import { useKiwtSASQuery, useLocalStorageState } from '../hooks';
|
|
696
|
+
import { useKintIntl, useKiwtSASQuery, useLocalStorageState } from '../hooks';
|
|
607
697
|
|
|
608
698
|
import TableBody from './TableBody';
|
|
609
699
|
|
|
610
|
-
const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
700
|
+
const SASQLookupComponent = <span class="cstat-no" title="statement not covered" >forwardRef(<span class="fstat-no" title="function not covered" >(p</span>rops, ref) => {</span>
|
|
611
701
|
const {
|
|
612
702
|
children,
|
|
613
703
|
fetchParameters = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
614
704
|
FilterComponent = <span class="fstat-no" title="function not covered" ><span class="branch-0 cbranch-no" title="branch not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null,</span></span>
|
|
615
705
|
FilterPaneHeaderComponent = <span class="fstat-no" title="function not covered" ><span class="branch-0 cbranch-no" title="branch not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null,</span></span>
|
|
616
|
-
filterPaneProps
|
|
706
|
+
filterPaneProps = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
617
707
|
id,
|
|
708
|
+
intlKey: passedIntlKey,
|
|
709
|
+
intlNS: passedIntlNS,
|
|
710
|
+
labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
618
711
|
mainPaneProps,
|
|
619
712
|
noSearchField,
|
|
713
|
+
persistedPanesetProps = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
620
714
|
RenderBody,
|
|
621
715
|
sasqProps,
|
|
716
|
+
searchFieldAriaLabel,
|
|
717
|
+
searchFieldProps
|
|
622
718
|
} = <span class="cstat-no" title="statement not covered" >props;</span>
|
|
719
|
+
const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
|
|
623
720
|
|
|
624
721
|
const { query, queryGetter, querySetter } = <span class="cstat-no" title="statement not covered" >useKiwtSASQuery();</span>
|
|
625
722
|
const { 0: namespace } = <span class="cstat-no" title="statement not covered" >useNamespace();</span>
|
|
@@ -635,14 +732,30 @@ const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
|
635
732
|
|
|
636
733
|
const [filterPaneVisible, setFilterPaneVisible] = <span class="cstat-no" title="statement not covered" >useLocalStorageState(filterPaneVisibileKey, true);</span>
|
|
637
734
|
const toggleFilterPane = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >setFilterPaneVisible(!filterPaneVisible);</span></span>
|
|
735
|
+
|
|
736
|
+
const queryNamespace = <span class="cstat-no" title="statement not covered" >[namespace, 'SASQ'];</span>
|
|
737
|
+
<span class="cstat-no" title="statement not covered" > if (id) {</span>
|
|
738
|
+
<span class="cstat-no" title="statement not covered" > queryNamespace.push(id);</span>
|
|
739
|
+
}
|
|
740
|
+
<span class="cstat-no" title="statement not covered" > queryNamespace.push('viewAll');</span>
|
|
741
|
+
<span class="cstat-no" title="statement not covered" > queryNamespace.push(query);</span>
|
|
638
742
|
|
|
639
743
|
const {
|
|
640
744
|
data: totalData = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
641
745
|
...restOfInfiniteQueryProps
|
|
642
746
|
} = <span class="cstat-no" title="statement not covered" >useInfiniteQuery(</span>
|
|
643
|
-
|
|
747
|
+
queryNamespace,
|
|
644
748
|
fetchPageData
|
|
645
749
|
);
|
|
750
|
+
|
|
751
|
+
<span class="cstat-no" title="statement not covered" > useImperativeHandle(ref, <span class="fstat-no" title="function not covered" >()</span> => (</span>
|
|
752
|
+
<span class="cstat-no" title="statement not covered" > {</span>
|
|
753
|
+
lookupQueryProps: {
|
|
754
|
+
data: totalData,
|
|
755
|
+
...restOfInfiniteQueryProps
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
));
|
|
646
759
|
|
|
647
760
|
const data = <span class="cstat-no" title="statement not covered" >totalData.pages?.reduce(</span>
|
|
648
761
|
<span class="fstat-no" title="function not covered" > (a</span>cc, curr) => {
|
|
@@ -697,10 +810,12 @@ const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
|
697
810
|
<PersistedPaneset
|
|
698
811
|
appId={namespace}
|
|
699
812
|
id={`${id}-paneset`}
|
|
813
|
+
{...persistedPanesetProps}
|
|
700
814
|
>
|
|
701
815
|
{filterPaneVisible &&
|
|
702
816
|
<Pane
|
|
703
817
|
defaultWidth="20%"
|
|
818
|
+
id={`${id}-filter-pane`}
|
|
704
819
|
lastMenu={
|
|
705
820
|
<PaneMenu>
|
|
706
821
|
<IconButton
|
|
@@ -717,6 +832,7 @@ const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
|
717
832
|
{!noSearchField &&
|
|
718
833
|
<>
|
|
719
834
|
<SearchField
|
|
835
|
+
ariaLabel={searchFieldAriaLabel}
|
|
720
836
|
autoFocus
|
|
721
837
|
id={`sasq-search-field-${id}`}
|
|
722
838
|
name="query"
|
|
@@ -729,6 +845,7 @@ const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
|
729
845
|
}}
|
|
730
846
|
onClear={searchHandlers.reset}
|
|
731
847
|
value={searchValue.query}
|
|
848
|
+
{...searchFieldProps}
|
|
732
849
|
/>
|
|
733
850
|
<Button
|
|
734
851
|
buttonStyle="primary"
|
|
@@ -774,14 +891,23 @@ const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
|
774
891
|
</PaneMenu>
|
|
775
892
|
:
|
|
776
893
|
null}
|
|
894
|
+
id={`${id}-main-pane`}
|
|
777
895
|
noOverflow
|
|
778
896
|
padContent={false}
|
|
779
|
-
paneSub={
|
|
897
|
+
paneSub={
|
|
898
|
+
kintIntl.formatKintMessage({
|
|
899
|
+
id: 'found#Values',
|
|
900
|
+
overrideValue: labelOverrides?.foundValues
|
|
901
|
+
}, { total: data?.total })
|
|
902
|
+
}
|
|
780
903
|
{...mainPaneProps}
|
|
781
904
|
>
|
|
782
905
|
<Body
|
|
783
906
|
data={data}
|
|
784
907
|
filterPaneVisible={filterPaneVisible}
|
|
908
|
+
intlKey={passedIntlKey}
|
|
909
|
+
intlNS={passedIntlNS}
|
|
910
|
+
labelOverrides={labelOverrides}
|
|
785
911
|
query={query}
|
|
786
912
|
toggleFilterPane={toggleFilterPane}
|
|
787
913
|
{...restOfInfiniteQueryProps}
|
|
@@ -802,7 +928,7 @@ const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
|
802
928
|
}
|
|
803
929
|
</SearchAndSortQuery>
|
|
804
930
|
);
|
|
805
|
-
};
|
|
931
|
+
});
|
|
806
932
|
|
|
807
933
|
<span class="cstat-no" title="statement not covered" >SASQLookupComponent.propTypes = {</span>
|
|
808
934
|
children: PropTypes.oneOfType([
|
|
@@ -821,19 +947,25 @@ const SASQLookupComponent = <span class="cstat-no" title="statement not covered"
|
|
|
821
947
|
]),
|
|
822
948
|
history: PropTypes.object,
|
|
823
949
|
id: PropTypes.string.isRequired,
|
|
950
|
+
intlKey: PropTypes.string,
|
|
951
|
+
intlNS: PropTypes.string,
|
|
952
|
+
labelOverrides: PropTypes.object,
|
|
824
953
|
location: PropTypes.object,
|
|
825
954
|
mainPaneProps: PropTypes.object,
|
|
826
955
|
match: PropTypes.object,
|
|
827
956
|
mclProps: PropTypes.object,
|
|
828
957
|
noSearchField: PropTypes.bool,
|
|
829
958
|
path: PropTypes.string.isRequired,
|
|
959
|
+
persistedPanesetProps: PropTypes.object,
|
|
830
960
|
RenderBody: PropTypes.oneOfType([
|
|
831
961
|
PropTypes.func,
|
|
832
962
|
PropTypes.node
|
|
833
963
|
]),
|
|
834
964
|
resource: PropTypes.object,
|
|
835
965
|
resultColumns: PropTypes.arrayOf(PropTypes.object),
|
|
836
|
-
sasqProps: PropTypes.object
|
|
966
|
+
sasqProps: PropTypes.object,
|
|
967
|
+
searchFieldAriaLabel: PropTypes.string,
|
|
968
|
+
searchFieldProps: PropTypes.object
|
|
837
969
|
};
|
|
838
970
|
|
|
839
971
|
export default SASQLookupComponent;
|
|
@@ -844,7 +976,7 @@ export default SASQLookupComponent;
|
|
|
844
976
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
845
977
|
Code coverage generated by
|
|
846
978
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
847
|
-
at 2022-11-
|
|
979
|
+
at 2022-11-22T10:07:38.260Z
|
|
848
980
|
</div>
|
|
849
981
|
<script src="../prettify.js"></script>
|
|
850
982
|
<script>
|