bitboss-ui 2.0.165 → 2.0.167
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/components/BaseButton/BaseButton.vue.d.ts +2 -1
- package/dist/components/BaseButton/RouterComponent.vue.d.ts +2 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +5 -2
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -4
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +106 -4
- package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +5 -1
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -3
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +5 -2
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +3 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +200 -10
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +10 -2
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -2
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +3 -2
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +2 -4
- package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -4
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +8 -2
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +5 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +2 -4
- package/dist/components/BaseTag/BaseTag.vue.d.ts +207 -6
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -2
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -2
- package/dist/components/BbAlert/BbAlert.vue.d.ts +2 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -2
- package/dist/components/BbBadge/BbBadge.vue.d.ts +3 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +3 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +3 -2
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -4
- package/dist/components/BbChip/BbChip.vue.d.ts +3 -2
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +241 -100
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +69 -126
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -2
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +5 -2
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +100 -9
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +10 -2
- package/dist/components/BbPagination/BbPagination.vue.d.ts +10 -6
- package/dist/components/BbPopover/BbPopover.vue.d.ts +168 -15
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +3 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +2 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +3 -2
- package/dist/components/BbRatio/BbRatio.vue.d.ts +2 -1
- package/dist/components/BbRows/BbRows.vue.d.ts +3 -5
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -4
- package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -2
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +6 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +3 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +2 -4
- package/dist/components/BbTab/BbTab.vue.d.ts +6 -2
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
- package/dist/components/BbTeleport.vue.d.ts +2 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +175 -7
- package/dist/components/BbTree/BbTree.vue.d.ts +2 -1
- package/dist/components/ClearableButton.vue.d.ts +1 -1
- package/dist/components/CommonFloating.vue.d.ts +6 -2
- package/dist/components/CommonInputInnerContainer.vue.d.ts +5 -2
- package/dist/components/CommonInputOuterContainer.vue.d.ts +5 -4
- package/dist/components/CommonPopover.vue.d.ts +42 -0
- package/dist/components/ErrorIcon.vue.d.ts +1 -1
- package/dist/components/ListBox.vue.d.ts +4 -6
- package/dist/components/OptionsContainer.vue.d.ts +4 -6
- package/dist/components/Transitions/Slide.vue.d.ts +2 -1
- package/dist/composables/useUntil.d.ts +7 -0
- package/dist/{style.css → index.css} +1 -1
- package/dist/index.js +148 -143
- package/dist/index100.js +122 -135
- package/dist/index102.js +100 -0
- package/dist/index104.js +24 -0
- package/dist/index106.js +144 -0
- package/dist/index107.js +106 -59
- package/dist/index109.js +101 -289
- package/dist/index11.js +2 -2
- package/dist/index111.js +37 -476
- package/dist/index113.js +31 -118
- package/dist/index115.js +43 -61
- package/dist/index117.js +86 -78
- package/dist/index119.js +296 -26
- package/dist/index12.js +6 -6
- package/dist/index121.js +470 -138
- package/dist/index123.js +117 -115
- package/dist/index125.js +110 -35
- package/dist/index127.js +115 -45
- package/dist/index129.js +28 -31
- package/dist/index13.js +5 -5
- package/dist/index131.js +117 -21
- package/dist/index133.js +120 -9
- package/dist/index135.js +2 -2
- package/dist/index136.js +21 -5
- package/dist/index137.js +375 -7
- package/dist/index138.js +9 -6
- package/dist/index139.js +25 -3
- package/dist/index140.js +2 -3
- package/dist/index141.js +5 -3
- package/dist/index142.js +9 -3
- package/dist/index143.js +6 -3
- package/dist/index144.js +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +1 -1
- package/dist/index149.js +1 -1
- package/dist/index15.js +15 -15
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/index160.js +1 -1
- package/dist/index161.js +1 -1
- package/dist/index162.js +1 -1
- package/dist/index163.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index166.js +2 -2
- package/dist/index167.js +5 -0
- package/dist/index168.js +2 -2
- package/dist/index169.js +5 -0
- package/dist/index17.js +6 -6
- package/dist/index170.js +1 -1
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +2 -2
- package/dist/index178.js +5 -0
- package/dist/index179.js +3 -2
- package/dist/index180.js +1 -1
- package/dist/index181.js +2 -3
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +1 -1
- package/dist/index185.js +1 -1
- package/dist/index186.js +1 -1
- package/dist/index187.js +1 -1
- package/dist/index188.js +2 -2
- package/dist/index189.js +3 -2
- package/dist/index19.js +10 -10
- package/dist/index190.js +1 -1
- package/dist/index191.js +2 -3
- package/dist/index192.js +1 -1
- package/dist/index193.js +5 -0
- package/dist/index194.js +1 -1
- package/dist/index195.js +5 -0
- package/dist/index196.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index200.js +1 -1
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +100 -77
- package/dist/index208.js +2 -4
- package/dist/index209.js +3 -40
- package/dist/index21.js +17 -17
- package/dist/index210.js +41 -20
- package/dist/index211.js +19 -93
- package/dist/index212.js +96 -0
- package/dist/{index213.js → index214.js} +9 -9
- package/dist/{index215.js → index216.js} +15 -15
- package/dist/index218.js +13 -13
- package/dist/index219.js +13 -5
- package/dist/index220.js +5 -16
- package/dist/index221.js +5 -16
- package/dist/index222.js +5 -19
- package/dist/index223.js +5 -15
- package/dist/index224.js +5 -19
- package/dist/index225.js +5 -27
- package/dist/index226.js +5 -3
- package/dist/index227.js +3 -2
- package/dist/index228.js +2 -8
- package/dist/index229.js +6 -248
- package/dist/index23.js +25 -25
- package/dist/index230.js +240 -42
- package/dist/index231.js +43 -35
- package/dist/index232.js +44 -5
- package/dist/index233.js +5 -60
- package/dist/index234.js +60 -3
- package/dist/index235.js +5 -85
- package/dist/index236.js +9 -0
- package/dist/index237.js +15 -29
- package/dist/index238.js +34 -17
- package/dist/index239.js +86 -51
- package/dist/index241.js +28 -11
- package/dist/index242.js +15 -14
- package/dist/index243.js +50 -124
- package/dist/index244.js +15 -2
- package/dist/index245.js +12 -6
- package/dist/index246.js +16 -2
- package/dist/index247.js +5 -9
- package/dist/index248.js +2 -2
- package/dist/index249.js +2 -4
- package/dist/index25.js +8 -8
- package/dist/index250.js +9 -2
- package/dist/index251.js +18 -7
- package/dist/index252.js +127 -14
- package/dist/index253.js +4 -34
- package/dist/index254.js +106 -2
- package/dist/index256.js +100 -2
- package/dist/index258.js +12 -126
- package/dist/index259.js +211 -89
- package/dist/index260.js +370 -0
- package/dist/index261.js +2 -100
- package/dist/index262.js +4 -0
- package/dist/index263.js +2 -12
- package/dist/index264.js +3 -228
- package/dist/index265.js +162 -354
- package/dist/index266.js +2 -176
- package/dist/index27.js +18 -18
- package/dist/index270.js +11 -23
- package/dist/index271.js +101 -3
- package/dist/index273.js +23 -16
- package/dist/index274.js +6 -281
- package/dist/index275.js +16 -6
- package/dist/index276.js +3 -2
- package/dist/index277.js +9 -2
- package/dist/index278.js +8 -2
- package/dist/index279.js +2 -2
- package/dist/index280.js +67 -2
- package/dist/index281.js +5 -2
- package/dist/index282.js +5 -2
- package/dist/index283.js +8 -2
- package/dist/index284.js +471 -2
- package/dist/index285.js +3 -2
- package/dist/index286.js +3 -2
- package/dist/index287.js +3 -28
- package/dist/index289.js +9 -0
- package/dist/index29.js +5 -5
- package/dist/index290.js +6 -6
- package/dist/index291.js +11 -7
- package/dist/index292.js +279 -10
- package/dist/index293.js +2 -431
- package/dist/index294.js +16 -3
- package/dist/index295.js +2 -3
- package/dist/index296.js +16 -3
- package/dist/index297.js +4 -0
- package/dist/index298.js +18 -223
- package/dist/index299.js +2 -3
- package/dist/index300.js +15 -17
- package/dist/index301.js +2 -9
- package/dist/index302.js +18 -199
- package/dist/index303.js +2 -2
- package/dist/index304.js +27 -4
- package/dist/index305.js +2 -2
- package/dist/index306.js +1 -1
- package/dist/index307.js +2 -8
- package/dist/index308.js +2 -126
- package/dist/index309.js +2 -3
- package/dist/index31.js +4 -4
- package/dist/index310.js +28 -3
- package/dist/index311.js +21 -1
- package/dist/index313.js +199 -126
- package/dist/index314.js +4 -2
- package/dist/index315.js +2 -67
- package/dist/index316.js +6 -5
- package/dist/index317.js +2 -89
- package/dist/index318.js +3 -3
- package/dist/index319.js +17 -3
- package/dist/index320.js +123 -56
- package/dist/index321.js +2 -33
- package/dist/index322.js +128 -27
- package/dist/index323.js +5 -0
- package/dist/index324.js +3 -480
- package/dist/index325.js +2 -7
- package/dist/index326.js +4 -7
- package/dist/index327.js +379 -16
- package/dist/index328.js +125 -7
- package/dist/index329.js +5 -6
- package/dist/index33.js +10 -10
- package/dist/index330.js +3 -8
- package/dist/index331.js +5 -58
- package/dist/index332.js +700 -57
- package/dist/index333.js +354 -5
- package/dist/index334.js +57 -7
- package/dist/index335.js +7 -3
- package/dist/index336.js +5 -46
- package/dist/index337.js +8 -2
- package/dist/index338.js +9 -0
- package/dist/index339.js +32 -2
- package/dist/index340.js +28 -2
- package/dist/index342.js +57 -46
- package/dist/index343.js +60 -0
- package/dist/index344.js +7 -0
- package/dist/index345.js +230 -0
- package/dist/index346.js +4 -0
- package/dist/index347.js +49 -0
- package/dist/index348.js +9 -0
- package/dist/index349.js +21 -0
- package/dist/index35.js +9 -9
- package/dist/index350.js +95 -0
- package/dist/index352.js +5 -0
- package/dist/index353.js +484 -0
- package/dist/index354.js +49 -0
- package/dist/index355.js +483 -0
- package/dist/index356.js +4 -0
- package/dist/index37.js +33 -33
- package/dist/index39.js +15 -15
- package/dist/index41.js +5 -5
- package/dist/index43.js +10 -10
- package/dist/index45.js +25 -25
- package/dist/index47.js +6 -6
- package/dist/index49.js +15 -15
- package/dist/index51.js +4 -4
- package/dist/index53.js +6 -6
- package/dist/index55.js +6 -6
- package/dist/index57.js +16 -16
- package/dist/index59.js +3 -3
- package/dist/index6.js +1 -1
- package/dist/index61.js +9 -9
- package/dist/index63.js +5 -5
- package/dist/index65.js +2 -2
- package/dist/index67.js +35 -107
- package/dist/index69.js +42 -85
- package/dist/index7.js +2 -2
- package/dist/index71.js +47 -56
- package/dist/index73.js +83 -54
- package/dist/index75.js +113 -273
- package/dist/index77.js +50 -158
- package/dist/index79.js +228 -194
- package/dist/index81.js +148 -40
- package/dist/index83.js +221 -0
- package/dist/index85.js +53 -0
- package/dist/index87.js +46 -0
- package/dist/index88.js +125 -184
- package/dist/index9.js +1 -1
- package/dist/index90.js +240 -26
- package/dist/index92.js +230 -86
- package/dist/index94.js +135 -117
- package/dist/index96.js +27 -94
- package/dist/index98.js +85 -15
- package/package.json +27 -28
- package/dist/index101.js +0 -178
- package/dist/index103.js +0 -116
- package/dist/index105.js +0 -100
- package/dist/index126.js +0 -46
- package/dist/index128.js +0 -49
- package/dist/index130.js +0 -4
- package/dist/index132.js +0 -346
- package/dist/index134.js +0 -27
- package/dist/index217.js +0 -15
- package/dist/index240.js +0 -17
- package/dist/index255.js +0 -4
- package/dist/index257.js +0 -20
- package/dist/index272.js +0 -8
- package/dist/index288.js +0 -24
- package/dist/index312.js +0 -438
- package/dist/index341.js +0 -426
- package/dist/index82.js +0 -136
- package/dist/index84.js +0 -247
- package/dist/index86.js +0 -238
package/dist/index162.js
CHANGED
package/dist/index163.js
CHANGED
package/dist/index164.js
CHANGED
package/dist/index165.js
CHANGED
package/dist/index166.js
CHANGED
package/dist/index167.js
ADDED
package/dist/index168.js
CHANGED
package/dist/index169.js
ADDED
package/dist/index17.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent as E, ref as m, computed as n, watch as _,
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as N } from "./
|
4
|
-
import { booleanishToBoolean as S } from "./
|
1
|
+
import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
|
2
|
+
import { isCssColor as y } from "./index261.js";
|
3
|
+
import { when as N } from "./index253.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index262.js";
|
5
5
|
const A = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
@@ -102,8 +102,8 @@ const A = {
|
|
102
102
|
() => {
|
103
103
|
s.value && (s.value.indeterminate = !!e.indeterminate);
|
104
104
|
}
|
105
|
-
), (a, c) => (
|
106
|
-
!r.value && a.submitWhenFalse ? (
|
105
|
+
), (a, c) => (h(), p("span", i(f(x.value)), [
|
106
|
+
!r.value && a.submitWhenFalse ? (h(), p("input", i(k({ key: 0 }, g.value)), null, 16)) : I("", !0),
|
107
107
|
l("input", k(b.value, {
|
108
108
|
ref_key: "checkboxInput",
|
109
109
|
ref: s
|
package/dist/index170.js
CHANGED
package/dist/index171.js
CHANGED
package/dist/index172.js
CHANGED
package/dist/index173.js
CHANGED
package/dist/index174.js
CHANGED
package/dist/index175.js
CHANGED
package/dist/index176.js
CHANGED
package/dist/index177.js
CHANGED
package/dist/index178.js
ADDED
package/dist/index179.js
CHANGED
package/dist/index180.js
CHANGED
package/dist/index181.js
CHANGED
package/dist/index182.js
CHANGED
package/dist/index183.js
CHANGED
package/dist/index184.js
CHANGED
package/dist/index185.js
CHANGED
package/dist/index186.js
CHANGED
package/dist/index187.js
CHANGED
package/dist/index188.js
CHANGED
package/dist/index189.js
CHANGED
package/dist/index19.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { defineComponent as j, ref as k, toRef as d,
|
1
|
+
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
|
2
2
|
import W from "./index17.js";
|
3
3
|
/* empty css */
|
4
|
-
import K from "./
|
4
|
+
import K from "./index239.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as N } from "./
|
7
|
-
import { useIndexById as w } from "./
|
8
|
-
import { useBaseOptions as U } from "./
|
9
|
-
import { useCoherence as q } from "./
|
10
|
-
import { hash as J } from "./
|
11
|
-
import { useHashedWatcher as C } from "./
|
12
|
-
import { usePrefill as Q } from "./
|
6
|
+
import { useItemsGetter as N } from "./index241.js";
|
7
|
+
import { useIndexById as w } from "./index242.js";
|
8
|
+
import { useBaseOptions as U } from "./index243.js";
|
9
|
+
import { useCoherence as q } from "./index244.js";
|
10
|
+
import { hash as J } from "./index227.js";
|
11
|
+
import { useHashedWatcher as C } from "./index245.js";
|
12
|
+
import { usePrefill as Q } from "./index246.js";
|
13
13
|
const de = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseCheckboxGroup",
|
15
15
|
props: {
|
@@ -119,7 +119,7 @@ const de = /* @__PURE__ */ j({
|
|
119
119
|
var t;
|
120
120
|
e.target instanceof HTMLElement && ((t = u.value) != null && t.$el.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
121
121
|
};
|
122
|
-
return (e, t) => (
|
122
|
+
return (e, t) => (G(), z(K, {
|
123
123
|
ref_key: "container",
|
124
124
|
ref: u,
|
125
125
|
class: "bb-base-checkbox-group",
|
package/dist/index190.js
CHANGED
package/dist/index191.js
CHANGED
package/dist/index192.js
CHANGED
package/dist/index193.js
ADDED
package/dist/index194.js
CHANGED
package/dist/index195.js
ADDED
package/dist/index196.js
CHANGED
package/dist/index197.js
CHANGED
package/dist/index198.js
CHANGED
package/dist/index199.js
CHANGED
package/dist/index200.js
CHANGED
package/dist/index201.js
CHANGED
package/dist/index202.js
CHANGED
package/dist/index203.js
CHANGED
package/dist/index204.js
CHANGED
package/dist/index205.js
CHANGED
package/dist/index206.js
CHANGED
@@ -1,117 +1,140 @@
|
|
1
|
-
import { getCurrentScope as
|
1
|
+
import { getCurrentScope as O, onScopeDispose as W, onMounted as S, nextTick as C, watch as F, isRef as P, getCurrentInstance as g, toValue as b, hasInjectionContext as k, inject as v } from "vue";
|
2
2
|
function V(e) {
|
3
|
-
return
|
3
|
+
return O() ? (W(e), !0) : !1;
|
4
4
|
}
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
const w = /* @__PURE__ */ new WeakMap(), E = (...e) => {
|
6
|
+
var r;
|
7
|
+
const n = e[0], t = (r = g()) == null ? void 0 : r.proxy;
|
8
|
+
if (t == null && !k())
|
9
|
+
throw new Error("injectLocal must be called in setup");
|
10
|
+
return t && w.has(t) && n in w.get(t) ? w.get(t)[n] : v(...e);
|
11
|
+
}, G = typeof window < "u" && typeof document < "u";
|
9
12
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
-
const
|
13
|
+
const _ = (e) => e != null, M = Object.prototype.toString, q = (e) => M.call(e) === "[object Object]", d = () => {
|
11
14
|
};
|
12
|
-
function
|
13
|
-
function
|
14
|
-
return new Promise((
|
15
|
-
Promise.resolve(e(() =>
|
15
|
+
function y(e, r) {
|
16
|
+
function n(...t) {
|
17
|
+
return new Promise((o, i) => {
|
18
|
+
Promise.resolve(e(() => r.apply(this, t), { fn: r, thisArg: this, args: t })).then(o).catch(i);
|
16
19
|
});
|
17
20
|
}
|
18
|
-
return
|
21
|
+
return n;
|
19
22
|
}
|
20
|
-
const
|
21
|
-
function
|
22
|
-
let
|
23
|
+
const A = (e) => e();
|
24
|
+
function x(e, r = {}) {
|
25
|
+
let n, t, o = d;
|
23
26
|
const i = (c) => {
|
24
|
-
clearTimeout(c),
|
27
|
+
clearTimeout(c), o(), o = d;
|
25
28
|
};
|
29
|
+
let u;
|
26
30
|
return (c) => {
|
27
|
-
const
|
28
|
-
return
|
29
|
-
|
30
|
-
|
31
|
-
},
|
32
|
-
|
33
|
-
},
|
31
|
+
const a = b(e), l = b(r.maxWait);
|
32
|
+
return n && i(n), a <= 0 || l !== void 0 && l <= 0 ? (t && (i(t), t = null), Promise.resolve(c())) : new Promise((f, p) => {
|
33
|
+
o = r.rejectOnCancel ? p : f, u = c, l && !t && (t = setTimeout(() => {
|
34
|
+
n && i(n), t = null, f(u());
|
35
|
+
}, l)), n = setTimeout(() => {
|
36
|
+
t && i(t), t = null, f(c());
|
37
|
+
}, a);
|
34
38
|
});
|
35
39
|
};
|
36
40
|
}
|
37
|
-
function
|
38
|
-
let
|
39
|
-
!
|
40
|
-
const
|
41
|
-
|
41
|
+
function I(...e) {
|
42
|
+
let r = 0, n, t = !0, o = d, i, u, s, c, a;
|
43
|
+
!P(e[0]) && typeof e[0] == "object" ? { delay: u, trailing: s = !0, leading: c = !0, rejectOnCancel: a = !1 } = e[0] : [u, s = !0, c = !0, a = !1] = e;
|
44
|
+
const l = () => {
|
45
|
+
n && (clearTimeout(n), n = void 0, o(), o = d);
|
42
46
|
};
|
43
|
-
return (
|
44
|
-
const
|
45
|
-
return
|
46
|
-
|
47
|
-
|
48
|
-
}, Math.max(0,
|
49
|
-
})), !
|
47
|
+
return (p) => {
|
48
|
+
const m = b(u), j = Date.now() - r, h = () => i = p();
|
49
|
+
return l(), m <= 0 ? (r = Date.now(), h()) : (j > m && (c || !t) ? (r = Date.now(), h()) : s && (i = new Promise((T, D) => {
|
50
|
+
o = a ? D : T, n = setTimeout(() => {
|
51
|
+
r = Date.now(), t = !0, T(h()), l();
|
52
|
+
}, Math.max(0, m - j));
|
53
|
+
})), !c && !n && (n = setTimeout(() => t = !0, m)), t = !1, i);
|
50
54
|
};
|
51
55
|
}
|
52
|
-
function
|
53
|
-
return
|
56
|
+
function z(e) {
|
57
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
58
|
+
}
|
59
|
+
function L(e) {
|
60
|
+
return g();
|
54
61
|
}
|
55
|
-
function
|
56
|
-
return
|
57
|
-
|
62
|
+
function B(e) {
|
63
|
+
return Array.isArray(e) ? e : [e];
|
64
|
+
}
|
65
|
+
function H(e, r = 200, n = {}) {
|
66
|
+
return y(
|
67
|
+
x(r, n),
|
58
68
|
e
|
59
69
|
);
|
60
70
|
}
|
61
|
-
function
|
62
|
-
return
|
63
|
-
|
71
|
+
function J(e, r = 200, n = !1, t = !0, o = !1) {
|
72
|
+
return y(
|
73
|
+
I(r, n, t, o),
|
64
74
|
e
|
65
75
|
);
|
66
76
|
}
|
67
|
-
function
|
77
|
+
function N(e, r, n = {}) {
|
68
78
|
const {
|
69
|
-
eventFilter:
|
70
|
-
...
|
71
|
-
} =
|
72
|
-
return
|
79
|
+
eventFilter: t = A,
|
80
|
+
...o
|
81
|
+
} = n;
|
82
|
+
return F(
|
73
83
|
e,
|
74
|
-
|
75
|
-
|
76
|
-
|
84
|
+
y(
|
85
|
+
t,
|
86
|
+
r
|
77
87
|
),
|
78
|
-
|
88
|
+
o
|
79
89
|
);
|
80
90
|
}
|
81
|
-
function
|
82
|
-
|
91
|
+
function K(e, r = !0, n) {
|
92
|
+
L() ? S(e, n) : r ? e() : C(e);
|
83
93
|
}
|
84
|
-
function
|
94
|
+
function Q(e, r, n = {}) {
|
85
95
|
const {
|
86
|
-
debounce:
|
87
|
-
maxWait:
|
96
|
+
debounce: t = 0,
|
97
|
+
maxWait: o = void 0,
|
88
98
|
...i
|
89
|
-
} =
|
90
|
-
return
|
99
|
+
} = n;
|
100
|
+
return N(
|
91
101
|
e,
|
92
|
-
|
102
|
+
r,
|
93
103
|
{
|
94
104
|
...i,
|
95
|
-
eventFilter:
|
105
|
+
eventFilter: x(t, { maxWait: o })
|
106
|
+
}
|
107
|
+
);
|
108
|
+
}
|
109
|
+
function U(e, r, n) {
|
110
|
+
return F(
|
111
|
+
e,
|
112
|
+
r,
|
113
|
+
{
|
114
|
+
...n,
|
115
|
+
immediate: !0
|
96
116
|
}
|
97
117
|
);
|
98
118
|
}
|
99
119
|
export {
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
120
|
+
A as bypassFilter,
|
121
|
+
y as createFilterWrapper,
|
122
|
+
x as debounceFilter,
|
123
|
+
Q as debouncedWatch,
|
124
|
+
L as getLifeCycleTarget,
|
125
|
+
E as injectLocal,
|
126
|
+
G as isClient,
|
127
|
+
q as isObject,
|
128
|
+
d as noop,
|
129
|
+
_ as notNullish,
|
130
|
+
z as pxValue,
|
131
|
+
I as throttleFilter,
|
132
|
+
B as toArray,
|
133
|
+
K as tryOnMounted,
|
112
134
|
V as tryOnScopeDispose,
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
135
|
+
H as useDebounceFn,
|
136
|
+
J as useThrottleFn,
|
137
|
+
Q as watchDebounced,
|
138
|
+
U as watchImmediate,
|
139
|
+
N as watchWithFilter
|
117
140
|
};
|
package/dist/index208.js
CHANGED