lakutata 0.0.1
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/.idea/codeStyles/Project.xml +18 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/lakutata.iml +13 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/build/Application-78a416de.d.ts +387 -0
- package/build/Application-b5e19e08.d.ts +387 -0
- package/build/Components.cjs +55 -0
- package/build/Components.d.cts +9 -0
- package/build/Components.d.ts +9 -0
- package/build/Components.js +44 -0
- package/build/Core.cjs +148 -0
- package/build/Core.d.cts +33 -0
- package/build/Core.d.ts +33 -0
- package/build/Core.js +71 -0
- package/build/Crypto.cjs +96 -0
- package/build/Crypto.d.cts +19 -0
- package/build/Crypto.d.ts +19 -0
- package/build/Crypto.js +41 -0
- package/build/Decorators.cjs +100 -0
- package/build/Decorators.d.cts +23 -0
- package/build/Decorators.d.ts +23 -0
- package/build/Decorators.js +45 -0
- package/build/DependencyInjectionContainer-871a6c03.d.ts +340 -0
- package/build/DependencyInjectionContainer-f037ac36.d.ts +340 -0
- package/build/Exceptions.cjs +144 -0
- package/build/Exceptions.d.cts +28 -0
- package/build/Exceptions.d.ts +28 -0
- package/build/Exceptions.js +37 -0
- package/build/Hash.cjs +223 -0
- package/build/Hash.d.cts +535 -0
- package/build/Hash.d.ts +535 -0
- package/build/Hash.js +10 -0
- package/build/Time.cjs +14 -0
- package/build/Time.d.cts +5 -0
- package/build/Time.d.ts +5 -0
- package/build/Time.js +5 -0
- package/build/TimeInput-24fced42.d.ts +243 -0
- package/build/TimeInput-4401fc58.d.ts +243 -0
- package/build/Utilities.cjs +100 -0
- package/build/Utilities.d.cts +212 -0
- package/build/Utilities.d.ts +212 -0
- package/build/Utilities.js +7 -0
- package/build/Validator.cjs +24 -0
- package/build/Validator.d.cts +1851 -0
- package/build/Validator.d.ts +1851 -0
- package/build/Validator.js +11 -0
- package/build/chunk-26TQI22I.js +196 -0
- package/build/chunk-27OFA7C3.js +16 -0
- package/build/chunk-2C2UILFN.js +23 -0
- package/build/chunk-2CHYQHWR.cjs +16 -0
- package/build/chunk-2DN35UQB.cjs +10947 -0
- package/build/chunk-2E4TF6LU.cjs +16 -0
- package/build/chunk-2PLJEW2R.js +14 -0
- package/build/chunk-2RW3VMNS.js +45 -0
- package/build/chunk-2T6JU2UH.js +14 -0
- package/build/chunk-3CX3GCQF.js +32 -0
- package/build/chunk-3JIQCDQG.cjs +25 -0
- package/build/chunk-3KLEN3PR.js +14 -0
- package/build/chunk-3LZRQPJ5.js +14 -0
- package/build/chunk-3NHHHZFR.cjs +870 -0
- package/build/chunk-4332C5BW.js +30 -0
- package/build/chunk-46V7GHKE.cjs +25 -0
- package/build/chunk-4EPPSZ7L.js +14 -0
- package/build/chunk-4FEEQIQ4.js +23 -0
- package/build/chunk-4G2ZCUBN.js +5570 -0
- package/build/chunk-4KTVY73U.js +15 -0
- package/build/chunk-4MQXSUTL.cjs +14 -0
- package/build/chunk-4OHSPWRQ.js +34 -0
- package/build/chunk-4PK4TGU4.cjs +16 -0
- package/build/chunk-4YXUEJSO.js +23 -0
- package/build/chunk-5475IFR4.cjs +16 -0
- package/build/chunk-5B5Z4GCR.cjs +17 -0
- package/build/chunk-5FPTDIKI.cjs +16 -0
- package/build/chunk-5NK7E2HA.js +69 -0
- package/build/chunk-67F5WP5Z.cjs +8 -0
- package/build/chunk-6BJTKEXZ.cjs +25 -0
- package/build/chunk-6WNLPTDY.cjs +8 -0
- package/build/chunk-7G7FCNEG.cjs +8 -0
- package/build/chunk-7IVNTVYK.cjs +16 -0
- package/build/chunk-7MJAWOWL.js +22896 -0
- package/build/chunk-7MTOK62N.js +767 -0
- package/build/chunk-7PADGZPI.cjs +129 -0
- package/build/chunk-7ZUM53G6.js +14 -0
- package/build/chunk-A4BYNKYF.js +42 -0
- package/build/chunk-A7F6LCRA.cjs +16 -0
- package/build/chunk-AFV3VN3X.cjs +8 -0
- package/build/chunk-AGHMOCC3.cjs +16 -0
- package/build/chunk-AHUH4FWQ.cjs +29 -0
- package/build/chunk-AM4YMG2S.js +6 -0
- package/build/chunk-ANDEVIKJ.cjs +16 -0
- package/build/chunk-APETX7ZT.cjs +16 -0
- package/build/chunk-ASMC7EUP.js +6 -0
- package/build/chunk-BDCRHGKN.js +6 -0
- package/build/chunk-BDJXMO44.js +2920 -0
- package/build/chunk-BE7ICF5R.js +32 -0
- package/build/chunk-BEDKPRVX.cjs +17 -0
- package/build/chunk-BFE66ADZ.cjs +34 -0
- package/build/chunk-BKCT2HSQ.js +178 -0
- package/build/chunk-BMNC4W46.js +20 -0
- package/build/chunk-BO7Y6HNS.cjs +176 -0
- package/build/chunk-D4H35ART.cjs +53 -0
- package/build/chunk-D5DE7Z4J.js +29 -0
- package/build/chunk-DHSSJJMD.cjs +25 -0
- package/build/chunk-DIMOR6NE.cjs +8 -0
- package/build/chunk-DN5TSX6S.cjs +244 -0
- package/build/chunk-EEH5LCBP.cjs +16 -0
- package/build/chunk-EFYDUUXT.cjs +92 -0
- package/build/chunk-ENJSEFE4.js +14 -0
- package/build/chunk-EPYJVQHQ.js +6 -0
- package/build/chunk-EUVLTNDV.js +32 -0
- package/build/chunk-EXQVCESB.cjs +20 -0
- package/build/chunk-EYPPC6HP.js +18 -0
- package/build/chunk-F5NKGQDL.cjs +16 -0
- package/build/chunk-F7RNH2H2.js +266 -0
- package/build/chunk-FCTV4OB7.cjs +50 -0
- package/build/chunk-FHEXUE67.js +29 -0
- package/build/chunk-FJP3KNXK.js +23 -0
- package/build/chunk-FJQSLRIP.js +14 -0
- package/build/chunk-FSFWPTIC.js +6 -0
- package/build/chunk-FTKFMQHJ.cjs +16 -0
- package/build/chunk-FW26MPE4.js +69 -0
- package/build/chunk-FZNRGZGE.js +6372 -0
- package/build/chunk-G7EDOLQ7.cjs +100 -0
- package/build/chunk-GGY7LCMQ.cjs +73 -0
- package/build/chunk-GLWUJIMW.cjs +8 -0
- package/build/chunk-GZ5KN2PE.js +6 -0
- package/build/chunk-HBPRX3WA.cjs +202 -0
- package/build/chunk-HJAQ6WJM.cjs +288 -0
- package/build/chunk-HJSJA5CF.js +14 -0
- package/build/chunk-HKAY7FWM.js +28 -0
- package/build/chunk-HMKTNRQF.js +14 -0
- package/build/chunk-HODDA5D5.js +199 -0
- package/build/chunk-HPKJUFTM.js +14 -0
- package/build/chunk-HWCTWIVZ.cjs +30 -0
- package/build/chunk-HXWC4YN6.cjs +22908 -0
- package/build/chunk-HZJ7XFHQ.cjs +8 -0
- package/build/chunk-I5TGKTX6.js +18 -0
- package/build/chunk-I7J6V3EU.cjs +34 -0
- package/build/chunk-IKWXYUGY.js +14 -0
- package/build/chunk-IYGGR65W.cjs +16 -0
- package/build/chunk-J6RXNX2K.js +174 -0
- package/build/chunk-JAEEMFEZ.cjs +24 -0
- package/build/chunk-JFOMNL5I.cjs +22 -0
- package/build/chunk-JPV2PUHF.cjs +8 -0
- package/build/chunk-JR726PDZ.cjs +70 -0
- package/build/chunk-JTKOYDJB.js +5914 -0
- package/build/chunk-JU53NOVA.cjs +31 -0
- package/build/chunk-JVSBYHUY.js +10944 -0
- package/build/chunk-JYBISTRN.cjs +25 -0
- package/build/chunk-K2ALA7QI.js +12 -0
- package/build/chunk-KG6DPM4B.js +14 -0
- package/build/chunk-KNSBLLL2.cjs +32 -0
- package/build/chunk-KNTGBUSY.js +6 -0
- package/build/chunk-KWOHVRRL.js +6 -0
- package/build/chunk-L3IVYIVA.js +23 -0
- package/build/chunk-LBL5XNWX.js +221 -0
- package/build/chunk-LBOBUFWZ.js +6 -0
- package/build/chunk-LEJXJUBE.js +6 -0
- package/build/chunk-LJTCXKC4.js +242 -0
- package/build/chunk-MBKTJ3KM.cjs +118 -0
- package/build/chunk-MDE5SRLT.cjs +16 -0
- package/build/chunk-MEKICSEL.js +22 -0
- package/build/chunk-MNDBRDT2.cjs +608 -0
- package/build/chunk-MSWZLYS7.cjs +5916 -0
- package/build/chunk-MT2OB376.js +14 -0
- package/build/chunk-MVWB4XDJ.js +14 -0
- package/build/chunk-MXAAAL2S.js +53 -0
- package/build/chunk-N37KV2VV.cjs +199 -0
- package/build/chunk-NZ5IZMM5.cjs +2922 -0
- package/build/chunk-O2NOYN65.js +54 -0
- package/build/chunk-OAD22QZQ.js +6 -0
- package/build/chunk-OIFILR4I.js +125 -0
- package/build/chunk-OJGBPS2B.cjs +16 -0
- package/build/chunk-OMPATIMZ.cjs +71 -0
- package/build/chunk-P3Z7ZEGJ.cjs +18 -0
- package/build/chunk-P6BBXCBD.cjs +6425 -0
- package/build/chunk-PE4C2TIO.cjs +16 -0
- package/build/chunk-PF2WAZLH.cjs +52 -0
- package/build/chunk-PFFTGOAR.cjs +25 -0
- package/build/chunk-PFUZLHWJ.cjs +25 -0
- package/build/chunk-POE7A7NF.cjs +180 -0
- package/build/chunk-PQSDA5BN.js +50 -0
- package/build/chunk-PR5TPAGH.js +14 -0
- package/build/chunk-PXMWVOKK.cjs +16 -0
- package/build/chunk-PZ5OJC4I.cjs +16 -0
- package/build/chunk-Q4LNTPEI.cjs +34 -0
- package/build/chunk-QCA5YGYV.js +14 -0
- package/build/chunk-QGGML4PP.js +17 -0
- package/build/chunk-QHW273SN.js +32 -0
- package/build/chunk-QJJRQMA6.cjs +8 -0
- package/build/chunk-QKB76MIV.cjs +769 -0
- package/build/chunk-QKVPGRI5.cjs +8 -0
- package/build/chunk-QME47CJL.cjs +8 -0
- package/build/chunk-QNJ6XBYQ.js +14 -0
- package/build/chunk-QWYKUNU5.js +14 -0
- package/build/chunk-QXTBP6TW.js +116 -0
- package/build/chunk-RH3LAIQS.js +32 -0
- package/build/chunk-RMAXG5F7.js +118 -0
- package/build/chunk-RUHAPGDE.js +14 -0
- package/build/chunk-S4KA3ZGO.js +6 -0
- package/build/chunk-SAGMV3YX.cjs +16 -0
- package/build/chunk-SCWEQ5JA.cjs +34 -0
- package/build/chunk-SEKBDIJH.cjs +16 -0
- package/build/chunk-SGWWTKLW.cjs +16 -0
- package/build/chunk-SWCU6OID.cjs +61 -0
- package/build/chunk-T4C7UJEZ.js +29 -0
- package/build/chunk-TBWIKIS3.cjs +8 -0
- package/build/chunk-TS74DN3N.cjs +229 -0
- package/build/chunk-TXTNUC7S.cjs +16 -0
- package/build/chunk-UEGDBJEG.cjs +127 -0
- package/build/chunk-UR2ZK7MI.cjs +16 -0
- package/build/chunk-VAOR6JOP.js +14 -0
- package/build/chunk-VELZ3KJY.cjs +45 -0
- package/build/chunk-VHTAHAD6.cjs +34 -0
- package/build/chunk-VISA22LF.js +14 -0
- package/build/chunk-VOFRWVGM.js +23 -0
- package/build/chunk-VPRNM6FU.cjs +118 -0
- package/build/chunk-VTFNEUOF.js +14 -0
- package/build/chunk-VVNU27G2.js +868 -0
- package/build/chunk-W3TQER3B.cjs +31 -0
- package/build/chunk-WINISBV4.js +70 -0
- package/build/chunk-WSEZ7DZV.js +14 -0
- package/build/chunk-WW57G6RG.js +124 -0
- package/build/chunk-WYJCE3KY.cjs +5593 -0
- package/build/chunk-WZI5UPER.cjs +61 -0
- package/build/chunk-WZZF2IEV.js +14 -0
- package/build/chunk-X4AIZSIY.cjs +47 -0
- package/build/chunk-XO6M5AYN.js +585 -0
- package/build/chunk-XWP76C6E.js +25 -0
- package/build/chunk-Y7O5SCF6.cjs +16 -0
- package/build/chunk-YEBPQG7X.js +96 -0
- package/build/chunk-YT4CYDJ3.js +14 -0
- package/build/chunk-ZG3PHRVQ.cjs +20 -0
- package/build/chunk-ZG7QF5S2.cjs +16 -0
- package/build/chunk-ZJYLWSBE.js +90 -0
- package/build/chunk-ZYBMNLGI.js +48 -0
- package/build/constants/DefaultValue.cjs +14 -0
- package/build/constants/DefaultValue.d.cts +9 -0
- package/build/constants/DefaultValue.d.ts +9 -0
- package/build/constants/DefaultValue.js +5 -0
- package/build/constants/MetadataKey.cjs +114 -0
- package/build/constants/MetadataKey.d.cts +30 -0
- package/build/constants/MetadataKey.d.ts +30 -0
- package/build/constants/MetadataKey.js +5 -0
- package/build/decorators/ControllerDecorators.cjs +21 -0
- package/build/decorators/ControllerDecorators.d.cts +32 -0
- package/build/decorators/ControllerDecorators.d.ts +32 -0
- package/build/decorators/ControllerDecorators.js +12 -0
- package/build/decorators/DependencyInjectionDecorators.cjs +78 -0
- package/build/decorators/DependencyInjectionDecorators.d.cts +75 -0
- package/build/decorators/DependencyInjectionDecorators.d.ts +75 -0
- package/build/decorators/DependencyInjectionDecorators.js +41 -0
- package/build/decorators/ValidationDecorators.cjs +35 -0
- package/build/decorators/ValidationDecorators.d.cts +36 -0
- package/build/decorators/ValidationDecorators.d.ts +36 -0
- package/build/decorators/ValidationDecorators.js +14 -0
- package/build/exceptions/DependencyInjectionException.cjs +18 -0
- package/build/exceptions/DependencyInjectionException.d.cts +8 -0
- package/build/exceptions/DependencyInjectionException.d.ts +8 -0
- package/build/exceptions/DependencyInjectionException.js +9 -0
- package/build/exceptions/InvalidConfigurableValueException.cjs +18 -0
- package/build/exceptions/InvalidConfigurableValueException.d.cts +8 -0
- package/build/exceptions/InvalidConfigurableValueException.d.ts +8 -0
- package/build/exceptions/InvalidConfigurableValueException.js +9 -0
- package/build/exceptions/InvalidDTOValueException.cjs +18 -0
- package/build/exceptions/InvalidDTOValueException.d.cts +8 -0
- package/build/exceptions/InvalidDTOValueException.d.ts +8 -0
- package/build/exceptions/InvalidDTOValueException.js +9 -0
- package/build/exceptions/InvalidGlobStringException.cjs +18 -0
- package/build/exceptions/InvalidGlobStringException.d.cts +8 -0
- package/build/exceptions/InvalidGlobStringException.d.ts +8 -0
- package/build/exceptions/InvalidGlobStringException.js +9 -0
- package/build/exceptions/MethodNotFoundException.cjs +18 -0
- package/build/exceptions/MethodNotFoundException.d.cts +8 -0
- package/build/exceptions/MethodNotFoundException.d.ts +8 -0
- package/build/exceptions/MethodNotFoundException.js +9 -0
- package/build/exceptions/NotSupportHashException.cjs +18 -0
- package/build/exceptions/NotSupportHashException.d.cts +8 -0
- package/build/exceptions/NotSupportHashException.d.ts +8 -0
- package/build/exceptions/NotSupportHashException.js +9 -0
- package/build/exceptions/controller/DuplicateControllerActionPatternException.cjs +18 -0
- package/build/exceptions/controller/DuplicateControllerActionPatternException.d.cts +8 -0
- package/build/exceptions/controller/DuplicateControllerActionPatternException.d.ts +8 -0
- package/build/exceptions/controller/DuplicateControllerActionPatternException.js +9 -0
- package/build/exceptions/controller/DynamicRegisterControllerNotAllowException.cjs +18 -0
- package/build/exceptions/controller/DynamicRegisterControllerNotAllowException.d.cts +8 -0
- package/build/exceptions/controller/DynamicRegisterControllerNotAllowException.d.ts +8 -0
- package/build/exceptions/controller/DynamicRegisterControllerNotAllowException.js +9 -0
- package/build/exceptions/controller/NoMatchedControllerActionPatternException.cjs +18 -0
- package/build/exceptions/controller/NoMatchedControllerActionPatternException.d.cts +8 -0
- package/build/exceptions/controller/NoMatchedControllerActionPatternException.d.ts +8 -0
- package/build/exceptions/controller/NoMatchedControllerActionPatternException.js +9 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricDecryptException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricDecryptException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricDecryptException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricDecryptException.js +9 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricEncryptException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricEncryptException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricEncryptException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricEncryptException.js +9 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricSignException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricSignException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricSignException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricSignException.js +9 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricVerifyException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricVerifyException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricVerifyException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/AsymmetricVerifyException.js +9 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptKeyPairException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptKeyPairException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptKeyPairException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptKeyPairException.js +9 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPrivateKeyException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPrivateKeyException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPrivateKeyException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPrivateKeyException.js +9 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPublicKeyException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPublicKeyException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPublicKeyException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/InvalidAsymmetricEncryptPublicKeyException.js +9 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPrivateKeyException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPrivateKeyException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPrivateKeyException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPrivateKeyException.js +9 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPublicKeyException.cjs +18 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPublicKeyException.d.cts +8 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPublicKeyException.d.ts +8 -0
- package/build/exceptions/crypto/asymmetric/NoAsymmetricEncryptPublicKeyException.js +9 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherIVLengthException.cjs +18 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherIVLengthException.d.cts +8 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherIVLengthException.d.ts +8 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherIVLengthException.js +9 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherKeyLengthException.cjs +18 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherKeyLengthException.d.cts +8 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherKeyLengthException.d.ts +8 -0
- package/build/exceptions/crypto/symmetric/InvalidSymmetricCipherKeyLengthException.js +9 -0
- package/build/exceptions/crypto/symmetric/NotSupportCipherException.cjs +18 -0
- package/build/exceptions/crypto/symmetric/NotSupportCipherException.d.cts +8 -0
- package/build/exceptions/crypto/symmetric/NotSupportCipherException.d.ts +8 -0
- package/build/exceptions/crypto/symmetric/NotSupportCipherException.js +9 -0
- package/build/exceptions/crypto/symmetric/SymmetricDecryptException.cjs +18 -0
- package/build/exceptions/crypto/symmetric/SymmetricDecryptException.d.cts +8 -0
- package/build/exceptions/crypto/symmetric/SymmetricDecryptException.d.ts +8 -0
- package/build/exceptions/crypto/symmetric/SymmetricDecryptException.js +9 -0
- package/build/exceptions/crypto/symmetric/SymmetricEncryptException.cjs +18 -0
- package/build/exceptions/crypto/symmetric/SymmetricEncryptException.d.cts +8 -0
- package/build/exceptions/crypto/symmetric/SymmetricEncryptException.d.ts +8 -0
- package/build/exceptions/crypto/symmetric/SymmetricEncryptException.js +9 -0
- package/build/exceptions/validation/InvalidMethodAcceptException.cjs +18 -0
- package/build/exceptions/validation/InvalidMethodAcceptException.d.cts +8 -0
- package/build/exceptions/validation/InvalidMethodAcceptException.d.ts +8 -0
- package/build/exceptions/validation/InvalidMethodAcceptException.js +9 -0
- package/build/exceptions/validation/InvalidMethodReturnException.cjs +18 -0
- package/build/exceptions/validation/InvalidMethodReturnException.d.cts +8 -0
- package/build/exceptions/validation/InvalidMethodReturnException.d.ts +8 -0
- package/build/exceptions/validation/InvalidMethodReturnException.js +9 -0
- package/build/exceptions/validation/InvalidValueException.cjs +18 -0
- package/build/exceptions/validation/InvalidValueException.d.cts +8 -0
- package/build/exceptions/validation/InvalidValueException.d.ts +8 -0
- package/build/exceptions/validation/InvalidValueException.js +9 -0
- package/build/index.d-e5279fea.d.ts +872 -0
- package/build/interfaces/IConstructor.cjs +7 -0
- package/build/interfaces/IConstructor.d.cts +6 -0
- package/build/interfaces/IConstructor.d.ts +6 -0
- package/build/interfaces/IConstructor.js +4 -0
- package/build/interfaces/ILogger.cjs +7 -0
- package/build/interfaces/ILogger.d.cts +22 -0
- package/build/interfaces/ILogger.d.ts +22 -0
- package/build/interfaces/ILogger.js +4 -0
- package/build/interfaces/IPatRun.cjs +7 -0
- package/build/interfaces/IPatRun.d.cts +12 -0
- package/build/interfaces/IPatRun.d.ts +12 -0
- package/build/interfaces/IPatRun.js +4 -0
- package/build/interfaces/ISortArrayOptions.cjs +7 -0
- package/build/interfaces/ISortArrayOptions.d.cts +12 -0
- package/build/interfaces/ISortArrayOptions.d.ts +12 -0
- package/build/interfaces/ISortArrayOptions.js +4 -0
- package/build/interfaces/ISortObjectOptions.cjs +7 -0
- package/build/interfaces/ISortObjectOptions.d.cts +6 -0
- package/build/interfaces/ISortObjectOptions.d.ts +6 -0
- package/build/interfaces/ISortObjectOptions.js +4 -0
- package/build/lib/Application.cjs +50 -0
- package/build/lib/Application.d.cts +20 -0
- package/build/lib/Application.d.ts +20 -0
- package/build/lib/Application.js +41 -0
- package/build/lib/base/BaseObject.cjs +50 -0
- package/build/lib/base/BaseObject.d.cts +112 -0
- package/build/lib/base/BaseObject.d.ts +112 -0
- package/build/lib/base/BaseObject.js +41 -0
- package/build/lib/base/Component.cjs +50 -0
- package/build/lib/base/Component.d.cts +116 -0
- package/build/lib/base/Component.d.ts +116 -0
- package/build/lib/base/Component.js +41 -0
- package/build/lib/base/Container.cjs +50 -0
- package/build/lib/base/Container.d.cts +20 -0
- package/build/lib/base/Container.d.ts +20 -0
- package/build/lib/base/Container.js +41 -0
- package/build/lib/base/Controller.cjs +50 -0
- package/build/lib/base/Controller.d.cts +20 -0
- package/build/lib/base/Controller.d.ts +20 -0
- package/build/lib/base/Controller.js +41 -0
- package/build/lib/base/DTO.cjs +23 -0
- package/build/lib/base/DTO.d.cts +59 -0
- package/build/lib/base/DTO.d.ts +59 -0
- package/build/lib/base/DTO.js +14 -0
- package/build/lib/base/Model.cjs +51 -0
- package/build/lib/base/Model.d.cts +30 -0
- package/build/lib/base/Model.d.ts +30 -0
- package/build/lib/base/Model.js +42 -0
- package/build/lib/base/Module.cjs +50 -0
- package/build/lib/base/Module.d.cts +20 -0
- package/build/lib/base/Module.d.ts +20 -0
- package/build/lib/base/Module.js +41 -0
- package/build/lib/base/abstracts/AsymmetricEncryption.cjs +27 -0
- package/build/lib/base/abstracts/AsymmetricEncryption.d.cts +172 -0
- package/build/lib/base/abstracts/AsymmetricEncryption.d.ts +172 -0
- package/build/lib/base/abstracts/AsymmetricEncryption.js +18 -0
- package/build/lib/base/abstracts/Exception.cjs +17 -0
- package/build/lib/base/abstracts/Exception.d.cts +23 -0
- package/build/lib/base/abstracts/Exception.d.ts +23 -0
- package/build/lib/base/abstracts/Exception.js +8 -0
- package/build/lib/base/abstracts/Interval.cjs +51 -0
- package/build/lib/base/abstracts/Interval.d.cts +76 -0
- package/build/lib/base/abstracts/Interval.d.ts +76 -0
- package/build/lib/base/abstracts/Interval.js +42 -0
- package/build/lib/base/abstracts/SymmetricEncryption.cjs +23 -0
- package/build/lib/base/abstracts/SymmetricEncryption.d.cts +149 -0
- package/build/lib/base/abstracts/SymmetricEncryption.d.ts +149 -0
- package/build/lib/base/abstracts/SymmetricEncryption.js +14 -0
- package/build/lib/base/async-constructor/Append.cjs +14 -0
- package/build/lib/base/async-constructor/Append.d.cts +5 -0
- package/build/lib/base/async-constructor/Append.d.ts +5 -0
- package/build/lib/base/async-constructor/Append.js +5 -0
- package/build/lib/base/async-constructor/AsyncConstructor.cjs +15 -0
- package/build/lib/base/async-constructor/AsyncConstructor.d.cts +7 -0
- package/build/lib/base/async-constructor/AsyncConstructor.d.ts +7 -0
- package/build/lib/base/async-constructor/AsyncConstructor.js +6 -0
- package/build/lib/components/Formatter.cjs +50 -0
- package/build/lib/components/Formatter.d.cts +203 -0
- package/build/lib/components/Formatter.d.ts +203 -0
- package/build/lib/components/Formatter.js +41 -0
- package/build/lib/components/Logger.cjs +50 -0
- package/build/lib/components/Logger.d.cts +61 -0
- package/build/lib/components/Logger.d.ts +61 -0
- package/build/lib/components/Logger.js +41 -0
- package/build/lib/crypto/RSA.cjs +28 -0
- package/build/lib/crypto/RSA.d.cts +61 -0
- package/build/lib/crypto/RSA.d.ts +61 -0
- package/build/lib/crypto/RSA.js +19 -0
- package/build/lib/crypto/SM2.cjs +28 -0
- package/build/lib/crypto/SM2.d.cts +47 -0
- package/build/lib/crypto/SM2.d.ts +47 -0
- package/build/lib/crypto/SM2.js +19 -0
- package/build/lib/crypto/aes/AES128.cjs +25 -0
- package/build/lib/crypto/aes/AES128.d.cts +14 -0
- package/build/lib/crypto/aes/AES128.d.ts +14 -0
- package/build/lib/crypto/aes/AES128.js +16 -0
- package/build/lib/crypto/aes/AES192.cjs +25 -0
- package/build/lib/crypto/aes/AES192.d.cts +14 -0
- package/build/lib/crypto/aes/AES192.d.ts +14 -0
- package/build/lib/crypto/aes/AES192.js +16 -0
- package/build/lib/crypto/aes/AES256.cjs +25 -0
- package/build/lib/crypto/aes/AES256.d.cts +14 -0
- package/build/lib/crypto/aes/AES256.d.ts +14 -0
- package/build/lib/crypto/aes/AES256.js +16 -0
- package/build/lib/crypto/aria/ARIA128.cjs +24 -0
- package/build/lib/crypto/aria/ARIA128.d.cts +13 -0
- package/build/lib/crypto/aria/ARIA128.d.ts +13 -0
- package/build/lib/crypto/aria/ARIA128.js +15 -0
- package/build/lib/crypto/aria/ARIA192.cjs +24 -0
- package/build/lib/crypto/aria/ARIA192.d.cts +13 -0
- package/build/lib/crypto/aria/ARIA192.d.ts +13 -0
- package/build/lib/crypto/aria/ARIA192.js +15 -0
- package/build/lib/crypto/aria/ARIA256.cjs +24 -0
- package/build/lib/crypto/aria/ARIA256.d.cts +13 -0
- package/build/lib/crypto/aria/ARIA256.d.ts +13 -0
- package/build/lib/crypto/aria/ARIA256.js +15 -0
- package/build/lib/crypto/camellia/CAMELLIA128.cjs +24 -0
- package/build/lib/crypto/camellia/CAMELLIA128.d.cts +13 -0
- package/build/lib/crypto/camellia/CAMELLIA128.d.ts +13 -0
- package/build/lib/crypto/camellia/CAMELLIA128.js +15 -0
- package/build/lib/crypto/camellia/CAMELLIA192.cjs +24 -0
- package/build/lib/crypto/camellia/CAMELLIA192.d.cts +13 -0
- package/build/lib/crypto/camellia/CAMELLIA192.d.ts +13 -0
- package/build/lib/crypto/camellia/CAMELLIA192.js +15 -0
- package/build/lib/crypto/camellia/CAMELLIA256.cjs +24 -0
- package/build/lib/crypto/camellia/CAMELLIA256.d.cts +13 -0
- package/build/lib/crypto/camellia/CAMELLIA256.d.ts +13 -0
- package/build/lib/crypto/camellia/CAMELLIA256.js +15 -0
- package/build/lib/crypto/des/DES.cjs +25 -0
- package/build/lib/crypto/des/DES.d.cts +14 -0
- package/build/lib/crypto/des/DES.d.ts +14 -0
- package/build/lib/crypto/des/DES.js +16 -0
- package/build/lib/crypto/des/TripleDES.cjs +25 -0
- package/build/lib/crypto/des/TripleDES.d.cts +14 -0
- package/build/lib/crypto/des/TripleDES.d.ts +14 -0
- package/build/lib/crypto/des/TripleDES.js +16 -0
- package/build/lib/ioc/DependencyInjectionContainer.cjs +29 -0
- package/build/lib/ioc/DependencyInjectionContainer.d.cts +4 -0
- package/build/lib/ioc/DependencyInjectionContainer.d.ts +4 -0
- package/build/lib/ioc/DependencyInjectionContainer.js +20 -0
- package/build/lib/ioc/Errors.cjs +27 -0
- package/build/lib/ioc/Errors.d.cts +53 -0
- package/build/lib/ioc/Errors.d.ts +53 -0
- package/build/lib/ioc/Errors.js +10 -0
- package/build/lib/ioc/FunctionTokenizer.cjs +18 -0
- package/build/lib/ioc/FunctionTokenizer.d.cts +33 -0
- package/build/lib/ioc/FunctionTokenizer.d.ts +33 -0
- package/build/lib/ioc/FunctionTokenizer.js +5 -0
- package/build/lib/ioc/InjectionMode.cjs +14 -0
- package/build/lib/ioc/InjectionMode.d.cts +12 -0
- package/build/lib/ioc/InjectionMode.d.ts +12 -0
- package/build/lib/ioc/InjectionMode.js +5 -0
- package/build/lib/ioc/Lifetime.cjs +14 -0
- package/build/lib/ioc/Lifetime.d.cts +12 -0
- package/build/lib/ioc/Lifetime.d.ts +12 -0
- package/build/lib/ioc/Lifetime.js +5 -0
- package/build/lib/ioc/ListModules.cjs +17 -0
- package/build/lib/ioc/ListModules.d.cts +4 -0
- package/build/lib/ioc/ListModules.d.ts +4 -0
- package/build/lib/ioc/ListModules.js +8 -0
- package/build/lib/ioc/LoadModuleNative.cjs +14 -0
- package/build/lib/ioc/LoadModuleNative.d.cts +9 -0
- package/build/lib/ioc/LoadModuleNative.d.ts +9 -0
- package/build/lib/ioc/LoadModuleNative.js +5 -0
- package/build/lib/ioc/LoadModules.cjs +26 -0
- package/build/lib/ioc/LoadModules.d.cts +4 -0
- package/build/lib/ioc/LoadModules.d.ts +4 -0
- package/build/lib/ioc/LoadModules.js +17 -0
- package/build/lib/ioc/ParamParser.cjs +15 -0
- package/build/lib/ioc/ParamParser.d.cts +25 -0
- package/build/lib/ioc/ParamParser.d.ts +25 -0
- package/build/lib/ioc/ParamParser.js +6 -0
- package/build/lib/ioc/Resolvers.cjs +49 -0
- package/build/lib/ioc/Resolvers.d.cts +4 -0
- package/build/lib/ioc/Resolvers.d.ts +4 -0
- package/build/lib/ioc/Resolvers.js +16 -0
- package/build/lib/ioc/Utils.cjs +35 -0
- package/build/lib/ioc/Utils.d.cts +38 -0
- package/build/lib/ioc/Utils.d.ts +38 -0
- package/build/lib/ioc/Utils.js +6 -0
- package/build/options/ApplicationOptions.cjs +50 -0
- package/build/options/ApplicationOptions.d.cts +20 -0
- package/build/options/ApplicationOptions.d.ts +20 -0
- package/build/options/ApplicationOptions.js +41 -0
- package/build/options/LoadComponentOptions.cjs +50 -0
- package/build/options/LoadComponentOptions.d.cts +22 -0
- package/build/options/LoadComponentOptions.d.ts +22 -0
- package/build/options/LoadComponentOptions.js +41 -0
- package/build/options/LoadEntryClassOptions.cjs +50 -0
- package/build/options/LoadEntryClassOptions.d.cts +16 -0
- package/build/options/LoadEntryClassOptions.d.ts +16 -0
- package/build/options/LoadEntryClassOptions.js +41 -0
- package/build/options/LoadEntryCommonOptions.cjs +27 -0
- package/build/options/LoadEntryCommonOptions.d.cts +13 -0
- package/build/options/LoadEntryCommonOptions.d.ts +13 -0
- package/build/options/LoadEntryCommonOptions.js +18 -0
- package/build/options/LoadModuleOptions.cjs +50 -0
- package/build/options/LoadModuleOptions.d.cts +20 -0
- package/build/options/LoadModuleOptions.d.ts +20 -0
- package/build/options/LoadModuleOptions.js +41 -0
- package/build/options/ModuleOptions.cjs +50 -0
- package/build/options/ModuleOptions.d.cts +20 -0
- package/build/options/ModuleOptions.d.ts +20 -0
- package/build/options/ModuleOptions.js +41 -0
- package/build/types/AsyncFunction.cjs +7 -0
- package/build/types/AsyncFunction.d.cts +3 -0
- package/build/types/AsyncFunction.d.ts +3 -0
- package/build/types/AsyncFunction.js +4 -0
- package/build/types/ControllerActionMapItem.cjs +7 -0
- package/build/types/ControllerActionMapItem.d.cts +20 -0
- package/build/types/ControllerActionMapItem.d.ts +20 -0
- package/build/types/ControllerActionMapItem.js +4 -0
- package/build/types/InjectionProperties.cjs +7 -0
- package/build/types/InjectionProperties.d.cts +3 -0
- package/build/types/InjectionProperties.d.ts +3 -0
- package/build/types/InjectionProperties.js +4 -0
- package/build/types/TimeInput.cjs +7 -0
- package/build/types/TimeInput.d.cts +5 -0
- package/build/types/TimeInput.d.ts +5 -0
- package/build/types/TimeInput.js +4 -0
- package/build/types/TimeObject.cjs +7 -0
- package/build/types/TimeObject.d.cts +11 -0
- package/build/types/TimeObject.d.ts +11 -0
- package/build/types/TimeObject.js +4 -0
- package/build/types/UnitOfTime.cjs +7 -0
- package/build/types/UnitOfTime.d.cts +14 -0
- package/build/types/UnitOfTime.d.ts +14 -0
- package/build/types/UnitOfTime.js +4 -0
- package/package.json +145 -0
|
@@ -0,0 +1,872 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param strict Strict parsing disables the deprecated fallback to the native Date constructor when
|
|
3
|
+
* parsing a string.
|
|
4
|
+
*/
|
|
5
|
+
declare function moment(inp?: moment.MomentInput, strict?: boolean): moment.Moment;
|
|
6
|
+
/**
|
|
7
|
+
* @param strict Strict parsing requires that the format and input match exactly, including delimiters.
|
|
8
|
+
* Strict parsing is frequently the best parsing option. For more information about choosing strict vs
|
|
9
|
+
* forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
|
|
10
|
+
*/
|
|
11
|
+
declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
|
|
12
|
+
/**
|
|
13
|
+
* @param strict Strict parsing requires that the format and input match exactly, including delimiters.
|
|
14
|
+
* Strict parsing is frequently the best parsing option. For more information about choosing strict vs
|
|
15
|
+
* forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
|
|
16
|
+
*/
|
|
17
|
+
declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment;
|
|
18
|
+
|
|
19
|
+
declare namespace moment {
|
|
20
|
+
type RelativeTimeKey = 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'w' | 'ww' | 'M' | 'MM' | 'y' | 'yy';
|
|
21
|
+
type CalendarKey = 'sameDay' | 'nextDay' | 'lastDay' | 'nextWeek' | 'lastWeek' | 'sameElse' | string;
|
|
22
|
+
type LongDateFormatKey = 'LTS' | 'LT' | 'L' | 'LL' | 'LLL' | 'LLLL' | 'lts' | 'lt' | 'l' | 'll' | 'lll' | 'llll';
|
|
23
|
+
|
|
24
|
+
interface Locale {
|
|
25
|
+
calendar(key?: CalendarKey, m?: Moment, now?: Moment): string;
|
|
26
|
+
|
|
27
|
+
longDateFormat(key: LongDateFormatKey): string;
|
|
28
|
+
invalidDate(): string;
|
|
29
|
+
ordinal(n: number): string;
|
|
30
|
+
|
|
31
|
+
preparse(inp: string): string;
|
|
32
|
+
postformat(inp: string): string;
|
|
33
|
+
relativeTime(n: number, withoutSuffix: boolean,
|
|
34
|
+
key: RelativeTimeKey, isFuture: boolean): string;
|
|
35
|
+
pastFuture(diff: number, absRelTime: string): string;
|
|
36
|
+
set(config: Object): void;
|
|
37
|
+
|
|
38
|
+
months(): string[];
|
|
39
|
+
months(m: Moment, format?: string): string;
|
|
40
|
+
monthsShort(): string[];
|
|
41
|
+
monthsShort(m: Moment, format?: string): string;
|
|
42
|
+
monthsParse(monthName: string, format: string, strict: boolean): number;
|
|
43
|
+
monthsRegex(strict: boolean): RegExp;
|
|
44
|
+
monthsShortRegex(strict: boolean): RegExp;
|
|
45
|
+
|
|
46
|
+
week(m: Moment): number;
|
|
47
|
+
firstDayOfYear(): number;
|
|
48
|
+
firstDayOfWeek(): number;
|
|
49
|
+
|
|
50
|
+
weekdays(): string[];
|
|
51
|
+
weekdays(m: Moment, format?: string): string;
|
|
52
|
+
weekdaysMin(): string[];
|
|
53
|
+
weekdaysMin(m: Moment): string;
|
|
54
|
+
weekdaysShort(): string[];
|
|
55
|
+
weekdaysShort(m: Moment): string;
|
|
56
|
+
weekdaysParse(weekdayName: string, format: string, strict: boolean): number;
|
|
57
|
+
weekdaysRegex(strict: boolean): RegExp;
|
|
58
|
+
weekdaysShortRegex(strict: boolean): RegExp;
|
|
59
|
+
weekdaysMinRegex(strict: boolean): RegExp;
|
|
60
|
+
|
|
61
|
+
isPM(input: string): boolean;
|
|
62
|
+
meridiem(hour: number, minute: number, isLower: boolean): string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface StandaloneFormatSpec {
|
|
66
|
+
format: string[];
|
|
67
|
+
standalone: string[];
|
|
68
|
+
isFormat?: RegExp;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface WeekSpec {
|
|
72
|
+
dow: number;
|
|
73
|
+
doy?: number;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
type CalendarSpecVal = string | ((m?: MomentInput, now?: Moment) => string);
|
|
77
|
+
interface CalendarSpec {
|
|
78
|
+
sameDay?: CalendarSpecVal;
|
|
79
|
+
nextDay?: CalendarSpecVal;
|
|
80
|
+
lastDay?: CalendarSpecVal;
|
|
81
|
+
nextWeek?: CalendarSpecVal;
|
|
82
|
+
lastWeek?: CalendarSpecVal;
|
|
83
|
+
sameElse?: CalendarSpecVal;
|
|
84
|
+
|
|
85
|
+
// any additional properties might be used with moment.calendarFormat
|
|
86
|
+
[x: string]: CalendarSpecVal | void; // undefined
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type RelativeTimeSpecVal = (
|
|
90
|
+
string |
|
|
91
|
+
((n: number, withoutSuffix: boolean,
|
|
92
|
+
key: RelativeTimeKey, isFuture: boolean) => string)
|
|
93
|
+
);
|
|
94
|
+
type RelativeTimeFuturePastVal = string | ((relTime: string) => string);
|
|
95
|
+
|
|
96
|
+
interface RelativeTimeSpec {
|
|
97
|
+
future?: RelativeTimeFuturePastVal;
|
|
98
|
+
past?: RelativeTimeFuturePastVal;
|
|
99
|
+
s?: RelativeTimeSpecVal;
|
|
100
|
+
ss?: RelativeTimeSpecVal;
|
|
101
|
+
m?: RelativeTimeSpecVal;
|
|
102
|
+
mm?: RelativeTimeSpecVal;
|
|
103
|
+
h?: RelativeTimeSpecVal;
|
|
104
|
+
hh?: RelativeTimeSpecVal;
|
|
105
|
+
d?: RelativeTimeSpecVal;
|
|
106
|
+
dd?: RelativeTimeSpecVal;
|
|
107
|
+
w?: RelativeTimeSpecVal
|
|
108
|
+
ww?: RelativeTimeSpecVal;
|
|
109
|
+
M?: RelativeTimeSpecVal;
|
|
110
|
+
MM?: RelativeTimeSpecVal;
|
|
111
|
+
y?: RelativeTimeSpecVal;
|
|
112
|
+
yy?: RelativeTimeSpecVal;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface LongDateFormatSpec {
|
|
116
|
+
LTS: string;
|
|
117
|
+
LT: string;
|
|
118
|
+
L: string;
|
|
119
|
+
LL: string;
|
|
120
|
+
LLL: string;
|
|
121
|
+
LLLL: string;
|
|
122
|
+
|
|
123
|
+
// lets forget for a sec that any upper/lower permutation will also work
|
|
124
|
+
lts?: string;
|
|
125
|
+
lt?: string;
|
|
126
|
+
l?: string;
|
|
127
|
+
ll?: string;
|
|
128
|
+
lll?: string;
|
|
129
|
+
llll?: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
type MonthWeekdayFn = (momentToFormat: Moment, format?: string) => string;
|
|
133
|
+
type WeekdaySimpleFn = (momentToFormat: Moment) => string;
|
|
134
|
+
interface EraSpec {
|
|
135
|
+
since: string | number;
|
|
136
|
+
until: string | number;
|
|
137
|
+
offset: number;
|
|
138
|
+
name: string;
|
|
139
|
+
narrow: string;
|
|
140
|
+
abbr: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
interface LocaleSpecification {
|
|
144
|
+
months?: string[] | StandaloneFormatSpec | MonthWeekdayFn;
|
|
145
|
+
monthsShort?: string[] | StandaloneFormatSpec | MonthWeekdayFn;
|
|
146
|
+
|
|
147
|
+
weekdays?: string[] | StandaloneFormatSpec | MonthWeekdayFn;
|
|
148
|
+
weekdaysShort?: string[] | StandaloneFormatSpec | WeekdaySimpleFn;
|
|
149
|
+
weekdaysMin?: string[] | StandaloneFormatSpec | WeekdaySimpleFn;
|
|
150
|
+
|
|
151
|
+
meridiemParse?: RegExp;
|
|
152
|
+
meridiem?: (hour: number, minute:number, isLower: boolean) => string;
|
|
153
|
+
|
|
154
|
+
isPM?: (input: string) => boolean;
|
|
155
|
+
|
|
156
|
+
longDateFormat?: LongDateFormatSpec;
|
|
157
|
+
calendar?: CalendarSpec;
|
|
158
|
+
relativeTime?: RelativeTimeSpec;
|
|
159
|
+
invalidDate?: string;
|
|
160
|
+
ordinal?: (n: number) => string;
|
|
161
|
+
ordinalParse?: RegExp;
|
|
162
|
+
|
|
163
|
+
week?: WeekSpec;
|
|
164
|
+
eras?: EraSpec[];
|
|
165
|
+
|
|
166
|
+
// Allow anything: in general any property that is passed as locale spec is
|
|
167
|
+
// put in the locale object so it can be used by locale functions
|
|
168
|
+
[x: string]: any;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface MomentObjectOutput {
|
|
172
|
+
years: number;
|
|
173
|
+
/* One digit */
|
|
174
|
+
months: number;
|
|
175
|
+
/* Day of the month */
|
|
176
|
+
date: number;
|
|
177
|
+
hours: number;
|
|
178
|
+
minutes: number;
|
|
179
|
+
seconds: number;
|
|
180
|
+
milliseconds: number;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
interface argThresholdOpts {
|
|
184
|
+
ss?: number;
|
|
185
|
+
s?: number;
|
|
186
|
+
m?: number;
|
|
187
|
+
h?: number;
|
|
188
|
+
d?: number;
|
|
189
|
+
w?: number | void;
|
|
190
|
+
M?: number;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface Duration {
|
|
194
|
+
clone(): Duration;
|
|
195
|
+
|
|
196
|
+
humanize(argWithSuffix?: boolean, argThresholds?: argThresholdOpts): string;
|
|
197
|
+
|
|
198
|
+
humanize(argThresholds?: argThresholdOpts): string;
|
|
199
|
+
|
|
200
|
+
abs(): Duration;
|
|
201
|
+
|
|
202
|
+
as(units: unitOfTime.Base): number;
|
|
203
|
+
get(units: unitOfTime.Base): number;
|
|
204
|
+
|
|
205
|
+
milliseconds(): number;
|
|
206
|
+
asMilliseconds(): number;
|
|
207
|
+
|
|
208
|
+
seconds(): number;
|
|
209
|
+
asSeconds(): number;
|
|
210
|
+
|
|
211
|
+
minutes(): number;
|
|
212
|
+
asMinutes(): number;
|
|
213
|
+
|
|
214
|
+
hours(): number;
|
|
215
|
+
asHours(): number;
|
|
216
|
+
|
|
217
|
+
days(): number;
|
|
218
|
+
asDays(): number;
|
|
219
|
+
|
|
220
|
+
weeks(): number;
|
|
221
|
+
asWeeks(): number;
|
|
222
|
+
|
|
223
|
+
months(): number;
|
|
224
|
+
asMonths(): number;
|
|
225
|
+
|
|
226
|
+
years(): number;
|
|
227
|
+
asYears(): number;
|
|
228
|
+
|
|
229
|
+
add(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration;
|
|
230
|
+
subtract(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration;
|
|
231
|
+
|
|
232
|
+
locale(): string;
|
|
233
|
+
locale(locale: LocaleSpecifier): Duration;
|
|
234
|
+
localeData(): Locale;
|
|
235
|
+
|
|
236
|
+
toISOString(): string;
|
|
237
|
+
toJSON(): string;
|
|
238
|
+
|
|
239
|
+
isValid(): boolean;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @deprecated since version 2.8.0
|
|
243
|
+
*/
|
|
244
|
+
lang(locale: LocaleSpecifier): Moment;
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated since version 2.8.0
|
|
247
|
+
*/
|
|
248
|
+
lang(): Locale;
|
|
249
|
+
/**
|
|
250
|
+
* @deprecated
|
|
251
|
+
*/
|
|
252
|
+
toIsoString(): string;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
interface MomentRelativeTime {
|
|
256
|
+
future: any;
|
|
257
|
+
past: any;
|
|
258
|
+
s: any;
|
|
259
|
+
ss: any;
|
|
260
|
+
m: any;
|
|
261
|
+
mm: any;
|
|
262
|
+
h: any;
|
|
263
|
+
hh: any;
|
|
264
|
+
d: any;
|
|
265
|
+
dd: any;
|
|
266
|
+
M: any;
|
|
267
|
+
MM: any;
|
|
268
|
+
y: any;
|
|
269
|
+
yy: any;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface MomentLongDateFormat {
|
|
273
|
+
L: string;
|
|
274
|
+
LL: string;
|
|
275
|
+
LLL: string;
|
|
276
|
+
LLLL: string;
|
|
277
|
+
LT: string;
|
|
278
|
+
LTS: string;
|
|
279
|
+
|
|
280
|
+
l?: string;
|
|
281
|
+
ll?: string;
|
|
282
|
+
lll?: string;
|
|
283
|
+
llll?: string;
|
|
284
|
+
lt?: string;
|
|
285
|
+
lts?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
interface MomentParsingFlags {
|
|
289
|
+
empty: boolean;
|
|
290
|
+
unusedTokens: string[];
|
|
291
|
+
unusedInput: string[];
|
|
292
|
+
overflow: number;
|
|
293
|
+
charsLeftOver: number;
|
|
294
|
+
nullInput: boolean;
|
|
295
|
+
invalidMonth: string | void; // null
|
|
296
|
+
invalidFormat: boolean;
|
|
297
|
+
userInvalidated: boolean;
|
|
298
|
+
iso: boolean;
|
|
299
|
+
parsedDateParts: any[];
|
|
300
|
+
meridiem: string | void; // null
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
interface MomentParsingFlagsOpt {
|
|
304
|
+
empty?: boolean;
|
|
305
|
+
unusedTokens?: string[];
|
|
306
|
+
unusedInput?: string[];
|
|
307
|
+
overflow?: number;
|
|
308
|
+
charsLeftOver?: number;
|
|
309
|
+
nullInput?: boolean;
|
|
310
|
+
invalidMonth?: string;
|
|
311
|
+
invalidFormat?: boolean;
|
|
312
|
+
userInvalidated?: boolean;
|
|
313
|
+
iso?: boolean;
|
|
314
|
+
parsedDateParts?: any[];
|
|
315
|
+
meridiem?: string;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
interface MomentBuiltinFormat {
|
|
319
|
+
__momentBuiltinFormatBrand: any;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
type MomentFormatSpecification = string | MomentBuiltinFormat | (string | MomentBuiltinFormat)[];
|
|
323
|
+
|
|
324
|
+
export namespace unitOfTime {
|
|
325
|
+
type Base = (
|
|
326
|
+
"year" | "years" | "y" |
|
|
327
|
+
"month" | "months" | "M" |
|
|
328
|
+
"week" | "weeks" | "w" |
|
|
329
|
+
"day" | "days" | "d" |
|
|
330
|
+
"hour" | "hours" | "h" |
|
|
331
|
+
"minute" | "minutes" | "m" |
|
|
332
|
+
"second" | "seconds" | "s" |
|
|
333
|
+
"millisecond" | "milliseconds" | "ms"
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
type _quarter = "quarter" | "quarters" | "Q";
|
|
337
|
+
type _isoWeek = "isoWeek" | "isoWeeks" | "W";
|
|
338
|
+
type _date = "date" | "dates" | "D";
|
|
339
|
+
type DurationConstructor = Base | _quarter | _isoWeek;
|
|
340
|
+
|
|
341
|
+
export type DurationAs = Base;
|
|
342
|
+
|
|
343
|
+
export type StartOf = Base | _quarter | _isoWeek | _date | void; // null
|
|
344
|
+
|
|
345
|
+
export type Diff = Base | _quarter;
|
|
346
|
+
|
|
347
|
+
export type MomentConstructor = Base | _date;
|
|
348
|
+
|
|
349
|
+
export type All = Base | _quarter | _isoWeek | _date |
|
|
350
|
+
"weekYear" | "weekYears" | "gg" |
|
|
351
|
+
"isoWeekYear" | "isoWeekYears" | "GG" |
|
|
352
|
+
"dayOfYear" | "dayOfYears" | "DDD" |
|
|
353
|
+
"weekday" | "weekdays" | "e" |
|
|
354
|
+
"isoWeekday" | "isoWeekdays" | "E";
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
type numberlike = number | string;
|
|
358
|
+
interface MomentInputObject {
|
|
359
|
+
years?: numberlike;
|
|
360
|
+
year?: numberlike;
|
|
361
|
+
y?: numberlike;
|
|
362
|
+
|
|
363
|
+
months?: numberlike;
|
|
364
|
+
month?: numberlike;
|
|
365
|
+
M?: numberlike;
|
|
366
|
+
|
|
367
|
+
days?: numberlike;
|
|
368
|
+
day?: numberlike;
|
|
369
|
+
d?: numberlike;
|
|
370
|
+
|
|
371
|
+
dates?: numberlike;
|
|
372
|
+
date?: numberlike;
|
|
373
|
+
D?: numberlike;
|
|
374
|
+
|
|
375
|
+
hours?: numberlike;
|
|
376
|
+
hour?: numberlike;
|
|
377
|
+
h?: numberlike;
|
|
378
|
+
|
|
379
|
+
minutes?: numberlike;
|
|
380
|
+
minute?: numberlike;
|
|
381
|
+
m?: numberlike;
|
|
382
|
+
|
|
383
|
+
seconds?: numberlike;
|
|
384
|
+
second?: numberlike;
|
|
385
|
+
s?: numberlike;
|
|
386
|
+
|
|
387
|
+
milliseconds?: numberlike;
|
|
388
|
+
millisecond?: numberlike;
|
|
389
|
+
ms?: numberlike;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
interface DurationInputObject extends MomentInputObject {
|
|
393
|
+
quarters?: numberlike;
|
|
394
|
+
quarter?: numberlike;
|
|
395
|
+
Q?: numberlike;
|
|
396
|
+
|
|
397
|
+
weeks?: numberlike;
|
|
398
|
+
week?: numberlike;
|
|
399
|
+
w?: numberlike;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
interface MomentSetObject extends MomentInputObject {
|
|
403
|
+
weekYears?: numberlike;
|
|
404
|
+
weekYear?: numberlike;
|
|
405
|
+
gg?: numberlike;
|
|
406
|
+
|
|
407
|
+
isoWeekYears?: numberlike;
|
|
408
|
+
isoWeekYear?: numberlike;
|
|
409
|
+
GG?: numberlike;
|
|
410
|
+
|
|
411
|
+
quarters?: numberlike;
|
|
412
|
+
quarter?: numberlike;
|
|
413
|
+
Q?: numberlike;
|
|
414
|
+
|
|
415
|
+
weeks?: numberlike;
|
|
416
|
+
week?: numberlike;
|
|
417
|
+
w?: numberlike;
|
|
418
|
+
|
|
419
|
+
isoWeeks?: numberlike;
|
|
420
|
+
isoWeek?: numberlike;
|
|
421
|
+
W?: numberlike;
|
|
422
|
+
|
|
423
|
+
dayOfYears?: numberlike;
|
|
424
|
+
dayOfYear?: numberlike;
|
|
425
|
+
DDD?: numberlike;
|
|
426
|
+
|
|
427
|
+
weekdays?: numberlike;
|
|
428
|
+
weekday?: numberlike;
|
|
429
|
+
e?: numberlike;
|
|
430
|
+
|
|
431
|
+
isoWeekdays?: numberlike;
|
|
432
|
+
isoWeekday?: numberlike;
|
|
433
|
+
E?: numberlike;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
interface FromTo {
|
|
437
|
+
from: MomentInput;
|
|
438
|
+
to: MomentInput;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
442
|
+
type DurationInputArg1 = Duration | number | string | FromTo | DurationInputObject | void; // null | undefined
|
|
443
|
+
type DurationInputArg2 = unitOfTime.DurationConstructor;
|
|
444
|
+
type LocaleSpecifier = string | Moment | Duration | string[] | boolean;
|
|
445
|
+
|
|
446
|
+
interface MomentCreationData {
|
|
447
|
+
input: MomentInput;
|
|
448
|
+
format?: MomentFormatSpecification;
|
|
449
|
+
locale: Locale;
|
|
450
|
+
isUTC: boolean;
|
|
451
|
+
strict?: boolean;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
interface Moment extends Object {
|
|
455
|
+
format(format?: string): string;
|
|
456
|
+
|
|
457
|
+
startOf(unitOfTime: unitOfTime.StartOf): Moment;
|
|
458
|
+
endOf(unitOfTime: unitOfTime.StartOf): Moment;
|
|
459
|
+
|
|
460
|
+
add(amount?: DurationInputArg1, unit?: DurationInputArg2): Moment;
|
|
461
|
+
/**
|
|
462
|
+
* @deprecated reverse syntax
|
|
463
|
+
*/
|
|
464
|
+
add(unit: unitOfTime.DurationConstructor, amount: number|string): Moment;
|
|
465
|
+
|
|
466
|
+
subtract(amount?: DurationInputArg1, unit?: DurationInputArg2): Moment;
|
|
467
|
+
/**
|
|
468
|
+
* @deprecated reverse syntax
|
|
469
|
+
*/
|
|
470
|
+
subtract(unit: unitOfTime.DurationConstructor, amount: number|string): Moment;
|
|
471
|
+
|
|
472
|
+
calendar(): string;
|
|
473
|
+
calendar(formats: CalendarSpec): string;
|
|
474
|
+
calendar(time: MomentInput, formats?: CalendarSpec): string;
|
|
475
|
+
|
|
476
|
+
clone(): Moment;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @return Unix timestamp in milliseconds
|
|
480
|
+
*/
|
|
481
|
+
valueOf(): number;
|
|
482
|
+
|
|
483
|
+
// current date/time in local mode
|
|
484
|
+
local(keepLocalTime?: boolean): Moment;
|
|
485
|
+
isLocal(): boolean;
|
|
486
|
+
|
|
487
|
+
// current date/time in UTC mode
|
|
488
|
+
utc(keepLocalTime?: boolean): Moment;
|
|
489
|
+
isUTC(): boolean;
|
|
490
|
+
/**
|
|
491
|
+
* @deprecated use isUTC
|
|
492
|
+
*/
|
|
493
|
+
isUtc(): boolean;
|
|
494
|
+
|
|
495
|
+
parseZone(): Moment;
|
|
496
|
+
isValid(): boolean;
|
|
497
|
+
invalidAt(): number;
|
|
498
|
+
|
|
499
|
+
hasAlignedHourOffset(other?: MomentInput): boolean;
|
|
500
|
+
|
|
501
|
+
creationData(): MomentCreationData;
|
|
502
|
+
parsingFlags(): MomentParsingFlags;
|
|
503
|
+
|
|
504
|
+
year(y: number): Moment;
|
|
505
|
+
year(): number;
|
|
506
|
+
/**
|
|
507
|
+
* @deprecated use year(y)
|
|
508
|
+
*/
|
|
509
|
+
years(y: number): Moment;
|
|
510
|
+
/**
|
|
511
|
+
* @deprecated use year()
|
|
512
|
+
*/
|
|
513
|
+
years(): number;
|
|
514
|
+
quarter(): number;
|
|
515
|
+
quarter(q: number): Moment;
|
|
516
|
+
quarters(): number;
|
|
517
|
+
quarters(q: number): Moment;
|
|
518
|
+
month(M: number|string): Moment;
|
|
519
|
+
month(): number;
|
|
520
|
+
/**
|
|
521
|
+
* @deprecated use month(M)
|
|
522
|
+
*/
|
|
523
|
+
months(M: number|string): Moment;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated use month()
|
|
526
|
+
*/
|
|
527
|
+
months(): number;
|
|
528
|
+
day(d: number|string): Moment;
|
|
529
|
+
day(): number;
|
|
530
|
+
days(d: number|string): Moment;
|
|
531
|
+
days(): number;
|
|
532
|
+
date(d: number): Moment;
|
|
533
|
+
date(): number;
|
|
534
|
+
/**
|
|
535
|
+
* @deprecated use date(d)
|
|
536
|
+
*/
|
|
537
|
+
dates(d: number): Moment;
|
|
538
|
+
/**
|
|
539
|
+
* @deprecated use date()
|
|
540
|
+
*/
|
|
541
|
+
dates(): number;
|
|
542
|
+
hour(h: number): Moment;
|
|
543
|
+
hour(): number;
|
|
544
|
+
hours(h: number): Moment;
|
|
545
|
+
hours(): number;
|
|
546
|
+
minute(m: number): Moment;
|
|
547
|
+
minute(): number;
|
|
548
|
+
minutes(m: number): Moment;
|
|
549
|
+
minutes(): number;
|
|
550
|
+
second(s: number): Moment;
|
|
551
|
+
second(): number;
|
|
552
|
+
seconds(s: number): Moment;
|
|
553
|
+
seconds(): number;
|
|
554
|
+
millisecond(ms: number): Moment;
|
|
555
|
+
millisecond(): number;
|
|
556
|
+
milliseconds(ms: number): Moment;
|
|
557
|
+
milliseconds(): number;
|
|
558
|
+
weekday(): number;
|
|
559
|
+
weekday(d: number): Moment;
|
|
560
|
+
isoWeekday(): number;
|
|
561
|
+
isoWeekday(d: number|string): Moment;
|
|
562
|
+
weekYear(): number;
|
|
563
|
+
weekYear(d: number): Moment;
|
|
564
|
+
isoWeekYear(): number;
|
|
565
|
+
isoWeekYear(d: number): Moment;
|
|
566
|
+
week(): number;
|
|
567
|
+
week(d: number): Moment;
|
|
568
|
+
weeks(): number;
|
|
569
|
+
weeks(d: number): Moment;
|
|
570
|
+
isoWeek(): number;
|
|
571
|
+
isoWeek(d: number): Moment;
|
|
572
|
+
isoWeeks(): number;
|
|
573
|
+
isoWeeks(d: number): Moment;
|
|
574
|
+
weeksInYear(): number;
|
|
575
|
+
weeksInWeekYear(): number;
|
|
576
|
+
isoWeeksInYear(): number;
|
|
577
|
+
isoWeeksInISOWeekYear(): number;
|
|
578
|
+
dayOfYear(): number;
|
|
579
|
+
dayOfYear(d: number): Moment;
|
|
580
|
+
|
|
581
|
+
from(inp: MomentInput, suffix?: boolean): string;
|
|
582
|
+
to(inp: MomentInput, suffix?: boolean): string;
|
|
583
|
+
fromNow(withoutSuffix?: boolean): string;
|
|
584
|
+
toNow(withoutPrefix?: boolean): string;
|
|
585
|
+
|
|
586
|
+
diff(b: MomentInput, unitOfTime?: unitOfTime.Diff, precise?: boolean): number;
|
|
587
|
+
|
|
588
|
+
toArray(): number[];
|
|
589
|
+
toDate(): Date;
|
|
590
|
+
toISOString(keepOffset?: boolean): string;
|
|
591
|
+
inspect(): string;
|
|
592
|
+
toJSON(): string;
|
|
593
|
+
unix(): number;
|
|
594
|
+
|
|
595
|
+
isLeapYear(): boolean;
|
|
596
|
+
/**
|
|
597
|
+
* @deprecated in favor of utcOffset
|
|
598
|
+
*/
|
|
599
|
+
zone(): number;
|
|
600
|
+
zone(b: number|string): Moment;
|
|
601
|
+
utcOffset(): number;
|
|
602
|
+
utcOffset(b: number|string, keepLocalTime?: boolean): Moment;
|
|
603
|
+
isUtcOffset(): boolean;
|
|
604
|
+
daysInMonth(): number;
|
|
605
|
+
isDST(): boolean;
|
|
606
|
+
|
|
607
|
+
zoneAbbr(): string;
|
|
608
|
+
zoneName(): string;
|
|
609
|
+
|
|
610
|
+
isBefore(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
|
|
611
|
+
isAfter(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
|
|
612
|
+
isSame(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
|
|
613
|
+
isSameOrAfter(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
|
|
614
|
+
isSameOrBefore(inp?: MomentInput, granularity?: unitOfTime.StartOf): boolean;
|
|
615
|
+
isBetween(a: MomentInput, b: MomentInput, granularity?: unitOfTime.StartOf, inclusivity?: "()" | "[)" | "(]" | "[]"): boolean;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* @deprecated as of 2.8.0, use locale
|
|
619
|
+
*/
|
|
620
|
+
lang(language: LocaleSpecifier): Moment;
|
|
621
|
+
/**
|
|
622
|
+
* @deprecated as of 2.8.0, use locale
|
|
623
|
+
*/
|
|
624
|
+
lang(): Locale;
|
|
625
|
+
|
|
626
|
+
locale(): string;
|
|
627
|
+
locale(locale: LocaleSpecifier): Moment;
|
|
628
|
+
|
|
629
|
+
localeData(): Locale;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* @deprecated no reliable implementation
|
|
633
|
+
*/
|
|
634
|
+
isDSTShifted(): boolean;
|
|
635
|
+
|
|
636
|
+
// NOTE(constructor): Same as moment constructor
|
|
637
|
+
/**
|
|
638
|
+
* @deprecated as of 2.7.0, use moment.min/max
|
|
639
|
+
*/
|
|
640
|
+
max(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
|
|
641
|
+
/**
|
|
642
|
+
* @deprecated as of 2.7.0, use moment.min/max
|
|
643
|
+
*/
|
|
644
|
+
max(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
|
|
645
|
+
|
|
646
|
+
// NOTE(constructor): Same as moment constructor
|
|
647
|
+
/**
|
|
648
|
+
* @deprecated as of 2.7.0, use moment.min/max
|
|
649
|
+
*/
|
|
650
|
+
min(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
|
|
651
|
+
/**
|
|
652
|
+
* @deprecated as of 2.7.0, use moment.min/max
|
|
653
|
+
*/
|
|
654
|
+
min(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
|
|
655
|
+
|
|
656
|
+
get(unit: unitOfTime.All): number;
|
|
657
|
+
set(unit: unitOfTime.All, value: number): Moment;
|
|
658
|
+
set(objectLiteral: MomentSetObject): Moment;
|
|
659
|
+
|
|
660
|
+
toObject(): MomentObjectOutput;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
export var version: string;
|
|
664
|
+
export var fn: Moment;
|
|
665
|
+
|
|
666
|
+
// NOTE(constructor): Same as moment constructor
|
|
667
|
+
/**
|
|
668
|
+
* @param strict Strict parsing disables the deprecated fallback to the native Date constructor when
|
|
669
|
+
* parsing a string.
|
|
670
|
+
*/
|
|
671
|
+
export function utc(inp?: MomentInput, strict?: boolean): Moment;
|
|
672
|
+
/**
|
|
673
|
+
* @param strict Strict parsing requires that the format and input match exactly, including delimiters.
|
|
674
|
+
* Strict parsing is frequently the best parsing option. For more information about choosing strict vs
|
|
675
|
+
* forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
|
|
676
|
+
*/
|
|
677
|
+
export function utc(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
|
|
678
|
+
/**
|
|
679
|
+
* @param strict Strict parsing requires that the format and input match exactly, including delimiters.
|
|
680
|
+
* Strict parsing is frequently the best parsing option. For more information about choosing strict vs
|
|
681
|
+
* forgiving parsing, see the [parsing guide](https://momentjs.com/guides/#/parsing/).
|
|
682
|
+
*/
|
|
683
|
+
export function utc(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
|
|
684
|
+
|
|
685
|
+
export function unix(timestamp: number): Moment;
|
|
686
|
+
|
|
687
|
+
export function invalid(flags?: MomentParsingFlagsOpt): Moment;
|
|
688
|
+
export function isMoment(m: any): m is Moment;
|
|
689
|
+
export function isDate(m: any): m is Date;
|
|
690
|
+
export function isDuration(d: any): d is Duration;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* @deprecated in 2.8.0
|
|
694
|
+
*/
|
|
695
|
+
export function lang(language?: string): string;
|
|
696
|
+
/**
|
|
697
|
+
* @deprecated in 2.8.0
|
|
698
|
+
*/
|
|
699
|
+
export function lang(language?: string, definition?: Locale): string;
|
|
700
|
+
|
|
701
|
+
export function locale(language?: string): string;
|
|
702
|
+
export function locale(language?: string[]): string;
|
|
703
|
+
export function locale(language?: string, definition?: LocaleSpecification | void): string; // null | undefined
|
|
704
|
+
|
|
705
|
+
export function localeData(key?: string | string[]): Locale;
|
|
706
|
+
|
|
707
|
+
export function duration(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration;
|
|
708
|
+
|
|
709
|
+
// NOTE(constructor): Same as moment constructor
|
|
710
|
+
export function parseZone(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
|
|
711
|
+
export function parseZone(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
|
|
712
|
+
|
|
713
|
+
export function months(): string[];
|
|
714
|
+
export function months(index: number): string;
|
|
715
|
+
export function months(format: string): string[];
|
|
716
|
+
export function months(format: string, index: number): string;
|
|
717
|
+
export function monthsShort(): string[];
|
|
718
|
+
export function monthsShort(index: number): string;
|
|
719
|
+
export function monthsShort(format: string): string[];
|
|
720
|
+
export function monthsShort(format: string, index: number): string;
|
|
721
|
+
|
|
722
|
+
export function weekdays(): string[];
|
|
723
|
+
export function weekdays(index: number): string;
|
|
724
|
+
export function weekdays(format: string): string[];
|
|
725
|
+
export function weekdays(format: string, index: number): string;
|
|
726
|
+
export function weekdays(localeSorted: boolean): string[];
|
|
727
|
+
export function weekdays(localeSorted: boolean, index: number): string;
|
|
728
|
+
export function weekdays(localeSorted: boolean, format: string): string[];
|
|
729
|
+
export function weekdays(localeSorted: boolean, format: string, index: number): string;
|
|
730
|
+
export function weekdaysShort(): string[];
|
|
731
|
+
export function weekdaysShort(index: number): string;
|
|
732
|
+
export function weekdaysShort(format: string): string[];
|
|
733
|
+
export function weekdaysShort(format: string, index: number): string;
|
|
734
|
+
export function weekdaysShort(localeSorted: boolean): string[];
|
|
735
|
+
export function weekdaysShort(localeSorted: boolean, index: number): string;
|
|
736
|
+
export function weekdaysShort(localeSorted: boolean, format: string): string[];
|
|
737
|
+
export function weekdaysShort(localeSorted: boolean, format: string, index: number): string;
|
|
738
|
+
export function weekdaysMin(): string[];
|
|
739
|
+
export function weekdaysMin(index: number): string;
|
|
740
|
+
export function weekdaysMin(format: string): string[];
|
|
741
|
+
export function weekdaysMin(format: string, index: number): string;
|
|
742
|
+
export function weekdaysMin(localeSorted: boolean): string[];
|
|
743
|
+
export function weekdaysMin(localeSorted: boolean, index: number): string;
|
|
744
|
+
export function weekdaysMin(localeSorted: boolean, format: string): string[];
|
|
745
|
+
export function weekdaysMin(localeSorted: boolean, format: string, index: number): string;
|
|
746
|
+
|
|
747
|
+
export function min(moments: Moment[]): Moment;
|
|
748
|
+
export function min(...moments: Moment[]): Moment;
|
|
749
|
+
export function max(moments: Moment[]): Moment;
|
|
750
|
+
export function max(...moments: Moment[]): Moment;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Returns unix time in milliseconds. Overwrite for profit.
|
|
754
|
+
*/
|
|
755
|
+
export function now(): number;
|
|
756
|
+
|
|
757
|
+
export function defineLocale(language: string, localeSpec: LocaleSpecification | void): Locale; // null
|
|
758
|
+
export function updateLocale(language: string, localeSpec: LocaleSpecification | void): Locale; // null
|
|
759
|
+
|
|
760
|
+
export function locales(): string[];
|
|
761
|
+
|
|
762
|
+
export function normalizeUnits(unit: unitOfTime.All): string;
|
|
763
|
+
export function relativeTimeThreshold(threshold: string): number | boolean;
|
|
764
|
+
export function relativeTimeThreshold(threshold: string, limit: number): boolean;
|
|
765
|
+
export function relativeTimeRounding(fn: (num: number) => number): boolean;
|
|
766
|
+
export function relativeTimeRounding(): (num: number) => number;
|
|
767
|
+
export function calendarFormat(m: Moment, now: Moment): string;
|
|
768
|
+
|
|
769
|
+
export function parseTwoDigitYear(input: string): number;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Constant used to enable explicit ISO_8601 format parsing.
|
|
773
|
+
*/
|
|
774
|
+
export var ISO_8601: MomentBuiltinFormat;
|
|
775
|
+
export var RFC_2822: MomentBuiltinFormat;
|
|
776
|
+
|
|
777
|
+
export var defaultFormat: string;
|
|
778
|
+
export var defaultFormatUtc: string;
|
|
779
|
+
export var suppressDeprecationWarnings: boolean;
|
|
780
|
+
export var deprecationHandler: ((name: string | void, msg: string) => void) | void;
|
|
781
|
+
|
|
782
|
+
export var HTML5_FMT: {
|
|
783
|
+
DATETIME_LOCAL: string,
|
|
784
|
+
DATETIME_LOCAL_SECONDS: string,
|
|
785
|
+
DATETIME_LOCAL_MS: string,
|
|
786
|
+
DATE: string,
|
|
787
|
+
TIME: string,
|
|
788
|
+
TIME_SECONDS: string,
|
|
789
|
+
TIME_MS: string,
|
|
790
|
+
WEEK: string,
|
|
791
|
+
MONTH: string
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
// Type definitions for moment-timezone.js 0.5
|
|
797
|
+
// Project: http://momentjs.com/timezone/
|
|
798
|
+
// Definitions by: Michel Salib <https://github.com/michelsalib>
|
|
799
|
+
// Alan Brazil Lins <https://github.com/alanblins>
|
|
800
|
+
// Agustin Carrasco <https://github.com/asermax>
|
|
801
|
+
// Borys Kupar <https://github.com/borys-kupar>
|
|
802
|
+
// Anthony Rainer <https://github.com/pristinesource>
|
|
803
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
804
|
+
// Migrated here from DefinitelyTyped in release moment-timezone@0.5.30
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
declare module 'moment' {
|
|
809
|
+
interface MomentZone {
|
|
810
|
+
name: string;
|
|
811
|
+
abbrs: string[];
|
|
812
|
+
untils: number[];
|
|
813
|
+
offsets: number[];
|
|
814
|
+
population: number;
|
|
815
|
+
|
|
816
|
+
abbr(timestamp: number): string;
|
|
817
|
+
offset(timestamp: number): number;
|
|
818
|
+
utcOffset(timestamp: number): number;
|
|
819
|
+
parse(timestamp: number): number;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
interface MomentZoneOffset {
|
|
823
|
+
name: string;
|
|
824
|
+
offset: number;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
interface MomentTimezone {
|
|
828
|
+
(): moment.Moment;
|
|
829
|
+
(timezone: string): moment.Moment;
|
|
830
|
+
(date: number, timezone: string): moment.Moment;
|
|
831
|
+
(date: number[], timezone: string): moment.Moment;
|
|
832
|
+
(date: string, timezone: string): moment.Moment;
|
|
833
|
+
(date: string, format: moment.MomentFormatSpecification, timezone: string): moment.Moment;
|
|
834
|
+
(date: string, format: moment.MomentFormatSpecification, strict: boolean, timezone: string): moment.Moment;
|
|
835
|
+
(date: string, format: moment.MomentFormatSpecification, language: string, timezone: string): moment.Moment;
|
|
836
|
+
(date: string, format: moment.MomentFormatSpecification, language: string, strict: boolean, timezone: string): moment.Moment;
|
|
837
|
+
(date: Date, timezone: string): moment.Moment;
|
|
838
|
+
(date: moment.Moment, timezone: string): moment.Moment;
|
|
839
|
+
(date: any, timezone: string): moment.Moment;
|
|
840
|
+
|
|
841
|
+
zone(timezone: string): MomentZone | null;
|
|
842
|
+
|
|
843
|
+
add(packedZoneString: string): void;
|
|
844
|
+
add(packedZoneString: string[]): void;
|
|
845
|
+
|
|
846
|
+
link(packedLinkString: string): void;
|
|
847
|
+
link(packedLinkString: string[]): void;
|
|
848
|
+
|
|
849
|
+
load(data: { version: string; links: string[]; zones: string[] }): void;
|
|
850
|
+
|
|
851
|
+
names(): string[];
|
|
852
|
+
zonesForCountry<T extends true>(country: string, with_offset: T): T extends true ? MomentZoneOffset[] : never;
|
|
853
|
+
zonesForCountry<T extends false>(country: string, with_offset?: T): T extends false ? string[] : never;
|
|
854
|
+
zonesForCountry(country: string, with_offset?: boolean): MomentZoneOffset[] | string[];
|
|
855
|
+
countries(): string[];
|
|
856
|
+
guess(ignoreCache?: boolean): string;
|
|
857
|
+
|
|
858
|
+
setDefault(timezone?: string): Moment;
|
|
859
|
+
dataVersion: string;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
interface Moment {
|
|
863
|
+
tz(): string | undefined;
|
|
864
|
+
tz(timezone: string, keepLocalTime?: boolean): moment.Moment;
|
|
865
|
+
zoneAbbr(): string;
|
|
866
|
+
zoneName(): string;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
const tz: MomentTimezone;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export { moment as m };
|