bitboss-ui 0.2.38 → 0.2.40
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/BbButton/BbButton.vue.d.ts +95 -0
- package/dist/index.d.ts +125 -0
- package/dist/index10.js +1 -4
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +1 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +2 -2
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +1 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +2 -2
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -4
- package/dist/index106.js.map +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +1 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +2 -2
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +1 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +3 -3
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +1 -4
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -4
- package/dist/index114.js.map +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +1 -4
- package/dist/index12.js.map +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index13.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index14.js +1 -4
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +8 -8
- package/dist/index15.js.map +1 -1
- package/dist/index158.js +1 -4
- package/dist/index158.js.map +1 -1
- package/dist/index16.js +1 -4
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +1 -4
- package/dist/index160.js.map +1 -1
- package/dist/index169.js +1 -4
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +9 -9
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +1 -4
- package/dist/index18.js.map +1 -1
- package/dist/index183.js +1 -4
- package/dist/index183.js.map +1 -1
- package/dist/index185.js +1 -4
- package/dist/index185.js.map +1 -1
- package/dist/index19.js +3 -3
- package/dist/index19.js.map +1 -1
- package/dist/index197.js +10 -2
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +5 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +16 -235
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +1 -4
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +16 -3
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +19 -35
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +20 -6
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +29 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +8 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +2 -16
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +234 -18
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +3 -20
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +34 -28
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -8
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +2 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +4 -10
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +368 -3
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +134 -3
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -368
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +170 -130
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +23 -2
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +363 -164
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +2 -23
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -373
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +1 -4
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +3 -2
- package/dist/index220.js.map +1 -1
- package/dist/index223.js +4 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +6 -28
- package/dist/index224.js.map +1 -1
- package/dist/index226.js +2 -2
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +2 -4
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +160 -2
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +1 -437
- package/dist/index229.js.map +1 -1
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +68 -88
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -69
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +294 -159
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +6 -2
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -200
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -5
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -295
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -6
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -2
- package/dist/index24.js +1 -4
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +4 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +15 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +435 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +89 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +200 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -224
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +105 -246
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +106 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +218 -111
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +246 -94
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +2 -38
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +4 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +4 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +60 -14
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +3 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index26.js +1 -4
- package/dist/index26.js.map +1 -1
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +1 -4
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +2 -2
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +1 -4
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +6 -6
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +1 -4
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +1 -1
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +1 -4
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +2 -2
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +1 -4
- package/dist/index36.js.map +1 -1
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +1 -4
- package/dist/index38.js.map +1 -1
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +1 -4
- package/dist/index40.js.map +1 -1
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +1 -4
- package/dist/index42.js.map +1 -1
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +1 -4
- package/dist/index44.js.map +1 -1
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +1 -4
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +1 -1
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +1 -4
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +1 -4
- package/dist/index50.js.map +1 -1
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +1 -4
- package/dist/index52.js.map +1 -1
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +1 -4
- package/dist/index54.js.map +1 -1
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +1 -4
- package/dist/index56.js.map +1 -1
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +1 -4
- package/dist/index58.js.map +1 -1
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +1 -4
- package/dist/index60.js.map +1 -1
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +1 -4
- package/dist/index62.js.map +1 -1
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +1 -4
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +3 -3
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +1 -4
- package/dist/index66.js.map +1 -1
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +1 -4
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +12 -12
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +1 -4
- package/dist/index70.js.map +1 -1
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +1 -1
- package/dist/index72.js.map +1 -1
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +1 -4
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +1 -1
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +1 -4
- package/dist/index76.js.map +1 -1
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +1 -4
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +3 -3
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +1 -4
- package/dist/index80.js.map +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +1 -4
- package/dist/index82.js.map +1 -1
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +1 -4
- package/dist/index84.js.map +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -4
- package/dist/index86.js.map +1 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +1 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -4
- package/dist/index92.js.map +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -4
- package/dist/index94.js.map +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -4
- package/dist/index96.js.map +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +1 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +35 -37
- package/dist/src/components/BbButton/BbButton.vue.d.ts +0 -22
- package/dist/src/index.d.ts +0 -126
- /package/dist/{src/components → components}/BaseButton/BaseButton.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseDatePicker/BaseDatePicker.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseDialog/BaseDialog.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseRadio/BaseRadio.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseRating/BaseRating.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseSelect/BaseSelect.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseSlider/BaseSlider.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseSwitch/BaseSwitch.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseTag/BaseTag.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseTextInput/BaseTextInput.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BaseTextarea/BaseTextarea.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbAccordion/BbAccordion.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbAlert/BbAlert.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbAvatar/BbAvatar.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbBadge/BbBadge.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbCheckbox/BbCheckbox.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbChip/BbChip.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbCollapsible/BbCollapsible.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbConfirm/BbConfirm.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbDatePickerInput/BbDatePickerInput.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbDialog/BbDialog.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbDropdown/BbDropdown.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbDropdownButton/BbDropdownButton.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbDropzone/BbDropzone.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbHover/BbHover.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbIcon/BbIcon.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbIntersection/BbIntersection.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbNumberInput/BbNumberInput.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbPagination/BbPagination.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbPopover/BbPopover.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbProgress/BbProgress.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbRadio/BbRadio.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbRadioGroup/BbRadioGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbRating/BbRating.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbRatio/BbRatio.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbSelect/BbSelect.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbSlider/BbSlider.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbSmoothHeight/BbSmoothHeight.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbSpinner/BbSpinner.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbSwitch/BbSwitch.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbSwitchGroup/BbSwitchGroup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbTab/BbTab.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbTable/BbTable.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbTable/types.d.ts +0 -0
- /package/dist/{src/components → components}/BbTag/BbTag.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbTextInput/BbTextInput.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbTextarea/BbTextarea.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbToast/BbToast.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbToast/BbToastMessage.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbTooltip/BbTooltip.vue.d.ts +0 -0
- /package/dist/{src/components → components}/BbTree/BbTree.vue.d.ts +0 -0
- /package/dist/{src/composables → composables}/useBroadcastChannelInstance.d.ts +0 -0
- /package/dist/{src/composables → composables}/useConfirm.d.ts +0 -0
- /package/dist/{src/composables → composables}/useCountdown.d.ts +0 -0
- /package/dist/{src/composables → composables}/useId.d.ts +0 -0
- /package/dist/{src/composables → composables}/useItemText.d.ts +0 -0
- /package/dist/{src/composables → composables}/useItemValue.d.ts +0 -0
- /package/dist/{src/composables → composables}/useOptions.d.ts +0 -0
- /package/dist/{src/composables → composables}/useRoute.d.ts +0 -0
- /package/dist/{src/composables → composables}/useRouter.d.ts +0 -0
- /package/dist/{src/composables → composables}/useToast.d.ts +0 -0
- /package/dist/{src/composables → composables}/useWizard.d.ts +0 -0
- /package/dist/{src/types → types}/Classes.d.ts +0 -0
- /package/dist/{src/types → types}/CommonProps.d.ts +0 -0
- /package/dist/{src/types → types}/ExtractGenericFromComputedRef.d.ts +0 -0
- /package/dist/{src/types → types}/ExtractGenericFromRef.d.ts +0 -0
- /package/dist/{src/types → types}/NestedKeyOf.d.ts +0 -0
- /package/dist/{src/types → types}/Simplify.d.ts +0 -0
- /package/dist/{src/types → types}/VoidHtmlElements.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/add.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/booleanishToBoolean.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/capitalize.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/clamp.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/cloneDeep.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/curry.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/debounce.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/deburr.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/drop.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/empty.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/findInTree.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/findRight.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/findRightIndex.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/flattenTree.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/flow.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/get.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/groupBy.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/gt.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/head.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/identity.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/includes.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/indexBy.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/initial.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/isCssColor.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/isNil.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/isNotNil.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/last.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/lt.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/makeUrl.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/mapKeys.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/mapValues.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/matchesPropertyInsensitive.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/mean.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/merge.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/millisecondsTo.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/negate.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/noop.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/omit.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/overEvery.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/percentage.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/pick.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/pickBy.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/replace.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/replaceInTree.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/retry.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/roundToTheNearest.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/set.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/snakeCase.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/throttle.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/tryTo.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/wait.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/waitFor.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/functions/when.d.ts +0 -0
package/dist/index209.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
{}
|
|
7
|
-
);
|
|
1
|
+
const o = (e, t = 50) => new Promise((r) => {
|
|
2
|
+
const n = setInterval(() => {
|
|
3
|
+
e() && (clearInterval(n), r());
|
|
4
|
+
}, t);
|
|
5
|
+
});
|
|
8
6
|
export {
|
|
9
|
-
|
|
7
|
+
o as waitFor
|
|
10
8
|
};
|
|
11
9
|
//# sourceMappingURL=index209.js.map
|
package/dist/index209.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index209.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index209.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n\titeratee: () => boolean,\n\tinterval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n\tnew Promise((resolve) => {\n\t\tconst i = setInterval(() => {\n\t\t\tif (iteratee()) {\n\t\t\t\tclearInterval(i);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t}, interval);\n\t});\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OAC1C,IAAI,QAAQ,CAACC,MAAY;AAClB,QAAAC,IAAI,YAAY,MAAM;AAC3B,IAAIH,QACH,cAAcG,CAAC,GACPD;KAEPD,CAAQ;AACZ,CAAC;"}
|
package/dist/index21.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as $, computed as n, openBlock as i, createElementBlock as b, createBlock as h, resolveDynamicComponent as v, normalizeProps as o, guardReactiveProps as l, withCtx as c, renderSlot as _, createTextVNode as A, toDisplayString as g, createElementVNode as E, unref as z, createVNode as S, Fragment as T, renderList as V } from "vue";
|
|
2
|
-
import { deburr as N } from "./
|
|
2
|
+
import { deburr as N } from "./index219.js";
|
|
3
3
|
import { getAsPercentage as P } from "./index121.js";
|
|
4
|
-
import { snakeCase as D } from "./
|
|
4
|
+
import { snakeCase as D } from "./index220.js";
|
|
5
5
|
import { useId as I } from "./index7.js";
|
|
6
6
|
import F from "./index118.js";
|
|
7
7
|
import "./index183.js";
|
package/dist/index21.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index21.js","sources":["../src/components/BaseInputContainer/BaseInputContainer.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, unref as _unref, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-input-outer-container\" }\nconst _hoisted_2 = { class: \"bb-base-input-container__errors\" }\n\nimport { computed } from 'vue';\nimport { deburr } from '@/utilities/functions/deburr';\nimport { getAsPercentage } from '@/utilities/functions/percentage';\nimport { snakeCase } from '@/utilities/functions/snakeCase';\nimport { useId } from '@/composables/useId';\nimport BbSmoothHeight from '../BbSmoothHeight/BbSmoothHeight.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BaseInputContainerProps = {\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.\n\t */\n\tinputPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Defines the HTML tag of the label element.\n\t * Usually is a `label` but for certain component like checkboxes\n\t * that have their own label it should be a `legend`.\n\t * It is important for accessibility reasons.\n\t */\n\tlabelTag?: string;\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue?: any;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n\n\t/**\n\t * HTML tag of the container, it is by default a `span` so\n\t * it can be used inline without breaking HTML validation.\n\t */\n\ttag?: string;\n};\n\nexport type BaseInputContainerSlots = {\n\tinput?: (props: { id: string; name: string; hasErrors: boolean }) => any;\n\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseInputContainer',\n props: {\n direction: { default: 'vertical' },\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n inputPosition: { default: 'right' },\n label: {},\n labelPosition: { default: 'left' },\n labelTag: { default: 'label' },\n modelValue: {},\n name: {},\n reverse: { type: Boolean, default: false },\n tag: { default: 'span' }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\n// Always provide an id so that inputs can be focussed by clicking oin the label\nconst id = props.id || useId().id.value;\n\n// If no name is passed use a normalized version of the label\nconst name = computed(() => {\n\tif (props.name) return props.name;\n\tlet noAccents = deburr(props.label);\n\tlet snaked = snakeCase(noAccents);\n\treturn snaked.toLowerCase();\n});\n\nconst containerAttributes = computed(() => {\n\tconst initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container': true,\n\t\t\t'bb-base-input-container--hidden-label': props.reverse,\n\t\t\t'bb-base-input-container--horizontal': props.direction !== 'vertical',\n\t\t\t'bb-base-input-container--reverse': props.reverse,\n\t\t\t'bb-base-input-container--vertical': props.direction === 'vertical',\n\t\t\t'bb-base-input-container--errors': hasErrors.value,\n\t\t},\n\t};\n\tif (props.tag === 'label') initial.for = id;\n\treturn initial;\n});\n\nconst labelAttributes = computed(() => {\n\tlet initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container__label': true,\n\t\t\t'bb-base-input-container__label--hidden': props.hideLabel,\n\t\t\t[`bb-base-input-container__label--${props.labelPosition}`]:\n\t\t\t\tprops.labelPosition,\n\t\t},\n\t\tstyle: {\n\t\t\twidth: widths.value.label,\n\t\t},\n\t};\n\tif (props.labelTag === 'label') initial.for = id;\n\treturn initial;\n});\n\nconst inputAttributes = computed(() => {\n\tlet initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container__input': true,\n\t\t\t[`bb-base-input-container__input--${props.inputPosition}`]:\n\t\t\t\tprops.inputPosition,\n\t\t},\n\t\tstyle: {\n\t\t\twidth: widths.value.input,\n\t\t},\n\t};\n\treturn initial;\n});\n\nconst widths = computed(() => {\n\tlet initial: { [target: string]: string } = {\n\t\tlabel: 'auto',\n\t\tinput: 'auto',\n\t};\n\tif (props.direction === 'auto') {\n\t} else if (props.direction === 'vertical') {\n\t\tinitial.label = initial.input = 100 + '%';\n\t} else if (props.direction === 'horizontal') {\n\t\tinitial.label = initial.input = 50 + '%';\n\t} else if (/^[\\S]+\\s[\\S]+$/g.test(props.direction)) {\n\t\tconst [firstLength, secondLength] = props.direction\n\t\t\t.split(/\\s+/)\n\t\t\t.map((string) => string.length);\n\t\tconst first =\n\t\t\tgetAsPercentage(firstLength, firstLength + secondLength) + '%';\n\t\tconst second =\n\t\t\tgetAsPercentage(secondLength, secondLength + firstLength) + '%';\n\t\tif (props.reverse) {\n\t\t\tinitial.label = second;\n\t\t\tinitial.input = first;\n\t\t} else {\n\t\t\tinitial.label = first;\n\t\t\tinitial.input = second;\n\t\t}\n\t} else {\n\t\tthrow new Error('Horizontal pattern is malformed');\n\t}\n\treturn initial;\n});\n\nconst computedErrors = computed(() => {\n\treturn props.errors ? ([] as string[]).concat(props.errors) : [];\n});\n\nconst hasErrors = computed(\n\t() => Boolean(computedErrors.value.length) || props.hasErrors\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), _normalizeProps(_guardReactiveProps(containerAttributes.value)), {\n default: _withCtx(() => [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.labelTag), _normalizeProps(_guardReactiveProps(labelAttributes.value)), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps({ text: _ctx.label, hasErrors: hasErrors.value })), () => [\n _createTextVNode(_toDisplayString(_ctx.label), 1)\n ])\n ]),\n _: 3\n }, 16)),\n _createElementVNode(\"span\", _normalizeProps(_guardReactiveProps(inputAttributes.value)), [\n _renderSlot(_ctx.$slots, \"input\", _normalizeProps(_guardReactiveProps({ id: _unref(id), name: name.value, hasErrors: hasErrors.value })))\n ], 16)\n ]),\n _: 3\n }, 16)),\n _createElementVNode(\"span\", _hoisted_2, [\n _createVNode(BbSmoothHeight, { tag: \"span\" }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(computedErrors.value, (error) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n key: error,\n class: \"bb-base-input-container__error\"\n }, _toDisplayString(error), 1))\n }), 128))\n ]),\n _: 1\n })\n ])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","props","id","useId","name","computed","noAccents","deburr","snakeCase","containerAttributes","initial","hasErrors","labelAttributes","widths","inputAttributes","firstLength","secondLength","string","first","getAsPercentage","second","computedErrors","_ctx","_cache","_openBlock","_createElementBlock","_createBlock","_resolveDynamicComponent","_normalizeProps","_guardReactiveProps","_withCtx","_renderSlot","_createTextVNode","_toDisplayString","_createElementVNode","_unref","_createVNode","BbSmoothHeight","_Fragment","_renderList","error"],"mappings":";;;;;;;AAGA,MAAMA,IAAa,EAAE,OAAO,mCACtBC,IAAa,EAAE,OAAO,qCAyFAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,EAAE,SAAS,WAAW;AAAA,IACjC,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,eAAe,EAAE,SAAS,QAAQ;AAAA,IAClC,OAAO,CAAC;AAAA,IACR,eAAe,EAAE,SAAS,OAAO;AAAA,IACjC,UAAU,EAAE,SAAS,QAAQ;AAAA,IAC7B,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,IACP,SAAS,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA,IACzC,KAAK,EAAE,SAAS,OAAO;AAAA,EACzB;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAKRE,IAAKD,EAAM,MAAME,IAAQ,GAAG,OAG5BC,IAAOC,EAAS,MAAM;AAC3B,UAAIJ,EAAM;AAAM,eAAOA,EAAM;AACzB,UAAAK,IAAYC,EAAON,EAAM,KAAK;AAElC,aADaO,EAAUF,CAAS,EAClB;IAAY,CAC1B,GAEKG,IAAsBJ,EAAS,MAAM;AAC1C,YAAMK,IAAmC;AAAA,QACxC,OAAO;AAAA,UACN,2BAA2B;AAAA,UAC3B,yCAAyCT,EAAM;AAAA,UAC/C,uCAAuCA,EAAM,cAAc;AAAA,UAC3D,oCAAoCA,EAAM;AAAA,UAC1C,qCAAqCA,EAAM,cAAc;AAAA,UACzD,mCAAmCU,EAAU;AAAA,QAC9C;AAAA,MAAA;AAED,aAAIV,EAAM,QAAQ,YAASS,EAAQ,MAAMR,IAClCQ;AAAA,IAAA,CACP,GAEKE,IAAkBP,EAAS,MAAM;AACtC,UAAIK,IAAmC;AAAA,QACtC,OAAO;AAAA,UACN,kCAAkC;AAAA,UAClC,0CAA0CT,EAAM;AAAA,UAChD,CAAC,mCAAmCA,EAAM,aAAa,EAAE,GACxDA,EAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACN,OAAOY,EAAO,MAAM;AAAA,QACrB;AAAA,MAAA;AAED,aAAIZ,EAAM,aAAa,YAASS,EAAQ,MAAMR,IACvCQ;AAAA,IAAA,CACP,GAEKI,IAAkBT,EAAS,OACO;AAAA,MACtC,OAAO;AAAA,QACN,kCAAkC;AAAA,QAClC,CAAC,mCAAmCJ,EAAM,aAAa,EAAE,GACxDA,EAAM;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACN,OAAOY,EAAO,MAAM;AAAA,MACrB;AAAA,IAAA,EAGD,GAEKA,IAASR,EAAS,MAAM;AAC7B,UAAIK,IAAwC;AAAA,QAC3C,OAAO;AAAA,QACP,OAAO;AAAA,MAAA;AAEJ,UAAAT,EAAM,cAAc;AACxB,YAAWA,EAAM,cAAc;AACtB,UAAAS,EAAA,QAAQA,EAAQ,QAAQ;AAAA,iBACtBT,EAAM,cAAc;AACtB,UAAAS,EAAA,QAAQA,EAAQ,QAAQ;AAAA,iBACtB,kBAAkB,KAAKT,EAAM,SAAS,GAAG;AACnD,gBAAM,CAACc,GAAaC,CAAY,IAAIf,EAAM,UACxC,MAAM,KAAK,EACX,IAAI,CAACgB,MAAWA,EAAO,MAAM,GACzBC,IACLC,EAAgBJ,GAAaA,IAAcC,CAAY,IAAI,KACtDI,IACLD,EAAgBH,GAAcA,IAAeD,CAAW,IAAI;AAC7D,UAAId,EAAM,WACTS,EAAQ,QAAQU,GAChBV,EAAQ,QAAQQ,MAEhBR,EAAQ,QAAQQ,GAChBR,EAAQ,QAAQU;AAAA,QACjB;AAEM,gBAAA,IAAI,MAAM,iCAAiC;AAE3C,aAAAV;AAAA,IAAA,CACP,GAEKW,IAAiBhB,EAAS,MACxBJ,EAAM,SAAU,CAAC,EAAe,OAAOA,EAAM,MAAM,IAAI,EAC9D,GAEKU,IAAYN;AAAA,MACjB,MAAM,EAAQgB,EAAe,MAAM,UAAWpB,EAAM;AAAA,IAAA;AAG9C,WAAA,CAACqB,GAAUC,OACRC,EAAW,GAAGC,EAAoB,QAAQ7B,GAAY;AAAA,OAC3D4B,KAAcE,EAAaC,EAAyBL,EAAK,GAAG,GAAGM,EAAgBC,EAAoBpB,EAAoB,KAAK,CAAC,GAAG;AAAA,QAC/H,SAASqB,EAAS,MAAM;AAAA,WACrBN,KAAcE,EAAaC,EAAyBL,EAAK,QAAQ,GAAGM,EAAgBC,EAAoBjB,EAAgB,KAAK,CAAC,GAAG;AAAA,YAChI,SAASkB,EAAS,MAAM;AAAA,cACtBC,EAAYT,EAAK,QAAQ,SAASM,EAAgBC,EAAoB,EAAE,MAAMP,EAAK,OAAO,WAAWX,EAAU,MAAO,CAAA,CAAC,GAAG,MAAM;AAAA,gBAC9HqB,EAAiBC,EAAiBX,EAAK,KAAK,GAAG,CAAC;AAAA,cAAA,CACjD;AAAA,YAAA,CACF;AAAA,YACD,GAAG;AAAA,aACF,EAAE;AAAA,UACLY,EAAoB,QAAQN,EAAgBC,EAAoBf,EAAgB,KAAK,CAAC,GAAG;AAAA,YACvFiB,EAAYT,EAAK,QAAQ,SAASM,EAAgBC,EAAoB,EAAE,IAAIM,EAAOjC,CAAE,GAAG,MAAME,EAAK,OAAO,WAAWO,EAAU,MAAO,CAAA,CAAC,CAAC;AAAA,aACvI,EAAE;AAAA,QAAA,CACN;AAAA,QACD,GAAG;AAAA,SACF,EAAE;AAAA,MACLuB,EAAoB,QAAQrC,GAAY;AAAA,QACtCuC,EAAaC,GAAgB,EAAE,KAAK,UAAU;AAAA,UAC5C,SAASP,EAAS,MAAM;AAAA,aACrBN,EAAW,EAAI,GAAGC,EAAoBa,GAAW,MAAMC,EAAYlB,EAAe,OAAO,CAACmB,OACjFhB,EAAA,GAAcC,EAAoB,QAAQ;AAAA,cAChD,KAAKe;AAAA,cACL,OAAO;AAAA,YACN,GAAAP,EAAiBO,CAAK,GAAG,CAAC,EAC9B,GAAG,GAAG;AAAA,UAAA,CACR;AAAA,UACD,GAAG;AAAA,QAAA,CACJ;AAAA,MAAA,CACF;AAAA,IAAA,CACF;AAAA,EAEH;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index21.js","sources":["../src/components/BaseInputContainer/BaseInputContainer.vue"],"sourcesContent":["<template>\n\t<span class=\"bb-base-input-outer-container\">\n\t\t<component :is=\"tag\" v-bind=\"containerAttributes\">\n\t\t\t<component :is=\"labelTag\" v-bind=\"labelAttributes\">\n\t\t\t\t<slot name=\"label\" v-bind=\"{ text: label, hasErrors }\">{{\n\t\t\t\t\tlabel\n\t\t\t\t}}</slot>\n\t\t\t</component>\n\t\t\t<span v-bind=\"inputAttributes\">\n\t\t\t\t<slot name=\"input\" v-bind=\"{ id, name, hasErrors }\"></slot>\n\t\t\t</span>\n\t\t</component>\n\t\t<span class=\"bb-base-input-container__errors\">\n\t\t\t<BbSmoothHeight tag=\"span\">\n\t\t\t\t<span\n\t\t\t\t\tv-for=\"error in computedErrors\"\n\t\t\t\t\t:key=\"error\"\n\t\t\t\t\tclass=\"bb-base-input-container__error\"\n\t\t\t\t\t>{{ error }}</span\n\t\t\t\t>\n\t\t\t</BbSmoothHeight>\n\t\t</span>\n\t</span>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { deburr } from '@/utilities/functions/deburr';\nimport { getAsPercentage } from '@/utilities/functions/percentage';\nimport { snakeCase } from '@/utilities/functions/snakeCase';\nimport { useId } from '@/composables/useId';\nimport BbSmoothHeight from '../BbSmoothHeight/BbSmoothHeight.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BaseInputContainerProps = {\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.\n\t */\n\tinputPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Defines the HTML tag of the label element.\n\t * Usually is a `label` but for certain component like checkboxes\n\t * that have their own label it should be a `legend`.\n\t * It is important for accessibility reasons.\n\t */\n\tlabelTag?: string;\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue?: any;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n\n\t/**\n\t * HTML tag of the container, it is by default a `span` so\n\t * it can be used inline without breaking HTML validation.\n\t */\n\ttag?: string;\n};\n\nconst props = withDefaults(defineProps<BaseInputContainerProps>(), {\n\tdirection: 'vertical',\n\tinputPosition: 'right',\n\tlabelPosition: 'left',\n\tlabelTag: 'label',\n\treverse: false,\n\ttag: 'span',\n});\n\nexport type BaseInputContainerSlots = {\n\tinput?: (props: { id: string; name: string; hasErrors: boolean }) => any;\n\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\ndefineSlots<BaseInputContainerSlots>();\n\n// Always provide an id so that inputs can be focussed by clicking oin the label\nconst id = props.id || useId().id.value;\n\n// If no name is passed use a normalized version of the label\nconst name = computed(() => {\n\tif (props.name) return props.name;\n\tlet noAccents = deburr(props.label);\n\tlet snaked = snakeCase(noAccents);\n\treturn snaked.toLowerCase();\n});\n\nconst containerAttributes = computed(() => {\n\tconst initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container': true,\n\t\t\t'bb-base-input-container--hidden-label': props.reverse,\n\t\t\t'bb-base-input-container--horizontal': props.direction !== 'vertical',\n\t\t\t'bb-base-input-container--reverse': props.reverse,\n\t\t\t'bb-base-input-container--vertical': props.direction === 'vertical',\n\t\t\t'bb-base-input-container--errors': hasErrors.value,\n\t\t},\n\t};\n\tif (props.tag === 'label') initial.for = id;\n\treturn initial;\n});\n\nconst labelAttributes = computed(() => {\n\tlet initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container__label': true,\n\t\t\t'bb-base-input-container__label--hidden': props.hideLabel,\n\t\t\t[`bb-base-input-container__label--${props.labelPosition}`]:\n\t\t\t\tprops.labelPosition,\n\t\t},\n\t\tstyle: {\n\t\t\twidth: widths.value.label,\n\t\t},\n\t};\n\tif (props.labelTag === 'label') initial.for = id;\n\treturn initial;\n});\n\nconst inputAttributes = computed(() => {\n\tlet initial: { [name: string]: any } = {\n\t\tclass: {\n\t\t\t'bb-base-input-container__input': true,\n\t\t\t[`bb-base-input-container__input--${props.inputPosition}`]:\n\t\t\t\tprops.inputPosition,\n\t\t},\n\t\tstyle: {\n\t\t\twidth: widths.value.input,\n\t\t},\n\t};\n\treturn initial;\n});\n\nconst widths = computed(() => {\n\tlet initial: { [target: string]: string } = {\n\t\tlabel: 'auto',\n\t\tinput: 'auto',\n\t};\n\tif (props.direction === 'auto') {\n\t} else if (props.direction === 'vertical') {\n\t\tinitial.label = initial.input = 100 + '%';\n\t} else if (props.direction === 'horizontal') {\n\t\tinitial.label = initial.input = 50 + '%';\n\t} else if (/^[\\S]+\\s[\\S]+$/g.test(props.direction)) {\n\t\tconst [firstLength, secondLength] = props.direction\n\t\t\t.split(/\\s+/)\n\t\t\t.map((string) => string.length);\n\t\tconst first =\n\t\t\tgetAsPercentage(firstLength, firstLength + secondLength) + '%';\n\t\tconst second =\n\t\t\tgetAsPercentage(secondLength, secondLength + firstLength) + '%';\n\t\tif (props.reverse) {\n\t\t\tinitial.label = second;\n\t\t\tinitial.input = first;\n\t\t} else {\n\t\t\tinitial.label = first;\n\t\t\tinitial.input = second;\n\t\t}\n\t} else {\n\t\tthrow new Error('Horizontal pattern is malformed');\n\t}\n\treturn initial;\n});\n\nconst computedErrors = computed(() => {\n\treturn props.errors ? ([] as string[]).concat(props.errors) : [];\n});\n\nconst hasErrors = computed(\n\t() => Boolean(computedErrors.value.length) || props.hasErrors\n);\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseInputContainer';\n</style>\n"],"names":["props","__props","id","useId","name","computed","noAccents","deburr","snakeCase","containerAttributes","initial","hasErrors","labelAttributes","widths","inputAttributes","firstLength","secondLength","string","first","getAsPercentage","second","computedErrors"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA0GA,UAAMA,IAAQC,GAkBRC,IAAKF,EAAM,MAAMG,IAAQ,GAAG,OAG5BC,IAAOC,EAAS,MAAM;AAC3B,UAAIL,EAAM;AAAM,eAAOA,EAAM;AACzB,UAAAM,IAAYC,EAAOP,EAAM,KAAK;AAElC,aADaQ,EAAUF,CAAS,EAClB;IAAY,CAC1B,GAEKG,IAAsBJ,EAAS,MAAM;AAC1C,YAAMK,IAAmC;AAAA,QACxC,OAAO;AAAA,UACN,2BAA2B;AAAA,UAC3B,yCAAyCV,EAAM;AAAA,UAC/C,uCAAuCA,EAAM,cAAc;AAAA,UAC3D,oCAAoCA,EAAM;AAAA,UAC1C,qCAAqCA,EAAM,cAAc;AAAA,UACzD,mCAAmCW,EAAU;AAAA,QAC9C;AAAA,MAAA;AAED,aAAIX,EAAM,QAAQ,YAASU,EAAQ,MAAMR,IAClCQ;AAAA,IAAA,CACP,GAEKE,IAAkBP,EAAS,MAAM;AACtC,UAAIK,IAAmC;AAAA,QACtC,OAAO;AAAA,UACN,kCAAkC;AAAA,UAClC,0CAA0CV,EAAM;AAAA,UAChD,CAAC,mCAAmCA,EAAM,aAAa,EAAE,GACxDA,EAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACN,OAAOa,EAAO,MAAM;AAAA,QACrB;AAAA,MAAA;AAED,aAAIb,EAAM,aAAa,YAASU,EAAQ,MAAMR,IACvCQ;AAAA,IAAA,CACP,GAEKI,IAAkBT,EAAS,OACO;AAAA,MACtC,OAAO;AAAA,QACN,kCAAkC;AAAA,QAClC,CAAC,mCAAmCL,EAAM,aAAa,EAAE,GACxDA,EAAM;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACN,OAAOa,EAAO,MAAM;AAAA,MACrB;AAAA,IAAA,EAGD,GAEKA,IAASR,EAAS,MAAM;AAC7B,UAAIK,IAAwC;AAAA,QAC3C,OAAO;AAAA,QACP,OAAO;AAAA,MAAA;AAEJ,UAAAV,EAAM,cAAc;AACxB,YAAWA,EAAM,cAAc;AACtB,UAAAU,EAAA,QAAQA,EAAQ,QAAQ;AAAA,iBACtBV,EAAM,cAAc;AACtB,UAAAU,EAAA,QAAQA,EAAQ,QAAQ;AAAA,iBACtB,kBAAkB,KAAKV,EAAM,SAAS,GAAG;AACnD,gBAAM,CAACe,GAAaC,CAAY,IAAIhB,EAAM,UACxC,MAAM,KAAK,EACX,IAAI,CAACiB,MAAWA,EAAO,MAAM,GACzBC,IACLC,EAAgBJ,GAAaA,IAAcC,CAAY,IAAI,KACtDI,IACLD,EAAgBH,GAAcA,IAAeD,CAAW,IAAI;AAC7D,UAAIf,EAAM,WACTU,EAAQ,QAAQU,GAChBV,EAAQ,QAAQQ,MAEhBR,EAAQ,QAAQQ,GAChBR,EAAQ,QAAQU;AAAA,QACjB;AAEM,gBAAA,IAAI,MAAM,iCAAiC;AAE3C,aAAAV;AAAA,IAAA,CACP,GAEKW,IAAiBhB,EAAS,MACxBL,EAAM,SAAU,CAAC,EAAe,OAAOA,EAAM,MAAM,IAAI,EAC9D,GAEKW,IAAYN;AAAA,MACjB,MAAM,EAAQgB,EAAe,MAAM,UAAWrB,EAAM;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index210.js
CHANGED
package/dist/index210.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index210.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index210.js","sources":["../src/utilities/functions/isCssColor.ts"],"sourcesContent":["/**\n * Taken from vuetify colorable mixin\n * https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/colorable/index.ts\n */\nexport const isCssColor = (color: string): boolean => {\n\treturn !!color && !!color.match(/^(#|var\\(--|(rgb|hsl)a?\\()/);\n};\n"],"names":["isCssColor","color"],"mappings":"AAIa,MAAAA,IAAa,CAACC,MACnB,CAAC,CAACA,KAAS,CAAC,CAACA,EAAM,MAAM,4BAA4B;"}
|
package/dist/index211.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
return o() ? (n(e), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
function p(e) {
|
|
6
|
-
return typeof e == "function" ? e() : r(e);
|
|
7
|
-
}
|
|
8
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1
|
+
import { curry as e } from "./index240.js";
|
|
2
|
+
const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
|
|
9
3
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
t as baseWhen,
|
|
5
|
+
s as when
|
|
12
6
|
};
|
|
13
7
|
//# sourceMappingURL=index211.js.map
|
package/dist/index211.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index211.js","sources":["../node_modules/@vueuse/shared/index.mjs"],"sourcesContent":["import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, getCurrentInstance, provide, inject, isVue3, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, isVue2, set as set$1, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from 'vue-demi';\n\nfunction computedEager(fn, options) {\n var _a;\n const result = shallowRef();\n watchEffect(() => {\n result.value = fn();\n }, {\n ...options,\n flush: (_a = options == null ? void 0 : options.flush) != null ? _a : \"sync\"\n });\n return readonly(result);\n}\n\nfunction computedWithControl(source, fn) {\n let v = void 0;\n let track;\n let trigger;\n const dirty = ref(true);\n const update = () => {\n dirty.value = true;\n trigger();\n };\n watch(source, update, { flush: \"sync\" });\n const get = typeof fn === \"function\" ? fn : fn.get;\n const set = typeof fn === \"function\" ? void 0 : fn.set;\n const result = customRef((_track, _trigger) => {\n track = _track;\n trigger = _trigger;\n return {\n get() {\n if (dirty.value) {\n v = get();\n dirty.value = false;\n }\n track();\n return v;\n },\n set(v2) {\n set == null ? void 0 : set(v2);\n }\n };\n });\n if (Object.isExtensible(result))\n result.trigger = update;\n return result;\n}\n\nfunction tryOnScopeDispose(fn) {\n if (getCurrentScope()) {\n onScopeDispose(fn);\n return true;\n }\n return false;\n}\n\nfunction createEventHook() {\n const fns = /* @__PURE__ */ new Set();\n const off = (fn) => {\n fns.delete(fn);\n };\n const on = (fn) => {\n fns.add(fn);\n const offFn = () => off(fn);\n tryOnScopeDispose(offFn);\n return {\n off: offFn\n };\n };\n const trigger = (...args) => {\n return Promise.all(Array.from(fns).map((fn) => fn(...args)));\n };\n return {\n on,\n off,\n trigger\n };\n}\n\nfunction createGlobalState(stateFactory) {\n let initialized = false;\n let state;\n const scope = effectScope(true);\n return (...args) => {\n if (!initialized) {\n state = scope.run(() => stateFactory(...args));\n initialized = true;\n }\n return state;\n };\n}\n\nconst localProvidedStateMap = /* @__PURE__ */ new WeakMap();\n\nconst provideLocal = (key, value) => {\n var _a;\n const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;\n if (instance == null)\n throw new Error(\"provideLocal must be called in setup\");\n if (!localProvidedStateMap.has(instance))\n localProvidedStateMap.set(instance, /* @__PURE__ */ Object.create(null));\n const localProvidedState = localProvidedStateMap.get(instance);\n localProvidedState[key] = value;\n provide(key, value);\n};\n\nconst injectLocal = (...args) => {\n var _a;\n const key = args[0];\n const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;\n if (instance == null)\n throw new Error(\"injectLocal must be called in setup\");\n if (localProvidedStateMap.has(instance) && key in localProvidedStateMap.get(instance))\n return localProvidedStateMap.get(instance)[key];\n return inject(...args);\n};\n\nfunction createInjectionState(composable, options) {\n const key = (options == null ? void 0 : options.injectionKey) || Symbol(composable.name || \"InjectionState\");\n const useProvidingState = (...args) => {\n const state = composable(...args);\n provideLocal(key, state);\n return state;\n };\n const useInjectedState = () => injectLocal(key);\n return [useProvidingState, useInjectedState];\n}\n\nfunction createSharedComposable(composable) {\n let subscribers = 0;\n let state;\n let scope;\n const dispose = () => {\n subscribers -= 1;\n if (scope && subscribers <= 0) {\n scope.stop();\n state = void 0;\n scope = void 0;\n }\n };\n return (...args) => {\n subscribers += 1;\n if (!state) {\n scope = effectScope(true);\n state = scope.run(() => composable(...args));\n }\n tryOnScopeDispose(dispose);\n return state;\n };\n}\n\nfunction extendRef(ref, extend, { enumerable = false, unwrap = true } = {}) {\n if (!isVue3 && !version.startsWith(\"2.7.\")) {\n if (process.env.NODE_ENV !== \"production\")\n throw new Error(\"[VueUse] extendRef only works in Vue 2.7 or above.\");\n return;\n }\n for (const [key, value] of Object.entries(extend)) {\n if (key === \"value\")\n continue;\n if (isRef(value) && unwrap) {\n Object.defineProperty(ref, key, {\n get() {\n return value.value;\n },\n set(v) {\n value.value = v;\n },\n enumerable\n });\n } else {\n Object.defineProperty(ref, key, { value, enumerable });\n }\n }\n return ref;\n}\n\nfunction get(obj, key) {\n if (key == null)\n return unref(obj);\n return unref(obj)[key];\n}\n\nfunction isDefined(v) {\n return unref(v) != null;\n}\n\nfunction makeDestructurable(obj, arr) {\n if (typeof Symbol !== \"undefined\") {\n const clone = { ...obj };\n Object.defineProperty(clone, Symbol.iterator, {\n enumerable: false,\n value() {\n let index = 0;\n return {\n next: () => ({\n value: arr[index++],\n done: index > arr.length\n })\n };\n }\n });\n return clone;\n } else {\n return Object.assign([...arr], obj);\n }\n}\n\nfunction toValue(r) {\n return typeof r === \"function\" ? r() : unref(r);\n}\nconst resolveUnref = toValue;\n\nfunction reactify(fn, options) {\n const unrefFn = (options == null ? void 0 : options.computedGetter) === false ? unref : toValue;\n return function(...args) {\n return computed(() => fn.apply(this, args.map((i) => unrefFn(i))));\n };\n}\n\nfunction reactifyObject(obj, optionsOrKeys = {}) {\n let keys = [];\n let options;\n if (Array.isArray(optionsOrKeys)) {\n keys = optionsOrKeys;\n } else {\n options = optionsOrKeys;\n const { includeOwnProperties = true } = optionsOrKeys;\n keys.push(...Object.keys(obj));\n if (includeOwnProperties)\n keys.push(...Object.getOwnPropertyNames(obj));\n }\n return Object.fromEntries(\n keys.map((key) => {\n const value = obj[key];\n return [\n key,\n typeof value === \"function\" ? reactify(value.bind(obj), options) : value\n ];\n })\n );\n}\n\nfunction toReactive(objectRef) {\n if (!isRef(objectRef))\n return reactive(objectRef);\n const proxy = new Proxy({}, {\n get(_, p, receiver) {\n return unref(Reflect.get(objectRef.value, p, receiver));\n },\n set(_, p, value) {\n if (isRef(objectRef.value[p]) && !isRef(value))\n objectRef.value[p].value = value;\n else\n objectRef.value[p] = value;\n return true;\n },\n deleteProperty(_, p) {\n return Reflect.deleteProperty(objectRef.value, p);\n },\n has(_, p) {\n return Reflect.has(objectRef.value, p);\n },\n ownKeys() {\n return Object.keys(objectRef.value);\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true\n };\n }\n });\n return reactive(proxy);\n}\n\nfunction reactiveComputed(fn) {\n return toReactive(computed(fn));\n}\n\nfunction reactiveOmit(obj, ...keys) {\n const flatKeys = keys.flat();\n const predicate = flatKeys[0];\n return reactiveComputed(() => typeof predicate === \"function\" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0]))));\n}\n\nconst isClient = typeof window !== \"undefined\" && typeof document !== \"undefined\";\nconst isWorker = typeof WorkerGlobalScope !== \"undefined\" && globalThis instanceof WorkerGlobalScope;\nconst isDef = (val) => typeof val !== \"undefined\";\nconst notNullish = (val) => val != null;\nconst assert = (condition, ...infos) => {\n if (!condition)\n console.warn(...infos);\n};\nconst toString = Object.prototype.toString;\nconst isObject = (val) => toString.call(val) === \"[object Object]\";\nconst now = () => Date.now();\nconst timestamp = () => +Date.now();\nconst clamp = (n, min, max) => Math.min(max, Math.max(min, n));\nconst noop = () => {\n};\nconst rand = (min, max) => {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\nconst hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);\nconst isIOS = /* @__PURE__ */ getIsIOS();\nfunction getIsIOS() {\n var _a, _b;\n return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));\n}\n\nfunction createFilterWrapper(filter, fn) {\n function wrapper(...args) {\n return new Promise((resolve, reject) => {\n Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);\n });\n }\n return wrapper;\n}\nconst bypassFilter = (invoke) => {\n return invoke();\n};\nfunction debounceFilter(ms, options = {}) {\n let timer;\n let maxTimer;\n let lastRejector = noop;\n const _clearTimeout = (timer2) => {\n clearTimeout(timer2);\n lastRejector();\n lastRejector = noop;\n };\n const filter = (invoke) => {\n const duration = toValue(ms);\n const maxDuration = toValue(options.maxWait);\n if (timer)\n _clearTimeout(timer);\n if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {\n if (maxTimer) {\n _clearTimeout(maxTimer);\n maxTimer = null;\n }\n return Promise.resolve(invoke());\n }\n return new Promise((resolve, reject) => {\n lastRejector = options.rejectOnCancel ? reject : resolve;\n if (maxDuration && !maxTimer) {\n maxTimer = setTimeout(() => {\n if (timer)\n _clearTimeout(timer);\n maxTimer = null;\n resolve(invoke());\n }, maxDuration);\n }\n timer = setTimeout(() => {\n if (maxTimer)\n _clearTimeout(maxTimer);\n maxTimer = null;\n resolve(invoke());\n }, duration);\n });\n };\n return filter;\n}\nfunction throttleFilter(...args) {\n let lastExec = 0;\n let timer;\n let isLeading = true;\n let lastRejector = noop;\n let lastValue;\n let ms;\n let trailing;\n let leading;\n let rejectOnCancel;\n if (!isRef(args[0]) && typeof args[0] === \"object\")\n ({ delay: ms, trailing = true, leading = true, rejectOnCancel = false } = args[0]);\n else\n [ms, trailing = true, leading = true, rejectOnCancel = false] = args;\n const clear = () => {\n if (timer) {\n clearTimeout(timer);\n timer = void 0;\n lastRejector();\n lastRejector = noop;\n }\n };\n const filter = (_invoke) => {\n const duration = toValue(ms);\n const elapsed = Date.now() - lastExec;\n const invoke = () => {\n return lastValue = _invoke();\n };\n clear();\n if (duration <= 0) {\n lastExec = Date.now();\n return invoke();\n }\n if (elapsed > duration && (leading || !isLeading)) {\n lastExec = Date.now();\n invoke();\n } else if (trailing) {\n lastValue = new Promise((resolve, reject) => {\n lastRejector = rejectOnCancel ? reject : resolve;\n timer = setTimeout(() => {\n lastExec = Date.now();\n isLeading = true;\n resolve(invoke());\n clear();\n }, Math.max(0, duration - elapsed));\n });\n }\n if (!leading && !timer)\n timer = setTimeout(() => isLeading = true, duration);\n isLeading = false;\n return lastValue;\n };\n return filter;\n}\nfunction pausableFilter(extendFilter = bypassFilter) {\n const isActive = ref(true);\n function pause() {\n isActive.value = false;\n }\n function resume() {\n isActive.value = true;\n }\n const eventFilter = (...args) => {\n if (isActive.value)\n extendFilter(...args);\n };\n return { isActive: readonly(isActive), pause, resume, eventFilter };\n}\n\nconst directiveHooks = {\n mounted: isVue3 ? \"mounted\" : \"inserted\",\n updated: isVue3 ? \"updated\" : \"componentUpdated\",\n unmounted: isVue3 ? \"unmounted\" : \"unbind\"\n};\n\nfunction cacheStringFunction(fn) {\n const cache = /* @__PURE__ */ Object.create(null);\n return (str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, \"-$1\").toLowerCase());\nconst camelizeRE = /-(\\w)/g;\nconst camelize = cacheStringFunction((str) => {\n return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\n\nfunction promiseTimeout(ms, throwOnTimeout = false, reason = \"Timeout\") {\n return new Promise((resolve, reject) => {\n if (throwOnTimeout)\n setTimeout(() => reject(reason), ms);\n else\n setTimeout(resolve, ms);\n });\n}\nfunction identity(arg) {\n return arg;\n}\nfunction createSingletonPromise(fn) {\n let _promise;\n function wrapper() {\n if (!_promise)\n _promise = fn();\n return _promise;\n }\n wrapper.reset = async () => {\n const _prev = _promise;\n _promise = void 0;\n if (_prev)\n await _prev;\n };\n return wrapper;\n}\nfunction invoke(fn) {\n return fn();\n}\nfunction containsProp(obj, ...props) {\n return props.some((k) => k in obj);\n}\nfunction increaseWithUnit(target, delta) {\n var _a;\n if (typeof target === \"number\")\n return target + delta;\n const value = ((_a = target.match(/^-?[0-9]+\\.?[0-9]*/)) == null ? void 0 : _a[0]) || \"\";\n const unit = target.slice(value.length);\n const result = Number.parseFloat(value) + delta;\n if (Number.isNaN(result))\n return target;\n return result + unit;\n}\nfunction objectPick(obj, keys, omitUndefined = false) {\n return keys.reduce((n, k) => {\n if (k in obj) {\n if (!omitUndefined || obj[k] !== void 0)\n n[k] = obj[k];\n }\n return n;\n }, {});\n}\nfunction objectOmit(obj, keys, omitUndefined = false) {\n return Object.fromEntries(Object.entries(obj).filter(([key, value]) => {\n return (!omitUndefined || value !== void 0) && !keys.includes(key);\n }));\n}\nfunction objectEntries(obj) {\n return Object.entries(obj);\n}\nfunction getLifeCycleTarget(target) {\n return target || getCurrentInstance();\n}\n\nfunction toRef(...args) {\n if (args.length !== 1)\n return toRef$1(...args);\n const r = args[0];\n return typeof r === \"function\" ? readonly(customRef(() => ({ get: r, set: noop }))) : ref(r);\n}\nconst resolveRef = toRef;\n\nfunction reactivePick(obj, ...keys) {\n const flatKeys = keys.flat();\n const predicate = flatKeys[0];\n return reactiveComputed(() => typeof predicate === \"function\" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => predicate(toValue(v), k))) : Object.fromEntries(flatKeys.map((k) => [k, toRef(obj, k)])));\n}\n\nfunction refAutoReset(defaultValue, afterMs = 1e4) {\n return customRef((track, trigger) => {\n let value = toValue(defaultValue);\n let timer;\n const resetAfter = () => setTimeout(() => {\n value = toValue(defaultValue);\n trigger();\n }, toValue(afterMs));\n tryOnScopeDispose(() => {\n clearTimeout(timer);\n });\n return {\n get() {\n track();\n return value;\n },\n set(newValue) {\n value = newValue;\n trigger();\n clearTimeout(timer);\n timer = resetAfter();\n }\n };\n });\n}\n\nfunction useDebounceFn(fn, ms = 200, options = {}) {\n return createFilterWrapper(\n debounceFilter(ms, options),\n fn\n );\n}\n\nfunction refDebounced(value, ms = 200, options = {}) {\n const debounced = ref(value.value);\n const updater = useDebounceFn(() => {\n debounced.value = value.value;\n }, ms, options);\n watch(value, () => updater());\n return debounced;\n}\n\nfunction refDefault(source, defaultValue) {\n return computed({\n get() {\n var _a;\n return (_a = source.value) != null ? _a : defaultValue;\n },\n set(value) {\n source.value = value;\n }\n });\n}\n\nfunction useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {\n return createFilterWrapper(\n throttleFilter(ms, trailing, leading, rejectOnCancel),\n fn\n );\n}\n\nfunction refThrottled(value, delay = 200, trailing = true, leading = true) {\n if (delay <= 0)\n return value;\n const throttled = ref(value.value);\n const updater = useThrottleFn(() => {\n throttled.value = value.value;\n }, delay, trailing, leading);\n watch(value, () => updater());\n return throttled;\n}\n\nfunction refWithControl(initial, options = {}) {\n let source = initial;\n let track;\n let trigger;\n const ref = customRef((_track, _trigger) => {\n track = _track;\n trigger = _trigger;\n return {\n get() {\n return get();\n },\n set(v) {\n set(v);\n }\n };\n });\n function get(tracking = true) {\n if (tracking)\n track();\n return source;\n }\n function set(value, triggering = true) {\n var _a, _b;\n if (value === source)\n return;\n const old = source;\n if (((_a = options.onBeforeChange) == null ? void 0 : _a.call(options, value, old)) === false)\n return;\n source = value;\n (_b = options.onChanged) == null ? void 0 : _b.call(options, value, old);\n if (triggering)\n trigger();\n }\n const untrackedGet = () => get(false);\n const silentSet = (v) => set(v, false);\n const peek = () => get(false);\n const lay = (v) => set(v, false);\n return extendRef(\n ref,\n {\n get,\n set,\n untrackedGet,\n silentSet,\n peek,\n lay\n },\n { enumerable: true }\n );\n}\nconst controlledRef = refWithControl;\n\nfunction set(...args) {\n if (args.length === 2) {\n const [ref, value] = args;\n ref.value = value;\n }\n if (args.length === 3) {\n if (isVue2) {\n set$1(...args);\n } else {\n const [target, key, value] = args;\n target[key] = value;\n }\n }\n}\n\nfunction watchWithFilter(source, cb, options = {}) {\n const {\n eventFilter = bypassFilter,\n ...watchOptions\n } = options;\n return watch(\n source,\n createFilterWrapper(\n eventFilter,\n cb\n ),\n watchOptions\n );\n}\n\nfunction watchPausable(source, cb, options = {}) {\n const {\n eventFilter: filter,\n ...watchOptions\n } = options;\n const { eventFilter, pause, resume, isActive } = pausableFilter(filter);\n const stop = watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter\n }\n );\n return { stop, pause, resume, isActive };\n}\n\nfunction syncRef(left, right, ...[options]) {\n const {\n flush = \"sync\",\n deep = false,\n immediate = true,\n direction = \"both\",\n transform = {}\n } = options || {};\n const watchers = [];\n const transformLTR = \"ltr\" in transform && transform.ltr || ((v) => v);\n const transformRTL = \"rtl\" in transform && transform.rtl || ((v) => v);\n if (direction === \"both\" || direction === \"ltr\") {\n watchers.push(watchPausable(\n left,\n (newValue) => {\n watchers.forEach((w) => w.pause());\n right.value = transformLTR(newValue);\n watchers.forEach((w) => w.resume());\n },\n { flush, deep, immediate }\n ));\n }\n if (direction === \"both\" || direction === \"rtl\") {\n watchers.push(watchPausable(\n right,\n (newValue) => {\n watchers.forEach((w) => w.pause());\n left.value = transformRTL(newValue);\n watchers.forEach((w) => w.resume());\n },\n { flush, deep, immediate }\n ));\n }\n const stop = () => {\n watchers.forEach((w) => w.stop());\n };\n return stop;\n}\n\nfunction syncRefs(source, targets, options = {}) {\n const {\n flush = \"sync\",\n deep = false,\n immediate = true\n } = options;\n if (!Array.isArray(targets))\n targets = [targets];\n return watch(\n source,\n (newValue) => targets.forEach((target) => target.value = newValue),\n { flush, deep, immediate }\n );\n}\n\nfunction toRefs(objectRef, options = {}) {\n if (!isRef(objectRef))\n return toRefs$1(objectRef);\n const result = Array.isArray(objectRef.value) ? Array.from({ length: objectRef.value.length }) : {};\n for (const key in objectRef.value) {\n result[key] = customRef(() => ({\n get() {\n return objectRef.value[key];\n },\n set(v) {\n var _a;\n const replaceRef = (_a = toValue(options.replaceRef)) != null ? _a : true;\n if (replaceRef) {\n if (Array.isArray(objectRef.value)) {\n const copy = [...objectRef.value];\n copy[key] = v;\n objectRef.value = copy;\n } else {\n const newObject = { ...objectRef.value, [key]: v };\n Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));\n objectRef.value = newObject;\n }\n } else {\n objectRef.value[key] = v;\n }\n }\n }));\n }\n return result;\n}\n\nfunction tryOnBeforeMount(fn, sync = true, target) {\n const instance = getLifeCycleTarget(target);\n if (instance)\n onBeforeMount(fn, target);\n else if (sync)\n fn();\n else\n nextTick(fn);\n}\n\nfunction tryOnBeforeUnmount(fn, target) {\n const instance = getLifeCycleTarget(target);\n if (instance)\n onBeforeUnmount(fn, target);\n}\n\nfunction tryOnMounted(fn, sync = true, target) {\n const instance = getLifeCycleTarget();\n if (instance)\n onMounted(fn, target);\n else if (sync)\n fn();\n else\n nextTick(fn);\n}\n\nfunction tryOnUnmounted(fn, target) {\n const instance = getLifeCycleTarget(target);\n if (instance)\n onUnmounted(fn, target);\n}\n\nfunction createUntil(r, isNot = false) {\n function toMatch(condition, { flush = \"sync\", deep = false, timeout, throwOnTimeout } = {}) {\n let stop = null;\n const watcher = new Promise((resolve) => {\n stop = watch(\n r,\n (v) => {\n if (condition(v) !== isNot) {\n stop == null ? void 0 : stop();\n resolve(v);\n }\n },\n {\n flush,\n deep,\n immediate: true\n }\n );\n });\n const promises = [watcher];\n if (timeout != null) {\n promises.push(\n promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => stop == null ? void 0 : stop())\n );\n }\n return Promise.race(promises);\n }\n function toBe(value, options) {\n if (!isRef(value))\n return toMatch((v) => v === value, options);\n const { flush = \"sync\", deep = false, timeout, throwOnTimeout } = options != null ? options : {};\n let stop = null;\n const watcher = new Promise((resolve) => {\n stop = watch(\n [r, value],\n ([v1, v2]) => {\n if (isNot !== (v1 === v2)) {\n stop == null ? void 0 : stop();\n resolve(v1);\n }\n },\n {\n flush,\n deep,\n immediate: true\n }\n );\n });\n const promises = [watcher];\n if (timeout != null) {\n promises.push(\n promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => {\n stop == null ? void 0 : stop();\n return toValue(r);\n })\n );\n }\n return Promise.race(promises);\n }\n function toBeTruthy(options) {\n return toMatch((v) => Boolean(v), options);\n }\n function toBeNull(options) {\n return toBe(null, options);\n }\n function toBeUndefined(options) {\n return toBe(void 0, options);\n }\n function toBeNaN(options) {\n return toMatch(Number.isNaN, options);\n }\n function toContains(value, options) {\n return toMatch((v) => {\n const array = Array.from(v);\n return array.includes(value) || array.includes(toValue(value));\n }, options);\n }\n function changed(options) {\n return changedTimes(1, options);\n }\n function changedTimes(n = 1, options) {\n let count = -1;\n return toMatch(() => {\n count += 1;\n return count >= n;\n }, options);\n }\n if (Array.isArray(toValue(r))) {\n const instance = {\n toMatch,\n toContains,\n changed,\n changedTimes,\n get not() {\n return createUntil(r, !isNot);\n }\n };\n return instance;\n } else {\n const instance = {\n toMatch,\n toBe,\n toBeTruthy,\n toBeNull,\n toBeNaN,\n toBeUndefined,\n changed,\n changedTimes,\n get not() {\n return createUntil(r, !isNot);\n }\n };\n return instance;\n }\n}\nfunction until(r) {\n return createUntil(r);\n}\n\nfunction defaultComparator(value, othVal) {\n return value === othVal;\n}\nfunction useArrayDifference(...args) {\n var _a;\n const list = args[0];\n const values = args[1];\n let compareFn = (_a = args[2]) != null ? _a : defaultComparator;\n if (typeof compareFn === \"string\") {\n const key = compareFn;\n compareFn = (value, othVal) => value[key] === othVal[key];\n }\n return computed(() => toValue(list).filter((x) => toValue(values).findIndex((y) => compareFn(x, y)) === -1));\n}\n\nfunction useArrayEvery(list, fn) {\n return computed(() => toValue(list).every((element, index, array) => fn(toValue(element), index, array)));\n}\n\nfunction useArrayFilter(list, fn) {\n return computed(() => toValue(list).map((i) => toValue(i)).filter(fn));\n}\n\nfunction useArrayFind(list, fn) {\n return computed(() => toValue(\n toValue(list).find((element, index, array) => fn(toValue(element), index, array))\n ));\n}\n\nfunction useArrayFindIndex(list, fn) {\n return computed(() => toValue(list).findIndex((element, index, array) => fn(toValue(element), index, array)));\n}\n\nfunction findLast(arr, cb) {\n let index = arr.length;\n while (index-- > 0) {\n if (cb(arr[index], index, arr))\n return arr[index];\n }\n return void 0;\n}\nfunction useArrayFindLast(list, fn) {\n return computed(() => toValue(\n !Array.prototype.findLast ? findLast(toValue(list), (element, index, array) => fn(toValue(element), index, array)) : toValue(list).findLast((element, index, array) => fn(toValue(element), index, array))\n ));\n}\n\nfunction isArrayIncludesOptions(obj) {\n return isObject(obj) && containsProp(obj, \"formIndex\", \"comparator\");\n}\nfunction useArrayIncludes(...args) {\n var _a;\n const list = args[0];\n const value = args[1];\n let comparator = args[2];\n let formIndex = 0;\n if (isArrayIncludesOptions(comparator)) {\n formIndex = (_a = comparator.fromIndex) != null ? _a : 0;\n comparator = comparator.comparator;\n }\n if (typeof comparator === \"string\") {\n const key = comparator;\n comparator = (element, value2) => element[key] === toValue(value2);\n }\n comparator = comparator != null ? comparator : (element, value2) => element === toValue(value2);\n return computed(() => toValue(list).slice(formIndex).some((element, index, array) => comparator(\n toValue(element),\n toValue(value),\n index,\n toValue(array)\n )));\n}\n\nfunction useArrayJoin(list, separator) {\n return computed(() => toValue(list).map((i) => toValue(i)).join(toValue(separator)));\n}\n\nfunction useArrayMap(list, fn) {\n return computed(() => toValue(list).map((i) => toValue(i)).map(fn));\n}\n\nfunction useArrayReduce(list, reducer, ...args) {\n const reduceCallback = (sum, value, index) => reducer(toValue(sum), toValue(value), index);\n return computed(() => {\n const resolved = toValue(list);\n return args.length ? resolved.reduce(reduceCallback, toValue(args[0])) : resolved.reduce(reduceCallback);\n });\n}\n\nfunction useArraySome(list, fn) {\n return computed(() => toValue(list).some((element, index, array) => fn(toValue(element), index, array)));\n}\n\nfunction uniq(array) {\n return Array.from(new Set(array));\n}\nfunction uniqueElementsBy(array, fn) {\n return array.reduce((acc, v) => {\n if (!acc.some((x) => fn(v, x, array)))\n acc.push(v);\n return acc;\n }, []);\n}\nfunction useArrayUnique(list, compareFn) {\n return computed(() => {\n const resolvedList = toValue(list).map((element) => toValue(element));\n return compareFn ? uniqueElementsBy(resolvedList, compareFn) : uniq(resolvedList);\n });\n}\n\nfunction useCounter(initialValue = 0, options = {}) {\n let _initialValue = unref(initialValue);\n const count = ref(initialValue);\n const {\n max = Number.POSITIVE_INFINITY,\n min = Number.NEGATIVE_INFINITY\n } = options;\n const inc = (delta = 1) => count.value = Math.max(Math.min(max, count.value + delta), min);\n const dec = (delta = 1) => count.value = Math.min(Math.max(min, count.value - delta), max);\n const get = () => count.value;\n const set = (val) => count.value = Math.max(min, Math.min(max, val));\n const reset = (val = _initialValue) => {\n _initialValue = val;\n return set(val);\n };\n return { count, inc, dec, get, set, reset };\n}\n\nconst REGEX_PARSE = /^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/;\nconst REGEX_FORMAT = /[YMDHhms]o|\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;\nfunction defaultMeridiem(hours, minutes, isLowercase, hasPeriod) {\n let m = hours < 12 ? \"AM\" : \"PM\";\n if (hasPeriod)\n m = m.split(\"\").reduce((acc, curr) => acc += `${curr}.`, \"\");\n return isLowercase ? m.toLowerCase() : m;\n}\nfunction formatOrdinal(num) {\n const suffixes = [\"th\", \"st\", \"nd\", \"rd\"];\n const v = num % 100;\n return num + (suffixes[(v - 20) % 10] || suffixes[v] || suffixes[0]);\n}\nfunction formatDate(date, formatStr, options = {}) {\n var _a;\n const years = date.getFullYear();\n const month = date.getMonth();\n const days = date.getDate();\n const hours = date.getHours();\n const minutes = date.getMinutes();\n const seconds = date.getSeconds();\n const milliseconds = date.getMilliseconds();\n const day = date.getDay();\n const meridiem = (_a = options.customMeridiem) != null ? _a : defaultMeridiem;\n const matches = {\n Yo: () => formatOrdinal(years),\n YY: () => String(years).slice(-2),\n YYYY: () => years,\n M: () => month + 1,\n Mo: () => formatOrdinal(month + 1),\n MM: () => `${month + 1}`.padStart(2, \"0\"),\n MMM: () => date.toLocaleDateString(options.locales, { month: \"short\" }),\n MMMM: () => date.toLocaleDateString(options.locales, { month: \"long\" }),\n D: () => String(days),\n Do: () => formatOrdinal(days),\n DD: () => `${days}`.padStart(2, \"0\"),\n H: () => String(hours),\n Ho: () => formatOrdinal(hours),\n HH: () => `${hours}`.padStart(2, \"0\"),\n h: () => `${hours % 12 || 12}`.padStart(1, \"0\"),\n ho: () => formatOrdinal(hours % 12 || 12),\n hh: () => `${hours % 12 || 12}`.padStart(2, \"0\"),\n m: () => String(minutes),\n mo: () => formatOrdinal(minutes),\n mm: () => `${minutes}`.padStart(2, \"0\"),\n s: () => String(seconds),\n so: () => formatOrdinal(seconds),\n ss: () => `${seconds}`.padStart(2, \"0\"),\n SSS: () => `${milliseconds}`.padStart(3, \"0\"),\n d: () => day,\n dd: () => date.toLocaleDateString(options.locales, { weekday: \"narrow\" }),\n ddd: () => date.toLocaleDateString(options.locales, { weekday: \"short\" }),\n dddd: () => date.toLocaleDateString(options.locales, { weekday: \"long\" }),\n A: () => meridiem(hours, minutes),\n AA: () => meridiem(hours, minutes, false, true),\n a: () => meridiem(hours, minutes, true),\n aa: () => meridiem(hours, minutes, true, true)\n };\n return formatStr.replace(REGEX_FORMAT, (match, $1) => {\n var _a2, _b;\n return (_b = $1 != null ? $1 : (_a2 = matches[match]) == null ? void 0 : _a2.call(matches)) != null ? _b : match;\n });\n}\nfunction normalizeDate(date) {\n if (date === null)\n return new Date(Number.NaN);\n if (date === void 0)\n return /* @__PURE__ */ new Date();\n if (date instanceof Date)\n return new Date(date);\n if (typeof date === \"string\" && !/Z$/i.test(date)) {\n const d = date.match(REGEX_PARSE);\n if (d) {\n const m = d[2] - 1 || 0;\n const ms = (d[7] || \"0\").substring(0, 3);\n return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);\n }\n }\n return new Date(date);\n}\nfunction useDateFormat(date, formatStr = \"HH:mm:ss\", options = {}) {\n return computed(() => formatDate(normalizeDate(toValue(date)), toValue(formatStr), options));\n}\n\nfunction useIntervalFn(cb, interval = 1e3, options = {}) {\n const {\n immediate = true,\n immediateCallback = false\n } = options;\n let timer = null;\n const isActive = ref(false);\n function clean() {\n if (timer) {\n clearInterval(timer);\n timer = null;\n }\n }\n function pause() {\n isActive.value = false;\n clean();\n }\n function resume() {\n const intervalValue = toValue(interval);\n if (intervalValue <= 0)\n return;\n isActive.value = true;\n if (immediateCallback)\n cb();\n clean();\n timer = setInterval(cb, intervalValue);\n }\n if (immediate && isClient)\n resume();\n if (isRef(interval) || typeof interval === \"function\") {\n const stopWatch = watch(interval, () => {\n if (isActive.value && isClient)\n resume();\n });\n tryOnScopeDispose(stopWatch);\n }\n tryOnScopeDispose(pause);\n return {\n isActive,\n pause,\n resume\n };\n}\n\nfunction useInterval(interval = 1e3, options = {}) {\n const {\n controls: exposeControls = false,\n immediate = true,\n callback\n } = options;\n const counter = ref(0);\n const update = () => counter.value += 1;\n const reset = () => {\n counter.value = 0;\n };\n const controls = useIntervalFn(\n callback ? () => {\n update();\n callback(counter.value);\n } : update,\n interval,\n { immediate }\n );\n if (exposeControls) {\n return {\n counter,\n reset,\n ...controls\n };\n } else {\n return counter;\n }\n}\n\nfunction useLastChanged(source, options = {}) {\n var _a;\n const ms = ref((_a = options.initialValue) != null ? _a : null);\n watch(\n source,\n () => ms.value = timestamp(),\n options\n );\n return ms;\n}\n\nfunction useTimeoutFn(cb, interval, options = {}) {\n const {\n immediate = true\n } = options;\n const isPending = ref(false);\n let timer = null;\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n function stop() {\n isPending.value = false;\n clear();\n }\n function start(...args) {\n clear();\n isPending.value = true;\n timer = setTimeout(() => {\n isPending.value = false;\n timer = null;\n cb(...args);\n }, toValue(interval));\n }\n if (immediate) {\n isPending.value = true;\n if (isClient)\n start();\n }\n tryOnScopeDispose(stop);\n return {\n isPending: readonly(isPending),\n start,\n stop\n };\n}\n\nfunction useTimeout(interval = 1e3, options = {}) {\n const {\n controls: exposeControls = false,\n callback\n } = options;\n const controls = useTimeoutFn(\n callback != null ? callback : noop,\n interval,\n options\n );\n const ready = computed(() => !controls.isPending.value);\n if (exposeControls) {\n return {\n ready,\n ...controls\n };\n } else {\n return ready;\n }\n}\n\nfunction useToNumber(value, options = {}) {\n const {\n method = \"parseFloat\",\n radix,\n nanToZero\n } = options;\n return computed(() => {\n let resolved = toValue(value);\n if (typeof resolved === \"string\")\n resolved = Number[method](resolved, radix);\n if (nanToZero && Number.isNaN(resolved))\n resolved = 0;\n return resolved;\n });\n}\n\nfunction useToString(value) {\n return computed(() => `${toValue(value)}`);\n}\n\nfunction useToggle(initialValue = false, options = {}) {\n const {\n truthyValue = true,\n falsyValue = false\n } = options;\n const valueIsRef = isRef(initialValue);\n const _value = ref(initialValue);\n function toggle(value) {\n if (arguments.length) {\n _value.value = value;\n return _value.value;\n } else {\n const truthy = toValue(truthyValue);\n _value.value = _value.value === truthy ? toValue(falsyValue) : truthy;\n return _value.value;\n }\n }\n if (valueIsRef)\n return toggle;\n else\n return [_value, toggle];\n}\n\nfunction watchArray(source, cb, options) {\n let oldList = (options == null ? void 0 : options.immediate) ? [] : [...source instanceof Function ? source() : Array.isArray(source) ? source : toValue(source)];\n return watch(source, (newList, _, onCleanup) => {\n const oldListRemains = Array.from({ length: oldList.length });\n const added = [];\n for (const obj of newList) {\n let found = false;\n for (let i = 0; i < oldList.length; i++) {\n if (!oldListRemains[i] && obj === oldList[i]) {\n oldListRemains[i] = true;\n found = true;\n break;\n }\n }\n if (!found)\n added.push(obj);\n }\n const removed = oldList.filter((_2, i) => !oldListRemains[i]);\n cb(newList, oldList, added, removed, onCleanup);\n oldList = [...newList];\n }, options);\n}\n\nfunction watchAtMost(source, cb, options) {\n const {\n count,\n ...watchOptions\n } = options;\n const current = ref(0);\n const stop = watchWithFilter(\n source,\n (...args) => {\n current.value += 1;\n if (current.value >= toValue(count))\n nextTick(() => stop());\n cb(...args);\n },\n watchOptions\n );\n return { count: current, stop };\n}\n\nfunction watchDebounced(source, cb, options = {}) {\n const {\n debounce = 0,\n maxWait = void 0,\n ...watchOptions\n } = options;\n return watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter: debounceFilter(debounce, { maxWait })\n }\n );\n}\n\nfunction watchDeep(source, cb, options) {\n return watch(\n source,\n cb,\n {\n ...options,\n deep: true\n }\n );\n}\n\nfunction watchIgnorable(source, cb, options = {}) {\n const {\n eventFilter = bypassFilter,\n ...watchOptions\n } = options;\n const filteredCb = createFilterWrapper(\n eventFilter,\n cb\n );\n let ignoreUpdates;\n let ignorePrevAsyncUpdates;\n let stop;\n if (watchOptions.flush === \"sync\") {\n const ignore = ref(false);\n ignorePrevAsyncUpdates = () => {\n };\n ignoreUpdates = (updater) => {\n ignore.value = true;\n updater();\n ignore.value = false;\n };\n stop = watch(\n source,\n (...args) => {\n if (!ignore.value)\n filteredCb(...args);\n },\n watchOptions\n );\n } else {\n const disposables = [];\n const ignoreCounter = ref(0);\n const syncCounter = ref(0);\n ignorePrevAsyncUpdates = () => {\n ignoreCounter.value = syncCounter.value;\n };\n disposables.push(\n watch(\n source,\n () => {\n syncCounter.value++;\n },\n { ...watchOptions, flush: \"sync\" }\n )\n );\n ignoreUpdates = (updater) => {\n const syncCounterPrev = syncCounter.value;\n updater();\n ignoreCounter.value += syncCounter.value - syncCounterPrev;\n };\n disposables.push(\n watch(\n source,\n (...args) => {\n const ignore = ignoreCounter.value > 0 && ignoreCounter.value === syncCounter.value;\n ignoreCounter.value = 0;\n syncCounter.value = 0;\n if (ignore)\n return;\n filteredCb(...args);\n },\n watchOptions\n )\n );\n stop = () => {\n disposables.forEach((fn) => fn());\n };\n }\n return { stop, ignoreUpdates, ignorePrevAsyncUpdates };\n}\n\nfunction watchImmediate(source, cb, options) {\n return watch(\n source,\n cb,\n {\n ...options,\n immediate: true\n }\n );\n}\n\nfunction watchOnce(source, cb, options) {\n const stop = watch(source, (...args) => {\n nextTick(() => stop());\n return cb(...args);\n }, options);\n return stop;\n}\n\nfunction watchThrottled(source, cb, options = {}) {\n const {\n throttle = 0,\n trailing = true,\n leading = true,\n ...watchOptions\n } = options;\n return watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter: throttleFilter(throttle, trailing, leading)\n }\n );\n}\n\nfunction watchTriggerable(source, cb, options = {}) {\n let cleanupFn;\n function onEffect() {\n if (!cleanupFn)\n return;\n const fn = cleanupFn;\n cleanupFn = void 0;\n fn();\n }\n function onCleanup(callback) {\n cleanupFn = callback;\n }\n const _cb = (value, oldValue) => {\n onEffect();\n return cb(value, oldValue, onCleanup);\n };\n const res = watchIgnorable(source, _cb, options);\n const { ignoreUpdates } = res;\n const trigger = () => {\n let res2;\n ignoreUpdates(() => {\n res2 = _cb(getWatchSources(source), getOldValue(source));\n });\n return res2;\n };\n return {\n ...res,\n trigger\n };\n}\nfunction getWatchSources(sources) {\n if (isReactive(sources))\n return sources;\n if (Array.isArray(sources))\n return sources.map((item) => toValue(item));\n return toValue(sources);\n}\nfunction getOldValue(source) {\n return Array.isArray(source) ? source.map(() => void 0) : void 0;\n}\n\nfunction whenever(source, cb, options) {\n const stop = watch(\n source,\n (v, ov, onInvalidate) => {\n if (v) {\n if (options == null ? void 0 : options.once)\n nextTick(() => stop());\n cb(v, ov, onInvalidate);\n }\n },\n {\n ...options,\n once: false\n }\n );\n return stop;\n}\n\nexport { assert, refAutoReset as autoResetRef, bypassFilter, camelize, clamp, computedEager, computedWithControl, containsProp, computedWithControl as controlledComputed, controlledRef, createEventHook, createFilterWrapper, createGlobalState, createInjectionState, reactify as createReactiveFn, createSharedComposable, createSingletonPromise, debounceFilter, refDebounced as debouncedRef, watchDebounced as debouncedWatch, directiveHooks, computedEager as eagerComputed, extendRef, formatDate, get, getLifeCycleTarget, hasOwn, hyphenate, identity, watchIgnorable as ignorableWatch, increaseWithUnit, injectLocal, invoke, isClient, isDef, isDefined, isIOS, isObject, isWorker, makeDestructurable, noop, normalizeDate, notNullish, now, objectEntries, objectOmit, objectPick, pausableFilter, watchPausable as pausableWatch, promiseTimeout, provideLocal, rand, reactify, reactifyObject, reactiveComputed, reactiveOmit, reactivePick, refAutoReset, refDebounced, refDefault, refThrottled, refWithControl, resolveRef, resolveUnref, set, syncRef, syncRefs, throttleFilter, refThrottled as throttledRef, watchThrottled as throttledWatch, timestamp, toReactive, toRef, toRefs, toValue, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, useArrayDifference, useArrayEvery, useArrayFilter, useArrayFind, useArrayFindIndex, useArrayFindLast, useArrayIncludes, useArrayJoin, useArrayMap, useArrayReduce, useArraySome, useArrayUnique, useCounter, useDateFormat, refDebounced as useDebounce, useDebounceFn, useInterval, useIntervalFn, useLastChanged, refThrottled as useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToNumber, useToString, useToggle, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever };\n"],"names":["tryOnScopeDispose","fn","getCurrentScope","onScopeDispose","toValue","r","unref"],"mappings":";AAgDA,SAASA,EAAkBC,GAAI;AAC7B,SAAIC,EAAe,KACjBC,EAAeF,CAAE,GACV,MAEF;AACT;AA0JA,SAASG,EAAQC,GAAG;AAClB,SAAO,OAAOA,KAAM,aAAaA,EAAC,IAAKC,EAAMD,CAAC;AAChD;AA6EiB,OAAO,oBAAsB,OAAe,sBAAsB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index211.js","sources":["../src/utilities/functions/when.ts"],"sourcesContent":["import { curry } from './curry';\n/**\n * Runs fn on item if iteratee(item) is thruthy\n * @param iteratee The test\n * @param item The item to test\n * @param fn The transformer function\n * @returns\n */\nexport const baseWhen = <T, U>(\n\titeratee: (item: T) => boolean,\n\tfn: (item: T) => U,\n\titem: T\n) => {\n\tif (iteratee(item)) return fn(item);\n\treturn item;\n};\n\nexport const when = curry(baseWhen);\n"],"names":["baseWhen","iteratee","fn","item","when","curry"],"mappings":";AAQO,MAAMA,IAAW,CACvBC,GACAC,GACAC,MAEIF,EAASE,CAAI,IAAUD,EAAGC,CAAI,IAC3BA,GAGKC,IAAOC,EAAML,CAAQ;"}
|
package/dist/index212.js
CHANGED
|
@@ -1,6 +1,371 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { shift as P, flip as tt, computePosition as et, arrow as ot } from "./index217.js";
|
|
2
|
+
import { detectOverflow as At, offset as Nt } from "./index217.js";
|
|
3
|
+
import { createCoords as x, rectToClientRect as q, round as N, max as T, min as I, floor as A } from "./index246.js";
|
|
4
|
+
import { getOverflowAncestors as V, isElement as b, getWindow as E, getComputedStyle as y, getDocumentElement as C, isHTMLElement as R, isWebKit as U, getNodeName as W, isOverflowElement as S, getNodeScroll as D, isTableElement as nt, isContainingBlock as K, getContainingBlock as it, getParentNode as z, isLastTraversableNode as X } from "./index247.js";
|
|
5
|
+
function j(t) {
|
|
6
|
+
const e = y(t);
|
|
7
|
+
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
8
|
+
const s = R(t), c = s ? t.offsetWidth : n, i = s ? t.offsetHeight : o, r = N(n) !== c || N(o) !== i;
|
|
9
|
+
return r && (n = c, o = i), {
|
|
10
|
+
width: n,
|
|
11
|
+
height: o,
|
|
12
|
+
$: r
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function $(t) {
|
|
16
|
+
return b(t) ? t : t.contextElement;
|
|
17
|
+
}
|
|
18
|
+
function F(t) {
|
|
19
|
+
const e = $(t);
|
|
20
|
+
if (!R(e))
|
|
21
|
+
return x(1);
|
|
22
|
+
const n = e.getBoundingClientRect(), {
|
|
23
|
+
width: o,
|
|
24
|
+
height: s,
|
|
25
|
+
$: c
|
|
26
|
+
} = j(e);
|
|
27
|
+
let i = (c ? N(n.width) : n.width) / o, r = (c ? N(n.height) : n.height) / s;
|
|
28
|
+
return (!i || !Number.isFinite(i)) && (i = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
29
|
+
x: i,
|
|
30
|
+
y: r
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const st = /* @__PURE__ */ x(0);
|
|
34
|
+
function G(t) {
|
|
35
|
+
const e = E(t);
|
|
36
|
+
return !U() || !e.visualViewport ? st : {
|
|
37
|
+
x: e.visualViewport.offsetLeft,
|
|
38
|
+
y: e.visualViewport.offsetTop
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function rt(t, e, n) {
|
|
42
|
+
return e === void 0 && (e = !1), !n || e && n !== E(t) ? !1 : e;
|
|
43
|
+
}
|
|
44
|
+
function L(t, e, n, o) {
|
|
45
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
46
|
+
const s = t.getBoundingClientRect(), c = $(t);
|
|
47
|
+
let i = x(1);
|
|
48
|
+
e && (o ? b(o) && (i = F(o)) : i = F(t));
|
|
49
|
+
const r = rt(c, n, o) ? G(c) : x(0);
|
|
50
|
+
let l = (s.left + r.x) / i.x, f = (s.top + r.y) / i.y, u = s.width / i.x, h = s.height / i.y;
|
|
51
|
+
if (c) {
|
|
52
|
+
const w = E(c), g = o && b(o) ? E(o) : o;
|
|
53
|
+
let v = w, a = v.frameElement;
|
|
54
|
+
for (; a && o && g !== v; ) {
|
|
55
|
+
const p = F(a), d = a.getBoundingClientRect(), m = y(a), O = d.left + (a.clientLeft + parseFloat(m.paddingLeft)) * p.x, B = d.top + (a.clientTop + parseFloat(m.paddingTop)) * p.y;
|
|
56
|
+
l *= p.x, f *= p.y, u *= p.x, h *= p.y, l += O, f += B, v = E(a), a = v.frameElement;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return q({
|
|
60
|
+
width: u,
|
|
61
|
+
height: h,
|
|
62
|
+
x: l,
|
|
63
|
+
y: f
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
const ct = [":popover-open", ":modal"];
|
|
67
|
+
function J(t) {
|
|
68
|
+
return ct.some((e) => {
|
|
69
|
+
try {
|
|
70
|
+
return t.matches(e);
|
|
71
|
+
} catch {
|
|
72
|
+
return !1;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function lt(t) {
|
|
77
|
+
let {
|
|
78
|
+
elements: e,
|
|
79
|
+
rect: n,
|
|
80
|
+
offsetParent: o,
|
|
81
|
+
strategy: s
|
|
82
|
+
} = t;
|
|
83
|
+
const c = s === "fixed", i = C(o), r = e ? J(e.floating) : !1;
|
|
84
|
+
if (o === i || r && c)
|
|
85
|
+
return n;
|
|
86
|
+
let l = {
|
|
87
|
+
scrollLeft: 0,
|
|
88
|
+
scrollTop: 0
|
|
89
|
+
}, f = x(1);
|
|
90
|
+
const u = x(0), h = R(o);
|
|
91
|
+
if ((h || !h && !c) && ((W(o) !== "body" || S(i)) && (l = D(o)), R(o))) {
|
|
92
|
+
const w = L(o);
|
|
93
|
+
f = F(o), u.x = w.x + o.clientLeft, u.y = w.y + o.clientTop;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
width: n.width * f.x,
|
|
97
|
+
height: n.height * f.y,
|
|
98
|
+
x: n.x * f.x - l.scrollLeft * f.x + u.x,
|
|
99
|
+
y: n.y * f.y - l.scrollTop * f.y + u.y
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function ft(t) {
|
|
103
|
+
return Array.from(t.getClientRects());
|
|
104
|
+
}
|
|
105
|
+
function Q(t) {
|
|
106
|
+
return L(C(t)).left + D(t).scrollLeft;
|
|
107
|
+
}
|
|
108
|
+
function ut(t) {
|
|
109
|
+
const e = C(t), n = D(t), o = t.ownerDocument.body, s = T(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), c = T(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
110
|
+
let i = -n.scrollLeft + Q(t);
|
|
111
|
+
const r = -n.scrollTop;
|
|
112
|
+
return y(o).direction === "rtl" && (i += T(e.clientWidth, o.clientWidth) - s), {
|
|
113
|
+
width: s,
|
|
114
|
+
height: c,
|
|
115
|
+
x: i,
|
|
116
|
+
y: r
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function ht(t, e) {
|
|
120
|
+
const n = E(t), o = C(t), s = n.visualViewport;
|
|
121
|
+
let c = o.clientWidth, i = o.clientHeight, r = 0, l = 0;
|
|
122
|
+
if (s) {
|
|
123
|
+
c = s.width, i = s.height;
|
|
124
|
+
const f = U();
|
|
125
|
+
(!f || f && e === "fixed") && (r = s.offsetLeft, l = s.offsetTop);
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
width: c,
|
|
129
|
+
height: i,
|
|
130
|
+
x: r,
|
|
131
|
+
y: l
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function at(t, e) {
|
|
135
|
+
const n = L(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, c = R(t) ? F(t) : x(1), i = t.clientWidth * c.x, r = t.clientHeight * c.y, l = s * c.x, f = o * c.y;
|
|
136
|
+
return {
|
|
137
|
+
width: i,
|
|
138
|
+
height: r,
|
|
139
|
+
x: l,
|
|
140
|
+
y: f
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function _(t, e, n) {
|
|
144
|
+
let o;
|
|
145
|
+
if (e === "viewport")
|
|
146
|
+
o = ht(t, n);
|
|
147
|
+
else if (e === "document")
|
|
148
|
+
o = ut(C(t));
|
|
149
|
+
else if (b(e))
|
|
150
|
+
o = at(e, n);
|
|
151
|
+
else {
|
|
152
|
+
const s = G(t);
|
|
153
|
+
o = {
|
|
154
|
+
...e,
|
|
155
|
+
x: e.x - s.x,
|
|
156
|
+
y: e.y - s.y
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return q(o);
|
|
160
|
+
}
|
|
161
|
+
function Y(t, e) {
|
|
162
|
+
const n = z(t);
|
|
163
|
+
return n === e || !b(n) || X(n) ? !1 : y(n).position === "fixed" || Y(n, e);
|
|
164
|
+
}
|
|
165
|
+
function dt(t, e) {
|
|
166
|
+
const n = e.get(t);
|
|
167
|
+
if (n)
|
|
168
|
+
return n;
|
|
169
|
+
let o = V(t, [], !1).filter((r) => b(r) && W(r) !== "body"), s = null;
|
|
170
|
+
const c = y(t).position === "fixed";
|
|
171
|
+
let i = c ? z(t) : t;
|
|
172
|
+
for (; b(i) && !X(i); ) {
|
|
173
|
+
const r = y(i), l = K(i);
|
|
174
|
+
!l && r.position === "fixed" && (s = null), (c ? !l && !s : !l && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || S(i) && !l && Y(t, i)) ? o = o.filter((u) => u !== i) : s = r, i = z(i);
|
|
175
|
+
}
|
|
176
|
+
return e.set(t, o), o;
|
|
177
|
+
}
|
|
178
|
+
function gt(t) {
|
|
179
|
+
let {
|
|
180
|
+
element: e,
|
|
181
|
+
boundary: n,
|
|
182
|
+
rootBoundary: o,
|
|
183
|
+
strategy: s
|
|
184
|
+
} = t;
|
|
185
|
+
const i = [...n === "clippingAncestors" ? dt(e, this._c) : [].concat(n), o], r = i[0], l = i.reduce((f, u) => {
|
|
186
|
+
const h = _(e, u, s);
|
|
187
|
+
return f.top = T(h.top, f.top), f.right = I(h.right, f.right), f.bottom = I(h.bottom, f.bottom), f.left = T(h.left, f.left), f;
|
|
188
|
+
}, _(e, r, s));
|
|
189
|
+
return {
|
|
190
|
+
width: l.right - l.left,
|
|
191
|
+
height: l.bottom - l.top,
|
|
192
|
+
x: l.left,
|
|
193
|
+
y: l.top
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function pt(t) {
|
|
197
|
+
const {
|
|
198
|
+
width: e,
|
|
199
|
+
height: n
|
|
200
|
+
} = j(t);
|
|
201
|
+
return {
|
|
202
|
+
width: e,
|
|
203
|
+
height: n
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function mt(t, e, n) {
|
|
207
|
+
const o = R(e), s = C(e), c = n === "fixed", i = L(t, !0, c, e);
|
|
208
|
+
let r = {
|
|
209
|
+
scrollLeft: 0,
|
|
210
|
+
scrollTop: 0
|
|
211
|
+
};
|
|
212
|
+
const l = x(0);
|
|
213
|
+
if (o || !o && !c)
|
|
214
|
+
if ((W(e) !== "body" || S(s)) && (r = D(e)), o) {
|
|
215
|
+
const h = L(e, !0, c, e);
|
|
216
|
+
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
217
|
+
} else
|
|
218
|
+
s && (l.x = Q(s));
|
|
219
|
+
const f = i.left + r.scrollLeft - l.x, u = i.top + r.scrollTop - l.y;
|
|
220
|
+
return {
|
|
221
|
+
x: f,
|
|
222
|
+
y: u,
|
|
223
|
+
width: i.width,
|
|
224
|
+
height: i.height
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function k(t, e) {
|
|
228
|
+
return !R(t) || y(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
229
|
+
}
|
|
230
|
+
function Z(t, e) {
|
|
231
|
+
const n = E(t);
|
|
232
|
+
if (!R(t) || J(t))
|
|
233
|
+
return n;
|
|
234
|
+
let o = k(t, e);
|
|
235
|
+
for (; o && nt(o) && y(o).position === "static"; )
|
|
236
|
+
o = k(o, e);
|
|
237
|
+
return o && (W(o) === "html" || W(o) === "body" && y(o).position === "static" && !K(o)) ? n : o || it(t) || n;
|
|
238
|
+
}
|
|
239
|
+
const wt = async function(t) {
|
|
240
|
+
const e = this.getOffsetParent || Z, n = this.getDimensions;
|
|
241
|
+
return {
|
|
242
|
+
reference: mt(t.reference, await e(t.floating), t.strategy),
|
|
243
|
+
floating: {
|
|
244
|
+
x: 0,
|
|
245
|
+
y: 0,
|
|
246
|
+
...await n(t.floating)
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
function yt(t) {
|
|
251
|
+
return y(t).direction === "rtl";
|
|
252
|
+
}
|
|
253
|
+
const vt = {
|
|
254
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: lt,
|
|
255
|
+
getDocumentElement: C,
|
|
256
|
+
getClippingRect: gt,
|
|
257
|
+
getOffsetParent: Z,
|
|
258
|
+
getElementRects: wt,
|
|
259
|
+
getClientRects: ft,
|
|
260
|
+
getDimensions: pt,
|
|
261
|
+
getScale: F,
|
|
262
|
+
isElement: b,
|
|
263
|
+
isRTL: yt
|
|
264
|
+
};
|
|
265
|
+
function xt(t, e) {
|
|
266
|
+
let n = null, o;
|
|
267
|
+
const s = C(t);
|
|
268
|
+
function c() {
|
|
269
|
+
var r;
|
|
270
|
+
clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
|
|
271
|
+
}
|
|
272
|
+
function i(r, l) {
|
|
273
|
+
r === void 0 && (r = !1), l === void 0 && (l = 1), c();
|
|
274
|
+
const {
|
|
275
|
+
left: f,
|
|
276
|
+
top: u,
|
|
277
|
+
width: h,
|
|
278
|
+
height: w
|
|
279
|
+
} = t.getBoundingClientRect();
|
|
280
|
+
if (r || e(), !h || !w)
|
|
281
|
+
return;
|
|
282
|
+
const g = A(u), v = A(s.clientWidth - (f + h)), a = A(s.clientHeight - (u + w)), p = A(f), m = {
|
|
283
|
+
rootMargin: -g + "px " + -v + "px " + -a + "px " + -p + "px",
|
|
284
|
+
threshold: T(0, I(1, l)) || 1
|
|
285
|
+
};
|
|
286
|
+
let O = !0;
|
|
287
|
+
function B(M) {
|
|
288
|
+
const H = M[0].intersectionRatio;
|
|
289
|
+
if (H !== l) {
|
|
290
|
+
if (!O)
|
|
291
|
+
return i();
|
|
292
|
+
H ? i(!1, H) : o = setTimeout(() => {
|
|
293
|
+
i(!1, 1e-7);
|
|
294
|
+
}, 100);
|
|
295
|
+
}
|
|
296
|
+
O = !1;
|
|
297
|
+
}
|
|
298
|
+
try {
|
|
299
|
+
n = new IntersectionObserver(B, {
|
|
300
|
+
...m,
|
|
301
|
+
// Handle <iframe>s
|
|
302
|
+
root: s.ownerDocument
|
|
303
|
+
});
|
|
304
|
+
} catch {
|
|
305
|
+
n = new IntersectionObserver(B, m);
|
|
306
|
+
}
|
|
307
|
+
n.observe(t);
|
|
308
|
+
}
|
|
309
|
+
return i(!0), c;
|
|
310
|
+
}
|
|
311
|
+
function Ot(t, e, n, o) {
|
|
312
|
+
o === void 0 && (o = {});
|
|
313
|
+
const {
|
|
314
|
+
ancestorScroll: s = !0,
|
|
315
|
+
ancestorResize: c = !0,
|
|
316
|
+
elementResize: i = typeof ResizeObserver == "function",
|
|
317
|
+
layoutShift: r = typeof IntersectionObserver == "function",
|
|
318
|
+
animationFrame: l = !1
|
|
319
|
+
} = o, f = $(t), u = s || c ? [...f ? V(f) : [], ...V(e)] : [];
|
|
320
|
+
u.forEach((d) => {
|
|
321
|
+
s && d.addEventListener("scroll", n, {
|
|
322
|
+
passive: !0
|
|
323
|
+
}), c && d.addEventListener("resize", n);
|
|
324
|
+
});
|
|
325
|
+
const h = f && r ? xt(f, n) : null;
|
|
326
|
+
let w = -1, g = null;
|
|
327
|
+
i && (g = new ResizeObserver((d) => {
|
|
328
|
+
let [m] = d;
|
|
329
|
+
m && m.target === f && g && (g.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
|
|
330
|
+
var O;
|
|
331
|
+
(O = g) == null || O.observe(e);
|
|
332
|
+
})), n();
|
|
333
|
+
}), f && !l && g.observe(f), g.observe(e));
|
|
334
|
+
let v, a = l ? L(t) : null;
|
|
335
|
+
l && p();
|
|
336
|
+
function p() {
|
|
337
|
+
const d = L(t);
|
|
338
|
+
a && (d.x !== a.x || d.y !== a.y || d.width !== a.width || d.height !== a.height) && n(), a = d, v = requestAnimationFrame(p);
|
|
339
|
+
}
|
|
340
|
+
return n(), () => {
|
|
341
|
+
var d;
|
|
342
|
+
u.forEach((m) => {
|
|
343
|
+
s && m.removeEventListener("scroll", n), c && m.removeEventListener("resize", n);
|
|
344
|
+
}), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(v);
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
const Et = P, Lt = tt, Tt = ot, Ft = (t, e, n) => {
|
|
348
|
+
const o = /* @__PURE__ */ new Map(), s = {
|
|
349
|
+
platform: vt,
|
|
350
|
+
...n
|
|
351
|
+
}, c = {
|
|
352
|
+
...s.platform,
|
|
353
|
+
_c: o
|
|
354
|
+
};
|
|
355
|
+
return et(t, e, {
|
|
356
|
+
...s,
|
|
357
|
+
platform: c
|
|
358
|
+
});
|
|
359
|
+
};
|
|
3
360
|
export {
|
|
4
|
-
|
|
361
|
+
Tt as arrow,
|
|
362
|
+
Ot as autoUpdate,
|
|
363
|
+
Ft as computePosition,
|
|
364
|
+
At as detectOverflow,
|
|
365
|
+
Lt as flip,
|
|
366
|
+
V as getOverflowAncestors,
|
|
367
|
+
Nt as offset,
|
|
368
|
+
vt as platform,
|
|
369
|
+
Et as shift
|
|
5
370
|
};
|
|
6
371
|
//# sourceMappingURL=index212.js.map
|