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/index13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-checkbox-group__container\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"bb-base-checkbox-group__loading-container\"\n}\nconst _hoisted_3 = {\n key: 1,\n class: \"bb-base-select__no-data-container\"\n}\n\nimport { ref, toRef } from 'vue';\nimport { useOptions } from '@/composables/useOptions';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { Option } from '@/composables/useOptions';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Defines an array of dependencies that will trigger actions in the component upon change.\n\t */\n\tdependencies?: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to dependencies.\n\t */\n\tdepsDebounceTime?: number;\n\n\t/**\n\t * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n\t *\n\t * e.g. You cannot set v-model to a user that is not present in the items passed.\n\t *\n\t * modelValue will be reset upon incoherence.\n\t */\n\tenforceCoherence?: boolean;\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 * Used to retrieve items can be an array or a function.\n\t */\n\titems:\n\t\t| T[]\n\t\t| ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n\t\t| ((prefill: boolean, modelValue?: any[]) => T[]);\n\n\t/**\n\t * Defines a path that returns a property of the object to use as text or a function that returns a string\n\t */\n\titemText?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => string) | undefined;\n\n\t/**\n\t * Defines a path that returns a property of the object to use as value or a function that returns any value\n\t */\n\titemValue?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => any) | undefined;\n\n\t/**\n\t * String displayed while items are being loaded.\n\t */\n\tloadingText?: string;\n\n\t/**\n\t * Defines the strategy used to understand whether an option has been selected.\n\t * `string` is 40% faster but relies on property order.\n\t * `equality` is more reliable but is slower.\n\t */\n\tmatchStrategy?: 'string' | 'equality';\n\n\t/**\n\t * Used by v-model. Can be an array of any serializable type.\n\t */\n\tmodelValue: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to modelValue.\n\t */\n\tmodelValueDebounceTime?: number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there are no items to display.\n\t */\n\tnoDataText?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n};\n\nexport type BaseCheckboxGroupEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\n\t(e: 'change', event: Event): void;\n\n\t(e: 'click', event: MouseEvent): void;\n\n\t(e: 'focus', event: FocusEvent): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'input', event: Event): void;\n\n\t(e: 'keydown', event: KeyboardEvent): void;\n\n\t(e: 'mousedown', event: MouseEvent): void;\n\n\t(e: 'mouseup', event: MouseEvent): void;\n\n\t(e: 'update:modelValue', value: any): void;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseCheckboxGroup',\n props: {\n autofocus: {},\n color: {},\n dependencies: {},\n depsDebounceTime: { default: 0 },\n direction: { default: 'horizontal' },\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n items: { type: [Array, Function], default: () => [] },\n itemText: {},\n itemValue: {},\n loadingText: { default: 'Caricamento...' },\n matchStrategy: { default: 'string' },\n modelValue: {},\n modelValueDebounceTime: { default: 0 },\n name: {},\n noDataText: { default: 'Nessun elemento da visualizzare' },\n readonly: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst { loading, options } = useOptions({\n\tdependencies: toRef(() => props.dependencies),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(() => props.disabled),\n\temitter: (value) => emit('update:modelValue', value),\n\tenforceCoherence: toRef(() => props.enforceCoherence),\n\tid: props.id,\n\timmediate: true,\n\tinitialItems: toRef(() => props.items),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmatchStrategy: props.matchStrategy,\n\tmodelValue: toRef(() => props.modelValue),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n});\n\n/**\n * When selecting an option split behavior based on single or multiple selection\n */\nconst onOptionSelected = (option: Option) => {\n\tlet valueToEmit;\n\tif (option.selected) {\n\t\tvalueToEmit = props.modelValue\n\t\t\t.slice(0, option.selectedIndex)\n\t\t\t.concat(props.modelValue.slice(option.selectedIndex + 1));\n\t} else {\n\t\tvalueToEmit = props.modelValue.concat(option.value);\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tonOptionSelected(option);\n};\n\nconst onFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tif (!active.value) {\n\t\tdocument.addEventListener('focusin', onDocumentFocus, { passive: true });\n\t\tdocument.addEventListener('click', onDocumentClick, { passive: true });\n\t\tactive.value = true;\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus,\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n ref_key: \"container\",\n ref: container,\n class: _normalizeClass([\"bb-base-checkbox-group\", {\n\t\t\t'bb-base-checkbox-group--errors': _ctx.hasErrors,\n\t\t\t'bb-base-checkbox-group--horizontal': _ctx.direction === 'horizontal',\n\t\t\t'bb-base-checkbox-group--vertical': _ctx.direction === 'vertical',\n\t\t}])\n }, [\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"prepend\"),\n (!_unref(options).length && _unref(loading))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n _renderSlot(_ctx.$slots, 'loading', {}, () => [\n _createTextVNode(_toDisplayString(_ctx.loadingText), 1)\n ])\n ]))\n : (!_unref(options).length)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, [\n _renderSlot(_ctx.$slots, 'no-data', {}, () => [\n _createTextVNode(_toDisplayString(_ctx.noDataText), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(options), (option, index) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: option?.id || option.jsonValue\n }, [\n _renderSlot(_ctx.$slots, \"option:prepend\", {\n item: option.original\n }),\n _createElementVNode(\"label\", {\n class: _normalizeClass([\"bb-base-checkbox-group-option\", {\n\t\t\t\t\t\t'bb-base-checkbox-group-option__selected': option.selected,\n\t\t\t\t\t}])\n }, [\n _createVNode(BaseCheckbox, _mergeProps({\n id: option.id,\n autofocus: _ctx.autofocus && !index,\n checked: option.selected,\n color: _ctx.color,\n disabled: option.disabled,\n \"has-errors\": _ctx.hasErrors,\n name: _ctx.name,\n \"on-change\": (event) => onChange(event, option),\n readonly: _ctx.readonly,\n \"true-value\": option.value\n }, eventListeners), {\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _mergeProps({\n item: option.original,\n text: option.text\n }, data))\n ]),\n _: 2\n }, 1040, [\"id\", \"autofocus\", \"checked\", \"color\", \"disabled\", \"has-errors\", \"name\", \"on-change\", \"readonly\", \"true-value\"]),\n _createElementVNode(\"span\", {\n class: _normalizeClass({\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text': true,\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text--hidden': _ctx.hideLabel,\n\t\t\t\t\t\t})\n }, [\n _renderSlot(_ctx.$slots, \"label\", {\n checked: option.selected,\n item: option.original,\n text: option.text\n }, () => [\n _createTextVNode(_toDisplayString(option.text), 1)\n ])\n ], 2)\n ], 2),\n _renderSlot(_ctx.$slots, \"option:append\", {\n item: option.original\n })\n ], 64))\n }), 128)),\n _renderSlot(_ctx.$slots, \"append\")\n ])\n ], 2))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","__emit","props","emit","container","ref","active","loading","options","useOptions","toRef","value","onOptionSelected","option","valueToEmit","onChange","event","eventListeners","onDocumentFocus","onDocumentClick","_a","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot","_unref","_createTextVNode","_toDisplayString","_createCommentVNode","_Fragment","_renderList","index","_createVNode","BaseCheckbox","_mergeProps","_withC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,cAAc,QAAQ,aAAa,YAAY,YAAY,CAAC;AAAA,YACzHb,EAAoB,QAAQ;AAAA,cAC1B,OAAOD,EAAgB;AAAA,gBAC9B,uCAAuC;AAAA,gBACvC,+CAA+CJ,EAAK;AAAA,cAAA,CACpD;AAAA,YAAA,GACQ;AAAA,cACDM,EAAYN,EAAK,QAAQ,SAAS;AAAA,gBAChC,SAASR,EAAO;AAAA,gBAChB,MAAMA,EAAO;AAAA,gBACb,MAAMA,EAAO;AAAA,cAAA,GACZ,MAAM;AAAA,gBACPgB,EAAiBC,EAAiBjB,EAAO,IAAI,GAAG,CAAC;AAAA,cAAA,CAClD;AAAA,eACA,CAAC;AAAA,aACH,CAAC;AAAA,UACJc,EAAYN,EAAK,QAAQ,iBAAiB;AAAA,YACxC,MAAMR,EAAO;AAAA,UAAA,CACd;AAAA,WACA,EAAE,EACN,GAAG,GAAG;AAAA,QACPc,EAAYN,EAAK,QAAQ,QAAQ;AAAA,MAAA,CAClC;AAAA,OACA,CAAC;AAAA,EAEN;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index13.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue"],"sourcesContent":["<template>\n\t<span\n\t\tref=\"container\"\n\t\tclass=\"bb-base-checkbox-group\"\n\t\t:class=\"{\n\t\t\t'bb-base-checkbox-group--errors': hasErrors,\n\t\t\t'bb-base-checkbox-group--horizontal': direction === 'horizontal',\n\t\t\t'bb-base-checkbox-group--vertical': direction === 'vertical',\n\t\t}\"\n\t>\n\t\t<span class=\"bb-base-checkbox-group__container\">\n\t\t\t<slot name=\"prepend\"></slot>\n\t\t\t<span\n\t\t\t\tv-if=\"!options.length && loading\"\n\t\t\t\tclass=\"bb-base-checkbox-group__loading-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'loading'\">{{ loadingText }}</slot>\n\t\t\t</span>\n\t\t\t<span\n\t\t\t\tv-else-if=\"!options.length\"\n\t\t\t\tclass=\"bb-base-select__no-data-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'no-data'\">{{ noDataText }}</slot>\n\t\t\t</span>\n\n\t\t\t<template\n\t\t\t\tv-for=\"(option, index) in options\"\n\t\t\t\t:key=\"option?.id || option.jsonValue\"\n\t\t\t>\n\t\t\t\t<slot :item=\"option.original\" name=\"option:prepend\"></slot>\n\t\t\t\t<label\n\t\t\t\t\tclass=\"bb-base-checkbox-group-option\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t'bb-base-checkbox-group-option__selected': option.selected,\n\t\t\t\t\t}\"\n\t\t\t\t>\n\t\t\t\t\t<BaseCheckbox\n\t\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t\t:autofocus=\"autofocus && !index\"\n\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t:color=\"color\"\n\t\t\t\t\t\t:disabled=\"option.disabled\"\n\t\t\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t\t\t:name=\"name\"\n\t\t\t\t\t\t:on-change=\"(event: Event) => onChange(event, option)\"\n\t\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t\t:true-value=\"option.value\"\n\t\t\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t\t\t><template #icon=\"data\"\n\t\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\t\tname=\"icon\"\n\t\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t\tv-bind=\"data\" /></template\n\t\t\t\t\t></BaseCheckbox>\n\t\t\t\t\t<span\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text': true,\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text--hidden': hideLabel,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\tname=\"label\"\n\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t>{{ option.text }}</slot\n\t\t\t\t\t\t></span\n\t\t\t\t\t>\n\t\t\t\t</label>\n\t\t\t\t<slot :item=\"option.original\" name=\"option:append\"></slot>\n\t\t\t</template>\n\t\t\t<slot name=\"append\"></slot>\n\t\t</span>\n\t</span>\n</template>\n\n<script setup lang=\"ts\" generic=\"T = any\">\nimport { ref, toRef } from 'vue';\nimport { useOptions } from '@/composables/useOptions';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { Option } from '@/composables/useOptions';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Defines an array of dependencies that will trigger actions in the component upon change.\n\t */\n\tdependencies?: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to dependencies.\n\t */\n\tdepsDebounceTime?: number;\n\n\t/**\n\t * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n\t *\n\t * e.g. You cannot set v-model to a user that is not present in the items passed.\n\t *\n\t * modelValue will be reset upon incoherence.\n\t */\n\tenforceCoherence?: boolean;\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 * Used to retrieve items can be an array or a function.\n\t */\n\titems:\n\t\t| T[]\n\t\t| ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n\t\t| ((prefill: boolean, modelValue?: any[]) => T[]);\n\n\t/**\n\t * Defines a path that returns a property of the object to use as text or a function that returns a string\n\t */\n\titemText?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => string) | undefined;\n\n\t/**\n\t * Defines a path that returns a property of the object to use as value or a function that returns any value\n\t */\n\titemValue?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => any) | undefined;\n\n\t/**\n\t * String displayed while items are being loaded.\n\t */\n\tloadingText?: string;\n\n\t/**\n\t * Defines the strategy used to understand whether an option has been selected.\n\t * `string` is 40% faster but relies on property order.\n\t * `equality` is more reliable but is slower.\n\t */\n\tmatchStrategy?: 'string' | 'equality';\n\n\t/**\n\t * Used by v-model. Can be an array of any serializable type.\n\t */\n\tmodelValue: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to modelValue.\n\t */\n\tmodelValueDebounceTime?: number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there are no items to display.\n\t */\n\tnoDataText?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n};\n\nexport type BaseCheckboxGroupEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\n\t(e: 'change', event: Event): void;\n\n\t(e: 'click', event: MouseEvent): void;\n\n\t(e: 'focus', event: FocusEvent): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'input', event: Event): void;\n\n\t(e: 'keydown', event: KeyboardEvent): void;\n\n\t(e: 'mousedown', event: MouseEvent): void;\n\n\t(e: 'mouseup', event: MouseEvent): void;\n\n\t(e: 'update:modelValue', value: any): void;\n};\n\nconst props = withDefaults(defineProps<BaseCheckboxGroupProps<T>>(), {\n\tdepsDebounceTime: 0,\n\tdirection: 'horizontal',\n\titems: () => [],\n\tloadingText: 'Caricamento...',\n\tmatchStrategy: 'string',\n\tmodelValueDebounceTime: 0,\n\tnoDataText: 'Nessun elemento da visualizzare',\n});\n\nconst emit = defineEmits<BaseCheckboxGroupEvents>();\n\ndefineSlots<{\n\tprepend?: (props: {}) => any;\n\tloading?: (props: {}) => any;\n\t'no-data'?: (props: {}) => any;\n\t'option:prepend'?: (props: { item: T }) => any;\n\ticon?: (\n\t\tprops: SlotAttributes & {\n\t\t\titem: T;\n\t\t\ttext: string;\n\t\t}\n\t) => any;\n\tlabel?: (props: { item: T; text: string; checked: boolean }) => any;\n\t'option:append'?: (props: { item: T }) => any;\n\tappend?: (props: {}) => any;\n}>();\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst { loading, options } = useOptions({\n\tdependencies: toRef(() => props.dependencies),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(() => props.disabled),\n\temitter: (value) => emit('update:modelValue', value),\n\tenforceCoherence: toRef(() => props.enforceCoherence),\n\tid: props.id,\n\timmediate: true,\n\tinitialItems: toRef(() => props.items),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmatchStrategy: props.matchStrategy,\n\tmodelValue: toRef(() => props.modelValue),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n});\n\n/**\n * When selecting an option split behavior based on single or multiple selection\n */\nconst onOptionSelected = (option: Option) => {\n\tlet valueToEmit;\n\tif (option.selected) {\n\t\tvalueToEmit = props.modelValue\n\t\t\t.slice(0, option.selectedIndex)\n\t\t\t.concat(props.modelValue.slice(option.selectedIndex + 1));\n\t} else {\n\t\tvalueToEmit = props.modelValue.concat(option.value);\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tonOptionSelected(option);\n};\n\nconst onFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tif (!active.value) {\n\t\tdocument.addEventListener('focusin', onDocumentFocus, { passive: true });\n\t\tdocument.addEventListener('click', onDocumentClick, { passive: true });\n\t\tactive.value = true;\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus,\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseCheckboxGroup';\n</style>\n"],"names":["props","__props","emit","__emit","container","ref","active","loading","options","useOptions","toRef","value","onOptionSelected","option","valueToEmit","onChange","event","eventListeners","onDocumentFocus","onDocumentClick","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiOA,UAAMA,IAAQC,GAURC,IAAOC,GAkBPC,IAAYC,KACZC,IAASD,EAAI,EAAK,GAElB,EAAE,SAAAE,GAAS,SAAAC,EAAQ,IAAIC,EAAW;AAAA,MACvC,cAAcC,EAAM,MAAMV,EAAM,YAAY;AAAA,MAC5C,kBAAk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D,aAAa,CAACA,MAAsBd,EAAK,aAAac,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBd,EAAK,WAAWc,CAAK;AAAA,IAAA,GAGlDE,IAAkB,CAACF,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBI,IAAAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD,GAGKA,IAAkB,CAACH,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBI,IAAAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index131.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toValue as B } from "./
|
|
2
|
-
import { tryOnScopeDispose as E } from "./
|
|
1
|
+
import { toValue as B } from "./index197.js";
|
|
2
|
+
import { tryOnScopeDispose as E } from "./index197.js";
|
|
3
3
|
import { ref as c, computed as t } from "vue";
|
|
4
4
|
function h(a) {
|
|
5
5
|
var l;
|