@rpcbase/ui 0.159.0 → 0.160.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.
Files changed (507) hide show
  1. package/dist/components/HoursPicker/index.d.ts +9 -6
  2. package/dist/components/HoursPicker/index.d.ts.map +1 -1
  3. package/dist/components/Select/index.d.ts.map +1 -1
  4. package/dist/index.js +32 -31
  5. package/dist/index100.js +105 -126
  6. package/dist/index100.js.map +1 -1
  7. package/dist/index101.js +24 -20
  8. package/dist/index101.js.map +1 -1
  9. package/dist/index102.js +8 -76
  10. package/dist/index102.js.map +1 -1
  11. package/dist/index103.js +4 -18
  12. package/dist/index103.js.map +1 -1
  13. package/dist/index104.js +5 -101
  14. package/dist/index104.js.map +1 -1
  15. package/dist/index105.js +5 -5
  16. package/dist/index105.js.map +1 -1
  17. package/dist/index106.js +466 -14
  18. package/dist/index106.js.map +1 -1
  19. package/dist/index107.js +186 -2
  20. package/dist/index107.js.map +1 -1
  21. package/dist/index108.js +107 -7
  22. package/dist/index108.js.map +1 -1
  23. package/dist/index109.js +241 -305
  24. package/dist/index109.js.map +1 -1
  25. package/dist/index110.js +9 -49
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +42 -5
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +4 -68
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +52 -2
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +4 -363
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +4 -261
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +15 -60
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +5 -46
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +7 -169
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +16 -109
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index120.js +4 -24
  46. package/dist/index120.js.map +1 -1
  47. package/dist/index121.js +5 -8
  48. package/dist/index121.js.map +1 -1
  49. package/dist/index122.js +5 -4
  50. package/dist/index122.js.map +1 -1
  51. package/dist/index123.js +5 -5
  52. package/dist/index123.js.map +1 -1
  53. package/dist/index124.js +3 -3
  54. package/dist/index124.js.map +1 -1
  55. package/dist/index125.js +4 -466
  56. package/dist/index125.js.map +1 -1
  57. package/dist/index126.js +6 -185
  58. package/dist/index126.js.map +1 -1
  59. package/dist/index127.js +24 -107
  60. package/dist/index127.js.map +1 -1
  61. package/dist/index128.js +6 -262
  62. package/dist/index128.js.map +1 -1
  63. package/dist/index129.js +4 -9
  64. package/dist/index129.js.map +1 -1
  65. package/dist/index130.js +6 -42
  66. package/dist/index130.js.map +1 -1
  67. package/dist/index131.js +5 -4
  68. package/dist/index131.js.map +1 -1
  69. package/dist/index132.js +5 -52
  70. package/dist/index132.js.map +1 -1
  71. package/dist/index133.js +5 -4
  72. package/dist/index133.js.map +1 -1
  73. package/dist/index134.js +3 -3
  74. package/dist/index134.js.map +1 -1
  75. package/dist/index135.js +6 -13
  76. package/dist/index135.js.map +1 -1
  77. package/dist/index136.js +4 -4
  78. package/dist/index136.js.map +1 -1
  79. package/dist/index137.js +4 -7
  80. package/dist/index137.js.map +1 -1
  81. package/dist/index138.js +4 -16
  82. package/dist/index138.js.map +1 -1
  83. package/dist/index139.js +6 -4
  84. package/dist/index139.js.map +1 -1
  85. package/dist/index140.js +145 -4
  86. package/dist/index140.js.map +1 -1
  87. package/dist/index141.js +39 -5
  88. package/dist/index141.js.map +1 -1
  89. package/dist/index142.js +4 -5
  90. package/dist/index142.js.map +1 -1
  91. package/dist/index143.js +7 -4
  92. package/dist/index143.js.map +1 -1
  93. package/dist/index144.js +13 -4
  94. package/dist/index144.js.map +1 -1
  95. package/dist/index145.js +13 -6
  96. package/dist/index145.js.map +1 -1
  97. package/dist/index146.js +7 -24
  98. package/dist/index146.js.map +1 -1
  99. package/dist/index147.js +31 -6
  100. package/dist/index147.js.map +1 -1
  101. package/dist/index148.js +10 -4
  102. package/dist/index148.js.map +1 -1
  103. package/dist/index149.js +10 -6
  104. package/dist/index149.js.map +1 -1
  105. package/dist/index150.js +8 -5
  106. package/dist/index150.js.map +1 -1
  107. package/dist/index151.js +13 -4
  108. package/dist/index151.js.map +1 -1
  109. package/dist/index152.js +101 -5
  110. package/dist/index152.js.map +1 -1
  111. package/dist/index153.js +20 -5
  112. package/dist/index153.js.map +1 -1
  113. package/dist/index154.js +53 -8
  114. package/dist/index154.js.map +1 -1
  115. package/dist/index155.js +72 -5
  116. package/dist/index155.js.map +1 -1
  117. package/dist/index156.js +9 -4
  118. package/dist/index156.js.map +1 -1
  119. package/dist/index157.js +20 -4
  120. package/dist/index157.js.map +1 -1
  121. package/dist/index158.js +16 -6
  122. package/dist/index158.js.map +1 -1
  123. package/dist/index159.js +23 -145
  124. package/dist/index159.js.map +1 -1
  125. package/dist/index160.js +6 -39
  126. package/dist/index160.js.map +1 -1
  127. package/dist/index161.js +5 -4
  128. package/dist/index161.js.map +1 -1
  129. package/dist/index162.js +23 -7
  130. package/dist/index162.js.map +1 -1
  131. package/dist/index163.js +35 -14
  132. package/dist/index163.js.map +1 -1
  133. package/dist/index164.js +16 -14
  134. package/dist/index164.js.map +1 -1
  135. package/dist/index165.js +6 -7
  136. package/dist/index165.js.map +1 -1
  137. package/dist/index166.js +4 -31
  138. package/dist/index166.js.map +1 -1
  139. package/dist/index167.js +4 -10
  140. package/dist/index167.js.map +1 -1
  141. package/dist/index168.js +4 -10
  142. package/dist/index168.js.map +1 -1
  143. package/dist/index169.js +4 -8
  144. package/dist/index169.js.map +1 -1
  145. package/dist/index170.js +3 -13
  146. package/dist/index170.js.map +1 -1
  147. package/dist/index171.js +6 -101
  148. package/dist/index171.js.map +1 -1
  149. package/dist/index172.js +24 -20
  150. package/dist/index172.js.map +1 -1
  151. package/dist/index173.js +7 -53
  152. package/dist/index173.js.map +1 -1
  153. package/dist/index174.js +6 -72
  154. package/dist/index174.js.map +1 -1
  155. package/dist/index175.js +5 -9
  156. package/dist/index175.js.map +1 -1
  157. package/dist/index176.js +3 -20
  158. package/dist/index176.js.map +1 -1
  159. package/dist/index177.js +3 -16
  160. package/dist/index177.js.map +1 -1
  161. package/dist/index178.js +4 -23
  162. package/dist/index178.js.map +1 -1
  163. package/dist/index179.js +3 -6
  164. package/dist/index179.js.map +1 -1
  165. package/dist/index18.js +475 -465
  166. package/dist/index18.js.map +1 -1
  167. package/dist/index180.js +4 -5
  168. package/dist/index180.js.map +1 -1
  169. package/dist/index181.js +3 -23
  170. package/dist/index181.js.map +1 -1
  171. package/dist/index182.js +4 -35
  172. package/dist/index182.js.map +1 -1
  173. package/dist/index183.js +4 -16
  174. package/dist/index183.js.map +1 -1
  175. package/dist/index184.js +3 -6
  176. package/dist/index184.js.map +1 -1
  177. package/dist/index185.js +33 -4
  178. package/dist/index185.js.map +1 -1
  179. package/dist/index186.js +249 -4
  180. package/dist/index186.js.map +1 -1
  181. package/dist/index187.js +114 -4
  182. package/dist/index187.js.map +1 -1
  183. package/dist/index188.js +219 -4
  184. package/dist/index188.js.map +1 -1
  185. package/dist/index189.js +66 -3
  186. package/dist/index189.js.map +1 -1
  187. package/dist/index190.js +20 -6
  188. package/dist/index190.js.map +1 -1
  189. package/dist/index191.js +210 -24
  190. package/dist/index191.js.map +1 -1
  191. package/dist/index192.js +319 -7
  192. package/dist/index192.js.map +1 -1
  193. package/dist/index193.js +130 -6
  194. package/dist/index193.js.map +1 -1
  195. package/dist/index194.js +20 -5
  196. package/dist/index194.js.map +1 -1
  197. package/dist/index195.js +75 -3
  198. package/dist/index195.js.map +1 -1
  199. package/dist/index196.js +18 -3
  200. package/dist/index196.js.map +1 -1
  201. package/dist/index197.js +101 -4
  202. package/dist/index197.js.map +1 -1
  203. package/dist/index198.js +5 -4
  204. package/dist/index198.js.map +1 -1
  205. package/dist/index199.js +14 -4
  206. package/dist/index199.js.map +1 -1
  207. package/dist/index20.js +113 -105
  208. package/dist/index20.js.map +1 -1
  209. package/dist/index200.js +2 -4
  210. package/dist/index200.js.map +1 -1
  211. package/dist/index201.js +7 -3
  212. package/dist/index201.js.map +1 -1
  213. package/dist/index202.js +326 -3
  214. package/dist/index202.js.map +1 -1
  215. package/dist/index203.js +46 -602
  216. package/dist/index203.js.map +1 -1
  217. package/dist/index205.js +3 -3
  218. package/dist/index206.js +3 -3
  219. package/dist/index209.js +1 -1
  220. package/dist/index210.js +1 -1
  221. package/dist/index215.js +63 -60
  222. package/dist/index215.js.map +1 -1
  223. package/dist/index216.js +179 -47
  224. package/dist/index216.js.map +1 -1
  225. package/dist/index217.js +46 -39
  226. package/dist/index217.js.map +1 -1
  227. package/dist/index218.js +13 -100
  228. package/dist/index218.js.map +1 -1
  229. package/dist/index219.js +151 -94
  230. package/dist/index219.js.map +1 -1
  231. package/dist/index220.js +27 -96
  232. package/dist/index220.js.map +1 -1
  233. package/dist/index221.js +9 -13
  234. package/dist/index221.js.map +1 -1
  235. package/dist/index222.js +40 -147
  236. package/dist/index222.js.map +1 -1
  237. package/dist/index223.js +10 -29
  238. package/dist/index223.js.map +1 -1
  239. package/dist/index224.js +44 -9
  240. package/dist/index224.js.map +1 -1
  241. package/dist/index225.js +88 -40
  242. package/dist/index225.js.map +1 -1
  243. package/dist/index226.js +85 -10
  244. package/dist/index226.js.map +1 -1
  245. package/dist/index227.js +102 -41
  246. package/dist/index227.js.map +1 -1
  247. package/dist/index228.js +45 -88
  248. package/dist/index228.js.map +1 -1
  249. package/dist/index229.js +10 -85
  250. package/dist/index229.js.map +1 -1
  251. package/dist/index230.js +28 -96
  252. package/dist/index230.js.map +1 -1
  253. package/dist/index231.js +8 -52
  254. package/dist/index231.js.map +1 -1
  255. package/dist/index232.js +115 -10
  256. package/dist/index232.js.map +1 -1
  257. package/dist/index233.js +16 -36
  258. package/dist/index233.js.map +1 -1
  259. package/dist/index234.js +15 -8
  260. package/dist/index234.js.map +1 -1
  261. package/dist/index235.js +3 -116
  262. package/dist/index235.js.map +1 -1
  263. package/dist/index236.js +35 -16
  264. package/dist/index236.js.map +1 -1
  265. package/dist/index237.js +19 -14
  266. package/dist/index237.js.map +1 -1
  267. package/dist/index238.js +9 -3
  268. package/dist/index238.js.map +1 -1
  269. package/dist/index239.js +8 -36
  270. package/dist/index239.js.map +1 -1
  271. package/dist/index240.js +58 -20
  272. package/dist/index240.js.map +1 -1
  273. package/dist/index241.js +8 -9
  274. package/dist/index241.js.map +1 -1
  275. package/dist/index242.js +66 -8
  276. package/dist/index242.js.map +1 -1
  277. package/dist/index243.js +18 -18
  278. package/dist/index243.js.map +1 -1
  279. package/dist/index244.js +15 -27
  280. package/dist/index244.js.map +1 -1
  281. package/dist/index245.js +4 -15
  282. package/dist/index245.js.map +1 -1
  283. package/dist/index246.js +4 -57
  284. package/dist/index246.js.map +1 -1
  285. package/dist/index247.js +6 -8
  286. package/dist/index247.js.map +1 -1
  287. package/dist/index248.js +4 -66
  288. package/dist/index248.js.map +1 -1
  289. package/dist/index249.js +7 -19
  290. package/dist/index249.js.map +1 -1
  291. package/dist/index250.js +17 -16
  292. package/dist/index250.js.map +1 -1
  293. package/dist/index251.js +5 -5
  294. package/dist/index251.js.map +1 -1
  295. package/dist/index252.js +5 -5
  296. package/dist/index252.js.map +1 -1
  297. package/dist/index253.js +13 -6
  298. package/dist/index253.js.map +1 -1
  299. package/dist/index254.js +10 -4
  300. package/dist/index254.js.map +1 -1
  301. package/dist/index255.js +14 -7
  302. package/dist/index255.js.map +1 -1
  303. package/dist/index256.js +14 -17
  304. package/dist/index256.js.map +1 -1
  305. package/dist/index257.js +5 -5
  306. package/dist/index257.js.map +1 -1
  307. package/dist/index258.js +6 -5
  308. package/dist/index258.js.map +1 -1
  309. package/dist/index259.js +7 -13
  310. package/dist/index259.js.map +1 -1
  311. package/dist/index260.js +5 -9
  312. package/dist/index260.js.map +1 -1
  313. package/dist/index261.js +9 -14
  314. package/dist/index261.js.map +1 -1
  315. package/dist/index262.js +5 -14
  316. package/dist/index262.js.map +1 -1
  317. package/dist/index263.js +5 -5
  318. package/dist/index263.js.map +1 -1
  319. package/dist/index264.js +9 -6
  320. package/dist/index264.js.map +1 -1
  321. package/dist/index265.js +5 -7
  322. package/dist/index265.js.map +1 -1
  323. package/dist/index266.js +5 -6
  324. package/dist/index266.js.map +1 -1
  325. package/dist/index267.js +4 -9
  326. package/dist/index267.js.map +1 -1
  327. package/dist/index268.js +11 -5
  328. package/dist/index268.js.map +1 -1
  329. package/dist/index269.js +10 -5
  330. package/dist/index269.js.map +1 -1
  331. package/dist/index270.js +10 -9
  332. package/dist/index270.js.map +1 -1
  333. package/dist/index271.js +11 -5
  334. package/dist/index271.js.map +1 -1
  335. package/dist/index272.js +11 -5
  336. package/dist/index272.js.map +1 -1
  337. package/dist/index273.js +10 -4
  338. package/dist/index273.js.map +1 -1
  339. package/dist/index274.js +7 -11
  340. package/dist/index274.js.map +1 -1
  341. package/dist/index275.js +6 -10
  342. package/dist/index275.js.map +1 -1
  343. package/dist/index276.js +5 -10
  344. package/dist/index276.js.map +1 -1
  345. package/dist/index277.js +6 -11
  346. package/dist/index277.js.map +1 -1
  347. package/dist/index278.js +6 -10
  348. package/dist/index278.js.map +1 -1
  349. package/dist/index279.js +6 -10
  350. package/dist/index279.js.map +1 -1
  351. package/dist/index280.js +55 -7
  352. package/dist/index280.js.map +1 -1
  353. package/dist/index281.js +19 -6
  354. package/dist/index281.js.map +1 -1
  355. package/dist/index282.js +28 -5
  356. package/dist/index282.js.map +1 -1
  357. package/dist/index283.js +16 -6
  358. package/dist/index283.js.map +1 -1
  359. package/dist/index284.js +23 -7
  360. package/dist/index284.js.map +1 -1
  361. package/dist/index285.js +16 -6
  362. package/dist/index285.js.map +1 -1
  363. package/dist/index286.js +7 -55
  364. package/dist/index286.js.map +1 -1
  365. package/dist/index287.js +10 -23
  366. package/dist/index287.js.map +1 -1
  367. package/dist/index288.js +9 -15
  368. package/dist/index288.js.map +1 -1
  369. package/dist/index289.js +21 -7
  370. package/dist/index289.js.map +1 -1
  371. package/dist/index29.js +1 -1
  372. package/dist/index290.js +10 -10
  373. package/dist/index290.js.map +1 -1
  374. package/dist/index291.js +9 -10
  375. package/dist/index291.js.map +1 -1
  376. package/dist/index292.js +9 -21
  377. package/dist/index292.js.map +1 -1
  378. package/dist/index293.js +4 -10
  379. package/dist/index293.js.map +1 -1
  380. package/dist/index294.js +5 -9
  381. package/dist/index294.js.map +1 -1
  382. package/dist/index295.js +16 -9
  383. package/dist/index295.js.map +1 -1
  384. package/dist/index296.js +9 -4
  385. package/dist/index296.js.map +1 -1
  386. package/dist/index297.js +18 -5
  387. package/dist/index297.js.map +1 -1
  388. package/dist/index298.js +15 -16
  389. package/dist/index298.js.map +1 -1
  390. package/dist/index299.js +12 -9
  391. package/dist/index299.js.map +1 -1
  392. package/dist/index30.js +14 -14
  393. package/dist/index300.js +29 -18
  394. package/dist/index300.js.map +1 -1
  395. package/dist/index301.js +12 -15
  396. package/dist/index301.js.map +1 -1
  397. package/dist/index302.js +25 -12
  398. package/dist/index302.js.map +1 -1
  399. package/dist/index303.js +5 -29
  400. package/dist/index303.js.map +1 -1
  401. package/dist/index304.js +62 -10
  402. package/dist/index304.js.map +1 -1
  403. package/dist/index305.js +48 -25
  404. package/dist/index305.js.map +1 -1
  405. package/dist/index306.js +39 -5
  406. package/dist/index306.js.map +1 -1
  407. package/dist/index307.js +98 -65
  408. package/dist/index307.js.map +1 -1
  409. package/dist/index308.js +94 -177
  410. package/dist/index308.js.map +1 -1
  411. package/dist/index309.js +98 -45
  412. package/dist/index309.js.map +1 -1
  413. package/dist/index31.js +3 -3
  414. package/dist/index310.js +2 -5
  415. package/dist/index310.js.map +1 -1
  416. package/dist/index311.js +2 -3
  417. package/dist/index311.js.map +1 -1
  418. package/dist/index312.js +5 -24
  419. package/dist/index312.js.map +1 -1
  420. package/dist/index313.js +3 -113
  421. package/dist/index313.js.map +1 -1
  422. package/dist/index314.js +23 -15
  423. package/dist/index314.js.map +1 -1
  424. package/dist/index315.js +107 -519
  425. package/dist/index315.js.map +1 -1
  426. package/dist/index316.js +14 -126
  427. package/dist/index316.js.map +1 -1
  428. package/dist/index317.js +516 -125
  429. package/dist/index317.js.map +1 -1
  430. package/dist/index318.js +128 -2
  431. package/dist/index318.js.map +1 -1
  432. package/dist/index319.js +134 -2
  433. package/dist/index319.js.map +1 -1
  434. package/dist/index32.js +2 -2
  435. package/dist/index320.js +1 -1
  436. package/dist/index325.js +2 -2
  437. package/dist/index326.js +1 -1
  438. package/dist/index33.js +1 -1
  439. package/dist/index336.js +2 -2
  440. package/dist/index339.js +1 -1
  441. package/dist/index34.js +1 -1
  442. package/dist/index340.js +2 -2
  443. package/dist/index342.js +1 -1
  444. package/dist/index343.js +1 -1
  445. package/dist/index344.js +1 -1
  446. package/dist/index345.js +1 -1
  447. package/dist/index35.js +1 -1
  448. package/dist/index355.js +11 -21
  449. package/dist/index355.js.map +1 -1
  450. package/dist/index356.js +26 -11
  451. package/dist/index356.js.map +1 -1
  452. package/dist/index357.js +4 -27
  453. package/dist/index357.js.map +1 -1
  454. package/dist/index358.js +22 -4
  455. package/dist/index358.js.map +1 -1
  456. package/dist/index36.js +1 -1
  457. package/dist/index39.js +2 -2
  458. package/dist/index40.js +24 -24
  459. package/dist/index42.js +1 -1
  460. package/dist/index50.js +2 -2
  461. package/dist/index55.js +1 -1
  462. package/dist/index56.js +1 -1
  463. package/dist/index59.js +1 -1
  464. package/dist/index66.js +4 -4
  465. package/dist/index68.js +1 -1
  466. package/dist/index77.js +1 -1
  467. package/dist/index78.js +53 -11
  468. package/dist/index78.js.map +1 -1
  469. package/dist/index79.js +1 -1
  470. package/dist/index80.js +2 -2
  471. package/dist/index81.js +2 -2
  472. package/dist/index82.js +12 -2
  473. package/dist/index82.js.map +1 -1
  474. package/dist/index83.js +2 -2
  475. package/dist/index84.js +2 -47
  476. package/dist/index84.js.map +1 -1
  477. package/dist/index85.js +41 -200
  478. package/dist/index85.js.map +1 -1
  479. package/dist/index86.js +204 -20
  480. package/dist/index86.js.map +1 -1
  481. package/dist/index87.js +22 -25
  482. package/dist/index87.js.map +1 -1
  483. package/dist/index88.js +23 -398
  484. package/dist/index88.js.map +1 -1
  485. package/dist/index89.js +392 -39
  486. package/dist/index89.js.map +1 -1
  487. package/dist/index90.js +44 -51
  488. package/dist/index90.js.map +1 -1
  489. package/dist/index91.js +605 -3
  490. package/dist/index91.js.map +1 -1
  491. package/dist/index92.js +5 -33
  492. package/dist/index92.js.map +1 -1
  493. package/dist/index93.js +65 -246
  494. package/dist/index93.js.map +1 -1
  495. package/dist/index94.js +2 -115
  496. package/dist/index94.js.map +1 -1
  497. package/dist/index95.js +359 -215
  498. package/dist/index95.js.map +1 -1
  499. package/dist/index96.js +257 -62
  500. package/dist/index96.js.map +1 -1
  501. package/dist/index97.js +58 -18
  502. package/dist/index97.js.map +1 -1
  503. package/dist/index98.js +44 -207
  504. package/dist/index98.js.map +1 -1
  505. package/dist/index99.js +159 -309
  506. package/dist/index99.js.map +1 -1
  507. package/package.json +1 -1
package/dist/index95.js CHANGED
@@ -1,223 +1,367 @@
1
- import { DIRECTION as c, objectIncludes as d } from "./index215.js";
2
- import l from "./index92.js";
3
- import v, { normalizeOpts as _ } from "./index32.js";
4
- import k from "./index93.js";
5
- import g from "./index91.js";
6
- class h extends k {
7
- constructor(e) {
8
- super({
9
- ...h.DEFAULTS,
10
- ...e
11
- }), this.currentMask = void 0;
12
- }
13
- updateOptions(e) {
14
- super.updateOptions(e);
15
- }
16
- _update(e) {
17
- super._update(e), "mask" in e && (this.exposeMask = void 0, this.compiledMasks = Array.isArray(e.mask) ? e.mask.map((t) => {
18
- const {
19
- expose: s,
20
- ...a
21
- } = _(t), i = v({
22
- overwrite: this._overwrite,
23
- eager: this._eager,
24
- skipInvalid: this._skipInvalid,
25
- ...a
26
- });
27
- return s && (this.exposeMask = i), i;
28
- }) : []);
29
- }
30
- _appendCharRaw(e, t) {
31
- t === void 0 && (t = {});
32
- const s = this._applyDispatch(e, t);
33
- return this.currentMask && s.aggregate(this.currentMask._appendChar(e, this.currentMaskFlags(t))), s;
34
- }
35
- _applyDispatch(e, t, s) {
36
- e === void 0 && (e = ""), t === void 0 && (t = {}), s === void 0 && (s = "");
37
- const a = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value, i = this.rawInputValue, r = t.tail && t._beforeTailState != null ? t._beforeTailState._rawInputValue : i, u = i.slice(r.length), n = this.currentMask, p = new l(), o = n?.state;
38
- return this.currentMask = this.doDispatch(e, {
39
- ...t
40
- }, s), this.currentMask && (this.currentMask !== n ? (this.currentMask.reset(), r && (this.currentMask.append(r, {
41
- raw: !0
42
- }), p.tailShift = this.currentMask.value.length - a.length), u && (p.tailShift += this.currentMask.append(u, {
43
- raw: !0,
44
- tail: !0
45
- }).tailShift)) : o && (this.currentMask.state = o)), p;
46
- }
47
- _appendPlaceholder() {
48
- const e = this._applyDispatch();
49
- return this.currentMask && e.aggregate(this.currentMask._appendPlaceholder()), e;
50
- }
51
- _appendEager() {
52
- const e = this._applyDispatch();
53
- return this.currentMask && e.aggregate(this.currentMask._appendEager()), e;
54
- }
55
- appendTail(e) {
56
- const t = new l();
57
- return e && t.aggregate(this._applyDispatch("", {}, e)), t.aggregate(this.currentMask ? this.currentMask.appendTail(e) : super.appendTail(e));
58
- }
59
- currentMaskFlags(e) {
60
- var t, s;
61
- return {
62
- ...e,
63
- _beforeTailState: ((t = e._beforeTailState) == null ? void 0 : t.currentMaskRef) === this.currentMask && ((s = e._beforeTailState) == null ? void 0 : s.currentMask) || e._beforeTailState
64
- };
65
- }
66
- doDispatch(e, t, s) {
67
- return t === void 0 && (t = {}), s === void 0 && (s = ""), this.dispatch(e, this, t, s);
68
- }
69
- doValidate(e) {
70
- return super.doValidate(e) && (!this.currentMask || this.currentMask.doValidate(this.currentMaskFlags(e)));
71
- }
72
- doPrepare(e, t) {
73
- t === void 0 && (t = {});
74
- let [s, a] = super.doPrepare(e, t);
75
- if (this.currentMask) {
76
- let i;
77
- [s, i] = super.doPrepare(s, this.currentMaskFlags(t)), a = a.aggregate(i);
78
- }
79
- return [s, a];
80
- }
81
- doPrepareChar(e, t) {
82
- t === void 0 && (t = {});
83
- let [s, a] = super.doPrepareChar(e, t);
84
- if (this.currentMask) {
85
- let i;
86
- [s, i] = super.doPrepareChar(s, this.currentMaskFlags(t)), a = a.aggregate(i);
87
- }
88
- return [s, a];
89
- }
90
- reset() {
91
- var e;
92
- (e = this.currentMask) == null || e.reset(), this.compiledMasks.forEach((t) => t.reset());
93
- }
94
- get value() {
95
- return this.exposeMask ? this.exposeMask.value : this.currentMask ? this.currentMask.value : "";
96
- }
97
- set value(e) {
98
- this.exposeMask ? (this.exposeMask.value = e, this.currentMask = this.exposeMask, this._applyDispatch()) : super.value = e;
99
- }
100
- get unmaskedValue() {
101
- return this.exposeMask ? this.exposeMask.unmaskedValue : this.currentMask ? this.currentMask.unmaskedValue : "";
102
- }
103
- set unmaskedValue(e) {
104
- this.exposeMask ? (this.exposeMask.unmaskedValue = e, this.currentMask = this.exposeMask, this._applyDispatch()) : super.unmaskedValue = e;
105
- }
106
- get typedValue() {
107
- return this.exposeMask ? this.exposeMask.typedValue : this.currentMask ? this.currentMask.typedValue : "";
1
+ import g from "./index106.js";
2
+ import c from "./index107.js";
3
+ import y from "./index108.js";
4
+ import C from "./index96.js";
5
+ import b from "./index109.js";
6
+ import v from "./index110.js";
7
+ import p from "./index111.js";
8
+ import N from "./index112.js";
9
+ import { DIGIT_PLACEHOLDER as P } from "./index97.js";
10
+ function f(n) {
11
+ "@babel/helpers - typeof";
12
+ return f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
13
+ return typeof e;
14
+ } : function(e) {
15
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
16
+ }, f(n);
17
+ }
18
+ function S(n, e) {
19
+ return A(n) || _(n, e) || k(n, e) || T();
20
+ }
21
+ function T() {
22
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
24
+ }
25
+ function k(n, e) {
26
+ if (n) {
27
+ if (typeof n == "string") return h(n, e);
28
+ var t = {}.toString.call(n).slice(8, -1);
29
+ return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? h(n, e) : void 0;
108
30
  }
109
- set typedValue(e) {
110
- if (this.exposeMask) {
111
- this.exposeMask.typedValue = e, this.currentMask = this.exposeMask, this._applyDispatch();
112
- return;
31
+ }
32
+ function h(n, e) {
33
+ (e == null || e > n.length) && (e = n.length);
34
+ for (var t = 0, i = Array(e); t < e; t++) i[t] = n[t];
35
+ return i;
36
+ }
37
+ function _(n, e) {
38
+ var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
39
+ if (t != null) {
40
+ var i, a, o, r, u = [], l = !0, s = !1;
41
+ try {
42
+ if (o = (t = t.call(n)).next, e !== 0) for (; !(l = (i = o.call(t)).done) && (u.push(i.value), u.length !== e); l = !0) ;
43
+ } catch (d) {
44
+ s = !0, a = d;
45
+ } finally {
46
+ try {
47
+ if (!l && t.return != null && (r = t.return(), Object(r) !== r)) return;
48
+ } finally {
49
+ if (s) throw a;
50
+ }
113
51
  }
114
- let t = String(e);
115
- this.currentMask && (this.currentMask.typedValue = e, t = this.currentMask.unmaskedValue), this.unmaskedValue = t;
116
- }
117
- get displayValue() {
118
- return this.currentMask ? this.currentMask.displayValue : "";
119
- }
120
- get isComplete() {
121
- var e;
122
- return !!((e = this.currentMask) != null && e.isComplete);
123
- }
124
- get isFilled() {
125
- var e;
126
- return !!((e = this.currentMask) != null && e.isFilled);
127
- }
128
- remove(e, t) {
129
- const s = new l();
130
- return this.currentMask && s.aggregate(this.currentMask.remove(e, t)).aggregate(this._applyDispatch()), s;
131
- }
132
- get state() {
133
- var e;
134
- return {
135
- ...super.state,
136
- _rawInputValue: this.rawInputValue,
137
- compiledMasks: this.compiledMasks.map((t) => t.state),
138
- currentMaskRef: this.currentMask,
139
- currentMask: (e = this.currentMask) == null ? void 0 : e.state
140
- };
141
- }
142
- set state(e) {
143
- const {
144
- compiledMasks: t,
145
- currentMaskRef: s,
146
- currentMask: a,
147
- ...i
148
- } = e;
149
- t && this.compiledMasks.forEach((r, u) => r.state = t[u]), s != null && (this.currentMask = s, this.currentMask.state = a), super.state = i;
150
- }
151
- extractInput(e, t, s) {
152
- return this.currentMask ? this.currentMask.extractInput(e, t, s) : "";
153
- }
154
- extractTail(e, t) {
155
- return this.currentMask ? this.currentMask.extractTail(e, t) : super.extractTail(e, t);
156
- }
157
- doCommit() {
158
- this.currentMask && this.currentMask.doCommit(), super.doCommit();
159
- }
160
- nearestInputPos(e, t) {
161
- return this.currentMask ? this.currentMask.nearestInputPos(e, t) : super.nearestInputPos(e, t);
162
- }
163
- get overwrite() {
164
- return this.currentMask ? this.currentMask.overwrite : this._overwrite;
165
- }
166
- set overwrite(e) {
167
- this._overwrite = e;
168
- }
169
- get eager() {
170
- return this.currentMask ? this.currentMask.eager : this._eager;
171
- }
172
- set eager(e) {
173
- this._eager = e;
174
- }
175
- get skipInvalid() {
176
- return this.currentMask ? this.currentMask.skipInvalid : this._skipInvalid;
177
- }
178
- set skipInvalid(e) {
179
- this._skipInvalid = e;
180
- }
181
- get autofix() {
182
- return this.currentMask ? this.currentMask.autofix : this._autofix;
183
- }
184
- set autofix(e) {
185
- this._autofix = e;
186
- }
187
- maskEquals(e) {
188
- return Array.isArray(e) ? this.compiledMasks.every((t, s) => {
189
- if (!e[s]) return;
190
- const {
191
- mask: a,
192
- ...i
193
- } = e[s];
194
- return d(t, i) && t.maskEquals(a);
195
- }) : super.maskEquals(e);
196
- }
197
- typedValueEquals(e) {
198
- var t;
199
- return !!((t = this.currentMask) != null && t.typedValueEquals(e));
52
+ return u;
200
53
  }
201
54
  }
202
- h.DEFAULTS = {
203
- ...k.DEFAULTS,
204
- dispatch: (M, e, t, s) => {
205
- if (!e.compiledMasks.length) return;
206
- const a = e.rawInputValue, i = e.compiledMasks.map((r, u) => {
207
- const n = e.currentMask === r, p = n ? r.displayValue.length : r.nearestInputPos(r.displayValue.length, c.FORCE_LEFT);
208
- return r.rawInputValue !== a ? (r.reset(), r.append(a, {
209
- raw: !0
210
- })) : n || r.remove(p), r.append(M, e.currentMaskFlags(t)), r.appendTail(s), {
211
- index: u,
212
- weight: r.rawInputValue.length,
213
- totalInputPositions: r.totalInputPositions(0, Math.max(p, r.nearestInputPos(r.displayValue.length, c.FORCE_LEFT)))
214
- };
215
- });
216
- return i.sort((r, u) => u.weight - r.weight || u.totalInputPositions - r.totalInputPositions), e.compiledMasks[i[0].index];
55
+ function A(n) {
56
+ if (Array.isArray(n)) return n;
57
+ }
58
+ function I(n, e) {
59
+ if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
60
+ }
61
+ function F(n, e) {
62
+ for (var t = 0; t < e.length; t++) {
63
+ var i = e[t];
64
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, x(i.key), i);
217
65
  }
218
- };
219
- g.MaskedDynamic = h;
66
+ }
67
+ function w(n, e, t) {
68
+ return e && F(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
69
+ }
70
+ function x(n) {
71
+ var e = j(n, "string");
72
+ return f(e) == "symbol" ? e : e + "";
73
+ }
74
+ function j(n, e) {
75
+ if (f(n) != "object" || !n) return n;
76
+ var t = n[Symbol.toPrimitive];
77
+ if (t !== void 0) {
78
+ var i = t.call(n, e);
79
+ if (f(i) != "object") return i;
80
+ throw new TypeError("@@toPrimitive must return a primitive value.");
81
+ }
82
+ return String(n);
83
+ }
84
+ var H = /* @__PURE__ */ (function() {
85
+ function n(e, t) {
86
+ I(this, n), this.metadata = new g(t);
87
+ var i = this.getCountryAndCallingCode(e), a = S(i, 2), o = a[0], r = a[1];
88
+ this.defaultCountry = o, this.defaultCallingCode = r, this.reset();
89
+ }
90
+ return w(n, [{
91
+ key: "getCountryAndCallingCode",
92
+ value: function(t) {
93
+ var i, a;
94
+ return t && (N(t) ? (i = t.defaultCountry, a = t.defaultCallingCode) : i = t), i && !this.metadata.hasCountry(i) && (i = void 0), [i, a];
95
+ }
96
+ /**
97
+ * Inputs "next" phone number characters.
98
+ * @param {string} text
99
+ * @return {string} Formatted phone number characters that have been input so far.
100
+ */
101
+ }, {
102
+ key: "input",
103
+ value: function(t) {
104
+ var i = this.parser.input(t, this.state), a = i.digits, o = i.justLeadingPlus;
105
+ if (o)
106
+ this.formattedOutput = "+";
107
+ else if (a) {
108
+ this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
109
+ var r;
110
+ if (this.metadata.hasSelectedNumberingPlan() && (r = this.formatter.format(a, this.state)), r === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
111
+ this.determineTheCountryIfNeeded();
112
+ var u = this.state.getNationalDigits();
113
+ u && (r = this.formatter.format(u, this.state));
114
+ }
115
+ this.formattedOutput = r ? this.getFullNumber(r) : this.getNonFormattedNumber();
116
+ }
117
+ return this.formattedOutput;
118
+ }
119
+ }, {
120
+ key: "reset",
121
+ value: function() {
122
+ var t = this;
123
+ return this.state = new y({
124
+ onCountryChange: function(a) {
125
+ t.country = a;
126
+ },
127
+ onCallingCodeChange: function(a, o) {
128
+ t.metadata.selectNumberingPlan(o, a), t.formatter.reset(t.metadata.numberingPlan, t.state), t.parser.reset(t.metadata.numberingPlan);
129
+ }
130
+ }), this.formatter = new C({
131
+ state: this.state,
132
+ metadata: this.metadata
133
+ }), this.parser = new b({
134
+ defaultCountry: this.defaultCountry,
135
+ defaultCallingCode: this.defaultCallingCode,
136
+ metadata: this.metadata,
137
+ state: this.state,
138
+ onNationalSignificantNumberChange: function() {
139
+ t.determineTheCountryIfNeeded(), t.formatter.reset(t.metadata.numberingPlan, t.state);
140
+ }
141
+ }), this.state.reset({
142
+ country: this.defaultCountry,
143
+ callingCode: this.defaultCallingCode
144
+ }), this.formattedOutput = "", this;
145
+ }
146
+ /**
147
+ * Returns `true` if the phone number is being input in international format.
148
+ * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
149
+ * @return {boolean}
150
+ */
151
+ }, {
152
+ key: "isInternational",
153
+ value: function() {
154
+ return this.state.international;
155
+ }
156
+ /**
157
+ * Returns the "calling code" part of the phone number when it's being input
158
+ * in an international format.
159
+ * If no valid calling code has been entered so far, returns `undefined`.
160
+ * @return {string} [callingCode]
161
+ */
162
+ }, {
163
+ key: "getCallingCode",
164
+ value: function() {
165
+ if (this.isInternational())
166
+ return this.state.callingCode;
167
+ }
168
+ // A legacy alias.
169
+ }, {
170
+ key: "getCountryCallingCode",
171
+ value: function() {
172
+ return this.getCallingCode();
173
+ }
174
+ /**
175
+ * Returns a two-letter country code of the phone number.
176
+ * Returns `undefined` for "non-geographic" phone numbering plans.
177
+ * Returns `undefined` if no phone number has been input yet.
178
+ * @return {string} [country]
179
+ */
180
+ }, {
181
+ key: "getCountry",
182
+ value: function() {
183
+ var t = this.state.digits;
184
+ if (t)
185
+ return this._getCountry();
186
+ }
187
+ /**
188
+ * Returns a two-letter country code of the phone number.
189
+ * Returns `undefined` for "non-geographic" phone numbering plans.
190
+ * @return {string} [country]
191
+ */
192
+ }, {
193
+ key: "_getCountry",
194
+ value: function() {
195
+ var t = this.state.country;
196
+ return t;
197
+ }
198
+ }, {
199
+ key: "determineTheCountryIfNeeded",
200
+ value: function() {
201
+ (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
202
+ }
203
+ // Prepends `+CountryCode ` in case of an international phone number
204
+ }, {
205
+ key: "getFullNumber",
206
+ value: function(t) {
207
+ var i = this;
208
+ if (this.isInternational()) {
209
+ var a = function(u) {
210
+ return i.formatter.getInternationalPrefixBeforeCountryCallingCode(i.state, {
211
+ spacing: !!u
212
+ }) + u;
213
+ }, o = this.state.callingCode;
214
+ return a(o ? t ? "".concat(o, " ").concat(t) : o : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
215
+ }
216
+ return t;
217
+ }
218
+ }, {
219
+ key: "getNonFormattedNationalNumberWithPrefix",
220
+ value: function() {
221
+ var t = this.state, i = t.nationalSignificantNumber, a = t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, o = t.nationalPrefix, r = i, u = a || o;
222
+ return u && (r = u + r), r;
223
+ }
224
+ }, {
225
+ key: "getNonFormattedNumber",
226
+ value: function() {
227
+ var t = this.state.nationalSignificantNumberIsModified;
228
+ return this.getFullNumber(t ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
229
+ }
230
+ }, {
231
+ key: "getNonFormattedTemplate",
232
+ value: function() {
233
+ var t = this.getNonFormattedNumber();
234
+ if (t)
235
+ return t.replace(/[\+\d]/g, P);
236
+ }
237
+ }, {
238
+ key: "isCountryCallingCodeAmbiguous",
239
+ value: function() {
240
+ var t = this.state.callingCode, i = this.metadata.getCountryCodesForCallingCode(t);
241
+ return i && i.length > 1;
242
+ }
243
+ // Determines the exact country of the phone number
244
+ // entered so far based on the country phone code
245
+ // and the national phone number.
246
+ }, {
247
+ key: "determineTheCountry",
248
+ value: function() {
249
+ this.state.setCountry(v(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
250
+ nationalNumber: this.state.nationalSignificantNumber,
251
+ metadata: this.metadata
252
+ }));
253
+ }
254
+ /**
255
+ * Returns a E.164 phone number value for the user's input.
256
+ *
257
+ * For example, for country `"US"` and input `"(222) 333-4444"`
258
+ * it will return `"+12223334444"`.
259
+ *
260
+ * For international phone number input, it will also auto-correct
261
+ * some minor errors such as using a national prefix when writing
262
+ * an international phone number. For example, if the user inputs
263
+ * `"+44 0 7400 000000"` then it will return an auto-corrected
264
+ * `"+447400000000"` phone number value.
265
+ *
266
+ * Will return `undefined` if no digits have been input,
267
+ * or when inputting a phone number in national format and no
268
+ * default country or default "country calling code" have been set.
269
+ *
270
+ * @return {string} [value]
271
+ */
272
+ }, {
273
+ key: "getNumberValue",
274
+ value: function() {
275
+ var t = this.state, i = t.digits, a = t.callingCode, o = t.country, r = t.nationalSignificantNumber;
276
+ if (i) {
277
+ if (this.isInternational())
278
+ return a ? "+" + a + r : "+" + i;
279
+ if (o || a) {
280
+ var u = o ? this.metadata.countryCallingCode() : a;
281
+ return "+" + u + r;
282
+ }
283
+ }
284
+ }
285
+ /**
286
+ * Returns an instance of `PhoneNumber` class.
287
+ * Will return `undefined` if no national (significant) number
288
+ * digits have been entered so far, or if no `defaultCountry` has been
289
+ * set and the user enters a phone number not in international format.
290
+ */
291
+ }, {
292
+ key: "getNumber",
293
+ value: function() {
294
+ var t = this.state, i = t.nationalSignificantNumber, a = t.carrierCode, o = t.callingCode, r = this._getCountry();
295
+ if (i && !(!r && !o)) {
296
+ if (r && r === this.defaultCountry) {
297
+ var u = new g(this.metadata.metadata);
298
+ u.selectNumberingPlan(r);
299
+ var l = u.numberingPlan.callingCode(), s = this.metadata.getCountryCodesForCallingCode(l);
300
+ if (s.length > 1) {
301
+ var d = p(i, {
302
+ countries: s,
303
+ metadata: this.metadata.metadata
304
+ });
305
+ d && (r = d);
306
+ }
307
+ }
308
+ var m = new c(r || o, i, this.metadata.metadata);
309
+ return a && (m.carrierCode = a), m;
310
+ }
311
+ }
312
+ /**
313
+ * Returns `true` if the phone number is "possible".
314
+ * Is just a shortcut for `PhoneNumber.isPossible()`.
315
+ * @return {boolean}
316
+ */
317
+ }, {
318
+ key: "isPossible",
319
+ value: function() {
320
+ var t = this.getNumber();
321
+ return t ? t.isPossible() : !1;
322
+ }
323
+ /**
324
+ * Returns `true` if the phone number is "valid".
325
+ * Is just a shortcut for `PhoneNumber.isValid()`.
326
+ * @return {boolean}
327
+ */
328
+ }, {
329
+ key: "isValid",
330
+ value: function() {
331
+ var t = this.getNumber();
332
+ return t ? t.isValid() : !1;
333
+ }
334
+ /**
335
+ * @deprecated
336
+ * This method is used in `react-phone-number-input/source/input-control.js`
337
+ * in versions before `3.0.16`.
338
+ */
339
+ }, {
340
+ key: "getNationalNumber",
341
+ value: function() {
342
+ return this.state.nationalSignificantNumber;
343
+ }
344
+ /**
345
+ * Returns the phone number characters entered by the user.
346
+ * @return {string}
347
+ */
348
+ }, {
349
+ key: "getChars",
350
+ value: function() {
351
+ return (this.state.international ? "+" : "") + this.state.digits;
352
+ }
353
+ /**
354
+ * Returns the template for the formatted phone number.
355
+ * @return {string}
356
+ */
357
+ }, {
358
+ key: "getTemplate",
359
+ value: function() {
360
+ return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
361
+ }
362
+ }]);
363
+ })();
220
364
  export {
221
- h as default
365
+ H as default
222
366
  };
223
367
  //# sourceMappingURL=index95.js.map