@boxcustodia/library 0.5.1 → 0.5.3
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/index.d.ts +35 -18
- package/dist/index.es.js +47 -46
- package/dist/index.es100.js +12 -8
- package/dist/index.es101.js +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +3 -3
- package/dist/index.es104.js +1 -1
- package/dist/index.es105.js +22 -55
- package/dist/index.es106.js +52 -52
- package/dist/index.es107.js +55 -92
- package/dist/index.es108.js +89 -34
- package/dist/index.es109.js +36 -23
- package/dist/index.es11.js +1 -1
- package/dist/index.es110.js +18 -24
- package/dist/index.es111.js +29 -310
- package/dist/index.es112.js +39 -12
- package/dist/index.es113.js +12 -22
- package/dist/index.es114.js +7 -3
- package/dist/index.es115.js +258 -3
- package/dist/index.es116.js +3 -8
- package/dist/index.es117.js +12 -5
- package/dist/index.es118.js +3673 -56
- package/dist/index.es119.js +1087 -12
- package/dist/index.es120.js +4 -259
- package/dist/index.es121.js +4 -12
- package/dist/index.es122.js +25 -37
- package/dist/index.es123.js +12 -6
- package/dist/index.es124.js +24 -17
- package/dist/index.es125.js +3 -1086
- package/dist/index.es126.js +14 -4
- package/dist/index.es127.js +5 -4
- package/dist/index.es128.js +56 -26
- package/dist/index.es129.js +22 -9
- package/dist/index.es130.js +4 -4
- package/dist/index.es131.js +221 -23
- package/dist/index.es132.js +11 -22
- package/dist/index.es133.js +3 -3
- package/dist/index.es134.js +39 -222
- package/dist/index.es135.js +17 -11
- package/dist/index.es136.js +44 -11
- package/dist/index.es137.js +238 -39
- package/dist/index.es138.js +843 -12
- package/dist/index.es139.js +9 -44
- package/dist/index.es140.js +11 -21
- package/dist/index.es141.js +21 -12
- package/dist/index.es142.js +5 -4
- package/dist/index.es143.js +3 -4
- package/dist/index.es144.js +12 -240
- package/dist/index.es145.js +2 -2
- package/dist/index.es146.js +4 -848
- package/dist/index.es147.js +79 -6
- package/dist/index.es148.js +95 -3
- package/dist/index.es149.js +319 -2027
- package/dist/index.es150.js +124 -2
- package/dist/index.es151.js +28 -25
- package/dist/index.es152.js +10 -603
- package/dist/index.es153.js +12 -33
- package/dist/index.es154.js +13 -4
- package/dist/index.es155.js +33 -33
- package/dist/index.es156.js +4 -13
- package/dist/index.es157.js +6 -12
- package/dist/index.es158.js +8 -13
- package/dist/index.es159.js +2 -4
- package/dist/index.es16.js +1 -1
- package/dist/index.es160.js +26 -6
- package/dist/index.es161.js +604 -77
- package/dist/index.es162.js +12 -90
- package/dist/index.es163.js +31 -344
- package/dist/index.es164.js +11 -124
- package/dist/index.es165.js +6 -6
- package/dist/index.es166.js +12 -2
- package/dist/index.es167.js +205 -12
- package/dist/index.es168.js +11 -205
- package/dist/index.es169.js +20 -10
- package/dist/index.es170.js +33 -17
- package/dist/index.es171.js +7 -33
- package/dist/index.es172.js +214 -9
- package/dist/index.es173.js +6 -14
- package/dist/index.es174.js +67 -32
- package/dist/index.es175.js +124 -10
- package/dist/index.es176.js +135 -6
- package/dist/index.es177.js +14 -7
- package/dist/index.es178.js +12 -65
- package/dist/index.es179.js +8 -124
- package/dist/index.es18.js +1 -1
- package/dist/index.es180.js +48 -133
- package/dist/index.es181.js +6 -14
- package/dist/index.es182.js +2 -15
- package/dist/index.es183.js +44 -9
- package/dist/index.es184.js +648 -48
- package/dist/index.es185.js +193 -625
- package/dist/index.es186.js +4 -44
- package/dist/index.es187.js +43 -215
- package/dist/index.es188.js +8 -2
- package/dist/index.es189.js +4 -2
- package/dist/index.es190.js +6 -2
- package/dist/index.es191.js +26 -396
- package/dist/index.es192.js +25 -722
- package/dist/index.es193.js +32 -280
- package/dist/index.es194.js +115 -58
- package/dist/index.es195.js +16 -10
- package/dist/index.es196.js +8 -29
- package/dist/index.es197.js +2 -199
- package/dist/index.es198.js +2 -4
- package/dist/index.es199.js +2 -4
- package/dist/index.es2.js +1 -1
- package/dist/index.es200.js +50 -43
- package/dist/index.es201.js +64 -7
- package/dist/index.es202.js +21 -6
- package/dist/index.es203.js +9 -28
- package/dist/index.es204.js +38 -118
- package/dist/index.es205.js +18 -33
- package/dist/index.es206.js +13 -25
- package/dist/index.es207.js +6 -7
- package/dist/index.es208.js +6 -5
- package/dist/index.es209.js +19 -5
- package/dist/index.es210.js +52 -18
- package/dist/index.es211.js +6 -5
- package/dist/index.es212.js +6 -5
- package/dist/index.es213.js +6 -8
- package/dist/index.es214.js +8 -6
- package/dist/index.es215.js +16 -7
- package/dist/index.es216.js +8 -15
- package/dist/index.es217.js +6 -13
- package/dist/index.es218.js +6 -13
- package/dist/index.es219.js +13 -6
- package/dist/index.es22.js +1 -1
- package/dist/index.es220.js +10 -6
- package/dist/index.es221.js +11 -6
- package/dist/index.es222.js +6 -5
- package/dist/index.es223.js +3 -518
- package/dist/index.es224.js +2053 -49
- package/dist/index.es225.js +83 -16
- package/dist/index.es226.js +5 -9
- package/dist/index.es227.js +18 -19
- package/dist/index.es228.js +5 -8
- package/dist/index.es229.js +6 -7
- package/dist/index.es230.js +6 -7
- package/dist/index.es231.js +9 -5
- package/dist/index.es232.js +6 -6
- package/dist/index.es233.js +7 -9
- package/dist/index.es234.js +5 -5
- package/dist/index.es235.js +4 -8
- package/dist/index.es236.js +5 -12
- package/dist/index.es237.js +8 -9
- package/dist/index.es238.js +6 -9
- package/dist/index.es239.js +15 -10
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +4 -14
- package/dist/index.es241.js +515 -6
- package/dist/index.es242.js +50 -7
- package/dist/index.es243.js +17 -6
- package/dist/index.es244.js +8 -5
- package/dist/index.es245.js +19 -7
- package/dist/index.es246.js +8 -9
- package/dist/index.es247.js +7 -84
- package/dist/index.es248.js +8 -65
- package/dist/index.es249.js +5 -37
- package/dist/index.es250.js +6 -9
- package/dist/index.es251.js +9 -8
- package/dist/index.es252.js +5 -7
- package/dist/index.es253.js +8 -10
- package/dist/index.es254.js +12 -7
- package/dist/index.es255.js +9 -7
- package/dist/index.es256.js +10 -6
- package/dist/index.es257.js +14 -5
- package/dist/index.es258.js +65 -16
- package/dist/index.es259.js +38 -2
- package/dist/index.es260.js +9 -52
- package/dist/index.es261.js +8 -64
- package/dist/index.es262.js +8 -21
- package/dist/index.es263.js +8 -9
- package/dist/index.es264.js +16 -38
- package/dist/index.es265.js +177 -17
- package/dist/index.es266.js +203 -13
- package/dist/index.es267.js +22 -3
- package/dist/index.es268.js +49 -18
- package/dist/index.es269.js +25 -52
- package/dist/index.es27.js +3 -3
- package/dist/index.es270.js +390 -16
- package/dist/index.es271.js +48 -10
- package/dist/index.es272.js +8 -2
- package/dist/index.es273.js +3 -2
- package/dist/index.es274.js +43 -176
- package/dist/index.es275.js +28 -201
- package/dist/index.es276.js +52 -22
- package/dist/index.es277.js +17 -47
- package/dist/index.es278.js +21 -24
- package/dist/index.es279.js +57 -384
- package/dist/index.es280.js +32 -25
- package/dist/index.es281.js +77 -2
- package/dist/index.es282.js +7 -106
- package/dist/index.es283.js +13 -74
- package/dist/index.es284.js +44 -35
- package/dist/index.es285.js +34 -63
- package/dist/index.es286.js +9 -34
- package/dist/index.es287.js +21 -64
- package/dist/index.es288.js +28 -112
- package/dist/index.es289.js +421 -89
- package/dist/index.es29.js +3 -3
- package/dist/index.es290.js +14 -43
- package/dist/index.es291.js +35 -2
- package/dist/index.es292.js +25 -2
- package/dist/index.es293.js +2 -2
- package/dist/index.es295.js +2 -2
- package/dist/index.es296.js +54 -2
- package/dist/index.es297.js +59 -2
- package/dist/index.es298.js +15 -2
- package/dist/index.es299.js +3 -2
- package/dist/index.es30.js +1 -1
- package/dist/index.es300.js +12 -241
- package/dist/index.es301.js +12 -384
- package/dist/index.es302.js +6 -168
- package/dist/index.es303.js +15 -153
- package/dist/index.es304.js +6 -141
- package/dist/index.es305.js +7 -2
- package/dist/index.es306.js +334 -2
- package/dist/index.es307.js +19 -2
- package/dist/index.es308.js +4 -2
- package/dist/index.es309.js +5 -2
- package/dist/index.es31.js +1 -1
- package/dist/index.es310.js +3 -2
- package/dist/index.es311.js +69 -47
- package/dist/index.es312.js +4 -8
- package/dist/index.es313.js +25 -3
- package/dist/index.es314.js +29 -45
- package/dist/index.es315.js +5 -32
- package/dist/index.es316.js +2 -52
- package/dist/index.es317.js +397 -19
- package/dist/index.es318.js +722 -21
- package/dist/index.es319.js +280 -60
- package/dist/index.es320.js +60 -31
- package/dist/index.es321.js +8 -75
- package/dist/index.es322.js +28 -6
- package/dist/index.es323.js +198 -14
- package/dist/index.es324.js +4 -43
- package/dist/index.es325.js +57 -34
- package/dist/index.es326.js +27 -7
- package/dist/index.es327.js +46 -21
- package/dist/index.es328.js +66 -27
- package/dist/index.es329.js +35 -422
- package/dist/index.es33.js +7 -7
- package/dist/index.es330.js +18 -12
- package/dist/index.es331.js +67 -34
- package/dist/index.es332.js +67 -15
- package/dist/index.es333.js +69 -8
- package/dist/index.es334.js +68 -4
- package/dist/index.es335.js +43 -54
- package/dist/index.es336.js +39 -20
- package/dist/index.es337.js +50 -38
- package/dist/index.es338.js +30 -48
- package/dist/index.es339.js +37 -32
- package/dist/index.es340.js +66 -13
- package/dist/index.es341.js +47 -43
- package/dist/index.es342.js +76 -47
- package/dist/index.es343.js +32 -54
- package/dist/index.es344.js +35 -57
- package/dist/index.es345.js +39 -38
- package/dist/index.es346.js +21 -37
- package/dist/index.es347.js +21 -50
- package/dist/index.es348.js +21 -40
- package/dist/index.es349.js +22 -34
- package/dist/index.es35.js +1 -1
- package/dist/index.es350.js +21 -63
- package/dist/index.es351.js +20 -62
- package/dist/index.es352.js +14 -91
- package/dist/index.es353.js +37 -38
- package/dist/index.es354.js +38 -39
- package/dist/index.es355.js +14 -41
- package/dist/index.es356.js +14 -25
- package/dist/index.es357.js +47 -27
- package/dist/index.es358.js +88 -25
- package/dist/index.es359.js +180 -26
- package/dist/index.es36.js +1 -1
- package/dist/index.es360.js +45 -27
- package/dist/index.es361.js +4 -30
- package/dist/index.es362.js +2 -20
- package/dist/index.es363.js +7 -45
- package/dist/index.es364.js +2 -46
- package/dist/index.es365.js +67 -19
- package/dist/index.es366.js +31 -20
- package/dist/index.es367.js +9 -2
- package/dist/index.es368.js +153 -2
- package/dist/index.es369.js +108 -10
- package/dist/index.es37.js +10 -10
- package/dist/index.es370.js +67 -9
- package/dist/index.es371.js +31 -5
- package/dist/index.es372.js +16 -13
- package/dist/index.es373.js +141 -5
- package/dist/index.es374.js +114 -7
- package/dist/index.es375.js +5 -333
- package/dist/index.es376.js +2 -19
- package/dist/index.es377.js +8 -4
- package/dist/index.es378.js +326 -4
- package/dist/index.es379.js +50 -3
- package/dist/index.es38.js +2 -2
- package/dist/index.es380.js +3 -71
- package/dist/index.es381.js +5 -4
- package/dist/index.es382.js +3 -25
- package/dist/index.es383.js +24 -29
- package/dist/index.es384.js +110 -5
- package/dist/index.es385.js +17 -23
- package/dist/index.es386.js +2 -2
- package/dist/index.es387.js +4 -35
- package/dist/index.es388.js +21 -176
- package/dist/index.es389.js +102 -88
- package/dist/index.es39.js +6 -6
- package/dist/index.es390.js +49 -17
- package/dist/index.es391.js +523 -2
- package/dist/index.es392.js +127 -2
- package/dist/index.es393.js +129 -2
- package/dist/index.es394.js +2 -2
- package/dist/index.es395.js +104 -22
- package/dist/index.es396.js +76 -2
- package/dist/index.es397.js +36 -3
- package/dist/index.es398.js +64 -9
- package/dist/index.es399.js +31 -44
- package/dist/index.es40.js +3 -3
- package/dist/index.es400.js +66 -3
- package/dist/index.es401.js +113 -7
- package/dist/index.es402.js +91 -48
- package/dist/index.es403.js +43 -276
- package/dist/index.es404.js +2 -80
- package/dist/index.es405.js +2 -166
- package/dist/index.es406.js +2 -93
- package/dist/index.es407.js +2 -185
- package/dist/index.es408.js +2 -48
- package/dist/index.es409.js +2 -4
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +2 -68
- package/dist/index.es411.js +2 -31
- package/dist/index.es412.js +2 -9
- package/dist/index.es413.js +236 -150
- package/dist/index.es414.js +383 -109
- package/dist/index.es415.js +169 -4
- package/dist/index.es416.js +150 -53
- package/dist/index.es417.js +139 -58
- package/dist/index.es418.js +2 -20
- package/dist/index.es419.js +2 -101
- package/dist/index.es42.js +1 -1
- package/dist/index.es420.js +2 -47
- package/dist/index.es421.js +2 -68
- package/dist/index.es422.js +2 -31
- package/dist/index.es423.js +2 -16
- package/dist/index.es424.js +25 -141
- package/dist/index.es425.js +6 -114
- package/dist/index.es426.js +6 -6
- package/dist/index.es427.js +43 -2
- package/dist/index.es428.js +57 -7
- package/dist/index.es429.js +40 -326
- package/dist/index.es43.js +109 -102
- package/dist/index.es430.js +26 -47
- package/dist/index.es431.js +31 -3
- package/dist/index.es432.js +11 -26
- package/dist/index.es433.js +10 -2
- package/dist/index.es434.js +9 -21
- package/dist/index.es435.js +8 -24
- package/dist/index.es436.js +10 -28
- package/dist/index.es437.js +32 -21
- package/dist/index.es438.js +21 -25
- package/dist/index.es439.js +16 -49
- package/dist/index.es44.js +32 -27
- package/dist/index.es440.js +46 -36
- package/dist/index.es441.js +11 -21
- package/dist/index.es442.js +16 -23
- package/dist/index.es443.js +22 -21
- package/dist/index.es444.js +29 -21
- package/dist/index.es445.js +29 -23
- package/dist/index.es446.js +10 -2
- package/dist/index.es447.js +107 -2
- package/dist/index.es448.js +32 -2
- package/dist/index.es449.js +32 -2
- package/dist/index.es450.js +69 -2
- package/dist/index.es451.js +23 -2
- package/dist/index.es452.js +350 -2
- package/dist/index.es453.js +31 -2
- package/dist/index.es454.js +7 -2
- package/dist/index.es455.js +7 -2
- package/dist/index.es456.js +5 -2
- package/dist/index.es457.js +7 -2
- package/dist/index.es458.js +50 -28
- package/dist/index.es459.js +56 -25
- package/dist/index.es46.js +2 -2
- package/dist/index.es460.js +8 -32
- package/dist/index.es461.js +278 -29
- package/dist/index.es462.js +39 -27
- package/dist/index.es463.js +55 -25
- package/dist/index.es464.js +74 -72
- package/dist/index.es465.js +173 -25
- package/dist/index.es466.js +23 -32
- package/dist/index.es467.js +23 -44
- package/dist/index.es468.js +170 -26
- package/dist/index.es469.js +52 -46
- package/dist/index.es47.js +1 -1
- package/dist/index.es470.js +10 -123
- package/dist/index.es471.js +36 -46
- package/dist/index.es472.js +47 -27
- package/dist/index.es473.js +32 -26
- package/dist/index.es474.js +11 -26
- package/dist/index.es475.js +15 -26
- package/dist/index.es476.js +24 -23
- package/dist/index.es477.js +53 -29
- package/dist/index.es478.js +36 -26
- package/dist/index.es479.js +98 -21
- package/dist/index.es48.js +5 -5
- package/dist/index.es480.js +22 -26
- package/dist/index.es481.js +199 -48
- package/dist/index.es482.js +11 -118
- package/dist/index.es483.js +32 -24
- package/dist/index.es484.js +121 -36
- package/dist/index.es485.js +39 -44
- package/dist/index.es486.js +4 -55
- package/dist/index.es487.js +49 -44
- package/dist/index.es488.js +85 -26
- package/dist/index.es489.js +18 -43
- package/dist/index.es49.js +2 -2
- package/dist/index.es490.js +31 -36
- package/dist/index.es491.js +15 -62
- package/dist/index.es492.js +9 -36
- package/dist/index.es493.js +4 -23
- package/dist/index.es494.js +78 -26
- package/dist/index.es495.js +95 -30
- package/dist/index.es496.js +54 -21
- package/dist/index.es497.js +10 -26
- package/dist/index.es498.js +7 -43
- package/dist/index.es499.js +54 -28
- package/dist/index.es50.js +3 -3
- package/dist/index.es500.js +64 -39
- package/dist/index.es501.js +71 -28
- package/dist/index.es502.js +11 -28
- package/dist/index.es503.js +16 -32
- package/dist/index.es504.js +64 -26
- package/dist/index.es505.js +4 -21
- package/dist/index.es506.js +10 -21
- package/dist/index.es507.js +46 -41
- package/dist/index.es508.js +4 -26
- package/dist/index.es509.js +8 -30
- package/dist/index.es51.js +2 -2
- package/dist/index.es510.js +22 -31
- package/dist/index.es511.js +4 -36
- package/dist/index.es512.js +33 -29
- package/dist/index.es513.js +173 -39
- package/dist/index.es514.js +85 -30
- package/dist/index.es515.js +15 -34
- package/dist/index.es516.js +4 -41
- package/dist/index.es517.js +4 -30
- package/dist/index.es518.js +4 -21
- package/dist/index.es519.js +4 -34
- package/dist/index.es52.js +1 -1
- package/dist/index.es520.js +26 -33
- package/dist/index.es521.js +4 -41
- package/dist/index.es522.js +277 -37
- package/dist/index.es523.js +82 -29
- package/dist/index.es524.js +168 -26
- package/dist/index.es525.js +7 -26
- package/dist/index.es526.js +6 -26
- package/dist/index.es527.js +7 -28
- package/dist/index.es528.js +11 -28
- package/dist/index.es529.js +8 -29
- package/dist/index.es53.js +2 -2
- package/dist/index.es530.js +8 -30
- package/dist/index.es531.js +8 -21
- package/dist/index.es532.js +8 -31
- package/dist/index.es533.js +8 -106
- package/dist/index.es534.js +8 -26
- package/dist/index.es535.js +8 -21
- package/dist/index.es536.js +8 -28
- package/dist/index.es537.js +8 -21
- package/dist/index.es538.js +8 -27
- package/dist/index.es539.js +8 -21
- package/dist/index.es54.js +1 -1
- package/dist/index.es540.js +8 -26
- package/dist/index.es541.js +6 -2
- package/dist/index.es542.js +6 -2
- package/dist/index.es543.js +5 -1
- package/dist/index.es544.js +5 -1
- package/dist/index.es545.js +5 -1
- package/dist/index.es546.js +6 -2
- package/dist/index.es547.js +6 -2
- package/dist/index.es548.js +6 -2
- package/dist/index.es549.js +6 -2
- package/dist/index.es55.js +3 -3
- package/dist/index.es550.js +6 -2
- package/dist/index.es551.js +5 -1
- package/dist/index.es552.js +6 -2
- package/dist/index.es553.js +6 -2
- package/dist/index.es554.js +6 -2
- package/dist/index.es555.js +6 -2
- package/dist/index.es556.js +6 -2
- package/dist/index.es557.js +6 -2
- package/dist/index.es558.js +6 -2
- package/dist/index.es559.js +6 -2
- package/dist/index.es56.js +5 -5
- package/dist/index.es560.js +6 -2
- package/dist/index.es561.js +6 -2
- package/dist/index.es562.js +5 -1
- package/dist/index.es563.js +42 -2
- package/dist/index.es564.js +2 -2
- package/dist/index.es566.js +72 -2
- package/dist/index.es567.js +2 -2
- package/dist/index.es568.js +2 -2
- package/dist/index.es569.js +4 -2
- package/dist/index.es57.js +1 -1
- package/dist/index.es570.js +23 -2
- package/dist/index.es571.js +8 -4
- package/dist/index.es573.js +2 -2
- package/dist/index.es574.js +79 -2
- package/dist/index.es575.js +96 -2
- package/dist/index.es576.js +27 -4
- package/dist/index.es577.js +2 -2
- package/dist/index.es578.js +21 -4
- package/dist/index.es579.js +24 -4
- package/dist/index.es58.js +6 -6
- package/dist/index.es580.js +28 -4
- package/dist/index.es581.js +21 -4
- package/dist/index.es582.js +25 -4
- package/dist/index.es583.js +49 -4
- package/dist/index.es584.js +36 -4
- package/dist/index.es585.js +21 -4
- package/dist/index.es586.js +23 -4
- package/dist/index.es587.js +21 -4
- package/dist/index.es588.js +21 -4
- package/dist/index.es589.js +23 -4
- package/dist/index.es59.js +4 -4
- package/dist/index.es591.js +2 -2
- package/dist/index.es593.js +2 -2
- package/dist/index.es594.js +2 -2
- package/dist/index.es595.js +2 -2
- package/dist/index.es597.js +2 -2
- package/dist/index.es598.js +2 -2
- package/dist/index.es599.js +2 -2
- package/dist/index.es60.js +6 -6
- package/dist/index.es600.js +2 -2
- package/dist/index.es601.js +2 -2
- package/dist/index.es602.js +29 -4
- package/dist/index.es603.js +26 -4
- package/dist/index.es604.js +32 -4
- package/dist/index.es605.js +29 -4
- package/dist/index.es606.js +27 -4
- package/dist/index.es607.js +26 -4
- package/dist/index.es608.js +72 -4
- package/dist/index.es609.js +26 -4
- package/dist/index.es61.js +2 -2
- package/dist/index.es610.js +32 -4
- package/dist/index.es611.js +44 -4
- package/dist/index.es612.js +26 -4
- package/dist/index.es613.js +46 -4
- package/dist/index.es614.js +123 -4
- package/dist/index.es615.js +46 -4
- package/dist/index.es616.js +27 -4
- package/dist/index.es617.js +26 -4
- package/dist/index.es618.js +26 -4
- package/dist/index.es619.js +26 -4
- package/dist/index.es620.js +23 -4
- package/dist/index.es621.js +30 -4
- package/dist/index.es622.js +26 -4
- package/dist/index.es623.js +21 -4
- package/dist/index.es624.js +6 -12
- package/dist/index.es625.js +28 -12
- package/dist/index.es626.js +102 -16
- package/dist/index.es627.js +10 -18
- package/dist/index.es628.js +17 -10
- package/dist/index.es629.js +26 -14
- package/dist/index.es630.js +39 -16
- package/dist/index.es631.js +28 -13
- package/dist/index.es632.js +9 -15
- package/dist/index.es633.js +23 -12
- package/dist/index.es634.js +19 -15
- package/dist/index.es635.js +41 -11
- package/dist/index.es636.js +17 -13
- package/dist/index.es637.js +6 -15
- package/dist/index.es638.js +8 -14
- package/dist/index.es639.js +10 -12
- package/dist/index.es64.js +5 -5
- package/dist/index.es640.js +8 -19
- package/dist/index.es641.js +6 -12
- package/dist/index.es642.js +24 -13
- package/dist/index.es643.js +8 -12
- package/dist/index.es644.js +27 -12
- package/dist/index.es645.js +15 -19
- package/dist/index.es646.js +15 -19
- package/dist/index.es647.js +13 -13
- package/dist/index.es648.js +9 -12
- package/dist/index.es649.js +8 -19
- package/dist/index.es650.js +6 -17
- package/dist/index.es651.js +24 -10
- package/dist/index.es652.js +7 -13
- package/dist/index.es653.js +15 -16
- package/dist/index.es654.js +15 -14
- package/dist/index.es655.js +18 -14
- package/dist/index.es656.js +11 -12
- package/dist/index.es657.js +25 -14
- package/dist/index.es658.js +20 -12
- package/dist/index.es659.js +22 -18
- package/dist/index.es66.js +1 -1
- package/dist/index.es660.js +24 -15
- package/dist/index.es661.js +12 -14
- package/dist/index.es662.js +7 -18
- package/dist/index.es663.js +34 -4
- package/dist/index.es664.js +33 -4
- package/dist/index.es665.js +41 -4
- package/dist/index.es666.js +37 -4
- package/dist/index.es667.js +29 -4
- package/dist/index.es668.js +26 -4
- package/dist/index.es669.js +26 -4
- package/dist/index.es670.js +26 -4
- package/dist/index.es671.js +28 -4
- package/dist/index.es672.js +28 -4
- package/dist/index.es673.js +29 -4
- package/dist/index.es674.js +30 -4
- package/dist/index.es675.js +21 -4
- package/dist/index.es676.js +31 -4
- package/dist/index.es677.js +106 -4
- package/dist/index.es678.js +26 -4
- package/dist/index.es679.js +21 -4
- package/dist/index.es68.js +1 -1
- package/dist/index.es680.js +28 -4
- package/dist/index.es681.js +21 -4
- package/dist/index.es682.js +27 -4
- package/dist/index.es683.js +21 -4
- package/dist/index.es684.js +26 -4
- package/dist/index.es685.js +2 -2
- package/dist/index.es686.js +2 -2
- package/dist/index.es687.js +2 -2
- package/dist/index.es689.js +2 -2
- package/dist/index.es69.js +2 -2
- package/dist/index.es690.js +2 -2
- package/dist/index.es692.js +2 -2
- package/dist/index.es694.js +2 -2
- package/dist/index.es696.js +2 -2
- package/dist/index.es698.js +2 -2
- package/dist/index.es699.js +2 -2
- package/dist/index.es70.js +1 -1
- package/dist/index.es700.js +2 -2
- package/dist/index.es701.js +2 -2
- package/dist/index.es702.js +4 -42
- package/dist/index.es703.js +4 -46
- package/dist/index.es704.js +4 -27
- package/dist/index.es707.js +2 -2
- package/dist/index.es708.js +2 -5
- package/dist/index.es709.js +2 -3
- package/dist/index.es71.js +39 -38
- package/dist/index.es710.js +2 -24
- package/dist/index.es711.js +2 -110
- package/dist/index.es712.js +2 -16
- package/dist/index.es713.js +4 -8
- package/dist/index.es715.js +2 -2
- package/dist/index.es716.js +2 -79
- package/dist/index.es717.js +2 -96
- package/dist/index.es718.js +2 -523
- package/dist/index.es719.js +2 -127
- package/dist/index.es720.js +2 -129
- package/dist/index.es721.js +2 -22
- package/dist/index.es722.js +2 -83
- package/dist/index.es723.js +2 -25
- package/dist/index.es724.js +2 -6
- package/dist/index.es725.js +2 -6
- package/dist/index.es726.js +2 -43
- package/dist/index.es727.js +2 -58
- package/dist/index.es728.js +2 -41
- package/dist/index.es729.js +2 -29
- package/dist/index.es73.js +2 -2
- package/dist/index.es730.js +2 -32
- package/dist/index.es731.js +2 -10
- package/dist/index.es732.js +2 -10
- package/dist/index.es733.js +2 -7
- package/dist/index.es734.js +2 -6
- package/dist/index.es735.js +2 -8
- package/dist/index.es736.js +2 -30
- package/dist/index.es737.js +2 -19
- package/dist/index.es738.js +2 -14
- package/dist/index.es739.js +2 -44
- package/dist/index.es74.js +2 -2
- package/dist/index.es740.js +2 -9
- package/dist/index.es741.js +2 -14
- package/dist/index.es742.js +2 -20
- package/dist/index.es743.js +2 -27
- package/dist/index.es744.js +2 -27
- package/dist/index.es745.js +2 -10
- package/dist/index.es746.js +2 -107
- package/dist/index.es747.js +2 -32
- package/dist/index.es748.js +2 -32
- package/dist/index.es749.js +2 -69
- package/dist/index.es75.js +2 -2
- package/dist/index.es750.js +2 -23
- package/dist/index.es751.js +2 -350
- package/dist/index.es752.js +2 -31
- package/dist/index.es753.js +2 -7
- package/dist/index.es754.js +2 -7
- package/dist/index.es755.js +2 -5
- package/dist/index.es756.js +2 -7
- package/dist/index.es757.js +2 -49
- package/dist/index.es758.js +2 -55
- package/dist/index.es759.js +2 -6
- package/dist/index.es76.js +1 -1
- package/dist/index.es760.js +2 -276
- package/dist/index.es761.js +2 -37
- package/dist/index.es762.js +2 -54
- package/dist/index.es763.js +2 -72
- package/dist/index.es764.js +2 -172
- package/dist/index.es765.js +2 -21
- package/dist/index.es766.js +2 -21
- package/dist/index.es767.js +2 -168
- package/dist/index.es768.js +32 -52
- package/dist/index.es769.js +32 -10
- package/dist/index.es77.js +11 -11
- package/dist/index.es770.js +32 -36
- package/dist/index.es771.js +32 -47
- package/dist/index.es772.js +29 -32
- package/dist/index.es773.js +32 -11
- package/dist/index.es774.js +32 -15
- package/dist/index.es775.js +29 -24
- package/dist/index.es776.js +32 -54
- package/dist/index.es777.js +32 -36
- package/dist/index.es778.js +32 -98
- package/dist/index.es779.js +32 -22
- package/dist/index.es78.js +2 -2
- package/dist/index.es780.js +32 -199
- package/dist/index.es781.js +32 -11
- package/dist/index.es782.js +32 -32
- package/dist/index.es783.js +32 -121
- package/dist/index.es784.js +32 -39
- package/dist/index.es785.js +32 -4
- package/dist/index.es786.js +32 -10
- package/dist/index.es787.js +32 -4
- package/dist/index.es788.js +27 -9
- package/dist/index.es789.js +32 -18
- package/dist/index.es79.js +42 -32
- package/dist/index.es790.js +32 -31
- package/dist/index.es791.js +32 -15
- package/dist/index.es792.js +29 -4
- package/dist/index.es793.js +32 -78
- package/dist/index.es794.js +32 -95
- package/dist/index.es795.js +29 -54
- package/dist/index.es796.js +32 -10
- package/dist/index.es797.js +31 -7
- package/dist/index.es798.js +32 -54
- package/dist/index.es799.js +32 -71
- package/dist/index.es80.js +11 -9
- package/dist/index.es800.js +32 -11
- package/dist/index.es801.js +32 -16
- package/dist/index.es802.js +26 -64
- package/dist/index.es803.js +31 -66
- package/dist/index.es804.js +32 -4
- package/dist/index.es805.js +32 -4
- package/dist/index.es806.js +32 -7
- package/dist/index.es807.js +2 -4
- package/dist/index.es808.js +2 -5
- package/dist/index.es809.js +2 -9
- package/dist/index.es81.js +10 -47
- package/dist/index.es810.js +2 -6
- package/dist/index.es811.js +2 -6
- package/dist/index.es812.js +2 -6
- package/dist/index.es813.js +2 -6
- package/dist/index.es814.js +2 -6
- package/dist/index.es815.js +2 -6
- package/dist/index.es816.js +2 -6
- package/dist/index.es817.js +2 -6
- package/dist/index.es818.js +2 -6
- package/dist/index.es819.js +1 -5
- package/dist/index.es82.js +48 -17
- package/dist/index.es820.js +1 -5
- package/dist/index.es821.js +2 -6
- package/dist/index.es822.js +2 -6
- package/dist/index.es823.js +2 -6
- package/dist/index.es824.js +2 -6
- package/dist/index.es825.js +2 -6
- package/dist/index.es826.js +2 -6
- package/dist/index.es827.js +1 -5
- package/dist/index.es828.js +2 -6
- package/dist/index.es829.js +2 -6
- package/dist/index.es83.js +15 -133
- package/dist/index.es830.js +2 -6
- package/dist/index.es831.js +2 -6
- package/dist/index.es832.js +1 -5
- package/dist/index.es833.js +2 -6
- package/dist/index.es834.js +1 -5
- package/dist/index.es835.js +2 -6
- package/dist/index.es836.js +2 -6
- package/dist/index.es837.js +2 -6
- package/dist/index.es838.js +2 -6
- package/dist/index.es839.js +1 -5
- package/dist/index.es84.js +133 -67
- package/dist/index.es840.js +2 -6
- package/dist/index.es841.js +2 -6
- package/dist/index.es842.js +2 -6
- package/dist/index.es843.js +1 -5
- package/dist/index.es844.js +2 -42
- package/dist/index.es845.js +2 -72
- package/dist/index.es846.js +42 -4
- package/dist/index.es847.js +45 -48
- package/dist/index.es848.js +27 -85
- package/dist/index.es849.js +2 -2
- package/dist/index.es85.js +67 -145
- package/dist/index.es851.js +2 -4
- package/dist/index.es852.js +21 -22
- package/dist/index.es853.js +83 -2
- package/dist/index.es854.js +14 -2
- package/dist/index.es855.js +11 -11
- package/dist/index.es856.js +12 -12
- package/dist/index.es857.js +12 -12
- package/dist/index.es858.js +12 -12
- package/dist/index.es859.js +12 -12
- package/dist/index.es86.js +137 -90
- package/dist/index.es860.js +12 -12
- package/dist/index.es861.js +9 -9
- package/dist/index.es862.js +12 -12
- package/dist/index.es863.js +12 -12
- package/dist/index.es864.js +9 -9
- package/dist/index.es865.js +12 -12
- package/dist/index.es866.js +12 -12
- package/dist/index.es867.js +12 -12
- package/dist/index.es868.js +11 -11
- package/dist/index.es869.js +13 -13
- package/dist/index.es87.js +100 -10
- package/dist/index.es870.js +13 -13
- package/dist/index.es871.js +12 -12
- package/dist/index.es872.js +12 -12
- package/dist/index.es873.js +12 -12
- package/dist/index.es874.js +12 -12
- package/dist/index.es875.js +12 -12
- package/dist/index.es876.js +12 -12
- package/dist/index.es877.js +1 -1
- package/dist/index.es878.js +12 -12
- package/dist/index.es879.js +12 -12
- package/dist/index.es88.js +10 -2
- package/dist/index.es880.js +12 -12
- package/dist/index.es881.js +12 -12
- package/dist/index.es882.js +12 -12
- package/dist/index.es883.js +12 -12
- package/dist/index.es884.js +12 -12
- package/dist/index.es885.js +12 -12
- package/dist/index.es886.js +12 -12
- package/dist/index.es887.js +11 -11
- package/dist/index.es888.js +2 -14
- package/dist/index.es889.js +2 -23
- package/dist/index.es89.js +2 -8
- package/dist/index.es890.js +21 -11
- package/dist/index.es891.js +11 -26
- package/dist/index.es892.js +27 -4
- package/dist/index.es893.js +7 -0
- package/dist/index.es90.js +8 -11
- package/dist/index.es91.js +10 -10
- package/dist/index.es92.js +10 -8
- package/dist/index.es93.js +9 -3
- package/dist/index.es94.js +3 -5
- package/dist/index.es95.js +5 -15
- package/dist/index.es96.js +12 -2288
- package/dist/index.es97.js +2283 -208
- package/dist/index.es98.js +3 -3
- package/dist/index.es99.js +307 -3670
- package/dist/style.css +29 -0
- package/package.json +5 -4
package/dist/index.es149.js
CHANGED
|
@@ -1,2056 +1,348 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const n = t.colors.comment;
|
|
25
|
-
return n.open + "<!--" + Ce(e) + "-->" + n.close;
|
|
26
|
-
}, at = (e, t, n, l, r) => {
|
|
27
|
-
const o = l.colors.tag;
|
|
28
|
-
return o.open + "<" + e + (t && o.close + t + l.spacingOuter + r + o.open) + (n ? ">" + o.close + n + l.spacingOuter + r + o.open + "</" + e : (t && !l.min ? "" : " ") + "/") + ">" + o.close;
|
|
29
|
-
}, ut = (e, t) => {
|
|
30
|
-
const n = t.colors.tag;
|
|
31
|
-
return n.open + "<" + e + n.close + " …" + n.open + " />" + n.close;
|
|
32
|
-
}, st = 1, qe = 3, Oe = 8, Me = 11, ct = /^((HTML|SVG)\w*)?Element$/, Pe = (e) => {
|
|
33
|
-
const {
|
|
34
|
-
tagName: t
|
|
35
|
-
} = e;
|
|
36
|
-
return !!(typeof t == "string" && t.includes("-") || typeof e.hasAttribute == "function" && e.hasAttribute("is"));
|
|
37
|
-
}, ft = (e) => {
|
|
38
|
-
const t = e.constructor.name, {
|
|
39
|
-
nodeType: n
|
|
40
|
-
} = e;
|
|
41
|
-
return n === st && (ct.test(t) || Pe(e)) || n === qe && t === "Text" || n === Oe && t === "Comment" || n === Me && t === "DocumentFragment";
|
|
42
|
-
};
|
|
43
|
-
function dt(e) {
|
|
44
|
-
return e.nodeType === qe;
|
|
45
|
-
}
|
|
46
|
-
function bt(e) {
|
|
47
|
-
return e.nodeType === Oe;
|
|
48
|
-
}
|
|
49
|
-
function Y(e) {
|
|
50
|
-
return e.nodeType === Me;
|
|
51
|
-
}
|
|
52
|
-
function pt(e) {
|
|
53
|
-
return {
|
|
54
|
-
test: (t) => {
|
|
55
|
-
var n;
|
|
56
|
-
return ((t == null || (n = t.constructor) == null ? void 0 : n.name) || Pe(t)) && ft(t);
|
|
57
|
-
},
|
|
58
|
-
serialize: (t, n, l, r, o, i) => {
|
|
59
|
-
if (dt(t))
|
|
60
|
-
return De(t.data, n);
|
|
61
|
-
if (bt(t))
|
|
62
|
-
return it(t.data, n);
|
|
63
|
-
const a = Y(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
64
|
-
return ++r > n.maxDepth ? ut(a, n) : at(a, rt(Y(t) ? [] : Array.from(t.attributes).map((u) => u.name).sort(), Y(t) ? {} : Array.from(t.attributes).reduce((u, s) => (u[s.name] = s.value, u), {}), n, l + n.indent, r, o, i), ot(Array.prototype.slice.call(t.childNodes || t.children).filter(e), n, l + n.indent, r, o, i), n, l);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
let Ne = null, fe = null, de = null;
|
|
69
|
-
try {
|
|
70
|
-
const e = module && module.require;
|
|
71
|
-
fe = e.call(module, "fs").readFileSync, de = e.call(module, "@babel/code-frame").codeFrameColumns, Ne = e.call(module, "chalk");
|
|
72
|
-
} catch {
|
|
73
|
-
}
|
|
74
|
-
function yt(e) {
|
|
75
|
-
const t = e.indexOf("(") + 1, n = e.indexOf(")"), l = e.slice(t, n), r = l.split(":"), [o, i, a] = [r[0], parseInt(r[1], 10), parseInt(r[2], 10)];
|
|
76
|
-
let u = "";
|
|
77
|
-
try {
|
|
78
|
-
u = fe(o, "utf-8");
|
|
79
|
-
} catch {
|
|
80
|
-
return "";
|
|
1
|
+
import { ButtonContext as D } from "./index.es147.js";
|
|
2
|
+
import { CheckboxContext as U } from "./index.es272.js";
|
|
3
|
+
import { CollectionRendererContext as B, DefaultCollectionRenderer as G, usePersistedKeys as O } from "./index.es284.js";
|
|
4
|
+
import { useRenderProps as w, Provider as L, DEFAULT_SLOT as W, useContextProps as j } from "./index.es148.js";
|
|
5
|
+
import { useTreeGridList as q } from "./index.es286.js";
|
|
6
|
+
import { useTreeGridListItem as N } from "./index.es287.js";
|
|
7
|
+
import { createLeafComponent as I, createBranchComponent as J, CollectionBuilder as Q, Collection as X } from "./index.es84.js";
|
|
8
|
+
import { useCachedChildren as Y } from "./index.es285.js";
|
|
9
|
+
import { mergeProps as M } from "./index.es277.js";
|
|
10
|
+
import { filterDOMProps as S } from "./index.es278.js";
|
|
11
|
+
import { useObjectRef as Z } from "./index.es283.js";
|
|
12
|
+
import { useControlledState as ee } from "./index.es288.js";
|
|
13
|
+
import n, { forwardRef as te, useContext as E, createContext as T, useEffect as F, useRef as ae, useMemo as le } from "react";
|
|
14
|
+
import { useHover as re } from "./index.es281.js";
|
|
15
|
+
import { useFocusRing as k } from "./index.es280.js";
|
|
16
|
+
import { FocusScope as oe } from "./index.es289.js";
|
|
17
|
+
import { useGridListSelectionCheckbox as ne } from "./index.es290.js";
|
|
18
|
+
import { useTreeState as se } from "./index.es291.js";
|
|
19
|
+
class ie {
|
|
20
|
+
// TODO: should this collection's getters reflect the flattened structure or the original structure
|
|
21
|
+
// If we respresent the flattened structure, it is easier for the keyboard nav but harder to find all the nodes
|
|
22
|
+
*[Symbol.iterator]() {
|
|
23
|
+
yield* this.flattenedRows;
|
|
81
24
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
line: i,
|
|
85
|
-
column: a
|
|
86
|
-
}
|
|
87
|
-
}, {
|
|
88
|
-
highlightCode: !0,
|
|
89
|
-
linesBelow: 0
|
|
90
|
-
});
|
|
91
|
-
return Ne.dim(l) + `
|
|
92
|
-
` + s + `
|
|
93
|
-
`;
|
|
94
|
-
}
|
|
95
|
-
function mt() {
|
|
96
|
-
if (!fe || !de)
|
|
97
|
-
return "";
|
|
98
|
-
const t = new Error().stack.split(`
|
|
99
|
-
`).slice(1).find((n) => !n.includes("node_modules/"));
|
|
100
|
-
return yt(t);
|
|
101
|
-
}
|
|
102
|
-
const Le = 3;
|
|
103
|
-
function Z() {
|
|
104
|
-
return typeof jest < "u" && jest !== null ? (
|
|
105
|
-
// legacy timers
|
|
106
|
-
setTimeout._isMockFunction === !0 || // modern timers
|
|
107
|
-
// eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix
|
|
108
|
-
Object.prototype.hasOwnProperty.call(setTimeout, "clock")
|
|
109
|
-
) : !1;
|
|
110
|
-
}
|
|
111
|
-
function be() {
|
|
112
|
-
if (typeof window > "u")
|
|
113
|
-
throw new Error("Could not find default container");
|
|
114
|
-
return window.document;
|
|
115
|
-
}
|
|
116
|
-
function ke(e) {
|
|
117
|
-
if (e.defaultView)
|
|
118
|
-
return e.defaultView;
|
|
119
|
-
if (e.ownerDocument && e.ownerDocument.defaultView)
|
|
120
|
-
return e.ownerDocument.defaultView;
|
|
121
|
-
if (e.window)
|
|
122
|
-
return e.window;
|
|
123
|
-
throw e.ownerDocument && e.ownerDocument.defaultView === null ? new Error("It looks like the window object is not available for the provided node.") : e.then instanceof Function ? new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?") : Array.isArray(e) ? new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?") : typeof e.debug == "function" && typeof e.logTestingPlaygroundURL == "function" ? new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?") : new Error("The given node is not an Element, the node type is: " + typeof e + ".");
|
|
124
|
-
}
|
|
125
|
-
function S(e) {
|
|
126
|
-
if (!e || typeof e.querySelector != "function" || typeof e.querySelectorAll != "function")
|
|
127
|
-
throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + t(e) + ".");
|
|
128
|
-
function t(n) {
|
|
129
|
-
return typeof n == "object" ? n === null ? "null" : n.constructor.name : typeof n;
|
|
25
|
+
get size() {
|
|
26
|
+
return this.flattenedRows.length;
|
|
130
27
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (typeof process > "u")
|
|
134
|
-
return !1;
|
|
135
|
-
let e;
|
|
136
|
-
try {
|
|
137
|
-
var t;
|
|
138
|
-
const n = (t = process.env) == null ? void 0 : t.COLORS;
|
|
139
|
-
n && (e = JSON.parse(n));
|
|
140
|
-
} catch {
|
|
28
|
+
getKeys() {
|
|
29
|
+
return this.keyMap.keys();
|
|
141
30
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
DOMCollection: Et
|
|
145
|
-
} = _e, vt = 1, ht = 8;
|
|
146
|
-
function Tt(e) {
|
|
147
|
-
return e.nodeType !== ht && (e.nodeType !== vt || !e.matches(y().defaultIgnore));
|
|
148
|
-
}
|
|
149
|
-
function H(e, t, n) {
|
|
150
|
-
if (n === void 0 && (n = {}), e || (e = be().body), typeof t != "number" && (t = typeof process < "u" && typeof process.env < "u" && process.env.DEBUG_PRINT_LIMIT || 7e3), t === 0)
|
|
151
|
-
return "";
|
|
152
|
-
e.documentElement && (e = e.documentElement);
|
|
153
|
-
let l = typeof e;
|
|
154
|
-
if (l === "object" ? l = e.constructor.name : e = {}, !("outerHTML" in e))
|
|
155
|
-
throw new TypeError("Expected an element or document but got " + l);
|
|
156
|
-
const {
|
|
157
|
-
filterNode: r = Tt,
|
|
158
|
-
...o
|
|
159
|
-
} = n, i = Ze(e, {
|
|
160
|
-
plugins: [pt(r), Et],
|
|
161
|
-
printFunctionName: !1,
|
|
162
|
-
highlight: gt(),
|
|
163
|
-
...o
|
|
164
|
-
});
|
|
165
|
-
return t !== void 0 && e.outerHTML.length > t ? i.slice(0, t) + "..." : i;
|
|
166
|
-
}
|
|
167
|
-
const Te = function() {
|
|
168
|
-
const e = mt();
|
|
169
|
-
console.log(e ? H(...arguments) + `
|
|
170
|
-
|
|
171
|
-
` + e : H(...arguments));
|
|
172
|
-
};
|
|
173
|
-
let M = {
|
|
174
|
-
testIdAttribute: "data-testid",
|
|
175
|
-
asyncUtilTimeout: 1e3,
|
|
176
|
-
// asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
|
|
177
|
-
// forcing react-testing-library to wrap all async functions would've been
|
|
178
|
-
// a total nightmare (consider wrapping every findBy* query and then also
|
|
179
|
-
// updating `within` so those would be wrapped too. Total nightmare).
|
|
180
|
-
// so we have this config option that's really only intended for
|
|
181
|
-
// react-testing-library to use. For that reason, this feature will remain
|
|
182
|
-
// undocumented.
|
|
183
|
-
asyncWrapper: (e) => e(),
|
|
184
|
-
unstable_advanceTimersWrapper: (e) => e(),
|
|
185
|
-
eventWrapper: (e) => e(),
|
|
186
|
-
// default value for the `hidden` option in `ByRole` queries
|
|
187
|
-
defaultHidden: !1,
|
|
188
|
-
// default value for the `ignore` option in `ByText` queries
|
|
189
|
-
defaultIgnore: "script, style",
|
|
190
|
-
// showOriginalStackTrace flag to show the full error stack traces for async errors
|
|
191
|
-
showOriginalStackTrace: !1,
|
|
192
|
-
// throw errors w/ suggestions for better queries. Opt in so off by default.
|
|
193
|
-
throwSuggestions: !1,
|
|
194
|
-
// called when getBy* queries fail. (message, container) => Error
|
|
195
|
-
getElementError(e, t) {
|
|
196
|
-
const n = H(t), l = new Error([e, "Ignored nodes: comments, " + M.defaultIgnore + `
|
|
197
|
-
` + n].filter(Boolean).join(`
|
|
198
|
-
|
|
199
|
-
`));
|
|
200
|
-
return l.name = "TestingLibraryElementError", l;
|
|
201
|
-
},
|
|
202
|
-
_disableExpensiveErrorDiagnostics: !1,
|
|
203
|
-
computedStyleSupportsPseudoElements: !1
|
|
204
|
-
};
|
|
205
|
-
function At(e) {
|
|
206
|
-
try {
|
|
207
|
-
return M._disableExpensiveErrorDiagnostics = !0, e();
|
|
208
|
-
} finally {
|
|
209
|
-
M._disableExpensiveErrorDiagnostics = !1;
|
|
31
|
+
getItem(e) {
|
|
32
|
+
return this.keyMap.get(e) || null;
|
|
210
33
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
typeof e == "function" && (e = e(M)), M = {
|
|
214
|
-
...M,
|
|
215
|
-
...e
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
function y() {
|
|
219
|
-
return M;
|
|
220
|
-
}
|
|
221
|
-
const wt = ["button", "meter", "output", "progress", "select", "textarea", "input"];
|
|
222
|
-
function Fe(e) {
|
|
223
|
-
return wt.includes(e.nodeName.toLowerCase()) ? "" : e.nodeType === Le ? e.textContent : Array.from(e.childNodes).map((t) => Fe(t)).join("");
|
|
224
|
-
}
|
|
225
|
-
function ee(e) {
|
|
226
|
-
let t;
|
|
227
|
-
return e.tagName.toLowerCase() === "label" ? t = Fe(e) : t = e.value || e.textContent, t;
|
|
228
|
-
}
|
|
229
|
-
function Re(e) {
|
|
230
|
-
if (e.labels !== void 0) {
|
|
231
|
-
var t;
|
|
232
|
-
return (t = e.labels) != null ? t : [];
|
|
34
|
+
at(e) {
|
|
35
|
+
return this.flattenedRows[e];
|
|
233
36
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
function It(e) {
|
|
239
|
-
return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName) || e.tagName === "INPUT" && e.getAttribute("type") !== "hidden";
|
|
240
|
-
}
|
|
241
|
-
function je(e, t, n) {
|
|
242
|
-
let {
|
|
243
|
-
selector: l = "*"
|
|
244
|
-
} = n === void 0 ? {} : n;
|
|
245
|
-
const r = t.getAttribute("aria-labelledby"), o = r ? r.split(" ") : [];
|
|
246
|
-
return o.length ? o.map((i) => {
|
|
247
|
-
const a = e.querySelector('[id="' + i + '"]');
|
|
248
|
-
return a ? {
|
|
249
|
-
content: ee(a),
|
|
250
|
-
formControl: null
|
|
251
|
-
} : {
|
|
252
|
-
content: "",
|
|
253
|
-
formControl: null
|
|
254
|
-
};
|
|
255
|
-
}) : Array.from(Re(t)).map((i) => {
|
|
256
|
-
const a = ee(i), s = Array.from(i.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((c) => c.matches(l))[0];
|
|
257
|
-
return {
|
|
258
|
-
content: a,
|
|
259
|
-
formControl: s
|
|
260
|
-
};
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
function We(e) {
|
|
264
|
-
if (e == null)
|
|
265
|
-
throw new Error(
|
|
266
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string`
|
|
267
|
-
"It looks like " + e + " was passed instead of a matcher. Did you do something like getByText(" + e + ")?"
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
function R(e, t, n, l) {
|
|
271
|
-
if (typeof e != "string")
|
|
272
|
-
return !1;
|
|
273
|
-
We(n);
|
|
274
|
-
const r = l(e);
|
|
275
|
-
return typeof n == "string" || typeof n == "number" ? r.toLowerCase().includes(n.toString().toLowerCase()) : typeof n == "function" ? n(r, t) : Ve(n, r);
|
|
276
|
-
}
|
|
277
|
-
function B(e, t, n, l) {
|
|
278
|
-
if (typeof e != "string")
|
|
279
|
-
return !1;
|
|
280
|
-
We(n);
|
|
281
|
-
const r = l(e);
|
|
282
|
-
return n instanceof Function ? n(r, t) : n instanceof RegExp ? Ve(n, r) : r === String(n);
|
|
283
|
-
}
|
|
284
|
-
function ze(e) {
|
|
285
|
-
let {
|
|
286
|
-
trim: t = !0,
|
|
287
|
-
collapseWhitespace: n = !0
|
|
288
|
-
} = e === void 0 ? {} : e;
|
|
289
|
-
return (l) => {
|
|
290
|
-
let r = l;
|
|
291
|
-
return r = t ? r.trim() : r, r = n ? r.replace(/\s+/g, " ") : r, r;
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
function N(e) {
|
|
295
|
-
let {
|
|
296
|
-
trim: t,
|
|
297
|
-
collapseWhitespace: n,
|
|
298
|
-
normalizer: l
|
|
299
|
-
} = e;
|
|
300
|
-
if (!l)
|
|
301
|
-
return ze({
|
|
302
|
-
trim: t,
|
|
303
|
-
collapseWhitespace: n
|
|
304
|
-
});
|
|
305
|
-
if (typeof t < "u" || typeof n < "u")
|
|
306
|
-
throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');
|
|
307
|
-
return l;
|
|
308
|
-
}
|
|
309
|
-
function Ve(e, t) {
|
|
310
|
-
const n = e.test(t);
|
|
311
|
-
return e.global && e.lastIndex !== 0 && (console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."), e.lastIndex = 0), n;
|
|
312
|
-
}
|
|
313
|
-
function X(e) {
|
|
314
|
-
return e.matches("input[type=submit], input[type=button], input[type=reset]") ? e.value : Array.from(e.childNodes).filter((t) => t.nodeType === Le && !!t.textContent).map((t) => t.textContent).join("");
|
|
315
|
-
}
|
|
316
|
-
const xt = Bt(et);
|
|
317
|
-
function Ue(e) {
|
|
318
|
-
return e.hidden === !0 || e.getAttribute("aria-hidden") === "true" || e.ownerDocument.defaultView.getComputedStyle(e).display === "none";
|
|
319
|
-
}
|
|
320
|
-
function pe(e, t) {
|
|
321
|
-
t === void 0 && (t = {});
|
|
322
|
-
const {
|
|
323
|
-
isSubtreeInaccessible: n = Ue
|
|
324
|
-
} = t;
|
|
325
|
-
if (e.ownerDocument.defaultView.getComputedStyle(e).visibility === "hidden")
|
|
326
|
-
return !0;
|
|
327
|
-
let r = e;
|
|
328
|
-
for (; r; ) {
|
|
329
|
-
if (n(r))
|
|
330
|
-
return !0;
|
|
331
|
-
r = r.parentElement;
|
|
37
|
+
getFirstKey() {
|
|
38
|
+
var e;
|
|
39
|
+
return (e = this.flattenedRows[0]) === null || e === void 0 ? void 0 : e.key;
|
|
332
40
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
for (const {
|
|
337
|
-
match: t,
|
|
338
|
-
roles: n
|
|
339
|
-
} of xt)
|
|
340
|
-
if (t(e))
|
|
341
|
-
return [...n];
|
|
342
|
-
return [];
|
|
343
|
-
}
|
|
344
|
-
function Bt(e) {
|
|
345
|
-
function t(i) {
|
|
346
|
-
let {
|
|
347
|
-
name: a,
|
|
348
|
-
attributes: u
|
|
349
|
-
} = i;
|
|
350
|
-
return "" + a + u.map((s) => {
|
|
351
|
-
let {
|
|
352
|
-
name: c,
|
|
353
|
-
value: f,
|
|
354
|
-
constraints: d = []
|
|
355
|
-
} = s;
|
|
356
|
-
const E = d.indexOf("undefined") !== -1, g = d.indexOf("set") !== -1;
|
|
357
|
-
return typeof f < "u" ? "[" + c + '="' + f + '"]' : E ? ":not([" + c + "])" : g ? "[" + c + "]:not([" + c + '=""])' : "[" + c + "]";
|
|
358
|
-
}).join("");
|
|
41
|
+
getLastKey() {
|
|
42
|
+
var e;
|
|
43
|
+
return (e = this.flattenedRows[this.size - 1]) === null || e === void 0 ? void 0 : e.key;
|
|
359
44
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
return a.length;
|
|
45
|
+
getKeyAfter(e) {
|
|
46
|
+
var t;
|
|
47
|
+
let o = this.flattenedRows.findIndex((r) => r.key === e);
|
|
48
|
+
return (t = this.flattenedRows[o + 1]) === null || t === void 0 ? void 0 : t.key;
|
|
365
49
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
specificity: s
|
|
371
|
-
} = a;
|
|
372
|
-
return s - u;
|
|
50
|
+
getKeyBefore(e) {
|
|
51
|
+
var t;
|
|
52
|
+
let o = this.flattenedRows.findIndex((r) => r.key === e);
|
|
53
|
+
return (t = this.flattenedRows[o - 1]) === null || t === void 0 ? void 0 : t.key;
|
|
373
54
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
return (c) => u >= 0 && c.type !== "text" ? !1 : c.matches(s);
|
|
55
|
+
// Note that this will return Content nodes in addition to nested TreeItems
|
|
56
|
+
getChildren(e) {
|
|
57
|
+
let t = this.keyMap;
|
|
58
|
+
return {
|
|
59
|
+
*[Symbol.iterator]() {
|
|
60
|
+
let o = t.get(e), r = (o == null ? void 0 : o.firstChildKey) != null ? t.get(o.firstChildKey) : null;
|
|
61
|
+
for (; r; )
|
|
62
|
+
yield r, r = r.nextKey != null ? t.get(r.nextKey) : void 0;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
385
65
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
match: r(i),
|
|
390
|
-
roles: Array.from(a),
|
|
391
|
-
specificity: n(i)
|
|
392
|
-
}];
|
|
393
|
-
return o.sort(l);
|
|
394
|
-
}
|
|
395
|
-
function St(e, t) {
|
|
396
|
-
let {
|
|
397
|
-
hidden: n = !1
|
|
398
|
-
} = t === void 0 ? {} : t;
|
|
399
|
-
function l(r) {
|
|
400
|
-
return [r, ...Array.from(r.children).reduce((o, i) => [...o, ...l(i)], [])];
|
|
66
|
+
getTextValue(e) {
|
|
67
|
+
let t = this.getItem(e);
|
|
68
|
+
return t ? t.textValue : "";
|
|
401
69
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
[u]: [...a[u], o]
|
|
407
|
-
} : {
|
|
408
|
-
...a,
|
|
409
|
-
[u]: [o]
|
|
410
|
-
}, r);
|
|
411
|
-
}, {});
|
|
412
|
-
}
|
|
413
|
-
function Ct(e, t) {
|
|
414
|
-
let {
|
|
415
|
-
hidden: n,
|
|
416
|
-
includeDescription: l
|
|
417
|
-
} = t;
|
|
418
|
-
const r = St(e, {
|
|
419
|
-
hidden: n
|
|
420
|
-
});
|
|
421
|
-
return Object.entries(r).filter((o) => {
|
|
422
|
-
let [i] = o;
|
|
423
|
-
return i !== "generic";
|
|
424
|
-
}).map((o) => {
|
|
425
|
-
let [i, a] = o;
|
|
426
|
-
const u = "-".repeat(50), s = a.map((c) => {
|
|
427
|
-
const f = 'Name "' + ce(c, {
|
|
428
|
-
computedStyleSupportsPseudoElements: y().computedStyleSupportsPseudoElements
|
|
429
|
-
}) + `":
|
|
430
|
-
`, d = H(c.cloneNode(!1));
|
|
431
|
-
if (l) {
|
|
432
|
-
const E = 'Description "' + Se(c, {
|
|
433
|
-
computedStyleSupportsPseudoElements: y().computedStyleSupportsPseudoElements
|
|
434
|
-
}) + `":
|
|
435
|
-
`;
|
|
436
|
-
return "" + f + E + d;
|
|
437
|
-
}
|
|
438
|
-
return "" + f + d;
|
|
439
|
-
}).join(`
|
|
440
|
-
|
|
441
|
-
`);
|
|
442
|
-
return i + `:
|
|
443
|
-
|
|
444
|
-
` + s + `
|
|
445
|
-
|
|
446
|
-
` + u;
|
|
447
|
-
}).join(`
|
|
448
|
-
`);
|
|
449
|
-
}
|
|
450
|
-
function Dt(e) {
|
|
451
|
-
return e.tagName === "OPTION" ? e.selected : z(e, "aria-selected");
|
|
452
|
-
}
|
|
453
|
-
function qt(e) {
|
|
454
|
-
return e.getAttribute("aria-busy") === "true";
|
|
455
|
-
}
|
|
456
|
-
function Ot(e) {
|
|
457
|
-
if (!("indeterminate" in e && e.indeterminate))
|
|
458
|
-
return "checked" in e ? e.checked : z(e, "aria-checked");
|
|
459
|
-
}
|
|
460
|
-
function Mt(e) {
|
|
461
|
-
return z(e, "aria-pressed");
|
|
462
|
-
}
|
|
463
|
-
function Pt(e) {
|
|
464
|
-
var t, n;
|
|
465
|
-
return (t = (n = z(e, "aria-current")) != null ? n : e.getAttribute("aria-current")) != null ? t : !1;
|
|
466
|
-
}
|
|
467
|
-
function Nt(e) {
|
|
468
|
-
return z(e, "aria-expanded");
|
|
469
|
-
}
|
|
470
|
-
function z(e, t) {
|
|
471
|
-
const n = e.getAttribute(t);
|
|
472
|
-
if (n === "true")
|
|
473
|
-
return !0;
|
|
474
|
-
if (n === "false")
|
|
475
|
-
return !1;
|
|
476
|
-
}
|
|
477
|
-
function Lt(e) {
|
|
478
|
-
const t = {
|
|
479
|
-
H1: 1,
|
|
480
|
-
H2: 2,
|
|
481
|
-
H3: 3,
|
|
482
|
-
H4: 4,
|
|
483
|
-
H5: 5,
|
|
484
|
-
H6: 6
|
|
485
|
-
};
|
|
486
|
-
return e.getAttribute("aria-level") && Number(e.getAttribute("aria-level")) || t[e.tagName];
|
|
487
|
-
}
|
|
488
|
-
function kt(e) {
|
|
489
|
-
const t = e.getAttribute("aria-valuenow");
|
|
490
|
-
return t === null ? void 0 : +t;
|
|
491
|
-
}
|
|
492
|
-
function Ft(e) {
|
|
493
|
-
const t = e.getAttribute("aria-valuemax");
|
|
494
|
-
return t === null ? void 0 : +t;
|
|
495
|
-
}
|
|
496
|
-
function Rt(e) {
|
|
497
|
-
const t = e.getAttribute("aria-valuemin");
|
|
498
|
-
return t === null ? void 0 : +t;
|
|
499
|
-
}
|
|
500
|
-
function jt(e) {
|
|
501
|
-
const t = e.getAttribute("aria-valuetext");
|
|
502
|
-
return t === null ? void 0 : t;
|
|
503
|
-
}
|
|
504
|
-
const Ae = ze();
|
|
505
|
-
function Wt(e) {
|
|
506
|
-
return e.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
|
|
507
|
-
}
|
|
508
|
-
function we(e) {
|
|
509
|
-
return new RegExp(Wt(e.toLowerCase()), "i");
|
|
510
|
-
}
|
|
511
|
-
function C(e, t, n, l) {
|
|
512
|
-
let {
|
|
513
|
-
variant: r,
|
|
514
|
-
name: o
|
|
515
|
-
} = l, i = "";
|
|
516
|
-
const a = {}, u = [["Role", "TestId"].includes(e) ? n : we(n)];
|
|
517
|
-
o && (a.name = we(o)), e === "Role" && pe(t) && (a.hidden = !0, i = `Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
518
|
-
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
519
|
-
`), Object.keys(a).length > 0 && u.push(a);
|
|
520
|
-
const s = r + "By" + e;
|
|
521
|
-
return {
|
|
522
|
-
queryName: e,
|
|
523
|
-
queryMethod: s,
|
|
524
|
-
queryArgs: u,
|
|
525
|
-
variant: r,
|
|
526
|
-
warning: i,
|
|
527
|
-
toString() {
|
|
528
|
-
i && console.warn(i);
|
|
529
|
-
let [c, f] = u;
|
|
530
|
-
return c = typeof c == "string" ? "'" + c + "'" : c, f = f ? ", { " + Object.entries(f).map((d) => {
|
|
531
|
-
let [E, g] = d;
|
|
532
|
-
return E + ": " + g;
|
|
533
|
-
}).join(", ") + " }" : "", s + "(" + c + f + ")";
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
function D(e, t, n) {
|
|
538
|
-
return n && !t;
|
|
539
|
-
}
|
|
540
|
-
function te(e, t, n) {
|
|
541
|
-
var l, r;
|
|
542
|
-
if (t === void 0 && (t = "get"), e.matches(y().defaultIgnore))
|
|
543
|
-
return;
|
|
544
|
-
const o = (l = e.getAttribute("role")) != null ? l : (r = ye(e)) == null ? void 0 : r[0];
|
|
545
|
-
if (o !== "generic" && D("Role", n, o))
|
|
546
|
-
return C("Role", e, o, {
|
|
547
|
-
variant: t,
|
|
548
|
-
name: ce(e, {
|
|
549
|
-
computedStyleSupportsPseudoElements: y().computedStyleSupportsPseudoElements
|
|
550
|
-
})
|
|
551
|
-
});
|
|
552
|
-
const i = je(document, e).map((d) => d.content).join(" ");
|
|
553
|
-
if (D("LabelText", n, i))
|
|
554
|
-
return C("LabelText", e, i, {
|
|
555
|
-
variant: t
|
|
556
|
-
});
|
|
557
|
-
const a = e.getAttribute("placeholder");
|
|
558
|
-
if (D("PlaceholderText", n, a))
|
|
559
|
-
return C("PlaceholderText", e, a, {
|
|
560
|
-
variant: t
|
|
561
|
-
});
|
|
562
|
-
const u = Ae(X(e));
|
|
563
|
-
if (D("Text", n, u))
|
|
564
|
-
return C("Text", e, u, {
|
|
565
|
-
variant: t
|
|
566
|
-
});
|
|
567
|
-
if (D("DisplayValue", n, e.value))
|
|
568
|
-
return C("DisplayValue", e, Ae(e.value), {
|
|
569
|
-
variant: t
|
|
570
|
-
});
|
|
571
|
-
const s = e.getAttribute("alt");
|
|
572
|
-
if (D("AltText", n, s))
|
|
573
|
-
return C("AltText", e, s, {
|
|
574
|
-
variant: t
|
|
575
|
-
});
|
|
576
|
-
const c = e.getAttribute("title");
|
|
577
|
-
if (D("Title", n, c))
|
|
578
|
-
return C("Title", e, c, {
|
|
579
|
-
variant: t
|
|
70
|
+
constructor(e) {
|
|
71
|
+
this.keyMap = /* @__PURE__ */ new Map();
|
|
72
|
+
let { collection: t, expandedKeys: o } = e, { flattenedRows: r, keyMap: s } = ue(t, {
|
|
73
|
+
expandedKeys: o
|
|
580
74
|
});
|
|
581
|
-
|
|
582
|
-
if (D("TestId", n, f))
|
|
583
|
-
return C("TestId", e, f, {
|
|
584
|
-
variant: t
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
function U(e, t) {
|
|
588
|
-
e.stack = t.stack.replace(t.message, e.message);
|
|
589
|
-
}
|
|
590
|
-
function zt(e, t) {
|
|
591
|
-
let {
|
|
592
|
-
container: n = be(),
|
|
593
|
-
timeout: l = y().asyncUtilTimeout,
|
|
594
|
-
showOriginalStackTrace: r = y().showOriginalStackTrace,
|
|
595
|
-
stackTraceError: o,
|
|
596
|
-
interval: i = 50,
|
|
597
|
-
onTimeout: a = (s) => (Object.defineProperty(s, "message", {
|
|
598
|
-
value: y().getElementError(s.message, n).message
|
|
599
|
-
}), s),
|
|
600
|
-
mutationObserverOptions: u = {
|
|
601
|
-
subtree: !0,
|
|
602
|
-
childList: !0,
|
|
603
|
-
attributes: !0,
|
|
604
|
-
characterData: !0
|
|
605
|
-
}
|
|
606
|
-
} = t;
|
|
607
|
-
if (typeof e != "function")
|
|
608
|
-
throw new TypeError("Received `callback` arg must be a function");
|
|
609
|
-
return new Promise(async (s, c) => {
|
|
610
|
-
let f, d, E, g = !1, b = "idle";
|
|
611
|
-
const h = setTimeout(V, l), v = Z();
|
|
612
|
-
if (v) {
|
|
613
|
-
const {
|
|
614
|
-
unstable_advanceTimersWrapper: m
|
|
615
|
-
} = y();
|
|
616
|
-
for (q(); !g; ) {
|
|
617
|
-
if (!Z()) {
|
|
618
|
-
const T = new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
|
|
619
|
-
r || U(T, o), c(T);
|
|
620
|
-
return;
|
|
621
|
-
}
|
|
622
|
-
if (await m(async () => {
|
|
623
|
-
jest.advanceTimersByTime(i);
|
|
624
|
-
}), g)
|
|
625
|
-
break;
|
|
626
|
-
q();
|
|
627
|
-
}
|
|
628
|
-
} else {
|
|
629
|
-
try {
|
|
630
|
-
S(n);
|
|
631
|
-
} catch (T) {
|
|
632
|
-
c(T);
|
|
633
|
-
return;
|
|
634
|
-
}
|
|
635
|
-
d = setInterval(j, i);
|
|
636
|
-
const {
|
|
637
|
-
MutationObserver: m
|
|
638
|
-
} = ke(n);
|
|
639
|
-
E = new m(j), E.observe(n, u), q();
|
|
640
|
-
}
|
|
641
|
-
function x(m, T) {
|
|
642
|
-
g = !0, clearTimeout(h), v || (clearInterval(d), E.disconnect()), m ? c(m) : s(T);
|
|
643
|
-
}
|
|
644
|
-
function j() {
|
|
645
|
-
if (Z()) {
|
|
646
|
-
const m = new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
|
|
647
|
-
return r || U(m, o), c(m);
|
|
648
|
-
} else
|
|
649
|
-
return q();
|
|
650
|
-
}
|
|
651
|
-
function q() {
|
|
652
|
-
if (b !== "pending")
|
|
653
|
-
try {
|
|
654
|
-
const m = At(e);
|
|
655
|
-
typeof (m == null ? void 0 : m.then) == "function" ? (b = "pending", m.then((T) => {
|
|
656
|
-
b = "resolved", x(null, T);
|
|
657
|
-
}, (T) => {
|
|
658
|
-
b = "rejected", f = T;
|
|
659
|
-
})) : x(null, m);
|
|
660
|
-
} catch (m) {
|
|
661
|
-
f = m;
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
function V() {
|
|
665
|
-
let m;
|
|
666
|
-
f ? (m = f, !r && m.name === "TestingLibraryElementError" && U(m, o)) : (m = new Error("Timed out in waitFor."), r || U(m, o)), x(a(m), null);
|
|
667
|
-
}
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
function Vt(e, t) {
|
|
671
|
-
const n = new Error("STACK_TRACE_MESSAGE");
|
|
672
|
-
return y().asyncWrapper(() => zt(e, {
|
|
673
|
-
stackTraceError: n,
|
|
674
|
-
...t
|
|
675
|
-
}));
|
|
676
|
-
}
|
|
677
|
-
function He(e, t) {
|
|
678
|
-
return y().getElementError(e, t);
|
|
679
|
-
}
|
|
680
|
-
function Ut(e, t) {
|
|
681
|
-
return He(e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t);
|
|
682
|
-
}
|
|
683
|
-
function J(e, t, n, l) {
|
|
684
|
-
let {
|
|
685
|
-
exact: r = !0,
|
|
686
|
-
collapseWhitespace: o,
|
|
687
|
-
trim: i,
|
|
688
|
-
normalizer: a
|
|
689
|
-
} = l === void 0 ? {} : l;
|
|
690
|
-
const u = r ? B : R, s = N({
|
|
691
|
-
collapseWhitespace: o,
|
|
692
|
-
trim: i,
|
|
693
|
-
normalizer: a
|
|
694
|
-
});
|
|
695
|
-
return Array.from(t.querySelectorAll("[" + e + "]")).filter((c) => u(c.getAttribute(e), c, n, s));
|
|
696
|
-
}
|
|
697
|
-
function $(e, t) {
|
|
698
|
-
return function(n) {
|
|
699
|
-
for (var l = arguments.length, r = new Array(l > 1 ? l - 1 : 0), o = 1; o < l; o++)
|
|
700
|
-
r[o - 1] = arguments[o];
|
|
701
|
-
const i = e(n, ...r);
|
|
702
|
-
if (i.length > 1) {
|
|
703
|
-
const a = i.map((u) => He(null, u).message).join(`
|
|
704
|
-
|
|
705
|
-
`);
|
|
706
|
-
throw Ut(t(n, ...r) + `
|
|
707
|
-
|
|
708
|
-
Here are the matching elements:
|
|
709
|
-
|
|
710
|
-
` + a, n);
|
|
711
|
-
}
|
|
712
|
-
return i[0] || null;
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
function $e(e, t) {
|
|
716
|
-
return y().getElementError(`A better query is available, try this:
|
|
717
|
-
` + e.toString() + `
|
|
718
|
-
`, t);
|
|
719
|
-
}
|
|
720
|
-
function Ht(e, t) {
|
|
721
|
-
return function(n) {
|
|
722
|
-
for (var l = arguments.length, r = new Array(l > 1 ? l - 1 : 0), o = 1; o < l; o++)
|
|
723
|
-
r[o - 1] = arguments[o];
|
|
724
|
-
const i = e(n, ...r);
|
|
725
|
-
if (!i.length)
|
|
726
|
-
throw y().getElementError(t(n, ...r), n);
|
|
727
|
-
return i;
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
function G(e) {
|
|
731
|
-
return (t, n, l, r) => Vt(() => e(t, n, l), {
|
|
732
|
-
container: t,
|
|
733
|
-
...r
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
const F = (e, t, n) => function(l) {
|
|
737
|
-
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
738
|
-
o[i - 1] = arguments[i];
|
|
739
|
-
const a = e(l, ...o), [{
|
|
740
|
-
suggest: u = y().throwSuggestions
|
|
741
|
-
} = {}] = o.slice(-1);
|
|
742
|
-
if (a && u) {
|
|
743
|
-
const s = te(a, n);
|
|
744
|
-
if (s && !t.endsWith(s.queryName))
|
|
745
|
-
throw $e(s.toString(), l);
|
|
746
|
-
}
|
|
747
|
-
return a;
|
|
748
|
-
}, A = (e, t, n) => function(l) {
|
|
749
|
-
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
750
|
-
o[i - 1] = arguments[i];
|
|
751
|
-
const a = e(l, ...o), [{
|
|
752
|
-
suggest: u = y().throwSuggestions
|
|
753
|
-
} = {}] = o.slice(-1);
|
|
754
|
-
if (a.length && u) {
|
|
755
|
-
const s = [...new Set(a.map((c) => {
|
|
756
|
-
var f;
|
|
757
|
-
return (f = te(c, n)) == null ? void 0 : f.toString();
|
|
758
|
-
}))];
|
|
759
|
-
if (
|
|
760
|
-
// only want to suggest if all the els have the same suggestion.
|
|
761
|
-
s.length === 1 && !t.endsWith(
|
|
762
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
|
|
763
|
-
te(a[0], n).queryName
|
|
764
|
-
)
|
|
765
|
-
)
|
|
766
|
-
throw $e(s[0], l);
|
|
75
|
+
this.flattenedRows = r, this.keyMap = s;
|
|
767
76
|
}
|
|
768
|
-
return a;
|
|
769
|
-
};
|
|
770
|
-
function L(e, t, n) {
|
|
771
|
-
const l = F($(e, t), e.name, "query"), r = Ht(e, n), o = $(r, t), i = F(o, e.name, "get"), a = A(r, e.name.replace("query", "get"), "getAll"), u = G(A(r, e.name, "findAll")), s = G(F(o, e.name, "find"));
|
|
772
|
-
return [l, a, i, u, s];
|
|
773
|
-
}
|
|
774
|
-
function $t(e) {
|
|
775
|
-
return Array.from(e.querySelectorAll("label,input")).map((t) => ({
|
|
776
|
-
node: t,
|
|
777
|
-
textToMatch: ee(t)
|
|
778
|
-
})).filter((t) => {
|
|
779
|
-
let {
|
|
780
|
-
textToMatch: n
|
|
781
|
-
} = t;
|
|
782
|
-
return n !== null;
|
|
783
|
-
});
|
|
784
77
|
}
|
|
785
|
-
const
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
collapseWhitespace: o,
|
|
794
|
-
trim: r,
|
|
795
|
-
normalizer: i
|
|
796
|
-
});
|
|
797
|
-
return $t(e).filter((c) => {
|
|
798
|
-
let {
|
|
799
|
-
node: f,
|
|
800
|
-
textToMatch: d
|
|
801
|
-
} = c;
|
|
802
|
-
return a(d, f, t, u);
|
|
803
|
-
}).map((c) => {
|
|
804
|
-
let {
|
|
805
|
-
node: f
|
|
806
|
-
} = c;
|
|
807
|
-
return f;
|
|
808
|
-
});
|
|
809
|
-
}, W = function(e, t, n) {
|
|
810
|
-
let {
|
|
811
|
-
selector: l = "*",
|
|
812
|
-
exact: r = !0,
|
|
813
|
-
collapseWhitespace: o,
|
|
814
|
-
trim: i,
|
|
815
|
-
normalizer: a
|
|
816
|
-
} = n === void 0 ? {} : n;
|
|
817
|
-
S(e);
|
|
818
|
-
const u = r ? B : R, s = N({
|
|
819
|
-
collapseWhitespace: o,
|
|
820
|
-
trim: i,
|
|
821
|
-
normalizer: a
|
|
822
|
-
}), c = Array.from(e.querySelectorAll("*")).filter((f) => Re(f).length || f.hasAttribute("aria-labelledby")).reduce((f, d) => {
|
|
823
|
-
const E = je(e, d, {
|
|
824
|
-
selector: l
|
|
825
|
-
});
|
|
826
|
-
E.filter((b) => !!b.formControl).forEach((b) => {
|
|
827
|
-
u(b.content, b.formControl, t, s) && b.formControl && f.push(b.formControl);
|
|
828
|
-
});
|
|
829
|
-
const g = E.filter((b) => !!b.content).map((b) => b.content);
|
|
830
|
-
return u(g.join(" "), d, t, s) && f.push(d), g.length > 1 && g.forEach((b, h) => {
|
|
831
|
-
u(b, d, t, s) && f.push(d);
|
|
832
|
-
const v = [...g];
|
|
833
|
-
v.splice(h, 1), v.length > 1 && u(v.join(" "), d, t, s) && f.push(d);
|
|
834
|
-
}), f;
|
|
835
|
-
}, []).concat(J("aria-label", e, t, {
|
|
836
|
-
exact: r,
|
|
837
|
-
normalizer: s
|
|
78
|
+
const de = /* @__PURE__ */ T(null), K = /* @__PURE__ */ T(null);
|
|
79
|
+
function ce(a, e) {
|
|
80
|
+
return [a, e] = j(a, e, de), /* @__PURE__ */ n.createElement(Q, {
|
|
81
|
+
content: /* @__PURE__ */ n.createElement(X, a)
|
|
82
|
+
}, (t) => /* @__PURE__ */ n.createElement(fe, {
|
|
83
|
+
props: a,
|
|
84
|
+
collection: t,
|
|
85
|
+
treeRef: e
|
|
838
86
|
}));
|
|
839
|
-
return Array.from(new Set(c)).filter((f) => f.matches(l));
|
|
840
|
-
}, P = function(e, t) {
|
|
841
|
-
for (var n = arguments.length, l = new Array(n > 2 ? n - 2 : 0), r = 2; r < n; r++)
|
|
842
|
-
l[r - 2] = arguments[r];
|
|
843
|
-
const o = W(e, t, ...l);
|
|
844
|
-
if (!o.length) {
|
|
845
|
-
const i = Gt(e, t, ...l);
|
|
846
|
-
if (i.length) {
|
|
847
|
-
const a = i.map((u) => Qt(e, u)).filter((u) => !!u);
|
|
848
|
-
throw a.length ? y().getElementError(a.map((u) => "Found a label with the text of: " + t + ", however the element associated with this label (<" + u + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + u + " />, you can use aria-label or aria-labelledby instead.").join(`
|
|
849
|
-
|
|
850
|
-
`), e) : y().getElementError("Found a label with the text of: " + t + `, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`, e);
|
|
851
|
-
} else
|
|
852
|
-
throw y().getElementError("Unable to find a label with the text of: " + t, e);
|
|
853
|
-
}
|
|
854
|
-
return o;
|
|
855
|
-
};
|
|
856
|
-
function Qt(e, t) {
|
|
857
|
-
const n = t.getAttribute("for");
|
|
858
|
-
if (!n)
|
|
859
|
-
return null;
|
|
860
|
-
const l = e.querySelector('[id="' + n + '"]');
|
|
861
|
-
return l ? l.tagName.toLowerCase() : null;
|
|
862
87
|
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
88
|
+
function fe({ props: a, collection: e, treeRef: t }) {
|
|
89
|
+
let { selectionMode: o = "none", expandedKeys: r, defaultExpandedKeys: s, onExpandedChange: l, disabledBehavior: i = "selection" } = a, { CollectionRoot: f, isVirtualized: d, layoutDelegate: b } = E(B), [u, p] = ee(r ? V(r) : void 0, s ? V(s) : /* @__PURE__ */ new Set(), l), P = le(() => new ie({
|
|
90
|
+
collection: e,
|
|
91
|
+
expandedKeys: u
|
|
92
|
+
}), [
|
|
93
|
+
e,
|
|
94
|
+
u
|
|
95
|
+
]), c = se({
|
|
96
|
+
...a,
|
|
97
|
+
selectionMode: o,
|
|
98
|
+
expandedKeys: u,
|
|
99
|
+
onExpandedChange: p,
|
|
100
|
+
collection: P,
|
|
101
|
+
children: void 0,
|
|
102
|
+
disabledBehavior: i
|
|
103
|
+
}), { gridProps: m } = q({
|
|
104
|
+
...a,
|
|
105
|
+
isVirtualized: d,
|
|
106
|
+
layoutDelegate: b
|
|
107
|
+
}, c, t), { focusProps: R, isFocused: y, isFocusVisible: v } = k(), x = {
|
|
108
|
+
isEmpty: c.collection.size === 0,
|
|
109
|
+
isFocused: y,
|
|
110
|
+
isFocusVisible: v,
|
|
111
|
+
state: c
|
|
112
|
+
}, h = w({
|
|
113
|
+
className: a.className,
|
|
114
|
+
style: a.style,
|
|
115
|
+
defaultClassName: "react-aria-Tree",
|
|
116
|
+
values: x
|
|
117
|
+
}), C = null, g = null;
|
|
118
|
+
if (c.collection.size === 0 && a.renderEmptyState) {
|
|
119
|
+
let { isEmpty: _, ...$ } = x, H = a.renderEmptyState({
|
|
120
|
+
...$
|
|
121
|
+
}), A = {
|
|
122
|
+
"aria-level": 1,
|
|
123
|
+
"aria-posinset": 1,
|
|
124
|
+
"aria-setsize": 1
|
|
125
|
+
};
|
|
126
|
+
C = /* @__PURE__ */ n.createElement("div", {
|
|
127
|
+
role: "row",
|
|
128
|
+
style: {
|
|
129
|
+
display: "contents"
|
|
130
|
+
},
|
|
131
|
+
...A
|
|
132
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
133
|
+
role: "gridcell",
|
|
134
|
+
style: {
|
|
135
|
+
display: "contents"
|
|
136
|
+
}
|
|
137
|
+
}, H));
|
|
138
|
+
}
|
|
139
|
+
return /* @__PURE__ */ n.createElement(oe, null, /* @__PURE__ */ n.createElement("div", {
|
|
140
|
+
...S(a),
|
|
141
|
+
...h,
|
|
142
|
+
...M(m, R, g),
|
|
143
|
+
ref: t,
|
|
144
|
+
slot: a.slot || void 0,
|
|
145
|
+
onScroll: a.onScroll,
|
|
146
|
+
"data-empty": c.collection.size === 0 || void 0,
|
|
147
|
+
"data-focused": y || void 0,
|
|
148
|
+
"data-focus-visible": v || void 0
|
|
149
|
+
}, /* @__PURE__ */ n.createElement(L, {
|
|
150
|
+
values: [
|
|
151
|
+
[
|
|
152
|
+
K,
|
|
153
|
+
c
|
|
154
|
+
]
|
|
155
|
+
]
|
|
156
|
+
}, /* @__PURE__ */ n.createElement(f, {
|
|
157
|
+
collection: c.collection,
|
|
158
|
+
persistedKeys: O(c.selectionManager.focusedKey),
|
|
159
|
+
scrollRef: t
|
|
160
|
+
})), C));
|
|
161
|
+
}
|
|
162
|
+
const Ke = /* @__PURE__ */ te(ce), _e = /* @__PURE__ */ I("content", function(e) {
|
|
163
|
+
let t = E(z), o = w({
|
|
164
|
+
children: e.children,
|
|
165
|
+
values: t
|
|
909
166
|
});
|
|
910
|
-
return
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
},
|
|
914
|
-
var
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
let {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
167
|
+
return /* @__PURE__ */ n.createElement(B.Provider, {
|
|
168
|
+
value: G
|
|
169
|
+
}, o.children);
|
|
170
|
+
}), z = /* @__PURE__ */ T(null), Fe = /* @__PURE__ */ J("item", (a, e, t) => {
|
|
171
|
+
var o;
|
|
172
|
+
let r = E(K);
|
|
173
|
+
e = Z(e);
|
|
174
|
+
let { rowProps: s, gridCellProps: l, expandButtonProps: i, descriptionProps: f, ...d } = N({
|
|
175
|
+
node: t
|
|
176
|
+
}, r, e), b = s["aria-expanded"] === !0, u = ((o = [
|
|
177
|
+
...r.collection.getChildren(t.key)
|
|
178
|
+
]) === null || o === void 0 ? void 0 : o.length) > 1, p = s["aria-level"] || 1, { hoverProps: P, isHovered: c } = re({
|
|
179
|
+
isDisabled: !d.allowsSelection && !d.hasAction,
|
|
180
|
+
onHoverStart: a.onHoverStart,
|
|
181
|
+
onHoverChange: a.onHoverChange,
|
|
182
|
+
onHoverEnd: a.onHoverEnd
|
|
183
|
+
}), { isFocusVisible: m, focusProps: R } = k(), { isFocusVisible: y, focusProps: v } = k({
|
|
184
|
+
within: !0
|
|
185
|
+
}), { checkboxProps: x } = ne({
|
|
186
|
+
key: t.key
|
|
187
|
+
}, r), h = n.useMemo(() => ({
|
|
188
|
+
...d,
|
|
189
|
+
isHovered: c,
|
|
190
|
+
isFocusVisible: m,
|
|
191
|
+
isExpanded: b,
|
|
192
|
+
hasChildRows: u,
|
|
193
|
+
level: p,
|
|
194
|
+
selectionMode: r.selectionManager.selectionMode,
|
|
195
|
+
selectionBehavior: r.selectionManager.selectionBehavior,
|
|
196
|
+
isFocusVisibleWithin: y
|
|
197
|
+
}), [
|
|
198
|
+
d,
|
|
199
|
+
c,
|
|
200
|
+
m,
|
|
201
|
+
r.selectionManager,
|
|
202
|
+
b,
|
|
203
|
+
u,
|
|
204
|
+
p,
|
|
205
|
+
y
|
|
206
|
+
]), C = w({
|
|
207
|
+
...a,
|
|
208
|
+
id: void 0,
|
|
209
|
+
children: t.rendered,
|
|
210
|
+
defaultClassName: "react-aria-TreeItem",
|
|
211
|
+
defaultStyle: {
|
|
212
|
+
// @ts-ignore
|
|
213
|
+
"--tree-item-level": p
|
|
214
|
+
},
|
|
215
|
+
values: h
|
|
928
216
|
});
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
} = n === void 0 ? {} : n;
|
|
950
|
-
if (S(e), a !== void 0) {
|
|
951
|
-
var x;
|
|
952
|
-
if (((x = I.get(t)) == null ? void 0 : x.props["aria-selected"]) === void 0)
|
|
953
|
-
throw new Error('"aria-selected" is not supported on role "' + t + '".');
|
|
954
|
-
}
|
|
955
|
-
if (u !== void 0) {
|
|
956
|
-
var j;
|
|
957
|
-
if (((j = I.get(t)) == null ? void 0 : j.props["aria-busy"]) === void 0)
|
|
958
|
-
throw new Error('"aria-busy" is not supported on role "' + t + '".');
|
|
959
|
-
}
|
|
960
|
-
if (s !== void 0) {
|
|
961
|
-
var q;
|
|
962
|
-
if (((q = I.get(t)) == null ? void 0 : q.props["aria-checked"]) === void 0)
|
|
963
|
-
throw new Error('"aria-checked" is not supported on role "' + t + '".');
|
|
964
|
-
}
|
|
965
|
-
if (c !== void 0) {
|
|
966
|
-
var V;
|
|
967
|
-
if (((V = I.get(t)) == null ? void 0 : V.props["aria-pressed"]) === void 0)
|
|
968
|
-
throw new Error('"aria-pressed" is not supported on role "' + t + '".');
|
|
969
|
-
}
|
|
970
|
-
if (f !== void 0) {
|
|
971
|
-
var m;
|
|
972
|
-
if (((m = I.get(t)) == null ? void 0 : m.props["aria-current"]) === void 0)
|
|
973
|
-
throw new Error('"aria-current" is not supported on role "' + t + '".');
|
|
974
|
-
}
|
|
975
|
-
if (d !== void 0 && t !== "heading")
|
|
976
|
-
throw new Error('Role "' + t + '" cannot have "level" property.');
|
|
977
|
-
if (g !== void 0) {
|
|
978
|
-
var T;
|
|
979
|
-
if (((T = I.get(t)) == null ? void 0 : T.props["aria-valuenow"]) === void 0)
|
|
980
|
-
throw new Error('"aria-valuenow" is not supported on role "' + t + '".');
|
|
981
|
-
}
|
|
982
|
-
if (h !== void 0) {
|
|
983
|
-
var ge;
|
|
984
|
-
if (((ge = I.get(t)) == null ? void 0 : ge.props["aria-valuemax"]) === void 0)
|
|
985
|
-
throw new Error('"aria-valuemax" is not supported on role "' + t + '".');
|
|
986
|
-
}
|
|
987
|
-
if (b !== void 0) {
|
|
988
|
-
var Ee;
|
|
989
|
-
if (((Ee = I.get(t)) == null ? void 0 : Ee.props["aria-valuemin"]) === void 0)
|
|
990
|
-
throw new Error('"aria-valuemin" is not supported on role "' + t + '".');
|
|
991
|
-
}
|
|
992
|
-
if (v !== void 0) {
|
|
993
|
-
var ve;
|
|
994
|
-
if (((ve = I.get(t)) == null ? void 0 : ve.props["aria-valuetext"]) === void 0)
|
|
995
|
-
throw new Error('"aria-valuetext" is not supported on role "' + t + '".');
|
|
996
|
-
}
|
|
997
|
-
if (E !== void 0) {
|
|
998
|
-
var he;
|
|
999
|
-
if (((he = I.get(t)) == null ? void 0 : he.props["aria-expanded"]) === void 0)
|
|
1000
|
-
throw new Error('"aria-expanded" is not supported on role "' + t + '".');
|
|
1001
|
-
}
|
|
1002
|
-
const K = /* @__PURE__ */ new WeakMap();
|
|
1003
|
-
function Je(p) {
|
|
1004
|
-
return K.has(p) || K.set(p, Ue(p)), K.get(p);
|
|
1005
|
-
}
|
|
1006
|
-
return Array.from(e.querySelectorAll(
|
|
1007
|
-
// Only query elements that can be matched by the following filters
|
|
1008
|
-
Un(t)
|
|
1009
|
-
)).filter((p) => {
|
|
1010
|
-
if (p.hasAttribute("role")) {
|
|
1011
|
-
const k = p.getAttribute("role");
|
|
1012
|
-
if (i)
|
|
1013
|
-
return k.split(" ").filter(Boolean).some((Ye) => Ye === t);
|
|
1014
|
-
const [Ke] = k.split(" ");
|
|
1015
|
-
return Ke === t;
|
|
1016
|
-
}
|
|
1017
|
-
return ye(p).some((k) => k === t);
|
|
1018
|
-
}).filter((p) => {
|
|
1019
|
-
if (a !== void 0)
|
|
1020
|
-
return a === Dt(p);
|
|
1021
|
-
if (u !== void 0)
|
|
1022
|
-
return u === qt(p);
|
|
1023
|
-
if (s !== void 0)
|
|
1024
|
-
return s === Ot(p);
|
|
1025
|
-
if (c !== void 0)
|
|
1026
|
-
return c === Mt(p);
|
|
1027
|
-
if (f !== void 0)
|
|
1028
|
-
return f === Pt(p);
|
|
1029
|
-
if (E !== void 0)
|
|
1030
|
-
return E === Nt(p);
|
|
1031
|
-
if (d !== void 0)
|
|
1032
|
-
return d === Lt(p);
|
|
1033
|
-
if (g !== void 0 || h !== void 0 || b !== void 0 || v !== void 0) {
|
|
1034
|
-
let w = !0;
|
|
1035
|
-
if (g !== void 0 && w && (w = g === kt(p)), h !== void 0 && w && (w = h === Ft(p)), b !== void 0 && w && (w = b === Rt(p)), v !== void 0) {
|
|
1036
|
-
var O;
|
|
1037
|
-
w && (w = B((O = jt(p)) != null ? O : null, p, v, (k) => k));
|
|
217
|
+
F(() => {
|
|
218
|
+
t.textValue || console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.");
|
|
219
|
+
}, [
|
|
220
|
+
t.textValue
|
|
221
|
+
]);
|
|
222
|
+
let g = ae(null);
|
|
223
|
+
F(() => {
|
|
224
|
+
u && !g.current && console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.");
|
|
225
|
+
}, []);
|
|
226
|
+
let _ = Y({
|
|
227
|
+
items: r.collection.getChildren(t.key),
|
|
228
|
+
children: ($) => {
|
|
229
|
+
switch ($.type) {
|
|
230
|
+
case "content":
|
|
231
|
+
return $.render($);
|
|
232
|
+
case "loader":
|
|
233
|
+
case "item":
|
|
234
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null);
|
|
235
|
+
default:
|
|
236
|
+
throw new Error("Unsupported element type in TreeRow: " + $.type);
|
|
1038
237
|
}
|
|
1039
|
-
return w;
|
|
1040
238
|
}
|
|
1041
|
-
return !0;
|
|
1042
|
-
}).filter((p) => r === void 0 ? !0 : B(ce(p, {
|
|
1043
|
-
computedStyleSupportsPseudoElements: y().computedStyleSupportsPseudoElements
|
|
1044
|
-
}), p, r, (O) => O)).filter((p) => o === void 0 ? !0 : B(Se(p, {
|
|
1045
|
-
computedStyleSupportsPseudoElements: y().computedStyleSupportsPseudoElements
|
|
1046
|
-
}), p, o, (O) => O)).filter((p) => l === !1 ? pe(p, {
|
|
1047
|
-
isSubtreeInaccessible: Je
|
|
1048
|
-
}) === !1 : !0);
|
|
1049
|
-
};
|
|
1050
|
-
function Un(e) {
|
|
1051
|
-
var t;
|
|
1052
|
-
const n = '*[role~="' + e + '"]', l = (t = tt.get(e)) != null ? t : /* @__PURE__ */ new Set(), r = new Set(Array.from(l).map((o) => {
|
|
1053
|
-
let {
|
|
1054
|
-
name: i
|
|
1055
|
-
} = o;
|
|
1056
|
-
return i;
|
|
1057
|
-
}));
|
|
1058
|
-
return [n].concat(Array.from(r)).join(",");
|
|
1059
|
-
}
|
|
1060
|
-
const Xe = (e) => {
|
|
1061
|
-
let t = "";
|
|
1062
|
-
return e === void 0 ? t = "" : typeof e == "string" ? t = ' and name "' + e + '"' : t = " and name `" + e + "`", t;
|
|
1063
|
-
}, Hn = function(e, t, n) {
|
|
1064
|
-
let {
|
|
1065
|
-
name: l
|
|
1066
|
-
} = n === void 0 ? {} : n;
|
|
1067
|
-
return 'Found multiple elements with the role "' + t + '"' + Xe(l);
|
|
1068
|
-
}, $n = function(e, t, n) {
|
|
1069
|
-
let {
|
|
1070
|
-
hidden: l = y().defaultHidden,
|
|
1071
|
-
name: r,
|
|
1072
|
-
description: o
|
|
1073
|
-
} = n === void 0 ? {} : n;
|
|
1074
|
-
if (y()._disableExpensiveErrorDiagnostics)
|
|
1075
|
-
return 'Unable to find role="' + t + '"' + Xe(r);
|
|
1076
|
-
let i = "";
|
|
1077
|
-
Array.from(e.children).forEach((c) => {
|
|
1078
|
-
i += Ct(c, {
|
|
1079
|
-
hidden: l,
|
|
1080
|
-
includeDescription: o !== void 0
|
|
1081
|
-
});
|
|
1082
239
|
});
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
},
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
findByAltText: Pn,
|
|
1136
|
-
queryByTitle: Rn,
|
|
1137
|
-
queryAllByTitle: Fn,
|
|
1138
|
-
getByTitle: Wn,
|
|
1139
|
-
getAllByTitle: jn,
|
|
1140
|
-
findAllByTitle: zn,
|
|
1141
|
-
findByTitle: Vn,
|
|
1142
|
-
queryByRole: Qn,
|
|
1143
|
-
queryAllByRole: Gn,
|
|
1144
|
-
getAllByRole: Xn,
|
|
1145
|
-
getByRole: Jn,
|
|
1146
|
-
findAllByRole: Kn,
|
|
1147
|
-
findByRole: Yn,
|
|
1148
|
-
queryByTestId: tr,
|
|
1149
|
-
queryAllByTestId: er,
|
|
1150
|
-
getByTestId: rr,
|
|
1151
|
-
getAllByTestId: nr,
|
|
1152
|
-
findAllByTestId: lr,
|
|
1153
|
-
findByTestId: or
|
|
240
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", {
|
|
241
|
+
...M(S(a), s, R, P, v),
|
|
242
|
+
...C,
|
|
243
|
+
ref: e,
|
|
244
|
+
// TODO: missing selectionBehavior, hasAction and allowsSelection data attribute equivalents (available in renderProps). Do we want those?
|
|
245
|
+
"data-expanded": u && b || void 0,
|
|
246
|
+
"data-has-child-rows": u || void 0,
|
|
247
|
+
"data-level": p,
|
|
248
|
+
"data-selected": d.isSelected || void 0,
|
|
249
|
+
"data-disabled": d.isDisabled || void 0,
|
|
250
|
+
"data-hovered": c || void 0,
|
|
251
|
+
"data-focused": d.isFocused || void 0,
|
|
252
|
+
"data-focus-visible": m || void 0,
|
|
253
|
+
"data-pressed": d.isPressed || void 0,
|
|
254
|
+
"data-selection-mode": r.selectionManager.selectionMode === "none" ? void 0 : r.selectionManager.selectionMode
|
|
255
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
256
|
+
...l,
|
|
257
|
+
style: {
|
|
258
|
+
display: "contents"
|
|
259
|
+
}
|
|
260
|
+
}, /* @__PURE__ */ n.createElement(L, {
|
|
261
|
+
values: [
|
|
262
|
+
[
|
|
263
|
+
U,
|
|
264
|
+
{
|
|
265
|
+
slots: {
|
|
266
|
+
selection: x
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
// TODO: support description in the tree row
|
|
271
|
+
// TODO: don't think I need to pass isExpanded to the button here since it can be sourced from the renderProps? Might be worthwhile passing it down?
|
|
272
|
+
[
|
|
273
|
+
D,
|
|
274
|
+
{
|
|
275
|
+
slots: {
|
|
276
|
+
[W]: {},
|
|
277
|
+
chevron: {
|
|
278
|
+
...i,
|
|
279
|
+
ref: g
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
[
|
|
285
|
+
z,
|
|
286
|
+
{
|
|
287
|
+
...h
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
]
|
|
291
|
+
}, _))));
|
|
1154
292
|
});
|
|
1155
|
-
function
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
}
|
|
1170
|
-
},
|
|
1171
|
-
cut: {
|
|
1172
|
-
EventType: "ClipboardEvent",
|
|
1173
|
-
defaultInit: {
|
|
1174
|
-
bubbles: !0,
|
|
1175
|
-
cancelable: !0,
|
|
1176
|
-
composed: !0
|
|
1177
|
-
}
|
|
1178
|
-
},
|
|
1179
|
-
paste: {
|
|
1180
|
-
EventType: "ClipboardEvent",
|
|
1181
|
-
defaultInit: {
|
|
1182
|
-
bubbles: !0,
|
|
1183
|
-
cancelable: !0,
|
|
1184
|
-
composed: !0
|
|
1185
|
-
}
|
|
1186
|
-
},
|
|
1187
|
-
// Composition Events
|
|
1188
|
-
compositionEnd: {
|
|
1189
|
-
EventType: "CompositionEvent",
|
|
1190
|
-
defaultInit: {
|
|
1191
|
-
bubbles: !0,
|
|
1192
|
-
cancelable: !0,
|
|
1193
|
-
composed: !0
|
|
1194
|
-
}
|
|
1195
|
-
},
|
|
1196
|
-
compositionStart: {
|
|
1197
|
-
EventType: "CompositionEvent",
|
|
1198
|
-
defaultInit: {
|
|
1199
|
-
bubbles: !0,
|
|
1200
|
-
cancelable: !0,
|
|
1201
|
-
composed: !0
|
|
1202
|
-
}
|
|
1203
|
-
},
|
|
1204
|
-
compositionUpdate: {
|
|
1205
|
-
EventType: "CompositionEvent",
|
|
1206
|
-
defaultInit: {
|
|
1207
|
-
bubbles: !0,
|
|
1208
|
-
cancelable: !0,
|
|
1209
|
-
composed: !0
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
// Keyboard Events
|
|
1213
|
-
keyDown: {
|
|
1214
|
-
EventType: "KeyboardEvent",
|
|
1215
|
-
defaultInit: {
|
|
1216
|
-
bubbles: !0,
|
|
1217
|
-
cancelable: !0,
|
|
1218
|
-
charCode: 0,
|
|
1219
|
-
composed: !0
|
|
1220
|
-
}
|
|
1221
|
-
},
|
|
1222
|
-
keyPress: {
|
|
1223
|
-
EventType: "KeyboardEvent",
|
|
1224
|
-
defaultInit: {
|
|
1225
|
-
bubbles: !0,
|
|
1226
|
-
cancelable: !0,
|
|
1227
|
-
charCode: 0,
|
|
1228
|
-
composed: !0
|
|
1229
|
-
}
|
|
1230
|
-
},
|
|
1231
|
-
keyUp: {
|
|
1232
|
-
EventType: "KeyboardEvent",
|
|
1233
|
-
defaultInit: {
|
|
1234
|
-
bubbles: !0,
|
|
1235
|
-
cancelable: !0,
|
|
1236
|
-
charCode: 0,
|
|
1237
|
-
composed: !0
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
// Focus Events
|
|
1241
|
-
focus: {
|
|
1242
|
-
EventType: "FocusEvent",
|
|
1243
|
-
defaultInit: {
|
|
1244
|
-
bubbles: !1,
|
|
1245
|
-
cancelable: !1,
|
|
1246
|
-
composed: !0
|
|
1247
|
-
}
|
|
1248
|
-
},
|
|
1249
|
-
blur: {
|
|
1250
|
-
EventType: "FocusEvent",
|
|
1251
|
-
defaultInit: {
|
|
1252
|
-
bubbles: !1,
|
|
1253
|
-
cancelable: !1,
|
|
1254
|
-
composed: !0
|
|
1255
|
-
}
|
|
1256
|
-
},
|
|
1257
|
-
focusIn: {
|
|
1258
|
-
EventType: "FocusEvent",
|
|
1259
|
-
defaultInit: {
|
|
1260
|
-
bubbles: !0,
|
|
1261
|
-
cancelable: !1,
|
|
1262
|
-
composed: !0
|
|
1263
|
-
}
|
|
1264
|
-
},
|
|
1265
|
-
focusOut: {
|
|
1266
|
-
EventType: "FocusEvent",
|
|
1267
|
-
defaultInit: {
|
|
1268
|
-
bubbles: !0,
|
|
1269
|
-
cancelable: !1,
|
|
1270
|
-
composed: !0
|
|
1271
|
-
}
|
|
1272
|
-
},
|
|
1273
|
-
// Form Events
|
|
1274
|
-
change: {
|
|
1275
|
-
EventType: "Event",
|
|
1276
|
-
defaultInit: {
|
|
1277
|
-
bubbles: !0,
|
|
1278
|
-
cancelable: !1
|
|
1279
|
-
}
|
|
1280
|
-
},
|
|
1281
|
-
input: {
|
|
1282
|
-
EventType: "InputEvent",
|
|
1283
|
-
defaultInit: {
|
|
1284
|
-
bubbles: !0,
|
|
1285
|
-
cancelable: !1,
|
|
1286
|
-
composed: !0
|
|
1287
|
-
}
|
|
1288
|
-
},
|
|
1289
|
-
invalid: {
|
|
1290
|
-
EventType: "Event",
|
|
1291
|
-
defaultInit: {
|
|
1292
|
-
bubbles: !1,
|
|
1293
|
-
cancelable: !0
|
|
1294
|
-
}
|
|
1295
|
-
},
|
|
1296
|
-
submit: {
|
|
1297
|
-
EventType: "Event",
|
|
1298
|
-
defaultInit: {
|
|
1299
|
-
bubbles: !0,
|
|
1300
|
-
cancelable: !0
|
|
1301
|
-
}
|
|
1302
|
-
},
|
|
1303
|
-
reset: {
|
|
1304
|
-
EventType: "Event",
|
|
1305
|
-
defaultInit: {
|
|
1306
|
-
bubbles: !0,
|
|
1307
|
-
cancelable: !0
|
|
1308
|
-
}
|
|
1309
|
-
},
|
|
1310
|
-
// Mouse Events
|
|
1311
|
-
click: {
|
|
1312
|
-
EventType: "MouseEvent",
|
|
1313
|
-
defaultInit: {
|
|
1314
|
-
bubbles: !0,
|
|
1315
|
-
cancelable: !0,
|
|
1316
|
-
button: 0,
|
|
1317
|
-
composed: !0
|
|
1318
|
-
}
|
|
1319
|
-
},
|
|
1320
|
-
contextMenu: {
|
|
1321
|
-
EventType: "MouseEvent",
|
|
1322
|
-
defaultInit: {
|
|
1323
|
-
bubbles: !0,
|
|
1324
|
-
cancelable: !0,
|
|
1325
|
-
composed: !0
|
|
1326
|
-
}
|
|
1327
|
-
},
|
|
1328
|
-
dblClick: {
|
|
1329
|
-
EventType: "MouseEvent",
|
|
1330
|
-
defaultInit: {
|
|
1331
|
-
bubbles: !0,
|
|
1332
|
-
cancelable: !0,
|
|
1333
|
-
composed: !0
|
|
1334
|
-
}
|
|
1335
|
-
},
|
|
1336
|
-
drag: {
|
|
1337
|
-
EventType: "DragEvent",
|
|
1338
|
-
defaultInit: {
|
|
1339
|
-
bubbles: !0,
|
|
1340
|
-
cancelable: !0,
|
|
1341
|
-
composed: !0
|
|
1342
|
-
}
|
|
1343
|
-
},
|
|
1344
|
-
dragEnd: {
|
|
1345
|
-
EventType: "DragEvent",
|
|
1346
|
-
defaultInit: {
|
|
1347
|
-
bubbles: !0,
|
|
1348
|
-
cancelable: !1,
|
|
1349
|
-
composed: !0
|
|
1350
|
-
}
|
|
1351
|
-
},
|
|
1352
|
-
dragEnter: {
|
|
1353
|
-
EventType: "DragEvent",
|
|
1354
|
-
defaultInit: {
|
|
1355
|
-
bubbles: !0,
|
|
1356
|
-
cancelable: !0,
|
|
1357
|
-
composed: !0
|
|
1358
|
-
}
|
|
1359
|
-
},
|
|
1360
|
-
dragExit: {
|
|
1361
|
-
EventType: "DragEvent",
|
|
1362
|
-
defaultInit: {
|
|
1363
|
-
bubbles: !0,
|
|
1364
|
-
cancelable: !1,
|
|
1365
|
-
composed: !0
|
|
1366
|
-
}
|
|
1367
|
-
},
|
|
1368
|
-
dragLeave: {
|
|
1369
|
-
EventType: "DragEvent",
|
|
1370
|
-
defaultInit: {
|
|
1371
|
-
bubbles: !0,
|
|
1372
|
-
cancelable: !1,
|
|
1373
|
-
composed: !0
|
|
1374
|
-
}
|
|
1375
|
-
},
|
|
1376
|
-
dragOver: {
|
|
1377
|
-
EventType: "DragEvent",
|
|
1378
|
-
defaultInit: {
|
|
1379
|
-
bubbles: !0,
|
|
1380
|
-
cancelable: !0,
|
|
1381
|
-
composed: !0
|
|
1382
|
-
}
|
|
1383
|
-
},
|
|
1384
|
-
dragStart: {
|
|
1385
|
-
EventType: "DragEvent",
|
|
1386
|
-
defaultInit: {
|
|
1387
|
-
bubbles: !0,
|
|
1388
|
-
cancelable: !0,
|
|
1389
|
-
composed: !0
|
|
1390
|
-
}
|
|
1391
|
-
},
|
|
1392
|
-
drop: {
|
|
1393
|
-
EventType: "DragEvent",
|
|
1394
|
-
defaultInit: {
|
|
1395
|
-
bubbles: !0,
|
|
1396
|
-
cancelable: !0,
|
|
1397
|
-
composed: !0
|
|
1398
|
-
}
|
|
1399
|
-
},
|
|
1400
|
-
mouseDown: {
|
|
1401
|
-
EventType: "MouseEvent",
|
|
1402
|
-
defaultInit: {
|
|
1403
|
-
bubbles: !0,
|
|
1404
|
-
cancelable: !0,
|
|
1405
|
-
composed: !0
|
|
1406
|
-
}
|
|
1407
|
-
},
|
|
1408
|
-
mouseEnter: {
|
|
1409
|
-
EventType: "MouseEvent",
|
|
1410
|
-
defaultInit: {
|
|
1411
|
-
bubbles: !1,
|
|
1412
|
-
cancelable: !1,
|
|
1413
|
-
composed: !0
|
|
1414
|
-
}
|
|
1415
|
-
},
|
|
1416
|
-
mouseLeave: {
|
|
1417
|
-
EventType: "MouseEvent",
|
|
1418
|
-
defaultInit: {
|
|
1419
|
-
bubbles: !1,
|
|
1420
|
-
cancelable: !1,
|
|
1421
|
-
composed: !0
|
|
1422
|
-
}
|
|
1423
|
-
},
|
|
1424
|
-
mouseMove: {
|
|
1425
|
-
EventType: "MouseEvent",
|
|
1426
|
-
defaultInit: {
|
|
1427
|
-
bubbles: !0,
|
|
1428
|
-
cancelable: !0,
|
|
1429
|
-
composed: !0
|
|
1430
|
-
}
|
|
1431
|
-
},
|
|
1432
|
-
mouseOut: {
|
|
1433
|
-
EventType: "MouseEvent",
|
|
1434
|
-
defaultInit: {
|
|
1435
|
-
bubbles: !0,
|
|
1436
|
-
cancelable: !0,
|
|
1437
|
-
composed: !0
|
|
1438
|
-
}
|
|
1439
|
-
},
|
|
1440
|
-
mouseOver: {
|
|
1441
|
-
EventType: "MouseEvent",
|
|
1442
|
-
defaultInit: {
|
|
1443
|
-
bubbles: !0,
|
|
1444
|
-
cancelable: !0,
|
|
1445
|
-
composed: !0
|
|
1446
|
-
}
|
|
1447
|
-
},
|
|
1448
|
-
mouseUp: {
|
|
1449
|
-
EventType: "MouseEvent",
|
|
1450
|
-
defaultInit: {
|
|
1451
|
-
bubbles: !0,
|
|
1452
|
-
cancelable: !0,
|
|
1453
|
-
composed: !0
|
|
1454
|
-
}
|
|
1455
|
-
},
|
|
1456
|
-
// Selection Events
|
|
1457
|
-
select: {
|
|
1458
|
-
EventType: "Event",
|
|
1459
|
-
defaultInit: {
|
|
1460
|
-
bubbles: !0,
|
|
1461
|
-
cancelable: !1
|
|
1462
|
-
}
|
|
1463
|
-
},
|
|
1464
|
-
// Touch Events
|
|
1465
|
-
touchCancel: {
|
|
1466
|
-
EventType: "TouchEvent",
|
|
1467
|
-
defaultInit: {
|
|
1468
|
-
bubbles: !0,
|
|
1469
|
-
cancelable: !1,
|
|
1470
|
-
composed: !0
|
|
1471
|
-
}
|
|
1472
|
-
},
|
|
1473
|
-
touchEnd: {
|
|
1474
|
-
EventType: "TouchEvent",
|
|
1475
|
-
defaultInit: {
|
|
1476
|
-
bubbles: !0,
|
|
1477
|
-
cancelable: !0,
|
|
1478
|
-
composed: !0
|
|
1479
|
-
}
|
|
1480
|
-
},
|
|
1481
|
-
touchMove: {
|
|
1482
|
-
EventType: "TouchEvent",
|
|
1483
|
-
defaultInit: {
|
|
1484
|
-
bubbles: !0,
|
|
1485
|
-
cancelable: !0,
|
|
1486
|
-
composed: !0
|
|
1487
|
-
}
|
|
1488
|
-
},
|
|
1489
|
-
touchStart: {
|
|
1490
|
-
EventType: "TouchEvent",
|
|
1491
|
-
defaultInit: {
|
|
1492
|
-
bubbles: !0,
|
|
1493
|
-
cancelable: !0,
|
|
1494
|
-
composed: !0
|
|
293
|
+
I("loader", function(e, t, o) {
|
|
294
|
+
let r = E(K), { rowProps: s } = N({
|
|
295
|
+
node: o
|
|
296
|
+
}, r, t), l = s["aria-level"] || 1, i = {
|
|
297
|
+
"aria-level": s["aria-level"],
|
|
298
|
+
"aria-posinset": s["aria-posinset"],
|
|
299
|
+
"aria-setsize": s["aria-setsize"]
|
|
300
|
+
}, f = w({
|
|
301
|
+
...e,
|
|
302
|
+
id: void 0,
|
|
303
|
+
children: o.rendered,
|
|
304
|
+
defaultClassName: "react-aria-TreeLoader",
|
|
305
|
+
values: {
|
|
306
|
+
level: l
|
|
1495
307
|
}
|
|
1496
|
-
},
|
|
1497
|
-
// UI Events
|
|
1498
|
-
resize: {
|
|
1499
|
-
EventType: "UIEvent",
|
|
1500
|
-
defaultInit: {
|
|
1501
|
-
bubbles: !1,
|
|
1502
|
-
cancelable: !1
|
|
1503
|
-
}
|
|
1504
|
-
},
|
|
1505
|
-
scroll: {
|
|
1506
|
-
EventType: "UIEvent",
|
|
1507
|
-
defaultInit: {
|
|
1508
|
-
bubbles: !1,
|
|
1509
|
-
cancelable: !1
|
|
1510
|
-
}
|
|
1511
|
-
},
|
|
1512
|
-
// Wheel Events
|
|
1513
|
-
wheel: {
|
|
1514
|
-
EventType: "WheelEvent",
|
|
1515
|
-
defaultInit: {
|
|
1516
|
-
bubbles: !0,
|
|
1517
|
-
cancelable: !0,
|
|
1518
|
-
composed: !0
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
|
-
// Media Events
|
|
1522
|
-
abort: {
|
|
1523
|
-
EventType: "Event",
|
|
1524
|
-
defaultInit: {
|
|
1525
|
-
bubbles: !1,
|
|
1526
|
-
cancelable: !1
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
canPlay: {
|
|
1530
|
-
EventType: "Event",
|
|
1531
|
-
defaultInit: {
|
|
1532
|
-
bubbles: !1,
|
|
1533
|
-
cancelable: !1
|
|
1534
|
-
}
|
|
1535
|
-
},
|
|
1536
|
-
canPlayThrough: {
|
|
1537
|
-
EventType: "Event",
|
|
1538
|
-
defaultInit: {
|
|
1539
|
-
bubbles: !1,
|
|
1540
|
-
cancelable: !1
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
durationChange: {
|
|
1544
|
-
EventType: "Event",
|
|
1545
|
-
defaultInit: {
|
|
1546
|
-
bubbles: !1,
|
|
1547
|
-
cancelable: !1
|
|
1548
|
-
}
|
|
1549
|
-
},
|
|
1550
|
-
emptied: {
|
|
1551
|
-
EventType: "Event",
|
|
1552
|
-
defaultInit: {
|
|
1553
|
-
bubbles: !1,
|
|
1554
|
-
cancelable: !1
|
|
1555
|
-
}
|
|
1556
|
-
},
|
|
1557
|
-
encrypted: {
|
|
1558
|
-
EventType: "Event",
|
|
1559
|
-
defaultInit: {
|
|
1560
|
-
bubbles: !1,
|
|
1561
|
-
cancelable: !1
|
|
1562
|
-
}
|
|
1563
|
-
},
|
|
1564
|
-
ended: {
|
|
1565
|
-
EventType: "Event",
|
|
1566
|
-
defaultInit: {
|
|
1567
|
-
bubbles: !1,
|
|
1568
|
-
cancelable: !1
|
|
1569
|
-
}
|
|
1570
|
-
},
|
|
1571
|
-
loadedData: {
|
|
1572
|
-
EventType: "Event",
|
|
1573
|
-
defaultInit: {
|
|
1574
|
-
bubbles: !1,
|
|
1575
|
-
cancelable: !1
|
|
1576
|
-
}
|
|
1577
|
-
},
|
|
1578
|
-
loadedMetadata: {
|
|
1579
|
-
EventType: "Event",
|
|
1580
|
-
defaultInit: {
|
|
1581
|
-
bubbles: !1,
|
|
1582
|
-
cancelable: !1
|
|
1583
|
-
}
|
|
1584
|
-
},
|
|
1585
|
-
loadStart: {
|
|
1586
|
-
EventType: "ProgressEvent",
|
|
1587
|
-
defaultInit: {
|
|
1588
|
-
bubbles: !1,
|
|
1589
|
-
cancelable: !1
|
|
1590
|
-
}
|
|
1591
|
-
},
|
|
1592
|
-
pause: {
|
|
1593
|
-
EventType: "Event",
|
|
1594
|
-
defaultInit: {
|
|
1595
|
-
bubbles: !1,
|
|
1596
|
-
cancelable: !1
|
|
1597
|
-
}
|
|
1598
|
-
},
|
|
1599
|
-
play: {
|
|
1600
|
-
EventType: "Event",
|
|
1601
|
-
defaultInit: {
|
|
1602
|
-
bubbles: !1,
|
|
1603
|
-
cancelable: !1
|
|
1604
|
-
}
|
|
1605
|
-
},
|
|
1606
|
-
playing: {
|
|
1607
|
-
EventType: "Event",
|
|
1608
|
-
defaultInit: {
|
|
1609
|
-
bubbles: !1,
|
|
1610
|
-
cancelable: !1
|
|
1611
|
-
}
|
|
1612
|
-
},
|
|
1613
|
-
progress: {
|
|
1614
|
-
EventType: "ProgressEvent",
|
|
1615
|
-
defaultInit: {
|
|
1616
|
-
bubbles: !1,
|
|
1617
|
-
cancelable: !1
|
|
1618
|
-
}
|
|
1619
|
-
},
|
|
1620
|
-
rateChange: {
|
|
1621
|
-
EventType: "Event",
|
|
1622
|
-
defaultInit: {
|
|
1623
|
-
bubbles: !1,
|
|
1624
|
-
cancelable: !1
|
|
1625
|
-
}
|
|
1626
|
-
},
|
|
1627
|
-
seeked: {
|
|
1628
|
-
EventType: "Event",
|
|
1629
|
-
defaultInit: {
|
|
1630
|
-
bubbles: !1,
|
|
1631
|
-
cancelable: !1
|
|
1632
|
-
}
|
|
1633
|
-
},
|
|
1634
|
-
seeking: {
|
|
1635
|
-
EventType: "Event",
|
|
1636
|
-
defaultInit: {
|
|
1637
|
-
bubbles: !1,
|
|
1638
|
-
cancelable: !1
|
|
1639
|
-
}
|
|
1640
|
-
},
|
|
1641
|
-
stalled: {
|
|
1642
|
-
EventType: "Event",
|
|
1643
|
-
defaultInit: {
|
|
1644
|
-
bubbles: !1,
|
|
1645
|
-
cancelable: !1
|
|
1646
|
-
}
|
|
1647
|
-
},
|
|
1648
|
-
suspend: {
|
|
1649
|
-
EventType: "Event",
|
|
1650
|
-
defaultInit: {
|
|
1651
|
-
bubbles: !1,
|
|
1652
|
-
cancelable: !1
|
|
1653
|
-
}
|
|
1654
|
-
},
|
|
1655
|
-
timeUpdate: {
|
|
1656
|
-
EventType: "Event",
|
|
1657
|
-
defaultInit: {
|
|
1658
|
-
bubbles: !1,
|
|
1659
|
-
cancelable: !1
|
|
1660
|
-
}
|
|
1661
|
-
},
|
|
1662
|
-
volumeChange: {
|
|
1663
|
-
EventType: "Event",
|
|
1664
|
-
defaultInit: {
|
|
1665
|
-
bubbles: !1,
|
|
1666
|
-
cancelable: !1
|
|
1667
|
-
}
|
|
1668
|
-
},
|
|
1669
|
-
waiting: {
|
|
1670
|
-
EventType: "Event",
|
|
1671
|
-
defaultInit: {
|
|
1672
|
-
bubbles: !1,
|
|
1673
|
-
cancelable: !1
|
|
1674
|
-
}
|
|
1675
|
-
},
|
|
1676
|
-
// Events
|
|
1677
|
-
load: {
|
|
1678
|
-
// TODO: load events can be UIEvent or Event depending on what generated them
|
|
1679
|
-
// This is where this abstraction breaks down.
|
|
1680
|
-
// But the common targets are <img />, <script /> and window.
|
|
1681
|
-
// Neither of these targets receive a UIEvent
|
|
1682
|
-
EventType: "Event",
|
|
1683
|
-
defaultInit: {
|
|
1684
|
-
bubbles: !1,
|
|
1685
|
-
cancelable: !1
|
|
1686
|
-
}
|
|
1687
|
-
},
|
|
1688
|
-
error: {
|
|
1689
|
-
EventType: "Event",
|
|
1690
|
-
defaultInit: {
|
|
1691
|
-
bubbles: !1,
|
|
1692
|
-
cancelable: !1
|
|
1693
|
-
}
|
|
1694
|
-
},
|
|
1695
|
-
// Animation Events
|
|
1696
|
-
animationStart: {
|
|
1697
|
-
EventType: "AnimationEvent",
|
|
1698
|
-
defaultInit: {
|
|
1699
|
-
bubbles: !0,
|
|
1700
|
-
cancelable: !1
|
|
1701
|
-
}
|
|
1702
|
-
},
|
|
1703
|
-
animationEnd: {
|
|
1704
|
-
EventType: "AnimationEvent",
|
|
1705
|
-
defaultInit: {
|
|
1706
|
-
bubbles: !0,
|
|
1707
|
-
cancelable: !1
|
|
1708
|
-
}
|
|
1709
|
-
},
|
|
1710
|
-
animationIteration: {
|
|
1711
|
-
EventType: "AnimationEvent",
|
|
1712
|
-
defaultInit: {
|
|
1713
|
-
bubbles: !0,
|
|
1714
|
-
cancelable: !1
|
|
1715
|
-
}
|
|
1716
|
-
},
|
|
1717
|
-
// Transition Events
|
|
1718
|
-
transitionCancel: {
|
|
1719
|
-
EventType: "TransitionEvent",
|
|
1720
|
-
defaultInit: {
|
|
1721
|
-
bubbles: !0,
|
|
1722
|
-
cancelable: !1
|
|
1723
|
-
}
|
|
1724
|
-
},
|
|
1725
|
-
transitionEnd: {
|
|
1726
|
-
EventType: "TransitionEvent",
|
|
1727
|
-
defaultInit: {
|
|
1728
|
-
bubbles: !0,
|
|
1729
|
-
cancelable: !0
|
|
1730
|
-
}
|
|
1731
|
-
},
|
|
1732
|
-
transitionRun: {
|
|
1733
|
-
EventType: "TransitionEvent",
|
|
1734
|
-
defaultInit: {
|
|
1735
|
-
bubbles: !0,
|
|
1736
|
-
cancelable: !1
|
|
1737
|
-
}
|
|
1738
|
-
},
|
|
1739
|
-
transitionStart: {
|
|
1740
|
-
EventType: "TransitionEvent",
|
|
1741
|
-
defaultInit: {
|
|
1742
|
-
bubbles: !0,
|
|
1743
|
-
cancelable: !1
|
|
1744
|
-
}
|
|
1745
|
-
},
|
|
1746
|
-
// pointer events
|
|
1747
|
-
pointerOver: {
|
|
1748
|
-
EventType: "PointerEvent",
|
|
1749
|
-
defaultInit: {
|
|
1750
|
-
bubbles: !0,
|
|
1751
|
-
cancelable: !0,
|
|
1752
|
-
composed: !0
|
|
1753
|
-
}
|
|
1754
|
-
},
|
|
1755
|
-
pointerEnter: {
|
|
1756
|
-
EventType: "PointerEvent",
|
|
1757
|
-
defaultInit: {
|
|
1758
|
-
bubbles: !1,
|
|
1759
|
-
cancelable: !1
|
|
1760
|
-
}
|
|
1761
|
-
},
|
|
1762
|
-
pointerDown: {
|
|
1763
|
-
EventType: "PointerEvent",
|
|
1764
|
-
defaultInit: {
|
|
1765
|
-
bubbles: !0,
|
|
1766
|
-
cancelable: !0,
|
|
1767
|
-
composed: !0
|
|
1768
|
-
}
|
|
1769
|
-
},
|
|
1770
|
-
pointerMove: {
|
|
1771
|
-
EventType: "PointerEvent",
|
|
1772
|
-
defaultInit: {
|
|
1773
|
-
bubbles: !0,
|
|
1774
|
-
cancelable: !0,
|
|
1775
|
-
composed: !0
|
|
1776
|
-
}
|
|
1777
|
-
},
|
|
1778
|
-
pointerUp: {
|
|
1779
|
-
EventType: "PointerEvent",
|
|
1780
|
-
defaultInit: {
|
|
1781
|
-
bubbles: !0,
|
|
1782
|
-
cancelable: !0,
|
|
1783
|
-
composed: !0
|
|
1784
|
-
}
|
|
1785
|
-
},
|
|
1786
|
-
pointerCancel: {
|
|
1787
|
-
EventType: "PointerEvent",
|
|
1788
|
-
defaultInit: {
|
|
1789
|
-
bubbles: !0,
|
|
1790
|
-
cancelable: !1,
|
|
1791
|
-
composed: !0
|
|
1792
|
-
}
|
|
1793
|
-
},
|
|
1794
|
-
pointerOut: {
|
|
1795
|
-
EventType: "PointerEvent",
|
|
1796
|
-
defaultInit: {
|
|
1797
|
-
bubbles: !0,
|
|
1798
|
-
cancelable: !0,
|
|
1799
|
-
composed: !0
|
|
1800
|
-
}
|
|
1801
|
-
},
|
|
1802
|
-
pointerLeave: {
|
|
1803
|
-
EventType: "PointerEvent",
|
|
1804
|
-
defaultInit: {
|
|
1805
|
-
bubbles: !1,
|
|
1806
|
-
cancelable: !1
|
|
1807
|
-
}
|
|
1808
|
-
},
|
|
1809
|
-
gotPointerCapture: {
|
|
1810
|
-
EventType: "PointerEvent",
|
|
1811
|
-
defaultInit: {
|
|
1812
|
-
bubbles: !0,
|
|
1813
|
-
cancelable: !1,
|
|
1814
|
-
composed: !0
|
|
1815
|
-
}
|
|
1816
|
-
},
|
|
1817
|
-
lostPointerCapture: {
|
|
1818
|
-
EventType: "PointerEvent",
|
|
1819
|
-
defaultInit: {
|
|
1820
|
-
bubbles: !0,
|
|
1821
|
-
cancelable: !1,
|
|
1822
|
-
composed: !0
|
|
1823
|
-
}
|
|
1824
|
-
},
|
|
1825
|
-
// history events
|
|
1826
|
-
popState: {
|
|
1827
|
-
EventType: "PopStateEvent",
|
|
1828
|
-
defaultInit: {
|
|
1829
|
-
bubbles: !0,
|
|
1830
|
-
cancelable: !1
|
|
1831
|
-
}
|
|
1832
|
-
},
|
|
1833
|
-
// window events
|
|
1834
|
-
offline: {
|
|
1835
|
-
EventType: "Event",
|
|
1836
|
-
defaultInit: {
|
|
1837
|
-
bubbles: !1,
|
|
1838
|
-
cancelable: !1
|
|
1839
|
-
}
|
|
1840
|
-
},
|
|
1841
|
-
online: {
|
|
1842
|
-
EventType: "Event",
|
|
1843
|
-
defaultInit: {
|
|
1844
|
-
bubbles: !1,
|
|
1845
|
-
cancelable: !1
|
|
1846
|
-
}
|
|
1847
|
-
},
|
|
1848
|
-
pageHide: {
|
|
1849
|
-
EventType: "PageTransitionEvent",
|
|
1850
|
-
defaultInit: {
|
|
1851
|
-
bubbles: !0,
|
|
1852
|
-
cancelable: !0
|
|
1853
|
-
}
|
|
1854
|
-
},
|
|
1855
|
-
pageShow: {
|
|
1856
|
-
EventType: "PageTransitionEvent",
|
|
1857
|
-
defaultInit: {
|
|
1858
|
-
bubbles: !0,
|
|
1859
|
-
cancelable: !0
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
}, xe = {
|
|
1863
|
-
doubleClick: "dblClick"
|
|
1864
|
-
};
|
|
1865
|
-
function Q(e, t) {
|
|
1866
|
-
return y().eventWrapper(() => {
|
|
1867
|
-
if (!t)
|
|
1868
|
-
throw new Error("Unable to fire an event - please provide an event object.");
|
|
1869
|
-
if (!e)
|
|
1870
|
-
throw new Error('Unable to fire a "' + t.type + '" event - please provide a DOM element.');
|
|
1871
|
-
return e.dispatchEvent(t);
|
|
1872
308
|
});
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
...n
|
|
1884
|
-
}, {
|
|
1885
|
-
target: {
|
|
1886
|
-
value: a,
|
|
1887
|
-
files: u,
|
|
1888
|
-
...s
|
|
1889
|
-
} = {}
|
|
1890
|
-
} = i;
|
|
1891
|
-
a !== void 0 && ar(t, a), u !== void 0 && Object.defineProperty(t, "files", {
|
|
1892
|
-
configurable: !0,
|
|
1893
|
-
enumerable: !0,
|
|
1894
|
-
writable: !0,
|
|
1895
|
-
value: u
|
|
1896
|
-
}), Object.assign(t, s);
|
|
1897
|
-
const c = ke(t), f = c[r] || c.Event;
|
|
1898
|
-
let d;
|
|
1899
|
-
if (typeof f == "function")
|
|
1900
|
-
d = new f(e, i);
|
|
1901
|
-
else {
|
|
1902
|
-
d = c.document.createEvent(r);
|
|
1903
|
-
const {
|
|
1904
|
-
bubbles: g,
|
|
1905
|
-
cancelable: b,
|
|
1906
|
-
detail: h,
|
|
1907
|
-
...v
|
|
1908
|
-
} = i;
|
|
1909
|
-
d.initEvent(e, g, b, h), Object.keys(v).forEach((x) => {
|
|
1910
|
-
d[x] = v[x];
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
return ["dataTransfer", "clipboardData"].forEach((g) => {
|
|
1914
|
-
const b = i[g];
|
|
1915
|
-
typeof b == "object" && (typeof c.DataTransfer == "function" ? Object.defineProperty(d, g, {
|
|
1916
|
-
value: Object.getOwnPropertyNames(b).reduce((h, v) => (Object.defineProperty(h, v, {
|
|
1917
|
-
value: b[v]
|
|
1918
|
-
}), h), new c.DataTransfer())
|
|
1919
|
-
}) : Object.defineProperty(d, g, {
|
|
1920
|
-
value: b
|
|
1921
|
-
}));
|
|
1922
|
-
}), d;
|
|
1923
|
-
}
|
|
1924
|
-
Object.keys(Ie).forEach((e) => {
|
|
1925
|
-
const {
|
|
1926
|
-
EventType: t,
|
|
1927
|
-
defaultInit: n
|
|
1928
|
-
} = Ie[e], l = e.toLowerCase();
|
|
1929
|
-
_[e] = (r, o) => _(l, r, o, {
|
|
1930
|
-
EventType: t,
|
|
1931
|
-
defaultInit: n
|
|
1932
|
-
}), Q[e] = (r, o) => Q(r, _[e](r, o));
|
|
309
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", {
|
|
310
|
+
role: "row",
|
|
311
|
+
ref: t,
|
|
312
|
+
...M(S(e), i),
|
|
313
|
+
...f,
|
|
314
|
+
"data-level": l
|
|
315
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
316
|
+
role: "gridcell",
|
|
317
|
+
"aria-colindex": 1
|
|
318
|
+
}, f.children)));
|
|
1933
319
|
});
|
|
1934
|
-
function
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
320
|
+
function V(a) {
|
|
321
|
+
return a ? a === "all" ? "all" : new Set(a) : /* @__PURE__ */ new Set();
|
|
322
|
+
}
|
|
323
|
+
function ue(a, e) {
|
|
324
|
+
let { expandedKeys: t = /* @__PURE__ */ new Set() } = e, o = /* @__PURE__ */ new Map(), r = [], s = (l) => {
|
|
325
|
+
if (l.type === "item" || l.type === "loader") {
|
|
326
|
+
let i = l == null ? void 0 : l.parentKey, f = {
|
|
327
|
+
...l
|
|
328
|
+
};
|
|
329
|
+
i != null ? ([
|
|
330
|
+
...a.getChildren(i)
|
|
331
|
+
][0].type !== "item" && (f.index = (l == null ? void 0 : l.index) != null ? (l == null ? void 0 : l.index) - 1 : 0), l.type === "loader" && (f.level = l.level + 1), o.set(f.key, f)) : o.set(l.key, l), (l.level === 0 || i != null && t.has(i) && r.find((d) => d.key === i)) && r.push(o.get(l.key) || l);
|
|
332
|
+
} else l.type !== null && o.set(l.key, l);
|
|
333
|
+
for (let i of a.getChildren(l.key)) s(i);
|
|
334
|
+
};
|
|
335
|
+
for (let l of a) s(l);
|
|
336
|
+
return {
|
|
337
|
+
flattenedRows: r,
|
|
338
|
+
keyMap: o
|
|
1951
339
|
};
|
|
1952
|
-
});
|
|
1953
|
-
function ur(e) {
|
|
1954
|
-
return e.replace(/[ \t]*[\n][ \t]*/g, `
|
|
1955
|
-
`);
|
|
1956
|
-
}
|
|
1957
|
-
function sr(e) {
|
|
1958
|
-
return nt.compressToEncodedURIComponent(ur(e));
|
|
1959
|
-
}
|
|
1960
|
-
function cr(e) {
|
|
1961
|
-
return "https://testing-playground.com/#markup=" + sr(e);
|
|
1962
340
|
}
|
|
1963
|
-
const fr = (e, t, n) => Array.isArray(e) ? e.forEach((l) => Te(l, t, n)) : Te(e, t, n), dr = function(e) {
|
|
1964
|
-
if (e === void 0 && (e = be().body), !e || !("innerHTML" in e)) {
|
|
1965
|
-
console.log("The element you're providing isn't a valid DOM element.");
|
|
1966
|
-
return;
|
|
1967
|
-
}
|
|
1968
|
-
if (!e.innerHTML) {
|
|
1969
|
-
console.log("The provided element doesn't have any children.");
|
|
1970
|
-
return;
|
|
1971
|
-
}
|
|
1972
|
-
const t = cr(e.innerHTML);
|
|
1973
|
-
return console.log(`Open this URL in your browser
|
|
1974
|
-
|
|
1975
|
-
` + t), t;
|
|
1976
|
-
}, Be = {
|
|
1977
|
-
debug: fr,
|
|
1978
|
-
logTestingPlaygroundURL: dr
|
|
1979
|
-
};
|
|
1980
|
-
typeof document < "u" && document.body ? ir(document.body, se, Be) : Object.keys(se).reduce((e, t) => (e[t] = () => {
|
|
1981
|
-
throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
|
|
1982
|
-
}, e), Be);
|
|
1983
341
|
export {
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
an as findAllByPlaceholderText,
|
|
1991
|
-
Kn as findAllByRole,
|
|
1992
|
-
lr as findAllByTestId,
|
|
1993
|
-
yn as findAllByText,
|
|
1994
|
-
zn as findAllByTitle,
|
|
1995
|
-
Pn as findByAltText,
|
|
1996
|
-
In as findByDisplayValue,
|
|
1997
|
-
Kt as findByLabelText,
|
|
1998
|
-
un as findByPlaceholderText,
|
|
1999
|
-
Yn as findByRole,
|
|
2000
|
-
or as findByTestId,
|
|
2001
|
-
mn as findByText,
|
|
2002
|
-
Vn as findByTitle,
|
|
2003
|
-
Q as fireEvent,
|
|
2004
|
-
qn as getAllByAltText,
|
|
2005
|
-
Tn as getAllByDisplayValue,
|
|
2006
|
-
Yt as getAllByLabelText,
|
|
2007
|
-
ln as getAllByPlaceholderText,
|
|
2008
|
-
Xn as getAllByRole,
|
|
2009
|
-
nr as getAllByTestId,
|
|
2010
|
-
bn as getAllByText,
|
|
2011
|
-
jn as getAllByTitle,
|
|
2012
|
-
On as getByAltText,
|
|
2013
|
-
An as getByDisplayValue,
|
|
2014
|
-
Zt as getByLabelText,
|
|
2015
|
-
on as getByPlaceholderText,
|
|
2016
|
-
Jn as getByRole,
|
|
2017
|
-
rr as getByTestId,
|
|
2018
|
-
pn as getByText,
|
|
2019
|
-
Wn as getByTitle,
|
|
2020
|
-
y as getConfig,
|
|
2021
|
-
ze as getDefaultNormalizer,
|
|
2022
|
-
He as getElementError,
|
|
2023
|
-
Ut as getMultipleElementsFoundError,
|
|
2024
|
-
X as getNodeText,
|
|
2025
|
-
ir as getQueriesForElement,
|
|
2026
|
-
St as getRoles,
|
|
2027
|
-
te as getSuggestedQuery,
|
|
2028
|
-
pe as isInaccessible,
|
|
2029
|
-
Te as logDOM,
|
|
2030
|
-
G as makeFindQuery,
|
|
2031
|
-
Ht as makeGetAllQuery,
|
|
2032
|
-
$ as makeSingleQuery,
|
|
2033
|
-
H as prettyDOM,
|
|
2034
|
-
se as queries,
|
|
2035
|
-
Cn as queryAllByAltText,
|
|
2036
|
-
J as queryAllByAttribute,
|
|
2037
|
-
vn as queryAllByDisplayValue,
|
|
2038
|
-
_t as queryAllByLabelText,
|
|
2039
|
-
nn as queryAllByPlaceholderText,
|
|
2040
|
-
Gn as queryAllByRole,
|
|
2041
|
-
er as queryAllByTestId,
|
|
2042
|
-
fn as queryAllByText,
|
|
2043
|
-
Fn as queryAllByTitle,
|
|
2044
|
-
Dn as queryByAltText,
|
|
2045
|
-
hn as queryByDisplayValue,
|
|
2046
|
-
Xt as queryByLabelText,
|
|
2047
|
-
rn as queryByPlaceholderText,
|
|
2048
|
-
Qn as queryByRole,
|
|
2049
|
-
tr as queryByTestId,
|
|
2050
|
-
dn as queryByText,
|
|
2051
|
-
Rn as queryByTitle,
|
|
2052
|
-
Vt as waitFor,
|
|
2053
|
-
ir as within,
|
|
2054
|
-
A as wrapAllByQueryWithSuggestion,
|
|
2055
|
-
F as wrapSingleQueryWithSuggestion
|
|
342
|
+
z as TreeItemContentContext,
|
|
343
|
+
Ke as UNSTABLE_Tree,
|
|
344
|
+
de as UNSTABLE_TreeContext,
|
|
345
|
+
Fe as UNSTABLE_TreeItem,
|
|
346
|
+
_e as UNSTABLE_TreeItemContent,
|
|
347
|
+
K as UNSTABLE_TreeStateContext
|
|
2056
348
|
};
|