@pareto-engineering/design-system 5.3.0 → 5.4.0
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/README.md +54 -0
- package/dist/DatePicker-DHuh_8q6.js +1305 -0
- package/dist/ExposePlainTextPlugin-DeW6mVaE.js +33 -0
- package/dist/FormBuilder-653sa2uJ.js +28728 -0
- package/dist/Lexical-BIl3XjnU.js +8899 -0
- package/dist/LexicalComposerContext-D_q7RDyF.js +56 -0
- package/dist/TreeViewPlugin-BqY3Z-6y.js +2412 -0
- package/dist/YAxis-C5dCrcDo.js +1116 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/AnimatedBlobs.css +1 -0
- package/dist/assets/AreaChart.css +1 -0
- package/dist/assets/BarChart.css +1 -0
- package/dist/assets/BlurOverlay.css +1 -0
- package/dist/assets/CustomLegend.css +1 -0
- package/dist/assets/CustomTooltipContent.css +1 -0
- package/dist/assets/DatePicker.css +1 -0
- package/dist/assets/Description.css +1 -0
- package/dist/assets/DotInfo.css +1 -0
- package/dist/assets/DragAndDrop.css +1 -0
- package/dist/assets/DraggableItem.css +1 -0
- package/dist/assets/Figure.css +1 -0
- package/dist/assets/FormBuilder.css +1 -0
- package/dist/assets/Group.css +1 -0
- package/dist/assets/HamburgerButton.css +1 -0
- package/dist/assets/IconList.css +1 -0
- package/dist/assets/Label.css +1 -0
- package/dist/assets/Label2.css +1 -0
- package/dist/assets/LoadingCircle.css +1 -0
- package/dist/assets/MetaCard.css +1 -0
- package/dist/assets/People.css +1 -0
- package/dist/assets/PieChart.css +1 -0
- package/dist/assets/Popover.css +1 -0
- package/dist/assets/ProgressBar.css +1 -0
- package/dist/assets/Quote.css +1 -0
- package/dist/assets/RadioInput.css +1 -0
- package/dist/assets/Removable.css +1 -0
- package/dist/assets/SVG.css +1 -0
- package/dist/assets/SnapScroller.css +1 -0
- package/dist/assets/SocialMediaShareButton.css +1 -0
- package/dist/assets/Spinner.css +1 -0
- package/dist/assets/TextSteps.css +1 -0
- package/dist/assets/ThroughPutIndicator.css +1 -0
- package/dist/assets/Timestamp.css +1 -0
- package/dist/assets/Tip.css +1 -0
- package/dist/assets/ToggleSwitch.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/assets/XMLEditor.css +1 -0
- package/dist/assets/YlabelsDropDown.css +1 -0
- package/dist/assets/exports.css +0 -0
- package/dist/debounce-Cm69Z_cF.js +209 -0
- package/dist/exports.module-DmUnHWIJ.js +20 -0
- package/dist/generateCategoricalChart-BBPxYd_a.js +15749 -0
- package/dist/index-BUor0nOw.js +12623 -0
- package/dist/index-C_b9PQD8.js +1360 -0
- package/dist/index-CxkFVI6N.js +667 -0
- package/dist/index.js +137 -0
- package/dist/stories/StyleGuide/helpers.js +132 -0
- package/dist/stories/a/AppContext.stories.js +85 -0
- package/dist/stories/a/AreaChart.stories.js +182 -0
- package/dist/stories/a/BarChart.stories.js +173 -0
- package/dist/stories/a/BlurOverlay.stories.js +79 -0
- package/dist/stories/a/ContentTree.stories.js +112 -0
- package/dist/stories/a/Conversation.stories.js +113 -0
- package/dist/stories/a/DatePicker.stories.js +128 -0
- package/dist/stories/a/DotInfo.stories.js +73 -0
- package/dist/stories/a/Figure.stories.js +69 -0
- package/dist/stories/a/HamburgerButton.stories.js +65 -0
- package/dist/stories/a/IconList.stories.js +85 -0
- package/dist/stories/a/Label.stories.js +79 -0
- package/dist/stories/a/LoadingCircle.stories.js +69 -0
- package/dist/stories/a/MetaCard.stories.js +67 -0
- package/dist/stories/a/Notification.stories.js +124 -0
- package/dist/stories/a/NotificationStack.stories.js +102 -0
- package/dist/stories/a/People.stories.js +96 -0
- package/dist/stories/a/PieChart.stories.js +79 -0
- package/dist/stories/a/Popover.stories.js +147 -0
- package/dist/stories/a/ProgressBar.stories.js +86 -0
- package/dist/stories/a/Quote.stories.js +87 -0
- package/dist/stories/a/Removable.stories.js +62 -0
- package/dist/stories/a/SVG.stories.js +155 -0
- package/dist/stories/a/SnapScroller.stories.js +105 -0
- package/dist/stories/a/Spinner.stories.js +62 -0
- package/dist/stories/a/TextSteps.stories.js +57 -0
- package/dist/stories/a/Timestamp.stories.js +92 -0
- package/dist/stories/a/Tip.stories.js +67 -0
- package/dist/stories/a/ToggleSwitch.stories.js +67 -0
- package/dist/stories/a/Tooltip.stories.js +107 -0
- package/dist/stories/a/XMLEditor.stories.js +59 -0
- package/dist/stories/b/Button/Button.stories.js +154 -0
- package/dist/stories/b/Button/Group.stories.js +59 -0
- package/dist/stories/b/Card/Card.stories.js +85 -0
- package/dist/stories/b/Card/Group.stories.js +83 -0
- package/dist/stories/b/Logo.stories.js +69 -0
- package/dist/stories/b/Page.stories.js +94 -0
- package/dist/stories/b/SocialMediaButton.stories.js +95 -0
- package/dist/stories/b/ThemeSelector.stories.js +86 -0
- package/dist/stories/b/Title.stories.js +82 -0
- package/dist/stories/c/Modal.stories.js +76 -0
- package/dist/stories/c/Shortener.stories.js +73 -0
- package/dist/stories/c/SocialMediaShareButton.stories.js +72 -0
- package/dist/stories/colors.js +63 -0
- package/dist/stories/f/Checkbox.stories.js +133 -0
- package/dist/stories/f/ChoicesInput.stories.js +167 -0
- package/dist/stories/f/Description.stories.js +75 -0
- package/dist/stories/f/EditorInput.stories.js +104 -0
- package/dist/stories/f/FileUpload.stories.js +100 -0
- package/dist/stories/f/Label.stories.js +66 -0
- package/dist/stories/f/LinkInput.stories.js +121 -0
- package/dist/stories/f/RadioInput.stories.js +74 -0
- package/dist/stories/f/RatingsInput.stories.js +116 -0
- package/dist/stories/f/SelectInput.stories.js +160 -0
- package/dist/stories/f/TextInput.stories.js +148 -0
- package/dist/stories/f/TextareaInput.stories.js +138 -0
- package/dist/stories/g/DragAndDrop.stories.js +150 -0
- package/dist/stories/g/ExpandableLexicalPreview.stories.js +68 -0
- package/dist/stories/g/FormBuilder.stories.js +140 -0
- package/dist/stories/utils/Router.js +12 -0
- package/dist/stories/utils/generateNodeId.js +7 -0
- package/dist/stories/utils/lorem.js +18 -0
- package/dist/stories/utils/testData.js +66 -0
- package/dist/throttle-BCrS-Wew.js +24 -0
- package/dist/ui/a/AnimatedBlobs/AnimatedBlobs.js +75 -0
- package/dist/ui/a/AnimatedBlobs/index.js +4 -0
- package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +41 -0
- package/dist/ui/a/AnimatedGradient/index.js +4 -0
- package/dist/ui/a/AnimatedGradient/webGIRenderer.js +814 -0
- package/dist/ui/a/AppContext/Context.js +5 -0
- package/dist/ui/a/AppContext/ContextProvider.js +73 -0
- package/dist/ui/a/AppContext/index.js +10 -0
- package/dist/ui/a/AppContext/useApp.js +6 -0
- package/dist/ui/a/AppContext/useTheme.js +25 -0
- package/dist/ui/a/BlurOverlay/BlurOverlay.js +53 -0
- package/dist/ui/a/BlurOverlay/index.js +4 -0
- package/dist/ui/a/Charts/AreaChart/AreaChart.js +697 -0
- package/dist/ui/a/Charts/AreaChart/index.js +4 -0
- package/dist/ui/a/Charts/BarChart/BarChart.js +165 -0
- package/dist/ui/a/Charts/BarChart/index.js +4 -0
- package/dist/ui/a/Charts/Common/CustomLegend/CustomLegend.js +96 -0
- package/dist/ui/a/Charts/Common/CustomLegend/index.js +4 -0
- package/dist/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +137 -0
- package/dist/ui/a/Charts/Common/CustomTooltipContent/index.js +4 -0
- package/dist/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +107 -0
- package/dist/ui/a/Charts/Common/YLabelsDropDown/index.js +4 -0
- package/dist/ui/a/Charts/Common/index.js +8 -0
- package/dist/ui/a/Charts/PieChart/PieChart.js +1227 -0
- package/dist/ui/a/Charts/PieChart/index.js +4 -0
- package/dist/ui/a/Charts/index.js +8 -0
- package/dist/ui/a/ContentTree/ContentTree.js +10 -0
- package/dist/ui/a/ContentTree/common/Tree/Tree.js +51 -0
- package/dist/ui/a/ContentTree/common/Tree/index.js +4 -0
- package/dist/ui/a/ContentTree/common/index.js +8 -0
- package/dist/ui/a/ContentTree/common/useContentTree.js +44 -0
- package/dist/ui/a/ContentTree/common/useFirstVisibleNode.js +20 -0
- package/dist/ui/a/ContentTree/index.js +4 -0
- package/dist/ui/a/Conversation/Context.js +5 -0
- package/dist/ui/a/Conversation/Conversation.js +51 -0
- package/dist/ui/a/Conversation/common/Message/Message.js +97 -0
- package/dist/ui/a/Conversation/common/Message/index.js +4 -0
- package/dist/ui/a/Conversation/common/index.js +4 -0
- package/dist/ui/a/Conversation/index.js +8 -0
- package/dist/ui/a/Conversation/useConversation.js +6 -0
- package/dist/ui/a/DatePicker/DatePicker.js +9 -0
- package/dist/ui/a/DatePicker/index.js +4 -0
- package/dist/ui/a/DotInfo/DotInfo.js +76 -0
- package/dist/ui/a/DotInfo/index.js +4 -0
- package/dist/ui/a/Figure/Figure.js +59 -0
- package/dist/ui/a/Figure/index.js +4 -0
- package/dist/ui/a/HamburgerButton/HamburgerButton.js +71 -0
- package/dist/ui/a/HamburgerButton/index.js +4 -0
- package/dist/ui/a/IconList/IconList.js +64 -0
- package/dist/ui/a/IconList/common/Item/Item.js +58 -0
- package/dist/ui/a/IconList/common/Item/index.js +4 -0
- package/dist/ui/a/IconList/common/index.js +4 -0
- package/dist/ui/a/IconList/index.js +4 -0
- package/dist/ui/a/Label/Label.js +72 -0
- package/dist/ui/a/Label/index.js +4 -0
- package/dist/ui/a/LoadingCircle/LoadingCircle.js +96 -0
- package/dist/ui/a/LoadingCircle/index.js +4 -0
- package/dist/ui/a/MetaCard/MetaCard.js +54 -0
- package/dist/ui/a/MetaCard/index.js +4 -0
- package/dist/ui/a/Notification/Notification.js +50 -0
- package/dist/ui/a/Notification/index.js +4 -0
- package/dist/ui/a/NotificationStack/NotificationStack.js +8 -0
- package/dist/ui/a/NotificationStack/index.js +4 -0
- package/dist/ui/a/People/People.js +65 -0
- package/dist/ui/a/People/common/Person/Person.js +82 -0
- package/dist/ui/a/People/common/Person/index.js +4 -0
- package/dist/ui/a/People/common/index.js +4 -0
- package/dist/ui/a/People/index.js +4 -0
- package/dist/ui/a/Popover/Popover.js +124 -0
- package/dist/ui/a/Popover/index.js +4 -0
- package/dist/ui/a/ProgressBar/ProgressBar.js +70 -0
- package/dist/ui/a/ProgressBar/index.js +4 -0
- package/dist/ui/a/Quote/Quote.js +73 -0
- package/dist/ui/a/Quote/index.js +4 -0
- package/dist/ui/a/Removable/Removable.js +55 -0
- package/dist/ui/a/Removable/index.js +4 -0
- package/dist/ui/a/SVG/SVG.js +152 -0
- package/dist/ui/a/SVG/common/UseSVG/UseSVG.js +59 -0
- package/dist/ui/a/SVG/common/UseSVG/index.js +4 -0
- package/dist/ui/a/SVG/common/index.js +4 -0
- package/dist/ui/a/SVG/index.js +4 -0
- package/dist/ui/a/SnapScroller/SnapScroller.js +72 -0
- package/dist/ui/a/SnapScroller/index.js +4 -0
- package/dist/ui/a/Spinner/Spinner.js +48 -0
- package/dist/ui/a/Spinner/index.js +4 -0
- package/dist/ui/a/TextSteps/TextSteps.js +58 -0
- package/dist/ui/a/TextSteps/index.js +4 -0
- package/dist/ui/a/ThroughPutIndicator/ThroughPutIndicator.js +57 -0
- package/dist/ui/a/ThroughPutIndicator/index.js +4 -0
- package/dist/ui/a/Timestamp/Timestamp.js +250 -0
- package/dist/ui/a/Timestamp/index.js +4 -0
- package/dist/ui/a/Tip/Tip.js +74 -0
- package/dist/ui/a/Tip/index.js +4 -0
- package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +77 -0
- package/dist/ui/a/ToggleSwitch/index.js +4 -0
- package/dist/ui/a/Tooltip/Tooltip.js +101 -0
- package/dist/ui/a/Tooltip/index.js +4 -0
- package/dist/ui/a/XMLEditor/XMLEditor.js +2447 -0
- package/dist/ui/a/XMLEditor/common/index.js +4 -0
- package/dist/ui/a/XMLEditor/common/theme.js +4 -0
- package/dist/ui/a/XMLEditor/index.js +4 -0
- package/dist/ui/a/index.js +74 -0
- package/dist/ui/b/Button/Button.js +51 -0
- package/dist/ui/b/Button/common/Group/Group.js +48 -0
- package/dist/ui/b/Button/common/Group/index.js +4 -0
- package/dist/ui/b/Button/common/index.js +4 -0
- package/dist/ui/b/Button/index.js +4 -0
- package/dist/ui/b/Card/Card.js +51 -0
- package/dist/ui/b/Card/common/Group/Group.js +50 -0
- package/dist/ui/b/Card/common/Group/index.js +4 -0
- package/dist/ui/b/Card/common/Section/Section.js +54 -0
- package/dist/ui/b/Card/common/Section/index.js +4 -0
- package/dist/ui/b/Card/common/index.js +6 -0
- package/dist/ui/b/Card/index.js +4 -0
- package/dist/ui/b/Logo/Logo.js +39 -0
- package/dist/ui/b/Logo/index.js +4 -0
- package/dist/ui/b/Page/Context.js +5 -0
- package/dist/ui/b/Page/Page.js +42 -0
- package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +40 -0
- package/dist/ui/b/Page/common/PageHelmet/index.js +4 -0
- package/dist/ui/b/Page/common/Section/Section.js +67 -0
- package/dist/ui/b/Page/common/Section/index.js +4 -0
- package/dist/ui/b/Page/common/index.js +6 -0
- package/dist/ui/b/Page/index.js +8 -0
- package/dist/ui/b/Page/usePage.js +6 -0
- package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +40 -0
- package/dist/ui/b/SocialMediaButton/index.js +4 -0
- package/dist/ui/b/ThemeSelector/ThemeSelector.js +40 -0
- package/dist/ui/b/ThemeSelector/index.js +4 -0
- package/dist/ui/b/Title/Title.js +126 -0
- package/dist/ui/b/Title/index.js +4 -0
- package/dist/ui/b/index.js +13 -0
- package/dist/ui/c/Modal/Modal.js +8 -0
- package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +50 -0
- package/dist/ui/c/Modal/common/ModalHeader/index.js +4 -0
- package/dist/ui/c/Modal/common/index.js +4 -0
- package/dist/ui/c/Modal/index.js +4 -0
- package/dist/ui/c/Shortener/Shortener.js +10 -0
- package/dist/ui/c/Shortener/index.js +4 -0
- package/dist/ui/c/SocialMediaShareButton/SocialMediaShareButton.js +80 -0
- package/dist/ui/c/SocialMediaShareButton/index.js +4 -0
- package/dist/ui/c/index.js +7 -0
- package/dist/ui/d/index.js +1 -0
- package/dist/ui/f/FormInput/FormInput.js +9 -0
- package/dist/ui/f/FormInput/index.js +4 -0
- package/dist/ui/f/common/Debugger/Debugger.js +10 -0
- package/dist/ui/f/common/Debugger/index.js +4 -0
- package/dist/ui/f/common/Description/Description.js +62 -0
- package/dist/ui/f/common/Description/index.js +4 -0
- package/dist/ui/f/common/Label/Label.js +74 -0
- package/dist/ui/f/common/Label/index.js +4 -0
- package/dist/ui/f/common/index.js +12 -0
- package/dist/ui/f/common/utils/index.js +6 -0
- package/dist/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +1039 -0
- package/dist/ui/f/common/utils/validators.js +7 -0
- package/dist/ui/f/fields/Checkbox/Checkbox.js +11 -0
- package/dist/ui/f/fields/Checkbox/index.js +4 -0
- package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +11 -0
- package/dist/ui/f/fields/ChoicesInput/common/Choice/Choice.js +112 -0
- package/dist/ui/f/fields/ChoicesInput/common/Choice/index.js +4 -0
- package/dist/ui/f/fields/ChoicesInput/common/index.js +4 -0
- package/dist/ui/f/fields/ChoicesInput/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/EditorInput.js +15 -0
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +44 -0
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +43 -0
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.js +7 -0
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +44 -0
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/StopPropagationPlugin.js +18 -0
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +11 -0
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/TreeViewPlugin.js +7 -0
- package/dist/ui/f/fields/EditorInput/common/index.js +13 -0
- package/dist/ui/f/fields/EditorInput/index.js +4 -0
- package/dist/ui/f/fields/FileUpload/FileUpload.js +11 -0
- package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +42 -0
- package/dist/ui/f/fields/FileUpload/common/Preview/index.js +4 -0
- package/dist/ui/f/fields/FileUpload/common/index.js +4 -0
- package/dist/ui/f/fields/FileUpload/index.js +8 -0
- package/dist/ui/f/fields/FileUpload/utils.js +48 -0
- package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +10 -0
- package/dist/ui/f/fields/LatexPreviewInput/convertLatexToHtml.js +51108 -0
- package/dist/ui/f/fields/LatexPreviewInput/index.js +6 -0
- package/dist/ui/f/fields/LinkInput/LinkInput.js +11 -0
- package/dist/ui/f/fields/LinkInput/index.js +4 -0
- package/dist/ui/f/fields/QueryChoices/QueryChoices.js +8 -0
- package/dist/ui/f/fields/QueryChoices/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +9 -0
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +47 -0
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/common/Menu/Menu.js +78 -0
- package/dist/ui/f/fields/QueryCombobox/common/Menu/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +47 -0
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/common/index.js +7 -0
- package/dist/ui/f/fields/QueryCombobox/index.js +4 -0
- package/dist/ui/f/fields/QuerySelect/QuerySelect.js +12 -0
- package/dist/ui/f/fields/QuerySelect/index.js +4 -0
- package/dist/ui/f/fields/RadioInput/RadioInput.js +78 -0
- package/dist/ui/f/fields/RadioInput/index.js +4 -0
- package/dist/ui/f/fields/RatingsInput/RatingsInput.js +11 -0
- package/dist/ui/f/fields/RatingsInput/common/Rating/Rating.js +127 -0
- package/dist/ui/f/fields/RatingsInput/common/Rating/index.js +4 -0
- package/dist/ui/f/fields/RatingsInput/common/index.js +4 -0
- package/dist/ui/f/fields/RatingsInput/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/SelectInput.js +9 -0
- package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +79 -0
- package/dist/ui/f/fields/SelectInput/common/Menu/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +47 -0
- package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/common/Single/Single.js +44 -0
- package/dist/ui/f/fields/SelectInput/common/Single/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/common/index.js +7 -0
- package/dist/ui/f/fields/SelectInput/index.js +4 -0
- package/dist/ui/f/fields/TextInput/TextInput.js +11 -0
- package/dist/ui/f/fields/TextInput/index.js +4 -0
- package/dist/ui/f/fields/TextareaInput/TextareaInput.js +11 -0
- package/dist/ui/f/fields/TextareaInput/index.js +4 -0
- package/dist/ui/f/fields/ToggleInput/ToggleInput.js +42 -0
- package/dist/ui/f/fields/ToggleInput/index.js +4 -0
- package/dist/ui/f/fields/index.js +25 -0
- package/dist/ui/f/index.js +35 -0
- package/dist/ui/g/DragAndDrop/DragAndDrop.js +89 -0
- package/dist/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.js +64 -0
- package/dist/ui/g/DragAndDrop/common/DraggableItem/index.js +4 -0
- package/dist/ui/g/DragAndDrop/common/index.js +4 -0
- package/dist/ui/g/DragAndDrop/index.js +4 -0
- package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +15 -0
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +40 -0
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +4 -0
- package/dist/ui/g/ExpandableLexicalPreview/common/index.js +4 -0
- package/dist/ui/g/ExpandableLexicalPreview/index.js +4 -0
- package/dist/ui/g/FormBuilder/FormBuilder.js +8 -0
- package/dist/ui/g/FormBuilder/common/Builder/Builder.js +13 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +43 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +46 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +14 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/index.js +6 -0
- package/dist/ui/g/FormBuilder/common/Builder/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +15 -0
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +14 -0
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Renderer/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/index.js +5 -0
- package/dist/ui/g/FormBuilder/index.js +4 -0
- package/dist/ui/g/index.js +7 -0
- package/dist/ui/index.js +137 -0
- package/dist/ui/utils/applyCharacterLimit.js +31 -0
- package/dist/ui/utils/formatting.js +90 -0
- package/dist/ui/utils/hooks/index.js +8 -0
- package/dist/ui/utils/hooks/useDynamicPosition.js +61 -0
- package/dist/ui/utils/hooks/useOutsideClick.js +14 -0
- package/dist/ui/utils/hooks/useWindowSize.js +16 -0
- package/dist/ui/utils/index.js +16 -0
- package/dist/vite.svg +1 -0
- package/package.json +44 -36
- package/.eslintrc.js +0 -3
- package/.storybook/main.js +0 -32
- package/.storybook/preview.js +0 -45
- package/.storybook/webpackFinal.js +0 -68
- package/babel.config.js +0 -55
- package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +0 -89
- package/dist/cjs/a/AnimatedBlobs/index.js +0 -13
- package/dist/cjs/a/AnimatedBlobs/styles.scss +0 -87
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +0 -59
- package/dist/cjs/a/AnimatedGradient/index.js +0 -13
- package/dist/cjs/a/AnimatedGradient/styles.scss +0 -15
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +0 -527
- package/dist/cjs/a/AppContext/Context.js +0 -10
- package/dist/cjs/a/AppContext/ContextProvider.js +0 -87
- package/dist/cjs/a/AppContext/index.js +0 -34
- package/dist/cjs/a/AppContext/useApp.js +0 -11
- package/dist/cjs/a/AppContext/useTheme.js +0 -38
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +0 -58
- package/dist/cjs/a/BlurOverlay/index.js +0 -13
- package/dist/cjs/a/BlurOverlay/styles.scss +0 -33
- package/dist/cjs/a/Charts/AreaChart/AreaChart.js +0 -256
- package/dist/cjs/a/Charts/AreaChart/index.js +0 -13
- package/dist/cjs/a/Charts/AreaChart/styles.scss +0 -70
- package/dist/cjs/a/Charts/BarChart/BarChart.js +0 -138
- package/dist/cjs/a/Charts/BarChart/index.js +0 -13
- package/dist/cjs/a/Charts/BarChart/styles.scss +0 -48
- package/dist/cjs/a/Charts/Common/CustomLegend/CustomLegend.js +0 -106
- package/dist/cjs/a/Charts/Common/CustomLegend/index.js +0 -13
- package/dist/cjs/a/Charts/Common/CustomLegend/styles.scss +0 -75
- package/dist/cjs/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +0 -194
- package/dist/cjs/a/Charts/Common/CustomTooltipContent/index.js +0 -13
- package/dist/cjs/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
- package/dist/cjs/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +0 -97
- package/dist/cjs/a/Charts/Common/YLabelsDropDown/index.js +0 -13
- package/dist/cjs/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
- package/dist/cjs/a/Charts/Common/index.js +0 -26
- package/dist/cjs/a/Charts/PieChart/PieChart.js +0 -130
- package/dist/cjs/a/Charts/PieChart/index.js +0 -13
- package/dist/cjs/a/Charts/PieChart/styles.scss +0 -136
- package/dist/cjs/a/Charts/index.js +0 -26
- package/dist/cjs/a/ContentTree/ContentTree.js +0 -77
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +0 -111
- package/dist/cjs/a/ContentTree/common/Tree/index.js +0 -13
- package/dist/cjs/a/ContentTree/common/index.js +0 -27
- package/dist/cjs/a/ContentTree/common/useContentTree.js +0 -79
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +0 -61
- package/dist/cjs/a/ContentTree/index.js +0 -13
- package/dist/cjs/a/ContentTree/styles.scss +0 -56
- package/dist/cjs/a/Conversation/Context.js +0 -10
- package/dist/cjs/a/Conversation/Conversation.js +0 -85
- package/dist/cjs/a/Conversation/common/Message/Message.js +0 -103
- package/dist/cjs/a/Conversation/common/Message/index.js +0 -13
- package/dist/cjs/a/Conversation/common/index.js +0 -12
- package/dist/cjs/a/Conversation/index.js +0 -27
- package/dist/cjs/a/Conversation/styles.scss +0 -86
- package/dist/cjs/a/Conversation/useConversation.js +0 -11
- package/dist/cjs/a/DatePicker/DatePicker.js +0 -162
- package/dist/cjs/a/DatePicker/index.js +0 -13
- package/dist/cjs/a/DatePicker/styles.scss +0 -380
- package/dist/cjs/a/DotInfo/DotInfo.js +0 -86
- package/dist/cjs/a/DotInfo/index.js +0 -13
- package/dist/cjs/a/DotInfo/styles.scss +0 -20
- package/dist/cjs/a/Figure/Figure.js +0 -72
- package/dist/cjs/a/Figure/index.js +0 -13
- package/dist/cjs/a/Figure/styles.scss +0 -19
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +0 -82
- package/dist/cjs/a/HamburgerButton/index.js +0 -13
- package/dist/cjs/a/HamburgerButton/styles.scss +0 -183
- package/dist/cjs/a/IconList/IconList.js +0 -74
- package/dist/cjs/a/IconList/common/Item/Item.js +0 -72
- package/dist/cjs/a/IconList/common/Item/index.js +0 -13
- package/dist/cjs/a/IconList/common/index.js +0 -12
- package/dist/cjs/a/IconList/index.js +0 -13
- package/dist/cjs/a/IconList/styles.scss +0 -37
- package/dist/cjs/a/Label/Label.js +0 -79
- package/dist/cjs/a/Label/index.js +0 -13
- package/dist/cjs/a/Label/styles.scss +0 -35
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +0 -102
- package/dist/cjs/a/LoadingCircle/index.js +0 -13
- package/dist/cjs/a/LoadingCircle/styles.scss +0 -47
- package/dist/cjs/a/MetaCard/MetaCard.js +0 -64
- package/dist/cjs/a/MetaCard/index.js +0 -13
- package/dist/cjs/a/MetaCard/styles.scss +0 -45
- package/dist/cjs/a/Notification/Notification.js +0 -113
- package/dist/cjs/a/Notification/index.js +0 -13
- package/dist/cjs/a/Notification/styles.scss +0 -67
- package/dist/cjs/a/NotificationStack/NotificationStack.js +0 -68
- package/dist/cjs/a/NotificationStack/index.js +0 -13
- package/dist/cjs/a/NotificationStack/styles.scss +0 -23
- package/dist/cjs/a/People/People.js +0 -77
- package/dist/cjs/a/People/common/Person/Person.js +0 -88
- package/dist/cjs/a/People/common/Person/index.js +0 -13
- package/dist/cjs/a/People/common/index.js +0 -12
- package/dist/cjs/a/People/index.js +0 -13
- package/dist/cjs/a/People/styles.scss +0 -60
- package/dist/cjs/a/Popover/Popover.js +0 -117
- package/dist/cjs/a/Popover/index.js +0 -13
- package/dist/cjs/a/Popover/styles.scss +0 -34
- package/dist/cjs/a/ProgressBar/ProgressBar.js +0 -81
- package/dist/cjs/a/ProgressBar/index.js +0 -13
- package/dist/cjs/a/ProgressBar/styles.scss +0 -47
- package/dist/cjs/a/Quote/Quote.js +0 -92
- package/dist/cjs/a/Quote/index.js +0 -13
- package/dist/cjs/a/Quote/styles.scss +0 -35
- package/dist/cjs/a/Removable/Removable.js +0 -71
- package/dist/cjs/a/Removable/index.js +0 -13
- package/dist/cjs/a/Removable/styles.scss +0 -33
- package/dist/cjs/a/SVG/SVG.js +0 -133
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +0 -71
- package/dist/cjs/a/SVG/common/UseSVG/index.js +0 -13
- package/dist/cjs/a/SVG/common/index.js +0 -12
- package/dist/cjs/a/SVG/index.js +0 -13
- package/dist/cjs/a/SVG/styles.scss +0 -57
- package/dist/cjs/a/SnapScroller/SnapScroller.js +0 -92
- package/dist/cjs/a/SnapScroller/index.js +0 -13
- package/dist/cjs/a/SnapScroller/styles.scss +0 -77
- package/dist/cjs/a/Spinner/Spinner.js +0 -62
- package/dist/cjs/a/Spinner/index.js +0 -13
- package/dist/cjs/a/Spinner/styles.scss +0 -23
- package/dist/cjs/a/TextSteps/TextSteps.js +0 -67
- package/dist/cjs/a/TextSteps/index.js +0 -13
- package/dist/cjs/a/TextSteps/styles.scss +0 -29
- package/dist/cjs/a/ThroughPutIndicator/ThroughPutIndicator.js +0 -78
- package/dist/cjs/a/ThroughPutIndicator/index.js +0 -13
- package/dist/cjs/a/ThroughPutIndicator/styles.scss +0 -35
- package/dist/cjs/a/Timestamp/Timestamp.js +0 -122
- package/dist/cjs/a/Timestamp/index.js +0 -13
- package/dist/cjs/a/Timestamp/styles.scss +0 -7
- package/dist/cjs/a/Tip/Tip.js +0 -85
- package/dist/cjs/a/Tip/index.js +0 -13
- package/dist/cjs/a/Tip/styles.scss +0 -16
- package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +0 -87
- package/dist/cjs/a/ToggleSwitch/index.js +0 -13
- package/dist/cjs/a/ToggleSwitch/styles.scss +0 -58
- package/dist/cjs/a/Tooltip/Tooltip.js +0 -104
- package/dist/cjs/a/Tooltip/index.js +0 -13
- package/dist/cjs/a/Tooltip/styles.scss +0 -89
- package/dist/cjs/a/XMLEditor/XMLEditor.js +0 -128
- package/dist/cjs/a/XMLEditor/common/index.js +0 -13
- package/dist/cjs/a/XMLEditor/common/theme.js +0 -186
- package/dist/cjs/a/XMLEditor/index.js +0 -13
- package/dist/cjs/a/XMLEditor/styles.scss +0 -24
- package/dist/cjs/a/index.js +0 -259
- package/dist/cjs/b/Button/Button.js +0 -111
- package/dist/cjs/b/Button/common/Group/Group.js +0 -54
- package/dist/cjs/b/Button/common/Group/index.js +0 -13
- package/dist/cjs/b/Button/common/Group/styles.scss +0 -11
- package/dist/cjs/b/Button/common/index.js +0 -12
- package/dist/cjs/b/Button/index.js +0 -13
- package/dist/cjs/b/Button/styles.scss +0 -173
- package/dist/cjs/b/Card/Card.js +0 -73
- package/dist/cjs/b/Card/common/Group/Group.js +0 -70
- package/dist/cjs/b/Card/common/Group/index.js +0 -13
- package/dist/cjs/b/Card/common/Group/styles.scss +0 -35
- package/dist/cjs/b/Card/common/Section/Section.js +0 -58
- package/dist/cjs/b/Card/common/Section/index.js +0 -13
- package/dist/cjs/b/Card/common/index.js +0 -19
- package/dist/cjs/b/Card/index.js +0 -13
- package/dist/cjs/b/Card/styles.scss +0 -57
- package/dist/cjs/b/Logo/Logo.js +0 -123
- package/dist/cjs/b/Logo/index.js +0 -13
- package/dist/cjs/b/Logo/styles.scss +0 -11
- package/dist/cjs/b/Page/Context.js +0 -10
- package/dist/cjs/b/Page/Page.js +0 -106
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +0 -186
- package/dist/cjs/b/Page/common/PageHelmet/index.js +0 -13
- package/dist/cjs/b/Page/common/Section/Section.js +0 -66
- package/dist/cjs/b/Page/common/Section/index.js +0 -13
- package/dist/cjs/b/Page/common/index.js +0 -19
- package/dist/cjs/b/Page/index.js +0 -27
- package/dist/cjs/b/Page/styles.scss +0 -38
- package/dist/cjs/b/Page/usePage.js +0 -11
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +0 -116
- package/dist/cjs/b/SocialMediaButton/index.js +0 -13
- package/dist/cjs/b/SocialMediaButton/styles.scss +0 -35
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +0 -74
- package/dist/cjs/b/ThemeSelector/index.js +0 -13
- package/dist/cjs/b/ThemeSelector/styles.scss +0 -52
- package/dist/cjs/b/Title/Title.js +0 -110
- package/dist/cjs/b/Title/index.js +0 -13
- package/dist/cjs/b/index.js +0 -54
- package/dist/cjs/c/Modal/Modal.js +0 -82
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +0 -76
- package/dist/cjs/c/Modal/common/ModalHeader/index.js +0 -13
- package/dist/cjs/c/Modal/common/index.js +0 -12
- package/dist/cjs/c/Modal/index.js +0 -13
- package/dist/cjs/c/Modal/styles.scss +0 -44
- package/dist/cjs/c/Shortener/Shortener.js +0 -102
- package/dist/cjs/c/Shortener/index.js +0 -13
- package/dist/cjs/c/Shortener/styles.scss +0 -7
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -102
- package/dist/cjs/c/SocialMediaShareButton/index.js +0 -13
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +0 -39
- package/dist/cjs/c/index.js +0 -26
- package/dist/cjs/d/index.js +0 -2
- package/dist/cjs/f/FormInput/FormInput.js +0 -154
- package/dist/cjs/f/FormInput/index.js +0 -13
- package/dist/cjs/f/FormInput/styles.scss +0 -11
- package/dist/cjs/f/common/Debugger/Debugger.js +0 -68
- package/dist/cjs/f/common/Debugger/index.js +0 -13
- package/dist/cjs/f/common/Debugger/styles.scss +0 -12
- package/dist/cjs/f/common/Description/Description.js +0 -75
- package/dist/cjs/f/common/Description/index.js +0 -13
- package/dist/cjs/f/common/Description/styles.scss +0 -9
- package/dist/cjs/f/common/Label/Label.js +0 -82
- package/dist/cjs/f/common/Label/index.js +0 -13
- package/dist/cjs/f/common/Label/styles.scss +0 -9
- package/dist/cjs/f/common/index.js +0 -43
- package/dist/cjs/f/common/utils/index.js +0 -19
- package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -29
- package/dist/cjs/f/common/utils/validators.js +0 -17
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +0 -117
- package/dist/cjs/f/fields/Checkbox/index.js +0 -13
- package/dist/cjs/f/fields/Checkbox/styles.scss +0 -16
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +0 -151
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +0 -105
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +0 -13
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +0 -12
- package/dist/cjs/f/fields/ChoicesInput/index.js +0 -13
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +0 -79
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +0 -238
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +0 -256
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +0 -98
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
- package/dist/cjs/f/fields/EditorInput/common/ExposePlainTextPlugin.js +0 -47
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +0 -94
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
- package/dist/cjs/f/fields/EditorInput/common/StopPropagationPlugin.js +0 -25
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +0 -289
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
- package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +0 -18
- package/dist/cjs/f/fields/EditorInput/common/index.js +0 -55
- package/dist/cjs/f/fields/EditorInput/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/styles.scss +0 -240
- package/dist/cjs/f/fields/FileUpload/FileUpload.js +0 -248
- package/dist/cjs/f/fields/FileUpload/common/Preview/Preview.js +0 -135
- package/dist/cjs/f/fields/FileUpload/common/Preview/index.js +0 -13
- package/dist/cjs/f/fields/FileUpload/common/Preview/styles.scss +0 -96
- package/dist/cjs/f/fields/FileUpload/common/index.js +0 -12
- package/dist/cjs/f/fields/FileUpload/index.js +0 -32
- package/dist/cjs/f/fields/FileUpload/styles.scss +0 -73
- package/dist/cjs/f/fields/FileUpload/utils.js +0 -48
- package/dist/cjs/f/fields/LatexPreviewInput/LatexPreviewInput.js +0 -78
- package/dist/cjs/f/fields/LatexPreviewInput/convertLatexToHtml.js +0 -46
- package/dist/cjs/f/fields/LatexPreviewInput/index.js +0 -20
- package/dist/cjs/f/fields/LatexPreviewInput/styles.scss +0 -25
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +0 -152
- package/dist/cjs/f/fields/LinkInput/index.js +0 -13
- package/dist/cjs/f/fields/LinkInput/styles.scss +0 -90
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +0 -137
- package/dist/cjs/f/fields/QueryChoices/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -241
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +0 -238
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +0 -83
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -331
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/common/index.js +0 -26
- package/dist/cjs/f/fields/QueryCombobox/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +0 -134
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +0 -198
- package/dist/cjs/f/fields/QuerySelect/index.js +0 -13
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +0 -132
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +0 -117
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +0 -13
- package/dist/cjs/f/fields/RatingsInput/common/index.js +0 -12
- package/dist/cjs/f/fields/RatingsInput/index.js +0 -13
- package/dist/cjs/f/fields/RatingsInput/styles.scss +0 -48
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +0 -149
- package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +0 -83
- package/dist/cjs/f/fields/SelectInput/common/Menu/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +0 -242
- package/dist/cjs/f/fields/SelectInput/common/Multiple/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +0 -115
- package/dist/cjs/f/fields/SelectInput/common/Single/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/common/index.js +0 -26
- package/dist/cjs/f/fields/SelectInput/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/styles.scss +0 -191
- package/dist/cjs/f/fields/TextInput/TextInput.js +0 -150
- package/dist/cjs/f/fields/TextInput/index.js +0 -13
- package/dist/cjs/f/fields/TextInput/styles.scss +0 -81
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +0 -151
- package/dist/cjs/f/fields/TextareaInput/index.js +0 -13
- package/dist/cjs/f/fields/TextareaInput/styles.scss +0 -53
- package/dist/cjs/f/fields/ToggleInput/ToggleInput.js +0 -126
- package/dist/cjs/f/fields/ToggleInput/index.js +0 -13
- package/dist/cjs/f/fields/ToggleInput/styles.scss +0 -22
- package/dist/cjs/f/fields/index.js +0 -127
- package/dist/cjs/f/index.js +0 -39
- package/dist/cjs/form-reset.scss +0 -86
- package/dist/cjs/form.scss +0 -34
- package/dist/cjs/g/DragAndDrop/DragAndDrop.js +0 -104
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/DraggableItem.js +0 -76
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/index.js +0 -13
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
- package/dist/cjs/g/DragAndDrop/common/index.js +0 -12
- package/dist/cjs/g/DragAndDrop/index.js +0 -13
- package/dist/cjs/g/DragAndDrop/styles.scss +0 -8
- package/dist/cjs/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +0 -139
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +0 -79
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -13
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
- package/dist/cjs/g/ExpandableLexicalPreview/common/index.js +0 -12
- package/dist/cjs/g/ExpandableLexicalPreview/index.js +0 -13
- package/dist/cjs/g/ExpandableLexicalPreview/styles.scss +0 -33
- package/dist/cjs/g/FormBuilder/FormBuilder.js +0 -127
- package/dist/cjs/g/FormBuilder/common/Builder/Builder.js +0 -193
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +0 -80
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +0 -254
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/Section.js +0 -148
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
- package/dist/cjs/g/FormBuilder/common/Builder/common/index.js +0 -26
- package/dist/cjs/g/FormBuilder/common/Builder/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/styles.scss +0 -63
- package/dist/cjs/g/FormBuilder/common/Renderer/Renderer.js +0 -194
- package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/Section.js +0 -95
- package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Renderer/common/index.js +0 -12
- package/dist/cjs/g/FormBuilder/common/Renderer/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Renderer/styles.scss +0 -30
- package/dist/cjs/g/FormBuilder/common/index.js +0 -19
- package/dist/cjs/g/FormBuilder/index.js +0 -13
- package/dist/cjs/g/FormBuilder/styles.scss +0 -25
- package/dist/cjs/g/index.js +0 -26
- package/dist/cjs/index.js +0 -93
- package/dist/cjs/test/QueryLoader/QueryLoader.js +0 -36
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -63
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +0 -40
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +0 -13
- package/dist/cjs/test/QueryLoader/common/index.js +0 -12
- package/dist/cjs/test/QueryLoader/index.js +0 -13
- package/dist/cjs/test/index.js +0 -12
- package/dist/cjs/utils/applyCharacterLimit.js +0 -75
- package/dist/cjs/utils/formatting.js +0 -128
- package/dist/cjs/utils/hooks/index.js +0 -27
- package/dist/cjs/utils/hooks/useDynamicPosition.js +0 -91
- package/dist/cjs/utils/hooks/useOutsideClick.js +0 -25
- package/dist/cjs/utils/hooks/useWindowSize.js +0 -30
- package/dist/cjs/utils/index.js +0 -62
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +0 -77
- package/dist/es/a/AnimatedBlobs/index.js +0 -1
- package/dist/es/a/AnimatedBlobs/styles.scss +0 -87
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +0 -49
- package/dist/es/a/AnimatedGradient/index.js +0 -1
- package/dist/es/a/AnimatedGradient/styles.scss +0 -15
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +0 -491
- package/dist/es/a/AppContext/Context.js +0 -2
- package/dist/es/a/AppContext/ContextProvider.js +0 -77
- package/dist/es/a/AppContext/index.js +0 -5
- package/dist/es/a/AppContext/useApp.js +0 -3
- package/dist/es/a/AppContext/useTheme.js +0 -31
- package/dist/es/a/BlurOverlay/BlurOverlay.js +0 -45
- package/dist/es/a/BlurOverlay/index.js +0 -2
- package/dist/es/a/BlurOverlay/styles.scss +0 -33
- package/dist/es/a/Charts/AreaChart/AreaChart.js +0 -246
- package/dist/es/a/Charts/AreaChart/index.js +0 -1
- package/dist/es/a/Charts/AreaChart/styles.scss +0 -70
- package/dist/es/a/Charts/BarChart/BarChart.js +0 -129
- package/dist/es/a/Charts/BarChart/index.js +0 -1
- package/dist/es/a/Charts/BarChart/styles.scss +0 -48
- package/dist/es/a/Charts/Common/CustomLegend/CustomLegend.js +0 -94
- package/dist/es/a/Charts/Common/CustomLegend/index.js +0 -1
- package/dist/es/a/Charts/Common/CustomLegend/styles.scss +0 -75
- package/dist/es/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +0 -175
- package/dist/es/a/Charts/Common/CustomTooltipContent/index.js +0 -1
- package/dist/es/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
- package/dist/es/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +0 -86
- package/dist/es/a/Charts/Common/YLabelsDropDown/index.js +0 -1
- package/dist/es/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
- package/dist/es/a/Charts/Common/index.js +0 -3
- package/dist/es/a/Charts/PieChart/PieChart.js +0 -120
- package/dist/es/a/Charts/PieChart/index.js +0 -1
- package/dist/es/a/Charts/PieChart/styles.scss +0 -136
- package/dist/es/a/Charts/index.js +0 -3
- package/dist/es/a/ContentTree/ContentTree.js +0 -66
- package/dist/es/a/ContentTree/common/Tree/Tree.js +0 -101
- package/dist/es/a/ContentTree/common/Tree/index.js +0 -2
- package/dist/es/a/ContentTree/common/index.js +0 -3
- package/dist/es/a/ContentTree/common/useContentTree.js +0 -73
- package/dist/es/a/ContentTree/common/useFirstVisibleNode.js +0 -54
- package/dist/es/a/ContentTree/index.js +0 -2
- package/dist/es/a/ContentTree/styles.scss +0 -56
- package/dist/es/a/Conversation/Context.js +0 -2
- package/dist/es/a/Conversation/Conversation.js +0 -73
- package/dist/es/a/Conversation/common/Message/Message.js +0 -93
- package/dist/es/a/Conversation/common/Message/index.js +0 -2
- package/dist/es/a/Conversation/common/index.js +0 -1
- package/dist/es/a/Conversation/index.js +0 -4
- package/dist/es/a/Conversation/styles.scss +0 -86
- package/dist/es/a/Conversation/useConversation.js +0 -3
- package/dist/es/a/DatePicker/DatePicker.js +0 -154
- package/dist/es/a/DatePicker/index.js +0 -2
- package/dist/es/a/DatePicker/styles.scss +0 -380
- package/dist/es/a/DotInfo/DotInfo.js +0 -74
- package/dist/es/a/DotInfo/index.js +0 -2
- package/dist/es/a/DotInfo/styles.scss +0 -20
- package/dist/es/a/Figure/Figure.js +0 -60
- package/dist/es/a/Figure/index.js +0 -2
- package/dist/es/a/Figure/styles.scss +0 -19
- package/dist/es/a/HamburgerButton/HamburgerButton.js +0 -72
- package/dist/es/a/HamburgerButton/index.js +0 -2
- package/dist/es/a/HamburgerButton/styles.scss +0 -183
- package/dist/es/a/IconList/IconList.js +0 -64
- package/dist/es/a/IconList/common/Item/Item.js +0 -63
- package/dist/es/a/IconList/common/Item/index.js +0 -2
- package/dist/es/a/IconList/common/index.js +0 -1
- package/dist/es/a/IconList/index.js +0 -2
- package/dist/es/a/IconList/styles.scss +0 -37
- package/dist/es/a/Label/Label.js +0 -69
- package/dist/es/a/Label/index.js +0 -2
- package/dist/es/a/Label/styles.scss +0 -35
- package/dist/es/a/LoadingCircle/LoadingCircle.js +0 -90
- package/dist/es/a/LoadingCircle/index.js +0 -2
- package/dist/es/a/LoadingCircle/styles.scss +0 -47
- package/dist/es/a/MetaCard/MetaCard.js +0 -52
- package/dist/es/a/MetaCard/index.js +0 -1
- package/dist/es/a/MetaCard/styles.scss +0 -45
- package/dist/es/a/Notification/Notification.js +0 -107
- package/dist/es/a/Notification/index.js +0 -1
- package/dist/es/a/Notification/styles.scss +0 -67
- package/dist/es/a/NotificationStack/NotificationStack.js +0 -62
- package/dist/es/a/NotificationStack/index.js +0 -1
- package/dist/es/a/NotificationStack/styles.scss +0 -23
- package/dist/es/a/People/People.js +0 -65
- package/dist/es/a/People/common/Person/Person.js +0 -78
- package/dist/es/a/People/common/Person/index.js +0 -2
- package/dist/es/a/People/common/index.js +0 -1
- package/dist/es/a/People/index.js +0 -2
- package/dist/es/a/People/styles.scss +0 -60
- package/dist/es/a/Popover/Popover.js +0 -106
- package/dist/es/a/Popover/index.js +0 -2
- package/dist/es/a/Popover/styles.scss +0 -34
- package/dist/es/a/ProgressBar/ProgressBar.js +0 -69
- package/dist/es/a/ProgressBar/index.js +0 -2
- package/dist/es/a/ProgressBar/styles.scss +0 -47
- package/dist/es/a/Quote/Quote.js +0 -80
- package/dist/es/a/Quote/index.js +0 -2
- package/dist/es/a/Quote/styles.scss +0 -35
- package/dist/es/a/Removable/Removable.js +0 -59
- package/dist/es/a/Removable/index.js +0 -2
- package/dist/es/a/Removable/styles.scss +0 -33
- package/dist/es/a/SVG/SVG.js +0 -125
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +0 -59
- package/dist/es/a/SVG/common/UseSVG/index.js +0 -2
- package/dist/es/a/SVG/common/index.js +0 -1
- package/dist/es/a/SVG/index.js +0 -2
- package/dist/es/a/SVG/styles.scss +0 -57
- package/dist/es/a/SnapScroller/SnapScroller.js +0 -82
- package/dist/es/a/SnapScroller/index.js +0 -2
- package/dist/es/a/SnapScroller/styles.scss +0 -77
- package/dist/es/a/Spinner/Spinner.js +0 -50
- package/dist/es/a/Spinner/index.js +0 -2
- package/dist/es/a/Spinner/styles.scss +0 -23
- package/dist/es/a/TextSteps/TextSteps.js +0 -56
- package/dist/es/a/TextSteps/index.js +0 -1
- package/dist/es/a/TextSteps/styles.scss +0 -29
- package/dist/es/a/ThroughPutIndicator/ThroughPutIndicator.js +0 -66
- package/dist/es/a/ThroughPutIndicator/index.js +0 -2
- package/dist/es/a/ThroughPutIndicator/styles.scss +0 -35
- package/dist/es/a/Timestamp/Timestamp.js +0 -112
- package/dist/es/a/Timestamp/index.js +0 -2
- package/dist/es/a/Timestamp/styles.scss +0 -7
- package/dist/es/a/Tip/Tip.js +0 -73
- package/dist/es/a/Tip/index.js +0 -2
- package/dist/es/a/Tip/styles.scss +0 -16
- package/dist/es/a/ToggleSwitch/ToggleSwitch.js +0 -75
- package/dist/es/a/ToggleSwitch/index.js +0 -2
- package/dist/es/a/ToggleSwitch/styles.scss +0 -58
- package/dist/es/a/Tooltip/Tooltip.js +0 -94
- package/dist/es/a/Tooltip/index.js +0 -2
- package/dist/es/a/Tooltip/styles.scss +0 -89
- package/dist/es/a/XMLEditor/XMLEditor.js +0 -117
- package/dist/es/a/XMLEditor/common/index.js +0 -1
- package/dist/es/a/XMLEditor/common/theme.js +0 -180
- package/dist/es/a/XMLEditor/index.js +0 -1
- package/dist/es/a/XMLEditor/styles.scss +0 -24
- package/dist/es/a/index.js +0 -32
- package/dist/es/b/Button/Button.js +0 -105
- package/dist/es/b/Button/common/Group/Group.js +0 -44
- package/dist/es/b/Button/common/Group/index.js +0 -1
- package/dist/es/b/Button/common/Group/styles.scss +0 -11
- package/dist/es/b/Button/common/index.js +0 -1
- package/dist/es/b/Button/index.js +0 -2
- package/dist/es/b/Button/styles.scss +0 -173
- package/dist/es/b/Card/Card.js +0 -61
- package/dist/es/b/Card/common/Group/Group.js +0 -62
- package/dist/es/b/Card/common/Group/index.js +0 -1
- package/dist/es/b/Card/common/Group/styles.scss +0 -35
- package/dist/es/b/Card/common/Section/Section.js +0 -48
- package/dist/es/b/Card/common/Section/index.js +0 -1
- package/dist/es/b/Card/common/index.js +0 -2
- package/dist/es/b/Card/index.js +0 -1
- package/dist/es/b/Card/styles.scss +0 -57
- package/dist/es/b/Logo/Logo.js +0 -113
- package/dist/es/b/Logo/index.js +0 -2
- package/dist/es/b/Logo/styles.scss +0 -11
- package/dist/es/b/Page/Context.js +0 -2
- package/dist/es/b/Page/Page.js +0 -100
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +0 -174
- package/dist/es/b/Page/common/PageHelmet/index.js +0 -2
- package/dist/es/b/Page/common/Section/Section.js +0 -59
- package/dist/es/b/Page/common/Section/index.js +0 -2
- package/dist/es/b/Page/common/index.js +0 -2
- package/dist/es/b/Page/index.js +0 -4
- package/dist/es/b/Page/styles.scss +0 -38
- package/dist/es/b/Page/usePage.js +0 -3
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +0 -108
- package/dist/es/b/SocialMediaButton/index.js +0 -2
- package/dist/es/b/SocialMediaButton/styles.scss +0 -35
- package/dist/es/b/ThemeSelector/ThemeSelector.js +0 -64
- package/dist/es/b/ThemeSelector/index.js +0 -2
- package/dist/es/b/ThemeSelector/styles.scss +0 -52
- package/dist/es/b/Title/Title.js +0 -102
- package/dist/es/b/Title/index.js +0 -2
- package/dist/es/b/index.js +0 -7
- package/dist/es/c/Modal/Modal.js +0 -70
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +0 -64
- package/dist/es/c/Modal/common/ModalHeader/index.js +0 -1
- package/dist/es/c/Modal/common/index.js +0 -1
- package/dist/es/c/Modal/index.js +0 -2
- package/dist/es/c/Modal/styles.scss +0 -44
- package/dist/es/c/Shortener/Shortener.js +0 -91
- package/dist/es/c/Shortener/index.js +0 -2
- package/dist/es/c/Shortener/styles.scss +0 -7
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -92
- package/dist/es/c/SocialMediaShareButton/index.js +0 -2
- package/dist/es/c/SocialMediaShareButton/styles.scss +0 -39
- package/dist/es/c/index.js +0 -3
- package/dist/es/d/index.js +0 -1
- package/dist/es/f/FormInput/FormInput.js +0 -146
- package/dist/es/f/FormInput/index.js +0 -2
- package/dist/es/f/FormInput/styles.scss +0 -11
- package/dist/es/f/common/Debugger/Debugger.js +0 -58
- package/dist/es/f/common/Debugger/index.js +0 -2
- package/dist/es/f/common/Debugger/styles.scss +0 -12
- package/dist/es/f/common/Description/Description.js +0 -65
- package/dist/es/f/common/Description/index.js +0 -2
- package/dist/es/f/common/Description/styles.scss +0 -9
- package/dist/es/f/common/Label/Label.js +0 -69
- package/dist/es/f/common/Label/index.js +0 -2
- package/dist/es/f/common/Label/styles.scss +0 -9
- package/dist/es/f/common/index.js +0 -4
- package/dist/es/f/common/utils/index.js +0 -2
- package/dist/es/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -20
- package/dist/es/f/common/utils/validators.js +0 -10
- package/dist/es/f/fields/Checkbox/Checkbox.js +0 -110
- package/dist/es/f/fields/Checkbox/index.js +0 -2
- package/dist/es/f/fields/Checkbox/styles.scss +0 -16
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +0 -143
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +0 -98
- package/dist/es/f/fields/ChoicesInput/common/Choice/index.js +0 -2
- package/dist/es/f/fields/ChoicesInput/common/index.js +0 -1
- package/dist/es/f/fields/ChoicesInput/index.js +0 -2
- package/dist/es/f/fields/ChoicesInput/styles.scss +0 -79
- package/dist/es/f/fields/EditorInput/EditorInput.js +0 -227
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +0 -246
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
- package/dist/es/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +0 -87
- package/dist/es/f/fields/EditorInput/common/ColorPicker/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
- package/dist/es/f/fields/EditorInput/common/ExposePlainTextPlugin.js +0 -39
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +0 -81
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
- package/dist/es/f/fields/EditorInput/common/StopPropagationPlugin.js +0 -19
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +0 -277
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
- package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +0 -11
- package/dist/es/f/fields/EditorInput/common/index.js +0 -7
- package/dist/es/f/fields/EditorInput/index.js +0 -2
- package/dist/es/f/fields/EditorInput/styles.scss +0 -240
- package/dist/es/f/fields/FileUpload/FileUpload.js +0 -237
- package/dist/es/f/fields/FileUpload/common/Preview/Preview.js +0 -125
- package/dist/es/f/fields/FileUpload/common/Preview/index.js +0 -2
- package/dist/es/f/fields/FileUpload/common/Preview/styles.scss +0 -96
- package/dist/es/f/fields/FileUpload/common/index.js +0 -2
- package/dist/es/f/fields/FileUpload/index.js +0 -3
- package/dist/es/f/fields/FileUpload/styles.scss +0 -73
- package/dist/es/f/fields/FileUpload/utils.js +0 -40
- package/dist/es/f/fields/LatexPreviewInput/LatexPreviewInput.js +0 -70
- package/dist/es/f/fields/LatexPreviewInput/convertLatexToHtml.js +0 -31
- package/dist/es/f/fields/LatexPreviewInput/index.js +0 -3
- package/dist/es/f/fields/LatexPreviewInput/styles.scss +0 -25
- package/dist/es/f/fields/LinkInput/LinkInput.js +0 -146
- package/dist/es/f/fields/LinkInput/index.js +0 -2
- package/dist/es/f/fields/LinkInput/styles.scss +0 -90
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +0 -126
- package/dist/es/f/fields/QueryChoices/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +0 -229
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +0 -231
- package/dist/es/f/fields/QueryCombobox/common/Combobox/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +0 -73
- package/dist/es/f/fields/QueryCombobox/common/Menu/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -324
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/common/index.js +0 -3
- package/dist/es/f/fields/QueryCombobox/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/styles.scss +0 -134
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +0 -186
- package/dist/es/f/fields/QuerySelect/index.js +0 -2
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +0 -121
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +0 -109
- package/dist/es/f/fields/RatingsInput/common/Rating/index.js +0 -2
- package/dist/es/f/fields/RatingsInput/common/index.js +0 -1
- package/dist/es/f/fields/RatingsInput/index.js +0 -2
- package/dist/es/f/fields/RatingsInput/styles.scss +0 -48
- package/dist/es/f/fields/SelectInput/SelectInput.js +0 -141
- package/dist/es/f/fields/SelectInput/common/Menu/Menu.js +0 -73
- package/dist/es/f/fields/SelectInput/common/Menu/index.js +0 -2
- package/dist/es/f/fields/SelectInput/common/Multiple/Multiple.js +0 -233
- package/dist/es/f/fields/SelectInput/common/Multiple/index.js +0 -2
- package/dist/es/f/fields/SelectInput/common/Single/Single.js +0 -107
- package/dist/es/f/fields/SelectInput/common/Single/index.js +0 -2
- package/dist/es/f/fields/SelectInput/common/index.js +0 -3
- package/dist/es/f/fields/SelectInput/index.js +0 -2
- package/dist/es/f/fields/SelectInput/styles.scss +0 -191
- package/dist/es/f/fields/TextInput/TextInput.js +0 -144
- package/dist/es/f/fields/TextInput/index.js +0 -2
- package/dist/es/f/fields/TextInput/styles.scss +0 -81
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +0 -145
- package/dist/es/f/fields/TextareaInput/index.js +0 -2
- package/dist/es/f/fields/TextareaInput/styles.scss +0 -53
- package/dist/es/f/fields/ToggleInput/ToggleInput.js +0 -116
- package/dist/es/f/fields/ToggleInput/index.js +0 -2
- package/dist/es/f/fields/ToggleInput/styles.scss +0 -22
- package/dist/es/f/fields/index.js +0 -14
- package/dist/es/f/index.js +0 -3
- package/dist/es/form-reset.scss +0 -86
- package/dist/es/form.scss +0 -34
- package/dist/es/g/DragAndDrop/DragAndDrop.js +0 -95
- package/dist/es/g/DragAndDrop/common/DraggableItem/DraggableItem.js +0 -68
- package/dist/es/g/DragAndDrop/common/DraggableItem/index.js +0 -2
- package/dist/es/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
- package/dist/es/g/DragAndDrop/common/index.js +0 -1
- package/dist/es/g/DragAndDrop/index.js +0 -2
- package/dist/es/g/DragAndDrop/styles.scss +0 -8
- package/dist/es/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +0 -128
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +0 -70
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -2
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
- package/dist/es/g/ExpandableLexicalPreview/common/index.js +0 -1
- package/dist/es/g/ExpandableLexicalPreview/index.js +0 -2
- package/dist/es/g/ExpandableLexicalPreview/styles.scss +0 -33
- package/dist/es/g/FormBuilder/FormBuilder.js +0 -117
- package/dist/es/g/FormBuilder/common/Builder/Builder.js +0 -178
- package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +0 -70
- package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
- package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +0 -241
- package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
- package/dist/es/g/FormBuilder/common/Builder/common/Section/Section.js +0 -135
- package/dist/es/g/FormBuilder/common/Builder/common/Section/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
- package/dist/es/g/FormBuilder/common/Builder/common/index.js +0 -3
- package/dist/es/g/FormBuilder/common/Builder/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/styles.scss +0 -63
- package/dist/es/g/FormBuilder/common/Renderer/Renderer.js +0 -187
- package/dist/es/g/FormBuilder/common/Renderer/common/Section/Section.js +0 -88
- package/dist/es/g/FormBuilder/common/Renderer/common/Section/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Renderer/common/index.js +0 -1
- package/dist/es/g/FormBuilder/common/Renderer/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Renderer/styles.scss +0 -30
- package/dist/es/g/FormBuilder/common/index.js +0 -2
- package/dist/es/g/FormBuilder/index.js +0 -2
- package/dist/es/g/FormBuilder/styles.scss +0 -25
- package/dist/es/g/index.js +0 -3
- package/dist/es/index.js +0 -8
- package/dist/es/test/QueryLoader/QueryLoader.js +0 -30
- package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -63
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +0 -30
- package/dist/es/test/QueryLoader/common/PreloadedTestData/index.js +0 -2
- package/dist/es/test/QueryLoader/common/index.js +0 -1
- package/dist/es/test/QueryLoader/index.js +0 -2
- package/dist/es/test/index.js +0 -1
- package/dist/es/utils/applyCharacterLimit.js +0 -67
- package/dist/es/utils/formatting.js +0 -117
- package/dist/es/utils/hooks/index.js +0 -3
- package/dist/es/utils/hooks/useDynamicPosition.js +0 -83
- package/dist/es/utils/hooks/useOutsideClick.js +0 -19
- package/dist/es/utils/hooks/useWindowSize.js +0 -22
- package/dist/es/utils/index.js +0 -3
- package/jest.config.js +0 -28
- package/src/stories/Introduction.stories.mdx +0 -193
- package/src/stories/StyleGuide/Sprites.stories.mdx +0 -25
- package/src/stories/StyleGuide/ai-icons.stories.mdx +0 -27
- package/src/stories/StyleGuide/colors.stories.mdx +0 -73
- package/src/stories/StyleGuide/cssClasses.stories.mdx +0 -16
- package/src/stories/StyleGuide/helpers.js +0 -64
- package/src/stories/StyleGuide/icons.stories.mdx +0 -29
- package/src/stories/StyleGuide/typography.stories.mdx +0 -55
- package/src/stories/a/AppContext.stories.jsx +0 -44
- package/src/stories/a/AreaChart.stories.jsx +0 -118
- package/src/stories/a/BarChart.stories.jsx +0 -89
- package/src/stories/a/BlurOverlay.stories.jsx +0 -39
- package/src/stories/a/ContentTree.stories.jsx +0 -662
- package/src/stories/a/Conversation.stories.jsx +0 -92
- package/src/stories/a/DatePicker.stories.jsx +0 -96
- package/src/stories/a/DotInfo.stories.jsx +0 -33
- package/src/stories/a/Figure.stories.jsx +0 -26
- package/src/stories/a/HamburgerButton.stories.jsx +0 -27
- package/src/stories/a/IconList.stories.jsx +0 -51
- package/src/stories/a/Label.stories.jsx +0 -49
- package/src/stories/a/LoadingCircle.stories.jsx +0 -28
- package/src/stories/a/MetaCard.stories.jsx +0 -35
- package/src/stories/a/Notification.stories.jsx +0 -86
- package/src/stories/a/NotificationStack.stories.jsx +0 -59
- package/src/stories/a/People.stories.jsx +0 -92
- package/src/stories/a/PieChart.stories.jsx +0 -53
- package/src/stories/a/Popover.stories.jsx +0 -106
- package/src/stories/a/ProgressBar.stories.jsx +0 -84
- package/src/stories/a/Quote.stories.jsx +0 -49
- package/src/stories/a/Removable.stories.jsx +0 -22
- package/src/stories/a/SVG.stories.jsx +0 -97
- package/src/stories/a/SnapScroller.stories.jsx +0 -98
- package/src/stories/a/Spinner.stories.jsx +0 -25
- package/src/stories/a/TextSteps.stories.jsx +0 -19
- package/src/stories/a/Timestamp.stories.jsx +0 -98
- package/src/stories/a/Tip.stories.jsx +0 -29
- package/src/stories/a/ToggleSwitch.stories.jsx +0 -28
- package/src/stories/a/Tooltip.stories.jsx +0 -75
- package/src/stories/a/XMLEditor.stories.jsx +0 -26
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/b/Button/Button.stories.jsx +0 -125
- package/src/stories/b/Button/Group.stories.jsx +0 -35
- package/src/stories/b/Card/Card.stories.jsx +0 -59
- package/src/stories/b/Card/Group.stories.jsx +0 -59
- package/src/stories/b/Logo.stories.jsx +0 -46
- package/src/stories/b/Page.stories.jsx +0 -76
- package/src/stories/b/SocialMediaButton.stories.jsx +0 -58
- package/src/stories/b/ThemeSelector.stories.jsx +0 -49
- package/src/stories/b/Title.stories.jsx +0 -47
- package/src/stories/c/Modal.stories.jsx +0 -49
- package/src/stories/c/Shortener.stories.jsx +0 -34
- package/src/stories/c/SocialMediaShareButton.stories.jsx +0 -33
- package/src/stories/colors.js +0 -74
- package/src/stories/f/Checkbox.stories.jsx +0 -102
- package/src/stories/f/ChoicesInput.stories.jsx +0 -139
- package/src/stories/f/Description.stories.jsx +0 -40
- package/src/stories/f/EditorInput.stories.jsx +0 -81
- package/src/stories/f/FileUpload.stories.jsx +0 -68
- package/src/stories/f/FormInput.stories.jsx +0 -451
- package/src/stories/f/Label.stories.jsx +0 -27
- package/src/stories/f/LinkInput.stories.jsx +0 -93
- package/src/stories/f/QueryChoices.stories.jsx +0 -144
- package/src/stories/f/QueryCombobox.stories.jsx +0 -323
- package/src/stories/f/QuerySelect.stories.jsx +0 -150
- package/src/stories/f/RatingsInput.stories.jsx +0 -77
- package/src/stories/f/SelectInput.stories.jsx +0 -126
- package/src/stories/f/TextInput.stories.jsx +0 -120
- package/src/stories/f/TextareaInput.stories.jsx +0 -107
- package/src/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/f/__generated__/FormInputAllTeamsQuery.graphql.js +0 -139
- package/src/stories/f/__generated__/QueryChoicesAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/f/__generated__/QueryComboboxAllTeamsQuery.graphql.js +0 -139
- package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/g/DragAndDrop.stories.jsx +0 -114
- package/src/stories/g/ExpandableLexicalPreview.stories.jsx +0 -37
- package/src/stories/g/FormBuilder.stories.jsx +0 -114
- package/src/stories/original/Button.jsx +0 -55
- package/src/stories/original/Button.stories.js +0 -39
- package/src/stories/original/Header.jsx +0 -64
- package/src/stories/original/Header.stories.js +0 -22
- package/src/stories/original/Introduction.mdx +0 -211
- package/src/stories/original/Page.jsx +0 -76
- package/src/stories/original/Page.stories.js +0 -26
- package/src/stories/original/assets/code-brackets.svg +0 -1
- package/src/stories/original/assets/colors.svg +0 -1
- package/src/stories/original/assets/comments.svg +0 -1
- package/src/stories/original/assets/direction.svg +0 -1
- package/src/stories/original/assets/flow.svg +0 -1
- package/src/stories/original/assets/plugin.svg +0 -1
- package/src/stories/original/assets/repo.svg +0 -1
- package/src/stories/original/assets/stackalt.svg +0 -1
- package/src/stories/original/button.css +0 -30
- package/src/stories/original/header.css +0 -32
- package/src/stories/original/page.css +0 -69
- package/src/stories/r/PrivateRoute.stories.jsx +0 -16
- package/src/stories/r/SwitchRouteMap.stories.jsx +0 -14
- package/src/stories/test/QueryLoader.stories.jsx +0 -36
- package/src/stories/utils/Router.jsx +0 -20
- package/src/stories/utils/generateNodeId.js +0 -12
- package/src/stories/utils/lorem.js +0 -15
- package/src/stories/utils/relay/EnvironmentProvider.jsx +0 -14
- package/src/stories/utils/relay/environment.js +0 -5
- package/src/stories/utils/relay/index.js +0 -4
- package/src/stories/utils/relay/mockRelayOperation.js +0 -14
- package/src/stories/utils/relay/mockResolvers.js +0 -299
- package/src/stories/utils/testData.js +0 -63
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +0 -96
- package/src/ui/a/AnimatedBlobs/index.js +0 -1
- package/src/ui/a/AnimatedBlobs/styles.scss +0 -87
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +0 -70
- package/src/ui/a/AnimatedGradient/index.js +0 -1
- package/src/ui/a/AnimatedGradient/styles.scss +0 -15
- package/src/ui/a/AnimatedGradient/webGIRenderer.js +0 -541
- package/src/ui/a/AppContext/Context.js +0 -3
- package/src/ui/a/AppContext/ContextProvider.jsx +0 -90
- package/src/ui/a/AppContext/index.js +0 -5
- package/src/ui/a/AppContext/useApp.js +0 -4
- package/src/ui/a/AppContext/useTheme.js +0 -43
- package/src/ui/a/BlurOverlay/BlurOverlay.jsx +0 -69
- package/src/ui/a/BlurOverlay/index.js +0 -2
- package/src/ui/a/BlurOverlay/styles.scss +0 -33
- package/src/ui/a/Charts/AreaChart/AreaChart.jsx +0 -306
- package/src/ui/a/Charts/AreaChart/index.js +0 -1
- package/src/ui/a/Charts/AreaChart/styles.scss +0 -70
- package/src/ui/a/Charts/BarChart/BarChart.jsx +0 -168
- package/src/ui/a/Charts/BarChart/index.js +0 -1
- package/src/ui/a/Charts/BarChart/styles.scss +0 -48
- package/src/ui/a/Charts/Common/CustomLegend/CustomLegend.jsx +0 -132
- package/src/ui/a/Charts/Common/CustomLegend/index.js +0 -1
- package/src/ui/a/Charts/Common/CustomLegend/styles.scss +0 -75
- package/src/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.jsx +0 -201
- package/src/ui/a/Charts/Common/CustomTooltipContent/index.js +0 -1
- package/src/ui/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
- package/src/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.jsx +0 -121
- package/src/ui/a/Charts/Common/YLabelsDropDown/index.js +0 -1
- package/src/ui/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
- package/src/ui/a/Charts/Common/index.js +0 -3
- package/src/ui/a/Charts/PieChart/PieChart.jsx +0 -163
- package/src/ui/a/Charts/PieChart/index.js +0 -1
- package/src/ui/a/Charts/PieChart/styles.scss +0 -136
- package/src/ui/a/Charts/index.js +0 -3
- package/src/ui/a/ContentTree/ContentTree.jsx +0 -88
- package/src/ui/a/ContentTree/common/Tree/Tree.jsx +0 -150
- package/src/ui/a/ContentTree/common/Tree/index.js +0 -2
- package/src/ui/a/ContentTree/common/index.js +0 -3
- package/src/ui/a/ContentTree/common/useContentTree.js +0 -83
- package/src/ui/a/ContentTree/common/useFirstVisibleNode.js +0 -59
- package/src/ui/a/ContentTree/index.js +0 -2
- package/src/ui/a/ContentTree/styles.scss +0 -56
- package/src/ui/a/Conversation/Context.js +0 -3
- package/src/ui/a/Conversation/Conversation.jsx +0 -105
- package/src/ui/a/Conversation/common/Message/Message.jsx +0 -129
- package/src/ui/a/Conversation/common/Message/index.js +0 -2
- package/src/ui/a/Conversation/common/index.js +0 -1
- package/src/ui/a/Conversation/index.js +0 -4
- package/src/ui/a/Conversation/styles.scss +0 -86
- package/src/ui/a/Conversation/useConversation.js +0 -4
- package/src/ui/a/DatePicker/DatePicker.jsx +0 -201
- package/src/ui/a/DatePicker/index.js +0 -2
- package/src/ui/a/DatePicker/styles.scss +0 -380
- package/src/ui/a/DotInfo/DotInfo.jsx +0 -101
- package/src/ui/a/DotInfo/index.js +0 -2
- package/src/ui/a/DotInfo/styles.scss +0 -20
- package/src/ui/a/Figure/Figure.jsx +0 -82
- package/src/ui/a/Figure/index.js +0 -2
- package/src/ui/a/Figure/styles.scss +0 -19
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +0 -97
- package/src/ui/a/HamburgerButton/index.js +0 -2
- package/src/ui/a/HamburgerButton/styles.scss +0 -183
- package/src/ui/a/IconList/IconList.jsx +0 -89
- package/src/ui/a/IconList/common/Item/Item.jsx +0 -81
- package/src/ui/a/IconList/common/Item/index.js +0 -2
- package/src/ui/a/IconList/common/index.js +0 -1
- package/src/ui/a/IconList/index.js +0 -2
- package/src/ui/a/IconList/styles.scss +0 -37
- package/src/ui/a/Label/Label.jsx +0 -96
- package/src/ui/a/Label/index.js +0 -2
- package/src/ui/a/Label/styles.scss +0 -35
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +0 -118
- package/src/ui/a/LoadingCircle/index.js +0 -2
- package/src/ui/a/LoadingCircle/styles.scss +0 -47
- package/src/ui/a/MetaCard/MetaCard.jsx +0 -75
- package/src/ui/a/MetaCard/index.js +0 -1
- package/src/ui/a/MetaCard/styles.scss +0 -45
- package/src/ui/a/Notification/Notification.jsx +0 -142
- package/src/ui/a/Notification/index.js +0 -1
- package/src/ui/a/Notification/styles.scss +0 -67
- package/src/ui/a/NotificationStack/NotificationStack.jsx +0 -89
- package/src/ui/a/NotificationStack/index.js +0 -1
- package/src/ui/a/NotificationStack/styles.scss +0 -23
- package/src/ui/a/People/People.jsx +0 -92
- package/src/ui/a/People/common/Person/Person.jsx +0 -99
- package/src/ui/a/People/common/Person/index.js +0 -2
- package/src/ui/a/People/common/index.js +0 -1
- package/src/ui/a/People/index.js +0 -2
- package/src/ui/a/People/styles.scss +0 -60
- package/src/ui/a/Popover/Popover.jsx +0 -155
- package/src/ui/a/Popover/index.js +0 -2
- package/src/ui/a/Popover/styles.scss +0 -34
- package/src/ui/a/ProgressBar/ProgressBar.jsx +0 -95
- package/src/ui/a/ProgressBar/index.js +0 -2
- package/src/ui/a/ProgressBar/styles.scss +0 -47
- package/src/ui/a/Quote/Quote.jsx +0 -97
- package/src/ui/a/Quote/index.js +0 -2
- package/src/ui/a/Quote/styles.scss +0 -35
- package/src/ui/a/Removable/Removable.jsx +0 -78
- package/src/ui/a/Removable/index.js +0 -2
- package/src/ui/a/Removable/styles.scss +0 -33
- package/src/ui/a/SVG/SVG.jsx +0 -183
- package/src/ui/a/SVG/common/UseSVG/UseSVG.jsx +0 -74
- package/src/ui/a/SVG/common/UseSVG/index.js +0 -2
- package/src/ui/a/SVG/common/index.js +0 -1
- package/src/ui/a/SVG/index.js +0 -2
- package/src/ui/a/SVG/styles.scss +0 -57
- package/src/ui/a/SnapScroller/SnapScroller.jsx +0 -105
- package/src/ui/a/SnapScroller/index.js +0 -2
- package/src/ui/a/SnapScroller/styles.scss +0 -77
- package/src/ui/a/Spinner/Spinner.jsx +0 -69
- package/src/ui/a/Spinner/index.js +0 -2
- package/src/ui/a/Spinner/styles.scss +0 -23
- package/src/ui/a/TextSteps/TextSteps.jsx +0 -80
- package/src/ui/a/TextSteps/index.js +0 -1
- package/src/ui/a/TextSteps/styles.scss +0 -29
- package/src/ui/a/ThroughPutIndicator/ThroughPutIndicator.jsx +0 -90
- package/src/ui/a/ThroughPutIndicator/index.js +0 -2
- package/src/ui/a/ThroughPutIndicator/styles.scss +0 -35
- package/src/ui/a/Timestamp/Timestamp.jsx +0 -166
- package/src/ui/a/Timestamp/index.js +0 -2
- package/src/ui/a/Timestamp/styles.scss +0 -7
- package/src/ui/a/Tip/Tip.jsx +0 -99
- package/src/ui/a/Tip/index.js +0 -2
- package/src/ui/a/Tip/styles.scss +0 -16
- package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +0 -99
- package/src/ui/a/ToggleSwitch/index.js +0 -2
- package/src/ui/a/ToggleSwitch/styles.scss +0 -58
- package/src/ui/a/Tooltip/Tooltip.jsx +0 -135
- package/src/ui/a/Tooltip/index.js +0 -2
- package/src/ui/a/Tooltip/styles.scss +0 -89
- package/src/ui/a/XMLEditor/XMLEditor.jsx +0 -202
- package/src/ui/a/XMLEditor/common/index.js +0 -1
- package/src/ui/a/XMLEditor/common/theme.jsx +0 -184
- package/src/ui/a/XMLEditor/index.js +0 -1
- package/src/ui/a/XMLEditor/styles.scss +0 -24
- package/src/ui/a/index.js +0 -34
- package/src/ui/b/Button/Button.jsx +0 -139
- package/src/ui/b/Button/common/Group/Group.jsx +0 -65
- package/src/ui/b/Button/common/Group/index.js +0 -1
- package/src/ui/b/Button/common/Group/styles.scss +0 -11
- package/src/ui/b/Button/common/index.js +0 -1
- package/src/ui/b/Button/index.js +0 -2
- package/src/ui/b/Button/styles.scss +0 -173
- package/src/ui/b/Card/Card.jsx +0 -88
- package/src/ui/b/Card/common/Group/Group.jsx +0 -88
- package/src/ui/b/Card/common/Group/index.js +0 -1
- package/src/ui/b/Card/common/Group/styles.scss +0 -35
- package/src/ui/b/Card/common/Section/Section.jsx +0 -70
- package/src/ui/b/Card/common/Section/index.js +0 -1
- package/src/ui/b/Card/common/index.js +0 -2
- package/src/ui/b/Card/index.js +0 -1
- package/src/ui/b/Card/styles.scss +0 -57
- package/src/ui/b/Logo/Logo.jsx +0 -150
- package/src/ui/b/Logo/index.js +0 -2
- package/src/ui/b/Logo/styles.scss +0 -11
- package/src/ui/b/Page/Context.js +0 -3
- package/src/ui/b/Page/Page.jsx +0 -127
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +0 -289
- package/src/ui/b/Page/common/PageHelmet/index.js +0 -2
- package/src/ui/b/Page/common/Section/Section.jsx +0 -83
- package/src/ui/b/Page/common/Section/index.js +0 -2
- package/src/ui/b/Page/common/index.js +0 -2
- package/src/ui/b/Page/index.js +0 -4
- package/src/ui/b/Page/styles.scss +0 -38
- package/src/ui/b/Page/usePage.js +0 -4
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +0 -136
- package/src/ui/b/SocialMediaButton/index.js +0 -2
- package/src/ui/b/SocialMediaButton/styles.scss +0 -35
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +0 -85
- package/src/ui/b/ThemeSelector/index.js +0 -2
- package/src/ui/b/ThemeSelector/styles.scss +0 -52
- package/src/ui/b/Title/Title.jsx +0 -149
- package/src/ui/b/Title/index.js +0 -2
- package/src/ui/b/index.js +0 -7
- package/src/ui/c/Modal/Modal.jsx +0 -95
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +0 -89
- package/src/ui/c/Modal/common/ModalHeader/index.js +0 -1
- package/src/ui/c/Modal/common/index.js +0 -1
- package/src/ui/c/Modal/index.js +0 -2
- package/src/ui/c/Modal/styles.scss +0 -44
- package/src/ui/c/Shortener/Shortener.jsx +0 -140
- package/src/ui/c/Shortener/index.js +0 -2
- package/src/ui/c/Shortener/styles.scss +0 -7
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +0 -117
- package/src/ui/c/SocialMediaShareButton/index.js +0 -2
- package/src/ui/c/SocialMediaShareButton/styles.scss +0 -39
- package/src/ui/c/index.js +0 -3
- package/src/ui/d/index.js +0 -1
- package/src/ui/f/FormInput/FormInput.jsx +0 -249
- package/src/ui/f/FormInput/index.js +0 -2
- package/src/ui/f/FormInput/styles.scss +0 -11
- package/src/ui/f/common/Debugger/Debugger.jsx +0 -83
- package/src/ui/f/common/Debugger/index.js +0 -2
- package/src/ui/f/common/Debugger/styles.scss +0 -12
- package/src/ui/f/common/Description/Description.jsx +0 -90
- package/src/ui/f/common/Description/index.js +0 -2
- package/src/ui/f/common/Description/styles.scss +0 -9
- package/src/ui/f/common/Label/Label.jsx +0 -94
- package/src/ui/f/common/Label/index.js +0 -2
- package/src/ui/f/common/Label/styles.scss +0 -9
- package/src/ui/f/common/index.js +0 -4
- package/src/ui/f/common/utils/index.js +0 -2
- package/src/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -23
- package/src/ui/f/common/utils/validators.js +0 -10
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +0 -141
- package/src/ui/f/fields/Checkbox/index.js +0 -2
- package/src/ui/f/fields/Checkbox/styles.scss +0 -16
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +0 -178
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +0 -127
- package/src/ui/f/fields/ChoicesInput/common/Choice/index.js +0 -2
- package/src/ui/f/fields/ChoicesInput/common/index.js +0 -1
- package/src/ui/f/fields/ChoicesInput/index.js +0 -2
- package/src/ui/f/fields/ChoicesInput/styles.scss +0 -79
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +0 -295
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.jsx +0 -292
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
- package/src/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.jsx +0 -115
- package/src/ui/f/fields/EditorInput/common/ColorPicker/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
- package/src/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.jsx +0 -50
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.jsx +0 -134
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
- package/src/ui/f/fields/EditorInput/common/StopPropagationPlugin.jsx +0 -25
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.jsx +0 -417
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
- package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +0 -16
- package/src/ui/f/fields/EditorInput/common/index.js +0 -7
- package/src/ui/f/fields/EditorInput/index.js +0 -2
- package/src/ui/f/fields/EditorInput/styles.scss +0 -240
- package/src/ui/f/fields/FileUpload/FileUpload.jsx +0 -300
- package/src/ui/f/fields/FileUpload/common/Preview/Preview.jsx +0 -198
- package/src/ui/f/fields/FileUpload/common/Preview/index.js +0 -2
- package/src/ui/f/fields/FileUpload/common/Preview/styles.scss +0 -96
- package/src/ui/f/fields/FileUpload/common/index.js +0 -2
- package/src/ui/f/fields/FileUpload/index.js +0 -3
- package/src/ui/f/fields/FileUpload/styles.scss +0 -73
- package/src/ui/f/fields/FileUpload/utils.js +0 -52
- package/src/ui/f/fields/LatexPreviewInput/LatexPreviewInput.jsx +0 -92
- package/src/ui/f/fields/LatexPreviewInput/convertLatexToHtml.jsx +0 -38
- package/src/ui/f/fields/LatexPreviewInput/index.js +0 -3
- package/src/ui/f/fields/LatexPreviewInput/styles.scss +0 -25
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +0 -185
- package/src/ui/f/fields/LinkInput/index.js +0 -2
- package/src/ui/f/fields/LinkInput/styles.scss +0 -90
- package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +0 -153
- package/src/ui/f/fields/QueryChoices/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +0 -264
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +0 -278
- package/src/ui/f/fields/QueryCombobox/common/Combobox/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/common/Menu/Menu.jsx +0 -103
- package/src/ui/f/fields/QueryCombobox/common/Menu/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +0 -402
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/common/index.js +0 -3
- package/src/ui/f/fields/QueryCombobox/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/styles.scss +0 -134
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +0 -220
- package/src/ui/f/fields/QuerySelect/index.js +0 -2
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +0 -149
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +0 -142
- package/src/ui/f/fields/RatingsInput/common/Rating/index.js +0 -2
- package/src/ui/f/fields/RatingsInput/common/index.js +0 -1
- package/src/ui/f/fields/RatingsInput/index.js +0 -2
- package/src/ui/f/fields/RatingsInput/styles.scss +0 -48
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +0 -183
- package/src/ui/f/fields/SelectInput/common/Menu/Menu.jsx +0 -104
- package/src/ui/f/fields/SelectInput/common/Menu/index.js +0 -2
- package/src/ui/f/fields/SelectInput/common/Multiple/Multiple.jsx +0 -288
- package/src/ui/f/fields/SelectInput/common/Multiple/index.js +0 -2
- package/src/ui/f/fields/SelectInput/common/Single/Single.jsx +0 -140
- package/src/ui/f/fields/SelectInput/common/Single/index.js +0 -2
- package/src/ui/f/fields/SelectInput/common/index.js +0 -3
- package/src/ui/f/fields/SelectInput/index.js +0 -2
- package/src/ui/f/fields/SelectInput/styles.scss +0 -191
- package/src/ui/f/fields/TextInput/TextInput.jsx +0 -191
- package/src/ui/f/fields/TextInput/index.js +0 -2
- package/src/ui/f/fields/TextInput/styles.scss +0 -81
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +0 -180
- package/src/ui/f/fields/TextareaInput/index.js +0 -2
- package/src/ui/f/fields/TextareaInput/styles.scss +0 -53
- package/src/ui/f/fields/ToggleInput/ToggleInput.jsx +0 -140
- package/src/ui/f/fields/ToggleInput/index.js +0 -2
- package/src/ui/f/fields/ToggleInput/styles.scss +0 -22
- package/src/ui/f/fields/index.js +0 -22
- package/src/ui/f/index.js +0 -3
- package/src/ui/form-reset.scss +0 -86
- package/src/ui/form.scss +0 -34
- package/src/ui/g/DragAndDrop/DragAndDrop.jsx +0 -125
- package/src/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.jsx +0 -93
- package/src/ui/g/DragAndDrop/common/DraggableItem/index.js +0 -2
- package/src/ui/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
- package/src/ui/g/DragAndDrop/common/index.js +0 -1
- package/src/ui/g/DragAndDrop/index.js +0 -2
- package/src/ui/g/DragAndDrop/styles.scss +0 -8
- package/src/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.jsx +0 -180
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.jsx +0 -80
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -2
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
- package/src/ui/g/ExpandableLexicalPreview/common/index.js +0 -1
- package/src/ui/g/ExpandableLexicalPreview/index.js +0 -2
- package/src/ui/g/ExpandableLexicalPreview/styles.scss +0 -33
- package/src/ui/g/FormBuilder/FormBuilder.jsx +0 -157
- package/src/ui/g/FormBuilder/common/Builder/Builder.jsx +0 -213
- package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.jsx +0 -97
- package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
- package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.jsx +0 -321
- package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
- package/src/ui/g/FormBuilder/common/Builder/common/Section/Section.jsx +0 -186
- package/src/ui/g/FormBuilder/common/Builder/common/Section/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
- package/src/ui/g/FormBuilder/common/Builder/common/index.js +0 -3
- package/src/ui/g/FormBuilder/common/Builder/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/styles.scss +0 -63
- package/src/ui/g/FormBuilder/common/Renderer/Renderer.jsx +0 -240
- package/src/ui/g/FormBuilder/common/Renderer/common/Section/Section.jsx +0 -114
- package/src/ui/g/FormBuilder/common/Renderer/common/Section/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Renderer/common/index.js +0 -1
- package/src/ui/g/FormBuilder/common/Renderer/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Renderer/styles.scss +0 -30
- package/src/ui/g/FormBuilder/common/index.js +0 -2
- package/src/ui/g/FormBuilder/index.js +0 -2
- package/src/ui/g/FormBuilder/styles.scss +0 -25
- package/src/ui/g/index.js +0 -3
- package/src/ui/index.js +0 -8
- package/src/ui/test/QueryLoader/QueryLoader.jsx +0 -41
- package/src/ui/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -68
- package/src/ui/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.jsx +0 -51
- package/src/ui/test/QueryLoader/common/PreloadedTestData/index.js +0 -2
- package/src/ui/test/QueryLoader/common/index.js +0 -1
- package/src/ui/test/QueryLoader/index.js +0 -2
- package/src/ui/test/index.js +0 -1
- package/src/ui/utils/applyCharacterLimit.js +0 -80
- package/src/ui/utils/formatting.js +0 -142
- package/src/ui/utils/hooks/index.js +0 -3
- package/src/ui/utils/hooks/useDynamicPosition.js +0 -104
- package/src/ui/utils/hooks/useOutsideClick.js +0 -23
- package/src/ui/utils/hooks/useWindowSize.js +0 -32
- package/src/ui/utils/index.js +0 -5
- package/stylelint.config.js +0 -3
- package/tests/Storyshots.test.js +0 -3
- package/tests/__snapshots__/Storyshots.test.js.snap +0 -36169
- package/tests/emptyMock.js +0 -3
- package/tests/global-setup.js +0 -3
- package/tests/mockResizeObserver.js +0 -9
- package/tests/mockTextEncoder.js +0 -7
- package/tests/staticStub.js +0 -1
- package/tests/test-setup.js +0 -25
|
@@ -0,0 +1,1039 @@
|
|
|
1
|
+
function m(e) {
|
|
2
|
+
return Array.isArray ? Array.isArray(e) : st(e) === "[object Array]";
|
|
3
|
+
}
|
|
4
|
+
function at(e) {
|
|
5
|
+
if (typeof e == "string")
|
|
6
|
+
return e;
|
|
7
|
+
let t = e + "";
|
|
8
|
+
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
9
|
+
}
|
|
10
|
+
function lt(e) {
|
|
11
|
+
return e == null ? "" : at(e);
|
|
12
|
+
}
|
|
13
|
+
function B(e) {
|
|
14
|
+
return typeof e == "string";
|
|
15
|
+
}
|
|
16
|
+
function tt(e) {
|
|
17
|
+
return typeof e == "number";
|
|
18
|
+
}
|
|
19
|
+
function ft(e) {
|
|
20
|
+
return e === !0 || e === !1 || dt(e) && st(e) == "[object Boolean]";
|
|
21
|
+
}
|
|
22
|
+
function et(e) {
|
|
23
|
+
return typeof e == "object";
|
|
24
|
+
}
|
|
25
|
+
function dt(e) {
|
|
26
|
+
return et(e) && e !== null;
|
|
27
|
+
}
|
|
28
|
+
function E(e) {
|
|
29
|
+
return e != null;
|
|
30
|
+
}
|
|
31
|
+
function P(e) {
|
|
32
|
+
return !e.trim().length;
|
|
33
|
+
}
|
|
34
|
+
function st(e) {
|
|
35
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
36
|
+
}
|
|
37
|
+
const gt = "Incorrect 'index' type", At = (e) => `Invalid value for key ${e}`, pt = (e) => `Pattern length exceeds max of ${e}.`, Et = (e) => `Missing ${e} property in key`, Ct = (e) => `Property 'weight' in key '${e}' must be a positive integer`, J = Object.prototype.hasOwnProperty;
|
|
38
|
+
class Ft {
|
|
39
|
+
constructor(t) {
|
|
40
|
+
this._keys = [], this._keyMap = {};
|
|
41
|
+
let s = 0;
|
|
42
|
+
t.forEach((n) => {
|
|
43
|
+
let r = nt(n);
|
|
44
|
+
this._keys.push(r), this._keyMap[r.id] = r, s += r.weight;
|
|
45
|
+
}), this._keys.forEach((n) => {
|
|
46
|
+
n.weight /= s;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
get(t) {
|
|
50
|
+
return this._keyMap[t];
|
|
51
|
+
}
|
|
52
|
+
keys() {
|
|
53
|
+
return this._keys;
|
|
54
|
+
}
|
|
55
|
+
toJSON() {
|
|
56
|
+
return JSON.stringify(this._keys);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function nt(e) {
|
|
60
|
+
let t = null, s = null, n = null, r = 1, i = null;
|
|
61
|
+
if (B(e) || m(e))
|
|
62
|
+
n = e, t = V(e), s = j(e);
|
|
63
|
+
else {
|
|
64
|
+
if (!J.call(e, "name"))
|
|
65
|
+
throw new Error(Et("name"));
|
|
66
|
+
const u = e.name;
|
|
67
|
+
if (n = u, J.call(e, "weight") && (r = e.weight, r <= 0))
|
|
68
|
+
throw new Error(Ct(u));
|
|
69
|
+
t = V(u), s = j(u), i = e.getFn;
|
|
70
|
+
}
|
|
71
|
+
return { path: t, id: s, weight: r, src: n, getFn: i };
|
|
72
|
+
}
|
|
73
|
+
function V(e) {
|
|
74
|
+
return m(e) ? e : e.split(".");
|
|
75
|
+
}
|
|
76
|
+
function j(e) {
|
|
77
|
+
return m(e) ? e.join(".") : e;
|
|
78
|
+
}
|
|
79
|
+
function Mt(e, t) {
|
|
80
|
+
let s = [], n = !1;
|
|
81
|
+
const r = (i, u, c) => {
|
|
82
|
+
if (E(i))
|
|
83
|
+
if (!u[c])
|
|
84
|
+
s.push(i);
|
|
85
|
+
else {
|
|
86
|
+
let o = u[c];
|
|
87
|
+
const h = i[o];
|
|
88
|
+
if (!E(h))
|
|
89
|
+
return;
|
|
90
|
+
if (c === u.length - 1 && (B(h) || tt(h) || ft(h)))
|
|
91
|
+
s.push(lt(h));
|
|
92
|
+
else if (m(h)) {
|
|
93
|
+
n = !0;
|
|
94
|
+
for (let a = 0, f = h.length; a < f; a += 1)
|
|
95
|
+
r(h[a], u, c + 1);
|
|
96
|
+
} else u.length && r(h, u, c + 1);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return r(e, B(t) ? t.split(".") : t, 0), n ? s : s[0];
|
|
100
|
+
}
|
|
101
|
+
const Bt = {
|
|
102
|
+
// Whether the matches should be included in the result set. When `true`, each record in the result
|
|
103
|
+
// set will include the indices of the matched characters.
|
|
104
|
+
// These can consequently be used for highlighting purposes.
|
|
105
|
+
includeMatches: !1,
|
|
106
|
+
// When `true`, the matching function will continue to the end of a search pattern even if
|
|
107
|
+
// a perfect match has already been located in the string.
|
|
108
|
+
findAllMatches: !1,
|
|
109
|
+
// Minimum number of characters that must be matched before a result is considered a match
|
|
110
|
+
minMatchCharLength: 1
|
|
111
|
+
}, Dt = {
|
|
112
|
+
// When `true`, the algorithm continues searching to the end of the input even if a perfect
|
|
113
|
+
// match is found before the end of the same input.
|
|
114
|
+
isCaseSensitive: !1,
|
|
115
|
+
// When `true`, the algorithm will ignore diacritics (accents) in comparisons
|
|
116
|
+
ignoreDiacritics: !1,
|
|
117
|
+
// When true, the matching function will continue to the end of a search pattern even if
|
|
118
|
+
includeScore: !1,
|
|
119
|
+
// List of properties that will be searched. This also supports nested properties.
|
|
120
|
+
keys: [],
|
|
121
|
+
// Whether to sort the result list, by score
|
|
122
|
+
shouldSort: !0,
|
|
123
|
+
// Default sort function: sort by ascending score, ascending index
|
|
124
|
+
sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
|
|
125
|
+
}, mt = {
|
|
126
|
+
// Approximately where in the text is the pattern expected to be found?
|
|
127
|
+
location: 0,
|
|
128
|
+
// At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match
|
|
129
|
+
// (of both letters and location), a threshold of '1.0' would match anything.
|
|
130
|
+
threshold: 0.6,
|
|
131
|
+
// Determines how close the match must be to the fuzzy location (specified above).
|
|
132
|
+
// An exact letter match which is 'distance' characters away from the fuzzy location
|
|
133
|
+
// would score as a complete mismatch. A distance of '0' requires the match be at
|
|
134
|
+
// the exact location specified, a threshold of '1000' would require a perfect match
|
|
135
|
+
// to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.
|
|
136
|
+
distance: 100
|
|
137
|
+
}, yt = {
|
|
138
|
+
// When `true`, it enables the use of unix-like search commands
|
|
139
|
+
useExtendedSearch: !1,
|
|
140
|
+
// The get function to use when fetching an object's properties.
|
|
141
|
+
// The default will search nested paths *ie foo.bar.baz*
|
|
142
|
+
getFn: Mt,
|
|
143
|
+
// When `true`, search will ignore `location` and `distance`, so it won't matter
|
|
144
|
+
// where in the string the pattern appears.
|
|
145
|
+
// More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
|
|
146
|
+
ignoreLocation: !1,
|
|
147
|
+
// When `true`, the calculation for the relevance score (used for sorting) will
|
|
148
|
+
// ignore the field-length norm.
|
|
149
|
+
// More info: https://fusejs.io/concepts/scoring-theory.html#field-length-norm
|
|
150
|
+
ignoreFieldNorm: !1,
|
|
151
|
+
// The weight to determine how much field length norm effects scoring.
|
|
152
|
+
fieldNormWeight: 1
|
|
153
|
+
};
|
|
154
|
+
var l = {
|
|
155
|
+
...Dt,
|
|
156
|
+
...Bt,
|
|
157
|
+
...mt,
|
|
158
|
+
...yt
|
|
159
|
+
};
|
|
160
|
+
const xt = /[^ ]+/g;
|
|
161
|
+
function _t(e = 1, t = 3) {
|
|
162
|
+
const s = /* @__PURE__ */ new Map(), n = Math.pow(10, t);
|
|
163
|
+
return {
|
|
164
|
+
get(r) {
|
|
165
|
+
const i = r.match(xt).length;
|
|
166
|
+
if (s.has(i))
|
|
167
|
+
return s.get(i);
|
|
168
|
+
const u = 1 / Math.pow(i, 0.5 * e), c = parseFloat(Math.round(u * n) / n);
|
|
169
|
+
return s.set(i, c), c;
|
|
170
|
+
},
|
|
171
|
+
clear() {
|
|
172
|
+
s.clear();
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
class Y {
|
|
177
|
+
constructor({
|
|
178
|
+
getFn: t = l.getFn,
|
|
179
|
+
fieldNormWeight: s = l.fieldNormWeight
|
|
180
|
+
} = {}) {
|
|
181
|
+
this.norm = _t(s, 3), this.getFn = t, this.isCreated = !1, this.setIndexRecords();
|
|
182
|
+
}
|
|
183
|
+
setSources(t = []) {
|
|
184
|
+
this.docs = t;
|
|
185
|
+
}
|
|
186
|
+
setIndexRecords(t = []) {
|
|
187
|
+
this.records = t;
|
|
188
|
+
}
|
|
189
|
+
setKeys(t = []) {
|
|
190
|
+
this.keys = t, this._keysMap = {}, t.forEach((s, n) => {
|
|
191
|
+
this._keysMap[s.id] = n;
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
create() {
|
|
195
|
+
this.isCreated || !this.docs.length || (this.isCreated = !0, B(this.docs[0]) ? this.docs.forEach((t, s) => {
|
|
196
|
+
this._addString(t, s);
|
|
197
|
+
}) : this.docs.forEach((t, s) => {
|
|
198
|
+
this._addObject(t, s);
|
|
199
|
+
}), this.norm.clear());
|
|
200
|
+
}
|
|
201
|
+
// Adds a doc to the end of the index
|
|
202
|
+
add(t) {
|
|
203
|
+
const s = this.size();
|
|
204
|
+
B(t) ? this._addString(t, s) : this._addObject(t, s);
|
|
205
|
+
}
|
|
206
|
+
// Removes the doc at the specified index of the index
|
|
207
|
+
removeAt(t) {
|
|
208
|
+
this.records.splice(t, 1);
|
|
209
|
+
for (let s = t, n = this.size(); s < n; s += 1)
|
|
210
|
+
this.records[s].i -= 1;
|
|
211
|
+
}
|
|
212
|
+
getValueForItemAtKeyId(t, s) {
|
|
213
|
+
return t[this._keysMap[s]];
|
|
214
|
+
}
|
|
215
|
+
size() {
|
|
216
|
+
return this.records.length;
|
|
217
|
+
}
|
|
218
|
+
_addString(t, s) {
|
|
219
|
+
if (!E(t) || P(t))
|
|
220
|
+
return;
|
|
221
|
+
let n = {
|
|
222
|
+
v: t,
|
|
223
|
+
i: s,
|
|
224
|
+
n: this.norm.get(t)
|
|
225
|
+
};
|
|
226
|
+
this.records.push(n);
|
|
227
|
+
}
|
|
228
|
+
_addObject(t, s) {
|
|
229
|
+
let n = { i: s, $: {} };
|
|
230
|
+
this.keys.forEach((r, i) => {
|
|
231
|
+
let u = r.getFn ? r.getFn(t) : this.getFn(t, r.path);
|
|
232
|
+
if (E(u)) {
|
|
233
|
+
if (m(u)) {
|
|
234
|
+
let c = [];
|
|
235
|
+
const o = [{ nestedArrIndex: -1, value: u }];
|
|
236
|
+
for (; o.length; ) {
|
|
237
|
+
const { nestedArrIndex: h, value: a } = o.pop();
|
|
238
|
+
if (E(a))
|
|
239
|
+
if (B(a) && !P(a)) {
|
|
240
|
+
let f = {
|
|
241
|
+
v: a,
|
|
242
|
+
i: h,
|
|
243
|
+
n: this.norm.get(a)
|
|
244
|
+
};
|
|
245
|
+
c.push(f);
|
|
246
|
+
} else m(a) && a.forEach((f, d) => {
|
|
247
|
+
o.push({
|
|
248
|
+
nestedArrIndex: d,
|
|
249
|
+
value: f
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
n.$[i] = c;
|
|
254
|
+
} else if (B(u) && !P(u)) {
|
|
255
|
+
let c = {
|
|
256
|
+
v: u,
|
|
257
|
+
n: this.norm.get(u)
|
|
258
|
+
};
|
|
259
|
+
n.$[i] = c;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}), this.records.push(n);
|
|
263
|
+
}
|
|
264
|
+
toJSON() {
|
|
265
|
+
return {
|
|
266
|
+
keys: this.keys,
|
|
267
|
+
records: this.records
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
function rt(e, t, { getFn: s = l.getFn, fieldNormWeight: n = l.fieldNormWeight } = {}) {
|
|
272
|
+
const r = new Y({ getFn: s, fieldNormWeight: n });
|
|
273
|
+
return r.setKeys(e.map(nt)), r.setSources(t), r.create(), r;
|
|
274
|
+
}
|
|
275
|
+
function It(e, { getFn: t = l.getFn, fieldNormWeight: s = l.fieldNormWeight } = {}) {
|
|
276
|
+
const { keys: n, records: r } = e, i = new Y({ getFn: t, fieldNormWeight: s });
|
|
277
|
+
return i.setKeys(n), i.setIndexRecords(r), i;
|
|
278
|
+
}
|
|
279
|
+
function k(e, {
|
|
280
|
+
errors: t = 0,
|
|
281
|
+
currentLocation: s = 0,
|
|
282
|
+
expectedLocation: n = 0,
|
|
283
|
+
distance: r = l.distance,
|
|
284
|
+
ignoreLocation: i = l.ignoreLocation
|
|
285
|
+
} = {}) {
|
|
286
|
+
const u = t / e.length;
|
|
287
|
+
if (i)
|
|
288
|
+
return u;
|
|
289
|
+
const c = Math.abs(n - s);
|
|
290
|
+
return r ? u + c / r : c ? 1 : u;
|
|
291
|
+
}
|
|
292
|
+
function St(e = [], t = l.minMatchCharLength) {
|
|
293
|
+
let s = [], n = -1, r = -1, i = 0;
|
|
294
|
+
for (let u = e.length; i < u; i += 1) {
|
|
295
|
+
let c = e[i];
|
|
296
|
+
c && n === -1 ? n = i : !c && n !== -1 && (r = i - 1, r - n + 1 >= t && s.push([n, r]), n = -1);
|
|
297
|
+
}
|
|
298
|
+
return e[i - 1] && i - n >= t && s.push([n, i - 1]), s;
|
|
299
|
+
}
|
|
300
|
+
const w = 32;
|
|
301
|
+
function wt(e, t, s, {
|
|
302
|
+
location: n = l.location,
|
|
303
|
+
distance: r = l.distance,
|
|
304
|
+
threshold: i = l.threshold,
|
|
305
|
+
findAllMatches: u = l.findAllMatches,
|
|
306
|
+
minMatchCharLength: c = l.minMatchCharLength,
|
|
307
|
+
includeMatches: o = l.includeMatches,
|
|
308
|
+
ignoreLocation: h = l.ignoreLocation
|
|
309
|
+
} = {}) {
|
|
310
|
+
if (t.length > w)
|
|
311
|
+
throw new Error(pt(w));
|
|
312
|
+
const a = t.length, f = e.length, d = Math.max(0, Math.min(n, f));
|
|
313
|
+
let g = i, A = d;
|
|
314
|
+
const p = c > 1 || o, F = p ? Array(f) : [];
|
|
315
|
+
let y;
|
|
316
|
+
for (; (y = e.indexOf(t, A)) > -1; ) {
|
|
317
|
+
let C = k(t, {
|
|
318
|
+
currentLocation: y,
|
|
319
|
+
expectedLocation: d,
|
|
320
|
+
distance: r,
|
|
321
|
+
ignoreLocation: h
|
|
322
|
+
});
|
|
323
|
+
if (g = Math.min(C, g), A = y + a, p) {
|
|
324
|
+
let x = 0;
|
|
325
|
+
for (; x < a; )
|
|
326
|
+
F[y + x] = 1, x += 1;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
A = -1;
|
|
330
|
+
let D = [], L = 1, S = a + f;
|
|
331
|
+
const ht = 1 << a - 1;
|
|
332
|
+
for (let C = 0; C < a; C += 1) {
|
|
333
|
+
let x = 0, _ = S;
|
|
334
|
+
for (; x < _; )
|
|
335
|
+
k(t, {
|
|
336
|
+
errors: C,
|
|
337
|
+
currentLocation: d + _,
|
|
338
|
+
expectedLocation: d,
|
|
339
|
+
distance: r,
|
|
340
|
+
ignoreLocation: h
|
|
341
|
+
}) <= g ? x = _ : S = _, _ = Math.floor((S - x) / 2 + x);
|
|
342
|
+
S = _;
|
|
343
|
+
let Q = Math.max(1, d - _ + 1), T = u ? f : Math.min(d + _, f) + a, b = Array(T + 2);
|
|
344
|
+
b[T + 1] = (1 << C) - 1;
|
|
345
|
+
for (let M = T; M >= Q; M -= 1) {
|
|
346
|
+
let O = M - 1, U = s[e.charAt(O)];
|
|
347
|
+
if (p && (F[O] = +!!U), b[M] = (b[M + 1] << 1 | 1) & U, C && (b[M] |= (D[M + 1] | D[M]) << 1 | 1 | D[M + 1]), b[M] & ht && (L = k(t, {
|
|
348
|
+
errors: C,
|
|
349
|
+
currentLocation: O,
|
|
350
|
+
expectedLocation: d,
|
|
351
|
+
distance: r,
|
|
352
|
+
ignoreLocation: h
|
|
353
|
+
}), L <= g)) {
|
|
354
|
+
if (g = L, A = O, A <= d)
|
|
355
|
+
break;
|
|
356
|
+
Q = Math.max(1, 2 * d - A);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
if (k(t, {
|
|
360
|
+
errors: C + 1,
|
|
361
|
+
currentLocation: d,
|
|
362
|
+
expectedLocation: d,
|
|
363
|
+
distance: r,
|
|
364
|
+
ignoreLocation: h
|
|
365
|
+
}) > g)
|
|
366
|
+
break;
|
|
367
|
+
D = b;
|
|
368
|
+
}
|
|
369
|
+
const v = {
|
|
370
|
+
isMatch: A >= 0,
|
|
371
|
+
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
372
|
+
score: Math.max(1e-3, L)
|
|
373
|
+
};
|
|
374
|
+
if (p) {
|
|
375
|
+
const C = St(F, c);
|
|
376
|
+
C.length ? o && (v.indices = C) : v.isMatch = !1;
|
|
377
|
+
}
|
|
378
|
+
return v;
|
|
379
|
+
}
|
|
380
|
+
function Lt(e) {
|
|
381
|
+
let t = {};
|
|
382
|
+
for (let s = 0, n = e.length; s < n; s += 1) {
|
|
383
|
+
const r = e.charAt(s);
|
|
384
|
+
t[r] = (t[r] || 0) | 1 << n - s - 1;
|
|
385
|
+
}
|
|
386
|
+
return t;
|
|
387
|
+
}
|
|
388
|
+
const $ = String.prototype.normalize ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "") : (e) => e;
|
|
389
|
+
class it {
|
|
390
|
+
constructor(t, {
|
|
391
|
+
location: s = l.location,
|
|
392
|
+
threshold: n = l.threshold,
|
|
393
|
+
distance: r = l.distance,
|
|
394
|
+
includeMatches: i = l.includeMatches,
|
|
395
|
+
findAllMatches: u = l.findAllMatches,
|
|
396
|
+
minMatchCharLength: c = l.minMatchCharLength,
|
|
397
|
+
isCaseSensitive: o = l.isCaseSensitive,
|
|
398
|
+
ignoreDiacritics: h = l.ignoreDiacritics,
|
|
399
|
+
ignoreLocation: a = l.ignoreLocation
|
|
400
|
+
} = {}) {
|
|
401
|
+
if (this.options = {
|
|
402
|
+
location: s,
|
|
403
|
+
threshold: n,
|
|
404
|
+
distance: r,
|
|
405
|
+
includeMatches: i,
|
|
406
|
+
findAllMatches: u,
|
|
407
|
+
minMatchCharLength: c,
|
|
408
|
+
isCaseSensitive: o,
|
|
409
|
+
ignoreDiacritics: h,
|
|
410
|
+
ignoreLocation: a
|
|
411
|
+
}, t = o ? t : t.toLowerCase(), t = h ? $(t) : t, this.pattern = t, this.chunks = [], !this.pattern.length)
|
|
412
|
+
return;
|
|
413
|
+
const f = (g, A) => {
|
|
414
|
+
this.chunks.push({
|
|
415
|
+
pattern: g,
|
|
416
|
+
alphabet: Lt(g),
|
|
417
|
+
startIndex: A
|
|
418
|
+
});
|
|
419
|
+
}, d = this.pattern.length;
|
|
420
|
+
if (d > w) {
|
|
421
|
+
let g = 0;
|
|
422
|
+
const A = d % w, p = d - A;
|
|
423
|
+
for (; g < p; )
|
|
424
|
+
f(this.pattern.substr(g, w), g), g += w;
|
|
425
|
+
if (A) {
|
|
426
|
+
const F = d - w;
|
|
427
|
+
f(this.pattern.substr(F), F);
|
|
428
|
+
}
|
|
429
|
+
} else
|
|
430
|
+
f(this.pattern, 0);
|
|
431
|
+
}
|
|
432
|
+
searchIn(t) {
|
|
433
|
+
const { isCaseSensitive: s, ignoreDiacritics: n, includeMatches: r } = this.options;
|
|
434
|
+
if (t = s ? t : t.toLowerCase(), t = n ? $(t) : t, this.pattern === t) {
|
|
435
|
+
let p = {
|
|
436
|
+
isMatch: !0,
|
|
437
|
+
score: 0
|
|
438
|
+
};
|
|
439
|
+
return r && (p.indices = [[0, t.length - 1]]), p;
|
|
440
|
+
}
|
|
441
|
+
const {
|
|
442
|
+
location: i,
|
|
443
|
+
distance: u,
|
|
444
|
+
threshold: c,
|
|
445
|
+
findAllMatches: o,
|
|
446
|
+
minMatchCharLength: h,
|
|
447
|
+
ignoreLocation: a
|
|
448
|
+
} = this.options;
|
|
449
|
+
let f = [], d = 0, g = !1;
|
|
450
|
+
this.chunks.forEach(({ pattern: p, alphabet: F, startIndex: y }) => {
|
|
451
|
+
const { isMatch: D, score: L, indices: S } = wt(t, p, F, {
|
|
452
|
+
location: i + y,
|
|
453
|
+
distance: u,
|
|
454
|
+
threshold: c,
|
|
455
|
+
findAllMatches: o,
|
|
456
|
+
minMatchCharLength: h,
|
|
457
|
+
includeMatches: r,
|
|
458
|
+
ignoreLocation: a
|
|
459
|
+
});
|
|
460
|
+
D && (g = !0), d += L, D && S && (f = [...f, ...S]);
|
|
461
|
+
});
|
|
462
|
+
let A = {
|
|
463
|
+
isMatch: g,
|
|
464
|
+
score: g ? d / this.chunks.length : 1
|
|
465
|
+
};
|
|
466
|
+
return g && r && (A.indices = f), A;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
class I {
|
|
470
|
+
constructor(t) {
|
|
471
|
+
this.pattern = t;
|
|
472
|
+
}
|
|
473
|
+
static isMultiMatch(t) {
|
|
474
|
+
return X(t, this.multiRegex);
|
|
475
|
+
}
|
|
476
|
+
static isSingleMatch(t) {
|
|
477
|
+
return X(t, this.singleRegex);
|
|
478
|
+
}
|
|
479
|
+
search() {
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
function X(e, t) {
|
|
483
|
+
const s = e.match(t);
|
|
484
|
+
return s ? s[1] : null;
|
|
485
|
+
}
|
|
486
|
+
class bt extends I {
|
|
487
|
+
constructor(t) {
|
|
488
|
+
super(t);
|
|
489
|
+
}
|
|
490
|
+
static get type() {
|
|
491
|
+
return "exact";
|
|
492
|
+
}
|
|
493
|
+
static get multiRegex() {
|
|
494
|
+
return /^="(.*)"$/;
|
|
495
|
+
}
|
|
496
|
+
static get singleRegex() {
|
|
497
|
+
return /^=(.*)$/;
|
|
498
|
+
}
|
|
499
|
+
search(t) {
|
|
500
|
+
const s = t === this.pattern;
|
|
501
|
+
return {
|
|
502
|
+
isMatch: s,
|
|
503
|
+
score: s ? 0 : 1,
|
|
504
|
+
indices: [0, this.pattern.length - 1]
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
class Rt extends I {
|
|
509
|
+
constructor(t) {
|
|
510
|
+
super(t);
|
|
511
|
+
}
|
|
512
|
+
static get type() {
|
|
513
|
+
return "inverse-exact";
|
|
514
|
+
}
|
|
515
|
+
static get multiRegex() {
|
|
516
|
+
return /^!"(.*)"$/;
|
|
517
|
+
}
|
|
518
|
+
static get singleRegex() {
|
|
519
|
+
return /^!(.*)$/;
|
|
520
|
+
}
|
|
521
|
+
search(t) {
|
|
522
|
+
const n = t.indexOf(this.pattern) === -1;
|
|
523
|
+
return {
|
|
524
|
+
isMatch: n,
|
|
525
|
+
score: n ? 0 : 1,
|
|
526
|
+
indices: [0, t.length - 1]
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
class Ot extends I {
|
|
531
|
+
constructor(t) {
|
|
532
|
+
super(t);
|
|
533
|
+
}
|
|
534
|
+
static get type() {
|
|
535
|
+
return "prefix-exact";
|
|
536
|
+
}
|
|
537
|
+
static get multiRegex() {
|
|
538
|
+
return /^\^"(.*)"$/;
|
|
539
|
+
}
|
|
540
|
+
static get singleRegex() {
|
|
541
|
+
return /^\^(.*)$/;
|
|
542
|
+
}
|
|
543
|
+
search(t) {
|
|
544
|
+
const s = t.startsWith(this.pattern);
|
|
545
|
+
return {
|
|
546
|
+
isMatch: s,
|
|
547
|
+
score: s ? 0 : 1,
|
|
548
|
+
indices: [0, this.pattern.length - 1]
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
class kt extends I {
|
|
553
|
+
constructor(t) {
|
|
554
|
+
super(t);
|
|
555
|
+
}
|
|
556
|
+
static get type() {
|
|
557
|
+
return "inverse-prefix-exact";
|
|
558
|
+
}
|
|
559
|
+
static get multiRegex() {
|
|
560
|
+
return /^!\^"(.*)"$/;
|
|
561
|
+
}
|
|
562
|
+
static get singleRegex() {
|
|
563
|
+
return /^!\^(.*)$/;
|
|
564
|
+
}
|
|
565
|
+
search(t) {
|
|
566
|
+
const s = !t.startsWith(this.pattern);
|
|
567
|
+
return {
|
|
568
|
+
isMatch: s,
|
|
569
|
+
score: s ? 0 : 1,
|
|
570
|
+
indices: [0, t.length - 1]
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
class $t extends I {
|
|
575
|
+
constructor(t) {
|
|
576
|
+
super(t);
|
|
577
|
+
}
|
|
578
|
+
static get type() {
|
|
579
|
+
return "suffix-exact";
|
|
580
|
+
}
|
|
581
|
+
static get multiRegex() {
|
|
582
|
+
return /^"(.*)"\$$/;
|
|
583
|
+
}
|
|
584
|
+
static get singleRegex() {
|
|
585
|
+
return /^(.*)\$$/;
|
|
586
|
+
}
|
|
587
|
+
search(t) {
|
|
588
|
+
const s = t.endsWith(this.pattern);
|
|
589
|
+
return {
|
|
590
|
+
isMatch: s,
|
|
591
|
+
score: s ? 0 : 1,
|
|
592
|
+
indices: [t.length - this.pattern.length, t.length - 1]
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
class Nt extends I {
|
|
597
|
+
constructor(t) {
|
|
598
|
+
super(t);
|
|
599
|
+
}
|
|
600
|
+
static get type() {
|
|
601
|
+
return "inverse-suffix-exact";
|
|
602
|
+
}
|
|
603
|
+
static get multiRegex() {
|
|
604
|
+
return /^!"(.*)"\$$/;
|
|
605
|
+
}
|
|
606
|
+
static get singleRegex() {
|
|
607
|
+
return /^!(.*)\$$/;
|
|
608
|
+
}
|
|
609
|
+
search(t) {
|
|
610
|
+
const s = !t.endsWith(this.pattern);
|
|
611
|
+
return {
|
|
612
|
+
isMatch: s,
|
|
613
|
+
score: s ? 0 : 1,
|
|
614
|
+
indices: [0, t.length - 1]
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
class ut extends I {
|
|
619
|
+
constructor(t, {
|
|
620
|
+
location: s = l.location,
|
|
621
|
+
threshold: n = l.threshold,
|
|
622
|
+
distance: r = l.distance,
|
|
623
|
+
includeMatches: i = l.includeMatches,
|
|
624
|
+
findAllMatches: u = l.findAllMatches,
|
|
625
|
+
minMatchCharLength: c = l.minMatchCharLength,
|
|
626
|
+
isCaseSensitive: o = l.isCaseSensitive,
|
|
627
|
+
ignoreDiacritics: h = l.ignoreDiacritics,
|
|
628
|
+
ignoreLocation: a = l.ignoreLocation
|
|
629
|
+
} = {}) {
|
|
630
|
+
super(t), this._bitapSearch = new it(t, {
|
|
631
|
+
location: s,
|
|
632
|
+
threshold: n,
|
|
633
|
+
distance: r,
|
|
634
|
+
includeMatches: i,
|
|
635
|
+
findAllMatches: u,
|
|
636
|
+
minMatchCharLength: c,
|
|
637
|
+
isCaseSensitive: o,
|
|
638
|
+
ignoreDiacritics: h,
|
|
639
|
+
ignoreLocation: a
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
static get type() {
|
|
643
|
+
return "fuzzy";
|
|
644
|
+
}
|
|
645
|
+
static get multiRegex() {
|
|
646
|
+
return /^"(.*)"$/;
|
|
647
|
+
}
|
|
648
|
+
static get singleRegex() {
|
|
649
|
+
return /^(.*)$/;
|
|
650
|
+
}
|
|
651
|
+
search(t) {
|
|
652
|
+
return this._bitapSearch.searchIn(t);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
class ct extends I {
|
|
656
|
+
constructor(t) {
|
|
657
|
+
super(t);
|
|
658
|
+
}
|
|
659
|
+
static get type() {
|
|
660
|
+
return "include";
|
|
661
|
+
}
|
|
662
|
+
static get multiRegex() {
|
|
663
|
+
return /^'"(.*)"$/;
|
|
664
|
+
}
|
|
665
|
+
static get singleRegex() {
|
|
666
|
+
return /^'(.*)$/;
|
|
667
|
+
}
|
|
668
|
+
search(t) {
|
|
669
|
+
let s = 0, n;
|
|
670
|
+
const r = [], i = this.pattern.length;
|
|
671
|
+
for (; (n = t.indexOf(this.pattern, s)) > -1; )
|
|
672
|
+
s = n + i, r.push([n, s - 1]);
|
|
673
|
+
const u = !!r.length;
|
|
674
|
+
return {
|
|
675
|
+
isMatch: u,
|
|
676
|
+
score: u ? 0 : 1,
|
|
677
|
+
indices: r
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
const K = [
|
|
682
|
+
bt,
|
|
683
|
+
ct,
|
|
684
|
+
Ot,
|
|
685
|
+
kt,
|
|
686
|
+
Nt,
|
|
687
|
+
$t,
|
|
688
|
+
Rt,
|
|
689
|
+
ut
|
|
690
|
+
], Z = K.length, vt = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Tt = "|";
|
|
691
|
+
function Pt(e, t = {}) {
|
|
692
|
+
return e.split(Tt).map((s) => {
|
|
693
|
+
let n = s.trim().split(vt).filter((i) => i && !!i.trim()), r = [];
|
|
694
|
+
for (let i = 0, u = n.length; i < u; i += 1) {
|
|
695
|
+
const c = n[i];
|
|
696
|
+
let o = !1, h = -1;
|
|
697
|
+
for (; !o && ++h < Z; ) {
|
|
698
|
+
const a = K[h];
|
|
699
|
+
let f = a.isMultiMatch(c);
|
|
700
|
+
f && (r.push(new a(f, t)), o = !0);
|
|
701
|
+
}
|
|
702
|
+
if (!o)
|
|
703
|
+
for (h = -1; ++h < Z; ) {
|
|
704
|
+
const a = K[h];
|
|
705
|
+
let f = a.isSingleMatch(c);
|
|
706
|
+
if (f) {
|
|
707
|
+
r.push(new a(f, t));
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
return r;
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
const jt = /* @__PURE__ */ new Set([ut.type, ct.type]);
|
|
716
|
+
class Kt {
|
|
717
|
+
constructor(t, {
|
|
718
|
+
isCaseSensitive: s = l.isCaseSensitive,
|
|
719
|
+
ignoreDiacritics: n = l.ignoreDiacritics,
|
|
720
|
+
includeMatches: r = l.includeMatches,
|
|
721
|
+
minMatchCharLength: i = l.minMatchCharLength,
|
|
722
|
+
ignoreLocation: u = l.ignoreLocation,
|
|
723
|
+
findAllMatches: c = l.findAllMatches,
|
|
724
|
+
location: o = l.location,
|
|
725
|
+
threshold: h = l.threshold,
|
|
726
|
+
distance: a = l.distance
|
|
727
|
+
} = {}) {
|
|
728
|
+
this.query = null, this.options = {
|
|
729
|
+
isCaseSensitive: s,
|
|
730
|
+
ignoreDiacritics: n,
|
|
731
|
+
includeMatches: r,
|
|
732
|
+
minMatchCharLength: i,
|
|
733
|
+
findAllMatches: c,
|
|
734
|
+
ignoreLocation: u,
|
|
735
|
+
location: o,
|
|
736
|
+
threshold: h,
|
|
737
|
+
distance: a
|
|
738
|
+
}, t = s ? t : t.toLowerCase(), t = n ? $(t) : t, this.pattern = t, this.query = Pt(this.pattern, this.options);
|
|
739
|
+
}
|
|
740
|
+
static condition(t, s) {
|
|
741
|
+
return s.useExtendedSearch;
|
|
742
|
+
}
|
|
743
|
+
searchIn(t) {
|
|
744
|
+
const s = this.query;
|
|
745
|
+
if (!s)
|
|
746
|
+
return {
|
|
747
|
+
isMatch: !1,
|
|
748
|
+
score: 1
|
|
749
|
+
};
|
|
750
|
+
const { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
|
|
751
|
+
t = r ? t : t.toLowerCase(), t = i ? $(t) : t;
|
|
752
|
+
let u = 0, c = [], o = 0;
|
|
753
|
+
for (let h = 0, a = s.length; h < a; h += 1) {
|
|
754
|
+
const f = s[h];
|
|
755
|
+
c.length = 0, u = 0;
|
|
756
|
+
for (let d = 0, g = f.length; d < g; d += 1) {
|
|
757
|
+
const A = f[d], { isMatch: p, indices: F, score: y } = A.search(t);
|
|
758
|
+
if (p) {
|
|
759
|
+
if (u += 1, o += y, n) {
|
|
760
|
+
const D = A.constructor.type;
|
|
761
|
+
jt.has(D) ? c = [...c, ...F] : c.push(F);
|
|
762
|
+
}
|
|
763
|
+
} else {
|
|
764
|
+
o = 0, u = 0, c.length = 0;
|
|
765
|
+
break;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if (u) {
|
|
769
|
+
let d = {
|
|
770
|
+
isMatch: !0,
|
|
771
|
+
score: o / u
|
|
772
|
+
};
|
|
773
|
+
return n && (d.indices = c), d;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
return {
|
|
777
|
+
isMatch: !1,
|
|
778
|
+
score: 1
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
const W = [];
|
|
783
|
+
function Wt(...e) {
|
|
784
|
+
W.push(...e);
|
|
785
|
+
}
|
|
786
|
+
function z(e, t) {
|
|
787
|
+
for (let s = 0, n = W.length; s < n; s += 1) {
|
|
788
|
+
let r = W[s];
|
|
789
|
+
if (r.condition(e, t))
|
|
790
|
+
return new r(e, t);
|
|
791
|
+
}
|
|
792
|
+
return new it(e, t);
|
|
793
|
+
}
|
|
794
|
+
const N = {
|
|
795
|
+
AND: "$and",
|
|
796
|
+
OR: "$or"
|
|
797
|
+
}, G = {
|
|
798
|
+
PATH: "$path",
|
|
799
|
+
PATTERN: "$val"
|
|
800
|
+
}, H = (e) => !!(e[N.AND] || e[N.OR]), zt = (e) => !!e[G.PATH], Gt = (e) => !m(e) && et(e) && !H(e), q = (e) => ({
|
|
801
|
+
[N.AND]: Object.keys(e).map((t) => ({
|
|
802
|
+
[t]: e[t]
|
|
803
|
+
}))
|
|
804
|
+
});
|
|
805
|
+
function ot(e, t, { auto: s = !0 } = {}) {
|
|
806
|
+
const n = (r) => {
|
|
807
|
+
let i = Object.keys(r);
|
|
808
|
+
const u = zt(r);
|
|
809
|
+
if (!u && i.length > 1 && !H(r))
|
|
810
|
+
return n(q(r));
|
|
811
|
+
if (Gt(r)) {
|
|
812
|
+
const o = u ? r[G.PATH] : i[0], h = u ? r[G.PATTERN] : r[o];
|
|
813
|
+
if (!B(h))
|
|
814
|
+
throw new Error(At(o));
|
|
815
|
+
const a = {
|
|
816
|
+
keyId: j(o),
|
|
817
|
+
pattern: h
|
|
818
|
+
};
|
|
819
|
+
return s && (a.searcher = z(h, t)), a;
|
|
820
|
+
}
|
|
821
|
+
let c = {
|
|
822
|
+
children: [],
|
|
823
|
+
operator: i[0]
|
|
824
|
+
};
|
|
825
|
+
return i.forEach((o) => {
|
|
826
|
+
const h = r[o];
|
|
827
|
+
m(h) && h.forEach((a) => {
|
|
828
|
+
c.children.push(n(a));
|
|
829
|
+
});
|
|
830
|
+
}), c;
|
|
831
|
+
};
|
|
832
|
+
return H(e) || (e = q(e)), n(e);
|
|
833
|
+
}
|
|
834
|
+
function Ht(e, { ignoreFieldNorm: t = l.ignoreFieldNorm }) {
|
|
835
|
+
e.forEach((s) => {
|
|
836
|
+
let n = 1;
|
|
837
|
+
s.matches.forEach(({ key: r, norm: i, score: u }) => {
|
|
838
|
+
const c = r ? r.weight : null;
|
|
839
|
+
n *= Math.pow(
|
|
840
|
+
u === 0 && c ? Number.EPSILON : u,
|
|
841
|
+
(c || 1) * (t ? 1 : i)
|
|
842
|
+
);
|
|
843
|
+
}), s.score = n;
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
function Yt(e, t) {
|
|
847
|
+
const s = e.matches;
|
|
848
|
+
t.matches = [], E(s) && s.forEach((n) => {
|
|
849
|
+
if (!E(n.indices) || !n.indices.length)
|
|
850
|
+
return;
|
|
851
|
+
const { indices: r, value: i } = n;
|
|
852
|
+
let u = {
|
|
853
|
+
indices: r,
|
|
854
|
+
value: i
|
|
855
|
+
};
|
|
856
|
+
n.key && (u.key = n.key.src), n.idx > -1 && (u.refIndex = n.idx), t.matches.push(u);
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
function Qt(e, t) {
|
|
860
|
+
t.score = e.score;
|
|
861
|
+
}
|
|
862
|
+
function Ut(e, t, {
|
|
863
|
+
includeMatches: s = l.includeMatches,
|
|
864
|
+
includeScore: n = l.includeScore
|
|
865
|
+
} = {}) {
|
|
866
|
+
const r = [];
|
|
867
|
+
return s && r.push(Yt), n && r.push(Qt), e.map((i) => {
|
|
868
|
+
const { idx: u } = i, c = {
|
|
869
|
+
item: t[u],
|
|
870
|
+
refIndex: u
|
|
871
|
+
};
|
|
872
|
+
return r.length && r.forEach((o) => {
|
|
873
|
+
o(i, c);
|
|
874
|
+
}), c;
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
class R {
|
|
878
|
+
constructor(t, s = {}, n) {
|
|
879
|
+
this.options = { ...l, ...s }, this.options.useExtendedSearch, this._keyStore = new Ft(this.options.keys), this.setCollection(t, n);
|
|
880
|
+
}
|
|
881
|
+
setCollection(t, s) {
|
|
882
|
+
if (this._docs = t, s && !(s instanceof Y))
|
|
883
|
+
throw new Error(gt);
|
|
884
|
+
this._myIndex = s || rt(this.options.keys, this._docs, {
|
|
885
|
+
getFn: this.options.getFn,
|
|
886
|
+
fieldNormWeight: this.options.fieldNormWeight
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
add(t) {
|
|
890
|
+
E(t) && (this._docs.push(t), this._myIndex.add(t));
|
|
891
|
+
}
|
|
892
|
+
remove(t = () => !1) {
|
|
893
|
+
const s = [];
|
|
894
|
+
for (let n = 0, r = this._docs.length; n < r; n += 1) {
|
|
895
|
+
const i = this._docs[n];
|
|
896
|
+
t(i, n) && (this.removeAt(n), n -= 1, r -= 1, s.push(i));
|
|
897
|
+
}
|
|
898
|
+
return s;
|
|
899
|
+
}
|
|
900
|
+
removeAt(t) {
|
|
901
|
+
this._docs.splice(t, 1), this._myIndex.removeAt(t);
|
|
902
|
+
}
|
|
903
|
+
getIndex() {
|
|
904
|
+
return this._myIndex;
|
|
905
|
+
}
|
|
906
|
+
search(t, { limit: s = -1 } = {}) {
|
|
907
|
+
const {
|
|
908
|
+
includeMatches: n,
|
|
909
|
+
includeScore: r,
|
|
910
|
+
shouldSort: i,
|
|
911
|
+
sortFn: u,
|
|
912
|
+
ignoreFieldNorm: c
|
|
913
|
+
} = this.options;
|
|
914
|
+
let o = B(t) ? B(this._docs[0]) ? this._searchStringList(t) : this._searchObjectList(t) : this._searchLogical(t);
|
|
915
|
+
return Ht(o, { ignoreFieldNorm: c }), i && o.sort(u), tt(s) && s > -1 && (o = o.slice(0, s)), Ut(o, this._docs, {
|
|
916
|
+
includeMatches: n,
|
|
917
|
+
includeScore: r
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
_searchStringList(t) {
|
|
921
|
+
const s = z(t, this.options), { records: n } = this._myIndex, r = [];
|
|
922
|
+
return n.forEach(({ v: i, i: u, n: c }) => {
|
|
923
|
+
if (!E(i))
|
|
924
|
+
return;
|
|
925
|
+
const { isMatch: o, score: h, indices: a } = s.searchIn(i);
|
|
926
|
+
o && r.push({
|
|
927
|
+
item: i,
|
|
928
|
+
idx: u,
|
|
929
|
+
matches: [{ score: h, value: i, norm: c, indices: a }]
|
|
930
|
+
});
|
|
931
|
+
}), r;
|
|
932
|
+
}
|
|
933
|
+
_searchLogical(t) {
|
|
934
|
+
const s = ot(t, this.options), n = (c, o, h) => {
|
|
935
|
+
if (!c.children) {
|
|
936
|
+
const { keyId: f, searcher: d } = c, g = this._findMatches({
|
|
937
|
+
key: this._keyStore.get(f),
|
|
938
|
+
value: this._myIndex.getValueForItemAtKeyId(o, f),
|
|
939
|
+
searcher: d
|
|
940
|
+
});
|
|
941
|
+
return g && g.length ? [
|
|
942
|
+
{
|
|
943
|
+
idx: h,
|
|
944
|
+
item: o,
|
|
945
|
+
matches: g
|
|
946
|
+
}
|
|
947
|
+
] : [];
|
|
948
|
+
}
|
|
949
|
+
const a = [];
|
|
950
|
+
for (let f = 0, d = c.children.length; f < d; f += 1) {
|
|
951
|
+
const g = c.children[f], A = n(g, o, h);
|
|
952
|
+
if (A.length)
|
|
953
|
+
a.push(...A);
|
|
954
|
+
else if (c.operator === N.AND)
|
|
955
|
+
return [];
|
|
956
|
+
}
|
|
957
|
+
return a;
|
|
958
|
+
}, r = this._myIndex.records, i = {}, u = [];
|
|
959
|
+
return r.forEach(({ $: c, i: o }) => {
|
|
960
|
+
if (E(c)) {
|
|
961
|
+
let h = n(s, c, o);
|
|
962
|
+
h.length && (i[o] || (i[o] = { idx: o, item: c, matches: [] }, u.push(i[o])), h.forEach(({ matches: a }) => {
|
|
963
|
+
i[o].matches.push(...a);
|
|
964
|
+
}));
|
|
965
|
+
}
|
|
966
|
+
}), u;
|
|
967
|
+
}
|
|
968
|
+
_searchObjectList(t) {
|
|
969
|
+
const s = z(t, this.options), { keys: n, records: r } = this._myIndex, i = [];
|
|
970
|
+
return r.forEach(({ $: u, i: c }) => {
|
|
971
|
+
if (!E(u))
|
|
972
|
+
return;
|
|
973
|
+
let o = [];
|
|
974
|
+
n.forEach((h, a) => {
|
|
975
|
+
o.push(
|
|
976
|
+
...this._findMatches({
|
|
977
|
+
key: h,
|
|
978
|
+
value: u[a],
|
|
979
|
+
searcher: s
|
|
980
|
+
})
|
|
981
|
+
);
|
|
982
|
+
}), o.length && i.push({
|
|
983
|
+
idx: c,
|
|
984
|
+
item: u,
|
|
985
|
+
matches: o
|
|
986
|
+
});
|
|
987
|
+
}), i;
|
|
988
|
+
}
|
|
989
|
+
_findMatches({ key: t, value: s, searcher: n }) {
|
|
990
|
+
if (!E(s))
|
|
991
|
+
return [];
|
|
992
|
+
let r = [];
|
|
993
|
+
if (m(s))
|
|
994
|
+
s.forEach(({ v: i, i: u, n: c }) => {
|
|
995
|
+
if (!E(i))
|
|
996
|
+
return;
|
|
997
|
+
const { isMatch: o, score: h, indices: a } = n.searchIn(i);
|
|
998
|
+
o && r.push({
|
|
999
|
+
score: h,
|
|
1000
|
+
key: t,
|
|
1001
|
+
value: i,
|
|
1002
|
+
idx: u,
|
|
1003
|
+
norm: c,
|
|
1004
|
+
indices: a
|
|
1005
|
+
});
|
|
1006
|
+
});
|
|
1007
|
+
else {
|
|
1008
|
+
const { v: i, n: u } = s, { isMatch: c, score: o, indices: h } = n.searchIn(i);
|
|
1009
|
+
c && r.push({ score: o, key: t, value: i, norm: u, indices: h });
|
|
1010
|
+
}
|
|
1011
|
+
return r;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
R.version = "7.1.0";
|
|
1015
|
+
R.createIndex = rt;
|
|
1016
|
+
R.parseIndex = It;
|
|
1017
|
+
R.config = l;
|
|
1018
|
+
R.parseQuery = ot;
|
|
1019
|
+
Wt(Kt);
|
|
1020
|
+
const Jt = {
|
|
1021
|
+
findAllMatches: !0,
|
|
1022
|
+
keys: ["label"]
|
|
1023
|
+
}, Xt = ({
|
|
1024
|
+
items: e,
|
|
1025
|
+
inputValue: t,
|
|
1026
|
+
setOptions: s,
|
|
1027
|
+
minLength: n
|
|
1028
|
+
}) => {
|
|
1029
|
+
new R(e, Jt).search(t).length === 0 && t.length > n && s((u) => [
|
|
1030
|
+
...u,
|
|
1031
|
+
{
|
|
1032
|
+
label: `${t} (Create new)`,
|
|
1033
|
+
value: t
|
|
1034
|
+
}
|
|
1035
|
+
]);
|
|
1036
|
+
};
|
|
1037
|
+
export {
|
|
1038
|
+
Xt as lookUpInputValueFromFetchedOptions
|
|
1039
|
+
};
|