bitboss-ui 0.2.32 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseButton/BaseButton.vue.d.ts +2 -2
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +7 -7
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -2
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +7 -7
- package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +20 -13
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +2 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -6
- package/dist/components/BaseTag/BaseTag.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +7 -7
- package/dist/components/BbChip/BbChip.vue.d.ts +1 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +7 -7
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRatio/BbRatio.vue.d.ts +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +20 -13
- package/dist/components/BbSlider/BbSlider.vue.d.ts +2 -2
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbStep/BbStep.vue.d.ts +143 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +6 -6
- package/dist/components/BbTab/BbTab.vue.d.ts +6 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/components/BbTable/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
- package/dist/components/HDAddressSelect.vue.d.ts +89 -0
- package/dist/composables/useConfirm.d.ts +1 -1
- package/dist/composables/useOptions.d.ts +1 -1
- package/dist/composables/useToast.d.ts +1 -1
- package/dist/composables/useWizard.d.ts +32 -20
- package/package.json +1 -1
- package/dist/index.js +0 -188
- package/dist/index.js.map +0 -1
- package/dist/index10.js +0 -5
- package/dist/index10.js.map +0 -1
- package/dist/index100.js +0 -5
- package/dist/index100.js.map +0 -1
- package/dist/index101.js +0 -438
- package/dist/index101.js.map +0 -1
- package/dist/index102.js +0 -5
- package/dist/index102.js.map +0 -1
- package/dist/index103.js +0 -95
- package/dist/index103.js.map +0 -1
- package/dist/index104.js +0 -5
- package/dist/index104.js.map +0 -1
- package/dist/index105.js +0 -89
- package/dist/index105.js.map +0 -1
- package/dist/index106.js +0 -5
- package/dist/index106.js.map +0 -1
- package/dist/index107.js +0 -90
- package/dist/index107.js.map +0 -1
- package/dist/index108.js +0 -5
- package/dist/index108.js.map +0 -1
- package/dist/index109.js +0 -30
- package/dist/index109.js.map +0 -1
- package/dist/index11.js +0 -132
- package/dist/index11.js.map +0 -1
- package/dist/index110.js +0 -5
- package/dist/index110.js.map +0 -1
- package/dist/index111.js +0 -152
- package/dist/index111.js.map +0 -1
- package/dist/index112.js +0 -5
- package/dist/index112.js.map +0 -1
- package/dist/index113.js +0 -123
- package/dist/index113.js.map +0 -1
- package/dist/index114.js +0 -5
- package/dist/index114.js.map +0 -1
- package/dist/index115.js +0 -47
- package/dist/index115.js.map +0 -1
- package/dist/index116.js +0 -41
- package/dist/index116.js.map +0 -1
- package/dist/index117.js +0 -47
- package/dist/index117.js.map +0 -1
- package/dist/index118.js +0 -50
- package/dist/index118.js.map +0 -1
- package/dist/index119.js +0 -46
- package/dist/index119.js.map +0 -1
- package/dist/index12.js +0 -5
- package/dist/index12.js.map +0 -1
- package/dist/index120.js +0 -5
- package/dist/index120.js.map +0 -1
- package/dist/index121.js +0 -24
- package/dist/index121.js.map +0 -1
- package/dist/index122.js +0 -5
- package/dist/index122.js.map +0 -1
- package/dist/index123.js +0 -227
- package/dist/index123.js.map +0 -1
- package/dist/index124.js +0 -5
- package/dist/index124.js.map +0 -1
- package/dist/index125.js +0 -21
- package/dist/index125.js.map +0 -1
- package/dist/index126.js +0 -15
- package/dist/index126.js.map +0 -1
- package/dist/index127.js +0 -27
- package/dist/index127.js.map +0 -1
- package/dist/index128.js +0 -8
- package/dist/index128.js.map +0 -1
- package/dist/index129.js +0 -12
- package/dist/index129.js.map +0 -1
- package/dist/index13.js +0 -152
- package/dist/index13.js.map +0 -1
- package/dist/index130.js +0 -9
- package/dist/index130.js.map +0 -1
- package/dist/index131.js +0 -73
- package/dist/index131.js.map +0 -1
- package/dist/index132.js +0 -6
- package/dist/index132.js.map +0 -1
- package/dist/index133.js +0 -6
- package/dist/index133.js.map +0 -1
- package/dist/index134.js +0 -6
- package/dist/index134.js.map +0 -1
- package/dist/index135.js +0 -6
- package/dist/index135.js.map +0 -1
- package/dist/index136.js +0 -6
- package/dist/index136.js.map +0 -1
- package/dist/index137.js +0 -6
- package/dist/index137.js.map +0 -1
- package/dist/index138.js +0 -6
- package/dist/index138.js.map +0 -1
- package/dist/index139.js +0 -6
- package/dist/index139.js.map +0 -1
- package/dist/index14.js +0 -5
- package/dist/index14.js.map +0 -1
- package/dist/index140.js +0 -6
- package/dist/index140.js.map +0 -1
- package/dist/index141.js +0 -6
- package/dist/index141.js.map +0 -1
- package/dist/index142.js +0 -6
- package/dist/index142.js.map +0 -1
- package/dist/index143.js +0 -6
- package/dist/index143.js.map +0 -1
- package/dist/index144.js +0 -6
- package/dist/index144.js.map +0 -1
- package/dist/index145.js +0 -6
- package/dist/index145.js.map +0 -1
- package/dist/index146.js +0 -6
- package/dist/index146.js.map +0 -1
- package/dist/index147.js +0 -6
- package/dist/index147.js.map +0 -1
- package/dist/index148.js +0 -6
- package/dist/index148.js.map +0 -1
- package/dist/index149.js +0 -6
- package/dist/index149.js.map +0 -1
- package/dist/index15.js +0 -458
- package/dist/index15.js.map +0 -1
- package/dist/index150.js +0 -6
- package/dist/index150.js.map +0 -1
- package/dist/index151.js +0 -6
- package/dist/index151.js.map +0 -1
- package/dist/index152.js +0 -6
- package/dist/index152.js.map +0 -1
- package/dist/index153.js +0 -6
- package/dist/index153.js.map +0 -1
- package/dist/index154.js +0 -6
- package/dist/index154.js.map +0 -1
- package/dist/index155.js +0 -6
- package/dist/index155.js.map +0 -1
- package/dist/index156.js +0 -6
- package/dist/index156.js.map +0 -1
- package/dist/index157.js +0 -6
- package/dist/index157.js.map +0 -1
- package/dist/index158.js +0 -5
- package/dist/index158.js.map +0 -1
- package/dist/index159.js +0 -6
- package/dist/index159.js.map +0 -1
- package/dist/index16.js +0 -5
- package/dist/index16.js.map +0 -1
- package/dist/index160.js +0 -5
- package/dist/index160.js.map +0 -1
- package/dist/index161.js +0 -6
- package/dist/index161.js.map +0 -1
- package/dist/index162.js +0 -6
- package/dist/index162.js.map +0 -1
- package/dist/index163.js +0 -6
- package/dist/index163.js.map +0 -1
- package/dist/index164.js +0 -6
- package/dist/index164.js.map +0 -1
- package/dist/index165.js +0 -6
- package/dist/index165.js.map +0 -1
- package/dist/index166.js +0 -6
- package/dist/index166.js.map +0 -1
- package/dist/index167.js +0 -5
- package/dist/index167.js.map +0 -1
- package/dist/index168.js +0 -6
- package/dist/index168.js.map +0 -1
- package/dist/index169.js +0 -5
- package/dist/index169.js.map +0 -1
- package/dist/index17.js +0 -212
- package/dist/index17.js.map +0 -1
- package/dist/index170.js +0 -5
- package/dist/index170.js.map +0 -1
- package/dist/index171.js +0 -6
- package/dist/index171.js.map +0 -1
- package/dist/index172.js +0 -6
- package/dist/index172.js.map +0 -1
- package/dist/index173.js +0 -6
- package/dist/index173.js.map +0 -1
- package/dist/index174.js +0 -6
- package/dist/index174.js.map +0 -1
- package/dist/index175.js +0 -6
- package/dist/index175.js.map +0 -1
- package/dist/index176.js +0 -6
- package/dist/index176.js.map +0 -1
- package/dist/index177.js +0 -6
- package/dist/index177.js.map +0 -1
- package/dist/index178.js +0 -6
- package/dist/index178.js.map +0 -1
- package/dist/index179.js +0 -6
- package/dist/index179.js.map +0 -1
- package/dist/index18.js +0 -5
- package/dist/index18.js.map +0 -1
- package/dist/index180.js +0 -6
- package/dist/index180.js.map +0 -1
- package/dist/index181.js +0 -6
- package/dist/index181.js.map +0 -1
- package/dist/index182.js +0 -6
- package/dist/index182.js.map +0 -1
- package/dist/index183.js +0 -5
- package/dist/index183.js.map +0 -1
- package/dist/index184.js +0 -6
- package/dist/index184.js.map +0 -1
- package/dist/index185.js +0 -5
- package/dist/index185.js.map +0 -1
- package/dist/index186.js +0 -6
- package/dist/index186.js.map +0 -1
- package/dist/index187.js +0 -6
- package/dist/index187.js.map +0 -1
- package/dist/index188.js +0 -6
- package/dist/index188.js.map +0 -1
- package/dist/index189.js +0 -6
- package/dist/index189.js.map +0 -1
- package/dist/index19.js +0 -240
- package/dist/index19.js.map +0 -1
- package/dist/index190.js +0 -6
- package/dist/index190.js.map +0 -1
- package/dist/index191.js +0 -6
- package/dist/index191.js.map +0 -1
- package/dist/index192.js +0 -6
- package/dist/index192.js.map +0 -1
- package/dist/index193.js +0 -6
- package/dist/index193.js.map +0 -1
- package/dist/index194.js +0 -6
- package/dist/index194.js.map +0 -1
- package/dist/index195.js +0 -6
- package/dist/index195.js.map +0 -1
- package/dist/index196.js +0 -5
- package/dist/index196.js.map +0 -1
- package/dist/index197.js +0 -5
- package/dist/index197.js.map +0 -1
- package/dist/index198.js +0 -7
- package/dist/index198.js.map +0 -1
- package/dist/index199.js +0 -298
- package/dist/index199.js.map +0 -1
- package/dist/index2.js +0 -43
- package/dist/index2.js.map +0 -1
- package/dist/index20.js +0 -5
- package/dist/index20.js.map +0 -1
- package/dist/index200.js +0 -19
- package/dist/index200.js.map +0 -1
- package/dist/index201.js +0 -19
- package/dist/index201.js.map +0 -1
- package/dist/index202.js +0 -22
- package/dist/index202.js.map +0 -1
- package/dist/index203.js +0 -23
- package/dist/index203.js.map +0 -1
- package/dist/index204.js +0 -32
- package/dist/index204.js.map +0 -1
- package/dist/index205.js +0 -11
- package/dist/index205.js.map +0 -1
- package/dist/index206.js +0 -5
- package/dist/index206.js.map +0 -1
- package/dist/index207.js +0 -238
- package/dist/index207.js.map +0 -1
- package/dist/index208.js +0 -6
- package/dist/index208.js.map +0 -1
- package/dist/index209.js +0 -38
- package/dist/index209.js.map +0 -1
- package/dist/index21.js +0 -116
- package/dist/index21.js.map +0 -1
- package/dist/index210.js +0 -9
- package/dist/index210.js.map +0 -1
- package/dist/index211.js +0 -13
- package/dist/index211.js.map +0 -1
- package/dist/index212.js +0 -381
- package/dist/index212.js.map +0 -1
- package/dist/index213.js +0 -137
- package/dist/index213.js.map +0 -1
- package/dist/index214.js +0 -5
- package/dist/index214.js.map +0 -1
- package/dist/index215.js +0 -177
- package/dist/index215.js.map +0 -1
- package/dist/index216.js +0 -26
- package/dist/index216.js.map +0 -1
- package/dist/index217.js +0 -376
- package/dist/index217.js.map +0 -1
- package/dist/index218.js +0 -6
- package/dist/index218.js.map +0 -1
- package/dist/index219.js +0 -6
- package/dist/index219.js.map +0 -1
- package/dist/index22.js +0 -5
- package/dist/index22.js.map +0 -1
- package/dist/index220.js +0 -5
- package/dist/index220.js.map +0 -1
- package/dist/index221.js +0 -31
- package/dist/index221.js.map +0 -1
- package/dist/index222.js +0 -20
- package/dist/index222.js.map +0 -1
- package/dist/index223.js +0 -5
- package/dist/index223.js.map +0 -1
- package/dist/index224.js +0 -12
- package/dist/index224.js.map +0 -1
- package/dist/index225.js +0 -124
- package/dist/index225.js.map +0 -1
- package/dist/index226.js +0 -82
- package/dist/index226.js.map +0 -1
- package/dist/index227.js +0 -7
- package/dist/index227.js.map +0 -1
- package/dist/index228.js +0 -5
- package/dist/index228.js.map +0 -1
- package/dist/index229.js +0 -9
- package/dist/index229.js.map +0 -1
- package/dist/index23.js +0 -116
- package/dist/index23.js.map +0 -1
- package/dist/index230.js +0 -5
- package/dist/index230.js.map +0 -1
- package/dist/index231.js +0 -5
- package/dist/index231.js.map +0 -1
- package/dist/index232.js +0 -5
- package/dist/index232.js.map +0 -1
- package/dist/index233.js +0 -5
- package/dist/index233.js.map +0 -1
- package/dist/index234.js +0 -5
- package/dist/index234.js.map +0 -1
- package/dist/index235.js +0 -5
- package/dist/index235.js.map +0 -1
- package/dist/index236.js +0 -438
- package/dist/index236.js.map +0 -1
- package/dist/index237.js +0 -92
- package/dist/index237.js.map +0 -1
- package/dist/index238.js +0 -203
- package/dist/index238.js.map +0 -1
- package/dist/index239.js +0 -227
- package/dist/index239.js.map +0 -1
- package/dist/index24.js +0 -5
- package/dist/index24.js.map +0 -1
- package/dist/index240.js +0 -261
- package/dist/index240.js.map +0 -1
- package/dist/index241.js +0 -5
- package/dist/index241.js.map +0 -1
- package/dist/index242.js +0 -120
- package/dist/index242.js.map +0 -1
- package/dist/index243.js +0 -109
- package/dist/index243.js.map +0 -1
- package/dist/index244.js +0 -163
- package/dist/index244.js.map +0 -1
- package/dist/index245.js +0 -5
- package/dist/index245.js.map +0 -1
- package/dist/index246.js +0 -72
- package/dist/index246.js.map +0 -1
- package/dist/index247.js +0 -8
- package/dist/index247.js.map +0 -1
- package/dist/index248.js +0 -5
- package/dist/index248.js.map +0 -1
- package/dist/index249.js +0 -41
- package/dist/index249.js.map +0 -1
- package/dist/index25.js +0 -93
- package/dist/index25.js.map +0 -1
- package/dist/index250.js +0 -5
- package/dist/index250.js.map +0 -1
- package/dist/index251.js +0 -5
- package/dist/index251.js.map +0 -1
- package/dist/index252.js +0 -18
- package/dist/index252.js.map +0 -1
- package/dist/index253.js +0 -6
- package/dist/index253.js.map +0 -1
- package/dist/index254.js +0 -5
- package/dist/index254.js.map +0 -1
- package/dist/index255.js +0 -5
- package/dist/index255.js.map +0 -1
- package/dist/index26.js +0 -5
- package/dist/index26.js.map +0 -1
- package/dist/index27.js +0 -150
- package/dist/index27.js.map +0 -1
- package/dist/index28.js +0 -5
- package/dist/index28.js.map +0 -1
- package/dist/index29.js +0 -125
- package/dist/index29.js.map +0 -1
- package/dist/index3.js +0 -81
- package/dist/index3.js.map +0 -1
- package/dist/index30.js +0 -5
- package/dist/index30.js.map +0 -1
- package/dist/index31.js +0 -692
- package/dist/index31.js.map +0 -1
- package/dist/index32.js +0 -5
- package/dist/index32.js.map +0 -1
- package/dist/index33.js +0 -146
- package/dist/index33.js.map +0 -1
- package/dist/index34.js +0 -5
- package/dist/index34.js.map +0 -1
- package/dist/index35.js +0 -119
- package/dist/index35.js.map +0 -1
- package/dist/index36.js +0 -5
- package/dist/index36.js.map +0 -1
- package/dist/index37.js +0 -155
- package/dist/index37.js.map +0 -1
- package/dist/index38.js +0 -5
- package/dist/index38.js.map +0 -1
- package/dist/index39.js +0 -84
- package/dist/index39.js.map +0 -1
- package/dist/index4.js +0 -65
- package/dist/index4.js.map +0 -1
- package/dist/index40.js +0 -5
- package/dist/index40.js.map +0 -1
- package/dist/index41.js +0 -62
- package/dist/index41.js.map +0 -1
- package/dist/index42.js +0 -5
- package/dist/index42.js.map +0 -1
- package/dist/index43.js +0 -66
- package/dist/index43.js.map +0 -1
- package/dist/index44.js +0 -5
- package/dist/index44.js.map +0 -1
- package/dist/index45.js +0 -97
- package/dist/index45.js.map +0 -1
- package/dist/index46.js +0 -5
- package/dist/index46.js.map +0 -1
- package/dist/index47.js +0 -62
- package/dist/index47.js.map +0 -1
- package/dist/index48.js +0 -5
- package/dist/index48.js.map +0 -1
- package/dist/index49.js +0 -50
- package/dist/index49.js.map +0 -1
- package/dist/index5.js +0 -43
- package/dist/index5.js.map +0 -1
- package/dist/index50.js +0 -5
- package/dist/index50.js.map +0 -1
- package/dist/index51.js +0 -63
- package/dist/index51.js.map +0 -1
- package/dist/index52.js +0 -5
- package/dist/index52.js.map +0 -1
- package/dist/index53.js +0 -46
- package/dist/index53.js.map +0 -1
- package/dist/index54.js +0 -5
- package/dist/index54.js.map +0 -1
- package/dist/index55.js +0 -90
- package/dist/index55.js.map +0 -1
- package/dist/index56.js +0 -5
- package/dist/index56.js.map +0 -1
- package/dist/index57.js +0 -121
- package/dist/index57.js.map +0 -1
- package/dist/index58.js +0 -5
- package/dist/index58.js.map +0 -1
- package/dist/index59.js +0 -86
- package/dist/index59.js.map +0 -1
- package/dist/index6.js +0 -177
- package/dist/index6.js.map +0 -1
- package/dist/index60.js +0 -5
- package/dist/index60.js.map +0 -1
- package/dist/index61.js +0 -89
- package/dist/index61.js.map +0 -1
- package/dist/index62.js +0 -5
- package/dist/index62.js.map +0 -1
- package/dist/index63.js +0 -60
- package/dist/index63.js.map +0 -1
- package/dist/index64.js +0 -5
- package/dist/index64.js.map +0 -1
- package/dist/index65.js +0 -314
- package/dist/index65.js.map +0 -1
- package/dist/index66.js +0 -5
- package/dist/index66.js.map +0 -1
- package/dist/index67.js +0 -130
- package/dist/index67.js.map +0 -1
- package/dist/index68.js +0 -5
- package/dist/index68.js.map +0 -1
- package/dist/index69.js +0 -226
- package/dist/index69.js.map +0 -1
- package/dist/index7.js +0 -22
- package/dist/index7.js.map +0 -1
- package/dist/index70.js +0 -5
- package/dist/index70.js.map +0 -1
- package/dist/index71.js +0 -25
- package/dist/index71.js.map +0 -1
- package/dist/index72.js +0 -47
- package/dist/index72.js.map +0 -1
- package/dist/index73.js +0 -96
- package/dist/index73.js.map +0 -1
- package/dist/index74.js +0 -5
- package/dist/index74.js.map +0 -1
- package/dist/index75.js +0 -228
- package/dist/index75.js.map +0 -1
- package/dist/index76.js +0 -5
- package/dist/index76.js.map +0 -1
- package/dist/index77.js +0 -142
- package/dist/index77.js.map +0 -1
- package/dist/index78.js +0 -5
- package/dist/index78.js.map +0 -1
- package/dist/index79.js +0 -214
- package/dist/index79.js.map +0 -1
- package/dist/index8.js +0 -197
- package/dist/index8.js.map +0 -1
- package/dist/index80.js +0 -5
- package/dist/index80.js.map +0 -1
- package/dist/index81.js +0 -36
- package/dist/index81.js.map +0 -1
- package/dist/index82.js +0 -5
- package/dist/index82.js.map +0 -1
- package/dist/index83.js +0 -84
- package/dist/index83.js.map +0 -1
- package/dist/index84.js +0 -5
- package/dist/index84.js.map +0 -1
- package/dist/index85.js +0 -121
- package/dist/index85.js.map +0 -1
- package/dist/index86.js +0 -5
- package/dist/index86.js.map +0 -1
- package/dist/index87.js +0 -84
- package/dist/index87.js.map +0 -1
- package/dist/index88.js +0 -5
- package/dist/index88.js.map +0 -1
- package/dist/index89.js +0 -31
- package/dist/index89.js.map +0 -1
- package/dist/index9.js +0 -66
- package/dist/index9.js.map +0 -1
- package/dist/index90.js +0 -5
- package/dist/index90.js.map +0 -1
- package/dist/index91.js +0 -158
- package/dist/index91.js.map +0 -1
- package/dist/index92.js +0 -5
- package/dist/index92.js.map +0 -1
- package/dist/index93.js +0 -87
- package/dist/index93.js.map +0 -1
- package/dist/index94.js +0 -5
- package/dist/index94.js.map +0 -1
- package/dist/index95.js +0 -90
- package/dist/index95.js.map +0 -1
- package/dist/index96.js +0 -5
- package/dist/index96.js.map +0 -1
- package/dist/index97.js +0 -120
- package/dist/index97.js.map +0 -1
- package/dist/index98.js +0 -5
- package/dist/index98.js.map +0 -1
- package/dist/index99.js +0 -209
- package/dist/index99.js.map +0 -1
- package/dist/style.css +0 -1
package/dist/index37.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, ref as V, toRef as l, openBlock as i, createElementBlock as r, normalizeClass as h, createElementVNode as g, renderSlot as s, unref as d, createTextVNode as v, toDisplayString as y, createCommentVNode as S, Fragment as k, renderList as z, createVNode as F, mergeProps as w, createSlots as N, withCtx as I } from "vue";
|
|
2
|
-
import { useOptions as M } from "./index6.js";
|
|
3
|
-
import H from "./index35.js";
|
|
4
|
-
import "./index36.js";
|
|
5
|
-
const O = { class: "bb-base-switch-group__container" }, j = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "bb-base-switch-group__loading-container"
|
|
8
|
-
}, A = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "bb-base-select__no-data-container"
|
|
11
|
-
}, x = /* @__PURE__ */ _({
|
|
12
|
-
__name: "BaseSwitchGroup",
|
|
13
|
-
props: {
|
|
14
|
-
autofocus: {},
|
|
15
|
-
color: {},
|
|
16
|
-
dependencies: {},
|
|
17
|
-
depsDebounceTime: { default: 0 },
|
|
18
|
-
direction: { default: "horizontal" },
|
|
19
|
-
disabled: { type: Boolean },
|
|
20
|
-
enforceCoherence: { type: Boolean },
|
|
21
|
-
hasErrors: { type: Boolean },
|
|
22
|
-
hideLabel: { type: Boolean },
|
|
23
|
-
id: {},
|
|
24
|
-
items: { type: [Array, Function], default: () => [] },
|
|
25
|
-
itemText: {},
|
|
26
|
-
itemValue: {},
|
|
27
|
-
loadingText: { default: "Caricamento..." },
|
|
28
|
-
matchStrategy: { default: "string" },
|
|
29
|
-
modelValue: {},
|
|
30
|
-
modelValueDebounceTime: { default: 0 },
|
|
31
|
-
name: {},
|
|
32
|
-
noDataText: { default: "Nessun elemento da visualizzare" },
|
|
33
|
-
readonly: {}
|
|
34
|
-
},
|
|
35
|
-
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
36
|
-
setup(T, { emit: E }) {
|
|
37
|
-
const o = T, a = E, u = V(), c = V(!1), { loading: L, options: m } = M({
|
|
38
|
-
dependencies: l(() => o.dependencies),
|
|
39
|
-
depsDebounceTime: o.depsDebounceTime,
|
|
40
|
-
disabled: l(() => o.disabled),
|
|
41
|
-
emitter: (e) => a("update:modelValue", e),
|
|
42
|
-
enforceCoherence: l(() => o.enforceCoherence),
|
|
43
|
-
id: o.id,
|
|
44
|
-
immediate: !0,
|
|
45
|
-
initialItems: l(() => o.items),
|
|
46
|
-
itemText: o.itemText,
|
|
47
|
-
itemValue: o.itemValue,
|
|
48
|
-
matchStrategy: "string",
|
|
49
|
-
modelValue: l(() => o.modelValue),
|
|
50
|
-
modelValueDebounceTime: o.modelValueDebounceTime,
|
|
51
|
-
multiple: !0
|
|
52
|
-
}), C = (e) => {
|
|
53
|
-
let n;
|
|
54
|
-
e.selected ? n = o.modelValue.slice(0, e.selectedIndex).concat(o.modelValue.slice(e.selectedIndex + 1)) : n = o.modelValue.concat(e.value), a("update:modelValue", n);
|
|
55
|
-
}, D = (e, n) => {
|
|
56
|
-
a("change", e), C(n);
|
|
57
|
-
}, $ = {
|
|
58
|
-
onBlur: (e) => a("blur", e),
|
|
59
|
-
onClick: (e) => a("click", e),
|
|
60
|
-
onFocus: (e) => {
|
|
61
|
-
a("focus", e), c.value || (document.addEventListener("focusin", b, { passive: !0 }), document.addEventListener("click", p, { passive: !0 }), c.value = !0);
|
|
62
|
-
},
|
|
63
|
-
onInput: (e) => a("input", e),
|
|
64
|
-
onKeydown: (e) => a("keydown", e),
|
|
65
|
-
onMousedown: (e) => a("mousedown", e),
|
|
66
|
-
onMouseup: (e) => a("mouseup", e)
|
|
67
|
-
}, b = (e) => {
|
|
68
|
-
var n;
|
|
69
|
-
e.target instanceof HTMLElement && ((n = u.value) != null && n.contains(e.target) || (a("inactive"), c.value = !1, document.removeEventListener("focusin", b), document.removeEventListener("click", p)));
|
|
70
|
-
}, p = (e) => {
|
|
71
|
-
var n;
|
|
72
|
-
e.target instanceof HTMLElement && ((n = u.value) != null && n.contains(e.target) || (a("inactive"), c.value = !1, document.removeEventListener("focusin", b), document.removeEventListener("click", p)));
|
|
73
|
-
};
|
|
74
|
-
return (e, n) => (i(), r("span", {
|
|
75
|
-
ref_key: "container",
|
|
76
|
-
ref: u,
|
|
77
|
-
class: h(["bb-base-switch-group", {
|
|
78
|
-
"bb-base-switch-group--errors": e.hasErrors,
|
|
79
|
-
"bb-base-switch-group--horizontal": e.direction === "horizontal",
|
|
80
|
-
"bb-base-switch-group--vertical": e.direction === "vertical"
|
|
81
|
-
}])
|
|
82
|
-
}, [
|
|
83
|
-
g("span", O, [
|
|
84
|
-
s(e.$slots, "prepend"),
|
|
85
|
-
!d(m).length && d(L) ? (i(), r("span", j, [
|
|
86
|
-
s(e.$slots, "loading", {}, () => [
|
|
87
|
-
v(y(e.loadingText), 1)
|
|
88
|
-
])
|
|
89
|
-
])) : d(m).length ? S("", !0) : (i(), r("span", A, [
|
|
90
|
-
s(e.$slots, "no-data", {}, () => [
|
|
91
|
-
v(y(e.noDataText), 1)
|
|
92
|
-
])
|
|
93
|
-
])),
|
|
94
|
-
(i(!0), r(k, null, z(d(m), (t, B) => (i(), r(k, {
|
|
95
|
-
key: (t == null ? void 0 : t.id) || t.jsonValue
|
|
96
|
-
}, [
|
|
97
|
-
s(e.$slots, "option:prepend", {
|
|
98
|
-
item: t.original
|
|
99
|
-
}),
|
|
100
|
-
g("label", {
|
|
101
|
-
class: h(["bb-base-switch-group-option", {
|
|
102
|
-
"bb-base-switch-group-option__selected": t.selected
|
|
103
|
-
}])
|
|
104
|
-
}, [
|
|
105
|
-
F(H, w({
|
|
106
|
-
id: t.id,
|
|
107
|
-
autofocus: e.autofocus && !B,
|
|
108
|
-
checked: t.selected,
|
|
109
|
-
color: e.color,
|
|
110
|
-
disabled: t.disabled,
|
|
111
|
-
"has-errors": e.hasErrors,
|
|
112
|
-
name: e.name,
|
|
113
|
-
"on-change": (f) => D(f, t),
|
|
114
|
-
readonly: e.readonly,
|
|
115
|
-
"true-value": t.value
|
|
116
|
-
}, $), N({ _: 2 }, [
|
|
117
|
-
e.$slots.icon ? {
|
|
118
|
-
name: "icon",
|
|
119
|
-
fn: I((f) => [
|
|
120
|
-
s(e.$slots, "icon", w({
|
|
121
|
-
item: t.original,
|
|
122
|
-
text: t.text
|
|
123
|
-
}, f))
|
|
124
|
-
]),
|
|
125
|
-
key: "0"
|
|
126
|
-
} : void 0
|
|
127
|
-
]), 1040, ["id", "autofocus", "checked", "color", "disabled", "has-errors", "name", "on-change", "readonly", "true-value"]),
|
|
128
|
-
g("span", {
|
|
129
|
-
class: h({
|
|
130
|
-
"bb-base-switch-group-option__text": !0,
|
|
131
|
-
"bb-base-switch-group-option__text--hidden": e.hideLabel
|
|
132
|
-
})
|
|
133
|
-
}, [
|
|
134
|
-
s(e.$slots, "label", {
|
|
135
|
-
checked: t.selected,
|
|
136
|
-
item: t.original,
|
|
137
|
-
text: t.text
|
|
138
|
-
}, () => [
|
|
139
|
-
v(y(t.text), 1)
|
|
140
|
-
])
|
|
141
|
-
], 2)
|
|
142
|
-
], 2),
|
|
143
|
-
s(e.$slots, "option:append", {
|
|
144
|
-
item: t.original
|
|
145
|
-
})
|
|
146
|
-
], 64))), 128)),
|
|
147
|
-
s(e.$slots, "append")
|
|
148
|
-
])
|
|
149
|
-
], 2));
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
export {
|
|
153
|
-
x as default
|
|
154
|
-
};
|
|
155
|
-
//# sourceMappingURL=index37.js.map
|
package/dist/index37.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index37.js","sources":["../src/components/BaseSwitchGroup/BaseSwitchGroup.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, createSlots as _createSlots, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-switch-group__container\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"bb-base-switch-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 BaseSwitch from '../BaseSwitch/BaseSwitch.vue';\nimport type { Option } from '@/composables/useOptions';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\nimport type {\n\tBaseCheckboxGroupEvents,\n\tBaseCheckboxGroupProps,\n} from '../BaseCheckboxGroup/BaseCheckboxGroup.vue';\n\nexport type BaseSwitchGroupEvents = BaseCheckboxGroupEvents;\n\nexport type BaseSwitchGroupProps<T> = BaseCheckboxGroupProps<T>;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseSwitchGroup',\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: 'string',\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-switch-group\", {\n\t\t\t'bb-base-switch-group--errors': _ctx.hasErrors,\n\t\t\t'bb-base-switch-group--horizontal': _ctx.direction === 'horizontal',\n\t\t\t'bb-base-switch-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-switch-group-option\", {\n\t\t\t\t\t\t'bb-base-switch-group-option__selected': option.selected,\n\t\t\t\t\t}])\n }, [\n _createVNode(BaseSwitch, _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), _createSlots({ _: 2 }, [\n (_ctx.$slots.icon)\n ? {\n name: \"icon\",\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _mergeProps({\n item: option.original,\n text: option.text\n }, data))\n ]),\n key: \"0\"\n }\n : undefined\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-switch-group-option__text': true,\n\t\t\t\t\t\t\t'bb-base-switch-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","BaseSwitch","_mergeProps","_createSlots","_withCtx","data"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,OAAO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M,CAAC,MAAM,aAAa,WAAW,SAAS,YAAY,cAAc,QAAQ,aAAa,YAAY,YAAY,CAAC;AAAA,YAC1Hd,EAAoB,QAAQ;AAAA,cAC1B,OAAOD,EAAgB;AAAA,gBAC9B,qCAAqC;AAAA,gBACrC,6CAA6CJ,EAAK;AAAA,cAAA,CAClD;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;"}
|
package/dist/index38.js
DELETED
package/dist/index38.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index38.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index39.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as y, computed as r, onMounted as g, watch as w, nextTick as k, openBlock as x, createElementBlock as V, normalizeClass as B, renderSlot as l, createElementVNode as u, mergeProps as T } from "vue";
|
|
2
|
-
const v = { class: "bb-base-textarea__inner-container" }, E = ["id", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "value"], M = /* @__PURE__ */ h({
|
|
3
|
-
__name: "BaseTextarea",
|
|
4
|
-
props: {
|
|
5
|
-
autocomplete: {},
|
|
6
|
-
autofocus: {},
|
|
7
|
-
disabled: { type: Boolean },
|
|
8
|
-
hasErrors: { type: Boolean },
|
|
9
|
-
id: {},
|
|
10
|
-
name: {},
|
|
11
|
-
placeholder: {},
|
|
12
|
-
readonly: {},
|
|
13
|
-
autoGrow: { type: Boolean },
|
|
14
|
-
modelValue: {}
|
|
15
|
-
},
|
|
16
|
-
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
17
|
-
setup(d, { emit: p }) {
|
|
18
|
-
const a = d, o = p, t = y(null), i = r(() => ({
|
|
19
|
-
"bb-base-textarea": !0,
|
|
20
|
-
"bb-base-textarea--auto-grow": a.autoGrow,
|
|
21
|
-
"bb-base-textarea--disabled": a.disabled,
|
|
22
|
-
"bb-base-textarea--errors": a.hasErrors,
|
|
23
|
-
"bb-base-textarea--readonly": a.readonly
|
|
24
|
-
})), c = r(
|
|
25
|
-
() => a.modelValue ? a.modelValue : ""
|
|
26
|
-
);
|
|
27
|
-
g(() => {
|
|
28
|
-
a.autoGrow && n();
|
|
29
|
-
}), w(
|
|
30
|
-
() => a.modelValue,
|
|
31
|
-
() => {
|
|
32
|
-
a.autoGrow && k(n);
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
function m(e) {
|
|
36
|
-
if (e.stopPropagation(), e.target instanceof HTMLTextAreaElement) {
|
|
37
|
-
let s = e.target.value;
|
|
38
|
-
o("input", e), o("update:modelValue", s);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function b(e) {
|
|
42
|
-
e.stopPropagation(), e.target instanceof HTMLTextAreaElement && o("keydown", e);
|
|
43
|
-
}
|
|
44
|
-
const f = {
|
|
45
|
-
onBlur: (e) => o("blur", e),
|
|
46
|
-
onChange: (e) => o("change", e),
|
|
47
|
-
onClick: (e) => o("click", e),
|
|
48
|
-
onFocus: (e) => o("focus", e),
|
|
49
|
-
onMousedown: (e) => o("mousedown", e),
|
|
50
|
-
onMouseup: (e) => o("mouseup", e)
|
|
51
|
-
};
|
|
52
|
-
function n() {
|
|
53
|
-
t.value && (t.value.style.height = "0px", t.value.style.height = `${t.value.scrollHeight}px`);
|
|
54
|
-
}
|
|
55
|
-
return (e, s) => (x(), V("span", {
|
|
56
|
-
class: B(["bb-base-textarea__container", i.value])
|
|
57
|
-
}, [
|
|
58
|
-
l(e.$slots, "prepend-outer"),
|
|
59
|
-
u("span", v, [
|
|
60
|
-
l(e.$slots, "prepend"),
|
|
61
|
-
u("textarea", T({ id: e.id }, f, {
|
|
62
|
-
ref_key: "textarea",
|
|
63
|
-
ref: t,
|
|
64
|
-
autocomplete: e.autocomplete,
|
|
65
|
-
autofocus: e.autofocus,
|
|
66
|
-
class: "bb-base-textarea__input",
|
|
67
|
-
disabled: e.disabled,
|
|
68
|
-
name: e.name,
|
|
69
|
-
placeholder: e.placeholder,
|
|
70
|
-
readonly: e.readonly,
|
|
71
|
-
value: c.value,
|
|
72
|
-
onInput: m,
|
|
73
|
-
onKeydown: b
|
|
74
|
-
}), null, 16, E),
|
|
75
|
-
l(e.$slots, "append")
|
|
76
|
-
]),
|
|
77
|
-
l(e.$slots, "append-outer")
|
|
78
|
-
], 2));
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
M as default
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=index39.js.map
|
package/dist/index39.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index39.js","sources":["../src/components/BaseTextarea/BaseTextarea.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, mergeProps as _mergeProps, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-textarea__inner-container\" }\nconst _hoisted_2 = [\"id\", \"autocomplete\", \"autofocus\", \"disabled\", \"name\", \"placeholder\", \"readonly\", \"value\"]\n\nimport { computed, nextTick, onMounted, ref, watch } from 'vue';\nimport type { HTMLAttributes, InputHTMLAttributes, Ref } from 'vue';\n\nexport type BaseTextareaProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: 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 * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\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's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Expands the textarea to match its content\n\t */\n\tautoGrow?: boolean;\n\t/**\n\t * Used by v-model\n\t */\n\tmodelValue: string | null;\n};\nexport type BaseTextareaEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\t(e: 'change', event: Event): void;\n\t(e: 'click', event: MouseEvent): void;\n\t(e: 'focus', event: FocusEvent): void;\n\t(e: 'input', event: Event): void;\n\t(e: 'keydown', event: KeyboardEvent): void;\n\t(e: 'mousedown', event: MouseEvent): void;\n\t(e: 'mouseup', event: MouseEvent): void;\n\t(e: 'update:modelValue', value: string | null): void;\n};\nexport type BaseTextareaSlots = {\n\t'prepend-outer'?: (props: {}) => any;\n\tprepend?: (props: {}) => any;\n\tappend?: (props: {}) => any;\n\t'append-outer'?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseTextarea',\n props: {\n autocomplete: {},\n autofocus: {},\n disabled: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n name: {},\n placeholder: {},\n readonly: {},\n autoGrow: { type: Boolean },\n modelValue: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst textarea: Ref<HTMLTextAreaElement | null> = ref(null);\n\nconst classes = computed(() => ({\n\t'bb-base-textarea': true,\n\t'bb-base-textarea--auto-grow': props.autoGrow,\n\t'bb-base-textarea--disabled': props.disabled,\n\t'bb-base-textarea--errors': props.hasErrors,\n\t'bb-base-textarea--readonly': props.readonly,\n}));\n\n// Allow modelvalue to be reset to null\nconst modelValueWithDefault = computed(() =>\n\tprops.modelValue ? props.modelValue : ''\n);\nonMounted(() => {\n\tif (props.autoGrow) {\n\t\tcomputeTextareaHeight();\n\t}\n});\nwatch(\n\t() => props.modelValue,\n\t() => {\n\t\tif (props.autoGrow) {\n\t\t\tnextTick(computeTextareaHeight);\n\t\t}\n\t}\n);\n\nfunction onInput(event: Event): void {\n\t// Prevemt enter from triggering smt else\n\tevent.stopPropagation();\n\tif (event.target instanceof HTMLTextAreaElement) {\n\t\tlet value = event.target.value;\n\t\temit('input', event);\n\t\temit('update:modelValue', value);\n\t}\n}\nfunction onKeydown(event: KeyboardEvent): void {\n\t// Prevent enter from triggering smt else\n\tevent.stopPropagation();\n\tif (event.target instanceof HTMLTextAreaElement) {\n\t\temit('keydown', event);\n\t}\n}\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\n/* \nReset height and the apply scroll height otherwise it would not be able to shrink\n*/\nfunction computeTextareaHeight() {\n\tif (!textarea.value) return;\n\ttextarea.value.style.height = '0px';\n\n\ttextarea.value.style.height = `${textarea.value.scrollHeight}px`;\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass([\"bb-base-textarea__container\", classes.value])\n }, [\n _renderSlot(_ctx.$slots, \"prepend-outer\"),\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"prepend\"),\n _createElementVNode(\"textarea\", _mergeProps({ id: _ctx.id }, eventListeners, {\n ref_key: \"textarea\",\n ref: textarea,\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n class: 'bb-base-textarea__input',\n disabled: _ctx.disabled,\n name: _ctx.name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly,\n value: modelValueWithDefault.value,\n onInput: onInput,\n onKeydown: onKeydown\n }), null, 16, _hoisted_2),\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n _renderSlot(_ctx.$slots, \"append-outer\")\n ], 2))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","__emit","props","emit","textarea","ref","classes","computed","modelValueWithDefault","onMounted","computeTextareaHeight","watch","nextTick","onInput","event","value","onKeydown","eventListeners","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_renderSlot","_createElementVNode","_mergeProps"],"mappings":";AAGA,MAAMA,IAAa,EAAE,OAAO,uCACtBC,IAAa,CAAC,MAAM,gBAAgB,aAAa,YAAY,QAAQ,eAAe,YAAY,OAAO,GA2EjFC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,UAAU,CAAC;AAAA,IACX,UAAU,EAAE,MAAM,QAAQ;AAAA,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CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBX,EAAK,WAAWW,CAAK;AAAA,IAAA;AAMxD,aAASJ,IAAwB;AAChC,MAAKN,EAAS,UACLA,EAAA,MAAM,MAAM,SAAS,OAE9BA,EAAS,MAAM,MAAM,SAAS,GAAGA,EAAS,MAAM,YAAY;AAAA,IAC7D;AAEO,WAAA,CAACc,GAAUC,OACRC,EAAA,GAAcC,EAAoB,QAAQ;AAAA,MAChD,OAAOC,EAAgB,CAAC,+BAA+BhB,EAAQ,KAAK,CAAC;AAAA,IAAA,GACpE;AAAA,MACDiB,EAAYL,EAAK,QAAQ,eAAe;AAAA,MACxCM,EAAoB,QAAQ5B,GAAY;AAAA,QACtC2B,EAAYL,EAAK,QAAQ,SAAS;AAAA,QAClCM,EAAoB,YAAYC,EAAY,EAAE,IAAIP,EAAK,MAAMD,GAAgB;AAAA,UAC3E,SAAS;AAAA,UACT,KAAKb;AAAA,UACL,cAAcc,EAAK;AAAA,UACnB,WAAWA,EAAK;AAAA,UAChB,OAAO;AAAA,UACP,UAAUA,EAAK;AAAA,UACf,MAAMA,EAAK;AAAA,UACX,aAAaA,EAAK;AAAA,UAClB,UAAUA,EAAK;AAAA,UACf,OAAOV,EAAsB;AAAA,UAC7B,SAAAK;AAAA,UACA,WAAAG;AAAA,QAAA,CACD,GAAG,MAAM,IAAInB,CAAU;AAAA,QACxB0B,EAAYL,EAAK,QAAQ,QAAQ;AAAA,MAAA,CAClC;AAAA,MACDK,EAAYL,EAAK,QAAQ,cAAc;AAAA,OACtC,CAAC;AAAA,EAEN;AAEA,CAAC;"}
|
package/dist/index4.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { getAsPercentage as p } from "./index121.js";
|
|
2
|
-
import { wait as w } from "./index122.js";
|
|
3
|
-
import { ref as c, computed as o, onBeforeUnmount as H } from "vue";
|
|
4
|
-
const Y = ({
|
|
5
|
-
duration: t,
|
|
6
|
-
onStart: f,
|
|
7
|
-
onFinish: i,
|
|
8
|
-
onStop: s
|
|
9
|
-
}) => {
|
|
10
|
-
if (!t)
|
|
11
|
-
throw new Error("You must define a duration for the coundown");
|
|
12
|
-
const e = c(t), u = c(0), M = o(() => p(u.value, t)), m = 100, r = c(!1), n = c(!1);
|
|
13
|
-
let a;
|
|
14
|
-
const I = () => {
|
|
15
|
-
u.value === t || r.value && !n.value || (f && f(), n.value = !1, r.value = !0, a = setInterval(() => {
|
|
16
|
-
e.value = Math.max(e.value - m, 0), u.value = Math.min(u.value + m, t), e.value === 0 && w(0).then(() => {
|
|
17
|
-
clearInterval(a), r.value = !1, s && s(), i && i();
|
|
18
|
-
});
|
|
19
|
-
}, m));
|
|
20
|
-
}, d = () => {
|
|
21
|
-
A(), I();
|
|
22
|
-
}, A = () => {
|
|
23
|
-
a && clearInterval(a), n.value || s && s(), e.value = t, u.value = 0, r.value = !1, n.value = !1;
|
|
24
|
-
}, g = () => {
|
|
25
|
-
a && clearInterval(a), n.value || s && s(), n.value = !0;
|
|
26
|
-
}, y = o(() => {
|
|
27
|
-
const l = Math.trunc(e.value / 864e5), v = Math.trunc((e.value - l * 864e5) / 36e5), h = Math.trunc(
|
|
28
|
-
(e.value - v * 36e5 - l * 864e5) / 6e4
|
|
29
|
-
), D = Math.trunc(
|
|
30
|
-
(e.value - h * 6e4 - v * 36e5 - l * 864e5) / 1e3
|
|
31
|
-
);
|
|
32
|
-
return {
|
|
33
|
-
days: l,
|
|
34
|
-
hours: v,
|
|
35
|
-
minutes: h,
|
|
36
|
-
seconds: D
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
return H(() => clearInterval(a)), {
|
|
40
|
-
/** Elapsed milliseconds since starting the timer */
|
|
41
|
-
elapsed: o(() => u.value),
|
|
42
|
-
/** Remaining milliseconds */
|
|
43
|
-
remaining: o(() => e.value),
|
|
44
|
-
/** Remaining as a formatted object for display */
|
|
45
|
-
remainingFormatted: y,
|
|
46
|
-
/** Percentage of elapsed time against duration */
|
|
47
|
-
progress: M,
|
|
48
|
-
/** Starts the timer */
|
|
49
|
-
start: I,
|
|
50
|
-
/** Reset the timer to intiial state and starts again */
|
|
51
|
-
restart: d,
|
|
52
|
-
/** Pauses the timer */
|
|
53
|
-
pause: g,
|
|
54
|
-
/** Reset the timer to initial state, if the timer is running it is stopped */
|
|
55
|
-
reset: A,
|
|
56
|
-
/** Boolean, is the timer running (paused doesn't change running state) */
|
|
57
|
-
running: r,
|
|
58
|
-
/** Boolean is the timer paused */
|
|
59
|
-
paused: n
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
Y as useCountdown
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=index4.js.map
|
package/dist/index4.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","sources":["../src/composables/useCountdown.ts"],"sourcesContent":["import { getAsPercentage } from '@/utilities/functions/percentage';\nimport { wait } from '@/utilities/functions/wait';\nimport { computed, onBeforeUnmount, ref } from 'vue';\n\ntype CounterParams = {\n\t/** Longevity of the countdown in milliseconds */\n\tduration: number;\n\t/** Function called every time the countdown starts or restarts */\n\tonStart?: (...args: any[]) => any;\n\t/** Function called anytime the timer stops or pauses */\n\tonStop?: (...args: any[]) => any;\n\t/** Function called on completion */\n\tonFinish?: (...args: any[]) => any;\n};\nexport const useCountdown = ({\n\tduration,\n\tonStart,\n\tonFinish,\n\tonStop,\n}: CounterParams) => {\n\tif (!duration) {\n\t\tthrow new Error('You must define a duration for the coundown');\n\t}\n\tconst remaining = ref(duration);\n\tconst elapsed = ref(0);\n\tconst progress = computed(() => getAsPercentage(elapsed.value, duration));\n\tconst tick = 100;\n\tconst running = ref(false);\n\tconst paused = ref(false);\n\n\tlet timeoutID: ReturnType<typeof setInterval>;\n\n\tconst start = () => {\n\t\tif (elapsed.value === duration || (running.value && !paused.value)) return;\n\t\tif (onStart) onStart();\n\t\tpaused.value = false;\n\t\trunning.value = true;\n\n\t\ttimeoutID = setInterval(() => {\n\t\t\tremaining.value = Math.max(remaining.value - tick, 0);\n\t\t\telapsed.value = Math.min(elapsed.value + tick, duration);\n\n\t\t\tif (remaining.value === 0) {\n\t\t\t\twait(0).then(() => {\n\t\t\t\t\tclearInterval(timeoutID);\n\t\t\t\t\trunning.value = false;\n\t\t\t\t\tif (onStop) onStop();\n\t\t\t\t\tif (onFinish) onFinish();\n\t\t\t\t});\n\t\t\t}\n\t\t}, tick);\n\t};\n\n\tconst restart = () => {\n\t\treset();\n\t\tstart();\n\t};\n\n\tconst reset = () => {\n\t\tif (timeoutID) clearInterval(timeoutID);\n\t\tif (!paused.value) {\n\t\t\tif (onStop) onStop();\n\t\t}\n\t\tremaining.value = duration;\n\t\telapsed.value = 0;\n\t\trunning.value = false;\n\t\tpaused.value = false;\n\t};\n\n\tconst pause = () => {\n\t\tif (timeoutID) clearInterval(timeoutID);\n\t\tif (!paused.value) {\n\t\t\tif (onStop) onStop();\n\t\t}\n\t\tpaused.value = true;\n\t};\n\n\tconst remainingFormatted = computed(() => {\n\t\tconst msInADay = 1000 * 60 * 60 * 24;\n\t\tconst msInAnHour = 1000 * 60 * 60;\n\t\tconst msInAMinute = 1000 * 60;\n\t\tconst msInASecond = 1000;\n\n\t\tconst days = Math.trunc(remaining.value / msInADay);\n\t\tconst hours = Math.trunc((remaining.value - days * msInADay) / msInAnHour);\n\t\tconst minutes = Math.trunc(\n\t\t\t(remaining.value - hours * msInAnHour - days * msInADay) / msInAMinute\n\t\t);\n\t\tconst seconds = Math.trunc(\n\t\t\t(remaining.value -\n\t\t\t\tminutes * msInAMinute -\n\t\t\t\thours * msInAnHour -\n\t\t\t\tdays * msInADay) /\n\t\t\t\tmsInASecond\n\t\t);\n\t\treturn {\n\t\t\tdays,\n\t\t\thours,\n\t\t\tminutes,\n\t\t\tseconds,\n\t\t};\n\t});\n\n\tonBeforeUnmount(() => clearInterval(timeoutID));\n\n\treturn {\n\t\t/** Elapsed milliseconds since starting the timer */\n\t\telapsed: computed(() => elapsed.value),\n\t\t/** Remaining milliseconds */\n\t\tremaining: computed(() => remaining.value),\n\t\t/** Remaining as a formatted object for display */\n\t\tremainingFormatted,\n\t\t/** Percentage of elapsed time against duration */\n\t\tprogress,\n\t\t/** Starts the timer */\n\t\tstart,\n\t\t/** Reset the timer to intiial state and starts again */\n\t\trestart,\n\t\t/** Pauses the timer */\n\t\tpause,\n\t\t/** Reset the timer to initial state, if the timer is running it is stopped */\n\t\treset,\n\t\t/** Boolean, is the timer running (paused doesn't change running state) */\n\t\trunning,\n\t\t/** Boolean is the timer paused */\n\t\tpaused,\n\t};\n};\n"],"names":["useCountdown","duration","onStart","onFinish","onStop","remaining","ref","elapsed","progress","computed","getAsPercentage","tick","running","paused","timeoutID","start","wait","restart","reset","pause","remainingFormatted","days","hours","minutes","seconds","onBeforeUnmount"],"mappings":";;;AAcO,MAAMA,IAAe,CAAC;AAAA,EAC5B,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AACD,MAAqB;AACpB,MAAI,CAACH;AACE,UAAA,IAAI,MAAM,6CAA6C;AAExD,QAAAI,IAAYC,EAAIL,CAAQ,GACxBM,IAAUD,EAAI,CAAC,GACfE,IAAWC,EAAS,MAAMC,EAAgBH,EAAQ,OAAON,CAAQ,CAAC,GAClEU,IAAO,KACPC,IAAUN,EAAI,EAAK,GACnBO,IAASP,EAAI,EAAK;AAEpB,MAAAQ;AAEJ,QAAMC,IAAQ,MAAM;AACnB,IAAIR,EAAQ,UAAUN,KAAaW,EAAQ,SAAS,CAACC,EAAO,UACxDX,KAAiBA,KACrBW,EAAO,QAAQ,IACfD,EAAQ,QAAQ,IAEhBE,IAAY,YAAY,MAAM;AAC7B,MAAAT,EAAU,QAAQ,KAAK,IAAIA,EAAU,QAAQM,GAAM,CAAC,GACpDJ,EAAQ,QAAQ,KAAK,IAAIA,EAAQ,QAAQI,GAAMV,CAAQ,GAEnDI,EAAU,UAAU,KAClBW,EAAA,CAAC,EAAE,K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N;AAAA;AAAA,IAEA,QAAAC;AAAA,EAAA;AAEF;"}
|
package/dist/index40.js
DELETED
package/dist/index40.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index40.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index41.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, computed as r, openBlock as i, createElementBlock as c, normalizeClass as m, renderSlot as t, createElementVNode as a, mergeProps as b } from "vue";
|
|
2
|
-
const y = { class: "bb-base-text-input__inner-container" }, f = ["id", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "type", "value"], g = /* @__PURE__ */ d({
|
|
3
|
-
__name: "BaseTextInput",
|
|
4
|
-
props: {
|
|
5
|
-
autocomplete: {},
|
|
6
|
-
autofocus: {},
|
|
7
|
-
disabled: { type: Boolean },
|
|
8
|
-
hasErrors: { type: Boolean },
|
|
9
|
-
id: {},
|
|
10
|
-
name: {},
|
|
11
|
-
placeholder: {},
|
|
12
|
-
readonly: {},
|
|
13
|
-
modelValue: {},
|
|
14
|
-
type: { default: "text" }
|
|
15
|
-
},
|
|
16
|
-
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
17
|
-
setup(s, { emit: l }) {
|
|
18
|
-
const n = s, o = l, u = r(() => ({
|
|
19
|
-
"bb-base-text-input": !0,
|
|
20
|
-
"bb-base-text-input--errors": n.hasErrors,
|
|
21
|
-
"bb-base-text-input--readonly": n.readonly,
|
|
22
|
-
"bb-base-text-input--disabled": n.disabled
|
|
23
|
-
})), p = {
|
|
24
|
-
onBlur: (e) => o("blur", e),
|
|
25
|
-
onChange: (e) => o("change", e),
|
|
26
|
-
onClick: (e) => o("click", e),
|
|
27
|
-
onFocus: (e) => o("focus", e),
|
|
28
|
-
onKeydown: (e) => o("keydown", e),
|
|
29
|
-
onInput: (e) => {
|
|
30
|
-
e.target instanceof HTMLInputElement && o("update:modelValue", e.target.value), o("input", e);
|
|
31
|
-
},
|
|
32
|
-
onMousedown: (e) => o("mousedown", e),
|
|
33
|
-
onMouseup: (e) => o("mouseup", e)
|
|
34
|
-
};
|
|
35
|
-
return (e, h) => (i(), c("span", {
|
|
36
|
-
class: m(["bb-base-text-input__container", u.value])
|
|
37
|
-
}, [
|
|
38
|
-
t(e.$slots, "prepend-outer"),
|
|
39
|
-
a("span", y, [
|
|
40
|
-
t(e.$slots, "prepend"),
|
|
41
|
-
a("input", b({ id: e.id }, p, {
|
|
42
|
-
ref: "input",
|
|
43
|
-
autocomplete: e.autocomplete,
|
|
44
|
-
autofocus: e.autofocus,
|
|
45
|
-
class: "bb-base-text-input__input",
|
|
46
|
-
disabled: e.disabled,
|
|
47
|
-
name: e.name,
|
|
48
|
-
placeholder: e.placeholder,
|
|
49
|
-
readonly: e.readonly,
|
|
50
|
-
type: e.type,
|
|
51
|
-
value: e.modelValue
|
|
52
|
-
}), null, 16, f),
|
|
53
|
-
t(e.$slots, "append")
|
|
54
|
-
]),
|
|
55
|
-
t(e.$slots, "append-outer")
|
|
56
|
-
], 2));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
g as default
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=index41.js.map
|
package/dist/index41.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index41.js","sources":["../src/components/BaseTextInput/BaseTextInput.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, mergeProps as _mergeProps, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-text-input__inner-container\" }\nconst _hoisted_2 = [\"id\", \"autocomplete\", \"autofocus\", \"disabled\", \"name\", \"placeholder\", \"readonly\", \"type\", \"value\"]\n\nimport { computed } from 'vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BaseTextInputProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: 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 * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\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's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\t/**\n\t * Used my v-model\n\t */\n\tmodelValue: string | null;\n\t/**\n\t * Type of the input. Returns the content type of the object.\n\t */\n\ttype?: HTMLInputElement['type'];\n};\n\nexport type BaseTextInputEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\t(e: 'change', event: Event): void;\n\t(e: 'click', event: MouseEvent): void;\n\t(e: 'focus', event: FocusEvent): void;\n\t(e: 'input', event: Event): void;\n\t(e: 'keydown', event: KeyboardEvent): void;\n\t(e: 'mousedown', event: MouseEvent): void;\n\t(e: 'mouseup', event: MouseEvent): void;\n\t(e: 'update:modelValue', value: string | null): void;\n};\nexport type BaseTextInputSlots = {\n\t'prepend-outer'?: (props: {}) => any;\n\tprepend?: (props: {}) => any;\n\tappend?: (props: {}) => any;\n\t'append-outer'?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseTextInput',\n props: {\n autocomplete: {},\n autofocus: {},\n disabled: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n name: {},\n placeholder: {},\n readonly: {},\n modelValue: {},\n type: { default: 'text' }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst classes = computed(() => ({\n\t'bb-base-text-input': true,\n\t'bb-base-text-input--errors': props.hasErrors,\n\t'bb-base-text-input--readonly': props.readonly,\n\t'bb-base-text-input--disabled': props.disabled,\n}));\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonInput: (event: Event) => {\n\t\tif (event.target instanceof HTMLInputElement) {\n\t\t\temit('update:modelValue', event.target.value);\n\t\t}\n\t\temit('input', event);\n\t},\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass([\"bb-base-text-input__container\", classes.value])\n }, [\n _renderSlot(_ctx.$slots, \"prepend-outer\"),\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"prepend\"),\n _createElementVNode(\"input\", _mergeProps({ id: _ctx.id }, eventListeners, {\n ref: \"input\",\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n class: 'bb-base-text-input__input',\n disabled: _ctx.disabled,\n name: _ctx.name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly,\n type: _ctx.type,\n value: _ctx.modelValue\n }), null, 16, _hoisted_2),\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n _renderSlot(_ctx.$slots, \"append-outer\")\n ], 2))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_sfc_main","_defineComponent","__props","__emit","props","emit","classes","computed","eventListeners","event","_ctx","_cache","_openBlock","_createElementBlock","_normalizeClass","_renderSlot","_createElementVNode","_mergeProps"],"mappings":";AAGA,MAAMA,IAAa,EAAE,OAAO,yCACtBC,IAAa,CAAC,MAAM,gBAAgB,aAAa,YAAY,QAAQ,eAAe,YAAY,QAAQ,OAAO,GA2EzFC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,UAAU,CAAC;AAAA,IACX,YAAY,CAAC;AAAA,IACb,MAAM,EAAE,SAAS,OAAO;AAAA,EAC1B;AAAA,EACA,OAAO,CAAC,QAAQ,UAAU,SAAS,SAAS,SAAS,WAAW,aAAa,WAAW,mBAAmB;AAAA,EAC3G,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAExC,UAAMC,IAAQF,GAERG,IAAOF,GAIPG,IAAUC,EAAS,OAAO;AAAA,MAC/B,sBAAsB;AAAA,MACtB,8BAA8BH,EAAM;AAAA,MACpC,gCAAgCA,EAAM;AAAA,MACtC,gCAAgCA,EAAM;AAAA,IACrC,EAAA,GAKII,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsBJ,EAAK,QAAQI,CAAK;AAAA,MACjD,UAAU,CAACA,MAAiBJ,EAAK,UAAUI,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBJ,EAAK,SAASI,CAAK;AAAA,MACnD,SAAS,CAACA,MAAsBJ,EAAK,SAASI,CAAK;AAAA,MACnD,WAAW,CAACA,MAAyBJ,EAAK,WAAWI,CAAK;AAAA,MAC1D,SAAS,CAACA,MAAiB;AACtB,QAAAA,EAAM,kBAAkB,oBACtBJ,EAAA,qBAAqBI,EAAM,OAAO,KAAK,GAE7CJ,EAAK,SAASI,CAAK;AAAA,MACpB;AAAA,MACA,aAAa,CAACA,MAAsBJ,EAAK,aAAaI,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBJ,EAAK,WAAWI,CAAK;AAAA,IAAA;AAGjD,WAAA,CAACC,GAAUC,OACRC,EAAA,GAAcC,EAAoB,QAAQ;AAAA,MAChD,OAAOC,EAAgB,CAAC,iCAAiCR,EAAQ,KAAK,CAAC;AAAA,IAAA,GACtE;AAAA,MACDS,EAAYL,EAAK,QAAQ,eAAe;AAAA,MACxCM,EAAoB,QAAQlB,GAAY;AAAA,QACtCiB,EAAYL,EAAK,QAAQ,SAAS;AAAA,QAClCM,EAAoB,SAASC,EAAY,EAAE,IAAIP,EAAK,MAAMF,GAAgB;AAAA,UACxE,KAAK;AAAA,UACL,cAAcE,EAAK;AAAA,UACnB,WAAWA,EAAK;AAAA,UAChB,OAAO;AAAA,UACP,UAAUA,EAAK;AAAA,UACf,MAAMA,EAAK;AAAA,UACX,aAAaA,EAAK;AAAA,UAClB,UAAUA,EAAK;AAAA,UACf,MAAMA,EAAK;AAAA,UACX,OAAOA,EAAK;AAAA,QAAA,CACb,GAAG,MAAM,IAAIX,CAAU;AAAA,QACxBgB,EAAYL,EAAK,QAAQ,QAAQ;AAAA,MAAA,CAClC;AAAA,MACDK,EAAYL,EAAK,QAAQ,cAAc;AAAA,OACtC,CAAC;AAAA,EAEN;AAEA,CAAC;"}
|
package/dist/index42.js
DELETED
package/dist/index42.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index43.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, ref as _, watch as v, openBlock as b, createElementBlock as h, createVNode as n, unref as i, normalizeClass as d, withModifiers as V, withCtx as s, renderSlot as u } from "vue";
|
|
2
|
-
import { useId as g } from "./index7.js";
|
|
3
|
-
import $ from "./index9.js";
|
|
4
|
-
import "./index10.js";
|
|
5
|
-
import B from "./index116.js";
|
|
6
|
-
import "./index160.js";
|
|
7
|
-
const y = { class: "bb-accordion" }, A = /* @__PURE__ */ f({
|
|
8
|
-
__name: "BbAccordion",
|
|
9
|
-
props: {
|
|
10
|
-
eager: { type: Boolean },
|
|
11
|
-
transitionDuration: { default: 250 },
|
|
12
|
-
modelValue: { type: Boolean },
|
|
13
|
-
id: {}
|
|
14
|
-
},
|
|
15
|
-
emits: ["update:modelValue"],
|
|
16
|
-
setup(m, { emit: c }) {
|
|
17
|
-
const p = c, o = m, l = o.id || `bba_${g().id.value}`, e = _(o.modelValue);
|
|
18
|
-
v(
|
|
19
|
-
() => o.modelValue,
|
|
20
|
-
(a, r) => {
|
|
21
|
-
a !== r && a !== e.value && (e.value = a);
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
const t = () => {
|
|
25
|
-
e.value = !e.value, p("update:modelValue", !o.modelValue);
|
|
26
|
-
};
|
|
27
|
-
return (a, r) => (b(), h("div", y, [
|
|
28
|
-
n($, {
|
|
29
|
-
id: `${i(l)}_header`,
|
|
30
|
-
"aria-controls": i(l),
|
|
31
|
-
"aria-expanded": e.value,
|
|
32
|
-
class: d("bb-accordion__header"),
|
|
33
|
-
onClick: V(t, ["self"])
|
|
34
|
-
}, {
|
|
35
|
-
default: s(() => [
|
|
36
|
-
u(a.$slots, "header", {
|
|
37
|
-
toggle: t,
|
|
38
|
-
value: e.value
|
|
39
|
-
})
|
|
40
|
-
]),
|
|
41
|
-
_: 3
|
|
42
|
-
}, 8, ["id", "aria-controls", "aria-expanded"]),
|
|
43
|
-
n(B, {
|
|
44
|
-
id: i(l),
|
|
45
|
-
"aria-labelledby": `${i(l)}_header`,
|
|
46
|
-
class: d("bb-accordion__content"),
|
|
47
|
-
eager: a.eager,
|
|
48
|
-
"model-value": e.value,
|
|
49
|
-
role: "region",
|
|
50
|
-
"transition-duration": a.transitionDuration
|
|
51
|
-
}, {
|
|
52
|
-
default: s(() => [
|
|
53
|
-
u(a.$slots, "default", {
|
|
54
|
-
toggle: t,
|
|
55
|
-
value: e.value
|
|
56
|
-
})
|
|
57
|
-
]),
|
|
58
|
-
_: 3
|
|
59
|
-
}, 8, ["id", "aria-labelledby", "eager", "model-value", "transition-duration"])
|
|
60
|
-
]));
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export {
|
|
64
|
-
A as default
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=index43.js.map
|
package/dist/index43.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index43.js","sources":["../src/components/BbAccordion/BbAccordion.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderSlot as _renderSlot, withModifiers as _withModifiers, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-accordion\" }\n\nimport { ref, watch } from 'vue';\nimport { useId } from '@/composables/useId';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport BbCollapsible from '../BbCollapsible/BbCollapsible.vue';\nimport type { BbCollapsibleProps } from '../BbCollapsible/BbCollapsible.vue';\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbAccordionProps = Partial<BbCollapsibleProps> &\n\tPick<CommonProps, 'id'>;\n\nexport type BbAccordionEvents = {\n\t(e: 'update:modelValue', value: boolean): void;\n};\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbAccordion',\n props: {\n eager: { type: Boolean },\n transitionDuration: { default: 250 },\n modelValue: { type: Boolean },\n id: {}\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst emit = __emit;\n\nconst props = __props;\n\nconst id = props.id || `bba_${useId().id.value}`;\n\nconst internalValue = ref(props.modelValue);\n/**\n * Watch external changes and align internal value\n */\nwatch(\n\t() => props.modelValue,\n\t(current, previous) => {\n\t\tif (current !== previous && current !== internalValue.value) {\n\t\t\tinternalValue.value = current;\n\t\t}\n\t}\n);\n\nconst toggle = () => {\n\tinternalValue.value = !internalValue.value;\n\temit('update:modelValue', !props.modelValue);\n};\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(BaseButton, {\n id: `${_unref(id)}_header`,\n \"aria-controls\": _unref(id),\n \"aria-expanded\": internalValue.value,\n class: _normalizeClass('bb-accordion__header'),\n onClick: _withModifiers(toggle, [\"self\"])\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"header\", {\n toggle: toggle,\n value: internalValue.value\n })\n ]),\n _: 3\n }, 8, [\"id\", \"aria-controls\", \"aria-expanded\"]),\n _createVNode(BbCollapsible, {\n id: _unref(id),\n \"aria-labelledby\": `${_unref(id)}_header`,\n class: _normalizeClass('bb-accordion__content'),\n eager: _ctx.eager,\n \"model-value\": internalValue.value,\n role: 'region',\n \"transition-duration\": _ctx.transitionDuration\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\", {\n toggle: toggle,\n value: internalValue.value\n })\n ]),\n _: 3\n }, 8, [\"id\", \"aria-labelledby\", \"eager\", \"model-value\", \"transition-duration\"])\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","__emit","emit","props","id","useId","internalValue","ref","watch","current","previous","toggle","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","BaseButton","_unref","_normalizeClass","_withModifiers","_withCtx","_renderSlot","BbCollapsible"],"mappings":";;;;;;AAGA,MAAMA,IAAa,EAAE,OAAO,kBAgBAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,oBAAoB,EAAE,SAAS,IA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K;AAAA,QACZ,eAAeN,EAAc;AAAA,QAC7B,MAAM;AAAA,QACN,uBAAuBM,EAAK;AAAA,MAAA,GAC3B;AAAA,QACD,SAASS,EAAS,MAAM;AAAA,UACtBC,EAAYV,EAAK,QAAQ,WAAW;AAAA,YAClC,QAAAD;AAAA,YACA,OAAOL,EAAc;AAAA,UAAA,CACtB;AAAA,QAAA,CACF;AAAA,QACD,GAAG;AAAA,MAAA,GACF,GAAG,CAAC,MAAM,mBAAmB,SAAS,eAAe,qBAAqB,CAAC;AAAA,IAAA,CAC/E;AAAA,EAEH;AAEA,CAAC;"}
|
package/dist/index44.js
DELETED
package/dist/index44.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index44.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|