@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/index97.js CHANGED
@@ -1,24 +1,64 @@
1
- import e from "./index93.js";
2
- import t from "./index91.js";
3
- import "./index92.js";
4
- class s extends e {
5
- /** */
6
- /** Enable characters overwriting */
7
- /** */
8
- /** */
9
- /** */
10
- updateOptions(a) {
11
- super.updateOptions(a);
1
+ function f(r, t) {
2
+ var e = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
3
+ if (e) return (e = e.call(r)).next.bind(e);
4
+ if (Array.isArray(r) || (e = v(r)) || t) {
5
+ e && (r = e);
6
+ var n = 0;
7
+ return function() {
8
+ return n >= r.length ? { done: !0 } : { done: !1, value: r[n++] };
9
+ };
12
10
  }
13
- _update(a) {
14
- super._update({
15
- ...a,
16
- validate: a.mask
17
- });
11
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13
+ }
14
+ function v(r, t) {
15
+ if (r) {
16
+ if (typeof r == "string") return c(r, t);
17
+ var e = {}.toString.call(r).slice(8, -1);
18
+ return e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set" ? Array.from(r) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? c(r, t) : void 0;
19
+ }
20
+ }
21
+ function c(r, t) {
22
+ (t == null || t > r.length) && (t = r.length);
23
+ for (var e = 0, n = Array(t); e < t; e++) n[e] = r[e];
24
+ return n;
25
+ }
26
+ var h = "x", u = new RegExp(h);
27
+ function s(r, t) {
28
+ if (t < 1)
29
+ return "";
30
+ for (var e = ""; t > 1; )
31
+ t & 1 && (e += r), t >>= 1, r += r;
32
+ return e + r;
33
+ }
34
+ function y(r, t) {
35
+ return r[t] === ")" && t++, p(r.slice(0, t));
36
+ }
37
+ function p(r) {
38
+ for (var t = [], e = 0; e < r.length; )
39
+ r[e] === "(" ? t.push(e) : r[e] === ")" && t.pop(), e++;
40
+ var n = 0, a = "";
41
+ t.push(r.length);
42
+ for (var o = 0, l = t; o < l.length; o++) {
43
+ var i = l[o];
44
+ a += r.slice(n, i), n = i + 1;
45
+ }
46
+ return a;
47
+ }
48
+ function d(r, t, e) {
49
+ for (var n = f(e.split("")), a; !(a = n()).done; ) {
50
+ var o = a.value;
51
+ if (r.slice(t + 1).search(u) < 0)
52
+ return;
53
+ t = r.search(u), r = r.replace(u, o);
18
54
  }
55
+ return [r, t];
19
56
  }
20
- t.MaskedFunction = s;
21
57
  export {
22
- s as default
58
+ h as DIGIT_PLACEHOLDER,
59
+ y as cutAndStripNonPairedParens,
60
+ d as populateTemplateWithDigits,
61
+ s as repeat,
62
+ p as stripNonPairedParens
23
63
  };
24
64
  //# sourceMappingURL=index97.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index97.js","sources":["../../../node_modules/imask/esm/masked/function.js"],"sourcesContent":["import Masked from './base.js';\nimport IMask from '../core/holder.js';\nimport '../core/change-details.js';\nimport '../core/continuous-tail-details.js';\nimport '../core/utils.js';\n\n/** Masking by custom Function */\nclass MaskedFunction extends Masked {\n /** */\n\n /** Enable characters overwriting */\n\n /** */\n\n /** */\n\n /** */\n\n updateOptions(opts) {\n super.updateOptions(opts);\n }\n _update(opts) {\n super._update({\n ...opts,\n validate: opts.mask\n });\n }\n}\nIMask.MaskedFunction = MaskedFunction;\n\nexport { MaskedFunction as default };\n"],"names":["MaskedFunction","Masked","opts","IMask"],"mappings":";;;AAOA,MAAMA,UAAuBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWlC,cAAcC,GAAM;AAClB,UAAM,cAAcA,CAAI;AAAA,EAC1B;AAAA,EACA,QAAQA,GAAM;AACZ,UAAM,QAAQ;AAAA,MACZ,GAAGA;AAAA,MACH,UAAUA,EAAK;AAAA,IACrB,CAAK;AAAA,EACH;AACF;AACAC,EAAM,iBAAiBH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index97.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n// Should be the same as `DIGIT_PLACEHOLDER` in `libphonenumber-metadata-generator`.\nexport var DIGIT_PLACEHOLDER = 'x'; // '\\u2008' (punctuation space)\nvar DIGIT_PLACEHOLDER_MATCHER = new RegExp(DIGIT_PLACEHOLDER);\n\n// Counts all occurences of a symbol in a string.\n// Unicode-unsafe (because using `.split()`).\nexport function countOccurences(symbol, string) {\n var count = 0;\n // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for counting brackets it is safe.\n // for (const character of string)\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n if (character === symbol) {\n count++;\n }\n }\n return count;\n}\n\n// Repeats a string (or a symbol) N times.\n// http://stackoverflow.com/questions/202605/repeat-string-javascript\nexport function repeat(string, times) {\n if (times < 1) {\n return '';\n }\n var result = '';\n while (times > 1) {\n if (times & 1) {\n result += string;\n }\n times >>= 1;\n string += string;\n }\n return result + string;\n}\nexport function cutAndStripNonPairedParens(string, cutBeforeIndex) {\n if (string[cutBeforeIndex] === ')') {\n cutBeforeIndex++;\n }\n return stripNonPairedParens(string.slice(0, cutBeforeIndex));\n}\nexport function closeNonPairedParens(template, cut_before) {\n var retained_template = template.slice(0, cut_before);\n var opening_braces = countOccurences('(', retained_template);\n var closing_braces = countOccurences(')', retained_template);\n var dangling_braces = opening_braces - closing_braces;\n while (dangling_braces > 0 && cut_before < template.length) {\n if (template[cut_before] === ')') {\n dangling_braces--;\n }\n cut_before++;\n }\n return template.slice(0, cut_before);\n}\nexport function stripNonPairedParens(string) {\n var dangling_braces = [];\n var i = 0;\n while (i < string.length) {\n if (string[i] === '(') {\n dangling_braces.push(i);\n } else if (string[i] === ')') {\n dangling_braces.pop();\n }\n i++;\n }\n var start = 0;\n var cleared_string = '';\n dangling_braces.push(string.length);\n for (var _i = 0, _dangling_braces = dangling_braces; _i < _dangling_braces.length; _i++) {\n var index = _dangling_braces[_i];\n cleared_string += string.slice(start, index);\n start = index + 1;\n }\n return cleared_string;\n}\nexport function populateTemplateWithDigits(template, position, digits) {\n // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for `digits` it is safe.\n // for (const digit of digits)\n for (var _iterator2 = _createForOfIteratorHelperLoose(digits.split('')), _step2; !(_step2 = _iterator2()).done;) {\n var digit = _step2.value;\n // If there is room for more digits in current `template`,\n // then set the next digit in the `template`,\n // and return the formatted digits so far.\n // If more digits are entered than the current format could handle.\n if (template.slice(position + 1).search(DIGIT_PLACEHOLDER_MATCHER) < 0) {\n return;\n }\n position = template.search(DIGIT_PLACEHOLDER_MATCHER);\n template = template.replace(DIGIT_PLACEHOLDER_MATCHER, digit);\n }\n return [template, position];\n}\n//# sourceMappingURL=AsYouTypeFormatter.util.js.map"],"names":["_createForOfIteratorHelperLoose","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","DIGIT_PLACEHOLDER","DIGIT_PLACEHOLDER_MATCHER","repeat","string","times","result","cutAndStripNonPairedParens","cutBeforeIndex","stripNonPairedParens","dangling_braces","i","start","cleared_string","_i","_dangling_braces","index","populateTemplateWithDigits","template","position","digits","_iterator2","_step2","digit"],"mappings":"AAAA,SAASA,EAAgC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,QAAQ,KAAK,EAAE,YAAY;AAAG,MAAIA,EAAG,SAAQA,IAAIA,EAAE,KAAK,CAAC,GAAG,KAAK,KAAKA,CAAC;AAAG,MAAI,MAAM,QAAQ,CAAC,MAAMA,IAAIC,EAA4B,CAAC,MAAMF,GAAuC;AAAE,IAAAC,MAAM,IAAIA;AAAI,QAAIE,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAK,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAO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OACvBD,EAAgB,IAAG,GAErBC;AAEF,MAAIC,IAAQ,GACRC,IAAiB;AACrB,EAAAH,EAAgB,KAAKN,EAAO,MAAM;AAClC,WAASU,IAAK,GAAGC,IAAmBL,GAAiBI,IAAKC,EAAiB,QAAQD,KAAM;AACvF,QAAIE,IAAQD,EAAiBD,CAAE;AAC/B,IAAAD,KAAkBT,EAAO,MAAMQ,GAAOI,CAAK,GAC3CJ,IAAQI,IAAQ;AAAA,EAClB;AACA,SAAOH;AACT;AACO,SAASI,EAA2BC,GAAUC,GAAUC,GAAQ;AAMrE,WAASC,IAAa3B,EAAgC0B,EAAO,MAAM,EAAE,CAAC,GAAGE,GAAQ,EAAEA,IAASD,EAAU,GAAI,QAAO;AAC/G,QAAIE,IAAQD,EAAO;AAKnB,QAAIJ,EAAS,MAAMC,IAAW,CAAC,EAAE,OAAOjB,CAAyB,IAAI;AACnE;AAEF,IAAAiB,IAAWD,EAAS,OAAOhB,CAAyB,GACpDgB,IAAWA,EAAS,QAAQhB,GAA2BqB,CAAK;AAAA,EAC9D;AACA,SAAO,CAACL,GAAUC,CAAQ;AAC5B;","x_google_ignoreList":[0]}
package/dist/index98.js CHANGED
@@ -1,213 +1,50 @@
1
- import { escapeRegExp as d, DIRECTION as n } from "./index215.js";
2
- import m from "./index92.js";
3
- import _ from "./index93.js";
4
- import x from "./index91.js";
5
- var S;
6
- class i extends _ {
7
- /** Single char */
8
- /** Single char */
9
- /** Array of single chars */
10
- /** */
11
- /** */
12
- /** Digits after point */
13
- /** Flag to remove leading and trailing zeros in the end of editing */
14
- /** Flag to pad trailing zeros after point in the end of editing */
15
- /** Enable characters overwriting */
16
- /** */
17
- /** */
18
- /** */
19
- /** Format typed value to string */
20
- /** Parse string to get typed value */
21
- constructor(e) {
22
- super({
23
- ...i.DEFAULTS,
24
- ...e
1
+ import f from "./index218.js";
2
+ import u from "./index100.js";
3
+ import m from "./index101.js";
4
+ function p(a, t, r) {
5
+ var e = r.metadata, n = r.shouldTryNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix, i = new RegExp("^(?:".concat(t.pattern(), ")$"));
6
+ if (i.test(a.nationalSignificantNumber))
7
+ return N(a, t, {
8
+ metadata: e,
9
+ shouldTryNationalPrefixFormattingRule: n,
10
+ getSeparatorAfterNationalPrefix: o
25
11
  });
26
- }
27
- updateOptions(e) {
28
- super.updateOptions(e);
29
- }
30
- _update(e) {
31
- super._update(e), this._updateRegExps();
32
- }
33
- _updateRegExps() {
34
- const e = "^" + (this.allowNegative ? "[+|\\-]?" : ""), t = "\\d*", a = (this.scale ? "(" + d(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
35
- this._numberRegExp = new RegExp(e + t + a), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(d).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(d(this.thousandsSeparator), "g");
36
- }
37
- _removeThousandsSeparators(e) {
38
- return e.replace(this._thousandsSeparatorRegExp, "");
39
- }
40
- _insertThousandsSeparators(e) {
41
- const t = e.split(this.radix);
42
- return t[0] = t[0].replace(/\B(?=(\d{3})+(?!\d))/g, this.thousandsSeparator), t.join(this.radix);
43
- }
44
- doPrepareChar(e, t) {
45
- t === void 0 && (t = {});
46
- const [a, s] = super.doPrepareChar(this._removeThousandsSeparators(this.scale && this.mapToRadix.length && /*
47
- radix should be mapped when
48
- 1) input is done from keyboard = flags.input && flags.raw
49
- 2) unmasked value is set = !flags.input && !flags.raw
50
- and should not be mapped when
51
- 1) value is set = flags.input && !flags.raw
52
- 2) raw value is set = !flags.input && flags.raw
53
- */
54
- (t.input && t.raw || !t.input && !t.raw) ? e.replace(this._mapToRadixRegExp, this.radix) : e), t);
55
- return e && !a && (s.skip = !0), a && !this.allowPositive && !this.value && a !== "-" && s.aggregate(this._appendChar("-")), [a, s];
56
- }
57
- _separatorsCount(e, t) {
58
- t === void 0 && (t = !1);
59
- let a = 0;
60
- for (let s = 0; s < e; ++s)
61
- this._value.indexOf(this.thousandsSeparator, s) === s && (++a, t && (e += this.thousandsSeparator.length));
62
- return a;
63
- }
64
- _separatorsCountFromSlice(e) {
65
- return e === void 0 && (e = this._value), this._separatorsCount(this._removeThousandsSeparators(e).length, !0);
66
- }
67
- extractInput(e, t, a) {
68
- return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), [e, t] = this._adjustRangeWithSeparators(e, t), this._removeThousandsSeparators(super.extractInput(e, t, a));
69
- }
70
- _appendCharRaw(e, t) {
71
- t === void 0 && (t = {});
72
- const a = t.tail && t._beforeTailState ? t._beforeTailState._value : this._value, s = this._separatorsCountFromSlice(a);
73
- this._value = this._removeThousandsSeparators(this.value);
74
- const r = this._value;
75
- this._value += e;
76
- const h = this.number;
77
- let o = !isNaN(h), u = !1;
78
- if (o) {
79
- let p;
80
- this.min != null && this.min < 0 && this.number < this.min && (p = this.min), this.max != null && this.max > 0 && this.number > this.max && (p = this.max), p != null && (this.autofix ? (this._value = this.format(p, this).replace(i.UNMASKED_RADIX, this.radix), u || (u = r === this._value && !t.tail)) : o = !1), o && (o = !!this._value.match(this._numberRegExp));
81
- }
82
- let l;
83
- o ? l = new m({
84
- inserted: this._value.slice(r.length),
85
- rawInserted: u ? "" : e,
86
- skip: u
87
- }) : (this._value = r, l = new m()), this._value = this._insertThousandsSeparators(this._value);
88
- const v = t.tail && t._beforeTailState ? t._beforeTailState._value : this._value, f = this._separatorsCountFromSlice(v);
89
- return l.tailShift += (f - s) * this.thousandsSeparator.length, l;
90
- }
91
- _findSeparatorAround(e) {
92
- if (this.thousandsSeparator) {
93
- const t = e - this.thousandsSeparator.length + 1, a = this.value.indexOf(this.thousandsSeparator, t);
94
- if (a <= e) return a;
95
- }
96
- return -1;
97
- }
98
- _adjustRangeWithSeparators(e, t) {
99
- const a = this._findSeparatorAround(e);
100
- a >= 0 && (e = a);
101
- const s = this._findSeparatorAround(t);
102
- return s >= 0 && (t = s + this.thousandsSeparator.length), [e, t];
103
- }
104
- remove(e, t) {
105
- e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), [e, t] = this._adjustRangeWithSeparators(e, t);
106
- const a = this.value.slice(0, e), s = this.value.slice(t), r = this._separatorsCount(a.length);
107
- this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(a + s));
108
- const h = this._separatorsCountFromSlice(a);
109
- return new m({
110
- tailShift: (h - r) * this.thousandsSeparator.length
12
+ }
13
+ function c(a, t, r) {
14
+ return f(a, t, r) === "IS_POSSIBLE";
15
+ }
16
+ function N(a, t, r) {
17
+ var e = r.metadata, n = r.shouldTryNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix;
18
+ if (a.nationalSignificantNumber, a.international, a.nationalPrefix, a.carrierCode, n(t)) {
19
+ var i = l(a, t, {
20
+ useNationalPrefixFormattingRule: !0,
21
+ getSeparatorAfterNationalPrefix: o,
22
+ metadata: e
111
23
  });
112
- }
113
- nearestInputPos(e, t) {
114
- if (!this.thousandsSeparator) return e;
115
- switch (t) {
116
- case n.NONE:
117
- case n.LEFT:
118
- case n.FORCE_LEFT: {
119
- const a = this._findSeparatorAround(e - 1);
120
- if (a >= 0) {
121
- const s = a + this.thousandsSeparator.length;
122
- if (e < s || this.value.length <= s || t === n.FORCE_LEFT)
123
- return a;
124
- }
125
- break;
126
- }
127
- case n.RIGHT:
128
- case n.FORCE_RIGHT: {
129
- const a = this._findSeparatorAround(e);
130
- if (a >= 0)
131
- return a + this.thousandsSeparator.length;
132
- }
133
- }
134
- return e;
135
- }
136
- doCommit() {
137
- if (this.value) {
138
- const e = this.number;
139
- let t = e;
140
- this.min != null && (t = Math.max(t, this.min)), this.max != null && (t = Math.min(t, this.max)), t !== e && (this.unmaskedValue = this.format(t, this));
141
- let a = this.value;
142
- this.normalizeZeros && (a = this._normalizeZeros(a)), this.padFractionalZeros && this.scale > 0 && (a = this._padFractionalZeros(a)), this._value = a;
143
- }
144
- super.doCommit();
145
- }
146
- _normalizeZeros(e) {
147
- const t = this._removeThousandsSeparators(e).split(this.radix);
148
- return t[0] = t[0].replace(/^(\D*)(0*)(\d*)/, (a, s, r, h) => s + h), e.length && !/\d$/.test(t[0]) && (t[0] = t[0] + "0"), t.length > 1 && (t[1] = t[1].replace(/0*$/, ""), t[1].length || (t.length = 1)), this._insertThousandsSeparators(t.join(this.radix));
149
- }
150
- _padFractionalZeros(e) {
151
- if (!e) return e;
152
- const t = e.split(this.radix);
153
- return t.length < 2 && t.push(""), t[1] = t[1].padEnd(this.scale, "0"), t.join(this.radix);
154
- }
155
- doSkipInvalid(e, t, a) {
156
- t === void 0 && (t = {});
157
- const s = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e === i.UNMASKED_RADIX || this.mapToRadix.includes(e));
158
- return super.doSkipInvalid(e, t, a) && !s;
159
- }
160
- get unmaskedValue() {
161
- return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, i.UNMASKED_RADIX);
162
- }
163
- set unmaskedValue(e) {
164
- super.unmaskedValue = e;
165
- }
166
- get typedValue() {
167
- return this.parse(this.unmaskedValue, this);
168
- }
169
- set typedValue(e) {
170
- this.rawInputValue = this.format(e, this).replace(i.UNMASKED_RADIX, this.radix);
171
- }
172
- /** Parsed Number */
173
- get number() {
174
- return this.typedValue;
175
- }
176
- set number(e) {
177
- this.typedValue = e;
178
- }
179
- get allowNegative() {
180
- return this.min != null && this.min < 0 || this.max != null && this.max < 0;
181
- }
182
- get allowPositive() {
183
- return this.min != null && this.min > 0 || this.max != null && this.max > 0;
184
- }
185
- typedValueEquals(e) {
186
- return (super.typedValueEquals(e) || i.EMPTY_VALUES.includes(e) && i.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
187
- }
24
+ if (i)
25
+ return i;
26
+ }
27
+ return l(a, t, {
28
+ useNationalPrefixFormattingRule: !1,
29
+ getSeparatorAfterNationalPrefix: o,
30
+ metadata: e
31
+ });
32
+ }
33
+ function l(a, t, r) {
34
+ var e = r.metadata, n = r.useNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix, i = m(a.nationalSignificantNumber, t, {
35
+ carrierCode: a.carrierCode,
36
+ useInternationalFormat: a.international,
37
+ withNationalPrefix: n,
38
+ metadata: e
39
+ });
40
+ if (n || (a.nationalPrefix ? i = a.nationalPrefix + o(t) + i : a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (i = a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + i)), g(i, a))
41
+ return i;
42
+ }
43
+ function g(a, t) {
44
+ return u(a) === t.getNationalDigits();
188
45
  }
189
- S = i;
190
- i.UNMASKED_RADIX = ".";
191
- i.EMPTY_VALUES = [..._.EMPTY_VALUES, 0];
192
- i.DEFAULTS = {
193
- ..._.DEFAULTS,
194
- mask: Number,
195
- radix: ",",
196
- thousandsSeparator: "",
197
- mapToRadix: [S.UNMASKED_RADIX],
198
- min: Number.MIN_SAFE_INTEGER,
199
- max: Number.MAX_SAFE_INTEGER,
200
- scale: 2,
201
- normalizeZeros: !0,
202
- padFractionalZeros: !1,
203
- parse: Number,
204
- format: (c) => c.toLocaleString("en-US", {
205
- useGrouping: !1,
206
- maximumFractionDigits: 20
207
- })
208
- };
209
- x.MaskedNumber = i;
210
46
  export {
211
- i as default
47
+ c as canFormatCompleteNumber,
48
+ p as default
212
49
  };
213
50
  //# sourceMappingURL=index98.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index98.js","sources":["../../../node_modules/imask/esm/masked/number.js"],"sourcesContent":["import { escapeRegExp, DIRECTION } from '../core/utils.js';\nimport ChangeDetails from '../core/change-details.js';\nimport Masked from './base.js';\nimport IMask from '../core/holder.js';\nimport '../core/continuous-tail-details.js';\n\nvar _MaskedNumber;\n/** Number mask */\nclass MaskedNumber extends Masked {\n /** Single char */\n\n /** Single char */\n\n /** Array of single chars */\n\n /** */\n\n /** */\n\n /** Digits after point */\n\n /** Flag to remove leading and trailing zeros in the end of editing */\n\n /** Flag to pad trailing zeros after point in the end of editing */\n\n /** Enable characters overwriting */\n\n /** */\n\n /** */\n\n /** */\n\n /** Format typed value to string */\n\n /** Parse string to get typed value */\n\n constructor(opts) {\n super({\n ...MaskedNumber.DEFAULTS,\n ...opts\n });\n }\n updateOptions(opts) {\n super.updateOptions(opts);\n }\n _update(opts) {\n super._update(opts);\n this._updateRegExps();\n }\n _updateRegExps() {\n const start = '^' + (this.allowNegative ? '[+|\\\\-]?' : '');\n const mid = '\\\\d*';\n const end = (this.scale ? \"(\" + escapeRegExp(this.radix) + \"\\\\d{0,\" + this.scale + \"})?\" : '') + '$';\n this._numberRegExp = new RegExp(start + mid + end);\n this._mapToRadixRegExp = new RegExp(\"[\" + this.mapToRadix.map(escapeRegExp).join('') + \"]\", 'g');\n this._thousandsSeparatorRegExp = new RegExp(escapeRegExp(this.thousandsSeparator), 'g');\n }\n _removeThousandsSeparators(value) {\n return value.replace(this._thousandsSeparatorRegExp, '');\n }\n _insertThousandsSeparators(value) {\n // https://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript\n const parts = value.split(this.radix);\n parts[0] = parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, this.thousandsSeparator);\n return parts.join(this.radix);\n }\n doPrepareChar(ch, flags) {\n if (flags === void 0) {\n flags = {};\n }\n const [prepCh, details] = super.doPrepareChar(this._removeThousandsSeparators(this.scale && this.mapToRadix.length && (\n /*\n radix should be mapped when\n 1) input is done from keyboard = flags.input && flags.raw\n 2) unmasked value is set = !flags.input && !flags.raw\n and should not be mapped when\n 1) value is set = flags.input && !flags.raw\n 2) raw value is set = !flags.input && flags.raw\n */\n flags.input && flags.raw || !flags.input && !flags.raw) ? ch.replace(this._mapToRadixRegExp, this.radix) : ch), flags);\n if (ch && !prepCh) details.skip = true;\n if (prepCh && !this.allowPositive && !this.value && prepCh !== '-') details.aggregate(this._appendChar('-'));\n return [prepCh, details];\n }\n _separatorsCount(to, extendOnSeparators) {\n if (extendOnSeparators === void 0) {\n extendOnSeparators = false;\n }\n let count = 0;\n for (let pos = 0; pos < to; ++pos) {\n if (this._value.indexOf(this.thousandsSeparator, pos) === pos) {\n ++count;\n if (extendOnSeparators) to += this.thousandsSeparator.length;\n }\n }\n return count;\n }\n _separatorsCountFromSlice(slice) {\n if (slice === void 0) {\n slice = this._value;\n }\n return this._separatorsCount(this._removeThousandsSeparators(slice).length, true);\n }\n extractInput(fromPos, toPos, flags) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n [fromPos, toPos] = this._adjustRangeWithSeparators(fromPos, toPos);\n return this._removeThousandsSeparators(super.extractInput(fromPos, toPos, flags));\n }\n _appendCharRaw(ch, flags) {\n if (flags === void 0) {\n flags = {};\n }\n const prevBeforeTailValue = flags.tail && flags._beforeTailState ? flags._beforeTailState._value : this._value;\n const prevBeforeTailSeparatorsCount = this._separatorsCountFromSlice(prevBeforeTailValue);\n this._value = this._removeThousandsSeparators(this.value);\n const oldValue = this._value;\n this._value += ch;\n const num = this.number;\n let accepted = !isNaN(num);\n let skip = false;\n if (accepted) {\n let fixedNum;\n if (this.min != null && this.min < 0 && this.number < this.min) fixedNum = this.min;\n if (this.max != null && this.max > 0 && this.number > this.max) fixedNum = this.max;\n if (fixedNum != null) {\n if (this.autofix) {\n this._value = this.format(fixedNum, this).replace(MaskedNumber.UNMASKED_RADIX, this.radix);\n skip || (skip = oldValue === this._value && !flags.tail); // if not changed on tail it's still ok to proceed\n } else {\n accepted = false;\n }\n }\n accepted && (accepted = Boolean(this._value.match(this._numberRegExp)));\n }\n let appendDetails;\n if (!accepted) {\n this._value = oldValue;\n appendDetails = new ChangeDetails();\n } else {\n appendDetails = new ChangeDetails({\n inserted: this._value.slice(oldValue.length),\n rawInserted: skip ? '' : ch,\n skip\n });\n }\n this._value = this._insertThousandsSeparators(this._value);\n const beforeTailValue = flags.tail && flags._beforeTailState ? flags._beforeTailState._value : this._value;\n const beforeTailSeparatorsCount = this._separatorsCountFromSlice(beforeTailValue);\n appendDetails.tailShift += (beforeTailSeparatorsCount - prevBeforeTailSeparatorsCount) * this.thousandsSeparator.length;\n return appendDetails;\n }\n _findSeparatorAround(pos) {\n if (this.thousandsSeparator) {\n const searchFrom = pos - this.thousandsSeparator.length + 1;\n const separatorPos = this.value.indexOf(this.thousandsSeparator, searchFrom);\n if (separatorPos <= pos) return separatorPos;\n }\n return -1;\n }\n _adjustRangeWithSeparators(from, to) {\n const separatorAroundFromPos = this._findSeparatorAround(from);\n if (separatorAroundFromPos >= 0) from = separatorAroundFromPos;\n const separatorAroundToPos = this._findSeparatorAround(to);\n if (separatorAroundToPos >= 0) to = separatorAroundToPos + this.thousandsSeparator.length;\n return [from, to];\n }\n remove(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n [fromPos, toPos] = this._adjustRangeWithSeparators(fromPos, toPos);\n const valueBeforePos = this.value.slice(0, fromPos);\n const valueAfterPos = this.value.slice(toPos);\n const prevBeforeTailSeparatorsCount = this._separatorsCount(valueBeforePos.length);\n this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(valueBeforePos + valueAfterPos));\n const beforeTailSeparatorsCount = this._separatorsCountFromSlice(valueBeforePos);\n return new ChangeDetails({\n tailShift: (beforeTailSeparatorsCount - prevBeforeTailSeparatorsCount) * this.thousandsSeparator.length\n });\n }\n nearestInputPos(cursorPos, direction) {\n if (!this.thousandsSeparator) return cursorPos;\n switch (direction) {\n case DIRECTION.NONE:\n case DIRECTION.LEFT:\n case DIRECTION.FORCE_LEFT:\n {\n const separatorAtLeftPos = this._findSeparatorAround(cursorPos - 1);\n if (separatorAtLeftPos >= 0) {\n const separatorAtLeftEndPos = separatorAtLeftPos + this.thousandsSeparator.length;\n if (cursorPos < separatorAtLeftEndPos || this.value.length <= separatorAtLeftEndPos || direction === DIRECTION.FORCE_LEFT) {\n return separatorAtLeftPos;\n }\n }\n break;\n }\n case DIRECTION.RIGHT:\n case DIRECTION.FORCE_RIGHT:\n {\n const separatorAtRightPos = this._findSeparatorAround(cursorPos);\n if (separatorAtRightPos >= 0) {\n return separatorAtRightPos + this.thousandsSeparator.length;\n }\n }\n }\n return cursorPos;\n }\n doCommit() {\n if (this.value) {\n const number = this.number;\n let validnum = number;\n\n // check bounds\n if (this.min != null) validnum = Math.max(validnum, this.min);\n if (this.max != null) validnum = Math.min(validnum, this.max);\n if (validnum !== number) this.unmaskedValue = this.format(validnum, this);\n let formatted = this.value;\n if (this.normalizeZeros) formatted = this._normalizeZeros(formatted);\n if (this.padFractionalZeros && this.scale > 0) formatted = this._padFractionalZeros(formatted);\n this._value = formatted;\n }\n super.doCommit();\n }\n _normalizeZeros(value) {\n const parts = this._removeThousandsSeparators(value).split(this.radix);\n\n // remove leading zeros\n parts[0] = parts[0].replace(/^(\\D*)(0*)(\\d*)/, (match, sign, zeros, num) => sign + num);\n // add leading zero\n if (value.length && !/\\d$/.test(parts[0])) parts[0] = parts[0] + '0';\n if (parts.length > 1) {\n parts[1] = parts[1].replace(/0*$/, ''); // remove trailing zeros\n if (!parts[1].length) parts.length = 1; // remove fractional\n }\n return this._insertThousandsSeparators(parts.join(this.radix));\n }\n _padFractionalZeros(value) {\n if (!value) return value;\n const parts = value.split(this.radix);\n if (parts.length < 2) parts.push('');\n parts[1] = parts[1].padEnd(this.scale, '0');\n return parts.join(this.radix);\n }\n doSkipInvalid(ch, flags, checkTail) {\n if (flags === void 0) {\n flags = {};\n }\n const dropFractional = this.scale === 0 && ch !== this.thousandsSeparator && (ch === this.radix || ch === MaskedNumber.UNMASKED_RADIX || this.mapToRadix.includes(ch));\n return super.doSkipInvalid(ch, flags, checkTail) && !dropFractional;\n }\n get unmaskedValue() {\n return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, MaskedNumber.UNMASKED_RADIX);\n }\n set unmaskedValue(unmaskedValue) {\n super.unmaskedValue = unmaskedValue;\n }\n get typedValue() {\n return this.parse(this.unmaskedValue, this);\n }\n set typedValue(n) {\n this.rawInputValue = this.format(n, this).replace(MaskedNumber.UNMASKED_RADIX, this.radix);\n }\n\n /** Parsed Number */\n get number() {\n return this.typedValue;\n }\n set number(number) {\n this.typedValue = number;\n }\n get allowNegative() {\n return this.min != null && this.min < 0 || this.max != null && this.max < 0;\n }\n get allowPositive() {\n return this.min != null && this.min > 0 || this.max != null && this.max > 0;\n }\n typedValueEquals(value) {\n // handle 0 -> '' case (typed = 0 even if value = '')\n // for details see https://github.com/uNmAnNeR/imaskjs/issues/134\n return (super.typedValueEquals(value) || MaskedNumber.EMPTY_VALUES.includes(value) && MaskedNumber.EMPTY_VALUES.includes(this.typedValue)) && !(value === 0 && this.value === '');\n }\n}\n_MaskedNumber = MaskedNumber;\nMaskedNumber.UNMASKED_RADIX = '.';\nMaskedNumber.EMPTY_VALUES = [...Masked.EMPTY_VALUES, 0];\nMaskedNumber.DEFAULTS = {\n ...Masked.DEFAULTS,\n mask: Number,\n radix: ',',\n thousandsSeparator: '',\n mapToRadix: [_MaskedNumber.UNMASKED_RADIX],\n min: Number.MIN_SAFE_INTEGER,\n max: Number.MAX_SAFE_INTEGER,\n scale: 2,\n normalizeZeros: true,\n padFractionalZeros: false,\n parse: Number,\n format: n => n.toLocaleString('en-US', {\n useGrouping: false,\n maximumFractionDigits: 20\n })\n};\nIMask.MaskedNumber = MaskedNumber;\n\nexport { MaskedNumber as default };\n"],"names":["_MaskedNumber","MaskedNumber","Masked","opts","start","mid","end","escapeRegExp","value","parts","ch","flags","prepCh","details","to","extendOnSeparators","count","pos","slice","fromPos","toPos","prevBeforeTailValue","prevBeforeTailSeparatorsCount","oldValue","num","accepted","skip","fixedNum","appendDetails","ChangeDetails","beforeTailValue","beforeTailSeparatorsCount","searchFrom","separatorPos","from","separatorAroundFromPos","separatorAroundToPos","valueBeforePos","valueAfterPos","cursorPos","direction","DIRECTION","separatorAtLeftPos","separatorAtLeftEndPos","separatorAtRightPos","number","validnum","formatted","match","sign","zeros","checkTail","dropFractional","unmaskedValue","n","IMask"],"mappings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;AAAA,EAC5E;AAAA,EACA,iBAAiBrC,GAAO;AAGtB,YAAQ,MAAM,iBAAiBA,CAAK,KAAKP,EAAa,aAAa,SAASO,CAAK,KAAKP,EAAa,aAAa,SAAS,KAAK,UAAU,MAAM,EAAEO,MAAU,KAAK,KAAK,UAAU;AAAA,EAChL;AACF;AACAR,IAAgBC;AAChBA,EAAa,iBAAiB;AAC9BA,EAAa,eAAe,CAAC,GAAGC,EAAO,cAAc,CAAC;AACtDD,EAAa,WAAW;AAAA,EACtB,GAAGC,EAAO;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,oBAAoB;AAAA,EACpB,YAAY,CAACF,EAAc,cAAc;AAAA,EACzC,KAAK,OAAO;AAAA,EACZ,KAAK,OAAO;AAAA,EACZ,OAAO;AAAA,EACP,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,OAAO;AAAA,EACP,QAAQ,CAAAsD,MAAKA,EAAE,eAAe,SAAS;AAAA,IACrC,aAAa;AAAA,IACb,uBAAuB;AAAA,EAC3B,CAAG;AACH;AACAC,EAAM,eAAetD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index98.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js"],"sourcesContent":["import checkNumberLength from './helpers/checkNumberLength.js';\nimport parseDigits from './helpers/parseDigits.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nexport default function formatCompleteNumber(state, format, _ref) {\n var metadata = _ref.metadata,\n shouldTryNationalPrefixFormattingRule = _ref.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref.getSeparatorAfterNationalPrefix;\n var matcher = new RegExp(\"^(?:\".concat(format.pattern(), \")$\"));\n if (matcher.test(state.nationalSignificantNumber)) {\n return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, {\n metadata: metadata,\n shouldTryNationalPrefixFormattingRule: shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix\n });\n }\n}\nexport function canFormatCompleteNumber(nationalSignificantNumber, country, metadata) {\n return checkNumberLength(nationalSignificantNumber, country, metadata) === 'IS_POSSIBLE';\n}\nfunction formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, _ref2) {\n var metadata = _ref2.metadata,\n shouldTryNationalPrefixFormattingRule = _ref2.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref2.getSeparatorAfterNationalPrefix;\n // `format` has already been checked for `nationalPrefix` requirement.\n\n var nationalSignificantNumber = state.nationalSignificantNumber,\n international = state.international,\n nationalPrefix = state.nationalPrefix,\n carrierCode = state.carrierCode;\n\n // Format the number with using `national_prefix_formatting_rule`.\n // If the resulting formatted number is a valid formatted number, then return it.\n //\n // Google's AsYouType formatter is different in a way that it doesn't try\n // to format using the \"national prefix formatting rule\", and instead it\n // simply prepends a national prefix followed by a \" \" character.\n // This code does that too, but as a fallback.\n // The reason is that \"national prefix formatting rule\" may use parentheses,\n // which wouldn't be included has it used the simpler Google's way.\n //\n if (shouldTryNationalPrefixFormattingRule(format)) {\n var formattedNumber = formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: true,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n if (formattedNumber) {\n return formattedNumber;\n }\n }\n\n // Format the number without using `national_prefix_formatting_rule`.\n return formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: false,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n}\nfunction formatNationalNumber(state, format, _ref3) {\n var metadata = _ref3.metadata,\n useNationalPrefixFormattingRule = _ref3.useNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref3.getSeparatorAfterNationalPrefix;\n var formattedNationalNumber = formatNationalNumberUsingFormat(state.nationalSignificantNumber, format, {\n carrierCode: state.carrierCode,\n useInternationalFormat: state.international,\n withNationalPrefix: useNationalPrefixFormattingRule,\n metadata: metadata\n });\n if (!useNationalPrefixFormattingRule) {\n if (state.nationalPrefix) {\n // If a national prefix was extracted, then just prepend it,\n // followed by a \" \" character.\n formattedNationalNumber = state.nationalPrefix + getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;\n } else if (state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) {\n formattedNationalNumber = state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + ' ' + formattedNationalNumber;\n }\n }\n if (isValidFormattedNationalNumber(formattedNationalNumber, state)) {\n return formattedNationalNumber;\n }\n}\n\n// Check that the formatted phone number contains exactly\n// the same digits that have been input by the user.\n// For example, when \"0111523456789\" is input for `AR` country,\n// the extracted `this.nationalSignificantNumber` is \"91123456789\",\n// which means that the national part of `this.digits` isn't simply equal to\n// `this.nationalPrefix` + `this.nationalSignificantNumber`.\n//\n// Also, a `format` can add extra digits to the `this.nationalSignificantNumber`\n// being formatted via `metadata[country].national_prefix_transform_rule`.\n// For example, for `VI` country, it prepends `340` to the national number,\n// and if this check hasn't been implemented, then there would be a bug\n// when `340` \"area coude\" is \"duplicated\" during input for `VI` country:\n// https://github.com/catamphetamine/libphonenumber-js/issues/318\n//\n// So, all these \"gotchas\" are filtered out.\n//\n// In the original Google's code, the comments say:\n// \"Check that we didn't remove nor add any extra digits when we matched\n// this formatting pattern. This usually happens after we entered the last\n// digit during AYTF. Eg: In case of MX, we swallow mobile token (1) when\n// formatted but AYTF should retain all the number entered and not change\n// in order to match a format (of same leading digits and length) display\n// in that way.\"\n// \"If it's the same (i.e entered number and format is same), then it's\n// safe to return this in formatted number as nothing is lost / added.\"\n// Otherwise, don't use this format.\n// https://github.com/google/libphonenumber/commit/3e7c1f04f5e7200f87fb131e6f85c6e99d60f510#diff-9149457fa9f5d608a11bb975c6ef4bc5\n// https://github.com/google/libphonenumber/commit/3ac88c7106e7dcb553bcc794b15f19185928a1c6#diff-2dcb77e833422ee304da348b905cde0b\n//\nfunction isValidFormattedNationalNumber(formattedNationalNumber, state) {\n return parseDigits(formattedNationalNumber) === state.getNationalDigits();\n}\n//# sourceMappingURL=AsYouTypeFormatter.complete.js.map"],"names":["formatCompleteNumber","state","format","_ref","metadata","shouldTryNationalPrefixFormattingRule","getSeparatorAfterNationalPrefix","matcher","formatNationalNumberWithAndWithoutNationalPrefixFormattingRule","canFormatCompleteNumber","nationalSignificantNumber","country","checkNumberLength","_ref2","formattedNumber","formatNationalNumber","_ref3","useNationalPrefixFormattingRule","formattedNationalNumber","formatNationalNumberUsingFormat","isValidFormattedNationalNumber","parseDigits"],"mappings":";;;AAGe,SAASA,EAAqBC,GAAOC,GAAQC,GAAM;AAChE,MAAIC,IAAWD,EAAK,UAClBE,IAAwCF,EAAK,uCAC7CG,IAAkCH,EAAK,iCACrCI,IAAU,IAAI,OAAO,OAAO,OAAOL,EAAO,WAAW,IAAI,CAAC;AAC9D,MAAIK,EAAQ,KAAKN,EAAM,yBAAyB;AAC9C,WAAOO,EAA+DP,GAAOC,GAAQ;AAAA,MACnF,UAAUE;AAAA,MACV,uCAAuCC;AAAA,MACvC,iCAAiCC;AAAA,IACvC,CAAK;AAEL;AACO,SAASG,EAAwBC,GAA2BC,GAASP,GAAU;AACpF,SAAOQ,EAAkBF,GAA2BC,GAASP,CAAQ,MAAM;AAC7E;AACA,SAASI,EAA+DP,GAAOC,GAAQW,GAAO;AAC5F,MAAIT,IAAWS,EAAM,UACnBR,IAAwCQ,EAAM,uCAC9CP,IAAkCO,EAAM;AAkB1C,MAfgCZ,EAAM,2BACpBA,EAAM,eACLA,EAAM,gBACTA,EAAM,aAYlBI,EAAsCH,CAAM,GAAG;AACjD,QAAIY,IAAkBC,EAAqBd,GAAOC,GAAQ;AAAA,MACxD,iCAAiC;AAAA,MACjC,iCAAiCI;AAAA,MACjC,UAAUF;AAAA,IAChB,CAAK;AACD,QAAIU;AACF,aAAOA;AAAA,EAEX;AAGA,SAAOC,EAAqBd,GAAOC,GAAQ;AAAA,IACzC,iCAAiC;AA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