reslib 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +298 -0
- package/build/auth/index.d.ts +2034 -0
- package/build/auth/index.js +5 -0
- package/build/auth/types.d.ts +465 -0
- package/build/auth/types.js +1 -0
- package/build/countries/countries.d.ts +1454 -0
- package/build/countries/countries.js +1 -0
- package/build/countries/index.d.ts +159 -0
- package/build/countries/index.js +5 -0
- package/build/countries/types.d.ts +65 -0
- package/build/countries/types.js +1 -0
- package/build/currency/currencies.d.ts +8 -0
- package/build/currency/currencies.js +1 -0
- package/build/currency/index.d.ts +51 -0
- package/build/currency/index.js +5 -0
- package/build/currency/session.d.ts +23 -0
- package/build/currency/session.js +5 -0
- package/build/currency/types.d.ts +1039 -0
- package/build/currency/types.js +1 -0
- package/build/currency/utils.d.ts +25 -0
- package/build/currency/utils.js +1 -0
- package/build/i18n/index.d.ts +640 -0
- package/build/i18n/index.js +5 -0
- package/build/inputFormatter/index.d.ts +396 -0
- package/build/inputFormatter/index.js +5 -0
- package/build/inputFormatter/types.d.ts +544 -0
- package/build/inputFormatter/types.js +1 -0
- package/build/logger/index.d.ts +235 -0
- package/build/logger/index.js +5 -0
- package/build/observable/index.d.ts +329 -0
- package/build/observable/index.js +1 -0
- package/build/platform/index.d.ts +32 -0
- package/build/platform/index.js +1 -0
- package/build/resources/ResourcePaginationHelper.d.ts +537 -0
- package/build/resources/ResourcePaginationHelper.js +2 -0
- package/build/resources/decorators/create.decorator.d.ts +20 -0
- package/build/resources/decorators/create.decorator.js +1 -0
- package/build/resources/decorators/index.d.ts +41 -0
- package/build/resources/decorators/index.js +1 -0
- package/build/resources/fields/index.d.ts +33 -0
- package/build/resources/fields/index.js +1 -0
- package/build/resources/filters.d.ts +62 -0
- package/build/resources/filters.js +1 -0
- package/build/resources/index.d.ts +854 -0
- package/build/resources/index.js +6 -0
- package/build/resources/types/filters.d.ts +508 -0
- package/build/resources/types/filters.js +1 -0
- package/build/resources/types/index.d.ts +4138 -0
- package/build/resources/types/index.js +1 -0
- package/build/session/index.d.ts +1474 -0
- package/build/session/index.js +1 -0
- package/build/translations/auth.en.d.ts +3 -0
- package/build/translations/auth.en.js +1 -0
- package/build/translations/countries.en.d.ts +6 -0
- package/build/translations/countries.en.js +1 -0
- package/build/translations/currencies.en.d.ts +5 -0
- package/build/translations/currencies.en.js +1 -0
- package/build/translations/date.en.d.ts +19 -0
- package/build/translations/date.en.js +1 -0
- package/build/translations/index.d.ts +1583 -0
- package/build/translations/index.js +5 -0
- package/build/translations/resources.en.d.ts +6 -0
- package/build/translations/resources.en.js +1 -0
- package/build/translations/validator.en.d.ts +104 -0
- package/build/translations/validator.en.js +5 -0
- package/build/types/date.d.ts +44 -0
- package/build/types/date.js +1 -0
- package/build/types/dictionary.d.ts +29 -0
- package/build/types/dictionary.js +1 -0
- package/build/types/i18n.d.ts +121 -0
- package/build/types/i18n.js +1 -0
- package/build/types/index.d.ts +145 -0
- package/build/types/index.js +1 -0
- package/build/utils/areEquals.d.ts +19 -0
- package/build/utils/areEquals.js +1 -0
- package/build/utils/date/dateHelper.d.ts +371 -0
- package/build/utils/date/dateHelper.js +5 -0
- package/build/utils/date/index.d.ts +212 -0
- package/build/utils/date/index.js +5 -0
- package/build/utils/date/isDateObj.d.ts +14 -0
- package/build/utils/date/isDateObj.js +1 -0
- package/build/utils/debounce.d.ts +52 -0
- package/build/utils/debounce.js +1 -0
- package/build/utils/defaultArray.d.ts +18 -0
- package/build/utils/defaultArray.js +1 -0
- package/build/utils/defaultBool.d.ts +14 -0
- package/build/utils/defaultBool.js +1 -0
- package/build/utils/defaultStr.d.ts +17 -0
- package/build/utils/defaultStr.js +1 -0
- package/build/utils/defaultVal.d.ts +18 -0
- package/build/utils/defaultVal.js +1 -0
- package/build/utils/dom/index.d.ts +65 -0
- package/build/utils/dom/index.js +1 -0
- package/build/utils/dom/isDOMElement.d.ts +11 -0
- package/build/utils/dom/isDOMElement.js +1 -0
- package/build/utils/file/index.d.ts +26 -0
- package/build/utils/file/index.js +1 -0
- package/build/utils/global.d.ts +53 -0
- package/build/utils/global.js +1 -0
- package/build/utils/image.d.ts +56 -0
- package/build/utils/image.js +1 -0
- package/build/utils/index.d.ts +39 -0
- package/build/utils/index.js +6 -0
- package/build/utils/interpolate.d.ts +105 -0
- package/build/utils/interpolate.js +1 -0
- package/build/utils/isEmail.d.ts +57 -0
- package/build/utils/isEmail.js +1 -0
- package/build/utils/isEmpty.d.ts +18 -0
- package/build/utils/isEmpty.js +1 -0
- package/build/utils/isNonNullString.d.ts +17 -0
- package/build/utils/isNonNullString.js +1 -0
- package/build/utils/isNullable.d.ts +7 -0
- package/build/utils/isNullable.js +1 -0
- package/build/utils/isNumber.d.ts +36 -0
- package/build/utils/isNumber.js +1 -0
- package/build/utils/isPrimitive.d.ts +16 -0
- package/build/utils/isPrimitive.js +1 -0
- package/build/utils/isPromise.d.ts +14 -0
- package/build/utils/isPromise.js +1 -0
- package/build/utils/isRegex.d.ts +15 -0
- package/build/utils/isRegex.js +1 -0
- package/build/utils/isTime.d.ts +18 -0
- package/build/utils/isTime.js +1 -0
- package/build/utils/json.d.ts +224 -0
- package/build/utils/json.js +1 -0
- package/build/utils/numbers.d.ts +148 -0
- package/build/utils/numbers.js +5 -0
- package/build/utils/object.d.ts +567 -0
- package/build/utils/object.js +1 -0
- package/build/utils/sort.d.ts +67 -0
- package/build/utils/sort.js +1 -0
- package/build/utils/string.d.ts +165 -0
- package/build/utils/string.js +1 -0
- package/build/utils/stringify.d.ts +23 -0
- package/build/utils/stringify.js +1 -0
- package/build/utils/uniqid.d.ts +18 -0
- package/build/utils/uniqid.js +1 -0
- package/build/utils/uri/index.d.ts +333 -0
- package/build/utils/uri/index.js +2 -0
- package/build/validator/index.d.ts +4 -0
- package/build/validator/index.js +6 -0
- package/build/validator/rules/array.d.ts +848 -0
- package/build/validator/rules/array.js +5 -0
- package/build/validator/rules/boolean.d.ts +87 -0
- package/build/validator/rules/boolean.js +5 -0
- package/build/validator/rules/date.d.ts +551 -0
- package/build/validator/rules/date.js +5 -0
- package/build/validator/rules/default.d.ts +367 -0
- package/build/validator/rules/default.js +5 -0
- package/build/validator/rules/enum.d.ts +155 -0
- package/build/validator/rules/enum.js +5 -0
- package/build/validator/rules/file.d.ts +356 -0
- package/build/validator/rules/file.js +5 -0
- package/build/validator/rules/format.d.ts +2825 -0
- package/build/validator/rules/format.js +6 -0
- package/build/validator/rules/index.d.ts +16 -0
- package/build/validator/rules/index.js +6 -0
- package/build/validator/rules/multiRules.d.ts +475 -0
- package/build/validator/rules/multiRules.js +5 -0
- package/build/validator/rules/numeric.d.ts +1135 -0
- package/build/validator/rules/numeric.js +5 -0
- package/build/validator/rules/string.d.ts +504 -0
- package/build/validator/rules/string.js +5 -0
- package/build/validator/rules/target.d.ts +137 -0
- package/build/validator/rules/target.js +5 -0
- package/build/validator/rules/utils.d.ts +1 -0
- package/build/validator/rules/utils.js +1 -0
- package/build/validator/rulesMarkers.d.ts +11 -0
- package/build/validator/rulesMarkers.js +1 -0
- package/build/validator/types.d.ts +2906 -0
- package/build/validator/types.js +1 -0
- package/build/validator/validator.d.ts +3692 -0
- package/build/validator/validator.js +5 -0
- package/lib/cjs/auth.js +1 -0
- package/lib/cjs/countries.js +1 -0
- package/lib/cjs/currency.js +1 -0
- package/lib/cjs/i18n.js +1 -0
- package/lib/cjs/inputFormatter.js +1 -0
- package/lib/cjs/logger.js +1 -0
- package/lib/cjs/observable.js +1 -0
- package/lib/cjs/platform.js +1 -0
- package/lib/cjs/resources.js +1 -0
- package/lib/cjs/session.js +1 -0
- package/lib/cjs/types.js +1 -0
- package/lib/cjs/utils.js +1 -0
- package/lib/cjs/validator.js +1 -0
- package/lib/esm/auth.mjs +1 -0
- package/lib/esm/countries.mjs +1 -0
- package/lib/esm/currency.mjs +1 -0
- package/lib/esm/i18n.mjs +1 -0
- package/lib/esm/inputFormatter.mjs +1 -0
- package/lib/esm/logger.mjs +1 -0
- package/lib/esm/observable.mjs +1 -0
- package/lib/esm/platform.mjs +1 -0
- package/lib/esm/resources.mjs +1 -0
- package/lib/esm/session.mjs +1 -0
- package/lib/esm/types.mjs +1 -0
- package/lib/esm/utils.mjs +1 -0
- package/lib/esm/validator.mjs +1 -0
- package/package.json +244 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use strict';var e={AF:{code:"AF",dialCode:"93",name:"Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)",priority:0},AL:{code:"AL",dialCode:"355",name:"Albania (Shqip\xEBri)",priority:0},DZ:{code:"DZ",dialCode:"213",name:"Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)",priority:0},AS:{code:"AS",dialCode:"1684",name:"American Samoa",priority:0},AD:{code:"AD",dialCode:"376",name:"Andorra",priority:0},AO:{code:"AO",dialCode:"244",name:"Angola",priority:0},AI:{code:"AI",dialCode:"1264",name:"Anguilla",priority:0},AG:{code:"AG",dialCode:"1268",name:"Antigua and Barbuda",priority:0},AR:{code:"AR",dialCode:"54",name:"Argentina",priority:0},AM:{code:"AM",dialCode:"374",name:"Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)",priority:0},AW:{code:"AW",dialCode:"297",name:"Aruba",priority:0},AU:{code:"AU",dialCode:"61",name:"Australia",priority:0},AT:{code:"AT",dialCode:"43",name:"Austria (\xD6sterreich)",priority:0},AZ:{code:"AZ",dialCode:"994",name:"Azerbaijan (Az\u0259rbaycan)",priority:0},BS:{code:"BS",dialCode:"1242",name:"Bahamas",priority:0},BH:{code:"BH",dialCode:"973",name:"Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)",priority:0},BD:{code:"BD",dialCode:"880",name:"Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)",priority:0},BB:{code:"BB",dialCode:"1246",name:"Barbados",priority:0},BY:{code:"BY",dialCode:"375",name:"Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)",priority:0},BE:{code:"BE",dialCode:"32",name:"Belgium (Belgi\xEB)",priority:0},BZ:{code:"BZ",dialCode:"501",name:"Belize",priority:0},BJ:{code:"BJ",dialCode:"229",name:"Benin (B\xE9nin)",priority:0},BM:{code:"BM",dialCode:"1441",name:"Bermuda",priority:0},BT:{code:"BT",dialCode:"975",name:"Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)",priority:0},BO:{code:"BO",dialCode:"591",name:"Bolivia",priority:0},BA:{code:"BA",dialCode:"387",name:"Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)",priority:0},BW:{code:"BW",dialCode:"267",name:"Botswana",priority:0},BR:{code:"BR",dialCode:"55",name:"Brazil (Brasil)",priority:0},IO:{code:"IO",dialCode:"246",name:"British Indian Ocean Territory",priority:0},VG:{code:"VG",dialCode:"1284",name:"British Virgin Islands",priority:0},BN:{code:"BN",dialCode:"673",name:"Brunei",priority:0},BG:{code:"BG",dialCode:"359",name:"Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)",priority:0},BF:{code:"BF",dialCode:"226",name:"Burkina Faso",priority:0},BI:{code:"BI",dialCode:"257",name:"Burundi (Uburundi)",priority:0},KH:{code:"KH",dialCode:"855",name:"Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)",priority:0},CM:{code:"CM",dialCode:"237",name:"Cameroon (Cameroun)",priority:0},CA:{code:"CA",dialCode:"1",name:"Canada",priority:1},CV:{code:"CV",dialCode:"238",name:"Cape Verde (Kabu Verdi)",priority:0},BQ:{code:"BQ",dialCode:"599",name:"Caribbean Netherlands",priority:1},KY:{code:"KY",dialCode:"1345",name:"Cayman Islands",priority:0},CF:{code:"CF",dialCode:"236",name:"Central African Republic (R\xE9publique centrafricaine)",priority:0},TD:{code:"TD",dialCode:"235",name:"Chad (Tchad)",priority:0},CL:{code:"CL",dialCode:"56",name:"Chile",priority:0},CN:{code:"CN",dialCode:"86",name:"China (\u4E2D\u56FD)",priority:0},CX:{code:"CX",dialCode:"61",name:"Christmas Island",priority:2},CC:{code:"CC",dialCode:"61",name:"Cocos (Keeling) Islands",priority:1},CO:{code:"CO",dialCode:"57",name:"Colombia",priority:0},KM:{code:"KM",dialCode:"269",name:"Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)",priority:0},CD:{code:"CD",dialCode:"243",name:"Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)",priority:0},CG:{code:"CG",dialCode:"242",name:"Congo (Republic) (Congo-Brazzaville)",priority:0},CK:{code:"CK",dialCode:"682",name:"Cook Islands",priority:0},CR:{code:"CR",dialCode:"506",name:"Costa Rica",priority:0},CI:{code:"CI",dialCode:"225",name:"C\xF4te d\u2019Ivoire",priority:0},HR:{code:"HR",dialCode:"385",name:"Croatia (Hrvatska)",priority:0},CU:{code:"CU",dialCode:"53",name:"Cuba",priority:0},CW:{code:"CW",dialCode:"599",name:"Cura\xE7ao",priority:0},CY:{code:"CY",dialCode:"357",name:"Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)",priority:0},CZ:{code:"CZ",dialCode:"420",name:"Czech Republic (\u010Cesk\xE1 republika)",priority:0},DK:{code:"DK",dialCode:"45",name:"Denmark (Danmark)",priority:0},DJ:{code:"DJ",dialCode:"253",name:"Djibouti",priority:0},DM:{code:"DM",dialCode:"1767",name:"Dominica",priority:0},DO:{code:"DO",dialCode:"1",name:"Dominican Republic (Rep\xFAblica Dominicana)",priority:2},EC:{code:"EC",dialCode:"593",name:"Ecuador",priority:0},EG:{code:"EG",dialCode:"20",name:"Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)",priority:0},SV:{code:"SV",dialCode:"503",name:"El Salvador",priority:0},GQ:{code:"GQ",dialCode:"240",name:"Equatorial Guinea (Guinea Ecuatorial)",priority:0},ER:{code:"ER",dialCode:"291",name:"Eritrea",priority:0},EE:{code:"EE",dialCode:"372",name:"Estonia (Eesti)",priority:0},ET:{code:"ET",dialCode:"251",name:"Ethiopia",priority:0},FK:{code:"FK",dialCode:"500",name:"Falkland Islands (Islas Malvinas)",priority:0},FO:{code:"FO",dialCode:"298",name:"Faroe Islands (F\xF8royar)",priority:0},FJ:{code:"FJ",dialCode:"679",name:"Fiji",priority:0},FI:{code:"FI",dialCode:"358",name:"Finland (Suomi)",priority:0},FR:{code:"FR",dialCode:"33",name:"France",priority:0},GF:{code:"GF",dialCode:"594",name:"French Guiana (Guyane fran\xE7aise)",priority:0},PF:{code:"PF",dialCode:"689",name:"French Polynesia (Polyn\xE9sie fran\xE7aise)",priority:0},GA:{code:"GA",dialCode:"241",name:"Gabon",priority:0},GM:{code:"GM",dialCode:"220",name:"Gambia",priority:0},GE:{code:"GE",dialCode:"995",name:"Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)",priority:0},DE:{code:"DE",dialCode:"49",name:"Germany (Deutschland)",priority:0},GH:{code:"GH",dialCode:"233",name:"Ghana (Gaana)",priority:0},GI:{code:"GI",dialCode:"350",name:"Gibraltar",priority:0},GR:{code:"GR",dialCode:"30",name:"Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)",priority:0},GL:{code:"GL",dialCode:"299",name:"Greenland (Kalaallit Nunaat)",priority:0},GD:{code:"GD",dialCode:"1473",name:"Grenada",priority:0},GP:{code:"GP",dialCode:"590",name:"Guadeloupe",priority:0},GU:{code:"GU",dialCode:"1671",name:"Guam",priority:0},GT:{code:"GT",dialCode:"502",name:"Guatemala",priority:0},GG:{code:"GG",dialCode:"44",name:"Guernsey",priority:1},GN:{code:"GN",dialCode:"224",name:"Guinea (Guin\xE9e)",priority:0},GW:{code:"GW",dialCode:"245",name:"Guinea-Bissau (Guin\xE9 Bissau)",priority:0},GY:{code:"GY",dialCode:"592",name:"Guyana",priority:0},HT:{code:"HT",dialCode:"509",name:"Haiti",priority:0},HN:{code:"HN",dialCode:"504",name:"Honduras",priority:0},HK:{code:"HK",dialCode:"852",name:"Hong Kong (\u9999\u6E2F)",priority:0},HU:{code:"HU",dialCode:"36",name:"Hungary (Magyarorsz\xE1g)",priority:0},IS:{code:"IS",dialCode:"354",name:"Iceland (\xCDsland)",priority:0},IN:{code:"IN",dialCode:"91",name:"India (\u092D\u093E\u0930\u0924)",priority:0},ID:{code:"ID",dialCode:"62",name:"Indonesia",priority:0},IR:{code:"IR",dialCode:"98",name:"Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)",priority:0},IQ:{code:"IQ",dialCode:"964",name:"Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)",priority:0},IE:{code:"IE",dialCode:"353",name:"Ireland",priority:0},IM:{code:"IM",dialCode:"44",name:"Isle of Man",priority:2},IL:{code:"IL",dialCode:"972",name:"Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)",priority:0},IT:{code:"IT",dialCode:"39",name:"Italy (Italia)",priority:0},JM:{code:"JM",dialCode:"1876",name:"Jamaica",priority:0},JP:{code:"JP",dialCode:"81",name:"Japan (\u65E5\u672C)",priority:0},JE:{code:"JE",dialCode:"44",name:"Jersey",priority:3},JO:{code:"JO",dialCode:"962",name:"Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)",priority:0},KZ:{code:"KZ",dialCode:"77",name:"Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)",priority:1},KE:{code:"KE",dialCode:"254",name:"Kenya",priority:0},KI:{code:"KI",dialCode:"686",name:"Kiribati",priority:0},KW:{code:"KW",dialCode:"965",name:"Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)",priority:0},KG:{code:"KG",dialCode:"996",name:"Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)",priority:0},LA:{code:"LA",dialCode:"856",name:"Laos (\u0EA5\u0EB2\u0EA7)",priority:0},LV:{code:"LV",dialCode:"371",name:"Latvia (Latvija)",priority:0},LB:{code:"LB",dialCode:"961",name:"Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)",priority:0},LS:{code:"LS",dialCode:"266",name:"Lesotho",priority:0},LR:{code:"LR",dialCode:"231",name:"Liberia",priority:0},LY:{code:"LY",dialCode:"218",name:"Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)",priority:0},LI:{code:"LI",dialCode:"423",name:"Liechtenstein",priority:0},LT:{code:"LT",dialCode:"370",name:"Lithuania (Lietuva)",priority:0},LU:{code:"LU",dialCode:"352",name:"Luxembourg",priority:0},MO:{code:"MO",dialCode:"853",name:"Macau (\u6FB3\u9580)",priority:0},MK:{code:"MK",dialCode:"389",name:"Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)",priority:0},MG:{code:"MG",dialCode:"261",name:"Madagascar (Madagasikara)",priority:0},MW:{code:"MW",dialCode:"265",name:"Malawi",priority:0},MY:{code:"MY",dialCode:"60",name:"Malaysia",priority:0},MV:{code:"MV",dialCode:"960",name:"Maldives",priority:0},ML:{code:"ML",dialCode:"223",name:"Mali",priority:0},MT:{code:"MT",dialCode:"356",name:"Malta",priority:0},MH:{code:"MH",dialCode:"692",name:"Marshall Islands",priority:0},MQ:{code:"MQ",dialCode:"596",name:"Martinique",priority:0},MR:{code:"MR",dialCode:"222",name:"Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)",priority:0},MU:{code:"MU",dialCode:"230",name:"Mauritius (Moris)",priority:0},YT:{code:"YT",dialCode:"262",name:"Mayotte",priority:1},MX:{code:"MX",dialCode:"52",name:"Mexico (M\xE9xico)",priority:0},FM:{code:"FM",dialCode:"691",name:"Micronesia",priority:0},MD:{code:"MD",dialCode:"373",name:"Moldova (Republica Moldova)",priority:0},MC:{code:"MC",dialCode:"377",name:"Monaco",priority:0},MN:{code:"MN",dialCode:"976",name:"Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)",priority:0},ME:{code:"ME",dialCode:"382",name:"Montenegro (Crna Gora)",priority:0},MS:{code:"MS",dialCode:"1664",name:"Montserrat",priority:0},MA:{code:"MA",dialCode:"212",name:"Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)",priority:0},MZ:{code:"MZ",dialCode:"258",name:"Mozambique (Mo\xE7ambique)",priority:0},MM:{code:"MM",dialCode:"95",name:"Myanmar (Burma)",priority:0},NA:{code:"NA",dialCode:"264",name:"Namibia (Namibi\xEB)",priority:0},NR:{code:"NR",dialCode:"674",name:"Nauru",priority:0},NP:{code:"NP",dialCode:"977",name:"Nepal (\u0928\u0947\u092A\u093E\u0932)",priority:0},NL:{code:"NL",dialCode:"31",name:"Netherlands (Nederland)",priority:0},NC:{code:"NC",dialCode:"687",name:"New Caledonia (Nouvelle-Cal\xE9donie)",priority:0},NZ:{code:"NZ",dialCode:"64",name:"New Zealand",priority:0},NI:{code:"NI",dialCode:"505",name:"Nicaragua",priority:0},NE:{code:"NE",dialCode:"227",name:"Niger (Nijar)",priority:0},NG:{code:"NG",dialCode:"234",name:"Nigeria",priority:0},NU:{code:"NU",dialCode:"683",name:"Niue",priority:0},NF:{code:"NF",dialCode:"672",name:"Norfolk Island",priority:0},KP:{code:"KP",dialCode:"850",name:"North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)",priority:0},MP:{code:"MP",dialCode:"1670",name:"Northern Mariana Islands",priority:0},NO:{code:"NO",dialCode:"47",name:"Norway (Norge)",priority:0},OM:{code:"OM",dialCode:"968",name:"Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)",priority:0},PK:{code:"PK",dialCode:"92",name:"Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)",priority:0},PW:{code:"PW",dialCode:"680",name:"Palau",priority:0},PS:{code:"PS",dialCode:"970",name:"Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)",priority:0},PA:{code:"PA",dialCode:"507",name:"Panama (Panam\xE1)",priority:0},PG:{code:"PG",dialCode:"675",name:"Papua New Guinea",priority:0},PY:{code:"PY",dialCode:"595",name:"Paraguay",priority:0},PE:{code:"PE",dialCode:"51",name:"Peru (Per\xFA)",priority:0},PH:{code:"PH",dialCode:"63",name:"Philippines",priority:0},PL:{code:"PL",dialCode:"48",name:"Poland (Polska)",priority:0},PT:{code:"PT",dialCode:"351",name:"Portugal",priority:0},PR:{code:"PR",dialCode:"1",name:"Puerto Rico",priority:3},QA:{code:"QA",dialCode:"974",name:"Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)",priority:0},RE:{code:"RE",dialCode:"262",name:"R\xE9union (La R\xE9union)",priority:0},RO:{code:"RO",dialCode:"40",name:"Romania (Rom\xE2nia)",priority:0},RU:{code:"RU",dialCode:"7",name:"Russia (\u0420\u043E\u0441\u0441\u0438\u044F)",priority:0},RW:{code:"RW",dialCode:"250",name:"Rwanda",priority:0},BL:{code:"BL",dialCode:"590",name:"Saint Barth\xE9lemy (Saint-Barth\xE9lemy)",priority:1},SH:{code:"SH",dialCode:"290",name:"Saint Helena",priority:0},KN:{code:"KN",dialCode:"1869",name:"Saint Kitts and Nevis",priority:0},LC:{code:"LC",dialCode:"1758",name:"Saint Lucia",priority:0},MF:{code:"MF",dialCode:"590",name:"Saint Martin (Saint-Martin (partie fran\xE7aise))",priority:2},PM:{code:"PM",dialCode:"508",name:"Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)",priority:0},VC:{code:"VC",dialCode:"1784",name:"Saint Vincent and the Grenadines",priority:0},WS:{code:"WS",dialCode:"685",name:"Samoa",priority:0},SM:{code:"SM",dialCode:"378",name:"San Marino",priority:0},ST:{code:"ST",dialCode:"239",name:"S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)",priority:0},SA:{code:"SA",dialCode:"966",name:"Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)",priority:0},SN:{code:"SN",dialCode:"221",name:"Senegal (S\xE9n\xE9gal)",priority:0},RS:{code:"RS",dialCode:"381",name:"Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)",priority:0},SC:{code:"SC",dialCode:"248",name:"Seychelles",priority:0},SL:{code:"SL",dialCode:"232",name:"Sierra Leone",priority:0},SG:{code:"SG",dialCode:"65",name:"Singapore",priority:0},SX:{code:"SX",dialCode:"1721",name:"Sint Maarten",priority:0},SK:{code:"SK",dialCode:"421",name:"Slovakia (Slovensko)",priority:0},SI:{code:"SI",dialCode:"386",name:"Slovenia (Slovenija)",priority:0},SB:{code:"SB",dialCode:"677",name:"Solomon Islands",priority:0},SO:{code:"SO",dialCode:"252",name:"Somalia (Soomaaliya)",priority:0},ZA:{code:"ZA",dialCode:"27",name:"South Africa",priority:0},KR:{code:"KR",dialCode:"82",name:"South Korea (\uB300\uD55C\uBBFC\uAD6D)",priority:0},SS:{code:"SS",dialCode:"211",name:"South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",priority:0},ES:{code:"ES",dialCode:"34",name:"Spain (Espa\xF1a)",priority:0},LK:{code:"LK",dialCode:"94",name:"Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)",priority:0},SD:{code:"SD",dialCode:"249",name:"Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",priority:0},SR:{code:"SR",dialCode:"597",name:"Suriname",priority:0},SJ:{code:"SJ",dialCode:"47",name:"Svalbard and Jan Mayen",priority:1},SZ:{code:"SZ",dialCode:"268",name:"Swaziland",priority:0},SE:{code:"SE",dialCode:"46",name:"Sweden (Sverige)",priority:0},CH:{code:"CH",dialCode:"41",name:"Switzerland (Schweiz)",priority:0},SY:{code:"SY",dialCode:"963",name:"Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)",priority:0},TW:{code:"TW",dialCode:"886",name:"Taiwan (\u53F0\u7063)",priority:0},TJ:{code:"TJ",dialCode:"992",name:"Tajikistan",priority:0},TZ:{code:"TZ",dialCode:"255",name:"Tanzania",priority:0},TH:{code:"TH",dialCode:"66",name:"Thailand (\u0E44\u0E17\u0E22)",priority:0},TL:{code:"TL",dialCode:"670",name:"Timor-Leste",priority:0},TG:{code:"TG",dialCode:"228",name:"Togo",priority:0},TK:{code:"TK",dialCode:"690",name:"Tokelau",priority:0},TO:{code:"TO",dialCode:"676",name:"Tonga",priority:0},TT:{code:"TT",dialCode:"1868",name:"Trinidad and Tobago",priority:0},TN:{code:"TN",dialCode:"216",name:"Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)",priority:0},TR:{code:"TR",dialCode:"90",name:"Turkey (T\xFCrkiye)",priority:0},TM:{code:"TM",dialCode:"993",name:"Turkmenistan",priority:0},TC:{code:"TC",dialCode:"1649",name:"Turks and Caicos Islands",priority:0},TV:{code:"TV",dialCode:"688",name:"Tuvalu",priority:0},VI:{code:"VI",dialCode:"1340",name:"U.S. Virgin Islands",priority:0},UG:{code:"UG",dialCode:"256",name:"Uganda",priority:0},UA:{code:"UA",dialCode:"380",name:"Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)",priority:0},AE:{code:"AE",dialCode:"971",name:"United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)",priority:0},GB:{code:"GB",dialCode:"44",name:"United Kingdom",priority:0},US:{code:"US",dialCode:"1",name:"United States",priority:0},UY:{code:"UY",dialCode:"598",name:"Uruguay",priority:0},UZ:{code:"UZ",dialCode:"998",name:"Uzbekistan (O\u02BBzbekiston)",priority:0},VU:{code:"VU",dialCode:"678",name:"Vanuatu",priority:0},VA:{code:"VA",dialCode:"39",name:"Vatican City (Citt\xE0 del Vaticano)",priority:1},VE:{code:"VE",dialCode:"58",name:"Venezuela",priority:0},VN:{code:"VN",dialCode:"84",name:"Vietnam (Vi\u1EC7t Nam)",priority:0},WF:{code:"WF",dialCode:"681",name:"Wallis and Futuna",priority:0},EH:{code:"EH",dialCode:"212",name:"Western Sahara (\u202B\u0627\u0644\u0635\u062D\u0631\u0627\u0621 \u0627\u0644\u063A\u0631\u0628\u064A\u0629\u202C\u200E)",priority:1},YE:{code:"YE",dialCode:"967",name:"Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)",priority:0},ZM:{code:"ZM",dialCode:"260",name:"Zambia",priority:0},ZW:{code:"ZW",dialCode:"263",name:"Zimbabwe",priority:0},AX:{code:"AX",dialCode:"358",name:"\xC5land Islands",priority:1}};var i={invalidSignInUser:"Invalid user provided to sign in"};var a={thousandSeparator:",",decimalSeparator:".",decimalDigits:2};var d={defaultDateFormat:"YYYY-MM-DD",defaultTimeFormat:"HH:mm",defaultDateTimeFormat:"YYYY-MM-DD HH:mm",invalidDate:"Invalid date",invalidTime:"Invalid time",invalidDateTime:"Invalid date and time",today:"Today",yesterday:"Yesterday",tomorrow:"Tomorrow",selectedDate:"Selected date",selectedTime:"Selected time",selectedDateTime:"Selected date and time"};var o={};var r={separators:{multiple:", ",single:", "},failedForNFields:{one:"Validation failed for one field",other:"Validation failed for %{count} fields"},failedForNItems:{one:"Validation failed for one item",other:"Validation failed for %{count} items"},multipleOf:"This field must be a multiple of %{multipleOf}",invalidRule:"Invalid validation rule: %{rule}",invalidRuleParams:"Invalid parameters for rule %{rule}; params: %{ruleParams[0]}, %{ruleParams[1]}, ...",invalidMessage:"Invalid validation message for rule %{rule}; error validating value %{value}",invalidEnumValue:"The field %{field} must be one of %{expectedValues}",required:"This field is required",minLength:"This field must be at least %{minLength} characters long",maxLength:"This field must be at most %{maxLength} characters long",minValue:"This field must be at least %{minValue}",maxValue:"This field must be at most %{maxValue}",pattern:"This field must match the pattern %{pattern}",email:"This field must be a valid email address",url:"This field must be a valid URL",date:"This field must be a valid date",time:"This field must be a valid time",datetime:"This field must be a valid date and time","datetime-local":"This field must be a valid date and time",month:"This field must be a valid month",week:"This field must be a valid week",number:"This field must be a valid number",integer:"This field must be a valid integer",evenNumber:"This field must be an even integer",oddNumber:"This field must be an odd integer",float:"This field must be a valid float",fileName:"This field must be a valid file name",isNumber:"This field must be a valid number",isNonNullString:"This field must be a non null string",length:"This field must be exactly %{length} characters long",lengthRange:"This field must be between %{minLength} and %{maxLength} characters long",numberLTE:"This field must be less than or equal to %{ruleParams[0]}",numberLT:"This field must be less than %{ruleParams[0]}",numberGTE:"This field must be greater than or equal to %{ruleParams[0]}",numberGT:"This field must be greater than %{ruleParams[0]}",noteEquals:"This field must be different from %{ruleParams[0]}",numberIsDifferentFrom:"This field must be different from %{ruleParams[0]}",numberEquals:"This field must be equal to %{ruleParams[0]}",phoneNumber:"This field must be a valid phone number",emailOrPhoneNumber:"This field must be a valid email or phone number",boolean:"This field must be a valid boolean value",numberBetween:"This field must be between %{min} and %{max}",decimalCount:"This field must have(at least) %{ruleParams[0]} decimal places or/and at most %{ruleParams[1]} decimal places",decimalPlaces:"This field must have exactly %{places} decimal places",string:"This field must be a string",endsWithOneOf:"This field must end with one of the following values: %{endings}",startsWithOneOf:"This field must start with one of the following values: %{prefixes}",array:"This field must be an array",arrayMinLength:"This field must have at least %{minLength} items",arrayMaxLength:"This field must have at most %{maxLength} items",arrayLength:"This field must have exactly %{length} items",arrayContains:"This field must contain all of the following values: %{requiredValues}",arrayUnique:"This field must contain only unique values",arrayAllStrings:"This field must be an array of strings",arrayAllNumbers:"This field must be an array of numbers",arrayOf:`The field %{fieldName} must be an array where each item matches all the specified rules. Errors:
|
|
2
|
+
%{failedRulesErrors}`,oneOf:`The field %{fieldName} must match at least one of the following validation rules:
|
|
3
|
+
%{failedRulesErrors}`,allOf:`The field %{fieldName} must match all of the following validation rules:
|
|
4
|
+
%{failedRulesErrors}`,validateNested:`The field %{fieldName} must be a valid nested object. Errors:
|
|
5
|
+
%{nestedErrors}`,validateNestedInvalidType:"The field %{fieldName} must be an object, but received %{receivedType}",dateAfter:"This field must be after %{date}",dateBefore:"This field must be before %{date}",dateBetween:"This field must be between %{startDate} and %{endDate}",dateEquals:"This field must be equal to %{date}",futureDate:"This field must be a date in the future",pastDate:"This field must be a date in the past",file:"This field must be a valid file",fileSize:"This field must not exceed %{maxSize} bytes",fileType:"This field must be one of the following types: %{allowedTypes}",image:"This field must be a valid image file",fileExtension:"This field must have one of the following extensions: %{allowedExtensions}",minFileSize:"This field must be at least %{minSize} bytes",uuid:"This field must be a valid UUID",json:"This field must be valid JSON",base64:"This field must be valid Base64 encoded data",hexColor:"This field must be a valid hexadecimal color code",creditCard:"This field must be a valid credit card number",ip:"This field must be a valid IP address (version %{version})",macAddress:"This field must be a valid MAC address",matches:"This field must match the pattern %{pattern}",tests:{entity:{name:"Name",id:"Id",email:"Email",aString:"A String",url:"Url",note:"Note",createdAt:"Created At",updatedAt:"Updated At"}}};var T={auth:i,currencies:a,countries:e,dates:d,resources:o,validator:r};exports.en=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var e={};exports.resources=e;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export declare const validator: {
|
|
2
|
+
separators: {
|
|
3
|
+
multiple: string;
|
|
4
|
+
single: string;
|
|
5
|
+
};
|
|
6
|
+
failedForNFields: {
|
|
7
|
+
one: string;
|
|
8
|
+
other: string;
|
|
9
|
+
};
|
|
10
|
+
failedForNItems: {
|
|
11
|
+
one: string;
|
|
12
|
+
other: string;
|
|
13
|
+
};
|
|
14
|
+
multipleOf: string;
|
|
15
|
+
invalidRule: string;
|
|
16
|
+
invalidRuleParams: string;
|
|
17
|
+
invalidMessage: string;
|
|
18
|
+
invalidEnumValue: string;
|
|
19
|
+
required: string;
|
|
20
|
+
minLength: string;
|
|
21
|
+
maxLength: string;
|
|
22
|
+
minValue: string;
|
|
23
|
+
maxValue: string;
|
|
24
|
+
pattern: string;
|
|
25
|
+
email: string;
|
|
26
|
+
url: string;
|
|
27
|
+
date: string;
|
|
28
|
+
time: string;
|
|
29
|
+
datetime: string;
|
|
30
|
+
'datetime-local': string;
|
|
31
|
+
month: string;
|
|
32
|
+
week: string;
|
|
33
|
+
number: string;
|
|
34
|
+
integer: string;
|
|
35
|
+
evenNumber: string;
|
|
36
|
+
oddNumber: string;
|
|
37
|
+
float: string;
|
|
38
|
+
fileName: string;
|
|
39
|
+
isNumber: string;
|
|
40
|
+
isNonNullString: string;
|
|
41
|
+
length: string;
|
|
42
|
+
lengthRange: string;
|
|
43
|
+
numberLTE: string;
|
|
44
|
+
numberLT: string;
|
|
45
|
+
numberGTE: string;
|
|
46
|
+
numberGT: string;
|
|
47
|
+
noteEquals: string;
|
|
48
|
+
numberIsDifferentFrom: string;
|
|
49
|
+
numberEquals: string;
|
|
50
|
+
phoneNumber: string;
|
|
51
|
+
emailOrPhoneNumber: string;
|
|
52
|
+
boolean: string;
|
|
53
|
+
numberBetween: string;
|
|
54
|
+
decimalCount: string;
|
|
55
|
+
decimalPlaces: string;
|
|
56
|
+
string: string;
|
|
57
|
+
endsWithOneOf: string;
|
|
58
|
+
startsWithOneOf: string;
|
|
59
|
+
array: string;
|
|
60
|
+
arrayMinLength: string;
|
|
61
|
+
arrayMaxLength: string;
|
|
62
|
+
arrayLength: string;
|
|
63
|
+
arrayContains: string;
|
|
64
|
+
arrayUnique: string;
|
|
65
|
+
arrayAllStrings: string;
|
|
66
|
+
arrayAllNumbers: string;
|
|
67
|
+
arrayOf: string;
|
|
68
|
+
oneOf: string;
|
|
69
|
+
allOf: string;
|
|
70
|
+
validateNested: string;
|
|
71
|
+
validateNestedInvalidType: string;
|
|
72
|
+
dateAfter: string;
|
|
73
|
+
dateBefore: string;
|
|
74
|
+
dateBetween: string;
|
|
75
|
+
dateEquals: string;
|
|
76
|
+
futureDate: string;
|
|
77
|
+
pastDate: string;
|
|
78
|
+
file: string;
|
|
79
|
+
fileSize: string;
|
|
80
|
+
fileType: string;
|
|
81
|
+
image: string;
|
|
82
|
+
fileExtension: string;
|
|
83
|
+
minFileSize: string;
|
|
84
|
+
uuid: string;
|
|
85
|
+
json: string;
|
|
86
|
+
base64: string;
|
|
87
|
+
hexColor: string;
|
|
88
|
+
creditCard: string;
|
|
89
|
+
ip: string;
|
|
90
|
+
macAddress: string;
|
|
91
|
+
matches: string;
|
|
92
|
+
tests: {
|
|
93
|
+
entity: {
|
|
94
|
+
name: string;
|
|
95
|
+
id: string;
|
|
96
|
+
email: string;
|
|
97
|
+
aString: string;
|
|
98
|
+
url: string;
|
|
99
|
+
note: string;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use strict';var e={separators:{multiple:", ",single:", "},failedForNFields:{one:"Validation failed for one field",other:"Validation failed for %{count} fields"},failedForNItems:{one:"Validation failed for one item",other:"Validation failed for %{count} items"},multipleOf:"This field must be a multiple of %{multipleOf}",invalidRule:"Invalid validation rule: %{rule}",invalidRuleParams:"Invalid parameters for rule %{rule}; params: %{ruleParams[0]}, %{ruleParams[1]}, ...",invalidMessage:"Invalid validation message for rule %{rule}; error validating value %{value}",invalidEnumValue:"The field %{field} must be one of %{expectedValues}",required:"This field is required",minLength:"This field must be at least %{minLength} characters long",maxLength:"This field must be at most %{maxLength} characters long",minValue:"This field must be at least %{minValue}",maxValue:"This field must be at most %{maxValue}",pattern:"This field must match the pattern %{pattern}",email:"This field must be a valid email address",url:"This field must be a valid URL",date:"This field must be a valid date",time:"This field must be a valid time",datetime:"This field must be a valid date and time","datetime-local":"This field must be a valid date and time",month:"This field must be a valid month",week:"This field must be a valid week",number:"This field must be a valid number",integer:"This field must be a valid integer",evenNumber:"This field must be an even integer",oddNumber:"This field must be an odd integer",float:"This field must be a valid float",fileName:"This field must be a valid file name",isNumber:"This field must be a valid number",isNonNullString:"This field must be a non null string",length:"This field must be exactly %{length} characters long",lengthRange:"This field must be between %{minLength} and %{maxLength} characters long",numberLTE:"This field must be less than or equal to %{ruleParams[0]}",numberLT:"This field must be less than %{ruleParams[0]}",numberGTE:"This field must be greater than or equal to %{ruleParams[0]}",numberGT:"This field must be greater than %{ruleParams[0]}",noteEquals:"This field must be different from %{ruleParams[0]}",numberIsDifferentFrom:"This field must be different from %{ruleParams[0]}",numberEquals:"This field must be equal to %{ruleParams[0]}",phoneNumber:"This field must be a valid phone number",emailOrPhoneNumber:"This field must be a valid email or phone number",boolean:"This field must be a valid boolean value",numberBetween:"This field must be between %{min} and %{max}",decimalCount:"This field must have(at least) %{ruleParams[0]} decimal places or/and at most %{ruleParams[1]} decimal places",decimalPlaces:"This field must have exactly %{places} decimal places",string:"This field must be a string",endsWithOneOf:"This field must end with one of the following values: %{endings}",startsWithOneOf:"This field must start with one of the following values: %{prefixes}",array:"This field must be an array",arrayMinLength:"This field must have at least %{minLength} items",arrayMaxLength:"This field must have at most %{maxLength} items",arrayLength:"This field must have exactly %{length} items",arrayContains:"This field must contain all of the following values: %{requiredValues}",arrayUnique:"This field must contain only unique values",arrayAllStrings:"This field must be an array of strings",arrayAllNumbers:"This field must be an array of numbers",arrayOf:`The field %{fieldName} must be an array where each item matches all the specified rules. Errors:
|
|
2
|
+
%{failedRulesErrors}`,oneOf:`The field %{fieldName} must match at least one of the following validation rules:
|
|
3
|
+
%{failedRulesErrors}`,allOf:`The field %{fieldName} must match all of the following validation rules:
|
|
4
|
+
%{failedRulesErrors}`,validateNested:`The field %{fieldName} must be a valid nested object. Errors:
|
|
5
|
+
%{nestedErrors}`,validateNestedInvalidType:"The field %{fieldName} must be an object, but received %{receivedType}",dateAfter:"This field must be after %{date}",dateBefore:"This field must be before %{date}",dateBetween:"This field must be between %{startDate} and %{endDate}",dateEquals:"This field must be equal to %{date}",futureDate:"This field must be a date in the future",pastDate:"This field must be a date in the past",file:"This field must be a valid file",fileSize:"This field must not exceed %{maxSize} bytes",fileType:"This field must be one of the following types: %{allowedTypes}",image:"This field must be a valid image file",fileExtension:"This field must have one of the following extensions: %{allowedExtensions}",minFileSize:"This field must be at least %{minSize} bytes",uuid:"This field must be a valid UUID",json:"This field must be valid JSON",base64:"This field must be valid Base64 encoded data",hexColor:"This field must be a valid hexadecimal color code",creditCard:"This field must be a valid credit card number",ip:"This field must be a valid IP address (version %{version})",macAddress:"This field must be a valid MAC address",matches:"This field must match the pattern %{pattern}",tests:{entity:{name:"Name",id:"Id",email:"Email",aString:"A String",url:"Url",note:"Note",createdAt:"Created At",updatedAt:"Updated At"}}};exports.validator=e;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @type DateFormat
|
|
3
|
+
* @description
|
|
4
|
+
* A comprehensive type representing all valid Moment.js format strings.
|
|
5
|
+
* This type serves as a unified reference for various date/time formatting options,
|
|
6
|
+
* accommodating various combinations of date, time, and day of the week components.
|
|
7
|
+
* ### Supported Tokens:
|
|
8
|
+
* monts :
|
|
9
|
+
* M : Month number, without leading zeros (1-12).
|
|
10
|
+
* - **`'MM'`**: 2-digit month (e.g., `10` for October).
|
|
11
|
+
* - **`'MMM'`**: Abbreviated month name (e.g., `Oct` for October).
|
|
12
|
+
* - **`'MMMM'`**: Full month name (e.g., `October`).
|
|
13
|
+
* - **`'D'`**: Day of the month (e.g., `1` for the first day of the month... 2 ... 30 31).
|
|
14
|
+
* - **``Do'`**: Ordinal day of the month (e.g., `1st` for the first day of the month,1st 2nd ... 30th 31st).
|
|
15
|
+
* - **`'DD'`**: 2-digit day of the month (e.g., `01` for the first day of the month).
|
|
16
|
+
* - **`'DDD'`**: 3-digit day of the year (e.g., `001` for the first day of the year).
|
|
17
|
+
* - **`'DDDD'`**: 4-digit day of the year (e.g., `0001` for the first day of the year).
|
|
18
|
+
* - **``d'`**: Day of the week (e.g., `1` for Monday : 0 1 ... 5 6).
|
|
19
|
+
* - **``do'`**: Ordinal day of the week (e.g., `1st` for Monday).
|
|
20
|
+
* - **``dd'`**: Abbreviated day of the week (e.g., `Mon` for Monday).
|
|
21
|
+
* - **``ddd'`**: Full day of the week (e.g., `Monday`).
|
|
22
|
+
* - **``dddd'`**: Full day of the week (e.g., `Monday`).
|
|
23
|
+
* - **`'YY'`**: 2-digit year (e.g., `19` for the year 2019).
|
|
24
|
+
* - **`'YYYY'`**: 4-digit year (e.g., `2019`).
|
|
25
|
+
* - **`'YYYYY'`**: 5-digit year (e.g., `1999`).
|
|
26
|
+
* - **`'a'`**: Lowercase am/pm marker (e.g., `am` or `pm`).
|
|
27
|
+
* - **`'A'`**: Uppercase AM/PM marker (e.g., `AM` or `PM`).
|
|
28
|
+
* - **`'H'`**: 24-hour hour (e.g., `0` to `23`).
|
|
29
|
+
* - **`'HH'`**: 2-digit 24-hour hour (e.g., `00` to `23`).
|
|
30
|
+
* - **`'h'`**: 12-hour hour (e.g., `1` to `12`).
|
|
31
|
+
* - **`'hh'`**: 2-digit 12-hour hour (e.g., `01` to `12`).
|
|
32
|
+
* - **`'m'`**: Minutes (e.g., `0` to `59`).
|
|
33
|
+
* - **`'mm'`**: 2-digit minutes (e.g., `00` to `59`).
|
|
34
|
+
* - **`'s'`**: Seconds (e.g., `0` to `59`).
|
|
35
|
+
* - **`'ss'`**: 2-digit seconds (e.g., `00` to `59`).
|
|
36
|
+
* - **`'S'`**: Milliseconds (e.g., `0` to `999`).
|
|
37
|
+
* - **`'SS'`**: 3-digit milliseconds (e.g., `00` to `999`).
|
|
38
|
+
* - **`'SSS'`**: 4-digit milliseconds (e.g., `000` to `9999`).
|
|
39
|
+
* - Q : Quarter of the year (1-4) : 1 2 3 4.
|
|
40
|
+
* - Qo : Quarter of the year (1-4) : 1st 2nd 3rd 4th.
|
|
41
|
+
*
|
|
42
|
+
* @see https://momentjs.com/docs/#/displaying/format for more information about the supported tokens.
|
|
43
|
+
*/
|
|
44
|
+
export type DateFormat = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A type alias for a dictionary-like object where keys are strings and values can be of any type.
|
|
3
|
+
* This provides a flexible way to represent objects with dynamic string keys.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* const user: Dictionary = { name: 'John', age: 25 };
|
|
8
|
+
* const config: Dictionary = { theme: 'dark', enabled: true };
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export interface Dictionary extends Record<string | symbol | number, any> {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A utility type that capitalizes the first character of a string type.
|
|
15
|
+
* If the string is empty, it returns the same string.
|
|
16
|
+
*
|
|
17
|
+
* Note: This is equivalent to TypeScript's built-in `Capitalize<S>` utility type.
|
|
18
|
+
* Consider using `Capitalize<S>` directly for better TypeScript ecosystem compatibility.
|
|
19
|
+
*
|
|
20
|
+
* @typeParam S - The string type to capitalize. Must extend `string`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* type Greeting = UppercaseFirst<'hello'>; // Results in 'Hello'
|
|
25
|
+
* type Empty = UppercaseFirst<''>; // Results in ''
|
|
26
|
+
* type AlreadyCapitalized = UppercaseFirst<'World'>; // Results in 'World'
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export type UppercaseFirst<S extends string> = S extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Dictionary } from './dictionary';
|
|
2
|
+
/**
|
|
3
|
+
* @interface I18nTranslation
|
|
4
|
+
* Represents a dictionary for internationalization (i18n) strings.
|
|
5
|
+
*
|
|
6
|
+
* This interface defines a structure for storing localized strings
|
|
7
|
+
* for different locales. Each locale can have multiple keys, each
|
|
8
|
+
* associated with a string or another dictionary for nested translations.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const translations: I18nTranslation = {
|
|
12
|
+
* en: {
|
|
13
|
+
* greeting: "Hello",
|
|
14
|
+
* farewell: "Goodbye",
|
|
15
|
+
* nested: {
|
|
16
|
+
example: "This is a nested translation.",
|
|
17
|
+
* }
|
|
18
|
+
* },
|
|
19
|
+
* es: {
|
|
20
|
+
* greeting: "Hola",
|
|
21
|
+
* farewell: "Adiós"
|
|
22
|
+
* }
|
|
23
|
+
* };
|
|
24
|
+
*/
|
|
25
|
+
export interface I18nTranslation extends Dictionary {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the different events related to internationalization (i18n).
|
|
29
|
+
*
|
|
30
|
+
* This type defines the possible events that can be emitted during
|
|
31
|
+
* the i18n process, allowing for event-driven updates in the application.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* function onI18nEvent(event: I18nEvent) {
|
|
35
|
+
* switch (event) {
|
|
36
|
+
* case "translations-loaded":
|
|
37
|
+
* console.log("Translation dictionary has been loaded.");
|
|
38
|
+
* break;
|
|
39
|
+
* case "translations-changed":
|
|
40
|
+
* console.log("Translation dictionary has been updated.");
|
|
41
|
+
* break;
|
|
42
|
+
* case "locale-changed":
|
|
43
|
+
* console.log("Locale has been changed.");
|
|
44
|
+
* break;
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
*/
|
|
48
|
+
export type I18nEvent = 'translations-loaded' | 'translations-changed' | 'locale-changed' | 'namespaces-before-load' | 'namespace-loaded' | 'namespaces-loaded';
|
|
49
|
+
/**
|
|
50
|
+
* A formatter function for internationalization (i18n) strings.
|
|
51
|
+
*
|
|
52
|
+
* This type defines a function that takes a string value and optional
|
|
53
|
+
* parameters to format the string according to specific rules or
|
|
54
|
+
* requirements. The formatted string is then returned.
|
|
55
|
+
*
|
|
56
|
+
* @param {string} value - The string value to format.
|
|
57
|
+
* @param {Record<string, any>} [params] - Optional parameters to customize the formatting.
|
|
58
|
+
* @returns {string} The formatted string.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* const formatter: I18nFormatter = (value, params) => {
|
|
62
|
+
* return value.replace(/{(\w+)}/g, (_, key) => params[key] || '');
|
|
63
|
+
* };
|
|
64
|
+
*
|
|
65
|
+
* const greeting = formatter("Hello, {name}!", { name: "John" }); // "Hello, John!"
|
|
66
|
+
*/
|
|
67
|
+
export type I18nFormatter = (value: string, params?: Dictionary) => string;
|
|
68
|
+
/**
|
|
69
|
+
* @interface I18nOptions
|
|
70
|
+
* Options for configuring internationalization (i18n) settings.
|
|
71
|
+
*
|
|
72
|
+
* This interface defines the options that can be used to customize
|
|
73
|
+
* the behavior of the i18n system, including the locale, fallback
|
|
74
|
+
* locale, and a custom formatter for string values.
|
|
75
|
+
*
|
|
76
|
+
* @property {string} locale - The primary locale to use for translations.
|
|
77
|
+
* @property {string} [fallbackLocale] - An optional fallback locale to use if the primary locale is not available.
|
|
78
|
+
* @property {I18nFormatter} [formatter] - An optional custom formatter function for formatting strings.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* const i18nOptions: I18nOptions = {
|
|
82
|
+
* locale: "en",
|
|
83
|
+
* fallbackLocale: "es",
|
|
84
|
+
* formatter: (value, params) => value.replace(/{(\w+)}/g, (_, key) => params[key] || '')
|
|
85
|
+
* };
|
|
86
|
+
*/
|
|
87
|
+
export interface I18nOptions {
|
|
88
|
+
/**
|
|
89
|
+
* The primary locale to use for translations.
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @example
|
|
93
|
+
* const currentLocale = i18nOptions.locale; // "en"
|
|
94
|
+
*/
|
|
95
|
+
locale: string;
|
|
96
|
+
/**
|
|
97
|
+
* An optional fallback locale to use if the primary locale is not available.
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @example
|
|
101
|
+
* const fallback = i18nOptions.fallbackLocale; // "es"
|
|
102
|
+
*/
|
|
103
|
+
fallbackLocale?: string;
|
|
104
|
+
/**
|
|
105
|
+
* An optional custom formatter function for formatting strings.
|
|
106
|
+
*
|
|
107
|
+
* @type {I18nFormatter}
|
|
108
|
+
* @example
|
|
109
|
+
* const formattedString = i18nOptions.formatter("Hello, {name}!", { name: "Alice" });
|
|
110
|
+
* // Outputs: "Hello, Alice!"
|
|
111
|
+
```typescript
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* const i18nOptions: I18nOptions = {
|
|
115
|
+
* locale: "en",
|
|
116
|
+
* fallbackLocale: "es",
|
|
117
|
+
* formatter: (value, params) => value.replace(/{(\w+)}/g, (_, key) => params[key] || '')
|
|
118
|
+
* };
|
|
119
|
+
*/
|
|
120
|
+
formatter?: I18nFormatter;
|
|
121
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export * from './date';
|
|
2
|
+
export * from './dictionary';
|
|
3
|
+
export * from './i18n';
|
|
4
|
+
/**
|
|
5
|
+
* @typedef Primitive
|
|
6
|
+
* @description
|
|
7
|
+
* The `Primitive` type represents a union of the basic primitive data types in TypeScript.
|
|
8
|
+
* It can be one of the following types:
|
|
9
|
+
* - `string`: Represents textual data.
|
|
10
|
+
* - `number`: Represents numeric values, both integers and floating-point numbers.
|
|
11
|
+
* - `boolean`: Represents a logical entity that can have two values: `true` or `false`.
|
|
12
|
+
*
|
|
13
|
+
* This type is useful when you want to define a variable or a function parameter that can accept
|
|
14
|
+
* any of these primitive types, providing flexibility in your code.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Example of using Primitive in a function
|
|
18
|
+
* function logValue(value: Primitive): void {
|
|
19
|
+
* console.log(`The value is: ${value}`);
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* logValue("Hello, World!"); // Logs: The value is: Hello, World!
|
|
23
|
+
* logValue(42); // Logs: The value is: 42
|
|
24
|
+
* logValue(true); // Logs: The value is: true
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Example of using Primitive in a variable
|
|
28
|
+
* let myValue: Primitive;
|
|
29
|
+
* myValue = "A string"; // Valid
|
|
30
|
+
* myValue = 100; // Valid
|
|
31
|
+
* myValue = false; // Valid
|
|
32
|
+
*
|
|
33
|
+
* // myValue = []; // Error: Type 'never[]' is not assignable to type 'Primitive'.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export type Primitive = string | number | boolean;
|
|
37
|
+
/**
|
|
38
|
+
* A type that represents a constructor function that can be instantiated with any number of arguments.
|
|
39
|
+
* This is a generic type that represents a controller class.
|
|
40
|
+
* @template T - The type of the controller class.
|
|
41
|
+
* @template D - A tuple representing the types of the constructor parameters.
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* // Example of using ClassConstructor
|
|
45
|
+
* class MyController {
|
|
46
|
+
* constructor(private readonly service: MyService) { }
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* const controllerClass: ClassConstructor<MyController> = MyController;
|
|
50
|
+
* ```
|
|
51
|
+
* type ExampleControllerType = IClassController<ExampleController, [ExampleService]>;
|
|
52
|
+
* const ExampleControllerClass: ExampleControllerType = ExampleController;
|
|
53
|
+
// Simulate dependency injection
|
|
54
|
+
const exampleService = new ExampleService();
|
|
55
|
+
const exampleController = new ExampleControllerClass(exampleService);
|
|
56
|
+
*/
|
|
57
|
+
export interface ClassConstructor<T = unknown, D extends any[] = any[]> {
|
|
58
|
+
new (...args: D): T;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* ## Make Optional Utility Type
|
|
62
|
+
*
|
|
63
|
+
* A mapped type that makes specific properties of a type optional while keeping others required.
|
|
64
|
+
* This is useful when you want fine-grained control over which properties should be optional
|
|
65
|
+
* in a derived type, rather than making all properties optional (like `Partial<T>`).
|
|
66
|
+
*
|
|
67
|
+
* ### How it Works
|
|
68
|
+
* This type uses TypeScript's mapped types to:
|
|
69
|
+
* 1. Remove specified properties from the original type (`Omit<T, K>`)
|
|
70
|
+
* 2. Make those properties optional (`Partial<Pick<T, K>>`)
|
|
71
|
+
* 3. Combine them back together with an intersection type
|
|
72
|
+
*
|
|
73
|
+
* ### Template Parameters
|
|
74
|
+
* @template T - The original type to modify
|
|
75
|
+
* @template K - A union of keys from T that should be made optional (must extend `keyof T`)
|
|
76
|
+
*
|
|
77
|
+
* ### Examples
|
|
78
|
+
*
|
|
79
|
+
* #### Basic Usage
|
|
80
|
+
* ```typescript
|
|
81
|
+
* interface User {
|
|
82
|
+
* id: number;
|
|
83
|
+
* name: string;
|
|
84
|
+
* email: string;
|
|
85
|
+
* age: number;
|
|
86
|
+
* isActive: boolean;
|
|
87
|
+
* }
|
|
88
|
+
*
|
|
89
|
+
* // Make only 'age' and 'isActive' optional
|
|
90
|
+
* type UserWithOptionalFields = MakeOptional<User, 'age' | 'isActive'>;
|
|
91
|
+
*
|
|
92
|
+
* // Result: {
|
|
93
|
+
* // id: number;
|
|
94
|
+
* // name: string;
|
|
95
|
+
* // email: string;
|
|
96
|
+
* // age?: number; // Now optional
|
|
97
|
+
* // isActive?: boolean; // Now optional
|
|
98
|
+
* // }
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* #### Single Property
|
|
102
|
+
* ```typescript
|
|
103
|
+
* type UserWithOptionalEmail = MakeOptional<User, 'email'>;
|
|
104
|
+
*
|
|
105
|
+
* // Result: {
|
|
106
|
+
* // id: number;
|
|
107
|
+
* // name: string;
|
|
108
|
+
* // email?: string; // Only email is optional
|
|
109
|
+
* // age: number;
|
|
110
|
+
* // isActive: boolean;
|
|
111
|
+
* // }
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* #### Comparison with Other Utility Types
|
|
115
|
+
* ```typescript
|
|
116
|
+
* // All properties optional
|
|
117
|
+
* type AllOptional = Partial<User>;
|
|
118
|
+
*
|
|
119
|
+
* // All properties required (opposite)
|
|
120
|
+
* type AllRequired = Required<User>;
|
|
121
|
+
*
|
|
122
|
+
* // Specific properties optional (this type)
|
|
123
|
+
* type SomeOptional = MakeOptional<User, 'age' | 'email'>;
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* ### Use Cases
|
|
127
|
+
* - API responses where some fields might be missing
|
|
128
|
+
* - Form data where certain fields are optional based on conditions
|
|
129
|
+
* - Configuration objects with optional overrides
|
|
130
|
+
* - Database models with nullable columns
|
|
131
|
+
*
|
|
132
|
+
* ### Type Safety
|
|
133
|
+
* The type ensures compile-time safety by:
|
|
134
|
+
* - Constraining `K` to only valid keys of `T`
|
|
135
|
+
* - Preserving the original property types (just making them optional)
|
|
136
|
+
* - Maintaining type relationships and inference
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
*
|
|
140
|
+
* @see {@link Partial} - Makes all properties optional
|
|
141
|
+
* @see {@link Required} - Makes all properties required
|
|
142
|
+
* @see {@link Pick} - Selects specific properties
|
|
143
|
+
* @see {@link Omit} - Removes specific properties
|
|
144
|
+
*/
|
|
145
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if two values are equal.
|
|
3
|
+
*
|
|
4
|
+
* This function performs a deep comparison of the two values, checking if they are equal.
|
|
5
|
+
* It handles various types, including arrays, maps, sets, and objects.
|
|
6
|
+
*
|
|
7
|
+
* @param {any} a The first value to compare.
|
|
8
|
+
* @param {any} b The second value to compare.
|
|
9
|
+
* @returns {boolean} True if the values are equal, false otherwise.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* areEquals(1, 1); // true
|
|
13
|
+
* areEquals(1, 2); // false
|
|
14
|
+
* areEquals({ a: 1 }, { a: 1 }); // true
|
|
15
|
+
* areEquals({ a: 1 }, { a: 2 }); // false
|
|
16
|
+
* areEquals([1, 2], [1, 2]); // true
|
|
17
|
+
* areEquals([1, 2], [1, 3]); // false
|
|
18
|
+
*/
|
|
19
|
+
export declare function areEquals(a: any, b: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var o=typeof Element!="undefined",s=typeof Map=="function",l=typeof Set=="function",y=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function u(e,t){if(e===t)return true;if(y&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)){let n=e.byteLength;if(n!=t.byteLength)return false;let r=new Int32Array(e),f=new Int32Array(t);for(let i=n;i--!==0;)if(r[i]!==f[i])return false;return true}if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;let n,r,f;if(Array.isArray(e)){if(n=e.length,n!=t.length)return false;for(r=n;r--!==0;)if(!u(e[r],t[r]))return false;return true}let i;if(s&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return false;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return false;for(i=e.entries();!(r=i.next()).done;)if(!u(r.value[1],t.get(r.value[0])))return false;return true}if(l&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return false;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(f=Object.keys(e),n=f.length,n!==Object.keys(t).length)return false;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[r]))return false;if(o&&e instanceof Element)return false;for(r=n;r--!==0;)if(!((f[r]==="_owner"||f[r]==="__v"||f[r]==="__o")&&e.$$typeof)&&!u(e[f[r]],t[f[r]]))return false;return true}return e!==e&&t!==t}function a(e,t){try{return u(e,t)}catch(n){}return false}exports.areEquals=a;
|