funda-ui 4.7.624 → 4.7.625
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 +2 -116
- package/package.json +1 -591
- package/.gitattributes +0 -2
- package/README_PUBLISH.md +0 -328
- package/logo.png +0 -0
- package/preview.png +0 -0
- package/publish/LICENSE +0 -21
- package/publish/README.md +0 -328
- package/publish/lib/cjs/Accordion/index.d.ts +0 -2
- package/publish/lib/cjs/Accordion/index.js +0 -667
- package/publish/lib/cjs/BackToTop/index.d.ts +0 -17
- package/publish/lib/cjs/BackToTop/index.js +0 -904
- package/publish/lib/cjs/CascadingSelect/index.d.ts +0 -80
- package/publish/lib/cjs/CascadingSelect/index.js +0 -3383
- package/publish/lib/cjs/CascadingSelectE2E/index.d.ts +0 -91
- package/publish/lib/cjs/CascadingSelectE2E/index.js +0 -3988
- package/publish/lib/cjs/Chatbox/index.d.ts +0 -101
- package/publish/lib/cjs/Chatbox/index.js +0 -7037
- package/publish/lib/cjs/Checkbox/index.d.ts +0 -28
- package/publish/lib/cjs/Checkbox/index.js +0 -673
- package/publish/lib/cjs/ColorPicker/index.d.ts +0 -27
- package/publish/lib/cjs/ColorPicker/index.js +0 -662
- package/publish/lib/cjs/Date/index.d.ts +0 -70
- package/publish/lib/cjs/Date/index.js +0 -6368
- package/publish/lib/cjs/DigitalClock/index.d.ts +0 -7
- package/publish/lib/cjs/DigitalClock/index.js +0 -402
- package/publish/lib/cjs/DragDropList/index.d.ts +0 -45
- package/publish/lib/cjs/DragDropList/index.js +0 -1586
- package/publish/lib/cjs/DropdownMenu/index.d.ts +0 -38
- package/publish/lib/cjs/DropdownMenu/index.js +0 -1507
- package/publish/lib/cjs/DynamicFields/index.d.ts +0 -40
- package/publish/lib/cjs/DynamicFields/index.js +0 -818
- package/publish/lib/cjs/EventCalendar/index.d.ts +0 -61
- package/publish/lib/cjs/EventCalendar/index.js +0 -3789
- package/publish/lib/cjs/EventCalendarTimeline/index.d.ts +0 -100
- package/publish/lib/cjs/EventCalendarTimeline/index.js +0 -6141
- package/publish/lib/cjs/File/index.d.ts +0 -40
- package/publish/lib/cjs/File/index.js +0 -1751
- package/publish/lib/cjs/HorizontalScrollContent/index.d.ts +0 -14
- package/publish/lib/cjs/HorizontalScrollContent/index.js +0 -426
- package/publish/lib/cjs/Input/index.d.ts +0 -59
- package/publish/lib/cjs/Input/index.js +0 -1486
- package/publish/lib/cjs/LiveSearch/index.d.ts +0 -70
- package/publish/lib/cjs/LiveSearch/index.js +0 -4180
- package/publish/lib/cjs/MasonryLayout/index.d.ts +0 -14
- package/publish/lib/cjs/MasonryLayout/index.js +0 -689
- package/publish/lib/cjs/ModalDialog/index.d.ts +0 -83
- package/publish/lib/cjs/ModalDialog/index.js +0 -1719
- package/publish/lib/cjs/ModeSwitch/index.d.ts +0 -17
- package/publish/lib/cjs/ModeSwitch/index.js +0 -202
- package/publish/lib/cjs/MultilevelDropdownMenu/index.d.ts +0 -20
- package/publish/lib/cjs/MultilevelDropdownMenu/index.js +0 -930
- package/publish/lib/cjs/MultipleCheckboxes/index.d.ts +0 -66
- package/publish/lib/cjs/MultipleCheckboxes/index.js +0 -2337
- package/publish/lib/cjs/MultipleSelect/index.d.ts +0 -65
- package/publish/lib/cjs/MultipleSelect/index.js +0 -4197
- package/publish/lib/cjs/NativeSelect/index.d.ts +0 -37
- package/publish/lib/cjs/NativeSelect/index.js +0 -2052
- package/publish/lib/cjs/NumberInput/index.d.ts +0 -40
- package/publish/lib/cjs/NumberInput/index.js +0 -1191
- package/publish/lib/cjs/Pagination/index.d.ts +0 -51
- package/publish/lib/cjs/Pagination/index.js +0 -612
- package/publish/lib/cjs/Radio/index.d.ts +0 -45
- package/publish/lib/cjs/Radio/index.js +0 -1838
- package/publish/lib/cjs/RangeSlider/index.d.ts +0 -22
- package/publish/lib/cjs/RangeSlider/index.js +0 -2696
- package/publish/lib/cjs/Refresher/index.d.ts +0 -22
- package/publish/lib/cjs/Refresher/index.js +0 -564
- package/publish/lib/cjs/RootPortal/index.d.ts +0 -9
- package/publish/lib/cjs/RootPortal/index.js +0 -148
- package/publish/lib/cjs/ScrollReveal/index.d.ts +0 -21
- package/publish/lib/cjs/ScrollReveal/index.js +0 -401
- package/publish/lib/cjs/Scrollbar/index.d.ts +0 -17
- package/publish/lib/cjs/Scrollbar/index.js +0 -1107
- package/publish/lib/cjs/SearchBar/index.d.ts +0 -41
- package/publish/lib/cjs/SearchBar/index.js +0 -701
- package/publish/lib/cjs/Select/index.d.ts +0 -107
- package/publish/lib/cjs/Select/index.js +0 -6540
- package/publish/lib/cjs/ShowMoreLess/index.d.ts +0 -36
- package/publish/lib/cjs/ShowMoreLess/index.js +0 -387
- package/publish/lib/cjs/SplitterPanel/index.d.ts +0 -20
- package/publish/lib/cjs/SplitterPanel/index.js +0 -800
- package/publish/lib/cjs/Stepper/index.d.ts +0 -26
- package/publish/lib/cjs/Stepper/index.js +0 -568
- package/publish/lib/cjs/Switch/index.d.ts +0 -25
- package/publish/lib/cjs/Switch/index.js +0 -630
- package/publish/lib/cjs/Table/index.d.ts +0 -12
- package/publish/lib/cjs/Table/index.js +0 -2311
- package/publish/lib/cjs/Tabs/index.d.ts +0 -3
- package/publish/lib/cjs/Tabs/index.js +0 -771
- package/publish/lib/cjs/TagInput/index.d.ts +0 -37
- package/publish/lib/cjs/TagInput/index.js +0 -1227
- package/publish/lib/cjs/Textarea/index.d.ts +0 -50
- package/publish/lib/cjs/Textarea/index.js +0 -1795
- package/publish/lib/cjs/Toast/index.d.ts +0 -3
- package/publish/lib/cjs/Toast/index.js +0 -1345
- package/publish/lib/cjs/Tooltip/index.d.ts +0 -38
- package/publish/lib/cjs/Tooltip/index.js +0 -1778
- package/publish/lib/cjs/Tree/index.d.ts +0 -78
- package/publish/lib/cjs/Tree/index.js +0 -2330
- package/publish/lib/cjs/Utils/anim.d.ts +0 -11
- package/publish/lib/cjs/Utils/anim.js +0 -846
- package/publish/lib/cjs/Utils/bodyScrollLock.d.ts +0 -8
- package/publish/lib/cjs/Utils/bodyScrollLock.js +0 -311
- package/publish/lib/cjs/Utils/buffer.d.ts +0 -67
- package/publish/lib/cjs/Utils/buffer.js +0 -343
- package/publish/lib/cjs/Utils/cls.d.ts +0 -15
- package/publish/lib/cjs/Utils/cls.js +0 -124
- package/publish/lib/cjs/Utils/convert.d.ts +0 -25
- package/publish/lib/cjs/Utils/convert.js +0 -109
- package/publish/lib/cjs/Utils/date.d.ts +0 -227
- package/publish/lib/cjs/Utils/date.js +0 -587
- package/publish/lib/cjs/Utils/dom.d.ts +0 -13
- package/publish/lib/cjs/Utils/dom.js +0 -215
- package/publish/lib/cjs/Utils/easing.d.ts +0 -29
- package/publish/lib/cjs/Utils/easing.js +0 -221
- package/publish/lib/cjs/Utils/extract.d.ts +0 -66
- package/publish/lib/cjs/Utils/extract.js +0 -195
- package/publish/lib/cjs/Utils/format-string.d.ts +0 -65
- package/publish/lib/cjs/Utils/format-string.js +0 -167
- package/publish/lib/cjs/Utils/formdata.d.ts +0 -13
- package/publish/lib/cjs/Utils/formdata.js +0 -131
- package/publish/lib/cjs/Utils/getElementProperty.d.ts +0 -52
- package/publish/lib/cjs/Utils/getElementProperty.js +0 -189
- package/publish/lib/cjs/Utils/guid.d.ts +0 -7
- package/publish/lib/cjs/Utils/guid.js +0 -67
- package/publish/lib/cjs/Utils/initDefaultOptions.d.ts +0 -10
- package/publish/lib/cjs/Utils/initDefaultOptions.js +0 -607
- package/publish/lib/cjs/Utils/inputsCalculation.d.ts +0 -28
- package/publish/lib/cjs/Utils/inputsCalculation.js +0 -188
- package/publish/lib/cjs/Utils/math.d.ts +0 -77
- package/publish/lib/cjs/Utils/math.js +0 -305
- package/publish/lib/cjs/Utils/object.d.ts +0 -18
- package/publish/lib/cjs/Utils/object.js +0 -120
- package/publish/lib/cjs/Utils/os.d.ts +0 -2
- package/publish/lib/cjs/Utils/os.js +0 -104
- package/publish/lib/cjs/Utils/performance.d.ts +0 -3
- package/publish/lib/cjs/Utils/performance.js +0 -94
- package/publish/lib/cjs/Utils/sanitize.d.ts +0 -14
- package/publish/lib/cjs/Utils/sanitize.js +0 -87
- package/publish/lib/cjs/Utils/time.d.ts +0 -40
- package/publish/lib/cjs/Utils/time.js +0 -177
- package/publish/lib/cjs/Utils/tree.d.ts +0 -40
- package/publish/lib/cjs/Utils/tree.js +0 -195
- package/publish/lib/cjs/Utils/useAutosizeTextArea.d.ts +0 -10
- package/publish/lib/cjs/Utils/useAutosizeTextArea.js +0 -231
- package/publish/lib/cjs/Utils/useBoundedDrag.d.ts +0 -125
- package/publish/lib/cjs/Utils/useBoundedDrag.js +0 -380
- package/publish/lib/cjs/Utils/useClickOutside.d.ts +0 -33
- package/publish/lib/cjs/Utils/useClickOutside.js +0 -166
- package/publish/lib/cjs/Utils/useComId.d.ts +0 -6
- package/publish/lib/cjs/Utils/useComId.js +0 -114
- package/publish/lib/cjs/Utils/useDebounce.d.ts +0 -20
- package/publish/lib/cjs/Utils/useDebounce.js +0 -138
- package/publish/lib/cjs/Utils/useDragDropPosition.d.ts +0 -166
- package/publish/lib/cjs/Utils/useDragDropPosition.js +0 -453
- package/publish/lib/cjs/Utils/useDraggable.d.ts +0 -62
- package/publish/lib/cjs/Utils/useDraggable.js +0 -348
- package/publish/lib/cjs/Utils/useHistoryTracker.d.ts +0 -166
- package/publish/lib/cjs/Utils/useHistoryTracker.js +0 -649
- package/publish/lib/cjs/Utils/useInterval.d.ts +0 -5
- package/publish/lib/cjs/Utils/useInterval.js +0 -168
- package/publish/lib/cjs/Utils/useIsMobile.d.ts +0 -2
- package/publish/lib/cjs/Utils/useIsMobile.js +0 -232
- package/publish/lib/cjs/Utils/useKeyPress.d.ts +0 -44
- package/publish/lib/cjs/Utils/useKeyPress.js +0 -200
- package/publish/lib/cjs/Utils/useSessionStorageListener.d.ts +0 -2
- package/publish/lib/cjs/Utils/useSessionStorageListener.js +0 -157
- package/publish/lib/cjs/Utils/useStreamController.d.ts +0 -71
- package/publish/lib/cjs/Utils/useStreamController.js +0 -494
- package/publish/lib/cjs/Utils/useThrottle.d.ts +0 -2
- package/publish/lib/cjs/Utils/useThrottle.js +0 -136
- package/publish/lib/cjs/Utils/useWindowScroll.d.ts +0 -12
- package/publish/lib/cjs/Utils/useWindowScroll.js +0 -217
- package/publish/lib/cjs/Utils/validate.d.ts +0 -53
- package/publish/lib/cjs/Utils/validate.js +0 -536
- package/publish/lib/cjs/Utils/viewport.d.ts +0 -7
- package/publish/lib/cjs/Utils/viewport.js +0 -64
- package/publish/lib/cjs/index.d.ts +0 -49
- package/publish/lib/cjs/index.js +0 -50
- package/publish/lib/css/BackToTop/index.css +0 -34
- package/publish/lib/css/CascadingSelect/index.css +0 -245
- package/publish/lib/css/CascadingSelectE2E/index.css +0 -245
- package/publish/lib/css/Chatbox/index.css +0 -774
- package/publish/lib/css/ColorPicker/index.css +0 -58
- package/publish/lib/css/Date/index.css +0 -434
- package/publish/lib/css/DragDropList/index.css +0 -188
- package/publish/lib/css/DropdownMenu/index.css +0 -151
- package/publish/lib/css/EventCalendar/index.css +0 -300
- package/publish/lib/css/EventCalendarTimeline/index.css +0 -694
- package/publish/lib/css/HorizontalScrollContent/index.css +0 -70
- package/publish/lib/css/LiveSearch/index.css +0 -88
- package/publish/lib/css/MultilevelDropdownMenu/index.css +0 -38
- package/publish/lib/css/MultipleSelect/index.css +0 -313
- package/publish/lib/css/RangeSlider/index.css +0 -150
- package/publish/lib/css/Scrollbar/index.css +0 -176
- package/publish/lib/css/Select/index.css +0 -434
- package/publish/lib/css/ShowMoreLess/index.css +0 -23
- package/publish/lib/css/SplitterPanel/index.css +0 -63
- package/publish/lib/css/Stepper/index.css +0 -250
- package/publish/lib/css/Table/index.css +0 -584
- package/publish/lib/css/TagInput/index.css +0 -91
- package/publish/lib/css/Toast/index.css +0 -149
- package/publish/lib/css/Tooltip/index.css +0 -198
- package/publish/lib/css/Tree/index.css +0 -237
- package/publish/lib/esm/Accordion/Accordion.tsx +0 -185
- package/publish/lib/esm/Accordion/AccordionItem.tsx +0 -248
- package/publish/lib/esm/Accordion/index.tsx +0 -2
- package/publish/lib/esm/BackToTop/index.scss +0 -47
- package/publish/lib/esm/BackToTop/index.tsx +0 -177
- package/publish/lib/esm/CascadingSelect/Group.tsx +0 -83
- package/publish/lib/esm/CascadingSelect/index.scss +0 -330
- package/publish/lib/esm/CascadingSelect/index.tsx +0 -1397
- package/publish/lib/esm/CascadingSelectE2E/Group.tsx +0 -87
- package/publish/lib/esm/CascadingSelectE2E/index.scss +0 -333
- package/publish/lib/esm/CascadingSelectE2E/index.tsx +0 -1684
- package/publish/lib/esm/Chatbox/PureLoader.tsx +0 -47
- package/publish/lib/esm/Chatbox/TypingEffect.tsx +0 -56
- package/publish/lib/esm/Chatbox/index.scss +0 -966
- package/publish/lib/esm/Chatbox/index.tsx +0 -1742
- package/publish/lib/esm/Chatbox/utils/func.ts +0 -180
- package/publish/lib/esm/Checkbox/index.tsx +0 -206
- package/publish/lib/esm/ColorPicker/index.scss +0 -91
- package/publish/lib/esm/ColorPicker/index.tsx +0 -204
- package/publish/lib/esm/Date/Calendar.tsx +0 -723
- package/publish/lib/esm/Date/index.scss +0 -567
- package/publish/lib/esm/Date/index.tsx +0 -1797
- package/publish/lib/esm/Date/localization/en_US.js +0 -13
- package/publish/lib/esm/Date/localization/zh_CN.js +0 -12
- package/publish/lib/esm/DigitalClock/index.tsx +0 -74
- package/publish/lib/esm/DragDropList/index.scss +0 -245
- package/publish/lib/esm/DragDropList/index.tsx +0 -504
- package/publish/lib/esm/DropdownMenu/Option.tsx +0 -55
- package/publish/lib/esm/DropdownMenu/index.scss +0 -205
- package/publish/lib/esm/DropdownMenu/index.tsx +0 -378
- package/publish/lib/esm/DynamicFields/index.tsx +0 -409
- package/publish/lib/esm/EventCalendar/index.scss +0 -407
- package/publish/lib/esm/EventCalendar/index.tsx +0 -1005
- package/publish/lib/esm/EventCalendarTimeline/index.scss +0 -926
- package/publish/lib/esm/EventCalendarTimeline/index.tsx +0 -2686
- package/publish/lib/esm/File/index.tsx +0 -477
- package/publish/lib/esm/HorizontalScrollContent/index.scss +0 -87
- package/publish/lib/esm/HorizontalScrollContent/index.tsx +0 -171
- package/publish/lib/esm/Input/index.tsx +0 -641
- package/publish/lib/esm/LiveSearch/index.scss +0 -129
- package/publish/lib/esm/LiveSearch/index.tsx +0 -1058
- package/publish/lib/esm/MasonryLayout/index.tsx +0 -326
- package/publish/lib/esm/ModalDialog/index.tsx +0 -572
- package/publish/lib/esm/ModeSwitch/index.tsx +0 -82
- package/publish/lib/esm/MultilevelDropdownMenu/ItemList.tsx +0 -265
- package/publish/lib/esm/MultilevelDropdownMenu/index.scss +0 -79
- package/publish/lib/esm/MultilevelDropdownMenu/index.tsx +0 -77
- package/publish/lib/esm/MultipleCheckboxes/index.tsx +0 -849
- package/publish/lib/esm/MultipleSelect/index.scss +0 -398
- package/publish/lib/esm/MultipleSelect/index.tsx +0 -769
- package/publish/lib/esm/MultipleSelect/utils/func.ts +0 -63
- package/publish/lib/esm/NativeSelect/index.tsx +0 -396
- package/publish/lib/esm/NativeSelect/utils/func.ts +0 -51
- package/publish/lib/esm/NumberInput/index.tsx +0 -425
- package/publish/lib/esm/Pagination/index.tsx +0 -286
- package/publish/lib/esm/Pagination/pagination-navigators.tsx +0 -60
- package/publish/lib/esm/Radio/index.tsx +0 -694
- package/publish/lib/esm/RangeSlider/index.scss +0 -186
- package/publish/lib/esm/RangeSlider/index.tsx +0 -241
- package/publish/lib/esm/Refresher/index.tsx +0 -121
- package/publish/lib/esm/RootPortal/index.tsx +0 -59
- package/publish/lib/esm/ScrollReveal/index.tsx +0 -148
- package/publish/lib/esm/Scrollbar/index.scss +0 -221
- package/publish/lib/esm/Scrollbar/index.tsx +0 -561
- package/publish/lib/esm/SearchBar/index.tsx +0 -252
- package/publish/lib/esm/Select/index.scss +0 -639
- package/publish/lib/esm/Select/index.tsx +0 -3104
- package/publish/lib/esm/Select/utils/func.ts +0 -98
- package/publish/lib/esm/ShowMoreLess/index.scss +0 -27
- package/publish/lib/esm/ShowMoreLess/index.tsx +0 -145
- package/publish/lib/esm/SplitterPanel/index.scss +0 -82
- package/publish/lib/esm/SplitterPanel/index.tsx +0 -174
- package/publish/lib/esm/Stepper/index.scss +0 -315
- package/publish/lib/esm/Stepper/index.tsx +0 -325
- package/publish/lib/esm/Switch/index.tsx +0 -149
- package/publish/lib/esm/Table/Table.tsx +0 -351
- package/publish/lib/esm/Table/TableBody.tsx +0 -41
- package/publish/lib/esm/Table/TableCaption.tsx +0 -34
- package/publish/lib/esm/Table/TableCell.tsx +0 -126
- package/publish/lib/esm/Table/TableColgroup.tsx +0 -38
- package/publish/lib/esm/Table/TableContext.tsx +0 -26
- package/publish/lib/esm/Table/TableFoot.tsx +0 -28
- package/publish/lib/esm/Table/TableHead.tsx +0 -28
- package/publish/lib/esm/Table/TableRow.tsx +0 -76
- package/publish/lib/esm/Table/index.scss +0 -418
- package/publish/lib/esm/Table/index.tsx +0 -14
- package/publish/lib/esm/Table/utils/DragHandleSprite.tsx +0 -46
- package/publish/lib/esm/Table/utils/SortSprite.tsx +0 -63
- package/publish/lib/esm/Table/utils/TableFilter.tsx +0 -56
- package/publish/lib/esm/Table/utils/ToggleSelection.tsx +0 -255
- package/publish/lib/esm/Table/utils/func.ts +0 -182
- package/publish/lib/esm/Table/utils/hooks/useTableDraggable.tsx +0 -342
- package/publish/lib/esm/Table/utils/hooks/useTableKeyPress.tsx +0 -255
- package/publish/lib/esm/Table/utils/hooks/useTableResponsive.tsx +0 -92
- package/publish/lib/esm/Table/utils/hooks/useTableSort.tsx +0 -187
- package/publish/lib/esm/Tabs/TabList.tsx +0 -50
- package/publish/lib/esm/Tabs/TabPanel.tsx +0 -44
- package/publish/lib/esm/Tabs/Tabs.tsx +0 -282
- package/publish/lib/esm/Tabs/index.tsx +0 -3
- package/publish/lib/esm/TagInput/index.scss +0 -126
- package/publish/lib/esm/TagInput/index.tsx +0 -379
- package/publish/lib/esm/Textarea/index.tsx +0 -621
- package/publish/lib/esm/Toast/Item.tsx +0 -165
- package/publish/lib/esm/Toast/Toast.tsx +0 -391
- package/publish/lib/esm/Toast/ToastContext.tsx +0 -104
- package/publish/lib/esm/Toast/__toast.vanilla.js +0 -422
- package/publish/lib/esm/Toast/index.scss +0 -197
- package/publish/lib/esm/Toast/index.tsx +0 -3
- package/publish/lib/esm/Toast/types.ts +0 -60
- package/publish/lib/esm/Toast/useToast.tsx +0 -72
- package/publish/lib/esm/Tooltip/index.scss +0 -272
- package/publish/lib/esm/Tooltip/index.tsx +0 -416
- package/publish/lib/esm/Tree/TreeList.tsx +0 -600
- package/publish/lib/esm/Tree/index.scss +0 -384
- package/publish/lib/esm/Tree/index.tsx +0 -661
- package/publish/lib/esm/Tree/init-height.tsx +0 -40
- package/publish/lib/esm/Tree/utils/func.ts +0 -15
- package/publish/lib/esm/Utils/hooks/useAutosizeTextArea.tsx +0 -131
- package/publish/lib/esm/Utils/hooks/useBoundedDrag.tsx +0 -301
- package/publish/lib/esm/Utils/hooks/useClickOutside.tsx +0 -69
- package/publish/lib/esm/Utils/hooks/useComId.tsx +0 -13
- package/publish/lib/esm/Utils/hooks/useDebounce.tsx +0 -40
- package/publish/lib/esm/Utils/hooks/useDragDropPosition.tsx +0 -417
- package/publish/lib/esm/Utils/hooks/useDraggable.tsx +0 -265
- package/publish/lib/esm/Utils/hooks/useHistoryTracker.tsx +0 -554
- package/publish/lib/esm/Utils/hooks/useInterval.tsx +0 -74
- package/publish/lib/esm/Utils/hooks/useIsMobile.tsx +0 -139
- package/publish/lib/esm/Utils/hooks/useKeyPress.tsx +0 -104
- package/publish/lib/esm/Utils/hooks/useSessionStorageListener.tsx +0 -45
- package/publish/lib/esm/Utils/hooks/useStreamController.tsx +0 -277
- package/publish/lib/esm/Utils/hooks/useThrottle.tsx +0 -39
- package/publish/lib/esm/Utils/hooks/useWindowScroll.tsx +0 -83
- package/publish/lib/esm/Utils/libs/anim.ts +0 -96
- package/publish/lib/esm/Utils/libs/buffer.ts +0 -262
- package/publish/lib/esm/Utils/libs/cls.ts +0 -64
- package/publish/lib/esm/Utils/libs/convert.ts +0 -59
- package/publish/lib/esm/Utils/libs/date.ts +0 -598
- package/publish/lib/esm/Utils/libs/dom.ts +0 -150
- package/publish/lib/esm/Utils/libs/easing.ts +0 -201
- package/publish/lib/esm/Utils/libs/extract.ts +0 -160
- package/publish/lib/esm/Utils/libs/format-string.ts +0 -116
- package/publish/lib/esm/Utils/libs/formdata.ts +0 -93
- package/publish/lib/esm/Utils/libs/getElementProperty.ts +0 -150
- package/publish/lib/esm/Utils/libs/guid.ts +0 -16
- package/publish/lib/esm/Utils/libs/initDefaultOptions.ts +0 -43
- package/publish/lib/esm/Utils/libs/inputsCalculation.ts +0 -160
- package/publish/lib/esm/Utils/libs/math.ts +0 -276
- package/publish/lib/esm/Utils/libs/object.ts +0 -68
- package/publish/lib/esm/Utils/libs/os.ts +0 -63
- package/publish/lib/esm/Utils/libs/performance.ts +0 -47
- package/publish/lib/esm/Utils/libs/sanitize.ts +0 -55
- package/publish/lib/esm/Utils/libs/time.ts +0 -139
- package/publish/lib/esm/Utils/libs/tree.ts +0 -119
- package/publish/lib/esm/Utils/libs/validate.ts +0 -434
- package/publish/lib/esm/Utils/libs/viewport.ts +0 -20
- package/publish/lib/esm/Utils/plugins/bodyScrollLock.ts +0 -286
- package/publish/lib/esm/index.js +0 -47
- package/publish/package.json +0 -1
- /package/{publish/Accordion → Accordion}/index.d.ts +0 -0
- /package/{publish/Accordion → Accordion}/index.js +0 -0
- /package/{publish/BackToTop → BackToTop}/index.css +0 -0
- /package/{publish/BackToTop → BackToTop}/index.d.ts +0 -0
- /package/{publish/BackToTop → BackToTop}/index.js +0 -0
- /package/{publish/CascadingSelect → CascadingSelect}/index.css +0 -0
- /package/{publish/CascadingSelect → CascadingSelect}/index.d.ts +0 -0
- /package/{publish/CascadingSelect → CascadingSelect}/index.js +0 -0
- /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.css +0 -0
- /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.d.ts +0 -0
- /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.js +0 -0
- /package/{publish/Chatbox → Chatbox}/index.css +0 -0
- /package/{publish/Chatbox → Chatbox}/index.d.ts +0 -0
- /package/{publish/Chatbox → Chatbox}/index.js +0 -0
- /package/{publish/Checkbox → Checkbox}/index.d.ts +0 -0
- /package/{publish/Checkbox → Checkbox}/index.js +0 -0
- /package/{publish/ColorPicker → ColorPicker}/index.css +0 -0
- /package/{publish/ColorPicker → ColorPicker}/index.d.ts +0 -0
- /package/{publish/ColorPicker → ColorPicker}/index.js +0 -0
- /package/{publish/Date → Date}/index.css +0 -0
- /package/{publish/Date → Date}/index.d.ts +0 -0
- /package/{publish/Date → Date}/index.js +0 -0
- /package/{publish/DigitalClock → DigitalClock}/index.d.ts +0 -0
- /package/{publish/DigitalClock → DigitalClock}/index.js +0 -0
- /package/{publish/DragDropList → DragDropList}/index.css +0 -0
- /package/{publish/DragDropList → DragDropList}/index.d.ts +0 -0
- /package/{publish/DragDropList → DragDropList}/index.js +0 -0
- /package/{publish/DropdownMenu → DropdownMenu}/index.css +0 -0
- /package/{publish/DropdownMenu → DropdownMenu}/index.d.ts +0 -0
- /package/{publish/DropdownMenu → DropdownMenu}/index.js +0 -0
- /package/{publish/DynamicFields → DynamicFields}/index.d.ts +0 -0
- /package/{publish/DynamicFields → DynamicFields}/index.js +0 -0
- /package/{publish/EventCalendar → EventCalendar}/index.css +0 -0
- /package/{publish/EventCalendar → EventCalendar}/index.d.ts +0 -0
- /package/{publish/EventCalendar → EventCalendar}/index.js +0 -0
- /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.css +0 -0
- /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.d.ts +0 -0
- /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.js +0 -0
- /package/{publish/File → File}/index.d.ts +0 -0
- /package/{publish/File → File}/index.js +0 -0
- /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.css +0 -0
- /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.d.ts +0 -0
- /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.js +0 -0
- /package/{publish/Input → Input}/index.d.ts +0 -0
- /package/{publish/Input → Input}/index.js +0 -0
- /package/{publish/LiveSearch → LiveSearch}/index.css +0 -0
- /package/{publish/LiveSearch → LiveSearch}/index.d.ts +0 -0
- /package/{publish/LiveSearch → LiveSearch}/index.js +0 -0
- /package/{publish/MasonryLayout → MasonryLayout}/index.d.ts +0 -0
- /package/{publish/MasonryLayout → MasonryLayout}/index.js +0 -0
- /package/{publish/ModalDialog → ModalDialog}/index.d.ts +0 -0
- /package/{publish/ModalDialog → ModalDialog}/index.js +0 -0
- /package/{publish/ModeSwitch → ModeSwitch}/index.d.ts +0 -0
- /package/{publish/ModeSwitch → ModeSwitch}/index.js +0 -0
- /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.css +0 -0
- /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.d.ts +0 -0
- /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.js +0 -0
- /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.d.ts +0 -0
- /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.js +0 -0
- /package/{publish/MultipleSelect → MultipleSelect}/index.css +0 -0
- /package/{publish/MultipleSelect → MultipleSelect}/index.d.ts +0 -0
- /package/{publish/MultipleSelect → MultipleSelect}/index.js +0 -0
- /package/{publish/NativeSelect → NativeSelect}/index.d.ts +0 -0
- /package/{publish/NativeSelect → NativeSelect}/index.js +0 -0
- /package/{publish/NumberInput → NumberInput}/index.d.ts +0 -0
- /package/{publish/NumberInput → NumberInput}/index.js +0 -0
- /package/{publish/Pagination → Pagination}/index.d.ts +0 -0
- /package/{publish/Pagination → Pagination}/index.js +0 -0
- /package/{publish/Radio → Radio}/index.d.ts +0 -0
- /package/{publish/Radio → Radio}/index.js +0 -0
- /package/{publish/RangeSlider → RangeSlider}/index.css +0 -0
- /package/{publish/RangeSlider → RangeSlider}/index.d.ts +0 -0
- /package/{publish/RangeSlider → RangeSlider}/index.js +0 -0
- /package/{publish/Refresher → Refresher}/index.d.ts +0 -0
- /package/{publish/Refresher → Refresher}/index.js +0 -0
- /package/{publish/RootPortal → RootPortal}/index.d.ts +0 -0
- /package/{publish/RootPortal → RootPortal}/index.js +0 -0
- /package/{publish/ScrollReveal → ScrollReveal}/index.d.ts +0 -0
- /package/{publish/ScrollReveal → ScrollReveal}/index.js +0 -0
- /package/{publish/Scrollbar → Scrollbar}/index.css +0 -0
- /package/{publish/Scrollbar → Scrollbar}/index.d.ts +0 -0
- /package/{publish/Scrollbar → Scrollbar}/index.js +0 -0
- /package/{publish/SearchBar → SearchBar}/index.d.ts +0 -0
- /package/{publish/SearchBar → SearchBar}/index.js +0 -0
- /package/{publish/Select → Select}/index.css +0 -0
- /package/{publish/Select → Select}/index.d.ts +0 -0
- /package/{publish/Select → Select}/index.js +0 -0
- /package/{publish/ShowMoreLess → ShowMoreLess}/index.css +0 -0
- /package/{publish/ShowMoreLess → ShowMoreLess}/index.d.ts +0 -0
- /package/{publish/ShowMoreLess → ShowMoreLess}/index.js +0 -0
- /package/{publish/SplitterPanel → SplitterPanel}/index.css +0 -0
- /package/{publish/SplitterPanel → SplitterPanel}/index.d.ts +0 -0
- /package/{publish/SplitterPanel → SplitterPanel}/index.js +0 -0
- /package/{publish/Stepper → Stepper}/index.css +0 -0
- /package/{publish/Stepper → Stepper}/index.d.ts +0 -0
- /package/{publish/Stepper → Stepper}/index.js +0 -0
- /package/{publish/Switch → Switch}/index.d.ts +0 -0
- /package/{publish/Switch → Switch}/index.js +0 -0
- /package/{publish/Table → Table}/index.css +0 -0
- /package/{publish/Table → Table}/index.d.ts +0 -0
- /package/{publish/Table → Table}/index.js +0 -0
- /package/{publish/Tabs → Tabs}/index.d.ts +0 -0
- /package/{publish/Tabs → Tabs}/index.js +0 -0
- /package/{publish/TagInput → TagInput}/index.css +0 -0
- /package/{publish/TagInput → TagInput}/index.d.ts +0 -0
- /package/{publish/TagInput → TagInput}/index.js +0 -0
- /package/{publish/Textarea → Textarea}/index.d.ts +0 -0
- /package/{publish/Textarea → Textarea}/index.js +0 -0
- /package/{publish/Toast → Toast}/index.css +0 -0
- /package/{publish/Toast → Toast}/index.d.ts +0 -0
- /package/{publish/Toast → Toast}/index.js +0 -0
- /package/{publish/Tooltip → Tooltip}/index.css +0 -0
- /package/{publish/Tooltip → Tooltip}/index.d.ts +0 -0
- /package/{publish/Tooltip → Tooltip}/index.js +0 -0
- /package/{publish/Tree → Tree}/index.css +0 -0
- /package/{publish/Tree → Tree}/index.d.ts +0 -0
- /package/{publish/Tree → Tree}/index.js +0 -0
- /package/{publish/Utils → Utils}/anim.d.ts +0 -0
- /package/{publish/Utils → Utils}/anim.js +0 -0
- /package/{publish/Utils → Utils}/bodyScrollLock.d.ts +0 -0
- /package/{publish/Utils → Utils}/bodyScrollLock.js +0 -0
- /package/{publish/Utils → Utils}/buffer.d.ts +0 -0
- /package/{publish/Utils → Utils}/buffer.js +0 -0
- /package/{publish/Utils → Utils}/cls.d.ts +0 -0
- /package/{publish/Utils → Utils}/cls.js +0 -0
- /package/{publish/Utils → Utils}/convert.d.ts +0 -0
- /package/{publish/Utils → Utils}/convert.js +0 -0
- /package/{publish/Utils → Utils}/date.d.ts +0 -0
- /package/{publish/Utils → Utils}/date.js +0 -0
- /package/{publish/Utils → Utils}/dom.d.ts +0 -0
- /package/{publish/Utils → Utils}/dom.js +0 -0
- /package/{publish/Utils → Utils}/easing.d.ts +0 -0
- /package/{publish/Utils → Utils}/easing.js +0 -0
- /package/{publish/Utils → Utils}/extract.d.ts +0 -0
- /package/{publish/Utils → Utils}/extract.js +0 -0
- /package/{publish/Utils → Utils}/format-string.d.ts +0 -0
- /package/{publish/Utils → Utils}/format-string.js +0 -0
- /package/{publish/Utils → Utils}/formdata.d.ts +0 -0
- /package/{publish/Utils → Utils}/formdata.js +0 -0
- /package/{publish/Utils → Utils}/getElementProperty.d.ts +0 -0
- /package/{publish/Utils → Utils}/getElementProperty.js +0 -0
- /package/{publish/Utils → Utils}/guid.d.ts +0 -0
- /package/{publish/Utils → Utils}/guid.js +0 -0
- /package/{publish/Utils → Utils}/initDefaultOptions.d.ts +0 -0
- /package/{publish/Utils → Utils}/initDefaultOptions.js +0 -0
- /package/{publish/Utils → Utils}/inputsCalculation.d.ts +0 -0
- /package/{publish/Utils → Utils}/inputsCalculation.js +0 -0
- /package/{publish/Utils → Utils}/math.d.ts +0 -0
- /package/{publish/Utils → Utils}/math.js +0 -0
- /package/{publish/Utils → Utils}/object.d.ts +0 -0
- /package/{publish/Utils → Utils}/object.js +0 -0
- /package/{publish/Utils → Utils}/os.d.ts +0 -0
- /package/{publish/Utils → Utils}/os.js +0 -0
- /package/{publish/Utils → Utils}/performance.d.ts +0 -0
- /package/{publish/Utils → Utils}/performance.js +0 -0
- /package/{publish/Utils → Utils}/sanitize.d.ts +0 -0
- /package/{publish/Utils → Utils}/sanitize.js +0 -0
- /package/{publish/Utils → Utils}/time.d.ts +0 -0
- /package/{publish/Utils → Utils}/time.js +0 -0
- /package/{publish/Utils → Utils}/tree.d.ts +0 -0
- /package/{publish/Utils → Utils}/tree.js +0 -0
- /package/{publish/Utils → Utils}/useAutosizeTextArea.d.ts +0 -0
- /package/{publish/Utils → Utils}/useAutosizeTextArea.js +0 -0
- /package/{publish/Utils → Utils}/useBoundedDrag.d.ts +0 -0
- /package/{publish/Utils → Utils}/useBoundedDrag.js +0 -0
- /package/{publish/Utils → Utils}/useClickOutside.d.ts +0 -0
- /package/{publish/Utils → Utils}/useClickOutside.js +0 -0
- /package/{publish/Utils → Utils}/useComId.d.ts +0 -0
- /package/{publish/Utils → Utils}/useComId.js +0 -0
- /package/{publish/Utils → Utils}/useDebounce.d.ts +0 -0
- /package/{publish/Utils → Utils}/useDebounce.js +0 -0
- /package/{publish/Utils → Utils}/useDragDropPosition.d.ts +0 -0
- /package/{publish/Utils → Utils}/useDragDropPosition.js +0 -0
- /package/{publish/Utils → Utils}/useDraggable.d.ts +0 -0
- /package/{publish/Utils → Utils}/useDraggable.js +0 -0
- /package/{publish/Utils → Utils}/useHistoryTracker.d.ts +0 -0
- /package/{publish/Utils → Utils}/useHistoryTracker.js +0 -0
- /package/{publish/Utils → Utils}/useInterval.d.ts +0 -0
- /package/{publish/Utils → Utils}/useInterval.js +0 -0
- /package/{publish/Utils → Utils}/useIsMobile.d.ts +0 -0
- /package/{publish/Utils → Utils}/useIsMobile.js +0 -0
- /package/{publish/Utils → Utils}/useKeyPress.d.ts +0 -0
- /package/{publish/Utils → Utils}/useKeyPress.js +0 -0
- /package/{publish/Utils → Utils}/useSessionStorageListener.d.ts +0 -0
- /package/{publish/Utils → Utils}/useSessionStorageListener.js +0 -0
- /package/{publish/Utils → Utils}/useStreamController.d.ts +0 -0
- /package/{publish/Utils → Utils}/useStreamController.js +0 -0
- /package/{publish/Utils → Utils}/useThrottle.d.ts +0 -0
- /package/{publish/Utils → Utils}/useThrottle.js +0 -0
- /package/{publish/Utils → Utils}/useWindowScroll.d.ts +0 -0
- /package/{publish/Utils → Utils}/useWindowScroll.js +0 -0
- /package/{publish/Utils → Utils}/validate.d.ts +0 -0
- /package/{publish/Utils → Utils}/validate.js +0 -0
- /package/{publish/Utils → Utils}/viewport.d.ts +0 -0
- /package/{publish/Utils → Utils}/viewport.js +0 -0
- /package/{publish/all.d.ts → all.d.ts} +0 -0
- /package/{publish/all.js → all.js} +0 -0
|
@@ -1,1778 +0,0 @@
|
|
|
1
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("react"), require("react-dom"));
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["react", "react-dom"], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["RPB"] = factory(require("react"), require("react-dom"));
|
|
8
|
-
else
|
|
9
|
-
root["RPB"] = factory(root["React"], root["ReactDOM"]);
|
|
10
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) => {
|
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
|
12
|
-
/******/ var __webpack_modules__ = ({
|
|
13
|
-
|
|
14
|
-
/***/ 909:
|
|
15
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
16
|
-
|
|
17
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
18
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
19
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
20
|
-
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787), __webpack_require__(156));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787), __webpack_require__(156)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
21
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
22
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
23
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
24
|
-
})(this, function (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) {
|
|
25
|
-
return (/******/function () {
|
|
26
|
-
// webpackBootstrap
|
|
27
|
-
/******/
|
|
28
|
-
"use strict";
|
|
29
|
-
|
|
30
|
-
/******/
|
|
31
|
-
var __webpack_modules__ = {
|
|
32
|
-
/***/787: /***/function _(module) {
|
|
33
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
|
|
34
|
-
|
|
35
|
-
/***/
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
/***/156: /***/function _(module) {
|
|
39
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
|
|
40
|
-
|
|
41
|
-
/***/
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/******/
|
|
45
|
-
};
|
|
46
|
-
/************************************************************************/
|
|
47
|
-
/******/ // The module cache
|
|
48
|
-
/******/
|
|
49
|
-
var __webpack_module_cache__ = {};
|
|
50
|
-
/******/
|
|
51
|
-
/******/ // The require function
|
|
52
|
-
/******/
|
|
53
|
-
function __nested_webpack_require_1708__(moduleId) {
|
|
54
|
-
/******/ // Check if module is in cache
|
|
55
|
-
/******/var cachedModule = __webpack_module_cache__[moduleId];
|
|
56
|
-
/******/
|
|
57
|
-
if (cachedModule !== undefined) {
|
|
58
|
-
/******/return cachedModule.exports;
|
|
59
|
-
/******/
|
|
60
|
-
}
|
|
61
|
-
/******/ // Create a new module (and put it into the cache)
|
|
62
|
-
/******/
|
|
63
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
64
|
-
/******/ // no module.id needed
|
|
65
|
-
/******/ // no module.loaded needed
|
|
66
|
-
/******/exports: {}
|
|
67
|
-
/******/
|
|
68
|
-
};
|
|
69
|
-
/******/
|
|
70
|
-
/******/ // Execute the module function
|
|
71
|
-
/******/
|
|
72
|
-
__webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1708__);
|
|
73
|
-
/******/
|
|
74
|
-
/******/ // Return the exports of the module
|
|
75
|
-
/******/
|
|
76
|
-
return module.exports;
|
|
77
|
-
/******/
|
|
78
|
-
}
|
|
79
|
-
/******/
|
|
80
|
-
/************************************************************************/
|
|
81
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
82
|
-
/******/
|
|
83
|
-
(function () {
|
|
84
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
85
|
-
/******/__nested_webpack_require_1708__.n = function (module) {
|
|
86
|
-
/******/var getter = module && module.__esModule ? /******/function () {
|
|
87
|
-
return module['default'];
|
|
88
|
-
} : /******/function () {
|
|
89
|
-
return module;
|
|
90
|
-
};
|
|
91
|
-
/******/
|
|
92
|
-
__nested_webpack_require_1708__.d(getter, {
|
|
93
|
-
a: getter
|
|
94
|
-
});
|
|
95
|
-
/******/
|
|
96
|
-
return getter;
|
|
97
|
-
/******/
|
|
98
|
-
};
|
|
99
|
-
/******/
|
|
100
|
-
})();
|
|
101
|
-
/******/
|
|
102
|
-
/******/ /* webpack/runtime/define property getters */
|
|
103
|
-
/******/
|
|
104
|
-
(function () {
|
|
105
|
-
/******/ // define getter functions for harmony exports
|
|
106
|
-
/******/__nested_webpack_require_1708__.d = function (exports, definition) {
|
|
107
|
-
/******/for (var key in definition) {
|
|
108
|
-
/******/if (__nested_webpack_require_1708__.o(definition, key) && !__nested_webpack_require_1708__.o(exports, key)) {
|
|
109
|
-
/******/Object.defineProperty(exports, key, {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: definition[key]
|
|
112
|
-
});
|
|
113
|
-
/******/
|
|
114
|
-
}
|
|
115
|
-
/******/
|
|
116
|
-
}
|
|
117
|
-
/******/
|
|
118
|
-
};
|
|
119
|
-
/******/
|
|
120
|
-
})();
|
|
121
|
-
/******/
|
|
122
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
123
|
-
/******/
|
|
124
|
-
(function () {
|
|
125
|
-
/******/__nested_webpack_require_1708__.o = function (obj, prop) {
|
|
126
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
127
|
-
};
|
|
128
|
-
/******/
|
|
129
|
-
})();
|
|
130
|
-
/******/
|
|
131
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
132
|
-
/******/
|
|
133
|
-
(function () {
|
|
134
|
-
/******/ // define __esModule on exports
|
|
135
|
-
/******/__nested_webpack_require_1708__.r = function (exports) {
|
|
136
|
-
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
137
|
-
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
138
|
-
value: 'Module'
|
|
139
|
-
});
|
|
140
|
-
/******/
|
|
141
|
-
}
|
|
142
|
-
/******/
|
|
143
|
-
Object.defineProperty(exports, '__esModule', {
|
|
144
|
-
value: true
|
|
145
|
-
});
|
|
146
|
-
/******/
|
|
147
|
-
};
|
|
148
|
-
/******/
|
|
149
|
-
})();
|
|
150
|
-
/******/
|
|
151
|
-
/************************************************************************/
|
|
152
|
-
var __webpack_exports__ = {};
|
|
153
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
154
|
-
(function () {
|
|
155
|
-
__nested_webpack_require_1708__.r(__webpack_exports__);
|
|
156
|
-
/* harmony export */
|
|
157
|
-
__nested_webpack_require_1708__.d(__webpack_exports__, {
|
|
158
|
-
/* harmony export */"default": function _default() {
|
|
159
|
-
return __WEBPACK_DEFAULT_EXPORT__;
|
|
160
|
-
}
|
|
161
|
-
/* harmony export */
|
|
162
|
-
});
|
|
163
|
-
/* harmony import */
|
|
164
|
-
var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1708__(787);
|
|
165
|
-
/* harmony import */
|
|
166
|
-
var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1708__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
167
|
-
/* harmony import */
|
|
168
|
-
var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_1708__(156);
|
|
169
|
-
/* harmony import */
|
|
170
|
-
var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nested_webpack_require_1708__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
|
|
171
|
-
var RootPortal = function RootPortal(props) {
|
|
172
|
-
var containerClassName = props.containerClassName,
|
|
173
|
-
show = props.show,
|
|
174
|
-
children = props.children,
|
|
175
|
-
_props$usePortal = props.usePortal,
|
|
176
|
-
usePortal = _props$usePortal === void 0 ? true : _props$usePortal;
|
|
177
|
-
var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
178
|
-
|
|
179
|
-
// Move HTML templates to tag end body </body>
|
|
180
|
-
// render() don't use "Fragment", in order to avoid error "Failed to execute 'insertBefore' on 'Node'"
|
|
181
|
-
// prevent "transform", "filter", "perspective" attribute destruction fixed viewport orientation
|
|
182
|
-
// ###
|
|
183
|
-
// ###
|
|
184
|
-
// Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
|
|
185
|
-
|
|
186
|
-
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
187
|
-
if (usePortal) {
|
|
188
|
-
containerRef.current = document.createElement('div');
|
|
189
|
-
containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
|
|
190
|
-
document.body.appendChild(containerRef.current);
|
|
191
|
-
}
|
|
192
|
-
return function () {
|
|
193
|
-
if (usePortal && containerRef.current) {
|
|
194
|
-
containerRef.current.remove();
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
}, [usePortal]);
|
|
198
|
-
if (!usePortal) {
|
|
199
|
-
return show ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, children) : null;
|
|
200
|
-
}
|
|
201
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
|
|
202
|
-
};
|
|
203
|
-
/* harmony default export */
|
|
204
|
-
var __WEBPACK_DEFAULT_EXPORT__ = RootPortal;
|
|
205
|
-
})();
|
|
206
|
-
|
|
207
|
-
/******/
|
|
208
|
-
return __webpack_exports__;
|
|
209
|
-
/******/
|
|
210
|
-
}()
|
|
211
|
-
);
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
/***/ }),
|
|
215
|
-
|
|
216
|
-
/***/ 188:
|
|
217
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
218
|
-
|
|
219
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
220
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
|
|
221
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
222
|
-
if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
223
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
224
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
225
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
226
|
-
})(this, function () {
|
|
227
|
-
return (/******/function () {
|
|
228
|
-
// webpackBootstrap
|
|
229
|
-
/******/
|
|
230
|
-
"use strict";
|
|
231
|
-
|
|
232
|
-
/******/ // The require scope
|
|
233
|
-
/******/
|
|
234
|
-
var __nested_webpack_require_993__ = {};
|
|
235
|
-
/******/
|
|
236
|
-
/************************************************************************/
|
|
237
|
-
/******/ /* webpack/runtime/define property getters */
|
|
238
|
-
/******/
|
|
239
|
-
(function () {
|
|
240
|
-
/******/ // define getter functions for harmony exports
|
|
241
|
-
/******/__nested_webpack_require_993__.d = function (exports, definition) {
|
|
242
|
-
/******/for (var key in definition) {
|
|
243
|
-
/******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
|
|
244
|
-
/******/Object.defineProperty(exports, key, {
|
|
245
|
-
enumerable: true,
|
|
246
|
-
get: definition[key]
|
|
247
|
-
});
|
|
248
|
-
/******/
|
|
249
|
-
}
|
|
250
|
-
/******/
|
|
251
|
-
}
|
|
252
|
-
/******/
|
|
253
|
-
};
|
|
254
|
-
/******/
|
|
255
|
-
})();
|
|
256
|
-
/******/
|
|
257
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
258
|
-
/******/
|
|
259
|
-
(function () {
|
|
260
|
-
/******/__nested_webpack_require_993__.o = function (obj, prop) {
|
|
261
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
262
|
-
};
|
|
263
|
-
/******/
|
|
264
|
-
})();
|
|
265
|
-
/******/
|
|
266
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
267
|
-
/******/
|
|
268
|
-
(function () {
|
|
269
|
-
/******/ // define __esModule on exports
|
|
270
|
-
/******/__nested_webpack_require_993__.r = function (exports) {
|
|
271
|
-
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
272
|
-
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
273
|
-
value: 'Module'
|
|
274
|
-
});
|
|
275
|
-
/******/
|
|
276
|
-
}
|
|
277
|
-
/******/
|
|
278
|
-
Object.defineProperty(exports, '__esModule', {
|
|
279
|
-
value: true
|
|
280
|
-
});
|
|
281
|
-
/******/
|
|
282
|
-
};
|
|
283
|
-
/******/
|
|
284
|
-
})();
|
|
285
|
-
/******/
|
|
286
|
-
/************************************************************************/
|
|
287
|
-
var __webpack_exports__ = {};
|
|
288
|
-
__nested_webpack_require_993__.r(__webpack_exports__);
|
|
289
|
-
/* harmony export */
|
|
290
|
-
__nested_webpack_require_993__.d(__webpack_exports__, {
|
|
291
|
-
/* harmony export */"clsWrite": function clsWrite() {
|
|
292
|
-
return (/* binding */_clsWrite
|
|
293
|
-
);
|
|
294
|
-
},
|
|
295
|
-
/* harmony export */"combinedCls": function combinedCls() {
|
|
296
|
-
return (/* binding */_combinedCls
|
|
297
|
-
);
|
|
298
|
-
}
|
|
299
|
-
/* harmony export */
|
|
300
|
-
});
|
|
301
|
-
function _slicedToArray(arr, i) {
|
|
302
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
303
|
-
}
|
|
304
|
-
function _nonIterableRest() {
|
|
305
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
306
|
-
}
|
|
307
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
308
|
-
if (!o) return;
|
|
309
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
310
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
311
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
312
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
313
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
314
|
-
}
|
|
315
|
-
function _arrayLikeToArray(arr, len) {
|
|
316
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
317
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
318
|
-
return arr2;
|
|
319
|
-
}
|
|
320
|
-
function _iterableToArrayLimit(arr, i) {
|
|
321
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
322
|
-
if (null != _i) {
|
|
323
|
-
var _s,
|
|
324
|
-
_e,
|
|
325
|
-
_x,
|
|
326
|
-
_r,
|
|
327
|
-
_arr = [],
|
|
328
|
-
_n = !0,
|
|
329
|
-
_d = !1;
|
|
330
|
-
try {
|
|
331
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
332
|
-
if (Object(_i) !== _i) return;
|
|
333
|
-
_n = !1;
|
|
334
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
335
|
-
} catch (err) {
|
|
336
|
-
_d = !0, _e = err;
|
|
337
|
-
} finally {
|
|
338
|
-
try {
|
|
339
|
-
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
340
|
-
} finally {
|
|
341
|
-
if (_d) throw _e;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
return _arr;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
function _arrayWithHoles(arr) {
|
|
348
|
-
if (Array.isArray(arr)) return arr;
|
|
349
|
-
}
|
|
350
|
-
function _typeof(obj) {
|
|
351
|
-
"@babel/helpers - typeof";
|
|
352
|
-
|
|
353
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
354
|
-
return typeof obj;
|
|
355
|
-
} : function (obj) {
|
|
356
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
357
|
-
}, _typeof(obj);
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Output of class name
|
|
361
|
-
* @param {*} s - Any
|
|
362
|
-
* @param {String} defaultCls - Default string
|
|
363
|
-
* @param {?*} targetCls - Any
|
|
364
|
-
* @returns {*}
|
|
365
|
-
*/
|
|
366
|
-
function _clsWrite(s, defaultCls) {
|
|
367
|
-
var targetCls = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
368
|
-
return s || s === '' ? typeof targetCls === 'undefined' ? s : targetCls : defaultCls;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Combined classnames
|
|
373
|
-
* @param {*} args
|
|
374
|
-
* @returns {String|undefined}
|
|
375
|
-
*/
|
|
376
|
-
/* Usage:
|
|
377
|
-
|
|
378
|
-
console.log(combinedCls('a-1', 'a-2', 'a-3', {
|
|
379
|
-
'p-1': null,
|
|
380
|
-
'p-2': undefined,
|
|
381
|
-
'p-3': true,
|
|
382
|
-
'p-4': false,
|
|
383
|
-
'p-5': 'kkk',
|
|
384
|
-
'p-6': 0,
|
|
385
|
-
'p-7': 1,
|
|
386
|
-
'p-8': '',
|
|
387
|
-
undefined
|
|
388
|
-
})); // a-1 a-2 a-3 p-3 p-5 p-7
|
|
389
|
-
*/
|
|
390
|
-
function _combinedCls() {
|
|
391
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
392
|
-
args[_key] = arguments[_key];
|
|
393
|
-
}
|
|
394
|
-
if (args) {
|
|
395
|
-
var classes = [];
|
|
396
|
-
for (var i = 0; i < args.length; i++) {
|
|
397
|
-
var className = args[i];
|
|
398
|
-
if (!className) {
|
|
399
|
-
continue;
|
|
400
|
-
}
|
|
401
|
-
var type = _typeof(className);
|
|
402
|
-
if (type === 'string' || type === 'number') {
|
|
403
|
-
classes.push(className);
|
|
404
|
-
} else if (type === 'object') {
|
|
405
|
-
var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
|
|
406
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
407
|
-
key = _ref2[0],
|
|
408
|
-
value = _ref2[1];
|
|
409
|
-
return value ? key : null;
|
|
410
|
-
});
|
|
411
|
-
classes = _classes.length ? classes.concat(_classes.filter(function (c) {
|
|
412
|
-
return !!c;
|
|
413
|
-
})) : classes;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
return classes.join(' ').trim();
|
|
417
|
-
}
|
|
418
|
-
return undefined;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
/******/
|
|
422
|
-
return __webpack_exports__;
|
|
423
|
-
/******/
|
|
424
|
-
}()
|
|
425
|
-
);
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
/***/ }),
|
|
429
|
-
|
|
430
|
-
/***/ 767:
|
|
431
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
432
|
-
|
|
433
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
434
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof2(obj); }
|
|
435
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
436
|
-
if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
437
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
438
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
439
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
440
|
-
})(this, function () {
|
|
441
|
-
return (/******/function () {
|
|
442
|
-
// webpackBootstrap
|
|
443
|
-
/******/
|
|
444
|
-
"use strict";
|
|
445
|
-
|
|
446
|
-
/******/ // The require scope
|
|
447
|
-
/******/
|
|
448
|
-
var __nested_webpack_require_993__ = {};
|
|
449
|
-
/******/
|
|
450
|
-
/************************************************************************/
|
|
451
|
-
/******/ /* webpack/runtime/define property getters */
|
|
452
|
-
/******/
|
|
453
|
-
(function () {
|
|
454
|
-
/******/ // define getter functions for harmony exports
|
|
455
|
-
/******/__nested_webpack_require_993__.d = function (exports, definition) {
|
|
456
|
-
/******/for (var key in definition) {
|
|
457
|
-
/******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
|
|
458
|
-
/******/Object.defineProperty(exports, key, {
|
|
459
|
-
enumerable: true,
|
|
460
|
-
get: definition[key]
|
|
461
|
-
});
|
|
462
|
-
/******/
|
|
463
|
-
}
|
|
464
|
-
/******/
|
|
465
|
-
}
|
|
466
|
-
/******/
|
|
467
|
-
};
|
|
468
|
-
/******/
|
|
469
|
-
})();
|
|
470
|
-
/******/
|
|
471
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
472
|
-
/******/
|
|
473
|
-
(function () {
|
|
474
|
-
/******/__nested_webpack_require_993__.o = function (obj, prop) {
|
|
475
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
476
|
-
};
|
|
477
|
-
/******/
|
|
478
|
-
})();
|
|
479
|
-
/******/
|
|
480
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
481
|
-
/******/
|
|
482
|
-
(function () {
|
|
483
|
-
/******/ // define __esModule on exports
|
|
484
|
-
/******/__nested_webpack_require_993__.r = function (exports) {
|
|
485
|
-
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
486
|
-
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
487
|
-
value: 'Module'
|
|
488
|
-
});
|
|
489
|
-
/******/
|
|
490
|
-
}
|
|
491
|
-
/******/
|
|
492
|
-
Object.defineProperty(exports, '__esModule', {
|
|
493
|
-
value: true
|
|
494
|
-
});
|
|
495
|
-
/******/
|
|
496
|
-
};
|
|
497
|
-
/******/
|
|
498
|
-
})();
|
|
499
|
-
/******/
|
|
500
|
-
/************************************************************************/
|
|
501
|
-
var __webpack_exports__ = {};
|
|
502
|
-
__nested_webpack_require_993__.r(__webpack_exports__);
|
|
503
|
-
/* harmony export */
|
|
504
|
-
__nested_webpack_require_993__.d(__webpack_exports__, {
|
|
505
|
-
/* harmony export */"getAbsoluteCoordinates": function getAbsoluteCoordinates() {
|
|
506
|
-
return (/* binding */_getAbsoluteCoordinates
|
|
507
|
-
);
|
|
508
|
-
},
|
|
509
|
-
/* harmony export */"getAbsolutePositionOfStage": function getAbsolutePositionOfStage() {
|
|
510
|
-
return (/* binding */_getAbsolutePositionOfStage
|
|
511
|
-
);
|
|
512
|
-
},
|
|
513
|
-
/* harmony export */"getOffset": function getOffset() {
|
|
514
|
-
return (/* binding */_getOffset
|
|
515
|
-
);
|
|
516
|
-
},
|
|
517
|
-
/* harmony export */"getPosition": function getPosition() {
|
|
518
|
-
return (/* binding */_getPosition
|
|
519
|
-
);
|
|
520
|
-
},
|
|
521
|
-
/* harmony export */"getTransitionDuration": function getTransitionDuration() {
|
|
522
|
-
return (/* binding */_getTransitionDuration
|
|
523
|
-
);
|
|
524
|
-
}
|
|
525
|
-
/* harmony export */
|
|
526
|
-
});
|
|
527
|
-
function _typeof(obj) {
|
|
528
|
-
"@babel/helpers - typeof";
|
|
529
|
-
|
|
530
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
531
|
-
return typeof obj;
|
|
532
|
-
} : function (obj) {
|
|
533
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
534
|
-
}, _typeof(obj);
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* Get the -webkit-transition-duration property
|
|
538
|
-
*
|
|
539
|
-
* @param {HTMLElement} el - A DOM node containing one selector to match against.
|
|
540
|
-
* @return {number} - Returns a pure number.
|
|
541
|
-
*/
|
|
542
|
-
function _getTransitionDuration(el) {
|
|
543
|
-
if (_typeof(el) === ( true ? "undefined" : 0)) {
|
|
544
|
-
return 0;
|
|
545
|
-
}
|
|
546
|
-
var style = window.getComputedStyle(el),
|
|
547
|
-
duration = style.webkitTransitionDuration,
|
|
548
|
-
delay = style.webkitTransitionDelay;
|
|
549
|
-
if (_typeof(duration) != ( true ? "undefined" : 0)) {
|
|
550
|
-
// fix miliseconds vs seconds
|
|
551
|
-
duration = duration.indexOf("ms") > -1 ? parseFloat(duration) : parseFloat(duration) * 1000;
|
|
552
|
-
delay = delay.indexOf("ms") > -1 ? parseFloat(delay) : parseFloat(delay) * 1000;
|
|
553
|
-
return duration;
|
|
554
|
-
} else {
|
|
555
|
-
return 0;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Get an object's absolute position on the page
|
|
561
|
-
*
|
|
562
|
-
* @param {HTMLElement} el - A DOM node containing one selector to match against.
|
|
563
|
-
* @return {Json} - An object containing the properties top and left.
|
|
564
|
-
*/
|
|
565
|
-
function _getAbsoluteCoordinates(el) {
|
|
566
|
-
var windowWidth = window.innerWidth,
|
|
567
|
-
leftPos = null,
|
|
568
|
-
topPos = null;
|
|
569
|
-
var pEl = el.parentElement;
|
|
570
|
-
if (!document.getElementsByTagName('body')[0].className.match(/rtl/)) {
|
|
571
|
-
leftPos = el.offsetLeft == 0 ? pEl.offsetLeft : el.offsetLeft;
|
|
572
|
-
topPos = el.offsetTop == 0 ? pEl.offsetTop : el.offsetTop;
|
|
573
|
-
} else {
|
|
574
|
-
// width and height in pixels, including padding and border
|
|
575
|
-
// Corresponds to outerWidth(), outerHeight()
|
|
576
|
-
leftPos = el.offsetLeft == 0 ? windowWidth - (pEl.offsetLeft + pEl.offsetWidth) : windowWidth - (el.offsetLeft + el.offsetWidth);
|
|
577
|
-
topPos = el.offsetTop == 0 ? windowWidth - (pEl.offsetTop + pEl.offsetHeight) : windowWidth - (el.offsetTop + el.offsetHeight);
|
|
578
|
-
}
|
|
579
|
-
return {
|
|
580
|
-
'left': leftPos,
|
|
581
|
-
'top': topPos
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
|
|
587
|
-
*
|
|
588
|
-
* @param {Element} el - A DOM node containing one selector to match against.
|
|
589
|
-
* @return {Json} - An object containing the properties top and left.
|
|
590
|
-
*/
|
|
591
|
-
function _getOffset(el) {
|
|
592
|
-
var res = {
|
|
593
|
-
top: 0,
|
|
594
|
-
left: 0
|
|
595
|
-
};
|
|
596
|
-
var box = el.getBoundingClientRect();
|
|
597
|
-
var top = 0,
|
|
598
|
-
left = 0;
|
|
599
|
-
|
|
600
|
-
//Include scrollbar and border
|
|
601
|
-
top = box.top + window.pageYOffset - document.documentElement.clientTop;
|
|
602
|
-
left = box.left + window.pageXOffset - document.documentElement.clientLeft;
|
|
603
|
-
res = {
|
|
604
|
-
top: top,
|
|
605
|
-
left: left
|
|
606
|
-
};
|
|
607
|
-
return res;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
|
|
612
|
-
*
|
|
613
|
-
* @param {HTMLElement} el - A DOM node containing one selector to match against.
|
|
614
|
-
* @return {Json} - An object containing the properties top and left.
|
|
615
|
-
*/
|
|
616
|
-
function _getPosition(el) {
|
|
617
|
-
var res = {
|
|
618
|
-
top: 0,
|
|
619
|
-
left: 0
|
|
620
|
-
};
|
|
621
|
-
var top = el.offsetTop ? el.offsetTop : 0,
|
|
622
|
-
left = el.offsetLeft ? el.offsetLeft : 0;
|
|
623
|
-
res = {
|
|
624
|
-
top: top,
|
|
625
|
-
left: left
|
|
626
|
-
};
|
|
627
|
-
return res;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Get the absolute position of the stage element
|
|
632
|
-
*
|
|
633
|
-
* @param {HTMLElement} domElement - A DOM node
|
|
634
|
-
* @param {Number | string} left - left offset
|
|
635
|
-
* @param {Number | string} top - top offset
|
|
636
|
-
* @returns
|
|
637
|
-
*/
|
|
638
|
-
function _getAbsolutePositionOfStage(domElement) {
|
|
639
|
-
var left = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
640
|
-
var top = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
641
|
-
if (!parseInt(left)) {
|
|
642
|
-
left = 0;
|
|
643
|
-
} else {
|
|
644
|
-
left = parseInt(left);
|
|
645
|
-
}
|
|
646
|
-
if (!parseInt(top)) {
|
|
647
|
-
top = 0;
|
|
648
|
-
} else {
|
|
649
|
-
top = parseInt(top);
|
|
650
|
-
}
|
|
651
|
-
var box = domElement.getBoundingClientRect();
|
|
652
|
-
var body = document.body;
|
|
653
|
-
var docElem = document.documentElement;
|
|
654
|
-
var scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop;
|
|
655
|
-
var scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft;
|
|
656
|
-
var clientTop = docElem.clientTop || body.clientTop || 0;
|
|
657
|
-
var clientLeft = docElem.clientLeft || body.clientLeft || 0;
|
|
658
|
-
var attr = {};
|
|
659
|
-
attr.y = box.top + scrollTop - clientTop + top;
|
|
660
|
-
attr.x = box.left + scrollLeft - clientLeft + left;
|
|
661
|
-
attr.width = box.width;
|
|
662
|
-
attr.height = box.height;
|
|
663
|
-
return attr;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
/******/
|
|
667
|
-
return __webpack_exports__;
|
|
668
|
-
/******/
|
|
669
|
-
}()
|
|
670
|
-
);
|
|
671
|
-
});
|
|
672
|
-
|
|
673
|
-
/***/ }),
|
|
674
|
-
|
|
675
|
-
/***/ 954:
|
|
676
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
677
|
-
|
|
678
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
679
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
680
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
681
|
-
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
682
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
683
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
684
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
685
|
-
})(this, function () {
|
|
686
|
-
return (/******/function () {
|
|
687
|
-
// webpackBootstrap
|
|
688
|
-
/******/
|
|
689
|
-
"use strict";
|
|
690
|
-
|
|
691
|
-
/******/ // The require scope
|
|
692
|
-
/******/
|
|
693
|
-
var __nested_webpack_require_987__ = {};
|
|
694
|
-
/******/
|
|
695
|
-
/************************************************************************/
|
|
696
|
-
/******/ /* webpack/runtime/define property getters */
|
|
697
|
-
/******/
|
|
698
|
-
(function () {
|
|
699
|
-
/******/ // define getter functions for harmony exports
|
|
700
|
-
/******/__nested_webpack_require_987__.d = function (exports, definition) {
|
|
701
|
-
/******/for (var key in definition) {
|
|
702
|
-
/******/if (__nested_webpack_require_987__.o(definition, key) && !__nested_webpack_require_987__.o(exports, key)) {
|
|
703
|
-
/******/Object.defineProperty(exports, key, {
|
|
704
|
-
enumerable: true,
|
|
705
|
-
get: definition[key]
|
|
706
|
-
});
|
|
707
|
-
/******/
|
|
708
|
-
}
|
|
709
|
-
/******/
|
|
710
|
-
}
|
|
711
|
-
/******/
|
|
712
|
-
};
|
|
713
|
-
/******/
|
|
714
|
-
})();
|
|
715
|
-
/******/
|
|
716
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
717
|
-
/******/
|
|
718
|
-
(function () {
|
|
719
|
-
/******/__nested_webpack_require_987__.o = function (obj, prop) {
|
|
720
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
721
|
-
};
|
|
722
|
-
/******/
|
|
723
|
-
})();
|
|
724
|
-
/******/
|
|
725
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
726
|
-
/******/
|
|
727
|
-
(function () {
|
|
728
|
-
/******/ // define __esModule on exports
|
|
729
|
-
/******/__nested_webpack_require_987__.r = function (exports) {
|
|
730
|
-
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
731
|
-
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
732
|
-
value: 'Module'
|
|
733
|
-
});
|
|
734
|
-
/******/
|
|
735
|
-
}
|
|
736
|
-
/******/
|
|
737
|
-
Object.defineProperty(exports, '__esModule', {
|
|
738
|
-
value: true
|
|
739
|
-
});
|
|
740
|
-
/******/
|
|
741
|
-
};
|
|
742
|
-
/******/
|
|
743
|
-
})();
|
|
744
|
-
/******/
|
|
745
|
-
/************************************************************************/
|
|
746
|
-
var __webpack_exports__ = {};
|
|
747
|
-
__nested_webpack_require_987__.r(__webpack_exports__);
|
|
748
|
-
/* harmony export */
|
|
749
|
-
__nested_webpack_require_987__.d(__webpack_exports__, {
|
|
750
|
-
/* harmony export */"actualPropertyValue": function actualPropertyValue() {
|
|
751
|
-
return (/* binding */_actualPropertyValue
|
|
752
|
-
);
|
|
753
|
-
},
|
|
754
|
-
/* harmony export */"getElCSS": function getElCSS() {
|
|
755
|
-
return (/* binding */_getElCSS
|
|
756
|
-
);
|
|
757
|
-
},
|
|
758
|
-
/* harmony export */"getTextTop": function getTextTop() {
|
|
759
|
-
return (/* binding */_getTextTop
|
|
760
|
-
);
|
|
761
|
-
},
|
|
762
|
-
/* harmony export */"getTextWidth": function getTextWidth() {
|
|
763
|
-
return (/* binding */_getTextWidth
|
|
764
|
-
);
|
|
765
|
-
}
|
|
766
|
-
/* harmony export */
|
|
767
|
-
});
|
|
768
|
-
/**
|
|
769
|
-
* Gets the relative upside of the text
|
|
770
|
-
* @param {Element} el - A DOM node containing one selector to match against.
|
|
771
|
-
* @returns {Number} - Returns a pure number.
|
|
772
|
-
*/
|
|
773
|
-
function _getTextTop(el) {
|
|
774
|
-
var styles = window.getComputedStyle(el);
|
|
775
|
-
var fontSize = parseFloat(styles.fontSize);
|
|
776
|
-
var lineHeight = parseFloat(styles.lineHeight) || fontSize;
|
|
777
|
-
var paddingTop = parseFloat(styles.paddingTop);
|
|
778
|
-
var borderWidth = parseFloat(styles.borderWidth);
|
|
779
|
-
var textTop = paddingTop + (lineHeight - fontSize) / 2 - borderWidth * 2;
|
|
780
|
-
return textTop;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* Get the actual value with user specific methed
|
|
785
|
-
* it can be 'width', 'height', 'outerWidth', 'outerHeight'
|
|
786
|
-
* @private
|
|
787
|
-
* @param {Element} el - A DOM node containing one selector to match against.
|
|
788
|
-
* @param {String} prop - A string naming the property of style.
|
|
789
|
-
* @param {?Json} config - Whether or not margin is included. The key `includeMargin`
|
|
790
|
-
takes effect when set to true
|
|
791
|
-
* @return {Number} - Returns a pure number.
|
|
792
|
-
*/
|
|
793
|
-
function _actualPropertyValue(el, prop) {
|
|
794
|
-
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
795
|
-
if (el === null) return 0;
|
|
796
|
-
var style = window.getComputedStyle ? window.getComputedStyle(el) : el.currentStyle,
|
|
797
|
-
display = style.display,
|
|
798
|
-
position = style.position,
|
|
799
|
-
visibility = style.visibility;
|
|
800
|
-
var marginWidth = 0;
|
|
801
|
-
var marginHeight = 0;
|
|
802
|
-
var maxVal;
|
|
803
|
-
var actualVal;
|
|
804
|
-
if (config && config.includeMargin === true) {
|
|
805
|
-
marginWidth = parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
806
|
-
marginHeight = parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
807
|
-
}
|
|
808
|
-
if (prop === 'fontSize') {
|
|
809
|
-
actualVal = parseFloat(style.fontSize);
|
|
810
|
-
}
|
|
811
|
-
if (prop === 'fontFamily') {
|
|
812
|
-
actualVal = style.fontFamily;
|
|
813
|
-
}
|
|
814
|
-
if (prop === 'letterSpacing') {
|
|
815
|
-
actualVal = style.letterSpacing;
|
|
816
|
-
}
|
|
817
|
-
if (prop === 'width') {
|
|
818
|
-
maxVal = parseFloat(style.maxWidth);
|
|
819
|
-
|
|
820
|
-
// if its not hidden we just return normal height
|
|
821
|
-
if (display !== 'none' && maxVal !== 0) {
|
|
822
|
-
return el.clientWidth;
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
if (prop === 'height') {
|
|
826
|
-
maxVal = parseFloat(style.maxHeight);
|
|
827
|
-
if (display !== 'none' && maxVal !== 0) {
|
|
828
|
-
return el.clientHeight;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
if (prop === 'outerWidth') {
|
|
832
|
-
maxVal = parseFloat(style.maxWidth);
|
|
833
|
-
if (display !== 'none' && maxVal !== 0) {
|
|
834
|
-
return el.offsetWidth + marginWidth;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
if (prop === 'outerHeight') {
|
|
838
|
-
maxVal = parseFloat(style.maxHeight);
|
|
839
|
-
if (display !== 'none' && maxVal !== 0) {
|
|
840
|
-
return el.offsetHeight + marginHeight;
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
// the element is hidden so:
|
|
845
|
-
// making the el block so we can meassure its height but still be hidden
|
|
846
|
-
el.style.position = 'absolute';
|
|
847
|
-
el.style.visibility = 'hidden';
|
|
848
|
-
el.style.display = 'block';
|
|
849
|
-
if (prop === 'width') actualVal = el.clientWidth;
|
|
850
|
-
if (prop === 'height') actualVal = el.clientHeight;
|
|
851
|
-
if (prop === 'outerWidth') actualVal = el.offsetWidth + marginWidth;
|
|
852
|
-
if (prop === 'outerHeight') actualVal = el.offsetHeight + marginHeight;
|
|
853
|
-
|
|
854
|
-
// reverting to the original values
|
|
855
|
-
el.style.display = display;
|
|
856
|
-
el.style.position = position;
|
|
857
|
-
el.style.visibility = visibility;
|
|
858
|
-
return actualVal;
|
|
859
|
-
}
|
|
860
|
-
function _getElCSS(input, prop, isNumber) {
|
|
861
|
-
var _document$defaultView;
|
|
862
|
-
var val = (_document$defaultView = document.defaultView) === null || _document$defaultView === void 0 ? void 0 : _document$defaultView.getComputedStyle(input, null).getPropertyValue(prop);
|
|
863
|
-
return isNumber ? isNaN(parseFloat(val)) ? 0 : parseFloat(val) : val;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* Get cursor or text position in pixels for input element
|
|
868
|
-
*
|
|
869
|
-
* @param {HTMLInputElement} input Required HTMLElement with `value` attribute
|
|
870
|
-
* @param {HTMLSpanElement} fauxContainer Container of faux.
|
|
871
|
-
* @param {HTMLElement} rawTextContainer The raw text container for the comparison
|
|
872
|
-
* @returns {Number}
|
|
873
|
-
*/
|
|
874
|
-
|
|
875
|
-
function _getTextWidth(input, fauxContainer, rawTextContainer) {
|
|
876
|
-
if (input === null || fauxContainer === null || rawTextContainer === null) return 0;
|
|
877
|
-
var _off = input.selectionStart;
|
|
878
|
-
var _faux = fauxContainer;
|
|
879
|
-
var _fauxContainer = rawTextContainer;
|
|
880
|
-
if (_faux && _fauxContainer) {
|
|
881
|
-
// Styles to simulate a node in an input field
|
|
882
|
-
// use pre-wrap instead of wrap for white-space to support wrapping in textareas
|
|
883
|
-
var listOfModifiers = ['direction', 'font-family', 'font-size', 'font-size-adjust', 'font-variant', 'font-weight', 'font-style', 'letter-spacing', 'line-height', 'text-align', 'text-indent', 'text-transform', 'word-wrap', 'word-spacing'];
|
|
884
|
-
|
|
885
|
-
// default styles
|
|
886
|
-
_faux.style.setProperty('white-space', 'pre-wrap');
|
|
887
|
-
_faux.style.setProperty('padding', '0');
|
|
888
|
-
_faux.style.setProperty('margin', '0');
|
|
889
|
-
_faux.style.setProperty('display', 'none');
|
|
890
|
-
for (var i = 0; i < listOfModifiers.length; i++) {
|
|
891
|
-
var propertyValue = _getElCSS(_fauxContainer, listOfModifiers[i], false);
|
|
892
|
-
_faux.style.setProperty(listOfModifiers[i], propertyValue);
|
|
893
|
-
}
|
|
894
|
-
_faux.textContent = input.value.substring(0, _off).replace(/\s/g, "\xA0");
|
|
895
|
-
return _actualPropertyValue(_faux, 'outerWidth');
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
/******/
|
|
900
|
-
return __webpack_exports__;
|
|
901
|
-
/******/
|
|
902
|
-
}()
|
|
903
|
-
);
|
|
904
|
-
});
|
|
905
|
-
|
|
906
|
-
/***/ }),
|
|
907
|
-
|
|
908
|
-
/***/ 761:
|
|
909
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
910
|
-
|
|
911
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
912
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
913
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
914
|
-
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
915
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
916
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
917
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
918
|
-
})(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
|
|
919
|
-
return (/******/function () {
|
|
920
|
-
// webpackBootstrap
|
|
921
|
-
/******/
|
|
922
|
-
"use strict";
|
|
923
|
-
|
|
924
|
-
/******/
|
|
925
|
-
var __webpack_modules__ = {
|
|
926
|
-
/***/787: /***/function _(module) {
|
|
927
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
|
|
928
|
-
|
|
929
|
-
/***/
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
/******/
|
|
933
|
-
};
|
|
934
|
-
/************************************************************************/
|
|
935
|
-
/******/ // The module cache
|
|
936
|
-
/******/
|
|
937
|
-
var __webpack_module_cache__ = {};
|
|
938
|
-
/******/
|
|
939
|
-
/******/ // The require function
|
|
940
|
-
/******/
|
|
941
|
-
function __nested_webpack_require_1465__(moduleId) {
|
|
942
|
-
/******/ // Check if module is in cache
|
|
943
|
-
/******/var cachedModule = __webpack_module_cache__[moduleId];
|
|
944
|
-
/******/
|
|
945
|
-
if (cachedModule !== undefined) {
|
|
946
|
-
/******/return cachedModule.exports;
|
|
947
|
-
/******/
|
|
948
|
-
}
|
|
949
|
-
/******/ // Create a new module (and put it into the cache)
|
|
950
|
-
/******/
|
|
951
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
952
|
-
/******/ // no module.id needed
|
|
953
|
-
/******/ // no module.loaded needed
|
|
954
|
-
/******/exports: {}
|
|
955
|
-
/******/
|
|
956
|
-
};
|
|
957
|
-
/******/
|
|
958
|
-
/******/ // Execute the module function
|
|
959
|
-
/******/
|
|
960
|
-
__webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
|
|
961
|
-
/******/
|
|
962
|
-
/******/ // Return the exports of the module
|
|
963
|
-
/******/
|
|
964
|
-
return module.exports;
|
|
965
|
-
/******/
|
|
966
|
-
}
|
|
967
|
-
/******/
|
|
968
|
-
/************************************************************************/
|
|
969
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
970
|
-
/******/
|
|
971
|
-
(function () {
|
|
972
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
973
|
-
/******/__nested_webpack_require_1465__.n = function (module) {
|
|
974
|
-
/******/var getter = module && module.__esModule ? /******/function () {
|
|
975
|
-
return module['default'];
|
|
976
|
-
} : /******/function () {
|
|
977
|
-
return module;
|
|
978
|
-
};
|
|
979
|
-
/******/
|
|
980
|
-
__nested_webpack_require_1465__.d(getter, {
|
|
981
|
-
a: getter
|
|
982
|
-
});
|
|
983
|
-
/******/
|
|
984
|
-
return getter;
|
|
985
|
-
/******/
|
|
986
|
-
};
|
|
987
|
-
/******/
|
|
988
|
-
})();
|
|
989
|
-
/******/
|
|
990
|
-
/******/ /* webpack/runtime/define property getters */
|
|
991
|
-
/******/
|
|
992
|
-
(function () {
|
|
993
|
-
/******/ // define getter functions for harmony exports
|
|
994
|
-
/******/__nested_webpack_require_1465__.d = function (exports, definition) {
|
|
995
|
-
/******/for (var key in definition) {
|
|
996
|
-
/******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
|
|
997
|
-
/******/Object.defineProperty(exports, key, {
|
|
998
|
-
enumerable: true,
|
|
999
|
-
get: definition[key]
|
|
1000
|
-
});
|
|
1001
|
-
/******/
|
|
1002
|
-
}
|
|
1003
|
-
/******/
|
|
1004
|
-
}
|
|
1005
|
-
/******/
|
|
1006
|
-
};
|
|
1007
|
-
/******/
|
|
1008
|
-
})();
|
|
1009
|
-
/******/
|
|
1010
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1011
|
-
/******/
|
|
1012
|
-
(function () {
|
|
1013
|
-
/******/__nested_webpack_require_1465__.o = function (obj, prop) {
|
|
1014
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1015
|
-
};
|
|
1016
|
-
/******/
|
|
1017
|
-
})();
|
|
1018
|
-
/******/
|
|
1019
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
1020
|
-
/******/
|
|
1021
|
-
(function () {
|
|
1022
|
-
/******/ // define __esModule on exports
|
|
1023
|
-
/******/__nested_webpack_require_1465__.r = function (exports) {
|
|
1024
|
-
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1025
|
-
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
1026
|
-
value: 'Module'
|
|
1027
|
-
});
|
|
1028
|
-
/******/
|
|
1029
|
-
}
|
|
1030
|
-
/******/
|
|
1031
|
-
Object.defineProperty(exports, '__esModule', {
|
|
1032
|
-
value: true
|
|
1033
|
-
});
|
|
1034
|
-
/******/
|
|
1035
|
-
};
|
|
1036
|
-
/******/
|
|
1037
|
-
})();
|
|
1038
|
-
/******/
|
|
1039
|
-
/************************************************************************/
|
|
1040
|
-
var __webpack_exports__ = {};
|
|
1041
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
1042
|
-
(function () {
|
|
1043
|
-
__nested_webpack_require_1465__.r(__webpack_exports__);
|
|
1044
|
-
/* harmony export */
|
|
1045
|
-
__nested_webpack_require_1465__.d(__webpack_exports__, {
|
|
1046
|
-
/* harmony export */"default": function _default() {
|
|
1047
|
-
return __WEBPACK_DEFAULT_EXPORT__;
|
|
1048
|
-
}
|
|
1049
|
-
/* harmony export */
|
|
1050
|
-
});
|
|
1051
|
-
/* harmony import */
|
|
1052
|
-
var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
|
|
1053
|
-
/* harmony import */
|
|
1054
|
-
var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1055
|
-
function _toConsumableArray(arr) {
|
|
1056
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
1057
|
-
}
|
|
1058
|
-
function _nonIterableSpread() {
|
|
1059
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1060
|
-
}
|
|
1061
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1062
|
-
if (!o) return;
|
|
1063
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1064
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1065
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1066
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1067
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1068
|
-
}
|
|
1069
|
-
function _iterableToArray(iter) {
|
|
1070
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1071
|
-
}
|
|
1072
|
-
function _arrayWithoutHoles(arr) {
|
|
1073
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1074
|
-
}
|
|
1075
|
-
function _arrayLikeToArray(arr, len) {
|
|
1076
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
1077
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1078
|
-
return arr2;
|
|
1079
|
-
}
|
|
1080
|
-
/**
|
|
1081
|
-
* Handles the event of clicking outside of the wrapped component
|
|
1082
|
-
*
|
|
1083
|
-
* @usage:
|
|
1084
|
-
|
|
1085
|
-
const App = () => {
|
|
1086
|
-
|
|
1087
|
-
const [show, setShow] = useState<boolean>(false);
|
|
1088
|
-
const dropdownRef = useRef<HTMLDivElement>(null);
|
|
1089
|
-
|
|
1090
|
-
useClickOutside({
|
|
1091
|
-
enabled: show && dropdownRef.current,
|
|
1092
|
-
isOutside: (event: any) => {
|
|
1093
|
-
return event.target.closest(`.test__wrapper`) === null && event.target.closest(`.test__wrapper2`) === null;
|
|
1094
|
-
},
|
|
1095
|
-
handle: (event: any) => {
|
|
1096
|
-
// do something
|
|
1097
|
-
//...
|
|
1098
|
-
},
|
|
1099
|
-
spyElement: document
|
|
1100
|
-
}, [show, dropdownRef]);
|
|
1101
|
-
};
|
|
1102
|
-
|
|
1103
|
-
*/
|
|
1104
|
-
|
|
1105
|
-
function useClickOutside(_ref, deps) {
|
|
1106
|
-
var enabled = _ref.enabled,
|
|
1107
|
-
isOutside = _ref.isOutside,
|
|
1108
|
-
handle = _ref.handle,
|
|
1109
|
-
_ref$spyElement = _ref.spyElement,
|
|
1110
|
-
spyElement = _ref$spyElement === void 0 ? typeof document === 'undefined' ? null : document : _ref$spyElement;
|
|
1111
|
-
var isOutsideRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(isOutside);
|
|
1112
|
-
var handleRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(handle);
|
|
1113
|
-
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
1114
|
-
isOutsideRef.current = isOutside;
|
|
1115
|
-
|
|
1116
|
-
// fix possible issue if clicking on a focusable element
|
|
1117
|
-
handleRef.current = handle;
|
|
1118
|
-
}, [isOutside, handle]);
|
|
1119
|
-
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
1120
|
-
if (enabled) {
|
|
1121
|
-
var eventHandler = function eventHandler(event) {
|
|
1122
|
-
var _isOutsideRef$current;
|
|
1123
|
-
if ((_isOutsideRef$current = isOutsideRef.current) !== null && _isOutsideRef$current !== void 0 && _isOutsideRef$current.call(isOutsideRef, event)) {
|
|
1124
|
-
var _handleRef$current;
|
|
1125
|
-
(_handleRef$current = handleRef.current) === null || _handleRef$current === void 0 ? void 0 : _handleRef$current.call(handleRef, event);
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
spyElement === null || spyElement === void 0 ? void 0 : spyElement.addEventListener('pointerdown', eventHandler);
|
|
1129
|
-
return function () {
|
|
1130
|
-
spyElement === null || spyElement === void 0 ? void 0 : spyElement.removeEventListener('pointerdown', eventHandler);
|
|
1131
|
-
};
|
|
1132
|
-
}
|
|
1133
|
-
}, [enabled].concat(_toConsumableArray(deps)));
|
|
1134
|
-
}
|
|
1135
|
-
/* harmony default export */
|
|
1136
|
-
var __WEBPACK_DEFAULT_EXPORT__ = useClickOutside;
|
|
1137
|
-
})();
|
|
1138
|
-
|
|
1139
|
-
/******/
|
|
1140
|
-
return __webpack_exports__;
|
|
1141
|
-
/******/
|
|
1142
|
-
}()
|
|
1143
|
-
);
|
|
1144
|
-
});
|
|
1145
|
-
|
|
1146
|
-
/***/ }),
|
|
1147
|
-
|
|
1148
|
-
/***/ 85:
|
|
1149
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1150
|
-
|
|
1151
|
-
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
1152
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1153
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
1154
|
-
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
1155
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
1156
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
1157
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
1158
|
-
})(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
|
|
1159
|
-
return (/******/function () {
|
|
1160
|
-
// webpackBootstrap
|
|
1161
|
-
/******/
|
|
1162
|
-
"use strict";
|
|
1163
|
-
|
|
1164
|
-
/******/
|
|
1165
|
-
var __webpack_modules__ = {
|
|
1166
|
-
/***/787: /***/function _(module) {
|
|
1167
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
|
|
1168
|
-
|
|
1169
|
-
/***/
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
/******/
|
|
1173
|
-
};
|
|
1174
|
-
/************************************************************************/
|
|
1175
|
-
/******/ // The module cache
|
|
1176
|
-
/******/
|
|
1177
|
-
var __webpack_module_cache__ = {};
|
|
1178
|
-
/******/
|
|
1179
|
-
/******/ // The require function
|
|
1180
|
-
/******/
|
|
1181
|
-
function __nested_webpack_require_1465__(moduleId) {
|
|
1182
|
-
/******/ // Check if module is in cache
|
|
1183
|
-
/******/var cachedModule = __webpack_module_cache__[moduleId];
|
|
1184
|
-
/******/
|
|
1185
|
-
if (cachedModule !== undefined) {
|
|
1186
|
-
/******/return cachedModule.exports;
|
|
1187
|
-
/******/
|
|
1188
|
-
}
|
|
1189
|
-
/******/ // Create a new module (and put it into the cache)
|
|
1190
|
-
/******/
|
|
1191
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
1192
|
-
/******/ // no module.id needed
|
|
1193
|
-
/******/ // no module.loaded needed
|
|
1194
|
-
/******/exports: {}
|
|
1195
|
-
/******/
|
|
1196
|
-
};
|
|
1197
|
-
/******/
|
|
1198
|
-
/******/ // Execute the module function
|
|
1199
|
-
/******/
|
|
1200
|
-
__webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
|
|
1201
|
-
/******/
|
|
1202
|
-
/******/ // Return the exports of the module
|
|
1203
|
-
/******/
|
|
1204
|
-
return module.exports;
|
|
1205
|
-
/******/
|
|
1206
|
-
}
|
|
1207
|
-
/******/
|
|
1208
|
-
/************************************************************************/
|
|
1209
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
1210
|
-
/******/
|
|
1211
|
-
(function () {
|
|
1212
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1213
|
-
/******/__nested_webpack_require_1465__.n = function (module) {
|
|
1214
|
-
/******/var getter = module && module.__esModule ? /******/function () {
|
|
1215
|
-
return module['default'];
|
|
1216
|
-
} : /******/function () {
|
|
1217
|
-
return module;
|
|
1218
|
-
};
|
|
1219
|
-
/******/
|
|
1220
|
-
__nested_webpack_require_1465__.d(getter, {
|
|
1221
|
-
a: getter
|
|
1222
|
-
});
|
|
1223
|
-
/******/
|
|
1224
|
-
return getter;
|
|
1225
|
-
/******/
|
|
1226
|
-
};
|
|
1227
|
-
/******/
|
|
1228
|
-
})();
|
|
1229
|
-
/******/
|
|
1230
|
-
/******/ /* webpack/runtime/define property getters */
|
|
1231
|
-
/******/
|
|
1232
|
-
(function () {
|
|
1233
|
-
/******/ // define getter functions for harmony exports
|
|
1234
|
-
/******/__nested_webpack_require_1465__.d = function (exports, definition) {
|
|
1235
|
-
/******/for (var key in definition) {
|
|
1236
|
-
/******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
|
|
1237
|
-
/******/Object.defineProperty(exports, key, {
|
|
1238
|
-
enumerable: true,
|
|
1239
|
-
get: definition[key]
|
|
1240
|
-
});
|
|
1241
|
-
/******/
|
|
1242
|
-
}
|
|
1243
|
-
/******/
|
|
1244
|
-
}
|
|
1245
|
-
/******/
|
|
1246
|
-
};
|
|
1247
|
-
/******/
|
|
1248
|
-
})();
|
|
1249
|
-
/******/
|
|
1250
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1251
|
-
/******/
|
|
1252
|
-
(function () {
|
|
1253
|
-
/******/__nested_webpack_require_1465__.o = function (obj, prop) {
|
|
1254
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1255
|
-
};
|
|
1256
|
-
/******/
|
|
1257
|
-
})();
|
|
1258
|
-
/******/
|
|
1259
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
1260
|
-
/******/
|
|
1261
|
-
(function () {
|
|
1262
|
-
/******/ // define __esModule on exports
|
|
1263
|
-
/******/__nested_webpack_require_1465__.r = function (exports) {
|
|
1264
|
-
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1265
|
-
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
1266
|
-
value: 'Module'
|
|
1267
|
-
});
|
|
1268
|
-
/******/
|
|
1269
|
-
}
|
|
1270
|
-
/******/
|
|
1271
|
-
Object.defineProperty(exports, '__esModule', {
|
|
1272
|
-
value: true
|
|
1273
|
-
});
|
|
1274
|
-
/******/
|
|
1275
|
-
};
|
|
1276
|
-
/******/
|
|
1277
|
-
})();
|
|
1278
|
-
/******/
|
|
1279
|
-
/************************************************************************/
|
|
1280
|
-
var __webpack_exports__ = {};
|
|
1281
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
1282
|
-
(function () {
|
|
1283
|
-
__nested_webpack_require_1465__.r(__webpack_exports__);
|
|
1284
|
-
/* harmony export */
|
|
1285
|
-
__nested_webpack_require_1465__.d(__webpack_exports__, {
|
|
1286
|
-
/* harmony export */"default": function _default() {
|
|
1287
|
-
return __WEBPACK_DEFAULT_EXPORT__;
|
|
1288
|
-
}
|
|
1289
|
-
/* harmony export */
|
|
1290
|
-
});
|
|
1291
|
-
/* harmony import */
|
|
1292
|
-
var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
|
|
1293
|
-
/* harmony import */
|
|
1294
|
-
var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1295
|
-
/**
|
|
1296
|
-
* Create an available ID
|
|
1297
|
-
*
|
|
1298
|
-
*/
|
|
1299
|
-
|
|
1300
|
-
var useComId = function useComId() {
|
|
1301
|
-
return "ID-".concat((0, react__WEBPACK_IMPORTED_MODULE_0__.useId)().replace(/\:/g, "-"));
|
|
1302
|
-
};
|
|
1303
|
-
/* harmony default export */
|
|
1304
|
-
var __WEBPACK_DEFAULT_EXPORT__ = useComId;
|
|
1305
|
-
})();
|
|
1306
|
-
|
|
1307
|
-
/******/
|
|
1308
|
-
return __webpack_exports__;
|
|
1309
|
-
/******/
|
|
1310
|
-
}()
|
|
1311
|
-
);
|
|
1312
|
-
});
|
|
1313
|
-
|
|
1314
|
-
/***/ }),
|
|
1315
|
-
|
|
1316
|
-
/***/ 787:
|
|
1317
|
-
/***/ ((module) => {
|
|
1318
|
-
|
|
1319
|
-
"use strict";
|
|
1320
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
|
|
1321
|
-
|
|
1322
|
-
/***/ }),
|
|
1323
|
-
|
|
1324
|
-
/***/ 156:
|
|
1325
|
-
/***/ ((module) => {
|
|
1326
|
-
|
|
1327
|
-
"use strict";
|
|
1328
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
|
|
1329
|
-
|
|
1330
|
-
/***/ })
|
|
1331
|
-
|
|
1332
|
-
/******/ });
|
|
1333
|
-
/************************************************************************/
|
|
1334
|
-
/******/ // The module cache
|
|
1335
|
-
/******/ var __webpack_module_cache__ = {};
|
|
1336
|
-
/******/
|
|
1337
|
-
/******/ // The require function
|
|
1338
|
-
/******/ function __webpack_require__(moduleId) {
|
|
1339
|
-
/******/ // Check if module is in cache
|
|
1340
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
1341
|
-
/******/ if (cachedModule !== undefined) {
|
|
1342
|
-
/******/ return cachedModule.exports;
|
|
1343
|
-
/******/ }
|
|
1344
|
-
/******/ // Create a new module (and put it into the cache)
|
|
1345
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1346
|
-
/******/ id: moduleId,
|
|
1347
|
-
/******/ loaded: false,
|
|
1348
|
-
/******/ exports: {}
|
|
1349
|
-
/******/ };
|
|
1350
|
-
/******/
|
|
1351
|
-
/******/ // Execute the module function
|
|
1352
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
1353
|
-
/******/
|
|
1354
|
-
/******/ // Flag the module as loaded
|
|
1355
|
-
/******/ module.loaded = true;
|
|
1356
|
-
/******/
|
|
1357
|
-
/******/ // Return the exports of the module
|
|
1358
|
-
/******/ return module.exports;
|
|
1359
|
-
/******/ }
|
|
1360
|
-
/******/
|
|
1361
|
-
/************************************************************************/
|
|
1362
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
1363
|
-
/******/ (() => {
|
|
1364
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1365
|
-
/******/ __webpack_require__.n = (module) => {
|
|
1366
|
-
/******/ var getter = module && module.__esModule ?
|
|
1367
|
-
/******/ () => (module['default']) :
|
|
1368
|
-
/******/ () => (module);
|
|
1369
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
1370
|
-
/******/ return getter;
|
|
1371
|
-
/******/ };
|
|
1372
|
-
/******/ })();
|
|
1373
|
-
/******/
|
|
1374
|
-
/******/ /* webpack/runtime/define property getters */
|
|
1375
|
-
/******/ (() => {
|
|
1376
|
-
/******/ // define getter functions for harmony exports
|
|
1377
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
1378
|
-
/******/ for(var key in definition) {
|
|
1379
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1380
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1381
|
-
/******/ }
|
|
1382
|
-
/******/ }
|
|
1383
|
-
/******/ };
|
|
1384
|
-
/******/ })();
|
|
1385
|
-
/******/
|
|
1386
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1387
|
-
/******/ (() => {
|
|
1388
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
1389
|
-
/******/ })();
|
|
1390
|
-
/******/
|
|
1391
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
1392
|
-
/******/ (() => {
|
|
1393
|
-
/******/ // define __esModule on exports
|
|
1394
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
1395
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1396
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1397
|
-
/******/ }
|
|
1398
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
1399
|
-
/******/ };
|
|
1400
|
-
/******/ })();
|
|
1401
|
-
/******/
|
|
1402
|
-
/******/ /* webpack/runtime/node module decorator */
|
|
1403
|
-
/******/ (() => {
|
|
1404
|
-
/******/ __webpack_require__.nmd = (module) => {
|
|
1405
|
-
/******/ module.paths = [];
|
|
1406
|
-
/******/ if (!module.children) module.children = [];
|
|
1407
|
-
/******/ return module;
|
|
1408
|
-
/******/ };
|
|
1409
|
-
/******/ })();
|
|
1410
|
-
/******/
|
|
1411
|
-
/************************************************************************/
|
|
1412
|
-
var __webpack_exports__ = {};
|
|
1413
|
-
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
1414
|
-
(() => {
|
|
1415
|
-
"use strict";
|
|
1416
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1417
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1418
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1419
|
-
/* harmony export */ });
|
|
1420
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(787);
|
|
1421
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1422
|
-
/* harmony import */ var funda_root_portal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(909);
|
|
1423
|
-
/* harmony import */ var funda_root_portal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(funda_root_portal__WEBPACK_IMPORTED_MODULE_1__);
|
|
1424
|
-
/* harmony import */ var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85);
|
|
1425
|
-
/* harmony import */ var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2__);
|
|
1426
|
-
/* harmony import */ var funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(761);
|
|
1427
|
-
/* harmony import */ var funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_3__);
|
|
1428
|
-
/* harmony import */ var funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(767);
|
|
1429
|
-
/* harmony import */ var funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_4__);
|
|
1430
|
-
/* harmony import */ var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(188);
|
|
1431
|
-
/* harmony import */ var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_5__);
|
|
1432
|
-
/* harmony import */ var funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(954);
|
|
1433
|
-
/* harmony import */ var funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_6__);
|
|
1434
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1435
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1436
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1437
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1438
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1439
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1440
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
1441
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1442
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
1443
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1444
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
1445
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
// Use forwardRef to expose imperative methods
|
|
1454
|
-
var Tooltip = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
|
1455
|
-
var triggerClassName = props.triggerClassName,
|
|
1456
|
-
wrapperClassName = props.wrapperClassName,
|
|
1457
|
-
direction = props.direction,
|
|
1458
|
-
offset = props.offset,
|
|
1459
|
-
exceededSidePosOffset = props.exceededSidePosOffset,
|
|
1460
|
-
size = props.size,
|
|
1461
|
-
hoverDelay = props.hoverDelay,
|
|
1462
|
-
mouseOutDelay = props.mouseOutDelay,
|
|
1463
|
-
content = props.content,
|
|
1464
|
-
id = props.id,
|
|
1465
|
-
children = props.children,
|
|
1466
|
-
controlled = props.controlled,
|
|
1467
|
-
popupArrowColor = props.popupArrowColor,
|
|
1468
|
-
popupContentStyle = props.popupContentStyle,
|
|
1469
|
-
delayedClose = props.delayedClose,
|
|
1470
|
-
delayedCloseTimeout = props.delayedCloseTimeout,
|
|
1471
|
-
onContentMouseEnter = props.onContentMouseEnter,
|
|
1472
|
-
onContentMouseLeave = props.onContentMouseLeave;
|
|
1473
|
-
var POS_OFFSET = Number(offset) || 4;
|
|
1474
|
-
var EXCEEDED_SIDE_POS_OFFSET = Number(exceededSidePosOffset) || 15;
|
|
1475
|
-
var uniqueID = funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2___default()();
|
|
1476
|
-
var idRes = id || uniqueID;
|
|
1477
|
-
var rootRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
1478
|
-
var modalRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
1479
|
-
var HOVER_DELAY = hoverDelay ? hoverDelay : 200;
|
|
1480
|
-
var MOUSE_OUT_DELAY = mouseOutDelay ? mouseOutDelay : HOVER_DELAY;
|
|
1481
|
-
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
1482
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1483
|
-
hasBeenShown = _useState2[0],
|
|
1484
|
-
setHasBeenShown = _useState2[1];
|
|
1485
|
-
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
1486
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
1487
|
-
isShow = _useState4[0],
|
|
1488
|
-
setIsShow = _useState4[1];
|
|
1489
|
-
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({
|
|
1490
|
-
x: 0,
|
|
1491
|
-
y: 0
|
|
1492
|
-
}),
|
|
1493
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
1494
|
-
position = _useState6[0],
|
|
1495
|
-
setPosition = _useState6[1];
|
|
1496
|
-
var popupArrowStyle = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
|
1497
|
-
if (typeof popupArrowColor !== 'undefined' && Array.isArray(popupArrowColor) && popupArrowColor.length === 4) {
|
|
1498
|
-
return {
|
|
1499
|
-
'--cus-tooltip-arrow-bg-top': "url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%28".concat(popupArrowColor[0], ",%20").concat(popupArrowColor[1], ",%20").concat(popupArrowColor[2], ",%20").concat(popupArrowColor[3], "%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E\") no-repeat"),
|
|
1500
|
-
'--cus-tooltip-arrow-bg-bottom': "url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%28".concat(popupArrowColor[0], ",%20").concat(popupArrowColor[1], ",%20").concat(popupArrowColor[2], ",%20").concat(popupArrowColor[3], "%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E\") no-repeat"),
|
|
1501
|
-
'--cus-tooltip-arrow-bg-left': "url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%28".concat(popupArrowColor[0], ",%20").concat(popupArrowColor[1], ",%20").concat(popupArrowColor[2], ",%20").concat(popupArrowColor[3], "%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E\") no-repeat"),
|
|
1502
|
-
'--cus-tooltip-arrow-bg-right': "url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%28".concat(popupArrowColor[0], ",%20").concat(popupArrowColor[1], ",%20").concat(popupArrowColor[2], ",%20").concat(popupArrowColor[3], "%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E\") no-repeat")
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
return undefined;
|
|
1506
|
-
}, [popupArrowColor]);
|
|
1507
|
-
|
|
1508
|
-
// Expose show/hide methods to parent via ref
|
|
1509
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(ref, function () {
|
|
1510
|
-
return {
|
|
1511
|
-
show: function show() {
|
|
1512
|
-
// Find the trigger element
|
|
1513
|
-
var triggerEl = rootRef.current;
|
|
1514
|
-
if (triggerEl) {
|
|
1515
|
-
// Calculate position (copy from handleMouseEnter)
|
|
1516
|
-
var _getAbsolutePositionO = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_4__.getAbsolutePositionOfStage)(triggerEl),
|
|
1517
|
-
x = _getAbsolutePositionO.x,
|
|
1518
|
-
y = _getAbsolutePositionO.y,
|
|
1519
|
-
width = _getAbsolutePositionO.width,
|
|
1520
|
-
height = _getAbsolutePositionO.height;
|
|
1521
|
-
var pos = triggerEl.dataset.microtipPosition;
|
|
1522
|
-
if (typeof pos === 'undefined') pos = 'top';
|
|
1523
|
-
if (pos.indexOf('top') >= 0) {
|
|
1524
|
-
setPosition({
|
|
1525
|
-
x: x + width / 2 + 'px',
|
|
1526
|
-
y: y - height - POS_OFFSET + 'px'
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
if (pos.indexOf('bottom') >= 0) {
|
|
1530
|
-
setPosition({
|
|
1531
|
-
x: x + width / 2 + 'px',
|
|
1532
|
-
y: y + height + POS_OFFSET + 'px'
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
setIsShow(true);
|
|
1537
|
-
},
|
|
1538
|
-
hide: function hide() {
|
|
1539
|
-
hideTip();
|
|
1540
|
-
}
|
|
1541
|
-
};
|
|
1542
|
-
}, [POS_OFFSET]);
|
|
1543
|
-
|
|
1544
|
-
// click outside
|
|
1545
|
-
funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_3___default()({
|
|
1546
|
-
enabled: isShow && rootRef.current && !controlled,
|
|
1547
|
-
// Only auto-close if not controlled
|
|
1548
|
-
isOutside: function isOutside(event) {
|
|
1549
|
-
// Prevent closing when clicking inside the tooltip wrapper
|
|
1550
|
-
if (modalRef.current && modalRef.current.contains(event.target)) {
|
|
1551
|
-
return false; // Click is inside the tooltip wrapper, do not close
|
|
1552
|
-
}
|
|
1553
|
-
// close dropdown when other dropdown is opened
|
|
1554
|
-
return rootRef.current !== event.target && !rootRef.current.contains(event.target);
|
|
1555
|
-
},
|
|
1556
|
-
handle: function handle(event) {
|
|
1557
|
-
hideTip();
|
|
1558
|
-
}
|
|
1559
|
-
}, [isShow, rootRef, controlled]);
|
|
1560
|
-
|
|
1561
|
-
//timer hover
|
|
1562
|
-
var timeoutHoverIdRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
1563
|
-
var startTimerHover = function startTimerHover() {
|
|
1564
|
-
timeoutHoverIdRef.current = setTimeout(function () {
|
|
1565
|
-
if (!hasBeenShown) {
|
|
1566
|
-
// this will render once, then fire componentDidUpdate, which will show the tip
|
|
1567
|
-
setHasBeenShown(true);
|
|
1568
|
-
}
|
|
1569
|
-
setIsShow(true);
|
|
1570
|
-
}, HOVER_DELAY);
|
|
1571
|
-
};
|
|
1572
|
-
var stopTimerHover = function stopTimerHover() {
|
|
1573
|
-
clearTimeout(timeoutHoverIdRef.current);
|
|
1574
|
-
timeoutHoverIdRef.current = null;
|
|
1575
|
-
};
|
|
1576
|
-
|
|
1577
|
-
//timer mouseout
|
|
1578
|
-
var timeoutMouseoutIdRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
1579
|
-
var startTimerMouseout = function startTimerMouseout() {
|
|
1580
|
-
timeoutMouseoutIdRef.current = setTimeout(function () {
|
|
1581
|
-
hideTip();
|
|
1582
|
-
}, MOUSE_OUT_DELAY);
|
|
1583
|
-
};
|
|
1584
|
-
var stopTimerMouseout = function stopTimerMouseout() {
|
|
1585
|
-
clearTimeout(timeoutMouseoutIdRef.current);
|
|
1586
|
-
timeoutMouseoutIdRef.current = null;
|
|
1587
|
-
};
|
|
1588
|
-
var exceededOffsetInit = function exceededOffsetInit() {
|
|
1589
|
-
// Determine whether it exceeds the far right or left side of the screen
|
|
1590
|
-
//------------------
|
|
1591
|
-
var _modalRef = modalRef.current;
|
|
1592
|
-
if (_modalRef === null) return;
|
|
1593
|
-
var _modalContent = _modalRef.querySelector('.cus-tooltip__content');
|
|
1594
|
-
var _modalBox = _modalContent.getBoundingClientRect();
|
|
1595
|
-
if (typeof _modalContent.dataset.offset === 'undefined' && _modalBox.left > 0) {
|
|
1596
|
-
// Adjust the coordinates due to height
|
|
1597
|
-
//------------------
|
|
1598
|
-
var triggerEl = document.querySelector("[data-overlay-id=\"".concat(_modalRef.id, "\"]"));
|
|
1599
|
-
if (triggerEl !== null) {
|
|
1600
|
-
var pos = triggerEl.dataset.microtipPosition;
|
|
1601
|
-
if (typeof pos === 'undefined') pos = 'top';
|
|
1602
|
-
var _offsetY = _modalBox.height - (0,funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_6__.getElCSS)(_modalContent, 'font-size', true) - (0,funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_6__.getElCSS)(_modalContent, 'padding-top', true) - (0,funda_utils_dist_cjs_inputsCalculation__WEBPACK_IMPORTED_MODULE_6__.getElCSS)(_modalContent, 'padding-bottom', true);
|
|
1603
|
-
|
|
1604
|
-
// TOP
|
|
1605
|
-
//
|
|
1606
|
-
if (pos.indexOf('top') >= 0) {
|
|
1607
|
-
_modalRef.style.transform = "translateY(-".concat(_offsetY, "px)");
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
// 10 pixels is used to account for some bias in mobile devices
|
|
1612
|
-
//------------------
|
|
1613
|
-
if (_modalBox.right + 10 > window.innerWidth) {
|
|
1614
|
-
var _modalOffsetPosition = _modalBox.right - window.innerWidth + EXCEEDED_SIDE_POS_OFFSET;
|
|
1615
|
-
_modalContent.dataset.offset = _modalOffsetPosition;
|
|
1616
|
-
_modalContent.style.marginLeft = "-".concat(_modalOffsetPosition, "px");
|
|
1617
|
-
// console.log('_modalPosition: ', _modalOffsetPosition)
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
if (_modalBox.left - 10 < 0) {
|
|
1621
|
-
var _modalOffsetPosition2 = Math.abs(_modalBox.left) + EXCEEDED_SIDE_POS_OFFSET;
|
|
1622
|
-
_modalContent.dataset.offset = _modalOffsetPosition2;
|
|
1623
|
-
_modalContent.style.marginLeft = "".concat(_modalOffsetPosition2, "px");
|
|
1624
|
-
|
|
1625
|
-
// console.log('_modalPosition: ', _modalOffsetPosition)
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
};
|
|
1629
|
-
|
|
1630
|
-
function handleMouseEnter(e) {
|
|
1631
|
-
if (controlled) return; // Do nothing if controlled
|
|
1632
|
-
stopTimerHover();
|
|
1633
|
-
stopTimerMouseout();
|
|
1634
|
-
startTimerHover();
|
|
1635
|
-
|
|
1636
|
-
// update modal position
|
|
1637
|
-
//------------------
|
|
1638
|
-
var _triggerRef = e.currentTarget;
|
|
1639
|
-
|
|
1640
|
-
// console.log(getAbsolutePositionOfStage(_triggerRef));
|
|
1641
|
-
if (_triggerRef !== null) {
|
|
1642
|
-
var _getAbsolutePositionO2 = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_4__.getAbsolutePositionOfStage)(_triggerRef),
|
|
1643
|
-
x = _getAbsolutePositionO2.x,
|
|
1644
|
-
y = _getAbsolutePositionO2.y,
|
|
1645
|
-
width = _getAbsolutePositionO2.width,
|
|
1646
|
-
height = _getAbsolutePositionO2.height;
|
|
1647
|
-
var pos = _triggerRef.dataset.microtipPosition;
|
|
1648
|
-
if (typeof pos === 'undefined') pos = 'top';
|
|
1649
|
-
|
|
1650
|
-
// TOP
|
|
1651
|
-
//
|
|
1652
|
-
if (pos.indexOf('top') >= 0) {
|
|
1653
|
-
setPosition({
|
|
1654
|
-
x: x + width / 2 + 'px',
|
|
1655
|
-
y: y - height - POS_OFFSET + 'px'
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
// BOTTOM
|
|
1660
|
-
//
|
|
1661
|
-
if (pos.indexOf('bottom') >= 0) {
|
|
1662
|
-
setPosition({
|
|
1663
|
-
x: x + width / 2 + 'px',
|
|
1664
|
-
y: y + height + POS_OFFSET + 'px'
|
|
1665
|
-
});
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
}
|
|
1669
|
-
function handleMouseLeave() {
|
|
1670
|
-
if (controlled) return; // Do nothing if controlled
|
|
1671
|
-
stopTimerHover();
|
|
1672
|
-
stopTimerMouseout();
|
|
1673
|
-
startTimerMouseout();
|
|
1674
|
-
}
|
|
1675
|
-
function hideTip() {
|
|
1676
|
-
setIsShow(false);
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
// Timer for delayed close
|
|
1680
|
-
var delayedCloseTimerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
1681
|
-
var DELAYED_CLOSE_TIMEOUT = typeof delayedCloseTimeout === 'number' ? delayedCloseTimeout : 1500;
|
|
1682
|
-
|
|
1683
|
-
// Handler for mouse leave on trigger (when delayedClose is enabled)
|
|
1684
|
-
function handleTriggerMouseLeave() {
|
|
1685
|
-
if (controlled) return;
|
|
1686
|
-
if (delayedClose) {
|
|
1687
|
-
// Start delayed close timer
|
|
1688
|
-
if (delayedCloseTimerRef.current) clearTimeout(delayedCloseTimerRef.current);
|
|
1689
|
-
delayedCloseTimerRef.current = setTimeout(function () {
|
|
1690
|
-
hideTip();
|
|
1691
|
-
}, DELAYED_CLOSE_TIMEOUT);
|
|
1692
|
-
} else {
|
|
1693
|
-
stopTimerHover();
|
|
1694
|
-
stopTimerMouseout();
|
|
1695
|
-
startTimerMouseout();
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
// Handler for mouse enter on wrapper (cancel delayed close)
|
|
1700
|
-
function handleWrapperMouseEnter(event) {
|
|
1701
|
-
if (controlled) return;
|
|
1702
|
-
if (delayedClose && delayedCloseTimerRef.current) {
|
|
1703
|
-
clearTimeout(delayedCloseTimerRef.current);
|
|
1704
|
-
delayedCloseTimerRef.current = null;
|
|
1705
|
-
}
|
|
1706
|
-
// Call user-provided handler if present
|
|
1707
|
-
if (onContentMouseEnter && event) {
|
|
1708
|
-
onContentMouseEnter(event);
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
// Handler for mouse leave on wrapper (restart delayed close timer)
|
|
1713
|
-
function handleWrapperMouseLeave(event) {
|
|
1714
|
-
if (controlled) return;
|
|
1715
|
-
if (delayedClose) {
|
|
1716
|
-
if (delayedCloseTimerRef.current) clearTimeout(delayedCloseTimerRef.current);
|
|
1717
|
-
delayedCloseTimerRef.current = setTimeout(function () {
|
|
1718
|
-
hideTip();
|
|
1719
|
-
}, DELAYED_CLOSE_TIMEOUT);
|
|
1720
|
-
}
|
|
1721
|
-
// Call user-provided handler if present
|
|
1722
|
-
if (onContentMouseLeave && event) {
|
|
1723
|
-
onContentMouseLeave(event);
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
1727
|
-
return function () {
|
|
1728
|
-
stopTimerHover();
|
|
1729
|
-
stopTimerMouseout();
|
|
1730
|
-
if (delayedCloseTimerRef.current) clearTimeout(delayedCloseTimerRef.current);
|
|
1731
|
-
};
|
|
1732
|
-
}, []);
|
|
1733
|
-
|
|
1734
|
-
// Prevent element data from being unable to be obtained when ref is null
|
|
1735
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
1736
|
-
exceededOffsetInit();
|
|
1737
|
-
});
|
|
1738
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
1739
|
-
ref: rootRef,
|
|
1740
|
-
"data-overlay-id": "cus-tooltip__wrapper-".concat(idRes),
|
|
1741
|
-
className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_5__.combinedCls)('cus-tooltip__trigger', (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_5__.clsWrite)(triggerClassName, 'd-inline-block')),
|
|
1742
|
-
"data-microtip-position": direction || 'top',
|
|
1743
|
-
"data-microtip-size": size || 'auto',
|
|
1744
|
-
onMouseEnter: handleMouseEnter,
|
|
1745
|
-
onMouseLeave: delayedClose ? handleTriggerMouseLeave : handleMouseLeave
|
|
1746
|
-
}, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_root_portal__WEBPACK_IMPORTED_MODULE_1___default()), {
|
|
1747
|
-
show: isShow,
|
|
1748
|
-
containerClassName: "Tooltip"
|
|
1749
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
1750
|
-
ref: modalRef,
|
|
1751
|
-
id: "cus-tooltip__wrapper-".concat(idRes),
|
|
1752
|
-
className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_5__.combinedCls)('cus-tooltip__wrapper', wrapperClassName, 'active'),
|
|
1753
|
-
role: "tooltip",
|
|
1754
|
-
"data-microtip-position": direction || 'top',
|
|
1755
|
-
"data-microtip-size": size || 'auto',
|
|
1756
|
-
style: _objectSpread({
|
|
1757
|
-
left: position.x,
|
|
1758
|
-
top: position.y,
|
|
1759
|
-
display: 'none'
|
|
1760
|
-
}, popupArrowStyle),
|
|
1761
|
-
onMouseEnter: delayedClose || onContentMouseEnter ? function (e) {
|
|
1762
|
-
return handleWrapperMouseEnter(e);
|
|
1763
|
-
} : undefined,
|
|
1764
|
-
onMouseLeave: delayedClose || onContentMouseLeave ? function (e) {
|
|
1765
|
-
return handleWrapperMouseLeave(e);
|
|
1766
|
-
} : undefined
|
|
1767
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
1768
|
-
className: "cus-tooltip__content",
|
|
1769
|
-
style: _objectSpread({}, popupContentStyle)
|
|
1770
|
-
}, content))));
|
|
1771
|
-
});
|
|
1772
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tooltip);
|
|
1773
|
-
})();
|
|
1774
|
-
|
|
1775
|
-
/******/ return __webpack_exports__;
|
|
1776
|
-
/******/ })()
|
|
1777
|
-
;
|
|
1778
|
-
});
|