@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
package/dist/kongponents124.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./kongponents228.cjs"),D=require("./kongponents33.cjs"),M=require("./kongponents173.cjs"),S=require("./kongponents178.cjs"),F=require("./kongponents229.cjs"),d=require("./kongponents208.cjs"),f=require("./kongponents171.cjs"),m=require("./kongponents230.cjs"),Z=["id","aria-labelledby","x-placement"],j=["tabindex"],R={key:1,class:"popover-header"},G=["id"],J={key:2,class:"popover-footer"},Q=e.defineComponent({__name:"KPop",props:{buttonText:{default:""},title:{default:""},placement:{default:"auto"},trigger:{default:"click"},popoverTimeout:{default:300},hideCloseIcon:{type:Boolean},hideCaret:{type:Boolean},closeOnPopoverClick:{type:Boolean},disabled:{type:Boolean},width:{default:"200px"},maxWidth:{default:"none"},maxHeight:{default:"none"},popoverClasses:{default:""},popoverElementAttributes:{default:()=>({})},tag:{default:"div"},zIndex:{default:1e3},offset:{default:()=>S.KUI_SPACE_60},target:{default:null}},emits:["open","close","popover-click"],setup(t,{expose:B,emit:z}){const g=z,s=e.useSlots(),h=e.useId(),E=e.useId(),u=e.ref(null),i=e.ref(null),n=e.ref(!1),r=e.computed(()=>{var o,a;return u.value&&((o=u.value)!=null&&o.children[0])?(a=u.value)==null?void 0:a.children[0]:null}),C=e.ref(null),I=()=>{n.value?l():v()},y=e.ref(),k=()=>{y.value&&y.value()},N=()=>{k(),r.value&&i.value&&(y.value=m.autoUpdate(r.value,i.value,U))},v=async()=>{t.disabled||(C.value&&clearTimeout(C.value),N(),n.value=!0)},l=()=>{C.value=setTimeout(()=>{k(),n.value=!1},t.trigger==="hover"?t.popoverTimeout:0)},P=()=>{I()},V=()=>{g("popover-click"),t.closeOnPopoverClick&&l()},T=o=>{var w,x;if(!n.value)return;const a=o.target,O=(w=u.value)==null?void 0:w.contains(a),W=(x=i.value)==null?void 0:x.contains(a);O||W||l()},b=e.computed(()=>t.placement.trim().replace(/ /g,"-").replace(/[A-Z]+(?![a-z])|[A-Z]/g,(o,a)=>(a?"-":"")+o.toLowerCase()).replace(/--+/g,"-").replace(/-+$/g,"")),{floatingStyles:q,placement:c,update:U}=$.useFloating(r,i,{...b.value==="auto"&&{middleware:[m.autoPlacement()]},...b.value!=="auto"&&{placement:b.value,middleware:[m.shift(),m.flip()]},strategy:"fixed",transform:!1}),p=e.computed(()=>f.normalizeSize(t.offset)),K=e.computed(()=>c.value.includes("top")?{marginBottom:p.value}:c.value.includes("bottom")?{marginTop:p.value}:c.value.includes("right")?{marginLeft:p.value}:c.value.includes("left")?{marginRight:p.value}:{}),A=e.computed(()=>({...q.value,zIndex:t.zIndex})),L=e.computed(()=>({...K.value,width:f.normalizeSize(t.width),maxWidth:f.normalizeSize(t.maxWidth),maxHeight:f.normalizeSize(t.maxHeight)})),H=e.computed(()=>[t.popoverClasses,{"hide-caret":t.hideCaret}]);return B({hidePopover:l,showPopover:v}),e.onMounted(()=>{if(d.useEventListener(window,"mousedown",T,{capture:!0}),r.value){const o=r.value.querySelector('button[data-dropdown-trigger="true"]')||r.value;o.hasAttribute("aria-controls")||o.setAttribute("aria-controls",h)}t.trigger==="hover"&&[i.value,r.value].forEach(o=>{o&&(d.useEventListener(o,"mouseenter",v),d.useEventListener(o,"focusin",v),d.useEventListener(o,"mouseleave",l),d.useEventListener(o,"focusout",l))})}),e.onBeforeUnmount(()=>{k()}),e.watch(n,o=>{g(o?"open":"close")}),(o,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:"k-popover",onKeydown:e.withKeys(e.withModifiers(l,["stop"]),["esc"])},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"triggerWrapperElement",ref:u,class:"popover-trigger-wrapper",onClick:P},[e.renderSlot(o.$slots,"default",{},()=>[e.createVNode(D.default,{"aria-controls":e.unref(h),"data-testid":"popover-button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.buttonText),1)]),_:1},8,["aria-controls"])],!0)],512),e.createVNode(F.default,{target:t.target,"use-teleport":!!t.target},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",e.mergeProps(t.popoverElementAttributes,{id:e.unref(h),ref_key:"popoverElement",ref:i,"aria-labelledby":s.title||t.title?e.unref(E):void 0,class:["popover",H.value],role:"dialog",style:A.value,"x-placement":e.unref(c),onClick:V}),[e.createElementVNode("div",{class:"popover-container",style:e.normalizeStyle(L.value)},[t.hideCloseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,ref:"popoverCloseButton","aria-label":"Close popover",class:"popover-close-button",tabindex:n.value?0:-1,type:"button",onClick:l},[e.createVNode(e.unref(M.default),{class:"popover-close-icon",decorative:"",size:e.unref(S.KUI_ICON_SIZE_30)},null,8,["size"])],8,j)),s.title||t.title?(e.openBlock(),e.createElementBlock("div",R,[s.title||t.title?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(E),class:e.normalizeClass(["popover-title",{"close-icon-spacing":!t.hideCloseIcon}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],10,G)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["popover-content",{"close-icon-spacing":!t.hideCloseIcon&&!(s.title||t.title)}])},[e.renderSlot(o.$slots,"content",{},void 0,!0)],2),s.footer?(e.openBlock(),e.createElementBlock("div",J,[e.renderSlot(o.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],4)],16,Z),[[e.vShow,n.value]])]),_:3})]),_:3},8,["target","use-teleport"])]),_:3},40,["onKeydown"]))}});exports.default=Q;
|
package/dist/kongponents128.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("./kongponents48.cjs"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("./kongponents48.cjs"),C=require("./kongponents175.cjs"),B=require("./kongponents178.cjs"),w=["id","aria-checked","checked","disabled","tabindex"],S={key:0,class:"radio-description"},N=["data-testid","for","tabindex"],$={key:0,class:"card-content-wrapper"},E={key:1,class:"card-label-container"},K={key:0,class:"radio-label"},T={key:1,class:"radio-description"},R={inheritAttrs:!1},A=e.defineComponent({...R,__name:"KRadio",props:{modelValue:{},label:{default:""},labelAttributes:{default:()=>({})},description:{default:""},selectedValue:{},error:{type:Boolean},card:{type:Boolean},cardRadioVisible:{type:Boolean,default:!0},cardOrientation:{default:"vertical"},type:{default:""}},emits:["change","update:modelValue"],setup(t,{emit:h}){e.watch(()=>t.labelAttributes,a=>{a.help&&console.warn("KRadio: `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")},{deep:!0,immediate:!0}),e.watch(()=>t.type,a=>{a&&console.warn("KRadio: `type` prop is deprecated. Please use `card` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kradio")},{immediate:!0});const s=h,l=e.useSlots(),o=e.useAttrs(),b=e.useId(),r=e.computed(()=>o.id?String(o.id):b),d=e.computed(()=>(o==null?void 0:o.disabled)!==void 0&&String(o==null?void 0:o.disabled)!=="false"),k=e.computed(()=>!!(t.label||l.default)),n=e.computed(()=>k.value&&(!!t.description||!!l.description)),c=e.computed(()=>!!t.label&&(!!t.description||!!l.description)),p=e.computed(()=>!!l.tooltip),i=e.computed(()=>t.selectedValue===t.modelValue),u=()=>{s("change",t.selectedValue),s("update:modelValue",t.selectedValue)},v=e.computed(()=>{const a={...o};return delete a.class,a}),f=e.computed(()=>({disabled:d.value,"radio-card":t.card||t.type==="card","input-error":t.error,checked:i.value,"has-description":n.value,"card-horizontal":t.card&&t.cardOrientation==="horizontal","card-vertical":t.card&&t.cardOrientation!=="horizontal"})),g=e.computed(()=>t.card&&o["data-testid"]?`${o["data-testid"]}-label`:void 0);return(a,m)=>{const y=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-radio",[a.$attrs.class?a.$attrs.class:"",f.value]])},[e.createElementVNode("input",e.mergeProps({id:r.value},v.value,{"aria-checked":i.value,checked:i.value,class:["radio-input",{hidden:t.card&&!t.cardRadioVisible}],disabled:d.value,tabindex:t.card||d.value||i.value?-1:0,type:"radio",onClick:u}),null,16,w),!t.card&&(t.label||a.$slots.default)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["radio-label-wrapper",{"has-description":n.value}])},[e.createVNode(V.default,e.mergeProps(t.labelAttributes,{class:"radio-label",for:r.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)]),_:2},[p.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for"]),n.value?(e.openBlock(),e.createElementBlock("div",S,[e.renderSlot(a.$slots,"description",{},()=>[e.createElementVNode("p",null,e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)],2)):t.label||a.$slots.default?(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["radio-card-wrapper radio-label-wrapper",{"has-label":t.label,"has-description":c.value,"show-radio":t.cardRadioVisible}]),"data-testid":g.value,for:r.value,tabindex:d.value||i.value?-1:0,onKeydown:m[0]||(m[0]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),onKeyup:e.withKeys(u,["space"])},[a.$slots.default?(e.openBlock(),e.createElementBlock("span",$,[e.renderSlot(a.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.label||c.value?(e.openBlock(),e.createElementBlock("span",E,[t.label?(e.openBlock(),e.createElementBlock("span",K,[e.createTextVNode(e.toDisplayString(t.label)+" ",1),l.tooltip?(e.openBlock(),e.createBlock(y,{key:0,class:"label-tooltip"},{content:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(C.default),{class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(B.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["color"])]),_:3})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("span",T,[e.renderSlot(a.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],42,N)):e.createCommentVNode("",!0)],2)}}});exports.default=A;
|
package/dist/kongponents130.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),g=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),g=require("./kongponents180.cjs"),f={class:"k-segmented-control"},k=["data-testid","disabled","onClick"],y=l.defineComponent({__name:"KSegmentedControl",props:{modelValue:{},options:{},size:{default:"small"},disabled:{type:Boolean}},emits:["click","update:modelValue"],setup(a,{emit:u}){const i=t=>t.every(e=>e.value!==void 0),c=t=>{const e=[];return t.forEach(n=>e.push(n.value+"")),e},d=t=>{const e=c(t),n=new Set(e);return e.length===n.size},o=t=>t.map(e=>({label:typeof e=="string"?e:e.label||e.value+"",value:typeof e=="string"?e.toLocaleLowerCase().replace(" ","-"):e.value,disabled:typeof e=="string"?!1:e.disabled})),v=t=>{const e=typeof t[0]=="string",n=o(t),s=d(n);return e?s&&i(n):s};l.watch(()=>a.options,t=>{v(t)||g.warnInvalidProp("options","The options prop must be an array of unique strings or objects with a unique value property.")},{immediate:!0});const r=u,m=l.computed(()=>o(a.options)),p=t=>!!t.disabled||a.disabled,b=t=>{r("click",t.value),r("update:modelValue",t.value)};return(t,e)=>(l.openBlock(),l.createElementBlock("div",f,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m.value,n=>(l.openBlock(),l.createElementBlock("button",{key:`${n.value}-option`,class:l.normalizeClass(["segmented-control-button",[a.size,{selected:a.modelValue===n.value}]]),"data-testid":`${n.value}-option`,disabled:p(n),type:"button",onClick:s=>b(n)},[l.renderSlot(t.$slots,"option-label",{option:n},()=>[l.createTextVNode(l.toDisplayString(n.label),1)],!0)],10,k))),128))]))}});exports.default=y;
|
package/dist/kongponents132.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),de=require("./kongponents172.cjs"),ve=require("./kongponents48.cjs"),fe=require("./kongponents46.cjs"),me=require("./kongponents53.cjs"),pe=require("./kongponents20.cjs"),be=require("./kongponents227.cjs"),ke=require("./kongponents228.cjs"),he=require("./kongponents196.cjs"),ge=require("./kongponents183.cjs"),ye=require("./kongponents191.cjs"),Ce=require("./kongponents200.cjs"),D=require("./kongponents168.cjs"),we=require("./kongponents182.cjs"),Se=require("./kongponents151.cjs"),O=require("./kongponents171.cjs"),Be=require("./kongponents175.cjs"),Ie=["id"],Fe=["aria-live"],qe={key:0,class:"select-loading","data-propagate-clicks":"false","data-testid":"select-loading"},$e={key:1,class:"select-items-container","data-propagate-clicks":"false"},xe={key:1,class:"dropdown-footer dropdown-footer-static"},Ee={key:2,class:"select-empty","data-propagate-clicks":"false"},Ne={key:0,class:"dropdown-footer dropdown-footer-sticky"},Ve=e.defineComponent({inheritAttrs:!1,__name:"KSelect",props:{modelValue:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},label:{default:""},labelAttributes:{default:()=>({})},width:{default:"100%"},placeholder:{default:""},items:{default:()=>[]},enableFiltering:{type:Boolean},filterFunction:{default:()=>(l=>{var g;return(g=l.items)==null?void 0:g.filter(B=>{var c,v;return(v=B.label)==null?void 0:v.toLowerCase().includes((c=l.query)==null?void 0:c.toLowerCase())})})},loading:{type:Boolean},clearable:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{default:"sticky"},reuseItemTemplate:{type:Boolean},enableItemCreation:{type:Boolean},itemCreationValidator:{type:Function,default:()=>!0},error:{type:Boolean},help:{default:""}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(l,{emit:g}){e.useCssVars(t=>({v07af4867:Q.value,v2fed7f55:C.value,v13a2df9a:G.value}));const{stripRequiredLabel:B}=de.default(),c=g,v=e.useAttrs(),m=e.useSlots(),R=e.useId(),N=e.computed(()=>v.id?String(v.id):R),I=e.ref(!1),F=e.ref(),L=e.computed(()=>{var t;return!!((t=l.labelAttributes)!=null&&t.info||m["label-tooltip"])}),V=e.computed(()=>v.required!==void 0&&String(v.required)!=="false"),p=e.computed(()=>v.disabled!==void 0&&String(v.disabled)!=="false"),y=e.computed(()=>v.readonly!==void 0&&String(v.readonly)!=="false"),A={popoverClasses:`k-select-popover select-popover ${l.dropdownFooterText||m["dropdown-footer-text"]?`has-${l.dropdownFooterTextPosition}-dropdown-footer`:""}`,popoverTimeout:0,placement:"bottom-start",hideCaret:!0},W=e.ref(0),M=e.useTemplateRef("inputElement"),U=e.computed(()=>B(l.label,V.value)),b=e.ref(!1),i=e.ref(""),K=e.computed(()=>{var t,o;return!(!i.value||(o=(t=n.value)==null?void 0:t.filter(r=>r.label===i.value))!=null&&o.length)}),H=e.useId(),s=e.ref(null),n=e.ref([]),k=e.ref(!1),q=e.useTemplateRef("popperElement"),f=e.useTemplateRef("selectWrapperElement"),J=e.computed({get(){return l.modelValue},set(t){var r;const o=(r=n.value)==null?void 0:r.filter(a=>a.value===t);o!=null&&o.length?w(o[0]):t||x()}}),Q=e.computed(()=>O.normalizeSize(l.width||"100%")),C=e.ref(""),j=e.computed(()=>{const t={...v};return delete t.class,t}),Y=e.computed(()=>{var t;return{...A,...l.kpopAttributes,popoverClasses:`${A.popoverClasses} ${((t=l.kpopAttributes)==null?void 0:t.popoverClasses)??""}`,width:String(C.value),maxWidth:String(C.value),disabled:p.value||y.value}}),G=e.computed(()=>O.normalizeSize(l.dropdownMaxHeight)),X=e.computed(()=>({...Y.value})),Z=e.computed(()=>l.placeholder||v.placeholder||"Select..."),_=e.computed(()=>!p.value&&l.clearable&&!!s.value),T=e.computed(()=>!!(s.value&&(m["selected-item-template"]||l.reuseItemTemplate&&m["item-template"]))),$=e.computed(()=>{let t=[];if(!l.enableFiltering||!i.value)t=n.value;else{const a=l.filterFunction({query:i.value,items:n.value});t=a===!0?n.value:a}const o=t.filter(a=>!a.group),r=t.filter(a=>a.group).sort((a,u)=>a.group.toLowerCase().localeCompare(u.group.toLowerCase()));return[...o,...r]}),ee=t=>{if(!l.enableFiltering)return t.preventDefault(),!1},te=t=>{l.enableItemCreation&&P(),t.preventDefault()},P=()=>{var r,a;if(!l.enableItemCreation||!i.value||!K.value||!l.itemCreationValidator(i.value))return;const t=(((r=n.value)==null?void 0:r.length)||0)+1,o={label:D.sanitizeInput(i.value),value:Se.getUniqueStringId(),key:`${(a=D.sanitizeInput(i.value).replace(/ /gi,"-"))==null?void 0:a.replace(/[^a-z0-9-_]/gi,"")}-${t}`,custom:!0};c("item-added",o),w(o,!0),i.value=""},w=(t,o)=>{var r,a;o&&((r=n.value)==null||r.push(t)),(a=n.value)==null||a.forEach((u,S)=>{var h;u.key===t.key?(u.selected=!0,s.value=u):u.selected?(u.selected=!1,u.custom&&((h=n.value)==null||h.splice(S,1),c("item-removed",u))):u.selected=!1}),b.value=!0,i.value=t.label},x=()=>{var t;(t=n.value)==null||t.forEach((o,r)=>{var a;o.selected=!1,o.custom&&((a=n.value)==null||a.splice(r,1),c("item-removed",o))}),s.value=null,i.value="",c("input",null),c("change",null),c("update:modelValue",null)},z=e.useTemplateRef("kSelectItems"),le=(t,o)=>{var a,u;if(t.keyCode===27){o.value=!1;return}const r=(a=f.value)==null?void 0:a.children[0];!o.value&&r&&r.click(),(t.key==="ArrowDown"||t.key==="ArrowUp")&&o.value&&((u=z.value)==null||u.setFocus(t.key==="ArrowDown"?"down":"up"))},oe=t=>{i.value!==t&&(i.value=t)},ae=()=>{k.value=!0},re=()=>{k.value=!1},ne=()=>{var t,o,r;l.enableFiltering||(r=(o=(t=M.value)==null?void 0:t.$el)==null?void 0:o.querySelector("input"))==null||r.blur()},ue=t=>{var o;(p.value||((o=t==null?void 0:t.target)==null?void 0:o.dataset.propagateClicks)==="false")&&t.stopPropagation()},ie=t=>{t()},se=(t,o)=>{I.value=!1,s.value?(b.value=!0,i.value=s.value.label):i.value="",o&&t()},ce=t=>{I.value=!0,l.enableFiltering&&(i.value=""),t()};return e.watch(J,(t,o)=>{var r;if(t!==o){const a=(r=n.value)==null?void 0:r.filter(u=>u.value===t);a!=null&&a.length?w(a[0]):t||x()}}),e.watch(()=>l.items,(t,o)=>{var r,a,u,S,h;if(JSON.stringify(t)!==JSON.stringify(o)){n.value=JSON.parse(JSON.stringify(l.items)),(r=n.value)!=null&&r.length&&(s.value=null);for(let d=0;d<((a=n.value)==null?void 0:a.length);d++){n.value[d].selected===void 0&&(n.value[d].selected=!1);let E=`${(S=(u=n.value[d].label)==null?void 0:u.replace(/ /gi,"-"))==null?void 0:S.replace(/[^a-z0-9-_]/gi,"")}-${d}`;E.includes("undefined")&&(E=`select-item-label-${d}`),n.value[d].key=E,(n.value[d].value===l.modelValue||n.value[d].selected)&&(n.value[d].selected=!0,s.value=n.value[d],k.value||(b.value=!0,i.value=s.value.label)),((h=s.value)==null?void 0:h.value)===n.value[d].value&&(n.value[d].selected=!0)}q.value&&typeof q.value.updatePopper=="function"&&e.nextTick(()=>{q.value.updatePopper()})}},{deep:!0,immediate:!0}),e.watch(i,t=>{b.value&&t||(c("query-change",t),b.value=!1)}),e.watch(s,(t,o)=>{t&&t!==o&&(c("selected",t),c("input",t.value),c("change",t),c("update:modelValue",t.value))},{deep:!0}),e.onMounted(()=>{f.value&&(F.value=Ce.ResizeObserverHelper.create(()=>{var t;C.value=`${(t=f.value)==null?void 0:t.offsetWidth}px`}),F.value.observe(f.value)),we.useEventListener(document,"keydown",t=>{var o,r;!l.enableFiltering&&((o=document.activeElement)==null?void 0:o.tagName)==="BODY"&&!k.value&&I.value&&(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),(r=z.value)==null||r.setFocus(t.key==="ArrowDown"?"down":"up"))})}),e.onBeforeUnmount(()=>{var t;f.value&&((t=F.value)==null||t.unobserve(f.value))}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-select",[t.$attrs.class]])},[l.label?(e.openBlock(),e.createBlock(ve.default,e.mergeProps({key:0,"data-testid":"select-label"},l.labelAttributes,{for:N.value,required:V.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.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.createVNode(pe.default,null,{default:e.withCtx(({toggle:r,isToggled:a})=>[e.createVNode(me.default,e.mergeProps({ref:"popperElement"},X.value,{"close-on-popover-click":"","hide-close-icon":"",offset:e.unref(Be.KUI_SPACE_40),onClose:()=>se(r,a.value),onOpen:()=>ce(r),onPopoverClick:()=>ie(r)}),{content:e.withCtx(()=>[e.createElementVNode("div",{"aria-live":l.enableFiltering?"polite":"off"},[l.enableFiltering&&l.loading?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(ye.default),{class:"loading-icon",title:"Loading"})],!0)])):(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(be.default,{ref:"kSelectItems","filter-string":i.value,"item-creation-enabled":l.enableItemCreation&&K.value,"item-creation-valid":l.itemCreationValidator(i.value),items:$.value,onAddItem:P,onSelected:w},{content:e.withCtx(({item:u})=>[e.renderSlot(t.$slots,"item-template",{item:u},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!$.value.length&&!t.$slots.empty&&!l.enableItemCreation?(e.openBlock(),e.createBlock(ke.default,{key:0,item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),(l.dropdownFooterText||t.$slots["dropdown-footer-text"])&&l.dropdownFooterTextPosition==="static"?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0)])):e.createCommentVNode("",!0)])),!l.loading&&!$.value.length&&t.$slots.empty?(e.openBlock(),e.createElementBlock("div",Ee,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],8,Fe),(l.dropdownFooterText||t.$slots["dropdown-footer-text"])&&l.dropdownFooterTextPosition==="sticky"?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0)])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{id:e.unref(H),ref:"selectWrapperElement",class:"select-wrapper","data-testid":"select-wrapper",role:"listbox",onClick:ue},[(e.openBlock(),e.createBlock(fe.default,e.mergeProps({id:N.value,key:W.value,ref:"inputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:["select-input",{"filtering-disabled":!l.enableFiltering,"hide-model-value":T.value&&(!l.enableFiltering||!a.value),"input-has-focus":k.value||a.value}],"data-testid":"select-input",disabled:p.value,error:l.error,"model-value":i.value,placeholder:s.value&&!l.enableFiltering?s.value.label:Z.value,readonly:y.value,spellcheck:"false"},j.value,{onBlur:re,onClick:ne,onFocus:ae,onKeydown:e.withKeys(te,["enter"]),onKeypress:ee,onKeyup:[u=>le(u,a),o[0]||(o[0]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":oe}),e.createSlots({after:e.withCtx(()=>[_.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"clear-selection-button","data-testid":"clear-selection-icon",type:"button",onClick:e.withModifiers(x,["stop"])},[e.createVNode(e.unref(ge.default),{decorative:""})])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(he.default),{key:1,class:e.normalizeClass(["chevron-down-icon",{disabled:p.value}]),decorative:""},null,8,["class"]))]),_:2},[m.before?{name:"before",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"before",{},void 0,!0)]),key:"0"}:void 0,t.$slots["label-tooltip"]?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"1"}:void 0]),1040,["id","class","disabled","error","model-value","placeholder","readonly","onKeyup"])),e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[T.value&&(!l.enableFiltering||!a.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["custom-selected-item-wrapper",{clearable:l.clearable,readonly:y.value}])},[e.renderSlot(t.$slots,"selected-item-template",{item:s.value},()=>[e.renderSlot(t.$slots,"item-template",{item:s.value},void 0,!0)],!0)],2)):e.createCommentVNode("",!0)]),_:2},1024)],8,Ie)]),_:2},1040,["offset","onClose","onOpen","onPopoverClick"])]),_:3}),l.help?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["help-text",{"select-error":l.error}])},e.toDisplayString(l.help),3)):e.createCommentVNode("",!0)],2))}});exports.default=Ve;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),de=require("./kongponents182.cjs"),ve=require("./kongponents48.cjs"),fe=require("./kongponents46.cjs"),me=require("./kongponents53.cjs"),pe=require("./kongponents20.cjs"),be=require("./kongponents209.cjs"),ke=require("./kongponents210.cjs"),he=require("./kongponents203.cjs"),ge=require("./kongponents173.cjs"),ye=require("./kongponents193.cjs"),Ce=require("./kongponents205.cjs"),D=require("./kongponents168.cjs"),we=require("./kongponents208.cjs"),Se=require("./kongponents151.cjs"),O=require("./kongponents171.cjs"),Be=require("./kongponents178.cjs"),Ie=["id"],Fe=["aria-live"],qe={key:0,class:"select-loading","data-propagate-clicks":"false","data-testid":"select-loading"},$e={key:1,class:"select-items-container","data-propagate-clicks":"false"},xe={key:1,class:"dropdown-footer dropdown-footer-static"},Ee={key:2,class:"select-empty","data-propagate-clicks":"false"},Ne={key:0,class:"dropdown-footer dropdown-footer-sticky"},Ve=e.defineComponent({inheritAttrs:!1,__name:"KSelect",props:{modelValue:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},label:{default:""},labelAttributes:{default:()=>({})},width:{default:"100%"},placeholder:{default:""},items:{default:()=>[]},enableFiltering:{type:Boolean},filterFunction:{default:()=>(l=>{var g;return(g=l.items)==null?void 0:g.filter(B=>{var c,v;return(v=B.label)==null?void 0:v.toLowerCase().includes((c=l.query)==null?void 0:c.toLowerCase())})})},loading:{type:Boolean},clearable:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{default:"sticky"},reuseItemTemplate:{type:Boolean},enableItemCreation:{type:Boolean},itemCreationValidator:{type:Function,default:()=>!0},error:{type:Boolean},help:{default:""}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(l,{emit:g}){e.useCssVars(t=>({v07af4867:Q.value,v2fed7f55:C.value,v13a2df9a:G.value}));const{stripRequiredLabel:B}=de.default(),c=g,v=e.useAttrs(),m=e.useSlots(),R=e.useId(),N=e.computed(()=>v.id?String(v.id):R),I=e.ref(!1),F=e.ref(),L=e.computed(()=>{var t;return!!((t=l.labelAttributes)!=null&&t.info||m["label-tooltip"])}),V=e.computed(()=>v.required!==void 0&&String(v.required)!=="false"),p=e.computed(()=>v.disabled!==void 0&&String(v.disabled)!=="false"),y=e.computed(()=>v.readonly!==void 0&&String(v.readonly)!=="false"),A={popoverClasses:`k-select-popover select-popover ${l.dropdownFooterText||m["dropdown-footer-text"]?`has-${l.dropdownFooterTextPosition}-dropdown-footer`:""}`,popoverTimeout:0,placement:"bottom-start",hideCaret:!0},W=e.ref(0),M=e.useTemplateRef("inputElement"),U=e.computed(()=>B(l.label,V.value)),b=e.ref(!1),i=e.ref(""),K=e.computed(()=>{var t,o;return!(!i.value||(o=(t=n.value)==null?void 0:t.filter(r=>r.label===i.value))!=null&&o.length)}),H=e.useId(),s=e.ref(null),n=e.ref([]),k=e.ref(!1),q=e.useTemplateRef("popperElement"),f=e.useTemplateRef("selectWrapperElement"),J=e.computed({get(){return l.modelValue},set(t){var r;const o=(r=n.value)==null?void 0:r.filter(a=>a.value===t);o!=null&&o.length?w(o[0]):t||x()}}),Q=e.computed(()=>O.normalizeSize(l.width||"100%")),C=e.ref(""),j=e.computed(()=>{const t={...v};return delete t.class,t}),Y=e.computed(()=>{var t;return{...A,...l.kpopAttributes,popoverClasses:`${A.popoverClasses} ${((t=l.kpopAttributes)==null?void 0:t.popoverClasses)??""}`,width:String(C.value),maxWidth:String(C.value),disabled:p.value||y.value}}),G=e.computed(()=>O.normalizeSize(l.dropdownMaxHeight)),X=e.computed(()=>({...Y.value})),Z=e.computed(()=>l.placeholder||v.placeholder||"Select..."),_=e.computed(()=>!p.value&&l.clearable&&!!s.value),T=e.computed(()=>!!(s.value&&(m["selected-item-template"]||l.reuseItemTemplate&&m["item-template"]))),$=e.computed(()=>{let t=[];if(!l.enableFiltering||!i.value)t=n.value;else{const a=l.filterFunction({query:i.value,items:n.value});t=a===!0?n.value:a}const o=t.filter(a=>!a.group),r=t.filter(a=>a.group).sort((a,u)=>a.group.toLowerCase().localeCompare(u.group.toLowerCase()));return[...o,...r]}),ee=t=>{if(!l.enableFiltering)return t.preventDefault(),!1},te=t=>{l.enableItemCreation&&P(),t.preventDefault()},P=()=>{var r,a;if(!l.enableItemCreation||!i.value||!K.value||!l.itemCreationValidator(i.value))return;const t=(((r=n.value)==null?void 0:r.length)||0)+1,o={label:D.sanitizeInput(i.value),value:Se.getUniqueStringId(),key:`${(a=D.sanitizeInput(i.value).replace(/ /gi,"-"))==null?void 0:a.replace(/[^a-z0-9-_]/gi,"")}-${t}`,custom:!0};c("item-added",o),w(o,!0),i.value=""},w=(t,o)=>{var r,a;o&&((r=n.value)==null||r.push(t)),(a=n.value)==null||a.forEach((u,S)=>{var h;u.key===t.key?(u.selected=!0,s.value=u):u.selected?(u.selected=!1,u.custom&&((h=n.value)==null||h.splice(S,1),c("item-removed",u))):u.selected=!1}),b.value=!0,i.value=t.label},x=()=>{var t;(t=n.value)==null||t.forEach((o,r)=>{var a;o.selected=!1,o.custom&&((a=n.value)==null||a.splice(r,1),c("item-removed",o))}),s.value=null,i.value="",c("input",null),c("change",null),c("update:modelValue",null)},z=e.useTemplateRef("kSelectItems"),le=(t,o)=>{var a,u;if(t.keyCode===27){o.value=!1;return}const r=(a=f.value)==null?void 0:a.children[0];!o.value&&r&&r.click(),(t.key==="ArrowDown"||t.key==="ArrowUp")&&o.value&&((u=z.value)==null||u.setFocus(t.key==="ArrowDown"?"down":"up"))},oe=t=>{i.value!==t&&(i.value=t)},ae=()=>{k.value=!0},re=()=>{k.value=!1},ne=()=>{var t,o,r;l.enableFiltering||(r=(o=(t=M.value)==null?void 0:t.$el)==null?void 0:o.querySelector("input"))==null||r.blur()},ue=t=>{var o;(p.value||((o=t==null?void 0:t.target)==null?void 0:o.dataset.propagateClicks)==="false")&&t.stopPropagation()},ie=t=>{t()},se=(t,o)=>{I.value=!1,s.value?(b.value=!0,i.value=s.value.label):i.value="",o&&t()},ce=t=>{I.value=!0,l.enableFiltering&&(i.value=""),t()};return e.watch(J,(t,o)=>{var r;if(t!==o){const a=(r=n.value)==null?void 0:r.filter(u=>u.value===t);a!=null&&a.length?w(a[0]):t||x()}}),e.watch(()=>l.items,(t,o)=>{var r,a,u,S,h;if(JSON.stringify(t)!==JSON.stringify(o)){n.value=JSON.parse(JSON.stringify(l.items)),(r=n.value)!=null&&r.length&&(s.value=null);for(let d=0;d<((a=n.value)==null?void 0:a.length);d++){n.value[d].selected===void 0&&(n.value[d].selected=!1);let E=`${(S=(u=n.value[d].label)==null?void 0:u.replace(/ /gi,"-"))==null?void 0:S.replace(/[^a-z0-9-_]/gi,"")}-${d}`;E.includes("undefined")&&(E=`select-item-label-${d}`),n.value[d].key=E,(n.value[d].value===l.modelValue||n.value[d].selected)&&(n.value[d].selected=!0,s.value=n.value[d],k.value||(b.value=!0,i.value=s.value.label)),((h=s.value)==null?void 0:h.value)===n.value[d].value&&(n.value[d].selected=!0)}q.value&&typeof q.value.updatePopper=="function"&&e.nextTick(()=>{q.value.updatePopper()})}},{deep:!0,immediate:!0}),e.watch(i,t=>{b.value&&t||(c("query-change",t),b.value=!1)}),e.watch(s,(t,o)=>{t&&t!==o&&(c("selected",t),c("input",t.value),c("change",t),c("update:modelValue",t.value))},{deep:!0}),e.onMounted(()=>{f.value&&(F.value=Ce.ResizeObserverHelper.create(()=>{var t;C.value=`${(t=f.value)==null?void 0:t.offsetWidth}px`}),F.value.observe(f.value)),we.useEventListener(document,"keydown",t=>{var o,r;!l.enableFiltering&&((o=document.activeElement)==null?void 0:o.tagName)==="BODY"&&!k.value&&I.value&&(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),(r=z.value)==null||r.setFocus(t.key==="ArrowDown"?"down":"up"))})}),e.onBeforeUnmount(()=>{var t;f.value&&((t=F.value)==null||t.unobserve(f.value))}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-select",[t.$attrs.class]])},[l.label?(e.openBlock(),e.createBlock(ve.default,e.mergeProps({key:0,"data-testid":"select-label"},l.labelAttributes,{for:N.value,required:V.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.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.createVNode(pe.default,null,{default:e.withCtx(({toggle:r,isToggled:a})=>[e.createVNode(me.default,e.mergeProps({ref:"popperElement"},X.value,{"close-on-popover-click":"","hide-close-icon":"",offset:e.unref(Be.KUI_SPACE_40),onClose:()=>se(r,a.value),onOpen:()=>ce(r),onPopoverClick:()=>ie(r)}),{content:e.withCtx(()=>[e.createElementVNode("div",{"aria-live":l.enableFiltering?"polite":"off"},[l.enableFiltering&&l.loading?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(ye.default),{class:"loading-icon",title:"Loading"})],!0)])):(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(be.default,{ref:"kSelectItems","filter-string":i.value,"item-creation-enabled":l.enableItemCreation&&K.value,"item-creation-valid":l.itemCreationValidator(i.value),items:$.value,onAddItem:P,onSelected:w},{content:e.withCtx(({item:u})=>[e.renderSlot(t.$slots,"item-template",{item:u},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!$.value.length&&!t.$slots.empty&&!l.enableItemCreation?(e.openBlock(),e.createBlock(ke.default,{key:0,item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),(l.dropdownFooterText||t.$slots["dropdown-footer-text"])&&l.dropdownFooterTextPosition==="static"?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0)])):e.createCommentVNode("",!0)])),!l.loading&&!$.value.length&&t.$slots.empty?(e.openBlock(),e.createElementBlock("div",Ee,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],8,Fe),(l.dropdownFooterText||t.$slots["dropdown-footer-text"])&&l.dropdownFooterTextPosition==="sticky"?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0)])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{id:e.unref(H),ref:"selectWrapperElement",class:"select-wrapper","data-testid":"select-wrapper",role:"listbox",onClick:ue},[(e.openBlock(),e.createBlock(fe.default,e.mergeProps({id:N.value,key:W.value,ref:"inputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:["select-input",{"filtering-disabled":!l.enableFiltering,"hide-model-value":T.value&&(!l.enableFiltering||!a.value),"input-has-focus":k.value||a.value}],"data-testid":"select-input",disabled:p.value,error:l.error,"model-value":i.value,placeholder:s.value&&!l.enableFiltering?s.value.label:Z.value,readonly:y.value,spellcheck:"false"},j.value,{onBlur:re,onClick:ne,onFocus:ae,onKeydown:e.withKeys(te,["enter"]),onKeypress:ee,onKeyup:[u=>le(u,a),o[0]||(o[0]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":oe}),e.createSlots({after:e.withCtx(()=>[_.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"clear-selection-button","data-testid":"clear-selection-icon",type:"button",onClick:e.withModifiers(x,["stop"])},[e.createVNode(e.unref(ge.default),{decorative:""})])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(he.default),{key:1,class:e.normalizeClass(["chevron-down-icon",{disabled:p.value}]),decorative:""},null,8,["class"]))]),_:2},[m.before?{name:"before",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"before",{},void 0,!0)]),key:"0"}:void 0,t.$slots["label-tooltip"]?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"1"}:void 0]),1040,["id","class","disabled","error","model-value","placeholder","readonly","onKeyup"])),e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[T.value&&(!l.enableFiltering||!a.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["custom-selected-item-wrapper",{clearable:l.clearable,readonly:y.value}])},[e.renderSlot(t.$slots,"selected-item-template",{item:s.value},()=>[e.renderSlot(t.$slots,"item-template",{item:s.value},void 0,!0)],!0)],2)):e.createCommentVNode("",!0)]),_:2},1024)],8,Ie)]),_:2},1040,["offset","onClose","onOpen","onPopoverClick"])]),_:3}),l.help?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["help-text",{"select-error":l.error}])},e.toDisplayString(l.help),3)):e.createCommentVNode("",!0)],2))}});exports.default=Ve;
|
package/dist/kongponents139.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents208.cjs"),u=require("./kongponents173.cjs"),f=require("./kongponents178.cjs"),m=require("./kongponents171.cjs"),v={class:"k-slideout"},k={key:0,ref:"slideoutContainerElement",class:"slideout-container","data-testid":"slideout-container"},y={class:"slideout-header"},C={key:0,class:"slideout-title","data-testid":"slideout-title"},E={class:"slideout-content"},h=e.defineComponent({__name:"KSlideout",props:{visible:{type:Boolean},hasOverlay:{type:Boolean,default:!0},offsetTop:{default:0},closeOnBlur:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},title:{default:""},maxWidth:{default:"500px"},zIndex:{default:9999}},emits:["close"],setup(o,{emit:a}){e.useCssVars(t=>({fe411dca:c.value,v097e7e0e:t.maxWidth,v3afc0278:t.zIndex}));const s=a,d=e.useTemplateRef("slideoutContainerElement"),c=e.computed(()=>m.normalizeSize(o.offsetTop));r.onClickOutside(d,t=>{t.isTrusted&&o.closeOnBlur&&s("close")});const i=(t,n=!1)=>{(o.visible&&t.keyCode===27&&o.closeOnEscape||n)&&s("close")},l=t=>{typeof document<"u"&&(t?document==null||document.addEventListener("keydown",i):document==null||document.removeEventListener("keydown",i))};return e.watch(()=>o.visible,async t=>{l(!!t)},{immediate:!0}),e.onUnmounted(()=>{l(!1)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[o.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slideout-backdrop",{"backdrop-transparent":!o.hasOverlay}])},null,2)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"kongponents-slide-in-transition"},{default:e.withCtx(()=>[o.visible?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",y,[o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",C,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"Close",class:"slideout-close-icon","data-testid":"slideout-close-icon",type:"button",onClick:n[0]||(n[0]=e.withModifiers(B=>t.$emit("close"),["stop"]))},[e.createVNode(e.unref(u.default),{color:`var(--kui-color-text-neutral, ${e.unref(f.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])])]),e.createElementVNode("div",E,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],512)):e.createCommentVNode("",!0)]),_:3})]))}});exports.default=h;
|
package/dist/kongponents141.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("./kongponents214.cjs"),n={key:0,class:"k-stepper"},r=e.defineComponent({__name:"KStepper",props:{steps:{},maxLabelWidth:{default:"170px"}},setup(t){return(s,c)=>t.steps&&t.steps.length?(e.openBlock(),e.createElementBlock("ol",n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.steps,l=>(e.openBlock(),e.createBlock(a.default,{key:`step-${l.label.replace(/ /gi,"-")}`,label:l.label,"max-label-width":t.maxLabelWidth,state:l.state},null,8,["label","max-label-width","state"]))),128))])):e.createCommentVNode("",!0)}});exports.default=r;
|
package/dist/kongponents143.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ve=require("./kongponents33.cjs"),fe=require("./kongponents44.cjs"),De=require("./kongponents21.cjs");;/* empty css */const Ge=require("./kongponents52.cjs"),Je=require("./kongponents24.cjs");;/* empty css */const Xe=require("./kongponents187.cjs"),Ze=require("./kongponents204.cjs"),Qe=require("./kongponents172.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const Ye=require("./kongponents11.cjs"),K=require("./kongponents175.cjs"),_e=require("./kongponents226.cjs"),et=require("./kongponents171.cjs"),ge=require("./kongponents169.cjs"),tt={class:"k-table"},at={key:0,class:"table-toolbar","data-testid":"table-toolbar"},lt={key:0,class:"toolbar-default-items-container"},ot={key:2,class:"table-error-state","data-testid":"table-error-state"},rt={key:3,class:"table-empty-state","data-testid":"table-empty-state"},nt={key:4,class:"table-container"},st=["data-tableid"],it=["aria-sort","data-testid","onClick","onMouseover"],ut=["onMousedown","onMouseover"],ct=["aria-describedby"],dt=["onMousedown","onMouseover"],vt=["role","tabindex"],ft=e.defineComponent({__name:"KTable",props:{resizeColumns:{type:Boolean,default:!1},tablePreferences:{type:Object,default:()=>({})},clientSort:{type:Boolean,default:!1},rowHover:{type:Boolean,default:!0},sortHandlerFunction:{type:Function,default:()=>({})},rowAttrs:{type:Function,default:()=>({})},cellAttrs:{type:Function,default:()=>({})},loading:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateIconVariant:{type:String,default:Ye.EmptyStateIconVariants.Default},error:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},fetcher:{type:Function,default:void 0,required:!0},fetcherCacheKey:{type:String,default:""},cacheIdentifier:{type:String,default:""},searchInput:{type:String,default:""},headers:{type:Array,default:()=>[]},initialFetcherParams:{type:Object,default:null},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:r=>!!r.length&&r.every(L=>typeof L=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},disablePagination:{type:Boolean,default:!1},paginationOffset:{type:Boolean,default:!1},hidePaginationWhenOptional:{type:Boolean,default:!1},maxHeight:{type:String,default:"none"}},emits:["cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","state"],setup(r,{emit:L}){e.useCssVars(t=>({ae6ef3f8:Ee.value}));const{useDebounce:W,useRequest:pe,useSwrvState:me,clientSideSorter:D}=Qe.default(),o=r,V=L,G=e.useAttrs(),ye=e.useSlots(),m=e.useId(),C={pageSize:15,page:1,query:"",sortColumnKey:"",sortColumnOrder:"desc",offset:null},p=e.ref([]),J=e.ref(),P=e.ref([]),y=e.ref([]),O=e.ref(""),z=e.ref(""),T=e.ref(""),X=e.computed(()=>P.value.filter(t=>t.hidable).length>0),A=e.computed(()=>!!(X.value&&!o.error&&!S.value&&!o.loading&&p.value&&p.value.length)),be=e.computed(()=>P.value.filter(t=>t.hidable)),he=e.computed(()=>A.value?o.tablePreferences.columnVisibility||{}:{}),M=e.ref(A.value?o.tablePreferences.columnVisibility||{}:{}),F=e.ref(0),B=e.ref(!1),u=e.ref(1),N=e.ref(15),Z=e.ref(""),f=e.ref(""),d=e.ref("desc"),k=e.ref(null),b=e.ref([]),Q=e.ref(!0),H=e.ref(!1),R=e.ref(!1),ke=e.computed(()=>!!ye.toolbar||A.value),Se=e.computed(()=>({maxHeight:et.normalizeSize(o.maxHeight)})),Ce=t=>`column-${t}`,E=t=>`tooltip-${t}`,x=t=>t,Y=(t,l)=>(a,n)=>{const s=/^on[^a-z]/,i={};for(const c in l)s.test(c)&&l[c]&&(i[c]=l[c]);return Object.keys(i).reduce((c,h)=>{if(h.indexOf(t)===0){const v=h.split(t);c[v[1]]=g=>i[h](g,a,n)}return c},{})},ze=e.computed(()=>(t,l)=>{const a=Y("onRow:",G)(l,"row"),n=Y("onCell:",G)(t,"cell"),s=["a","button","label","input","select"];return a.click&&(H.value=!0),{...a,...n,click(i){const c=i.target.className;let h=s.includes(i.target.tagName.toLowerCase()),v=!1;typeof c=="string"||Array.isArray(c)?v=c.includes("k-popover"):typeof c=="object"&&(v=Object.keys(c).includes("k-popover")),i.target.closest(".popover-content")!==null&&(v=!0);for(let g=0;g<s.length;g++)if(i.target.closest(s[g])!==null){h=!0;break}if((!h||i.target.hasAttribute("disabled"))&&!v&&(a.click||n.click))if(n.click){V("cell-click",{data:t});const g=n.click(i,t,"cell");typeof g=="function"&&g(i,t)}else{V("row-click",{data:l});const g=a.click(i,l,"row");typeof g=="function"&&g(i,l)}}}}),w=e.ref(o.resizeColumns?o.tablePreferences.columnWidths||{}:{}),_=e.computed(()=>{const t={};for(const l in w.value){if(!w.value[l])continue;const a=w.value[l]+"px";t[l]={width:a,maxWidth:a,minWidth:a}}return t}),Be=(t,l)=>({"resize-hover":ee.value===t.key&&o.resizeColumns&&l!==y.value.length-1,resizable:o.resizeColumns,sortable:o.sortable&&!t.hideLabel&&!!t.sortable,"active-sort":o.sortable&&!t.hideLabel&&!!t.sortable&&t.key===f.value,[d.value]:o.sortable&&t.key===f.value&&!t.hideLabel,"is-scrolled":B.value,"has-tooltip":!!t.tooltip}),Ne=e.computed(()=>O.value?"resizing":z.value?"resize-hover":T.value?"th-hover":""),ee=e.computed(()=>{switch(Ne.value){case"resizing":return O.value;case"resize-hover":return z.value;case"th-hover":return T.value;default:return""}}),te=e.computed(()=>{var t;return(t=J.value)==null?void 0:t.querySelectorAll("th.resizable")}),Ee=e.computed(()=>{var l;const t=(l=te.value)==null?void 0:l.item(0);if(t){const a=window==null?void 0:window.getComputedStyle(t);if(a!=null&&a.height)return`${parseInt(a.height,10)}px`}return"auto"}),ae=(t,l)=>{var h;if(t.button!==0)return;let a=0,n=0;O.value=l;let s=null;(h=te.value)==null||h.forEach(v=>{v.getAttribute("data-testid")===`table-header-${l}`&&(s=document==null?void 0:document.querySelector(`[data-tableid="${m}"] [data-testid="table-header-${l}"]`))});const i=v=>{const g=v.clientX-a;s==null||s.setAttribute("style",`width: ${n+g}px`),w.value[l]=n+g},c=()=>{O.value="",document==null||document.removeEventListener("mousemove",i),document==null||document.removeEventListener("mouseup",c),q()};if(a=t.clientX,s){const v=window==null?void 0:window.getComputedStyle(s);v!=null&&v.width&&(n=parseInt(v.width,10)),document==null||document.addEventListener("mousemove",i),document==null||document.addEventListener("mouseup",c)}},le=e.ref(!0),Pe=async()=>{var a,n;const t=o.searchInput,l=await o.fetcher({pageSize:N.value,page:u.value,query:t||Z.value,sortColumnKey:f.value,sortColumnOrder:d.value,offset:k.value});return p.value=l.data,F.value=o.paginationTotalItems||l.total||((a=l.data)==null?void 0:a.length),o.paginationOffset&&((n=l.pagination)!=null&&n.offset?($.value=l.pagination.offset,b.value[u.value]||b.value.push(l.pagination.offset)):$.value=null,Q.value=l.pagination&&"hasNextPage"in l.pagination?l.pagination.hasNextPage:!0),p.value.length===0&&u.value>1&&(u.value=1,b.value=[null],k.value=null),le.value=!1,l},Oe=()=>{const t={...C,...o.initialFetcherParams};u.value=t.page??C.page,N.value=t.pageSize??C.pageSize,Z.value=t.query??C.query,f.value=t.sortColumnKey??C.sortColumnKey,d.value=t.sortColumnOrder??C.sortColumnOrder,o.clientSort&&f.value&&d.value&&D(f.value,"",d.value,p.value),o.paginationOffset&&(k.value=t.offset,b.value.push(t.offset)),o.headers&&o.headers.length&&(P.value=o.headers),R.value=!0};e.watch(()=>o.headers,t=>{t&&t.length&&(P.value=t)},{deep:!0});const j=e.computed(()=>b.value[u.value-1]),$=e.ref(null),Ae=e.computed(()=>{if(!o.fetcher||!R.value)return"";let t=m;return o.cacheIdentifier&&(t=o.cacheIdentifier),o.fetcherCacheKey&&(t+=`-${o.fetcherCacheKey}`),`k-table_${t}`}),oe=e.ref(""),{debouncedFn:we,generateDebouncedFn:$e}=W(t=>{oe.value=t},350),Ie=$e(0),{data:re,error:ne,revalidate:Ve,isValidating:Te}=pe(()=>Ae.value,()=>Pe(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:U,hasData:Me,swrvState:se}=me(re,ne,Te),S=e.ref(!0),ie=e.computed(()=>({hasData:Me.value,state:U.value})),ue=e.computed(()=>S.value?"loading":ne.value?"error":"success"),{debouncedFn:ce,generateDebouncedFn:He}=W(Ve,500),qe=He(0),Ke=t=>{const{key:l,useSortHandlerFunction:a}=t,n=f.value+"";u.value=1,f.value?l===f.value?d.value==="asc"?d.value="desc":d.value="asc":(f.value=l,d.value="asc",b.value=[null]):(f.value=l,d.value="asc",b.value=[null]),o.clientSort?a&&o.sortHandlerFunction?o.sortHandlerFunction({key:l,prevKey:n,sortColumnOrder:d.value,data:p.value}):D(l,n,d.value,p.value):o.paginationOffset||ce(),q()},Le=({page:t})=>{u.value=t},Fe=({pageSize:t})=>{b.value=[null],k.value=null,N.value=t,u.value=1,q()},Re=t=>{t&&t.target&&typeof t.target.scrollTop=="number"&&(t.target.scrollTop>1?B.value=!0:t.target.scrollTop===0&&(B.value=!B.value))},xe=e.computed(()=>({pageSize:N.value,sortColumnKey:f.value,sortColumnOrder:d.value,...o.resizeColumns?{columnWidths:w.value}:{},...X.value?{columnVisibility:M.value}:{}})),q=()=>{ue.value==="success"&&V("update:table-preferences",xe.value)},je=()=>{u.value++,k.value=$.value},Ue=()=>{u.value--,k.value=j.value},We=e.computed(()=>!!(o.fetcher&&!o.disablePagination&&!(!o.paginationOffset&&o.hidePaginationWhenOptional&&F.value<=(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE))&&!(o.paginationOffset&&o.hidePaginationWhenOptional&&!j.value&&!$.value&&p.value.length<(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE)))),de=t=>t.toLowerCase().replace(/[^[a-z0-9]/gi,"-");e.watch([M,P],t=>{const l=t[0],n=t[1].filter(s=>l[s.key]!==!1);JSON.stringify(n)!==JSON.stringify(y.value)&&(y.value=n,q())},{deep:!0,immediate:!0}),e.watch(re,t=>{t!=null&&t.length&&!p.value.length&&(p.value=t)},{deep:!0,immediate:!0}),e.watch(U,()=>{switch(U.value){case se.PENDING:S.value=!0;break;case se.VALIDATING_HAS_DATA:S.value=I.value;break;default:S.value=!1;break}},{immediate:!0}),e.watch([ie,ue],t=>{var l;V("state",{state:t==null?void 0:t[1],hasData:(l=t==null?void 0:t[0])==null?void 0:l.hasData})}),e.watch(()=>o.searchInput,t=>{u.value!==1&&(u.value=1),t===""?Ie(t):we(t)},{immediate:!0});const I=e.ref(!1);return e.watch([oe,u,N],async(t,l)=>{const a=l==null?void 0:l[0],n=t[0],s=t[1];n!==a&&s!==1&&(u.value=1,b.value=[null],k.value=null),R.value&&!le.value&&(I.value=!0,n!==""&&n!==a?await ce():await qe(),I.value=!1)},{deep:!0,immediate:!0}),e.watch(A,t=>{t&&(M.value=o.tablePreferences.columnVisibility||{})},{immediate:!0}),e.onMounted(()=>{console.warn(`The Kongponents 'KTable' component is deprecated and will be removed in the next major release.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ve=require("./kongponents33.cjs"),fe=require("./kongponents44.cjs"),De=require("./kongponents21.cjs");;/* empty css */const Ge=require("./kongponents52.cjs"),Je=require("./kongponents24.cjs");;/* empty css */const Xe=require("./kongponents189.cjs"),Ze=require("./kongponents175.cjs"),Qe=require("./kongponents182.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const Ye=require("./kongponents11.cjs"),K=require("./kongponents178.cjs"),_e=require("./kongponents211.cjs"),et=require("./kongponents171.cjs"),ge=require("./kongponents169.cjs"),tt={class:"k-table"},at={key:0,class:"table-toolbar","data-testid":"table-toolbar"},lt={key:0,class:"toolbar-default-items-container"},ot={key:2,class:"table-error-state","data-testid":"table-error-state"},rt={key:3,class:"table-empty-state","data-testid":"table-empty-state"},nt={key:4,class:"table-container"},st=["data-tableid"],it=["aria-sort","data-testid","onClick","onMouseover"],ut=["onMousedown","onMouseover"],ct=["aria-describedby"],dt=["onMousedown","onMouseover"],vt=["role","tabindex"],ft=e.defineComponent({__name:"KTable",props:{resizeColumns:{type:Boolean,default:!1},tablePreferences:{type:Object,default:()=>({})},clientSort:{type:Boolean,default:!1},rowHover:{type:Boolean,default:!0},sortHandlerFunction:{type:Function,default:()=>({})},rowAttrs:{type:Function,default:()=>({})},cellAttrs:{type:Function,default:()=>({})},loading:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateIconVariant:{type:String,default:Ye.EmptyStateIconVariants.Default},error:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},fetcher:{type:Function,default:void 0,required:!0},fetcherCacheKey:{type:String,default:""},cacheIdentifier:{type:String,default:""},searchInput:{type:String,default:""},headers:{type:Array,default:()=>[]},initialFetcherParams:{type:Object,default:null},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:r=>!!r.length&&r.every(L=>typeof L=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},disablePagination:{type:Boolean,default:!1},paginationOffset:{type:Boolean,default:!1},hidePaginationWhenOptional:{type:Boolean,default:!1},maxHeight:{type:String,default:"none"}},emits:["cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","state"],setup(r,{emit:L}){e.useCssVars(t=>({ae6ef3f8:Ee.value}));const{useDebounce:W,useRequest:pe,useSwrvState:me,clientSideSorter:D}=Qe.default(),o=r,V=L,G=e.useAttrs(),ye=e.useSlots(),m=e.useId(),C={pageSize:15,page:1,query:"",sortColumnKey:"",sortColumnOrder:"desc",offset:null},p=e.ref([]),J=e.ref(),P=e.ref([]),y=e.ref([]),O=e.ref(""),z=e.ref(""),T=e.ref(""),X=e.computed(()=>P.value.filter(t=>t.hidable).length>0),A=e.computed(()=>!!(X.value&&!o.error&&!S.value&&!o.loading&&p.value&&p.value.length)),be=e.computed(()=>P.value.filter(t=>t.hidable)),he=e.computed(()=>A.value?o.tablePreferences.columnVisibility||{}:{}),M=e.ref(A.value?o.tablePreferences.columnVisibility||{}:{}),F=e.ref(0),B=e.ref(!1),u=e.ref(1),N=e.ref(15),Z=e.ref(""),f=e.ref(""),d=e.ref("desc"),k=e.ref(null),b=e.ref([]),Q=e.ref(!0),H=e.ref(!1),R=e.ref(!1),ke=e.computed(()=>!!ye.toolbar||A.value),Se=e.computed(()=>({maxHeight:et.normalizeSize(o.maxHeight)})),Ce=t=>`column-${t}`,E=t=>`tooltip-${t}`,x=t=>t,Y=(t,l)=>(a,n)=>{const s=/^on[^a-z]/,i={};for(const c in l)s.test(c)&&l[c]&&(i[c]=l[c]);return Object.keys(i).reduce((c,h)=>{if(h.indexOf(t)===0){const v=h.split(t);c[v[1]]=g=>i[h](g,a,n)}return c},{})},ze=e.computed(()=>(t,l)=>{const a=Y("onRow:",G)(l,"row"),n=Y("onCell:",G)(t,"cell"),s=["a","button","label","input","select"];return a.click&&(H.value=!0),{...a,...n,click(i){const c=i.target.className;let h=s.includes(i.target.tagName.toLowerCase()),v=!1;typeof c=="string"||Array.isArray(c)?v=c.includes("k-popover"):typeof c=="object"&&(v=Object.keys(c).includes("k-popover")),i.target.closest(".popover-content")!==null&&(v=!0);for(let g=0;g<s.length;g++)if(i.target.closest(s[g])!==null){h=!0;break}if((!h||i.target.hasAttribute("disabled"))&&!v&&(a.click||n.click))if(n.click){V("cell-click",{data:t});const g=n.click(i,t,"cell");typeof g=="function"&&g(i,t)}else{V("row-click",{data:l});const g=a.click(i,l,"row");typeof g=="function"&&g(i,l)}}}}),w=e.ref(o.resizeColumns?o.tablePreferences.columnWidths||{}:{}),_=e.computed(()=>{const t={};for(const l in w.value){if(!w.value[l])continue;const a=w.value[l]+"px";t[l]={width:a,maxWidth:a,minWidth:a}}return t}),Be=(t,l)=>({"resize-hover":ee.value===t.key&&o.resizeColumns&&l!==y.value.length-1,resizable:o.resizeColumns,sortable:o.sortable&&!t.hideLabel&&!!t.sortable,"active-sort":o.sortable&&!t.hideLabel&&!!t.sortable&&t.key===f.value,[d.value]:o.sortable&&t.key===f.value&&!t.hideLabel,"is-scrolled":B.value,"has-tooltip":!!t.tooltip}),Ne=e.computed(()=>O.value?"resizing":z.value?"resize-hover":T.value?"th-hover":""),ee=e.computed(()=>{switch(Ne.value){case"resizing":return O.value;case"resize-hover":return z.value;case"th-hover":return T.value;default:return""}}),te=e.computed(()=>{var t;return(t=J.value)==null?void 0:t.querySelectorAll("th.resizable")}),Ee=e.computed(()=>{var l;const t=(l=te.value)==null?void 0:l.item(0);if(t){const a=window==null?void 0:window.getComputedStyle(t);if(a!=null&&a.height)return`${parseInt(a.height,10)}px`}return"auto"}),ae=(t,l)=>{var h;if(t.button!==0)return;let a=0,n=0;O.value=l;let s=null;(h=te.value)==null||h.forEach(v=>{v.getAttribute("data-testid")===`table-header-${l}`&&(s=document==null?void 0:document.querySelector(`[data-tableid="${m}"] [data-testid="table-header-${l}"]`))});const i=v=>{const g=v.clientX-a;s==null||s.setAttribute("style",`width: ${n+g}px`),w.value[l]=n+g},c=()=>{O.value="",document==null||document.removeEventListener("mousemove",i),document==null||document.removeEventListener("mouseup",c),q()};if(a=t.clientX,s){const v=window==null?void 0:window.getComputedStyle(s);v!=null&&v.width&&(n=parseInt(v.width,10)),document==null||document.addEventListener("mousemove",i),document==null||document.addEventListener("mouseup",c)}},le=e.ref(!0),Pe=async()=>{var a,n;const t=o.searchInput,l=await o.fetcher({pageSize:N.value,page:u.value,query:t||Z.value,sortColumnKey:f.value,sortColumnOrder:d.value,offset:k.value});return p.value=l.data,F.value=o.paginationTotalItems||l.total||((a=l.data)==null?void 0:a.length),o.paginationOffset&&((n=l.pagination)!=null&&n.offset?($.value=l.pagination.offset,b.value[u.value]||b.value.push(l.pagination.offset)):$.value=null,Q.value=l.pagination&&"hasNextPage"in l.pagination?l.pagination.hasNextPage:!0),p.value.length===0&&u.value>1&&(u.value=1,b.value=[null],k.value=null),le.value=!1,l},Oe=()=>{const t={...C,...o.initialFetcherParams};u.value=t.page??C.page,N.value=t.pageSize??C.pageSize,Z.value=t.query??C.query,f.value=t.sortColumnKey??C.sortColumnKey,d.value=t.sortColumnOrder??C.sortColumnOrder,o.clientSort&&f.value&&d.value&&D(f.value,"",d.value,p.value),o.paginationOffset&&(k.value=t.offset,b.value.push(t.offset)),o.headers&&o.headers.length&&(P.value=o.headers),R.value=!0};e.watch(()=>o.headers,t=>{t&&t.length&&(P.value=t)},{deep:!0});const j=e.computed(()=>b.value[u.value-1]),$=e.ref(null),Ae=e.computed(()=>{if(!o.fetcher||!R.value)return"";let t=m;return o.cacheIdentifier&&(t=o.cacheIdentifier),o.fetcherCacheKey&&(t+=`-${o.fetcherCacheKey}`),`k-table_${t}`}),oe=e.ref(""),{debouncedFn:we,generateDebouncedFn:$e}=W(t=>{oe.value=t},350),Ie=$e(0),{data:re,error:ne,revalidate:Ve,isValidating:Te}=pe(()=>Ae.value,()=>Pe(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:U,hasData:Me,swrvState:se}=me(re,ne,Te),S=e.ref(!0),ie=e.computed(()=>({hasData:Me.value,state:U.value})),ue=e.computed(()=>S.value?"loading":ne.value?"error":"success"),{debouncedFn:ce,generateDebouncedFn:He}=W(Ve,500),qe=He(0),Ke=t=>{const{key:l,useSortHandlerFunction:a}=t,n=f.value+"";u.value=1,f.value?l===f.value?d.value==="asc"?d.value="desc":d.value="asc":(f.value=l,d.value="asc",b.value=[null]):(f.value=l,d.value="asc",b.value=[null]),o.clientSort?a&&o.sortHandlerFunction?o.sortHandlerFunction({key:l,prevKey:n,sortColumnOrder:d.value,data:p.value}):D(l,n,d.value,p.value):o.paginationOffset||ce(),q()},Le=({page:t})=>{u.value=t},Fe=({pageSize:t})=>{b.value=[null],k.value=null,N.value=t,u.value=1,q()},Re=t=>{t&&t.target&&typeof t.target.scrollTop=="number"&&(t.target.scrollTop>1?B.value=!0:t.target.scrollTop===0&&(B.value=!B.value))},xe=e.computed(()=>({pageSize:N.value,sortColumnKey:f.value,sortColumnOrder:d.value,...o.resizeColumns?{columnWidths:w.value}:{},...X.value?{columnVisibility:M.value}:{}})),q=()=>{ue.value==="success"&&V("update:table-preferences",xe.value)},je=()=>{u.value++,k.value=$.value},Ue=()=>{u.value--,k.value=j.value},We=e.computed(()=>!!(o.fetcher&&!o.disablePagination&&!(!o.paginationOffset&&o.hidePaginationWhenOptional&&F.value<=(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE))&&!(o.paginationOffset&&o.hidePaginationWhenOptional&&!j.value&&!$.value&&p.value.length<(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE)))),de=t=>t.toLowerCase().replace(/[^[a-z0-9]/gi,"-");e.watch([M,P],t=>{const l=t[0],n=t[1].filter(s=>l[s.key]!==!1);JSON.stringify(n)!==JSON.stringify(y.value)&&(y.value=n,q())},{deep:!0,immediate:!0}),e.watch(re,t=>{t!=null&&t.length&&!p.value.length&&(p.value=t)},{deep:!0,immediate:!0}),e.watch(U,()=>{switch(U.value){case se.PENDING:S.value=!0;break;case se.VALIDATING_HAS_DATA:S.value=I.value;break;default:S.value=!1;break}},{immediate:!0}),e.watch([ie,ue],t=>{var l;V("state",{state:t==null?void 0:t[1],hasData:(l=t==null?void 0:t[0])==null?void 0:l.hasData})}),e.watch(()=>o.searchInput,t=>{u.value!==1&&(u.value=1),t===""?Ie(t):we(t)},{immediate:!0});const I=e.ref(!1);return e.watch([oe,u,N],async(t,l)=>{const a=l==null?void 0:l[0],n=t[0],s=t[1];n!==a&&s!==1&&(u.value=1,b.value=[null],k.value=null),R.value&&!le.value&&(I.value=!0,n!==""&&n!==a?await ce():await qe(),I.value=!1)},{deep:!0,immediate:!0}),e.watch(A,t=>{t&&(M.value=o.tablePreferences.columnVisibility||{})},{immediate:!0}),e.onMounted(()=>{console.warn(`The Kongponents 'KTable' component is deprecated and will be removed in the next major release.
|
|
2
2
|
We suggest using 'KTableData' component instead.
|
|
3
3
|
Docs: https://kongponents.konghq.com/components/table-data.html`),Oe()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",tt,[ke.value?(e.openBlock(),e.createElementBlock("div",at,[e.renderSlot(t.$slots,"toolbar",{state:ie.value},void 0,!0),A.value?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(_e.default,{columns:be.value,"table-id":e.unref(m),"visibility-preferences":he.value,onUpdate:l[0]||(l[0]=a=>M.value=a)},null,8,["columns","table-id","visibility-preferences"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(S.value||r.loading||I.value)&&!r.error?(e.openBlock(),e.createBlock(De.default,{key:1,"data-testid":"table-skeleton",type:"table"})):r.error?(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(fe.default,{"icon-variant":"error",message:r.errorStateMessage,title:r.errorStateTitle},e.createSlots({_:2},[r.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ve.default,{"data-testid":de(r.errorStateActionMessage),to:r.errorStateActionRoute?r.errorStateActionRoute:void 0,onClick:l[1]||(l[1]=a=>t.$emit("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.errorStateActionMessage),1)]),_:1},8,["data-testid","to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!r.error&&!S.value&&!r.loading&&!I.value&&p.value&&!p.value.length?(e.openBlock(),e.createElementBlock("div",rt,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(fe.default,{"icon-variant":r.emptyStateIconVariant,message:r.emptyStateMessage,title:r.emptyStateTitle},e.createSlots({_:2},[r.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ve.default,{appearance:r.searchInput?"tertiary":"primary","data-testid":de(r.emptyStateActionMessage),to:r.emptyStateActionRoute?r.emptyStateActionRoute:void 0,onClick:l[2]||(l[2]=a=>t.$emit("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(r.emptyStateActionMessage),1)]),_:3},8,["appearance","data-testid","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",{class:"table-wrapper",style:e.normalizeStyle(Se.value),onScrollPassive:Re},[e.createElementVNode("table",{class:e.normalizeClass(["table",{"has-hover":r.rowHover,"is-clickable":H.value}]),"data-tableid":e.unref(m)},[e.createElementVNode("thead",{class:e.normalizeClass({"is-scrolled":B.value})},[e.createElementVNode("tr",{ref_key:"headerRow",ref:J,class:e.normalizeClass({"is-scrolled":B.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,n)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(m)}-headers-${n}`,"aria-sort":r.sortable&&a.key===f.value?d.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Be(a,n)]),"data-testid":`table-header-${a.key}`,style:e.normalizeStyle(_.value[a.key]),onClick:()=>{r.sortable&&a.sortable&&(t.$emit("sort",{prevKey:f.value,sortColumnKey:a.key,sortColumnOrder:d.value==="asc"?"desc":"asc"}),Ke(a))},onMouseleave:l[7]||(l[7]=s=>T.value=""),onMouseover:s=>T.value=a.key},[r.resizeColumns&&n!==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"])),onMousedown:s=>ae(s,y.value[n-1].key),onMouseleave:l[4]||(l[4]=s=>z.value=""),onMouseover:s=>z.value=y.value[n-1].key},null,40,ut)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":a.tooltip||t.$slots[E(a.key)]?`${E(a.key)}-${e.unref(m)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:O.value===a.key}])},[e.renderSlot(t.$slots,Ce(a.key),{column:x(a)},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":a.hideLabel}])},e.toDisplayString(a.label?a.label:a.key),3)],!0),a.tooltip||t.$slots[E(a.key)]?(e.openBlock(),e.createBlock(Je.default,{key:0,"data-testid":E(a.key),"tooltip-id":`${E(a.key)}-${e.unref(m)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,E(a.key),{column:x(a)},()=>[e.createTextVNode(e.toDisplayString(a.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(Ze.default),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(K.KUI_COLOR_TEXT_NEUTRAL)})`,size:e.unref(K.KUI_ICON_SIZE_30)},null,8,["color","size"])]),_:2},1032,["data-testid","tooltip-id"])):e.createCommentVNode("",!0),r.sortable&&!a.hideLabel&&a.sortable?(e.openBlock(),e.createBlock(e.unref(Xe.default),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral, ${e.unref(K.KUI_COLOR_TEXT_NEUTRAL)})`,size:e.unref(K.KUI_ICON_SIZE_30)},null,8,["color","size"])):e.createCommentVNode("",!0)],10,ct),r.resizeColumns&&n!==y.value.length-1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onMousedown:s=>ae(s,a.key),onMouseleave:l[6]||(l[6]=s=>z.value=""),onMouseover:s=>z.value=a.key},null,40,dt)):e.createCommentVNode("",!0)],46,it))),128))],2)],2),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,n)=>(e.openBlock(),e.createElementBlock("tr",e.mergeProps({ref_for:!0},r.rowAttrs(a),{key:`table-${e.unref(m)}-row-${n}`,role:H.value?"link":null,tabindex:H.value?0:null}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(s,i)=>(e.openBlock(),e.createElementBlock("td",e.mergeProps({ref_for:!0},r.cellAttrs({headerKey:s.key,row:a,rowIndex:n,colIndex:i}),{key:`table-${e.unref(m)}-cell-${i}`,class:{"resize-hover":r.resizeColumns&&ee.value===s.key&&i!==y.value.length-1},style:_.value[s.key]},e.toHandlers(ze.value(a[s.key],a),!0)),[e.renderSlot(t.$slots,s.key,{row:x(a),rowKey:n,rowValue:a[s.key]},()=>[e.createTextVNode(e.toDisplayString(a[s.key]),1)],!0)],16))),128))],16,vt))),128))])],10,st)],36),We.value?(e.openBlock(),e.createBlock(Ge.default,{key:0,class:"table-pagination","current-page":u.value,"data-testid":"table-pagination","disable-page-jump":r.disablePaginationPageJump,"initial-page-size":N.value,neighbors:r.paginationNeighbors,offset:r.paginationOffset,"offset-next-button-disabled":!$.value||!Q.value,"offset-previous-button-disabled":!j.value,"page-sizes":r.paginationPageSizes,"total-count":F.value,onGetNextOffset:je,onGetPreviousOffset:Ue,onPageChange:Le,onPageSizeChange:Fe},null,8,["current-page","disable-page-jump","initial-page-size","neighbors","offset","offset-next-button-disabled","offset-previous-button-disabled","page-sizes","total-count"])):e.createCommentVNode("",!0)]))]))}});exports.default=ft;
|
package/dist/kongponents147.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("./kongponents182.cjs"),R=require("./kongponents48.cjs"),u=require("./kongponents196.cjs"),q=["data-value"],D=["id","aria-invalid","rows","value"],h=2048,p=u.IS_MAYBE_FIREFOX?0:u.getScrollbarSize(),S=u.cssSupports("field-sizing","content"),F=e.defineComponent({inheritAttrs:!1,__name:"KTextArea",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},characterLimit:{type:[Boolean,Number],default:()=>h},rows:{default:5},error:{type:Boolean},resizable:{type:Boolean},autosize:{type:Boolean},help:{default:""},isResizable:{type:Boolean},hasError:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(a,{emit:E}){e.useCssVars(t=>({v521818f8:t.rows})),e.watch(()=>a.isResizable,t=>{t&&console.warn("KTextArea: `isResizable` prop is deprecated in favor of `resizable` prop. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#ktextarea")},{immediate:!0}),e.watch(()=>a.hasError,t=>{t&&console.warn("KTextArea: `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#ktextarea")},{immediate:!0});const s=E,r=e.useAttrs(),c=e.useSlots(),{stripRequiredLabel:k}=C.default(),v=e.computed(()=>(r==null?void 0:r.required)!==void 0&&String(r==null?void 0:r.required)!=="false"),i=e.ref(""),x=e.computed(()=>k(a.label,v.value)),y=e.computed(()=>{var t,l;return!!((t=a.labelAttributes)!=null&&t.help||(l=a.labelAttributes)!=null&&l.info||c["label-tooltip"])}),T=e.computed(()=>a.error||a.hasError||n.value?!0:void 0),f=e.ref(0),A=e.computed({get(){return a.modelValue},set(t){d({target:{value:t}})}}),L=e.useId(),g=e.computed(()=>r.id?String(r.id):L),z=e.computed(()=>{const t={...r};return delete t.class,t}),n=e.computed(()=>typeof a.characterLimit=="boolean"?a.characterLimit?i.value.length>h:!1:i.value.length>a.characterLimit),d=t=>{var o;const l=JSON.parse(JSON.stringify((o=t==null?void 0:t.target)==null?void 0:o.value));s("input",l),s("update:modelValue",l),i.value=l},B=e.computed(()=>!n.value&&!!(a.help||c.help)),m=e.computed(()=>{var l;const t=typeof a.characterLimit=="number"?a.characterLimit:h;return n.value?`${(l=i.value)==null?void 0:l.toString().length} / ${t}`:a.help});e.watch(n,(t,l)=>{t!==l&&(s("char-limit-exceeded",{value:i.value,length:i.value.length,characterLimit:Number(a.characterLimit),limitExceeded:t}),f.value+=1)}),e.watch(A,(t,l)=>{t!==l&&d({target:{value:t}})});const w=()=>i.value?i.value:a.modelValue,b=u.IS_MAYBE_FIREFOX?()=>{}:t=>{const{target:l,clientX:o,clientY:I}=t;if(!(l instanceof HTMLTextAreaElement))return;const{right:N,bottom:V}=l.getBoundingClientRect();o>N-p&&I>V-p&&(l.style.height="")};return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-textarea",[t.$attrs.class,{"input-error":a.error||a.hasError||n.value}]])},[a.label?(e.openBlock(),e.createBlock(R.default,e.mergeProps({key:0,for:g.value},a.labelAttributes,{required:v.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.value)+" ",1)]),_:2},[y.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-textarea-wrapper",{autosize:a.autosize,legacy:a.autosize&&!e.unref(S)}]),"data-allow-mismatch":"class","data-value":e.unref(S)?null:i.value},[e.createElementVNode("textarea",e.mergeProps({id:g.value},z.value,{"aria-invalid":T.value,class:["input-textarea",{resizable:a.resizable||a.isResizable}],rows:a.rows,value:w(),onDblclick:l[0]||(l[0]=(...o)=>e.unref(b)&&e.unref(b)(...o)),onInput:d}),null,16,D)],10,q),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[m.value||c.help?(e.openBlock(),e.createElementBlock("p",{key:String(f.value),class:"help-text"},[B.value?e.renderSlot(t.$slots,"help",{key:0},()=>[e.createTextVNode(e.toDisplayString(m.value),1)],!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(m.value),1)],64))])):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=F;
|
package/dist/kongponents149.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("./kongponents172.cjs"),u=require("./kongponents221.cjs"),d=require("./kongponents173.cjs"),s=require("./kongponents175.cjs"),_=require("./kongponents200.cjs"),k=require("./kongponents177.cjs"),n=require("./kongponents178.cjs"),m={class:"toaster-icon-container"},p={class:"toaster-content"},f={key:0,class:"toaster-title"},g={key:1,class:"toaster-message"},I=["onClick"],v=e.defineComponent({__name:"KToaster",props:{toasterState:{default:()=>[]},zIndex:{default:1e4}},emits:["close"],setup(r,{emit:c}){e.useCssVars(o=>({v4785992e:o.zIndex}));const a=c,l=o=>{switch(o){case"info":return s.default;case"success":return i.default;case"warning":return k.default;case"danger":return u.default;case"system":return _.default;default:return s.default}};return(o,C)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{class:"k-toaster",name:"kongponents-slide-up-transition",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.toasterState,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["toaster",`${t.appearance}`]),role:"alert"},[e.createElementVNode("div",m,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(t.appearance)),{class:"toaster-icon",color:`var(--kui-color-text, ${e.unref(n.KUI_COLOR_TEXT)})`,decorative:""},null,8,["color"]))]),e.createElementVNode("div",p,[t.title?(e.openBlock(),e.createElementBlock("span",f,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{"aria-label":"Close",class:"toaster-close-icon","data-testid":"toaster-close-icon",type:"button",onClick:e.withModifiers(B=>a("close",t.key),["stop"])},[e.createVNode(e.unref(d.default),{color:`var(--kui-color-text-neutral-weak, ${e.unref(n.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:e.unref(n.KUI_ICON_SIZE_50)},null,8,["color","size"])],8,I)],2))),128))]),_:1}))}});exports.default=v;
|
package/dist/kongponents154.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("./kongponents237.cjs"),l=require("./kongponents178.cjs"),n=require("./kongponents167.cjs"),a=require("./kongponents180.cjs"),u=["href"],c=e.defineComponent({__name:"KExternalLink",props:{href:{},hideIcon:{type:Boolean}},setup(r){e.watch(()=>r.href,t=>{n.isValidUrl(t)||a.warnInvalidProp("href",`\`href\` should be a valid URL, but got "${t}".`)},{immediate:!0});const o=e.computed(()=>!!n.isValidUrl(r.href));return(t,s)=>o.value?(e.openBlock(),e.createElementBlock("a",{key:0,class:"k-external-link",href:r.href,rel:"noopener",target:"_blank"},[e.renderSlot(t.$slots,"default",{},void 0,!0),r.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i.default),{key:0,decorative:"",size:e.unref(l.KUI_ICON_SIZE_30)},null,8,["size"]))],8,u)):e.createCommentVNode("",!0)}});exports.default=c;
|
package/dist/kongponents156.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("./kongponents212.cjs"),w=require("./kongponents178.cjs"),B=require("./kongponents205.cjs"),H=require("./kongponents171.cjs"),N=require("./kongponents180.cjs"),S={key:0,class:"truncate-expand-controls"},V={key:0,"data-testid":"expand-trigger-wrapper"},E=["aria-label"],z={key:0,"data-testid":"collapse-trigger-wrapper"},$={key:0,"data-testid":"expand-trigger-wrapper"},q={key:1},I=e.defineComponent({__name:"KTruncate",props:{rows:{default:1},truncateText:{type:Boolean},expanded:{type:Boolean},width:{default:"100%"}},setup(o){e.useCssVars(t=>({c3a0fcd6:m.value,v51e192de:e.unref(h),v0adcd17e:t.rows})),e.watch(()=>o.rows,t=>{t<0&&N.warnInvalidProp("rows",`\`rows\` prop cannot be less than 0, but got "${t}".`)},{immediate:!0});const a=e.ref(o.expanded),g=e.ref(!1),f=e.ref(),n=e.ref(),i=e.ref(),v=e.ref(),m=e.ref("0px"),h=w.KUI_SPACE_40,s=e.ref(0),x=()=>{var t;if(!o.truncateText&&n.value&&(t=n.value.children)!=null&&t.length){const r=n.value.children,c=Number(String(h).replace(/px$/gi,""));let u=0;for(let d=0;d<r.length;d++)u=r[d].offsetHeight>u?r[d].offsetHeight:u;const k=(o.rows===1?0:(o.rows-1)*c)+u*o.rows+6,T=n.value.offsetHeight>k?`${k}px`:"auto";window.requestAnimationFrame(()=>{m.value=T,window.requestAnimationFrame(p)})}},p=()=>{if(n.value&&i.value){const t=o.truncateText?n.value.scrollHeight:n.value.offsetHeight,r=v.value?v.value.offsetHeight:0;g.value=t>i.value.offsetHeight-r,C()}},C=()=>{if(!o.truncateText&&(s.value=0,n.value&&i.value)){const t=n.value.children;for(let r=0;r<t.length;r++)t[r].offsetTop>i.value.offsetHeight?(s.value+=1,t[r].getAttribute("tabindex")&&(t[r].tabIndex=-1)):t[r].getAttribute("tabindex")&&(t[r].tabIndex=0)}},l=async()=>{a.value=!a.value,await e.nextTick(),p()},b=e.computed(()=>({width:H.normalizeSize(o.width)}));return e.onMounted(()=>{f.value=B.ResizeObserverHelper.create(x),f.value.observe(n.value),o.truncateText&&p()}),e.onBeforeUnmount(()=>{var t;(t=f.value)==null||t.unobserve(n.value)}),(t,r)=>{const c=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",{ref_key:"kTruncateWrapper",ref:i,class:e.normalizeClass(["k-truncate",[a.value?"expanded":"",`truncate-${o.truncateText?"text":"content"}`]]),style:e.normalizeStyle(b.value)},[!o.truncateText&&g.value?(e.openBlock(),e.createElementBlock("div",S,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",V,[e.renderSlot(t.$slots,"expand-trigger",{expand:l,truncatedCount:s.value},()=>[e.createElementVNode("button",{"aria-label":`Show ${s.value} more items`,class:"expand-trigger",type:"button",onClick:e.withModifiers(l,["stop"])},e.toDisplayString(s.value),9,E)],!0)]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"kTruncateContainer",ref:n,class:"truncate-container"},[e.renderSlot(t.$slots,"default",{},void 0,!0),!o.truncateText&&a.value?(e.openBlock(),e.createElementBlock("div",z,[e.renderSlot(t.$slots,"collapse-trigger",{collapse:l},()=>[e.createElementVNode("button",{"aria-label":"Collapse content",class:"collapse-trigger",type:"button",onClick:e.withModifiers(l,["stop"])},[e.createVNode(e.unref(y.default),{decorative:"",size:e.unref(w.KUI_ICON_SIZE_30)},null,8,["size"])])],!0)])):e.createCommentVNode("",!0)],512),o.truncateText&&(g.value||a.value)?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"textToggleControls",ref:v,class:"truncate-collapse-controls"},[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(t.$slots,"expand-trigger",{expand:l},()=>[e.createVNode(c,{appearance:"tertiary",size:"small",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode(" Show more ",-1)])]),_:1})],!0)])),a.value?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"collapse-trigger",{collapse:l},()=>[e.createVNode(c,{appearance:"tertiary",size:"small",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[...r[1]||(r[1]=[e.createTextVNode(" Show less ",-1)])]),_:1})],!0)])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)],6)}}});exports.default=I;
|
package/dist/kongponents158.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),T=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),T=require("./kongponents205.cjs"),C=require("./kongponents191.cjs"),h=require("./kongponents19.cjs"),m=require("./kongponents24.cjs");;/* empty css */const k=require("./kongponents178.cjs"),B={class:"k-copy"},L={key:0,class:"copy-badge-text"},w=["id","aria-label","onClick"],E=e.defineComponent({__name:"KCopy",props:{badgeLabel:{default:""},text:{},textTooltip:{default:""},copyTooltip:{default:""},format:{default:"default"},badge:{type:Boolean},monospace:{type:Boolean},truncate:{type:Boolean},successTooltip:{default:"Copied!"},truncationLimit:{default:8}},setup(t,{expose:f}){const u=e.useId(),l=e.ref(""),d=e.computed(()=>!t.badgeLabel||t.copyTooltip?t.copyTooltip||"Copy":`Copy ${t.badgeLabel.replace(/:$/,"")}`);e.watch(d,a=>{l.value=a},{immediate:!0});const v=e.computed(()=>`copy-tooltip-wrapper ${t.truncate&&c.value||t.badge?"truncate-content":""}`),b=e.computed(()=>t.format==="redacted"?"*****":t.format==="deleted"?`*${String(t.text||"").substring(0,5)}`:t.truncate&&t.truncationLimit&&i.value?i.value.replace(/^"(.*)"$/,"$1"):t.text),y=e.computed(()=>{if(t.textTooltip)return t.textTooltip;if(!(t.format==="redacted"||!c.value))return t.text}),s=a=>{l.value=a||t.successTooltip,setTimeout(()=>{l.value=d.value},1800)},x=async a=>{if(!await a(t.text)){s("Failed to copy");return}s()};f({copy:()=>{var a;document!=null&&document.getElementById(u)&&((a=document==null?void 0:document.getElementById(u))==null||a.click())}});const o=e.ref(),n=e.ref(),i=e.computed(()=>t.truncate&&typeof t.truncationLimit=="number"?`${String(t.text||"").substring(0,t.truncationLimit)+"..."}`:null),c=e.ref(!1),p=()=>{var a,r;t.truncate&&(t.truncationLimit!=="auto"&&i.value?c.value=!0:t.truncationLimit==="auto"&&o.value&&(c.value=((a=o.value)==null?void 0:a.offsetWidth)<((r=o.value)==null?void 0:r.scrollWidth)))};return e.onMounted(()=>{n.value=T.ResizeObserverHelper.create(p),n.value.observe(o.value)}),e.onBeforeUnmount(()=>{n.value&&n.value.unobserve(o.value)}),(a,r)=>(e.openBlock(),e.createElementBlock("div",B,[t.badge&&t.badgeLabel?(e.openBlock(),e.createElementBlock("span",L,e.toDisplayString(t.badgeLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["copy-container",{"copy-element":t.truncate||t.badge,"badge-styles":t.badge}])},[t.format!=="hidden"?(e.openBlock(),e.createBlock(m.default,{key:0,class:e.normalizeClass([v.value]),"data-testid":"copy-tooltip-wrapper","max-width":"500px",placement:"bottom-start",text:y.value},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"copyTextElement",ref:o,class:e.normalizeClass(["copy-text",{monospace:t.monospace||!t.badge}])},e.toDisplayString(b.value),3)]),_:1},8,["class","text"])):e.createCommentVNode("",!0),e.createVNode(m.default,{class:"text-icon-wrapper","max-width":"500px",placement:"bottom-start",text:l.value},{default:e.withCtx(()=>[e.createVNode(h.default,null,{default:e.withCtx(({copyToClipboard:g})=>[e.createElementVNode("button",{id:e.unref(u),"aria-label":l.value,class:"copy-to-clipboard-button","data-testid":"copy-to-clipboard",type:"button",onClick:e.withModifiers(N=>x(g),["stop"])},[e.createVNode(e.unref(C.default),{class:"text-icon",decorative:"",size:e.unref(k.KUI_ICON_SIZE_30)},null,8,["size"])],8,w)]),_:1})]),_:1},8,["text"])],2)]))}});exports.default=E;
|
package/dist/kongponents160.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Q=require("./kongponents33.cjs"),ge=require("./kongponents44.cjs"),tt=require("./kongponents21.cjs");;/* empty css */const pe=require("./kongponents24.cjs");;/* empty css */const at=require("./kongponents187.cjs"),ot=require("./kongponents225.cjs"),lt=require("./kongponents204.cjs"),nt=require("./kongponents229.cjs"),rt=require("./kongponents230.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const it=require("./kongponents11.cjs"),i=require("./kongponents17.cjs"),C=require("./kongponents175.cjs"),st=require("./kongponents226.cjs"),ut=require("./kongponents52.cjs"),ct=require("./kongponents42.cjs"),we=require("./kongponents37.cjs"),dt=require("./kongponents231.cjs"),ft=require("./kongponents169.cjs"),yt=require("./kongponents151.cjs"),vt=require("./kongponents194.cjs"),kt=require("./kongponents182.cjs"),bt=require("./kongponents171.cjs"),mt=require("./kongponents29.cjs"),gt=require("./kongponents232.cjs"),pt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},wt={key:0,class:"toolbar-default-items-container"},Ct={key:2,class:"table-error-state","data-testid":"table-error-state"},ht={key:3,class:"table-empty-state","data-testid":"table-empty-state"},St={key:4,class:"table-container"},Tt=["data-tableid"],At=["aria-sort","data-key","data-testid","onClick","onMouseover"],Bt=["onMousedown","onMouseover"],Et=["aria-describedby"],Nt={key:1,class:"table-header-bulk-actions-container"},Kt=["onMousedown","onMouseover"],Vt=["role","tabindex"],Ht={key:1,class:"expandable-row-control-container"},Rt=["aria-controls","aria-expanded","onClick"],xt=["id"],Ot=["colspan"],Lt={class:"expandable-content-wrapper"},_="desc",It=e.defineComponent({__name:"KTableView",props:{data:{default:()=>[]},headers:{default:()=>[]},resizeColumns:{type:Boolean},tablePreferences:{default:()=>({})},rowHover:{type:Boolean,default:!0},rowAttrs:{default:()=>(()=>({}))},rowLink:{default:()=>(()=>({}))},rowBulkActionEnabled:{default:()=>(()=>!0)},rowKey:{},cellAttrs:{default:()=>(()=>({}))},loading:{type:Boolean},emptyStateTitle:{default:"No Data"},emptyStateMessage:{default:"There is no data to display."},emptyStateActionRoute:{},emptyStateActionMessage:{default:""},emptyStateIconVariant:{default:()=>it.EmptyStateIconVariants.Default},emptyStateButtonAppearance:{default:"primary"},error:{type:Boolean},errorStateTitle:{default:"An error occurred"},errorStateMessage:{default:"Data cannot be displayed due to an error."},errorStateActionRoute:{},errorStateActionMessage:{default:""},maxHeight:{default:"none"},hidePagination:{type:Boolean},paginationAttributes:{default:()=>({})},rowExpandable:{default:()=>(()=>!1)},rowExpanded:{default:()=>(()=>!1)},hideHeaders:{type:Boolean},nested:{type:Boolean},hidePaginationWhenOptional:{type:Boolean},hideToolbar:{type:Boolean},tooltipTarget:{default:"body"},"onRow:click":{type:Function},"onRow:dblclick":{type:Function},"onRow:auxclick":{type:Function},"onRow:contextmenu":{type:Function},"onRow:mouseover":{type:Function},"onRow:mouseout":{type:Function},"onRow:mouseenter":{type:Function},"onRow:mouseleave":{type:Function},"onRow:mousedown":{type:Function},"onRow:mouseup":{type:Function},"onRow:focus":{type:Function},"onRow:focusin":{type:Function},"onRow:blur":{type:Function},"onRow:focusout":{type:Function},"onRow:keydown":{type:Function},"onRow:keyup":{type:Function},"onRow:keypress":{type:Function},"onCell:click":{type:Function},"onCell:dblclick":{type:Function},"onCell:auxclick":{type:Function},"onCell:contextmenu":{type:Function},"onCell:mouseover":{type:Function},"onCell:mouseout":{type:Function},"onCell:mouseenter":{type:Function},"onCell:mouseleave":{type:Function},"onCell:mousedown":{type:Function},"onCell:mouseup":{type:Function},"onCell:focus":{type:Function},"onCell:focusin":{type:Function},"onCell:blur":{type:Function},"onCell:focusout":{type:Function},"onCell:keydown":{type:Function},"onCell:keyup":{type:Function},"onCell:keypress":{type:Function}},emits:["page-change","page-size-change","get-next-offset","get-previous-offset","cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","row-select","update:row-expanded","row-actions-toggle"],setup(l,{emit:Ce}){e.useCssVars(t=>({v1d9185fc:e.unref(Oe).expandable,v2e5a7fab:$e.value,v3ffd4ac3:le.value,v83fbd9d2:He.value}));const ee=e.createPropsRestProxy(l,["resizeColumns","tablePreferences","rowHover","rowAttrs","rowLink","rowBulkActionEnabled","rowKey","cellAttrs","loading","emptyStateTitle","emptyStateMessage","emptyStateActionMessage","emptyStateIconVariant","emptyStateButtonAppearance","emptyStateActionRoute","error","errorStateTitle","errorStateMessage","errorStateActionMessage","errorStateActionRoute","maxHeight","hidePagination","paginationAttributes","rowExpandable","rowExpanded","hideHeaders","nested","hidePaginationWhenOptional","hideToolbar","tooltipTarget","data","headers"]),v=Ce,A=e.useSlots(),b=e.useId(),m=t=>typeof l.rowKey=="function"&&typeof l.rowKey(t)=="string"?l.rowKey(t):typeof l.rowKey=="string"&&l.rowKey in t&&typeof t[l.rowKey]=="string"?t[l.rowKey]:"",te=t=>{const o=t.filter(n=>n.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&n.key!==i.TableViewHeaderKeys.ACTIONS),a=t.find(n=>n.key===i.TableViewHeaderKeys.BULK_ACTIONS),r=t.find(n=>n.key===i.TableViewHeaderKeys.ACTIONS);return a&&o.unshift(a),r&&o.push(r),o},ae=e.useTemplateRef("table-wrapper"),he=e.useTemplateRef("table"),Se=e.useTemplateRef("header-row"),h=e.ref(te(l.headers)),d=e.ref([]),x=e.ref(""),B=e.ref(""),P=e.ref(""),Te=e.computed(()=>h.value.some(t=>t.key===i.TableViewHeaderKeys.ACTIONS)),oe=e.computed(()=>h.value.filter(t=>t.hidable).length>0),E=e.computed(()=>l.nested||!oe.value||l.error?!1:A.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length),Ae=e.computed(()=>l.loading||!(l.data&&l.data.length)),Be=e.computed(()=>h.value.filter(t=>t.hidable&&!U(t.key))),Ee=e.computed(()=>E.value?l.tablePreferences.columnVisibility||{}:{}),N=e.ref(E.value?l.tablePreferences.columnVisibility||{}:{}),le=e.ref("100%"),X=e.ref(!1),O=e.ref(!1),S=e.ref(!1),K=e.ref(!1),y=e.ref(l.tablePreferences.sortColumnKey||""),k=e.ref(l.tablePreferences.sortColumnOrder||_),j=e.ref(!1),Ne=e.computed(()=>!l.hideToolbar&&!l.nested&&(!!A.toolbar||E.value||G.value)),Ke=e.useTemplateRef("actionsDropdown"),Z=e.ref(!1),Ve=e.computed(()=>({maxHeight:bt.normalizeSize(l.maxHeight)})),He=e.computed(()=>`${vt.getScrollbarSize()}px`),V=e.ref([]),L=e.computed(()=>!l.nested&&!l.error&&h.value.some(t=>t.key===i.TableViewHeaderKeys.BULK_ACTIONS)&&!!(A["bulk-action-items"]||A["bulk-actions"])&&!!l.data.every(t=>m(t))),I=e.ref([]),G=e.computed(()=>l.nested||!L.value||l.error?!1:A.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length),ne=e.computed(()=>{const t=V.value.length;return t?t>100?"99+":String(t):""}),F=e.ref(new WeakMap),Re=t=>`column-${t}`,H=t=>`tooltip-${t}`,re=(t,o)=>(a,r)=>{const n=/^on[^a-z]/,u={};for(const s in o)n.test(s)&&o[s]&&(u[s]=o[s]);return Object.keys(u).reduce((s,c)=>{if(c.indexOf(t)===0){const f=c.split(t);s[f[1]]=p=>u[c](p,a,r)}return s},{})},xe=e.computed(()=>(t,o)=>{const a=re("onRow:",ee)(o,"row"),r=re("onCell:",ee)(t,"cell"),n=["a","button","label","input","select",'span[role="checkbox"]'];return(a.click||r.click)&&(j.value=!0),{...a,...r,click(u){const s=u.target,c=s.className;let f=n.includes(s.tagName.toLowerCase()),p=!1;typeof c=="string"||Array.isArray(c)?p=c.includes("k-popover"):typeof c=="object"&&(p=Object.keys(c).includes("k-popover")),s.closest(".popover-content")!==null&&(p=!0);for(let w=0;w<n.length;w++)if(s.closest(n[w])!==null){f=!0;break}if((!f||s.hasAttribute("disabled"))&&!p&&(a.click||r.click))if(r.click){v("cell-click",{data:t});const w=r.click(u,t,"cell");typeof w=="function"&&w(u,t)}else{v("row-click",{data:o});const w=a.click(u,o,"row");typeof w=="function"&&w(u,o)}}}}),ie=parseInt(C.KUI_SPACE_60)*2+parseInt(C.KUI_ICON_SIZE_30),se={expandable:ie,bulkActions:48,actions:54},Oe=gt.default(se,t=>`${t}px`),T=e.ref({...l.tablePreferences.columnWidths||{},...se}),ue=e.computed(()=>{const t={};for(const o in T.value){const a=o;if(!T.value[a])continue;const r=T.value[a]+"px";t[a]={width:r,maxWidth:r,minWidth:r}}return t}),Le=(t,o)=>({"resize-hover":ce.value===t.key&&o!==d.value.length-1&&D(t),resizable:l.resizeColumns&&!l.nested,sortable:!t.hideLabel&&!!t.sortable,"active-sort":!t.hideLabel&&!!t.sortable&&t.key===y.value,[k.value]:t.key===y.value&&!t.hideLabel,"is-scrolled":O.value,"has-tooltip":!!t.tooltip,"sticky-column":ye(t.key),"second-sticky-column":ve(t.key),"has-row-scroll-overlay":M(t.key),"actions-column":t.key===i.TableViewHeaderKeys.ACTIONS}),Ie=t=>{if(t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS){let o="asc",a=t.key;a===y.value&&k.value==="asc"&&(o="desc"),a===y.value&&k.value==="desc"&&(a="",o=_),v("sort",{prevKey:y.value,sortColumnKey:a,sortColumnOrder:o}),Ue(a)}},ze=e.computed(()=>x.value?"resizing":B.value?"resize-hover":P.value?"th-hover":""),ce=e.computed(()=>{switch(ze.value){case"resizing":return x.value;case"resize-hover":return B.value;case"th-hover":return P.value;default:return""}}),de=e.computed(()=>{var t;return(t=Se.value)==null?void 0:t.querySelectorAll("th.resizable")}),$e=e.computed(()=>{var o;const t=(o=de.value)==null?void 0:o.item(0);if(t){const a=window==null?void 0:window.getComputedStyle(t);if(a!=null&&a.height)return`${parseInt(a.height,10)}px`}return"auto"}),fe=(t,o)=>{var c;if(t.button!==0)return;let a=0,r=0;x.value=o;let n=null;(c=de.value)==null||c.forEach(f=>{f.getAttribute("data-testid")===`table-header-${o}`&&(n=document==null?void 0:document.querySelector(`[data-tableid="${b}"] [data-testid="table-header-${o}"]`))});const u=f=>{const p=f.clientX-a;n==null||n.setAttribute("style",`width: ${r+p}px`),T.value[o]=r+p},s=()=>{x.value="",document==null||document.removeEventListener("mousemove",u),document==null||document.removeEventListener("mouseup",s),W(),R.value&&Y()};if(a=t.clientX,n){const f=window==null?void 0:window.getComputedStyle(n);f!=null&&f.width&&(r=parseInt(f.width,10)),document==null||document.addEventListener("mousemove",u),document==null||document.addEventListener("mouseup",s)}},ye=t=>S.value?t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.EXPANDABLE:!1,ve=t=>t===i.TableViewHeaderKeys.BULK_ACTIONS&&R.value,M=t=>S.value?L.value?t===i.TableViewHeaderKeys.BULK_ACTIONS:R.value?t===i.TableViewHeaderKeys.EXPANDABLE:!1:!1,U=t=>t===i.TableViewHeaderKeys.EXPANDABLE||t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.ACTIONS,D=(t,o=!1)=>{if(!l.resizeColumns||l.nested)return!1;if(o){if(d.value.indexOf(t)===d.value.length-1)return!1;const r=d.value[d.value.indexOf(t)-1];return!U(r.key)}const a=d.value[d.value.indexOf(t)+1];return!U(t.key)&&!U(a.key)},Pe=(t,o,a)=>{v("row-actions-toggle",{row:t,open:o}),setTimeout(()=>{a.isRowActionsDropdownOpen=o},o?0:100)},Fe=e.computed(()=>!(l.hidePagination||l.nested||l.hidePaginationWhenOptional&&l.data.length&&l.paginationAttributes.totalCount&&l.paginationAttributes.totalCount<=l.data.length));e.watch(()=>l.headers,t=>{h.value=te(t)},{deep:!0,immediate:!0});const Me=t=>!t.hideLabel&&!!t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS,Ue=t=>{y.value&&t?t===y.value?k.value==="asc"?k.value="desc":k.value="asc":(y.value=t,k.value="asc"):t?(y.value=t,k.value="asc"):(y.value="",k.value=_),W()},De=t=>{var a;const o=t.target;o&&(typeof o.scrollTop=="number"||typeof o.scrollLeft=="number")&&(o.scrollTop>1?(X.value=!0,O.value=!0):o.scrollTop===0&&(O.value=!1),o.scrollLeft>1?S.value=!0:o.scrollLeft===0&&(S.value=!1),o.scrollWidth<=o.scrollLeft+o.clientWidth?K.value=!1:K.value=!0),(a=Ke.value)==null||a.forEach(r=>{r&&r.closeDropdown&&r.closeDropdown()})},q=t=>I.value.find(o=>o.rowKey===m(t)),qe=(t,o)=>({"data-testid":l.rowAttrs(t)["data-testid"]?`${l.rowAttrs(t)["data-testid"]}-actions-dropdown-popover`:`row-${o}-actions-dropdown-popover`}),J=t=>{if(typeof l.rowBulkActionEnabled!="function")return!1;const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?o:o.enabled},We=t=>{if(typeof l.rowBulkActionEnabled!="function")return"";const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?"":o.disabledTooltip||""},Xe=(t,o)=>{const{to:a}=l.rowLink(t);return!a||o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS?"div":typeof a=="object"?"router-link":"a"},je=(t,o)=>{if(o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS)return{};const{to:a,target:r}=l.rowLink(t),n=a&&typeof a=="object",u=a&&typeof a=="string";return{...n&&{to:a},...u&&{href:a},...(n||u)&&{...r&&{target:r}}}},ke=e.ref(0),z=e.ref(ft.getInitialPageSize(l.tablePreferences,l.paginationAttributes)),Ze=t=>{z.value=t.pageSize,v("page-size-change",t),W()},Ge=e.computed(()=>({sortColumnKey:y.value,sortColumnOrder:k.value,...l.resizeColumns?{columnWidths:T.value}:{},...oe.value?{columnVisibility:N.value}:{},...z.value&&!l.hidePagination&&{pageSize:z.value}})),W=()=>{v("update:table-preferences",Ge.value)},R=e.computed(()=>!l.nested&&l.data.some(t=>l.rowExpandable(t))),Je={key:i.TableViewHeaderKeys.EXPANDABLE,label:"Expandable rows controls",hideLabel:!0},be=()=>{const t=[];return l.data.forEach((o,a)=>{l.rowExpanded(o)&&t.push(a)}),t},g=e.ref(be()),Ye=async(t,o)=>{Y(),await e.nextTick(),g.value.includes(t)?(g.value=g.value.filter(a=>a!==t),v("update:row-expanded",{row:o,expanded:!1})):(g.value=[...g.value,t],v("update:row-expanded",{row:o,expanded:!0}))},Qe=e.computed(()=>d.value.filter(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS)),me=e.ref({}),Y=()=>{if(typeof document>"u")return;const t=document==null?void 0:document.querySelector(`[data-tableid="${b}"]`),o=t==null?void 0:t.querySelectorAll("th"),a={};o==null||o.forEach((r,n)=>{const u=r.getAttribute("data-key");if(u===i.TableViewHeaderKeys.EXPANDABLE)return;let s=r.getBoundingClientRect().width;n===1&&(s+=ie),n===o.length-1&&(s-=15),a[u]=s}),me.value=a};e.watch([N,h,R],t=>{const[o,a,r]=t;let n=a.filter(u=>u.key===i.TableViewHeaderKeys.BULK_ACTIONS?L.value:o[u.key]!==!1);n.find(u=>u.key===i.TableViewHeaderKeys.EXPANDABLE)&&(n=n.filter(u=>u.key!==i.TableViewHeaderKeys.EXPANDABLE)),r&&n.unshift(Je),JSON.stringify(n)!==JSON.stringify(d.value)&&(d.value=n,W()),r&&Y()},{deep:!0,immediate:!0}),e.watch(E,t=>{t&&(N.value=l.tablePreferences.columnVisibility||{})},{immediate:!0});const $=e.ref(!1),_e=e.computed(()=>{const t=I.value.filter(o=>!o.disabled&&l.data.find(a=>m(a)===o.rowKey));return!!t.filter(o=>o.selected).length&&!!t.filter(o=>!o.selected).length}),et=t=>{I.value.forEach(o=>{l.data.find(a=>m(a)===o.rowKey)&&!o.disabled&&(o.selected=t)})};return e.watch([()=>l.data,I],t=>{const[o,a]=t;if(o.forEach(r=>{if(!F.value.get(r)){const n=m(r)||yt.getUniqueStringId();F.value.set(r,`table-${b}-row-${n}`)}}),L.value){o.forEach(s=>{q(s)||I.value.push({rowKey:m(s),selected:!1,disabled:!J(s)})});const r=a.filter(s=>!s.disabled&&o.find(c=>m(c)===s.rowKey));r.length&&r.filter(s=>s.selected).length===r.length?$.value=!0:(r.filter(s=>!s.selected).length,r.length,$.value=!1);const n=o.filter(s=>{const c=a.find(f=>f.rowKey===m(s));return!!(c&&c.selected)}),u=[];V.value.forEach(s=>{o.find(f=>m(s)===m(f))||u.push(s)}),V.value=[...u,...n]}g.value=be()},{deep:!0,immediate:!0}),e.watch(V,t=>{v("row-select",t)}),e.watch(()=>l.tablePreferences,t=>{t!=null&&t.pageSize&&(z.value=t.pageSize,ke.value++),y.value=t!=null&&t.sortColumnKey?t.sortColumnKey:y.value,k.value=t!=null&&t.sortColumnOrder?t.sortColumnOrder:k.value,T.value=t!=null&&t.columnWidths?t.columnWidths:T.value,N.value=t!=null&&t.columnVisibility?t.columnVisibility:N.value}),kt.useResizeObserver([ae,he],()=>{const t=ae.value;t&&(K.value=t.scrollWidth>t.clientWidth,le.value=t.clientHeight+"px",X.value=t.scrollHeight>t.clientHeight)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-table-view",{"hide-headers":l.hideHeaders}])},[Ne.value?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(t.$slots,"toolbar",{},void 0,!0),G.value||E.value?(e.openBlock(),e.createElementBlock("div",wt,[G.value?e.renderSlot(t.$slots,"bulk-actions",{key:0,selectedRows:V.value},()=>[t.$slots["bulk-actions"]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(dt.default,{key:0,"button-label":h.value.find(a=>a.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS).label,count:ne.value,disabled:!ne.value||l.loading||!l.data.length},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"bulk-action-items",{selectedRows:V.value},void 0,!0)]),_:3},8,["button-label","count","disabled"]))],!0):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createBlock(st.default,{key:1,columns:Be.value,disabled:Ae.value,"table-id":e.unref(b),"visibility-preferences":Ee.value,onUpdate:o[0]||(o[0]=a=>N.value=a)},null,8,["columns","disabled","table-id","visibility-preferences"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.loading&&!l.error?(e.openBlock(),e.createBlock(tt.default,{key:1,"data-testid":"table-skeleton",type:"table"})):l.error?(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(ge.default,{"icon-variant":"error",message:l.errorStateMessage,title:l.errorStateTitle},e.createSlots({_:2},[l.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(Q.default,{"data-testid":"error-state-action",to:l.errorStateActionRoute,onClick:o[1]||(o[1]=a=>v("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.errorStateActionMessage),1)]),_:1},8,["to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!l.error&&!l.loading&&l.data&&!l.data.length?(e.openBlock(),e.createElementBlock("div",ht,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(ge.default,{"icon-variant":l.emptyStateIconVariant,message:l.emptyStateMessage,title:l.emptyStateTitle},e.createSlots({_:2},[l.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(Q.default,{appearance:l.emptyStateButtonAppearance,"data-testid":"empty-state-action",to:l.emptyStateActionRoute,onClick:o[2]||(o[2]=a=>v("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(l.emptyStateActionMessage),1)]),_:3},8,["appearance","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{ref:"table-wrapper",class:"table-wrapper",style:e.normalizeStyle(Ve.value),onScrollPassive:De},[e.createElementVNode("table",{ref:"table",class:e.normalizeClass(["table",{"has-hover":l.rowHover&&!Z.value,"is-clickable":j.value}]),"data-tableid":e.unref(b)},[l.hideHeaders?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",{key:0,class:e.normalizeClass({"is-scrolled":O.value})},[e.createElementVNode("tr",{ref:"header-row",class:e.normalizeClass({"is-scrolled":O.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(b)}-headers-${a.key}`,"aria-sort":a.key===y.value?k.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Le(a,r)]),"data-key":a.key,"data-testid":`table-header-${a.key}`,style:e.normalizeStyle(ue.value[a.key]),onClick:()=>Ie(a),onMouseleave:o[8]||(o[8]=n=>P.value=""),onMouseover:n=>P.value=a.key},[r!==0&&D(a,!0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:o[3]||(o[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>fe(n,d.value[r-1].key),onMouseleave:o[4]||(o[4]=n=>B.value=""),onMouseover:n=>B.value=d.value[r-1].key},null,40,Bt)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":a.tooltip||A[H(a.key)]?`${H(a.key)}-${e.unref(b)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:x.value===a.key}])},[a.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS?e.renderSlot(t.$slots,Re(a.key),{key:0,column:a},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":a.hideLabel||a.key===e.unref(i.TableViewHeaderKeys).ACTIONS&&a.hideLabel!==!1}])},e.toDisplayString(a.label?a.label:a.key),3)],!0):(e.openBlock(),e.createElementBlock("div",Nt,[e.createVNode(we.default,{modelValue:$.value,"onUpdate:modelValue":o[5]||(o[5]=n=>$.value=n),"aria-label":"Toggle selection for all rows",class:"table-header-bulk-actions-checkbox","data-testid":"table-header-bulk-actions-checkbox",indeterminate:_e.value,onChange:et},null,8,["modelValue","indeterminate"])])),a.tooltip||t.$slots[H(a.key)]?(e.openBlock(),e.createBlock(pe.default,{key:2,"data-testid":H(a.key),"kpop-attributes":{target:l.tooltipTarget},"max-width":"300","tooltip-id":`${H(a.key)}-${e.unref(b)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,H(a.key),{column:a},()=>[e.createTextVNode(e.toDisplayString(a.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(lt.default),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,size:e.unref(C.KUI_ICON_SIZE_30),tabindex:"0"},null,8,["color","size"])]),_:2},1032,["data-testid","kpop-attributes","tooltip-id"])):e.createCommentVNode("",!0),Me(a)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[y.value===a.key?(e.openBlock(),e.createBlock(e.unref(at.default),{key:0,class:"active-sort-icon",color:`var(--kui-color-text-primary, ${e.unref(C.KUI_COLOR_TEXT_PRIMARY)})`,decorative:"",size:e.unref(C.KUI_ICON_SIZE_30)},null,8,["color","size"])):(e.openBlock(),e.createBlock(e.unref(rt.default),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral-weak, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:e.unref(C.KUI_ICON_SIZE_30),title:`Sort by ${a.label}`},null,8,["color","size","title"]))],64)):e.createCommentVNode("",!0)],10,Et),r!==d.value.length-1&&D(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:o[6]||(o[6]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>fe(n,a.key),onMouseleave:o[7]||(o[7]=n=>B.value=""),onMouseover:n=>B.value=a.key},null,40,Kt)):e.createCommentVNode("",!0),M(a.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),a.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":K.value}])},null,2)):e.createCommentVNode("",!0)],46,At))),128))],2)],2)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:F.value.get(a)},[e.createElementVNode("tr",e.mergeProps({class:{"last-row":r===l.data.length-1&&!g.value.includes(r)},role:l.rowLink(a).to?"link":void 0,tabindex:j.value&&!l.rowLink(a).to?0:void 0},{ref_for:!0},l.rowAttrs(a)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(n,u)=>(e.openBlock(),e.createBlock(e.unref(mt.default),{key:`${F.value.get(a)}-cell-${n.key}`,data:{isRowActionsDropdownOpen:!1}},{default:e.withCtx(({data:s})=>[e.createElementVNode("td",e.mergeProps({class:{"resize-hover":ce.value===n.key&&u!==d.value.length-1&&D(n),"row-link":!!l.rowLink(a).to,"sticky-column":ye(n.key),"second-sticky-column":ve(n.key),"has-row-scroll-overlay":M(n.key),"actions-column":n.key===e.unref(i.TableViewHeaderKeys).ACTIONS},style:{...ue.value[n.key],...s.isRowActionsDropdownOpen?{zIndex:2}:{}}},{ref_for:!0},l.cellAttrs({headerKey:n.key,row:a,rowIndex:r,colIndex:u}),e.toHandlers(xe.value(a[n.key],a),!0)),[n.key!==e.unref(i.TableViewHeaderKeys).EXPANDABLE?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Xe(a,n.key)),e.mergeProps({key:0,class:"cell-wrapper"},{ref_for:!0},je(a,n.key)),{default:e.withCtx(()=>[n.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&n.key!==e.unref(i.TableViewHeaderKeys).ACTIONS?e.renderSlot(t.$slots,n.key,{key:0,row:a,rowKey:r,rowValue:a[n.key]},()=>[e.createTextVNode(e.toDisplayString(a[n.key]),1)],!0):n.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&q(a)?(e.openBlock(),e.createBlock(pe.default,{key:1,"kpop-attributes":{target:l.tooltipTarget},"max-width":"200",placement:"bottom-start",text:J(a)?void 0:We(a)},{default:e.withCtx(()=>[e.createVNode(we.default,{modelValue:q(a).selected,"onUpdate:modelValue":c=>q(a).selected=c,"aria-label":"Toggle row selection",class:"bulk-actions-checkbox","data-testid":"bulk-actions-checkbox",disabled:!J(a)},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["kpop-attributes","text"])):n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createBlock(ct.default,{key:2,ref_for:!0,ref:"actionsDropdown",class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottom-end",target:"body",popoverElementAttributes:qe(a,r)},onToggleDropdown:c=>Pe(a,c,s)},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"action-items",{row:a},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(Q.default,{appearance:"tertiary","aria-label":n.label,class:"actions-dropdown-trigger","data-testid":"row-actions-dropdown-trigger",icon:"",size:"small",onMouseleave:o[9]||(o[9]=c=>Z.value=!1),onMouseover:o[10]||(o[10]=c=>Z.value=!0)},{default:e.withCtx(()=>[e.createVNode(e.unref(nt.default),{class:"more-icon",decorative:""})]),_:1},8,["aria-label"])]),_:2},1032,["kpop-attributes","onToggleDropdown"])):e.createCommentVNode("",!0)]),_:2},1040)):l.rowExpandable(a)?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("button",{"aria-controls":`table-${e.unref(b)}-row-${r}-expandable-content`,"aria-expanded":g.value.includes(r),"aria-label":"Toggle row expandable content",class:e.normalizeClass(["expandable-row-control",{expanded:g.value.includes(r)}]),"data-testid":"expandable-row-control",type:"button",onClick:c=>Ye(r,a)},[e.createVNode(e.unref(ot.default),{class:"expandable-row-control-icon",decorative:""})],10,Rt)])):e.createCommentVNode("",!0),M(n.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":K.value}])},null,2)):e.createCommentVNode("",!0)],16)]),_:2},1024))),128))],16,Vt),R.value&&l.rowExpandable(a)?e.withDirectives((e.openBlock(),e.createElementBlock("tr",{key:0,id:`table-${e.unref(b)}-row-${r}-expandable-content`,class:"expandable-content-row","data-testid":"expandable-content-row"},[e.createElementVNode("td",{colspan:d.value.length},[e.createElementVNode("div",Lt,[e.renderSlot(t.$slots,"row-expanded",{columnWidths:me.value,nestedHeaders:Qe.value,row:a},void 0,!0)])],8,Ot)],8,xt)),[[e.vShow,g.value.includes(r)]]):e.createCommentVNode("",!0)],64))),128))])],10,Tt)],36),!L.value&&!R.value?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),Te.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay right",{"overlay-visible":K.value,"scrollbar-offset":X.value}])},null,2)),Fe.value?(e.openBlock(),e.createBlock(ut.default,e.mergeProps({key:`table-${e.unref(b)}-pagination-${ke.value}`,class:"table-pagination","data-testid":"table-pagination","initial-page-size":z.value},l.paginationAttributes,{onGetNextOffset:o[11]||(o[11]=a=>v("get-next-offset")),onGetPreviousOffset:o[12]||(o[12]=a=>v("get-previous-offset")),onPageChange:o[13]||(o[13]=a=>v("page-change",a)),onPageSizeChange:Ze}),null,16,["initial-page-size"])):e.createCommentVNode("",!0)]))],2))}});exports.default=It;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Q=require("./kongponents33.cjs"),ge=require("./kongponents44.cjs"),tt=require("./kongponents21.cjs");;/* empty css */const pe=require("./kongponents24.cjs");;/* empty css */const at=require("./kongponents189.cjs"),ot=require("./kongponents185.cjs"),lt=require("./kongponents175.cjs"),nt=require("./kongponents222.cjs"),rt=require("./kongponents223.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const it=require("./kongponents11.cjs"),i=require("./kongponents17.cjs"),C=require("./kongponents178.cjs"),st=require("./kongponents211.cjs"),ut=require("./kongponents52.cjs"),ct=require("./kongponents42.cjs"),we=require("./kongponents37.cjs"),dt=require("./kongponents224.cjs"),ft=require("./kongponents169.cjs"),yt=require("./kongponents151.cjs"),vt=require("./kongponents196.cjs"),kt=require("./kongponents208.cjs"),bt=require("./kongponents171.cjs"),mt=require("./kongponents29.cjs"),gt=require("./kongponents225.cjs"),pt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},wt={key:0,class:"toolbar-default-items-container"},Ct={key:2,class:"table-error-state","data-testid":"table-error-state"},ht={key:3,class:"table-empty-state","data-testid":"table-empty-state"},St={key:4,class:"table-container"},Tt=["data-tableid"],At=["aria-sort","data-key","data-testid","onClick","onMouseover"],Bt=["onMousedown","onMouseover"],Et=["aria-describedby"],Nt={key:1,class:"table-header-bulk-actions-container"},Kt=["onMousedown","onMouseover"],Vt=["role","tabindex"],Ht={key:1,class:"expandable-row-control-container"},Rt=["aria-controls","aria-expanded","onClick"],xt=["id"],Ot=["colspan"],Lt={class:"expandable-content-wrapper"},_="desc",It=e.defineComponent({__name:"KTableView",props:{data:{default:()=>[]},headers:{default:()=>[]},resizeColumns:{type:Boolean},tablePreferences:{default:()=>({})},rowHover:{type:Boolean,default:!0},rowAttrs:{default:()=>(()=>({}))},rowLink:{default:()=>(()=>({}))},rowBulkActionEnabled:{default:()=>(()=>!0)},rowKey:{},cellAttrs:{default:()=>(()=>({}))},loading:{type:Boolean},emptyStateTitle:{default:"No Data"},emptyStateMessage:{default:"There is no data to display."},emptyStateActionRoute:{},emptyStateActionMessage:{default:""},emptyStateIconVariant:{default:()=>it.EmptyStateIconVariants.Default},emptyStateButtonAppearance:{default:"primary"},error:{type:Boolean},errorStateTitle:{default:"An error occurred"},errorStateMessage:{default:"Data cannot be displayed due to an error."},errorStateActionRoute:{},errorStateActionMessage:{default:""},maxHeight:{default:"none"},hidePagination:{type:Boolean},paginationAttributes:{default:()=>({})},rowExpandable:{default:()=>(()=>!1)},rowExpanded:{default:()=>(()=>!1)},hideHeaders:{type:Boolean},nested:{type:Boolean},hidePaginationWhenOptional:{type:Boolean},hideToolbar:{type:Boolean},tooltipTarget:{default:"body"},"onRow:click":{type:Function},"onRow:dblclick":{type:Function},"onRow:auxclick":{type:Function},"onRow:contextmenu":{type:Function},"onRow:mouseover":{type:Function},"onRow:mouseout":{type:Function},"onRow:mouseenter":{type:Function},"onRow:mouseleave":{type:Function},"onRow:mousedown":{type:Function},"onRow:mouseup":{type:Function},"onRow:focus":{type:Function},"onRow:focusin":{type:Function},"onRow:blur":{type:Function},"onRow:focusout":{type:Function},"onRow:keydown":{type:Function},"onRow:keyup":{type:Function},"onRow:keypress":{type:Function},"onCell:click":{type:Function},"onCell:dblclick":{type:Function},"onCell:auxclick":{type:Function},"onCell:contextmenu":{type:Function},"onCell:mouseover":{type:Function},"onCell:mouseout":{type:Function},"onCell:mouseenter":{type:Function},"onCell:mouseleave":{type:Function},"onCell:mousedown":{type:Function},"onCell:mouseup":{type:Function},"onCell:focus":{type:Function},"onCell:focusin":{type:Function},"onCell:blur":{type:Function},"onCell:focusout":{type:Function},"onCell:keydown":{type:Function},"onCell:keyup":{type:Function},"onCell:keypress":{type:Function}},emits:["page-change","page-size-change","get-next-offset","get-previous-offset","cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","row-select","update:row-expanded","row-actions-toggle"],setup(l,{emit:Ce}){e.useCssVars(t=>({v1d9185fc:e.unref(Oe).expandable,v2e5a7fab:$e.value,v3ffd4ac3:le.value,v83fbd9d2:He.value}));const ee=e.createPropsRestProxy(l,["resizeColumns","tablePreferences","rowHover","rowAttrs","rowLink","rowBulkActionEnabled","rowKey","cellAttrs","loading","emptyStateTitle","emptyStateMessage","emptyStateActionMessage","emptyStateIconVariant","emptyStateButtonAppearance","emptyStateActionRoute","error","errorStateTitle","errorStateMessage","errorStateActionMessage","errorStateActionRoute","maxHeight","hidePagination","paginationAttributes","rowExpandable","rowExpanded","hideHeaders","nested","hidePaginationWhenOptional","hideToolbar","tooltipTarget","data","headers"]),v=Ce,A=e.useSlots(),b=e.useId(),m=t=>typeof l.rowKey=="function"&&typeof l.rowKey(t)=="string"?l.rowKey(t):typeof l.rowKey=="string"&&l.rowKey in t&&typeof t[l.rowKey]=="string"?t[l.rowKey]:"",te=t=>{const o=t.filter(n=>n.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&n.key!==i.TableViewHeaderKeys.ACTIONS),a=t.find(n=>n.key===i.TableViewHeaderKeys.BULK_ACTIONS),r=t.find(n=>n.key===i.TableViewHeaderKeys.ACTIONS);return a&&o.unshift(a),r&&o.push(r),o},ae=e.useTemplateRef("table-wrapper"),he=e.useTemplateRef("table"),Se=e.useTemplateRef("header-row"),h=e.ref(te(l.headers)),d=e.ref([]),x=e.ref(""),B=e.ref(""),P=e.ref(""),Te=e.computed(()=>h.value.some(t=>t.key===i.TableViewHeaderKeys.ACTIONS)),oe=e.computed(()=>h.value.filter(t=>t.hidable).length>0),E=e.computed(()=>l.nested||!oe.value||l.error?!1:A.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length),Ae=e.computed(()=>l.loading||!(l.data&&l.data.length)),Be=e.computed(()=>h.value.filter(t=>t.hidable&&!U(t.key))),Ee=e.computed(()=>E.value?l.tablePreferences.columnVisibility||{}:{}),N=e.ref(E.value?l.tablePreferences.columnVisibility||{}:{}),le=e.ref("100%"),X=e.ref(!1),O=e.ref(!1),S=e.ref(!1),K=e.ref(!1),y=e.ref(l.tablePreferences.sortColumnKey||""),k=e.ref(l.tablePreferences.sortColumnOrder||_),j=e.ref(!1),Ne=e.computed(()=>!l.hideToolbar&&!l.nested&&(!!A.toolbar||E.value||G.value)),Ke=e.useTemplateRef("actionsDropdown"),Z=e.ref(!1),Ve=e.computed(()=>({maxHeight:bt.normalizeSize(l.maxHeight)})),He=e.computed(()=>`${vt.getScrollbarSize()}px`),V=e.ref([]),L=e.computed(()=>!l.nested&&!l.error&&h.value.some(t=>t.key===i.TableViewHeaderKeys.BULK_ACTIONS)&&!!(A["bulk-action-items"]||A["bulk-actions"])&&!!l.data.every(t=>m(t))),I=e.ref([]),G=e.computed(()=>l.nested||!L.value||l.error?!1:A.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length),ne=e.computed(()=>{const t=V.value.length;return t?t>100?"99+":String(t):""}),F=e.ref(new WeakMap),Re=t=>`column-${t}`,H=t=>`tooltip-${t}`,re=(t,o)=>(a,r)=>{const n=/^on[^a-z]/,u={};for(const s in o)n.test(s)&&o[s]&&(u[s]=o[s]);return Object.keys(u).reduce((s,c)=>{if(c.indexOf(t)===0){const f=c.split(t);s[f[1]]=p=>u[c](p,a,r)}return s},{})},xe=e.computed(()=>(t,o)=>{const a=re("onRow:",ee)(o,"row"),r=re("onCell:",ee)(t,"cell"),n=["a","button","label","input","select",'span[role="checkbox"]'];return(a.click||r.click)&&(j.value=!0),{...a,...r,click(u){const s=u.target,c=s.className;let f=n.includes(s.tagName.toLowerCase()),p=!1;typeof c=="string"||Array.isArray(c)?p=c.includes("k-popover"):typeof c=="object"&&(p=Object.keys(c).includes("k-popover")),s.closest(".popover-content")!==null&&(p=!0);for(let w=0;w<n.length;w++)if(s.closest(n[w])!==null){f=!0;break}if((!f||s.hasAttribute("disabled"))&&!p&&(a.click||r.click))if(r.click){v("cell-click",{data:t});const w=r.click(u,t,"cell");typeof w=="function"&&w(u,t)}else{v("row-click",{data:o});const w=a.click(u,o,"row");typeof w=="function"&&w(u,o)}}}}),ie=parseInt(C.KUI_SPACE_60)*2+parseInt(C.KUI_ICON_SIZE_30),se={expandable:ie,bulkActions:48,actions:54},Oe=gt.default(se,t=>`${t}px`),T=e.ref({...l.tablePreferences.columnWidths||{},...se}),ue=e.computed(()=>{const t={};for(const o in T.value){const a=o;if(!T.value[a])continue;const r=T.value[a]+"px";t[a]={width:r,maxWidth:r,minWidth:r}}return t}),Le=(t,o)=>({"resize-hover":ce.value===t.key&&o!==d.value.length-1&&D(t),resizable:l.resizeColumns&&!l.nested,sortable:!t.hideLabel&&!!t.sortable,"active-sort":!t.hideLabel&&!!t.sortable&&t.key===y.value,[k.value]:t.key===y.value&&!t.hideLabel,"is-scrolled":O.value,"has-tooltip":!!t.tooltip,"sticky-column":ye(t.key),"second-sticky-column":ve(t.key),"has-row-scroll-overlay":M(t.key),"actions-column":t.key===i.TableViewHeaderKeys.ACTIONS}),Ie=t=>{if(t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS){let o="asc",a=t.key;a===y.value&&k.value==="asc"&&(o="desc"),a===y.value&&k.value==="desc"&&(a="",o=_),v("sort",{prevKey:y.value,sortColumnKey:a,sortColumnOrder:o}),Ue(a)}},ze=e.computed(()=>x.value?"resizing":B.value?"resize-hover":P.value?"th-hover":""),ce=e.computed(()=>{switch(ze.value){case"resizing":return x.value;case"resize-hover":return B.value;case"th-hover":return P.value;default:return""}}),de=e.computed(()=>{var t;return(t=Se.value)==null?void 0:t.querySelectorAll("th.resizable")}),$e=e.computed(()=>{var o;const t=(o=de.value)==null?void 0:o.item(0);if(t){const a=window==null?void 0:window.getComputedStyle(t);if(a!=null&&a.height)return`${parseInt(a.height,10)}px`}return"auto"}),fe=(t,o)=>{var c;if(t.button!==0)return;let a=0,r=0;x.value=o;let n=null;(c=de.value)==null||c.forEach(f=>{f.getAttribute("data-testid")===`table-header-${o}`&&(n=document==null?void 0:document.querySelector(`[data-tableid="${b}"] [data-testid="table-header-${o}"]`))});const u=f=>{const p=f.clientX-a;n==null||n.setAttribute("style",`width: ${r+p}px`),T.value[o]=r+p},s=()=>{x.value="",document==null||document.removeEventListener("mousemove",u),document==null||document.removeEventListener("mouseup",s),W(),R.value&&Y()};if(a=t.clientX,n){const f=window==null?void 0:window.getComputedStyle(n);f!=null&&f.width&&(r=parseInt(f.width,10)),document==null||document.addEventListener("mousemove",u),document==null||document.addEventListener("mouseup",s)}},ye=t=>S.value?t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.EXPANDABLE:!1,ve=t=>t===i.TableViewHeaderKeys.BULK_ACTIONS&&R.value,M=t=>S.value?L.value?t===i.TableViewHeaderKeys.BULK_ACTIONS:R.value?t===i.TableViewHeaderKeys.EXPANDABLE:!1:!1,U=t=>t===i.TableViewHeaderKeys.EXPANDABLE||t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.ACTIONS,D=(t,o=!1)=>{if(!l.resizeColumns||l.nested)return!1;if(o){if(d.value.indexOf(t)===d.value.length-1)return!1;const r=d.value[d.value.indexOf(t)-1];return!U(r.key)}const a=d.value[d.value.indexOf(t)+1];return!U(t.key)&&!U(a.key)},Pe=(t,o,a)=>{v("row-actions-toggle",{row:t,open:o}),setTimeout(()=>{a.isRowActionsDropdownOpen=o},o?0:100)},Fe=e.computed(()=>!(l.hidePagination||l.nested||l.hidePaginationWhenOptional&&l.data.length&&l.paginationAttributes.totalCount&&l.paginationAttributes.totalCount<=l.data.length));e.watch(()=>l.headers,t=>{h.value=te(t)},{deep:!0,immediate:!0});const Me=t=>!t.hideLabel&&!!t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS,Ue=t=>{y.value&&t?t===y.value?k.value==="asc"?k.value="desc":k.value="asc":(y.value=t,k.value="asc"):t?(y.value=t,k.value="asc"):(y.value="",k.value=_),W()},De=t=>{var a;const o=t.target;o&&(typeof o.scrollTop=="number"||typeof o.scrollLeft=="number")&&(o.scrollTop>1?(X.value=!0,O.value=!0):o.scrollTop===0&&(O.value=!1),o.scrollLeft>1?S.value=!0:o.scrollLeft===0&&(S.value=!1),o.scrollWidth<=o.scrollLeft+o.clientWidth?K.value=!1:K.value=!0),(a=Ke.value)==null||a.forEach(r=>{r&&r.closeDropdown&&r.closeDropdown()})},q=t=>I.value.find(o=>o.rowKey===m(t)),qe=(t,o)=>({"data-testid":l.rowAttrs(t)["data-testid"]?`${l.rowAttrs(t)["data-testid"]}-actions-dropdown-popover`:`row-${o}-actions-dropdown-popover`}),J=t=>{if(typeof l.rowBulkActionEnabled!="function")return!1;const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?o:o.enabled},We=t=>{if(typeof l.rowBulkActionEnabled!="function")return"";const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?"":o.disabledTooltip||""},Xe=(t,o)=>{const{to:a}=l.rowLink(t);return!a||o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS?"div":typeof a=="object"?"router-link":"a"},je=(t,o)=>{if(o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS)return{};const{to:a,target:r}=l.rowLink(t),n=a&&typeof a=="object",u=a&&typeof a=="string";return{...n&&{to:a},...u&&{href:a},...(n||u)&&{...r&&{target:r}}}},ke=e.ref(0),z=e.ref(ft.getInitialPageSize(l.tablePreferences,l.paginationAttributes)),Ze=t=>{z.value=t.pageSize,v("page-size-change",t),W()},Ge=e.computed(()=>({sortColumnKey:y.value,sortColumnOrder:k.value,...l.resizeColumns?{columnWidths:T.value}:{},...oe.value?{columnVisibility:N.value}:{},...z.value&&!l.hidePagination&&{pageSize:z.value}})),W=()=>{v("update:table-preferences",Ge.value)},R=e.computed(()=>!l.nested&&l.data.some(t=>l.rowExpandable(t))),Je={key:i.TableViewHeaderKeys.EXPANDABLE,label:"Expandable rows controls",hideLabel:!0},be=()=>{const t=[];return l.data.forEach((o,a)=>{l.rowExpanded(o)&&t.push(a)}),t},g=e.ref(be()),Ye=async(t,o)=>{Y(),await e.nextTick(),g.value.includes(t)?(g.value=g.value.filter(a=>a!==t),v("update:row-expanded",{row:o,expanded:!1})):(g.value=[...g.value,t],v("update:row-expanded",{row:o,expanded:!0}))},Qe=e.computed(()=>d.value.filter(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS)),me=e.ref({}),Y=()=>{if(typeof document>"u")return;const t=document==null?void 0:document.querySelector(`[data-tableid="${b}"]`),o=t==null?void 0:t.querySelectorAll("th"),a={};o==null||o.forEach((r,n)=>{const u=r.getAttribute("data-key");if(u===i.TableViewHeaderKeys.EXPANDABLE)return;let s=r.getBoundingClientRect().width;n===1&&(s+=ie),n===o.length-1&&(s-=15),a[u]=s}),me.value=a};e.watch([N,h,R],t=>{const[o,a,r]=t;let n=a.filter(u=>u.key===i.TableViewHeaderKeys.BULK_ACTIONS?L.value:o[u.key]!==!1);n.find(u=>u.key===i.TableViewHeaderKeys.EXPANDABLE)&&(n=n.filter(u=>u.key!==i.TableViewHeaderKeys.EXPANDABLE)),r&&n.unshift(Je),JSON.stringify(n)!==JSON.stringify(d.value)&&(d.value=n,W()),r&&Y()},{deep:!0,immediate:!0}),e.watch(E,t=>{t&&(N.value=l.tablePreferences.columnVisibility||{})},{immediate:!0});const $=e.ref(!1),_e=e.computed(()=>{const t=I.value.filter(o=>!o.disabled&&l.data.find(a=>m(a)===o.rowKey));return!!t.filter(o=>o.selected).length&&!!t.filter(o=>!o.selected).length}),et=t=>{I.value.forEach(o=>{l.data.find(a=>m(a)===o.rowKey)&&!o.disabled&&(o.selected=t)})};return e.watch([()=>l.data,I],t=>{const[o,a]=t;if(o.forEach(r=>{if(!F.value.get(r)){const n=m(r)||yt.getUniqueStringId();F.value.set(r,`table-${b}-row-${n}`)}}),L.value){o.forEach(s=>{q(s)||I.value.push({rowKey:m(s),selected:!1,disabled:!J(s)})});const r=a.filter(s=>!s.disabled&&o.find(c=>m(c)===s.rowKey));r.length&&r.filter(s=>s.selected).length===r.length?$.value=!0:(r.filter(s=>!s.selected).length,r.length,$.value=!1);const n=o.filter(s=>{const c=a.find(f=>f.rowKey===m(s));return!!(c&&c.selected)}),u=[];V.value.forEach(s=>{o.find(f=>m(s)===m(f))||u.push(s)}),V.value=[...u,...n]}g.value=be()},{deep:!0,immediate:!0}),e.watch(V,t=>{v("row-select",t)}),e.watch(()=>l.tablePreferences,t=>{t!=null&&t.pageSize&&(z.value=t.pageSize,ke.value++),y.value=t!=null&&t.sortColumnKey?t.sortColumnKey:y.value,k.value=t!=null&&t.sortColumnOrder?t.sortColumnOrder:k.value,T.value=t!=null&&t.columnWidths?t.columnWidths:T.value,N.value=t!=null&&t.columnVisibility?t.columnVisibility:N.value}),kt.useResizeObserver([ae,he],()=>{const t=ae.value;t&&(K.value=t.scrollWidth>t.clientWidth,le.value=t.clientHeight+"px",X.value=t.scrollHeight>t.clientHeight)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-table-view",{"hide-headers":l.hideHeaders}])},[Ne.value?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(t.$slots,"toolbar",{},void 0,!0),G.value||E.value?(e.openBlock(),e.createElementBlock("div",wt,[G.value?e.renderSlot(t.$slots,"bulk-actions",{key:0,selectedRows:V.value},()=>[t.$slots["bulk-actions"]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(dt.default,{key:0,"button-label":h.value.find(a=>a.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS).label,count:ne.value,disabled:!ne.value||l.loading||!l.data.length},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"bulk-action-items",{selectedRows:V.value},void 0,!0)]),_:3},8,["button-label","count","disabled"]))],!0):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createBlock(st.default,{key:1,columns:Be.value,disabled:Ae.value,"table-id":e.unref(b),"visibility-preferences":Ee.value,onUpdate:o[0]||(o[0]=a=>N.value=a)},null,8,["columns","disabled","table-id","visibility-preferences"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.loading&&!l.error?(e.openBlock(),e.createBlock(tt.default,{key:1,"data-testid":"table-skeleton",type:"table"})):l.error?(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(ge.default,{"icon-variant":"error",message:l.errorStateMessage,title:l.errorStateTitle},e.createSlots({_:2},[l.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(Q.default,{"data-testid":"error-state-action",to:l.errorStateActionRoute,onClick:o[1]||(o[1]=a=>v("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.errorStateActionMessage),1)]),_:1},8,["to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!l.error&&!l.loading&&l.data&&!l.data.length?(e.openBlock(),e.createElementBlock("div",ht,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(ge.default,{"icon-variant":l.emptyStateIconVariant,message:l.emptyStateMessage,title:l.emptyStateTitle},e.createSlots({_:2},[l.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(Q.default,{appearance:l.emptyStateButtonAppearance,"data-testid":"empty-state-action",to:l.emptyStateActionRoute,onClick:o[2]||(o[2]=a=>v("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(l.emptyStateActionMessage),1)]),_:3},8,["appearance","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{ref:"table-wrapper",class:"table-wrapper",style:e.normalizeStyle(Ve.value),onScrollPassive:De},[e.createElementVNode("table",{ref:"table",class:e.normalizeClass(["table",{"has-hover":l.rowHover&&!Z.value,"is-clickable":j.value}]),"data-tableid":e.unref(b)},[l.hideHeaders?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",{key:0,class:e.normalizeClass({"is-scrolled":O.value})},[e.createElementVNode("tr",{ref:"header-row",class:e.normalizeClass({"is-scrolled":O.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(b)}-headers-${a.key}`,"aria-sort":a.key===y.value?k.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Le(a,r)]),"data-key":a.key,"data-testid":`table-header-${a.key}`,style:e.normalizeStyle(ue.value[a.key]),onClick:()=>Ie(a),onMouseleave:o[8]||(o[8]=n=>P.value=""),onMouseover:n=>P.value=a.key},[r!==0&&D(a,!0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:o[3]||(o[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>fe(n,d.value[r-1].key),onMouseleave:o[4]||(o[4]=n=>B.value=""),onMouseover:n=>B.value=d.value[r-1].key},null,40,Bt)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":a.tooltip||A[H(a.key)]?`${H(a.key)}-${e.unref(b)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:x.value===a.key}])},[a.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS?e.renderSlot(t.$slots,Re(a.key),{key:0,column:a},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":a.hideLabel||a.key===e.unref(i.TableViewHeaderKeys).ACTIONS&&a.hideLabel!==!1}])},e.toDisplayString(a.label?a.label:a.key),3)],!0):(e.openBlock(),e.createElementBlock("div",Nt,[e.createVNode(we.default,{modelValue:$.value,"onUpdate:modelValue":o[5]||(o[5]=n=>$.value=n),"aria-label":"Toggle selection for all rows",class:"table-header-bulk-actions-checkbox","data-testid":"table-header-bulk-actions-checkbox",indeterminate:_e.value,onChange:et},null,8,["modelValue","indeterminate"])])),a.tooltip||t.$slots[H(a.key)]?(e.openBlock(),e.createBlock(pe.default,{key:2,"data-testid":H(a.key),"kpop-attributes":{target:l.tooltipTarget},"max-width":"300","tooltip-id":`${H(a.key)}-${e.unref(b)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,H(a.key),{column:a},()=>[e.createTextVNode(e.toDisplayString(a.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(lt.default),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,size:e.unref(C.KUI_ICON_SIZE_30),tabindex:"0"},null,8,["color","size"])]),_:2},1032,["data-testid","kpop-attributes","tooltip-id"])):e.createCommentVNode("",!0),Me(a)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[y.value===a.key?(e.openBlock(),e.createBlock(e.unref(at.default),{key:0,class:"active-sort-icon",color:`var(--kui-color-text-primary, ${e.unref(C.KUI_COLOR_TEXT_PRIMARY)})`,decorative:"",size:e.unref(C.KUI_ICON_SIZE_30)},null,8,["color","size"])):(e.openBlock(),e.createBlock(e.unref(rt.default),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral-weak, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:e.unref(C.KUI_ICON_SIZE_30),title:`Sort by ${a.label}`},null,8,["color","size","title"]))],64)):e.createCommentVNode("",!0)],10,Et),r!==d.value.length-1&&D(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:o[6]||(o[6]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>fe(n,a.key),onMouseleave:o[7]||(o[7]=n=>B.value=""),onMouseover:n=>B.value=a.key},null,40,Kt)):e.createCommentVNode("",!0),M(a.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),a.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":K.value}])},null,2)):e.createCommentVNode("",!0)],46,At))),128))],2)],2)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:F.value.get(a)},[e.createElementVNode("tr",e.mergeProps({class:{"last-row":r===l.data.length-1&&!g.value.includes(r)},role:l.rowLink(a).to?"link":void 0,tabindex:j.value&&!l.rowLink(a).to?0:void 0},{ref_for:!0},l.rowAttrs(a)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(n,u)=>(e.openBlock(),e.createBlock(e.unref(mt.default),{key:`${F.value.get(a)}-cell-${n.key}`,data:{isRowActionsDropdownOpen:!1}},{default:e.withCtx(({data:s})=>[e.createElementVNode("td",e.mergeProps({class:{"resize-hover":ce.value===n.key&&u!==d.value.length-1&&D(n),"row-link":!!l.rowLink(a).to,"sticky-column":ye(n.key),"second-sticky-column":ve(n.key),"has-row-scroll-overlay":M(n.key),"actions-column":n.key===e.unref(i.TableViewHeaderKeys).ACTIONS},style:{...ue.value[n.key],...s.isRowActionsDropdownOpen?{zIndex:2}:{}}},{ref_for:!0},l.cellAttrs({headerKey:n.key,row:a,rowIndex:r,colIndex:u}),e.toHandlers(xe.value(a[n.key],a),!0)),[n.key!==e.unref(i.TableViewHeaderKeys).EXPANDABLE?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Xe(a,n.key)),e.mergeProps({key:0,class:"cell-wrapper"},{ref_for:!0},je(a,n.key)),{default:e.withCtx(()=>[n.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&n.key!==e.unref(i.TableViewHeaderKeys).ACTIONS?e.renderSlot(t.$slots,n.key,{key:0,row:a,rowKey:r,rowValue:a[n.key]},()=>[e.createTextVNode(e.toDisplayString(a[n.key]),1)],!0):n.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&q(a)?(e.openBlock(),e.createBlock(pe.default,{key:1,"kpop-attributes":{target:l.tooltipTarget},"max-width":"200",placement:"bottom-start",text:J(a)?void 0:We(a)},{default:e.withCtx(()=>[e.createVNode(we.default,{modelValue:q(a).selected,"onUpdate:modelValue":c=>q(a).selected=c,"aria-label":"Toggle row selection",class:"bulk-actions-checkbox","data-testid":"bulk-actions-checkbox",disabled:!J(a)},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["kpop-attributes","text"])):n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createBlock(ct.default,{key:2,ref_for:!0,ref:"actionsDropdown",class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{placement:"bottom-end",target:"body",popoverElementAttributes:qe(a,r)},onToggleDropdown:c=>Pe(a,c,s)},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"action-items",{row:a},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(Q.default,{appearance:"tertiary","aria-label":n.label,class:"actions-dropdown-trigger","data-testid":"row-actions-dropdown-trigger",icon:"",size:"small",onMouseleave:o[9]||(o[9]=c=>Z.value=!1),onMouseover:o[10]||(o[10]=c=>Z.value=!0)},{default:e.withCtx(()=>[e.createVNode(e.unref(nt.default),{class:"more-icon",decorative:""})]),_:1},8,["aria-label"])]),_:2},1032,["kpop-attributes","onToggleDropdown"])):e.createCommentVNode("",!0)]),_:2},1040)):l.rowExpandable(a)?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("button",{"aria-controls":`table-${e.unref(b)}-row-${r}-expandable-content`,"aria-expanded":g.value.includes(r),"aria-label":"Toggle row expandable content",class:e.normalizeClass(["expandable-row-control",{expanded:g.value.includes(r)}]),"data-testid":"expandable-row-control",type:"button",onClick:c=>Ye(r,a)},[e.createVNode(e.unref(ot.default),{class:"expandable-row-control-icon",decorative:""})],10,Rt)])):e.createCommentVNode("",!0),M(n.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":K.value}])},null,2)):e.createCommentVNode("",!0)],16)]),_:2},1024))),128))],16,Vt),R.value&&l.rowExpandable(a)?e.withDirectives((e.openBlock(),e.createElementBlock("tr",{key:0,id:`table-${e.unref(b)}-row-${r}-expandable-content`,class:"expandable-content-row","data-testid":"expandable-content-row"},[e.createElementVNode("td",{colspan:d.value.length},[e.createElementVNode("div",Lt,[e.renderSlot(t.$slots,"row-expanded",{columnWidths:me.value,nestedHeaders:Qe.value,row:a},void 0,!0)])],8,Ot)],8,xt)),[[e.vShow,g.value.includes(r)]]):e.createCommentVNode("",!0)],64))),128))])],10,Tt)],36),!L.value&&!R.value?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),Te.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay right",{"overlay-visible":K.value,"scrollbar-offset":X.value}])},null,2)),Fe.value?(e.openBlock(),e.createBlock(ut.default,e.mergeProps({key:`table-${e.unref(b)}-pagination-${ke.value}`,class:"table-pagination","data-testid":"table-pagination","initial-page-size":z.value},l.paginationAttributes,{onGetNextOffset:o[11]||(o[11]=a=>v("get-next-offset")),onGetPreviousOffset:o[12]||(o[12]=a=>v("get-previous-offset")),onPageChange:o[13]||(o[13]=a=>v("page-change",a)),onPageSizeChange:Ze}),null,16,["initial-page-size"])):e.createCommentVNode("",!0)]))],2))}});exports.default=It;
|
package/dist/kongponents172.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),c=require("./kongponents256.cjs"),m=["aria-hidden"],u='<path d="M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z" fill="currentColor"/>',h=i.defineComponent({__name:"CheckCircleIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:c.KUI_ICON_SIZE_50,validator:r=>{if(typeof r=="number"&&r>0)return!0;if(typeof r=="string"){const e=String(r).replace(/px/gi,""),n=Number(e);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"},staticIds:{type:Boolean,default:!1}},setup(r){const e=r,n=i.computed(()=>{if(typeof e.size=="number"&&e.size>0)return`${e.size}px`;if(typeof e.size=="string"){const o=String(e.size).replace(/px/gi,""),t=Number(o);if(t&&!isNaN(t)&&Number.isInteger(t)&&t>0)return`${t}px`}return c.KUI_ICON_SIZE_50}),d=i.computed(()=>({boxSizing:"border-box",color:e.color,display:e.display,flexShrink:"0",height:n.value,lineHeight:"0",width:n.value,pointerEvents:e.decorative?"none":void 0})),p=o=>{const t={},v=Math.random().toString(36).substring(2,12);return o.replace(/id="([^"]+)"/g,(l,a)=>{const s=`${v}-${a}`;return t[a]=s,`id="${s}"`}).replace(/#([^\s^")]+)/g,(l,a)=>t[a]?`#${t[a]}`:l)},f={"<":"<",">":">",'"':""","'":"'","&":"&"},g=o=>o.replace(/[<>"'&]/g,t=>f[t]),C=`${e.title?`<title data-testid="kui-icon-svg-title">${g(e.title)}</title>`:""}${e.staticIds?u:p(u)}`;return(o,t)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.as),{"aria-hidden":r.decorative?"true":void 0,class:"kui-icon check-circle-icon","data-testid":"kui-icon-wrapper-check-circle-icon",style:i.normalizeStyle(d.value),tabindex:r.decorative?"-1":void 0},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("svg",{"aria-hidden":r.decorative?"true":void 0,"data-testid":"kui-icon-svg-check-circle-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg",innerHTML:C},null,8,m))]),_:1},8,["aria-hidden","style","tabindex"]))}});exports.default=h;
|
package/dist/kongponents173.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),u=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),u=require("./kongponents256.cjs"),y=["aria-hidden"],d='<path d="M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z" fill="currentColor"/>',b=i.defineComponent({__name:"CloseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:u.KUI_ICON_SIZE_50,validator:r=>{if(typeof r=="number"&&r>0)return!0;if(typeof r=="string"){const e=String(r).replace(/px/gi,""),n=Number(e);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"},staticIds:{type:Boolean,default:!1}},setup(r){const e=r,n=i.computed(()=>{if(typeof e.size=="number"&&e.size>0)return`${e.size}px`;if(typeof e.size=="string"){const o=String(e.size).replace(/px/gi,""),t=Number(o);if(t&&!isNaN(t)&&Number.isInteger(t)&&t>0)return`${t}px`}return u.KUI_ICON_SIZE_50}),c=i.computed(()=>({boxSizing:"border-box",color:e.color,display:e.display,flexShrink:"0",height:n.value,lineHeight:"0",width:n.value,pointerEvents:e.decorative?"none":void 0})),p=o=>{const t={},m=Math.random().toString(36).substring(2,12);return o.replace(/id="([^"]+)"/g,(l,a)=>{const s=`${m}-${a}`;return t[a]=s,`id="${s}"`}).replace(/#([^\s^")]+)/g,(l,a)=>t[a]?`#${t[a]}`:l)},f={"<":"<",">":">",'"':""","'":"'","&":"&"},g=o=>o.replace(/[<>"'&]/g,t=>f[t]),v=`${e.title?`<title data-testid="kui-icon-svg-title">${g(e.title)}</title>`:""}${e.staticIds?d:p(d)}`;return(o,t)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.as),{"aria-hidden":r.decorative?"true":void 0,class:"kui-icon close-icon","data-testid":"kui-icon-wrapper-close-icon",style:i.normalizeStyle(c.value),tabindex:r.decorative?"-1":void 0},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("svg",{"aria-hidden":r.decorative?"true":void 0,"data-testid":"kui-icon-svg-close-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg",innerHTML:v},null,8,y))]),_:1},8,["aria-hidden","style","tabindex"]))}});exports.default=b;
|