@itcase/ui 1.1.5 → 1.1.7
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/dist/Accordion-JS45IVx7.js +204 -0
- package/dist/Breadcrumbs-KOoMbWmP.js +619 -0
- package/dist/ContextMenuItem-CF5L8xev.js +204 -0
- package/dist/DropdownItem-C0gYXEq6.js +644 -0
- package/dist/FlexItem-DHynUt6v.js +118 -0
- package/dist/GridRow-Buc4dsHd.js +1691 -0
- package/dist/Group-DhYXDvAJ.js +119 -0
- package/dist/ListItem-DYbK4_8c.js +479 -0
- package/dist/ModalLoader-DJVKhIZR.js +374 -0
- package/dist/NotificationList-KbxjrO3o.js +245 -0
- package/dist/SearchResult-DNPmzvp8.js +530 -0
- package/dist/SelectField-uEsQcoxF.js +571 -0
- package/dist/SiteMenuButton-DE_hCJUV.js +181 -0
- package/dist/TabGroup-CCR5jORT.js +1071 -0
- package/dist/Text-DffpwlYq.js +81 -0
- package/dist/cjs/Accordion-BDTE-Lkj.js +213 -0
- package/dist/cjs/Breadcrumbs-BV5q8aPJ.js +629 -0
- package/dist/cjs/ContextMenuItem-C8eg828K.js +213 -0
- package/dist/cjs/DropdownItem-DT8iQfVh.js +653 -0
- package/dist/cjs/FlexItem-CYXxJtYX.js +125 -0
- package/dist/cjs/GridRow-6wilpUeo.js +1701 -0
- package/dist/cjs/Group-DbzIk8kt.js +126 -0
- package/dist/cjs/ListItem-CTDoiG0C.js +488 -0
- package/dist/cjs/ModalLoader-4mmV5G4E.js +384 -0
- package/dist/cjs/NotificationList-B6QbYA9H.js +255 -0
- package/dist/cjs/SearchResult-CdsV7oDb.js +540 -0
- package/dist/cjs/SelectField-DVCsVz6q.js +583 -0
- package/dist/cjs/SiteMenuButton-CVdX1ouh.js +190 -0
- package/dist/cjs/TabGroup-B1LUF9Hg.js +1081 -0
- package/dist/cjs/Text-CfBPhwqK.js +88 -0
- package/dist/cjs/components/Accordion/Accordion.d.ts +8 -0
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/cjs/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/cjs/components/Accordion/index.d.ts +3 -0
- package/dist/cjs/components/Accordion.js +45 -0
- package/dist/cjs/components/Avatar.js +270 -0
- package/dist/cjs/components/Badge.js +206 -0
- package/dist/cjs/components/Breadcrumbs.js +48 -0
- package/dist/cjs/components/Button.js +563 -0
- package/dist/cjs/components/Caption.js +197 -0
- package/dist/cjs/components/Card.js +279 -0
- package/dist/cjs/components/Cell.js +426 -0
- package/dist/cjs/components/Checkbox.js +166 -0
- package/dist/cjs/components/Chips.js +393 -0
- package/dist/cjs/components/Choice.js +351 -0
- package/dist/cjs/components/Code.js +437 -0
- package/dist/cjs/components/ContextMenu.js +48 -0
- package/dist/cjs/components/CookiesWarning.js +186 -0
- package/dist/cjs/components/DadataHintField.js +1193 -0
- package/dist/cjs/components/DatePicker.js +14102 -0
- package/dist/{components/Background.js → cjs/components/Divider.js} +75 -83
- package/dist/cjs/components/Dot.js +226 -0
- package/dist/cjs/components/Drawer.js +274 -0
- package/dist/cjs/components/Dropdown.js +36 -0
- package/dist/cjs/components/Flex/Flex.d.ts +8 -0
- package/dist/cjs/components/Flex/Flex.interface.d.ts +116 -0
- package/dist/cjs/components/Flex/FlexItem.d.ts +8 -0
- package/dist/cjs/components/Flex/index.d.ts +3 -0
- package/dist/cjs/components/Flex.js +22 -0
- package/dist/cjs/components/FormField.js +59 -0
- package/dist/cjs/components/Grid.js +30 -0
- package/dist/cjs/components/Group/Group.d.ts +9 -0
- package/dist/cjs/components/Group/Group.interface.d.ts +49 -0
- package/dist/cjs/components/Group/index.d.ts +1 -0
- package/dist/cjs/components/Group.js +22 -0
- package/dist/cjs/components/Icon.js +641 -0
- package/dist/cjs/components/Image.js +480 -0
- package/dist/cjs/components/Input.js +233 -0
- package/dist/cjs/components/InputMask.js +233 -0
- package/dist/cjs/components/InputPassword.js +260 -0
- package/dist/cjs/components/Label.js +643 -0
- package/dist/cjs/components/LanguageSelector.js +130 -0
- package/dist/cjs/components/Link.js +505 -0
- package/dist/cjs/components/List.js +31 -0
- package/dist/cjs/components/Loader.js +156 -0
- package/dist/cjs/components/Logo.js +182 -0
- package/dist/cjs/components/Menu.js +192 -0
- package/dist/cjs/components/MenuItem.js +680 -0
- package/dist/cjs/components/Modal.js +28 -0
- package/dist/cjs/components/Notification.js +37 -0
- package/dist/cjs/components/Overlay.js +197 -0
- package/dist/cjs/components/Page.js +422 -0
- package/dist/cjs/components/Pagination.js +372 -0
- package/dist/cjs/components/Radio.js +267 -0
- package/dist/cjs/components/RangeSlider.js +296 -0
- package/dist/cjs/components/Response.js +248 -0
- package/dist/cjs/components/ScrollOnDrag.js +214 -0
- package/dist/cjs/components/Scrollbar.js +71 -0
- package/dist/cjs/components/Search.js +48 -0
- package/dist/cjs/components/Segmented.js +235 -0
- package/dist/cjs/components/Select.js +8538 -0
- package/dist/cjs/components/SiteMenu.js +45 -0
- package/dist/cjs/components/Swiper.js +5655 -0
- package/dist/cjs/components/Switch.js +105 -0
- package/dist/cjs/components/Tab.js +42 -0
- package/dist/cjs/components/Text/Text.d.ts +9 -0
- package/dist/cjs/components/Text/Text.interface.d.ts +51 -0
- package/dist/cjs/components/Text/index.d.ts +1 -0
- package/dist/cjs/components/Text.js +22 -0
- package/dist/cjs/components/Textarea.js +212 -0
- package/dist/cjs/components/Tile.js +571 -0
- package/dist/cjs/components/Title.js +400 -0
- package/dist/cjs/components/Tooltip.js +451 -0
- package/dist/cjs/components/Video.js +175 -0
- package/dist/cjs/components/Wrapper.js +438 -0
- package/dist/cjs/components/index.d.ts +58 -0
- package/dist/cjs/components.js +241 -0
- package/dist/cjs/constants/componentProps/align.js +7 -0
- package/dist/cjs/constants/componentProps/alignDirection.js +7 -0
- package/dist/cjs/constants/componentProps/alignment.js +7 -0
- package/dist/cjs/constants/componentProps/borderColor.js +7 -0
- package/dist/cjs/constants/componentProps/borderColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/borderType.js +7 -0
- package/dist/cjs/constants/componentProps/borderWidth.js +9 -0
- package/dist/cjs/constants/componentProps/captionPosition.js +7 -0
- package/dist/cjs/constants/componentProps/direction.js +7 -0
- package/dist/cjs/constants/componentProps/emojiSize.js +9 -0
- package/dist/cjs/constants/componentProps/fill.js +7 -0
- package/dist/cjs/constants/componentProps/fillGradient.js +7 -0
- package/dist/cjs/constants/componentProps/fillHover.js +7 -0
- package/dist/cjs/constants/componentProps/fillType.js +7 -0
- package/dist/cjs/constants/componentProps/flexAlign.js +7 -0
- package/dist/cjs/constants/componentProps/flexJustifyContent.js +7 -0
- package/dist/cjs/constants/componentProps/flexWrap.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlign.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlignSelf.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifyItems.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifySelf.js +7 -0
- package/dist/cjs/constants/componentProps/height.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/iconFillSize.js +9 -0
- package/dist/cjs/constants/componentProps/iconSize.js +9 -0
- package/dist/cjs/constants/componentProps/itemColor.js +7 -0
- package/dist/cjs/constants/componentProps/position.js +7 -0
- package/dist/cjs/constants/componentProps/resizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/shape.js +7 -0
- package/dist/cjs/constants/componentProps/size.js +7 -0
- package/dist/cjs/constants/componentProps/sizeInterface.js +7 -0
- package/dist/cjs/constants/componentProps/sizePX.js +9 -0
- package/dist/cjs/constants/componentProps/stacking.js +7 -0
- package/dist/cjs/constants/componentProps/state.js +7 -0
- package/dist/cjs/constants/componentProps/strokeColor.js +7 -0
- package/dist/cjs/constants/componentProps/textAlign.js +7 -0
- package/dist/cjs/constants/componentProps/textColor.js +7 -0
- package/dist/cjs/constants/componentProps/textColorActive.js +7 -0
- package/dist/cjs/constants/componentProps/textColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/textGradient.js +7 -0
- package/dist/cjs/constants/componentProps/textSize.js +7 -0
- package/dist/cjs/constants/componentProps/textStyle.js +7 -0
- package/dist/cjs/constants/componentProps/textTag.js +7 -0
- package/dist/cjs/constants/componentProps/textWeight.js +9 -0
- package/dist/cjs/constants/componentProps/textWrap.js +7 -0
- package/dist/cjs/constants/componentProps/titleSize.js +7 -0
- package/dist/cjs/constants/componentProps/type.js +7 -0
- package/dist/cjs/constants/componentProps/underline.js +7 -0
- package/dist/cjs/constants/componentProps/verticalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/verticalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/width.js +7 -0
- package/dist/cjs/constants/componentProps/wrap.js +7 -0
- package/dist/cjs/constants-ts/componentProps/align.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/alignDirection.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/alignment.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderColorHover.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderType.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderWidth.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/captionPosition.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/direction.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/elevation.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/emojiSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fill.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fillGradient.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fillHover.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fillType.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexGrow.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexWrap.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/height.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/iconFillSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/iconSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/itemColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/justifyContent.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/position.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/resizeMode.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/shape.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/size.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/sizeInterface.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/sizePX.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/stacking.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/state.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/strokeColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textColorActive.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textColorHover.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textGradient.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textStyle.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textTag.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textWeight.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textWrap.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/titleSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/type.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/underline.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/width.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/wrap.d.ts +1 -0
- package/dist/cjs/constants-ts/index.d.ts +56 -0
- package/dist/cjs/constants.js +111 -0
- package/dist/cjs/context/Notifications.js +122 -0
- package/dist/cjs/context/UIContext.js +56 -0
- package/dist/cjs/context/index.d.ts +2 -0
- package/dist/cjs/hooks/index.d.ts +3 -0
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +145 -0
- package/dist/cjs/hooks/styleAttributes.js +39 -0
- package/dist/cjs/hooks/useDeviceTargetClass.js +61 -0
- package/dist/cjs/hooks/useMediaQueries.js +139 -0
- package/dist/cjs/hooks/useStyles.js +135 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/jsx-runtime-BCmQOGxJ.js +1363 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion.js +38 -697
- package/dist/components/Avatar.js +75 -70
- package/dist/components/Badge.js +41 -56
- package/dist/components/Breadcrumbs.js +41 -656
- package/dist/components/Button.js +115 -107
- package/dist/components/Caption.js +37 -45
- package/dist/components/Card.js +47 -60
- package/dist/components/Cell.js +87 -96
- package/dist/components/Checkbox.js +41 -56
- package/dist/components/Chips.js +64 -78
- package/dist/components/Choice.js +81 -91
- package/dist/components/Code.js +40 -48
- package/dist/components/ContextMenu.js +41 -246
- package/dist/components/CookiesWarning.js +61 -73
- package/dist/components/DadataHintField.js +59 -65
- package/dist/components/DatePicker.js +5255 -425
- package/dist/components/Divider.js +47 -55
- package/dist/components/Dot.js +37 -45
- package/dist/components/Drawer.js +26 -34
- package/dist/components/Dropdown.js +29 -657
- package/dist/components/Flex/Flex.d.ts +8 -0
- package/dist/components/Flex/Flex.interface.d.ts +116 -0
- package/dist/components/Flex/FlexItem.d.ts +8 -0
- package/dist/components/Flex/index.d.ts +3 -0
- package/dist/components/Flex.js +15 -1185
- package/dist/components/FormField.js +49 -617
- package/dist/components/Grid.js +22 -1705
- package/dist/components/Group/Group.d.ts +9 -0
- package/dist/components/Group/Group.interface.d.ts +49 -0
- package/dist/components/Group/index.d.ts +1 -0
- package/dist/components/Group.js +15 -315
- package/dist/components/Icon.js +113 -124
- package/dist/components/Image.js +78 -94
- package/dist/components/Input.js +40 -49
- package/dist/components/InputMask.js +39 -48
- package/dist/components/InputPassword.js +66 -76
- package/dist/components/Label.js +104 -114
- package/dist/components/LanguageSelector.js +53 -62
- package/dist/components/Link.js +74 -84
- package/dist/components/List.js +24 -498
- package/dist/components/Loader.js +41 -56
- package/dist/components/Logo.js +47 -55
- package/dist/components/Menu.js +51 -58
- package/dist/components/MenuItem.js +103 -111
- package/dist/components/Modal.js +21 -402
- package/dist/components/Notification.js +29 -281
- package/dist/components/Overlay.js +37 -45
- package/dist/components/Page.js +66 -74
- package/dist/components/Pagination.js +223 -54
- package/dist/components/Radio.js +55 -70
- package/dist/components/RangeSlider.js +53 -62
- package/dist/components/Response.js +109 -122
- package/dist/components/ScrollOnDrag.js +80 -164
- package/dist/components/Scrollbar.js +15 -18
- package/dist/components/Search.js +40 -571
- package/dist/components/Segmented.js +54 -69
- package/dist/components/Select.js +281 -324
- package/dist/components/SiteMenu.js +38 -221
- package/dist/components/Swiper.js +183 -186
- package/dist/components/Switch.js +17 -25
- package/dist/components/Tab.js +34 -1089
- package/dist/components/Text/Text.d.ts +9 -0
- package/dist/components/Text/Text.interface.d.ts +51 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text.js +15 -362
- package/dist/components/Textarea.js +37 -46
- package/dist/components/Tile.js +103 -112
- package/dist/components/Title.js +66 -75
- package/dist/components/Tooltip.js +83 -93
- package/dist/components/Video.js +32 -40
- package/dist/components/Wrapper.js +67 -75
- package/dist/components/index.d.ts +58 -0
- package/dist/components.js +124 -0
- package/dist/constants/componentProps/align.js +1 -3
- package/dist/constants/componentProps/alignDirection.js +1 -3
- package/dist/constants/componentProps/alignment.js +1 -3
- package/dist/constants/componentProps/borderColor.js +1 -3
- package/dist/constants/componentProps/borderColorHover.js +1 -3
- package/dist/constants/componentProps/borderType.js +1 -3
- package/dist/constants/componentProps/borderWidth.js +1 -3
- package/dist/constants/componentProps/captionPosition.js +1 -3
- package/dist/constants/componentProps/direction.js +1 -3
- package/dist/constants/componentProps/emojiSize.js +1 -3
- package/dist/constants/componentProps/fill.js +1 -3
- package/dist/constants/componentProps/fillGradient.js +1 -3
- package/dist/constants/componentProps/fillHover.js +1 -3
- package/dist/constants/componentProps/fillType.js +1 -3
- package/dist/constants/componentProps/flexAlign.js +1 -3
- package/dist/constants/componentProps/flexJustifyContent.js +1 -3
- package/dist/constants/componentProps/flexWrap.js +1 -3
- package/dist/constants/componentProps/gridAlign.js +1 -3
- package/dist/constants/componentProps/gridAlignSelf.js +1 -3
- package/dist/constants/componentProps/gridJustifyItems.js +1 -3
- package/dist/constants/componentProps/gridJustifySelf.js +1 -3
- package/dist/constants/componentProps/height.js +1 -3
- package/dist/constants/componentProps/horizontalContentAlign.js +1 -3
- package/dist/constants/componentProps/horizontalResizeMode.js +1 -3
- package/dist/constants/componentProps/iconFillSize.js +1 -3
- package/dist/constants/componentProps/iconSize.js +1 -3
- package/dist/constants/componentProps/itemColor.js +1 -3
- package/dist/constants/componentProps/position.js +1 -3
- package/dist/constants/componentProps/resizeMode.js +1 -3
- package/dist/constants/componentProps/shape.js +1 -3
- package/dist/constants/componentProps/size.js +1 -3
- package/dist/constants/componentProps/sizeInterface.js +1 -3
- package/dist/constants/componentProps/sizePX.js +1 -3
- package/dist/constants/componentProps/stacking.js +1 -3
- package/dist/constants/componentProps/state.js +1 -3
- package/dist/constants/componentProps/strokeColor.js +1 -3
- package/dist/constants/componentProps/textAlign.js +1 -3
- package/dist/constants/componentProps/textColor.js +1 -3
- package/dist/constants/componentProps/textColorActive.js +1 -3
- package/dist/constants/componentProps/textColorHover.js +1 -3
- package/dist/constants/componentProps/textGradient.js +1 -3
- package/dist/constants/componentProps/textSize.js +1 -3
- package/dist/constants/componentProps/textStyle.js +1 -3
- package/dist/constants/componentProps/textTag.js +1 -3
- package/dist/constants/componentProps/textWeight.js +1 -3
- package/dist/constants/componentProps/textWrap.js +1 -3
- package/dist/constants/componentProps/titleSize.js +1 -3
- package/dist/constants/componentProps/type.js +1 -3
- package/dist/constants/componentProps/underline.js +1 -3
- package/dist/constants/componentProps/verticalContentAlign.js +1 -3
- package/dist/constants/componentProps/verticalResizeMode.js +1 -3
- package/dist/constants/componentProps/width.js +1 -3
- package/dist/constants/componentProps/wrap.js +1 -3
- package/dist/constants-ts/componentProps/align.d.ts +1 -0
- package/dist/constants-ts/componentProps/alignDirection.d.ts +1 -0
- package/dist/constants-ts/componentProps/alignment.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderColorHover.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderType.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderWidth.d.ts +1 -0
- package/dist/constants-ts/componentProps/captionPosition.d.ts +1 -0
- package/dist/constants-ts/componentProps/direction.d.ts +1 -0
- package/dist/constants-ts/componentProps/elevation.d.ts +1 -0
- package/dist/constants-ts/componentProps/emojiSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/fill.d.ts +1 -0
- package/dist/constants-ts/componentProps/fillGradient.d.ts +1 -0
- package/dist/constants-ts/componentProps/fillHover.d.ts +1 -0
- package/dist/constants-ts/componentProps/fillType.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexGrow.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexWrap.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/constants-ts/componentProps/height.d.ts +1 -0
- package/dist/constants-ts/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/constants-ts/componentProps/iconFillSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/iconSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/itemColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/justifyContent.d.ts +1 -0
- package/dist/constants-ts/componentProps/position.d.ts +1 -0
- package/dist/constants-ts/componentProps/resizeMode.d.ts +1 -0
- package/dist/constants-ts/componentProps/shape.d.ts +1 -0
- package/dist/constants-ts/componentProps/size.d.ts +1 -0
- package/dist/constants-ts/componentProps/sizeInterface.d.ts +1 -0
- package/dist/constants-ts/componentProps/sizePX.d.ts +1 -0
- package/dist/constants-ts/componentProps/stacking.d.ts +1 -0
- package/dist/constants-ts/componentProps/state.d.ts +1 -0
- package/dist/constants-ts/componentProps/strokeColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/textAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/textColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/textColorActive.d.ts +1 -0
- package/dist/constants-ts/componentProps/textColorHover.d.ts +1 -0
- package/dist/constants-ts/componentProps/textGradient.d.ts +1 -0
- package/dist/constants-ts/componentProps/textSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/textStyle.d.ts +1 -0
- package/dist/constants-ts/componentProps/textTag.d.ts +1 -0
- package/dist/constants-ts/componentProps/textWeight.d.ts +1 -0
- package/dist/constants-ts/componentProps/textWrap.d.ts +1 -0
- package/dist/constants-ts/componentProps/titleSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/type.d.ts +1 -0
- package/dist/constants-ts/componentProps/underline.d.ts +1 -0
- package/dist/constants-ts/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/constants-ts/componentProps/width.d.ts +1 -0
- package/dist/constants-ts/componentProps/wrap.d.ts +1 -0
- package/dist/constants-ts/index.d.ts +56 -0
- package/dist/constants.js +53 -111
- package/dist/context/Notifications.js +16 -25
- package/dist/context/UIContext.js +20 -29
- package/dist/context/index.d.ts +2 -0
- package/dist/css/components/Avatar/Avatar.css +10 -0
- package/dist/css/components/Button/Button.css +1 -1
- package/dist/css/components/DatePicker/DatePicker.css +11 -10
- package/dist/css/components/Dropdown/Dropdown.css +41 -15
- package/dist/css/components/Grid/Grid.css +9 -17
- package/dist/css/components/MenuItem/MenuItem.css +5 -5
- package/dist/css/components/Modal/Modal.css +1 -0
- package/dist/css/components/Pagination/Pagination.css +55 -32
- package/dist/css/components/Pagination/css/__item/pagination__item.css +27 -25
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +30 -5
- package/dist/css/components/Scrollbar/Scrollbar.css +56 -0
- package/dist/css/components/Select/Select.css +9 -1
- package/dist/css/components/Select/css/__single-value/select__single-value.css +1 -1
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/text-color/text-color_active.css +4 -2
- package/dist/floating-ui.dom-BQ7wiYTi.js +1374 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/styleAttributes.interface.d.ts +145 -0
- package/dist/hooks/styleAttributes.js +5 -7
- package/dist/hooks/useDeviceTargetClass.js +13 -20
- package/dist/hooks/useMediaQueries.js +16 -10
- package/dist/hooks/useStyles.js +22 -30
- package/dist/index.d.ts +4 -0
- package/dist/jsx-runtime-ClDdVO4Q.js +1357 -0
- package/package.json +91 -40
- package/dist/_commonjsHelpers-CFO10eej.js +0 -7
- package/dist/css/components/Background/Background.css +0 -11
- /package/dist/{floating-ui.dom-C34fOuI9.js → cjs/floating-ui.dom-C34fOuI9.js} +0 -0
|
@@ -0,0 +1,1193 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var PropTypes = require('prop-types');
|
|
5
|
+
var clsx = require('clsx');
|
|
6
|
+
var crypto = require('crypto');
|
|
7
|
+
var index = require('./Input.js');
|
|
8
|
+
require('../hooks/useDeviceTargetClass.js');
|
|
9
|
+
require('lodash/castArray');
|
|
10
|
+
require('lodash/camelCase');
|
|
11
|
+
require('../context/UIContext.js');
|
|
12
|
+
require('../hooks/useMediaQueries.js');
|
|
13
|
+
require('react-responsive');
|
|
14
|
+
|
|
15
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
18
|
+
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
19
|
+
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
20
|
+
var crypto__default = /*#__PURE__*/_interopDefault(crypto);
|
|
21
|
+
|
|
22
|
+
function getDefaultExportFromCjs (x) {
|
|
23
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//
|
|
27
|
+
|
|
28
|
+
var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
|
|
29
|
+
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
|
|
30
|
+
|
|
31
|
+
if (ret !== void 0) {
|
|
32
|
+
return !!ret;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (objA === objB) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var keysA = Object.keys(objA);
|
|
44
|
+
var keysB = Object.keys(objB);
|
|
45
|
+
|
|
46
|
+
if (keysA.length !== keysB.length) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
|
|
51
|
+
|
|
52
|
+
// Test for A's keys different from B.
|
|
53
|
+
for (var idx = 0; idx < keysA.length; idx++) {
|
|
54
|
+
var key = keysA[idx];
|
|
55
|
+
|
|
56
|
+
if (!bHasOwnProperty(key)) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
var valueA = objA[key];
|
|
61
|
+
var valueB = objB[key];
|
|
62
|
+
|
|
63
|
+
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
|
|
64
|
+
|
|
65
|
+
if (ret === false || (ret === void 0 && valueA !== valueB)) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return true;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
var shallowEqual = /*@__PURE__*/getDefaultExportFromCjs(shallowequal);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Returns a function, that, as long as it continues to be invoked, will not
|
|
77
|
+
* be triggered. The function will be called after it stops being called for
|
|
78
|
+
* N milliseconds. If `immediate` is passed, trigger the function on the
|
|
79
|
+
* leading edge, instead of the trailing. The function also has a property 'clear'
|
|
80
|
+
* that is a function which will clear the timer to prevent previously scheduled executions.
|
|
81
|
+
*
|
|
82
|
+
* @source underscore.js
|
|
83
|
+
* @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
|
|
84
|
+
* @param {Function} function to wrap
|
|
85
|
+
* @param {Number} timeout in ms (`100`)
|
|
86
|
+
* @param {Boolean} whether to execute at the beginning (`false`)
|
|
87
|
+
* @api public
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
function debounce(func, wait, immediate){
|
|
91
|
+
var timeout, args, context, timestamp, result;
|
|
92
|
+
if (null == wait) wait = 100;
|
|
93
|
+
|
|
94
|
+
function later() {
|
|
95
|
+
var last = Date.now() - timestamp;
|
|
96
|
+
|
|
97
|
+
if (last < wait && last >= 0) {
|
|
98
|
+
timeout = setTimeout(later, wait - last);
|
|
99
|
+
} else {
|
|
100
|
+
timeout = null;
|
|
101
|
+
if (!immediate) {
|
|
102
|
+
result = func.apply(context, args);
|
|
103
|
+
context = args = null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
var debounced = function(){
|
|
108
|
+
context = this;
|
|
109
|
+
args = arguments;
|
|
110
|
+
timestamp = Date.now();
|
|
111
|
+
var callNow = immediate && !timeout;
|
|
112
|
+
if (!timeout) timeout = setTimeout(later, wait);
|
|
113
|
+
if (callNow) {
|
|
114
|
+
result = func.apply(context, args);
|
|
115
|
+
context = args = null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return result;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
debounced.clear = function() {
|
|
122
|
+
if (timeout) {
|
|
123
|
+
clearTimeout(timeout);
|
|
124
|
+
timeout = null;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
debounced.flush = function() {
|
|
129
|
+
if (timeout) {
|
|
130
|
+
result = func.apply(context, args);
|
|
131
|
+
context = args = null;
|
|
132
|
+
|
|
133
|
+
clearTimeout(timeout);
|
|
134
|
+
timeout = null;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
return debounced;
|
|
139
|
+
}
|
|
140
|
+
// Adds compatibility for ES modules
|
|
141
|
+
debounce.debounce = debounce;
|
|
142
|
+
|
|
143
|
+
var debounce_1 = debounce;
|
|
144
|
+
|
|
145
|
+
let urlAlphabet =
|
|
146
|
+
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
147
|
+
|
|
148
|
+
const POOL_SIZE_MULTIPLIER = 128;
|
|
149
|
+
let pool, poolOffset;
|
|
150
|
+
let fillPool = bytes => {
|
|
151
|
+
if (!pool || pool.length < bytes) {
|
|
152
|
+
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
153
|
+
crypto__default.default.randomFillSync(pool);
|
|
154
|
+
poolOffset = 0;
|
|
155
|
+
} else if (poolOffset + bytes > pool.length) {
|
|
156
|
+
crypto__default.default.randomFillSync(pool);
|
|
157
|
+
poolOffset = 0;
|
|
158
|
+
}
|
|
159
|
+
poolOffset += bytes;
|
|
160
|
+
};
|
|
161
|
+
let nanoid = (size = 21) => {
|
|
162
|
+
fillPool((size -= 0));
|
|
163
|
+
let id = '';
|
|
164
|
+
for (let i = poolOffset - size; i < poolOffset; i++) {
|
|
165
|
+
id += urlAlphabet[pool[i] & 63];
|
|
166
|
+
}
|
|
167
|
+
return id
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
var xhr;
|
|
171
|
+
var makeRequest = function (method, endpoint, data, cache, onReceiveData) {
|
|
172
|
+
if (xhr) {
|
|
173
|
+
xhr.abort();
|
|
174
|
+
}
|
|
175
|
+
var cacheKey;
|
|
176
|
+
if (cache) {
|
|
177
|
+
cacheKey = cache.serializeCacheKey({
|
|
178
|
+
headers: data.headers,
|
|
179
|
+
body: data.json,
|
|
180
|
+
url: endpoint,
|
|
181
|
+
method: method,
|
|
182
|
+
});
|
|
183
|
+
var cachedData = cache.get(cacheKey);
|
|
184
|
+
if (cachedData) {
|
|
185
|
+
onReceiveData(cachedData);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
xhr = new XMLHttpRequest();
|
|
190
|
+
xhr.open(method, endpoint);
|
|
191
|
+
if (data.headers) {
|
|
192
|
+
Object.entries(data.headers).forEach(function (_a) {
|
|
193
|
+
var header = _a[0], headerValue = _a[1];
|
|
194
|
+
xhr.setRequestHeader(header, headerValue);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
xhr.send(JSON.stringify(data.json));
|
|
198
|
+
xhr.onreadystatechange = function () {
|
|
199
|
+
var _a;
|
|
200
|
+
if (!xhr || xhr.readyState !== 4) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (xhr.status === 200) {
|
|
204
|
+
var payload = (_a = JSON.parse(xhr.response)) === null || _a === void 0 ? void 0 : _a.suggestions;
|
|
205
|
+
if (payload) {
|
|
206
|
+
cache === null || cache === void 0 ? void 0 : cache.set(cacheKey, payload);
|
|
207
|
+
onReceiveData(payload);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
var HttpCache = /** @class */ (function () {
|
|
214
|
+
function HttpCache() {
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Сгенерировать уникальный ключ кеша из параметров http-запроса
|
|
218
|
+
* @example
|
|
219
|
+
* ```ts
|
|
220
|
+
* cache.serializeCacheKey({
|
|
221
|
+
* url: 'https://example.com',
|
|
222
|
+
* body: { key: "value" },
|
|
223
|
+
* method: "POST"
|
|
224
|
+
* })
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
HttpCache.prototype.serializeCacheKey = function (payload) {
|
|
228
|
+
try {
|
|
229
|
+
return JSON.stringify(payload);
|
|
230
|
+
}
|
|
231
|
+
catch (_e) {
|
|
232
|
+
// на случай попытки сериализации объекта с циклическими зависимостями внутри
|
|
233
|
+
return payload.url + String(Math.random());
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
return HttpCache;
|
|
237
|
+
}());
|
|
238
|
+
|
|
239
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
240
|
+
var extendStatics = function (d, b) {
|
|
241
|
+
extendStatics = Object.setPrototypeOf ||
|
|
242
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
243
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
244
|
+
return extendStatics(d, b);
|
|
245
|
+
};
|
|
246
|
+
return function (d, b) {
|
|
247
|
+
if (typeof b !== "function" && b !== null)
|
|
248
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
249
|
+
extendStatics(d, b);
|
|
250
|
+
function __() { this.constructor = d; }
|
|
251
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
252
|
+
};
|
|
253
|
+
})();
|
|
254
|
+
var minute = 60000;
|
|
255
|
+
var DefaultHttpCache = /** @class */ (function (_super) {
|
|
256
|
+
__extends$7(DefaultHttpCache, _super);
|
|
257
|
+
function DefaultHttpCache() {
|
|
258
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
259
|
+
_this._map = new Map();
|
|
260
|
+
_this._ttl = 10 * minute;
|
|
261
|
+
return _this;
|
|
262
|
+
}
|
|
263
|
+
Object.defineProperty(DefaultHttpCache, "shared", {
|
|
264
|
+
/**
|
|
265
|
+
* Синглтон
|
|
266
|
+
* @example
|
|
267
|
+
* ```ts
|
|
268
|
+
* cache.shared.get('key');
|
|
269
|
+
* ```
|
|
270
|
+
*/
|
|
271
|
+
get: function () {
|
|
272
|
+
if (!DefaultHttpCache.sharedInstance) {
|
|
273
|
+
DefaultHttpCache.sharedInstance = new DefaultHttpCache();
|
|
274
|
+
}
|
|
275
|
+
return DefaultHttpCache.sharedInstance;
|
|
276
|
+
},
|
|
277
|
+
enumerable: false,
|
|
278
|
+
configurable: true
|
|
279
|
+
});
|
|
280
|
+
Object.defineProperty(DefaultHttpCache.prototype, "ttl", {
|
|
281
|
+
/**
|
|
282
|
+
* Время жизни кеша в миллисекундах
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* cache.ttl = 60000;
|
|
286
|
+
* cache.ttl = Infinity;
|
|
287
|
+
* cache.tll = 0;
|
|
288
|
+
*
|
|
289
|
+
* // негативные значения игнорируются
|
|
290
|
+
* cache.ttl = -1;
|
|
291
|
+
* cache.ttl = Number.NEGATIVE_INFINITY;
|
|
292
|
+
* ```
|
|
293
|
+
*/
|
|
294
|
+
get: function () {
|
|
295
|
+
return this._ttl;
|
|
296
|
+
},
|
|
297
|
+
set: function (ttl) {
|
|
298
|
+
if (typeof ttl === 'number' && ttl >= 0) {
|
|
299
|
+
this._ttl = ttl;
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
enumerable: false,
|
|
303
|
+
configurable: true
|
|
304
|
+
});
|
|
305
|
+
Object.defineProperty(DefaultHttpCache.prototype, "size", {
|
|
306
|
+
/**
|
|
307
|
+
* Количество элементов в кеше
|
|
308
|
+
*/
|
|
309
|
+
get: function () {
|
|
310
|
+
return this._map.size;
|
|
311
|
+
},
|
|
312
|
+
enumerable: false,
|
|
313
|
+
configurable: true
|
|
314
|
+
});
|
|
315
|
+
DefaultHttpCache.prototype.get = function (key) {
|
|
316
|
+
var data = this._map.get(key);
|
|
317
|
+
if (!data)
|
|
318
|
+
return null;
|
|
319
|
+
if (data.expires <= Date.now()) {
|
|
320
|
+
this.delete(key);
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
return data.data;
|
|
324
|
+
};
|
|
325
|
+
DefaultHttpCache.prototype.set = function (key, data) {
|
|
326
|
+
this._map.set(key, {
|
|
327
|
+
data: data,
|
|
328
|
+
expires: Date.now() + this.ttl,
|
|
329
|
+
});
|
|
330
|
+
return this;
|
|
331
|
+
};
|
|
332
|
+
DefaultHttpCache.prototype.delete = function (key) {
|
|
333
|
+
this._map.delete(key);
|
|
334
|
+
return this;
|
|
335
|
+
};
|
|
336
|
+
DefaultHttpCache.prototype.reset = function () {
|
|
337
|
+
this._map.clear();
|
|
338
|
+
return this;
|
|
339
|
+
};
|
|
340
|
+
return DefaultHttpCache;
|
|
341
|
+
}(HttpCache));
|
|
342
|
+
|
|
343
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
344
|
+
var extendStatics = function (d, b) {
|
|
345
|
+
extendStatics = Object.setPrototypeOf ||
|
|
346
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
347
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
348
|
+
return extendStatics(d, b);
|
|
349
|
+
};
|
|
350
|
+
return function (d, b) {
|
|
351
|
+
if (typeof b !== "function" && b !== null)
|
|
352
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
353
|
+
extendStatics(d, b);
|
|
354
|
+
function __() { this.constructor = d; }
|
|
355
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
356
|
+
};
|
|
357
|
+
})();
|
|
358
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
359
|
+
__assign = Object.assign || function(t) {
|
|
360
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
361
|
+
s = arguments[i];
|
|
362
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
363
|
+
t[p] = s[p];
|
|
364
|
+
}
|
|
365
|
+
return t;
|
|
366
|
+
};
|
|
367
|
+
return __assign.apply(this, arguments);
|
|
368
|
+
};
|
|
369
|
+
var BaseSuggestions = /** @class */ (function (_super) {
|
|
370
|
+
__extends$6(BaseSuggestions, _super);
|
|
371
|
+
function BaseSuggestions(props) {
|
|
372
|
+
var _this = _super.call(this, props) || this;
|
|
373
|
+
/**
|
|
374
|
+
* URL для загрузки подсказок, переопределяется в конкретном компоненте
|
|
375
|
+
*/
|
|
376
|
+
_this.loadSuggestionsUrl = '';
|
|
377
|
+
_this.dontPerformBlurHandler = false;
|
|
378
|
+
_this.getSuggestionsUrl = function () {
|
|
379
|
+
var url = _this.props.url;
|
|
380
|
+
return url || _this.loadSuggestionsUrl;
|
|
381
|
+
};
|
|
382
|
+
_this.setupDebounce = function (delay) {
|
|
383
|
+
if (typeof delay === 'number' && delay > 0) {
|
|
384
|
+
_this.fetchSuggestions = debounce_1.debounce(_this.performFetchSuggestions, delay);
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
_this.fetchSuggestions = _this.performFetchSuggestions;
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
_this.fetchSuggestions = function () {
|
|
391
|
+
//
|
|
392
|
+
};
|
|
393
|
+
_this.handleInputFocus = function (event) {
|
|
394
|
+
_this.setState({ isFocused: true });
|
|
395
|
+
var suggestions = _this.state.suggestions;
|
|
396
|
+
if (suggestions.length === 0) {
|
|
397
|
+
_this.fetchSuggestions();
|
|
398
|
+
}
|
|
399
|
+
var inputProps = _this.props.inputProps;
|
|
400
|
+
if (inputProps && inputProps.onFocus) {
|
|
401
|
+
inputProps.onFocus(event);
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
_this.handleInputBlur = function (event) {
|
|
405
|
+
var _a = _this.state, suggestions = _a.suggestions, suggestionIndex = _a.suggestionIndex;
|
|
406
|
+
var _b = _this.props, selectOnBlur = _b.selectOnBlur, inputProps = _b.inputProps;
|
|
407
|
+
_this.setState({ isFocused: false });
|
|
408
|
+
if (suggestions.length === 0) {
|
|
409
|
+
_this.fetchSuggestions();
|
|
410
|
+
}
|
|
411
|
+
if (selectOnBlur && !_this.dontPerformBlurHandler) {
|
|
412
|
+
if (suggestions.length > 0) {
|
|
413
|
+
var suggestionIndexToSelect = suggestionIndex >= 0 && suggestionIndex < suggestions.length ? suggestionIndex : 0;
|
|
414
|
+
_this.selectSuggestion(suggestionIndexToSelect, true);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
_this.dontPerformBlurHandler = false;
|
|
418
|
+
if (inputProps && inputProps.onBlur) {
|
|
419
|
+
inputProps.onBlur(event);
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
_this.handleInputChange = function (event) {
|
|
423
|
+
var value = event.target.value;
|
|
424
|
+
var inputProps = _this.props.inputProps;
|
|
425
|
+
if (_this.didMount) {
|
|
426
|
+
_this.setState({ query: value, inputQuery: value, displaySuggestions: !!value }, function () {
|
|
427
|
+
_this.fetchSuggestions();
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
if (inputProps && inputProps.onChange) {
|
|
431
|
+
inputProps.onChange(event);
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
_this.handleInputKeyDown = function (event) {
|
|
435
|
+
_this.handleKeyboard(event);
|
|
436
|
+
var inputProps = _this.props.inputProps;
|
|
437
|
+
if (inputProps && inputProps.onKeyDown) {
|
|
438
|
+
inputProps.onKeyDown(event);
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
_this.handleInputKeyPress = function (event) {
|
|
442
|
+
_this.handleKeyboard(event);
|
|
443
|
+
var inputProps = _this.props.inputProps;
|
|
444
|
+
if (inputProps && inputProps.onKeyPress) {
|
|
445
|
+
inputProps.onKeyPress(event);
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
_this.handleKeyboard = function (event) {
|
|
449
|
+
var _a = _this.state, suggestions = _a.suggestions, suggestionIndex = _a.suggestionIndex, inputQuery = _a.inputQuery;
|
|
450
|
+
if (event.which === 40) {
|
|
451
|
+
// Arrow down
|
|
452
|
+
event.preventDefault();
|
|
453
|
+
if (suggestionIndex < suggestions.length - 1) {
|
|
454
|
+
var newSuggestionIndex = suggestionIndex + 1;
|
|
455
|
+
var newInputQuery = suggestions[newSuggestionIndex].value;
|
|
456
|
+
if (_this.didMount) {
|
|
457
|
+
_this.setState({ suggestionIndex: newSuggestionIndex, query: newInputQuery });
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
else if (event.which === 38) {
|
|
462
|
+
// Arrow up
|
|
463
|
+
event.preventDefault();
|
|
464
|
+
if (suggestionIndex >= 0) {
|
|
465
|
+
var newSuggestionIndex = suggestionIndex - 1;
|
|
466
|
+
var newInputQuery = newSuggestionIndex === -1 ? inputQuery : suggestions[newSuggestionIndex].value;
|
|
467
|
+
if (_this.didMount) {
|
|
468
|
+
_this.setState({ suggestionIndex: newSuggestionIndex, query: newInputQuery });
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
else if (event.which === 13) {
|
|
473
|
+
// Enter
|
|
474
|
+
event.preventDefault();
|
|
475
|
+
if (suggestionIndex >= 0) {
|
|
476
|
+
_this.selectSuggestion(suggestionIndex);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
_this.performFetchSuggestions = function () {
|
|
481
|
+
var _a = _this.props, minChars = _a.minChars, token = _a.token;
|
|
482
|
+
var query = _this.state.query;
|
|
483
|
+
// Проверяем на минимальное количество символов для отправки
|
|
484
|
+
if (typeof minChars === 'number' && minChars > 0 && query.length < minChars) {
|
|
485
|
+
_this.setState({ suggestions: [], suggestionIndex: -1 });
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
makeRequest('POST', _this.getSuggestionsUrl(), {
|
|
489
|
+
headers: {
|
|
490
|
+
Accept: 'application/json',
|
|
491
|
+
Authorization: "Token ".concat(token),
|
|
492
|
+
'Content-Type': 'application/json',
|
|
493
|
+
},
|
|
494
|
+
json: _this.getLoadSuggestionsData(),
|
|
495
|
+
}, _this.httpCache, function (suggestions) {
|
|
496
|
+
if (_this.didMount) {
|
|
497
|
+
_this.setState({ suggestions: suggestions, suggestionIndex: -1 });
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
_this.onSuggestionClick = function (index, event) {
|
|
502
|
+
event.stopPropagation();
|
|
503
|
+
_this.selectSuggestion(index);
|
|
504
|
+
};
|
|
505
|
+
_this.selectSuggestion = function (index, isSilent) {
|
|
506
|
+
if (isSilent === void 0) { isSilent = false; }
|
|
507
|
+
var suggestions = _this.state.suggestions;
|
|
508
|
+
var _a = _this.props, selectOnBlur = _a.selectOnBlur, onChange = _a.onChange;
|
|
509
|
+
if (suggestions.length >= index - 1) {
|
|
510
|
+
var suggestion = suggestions[index];
|
|
511
|
+
if (selectOnBlur) {
|
|
512
|
+
_this.dontPerformBlurHandler = true;
|
|
513
|
+
}
|
|
514
|
+
_this.setState({ query: suggestion.value, inputQuery: suggestion.value, displaySuggestions: false }, function () {
|
|
515
|
+
if (!isSilent) {
|
|
516
|
+
_this.fetchSuggestions();
|
|
517
|
+
setTimeout(function () { return _this.setCursorToEnd(_this.textInput); });
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
if (onChange) {
|
|
521
|
+
onChange(suggestion);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
_this.setCursorToEnd = function (element) {
|
|
526
|
+
if (element) {
|
|
527
|
+
var valueLength = element.value.length;
|
|
528
|
+
if (element.selectionStart || element.selectionStart === 0) {
|
|
529
|
+
// eslint-disable-next-line no-param-reassign
|
|
530
|
+
element.selectionStart = valueLength;
|
|
531
|
+
// eslint-disable-next-line no-param-reassign
|
|
532
|
+
element.selectionEnd = valueLength;
|
|
533
|
+
element.focus();
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
_this.getHighlightWords = function () {
|
|
538
|
+
var inputQuery = _this.state.inputQuery;
|
|
539
|
+
var wordsToPass = ['г', 'респ', 'ул', 'р-н', 'село', 'деревня', 'поселок', 'пр-д', 'пл', 'к', 'кв', 'обл', 'д'];
|
|
540
|
+
var words = inputQuery.replace(',', '').split(' ');
|
|
541
|
+
words = words.filter(function (word) {
|
|
542
|
+
return wordsToPass.indexOf(word) < 0;
|
|
543
|
+
});
|
|
544
|
+
return words;
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* Функция, которая вернет уникальный key для списка React
|
|
548
|
+
* @param suggestion
|
|
549
|
+
*/
|
|
550
|
+
_this.getSuggestionKey = function (suggestion) { return suggestion.value; };
|
|
551
|
+
_this.focus = function () {
|
|
552
|
+
if (_this.textInput) {
|
|
553
|
+
_this.textInput.focus();
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
_this.setInputValue = function (value) {
|
|
557
|
+
_this.setState({ query: value || '', inputQuery: value || '' });
|
|
558
|
+
};
|
|
559
|
+
_this.didMount = false;
|
|
560
|
+
var _a = _this.props, defaultQuery = _a.defaultQuery, value = _a.value, delay = _a.delay;
|
|
561
|
+
var valueQuery = value ? value.value : undefined;
|
|
562
|
+
_this.setupDebounce(delay);
|
|
563
|
+
_this.state = {
|
|
564
|
+
query: defaultQuery || valueQuery || '',
|
|
565
|
+
inputQuery: defaultQuery || valueQuery || '',
|
|
566
|
+
isFocused: false,
|
|
567
|
+
displaySuggestions: true,
|
|
568
|
+
suggestions: [],
|
|
569
|
+
suggestionIndex: -1,
|
|
570
|
+
};
|
|
571
|
+
return _this;
|
|
572
|
+
}
|
|
573
|
+
BaseSuggestions.prototype.componentDidMount = function () {
|
|
574
|
+
this.didMount = true;
|
|
575
|
+
};
|
|
576
|
+
BaseSuggestions.prototype.componentDidUpdate = function (prevProps) {
|
|
577
|
+
var _a = this.props, value = _a.value, delay = _a.delay;
|
|
578
|
+
var _b = this.state, query = _b.query, inputQuery = _b.inputQuery;
|
|
579
|
+
if (!shallowEqual(prevProps.value, value)) {
|
|
580
|
+
var newQuery = value ? value.value : '';
|
|
581
|
+
if (query !== newQuery || inputQuery !== newQuery) {
|
|
582
|
+
this.setState({ query: newQuery, inputQuery: newQuery });
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
if (delay !== prevProps.delay) {
|
|
586
|
+
this.setupDebounce(delay);
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
BaseSuggestions.prototype.componentWillUnmount = function () {
|
|
590
|
+
this.didMount = false;
|
|
591
|
+
};
|
|
592
|
+
Object.defineProperty(BaseSuggestions.prototype, "uid", {
|
|
593
|
+
get: function () {
|
|
594
|
+
if (this.props.uid) {
|
|
595
|
+
return this.props.uid;
|
|
596
|
+
}
|
|
597
|
+
if (!this._uid) {
|
|
598
|
+
this._uid = nanoid();
|
|
599
|
+
}
|
|
600
|
+
return this._uid;
|
|
601
|
+
},
|
|
602
|
+
enumerable: false,
|
|
603
|
+
configurable: true
|
|
604
|
+
});
|
|
605
|
+
Object.defineProperty(BaseSuggestions.prototype, "httpCache", {
|
|
606
|
+
get: function () {
|
|
607
|
+
var _a = this.props, cacheProp = _a.httpCache, ttl = _a.httpCacheTtl;
|
|
608
|
+
if (!cacheProp) {
|
|
609
|
+
return null;
|
|
610
|
+
}
|
|
611
|
+
if (cacheProp instanceof HttpCache) {
|
|
612
|
+
return cacheProp;
|
|
613
|
+
}
|
|
614
|
+
var cache = DefaultHttpCache.shared;
|
|
615
|
+
if (typeof ttl === 'number') {
|
|
616
|
+
cache.ttl = ttl;
|
|
617
|
+
}
|
|
618
|
+
return cache;
|
|
619
|
+
},
|
|
620
|
+
enumerable: false,
|
|
621
|
+
configurable: true
|
|
622
|
+
});
|
|
623
|
+
BaseSuggestions.prototype.render = function () {
|
|
624
|
+
var _this = this;
|
|
625
|
+
var _a = this.props, inputProps = _a.inputProps, hintText = _a.hintText, containerClassName = _a.containerClassName, hintClassName = _a.hintClassName, suggestionsClassName = _a.suggestionsClassName, suggestionClassName = _a.suggestionClassName, currentSuggestionClassName = _a.currentSuggestionClassName, customInput = _a.customInput, children = _a.children;
|
|
626
|
+
var _b = this.state, query = _b.query, isFocused = _b.isFocused, suggestions = _b.suggestions, suggestionIndex = _b.suggestionIndex, displaySuggestions = _b.displaySuggestions;
|
|
627
|
+
var Component = typeof customInput !== 'undefined' ? customInput : 'input';
|
|
628
|
+
var optionsExpanded = isFocused && suggestions && displaySuggestions && suggestions.length > 0;
|
|
629
|
+
return (React__default.default.createElement("div", { role: "combobox", "aria-expanded": optionsExpanded ? 'true' : 'false', "aria-owns": this.uid, "aria-controls": this.uid, "aria-haspopup": "listbox", className: containerClassName || 'react-dadata react-dadata__container' },
|
|
630
|
+
React__default.default.createElement("div", null,
|
|
631
|
+
React__default.default.createElement(Component, __assign({ autoComplete: "off", className: "react-dadata__input" }, inputProps, { value: query, ref: function (input) {
|
|
632
|
+
_this.textInput = input;
|
|
633
|
+
}, onChange: this.handleInputChange, onKeyPress: this.handleInputKeyPress, onKeyDown: this.handleInputKeyDown, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur }))),
|
|
634
|
+
optionsExpanded && (React__default.default.createElement("ul", { id: this.uid, "aria-expanded": true, role: "listbox", className: suggestionsClassName || 'react-dadata__suggestions' },
|
|
635
|
+
typeof hintText !== 'undefined' && (React__default.default.createElement("div", { className: hintClassName || 'react-dadata__suggestion-note' }, hintText)),
|
|
636
|
+
suggestions.map(function (suggestion, index) {
|
|
637
|
+
var suggestionClass = suggestionClassName || 'react-dadata__suggestion';
|
|
638
|
+
if (index === suggestionIndex) {
|
|
639
|
+
suggestionClass += " ".concat(currentSuggestionClassName || 'react-dadata__suggestion--current');
|
|
640
|
+
}
|
|
641
|
+
return (React__default.default.createElement("button", { role: "option", "aria-selected": index === suggestionIndex ? 'true' : 'false', key: _this.getSuggestionKey(suggestion), onMouseDown: _this.onSuggestionClick.bind(_this, index), className: suggestionClass }, _this.renderOption(suggestion)));
|
|
642
|
+
}))),
|
|
643
|
+
children));
|
|
644
|
+
};
|
|
645
|
+
return BaseSuggestions;
|
|
646
|
+
}(React__default.default.PureComponent));
|
|
647
|
+
|
|
648
|
+
let IDX = 36;
|
|
649
|
+
let HEX = "";
|
|
650
|
+
while (IDX--) {
|
|
651
|
+
HEX += IDX.toString(36);
|
|
652
|
+
}
|
|
653
|
+
function uid(len = 11) {
|
|
654
|
+
let str = "";
|
|
655
|
+
let num = len;
|
|
656
|
+
while (num--) {
|
|
657
|
+
str += HEX[Math.random() * 36 | 0];
|
|
658
|
+
}
|
|
659
|
+
return str;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
const escapeRegexp = (term) => term.replace(/[|\\{}()[\]^$+*?.-]/g, (char) => `\\${char}`);
|
|
663
|
+
const termsToRegExpString = (terms) => terms.replace(/\s{2,}/g, " ").split(" ").join("|");
|
|
664
|
+
const regexpQuery = ({
|
|
665
|
+
terms,
|
|
666
|
+
matchExactly = false
|
|
667
|
+
}) => {
|
|
668
|
+
if (typeof terms !== "string") {
|
|
669
|
+
throw new TypeError("Expected a string");
|
|
670
|
+
}
|
|
671
|
+
const escapedTerms = escapeRegexp(terms.trim());
|
|
672
|
+
return `(${matchExactly ? escapedTerms : termsToRegExpString(escapedTerms)})`;
|
|
673
|
+
};
|
|
674
|
+
const buildRegexp = ({
|
|
675
|
+
terms,
|
|
676
|
+
matchExactly = false
|
|
677
|
+
}) => {
|
|
678
|
+
try {
|
|
679
|
+
const fromString = /^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(terms);
|
|
680
|
+
if (fromString) {
|
|
681
|
+
return new RegExp(fromString[2], fromString[3]);
|
|
682
|
+
}
|
|
683
|
+
return new RegExp(regexpQuery({ terms, matchExactly }), "ig");
|
|
684
|
+
} catch (e) {
|
|
685
|
+
throw new TypeError("Expected terms to be either a string or a RegExp!");
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
const hasProp = (prop) => (obj) => obj !== null && typeof obj === "object" && prop in obj;
|
|
690
|
+
const hasMatch = hasProp("match");
|
|
691
|
+
const chunkExists = (chunk) => typeof chunk !== "undefined";
|
|
692
|
+
function clip({
|
|
693
|
+
curr,
|
|
694
|
+
next,
|
|
695
|
+
prev,
|
|
696
|
+
clipBy = 3
|
|
697
|
+
}) {
|
|
698
|
+
const words = curr.text.split(" ");
|
|
699
|
+
const len = words.length;
|
|
700
|
+
if (curr.match || clipBy >= len) {
|
|
701
|
+
return curr.text;
|
|
702
|
+
}
|
|
703
|
+
const ellipsis = "...";
|
|
704
|
+
if (chunkExists(next) && chunkExists(prev) && hasMatch(prev) && hasMatch(next)) {
|
|
705
|
+
if (len > clipBy * 2) {
|
|
706
|
+
return [
|
|
707
|
+
...words.slice(0, clipBy),
|
|
708
|
+
ellipsis,
|
|
709
|
+
...words.slice(-clipBy)
|
|
710
|
+
].join(" ");
|
|
711
|
+
}
|
|
712
|
+
return curr.text;
|
|
713
|
+
}
|
|
714
|
+
if (chunkExists(next) && hasMatch(next)) {
|
|
715
|
+
return [ellipsis, ...words.slice(-clipBy)].join(" ");
|
|
716
|
+
}
|
|
717
|
+
if (chunkExists(prev) && hasMatch(prev)) {
|
|
718
|
+
return [...words.slice(0, clipBy), ellipsis].join(" ");
|
|
719
|
+
}
|
|
720
|
+
return curr.text;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
var __defProp = Object.defineProperty;
|
|
724
|
+
var __defProps = Object.defineProperties;
|
|
725
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
726
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
727
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
728
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
729
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
730
|
+
var __spreadValues = (a, b) => {
|
|
731
|
+
for (var prop in b || (b = {}))
|
|
732
|
+
if (__hasOwnProp.call(b, prop))
|
|
733
|
+
__defNormalProp(a, prop, b[prop]);
|
|
734
|
+
if (__getOwnPropSymbols)
|
|
735
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
736
|
+
if (__propIsEnum.call(b, prop))
|
|
737
|
+
__defNormalProp(a, prop, b[prop]);
|
|
738
|
+
}
|
|
739
|
+
return a;
|
|
740
|
+
};
|
|
741
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
742
|
+
const hasLength = (str) => str.length > 0;
|
|
743
|
+
const highlightWords = ({
|
|
744
|
+
text,
|
|
745
|
+
query,
|
|
746
|
+
clipBy,
|
|
747
|
+
matchExactly = false
|
|
748
|
+
}) => {
|
|
749
|
+
const safeQuery = typeof query === "string" ? query.trim() : query;
|
|
750
|
+
if (safeQuery === "") {
|
|
751
|
+
return [
|
|
752
|
+
{
|
|
753
|
+
key: uid(),
|
|
754
|
+
text,
|
|
755
|
+
match: false
|
|
756
|
+
}
|
|
757
|
+
];
|
|
758
|
+
}
|
|
759
|
+
const searchRegexp = buildRegexp({ terms: query, matchExactly });
|
|
760
|
+
return text.split(searchRegexp).filter(hasLength).map((str) => ({
|
|
761
|
+
// Compose the object for a match
|
|
762
|
+
key: uid(),
|
|
763
|
+
text: str,
|
|
764
|
+
match: matchExactly ? str.toLowerCase() === safeQuery.toLowerCase() : searchRegexp.test(str)
|
|
765
|
+
})).map((chunk, index, chunks) => __spreadValues(__spreadValues({}, chunk), typeof clipBy === "number" && {
|
|
766
|
+
// We only overwrite the text if there is a clip
|
|
767
|
+
text: clip(__spreadProps(__spreadValues(__spreadValues({
|
|
768
|
+
curr: chunk
|
|
769
|
+
}, index < chunks.length - 1 && { next: chunks[index + 1] }), index > 0 && { prev: chunks[index - 1] }), {
|
|
770
|
+
// If this wasn't the first chunk, set the previous chunk
|
|
771
|
+
clipBy
|
|
772
|
+
}))
|
|
773
|
+
}));
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
777
|
+
var extendStatics = function (d, b) {
|
|
778
|
+
extendStatics = Object.setPrototypeOf ||
|
|
779
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
780
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
781
|
+
return extendStatics(d, b);
|
|
782
|
+
};
|
|
783
|
+
return function (d, b) {
|
|
784
|
+
if (typeof b !== "function" && b !== null)
|
|
785
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
786
|
+
extendStatics(d, b);
|
|
787
|
+
function __() { this.constructor = d; }
|
|
788
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
789
|
+
};
|
|
790
|
+
})();
|
|
791
|
+
var HighlightWords = /** @class */ (function (_super) {
|
|
792
|
+
__extends$5(HighlightWords, _super);
|
|
793
|
+
function HighlightWords() {
|
|
794
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
795
|
+
}
|
|
796
|
+
HighlightWords.prototype.render = function () {
|
|
797
|
+
var _a = this.props, text = _a.text, words = _a.words, highlightClassName = _a.highlightClassName, _b = _a.tagName, tagName = _b === void 0 ? 'span' : _b;
|
|
798
|
+
var query = typeof words === 'string' ? words : words.join(' ');
|
|
799
|
+
var chunks = highlightWords({ text: text, query: query });
|
|
800
|
+
return (React__default.default.createElement("span", { "aria-label": text }, chunks.map(function (chunk) {
|
|
801
|
+
if (!chunk.match) {
|
|
802
|
+
return React__default.default.createElement("span", { key: chunk.key, "aria-hidden": true }, chunk.text);
|
|
803
|
+
}
|
|
804
|
+
var Component = tagName;
|
|
805
|
+
return (React__default.default.createElement(Component, { key: chunk.key, className: highlightClassName, "aria-hidden": true }, chunk.text));
|
|
806
|
+
})));
|
|
807
|
+
};
|
|
808
|
+
return HighlightWords;
|
|
809
|
+
}(React.PureComponent));
|
|
810
|
+
|
|
811
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
812
|
+
var extendStatics = function (d, b) {
|
|
813
|
+
extendStatics = Object.setPrototypeOf ||
|
|
814
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
815
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
816
|
+
return extendStatics(d, b);
|
|
817
|
+
};
|
|
818
|
+
return function (d, b) {
|
|
819
|
+
if (typeof b !== "function" && b !== null)
|
|
820
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
821
|
+
extendStatics(d, b);
|
|
822
|
+
function __() { this.constructor = d; }
|
|
823
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
824
|
+
};
|
|
825
|
+
})();
|
|
826
|
+
/** @class */ ((function (_super) {
|
|
827
|
+
__extends$4(AddressSuggestions, _super);
|
|
828
|
+
function AddressSuggestions() {
|
|
829
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
830
|
+
_this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/address';
|
|
831
|
+
_this.getLoadSuggestionsData = function () {
|
|
832
|
+
var _a = _this.props, count = _a.count, filterFromBound = _a.filterFromBound, filterToBound = _a.filterToBound, filterLocations = _a.filterLocations, filterLocationsBoost = _a.filterLocationsBoost, filterLanguage = _a.filterLanguage, filterRestrictValue = _a.filterRestrictValue;
|
|
833
|
+
var query = _this.state.query;
|
|
834
|
+
// TODO: Type this params
|
|
835
|
+
var requestPayload = {
|
|
836
|
+
query: query,
|
|
837
|
+
count: count || 10,
|
|
838
|
+
};
|
|
839
|
+
// Ограничение поиска по типу
|
|
840
|
+
if (filterFromBound && filterToBound) {
|
|
841
|
+
requestPayload.from_bound = { value: filterFromBound };
|
|
842
|
+
requestPayload.to_bound = { value: filterToBound };
|
|
843
|
+
}
|
|
844
|
+
// Язык подсказок
|
|
845
|
+
if (filterLanguage) {
|
|
846
|
+
requestPayload.language = filterLanguage;
|
|
847
|
+
}
|
|
848
|
+
// Сужение области поиска
|
|
849
|
+
if (filterLocations) {
|
|
850
|
+
requestPayload.locations = filterLocations;
|
|
851
|
+
}
|
|
852
|
+
// Приоритет города при ранжировании
|
|
853
|
+
if (filterLocationsBoost) {
|
|
854
|
+
requestPayload.locations_boost = filterLocationsBoost;
|
|
855
|
+
}
|
|
856
|
+
// @see https://confluence.hflabs.ru/pages/viewpage.action?pageId=1023737934
|
|
857
|
+
if (filterRestrictValue) {
|
|
858
|
+
requestPayload.restrict_value = true;
|
|
859
|
+
}
|
|
860
|
+
return requestPayload;
|
|
861
|
+
};
|
|
862
|
+
_this.renderOption = function (suggestion) {
|
|
863
|
+
var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
|
|
864
|
+
var query = _this.state.query;
|
|
865
|
+
return renderOption ? (renderOption(suggestion, query)) : (React__default.default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), tagName: "mark", text: suggestion.value }));
|
|
866
|
+
};
|
|
867
|
+
return _this;
|
|
868
|
+
}
|
|
869
|
+
return AddressSuggestions;
|
|
870
|
+
})(BaseSuggestions));
|
|
871
|
+
|
|
872
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
873
|
+
var extendStatics = function (d, b) {
|
|
874
|
+
extendStatics = Object.setPrototypeOf ||
|
|
875
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
876
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
877
|
+
return extendStatics(d, b);
|
|
878
|
+
};
|
|
879
|
+
return function (d, b) {
|
|
880
|
+
if (typeof b !== "function" && b !== null)
|
|
881
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
882
|
+
extendStatics(d, b);
|
|
883
|
+
function __() { this.constructor = d; }
|
|
884
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
885
|
+
};
|
|
886
|
+
})();
|
|
887
|
+
var PartySuggestions = /** @class */ (function (_super) {
|
|
888
|
+
__extends$3(PartySuggestions, _super);
|
|
889
|
+
function PartySuggestions() {
|
|
890
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
891
|
+
_this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/party';
|
|
892
|
+
_this.getLoadSuggestionsData = function () {
|
|
893
|
+
var _a = _this.props, count = _a.count, filterStatus = _a.filterStatus, filterType = _a.filterType, filterOkved = _a.filterOkved, filterLocations = _a.filterLocations, filterLocationsBoost = _a.filterLocationsBoost;
|
|
894
|
+
var query = _this.state.query;
|
|
895
|
+
var requestPayload = {
|
|
896
|
+
query: query,
|
|
897
|
+
count: count || 10,
|
|
898
|
+
};
|
|
899
|
+
// Ограничение по статусу организации
|
|
900
|
+
if (filterStatus) {
|
|
901
|
+
requestPayload.status = filterStatus;
|
|
902
|
+
}
|
|
903
|
+
// Ограничение по ОКВЭД
|
|
904
|
+
// @see https://confluence.hflabs.ru/pages/viewpage.action?pageId=1093075333
|
|
905
|
+
if (filterOkved) {
|
|
906
|
+
requestPayload.okved = filterOkved;
|
|
907
|
+
}
|
|
908
|
+
// Ограничение по типу организации
|
|
909
|
+
if (filterType) {
|
|
910
|
+
requestPayload.type = filterType;
|
|
911
|
+
}
|
|
912
|
+
// Сужение области поиска
|
|
913
|
+
if (filterLocations) {
|
|
914
|
+
requestPayload.locations = filterLocations;
|
|
915
|
+
}
|
|
916
|
+
// Приоритет города при ранжировании
|
|
917
|
+
if (filterLocationsBoost) {
|
|
918
|
+
requestPayload.locations_boost = filterLocationsBoost;
|
|
919
|
+
}
|
|
920
|
+
return requestPayload;
|
|
921
|
+
};
|
|
922
|
+
_this.getSuggestionKey = function (suggestion) { return suggestion.data.hid; };
|
|
923
|
+
_this.renderOption = function (suggestion) {
|
|
924
|
+
var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
|
|
925
|
+
var query = _this.state.query;
|
|
926
|
+
return renderOption ? (renderOption(suggestion, query)) : (React__default.default.createElement("div", null,
|
|
927
|
+
React__default.default.createElement("div", { className: suggestion.data.state.status === 'LIQUIDATED' ? 'react-dadata__suggestion--line-through' : undefined },
|
|
928
|
+
React__default.default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })),
|
|
929
|
+
React__default.default.createElement("div", { className: "react-dadata__suggestion-subtitle" },
|
|
930
|
+
suggestion.data.inn && React__default.default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" }, suggestion.data.inn),
|
|
931
|
+
suggestion.data.address && suggestion.data.address.value && (React__default.default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" },
|
|
932
|
+
React__default.default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.data.address.value }))))));
|
|
933
|
+
};
|
|
934
|
+
return _this;
|
|
935
|
+
}
|
|
936
|
+
return PartySuggestions;
|
|
937
|
+
}(BaseSuggestions));
|
|
938
|
+
|
|
939
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
940
|
+
var extendStatics = function (d, b) {
|
|
941
|
+
extendStatics = Object.setPrototypeOf ||
|
|
942
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
943
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
944
|
+
return extendStatics(d, b);
|
|
945
|
+
};
|
|
946
|
+
return function (d, b) {
|
|
947
|
+
if (typeof b !== "function" && b !== null)
|
|
948
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
949
|
+
extendStatics(d, b);
|
|
950
|
+
function __() { this.constructor = d; }
|
|
951
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
952
|
+
};
|
|
953
|
+
})();
|
|
954
|
+
/** @class */ ((function (_super) {
|
|
955
|
+
__extends$2(BankSuggestions, _super);
|
|
956
|
+
function BankSuggestions() {
|
|
957
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
958
|
+
_this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/bank';
|
|
959
|
+
_this.getLoadSuggestionsData = function () {
|
|
960
|
+
var _a = _this.props, count = _a.count, filterStatus = _a.filterStatus, filterType = _a.filterType, filterLocations = _a.filterLocations, filterLocationsBoost = _a.filterLocationsBoost;
|
|
961
|
+
var query = _this.state.query;
|
|
962
|
+
var requestPayload = {
|
|
963
|
+
query: query,
|
|
964
|
+
count: count || 10,
|
|
965
|
+
};
|
|
966
|
+
// Ограничение по статусу организации
|
|
967
|
+
if (filterStatus) {
|
|
968
|
+
requestPayload.status = filterStatus;
|
|
969
|
+
}
|
|
970
|
+
// Ограничение по типу организации
|
|
971
|
+
if (filterType) {
|
|
972
|
+
requestPayload.type = filterType;
|
|
973
|
+
}
|
|
974
|
+
// Сужение области поиска
|
|
975
|
+
if (filterLocations) {
|
|
976
|
+
requestPayload.locations = filterLocations;
|
|
977
|
+
}
|
|
978
|
+
// Приоритет города при ранжировании
|
|
979
|
+
if (filterLocationsBoost) {
|
|
980
|
+
requestPayload.locations_boost = filterLocationsBoost;
|
|
981
|
+
}
|
|
982
|
+
return requestPayload;
|
|
983
|
+
};
|
|
984
|
+
_this.getSuggestionKey = function (suggestion) { return "".concat(suggestion.data.bic); };
|
|
985
|
+
_this.renderOption = function (suggestion) {
|
|
986
|
+
var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
|
|
987
|
+
var query = _this.state.query;
|
|
988
|
+
return renderOption ? (renderOption(suggestion, query)) : (React__default.default.createElement("div", null,
|
|
989
|
+
React__default.default.createElement("div", { className: suggestion.data.state.status === 'LIQUIDATED' ? 'react-dadata__suggestion--line-through' : undefined },
|
|
990
|
+
React__default.default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })),
|
|
991
|
+
React__default.default.createElement("div", { className: "react-dadata__suggestion-subtitle" },
|
|
992
|
+
suggestion.data.bic && React__default.default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" }, suggestion.data.bic),
|
|
993
|
+
suggestion.data.address && suggestion.data.address.value && (React__default.default.createElement("div", { className: "react-dadata__suggestion-subtitle-item" },
|
|
994
|
+
React__default.default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.data.address.value }))))));
|
|
995
|
+
};
|
|
996
|
+
return _this;
|
|
997
|
+
}
|
|
998
|
+
return BankSuggestions;
|
|
999
|
+
})(BaseSuggestions));
|
|
1000
|
+
|
|
1001
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
1002
|
+
var extendStatics = function (d, b) {
|
|
1003
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1004
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1005
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
1006
|
+
return extendStatics(d, b);
|
|
1007
|
+
};
|
|
1008
|
+
return function (d, b) {
|
|
1009
|
+
if (typeof b !== "function" && b !== null)
|
|
1010
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1011
|
+
extendStatics(d, b);
|
|
1012
|
+
function __() { this.constructor = d; }
|
|
1013
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1014
|
+
};
|
|
1015
|
+
})();
|
|
1016
|
+
/** @class */ ((function (_super) {
|
|
1017
|
+
__extends$1(FioSuggestions, _super);
|
|
1018
|
+
function FioSuggestions() {
|
|
1019
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1020
|
+
_this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/fio';
|
|
1021
|
+
_this.getLoadSuggestionsData = function () {
|
|
1022
|
+
var _a = _this.props, count = _a.count, filterGender = _a.filterGender, filterParts = _a.filterParts;
|
|
1023
|
+
var query = _this.state.query;
|
|
1024
|
+
var requestPayload = {
|
|
1025
|
+
query: query,
|
|
1026
|
+
count: count || 10,
|
|
1027
|
+
};
|
|
1028
|
+
// Ограничение по полу
|
|
1029
|
+
if (filterGender) {
|
|
1030
|
+
requestPayload.gender = filterGender;
|
|
1031
|
+
}
|
|
1032
|
+
// Ограничение по части ФИО
|
|
1033
|
+
if (filterParts) {
|
|
1034
|
+
requestPayload.parts = filterParts;
|
|
1035
|
+
}
|
|
1036
|
+
return requestPayload;
|
|
1037
|
+
};
|
|
1038
|
+
_this.getSuggestionKey = function (suggestion) {
|
|
1039
|
+
return "name:".concat(suggestion.data.name || '', "surname:").concat(suggestion.data.surname || '', "patronymic:").concat(suggestion.data.patronymic || '');
|
|
1040
|
+
};
|
|
1041
|
+
_this.renderOption = function (suggestion) {
|
|
1042
|
+
var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
|
|
1043
|
+
var query = _this.state.query;
|
|
1044
|
+
return renderOption ? (renderOption(suggestion, query)) : (React__default.default.createElement("div", null,
|
|
1045
|
+
React__default.default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })));
|
|
1046
|
+
};
|
|
1047
|
+
return _this;
|
|
1048
|
+
}
|
|
1049
|
+
return FioSuggestions;
|
|
1050
|
+
})(BaseSuggestions));
|
|
1051
|
+
|
|
1052
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
1053
|
+
var extendStatics = function (d, b) {
|
|
1054
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1055
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1056
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
1057
|
+
return extendStatics(d, b);
|
|
1058
|
+
};
|
|
1059
|
+
return function (d, b) {
|
|
1060
|
+
if (typeof b !== "function" && b !== null)
|
|
1061
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1062
|
+
extendStatics(d, b);
|
|
1063
|
+
function __() { this.constructor = d; }
|
|
1064
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1065
|
+
};
|
|
1066
|
+
})();
|
|
1067
|
+
/** @class */ ((function (_super) {
|
|
1068
|
+
__extends(EmailSuggestions, _super);
|
|
1069
|
+
function EmailSuggestions() {
|
|
1070
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1071
|
+
_this.loadSuggestionsUrl = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/email';
|
|
1072
|
+
_this.getLoadSuggestionsData = function () {
|
|
1073
|
+
var count = _this.props.count;
|
|
1074
|
+
var query = _this.state.query;
|
|
1075
|
+
return {
|
|
1076
|
+
query: query,
|
|
1077
|
+
count: count || 10,
|
|
1078
|
+
};
|
|
1079
|
+
};
|
|
1080
|
+
_this.getSuggestionKey = function (suggestion) { return suggestion.value; };
|
|
1081
|
+
_this.renderOption = function (suggestion) {
|
|
1082
|
+
var _a = _this.props, renderOption = _a.renderOption, highlightClassName = _a.highlightClassName;
|
|
1083
|
+
var query = _this.state.query;
|
|
1084
|
+
return renderOption ? (renderOption(suggestion, query)) : (React__default.default.createElement("div", null,
|
|
1085
|
+
React__default.default.createElement(HighlightWords, { highlightClassName: highlightClassName || 'react-dadata--highlighted', words: _this.getHighlightWords(), text: suggestion.value })));
|
|
1086
|
+
};
|
|
1087
|
+
return _this;
|
|
1088
|
+
}
|
|
1089
|
+
return EmailSuggestions;
|
|
1090
|
+
})(BaseSuggestions));
|
|
1091
|
+
|
|
1092
|
+
function DadataHintField(props) {
|
|
1093
|
+
const {
|
|
1094
|
+
delay,
|
|
1095
|
+
inputProps,
|
|
1096
|
+
setValue,
|
|
1097
|
+
input,
|
|
1098
|
+
meta,
|
|
1099
|
+
token
|
|
1100
|
+
} = props;
|
|
1101
|
+
const dadataInputProps = React.useMemo(() => {
|
|
1102
|
+
return {
|
|
1103
|
+
...inputProps,
|
|
1104
|
+
className: clsx__default.default('react-dadata__input', meta.active && 'input_state_focus', meta.error && meta.touched && `input_state_${meta.error.key || 'error'}`),
|
|
1105
|
+
// https://www.npmjs.com/package/react-dadata
|
|
1106
|
+
// "Свойство value игнорируется."
|
|
1107
|
+
// value: input.value,
|
|
1108
|
+
inputValue: input.value,
|
|
1109
|
+
onFocus: input.onFocus,
|
|
1110
|
+
onBlur: input.onBlur,
|
|
1111
|
+
onChange: input.onChange
|
|
1112
|
+
};
|
|
1113
|
+
}, [inputProps, meta.active, meta.error, meta.touched, input.value, input.onFocus, input.onBlur, input.onChange]);
|
|
1114
|
+
return /*#__PURE__*/React__default.default.createElement(PartySuggestions, {
|
|
1115
|
+
customInput: DadataСustomInput,
|
|
1116
|
+
delay: delay || 750,
|
|
1117
|
+
inputProps: dadataInputProps,
|
|
1118
|
+
minChars: 3,
|
|
1119
|
+
token: token,
|
|
1120
|
+
onChange: setValue
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
DadataHintField.propTypes = {
|
|
1124
|
+
delay: PropTypes__default.default.number,
|
|
1125
|
+
input: PropTypes__default.default.object,
|
|
1126
|
+
inputProps: PropTypes__default.default.object,
|
|
1127
|
+
meta: PropTypes__default.default.object,
|
|
1128
|
+
setValue: PropTypes__default.default.func,
|
|
1129
|
+
token: PropTypes__default.default.string
|
|
1130
|
+
};
|
|
1131
|
+
function DadataСustomInput(props) {
|
|
1132
|
+
const {
|
|
1133
|
+
inputValue,
|
|
1134
|
+
...otherProps
|
|
1135
|
+
} = props;
|
|
1136
|
+
return /*#__PURE__*/React__default.default.createElement(index.Input, Object.assign({}, otherProps, {
|
|
1137
|
+
value: inputValue
|
|
1138
|
+
}));
|
|
1139
|
+
}
|
|
1140
|
+
DadataСustomInput.propTypes = {
|
|
1141
|
+
inputValue: PropTypes__default.default.object
|
|
1142
|
+
};
|
|
1143
|
+
DadataHintField.__docgenInfo = {
|
|
1144
|
+
"description": "",
|
|
1145
|
+
"methods": [],
|
|
1146
|
+
"displayName": "DadataHintField",
|
|
1147
|
+
"props": {
|
|
1148
|
+
"delay": {
|
|
1149
|
+
"description": "",
|
|
1150
|
+
"type": {
|
|
1151
|
+
"name": "number"
|
|
1152
|
+
},
|
|
1153
|
+
"required": false
|
|
1154
|
+
},
|
|
1155
|
+
"input": {
|
|
1156
|
+
"description": "",
|
|
1157
|
+
"type": {
|
|
1158
|
+
"name": "object"
|
|
1159
|
+
},
|
|
1160
|
+
"required": false
|
|
1161
|
+
},
|
|
1162
|
+
"inputProps": {
|
|
1163
|
+
"description": "",
|
|
1164
|
+
"type": {
|
|
1165
|
+
"name": "object"
|
|
1166
|
+
},
|
|
1167
|
+
"required": false
|
|
1168
|
+
},
|
|
1169
|
+
"meta": {
|
|
1170
|
+
"description": "",
|
|
1171
|
+
"type": {
|
|
1172
|
+
"name": "object"
|
|
1173
|
+
},
|
|
1174
|
+
"required": false
|
|
1175
|
+
},
|
|
1176
|
+
"setValue": {
|
|
1177
|
+
"description": "",
|
|
1178
|
+
"type": {
|
|
1179
|
+
"name": "func"
|
|
1180
|
+
},
|
|
1181
|
+
"required": false
|
|
1182
|
+
},
|
|
1183
|
+
"token": {
|
|
1184
|
+
"description": "",
|
|
1185
|
+
"type": {
|
|
1186
|
+
"name": "string"
|
|
1187
|
+
},
|
|
1188
|
+
"required": false
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
exports.DadataHintField = DadataHintField;
|