@rpcbase/ui 0.157.0 → 0.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DayPicker/index.d.ts.map +1 -1
- package/dist/components/HoursPicker/index.d.ts.map +1 -1
- package/dist/index.js +67 -24680
- package/dist/index.js.map +1 -1
- package/dist/index10.js +73 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +134 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +24 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +79 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +22 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +105 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +8 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +18 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +5 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +11 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +330 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +484 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +53 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +9 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +72 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +5 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +367 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +265 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +64 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +50 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +173 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +113 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +130 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +28 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +11 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +8 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +9 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +8 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +470 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +189 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +111 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +266 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +13 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +79 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +46 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +8 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +55 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +8 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +8 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +19 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +9 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +11 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +20 -0
- package/dist/index138.js.map +1 -0
- package/dist/index139.js +8 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +735 -0
- package/dist/index14.js.map +1 -0
- package/dist/index140.js +8 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +9 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +9 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +8 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.js +8 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.js +10 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.js +28 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.js +10 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.js +8 -0
- package/dist/index148.js.map +1 -0
- package/dist/index149.js +10 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.js +26 -0
- package/dist/index15.js.map +1 -0
- package/dist/index150.js +9 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.js +8 -0
- package/dist/index151.js.map +1 -0
- package/dist/index152.js +9 -0
- package/dist/index152.js.map +1 -0
- package/dist/index153.js +8 -0
- package/dist/index153.js.map +1 -0
- package/dist/index154.js +12 -0
- package/dist/index154.js.map +1 -0
- package/dist/index155.js +9 -0
- package/dist/index155.js.map +1 -0
- package/dist/index156.js +8 -0
- package/dist/index156.js.map +1 -0
- package/dist/index157.js +8 -0
- package/dist/index157.js.map +1 -0
- package/dist/index158.js +10 -0
- package/dist/index158.js.map +1 -0
- package/dist/index159.js +149 -0
- package/dist/index159.js.map +1 -0
- package/dist/index16.js +21 -0
- package/dist/index16.js.map +1 -0
- package/dist/index160.js +43 -0
- package/dist/index160.js.map +1 -0
- package/dist/index161.js +8 -0
- package/dist/index161.js.map +1 -0
- package/dist/index162.js +11 -0
- package/dist/index162.js.map +1 -0
- package/dist/index163.js +17 -0
- package/dist/index163.js.map +1 -0
- package/dist/index164.js +17 -0
- package/dist/index164.js.map +1 -0
- package/dist/index165.js +11 -0
- package/dist/index165.js.map +1 -0
- package/dist/index166.js +35 -0
- package/dist/index166.js.map +1 -0
- package/dist/index167.js +14 -0
- package/dist/index167.js.map +1 -0
- package/dist/index168.js +14 -0
- package/dist/index168.js.map +1 -0
- package/dist/index169.js +12 -0
- package/dist/index169.js.map +1 -0
- package/dist/index17.js +390 -0
- package/dist/index17.js.map +1 -0
- package/dist/index170.js +17 -0
- package/dist/index170.js.map +1 -0
- package/dist/index171.js +105 -0
- package/dist/index171.js.map +1 -0
- package/dist/index172.js +23 -0
- package/dist/index172.js.map +1 -0
- package/dist/index173.js +57 -0
- package/dist/index173.js.map +1 -0
- package/dist/index174.js +76 -0
- package/dist/index174.js.map +1 -0
- package/dist/index175.js +13 -0
- package/dist/index175.js.map +1 -0
- package/dist/index176.js +24 -0
- package/dist/index176.js.map +1 -0
- package/dist/index177.js +20 -0
- package/dist/index177.js.map +1 -0
- package/dist/index178.js +27 -0
- package/dist/index178.js.map +1 -0
- package/dist/index179.js +10 -0
- package/dist/index179.js.map +1 -0
- package/dist/index18.js +663 -0
- package/dist/index18.js.map +1 -0
- package/dist/index180.js +9 -0
- package/dist/index180.js.map +1 -0
- package/dist/index181.js +27 -0
- package/dist/index181.js.map +1 -0
- package/dist/index182.js +38 -0
- package/dist/index182.js.map +1 -0
- package/dist/index183.js +19 -0
- package/dist/index183.js.map +1 -0
- package/dist/index184.js +10 -0
- package/dist/index184.js.map +1 -0
- package/dist/index185.js +8 -0
- package/dist/index185.js.map +1 -0
- package/dist/index186.js +8 -0
- package/dist/index186.js.map +1 -0
- package/dist/index187.js +8 -0
- package/dist/index187.js.map +1 -0
- package/dist/index188.js +8 -0
- package/dist/index188.js.map +1 -0
- package/dist/index189.js +7 -0
- package/dist/index189.js.map +1 -0
- package/dist/index19.js +661 -0
- package/dist/index19.js.map +1 -0
- package/dist/index190.js +10 -0
- package/dist/index190.js.map +1 -0
- package/dist/index191.js +27 -0
- package/dist/index191.js.map +1 -0
- package/dist/index192.js +11 -0
- package/dist/index192.js.map +1 -0
- package/dist/index193.js +10 -0
- package/dist/index193.js.map +1 -0
- package/dist/index194.js +9 -0
- package/dist/index194.js.map +1 -0
- package/dist/index195.js +7 -0
- package/dist/index195.js.map +1 -0
- package/dist/index196.js +7 -0
- package/dist/index196.js.map +1 -0
- package/dist/index197.js +8 -0
- package/dist/index197.js.map +1 -0
- package/dist/index198.js +7 -0
- package/dist/index198.js.map +1 -0
- package/dist/index199.js +8 -0
- package/dist/index199.js.map +1 -0
- package/dist/index2.js +9 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +204 -0
- package/dist/index20.js.map +1 -0
- package/dist/index200.js +7 -0
- package/dist/index200.js.map +1 -0
- package/dist/index201.js +7 -0
- package/dist/index201.js.map +1 -0
- package/dist/index202.js +7 -0
- package/dist/index202.js.map +1 -0
- package/dist/index203.js +609 -0
- package/dist/index203.js.map +1 -0
- package/dist/index204.js +28 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +32 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +8 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +7 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +5 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +71 -0
- package/dist/index209.js.map +1 -0
- package/dist/index21.js +8 -0
- package/dist/index21.js.map +1 -0
- package/dist/index210.js +88 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +50 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +11 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +8 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +55 -0
- package/dist/index214.js.map +1 -0
- package/dist/index215.js +68 -0
- package/dist/index215.js.map +1 -0
- package/dist/index216.js +52 -0
- package/dist/index216.js.map +1 -0
- package/dist/index217.js +43 -0
- package/dist/index217.js.map +1 -0
- package/dist/index218.js +104 -0
- package/dist/index218.js.map +1 -0
- package/dist/index219.js +101 -0
- package/dist/index219.js.map +1 -0
- package/dist/index22.js +38 -0
- package/dist/index22.js.map +1 -0
- package/dist/index220.js +103 -0
- package/dist/index220.js.map +1 -0
- package/dist/index221.js +17 -0
- package/dist/index221.js.map +1 -0
- package/dist/index222.js +158 -0
- package/dist/index222.js.map +1 -0
- package/dist/index223.js +34 -0
- package/dist/index223.js.map +1 -0
- package/dist/index224.js +13 -0
- package/dist/index224.js.map +1 -0
- package/dist/index225.js +51 -0
- package/dist/index225.js.map +1 -0
- package/dist/index226.js +15 -0
- package/dist/index226.js.map +1 -0
- package/dist/index227.js +48 -0
- package/dist/index227.js.map +1 -0
- package/dist/index228.js +99 -0
- package/dist/index228.js.map +1 -0
- package/dist/index229.js +90 -0
- package/dist/index229.js.map +1 -0
- package/dist/index23.js +272 -0
- package/dist/index23.js.map +1 -0
- package/dist/index230.js +109 -0
- package/dist/index230.js.map +1 -0
- package/dist/index231.js +56 -0
- package/dist/index231.js.map +1 -0
- package/dist/index232.js +15 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +41 -0
- package/dist/index233.js.map +1 -0
- package/dist/index234.js +12 -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 +21 -0
- package/dist/index236.js.map +1 -0
- package/dist/index237.js +19 -0
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +7 -0
- package/dist/index238.js.map +1 -0
- package/dist/index239.js +40 -0
- package/dist/index239.js.map +1 -0
- package/dist/index24.js +184 -0
- package/dist/index24.js.map +1 -0
- package/dist/index240.js +24 -0
- package/dist/index240.js.map +1 -0
- package/dist/index241.js +13 -0
- package/dist/index241.js.map +1 -0
- package/dist/index242.js +12 -0
- package/dist/index242.js.map +1 -0
- package/dist/index243.js +23 -0
- package/dist/index243.js.map +1 -0
- package/dist/index244.js +32 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +20 -0
- package/dist/index245.js.map +1 -0
- package/dist/index246.js +62 -0
- package/dist/index246.js.map +1 -0
- package/dist/index247.js +12 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +70 -0
- package/dist/index248.js.map +1 -0
- package/dist/index249.js +23 -0
- package/dist/index249.js.map +1 -0
- package/dist/index25.js +18 -0
- package/dist/index25.js.map +1 -0
- package/dist/index250.js +20 -0
- package/dist/index250.js.map +1 -0
- package/dist/index251.js +9 -0
- package/dist/index251.js.map +1 -0
- package/dist/index252.js +9 -0
- package/dist/index252.js.map +1 -0
- package/dist/index253.js +10 -0
- package/dist/index253.js.map +1 -0
- package/dist/index254.js +8 -0
- package/dist/index254.js.map +1 -0
- package/dist/index255.js +11 -0
- package/dist/index255.js.map +1 -0
- package/dist/index256.js +21 -0
- package/dist/index256.js.map +1 -0
- package/dist/index257.js +9 -0
- package/dist/index257.js.map +1 -0
- package/dist/index258.js +9 -0
- package/dist/index258.js.map +1 -0
- package/dist/index259.js +17 -0
- package/dist/index259.js.map +1 -0
- package/dist/index26.js +2766 -0
- package/dist/index26.js.map +1 -0
- package/dist/index260.js +14 -0
- package/dist/index260.js.map +1 -0
- package/dist/index261.js +18 -0
- package/dist/index261.js.map +1 -0
- package/dist/index262.js +18 -0
- package/dist/index262.js.map +1 -0
- package/dist/index263.js +9 -0
- package/dist/index263.js.map +1 -0
- package/dist/index264.js +10 -0
- package/dist/index264.js.map +1 -0
- package/dist/index265.js +11 -0
- package/dist/index265.js.map +1 -0
- package/dist/index266.js +10 -0
- package/dist/index266.js.map +1 -0
- package/dist/index267.js +13 -0
- package/dist/index267.js.map +1 -0
- package/dist/index268.js +9 -0
- package/dist/index268.js.map +1 -0
- package/dist/index269.js +9 -0
- package/dist/index269.js.map +1 -0
- package/dist/index27.js +40 -0
- package/dist/index27.js.map +1 -0
- package/dist/index270.js +13 -0
- package/dist/index270.js.map +1 -0
- package/dist/index271.js +9 -0
- package/dist/index271.js.map +1 -0
- package/dist/index272.js +9 -0
- package/dist/index272.js.map +1 -0
- package/dist/index273.js +8 -0
- package/dist/index273.js.map +1 -0
- package/dist/index274.js +15 -0
- package/dist/index274.js.map +1 -0
- package/dist/index275.js +14 -0
- package/dist/index275.js.map +1 -0
- package/dist/index276.js +14 -0
- package/dist/index276.js.map +1 -0
- package/dist/index277.js +15 -0
- package/dist/index277.js.map +1 -0
- package/dist/index278.js +15 -0
- package/dist/index278.js.map +1 -0
- package/dist/index279.js +14 -0
- package/dist/index279.js.map +1 -0
- package/dist/index28.js +6 -0
- package/dist/index28.js.map +1 -0
- package/dist/index280.js +11 -0
- package/dist/index280.js.map +1 -0
- package/dist/index281.js +10 -0
- package/dist/index281.js.map +1 -0
- package/dist/index282.js +9 -0
- package/dist/index282.js.map +1 -0
- package/dist/index283.js +10 -0
- package/dist/index283.js.map +1 -0
- package/dist/index284.js +11 -0
- package/dist/index284.js.map +1 -0
- package/dist/index285.js +10 -0
- package/dist/index285.js.map +1 -0
- package/dist/index286.js +59 -0
- package/dist/index286.js.map +1 -0
- package/dist/index287.js +27 -0
- package/dist/index287.js.map +1 -0
- package/dist/index288.js +20 -0
- package/dist/index288.js.map +1 -0
- package/dist/index289.js +11 -0
- package/dist/index289.js.map +1 -0
- package/dist/index29.js +128 -0
- package/dist/index29.js.map +1 -0
- package/dist/index290.js +14 -0
- package/dist/index290.js.map +1 -0
- package/dist/index291.js +14 -0
- package/dist/index291.js.map +1 -0
- package/dist/index292.js +25 -0
- package/dist/index292.js.map +1 -0
- package/dist/index293.js +14 -0
- package/dist/index293.js.map +1 -0
- package/dist/index294.js +13 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +13 -0
- package/dist/index295.js.map +1 -0
- package/dist/index296.js +8 -0
- package/dist/index296.js.map +1 -0
- package/dist/index297.js +9 -0
- package/dist/index297.js.map +1 -0
- package/dist/index298.js +20 -0
- package/dist/index298.js.map +1 -0
- package/dist/index299.js +13 -0
- package/dist/index299.js.map +1 -0
- package/dist/index3.js +5 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +51 -0
- package/dist/index30.js.map +1 -0
- package/dist/index300.js +22 -0
- package/dist/index300.js.map +1 -0
- package/dist/index301.js +19 -0
- package/dist/index301.js.map +1 -0
- package/dist/index302.js +16 -0
- package/dist/index302.js.map +1 -0
- package/dist/index303.js +33 -0
- package/dist/index303.js.map +1 -0
- package/dist/index304.js +16 -0
- package/dist/index304.js.map +1 -0
- package/dist/index305.js +29 -0
- package/dist/index305.js.map +1 -0
- package/dist/index306.js +9 -0
- package/dist/index306.js.map +1 -0
- package/dist/index307.js +71 -0
- package/dist/index307.js.map +1 -0
- package/dist/index308.js +184 -0
- package/dist/index308.js.map +1 -0
- package/dist/index309.js +50 -0
- package/dist/index309.js.map +1 -0
- package/dist/index31.js +223 -0
- package/dist/index31.js.map +1 -0
- package/dist/index310.js +8 -0
- package/dist/index310.js.map +1 -0
- package/dist/index311.js +6 -0
- package/dist/index311.js.map +1 -0
- package/dist/index312.js +27 -0
- package/dist/index312.js.map +1 -0
- package/dist/index313.js +116 -0
- package/dist/index313.js.map +1 -0
- package/dist/index314.js +19 -0
- package/dist/index314.js.map +1 -0
- package/dist/index315.js +528 -0
- package/dist/index315.js.map +1 -0
- package/dist/index316.js +131 -0
- package/dist/index316.js.map +1 -0
- package/dist/index317.js +137 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +5 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +5 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +47 -0
- package/dist/index32.js.map +1 -0
- package/dist/index320.js +24 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +8 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +22 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +16 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +68 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +72 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +12 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +17 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +69 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +9 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +44 -0
- package/dist/index33.js.map +1 -0
- package/dist/index330.js +9 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +7 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +19 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +12 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +9 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +8 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +549 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +50 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +21 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +10 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +32 -0
- package/dist/index34.js.map +1 -0
- package/dist/index340.js +12 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +11 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +12 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +16 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +13 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +17 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +7 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +26 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +8 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +59 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +49 -0
- package/dist/index35.js.map +1 -0
- package/dist/index350.js +71 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +34 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +12 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +156 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +111 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +26 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +16 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +31 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +8 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +19 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +35 -0
- package/dist/index36.js.map +1 -0
- package/dist/index360.js +32 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +16 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +10 -0
- package/dist/index362.js.map +1 -0
- package/dist/index37.js +31 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +26 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +132 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +27 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +235 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +54 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +2644 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +397 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +236 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +25 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +145 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +190 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +80 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +94 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +48 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +9 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +847 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +69 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +11 -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 +27 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +237 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +7 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +10 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +51 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +33 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +30 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +54 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +11 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +18 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +137 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +14 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +220 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +16 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +37 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +50 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +36 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +11 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +53 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +7 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +9 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +31 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +53 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +12 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +208 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +15 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +9 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +230 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +11 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +9 -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 +5 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +50 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +209 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +25 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +28 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +403 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +50 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +27 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +57 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +7 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +37 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +253 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +118 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +223 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +70 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +24 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +213 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +323 -0
- package/dist/index99.js.map +1 -0
- package/package.json +5 -1
package/dist/index31.js
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { DIRECTION as r } from "./index215.js";
|
|
2
|
+
import h from "./index216.js";
|
|
3
|
+
import u, { maskedClass as l } from "./index32.js";
|
|
4
|
+
import d from "./index33.js";
|
|
5
|
+
import p from "./index34.js";
|
|
6
|
+
import _ from "./index36.js";
|
|
7
|
+
import o from "./index91.js";
|
|
8
|
+
import m from "./index37.js";
|
|
9
|
+
import "./index35.js";
|
|
10
|
+
class c {
|
|
11
|
+
/**
|
|
12
|
+
View element
|
|
13
|
+
*/
|
|
14
|
+
/** Internal {@link Masked} model */
|
|
15
|
+
constructor(t, s) {
|
|
16
|
+
this.el = t instanceof d ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new _(t) : new p(t), this.masked = u(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new m(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
|
|
17
|
+
}
|
|
18
|
+
maskEquals(t) {
|
|
19
|
+
var s;
|
|
20
|
+
return t == null || ((s = this.masked) == null ? void 0 : s.maskEquals(t));
|
|
21
|
+
}
|
|
22
|
+
/** Masked */
|
|
23
|
+
get mask() {
|
|
24
|
+
return this.masked.mask;
|
|
25
|
+
}
|
|
26
|
+
set mask(t) {
|
|
27
|
+
if (this.maskEquals(t)) return;
|
|
28
|
+
if (!(t instanceof o.Masked) && this.masked.constructor === l(t)) {
|
|
29
|
+
this.masked.updateOptions({
|
|
30
|
+
mask: t
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const s = t instanceof o.Masked ? t : u({
|
|
35
|
+
mask: t
|
|
36
|
+
});
|
|
37
|
+
s.unmaskedValue = this.masked.unmaskedValue, this.masked = s;
|
|
38
|
+
}
|
|
39
|
+
/** Raw value */
|
|
40
|
+
get value() {
|
|
41
|
+
return this._value;
|
|
42
|
+
}
|
|
43
|
+
set value(t) {
|
|
44
|
+
this.value !== t && (this.masked.value = t, this.updateControl("auto"));
|
|
45
|
+
}
|
|
46
|
+
/** Unmasked value */
|
|
47
|
+
get unmaskedValue() {
|
|
48
|
+
return this._unmaskedValue;
|
|
49
|
+
}
|
|
50
|
+
set unmaskedValue(t) {
|
|
51
|
+
this.unmaskedValue !== t && (this.masked.unmaskedValue = t, this.updateControl("auto"));
|
|
52
|
+
}
|
|
53
|
+
/** Raw input value */
|
|
54
|
+
get rawInputValue() {
|
|
55
|
+
return this._rawInputValue;
|
|
56
|
+
}
|
|
57
|
+
set rawInputValue(t) {
|
|
58
|
+
this.rawInputValue !== t && (this.masked.rawInputValue = t, this.updateControl(), this.alignCursor());
|
|
59
|
+
}
|
|
60
|
+
/** Typed unmasked value */
|
|
61
|
+
get typedValue() {
|
|
62
|
+
return this.masked.typedValue;
|
|
63
|
+
}
|
|
64
|
+
set typedValue(t) {
|
|
65
|
+
this.masked.typedValueEquals(t) || (this.masked.typedValue = t, this.updateControl("auto"));
|
|
66
|
+
}
|
|
67
|
+
/** Display value */
|
|
68
|
+
get displayValue() {
|
|
69
|
+
return this.masked.displayValue;
|
|
70
|
+
}
|
|
71
|
+
/** Starts listening to element events */
|
|
72
|
+
_bindEvents() {
|
|
73
|
+
this.el.bindEvents({
|
|
74
|
+
selectionChange: this._saveSelection,
|
|
75
|
+
input: this._onInput,
|
|
76
|
+
drop: this._onDrop,
|
|
77
|
+
click: this._onClick,
|
|
78
|
+
focus: this._onFocus,
|
|
79
|
+
commit: this._onChange,
|
|
80
|
+
undo: this._onUndo,
|
|
81
|
+
redo: this._onRedo
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/** Stops listening to element events */
|
|
85
|
+
_unbindEvents() {
|
|
86
|
+
this.el && this.el.unbindEvents();
|
|
87
|
+
}
|
|
88
|
+
/** Fires custom event */
|
|
89
|
+
_fireEvent(t, s) {
|
|
90
|
+
const e = this._listeners[t];
|
|
91
|
+
e && e.forEach((i) => i(s));
|
|
92
|
+
}
|
|
93
|
+
/** Current selection start */
|
|
94
|
+
get selectionStart() {
|
|
95
|
+
return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;
|
|
96
|
+
}
|
|
97
|
+
/** Current cursor position */
|
|
98
|
+
get cursorPos() {
|
|
99
|
+
return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;
|
|
100
|
+
}
|
|
101
|
+
set cursorPos(t) {
|
|
102
|
+
!this.el || !this.el.isActive || (this.el.select(t, t), this._saveSelection());
|
|
103
|
+
}
|
|
104
|
+
/** Stores current selection */
|
|
105
|
+
_saveSelection() {
|
|
106
|
+
this.displayValue !== this.el.value && console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."), this._selection = {
|
|
107
|
+
start: this.selectionStart,
|
|
108
|
+
end: this.cursorPos
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/** Syncronizes model value from view */
|
|
112
|
+
updateValue() {
|
|
113
|
+
this.masked.value = this.el.value, this._value = this.masked.value, this._unmaskedValue = this.masked.unmaskedValue, this._rawInputValue = this.masked.rawInputValue;
|
|
114
|
+
}
|
|
115
|
+
/** Syncronizes view from model value, fires change events */
|
|
116
|
+
updateControl(t) {
|
|
117
|
+
const s = this.masked.unmaskedValue, e = this.masked.value, i = this.masked.rawInputValue, n = this.displayValue, a = this.unmaskedValue !== s || this.value !== e || this._rawInputValue !== i;
|
|
118
|
+
this._unmaskedValue = s, this._value = e, this._rawInputValue = i, this.el.value !== n && (this.el.value = n), t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t), a && this._fireChangeEvents(), !this._historyChanging && (a || this.history.isEmpty) && this.history.push({
|
|
119
|
+
unmaskedValue: s,
|
|
120
|
+
selection: {
|
|
121
|
+
start: this.selectionStart,
|
|
122
|
+
end: this.cursorPos
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/** Updates options with deep equal check, recreates {@link Masked} model if mask type changes */
|
|
127
|
+
updateOptions(t) {
|
|
128
|
+
const {
|
|
129
|
+
mask: s,
|
|
130
|
+
...e
|
|
131
|
+
} = t, i = !this.maskEquals(s), n = this.masked.optionsIsChanged(e);
|
|
132
|
+
i && (this.mask = s), n && this.masked.updateOptions(e), (i || n) && this.updateControl();
|
|
133
|
+
}
|
|
134
|
+
/** Updates cursor */
|
|
135
|
+
updateCursor(t) {
|
|
136
|
+
t != null && (this.cursorPos = t, this._delayUpdateCursor(t));
|
|
137
|
+
}
|
|
138
|
+
/** Delays cursor update to support mobile browsers */
|
|
139
|
+
_delayUpdateCursor(t) {
|
|
140
|
+
this._abortUpdateCursor(), this._changingCursorPos = t, this._cursorChanging = setTimeout(() => {
|
|
141
|
+
this.el && (this.cursorPos = this._changingCursorPos, this._abortUpdateCursor());
|
|
142
|
+
}, 10);
|
|
143
|
+
}
|
|
144
|
+
/** Fires custom events */
|
|
145
|
+
_fireChangeEvents() {
|
|
146
|
+
this._fireEvent("accept", this._inputEvent), this.masked.isComplete && this._fireEvent("complete", this._inputEvent);
|
|
147
|
+
}
|
|
148
|
+
/** Aborts delayed cursor update */
|
|
149
|
+
_abortUpdateCursor() {
|
|
150
|
+
this._cursorChanging && (clearTimeout(this._cursorChanging), delete this._cursorChanging);
|
|
151
|
+
}
|
|
152
|
+
/** Aligns cursor to nearest available position */
|
|
153
|
+
alignCursor() {
|
|
154
|
+
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, r.LEFT));
|
|
155
|
+
}
|
|
156
|
+
/** Aligns cursor only if selection is empty */
|
|
157
|
+
alignCursorFriendly() {
|
|
158
|
+
this.selectionStart === this.cursorPos && this.alignCursor();
|
|
159
|
+
}
|
|
160
|
+
/** Adds listener on custom event */
|
|
161
|
+
on(t, s) {
|
|
162
|
+
return this._listeners[t] || (this._listeners[t] = []), this._listeners[t].push(s), this;
|
|
163
|
+
}
|
|
164
|
+
/** Removes custom event listener */
|
|
165
|
+
off(t, s) {
|
|
166
|
+
if (!this._listeners[t]) return this;
|
|
167
|
+
if (!s)
|
|
168
|
+
return delete this._listeners[t], this;
|
|
169
|
+
const e = this._listeners[t].indexOf(s);
|
|
170
|
+
return e >= 0 && this._listeners[t].splice(e, 1), this;
|
|
171
|
+
}
|
|
172
|
+
/** Handles view input event */
|
|
173
|
+
_onInput(t) {
|
|
174
|
+
this._inputEvent = t, this._abortUpdateCursor();
|
|
175
|
+
const s = new h({
|
|
176
|
+
// new state
|
|
177
|
+
value: this.el.value,
|
|
178
|
+
cursorPos: this.cursorPos,
|
|
179
|
+
// old state
|
|
180
|
+
oldValue: this.displayValue,
|
|
181
|
+
oldSelection: this._selection
|
|
182
|
+
}), e = this.masked.rawInputValue, i = this.masked.splice(s.startChangePos, s.removed.length, s.inserted, s.removeDirection, {
|
|
183
|
+
input: !0,
|
|
184
|
+
raw: !0
|
|
185
|
+
}).offset, n = e === this.masked.rawInputValue ? s.removeDirection : r.NONE;
|
|
186
|
+
let a = this.masked.nearestInputPos(s.startChangePos + i, n);
|
|
187
|
+
n !== r.NONE && (a = this.masked.nearestInputPos(a, r.NONE)), this.updateControl(a), delete this._inputEvent;
|
|
188
|
+
}
|
|
189
|
+
/** Handles view change event and commits model value */
|
|
190
|
+
_onChange() {
|
|
191
|
+
this.displayValue !== this.el.value && this.updateValue(), this.masked.doCommit(), this.updateControl(), this._saveSelection();
|
|
192
|
+
}
|
|
193
|
+
/** Handles view drop event, prevents by default */
|
|
194
|
+
_onDrop(t) {
|
|
195
|
+
t.preventDefault(), t.stopPropagation();
|
|
196
|
+
}
|
|
197
|
+
/** Restore last selection on focus */
|
|
198
|
+
_onFocus(t) {
|
|
199
|
+
this.alignCursorFriendly();
|
|
200
|
+
}
|
|
201
|
+
/** Restore last selection on focus */
|
|
202
|
+
_onClick(t) {
|
|
203
|
+
this.alignCursorFriendly();
|
|
204
|
+
}
|
|
205
|
+
_onUndo() {
|
|
206
|
+
this._applyHistoryState(this.history.undo());
|
|
207
|
+
}
|
|
208
|
+
_onRedo() {
|
|
209
|
+
this._applyHistoryState(this.history.redo());
|
|
210
|
+
}
|
|
211
|
+
_applyHistoryState(t) {
|
|
212
|
+
t && (this._historyChanging = !0, this.unmaskedValue = t.unmaskedValue, this.el.select(t.selection.start, t.selection.end), this._saveSelection(), this._historyChanging = !1);
|
|
213
|
+
}
|
|
214
|
+
/** Unbind view events and removes element reference */
|
|
215
|
+
destroy() {
|
|
216
|
+
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
o.InputMask = c;
|
|
220
|
+
export {
|
|
221
|
+
c as default
|
|
222
|
+
};
|
|
223
|
+
//# sourceMappingURL=index31.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index31.js","sources":["../../../node_modules/imask/esm/controls/input.js"],"sourcesContent":["import { DIRECTION } from '../core/utils.js';\nimport ActionDetails from '../core/action-details.js';\nimport createMask, { maskedClass } from '../masked/factory.js';\nimport MaskElement from './mask-element.js';\nimport HTMLInputMaskElement from './html-input-mask-element.js';\nimport HTMLContenteditableMaskElement from './html-contenteditable-mask-element.js';\nimport IMask from '../core/holder.js';\nimport InputHistory from './input-history.js';\nimport './html-mask-element.js';\n\n/** Listens to element events and controls changes between element and {@link Masked} */\nclass InputMask {\n /**\n View element\n */\n\n /** Internal {@link Masked} model */\n\n constructor(el, opts) {\n this.el = el instanceof MaskElement ? el : el.isContentEditable && el.tagName !== 'INPUT' && el.tagName !== 'TEXTAREA' ? new HTMLContenteditableMaskElement(el) : new HTMLInputMaskElement(el);\n this.masked = createMask(opts);\n this._listeners = {};\n this._value = '';\n this._unmaskedValue = '';\n this._rawInputValue = '';\n this.history = new InputHistory();\n this._saveSelection = this._saveSelection.bind(this);\n this._onInput = this._onInput.bind(this);\n this._onChange = this._onChange.bind(this);\n this._onDrop = this._onDrop.bind(this);\n this._onFocus = this._onFocus.bind(this);\n this._onClick = this._onClick.bind(this);\n this._onUndo = this._onUndo.bind(this);\n this._onRedo = this._onRedo.bind(this);\n this.alignCursor = this.alignCursor.bind(this);\n this.alignCursorFriendly = this.alignCursorFriendly.bind(this);\n this._bindEvents();\n\n // refresh\n this.updateValue();\n this._onChange();\n }\n maskEquals(mask) {\n var _this$masked;\n return mask == null || ((_this$masked = this.masked) == null ? void 0 : _this$masked.maskEquals(mask));\n }\n\n /** Masked */\n get mask() {\n return this.masked.mask;\n }\n set mask(mask) {\n if (this.maskEquals(mask)) return;\n if (!(mask instanceof IMask.Masked) && this.masked.constructor === maskedClass(mask)) {\n // TODO \"any\" no idea\n this.masked.updateOptions({\n mask\n });\n return;\n }\n const masked = mask instanceof IMask.Masked ? mask : createMask({\n mask\n });\n masked.unmaskedValue = this.masked.unmaskedValue;\n this.masked = masked;\n }\n\n /** Raw value */\n get value() {\n return this._value;\n }\n set value(str) {\n if (this.value === str) return;\n this.masked.value = str;\n this.updateControl('auto');\n }\n\n /** Unmasked value */\n get unmaskedValue() {\n return this._unmaskedValue;\n }\n set unmaskedValue(str) {\n if (this.unmaskedValue === str) return;\n this.masked.unmaskedValue = str;\n this.updateControl('auto');\n }\n\n /** Raw input value */\n get rawInputValue() {\n return this._rawInputValue;\n }\n set rawInputValue(str) {\n if (this.rawInputValue === str) return;\n this.masked.rawInputValue = str;\n this.updateControl();\n this.alignCursor();\n }\n\n /** Typed unmasked value */\n get typedValue() {\n return this.masked.typedValue;\n }\n set typedValue(val) {\n if (this.masked.typedValueEquals(val)) return;\n this.masked.typedValue = val;\n this.updateControl('auto');\n }\n\n /** Display value */\n get displayValue() {\n return this.masked.displayValue;\n }\n\n /** Starts listening to element events */\n _bindEvents() {\n this.el.bindEvents({\n selectionChange: this._saveSelection,\n input: this._onInput,\n drop: this._onDrop,\n click: this._onClick,\n focus: this._onFocus,\n commit: this._onChange,\n undo: this._onUndo,\n redo: this._onRedo\n });\n }\n\n /** Stops listening to element events */\n _unbindEvents() {\n if (this.el) this.el.unbindEvents();\n }\n\n /** Fires custom event */\n _fireEvent(ev, e) {\n const listeners = this._listeners[ev];\n if (!listeners) return;\n listeners.forEach(l => l(e));\n }\n\n /** Current selection start */\n get selectionStart() {\n return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;\n }\n\n /** Current cursor position */\n get cursorPos() {\n return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;\n }\n set cursorPos(pos) {\n if (!this.el || !this.el.isActive) return;\n this.el.select(pos, pos);\n this._saveSelection();\n }\n\n /** Stores current selection */\n _saveSelection( /* ev */\n ) {\n if (this.displayValue !== this.el.value) {\n console.warn('Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.'); // eslint-disable-line no-console\n }\n this._selection = {\n start: this.selectionStart,\n end: this.cursorPos\n };\n }\n\n /** Syncronizes model value from view */\n updateValue() {\n this.masked.value = this.el.value;\n this._value = this.masked.value;\n this._unmaskedValue = this.masked.unmaskedValue;\n this._rawInputValue = this.masked.rawInputValue;\n }\n\n /** Syncronizes view from model value, fires change events */\n updateControl(cursorPos) {\n const newUnmaskedValue = this.masked.unmaskedValue;\n const newValue = this.masked.value;\n const newRawInputValue = this.masked.rawInputValue;\n const newDisplayValue = this.displayValue;\n const isChanged = this.unmaskedValue !== newUnmaskedValue || this.value !== newValue || this._rawInputValue !== newRawInputValue;\n this._unmaskedValue = newUnmaskedValue;\n this._value = newValue;\n this._rawInputValue = newRawInputValue;\n if (this.el.value !== newDisplayValue) this.el.value = newDisplayValue;\n if (cursorPos === 'auto') this.alignCursor();else if (cursorPos != null) this.cursorPos = cursorPos;\n if (isChanged) this._fireChangeEvents();\n if (!this._historyChanging && (isChanged || this.history.isEmpty)) this.history.push({\n unmaskedValue: newUnmaskedValue,\n selection: {\n start: this.selectionStart,\n end: this.cursorPos\n }\n });\n }\n\n /** Updates options with deep equal check, recreates {@link Masked} model if mask type changes */\n updateOptions(opts) {\n const {\n mask,\n ...restOpts\n } = opts; // TODO types, yes, mask is optional\n\n const updateMask = !this.maskEquals(mask);\n const updateOpts = this.masked.optionsIsChanged(restOpts);\n if (updateMask) this.mask = mask;\n if (updateOpts) this.masked.updateOptions(restOpts); // TODO\n\n if (updateMask || updateOpts) this.updateControl();\n }\n\n /** Updates cursor */\n updateCursor(cursorPos) {\n if (cursorPos == null) return;\n this.cursorPos = cursorPos;\n\n // also queue change cursor for mobile browsers\n this._delayUpdateCursor(cursorPos);\n }\n\n /** Delays cursor update to support mobile browsers */\n _delayUpdateCursor(cursorPos) {\n this._abortUpdateCursor();\n this._changingCursorPos = cursorPos;\n this._cursorChanging = setTimeout(() => {\n if (!this.el) return; // if was destroyed\n this.cursorPos = this._changingCursorPos;\n this._abortUpdateCursor();\n }, 10);\n }\n\n /** Fires custom events */\n _fireChangeEvents() {\n this._fireEvent('accept', this._inputEvent);\n if (this.masked.isComplete) this._fireEvent('complete', this._inputEvent);\n }\n\n /** Aborts delayed cursor update */\n _abortUpdateCursor() {\n if (this._cursorChanging) {\n clearTimeout(this._cursorChanging);\n delete this._cursorChanging;\n }\n }\n\n /** Aligns cursor to nearest available position */\n alignCursor() {\n this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, DIRECTION.LEFT));\n }\n\n /** Aligns cursor only if selection is empty */\n alignCursorFriendly() {\n if (this.selectionStart !== this.cursorPos) return; // skip if range is selected\n this.alignCursor();\n }\n\n /** Adds listener on custom event */\n on(ev, handler) {\n if (!this._listeners[ev]) this._listeners[ev] = [];\n this._listeners[ev].push(handler);\n return this;\n }\n\n /** Removes custom event listener */\n off(ev, handler) {\n if (!this._listeners[ev]) return this;\n if (!handler) {\n delete this._listeners[ev];\n return this;\n }\n const hIndex = this._listeners[ev].indexOf(handler);\n if (hIndex >= 0) this._listeners[ev].splice(hIndex, 1);\n return this;\n }\n\n /** Handles view input event */\n _onInput(e) {\n this._inputEvent = e;\n this._abortUpdateCursor();\n const details = new ActionDetails({\n // new state\n value: this.el.value,\n cursorPos: this.cursorPos,\n // old state\n oldValue: this.displayValue,\n oldSelection: this._selection\n });\n const oldRawValue = this.masked.rawInputValue;\n const offset = this.masked.splice(details.startChangePos, details.removed.length, details.inserted, details.removeDirection, {\n input: true,\n raw: true\n }).offset;\n\n // force align in remove direction only if no input chars were removed\n // otherwise we still need to align with NONE (to get out from fixed symbols for instance)\n const removeDirection = oldRawValue === this.masked.rawInputValue ? details.removeDirection : DIRECTION.NONE;\n let cursorPos = this.masked.nearestInputPos(details.startChangePos + offset, removeDirection);\n if (removeDirection !== DIRECTION.NONE) cursorPos = this.masked.nearestInputPos(cursorPos, DIRECTION.NONE);\n this.updateControl(cursorPos);\n delete this._inputEvent;\n }\n\n /** Handles view change event and commits model value */\n _onChange() {\n if (this.displayValue !== this.el.value) this.updateValue();\n this.masked.doCommit();\n this.updateControl();\n this._saveSelection();\n }\n\n /** Handles view drop event, prevents by default */\n _onDrop(ev) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n\n /** Restore last selection on focus */\n _onFocus(ev) {\n this.alignCursorFriendly();\n }\n\n /** Restore last selection on focus */\n _onClick(ev) {\n this.alignCursorFriendly();\n }\n _onUndo() {\n this._applyHistoryState(this.history.undo());\n }\n _onRedo() {\n this._applyHistoryState(this.history.redo());\n }\n _applyHistoryState(state) {\n if (!state) return;\n this._historyChanging = true;\n this.unmaskedValue = state.unmaskedValue;\n this.el.select(state.selection.start, state.selection.end);\n this._saveSelection();\n this._historyChanging = false;\n }\n\n /** Unbind view events and removes element reference */\n destroy() {\n this._unbindEvents();\n this._listeners.length = 0;\n delete this.el;\n }\n}\nIMask.InputMask = InputMask;\n\nexport { InputMask as default };\n"],"names":["InputMask","el","opts","MaskElement","HTMLContenteditableMaskElement","HTMLInputMaskElement","createMask","InputHistory","mask","_this$masked","IMask","maskedClass","masked","str","val","ev","e","listeners","l","pos","cursorPos","newUnmaskedValue","newValue","newRawInputValue","newDisplayValue","isChanged","restOpts","updateMask","updateOpts","DIRECTION","handler","hIndex","details","ActionDetails","oldRawValue","offset","removeDirection","state"],"mappings":";;;;;;;;;AAWA,MAAMA,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA,EAOd,YAAYC,GAAIC,GAAM;AACpB,SAAK,KAAKD,aAAcE,IAAcF,IAAKA,EAAG,qBAAqBA,EAAG,YAAY,WAAWA,EAAG,YAAY,aAAa,IAAIG,EAA+BH,CAAE,IAAI,IAAII,EAAqBJ,CAAE,GAC7L,KAAK,SAASK,EAAWJ,CAAI,GAC7B,KAAK,aAAa,CAAA,GAClB,KAAK,SAAS,IACd,KAAK,iBAAiB,IACtB,KAAK,iBAAiB,IACtB,KAAK,UAAU,IAAIK,EAAY,GAC/B,KAAK,iBAAiB,KAAK,eAAe,KAAK,IAAI,GACnD,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI,GACvC,KAAK,YAAY,KAAK,UAAU,KAAK,IAAI,GACzC,KAAK,UAAU,KAAK,QAAQ,KAAK,IAAI,GACrC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI,GACvC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI,GACvC,KAAK,UAAU,KAAK,QAAQ,KAAK,IAAI,GACrC,KAAK,UAAU,KAAK,QAAQ,KAAK,IAAI,GACrC,KAAK,cAAc,KAAK,YAAY,KAAK,IAAI,GAC7C,KAAK,sBAAsB,KAAK,oBAAoB,KAAK,IAAI,GAC7D,KAA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KAAK,eAAc,GACnB,KAAK,mBAAmB;AAAA,EAC1B;AAAA;AAAA,EAGA,UAAU;AACR,SAAK,cAAa,GAClB,KAAK,WAAW,SAAS,GACzB,OAAO,KAAK;AAAA,EACd;AACF;AACA3B,EAAM,YAAYV;","x_google_ignoreList":[0]}
|
package/dist/index310.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
|
|
2
|
+
export {
|
|
3
|
+
a as fullWidthClassName,
|
|
4
|
+
l as noScrollbarsClassName,
|
|
5
|
+
e as removedBarSizeVariable,
|
|
6
|
+
r as zeroRightClassName
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index310.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index310.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"AAAU,IAACA,IAAqB,6BACrBC,IAAqB,2BACrBC,IAAwB,2BAKxBC,IAAyB;","x_google_ignoreList":[0]}
|
package/dist/index311.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index311.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n"],"names":["effectCar","createSidecarMedium"],"mappings":";AACU,IAACA,IAAYC,EAAmB;","x_google_ignoreList":[0]}
|
package/dist/index312.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { assignRef as o } from "./index346.js";
|
|
3
|
+
import { useCallbackRef as l } from "./index347.js";
|
|
4
|
+
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function v(e, m) {
|
|
6
|
+
var t = l(null, function(n) {
|
|
7
|
+
return e.forEach(function(u) {
|
|
8
|
+
return o(u, n);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
return s(function() {
|
|
12
|
+
var n = c.get(t);
|
|
13
|
+
if (n) {
|
|
14
|
+
var u = new Set(n), r = new Set(e), i = t.current;
|
|
15
|
+
u.forEach(function(a) {
|
|
16
|
+
r.has(a) || o(a, null);
|
|
17
|
+
}), r.forEach(function(a) {
|
|
18
|
+
u.has(a) || o(a, i);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
c.set(t, e);
|
|
22
|
+
}, [e]), t;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
v as useMergeRefs
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=index312.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index312.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js"],"sourcesContent":["import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return <div ref={domRef}>...</div>\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n });\n // handle refs changes - added or removed\n useIsomorphicLayoutEffect(function () {\n var oldValue = currentValues.get(callbackRef);\n if (oldValue) {\n var prevRefs_1 = new Set(oldValue);\n var nextRefs_1 = new Set(refs);\n var current_1 = callbackRef.current;\n prevRefs_1.forEach(function (ref) {\n if (!nextRefs_1.has(ref)) {\n assignRef(ref, null);\n }\n });\n nextRefs_1.forEach(function (ref) {\n if (!prevRefs_1.has(ref)) {\n assignRef(ref, current_1);\n }\n });\n }\n currentValues.set(callbackRef, refs);\n }, [refs]);\n return callbackRef;\n}\n"],"names":["useIsomorphicLayoutEffect","React","currentValues","useMergeRefs","refs","defaultValue","callbackRef","useCallbackRef","newValue","ref","assignRef","oldValue","prevRefs_1","nextRefs_1","current_1"],"mappings":";;;AAGA,IAAIA,IAA4B,OAAO,SAAW,MAAcC,EAAM,kBAAkBA,EAAM,WAC1FC,IAAgB,oBAAI,QAAO;AAexB,SAASC,EAAaC,GAAMC,GAAc;AAC7C,MAAIC,IAAcC,EAA+B,MAAM,SAAUC,GAAU;AACvE,WAAOJ,EAAK,QAAQ,SAAUK,GAAK;AAAE,aAAOC,EAAUD,GAAKD,CAAQ;AAAA,IAAG,CAAC;AAAA,EAC3E,CAAC;AAED,SAAAR,EAA0B,WAAY;AAClC,QAAIW,IAAWT,EAAc,IAAII,CAAW;AAC5C,QAAIK,GAAU;AACV,UAAIC,IAAa,IAAI,IAAID,CAAQ,GAC7BE,IAAa,IAAI,IAAIT,CAAI,GACzBU,IAAYR,EAAY;AAC5B,MAAAM,EAAW,QAAQ,SAAUH,GAAK;AAC9B,QAAKI,EAAW,IAAIJ,CAAG,KACnBC,EAAUD,GAAK,IAAI;AAAA,MAE3B,CAAC,GACDI,EAAW,QAAQ,SAAUJ,GAAK;AAC9B,QAAKG,EAAW,IAAIH,CAAG,KACnBC,EAAUD,GAAKK,CAAS;AAAA,MAEhC,CAAC;AAAA,IACL;AACA,IAAAZ,EAAc,IAAII,GAAaF,CAAI;AAAA,EACvC,GAAG,CAACA,CAAI,CAAC,GACFE;AACX;","x_google_ignoreList":[0]}
|
package/dist/index313.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { __spreadArray as N } from "./index204.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { RemoveScrollBar as W } from "./index325.js";
|
|
4
|
+
import { styleSingleton as F } from "./index326.js";
|
|
5
|
+
import { nonPassive as s } from "./index327.js";
|
|
6
|
+
import { locationCouldBeScrolled as B, handleScroll as K } from "./index328.js";
|
|
7
|
+
var k = function(e) {
|
|
8
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
9
|
+
}, M = function(e) {
|
|
10
|
+
return [e.deltaX, e.deltaY];
|
|
11
|
+
}, X = function(e) {
|
|
12
|
+
return e && "current" in e ? e.current : e;
|
|
13
|
+
}, O = function(e, c) {
|
|
14
|
+
return e[0] === c[0] && e[1] === c[1];
|
|
15
|
+
}, Q = function(e) {
|
|
16
|
+
return `
|
|
17
|
+
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
18
|
+
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
19
|
+
`);
|
|
20
|
+
}, Z = 0, f = [];
|
|
21
|
+
function J(e) {
|
|
22
|
+
var c = n.useRef([]), R = n.useRef([0, 0]), m = n.useRef(), h = n.useState(Z++)[0], g = n.useState(F)[0], S = n.useRef(e);
|
|
23
|
+
n.useEffect(function() {
|
|
24
|
+
S.current = e;
|
|
25
|
+
}, [e]), n.useEffect(function() {
|
|
26
|
+
if (e.inert) {
|
|
27
|
+
document.body.classList.add("block-interactivity-".concat(h));
|
|
28
|
+
var t = N([e.lockRef.current], (e.shards || []).map(X), !0).filter(Boolean);
|
|
29
|
+
return t.forEach(function(r) {
|
|
30
|
+
return r.classList.add("allow-interactivity-".concat(h));
|
|
31
|
+
}), function() {
|
|
32
|
+
document.body.classList.remove("block-interactivity-".concat(h)), t.forEach(function(r) {
|
|
33
|
+
return r.classList.remove("allow-interactivity-".concat(h));
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}, [e.inert, e.lockRef.current, e.shards]);
|
|
38
|
+
var C = n.useCallback(function(t, r) {
|
|
39
|
+
if ("touches" in t && t.touches.length === 2 || t.type === "wheel" && t.ctrlKey)
|
|
40
|
+
return !S.current.allowPinchZoom;
|
|
41
|
+
var l = k(t), u = R.current, o = "deltaX" in t ? t.deltaX : u[0] - l[0], i = "deltaY" in t ? t.deltaY : u[1] - l[1], a, v = t.target, d = Math.abs(o) > Math.abs(i) ? "h" : "v";
|
|
42
|
+
if ("touches" in t && d === "h" && v.type === "range")
|
|
43
|
+
return !1;
|
|
44
|
+
var P = window.getSelection(), E = P && P.anchorNode, I = E ? E === v || E.contains(v) : !1;
|
|
45
|
+
if (I)
|
|
46
|
+
return !1;
|
|
47
|
+
var b = B(d, v);
|
|
48
|
+
if (!b)
|
|
49
|
+
return !0;
|
|
50
|
+
if (b ? a = d : (a = d === "v" ? "h" : "v", b = B(d, v)), !b)
|
|
51
|
+
return !1;
|
|
52
|
+
if (!m.current && "changedTouches" in t && (o || i) && (m.current = a), !a)
|
|
53
|
+
return !0;
|
|
54
|
+
var Y = m.current || a;
|
|
55
|
+
return K(Y, r, t, Y === "h" ? o : i);
|
|
56
|
+
}, []), y = n.useCallback(function(t) {
|
|
57
|
+
var r = t;
|
|
58
|
+
if (!(!f.length || f[f.length - 1] !== g)) {
|
|
59
|
+
var l = "deltaY" in r ? M(r) : k(r), u = c.current.filter(function(a) {
|
|
60
|
+
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && O(a.delta, l);
|
|
61
|
+
})[0];
|
|
62
|
+
if (u && u.should) {
|
|
63
|
+
r.cancelable && r.preventDefault();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (!u) {
|
|
67
|
+
var o = (S.current.shards || []).map(X).filter(Boolean).filter(function(a) {
|
|
68
|
+
return a.contains(r.target);
|
|
69
|
+
}), i = o.length > 0 ? C(r, o[0]) : !S.current.noIsolation;
|
|
70
|
+
i && r.cancelable && r.preventDefault();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}, []), w = n.useCallback(function(t, r, l, u) {
|
|
74
|
+
var o = { name: t, delta: r, target: l, should: u, shadowParent: _(l) };
|
|
75
|
+
c.current.push(o), setTimeout(function() {
|
|
76
|
+
c.current = c.current.filter(function(i) {
|
|
77
|
+
return i !== o;
|
|
78
|
+
});
|
|
79
|
+
}, 1);
|
|
80
|
+
}, []), L = n.useCallback(function(t) {
|
|
81
|
+
R.current = k(t), m.current = void 0;
|
|
82
|
+
}, []), T = n.useCallback(function(t) {
|
|
83
|
+
w(t.type, M(t), t.target, C(t, e.lockRef.current));
|
|
84
|
+
}, []), D = n.useCallback(function(t) {
|
|
85
|
+
w(t.type, k(t), t.target, C(t, e.lockRef.current));
|
|
86
|
+
}, []);
|
|
87
|
+
n.useEffect(function() {
|
|
88
|
+
return f.push(g), e.setCallbacks({
|
|
89
|
+
onScrollCapture: T,
|
|
90
|
+
onWheelCapture: T,
|
|
91
|
+
onTouchMoveCapture: D
|
|
92
|
+
}), document.addEventListener("wheel", y, s), document.addEventListener("touchmove", y, s), document.addEventListener("touchstart", L, s), function() {
|
|
93
|
+
f = f.filter(function(t) {
|
|
94
|
+
return t !== g;
|
|
95
|
+
}), document.removeEventListener("wheel", y, s), document.removeEventListener("touchmove", y, s), document.removeEventListener("touchstart", L, s);
|
|
96
|
+
};
|
|
97
|
+
}, []);
|
|
98
|
+
var x = e.removeScrollBar, A = e.inert;
|
|
99
|
+
return n.createElement(
|
|
100
|
+
n.Fragment,
|
|
101
|
+
null,
|
|
102
|
+
A ? n.createElement(g, { styles: Q(h) }) : null,
|
|
103
|
+
x ? n.createElement(W, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function _(e) {
|
|
107
|
+
for (var c = null; e !== null; )
|
|
108
|
+
e instanceof ShadowRoot && (c = e.host, e = e.host), e = e.parentNode;
|
|
109
|
+
return c;
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
J as RemoveScrollSideCar,
|
|
113
|
+
M as getDeltaXY,
|
|
114
|
+
k as getTouchXY
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=index313.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index313.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n var selection = window.getSelection();\n var anchorNode = selection && selection.anchorNode;\n var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n if (isTouchingSelection) {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"names":["getTouchXY","event","getDeltaXY","extractRef","ref","deltaCompare","x","y","generateStyle","id","idCounter","lockStack","RemoveScrollSideCar","props","shouldPreventQueue","React","touchStartRef","activeAxis","Style","styleSingleton","lastProps","allow_1","__spreadArray","el","shouldCancelEvent","parent","touch","touchStart","deltaX","deltaY","currentAxis","target","moveDirection","selection","anchorNode","isTouchingSelection","canBeScrolledInMainDirection","locationCouldBeScrolled","cancelingAxis","handleScroll","shouldPrevent","_event","delta","sourceEvent","e","shardNodes","node","shouldStop","shouldCancel","name","should","getOutermostShadowParent","scrollTouchStart","scrollWheel","scrollTouchMove","nonPassive","inst","removeScrollBar","inert","RemoveScrollBar","shadowParent"],"mappings":";;;;;;AAMU,IAACA,IAAa,SAAUC,GAAO;AACrC,SAAO,oBAAoBA,IAAQ,CAACA,EAAM,eAAe,CAAC,EAAE,SAASA,EAAM,eAAe,CAAC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC;AACjH,GACWC,IAAa,SAAUD,GAAO;AAAE,SAAO,CAACA,EAAM,QAAQA,EAAM,MAAM;AAAG,GAC5EE,IAAa,SAAUC,GAAK;AAC5B,SAAOA,KAAO,aAAaA,IAAMA,EAAI,UAAUA;AACnD,GACIC,IAAe,SAAUC,GAAGC,GAAG;AAAE,S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M,cAAc4C,GAAiB,EAAE,YAAY9C,EAAM,YAAY,SAASA,EAAM,QAAO,CAAE,IAAI;AAAA,EAAI;AAC/H;AACA,SAASsC,EAAyBL,GAAM;AAEpC,WADIc,IAAe,MACZd,MAAS;AACZ,IAAIA,aAAgB,eAChBc,IAAed,EAAK,MACpBA,IAAOA,EAAK,OAEhBA,IAAOA,EAAK;AAEhB,SAAOc;AACX;","x_google_ignoreList":[0]}
|
package/dist/index314.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __rest as o, __assign as d } from "./index204.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
var i = function(r) {
|
|
4
|
+
var e = r.sideCar, a = o(r, ["sideCar"]);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
+
var t = e.read();
|
|
8
|
+
if (!t)
|
|
9
|
+
throw new Error("Sidecar medium not found");
|
|
10
|
+
return n.createElement(t, d({}, a));
|
|
11
|
+
};
|
|
12
|
+
i.isSideCarExport = !0;
|
|
13
|
+
function p(r, e) {
|
|
14
|
+
return r.useMedium(e), i;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
p as exportSidecar
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index314.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index314.js","sources":["../../../node_modules/use-sidecar/dist/es2015/exports.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n"],"names":["SideCar","_a","sideCar","rest","__rest","Target","React","__assign","exportSidecar","medium","exported"],"mappings":";;AAEA,IAAIA,IAAU,SAAUC,GAAI;AACxB,MAAIC,IAAUD,EAAG,SAASE,IAAOC,EAAOH,GAAI,CAAC,SAAS,CAAC;AACvD,MAAI,CAACC;AACD,UAAM,IAAI,MAAM,oEAAoE;AAExF,MAAIG,IAASH,EAAQ,KAAI;AACzB,MAAI,CAACG;AACD,UAAM,IAAI,MAAM,0BAA0B;AAE9C,SAAOC,EAAM,cAAcD,GAAQE,EAAS,CAAA,GAAIJ,CAAI,CAAC;AACzD;AACAH,EAAQ,kBAAkB;AACnB,SAASQ,EAAcC,GAAQC,GAAU;AAC5C,SAAAD,EAAO,UAAUC,CAAQ,GAClBV;AACX;","x_google_ignoreList":[0]}
|