@onereach/ui-components 4.7.0-beta.2797.0 → 4.7.0-beta.2802.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/_baseAssignValue-22e630c1.js +38 -0
- package/dist/bundled/v2/_baseIsEqual-a1cc156c.js +1237 -0
- package/dist/bundled/v2/_baseProperty-a52739e9.js +15 -0
- package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +6 -4
- package/dist/bundled/v2/components/OrAvatar/index.js +6 -4
- package/dist/bundled/v2/components/OrButtonV2/OrButton.js +6 -4
- package/dist/bundled/v2/components/OrButtonV2/index.js +6 -5
- package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +6 -5
- package/dist/bundled/v2/components/OrCardCollection/index.js +6 -5
- package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +6 -4
- package/dist/bundled/v2/components/OrCarousel/index.js +6 -4
- package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +6 -4
- package/dist/bundled/v2/components/OrCheckbox/index.js +6 -4
- package/dist/bundled/v2/components/OrChip/OrChip.js +6 -4
- package/dist/bundled/v2/components/OrChip/index.js +6 -4
- package/dist/bundled/v2/components/OrChips/OrChips.js +6 -4
- package/dist/bundled/v2/components/OrChips/index.js +6 -4
- package/dist/bundled/v2/components/OrCode/OrCode.js +6 -5
- package/dist/bundled/v2/components/OrCode/index.js +6 -5
- package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +5 -3
- package/dist/bundled/v2/components/OrCollapse/index.js +5 -3
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +6 -4
- package/dist/bundled/v2/components/OrColorPicker/index.js +6 -4
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +6 -5
- package/dist/bundled/v2/components/OrConfirm/index.js +6 -5
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +331 -15
- package/dist/bundled/v2/components/OrDateTimePicker/index.js +9 -6
- package/dist/bundled/v2/components/OrFloating/OrFloating.js +6 -4
- package/dist/bundled/v2/components/OrFloating/index.js +6 -4
- package/dist/bundled/v2/components/OrIcon/OrIcon.js +6 -4
- package/dist/bundled/v2/components/OrIcon/index.js +6 -4
- package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +6 -5
- package/dist/bundled/v2/components/OrIconButtonV2/index.js +6 -5
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +6 -5
- package/dist/bundled/v2/components/OrInlineTextEdit/index.js +6 -5
- package/dist/bundled/v2/components/OrInput/OrInput.js +5 -3
- package/dist/bundled/v2/components/OrInput/index.js +5 -3
- package/dist/bundled/v2/components/OrList/OrList.js +842 -11
- package/dist/bundled/v2/components/OrList/index.js +10 -7
- package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +10 -7
- package/dist/bundled/v2/components/OrListOfInputs/index.js +10 -7
- package/dist/bundled/v2/components/OrModal/OrModal.js +6 -5
- package/dist/bundled/v2/components/OrModal/index.js +6 -5
- package/dist/bundled/v2/components/OrNotification/OrNotification.js +6 -5
- package/dist/bundled/v2/components/OrNotification/index.js +6 -5
- package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +5 -3
- package/dist/bundled/v2/components/OrNumberInput/index.js +5 -3
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +6 -5
- package/dist/bundled/v2/components/OrOverflowMenu/index.js +6 -5
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +6 -5
- package/dist/bundled/v2/components/OrPassword/index.js +6 -5
- package/dist/bundled/v2/components/OrProgress/OrProgress.js +6 -2
- package/dist/bundled/v2/components/OrProgress/index.js +5 -1
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +6 -2
- package/dist/bundled/v2/components/OrProgressV3/index.js +5 -1
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +9 -4
- package/dist/bundled/v2/components/OrRadio/index.js +7 -2
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +6 -5
- package/dist/bundled/v2/components/OrSearch/index.js +6 -5
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +556 -6
- package/dist/bundled/v2/components/OrSelect/index.js +10 -5
- package/dist/bundled/v2/components/OrSkeleton/index.js +5 -1
- package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +6 -2
- package/dist/bundled/v2/components/OrSkeletonText/index.js +5 -1
- package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +6 -2
- package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +5 -1
- package/dist/bundled/v2/components/OrSkeletonV3/index.js +5 -1
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +6 -4
- package/dist/bundled/v2/components/OrSlider/index.js +6 -4
- package/dist/bundled/v2/components/OrStepper/OrStepper.js +6 -4
- package/dist/bundled/v2/components/OrStepper/index.js +6 -4
- package/dist/bundled/v2/components/OrTag/OrTag.js +6 -4
- package/dist/bundled/v2/components/OrTag/index.js +6 -4
- package/dist/bundled/v2/components/OrTeleport/OrTeleport.js +580 -1
- package/dist/bundled/v2/components/OrTeleport/index.js +1 -1
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +5 -3
- package/dist/bundled/v2/components/OrTextarea/index.js +5 -3
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +6 -5
- package/dist/bundled/v2/components/OrTextbox/index.js +6 -5
- package/dist/bundled/v2/components/OrToast/OrToast.js +9 -6
- package/dist/bundled/v2/components/OrToast/index.js +9 -6
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +9 -6
- package/dist/bundled/v2/components/OrToastContainer/index.js +9 -6
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +33 -7
- package/dist/bundled/v2/components/OrTooltip/index.js +6 -5
- package/dist/bundled/v2/components/index.js +15 -12
- package/dist/bundled/v2/dom-700444b4.js +260 -0
- package/dist/bundled/v2/eq-95cd2573.js +77 -0
- package/dist/bundled/v2/get-ab1b7d93.js +856 -0
- package/dist/bundled/v2/index.js +15 -12
- package/dist/bundled/v2/isArrayLike-e46b8eac.js +91 -0
- package/dist/bundled/v2/isEqual-44382965.js +38 -0
- package/dist/bundled/v2/isObject-fe8b81fd.js +202 -0
- package/dist/bundled/v2/range-6f26eda4.js +136 -0
- package/dist/bundled/v2/round-f34440f4.js +66 -0
- package/dist/bundled/v2/toFinite-74227610.js +142 -0
- package/dist/bundled/v2/toInteger-2fd112a9.js +38 -0
- package/dist/bundled/v2/toString-f3196832.js +114 -0
- package/dist/bundled/v2/utils/functions/dom.js +5 -168
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-37b5b618.js → OrAvatar.vue_vue_type_script_lang-2a494943.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-cc8aa3a7.js → OrButton.vue_vue_type_script_lang-5ae410e5.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-46d661cc.js → OrCardCollection.vue_vue_type_script_lang-e5c98f3c.js} +3 -3
- package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-a619731b.js → OrCarousel.vue_vue_type_script_lang-272cb9c9.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-2b4d6aa3.js → OrCheckbox.vue_vue_type_script_lang-b1dd62bd.js} +1 -1
- package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-aaad645e.js → OrChip.vue_vue_type_script_lang-a182e324.js} +1 -1
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-ab6b8db5.js → OrChips.vue_vue_type_script_lang-9e98c258.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-c3c8e0aa.js → OrCode.vue_vue_type_script_lang-47b6eb5e.js} +2 -2
- package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-35fdcade.js → OrCollapse.vue_vue_type_script_lang-2a5c0929.js} +1 -1
- package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-c732755c.js → OrColorPicker.vue_vue_type_script_lang-b8dccbf5.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-d9c37f7b.js → OrConfirm.vue_vue_type_script_lang-53373fb5.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-fc15edc2.js → OrDateTimePicker.vue_vue_type_script_lang-a2837cdd.js} +329 -14
- package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-d01f7507.js → OrFloating.vue_vue_type_script_lang-d419627c.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-22a17b06.js → OrIcon.vue_vue_type_script_lang-cd2da378.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-b5d5718b.js → OrIconButton.vue_vue_type_script_lang-d1496a81.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-f94c8091.js → OrInlineTextEdit.vue_vue_type_script_lang-34c17332.js} +3 -3
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-5404596e.js → OrInput.vue_vue_type_script_lang-bf9fa981.js} +2 -2
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-29a5842e.js → OrList.vue_vue_type_script_lang-ccab1c75.js} +843 -9
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-740154ee.js → OrListOfInputs.vue_vue_type_script_lang-32d935ae.js} +4 -4
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-3d6a30f3.js → OrModal.vue_vue_type_script_lang-5a907c88.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-4e5a04fa.js → OrNotification.vue_vue_type_script_lang-3f6dd187.js} +2 -2
- package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-d56d7155.js → OrNumberInput.vue_vue_type_script_lang-1fb535e6.js} +1 -1
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-7ad3e88b.js → OrOverflowMenu.vue_vue_type_script_lang-fc625a1c.js} +3 -3
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-9f7b27ba.js → OrPassword.vue_vue_type_script_lang-316647cc.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-e0dda84c.js → OrProgress.vue_vue_type_script_lang-612e3d2a.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-46f3abbc.js → OrProgress.vue_vue_type_script_lang-a99362ae.js} +2 -2
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-e2d36ed5.js → OrRadio.vue_vue_type_script_lang-3a551734.js} +4 -4
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-a31ce207.js → OrSearch.vue_vue_type_script_lang-8bc87d07.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-8dc8b942.js → OrSelect.vue_vue_type_script_lang-3cee1b4a.js} +558 -6
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-b7c0a28e.js → OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js} +2 -2
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-15bd02fc.js → OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js} +2 -2
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-ed25debf.js → OrSlider.vue_vue_type_script_lang-4bcf3f03.js} +2 -2
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-c2dffcac.js → OrStepper.vue_vue_type_script_lang-67408a1a.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-d76e6df4.js → OrTag.vue_vue_type_script_lang-cbb4a16d.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-84594717.js → OrTextarea.vue_vue_type_script_lang-1ab55f91.js} +2 -2
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-ed48ed9b.js → OrTextbox.vue_vue_type_script_lang-1ec469f0.js} +3 -3
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-ebca0d7c.js → OrTooltip.vue_vue_type_script_lang-a06d73f0.js} +28 -4
- package/dist/bundled/v3/_baseAssignValue-22e630c1.js +38 -0
- package/dist/bundled/v3/_baseIsEqual-a1cc156c.js +1237 -0
- package/dist/bundled/v3/_baseProperty-a52739e9.js +15 -0
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +9 -7
- package/dist/bundled/v3/components/OrAvatar/index.js +8 -6
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +9 -7
- package/dist/bundled/v3/components/OrButtonV2/index.js +10 -9
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +14 -13
- package/dist/bundled/v3/components/OrCardCollection/index.js +13 -12
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +9 -7
- package/dist/bundled/v3/components/OrCarousel/index.js +8 -6
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +9 -7
- package/dist/bundled/v3/components/OrCheckbox/index.js +8 -6
- package/dist/bundled/v3/components/OrChip/OrChip.js +9 -7
- package/dist/bundled/v3/components/OrChip/index.js +8 -6
- package/dist/bundled/v3/components/OrChips/OrChips.js +10 -8
- package/dist/bundled/v3/components/OrChips/index.js +9 -7
- package/dist/bundled/v3/components/OrCode/OrCode.js +12 -11
- package/dist/bundled/v3/components/OrCode/index.js +11 -10
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +7 -5
- package/dist/bundled/v3/components/OrCollapse/index.js +6 -4
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +8 -6
- package/dist/bundled/v3/components/OrColorPicker/index.js +7 -5
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +15 -14
- package/dist/bundled/v3/components/OrConfirm/index.js +14 -13
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +15 -12
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +14 -11
- package/dist/bundled/v3/components/OrFloating/OrFloating.js +7 -5
- package/dist/bundled/v3/components/OrFloating/index.js +6 -4
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +8 -6
- package/dist/bundled/v3/components/OrIcon/index.js +7 -5
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +10 -9
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +9 -8
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +12 -11
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +11 -10
- package/dist/bundled/v3/components/OrInput/OrInput.js +8 -6
- package/dist/bundled/v3/components/OrInput/index.js +7 -5
- package/dist/bundled/v3/components/OrList/OrList.js +16 -13
- package/dist/bundled/v3/components/OrList/index.js +15 -12
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +19 -16
- package/dist/bundled/v3/components/OrListOfInputs/index.js +18 -15
- package/dist/bundled/v3/components/OrModal/OrModal.js +11 -10
- package/dist/bundled/v3/components/OrModal/index.js +10 -9
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +11 -10
- package/dist/bundled/v3/components/OrNotification/index.js +10 -9
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +9 -7
- package/dist/bundled/v3/components/OrNumberInput/index.js +8 -6
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +12 -11
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +11 -10
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +13 -12
- package/dist/bundled/v3/components/OrPassword/index.js +12 -11
- package/dist/bundled/v3/components/OrProgress/OrProgress.js +7 -3
- package/dist/bundled/v3/components/OrProgress/index.js +6 -2
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +7 -3
- package/dist/bundled/v3/components/OrProgressV3/index.js +6 -2
- package/dist/bundled/v3/components/OrRadio/OrRadio.js +9 -4
- package/dist/bundled/v3/components/OrRadio/index.js +8 -3
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +13 -12
- package/dist/bundled/v3/components/OrSearch/index.js +12 -11
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +15 -10
- package/dist/bundled/v3/components/OrSelect/index.js +14 -9
- package/dist/bundled/v3/components/OrSkeleton/index.js +6 -2
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +7 -3
- package/dist/bundled/v3/components/OrSkeletonText/index.js +6 -2
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +7 -3
- package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +6 -2
- package/dist/bundled/v3/components/OrSkeletonV3/index.js +6 -2
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +9 -7
- package/dist/bundled/v3/components/OrSlider/index.js +8 -6
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +10 -8
- package/dist/bundled/v3/components/OrStepper/index.js +9 -7
- package/dist/bundled/v3/components/OrTag/OrTag.js +9 -7
- package/dist/bundled/v3/components/OrTag/index.js +8 -6
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +8 -6
- package/dist/bundled/v3/components/OrTextarea/index.js +7 -5
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +12 -11
- package/dist/bundled/v3/components/OrTextbox/index.js +11 -10
- package/dist/bundled/v3/components/OrToast/OrToast.js +13 -10
- package/dist/bundled/v3/components/OrToast/index.js +14 -11
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +15 -12
- package/dist/bundled/v3/components/OrToastContainer/index.js +14 -11
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +8 -7
- package/dist/bundled/v3/components/OrTooltip/index.js +7 -6
- package/dist/bundled/v3/components/index.js +52 -48
- package/dist/bundled/v3/dom-700444b4.js +260 -0
- package/dist/bundled/v3/eq-95cd2573.js +77 -0
- package/dist/bundled/v3/get-ab1b7d93.js +856 -0
- package/dist/bundled/v3/index.js +52 -48
- package/dist/bundled/v3/isArrayLike-e46b8eac.js +91 -0
- package/dist/bundled/v3/isEqual-44382965.js +38 -0
- package/dist/bundled/v3/isObject-fe8b81fd.js +202 -0
- package/dist/bundled/v3/range-6f26eda4.js +136 -0
- package/dist/bundled/v3/round-f34440f4.js +66 -0
- package/dist/bundled/v3/toFinite-74227610.js +142 -0
- package/dist/bundled/v3/toInteger-2fd112a9.js +38 -0
- package/dist/bundled/v3/toString-f3196832.js +114 -0
- package/dist/bundled/v3/utils/functions/dom.js +5 -168
- package/package.json +3 -3
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-f1390ba8.js → OrToastContainer.vue_vue_type_script_lang-9b36232b.js} +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { e as eq_1 } from './eq-95cd2573.js';
|
|
2
|
+
import { i as isArrayLike_1, _ as _isIndex } from './isArrayLike-e46b8eac.js';
|
|
3
|
+
import { i as isObject_1 } from './isObject-fe8b81fd.js';
|
|
4
|
+
import { a as toFinite_1 } from './toFinite-74227610.js';
|
|
5
|
+
|
|
6
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
7
|
+
var nativeCeil = Math.ceil,
|
|
8
|
+
nativeMax = Math.max;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The base implementation of `_.range` and `_.rangeRight` which doesn't
|
|
12
|
+
* coerce arguments.
|
|
13
|
+
*
|
|
14
|
+
* @private
|
|
15
|
+
* @param {number} start The start of the range.
|
|
16
|
+
* @param {number} end The end of the range.
|
|
17
|
+
* @param {number} step The value to increment or decrement by.
|
|
18
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
19
|
+
* @returns {Array} Returns the range of numbers.
|
|
20
|
+
*/
|
|
21
|
+
function baseRange$1(start, end, step, fromRight) {
|
|
22
|
+
var index = -1,
|
|
23
|
+
length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
|
|
24
|
+
result = Array(length);
|
|
25
|
+
while (length--) {
|
|
26
|
+
result[fromRight ? length : ++index] = start;
|
|
27
|
+
start += step;
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
var _baseRange = baseRange$1;
|
|
32
|
+
|
|
33
|
+
var eq = eq_1,
|
|
34
|
+
isArrayLike = isArrayLike_1,
|
|
35
|
+
isIndex = _isIndex,
|
|
36
|
+
isObject = isObject_1;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Checks if the given arguments are from an iteratee call.
|
|
40
|
+
*
|
|
41
|
+
* @private
|
|
42
|
+
* @param {*} value The potential iteratee value argument.
|
|
43
|
+
* @param {*} index The potential iteratee index or key argument.
|
|
44
|
+
* @param {*} object The potential iteratee object argument.
|
|
45
|
+
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
46
|
+
* else `false`.
|
|
47
|
+
*/
|
|
48
|
+
function isIterateeCall$1(value, index, object) {
|
|
49
|
+
if (!isObject(object)) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
var type = typeof index;
|
|
53
|
+
if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
|
|
54
|
+
return eq(object[index], value);
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
var _isIterateeCall = isIterateeCall$1;
|
|
59
|
+
|
|
60
|
+
var baseRange = _baseRange,
|
|
61
|
+
isIterateeCall = _isIterateeCall,
|
|
62
|
+
toFinite = toFinite_1;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates a `_.range` or `_.rangeRight` function.
|
|
66
|
+
*
|
|
67
|
+
* @private
|
|
68
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
69
|
+
* @returns {Function} Returns the new range function.
|
|
70
|
+
*/
|
|
71
|
+
function createRange$1(fromRight) {
|
|
72
|
+
return function (start, end, step) {
|
|
73
|
+
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
|
|
74
|
+
end = step = undefined;
|
|
75
|
+
}
|
|
76
|
+
// Ensure the sign of `-0` is preserved.
|
|
77
|
+
start = toFinite(start);
|
|
78
|
+
if (end === undefined) {
|
|
79
|
+
end = start;
|
|
80
|
+
start = 0;
|
|
81
|
+
} else {
|
|
82
|
+
end = toFinite(end);
|
|
83
|
+
}
|
|
84
|
+
step = step === undefined ? start < end ? 1 : -1 : toFinite(step);
|
|
85
|
+
return baseRange(start, end, step, fromRight);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
var _createRange = createRange$1;
|
|
89
|
+
|
|
90
|
+
var createRange = _createRange;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Creates an array of numbers (positive and/or negative) progressing from
|
|
94
|
+
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
|
95
|
+
* `start` is specified without an `end` or `step`. If `end` is not specified,
|
|
96
|
+
* it's set to `start` with `start` then set to `0`.
|
|
97
|
+
*
|
|
98
|
+
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
|
99
|
+
* floating-point values which can produce unexpected results.
|
|
100
|
+
*
|
|
101
|
+
* @static
|
|
102
|
+
* @since 0.1.0
|
|
103
|
+
* @memberOf _
|
|
104
|
+
* @category Util
|
|
105
|
+
* @param {number} [start=0] The start of the range.
|
|
106
|
+
* @param {number} end The end of the range.
|
|
107
|
+
* @param {number} [step=1] The value to increment or decrement by.
|
|
108
|
+
* @returns {Array} Returns the range of numbers.
|
|
109
|
+
* @see _.inRange, _.rangeRight
|
|
110
|
+
* @example
|
|
111
|
+
*
|
|
112
|
+
* _.range(4);
|
|
113
|
+
* // => [0, 1, 2, 3]
|
|
114
|
+
*
|
|
115
|
+
* _.range(-4);
|
|
116
|
+
* // => [0, -1, -2, -3]
|
|
117
|
+
*
|
|
118
|
+
* _.range(1, 5);
|
|
119
|
+
* // => [1, 2, 3, 4]
|
|
120
|
+
*
|
|
121
|
+
* _.range(0, 20, 5);
|
|
122
|
+
* // => [0, 5, 10, 15]
|
|
123
|
+
*
|
|
124
|
+
* _.range(0, -4, -1);
|
|
125
|
+
* // => [0, -1, -2, -3]
|
|
126
|
+
*
|
|
127
|
+
* _.range(1, 4, 0);
|
|
128
|
+
* // => [1, 1, 1]
|
|
129
|
+
*
|
|
130
|
+
* _.range(0);
|
|
131
|
+
* // => []
|
|
132
|
+
*/
|
|
133
|
+
var range = createRange();
|
|
134
|
+
var range_1 = range;
|
|
135
|
+
|
|
136
|
+
export { range_1 as r };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { _ as _root } from './isObject-fe8b81fd.js';
|
|
2
|
+
import { t as toInteger_1 } from './toInteger-2fd112a9.js';
|
|
3
|
+
import { t as toNumber_1 } from './toFinite-74227610.js';
|
|
4
|
+
import { t as toString_1 } from './toString-f3196832.js';
|
|
5
|
+
|
|
6
|
+
var root = _root,
|
|
7
|
+
toInteger = toInteger_1,
|
|
8
|
+
toNumber = toNumber_1,
|
|
9
|
+
toString = toString_1;
|
|
10
|
+
|
|
11
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
12
|
+
var nativeIsFinite = root.isFinite,
|
|
13
|
+
nativeMin = Math.min;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Creates a function like `_.round`.
|
|
17
|
+
*
|
|
18
|
+
* @private
|
|
19
|
+
* @param {string} methodName The name of the `Math` method to use when rounding.
|
|
20
|
+
* @returns {Function} Returns the new round function.
|
|
21
|
+
*/
|
|
22
|
+
function createRound$1(methodName) {
|
|
23
|
+
var func = Math[methodName];
|
|
24
|
+
return function (number, precision) {
|
|
25
|
+
number = toNumber(number);
|
|
26
|
+
precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
|
|
27
|
+
if (precision && nativeIsFinite(number)) {
|
|
28
|
+
// Shift with exponential notation to avoid floating-point issues.
|
|
29
|
+
// See [MDN](https://mdn.io/round#Examples) for more details.
|
|
30
|
+
var pair = (toString(number) + 'e').split('e'),
|
|
31
|
+
value = func(pair[0] + 'e' + (+pair[1] + precision));
|
|
32
|
+
pair = (toString(value) + 'e').split('e');
|
|
33
|
+
return +(pair[0] + 'e' + (+pair[1] - precision));
|
|
34
|
+
}
|
|
35
|
+
return func(number);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
var _createRound = createRound$1;
|
|
39
|
+
|
|
40
|
+
var createRound = _createRound;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Computes `number` rounded to `precision`.
|
|
44
|
+
*
|
|
45
|
+
* @static
|
|
46
|
+
* @memberOf _
|
|
47
|
+
* @since 3.10.0
|
|
48
|
+
* @category Math
|
|
49
|
+
* @param {number} number The number to round.
|
|
50
|
+
* @param {number} [precision=0] The precision to round to.
|
|
51
|
+
* @returns {number} Returns the rounded number.
|
|
52
|
+
* @example
|
|
53
|
+
*
|
|
54
|
+
* _.round(4.006);
|
|
55
|
+
* // => 4
|
|
56
|
+
*
|
|
57
|
+
* _.round(4.006, 2);
|
|
58
|
+
* // => 4.01
|
|
59
|
+
*
|
|
60
|
+
* _.round(4060, -2);
|
|
61
|
+
* // => 4100
|
|
62
|
+
*/
|
|
63
|
+
var round = createRound('round');
|
|
64
|
+
var round_1 = round;
|
|
65
|
+
|
|
66
|
+
export { round_1 as r };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { i as isObject_1, d as isSymbol_1 } from './isObject-fe8b81fd.js';
|
|
2
|
+
|
|
3
|
+
/** Used to match a single whitespace character. */
|
|
4
|
+
var reWhitespace = /\s/;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
8
|
+
* character of `string`.
|
|
9
|
+
*
|
|
10
|
+
* @private
|
|
11
|
+
* @param {string} string The string to inspect.
|
|
12
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
13
|
+
*/
|
|
14
|
+
function trimmedEndIndex$1(string) {
|
|
15
|
+
var index = string.length;
|
|
16
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
17
|
+
return index;
|
|
18
|
+
}
|
|
19
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
20
|
+
|
|
21
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
22
|
+
|
|
23
|
+
/** Used to match leading whitespace. */
|
|
24
|
+
var reTrimStart = /^\s+/;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The base implementation of `_.trim`.
|
|
28
|
+
*
|
|
29
|
+
* @private
|
|
30
|
+
* @param {string} string The string to trim.
|
|
31
|
+
* @returns {string} Returns the trimmed string.
|
|
32
|
+
*/
|
|
33
|
+
function baseTrim$1(string) {
|
|
34
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string;
|
|
35
|
+
}
|
|
36
|
+
var _baseTrim = baseTrim$1;
|
|
37
|
+
|
|
38
|
+
var baseTrim = _baseTrim,
|
|
39
|
+
isObject = isObject_1,
|
|
40
|
+
isSymbol = isSymbol_1;
|
|
41
|
+
|
|
42
|
+
/** Used as references for various `Number` constants. */
|
|
43
|
+
var NAN = 0 / 0;
|
|
44
|
+
|
|
45
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
46
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
47
|
+
|
|
48
|
+
/** Used to detect binary string values. */
|
|
49
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
50
|
+
|
|
51
|
+
/** Used to detect octal string values. */
|
|
52
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
53
|
+
|
|
54
|
+
/** Built-in method references without a dependency on `root`. */
|
|
55
|
+
var freeParseInt = parseInt;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Converts `value` to a number.
|
|
59
|
+
*
|
|
60
|
+
* @static
|
|
61
|
+
* @memberOf _
|
|
62
|
+
* @since 4.0.0
|
|
63
|
+
* @category Lang
|
|
64
|
+
* @param {*} value The value to process.
|
|
65
|
+
* @returns {number} Returns the number.
|
|
66
|
+
* @example
|
|
67
|
+
*
|
|
68
|
+
* _.toNumber(3.2);
|
|
69
|
+
* // => 3.2
|
|
70
|
+
*
|
|
71
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
72
|
+
* // => 5e-324
|
|
73
|
+
*
|
|
74
|
+
* _.toNumber(Infinity);
|
|
75
|
+
* // => Infinity
|
|
76
|
+
*
|
|
77
|
+
* _.toNumber('3.2');
|
|
78
|
+
* // => 3.2
|
|
79
|
+
*/
|
|
80
|
+
function toNumber$1(value) {
|
|
81
|
+
if (typeof value == 'number') {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
if (isSymbol(value)) {
|
|
85
|
+
return NAN;
|
|
86
|
+
}
|
|
87
|
+
if (isObject(value)) {
|
|
88
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
89
|
+
value = isObject(other) ? other + '' : other;
|
|
90
|
+
}
|
|
91
|
+
if (typeof value != 'string') {
|
|
92
|
+
return value === 0 ? value : +value;
|
|
93
|
+
}
|
|
94
|
+
value = baseTrim(value);
|
|
95
|
+
var isBinary = reIsBinary.test(value);
|
|
96
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
97
|
+
}
|
|
98
|
+
var toNumber_1 = toNumber$1;
|
|
99
|
+
|
|
100
|
+
var toNumber = toNumber_1;
|
|
101
|
+
|
|
102
|
+
/** Used as references for various `Number` constants. */
|
|
103
|
+
var INFINITY = 1 / 0,
|
|
104
|
+
MAX_INTEGER = 1.7976931348623157e+308;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Converts `value` to a finite number.
|
|
108
|
+
*
|
|
109
|
+
* @static
|
|
110
|
+
* @memberOf _
|
|
111
|
+
* @since 4.12.0
|
|
112
|
+
* @category Lang
|
|
113
|
+
* @param {*} value The value to convert.
|
|
114
|
+
* @returns {number} Returns the converted number.
|
|
115
|
+
* @example
|
|
116
|
+
*
|
|
117
|
+
* _.toFinite(3.2);
|
|
118
|
+
* // => 3.2
|
|
119
|
+
*
|
|
120
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
121
|
+
* // => 5e-324
|
|
122
|
+
*
|
|
123
|
+
* _.toFinite(Infinity);
|
|
124
|
+
* // => 1.7976931348623157e+308
|
|
125
|
+
*
|
|
126
|
+
* _.toFinite('3.2');
|
|
127
|
+
* // => 3.2
|
|
128
|
+
*/
|
|
129
|
+
function toFinite(value) {
|
|
130
|
+
if (!value) {
|
|
131
|
+
return value === 0 ? value : 0;
|
|
132
|
+
}
|
|
133
|
+
value = toNumber(value);
|
|
134
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
135
|
+
var sign = value < 0 ? -1 : 1;
|
|
136
|
+
return sign * MAX_INTEGER;
|
|
137
|
+
}
|
|
138
|
+
return value === value ? value : 0;
|
|
139
|
+
}
|
|
140
|
+
var toFinite_1 = toFinite;
|
|
141
|
+
|
|
142
|
+
export { toFinite_1 as a, toNumber_1 as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { a as toFinite_1 } from './toFinite-74227610.js';
|
|
2
|
+
|
|
3
|
+
var toFinite = toFinite_1;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Converts `value` to an integer.
|
|
7
|
+
*
|
|
8
|
+
* **Note:** This method is loosely based on
|
|
9
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
10
|
+
*
|
|
11
|
+
* @static
|
|
12
|
+
* @memberOf _
|
|
13
|
+
* @since 4.0.0
|
|
14
|
+
* @category Lang
|
|
15
|
+
* @param {*} value The value to convert.
|
|
16
|
+
* @returns {number} Returns the converted integer.
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* _.toInteger(3.2);
|
|
20
|
+
* // => 3
|
|
21
|
+
*
|
|
22
|
+
* _.toInteger(Number.MIN_VALUE);
|
|
23
|
+
* // => 0
|
|
24
|
+
*
|
|
25
|
+
* _.toInteger(Infinity);
|
|
26
|
+
* // => 1.7976931348623157e+308
|
|
27
|
+
*
|
|
28
|
+
* _.toInteger('3.2');
|
|
29
|
+
* // => 3
|
|
30
|
+
*/
|
|
31
|
+
function toInteger(value) {
|
|
32
|
+
var result = toFinite(value),
|
|
33
|
+
remainder = result % 1;
|
|
34
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
35
|
+
}
|
|
36
|
+
var toInteger_1 = toInteger;
|
|
37
|
+
|
|
38
|
+
export { toInteger_1 as t };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { a as _Symbol, d as isSymbol_1 } from './isObject-fe8b81fd.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if `value` is classified as an `Array` object.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 0.1.0
|
|
9
|
+
* @category Lang
|
|
10
|
+
* @param {*} value The value to check.
|
|
11
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* _.isArray([1, 2, 3]);
|
|
15
|
+
* // => true
|
|
16
|
+
*
|
|
17
|
+
* _.isArray(document.body.children);
|
|
18
|
+
* // => false
|
|
19
|
+
*
|
|
20
|
+
* _.isArray('abc');
|
|
21
|
+
* // => false
|
|
22
|
+
*
|
|
23
|
+
* _.isArray(_.noop);
|
|
24
|
+
* // => false
|
|
25
|
+
*/
|
|
26
|
+
var isArray$1 = Array.isArray;
|
|
27
|
+
var isArray_1 = isArray$1;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
31
|
+
* shorthands.
|
|
32
|
+
*
|
|
33
|
+
* @private
|
|
34
|
+
* @param {Array} [array] The array to iterate over.
|
|
35
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
36
|
+
* @returns {Array} Returns the new mapped array.
|
|
37
|
+
*/
|
|
38
|
+
function arrayMap$1(array, iteratee) {
|
|
39
|
+
var index = -1,
|
|
40
|
+
length = array == null ? 0 : array.length,
|
|
41
|
+
result = Array(length);
|
|
42
|
+
while (++index < length) {
|
|
43
|
+
result[index] = iteratee(array[index], index, array);
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
var _arrayMap = arrayMap$1;
|
|
48
|
+
|
|
49
|
+
var Symbol = _Symbol,
|
|
50
|
+
arrayMap = _arrayMap,
|
|
51
|
+
isArray = isArray_1,
|
|
52
|
+
isSymbol = isSymbol_1;
|
|
53
|
+
|
|
54
|
+
/** Used as references for various `Number` constants. */
|
|
55
|
+
var INFINITY = 1 / 0;
|
|
56
|
+
|
|
57
|
+
/** Used to convert symbols to primitives and strings. */
|
|
58
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
59
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
63
|
+
* values to empty strings.
|
|
64
|
+
*
|
|
65
|
+
* @private
|
|
66
|
+
* @param {*} value The value to process.
|
|
67
|
+
* @returns {string} Returns the string.
|
|
68
|
+
*/
|
|
69
|
+
function baseToString$1(value) {
|
|
70
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
71
|
+
if (typeof value == 'string') {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
if (isArray(value)) {
|
|
75
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
76
|
+
return arrayMap(value, baseToString$1) + '';
|
|
77
|
+
}
|
|
78
|
+
if (isSymbol(value)) {
|
|
79
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
80
|
+
}
|
|
81
|
+
var result = value + '';
|
|
82
|
+
return result == '0' && 1 / value == -INFINITY ? '-0' : result;
|
|
83
|
+
}
|
|
84
|
+
var _baseToString = baseToString$1;
|
|
85
|
+
|
|
86
|
+
var baseToString = _baseToString;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
90
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
91
|
+
*
|
|
92
|
+
* @static
|
|
93
|
+
* @memberOf _
|
|
94
|
+
* @since 4.0.0
|
|
95
|
+
* @category Lang
|
|
96
|
+
* @param {*} value The value to convert.
|
|
97
|
+
* @returns {string} Returns the converted string.
|
|
98
|
+
* @example
|
|
99
|
+
*
|
|
100
|
+
* _.toString(null);
|
|
101
|
+
* // => ''
|
|
102
|
+
*
|
|
103
|
+
* _.toString(-0);
|
|
104
|
+
* // => '-0'
|
|
105
|
+
*
|
|
106
|
+
* _.toString([1, 2, 3]);
|
|
107
|
+
* // => '1,2,3'
|
|
108
|
+
*/
|
|
109
|
+
function toString(value) {
|
|
110
|
+
return value == null ? '' : baseToString(value);
|
|
111
|
+
}
|
|
112
|
+
var toString_1 = toString;
|
|
113
|
+
|
|
114
|
+
export { _baseToString as _, isArray_1 as i, toString_1 as t };
|
|
@@ -1,168 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const requestAF = ((WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.requestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.webkitRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.mozRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.msRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.oRequestAnimationFrame) || (
|
|
7
|
-
// Fallback, but not a true polyfill
|
|
8
|
-
// Only needed for Opera Mini
|
|
9
|
-
cb => setTimeout(cb, 16))).bind(WINDOW);
|
|
10
|
-
// eslint-disable-next-line no-unsafe-optional-chaining
|
|
11
|
-
const cancelAF = ((WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.cancelAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.mozCancelAnimationFrame)).bind(WINDOW);
|
|
12
|
-
// Remove a node from DOM
|
|
13
|
-
const removeNode = el => {
|
|
14
|
-
el && el.parentNode && el.parentNode.removeChild(el);
|
|
15
|
-
};
|
|
16
|
-
// Determine if an HTML element is visible - Faster than CSS check
|
|
17
|
-
const isVisible = el => {
|
|
18
|
-
if (!isElement(el) || !el.parentNode || !contains(document.body, el)) {
|
|
19
|
-
// Note this can fail for shadow dom elements since they
|
|
20
|
-
// are not a direct descendant of document.body
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
if (getStyle(el, 'display') === 'none') {
|
|
24
|
-
// We do this check to help with vue-test-utils when using v-show
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
// All browsers support getBoundingClientRect(), except JSDOM as it returns all 0's for values :(
|
|
28
|
-
// So any tests that need isVisible will fail in JSDOM
|
|
29
|
-
// Except when we override the getBCR prototype in some tests
|
|
30
|
-
const bcr = getBCR(el);
|
|
31
|
-
return !!(bcr && bcr.height > 0 && bcr.width > 0);
|
|
32
|
-
};
|
|
33
|
-
// Cause/wait-for an element to reflow its content (adjusting its height/width)
|
|
34
|
-
const reflow = el => {
|
|
35
|
-
// Requesting an elements offsetHeight will trigger a reflow of the element content
|
|
36
|
-
return get(el, ['offsetHeight'], null);
|
|
37
|
-
};
|
|
38
|
-
// Select all elements matching selector. Returns `[]` if none found
|
|
39
|
-
const selectAll = (selector, root) => [...(root && isElement(root) ? root : document).querySelectorAll(selector)];
|
|
40
|
-
// Select a single element, returns `null` if not found
|
|
41
|
-
const select = (selector, root) => (root && isElement(root) ? root : document).querySelector(selector) || null;
|
|
42
|
-
// Returns true if the parent element contains the child element
|
|
43
|
-
const contains = (parent, child) => parent && typeof parent.contains === 'function' ? parent.contains(child) : false;
|
|
44
|
-
// Get an element given an ID
|
|
45
|
-
const getById = id => document.getElementById(/^#/.test(id) ? id.slice(1) : id) || null;
|
|
46
|
-
// Add a class to an element
|
|
47
|
-
const addClass = (el, className) => {
|
|
48
|
-
// We are checking for `el.classList` existence here since IE 11
|
|
49
|
-
// returns `undefined` for some elements (e.g. SVG elements)
|
|
50
|
-
if (className && isElement(el) && el.classList) {
|
|
51
|
-
el.classList.add(className);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
// Remove a class from an element
|
|
55
|
-
const removeClass = (el, className) => {
|
|
56
|
-
// We are checking for `el.classList` existence here since IE 11
|
|
57
|
-
// returns `undefined` for some elements (e.g. SVG elements)
|
|
58
|
-
if (className && isElement(el) && el.classList) el.classList.remove(className);
|
|
59
|
-
};
|
|
60
|
-
// Test if an element has a class
|
|
61
|
-
const hasClass = (el, className) => {
|
|
62
|
-
// We are checking for `el.classList` existence here since IE 11
|
|
63
|
-
// returns `undefined` for some elements (e.g. SVG elements)
|
|
64
|
-
if (className && isElement(el) && el.classList) return el.classList.contains(className);
|
|
65
|
-
return false;
|
|
66
|
-
};
|
|
67
|
-
// Set an attribute on an element
|
|
68
|
-
const setAttr = (el, attr, value) => {
|
|
69
|
-
if (attr && isElement(el)) {
|
|
70
|
-
el.setAttribute(attr, value);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
// Remove an attribute from an element
|
|
74
|
-
const removeAttr = (el, attr) => {
|
|
75
|
-
if (attr && isElement(el)) {
|
|
76
|
-
el.removeAttribute(attr);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
// Get an attribute value from an element
|
|
80
|
-
const getAttr = (el, attr) => attr && isElement(el) ? el.getAttribute(attr) : null;
|
|
81
|
-
// Determine if an attribute exists on an element
|
|
82
|
-
// Returns `true` or `false`, or `null` if element not found
|
|
83
|
-
const hasAttr = (el, attr) => attr && isElement(el) ? el.hasAttribute(attr) : null;
|
|
84
|
-
// Set an style property on an element
|
|
85
|
-
const setStyle = (el, prop, value) => {
|
|
86
|
-
if (prop && isElement(el)) {
|
|
87
|
-
el.style[prop] = value;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
// Remove an style property from an element
|
|
91
|
-
const removeStyle = (el, prop) => {
|
|
92
|
-
if (prop && isElement(el)) {
|
|
93
|
-
el.style[prop] = '';
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
// Get an style property value from an element
|
|
97
|
-
// Returns `null` if not found
|
|
98
|
-
const getStyle = (el, prop) => prop && isElement(el) ? el.style[prop] || null : null;
|
|
99
|
-
// Return the Bounding Client Rect of an element
|
|
100
|
-
const getBCR = el => isElement(el) ? el.getBoundingClientRect() : null;
|
|
101
|
-
// Get computed style object for an element
|
|
102
|
-
const getCS = el => get(WINDOW, 'getComputedStyle', null) && isElement(el) ? getComputedStyle(el) : {};
|
|
103
|
-
// Return an element's offset with respect to document element
|
|
104
|
-
const offset = el => {
|
|
105
|
-
const _offset = {
|
|
106
|
-
top: 0,
|
|
107
|
-
left: 0
|
|
108
|
-
};
|
|
109
|
-
if (!isElement(el) || el.getClientRects().length === 0) {
|
|
110
|
-
return _offset;
|
|
111
|
-
}
|
|
112
|
-
const bcr = getBCR(el);
|
|
113
|
-
if (bcr) {
|
|
114
|
-
const win = el.ownerDocument.defaultView;
|
|
115
|
-
_offset.top = bcr.top + get(win, 'pageYOffset', 0);
|
|
116
|
-
_offset.left = bcr.left + get(win, 'pageXOffset', 0);
|
|
117
|
-
}
|
|
118
|
-
return _offset;
|
|
119
|
-
};
|
|
120
|
-
// Return an element's offset with respect to to its offsetParent
|
|
121
|
-
const position = el => {
|
|
122
|
-
let _offset = {
|
|
123
|
-
top: 0,
|
|
124
|
-
left: 0
|
|
125
|
-
};
|
|
126
|
-
if (!isElement(el)) {
|
|
127
|
-
return _offset;
|
|
128
|
-
}
|
|
129
|
-
let parentOffset = {
|
|
130
|
-
top: 0,
|
|
131
|
-
left: 0
|
|
132
|
-
};
|
|
133
|
-
const elStyles = getCS(el);
|
|
134
|
-
if (elStyles.position === 'fixed') {
|
|
135
|
-
_offset = getBCR(el) || _offset;
|
|
136
|
-
} else {
|
|
137
|
-
_offset = offset(el);
|
|
138
|
-
const doc = el.ownerDocument;
|
|
139
|
-
let offsetParent = el.offsetParent || doc.documentElement;
|
|
140
|
-
while (offsetParent && (offsetParent === doc.body || offsetParent === doc.documentElement) && getCS(offsetParent).position === 'static') {
|
|
141
|
-
offsetParent = offsetParent.parentNode;
|
|
142
|
-
}
|
|
143
|
-
if (offsetParent && offsetParent !== el && offsetParent.nodeType === Node.ELEMENT_NODE) {
|
|
144
|
-
parentOffset = offset(offsetParent);
|
|
145
|
-
const offsetParentStyles = getCS(offsetParent);
|
|
146
|
-
parentOffset.top += parseFloat(offsetParentStyles.borderTopWidth);
|
|
147
|
-
parentOffset.left += parseFloat(offsetParentStyles.borderLeftWidth);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
return {
|
|
151
|
-
top: _offset.top - parentOffset.top - parseFloat(elStyles.marginTop),
|
|
152
|
-
left: _offset.left - parentOffset.left - parseFloat(elStyles.marginLeft)
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
const getMaxZIndex = element => {
|
|
156
|
-
let maxZIndex = 0;
|
|
157
|
-
while (element) {
|
|
158
|
-
const cs = getCS(element);
|
|
159
|
-
const zIndex = cs.zIndex;
|
|
160
|
-
if (zIndex !== 'auto') {
|
|
161
|
-
maxZIndex = +zIndex > maxZIndex ? +zIndex : maxZIndex;
|
|
162
|
-
}
|
|
163
|
-
element = element.parentElement;
|
|
164
|
-
}
|
|
165
|
-
return maxZIndex;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export { MutationObs, addClass, cancelAF, contains, getAttr, getBCR, getById, getCS, getMaxZIndex, getStyle, hasAttr, hasClass, isVisible, offset, position, reflow, removeAttr, removeClass, removeNode, removeStyle, requestAF, select, selectAll, setAttr, setStyle };
|
|
1
|
+
export { M as MutationObs, b as addClass, c as cancelAF, m as contains, t as getAttr, f as getBCR, n as getById, g as getCS, h as getMaxZIndex, v as getStyle, u as hasAttr, o as hasClass, j as isVisible, w as offset, x as position, a as reflow, q as removeAttr, d as removeClass, i as removeNode, e as removeStyle, r as requestAF, l as select, k as selectAll, p as setAttr, s as setStyle } from '../../dom-700444b4.js';
|
|
2
|
+
import '../../get-ab1b7d93.js';
|
|
3
|
+
import '../../isObject-fe8b81fd.js';
|
|
4
|
+
import '../../toString-f3196832.js';
|
|
5
|
+
import '../../eq-95cd2573.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "4.7.0-beta.
|
|
3
|
+
"version": "4.7.0-beta.2802.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@babel/preset-env": "7.18.10",
|
|
56
|
-
"@onereach/rollup-vue-lib-config": "2.1
|
|
56
|
+
"@onereach/rollup-vue-lib-config": "2.2.1-SB15990.0",
|
|
57
57
|
"@rollup/plugin-replace": "4.0.0",
|
|
58
58
|
"@rollup/plugin-url": "^8.0.1",
|
|
59
59
|
"@storybook/addon-actions": "6.5.16",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@vue/composition-api": ">=1",
|
|
76
|
-
"@vueuse/core": "9
|
|
76
|
+
"@vueuse/core": "^9",
|
|
77
77
|
"lodash": ">=4.17.21",
|
|
78
78
|
"portal-vue": ">=2.1.7 <3.0.0",
|
|
79
79
|
"vue": ">=2.6.14 || >=3.0.5",
|