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/index170.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index170.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index171.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index171.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index172.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index172.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index173.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index173.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index174.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index174.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index175.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index175.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index176.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index176.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index177.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index177.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index178.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index178.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index179.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index179.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index18.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index180.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index180.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index181.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index181.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index182.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index182.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index183.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index183.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index184.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index184.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index185.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index185.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index186.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index186.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index187.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index187.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index188.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index188.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index189.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index189.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index19.js
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { defineComponent as J, ref as o, useAttrs as Q, computed as h, onMounted as X, onBeforeUnmount as E, watchPostEffect as Y, openBlock as _, createBlock as Z, Teleport as ee, createElementVNode as l, mergeProps as N, createElementBlock as B, renderSlot as i, createTextVNode as te, toDisplayString as V, createCommentVNode as D, nextTick as T } from "vue";
|
|
2
|
+
import { throttle as oe } from "./index197.js";
|
|
3
|
+
import { useFocusTrap as le } from "./index198.js";
|
|
4
|
+
import { useId as A } from "./index7.js";
|
|
5
|
+
import { wait as L } from "./index122.js";
|
|
6
|
+
import { waitFor as ae } from "./index199.js";
|
|
7
|
+
const se = { class: "bb-base-dialog-close" }, ne = { class: "bb-base-dialog-close__content" }, ie = { class: "bb-base-dialog-close__label" }, re = /* @__PURE__ */ l("span", { class: "bb-base-dialog-close__icon" }, [
|
|
8
|
+
/* @__PURE__ */ l("svg", {
|
|
9
|
+
"aria-hidden": "true",
|
|
10
|
+
fill: "none",
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, [
|
|
14
|
+
/* @__PURE__ */ l("path", {
|
|
15
|
+
d: "M23 23L1 1M23 1L1 23",
|
|
16
|
+
stroke: "currentColor",
|
|
17
|
+
"stroke-linecap": "round",
|
|
18
|
+
"stroke-width": "2"
|
|
19
|
+
})
|
|
20
|
+
])
|
|
21
|
+
], -1), de = /* @__PURE__ */ l("div", { style: { flex: "10000 10000 0%" } }, null, -1), me = /* @__PURE__ */ J({
|
|
22
|
+
__name: "BaseDialog",
|
|
23
|
+
props: {
|
|
24
|
+
closeLabel: { default: "Chiudi modale" },
|
|
25
|
+
compact: { type: Boolean },
|
|
26
|
+
disabled: { type: Boolean },
|
|
27
|
+
eager: { type: Boolean },
|
|
28
|
+
panelClasses: { default: () => [] },
|
|
29
|
+
overlayClasses: { default: () => [] },
|
|
30
|
+
persistent: { type: Boolean },
|
|
31
|
+
showClose: { type: Boolean, default: !0 },
|
|
32
|
+
title: {},
|
|
33
|
+
transition: { default: "fade" },
|
|
34
|
+
transitionDuration: { default: 350 },
|
|
35
|
+
size: { default: "sm" },
|
|
36
|
+
description: {},
|
|
37
|
+
fullscreen: { type: Boolean },
|
|
38
|
+
modelValue: { type: [Boolean, null] }
|
|
39
|
+
},
|
|
40
|
+
emits: ["shown", "hidden", "update:modelValue"],
|
|
41
|
+
setup(W, { emit: R }) {
|
|
42
|
+
const t = W, r = R, w = `title_${A().id.value}`, k = `description_${A().id.value}`, p = o(null), m = o(null), $ = o(null), y = o(null), d = o(null), a = o(null), u = o(null), I = o(null), { activate: F, deactivate: z } = le($, {
|
|
43
|
+
clickOutsideDeactivates: !0,
|
|
44
|
+
/* On esc deactivate the trap, return focus and then close the modal */
|
|
45
|
+
escapeDeactivates: () => (T(() => {
|
|
46
|
+
r("update:modelValue", !1);
|
|
47
|
+
}), !0)
|
|
48
|
+
}), P = Q(), H = h(() => t.closeLabel);
|
|
49
|
+
X(async () => {
|
|
50
|
+
a.value && (p.value = new MutationObserver(f), p.value.observe(a.value, { childList: !0, subtree: !0 })), window.addEventListener("resize", f);
|
|
51
|
+
}), E(() => {
|
|
52
|
+
window.removeEventListener("resize", f);
|
|
53
|
+
});
|
|
54
|
+
const C = o(!1), c = o(!1), M = o(!0), b = o(!1), v = o(t.eager || t.modelValue), O = h(() => c.value || b.value);
|
|
55
|
+
E(() => {
|
|
56
|
+
if (t.modelValue) {
|
|
57
|
+
let e = Number(
|
|
58
|
+
document.body.dataset.openModals ?? "0"
|
|
59
|
+
);
|
|
60
|
+
e--, document.body.dataset.openModals = e.toString(), e || (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const G = async () => {
|
|
64
|
+
if (t.modelValue) {
|
|
65
|
+
v.value || (v.value = !0, await ae(() => !!a.value), await T(), a.value && (p.value = new MutationObserver(f), p.value.observe(a.value, { childList: !0, subtree: !0 }))), M.value = !1, b.value = !1, c.value = !0;
|
|
66
|
+
let e = Number(
|
|
67
|
+
document.body.dataset.openModals ?? "0"
|
|
68
|
+
);
|
|
69
|
+
e++, document.body.dataset.openModals = e.toString();
|
|
70
|
+
const s = window.innerWidth - document.documentElement.clientWidth;
|
|
71
|
+
document.body.style.overflow = "hidden", document.body.style.paddingRight = `${s}px`, await L(t.transitionDuration), c.value = !1, C.value = !0, r("shown"), F();
|
|
72
|
+
} else {
|
|
73
|
+
z(), c.value = !1, C.value = !1, b.value = !0, await L(t.transitionDuration);
|
|
74
|
+
let e = Number(
|
|
75
|
+
document.body.dataset.openModals ?? "0"
|
|
76
|
+
);
|
|
77
|
+
e--, document.body.dataset.openModals = e.toString(), e || (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px"), b.value = !1, M.value = !0, r("hidden");
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
Y(() => {
|
|
81
|
+
!t.modelValue && !v.value || G();
|
|
82
|
+
});
|
|
83
|
+
const g = (e) => {
|
|
84
|
+
e.target === m.value && e.preventDefault();
|
|
85
|
+
}, K = (e) => {
|
|
86
|
+
t.disabled || O.value || m.value && e.target === m.value && (t.persistent || r("update:modelValue", !1));
|
|
87
|
+
}, S = () => {
|
|
88
|
+
t.disabled || O.value || (z(), r("update:modelValue", !1));
|
|
89
|
+
}, U = h(() => {
|
|
90
|
+
const e = [
|
|
91
|
+
{
|
|
92
|
+
"bb-base-dialog bb-base-dialog__overlay": !0,
|
|
93
|
+
"bb-base-dialog--fullscreen": t.fullscreen,
|
|
94
|
+
"bb-base-dialog--open": C.value,
|
|
95
|
+
"bb-base-dialog--opening": c.value,
|
|
96
|
+
"bb-base-dialog--closed": M.value,
|
|
97
|
+
"bb-base-dialog--closing": b.value,
|
|
98
|
+
[`bb-base-dialog--transition-${t.transition}`]: !0
|
|
99
|
+
},
|
|
100
|
+
t.overlayClasses
|
|
101
|
+
].flat(), s = {
|
|
102
|
+
onClick: K,
|
|
103
|
+
onScroll: g,
|
|
104
|
+
onTouchmove: g,
|
|
105
|
+
onWheel: g,
|
|
106
|
+
onKeydown: g
|
|
107
|
+
}, n = {
|
|
108
|
+
transitionDuration: t.transitionDuration / 1e3 + "s"
|
|
109
|
+
};
|
|
110
|
+
return {
|
|
111
|
+
class: e,
|
|
112
|
+
style: n,
|
|
113
|
+
...s,
|
|
114
|
+
...P
|
|
115
|
+
};
|
|
116
|
+
}), j = h(() => {
|
|
117
|
+
const e = [
|
|
118
|
+
{
|
|
119
|
+
"bb-base-dialog__panel": !0,
|
|
120
|
+
"bb-base-dialog__panel--compact": t.compact
|
|
121
|
+
},
|
|
122
|
+
t.panelClasses
|
|
123
|
+
].flat(), s = {
|
|
124
|
+
role: "dialog",
|
|
125
|
+
"aria-modal": !0
|
|
126
|
+
};
|
|
127
|
+
v.value && (s["aria-labelledby"] = w, t.description && (s["aria-describedby"] = k));
|
|
128
|
+
let n;
|
|
129
|
+
const x = {
|
|
130
|
+
sm: 384,
|
|
131
|
+
md: 652,
|
|
132
|
+
lg: 896
|
|
133
|
+
};
|
|
134
|
+
t.fullscreen ? n = "100%" : typeof t.size == "number" ? n = t.size + "px" : t.size in x ? n = x[t.size] + "px" : n = t.size + "px";
|
|
135
|
+
const q = {
|
|
136
|
+
maxWidth: n,
|
|
137
|
+
transitionDuration: t.transitionDuration / 1e3 + "s"
|
|
138
|
+
};
|
|
139
|
+
return {
|
|
140
|
+
class: e,
|
|
141
|
+
style: q,
|
|
142
|
+
...s
|
|
143
|
+
};
|
|
144
|
+
}), f = oe(async () => {
|
|
145
|
+
if (t.fullscreen) {
|
|
146
|
+
I.value = window.innerHeight;
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (d.value && a.value && u.value) {
|
|
150
|
+
const e = d.value.scrollHeight + a.value.scrollHeight + u.value.scrollHeight + 2;
|
|
151
|
+
if (y.value && (y.value.style.height = "0px", y.value.style.height = `${e + 10}px`, await L(30), d.value && a.value && u.value)) {
|
|
152
|
+
const s = d.value.scrollHeight + a.value.scrollHeight + u.value.scrollHeight + 20;
|
|
153
|
+
e !== s && f();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}, 200);
|
|
157
|
+
return (e, s) => (_(), Z(ee, { to: "body" }, [
|
|
158
|
+
l("div", N(U.value, {
|
|
159
|
+
ref_key: "overlay",
|
|
160
|
+
ref: m
|
|
161
|
+
}), [
|
|
162
|
+
l("div", N(j.value, {
|
|
163
|
+
ref_key: "panel",
|
|
164
|
+
ref: $
|
|
165
|
+
}), [
|
|
166
|
+
v.value ? (_(), B("div", {
|
|
167
|
+
key: 0,
|
|
168
|
+
ref_key: "content",
|
|
169
|
+
ref: y,
|
|
170
|
+
class: "bb-base-dialog__content"
|
|
171
|
+
}, [
|
|
172
|
+
l("div", {
|
|
173
|
+
ref_key: "header",
|
|
174
|
+
ref: d,
|
|
175
|
+
class: "bb-base-dialog__header"
|
|
176
|
+
}, [
|
|
177
|
+
i(e.$slots, "header", {
|
|
178
|
+
close: S,
|
|
179
|
+
title: e.title,
|
|
180
|
+
titleId: w
|
|
181
|
+
}, () => [
|
|
182
|
+
l("span", {
|
|
183
|
+
id: w,
|
|
184
|
+
class: "bb-base-dialog__title"
|
|
185
|
+
}, [
|
|
186
|
+
i(e.$slots, "title", { text: e.title }, () => [
|
|
187
|
+
te(V(e.title), 1)
|
|
188
|
+
])
|
|
189
|
+
]),
|
|
190
|
+
l("span", se, [
|
|
191
|
+
e.showClose ? (_(), B("button", {
|
|
192
|
+
key: 0,
|
|
193
|
+
type: "button",
|
|
194
|
+
onClick: S
|
|
195
|
+
}, [
|
|
196
|
+
i(e.$slots, "close", { text: H.value }, () => [
|
|
197
|
+
l("span", ne, [
|
|
198
|
+
l("span", ie, V(H.value), 1),
|
|
199
|
+
re
|
|
200
|
+
])
|
|
201
|
+
])
|
|
202
|
+
])) : D("", !0)
|
|
203
|
+
])
|
|
204
|
+
])
|
|
205
|
+
], 512),
|
|
206
|
+
l("div", {
|
|
207
|
+
ref_key: "body",
|
|
208
|
+
ref: a,
|
|
209
|
+
class: "bb-base-dialog__body"
|
|
210
|
+
}, [
|
|
211
|
+
i(e.$slots, "description", {
|
|
212
|
+
descriptionId: k,
|
|
213
|
+
text: e.description
|
|
214
|
+
}, () => [
|
|
215
|
+
e.description ? (_(), B("div", {
|
|
216
|
+
key: 0,
|
|
217
|
+
id: k,
|
|
218
|
+
class: "bb-base-dialog__description"
|
|
219
|
+
}, V(e.description), 1)) : D("", !0)
|
|
220
|
+
]),
|
|
221
|
+
i(e.$slots, "default")
|
|
222
|
+
], 512),
|
|
223
|
+
de,
|
|
224
|
+
l("div", {
|
|
225
|
+
ref_key: "footer",
|
|
226
|
+
ref: u,
|
|
227
|
+
class: "bb-base-dialog__footer"
|
|
228
|
+
}, [
|
|
229
|
+
i(e.$slots, "footer")
|
|
230
|
+
], 512)
|
|
231
|
+
], 512)) : D("", !0)
|
|
232
|
+
], 16)
|
|
233
|
+
], 16)
|
|
234
|
+
]));
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
export {
|
|
238
|
+
me as default
|
|
239
|
+
};
|
|
240
|
+
//# sourceMappingURL=index19.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index19.js","sources":["../src/components/BaseDialog/BaseDialog.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, Teleport as _Teleport, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-base-dialog-close\" }\nconst _hoisted_2 = { class: \"bb-base-dialog-close__content\" }\nconst _hoisted_3 = { class: \"bb-base-dialog-close__label\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bb-base-dialog-close__icon\" }, [\n /*#__PURE__*/_createElementVNode(\"svg\", {\n \"aria-hidden\": \"true\",\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-linecap\": \"round\",\n \"stroke-width\": \"2\"\n })\n ])\n], -1)\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex\":\"10000 10000 0%\"} }, null, -1)\n\nimport {\n\tcomputed,\n\tonBeforeUnmount,\n\tonMounted,\n\tref,\n\tuseAttrs,\n\twatch,\n\tnextTick,\n\twatchPostEffect,\n} from 'vue';\nimport { throttle } from '@/utilities/functions/throttle';\nimport { useFocusTrap } from '@vueuse/integrations/useFocusTrap';\nimport { useId } from '@/composables/useId';\nimport { wait } from '@/utilities/functions/wait';\nimport { waitFor } from '@/utilities/functions/waitFor';\nimport type { CommonProps, Size } from '@/types/CommonProps';\n\nexport type Sizes = {\n\tsm: number;\n\tmd: number;\n\tlg: number;\n};\n\nexport type BaseDialogProps = Pick<\n\tCommonProps,\n\t| 'closeLabel'\n\t| 'compact'\n\t| 'disabled'\n\t| 'eager'\n\t| 'panelClasses'\n\t| 'overlayClasses'\n\t| 'persistent'\n\t| 'showClose'\n\t| 'title'\n\t| 'transition'\n\t| 'transitionDuration'\n> &\n\tSize<Sizes> & {\n\t\t/**\n\t\t * Description of the content of the modal. Extremely useful for accessibility reasons.\n\t\t */\n\t\tdescription?: string;\n\t\t/**\n\t\t * Displays the modala as fulscreen with no margin to the page\n\t\t */\n\t\tfullscreen?: boolean;\n\t\t/**\n\t\t * Defines the state open / closed of the modal.\n\t\t */\n\t\tmodelValue?: boolean | null;\n\t};\n\nexport type BaseDialogSlots = {\n\theader?: (props: {\n\t\ttitleId: typeof titleId;\n\t\tclose: typeof onCloseClick;\n\t\ttitle: BaseDialogProps['title'];\n\t}) => any;\n\ttitle?: (props: { text: BaseDialogProps['title'] }) => any;\n\tclose?: (props: { text: BaseDialogProps['closeLabel'] }) => any;\n\tdescription?: (props: {\n\t\tdescriptionId: typeof descriptionId;\n\t\ttext: BaseDialogProps['description'];\n\t}) => any;\n\tdefault?: (props: {}) => any;\n\tfooter?: (props: {}) => any;\n};\n\nexport type BaseDialogEvents = {\n\t(e: 'shown'): void;\n\t(e: 'hidden'): void;\n\t(e: 'update:modelValue', value: boolean): void;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseDialog',\n props: {\n closeLabel: { default: 'Chiudi modale' },\n compact: { type: Boolean },\n disabled: { type: Boolean },\n eager: { type: Boolean },\n panelClasses: { default: () => [] },\n overlayClasses: { default: () => [] },\n persistent: { type: Boolean },\n showClose: { type: Boolean, default: true },\n title: {},\n transition: { default: 'fade' },\n transitionDuration: { default: 350 },\n size: { default: 'sm' },\n description: {},\n fullscreen: { type: Boolean },\n modelValue: { type: [Boolean, null] }\n },\n emits: [\"shown\", \"hidden\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\n\n\nconst emit = __emit;\n\nconst titleId = `title_${useId().id.value}`;\nconst descriptionId = `description_${useId().id.value}`;\n\nconst observer = ref<MutationObserver | null>(null);\nconst overlay = ref<HTMLElement | null>(null);\nconst panel = ref<HTMLElement | null>(null);\nconst content = ref<HTMLElement | null>(null);\nconst header = ref<HTMLElement | null>(null);\nconst body = ref<HTMLElement | null>(null);\nconst footer = ref<HTMLElement | null>(null);\nconst height = ref<number | null>(null);\n\nconst { activate, deactivate } = useFocusTrap(panel, {\n\tclickOutsideDeactivates: true,\n\t/* On esc deactivate the trap, return focus and then close the modal */\n\tescapeDeactivates: () => {\n\t\tnextTick(() => {\n\t\t\temit('update:modelValue', false);\n\t\t});\n\t\treturn true;\n\t},\n});\n\nconst attrs = useAttrs();\n\nconst closeLabel = computed(() => props.closeLabel);\n\nonMounted(async () => {\n\tif (body.value) {\n\t\tobserver.value = new MutationObserver(onContentGrow);\n\t\tobserver.value.observe(body.value, { childList: true, subtree: true });\n\t}\n\twindow.addEventListener('resize', onContentGrow);\n});\nonBeforeUnmount(() => {\n\twindow.removeEventListener('resize', onContentGrow);\n});\n\nconst open = ref(false);\nconst opening = ref(false);\nconst closed = ref(true);\nconst closing = ref(false);\nconst hasRenderedAtLeastOnce = ref(props.eager || props.modelValue);\n\nconst busy = computed(() => opening.value || closing.value);\n\nonBeforeUnmount(() => {\n\tif (props.modelValue) {\n\t\tlet currentlyOpenModals = Number(\n\t\t\tdocument.body.dataset['openModals'] ?? '0'\n\t\t);\n\t\t// This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n\t\tcurrentlyOpenModals--;\n\t\tdocument.body.dataset['openModals'] = currentlyOpenModals.toString();\n\t\tif (!currentlyOpenModals) {\n\t\t\tdocument.body.style.overflow = 'auto';\n\t\t\tdocument.body.style.paddingRight = '0px';\n\t\t}\n\t}\n});\n\n/**\n * When modelValue becomes true if the component wasn't rendered render it\n * and wait for it to be on the page (or transitions would not work).\n * Stash the latest focused element so we can return it later when it closes.\n * Focus on the panel upon opening.\n * ---\n * Notice all interactions update modelValue and then this function aligns the display to it\n */\nconst alignToModelValue = async () => {\n\tif (props.modelValue) {\n\t\tif (!hasRenderedAtLeastOnce.value) {\n\t\t\thasRenderedAtLeastOnce.value = true;\n\t\t\tawait waitFor(() => !!body.value);\n\t\t\tawait nextTick();\n\t\t\tif (body.value) {\n\t\t\t\tobserver.value = new MutationObserver(onContentGrow);\n\t\t\t\tobserver.value.observe(body.value, { childList: true, subtree: true });\n\t\t\t}\n\t\t}\n\n\t\tclosed.value = false;\n\t\tclosing.value = false;\n\t\topening.value = true;\n\n\t\t// This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n\n\t\tlet currentlyOpenModals = Number(\n\t\t\tdocument.body.dataset['openModals'] ?? '0'\n\t\t);\n\t\tcurrentlyOpenModals++;\n\t\tdocument.body.dataset['openModals'] = currentlyOpenModals.toString();\n\t\tconst scrollBarWidth =\n\t\t\twindow.innerWidth - document.documentElement.clientWidth;\n\t\tdocument.body.style.overflow = 'hidden';\n\t\tdocument.body.style.paddingRight = `${scrollBarWidth}px`;\n\n\t\tawait wait(props.transitionDuration);\n\t\topening.value = false;\n\t\topen.value = true;\n\t\temit('shown');\n\t\tactivate();\n\t} else {\n\t\tdeactivate();\n\t\topening.value = false;\n\t\topen.value = false;\n\t\tclosing.value = true;\n\n\t\tawait wait(props.transitionDuration);\n\n\t\tlet currentlyOpenModals = Number(\n\t\t\tdocument.body.dataset['openModals'] ?? '0'\n\t\t);\n\t\t// This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n\t\tcurrentlyOpenModals--;\n\t\tdocument.body.dataset['openModals'] = currentlyOpenModals.toString();\n\t\tif (!currentlyOpenModals) {\n\t\t\tdocument.body.style.overflow = 'auto';\n\t\t\tdocument.body.style.paddingRight = '0px';\n\t\t}\n\t\tclosing.value = false;\n\t\tclosed.value = true;\n\t\temit('hidden');\n\t}\n};\n\n/**\n * Every time modelValue changes align the display to it\n */\nwatchPostEffect(() => {\n\tif (!props.modelValue && !hasRenderedAtLeastOnce.value) return;\n\talignToModelValue();\n});\n\n/**\n * Disable scrolling\n */\nconst onOverlayScroll = (event: UIEvent) => {\n\tif (event.target === overlay.value) {\n\t\tevent.preventDefault();\n\t}\n};\n\n/**\n * Close the modal on overlay click if not persistent\n */\nconst onOverlayClick = (event: MouseEvent) => {\n\tif (props.disabled || busy.value) return;\n\tif (overlay.value) {\n\t\tif (event.target === overlay.value) {\n\t\t\tif (!props.persistent) {\n\t\t\t\temit('update:modelValue', false);\n\t\t\t}\n\t\t}\n\t}\n};\n\n/**\n * On click on the X button\n */\nconst onCloseClick = () => {\n\tif (props.disabled || busy.value) return;\n\tdeactivate();\n\temit('update:modelValue', false);\n};\n\nconst overlayAttributes = computed(() => {\n\tconst classes = [\n\t\t{\n\t\t\t'bb-base-dialog bb-base-dialog__overlay': true,\n\t\t\t'bb-base-dialog--fullscreen': props.fullscreen,\n\t\t\t'bb-base-dialog--open': open.value,\n\t\t\t'bb-base-dialog--opening': opening.value,\n\t\t\t'bb-base-dialog--closed': closed.value,\n\t\t\t'bb-base-dialog--closing': closing.value,\n\t\t\t[`bb-base-dialog--transition-${props.transition}`]: true,\n\t\t},\n\t\tprops.overlayClasses,\n\t].flat();\n\tconst eventListeners = {\n\t\tonClick: onOverlayClick,\n\t\tonScroll: onOverlayScroll,\n\t\tonTouchmove: onOverlayScroll,\n\t\tonWheel: onOverlayScroll,\n\t\tonKeydown: onOverlayScroll,\n\t};\n\n\tconst style = {\n\t\ttransitionDuration: props.transitionDuration / 1000 + 's',\n\t};\n\treturn {\n\t\tclass: classes,\n\t\tstyle,\n\t\t...eventListeners,\n\t\t...attrs,\n\t};\n});\n\nconst panelAttributes = computed(() => {\n\tconst classes = [\n\t\t{\n\t\t\t'bb-base-dialog__panel': true,\n\t\t\t'bb-base-dialog__panel--compact': props.compact,\n\t\t},\n\t\tprops.panelClasses,\n\t].flat();\n\n\tconst accessibilityAttrs: {\n\t\t[key: string]: string | boolean;\n\t} = {\n\t\trole: 'dialog',\n\t\t'aria-modal': true,\n\t};\n\n\tif (hasRenderedAtLeastOnce.value) {\n\t\taccessibilityAttrs['aria-labelledby'] = titleId;\n\n\t\tif (props.description)\n\t\t\taccessibilityAttrs['aria-describedby'] = descriptionId;\n\t}\n\n\tlet maxWidth;\n\tconst sizes: Sizes = {\n\t\tsm: 384,\n\t\tmd: 652,\n\t\tlg: 896,\n\t};\n\tif (props.fullscreen) maxWidth = '100%';\n\telse if (typeof props.size === 'number') maxWidth = props.size + 'px';\n\telse if (props.size in sizes)\n\t\tmaxWidth = sizes[props.size as keyof Sizes] + 'px';\n\telse maxWidth = props.size + 'px';\n\n\tconst style = {\n\t\tmaxWidth,\n\t\ttransitionDuration: props.transitionDuration / 1000 + 's',\n\t};\n\n\treturn {\n\t\tclass: classes,\n\t\tstyle,\n\t\t...accessibilityAttrs,\n\t};\n});\n\n/**\n * This is called when content inside body changes.\n * Gets the total height the panel needs to be\n * It could be called numerous times so throttle every 300ms\n */\nconst onContentGrow = throttle(async () => {\n\tif (props.fullscreen) {\n\t\theight.value = window.innerHeight;\n\t\treturn;\n\t}\n\tif (header.value && body.value && footer.value) {\n\t\tconst contentHeight =\n\t\t\theader.value.scrollHeight +\n\t\t\tbody.value.scrollHeight +\n\t\t\tfooter.value.scrollHeight +\n\t\t\t2;\n\t\t/* Add two so renderless elements at the bottom are not cut off */\n\t\tif (content.value) {\n\t\t\tcontent.value.style.height = '0px';\n\t\t\tcontent.value.style.height = `${contentHeight + 10}px`;\n\t\t\t/**\n\t\t\t * Run until all transitions inside have completed\n\t\t\t */\n\t\t\tawait wait(30);\n\t\t\tif (header.value && body.value && footer.value) {\n\t\t\t\tconst contentHeight2 =\n\t\t\t\t\theader.value.scrollHeight +\n\t\t\t\t\tbody.value.scrollHeight +\n\t\t\t\t\tfooter.value.scrollHeight +\n\t\t\t\t\t20;\n\t\t\t\tif (contentHeight !== contentHeight2) onContentGrow();\n\t\t\t}\n\t\t}\n\t}\n}, 200);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"div\", _mergeProps(overlayAttributes.value, {\n ref_key: \"overlay\",\n ref: overlay\n }), [\n _createElementVNode(\"div\", _mergeProps(panelAttributes.value, {\n ref_key: \"panel\",\n ref: panel\n }), [\n (hasRenderedAtLeastOnce.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n ref_key: \"content\",\n ref: content,\n class: \"bb-base-dialog__content\"\n }, [\n _createElementVNode(\"div\", {\n ref_key: \"header\",\n ref: header,\n class: \"bb-base-dialog__header\"\n }, [\n _renderSlot(_ctx.$slots, \"header\", {\n close: onCloseClick,\n title: _ctx.title,\n titleId: titleId\n }, () => [\n _createElementVNode(\"span\", {\n id: titleId,\n class: \"bb-base-dialog__title\"\n }, [\n _renderSlot(_ctx.$slots, \"title\", { text: _ctx.title }, () => [\n _createTextVNode(_toDisplayString(_ctx.title), 1)\n ])\n ]),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.showClose)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n type: \"button\",\n onClick: onCloseClick\n }, [\n _renderSlot(_ctx.$slots, \"close\", { text: closeLabel.value }, () => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(closeLabel.value), 1),\n _hoisted_4\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 512),\n _createElementVNode(\"div\", {\n ref_key: \"body\",\n ref: body,\n class: \"bb-base-dialog__body\"\n }, [\n _renderSlot(_ctx.$slots, \"description\", {\n descriptionId: descriptionId,\n text: _ctx.description\n }, () => [\n (_ctx.description)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n id: descriptionId,\n class: \"bb-base-dialog__description\"\n }, _toDisplayString(_ctx.description), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ], 512),\n _hoisted_5,\n _createElementVNode(\"div\", {\n ref_key: \"footer\",\n ref: footer,\n class: \"bb-base-dialog__footer\"\n }, [\n _renderSlot(_ctx.$slots, \"footer\")\n ], 512)\n ], 512))\n : _createCommentVNode(\"\", true)\n ], 16)\n ], 16)\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_createElementVNode","_hoisted_5","_sfc_main","_defineComponent","__props","__emit","props","emit","titleId","useId","descriptionId","observer","ref","overlay","panel","content","header","body","footer","height","activate","deactivate","useFocusTrap","nextTick","attrs","useAttrs","closeLabel","computed","onMounted","onContentGrow","onBeforeUnmount","open","opening","closed","closing","hasRenderedAtLeastOnce","busy","currentlyOpenModals","alignToModelValue","waitFor","scrollBarWidth","wait","watchPostEffect","onOverlayScroll","event","onOverlayClick","onCloseClick","overlayAttributes","classes","eventListeners","style","panelAttributes","accessibilityAttrs","maxWidth","sizes","throttle","contentHeight","contentHeight2","_ctx","_cache","_openBlock","_createBlock","_Teleport","_mergeProps","_createElementBlock","_renderSlot","_createTextVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;AAGA,MAAMA,KAAa,EAAE,OAAO,0BACtBC,KAAa,EAAE,OAAO,mCACtBC,KAAa,EAAE,OAAO,iCACtBC,KAA8CC,gBAAAA,EAAA,QAAQ,EAAE,OAAO,gCAAgC;AAAA,oBAClE,OAAO;AAAA,IACtC,eAAe;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,EAAA,GACN;AAAA,sBACgC,QAAQ;AAAA,MACvC,GAAG;AAAA,MACH,QAAQ;AAAA,MACR,kBAAkB;AAAA,MAClB,gBAAgB;AAAA,IAAA,CACjB;AAAA,EAAA,CACF;AACH,GAAG,EA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ACV,MAAM;AAAA,gBACNA,EAAK,eACDE,KAAcI,EAAoB,OAAO;AAAA,kBACxC,KAAK;AAAA,kBACL,IAAItD;AAAA,kBACJ,OAAO;AAAA,gBAAA,GACNyD,EAAiBT,EAAK,WAAW,GAAG,CAAC,KACxCU,EAAoB,IAAI,EAAI;AAAA,cAAA,CACjC;AAAA,cACDH,EAAYP,EAAK,QAAQ,SAAS;AAAA,eACjC,GAAG;AAAA,YACNzD;AAAA,YACAD,EAAoB,OAAO;AAAA,cACzB,SAAS;AAAA,cACT,KAAKkB;AAAA,cACL,OAAO;AAAA,YAAA,GACN;AAAA,cACD+C,EAAYP,EAAK,QAAQ,QAAQ;AAAA,eAChC,GAAG;AAAA,UACL,GAAA,GAAG,KACNU,EAAoB,IAAI,EAAI;AAAA,WAC/B,EAAE;AAAA,SACJ,EAAE;AAAA,IAAA,CACN;AAAA,EAEH;AAEA,CAAC;"}
|
package/dist/index190.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index190.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index191.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index191.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index192.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index192.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index193.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index193.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index194.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index194.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index195.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index195.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index196.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index196.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns\n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n\treturn Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MAC1C,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
|
package/dist/index197.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index197.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from 'lodash.throttle';\n\nexport const throttle = t;\n"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
|