@rpcbase/ui 0.164.0 → 0.165.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index10.js +1 -1
- package/dist/index100.js +4 -24
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +4 -6
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +6 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +145 -6
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +39 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +4 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +7 -5
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +13 -4
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +13 -8
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +7 -5
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +6 -15
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +31 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +10 -4
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +10 -6
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +7 -144
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +11 -37
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +101 -4
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +20 -8
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +53 -13
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +72 -13
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +9 -7
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.js +18 -29
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +16 -10
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +23 -10
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +6 -8
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +5 -13
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +23 -101
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +35 -20
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +16 -54
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +6 -72
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +4 -9
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +4 -20
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -16
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -23
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +3 -6
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +6 -5
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +24 -24
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +8 -35
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +7 -16
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +5 -6
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +3 -4
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +4 -4
- package/dist/index140.js +3 -4
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -4
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +3 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +4 -3
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +3 -6
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -24
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +3 -7
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +46 -6
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +46 -5
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +205 -3
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +1 -1
- package/dist/index150.js +22 -4
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +24 -4
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +399 -3
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +5 -4
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +68 -3
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +2 -4
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +363 -3
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +261 -3
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +56 -29
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +43 -246
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +160 -105
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +105 -215
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +24 -66
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +8 -21
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -209
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +5 -319
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +4 -130
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +464 -18
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +179 -69
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +105 -16
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +253 -92
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +10 -5
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +42 -14
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +5 -2
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +67 -7
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +177 -323
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +44 -47
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +58 -46
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +8 -46
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +62 -201
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +3 -12
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +20 -22
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +16 -24
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +4 -398
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +5 -3
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +6 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -68
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +8 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +17 -363
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +5 -261
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -60
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +7 -7
- package/dist/index190.js +13 -46
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +10 -169
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +14 -109
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +14 -24
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +6 -8
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +6 -4
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +7 -5
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +6 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +9 -466
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -185
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.js +5 -107
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +9 -262
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +5 -9
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +5 -42
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +4 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +12 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +10 -67
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +10 -84
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +11 -46
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +11 -7
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +10 -4
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +7 -51
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -67
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +5 -180
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +6 -46
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +7 -58
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +6 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +54 -65
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +23 -19
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +14 -14
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +1 -1
- package/dist/index220.js +7 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +9 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +10 -6
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +21 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +10 -7
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +9 -17
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +9 -5
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +4 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +5 -13
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +16 -10
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +2 -2
- package/dist/index230.js +9 -14
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +18 -14
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +15 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +12 -6
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +29 -7
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +12 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +25 -9
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +5 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +24 -5
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +29 -10
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +5 -6
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -5
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +154 -4
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +30 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +9 -10
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +47 -10
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +11 -11
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +44 -11
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +95 -10
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +86 -7
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +105 -6
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +52 -5
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -6
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +37 -7
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +8 -6
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +112 -51
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +17 -23
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +14 -15
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +3 -7
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +35 -9
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +19 -9
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -21
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +8 -10
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +19 -9
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +28 -9
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +16 -4
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +18 -16
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +12 -9
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +5 -19
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +37 -3
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +3 -16
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +23 -12
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +112 -29
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +15 -12
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +523 -24
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +127 -5
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +129 -60
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +20 -48
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +5 -39
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +5 -100
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +3 -125
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +4 -98
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +15 -99
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +8 -24
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -29
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +5 -5
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +546 -2
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +47 -2
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +16 -12
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +6 -154
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +8 -30
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +124 -47
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +7 -9
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +8 -47
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +12 -11
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +9 -44
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +13 -95
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +59 -81
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +64 -101
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +9 -53
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +13 -11
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +66 -38
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +230 -218
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +4 -8
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +54 -115
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +68 -18
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +31 -16
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +9 -4
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +151 -35
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +107 -20
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +3 -9
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +22 -8
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +14 -18
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +49 -42
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +27 -27
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +12 -16
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +6 -4
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +22 -18
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +13 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +28 -5
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +5 -3
- package/dist/index316.js.map +1 -1
- package/dist/index32.js +2638 -38
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +390 -25
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +230 -43
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +20 -30
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +137 -23
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +187 -23
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +75 -127
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +87 -228
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +6 -51
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +804 -2601
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +63 -391
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +7 -232
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +2 -22
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +21 -139
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +230 -183
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +202 -74
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +2 -91
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +2 -6
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +6 -843
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +34 -66
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +24 -34
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +7 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +12 -2
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +3 -23
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +46 -232
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +49 -203
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +7 -6
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +14 -33
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +129 -22
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +10 -7
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +216 -11
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +13 -4
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +43 -44
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +47 -48
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +3 -7
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +5 -14
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +27 -133
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +50 -11
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +8 -216
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +54 -13
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +5 -46
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +7 -49
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +6 -4
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +605 -5
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +52 -28
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +5 -50
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +5 -9
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +16 -2
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +1 -1
- package/dist/index80.js +6 -2
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +7 -53
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +16 -5
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +4 -7
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +4 -5
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +5 -605
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +6 -52
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +3 -3
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +4 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +5 -14
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.js +24 -5
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +6 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +3 -15
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +6 -4
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +5 -4
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +4 -5
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +5 -5
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +4 -4
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +7 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +5 -6
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index317.js +0 -27
- package/dist/index317.js.map +0 -1
- package/dist/index318.js +0 -116
- package/dist/index318.js.map +0 -1
- package/dist/index319.js +0 -19
- package/dist/index319.js.map +0 -1
- package/dist/index320.js +0 -528
- package/dist/index320.js.map +0 -1
- package/dist/index321.js +0 -131
- package/dist/index321.js.map +0 -1
- package/dist/index322.js +0 -137
- package/dist/index322.js.map +0 -1
- package/dist/index323.js +0 -24
- package/dist/index323.js.map +0 -1
- package/dist/index324.js +0 -9
- package/dist/index324.js.map +0 -1
- package/dist/index325.js +0 -9
- package/dist/index325.js.map +0 -1
- package/dist/index326.js +0 -7
- package/dist/index326.js.map +0 -1
- package/dist/index327.js +0 -19
- package/dist/index327.js.map +0 -1
- package/dist/index328.js +0 -12
- package/dist/index328.js.map +0 -1
- package/dist/index329.js +0 -9
- package/dist/index329.js.map +0 -1
- package/dist/index330.js +0 -8
- package/dist/index330.js.map +0 -1
- package/dist/index331.js +0 -549
- package/dist/index331.js.map +0 -1
- package/dist/index332.js +0 -50
- package/dist/index332.js.map +0 -1
- package/dist/index333.js +0 -21
- package/dist/index333.js.map +0 -1
- package/dist/index334.js +0 -10
- package/dist/index334.js.map +0 -1
- package/dist/index335.js +0 -12
- package/dist/index335.js.map +0 -1
- package/dist/index336.js +0 -11
- package/dist/index336.js.map +0 -1
- package/dist/index337.js +0 -12
- package/dist/index337.js.map +0 -1
- package/dist/index338.js +0 -16
- package/dist/index338.js.map +0 -1
- package/dist/index339.js +0 -13
- package/dist/index339.js.map +0 -1
- package/dist/index340.js +0 -17
- package/dist/index340.js.map +0 -1
- package/dist/index341.js +0 -68
- package/dist/index341.js.map +0 -1
- package/dist/index342.js +0 -72
- package/dist/index342.js.map +0 -1
- package/dist/index343.js +0 -12
- package/dist/index343.js.map +0 -1
- package/dist/index344.js +0 -17
- package/dist/index344.js.map +0 -1
- package/dist/index345.js +0 -69
- package/dist/index345.js.map +0 -1
- package/dist/index346.js +0 -71
- package/dist/index346.js.map +0 -1
- package/dist/index347.js +0 -34
- package/dist/index347.js.map +0 -1
- package/dist/index348.js +0 -12
- package/dist/index348.js.map +0 -1
- package/dist/index349.js +0 -156
- package/dist/index349.js.map +0 -1
- package/dist/index350.js +0 -111
- package/dist/index350.js.map +0 -1
- package/dist/index351.js +0 -8
- package/dist/index351.js.map +0 -1
- package/dist/index352.js +0 -59
- package/dist/index352.js.map +0 -1
- package/dist/index353.js +0 -7
- package/dist/index353.js.map +0 -1
- package/dist/index354.js +0 -26
- package/dist/index354.js.map +0 -1
- package/dist/index355.js +0 -19
- package/dist/index355.js.map +0 -1
- package/dist/index356.js +0 -32
- package/dist/index356.js.map +0 -1
- package/dist/index357.js +0 -16
- package/dist/index357.js.map +0 -1
- package/dist/index358.js +0 -10
- package/dist/index358.js.map +0 -1
- package/dist/index359.js +0 -26
- package/dist/index359.js.map +0 -1
- package/dist/index360.js +0 -16
- package/dist/index360.js.map +0 -1
- package/dist/index361.js +0 -31
- package/dist/index361.js.map +0 -1
- package/dist/index362.js +0 -8
- package/dist/index362.js.map +0 -1
package/dist/index160.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index160.js","sources":["../../../node_modules/imask/esm/masked/date.js"],"sourcesContent":["import MaskedPattern from './pattern.js';\nimport MaskedRange from './range.js';\nimport IMask from '../core/holder.js';\nimport { isString } from '../core/utils.js';\nimport '../core/change-details.js';\nimport './base.js';\nimport '../core/continuous-tail-details.js';\nimport './factory.js';\nimport './pattern/chunk-tail-details.js';\nimport './pattern/cursor.js';\nimport './pattern/fixed-definition.js';\nimport './pattern/input-definition.js';\nimport './regexp.js';\n\nconst DefaultPattern = 'd{.}`m{.}`Y';\n\n// Make format and parse required when pattern is provided\n\n/** Date mask */\nclass MaskedDate extends MaskedPattern {\n static extractPatternOptions(opts) {\n const {\n mask,\n pattern,\n ...patternOpts\n } = opts;\n return {\n ...patternOpts,\n mask: isString(mask) ? mask : pattern\n };\n }\n\n /** Pattern mask for date according to {@link MaskedDate#format} */\n\n /** Start date */\n\n /** End date */\n\n /** Format typed value to string */\n\n /** Parse string to get typed value */\n\n constructor(opts) {\n super(MaskedDate.extractPatternOptions({\n ...MaskedDate.DEFAULTS,\n ...opts\n }));\n }\n updateOptions(opts) {\n super.updateOptions(opts);\n }\n _update(opts) {\n const {\n mask,\n pattern,\n blocks,\n ...patternOpts\n } = {\n ...MaskedDate.DEFAULTS,\n ...opts\n };\n const patternBlocks = Object.assign({}, MaskedDate.GET_DEFAULT_BLOCKS());\n // adjust year block\n if (opts.min) patternBlocks.Y.from = opts.min.getFullYear();\n if (opts.max) patternBlocks.Y.to = opts.max.getFullYear();\n if (opts.min && opts.max && patternBlocks.Y.from === patternBlocks.Y.to) {\n patternBlocks.m.from = opts.min.getMonth() + 1;\n patternBlocks.m.to = opts.max.getMonth() + 1;\n if (patternBlocks.m.from === patternBlocks.m.to) {\n patternBlocks.d.from = opts.min.getDate();\n patternBlocks.d.to = opts.max.getDate();\n }\n }\n Object.assign(patternBlocks, this.blocks, blocks);\n super._update({\n ...patternOpts,\n mask: isString(mask) ? mask : pattern,\n blocks: patternBlocks\n });\n }\n doValidate(flags) {\n const date = this.date;\n return super.doValidate(flags) && (!this.isComplete || this.isDateExist(this.value) && date != null && (this.min == null || this.min <= date) && (this.max == null || date <= this.max));\n }\n\n /** Checks if date is exists */\n isDateExist(str) {\n return this.format(this.parse(str, this), this).indexOf(str) >= 0;\n }\n\n /** Parsed Date */\n get date() {\n return this.typedValue;\n }\n set date(date) {\n this.typedValue = date;\n }\n get typedValue() {\n return this.isComplete ? super.typedValue : null;\n }\n set typedValue(value) {\n super.typedValue = value;\n }\n maskEquals(mask) {\n return mask === Date || super.maskEquals(mask);\n }\n optionsIsChanged(opts) {\n return super.optionsIsChanged(MaskedDate.extractPatternOptions(opts));\n }\n}\nMaskedDate.GET_DEFAULT_BLOCKS = () => ({\n d: {\n mask: MaskedRange,\n from: 1,\n to: 31,\n maxLength: 2\n },\n m: {\n mask: MaskedRange,\n from: 1,\n to: 12,\n maxLength: 2\n },\n Y: {\n mask: MaskedRange,\n from: 1900,\n to: 9999\n }\n});\nMaskedDate.DEFAULTS = {\n ...MaskedPattern.DEFAULTS,\n mask: Date,\n pattern: DefaultPattern,\n format: (date, masked) => {\n if (!date) return '';\n const day = String(date.getDate()).padStart(2, '0');\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const year = date.getFullYear();\n return [day, month, year].join('.');\n },\n parse: (str, masked) => {\n const [day, month, year] = str.split('.').map(Number);\n return new Date(year, month - 1, day);\n }\n};\nIMask.MaskedDate = MaskedDate;\n\nexport { MaskedDate as default };\n"],"names":["DefaultPattern","MaskedDate","MaskedPattern","opts","mask","pattern","patternOpts","isString","blocks","patternBlocks","flags","date","str","value","MaskedRange","masked","day","month","year","IMask"],"mappings":";;;;;;;;;AAcA,MAAMA,IAAiB;AAKvB,MAAMC,UAAmBC,EAAc;AAAA,EACrC,OAAO,sBAAsBC,GAAM;AACjC,UAAM;AAAA,MACJ,MAAAC;AAAA,MACA,SAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQH;AACJ,WAAO;AAAA,MACL,GAAGG;AAAA,MACH,MAAMC,EAASH,CAAI,IAAIA,IAAOC;AAAA,IACpC;AAAA,EACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,YAAYF,GAAM;AAChB,UAAMF,EAAW,sBAAsB;AAAA,MACrC,GAAGA,EAAW;AAAA,MACd,GAAGE;AAAA,IACT,CAAK,CAAC;AAAA,EACJ;AAAA,EACA,cAAcA,GAAM;AAClB,UAAM,cAAcA,CAAI;AAAA,EAC1B;AAAA,EACA,QAAQA,GAAM;AACZ,UAAM;AAAA,MACJ,MAAAC;AAAA,MACA,SAAAC;AAAA,MACA,QAAAG;AAAA,MACA,GAAGF;AAAA,IACT,IAAQ;AAAA,MACF,GAAGL,EAAW;AAAA,MACd,GAAGE;AAAA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ACpB,UAAM,aAAaA;AAAA,EACrB;AAAA,EACA,WAAWT,GAAM;AACf,WAAOA,MAAS,QAAQ,MAAM,WAAWA,CAAI;AAAA,EAC/C;AAAA,EACA,iBAAiBD,GAAM;AACrB,WAAO,MAAM,iBAAiBF,EAAW,sBAAsBE,CAAI,CAAC;AAAA,EACtE;AACF;AACAF,EAAW,qBAAqB,OAAO;AAAA,EACrC,GAAG;AAAA,IACD,MAAMa;AAAA,IACN,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,WAAW;AAAA,EACf;AAAA,EACE,GAAG;AAAA,IACD,MAAMA;AAAA,IACN,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,WAAW;AAAA,EACf;AAAA,EACE,GAAG;AAAA,IACD,MAAMA;AAAA,IACN,MAAM;AAAA,IACN,IAAI;AAAA,EACR;AACA;AACAb,EAAW,WAAW;AAAA,EACpB,GAAGC,EAAc;AAAA,EACjB,MAAM;AAAA,EACN,SAASF;AAAA,EACT,QAAQ,CAACW,GAAMI,MAAW;AACxB,QAAI,CAACJ,EAAM,QAAO;AAClB,UAAMK,IAAM,OAAOL,EAAK,QAAO,CAAE,EAAE,SAAS,GAAG,GAAG,GAC5CM,IAAQ,OAAON,EAAK,SAAQ,IAAK,CAAC,EAAE,SAAS,GAAG,GAAG,GACnDO,IAAOP,EAAK,YAAW;AAC7B,WAAO,CAACK,GAAKC,GAAOC,CAAI,EAAE,KAAK,GAAG;AAAA,EACpC;AAAA,EACA,OAAO,CAACN,GAAKG,MAAW;AACtB,UAAM,CAACC,GAAKC,GAAOC,CAAI,IAAIN,EAAI,MAAM,GAAG,EAAE,IAAI,MAAM;AACpD,WAAO,IAAI,KAAKM,GAAMD,IAAQ,GAAGD,CAAG;AAAA,EACtC;AACF;AACAG,EAAM,aAAalB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index160.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.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; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport PatternParser from './AsYouTypeFormatter.PatternParser.js';\nvar PatternMatcher = /*#__PURE__*/function () {\n function PatternMatcher(pattern) {\n _classCallCheck(this, PatternMatcher);\n this.matchTree = new PatternParser().parse(pattern);\n }\n return _createClass(PatternMatcher, [{\n key: \"match\",\n value: function match(string) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n allowOverflow = _ref.allowOverflow;\n if (!string) {\n throw new Error('String is required');\n }\n var result = _match(string.split(''), this.matchTree, true);\n if (result && result.match) {\n delete result.matchedChars;\n }\n if (result && result.overflow) {\n if (!allowOverflow) {\n return;\n }\n }\n return result;\n }\n }]);\n}();\n/**\r\n * Matches `characters` against a pattern compiled into a `tree`.\r\n * @param {string[]} characters\r\n * @param {Tree} tree — A pattern compiled into a `tree`. See the `*.d.ts` file for the description of the `tree` structure.\r\n * @param {boolean} last — Whether it's the last (rightmost) subtree on its level of the match tree.\r\n * @return {object} See the `*.d.ts` file for the description of the result object.\r\n */\nexport { PatternMatcher as default };\nfunction _match(characters, tree, last) {\n // If `tree` is a string, then `tree` is a single character.\n // That's because when a pattern is parsed, multi-character-string parts\n // of a pattern are compiled into arrays of single characters.\n // I still wrote this piece of code for a \"general\" hypothetical case\n // when `tree` could be a string of several characters, even though\n // such case is not possible with the current implementation.\n if (typeof tree === 'string') {\n var characterString = characters.join('');\n if (tree.indexOf(characterString) === 0) {\n // `tree` is always a single character.\n // If `tree.indexOf(characterString) === 0`\n // then `characters.length === tree.length`.\n /* istanbul ignore else */\n if (characters.length === tree.length) {\n return {\n match: true,\n matchedChars: characters\n };\n }\n // `tree` is always a single character.\n // If `tree.indexOf(characterString) === 0`\n // then `characters.length === tree.length`.\n /* istanbul ignore next */\n return {\n partialMatch: true\n // matchedChars: characters\n };\n }\n if (characterString.indexOf(tree) === 0) {\n if (last) {\n // The `else` path is not possible because `tree` is always a single character.\n // The `else` case for `characters.length > tree.length` would be\n // `characters.length <= tree.length` which means `characters.length <= 1`.\n // `characters` array can't be empty, so that means `characters === [tree]`,\n // which would also mean `tree.indexOf(characterString) === 0` and that'd mean\n // that the `if (tree.indexOf(characterString) === 0)` condition before this\n // `if` condition would be entered, and returned from there, not reaching this code.\n /* istanbul ignore else */\n if (characters.length > tree.length) {\n return {\n overflow: true\n };\n }\n }\n return {\n match: true,\n matchedChars: characters.slice(0, tree.length)\n };\n }\n return;\n }\n if (Array.isArray(tree)) {\n var restCharacters = characters.slice();\n var i = 0;\n while (i < tree.length) {\n var subtree = tree[i];\n var result = _match(restCharacters, subtree, last && i === tree.length - 1);\n if (!result) {\n return;\n } else if (result.overflow) {\n return result;\n } else if (result.match) {\n // Continue with the next subtree with the rest of the characters.\n restCharacters = restCharacters.slice(result.matchedChars.length);\n if (restCharacters.length === 0) {\n if (i === tree.length - 1) {\n return {\n match: true,\n matchedChars: characters\n };\n } else {\n return {\n partialMatch: true\n // matchedChars: characters\n };\n }\n }\n } else {\n /* istanbul ignore else */\n if (result.partialMatch) {\n return {\n partialMatch: true\n // matchedChars: characters\n };\n } else {\n throw new Error(\"Unsupported match result:\\n\".concat(JSON.stringify(result, null, 2)));\n }\n }\n i++;\n }\n // If `last` then overflow has already been checked\n // by the last element of the `tree` array.\n /* istanbul ignore if */\n if (last) {\n return {\n overflow: true\n };\n }\n return {\n match: true,\n matchedChars: characters.slice(0, characters.length - restCharacters.length)\n };\n }\n switch (tree.op) {\n case '|':\n var partialMatch;\n for (var _iterator = _createForOfIteratorHelperLoose(tree.args), _step; !(_step = _iterator()).done;) {\n var branch = _step.value;\n var _result = _match(characters, branch, last);\n if (_result) {\n if (_result.overflow) {\n return _result;\n } else if (_result.match) {\n return {\n match: true,\n matchedChars: _result.matchedChars\n };\n } else {\n /* istanbul ignore else */\n if (_result.partialMatch) {\n partialMatch = true;\n } else {\n throw new Error(\"Unsupported match result:\\n\".concat(JSON.stringify(_result, null, 2)));\n }\n }\n }\n }\n if (partialMatch) {\n return {\n partialMatch: true\n // matchedChars: ...\n };\n }\n // Not even a partial match.\n return;\n case '[]':\n for (var _iterator2 = _createForOfIteratorHelperLoose(tree.args), _step2; !(_step2 = _iterator2()).done;) {\n var _char = _step2.value;\n if (characters[0] === _char) {\n if (characters.length === 1) {\n return {\n match: true,\n matchedChars: characters\n };\n }\n if (last) {\n return {\n overflow: true\n };\n }\n return {\n match: true,\n matchedChars: [_char]\n };\n }\n }\n // No character matches.\n return;\n\n /* istanbul ignore next */\n default:\n throw new Error(\"Unsupported instruction tree: \".concat(tree));\n }\n}\n//# sourceMappingURL=AsYouTypeFormatter.PatternMatcher.js.map"],"names":["_createForOfIteratorHelperLoose","_unsupportedIterableToArray","o","a","_arrayLikeToArray","e","_typeof","_classCallCheck","n","_defineProperties","r","_toPropertyKey","_createClass","t","i","_toPrimitive","PatternMatcher","pattern","PatternParser","string","_ref","allowOverflow","result","_match","characters","tree","last","characterString","restCharacters","subtree","partialMatch","_iterator","_step","branch","_result","_iterator2","_step2","_char"],"mappings":";AAAA,SAASA,EAAgC,GAAG,GAAG;AAAE,MAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,QAAQ,KAAK,EAAE,YAAY;AAAG,MAAI,EAAG,SAAQ,IAAI,EAAE,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC;AAAG,MAAI,MAAM,QAAQ,CAAC,MAAM,IAAIC,EAA4B,CAAC,MAAM,GAAuC;AAAE,UAAM,IAAI;AAAI,QAAIC,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAK,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAO,EAAEA,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA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-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
1
|
+
function i(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 = F(r)) || t) {
|
|
5
|
+
e && (r = e);
|
|
6
|
+
var u = 0;
|
|
7
|
+
return function() {
|
|
8
|
+
return u >= r.length ? { done: !0 } : { done: !1, value: r[u++] };
|
|
64
9
|
};
|
|
65
10
|
}
|
|
66
|
-
|
|
67
|
-
|
|
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 : "";
|
|
108
|
-
}
|
|
109
|
-
set typedValue(e) {
|
|
110
|
-
if (this.exposeMask) {
|
|
111
|
-
this.exposeMask.typedValue = e, this.currentMask = this.exposeMask, this._applyDispatch();
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
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));
|
|
200
|
-
}
|
|
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.`);
|
|
201
13
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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];
|
|
14
|
+
function F(r, t) {
|
|
15
|
+
if (r) {
|
|
16
|
+
if (typeof r == "string") return o(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) ? o(r, t) : void 0;
|
|
217
19
|
}
|
|
20
|
+
}
|
|
21
|
+
function o(r, t) {
|
|
22
|
+
(t == null || t > r.length) && (t = r.length);
|
|
23
|
+
for (var e = 0, u = Array(t); e < t; e++) u[e] = r[e];
|
|
24
|
+
return u;
|
|
25
|
+
}
|
|
26
|
+
var l = {
|
|
27
|
+
0: "0",
|
|
28
|
+
1: "1",
|
|
29
|
+
2: "2",
|
|
30
|
+
3: "3",
|
|
31
|
+
4: "4",
|
|
32
|
+
5: "5",
|
|
33
|
+
6: "6",
|
|
34
|
+
7: "7",
|
|
35
|
+
8: "8",
|
|
36
|
+
9: "9",
|
|
37
|
+
"0": "0",
|
|
38
|
+
// Fullwidth digit 0
|
|
39
|
+
"1": "1",
|
|
40
|
+
// Fullwidth digit 1
|
|
41
|
+
"2": "2",
|
|
42
|
+
// Fullwidth digit 2
|
|
43
|
+
"3": "3",
|
|
44
|
+
// Fullwidth digit 3
|
|
45
|
+
"4": "4",
|
|
46
|
+
// Fullwidth digit 4
|
|
47
|
+
"5": "5",
|
|
48
|
+
// Fullwidth digit 5
|
|
49
|
+
"6": "6",
|
|
50
|
+
// Fullwidth digit 6
|
|
51
|
+
"7": "7",
|
|
52
|
+
// Fullwidth digit 7
|
|
53
|
+
"8": "8",
|
|
54
|
+
// Fullwidth digit 8
|
|
55
|
+
"9": "9",
|
|
56
|
+
// Fullwidth digit 9
|
|
57
|
+
"٠": "0",
|
|
58
|
+
// Arabic-indic digit 0
|
|
59
|
+
"١": "1",
|
|
60
|
+
// Arabic-indic digit 1
|
|
61
|
+
"٢": "2",
|
|
62
|
+
// Arabic-indic digit 2
|
|
63
|
+
"٣": "3",
|
|
64
|
+
// Arabic-indic digit 3
|
|
65
|
+
"٤": "4",
|
|
66
|
+
// Arabic-indic digit 4
|
|
67
|
+
"٥": "5",
|
|
68
|
+
// Arabic-indic digit 5
|
|
69
|
+
"٦": "6",
|
|
70
|
+
// Arabic-indic digit 6
|
|
71
|
+
"٧": "7",
|
|
72
|
+
// Arabic-indic digit 7
|
|
73
|
+
"٨": "8",
|
|
74
|
+
// Arabic-indic digit 8
|
|
75
|
+
"٩": "9",
|
|
76
|
+
// Arabic-indic digit 9
|
|
77
|
+
"۰": "0",
|
|
78
|
+
// Eastern-Arabic digit 0
|
|
79
|
+
"۱": "1",
|
|
80
|
+
// Eastern-Arabic digit 1
|
|
81
|
+
"۲": "2",
|
|
82
|
+
// Eastern-Arabic digit 2
|
|
83
|
+
"۳": "3",
|
|
84
|
+
// Eastern-Arabic digit 3
|
|
85
|
+
"۴": "4",
|
|
86
|
+
// Eastern-Arabic digit 4
|
|
87
|
+
"۵": "5",
|
|
88
|
+
// Eastern-Arabic digit 5
|
|
89
|
+
"۶": "6",
|
|
90
|
+
// Eastern-Arabic digit 6
|
|
91
|
+
"۷": "7",
|
|
92
|
+
// Eastern-Arabic digit 7
|
|
93
|
+
"۸": "8",
|
|
94
|
+
// Eastern-Arabic digit 8
|
|
95
|
+
"۹": "9"
|
|
96
|
+
// Eastern-Arabic digit 9
|
|
218
97
|
};
|
|
219
|
-
|
|
98
|
+
function f(r) {
|
|
99
|
+
return l[r];
|
|
100
|
+
}
|
|
101
|
+
function s(r) {
|
|
102
|
+
for (var t = "", e = i(r.split("")), u; !(u = e()).done; ) {
|
|
103
|
+
var a = u.value, n = f(a);
|
|
104
|
+
n && (t += n);
|
|
105
|
+
}
|
|
106
|
+
return t;
|
|
107
|
+
}
|
|
220
108
|
export {
|
|
221
|
-
|
|
109
|
+
l as DIGITS,
|
|
110
|
+
s as default,
|
|
111
|
+
f as parseDigit
|
|
222
112
|
};
|
|
223
113
|
//# sourceMappingURL=index161.js.map
|
package/dist/index161.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index161.js","sources":["../../../node_modules/imask/esm/masked/dynamic.js"],"sourcesContent":["import { DIRECTION, objectIncludes } from '../core/utils.js';\nimport ChangeDetails from '../core/change-details.js';\nimport createMask, { normalizeOpts } from './factory.js';\nimport Masked from './base.js';\nimport IMask from '../core/holder.js';\nimport '../core/continuous-tail-details.js';\n\n/** Dynamic mask for choosing appropriate mask in run-time */\nclass MaskedDynamic extends Masked {\n constructor(opts) {\n super({\n ...MaskedDynamic.DEFAULTS,\n ...opts\n });\n this.currentMask = undefined;\n }\n updateOptions(opts) {\n super.updateOptions(opts);\n }\n _update(opts) {\n super._update(opts);\n if ('mask' in opts) {\n this.exposeMask = undefined;\n // mask could be totally dynamic with only `dispatch` option\n this.compiledMasks = Array.isArray(opts.mask) ? opts.mask.map(m => {\n const {\n expose,\n ...maskOpts\n } = normalizeOpts(m);\n const masked = createMask({\n overwrite: this._overwrite,\n eager: this._eager,\n skipInvalid: this._skipInvalid,\n ...maskOpts\n });\n if (expose) this.exposeMask = masked;\n return masked;\n }) : [];\n\n // this.currentMask = this.doDispatch(''); // probably not needed but lets see\n }\n }\n _appendCharRaw(ch, flags) {\n if (flags === void 0) {\n flags = {};\n }\n const details = this._applyDispatch(ch, flags);\n if (this.currentMask) {\n details.aggregate(this.currentMask._appendChar(ch, this.currentMaskFlags(flags)));\n }\n return details;\n }\n _applyDispatch(appended, flags, tail) {\n if (appended === void 0) {\n appended = '';\n }\n if (flags === void 0) {\n flags = {};\n }\n if (tail === void 0) {\n tail = '';\n }\n const prevValueBeforeTail = flags.tail && flags._beforeTailState != null ? flags._beforeTailState._value : this.value;\n const inputValue = this.rawInputValue;\n const insertValue = flags.tail && flags._beforeTailState != null ? flags._beforeTailState._rawInputValue : inputValue;\n const tailValue = inputValue.slice(insertValue.length);\n const prevMask = this.currentMask;\n const details = new ChangeDetails();\n const prevMaskState = prevMask == null ? void 0 : prevMask.state;\n\n // clone flags to prevent overwriting `_beforeTailState`\n this.currentMask = this.doDispatch(appended, {\n ...flags\n }, tail);\n\n // restore state after dispatch\n if (this.currentMask) {\n if (this.currentMask !== prevMask) {\n // if mask changed reapply input\n this.currentMask.reset();\n if (insertValue) {\n this.currentMask.append(insertValue, {\n raw: true\n });\n details.tailShift = this.currentMask.value.length - prevValueBeforeTail.length;\n }\n if (tailValue) {\n details.tailShift += this.currentMask.append(tailValue, {\n raw: true,\n tail: true\n }).tailShift;\n }\n } else if (prevMaskState) {\n // Dispatch can do something bad with state, so\n // restore prev mask state\n this.currentMask.state = prevMaskState;\n }\n }\n return details;\n }\n _appendPlaceholder() {\n const details = this._applyDispatch();\n if (this.currentMask) {\n details.aggregate(this.currentMask._appendPlaceholder());\n }\n return details;\n }\n _appendEager() {\n const details = this._applyDispatch();\n if (this.currentMask) {\n details.aggregate(this.currentMask._appendEager());\n }\n return details;\n }\n appendTail(tail) {\n const details = new ChangeDetails();\n if (tail) details.aggregate(this._applyDispatch('', {}, tail));\n return details.aggregate(this.currentMask ? this.currentMask.appendTail(tail) : super.appendTail(tail));\n }\n currentMaskFlags(flags) {\n var _flags$_beforeTailSta, _flags$_beforeTailSta2;\n return {\n ...flags,\n _beforeTailState: ((_flags$_beforeTailSta = flags._beforeTailState) == null ? void 0 : _flags$_beforeTailSta.currentMaskRef) === this.currentMask && ((_flags$_beforeTailSta2 = flags._beforeTailState) == null ? void 0 : _flags$_beforeTailSta2.currentMask) || flags._beforeTailState\n };\n }\n doDispatch(appended, flags, tail) {\n if (flags === void 0) {\n flags = {};\n }\n if (tail === void 0) {\n tail = '';\n }\n return this.dispatch(appended, this, flags, tail);\n }\n doValidate(flags) {\n return super.doValidate(flags) && (!this.currentMask || this.currentMask.doValidate(this.currentMaskFlags(flags)));\n }\n doPrepare(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n let [s, details] = super.doPrepare(str, flags);\n if (this.currentMask) {\n let currentDetails;\n [s, currentDetails] = super.doPrepare(s, this.currentMaskFlags(flags));\n details = details.aggregate(currentDetails);\n }\n return [s, details];\n }\n doPrepareChar(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n let [s, details] = super.doPrepareChar(str, flags);\n if (this.currentMask) {\n let currentDetails;\n [s, currentDetails] = super.doPrepareChar(s, this.currentMaskFlags(flags));\n details = details.aggregate(currentDetails);\n }\n return [s, details];\n }\n reset() {\n var _this$currentMask;\n (_this$currentMask = this.currentMask) == null || _this$currentMask.reset();\n this.compiledMasks.forEach(m => m.reset());\n }\n get value() {\n return this.exposeMask ? this.exposeMask.value : this.currentMask ? this.currentMask.value : '';\n }\n set value(value) {\n if (this.exposeMask) {\n this.exposeMask.value = value;\n this.currentMask = this.exposeMask;\n this._applyDispatch();\n } else super.value = value;\n }\n get unmaskedValue() {\n return this.exposeMask ? this.exposeMask.unmaskedValue : this.currentMask ? this.currentMask.unmaskedValue : '';\n }\n set unmaskedValue(unmaskedValue) {\n if (this.exposeMask) {\n this.exposeMask.unmaskedValue = unmaskedValue;\n this.currentMask = this.exposeMask;\n this._applyDispatch();\n } else super.unmaskedValue = unmaskedValue;\n }\n get typedValue() {\n return this.exposeMask ? this.exposeMask.typedValue : this.currentMask ? this.currentMask.typedValue : '';\n }\n set typedValue(typedValue) {\n if (this.exposeMask) {\n this.exposeMask.typedValue = typedValue;\n this.currentMask = this.exposeMask;\n this._applyDispatch();\n return;\n }\n let unmaskedValue = String(typedValue);\n\n // double check it\n if (this.currentMask) {\n this.currentMask.typedValue = typedValue;\n unmaskedValue = this.currentMask.unmaskedValue;\n }\n this.unmaskedValue = unmaskedValue;\n }\n get displayValue() {\n return this.currentMask ? this.currentMask.displayValue : '';\n }\n get isComplete() {\n var _this$currentMask2;\n return Boolean((_this$currentMask2 = this.currentMask) == null ? void 0 : _this$currentMask2.isComplete);\n }\n get isFilled() {\n var _this$currentMask3;\n return Boolean((_this$currentMask3 = this.currentMask) == null ? void 0 : _this$currentMask3.isFilled);\n }\n remove(fromPos, toPos) {\n const details = new ChangeDetails();\n if (this.currentMask) {\n details.aggregate(this.currentMask.remove(fromPos, toPos))\n // update with dispatch\n .aggregate(this._applyDispatch());\n }\n return details;\n }\n get state() {\n var _this$currentMask4;\n return {\n ...super.state,\n _rawInputValue: this.rawInputValue,\n compiledMasks: this.compiledMasks.map(m => m.state),\n currentMaskRef: this.currentMask,\n currentMask: (_this$currentMask4 = this.currentMask) == null ? void 0 : _this$currentMask4.state\n };\n }\n set state(state) {\n const {\n compiledMasks,\n currentMaskRef,\n currentMask,\n ...maskedState\n } = state;\n if (compiledMasks) this.compiledMasks.forEach((m, mi) => m.state = compiledMasks[mi]);\n if (currentMaskRef != null) {\n this.currentMask = currentMaskRef;\n this.currentMask.state = currentMask;\n }\n super.state = maskedState;\n }\n extractInput(fromPos, toPos, flags) {\n return this.currentMask ? this.currentMask.extractInput(fromPos, toPos, flags) : '';\n }\n extractTail(fromPos, toPos) {\n return this.currentMask ? this.currentMask.extractTail(fromPos, toPos) : super.extractTail(fromPos, toPos);\n }\n doCommit() {\n if (this.currentMask) this.currentMask.doCommit();\n super.doCommit();\n }\n nearestInputPos(cursorPos, direction) {\n return this.currentMask ? this.currentMask.nearestInputPos(cursorPos, direction) : super.nearestInputPos(cursorPos, direction);\n }\n get overwrite() {\n return this.currentMask ? this.currentMask.overwrite : this._overwrite;\n }\n set overwrite(overwrite) {\n this._overwrite = overwrite;\n }\n get eager() {\n return this.currentMask ? this.currentMask.eager : this._eager;\n }\n set eager(eager) {\n this._eager = eager;\n }\n get skipInvalid() {\n return this.currentMask ? this.currentMask.skipInvalid : this._skipInvalid;\n }\n set skipInvalid(skipInvalid) {\n this._skipInvalid = skipInvalid;\n }\n get autofix() {\n return this.currentMask ? this.currentMask.autofix : this._autofix;\n }\n set autofix(autofix) {\n this._autofix = autofix;\n }\n maskEquals(mask) {\n return Array.isArray(mask) ? this.compiledMasks.every((m, mi) => {\n if (!mask[mi]) return;\n const {\n mask: oldMask,\n ...restOpts\n } = mask[mi];\n return objectIncludes(m, restOpts) && m.maskEquals(oldMask);\n }) : super.maskEquals(mask);\n }\n typedValueEquals(value) {\n var _this$currentMask5;\n return Boolean((_this$currentMask5 = this.currentMask) == null ? void 0 : _this$currentMask5.typedValueEquals(value));\n }\n}\n/** Currently chosen mask */\n/** Currently chosen mask */\n/** Compliled {@link Masked} options */\n/** Chooses {@link Masked} depending on input value */\nMaskedDynamic.DEFAULTS = {\n ...Masked.DEFAULTS,\n dispatch: (appended, masked, flags, tail) => {\n if (!masked.compiledMasks.length) return;\n const inputValue = masked.rawInputValue;\n\n // simulate input\n const inputs = masked.compiledMasks.map((m, index) => {\n const isCurrent = masked.currentMask === m;\n const startInputPos = isCurrent ? m.displayValue.length : m.nearestInputPos(m.displayValue.length, DIRECTION.FORCE_LEFT);\n if (m.rawInputValue !== inputValue) {\n m.reset();\n m.append(inputValue, {\n raw: true\n });\n } else if (!isCurrent) {\n m.remove(startInputPos);\n }\n m.append(appended, masked.currentMaskFlags(flags));\n m.appendTail(tail);\n return {\n index,\n weight: m.rawInputValue.length,\n totalInputPositions: m.totalInputPositions(0, Math.max(startInputPos, m.nearestInputPos(m.displayValue.length, DIRECTION.FORCE_LEFT)))\n };\n });\n\n // pop masks with longer values first\n inputs.sort((i1, i2) => i2.weight - i1.weight || i2.totalInputPositions - i1.totalInputPositions);\n return masked.compiledMasks[inputs[0].index];\n }\n};\nIMask.MaskedDynamic = MaskedDynamic;\n\nexport { MaskedDynamic as default };\n"],"names":["MaskedDynamic","Masked","opts","m","expose","maskOpts","normalizeOpts","masked","createMask","ch","flags","details","appended","tail","prevValueBeforeTail","inputValue","insertValue","tailValue","prevMask","ChangeDetails","prevMaskState","_flags$_beforeTailSta","_flags$_beforeTailSta2","str","currentDetails","_this$currentMask","value","unmaskedValue","typedValue","_this$currentMask2","_this$currentMask3","fromPos","toPos","_this$currentMask4","state","compiledMasks","currentMaskRef","currentMask","maskedState","mi","cursorPos","direction","overwrite","eager","skipInvalid","autofix","mask","oldMask","restOpts","objectIncludes","_this$currentMask5","inputs","index","isCurrent","startInputPos","DIRECTION","i1","i2","IMask"],"mappings":";;;;;AAQA,MAAMA,UAAsBC,EAAO;AAAA,EACjC,YAAYC,GAAM;AAChB,UAAM;AAAA,MACJ,GAAGF,EAAc;AAAA,MACjB,GAAGE;AAAA,IACT,CAAK,GACD,KAAK,cAAc;AAAA,EACrB;AAAA,EACA,cAAcA,GAAM;AAClB,UAAM,cAAcA,CAAI;AAAA,EAC1B;AAAA,EACA,QAAQA,GAAM;AACZ,UAAM,QAAQA,CAAI,GACd,UAAUA,MACZ,KAAK,aAAa,QAElB,KAAK,gBAAgB,MAAM,QAAQA,EAAK,IAAI,IAAIA,EAAK,KAAK,IAAI,CAAAC,MAAK;AACjE,YAAM;AAAA,QACJ,QAAAC;AAAA,QACA,GAAGC;AAAA,MACb,IAAYC,EAAcH,CAAC,GACbI,IAASC,EAAW;AAAA,QACxB,WAAW,KAAK;AAAA,QAChB,OAAO,KAAK;AAAA,QACZ,aAAa,KAAK;AAAA,QAClB,GAAGH;AAAA,MACb,CAAS;AACD,aAAID,MAAQ,KAAK,aAAaG,IACvBA;AAAA,IACT,CAAC,IAAI,CAAA;AAAA,EAIT;AAAA,EACA,eAAeE,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ACF;AACAO,EAAM,gBAAgB1D;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index161.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/parseDigits.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// These mappings map a character (key) to a specific digit that should\n// replace it for normalization purposes. Non-European digits that\n// may be used in phone numbers are mapped to a European equivalent.\n//\n// E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\n//\nexport var DIGITS = {\n '0': '0',\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n \"\\uFF10\": '0',\n // Fullwidth digit 0\n \"\\uFF11\": '1',\n // Fullwidth digit 1\n \"\\uFF12\": '2',\n // Fullwidth digit 2\n \"\\uFF13\": '3',\n // Fullwidth digit 3\n \"\\uFF14\": '4',\n // Fullwidth digit 4\n \"\\uFF15\": '5',\n // Fullwidth digit 5\n \"\\uFF16\": '6',\n // Fullwidth digit 6\n \"\\uFF17\": '7',\n // Fullwidth digit 7\n \"\\uFF18\": '8',\n // Fullwidth digit 8\n \"\\uFF19\": '9',\n // Fullwidth digit 9\n \"\\u0660\": '0',\n // Arabic-indic digit 0\n \"\\u0661\": '1',\n // Arabic-indic digit 1\n \"\\u0662\": '2',\n // Arabic-indic digit 2\n \"\\u0663\": '3',\n // Arabic-indic digit 3\n \"\\u0664\": '4',\n // Arabic-indic digit 4\n \"\\u0665\": '5',\n // Arabic-indic digit 5\n \"\\u0666\": '6',\n // Arabic-indic digit 6\n \"\\u0667\": '7',\n // Arabic-indic digit 7\n \"\\u0668\": '8',\n // Arabic-indic digit 8\n \"\\u0669\": '9',\n // Arabic-indic digit 9\n \"\\u06F0\": '0',\n // Eastern-Arabic digit 0\n \"\\u06F1\": '1',\n // Eastern-Arabic digit 1\n \"\\u06F2\": '2',\n // Eastern-Arabic digit 2\n \"\\u06F3\": '3',\n // Eastern-Arabic digit 3\n \"\\u06F4\": '4',\n // Eastern-Arabic digit 4\n \"\\u06F5\": '5',\n // Eastern-Arabic digit 5\n \"\\u06F6\": '6',\n // Eastern-Arabic digit 6\n \"\\u06F7\": '7',\n // Eastern-Arabic digit 7\n \"\\u06F8\": '8',\n // Eastern-Arabic digit 8\n \"\\u06F9\": '9' // Eastern-Arabic digit 9\n};\nexport function parseDigit(character) {\n return DIGITS[character];\n}\n\n/**\r\n * Parses phone number digits from a string.\r\n * Drops all punctuation leaving only digits.\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * parseDigits('8 (800) 555')\r\n * // Outputs '8800555'.\r\n * ```\r\n */\nexport default function parseDigits(string) {\n var result = '';\n // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n var digit = parseDigit(character);\n if (digit) {\n result += digit;\n }\n }\n return result;\n}\n//# sourceMappingURL=parseDigits.js.map"],"names":["_createForOfIteratorHelperLoose","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","n","DIGITS","parseDigit","character","parseDigits","string","result","_iterator","_step","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,EAAEA,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4B,GAAGE,GAAG;AAAE,MAAI,GAAG;AAAE,QAAgB,OAAO,KAAnB,SAAsB,QAAOC,EAAkB,GAAGD,CAAC;AAAG,QAAIH,IAAI,CAAA,EAAG,SAAS,KAAK,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoBA,MAAb,YAAkB,EAAE,gBAAgBA,IAAI,EAAE,YAAY,OAAiBA,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAK,CAAC,IAAoBA,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAII,EAAkB,GAAGD,CAAC,IAAI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;AAQ1C,WAPIC,IAAS,IAOJC,IAAYd,EAAgCY,EAAO,MAAM,EAAE,CAAC,GAAGG,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AAC3G,QAAIJ,IAAYK,EAAM,OAClBC,IAAQP,EAAWC,CAAS;AAChC,IAAIM,MACFH,KAAUG;AAAA,EAEd;AACA,SAAOH;AACT;","x_google_ignoreList":[0]}
|
package/dist/index162.js
CHANGED
|
@@ -1,70 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...s
|
|
24
|
-
} = e;
|
|
25
|
-
if (t) {
|
|
26
|
-
const i = t.map((h) => h.length), a = Math.min(...i), n = Math.max(...i) - a;
|
|
27
|
-
s.mask = "*".repeat(a), n && (s.mask += "[" + "*".repeat(n) + "]"), this.enum = t;
|
|
28
|
-
}
|
|
29
|
-
super._update(s);
|
|
30
|
-
}
|
|
31
|
-
_appendCharRaw(e, t) {
|
|
32
|
-
t === void 0 && (t = {});
|
|
33
|
-
const s = Math.min(this.nearestInputPos(0, p.FORCE_RIGHT), this.value.length), i = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, s));
|
|
34
|
-
if (i.length) {
|
|
35
|
-
i.length === 1 && this._forEachBlocksInRange(0, this.value.length, (n, h) => {
|
|
36
|
-
const u = i[0][h];
|
|
37
|
-
h >= this.value.length || u === n.value || (n.reset(), n._appendChar(u, t));
|
|
38
|
-
});
|
|
39
|
-
const a = super._appendCharRaw(i[0][this.value.length], t);
|
|
40
|
-
return i.length === 1 && i[0].slice(this.unmaskedValue.length).split("").forEach((n) => a.aggregate(super._appendCharRaw(n))), a;
|
|
41
|
-
}
|
|
42
|
-
return new l({
|
|
43
|
-
skip: !this.isComplete
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
extractTail(e, t) {
|
|
47
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), new d("", e);
|
|
48
|
-
}
|
|
49
|
-
remove(e, t) {
|
|
50
|
-
if (e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), e === t) return new l();
|
|
51
|
-
const s = Math.min(super.nearestInputPos(0, p.FORCE_RIGHT), this.value.length);
|
|
52
|
-
let i;
|
|
53
|
-
for (i = e; i >= 0 && !(this.enum.filter((h) => this.matchValue(h, this.value.slice(s, i), s)).length > 1); --i)
|
|
54
|
-
;
|
|
55
|
-
const a = super.remove(i, t);
|
|
56
|
-
return a.tailShift += i - e, a;
|
|
57
|
-
}
|
|
58
|
-
get isComplete() {
|
|
59
|
-
return this.enum.indexOf(this.value) >= 0;
|
|
60
|
-
}
|
|
1
|
+
import o from "./index164.js";
|
|
2
|
+
var l = /(\$\d)/;
|
|
3
|
+
function u(n, a, t) {
|
|
4
|
+
var r = t.useInternationalFormat, i = t.withNationalPrefix;
|
|
5
|
+
t.carrierCode, t.metadata;
|
|
6
|
+
var e = n.replace(new RegExp(a.pattern()), r ? a.internationalFormat() : (
|
|
7
|
+
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
8
|
+
// because that one is only used when formatting phone numbers
|
|
9
|
+
// for dialing from a mobile phone, and this is not a dialing library.
|
|
10
|
+
// carrierCode && format.domesticCarrierCodeFormattingRule()
|
|
11
|
+
// // First, replace the $CC in the formatting rule with the desired carrier code.
|
|
12
|
+
// // Then, replace the $FG in the formatting rule with the first group
|
|
13
|
+
// // and the carrier code combined in the appropriate way.
|
|
14
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
|
|
15
|
+
// : (
|
|
16
|
+
// withNationalPrefix && format.nationalPrefixFormattingRule()
|
|
17
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
|
18
|
+
// : format.format()
|
|
19
|
+
// )
|
|
20
|
+
i && a.nationalPrefixFormattingRule() ? a.format().replace(l, a.nationalPrefixFormattingRule()) : a.format()
|
|
21
|
+
));
|
|
22
|
+
return r ? o(e) : e;
|
|
61
23
|
}
|
|
62
|
-
r.DEFAULTS = {
|
|
63
|
-
...m.DEFAULTS,
|
|
64
|
-
matchValue: (o, e, t) => o.indexOf(e, t) === t
|
|
65
|
-
};
|
|
66
|
-
c.MaskedEnum = r;
|
|
67
24
|
export {
|
|
68
|
-
|
|
25
|
+
l as FIRST_GROUP_PATTERN,
|
|
26
|
+
u as default
|
|
69
27
|
};
|
|
70
28
|
//# sourceMappingURL=index162.js.map
|
package/dist/index162.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index162.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index162.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js"],"sourcesContent":["import applyInternationalSeparatorStyle from './applyInternationalSeparatorStyle.js';\n\n// This was originally set to $1 but there are some countries for which the\n// first group is not used in the national pattern (e.g. Argentina) so the $1\n// group does not match correctly. Therefore, we use `\\d`, so that the first\n// group actually used in the pattern will be matched.\nexport var FIRST_GROUP_PATTERN = /(\\$\\d)/;\nexport default function formatNationalNumberUsingFormat(number, format, _ref) {\n var useInternationalFormat = _ref.useInternationalFormat,\n withNationalPrefix = _ref.withNationalPrefix,\n carrierCode = _ref.carrierCode,\n metadata = _ref.metadata;\n var formattedNumber = number.replace(new RegExp(format.pattern()), useInternationalFormat ? format.internationalFormat() :\n // This library doesn't use `domestic_carrier_code_formatting_rule`,\n // because that one is only used when formatting phone numbers\n // for dialing from a mobile phone, and this is not a dialing library.\n // carrierCode && format.domesticCarrierCodeFormattingRule()\n // \t// First, replace the $CC in the formatting rule with the desired carrier code.\n // \t// Then, replace the $FG in the formatting rule with the first group\n // \t// and the carrier code combined in the appropriate way.\n // \t? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))\n // \t: (\n // \t\twithNationalPrefix && format.nationalPrefixFormattingRule()\n // \t\t\t? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())\n // \t\t\t: format.format()\n // \t)\n withNationalPrefix && format.nationalPrefixFormattingRule() ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()) : format.format());\n if (useInternationalFormat) {\n return applyInternationalSeparatorStyle(formattedNumber);\n }\n return formattedNumber;\n}\n//# sourceMappingURL=formatNationalNumberUsingFormat.js.map"],"names":["FIRST_GROUP_PATTERN","formatNationalNumberUsingFormat","number","format","_ref","useInternationalFormat","withNationalPrefix","formattedNumber","applyInternationalSeparatorStyle"],"mappings":";AAMU,IAACA,IAAsB;AAClB,SAASC,EAAgCC,GAAQC,GAAQC,GAAM;AACzE,MAACC,IAAyBD,EAAK,wBAChCE,IAAqBF,EAAK;AACZ,EAAAA,EAAK,aACRA,EAAK;AAClB,MAAIG,IAAkBL,EAAO,QAAQ,IAAI,OAAOC,EAAO,SAAS,GAAGE,IAAyBF,EAAO,oBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IActHG,KAAsBH,EAAO,6BAA4B,IAAKA,EAAO,OAAM,EAAG,QAAQH,GAAqBG,EAAO,6BAA4B,CAAE,IAAIA,EAAO,OAAM;AAAA,GAAE;AACnK,SAAIE,IACKG,EAAiCD,CAAe,IAElDA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index163.js
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import t from "./index157.js";
|
|
3
|
-
import "./index158.js";
|
|
4
|
-
class s extends e {
|
|
5
|
-
/** */
|
|
6
|
-
/** Enable characters overwriting */
|
|
7
|
-
/** */
|
|
8
|
-
/** */
|
|
9
|
-
/** */
|
|
10
|
-
updateOptions(a) {
|
|
11
|
-
super.updateOptions(a);
|
|
12
|
-
}
|
|
13
|
-
_update(a) {
|
|
14
|
-
super._update({
|
|
15
|
-
...a,
|
|
16
|
-
validate: a.mask
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
t.MaskedFunction = s;
|
|
1
|
+
var v = 2, A = 17, E = 3, _ = "0-90-9٠-٩۰-۹", F = "-‐-―−ー-", u = "//", a = "..", S = " ", r = "()()[]\\[\\]", c = "~⁓∼~", N = "".concat(F).concat(u).concat(a).concat(S).concat(r).concat(c), T = "++";
|
|
21
2
|
export {
|
|
22
|
-
|
|
3
|
+
E as MAX_LENGTH_COUNTRY_CODE,
|
|
4
|
+
A as MAX_LENGTH_FOR_NSN,
|
|
5
|
+
v as MIN_LENGTH_FOR_NSN,
|
|
6
|
+
T as PLUS_CHARS,
|
|
7
|
+
_ as VALID_DIGITS,
|
|
8
|
+
N as VALID_PUNCTUATION,
|
|
9
|
+
S as WHITESPACE
|
|
23
10
|
};
|
|
24
11
|
//# sourceMappingURL=index163.js.map
|
package/dist/index163.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index163.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index163.js","sources":["../../../node_modules/libphonenumber-js/es6/constants.js"],"sourcesContent":["// The minimum length of the national significant number.\nexport var MIN_LENGTH_FOR_NSN = 2;\n\n// The ITU says the maximum length should be 15,\n// but one can find longer numbers in Germany.\nexport var MAX_LENGTH_FOR_NSN = 17;\n\n// The maximum length of the country calling code.\nexport var MAX_LENGTH_COUNTRY_CODE = 3;\n\n// Digits accepted in phone numbers\n// (ascii, fullwidth, arabic-indic, and eastern arabic digits).\nexport var VALID_DIGITS = \"0-9\\uFF10-\\uFF19\\u0660-\\u0669\\u06F0-\\u06F9\";\n\n// `DASHES` will be right after the opening square bracket of the \"character class\"\nvar DASHES = \"-\\u2010-\\u2015\\u2212\\u30FC\\uFF0D\";\nvar SLASHES = \"\\uFF0F/\";\nvar DOTS = \"\\uFF0E.\";\nexport var WHITESPACE = \" \\xA0\\xAD\\u200B\\u2060\\u3000\";\nvar BRACKETS = \"()\\uFF08\\uFF09\\uFF3B\\uFF3D\\\\[\\\\]\";\n// export const OPENING_BRACKETS = '(\\uFF08\\uFF3B\\\\\\['\nvar TILDES = \"~\\u2053\\u223C\\uFF5E\";\n\n// Regular expression of acceptable punctuation found in phone numbers. This\n// excludes punctuation found as a leading character only. This consists of dash\n// characters, white space characters, full stops, slashes, square brackets,\n// parentheses and tildes. Full-width variants are also present.\nexport var VALID_PUNCTUATION = \"\".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);\nexport var PLUS_CHARS = \"+\\uFF0B\";\n// const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')\n//# sourceMappingURL=constants.js.map"],"names":["MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","MAX_LENGTH_COUNTRY_CODE","VALID_DIGITS","DASHES","SLASHES","DOTS","WHITESPACE","BRACKETS","TILDES","VALID_PUNCTUATION","PLUS_CHARS"],"mappings":"AACU,IAACA,IAAqB,GAIrBC,IAAqB,IAGrBC,IAA0B,GAI1BC,IAAe,gBAGtBC,IAAS,WACTC,IAAU,MACVC,IAAO,MACAC,IAAa,UACpBC,IAAW,gBAEXC,IAAS,QAMFC,IAAoB,GAAG,OAAON,CAAM,EAAE,OAAOC,CAAO,EAAE,OAAOC,CAAI,EAAE,OAAOC,CAAU,EAAE,OAAOC,CAAQ,EAAE,OAAOC,CAAM,GACpHE,IAAa;","x_google_ignoreList":[0]}
|