@bookjane2/bookjane-design-library 9.0.6 → 9.0.9
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/lib/components/BKJAddressInput/BKJAddressInput.stories.d.ts +36 -1
- package/lib/components/BKJAddressInput/BKJAddressInput.stories.d.ts.map +1 -1
- package/lib/components/BKJAddressInput/BKJAddressInput.stories.js +33 -3
- package/lib/components/BKJAddressInput/BKJAddressInput.stories.js.map +1 -1
- package/lib/components/BKJAddressInput/BKJAddressInput.test.d.ts +2 -0
- package/lib/components/BKJAddressInput/BKJAddressInput.test.d.ts.map +1 -0
- package/lib/components/BKJAddressInput/BKJAddressInput.test.js +198 -0
- package/lib/components/BKJAddressInput/BKJAddressInput.test.js.map +1 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.d.ts.map +1 -1
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.js +23 -9
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.js.map +1 -1
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.stories.d.ts +2 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.stories.d.ts.map +1 -1
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.stories.js +7 -3
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.stories.js.map +1 -1
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.styled.d.ts +2 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.styled.d.ts.map +1 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.styled.js +6 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.styled.js.map +1 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.test.d.ts +2 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.test.d.ts.map +1 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.test.js +114 -0
- package/lib/components/BKJCheckboxListItem/BKJCheckboxListItem.test.js.map +1 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.d.ts +1 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.js +2 -2
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.stories.d.ts +3 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.stories.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.stories.js +48 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.stories.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.test.d.ts +22 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.test.d.ts.map +1 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.test.js +561 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.test.js.map +1 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.types.d.ts +41 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.types.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.utils.d.ts +6 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.utils.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.utils.js +14 -0
- package/lib/components/BKJComboBoxAsync/BKJComboBoxAsync.utils.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsync.context.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsync.context.hooks.d.ts +48 -0
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsync.context.hooks.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsync.context.hooks.js +99 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsync.context.hooks.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsync.context.js +107 -26
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsync.context.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncInput.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncInput.js +29 -3
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncInput.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncItem.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncItem.js +7 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncItem.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncOptions.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncOptions.js +25 -6
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncOptions.js.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncOptionsMapper.d.ts.map +1 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncOptionsMapper.js +6 -1
- package/lib/components/BKJComboBoxAsync/src/BKJComboBoxAsyncOptionsMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,5 +3,5 @@ import { IBKJComboBoxAsyncProps } from './BKJComboBoxAsync.types.js';
|
|
|
3
3
|
* BookJane's Asynchronous Searchable Select Component
|
|
4
4
|
* @authors [David Zahiri](https://github.com/twistedrc1017), [Matthew J. Wong](https://github.com/matthew-jay-wong)
|
|
5
5
|
*/
|
|
6
|
-
export declare const BKJComboBoxAsync: import("react").ForwardRefExoticComponent<Pick<IBKJComboBoxAsyncProps, "target" | "name" | "value" | "label" | "checked" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "subLabelPosition" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "icon" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "searchKey" | "context" | "searchValue" | "onSearchChange" | "cacheKey" | "showFullFocusBorder"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export declare const BKJComboBoxAsync: import("react").ForwardRefExoticComponent<Pick<IBKJComboBoxAsyncProps, "target" | "name" | "value" | "label" | "checked" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "subLabelPosition" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "icon" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "searchKey" | "context" | "searchValue" | "onSearchChange" | "loadingLabel" | "resultsCountLabel" | "noResultsLabel" | "cacheKey" | "showFullFocusBorder"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
7
|
//# sourceMappingURL=BKJComboBoxAsync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BKJComboBoxAsync.d.ts","sourceRoot":"","sources":["../../../src/components/BKJComboBoxAsync/BKJComboBoxAsync.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKlE;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"BKJComboBoxAsync.d.ts","sourceRoot":"","sources":["../../../src/components/BKJComboBoxAsync/BKJComboBoxAsync.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKlE;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,itMAmE5B,CAAC"}
|
|
@@ -9,10 +9,10 @@ import { BKJComboBoxOptions } from './src/BKJComboBoxAsyncOptions.js';
|
|
|
9
9
|
* @authors [David Zahiri](https://github.com/twistedrc1017), [Matthew J. Wong](https://github.com/matthew-jay-wong)
|
|
10
10
|
*/
|
|
11
11
|
export const BKJComboBoxAsync = forwardRef((props, ref) => {
|
|
12
|
-
const { autoComplete = 'off', label = undefined, name, onChange, onSearchChange, searchValue = '', options = [], value = undefined, type = 'Single', action = 'OpenToggle', variant = 'Search', placeholder = 'Begin typing to see results...', context, required, disabled = undefined, searchKey, icon = undefined, className, overrides = [], subLabelPosition = 'right', showFullFocusBorder = true, } = props;
|
|
12
|
+
const { autoComplete = 'off', label = undefined, name, onChange, onSearchChange, searchValue = '', options = [], value = undefined, type = 'Single', action = 'OpenToggle', variant = 'Search', placeholder = 'Begin typing to see results...', context, required, disabled = undefined, searchKey, icon = undefined, className, overrides = [], subLabelPosition = 'right', showFullFocusBorder = true, loadingLabel, resultsCountLabel, noResultsLabel, } = props;
|
|
13
13
|
const targetElement = usePortalTargetElement('dropdown-root');
|
|
14
14
|
if (!targetElement)
|
|
15
15
|
return _jsx(Fragment, {});
|
|
16
|
-
return (_jsxs(BKJComboBoxAsyncProvider, { name: name, type: type, icon: icon, value: value, label: label, action: action, context: context, variant: variant, options: options, onChange: onChange, required: required, disabled: disabled, error: props.error, searchKey: searchKey, placeholder: placeholder, searchValue: searchValue, onSearchChange: onSearchChange, portalTargetElement: targetElement, subLabelPosition: subLabelPosition, children: [_jsx(BKJComboBoxAsyncInput, { ref: ref, autoComplete: autoComplete, className: className, overrides: overrides, showFullFocusBorder: showFullFocusBorder }), _jsx(BKJComboBoxOptions, { overrides: overrides })] }));
|
|
16
|
+
return (_jsxs(BKJComboBoxAsyncProvider, { name: name, type: type, icon: icon, value: value, label: label, action: action, context: context, variant: variant, options: options, onChange: onChange, required: required, disabled: disabled, error: props.error, searchKey: searchKey, placeholder: placeholder, searchValue: searchValue, onSearchChange: onSearchChange, portalTargetElement: targetElement, subLabelPosition: subLabelPosition, loadingLabel: loadingLabel, resultsCountLabel: resultsCountLabel, noResultsLabel: noResultsLabel, children: [_jsx(BKJComboBoxAsyncInput, { ref: ref, autoComplete: autoComplete, className: className, overrides: overrides, showFullFocusBorder: showFullFocusBorder }), _jsx(BKJComboBoxOptions, { overrides: overrides })] }));
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=BKJComboBoxAsync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BKJComboBoxAsync.js","sourceRoot":"","sources":["../../../src/components/BKJComboBoxAsync/BKJComboBoxAsync.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EA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AE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,mBAAmB,EAAE,mBAAmB,GACxC,EACF,KAAC,kBAAkB,IAAC,SAAS,EAAE,SAAS,GAAI,IACnB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { IBKJComboBoxAsyncProps } from './BKJComboBoxAsync.types.js';
|
|
2
2
|
declare const setup: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<IBKJComboBoxAsyncProps, "target" | "name" | "value" | "label" | "checked" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "subLabelPosition" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "icon" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "searchKey" | "context" | "searchValue" | "onSearchChange" | "cacheKey" | "showFullFocusBorder"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<IBKJComboBoxAsyncProps, "target" | "name" | "value" | "label" | "checked" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "id" | "selected" | "disabled" | "subLabelPosition" | "variant" | "type" | "start" | "hidden" | "color" | "content" | "size" | "default" | "wrap" | "open" | "icon" | "multiple" | "width" | "css" | "isOpen" | "overrides" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "leftIconProps" | "rightIconProps" | "labelProps" | "fieldSetProps" | "description" | "isRequired" | "error" | "openBorderLocation" | "useFocusBorder" | "options" | "searchKey" | "context" | "searchValue" | "onSearchChange" | "loadingLabel" | "resultsCountLabel" | "noResultsLabel" | "cacheKey" | "showFullFocusBorder"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
5
|
argTypes: {};
|
|
6
6
|
};
|
|
7
7
|
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, IBKJComboBoxAsyncProps>;
|
|
8
|
+
export declare const Loading: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, IBKJComboBoxAsyncProps>;
|
|
9
|
+
export declare const EmptyResults: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, IBKJComboBoxAsyncProps>;
|
|
8
10
|
export default setup;
|
|
9
11
|
//# sourceMappingURL=BKJComboBoxAsync.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BKJComboBoxAsync.stories.d.ts","sourceRoot":"","sources":["../../../src/components/BKJComboBoxAsync/BKJComboBoxAsync.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAelE,QAAA,MAAM,KAAK;;;;CAIV,CAAC;AAuFF,eAAO,MAAM,OAAO,kHAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"BKJComboBoxAsync.stories.d.ts","sourceRoot":"","sources":["../../../src/components/BKJComboBoxAsync/BKJComboBoxAsync.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAelE,QAAA,MAAM,KAAK;;;;CAIV,CAAC;AAuFF,eAAO,MAAM,OAAO,kHAAoB,CAAC;AAyCzC,eAAO,MAAM,OAAO,kHAA2B,CAAC;AAwChD,eAAO,MAAM,YAAY,kHAAyB,CAAC;AAGnD,eAAe,KAAK,CAAC"}
|
|
@@ -90,5 +90,53 @@ const Template = () => {
|
|
|
90
90
|
};
|
|
91
91
|
export const Default = Template.bind({});
|
|
92
92
|
Default.args = {};
|
|
93
|
+
// WEB-4815 / T013: fetch in flight, no options yet. Reviewers confirm
|
|
94
|
+
// `aria-busy="true"` on the listbox and a "Loading results…" live-region
|
|
95
|
+
// announcement after ~1s.
|
|
96
|
+
const LoadingTemplate = () => {
|
|
97
|
+
const { values: values2, onChange: onChange2 } = useFormBehaviors({
|
|
98
|
+
initialState: { byName: 'ac' },
|
|
99
|
+
isDirtyCheckEnabled: true,
|
|
100
|
+
type: 'EDIT',
|
|
101
|
+
validations: {},
|
|
102
|
+
onSubmit: () => { },
|
|
103
|
+
});
|
|
104
|
+
const LoadingContext = createContext({
|
|
105
|
+
__typename: 'GraphQLAPI',
|
|
106
|
+
loadMore: () => null,
|
|
107
|
+
status: 'LOADING',
|
|
108
|
+
fetch: () => null,
|
|
109
|
+
values: {},
|
|
110
|
+
isLoading: true,
|
|
111
|
+
data: { pageInfo: { hasNextPage: false } },
|
|
112
|
+
});
|
|
113
|
+
return (_jsx(BKJComboBoxAsync, { searchValue: values2.byName, searchKey: "byName", onSearchChange: onChange2, type: "Single", value: undefined, options: [], name: "location", action: "OpenToggle", onChange: () => null, context: LoadingContext, icon: "Location1" }));
|
|
114
|
+
};
|
|
115
|
+
export const Loading = LoadingTemplate.bind({});
|
|
116
|
+
Loading.args = {};
|
|
117
|
+
// WEB-4815 / T022: fetch resolved with zero options. Reviewers confirm
|
|
118
|
+
// an in-listbox `role="option" aria-disabled="true"` "No results" element
|
|
119
|
+
// exists and is AT-announceable. No live-region "No results" announcement.
|
|
120
|
+
const EmptyTemplate = () => {
|
|
121
|
+
const { values: values2, onChange: onChange2 } = useFormBehaviors({
|
|
122
|
+
initialState: { byName: 'zzzz' },
|
|
123
|
+
isDirtyCheckEnabled: true,
|
|
124
|
+
type: 'EDIT',
|
|
125
|
+
validations: {},
|
|
126
|
+
onSubmit: () => { },
|
|
127
|
+
});
|
|
128
|
+
const EmptyContext = createContext({
|
|
129
|
+
__typename: 'GraphQLAPI',
|
|
130
|
+
loadMore: () => null,
|
|
131
|
+
status: 'READY',
|
|
132
|
+
fetch: () => null,
|
|
133
|
+
values: {},
|
|
134
|
+
isLoading: false,
|
|
135
|
+
data: { pageInfo: { hasNextPage: false } },
|
|
136
|
+
});
|
|
137
|
+
return (_jsx(BKJComboBoxAsync, { searchValue: values2.byName, searchKey: "byName", onSearchChange: onChange2, type: "Single", value: undefined, options: [], name: "location", action: "OpenToggle", onChange: () => null, context: EmptyContext, icon: "Location1" }));
|
|
138
|
+
};
|
|
139
|
+
export const EmptyResults = EmptyTemplate.bind({});
|
|
140
|
+
EmptyResults.args = {};
|
|
93
141
|
export default setup;
|
|
94
142
|
//# sourceMappingURL=BKJComboBoxAsync.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BKJComboBoxAsync.stories.js","sourceRoot":"","sources":["../../../src/components/BKJComboBoxAsync/BKJComboBoxAsync.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,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AAgB;QACxB,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;QACjB,MAAM,EAAE,EAAE;QACV,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE;KAC3C,CAAiC,CAAC;IACnC,OAAO,CACL,KAAC,gBAAgB,IACf,WAAW,EAAE,OAAO,CAAC,MAAgB,EACrC,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAE,SAAS,EACzB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,EAAE,EACX,IAAI,EAAC,UAAU,EACf,MAAM,EAAC,YAAY,EACnB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,EACpB,OAAO,EAAE,YAAY,EACrB,IAAI,EAAC,WAAW,GAChB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,YAAY,CAAC,IAAI,GAAG,EAAE,CAAC;AAEvB,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BKJComboBoxAsync.test.tsx
|
|
3
|
+
*
|
|
4
|
+
* WEB-4815 — BKJComboBoxAsync Accessibility (WCAG 2.1 Level A)
|
|
5
|
+
*
|
|
6
|
+
* Asserts:
|
|
7
|
+
* - Accessibility (axe): clean closed / loading / loaded-with-results /
|
|
8
|
+
* empty states (FR-007; T019, T027, T042a).
|
|
9
|
+
* - Async busy state and loading announcement (FR-002, FR-003, FR-005,
|
|
10
|
+
* FR-006; I-A01, I-A02, I-A03; T014–T018).
|
|
11
|
+
* - Empty and results-count (FR-004; I-A04, I-A05; T023–T028).
|
|
12
|
+
* - Inherited combobox ARIA and keyboard (FR-001; I-01..I-12 from WEB-4811;
|
|
13
|
+
* T034–T042 + T040 stale-fetch/SC-004, T041 close-during-fetch).
|
|
14
|
+
* - Error state (I-11 inherited; T042).
|
|
15
|
+
* - No-regression smoke (SC-006; T045–T047).
|
|
16
|
+
*
|
|
17
|
+
* T003 / Phase 1 finding: WEB-4811 did NOT extract a shared combobox-ARIA
|
|
18
|
+
* helper. Its patterns are inlined per-component; WEB-4815 replicates the
|
|
19
|
+
* same patterns in BKJComboBoxAsync rather than importing a helper.
|
|
20
|
+
*/
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=BKJComboBoxAsync.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BKJComboBoxAsync.test.d.ts","sourceRoot":"","sources":["../../../src/components/BKJComboBoxAsync/BKJComboBoxAsync.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|