@rpcbase/ui 0.182.0 → 0.184.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/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/useScrollPagination.d.ts +23 -0
- package/dist/helpers/useScrollPagination.d.ts.map +1 -0
- package/dist/helpers/useScrollPagination.test.d.ts +2 -0
- package/dist/helpers/useScrollPagination.test.d.ts.map +1 -0
- package/dist/index.js +62 -60
- package/dist/index.js.map +1 -1
- package/dist/index10.js +24 -69
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +4 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +5 -4
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -6
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +4 -145
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +6 -39
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +24 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +6 -7
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -13
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +6 -13
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +5 -7
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +38 -552
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +4 -31
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +5 -10
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +4 -10
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +8 -8
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +5 -13
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +4 -101
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -20
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +6 -53
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +145 -72
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +39 -9
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +571 -115
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +4 -20
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +7 -16
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +13 -23
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +13 -6
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +7 -5
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +31 -23
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +11 -35
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +11 -16
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +8 -6
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +13 -4
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +137 -76
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +101 -4
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +20 -5
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +53 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +72 -3
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +9 -6
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +21 -24
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +16 -7
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +23 -6
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -5
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +5 -3
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +74 -730
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +23 -3
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +35 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +16 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +6 -4
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +4 -46
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -46
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +6 -205
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +870 -22
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +24 -22
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +7 -24
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +6 -399
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +5 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +3 -68
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +4 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -363
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +3 -261
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -60
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +3 -46
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +20 -17
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +3 -169
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +3 -109
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -24
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +69 -8
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -5
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +363 -5
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +261 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +52 -458
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +42 -181
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +156 -94
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +18 -387
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +102 -255
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +24 -9
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -43
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +4 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +5 -605
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +4 -58
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +466 -8
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +178 -59
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +105 -17
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +260 -14
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +431 -693
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +9 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +41 -4
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +4 -6
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +24 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +29 -8
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -18
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +67 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +180 -5
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +46 -13
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +58 -10
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +661 -634
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +8 -14
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +66 -14
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +19 -5
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +16 -6
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -7
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +5 -6
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +6 -9
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +7 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +17 -9
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +2 -2
- package/dist/index20.js +455 -198
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +5 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +5 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +13 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +9 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +14 -10
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +14 -10
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +5 -11
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -11
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +6 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -7
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +263 -5
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +9 -6
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +9 -7
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +5 -55
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +4 -16
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +11 -7
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +10 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -10
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +5 -35
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +11 -21
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +11 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +10 -9
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +7 -9
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +6 -4
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -5
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -16
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +7 -9
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +6 -18
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +54 -14
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +27 -268
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +16 -12
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -29
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -11
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +9 -24
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +21 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -24
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -29
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +10 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -13
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +5 -154
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +251 -166
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +15 -29
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +18 -47
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +15 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +12 -44
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +28 -94
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +11 -85
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +23 -103
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -52
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +13 -11
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +176 -14
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +149 -32
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +30 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +9 -116
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +46 -16
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +11 -15
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +44 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +91 -32
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +85 -19
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +105 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +52 -8
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +15 -2763
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +10 -18
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +36 -27
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +8 -16
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +3 -67
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +9 -180
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +110 -40
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +17 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +15 -18
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +36 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +21 -5
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +2761 -35
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +9 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +19 -23
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +26 -110
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +5 -525
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +3 -128
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +22 -132
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +111 -19
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +15 -5
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +524 -5
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +128 -4
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +132 -14
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +4 -8
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +19 -6
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +12 -4
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +19 -544
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +65 -43
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +9 -18
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +14 -7
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +66 -9
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +33 -121
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +64 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -8
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -12
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +4 -10
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +15 -13
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +8 -64
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +6 -69
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +5 -9
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +545 -13
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +45 -64
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +3 -232
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +17 -4
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +7 -56
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +9 -68
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +8 -31
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +9 -9
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +13 -153
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +10 -108
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +13 -3
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +3 -22
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +22 -15
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +123 -22
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +4 -28
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +56 -13
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +68 -7
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +30 -22
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +9 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +151 -26
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +107 -4
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +26 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +16 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +31 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +230 -49
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +8 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +19 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +32 -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 +10 -0
- package/dist/index324.js.map +1 -0
- package/dist/index33.js +20 -2637
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +47 -390
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +2604 -196
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +390 -18
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +222 -131
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +18 -183
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +118 -65
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +17 -15
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +216 -93
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +90 -5
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +115 -840
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +6 -66
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +843 -7
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +57 -2
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +7 -23
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +2 -234
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +11 -6
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +18 -33
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +34 -34
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +7 -26
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +2 -8
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +22 -10
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +233 -3
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +201 -44
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +3 -50
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +6 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +47 -14
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +22 -129
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +50 -10
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +172 -25
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +7 -216
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +15 -13
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +128 -41
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +9 -48
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +216 -3
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +13 -6
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +34 -28
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +46 -49
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +8 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +50 -2
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +31 -29
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +4 -2
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +6 -205
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +28 -54
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +50 -6
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +9 -8
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -52
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +11 -4
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +5 -4
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +7 -15
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +25 -222
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +5 -5
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -8
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +2 -17
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +53 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +46 -4
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +205 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +22 -6
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +24 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +399 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +46 -6
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +177 -23
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +604 -23
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +52 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +3 -3
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -6
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +15 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +5 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +7 -5
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +16 -4
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -8
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index23.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index23.js","sources":["../src/components/Notifications/NotificationsDrawer.tsx"],"sourcesContent":["import { createContext, useCallback, useContext, useEffect, useMemo, useState, type Context } from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { Loader2, MoreVertical, X } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport type { NotificationItem, NotificationsRealtimeState } from \"./types\"\n\n\ntype ListResponse = {\n ok?: boolean\n error?: string\n notifications?: NotificationItem[]\n unreadCount?: number\n unseenCount?: number\n}\n\ntype DayGroup = {\n key: string\n label: string\n items: NotificationItem[]\n}\n\nconst toMs = (iso: string): number => {\n const ms = Date.parse(iso)\n return Number.isFinite(ms) ? ms : 0\n}\n\nconst getDayKey = (iso: string): string => {\n const date = new Date(toMs(iso))\n if (!Number.isFinite(date.getTime())) return \"unknown\"\n\n const year = date.getFullYear()\n const month = String(date.getMonth() + 1).padStart(2, \"0\")\n const day = String(date.getDate()).padStart(2, \"0\")\n\n return `${year}-${month}-${day}`\n}\n\nconst formatDayLabel = (key: string): string => {\n if (key === \"unknown\") return \"Unknown date\"\n const [yearRaw, monthRaw, dayRaw] = key.split(\"-\")\n const year = Number(yearRaw)\n const month = Number(monthRaw)\n const day = Number(dayRaw)\n\n if (!Number.isFinite(year) || !Number.isFinite(month) || !Number.isFinite(day)) return \"Unknown date\"\n\n const date = new Date(year, month - 1, day)\n if (!Number.isFinite(date.getTime())) return \"Unknown date\"\n\n const now = new Date()\n const includeYear = now.getFullYear() !== year\n return date.toLocaleDateString(undefined, includeYear\n ? { weekday: \"short\", month: \"short\", day: \"numeric\", year: \"numeric\" }\n : { weekday: \"short\", month: \"short\", day: \"numeric\" })\n}\n\nconst groupByDay = (items: NotificationItem[]): DayGroup[] => {\n const groups: DayGroup[] = []\n let currentKey: string | null = null\n\n for (const item of items) {\n const key = getDayKey(item.createdAt)\n if (key !== currentKey) {\n currentKey = key\n groups.push({ key, label: formatDayLabel(key), items: [] })\n }\n groups[groups.length - 1]!.items.push(item)\n }\n\n return groups\n}\n\nconst EmptyRealtimeContext = createContext<NotificationsRealtimeState | null>(null)\n\nexport function NotificationsDrawer({\n open,\n onOpenChange,\n className,\n limit = 50,\n defaultUnreadOnly = false,\n realtimeContext,\n}: {\n open: boolean\n onOpenChange: (open: boolean) => void\n className?: string\n limit?: number\n defaultUnreadOnly?: boolean\n realtimeContext?: Context<NotificationsRealtimeState | null>\n}) {\n const realtime = useContext(realtimeContext ?? EmptyRealtimeContext)\n\n const [items, setItems] = useState<NotificationItem[]>([])\n const [unreadCount, setUnreadCount] = useState<number>(0)\n const [unseenCount, setUnseenCount] = useState<number>(0)\n const [loading, setLoading] = useState(false)\n const [error, setError] = useState<string | null>(null)\n const [unreadOnly, setUnreadOnly] = useState<boolean>(defaultUnreadOnly)\n\n const mergedItems = realtime?.notifications ?? items\n const mergedUnreadCount = realtime?.unreadCount ?? unreadCount\n const mergedUnseenCount = realtime?.unseenCount ?? unseenCount\n const mergedLoading = realtime?.loading ?? loading\n const mergedError = realtime?.error\n ? (realtime.error instanceof Error ? realtime.error.message : String(realtime.error))\n : error\n\n const visibleItems = useMemo(() => mergedItems.slice(0, limit), [limit, mergedItems])\n\n const unread = useMemo(() => visibleItems.filter((n) => !n.readAt), [visibleItems])\n const read = useMemo(() => visibleItems.filter((n) => Boolean(n.readAt)), [visibleItems])\n const unreadGroups = useMemo(() => groupByDay(unread), [unread])\n const readGroups = useMemo(() => groupByDay(read), [read])\n\n const refresh = useCallback(async ({ unreadOnly, markSeen }: { unreadOnly: boolean; markSeen: boolean }) => {\n setLoading(true)\n setError(null)\n\n try {\n const res = await fetch(\"/api/rb/notifications\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n body: JSON.stringify({ limit, unreadOnly, markSeen }),\n })\n\n const json = (await res.json().catch(() => null)) as ListResponse | null\n if (!res.ok || !json?.ok) {\n setError(json?.error || \"Unable to load notifications.\")\n return\n }\n\n const nextItems = Array.isArray(json.notifications) ? json.notifications : []\n setItems(nextItems)\n setUnreadCount(Number.isFinite(json.unreadCount) ? Math.max(0, Math.floor(json.unreadCount ?? 0)) : 0)\n setUnseenCount(Number.isFinite(json.unseenCount) ? Math.max(0, Math.floor(json.unseenCount ?? 0)) : 0)\n } catch {\n setError(\"Unable to load notifications.\")\n } finally {\n setLoading(false)\n }\n }, [limit])\n\n useEffect(() => {\n if (!open) return\n if (realtime) {\n void (async () => {\n try {\n await fetch(\"/api/rb/notifications\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n keepalive: true,\n body: JSON.stringify({ limit: 1, markSeen: true }),\n })\n } catch {\n return\n }\n })()\n return\n }\n void refresh({ unreadOnly, markSeen: true })\n }, [open, realtime, refresh, unreadOnly])\n\n useEffect(() => {\n if (!open) return\n if (realtime) return\n void refresh({ unreadOnly, markSeen: false })\n }, [open, realtime, refresh, unreadOnly])\n\n const markAsRead = async (id: string) => {\n try {\n const res = await fetch(`/api/rb/notifications/${encodeURIComponent(id)}/read`, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n keepalive: true,\n body: \"{}\",\n })\n\n const json = (await res.json().catch(() => null)) as { ok?: boolean } | null\n if (!res.ok || !json?.ok) return\n\n const nowIso = new Date().toISOString()\n if (realtime) return\n setItems((current) => {\n const target = current.find((n) => n.id === id)\n if (target && !target.readAt) {\n setUnreadCount((count) => Math.max(0, count - 1))\n }\n if (target && !target.seenAt) {\n setUnseenCount((count) => Math.max(0, count - 1))\n }\n return current.map((n) => (n.id === id && !n.readAt ? { ...n, readAt: nowIso, ...(n.seenAt ? {} : { seenAt: nowIso }) } : n))\n })\n } catch {\n return\n }\n }\n\n const archive = async (id: string) => {\n try {\n const res = await fetch(`/api/rb/notifications/${encodeURIComponent(id)}/archive`, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n credentials: \"include\",\n body: \"{}\",\n })\n\n const json = (await res.json().catch(() => null)) as { ok?: boolean } | null\n if (!res.ok || !json?.ok) return\n\n if (realtime) return\n setItems((current) => {\n const target = current.find((n) => n.id === id)\n if (target && !target.readAt) {\n setUnreadCount((count) => Math.max(0, count - 1))\n }\n if (target && !target.seenAt) {\n setUnseenCount((count) => Math.max(0, count - 1))\n }\n return current.filter((n) => n.id !== id)\n })\n } catch {\n return\n }\n }\n\n return (\n <DialogPrimitive.Root open={open} onOpenChange={onOpenChange}>\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay className=\"fixed inset-0 z-50 bg-black/50\" />\n <DialogPrimitive.Content\n className={cn(\n \"fixed right-0 top-0 z-50 flex h-full w-full max-w-md flex-col border-l bg-background shadow-xl outline-none\",\n className,\n )}\n >\n <header className=\"flex items-center justify-between gap-2 border-b px-4 py-3\">\n <div className=\"flex min-w-0 flex-col\">\n <DialogPrimitive.Title className=\"text-sm font-semibold\">Notifications</DialogPrimitive.Title>\n <span className=\"text-xs text-muted-foreground\">\n {mergedUnreadCount > 0 ? `${mergedUnreadCount} unread` : mergedUnseenCount > 0 ? `${mergedUnseenCount} new` : \"All caught up\"}\n </span>\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() => setUnreadOnly((v) => !v)}\n className={cn(\n \"rounded-md border px-2 py-1 text-xs\",\n unreadOnly ? \"bg-accent text-foreground\" : \"bg-background text-muted-foreground hover:bg-accent\",\n )}\n >\n {unreadOnly ? \"Unread\" : \"All\"}\n </button>\n <DialogPrimitive.Close asChild>\n <button type=\"button\" className=\"inline-flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent\">\n <X className=\"h-4 w-4\" />\n </button>\n </DialogPrimitive.Close>\n </div>\n </header>\n\n <div className=\"flex-1 overflow-y-auto px-4 pb-3\">\n {mergedLoading ? (\n <div className=\"flex items-center justify-center py-10 text-muted-foreground\">\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n </div>\n ) : mergedError ? (\n <div className=\"py-10 text-center text-sm text-muted-foreground\">{mergedError}</div>\n ) : visibleItems.length === 0 ? (\n <div className=\"py-10 text-center text-sm text-muted-foreground\">No notifications.</div>\n ) : (\n <div className=\"flex flex-col gap-4\">\n <div>\n <div className=\"sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground\">\n Unread notifications\n </div>\n {unreadGroups.length === 0 ? (\n <div className=\"py-6 text-center text-sm text-muted-foreground\">No unread notifications.</div>\n ) : (\n unreadGroups.map((group) => (\n <div key={`unread:${group.key}`}>\n <div className=\"sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground\">\n {group.label}\n </div>\n <div className=\"-mx-4 flex flex-col divide-y divide-border\">\n {group.items.map((n) => (\n <NotificationRow\n key={n.id}\n notification={n}\n onMarkRead={markAsRead}\n onArchive={archive}\n />\n ))}\n </div>\n </div>\n ))\n )}\n </div>\n\n {unreadOnly ? null : (\n <div>\n <div className=\"sticky top-0 z-20 -mx-4 flex h-8 items-center border-b bg-background px-4 text-xs font-semibold text-muted-foreground\">\n Previous notifications\n </div>\n {readGroups.length === 0 ? (\n <div className=\"py-6 text-center text-sm text-muted-foreground\">No previous notifications.</div>\n ) : (\n readGroups.map((group) => (\n <div key={`previous:${group.key}`}>\n <div className=\"sticky top-8 z-10 -mx-4 flex h-7 items-center bg-background px-4 text-[11px] font-semibold text-muted-foreground\">\n {group.label}\n </div>\n <div className=\"-mx-4 flex flex-col divide-y divide-border\">\n {group.items.map((n) => (\n <NotificationRow\n key={n.id}\n notification={n}\n onMarkRead={markAsRead}\n onArchive={archive}\n />\n ))}\n </div>\n </div>\n ))\n )}\n </div>\n )}\n </div>\n )}\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n )\n}\n\nfunction NotificationRow({\n notification,\n onMarkRead,\n onArchive,\n}: {\n notification: NotificationItem\n onMarkRead: (id: string) => void\n onArchive: (id: string) => void\n}) {\n const isUnread = !notification.readAt\n const createdAtLabel = (() => {\n const date = new Date(toMs(notification.createdAt))\n if (!Number.isFinite(date.getTime())) return \"\"\n return date.toLocaleString()\n })()\n\n return (\n <div\n className={cn(\n \"group flex w-full gap-3 px-4 py-3 hover:bg-accent/40\",\n isUnread ? \"bg-primary/5\" : \"bg-background\",\n )}\n >\n <button\n type=\"button\"\n className=\"min-w-0 flex-1 text-left\"\n onClick={() => {\n if (isUnread) {\n void onMarkRead(notification.id)\n }\n if (notification.url) {\n window.location.href = notification.url\n }\n }}\n >\n <div className=\"min-w-0\">\n <div className=\"truncate text-sm font-semibold\">{notification.title}</div>\n {notification.body ? (\n <div className=\"mt-0.5 line-clamp-2 text-xs text-muted-foreground\">{notification.body}</div>\n ) : null}\n </div>\n {notification.url ? <div className=\"mt-2 truncate text-xs text-primary\">{notification.url}</div> : null}\n {createdAtLabel ? (\n <div className=\"mt-2 text-[11px] text-muted-foreground\">{createdAtLabel}</div>\n ) : null}\n </button>\n <div className=\"flex items-start\">\n <DropdownMenuPrimitive.Root>\n <DropdownMenuPrimitive.Trigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent\"\n aria-label=\"Notification options\"\n >\n <MoreVertical className=\"h-4 w-4\" />\n </button>\n </DropdownMenuPrimitive.Trigger>\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n align=\"end\"\n sideOffset={6}\n className={cn(\n \"z-50 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n )}\n >\n <DropdownMenuPrimitive.Item\n className=\"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\"\n onSelect={() => onArchive(notification.id)}\n >\n Archive\n </DropdownMenuPrimitive.Item>\n <DropdownMenuPrimitive.Item\n className=\"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\"\n disabled={!isUnread}\n onSelect={() => onMarkRead(notification.id)}\n >\n Mark as read\n </DropdownMenuPrimitive.Item>\n </DropdownMenuPrimitive.Content>\n </DropdownMenuPrimitive.Portal>\n </DropdownMenuPrimitive.Root>\n </div>\n </div>\n )\n}\n"],"names":["toMs","iso","ms","getDayKey","date","year","month","day","formatDayLabel","key","yearRaw","monthRaw","dayRaw","includeYear","groupByDay","items","groups","currentKey","item","EmptyRealtimeContext","createContext","NotificationsDrawer","open","onOpenChange","className","limit","defaultUnreadOnly","realtimeContext","realtime","useContext","setItems","useState","unreadCount","setUnreadCount","unseenCount","setUnseenCount","loading","setLoading","error","setError","unreadOnly","setUnreadOnly","mergedItems","mergedUnreadCount","mergedUnseenCount","mergedLoading","mergedError","visibleItems","useMemo","unread","read","unreadGroups","readGroups","refresh","useCallback","markSeen","res","json","nextItems","useEffect","markAsRead","id","nowIso","current","target","n","count","archive","jsx","DialogPrimitive","jsxs","cn","v","X","Loader2","group","NotificationRow","notification","onMarkRead","onArchive","isUnread","createdAtLabel","DropdownMenuPrimitive.Root","DropdownMenuPrimitive.Trigger","MoreVertical","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Content","DropdownMenuPrimitive.Item"],"mappings":";;;;;;AAwBA,MAAMA,IAAO,CAACC,MAAwB;AACpC,QAAMC,IAAK,KAAK,MAAMD,CAAG;AACzB,SAAO,OAAO,SAASC,CAAE,IAAIA,IA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"],"sourcesContent":["import { Bell } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\n\nexport function NotificationsButton({\n unseenCount,\n unreadCount,\n onClick,\n className,\n}: {\n unseenCount?: number\n unreadCount?: number\n onClick?: () => void\n className?: string\n}) {\n const rawCount = Number.isFinite(unseenCount) ? unseenCount : unreadCount\n const count = Number.isFinite(rawCount) ? Math.max(0, Math.floor(rawCount ?? 0)) : 0\n\n return (\n <button\n type=\"button\"\n onClick={onClick}\n className={cn(\n \"relative inline-flex h-9 w-9 items-center justify-center rounded-md border bg-background text-foreground hover:bg-accent\",\n className,\n )}\n aria-label={count > 0 ? `Notifications (${count} new)` : \"Notifications\"}\n >\n <Bell className=\"h-4 w-4\" />\n {count > 0 ? (\n <span\n className=\"absolute -right-1 -top-1 inline-flex min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-semibold leading-4 text-primary-foreground\"\n aria-hidden=\"true\"\n >\n {count > 99 ? \"99+\" : String(count)}\n </span>\n ) : null}\n </button>\n )\n}\n"],"names":["NotificationsButton","t0","$","_c","unseenCount","unreadCount","onClick","className","rawCount","Number","isFinite","t1","Math","max","floor","count","t2","cn","t3","t4","Symbol","for","Bell","t5","jsx","String","t6","jsxs"],"mappings":";;;;AAKO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GAA6B;AAAA,IAAAC,aAAAA;AAAAA,IAAAC,aAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,WAAAA;AAAAA,EAAAA,IAAAN,GAWlCO,IAAiBC,OAAMC,SAAUN,CAAuC,IAAvDA,IAAAC;AAAwD,MAAAM;AAAA,EAAAT,SAAAM,KAC3DG,IAAAF,OAAMC,SAAUF,CAAqD,IAAzCI,KAAIC,IAAK,GAAGD,KAAIE,MAAON,KAAA,CAAa,CAAK,IAArE,GAAsEN,OAAAM,GAAAN,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAApF,QAAAa,IAAcJ;AAA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alendar: a } = I ?? {}, { addDays: i, differenceInCalendarDays: M, differenceInCalendarMonths: C, endOfBroadcastWeek: O, endOfISOWeek: k, endOfMonth: h, endOfWeek: l, isAfter: E, startOfBroadcastWeek: F, startOfISOWeek: S, startOfWeek: p } = W, g = a ? F(s, W) : c ? S(s) : p(s), D = a ? O(o) : c ? k(h(o)) : l(h(o)), f = n && (a ? O(n) : c ? k(n) : l(n)), x = f && E(D, f) ? f : D, A = M(x, g), B = C(o, s) + 1, e = [];
|
|
3
|
+
for (let t = 0; t <= A; t++) {
|
|
4
|
+
const d = i(g, t);
|
|
5
|
+
e.push(d);
|
|
6
|
+
}
|
|
7
|
+
const y = (a ? 35 : 42) * B;
|
|
8
|
+
if (u && e.length < y) {
|
|
9
|
+
const t = y - e.length;
|
|
10
|
+
for (let d = 0; d < t; d++) {
|
|
11
|
+
const T = i(e[e.length - 1], 1);
|
|
12
|
+
e.push(T);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
12
16
|
}
|
|
13
17
|
export {
|
|
14
|
-
|
|
18
|
+
j as getDates
|
|
15
19
|
};
|
|
16
20
|
//# sourceMappingURL=index230.js.map
|
package/dist/index230.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index230.js","sources":["../../../node_modules/react-day-picker/dist/esm/
|
|
1
|
+
{"version":3,"file":"index230.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const displayMonthsWeekEnd = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n // If maxDate is set, clamp the grid to the end of that week.\n const constraintWeekEnd = maxDate &&\n (broadcastCalendar\n ? endOfBroadcastWeek(maxDate)\n : ISOWeek\n ? endOfISOWeek(maxDate)\n : endOfWeek(maxDate));\n // Pick the earliest week end between the displayed months and the constraint.\n const gridEndDate = constraintWeekEnd && isAfter(displayMonthsWeekEnd, constraintWeekEnd)\n ? constraintWeekEnd\n : displayMonthsWeekEnd;\n const nOfDays = differenceInCalendarDays(gridEndDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n"],"names":["getDates","displayMonths","maxDate","props","dateLib","firstMonth","lastMonth","ISOWeek","fixedWeeks","broadcastCalendar","addDays","differenceInCalendarDays","differenceInCalendarMonths","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","isAfter","startOfBroadcastWeek","startOfISOWeek","startOfWeek","startWeekFirstDate","displayMonthsWeekEnd","constraintWeekEnd","gridEndDate","nOfDays","nOfMonths","dates","i","date","extraDates","daysToAdd"],"mappings":"AAYO,SAASA,EAASC,GAAeC,GAASC,GAAOC,GAAS;AAC7D,QAAMC,IAAaJ,EAAc,CAAC,GAC5BK,IAAYL,EAAcA,EAAc,SAAS,CAAC,GAClD,EAAE,SAAAM,GAAS,YAAAC,GAAY,mBAAAC,EAAiB,IAAKN,KAAS,CAAA,GACtD,EAAE,SAAAO,GAAS,0BAAAC,GAA0B,4BAAAC,GAA4B,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMhB,GAC1LiB,IAAqBZ,IACrBS,EAAqBb,GAAYD,CAAO,IACxCG,IACIY,EAAed,CAAU,IACzBe,EAAYf,CAAU,GAC1BiB,IAAuBb,IACvBI,EAAmBP,CAAS,IAC5BC,IACIO,EAAaC,EAAWT,CAAS,CAAC,IAClCU,EAAUD,EAAWT,CAAS,CAAC,GAEnCiB,IAAoBrB,MACrBO,IACKI,EAAmBX,CAAO,IAC1BK,IACIO,EAAaZ,CAAO,IACpBc,EAAUd,CAAO,IAEzBsB,IAAcD,KAAqBN,EAAQK,GAAsBC,CAAiB,IAClFA,IACAD,GACAG,IAAUd,EAAyBa,GAAaH,CAAkB,GAClEK,IAAYd,EAA2BN,GAAWD,CAAU,IAAI,GAChEsB,IAAQ,CAAA;AACd,WAASC,IAAI,GAAGA,KAAKH,GAASG,KAAK;AAC/B,UAAMC,IAAOnB,EAAQW,GAAoBO,CAAC;AAC1C,IAAAD,EAAM,KAAKE,CAAI;AAAA,EACnB;AAGA,QAAMC,KADyBrB,IAAoB,KAAK,MACZiB;AAC5C,MAAIlB,KAAcmB,EAAM,SAASG,GAAY;AACzC,UAAMC,IAAYD,IAAaH,EAAM;AACrC,aAASC,IAAI,GAAGA,IAAIG,GAAWH,KAAK;AAChC,YAAMC,IAAOnB,EAAQiB,EAAMA,EAAM,SAAS,CAAC,GAAG,CAAC;AAC/C,MAAAA,EAAM,KAAKE,CAAI;AAAA,IACnB;AAAA,EACJ;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
|
package/dist/index231.js
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
else if (o && !i)
|
|
8
|
-
r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
|
|
9
|
-
else if (o && i)
|
|
10
|
-
if (r(o, f) && r(i, f))
|
|
11
|
-
l ? e = { from: o, to: i } : e = void 0;
|
|
12
|
-
else if (r(o, f))
|
|
13
|
-
e = { from: o, to: n > 0 ? void 0 : f };
|
|
14
|
-
else if (r(i, f))
|
|
15
|
-
e = { from: f, to: n > 0 ? void 0 : f };
|
|
16
|
-
else if (c(f, o))
|
|
17
|
-
e = { from: f, to: i };
|
|
18
|
-
else if (m(f, o))
|
|
19
|
-
e = { from: o, to: f };
|
|
20
|
-
else if (m(f, i))
|
|
21
|
-
e = { from: o, to: f };
|
|
22
|
-
else
|
|
23
|
-
throw new Error("Invalid range");
|
|
24
|
-
if (e?.from && e?.to) {
|
|
25
|
-
const t = u.differenceInCalendarDays(e.to, e.from);
|
|
26
|
-
s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
|
|
27
|
-
}
|
|
28
|
-
return e;
|
|
1
|
+
function a(c) {
|
|
2
|
+
const e = [];
|
|
3
|
+
return c.reduce((s, t) => {
|
|
4
|
+
const n = t.weeks.reduce((r, i) => r.concat(i.days.slice()), e.slice());
|
|
5
|
+
return s.concat(n.slice());
|
|
6
|
+
}, e.slice());
|
|
29
7
|
}
|
|
30
8
|
export {
|
|
31
|
-
|
|
9
|
+
a as getDays
|
|
32
10
|
};
|
|
33
11
|
//# sourceMappingURL=index231.js.map
|
package/dist/index231.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index231.js","sources":["../../../node_modules/react-day-picker/dist/esm/
|
|
1
|
+
{"version":3,"file":"index231.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return weekDays.concat(week.days.slice());\n }, initialDays.slice());\n return days.concat(weekDays.slice());\n }, initialDays.slice());\n}\n"],"names":["getDays","calendarMonths","initialDays","days","month","weekDays","week"],"mappings":"AAQO,SAASA,EAAQC,GAAgB;AACpC,QAAMC,IAAc,CAAA;AACpB,SAAOD,EAAe,OAAO,CAACE,GAAMC,MAAU;AAC1C,UAAMC,IAAWD,EAAM,MAAM,OAAO,CAACC,GAAUC,MACpCD,EAAS,OAAOC,EAAK,KAAK,MAAK,CAAE,GACzCJ,EAAY,OAAO;AACtB,WAAOC,EAAK,OAAOE,EAAS,MAAK,CAAE;AAAA,EACvC,GAAGH,EAAY,OAAO;AAC1B;","x_google_ignoreList":[0]}
|
package/dist/index232.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return !0;
|
|
9
|
-
a = e.addDays(a, 1);
|
|
1
|
+
function i(e, o, h, r) {
|
|
2
|
+
const { numberOfMonths: f = 1 } = h, n = [];
|
|
3
|
+
for (let t = 0; t < f; t++) {
|
|
4
|
+
const s = r.addMonths(e, t);
|
|
5
|
+
if (o && s > o)
|
|
6
|
+
break;
|
|
7
|
+
n.push(s);
|
|
10
8
|
}
|
|
11
|
-
return
|
|
9
|
+
return n;
|
|
12
10
|
}
|
|
13
11
|
export {
|
|
14
|
-
|
|
12
|
+
i as getDisplayMonths
|
|
15
13
|
};
|
|
16
14
|
//# sourceMappingURL=index232.js.map
|
package/dist/index232.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index232.js","sources":["../../../node_modules/react-day-picker/dist/esm/
|
|
1
|
+
{"version":3,"file":"index232.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month"],"mappings":"AAUO,SAASA,EAAiBC,GAAqBC,GAAkBC,GAAOC,GAAS;AACpF,QAAM,EAAE,gBAAAC,IAAiB,EAAC,IAAKF,GACzBG,IAAS,CAAA;AACf,WAASC,IAAI,GAAGA,IAAIF,GAAgBE,KAAK;AACrC,UAAMC,IAAQJ,EAAQ,UAAUH,GAAqBM,CAAC;AACtD,QAAIL,KAAoBM,IAAQN;AAC5B;AAEJ,IAAAI,EAAO,KAAKE,CAAK;AAAA,EACrB;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
|
package/dist/index233.js
CHANGED
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const e = Array.isArray(t) ? t : [t];
|
|
9
|
-
if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
|
|
10
|
-
from: f.addDays(o.after, 1),
|
|
11
|
-
to: f.addDays(o.before, -1)
|
|
12
|
-
}, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
|
|
13
|
-
return !0;
|
|
14
|
-
const i = e.filter((o) => typeof o == "function");
|
|
15
|
-
if (i.length) {
|
|
16
|
-
let o = n.from;
|
|
17
|
-
const r = f.differenceInCalendarDays(n.to, n.from);
|
|
18
|
-
for (let u = 0; u <= r; u++) {
|
|
19
|
-
if (i.some((D) => D(o)))
|
|
20
|
-
return !0;
|
|
21
|
-
o = f.addDays(o, 1);
|
|
22
|
-
}
|
|
1
|
+
function u(i, o, n, e) {
|
|
2
|
+
const { month: s, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = i;
|
|
3
|
+
let t = s || M || c;
|
|
4
|
+
const { differenceInCalendarMonths: h, addMonths: l, startOfMonth: r } = e;
|
|
5
|
+
if (n && h(n, t) < f - 1) {
|
|
6
|
+
const d = -1 * (f - 1);
|
|
7
|
+
t = l(n, d);
|
|
23
8
|
}
|
|
24
|
-
return
|
|
9
|
+
return o && h(t, o) < 0 && (t = o), r(t);
|
|
25
10
|
}
|
|
26
11
|
export {
|
|
27
|
-
|
|
12
|
+
u as getInitialMonth
|
|
28
13
|
};
|
|
29
14
|
//# sourceMappingURL=index233.js.map
|
package/dist/index233.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index233.js","sources":["../../../node_modules/react-day-picker/dist/esm/
|
|
1
|
+
{"version":3,"file":"index233.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/**\n * Determines the initial month to display in the calendar based on the provided\n * props.\n *\n * This function calculates the starting month, considering constraints such as\n * `startMonth`, `endMonth`, and the number of months to display.\n *\n * @param props The DayPicker props, including navigation and date constraints.\n * @param dateLib The date library to use for date manipulation.\n * @returns The initial month to display.\n */\nexport function getInitialMonth(props, navStart, navEnd, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n if (navEnd &&\n differenceInCalendarMonths(navEnd, initialMonth) < numberOfMonths - 1) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(navEnd, offset);\n }\n if (navStart && differenceInCalendarMonths(initialMonth, navStart) < 0) {\n initialMonth = navStart;\n }\n return startOfMonth(initialMonth);\n}\n"],"names":["getInitialMonth","props","navStart","navEnd","dateLib","month","defaultMonth","today","numberOfMonths","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAWO,SAASA,EAAgBC,GAAOC,GAAUC,GAAQC,GAAS;AAC9D,QAAM,EAAE,OAAAC,GAAO,cAAAC,GAAc,OAAAC,IAAQH,EAAQ,SAAS,gBAAAI,IAAiB,EAAC,IAAMP;AAC9E,MAAIQ,IAAeJ,KAASC,KAAgBC;AAC5C,QAAM,EAAE,4BAAAG,GAA4B,WAAAC,GAAW,cAAAC,EAAY,IAAKR;AAChE,MAAID,KACAO,EAA2BP,GAAQM,CAAY,IAAID,IAAiB,GAAG;AACvE,UAAMK,IAAS,MAAML,IAAiB;AACtC,IAAAC,IAAeE,EAAUR,GAAQU,CAAM;AAAA,EAC3C;AACA,SAAIX,KAAYQ,EAA2BD,GAAcP,CAAQ,IAAI,MACjEO,IAAeP,IAEZU,EAAaH,CAAY;AACpC;","x_google_ignoreList":[0]}
|
package/dist/index234.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { CalendarDay as F } from "./index193.js";
|
|
2
|
+
import { CalendarWeek as N } from "./index195.js";
|
|
3
|
+
import { CalendarMonth as P } from "./index194.js";
|
|
4
|
+
function j(l, f, e, c) {
|
|
5
|
+
const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
|
|
6
|
+
const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
|
|
7
|
+
if (e.fixedWeeks && a.length < O) {
|
|
8
|
+
const r = f.filter((n) => {
|
|
9
|
+
const s = O - a.length;
|
|
10
|
+
return n > d && n <= y(d, s);
|
|
11
|
+
});
|
|
12
|
+
a.push(...r);
|
|
13
|
+
}
|
|
14
|
+
const b = a.reduce((r, n) => {
|
|
15
|
+
const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
|
|
16
|
+
return i ? i.days.push(u) : r.push(new N(s, [u])), r;
|
|
17
|
+
}, []), v = new P(t, b);
|
|
18
|
+
return W.push(v), W;
|
|
19
|
+
}, []);
|
|
20
|
+
return e.reverseMonths ? o.reverse() : o;
|
|
5
21
|
}
|
|
6
22
|
export {
|
|
7
|
-
|
|
23
|
+
j as getMonths
|
|
8
24
|
};
|
|
9
25
|
//# sourceMappingURL=index234.js.map
|
package/dist/index234.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index234.js","sources":["../../../node_modules/react-day-picker/dist/esm/
|
|
1
|
+
{"version":3,"file":"index234.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarDay, CalendarMonth, CalendarWeek } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","months","month","firstDateOfFirstWeek","lastDateOfLastWeek","monthDates","date","nrOfDaysWithFixedWeeks","extraDates","daysToAdd","weeks","weekNumber","week","day","CalendarDay","CalendarWeek","dayPickerMonth","CalendarMonth"],"mappings":";;;AAeO,SAASA,EAAUC,GAAeC,GAAOC,GAAOC,GAAS;AAC5D,QAAM,EAAE,SAAAC,GAAS,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMV,GAChJW,IAAkBd,EAAc,OAAO,CAACe,GAAQC,MAAU;AAC5D,UAAMC,IAAuBf,EAAM,oBAC7BS,EAAqBK,GAAOb,CAAO,IACnCD,EAAM,UACFU,EAAeI,CAAK,IACpBH,EAAYG,CAAK,GACrBE,IAAqBhB,EAAM,oBAC3BG,EAAmBW,CAAK,IACxBd,EAAM,UACFI,EAAaC,EAAWS,CAAK,CAAC,IAC9BR,EAAUD,EAAWS,CAAK,CAAC,GAE/BG,IAAalB,EAAM,OAAO,CAACmB,MACtBA,KAAQH,KAAwBG,KAAQF,CAClD,GACKG,IAAyBnB,EAAM,oBAAoB,KAAK;AAC9D,QAAIA,EAAM,cAAciB,EAAW,SAASE,GAAwB;AAChE,YAAMC,IAAarB,EAAM,OAAO,CAACmB,MAAS;AACtC,cAAMG,IAAYF,IAAyBF,EAAW;AACtD,eAAQC,IAAOF,KACXE,KAAQhB,EAAQc,GAAoBK,CAAS;AAAA,MACrD,CAAC;AACD,MAAAJ,EAAW,KAAK,GAAGG,CAAU;AAAA,IACjC;AACA,UAAME,IAAQL,EAAW,OAAO,CAACK,GAAOJ,MAAS;AAC7C,YAAMK,IAAavB,EAAM,UAAUO,EAAWW,CAAI,IAAIV,EAAQU,CAAI,GAC5DM,IAAOF,EAAM,KAAK,CAACE,MAASA,EAAK,eAAeD,CAAU,GAC1DE,IAAM,IAAIC,EAAYR,GAAMJ,GAAOb,CAAO;AAChD,aAAKuB,IAIDA,EAAK,KAAK,KAAKC,CAAG,IAHlBH,EAAM,KAAK,IAAIK,EAAaJ,GAAY,CAACE,CAAG,CAAC,CAAC,GAK3CH;AAAA,IACX,GAAG,CAAA,CAAE,GACCM,IAAiB,IAAIC,EAAcf,GAAOQ,CAAK;AACrD,WAAAT,EAAO,KAAKe,CAAc,GACnBf;AAAA,EACX,GAAG,CAAA,CAAE;AACL,SAAKb,EAAM,gBAIAY,EAAgB,QAAO,IAHvBA;AAKf;","x_google_ignoreList":[0]}
|
package/dist/index235.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function c(t, e) {
|
|
11
|
-
var n = {};
|
|
12
|
-
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
13
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
14
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
|
|
15
|
-
e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
|
|
16
|
-
return n;
|
|
17
|
-
}
|
|
18
|
-
function l(t, e, n) {
|
|
19
|
-
if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
|
|
20
|
-
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
21
|
-
return t.concat(a || Array.prototype.slice.call(e));
|
|
1
|
+
function O(o, r) {
|
|
2
|
+
let { startMonth: t, endMonth: e } = o;
|
|
3
|
+
const { startOfYear: M, startOfDay: d, startOfMonth: c, endOfMonth: Y, addYears: l, endOfYear: w, newDate: f, today: i } = r, { fromYear: a, toYear: n, fromMonth: s, toMonth: h } = o;
|
|
4
|
+
!t && s && (t = s), !t && a && (t = r.newDate(a, 0, 1)), !e && h && (e = h), !e && n && (e = f(n, 11, 31));
|
|
5
|
+
const y = o.captionLayout === "dropdown" || o.captionLayout === "dropdown-years";
|
|
6
|
+
return t ? t = c(t) : a ? t = f(a, 0, 1) : !t && y && (t = M(l(o.today ?? i(), -100))), e ? e = Y(e) : n ? e = f(n, 11, 31) : !e && y && (e = w(o.today ?? i())), [
|
|
7
|
+
t && d(t),
|
|
8
|
+
e && d(e)
|
|
9
|
+
];
|
|
22
10
|
}
|
|
23
11
|
export {
|
|
24
|
-
|
|
25
|
-
c as __rest,
|
|
26
|
-
l as __spreadArray
|
|
12
|
+
O as getNavMonths
|
|
27
13
|
};
|
|
28
14
|
//# sourceMappingURL=index235.js.map
|
package/dist/index235.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index235.js","sources":["../../../node_modules/tslib/tslib.es6.mjs"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n"],"names":["__assign","t","s","i","n","p","__rest","__spreadArray","to","from","pack","l","ar"],"mappings":"AA+BU,IAACA,IAAW,WAAW;AAC/B,SAAAA,IAAW,OAAO,UAAU,SAAkBC,GAAG;AAC7C,aAASC,GAAGC,IAAI,GAAGC,IAAI,UAAU,QAAQD,IAAIC,GAAGD,KAAK;AACjD,MAAAD,IAAI,UAAUC,CAAC;AACf,eAASE,KAAKH,EAAG,CAAI,OAAO,UAAU,eAAe,KAAKA,GAAGG,CAAC,MAAGJ,EAAEI,CAAC,IAAIH,EAAEG,CAAC;AAAA,IAC/E;AACA,WAAOJ;AAAA,EACX,GACOD,EAAS,MAAM,MAAM,SAAS;AACvC;AAEO,SAASM,EAAOJ,GAAG,GAAG;AAC3B,MAAID,IAAI,CAAA;AACR,WAASI,KAAKH,EAAG,CAAI,OAAO,UAAU,eAAe,KAAKA,GAAGG,CAAC,KAAK,EAAE,QAAQA,CAAC,IAAI,MAC9EJ,EAAEI,CAAC,IAAIH,EAAEG,CAAC;AACd,MAAIH,KAAK,QAAQ,OAAO,OAAO,yBAA0B;AACrD,aAASC,IAAI,GAAGE,IAAI,OAAO,sBAAsBH,CAAC,GAAGC,IAAIE,EAAE,QAAQF;AAC/D,MAAI,EAAE,QAAQE,EAAEF,CAAC,CAAC,IAAI,KAAK,OAAO,UAAU,qBAAqB,KAAKD,GAAGG,EAAEF,CAAC,CAAC,MACzEF,EAAEI,EAAEF,CAAC,CAAC,IAAID,EAAEG,EAAEF,CAAC,CAAC;AAE5B,SAAOF;AACT;AAiKO,SAASM,EAAcC,GAAIC,GAAMC,GAAM;AAC5C,MAAIA,KAAQ,UAAU,WAAW,EAAG,UAASP,IAAI,GAAGQ,IAAIF,EAAK,QAAQG,GAAIT,IAAIQ,GAAGR;AAC5E,KAAIS,KAAM,EAAET,KAAKM,QACRG,MAAIA,IAAK,MAAM,UAAU,MAAM,KAAKH,GAAM,GAAGN,CAAC,IACnDS,EAAGT,CAAC,IAAIM,EAAKN,CAAC;AAGtB,SAAOK,EAAG,OAAOI,KAAM,MAAM,UAAU,MAAM,KAAKH,CAAI,CAAC;AACzD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index235.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, newDate, today, } = dateLib;\n // Handle deprecated code\n const { fromYear, toYear, fromMonth, toMonth } = props;\n if (!startMonth && fromMonth) {\n startMonth = fromMonth;\n }\n if (!startMonth && fromYear) {\n startMonth = dateLib.newDate(fromYear, 0, 1);\n }\n if (!endMonth && toMonth) {\n endMonth = toMonth;\n }\n if (!endMonth && toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (fromYear) {\n startMonth = newDate(fromYear, 0, 1);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth,\n ];\n}\n"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","newDate","today","fromYear","toYear","fromMonth","toMonth","hasYearDropdown"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAS;AACzC,MAAI,EAAE,YAAAC,GAAY,UAAAC,EAAQ,IAAKH;AAC/B,QAAM,EAAE,aAAAI,GAAa,YAAAC,GAAY,cAAAC,GAAc,YAAAC,GAAY,UAAAC,GAAU,WAAAC,GAAW,SAAAC,GAAS,OAAAC,EAAK,IAAMV,GAE9F,EAAE,UAAAW,GAAU,QAAAC,GAAQ,WAAAC,GAAW,SAAAC,EAAO,IAAKf;AACjD,EAAI,CAACE,KAAcY,MACfZ,IAAaY,IAEb,CAACZ,KAAcU,MACfV,IAAaD,EAAQ,QAAQW,GAAU,GAAG,CAAC,IAE3C,CAACT,KAAYY,MACbZ,IAAWY,IAEX,CAACZ,KAAYU,MACbV,IAAWO,EAAQG,GAAQ,IAAI,EAAE;AAErC,QAAMG,IAAkBhB,EAAM,kBAAkB,cAC5CA,EAAM,kBAAkB;AAC5B,SAAIE,IACAA,IAAaI,EAAaJ,CAAU,IAE/BU,IACLV,IAAaQ,EAAQE,GAAU,GAAG,CAAC,IAE9B,CAACV,KAAcc,MACpBd,IAAaE,EAAYI,EAASR,EAAM,SAASW,EAAK,GAAI,IAAI,CAAC,IAE/DR,IACAA,IAAWI,EAAWJ,CAAQ,IAEzBU,IACLV,IAAWO,EAAQG,GAAQ,IAAI,EAAE,IAE5B,CAACV,KAAYa,MAClBb,IAAWM,EAAUT,EAAM,SAASW,EAAK,CAAE,IAExC;AAAA,IACHT,KAAaG,EAAWH,CAAU;AAAA,IAClCC,KAAWE,EAAWF,CAAQ;AAAA,EACtC;AACA;","x_google_ignoreList":[0]}
|
package/dist/index236.js
CHANGED
|
@@ -1,32 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onWheelCapture: l,
|
|
11
|
-
onTouchMoveCapture: l
|
|
12
|
-
}), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
|
|
13
|
-
return a.createElement(
|
|
14
|
-
a.Fragment,
|
|
15
|
-
null,
|
|
16
|
-
R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
|
|
17
|
-
h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
|
|
18
|
-
);
|
|
19
|
-
});
|
|
20
|
-
m.defaultProps = {
|
|
21
|
-
enabled: !0,
|
|
22
|
-
removeScrollBar: !0,
|
|
23
|
-
inert: !1
|
|
24
|
-
};
|
|
25
|
-
m.classNames = {
|
|
26
|
-
fullWidth: Z,
|
|
27
|
-
zeroRight: I
|
|
28
|
-
};
|
|
1
|
+
function h(n, t, e, s) {
|
|
2
|
+
if (e.disableNavigation)
|
|
3
|
+
return;
|
|
4
|
+
const { pagedNavigation: u, numberOfMonths: f = 1 } = e, { startOfMonth: a, addMonths: o, differenceInCalendarMonths: d } = s, i = u ? f : 1, r = a(n);
|
|
5
|
+
if (!t)
|
|
6
|
+
return o(r, i);
|
|
7
|
+
if (!(d(t, n) < f))
|
|
8
|
+
return o(r, i);
|
|
9
|
+
}
|
|
29
10
|
export {
|
|
30
|
-
|
|
11
|
+
h as getNextMonth
|
|
31
12
|
};
|
|
32
13
|
//# sourceMappingURL=index236.js.map
|
package/dist/index236.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index236.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index236.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAiBO,SAASA,EAAaC,GAAqBC,GAAkBC,GAASC,GAAS;AAClF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,IAAiB,EAAC,IAAKH,GAC1C,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAkBC,IAAiB,GAC5CK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAOD,CAAM;AAGlC,MAAI,EADeD,EAA2BP,GAAkBD,CAAmB,IAClEK;AAGjB,WAAOE,EAAUG,GAAOD,CAAM;AAClC;","x_google_ignoreList":[0]}
|
package/dist/index237.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const f =
|
|
1
|
+
function c(i, t, e, s) {
|
|
2
|
+
if (e.disableNavigation)
|
|
3
|
+
return;
|
|
4
|
+
const { pagedNavigation: r, numberOfMonths: d } = e, { startOfMonth: u, addMonths: f, differenceInCalendarMonths: a } = s, o = r ? d ?? 1 : 1, n = u(i);
|
|
5
|
+
if (!t)
|
|
6
|
+
return f(n, -o);
|
|
7
|
+
if (!(a(n, t) <= 0))
|
|
8
|
+
return f(n, -o);
|
|
9
|
+
}
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
c as getPreviousMonth
|
|
7
12
|
};
|
|
8
13
|
//# sourceMappingURL=index237.js.map
|
package/dist/index237.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index237.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index237.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAkBO,SAASA,EAAiBC,GAAqBC,GAAoBC,GAASC,GAAS;AACxF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,EAAc,IAAKH,GACtC,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAmBC,KAAkB,IAAK,GACnDK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAO,CAACD,CAAM;AAGnC,MAAI,EADeD,EAA2BE,GAAOT,CAAkB,KACrD;AAGlB,WAAOM,EAAUG,GAAO,CAACD,CAAM;AACnC;","x_google_ignoreList":[0]}
|