bitboss-ui 0.2.33 → 0.2.35
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/index.js +188 -0
- package/dist/index.js.map +1 -0
- package/dist/index10.js +5 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +5 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +438 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +5 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +95 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +5 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +89 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +5 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +90 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +5 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +30 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +132 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +5 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +152 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +5 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +123 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +5 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +47 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +41 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +47 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +50 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +46 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +5 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +5 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +24 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +5 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +227 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +5 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +21 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +15 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +27 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +8 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +12 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +152 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +9 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +73 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +6 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +6 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +6 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +6 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +6 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +6 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +6 -0
- package/dist/index138.js.map +1 -0
- package/dist/index139.js +6 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +5 -0
- package/dist/index14.js.map +1 -0
- package/dist/index140.js +6 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +6 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +6 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +6 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.js +6 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.js +6 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.js +6 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.js +6 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.js +6 -0
- package/dist/index148.js.map +1 -0
- package/dist/index149.js +6 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.js +458 -0
- package/dist/index15.js.map +1 -0
- package/dist/index150.js +6 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.js +6 -0
- package/dist/index151.js.map +1 -0
- package/dist/index152.js +6 -0
- package/dist/index152.js.map +1 -0
- package/dist/index153.js +6 -0
- package/dist/index153.js.map +1 -0
- package/dist/index154.js +6 -0
- package/dist/index154.js.map +1 -0
- package/dist/index155.js +6 -0
- package/dist/index155.js.map +1 -0
- package/dist/index156.js +6 -0
- package/dist/index156.js.map +1 -0
- package/dist/index157.js +6 -0
- package/dist/index157.js.map +1 -0
- package/dist/index158.js +5 -0
- package/dist/index158.js.map +1 -0
- package/dist/index159.js +6 -0
- package/dist/index159.js.map +1 -0
- package/dist/index16.js +5 -0
- package/dist/index16.js.map +1 -0
- package/dist/index160.js +5 -0
- package/dist/index160.js.map +1 -0
- package/dist/index161.js +6 -0
- package/dist/index161.js.map +1 -0
- package/dist/index162.js +6 -0
- package/dist/index162.js.map +1 -0
- package/dist/index163.js +6 -0
- package/dist/index163.js.map +1 -0
- package/dist/index164.js +6 -0
- package/dist/index164.js.map +1 -0
- package/dist/index165.js +6 -0
- package/dist/index165.js.map +1 -0
- package/dist/index166.js +6 -0
- package/dist/index166.js.map +1 -0
- package/dist/index167.js +5 -0
- package/dist/index167.js.map +1 -0
- package/dist/index168.js +6 -0
- package/dist/index168.js.map +1 -0
- package/dist/index169.js +5 -0
- package/dist/index169.js.map +1 -0
- package/dist/index17.js +212 -0
- package/dist/index17.js.map +1 -0
- package/dist/index170.js +5 -0
- package/dist/index170.js.map +1 -0
- package/dist/index171.js +6 -0
- package/dist/index171.js.map +1 -0
- package/dist/index172.js +6 -0
- package/dist/index172.js.map +1 -0
- package/dist/index173.js +6 -0
- package/dist/index173.js.map +1 -0
- package/dist/index174.js +6 -0
- package/dist/index174.js.map +1 -0
- package/dist/index175.js +6 -0
- package/dist/index175.js.map +1 -0
- package/dist/index176.js +6 -0
- package/dist/index176.js.map +1 -0
- package/dist/index177.js +6 -0
- package/dist/index177.js.map +1 -0
- package/dist/index178.js +6 -0
- package/dist/index178.js.map +1 -0
- package/dist/index179.js +6 -0
- package/dist/index179.js.map +1 -0
- package/dist/index18.js +5 -0
- package/dist/index18.js.map +1 -0
- package/dist/index180.js +6 -0
- package/dist/index180.js.map +1 -0
- package/dist/index181.js +6 -0
- package/dist/index181.js.map +1 -0
- package/dist/index182.js +6 -0
- package/dist/index182.js.map +1 -0
- package/dist/index183.js +5 -0
- package/dist/index183.js.map +1 -0
- package/dist/index184.js +6 -0
- package/dist/index184.js.map +1 -0
- package/dist/index185.js +5 -0
- package/dist/index185.js.map +1 -0
- package/dist/index186.js +6 -0
- package/dist/index186.js.map +1 -0
- package/dist/index187.js +6 -0
- package/dist/index187.js.map +1 -0
- package/dist/index188.js +6 -0
- package/dist/index188.js.map +1 -0
- package/dist/index189.js +6 -0
- package/dist/index189.js.map +1 -0
- package/dist/index19.js +240 -0
- package/dist/index19.js.map +1 -0
- package/dist/index190.js +6 -0
- package/dist/index190.js.map +1 -0
- package/dist/index191.js +6 -0
- package/dist/index191.js.map +1 -0
- package/dist/index192.js +6 -0
- package/dist/index192.js.map +1 -0
- package/dist/index193.js +6 -0
- package/dist/index193.js.map +1 -0
- package/dist/index194.js +6 -0
- package/dist/index194.js.map +1 -0
- package/dist/index195.js +6 -0
- package/dist/index195.js.map +1 -0
- package/dist/index196.js +5 -0
- package/dist/index196.js.map +1 -0
- package/dist/index197.js +6 -0
- package/dist/index197.js.map +1 -0
- package/dist/index198.js +38 -0
- package/dist/index198.js.map +1 -0
- package/dist/index199.js +9 -0
- package/dist/index199.js.map +1 -0
- package/dist/index2.js +43 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +5 -0
- package/dist/index20.js.map +1 -0
- package/dist/index200.js +381 -0
- package/dist/index200.js.map +1 -0
- package/dist/index201.js +137 -0
- package/dist/index201.js.map +1 -0
- package/dist/index202.js +8 -0
- package/dist/index202.js.map +1 -0
- package/dist/index203.js +22 -0
- package/dist/index203.js.map +1 -0
- package/dist/index204.js +5 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +5 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +177 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +26 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +376 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +19 -0
- package/dist/index209.js.map +1 -0
- package/dist/index21.js +116 -0
- package/dist/index21.js.map +1 -0
- package/dist/index210.js +19 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +23 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +32 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +11 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +6 -0
- package/dist/index214.js.map +1 -0
- package/dist/index215.js +6 -0
- package/dist/index215.js.map +1 -0
- package/dist/index216.js +238 -0
- package/dist/index216.js.map +1 -0
- package/dist/index217.js +5 -0
- package/dist/index217.js.map +1 -0
- package/dist/index218.js +7 -0
- package/dist/index218.js.map +1 -0
- package/dist/index219.js +5 -0
- package/dist/index219.js.map +1 -0
- package/dist/index22.js +5 -0
- package/dist/index22.js.map +1 -0
- package/dist/index220.js +5 -0
- package/dist/index220.js.map +1 -0
- package/dist/index221.js +13 -0
- package/dist/index221.js.map +1 -0
- package/dist/index222.js +31 -0
- package/dist/index222.js.map +1 -0
- package/dist/index223.js +20 -0
- package/dist/index223.js.map +1 -0
- package/dist/index224.js +12 -0
- package/dist/index224.js.map +1 -0
- package/dist/index225.js +124 -0
- package/dist/index225.js.map +1 -0
- package/dist/index226.js +82 -0
- package/dist/index226.js.map +1 -0
- package/dist/index227.js +438 -0
- package/dist/index227.js.map +1 -0
- package/dist/index228.js +92 -0
- package/dist/index228.js.map +1 -0
- package/dist/index229.js +203 -0
- package/dist/index229.js.map +1 -0
- package/dist/index23.js +116 -0
- package/dist/index23.js.map +1 -0
- package/dist/index230.js +9 -0
- package/dist/index230.js.map +1 -0
- package/dist/index231.js +5 -0
- package/dist/index231.js.map +1 -0
- package/dist/index232.js +298 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +5 -0
- package/dist/index233.js.map +1 -0
- package/dist/index234.js +5 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +120 -0
- package/dist/index235.js.map +1 -0
- package/dist/index236.js +109 -0
- package/dist/index236.js.map +1 -0
- package/dist/index237.js +5 -0
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +5 -0
- package/dist/index238.js.map +1 -0
- package/dist/index239.js +5 -0
- package/dist/index239.js.map +1 -0
- package/dist/index24.js +5 -0
- package/dist/index24.js.map +1 -0
- package/dist/index240.js +5 -0
- package/dist/index240.js.map +1 -0
- package/dist/index241.js +227 -0
- package/dist/index241.js.map +1 -0
- package/dist/index242.js +261 -0
- package/dist/index242.js.map +1 -0
- package/dist/index243.js +72 -0
- package/dist/index243.js.map +1 -0
- package/dist/index244.js +163 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +5 -0
- package/dist/index245.js.map +1 -0
- package/dist/index246.js +5 -0
- package/dist/index246.js.map +1 -0
- package/dist/index247.js +8 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +7 -0
- package/dist/index248.js.map +1 -0
- package/dist/index249.js +5 -0
- package/dist/index249.js.map +1 -0
- package/dist/index25.js +93 -0
- package/dist/index25.js.map +1 -0
- package/dist/index250.js +41 -0
- package/dist/index250.js.map +1 -0
- package/dist/index251.js +5 -0
- package/dist/index251.js.map +1 -0
- package/dist/index252.js +5 -0
- package/dist/index252.js.map +1 -0
- package/dist/index253.js +18 -0
- package/dist/index253.js.map +1 -0
- package/dist/index254.js +6 -0
- package/dist/index254.js.map +1 -0
- package/dist/index255.js +5 -0
- package/dist/index255.js.map +1 -0
- package/dist/index256.js +5 -0
- package/dist/index256.js.map +1 -0
- package/dist/index26.js +5 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.js +150 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.js +5 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.js +125 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.js +81 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +5 -0
- package/dist/index30.js.map +1 -0
- package/dist/index31.js +706 -0
- package/dist/index31.js.map +1 -0
- package/dist/index32.js +5 -0
- package/dist/index32.js.map +1 -0
- package/dist/index33.js +146 -0
- package/dist/index33.js.map +1 -0
- package/dist/index34.js +5 -0
- package/dist/index34.js.map +1 -0
- package/dist/index35.js +119 -0
- package/dist/index35.js.map +1 -0
- package/dist/index36.js +5 -0
- package/dist/index36.js.map +1 -0
- package/dist/index37.js +155 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +5 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +84 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +65 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +5 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +62 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +5 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +66 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +5 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +97 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +5 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +62 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +5 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +50 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +43 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +5 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +63 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +5 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +46 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +5 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +90 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +5 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +121 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +5 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +86 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +177 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +5 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +89 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +5 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +60 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +5 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +314 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +5 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +130 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +5 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +226 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +22 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +5 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +25 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +47 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +96 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +5 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +228 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +5 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +142 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +5 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +214 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +197 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +5 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +36 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +5 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +84 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +5 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +121 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +5 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +84 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +5 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +31 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +66 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +5 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +160 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +5 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +87 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +5 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +90 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +5 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +120 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +5 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +209 -0
- package/dist/index99.js.map +1 -0
- package/dist/{components → src/components}/BaseButton/BaseButton.vue.d.ts +2 -2
- package/dist/{components → src/components}/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +7 -7
- package/dist/{components → src/components}/BaseDialog/BaseDialog.vue.d.ts +2 -2
- package/dist/{components → src/components}/BaseRadioGroup/BaseRadioGroup.vue.d.ts +7 -7
- package/dist/{components → src/components}/BaseSelect/BaseSelect.vue.d.ts +16 -16
- package/dist/{components → src/components}/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +7 -7
- package/dist/{components → src/components}/BbChip/BbChip.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbDropdown/BbDropdown.vue.d.ts +2 -2
- package/dist/{components → src/components}/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbIntersection/BbIntersection.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/{components → src/components}/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/{components → src/components}/BbRadioGroup/BbRadioGroup.vue.d.ts +7 -7
- package/dist/{components → src/components}/BbRatio/BbRatio.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbSelect/BbSelect.vue.d.ts +16 -16
- package/dist/{components → src/components}/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
- package/dist/{components → src/components}/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbTab/BbTab.vue.d.ts +6 -6
- package/dist/{components → src/components}/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbTable/types.d.ts +1 -1
- package/dist/{components → src/components}/BbTooltip/BbTooltip.vue.d.ts +2 -2
- package/dist/{composables → src/composables}/useConfirm.d.ts +1 -1
- package/dist/{composables → src/composables}/useOptions.d.ts +1 -1
- package/dist/{composables → src/composables}/useToast.d.ts +1 -1
- package/dist/{composables → src/composables}/useWizard.d.ts +20 -32
- package/dist/style.css +1 -0
- package/package.json +3 -3
- package/dist/components/BbStep/BbStep.vue.d.ts +0 -143
- package/dist/components/HDAddressSelect.vue.d.ts +0 -89
- package/dist/{components → src/components}/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -0
- package/dist/{components → src/components}/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -1
- package/dist/{components → src/components}/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -1
- package/dist/{components → src/components}/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -0
- package/dist/{components → src/components}/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -0
- package/dist/{components → src/components}/BaseRadio/BaseRadio.vue.d.ts +0 -0
- package/dist/{components → src/components}/BaseRating/BaseRating.vue.d.ts +1 -1
- package/dist/{components → src/components}/BaseSlider/BaseSlider.vue.d.ts +2 -2
- package/dist/{components → src/components}/BaseSwitch/BaseSwitch.vue.d.ts +0 -0
- package/dist/{components → src/components}/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -6
- package/dist/{components → src/components}/BaseTag/BaseTag.vue.d.ts +1 -1
- package/dist/{components → src/components}/BaseTextInput/BaseTextInput.vue.d.ts +0 -0
- package/dist/{components → src/components}/BaseTextarea/BaseTextarea.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbButton/BbButton.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbCheckbox/BbCheckbox.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbConfirm/BbConfirm.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbDialog/BbDialog.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbDropdownButton/BbDropdownButton.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbHover/BbHover.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbNumberInput/BbNumberInput.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbProgress/BbProgress.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbRadio/BbRadio.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/{components → src/components}/BbSlider/BbSlider.vue.d.ts +2 -2
- package/dist/{components → src/components}/BbSwitch/BbSwitch.vue.d.ts +0 -0
- package/dist/{components → src/components}/BbSwitchGroup/BbSwitchGroup.vue.d.ts +6 -6
- package/dist/{components → src/components}/BbTag/BbTag.vue.d.ts +1 -1
- /package/dist/{components → src/components}/BbTextInput/BbTextInput.vue.d.ts +0 -0
- /package/dist/{components → src/components}/BbTextarea/BbTextarea.vue.d.ts +0 -0
- /package/dist/{components → src/components}/BbToast/BbToast.vue.d.ts +0 -0
- /package/dist/{components → src/components}/BbToast/BbToastMessage.vue.d.ts +0 -0
- /package/dist/{components → src/components}/BbTree/BbTree.vue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useBroadcastChannelInstance.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCountdown.d.ts +0 -0
- /package/dist/{composables → src/composables}/useId.d.ts +0 -0
- /package/dist/{composables → src/composables}/useItemText.d.ts +0 -0
- /package/dist/{composables → src/composables}/useItemValue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRoute.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRouter.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{types → src/types}/Classes.d.ts +0 -0
- /package/dist/{types → src/types}/CommonProps.d.ts +0 -0
- /package/dist/{types → src/types}/ExtractGenericFromComputedRef.d.ts +0 -0
- /package/dist/{types → src/types}/ExtractGenericFromRef.d.ts +0 -0
- /package/dist/{types → src/types}/NestedKeyOf.d.ts +0 -0
- /package/dist/{types → src/types}/Simplify.d.ts +0 -0
- /package/dist/{types → src/types}/VoidHtmlElements.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/add.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/booleanishToBoolean.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/capitalize.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/clamp.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/cloneDeep.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/curry.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/debounce.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/deburr.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/drop.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/empty.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/findInTree.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/findRight.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/findRightIndex.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/flattenTree.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/flow.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/get.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/groupBy.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/gt.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/head.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/identity.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/includes.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/indexBy.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/initial.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/isCssColor.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/isNil.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/isNotNil.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/last.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/lt.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/makeUrl.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/mapKeys.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/mapValues.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/matchesPropertyInsensitive.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/mean.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/merge.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/millisecondsTo.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/negate.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/noop.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/omit.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/overEvery.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/percentage.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/pick.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/pickBy.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/replace.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/replaceInTree.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/retry.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/roundToTheNearest.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/set.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/snakeCase.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/throttle.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/tryTo.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/wait.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/waitFor.d.ts +0 -0
- /package/dist/{utilities → src/utilities}/functions/when.d.ts +0 -0
package/dist/index29.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent as C, ref as b, computed as f, openBlock as l, createElementBlock as i, mergeProps as g, createElementVNode as r, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as h, renderSlot as x } from "vue";
|
|
2
|
+
import { booleanishToBoolean as M } from "./index219.js";
|
|
3
|
+
import { identity as F } from "./index204.js";
|
|
4
|
+
import { isCssColor as p } from "./index217.js";
|
|
5
|
+
import { isNotNil as T } from "./index124.js";
|
|
6
|
+
const H = { class: "bb-base-rating__inner-container" }, D = { class: "bb-base-rating__label-text" }, N = ["id", "autofocus", "checked", "disabled", "name", "value"], j = ["height", "width"], A = /* @__PURE__ */ r("path", {
|
|
7
|
+
d: "m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z",
|
|
8
|
+
"stroke-linecap": "round",
|
|
9
|
+
"stroke-linejoin": "round"
|
|
10
|
+
}, null, -1), S = [
|
|
11
|
+
A
|
|
12
|
+
], Q = /* @__PURE__ */ C({
|
|
13
|
+
__name: "BaseRating",
|
|
14
|
+
props: {
|
|
15
|
+
autofocus: {},
|
|
16
|
+
color: {},
|
|
17
|
+
disabled: { type: Boolean },
|
|
18
|
+
hasErrors: { type: Boolean },
|
|
19
|
+
id: {},
|
|
20
|
+
modelValue: {},
|
|
21
|
+
name: {},
|
|
22
|
+
readonly: {},
|
|
23
|
+
stars: { default: 5 },
|
|
24
|
+
size: { default: "md" }
|
|
25
|
+
},
|
|
26
|
+
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
27
|
+
setup(v, { emit: _ }) {
|
|
28
|
+
const t = v, n = _, c = b(), o = b(!1), k = {
|
|
29
|
+
onBlur: (e) => n("blur", e),
|
|
30
|
+
onChange: (e) => {
|
|
31
|
+
n("change", e), e.target instanceof HTMLInputElement && e.target.checked && n("update:modelValue", +e.target.value);
|
|
32
|
+
},
|
|
33
|
+
onClick: (e) => {
|
|
34
|
+
n("click", e), e.target instanceof HTMLInputElement && e.target.checked && +e.target.value === t.modelValue && n("update:modelValue", null);
|
|
35
|
+
},
|
|
36
|
+
onFocus: (e) => {
|
|
37
|
+
n("focus", e), o.value || (document.addEventListener("focusin", u, { passive: !0 }), document.addEventListener("click", d, { passive: !0 }), o.value = !0);
|
|
38
|
+
},
|
|
39
|
+
onInput: (e) => n("input", e),
|
|
40
|
+
onKeydown: (e) => n("keydown", e),
|
|
41
|
+
onMousedown: (e) => n("mousedown", e),
|
|
42
|
+
onMouseup: (e) => n("mouseup", e)
|
|
43
|
+
}, u = (e) => {
|
|
44
|
+
var s;
|
|
45
|
+
e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (n("inactive"), o.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", d)));
|
|
46
|
+
}, d = (e) => {
|
|
47
|
+
var s;
|
|
48
|
+
e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (n("inactive"), o.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", d)));
|
|
49
|
+
}, y = {
|
|
50
|
+
xs: 12,
|
|
51
|
+
sm: 16,
|
|
52
|
+
md: 24,
|
|
53
|
+
lg: 28,
|
|
54
|
+
xl: 36,
|
|
55
|
+
xxl: 40
|
|
56
|
+
}, w = f(() => {
|
|
57
|
+
let e;
|
|
58
|
+
return typeof t.size == "string" ? e = y[t.size] ?? parseInt(t.size, 10) : e = t.size, e;
|
|
59
|
+
}), z = f(() => new Array(t.stars).fill(0).map((e, s) => s + 1).map((e) => {
|
|
60
|
+
const s = t.id ? [t.id, e].filter(F).join("_") : void 0, a = e === t.modelValue, m = !!(t.modelValue && e <= t.modelValue), L = !!(t.disabled || T(t.readonly) && M(t.readonly));
|
|
61
|
+
return {
|
|
62
|
+
checked: a,
|
|
63
|
+
disabled: L,
|
|
64
|
+
highlighted: m,
|
|
65
|
+
id: s,
|
|
66
|
+
name: t.name,
|
|
67
|
+
size: w.value,
|
|
68
|
+
value: e
|
|
69
|
+
};
|
|
70
|
+
})), E = f(() => {
|
|
71
|
+
let e = {};
|
|
72
|
+
return t.color && p(t.color) && (e.color = t.color), {
|
|
73
|
+
class: {
|
|
74
|
+
"bb-base-rating": !0,
|
|
75
|
+
"bb-base-rating--has-value": t.modelValue,
|
|
76
|
+
"bb-base-rating--disabled": t.disabled,
|
|
77
|
+
"bb-base-rating--errors": t.hasErrors,
|
|
78
|
+
"bb-base-rating--readonly": t.readonly,
|
|
79
|
+
[`bb-base-rating--${t.color}`]: t.color && !p(t.color)
|
|
80
|
+
},
|
|
81
|
+
style: e
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
return (e, s) => (l(), i("span", g(E.value, {
|
|
85
|
+
ref_key: "container",
|
|
86
|
+
ref: c
|
|
87
|
+
}), [
|
|
88
|
+
r("span", H, [
|
|
89
|
+
(l(!0), i(I, null, V(z.value, (a, m) => (l(), i("label", {
|
|
90
|
+
key: a.value,
|
|
91
|
+
class: B(["bb-base-rating__option", { "bb-base-rating__option--highlighted": a.highlighted }])
|
|
92
|
+
}, [
|
|
93
|
+
r("span", D, h(a.value) + " stell" + h(a.value === 1 ? "a" : "e"), 1),
|
|
94
|
+
r("input", g({
|
|
95
|
+
id: a.id,
|
|
96
|
+
autofocus: e.autofocus && !m,
|
|
97
|
+
checked: a.checked,
|
|
98
|
+
disabled: a.disabled,
|
|
99
|
+
name: a.name,
|
|
100
|
+
type: "radio",
|
|
101
|
+
value: a.value
|
|
102
|
+
}, k), null, 16, N),
|
|
103
|
+
x(e.$slots, "icon", {
|
|
104
|
+
id: a.id,
|
|
105
|
+
checked: a.checked,
|
|
106
|
+
disabled: a.disabled,
|
|
107
|
+
size: a.size,
|
|
108
|
+
value: a.value
|
|
109
|
+
}, () => [
|
|
110
|
+
(l(), i("svg", {
|
|
111
|
+
height: a.size,
|
|
112
|
+
viewBox: "0 0 24 24",
|
|
113
|
+
width: a.size,
|
|
114
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
115
|
+
}, S, 8, j))
|
|
116
|
+
])
|
|
117
|
+
], 2))), 128))
|
|
118
|
+
])
|
|
119
|
+
], 16));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
Q as default
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=index29.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index29.js","sources":["../src/components/BaseRating/BaseRating.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, mergeProps as _mergeProps, renderSlot as _renderSlot, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-rating__inner-container\" }\nconst _hoisted_2 = { class: \"bb-base-rating__label-text\" }\nconst _hoisted_3 = [\"id\", \"autofocus\", \"checked\", \"disabled\", \"name\", \"value\"]\nconst _hoisted_4 = [\"height\", \"width\"]\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n}, null, -1)\nconst _hoisted_6 = [\n _hoisted_5\n]\n\nimport { booleanishToBoolean } from '@/utilities/functions/booleanishToBoolean';\nimport {\n\tcomputed,\n\tref,\n\ttype InputHTMLAttributes,\n\ttype HTMLAttributes,\n} from 'vue';\nimport { identity } from '@/utilities/functions/identity';\nimport { isCssColor } from '@/utilities/functions/isCssColor';\nimport { isNotNil } from '@/utilities/functions/isNotNil';\nimport type { Size, BbIconProps } from '../BbIcon/BbIcon.vue';\n\nexport type BaseRatingProps = {\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * 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\t/**\n\t * Used by v-model\n\t */\n\tmodelValue: null | number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname: Exclude<InputHTMLAttributes['name'], undefined>;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\t/**\n\t * Maximum number of stars to render and maximum value of the component\n\t */\n\tstars?: number;\n} & Pick<BbIconProps, 'size'>;\n\ntype Option = {\n\tchecked: boolean;\n\n\tdisabled: boolean;\n\n\thighlighted: boolean;\n\n\tid?: string;\n\n\tname: string;\n\n\tsize: number;\n\n\tvalue: number;\n};\n\nexport type BaseRatingEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\n\t(e: 'change', event: Event): void;\n\n\t(e: 'click', event: MouseEvent): void;\n\n\t(e: 'focus', event: FocusEvent): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'input', event: Event): void;\n\n\t(e: 'keydown', event: KeyboardEvent): void;\n\n\t(e: 'mousedown', event: MouseEvent): void;\n\n\t(e: 'mouseup', event: MouseEvent): void;\n\n\t(e: 'update:modelValue', value: number | null): void;\n};\n\nexport type BaseRatingSlots = {\n\ticon?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\tsize: number;\n\t\tvalue: number;\n\t}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseRating',\n props: {\n autofocus: {},\n color: {},\n disabled: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n modelValue: {},\n name: {},\n readonly: {},\n stars: { default: 5 },\n size: { default: 'md' }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\n\n\nconst emit = __emit;\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst onInputChange = (event: Event) => {\n\temit('change', event);\n\tif (event.target instanceof HTMLInputElement) {\n\t\tif (event.target.checked) {\n\t\t\temit('update:modelValue', +event.target.value);\n\t\t}\n\t}\n};\n\nconst onInputClick = (event: MouseEvent) => {\n\temit('click', event);\n\tif (event.target instanceof HTMLInputElement) {\n\t\tif (event.target.checked) {\n\t\t\tif (+event.target.value === props.modelValue) {\n\t\t\t\temit('update:modelValue', null);\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst onInputFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tif (!active.value) {\n\t\tdocument.addEventListener('focusin', onDocumentFocus, { passive: true });\n\t\tdocument.addEventListener('click', onDocumentClick, { passive: true });\n\t\tactive.value = true;\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: onInputChange,\n\tonClick: onInputClick,\n\tonFocus: onInputFocus,\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst sizeMap: Size = {\n\txs: 12,\n\tsm: 16,\n\tmd: 24,\n\tlg: 28,\n\txl: 36,\n\txxl: 40,\n};\n\nconst size = computed(() => {\n\tlet dimension: number;\n\tif (typeof props.size === 'string') {\n\t\tdimension = sizeMap[props.size as keyof Size] ?? parseInt(props.size, 10);\n\t} else {\n\t\tdimension = props.size;\n\t}\n\treturn dimension;\n});\n\nconst options = computed(() => {\n\treturn new Array(props.stars)\n\t\t.fill(0)\n\t\t.map((_, index) => index + 1)\n\t\t.map((number): Option => {\n\t\t\tconst id = props.id\n\t\t\t\t? [props.id, number].filter(identity).join('_')\n\t\t\t\t: undefined;\n\n\t\t\tconst checked = number === props.modelValue;\n\t\t\tconst highlighted = !!(props.modelValue && number <= props.modelValue);\n\n\t\t\tconst disabled = !!(\n\t\t\t\tprops.disabled ||\n\t\t\t\t(isNotNil(props.readonly) ? booleanishToBoolean(props.readonly) : false)\n\t\t\t);\n\n\t\t\treturn {\n\t\t\t\tchecked,\n\t\t\t\tdisabled,\n\t\t\t\thighlighted,\n\t\t\t\tid,\n\t\t\t\tname: props.name,\n\t\t\t\tsize: size.value,\n\t\t\t\tvalue: number,\n\t\t\t};\n\t\t});\n});\n\nconst outerContainerAttributes = computed(() => {\n\tlet style: { [key: string]: string } = {};\n\tif (props.color && isCssColor(props.color)) {\n\t\tstyle.color = props.color;\n\t}\n\treturn {\n\t\tclass: {\n\t\t\t'bb-base-rating': true,\n\t\t\t'bb-base-rating--has-value': props.modelValue,\n\t\t\t'bb-base-rating--disabled': props.disabled,\n\t\t\t'bb-base-rating--errors': props.hasErrors,\n\t\t\t'bb-base-rating--readonly': props.readonly,\n\t\t\t[`bb-base-rating--${props.color}`]:\n\t\t\t\tprops.color && !isCssColor(props.color),\n\t\t},\n\t\tstyle,\n\t};\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps(outerContainerAttributes.value, {\n ref_key: \"container\",\n ref: container\n }), [\n _createElementVNode(\"span\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(options.value, (option, index) => {\n return (_openBlock(), _createElementBlock(\"label\", {\n key: option.value,\n class: _normalizeClass([\"bb-base-rating__option\", { 'bb-base-rating__option--highlighted': option.highlighted }])\n }, [\n _createElementVNode(\"span\", _hoisted_2, _toDisplayString(option.value) + \" stell\" + _toDisplayString(option.value === 1 ? 'a' : 'e'), 1),\n _createElementVNode(\"input\", _mergeProps({\n id: option.id,\n autofocus: _ctx.autofocus && !index,\n checked: option.checked,\n disabled: option.disabled,\n name: option.name,\n type: \"radio\",\n value: option.value\n }, eventListeners), null, 16, _hoisted_3),\n _renderSlot(_ctx.$slots, \"icon\", {\n id: option.id,\n checked: option.checked,\n disabled: option.disabled,\n size: option.size,\n value: option.value\n }, () => [\n (_openBlock(), _createElementBlock(\"svg\", {\n height: option.size,\n viewBox: \"0 0 24 24\",\n width: option.size,\n xmlns: \"http://www.w3.org/2000/svg\"\n }, _hoisted_6, 8, _hoisted_4))\n ])\n ], 2))\n }), 128))\n ])\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_sfc_main","_defineComponent","__props","__emit","props","emit","container","ref","active","eventListeners","event","onDocumentFocus","onDocumentClick","_a","sizeMap","size","computed","dimension","options","_","index","number","id","identity","checked","highlighted","disabled","isNotNil","booleanishToBoolean","outerContainerAttributes","style","isCssColor","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_Fragment","_renderList","option","_normalizeClass","_toDisplayString","_renderSlot"],"mappings":";;;;;AAGA,MAAMA,IAAa,EAAE,OAAO,qCACtBC,IAAa,EAAE,OAAO,gCACtBC,IAAa,CAAC,MAAM,aAAa,WAAW,YAAY,QAAQ,OAAO,GACvEC,IAAa,CAAC,UAAU,OAAO,GAC/BC,s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AAA,UACjD,KAAKK,EAAO;AAAA,UACZ,OAAOC,EAAgB,CAAC,0BAA0B,EAAE,uCAAuCD,EAAO,YAAY,CAAC,CAAC;AAAA,QAAA,GAC/G;AAAA,UACDH,EAAoB,QAAQ1C,GAAY+C,EAAiBF,EAAO,KAAK,IAAI,WAAWE,EAAiBF,EAAO,UAAU,IAAI,MAAM,GAAG,GAAG,CAAC;AAAA,UACvIH,EAAoB,SAASD,EAAY;AAAA,YACvC,IAAII,EAAO;AAAA,YACX,WAAWR,EAAK,aAAa,CAACZ;AAAA,YAC9B,SAASoB,EAAO;AAAA,YAChB,UAAUA,EAAO;AAAA,YACjB,MAAMA,EAAO;AAAA,YACb,MAAM;AAAA,YACN,OAAOA,EAAO;AAAA,UACb,GAAA/B,CAAc,GAAG,MAAM,IAAIb,CAAU;AAAA,UACxC+C,EAAYX,EAAK,QAAQ,QAAQ;AAAA,YAC/B,IAAIQ,EAAO;AAAA,YACX,SAASA,EAAO;AAAA,YAChB,UAAUA,EAAO;AAAA,YACjB,MAAMA,EAAO;AAAA,YACb,OAAOA,EAAO;AAAA,UAAA,GACb,MAAM;AAAA,aACNN,EAAc,GAAAC,EAAoB,OAAO;AAAA,cACxC,QAAQK,EAAO;AAAA,cACf,SAAS;AAAA,cACT,OAAOA,EAAO;AAAA,cACd,OAAO;AAAA,YAAA,GACNzC,GAAY,GAAGF,CAAU;AAAA,UAAA,CAC7B;AAAA,WACA,CAAC,EACL,GAAG,GAAG;AAAA,MAAA,CACR;AAAA,OACA,EAAE;AAAA,EAEP;AAEA,CAAC;"}
|
package/dist/index3.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ref as u, watch as c, reactive as x, computed as f } from "vue";
|
|
2
|
+
import { isNil as l } from "./index120.js";
|
|
3
|
+
let r = [];
|
|
4
|
+
const i = u(null);
|
|
5
|
+
c(
|
|
6
|
+
() => i.value,
|
|
7
|
+
() => {
|
|
8
|
+
typeof i.value == "boolean" && (r.forEach((s) => s()), r = []);
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
const o = {
|
|
12
|
+
actions: !0,
|
|
13
|
+
description: "",
|
|
14
|
+
loading: !1,
|
|
15
|
+
no: !0,
|
|
16
|
+
noText: "",
|
|
17
|
+
open: !1,
|
|
18
|
+
size: "sm",
|
|
19
|
+
text: "",
|
|
20
|
+
theme: "default",
|
|
21
|
+
title: "",
|
|
22
|
+
yes: !0,
|
|
23
|
+
yesText: ""
|
|
24
|
+
}, d = {
|
|
25
|
+
actions: !0,
|
|
26
|
+
description: "",
|
|
27
|
+
no: !0,
|
|
28
|
+
noText: "Annulla",
|
|
29
|
+
text: "",
|
|
30
|
+
theme: "default",
|
|
31
|
+
title: "",
|
|
32
|
+
yes: !0,
|
|
33
|
+
yesText: "OK"
|
|
34
|
+
}, e = x({
|
|
35
|
+
...o
|
|
36
|
+
}), m = f(() => [
|
|
37
|
+
{
|
|
38
|
+
text: e.noText,
|
|
39
|
+
handler: () => {
|
|
40
|
+
i.value = !1;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
text: e.yesText,
|
|
45
|
+
handler: () => {
|
|
46
|
+
i.value = !0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]), y = () => ({
|
|
50
|
+
/**
|
|
51
|
+
* The confirm function. It accepts a set of options defining
|
|
52
|
+
* the behavior of the modal and returns `Promise<boolean>`
|
|
53
|
+
* when the user accepts, declines, or ignores the modal.
|
|
54
|
+
*/
|
|
55
|
+
confirm: (s) => {
|
|
56
|
+
i.value = null;
|
|
57
|
+
const n = { ...d, ...s }, t = { ...o };
|
|
58
|
+
return t.title = n.title, t.text = n.text, n.description && (t.description = n.description), n.noText && (t.noText = n.noText), n.yesText && (t.yesText = n.yesText), n.size && (t.size = n.size), n.theme && (t.theme = n.theme), l(n.yes) || (t.yes = !!n.yes), l(n.no) || (t.no = !!n.no), l(n.actions) || (t.actions = !!n.actions), e.actions = t.actions, e.description = t.description, e.no = t.no, e.noText = t.noText, e.open = !0, e.size = t.size, e.text = t.text, e.theme = t.theme, e.title = t.title, e.yes = t.yes, e.yesText = t.yesText, new Promise((a) => {
|
|
59
|
+
r.push(() => a(i.value));
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* Sets the state of the confirm to loading and displays a spinner.
|
|
64
|
+
*/
|
|
65
|
+
setLoading: (s = !0) => {
|
|
66
|
+
e.loading = s;
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Closes the confirmation modal. It is a manual operation
|
|
70
|
+
* so you can update the state while the modal is still open.
|
|
71
|
+
*/
|
|
72
|
+
close: () => (e.description = o.description, e.loading = o.loading, e.noText = o.noText, e.open = o.open, e.text = o.text, e.theme = o.theme, e.title = o.title, e.yesText = o.yesText, i.value = !1, Promise.resolve().then(() => {
|
|
73
|
+
i.value = null;
|
|
74
|
+
}))
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
m as actions,
|
|
78
|
+
e as state,
|
|
79
|
+
y as useConfirm
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=index3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index3.js","sources":["../src/composables/useConfirm.ts"],"sourcesContent":["import { computed, reactive, ref, watch } from 'vue';\nimport { isNil } from '@/utilities/functions/isNil';\nimport type { Sizes } from '@/components/BaseDialog/BaseDialog.vue';\n\ntype State = {\n\tdescription: string;\n\ttheme: string;\n\tloading: boolean;\n\tnoText: string;\n\topen: boolean;\n\ttext: string;\n\ttitle: string;\n\tyesText: string;\n\tyes: boolean;\n\tno: boolean;\n\tactions: boolean;\n\tsize: keyof Sizes;\n};\n\ntype UserOptions = {\n\t/**\n\t * Boolean that sets whether to display or hide the buttons.\n\t * Confirms without actions can only be dismissed by clicking on the overlay or the close button.\n\t */\n\tactions?: State['actions'];\n\t/**\n\t * Description of the content of the modal for accessibility purposes.\n\t */\n\tdescription?: State['description'];\n\t/**\n\t * Boolean that defines whether to display or hide the \"No\" action.\n\t */\n\tno?: State['no'];\n\t/**\n\t * Text content of the \"No\" action.\n\t */\n\tnoText?: State['noText'];\n\t/**\n\t * Text content of the modal.\n\t */\n\ttext: State['text'];\n\t/**\n\t * The name of the theme it applies a css class to BbConfirm for styling.\n\t */\n\ttheme?: State['theme'];\n\t/**\n\t * Tittle of the modal\n\t */\n\ttitle: State['title'];\n\t/**\n\t * Boolean that defines whether to display or hide the \"Yes\" action.\n\t */\n\tyes?: State['yes'];\n\t/**\n\t * Text content of the \"Yes\" action.\n\t */\n\tyesText?: State['yesText'];\n\t/**\n\t * Size of the confirm modal. Use any sizes valid for `BbModal`.\n\t */\n\tsize?: State['size'];\n};\n\n// Stash all instances of current dialogs\nlet subscribers: ((...args: any[]) => any)[] = [];\n\nconst value = ref<boolean | null>(null);\n\nwatch(\n\t() => value.value,\n\t() => {\n\t\tif (typeof value.value === 'boolean') {\n\t\t\t// Every time a dialog is resolved resolve all dialogs\n\t\t\tsubscribers.forEach((fn) => fn());\n\t\t\tsubscribers = [];\n\t\t}\n\t}\n);\n\nconst defaultState: State = {\n\tactions: true,\n\tdescription: '',\n\tloading: false,\n\tno: true,\n\tnoText: '',\n\topen: false,\n\tsize: 'sm',\n\ttext: '',\n\ttheme: 'default',\n\ttitle: '',\n\tyes: true,\n\tyesText: '',\n};\nconst defaultOption: UserOptions = {\n\tactions: true,\n\tdescription: '',\n\tno: true,\n\tnoText: 'Annulla',\n\ttext: '',\n\ttheme: 'default',\n\ttitle: '',\n\tyes: true,\n\tyesText: 'OK',\n};\n\nexport const state = reactive<State>({\n\t...defaultState,\n});\n\nexport const actions = computed(() => [\n\t{\n\t\ttext: state.noText,\n\t\thandler: () => {\n\t\t\tvalue.value = false;\n\t\t},\n\t},\n\t{\n\t\ttext: state.yesText,\n\t\thandler: () => {\n\t\t\tvalue.value = true;\n\t\t},\n\t},\n]);\n\nexport const useConfirm = () => {\n\treturn {\n\t\t/**\n\t\t * The confirm function. It accepts a set of options defining\n\t\t * the behavior of the modal and returns `Promise<boolean>`\n\t\t * when the user accepts, declines, or ignores the modal.\n\t\t */\n\t\tconfirm: (options: UserOptions) => {\n\t\t\tvalue.value = null;\n\t\t\tconst newOptions = { ...defaultOption, ...options };\n\t\t\tconst newState = { ...defaultState };\n\t\t\tnewState.title = newOptions.title;\n\t\t\tnewState.text = newOptions.text;\n\t\t\tif (newOptions.description) newState.description = newOptions.description;\n\t\t\tif (newOptions.noText) newState.noText = newOptions.noText;\n\t\t\tif (newOptions.yesText) newState.yesText = newOptions.yesText;\n\t\t\tif (newOptions.size) newState.size = newOptions.size;\n\t\t\tif (newOptions.theme) newState.theme = newOptions.theme;\n\t\t\tif (!isNil(newOptions.yes)) newState.yes = !!newOptions.yes;\n\t\t\tif (!isNil(newOptions.no)) newState.no = !!newOptions.no;\n\t\t\tif (!isNil(newOptions.actions)) newState.actions = !!newOptions.actions;\n\n\t\t\tstate.actions = newState.actions;\n\t\t\tstate.description = newState.description;\n\t\t\tstate.no = newState.no;\n\t\t\tstate.noText = newState.noText;\n\t\t\tstate.open = true;\n\t\t\tstate.size = newState.size;\n\t\t\tstate.text = newState.text;\n\t\t\tstate.theme = newState.theme;\n\t\t\tstate.title = newState.title;\n\t\t\tstate.yes = newState.yes;\n\t\t\tstate.yesText = newState.yesText;\n\n\t\t\treturn new Promise<boolean>((resolve) => {\n\t\t\t\tsubscribers.push(() => resolve(value.value as boolean));\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Sets the state of the confirm to loading and displays a spinner.\n\t\t */\n\t\tsetLoading: (value: boolean = true) => {\n\t\t\tstate.loading = value;\n\t\t},\n\t\t/**\n\t\t * Closes the confirmation modal. It is a manual operation\n\t\t * so you can update the state while the modal is still open.\n\t\t */\n\t\tclose: () => {\n\t\t\tstate.description = defaultState.description;\n\t\t\tstate.loading = defaultState.loading;\n\t\t\tstate.noText = defaultState.noText;\n\t\t\tstate.open = defaultState.open;\n\t\t\tstate.text = defaultState.text;\n\t\t\tstate.theme = defaultState.theme;\n\t\t\tstate.title = defaultState.title;\n\t\t\tstate.yesText = defaultState.yesText;\n\t\t\tvalue.value = false;\n\t\t\treturn Promise.resolve().then(() => {\n\t\t\t\tvalue.value = null;\n\t\t\t});\n\t\t},\n\t};\n};\n"],"names":["subscribers","value","ref","watch","fn","defaultState","defaultOption","state","reactive","actions","computed","useConfirm","options","newOptions","newState","isNil","resolve"],"mappings":";;AAgEA,IAAIA,IAA2C,CAAA;AAE/C,MAAMC,IAAQC,EAAoB,IAAI;AAEtCC;AAAA,EACC,MAAMF,EAAM;AAAA,EACZ,MAAM;AACD,IAAA,OAAOA,EAAM,SAAU,cAE1BD,EAAY,QAAQ,CAACI,MAAOA,EAAI,CAAA,GAChCJ,IAAc,CAAA;AAAA,EAEhB;AACD;AAEA,MAAMK,IAAsB;AAAA,EAC3B,SAAS;AAAA,EACT,aAAa;AAAA,EACb,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,KAAK;AAAA,EACL,SAAS;AACV,GACMC,IAA6B;AAAA,EAClC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,KAAK;AAAA,EACL,SAAS;AACV,GAEaC,IAAQC,EAAgB;AAAA,EACpC,GAAGH;AACJ,CAAC,GAEYI,IAAUC,EAAS,MAAM;AAAA,EACrC;AAAA,IACC,MAAMH,EAAM;AAAA,IACZ,SAAS,MAAM;AACd,MAAAN,EAAM,QAAQ;AAAA,IACf;AAAA,EACD;AAAA,EACA;AAAA,IACC,MAAMM,EAAM;AAAA,IACZ,SAAS,MAAM;AACd,MAAAN,EAAM,QAAQ;AAAA,IACf;AAAA,EACD;AACD,CAAC,GAEYU,IAAa,OAClB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