@anoki/fse-ui 1.0.561 → 1.0.563
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/AuthorBlock/AuthorBlock.css +1 -1
- package/dist/components/ui/EditorialWidget/EditorialWidget.css +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs133.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs169.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs171.js.map +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs173.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs180.js.map +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs181.js.map +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs184.js.map +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs185.js.map +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs186.js.map +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs187.js.map +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs188.js.map +1 -1
- package/dist/{index.cjs178.js → index.cjs189.js} +2 -2
- package/dist/{index.cjs178.js.map → index.cjs189.js.map} +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs190.js.map +1 -1
- package/dist/index.cjs191.js +2 -0
- package/dist/index.cjs191.js.map +1 -0
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +2 -0
- package/dist/index.cjs193.js.map +1 -0
- package/dist/index.cjs194.js +2 -0
- package/dist/index.cjs194.js.map +1 -0
- package/dist/index.cjs195.js +2 -0
- package/dist/index.cjs195.js.map +1 -0
- package/dist/index.cjs196.js +2 -0
- package/dist/index.cjs196.js.map +1 -0
- package/dist/index.cjs197.js +2 -0
- package/dist/index.cjs197.js.map +1 -0
- package/dist/index.cjs198.js +2 -0
- package/dist/index.cjs198.js.map +1 -0
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs334.js +2 -0
- package/dist/index.cjs334.js.map +1 -0
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs335.js.map +1 -1
- package/dist/index.cjs336.js +1 -1
- package/dist/index.cjs336.js.map +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs338.js.map +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs339.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs340.js.map +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs359.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/{index.cjs348.js → index.cjs366.js} +1 -1
- package/dist/index.cjs366.js.map +1 -0
- package/dist/{index.cjs349.js → index.cjs367.js} +1 -1
- package/dist/index.cjs367.js.map +1 -0
- package/dist/index.cjs369.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs371.js +1 -1
- package/dist/index.cjs372.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs403.js +1 -1
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs404.js +2 -0
- package/dist/index.cjs404.js.map +1 -0
- package/dist/{index.cjs400.js → index.cjs405.js} +1 -1
- package/dist/{index.cjs400.js.map → index.cjs405.js.map} +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es100.js +2 -2
- package/dist/index.es101.js +2 -2
- package/dist/index.es102.js +2 -2
- package/dist/index.es103.js +2 -2
- package/dist/index.es104.js +2 -2
- package/dist/index.es105.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es107.js +2 -2
- package/dist/index.es108.js +1 -1
- package/dist/index.es109.js +3 -3
- package/dist/index.es11.js +2 -2
- package/dist/index.es110.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +3 -3
- package/dist/index.es113.js +2 -2
- package/dist/index.es114.js +1 -1
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +2 -2
- package/dist/index.es117.js +2 -2
- package/dist/index.es118.js +2 -2
- package/dist/index.es119.js +2 -2
- package/dist/index.es12.js +2 -2
- package/dist/index.es120.js +2 -2
- package/dist/index.es121.js +2 -2
- package/dist/index.es122.js +2 -2
- package/dist/index.es123.js +2 -2
- package/dist/index.es124.js +2 -2
- package/dist/index.es125.js +2 -2
- package/dist/index.es126.js +2 -2
- package/dist/index.es127.js +2 -2
- package/dist/index.es128.js +2 -2
- package/dist/index.es129.js +2 -2
- package/dist/index.es13.js +2 -2
- package/dist/index.es130.js +2 -2
- package/dist/index.es131.js +2 -2
- package/dist/index.es132.js +2 -2
- package/dist/index.es133.js +2 -2
- package/dist/index.es134.js +2 -2
- package/dist/index.es135.js +2 -2
- package/dist/index.es136.js +2 -2
- package/dist/index.es137.js +2 -2
- package/dist/index.es138.js +2 -2
- package/dist/index.es139.js +2 -2
- package/dist/index.es14.js +2 -2
- package/dist/index.es140.js +2 -2
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +2 -2
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +2 -2
- package/dist/index.es145.js +2 -2
- package/dist/index.es146.js +2 -2
- package/dist/index.es147.js +2 -2
- package/dist/index.es148.js +2 -2
- package/dist/index.es149.js +2 -2
- package/dist/index.es15.js +2 -2
- package/dist/index.es150.js +2 -2
- package/dist/index.es151.js +2 -2
- package/dist/index.es152.js +2 -2
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +2 -2
- package/dist/index.es157.js +2 -2
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +2 -2
- package/dist/index.es16.js +2 -2
- package/dist/index.es160.js +2 -2
- package/dist/index.es161.js +1 -1
- package/dist/index.es162.js +2 -2
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +2 -2
- package/dist/index.es165.js +2 -2
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +2 -2
- package/dist/index.es168.js +2 -2
- package/dist/index.es169.js +3 -1801
- package/dist/index.es169.js.map +1 -1
- package/dist/index.es17.js +2 -2
- package/dist/index.es171.js +14 -177
- package/dist/index.es171.js.map +1 -1
- package/dist/index.es173.js +3 -123
- package/dist/index.es173.js.map +1 -1
- package/dist/index.es18.js +2 -2
- package/dist/index.es180.js +1801 -148
- package/dist/index.es180.js.map +1 -1
- package/dist/index.es181.js +467 -31
- package/dist/index.es181.js.map +1 -1
- package/dist/index.es182.js +175 -6
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js +243 -163
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es184.js +80 -43
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es185.js +275 -29
- package/dist/index.es185.js.map +1 -1
- package/dist/index.es186.js +198 -39
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es187.js +15 -73
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +34 -3
- package/dist/index.es188.js.map +1 -1
- package/dist/{index.es178.js → index.es189.js} +8 -8
- package/dist/{index.es178.js.map → index.es189.js.map} +1 -1
- package/dist/index.es19.js +2 -2
- package/dist/index.es190.js +89 -14
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +151 -0
- package/dist/index.es191.js.map +1 -0
- package/dist/index.es192.js +38 -3
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +12 -0
- package/dist/index.es193.js.map +1 -0
- package/dist/index.es194.js +182 -0
- package/dist/index.es194.js.map +1 -0
- package/dist/index.es195.js +89 -0
- package/dist/index.es195.js.map +1 -0
- package/dist/index.es196.js +42 -0
- package/dist/index.es196.js.map +1 -0
- package/dist/index.es197.js +48 -0
- package/dist/index.es197.js.map +1 -0
- package/dist/index.es198.js +78 -0
- package/dist/index.es198.js.map +1 -0
- package/dist/index.es20.js +2 -2
- package/dist/index.es209.js +2 -2
- package/dist/index.es21.js +2 -2
- package/dist/index.es212.js +2 -2
- package/dist/index.es215.js +8 -8
- package/dist/index.es218.js +2 -2
- package/dist/index.es219.js +2 -2
- package/dist/index.es22.js +2 -2
- package/dist/index.es220.js +2 -2
- package/dist/index.es226.js +6 -6
- package/dist/index.es23.js +2 -2
- package/dist/index.es235.js +2 -2
- package/dist/index.es237.js +7 -7
- package/dist/index.es238.js +1 -1
- package/dist/index.es239.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +1 -1
- package/dist/index.es241.js +1 -1
- package/dist/index.es243.js +1 -1
- package/dist/index.es244.js +1 -1
- package/dist/index.es245.js +2 -2
- package/dist/index.es248.js +2 -2
- package/dist/index.es249.js +1 -1
- package/dist/index.es25.js +2 -2
- package/dist/index.es254.js +2 -2
- package/dist/index.es255.js +1 -1
- package/dist/index.es256.js +1 -1
- package/dist/index.es258.js +1 -1
- package/dist/index.es259.js +2 -2
- package/dist/index.es26.js +2 -2
- package/dist/index.es260.js +1 -1
- package/dist/index.es262.js +2 -2
- package/dist/index.es263.js +2 -2
- package/dist/index.es264.js +6 -6
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +2 -2
- package/dist/index.es3.js +6 -6
- package/dist/index.es30.js +2 -2
- package/dist/index.es303.js +4 -4
- package/dist/index.es31.js +3 -3
- package/dist/index.es311.js +2 -2
- package/dist/index.es32.js +2 -2
- package/dist/index.es322.js +2 -2
- package/dist/index.es324.js +2 -2
- package/dist/index.es329.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es330.js +1 -1
- package/dist/index.es334.js +10 -0
- package/dist/index.es334.js.map +1 -0
- package/dist/index.es335.js +25 -5
- package/dist/index.es335.js.map +1 -1
- package/dist/index.es336.js +64 -23
- package/dist/index.es336.js.map +1 -1
- package/dist/index.es337.js +27 -65
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es338.js +32 -29
- package/dist/index.es338.js.map +1 -1
- package/dist/index.es339.js +621 -32
- package/dist/index.es339.js.map +1 -1
- package/dist/index.es34.js +2 -2
- package/dist/index.es340.js +10 -621
- package/dist/index.es340.js.map +1 -1
- package/dist/index.es347.js +1 -1
- package/dist/index.es35.js +1 -1
- package/dist/index.es353.js +4 -4
- package/dist/index.es354.js +3 -3
- package/dist/index.es355.js +2 -2
- package/dist/index.es359.js +2 -2
- package/dist/index.es36.js +1 -1
- package/dist/{index.es348.js → index.es366.js} +1 -1
- package/dist/index.es366.js.map +1 -0
- package/dist/{index.es349.js → index.es367.js} +1 -1
- package/dist/index.es367.js.map +1 -0
- package/dist/index.es369.js +3 -3
- package/dist/index.es37.js +1 -1
- package/dist/index.es370.js +1 -1
- package/dist/index.es371.js +4 -4
- package/dist/index.es372.js +7 -7
- package/dist/index.es38.js +2 -2
- package/dist/index.es380.js +2 -2
- package/dist/index.es39.js +2 -2
- package/dist/index.es394.js +1 -1
- package/dist/index.es395.js +1 -1
- package/dist/index.es4.js +7 -7
- package/dist/index.es40.js +2 -2
- package/dist/index.es402.js +11 -26
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +27 -4
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +8 -0
- package/dist/index.es404.js.map +1 -0
- package/dist/{index.es400.js → index.es405.js} +1 -1
- package/dist/{index.es400.js.map → index.es405.js.map} +1 -1
- package/dist/index.es41.js +1 -1
- package/dist/index.es413.js +5 -5
- package/dist/index.es42.js +2 -2
- package/dist/index.es43.js +2 -2
- package/dist/index.es44.js +2 -2
- package/dist/index.es45.js +2 -2
- package/dist/index.es46.js +1 -1
- package/dist/index.es47.js +1 -1
- package/dist/index.es48.js +2 -2
- package/dist/index.es49.js +2 -2
- package/dist/index.es5.js +3 -3
- package/dist/index.es50.js +2 -2
- package/dist/index.es51.js +2 -2
- package/dist/index.es52.js +2 -2
- package/dist/index.es53.js +2 -2
- package/dist/index.es54.js +1 -1
- package/dist/index.es55.js +1 -1
- package/dist/index.es56.js +2 -2
- package/dist/index.es57.js +1 -1
- package/dist/index.es58.js +2 -2
- package/dist/index.es59.js +2 -2
- package/dist/index.es6.js +2 -2
- package/dist/index.es60.js +2 -2
- package/dist/index.es61.js +2 -2
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +2 -2
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +1 -1
- package/dist/index.es68.js +3 -3
- package/dist/index.es69.js +2 -2
- package/dist/index.es7.js +2 -2
- package/dist/index.es70.js +2 -2
- package/dist/index.es71.js +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es75.js +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es79.js +1 -1
- package/dist/index.es8.js +2 -2
- package/dist/index.es80.js +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es83.js +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/index.es90.js +2 -2
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +2 -2
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +2 -2
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es97.js +1 -1
- package/dist/index.es98.js +1 -1
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
- package/dist/index.cjs170.js +0 -2
- package/dist/index.cjs170.js.map +0 -1
- package/dist/index.cjs172.js +0 -2
- package/dist/index.cjs172.js.map +0 -1
- package/dist/index.cjs174.js +0 -2
- package/dist/index.cjs174.js.map +0 -1
- package/dist/index.cjs175.js +0 -2
- package/dist/index.cjs175.js.map +0 -1
- package/dist/index.cjs176.js +0 -2
- package/dist/index.cjs176.js.map +0 -1
- package/dist/index.cjs177.js +0 -2
- package/dist/index.cjs177.js.map +0 -1
- package/dist/index.cjs179.js +0 -2
- package/dist/index.cjs179.js.map +0 -1
- package/dist/index.cjs341.js +0 -2
- package/dist/index.cjs341.js.map +0 -1
- package/dist/index.cjs348.js.map +0 -1
- package/dist/index.cjs349.js.map +0 -1
- package/dist/index.cjs401.js +0 -2
- package/dist/index.cjs401.js.map +0 -1
- package/dist/index.es170.js +0 -477
- package/dist/index.es170.js.map +0 -1
- package/dist/index.es172.js +0 -262
- package/dist/index.es172.js.map +0 -1
- package/dist/index.es174.js +0 -288
- package/dist/index.es174.js.map +0 -1
- package/dist/index.es175.js +0 -207
- package/dist/index.es175.js.map +0 -1
- package/dist/index.es176.js +0 -20
- package/dist/index.es176.js.map +0 -1
- package/dist/index.es177.js +0 -37
- package/dist/index.es177.js.map +0 -1
- package/dist/index.es179.js +0 -93
- package/dist/index.es179.js.map +0 -1
- package/dist/index.es341.js +0 -14
- package/dist/index.es341.js.map +0 -1
- package/dist/index.es348.js.map +0 -1
- package/dist/index.es349.js.map +0 -1
- package/dist/index.es401.js +0 -16
- package/dist/index.es401.js.map +0 -1
package/dist/index.es182.js
CHANGED
@@ -1,12 +1,181 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import o from "./index.es180.js";
|
2
|
+
import s from "./index.es4.js";
|
3
|
+
import r from "./index.es185.js";
|
4
|
+
import u from "./index.es194.js";
|
5
|
+
import { normalizeZone as i } from "./index.es187.js";
|
6
|
+
import { hasLocaleWeekInfo as m, hasRelative as c } from "./index.es186.js";
|
7
|
+
class p {
|
8
|
+
/**
|
9
|
+
* Return whether the specified zone contains a DST.
|
10
|
+
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
11
|
+
* @return {boolean}
|
12
|
+
*/
|
13
|
+
static hasDST(e = s.defaultZone) {
|
14
|
+
const t = o.now().setZone(e).set({ month: 12 });
|
15
|
+
return !e.isUniversal && t.offset !== t.set({ month: 6 }).offset;
|
4
16
|
}
|
5
|
-
|
6
|
-
|
17
|
+
/**
|
18
|
+
* Return whether the specified zone is a valid IANA specifier.
|
19
|
+
* @param {string} zone - Zone to check
|
20
|
+
* @return {boolean}
|
21
|
+
*/
|
22
|
+
static isValidIANAZone(e) {
|
23
|
+
return u.isValidZone(e);
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* Converts the input into a {@link Zone} instance.
|
27
|
+
*
|
28
|
+
* * If `input` is already a Zone instance, it is returned unchanged.
|
29
|
+
* * If `input` is a string containing a valid time zone name, a Zone instance
|
30
|
+
* with that name is returned.
|
31
|
+
* * If `input` is a string that doesn't refer to a known time zone, a Zone
|
32
|
+
* instance with {@link Zone#isValid} == false is returned.
|
33
|
+
* * If `input is a number, a Zone instance with the specified fixed offset
|
34
|
+
* in minutes is returned.
|
35
|
+
* * If `input` is `null` or `undefined`, the default zone is returned.
|
36
|
+
* @param {string|Zone|number} [input] - the value to be converted
|
37
|
+
* @return {Zone}
|
38
|
+
*/
|
39
|
+
static normalizeZone(e) {
|
40
|
+
return i(e, s.defaultZone);
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* Get the weekday on which the week starts according to the given locale.
|
44
|
+
* @param {Object} opts - options
|
45
|
+
* @param {string} [opts.locale] - the locale code
|
46
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
47
|
+
* @returns {number} the start of the week, 1 for Monday through 7 for Sunday
|
48
|
+
*/
|
49
|
+
static getStartOfWeek({ locale: e = null, locObj: t = null } = {}) {
|
50
|
+
return (t || r.create(e)).getStartOfWeek();
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Get the minimum number of days necessary in a week before it is considered part of the next year according
|
54
|
+
* to the given locale.
|
55
|
+
* @param {Object} opts - options
|
56
|
+
* @param {string} [opts.locale] - the locale code
|
57
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
58
|
+
* @returns {number}
|
59
|
+
*/
|
60
|
+
static getMinimumDaysInFirstWeek({ locale: e = null, locObj: t = null } = {}) {
|
61
|
+
return (t || r.create(e)).getMinDaysInFirstWeek();
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* Get the weekdays, which are considered the weekend according to the given locale
|
65
|
+
* @param {Object} opts - options
|
66
|
+
* @param {string} [opts.locale] - the locale code
|
67
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
68
|
+
* @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday
|
69
|
+
*/
|
70
|
+
static getWeekendWeekdays({ locale: e = null, locObj: t = null } = {}) {
|
71
|
+
return (t || r.create(e)).getWeekendDays().slice();
|
72
|
+
}
|
73
|
+
/**
|
74
|
+
* Return an array of standalone month names.
|
75
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
76
|
+
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
77
|
+
* @param {Object} opts - options
|
78
|
+
* @param {string} [opts.locale] - the locale code
|
79
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
80
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
81
|
+
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
82
|
+
* @example Info.months()[0] //=> 'January'
|
83
|
+
* @example Info.months('short')[0] //=> 'Jan'
|
84
|
+
* @example Info.months('numeric')[0] //=> '1'
|
85
|
+
* @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'
|
86
|
+
* @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'
|
87
|
+
* @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'
|
88
|
+
* @return {Array}
|
89
|
+
*/
|
90
|
+
static months(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null, outputCalendar: a = "gregory" } = {}) {
|
91
|
+
return (l || r.create(t, n, a)).months(e);
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* Return an array of format month names.
|
95
|
+
* Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that
|
96
|
+
* changes the string.
|
97
|
+
* See {@link Info#months}
|
98
|
+
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
99
|
+
* @param {Object} opts - options
|
100
|
+
* @param {string} [opts.locale] - the locale code
|
101
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
102
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
103
|
+
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
104
|
+
* @return {Array}
|
105
|
+
*/
|
106
|
+
static monthsFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null, outputCalendar: a = "gregory" } = {}) {
|
107
|
+
return (l || r.create(t, n, a)).months(e, !0);
|
108
|
+
}
|
109
|
+
/**
|
110
|
+
* Return an array of standalone week names.
|
111
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
112
|
+
* @param {string} [length='long'] - the length of the weekday representation, such as "narrow", "short", "long".
|
113
|
+
* @param {Object} opts - options
|
114
|
+
* @param {string} [opts.locale] - the locale code
|
115
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
116
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
117
|
+
* @example Info.weekdays()[0] //=> 'Monday'
|
118
|
+
* @example Info.weekdays('short')[0] //=> 'Mon'
|
119
|
+
* @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'
|
120
|
+
* @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'
|
121
|
+
* @return {Array}
|
122
|
+
*/
|
123
|
+
static weekdays(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null } = {}) {
|
124
|
+
return (l || r.create(t, n, null)).weekdays(e);
|
125
|
+
}
|
126
|
+
/**
|
127
|
+
* Return an array of format week names.
|
128
|
+
* Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that
|
129
|
+
* changes the string.
|
130
|
+
* See {@link Info#weekdays}
|
131
|
+
* @param {string} [length='long'] - the length of the month representation, such as "narrow", "short", "long".
|
132
|
+
* @param {Object} opts - options
|
133
|
+
* @param {string} [opts.locale=null] - the locale code
|
134
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
135
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
136
|
+
* @return {Array}
|
137
|
+
*/
|
138
|
+
static weekdaysFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null } = {}) {
|
139
|
+
return (l || r.create(t, n, null)).weekdays(e, !0);
|
140
|
+
}
|
141
|
+
/**
|
142
|
+
* Return an array of meridiems.
|
143
|
+
* @param {Object} opts - options
|
144
|
+
* @param {string} [opts.locale] - the locale code
|
145
|
+
* @example Info.meridiems() //=> [ 'AM', 'PM' ]
|
146
|
+
* @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]
|
147
|
+
* @return {Array}
|
148
|
+
*/
|
149
|
+
static meridiems({ locale: e = null } = {}) {
|
150
|
+
return r.create(e).meridiems();
|
151
|
+
}
|
152
|
+
/**
|
153
|
+
* Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.
|
154
|
+
* @param {string} [length='short'] - the length of the era representation, such as "short" or "long".
|
155
|
+
* @param {Object} opts - options
|
156
|
+
* @param {string} [opts.locale] - the locale code
|
157
|
+
* @example Info.eras() //=> [ 'BC', 'AD' ]
|
158
|
+
* @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]
|
159
|
+
* @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]
|
160
|
+
* @return {Array}
|
161
|
+
*/
|
162
|
+
static eras(e = "short", { locale: t = null } = {}) {
|
163
|
+
return r.create(t, null, "gregory").eras(e);
|
164
|
+
}
|
165
|
+
/**
|
166
|
+
* Return the set of available features in this environment.
|
167
|
+
* Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.
|
168
|
+
* Keys:
|
169
|
+
* * `relative`: whether this environment supports relative time formatting
|
170
|
+
* * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale
|
171
|
+
* @example Info.features() //=> { relative: false, localeWeek: true }
|
172
|
+
* @return {Object}
|
173
|
+
*/
|
174
|
+
static features() {
|
175
|
+
return { relative: c(), localeWeek: m() };
|
7
176
|
}
|
8
177
|
}
|
9
178
|
export {
|
10
|
-
|
179
|
+
p as default
|
11
180
|
};
|
12
181
|
//# sourceMappingURL=index.es182.js.map
|
package/dist/index.es182.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es182.js","sources":["../node_modules/luxon/src/impl/invalid.js"],"sourcesContent":["export default class Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n"],"names":["Invalid","reason","explanation"],"mappings":"AAAe,MAAMA,EAAQ;AAAA,EAC3B,YAAYC,GAAQC,GAAa;AAC/B,SAAK,SAASD,GACd,KAAK,cAAcC;AAAA,EACvB;AAAA,EAEE,YAAY;AACV,WAAI,KAAK,cACA,GAAG,KAAK,MAAM,KAAK,KAAK,WAAW,KAEnC,KAAK;AAAA,EAElB;AACA;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.es182.js","sources":["../node_modules/luxon/src/info.js"],"sourcesContent":["import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nimport { hasLocaleWeekInfo, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nexport default class Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {Array}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n }\n}\n"],"names":["Info","zone","Settings","proto","DateTime","IANAZone","input","normalizeZone","locale","locObj","Locale","length","numberingSystem","outputCalendar","hasRelative","hasLocaleWeekInfo"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index.es183.js
CHANGED
@@ -1,182 +1,262 @@
|
|
1
|
-
import {
|
2
|
-
import C from "./index.
|
3
|
-
|
4
|
-
function
|
5
|
-
let
|
6
|
-
|
7
|
-
|
8
|
-
timeZone: n,
|
9
|
-
year: "numeric",
|
10
|
-
month: "2-digit",
|
11
|
-
day: "2-digit",
|
12
|
-
hour: "2-digit",
|
13
|
-
minute: "2-digit",
|
14
|
-
second: "2-digit",
|
15
|
-
era: "short"
|
16
|
-
}), h.set(n, t)), t;
|
17
|
-
}
|
18
|
-
const N = {
|
19
|
-
year: 0,
|
20
|
-
month: 1,
|
21
|
-
day: 2,
|
22
|
-
era: 3,
|
23
|
-
hour: 4,
|
24
|
-
minute: 5,
|
25
|
-
second: 6
|
26
|
-
};
|
27
|
-
function O(n, t) {
|
28
|
-
const e = n.format(t).replace(/\u200E/g, ""), r = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e), [, a, i, o, s, f, d, u] = r;
|
29
|
-
return [o, a, i, s, f, d, u];
|
30
|
-
}
|
31
|
-
function S(n, t) {
|
32
|
-
const e = n.formatToParts(t), r = [];
|
33
|
-
for (let a = 0; a < e.length; a++) {
|
34
|
-
const { type: i, value: o } = e[a], s = N[i];
|
35
|
-
i === "era" ? r[s] = o : w(s) || (r[s] = parseInt(o, 10));
|
36
|
-
}
|
1
|
+
import { eraForDateTime as D, monthForDateTime as F, weekdayForDateTime as M, meridiemForDateTime as S } from "./index.es326.js";
|
2
|
+
import { DATETIME_HUGE_WITH_SECONDS as _, DATETIME_FULL_WITH_SECONDS as p, DATETIME_MED_WITH_SECONDS as k, DATETIME_SHORT_WITH_SECONDS as w, DATETIME_HUGE as I, DATETIME_FULL as L, DATETIME_MED as g, DATETIME_SHORT as O, TIME_24_WITH_LONG_OFFSET as Z, TIME_24_WITH_SHORT_OFFSET as H, TIME_24_WITH_SECONDS as W, TIME_24_SIMPLE as d, TIME_WITH_LONG_OFFSET as N, TIME_WITH_SHORT_OFFSET as A, TIME_WITH_SECONDS as G, TIME_SIMPLE as C, DATE_HUGE as b, DATE_FULL as v, DATE_MED as R, DATE_SHORT as U } from "./index.es191.js";
|
3
|
+
import { padStart as q } from "./index.es186.js";
|
4
|
+
function T(E, e) {
|
5
|
+
let r = "";
|
6
|
+
for (const t of E)
|
7
|
+
t.literal ? r += t.val : r += e(t.val);
|
37
8
|
return r;
|
38
9
|
}
|
39
|
-
const
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
10
|
+
const z = {
|
11
|
+
D: U,
|
12
|
+
DD: R,
|
13
|
+
DDD: v,
|
14
|
+
DDDD: b,
|
15
|
+
t: C,
|
16
|
+
tt: G,
|
17
|
+
ttt: A,
|
18
|
+
tttt: N,
|
19
|
+
T: d,
|
20
|
+
TT: W,
|
21
|
+
TTT: H,
|
22
|
+
TTTT: Z,
|
23
|
+
f: O,
|
24
|
+
ff: g,
|
25
|
+
fff: L,
|
26
|
+
ffff: I,
|
27
|
+
F: w,
|
28
|
+
FF: k,
|
29
|
+
FFF: p,
|
30
|
+
FFFF: _
|
31
|
+
};
|
32
|
+
class h {
|
33
|
+
static create(e, r = {}) {
|
34
|
+
return new h(e, r);
|
48
35
|
}
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
36
|
+
static parseFormat(e) {
|
37
|
+
let r = null, t = "", n = !1;
|
38
|
+
const s = [];
|
39
|
+
for (let c = 0; c < e.length; c++) {
|
40
|
+
const i = e.charAt(c);
|
41
|
+
i === "'" ? (t.length > 0 && s.push({ literal: n || /^\s+$/.test(t), val: t }), r = null, t = "", n = !n) : n || i === r ? t += i : (t.length > 0 && s.push({ literal: /^\s+$/.test(t), val: t }), t = i, r = i);
|
42
|
+
}
|
43
|
+
return t.length > 0 && s.push({ literal: n || /^\s+$/.test(t), val: t }), s;
|
55
44
|
}
|
56
|
-
|
57
|
-
|
58
|
-
* @param {string} s - The string to check validity on
|
59
|
-
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
60
|
-
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
61
|
-
* @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.
|
62
|
-
* @return {boolean}
|
63
|
-
*/
|
64
|
-
static isValidSpecifier(t) {
|
65
|
-
return this.isValidZone(t);
|
45
|
+
static macroTokenToFormatOpts(e) {
|
46
|
+
return z[e];
|
66
47
|
}
|
67
|
-
|
68
|
-
|
69
|
-
* @param {string} zone - The string to check
|
70
|
-
* @example IANAZone.isValidZone("America/New_York") //=> true
|
71
|
-
* @example IANAZone.isValidZone("Fantasia/Castle") //=> false
|
72
|
-
* @example IANAZone.isValidZone("Sport~~blorp") //=> false
|
73
|
-
* @return {boolean}
|
74
|
-
*/
|
75
|
-
static isValidZone(t) {
|
76
|
-
if (!t)
|
77
|
-
return !1;
|
78
|
-
try {
|
79
|
-
return new Intl.DateTimeFormat("en-US", { timeZone: t }).format(), !0;
|
80
|
-
} catch {
|
81
|
-
return !1;
|
82
|
-
}
|
48
|
+
constructor(e, r) {
|
49
|
+
this.opts = r, this.loc = e, this.systemLoc = null;
|
83
50
|
}
|
84
|
-
|
85
|
-
|
51
|
+
formatWithSystemDefault(e, r) {
|
52
|
+
return this.systemLoc === null && (this.systemLoc = this.loc.redefaultToSystem()), this.systemLoc.dtFormatter(e, { ...this.opts, ...r }).format();
|
86
53
|
}
|
87
|
-
|
88
|
-
|
89
|
-
* @override
|
90
|
-
* @type {string}
|
91
|
-
*/
|
92
|
-
get type() {
|
93
|
-
return "iana";
|
54
|
+
dtFormatter(e, r = {}) {
|
55
|
+
return this.loc.dtFormatter(e, { ...this.opts, ...r });
|
94
56
|
}
|
95
|
-
|
96
|
-
|
97
|
-
* @override
|
98
|
-
* @type {string}
|
99
|
-
*/
|
100
|
-
get name() {
|
101
|
-
return this.zoneName;
|
57
|
+
formatDateTime(e, r) {
|
58
|
+
return this.dtFormatter(e, r).format();
|
102
59
|
}
|
103
|
-
|
104
|
-
|
105
|
-
* Always returns false for all IANA zones.
|
106
|
-
* @override
|
107
|
-
* @type {boolean}
|
108
|
-
*/
|
109
|
-
get isUniversal() {
|
110
|
-
return !1;
|
60
|
+
formatDateTimeParts(e, r) {
|
61
|
+
return this.dtFormatter(e, r).formatToParts();
|
111
62
|
}
|
112
|
-
|
113
|
-
|
114
|
-
* @override
|
115
|
-
* @param {number} ts - Epoch milliseconds for which to get the name
|
116
|
-
* @param {Object} opts - Options to affect the format
|
117
|
-
* @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.
|
118
|
-
* @param {string} opts.locale - What locale to return the offset name in.
|
119
|
-
* @return {string}
|
120
|
-
*/
|
121
|
-
offsetName(t, { format: e, locale: r }) {
|
122
|
-
return y(t, e, r, this.name);
|
63
|
+
formatInterval(e, r) {
|
64
|
+
return this.dtFormatter(e.start, r).dtf.formatRange(e.start.toJSDate(), e.end.toJSDate());
|
123
65
|
}
|
124
|
-
|
125
|
-
|
126
|
-
* @override
|
127
|
-
* @param {number} ts - Epoch milliseconds for which to get the offset
|
128
|
-
* @param {string} format - What style of offset to return.
|
129
|
-
* Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively
|
130
|
-
* @return {string}
|
131
|
-
*/
|
132
|
-
formatOffset(t, e) {
|
133
|
-
return T(this.offset(t), e);
|
66
|
+
resolvedOptions(e, r) {
|
67
|
+
return this.dtFormatter(e, r).resolvedOptions();
|
134
68
|
}
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
*/
|
141
|
-
offset(t) {
|
142
|
-
if (!this.valid) return NaN;
|
143
|
-
const e = new Date(t);
|
144
|
-
if (isNaN(e)) return NaN;
|
145
|
-
const r = D(this.name);
|
146
|
-
let [a, i, o, s, f, d, u] = r.formatToParts ? S(r, e) : O(r, e);
|
147
|
-
s === "BC" && (a = -Math.abs(a) + 1);
|
148
|
-
const g = v({
|
149
|
-
year: a,
|
150
|
-
month: i,
|
151
|
-
day: o,
|
152
|
-
hour: f === 24 ? 0 : f,
|
153
|
-
minute: d,
|
154
|
-
second: u,
|
155
|
-
millisecond: 0
|
156
|
-
});
|
157
|
-
let c = +e;
|
158
|
-
const l = c % 1e3;
|
159
|
-
return c -= l >= 0 ? l : 1e3 + l, (g - c) / (60 * 1e3);
|
69
|
+
num(e, r = 0) {
|
70
|
+
if (this.opts.forceSimple)
|
71
|
+
return q(e, r);
|
72
|
+
const t = { ...this.opts };
|
73
|
+
return r > 0 && (t.padTo = r), this.loc.numberFormatter(t).format(e);
|
160
74
|
}
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
75
|
+
formatDateTimeFromString(e, r) {
|
76
|
+
const t = this.loc.listingMode() === "en", n = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", s = (a, m) => this.loc.extract(e, a, m), c = (a) => e.isOffsetFixed && e.offset === 0 && a.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, a.format) : "", i = () => t ? S(e) : s({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), o = (a, m) => t ? F(e, a) : s(m ? { month: a } : { month: a, day: "numeric" }, "month"), u = (a, m) => t ? M(e, a) : s(
|
77
|
+
m ? { weekday: a } : { weekday: a, month: "long", day: "numeric" },
|
78
|
+
"weekday"
|
79
|
+
), l = (a) => {
|
80
|
+
const m = h.macroTokenToFormatOpts(a);
|
81
|
+
return m ? this.formatWithSystemDefault(e, m) : a;
|
82
|
+
}, f = (a) => t ? D(e, a) : s({ era: a }, "era"), y = (a) => {
|
83
|
+
switch (a) {
|
84
|
+
// ms
|
85
|
+
case "S":
|
86
|
+
return this.num(e.millisecond);
|
87
|
+
case "u":
|
88
|
+
// falls through
|
89
|
+
case "SSS":
|
90
|
+
return this.num(e.millisecond, 3);
|
91
|
+
// seconds
|
92
|
+
case "s":
|
93
|
+
return this.num(e.second);
|
94
|
+
case "ss":
|
95
|
+
return this.num(e.second, 2);
|
96
|
+
// fractional seconds
|
97
|
+
case "uu":
|
98
|
+
return this.num(Math.floor(e.millisecond / 10), 2);
|
99
|
+
case "uuu":
|
100
|
+
return this.num(Math.floor(e.millisecond / 100));
|
101
|
+
// minutes
|
102
|
+
case "m":
|
103
|
+
return this.num(e.minute);
|
104
|
+
case "mm":
|
105
|
+
return this.num(e.minute, 2);
|
106
|
+
// hours
|
107
|
+
case "h":
|
108
|
+
return this.num(e.hour % 12 === 0 ? 12 : e.hour % 12);
|
109
|
+
case "hh":
|
110
|
+
return this.num(e.hour % 12 === 0 ? 12 : e.hour % 12, 2);
|
111
|
+
case "H":
|
112
|
+
return this.num(e.hour);
|
113
|
+
case "HH":
|
114
|
+
return this.num(e.hour, 2);
|
115
|
+
// offset
|
116
|
+
case "Z":
|
117
|
+
return c({ format: "narrow", allowZ: this.opts.allowZ });
|
118
|
+
case "ZZ":
|
119
|
+
return c({ format: "short", allowZ: this.opts.allowZ });
|
120
|
+
case "ZZZ":
|
121
|
+
return c({ format: "techie", allowZ: this.opts.allowZ });
|
122
|
+
case "ZZZZ":
|
123
|
+
return e.zone.offsetName(e.ts, { format: "short", locale: this.loc.locale });
|
124
|
+
case "ZZZZZ":
|
125
|
+
return e.zone.offsetName(e.ts, { format: "long", locale: this.loc.locale });
|
126
|
+
// zone
|
127
|
+
case "z":
|
128
|
+
return e.zoneName;
|
129
|
+
// meridiems
|
130
|
+
case "a":
|
131
|
+
return i();
|
132
|
+
// dates
|
133
|
+
case "d":
|
134
|
+
return n ? s({ day: "numeric" }, "day") : this.num(e.day);
|
135
|
+
case "dd":
|
136
|
+
return n ? s({ day: "2-digit" }, "day") : this.num(e.day, 2);
|
137
|
+
// weekdays - standalone
|
138
|
+
case "c":
|
139
|
+
return this.num(e.weekday);
|
140
|
+
case "ccc":
|
141
|
+
return u("short", !0);
|
142
|
+
case "cccc":
|
143
|
+
return u("long", !0);
|
144
|
+
case "ccccc":
|
145
|
+
return u("narrow", !0);
|
146
|
+
// weekdays - format
|
147
|
+
case "E":
|
148
|
+
return this.num(e.weekday);
|
149
|
+
case "EEE":
|
150
|
+
return u("short", !1);
|
151
|
+
case "EEEE":
|
152
|
+
return u("long", !1);
|
153
|
+
case "EEEEE":
|
154
|
+
return u("narrow", !1);
|
155
|
+
// months - standalone
|
156
|
+
case "L":
|
157
|
+
return n ? s({ month: "numeric", day: "numeric" }, "month") : this.num(e.month);
|
158
|
+
case "LL":
|
159
|
+
return n ? s({ month: "2-digit", day: "numeric" }, "month") : this.num(e.month, 2);
|
160
|
+
case "LLL":
|
161
|
+
return o("short", !0);
|
162
|
+
case "LLLL":
|
163
|
+
return o("long", !0);
|
164
|
+
case "LLLLL":
|
165
|
+
return o("narrow", !0);
|
166
|
+
// months - format
|
167
|
+
case "M":
|
168
|
+
return n ? s({ month: "numeric" }, "month") : this.num(e.month);
|
169
|
+
case "MM":
|
170
|
+
return n ? s({ month: "2-digit" }, "month") : this.num(e.month, 2);
|
171
|
+
case "MMM":
|
172
|
+
return o("short", !1);
|
173
|
+
case "MMMM":
|
174
|
+
return o("long", !1);
|
175
|
+
case "MMMMM":
|
176
|
+
return o("narrow", !1);
|
177
|
+
// years
|
178
|
+
case "y":
|
179
|
+
return n ? s({ year: "numeric" }, "year") : this.num(e.year);
|
180
|
+
case "yy":
|
181
|
+
return n ? s({ year: "2-digit" }, "year") : this.num(e.year.toString().slice(-2), 2);
|
182
|
+
case "yyyy":
|
183
|
+
return n ? s({ year: "numeric" }, "year") : this.num(e.year, 4);
|
184
|
+
case "yyyyyy":
|
185
|
+
return n ? s({ year: "numeric" }, "year") : this.num(e.year, 6);
|
186
|
+
// eras
|
187
|
+
case "G":
|
188
|
+
return f("short");
|
189
|
+
case "GG":
|
190
|
+
return f("long");
|
191
|
+
case "GGGGG":
|
192
|
+
return f("narrow");
|
193
|
+
case "kk":
|
194
|
+
return this.num(e.weekYear.toString().slice(-2), 2);
|
195
|
+
case "kkkk":
|
196
|
+
return this.num(e.weekYear, 4);
|
197
|
+
case "W":
|
198
|
+
return this.num(e.weekNumber);
|
199
|
+
case "WW":
|
200
|
+
return this.num(e.weekNumber, 2);
|
201
|
+
case "n":
|
202
|
+
return this.num(e.localWeekNumber);
|
203
|
+
case "nn":
|
204
|
+
return this.num(e.localWeekNumber, 2);
|
205
|
+
case "ii":
|
206
|
+
return this.num(e.localWeekYear.toString().slice(-2), 2);
|
207
|
+
case "iiii":
|
208
|
+
return this.num(e.localWeekYear, 4);
|
209
|
+
case "o":
|
210
|
+
return this.num(e.ordinal);
|
211
|
+
case "ooo":
|
212
|
+
return this.num(e.ordinal, 3);
|
213
|
+
case "q":
|
214
|
+
return this.num(e.quarter);
|
215
|
+
case "qq":
|
216
|
+
return this.num(e.quarter, 2);
|
217
|
+
case "X":
|
218
|
+
return this.num(Math.floor(e.ts / 1e3));
|
219
|
+
case "x":
|
220
|
+
return this.num(e.ts);
|
221
|
+
default:
|
222
|
+
return l(a);
|
223
|
+
}
|
224
|
+
};
|
225
|
+
return T(h.parseFormat(r), y);
|
169
226
|
}
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
227
|
+
formatDurationFromString(e, r) {
|
228
|
+
const t = (o) => {
|
229
|
+
switch (o[0]) {
|
230
|
+
case "S":
|
231
|
+
return "millisecond";
|
232
|
+
case "s":
|
233
|
+
return "second";
|
234
|
+
case "m":
|
235
|
+
return "minute";
|
236
|
+
case "h":
|
237
|
+
return "hour";
|
238
|
+
case "d":
|
239
|
+
return "day";
|
240
|
+
case "w":
|
241
|
+
return "week";
|
242
|
+
case "M":
|
243
|
+
return "month";
|
244
|
+
case "y":
|
245
|
+
return "year";
|
246
|
+
default:
|
247
|
+
return null;
|
248
|
+
}
|
249
|
+
}, n = (o) => (u) => {
|
250
|
+
const l = t(u);
|
251
|
+
return l ? this.num(o.get(l), u.length) : u;
|
252
|
+
}, s = h.parseFormat(r), c = s.reduce(
|
253
|
+
(o, { literal: u, val: l }) => u ? o : o.concat(l),
|
254
|
+
[]
|
255
|
+
), i = e.shiftTo(...c.map(t).filter((o) => o));
|
256
|
+
return T(s, n(i));
|
177
257
|
}
|
178
258
|
}
|
179
259
|
export {
|
180
|
-
|
260
|
+
h as default
|
181
261
|
};
|
182
262
|
//# sourceMappingURL=index.es183.js.map
|