bitboss-ui 0.2.76 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +4 -0
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +10 -3
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +10 -4
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +9 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +4 -0
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +10 -3
- package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +4 -0
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +48 -11
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -3
- package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -0
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +10 -6
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +12 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +35 -27
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +38 -24
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +15 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +33 -25
- package/dist/components/BbRadio/BbRadio.vue.d.ts +33 -25
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +38 -24
- package/dist/components/BbRating/BbRating.vue.d.ts +9 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +18 -4
- package/dist/components/BbSlider/BbSlider.vue.d.ts +44 -11
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +9 -3
- package/dist/components/BbTag/BbTag.vue.d.ts +11 -3
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +33 -25
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +9 -1
- package/dist/composables/useQueue.d.ts +58 -0
- package/dist/index.js +186 -185
- package/dist/index.js.map +1 -1
- package/dist/index10.js +65 -1
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +227 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -437
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +437 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -94
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +103 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -88
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +97 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -89
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +98 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -29
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +1 -131
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +29 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -151
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +151 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -122
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +122 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -46
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +40 -33
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +32 -39
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +39 -42
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +43 -39
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +128 -1
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +43 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -21
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +21 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -224
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +224 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -18
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +16 -10
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +12 -24
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +24 -5
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +5 -9
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +1 -159
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +8 -5
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +5 -69
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +70 -3
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +161 -1
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index144.js +2 -2
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -2
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -2
- package/dist/index149.js +2 -2
- package/dist/index15.js +1 -457
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +2 -2
- package/dist/index151.js +2 -2
- package/dist/index152.js +2 -2
- package/dist/index153.js +2 -2
- package/dist/index154.js +2 -2
- package/dist/index155.js +2 -2
- package/dist/index156.js +2 -2
- package/dist/index157.js +2 -2
- package/dist/index158.js +5 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -5
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +514 -1
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +5 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -5
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index163.js +2 -2
- package/dist/index164.js +2 -2
- package/dist/index165.js +2 -2
- package/dist/index166.js +2 -2
- package/dist/index167.js +3 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +2 -3
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +5 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -211
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +1 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -3
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +2 -2
- package/dist/index173.js +2 -2
- package/dist/index174.js +2 -2
- package/dist/index175.js +2 -2
- package/dist/index176.js +2 -2
- package/dist/index177.js +2 -2
- package/dist/index178.js +2 -2
- package/dist/index179.js +2 -2
- package/dist/index18.js +220 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +2 -2
- package/dist/index181.js +2 -2
- package/dist/index182.js +2 -2
- package/dist/index183.js +5 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +1 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +1 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +2 -2
- package/dist/index188.js +2 -2
- package/dist/index189.js +2 -2
- package/dist/index19.js +1 -239
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +2 -2
- package/dist/index191.js +2 -2
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -2
- package/dist/index194.js +2 -2
- package/dist/index195.js +2 -2
- package/dist/index196.js +3 -10
- package/dist/index196.js.map +1 -1
- package/dist/index198.js +2 -3
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +4 -3
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +1 -42
- package/dist/index2.js.map +1 -1
- package/dist/index20.js +239 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +5 -368
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -131
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +16 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +3 -3
- package/dist/index204.js +20 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +29 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +8 -174
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -23
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +111 -363
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +131 -13
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -115
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +2 -16
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +35 -20
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +172 -27
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +6 -8
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +346 -213
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +373 -3
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +3 -35
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +3 -6
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +235 -2
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -2
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +131 -1
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +2 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +8 -119
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -2
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +23 -6
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +4 -17
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +294 -78
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +6 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -160
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +4 -1
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -115
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +2 -69
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -224
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +2 -258
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +78 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +6 -2
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +17 -295
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -2
- package/dist/index238.js +106 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +428 -110
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +119 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +218 -100
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +255 -12
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +117 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +200 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +69 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +5 -435
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +163 -88
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +1 -202
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -4
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -92
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +89 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +15 -4
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +4 -4
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +4 -61
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +61 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +3 -2
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -0
- package/dist/index257.js.map +1 -0
- package/dist/index26.js +94 -1
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +1 -157
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +160 -1
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +1 -124
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +38 -76
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +126 -1
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +1 -691
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +693 -1
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +1 -145
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +302 -1
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +1 -118
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +120 -1
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +1 -154
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +156 -1
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +1 -83
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +78 -62
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +87 -1
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +1 -61
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +64 -1
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +1 -65
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +65 -1
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +1 -96
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +96 -1
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +1 -61
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +61 -1
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +1 -49
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +60 -38
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +49 -1
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +1 -62
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +62 -1
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +1 -45
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +69 -1
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +1 -89
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +98 -1
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +1 -120
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +129 -1
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +1 -85
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +37 -171
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +85 -1
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +1 -88
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +98 -1
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +1 -59
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +59 -1
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +1 -313
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +313 -1
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +1 -129
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +129 -1
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +1 -225
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +172 -18
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +225 -1
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +1 -24
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +19 -41
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +37 -86
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +104 -1
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +1 -227
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +227 -1
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +1 -143
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +165 -1
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -213
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +18 -192
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +213 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +1 -35
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +35 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +1 -83
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +92 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -120
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +129 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -83
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +92 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -30
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +192 -61
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +30 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -157
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +166 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -86
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +112 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -89
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +98 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -119
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +129 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -227
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/last.d.ts +1 -1
- package/package.json +1 -1
package/dist/index41.js
CHANGED
|
@@ -1,62 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
1
|
+
|
|
62
2
|
//# sourceMappingURL=index41.js.map
|
package/dist/index41.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index41.js","sources":[
|
|
1
|
+
{"version":3,"file":"index41.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index42.js
CHANGED
|
@@ -1,2 +1,65 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as d, computed as p, openBlock as i, createElementBlock as b, normalizeClass as c, renderSlot as a, createElementVNode as n, mergeProps as m } from "vue";
|
|
2
|
+
const y = { class: "bb-base-text-input__inner-container" }, f = ["aria-describedby", "autocomplete", "autofocus", "disabled", "id", "name", "placeholder", "readonly", "type", "value"], g = /* @__PURE__ */ d({
|
|
3
|
+
__name: "BaseTextInput",
|
|
4
|
+
props: {
|
|
5
|
+
ariaDescribedby: {},
|
|
6
|
+
autocomplete: {},
|
|
7
|
+
autofocus: {},
|
|
8
|
+
disabled: { type: Boolean },
|
|
9
|
+
hasErrors: { type: Boolean },
|
|
10
|
+
id: {},
|
|
11
|
+
modelValue: {},
|
|
12
|
+
name: {},
|
|
13
|
+
placeholder: {},
|
|
14
|
+
readonly: {},
|
|
15
|
+
type: { default: "text" }
|
|
16
|
+
},
|
|
17
|
+
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
18
|
+
setup(s, { emit: l }) {
|
|
19
|
+
const t = s, o = l, u = p(() => ({
|
|
20
|
+
"bb-base-text-input": !0,
|
|
21
|
+
"bb-base-text-input--errors": t.hasErrors,
|
|
22
|
+
"bb-base-text-input--readonly": t.readonly,
|
|
23
|
+
"bb-base-text-input--disabled": t.disabled
|
|
24
|
+
})), r = {
|
|
25
|
+
onBlur: (e) => o("blur", e),
|
|
26
|
+
onChange: (e) => o("change", e),
|
|
27
|
+
onClick: (e) => o("click", e),
|
|
28
|
+
onFocus: (e) => o("focus", e),
|
|
29
|
+
onKeydown: (e) => o("keydown", e),
|
|
30
|
+
onInput: (e) => {
|
|
31
|
+
e.target instanceof HTMLInputElement && o("update:modelValue", e.target.value), o("input", e);
|
|
32
|
+
},
|
|
33
|
+
onMousedown: (e) => o("mousedown", e),
|
|
34
|
+
onMouseup: (e) => o("mouseup", e)
|
|
35
|
+
};
|
|
36
|
+
return (e, h) => (i(), b("span", {
|
|
37
|
+
class: c(["bb-base-text-input__container", u.value])
|
|
38
|
+
}, [
|
|
39
|
+
a(e.$slots, "prepend-outer"),
|
|
40
|
+
n("span", y, [
|
|
41
|
+
a(e.$slots, "prepend"),
|
|
42
|
+
n("input", m({
|
|
43
|
+
"aria-describedby": e.ariaDescribedby,
|
|
44
|
+
autocomplete: e.autocomplete,
|
|
45
|
+
autofocus: e.autofocus,
|
|
46
|
+
class: "bb-base-text-input__input",
|
|
47
|
+
disabled: e.disabled,
|
|
48
|
+
id: e.id,
|
|
49
|
+
name: e.name,
|
|
50
|
+
placeholder: e.placeholder,
|
|
51
|
+
readonly: e.readonly,
|
|
52
|
+
type: e.type,
|
|
53
|
+
value: e.modelValue,
|
|
54
|
+
ref: "input"
|
|
55
|
+
}, r), null, 16, f),
|
|
56
|
+
a(e.$slots, "append")
|
|
57
|
+
]),
|
|
58
|
+
a(e.$slots, "append-outer")
|
|
59
|
+
], 2));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
g as default
|
|
64
|
+
};
|
|
2
65
|
//# sourceMappingURL=index42.js.map
|
package/dist/index42.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index42.js","sources":["../src/components/BaseTextInput/BaseTextInput.vue"],"sourcesContent":["<template>\n\t<span class=\"bb-base-text-input__container\" :class=\"classes\">\n\t\t<slot name=\"prepend-outer\"></slot>\n\t\t<span class=\"bb-base-text-input__inner-container\">\n\t\t\t<slot name=\"prepend\"></slot>\n\t\t\t<input\n\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\t:autocomplete=\"autocomplete\"\n\t\t\t\t:autofocus=\"autofocus\"\n\t\t\t\t:class=\"'bb-base-text-input__input'\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:id=\"id\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t:type=\"type\"\n\t\t\t\t:value=\"modelValue\"\n\t\t\t\tref=\"input\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t/>\n\t\t\t<slot name=\"append\"></slot>\n\t\t</span>\n\t\t<slot name=\"append-outer\"></slot>\n\t</span>\n</template>\n\n<script setup lang=\"ts\">\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\tariaDescribedby?: InputHTMLAttributes['aria-describedby'];\n\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 * Used my v-model\n\t */\n\tmodelValue: string | null;\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 * Type of the input. Returns the content type of the object.\n\t */\n\ttype?: HTMLInputElement['type'];\n};\n\nconst props = withDefaults(defineProps<BaseTextInputProps>(), {\n\ttype: 'text',\n});\n\nexport type BaseTextInputEvents = {\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: '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: string | null): void;\n};\nconst emit = defineEmits<BaseTextInputEvents>();\n\nexport type BaseTextInputSlots = {\n\tappend?: (props: object) => any;\n\n\t'append-outer'?: (props: object) => any;\n\n\tprepend?: (props: object) => any;\n\n\t'prepend-outer'?: (props: object) => any;\n};\n\ndefineSlots<BaseTextInputSlots>();\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</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseTextInput';\n</style>\n"],"names":["props","__props","emit","__emit","classes","computed","eventListeners","event"],"mappings":";;;;;;;;;;;;;;;;;;AAwFA,UAAMA,IAAQC,GAuBRC,IAAOC,GAcPC,IAAUC,EAAS,OAAO;AAAA,MAC/B,sBAAsB;AAAA,MACtB,8BAA8BL,EAAM;AAAA,MACpC,gCAAgCA,EAAM;AAAA,MACtC,gCAAgCA,EAAM;AAAA,IACrC,EAAA,GAKIM,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsBL,EAAK,QAAQK,CAAK;AAAA,MACjD,UAAU,CAACA,MAAiBL,EAAK,UAAUK,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBL,EAAK,SAASK,CAAK;AAAA,MACnD,SAAS,CAACA,MAAsBL,EAAK,SAASK,CAAK;AAAA,MACnD,WAAW,CAACA,MAAyBL,EAAK,WAAWK,CAAK;AAAA,MAC1D,SAAS,CAACA,MAAiB;AACtB,QAAAA,EAAM,kBAAkB,oBACtBL,EAAA,qBAAqBK,EAAM,OAAO,KAAK,GAE7CL,EAAK,SAASK,CAAK;AAAA,MACpB;AAAA,MACA,aAAa,CAACA,MAAsBL,EAAK,aAAaK,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBL,EAAK,WAAWK,CAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index43.js
CHANGED
|
@@ -1,66 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
1
|
+
|
|
66
2
|
//# sourceMappingURL=index43.js.map
|
package/dist/index43.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index43.js","sources":[
|
|
1
|
+
{"version":3,"file":"index43.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index44.js
CHANGED
|
@@ -1,2 +1,66 @@
|
|
|
1
|
-
|
|
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 "./index8.js";
|
|
3
|
+
import $ from "./index10.js";
|
|
4
|
+
import "./index11.js";
|
|
5
|
+
import B from "./index117.js";
|
|
6
|
+
import "./index161.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
|
+
};
|
|
2
66
|
//# sourceMappingURL=index44.js.map
|
package/dist/index44.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index44.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index44.js","sources":["../src/components/BbAccordion/BbAccordion.vue"],"sourcesContent":["<template>\n\t<div class=\"bb-accordion\">\n\t\t<BaseButton\n\t\t\t:id=\"`${id}_header`\"\n\t\t\t:aria-controls=\"id\"\n\t\t\t:aria-expanded=\"internalValue\"\n\t\t\t:class=\"'bb-accordion__header'\"\n\t\t\t@click.self=\"toggle\"\n\t\t\t><slot name=\"header\" :toggle=\"toggle\" :value=\"internalValue\"></slot\n\t\t></BaseButton>\n\t\t<BbCollapsible\n\t\t\t:id=\"id\"\n\t\t\t:aria-labelledby=\"`${id}_header`\"\n\t\t\t:class=\"'bb-accordion__content'\"\n\t\t\t:eager=\"eager\"\n\t\t\t:model-value=\"internalValue\"\n\t\t\t:role=\"'region'\"\n\t\t\t:transition-duration=\"transitionDuration\"\n\t\t\t><slot :toggle=\"toggle\" :value=\"internalValue\"></slot\n\t\t></BbCollapsible>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\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};\nconst emit = defineEmits<BbAccordionEvents>();\n\nconst props = withDefaults(defineProps<BbAccordionProps>(), {\n\ttransitionDuration: 250,\n});\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\ndefineSlots<{\n\theader?: (props: {\n\t\tvalue: BbAccordionProps['modelValue'];\n\t\ttoggle: typeof toggle;\n\t}) => any;\n\tdefault?: (props: {\n\t\tvalue: BbAccordionProps['modelValue'];\n\t\ttoggle: typeof toggle;\n\t}) => any;\n}>();\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbAccordion';\n</style>\n"],"names":["emit","__emit","props","__props","id","useId","internalValue","ref","watch","current","previous","toggle"],"mappings":";;;;;;;;;;;;;;;;AAqCA,UAAMA,IAAOC,GAEPC,IAAQC,GAIRC,IAAKF,EAAM,MAAM,OAAOG,IAAQ,GAAG,KAAK,IAExCC,IAAgBC,EAAIL,EAAM,UAAU;AAI1C,IAAAM;AAAA,MACC,MAAMN,EAAM;AAAA,MACZ,CAACO,GAASC,MAAa;AACtB,QAAID,MAAYC,KAAYD,MAAYH,EAAc,UACrDA,EAAc,QAAQG;AAAA,MAExB;AAAA,IAAA;AAGD,UAAME,IAAS,MAAM;AACN,MAAAL,EAAA,QAAQ,CAACA,EAAc,OAChCN,EAAA,qBAAqB,CAACE,EAAM,UAAU;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index45.js
CHANGED
|
@@ -1,97 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import w from "./index9.js";
|
|
3
|
-
import "./index10.js";
|
|
4
|
-
import V from "./index116.js";
|
|
5
|
-
import "./index160.js";
|
|
6
|
-
import y from "./index117.js";
|
|
7
|
-
import "./index169.js";
|
|
8
|
-
const z = {
|
|
9
|
-
class: "bb-alert__inner-container",
|
|
10
|
-
role: "alert"
|
|
11
|
-
}, $ = { class: "bb-alert__icon-container" }, g = { class: "bb-alert__content" }, B = { class: "bb-alert__title" }, L = { class: "bb-alert__text" }, S = { class: "bb-alert__close" }, N = /* @__PURE__ */ t("svg", {
|
|
12
|
-
fill: "none",
|
|
13
|
-
viewBox: "0 0 24 24",
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
-
}, [
|
|
16
|
-
/* @__PURE__ */ t("path", {
|
|
17
|
-
d: "M23 23L1 1M23 1L1 23",
|
|
18
|
-
stroke: "currentColor",
|
|
19
|
-
"stroke-linecap": "round",
|
|
20
|
-
"stroke-width": "2"
|
|
21
|
-
})
|
|
22
|
-
], -1), q = /* @__PURE__ */ h({
|
|
23
|
-
__name: "BbAlert",
|
|
24
|
-
props: {
|
|
25
|
-
closeLabel: { default: "Chiudi" },
|
|
26
|
-
showClose: { type: Boolean },
|
|
27
|
-
text: {},
|
|
28
|
-
theme: { default: "default" },
|
|
29
|
-
title: {},
|
|
30
|
-
icon: {},
|
|
31
|
-
iconSize: {},
|
|
32
|
-
modelValue: {}
|
|
33
|
-
},
|
|
34
|
-
emits: ["update:modelValue"],
|
|
35
|
-
setup(_, { emit: p }) {
|
|
36
|
-
const l = _, b = p, o = v(
|
|
37
|
-
l.modelValue === void 0 ? !0 : !!l.modelValue
|
|
38
|
-
);
|
|
39
|
-
C(
|
|
40
|
-
() => l.modelValue,
|
|
41
|
-
(e) => {
|
|
42
|
-
o.value !== !!e && (o.value = !!e);
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
const f = () => {
|
|
46
|
-
o.value = !1, b("update:modelValue", !1);
|
|
47
|
-
};
|
|
48
|
-
return (e, M) => (s(), a(V, {
|
|
49
|
-
class: k(["bb-alert", { [`bb-alert--${e.theme}`]: e.theme }]),
|
|
50
|
-
"model-value": o.value
|
|
51
|
-
}, {
|
|
52
|
-
default: i(() => [
|
|
53
|
-
t("div", z, [
|
|
54
|
-
t("div", $, [
|
|
55
|
-
e.icon ? (s(), a(y, {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "bb-alert__icon",
|
|
58
|
-
size: e.iconSize,
|
|
59
|
-
type: e.icon
|
|
60
|
-
}, null, 8, ["size", "type"])) : r("", !0)
|
|
61
|
-
]),
|
|
62
|
-
t("div", g, [
|
|
63
|
-
t("p", B, [
|
|
64
|
-
n(e.$slots, "title", c(d({ text: e.title })), () => [
|
|
65
|
-
m(u(e.title), 1)
|
|
66
|
-
])
|
|
67
|
-
]),
|
|
68
|
-
t("p", L, [
|
|
69
|
-
n(e.$slots, "text", c(d({ text: e.text })), () => [
|
|
70
|
-
m(u(e.text), 1)
|
|
71
|
-
])
|
|
72
|
-
])
|
|
73
|
-
]),
|
|
74
|
-
t("div", S, [
|
|
75
|
-
e.showClose ? (s(), a(w, {
|
|
76
|
-
key: 0,
|
|
77
|
-
"aria-label": e.closeLabel,
|
|
78
|
-
block: "",
|
|
79
|
-
class: "bb-alert__close-btn",
|
|
80
|
-
onClick: f
|
|
81
|
-
}, {
|
|
82
|
-
default: i(() => [
|
|
83
|
-
N
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["aria-label"])) : r("", !0)
|
|
87
|
-
])
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
_: 3
|
|
91
|
-
}, 8, ["class", "model-value"]));
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
export {
|
|
95
|
-
q as default
|
|
96
|
-
};
|
|
1
|
+
|
|
97
2
|
//# sourceMappingURL=index45.js.map
|
package/dist/index45.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index45.js","sources":[
|
|
1
|
+
{"version":3,"file":"index45.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index46.js
CHANGED
|
@@ -1,2 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as h, ref as v, watch as C, openBlock as s, createBlock as a, normalizeClass as k, withCtx as i, createElementVNode as t, createCommentVNode as r, renderSlot as n, normalizeProps as c, guardReactiveProps as d, createTextVNode as m, toDisplayString as u } from "vue";
|
|
2
|
+
import w from "./index10.js";
|
|
3
|
+
import "./index11.js";
|
|
4
|
+
import V from "./index117.js";
|
|
5
|
+
import "./index161.js";
|
|
6
|
+
import y from "./index118.js";
|
|
7
|
+
import "./index170.js";
|
|
8
|
+
const z = {
|
|
9
|
+
class: "bb-alert__inner-container",
|
|
10
|
+
role: "alert"
|
|
11
|
+
}, $ = { class: "bb-alert__icon-container" }, g = { class: "bb-alert__content" }, B = { class: "bb-alert__title" }, L = { class: "bb-alert__text" }, S = { class: "bb-alert__close" }, N = /* @__PURE__ */ t("svg", {
|
|
12
|
+
fill: "none",
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
/* @__PURE__ */ t("path", {
|
|
17
|
+
d: "M23 23L1 1M23 1L1 23",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
"stroke-linecap": "round",
|
|
20
|
+
"stroke-width": "2"
|
|
21
|
+
})
|
|
22
|
+
], -1), q = /* @__PURE__ */ h({
|
|
23
|
+
__name: "BbAlert",
|
|
24
|
+
props: {
|
|
25
|
+
closeLabel: { default: "Chiudi" },
|
|
26
|
+
showClose: { type: Boolean },
|
|
27
|
+
text: {},
|
|
28
|
+
theme: { default: "default" },
|
|
29
|
+
title: {},
|
|
30
|
+
icon: {},
|
|
31
|
+
iconSize: {},
|
|
32
|
+
modelValue: {}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(_, { emit: p }) {
|
|
36
|
+
const l = _, b = p, o = v(
|
|
37
|
+
l.modelValue === void 0 ? !0 : !!l.modelValue
|
|
38
|
+
);
|
|
39
|
+
C(
|
|
40
|
+
() => l.modelValue,
|
|
41
|
+
(e) => {
|
|
42
|
+
o.value !== !!e && (o.value = !!e);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
const f = () => {
|
|
46
|
+
o.value = !1, b("update:modelValue", !1);
|
|
47
|
+
};
|
|
48
|
+
return (e, M) => (s(), a(V, {
|
|
49
|
+
class: k(["bb-alert", { [`bb-alert--${e.theme}`]: e.theme }]),
|
|
50
|
+
"model-value": o.value
|
|
51
|
+
}, {
|
|
52
|
+
default: i(() => [
|
|
53
|
+
t("div", z, [
|
|
54
|
+
t("div", $, [
|
|
55
|
+
e.icon ? (s(), a(y, {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "bb-alert__icon",
|
|
58
|
+
size: e.iconSize,
|
|
59
|
+
type: e.icon
|
|
60
|
+
}, null, 8, ["size", "type"])) : r("", !0)
|
|
61
|
+
]),
|
|
62
|
+
t("div", g, [
|
|
63
|
+
t("p", B, [
|
|
64
|
+
n(e.$slots, "title", c(d({ text: e.title })), () => [
|
|
65
|
+
m(u(e.title), 1)
|
|
66
|
+
])
|
|
67
|
+
]),
|
|
68
|
+
t("p", L, [
|
|
69
|
+
n(e.$slots, "text", c(d({ text: e.text })), () => [
|
|
70
|
+
m(u(e.text), 1)
|
|
71
|
+
])
|
|
72
|
+
])
|
|
73
|
+
]),
|
|
74
|
+
t("div", S, [
|
|
75
|
+
e.showClose ? (s(), a(w, {
|
|
76
|
+
key: 0,
|
|
77
|
+
"aria-label": e.closeLabel,
|
|
78
|
+
block: "",
|
|
79
|
+
class: "bb-alert__close-btn",
|
|
80
|
+
onClick: f
|
|
81
|
+
}, {
|
|
82
|
+
default: i(() => [
|
|
83
|
+
N
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["aria-label"])) : r("", !0)
|
|
87
|
+
])
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 8, ["class", "model-value"]));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
q as default
|
|
96
|
+
};
|
|
2
97
|
//# sourceMappingURL=index46.js.map
|
package/dist/index46.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index46.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index46.js","sources":["../src/components/BbAlert/BbAlert.vue"],"sourcesContent":["<template>\n\t<BbCollapsible\n\t\tclass=\"bb-alert\"\n\t\t:class=\"{ [`bb-alert--${theme}`]: theme }\"\n\t\t:model-value=\"innerValue\"\n\t>\n\t\t<div class=\"bb-alert__inner-container\" role=\"alert\">\n\t\t\t<div class=\"bb-alert__icon-container\">\n\t\t\t\t<BbIcon\n\t\t\t\t\tv-if=\"icon\"\n\t\t\t\t\tclass=\"bb-alert__icon\"\n\t\t\t\t\t:size=\"iconSize\"\n\t\t\t\t\t:type=\"icon\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div class=\"bb-alert__content\">\n\t\t\t\t<p class=\"bb-alert__title\">\n\t\t\t\t\t<slot name=\"title\" v-bind=\"{ text: title }\">{{ title }}</slot>\n\t\t\t\t</p>\n\t\t\t\t<p class=\"bb-alert__text\">\n\t\t\t\t\t<slot name=\"text\" v-bind=\"{ text: text }\">{{ text }}</slot>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div class=\"bb-alert__close\">\n\t\t\t\t<BaseButton\n\t\t\t\t\tv-if=\"showClose\"\n\t\t\t\t\t:aria-label=\"closeLabel\"\n\t\t\t\t\tblock\n\t\t\t\t\tclass=\"bb-alert__close-btn\"\n\t\t\t\t\t@click=\"onClickClose\"\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M23 23L1 1M23 1L1 23\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t</BaseButton>\n\t\t\t</div>\n\t\t</div>\n\t</BbCollapsible>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch } from 'vue';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport BbCollapsible from '../BbCollapsible/BbCollapsible.vue';\nimport BbIcon from '../BbIcon/BbIcon.vue';\nimport type { BbIconProps } from '../BbIcon/BbIcon.vue';\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbAlertProps = Pick<\n\tCommonProps,\n\t'closeLabel' | 'showClose' | 'text' | 'theme' | 'title'\n> & {\n\t/**\n\t * Name of the icon to use\n\t */\n\ticon?: BbIconProps['type'];\n\t/**\n\t * Size of the icon to use\n\t */\n\ticonSize?: BbIconProps['size'];\n\t/**\n\t * Used by v-model, set type to any to avoid Vue casting it as false\n\t */\n\tmodelValue?: any;\n};\n\nconst props = withDefaults(defineProps<BbAlertProps>(), {\n\tcloseLabel: 'Chiudi',\n\ttheme: 'default',\n});\n\nexport type BbAlertEvents = {\n\t(e: 'update:modelValue', value: boolean): void;\n};\nconst emit = defineEmits<BbAlertEvents>();\n\ndefineSlots<{\n\ttitle?: (props: { text: BbAlertProps['title'] }) => any;\n\ttext?: (props: { text: BbAlertProps['title'] }) => any;\n}>();\n\nconst innerValue = ref(\n\tprops.modelValue === undefined ? true : !!props.modelValue\n);\n\nwatch(\n\t() => props.modelValue,\n\t(value) => {\n\t\tif (innerValue.value !== !!value) {\n\t\t\tinnerValue.value = !!value;\n\t\t}\n\t}\n);\n\nconst onClickClose = () => {\n\tinnerValue.value = false;\n\temit('update:modelValue', false);\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbAlert';\n</style>\n"],"names":["props","__props","emit","__emit","innerValue","ref","watch","value","onClickClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EA,UAAMA,IAAQC,GAQRC,IAAOC,GAOPC,IAAaC;AAAA,MAClBL,EAAM,eAAe,SAAY,KAAO,CAAC,CAACA,EAAM;AAAA,IAAA;AAGjD,IAAAM;AAAA,MACC,MAAMN,EAAM;AAAA,MACZ,CAACO,MAAU;AACV,QAAIH,EAAW,UAAU,CAAC,CAACG,MACfH,EAAA,QAAQ,CAAC,CAACG;AAAA,MAEvB;AAAA,IAAA;AAGD,UAAMC,IAAe,MAAM;AAC1B,MAAAJ,EAAW,QAAQ,IACnBF,EAAK,qBAAqB,EAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index47.js
CHANGED
|
@@ -1,62 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { isCssColor as _ } from "./index219.js";
|
|
3
|
-
const k = { class: "bb-avatar__fallback" }, C = ["alt", "sizes", "src", "srcset"], B = /* @__PURE__ */ p({
|
|
4
|
-
__name: "BbAvatar",
|
|
5
|
-
props: {
|
|
6
|
-
color: {},
|
|
7
|
-
size: {},
|
|
8
|
-
sizes: {},
|
|
9
|
-
alt: {},
|
|
10
|
-
src: {},
|
|
11
|
-
srcset: {}
|
|
12
|
-
},
|
|
13
|
-
setup(c) {
|
|
14
|
-
const e = c, i = {
|
|
15
|
-
xs: 24,
|
|
16
|
-
sm: 32,
|
|
17
|
-
md: 40,
|
|
18
|
-
lg: 56,
|
|
19
|
-
xl: 80,
|
|
20
|
-
xxl: 104
|
|
21
|
-
}, n = u(() => {
|
|
22
|
-
const s = {
|
|
23
|
-
"bb-avatar": !0
|
|
24
|
-
};
|
|
25
|
-
let r;
|
|
26
|
-
e.size && (typeof e.size == "string" ? r = i[e.size] ?? parseInt(e.size, 10) : r = e.size, r += "px");
|
|
27
|
-
let o = {
|
|
28
|
-
width: r,
|
|
29
|
-
height: r
|
|
30
|
-
};
|
|
31
|
-
return e.color && (_(e.color) ? o.backgroundColor = e.color : s[`bb-avatar--${e.color}`] = !0), {
|
|
32
|
-
class: s,
|
|
33
|
-
style: o
|
|
34
|
-
};
|
|
35
|
-
}), t = d(!1), m = () => {
|
|
36
|
-
t.value = !0;
|
|
37
|
-
};
|
|
38
|
-
return f(
|
|
39
|
-
() => [e.src, e.srcset],
|
|
40
|
-
() => {
|
|
41
|
-
t.value = !1;
|
|
42
|
-
}
|
|
43
|
-
), (s, r) => (a(), l("span", b(z(n.value)), [
|
|
44
|
-
v("span", k, [
|
|
45
|
-
g(s.$slots, "default")
|
|
46
|
-
]),
|
|
47
|
-
(s.src || s.srcset) && !t.value ? (a(), l("img", {
|
|
48
|
-
key: 0,
|
|
49
|
-
alt: s.alt,
|
|
50
|
-
class: "bb-avatar__img",
|
|
51
|
-
sizes: s.sizes,
|
|
52
|
-
src: s.src,
|
|
53
|
-
srcset: s.srcset,
|
|
54
|
-
onError: m
|
|
55
|
-
}, null, 40, C)) : h("", !0)
|
|
56
|
-
], 16));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
B as default
|
|
61
|
-
};
|
|
1
|
+
|
|
62
2
|
//# sourceMappingURL=index47.js.map
|
package/dist/index47.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index47.js","sources":[
|
|
1
|
+
{"version":3,"file":"index47.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|