@kong/kongponents 9.60.7-pr.3276.b2cf348.0 → 9.60.7
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/kongponents100.cjs +1 -1
- package/dist/kongponents100.es.js +2 -2
- package/dist/kongponents106.cjs +1 -1
- package/dist/kongponents106.es.js +5 -5
- package/dist/kongponents108.cjs +1 -1
- package/dist/kongponents108.es.js +3 -3
- package/dist/kongponents110.cjs +1 -1
- package/dist/kongponents110.es.js +4 -4
- package/dist/kongponents114.cjs +1 -1
- package/dist/kongponents114.es.js +2 -2
- package/dist/kongponents116.cjs +1 -1
- package/dist/kongponents116.es.js +6 -6
- package/dist/kongponents118.cjs +1 -1
- package/dist/kongponents118.es.js +2 -2
- package/dist/kongponents120.cjs +1 -1
- package/dist/kongponents120.es.js +10 -10
- package/dist/kongponents123.cjs +1 -1
- package/dist/kongponents123.es.js +5 -5
- package/dist/kongponents125.cjs +1 -1
- package/dist/kongponents125.es.js +8 -8
- package/dist/kongponents129.cjs +1 -1
- package/dist/kongponents129.es.js +2 -2
- package/dist/kongponents131.cjs +1 -1
- package/dist/kongponents131.es.js +1 -1
- package/dist/kongponents133.cjs +1 -1
- package/dist/kongponents133.es.js +10 -10
- package/dist/kongponents140.cjs +1 -1
- package/dist/kongponents140.es.js +5 -5
- package/dist/kongponents142.cjs +1 -1
- package/dist/kongponents142.es.js +1 -1
- package/dist/kongponents144.cjs +1 -1
- package/dist/kongponents144.es.js +6 -6
- package/dist/kongponents148.cjs +1 -1
- package/dist/kongponents148.es.js +2 -2
- package/dist/kongponents150.cjs +1 -1
- package/dist/kongponents150.es.js +7 -7
- package/dist/kongponents156.cjs +1 -1
- package/dist/kongponents156.es.js +3 -3
- package/dist/kongponents158.cjs +1 -1
- package/dist/kongponents158.es.js +5 -5
- package/dist/kongponents160.cjs +1 -1
- package/dist/kongponents160.es.js +3 -3
- package/dist/kongponents162.cjs +1 -1
- package/dist/kongponents162.es.js +12 -12
- package/dist/kongponents167.cjs +1 -1
- package/dist/kongponents167.es.js +3 -3
- package/dist/kongponents175.cjs +1 -1
- package/dist/kongponents175.es.js +24 -24
- package/dist/kongponents176.cjs +1 -1
- package/dist/kongponents176.es.js +25 -25
- package/dist/kongponents177.cjs +1 -1
- package/dist/kongponents177.es.js +28 -28
- package/dist/kongponents178.cjs +1 -1
- package/dist/kongponents178.es.js +20 -20
- package/dist/kongponents179.cjs +1 -1
- package/dist/kongponents179.es.js +121 -20
- package/dist/kongponents180.cjs +1 -1
- package/dist/kongponents180.es.js +121 -5
- package/dist/kongponents181.cjs +1 -1
- package/dist/kongponents181.es.js +20 -121
- package/dist/kongponents182.cjs +1 -1
- package/dist/kongponents182.es.js +524 -5
- package/dist/kongponents183.cjs +1 -1
- package/dist/kongponents183.es.js +35 -96
- package/dist/kongponents184.cjs +2 -1
- package/dist/kongponents184.es.js +88 -157
- package/dist/kongponents185.cjs +1 -1
- package/dist/kongponents185.es.js +30 -30
- package/dist/kongponents186.cjs +1 -1
- package/dist/kongponents186.es.js +121 -2
- package/dist/kongponents187.cjs +1 -1
- package/dist/kongponents187.es.js +121 -5
- package/dist/kongponents188.cjs +1 -1
- package/dist/kongponents188.es.js +22 -22
- package/dist/kongponents189.cjs +2 -1
- package/dist/kongponents189.es.js +116 -93
- package/dist/kongponents190.cjs +1 -1
- package/dist/kongponents190.es.js +121 -5
- package/dist/kongponents191.cjs +1 -1
- package/dist/kongponents191.es.js +121 -17
- package/dist/kongponents192.cjs +1 -1
- package/dist/kongponents192.es.js +17 -121
- package/dist/kongponents193.cjs +1 -1
- package/dist/kongponents193.es.js +5 -114
- package/dist/kongponents194.cjs +1 -1
- package/dist/kongponents194.es.js +52 -17
- package/dist/kongponents196.cjs +1 -1
- package/dist/kongponents196.es.js +110 -513
- package/dist/kongponents197.cjs +1 -1
- package/dist/kongponents197.es.js +5 -36
- package/dist/kongponents198.cjs +1 -2
- package/dist/kongponents198.es.js +7 -97
- package/dist/kongponents199.cjs +1 -1
- package/dist/kongponents199.es.js +59 -120
- package/dist/kongponents20.cjs +1 -1
- package/dist/kongponents20.es.js +8 -8
- package/dist/kongponents200.cjs +1 -1
- package/dist/kongponents200.es.js +24 -24
- package/dist/kongponents201.cjs +1 -1
- package/dist/kongponents201.es.js +24 -24
- package/dist/kongponents202.cjs +1 -2
- package/dist/kongponents202.es.js +91 -116
- package/dist/kongponents203.cjs +1 -1
- package/dist/kongponents203.es.js +163 -117
- package/dist/kongponents204.cjs +1 -1
- package/dist/kongponents204.es.js +2 -52
- package/dist/kongponents205.cjs +1 -0
- package/dist/kongponents205.es.js +101 -0
- package/dist/kongponents206.cjs +1 -1
- package/dist/kongponents206.es.js +33 -33
- package/dist/kongponents207.cjs +1 -1
- package/dist/kongponents207.es.js +121 -5
- package/dist/kongponents208.cjs +1 -1
- package/dist/kongponents208.es.js +121 -8
- package/dist/kongponents209.cjs +1 -1
- package/dist/kongponents209.es.js +120 -59
- package/dist/kongponents210.cjs +1 -1
- package/dist/kongponents210.es.js +27 -27
- package/dist/kongponents211.cjs +1 -1
- package/dist/kongponents211.es.js +26 -26
- package/dist/kongponents212.cjs +1 -1
- package/dist/kongponents212.es.js +3 -3
- package/dist/kongponents213.cjs +1 -1
- package/dist/kongponents213.es.js +5 -121
- package/dist/kongponents214.cjs +1 -1
- package/dist/kongponents214.es.js +10 -121
- package/dist/kongponents215.cjs +1 -1
- package/dist/kongponents215.es.js +5 -121
- package/dist/kongponents216.cjs +1 -1
- package/dist/kongponents216.es.js +5 -21
- package/dist/kongponents217.cjs +1 -1
- package/dist/kongponents217.es.js +5 -121
- package/dist/kongponents218.cjs +1 -1
- package/dist/kongponents218.es.js +5 -121
- package/dist/kongponents219.cjs +1 -1
- package/dist/kongponents219.es.js +5 -121
- package/dist/kongponents22.cjs +1 -1
- package/dist/kongponents22.es.js +2 -2
- package/dist/kongponents220.cjs +1 -1
- package/dist/kongponents220.es.js +4 -6
- package/dist/kongponents221.cjs +1 -1
- package/dist/kongponents221.es.js +5 -181
- package/dist/kongponents222.cjs +1 -1
- package/dist/kongponents222.es.js +4 -4
- package/dist/kongponents223.cjs +1 -1
- package/dist/kongponents223.es.js +15 -5
- package/dist/kongponents224.cjs +1 -1
- package/dist/kongponents224.es.js +5 -121
- package/dist/kongponents225.cjs +1 -1
- package/dist/kongponents225.es.js +5 -121
- package/dist/kongponents226.cjs +1 -1
- package/dist/kongponents226.es.js +20 -120
- package/dist/kongponents227.cjs +1 -1
- package/dist/kongponents227.es.js +7 -121
- package/dist/kongponents228.cjs +1 -1
- package/dist/kongponents228.es.js +5 -121
- package/dist/kongponents229.cjs +1 -1
- package/dist/kongponents229.es.js +177 -117
- package/dist/kongponents230.cjs +1 -1
- package/dist/kongponents230.es.js +121 -5
- package/dist/kongponents231.cjs +1 -1
- package/dist/kongponents231.es.js +121 -5
- package/dist/kongponents232.cjs +1 -1
- package/dist/kongponents232.es.js +121 -5
- package/dist/kongponents233.cjs +1 -1
- package/dist/kongponents233.es.js +121 -5
- package/dist/kongponents234.cjs +1 -1
- package/dist/kongponents234.es.js +121 -5
- package/dist/kongponents235.cjs +1 -1
- package/dist/kongponents235.es.js +3 -3
- package/dist/kongponents236.cjs +1 -1
- package/dist/kongponents236.es.js +121 -5
- package/dist/kongponents237.cjs +1 -1
- package/dist/kongponents237.es.js +121 -5
- package/dist/kongponents238.cjs +1 -1
- package/dist/kongponents238.es.js +3 -3
- package/dist/kongponents239.cjs +1 -1
- package/dist/kongponents239.es.js +121 -5
- package/dist/kongponents24.cjs +1 -1
- package/dist/kongponents24.es.js +1 -1
- package/dist/kongponents240.cjs +1 -1
- package/dist/kongponents240.es.js +26 -26
- package/dist/kongponents241.cjs +1 -1
- package/dist/kongponents241.es.js +5 -121
- package/dist/kongponents242.cjs +1 -1
- package/dist/kongponents242.es.js +4 -4
- package/dist/kongponents243.cjs +1 -1
- package/dist/kongponents243.es.js +113 -9
- package/dist/kongponents244.cjs +1 -1
- package/dist/kongponents244.es.js +17 -15
- package/dist/kongponents245.cjs +1 -1
- package/dist/kongponents245.es.js +394 -118
- package/dist/kongponents247.cjs +1 -1
- package/dist/kongponents247.es.js +5 -22
- package/dist/kongponents248.cjs +3 -1
- package/dist/kongponents248.es.js +586 -38
- package/dist/kongponents249.cjs +1 -1
- package/dist/kongponents249.es.js +19 -324
- package/dist/kongponents250.cjs +1 -1
- package/dist/kongponents250.es.js +40 -24
- package/dist/kongponents251.cjs +1 -0
- package/dist/kongponents251.es.js +330 -0
- package/dist/kongponents252.cjs +1 -1
- package/dist/kongponents252.es.js +87 -44
- package/dist/kongponents254.cjs +1 -1
- package/dist/kongponents254.es.js +220 -29
- package/dist/kongponents256.cjs +1 -1
- package/dist/kongponents256.es.js +18 -17
- package/dist/kongponents258.cjs +1 -1
- package/dist/kongponents258.es.js +42 -39
- package/dist/kongponents26.cjs +1 -1
- package/dist/kongponents26.es.js +4 -4
- package/dist/kongponents260.cjs +1 -1
- package/dist/kongponents260.es.js +28 -35
- package/dist/kongponents262.cjs +1 -1
- package/dist/kongponents262.es.js +20 -54
- package/dist/kongponents264.cjs +1 -3
- package/dist/kongponents264.es.js +43 -586
- package/dist/kongponents266.cjs +1 -0
- package/dist/kongponents266.es.js +43 -0
- package/dist/kongponents268.cjs +1 -1
- package/dist/kongponents268.es.js +174 -133
- package/dist/kongponents270.cjs +1 -1
- package/dist/kongponents270.es.js +121 -6
- package/dist/kongponents271.cjs +1 -1
- package/dist/kongponents271.es.js +2 -175
- package/dist/kongponents272.cjs +1 -0
- package/dist/kongponents272.es.js +123 -0
- package/dist/kongponents273.cjs +1 -1
- package/dist/kongponents273.es.js +116 -175
- package/dist/kongponents274.cjs +1 -0
- package/dist/kongponents274.es.js +123 -0
- package/dist/kongponents275.cjs +1 -1
- package/dist/kongponents275.es.js +5 -121
- package/dist/kongponents276.cjs +1 -1
- package/dist/kongponents276.es.js +5 -2
- package/dist/kongponents277.cjs +1 -1
- package/dist/kongponents277.es.js +19 -120
- package/dist/kongponents278.cjs +1 -1
- package/dist/kongponents278.es.js +4 -121
- package/dist/kongponents279.cjs +1 -1
- package/dist/kongponents279.es.js +5 -121
- package/dist/kongponents280.cjs +1 -1
- package/dist/kongponents280.es.js +6 -213
- package/dist/kongponents281.cjs +1 -1
- package/dist/kongponents281.es.js +9 -87
- package/dist/kongponents282.cjs +1 -0
- package/dist/kongponents282.es.js +8 -0
- package/dist/kongponents283.cjs +1 -1
- package/dist/kongponents283.es.js +4 -45
- package/dist/kongponents284.cjs +1 -0
- package/dist/kongponents284.es.js +19 -0
- package/dist/kongponents285.cjs +1 -1
- package/dist/kongponents285.es.js +4 -91
- package/dist/kongponents286.cjs +1 -0
- package/dist/kongponents286.es.js +10 -0
- package/dist/kongponents287.cjs +1 -1
- package/dist/kongponents287.es.js +7 -225
- package/dist/kongponents288.cjs +1 -0
- package/dist/kongponents288.es.js +6 -0
- package/dist/kongponents289.cjs +1 -1
- package/dist/kongponents289.es.js +2 -83
- package/dist/kongponents290.cjs +1 -0
- package/dist/kongponents290.es.js +8 -0
- package/dist/kongponents291.cjs +1 -1
- package/dist/kongponents291.es.js +10 -41
- package/dist/kongponents292.cjs +1 -0
- package/dist/kongponents292.es.js +7 -0
- package/dist/kongponents293.cjs +1 -1
- package/dist/kongponents293.es.js +4 -375
- package/dist/kongponents294.cjs +1 -1
- package/dist/kongponents294.es.js +3 -128
- package/dist/kongponents295.cjs +1 -1
- package/dist/kongponents295.es.js +4 -64
- package/dist/kongponents296.cjs +1 -0
- package/dist/kongponents296.es.js +10 -0
- package/dist/kongponents297.cjs +1 -1
- package/dist/kongponents297.es.js +6 -4
- package/dist/kongponents298.cjs +1 -1
- package/dist/kongponents298.es.js +5 -5
- package/dist/kongponents299.cjs +1 -1
- package/dist/kongponents299.es.js +9 -19
- package/dist/kongponents300.cjs +1 -1
- package/dist/kongponents300.es.js +4 -2
- package/dist/kongponents301.cjs +1 -1
- package/dist/kongponents301.es.js +9 -5
- package/dist/kongponents302.cjs +1 -1
- package/dist/kongponents302.es.js +5 -4
- package/dist/kongponents303.cjs +1 -1
- package/dist/kongponents303.es.js +17 -8
- package/dist/kongponents304.cjs +1 -1
- package/dist/kongponents304.es.js +10 -4
- package/dist/kongponents305.cjs +1 -1
- package/dist/kongponents305.es.js +6 -3
- package/dist/kongponents306.cjs +1 -1
- package/dist/kongponents306.es.js +12 -16
- package/dist/kongponents307.cjs +1 -1
- package/dist/kongponents307.es.js +9 -3
- package/dist/kongponents308.cjs +1 -1
- package/dist/kongponents308.es.js +6 -8
- package/dist/kongponents309.cjs +1 -1
- package/dist/kongponents309.es.js +8 -6
- package/dist/kongponents310.cjs +1 -1
- package/dist/kongponents310.es.js +15 -3
- package/dist/kongponents311.cjs +1 -1
- package/dist/kongponents311.es.js +18 -2
- package/dist/kongponents312.cjs +1 -1
- package/dist/kongponents312.es.js +5 -5
- package/dist/kongponents313.cjs +1 -1
- package/dist/kongponents313.es.js +10 -9
- package/dist/kongponents314.cjs +1 -1
- package/dist/kongponents314.es.js +6 -4
- package/dist/kongponents315.cjs +1 -1
- package/dist/kongponents315.es.js +8 -4
- package/dist/kongponents316.cjs +1 -1
- package/dist/kongponents316.es.js +5 -2
- package/dist/kongponents317.cjs +1 -1
- package/dist/kongponents317.es.js +6 -3
- package/dist/kongponents318.cjs +1 -1
- package/dist/kongponents318.es.js +8 -6
- package/dist/kongponents319.cjs +1 -1
- package/dist/kongponents319.es.js +7 -6
- package/dist/kongponents320.cjs +1 -1
- package/dist/kongponents320.es.js +4 -5
- package/dist/kongponents321.cjs +1 -1
- package/dist/kongponents321.es.js +5 -9
- package/dist/kongponents322.cjs +1 -1
- package/dist/kongponents322.es.js +15 -5
- package/dist/kongponents323.cjs +1 -1
- package/dist/kongponents323.es.js +212 -8
- package/dist/kongponents324.cjs +1 -1
- package/dist/kongponents324.es.js +180 -7
- package/dist/kongponents326.cjs +1 -1
- package/dist/kongponents326.es.js +64 -12
- package/dist/kongponents329.cjs +1 -1
- package/dist/kongponents329.es.js +87 -10
- package/dist/kongponents331.cjs +1 -1
- package/dist/kongponents331.es.js +45 -9
- package/dist/kongponents333.cjs +1 -1
- package/dist/kongponents333.es.js +8 -17
- package/dist/kongponents334.cjs +1 -1
- package/dist/kongponents334.es.js +6 -5
- package/dist/kongponents335.cjs +1 -1
- package/dist/kongponents335.es.js +7 -10
- package/dist/kongponents336.cjs +1 -1
- package/dist/kongponents336.es.js +4 -6
- package/dist/kongponents337.cjs +1 -1
- package/dist/kongponents337.es.js +9 -7
- package/dist/kongponents338.cjs +1 -1
- package/dist/kongponents338.es.js +8 -5
- package/dist/kongponents339.cjs +1 -1
- package/dist/kongponents339.es.js +601 -6
- package/dist/kongponents340.cjs +1 -1
- package/dist/kongponents340.es.js +71 -10
- package/dist/kongponents341.cjs +1 -1
- package/dist/kongponents341.es.js +4 -7
- package/dist/kongponents342.cjs +1 -1
- package/dist/kongponents342.es.js +19 -3
- package/dist/kongponents343.cjs +1 -1
- package/dist/kongponents343.es.js +4 -5
- package/dist/kongponents344.cjs +1 -1
- package/dist/kongponents344.es.js +18 -16
- package/dist/kongponents345.cjs +1 -1
- package/dist/kongponents345.es.js +7 -8
- package/dist/kongponents346.cjs +1 -1
- package/dist/kongponents346.es.js +4 -5
- package/dist/kongponents347.cjs +1 -1
- package/dist/kongponents347.es.js +8 -7
- package/dist/kongponents348.cjs +1 -1
- package/dist/kongponents348.es.js +7 -4
- package/dist/kongponents349.cjs +1 -1
- package/dist/kongponents349.es.js +6 -8
- package/dist/kongponents350.cjs +1 -1
- package/dist/kongponents350.es.js +4 -8
- package/dist/kongponents351.cjs +1 -1
- package/dist/kongponents351.es.js +19 -600
- package/dist/kongponents352.cjs +1 -1
- package/dist/kongponents352.es.js +5 -71
- package/dist/kongponents353.cjs +1 -1
- package/dist/kongponents353.es.js +96 -4
- package/dist/kongponents354.cjs +1 -1
- package/dist/kongponents354.es.js +171 -19
- package/dist/kongponents355.cjs +1 -1
- package/dist/kongponents355.es.js +5 -5
- package/dist/kongponents356.cjs +1 -1
- package/dist/kongponents356.es.js +7 -18
- package/dist/kongponents357.cjs +1 -1
- package/dist/kongponents357.es.js +5 -8
- package/dist/kongponents358.cjs +1 -1
- package/dist/kongponents358.es.js +5 -6
- package/dist/kongponents359.cjs +1 -1
- package/dist/kongponents359.es.js +69 -8
- package/dist/kongponents360.cjs +1 -1
- package/dist/kongponents360.es.js +2 -8
- package/dist/kongponents361.cjs +1 -1
- package/dist/kongponents361.es.js +57 -8
- package/dist/kongponents363.cjs +1 -1
- package/dist/kongponents363.es.js +132 -19
- package/dist/kongponents364.cjs +1 -1
- package/dist/kongponents364.es.js +2 -5
- package/dist/kongponents365.cjs +1 -1
- package/dist/kongponents365.es.js +53 -94
- package/dist/kongponents367.cjs +1 -1
- package/dist/kongponents367.es.js +8 -5
- package/dist/kongponents368.cjs +1 -1
- package/dist/kongponents368.es.js +5 -6
- package/dist/kongponents369.cjs +1 -1
- package/dist/kongponents369.es.js +9 -5
- package/dist/kongponents370.cjs +1 -1
- package/dist/kongponents370.es.js +6 -5
- package/dist/kongponents371.cjs +1 -1
- package/dist/kongponents371.es.js +9 -69
- package/dist/kongponents372.cjs +1 -1
- package/dist/kongponents372.es.js +15 -2
- package/dist/kongponents373.cjs +1 -1
- package/dist/kongponents373.es.js +3 -2
- package/dist/kongponents374.cjs +1 -1
- package/dist/kongponents374.es.js +5 -1537
- package/dist/kongponents375.cjs +1 -1
- package/dist/kongponents375.es.js +3 -5
- package/dist/kongponents376.cjs +1 -1
- package/dist/kongponents376.es.js +6 -5769
- package/dist/kongponents377.cjs +1 -1
- package/dist/kongponents377.es.js +8 -6
- package/dist/kongponents378.cjs +1 -1
- package/dist/kongponents378.es.js +6 -25
- package/dist/kongponents379.cjs +1 -1
- package/dist/kongponents379.es.js +2 -95
- package/dist/kongponents380.cjs +1 -0
- package/dist/kongponents380.es.js +15 -0
- package/dist/kongponents381.cjs +1 -1
- package/dist/kongponents381.es.js +4 -7
- package/dist/kongponents382.cjs +1 -1
- package/dist/kongponents382.es.js +3 -6
- package/dist/kongponents383.cjs +1 -1
- package/dist/kongponents383.es.js +26 -9
- package/dist/kongponents384.cjs +1 -1
- package/dist/kongponents384.es.js +4 -10
- package/dist/kongponents385.cjs +1 -1
- package/dist/kongponents385.es.js +4 -15
- package/dist/kongponents386.cjs +1 -1
- package/dist/kongponents386.es.js +4 -6
- package/dist/kongponents387.cjs +1 -1
- package/dist/kongponents387.es.js +4 -3
- package/dist/kongponents388.cjs +1 -1
- package/dist/kongponents388.es.js +4 -8
- package/dist/kongponents389.cjs +1 -1
- package/dist/kongponents389.es.js +14 -2
- package/dist/kongponents390.cjs +1 -1
- package/dist/kongponents390.es.js +5 -10
- package/dist/kongponents391.cjs +1 -1
- package/dist/kongponents391.es.js +29 -7
- package/dist/kongponents392.cjs +1 -1
- package/dist/kongponents392.es.js +26 -5
- package/dist/kongponents393.cjs +1 -1
- package/dist/kongponents393.es.js +16 -2
- package/dist/kongponents394.cjs +1 -1
- package/dist/kongponents394.es.js +8 -11
- package/dist/kongponents395.cjs +1 -1
- package/dist/kongponents395.es.js +4 -4
- package/dist/kongponents396.cjs +1 -1
- package/dist/kongponents396.es.js +13 -5
- package/dist/kongponents397.cjs +1 -1
- package/dist/kongponents397.es.js +8 -29
- package/dist/kongponents398.cjs +1 -1
- package/dist/kongponents398.es.js +3 -3
- package/dist/kongponents399.cjs +1 -1
- package/dist/kongponents399.es.js +6 -26
- package/dist/kongponents400.cjs +1 -1
- package/dist/kongponents400.es.js +6 -4
- package/dist/kongponents401.cjs +1 -1
- package/dist/kongponents401.es.js +8 -4
- package/dist/kongponents402.cjs +1 -1
- package/dist/kongponents402.es.js +6 -4
- package/dist/kongponents403.cjs +1 -1
- package/dist/kongponents403.es.js +11 -4
- package/dist/kongponents404.cjs +1 -1
- package/dist/kongponents404.es.js +6 -4
- package/dist/kongponents405.cjs +1 -1
- package/dist/kongponents405.es.js +4 -14
- package/dist/kongponents406.cjs +1 -1
- package/dist/kongponents406.es.js +4 -26
- package/dist/kongponents407.cjs +1 -1
- package/dist/kongponents407.es.js +5 -15
- package/dist/kongponents408.cjs +1 -1
- package/dist/kongponents408.es.js +8 -10
- package/dist/kongponents409.cjs +1 -1
- package/dist/kongponents409.es.js +6 -4
- package/dist/kongponents410.cjs +1 -1
- package/dist/kongponents410.es.js +10 -14
- package/dist/kongponents411.cjs +1 -1
- package/dist/kongponents411.es.js +6 -8
- package/dist/kongponents412.cjs +1 -1
- package/dist/kongponents412.es.js +22 -3
- package/dist/kongponents413.cjs +1 -1
- package/dist/kongponents413.es.js +6 -5
- package/dist/kongponents414.cjs +1 -1
- package/dist/kongponents414.es.js +6 -5
- package/dist/kongponents415.cjs +1 -1
- package/dist/kongponents415.es.js +6 -7
- package/dist/kongponents416.cjs +1 -1
- package/dist/kongponents416.es.js +8 -5
- package/dist/kongponents417.cjs +1 -1
- package/dist/kongponents417.es.js +6 -11
- package/dist/kongponents418.cjs +1 -1
- package/dist/kongponents418.es.js +83 -6
- package/dist/kongponents420.cjs +1 -1
- package/dist/kongponents420.es.js +41 -5
- package/dist/kongponents422.cjs +1 -1
- package/dist/kongponents422.es.js +5 -8
- package/dist/kongponents423.cjs +1 -1
- package/dist/kongponents423.es.js +2 -7
- package/dist/kongponents424.cjs +1 -1
- package/dist/kongponents424.es.js +5774 -10
- package/dist/kongponents425.cjs +1 -1
- package/dist/kongponents425.es.js +1538 -5
- package/dist/kongponents426.cjs +1 -1
- package/dist/kongponents426.es.js +5 -22
- package/dist/kongponents427.cjs +1 -1
- package/dist/kongponents427.es.js +10 -6
- package/dist/kongponents428.cjs +1 -1
- package/dist/kongponents428.es.js +10 -6
- package/dist/kongponents429.cjs +1 -1
- package/dist/kongponents429.es.js +12 -8
- package/dist/kongponents430.cjs +1 -1
- package/dist/kongponents430.es.js +10 -6
- package/dist/kongponents431.cjs +1 -1
- package/dist/kongponents431.es.js +18 -10
- package/dist/kongponents432.cjs +1 -1
- package/dist/kongponents432.es.js +5 -10
- package/dist/kongponents433.cjs +1 -1
- package/dist/kongponents433.es.js +54 -13
- package/dist/kongponents434.cjs +1 -1
- package/dist/kongponents434.es.js +2 -11
- package/dist/kongponents435.cjs +1 -1
- package/dist/kongponents435.es.js +122 -19
- package/dist/kongponents437.cjs +1 -1
- package/dist/kongponents437.es.js +93 -52
- package/dist/kongponents439.cjs +1 -1
- package/dist/kongponents439.es.js +25 -5
- package/dist/kongponents440.cjs +1 -1
- package/dist/kongponents440.es.js +72 -122
- package/dist/kongponents441.cjs +1 -0
- package/dist/kongponents441.es.js +4 -0
- package/dist/kongponents442.cjs +1 -1
- package/dist/kongponents442.es.js +11 -70
- package/dist/kongponents443.cjs +1 -1
- package/dist/kongponents443.es.js +23 -2
- package/dist/kongponents444.cjs +1 -1
- package/dist/kongponents444.es.js +19 -10
- package/dist/kongponents445.cjs +1 -1
- package/dist/kongponents445.es.js +17 -19
- package/dist/kongponents446.cjs +1 -1
- package/dist/kongponents446.es.js +612 -19
- package/dist/kongponents447.cjs +1 -1
- package/dist/kongponents447.es.js +79 -19
- package/dist/kongponents448.cjs +1 -1
- package/dist/kongponents448.es.js +12 -612
- package/dist/kongponents449.cjs +1 -1
- package/dist/kongponents449.es.js +26 -80
- package/dist/kongponents450.cjs +1 -1
- package/dist/kongponents450.es.js +12 -10
- package/dist/kongponents451.cjs +1 -1
- package/dist/kongponents451.es.js +13 -25
- package/dist/kongponents452.cjs +1 -1
- package/dist/kongponents452.es.js +16 -16
- package/dist/kongponents453.cjs +1 -1
- package/dist/kongponents453.es.js +13 -13
- package/dist/kongponents454.cjs +1 -1
- package/dist/kongponents454.es.js +23 -16
- package/dist/kongponents455.cjs +1 -1
- package/dist/kongponents455.es.js +16 -13
- package/dist/kongponents456.cjs +1 -1
- package/dist/kongponents456.es.js +2 -24
- package/dist/kongponents457.cjs +1 -1
- package/dist/kongponents457.es.js +13 -13
- package/dist/kongponents458.cjs +1 -1
- package/dist/kongponents458.es.js +65 -2
- package/dist/kongponents459.cjs +1 -1
- package/dist/kongponents459.es.js +4 -17
- package/dist/kongponents462.cjs +1 -1
- package/dist/kongponents462.es.js +369 -59
- package/dist/kongponents463.cjs +1 -1
- package/dist/kongponents463.es.js +127 -4
- package/dist/kongponents464.cjs +1 -1
- package/dist/kongponents464.es.js +6 -10
- package/dist/kongponents465.cjs +1 -1
- package/dist/kongponents465.es.js +17 -16
- package/dist/kongponents466.cjs +1 -1
- package/dist/kongponents466.es.js +4 -6
- package/dist/kongponents467.cjs +1 -1
- package/dist/kongponents467.es.js +4 -17
- package/dist/kongponents468.cjs +1 -1
- package/dist/kongponents468.es.js +3 -4
- package/dist/kongponents469.cjs +1 -1
- package/dist/kongponents469.es.js +3 -4
- package/dist/kongponents470.cjs +1 -1
- package/dist/kongponents470.es.js +14 -3
- package/dist/kongponents471.cjs +1 -1
- package/dist/kongponents471.es.js +6 -3
- package/dist/kongponents472.cjs +1 -1
- package/dist/kongponents472.es.js +7 -14
- package/dist/kongponents473.cjs +1 -1
- package/dist/kongponents473.es.js +10 -6
- package/dist/kongponents474.cjs +1 -1
- package/dist/kongponents474.es.js +5 -8
- package/dist/kongponents475.cjs +1 -1
- package/dist/kongponents475.es.js +3 -10
- package/dist/kongponents476.cjs +1 -1
- package/dist/kongponents476.es.js +3 -4
- package/dist/kongponents477.cjs +1 -1
- package/dist/kongponents477.es.js +37 -3
- package/dist/kongponents478.cjs +1 -1
- package/dist/kongponents478.es.js +42 -3
- package/dist/kongponents479.cjs +1 -1
- package/dist/kongponents479.es.js +29 -33
- package/dist/kongponents480.cjs +1 -1
- package/dist/kongponents480.es.js +3 -43
- package/dist/kongponents481.cjs +1 -1
- package/dist/kongponents481.es.js +16 -32
- package/dist/kongponents482.cjs +1 -1
- package/dist/kongponents482.es.js +6 -3
- package/dist/kongponents483.cjs +1 -1
- package/dist/kongponents483.es.js +9 -16
- package/dist/kongponents484.cjs +1 -1
- package/dist/kongponents484.es.js +16 -5
- package/dist/kongponents485.cjs +1 -1
- package/dist/kongponents485.es.js +2 -2
- package/dist/kongponents486.cjs +1 -1
- package/dist/kongponents486.es.js +2 -2
- package/dist/kongponents487.cjs +1 -1
- package/dist/kongponents487.es.js +4 -4
- package/dist/kongponents488.cjs +1 -1
- package/dist/kongponents488.es.js +4 -4
- package/dist/kongponents490.cjs +1 -1
- package/dist/kongponents490.es.js +1 -1
- package/dist/kongponents492.cjs +1 -1
- package/dist/kongponents492.es.js +1 -1
- package/dist/kongponents493.cjs +1 -1
- package/dist/kongponents493.es.js +2 -2
- package/dist/kongponents496.cjs +1 -1
- package/dist/kongponents496.es.js +2 -2
- package/dist/kongponents498.cjs +1 -1
- package/dist/kongponents498.es.js +4 -4
- package/dist/kongponents502.cjs +1 -1
- package/dist/kongponents502.es.js +3 -3
- package/dist/kongponents503.cjs +1 -1
- package/dist/kongponents503.es.js +3 -3
- package/dist/kongponents504.cjs +1 -1
- package/dist/kongponents504.es.js +3 -3
- package/dist/kongponents505.cjs +1 -1
- package/dist/kongponents505.es.js +3 -3
- package/dist/kongponents506.cjs +1 -1
- package/dist/kongponents506.es.js +5 -5
- package/dist/kongponents508.cjs +1 -1
- package/dist/kongponents508.es.js +1 -1
- package/dist/kongponents514.cjs +1 -1
- package/dist/kongponents514.es.js +1 -1
- package/dist/kongponents517.cjs +1 -1
- package/dist/kongponents517.es.js +4 -29
- package/dist/kongponents518.cjs +1 -1
- package/dist/kongponents518.es.js +3 -119
- package/dist/kongponents519.cjs +1 -1
- package/dist/kongponents519.es.js +9 -29
- package/dist/kongponents520.cjs +1 -1
- package/dist/kongponents520.es.js +5 -10
- package/dist/kongponents521.cjs +1 -1
- package/dist/kongponents521.es.js +4 -13
- package/dist/kongponents522.cjs +1 -1
- package/dist/kongponents522.es.js +5 -32
- package/dist/kongponents523.cjs +1 -1
- package/dist/kongponents523.es.js +3 -29
- package/dist/kongponents524.cjs +1 -1
- package/dist/kongponents524.es.js +4 -10
- package/dist/kongponents525.cjs +1 -1
- package/dist/kongponents525.es.js +4 -12
- package/dist/kongponents526.cjs +1 -1
- package/dist/kongponents526.es.js +10 -17
- package/dist/kongponents527.cjs +1 -1
- package/dist/kongponents527.es.js +6 -23
- package/dist/kongponents528.cjs +1 -1
- package/dist/kongponents528.es.js +6 -16
- package/dist/kongponents529.cjs +1 -1
- package/dist/kongponents529.es.js +4 -96
- package/dist/kongponents530.cjs +1 -1
- package/dist/kongponents530.es.js +5 -43
- package/dist/kongponents531.cjs +1 -1
- package/dist/kongponents531.es.js +13 -27
- package/dist/kongponents532.cjs +1 -1
- package/dist/kongponents532.es.js +27 -70
- package/dist/kongponents533.cjs +1 -1
- package/dist/kongponents533.es.js +14 -50
- package/dist/kongponents534.cjs +1 -1
- package/dist/kongponents534.es.js +29 -35
- package/dist/kongponents535.cjs +1 -1
- package/dist/kongponents535.es.js +117 -39
- package/dist/kongponents536.cjs +1 -1
- package/dist/kongponents536.es.js +29 -3
- package/dist/kongponents537.cjs +1 -1
- package/dist/kongponents537.es.js +10 -9
- package/dist/kongponents538.cjs +1 -1
- package/dist/kongponents538.es.js +13 -5
- package/dist/kongponents539.cjs +1 -1
- package/dist/kongponents539.es.js +32 -4
- package/dist/kongponents540.cjs +1 -1
- package/dist/kongponents540.es.js +28 -5
- package/dist/kongponents541.cjs +1 -1
- package/dist/kongponents541.es.js +10 -3
- package/dist/kongponents542.cjs +1 -1
- package/dist/kongponents542.es.js +13 -3
- package/dist/kongponents543.cjs +1 -1
- package/dist/kongponents543.es.js +17 -4
- package/dist/kongponents544.cjs +1 -1
- package/dist/kongponents544.es.js +23 -4
- package/dist/kongponents545.cjs +1 -1
- package/dist/kongponents545.es.js +16 -10
- package/dist/kongponents546.cjs +1 -1
- package/dist/kongponents546.es.js +96 -6
- package/dist/kongponents547.cjs +1 -1
- package/dist/kongponents547.es.js +44 -6
- package/dist/kongponents548.cjs +1 -1
- package/dist/kongponents548.es.js +28 -4
- package/dist/kongponents549.cjs +1 -1
- package/dist/kongponents549.es.js +71 -6
- package/dist/kongponents550.cjs +1 -1
- package/dist/kongponents550.es.js +50 -13
- package/dist/kongponents551.cjs +1 -1
- package/dist/kongponents551.es.js +33 -27
- package/dist/kongponents552.cjs +1 -1
- package/dist/kongponents552.es.js +40 -14
- package/dist/kongponents558.cjs +1 -1
- package/dist/kongponents558.es.js +3 -3
- package/dist/kongponents559.cjs +1 -1
- package/dist/kongponents559.es.js +2 -2
- package/dist/kongponents562.cjs +1 -1
- package/dist/kongponents562.es.js +5 -5
- package/dist/kongponents563.cjs +1 -1
- package/dist/kongponents563.es.js +4 -4
- package/dist/kongponents569.cjs +1 -1
- package/dist/kongponents569.es.js +1 -1
- package/dist/kongponents571.cjs +1 -1
- package/dist/kongponents571.es.js +1 -1
- package/dist/kongponents572.cjs +1 -1
- package/dist/kongponents572.es.js +1 -1
- package/dist/kongponents573.cjs +1 -1
- package/dist/kongponents573.es.js +6 -2
- package/dist/kongponents574.cjs +1 -1
- package/dist/kongponents574.es.js +3 -4
- package/dist/kongponents575.cjs +1 -1
- package/dist/kongponents575.es.js +3 -15
- package/dist/kongponents576.cjs +1 -1
- package/dist/kongponents576.es.js +3 -3
- package/dist/kongponents577.cjs +1 -1
- package/dist/kongponents577.es.js +15 -9
- package/dist/kongponents578.cjs +1 -1
- package/dist/kongponents578.es.js +3 -4
- package/dist/kongponents579.cjs +1 -1
- package/dist/kongponents579.es.js +9 -5
- package/dist/kongponents580.cjs +1 -1
- package/dist/kongponents580.es.js +4 -9
- package/dist/kongponents581.cjs +1 -1
- package/dist/kongponents581.es.js +5 -7
- package/dist/kongponents582.cjs +1 -1
- package/dist/kongponents582.es.js +9 -4
- package/dist/kongponents583.cjs +1 -1
- package/dist/kongponents583.es.js +7 -3
- package/dist/kongponents584.cjs +1 -1
- package/dist/kongponents584.es.js +5 -4
- package/dist/kongponents585.cjs +1 -1
- package/dist/kongponents585.es.js +3 -11
- package/dist/kongponents586.cjs +1 -1
- package/dist/kongponents586.es.js +4 -10
- package/dist/kongponents587.cjs +1 -1
- package/dist/kongponents587.es.js +11 -30
- package/dist/kongponents588.cjs +1 -1
- package/dist/kongponents588.es.js +8 -23
- package/dist/kongponents589.cjs +1 -1
- package/dist/kongponents589.es.js +29 -50
- package/dist/kongponents590.cjs +1 -1
- package/dist/kongponents590.es.js +24 -3
- package/dist/kongponents591.cjs +1 -1
- package/dist/kongponents591.es.js +51 -8
- package/dist/kongponents592.cjs +1 -1
- package/dist/kongponents592.es.js +3 -20
- package/dist/kongponents593.cjs +1 -1
- package/dist/kongponents593.es.js +8 -7
- package/dist/kongponents594.cjs +1 -1
- package/dist/kongponents594.es.js +20 -6
- package/dist/kongponents595.cjs +1 -1
- package/dist/kongponents595.es.js +7 -5
- package/dist/kongponents596.cjs +1 -1
- package/dist/kongponents596.es.js +6 -7
- package/dist/kongponents597.cjs +1 -1
- package/dist/kongponents597.es.js +5 -15
- package/dist/kongponents598.cjs +1 -1
- package/dist/kongponents598.es.js +7 -4
- package/dist/kongponents599.cjs +1 -1
- package/dist/kongponents599.es.js +15 -6
- package/dist/kongponents600.cjs +1 -1
- package/dist/kongponents600.es.js +4 -34
- package/dist/kongponents601.cjs +1 -1
- package/dist/kongponents601.es.js +6 -8
- package/dist/kongponents602.cjs +1 -1
- package/dist/kongponents602.es.js +34 -7
- package/dist/kongponents603.cjs +1 -1
- package/dist/kongponents603.es.js +9 -3
- package/dist/kongponents610.cjs +1 -1
- package/dist/kongponents610.es.js +1 -1
- package/dist/kongponents615.cjs +1 -1
- package/dist/kongponents615.es.js +1 -1
- package/dist/kongponents616.cjs +1 -1
- package/dist/kongponents616.es.js +1 -1
- package/dist/kongponents617.cjs +1 -1
- package/dist/kongponents617.es.js +1 -1
- package/dist/kongponents618.cjs +1 -1
- package/dist/kongponents618.es.js +1 -1
- package/dist/kongponents620.cjs +1 -1
- package/dist/kongponents620.es.js +3 -3
- package/dist/kongponents621.cjs +1 -1
- package/dist/kongponents621.es.js +4 -4
- package/dist/kongponents623.es.js +2 -2
- package/dist/kongponents624.es.js +2 -2
- package/dist/kongponents625.es.js +2 -2
- package/dist/kongponents73.cjs +1 -1
- package/dist/kongponents73.es.js +7 -7
- package/dist/kongponents76.cjs +1 -1
- package/dist/kongponents76.es.js +1 -1
- package/dist/kongponents78.cjs +1 -1
- package/dist/kongponents78.es.js +1 -1
- package/dist/kongponents84.cjs +1 -1
- package/dist/kongponents84.es.js +1 -1
- package/dist/kongponents88.cjs +1 -1
- package/dist/kongponents88.es.js +3 -3
- package/dist/kongponents90.cjs +1 -1
- package/dist/kongponents90.es.js +15 -15
- package/dist/kongponents95.cjs +1 -1
- package/dist/kongponents95.es.js +2 -2
- package/dist/kongponents97.cjs +1 -1
- package/dist/kongponents97.es.js +6 -6
- package/package.json +32 -31
- package/dist/kongponents195.cjs +0 -1
- package/dist/kongponents195.es.js +0 -399
- package/dist/kongponents265.cjs +0 -1
- package/dist/kongponents265.es.js +0 -58
- package/dist/kongponents269.cjs +0 -1
- package/dist/kongponents269.es.js +0 -4
- package/dist/kongponents325.cjs +0 -1
- package/dist/kongponents325.es.js +0 -20
- package/dist/kongponents327.cjs +0 -1
- package/dist/kongponents327.es.js +0 -9
- package/dist/kongponents328.cjs +0 -1
- package/dist/kongponents328.es.js +0 -15
- package/dist/kongponents330.cjs +0 -1
- package/dist/kongponents330.es.js +0 -8
- package/dist/kongponents332.cjs +0 -1
- package/dist/kongponents332.es.js +0 -18
- package/dist/kongponents362.cjs +0 -1
- package/dist/kongponents362.es.js +0 -7
- package/dist/kongponents366.cjs +0 -1
- package/dist/kongponents366.es.js +0 -174
- package/dist/kongponents419.cjs +0 -1
- package/dist/kongponents419.es.js +0 -7
- package/dist/kongponents421.cjs +0 -1
- package/dist/kongponents421.es.js +0 -8
- package/dist/kongponents436.cjs +0 -1
- package/dist/kongponents436.es.js +0 -8
- package/dist/kongponents438.cjs +0 -1
- package/dist/kongponents438.es.js +0 -4
package/dist/kongponents129.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("./kongponents51.cjs"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("./kongponents51.cjs"),C=require("./kongponents178.cjs"),B=require("./kongponents181.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 c=h,l=e.useSlots(),o=e.useAttrs(),b=e.useId(),r=e.computed(()=>o.id?String(o.id):b),d=e.computed(()=>o?.disabled!==void 0&&String(o?.disabled)!=="false"),k=e.computed(()=>!!(t.label||l.default)),n=e.computed(()=>k.value&&(!!t.description||!!l.description)),s=e.computed(()=>!!t.label&&(!!t.description||!!l.description)),p=e.computed(()=>!!l.tooltip),i=e.computed(()=>t.selectedValue===t.modelValue),u=()=>{c("change",t.selectedValue),c("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":s.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||s.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),s.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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as z, watch as V, useSlots as D, useAttrs as E, useId as P, computed as a, resolveComponent as q, openBlock as l, createElementBlock as i, normalizeClass as v, createElementVNode as w, mergeProps as $, createVNode as C, createSlots as M, withCtx as u, renderSlot as s, createTextVNode as k, toDisplayString as b, createCommentVNode as d, withKeys as K, withModifiers as U, createBlock as X, unref as R } from "vue";
|
|
2
2
|
import j from "./kongponents51.es.js";
|
|
3
|
-
import F from "./
|
|
4
|
-
import { KUI_COLOR_TEXT_NEUTRAL as G } from "./
|
|
3
|
+
import F from "./kongponents178.es.js";
|
|
4
|
+
import { KUI_COLOR_TEXT_NEUTRAL as G } from "./kongponents181.es.js";
|
|
5
5
|
const H = ["id", "aria-checked", "checked", "disabled", "tabindex"], J = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "radio-description"
|
package/dist/kongponents131.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("./kongponents228.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, watch as y, computed as h, openBlock as n, createElementBlock as o, Fragment as k, renderList as V, normalizeClass as C, renderSlot as z, createTextVNode as q, toDisplayString as w } from "vue";
|
|
2
|
-
import { warnInvalidProp as S } from "./
|
|
2
|
+
import { warnInvalidProp as S } from "./kongponents228.es.js";
|
|
3
3
|
const I = { class: "k-segmented-control" }, $ = ["data-testid", "disabled", "onClick"], x = /* @__PURE__ */ g({
|
|
4
4
|
__name: "KSegmentedControl",
|
|
5
5
|
props: {
|
package/dist/kongponents133.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),be=require("./kongponents189.cjs"),he=require("./kongponents51.cjs"),ke=require("./kongponents49.cjs"),ye=require("./kongponents56.cjs"),ge=require("./kongponents23.cjs"),Ce=require("./kongponents230.cjs"),we=require("./kongponents231.cjs"),Se=require("./kongponents214.cjs"),Ie=require("./kongponents185.cjs"),Be=require("./kongponents202.cjs"),Fe=require("./kongponents216.cjs"),L=require("./kongponents172.cjs"),$e=require("./kongponents184.cjs"),qe=require("./kongponents153.cjs"),M=require("./kongponents180.cjs"),Ne=require("./kongponents179.cjs"),xe=["id"],Ee=["aria-live"],Ae={key:0,class:"select-loading","data-propagate-clicks":"false","data-testid":"select-loading"},Ve={key:1,class:"select-items-container","data-propagate-clicks":"false"},Te={key:1,class:"dropdown-footer dropdown-footer-static"},Ke={key:2,class:"select-empty","data-propagate-clicks":"false"},Pe={key:0,class:"dropdown-footer dropdown-footer-sticky"},ze=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=>l.items?.filter(q=>q.label?.toLowerCase().includes(l.query?.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:q}){e.useCssVars(t=>({v354bd763:X.value,ffec3d5e:F.value,adbf49c4:ee.value}));const{stripRequiredLabel:W}=be.default(),f=q,p=e.useAttrs(),k=e.useSlots(),U=e.useId(),T=e.computed(()=>p.id?String(p.id):U),N=e.ref(!1),x=e.ref(),H=e.computed(()=>!!(l.labelAttributes?.info||k["label-tooltip"])),K=e.computed(()=>p.required!==void 0&&String(p.required)!=="false"),y=e.computed(()=>p.disabled!==void 0&&String(p.disabled)!=="false"),I=e.computed(()=>p.readonly!==void 0&&String(p.readonly)!=="false"),P={popoverClasses:`k-select-popover select-popover ${l.dropdownFooterText||k["dropdown-footer-text"]?`has-${l.dropdownFooterTextPosition}-dropdown-footer`:""}`,popoverTimeout:0,placement:"bottom-start",hideCaret:!0},G=e.ref(0),J=e.useTemplateRef("inputElement"),Q=e.computed(()=>W(l.label,K.value)),g=e.ref(!1),s=e.ref(""),z=e.computed(()=>!(!s.value||r.value?.filter(t=>t.label===s.value)?.length)),j=e.useId(),d=e.ref(null),r=e.ref([]),B=e.ref([]),C=e.ref(!1),E=e.useTemplateRef("popperElement"),h=e.useTemplateRef("selectWrapperElement"),Y=e.computed({get(){return l.modelValue},set(t){const n=r.value?.filter(a=>a.value===t);n?.length?$(n[0]):t||V()}}),X=e.computed(()=>M.normalizeSize(l.width||"100%")),F=e.ref(""),Z=e.computed(()=>{const t={...p};return delete t.class,t}),_=e.computed(()=>({...P,...l.kpopAttributes,popoverClasses:`${P.popoverClasses} ${l.kpopAttributes?.popoverClasses??""}`,width:String(F.value),maxWidth:String(F.value),disabled:y.value||I.value})),ee=e.computed(()=>M.normalizeSize(l.dropdownMaxHeight)),te=e.computed(()=>({..._.value})),le=e.computed(()=>l.placeholder||p.placeholder||"Select..."),oe=e.computed(()=>!y.value&&l.clearable&&!!d.value),D=e.computed(()=>!!(d.value&&(k["selected-item-template"]||l.reuseItemTemplate&&k["item-template"]))),w=t=>"items"in t&&Array.isArray(t.items),A=e.computed(()=>{if(!l.enableFiltering||!s.value)return B.value;const t=l.filterFunction({query:s.value,items:r.value}),n=t===!0?r.value:t,a=new Set(n.map(i=>i.value)),c=[];for(const i of B.value)if(w(i)){const m=i.items.filter(o=>a.has(o.value));m.length>0&&c.push({label:i.label,key:i.key,items:m})}else a.has(i.value)&&c.push(i);return c}),ae=t=>{if(!l.enableFiltering)return t.preventDefault(),!1},re=t=>{l.enableItemCreation&&O(),t.preventDefault()},O=()=>{if(!l.enableItemCreation||!s.value||!z.value||!l.itemCreationValidator(s.value))return;const t=(r.value?.length||0)+1,n={label:L.sanitizeInput(s.value),value:qe.getUniqueStringId(),key:`${L.sanitizeInput(s.value).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`,custom:!0};f("item-added",n),$(n,!0),s.value=""},$=(t,n)=>{n&&(r.value?.push(t),B.value.unshift(t)),r.value?.forEach((a,c)=>{a.key===t.key?(a.selected=!0,d.value=a):a.selected?(a.selected=!1,a.custom&&(r.value?.splice(c,1),f("item-removed",a))):a.selected=!1}),g.value=!0,s.value=t.label},V=()=>{r.value?.forEach((t,n)=>{t.selected=!1,t.custom&&(r.value?.splice(n,1),f("item-removed",t))}),d.value=null,s.value="",f("input",null),f("change",null),f("update:modelValue",null)},R=e.useTemplateRef("kSelectItems"),ne=(t,n)=>{if(t.keyCode===27){n.value=!1;return}const a=h.value?.children[0];!n.value&&a&&a.click(),(t.key==="ArrowDown"||t.key==="ArrowUp")&&n.value&&R.value?.setFocus(t.key==="ArrowDown"?"down":"up")},se=t=>{s.value!==t&&(s.value=t)},ue=()=>{C.value=!0},ie=()=>{C.value=!1},ce=()=>{l.enableFiltering||J.value?.$el?.querySelector("input")?.blur()},de=t=>{(y.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},fe=t=>{t()},ve=(t,n)=>{N.value=!1,d.value?(g.value=!0,s.value=d.value.label):s.value="",n&&t()},pe=t=>{N.value=!0,l.enableFiltering&&(s.value=""),t()};return e.watch(Y,(t,n)=>{if(t!==n){const a=r.value?.filter(c=>c.value===t);a?.length?$(a[0]):t||V()}}),e.watch(()=>l.items,(t,n)=>{if(JSON.stringify(t)===JSON.stringify(n))return;const a=JSON.parse(JSON.stringify(l.items)),c=a.some(o=>w(o)),i=[],m=[];if(c)for(const o of a)w(o)?i.push(...o.items):i.push(o);else{const o=new Map;for(const u of a)w(u)||(u.group&&(o.has(u.group)||o.set(u.group,[]),o.get(u.group).push(u)),i.push(u));const S=Array.from(o.keys()).sort((u,b)=>u.toLowerCase().localeCompare(b.toLowerCase())),v=i.filter(u=>!u.group);m.push(...v);for(const u of S)m.push({label:u,items:o.get(u)})}r.value=i,r.value?.length&&(d.value=null);for(let o=0;o<r.value?.length;o++){r.value[o].selected===void 0&&(r.value[o].selected=!1);let v=`${(r.value[o].label!=null?String(r.value[o].label):"").replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${o}`;v.includes("undefined")&&(v=`select-item-label-${o}`),r.value[o].key=v,(r.value[o].value===l.modelValue||r.value[o].selected)&&(r.value[o].selected=!0,d.value=r.value[o],C.value||(g.value=!0,s.value=d.value.label)),d.value?.value===r.value[o].value&&(r.value[o].selected=!0)}if(c){const o=[],S=[];for(const v of a)if(w(v)){const u=v.items.map(b=>r.value.find(me=>me.value===b.value)).filter(b=>b!==void 0);S.push({label:v.label,key:v.key,items:u})}else{const u=r.value.find(b=>b.value===v.value);u&&o.push(u)}m.push(...o,...S)}B.value=m,E.value&&typeof E.value.updatePopper=="function"&&e.nextTick(()=>{E.value.updatePopper()})},{deep:!0,immediate:!0}),e.watch(s,t=>{g.value&&t||(f("query-change",t),g.value=!1)}),e.watch(d,(t,n)=>{t&&t!==n&&(f("selected",t),f("input",t.value),f("change",t),f("update:modelValue",t.value))},{deep:!0}),e.onMounted(()=>{h.value&&(x.value=Fe.ResizeObserverHelper.create(()=>{F.value=`${h.value?.offsetWidth}px`}),x.value.observe(h.value)),$e.useEventListener(document,"keydown",t=>{!l.enableFiltering&&document.activeElement?.tagName==="BODY"&&!C.value&&N.value&&(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),R.value?.setFocus(t.key==="ArrowDown"?"down":"up"))})}),e.onBeforeUnmount(()=>{h.value&&x.value?.unobserve(h.value)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-select",[t.$attrs.class]])},[l.label?(e.openBlock(),e.createBlock(he.default,e.mergeProps({key:0,"data-testid":"select-label"},l.labelAttributes,{for:T.value,required:K.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Q.value)+" ",1)]),_:2},[H.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(ge.default,null,{default:e.withCtx(({toggle:a,isToggled:c})=>[e.createVNode(ye.default,e.mergeProps({ref:"popperElement"},te.value,{"close-on-popover-click":"","hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(Ne.KUI_SPACE_40)})`,onClose:()=>ve(a,c.value),onOpen:()=>pe(a),onPopoverClick:()=>fe(a)}),{content:e.withCtx(()=>[e.createElementVNode("div",{"aria-live":l.enableFiltering?"polite":"off"},[l.enableFiltering&&l.loading?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(Be.default),{class:"loading-icon",title:"Loading"})],!0)])):(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(Ce.default,{ref:"kSelectItems","filter-string":s.value,"item-creation-enabled":l.enableItemCreation&&z.value,"item-creation-valid":l.itemCreationValidator(s.value),items:A.value,onAddItem:O,onSelected:$},{content:e.withCtx(({item:i})=>[e.renderSlot(t.$slots,"item-template",{item:i},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!A.value.length&&!t.$slots.empty&&!l.enableItemCreation?(e.openBlock(),e.createBlock(we.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",Te,[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0)])):e.createCommentVNode("",!0)])),!l.loading&&!A.value.length&&t.$slots.empty?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],8,Ee),(l.dropdownFooterText||t.$slots["dropdown-footer-text"])&&l.dropdownFooterTextPosition==="sticky"?(e.openBlock(),e.createElementBlock("div",Pe,[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(j),ref:"selectWrapperElement",class:"select-wrapper","data-testid":"select-wrapper",role:"listbox",onClick:de},[(e.openBlock(),e.createBlock(ke.default,e.mergeProps({id:T.value,key:G.value,ref:"inputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:["select-input",{"filtering-disabled":!l.enableFiltering,"hide-model-value":D.value&&(!l.enableFiltering||!c.value),"input-has-focus":C.value||c.value}],"data-testid":"select-input",disabled:y.value,error:l.error,"model-value":s.value,name:"select-options-search",placeholder:d.value&&!l.enableFiltering?d.value.label:le.value,readonly:I.value,spellcheck:"false"},Z.value,{onBlur:ie,onClick:ce,onFocus:ue,onKeydown:e.withKeys(re,["enter"]),onKeypress:ae,onKeyup:[i=>ne(i,c),n[0]||(n[0]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":se}),e.createSlots({after:e.withCtx(()=>[oe.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(V,["stop"])},[e.createVNode(e.unref(Ie.default),{decorative:""})])):e.createCommentVNode("",!0),I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Se.default),{key:1,class:e.normalizeClass(["chevron-down-icon",{disabled:y.value}]),decorative:""},null,8,["class"]))]),_:2},[k.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(()=>[D.value&&(!l.enableFiltering||!c.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["custom-selected-item-wrapper",{clearable:l.clearable,readonly:I.value}])},[e.renderSlot(t.$slots,"selected-item-template",{item:d.value},()=>[e.renderSlot(t.$slots,"item-template",{item:d.value},void 0,!0)],!0)],2)):e.createCommentVNode("",!0)]),_:2},1024)],8,xe)]),_: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=ze;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),be=require("./kongponents205.cjs"),he=require("./kongponents51.cjs"),ke=require("./kongponents49.cjs"),ye=require("./kongponents56.cjs"),ge=require("./kongponents23.cjs"),Ce=require("./kongponents224.cjs"),we=require("./kongponents225.cjs"),Se=require("./kongponents208.cjs"),Ie=require("./kongponents176.cjs"),Be=require("./kongponents189.cjs"),Fe=require("./kongponents226.cjs"),L=require("./kongponents172.cjs"),$e=require("./kongponents203.cjs"),qe=require("./kongponents153.cjs"),M=require("./kongponents193.cjs"),Ne=require("./kongponents181.cjs"),xe=["id"],Ee=["aria-live"],Ae={key:0,class:"select-loading","data-propagate-clicks":"false","data-testid":"select-loading"},Ve={key:1,class:"select-items-container","data-propagate-clicks":"false"},Te={key:1,class:"dropdown-footer dropdown-footer-static"},Ke={key:2,class:"select-empty","data-propagate-clicks":"false"},Pe={key:0,class:"dropdown-footer dropdown-footer-sticky"},ze=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=>l.items?.filter(q=>q.label?.toLowerCase().includes(l.query?.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:q}){e.useCssVars(t=>({v354bd763:X.value,ffec3d5e:F.value,adbf49c4:ee.value}));const{stripRequiredLabel:W}=be.default(),f=q,p=e.useAttrs(),k=e.useSlots(),U=e.useId(),T=e.computed(()=>p.id?String(p.id):U),N=e.ref(!1),x=e.ref(),H=e.computed(()=>!!(l.labelAttributes?.info||k["label-tooltip"])),K=e.computed(()=>p.required!==void 0&&String(p.required)!=="false"),y=e.computed(()=>p.disabled!==void 0&&String(p.disabled)!=="false"),I=e.computed(()=>p.readonly!==void 0&&String(p.readonly)!=="false"),P={popoverClasses:`k-select-popover select-popover ${l.dropdownFooterText||k["dropdown-footer-text"]?`has-${l.dropdownFooterTextPosition}-dropdown-footer`:""}`,popoverTimeout:0,placement:"bottom-start",hideCaret:!0},G=e.ref(0),J=e.useTemplateRef("inputElement"),Q=e.computed(()=>W(l.label,K.value)),g=e.ref(!1),s=e.ref(""),z=e.computed(()=>!(!s.value||r.value?.filter(t=>t.label===s.value)?.length)),j=e.useId(),d=e.ref(null),r=e.ref([]),B=e.ref([]),C=e.ref(!1),E=e.useTemplateRef("popperElement"),h=e.useTemplateRef("selectWrapperElement"),Y=e.computed({get(){return l.modelValue},set(t){const n=r.value?.filter(a=>a.value===t);n?.length?$(n[0]):t||V()}}),X=e.computed(()=>M.normalizeSize(l.width||"100%")),F=e.ref(""),Z=e.computed(()=>{const t={...p};return delete t.class,t}),_=e.computed(()=>({...P,...l.kpopAttributes,popoverClasses:`${P.popoverClasses} ${l.kpopAttributes?.popoverClasses??""}`,width:String(F.value),maxWidth:String(F.value),disabled:y.value||I.value})),ee=e.computed(()=>M.normalizeSize(l.dropdownMaxHeight)),te=e.computed(()=>({..._.value})),le=e.computed(()=>l.placeholder||p.placeholder||"Select..."),oe=e.computed(()=>!y.value&&l.clearable&&!!d.value),D=e.computed(()=>!!(d.value&&(k["selected-item-template"]||l.reuseItemTemplate&&k["item-template"]))),w=t=>"items"in t&&Array.isArray(t.items),A=e.computed(()=>{if(!l.enableFiltering||!s.value)return B.value;const t=l.filterFunction({query:s.value,items:r.value}),n=t===!0?r.value:t,a=new Set(n.map(i=>i.value)),c=[];for(const i of B.value)if(w(i)){const m=i.items.filter(o=>a.has(o.value));m.length>0&&c.push({label:i.label,key:i.key,items:m})}else a.has(i.value)&&c.push(i);return c}),ae=t=>{if(!l.enableFiltering)return t.preventDefault(),!1},re=t=>{l.enableItemCreation&&O(),t.preventDefault()},O=()=>{if(!l.enableItemCreation||!s.value||!z.value||!l.itemCreationValidator(s.value))return;const t=(r.value?.length||0)+1,n={label:L.sanitizeInput(s.value),value:qe.getUniqueStringId(),key:`${L.sanitizeInput(s.value).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`,custom:!0};f("item-added",n),$(n,!0),s.value=""},$=(t,n)=>{n&&(r.value?.push(t),B.value.unshift(t)),r.value?.forEach((a,c)=>{a.key===t.key?(a.selected=!0,d.value=a):a.selected?(a.selected=!1,a.custom&&(r.value?.splice(c,1),f("item-removed",a))):a.selected=!1}),g.value=!0,s.value=t.label},V=()=>{r.value?.forEach((t,n)=>{t.selected=!1,t.custom&&(r.value?.splice(n,1),f("item-removed",t))}),d.value=null,s.value="",f("input",null),f("change",null),f("update:modelValue",null)},R=e.useTemplateRef("kSelectItems"),ne=(t,n)=>{if(t.keyCode===27){n.value=!1;return}const a=h.value?.children[0];!n.value&&a&&a.click(),(t.key==="ArrowDown"||t.key==="ArrowUp")&&n.value&&R.value?.setFocus(t.key==="ArrowDown"?"down":"up")},se=t=>{s.value!==t&&(s.value=t)},ue=()=>{C.value=!0},ie=()=>{C.value=!1},ce=()=>{l.enableFiltering||J.value?.$el?.querySelector("input")?.blur()},de=t=>{(y.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},fe=t=>{t()},ve=(t,n)=>{N.value=!1,d.value?(g.value=!0,s.value=d.value.label):s.value="",n&&t()},pe=t=>{N.value=!0,l.enableFiltering&&(s.value=""),t()};return e.watch(Y,(t,n)=>{if(t!==n){const a=r.value?.filter(c=>c.value===t);a?.length?$(a[0]):t||V()}}),e.watch(()=>l.items,(t,n)=>{if(JSON.stringify(t)===JSON.stringify(n))return;const a=JSON.parse(JSON.stringify(l.items)),c=a.some(o=>w(o)),i=[],m=[];if(c)for(const o of a)w(o)?i.push(...o.items):i.push(o);else{const o=new Map;for(const u of a)w(u)||(u.group&&(o.has(u.group)||o.set(u.group,[]),o.get(u.group).push(u)),i.push(u));const S=Array.from(o.keys()).sort((u,b)=>u.toLowerCase().localeCompare(b.toLowerCase())),v=i.filter(u=>!u.group);m.push(...v);for(const u of S)m.push({label:u,items:o.get(u)})}r.value=i,r.value?.length&&(d.value=null);for(let o=0;o<r.value?.length;o++){r.value[o].selected===void 0&&(r.value[o].selected=!1);let v=`${(r.value[o].label!=null?String(r.value[o].label):"").replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${o}`;v.includes("undefined")&&(v=`select-item-label-${o}`),r.value[o].key=v,(r.value[o].value===l.modelValue||r.value[o].selected)&&(r.value[o].selected=!0,d.value=r.value[o],C.value||(g.value=!0,s.value=d.value.label)),d.value?.value===r.value[o].value&&(r.value[o].selected=!0)}if(c){const o=[],S=[];for(const v of a)if(w(v)){const u=v.items.map(b=>r.value.find(me=>me.value===b.value)).filter(b=>b!==void 0);S.push({label:v.label,key:v.key,items:u})}else{const u=r.value.find(b=>b.value===v.value);u&&o.push(u)}m.push(...o,...S)}B.value=m,E.value&&typeof E.value.updatePopper=="function"&&e.nextTick(()=>{E.value.updatePopper()})},{deep:!0,immediate:!0}),e.watch(s,t=>{g.value&&t||(f("query-change",t),g.value=!1)}),e.watch(d,(t,n)=>{t&&t!==n&&(f("selected",t),f("input",t.value),f("change",t),f("update:modelValue",t.value))},{deep:!0}),e.onMounted(()=>{h.value&&(x.value=Fe.ResizeObserverHelper.create(()=>{F.value=`${h.value?.offsetWidth}px`}),x.value.observe(h.value)),$e.useEventListener(document,"keydown",t=>{!l.enableFiltering&&document.activeElement?.tagName==="BODY"&&!C.value&&N.value&&(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),R.value?.setFocus(t.key==="ArrowDown"?"down":"up"))})}),e.onBeforeUnmount(()=>{h.value&&x.value?.unobserve(h.value)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-select",[t.$attrs.class]])},[l.label?(e.openBlock(),e.createBlock(he.default,e.mergeProps({key:0,"data-testid":"select-label"},l.labelAttributes,{for:T.value,required:K.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Q.value)+" ",1)]),_:2},[H.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(ge.default,null,{default:e.withCtx(({toggle:a,isToggled:c})=>[e.createVNode(ye.default,e.mergeProps({ref:"popperElement"},te.value,{"close-on-popover-click":"","hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(Ne.KUI_SPACE_40)})`,onClose:()=>ve(a,c.value),onOpen:()=>pe(a),onPopoverClick:()=>fe(a)}),{content:e.withCtx(()=>[e.createElementVNode("div",{"aria-live":l.enableFiltering?"polite":"off"},[l.enableFiltering&&l.loading?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(Be.default),{class:"loading-icon",title:"Loading"})],!0)])):(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(Ce.default,{ref:"kSelectItems","filter-string":s.value,"item-creation-enabled":l.enableItemCreation&&z.value,"item-creation-valid":l.itemCreationValidator(s.value),items:A.value,onAddItem:O,onSelected:$},{content:e.withCtx(({item:i})=>[e.renderSlot(t.$slots,"item-template",{item:i},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!A.value.length&&!t.$slots.empty&&!l.enableItemCreation?(e.openBlock(),e.createBlock(we.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",Te,[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0)])):e.createCommentVNode("",!0)])),!l.loading&&!A.value.length&&t.$slots.empty?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],8,Ee),(l.dropdownFooterText||t.$slots["dropdown-footer-text"])&&l.dropdownFooterTextPosition==="sticky"?(e.openBlock(),e.createElementBlock("div",Pe,[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(j),ref:"selectWrapperElement",class:"select-wrapper","data-testid":"select-wrapper",role:"listbox",onClick:de},[(e.openBlock(),e.createBlock(ke.default,e.mergeProps({id:T.value,key:G.value,ref:"inputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:["select-input",{"filtering-disabled":!l.enableFiltering,"hide-model-value":D.value&&(!l.enableFiltering||!c.value),"input-has-focus":C.value||c.value}],"data-testid":"select-input",disabled:y.value,error:l.error,"model-value":s.value,name:"select-options-search",placeholder:d.value&&!l.enableFiltering?d.value.label:le.value,readonly:I.value,spellcheck:"false"},Z.value,{onBlur:ie,onClick:ce,onFocus:ue,onKeydown:e.withKeys(re,["enter"]),onKeypress:ae,onKeyup:[i=>ne(i,c),n[0]||(n[0]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":se}),e.createSlots({after:e.withCtx(()=>[oe.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(V,["stop"])},[e.createVNode(e.unref(Ie.default),{decorative:""})])):e.createCommentVNode("",!0),I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Se.default),{key:1,class:e.normalizeClass(["chevron-down-icon",{disabled:y.value}]),decorative:""},null,8,["class"]))]),_:2},[k.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(()=>[D.value&&(!l.enableFiltering||!c.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["custom-selected-item-wrapper",{clearable:l.clearable,readonly:I.value}])},[e.renderSlot(t.$slots,"selected-item-template",{item:d.value},()=>[e.renderSlot(t.$slots,"item-template",{item:d.value},void 0,!0)],!0)],2)):e.createCommentVNode("",!0)]),_:2},1024)],8,xe)]),_: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=ze;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as ze, useCssVars as De, useAttrs as Oe, useSlots as Le, useId as le, computed as u, ref as b, useTemplateRef as z, watch as D, nextTick as Re, onMounted as Ve, onBeforeUnmount as We, openBlock as f, createElementBlock as g, normalizeClass as O, createBlock as L, mergeProps as J, createSlots as oe, withCtx as y, createTextVNode as Q, toDisplayString as R, renderSlot as h, createCommentVNode as k, createVNode as S, unref as B, createElementVNode as ae, withKeys as re, withModifiers as ie, Transition as Me } from "vue";
|
|
2
|
-
import Ue from "./
|
|
2
|
+
import Ue from "./kongponents205.es.js";
|
|
3
3
|
import Ge from "./kongponents51.es.js";
|
|
4
4
|
import He from "./kongponents49.es.js";
|
|
5
5
|
import Je from "./kongponents56.es.js";
|
|
6
6
|
import Qe from "./kongponents23.es.js";
|
|
7
|
-
import Ye from "./
|
|
8
|
-
import je from "./
|
|
9
|
-
import Xe from "./
|
|
10
|
-
import Ze from "./
|
|
11
|
-
import _e from "./
|
|
12
|
-
import { ResizeObserverHelper as et } from "./
|
|
7
|
+
import Ye from "./kongponents224.es.js";
|
|
8
|
+
import je from "./kongponents225.es.js";
|
|
9
|
+
import Xe from "./kongponents208.es.js";
|
|
10
|
+
import Ze from "./kongponents176.es.js";
|
|
11
|
+
import _e from "./kongponents189.es.js";
|
|
12
|
+
import { ResizeObserverHelper as et } from "./kongponents226.es.js";
|
|
13
13
|
import { sanitizeInput as se } from "./kongponents172.es.js";
|
|
14
|
-
import { useEventListener as tt } from "./
|
|
14
|
+
import { useEventListener as tt } from "./kongponents203.es.js";
|
|
15
15
|
import { getUniqueStringId as lt } from "./kongponents153.es.js";
|
|
16
|
-
import { normalizeSize as ne } from "./
|
|
17
|
-
import { KUI_SPACE_40 as ot } from "./
|
|
16
|
+
import { normalizeSize as ne } from "./kongponents193.es.js";
|
|
17
|
+
import { KUI_SPACE_40 as ot } from "./kongponents181.es.js";
|
|
18
18
|
const at = ["id"], rt = ["aria-live"], it = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "select-loading",
|
package/dist/kongponents140.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("./kongponents203.cjs"),u=require("./kongponents176.cjs"),f=require("./kongponents181.cjs"),m=require("./kongponents193.cjs"),v=require("./kongponents204.cjs"),k={class:"k-slideout"},E={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"},h={class:"slideout-content"},B=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=>({v7f467956:c.value,v02f30e89:t.maxWidth,v09731c02:t.zIndex}));const s=a;e.provide(v.POPOVER_PARENT_ZINDEX_KEY,e.computed(()=>o.zIndex));const 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?.addEventListener("keydown",i):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",k,[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",E,[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(N=>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",h,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],512)):e.createCommentVNode("",!0)]),_:3})]))}});exports.default=B;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, useCssVars as h, provide as O, computed as c, useTemplateRef as T, watch as b, onUnmounted as B, openBlock as i, createElementBlock as l, createVNode as n, Transition as f, withCtx as m, normalizeClass as N, createCommentVNode as a, createElementVNode as d, renderSlot as v, createTextVNode as V, toDisplayString as x, withModifiers as z, unref as k } from "vue";
|
|
2
|
-
import { onClickOutside as R } from "./
|
|
3
|
-
import $ from "./
|
|
4
|
-
import { KUI_COLOR_TEXT_NEUTRAL as g } from "./
|
|
5
|
-
import { normalizeSize as w } from "./
|
|
6
|
-
import { POPOVER_PARENT_ZINDEX_KEY as I } from "./
|
|
2
|
+
import { onClickOutside as R } from "./kongponents203.es.js";
|
|
3
|
+
import $ from "./kongponents176.es.js";
|
|
4
|
+
import { KUI_COLOR_TEXT_NEUTRAL as g } from "./kongponents181.es.js";
|
|
5
|
+
import { normalizeSize as w } from "./kongponents193.es.js";
|
|
6
|
+
import { POPOVER_PARENT_ZINDEX_KEY as I } from "./kongponents204.es.js";
|
|
7
7
|
const L = { class: "k-slideout" }, S = {
|
|
8
8
|
key: 0,
|
|
9
9
|
ref: "slideoutContainerElement",
|
package/dist/kongponents142.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("./kongponents238.cjs"),r={key:0,class:"k-stepper"},s=e.defineComponent({__name:"KStepper",props:{steps:{},maxLabelWidth:{default:"170px"},hideStepNumbers:{type:Boolean,default:!1}},setup(t){return(u,o)=>t.steps&&t.steps.length?(e.openBlock(),e.createElementBlock("ol",r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.steps,(l,a)=>(e.openBlock(),e.createBlock(n.default,{key:`step-${l.label.replace(/ /gi,"-")}`,label:l.label,"max-label-width":t.maxLabelWidth,state:l.state,"step-number":t.hideStepNumbers?void 0:a+1},null,8,["label","max-label-width","state","step-number"]))),128))])):e.createCommentVNode("",!0)}});exports.default=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as l, createElementBlock as a, Fragment as n, renderList as m, createBlock as o, createCommentVNode as p } from "vue";
|
|
2
|
-
import u from "./
|
|
2
|
+
import u from "./kongponents238.es.js";
|
|
3
3
|
const c = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "k-stepper"
|
package/dist/kongponents144.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("./kongponents32.cjs"),fe=require("./kongponents45.cjs"),We=require("./kongponents20.cjs");;/* empty css */const Ge=require("./kongponents55.cjs"),Je=require("./kongponents24.cjs");;/* empty css */const Xe=require("./kongponents188.cjs"),Ze=require("./kongponents181.cjs"),Qe=require("./kongponents189.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const Ye=require("./kongponents11.cjs"),K=require("./kongponents179.cjs"),_e=require("./kongponents190.cjs"),et=require("./kongponents180.cjs"),ge=require("./kongponents173.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=>({v60cb3642:we.value}));const{useDebounce:U,useRequest:pe,useSwrvState:me,clientSideSorter:W}=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},f=e.ref([]),J=e.ref(),E=e.ref([]),y=e.ref([]),P=e.ref(""),z=e.ref(""),T=e.ref(""),X=e.computed(()=>E.value.filter(t=>t.hidable).length>0),O=e.computed(()=>!!(X.value&&!o.error&&!S.value&&!o.loading&&f.value&&f.value.length)),be=e.computed(()=>E.value.filter(t=>t.hidable)),he=e.computed(()=>O.value?o.tablePreferences.columnVisibility||{}:{}),M=e.ref(O.value?o.tablePreferences.columnVisibility||{}:{}),D=e.ref(0),B=e.ref(!1),u=e.ref(1),N=e.ref(15),Z=e.ref(""),v=e.ref(""),d=e.ref("desc"),k=e.ref(null),b=e.ref([]),Q=e.ref(!0),H=e.ref(!1),F=e.ref(!1),ke=e.computed(()=>!!ye.toolbar||O.value),Se=e.computed(()=>({maxHeight:et.normalizeSize(o.maxHeight)})),Ce=t=>`column-${t}`,w=t=>`tooltip-${t}`,R=t=>t,Y=(t,a)=>(l,s)=>{const n=/^on[^a-z]/,i={};for(const c in a)n.test(c)&&a[c]&&(i[c]=a[c]);return Object.keys(i).reduce((c,g)=>{if(g.indexOf(t)===0){const h=g.split(t);c[h[1]]=p=>i[g](p,l,s)}return c},{})},ze=e.computed(()=>(t,a)=>{const l=Y("onRow:",G)(a,"row"),s=Y("onCell:",G)(t,"cell"),n=["a","button","label","input","select"];return l.click&&(H.value=!0),{...l,...s,click(i){const c=i.target.className;let g=n.includes(i.target.tagName.toLowerCase()),h=!1;typeof c=="string"||Array.isArray(c)?h=c.includes("k-popover"):typeof c=="object"&&(h=Object.keys(c).includes("k-popover")),i.target.closest(".popover-content")!==null&&(h=!0);for(let p=0;p<n.length;p++)if(i.target.closest(n[p])!==null){g=!0;break}if((!g||i.target.hasAttribute("disabled"))&&!h&&(l.click||s.click))if(s.click){V("cell-click",{data:t});const p=s.click(i,t,"cell");typeof p=="function"&&p(i,t)}else{V("row-click",{data:a});const p=l.click(i,a,"row");typeof p=="function"&&p(i,a)}}}}),A=e.ref(o.resizeColumns?o.tablePreferences.columnWidths||{}:{}),_=e.computed(()=>{const t={};for(const a in A.value){if(!A.value[a])continue;const l=A.value[a]+"px";t[a]={width:l,maxWidth:l,minWidth:l}}return t}),Be=(t,a)=>({"resize-hover":ee.value===t.key&&o.resizeColumns&&a!==y.value.length-1,resizable:o.resizeColumns,sortable:o.sortable&&!t.hideLabel&&!!t.sortable,"active-sort":o.sortable&&!t.hideLabel&&!!t.sortable&&t.key===v.value,[d.value]:o.sortable&&t.key===v.value&&!t.hideLabel,"is-scrolled":B.value,"has-tooltip":!!t.tooltip}),Ne=e.computed(()=>P.value?"resizing":z.value?"resize-hover":T.value?"th-hover":""),ee=e.computed(()=>{switch(Ne.value){case"resizing":return P.value;case"resize-hover":return z.value;case"th-hover":return T.value;default:return""}}),te=e.computed(()=>J.value?.querySelectorAll("th.resizable")),we=e.computed(()=>{const t=te.value?.item(0);if(t){const a=window?.getComputedStyle(t);if(a?.height)return`${parseInt(a.height,10)}px`}return"auto"}),ae=(t,a)=>{if(t.button!==0)return;let l=0,s=0;P.value=a;let n=null;te.value?.forEach(g=>{g.getAttribute("data-testid")===`table-header-${a}`&&(n=document?.querySelector(`[data-tableid="${m}"] [data-testid="table-header-${a}"]`))});const i=g=>{const h=g.clientX-l;n?.setAttribute("style",`width: ${s+h}px`),A.value[a]=s+h},c=()=>{P.value="",document?.removeEventListener("mousemove",i),document?.removeEventListener("mouseup",c),q()};if(l=t.clientX,n){const g=window?.getComputedStyle(n);g?.width&&(s=parseInt(g.width,10)),document?.addEventListener("mousemove",i),document?.addEventListener("mouseup",c)}},le=e.ref(!0),Ee=async()=>{const t=o.searchInput,a=await o.fetcher({pageSize:N.value,page:u.value,query:t||Z.value,sortColumnKey:v.value,sortColumnOrder:d.value,offset:k.value});return f.value=a.data,D.value=o.paginationTotalItems||a.total||a.data?.length,o.paginationOffset&&(a.pagination?.offset?($.value=a.pagination.offset,b.value[u.value]||b.value.push(a.pagination.offset)):$.value=null,Q.value=a.pagination&&"hasNextPage"in a.pagination?a.pagination.hasNextPage:!0),f.value.length===0&&u.value>1&&(u.value=1,b.value=[null],k.value=null),le.value=!1,a},Pe=()=>{const t={...C,...o.initialFetcherParams};u.value=t.page??C.page,N.value=t.pageSize??C.pageSize,Z.value=t.query??C.query,v.value=t.sortColumnKey??C.sortColumnKey,d.value=t.sortColumnOrder??C.sortColumnOrder,o.clientSort&&v.value&&d.value&&W(v.value,"",d.value,f.value),o.paginationOffset&&(k.value=t.offset,b.value.push(t.offset)),o.headers&&o.headers.length&&(E.value=o.headers),F.value=!0};e.watch(()=>o.headers,t=>{t&&t.length&&(E.value=t)},{deep:!0});const x=e.computed(()=>b.value[u.value-1]),$=e.ref(null),Oe=e.computed(()=>{if(!o.fetcher||!F.value)return"";let t=m;return o.cacheIdentifier&&(t=o.cacheIdentifier),o.fetcherCacheKey&&(t+=`-${o.fetcherCacheKey}`),`k-table_${t}`}),oe=e.ref(""),{debouncedFn:Ae,generateDebouncedFn:$e}=U(t=>{oe.value=t},350),Ie=$e(0),{data:re,error:ne,revalidate:Ve,isValidating:Te}=pe(()=>Oe.value,()=>Ee(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:j,hasData:Me,swrvState:se}=me(re,ne,Te),S=e.ref(!0),ie=e.computed(()=>({hasData:Me.value,state:j.value})),ue=e.computed(()=>S.value?"loading":ne.value?"error":"success"),{debouncedFn:ce,generateDebouncedFn:He}=U(Ve,500),qe=He(0),Ke=t=>{const{key:a,useSortHandlerFunction:l}=t,s=v.value+"";u.value=1,v.value?a===v.value?d.value==="asc"?d.value="desc":d.value="asc":(v.value=a,d.value="asc",b.value=[null]):(v.value=a,d.value="asc",b.value=[null]),o.clientSort?l&&o.sortHandlerFunction?o.sortHandlerFunction({key:a,prevKey:s,sortColumnOrder:d.value,data:f.value}):W(a,s,d.value,f.value):o.paginationOffset||ce(),q()},Le=({page:t})=>{u.value=t},De=({pageSize:t})=>{b.value=[null],k.value=null,N.value=t,u.value=1,q()},Fe=t=>{t&&t.target&&typeof t.target.scrollTop=="number"&&(t.target.scrollTop>1?B.value=!0:t.target.scrollTop===0&&(B.value=!B.value))},Re=e.computed(()=>({pageSize:N.value,sortColumnKey:v.value,sortColumnOrder:d.value,...o.resizeColumns?{columnWidths:A.value}:{},...X.value?{columnVisibility:M.value}:{}})),q=()=>{ue.value==="success"&&V("update:table-preferences",Re.value)},xe=()=>{u.value++,k.value=$.value},je=()=>{u.value--,k.value=x.value},Ue=e.computed(()=>!!(o.fetcher&&!o.disablePagination&&!(!o.paginationOffset&&o.hidePaginationWhenOptional&&D.value<=(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE))&&!(o.paginationOffset&&o.hidePaginationWhenOptional&&!x.value&&!$.value&&f.value.length<(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE)))),de=t=>t.toLowerCase().replace(/[^[a-z0-9]/gi,"-");e.watch([M,E],t=>{const a=t[0],s=t[1].filter(n=>a[n.key]!==!1);JSON.stringify(s)!==JSON.stringify(y.value)&&(y.value=s,q())},{deep:!0,immediate:!0}),e.watch(re,t=>{t?.length&&!f.value.length&&(f.value=t)},{deep:!0,immediate:!0}),e.watch(j,()=>{switch(j.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=>{V("state",{state:t?.[1],hasData:t?.[0]?.hasData})}),e.watch(()=>o.searchInput,t=>{u.value!==1&&(u.value=1),t===""?Ie(t):Ae(t)},{immediate:!0});const I=e.ref(!1);return e.watch([oe,u,N],async(t,a)=>{const l=a?.[0],s=t[0],n=t[1];s!==l&&n!==1&&(u.value=1,b.value=[null],k.value=null),F.value&&!le.value&&(I.value=!0,s!==""&&s!==l?await ce():await qe(),I.value=!1)},{deep:!0,immediate:!0}),e.watch(O,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("./kongponents32.cjs"),fe=require("./kongponents45.cjs"),We=require("./kongponents20.cjs");;/* empty css */const Ge=require("./kongponents55.cjs"),Je=require("./kongponents24.cjs");;/* empty css */const Xe=require("./kongponents185.cjs"),Ze=require("./kongponents178.cjs"),Qe=require("./kongponents205.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const Ye=require("./kongponents11.cjs"),K=require("./kongponents181.cjs"),_e=require("./kongponents212.cjs"),et=require("./kongponents193.cjs"),ge=require("./kongponents173.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=>({v60cb3642:we.value}));const{useDebounce:U,useRequest:pe,useSwrvState:me,clientSideSorter:W}=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},f=e.ref([]),J=e.ref(),E=e.ref([]),y=e.ref([]),P=e.ref(""),z=e.ref(""),T=e.ref(""),X=e.computed(()=>E.value.filter(t=>t.hidable).length>0),O=e.computed(()=>!!(X.value&&!o.error&&!S.value&&!o.loading&&f.value&&f.value.length)),be=e.computed(()=>E.value.filter(t=>t.hidable)),he=e.computed(()=>O.value?o.tablePreferences.columnVisibility||{}:{}),M=e.ref(O.value?o.tablePreferences.columnVisibility||{}:{}),D=e.ref(0),B=e.ref(!1),u=e.ref(1),N=e.ref(15),Z=e.ref(""),v=e.ref(""),d=e.ref("desc"),k=e.ref(null),b=e.ref([]),Q=e.ref(!0),H=e.ref(!1),F=e.ref(!1),ke=e.computed(()=>!!ye.toolbar||O.value),Se=e.computed(()=>({maxHeight:et.normalizeSize(o.maxHeight)})),Ce=t=>`column-${t}`,w=t=>`tooltip-${t}`,R=t=>t,Y=(t,a)=>(l,s)=>{const n=/^on[^a-z]/,i={};for(const c in a)n.test(c)&&a[c]&&(i[c]=a[c]);return Object.keys(i).reduce((c,g)=>{if(g.indexOf(t)===0){const h=g.split(t);c[h[1]]=p=>i[g](p,l,s)}return c},{})},ze=e.computed(()=>(t,a)=>{const l=Y("onRow:",G)(a,"row"),s=Y("onCell:",G)(t,"cell"),n=["a","button","label","input","select"];return l.click&&(H.value=!0),{...l,...s,click(i){const c=i.target.className;let g=n.includes(i.target.tagName.toLowerCase()),h=!1;typeof c=="string"||Array.isArray(c)?h=c.includes("k-popover"):typeof c=="object"&&(h=Object.keys(c).includes("k-popover")),i.target.closest(".popover-content")!==null&&(h=!0);for(let p=0;p<n.length;p++)if(i.target.closest(n[p])!==null){g=!0;break}if((!g||i.target.hasAttribute("disabled"))&&!h&&(l.click||s.click))if(s.click){V("cell-click",{data:t});const p=s.click(i,t,"cell");typeof p=="function"&&p(i,t)}else{V("row-click",{data:a});const p=l.click(i,a,"row");typeof p=="function"&&p(i,a)}}}}),A=e.ref(o.resizeColumns?o.tablePreferences.columnWidths||{}:{}),_=e.computed(()=>{const t={};for(const a in A.value){if(!A.value[a])continue;const l=A.value[a]+"px";t[a]={width:l,maxWidth:l,minWidth:l}}return t}),Be=(t,a)=>({"resize-hover":ee.value===t.key&&o.resizeColumns&&a!==y.value.length-1,resizable:o.resizeColumns,sortable:o.sortable&&!t.hideLabel&&!!t.sortable,"active-sort":o.sortable&&!t.hideLabel&&!!t.sortable&&t.key===v.value,[d.value]:o.sortable&&t.key===v.value&&!t.hideLabel,"is-scrolled":B.value,"has-tooltip":!!t.tooltip}),Ne=e.computed(()=>P.value?"resizing":z.value?"resize-hover":T.value?"th-hover":""),ee=e.computed(()=>{switch(Ne.value){case"resizing":return P.value;case"resize-hover":return z.value;case"th-hover":return T.value;default:return""}}),te=e.computed(()=>J.value?.querySelectorAll("th.resizable")),we=e.computed(()=>{const t=te.value?.item(0);if(t){const a=window?.getComputedStyle(t);if(a?.height)return`${parseInt(a.height,10)}px`}return"auto"}),ae=(t,a)=>{if(t.button!==0)return;let l=0,s=0;P.value=a;let n=null;te.value?.forEach(g=>{g.getAttribute("data-testid")===`table-header-${a}`&&(n=document?.querySelector(`[data-tableid="${m}"] [data-testid="table-header-${a}"]`))});const i=g=>{const h=g.clientX-l;n?.setAttribute("style",`width: ${s+h}px`),A.value[a]=s+h},c=()=>{P.value="",document?.removeEventListener("mousemove",i),document?.removeEventListener("mouseup",c),q()};if(l=t.clientX,n){const g=window?.getComputedStyle(n);g?.width&&(s=parseInt(g.width,10)),document?.addEventListener("mousemove",i),document?.addEventListener("mouseup",c)}},le=e.ref(!0),Ee=async()=>{const t=o.searchInput,a=await o.fetcher({pageSize:N.value,page:u.value,query:t||Z.value,sortColumnKey:v.value,sortColumnOrder:d.value,offset:k.value});return f.value=a.data,D.value=o.paginationTotalItems||a.total||a.data?.length,o.paginationOffset&&(a.pagination?.offset?($.value=a.pagination.offset,b.value[u.value]||b.value.push(a.pagination.offset)):$.value=null,Q.value=a.pagination&&"hasNextPage"in a.pagination?a.pagination.hasNextPage:!0),f.value.length===0&&u.value>1&&(u.value=1,b.value=[null],k.value=null),le.value=!1,a},Pe=()=>{const t={...C,...o.initialFetcherParams};u.value=t.page??C.page,N.value=t.pageSize??C.pageSize,Z.value=t.query??C.query,v.value=t.sortColumnKey??C.sortColumnKey,d.value=t.sortColumnOrder??C.sortColumnOrder,o.clientSort&&v.value&&d.value&&W(v.value,"",d.value,f.value),o.paginationOffset&&(k.value=t.offset,b.value.push(t.offset)),o.headers&&o.headers.length&&(E.value=o.headers),F.value=!0};e.watch(()=>o.headers,t=>{t&&t.length&&(E.value=t)},{deep:!0});const x=e.computed(()=>b.value[u.value-1]),$=e.ref(null),Oe=e.computed(()=>{if(!o.fetcher||!F.value)return"";let t=m;return o.cacheIdentifier&&(t=o.cacheIdentifier),o.fetcherCacheKey&&(t+=`-${o.fetcherCacheKey}`),`k-table_${t}`}),oe=e.ref(""),{debouncedFn:Ae,generateDebouncedFn:$e}=U(t=>{oe.value=t},350),Ie=$e(0),{data:re,error:ne,revalidate:Ve,isValidating:Te}=pe(()=>Oe.value,()=>Ee(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:j,hasData:Me,swrvState:se}=me(re,ne,Te),S=e.ref(!0),ie=e.computed(()=>({hasData:Me.value,state:j.value})),ue=e.computed(()=>S.value?"loading":ne.value?"error":"success"),{debouncedFn:ce,generateDebouncedFn:He}=U(Ve,500),qe=He(0),Ke=t=>{const{key:a,useSortHandlerFunction:l}=t,s=v.value+"";u.value=1,v.value?a===v.value?d.value==="asc"?d.value="desc":d.value="asc":(v.value=a,d.value="asc",b.value=[null]):(v.value=a,d.value="asc",b.value=[null]),o.clientSort?l&&o.sortHandlerFunction?o.sortHandlerFunction({key:a,prevKey:s,sortColumnOrder:d.value,data:f.value}):W(a,s,d.value,f.value):o.paginationOffset||ce(),q()},Le=({page:t})=>{u.value=t},De=({pageSize:t})=>{b.value=[null],k.value=null,N.value=t,u.value=1,q()},Fe=t=>{t&&t.target&&typeof t.target.scrollTop=="number"&&(t.target.scrollTop>1?B.value=!0:t.target.scrollTop===0&&(B.value=!B.value))},Re=e.computed(()=>({pageSize:N.value,sortColumnKey:v.value,sortColumnOrder:d.value,...o.resizeColumns?{columnWidths:A.value}:{},...X.value?{columnVisibility:M.value}:{}})),q=()=>{ue.value==="success"&&V("update:table-preferences",Re.value)},xe=()=>{u.value++,k.value=$.value},je=()=>{u.value--,k.value=x.value},Ue=e.computed(()=>!!(o.fetcher&&!o.disablePagination&&!(!o.paginationOffset&&o.hidePaginationWhenOptional&&D.value<=(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE))&&!(o.paginationOffset&&o.hidePaginationWhenOptional&&!x.value&&!$.value&&f.value.length<(o.paginationPageSizes[0]??ge.DEFAULT_PAGE_SIZE)))),de=t=>t.toLowerCase().replace(/[^[a-z0-9]/gi,"-");e.watch([M,E],t=>{const a=t[0],s=t[1].filter(n=>a[n.key]!==!1);JSON.stringify(s)!==JSON.stringify(y.value)&&(y.value=s,q())},{deep:!0,immediate:!0}),e.watch(re,t=>{t?.length&&!f.value.length&&(f.value=t)},{deep:!0,immediate:!0}),e.watch(j,()=>{switch(j.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=>{V("state",{state:t?.[1],hasData:t?.[0]?.hasData})}),e.watch(()=>o.searchInput,t=>{u.value!==1&&(u.value=1),t===""?Ie(t):Ae(t)},{immediate:!0});const I=e.ref(!1);return e.watch([oe,u,N],async(t,a)=>{const l=a?.[0],s=t[0],n=t[1];s!==l&&n!==1&&(u.value=1,b.value=[null],k.value=null),F.value&&!le.value&&(I.value=!0,s!==""&&s!==l?await ce():await qe(),I.value=!1)},{deep:!0,immediate:!0}),e.watch(O,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`),Pe()}),(t,a)=>(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),O.value?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(_e.default,{columns:be.value,"table-id":e.unref(m),"visibility-preferences":he.value,onUpdate:a[0]||(a[0]=l=>M.value=l)},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(We.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:a[1]||(a[1]=l=>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&&f.value&&!f.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:a[2]||(a[2]=l=>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:Fe},[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,(l,s)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(m)}-headers-${s}`,"aria-sort":r.sortable&&l.key===v.value?d.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Be(l,s)]),"data-testid":`table-header-${l.key}`,style:e.normalizeStyle(_.value[l.key]),onClick:()=>{r.sortable&&l.sortable&&(t.$emit("sort",{prevKey:v.value,sortColumnKey:l.key,sortColumnOrder:d.value==="asc"?"desc":"asc"}),Ke(l))},onMouseleave:a[7]||(a[7]=n=>T.value=""),onMouseover:n=>T.value=l.key},[r.resizeColumns&&s!==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:a[3]||(a[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ae(n,y.value[s-1].key),onMouseleave:a[4]||(a[4]=n=>z.value=""),onMouseover:n=>z.value=y.value[s-1].key},null,40,ut)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":l.tooltip||t.$slots[w(l.key)]?`${w(l.key)}-${e.unref(m)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:P.value===l.key}])},[e.renderSlot(t.$slots,Ce(l.key),{column:R(l)},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":l.hideLabel}])},e.toDisplayString(l.label?l.label:l.key),3)],!0),l.tooltip||t.$slots[w(l.key)]?(e.openBlock(),e.createBlock(Je.default,{key:0,"data-testid":w(l.key),"tooltip-id":`${w(l.key)}-${e.unref(m)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,w(l.key),{column:R(l)},()=>[e.createTextVNode(e.toDisplayString(l.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:`var(--kui-icon-size-30, ${e.unref(K.KUI_ICON_SIZE_30)})`},null,8,["color","size"])]),_:2},1032,["data-testid","tooltip-id"])):e.createCommentVNode("",!0),r.sortable&&!l.hideLabel&&l.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:`var(--kui-icon-size-30, ${e.unref(K.KUI_ICON_SIZE_30)})`},null,8,["color","size"])):e.createCommentVNode("",!0)],10,ct),r.resizeColumns&&s!==y.value.length-1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:a[5]||(a[5]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ae(n,l.key),onMouseleave:a[6]||(a[6]=n=>z.value=""),onMouseover:n=>z.value=l.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(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("tr",e.mergeProps({ref_for:!0},r.rowAttrs(l),{key:`table-${e.unref(m)}-row-${s}`,role:H.value?"link":null,tabindex:H.value?0:null}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(n,i)=>(e.openBlock(),e.createElementBlock("td",e.mergeProps({ref_for:!0},r.cellAttrs({headerKey:n.key,row:l,rowIndex:s,colIndex:i}),{key:`table-${e.unref(m)}-cell-${i}`,class:{"resize-hover":r.resizeColumns&&ee.value===n.key&&i!==y.value.length-1},style:_.value[n.key]},e.toHandlers(ze.value(l[n.key],l),!0)),[e.renderSlot(t.$slots,n.key,{row:R(l),rowKey:s,rowValue:l[n.key]},()=>[e.createTextVNode(e.toDisplayString(l[n.key]),1)],!0)],16))),128))],16,vt))),128))])],10,st)],36),Ue.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":!x.value,"page-sizes":r.paginationPageSizes,"total-count":D.value,onGetNextOffset:xe,onGetPreviousOffset:je,onPageChange:Le,onPageSizeChange:De},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;
|
|
@@ -6,15 +6,15 @@ import kt from "./kongponents20.es.js";
|
|
|
6
6
|
import St from "./kongponents55.es.js";
|
|
7
7
|
import Ct from "./kongponents24.es.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import zt from "./
|
|
10
|
-
import $t from "./
|
|
11
|
-
import Pt from "./
|
|
9
|
+
import zt from "./kongponents185.es.js";
|
|
10
|
+
import $t from "./kongponents178.es.js";
|
|
11
|
+
import Pt from "./kongponents205.es.js";
|
|
12
12
|
import "./kongponents5.es.js";
|
|
13
13
|
import "./kongponents10.es.js";
|
|
14
14
|
import { EmptyStateIconVariants as Ot } from "./kongponents11.es.js";
|
|
15
|
-
import { KUI_ICON_SIZE_30 as Ne, KUI_COLOR_TEXT_NEUTRAL as Ke } from "./
|
|
16
|
-
import At from "./
|
|
17
|
-
import { normalizeSize as wt } from "./
|
|
15
|
+
import { KUI_ICON_SIZE_30 as Ne, KUI_COLOR_TEXT_NEUTRAL as Ke } from "./kongponents181.es.js";
|
|
16
|
+
import At from "./kongponents212.es.js";
|
|
17
|
+
import { normalizeSize as wt } from "./kongponents193.es.js";
|
|
18
18
|
import { DEFAULT_PAGE_SIZE as Ee } from "./kongponents173.es.js";
|
|
19
19
|
const Ht = { class: "k-table" }, Mt = {
|
|
20
20
|
key: 0,
|
package/dist/kongponents148.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("./kongponents205.cjs"),R=require("./kongponents51.cjs"),n=require("./kongponents192.cjs"),q=["data-value"],D=["id","aria-invalid","rows","value"],h=2048,p=n.IS_MAYBE_FIREFOX?0:n.getScrollbarSize(),S=n.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(t,{emit:E}){e.useCssVars(a=>({v521818f8:a.rows})),e.watch(()=>t.isResizable,a=>{a&&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(()=>t.hasError,a=>{a&&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 u=E,i=e.useAttrs(),s=e.useSlots(),{stripRequiredLabel:k}=C.default(),v=e.computed(()=>i?.required!==void 0&&String(i?.required)!=="false"),l=e.ref(""),x=e.computed(()=>k(t.label,v.value)),y=e.computed(()=>!!(t.labelAttributes?.help||t.labelAttributes?.info||s["label-tooltip"])),T=e.computed(()=>t.error||t.hasError||o.value?!0:void 0),f=e.ref(0),A=e.computed({get(){return t.modelValue},set(a){c({target:{value:a}})}}),L=e.useId(),g=e.computed(()=>i.id?String(i.id):L),z=e.computed(()=>{const a={...i};return delete a.class,a}),o=e.computed(()=>typeof t.characterLimit=="boolean"?t.characterLimit?l.value.length>h:!1:l.value.length>t.characterLimit),c=a=>{const r=JSON.parse(JSON.stringify(a?.target?.value));u("input",r),u("update:modelValue",r),l.value=r},B=e.computed(()=>!o.value&&!!(t.help||s.help)),d=e.computed(()=>{const a=typeof t.characterLimit=="number"?t.characterLimit:h;return o.value?`${l.value?.toString().length} / ${a}`:t.help});e.watch(o,(a,r)=>{a!==r&&(u("char-limit-exceeded",{value:l.value,length:l.value.length,characterLimit:Number(t.characterLimit),limitExceeded:a}),f.value+=1)}),e.watch(A,(a,r)=>{a!==r&&c({target:{value:a}})});const w=()=>l.value?l.value:t.modelValue,b=n.IS_MAYBE_FIREFOX?()=>{}:a=>{const{target:r,clientX:m,clientY:I}=a;if(!(r instanceof HTMLTextAreaElement))return;const{right:N,bottom:V}=r.getBoundingClientRect();m>N-p&&I>V-p&&(r.style.height="")};return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-textarea",[a.$attrs.class,{"input-error":t.error||t.hasError||o.value}]])},[t.label?(e.openBlock(),e.createBlock(R.default,e.mergeProps({key:0,for:g.value},t.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(a.$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:t.autosize,legacy:t.autosize&&!e.unref(S)}]),"data-allow-mismatch":"class","data-value":e.unref(S)?null:l.value},[e.createElementVNode("textarea",e.mergeProps({id:g.value},z.value,{"aria-invalid":T.value,class:["input-textarea",{resizable:t.resizable||t.isResizable}],rows:t.rows,value:w(),onDblclick:r[0]||(r[0]=(...m)=>e.unref(b)&&e.unref(b)(...m)),onInput:c}),null,16,D)],10,q),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[d.value||s.help?(e.openBlock(),e.createElementBlock("p",{key:String(f.value),class:"help-text"},[B.value?e.renderSlot(a.$slots,"help",{key:0},()=>[e.createTextVNode(e.toDisplayString(d.value),1)],!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d.value),1)],64))])):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=F;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as J, useCssVars as X, watch as n, useAttrs as Y, useSlots as G, computed as l, ref as k, useId as j, openBlock as s, createElementBlock as f, normalizeClass as A, createBlock as Q, mergeProps as z, createSlots as W, withCtx as g, createTextVNode as b, toDisplayString as S, renderSlot as T, createCommentVNode as I, createElementVNode as N, unref as u, createVNode as _, Transition as ee, Fragment as te } from "vue";
|
|
2
|
-
import ae from "./
|
|
2
|
+
import ae from "./kongponents205.es.js";
|
|
3
3
|
import le from "./kongponents51.es.js";
|
|
4
|
-
import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./
|
|
4
|
+
import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./kongponents192.es.js";
|
|
5
5
|
const oe = ["data-value"], ne = ["id", "aria-invalid", "rows", "value"], E = 2048, R = w ? 0 : re(), B = ie("field-sizing", "content"), me = /* @__PURE__ */ J({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "KTextArea",
|
package/dist/kongponents150.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("./kongponents175.cjs"),u=require("./kongponents231.cjs"),d=require("./kongponents176.cjs"),s=require("./kongponents178.cjs"),_=require("./kongponents201.cjs"),k=require("./kongponents180.cjs"),o=require("./kongponents181.cjs"),m={class:"toaster-icon-container"},p={class:"toaster-content"},f={key:0,class:"toaster-title"},g={key:1,class:"toaster-message"},v=["onClick"],I=e.defineComponent({__name:"KToaster",props:{toasterState:{default:()=>[]},zIndex:{}},emits:["close"],setup(r,{emit:c}){const a=c,l=n=>{switch(n){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(n,B)=>(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(o.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(C=>a("close",t.key),["stop"])},[e.createVNode(e.unref(d.default),{color:`var(--kui-color-text-neutral-weak, ${e.unref(o.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:`var(--kui-icon-size-50, ${e.unref(o.KUI_ICON_SIZE_50)})`},null,8,["color","size"])],8,v)],2))),128))]),_:1}))}});exports.default=I;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as d, openBlock as t, createBlock as a, TransitionGroup as f, withCtx as k, createElementBlock as o, Fragment as C, renderList as g, normalizeClass as v, createElementVNode as s, resolveDynamicComponent as h, unref as r, toDisplayString as c, createCommentVNode as i, withModifiers as y, createVNode as T } from "vue";
|
|
2
|
-
import $ from "./
|
|
3
|
-
import E from "./
|
|
4
|
-
import I from "./
|
|
5
|
-
import l from "./
|
|
6
|
-
import x from "./
|
|
7
|
-
import B from "./
|
|
8
|
-
import { KUI_COLOR_TEXT as w, KUI_ICON_SIZE_50 as z, KUI_COLOR_TEXT_NEUTRAL_WEAK as K } from "./
|
|
2
|
+
import $ from "./kongponents175.es.js";
|
|
3
|
+
import E from "./kongponents231.es.js";
|
|
4
|
+
import I from "./kongponents176.es.js";
|
|
5
|
+
import l from "./kongponents178.es.js";
|
|
6
|
+
import x from "./kongponents201.es.js";
|
|
7
|
+
import B from "./kongponents180.es.js";
|
|
8
|
+
import { KUI_COLOR_TEXT as w, KUI_ICON_SIZE_50 as z, KUI_COLOR_TEXT_NEUTRAL_WEAK as K } from "./kongponents181.es.js";
|
|
9
9
|
const N = { class: "toaster-icon-container" }, O = { class: "toaster-content" }, L = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "toaster-title"
|
package/dist/kongponents156.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("./kongponents232.cjs"),l=require("./kongponents181.cjs"),n=require("./kongponents171.cjs"),a=require("./kongponents228.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:`var(--kui-icon-size-30, ${e.unref(l.KUI_ICON_SIZE_30)})`},null,8,["size"]))],8,u)):e.createCommentVNode("",!0)}});exports.default=c;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as l, watch as f, computed as c, openBlock as t, createElementBlock as m, renderSlot as d, createBlock as s, unref as o, createCommentVNode as n } from "vue";
|
|
2
|
-
import u from "./
|
|
3
|
-
import { KUI_ICON_SIZE_30 as h } from "./
|
|
2
|
+
import u from "./kongponents232.es.js";
|
|
3
|
+
import { KUI_ICON_SIZE_30 as h } from "./kongponents181.es.js";
|
|
4
4
|
import { isValidUrl as i } from "./kongponents171.es.js";
|
|
5
|
-
import { warnInvalidProp as k } from "./
|
|
5
|
+
import { warnInvalidProp as k } from "./kongponents228.es.js";
|
|
6
6
|
const p = ["href"], y = /* @__PURE__ */ l({
|
|
7
7
|
__name: "KExternalLink",
|
|
8
8
|
props: {
|
package/dist/kongponents158.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("./kongponents230.cjs"),k=require("./kongponents181.cjs"),B=require("./kongponents226.cjs"),H=require("./kongponents193.cjs"),N=require("./kongponents228.cjs"),w=require("./kongponents32.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(a){e.useCssVars(t=>({v8887e96a:p.value,v38176872:e.unref(m),cacb39f0:t.rows})),e.watch(()=>a.rows,t=>{t<0&&N.warnInvalidProp("rows",`\`rows\` prop cannot be less than 0, but got "${t}".`)},{immediate:!0});const n=e.ref(a.expanded),d=e.ref(!1),f=e.ref(),o=e.ref(),i=e.ref(),g=e.ref(),p=e.ref("0px"),m=k.KUI_SPACE_40,s=e.ref(0),x=()=>{if(!a.truncateText&&o.value&&o.value.children?.length){const t=o.value.children,r=Number(String(m).replace(/px$/gi,""));let c=0;for(let u=0;u<t.length;u++)c=t[u].offsetHeight>c?t[u].offsetHeight:c;const h=(a.rows===1?0:(a.rows-1)*r)+c*a.rows+6,T=o.value.offsetHeight>h?`${h}px`:"auto";window.requestAnimationFrame(()=>{p.value=T,window.requestAnimationFrame(v)})}},v=()=>{if(o.value&&i.value){const t=a.truncateText?o.value.scrollHeight:o.value.offsetHeight,r=g.value?g.value.offsetHeight:0;d.value=t>i.value.offsetHeight-r,C()}},C=()=>{if(!a.truncateText&&(s.value=0,o.value&&i.value)){const t=o.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()=>{n.value=!n.value,await e.nextTick(),v()},b=e.computed(()=>({width:H.normalizeSize(a.width)}));return e.onMounted(()=>{f.value=B.ResizeObserverHelper.create(x),f.value.observe(o.value),a.truncateText&&v()}),e.onBeforeUnmount(()=>{f.value?.unobserve(o.value)}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"kTruncateWrapper",ref:i,class:e.normalizeClass(["k-truncate",[n.value?"expanded":"",`truncate-${a.truncateText?"text":"content"}`]]),style:e.normalizeStyle(b.value)},[!a.truncateText&&d.value?(e.openBlock(),e.createElementBlock("div",S,[n.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:o,class:"truncate-container"},[e.renderSlot(t.$slots,"default",{},void 0,!0),!a.truncateText&&n.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:`var(--kui-icon-size-30, ${e.unref(k.KUI_ICON_SIZE_30)})`},null,8,["size"])])],!0)])):e.createCommentVNode("",!0)],512),a.truncateText&&(d.value||n.value)?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"textToggleControls",ref:g,class:"truncate-collapse-controls"},[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(t.$slots,"expand-trigger",{expand:l},()=>[e.createVNode(w.default,{appearance:"tertiary",size:"small",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode(" Show more ",-1)])]),_:1})],!0)])),n.value?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"collapse-trigger",{collapse:l},()=>[e.createVNode(w.default,{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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as V, useCssVars as A, unref as b, watch as K, ref as l, computed as W, onMounted as O, onBeforeUnmount as P, openBlock as i, createElementBlock as s, normalizeStyle as U, normalizeClass as q, renderSlot as g, createElementVNode as k, withModifiers as p, toDisplayString as F, createCommentVNode as u, createVNode as T, withCtx as z, createTextVNode as S, nextTick as M } from "vue";
|
|
2
|
-
import D from "./
|
|
3
|
-
import { KUI_SPACE_40 as R, KUI_ICON_SIZE_30 as Z } from "./
|
|
4
|
-
import { ResizeObserverHelper as j } from "./
|
|
5
|
-
import { normalizeSize as G } from "./
|
|
6
|
-
import { warnInvalidProp as J } from "./
|
|
2
|
+
import D from "./kongponents230.es.js";
|
|
3
|
+
import { KUI_SPACE_40 as R, KUI_ICON_SIZE_30 as Z } from "./kongponents181.es.js";
|
|
4
|
+
import { ResizeObserverHelper as j } from "./kongponents226.es.js";
|
|
5
|
+
import { normalizeSize as G } from "./kongponents193.es.js";
|
|
6
|
+
import { warnInvalidProp as J } from "./kongponents228.es.js";
|
|
7
7
|
import $ from "./kongponents32.es.js";
|
|
8
8
|
const L = {
|
|
9
9
|
key: 0,
|
package/dist/kongponents160.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("./kongponents226.cjs"),T=require("./kongponents187.cjs"),C=require("./kongponents19.cjs"),s=require("./kongponents24.cjs");;/* empty css */const k=require("./kongponents181.cjs"),h={class:"k-copy"},B={key:0,class:"copy-badge-text"},L=["id","aria-label","onClick"],w=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:m}){const u=e.useId(),l=e.ref(""),r=e.computed(()=>!t.badgeLabel||t.copyTooltip?t.copyTooltip||"Copy":`Copy ${t.badgeLabel.replace(/:$/,"")}`);e.watch(r,a=>{l.value=a},{immediate:!0});const f=e.computed(()=>`copy-tooltip-wrapper ${t.truncate&&c.value||t.badge?"truncate-content":""}`),v=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),b=e.computed(()=>{if(t.textTooltip)return t.textTooltip;if(!(t.format==="redacted"||!c.value))return t.text}),d=a=>{l.value=a||t.successTooltip,setTimeout(()=>{l.value=r.value},1800)},y=async a=>{if(!await a(t.text)){d("Failed to copy");return}d()};m({copy:()=>{document?.getElementById(u)&&document?.getElementById(u)?.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),x=()=>{t.truncate&&(t.truncationLimit!=="auto"&&i.value?c.value=!0:t.truncationLimit==="auto"&&o.value&&(c.value=o.value?.offsetWidth<o.value?.scrollWidth))};return e.onMounted(()=>{n.value=g.ResizeObserverHelper.create(x),n.value.observe(o.value)}),e.onBeforeUnmount(()=>{n.value&&n.value.unobserve(o.value)}),(a,$)=>(e.openBlock(),e.createElementBlock("div",h,[t.badge&&t.badgeLabel?(e.openBlock(),e.createElementBlock("span",B,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(s.default,{key:0,class:e.normalizeClass([f.value]),"data-testid":"copy-tooltip-wrapper","max-width":"500px",placement:"bottom-start",text:b.value},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"copyTextElement",ref:o,class:e.normalizeClass(["copy-text",{monospace:t.monospace||!t.badge}])},e.toDisplayString(v.value),3)]),_:1},8,["class","text"])):e.createCommentVNode("",!0),e.createVNode(s.default,{class:"text-icon-wrapper","max-width":"500px",placement:"bottom-start",text:l.value},{default:e.withCtx(()=>[e.createVNode(C.default,null,{default:e.withCtx(({copyToClipboard:p})=>[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(z=>y(p),["stop"])},[e.createVNode(e.unref(T.default),{class:"text-icon",decorative:"",size:`var(--kui-icon-size-30, ${e.unref(k.KUI_ICON_SIZE_30)})`},null,8,["size"])],8,L)]),_:1})]),_:1},8,["text"])],2)]))}});exports.default=w;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as I, useId as z, ref as c, computed as n, watch as S, onMounted as N, onBeforeUnmount as W, openBlock as d, createElementBlock as T, toDisplayString as g, createCommentVNode as p, createElementVNode as s, normalizeClass as m, createBlock as O, withCtx as f, createVNode as b, withModifiers as V, unref as v } from "vue";
|
|
2
|
-
import { ResizeObserverHelper as F } from "./
|
|
3
|
-
import K from "./
|
|
2
|
+
import { ResizeObserverHelper as F } from "./kongponents226.es.js";
|
|
3
|
+
import K from "./kongponents187.es.js";
|
|
4
4
|
import M from "./kongponents19.es.js";
|
|
5
5
|
import C from "./kongponents24.es.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { KUI_ICON_SIZE_30 as U } from "./
|
|
7
|
+
import { KUI_ICON_SIZE_30 as U } from "./kongponents181.es.js";
|
|
8
8
|
const D = { class: "k-copy" }, H = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "copy-badge-text"
|