@kong/kongponents 9.49.1 → 9.49.2-pr.3046.82174f0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kongponents.es105.js +5 -5
- package/dist/kongponents.es107.js +3 -3
- package/dist/kongponents.es109.js +4 -4
- package/dist/kongponents.es113.js +2 -2
- package/dist/kongponents.es115.js +4 -4
- package/dist/kongponents.es117.js +2 -2
- package/dist/kongponents.es119.js +9 -9
- package/dist/kongponents.es122.js +5 -5
- package/dist/kongponents.es124.js +6 -6
- package/dist/kongponents.es128.js +2 -2
- package/dist/kongponents.es130.js +1 -1
- package/dist/kongponents.es132.js +9 -9
- package/dist/kongponents.es139.js +3 -3
- package/dist/kongponents.es141.js +1 -1
- package/dist/kongponents.es143.js +5 -5
- package/dist/kongponents.es147.js +2 -2
- package/dist/kongponents.es149.js +7 -7
- package/dist/kongponents.es154.js +3 -3
- package/dist/kongponents.es156.js +4 -4
- package/dist/kongponents.es158.js +3 -3
- package/dist/kongponents.es160.js +11 -11
- package/dist/kongponents.es172.js +113 -102
- package/dist/kongponents.es173.js +17 -17
- package/dist/kongponents.es174.js +19 -19
- package/dist/kongponents.es175.js +119 -18
- package/dist/kongponents.es176.js +121 -0
- package/dist/kongponents.es177.js +24 -24
- package/dist/kongponents.es178.js +18 -5
- package/dist/kongponents.es179.js +7 -8
- package/dist/kongponents.es180.js +4 -59
- package/dist/kongponents.es181.js +184 -97
- package/dist/kongponents.es182.js +105 -163
- package/dist/kongponents.es183.js +27 -27
- package/dist/kongponents.es184.js +115 -313
- package/dist/kongponents.es185.js +118 -38
- package/dist/kongponents.es186.js +315 -96
- package/dist/kongponents.es187.js +38 -118
- package/dist/kongponents.es188.js +97 -118
- package/dist/kongponents.es189.js +18 -18
- package/dist/kongponents.es190.js +11 -11
- package/dist/kongponents.es191.js +22 -23
- package/dist/kongponents.es192.js +17 -17
- package/dist/kongponents.es193.js +24 -23
- package/dist/kongponents.es194.js +119 -18
- package/dist/kongponents.es195.js +117 -50
- package/dist/kongponents.es196.js +18 -119
- package/dist/kongponents.es197.js +52 -5
- package/dist/kongponents.es198.js +15 -15
- package/dist/kongponents.es199.js +19 -19
- package/dist/kongponents.es200.js +118 -23
- package/dist/kongponents.es201.js +5 -119
- package/dist/kongponents.es202.js +22 -22
- package/dist/kongponents.es203.js +20 -20
- package/dist/kongponents.es204.js +23 -23
- package/dist/kongponents.es205.js +23 -118
- package/dist/kongponents.es206.js +5 -5
- package/dist/kongponents.es207.js +5 -119
- package/dist/kongponents.es208.js +166 -7
- package/dist/kongponents.es209.js +5 -189
- package/dist/kongponents.es21.js +8 -8
- package/dist/kongponents.es210.js +5 -15
- package/dist/kongponents.es211.js +5 -119
- package/dist/kongponents.es212.js +21 -21
- package/dist/kongponents.es213.js +27 -27
- package/dist/kongponents.es214.js +5 -119
- package/dist/kongponents.es215.js +5 -119
- package/dist/kongponents.es216.js +5 -114
- package/dist/kongponents.es217.js +5 -17
- package/dist/kongponents.es218.js +5 -396
- package/dist/kongponents.es219.js +3 -3
- package/dist/kongponents.es220.js +3 -3
- package/dist/kongponents.es221.js +34 -34
- package/dist/kongponents.es222.js +24 -24
- package/dist/kongponents.es223.js +119 -5
- package/dist/kongponents.es224.js +5 -119
- package/dist/kongponents.es225.js +10 -119
- package/dist/kongponents.es226.js +119 -5
- package/dist/kongponents.es227.js +119 -5
- package/dist/kongponents.es228.js +114 -5
- package/dist/kongponents.es229.js +13 -115
- package/dist/kongponents.es230.js +393 -116
- package/dist/kongponents.es232.js +119 -10
- package/dist/kongponents.es233.js +4 -4
- package/dist/kongponents.es234.js +8 -5
- package/dist/kongponents.es235.js +60 -5
- package/dist/kongponents.es236.js +15 -5
- package/dist/kongponents.es237.js +119 -5
- package/dist/kongponents.es238.js +102 -5
- package/dist/kongponents.es24.js +1 -1
- package/dist/kongponents.es240.js +1 -1
- package/dist/kongponents.es241.js +1 -1
- package/dist/kongponents.es242.js +23 -184
- package/dist/kongponents.es243.js +93 -0
- package/dist/kongponents.es245.js +39 -590
- package/dist/kongponents.es247.js +86 -47
- package/dist/kongponents.es252.js +52 -2
- package/dist/kongponents.es254.js +171 -114
- package/dist/kongponents.es256.js +2 -24
- package/dist/{kongponents.es253.js → kongponents.es257.js} +1 -1
- package/dist/kongponents.es258.js +115 -44
- package/dist/{kongponents.es255.js → kongponents.es259.js} +1 -1
- package/dist/kongponents.es26.js +3 -3
- package/dist/kongponents.es260.js +51 -29
- package/dist/kongponents.es262.js +18 -17
- package/dist/kongponents.es264.js +42 -39
- package/dist/kongponents.es266.js +28 -35
- package/dist/kongponents.es268.js +20 -88
- package/dist/kongponents.es270.js +40 -36
- package/dist/kongponents.es272.js +36 -47
- package/dist/kongponents.es274.js +6 -95
- package/dist/kongponents.es275.js +66 -0
- package/dist/kongponents.es277.js +594 -0
- package/dist/kongponents.es278.js +178 -170
- package/dist/kongponents.es28.js +2 -2
- package/dist/kongponents.es280.js +133 -8
- package/dist/kongponents.es281.js +2 -7
- package/dist/kongponents.es282.js +1556 -7
- package/dist/kongponents.es283.js +5 -5
- package/dist/kongponents.es284.js +2 -10
- package/dist/kongponents.es285.js +6 -9
- package/dist/kongponents.es286.js +4 -636
- package/dist/kongponents.es287.js +4 -73
- package/dist/kongponents.es288.js +19 -4
- package/dist/kongponents.es289.js +3 -19
- package/dist/kongponents.es290.js +4 -4
- package/dist/kongponents.es291.js +6 -18
- package/dist/kongponents.es292.js +8 -7
- package/dist/kongponents.es293.js +5 -5
- package/dist/kongponents.es294.js +3 -8
- package/dist/kongponents.es295.js +16 -7
- package/dist/kongponents.es296.js +3 -4
- package/dist/kongponents.es297.js +8 -21
- package/dist/kongponents.es298.js +6 -4
- package/dist/kongponents.es299.js +3 -110
- package/dist/kongponents.es300.js +2 -172
- package/dist/kongponents.es301.js +6 -5
- package/dist/kongponents.es302.js +8 -5
- package/dist/kongponents.es303.js +5 -5
- package/dist/kongponents.es304.js +4 -5
- package/dist/kongponents.es305.js +3 -70
- package/dist/kongponents.es306.js +4 -2
- package/dist/kongponents.es307.js +7 -4
- package/dist/kongponents.es308.js +7 -5
- package/dist/kongponents.es309.js +5 -20
- package/dist/kongponents.es310.js +9 -3
- package/dist/kongponents.es311.js +5 -4
- package/dist/kongponents.es312.js +9 -6
- package/dist/kongponents.es313.js +6 -8
- package/dist/kongponents.es314.js +17 -5
- package/dist/kongponents.es315.js +11 -3
- package/dist/kongponents.es316.js +6 -16
- package/dist/kongponents.es317.js +12 -3
- package/dist/kongponents.es318.js +10 -8
- package/dist/kongponents.es319.js +4 -5
- package/dist/kongponents.es320.js +8 -3
- package/dist/kongponents.es321.js +16 -2
- package/dist/kongponents.es322.js +16 -4
- package/dist/kongponents.es323.js +5 -9
- package/dist/kongponents.es324.js +10 -4
- package/dist/kongponents.es325.js +7 -4
- package/dist/kongponents.es326.js +8 -3
- package/dist/kongponents.es327.js +5 -3
- package/dist/kongponents.es328.js +6 -7
- package/dist/kongponents.es329.js +9 -6
- package/dist/kongponents.es330.js +8 -5
- package/dist/kongponents.es331.js +3 -9
- package/dist/kongponents.es332.js +4 -4
- package/dist/kongponents.es333.js +16 -9
- package/dist/kongponents.es334.js +217 -7
- package/dist/kongponents.es335.js +8 -17
- package/dist/kongponents.es336.js +6 -11
- package/dist/kongponents.es337.js +7 -6
- package/dist/kongponents.es338.js +4 -12
- package/dist/kongponents.es339.js +9 -9
- package/dist/kongponents.es340.js +8 -5
- package/dist/kongponents.es341.js +636 -8
- package/dist/kongponents.es342.js +74 -16
- package/dist/kongponents.es343.js +4 -17
- package/dist/kongponents.es344.js +19 -5
- package/dist/kongponents.es345.js +4 -10
- package/dist/kongponents.es346.js +18 -7
- package/dist/kongponents.es347.js +7 -7
- package/dist/kongponents.es348.js +5 -5
- package/dist/kongponents.es349.js +6 -4
- package/dist/kongponents.es350.js +7 -9
- package/dist/kongponents.es351.js +4 -7
- package/dist/kongponents.es352.js +20 -3
- package/dist/kongponents.es353.js +5 -6
- package/dist/kongponents.es354.js +110 -15
- package/dist/kongponents.es355.js +97 -5699
- package/dist/kongponents.es356.js +5 -6
- package/dist/kongponents.es357.js +7 -64
- package/dist/kongponents.es358.js +7 -0
- package/dist/kongponents.es359.js +5 -217
- package/dist/kongponents.es360.js +65 -365
- package/dist/kongponents.es361.js +2 -130
- package/dist/kongponents.es362.js +90 -1552
- package/dist/kongponents.es364.js +370 -25
- package/dist/kongponents.es365.js +129 -10
- package/dist/kongponents.es366.js +5773 -10
- package/dist/kongponents.es367.js +10 -12
- package/dist/kongponents.es368.js +16 -10
- package/dist/kongponents.es369.js +7 -18
- package/dist/kongponents.es370.js +5 -5
- package/dist/kongponents.es371.js +8 -54
- package/dist/kongponents.es372.js +10 -2
- package/dist/kongponents.es373.js +14 -17
- package/dist/kongponents.es374.js +6 -2
- package/dist/kongponents.es375.js +3 -13
- package/dist/kongponents.es376.js +7 -17
- package/dist/kongponents.es377.js +3 -72
- package/dist/kongponents.es378.js +11 -2
- package/dist/kongponents.es379.js +7 -22
- package/dist/kongponents.es380.js +5 -21
- package/dist/kongponents.es381.js +2 -21
- package/dist/kongponents.es382.js +12 -649
- package/dist/kongponents.es383.js +4 -83
- package/dist/kongponents.es384.js +5 -14
- package/dist/kongponents.es385.js +27 -24
- package/dist/kongponents.es386.js +3 -17
- package/dist/kongponents.es387.js +25 -14
- package/dist/kongponents.es388.js +4 -17
- package/dist/kongponents.es389.js +4 -15
- package/dist/kongponents.es390.js +4 -24
- package/dist/kongponents.es391.js +4 -2
- package/dist/kongponents.es392.js +4 -2
- package/dist/kongponents.es393.js +12 -62
- package/dist/kongponents.es394.js +26 -4
- package/dist/kongponents.es395.js +15 -7
- package/dist/kongponents.es396.js +9 -5
- package/dist/kongponents.es397.js +4 -8
- package/dist/kongponents.es398.js +13 -5
- package/dist/kongponents.es399.js +8 -9
- package/dist/kongponents.es400.js +3 -15
- package/dist/kongponents.es401.js +6 -3
- package/dist/kongponents.es402.js +5 -7
- package/dist/kongponents.es403.js +8 -3
- package/dist/kongponents.es404.js +4 -9
- package/dist/kongponents.es405.js +10 -7
- package/dist/kongponents.es406.js +5 -5
- package/dist/kongponents.es407.js +5 -2
- package/dist/kongponents.es408.js +4 -12
- package/dist/kongponents.es409.js +5 -4
- package/dist/kongponents.es410.js +8 -3
- package/dist/kongponents.es411.js +7 -26
- package/dist/kongponents.es412.js +10 -4
- package/dist/kongponents.es413.js +7 -4
- package/dist/kongponents.es414.js +22 -4
- package/dist/kongponents.es415.js +7 -4
- package/dist/kongponents.es416.js +7 -4
- package/dist/kongponents.es417.js +6 -14
- package/dist/kongponents.es418.js +7 -4
- package/dist/kongponents.es419.js +25 -30
- package/dist/kongponents.es420.js +10 -26
- package/dist/kongponents.es421.js +10 -15
- package/dist/kongponents.es422.js +12 -9
- package/dist/kongponents.es423.js +10 -4
- package/dist/kongponents.es424.js +18 -13
- package/dist/kongponents.es425.js +5 -8
- package/dist/kongponents.es426.js +55 -3
- package/dist/kongponents.es427.js +2 -6
- package/dist/kongponents.es428.js +71 -5
- package/dist/kongponents.es429.js +2 -8
- package/dist/kongponents.es430.js +12 -5
- package/dist/kongponents.es431.js +22 -10
- package/dist/kongponents.es432.js +21 -5
- package/dist/kongponents.es433.js +20 -4
- package/dist/kongponents.es434.js +649 -4
- package/dist/kongponents.es435.js +83 -5
- package/dist/kongponents.es436.js +15 -8
- package/dist/kongponents.es437.js +26 -6
- package/dist/kongponents.es438.js +17 -10
- package/dist/kongponents.es439.js +14 -6
- package/dist/kongponents.es440.js +15 -20
- package/dist/kongponents.es441.js +15 -2
- package/dist/kongponents.es442.js +24 -95
- package/dist/kongponents.es443.js +20 -0
- package/dist/kongponents.es444.js +2 -7
- package/dist/kongponents.es445.js +17 -6
- package/dist/kongponents.es446.js +64 -6
- package/dist/kongponents.es447.js +4 -8
- package/dist/kongponents.es448.js +2 -11
- package/dist/kongponents.es449.js +2 -17
- package/dist/kongponents.es450.js +6 -7
- package/dist/kongponents.es451.js +17 -10
- package/dist/kongponents.es452.js +4 -13
- package/dist/kongponents.es453.js +4 -13
- package/dist/kongponents.es454.js +4 -2
- package/dist/kongponents.es455.js +4 -2
- package/dist/kongponents.es456.js +14 -66
- package/dist/kongponents.es457.js +7 -31
- package/dist/kongponents.es458.js +8 -11
- package/dist/kongponents.es459.js +11 -121
- package/dist/kongponents.es460.js +5 -86
- package/dist/kongponents.es461.js +4 -2
- package/dist/kongponents.es462.js +3 -18
- package/dist/kongponents.es463.js +38 -2
- package/dist/kongponents.es464.js +42 -21
- package/dist/kongponents.es465.js +34 -2
- package/dist/kongponents.es466.js +3 -16
- package/dist/kongponents.es467.js +18 -2
- package/dist/kongponents.es468.js +5 -22
- package/dist/kongponents.es469.js +7 -22
- package/dist/kongponents.es470.js +10 -25
- package/dist/kongponents.es471.js +13 -22
- package/dist/kongponents.es472.js +13 -31
- package/dist/kongponents.es473.js +67 -16
- package/dist/kongponents.es474.js +31 -67
- package/dist/kongponents.es475.js +11 -2
- package/dist/kongponents.es476.js +121 -2
- package/dist/kongponents.es477.js +86 -2
- package/dist/kongponents.es478.js +2 -2
- package/dist/kongponents.es479.js +2 -2
- package/dist/kongponents.es480.js +16 -27
- package/dist/kongponents.es481.js +2 -4
- package/dist/kongponents.es482.js +21 -6
- package/dist/kongponents.es483.js +2 -18
- package/dist/kongponents.es484.js +15 -4
- package/dist/kongponents.es485.js +2 -5
- package/dist/kongponents.es486.js +22 -3
- package/dist/kongponents.es487.js +22 -3
- package/dist/kongponents.es488.js +25 -14
- package/dist/kongponents.es489.js +22 -6
- package/dist/kongponents.es490.js +32 -8
- package/dist/kongponents.es491.js +15 -10
- package/dist/kongponents.es492.js +66 -4
- package/dist/kongponents.es493.js +2 -4
- package/dist/kongponents.es494.js +2 -4
- package/dist/kongponents.es495.js +2 -38
- package/dist/kongponents.es496.js +2 -43
- package/dist/kongponents.es497.js +2 -34
- package/dist/kongponents.es498.js +30 -3
- package/dist/kongponents.es499.js +2 -18
- package/dist/kongponents.es500.js +3 -5
- package/dist/kongponents.es501.js +4 -29
- package/dist/kongponents.es502.js +9 -119
- package/dist/kongponents.es503.js +5 -29
- package/dist/kongponents.es504.js +2 -8
- package/dist/kongponents.es505.js +5 -13
- package/dist/kongponents.es506.js +3 -32
- package/dist/kongponents.es507.js +3 -29
- package/dist/kongponents.es508.js +4 -10
- package/dist/kongponents.es509.js +4 -12
- package/dist/kongponents.es510.js +4 -17
- package/dist/kongponents.es511.js +10 -23
- package/dist/kongponents.es512.js +6 -16
- package/dist/kongponents.es513.js +6 -96
- package/dist/kongponents.es514.js +29 -45
- package/dist/kongponents.es515.js +118 -27
- package/dist/kongponents.es516.js +28 -70
- package/dist/kongponents.es517.js +9 -50
- package/dist/kongponents.es518.js +13 -34
- package/dist/kongponents.es519.js +29 -38
- package/dist/kongponents.es520.js +28 -6
- package/dist/kongponents.es521.js +9 -13
- package/dist/kongponents.es522.js +12 -28
- package/dist/kongponents.es523.js +17 -15
- package/dist/kongponents.es524.js +24 -2
- package/dist/kongponents.es525.js +17 -2
- package/dist/kongponents.es526.js +97 -2
- package/dist/kongponents.es527.js +45 -2
- package/dist/kongponents.es528.js +29 -2
- package/dist/kongponents.es529.js +70 -19
- package/dist/kongponents.es530.js +50 -22
- package/dist/kongponents.es531.js +35 -2
- package/dist/kongponents.es532.js +42 -2
- package/dist/kongponents.es533.js +6 -26
- package/dist/kongponents.es534.js +13 -25
- package/dist/kongponents.es535.js +29 -2
- package/dist/kongponents.es536.js +16 -2
- package/dist/kongponents.es537.js +2 -2
- package/dist/kongponents.es538.js +2 -2
- package/dist/kongponents.es539.js +2 -77
- package/dist/kongponents.es540.js +2 -43
- package/dist/kongponents.es541.js +19 -19
- package/dist/kongponents.es542.js +21 -130
- package/dist/kongponents.es543.js +2 -98
- package/dist/kongponents.es544.js +2 -4
- package/dist/kongponents.es545.js +26 -9
- package/dist/kongponents.es546.js +26 -5
- package/dist/kongponents.es547.js +2 -5
- package/dist/kongponents.es548.js +2 -6
- package/dist/kongponents.es549.js +2 -4
- package/dist/kongponents.es550.js +2 -3
- package/dist/kongponents.es551.js +2 -5
- package/dist/kongponents.es552.js +76 -4
- package/dist/kongponents.es553.js +42 -10
- package/dist/kongponents.es554.js +20 -6
- package/dist/kongponents.es555.js +132 -6
- package/dist/kongponents.es556.js +97 -4
- package/dist/kongponents.es557.js +6 -2
- package/dist/kongponents.es558.js +3 -4
- package/dist/kongponents.es559.js +3 -15
- package/dist/kongponents.es560.js +3 -3
- package/dist/kongponents.es561.js +15 -9
- package/dist/kongponents.es562.js +3 -4
- package/dist/kongponents.es563.js +9 -5
- package/dist/kongponents.es564.js +4 -9
- package/dist/kongponents.es565.js +5 -7
- package/dist/kongponents.es566.js +9 -4
- package/dist/kongponents.es567.js +7 -3
- package/dist/kongponents.es568.js +5 -4
- package/dist/kongponents.es569.js +3 -11
- package/dist/kongponents.es570.js +4 -10
- package/dist/kongponents.es571.js +11 -30
- package/dist/kongponents.es572.js +8 -23
- package/dist/kongponents.es573.js +29 -50
- package/dist/kongponents.es574.js +24 -3
- package/dist/kongponents.es575.js +51 -8
- package/dist/kongponents.es576.js +3 -20
- package/dist/kongponents.es577.js +8 -7
- package/dist/kongponents.es578.js +20 -6
- package/dist/kongponents.es579.js +7 -5
- package/dist/kongponents.es580.js +6 -7
- package/dist/kongponents.es581.js +5 -15
- package/dist/kongponents.es582.js +7 -4
- package/dist/kongponents.es583.js +15 -6
- package/dist/kongponents.es584.js +4 -34
- package/dist/kongponents.es585.js +6 -8
- package/dist/kongponents.es586.js +35 -2
- package/dist/kongponents.es587.js +9 -2
- package/dist/kongponents.es590.js +2 -2
- package/dist/kongponents.es591.js +2 -2
- package/dist/kongponents.es592.js +2 -17
- package/dist/kongponents.es593.js +2 -2
- package/dist/kongponents.es594.js +17 -2
- package/dist/kongponents.es595.js +2 -25
- package/dist/kongponents.es596.js +2 -2
- package/dist/kongponents.es597.js +20 -34
- package/dist/kongponents.es598.js +2 -26
- package/dist/kongponents.es599.js +38 -7
- package/dist/kongponents.es600.js +26 -3
- package/dist/kongponents.es601.js +1 -1
- package/dist/kongponents.es602.js +1 -1
- package/dist/kongponents.es604.js +3 -3
- package/dist/kongponents.es605.js +4 -4
- package/dist/kongponents.es72.js +7 -7
- package/dist/kongponents.es83.js +1 -1
- package/dist/kongponents.es87.js +3 -3
- package/dist/kongponents.es89.js +14 -14
- package/dist/kongponents.es94.js +2 -2
- package/dist/kongponents.es96.js +5 -5
- package/dist/kongponents.es99.js +2 -2
- package/dist/kongponents105.cjs +1 -1
- package/dist/kongponents107.cjs +1 -1
- package/dist/kongponents109.cjs +1 -1
- package/dist/kongponents113.cjs +1 -1
- package/dist/kongponents115.cjs +1 -1
- package/dist/kongponents117.cjs +1 -1
- package/dist/kongponents119.cjs +1 -1
- package/dist/kongponents122.cjs +1 -1
- package/dist/kongponents124.cjs +1 -1
- package/dist/kongponents128.cjs +1 -1
- package/dist/kongponents130.cjs +1 -1
- package/dist/kongponents132.cjs +1 -1
- package/dist/kongponents139.cjs +1 -1
- package/dist/kongponents141.cjs +1 -1
- package/dist/kongponents143.cjs +1 -1
- package/dist/kongponents147.cjs +1 -1
- package/dist/kongponents149.cjs +1 -1
- package/dist/kongponents154.cjs +1 -1
- package/dist/kongponents156.cjs +1 -1
- package/dist/kongponents158.cjs +1 -1
- package/dist/kongponents160.cjs +1 -1
- package/dist/kongponents172.cjs +1 -1
- package/dist/kongponents173.cjs +1 -1
- package/dist/kongponents174.cjs +1 -1
- package/dist/kongponents175.cjs +1 -1
- package/dist/kongponents176.cjs +1 -0
- package/dist/kongponents177.cjs +1 -1
- package/dist/kongponents178.cjs +1 -1
- package/dist/kongponents179.cjs +1 -1
- package/dist/kongponents180.cjs +1 -1
- package/dist/kongponents181.cjs +1 -5
- package/dist/kongponents182.cjs +1 -1
- package/dist/kongponents183.cjs +1 -1
- package/dist/kongponents184.cjs +1 -1
- package/dist/kongponents185.cjs +1 -1
- package/dist/kongponents186.cjs +1 -2
- package/dist/kongponents187.cjs +1 -1
- package/dist/kongponents188.cjs +2 -1
- package/dist/kongponents189.cjs +1 -1
- package/dist/kongponents190.cjs +1 -1
- package/dist/kongponents191.cjs +1 -2
- package/dist/kongponents192.cjs +1 -1
- package/dist/kongponents193.cjs +2 -1
- package/dist/kongponents194.cjs +1 -1
- package/dist/kongponents195.cjs +1 -1
- package/dist/kongponents196.cjs +1 -1
- package/dist/kongponents197.cjs +1 -1
- package/dist/kongponents198.cjs +1 -1
- package/dist/kongponents199.cjs +1 -1
- package/dist/kongponents200.cjs +1 -1
- package/dist/kongponents201.cjs +1 -1
- package/dist/kongponents202.cjs +1 -1
- package/dist/kongponents203.cjs +1 -1
- package/dist/kongponents204.cjs +1 -1
- package/dist/kongponents205.cjs +1 -1
- package/dist/kongponents206.cjs +1 -1
- package/dist/kongponents207.cjs +1 -1
- package/dist/kongponents208.cjs +1 -1
- package/dist/kongponents209.cjs +1 -1
- package/dist/kongponents21.cjs +1 -1
- package/dist/kongponents210.cjs +1 -1
- package/dist/kongponents211.cjs +1 -1
- package/dist/kongponents212.cjs +1 -1
- package/dist/kongponents213.cjs +1 -1
- package/dist/kongponents214.cjs +1 -1
- package/dist/kongponents215.cjs +1 -1
- package/dist/kongponents216.cjs +1 -1
- package/dist/kongponents217.cjs +1 -1
- package/dist/kongponents218.cjs +1 -1
- package/dist/kongponents219.cjs +1 -1
- package/dist/kongponents220.cjs +1 -1
- package/dist/kongponents221.cjs +1 -1
- package/dist/kongponents222.cjs +1 -1
- package/dist/kongponents223.cjs +1 -1
- package/dist/kongponents224.cjs +1 -1
- package/dist/kongponents225.cjs +1 -1
- package/dist/kongponents226.cjs +1 -1
- package/dist/kongponents227.cjs +1 -1
- package/dist/kongponents228.cjs +1 -1
- package/dist/kongponents229.cjs +1 -1
- package/dist/kongponents230.cjs +1 -1
- package/dist/kongponents232.cjs +1 -1
- package/dist/kongponents233.cjs +1 -1
- package/dist/kongponents234.cjs +1 -1
- package/dist/kongponents235.cjs +1 -1
- package/dist/kongponents236.cjs +1 -1
- package/dist/kongponents237.cjs +1 -1
- package/dist/kongponents238.cjs +5 -1
- package/dist/kongponents24.cjs +1 -1
- package/dist/kongponents240.cjs +1 -1
- package/dist/kongponents241.cjs +1 -1
- package/dist/kongponents242.cjs +1 -1
- package/dist/kongponents243.cjs +1 -0
- package/dist/kongponents245.cjs +1 -6
- package/dist/kongponents247.cjs +1 -1
- package/dist/kongponents252.cjs +1 -1
- package/dist/kongponents254.cjs +1 -1
- package/dist/kongponents256.cjs +1 -1
- package/dist/{kongponents253.cjs → kongponents257.cjs} +1 -1
- package/dist/kongponents258.cjs +1 -1
- package/dist/{kongponents255.cjs → kongponents259.cjs} +1 -1
- package/dist/kongponents26.cjs +1 -1
- package/dist/kongponents260.cjs +1 -1
- package/dist/kongponents262.cjs +1 -1
- package/dist/kongponents264.cjs +1 -1
- package/dist/kongponents266.cjs +1 -1
- package/dist/kongponents268.cjs +1 -1
- package/dist/kongponents270.cjs +1 -1
- package/dist/kongponents272.cjs +1 -1
- package/dist/kongponents274.cjs +1 -1
- package/dist/kongponents275.cjs +1 -0
- package/dist/kongponents277.cjs +6 -0
- package/dist/kongponents278.cjs +1 -1
- package/dist/kongponents28.cjs +1 -1
- package/dist/kongponents280.cjs +1 -1
- package/dist/kongponents281.cjs +1 -1
- package/dist/kongponents282.cjs +10 -1
- package/dist/kongponents283.cjs +1 -1
- package/dist/kongponents284.cjs +1 -1
- package/dist/kongponents285.cjs +1 -1
- package/dist/kongponents286.cjs +1 -1
- package/dist/kongponents287.cjs +1 -1
- package/dist/kongponents288.cjs +1 -1
- package/dist/kongponents289.cjs +1 -1
- package/dist/kongponents290.cjs +1 -1
- package/dist/kongponents291.cjs +1 -1
- package/dist/kongponents292.cjs +1 -1
- package/dist/kongponents293.cjs +1 -1
- package/dist/kongponents294.cjs +1 -1
- package/dist/kongponents295.cjs +1 -1
- package/dist/kongponents296.cjs +1 -1
- package/dist/kongponents297.cjs +1 -1
- package/dist/kongponents298.cjs +1 -1
- package/dist/kongponents299.cjs +1 -1
- package/dist/kongponents300.cjs +1 -1
- package/dist/kongponents301.cjs +1 -1
- package/dist/kongponents302.cjs +1 -1
- package/dist/kongponents303.cjs +1 -1
- package/dist/kongponents304.cjs +1 -1
- package/dist/kongponents305.cjs +1 -1
- package/dist/kongponents306.cjs +1 -1
- package/dist/kongponents307.cjs +1 -1
- package/dist/kongponents308.cjs +1 -1
- package/dist/kongponents309.cjs +1 -1
- package/dist/kongponents310.cjs +1 -1
- package/dist/kongponents311.cjs +1 -1
- package/dist/kongponents312.cjs +1 -1
- package/dist/kongponents313.cjs +1 -1
- package/dist/kongponents314.cjs +1 -1
- package/dist/kongponents315.cjs +1 -1
- package/dist/kongponents316.cjs +1 -1
- package/dist/kongponents317.cjs +1 -1
- package/dist/kongponents318.cjs +1 -1
- package/dist/kongponents319.cjs +1 -1
- package/dist/kongponents320.cjs +1 -1
- package/dist/kongponents321.cjs +1 -1
- package/dist/kongponents322.cjs +1 -1
- package/dist/kongponents323.cjs +1 -1
- package/dist/kongponents324.cjs +1 -1
- package/dist/kongponents325.cjs +1 -1
- package/dist/kongponents326.cjs +1 -1
- package/dist/kongponents327.cjs +1 -1
- package/dist/kongponents328.cjs +1 -1
- package/dist/kongponents329.cjs +1 -1
- package/dist/kongponents330.cjs +1 -1
- package/dist/kongponents331.cjs +1 -1
- package/dist/kongponents332.cjs +1 -1
- package/dist/kongponents333.cjs +1 -1
- package/dist/kongponents334.cjs +4 -1
- package/dist/kongponents335.cjs +1 -1
- package/dist/kongponents336.cjs +1 -1
- package/dist/kongponents337.cjs +1 -1
- package/dist/kongponents338.cjs +1 -1
- package/dist/kongponents339.cjs +1 -1
- package/dist/kongponents340.cjs +1 -1
- package/dist/kongponents341.cjs +1 -1
- package/dist/kongponents342.cjs +1 -1
- package/dist/kongponents343.cjs +1 -1
- package/dist/kongponents344.cjs +1 -1
- package/dist/kongponents345.cjs +1 -1
- package/dist/kongponents346.cjs +1 -1
- package/dist/kongponents347.cjs +1 -1
- package/dist/kongponents348.cjs +1 -1
- package/dist/kongponents349.cjs +1 -1
- package/dist/kongponents350.cjs +1 -1
- package/dist/kongponents351.cjs +1 -1
- package/dist/kongponents352.cjs +1 -1
- package/dist/kongponents353.cjs +1 -1
- package/dist/kongponents354.cjs +1 -1
- package/dist/kongponents355.cjs +1 -1
- package/dist/kongponents356.cjs +1 -1
- package/dist/kongponents357.cjs +1 -1
- package/dist/kongponents358.cjs +1 -0
- package/dist/kongponents359.cjs +1 -4
- package/dist/kongponents360.cjs +1 -1
- package/dist/kongponents361.cjs +1 -1
- package/dist/kongponents362.cjs +1 -10
- package/dist/kongponents364.cjs +1 -1
- package/dist/kongponents365.cjs +1 -1
- package/dist/kongponents366.cjs +1 -1
- package/dist/kongponents367.cjs +1 -1
- package/dist/kongponents368.cjs +1 -1
- package/dist/kongponents369.cjs +1 -1
- package/dist/kongponents370.cjs +1 -1
- package/dist/kongponents371.cjs +1 -1
- package/dist/kongponents372.cjs +1 -1
- package/dist/kongponents373.cjs +1 -1
- package/dist/kongponents374.cjs +1 -1
- package/dist/kongponents375.cjs +1 -1
- package/dist/kongponents376.cjs +1 -1
- package/dist/kongponents377.cjs +1 -1
- package/dist/kongponents378.cjs +1 -1
- package/dist/kongponents379.cjs +1 -1
- package/dist/kongponents380.cjs +1 -1
- package/dist/kongponents381.cjs +1 -1
- package/dist/kongponents382.cjs +1 -1
- package/dist/kongponents383.cjs +1 -1
- package/dist/kongponents384.cjs +1 -1
- package/dist/kongponents385.cjs +1 -1
- package/dist/kongponents386.cjs +1 -1
- package/dist/kongponents387.cjs +1 -1
- package/dist/kongponents388.cjs +1 -1
- package/dist/kongponents389.cjs +1 -1
- package/dist/kongponents390.cjs +1 -1
- package/dist/kongponents391.cjs +1 -1
- package/dist/kongponents392.cjs +1 -1
- package/dist/kongponents393.cjs +1 -1
- package/dist/kongponents394.cjs +1 -1
- package/dist/kongponents395.cjs +1 -1
- package/dist/kongponents396.cjs +1 -1
- package/dist/kongponents397.cjs +1 -1
- package/dist/kongponents398.cjs +1 -1
- package/dist/kongponents399.cjs +1 -1
- package/dist/kongponents400.cjs +1 -1
- package/dist/kongponents401.cjs +1 -1
- package/dist/kongponents402.cjs +1 -1
- package/dist/kongponents403.cjs +1 -1
- package/dist/kongponents404.cjs +1 -1
- package/dist/kongponents405.cjs +1 -1
- package/dist/kongponents406.cjs +1 -1
- package/dist/kongponents407.cjs +1 -1
- package/dist/kongponents408.cjs +1 -1
- package/dist/kongponents409.cjs +1 -1
- package/dist/kongponents410.cjs +1 -1
- package/dist/kongponents411.cjs +1 -1
- package/dist/kongponents412.cjs +1 -1
- package/dist/kongponents413.cjs +1 -1
- package/dist/kongponents414.cjs +1 -1
- package/dist/kongponents415.cjs +1 -1
- package/dist/kongponents416.cjs +1 -1
- package/dist/kongponents417.cjs +1 -1
- package/dist/kongponents418.cjs +1 -1
- package/dist/kongponents419.cjs +1 -1
- package/dist/kongponents420.cjs +1 -1
- package/dist/kongponents421.cjs +1 -1
- package/dist/kongponents422.cjs +1 -1
- package/dist/kongponents423.cjs +1 -1
- package/dist/kongponents424.cjs +1 -1
- package/dist/kongponents425.cjs +1 -1
- package/dist/kongponents426.cjs +1 -1
- package/dist/kongponents427.cjs +1 -1
- package/dist/kongponents428.cjs +1 -1
- package/dist/kongponents429.cjs +1 -1
- package/dist/kongponents430.cjs +1 -1
- package/dist/kongponents431.cjs +1 -1
- package/dist/kongponents432.cjs +1 -1
- package/dist/kongponents433.cjs +1 -1
- package/dist/kongponents434.cjs +1 -1
- package/dist/kongponents435.cjs +1 -1
- package/dist/kongponents436.cjs +1 -1
- package/dist/kongponents437.cjs +1 -1
- package/dist/kongponents438.cjs +1 -1
- package/dist/kongponents439.cjs +1 -1
- package/dist/kongponents440.cjs +1 -1
- package/dist/kongponents441.cjs +1 -1
- package/dist/kongponents442.cjs +1 -1
- package/dist/kongponents443.cjs +1 -0
- package/dist/kongponents444.cjs +1 -1
- package/dist/kongponents445.cjs +1 -1
- package/dist/kongponents446.cjs +1 -1
- package/dist/kongponents447.cjs +1 -1
- package/dist/kongponents448.cjs +1 -1
- package/dist/kongponents449.cjs +1 -1
- package/dist/kongponents450.cjs +1 -1
- package/dist/kongponents451.cjs +1 -1
- package/dist/kongponents452.cjs +1 -1
- package/dist/kongponents453.cjs +1 -1
- package/dist/kongponents454.cjs +1 -1
- package/dist/kongponents455.cjs +1 -1
- package/dist/kongponents456.cjs +1 -1
- package/dist/kongponents457.cjs +1 -1
- package/dist/kongponents458.cjs +1 -1
- package/dist/kongponents459.cjs +1 -1
- package/dist/kongponents460.cjs +1 -1
- package/dist/kongponents461.cjs +1 -1
- package/dist/kongponents462.cjs +1 -1
- package/dist/kongponents463.cjs +1 -1
- package/dist/kongponents464.cjs +1 -1
- package/dist/kongponents465.cjs +1 -1
- package/dist/kongponents466.cjs +1 -1
- package/dist/kongponents467.cjs +1 -1
- package/dist/kongponents468.cjs +1 -1
- package/dist/kongponents469.cjs +1 -1
- package/dist/kongponents470.cjs +1 -1
- package/dist/kongponents471.cjs +1 -1
- package/dist/kongponents472.cjs +1 -1
- package/dist/kongponents473.cjs +1 -1
- package/dist/kongponents474.cjs +1 -1
- package/dist/kongponents475.cjs +1 -1
- package/dist/kongponents476.cjs +1 -1
- package/dist/kongponents477.cjs +1 -1
- package/dist/kongponents478.cjs +1 -1
- package/dist/kongponents480.cjs +1 -1
- package/dist/kongponents481.cjs +1 -1
- package/dist/kongponents482.cjs +1 -1
- package/dist/kongponents483.cjs +1 -1
- package/dist/kongponents484.cjs +1 -1
- package/dist/kongponents485.cjs +1 -1
- package/dist/kongponents486.cjs +1 -1
- package/dist/kongponents487.cjs +1 -1
- package/dist/kongponents488.cjs +1 -1
- package/dist/kongponents489.cjs +1 -1
- package/dist/kongponents490.cjs +1 -1
- package/dist/kongponents491.cjs +1 -1
- package/dist/kongponents492.cjs +1 -1
- package/dist/kongponents493.cjs +1 -1
- package/dist/kongponents494.cjs +1 -1
- package/dist/kongponents495.cjs +1 -1
- package/dist/kongponents496.cjs +1 -1
- package/dist/kongponents497.cjs +1 -1
- package/dist/kongponents498.cjs +1 -1
- package/dist/kongponents499.cjs +1 -1
- package/dist/kongponents500.cjs +1 -1
- package/dist/kongponents501.cjs +1 -1
- package/dist/kongponents502.cjs +1 -1
- package/dist/kongponents503.cjs +1 -1
- package/dist/kongponents504.cjs +1 -1
- package/dist/kongponents505.cjs +1 -1
- package/dist/kongponents506.cjs +1 -1
- package/dist/kongponents507.cjs +1 -1
- package/dist/kongponents508.cjs +1 -1
- package/dist/kongponents509.cjs +1 -1
- package/dist/kongponents510.cjs +1 -1
- package/dist/kongponents511.cjs +1 -1
- package/dist/kongponents512.cjs +1 -1
- package/dist/kongponents513.cjs +1 -1
- package/dist/kongponents514.cjs +1 -1
- package/dist/kongponents515.cjs +1 -1
- package/dist/kongponents516.cjs +1 -1
- package/dist/kongponents517.cjs +1 -1
- package/dist/kongponents518.cjs +1 -1
- package/dist/kongponents519.cjs +1 -1
- package/dist/kongponents520.cjs +1 -1
- package/dist/kongponents521.cjs +1 -1
- package/dist/kongponents522.cjs +1 -1
- package/dist/kongponents523.cjs +1 -1
- package/dist/kongponents524.cjs +1 -1
- package/dist/kongponents525.cjs +1 -1
- package/dist/kongponents526.cjs +1 -1
- package/dist/kongponents527.cjs +1 -1
- package/dist/kongponents528.cjs +1 -1
- package/dist/kongponents529.cjs +1 -1
- package/dist/kongponents530.cjs +1 -1
- package/dist/kongponents531.cjs +1 -1
- package/dist/kongponents532.cjs +1 -1
- package/dist/kongponents533.cjs +1 -1
- package/dist/kongponents534.cjs +1 -1
- package/dist/kongponents535.cjs +1 -1
- package/dist/kongponents536.cjs +1 -1
- package/dist/kongponents539.cjs +1 -1
- package/dist/kongponents540.cjs +1 -1
- package/dist/kongponents541.cjs +1 -1
- package/dist/kongponents542.cjs +1 -1
- package/dist/kongponents543.cjs +1 -1
- package/dist/kongponents544.cjs +1 -1
- package/dist/kongponents545.cjs +1 -1
- package/dist/kongponents546.cjs +1 -1
- package/dist/kongponents547.cjs +1 -1
- package/dist/kongponents548.cjs +1 -1
- package/dist/kongponents549.cjs +1 -1
- package/dist/kongponents550.cjs +1 -1
- package/dist/kongponents551.cjs +1 -1
- package/dist/kongponents552.cjs +1 -1
- package/dist/kongponents553.cjs +1 -1
- package/dist/kongponents554.cjs +1 -1
- package/dist/kongponents555.cjs +1 -1
- package/dist/kongponents556.cjs +1 -1
- package/dist/kongponents557.cjs +1 -1
- package/dist/kongponents558.cjs +1 -1
- package/dist/kongponents559.cjs +1 -1
- package/dist/kongponents560.cjs +1 -1
- package/dist/kongponents561.cjs +1 -1
- package/dist/kongponents562.cjs +1 -1
- package/dist/kongponents563.cjs +1 -1
- package/dist/kongponents564.cjs +1 -1
- package/dist/kongponents565.cjs +1 -1
- package/dist/kongponents566.cjs +1 -1
- package/dist/kongponents567.cjs +1 -1
- package/dist/kongponents568.cjs +1 -1
- package/dist/kongponents569.cjs +1 -1
- package/dist/kongponents570.cjs +1 -1
- package/dist/kongponents571.cjs +1 -1
- package/dist/kongponents572.cjs +1 -1
- package/dist/kongponents573.cjs +1 -1
- package/dist/kongponents574.cjs +1 -1
- package/dist/kongponents575.cjs +1 -1
- package/dist/kongponents576.cjs +1 -1
- package/dist/kongponents577.cjs +1 -1
- package/dist/kongponents578.cjs +1 -1
- package/dist/kongponents579.cjs +1 -1
- package/dist/kongponents580.cjs +1 -1
- package/dist/kongponents581.cjs +1 -1
- package/dist/kongponents582.cjs +1 -1
- package/dist/kongponents583.cjs +1 -1
- package/dist/kongponents584.cjs +1 -1
- package/dist/kongponents585.cjs +1 -1
- package/dist/kongponents586.cjs +1 -1
- package/dist/kongponents587.cjs +1 -1
- package/dist/kongponents592.cjs +1 -1
- package/dist/kongponents594.cjs +1 -1
- package/dist/kongponents595.cjs +1 -1
- package/dist/kongponents597.cjs +1 -1
- package/dist/kongponents598.cjs +1 -1
- package/dist/kongponents599.cjs +1 -1
- package/dist/kongponents600.cjs +1 -1
- package/dist/kongponents601.cjs +1 -1
- package/dist/kongponents602.cjs +1 -1
- package/dist/kongponents604.cjs +1 -1
- package/dist/kongponents605.cjs +1 -1
- package/dist/kongponents72.cjs +1 -1
- package/dist/kongponents83.cjs +1 -1
- package/dist/kongponents87.cjs +1 -1
- package/dist/kongponents89.cjs +1 -1
- package/dist/kongponents94.cjs +1 -1
- package/dist/kongponents96.cjs +1 -1
- package/dist/kongponents99.cjs +1 -1
- package/dist/types/types/tree-list.d.ts +1 -1
- package/package.json +33 -42
- package/dist/kongponents.es231.js +0 -7
- package/dist/kongponents.es244.js +0 -8
- package/dist/kongponents.es246.js +0 -25
- package/dist/kongponents.es250.js +0 -136
- package/dist/kongponents.es251.js +0 -4
- package/dist/kongponents.es363.js +0 -7
- package/dist/kongponents231.cjs +0 -1
- package/dist/kongponents244.cjs +0 -1
- package/dist/kongponents246.cjs +0 -1
- package/dist/kongponents250.cjs +0 -1
- package/dist/kongponents251.cjs +0 -1
- package/dist/kongponents363.cjs +0 -1
- /package/dist/{kongponents.es276.js → kongponents.es249.js} +0 -0
- /package/dist/{kongponents276.cjs → kongponents249.cjs} +0 -0
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var i;
|
|
3
|
-
function s() {
|
|
4
|
-
return i ? a.exports : (i = 1, (function(o, r) {
|
|
5
|
-
Object.defineProperty(r, "__esModule", {
|
|
6
|
-
value: !0
|
|
7
|
-
}), r.default = v;
|
|
8
|
-
function v(e) {
|
|
9
|
-
return function(u) {
|
|
10
|
-
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = u.match(e.matchPattern);
|
|
11
|
-
if (!c) return null;
|
|
12
|
-
var d = c[0], n = u.match(e.parsePattern);
|
|
13
|
-
if (!n) return null;
|
|
14
|
-
var t = e.valueCallback ? e.valueCallback(n[0]) : n[0];
|
|
15
|
-
t = l.valueCallback ? l.valueCallback(t) : t;
|
|
16
|
-
var f = u.slice(d.length);
|
|
17
|
-
return {
|
|
18
|
-
value: t,
|
|
19
|
-
rest: f
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
o.exports = r.default;
|
|
24
|
-
})(a, a.exports), a.exports);
|
|
25
|
-
}
|
|
1
|
+
var a = { exports: {} };
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
a as __module
|
|
28
4
|
};
|
|
@@ -1,10 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { __module as u } from "./kongponents.es608.js";
|
|
2
|
+
var o;
|
|
3
|
+
function b() {
|
|
4
|
+
return o ? u.exports : (o = 1, (function(s, i) {
|
|
5
|
+
Object.defineProperty(i, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), i.default = v;
|
|
8
|
+
function v(t) {
|
|
9
|
+
return function(r) {
|
|
10
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = e.width, P = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], c = r.match(P);
|
|
11
|
+
if (!c)
|
|
12
|
+
return null;
|
|
13
|
+
var l = c[0], d = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], h = Array.isArray(d) ? p(d, function(f) {
|
|
14
|
+
return f.test(l);
|
|
15
|
+
}) : m(d, function(f) {
|
|
16
|
+
return f.test(l);
|
|
17
|
+
}), n;
|
|
18
|
+
n = t.valueCallback ? t.valueCallback(h) : h, n = e.valueCallback ? e.valueCallback(n) : n;
|
|
19
|
+
var M = r.slice(l.length);
|
|
20
|
+
return {
|
|
21
|
+
value: n,
|
|
22
|
+
rest: M
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function m(t, r) {
|
|
27
|
+
for (var e in t)
|
|
28
|
+
if (t.hasOwnProperty(e) && r(t[e]))
|
|
29
|
+
return e;
|
|
30
|
+
}
|
|
31
|
+
function p(t, r) {
|
|
32
|
+
for (var e = 0; e < t.length; e++)
|
|
33
|
+
if (r(t[e]))
|
|
34
|
+
return e;
|
|
35
|
+
}
|
|
36
|
+
s.exports = i.default;
|
|
37
|
+
})(u, u.exports), u.exports);
|
|
7
38
|
}
|
|
8
39
|
export {
|
|
9
|
-
|
|
40
|
+
b as __require
|
|
10
41
|
};
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import { __module as a } from "./kongponents.es609.js";
|
|
2
|
+
var i;
|
|
3
|
+
function s() {
|
|
4
|
+
return i ? a.exports : (i = 1, (function(o, r) {
|
|
5
|
+
Object.defineProperty(r, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), r.default = v;
|
|
8
|
+
function v(e) {
|
|
9
|
+
return function(u) {
|
|
10
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = u.match(e.matchPattern);
|
|
11
|
+
if (!c) return null;
|
|
12
|
+
var d = c[0], n = u.match(e.parsePattern);
|
|
13
|
+
if (!n) return null;
|
|
14
|
+
var t = e.valueCallback ? e.valueCallback(n[0]) : n[0];
|
|
15
|
+
t = l.valueCallback ? l.valueCallback(t) : t;
|
|
16
|
+
var f = u.slice(d.length);
|
|
17
|
+
return {
|
|
18
|
+
value: t,
|
|
19
|
+
rest: f
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
o.exports = r.default;
|
|
24
|
+
})(a, a.exports), a.exports);
|
|
25
|
+
}
|
|
3
26
|
export {
|
|
4
|
-
|
|
27
|
+
s as __require
|
|
5
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import p from "./kongponents.
|
|
2
|
-
import w from "./kongponents.
|
|
3
|
-
import d from "./kongponents.
|
|
1
|
+
import p from "./kongponents.es566.js";
|
|
2
|
+
import w from "./kongponents.es567.js";
|
|
3
|
+
import d from "./kongponents.es580.js";
|
|
4
4
|
import g from "./kongponents.es601.js";
|
|
5
5
|
function u(i, v) {
|
|
6
6
|
var m = p(i), r = w(i), t = m.visualViewport, o = r.clientWidth, e = r.clientHeight, f = 0, a = 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import m from "./kongponents.
|
|
2
|
-
import a from "./kongponents.
|
|
3
|
-
import g from "./kongponents.
|
|
1
|
+
import m from "./kongponents.es567.js";
|
|
2
|
+
import a from "./kongponents.es568.js";
|
|
3
|
+
import g from "./kongponents.es580.js";
|
|
4
4
|
import f from "./kongponents.es602.js";
|
|
5
|
-
import { max as i } from "./kongponents.
|
|
5
|
+
import { max as i } from "./kongponents.es570.js";
|
|
6
6
|
function w(r) {
|
|
7
7
|
var l, o = m(r), e = f(r), t = (l = r.ownerDocument) == null ? void 0 : l.body, c = i(o.scrollWidth, o.clientWidth, t ? t.scrollWidth : 0, t ? t.clientWidth : 0), h = i(o.scrollHeight, o.clientHeight, t ? t.scrollHeight : 0, t ? t.clientHeight : 0), n = -e.scrollLeft + g(r), d = -e.scrollTop;
|
|
8
8
|
return a(t || o).direction === "rtl" && (n += i(o.clientWidth, t ? t.clientWidth : 0) - c), {
|
package/dist/kongponents.es72.js
CHANGED
|
@@ -2,13 +2,13 @@ import { defineComponent as g, computed as w, createElementBlock as n, openBlock
|
|
|
2
2
|
import { AlertAppearances as o } from "./kongponents.es4.js";
|
|
3
3
|
import "./kongponents.es5.js";
|
|
4
4
|
import "./kongponents.es10.js";
|
|
5
|
-
import z from "./kongponents.
|
|
6
|
-
import K from "./kongponents.
|
|
7
|
-
import A from "./kongponents.
|
|
8
|
-
import v from "./kongponents.
|
|
9
|
-
import b from "./kongponents.
|
|
10
|
-
import E from "./kongponents.
|
|
11
|
-
import { KUI_ICON_SIZE_40 as y } from "./kongponents.
|
|
5
|
+
import z from "./kongponents.es172.js";
|
|
6
|
+
import K from "./kongponents.es173.js";
|
|
7
|
+
import A from "./kongponents.es174.js";
|
|
8
|
+
import v from "./kongponents.es175.js";
|
|
9
|
+
import b from "./kongponents.es176.js";
|
|
10
|
+
import E from "./kongponents.es177.js";
|
|
11
|
+
import { KUI_ICON_SIZE_40 as y } from "./kongponents.es178.js";
|
|
12
12
|
const N = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "alert-icon-container"
|
package/dist/kongponents.es83.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Se, useSlots as be, useId as pe, ref as n, computed as r, watch as v, onMounted as ke, createElementBlock as m, openBlock as s, createBlock as I, createCommentVNode as M, resolveDynamicComponent as Pe, withCtx as u, createTextVNode as b, toDisplayString as p, renderSlot as c, createVNode as A, createSlots as x, unref as D, normalizeClass as ze, Fragment as Ie, renderList as Ae } from "vue";
|
|
2
|
-
import Ce from "./kongponents.
|
|
2
|
+
import Ce from "./kongponents.es182.js";
|
|
3
3
|
import $e from "./kongponents.es21.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import Q from "./kongponents.es44.js";
|
package/dist/kongponents.es87.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as z, useSlots as $, useAttrs as K, useId as N, computed as l, watch as D, createElementBlock as p, openBlock as i, normalizeClass as f, createElementVNode as o, createBlock as m, createCommentVNode as n, mergeProps as v, unref as s, createSlots as E, withCtx as g, renderSlot as h, createTextVNode as L, toDisplayString as x } from "vue";
|
|
2
2
|
import P from "./kongponents.es48.js";
|
|
3
|
-
import T from "./kongponents.
|
|
4
|
-
import q from "./kongponents.
|
|
5
|
-
import { KUI_ICON_SIZE_40 as C } from "./kongponents.
|
|
3
|
+
import T from "./kongponents.es198.js";
|
|
4
|
+
import q from "./kongponents.es199.js";
|
|
5
|
+
import { KUI_ICON_SIZE_40 as C } from "./kongponents.es178.js";
|
|
6
6
|
const O = ["id", "aria-checked"], U = { class: "checkbox-label-wrapper" }, Z = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "checkbox-description"
|
package/dist/kongponents.es89.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent as xe, useCssVars as Te, computed as d, watch as E, useSlots as Ee, ref as m, useTemplateRef as q, nextTick as ne, onMounted as Be, onBeforeUnmount as Se, createElementBlock as b, openBlock as i, normalizeClass as w, createCommentVNode as v, createElementVNode as k, createVNode as r, withCtx as c, Transition as H, createBlock as L, unref as a, Fragment as $, createTextVNode as F, toDisplayString as M, withDirectives as ae, renderSlot as Ie, resolveDynamicComponent as ie, normalizeProps as Re, mergeProps as ue, vShow as re } from "vue";
|
|
2
|
-
import { Virtualizer as ce } from "./kongponents.
|
|
2
|
+
import { Virtualizer as ce } from "./kongponents.es186.js";
|
|
3
3
|
import Ae from "./kongponents.es46.js";
|
|
4
4
|
import { copyTextToClipboard as Pe } from "./kongponents.es165.js";
|
|
5
|
-
import { ShortcutManager as qe } from "./kongponents.
|
|
6
|
-
import { LINE_NUMBER_EXPRESSION_REGEX as He, buildLineOffsets as $e, highlightMatchingChars as Fe, escapeHTMLIfNeeded as se, normalizeHighlightedLines as Ve, getMatchingLineNumbers as De } from "./kongponents.
|
|
7
|
-
import Oe from "./kongponents.
|
|
8
|
-
import Ue from "./kongponents.
|
|
9
|
-
import je from "./kongponents.
|
|
10
|
-
import ze from "./kongponents.
|
|
11
|
-
import Ke from "./kongponents.
|
|
12
|
-
import Xe from "./kongponents.
|
|
13
|
-
import Ge from "./kongponents.
|
|
14
|
-
import Qe from "./kongponents.
|
|
15
|
-
import { KUI_COLOR_TEXT_NEUTRAL_STRONG as We, KUI_COLOR_TEXT_INVERSE as Ye, KUI_ICON_SIZE_30 as Ze, KUI_LINE_HEIGHT_30 as Je } from "./kongponents.
|
|
5
|
+
import { ShortcutManager as qe } from "./kongponents.es187.js";
|
|
6
|
+
import { LINE_NUMBER_EXPRESSION_REGEX as He, buildLineOffsets as $e, highlightMatchingChars as Fe, escapeHTMLIfNeeded as se, normalizeHighlightedLines as Ve, getMatchingLineNumbers as De } from "./kongponents.es188.js";
|
|
7
|
+
import Oe from "./kongponents.es189.js";
|
|
8
|
+
import Ue from "./kongponents.es190.js";
|
|
9
|
+
import je from "./kongponents.es173.js";
|
|
10
|
+
import ze from "./kongponents.es191.js";
|
|
11
|
+
import Ke from "./kongponents.es192.js";
|
|
12
|
+
import Xe from "./kongponents.es193.js";
|
|
13
|
+
import Ge from "./kongponents.es194.js";
|
|
14
|
+
import Qe from "./kongponents.es195.js";
|
|
15
|
+
import { KUI_COLOR_TEXT_NEUTRAL_STRONG as We, KUI_COLOR_TEXT_INVERSE as Ye, KUI_ICON_SIZE_30 as Ze, KUI_LINE_HEIGHT_30 as Je } from "./kongponents.es178.js";
|
|
16
16
|
import B from "./kongponents.es39.js";
|
|
17
|
-
import { IS_MAYBE_MAC as _e } from "./kongponents.
|
|
17
|
+
import { IS_MAYBE_MAC as _e } from "./kongponents.es196.js";
|
|
18
18
|
import { normalizeSize as et } from "./kongponents.es171.js";
|
|
19
|
-
import tt from "./kongponents.
|
|
19
|
+
import tt from "./kongponents.es197.js";
|
|
20
20
|
const ot = ["id"], lt = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "code-block-actions"
|
package/dist/kongponents.es94.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as L, useSlots as N, useId as T, ref as f, computed as n, watch as w, createElementBlock as g, openBlock as r, createElementVNode as d, createCommentVNode as v, createVNode as h, normalizeClass as b, createBlock as B, resolveDynamicComponent as D, withCtx as C, renderSlot as a, createTextVNode as z, toDisplayString as V, withModifiers as E, unref as c, Transition as A, withDirectives as K, vShow as x } from "vue";
|
|
2
|
-
import M from "./kongponents.
|
|
3
|
-
import { KUI_ICON_SIZE_40 as O } from "./kongponents.
|
|
2
|
+
import M from "./kongponents.es185.js";
|
|
3
|
+
import { KUI_ICON_SIZE_40 as O } from "./kongponents.es178.js";
|
|
4
4
|
const U = { class: "k-collapse" }, Z = { class: "collapse-trigger" }, j = ["aria-controls", "aria-expanded", "aria-label"], q = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "collapse-trigger-label",
|
package/dist/kongponents.es96.js
CHANGED
|
@@ -5,12 +5,12 @@ import se from "./kongponents.es56.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "./kongponents.es5.js";
|
|
7
7
|
import { DateTimePickerModes as oe, ModeArrayCustom as me, ModeArrayRelative as ce, ModeDateOnly as ue } from "./kongponents.es10.js";
|
|
8
|
-
import fe from "./kongponents.
|
|
9
|
-
import { KUI_SPACE_40 as ve, KUI_ICON_SIZE_40 as ye, KUI_COLOR_TEXT_NEUTRAL as ge } from "./kongponents.
|
|
8
|
+
import fe from "./kongponents.es232.js";
|
|
9
|
+
import { KUI_SPACE_40 as ve, KUI_ICON_SIZE_40 as ye, KUI_COLOR_TEXT_NEUTRAL as ge } from "./kongponents.es178.js";
|
|
10
10
|
import { normalizeSize as be } from "./kongponents.es171.js";
|
|
11
|
-
import pe from "./kongponents.
|
|
12
|
-
import B from "./kongponents.
|
|
13
|
-
import C from "./kongponents.
|
|
11
|
+
import pe from "./kongponents.es233.js";
|
|
12
|
+
import B from "./kongponents.es234.js";
|
|
13
|
+
import C from "./kongponents.es235.js";
|
|
14
14
|
const ke = ["tabindex"], Re = ["innerHTML"], Te = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "range-display"
|
package/dist/kongponents.es99.js
CHANGED
|
@@ -5,8 +5,8 @@ import j from "./kongponents.es24.js";
|
|
|
5
5
|
import G from "./kongponents.es53.js";
|
|
6
6
|
import H from "./kongponents.es20.js";
|
|
7
7
|
import J from "./kongponents.es43.js";
|
|
8
|
-
import Q from "./kongponents.
|
|
9
|
-
import { KUI_SPACE_20 as W } from "./kongponents.
|
|
8
|
+
import Q from "./kongponents.es203.js";
|
|
9
|
+
import { KUI_SPACE_20 as W } from "./kongponents.es178.js";
|
|
10
10
|
const X = {
|
|
11
11
|
class: "dropdown-list",
|
|
12
12
|
"data-testid": "dropdown-list"
|
package/dist/kongponents105.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./kongponents213.cjs"),B=require("./kongponents200.cjs"),E=require("./kongponents195.cjs"),g=require("./kongponents177.cjs"),r=require("./kongponents178.cjs"),S=require("./kongponents33.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const a=require("./kongponents11.cjs"),V=require("./kongponents34.cjs"),v={class:"empty-state-content"},C=["aria-hidden"],p={key:0,class:"empty-state-title"},I={key:1,class:"empty-state-message"},h={key:2,class:"empty-state-action"},$={key:0,class:"empty-state-features-container"},N={key:0,"aria-hidden":"true",class:"feature-icon"},T={class:"card-header"},b=["title"],q={key:1,class:"empty-state-footer-container"},D=e.defineComponent({__name:"KEmptyState",props:{title:{default:""},message:{default:""},actionButtonVisible:{type:Boolean,default:!0},actionButtonText:{default:""},actionButtonDisabled:{type:Boolean},iconVariant:{default:()=>a.EmptyStateIconVariants.Default},iconBackground:{type:Boolean,default:!1},features:{default:()=>[]}},emits:["click-action"],setup(o,{emit:l}){const c=l,u=e.useSlots(),d=e.useId(),m=e.computed(()=>{switch(o.iconVariant){case a.EmptyStateIconVariants.Default:return i.default;case a.EmptyStateIconVariants.Error:return g.default;case a.EmptyStateIconVariants.Search:return E.default;case a.EmptyStateIconVariants.Kong:return B.default;default:return i.default}}),k=e.computed(()=>{if(o.iconBackground)return r.KUI_COLOR_TEXT_DECORATIVE_AQUA;switch(o.iconVariant){case a.EmptyStateIconVariants.Error:return r.KUI_COLOR_TEXT_WARNING;default:return r.KUI_COLOR_TEXT_NEUTRAL}}),y=e.computed(()=>{if(u.image)return"empty-state-image";const t="empty-state-icon";return o.iconBackground?`${t} has-background`:t});return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-empty-state",[o.iconVariant]])},[e.createElementVNode("div",v,[e.createElementVNode("div",{"aria-hidden":t.$slots.image?void 0:"true",class:e.normalizeClass(y.value)},[e.renderSlot(t.$slots,"image",{},()=>[e.renderSlot(t.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{color:k.value,decorative:"",size:e.unref(r.KUI_ICON_SIZE_60)},null,8,["color","size"]))],!0)],!0)],10,C),o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.message||t.$slots.default?(e.openBlock(),e.createElementBlock("div",I,[e.renderSlot(t.$slots,"default",{},()=>[e.createElementVNode("p",null,e.toDisplayString(o.message),1)],!0)])):e.createCommentVNode("",!0),o.actionButtonVisible&&o.actionButtonText||t.$slots.action?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(t.$slots,"action",{},()=>[e.createVNode(S.default,{disabled:o.actionButtonDisabled,type:"button",onClick:s[0]||(s[0]=n=>c("click-action"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action-button-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(o.actionButtonText),1)]),_:3},8,["disabled"])],!0)])):e.createCommentVNode("",!0)]),o.features.length?(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.features,(n,f)=>(e.openBlock(),e.createBlock(V.default,{key:`feature-${e.unref(d)}-${n.key||f}`,class:"empty-state-feature-card"},{title:e.withCtx(()=>[n.key&&t.$slots[`feature-icon-${n.key}`]?(e.openBlock(),e.createElementBlock("div",N,[e.renderSlot(t.$slots,`feature-icon-${n.key}`,{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,e.toDisplayString(n.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{title:n.description},e.toDisplayString(n.description),9,b)]),_:2},1024))),128))])):e.createCommentVNode("",!0),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}});exports.default=D;
|
package/dist/kongponents107.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),U=require("./kongponents48.cjs"),j=require("./kongponents46.cjs"),q=require("./kongponents33.cjs"),O=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),U=require("./kongponents48.cjs"),j=require("./kongponents46.cjs"),q=require("./kongponents33.cjs"),O=require("./kongponents182.cjs"),G=require("./kongponents183.cjs"),H=require("./kongponents184.cjs"),J=["role"],Q={class:"file-upload-input-wrapper"},X={key:1,class:"file-upload-dropzone-wrapper"},Y=["aria-disabled","aria-labelledby","tabindex"],Z={"aria-hidden":"true",class:"dropzone-icon"},_={key:0},ee={key:1},le=e.defineComponent({inheritAttrs:!1,__name:"KFileUpload",props:{labelAttributes:{default:()=>({})},label:{default:""},help:{},buttonText:{default:"Select file"},placeholder:{default:""},accept:{},maxFileSize:{default:null},error:{type:Boolean},errorMessage:{default:""},disabled:{type:Boolean},appearance:{default:"input"}},emits:["file-added","file-removed","error"],setup(l,{emit:D}){const s=D,F=e.useSlots(),n=e.useAttrs(),{stripRequiredLabel:M}=O.default(),V=e.useId(),y=e.computed(()=>n.id?String(n.id):V),A=e.computed(()=>{const t={...n};return delete t.id,t}),B=e.useTemplateRef("input"),I=e.computed(()=>{var t;return!!((t=l.labelAttributes)!=null&&t.info||F["label-tooltip"])}),T=e.computed(()=>M(l.label,x.value)),x=e.computed(()=>(n==null?void 0:n.required)!==void 0&&String(n==null?void 0:n.required)!=="false"),C=e.computed(()=>u.value?"Drag & drop a file":"No file selected"),v=e.ref(!1),E=e.computed(()=>{if(v.value){let t="bytes",a=d.value;return d.value>=1024&&d.value<1024*1024&&(a=d.value/1024,t="KB"),d.value>=1024*1024&&(a=d.value/(1024*1024),t="MB"),`File size must be less than ${a}${t}.`}return""}),d=e.computed(()=>l.maxFileSize||l.maxFileSize===0?l.maxFileSize:5*1024*1024),f=e.computed(()=>b.value||v.value||l.error),c=e.ref(0),i=e.ref(""),m=e.ref(null),K=e.useTemplateRef("dropzone"),L=t=>{var h,g,k,o,z,$;b.value=!1;const a=t.target.files,r=(h=a[0])==null?void 0:h.size;Number(r)>d.value&&(c.value++,v.value=!0,s("error",a));const S=(k=(g=B.value)==null?void 0:g.$el)==null?void 0:k.querySelector("input");a.length?(m.value=a,i.value=((o=a[0])==null?void 0:o.name)||"",s("file-added",a)):(S.files=m.value,i.value=(($=(z=m.value)==null?void 0:z[0])==null?void 0:$.name)||"")},w=()=>{var a,r;if(i.value){P();return}const t=(r=(a=B.value)==null?void 0:a.$el)==null?void 0:r.querySelector("input");t&&t.click()},P=()=>{m.value=null,i.value="",c.value++,v.value=!1,s("file-removed")},p=e.ref(!1),b=e.ref(!1),R=t=>t?!l.accept||!Array.isArray(l.accept)||!l.accept.length?!0:l.accept.some(a=>{if(a.startsWith("."))return t.name.toLowerCase().endsWith(a.toLowerCase());if(a.endsWith("/*")){const r=a.slice(0,-2);return t.type.startsWith(r)}else return t.type===a}):!1,N=e.computed(()=>b.value?`Unsupported file type. Please upload one of the following: ${l.accept.join(", ")}`:""),W=t=>{var a,r,S,h,g,k;if(!l.disabled){u.value?(a=K.value)==null||a.focus():(S=(r=B.value)==null?void 0:r.input)==null||S.focus(),p.value=!1;const o=(h=t.dataTransfer)==null?void 0:h.files;if(o&&o.length){const z=(g=o[0])==null?void 0:g.size;if(Number(z)>d.value){c.value++,v.value=!0,s("error",o);return}R(o[0])?(b.value=!1,m.value=o,i.value=((k=o[0])==null?void 0:k.name)||"",s("file-added",o)):(b.value=!0,s("error",o))}}},u=e.computed(()=>l.appearance==="dropzone");return e.watch(()=>n.id,()=>{c.value++},{immediate:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"k-file-upload"},A.value,{role:l.disabled?void 0:"region",onDragleave:a[0]||(a[0]=e.withModifiers(r=>p.value=!1,["prevent"])),onDragover:a[1]||(a[1]=e.withModifiers(r=>p.value=!0,["prevent"])),onDrop:e.withModifiers(W,["prevent"])}),[l.label?(e.openBlock(),e.createBlock(U.default,e.mergeProps({key:0},l.labelAttributes,{id:u.value?`file-upload-dropzone-label-${y.value}`:void 0,for:y.value,required:x.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.value)+" ",1)]),_:2},[I.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["id","for","required"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",Q,[u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:c.value,class:e.normalizeClass(["file-upload-input-text",{placeholder:!i.value,"has-icon":t.$slots.icon,disabled:l.disabled}])},e.toDisplayString(i.value?i.value:l.placeholder||C.value),3)),(e.openBlock(),e.createBlock(j.default,{id:y.value,key:c.value,ref:"input",accept:l.accept,class:e.normalizeClass(["upload-input",{dragging:p.value&&!l.disabled}]),disabled:l.disabled,error:f.value,"error-message":l.errorMessage||N.value||E.value,help:l.help,hidden:u.value,placeholder:l.placeholder||C.value,title:"",type:"file",onChange:L},e.createSlots({_:2},[t.$slots.icon&&!u.value?{name:"before",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0,u.value?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(q.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,size:"small",onClick:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"])]),key:"1"}]),1032,["id","accept","class","disabled","error","error-message","help","hidden","placeholder"]))],512),[[e.vShow,!u.value]]),u.value?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",{ref:"dropzone","aria-disabled":l.disabled?"true":void 0,"aria-labelledby":l.label?`file-upload-dropzone-label-${y.value}`:void 0,class:e.normalizeClass(["dropzone",{dragging:p.value&&!l.disabled,disabled:l.disabled,error:f.value,"has-file":!!i.value}]),"data-testid":"file-upload-dropzone",role:"button",tabindex:l.disabled?-1:0,onClick:w},[e.createElementVNode("div",Z,[e.renderSlot(t.$slots,"icon",{},()=>[i.value?(e.openBlock(),e.createBlock(e.unref(G.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(H.default),{key:1,decorative:""}))],!0)]),i.value?(e.openBlock(),e.createElementBlock("span",_,e.toDisplayString(i.value),1)):(e.openBlock(),e.createElementBlock("span",ee,e.toDisplayString(l.placeholder||C.value),1)),e.createVNode(q.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,onClick:e.withModifiers(w,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"]),e.renderSlot(t.$slots,"dropzone-footer",{},void 0,!0)],10,Y),f.value||l.help?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["help-text",{error:f.value}])},e.toDisplayString(f.value&&(l.errorMessage||N.value||E.value)||l.help),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],16,J))}});exports.default=le;
|
package/dist/kongponents109.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),O=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),O=require("./kongponents182.cjs"),R=require("./kongponents48.cjs"),V=require("./kongponents178.cjs"),D=require("./kongponents226.cjs"),U=require("./kongponents227.cjs"),z=["id","aria-describedby","aria-invalid","type","value"],H=["aria-label"],J=["id"],Z=e.defineComponent({inheritAttrs:!1,__name:"KInput",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},help:{default:""},error:{type:Boolean},errorMessage:{default:""},characterLimit:{default:null},hasError:{type:Boolean},type:{default:"text"},showPasswordMaskToggle:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(l,{expose:B,emit:x}){e.useCssVars(t=>({v468789b2:y.value,v3da179ce:S.value})),e.watch(()=>l.hasError,t=>{t&&console.warn("KInput: `hasError` prop is deprecated. Please use `error` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kinput")},{immediate:!0}),e.watch(()=>l.labelAttributes.help,t=>{t&&console.warn("KInput: `help` property of `labelAttributes` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel")});const f=x,o=e.useSlots(),I=e.useTemplateRef("inputElement"),n=e.ref(""),d=e.ref(!1),m=e.ref(0),{stripRequiredLabel:M}=O.default(),a=e.useAttrs(),p=e.computed(()=>(a==null?void 0:a.required)!==void 0&&String(a==null?void 0:a.required)!=="false"),T=e.useId(),k=e.computed(()=>a.id?String(a.id):T),b=e.useId(),C=e.computed(()=>M(l.label,p.value)),L=e.computed(()=>{var t;return!!((t=l.labelAttributes)!=null&&t.info||o["label-tooltip"])}),q=e.computed({get(){return l.modelValue},set(t){h({target:{value:t}})}}),N=e.computed(()=>{const t={...a};return delete t.class,delete t.input,delete t.onInput,t}),u=e.computed(()=>{var w,E;const t=((w=n.value)==null?void 0:w.toString().length)||0,r=((E=l.modelValue)==null?void 0:E.toString().length)||0;let i=t;return!d.value&&r&&(i=r),!!l.characterLimit&&i>l.characterLimit}),$=e.computed(()=>{var t,r;return u.value?d.value?`${(t=n.value)==null?void 0:t.toString().length} / ${l.characterLimit}`:`${(r=l.modelValue)==null?void 0:r.toString().length} / ${l.characterLimit}`:""}),P=e.computed(()=>!u.value&&!l.error&&!l.hasError&&!!(l.help||o.help)),c=e.computed(()=>u.value?$.value:(l.error||l.hasError)&&l.errorMessage?l.errorMessage:l.help);e.watch(u,(t,r)=>{t!==r&&(f("char-limit-exceeded",{value:n.value,length:n.value.length,characterLimit:l.characterLimit,limitExceeded:t}),m.value+=1)}),e.watch(q,(t,r)=>{t!==r&&h({target:{value:t}})});const h=t=>{var i;const r=JSON.parse(JSON.stringify((i=t==null?void 0:t.target)==null?void 0:i.value));A(r)},A=t=>{n.value=t,d.value=!0,f("input",t),f("update:modelValue",t)},K=()=>n.value||d.value?n.value:l.modelValue;e.watch(()=>l.error,(t,r)=>{t!==r&&(m.value+=1)});const v=e.ref(null),g=e.ref(null),y=e.ref(V.KUI_ICON_SIZE_40),S=e.ref(V.KUI_ICON_SIZE_40),s=e.ref(!1),W=e.computed(()=>l.type==="password"&&s.value?"text":l.type);return e.onMounted(async()=>{var t,r;await e.nextTick(),(t=v.value)!=null&&t.offsetWidth&&(y.value=v.value.offsetWidth+"px"),(r=g.value)!=null&&r.offsetWidth&&(S.value=g.value.offsetWidth+"px")}),B({input:I}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-input",[e.unref(a).class,{"input-error":u.value||l.error||l.hasError}]])},[l.label?(e.openBlock(),e.createBlock(R.default,e.mergeProps({key:0,for:k.value},l.labelAttributes,{required:p.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.value)+" ",1)]),_:2},[L.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-element-wrapper",{"has-before-content":o.before,"has-after-content":o.after||l.type==="password"&&l.showPasswordMaskToggle}])},[o.before?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"beforeSlotElement",ref:v,class:"before-content-wrapper"},[e.renderSlot(t.$slots,"before",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:k.value,ref:"inputElement","aria-describedby":c.value||o.help?e.unref(b):void 0,"aria-invalid":l.error||l.hasError||u.value?"true":void 0,class:"input",type:W.value},N.value,{value:K(),onInput:h}),null,16,z),o.after||l.type==="password"&&l.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"afterSlotElement",ref:g,class:"after-content-wrapper"},[l.type==="password"&&l.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":`${s.value?"Hide":"Show"} value`,class:"mask-value-toggle-button",type:"button",onClick:r[0]||(r[0]=e.withModifiers(i=>s.value=!s.value,["stop"])),onMousedown:r[1]||(r[1]=e.withModifiers(()=>{},["prevent"])),onMouseup:r[2]||(r[2]=e.withModifiers(()=>{},["prevent"]))},[s.value?(e.openBlock(),e.createBlock(e.unref(D.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(U.default),{key:1,decorative:""}))],40,H)):e.renderSlot(t.$slots,"after",{key:1},void 0,!0)],512)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[c.value||o.help?(e.openBlock(),e.createElementBlock("p",{id:e.unref(b),key:String(m.value),class:"help-text"},[P.value?e.renderSlot(t.$slots,"help",{key:0},()=>[e.createTextVNode(e.toDisplayString(c.value),1)],!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.value),1)],64))],8,J)):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=Z;
|
package/dist/kongponents113.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents24.cjs");;/* empty css */const p=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents24.cjs");;/* empty css */const p=require("./kongponents175.cjs"),m=require("./kongponents178.cjs"),b=e.defineComponent({__name:"KLabel",props:{info:{default:""},required:{type:Boolean},tooltipAttributes:{default:()=>({})},help:{default:""}},setup(o){e.watch(()=>o.help,t=>{t&&console.warn("KLabel: `help` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel")},{immediate:!0});const n=e.useSlots(),a=e.computed(()=>!!(o.help||o.info||n.tooltip)),l=e.useId(),u=e.useTemplateRef("label"),s=["a[href]","audio[controls]","button","details","embed","iframe","img[usemap]",'input:not([type="hidden"])',"label","select","textarea","video[controls]","area[href]"].join(", ");function c(t){return t.closest(s)}function d(t){const r=t.target,i=c(r);i&&i!==u.value||t.preventDefault()}return(t,r)=>(e.openBlock(),e.createElementBlock("label",{ref:"label",class:e.normalizeClass(["k-label",{required:o.required}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),a.value?(e.openBlock(),e.createBlock(f.default,e.mergeProps({key:0},o.tooltipAttributes,{class:"label-tooltip","tooltip-id":e.unref(l),onClick:d}),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.info||o.help),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(p.default),{"aria-describedby":e.unref(l),class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(m.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["aria-describedby","color"])]),_:3},16,["tooltip-id"])):e.createCommentVNode("",!0)],2))}});exports.default=b;
|
package/dist/kongponents115.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("./kongponents238.cjs"),T=require("./kongponents208.cjs"),C=require("./kongponents33.cjs"),$=require("./kongponents173.cjs"),N=require("./kongponents178.cjs"),h=require("./kongponents171.cjs"),A=["aria-label"],O={key:0,class:"modal-header"},D={key:0,class:"modal-title"},z={class:"modal-footer"},L={class:"footer-actions"},q=e.defineComponent({inheritAttrs:!1,__name:"KModal",props:{visible:{type:Boolean},title:{default:""},actionButtonText:{default:"Submit"},actionButtonAppearance:{default:"primary"},actionButtonDisabled:{type:Boolean},hideCancelButton:{type:Boolean},cancelButtonText:{default:"Cancel"},cancelButtonAppearance:{default:"tertiary"},cancelButtonDisabled:{type:Boolean},tabbableOptions:{default:()=>({})},maxWidth:{default:"500px"},maxHeight:{default:"calc(100vh - 200px)"},closeOnBackdropClick:{type:Boolean},closeOnEscape:{type:Boolean,default:!0},hideCloseIcon:{type:Boolean},fullScreen:{type:Boolean},inputAutofocus:{type:Boolean},zIndex:{default:1100}},emits:["proceed","cancel"],setup(o,{emit:p}){e.useCssVars(t=>({v5582ddaa:t.zIndex,v1ae56e5d:V.value,ee977890:g.value}));const E=p,i=e.useSlots(),m=e.useAttrs(),S=T.useTextSelection(),f=`k-modal-${e.useId()}-overflow-hidden`,c=e.ref(null),v=e.ref(null),V=e.computed(()=>o.fullScreen&&!i.content?"95%":h.normalizeSize(o.maxWidth)),g=e.computed(()=>o.fullScreen&&!i.content?"95vh":h.normalizeSize(o.maxHeight)),w=e.computed(()=>{const t=Object.assign({},m);return delete t.class,t}),y=e.computed(()=>!!o.title||!!i.title||!o.hideCloseIcon),b=t=>{o.visible&&o.closeOnEscape&&t.key==="Escape"&&B(!0)},B=(t=!1,a)=>{var l,n;(t||(n=(l=a==null?void 0:a.target)==null?void 0:l.classList)!=null&&n.contains("modal-backdrop")&&o.closeOnBackdropClick&&!S.text.value)&&E("cancel")},d=async t=>{var a,l;t?(await e.nextTick(),await new Promise(n=>setTimeout(n,0)),(a=c.value)==null||a.activate()):(l=c.value)==null||l.deactivate()},r=t=>{typeof document<"u"&&(t?document==null||document.addEventListener("keydown",b):document==null||document.removeEventListener("keydown",b))},k=()=>{var a,l,n;const t=(n=(l=(a=c.value)==null?void 0:a.$el)==null?void 0:l.querySelector(".modal-content"))==null?void 0:n.querySelectorAll("input");t!=null&&t.length&&Array.from(t).every(u=>!u.disabled&&!u.readOnly?(u.focus(),!1):!0)};e.watch(()=>o.visible,async t=>{var a,l;t?(await d(!0),o.inputAutofocus&&k(),r(!0)):(await d(!1),r(!1)),typeof document<"u"&&((l=(a=document==null?void 0:document.body)==null?void 0:a.classList)==null||l.toggle(f,t))},{immediate:!0}),e.watch(()=>o.inputAutofocus,async t=>{t&&(await e.nextTick(),k())});const s=e.ref(null);return e.onMounted(()=>{typeof document<"u"&&(s.value=document.createElement("style"),s.value.textContent=`body.${f} { overflow: hidden; }`,document.head.appendChild(s.value))}),e.onBeforeUnmount(async()=>{await d(!1),r(!1)}),e.onUnmounted(()=>{var t;(t=s.value)==null||t.remove()}),(t,a)=>o.visible?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,"aria-label":o.title,"aria-modal":"true",class:["k-modal",[e.unref(m).class]]},w.value,{role:"dialog"}),[e.createElementVNode("div",{ref_key:"modalWrapperElement",ref:v,class:e.normalizeClass(["modal-backdrop",{"modal-full-screen":o.fullScreen&&!t.$slots.content}]),onClick:a[3]||(a[3]=l=>B(!1,l))},[e.createVNode(e.unref(x.FocusTrap),{ref_key:"focusTrapElement",ref:c,active:!1,"fallback-focus":()=>v.value,"tabbable-options":o.tabbableOptions},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["modal-container",{"custom-content":t.$slots.content}]),tabindex:"-1"},[e.renderSlot(t.$slots,"content",{},()=>[y.value?(e.openBlock(),e.createElementBlock("div",O,[o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",D,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.hideCloseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,"aria-label":"Close",class:"close-icon","data-testid":"modal-close-icon",type:"button",onClick:a[0]||(a[0]=l=>t.$emit("cancel"))},[e.createVNode(e.unref($.default),{color:`var(--kui-color-text-neutral, ${e.unref(N.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["modal-content",{"no-header":!y.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),e.createElementVNode("div",z,[e.renderSlot(t.$slots,"footer",{},()=>[e.createElementVNode("div",L,[e.renderSlot(t.$slots,"footer-actions",{},()=>[o.hideCancelButton?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C.default,{key:0,appearance:o.cancelButtonAppearance,"data-testid":"modal-cancel-button",disabled:o.cancelButtonDisabled,onClick:a[1]||(a[1]=l=>t.$emit("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelButtonText),1)]),_:1},8,["appearance","disabled"])),e.createVNode(C.default,{appearance:o.actionButtonAppearance,"data-testid":"modal-action-button",disabled:o.actionButtonDisabled,onClick:a[2]||(a[2]=l=>t.$emit("proceed"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance","disabled"])],!0)])],!0)])],!0)],2)]),_:3},8,["fallback-focus","tabbable-options"])],2)],16,A)):e.createCommentVNode("",!0)}});exports.default=q;
|
package/dist/kongponents117.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents33.cjs"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents33.cjs"),m=require("./kongponents200.cjs"),f=require("./kongponents178.cjs"),y=["aria-label"],p={class:"k-modal-fullscreen-body-header"},h={key:0,class:"body-header"},k={key:1,class:"body-header-description"},b={class:"k-modal-fullscreen-body"},V={class:"k-modal-fullscreen-header"},v={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},g={class:"k-modal-fullscreen-title"},N={class:"header-icon"},S={class:"header-content"},B={class:"k-modal-fullscreen-action"},E={class:"k-modal-fullscreen-action-buttons"},C={key:0,class:"k-modal-fullscreen-footer"},T={class:"k-modal-fullscreen-action"},w={class:"k-modal-fullscreen-action-buttons"},$=e.defineComponent({__name:"KModalFullscreen",props:{title:{type:String,required:!0},bodyHeader:{type:String,default:""},bodyHeaderDescription:{type:String,default:""},isVisible:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"Cancel"},actionButtonText:{type:String,default:"Save"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonAppearance:{type:String,default:"secondary"},iconString:{type:String,default:"kong"}},emits:["canceled","proceed"],setup(o,{emit:i}){const a=o,c=i,l=e.ref(null),u=e.computed(()=>!!a.isVisible);e.watch(()=>a.isVisible,async()=>{typeof document>"u"||(u.value?(document.body.style.overflow="hidden",await e.nextTick(),l.value&&l.value.focus()):document.body.style.overflow="")});const s=t=>{a.isVisible&&(t.keyCode===27?d():t.keyCode===13&&n())},d=()=>{c("canceled")},n=()=>{c("proceed")};return e.onMounted(()=>{document.addEventListener("keydown",s),console.warn(`The Kongponents 'KModalFullscreen' component is deprecated and will be removed in the next major release.
|
|
2
2
|
We suggest using 'KModal' component instead.
|
|
3
3
|
Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",s)}),e.onUnmounted(()=>{document.body.style.overflow=""}),(t,D)=>o.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":o.title,"aria-modal":"true",class:"k-modal-fullscreen isOpen",role:"dialog",onKeyup:[e.withKeys(n,["enter"]),e.withKeys(d,["esc"])]},[e.createElementVNode("div",{ref_key:"modalBodyContent",ref:l,class:e.normalizeClass(["k-modal-fullscreen-dialog",{"has-footer":t.$slots["footer-content"]}]),tabindex:"0"},[e.createElementVNode("div",p,[t.$slots["body-header"]||o.bodyHeader?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(t.$slots,"body-header",{},()=>[e.createTextVNode(e.toDisplayString(o.bodyHeader),1)],!0)])):e.createCommentVNode("",!0),t.$slots["body-header-description"]||o.bodyHeaderDescription?(e.openBlock(),e.createElementBlock("div",k,[e.renderSlot(t.$slots,"body-header-description",{},()=>[e.createTextVNode(e.toDisplayString(o.bodyHeaderDescription),1)],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",b,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",V,[e.createElementVNode("div",v,[e.createElementVNode("div",g,[e.createElementVNode("span",N,[e.renderSlot(t.$slots,"header-icon",{},()=>[e.createVNode(e.unref(m.default),{color:e.unref(f.KUI_COLOR_TEXT_DECORATIVE_AQUA)},null,8,["color"])],!0)]),e.createElementVNode("span",S,[e.renderSlot(t.$slots,"header-content",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])]),e.createElementVNode("div",B,[e.createElementVNode("div",E,[e.renderSlot(t.$slots,"action-buttons",{},()=>[e.createVNode(r.default,{appearance:o.cancelButtonAppearance,class:"cancel-button",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelButtonText),1)]),_:1},8,["appearance"]),e.createVNode(r.default,{appearance:o.actionButtonAppearance,class:"proceed-button",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])]),t.$slots["footer-content"]?(e.openBlock(),e.createElementBlock("div",C,[e.renderSlot(t.$slots,"footer-content",{},void 0,!0),e.createElementVNode("div",T,[e.createElementVNode("div",w,[e.renderSlot(t.$slots,"action-buttons",{},()=>[e.createVNode(r.default,{appearance:o.actionButtonAppearance,class:"proceed-button",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])):e.createCommentVNode("",!0)],2)],40,y)):e.createCommentVNode("",!0)}});exports.default=$;
|
package/dist/kongponents119.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),qe=require("./kongponents172.cjs"),$=require("./kongponents31.cjs"),ce=require("./kongponents46.cjs"),Ke=require("./kongponents48.cjs"),Ae=require("./kongponents53.cjs"),$e=require("./kongponents20.cjs"),Te=require("./kongponents219.cjs"),ze=require("./kongponents220.cjs"),Fe=require("./kongponents196.cjs"),U=require("./kongponents183.cjs"),Me=require("./kongponents191.cjs"),T=require("./kongponents175.cjs"),Pe=require("./kongponents200.cjs"),De=require("./kongponents168.cjs"),Le=require("./kongponents182.cjs"),Re=require("./kongponents151.cjs"),de=require("./kongponents171.cjs"),Ue={"data-testid":"multiselect-container"},Oe=["id","tabindex"],He={key:0},We={key:1,class:"expanded-selection-empty"},Je={class:"multiselect-selection-badge-label"},Ze=["aria-label","onClick"],je={class:"multiselect-icons-container"},Ge={key:0,class:"multiselect-input-wrapper"},Qe={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},Xe={key:1,class:"help-text"},Ye={key:2,"aria-hidden":"true",class:"staging-area"},_e={class:"multiselect-selection-badge-label"},et=36,tt="Filter...",lt=e.defineComponent({inheritAttrs:!1,__name:"KMultiselect",props:{modelValue:{default:()=>[]},label:{default:""},help:{default:""},error:{type:Boolean},labelAttributes:{default:()=>({})},placeholder:{default:""},searchPlaceholder:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},width:{default:"100%"},selectedRowCount:{default:1},collapsedContext:{type:Boolean},items:{default:()=>[]},filterFunction:{type:Function,default:o=>o.items.filter(z=>{var E,B;return(B=z.label)==null?void 0:B.toLowerCase().includes((E=o.query)==null?void 0:E.toLowerCase())})},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{default:"sticky"},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(o,{emit:z}){e.useCssVars(t=>({v74cace88:we.value}));const E=t=>{const l=[];return t.forEach(u=>l.push(u.value)),l},B=t=>{const l=E(t),u=new Set(l);return l.length===u.size},d=e.useAttrs(),O=e.useSlots(),{cloneDeep:V,stripRequiredLabel:ve}=qe.default();e.watch(()=>o.items,t=>{!t.length||t.every(u=>u.label!==void 0&&u.value!==void 0)&&B(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const h=z,H=e.useTemplateRef("kMultiselectItems"),W=e.computed(()=>d.required!==void 0&&String(d.required)!=="false"),fe=e.computed(()=>ve(o.label,W.value)),me=e.computed(()=>{var t,l;return!!((t=o.labelAttributes)!=null&&t.help||(l=o.labelAttributes)!=null&&l.info||O["label-tooltip"])}),J=t=>k.value||b.value||t!=null&&t.disabled?"neutral":o.error?"danger":"info",Z={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},N=e.ref(0),C=e.ref(0),pe=e.useId(),j=e.computed(()=>d.id?String(d.id):pe),G=e.useId(),q=e.useTemplateRef("multiselectElement"),he=e.useTemplateRef("multiselectDropdownInputElement"),Q=e.useTemplateRef("multiselectSelectionsStagingElement"),F=e.computed(()=>o.selectedRowCount*et),m=e.ref(""),X=e.computed(()=>!(!m.value||i.value.filter(t=>t.label===m.value).length)),y=e.ref(null),i=e.ref([]),K=e.ref([]),c=e.ref([]),v=e.ref([]),p=e.ref([]),g=new Set,M=e.ref([]),S=e.ref([]),ge=e.computed(()=>S.value.map(t=>t.label).join(", ")),Y=e.ref(!1),I=e.ref(!1),P=e.ref(!1),k=e.computed(()=>(d==null?void 0:d.disabled)!==void 0&&String(d==null?void 0:d.disabled)!=="false"),b=e.computed(()=>(d==null?void 0:d.readonly)!==void 0&&String(d==null?void 0:d.readonly)!=="false"),ye=e.computed({get(){return o.modelValue},set(t){const l=i.value.filter(u=>t.includes(u.value));l.length?le(l):t.length||R()}}),be=e.computed(()=>{const t={...d};return delete t.class,t}),ke=e.computed(()=>{var t;return{...Z,...o.kpopAttributes,popoverClasses:`${Z.popoverClasses} ${((t=o.kpopAttributes)==null?void 0:t.popoverClasses)??""} ${o.dropdownFooterText||O["dropdown-footer-text"]?"has-dropdown-footer":""}`,width:x.value+"px",maxWidth:x.value+"px",disabled:d.disabled!==void 0&&String(d.disabled)!=="false"||d.readonly!==void 0&&String(d.readonly)!=="false"}}),we=e.computed(()=>de.normalizeSize(o.dropdownMaxHeight)),Ce=e.computed(()=>({...ke.value})),Se=e.computed(()=>{const t=o.width?o.width:"300";return de.normalizeSize(t)}),Ie=e.computed(()=>({width:Se.value})),_=e.computed(()=>({width:x.value+"px"})),ee=e.computed(()=>{if(c.value.length===0){if(!o.collapsedContext&&o.placeholder)return o.placeholder;if(o.collapsedContext&&o.searchPlaceholder)return o.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),D=e.computed(()=>o.autosuggest?i.value:o.filterFunction({items:i.value,query:m.value})),xe=t=>{var l;(k.value||((l=t==null?void 0:t.target)==null?void 0:l.dataset.propagateClicks)==="false")&&t.stopPropagation()},te=async(t,l,u)=>{var a,s;if(t){if(!l.value){m.value="",u(),ue(),await e.nextTick();const n=(s=(a=he.value)==null?void 0:a.$el)==null?void 0:s.querySelector("input");n==null||n.focus({preventScroll:!0})}}else l.value&&(m.value="",u())},w=()=>{setTimeout(()=>{const t=Q.value;if(o.collapsedContext){C.value++;return}if(t){if(t.clientHeight>F.value){const u=Array.from(t.querySelectorAll(".multiselect-selection-badge")).filter(n=>n.offsetTop>=F.value),a=v.value.length-u.length,s=v.value.splice(a,u.length);for(const n of s)g.has(n.value)||(g.add(n.value),p.value.push(n))}C.value++}},0)},le=t=>{t.forEach(l=>{var a;const u=((a=i.value.filter(s=>s.value===l.value))==null?void 0:a[0])||null;u&&(u.selected=!0,c.value.filter(s=>s.value===u.value).length||(c.value.push(u),v.value.push(u)))}),w()},Ee=(t,l=!1)=>{const u=new Set(t.map(a=>a.value));c.value=c.value.filter(a=>!u.has(a.value)),v.value=v.value.filter(a=>!u.has(a.value)),p.value=p.value.filter(a=>!u.has(a.value)),t.forEach(a=>{if(g.delete(a.value),a.selected=!1,p.value.length){const s=p.value.pop();s&&(v.value.push(s),g.delete(s.value))}o.enableItemCreation&&a.custom&&(i.value=i.value.filter(s=>s.value!==a.value),h("item-removed",a))}),l&&w()},L=(t,l)=>{var n,f;let u=!1,a=l?t:((n=i.value.filter(r=>r.value===t.value))==null?void 0:n[0])||null;if(o.enableItemCreation&&(a!=null&&a.custom)&&(u=!0),a===null&&(a=((f=c.value.filter(r=>r.value===t.value))==null?void 0:f[0])||null),a===null)return;if(a.selected){if(c.value=c.value.filter(r=>r.value!==t.value),v.value.filter(r=>r.value===t.value).length?v.value=v.value.filter(r=>r.value!==t.value):g.delete(t.value)&&(p.value=p.value.filter(r=>r.value!==t.value)),a.selected=!1,p.value.length){const r=p.value.pop();r&&(v.value.push(r),g.delete(r.value))}u&&(i.value=i.value.filter(r=>r.value!==t.value),h("item-removed",t))}else a.selected=!0,c.value.push(a),v.value.push(a),l&&(a.custom=!0,i.value.push(a));w();const s=c.value.map(r=>r.value);h("selected",c.value),h("change",a),h("update:modelValue",s)},ae=t=>{o.enableItemCreation&&oe(),t.preventDefault()},oe=()=>{var u;if(!o.enableItemCreation||!m.value||!X.value||!o.itemCreationValidator(m.value))return;const t=i.value.length+1,l={label:m.value.trim(),value:Re.getUniqueStringId(),key:`${(u=De.sanitizeInput(m.value.trim()).replace(/ /gi,"-"))==null?void 0:u.replace(/[^a-z0-9-_]/gi,"")}-${t}`};h("item-added",l),L(l,!0),m.value=""},ue=()=>{const t=D.value.filter(n=>n.selected),l=D.value.filter(n=>!n.selected),u=[...t,...l],a=u.filter(n=>!n.group),s=u.filter(n=>n.group).sort((n,f)=>n.group.toLowerCase().localeCompare(f.group.toLowerCase()));K.value=[...a,...s]},R=()=>{i.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&h("item-removed",l))}),i.value=i.value.filter(l=>!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value=v.value.filter(l=>l.disabled),p.value=p.value.filter(l=>(l.disabled||g.delete(l.value),l.disabled)),m.value="",w();const t=c.value.map(l=>l.value);h("selected",c.value),h("update:modelValue",t),h("query-change","")},ne=t=>{m.value=t.trim(),h("query-change",t.trim())},Be=(t,l)=>{var u;t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&((u=H.value)==null||u.setFocus(t.key==="ArrowDown"?"down":"up"))},se=()=>{var t;(t=y.value)==null||t.showPopover()},Ve=t=>{var l;(t.key==="ArrowDown"||t.key==="ArrowUp")&&((l=H.value)==null||l.setFocus(t.key==="ArrowDown"?"down":"up"))},Ne=async()=>{P.value=!0,ie()},ie=()=>{Y.value||(Y.value=!0,h("query-change",""))};e.watch(C,()=>{setTimeout(()=>{const t=Q.value;if(o.collapsedContext){M.value=V(v.value),S.value=[],N.value++;return}if(t)if(t.clientHeight>F.value){const u=v.value.pop();u&&!g.has(u.value)&&(p.value.push(u),g.add(u.value)),C.value++}else M.value=V(v.value),S.value=V(p.value),N.value++},0)}),e.watch(N,async()=>{y.value&&typeof y.value.updatePopper=="function"&&(await e.nextTick(),y.value.updatePopper())}),e.watch(D,()=>{ue()}),e.watch(ye,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){if(!t.length){R();return}const u=new Set(l),a=new Set(t),s=i.value.filter(f=>a.has(f.value)),n=c.value.filter(f=>!a.has(f.value)&&u.has(f.value));n.length&&Ee(n),s.length&&le(s)}}),e.watch(()=>o.items,(t,l)=>{var u,a;if(JSON.stringify(t)!==JSON.stringify(l)){i.value=V(o.items);for(let s=0;s<i.value.length;s++){i.value[s].selected===void 0&&(i.value[s].selected=!1);let n=`${(a=(u=i.value[s].label)==null?void 0:u.replace(/ /gi,"-"))==null?void 0:a.replace(/[^a-z0-9-_]/gi,"")}-${s}`;if(n.includes("undefined")&&(n=`multiselect-item-label-${s}`),i.value[s].key=n,o.modelValue.includes(i.value[s].value)||i.value[s].selected){const f=i.value[s];f.selected=!0,c.value.filter(r=>r.value===f.value).length||c.value.push(f),v.value.filter(r=>r.value===f.value).length||v.value.push(f)}}w(),y.value&&typeof y.value.updatePopper=="function"&&e.nextTick(()=>{y.value.updatePopper()})}},{deep:!0,immediate:!0});const x=e.ref(300),re=async()=>{var t;x.value=300,await e.nextTick(),x.value=((t=q.value)==null?void 0:t.clientWidth)||300,w()},A=e.ref();return e.onMounted(()=>{Le.useEventListener("resize",re),A.value=Pe.ResizeObserverHelper.create(re),A.value.observe(q.value)}),e.onBeforeUnmount(()=>{A.value&&q.value&&A.value.unobserve(q.value)}),(t,l)=>{const u=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":o.error}]]),style:e.normalizeStyle(Ie.value)},[o.label?(e.openBlock(),e.createBlock(Ke.default,e.mergeProps({key:0},o.labelAttributes,{"data-testid":o.labelAttributes["data-testid"]?o.labelAttributes["data-testid"]:"multiselect-label",for:j.value,required:W.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(fe.value)+" ",1)]),_:2},[me.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[e.createVNode($e.default,null,{default:e.withCtx(({isToggled:a,toggle:s})=>[e.createVNode(Ae.default,e.mergeProps({ref_key:"popper",ref:y,"hide-close-icon":"",offset:e.unref(T.KUI_SPACE_40)},Ce.value,{onClose:()=>te(!1,a,s),onOpen:()=>te(!0,a,s)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>I.value=!0),onMouseleave:l[9]||(l[9]=()=>I.value=!1)},[!o.collapsedContext&&!b.value?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(ce.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":m.value,placeholder:o.searchPlaceholder||tt,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:ie,onKeydown:e.withKeys(ae,["enter"]),onKeyup:[Ve,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":ne},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(Te.default,{ref:"kMultiselectItems","filter-string":m.value,"item-creation-enabled":o.enableItemCreation&&X.value,"item-creation-valid":o.itemCreationValidator(m.value),items:K.value,onAddItem:oe,onSelected:L},{content:e.withCtx(({item:n})=>[e.renderSlot(t.$slots,"item-template",{class:"multiselect-item",item:n},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!K.value.length&&!t.$slots.empty&&!o.enableItemCreation?(e.openBlock(),e.createBlock(ze.default,{key:"multiselect-empty-item",class:"multiselect-empty-item","data-testid":"multiselect-empty-item",item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),t.$slots.empty&&!o.loading&&!K.value.length?(e.openBlock(),e.createElementBlock("div",Qe,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),o.dropdownFooterText||t.$slots["dropdown-footer-text"]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${o.dropdownFooterTextPosition}`]),"data-testid":"dropdown-footer"},[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(o.dropdownFooterText),1)],!0)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:j.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:P.value,hovered:I.value,disabled:k.value,readonly:b.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:k.value||b.value||o.collapsedContext?-1:0},be.value,{onClick:xe,onKeydown:[e.withKeys(se,["enter"]),e.withKeys(se,["space"])]}),[o.collapsedContext?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(ce.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":b.value}]),"data-testid":"multiselect-input",disabled:k.value,"model-value":m.value,placeholder:ee.value,readonly:b.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>P.value=!1),onClick:n=>{a.value&&n.stopPropagation()},onFocus:Ne,onKeydown:e.withKeys(ae,["enter"]),onKeyup:n=>Be(n,a),onMouseenter:l[1]||(l[1]=()=>I.value=!0),onMouseleave:l[2]||(l[2]=()=>I.value=!1),"onUpdate:modelValue":ne},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(_.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(n,f)=>(e.openBlock(),e.createBlock($.default,{key:`${e.unref(G)}-${n.key?n.key:f}-badge-${N.value}`,appearance:J(n),class:"multiselect-selection-badge","icon-before":!1,tooltip:n.label,"truncation-tooltip":"",onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:n},void 0,!0),e.createElementVNode("span",Je,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!k.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":`Unselect ${n.label}`,class:"badge-dismiss-button","data-testid":"badge-dismiss-button",type:"button",onClick:r=>L(n)},[e.createVNode(e.unref(U.default),{decorative:""})],8,Ze)]),key:"0"}:void 0]),1032,["appearance","tooltip"]))),128)),S.value.length?(e.openBlock(),e.createBlock(u,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:ge.value},{default:e.withCtx(()=>[e.createVNode($.default,{appearance:J(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(S.value.length),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("div",We,e.toDisplayString(ee.value),1)),e.createElementVNode("div",je,[!o.loading&&c.value.length&&a.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"multiselect-clear-icon","data-testid":"multiselect-clear-icon",type:"button",onClick:R},[e.createVNode(e.unref(U.default),{size:e.unref(T.KUI_ICON_SIZE_40)},null,8,["size"])])):o.loading?(e.openBlock(),e.createBlock(e.unref(Me.default),{key:1,class:"multiselect-loading-icon",size:e.unref(T.KUI_ICON_SIZE_40),title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(Fe.default),{key:2,class:"multiselect-chevron-icon",decorative:"",size:e.unref(T.KUI_ICON_SIZE_40)},null,8,["size"]))])],16,Oe)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),o.help?(e.openBlock(),e.createElementBlock("p",Xe,e.toDisplayString(o.help),1)):e.createCommentVNode("",!0),o.collapsedContext?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(),e.createElementBlock("div",{key:C.value,ref:"multiselectSelectionsStagingElement",class:"selection-badges-container staging",style:e.normalizeStyle(_.value),tabindex:"-1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(a,s)=>(e.openBlock(),e.createBlock($.default,{key:`${e.unref(G)}-${a.key?a.key:s}-badge`,"aria-hidden":"true",class:"multiselect-selection-badge","icon-before":!1},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:a},void 0,!0),e.createElementVNode("span",_e,e.toDisplayString(a.label),1)]),_:2},[a.selected&&!a.disabled&&!k.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createVNode(e.unref(U.default),{"aria-hidden":"true"})]),key:"0"}:void 0]),1024))),128)),e.createVNode($.default,{"aria-hidden":"true",class:"hidden-selection-count"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(p.value.length),1)]),_:1})],4))]))],6)}}});exports.default=lt;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),qe=require("./kongponents182.cjs"),$=require("./kongponents31.cjs"),ce=require("./kongponents46.cjs"),Ke=require("./kongponents48.cjs"),Ae=require("./kongponents53.cjs"),$e=require("./kongponents20.cjs"),Te=require("./kongponents206.cjs"),ze=require("./kongponents207.cjs"),Fe=require("./kongponents203.cjs"),U=require("./kongponents173.cjs"),Me=require("./kongponents193.cjs"),T=require("./kongponents178.cjs"),Pe=require("./kongponents205.cjs"),De=require("./kongponents168.cjs"),Le=require("./kongponents208.cjs"),Re=require("./kongponents151.cjs"),de=require("./kongponents171.cjs"),Ue={"data-testid":"multiselect-container"},Oe=["id","tabindex"],He={key:0},We={key:1,class:"expanded-selection-empty"},Je={class:"multiselect-selection-badge-label"},Ze=["aria-label","onClick"],je={class:"multiselect-icons-container"},Ge={key:0,class:"multiselect-input-wrapper"},Qe={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},Xe={key:1,class:"help-text"},Ye={key:2,"aria-hidden":"true",class:"staging-area"},_e={class:"multiselect-selection-badge-label"},et=36,tt="Filter...",lt=e.defineComponent({inheritAttrs:!1,__name:"KMultiselect",props:{modelValue:{default:()=>[]},label:{default:""},help:{default:""},error:{type:Boolean},labelAttributes:{default:()=>({})},placeholder:{default:""},searchPlaceholder:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},width:{default:"100%"},selectedRowCount:{default:1},collapsedContext:{type:Boolean},items:{default:()=>[]},filterFunction:{type:Function,default:o=>o.items.filter(z=>{var E,B;return(B=z.label)==null?void 0:B.toLowerCase().includes((E=o.query)==null?void 0:E.toLowerCase())})},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{default:"sticky"},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(o,{emit:z}){e.useCssVars(t=>({v74cace88:we.value}));const E=t=>{const l=[];return t.forEach(u=>l.push(u.value)),l},B=t=>{const l=E(t),u=new Set(l);return l.length===u.size},d=e.useAttrs(),O=e.useSlots(),{cloneDeep:V,stripRequiredLabel:ve}=qe.default();e.watch(()=>o.items,t=>{!t.length||t.every(u=>u.label!==void 0&&u.value!==void 0)&&B(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const h=z,H=e.useTemplateRef("kMultiselectItems"),W=e.computed(()=>d.required!==void 0&&String(d.required)!=="false"),fe=e.computed(()=>ve(o.label,W.value)),me=e.computed(()=>{var t,l;return!!((t=o.labelAttributes)!=null&&t.help||(l=o.labelAttributes)!=null&&l.info||O["label-tooltip"])}),J=t=>k.value||b.value||t!=null&&t.disabled?"neutral":o.error?"danger":"info",Z={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},N=e.ref(0),C=e.ref(0),pe=e.useId(),j=e.computed(()=>d.id?String(d.id):pe),G=e.useId(),q=e.useTemplateRef("multiselectElement"),he=e.useTemplateRef("multiselectDropdownInputElement"),Q=e.useTemplateRef("multiselectSelectionsStagingElement"),F=e.computed(()=>o.selectedRowCount*et),m=e.ref(""),X=e.computed(()=>!(!m.value||i.value.filter(t=>t.label===m.value).length)),y=e.ref(null),i=e.ref([]),K=e.ref([]),c=e.ref([]),v=e.ref([]),p=e.ref([]),g=new Set,M=e.ref([]),S=e.ref([]),ge=e.computed(()=>S.value.map(t=>t.label).join(", ")),Y=e.ref(!1),I=e.ref(!1),P=e.ref(!1),k=e.computed(()=>(d==null?void 0:d.disabled)!==void 0&&String(d==null?void 0:d.disabled)!=="false"),b=e.computed(()=>(d==null?void 0:d.readonly)!==void 0&&String(d==null?void 0:d.readonly)!=="false"),ye=e.computed({get(){return o.modelValue},set(t){const l=i.value.filter(u=>t.includes(u.value));l.length?le(l):t.length||R()}}),be=e.computed(()=>{const t={...d};return delete t.class,t}),ke=e.computed(()=>{var t;return{...Z,...o.kpopAttributes,popoverClasses:`${Z.popoverClasses} ${((t=o.kpopAttributes)==null?void 0:t.popoverClasses)??""} ${o.dropdownFooterText||O["dropdown-footer-text"]?"has-dropdown-footer":""}`,width:x.value+"px",maxWidth:x.value+"px",disabled:d.disabled!==void 0&&String(d.disabled)!=="false"||d.readonly!==void 0&&String(d.readonly)!=="false"}}),we=e.computed(()=>de.normalizeSize(o.dropdownMaxHeight)),Ce=e.computed(()=>({...ke.value})),Se=e.computed(()=>{const t=o.width?o.width:"300";return de.normalizeSize(t)}),Ie=e.computed(()=>({width:Se.value})),_=e.computed(()=>({width:x.value+"px"})),ee=e.computed(()=>{if(c.value.length===0){if(!o.collapsedContext&&o.placeholder)return o.placeholder;if(o.collapsedContext&&o.searchPlaceholder)return o.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),D=e.computed(()=>o.autosuggest?i.value:o.filterFunction({items:i.value,query:m.value})),xe=t=>{var l;(k.value||((l=t==null?void 0:t.target)==null?void 0:l.dataset.propagateClicks)==="false")&&t.stopPropagation()},te=async(t,l,u)=>{var a,s;if(t){if(!l.value){m.value="",u(),ue(),await e.nextTick();const n=(s=(a=he.value)==null?void 0:a.$el)==null?void 0:s.querySelector("input");n==null||n.focus({preventScroll:!0})}}else l.value&&(m.value="",u())},w=()=>{setTimeout(()=>{const t=Q.value;if(o.collapsedContext){C.value++;return}if(t){if(t.clientHeight>F.value){const u=Array.from(t.querySelectorAll(".multiselect-selection-badge")).filter(n=>n.offsetTop>=F.value),a=v.value.length-u.length,s=v.value.splice(a,u.length);for(const n of s)g.has(n.value)||(g.add(n.value),p.value.push(n))}C.value++}},0)},le=t=>{t.forEach(l=>{var a;const u=((a=i.value.filter(s=>s.value===l.value))==null?void 0:a[0])||null;u&&(u.selected=!0,c.value.filter(s=>s.value===u.value).length||(c.value.push(u),v.value.push(u)))}),w()},Ee=(t,l=!1)=>{const u=new Set(t.map(a=>a.value));c.value=c.value.filter(a=>!u.has(a.value)),v.value=v.value.filter(a=>!u.has(a.value)),p.value=p.value.filter(a=>!u.has(a.value)),t.forEach(a=>{if(g.delete(a.value),a.selected=!1,p.value.length){const s=p.value.pop();s&&(v.value.push(s),g.delete(s.value))}o.enableItemCreation&&a.custom&&(i.value=i.value.filter(s=>s.value!==a.value),h("item-removed",a))}),l&&w()},L=(t,l)=>{var n,f;let u=!1,a=l?t:((n=i.value.filter(r=>r.value===t.value))==null?void 0:n[0])||null;if(o.enableItemCreation&&(a!=null&&a.custom)&&(u=!0),a===null&&(a=((f=c.value.filter(r=>r.value===t.value))==null?void 0:f[0])||null),a===null)return;if(a.selected){if(c.value=c.value.filter(r=>r.value!==t.value),v.value.filter(r=>r.value===t.value).length?v.value=v.value.filter(r=>r.value!==t.value):g.delete(t.value)&&(p.value=p.value.filter(r=>r.value!==t.value)),a.selected=!1,p.value.length){const r=p.value.pop();r&&(v.value.push(r),g.delete(r.value))}u&&(i.value=i.value.filter(r=>r.value!==t.value),h("item-removed",t))}else a.selected=!0,c.value.push(a),v.value.push(a),l&&(a.custom=!0,i.value.push(a));w();const s=c.value.map(r=>r.value);h("selected",c.value),h("change",a),h("update:modelValue",s)},ae=t=>{o.enableItemCreation&&oe(),t.preventDefault()},oe=()=>{var u;if(!o.enableItemCreation||!m.value||!X.value||!o.itemCreationValidator(m.value))return;const t=i.value.length+1,l={label:m.value.trim(),value:Re.getUniqueStringId(),key:`${(u=De.sanitizeInput(m.value.trim()).replace(/ /gi,"-"))==null?void 0:u.replace(/[^a-z0-9-_]/gi,"")}-${t}`};h("item-added",l),L(l,!0),m.value=""},ue=()=>{const t=D.value.filter(n=>n.selected),l=D.value.filter(n=>!n.selected),u=[...t,...l],a=u.filter(n=>!n.group),s=u.filter(n=>n.group).sort((n,f)=>n.group.toLowerCase().localeCompare(f.group.toLowerCase()));K.value=[...a,...s]},R=()=>{i.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&h("item-removed",l))}),i.value=i.value.filter(l=>!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value=v.value.filter(l=>l.disabled),p.value=p.value.filter(l=>(l.disabled||g.delete(l.value),l.disabled)),m.value="",w();const t=c.value.map(l=>l.value);h("selected",c.value),h("update:modelValue",t),h("query-change","")},ne=t=>{m.value=t.trim(),h("query-change",t.trim())},Be=(t,l)=>{var u;t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&((u=H.value)==null||u.setFocus(t.key==="ArrowDown"?"down":"up"))},se=()=>{var t;(t=y.value)==null||t.showPopover()},Ve=t=>{var l;(t.key==="ArrowDown"||t.key==="ArrowUp")&&((l=H.value)==null||l.setFocus(t.key==="ArrowDown"?"down":"up"))},Ne=async()=>{P.value=!0,ie()},ie=()=>{Y.value||(Y.value=!0,h("query-change",""))};e.watch(C,()=>{setTimeout(()=>{const t=Q.value;if(o.collapsedContext){M.value=V(v.value),S.value=[],N.value++;return}if(t)if(t.clientHeight>F.value){const u=v.value.pop();u&&!g.has(u.value)&&(p.value.push(u),g.add(u.value)),C.value++}else M.value=V(v.value),S.value=V(p.value),N.value++},0)}),e.watch(N,async()=>{y.value&&typeof y.value.updatePopper=="function"&&(await e.nextTick(),y.value.updatePopper())}),e.watch(D,()=>{ue()}),e.watch(ye,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){if(!t.length){R();return}const u=new Set(l),a=new Set(t),s=i.value.filter(f=>a.has(f.value)),n=c.value.filter(f=>!a.has(f.value)&&u.has(f.value));n.length&&Ee(n),s.length&&le(s)}}),e.watch(()=>o.items,(t,l)=>{var u,a;if(JSON.stringify(t)!==JSON.stringify(l)){i.value=V(o.items);for(let s=0;s<i.value.length;s++){i.value[s].selected===void 0&&(i.value[s].selected=!1);let n=`${(a=(u=i.value[s].label)==null?void 0:u.replace(/ /gi,"-"))==null?void 0:a.replace(/[^a-z0-9-_]/gi,"")}-${s}`;if(n.includes("undefined")&&(n=`multiselect-item-label-${s}`),i.value[s].key=n,o.modelValue.includes(i.value[s].value)||i.value[s].selected){const f=i.value[s];f.selected=!0,c.value.filter(r=>r.value===f.value).length||c.value.push(f),v.value.filter(r=>r.value===f.value).length||v.value.push(f)}}w(),y.value&&typeof y.value.updatePopper=="function"&&e.nextTick(()=>{y.value.updatePopper()})}},{deep:!0,immediate:!0});const x=e.ref(300),re=async()=>{var t;x.value=300,await e.nextTick(),x.value=((t=q.value)==null?void 0:t.clientWidth)||300,w()},A=e.ref();return e.onMounted(()=>{Le.useEventListener("resize",re),A.value=Pe.ResizeObserverHelper.create(re),A.value.observe(q.value)}),e.onBeforeUnmount(()=>{A.value&&q.value&&A.value.unobserve(q.value)}),(t,l)=>{const u=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":o.error}]]),style:e.normalizeStyle(Ie.value)},[o.label?(e.openBlock(),e.createBlock(Ke.default,e.mergeProps({key:0},o.labelAttributes,{"data-testid":o.labelAttributes["data-testid"]?o.labelAttributes["data-testid"]:"multiselect-label",for:j.value,required:W.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(fe.value)+" ",1)]),_:2},[me.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[e.createVNode($e.default,null,{default:e.withCtx(({isToggled:a,toggle:s})=>[e.createVNode(Ae.default,e.mergeProps({ref_key:"popper",ref:y,"hide-close-icon":"",offset:e.unref(T.KUI_SPACE_40)},Ce.value,{onClose:()=>te(!1,a,s),onOpen:()=>te(!0,a,s)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>I.value=!0),onMouseleave:l[9]||(l[9]=()=>I.value=!1)},[!o.collapsedContext&&!b.value?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(ce.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":m.value,placeholder:o.searchPlaceholder||tt,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:ie,onKeydown:e.withKeys(ae,["enter"]),onKeyup:[Ve,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":ne},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(Te.default,{ref:"kMultiselectItems","filter-string":m.value,"item-creation-enabled":o.enableItemCreation&&X.value,"item-creation-valid":o.itemCreationValidator(m.value),items:K.value,onAddItem:oe,onSelected:L},{content:e.withCtx(({item:n})=>[e.renderSlot(t.$slots,"item-template",{class:"multiselect-item",item:n},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!K.value.length&&!t.$slots.empty&&!o.enableItemCreation?(e.openBlock(),e.createBlock(ze.default,{key:"multiselect-empty-item",class:"multiselect-empty-item","data-testid":"multiselect-empty-item",item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),t.$slots.empty&&!o.loading&&!K.value.length?(e.openBlock(),e.createElementBlock("div",Qe,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),o.dropdownFooterText||t.$slots["dropdown-footer-text"]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${o.dropdownFooterTextPosition}`]),"data-testid":"dropdown-footer"},[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(o.dropdownFooterText),1)],!0)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:j.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:P.value,hovered:I.value,disabled:k.value,readonly:b.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:k.value||b.value||o.collapsedContext?-1:0},be.value,{onClick:xe,onKeydown:[e.withKeys(se,["enter"]),e.withKeys(se,["space"])]}),[o.collapsedContext?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(ce.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":b.value}]),"data-testid":"multiselect-input",disabled:k.value,"model-value":m.value,placeholder:ee.value,readonly:b.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>P.value=!1),onClick:n=>{a.value&&n.stopPropagation()},onFocus:Ne,onKeydown:e.withKeys(ae,["enter"]),onKeyup:n=>Be(n,a),onMouseenter:l[1]||(l[1]=()=>I.value=!0),onMouseleave:l[2]||(l[2]=()=>I.value=!1),"onUpdate:modelValue":ne},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(_.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(n,f)=>(e.openBlock(),e.createBlock($.default,{key:`${e.unref(G)}-${n.key?n.key:f}-badge-${N.value}`,appearance:J(n),class:"multiselect-selection-badge","icon-before":!1,tooltip:n.label,"truncation-tooltip":"",onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:n},void 0,!0),e.createElementVNode("span",Je,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!k.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":`Unselect ${n.label}`,class:"badge-dismiss-button","data-testid":"badge-dismiss-button",type:"button",onClick:r=>L(n)},[e.createVNode(e.unref(U.default),{decorative:""})],8,Ze)]),key:"0"}:void 0]),1032,["appearance","tooltip"]))),128)),S.value.length?(e.openBlock(),e.createBlock(u,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:ge.value},{default:e.withCtx(()=>[e.createVNode($.default,{appearance:J(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(S.value.length),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("div",We,e.toDisplayString(ee.value),1)),e.createElementVNode("div",je,[!o.loading&&c.value.length&&a.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"multiselect-clear-icon","data-testid":"multiselect-clear-icon",type:"button",onClick:R},[e.createVNode(e.unref(U.default),{size:e.unref(T.KUI_ICON_SIZE_40)},null,8,["size"])])):o.loading?(e.openBlock(),e.createBlock(e.unref(Me.default),{key:1,class:"multiselect-loading-icon",size:e.unref(T.KUI_ICON_SIZE_40),title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(Fe.default),{key:2,class:"multiselect-chevron-icon",decorative:"",size:e.unref(T.KUI_ICON_SIZE_40)},null,8,["size"]))])],16,Oe)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),o.help?(e.openBlock(),e.createElementBlock("p",Xe,e.toDisplayString(o.help),1)):e.createCommentVNode("",!0),o.collapsedContext?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(),e.createElementBlock("div",{key:C.value,ref:"multiselectSelectionsStagingElement",class:"selection-badges-container staging",style:e.normalizeStyle(_.value),tabindex:"-1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(a,s)=>(e.openBlock(),e.createBlock($.default,{key:`${e.unref(G)}-${a.key?a.key:s}-badge`,"aria-hidden":"true",class:"multiselect-selection-badge","icon-before":!1},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:a},void 0,!0),e.createElementVNode("span",_e,e.toDisplayString(a.label),1)]),_:2},[a.selected&&!a.disabled&&!k.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createVNode(e.unref(U.default),{"aria-hidden":"true"})]),key:"0"}:void 0]),1024))),128)),e.createVNode($.default,{"aria-hidden":"true",class:"hidden-selection-count"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(p.value.length),1)]),_:1})],4))]))],6)}}});exports.default=lt;
|
package/dist/kongponents122.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents42.cjs"),x=require("./kongponents33.cjs"),j=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents42.cjs"),x=require("./kongponents33.cjs"),j=require("./kongponents201.cjs"),L=require("./kongponents202.cjs"),U=require("./kongponents203.cjs"),W=require("./kongponents204.cjs"),R=require("./kongponents205.cjs"),Z=require("./kongponents169.cjs"),Q={class:"pagination-text large-screen","data-testid":"visible-items"},X={class:"pagination-text-pages"},Y={class:"pagination-button-container"},_={key:0},ee={key:1,class:"pagination-button placeholder"},te=["aria-current","aria-label","data-testid","onClick"],ae={key:2,class:"pagination-button placeholder"},le={key:3},ne={class:"page-size-select"},oe={key:0,class:"pagination-text small-screen","data-testid":"visible-items"},ue={class:"pagination-text-pages"},ie=e.defineComponent({__name:"KPagination",props:{items:{default:()=>[]},totalCount:{default:0},pageSizes:{default:()=>[15,30,50,75,100]},initialPageSize:{default:null},neighbors:{default:1},currentPage:{default:null},disablePageJump:{type:Boolean},offset:{type:Boolean},offsetPreviousButtonDisabled:{type:Boolean},offsetNextButtonDisabled:{type:Boolean}},emits:["pageChange","pageSizeChange","getNextOffset","getPreviousOffset"],setup(t,{emit:$}){const J={placement:"top"},k=$,f=e.ref(null),C=e.ref(),l=e.ref(t.currentPage?t.currentPage:1),s=e.ref(t.initialPageSize?t.initialPageSize:t.pageSizes[0]??Z.DEFAULT_PAGE_SIZE),o=e.computed(()=>Math.ceil(t.totalCount/s.value)),P=t.pageSizes.map((a,u)=>({label:`${a}`,key:`size-${u}`,value:a,selected:a===s.value})),q=e.computed(()=>`${s.value} ${s.value===1?"item per page":" items per page"}`),n=e.ref(t.neighbors),r=e.ref(3),G=async()=>(await e.nextTick(),f.value?f.value.scrollWidth>f.value.clientWidth:!1),z=async()=>{await G()&&(n.value>1||r.value>1)&&(n.value>1?n.value--:r.value>1&&r.value--,b.value=y(l.value,o.value,g.value,c.value))},y=(a,u,i,S)=>{if(t.disablePageJump)return[];let d=[...Array(u).keys()].map(v=>v+1);const H=r.value+2+2*n.value;return d.length<=H||(i?i&&S?d=d.filter(v=>v>a-n.value-1&&v<a+n.value+1):i&&!S&&(d=d.filter(v=>v>u-n.value*2-r.value)):d=d.filter(v=>v<=n.value*2+r.value)),d},V=e.ref(l.value===1),B=e.ref(l.value===o.value),h=e.computed(()=>(l.value-1)*s.value+1),N=e.computed(()=>{const a=h.value-1+s.value;return a>t.totalCount?t.totalCount:a}),w=e.computed(()=>`${h.value} to ${N.value}`),D=e.computed(()=>` of ${t.totalCount}`),m=e.computed(()=>t.currentPage?t.currentPage:l.value),O=e.computed(()=>5+2*n.value),g=e.ref(m.value>=n.value+(r.value+1)&&o.value>O.value),c=e.ref(o.value>r.value+2+2*n.value),b=e.ref(y(m.value,o.value,g.value,c.value)),I=()=>{l.value++,E()},T=()=>{l.value--,E()},p=a=>{l.value=a,E()},E=()=>{const a=(l.value-1)*s.value+s.value;B.value=a>=t.totalCount,V.value=l.value===1,o.value<=O.value?(g.value=!1,c.value=!1):(g.value=l.value>=n.value+(r.value+1),c.value=l.value<=o.value-n.value-r.value),b.value=y(l.value,o.value,g.value,c.value),k("pageChange",{page:l.value,pageCount:o.value,firstItem:h.value,lastItem:N.value,visibleItems:t.items.slice(h.value-1,N.value)})},A=a=>{s.value!==a.value&&(s.value=a.value,k("pageSizeChange",{pageSize:s.value,pageCount:o.value}),t.currentPage!==1&&p(1))},F=()=>{k("getNextOffset")},M=()=>{k("getPreviousOffset")};return e.watch(()=>t.currentPage,(a,u)=>{a!==u&&a&&p(a)}),e.watch(o,(a,u)=>{a!==u&&(B.value=l.value===a,c.value=a>r.value+2+2*n.value,b.value=y(m.value,a,!1,c.value))}),e.watch(b,()=>{!t.disablePageJump&&!t.offset&&z()}),e.onMounted(()=>{!t.disablePageJump&&!t.offset&&(C.value=R.ResizeObserverHelper.create(z),C.value.observe(f.value))}),e.onBeforeUnmount(()=>{var a;!t.disablePageJump&&!t.offset&&((a=C.value)==null||a.unobserve(f.value))}),(a,u)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"kPaginationElement",ref:f,class:e.normalizeClass(["k-pagination",{"page-jump":!t.disablePageJump&&!t.offset}]),"data-testid":"k-pagination"},[t.offset?(e.openBlock(),e.createBlock(j.default,{key:1,"next-button-disabled":t.offsetNextButtonDisabled,"previous-button-disabled":t.offsetPreviousButtonDisabled,onGetNextOffset:F,onGetPreviousOffset:M},null,8,["next-button-disabled","previous-button-disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Q,[e.createElementVNode("span",X,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)]),e.createElementVNode("ul",Y,[e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the previous page",class:"pagination-button arrow","data-testid":"previous-button",disabled:V.value,icon:"",size:"small",type:"button",onClick:T},{default:e.withCtx(()=>[e.createVNode(e.unref(L.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])]),!t.disablePageJump&&g.value?(e.openBlock(),e.createElementBlock("li",_,[e.createElementVNode("button",{"aria-label":"Go to the first page",class:"pagination-button","data-testid":"page-1-button",type:"button",onClick:u[0]||(u[0]=i=>p(1))}," 1 ")])):e.createCommentVNode("",!0),!t.disablePageJump&&g.value?(e.openBlock(),e.createElementBlock("li",ee," ... ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,i=>(e.openBlock(),e.createElementBlock("li",{key:i},[e.createElementVNode("button",{"aria-current":i==m.value&&"page"||void 0,"aria-label":`Go to page ${i}`,class:e.normalizeClass(["pagination-button",{active:i==m.value}]),"data-testid":`page-${i}-button`,type:"button",onClick:S=>p(i)},e.toDisplayString(i),11,te)]))),128)),!t.disablePageJump&&c.value?(e.openBlock(),e.createElementBlock("li",ae," ... ")):e.createCommentVNode("",!0),!t.disablePageJump&&c.value?(e.openBlock(),e.createElementBlock("li",le,[e.createElementVNode("button",{"aria-label":"Go to the last page",class:"pagination-button","data-testid":"last-button",type:"button",onClick:u[1]||(u[1]=i=>p(o.value))},e.toDisplayString(o.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the next page",class:"pagination-button arrow","data-testid":"next-button",disabled:B.value?!0:void 0,icon:"",size:"small",type:"button",onClick:I},{default:e.withCtx(()=>[e.createVNode(e.unref(W.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])])])],64)),e.createElementVNode("div",ne,[!t.disablePageJump&&!t.offset?(e.openBlock(),e.createElementBlock("span",oe,[e.createElementVNode("span",ue,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)])):e.createCommentVNode("",!0),e.createVNode(K.default,{class:"page-size-dropdown","data-testid":"page-size-dropdown",disabled:e.unref(P).length<=1,items:e.unref(P),"kpop-attributes":J,"selection-menu":"",onChange:A},{default:e.withCtx(()=>[e.createVNode(x.default,{appearance:"tertiary",class:"page-size-dropdown-trigger","data-testid":"page-size-dropdown-trigger",disabled:e.unref(P).length<=1,size:"small",type:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.value)+" ",1),e.unref(P).length>1?(e.openBlock(),e.createBlock(e.unref(U.default),{key:0,decorative:""})):e.createCommentVNode("",!0)]),_:1},8,["disabled"])]),_:1},8,["disabled","items"])])],2))}});exports.default=ie;
|