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/index113.js
CHANGED
|
@@ -1,123 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { flattenTree as P } from "./index230.js";
|
|
3
|
-
const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
|
|
4
|
-
__name: "BbTree",
|
|
5
|
-
props: {
|
|
6
|
-
items: { default: () => [] },
|
|
7
|
-
parent: {},
|
|
8
|
-
identifier: { default: "id" },
|
|
9
|
-
depth: { default: 0 },
|
|
10
|
-
expandable: { type: [Boolean, Function] }
|
|
11
|
-
},
|
|
12
|
-
setup(c) {
|
|
13
|
-
const r = c, u = (n) => typeof n.open > "u" ? !0 : n.open, x = g(() => {
|
|
14
|
-
let n = 0;
|
|
15
|
-
return r.items.map((d, l) => {
|
|
16
|
-
const e = u(d), t = d.expandable ?? r.expandable, a = n + 1;
|
|
17
|
-
n = n + P([d], "children").length;
|
|
18
|
-
let o = !1;
|
|
19
|
-
return typeof t < "u" && (typeof t == "function" ? o = t(d, r.depth, r.parent) : o = t), {
|
|
20
|
-
children: d.children,
|
|
21
|
-
depth: r.depth,
|
|
22
|
-
expandable: o,
|
|
23
|
-
identifier: d[r.identifier],
|
|
24
|
-
offset: a,
|
|
25
|
-
index: l,
|
|
26
|
-
open: e,
|
|
27
|
-
original: d,
|
|
28
|
-
parent: r.parent
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
return (n, d) => {
|
|
33
|
-
const l = y("BbTree", !0);
|
|
34
|
-
return f(!0), i(v, null, h(x.value, (e) => (f(), i("div", {
|
|
35
|
-
key: e.identifier,
|
|
36
|
-
class: b(["bb-tree", {
|
|
37
|
-
[`bb-tree--depth-${e.depth}`]: !0,
|
|
38
|
-
"bb-tree--open": e.open
|
|
39
|
-
}])
|
|
40
|
-
}, [
|
|
41
|
-
s("div", w, [
|
|
42
|
-
s("div", z, [
|
|
43
|
-
n.$slots[e.identifier] ? p(n.$slots, e.identifier, {
|
|
44
|
-
key: 0,
|
|
45
|
-
depth: e.depth,
|
|
46
|
-
expandable: e.expandable,
|
|
47
|
-
identifier: e.identifier,
|
|
48
|
-
index: e.index,
|
|
49
|
-
item: e.original,
|
|
50
|
-
offset: e.offset,
|
|
51
|
-
open: e.open,
|
|
52
|
-
parent: e.parent
|
|
53
|
-
}) : n.$slots[e.depth] ? p(n.$slots, e.depth, {
|
|
54
|
-
key: 1,
|
|
55
|
-
depth: e.depth,
|
|
56
|
-
expandable: e.expandable,
|
|
57
|
-
identifier: e.identifier,
|
|
58
|
-
index: e.index,
|
|
59
|
-
item: e.original,
|
|
60
|
-
offset: e.offset,
|
|
61
|
-
open: e.open,
|
|
62
|
-
parent: e.parent
|
|
63
|
-
}) : p(n.$slots, "default", {
|
|
64
|
-
key: 2,
|
|
65
|
-
depth: e.depth,
|
|
66
|
-
expandable: e.expandable,
|
|
67
|
-
identifier: e.identifier,
|
|
68
|
-
index: e.index,
|
|
69
|
-
item: e.original,
|
|
70
|
-
offset: e.offset,
|
|
71
|
-
open: e.open,
|
|
72
|
-
parent: e.parent
|
|
73
|
-
})
|
|
74
|
-
])
|
|
75
|
-
]),
|
|
76
|
-
s("div", {
|
|
77
|
-
class: b(`bb-tree--depth-${e.depth}-children`)
|
|
78
|
-
}, [
|
|
79
|
-
p(n.$slots, `${e.depth}-children`, {
|
|
80
|
-
depth: e.depth,
|
|
81
|
-
expandable: e.expandable,
|
|
82
|
-
identifier: e.identifier,
|
|
83
|
-
index: e.index,
|
|
84
|
-
item: e.original,
|
|
85
|
-
offset: e.offset,
|
|
86
|
-
open: e.open,
|
|
87
|
-
parent: e.parent
|
|
88
|
-
}, () => [
|
|
89
|
-
p(n.$slots, `${e.identifier}-children`, {
|
|
90
|
-
depth: e.depth,
|
|
91
|
-
expandable: e.expandable,
|
|
92
|
-
identifier: e.identifier,
|
|
93
|
-
index: e.index,
|
|
94
|
-
item: e.original,
|
|
95
|
-
offset: e.offset,
|
|
96
|
-
open: e.open,
|
|
97
|
-
parent: e.parent
|
|
98
|
-
}, () => [
|
|
99
|
-
k(l, {
|
|
100
|
-
depth: e.depth + 1,
|
|
101
|
-
expandable: n.expandable,
|
|
102
|
-
identifier: r.identifier,
|
|
103
|
-
items: e.children,
|
|
104
|
-
parent: e
|
|
105
|
-
}, B({ _: 2 }, [
|
|
106
|
-
h(n.$slots, (t, a) => ({
|
|
107
|
-
name: a,
|
|
108
|
-
fn: C((o) => [
|
|
109
|
-
p(n.$slots, a, T(_(o)))
|
|
110
|
-
])
|
|
111
|
-
}))
|
|
112
|
-
]), 1032, ["depth", "expandable", "identifier", "items", "parent"])
|
|
113
|
-
])
|
|
114
|
-
])
|
|
115
|
-
], 2)
|
|
116
|
-
], 2))), 128);
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
export {
|
|
121
|
-
I as default
|
|
122
|
-
};
|
|
1
|
+
|
|
123
2
|
//# sourceMappingURL=index113.js.map
|
package/dist/index113.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index113.js","sources":[
|
|
1
|
+
{"version":3,"file":"index113.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index114.js
CHANGED
|
@@ -1,2 +1,123 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
|
|
2
|
+
import { flattenTree as P } from "./index246.js";
|
|
3
|
+
const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
|
|
4
|
+
__name: "BbTree",
|
|
5
|
+
props: {
|
|
6
|
+
items: { default: () => [] },
|
|
7
|
+
parent: {},
|
|
8
|
+
identifier: { default: "id" },
|
|
9
|
+
depth: { default: 0 },
|
|
10
|
+
expandable: { type: [Boolean, Function] }
|
|
11
|
+
},
|
|
12
|
+
setup(c) {
|
|
13
|
+
const r = c, u = (n) => typeof n.open > "u" ? !0 : n.open, x = g(() => {
|
|
14
|
+
let n = 0;
|
|
15
|
+
return r.items.map((d, l) => {
|
|
16
|
+
const e = u(d), t = d.expandable ?? r.expandable, a = n + 1;
|
|
17
|
+
n = n + P([d], "children").length;
|
|
18
|
+
let o = !1;
|
|
19
|
+
return typeof t < "u" && (typeof t == "function" ? o = t(d, r.depth, r.parent) : o = t), {
|
|
20
|
+
children: d.children,
|
|
21
|
+
depth: r.depth,
|
|
22
|
+
expandable: o,
|
|
23
|
+
identifier: d[r.identifier],
|
|
24
|
+
offset: a,
|
|
25
|
+
index: l,
|
|
26
|
+
open: e,
|
|
27
|
+
original: d,
|
|
28
|
+
parent: r.parent
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return (n, d) => {
|
|
33
|
+
const l = y("BbTree", !0);
|
|
34
|
+
return f(!0), i(v, null, h(x.value, (e) => (f(), i("div", {
|
|
35
|
+
key: e.identifier,
|
|
36
|
+
class: b(["bb-tree", {
|
|
37
|
+
[`bb-tree--depth-${e.depth}`]: !0,
|
|
38
|
+
"bb-tree--open": e.open
|
|
39
|
+
}])
|
|
40
|
+
}, [
|
|
41
|
+
s("div", w, [
|
|
42
|
+
s("div", z, [
|
|
43
|
+
n.$slots[e.identifier] ? p(n.$slots, e.identifier, {
|
|
44
|
+
key: 0,
|
|
45
|
+
depth: e.depth,
|
|
46
|
+
expandable: e.expandable,
|
|
47
|
+
identifier: e.identifier,
|
|
48
|
+
index: e.index,
|
|
49
|
+
item: e.original,
|
|
50
|
+
offset: e.offset,
|
|
51
|
+
open: e.open,
|
|
52
|
+
parent: e.parent
|
|
53
|
+
}) : n.$slots[e.depth] ? p(n.$slots, e.depth, {
|
|
54
|
+
key: 1,
|
|
55
|
+
depth: e.depth,
|
|
56
|
+
expandable: e.expandable,
|
|
57
|
+
identifier: e.identifier,
|
|
58
|
+
index: e.index,
|
|
59
|
+
item: e.original,
|
|
60
|
+
offset: e.offset,
|
|
61
|
+
open: e.open,
|
|
62
|
+
parent: e.parent
|
|
63
|
+
}) : p(n.$slots, "default", {
|
|
64
|
+
key: 2,
|
|
65
|
+
depth: e.depth,
|
|
66
|
+
expandable: e.expandable,
|
|
67
|
+
identifier: e.identifier,
|
|
68
|
+
index: e.index,
|
|
69
|
+
item: e.original,
|
|
70
|
+
offset: e.offset,
|
|
71
|
+
open: e.open,
|
|
72
|
+
parent: e.parent
|
|
73
|
+
})
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
s("div", {
|
|
77
|
+
class: b(`bb-tree--depth-${e.depth}-children`)
|
|
78
|
+
}, [
|
|
79
|
+
p(n.$slots, `${e.depth}-children`, {
|
|
80
|
+
depth: e.depth,
|
|
81
|
+
expandable: e.expandable,
|
|
82
|
+
identifier: e.identifier,
|
|
83
|
+
index: e.index,
|
|
84
|
+
item: e.original,
|
|
85
|
+
offset: e.offset,
|
|
86
|
+
open: e.open,
|
|
87
|
+
parent: e.parent
|
|
88
|
+
}, () => [
|
|
89
|
+
p(n.$slots, `${e.identifier}-children`, {
|
|
90
|
+
depth: e.depth,
|
|
91
|
+
expandable: e.expandable,
|
|
92
|
+
identifier: e.identifier,
|
|
93
|
+
index: e.index,
|
|
94
|
+
item: e.original,
|
|
95
|
+
offset: e.offset,
|
|
96
|
+
open: e.open,
|
|
97
|
+
parent: e.parent
|
|
98
|
+
}, () => [
|
|
99
|
+
k(l, {
|
|
100
|
+
depth: e.depth + 1,
|
|
101
|
+
expandable: n.expandable,
|
|
102
|
+
identifier: r.identifier,
|
|
103
|
+
items: e.children,
|
|
104
|
+
parent: e
|
|
105
|
+
}, B({ _: 2 }, [
|
|
106
|
+
h(n.$slots, (t, a) => ({
|
|
107
|
+
name: a,
|
|
108
|
+
fn: C((o) => [
|
|
109
|
+
p(n.$slots, a, T(_(o)))
|
|
110
|
+
])
|
|
111
|
+
}))
|
|
112
|
+
]), 1032, ["depth", "expandable", "identifier", "items", "parent"])
|
|
113
|
+
])
|
|
114
|
+
])
|
|
115
|
+
], 2)
|
|
116
|
+
], 2))), 128);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
export {
|
|
121
|
+
I as default
|
|
122
|
+
};
|
|
2
123
|
//# sourceMappingURL=index114.js.map
|
package/dist/index114.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index114.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index114.js","sources":["../src/components/BbTree/BbTree.vue"],"sourcesContent":["<template>\n\t<div\n\t\tv-for=\"item in internalItems\"\n\t\t:key=\"item.identifier\"\n\t\tclass=\"bb-tree\"\n\t\t:class=\"{\n\t\t\t[`bb-tree--depth-${item.depth}`]: true,\n\t\t\t'bb-tree--open': item.open,\n\t\t}\"\n\t>\n\t\t<div class=\"bb-tree-row\">\n\t\t\t<div class=\"bb-tree-main-content\">\n\t\t\t\t<!-- Slot for a speciifc item -->\n\t\t\t\t<slot\n\t\t\t\t\tv-if=\"$slots[item.identifier]\"\n\t\t\t\t\t:depth=\"item.depth\"\n\t\t\t\t\t:expandable=\"item.expandable\"\n\t\t\t\t\t:identifier=\"item.identifier\"\n\t\t\t\t\t:index=\"item.index\"\n\t\t\t\t\t:item=\"item.original\"\n\t\t\t\t\t:name=\"item.identifier\"\n\t\t\t\t\t:offset=\"item.offset\"\n\t\t\t\t\t:open=\"item.open\"\n\t\t\t\t\t:parent=\"item.parent\"\n\t\t\t\t/>\n\t\t\t\t<!-- Slot for all items in this level -->\n\t\t\t\t<slot\n\t\t\t\t\tv-else-if=\"$slots[item.depth]\"\n\t\t\t\t\t:depth=\"item.depth\"\n\t\t\t\t\t:expandable=\"item.expandable\"\n\t\t\t\t\t:identifier=\"item.identifier\"\n\t\t\t\t\t:index=\"item.index\"\n\t\t\t\t\t:item=\"item.original\"\n\t\t\t\t\t:name=\"item.depth\"\n\t\t\t\t\t:offset=\"item.offset\"\n\t\t\t\t\t:open=\"item.open\"\n\t\t\t\t\t:parent=\"item.parent\"\n\t\t\t\t/>\n\t\t\t\t<!-- Default slot -->\n\t\t\t\t<slot\n\t\t\t\t\tv-else\n\t\t\t\t\t:depth=\"item.depth\"\n\t\t\t\t\t:expandable=\"item.expandable\"\n\t\t\t\t\t:identifier=\"item.identifier\"\n\t\t\t\t\t:index=\"item.index\"\n\t\t\t\t\t:item=\"item.original\"\n\t\t\t\t\t:name=\"'default'\"\n\t\t\t\t\t:offset=\"item.offset\"\n\t\t\t\t\t:open=\"item.open\"\n\t\t\t\t\t:parent=\"item.parent\"\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t</div>\n\t\t<div :class=\"`bb-tree--depth-${item.depth}-children`\">\n\t\t\t<slot\n\t\t\t\t:depth=\"item.depth\"\n\t\t\t\t:expandable=\"item.expandable\"\n\t\t\t\t:identifier=\"item.identifier\"\n\t\t\t\t:index=\"item.index\"\n\t\t\t\t:item=\"item.original\"\n\t\t\t\t:name=\"`${item.depth}-children`\"\n\t\t\t\t:offset=\"item.offset\"\n\t\t\t\t:open=\"item.open\"\n\t\t\t\t:parent=\"item.parent\"\n\t\t\t>\n\t\t\t\t<slot\n\t\t\t\t\t:depth=\"item.depth\"\n\t\t\t\t\t:expandable=\"item.expandable\"\n\t\t\t\t\t:identifier=\"item.identifier\"\n\t\t\t\t\t:index=\"item.index\"\n\t\t\t\t\t:item=\"item.original\"\n\t\t\t\t\t:name=\"`${item.identifier}-children`\"\n\t\t\t\t\t:offset=\"item.offset\"\n\t\t\t\t\t:open=\"item.open\"\n\t\t\t\t\t:parent=\"item.parent\"\n\t\t\t\t>\n\t\t\t\t\t<BbTree\n\t\t\t\t\t\t:depth=\"item.depth + 1\"\n\t\t\t\t\t\t:expandable=\"expandable\"\n\t\t\t\t\t\t:identifier=\"props.identifier\"\n\t\t\t\t\t\t:items=\"item.children\"\n\t\t\t\t\t\t:parent=\"item\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<template v-for=\"(_, name) in $slots\" #[name]=\"data: any\">\n\t\t\t\t\t\t\t<slot :name=\"name\" v-bind=\"data\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</BbTree>\n\t\t\t\t</slot>\n\t\t\t</slot>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { flattenTree } from '@/utilities/functions/flattenTree';\nimport { computed } from 'vue';\n\nexport type TreeItem = {\n\t/**\n\t * Array of children of the current item. Is the key\n\t * with which we can identify whther the node is nested or not.\n\t */\n\tchildren?: TreeItem[];\n\t/**\n\t * Status of the current node. When a node is open\n\t * it's children are displayed. Otherwise its children\n\t * are hidden.\n\t */\n\topen?: boolean;\n\t[key: symbol | string]: any;\n} & Pick<BbTreeProps, 'expandable'>;\n\nexport type BbTreeProps = {\n\t/**\n\t * Array containing the tree like structure of the items.\n\t */\n\titems: TreeItem[];\n\t/**\n\t * Parent of the current node. `undefined` for the first level.\n\t */\n\tparent?: TreeItem;\n\t/**\n\t * Identifier of the item.\n\t */\n\tidentifier?: string | number;\n\t/**\n\t * Current depth of the tree. Starting at 0 for\n\t * the first level increasing at every level down.\n\t */\n\tdepth?: number;\n\t/**\n\t * Defines the item as expandable. It can be a\n\t * global boolean defining all items as expandable.\n\t * Or it can be a function that receives the item,\n\t * depth, and parent of the current node and returns a boolean.\n\t */\n\texpandable?:\n\t\t| boolean\n\t\t| ((item: TreeItem, depth: number, parent?: TreeItem) => boolean);\n};\n\nconst props = withDefaults(defineProps<BbTreeProps>(), {\n\tidentifier: 'id',\n\tdepth: 0,\n\toffset: 0,\n\titems: () => [] as TreeItem[],\n});\n\nexport type BbTreeSlots = {\n\t[key: string]: (props: {\n\t\titem: any;\n\t\tparent?: any;\n\t\tindex: number;\n\t\toffset: number;\n\t\topen: boolean;\n\t\tdepth: number;\n\t\tidentifier?: string | number;\n\t\texpandable: boolean;\n\t}) => any;\n};\ndefineSlots<BbTreeSlots>();\n\nconst itemIsOpen = (item: TreeItem) => {\n\t/* If the item is not expandable it must be open */\n\tif (typeof item.open === 'undefined') return true;\n\treturn item.open;\n};\n\ntype MappedItem = {\n\tchildren: TreeItem['children'];\n\tdepth: NonNullable<BbTreeProps['depth']>;\n\texpandable: boolean;\n\tidentifier: any;\n\tindex: number;\n\toffset: number;\n\topen: boolean;\n\toriginal: any;\n\tparent: BbTreeProps['parent'];\n};\n\nconst internalItems = computed<MappedItem[]>(() => {\n\tlet currentOffset = 0;\n\n\treturn props.items.map((item: TreeItem, index) => {\n\t\tconst open = itemIsOpen(item);\n\t\tconst expandableProp = item.expandable ?? props.expandable;\n\t\tconst offset = currentOffset + 1;\n\n\t\tcurrentOffset = currentOffset + flattenTree([item], 'children').length;\n\n\t\tlet expandable = false;\n\t\tif (typeof expandableProp !== 'undefined') {\n\t\t\tif (typeof expandableProp === 'function')\n\t\t\t\texpandable = expandableProp(item, props.depth, props.parent);\n\t\t\telse expandable = expandableProp;\n\t\t}\n\t\treturn {\n\t\t\tchildren: item.children,\n\t\t\tdepth: props.depth,\n\t\t\texpandable: expandable,\n\t\t\tidentifier: item[props.identifier],\n\t\t\toffset,\n\t\t\tindex,\n\t\t\topen,\n\t\t\toriginal: item,\n\t\t\tparent: props.parent,\n\t\t};\n\t});\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbTree';\n</style>\n"],"names":["props","__props","itemIsOpen","item","internalItems","computed","currentOffset","index","open","expandableProp","offset","flattenTree","expandable"],"mappings":";;;;;;;;;;;;AA6IA,UAAMA,IAAQC,GAqBRC,IAAa,CAACC,MAEf,OAAOA,EAAK,OAAS,MAAoB,KACtCA,EAAK,MAePC,IAAgBC,EAAuB,MAAM;AAClD,UAAIC,IAAgB;AAEpB,aAAON,EAAM,MAAM,IAAI,CAACG,GAAgBI,MAAU;AAC3C,cAAAC,IAAON,EAAWC,CAAI,GACtBM,IAAiBN,EAAK,cAAcH,EAAM,YAC1CU,IAASJ,IAAgB;AAE/B,QAAAA,IAAgBA,IAAgBK,EAAY,CAACR,CAAI,GAAG,UAAU,EAAE;AAEhE,YAAIS,IAAa;AACb,eAAA,OAAOH,IAAmB,QACzB,OAAOA,KAAmB,aAC7BG,IAAaH,EAAeN,GAAMH,EAAM,OAAOA,EAAM,MAAM,IAC1CY,IAAAH,IAEZ;AAAA,UACN,UAAUN,EAAK;AAAA,UACf,OAAOH,EAAM;AAAA,UACb,YAAAY;AAAA,UACA,YAAYT,EAAKH,EAAM,UAAU;AAAA,UACjC,QAAAU;AAAA,UACA,OAAAH;AAAA,UACA,MAAAC;AAAA,UACA,UAAUL;AAAA,UACV,QAAQH,EAAM;AAAA,QAAA;AAAA,MACf,CACA;AAAA,IAAA,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index115.js
CHANGED
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
const b = { class: "bb-chip" }, h = { class: "bb-chip__content" }, m = ["aria-label"], u = {
|
|
3
|
-
"aria-hidden": "true",
|
|
4
|
-
class: "v-icon__svg",
|
|
5
|
-
role: "img",
|
|
6
|
-
style: { height: "20px", width: "20px" },
|
|
7
|
-
viewBox: "0 0 20 20",
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
-
}, L = /* @__PURE__ */ l("path", {
|
|
10
|
-
d: "M15 6.375L14.125 5.5L10 9.625L5.875 5.5L5 6.375L9.125 10.5L5 14.625L5.875 15.5L10 11.375L14.125 15.5L15 14.625L10.875 10.5L15 6.375Z",
|
|
11
|
-
fill: "currentColor"
|
|
12
|
-
}, null, -1), f = [
|
|
13
|
-
L
|
|
14
|
-
], v = /* @__PURE__ */ c({
|
|
15
|
-
__name: "BbChip",
|
|
16
|
-
props: {
|
|
17
|
-
text: {},
|
|
18
|
-
clearable: { type: Boolean, default: !0 },
|
|
19
|
-
clearableLabel: { default: "Elimina" }
|
|
20
|
-
},
|
|
21
|
-
emits: ["click:clear"],
|
|
22
|
-
setup(g, { emit: a }) {
|
|
23
|
-
const s = a, n = (e) => {
|
|
24
|
-
s("click:clear", e);
|
|
25
|
-
};
|
|
26
|
-
return (e, w) => (t(), o("span", b, [
|
|
27
|
-
l("span", h, [
|
|
28
|
-
r(e.$slots, "default", {}, () => [
|
|
29
|
-
i(p(e.text), 1)
|
|
30
|
-
])
|
|
31
|
-
]),
|
|
32
|
-
e.clearable ? (t(), o("button", {
|
|
33
|
-
key: 0,
|
|
34
|
-
"aria-label": e.clearableLabel,
|
|
35
|
-
class: "bb-chip__clear-button",
|
|
36
|
-
type: "button",
|
|
37
|
-
onClick: _(n, ["stop", "prevent"])
|
|
38
|
-
}, [
|
|
39
|
-
(t(), o("svg", u, f))
|
|
40
|
-
], 8, m)) : d("", !0)
|
|
41
|
-
]));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
v as default
|
|
46
|
-
};
|
|
1
|
+
|
|
47
2
|
//# sourceMappingURL=index115.js.map
|
package/dist/index115.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index115.js","sources":[
|
|
1
|
+
{"version":3,"file":"index115.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index116.js
CHANGED
|
@@ -1,40 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineComponent as c, openBlock as t, createElementBlock as o, createElementVNode as l, renderSlot as r, createTextVNode as i, toDisplayString as p, withModifiers as _, createCommentVNode as d } from "vue";
|
|
2
|
+
const b = { class: "bb-chip" }, h = { class: "bb-chip__content" }, m = ["aria-label"], u = {
|
|
3
|
+
"aria-hidden": "true",
|
|
4
|
+
class: "v-icon__svg",
|
|
5
|
+
role: "img",
|
|
6
|
+
style: { height: "20px", width: "20px" },
|
|
7
|
+
viewBox: "0 0 20 20",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
}, L = /* @__PURE__ */ l("path", {
|
|
10
|
+
d: "M15 6.375L14.125 5.5L10 9.625L5.875 5.5L5 6.375L9.125 10.5L5 14.625L5.875 15.5L10 11.375L14.125 15.5L15 14.625L10.875 10.5L15 6.375Z",
|
|
11
|
+
fill: "currentColor"
|
|
12
|
+
}, null, -1), f = [
|
|
13
|
+
L
|
|
14
|
+
], v = /* @__PURE__ */ c({
|
|
15
|
+
__name: "BbChip",
|
|
6
16
|
props: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
text: {},
|
|
18
|
+
clearable: { type: Boolean, default: !0 },
|
|
19
|
+
clearableLabel: { default: "Elimina" }
|
|
10
20
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
o.eager || t.value ? v(o.$slots, "default", { key: 0 }) : f("", !0)
|
|
33
|
-
])
|
|
34
|
-
], 16));
|
|
21
|
+
emits: ["click:clear"],
|
|
22
|
+
setup(g, { emit: a }) {
|
|
23
|
+
const s = a, n = (e) => {
|
|
24
|
+
s("click:clear", e);
|
|
25
|
+
};
|
|
26
|
+
return (e, w) => (t(), o("span", b, [
|
|
27
|
+
l("span", h, [
|
|
28
|
+
r(e.$slots, "default", {}, () => [
|
|
29
|
+
i(p(e.text), 1)
|
|
30
|
+
])
|
|
31
|
+
]),
|
|
32
|
+
e.clearable ? (t(), o("button", {
|
|
33
|
+
key: 0,
|
|
34
|
+
"aria-label": e.clearableLabel,
|
|
35
|
+
class: "bb-chip__clear-button",
|
|
36
|
+
type: "button",
|
|
37
|
+
onClick: _(n, ["stop", "prevent"])
|
|
38
|
+
}, [
|
|
39
|
+
(t(), o("svg", u, f))
|
|
40
|
+
], 8, m)) : d("", !0)
|
|
41
|
+
]));
|
|
35
42
|
}
|
|
36
43
|
});
|
|
37
44
|
export {
|
|
38
|
-
|
|
45
|
+
v as default
|
|
39
46
|
};
|
|
40
47
|
//# sourceMappingURL=index116.js.map
|
package/dist/index116.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index116.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index116.js","sources":["../src/components/BbChip/BbChip.vue"],"sourcesContent":["<template>\n\t<span class=\"bb-chip\"\n\t\t><span class=\"bb-chip__content\"\n\t\t\t><slot>{{ text }}</slot></span\n\t\t><button\n\t\t\tv-if=\"clearable\"\n\t\t\t:aria-label=\"clearableLabel\"\n\t\t\tclass=\"bb-chip__clear-button\"\n\t\t\ttype=\"button\"\n\t\t\t@click.stop.prevent=\"onClear\"\n\t\t>\n\t\t\t<svg\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclass=\"v-icon__svg\"\n\t\t\t\trole=\"img\"\n\t\t\t\tstyle=\"height: 20px; width: 20px\"\n\t\t\t\tviewBox=\"0 0 20 20\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\td=\"M15 6.375L14.125 5.5L10 9.625L5.875 5.5L5 6.375L9.125 10.5L5 14.625L5.875 15.5L10 11.375L14.125 15.5L15 14.625L10.875 10.5L15 6.375Z\"\n\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t/>\n\t\t\t</svg></button\n\t></span>\n</template>\n\n<script setup lang=\"ts\">\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbChipProps = Pick<CommonProps, 'text'> & {\n\t/**\n\t * Renders a button with a close icon. Used to indicate the possibility of deleting the item.\n\t */\n\tclearable?: boolean;\n\t/**\n\t * The label the clearing button must have\n\t */\n\tclearableLabel?: string;\n};\n\nwithDefaults(defineProps<BbChipProps>(), {\n\tclearable: true,\n\tclearableLabel: 'Elimina',\n});\n\nexport type BbChipEvents = {\n\t(e: 'click:clear', event: MouseEvent): void;\n};\n\ndefineSlots<{\n\tdefault?: (props: object) => any;\n}>();\n\nconst emit = defineEmits(['click:clear']);\nconst onClear = (event: MouseEvent) => {\n\temit('click:clear', event);\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbChip';\n</style>\n"],"names":["emit","__emit","onClear","event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsDA,UAAMA,IAAOC,GACPC,IAAU,CAACC,MAAsB;AACtC,MAAAH,EAAK,eAAeG,CAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index117.js
CHANGED
|
@@ -1,47 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
__name: "BbIcon",
|
|
1
|
+
import { defineComponent as i, ref as s, watch as u, computed as c, openBlock as p, createElementBlock as d, normalizeProps as m, guardReactiveProps as b, createElementVNode as v, normalizeStyle as f, renderSlot as y, createCommentVNode as V } from "vue";
|
|
2
|
+
const g = /* @__PURE__ */ i({
|
|
3
|
+
__name: "BbCollapsible",
|
|
5
4
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type:
|
|
5
|
+
eager: { type: Boolean },
|
|
6
|
+
transitionDuration: { default: 250 },
|
|
7
|
+
modelValue: { type: Boolean }
|
|
9
8
|
},
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const u = {
|
|
16
|
-
xs: 12,
|
|
17
|
-
sm: 16,
|
|
18
|
-
md: 24,
|
|
19
|
-
lg: 28,
|
|
20
|
-
xl: 36,
|
|
21
|
-
xxl: 40
|
|
22
|
-
}, f = l(() => {
|
|
23
|
-
const s = {
|
|
24
|
-
"bb-icon": !0
|
|
25
|
-
};
|
|
26
|
-
let c = { width: l(() => {
|
|
27
|
-
let o;
|
|
28
|
-
return typeof e.size == "string" ? o = u[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? o = e.size : o = 24, o + "px";
|
|
29
|
-
}).value };
|
|
30
|
-
return e.color && (z(e.color) ? c.color = e.color : s[`bb-icon-${e.color}`] = !0), {
|
|
31
|
-
class: s,
|
|
32
|
-
style: c
|
|
33
|
-
};
|
|
34
|
-
}), n = y(null);
|
|
35
|
-
return _(async () => {
|
|
36
|
-
if (t) {
|
|
37
|
-
if (typeof t[e.type] > "u")
|
|
38
|
-
throw new Error(`Icon "${e.type}" does not exist.`);
|
|
39
|
-
n.value = await t[e.type]();
|
|
9
|
+
setup(r) {
|
|
10
|
+
const e = r, o = s(e.modelValue), t = s(o.value), a = u(
|
|
11
|
+
() => e.modelValue,
|
|
12
|
+
(l) => {
|
|
13
|
+
l && (t.value = !0, a());
|
|
40
14
|
}
|
|
41
|
-
|
|
15
|
+
);
|
|
16
|
+
o.value && a();
|
|
17
|
+
const n = c(() => ({
|
|
18
|
+
class: {
|
|
19
|
+
"bb-collapsible": !0,
|
|
20
|
+
"bb-collapsible--open": e.modelValue,
|
|
21
|
+
"bb-collapsible--closed": !e.modelValue
|
|
22
|
+
},
|
|
23
|
+
style: {
|
|
24
|
+
transitionDuration: e.transitionDuration + "ms"
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
return (l, _) => (p(), d("div", m(b(n.value)), [
|
|
28
|
+
v("div", {
|
|
29
|
+
class: "bb-collapsible__content",
|
|
30
|
+
style: f(n.value.style)
|
|
31
|
+
}, [
|
|
32
|
+
l.eager || t.value ? y(l.$slots, "default", { key: 0 }) : V("", !0)
|
|
33
|
+
], 4)
|
|
34
|
+
], 16));
|
|
42
35
|
}
|
|
43
36
|
});
|
|
44
37
|
export {
|
|
45
|
-
|
|
38
|
+
g as default
|
|
46
39
|
};
|
|
47
40
|
//# sourceMappingURL=index117.js.map
|
package/dist/index117.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index117.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index117.js","sources":["../src/components/BbCollapsible/BbCollapsible.vue"],"sourcesContent":["<template>\n\t<div v-bind=\"collapsibleAttributes\">\n\t\t<div class=\"bb-collapsible__content\" :style=\"collapsibleAttributes.style\">\n\t\t\t<slot v-if=\"eager || hasRenderedOnce\"></slot>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport { useQueue } from '@/composables/useQueue';\nimport { wait } from '@/utilities/functions/wait';\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbCollapsibleProps = Pick<\n\tCommonProps,\n\t'eager' | 'transitionDuration'\n> & {\n\t/**\n\t * Used by v-model to trigger opening / closing the collapsible\n\t */\n\tmodelValue: boolean;\n};\n\nconst props = withDefaults(defineProps<BbCollapsibleProps>(), {\n\ttransitionDuration: 250,\n});\n\ndefineSlots<{\n\tdefault?: (props: object) => any;\n}>();\n\nconst visible = ref(props.modelValue);\nconst hasRenderedOnce = ref(visible.value);\n\n/**\n * If the component is lazy render content on first time modelValue is true\n */\nconst cleanup = watch(\n\t() => props.modelValue,\n\t(value) => {\n\t\tif (value) {\n\t\t\thasRenderedOnce.value = true;\n\t\t\tcleanup();\n\t\t}\n\t}\n);\nif (visible.value) cleanup();\n\nconst collapsibleAttributes = computed(() => {\n\treturn {\n\t\tclass: {\n\t\t\t'bb-collapsible': true,\n\t\t\t'bb-collapsible--open': props.modelValue,\n\t\t\t'bb-collapsible--closed': !props.modelValue,\n\t\t},\n\t\tstyle: {\n\t\t\ttransitionDuration: props.transitionDuration + 'ms',\n\t\t},\n\t};\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbCollapsible';\n</style>\n"],"names":["props","__props","visible","ref","hasRenderedOnce","cleanup","watch","value","collapsibleAttributes","computed"],"mappings":";;;;;;;;;AAwBA,UAAMA,IAAQC,GAQRC,IAAUC,EAAIH,EAAM,UAAU,GAC9BI,IAAkBD,EAAID,EAAQ,KAAK,GAKnCG,IAAUC;AAAA,MACf,MAAMN,EAAM;AAAA,MACZ,CAACO,MAAU;AACV,QAAIA,MACHH,EAAgB,QAAQ,IAChBC;MAEV;AAAA,IAAA;AAED,IAAIH,EAAQ,SAAeG;AAErB,UAAAG,IAAwBC,EAAS,OAC/B;AAAA,MACN,OAAO;AAAA,QACN,kBAAkB;AAAA,QAClB,wBAAwBT,EAAM;AAAA,QAC9B,0BAA0B,CAACA,EAAM;AAAA,MAClC;AAAA,MACA,OAAO;AAAA,QACN,oBAAoBA,EAAM,qBAAqB;AAAA,MAChD;AAAA,IAAA,EAED;;;;;;;;;;;"}
|
package/dist/index118.js
CHANGED
|
@@ -1,50 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
__name: "
|
|
1
|
+
import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
|
|
2
|
+
import { isCssColor as z } from "./index198.js";
|
|
3
|
+
const g = ["innerHTML"], $ = /* @__PURE__ */ m({
|
|
4
|
+
__name: "BbIcon",
|
|
5
5
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
tag: { default: "div" },
|
|
10
|
-
transitionDuration: { default: 200 }
|
|
6
|
+
size: { default: "md" },
|
|
7
|
+
color: {},
|
|
8
|
+
type: {}
|
|
11
9
|
},
|
|
12
|
-
setup(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
setup(p) {
|
|
11
|
+
var i, r;
|
|
12
|
+
const e = p;
|
|
13
|
+
let t;
|
|
14
|
+
!!((r = (i = d()) == null ? void 0 : i.proxy) != null && r.$nuxt) ? process.client && (t = useNuxtApp().$icons) : t = x("icons");
|
|
15
|
+
const u = {
|
|
16
|
+
xs: 12,
|
|
17
|
+
sm: 16,
|
|
18
|
+
md: 24,
|
|
19
|
+
lg: 28,
|
|
20
|
+
xl: 36,
|
|
21
|
+
xxl: 40
|
|
22
|
+
}, f = l(() => {
|
|
23
|
+
const s = {
|
|
24
|
+
"bb-icon": !0
|
|
25
|
+
};
|
|
26
|
+
let c = { width: l(() => {
|
|
27
|
+
let o;
|
|
28
|
+
return typeof e.size == "string" ? o = u[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? o = e.size : o = 24, o + "px";
|
|
29
|
+
}).value };
|
|
30
|
+
return e.color && (z(e.color) ? c.color = e.color : s[`bb-icon-${e.color}`] = !0), {
|
|
31
|
+
class: s,
|
|
32
|
+
style: c
|
|
33
|
+
};
|
|
34
|
+
}), n = y(null);
|
|
35
|
+
return _(async () => {
|
|
36
|
+
if (t) {
|
|
37
|
+
if (typeof t[e.type] > "u")
|
|
38
|
+
throw new Error(`Icon "${e.type}" does not exist.`);
|
|
39
|
+
n.value = await t[e.type]();
|
|
23
40
|
}
|
|
24
|
-
},
|
|
25
|
-
return (o, y) => (i(), l(u(o.tag), {
|
|
26
|
-
ref_key: "container",
|
|
27
|
-
ref: s,
|
|
28
|
-
class: "bb-smooth-height",
|
|
29
|
-
style: m({ "transition-duration": n.transitionDuration / 1e3 + "s" })
|
|
30
|
-
}, {
|
|
31
|
-
default: f(() => [
|
|
32
|
-
(i(), l(u(o.tag), {
|
|
33
|
-
ref_key: "content",
|
|
34
|
-
ref: e,
|
|
35
|
-
class: "content"
|
|
36
|
-
}, {
|
|
37
|
-
default: f(() => [
|
|
38
|
-
d(o.$slots, "default")
|
|
39
|
-
]),
|
|
40
|
-
_: 3
|
|
41
|
-
}, 512))
|
|
42
|
-
]),
|
|
43
|
-
_: 3
|
|
44
|
-
}, 8, ["style"]));
|
|
41
|
+
}), (s, a) => (b(), h("i", w(f.value, { innerHTML: n.value }), null, 16, g));
|
|
45
42
|
}
|
|
46
43
|
});
|
|
47
44
|
export {
|
|
48
|
-
|
|
45
|
+
$ as default
|
|
49
46
|
};
|
|
50
47
|
//# sourceMappingURL=index118.js.map
|