@okam/stack-ui 1.30.0 → 1.31.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/CHANGELOG.md +771 -0
- package/README.md +8 -0
- package/components/Popover/index.d.ts +3 -1
- package/components/fields/DatePicker/interface.d.ts +1 -1
- package/components/fields/TextInputField/interface.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +25 -23
- package/index10.js +1 -1
- package/index10.mjs +1 -0
- package/index101.js +1 -1
- package/index101.mjs +6 -6
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index106.js +1 -1
- package/index106.mjs +1 -1
- package/index110.js +1 -1
- package/index110.mjs +39 -34
- package/index111.js +1 -2
- package/index111.mjs +36 -11
- package/index112.js +1 -1
- package/index112.mjs +15 -7
- package/index113.js +1 -1
- package/index113.mjs +37 -20
- package/index114.js +2 -1
- package/index114.mjs +12 -38
- package/index115.js +1 -1
- package/index115.mjs +113 -49
- package/index116.js +1 -1
- package/index116.mjs +74 -40
- package/index117.js +1 -1
- package/index117.mjs +7 -13
- package/index118.js +1 -1
- package/index118.mjs +23 -30
- package/index119.js +1 -1
- package/index119.mjs +40 -20
- package/index120.js +1 -1
- package/index120.mjs +152 -9
- package/index121.js +1 -1
- package/index121.mjs +171 -27
- package/index122.js +1 -1
- package/index122.mjs +50 -15
- package/index123.js +1 -1
- package/index123.mjs +41 -17
- package/index124.js +1 -1
- package/index124.mjs +4 -20
- package/index125.js +1 -1
- package/index125.mjs +222 -11
- package/index126.js +1 -2
- package/index126.mjs +13 -21
- package/index127.js +1 -1
- package/index127.mjs +30 -11
- package/index128.js +1 -1
- package/index128.mjs +20 -46
- package/index129.js +1 -1
- package/index129.mjs +9 -241
- package/index13.js +1 -1
- package/index13.mjs +9 -8
- package/index130.js +1 -2
- package/index130.mjs +30 -13
- package/index131.js +1 -1
- package/index131.mjs +13 -28
- package/index132.js +1 -1
- package/index132.mjs +17 -51
- package/index133.js +1 -1
- package/index133.mjs +20 -26
- package/index134.js +1 -1
- package/index134.mjs +11 -21
- package/index135.js +2 -1
- package/index135.mjs +21 -61
- package/index136.js +1 -1
- package/index136.mjs +20 -94
- package/index137.js +1 -1
- package/index137.mjs +6 -34
- package/index138.js +1 -1
- package/index138.mjs +12 -122
- package/index139.js +1 -1
- package/index139.mjs +46 -28
- package/index140.js +1 -1
- package/index140.mjs +237 -121
- package/index141.js +2 -1
- package/index141.mjs +13 -135
- package/index142.js +1 -1
- package/index142.mjs +30 -15
- package/index143.js +1 -1
- package/index143.mjs +48 -92
- package/index144.js +1 -1
- package/index144.mjs +21 -105
- package/index145.js +1 -1
- package/index145.mjs +39 -5
- package/index146.js +1 -1
- package/index146.mjs +25 -3
- package/index147.js +1 -1
- package/index147.mjs +252 -122
- package/index148.js +1 -1
- package/index148.mjs +105 -28
- package/index149.js +1 -1
- package/index149.mjs +326 -44
- package/index15.js +1 -1
- package/index15.mjs +1 -1
- package/index150.js +1 -1
- package/index150.mjs +24 -44
- package/index151.js +1 -1
- package/index151.mjs +113 -36
- package/index152.js +1 -1
- package/index152.mjs +102 -108
- package/index153.js +1 -1
- package/index153.mjs +82 -76
- package/index154.js +1 -1
- package/index154.mjs +26 -101
- package/index155.js +1 -1
- package/index155.mjs +22 -98
- package/index156.js +1 -1
- package/index156.mjs +16 -196
- package/index157.js +1 -1
- package/index157.mjs +122 -61
- package/index158.js +1 -1
- package/index158.mjs +70 -138
- package/index159.js +1 -1
- package/index159.mjs +342 -112
- package/index16.js +1 -1
- package/index16.mjs +1 -1
- package/index160.js +1 -1
- package/index160.mjs +42 -214
- package/index161.js +1 -1
- package/index161.mjs +29 -188
- package/index162.js +1 -1
- package/index162.mjs +27 -69
- package/index163.js +1 -1
- package/index163.mjs +72 -259
- package/index164.js +1 -1
- package/index164.mjs +46 -93
- package/index165.js +1 -1
- package/index165.mjs +21 -174
- package/index166.js +1 -1
- package/index166.mjs +26 -81
- package/index167.js +1 -1
- package/index167.mjs +31 -56
- package/index168.js +1 -1
- package/index168.mjs +27 -124
- package/index169.js +1 -1
- package/index169.mjs +214 -114
- package/index17.js +1 -1
- package/index17.mjs +16 -16
- package/index170.js +1 -1
- package/index170.mjs +129 -119
- package/index171.js +1 -1
- package/index171.mjs +13 -71
- package/index172.js +1 -1
- package/index172.mjs +4 -111
- package/index173.js +1 -1
- package/index173.mjs +6 -52
- package/index174.js +1 -1
- package/index174.mjs +37 -93
- package/index175.js +1 -1
- package/index175.mjs +18 -70
- package/index176.js +1 -1
- package/index176.mjs +41 -54
- package/index177.js +1 -1
- package/index177.mjs +152 -98
- package/index178.js +1 -5
- package/index178.mjs +97 -77
- package/index179.js +1 -1
- package/index179.mjs +16 -2010
- package/index180.js +1 -1
- package/index180.mjs +133 -56
- package/index181.js +1 -1
- package/index181.mjs +92 -184
- package/index182.js +1 -1
- package/index182.mjs +26 -5
- package/index183.js +1 -1
- package/index183.mjs +380 -129
- package/index184.js +1 -1
- package/index184.mjs +89 -173
- package/index185.js +1 -1
- package/index185.mjs +210 -8
- package/index186.js +1 -1
- package/index186.mjs +24 -3
- package/index187.js +1 -1
- package/index187.mjs +4 -36
- package/index188.js +1 -1
- package/index188.mjs +3 -5
- package/index189.js +1 -1
- package/index189.mjs +124 -28
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +29 -6
- package/index191.js +1 -1
- package/index191.mjs +45 -334
- package/index192.js +1 -1
- package/index192.mjs +44 -183
- package/index193.js +1 -1
- package/index193.mjs +37 -8
- package/index194.js +1 -1
- package/index194.mjs +112 -25
- package/index195.js +1 -1
- package/index195.mjs +76 -54
- package/index196.js +1 -1
- package/index196.mjs +101 -46
- package/index197.js +1 -1
- package/index197.mjs +98 -111
- package/index198.js +1 -1
- package/index198.mjs +72 -32
- package/index199.js +1 -1
- package/index199.mjs +95 -5
- package/index2.js +1 -1
- package/index2.mjs +51 -50
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +153 -26
- package/index201.js +1 -1
- package/index201.mjs +72 -7
- package/index202.js +1 -1
- package/index202.mjs +42 -7
- package/index203.js +1 -1
- package/index203.mjs +5 -7
- package/index204.js +1 -1
- package/index204.mjs +61 -4
- package/index205.js +1 -1
- package/index205.mjs +59 -5
- package/index206.js +1 -1
- package/index206.mjs +202 -8
- package/index207.js +1 -0
- package/index207.mjs +67 -0
- package/index208.js +1 -0
- package/index208.mjs +146 -0
- package/index209.js +1 -0
- package/index209.mjs +127 -0
- package/index21.js +1 -1
- package/index21.mjs +1 -1
- package/index210.js +1 -0
- package/index210.mjs +227 -0
- package/index211.js +1 -0
- package/index211.mjs +193 -0
- package/index212.js +1 -0
- package/index212.mjs +72 -0
- package/index213.js +1 -0
- package/index213.mjs +282 -0
- package/index214.js +1 -0
- package/index214.mjs +101 -0
- package/index215.js +1 -0
- package/index215.mjs +191 -0
- package/index216.js +1 -0
- package/index216.mjs +87 -0
- package/index217.js +1 -0
- package/index217.mjs +61 -0
- package/index218.js +1 -0
- package/index218.mjs +129 -0
- package/index219.js +1 -0
- package/index219.mjs +119 -0
- package/index220.js +1 -0
- package/index220.mjs +125 -0
- package/index221.js +1 -0
- package/index221.mjs +75 -0
- package/index222.js +1 -0
- package/index222.mjs +113 -0
- package/index223.js +1 -0
- package/index223.mjs +55 -0
- package/index224.js +1 -0
- package/index224.mjs +96 -0
- package/index225.js +1 -0
- package/index225.mjs +73 -0
- package/index226.js +1 -0
- package/index226.mjs +59 -0
- package/index227.js +1 -0
- package/index227.mjs +102 -0
- package/index228.js +5 -0
- package/index228.mjs +83 -0
- package/index229.js +1 -0
- package/index229.mjs +2028 -0
- package/index23.js +1 -1
- package/index23.mjs +43 -42
- package/index230.js +1 -0
- package/index230.mjs +62 -0
- package/index231.js +1 -0
- package/index231.mjs +191 -0
- package/index232.js +1 -0
- package/index232.mjs +22 -0
- package/index233.js +1 -0
- package/index233.mjs +22 -0
- package/index234.js +1 -0
- package/index234.mjs +22 -0
- package/index235.js +1 -0
- package/index235.mjs +22 -0
- package/index236.js +1 -0
- package/index236.mjs +22 -0
- package/index237.js +1 -0
- package/index237.mjs +22 -0
- package/index238.js +1 -0
- package/index238.mjs +22 -0
- package/index239.js +1 -0
- package/index239.mjs +22 -0
- package/index24.js +1 -1
- package/index24.mjs +45 -44
- package/index240.js +1 -0
- package/index240.mjs +22 -0
- package/index241.js +1 -0
- package/index241.mjs +22 -0
- package/index242.js +1 -0
- package/index242.mjs +22 -0
- package/index243.js +1 -0
- package/index243.mjs +22 -0
- package/index244.js +1 -0
- package/index244.mjs +22 -0
- package/index245.js +1 -0
- package/index245.mjs +22 -0
- package/index246.js +1 -0
- package/index246.mjs +22 -0
- package/index247.js +1 -0
- package/index247.mjs +22 -0
- package/index248.js +1 -0
- package/index248.mjs +22 -0
- package/index249.js +1 -0
- package/index249.mjs +22 -0
- package/index250.js +1 -0
- package/index250.mjs +22 -0
- package/index251.js +1 -0
- package/index251.mjs +22 -0
- package/index252.js +1 -0
- package/index252.mjs +22 -0
- package/index253.js +1 -0
- package/index253.mjs +22 -0
- package/index254.js +1 -0
- package/index254.mjs +22 -0
- package/index255.js +1 -0
- package/index255.mjs +22 -0
- package/index256.js +1 -0
- package/index256.mjs +22 -0
- package/index257.js +1 -0
- package/index257.mjs +22 -0
- package/index258.js +1 -0
- package/index258.mjs +22 -0
- package/index259.js +1 -0
- package/index259.mjs +22 -0
- package/index26.js +1 -1
- package/index26.mjs +19 -19
- package/index260.js +1 -0
- package/index260.mjs +22 -0
- package/index261.js +1 -0
- package/index261.mjs +22 -0
- package/index262.js +1 -0
- package/index262.mjs +22 -0
- package/index263.js +1 -0
- package/index263.mjs +22 -0
- package/index264.js +1 -0
- package/index264.mjs +22 -0
- package/index265.js +1 -0
- package/index265.mjs +22 -0
- package/index266.js +1 -0
- package/index266.mjs +74 -0
- package/index267.js +1 -0
- package/index267.mjs +47 -0
- package/index268.js +1 -0
- package/index268.mjs +32 -0
- package/index269.js +1 -0
- package/index269.mjs +7 -0
- package/index27.js +1 -1
- package/index27.mjs +3 -3
- package/index270.js +1 -0
- package/index270.mjs +51 -0
- package/index271.js +1 -0
- package/index271.mjs +12 -0
- package/index272.js +1 -0
- package/index272.mjs +18 -0
- package/index273.js +1 -0
- package/index273.mjs +18 -0
- package/index274.js +1 -0
- package/index274.mjs +18 -0
- package/index275.js +1 -0
- package/index275.mjs +18 -0
- package/index276.js +1 -0
- package/index276.mjs +18 -0
- package/index277.js +1 -0
- package/index277.mjs +18 -0
- package/index278.js +1 -0
- package/index278.mjs +18 -0
- package/index279.js +1 -0
- package/index279.mjs +18 -0
- package/index28.js +1 -1
- package/index28.mjs +1 -1
- package/index280.js +1 -0
- package/index280.mjs +18 -0
- package/index281.js +1 -0
- package/index281.mjs +18 -0
- package/index282.js +1 -0
- package/index282.mjs +18 -0
- package/index283.js +1 -0
- package/index283.mjs +18 -0
- package/index284.js +1 -0
- package/index284.mjs +18 -0
- package/index285.js +1 -0
- package/index285.mjs +18 -0
- package/index286.js +1 -0
- package/index286.mjs +18 -0
- package/index287.js +1 -0
- package/index287.mjs +18 -0
- package/index288.js +1 -0
- package/index288.mjs +18 -0
- package/index289.js +1 -0
- package/index289.mjs +18 -0
- package/index29.js +1 -1
- package/index29.mjs +1 -1
- package/index290.js +1 -0
- package/index290.mjs +18 -0
- package/index291.js +1 -0
- package/index291.mjs +18 -0
- package/index292.js +1 -0
- package/index292.mjs +18 -0
- package/index293.js +1 -0
- package/index293.mjs +18 -0
- package/index294.js +1 -0
- package/index294.mjs +18 -0
- package/index295.js +1 -0
- package/index295.mjs +18 -0
- package/index296.js +1 -0
- package/index296.mjs +18 -0
- package/index297.js +1 -0
- package/index297.mjs +18 -0
- package/index298.js +1 -0
- package/index298.mjs +18 -0
- package/index299.js +1 -0
- package/index299.mjs +18 -0
- package/index300.js +1 -0
- package/index300.mjs +18 -0
- package/index301.js +1 -0
- package/index301.mjs +18 -0
- package/index302.js +1 -0
- package/index302.mjs +18 -0
- package/index303.js +1 -0
- package/index303.mjs +18 -0
- package/index304.js +1 -0
- package/index304.mjs +18 -0
- package/index305.js +1 -0
- package/index305.mjs +18 -0
- package/index306.js +1 -0
- package/index306.mjs +133 -0
- package/index307.js +1 -0
- package/index307.mjs +193 -0
- package/index308.js +1 -0
- package/index308.mjs +12 -0
- package/index309.js +1 -0
- package/index309.mjs +6 -0
- package/index31.js +1 -1
- package/index31.mjs +2 -2
- package/index310.js +1 -0
- package/index310.mjs +39 -0
- package/index311.js +1 -0
- package/index311.mjs +8 -0
- package/index312.js +1 -0
- package/index312.mjs +32 -0
- package/index313.js +1 -0
- package/index313.mjs +9 -0
- package/index314.js +1 -0
- package/index314.mjs +143 -0
- package/index315.js +1 -0
- package/index315.mjs +200 -0
- package/index316.js +1 -0
- package/index316.mjs +25 -0
- package/index317.js +1 -0
- package/index317.mjs +31 -0
- package/index318.js +1 -0
- package/index318.mjs +49 -0
- package/index319.js +1 -0
- package/index319.mjs +51 -0
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index320.js +1 -0
- package/index320.mjs +103 -0
- package/index321.js +1 -0
- package/index321.mjs +8 -0
- package/index322.js +1 -0
- package/index322.mjs +74 -0
- package/index323.js +1 -0
- package/index323.mjs +61 -0
- package/index324.js +1 -0
- package/index324.mjs +10 -0
- package/index325.js +1 -0
- package/index325.mjs +14 -0
- package/index326.js +1 -0
- package/index326.mjs +50 -0
- package/index327.js +1 -0
- package/index327.mjs +27 -0
- package/index328.js +1 -0
- package/index328.mjs +8 -0
- package/index329.js +1 -0
- package/index329.mjs +17 -0
- package/index330.js +1 -0
- package/index330.mjs +27 -0
- package/index331.js +1 -0
- package/index331.mjs +31 -0
- package/index332.js +1 -0
- package/index332.mjs +34 -0
- package/index333.js +1 -0
- package/index333.mjs +12 -0
- package/index334.js +1 -0
- package/index334.mjs +8 -0
- package/index335.js +1 -0
- package/index335.mjs +10 -0
- package/index336.js +1 -0
- package/index336.mjs +16 -0
- package/index337.js +1 -0
- package/index337.mjs +11 -0
- package/index338.js +1 -0
- package/index338.mjs +9 -0
- package/index339.js +1 -0
- package/index339.mjs +71 -0
- package/index34.js +1 -1
- package/index34.mjs +1 -1
- package/index340.js +1 -0
- package/index340.mjs +33 -0
- package/index341.js +1 -0
- package/index341.mjs +9 -0
- package/index342.js +1 -0
- package/index342.mjs +9 -0
- package/index343.js +1 -0
- package/index343.mjs +23 -0
- package/index344.js +1 -0
- package/index344.mjs +6 -0
- package/index345.js +1 -0
- package/index345.mjs +74 -0
- package/index346.js +1 -0
- package/index346.mjs +120 -0
- package/index347.js +1 -0
- package/index347.mjs +10 -0
- package/index348.js +1 -0
- package/index348.mjs +10 -0
- package/index349.js +1 -0
- package/index349.mjs +10 -0
- package/index35.js +1 -1
- package/index35.mjs +2 -2
- package/index350.js +1 -0
- package/index350.mjs +10 -0
- package/index351.js +1 -0
- package/index351.mjs +10 -0
- package/index352.js +1 -0
- package/index352.mjs +10 -0
- package/index353.js +1 -0
- package/index353.mjs +10 -0
- package/index354.js +1 -0
- package/index354.mjs +10 -0
- package/index355.js +1 -0
- package/index355.mjs +10 -0
- package/index356.js +1 -0
- package/index356.mjs +10 -0
- package/index357.js +1 -0
- package/index357.mjs +10 -0
- package/index358.js +1 -0
- package/index358.mjs +10 -0
- package/index359.js +1 -0
- package/index359.mjs +10 -0
- package/index360.js +1 -0
- package/index360.mjs +10 -0
- package/index361.js +1 -0
- package/index361.mjs +10 -0
- package/index362.js +1 -0
- package/index362.mjs +10 -0
- package/index363.js +1 -0
- package/index363.mjs +10 -0
- package/index364.js +1 -0
- package/index364.mjs +10 -0
- package/index365.js +1 -0
- package/index365.mjs +10 -0
- package/index366.js +1 -0
- package/index366.mjs +10 -0
- package/index367.js +1 -0
- package/index367.mjs +10 -0
- package/index368.js +1 -0
- package/index368.mjs +10 -0
- package/index369.js +1 -0
- package/index369.mjs +10 -0
- package/index370.js +1 -0
- package/index370.mjs +10 -0
- package/index371.js +1 -0
- package/index371.mjs +10 -0
- package/index372.js +1 -0
- package/index372.mjs +10 -0
- package/index373.js +1 -0
- package/index373.mjs +10 -0
- package/index374.js +1 -0
- package/index374.mjs +10 -0
- package/index375.js +1 -0
- package/index375.mjs +10 -0
- package/index376.js +1 -0
- package/index376.mjs +10 -0
- package/index377.js +1 -0
- package/index377.mjs +10 -0
- package/index378.js +1 -0
- package/index378.mjs +10 -0
- package/index379.js +1 -0
- package/index379.mjs +10 -0
- package/index380.js +1 -0
- package/index380.mjs +10 -0
- package/index381.js +1 -0
- package/index381.mjs +8 -0
- package/index382.js +1 -0
- package/index382.mjs +7 -0
- package/index383.js +1 -0
- package/index383.mjs +7 -0
- package/index384.js +1 -0
- package/index384.mjs +7 -0
- package/index385.js +1 -0
- package/index385.mjs +7 -0
- package/index386.js +1 -0
- package/index386.mjs +7 -0
- package/index387.js +1 -0
- package/index387.mjs +7 -0
- package/index388.js +1 -0
- package/index388.mjs +7 -0
- package/index389.js +1 -0
- package/index389.mjs +7 -0
- package/index39.js +1 -1
- package/index39.mjs +1 -1
- package/index390.js +1 -0
- package/index390.mjs +7 -0
- package/index391.js +1 -0
- package/index391.mjs +7 -0
- package/index392.js +1 -0
- package/index392.mjs +7 -0
- package/index393.js +1 -0
- package/index393.mjs +7 -0
- package/index394.js +1 -0
- package/index394.mjs +7 -0
- package/index395.js +1 -0
- package/index395.mjs +7 -0
- package/index396.js +1 -0
- package/index396.mjs +7 -0
- package/index397.js +1 -0
- package/index397.mjs +7 -0
- package/index398.js +1 -0
- package/index398.mjs +7 -0
- package/index399.js +1 -0
- package/index399.mjs +7 -0
- package/index4.js +1 -1
- package/index4.mjs +9 -9
- package/index40.js +1 -1
- package/index40.mjs +1 -1
- package/index400.js +1 -0
- package/index400.mjs +7 -0
- package/index401.js +1 -0
- package/index401.mjs +7 -0
- package/index402.js +1 -0
- package/index402.mjs +7 -0
- package/index403.js +1 -0
- package/index403.mjs +7 -0
- package/index404.js +1 -0
- package/index404.mjs +7 -0
- package/index405.js +1 -0
- package/index405.mjs +7 -0
- package/index406.js +1 -0
- package/index406.mjs +7 -0
- package/index407.js +1 -0
- package/index407.mjs +7 -0
- package/index408.js +1 -0
- package/index408.mjs +7 -0
- package/index409.js +1 -0
- package/index409.mjs +7 -0
- package/index41.js +1 -1
- package/index41.mjs +1 -1
- package/index410.js +1 -0
- package/index410.mjs +7 -0
- package/index411.js +1 -0
- package/index411.mjs +7 -0
- package/index412.js +1 -0
- package/index412.mjs +7 -0
- package/index413.js +1 -0
- package/index413.mjs +7 -0
- package/index414.js +1 -0
- package/index414.mjs +7 -0
- package/index415.js +1 -0
- package/index415.mjs +7 -0
- package/index416.js +1 -0
- package/index416.mjs +6 -0
- package/index417.js +1 -0
- package/index417.mjs +7 -0
- package/index418.js +1 -0
- package/index418.mjs +11 -0
- package/index419.js +1 -0
- package/index419.mjs +7 -0
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index420.js +1 -0
- package/index420.mjs +7 -0
- package/index421.js +1 -0
- package/index421.mjs +7 -0
- package/index422.js +1 -0
- package/index422.mjs +7 -0
- package/index423.js +1 -0
- package/index423.mjs +7 -0
- package/index424.js +1 -0
- package/index424.mjs +7 -0
- package/index425.js +1 -0
- package/index425.mjs +7 -0
- package/index426.js +1 -0
- package/index426.mjs +7 -0
- package/index427.js +1 -0
- package/index427.mjs +7 -0
- package/index428.js +1 -0
- package/index428.mjs +7 -0
- package/index429.js +1 -0
- package/index429.mjs +7 -0
- package/index43.js +1 -1
- package/index43.mjs +1 -1
- package/index430.js +1 -0
- package/index430.mjs +7 -0
- package/index431.js +1 -0
- package/index431.mjs +7 -0
- package/index432.js +1 -0
- package/index432.mjs +7 -0
- package/index433.js +1 -0
- package/index433.mjs +7 -0
- package/index434.js +1 -0
- package/index434.mjs +7 -0
- package/index435.js +1 -0
- package/index435.mjs +7 -0
- package/index436.js +1 -0
- package/index436.mjs +7 -0
- package/index437.js +1 -0
- package/index437.mjs +7 -0
- package/index438.js +1 -0
- package/index438.mjs +7 -0
- package/index439.js +1 -0
- package/index439.mjs +7 -0
- package/index44.js +1 -1
- package/index44.mjs +1 -1
- package/index440.js +1 -0
- package/index440.mjs +7 -0
- package/index441.js +1 -0
- package/index441.mjs +7 -0
- package/index442.js +1 -0
- package/index442.mjs +7 -0
- package/index443.js +1 -0
- package/index443.mjs +7 -0
- package/index444.js +1 -0
- package/index444.mjs +7 -0
- package/index445.js +1 -0
- package/index445.mjs +7 -0
- package/index446.js +1 -0
- package/index446.mjs +7 -0
- package/index447.js +1 -0
- package/index447.mjs +7 -0
- package/index448.js +1 -0
- package/index448.mjs +7 -0
- package/index449.js +1 -0
- package/index449.mjs +7 -0
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index450.js +1 -0
- package/index450.mjs +7 -0
- package/index451.js +1 -0
- package/index451.mjs +7 -0
- package/index452.js +1 -0
- package/index452.mjs +7 -0
- package/index46.js +1 -1
- package/index46.mjs +1 -1
- package/index47.js +1 -1
- package/index47.mjs +1 -1
- package/index48.js +1 -1
- package/index48.mjs +1 -1
- package/index49.js +1 -1
- package/index49.mjs +1 -1
- package/index50.js +1 -1
- package/index50.mjs +1 -1
- package/index51.js +1 -1
- package/index51.mjs +1 -1
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index53.js +1 -1
- package/index53.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +1 -1
- package/index55.js +1 -1
- package/index55.mjs +1 -1
- package/index56.js +1 -1
- package/index56.mjs +1 -1
- package/index57.js +1 -1
- package/index57.mjs +1 -1
- package/index58.js +1 -1
- package/index58.mjs +1 -1
- package/index59.js +1 -1
- package/index59.mjs +1 -1
- package/index6.js +1 -1
- package/index6.mjs +34 -34
- package/index60.js +1 -1
- package/index60.mjs +1 -1
- package/index61.js +1 -1
- package/index61.mjs +1 -1
- package/index62.js +1 -1
- package/index62.mjs +1 -1
- package/index64.js +1 -1
- package/index64.mjs +1 -1
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index71.js +1 -1
- package/index71.mjs +1 -1
- package/index72.js +1 -1
- package/index72.mjs +24 -20
- package/index79.js +1 -1
- package/index79.mjs +5 -2
- package/index80.js +1 -6
- package/index80.mjs +2 -94
- package/index81.js +6 -1
- package/index81.mjs +79 -54
- package/index82.js +1 -1
- package/index82.mjs +61 -33
- package/index83.js +1 -42
- package/index83.mjs +34 -67
- package/index84.js +42 -1
- package/index84.mjs +69 -154
- package/index85.js +1 -9
- package/index85.mjs +149 -47
- package/index86.js +9 -1
- package/index86.mjs +48 -36
- package/index87.js +1 -1
- package/index87.mjs +40 -8
- package/index88.js +1 -1
- package/index88.mjs +9 -31
- package/index89.js +1 -1
- package/index89.mjs +38 -6
- package/index90.js +1 -12
- package/index90.mjs +6 -40
- package/index91.js +12 -1
- package/index91.mjs +36 -25
- package/index92.js +1 -1
- package/index92.mjs +24 -8
- package/index93.js +1 -7
- package/index93.mjs +7 -13
- package/index94.js +6 -14
- package/index94.mjs +13 -65
- package/index95.js +15 -1
- package/index95.mjs +71 -7
- package/index96.js +1 -16
- package/index96.mjs +7 -25
- package/index97.js +16 -1
- package/index97.mjs +20 -37
- package/index98.js +1 -1
- package/index98.mjs +40 -43
- package/index99.js +1 -1
- package/index99.mjs +14 -14
- package/logger.d.ts +2 -0
- package/package.json +40 -2
- package/providers/Translation/index.d.ts +2 -2
- package/theme/Alerts/index.d.ts +120 -120
- package/theme/DatePicker/index.d.ts +3 -2
- package/theme/LightBox/index.d.ts +80 -80
package/index163.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const ae=require("./index183.js"),u=require("./index184.js");function se(K){let{swiper:i,extendParams:N,on:f,emit:Q}=K;const X=ae.a();N({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),i.zoom={enabled:!1};let m=1,w=!1,Y,y;const r=[],e={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},t={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},o={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let S=1;Object.defineProperty(i.zoom,"scale",{get(){return S},set(a){if(S!==a){const n=e.imageEl,s=e.slideEl;Q("zoomChange",a,n,s)}S=a}});function L(){if(r.length<2)return 1;const a=r[0].pageX,n=r[0].pageY,s=r[1].pageX,l=r[1].pageY;return Math.sqrt((s-a)**2+(l-n)**2)}function U(){if(r.length<2)return{x:null,y:null};const a=e.imageEl.getBoundingClientRect();return[(r[0].pageX+(r[1].pageX-r[0].pageX)/2-a.x-X.scrollX)/m,(r[0].pageY+(r[1].pageY-r[0].pageY)/2-a.y-X.scrollY)/m]}function V(){return i.isElement?"swiper-slide":`.${i.params.slideClass}`}function z(a){const n=V();return!!(a.target.matches(n)||i.slides.filter(s=>s.contains(a.target)).length>0)}function ee(a){const n=`.${i.params.zoom.containerClass}`;return!!(a.target.matches(n)||[...i.hostEl.querySelectorAll(n)].filter(s=>s.contains(a.target)).length>0)}function R(a){if(a.pointerType==="mouse"&&r.splice(0,r.length),!z(a))return;const n=i.params.zoom;if(Y=!1,y=!1,r.push(a),!(r.length<2)){if(Y=!0,e.scaleStart=L(),!e.slideEl){e.slideEl=a.target.closest(`.${i.params.slideClass}, swiper-slide`),e.slideEl||(e.slideEl=i.slides[i.activeIndex]);let s=e.slideEl.querySelector(`.${n.containerClass}`);if(s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),e.imageEl=s,s?e.imageWrapEl=u.a(e.imageEl,`.${n.containerClass}`)[0]:e.imageWrapEl=void 0,!e.imageWrapEl){e.imageEl=void 0;return}e.maxRatio=e.imageWrapEl.getAttribute("data-swiper-zoom")||n.maxRatio}if(e.imageEl){const[s,l]=U();e.originX=s,e.originY=l,e.imageEl.style.transitionDuration="0ms"}w=!0}}function P(a){if(!z(a))return;const n=i.params.zoom,s=i.zoom,l=r.findIndex(c=>c.pointerId===a.pointerId);l>=0&&(r[l]=a),!(r.length<2)&&(y=!0,e.scaleMove=L(),e.imageEl&&(s.scale=e.scaleMove/e.scaleStart*m,s.scale>e.maxRatio&&(s.scale=e.maxRatio-1+(s.scale-e.maxRatio+1)**.5),s.scale<n.minRatio&&(s.scale=n.minRatio+1-(n.minRatio-s.scale+1)**.5),e.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`))}function H(a){if(!z(a)||a.pointerType==="mouse"&&a.type==="pointerout")return;const n=i.params.zoom,s=i.zoom,l=r.findIndex(c=>c.pointerId===a.pointerId);l>=0&&r.splice(l,1),!(!Y||!y)&&(Y=!1,y=!1,e.imageEl&&(s.scale=Math.max(Math.min(s.scale,e.maxRatio),n.minRatio),e.imageEl.style.transitionDuration=`${i.params.speed}ms`,e.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`,m=s.scale,w=!1,s.scale>1&&e.slideEl?e.slideEl.classList.add(`${n.zoomedSlideClass}`):s.scale<=1&&e.slideEl&&e.slideEl.classList.remove(`${n.zoomedSlideClass}`),s.scale===1&&(e.originX=0,e.originY=0,e.slideEl=void 0)))}function te(a){const n=i.device;if(!e.imageEl||t.isTouched)return;n.android&&a.cancelable&&a.preventDefault(),t.isTouched=!0;const s=r.length>0?r[0]:a;t.touchesStart.x=s.pageX,t.touchesStart.y=s.pageY}function I(a){if(!z(a)||!ee(a))return;const n=i.zoom;if(!e.imageEl||!t.isTouched||!e.slideEl)return;t.isMoved||(t.width=e.imageEl.offsetWidth,t.height=e.imageEl.offsetHeight,t.startX=u.i(e.imageWrapEl,"x")||0,t.startY=u.i(e.imageWrapEl,"y")||0,e.slideWidth=e.slideEl.offsetWidth,e.slideHeight=e.slideEl.offsetHeight,e.imageWrapEl.style.transitionDuration="0ms");const s=t.width*n.scale,l=t.height*n.scale;if(s<e.slideWidth&&l<e.slideHeight)return;if(t.minX=Math.min(e.slideWidth/2-s/2,0),t.maxX=-t.minX,t.minY=Math.min(e.slideHeight/2-l/2,0),t.maxY=-t.minY,t.touchesCurrent.x=r.length>0?r[0].pageX:a.pageX,t.touchesCurrent.y=r.length>0?r[0].pageY:a.pageY,Math.max(Math.abs(t.touchesCurrent.x-t.touchesStart.x),Math.abs(t.touchesCurrent.y-t.touchesStart.y))>5&&(i.allowClick=!1),!t.isMoved&&!w){if(i.isHorizontal()&&(Math.floor(t.minX)===Math.floor(t.startX)&&t.touchesCurrent.x<t.touchesStart.x||Math.floor(t.maxX)===Math.floor(t.startX)&&t.touchesCurrent.x>t.touchesStart.x)){t.isTouched=!1;return}if(!i.isHorizontal()&&(Math.floor(t.minY)===Math.floor(t.startY)&&t.touchesCurrent.y<t.touchesStart.y||Math.floor(t.maxY)===Math.floor(t.startY)&&t.touchesCurrent.y>t.touchesStart.y)){t.isTouched=!1;return}}a.cancelable&&a.preventDefault(),a.stopPropagation(),t.isMoved=!0;const p=(n.scale-m)/(e.maxRatio-i.params.zoom.minRatio),{originX:g,originY:E}=e;t.currentX=t.touchesCurrent.x-t.touchesStart.x+t.startX+p*(t.width-g*2),t.currentY=t.touchesCurrent.y-t.touchesStart.y+t.startY+p*(t.height-E*2),t.currentX<t.minX&&(t.currentX=t.minX+1-(t.minX-t.currentX+1)**.8),t.currentX>t.maxX&&(t.currentX=t.maxX-1+(t.currentX-t.maxX+1)**.8),t.currentY<t.minY&&(t.currentY=t.minY+1-(t.minY-t.currentY+1)**.8),t.currentY>t.maxY&&(t.currentY=t.maxY-1+(t.currentY-t.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=t.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=t.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(t.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(t.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(t.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(t.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=t.touchesCurrent.x,o.prevPositionY=t.touchesCurrent.y,o.prevTime=Date.now(),e.imageWrapEl.style.transform=`translate3d(${t.currentX}px, ${t.currentY}px,0)`}function ie(){const a=i.zoom;if(!e.imageEl)return;if(!t.isTouched||!t.isMoved){t.isTouched=!1,t.isMoved=!1;return}t.isTouched=!1,t.isMoved=!1;let n=300,s=300;const l=o.x*n,c=t.currentX+l,p=o.y*s,g=t.currentY+p;o.x!==0&&(n=Math.abs((c-t.currentX)/o.x)),o.y!==0&&(s=Math.abs((g-t.currentY)/o.y));const E=Math.max(n,s);t.currentX=c,t.currentY=g;const C=t.width*a.scale,d=t.height*a.scale;t.minX=Math.min(e.slideWidth/2-C/2,0),t.maxX=-t.minX,t.minY=Math.min(e.slideHeight/2-d/2,0),t.maxY=-t.minY,t.currentX=Math.max(Math.min(t.currentX,t.maxX),t.minX),t.currentY=Math.max(Math.min(t.currentY,t.maxY),t.minY),e.imageWrapEl.style.transitionDuration=`${E}ms`,e.imageWrapEl.style.transform=`translate3d(${t.currentX}px, ${t.currentY}px,0)`}function A(){const a=i.zoom;e.slideEl&&i.activeIndex!==i.slides.indexOf(e.slideEl)&&(e.imageEl&&(e.imageEl.style.transform="translate3d(0,0,0) scale(1)"),e.imageWrapEl&&(e.imageWrapEl.style.transform="translate3d(0,0,0)"),e.slideEl.classList.remove(`${i.params.zoom.zoomedSlideClass}`),a.scale=1,m=1,e.slideEl=void 0,e.imageEl=void 0,e.imageWrapEl=void 0,e.originX=0,e.originY=0)}function q(a){const n=i.zoom,s=i.params.zoom;if(!e.slideEl){a&&a.target&&(e.slideEl=a.target.closest(`.${i.params.slideClass}, swiper-slide`)),e.slideEl||(i.params.virtual&&i.params.virtual.enabled&&i.virtual?e.slideEl=u.e(i.slidesEl,`.${i.params.slideActiveClass}`)[0]:e.slideEl=i.slides[i.activeIndex]);let x=e.slideEl.querySelector(`.${s.containerClass}`);x&&(x=x.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),e.imageEl=x,x?e.imageWrapEl=u.a(e.imageEl,`.${s.containerClass}`)[0]:e.imageWrapEl=void 0}if(!e.imageEl||!e.imageWrapEl)return;i.params.cssMode&&(i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.touchAction="none"),e.slideEl.classList.add(`${s.zoomedSlideClass}`);let l,c,p,g,E,C,d,h,j,B,F,J,M,W,b,$,T,D;typeof t.touchesStart.x>"u"&&a?(l=a.pageX,c=a.pageY):(l=t.touchesStart.x,c=t.touchesStart.y);const v=typeof a=="number"?a:null;m===1&&v&&(l=void 0,c=void 0),n.scale=v||e.imageWrapEl.getAttribute("data-swiper-zoom")||s.maxRatio,m=v||e.imageWrapEl.getAttribute("data-swiper-zoom")||s.maxRatio,a&&!(m===1&&v)?(T=e.slideEl.offsetWidth,D=e.slideEl.offsetHeight,p=u.b(e.slideEl).left+X.scrollX,g=u.b(e.slideEl).top+X.scrollY,E=p+T/2-l,C=g+D/2-c,j=e.imageEl.offsetWidth,B=e.imageEl.offsetHeight,F=j*n.scale,J=B*n.scale,M=Math.min(T/2-F/2,0),W=Math.min(D/2-J/2,0),b=-M,$=-W,d=E*n.scale,h=C*n.scale,d<M&&(d=M),d>b&&(d=b),h<W&&(h=W),h>$&&(h=$)):(d=0,h=0),v&&n.scale===1&&(e.originX=0,e.originY=0),e.imageWrapEl.style.transitionDuration="300ms",e.imageWrapEl.style.transform=`translate3d(${d}px, ${h}px,0)`,e.imageEl.style.transitionDuration="300ms",e.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`}function G(){const a=i.zoom,n=i.params.zoom;if(!e.slideEl){i.params.virtual&&i.params.virtual.enabled&&i.virtual?e.slideEl=u.e(i.slidesEl,`.${i.params.slideActiveClass}`)[0]:e.slideEl=i.slides[i.activeIndex];let s=e.slideEl.querySelector(`.${n.containerClass}`);s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),e.imageEl=s,s?e.imageWrapEl=u.a(e.imageEl,`.${n.containerClass}`)[0]:e.imageWrapEl=void 0}!e.imageEl||!e.imageWrapEl||(i.params.cssMode&&(i.wrapperEl.style.overflow="",i.wrapperEl.style.touchAction=""),a.scale=1,m=1,e.imageWrapEl.style.transitionDuration="300ms",e.imageWrapEl.style.transform="translate3d(0,0,0)",e.imageEl.style.transitionDuration="300ms",e.imageEl.style.transform="translate3d(0,0,0) scale(1)",e.slideEl.classList.remove(`${n.zoomedSlideClass}`),e.slideEl=void 0,e.originX=0,e.originY=0)}function O(a){const n=i.zoom;n.scale&&n.scale!==1?G():q(a)}function _(){const a=i.params.passiveListeners?{passive:!0,capture:!1}:!1,n=i.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:a,activeListenerWithCapture:n}}function k(){const a=i.zoom;if(a.enabled)return;a.enabled=!0;const{passiveListener:n,activeListenerWithCapture:s}=_();i.wrapperEl.addEventListener("pointerdown",R,n),i.wrapperEl.addEventListener("pointermove",P,s),["pointerup","pointercancel","pointerout"].forEach(l=>{i.wrapperEl.addEventListener(l,H,n)}),i.wrapperEl.addEventListener("pointermove",I,s)}function Z(){const a=i.zoom;if(!a.enabled)return;a.enabled=!1;const{passiveListener:n,activeListenerWithCapture:s}=_();i.wrapperEl.removeEventListener("pointerdown",R,n),i.wrapperEl.removeEventListener("pointermove",P,s),["pointerup","pointercancel","pointerout"].forEach(l=>{i.wrapperEl.removeEventListener(l,H,n)}),i.wrapperEl.removeEventListener("pointermove",I,s)}f("init",()=>{i.params.zoom.enabled&&k()}),f("destroy",()=>{Z()}),f("touchStart",(a,n)=>{i.zoom.enabled&&te(n)}),f("touchEnd",(a,n)=>{i.zoom.enabled&&ie()}),f("doubleTap",(a,n)=>{!i.animating&&i.params.zoom.enabled&&i.zoom.enabled&&i.params.zoom.toggle&&O(n)}),f("transitionEnd",()=>{i.zoom.enabled&&i.params.zoom.enabled&&A()}),f("slideChange",()=>{i.zoom.enabled&&i.params.zoom.enabled&&i.params.cssMode&&A()}),Object.assign(i.zoom,{enable:k,disable:Z,in:q,out:G,toggle:O})}module.exports=se;
|
|
1
|
+
"use strict";const e=require("./index232.js"),r=require("./index233.js"),t=require("./index234.js"),s=require("./index235.js"),u=require("./index236.js"),n=require("./index237.js"),i=require("./index238.js"),o=require("./index239.js"),c=require("./index240.js"),q=require("./index241.js"),R=require("./index242.js"),l=require("./index243.js"),E=require("./index244.js"),S=require("./index245.js"),h=require("./index246.js"),L=require("./index247.js"),T=require("./index248.js"),a=require("./index249.js"),I=require("./index250.js"),P=require("./index251.js"),U=require("./index252.js"),d=require("./index253.js"),f=require("./index254.js"),p=require("./index255.js"),k=require("./index256.js"),K=require("./index257.js"),N=require("./index258.js"),b=require("./index259.js"),v=require("./index260.js"),z=require("./index261.js"),A=require("./index262.js"),B=require("./index263.js"),C=require("./index264.js"),D=require("./index265.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
|
package/index163.mjs
CHANGED
|
@@ -1,261 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
function te() {
|
|
74
|
-
if (r.length < 2) return {
|
|
75
|
-
x: null,
|
|
76
|
-
y: null
|
|
77
|
-
};
|
|
78
|
-
const a = e.imageEl.getBoundingClientRect();
|
|
79
|
-
return [(r[0].pageX + (r[1].pageX - r[0].pageX) / 2 - a.x - x.scrollX) / c, (r[0].pageY + (r[1].pageY - r[0].pageY) / 2 - a.y - x.scrollY) / c];
|
|
80
|
-
}
|
|
81
|
-
function ie() {
|
|
82
|
-
return i.isElement ? "swiper-slide" : `.${i.params.slideClass}`;
|
|
83
|
-
}
|
|
84
|
-
function y(a) {
|
|
85
|
-
const s = ie();
|
|
86
|
-
return !!(a.target.matches(s) || i.slides.filter((n) => n.contains(a.target)).length > 0);
|
|
87
|
-
}
|
|
88
|
-
function ae(a) {
|
|
89
|
-
const s = `.${i.params.zoom.containerClass}`;
|
|
90
|
-
return !!(a.target.matches(s) || [...i.hostEl.querySelectorAll(s)].filter((n) => n.contains(a.target)).length > 0);
|
|
91
|
-
}
|
|
92
|
-
function R(a) {
|
|
93
|
-
if (a.pointerType === "mouse" && r.splice(0, r.length), !y(a)) return;
|
|
94
|
-
const s = i.params.zoom;
|
|
95
|
-
if (X = !1, Y = !1, r.push(a), !(r.length < 2)) {
|
|
96
|
-
if (X = !0, e.scaleStart = L(), !e.slideEl) {
|
|
97
|
-
e.slideEl = a.target.closest(`.${i.params.slideClass}, swiper-slide`), e.slideEl || (e.slideEl = i.slides[i.activeIndex]);
|
|
98
|
-
let n = e.slideEl.querySelector(`.${s.containerClass}`);
|
|
99
|
-
if (n && (n = n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), e.imageEl = n, n ? e.imageWrapEl = D(e.imageEl, `.${s.containerClass}`)[0] : e.imageWrapEl = void 0, !e.imageWrapEl) {
|
|
100
|
-
e.imageEl = void 0;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
e.maxRatio = e.imageWrapEl.getAttribute("data-swiper-zoom") || s.maxRatio;
|
|
104
|
-
}
|
|
105
|
-
if (e.imageEl) {
|
|
106
|
-
const [n, l] = te();
|
|
107
|
-
e.originX = n, e.originY = l, e.imageEl.style.transitionDuration = "0ms";
|
|
108
|
-
}
|
|
109
|
-
W = !0;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function P(a) {
|
|
113
|
-
if (!y(a)) return;
|
|
114
|
-
const s = i.params.zoom, n = i.zoom, l = r.findIndex((m) => m.pointerId === a.pointerId);
|
|
115
|
-
l >= 0 && (r[l] = a), !(r.length < 2) && (Y = !0, e.scaleMove = L(), e.imageEl && (n.scale = e.scaleMove / e.scaleStart * c, n.scale > e.maxRatio && (n.scale = e.maxRatio - 1 + (n.scale - e.maxRatio + 1) ** 0.5), n.scale < s.minRatio && (n.scale = s.minRatio + 1 - (s.minRatio - n.scale + 1) ** 0.5), e.imageEl.style.transform = `translate3d(0,0,0) scale(${n.scale})`));
|
|
116
|
-
}
|
|
117
|
-
function H(a) {
|
|
118
|
-
if (!y(a) || a.pointerType === "mouse" && a.type === "pointerout") return;
|
|
119
|
-
const s = i.params.zoom, n = i.zoom, l = r.findIndex((m) => m.pointerId === a.pointerId);
|
|
120
|
-
l >= 0 && r.splice(l, 1), !(!X || !Y) && (X = !1, Y = !1, e.imageEl && (n.scale = Math.max(Math.min(n.scale, e.maxRatio), s.minRatio), e.imageEl.style.transitionDuration = `${i.params.speed}ms`, e.imageEl.style.transform = `translate3d(0,0,0) scale(${n.scale})`, c = n.scale, W = !1, n.scale > 1 && e.slideEl ? e.slideEl.classList.add(`${s.zoomedSlideClass}`) : n.scale <= 1 && e.slideEl && e.slideEl.classList.remove(`${s.zoomedSlideClass}`), n.scale === 1 && (e.originX = 0, e.originY = 0, e.slideEl = void 0)));
|
|
121
|
-
}
|
|
122
|
-
function ne(a) {
|
|
123
|
-
const s = i.device;
|
|
124
|
-
if (!e.imageEl || t.isTouched) return;
|
|
125
|
-
s.android && a.cancelable && a.preventDefault(), t.isTouched = !0;
|
|
126
|
-
const n = r.length > 0 ? r[0] : a;
|
|
127
|
-
t.touchesStart.x = n.pageX, t.touchesStart.y = n.pageY;
|
|
128
|
-
}
|
|
129
|
-
function I(a) {
|
|
130
|
-
if (!y(a) || !ae(a)) return;
|
|
131
|
-
const s = i.zoom;
|
|
132
|
-
if (!e.imageEl || !t.isTouched || !e.slideEl) return;
|
|
133
|
-
t.isMoved || (t.width = e.imageEl.offsetWidth, t.height = e.imageEl.offsetHeight, t.startX = Q(e.imageWrapEl, "x") || 0, t.startY = Q(e.imageWrapEl, "y") || 0, e.slideWidth = e.slideEl.offsetWidth, e.slideHeight = e.slideEl.offsetHeight, e.imageWrapEl.style.transitionDuration = "0ms");
|
|
134
|
-
const n = t.width * s.scale, l = t.height * s.scale;
|
|
135
|
-
if (n < e.slideWidth && l < e.slideHeight) return;
|
|
136
|
-
if (t.minX = Math.min(e.slideWidth / 2 - n / 2, 0), t.maxX = -t.minX, t.minY = Math.min(e.slideHeight / 2 - l / 2, 0), t.maxY = -t.minY, t.touchesCurrent.x = r.length > 0 ? r[0].pageX : a.pageX, t.touchesCurrent.y = r.length > 0 ? r[0].pageY : a.pageY, Math.max(Math.abs(t.touchesCurrent.x - t.touchesStart.x), Math.abs(t.touchesCurrent.y - t.touchesStart.y)) > 5 && (i.allowClick = !1), !t.isMoved && !W) {
|
|
137
|
-
if (i.isHorizontal() && (Math.floor(t.minX) === Math.floor(t.startX) && t.touchesCurrent.x < t.touchesStart.x || Math.floor(t.maxX) === Math.floor(t.startX) && t.touchesCurrent.x > t.touchesStart.x)) {
|
|
138
|
-
t.isTouched = !1;
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
if (!i.isHorizontal() && (Math.floor(t.minY) === Math.floor(t.startY) && t.touchesCurrent.y < t.touchesStart.y || Math.floor(t.maxY) === Math.floor(t.startY) && t.touchesCurrent.y > t.touchesStart.y)) {
|
|
142
|
-
t.isTouched = !1;
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
a.cancelable && a.preventDefault(), a.stopPropagation(), t.isMoved = !0;
|
|
147
|
-
const f = (s.scale - c) / (e.maxRatio - i.params.zoom.minRatio), {
|
|
148
|
-
originX: p,
|
|
149
|
-
originY: h
|
|
150
|
-
} = e;
|
|
151
|
-
t.currentX = t.touchesCurrent.x - t.touchesStart.x + t.startX + f * (t.width - p * 2), t.currentY = t.touchesCurrent.y - t.touchesStart.y + t.startY + f * (t.height - h * 2), t.currentX < t.minX && (t.currentX = t.minX + 1 - (t.minX - t.currentX + 1) ** 0.8), t.currentX > t.maxX && (t.currentX = t.maxX - 1 + (t.currentX - t.maxX + 1) ** 0.8), t.currentY < t.minY && (t.currentY = t.minY + 1 - (t.minY - t.currentY + 1) ** 0.8), t.currentY > t.maxY && (t.currentY = t.maxY - 1 + (t.currentY - t.maxY + 1) ** 0.8), o.prevPositionX || (o.prevPositionX = t.touchesCurrent.x), o.prevPositionY || (o.prevPositionY = t.touchesCurrent.y), o.prevTime || (o.prevTime = Date.now()), o.x = (t.touchesCurrent.x - o.prevPositionX) / (Date.now() - o.prevTime) / 2, o.y = (t.touchesCurrent.y - o.prevPositionY) / (Date.now() - o.prevTime) / 2, Math.abs(t.touchesCurrent.x - o.prevPositionX) < 2 && (o.x = 0), Math.abs(t.touchesCurrent.y - o.prevPositionY) < 2 && (o.y = 0), o.prevPositionX = t.touchesCurrent.x, o.prevPositionY = t.touchesCurrent.y, o.prevTime = Date.now(), e.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
|
|
152
|
-
}
|
|
153
|
-
function se() {
|
|
154
|
-
const a = i.zoom;
|
|
155
|
-
if (!e.imageEl) return;
|
|
156
|
-
if (!t.isTouched || !t.isMoved) {
|
|
157
|
-
t.isTouched = !1, t.isMoved = !1;
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
t.isTouched = !1, t.isMoved = !1;
|
|
161
|
-
let s = 300, n = 300;
|
|
162
|
-
const l = o.x * s, m = t.currentX + l, f = o.y * n, p = t.currentY + f;
|
|
163
|
-
o.x !== 0 && (s = Math.abs((m - t.currentX) / o.x)), o.y !== 0 && (n = Math.abs((p - t.currentY) / o.y));
|
|
164
|
-
const h = Math.max(s, n);
|
|
165
|
-
t.currentX = m, t.currentY = p;
|
|
166
|
-
const z = t.width * a.scale, d = t.height * a.scale;
|
|
167
|
-
t.minX = Math.min(e.slideWidth / 2 - z / 2, 0), t.maxX = -t.minX, t.minY = Math.min(e.slideHeight / 2 - d / 2, 0), t.maxY = -t.minY, t.currentX = Math.max(Math.min(t.currentX, t.maxX), t.minX), t.currentY = Math.max(Math.min(t.currentY, t.maxY), t.minY), e.imageWrapEl.style.transitionDuration = `${h}ms`, e.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
|
|
168
|
-
}
|
|
169
|
-
function A() {
|
|
170
|
-
const a = i.zoom;
|
|
171
|
-
e.slideEl && i.activeIndex !== i.slides.indexOf(e.slideEl) && (e.imageEl && (e.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), e.imageWrapEl && (e.imageWrapEl.style.transform = "translate3d(0,0,0)"), e.slideEl.classList.remove(`${i.params.zoom.zoomedSlideClass}`), a.scale = 1, c = 1, e.slideEl = void 0, e.imageEl = void 0, e.imageWrapEl = void 0, e.originX = 0, e.originY = 0);
|
|
172
|
-
}
|
|
173
|
-
function q(a) {
|
|
174
|
-
const s = i.zoom, n = i.params.zoom;
|
|
175
|
-
if (!e.slideEl) {
|
|
176
|
-
a && a.target && (e.slideEl = a.target.closest(`.${i.params.slideClass}, swiper-slide`)), e.slideEl || (i.params.virtual && i.params.virtual.enabled && i.virtual ? e.slideEl = K(i.slidesEl, `.${i.params.slideActiveClass}`)[0] : e.slideEl = i.slides[i.activeIndex]);
|
|
177
|
-
let v = e.slideEl.querySelector(`.${n.containerClass}`);
|
|
178
|
-
v && (v = v.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), e.imageEl = v, v ? e.imageWrapEl = D(e.imageEl, `.${n.containerClass}`)[0] : e.imageWrapEl = void 0;
|
|
179
|
-
}
|
|
180
|
-
if (!e.imageEl || !e.imageWrapEl) return;
|
|
181
|
-
i.params.cssMode && (i.wrapperEl.style.overflow = "hidden", i.wrapperEl.style.touchAction = "none"), e.slideEl.classList.add(`${n.zoomedSlideClass}`);
|
|
182
|
-
let l, m, f, p, h, z, d, g, j, B, F, J, C, M, S, b, $, T;
|
|
183
|
-
typeof t.touchesStart.x > "u" && a ? (l = a.pageX, m = a.pageY) : (l = t.touchesStart.x, m = t.touchesStart.y);
|
|
184
|
-
const E = typeof a == "number" ? a : null;
|
|
185
|
-
c === 1 && E && (l = void 0, m = void 0), s.scale = E || e.imageWrapEl.getAttribute("data-swiper-zoom") || n.maxRatio, c = E || e.imageWrapEl.getAttribute("data-swiper-zoom") || n.maxRatio, a && !(c === 1 && E) ? ($ = e.slideEl.offsetWidth, T = e.slideEl.offsetHeight, f = N(e.slideEl).left + x.scrollX, p = N(e.slideEl).top + x.scrollY, h = f + $ / 2 - l, z = p + T / 2 - m, j = e.imageEl.offsetWidth, B = e.imageEl.offsetHeight, F = j * s.scale, J = B * s.scale, C = Math.min($ / 2 - F / 2, 0), M = Math.min(T / 2 - J / 2, 0), S = -C, b = -M, d = h * s.scale, g = z * s.scale, d < C && (d = C), d > S && (d = S), g < M && (g = M), g > b && (g = b)) : (d = 0, g = 0), E && s.scale === 1 && (e.originX = 0, e.originY = 0), e.imageWrapEl.style.transitionDuration = "300ms", e.imageWrapEl.style.transform = `translate3d(${d}px, ${g}px,0)`, e.imageEl.style.transitionDuration = "300ms", e.imageEl.style.transform = `translate3d(0,0,0) scale(${s.scale})`;
|
|
186
|
-
}
|
|
187
|
-
function O() {
|
|
188
|
-
const a = i.zoom, s = i.params.zoom;
|
|
189
|
-
if (!e.slideEl) {
|
|
190
|
-
i.params.virtual && i.params.virtual.enabled && i.virtual ? e.slideEl = K(i.slidesEl, `.${i.params.slideActiveClass}`)[0] : e.slideEl = i.slides[i.activeIndex];
|
|
191
|
-
let n = e.slideEl.querySelector(`.${s.containerClass}`);
|
|
192
|
-
n && (n = n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), e.imageEl = n, n ? e.imageWrapEl = D(e.imageEl, `.${s.containerClass}`)[0] : e.imageWrapEl = void 0;
|
|
193
|
-
}
|
|
194
|
-
!e.imageEl || !e.imageWrapEl || (i.params.cssMode && (i.wrapperEl.style.overflow = "", i.wrapperEl.style.touchAction = ""), a.scale = 1, c = 1, e.imageWrapEl.style.transitionDuration = "300ms", e.imageWrapEl.style.transform = "translate3d(0,0,0)", e.imageEl.style.transitionDuration = "300ms", e.imageEl.style.transform = "translate3d(0,0,0) scale(1)", e.slideEl.classList.remove(`${s.zoomedSlideClass}`), e.slideEl = void 0, e.originX = 0, e.originY = 0);
|
|
195
|
-
}
|
|
196
|
-
function G(a) {
|
|
197
|
-
const s = i.zoom;
|
|
198
|
-
s.scale && s.scale !== 1 ? O() : q(a);
|
|
199
|
-
}
|
|
200
|
-
function k() {
|
|
201
|
-
const a = i.params.passiveListeners ? {
|
|
202
|
-
passive: !0,
|
|
203
|
-
capture: !1
|
|
204
|
-
} : !1, s = i.params.passiveListeners ? {
|
|
205
|
-
passive: !1,
|
|
206
|
-
capture: !0
|
|
207
|
-
} : !0;
|
|
208
|
-
return {
|
|
209
|
-
passiveListener: a,
|
|
210
|
-
activeListenerWithCapture: s
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
function Z() {
|
|
214
|
-
const a = i.zoom;
|
|
215
|
-
if (a.enabled) return;
|
|
216
|
-
a.enabled = !0;
|
|
217
|
-
const {
|
|
218
|
-
passiveListener: s,
|
|
219
|
-
activeListenerWithCapture: n
|
|
220
|
-
} = k();
|
|
221
|
-
i.wrapperEl.addEventListener("pointerdown", R, s), i.wrapperEl.addEventListener("pointermove", P, n), ["pointerup", "pointercancel", "pointerout"].forEach((l) => {
|
|
222
|
-
i.wrapperEl.addEventListener(l, H, s);
|
|
223
|
-
}), i.wrapperEl.addEventListener("pointermove", I, n);
|
|
224
|
-
}
|
|
225
|
-
function _() {
|
|
226
|
-
const a = i.zoom;
|
|
227
|
-
if (!a.enabled) return;
|
|
228
|
-
a.enabled = !1;
|
|
229
|
-
const {
|
|
230
|
-
passiveListener: s,
|
|
231
|
-
activeListenerWithCapture: n
|
|
232
|
-
} = k();
|
|
233
|
-
i.wrapperEl.removeEventListener("pointerdown", R, s), i.wrapperEl.removeEventListener("pointermove", P, n), ["pointerup", "pointercancel", "pointerout"].forEach((l) => {
|
|
234
|
-
i.wrapperEl.removeEventListener(l, H, s);
|
|
235
|
-
}), i.wrapperEl.removeEventListener("pointermove", I, n);
|
|
236
|
-
}
|
|
237
|
-
u("init", () => {
|
|
238
|
-
i.params.zoom.enabled && Z();
|
|
239
|
-
}), u("destroy", () => {
|
|
240
|
-
_();
|
|
241
|
-
}), u("touchStart", (a, s) => {
|
|
242
|
-
i.zoom.enabled && ne(s);
|
|
243
|
-
}), u("touchEnd", (a, s) => {
|
|
244
|
-
i.zoom.enabled && se();
|
|
245
|
-
}), u("doubleTap", (a, s) => {
|
|
246
|
-
!i.animating && i.params.zoom.enabled && i.zoom.enabled && i.params.zoom.toggle && G(s);
|
|
247
|
-
}), u("transitionEnd", () => {
|
|
248
|
-
i.zoom.enabled && i.params.zoom.enabled && A();
|
|
249
|
-
}), u("slideChange", () => {
|
|
250
|
-
i.zoom.enabled && i.params.zoom.enabled && i.params.cssMode && A();
|
|
251
|
-
}), Object.assign(i.zoom, {
|
|
252
|
-
enable: Z,
|
|
253
|
-
disable: _,
|
|
254
|
-
in: q,
|
|
255
|
-
out: O,
|
|
256
|
-
toggle: G
|
|
257
|
-
});
|
|
258
|
-
}
|
|
1
|
+
import r from "./index232.mjs";
|
|
2
|
+
import o from "./index233.mjs";
|
|
3
|
+
import e from "./index234.mjs";
|
|
4
|
+
import f from "./index235.mjs";
|
|
5
|
+
import t from "./index236.mjs";
|
|
6
|
+
import p from "./index237.mjs";
|
|
7
|
+
import $ from "./index238.mjs";
|
|
8
|
+
import m from "./index239.mjs";
|
|
9
|
+
import d from "./index240.mjs";
|
|
10
|
+
import s from "./index241.mjs";
|
|
11
|
+
import a from "./index242.mjs";
|
|
12
|
+
import b from "./index243.mjs";
|
|
13
|
+
import i from "./index244.mjs";
|
|
14
|
+
import x from "./index245.mjs";
|
|
15
|
+
import c from "./index246.mjs";
|
|
16
|
+
import R from "./index247.mjs";
|
|
17
|
+
import l from "./index248.mjs";
|
|
18
|
+
import E from "./index249.mjs";
|
|
19
|
+
import S from "./index250.mjs";
|
|
20
|
+
import h from "./index251.mjs";
|
|
21
|
+
import L from "./index252.mjs";
|
|
22
|
+
import T from "./index253.mjs";
|
|
23
|
+
import u from "./index254.mjs";
|
|
24
|
+
import I from "./index255.mjs";
|
|
25
|
+
import P from "./index256.mjs";
|
|
26
|
+
import U from "./index257.mjs";
|
|
27
|
+
import k from "./index258.mjs";
|
|
28
|
+
import n from "./index259.mjs";
|
|
29
|
+
import v from "./index260.mjs";
|
|
30
|
+
import K from "./index261.mjs";
|
|
31
|
+
import N from "./index262.mjs";
|
|
32
|
+
import z from "./index263.mjs";
|
|
33
|
+
import A from "./index264.mjs";
|
|
34
|
+
import B from "./index265.mjs";
|
|
35
|
+
var C = {};
|
|
36
|
+
C = {
|
|
37
|
+
"ar-AE": r,
|
|
38
|
+
"bg-BG": o,
|
|
39
|
+
"cs-CZ": e,
|
|
40
|
+
"da-DK": f,
|
|
41
|
+
"de-DE": t,
|
|
42
|
+
"el-GR": p,
|
|
43
|
+
"en-US": $,
|
|
44
|
+
"es-ES": m,
|
|
45
|
+
"et-EE": d,
|
|
46
|
+
"fi-FI": s,
|
|
47
|
+
"fr-FR": a,
|
|
48
|
+
"he-IL": b,
|
|
49
|
+
"hr-HR": i,
|
|
50
|
+
"hu-HU": x,
|
|
51
|
+
"it-IT": c,
|
|
52
|
+
"ja-JP": R,
|
|
53
|
+
"ko-KR": l,
|
|
54
|
+
"lt-LT": E,
|
|
55
|
+
"lv-LV": S,
|
|
56
|
+
"nb-NO": h,
|
|
57
|
+
"nl-NL": L,
|
|
58
|
+
"pl-PL": T,
|
|
59
|
+
"pt-BR": u,
|
|
60
|
+
"pt-PT": I,
|
|
61
|
+
"ro-RO": P,
|
|
62
|
+
"ru-RU": U,
|
|
63
|
+
"sk-SK": k,
|
|
64
|
+
"sl-SI": n,
|
|
65
|
+
"sr-SP": v,
|
|
66
|
+
"sv-SE": K,
|
|
67
|
+
"tr-TR": N,
|
|
68
|
+
"uk-UA": z,
|
|
69
|
+
"zh-CN": A,
|
|
70
|
+
"zh-TW": B
|
|
71
|
+
};
|
|
259
72
|
export {
|
|
260
|
-
|
|
73
|
+
C as default
|
|
261
74
|
};
|
package/index164.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@react-aria/focus"),d=require("./index156.js"),v=require("@react-aria/i18n"),P=require("react"),w=require("./index159.js");function g(n,o,c){let{direction:a}=v.useLocale(),s=P.useMemo(()=>l.createFocusManager(o),[o]),p=e=>{if(e.currentTarget.contains(e.target)&&(e.altKey&&(e.key==="ArrowDown"||e.key==="ArrowUp")&&"setOpen"in n&&(e.preventDefault(),e.stopPropagation(),n.setOpen(!0)),!c))switch(e.key){case"ArrowLeft":e.preventDefault(),e.stopPropagation(),a==="rtl"?s.focusNext():s.focusPrevious();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),a==="rtl"?s.focusPrevious():s.focusNext();break}},u=()=>{var e;if(!o.current)return;let r=(e=window.event)===null||e===void 0?void 0:e.target,i=l.getFocusableTreeWalker(o.current,{tabbable:!0});if(r&&(i.currentNode=r,r=i.previousNode()),!r){let t;do t=i.lastChild(),t&&(r=t);while(t)}for(;r!=null&&r.hasAttribute("data-placeholder");){let t=i.previousNode();if(t&&t.hasAttribute("data-placeholder"))r=t;else break}r&&r.focus()},{pressProps:f}=w.usePress({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){e.pointerType==="mouse"&&u()},onPress(e){e.pointerType!=="mouse"&&u()}});return d.mergeProps(f,{onKeyDown:p})}exports.useDatePickerGroup=g;
|
package/index164.mjs
CHANGED
|
@@ -1,100 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return r ? (l = o(this.x, r), t = l - 1, (r - this.x[t]) * (this.y[l] - this.y[t]) / (this.x[l] - this.x[t]) + this.y[t]) : 0;
|
|
31
|
-
}, this;
|
|
32
|
-
}
|
|
33
|
-
function h(i) {
|
|
34
|
-
e.controller.spline = e.params.loop ? new p(e.slidesGrid, i.slidesGrid) : new p(e.snapGrid, i.snapGrid);
|
|
35
|
-
}
|
|
36
|
-
function y(i, s) {
|
|
37
|
-
const o = e.controller.control;
|
|
38
|
-
let t, l;
|
|
39
|
-
const a = e.constructor;
|
|
40
|
-
function r(n) {
|
|
41
|
-
if (n.destroyed) return;
|
|
42
|
-
const c = e.rtlTranslate ? -e.translate : e.translate;
|
|
43
|
-
e.params.controller.by === "slide" && (h(n), l = -e.controller.spline.interpolate(-c)), (!l || e.params.controller.by === "container") && (t = (n.maxTranslate() - n.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(t) || !Number.isFinite(t)) && (t = 1), l = (c - e.minTranslate()) * t + n.minTranslate()), e.params.controller.inverse && (l = n.maxTranslate() - l), n.updateProgress(l), n.setTranslate(l, e), n.updateActiveIndex(), n.updateSlidesClasses();
|
|
1
|
+
import { createFocusManager as c, getFocusableTreeWalker as d } from "@react-aria/focus";
|
|
2
|
+
import { mergeProps as v } from "./index156.mjs";
|
|
3
|
+
import { useLocale as w } from "@react-aria/i18n";
|
|
4
|
+
import { useMemo as b } from "react";
|
|
5
|
+
import { usePress as m } from "./index159.mjs";
|
|
6
|
+
function y(i, o, l) {
|
|
7
|
+
let { direction: n } = w(), s = b(() => c(o), [
|
|
8
|
+
o
|
|
9
|
+
]), p = (e) => {
|
|
10
|
+
if (e.currentTarget.contains(e.target) && (e.altKey && (e.key === "ArrowDown" || e.key === "ArrowUp") && "setOpen" in i && (e.preventDefault(), e.stopPropagation(), i.setOpen(!0)), !l))
|
|
11
|
+
switch (e.key) {
|
|
12
|
+
case "ArrowLeft":
|
|
13
|
+
e.preventDefault(), e.stopPropagation(), n === "rtl" ? s.focusNext() : s.focusPrevious();
|
|
14
|
+
break;
|
|
15
|
+
case "ArrowRight":
|
|
16
|
+
e.preventDefault(), e.stopPropagation(), n === "rtl" ? s.focusPrevious() : s.focusNext();
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
}, u = () => {
|
|
20
|
+
var e;
|
|
21
|
+
if (!o.current) return;
|
|
22
|
+
let r = (e = window.event) === null || e === void 0 ? void 0 : e.target, a = d(o.current, {
|
|
23
|
+
tabbable: !0
|
|
24
|
+
});
|
|
25
|
+
if (r && (a.currentNode = r, r = a.previousNode()), !r) {
|
|
26
|
+
let t;
|
|
27
|
+
do
|
|
28
|
+
t = a.lastChild(), t && (r = t);
|
|
29
|
+
while (t);
|
|
44
30
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
function x(i, s) {
|
|
51
|
-
const o = e.constructor, t = e.controller.control;
|
|
52
|
-
let l;
|
|
53
|
-
function a(r) {
|
|
54
|
-
r.destroyed || (r.setTransition(i, e), i !== 0 && (r.transitionStart(), r.params.autoHeight && g(() => {
|
|
55
|
-
r.updateAutoHeight();
|
|
56
|
-
}), S(r.wrapperEl, () => {
|
|
57
|
-
t && r.transitionEnd();
|
|
58
|
-
})));
|
|
31
|
+
for (; r != null && r.hasAttribute("data-placeholder"); ) {
|
|
32
|
+
let t = a.previousNode();
|
|
33
|
+
if (t && t.hasAttribute("data-placeholder")) r = t;
|
|
34
|
+
else break;
|
|
59
35
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (typeof window < "u" && // eslint-disable-line
|
|
70
|
-
(typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
|
|
71
|
-
const i = document.querySelector(e.params.controller.control);
|
|
72
|
-
if (i && i.swiper)
|
|
73
|
-
e.controller.control = i.swiper;
|
|
74
|
-
else if (i) {
|
|
75
|
-
const s = (o) => {
|
|
76
|
-
e.controller.control = o.detail[0], e.update(), i.removeEventListener("init", s);
|
|
77
|
-
};
|
|
78
|
-
i.addEventListener("init", s);
|
|
79
|
-
}
|
|
80
|
-
return;
|
|
36
|
+
r && r.focus();
|
|
37
|
+
}, { pressProps: f } = m({
|
|
38
|
+
preventFocusOnPress: !0,
|
|
39
|
+
allowTextSelectionOnPress: !0,
|
|
40
|
+
onPressStart(e) {
|
|
41
|
+
e.pointerType === "mouse" && u();
|
|
42
|
+
},
|
|
43
|
+
onPress(e) {
|
|
44
|
+
e.pointerType !== "mouse" && u();
|
|
81
45
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}), f("resize", () => {
|
|
86
|
-
d();
|
|
87
|
-
}), f("observerUpdate", () => {
|
|
88
|
-
d();
|
|
89
|
-
}), f("setTranslate", (i, s, o) => {
|
|
90
|
-
!e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(s, o);
|
|
91
|
-
}), f("setTransition", (i, s, o) => {
|
|
92
|
-
!e.controller.control || e.controller.control.destroyed || e.controller.setTransition(s, o);
|
|
93
|
-
}), Object.assign(e.controller, {
|
|
94
|
-
setTranslate: y,
|
|
95
|
-
setTransition: x
|
|
46
|
+
});
|
|
47
|
+
return v(f, {
|
|
48
|
+
onKeyDown: p
|
|
96
49
|
});
|
|
97
50
|
}
|
|
98
51
|
export {
|
|
99
|
-
|
|
52
|
+
y as useDatePickerGroup
|
|
100
53
|
};
|
package/index165.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),n=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s=/^(data-.*)$/;function c(a,l={}){let{labelable:o,isLink:d,propNames:r}=l,t={};for(const e in a)Object.prototype.hasOwnProperty.call(a,e)&&(b.has(e)||o&&i.has(e)||d&&n.has(e)||r!=null&&r.has(e)||s.test(e))&&(t[e]=a[e]);return t}exports.filterDOMProps=c;
|