@kong/kongponents 9.64.21 → 9.64.22-pr.3447.2d54e3f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kongponents.css +1 -1
- package/dist/kongponents.umd.js +14 -15
- package/dist/kongponents102.cjs +1 -1
- package/dist/kongponents102.es.js +1 -1
- package/dist/kongponents104.cjs +1 -1
- package/dist/kongponents104.es.js +75 -76
- package/dist/kongponents107.cjs +1 -1
- package/dist/kongponents107.es.js +1 -1
- package/dist/kongponents113.cjs +1 -1
- package/dist/kongponents113.es.js +1 -1
- package/dist/kongponents115.cjs +1 -1
- package/dist/kongponents115.es.js +1 -1
- package/dist/kongponents117.cjs +1 -1
- package/dist/kongponents117.es.js +2 -2
- package/dist/kongponents121.cjs +1 -1
- package/dist/kongponents121.es.js +1 -1
- package/dist/kongponents123.cjs +1 -1
- package/dist/kongponents123.es.js +3 -3
- package/dist/kongponents125.cjs +1 -1
- package/dist/kongponents125.es.js +1 -1
- package/dist/kongponents127.cjs +1 -1
- package/dist/kongponents127.es.js +5 -5
- package/dist/kongponents130.cjs +1 -1
- package/dist/kongponents130.es.js +2 -2
- package/dist/kongponents132.cjs +1 -1
- package/dist/kongponents132.es.js +4 -4
- package/dist/kongponents136.cjs +1 -1
- package/dist/kongponents136.es.js +1 -1
- package/dist/kongponents138.cjs +1 -1
- package/dist/kongponents138.es.js +1 -1
- package/dist/kongponents140.cjs +1 -1
- package/dist/kongponents140.es.js +6 -6
- package/dist/kongponents147.cjs +1 -1
- package/dist/kongponents147.es.js +3 -3
- package/dist/kongponents149.cjs +1 -1
- package/dist/kongponents149.es.js +1 -1
- package/dist/kongponents151.cjs +1 -1
- package/dist/kongponents151.es.js +3 -3
- package/dist/kongponents155.cjs +1 -1
- package/dist/kongponents155.es.js +2 -2
- package/dist/kongponents157.cjs +1 -1
- package/dist/kongponents157.es.js +1 -1
- package/dist/kongponents163.cjs +1 -1
- package/dist/kongponents163.es.js +2 -2
- package/dist/kongponents165.cjs +1 -1
- package/dist/kongponents165.es.js +3 -3
- package/dist/kongponents167.cjs +1 -1
- package/dist/kongponents167.es.js +2 -2
- package/dist/kongponents169.cjs +1 -1
- package/dist/kongponents169.es.js +6 -6
- package/dist/kongponents174.cjs +1 -1
- package/dist/kongponents174.es.js +3 -3
- package/dist/kongponents183.cjs +1 -1
- package/dist/kongponents183.es.js +98 -20
- package/dist/kongponents184.cjs +1 -1
- package/dist/kongponents184.es.js +20 -5
- package/dist/kongponents185.cjs +1 -0
- package/dist/kongponents185.es.js +38 -0
- package/dist/kongponents186.cjs +2 -1
- package/dist/kongponents186.es.js +98 -5
- package/dist/kongponents187.cjs +1 -1
- package/dist/kongponents187.es.js +16 -7
- package/dist/kongponents188.cjs +1 -1
- package/dist/kongponents188.es.js +50 -58
- package/dist/kongponents190.cjs +1 -1
- package/dist/kongponents190.es.js +5 -98
- package/dist/kongponents191.cjs +1 -1
- package/dist/kongponents191.es.js +5 -36
- package/dist/kongponents192.cjs +1 -2
- package/dist/kongponents192.es.js +5 -98
- package/dist/kongponents193.cjs +1 -1
- package/dist/kongponents193.es.js +4 -16
- package/dist/kongponents194.cjs +1 -1
- package/dist/kongponents194.es.js +5 -52
- package/dist/kongponents195.cjs +1 -1
- package/dist/kongponents195.es.js +4 -4
- package/dist/kongponents196.cjs +1 -1
- package/dist/kongponents196.es.js +202 -15
- package/dist/kongponents197.cjs +1 -1
- package/dist/kongponents197.es.js +4 -4
- package/dist/kongponents198.cjs +1 -1
- package/dist/kongponents198.es.js +3 -3
- package/dist/kongponents199.cjs +1 -1
- package/dist/kongponents199.es.js +9 -207
- package/dist/kongponents200.cjs +1 -1
- package/dist/kongponents200.es.js +17 -7
- package/dist/kongponents201.cjs +1 -1
- package/dist/kongponents201.es.js +2 -181
- package/dist/kongponents202.cjs +1 -1
- package/dist/kongponents202.es.js +20 -16
- package/dist/kongponents203.cjs +1 -1
- package/dist/kongponents203.es.js +15 -2
- package/dist/kongponents204.cjs +1 -1
- package/dist/kongponents204.es.js +3 -3
- package/dist/kongponents205.cjs +1 -1
- package/dist/kongponents205.es.js +3 -3
- package/dist/kongponents206.cjs +1 -1
- package/dist/kongponents206.es.js +7 -10
- package/dist/kongponents207.cjs +1 -1
- package/dist/kongponents207.es.js +181 -5
- package/dist/kongponents208.cjs +1 -1
- package/dist/kongponents208.es.js +3 -3
- package/dist/kongponents209.cjs +1 -1
- package/dist/kongponents209.es.js +4 -4
- package/dist/kongponents210.cjs +1 -1
- package/dist/kongponents210.es.js +3 -3
- package/dist/kongponents211.cjs +1 -1
- package/dist/kongponents211.es.js +3 -3
- package/dist/kongponents212.cjs +1 -1
- package/dist/kongponents212.es.js +3 -3
- package/dist/kongponents213.cjs +1 -1
- package/dist/kongponents213.es.js +4 -4
- package/dist/kongponents214.cjs +1 -1
- package/dist/kongponents214.es.js +4 -4
- package/dist/kongponents215.cjs +1 -1
- package/dist/kongponents215.es.js +5 -15
- package/dist/kongponents216.cjs +1 -1
- package/dist/kongponents216.es.js +177 -5
- package/dist/kongponents218.cjs +1 -1
- package/dist/kongponents218.es.js +89 -22
- package/dist/kongponents220.cjs +1 -1
- package/dist/kongponents220.es.js +239 -41
- package/dist/kongponents222.cjs +1 -1
- package/dist/kongponents222.es.js +6 -34
- package/dist/kongponents223.cjs +1 -0
- package/dist/kongponents223.es.js +180 -0
- package/dist/kongponents226.cjs +1 -1
- package/dist/kongponents226.es.js +79 -41
- package/dist/kongponents228.cjs +1 -1
- package/dist/kongponents228.es.js +36 -36
- package/dist/kongponents230.cjs +1 -1
- package/dist/kongponents230.es.js +22 -53
- package/dist/kongponents232.cjs +1 -1
- package/dist/kongponents232.es.js +41 -48
- package/dist/kongponents234.cjs +1 -1
- package/dist/kongponents234.es.js +31 -179
- package/dist/kongponents236.cjs +1 -1
- package/dist/kongponents236.es.js +23 -6
- package/dist/kongponents238.cjs +1 -1
- package/dist/kongponents238.es.js +41 -79
- package/dist/kongponents240.cjs +1 -1
- package/dist/kongponents240.es.js +36 -36
- package/dist/kongponents242.cjs +1 -1
- package/dist/kongponents242.es.js +1 -1
- package/dist/kongponents243.cjs +1 -0
- package/dist/kongponents243.es.js +7 -0
- package/dist/kongponents244.cjs +1 -1
- package/dist/kongponents244.es.js +5 -178
- package/dist/kongponents245.cjs +1 -0
- package/dist/kongponents245.es.js +22 -0
- package/dist/kongponents246.cjs +1 -1
- package/dist/kongponents246.es.js +4 -64
- package/dist/{kongponents449.cjs → kongponents247.cjs} +1 -1
- package/dist/kongponents247.es.js +7 -0
- package/dist/kongponents248.cjs +1 -1
- package/dist/kongponents248.es.js +5 -8
- package/dist/kongponents249.cjs +1 -1
- package/dist/kongponents249.es.js +8 -6
- package/dist/kongponents25.cjs +1 -1
- package/dist/kongponents25.es.js +7 -7
- package/dist/kongponents250.cjs +1 -1
- package/dist/kongponents250.es.js +5 -7
- package/dist/kongponents251.cjs +1 -1
- package/dist/kongponents251.es.js +3 -4
- package/dist/kongponents252.cjs +1 -1
- package/dist/kongponents252.es.js +16 -9
- package/dist/kongponents253.cjs +1 -1
- package/dist/kongponents253.es.js +3 -8
- package/dist/kongponents254.cjs +1 -1
- package/dist/kongponents254.es.js +7 -601
- package/dist/kongponents255.cjs +1 -1
- package/dist/kongponents255.es.js +7 -71
- package/dist/kongponents256.cjs +1 -1
- package/dist/kongponents256.es.js +3 -4
- package/dist/kongponents257.cjs +1 -1
- package/dist/kongponents257.es.js +2 -20
- package/dist/kongponents258.cjs +1 -1
- package/dist/kongponents258.es.js +5 -4
- package/dist/kongponents259.cjs +1 -1
- package/dist/kongponents259.es.js +10 -18
- package/dist/kongponents260.cjs +1 -1
- package/dist/kongponents260.es.js +4 -7
- package/dist/kongponents261.cjs +1 -1
- package/dist/kongponents261.es.js +4 -6
- package/dist/kongponents262.cjs +1 -1
- package/dist/kongponents262.es.js +3 -9
- package/dist/kongponents263.cjs +1 -1
- package/dist/kongponents263.es.js +3 -7
- package/dist/kongponents264.cjs +1 -1
- package/dist/kongponents264.es.js +7 -7
- package/dist/kongponents265.cjs +1 -1
- package/dist/kongponents265.es.js +6 -7
- package/dist/kongponents266.cjs +1 -1
- package/dist/kongponents266.es.js +5 -8
- package/dist/kongponents267.cjs +1 -1
- package/dist/kongponents267.es.js +9 -124
- package/dist/kongponents268.cjs +1 -2
- package/dist/kongponents268.es.js +4 -47
- package/dist/kongponents269.cjs +1 -1
- package/dist/kongponents269.es.js +9 -8
- package/dist/kongponents27.cjs +1 -1
- package/dist/kongponents27.es.js +2 -2
- package/dist/kongponents270.cjs +1 -1
- package/dist/kongponents270.es.js +7 -57
- package/dist/kongponents271.cjs +1 -1
- package/dist/kongponents271.es.js +18 -65
- package/dist/kongponents272.cjs +1 -1
- package/dist/kongponents272.es.js +11 -4
- package/dist/kongponents273.cjs +1 -1
- package/dist/kongponents273.es.js +7 -4
- package/dist/kongponents274.cjs +1 -1
- package/dist/kongponents274.es.js +12 -20
- package/dist/kongponents275.cjs +1 -1
- package/dist/kongponents275.es.js +10 -5
- package/dist/kongponents276.cjs +1 -1
- package/dist/kongponents276.es.js +5 -96
- package/dist/kongponents277.cjs +1 -1
- package/dist/kongponents277.es.js +8 -171
- package/dist/kongponents278.cjs +1 -1
- package/dist/kongponents278.es.js +16 -5
- package/dist/kongponents279.cjs +1 -1
- package/dist/kongponents279.es.js +17 -6
- package/dist/kongponents280.cjs +1 -1
- package/dist/kongponents280.es.js +6 -5
- package/dist/kongponents281.cjs +1 -1
- package/dist/kongponents281.es.js +11 -5
- package/dist/kongponents282.cjs +1 -1
- package/dist/kongponents282.es.js +6 -69
- package/dist/kongponents283.cjs +1 -1
- package/dist/kongponents283.es.js +8 -2
- package/dist/kongponents284.cjs +1 -1
- package/dist/kongponents284.es.js +5 -4
- package/dist/kongponents285.cjs +1 -1
- package/dist/kongponents285.es.js +7 -5
- package/dist/kongponents286.cjs +1 -1
- package/dist/kongponents286.es.js +8 -18
- package/dist/kongponents287.cjs +1 -1
- package/dist/kongponents287.es.js +7 -3
- package/dist/kongponents288.cjs +1 -1
- package/dist/kongponents288.es.js +3 -4
- package/dist/kongponents289.cjs +1 -1
- package/dist/kongponents289.es.js +5 -5
- package/dist/kongponents290.cjs +1 -1
- package/dist/kongponents290.es.js +15 -8
- package/dist/kongponents291.cjs +1 -1
- package/dist/kongponents291.es.js +64 -6
- package/dist/kongponents293.cjs +1 -1
- package/dist/kongponents293.es.js +54 -16
- package/dist/kongponents296.cjs +1 -1
- package/dist/kongponents296.es.js +55 -7
- package/dist/kongponents298.cjs +1 -1
- package/dist/kongponents298.es.js +87 -2
- package/dist/kongponents30.cjs +1 -1
- package/dist/kongponents30.es.js +1 -1
- package/dist/kongponents300.cjs +1 -1
- package/dist/kongponents300.es.js +45 -10
- package/dist/kongponents302.cjs +1 -1
- package/dist/kongponents302.es.js +5 -4
- package/dist/kongponents303.cjs +1 -1
- package/dist/kongponents303.es.js +121 -3
- package/dist/kongponents305.cjs +1 -1
- package/dist/kongponents305.es.js +7 -7
- package/dist/kongponents306.cjs +1 -1
- package/dist/kongponents306.es.js +5 -6
- package/dist/kongponents307.cjs +1 -1
- package/dist/kongponents307.es.js +9 -5
- package/dist/kongponents308.cjs +1 -1
- package/dist/kongponents308.es.js +5 -9
- package/dist/kongponents309.cjs +1 -1
- package/dist/kongponents309.es.js +8 -4
- package/dist/kongponents310.cjs +1 -1
- package/dist/kongponents310.es.js +15 -9
- package/dist/kongponents311.cjs +1 -1
- package/dist/kongponents311.es.js +3 -7
- package/dist/kongponents312.cjs +1 -1
- package/dist/kongponents312.es.js +7 -17
- package/dist/kongponents313.cjs +1 -1
- package/dist/kongponents313.es.js +3 -12
- package/dist/kongponents314.cjs +1 -1
- package/dist/kongponents314.es.js +10 -6
- package/dist/kongponents315.cjs +1 -1
- package/dist/kongponents315.es.js +7 -12
- package/dist/kongponents316.cjs +1 -1
- package/dist/kongponents316.es.js +5 -9
- package/dist/kongponents317.cjs +1 -1
- package/dist/kongponents317.es.js +2 -6
- package/dist/kongponents318.cjs +1 -1
- package/dist/kongponents318.es.js +12 -8
- package/dist/kongponents319.cjs +1 -1
- package/dist/kongponents319.es.js +4 -15
- package/dist/kongponents32.cjs +1 -1
- package/dist/kongponents32.es.js +3 -3
- package/dist/kongponents320.cjs +1 -1
- package/dist/kongponents320.es.js +3 -18
- package/dist/kongponents321.cjs +1 -1
- package/dist/kongponents321.es.js +26 -6
- package/dist/kongponents322.cjs +1 -1
- package/dist/kongponents322.es.js +4 -11
- package/dist/kongponents323.cjs +1 -1
- package/dist/kongponents323.es.js +4 -7
- package/dist/kongponents324.cjs +1 -1
- package/dist/kongponents324.es.js +4 -8
- package/dist/kongponents325.cjs +1 -1
- package/dist/kongponents325.es.js +4 -6
- package/dist/kongponents326.cjs +1 -1
- package/dist/kongponents326.es.js +4 -7
- package/dist/kongponents327.cjs +1 -1
- package/dist/kongponents327.es.js +14 -9
- package/dist/kongponents328.cjs +1 -1
- package/dist/kongponents328.es.js +5 -7
- package/dist/kongponents329.cjs +1 -1
- package/dist/kongponents329.es.js +29 -3
- package/dist/kongponents330.cjs +1 -1
- package/dist/kongponents330.es.js +26 -5
- package/dist/kongponents331.cjs +1 -1
- package/dist/kongponents331.es.js +15 -15
- package/dist/kongponents332.cjs +1 -1
- package/dist/kongponents332.es.js +9 -86
- package/dist/{kongponents438.cjs → kongponents333.cjs} +1 -1
- package/dist/{kongponents438.es.js → kongponents333.es.js} +1 -1
- package/dist/kongponents334.cjs +1 -1
- package/dist/kongponents334.es.js +14 -45
- package/dist/{kongponents440.cjs → kongponents335.cjs} +1 -1
- package/dist/{kongponents440.es.js → kongponents335.es.js} +1 -1
- package/dist/kongponents336.cjs +1 -1
- package/dist/kongponents336.es.js +3 -91
- package/dist/kongponents338.cjs +1 -1
- package/dist/kongponents338.es.js +6 -246
- package/dist/kongponents340.cjs +1 -1
- package/dist/kongponents340.es.js +6 -2
- package/dist/kongponents341.cjs +1 -1
- package/dist/kongponents341.es.js +8 -5
- package/dist/kongponents342.cjs +1 -1
- package/dist/kongponents342.es.js +7 -2
- package/dist/kongponents343.cjs +1 -1
- package/dist/kongponents343.es.js +10 -11
- package/dist/kongponents344.cjs +1 -1
- package/dist/kongponents344.es.js +6 -10
- package/dist/kongponents345.cjs +1 -1
- package/dist/kongponents345.es.js +10 -12
- package/dist/kongponents346.cjs +1 -1
- package/dist/kongponents346.es.js +5 -10
- package/dist/kongponents347.cjs +1 -1
- package/dist/kongponents347.es.js +4 -18
- package/dist/kongponents348.cjs +1 -1
- package/dist/kongponents348.es.js +4 -5
- package/dist/kongponents349.cjs +1 -1
- package/dist/kongponents349.es.js +6 -54
- package/dist/kongponents350.cjs +1 -1
- package/dist/kongponents350.es.js +20 -7
- package/dist/kongponents351.cjs +1 -1
- package/dist/kongponents351.es.js +6 -4
- package/dist/kongponents352.cjs +1 -1
- package/dist/kongponents352.es.js +6 -13
- package/dist/kongponents353.cjs +1 -1
- package/dist/kongponents353.es.js +6 -14
- package/dist/kongponents354.cjs +1 -1
- package/dist/kongponents354.es.js +8 -3
- package/dist/kongponents355.cjs +1 -1
- package/dist/kongponents355.es.js +2 -13
- package/dist/kongponents356.cjs +1 -1
- package/dist/kongponents356.es.js +5 -10
- package/dist/kongponents357.cjs +1 -1
- package/dist/kongponents357.es.js +93 -52
- package/dist/kongponents359.cjs +1 -1
- package/dist/kongponents359.es.js +7 -59
- package/dist/kongponents360.cjs +1 -1
- package/dist/kongponents360.es.js +17 -32
- package/dist/kongponents361.cjs +1 -1
- package/dist/kongponents361.es.js +5 -31
- package/dist/kongponents362.cjs +1 -1
- package/dist/kongponents362.es.js +5 -72
- package/dist/kongponents363.cjs +1 -1
- package/dist/kongponents363.es.js +4 -72
- package/dist/kongponents364.cjs +1 -1
- package/dist/kongponents364.es.js +4 -78
- package/dist/kongponents365.cjs +1 -1
- package/dist/kongponents365.es.js +14 -77
- package/dist/kongponents366.cjs +1 -1
- package/dist/kongponents366.es.js +7 -48
- package/dist/kongponents367.cjs +1 -1
- package/dist/kongponents367.es.js +8 -48
- package/dist/kongponents368.cjs +1 -1
- package/dist/kongponents368.es.js +11 -47
- package/dist/kongponents369.cjs +1 -1
- package/dist/kongponents369.es.js +5 -48
- package/dist/kongponents370.cjs +1 -1
- package/dist/kongponents370.es.js +4 -80
- package/dist/kongponents371.cjs +1 -1
- package/dist/kongponents371.es.js +4 -92
- package/dist/kongponents372.cjs +1 -1
- package/dist/kongponents372.es.js +36 -90
- package/dist/kongponents373.cjs +1 -1
- package/dist/kongponents373.es.js +42 -90
- package/dist/kongponents374.cjs +1 -1
- package/dist/kongponents374.es.js +32 -56
- package/dist/kongponents375.cjs +1 -1
- package/dist/kongponents375.es.js +3 -58
- package/dist/kongponents376.cjs +1 -1
- package/dist/kongponents376.es.js +17 -57
- package/dist/kongponents377.cjs +1 -1
- package/dist/kongponents377.es.js +6 -47
- package/dist/kongponents378.cjs +1 -1
- package/dist/kongponents378.es.js +4 -46
- package/dist/kongponents379.cjs +1 -1
- package/dist/kongponents379.es.js +4 -47
- package/dist/kongponents380.cjs +1 -1
- package/dist/kongponents380.es.js +10 -47
- package/dist/kongponents381.cjs +1 -1
- package/dist/kongponents381.es.js +6 -46
- package/dist/kongponents382.cjs +1 -1
- package/dist/kongponents382.es.js +5 -46
- package/dist/kongponents383.cjs +1 -1
- package/dist/kongponents383.es.js +6 -34
- package/dist/kongponents384.cjs +1 -1
- package/dist/kongponents384.es.js +3 -43
- package/dist/kongponents385.cjs +1 -1
- package/dist/kongponents385.es.js +5 -43
- package/dist/kongponents386.cjs +1 -1
- package/dist/kongponents386.es.js +5 -33
- package/dist/kongponents387.cjs +1 -1
- package/dist/kongponents387.es.js +10 -32
- package/dist/kongponents388.cjs +1 -1
- package/dist/kongponents388.es.js +6 -71
- package/dist/kongponents389.cjs +1 -1
- package/dist/kongponents389.es.js +7 -2
- package/dist/kongponents390.cjs +1 -1
- package/dist/kongponents390.es.js +4 -12
- package/dist/kongponents391.cjs +1 -1
- package/dist/kongponents391.es.js +7 -22
- package/dist/kongponents392.cjs +1 -1
- package/dist/kongponents392.es.js +3 -22
- package/dist/kongponents48.cjs +1 -1
- package/dist/kongponents48.es.js +2 -2
- package/dist/kongponents80.cjs +1 -1
- package/dist/kongponents80.es.js +1 -1
- package/dist/kongponents91.cjs +1 -1
- package/dist/kongponents91.es.js +1 -1
- package/dist/kongponents95.cjs +1 -1
- package/dist/kongponents95.es.js +1 -1
- package/dist/kongponents97.cjs +1 -1
- package/dist/kongponents97.es.js +5 -5
- package/package.json +37 -38
- package/dist/kongponents189.cjs +0 -1
- package/dist/kongponents189.es.js +0 -7
- package/dist/kongponents217.cjs +0 -1
- package/dist/kongponents217.es.js +0 -7
- package/dist/kongponents224.cjs +0 -1
- package/dist/kongponents224.es.js +0 -25
- package/dist/kongponents292.cjs +0 -1
- package/dist/kongponents292.es.js +0 -6
- package/dist/kongponents294.cjs +0 -1
- package/dist/kongponents294.es.js +0 -6
- package/dist/kongponents295.cjs +0 -1
- package/dist/kongponents295.es.js +0 -10
- package/dist/kongponents297.cjs +0 -1
- package/dist/kongponents297.es.js +0 -6
- package/dist/kongponents299.cjs +0 -1
- package/dist/kongponents299.es.js +0 -8
- package/dist/kongponents301.cjs +0 -1
- package/dist/kongponents301.es.js +0 -7
- package/dist/kongponents304.cjs +0 -1
- package/dist/kongponents304.es.js +0 -6
- package/dist/kongponents358.cjs +0 -1
- package/dist/kongponents358.es.js +0 -59
- package/dist/kongponents393.cjs +0 -1
- package/dist/kongponents393.es.js +0 -23
- package/dist/kongponents394.cjs +0 -1
- package/dist/kongponents394.es.js +0 -617
- package/dist/kongponents395.cjs +0 -1
- package/dist/kongponents395.es.js +0 -83
- package/dist/kongponents396.cjs +0 -1
- package/dist/kongponents396.es.js +0 -17
- package/dist/kongponents397.cjs +0 -1
- package/dist/kongponents397.es.js +0 -29
- package/dist/kongponents398.cjs +0 -1
- package/dist/kongponents398.es.js +0 -19
- package/dist/kongponents399.cjs +0 -1
- package/dist/kongponents399.es.js +0 -17
- package/dist/kongponents400.cjs +0 -1
- package/dist/kongponents400.es.js +0 -19
- package/dist/kongponents401.cjs +0 -1
- package/dist/kongponents401.es.js +0 -17
- package/dist/kongponents402.cjs +0 -1
- package/dist/kongponents402.es.js +0 -26
- package/dist/kongponents403.cjs +0 -1
- package/dist/kongponents403.es.js +0 -20
- package/dist/kongponents404.cjs +0 -1
- package/dist/kongponents404.es.js +0 -4
- package/dist/kongponents405.cjs +0 -1
- package/dist/kongponents405.es.js +0 -20
- package/dist/kongponents406.cjs +0 -1
- package/dist/kongponents406.es.js +0 -67
- package/dist/kongponents407.cjs +0 -1
- package/dist/kongponents407.es.js +0 -7
- package/dist/kongponents408.cjs +0 -1
- package/dist/kongponents408.es.js +0 -4
- package/dist/kongponents409.cjs +0 -1
- package/dist/kongponents409.es.js +0 -4
- package/dist/kongponents410.cjs +0 -1
- package/dist/kongponents410.es.js +0 -10
- package/dist/kongponents411.cjs +0 -1
- package/dist/kongponents411.es.js +0 -8
- package/dist/kongponents412.cjs +0 -1
- package/dist/kongponents412.es.js +0 -11
- package/dist/kongponents413.cjs +0 -1
- package/dist/kongponents413.es.js +0 -8
- package/dist/kongponents414.cjs +0 -1
- package/dist/kongponents414.es.js +0 -12
- package/dist/kongponents415.cjs +0 -1
- package/dist/kongponents415.es.js +0 -17
- package/dist/kongponents416.cjs +0 -1
- package/dist/kongponents416.es.js +0 -5
- package/dist/kongponents417.cjs +0 -1
- package/dist/kongponents417.es.js +0 -10
- package/dist/kongponents418.cjs +0 -1
- package/dist/kongponents418.es.js +0 -5
- package/dist/kongponents419.cjs +0 -1
- package/dist/kongponents419.es.js +0 -13
- package/dist/kongponents420.cjs +0 -1
- package/dist/kongponents420.es.js +0 -10
- package/dist/kongponents421.cjs +0 -1
- package/dist/kongponents421.es.js +0 -8
- package/dist/kongponents422.cjs +0 -1
- package/dist/kongponents422.es.js +0 -4
- package/dist/kongponents423.cjs +0 -1
- package/dist/kongponents423.es.js +0 -15
- package/dist/kongponents424.cjs +0 -1
- package/dist/kongponents424.es.js +0 -7
- package/dist/kongponents425.cjs +0 -1
- package/dist/kongponents425.es.js +0 -5
- package/dist/kongponents426.cjs +0 -1
- package/dist/kongponents426.es.js +0 -28
- package/dist/kongponents427.cjs +0 -1
- package/dist/kongponents427.es.js +0 -6
- package/dist/kongponents428.cjs +0 -1
- package/dist/kongponents428.es.js +0 -6
- package/dist/kongponents429.cjs +0 -1
- package/dist/kongponents429.es.js +0 -6
- package/dist/kongponents430.cjs +0 -1
- package/dist/kongponents430.es.js +0 -6
- package/dist/kongponents431.cjs +0 -1
- package/dist/kongponents431.es.js +0 -6
- package/dist/kongponents432.cjs +0 -1
- package/dist/kongponents432.es.js +0 -17
- package/dist/kongponents433.cjs +0 -1
- package/dist/kongponents433.es.js +0 -8
- package/dist/kongponents434.cjs +0 -1
- package/dist/kongponents434.es.js +0 -32
- package/dist/kongponents435.cjs +0 -1
- package/dist/kongponents435.es.js +0 -29
- package/dist/kongponents436.cjs +0 -1
- package/dist/kongponents436.es.js +0 -18
- package/dist/kongponents437.cjs +0 -1
- package/dist/kongponents437.es.js +0 -12
- package/dist/kongponents439.cjs +0 -1
- package/dist/kongponents439.es.js +0 -16
- package/dist/kongponents441.cjs +0 -1
- package/dist/kongponents441.es.js +0 -5
- package/dist/kongponents443.cjs +0 -1
- package/dist/kongponents443.es.js +0 -8
- package/dist/kongponents445.cjs +0 -1
- package/dist/kongponents445.es.js +0 -8
- package/dist/kongponents446.cjs +0 -1
- package/dist/kongponents446.es.js +0 -13
- package/dist/kongponents447.cjs +0 -1
- package/dist/kongponents447.es.js +0 -8
- package/dist/kongponents448.cjs +0 -1
- package/dist/kongponents448.es.js +0 -7
- package/dist/kongponents449.es.js +0 -7
- package/dist/kongponents450.cjs +0 -1
- package/dist/kongponents450.es.js +0 -8
- package/dist/kongponents451.cjs +0 -1
- package/dist/kongponents451.es.js +0 -10
- package/dist/kongponents452.cjs +0 -1
- package/dist/kongponents452.es.js +0 -9
- package/dist/kongponents453.cjs +0 -1
- package/dist/kongponents453.es.js +0 -12
- package/dist/kongponents454.cjs +0 -1
- package/dist/kongponents454.es.js +0 -9
- package/dist/kongponents455.cjs +0 -1
- package/dist/kongponents455.es.js +0 -24
- package/dist/kongponents456.cjs +0 -1
- package/dist/kongponents456.es.js +0 -9
- package/dist/kongponents457.cjs +0 -1
- package/dist/kongponents457.es.js +0 -9
- package/dist/kongponents458.cjs +0 -1
- package/dist/kongponents458.es.js +0 -9
- package/dist/kongponents459.cjs +0 -1
- package/dist/kongponents459.es.js +0 -11
- package/dist/kongponents460.cjs +0 -1
- package/dist/kongponents460.es.js +0 -96
- package/dist/kongponents462.cjs +0 -1
- package/dist/kongponents462.es.js +0 -7
- package/dist/kongponents463.cjs +0 -1
- package/dist/kongponents463.es.js +0 -123
- package/dist/kongponents465.cjs +0 -1
- package/dist/kongponents465.es.js +0 -69
- package/dist/kongponents466.cjs +0 -1
- package/dist/kongponents466.es.js +0 -33
- package/dist/kongponents467.cjs +0 -1
- package/dist/kongponents467.es.js +0 -13
- package/dist/kongponents468.cjs +0 -1
- package/dist/kongponents468.es.js +0 -123
- package/dist/kongponents469.cjs +0 -1
- package/dist/kongponents469.es.js +0 -88
- package/dist/kongponents470.cjs +0 -1
- package/dist/kongponents470.es.js +0 -10
- package/dist/kongponents471.cjs +0 -1
- package/dist/kongponents471.es.js +0 -13
- package/dist/kongponents472.cjs +0 -1
- package/dist/kongponents472.es.js +0 -16
- package/dist/kongponents473.cjs +0 -1
- package/dist/kongponents473.es.js +0 -16
- package/dist/kongponents474.cjs +0 -1
- package/dist/kongponents474.es.js +0 -8
- package/dist/kongponents475.cjs +0 -1
- package/dist/kongponents475.es.js +0 -8
- package/dist/kongponents476.cjs +0 -1
- package/dist/kongponents476.es.js +0 -8
- package/dist/kongponents477.cjs +0 -1
- package/dist/kongponents477.es.js +0 -13
- package/dist/kongponents478.cjs +0 -1
- package/dist/kongponents478.es.js +0 -10
- package/dist/kongponents479.cjs +0 -1
- package/dist/kongponents479.es.js +0 -9
- package/dist/kongponents480.cjs +0 -1
- package/dist/kongponents480.es.js +0 -27
- package/dist/kongponents481.cjs +0 -1
- package/dist/kongponents481.es.js +0 -99
- package/dist/kongponents482.cjs +0 -1
- package/dist/kongponents482.es.js +0 -49
- package/dist/kongponents483.cjs +0 -1
- package/dist/kongponents483.es.js +0 -12
- package/dist/kongponents484.cjs +0 -1
- package/dist/kongponents484.es.js +0 -12
- package/dist/kongponents485.cjs +0 -1
- package/dist/kongponents485.es.js +0 -16
- package/dist/kongponents486.cjs +0 -1
- package/dist/kongponents486.es.js +0 -13
- package/dist/kongponents487.cjs +0 -1
- package/dist/kongponents487.es.js +0 -4
- package/dist/kongponents488.cjs +0 -1
- package/dist/kongponents488.es.js +0 -4
- package/dist/kongponents489.cjs +0 -1
- package/dist/kongponents489.es.js +0 -4
- package/dist/kongponents490.cjs +0 -1
- package/dist/kongponents490.es.js +0 -21
- package/dist/kongponents491.cjs +0 -1
- package/dist/kongponents491.es.js +0 -4
- package/dist/kongponents492.cjs +0 -1
- package/dist/kongponents492.es.js +0 -24
- package/dist/kongponents493.cjs +0 -1
- package/dist/kongponents493.es.js +0 -4
- package/dist/kongponents494.cjs +0 -1
- package/dist/kongponents494.es.js +0 -18
- package/dist/kongponents495.cjs +0 -1
- package/dist/kongponents495.es.js +0 -4
- package/dist/kongponents496.cjs +0 -1
- package/dist/kongponents496.es.js +0 -25
- package/dist/kongponents497.cjs +0 -1
- package/dist/kongponents497.es.js +0 -25
- package/dist/kongponents498.cjs +0 -1
- package/dist/kongponents498.es.js +0 -28
- package/dist/kongponents499.cjs +0 -1
- package/dist/kongponents499.es.js +0 -25
- package/dist/kongponents500.cjs +0 -1
- package/dist/kongponents500.es.js +0 -34
- package/dist/kongponents501.cjs +0 -1
- package/dist/kongponents501.es.js +0 -18
- package/dist/kongponents502.cjs +0 -1
- package/dist/kongponents502.es.js +0 -68
- package/dist/kongponents503.cjs +0 -1
- package/dist/kongponents503.es.js +0 -4
- package/dist/kongponents504.cjs +0 -1
- package/dist/kongponents504.es.js +0 -4
- package/dist/kongponents505.cjs +0 -1
- package/dist/kongponents505.es.js +0 -4
- package/dist/kongponents506.cjs +0 -1
- package/dist/kongponents506.es.js +0 -4
- package/dist/kongponents507.cjs +0 -1
- package/dist/kongponents507.es.js +0 -4
- package/dist/kongponents508.cjs +0 -1
- package/dist/kongponents508.es.js +0 -32
- package/dist/kongponents509.cjs +0 -1
- package/dist/kongponents509.es.js +0 -6
- package/dist/kongponents510.cjs +0 -1
- package/dist/kongponents510.es.js +0 -9
- package/dist/kongponents511.cjs +0 -1
- package/dist/kongponents511.es.js +0 -20
- package/dist/kongponents512.cjs +0 -1
- package/dist/kongponents512.es.js +0 -7
- package/dist/kongponents513.cjs +0 -1
- package/dist/kongponents513.es.js +0 -7
- package/dist/kongponents514.cjs +0 -1
- package/dist/kongponents514.es.js +0 -6
- package/dist/kongponents515.cjs +0 -1
- package/dist/kongponents515.es.js +0 -6
- package/dist/kongponents516.cjs +0 -1
- package/dist/kongponents516.es.js +0 -17
- package/dist/kongponents517.cjs +0 -1
- package/dist/kongponents517.es.js +0 -9
- package/dist/kongponents518.cjs +0 -1
- package/dist/kongponents518.es.js +0 -10
- package/dist/kongponents519.cjs +0 -1
- package/dist/kongponents519.es.js +0 -13
- package/dist/kongponents520.cjs +0 -1
- package/dist/kongponents520.es.js +0 -7
- package/dist/kongponents521.cjs +0 -1
- package/dist/kongponents521.es.js +0 -6
- package/dist/kongponents522.cjs +0 -1
- package/dist/kongponents522.es.js +0 -6
- package/dist/kongponents523.cjs +0 -1
- package/dist/kongponents523.es.js +0 -40
- package/dist/kongponents524.cjs +0 -1
- package/dist/kongponents524.es.js +0 -45
- package/dist/kongponents525.cjs +0 -1
- package/dist/kongponents525.es.js +0 -36
- package/dist/kongponents526.cjs +0 -1
- package/dist/kongponents526.es.js +0 -5
- package/dist/kongponents527.cjs +0 -1
- package/dist/kongponents527.es.js +0 -20
- package/dist/kongponents528.cjs +0 -1
- package/dist/kongponents528.es.js +0 -8
- package/dist/kongponents529.cjs +0 -1
- package/dist/kongponents529.es.js +0 -9
- package/dist/kongponents530.cjs +0 -1
- package/dist/kongponents530.es.js +0 -17
- package/dist/kongponents531.cjs +0 -1
- package/dist/kongponents531.es.js +0 -31
- package/dist/kongponents532.cjs +0 -1
- package/dist/kongponents532.es.js +0 -18
- package/dist/kongponents533.cjs +0 -1
- package/dist/kongponents533.es.js +0 -14
- package/dist/kongponents534.cjs +0 -1
- package/dist/kongponents534.es.js +0 -4
- package/dist/kongponents535.cjs +0 -1
- package/dist/kongponents535.es.js +0 -4
- package/dist/kongponents536.cjs +0 -1
- package/dist/kongponents536.es.js +0 -4
- package/dist/kongponents537.cjs +0 -1
- package/dist/kongponents537.es.js +0 -4
- package/dist/kongponents538.cjs +0 -1
- package/dist/kongponents538.es.js +0 -4
- package/dist/kongponents539.cjs +0 -1
- package/dist/kongponents539.es.js +0 -23
- package/dist/kongponents540.cjs +0 -1
- package/dist/kongponents540.es.js +0 -26
- package/dist/kongponents541.cjs +0 -1
- package/dist/kongponents541.es.js +0 -4
- package/dist/kongponents542.cjs +0 -1
- package/dist/kongponents542.es.js +0 -4
- package/dist/kongponents543.cjs +0 -1
- package/dist/kongponents543.es.js +0 -29
- package/dist/kongponents544.cjs +0 -1
- package/dist/kongponents544.es.js +0 -29
- package/dist/kongponents545.cjs +0 -1
- package/dist/kongponents545.es.js +0 -4
- package/dist/kongponents546.cjs +0 -1
- package/dist/kongponents546.es.js +0 -4
- package/dist/kongponents547.cjs +0 -1
- package/dist/kongponents547.es.js +0 -4
- package/dist/kongponents548.cjs +0 -1
- package/dist/kongponents548.es.js +0 -4
- package/dist/kongponents549.cjs +0 -1
- package/dist/kongponents549.es.js +0 -79
- package/dist/kongponents550.cjs +0 -1
- package/dist/kongponents550.es.js +0 -45
- package/dist/kongponents551.cjs +0 -1
- package/dist/kongponents551.es.js +0 -23
- package/dist/kongponents552.cjs +0 -1
- package/dist/kongponents552.es.js +0 -135
- package/dist/kongponents553.cjs +0 -1
- package/dist/kongponents553.es.js +0 -100
- package/dist/kongponents554.cjs +0 -1
- package/dist/kongponents554.es.js +0 -6
- package/dist/kongponents555.cjs +0 -1
- package/dist/kongponents555.es.js +0 -6
- package/dist/kongponents556.cjs +0 -1
- package/dist/kongponents556.es.js +0 -12
- package/dist/kongponents557.cjs +0 -1
- package/dist/kongponents557.es.js +0 -8
- package/dist/kongponents558.cjs +0 -1
- package/dist/kongponents558.es.js +0 -7
- package/dist/kongponents559.cjs +0 -1
- package/dist/kongponents559.es.js +0 -8
- package/dist/kongponents560.cjs +0 -1
- package/dist/kongponents560.es.js +0 -5
- package/dist/kongponents561.cjs +0 -1
- package/dist/kongponents561.es.js +0 -7
- package/dist/kongponents562.cjs +0 -1
- package/dist/kongponents562.es.js +0 -7
- package/dist/kongponents563.cjs +0 -1
- package/dist/kongponents563.es.js +0 -7
- package/dist/kongponents564.cjs +0 -1
- package/dist/kongponents564.es.js +0 -13
- package/dist/kongponents565.cjs +0 -1
- package/dist/kongponents565.es.js +0 -9
- package/dist/kongponents566.cjs +0 -1
- package/dist/kongponents566.es.js +0 -9
- package/dist/kongponents567.cjs +0 -1
- package/dist/kongponents567.es.js +0 -4
- package/dist/kongponents568.cjs +0 -1
- package/dist/kongponents568.es.js +0 -4
- package/dist/kongponents569.cjs +0 -1
- package/dist/kongponents569.es.js +0 -4
- package/dist/kongponents570.cjs +0 -1
- package/dist/kongponents570.es.js +0 -4
- package/dist/kongponents571.cjs +0 -1
- package/dist/kongponents571.es.js +0 -4
- package/dist/kongponents572.cjs +0 -1
- package/dist/kongponents572.es.js +0 -4
- package/dist/kongponents573.cjs +0 -1
- package/dist/kongponents573.es.js +0 -19
- package/dist/kongponents574.cjs +0 -1
- package/dist/kongponents574.es.js +0 -4
- package/dist/kongponents575.cjs +0 -1
- package/dist/kongponents575.es.js +0 -4
- package/dist/kongponents576.cjs +0 -1
- package/dist/kongponents576.es.js +0 -27
- package/dist/kongponents577.cjs +0 -1
- package/dist/kongponents577.es.js +0 -4
- package/dist/kongponents578.cjs +0 -1
- package/dist/kongponents578.es.js +0 -41
- package/dist/kongponents579.cjs +0 -1
- package/dist/kongponents579.es.js +0 -28
- package/dist/kongponents580.cjs +0 -1
- package/dist/kongponents580.es.js +0 -10
- package/dist/kongponents581.cjs +0 -1
- package/dist/kongponents581.es.js +0 -5
- package/dist/kongponents582.cjs +0 -1
- package/dist/kongponents582.es.js +0 -4
- package/dist/kongponents583.cjs +0 -1
- package/dist/kongponents583.es.js +0 -4
- package/dist/kongponents584.cjs +0 -1
- package/dist/kongponents584.es.js +0 -4
- package/dist/kongponents585.cjs +0 -1
- package/dist/kongponents585.es.js +0 -4
- /package/dist/{kongponents237.cjs → kongponents225.cjs} +0 -0
- /package/dist/{kongponents237.es.js → kongponents225.es.js} +0 -0
- /package/dist/{kongponents442.cjs → kongponents337.cjs} +0 -0
- /package/dist/{kongponents442.es.js → kongponents337.es.js} +0 -0
- /package/dist/{kongponents444.cjs → kongponents339.cjs} +0 -0
- /package/dist/{kongponents444.es.js → kongponents339.es.js} +0 -0
package/dist/kongponents102.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@kong/icons"),f=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@kong/icons"),f=require("./kongponents184.cjs"),h={class:"k-collapse"},C={class:"collapse-trigger"},b=["aria-controls","aria-expanded","aria-label"],V={key:0,class:"collapse-trigger-label","data-testid":"collapse-trigger-label"},k={key:0,class:"collapse-visible-content","data-testid":"collapse-visible-content"},S=["id"],N=e.defineComponent({__name:"KCollapse",props:{modelValue:{type:Boolean,default:!0},title:{default:""},titleTag:{default:"div"},triggerLabel:{default:""},triggerAlignment:{default:"trailing"}},emits:["toggle","update:modelValue"],setup(l,{emit:c}){const r=c,u=e.useSlots(),d=e.useId(),o=e.ref(!0),s=e.ref(!1),g=e.computed(()=>l.triggerAlignment==="trailing"),m=()=>!!u["visible-content"],v=e.computed({get(){return l.modelValue},set(t){i(t)}}),a=e.computed(()=>s.value?o.value:l.modelValue),i=t=>{s.value||(o.value=l.modelValue),o.value=t!==void 0?t:!o.value,s.value=!0,r("toggle",o.value),r("update:modelValue",o.value)};return e.watch(v,(t,n)=>{t!==n&&i(t)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{class:e.normalizeClass(["collapse-heading",{"has-trailing-trigger":g.value}])},[l.title||t.$slots.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.titleTag),{key:0,class:"collapse-title","data-testid":"collapse-title"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(l.title),1)],!0)]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",C,[e.renderSlot(t.$slots,"trigger",{isCollapsed:a.value,toggle:i},()=>[e.createElementVNode("button",{"aria-controls":e.unref(d),"aria-expanded":!a.value,"aria-label":l.triggerLabel?void 0:"Toggle content",class:"collapse-trigger-content","data-testid":"collapse-trigger-content",type:"button",onClick:n[0]||(n[0]=e.withModifiers(y=>i(),["prevent","stop"]))},[e.renderSlot(t.$slots,"trigger-content",{},()=>[e.createVNode(e.unref(p.ChevronRightIcon),{class:e.normalizeClass(["collapse-trigger-icon",{"collapse-expanded":!a.value}]),"data-testid":"collapse-trigger-icon",decorative:"",size:`var(--kui-icon-size-40, ${e.unref(f.KUI_ICON_SIZE_40)})`},null,8,["class","size"]),l.triggerLabel?(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(l.triggerLabel),1)):e.createCommentVNode("",!0)],!0)],8,b)],!0)])],2),m()?(e.openBlock(),e.createElementBlock("div",k,[e.renderSlot(t.$slots,"visible-content",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:e.unref(d),class:"collapse-hidden-content","data-testid":"collapse-hidden-content"},[e.renderSlot(t.$slots,"default",{},void 0,!0)],8,S),[[e.vShow,!a.value]])]),_:3})]))}});exports.default=N;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, useSlots as T, useId as w, ref as f, computed as g, watch as z, openBlock as n, createElementBlock as u, createElementVNode as r, normalizeClass as h, createBlock as B, resolveDynamicComponent as D, withCtx as b, renderSlot as a, createTextVNode as L, toDisplayString as C, createCommentVNode as v, withModifiers as E, unref as d, createVNode as V, Transition as A, withDirectives as K, vShow as x } from "vue";
|
|
2
2
|
import { ChevronRightIcon as M } from "@kong/icons";
|
|
3
|
-
import { KUI_ICON_SIZE_40 as O } from "./
|
|
3
|
+
import { KUI_ICON_SIZE_40 as O } from "./kongponents184.es.js";
|
|
4
4
|
const R = { class: "k-collapse" }, U = { class: "collapse-trigger" }, Z = ["aria-controls", "aria-expanded", "aria-label"], j = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "collapse-trigger-label",
|
package/dist/kongponents104.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("date-fns"),C=require("./kongponents38.cjs"),F=require("./kongponents62.cjs"),L=require("./kongponents65.cjs");;/* empty css */require("./kongponents7.cjs");const R=require("./kongponents12.cjs"),Z=require("@kong/icons"),N=require("./kongponents184.cjs"),W=require("./kongponents182.cjs"),G=require("./kongponents190.cjs"),H=["tabindex"],j=["innerHTML"],X={key:1,class:"range-display"},J={key:3,class:"relative-periods-container"},Q={class:"timeframe-section-title"},Y={class:"timeframe-buttons"},_={class:"datetime-picker-footer-container"},ee=e.defineComponent({__name:"KDateTimePicker",props:{clearButton:{type:Boolean},icon:{type:Boolean,default:!0},modelValue:{default:()=>({start:null,end:null})},maxDate:{default:()=>{}},minDate:{default:()=>{}},mode:{},placeholder:{default:"Select a time range"},range:{type:Boolean},timePeriods:{default:()=>[]},width:{default:"100%"},disabled:{type:Boolean},readonly:{type:Boolean},popoverPlacement:{default:"bottom-start"},invalidTimeErrorMessage:{default:"Start time cannot exceed end time."},timeGranularity:{default:"minutely"},sameDayFullRange:{type:Boolean,default:!1},customRangeValidation:{type:Function}},emits:["change","update:modelValue"],setup(a,{emit:q}){const c=q,S=e.ref(null),D=e.computed(()=>a.mode!==R.DateTimePickerModes.Relative),d=e.computed(()=>R.ModeArrayCustom.includes(a.mode)&&!a.range),s=e.computed(()=>a.timePeriods.length>0),m=e.computed(()=>t.tabName==="custom"||!s.value),y=e.ref(!0),T=e.ref(!1),w=e.ref(0),h={start:null,end:null},g=e.ref(a.modelValue.start||null),u=e.ref(a.modelValue||h),B=d.value?g:u,k=e.useTemplateRef("calendarWrapperRef"),V=e.computed(()=>({width:W.normalizeSize(a.width)})),K=Intl.DateTimeFormat().resolvedOptions().timeZone,t=e.reactive({abbreviatedDisplay:a.placeholder,fullRangeDisplay:"",popoverOpen:!1,selectedRange:{start:new Date,end:new Date},previouslySelectedRange:{start:new Date,end:new Date},selectedTimeframe:a.timePeriods[0]?.values[0]||null,previouslySelectedTimeframe:a.timePeriods[0]?.values[0]||null,tabName:"relative"}),b=l=>{if(!l)return;const n=d.value?!l.start:!l.start||!l.end,i=l?.start||new Date,o=l?.end||null;y.value=!!n,!d.value&&l&&l.start&&l.end?(u.value.start=i,u.value.end=o):l&&l.start&&(g.value=i),t.selectedRange=t.previouslySelectedRange={start:i,end:o}},P=(l,n=!1)=>{if(l){if(t.selectedTimeframe=t.previouslySelectedTimeframe=l,t.selectedRange={timePeriodsKey:t.selectedTimeframe.key},t.selectedTimeframe.start&&t.selectedTimeframe.end){const i=new Date(t.selectedTimeframe.start()),o=new Date(t.selectedTimeframe.end());t.fullRangeDisplay=$({start:i,end:o},!1),t.selectedRange.start=i,t.selectedRange.end=o}else t.fullRangeDisplay="";y.value=!1,n&&E()}},M=()=>{u.value=h,g.value=null,t.abbreviatedDisplay=a.placeholder,t.fullRangeDisplay="",s.value&&(t.selectedTimeframe=a.timePeriods[0]?.values[0]||null),t.selectedRange=t.previouslySelectedRange=h,c("change",t.selectedRange),c("update:modelValue",t.selectedRange)},x=l=>`(${new Intl.DateTimeFormat(void 0,{timeZone:K,timeZoneName:"short"}).formatToParts(l).find(i=>i.type==="timeZoneName")?.value})`,$=(l,n)=>{const{start:i,end:o}=l;let r=a.timeGranularity==="secondly"?"PP hh:mm:ss a":"PP hh:mm a";const f=x(i);return!D.value&&s.value?r="PP hh:mm a":R.ModeDateOnly.includes(a.mode)&&(r="PP"),d.value?`${v.format(i,r)} ${f}`:n?`<div>${v.format(i,r)} - </div><div>${v.format(o,r)} ${f}</div>`:`${v.format(i,r)} - ${v.format(o,r)} ${f}`},E=async()=>{d.value?t.selectedRange.start&&(c("change",{start:t.selectedRange.start,end:null}),c("update:modelValue",{start:t.selectedRange.start,end:null})):(c("change",t.selectedRange),c("update:modelValue",t.selectedRange)),S.value?.hidePopover(),p()},z=l=>!!l&&(l instanceof Date||typeof l=="number"),p=()=>{if(m.value&&z(t.selectedRange?.start)&&(d.value||z(t.selectedRange?.end)))t.abbreviatedDisplay=$(t.selectedRange,!0);else if(s.value&&!m.value){const l=x(new Date);t.abbreviatedDisplay=`${t.selectedTimeframe?.display} ${l}`}},O=l=>l.charAt(0).toUpperCase()+l.slice(1),A=l=>t.selectedTimeframe?.key===l.key?"primary":"secondary";e.watch(g,(l,n)=>{l!==void 0&&l!==n&&b({start:l,end:null})},{immediate:!0}),e.watch(u,(l,n)=>{l!==void 0&&l!==n&&b(l)},{immediate:!0}),e.watch(()=>t.tabName,(l,n)=>{n!==void 0&&l==="relative"?P(t.previouslySelectedTimeframe):n!==void 0&&l==="custom"&&b(t.previouslySelectedRange)}),e.watch(()=>a.modelValue,()=>{if(R.ModeArrayRelative.includes(a.mode)&&a.modelValue.timePeriodsKey){t.tabName="relative",y.value=!1;for(const l of a.timePeriods){const n=l.values.find(i=>i.key===a.modelValue.timePeriodsKey);if(n){P(n),p();break}}}else t.tabName="custom",b(a.modelValue),(a.modelValue.start&&a.modelValue.end||d.value&&a.modelValue.start)&&p();w.value++},{immediate:!0}),e.watch(()=>a.timeGranularity,()=>{p()});const I=()=>{t.popoverOpen=!1,k.value&&k.value.resetTime()},U=()=>{t.popoverOpen=!0,k.value&&k.value.initTimeInputs()};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-datetime-picker",{"set-min-width":s.value}]),style:e.normalizeStyle(V.value)},[e.createVNode(F.default,{ref_key:"kPop",ref:S,disabled:a.disabled||a.readonly,"hide-caret":"","hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(N.KUI_SPACE_40)})`,placement:a.popoverPlacement,width:"auto",onClose:I,onOpen:U},{content:e.withCtx(()=>[s.value&&D.value?(e.openBlock(),e.createBlock(L.default,{key:0,modelValue:t.tabName,"onUpdate:modelValue":n[0]||(n[0]=i=>t.tabName=i),class:"datetime-picker-toggle","data-testid":"datetime-picker-toggle",options:[{label:"Relative",value:"relative"},{label:"Custom",value:"custom"}],onClick:n[1]||(n[1]=i=>t.tabName=i)},null,8,["modelValue"])):e.createCommentVNode("",!0),!m.value&&t.fullRangeDisplay?(e.openBlock(),e.createElementBlock("p",X,e.toDisplayString(t.fullRangeDisplay),1)):e.createCommentVNode("",!0),D.value&&m.value?(e.openBlock(),e.createBlock(G.default,{key:w.value,ref:"calendarWrapperRef",modelValue:e.unref(B),"onUpdate:modelValue":n[2]||(n[2]=i=>e.isRef(B)?B.value=i:null),error:T.value,"onUpdate:error":n[3]||(n[3]=i=>T.value=i),"custom-range-validation":a.customRangeValidation,"error-message":a.invalidTimeErrorMessage,"is-range":!d.value,"k-date-picker-mode":a.mode,"max-date":a.maxDate,"min-date":a.minDate,"same-day-full-range":a.sameDayFullRange,"time-granularity":a.timeGranularity},null,8,["modelValue","error","custom-range-validation","error-message","is-range","k-date-picker-mode","max-date","min-date","same-day-full-range","time-granularity"])):s.value&&!d.value?(e.openBlock(),e.createElementBlock("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.timePeriods,(i,o)=>(e.openBlock(),e.createElementBlock("div",{key:`section-${String(i.section||o)}`,class:"timeframe-section"},[e.createElementVNode("div",Q,e.toDisplayString(i.section),1),e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.values,(r,f)=>(e.openBlock(),e.createBlock(C.default,{key:`time-${f}`,appearance:A(r),class:"timeframe-button","data-testid":`select-timeframe-${r.key}`,onClick:te=>P(r,!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O(r.timeframeText)),1)]),_:2},1032,["appearance","data-testid","onClick"]))),128))])]))),128))])):e.createCommentVNode("",!0)]),footer:e.withCtx(()=>[e.createElementVNode("div",_,[a.clearButton?(e.openBlock(),e.createBlock(C.default,{key:0,appearance:"tertiary",class:"action-button","data-testid":"datetime-picker-clear",onClick:n[4]||(n[4]=i=>M())},{default:e.withCtx(()=>[...n[6]||(n[6]=[e.createTextVNode(" Clear ",-1)])]),_:1})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(C.default,{key:1,appearance:"tertiary",class:"action-button","data-testid":"datetime-picker-submit",disabled:y.value||T.value,onClick:n[5]||(n[5]=i=>E())},{default:e.withCtx(()=>[...n[7]||(n[7]=[e.createTextVNode(" Apply ",-1)])]),_:1},8,["disabled"])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["datetime-picker-trigger-wrapper",{disabled:a.disabled}])},[e.createElementVNode("div",{class:e.normalizeClass(["datetime-picker-trigger",{disabled:a.disabled,readonly:a.readonly}]),"data-testid":"datetime-picker-trigger",role:"button",style:e.normalizeStyle(V.value),tabindex:a.disabled?-1:0},[e.createElementVNode("div",{class:e.normalizeClass(["datetime-picker-display",{"has-icon":a.icon,disabled:a.disabled}]),"data-testid":"datetime-picker-display",innerHTML:t.abbreviatedDisplay},null,10,j)],14,H),a.icon?(e.openBlock(),e.createBlock(e.unref(Z.CalIcon),{key:0,class:"calendar-icon",color:`var(--kui-color-text-neutral, ${e.unref(N.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:"",size:`var(--kui-icon-size-40, ${e.unref(N.KUI_ICON_SIZE_40)})`},null,8,["color","size"])):e.createCommentVNode("",!0)],2)]),_:1},8,["disabled","offset","placement"])],6))}});exports.default=ee;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import re from "./
|
|
1
|
+
import { defineComponent as te, ref as u, computed as R, useTemplateRef as ae, reactive as le, watch as D, openBlock as r, createElementBlock as c, normalizeStyle as G, normalizeClass as w, createVNode as ie, unref as T, withCtx as f, createElementVNode as v, createBlock as y, createCommentVNode as g, createTextVNode as A, toDisplayString as O, isRef as ne, Fragment as H, renderList as X } from "vue";
|
|
2
|
+
import { format as P } from "date-fns";
|
|
3
|
+
import E from "./kongponents38.es.js";
|
|
4
|
+
import re from "./kongponents62.es.js";
|
|
5
|
+
import de from "./kongponents65.es.js";
|
|
5
6
|
/* empty css */
|
|
6
7
|
import "./kongponents7.es.js";
|
|
7
|
-
import { DateTimePickerModes as
|
|
8
|
-
import { CalIcon as
|
|
9
|
-
import { KUI_SPACE_40 as
|
|
10
|
-
import { normalizeSize as
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import M from "./kongponents188.es.js";
|
|
14
|
-
const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
8
|
+
import { DateTimePickerModes as oe, ModeArrayCustom as se, ModeArrayRelative as me, ModeDateOnly as ue } from "./kongponents12.es.js";
|
|
9
|
+
import { CalIcon as ce } from "@kong/icons";
|
|
10
|
+
import { KUI_SPACE_40 as fe, KUI_ICON_SIZE_40 as ve, KUI_COLOR_TEXT_NEUTRAL as ye } from "./kongponents184.es.js";
|
|
11
|
+
import { normalizeSize as ge } from "./kongponents182.es.js";
|
|
12
|
+
import be from "./kongponents190.es.js";
|
|
13
|
+
const pe = ["tabindex"], ke = ["innerHTML"], Re = {
|
|
15
14
|
key: 1,
|
|
16
15
|
class: "range-display"
|
|
17
|
-
},
|
|
16
|
+
}, De = {
|
|
18
17
|
key: 3,
|
|
19
18
|
class: "relative-periods-container"
|
|
20
|
-
},
|
|
19
|
+
}, Te = { class: "timeframe-section-title" }, Pe = { class: "timeframe-buttons" }, he = { class: "datetime-picker-footer-container" }, Ie = /* @__PURE__ */ te({
|
|
21
20
|
__name: "KDateTimePicker",
|
|
22
21
|
props: {
|
|
23
22
|
clearButton: { type: Boolean },
|
|
@@ -42,12 +41,12 @@ const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
|
42
41
|
},
|
|
43
42
|
emits: ["change", "update:modelValue"],
|
|
44
43
|
setup(t, { emit: j }) {
|
|
45
|
-
const m = j,
|
|
44
|
+
const m = j, I = u(null), x = R(() => t.mode !== oe.Relative), o = R(() => se.includes(t.mode) && !t.range), s = R(() => t.timePeriods.length > 0), b = R(() => e.tabName === "custom" || !s.value), h = u(!0), B = u(!1), M = u(0), K = {
|
|
46
45
|
start: null,
|
|
47
46
|
end: null
|
|
48
|
-
},
|
|
49
|
-
width:
|
|
50
|
-
})),
|
|
47
|
+
}, S = u(t.modelValue.start || null), p = u(t.modelValue || K), V = o.value ? S : p, $ = ae("calendarWrapperRef"), U = R(() => ({
|
|
48
|
+
width: ge(t.width)
|
|
49
|
+
})), q = Intl.DateTimeFormat().resolvedOptions().timeZone, e = le({
|
|
51
50
|
abbreviatedDisplay: t.placeholder,
|
|
52
51
|
fullRangeDisplay: "",
|
|
53
52
|
popoverOpen: !1,
|
|
@@ -59,83 +58,83 @@ const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
|
59
58
|
}), C = (a) => {
|
|
60
59
|
if (!a) return;
|
|
61
60
|
const l = o.value ? !a.start : !a.start || !a.end, i = a?.start || /* @__PURE__ */ new Date(), d = a?.end || null;
|
|
62
|
-
|
|
61
|
+
h.value = !!l, !o.value && a && a.start && a.end ? (p.value.start = i, p.value.end = d) : a && a.start && (S.value = i), e.selectedRange = e.previouslySelectedRange = {
|
|
63
62
|
start: i,
|
|
64
63
|
end: d
|
|
65
64
|
};
|
|
66
|
-
},
|
|
65
|
+
}, z = (a, l = !1) => {
|
|
67
66
|
if (a) {
|
|
68
67
|
if (e.selectedTimeframe = e.previouslySelectedTimeframe = a, e.selectedRange = {
|
|
69
68
|
timePeriodsKey: e.selectedTimeframe.key
|
|
70
69
|
}, e.selectedTimeframe.start && e.selectedTimeframe.end) {
|
|
71
70
|
const i = new Date(e.selectedTimeframe.start()), d = new Date(e.selectedTimeframe.end());
|
|
72
|
-
e.fullRangeDisplay =
|
|
71
|
+
e.fullRangeDisplay = F({ start: i, end: d }, !1), e.selectedRange.start = i, e.selectedRange.end = d;
|
|
73
72
|
} else
|
|
74
73
|
e.fullRangeDisplay = "";
|
|
75
|
-
|
|
74
|
+
h.value = !1, l && L();
|
|
76
75
|
}
|
|
77
|
-
},
|
|
78
|
-
p.value = K,
|
|
79
|
-
},
|
|
76
|
+
}, J = () => {
|
|
77
|
+
p.value = K, S.value = null, e.abbreviatedDisplay = t.placeholder, e.fullRangeDisplay = "", s.value && (e.selectedTimeframe = t.timePeriods[0]?.values[0] || null), e.selectedRange = e.previouslySelectedRange = K, m("change", e.selectedRange), m("update:modelValue", e.selectedRange);
|
|
78
|
+
}, Z = (a) => `(${new Intl.DateTimeFormat(void 0, { timeZone: q, timeZoneName: "short" }).formatToParts(a).find((i) => i.type === "timeZoneName")?.value})`, F = (a, l) => {
|
|
80
79
|
const { start: i, end: d } = a;
|
|
81
80
|
let n = t.timeGranularity === "secondly" ? "PP hh:mm:ss a" : "PP hh:mm a";
|
|
82
|
-
const k =
|
|
83
|
-
return !
|
|
84
|
-
},
|
|
85
|
-
o.value ? e.selectedRange.start && (m("change", { start: e.selectedRange.start, end: null }), m("update:modelValue", { start: e.selectedRange.start, end: null })) : (m("change", e.selectedRange), m("update:modelValue", e.selectedRange)),
|
|
86
|
-
}, N = () => {
|
|
87
|
-
if (b.value && e.selectedRange?.start)
|
|
88
|
-
e.abbreviatedDisplay =
|
|
81
|
+
const k = Z(i);
|
|
82
|
+
return !x.value && s.value ? n = "PP hh:mm a" : ue.includes(t.mode) && (n = "PP"), o.value ? `${P(i, n)} ${k}` : l ? `<div>${P(i, n)} - </div><div>${P(d, n)} ${k}</div>` : `${P(i, n)} - ${P(d, n)} ${k}`;
|
|
83
|
+
}, L = async () => {
|
|
84
|
+
o.value ? e.selectedRange.start && (m("change", { start: e.selectedRange.start, end: null }), m("update:modelValue", { start: e.selectedRange.start, end: null })) : (m("change", e.selectedRange), m("update:modelValue", e.selectedRange)), I.value?.hidePopover(), N();
|
|
85
|
+
}, W = (a) => !!a && (a instanceof Date || typeof a == "number"), N = () => {
|
|
86
|
+
if (b.value && W(e.selectedRange?.start) && (o.value || W(e.selectedRange?.end)))
|
|
87
|
+
e.abbreviatedDisplay = F(e.selectedRange, !0);
|
|
89
88
|
else if (s.value && !b.value) {
|
|
90
|
-
const a =
|
|
89
|
+
const a = Z(/* @__PURE__ */ new Date());
|
|
91
90
|
e.abbreviatedDisplay = `${e.selectedTimeframe?.display} ${a}`;
|
|
92
91
|
}
|
|
93
|
-
},
|
|
94
|
-
D(
|
|
92
|
+
}, Q = (a) => a.charAt(0).toUpperCase() + a.slice(1), Y = (a) => e.selectedTimeframe?.key === a.key ? "primary" : "secondary";
|
|
93
|
+
D(S, (a, l) => {
|
|
95
94
|
a !== void 0 && a !== l && C({ start: a, end: null });
|
|
96
95
|
}, { immediate: !0 }), D(p, (a, l) => {
|
|
97
96
|
a !== void 0 && a !== l && C(a);
|
|
98
97
|
}, { immediate: !0 }), D(() => e.tabName, (a, l) => {
|
|
99
|
-
l !== void 0 && a === "relative" ?
|
|
98
|
+
l !== void 0 && a === "relative" ? z(e.previouslySelectedTimeframe) : l !== void 0 && a === "custom" && C(e.previouslySelectedRange);
|
|
100
99
|
}), D(() => t.modelValue, () => {
|
|
101
|
-
if (
|
|
102
|
-
e.tabName = "relative",
|
|
100
|
+
if (me.includes(t.mode) && t.modelValue.timePeriodsKey) {
|
|
101
|
+
e.tabName = "relative", h.value = !1;
|
|
103
102
|
for (const a of t.timePeriods) {
|
|
104
103
|
const l = a.values.find((i) => i.key === t.modelValue.timePeriodsKey);
|
|
105
104
|
if (l) {
|
|
106
|
-
|
|
105
|
+
z(l), N();
|
|
107
106
|
break;
|
|
108
107
|
}
|
|
109
108
|
}
|
|
110
109
|
} else
|
|
111
110
|
e.tabName = "custom", C(t.modelValue), (t.modelValue.start && t.modelValue.end || o.value && t.modelValue.start) && N();
|
|
112
|
-
|
|
111
|
+
M.value++;
|
|
113
112
|
}, { immediate: !0 }), D(() => t.timeGranularity, () => {
|
|
114
113
|
N();
|
|
115
114
|
});
|
|
116
|
-
const
|
|
117
|
-
e.popoverOpen = !1,
|
|
118
|
-
},
|
|
119
|
-
e.popoverOpen = !0,
|
|
115
|
+
const _ = () => {
|
|
116
|
+
e.popoverOpen = !1, $.value && $.value.resetTime();
|
|
117
|
+
}, ee = () => {
|
|
118
|
+
e.popoverOpen = !0, $.value && $.value.initTimeInputs();
|
|
120
119
|
};
|
|
121
120
|
return (a, l) => (r(), c("div", {
|
|
122
121
|
class: w(["k-datetime-picker", { "set-min-width": s.value }]),
|
|
123
|
-
style:
|
|
122
|
+
style: G(U.value)
|
|
124
123
|
}, [
|
|
125
|
-
|
|
124
|
+
ie(re, {
|
|
126
125
|
ref_key: "kPop",
|
|
127
|
-
ref:
|
|
126
|
+
ref: I,
|
|
128
127
|
disabled: t.disabled || t.readonly,
|
|
129
128
|
"hide-caret": "",
|
|
130
129
|
"hide-close-icon": "",
|
|
131
|
-
offset: `var(--kui-space-40, ${T(
|
|
130
|
+
offset: `var(--kui-space-40, ${T(fe)})`,
|
|
132
131
|
placement: t.popoverPlacement,
|
|
133
132
|
width: "auto",
|
|
134
|
-
onClose:
|
|
135
|
-
onOpen:
|
|
133
|
+
onClose: _,
|
|
134
|
+
onOpen: ee
|
|
136
135
|
}, {
|
|
137
136
|
content: f(() => [
|
|
138
|
-
s.value &&
|
|
137
|
+
s.value && x.value ? (r(), y(de, {
|
|
139
138
|
key: 0,
|
|
140
139
|
modelValue: e.tabName,
|
|
141
140
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => e.tabName = i),
|
|
@@ -147,14 +146,14 @@ const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
|
147
146
|
],
|
|
148
147
|
onClick: l[1] || (l[1] = (i) => e.tabName = i)
|
|
149
148
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
150
|
-
!b.value && e.fullRangeDisplay ? (r(), c("p",
|
|
151
|
-
|
|
152
|
-
key:
|
|
149
|
+
!b.value && e.fullRangeDisplay ? (r(), c("p", Re, O(e.fullRangeDisplay), 1)) : g("", !0),
|
|
150
|
+
x.value && b.value ? (r(), y(be, {
|
|
151
|
+
key: M.value,
|
|
153
152
|
ref: "calendarWrapperRef",
|
|
154
153
|
modelValue: T(V),
|
|
155
|
-
"onUpdate:modelValue": l[2] || (l[2] = (i) =>
|
|
156
|
-
error:
|
|
157
|
-
"onUpdate:error": l[3] || (l[3] = (i) =>
|
|
154
|
+
"onUpdate:modelValue": l[2] || (l[2] = (i) => ne(V) ? V.value = i : null),
|
|
155
|
+
error: B.value,
|
|
156
|
+
"onUpdate:error": l[3] || (l[3] = (i) => B.value = i),
|
|
158
157
|
"custom-range-validation": t.customRangeValidation,
|
|
159
158
|
"error-message": t.invalidTimeErrorMessage,
|
|
160
159
|
"is-range": !o.value,
|
|
@@ -163,22 +162,22 @@ const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
|
163
162
|
"min-date": t.minDate,
|
|
164
163
|
"same-day-full-range": t.sameDayFullRange,
|
|
165
164
|
"time-granularity": t.timeGranularity
|
|
166
|
-
}, null, 8, ["modelValue", "error", "custom-range-validation", "error-message", "is-range", "k-date-picker-mode", "max-date", "min-date", "same-day-full-range", "time-granularity"])) : s.value && !o.value ? (r(), c("div",
|
|
165
|
+
}, null, 8, ["modelValue", "error", "custom-range-validation", "error-message", "is-range", "k-date-picker-mode", "max-date", "min-date", "same-day-full-range", "time-granularity"])) : s.value && !o.value ? (r(), c("div", De, [
|
|
167
166
|
(r(!0), c(H, null, X(t.timePeriods, (i, d) => (r(), c("div", {
|
|
168
167
|
key: `section-${String(i.section || d)}`,
|
|
169
168
|
class: "timeframe-section"
|
|
170
169
|
}, [
|
|
171
|
-
v("div",
|
|
172
|
-
v("div",
|
|
173
|
-
(r(!0), c(H, null, X(i.values, (n, k) => (r(), y(
|
|
170
|
+
v("div", Te, O(i.section), 1),
|
|
171
|
+
v("div", Pe, [
|
|
172
|
+
(r(!0), c(H, null, X(i.values, (n, k) => (r(), y(E, {
|
|
174
173
|
key: `time-${k}`,
|
|
175
|
-
appearance:
|
|
174
|
+
appearance: Y(n),
|
|
176
175
|
class: "timeframe-button",
|
|
177
176
|
"data-testid": `select-timeframe-${n.key}`,
|
|
178
|
-
onClick: (
|
|
177
|
+
onClick: (Se) => z(n, !0)
|
|
179
178
|
}, {
|
|
180
179
|
default: f(() => [
|
|
181
|
-
A(
|
|
180
|
+
A(O(Q(n.timeframeText)), 1)
|
|
182
181
|
]),
|
|
183
182
|
_: 2
|
|
184
183
|
}, 1032, ["appearance", "data-testid", "onClick"]))), 128))
|
|
@@ -187,26 +186,26 @@ const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
|
187
186
|
])) : g("", !0)
|
|
188
187
|
]),
|
|
189
188
|
footer: f(() => [
|
|
190
|
-
v("div",
|
|
191
|
-
t.clearButton ? (r(), y(
|
|
189
|
+
v("div", he, [
|
|
190
|
+
t.clearButton ? (r(), y(E, {
|
|
192
191
|
key: 0,
|
|
193
192
|
appearance: "tertiary",
|
|
194
193
|
class: "action-button",
|
|
195
194
|
"data-testid": "datetime-picker-clear",
|
|
196
|
-
onClick: l[4] || (l[4] = (i) =>
|
|
195
|
+
onClick: l[4] || (l[4] = (i) => J())
|
|
197
196
|
}, {
|
|
198
197
|
default: f(() => [...l[6] || (l[6] = [
|
|
199
198
|
A(" Clear ", -1)
|
|
200
199
|
])]),
|
|
201
200
|
_: 1
|
|
202
201
|
})) : g("", !0),
|
|
203
|
-
b.value ? (r(), y(
|
|
202
|
+
b.value ? (r(), y(E, {
|
|
204
203
|
key: 1,
|
|
205
204
|
appearance: "tertiary",
|
|
206
205
|
class: "action-button",
|
|
207
206
|
"data-testid": "datetime-picker-submit",
|
|
208
|
-
disabled:
|
|
209
|
-
onClick: l[5] || (l[5] = (i) =>
|
|
207
|
+
disabled: h.value || B.value,
|
|
208
|
+
onClick: l[5] || (l[5] = (i) => L())
|
|
210
209
|
}, {
|
|
211
210
|
default: f(() => [...l[7] || (l[7] = [
|
|
212
211
|
A(" Apply ", -1)
|
|
@@ -223,21 +222,21 @@ const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
|
223
222
|
class: w(["datetime-picker-trigger", { disabled: t.disabled, readonly: t.readonly }]),
|
|
224
223
|
"data-testid": "datetime-picker-trigger",
|
|
225
224
|
role: "button",
|
|
226
|
-
style:
|
|
225
|
+
style: G(U.value),
|
|
227
226
|
tabindex: t.disabled ? -1 : 0
|
|
228
227
|
}, [
|
|
229
228
|
v("div", {
|
|
230
229
|
class: w(["datetime-picker-display", { "has-icon": t.icon, disabled: t.disabled }]),
|
|
231
230
|
"data-testid": "datetime-picker-display",
|
|
232
231
|
innerHTML: e.abbreviatedDisplay
|
|
233
|
-
}, null, 10,
|
|
234
|
-
], 14,
|
|
235
|
-
t.icon ? (r(), y(T(
|
|
232
|
+
}, null, 10, ke)
|
|
233
|
+
], 14, pe),
|
|
234
|
+
t.icon ? (r(), y(T(ce), {
|
|
236
235
|
key: 0,
|
|
237
236
|
class: "calendar-icon",
|
|
238
|
-
color: `var(--kui-color-text-neutral, ${T(
|
|
237
|
+
color: `var(--kui-color-text-neutral, ${T(ye)})`,
|
|
239
238
|
decorative: "",
|
|
240
|
-
size: `var(--kui-icon-size-40, ${T(
|
|
239
|
+
size: `var(--kui-icon-size-40, ${T(ve)})`
|
|
241
240
|
}, null, 8, ["color", "size"])) : g("", !0)
|
|
242
241
|
], 2)
|
|
243
242
|
]),
|
package/dist/kongponents107.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("./kongponents38.cjs"),C=require("./kongponents30.cjs");;/* empty css */const B=require("./kongponents62.cjs"),P=require("./kongponents29.cjs"),T=require("./kongponents50.cjs"),x=require("@kong/icons"),D=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("./kongponents38.cjs"),C=require("./kongponents30.cjs");;/* empty css */const B=require("./kongponents62.cjs"),P=require("./kongponents29.cjs"),T=require("./kongponents50.cjs"),x=require("@kong/icons"),D=require("./kongponents184.cjs"),y={class:"dropdown-list","data-testid":"dropdown-list"},q=e.defineComponent({__name:"KDropdown",props:{selectionMenu:{type:Boolean},appearance:{default:"primary"},triggerText:{default:""},showCaret:{type:Boolean},width:{default:""},kpopAttributes:{default:()=>({})},items:{default:()=>[]},disabled:{type:Boolean},disabledTooltip:{default:""},label:{}},emits:["toggleDropdown","change"],setup(t,{expose:v,emit:g}){e.watch(()=>t.appearance,o=>{(o==="menu"||o==="selectionMenu")&&console.warn("KDropdown: the usage for the `appearance` prop has changed. Please see the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kdropdownmenu")},{immediate:!0}),e.watch(()=>t.label,o=>{o&&console.warn("KDropdown: `label` prop is deprecated. Please use `triggerText` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kdropdownmenu")},{immediate:!0});const s=g,h=e.computed(()=>t.disabledTooltip?C.default:"div"),u=e.useTemplateRef("kPop"),c={hideCaret:!0,popoverClasses:"k-dropdown-popover dropdown-popover",popoverTimeout:0,placement:"bottom-start"},w={...c,...t.kpopAttributes,width:t.width||void 0,popoverClasses:`${c.popoverClasses} ${t.kpopAttributes?.popoverClasses||""}`},p=e.computed(()=>l.value?.label||t.triggerText||t.label||""),l=e.ref(),m=o=>{t.selectionMenu&&(l.value=o)},f=()=>{u.value?.hidePopover()},d=(o,n,r)=>{o.value!==r&&(n(),s("toggleDropdown",o.value))};return e.watch(l,(o,n)=>{o&&o!==n&&s("change",o)}),e.onMounted(()=>{if(t.items){const o=t.items.filter(n=>n.selected);o.length&&(l.value=o[0])}}),v({openDropdown:()=>{u.value?.showPopover()},closeDropdown:f}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-dropdown",{"selection-dropdown-menu":t.selectionMenu}])},[e.createVNode(P.default,null,{default:e.withCtx(({toggle:r,isToggled:a})=>[e.createVNode(B.default,e.mergeProps({ref:"kPop"},w,{"close-on-popover-click":"","data-testid":"dropdown-popover","hide-close-icon":"",offset:`var(--kui-space-20, ${e.unref(D.KUI_SPACE_20)})`,onClose:()=>d(a,r,!1),onOpen:()=>d(a,r,!0),onPopoverClick:()=>d(a,r,!1)}),{content:e.withCtx(()=>[e.createElementVNode("ul",y,[e.renderSlot(o.$slots,"items",{closeDropdown:f,handleSelection:m,items:t.items},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(i,k)=>(e.openBlock(),e.createBlock(T.default,e.mergeProps({ref_for:!0},i,{key:`${i.label}-${k}`,item:i,selected:t.selectionMenu&&l.value?.value===i.value,"selection-menu-child":t.selectionMenu,onChange:m}),null,16,["item","selected","selection-menu-child"]))),128))],!0)])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{class:"dropdown-trigger","data-testid":"dropdown-trigger",label:t.disabledTooltip?t.disabledTooltip:void 0,"max-width":t.disabledTooltip?"240":void 0,position:t.disabledTooltip?"bottom":void 0},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{isOpen:a.value},()=>[p.value?(e.openBlock(),e.createBlock(b.default,{key:0,appearance:t.appearance,class:"dropdown-trigger-button","data-dropdown-trigger":"true","data-testid":"dropdown-trigger-button",disabled:t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value)+" ",1),t.showCaret?(e.openBlock(),e.createBlock(e.unref(x.ChevronDownIcon),{key:0,decorative:""})):e.createCommentVNode("",!0)]),_:1},8,["appearance","disabled"])):e.createCommentVNode("",!0)],!0)]),_:2},1032,["label","max-width","position"]))]),_:2},1040,["offset","onClose","onOpen","onPopoverClick"])]),_:3})],2))}});exports.default=q;
|
|
@@ -6,7 +6,7 @@ import U from "./kongponents62.es.js";
|
|
|
6
6
|
import j from "./kongponents29.es.js";
|
|
7
7
|
import G from "./kongponents50.es.js";
|
|
8
8
|
import { ChevronDownIcon as H } from "@kong/icons";
|
|
9
|
-
import { KUI_SPACE_20 as J } from "./
|
|
9
|
+
import { KUI_SPACE_20 as J } from "./kongponents184.es.js";
|
|
10
10
|
const Q = {
|
|
11
11
|
class: "dropdown-list",
|
|
12
12
|
"data-testid": "dropdown-list"
|
package/dist/kongponents113.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@kong/icons"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@kong/icons"),i=require("./kongponents184.cjs"),B=require("./kongponents38.cjs");require("./kongponents7.cjs");require("./kongponents12.cjs");const a=require("./kongponents13.cjs"),E=require("./kongponents39.cjs"),v={class:"empty-state-content"},S=["aria-hidden"],g={key:0,class:"empty-state-title"},V={key:1,class:"empty-state-message"},C={key:2,class:"empty-state-action"},I={key:0,class:"empty-state-features-container"},$={key:0,"aria-hidden":"true",class:"feature-icon"},h={class:"card-header"},p=["title"],N={key:1,class:"empty-state-footer-container"},T=e.defineComponent({__name:"KEmptyState",props:{title:{default:""},message:{default:""},actionButtonVisible:{type:Boolean,default:!0},actionButtonText:{default:""},actionButtonDisabled:{type:Boolean},iconVariant:{default:()=>a.EmptyStateIconVariants.Default},iconBackground:{type:Boolean,default:!1},features:{default:()=>[]}},emits:["click-action"],setup(o,{emit:c}){const l=c,u=e.useSlots(),d=e.useId(),m=e.computed(()=>{switch(o.iconVariant){case a.EmptyStateIconVariants.Default:return r.AnalyticsIcon;case a.EmptyStateIconVariants.Error:return r.WarningIcon;case a.EmptyStateIconVariants.Search:return r.SearchIcon;case a.EmptyStateIconVariants.Kong:return r.KongIcon;default:return r.AnalyticsIcon}}),k=e.computed(()=>o.iconBackground?`var(--kui-color-text-decorative-aqua, ${i.KUI_COLOR_TEXT_DECORATIVE_AQUA})`:o.iconVariant===a.EmptyStateIconVariants.Error?`var(--kui-color-text-warning, ${i.KUI_COLOR_TEXT_WARNING})`:`var(--kui-color-text-neutral, ${i.KUI_COLOR_TEXT_NEUTRAL})`),y=()=>{if(u.image)return"empty-state-image";const t="empty-state-icon";return o.iconBackground?`${t} has-background`:t};return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-empty-state",[o.iconVariant]])},[e.createElementVNode("div",v,[e.createElementVNode("div",{"aria-hidden":t.$slots.image?void 0:"true",class:e.normalizeClass(y())},[e.renderSlot(t.$slots,"image",{},()=>[e.renderSlot(t.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{color:k.value,decorative:"",size:`var(--kui-icon-size-60, ${e.unref(i.KUI_ICON_SIZE_60)})`},null,8,["color","size"]))],!0)],!0)],10,S),o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",g,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.message||t.$slots.default?(e.openBlock(),e.createElementBlock("div",V,[e.renderSlot(t.$slots,"default",{},()=>[e.createElementVNode("p",null,e.toDisplayString(o.message),1)],!0)])):e.createCommentVNode("",!0),o.actionButtonVisible&&o.actionButtonText||t.$slots.action?(e.openBlock(),e.createElementBlock("div",C,[e.renderSlot(t.$slots,"action",{},()=>[e.createVNode(B.default,{disabled:o.actionButtonDisabled,type:"button",onClick:s[0]||(s[0]=n=>l("click-action"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action-button-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(o.actionButtonText),1)]),_:3},8,["disabled"])],!0)])):e.createCommentVNode("",!0)]),o.features.length?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.features,(n,f)=>(e.openBlock(),e.createBlock(E.default,{key:`feature-${e.unref(d)}-${n.key||f}`,class:"empty-state-feature-card"},{title:e.withCtx(()=>[n.key&&t.$slots[`feature-icon-${n.key}`]?(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(t.$slots,`feature-icon-${n.key}`,{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",h,e.toDisplayString(n.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{title:n.description},e.toDisplayString(n.description),9,p)]),_:2},1024))),128))])):e.createCommentVNode("",!0),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",N,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}});exports.default=T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, useSlots as b, useId as K, computed as m, openBlock as o, createElementBlock as n, normalizeClass as f, createElementVNode as c, renderSlot as i, createBlock as y, resolveDynamicComponent as S, unref as k, createTextVNode as v, toDisplayString as l, createCommentVNode as s, createVNode as N, withCtx as u, Fragment as O, renderList as D } from "vue";
|
|
2
2
|
import { AnalyticsIcon as $, KongIcon as A, SearchIcon as R, WarningIcon as U } from "@kong/icons";
|
|
3
|
-
import { KUI_COLOR_TEXT_DECORATIVE_AQUA as L, KUI_COLOR_TEXT_NEUTRAL as w, KUI_COLOR_TEXT_WARNING as z, KUI_ICON_SIZE_60 as X } from "./
|
|
3
|
+
import { KUI_COLOR_TEXT_DECORATIVE_AQUA as L, KUI_COLOR_TEXT_NEUTRAL as w, KUI_COLOR_TEXT_WARNING as z, KUI_ICON_SIZE_60 as X } from "./kongponents184.es.js";
|
|
4
4
|
import W from "./kongponents38.es.js";
|
|
5
5
|
import "./kongponents7.es.js";
|
|
6
6
|
import "./kongponents12.es.js";
|
package/dist/kongponents115.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),L=require("./kongponents57.cjs"),P=require("./kongponents55.cjs"),B=require("./kongponents38.cjs"),R=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),L=require("./kongponents57.cjs"),P=require("./kongponents55.cjs"),B=require("./kongponents38.cjs"),R=require("./kongponents183.cjs"),C=require("@kong/icons"),U=["role"],W={class:"file-upload-input-wrapper"},j={key:1,class:"file-upload-dropzone-wrapper"},O=["aria-disabled","aria-labelledby","tabindex"],G={"aria-hidden":"true",class:"dropzone-icon"},H={key:0},J={key:1},Q=e.defineComponent({inheritAttrs:!1,__name:"KFileUpload",props:{labelAttributes:{default:()=>({})},label:{default:""},help:{},buttonText:{default:"Select file"},placeholder:{default:""},accept:{},maxFileSize:{default:null},error:{type:Boolean},errorMessage:{default:""},disabled:{type:Boolean},appearance:{default:"input"}},emits:["file-added","file-removed","error"],setup(l,{emit:w}){const d=w,x=e.useSlots(),r=e.useAttrs(),{stripRequiredLabel:E}=R.default(),N=e.useId(),b=e.computed(()=>r.id?String(r.id):N),$=e.computed(()=>r.name?String(r.name):"uploaded-file"),D=e.computed(()=>{const a={...r};return delete a.id,delete a.name,a}),h=e.useTemplateRef("input"),F=()=>!!(l.labelAttributes?.info||x["label-tooltip"]),q=e.computed(()=>E(l.label,y.value)),y=e.computed(()=>r?.required!==void 0&&String(r?.required)!=="false"),g=e.computed(()=>o.value?"Drag & drop a file":"No file selected"),c=e.ref(!1),S=e.computed(()=>{if(c.value){let a="bytes",t=n.value;return n.value>=1024&&n.value<1024*1024&&(t=n.value/1024,a="KB"),n.value>=1024*1024&&(t=n.value/(1024*1024),a="MB"),`File size must be less than ${t}${a}.`}return""}),n=e.computed(()=>l.maxFileSize||l.maxFileSize===0?l.maxFileSize:5*1024*1024),v=e.computed(()=>p.value||c.value||l.error),s=e.ref(0),i=e.ref(""),f=e.ref(null),M=e.useTemplateRef("dropzone"),V=a=>{p.value=!1;const t=a.target.files,u=t[0]?.size;Number(u)>n.value&&(s.value++,c.value=!0,d("error",t));const K=h.value?.$el?.querySelector("input");t.length?(f.value=t,i.value=t[0]?.name||"",d("file-added",t)):(K.files=f.value,i.value=f.value?.[0]?.name||"")},k=()=>{if(i.value){I();return}const a=h.value?.$el?.querySelector("input");a&&a.click()},I=()=>{f.value=null,i.value="",s.value++,c.value=!1,d("file-removed")},m=e.ref(!1),p=e.ref(!1),A=a=>a?!l.accept||!Array.isArray(l.accept)||!l.accept.length?!0:l.accept.some(t=>{if(t.startsWith("."))return a.name.toLowerCase().endsWith(t.toLowerCase());if(t.endsWith("/*")){const u=t.slice(0,-2);return a.type.startsWith(u)}else return a.type===t}):!1,z=e.computed(()=>p.value?`Unsupported file type. Please upload one of the following: ${l.accept.join(", ")}`:""),T=a=>{if(!l.disabled){o.value?M.value?.focus():h.value?.input?.focus(),m.value=!1;const t=a.dataTransfer?.files;if(t&&t.length){const u=t[0]?.size;if(Number(u)>n.value){s.value++,c.value=!0,d("error",t);return}A(t[0])?(p.value=!1,f.value=t,i.value=t[0]?.name||"",d("file-added",t)):(p.value=!0,d("error",t))}}},o=e.computed(()=>l.appearance==="dropzone");return e.watch(()=>r.id,()=>{s.value++},{immediate:!0}),(a,t)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"k-file-upload"},D.value,{role:l.disabled?void 0:"region",onDragleave:t[0]||(t[0]=e.withModifiers(u=>m.value=!1,["prevent"])),onDragover:t[1]||(t[1]=e.withModifiers(u=>m.value=!0,["prevent"])),onDrop:e.withModifiers(T,["prevent"])}),[l.label?(e.openBlock(),e.createBlock(L.default,e.mergeProps({key:0},l.labelAttributes,{id:o.value?`file-upload-dropzone-label-${b.value}`:void 0,for:b.value,required:y.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.value)+" ",1)]),_:2},[F()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["id","for","required"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",W,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:s.value,class:e.normalizeClass(["file-upload-input-text",{placeholder:!i.value,"has-icon":a.$slots.icon,disabled:l.disabled}])},e.toDisplayString(i.value?i.value:l.placeholder||g.value),3)),(e.openBlock(),e.createBlock(P.default,{id:b.value,key:s.value,ref:"input",accept:l.accept,class:e.normalizeClass(["upload-input",{dragging:m.value&&!l.disabled}]),disabled:l.disabled,error:v.value,"error-message":l.errorMessage||z.value||S.value,help:l.help,hidden:o.value,name:$.value,placeholder:l.placeholder||g.value,title:"",type:"file",onChange:V},e.createSlots({_:2},[a.$slots.icon&&!o.value?{name:"before",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0,o.value?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(B.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,size:"small",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"])]),key:"1"}]),1032,["id","accept","class","disabled","error","error-message","help","hidden","name","placeholder"]))],512),[[e.vShow,!o.value]]),o.value?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",{ref:"dropzone","aria-disabled":l.disabled?"true":void 0,"aria-labelledby":l.label?`file-upload-dropzone-label-${b.value}`:void 0,class:e.normalizeClass(["dropzone",{dragging:m.value&&!l.disabled,disabled:l.disabled,error:v.value,"has-file":!!i.value}]),"data-testid":"file-upload-dropzone",role:"button",tabindex:l.disabled?-1:0,onClick:k},[e.createElementVNode("div",G,[e.renderSlot(a.$slots,"icon",{},()=>[i.value?(e.openBlock(),e.createBlock(e.unref(C.FileEmptyIcon),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(C.UploadIcon),{key:1,decorative:""}))],!0)]),i.value?(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(i.value),1)):(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(l.placeholder||g.value),1)),e.createVNode(B.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,onClick:e.withModifiers(k,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"]),e.renderSlot(a.$slots,"dropzone-footer",{},void 0,!0)],10,O),v.value||l.help?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["help-text",{error:v.value}])},e.toDisplayString(v.value&&(l.errorMessage||z.value||S.value)||l.help),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],16,U))}});exports.default=Q;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as le, useSlots as ae, useAttrs as te, useId as ie, com
|
|
|
2
2
|
import ne from "./kongponents57.es.js";
|
|
3
3
|
import se from "./kongponents55.es.js";
|
|
4
4
|
import U from "./kongponents38.es.js";
|
|
5
|
-
import de from "./
|
|
5
|
+
import de from "./kongponents183.es.js";
|
|
6
6
|
import { FileEmptyIcon as ve, UploadIcon as ce } from "@kong/icons";
|
|
7
7
|
const fe = ["role"], me = { class: "file-upload-input-wrapper" }, be = {
|
|
8
8
|
key: 1,
|
package/dist/kongponents117.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("./kongponents183.cjs"),U=require("./kongponents57.cjs"),E=require("./kongponents184.cjs"),V=require("@kong/icons"),z=["id","aria-describedby","aria-invalid","type","value"],H=["aria-label"],J=["id"],Z=e.defineComponent({inheritAttrs:!1,__name:"KInput",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},help:{default:""},error:{type:Boolean},errorMessage:{default:""},characterLimit:{default:null},hasError:{type:Boolean},type:{default:"text"},showPasswordMaskToggle:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(l,{expose:B,emit:x}){e.useCssVars(t=>({v091aff92:S.value,b534dd8e:w.value})),e.watch(()=>l.hasError,t=>{t&&console.warn("KInput: `hasError` prop is deprecated. Please use `error` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kinput")},{immediate:!0}),e.watch(()=>l.labelAttributes.help,t=>{t&&console.warn("KInput: `help` property of `labelAttributes` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel")});const f=x,r=e.useSlots(),m=e.useTemplateRef("inputElement"),o=e.ref(""),s=e.ref(!1),v=e.ref(0),{stripRequiredLabel:I}=D.default(),n=e.useAttrs(),k=e.computed(()=>n?.required!==void 0&&String(n?.required)!=="false"),M=e.useId(),b=e.computed(()=>n.id?String(n.id):M),y=e.useId(),T=e.computed(()=>I(l.label,k.value)),C=()=>!!(l.labelAttributes?.info||r["label-tooltip"]),L=e.computed({get(){return l.modelValue},set(t){h({target:{value:t}})}}),N=e.computed(()=>{const t={...n};return delete t.class,delete t.input,delete t.onInput,t}),i=e.computed(()=>{const t=o.value?.toString().length||0,a=l.modelValue?.toString().length||0;let d=t;return!s.value&&a&&(d=a),!!l.characterLimit&&d>l.characterLimit}),q=e.computed(()=>i.value?s.value?`${o.value?.toString().length} / ${l.characterLimit}`:`${l.modelValue?.toString().length} / ${l.characterLimit}`:""),P=()=>!i.value&&!l.error&&!l.hasError&&!!(l.help||r.help),c=e.computed(()=>i.value?q.value:(l.error||l.hasError)&&l.errorMessage?l.errorMessage:l.help);e.watch(i,(t,a)=>{t!==a&&(f("char-limit-exceeded",{value:o.value,length:o.value.length,characterLimit:l.characterLimit,limitExceeded:t}),v.value+=1)}),e.watch(L,(t,a)=>{t!==a&&h({target:{value:t}})});const h=t=>{const a=JSON.parse(JSON.stringify(t?.target?.value));$(a)},$=t=>{o.value=t,s.value=!0,f("input",t),f("update:modelValue",t)},A=()=>o.value||s.value?o.value:l.modelValue;e.watch(()=>l.error,(t,a)=>{t!==a&&(v.value+=1)});const g=e.ref(null),p=e.ref(null),S=e.ref(E.KUI_ICON_SIZE_40),w=e.ref(E.KUI_ICON_SIZE_40),u=e.ref(!1),K=e.computed(()=>l.type==="password"&&u.value?"text":l.type),O=()=>{if(!u.value&&m.value){const t=m.value,{selectionStart:a,selectionEnd:d,selectionDirection:W}=t,R=t.value;t.value=R,t.setSelectionRange(a,d,W??void 0)}u.value=!u.value};return e.onMounted(async()=>{await e.nextTick(),g.value?.offsetWidth&&(S.value=g.value.offsetWidth+"px"),p.value?.offsetWidth&&(w.value=p.value.offsetWidth+"px")}),B({input:m}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-input",[e.unref(n).class,{"input-error":i.value||l.error||l.hasError}]])},[l.label?(e.openBlock(),e.createBlock(U.default,e.mergeProps({key:0,for:b.value},l.labelAttributes,{required:k.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.value)+" ",1)]),_:2},[C()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-element-wrapper",{"has-before-content":r.before,"has-after-content":r.after||l.type==="password"&&l.showPasswordMaskToggle}])},[r.before?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"beforeSlotElement",ref:g,class:"before-content-wrapper"},[e.renderSlot(t.$slots,"before",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:b.value,ref:"inputElement","aria-describedby":c.value||r.help?e.unref(y):void 0,"aria-invalid":l.error||l.hasError||i.value?"true":void 0,class:"input",type:K.value},N.value,{value:A(),onInput:h}),null,16,z),r.after||l.type==="password"&&l.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"afterSlotElement",ref:p,class:"after-content-wrapper"},[l.type==="password"&&l.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":`${u.value?"Hide":"Show"} value`,class:"mask-value-toggle-button",type:"button",onClick:e.withModifiers(O,["stop"]),onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["prevent"])),onMouseup:a[1]||(a[1]=e.withModifiers(()=>{},["prevent"]))},[u.value?(e.openBlock(),e.createBlock(e.unref(V.VisibilityOffIcon),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(V.VisibilityIcon),{key:1,decorative:""}))],40,H)):e.renderSlot(t.$slots,"after",{},void 0,!0,1)],512)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[c.value||r.help?(e.openBlock(),e.createElementBlock("p",{id:e.unref(y),key:String(v.value),class:"help-text"},[P()?e.renderSlot(t.$slots,"help",{},()=>[e.createTextVNode(e.toDisplayString(c.value),1)],!0,0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.value),1)],64))],8,J)):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=Z;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ae, useCssVars as le, watch as f, useSlots as re, useTemplateRef as oe, ref as n, useAttrs as ne, computed as l, useId as N, onMounted as ie, nextTick as ue, openBlock as r, createElementBlock as c, normalizeClass as B, unref as v, createBlock as x, mergeProps as K, createSlots as se, withCtx as I, createTextVNode as L, toDisplayString as M, renderSlot as p, createCommentVNode as b, createElementVNode as W, withModifiers as T, createVNode as de, Transition as ce, Fragment as fe } from "vue";
|
|
2
|
-
import ve from "./
|
|
2
|
+
import ve from "./kongponents183.es.js";
|
|
3
3
|
import me from "./kongponents57.es.js";
|
|
4
|
-
import { KUI_ICON_SIZE_40 as R } from "./
|
|
4
|
+
import { KUI_ICON_SIZE_40 as R } from "./kongponents184.es.js";
|
|
5
5
|
import { VisibilityOffIcon as he, VisibilityIcon as ge } from "@kong/icons";
|
|
6
6
|
const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["aria-label"], ye = ["id"], xe = /* @__PURE__ */ ae({
|
|
7
7
|
inheritAttrs: !1,
|
package/dist/kongponents121.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents30.cjs");;/* empty css */const p=require("@kong/icons"),b=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents30.cjs");;/* empty css */const p=require("@kong/icons"),b=require("./kongponents184.cjs"),m=e.defineComponent({__name:"KLabel",props:{info:{default:""},required:{type:Boolean},tooltipAttributes:{default:()=>({})},help:{default:""}},setup(o){e.watch(()=>o.help,t=>{t&&console.warn("KLabel: `help` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel")},{immediate:!0});const r=e.useSlots(),a=()=>!!(o.help||o.info||r.tooltip),l=e.useId(),s=e.useTemplateRef("label"),u=["a[href]","audio[controls]","button","details","embed","iframe","img[usemap]",'input:not([type="hidden"])',"label","select","textarea","video[controls]","area[href]"].join(", ");function c(t){return t.closest(u)}function d(t){const i=t.target,n=c(i);n&&n!==s.value||t.preventDefault()}return(t,i)=>(e.openBlock(),e.createElementBlock("label",{ref:"label",class:e.normalizeClass(["k-label",{required:o.required}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),a()?(e.openBlock(),e.createBlock(f.default,e.mergeProps({key:0},o.tooltipAttributes,{class:"label-tooltip","tooltip-id":e.unref(l),onClick:d}),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.info||o.help),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(p.InfoIcon),{"aria-describedby":e.unref(l),class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(b.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["aria-describedby","color"])]),_:3},16,["tooltip-id"])):e.createCommentVNode("",!0)],2))}});exports.default=m;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as b, watch as h, useSlots as g, useId as k, useTemplat
|
|
|
2
2
|
import x from "./kongponents30.es.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { InfoIcon as B } from "@kong/icons";
|
|
5
|
-
import { KUI_COLOR_TEXT_NEUTRAL as S } from "./
|
|
5
|
+
import { KUI_COLOR_TEXT_NEUTRAL as S } from "./kongponents184.es.js";
|
|
6
6
|
const w = /* @__PURE__ */ b({
|
|
7
7
|
__name: "KLabel",
|
|
8
8
|
props: {
|
package/dist/kongponents123.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("focus-trap-vue"),T=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("focus-trap-vue"),T=require("./kongponents196.cjs"),B=require("./kongponents38.cjs"),N=require("@kong/icons"),g=require("./kongponents184.cjs"),k=require("./kongponents182.cjs"),w=require("./kongponents201.cjs"),$=["aria-label"],O={key:0,class:"modal-header"},A={key:0,class:"modal-title"},I={class:"modal-footer"},D={class:"footer-actions"},z=e.defineComponent({inheritAttrs:!1,__name:"KModal",props:{visible:{type:Boolean},title:{default:""},actionButtonText:{default:"Submit"},actionButtonAppearance:{default:"primary"},actionButtonDisabled:{type:Boolean},hideCancelButton:{type:Boolean},cancelButtonText:{default:"Cancel"},cancelButtonAppearance:{default:"tertiary"},cancelButtonDisabled:{type:Boolean},tabbableOptions:{default:()=>({})},maxWidth:{default:"500px"},maxHeight:{default:"calc(100vh - 200px)"},closeOnBackdropClick:{type:Boolean},closeOnEscape:{type:Boolean,default:!0},hideCloseIcon:{type:Boolean},fullScreen:{type:Boolean},inputAutofocus:{type:Boolean},zIndex:{default:1100}},emits:["proceed","cancel"],setup(o,{emit:C}){e.useCssVars(t=>({c9546bd4:t.zIndex,v6d2ff071:h.value,v7fba0424:S.value}));const E=C,i=e.useSlots();e.provide(w.POPOVER_PARENT_ZINDEX_KEY,e.computed(()=>o.zIndex));const r=e.useAttrs(),p=T.useTextSelection(),u=`k-modal-${e.useId()}-overflow-hidden`,n=e.ref(null),f=e.ref(null),h=e.computed(()=>o.fullScreen&&!i.content?"95%":k.normalizeSize(o.maxWidth)),S=e.computed(()=>o.fullScreen&&!i.content?"95vh":k.normalizeSize(o.maxHeight)),V=e.computed(()=>{const t=Object.assign({},r);return delete t.class,t}),m=()=>!!o.title||!!i.title||!o.hideCloseIcon,v=t=>{o.visible&&o.closeOnEscape&&t.key==="Escape"&&b(!0)},b=(t=!1,a)=>{(t||a?.target?.classList?.contains("modal-backdrop")&&o.closeOnBackdropClick&&!p.text.value)&&E("cancel")},s=async t=>{t?(await e.nextTick(),await new Promise(a=>setTimeout(a,0)),n.value?.activate()):n.value?.deactivate()},d=t=>{typeof document<"u"&&(t?document?.addEventListener("keydown",v):document?.removeEventListener("keydown",v))},y=()=>{const t=n.value?.$el?.querySelector(".modal-content")?.querySelectorAll("input");t?.length&&Array.from(t).every(a=>!a.disabled&&!a.readOnly?(a.focus(),!1):!0)};e.watch(()=>o.visible,async t=>{t?(await s(!0),o.inputAutofocus&&y(),d(!0)):(await s(!1),d(!1)),typeof document<"u"&&document?.body?.classList?.toggle(u,t)},{immediate:!0}),e.watch(()=>o.inputAutofocus,async t=>{t&&(await e.nextTick(),y())});const l=e.ref(null);return e.onMounted(()=>{typeof document<"u"&&(l.value=document.createElement("style"),l.value.textContent=`body.${u} { overflow: hidden; }`,document.head.appendChild(l.value))}),e.onBeforeUnmount(async()=>{await s(!1),d(!1)}),e.onUnmounted(()=>{l.value?.remove()}),(t,a)=>o.visible?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,"aria-label":o.title,"aria-modal":"true",class:["k-modal",[e.unref(r).class]]},V.value,{role:"dialog"}),[e.createElementVNode("div",{ref_key:"modalWrapperElement",ref:f,class:e.normalizeClass(["modal-backdrop",{"modal-full-screen":o.fullScreen&&!t.$slots.content}]),onClick:a[3]||(a[3]=c=>b(!1,c))},[e.createVNode(e.unref(x.FocusTrap),{ref_key:"focusTrapElement",ref:n,active:!1,"fallback-focus":()=>f.value,"tabbable-options":o.tabbableOptions},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["modal-container",{"custom-content":t.$slots.content}]),tabindex:"-1"},[e.renderSlot(t.$slots,"content",{},()=>[m()?(e.openBlock(),e.createElementBlock("div",O,[o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",A,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.hideCloseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,"aria-label":"Close",class:"close-icon","data-testid":"modal-close-icon",type:"button",onClick:a[0]||(a[0]=c=>t.$emit("cancel"))},[e.createVNode(e.unref(N.CloseIcon),{color:`var(--kui-color-text-neutral, ${e.unref(g.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["modal-content",{"no-header":!m()}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),e.createElementVNode("div",I,[e.renderSlot(t.$slots,"footer",{},()=>[e.createElementVNode("div",D,[e.renderSlot(t.$slots,"footer-actions",{},()=>[o.hideCancelButton?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(B.default,{key:0,appearance:o.cancelButtonAppearance,"data-testid":"modal-cancel-button",disabled:o.cancelButtonDisabled,onClick:a[1]||(a[1]=c=>t.$emit("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelButtonText),1)]),_:1},8,["appearance","disabled"])),e.createVNode(B.default,{appearance:o.actionButtonAppearance,"data-testid":"modal-action-button",disabled:o.actionButtonDisabled,onClick:a[2]||(a[2]=c=>t.$emit("proceed"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance","disabled"])],!0)])],!0)])],!0)],2)]),_:3},8,["fallback-focus","tabbable-options"])],2)],16,$)):e.createCommentVNode("",!0)}});exports.default=z;
|