@kong/kongponents 9.64.16 → 9.64.17
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 +2 -2
- package/dist/kongponents102.cjs +1 -1
- package/dist/kongponents102.es.js +2 -2
- package/dist/kongponents104.cjs +1 -1
- package/dist/kongponents104.es.js +6 -6
- package/dist/kongponents107.cjs +1 -1
- package/dist/kongponents107.es.js +2 -2
- package/dist/kongponents113.cjs +1 -1
- package/dist/kongponents113.es.js +5 -5
- package/dist/kongponents115.cjs +1 -1
- package/dist/kongponents115.es.js +3 -3
- package/dist/kongponents117.cjs +1 -1
- package/dist/kongponents117.es.js +4 -4
- package/dist/kongponents121.cjs +1 -1
- package/dist/kongponents121.es.js +2 -2
- package/dist/kongponents123.cjs +1 -1
- package/dist/kongponents123.es.js +6 -6
- package/dist/kongponents125.cjs +1 -1
- package/dist/kongponents125.es.js +2 -2
- package/dist/kongponents127.cjs +1 -1
- package/dist/kongponents127.es.js +10 -10
- package/dist/kongponents130.cjs +1 -1
- package/dist/kongponents130.es.js +5 -5
- package/dist/kongponents132.cjs +1 -1
- package/dist/kongponents132.es.js +8 -8
- package/dist/kongponents136.cjs +1 -1
- package/dist/kongponents136.es.js +2 -2
- package/dist/kongponents138.cjs +1 -1
- package/dist/kongponents138.es.js +1 -1
- package/dist/kongponents140.cjs +1 -1
- package/dist/kongponents140.es.js +10 -10
- package/dist/kongponents147.cjs +1 -1
- package/dist/kongponents147.es.js +5 -5
- package/dist/kongponents149.cjs +1 -1
- package/dist/kongponents149.es.js +1 -1
- package/dist/kongponents151.cjs +1 -1
- package/dist/kongponents151.es.js +6 -6
- package/dist/kongponents153.cjs +1 -1
- package/dist/kongponents153.es.js +21 -24
- package/dist/kongponents155.cjs +1 -1
- package/dist/kongponents155.es.js +2 -2
- package/dist/kongponents157.cjs +1 -1
- package/dist/kongponents157.es.js +7 -7
- package/dist/kongponents163.cjs +1 -1
- package/dist/kongponents163.es.js +3 -3
- package/dist/kongponents165.cjs +1 -1
- package/dist/kongponents165.es.js +5 -5
- package/dist/kongponents167.cjs +1 -1
- package/dist/kongponents167.es.js +3 -3
- package/dist/kongponents169.cjs +1 -1
- package/dist/kongponents169.es.js +12 -12
- package/dist/kongponents174.cjs +1 -1
- package/dist/kongponents174.es.js +3 -3
- package/dist/kongponents183.cjs +1 -1
- package/dist/kongponents183.es.js +5 -121
- package/dist/kongponents184.cjs +1 -1
- package/dist/kongponents184.es.js +26 -26
- package/dist/kongponents185.cjs +1 -1
- package/dist/kongponents185.es.js +20 -20
- package/dist/kongponents186.cjs +1 -1
- package/dist/kongponents186.es.js +16 -16
- package/dist/kongponents187.cjs +1 -1
- package/dist/kongponents187.es.js +121 -20
- package/dist/kongponents188.cjs +1 -1
- package/dist/kongponents188.es.js +27 -27
- package/dist/kongponents189.cjs +1 -1
- package/dist/kongponents189.es.js +115 -93
- package/dist/kongponents190.cjs +1 -1
- package/dist/kongponents190.es.js +20 -5
- package/dist/kongponents191.cjs +1 -1
- package/dist/kongponents191.es.js +121 -5
- package/dist/kongponents192.cjs +1 -1
- package/dist/kongponents192.es.js +15 -15
- package/dist/kongponents193.cjs +1 -1
- package/dist/kongponents193.es.js +20 -20
- package/dist/kongponents194.cjs +1 -2
- package/dist/kongponents194.es.js +93 -116
- package/dist/kongponents195.cjs +1 -1
- package/dist/kongponents195.es.js +111 -523
- package/dist/kongponents196.cjs +1 -1
- package/dist/kongponents196.es.js +116 -203
- package/dist/kongponents197.cjs +1 -1
- package/dist/kongponents197.es.js +5 -5
- package/dist/kongponents198.cjs +1 -1
- package/dist/kongponents198.es.js +5 -121
- package/dist/kongponents199.cjs +1 -1
- package/dist/kongponents199.es.js +513 -110
- package/dist/kongponents200.cjs +1 -0
- package/dist/kongponents200.es.js +38 -0
- package/dist/kongponents201.cjs +2 -1
- package/dist/kongponents201.es.js +97 -120
- package/dist/kongponents202.cjs +1 -1
- package/dist/kongponents202.es.js +121 -5
- package/dist/kongponents203.cjs +1 -1
- package/dist/kongponents203.es.js +121 -8
- package/dist/kongponents204.cjs +1 -1
- package/dist/kongponents204.es.js +120 -59
- package/dist/kongponents205.cjs +1 -1
- package/dist/kongponents205.es.js +110 -513
- package/dist/kongponents206.cjs +2 -1
- package/dist/kongponents206.es.js +121 -35
- package/dist/kongponents207.cjs +1 -2
- package/dist/kongponents207.es.js +120 -97
- package/dist/kongponents208.cjs +1 -1
- package/dist/kongponents208.es.js +17 -121
- package/dist/kongponents209.cjs +1 -1
- package/dist/kongponents209.es.js +50 -119
- package/dist/kongponents210.cjs +1 -1
- package/dist/kongponents210.es.js +24 -24
- package/dist/kongponents211.cjs +1 -1
- package/dist/kongponents211.es.js +24 -24
- package/dist/kongponents213.cjs +1 -1
- package/dist/kongponents213.es.js +121 -17
- package/dist/kongponents214.cjs +1 -1
- package/dist/kongponents214.es.js +5 -52
- package/dist/kongponents215.cjs +1 -1
- package/dist/kongponents215.es.js +8 -5
- package/dist/kongponents216.cjs +1 -1
- package/dist/kongponents216.es.js +60 -5
- package/dist/kongponents217.cjs +1 -1
- package/dist/kongponents217.es.js +120 -20
- package/dist/kongponents218.cjs +1 -1
- package/dist/kongponents218.es.js +121 -5
- package/dist/kongponents219.cjs +1 -1
- package/dist/kongponents219.es.js +121 -5
- package/dist/kongponents220.cjs +1 -1
- package/dist/kongponents220.es.js +3 -3
- package/dist/kongponents221.cjs +1 -1
- package/dist/kongponents221.es.js +2 -2
- package/dist/kongponents222.cjs +1 -1
- package/dist/kongponents222.es.js +208 -5
- package/dist/kongponents223.cjs +1 -1
- package/dist/kongponents223.es.js +10 -5
- package/dist/kongponents224.cjs +1 -1
- package/dist/kongponents224.es.js +97 -5
- package/dist/kongponents225.cjs +1 -1
- package/dist/kongponents225.es.js +2 -7
- package/dist/kongponents226.cjs +1 -1
- package/dist/kongponents226.es.js +5 -181
- package/dist/kongponents227.cjs +1 -1
- package/dist/kongponents227.es.js +5 -121
- package/dist/kongponents228.cjs +1 -1
- package/dist/kongponents228.es.js +5 -121
- package/dist/kongponents229.cjs +1 -1
- package/dist/kongponents229.es.js +121 -5
- package/dist/kongponents230.cjs +1 -1
- package/dist/kongponents230.es.js +533 -5
- package/dist/kongponents231.cjs +1 -1
- package/dist/kongponents231.es.js +111 -118
- package/dist/kongponents232.cjs +1 -1
- package/dist/kongponents232.es.js +13 -117
- package/dist/kongponents233.cjs +1 -1
- package/dist/kongponents233.es.js +394 -118
- package/dist/kongponents234.cjs +1 -1
- package/dist/kongponents234.es.js +3 -3
- package/dist/kongponents235.cjs +1 -1
- package/dist/kongponents235.es.js +121 -5
- package/dist/kongponents236.cjs +1 -1
- package/dist/kongponents236.es.js +121 -10
- package/dist/kongponents237.cjs +1 -1
- package/dist/kongponents237.es.js +20 -120
- package/dist/kongponents238.cjs +1 -1
- package/dist/kongponents238.es.js +4 -4
- package/dist/kongponents239.cjs +1 -1
- package/dist/kongponents239.es.js +5 -97
- package/dist/kongponents240.cjs +1 -1
- package/dist/kongponents240.es.js +121 -2
- package/dist/kongponents241.cjs +1 -1
- package/dist/kongponents241.es.js +25 -25
- package/dist/kongponents242.cjs +1 -1
- package/dist/kongponents242.es.js +38 -38
- package/dist/kongponents243.cjs +1 -1
- package/dist/kongponents243.es.js +36 -36
- package/dist/kongponents244.cjs +1 -1
- package/dist/kongponents244.es.js +5 -114
- package/dist/kongponents245.cjs +1 -1
- package/dist/kongponents245.es.js +5 -17
- package/dist/kongponents246.cjs +1 -1
- package/dist/kongponents246.es.js +5 -397
- package/dist/kongponents247.cjs +1 -1
- package/dist/kongponents247.es.js +3 -3
- package/dist/kongponents248.cjs +1 -1
- package/dist/kongponents248.es.js +5 -121
- package/dist/kongponents249.cjs +1 -1
- package/dist/kongponents249.es.js +5 -121
- package/dist/kongponents25.cjs +1 -1
- package/dist/kongponents25.es.js +8 -8
- package/dist/kongponents250.cjs +1 -1
- package/dist/kongponents250.es.js +121 -5
- package/dist/kongponents251.cjs +1 -1
- package/dist/kongponents251.es.js +7 -121
- package/dist/kongponents252.cjs +1 -1
- package/dist/kongponents252.es.js +177 -117
- package/dist/kongponents253.cjs +1 -1
- package/dist/kongponents253.es.js +5 -121
- package/dist/kongponents254.cjs +1 -1
- package/dist/kongponents254.es.js +5 -121
- package/dist/kongponents256.cjs +1 -1
- package/dist/kongponents256.es.js +39 -30
- package/dist/kongponents257.cjs +1 -0
- package/dist/kongponents257.es.js +330 -0
- package/dist/kongponents258.cjs +3 -1
- package/dist/kongponents258.es.js +586 -38
- package/dist/kongponents259.cjs +1 -1
- package/dist/kongponents259.es.js +25 -322
- package/dist/kongponents260.cjs +1 -1
- package/dist/kongponents260.es.js +173 -78
- package/dist/kongponents262.cjs +1 -1
- package/dist/kongponents262.es.js +86 -40
- package/dist/kongponents264.cjs +1 -1
- package/dist/kongponents264.es.js +244 -22
- package/dist/kongponents266.cjs +1 -1
- package/dist/kongponents266.es.js +6 -48
- package/dist/kongponents267.cjs +1 -0
- package/dist/kongponents267.es.js +182 -0
- package/dist/kongponents269.cjs +1 -0
- package/dist/kongponents269.es.js +66 -0
- package/dist/kongponents27.cjs +1 -1
- package/dist/kongponents27.es.js +1 -1
- package/dist/{kongponents382.cjs → kongponents271.cjs} +1 -1
- package/dist/{kongponents382.es.js → kongponents271.es.js} +5 -5
- package/dist/kongponents274.cjs +1 -1
- package/dist/kongponents274.es.js +2 -41
- package/dist/kongponents275.cjs +1 -0
- package/dist/kongponents275.es.js +123 -0
- package/dist/kongponents276.cjs +1 -1
- package/dist/kongponents276.es.js +2 -182
- package/dist/kongponents277.cjs +1 -0
- package/dist/{kongponents212.es.js → kongponents277.es.js} +17 -17
- package/dist/kongponents278.cjs +1 -1
- package/dist/kongponents278.es.js +121 -6
- package/dist/kongponents279.cjs +1 -1
- package/dist/kongponents279.es.js +25 -25
- package/dist/kongponents280.cjs +1 -1
- package/dist/kongponents280.es.js +213 -2
- package/dist/kongponents281.cjs +1 -1
- package/dist/kongponents281.es.js +9 -121
- package/dist/kongponents282.cjs +1 -1
- package/dist/kongponents282.es.js +7 -121
- package/dist/kongponents283.cjs +1 -1
- package/dist/kongponents283.es.js +8 -121
- package/dist/kongponents284.cjs +1 -1
- package/dist/kongponents284.es.js +5 -91
- package/dist/kongponents285.cjs +1 -0
- package/dist/kongponents285.es.js +12 -0
- package/dist/kongponents286.cjs +1 -1
- package/dist/kongponents286.es.js +9 -246
- package/dist/kongponents287.cjs +1 -0
- package/dist/kongponents287.es.js +604 -0
- package/dist/kongponents288.cjs +1 -1
- package/dist/kongponents288.es.js +70 -82
- package/dist/kongponents289.cjs +1 -0
- package/dist/kongponents289.es.js +7 -0
- package/dist/kongponents290.cjs +1 -1
- package/dist/kongponents290.es.js +20 -41
- package/dist/kongponents292.cjs +1 -1
- package/dist/kongponents292.es.js +17 -179
- package/dist/{kongponents320.cjs → kongponents293.cjs} +1 -1
- package/dist/{kongponents320.es.js → kongponents293.es.js} +2 -2
- package/dist/kongponents294.cjs +1 -1
- package/dist/kongponents294.es.js +6 -64
- package/dist/kongponents296.cjs +1 -1
- package/dist/kongponents296.es.js +8 -56
- package/dist/kongponents297.cjs +1 -0
- package/dist/kongponents297.es.js +10 -0
- package/dist/kongponents298.cjs +1 -1
- package/dist/kongponents298.es.js +7 -20
- package/dist/kongponents299.cjs +1 -1
- package/dist/kongponents299.es.js +8 -5
- package/dist/kongponents30.cjs +1 -1
- package/dist/kongponents30.es.js +1 -1
- package/dist/kongponents300.cjs +1 -1
- package/dist/kongponents300.es.js +119 -91
- package/dist/kongponents301.cjs +2 -1
- package/dist/kongponents301.es.js +46 -169
- package/dist/kongponents302.cjs +1 -1
- package/dist/kongponents302.es.js +8 -5
- package/dist/kongponents303.cjs +1 -1
- package/dist/kongponents303.es.js +57 -7
- package/dist/kongponents304.cjs +1 -1
- package/dist/kongponents304.es.js +65 -5
- package/dist/kongponents305.cjs +1 -1
- package/dist/kongponents305.es.js +4 -4
- package/dist/kongponents306.cjs +1 -1
- package/dist/kongponents306.es.js +4 -70
- package/dist/kongponents307.cjs +1 -1
- package/dist/kongponents307.es.js +21 -2
- package/dist/kongponents308.cjs +1 -1
- package/dist/kongponents308.es.js +5 -9
- package/dist/kongponents309.cjs +1 -1
- package/dist/kongponents309.es.js +96 -6
- package/dist/kongponents310.cjs +1 -1
- package/dist/kongponents310.es.js +171 -7
- package/dist/kongponents311.cjs +1 -1
- package/dist/kongponents311.es.js +5 -5
- package/dist/kongponents312.cjs +1 -1
- package/dist/kongponents312.es.js +6 -9
- package/dist/kongponents313.cjs +1 -1
- package/dist/kongponents313.es.js +5 -9
- package/dist/kongponents314.cjs +1 -1
- package/dist/kongponents314.es.js +5 -602
- package/dist/kongponents315.cjs +1 -1
- package/dist/kongponents315.es.js +67 -68
- package/dist/kongponents316.cjs +1 -1
- package/dist/kongponents316.es.js +2 -5
- package/dist/kongponents317.cjs +1 -1
- package/dist/kongponents317.es.js +56 -20
- package/dist/kongponents319.cjs +1 -1
- package/dist/kongponents319.es.js +82 -17
- package/dist/kongponents32.cjs +1 -1
- package/dist/kongponents32.es.js +4 -4
- package/dist/kongponents321.cjs +1 -1
- package/dist/kongponents321.es.js +41 -6
- package/dist/kongponents323.cjs +1 -1
- package/dist/kongponents323.es.js +4 -7
- package/dist/kongponents324.cjs +1 -1
- package/dist/kongponents324.es.js +5 -8
- package/dist/kongponents325.cjs +1 -1
- package/dist/kongponents325.es.js +19 -7
- package/dist/kongponents326.cjs +1 -1
- package/dist/kongponents326.es.js +3 -7
- package/dist/kongponents327.cjs +1 -1
- package/dist/kongponents327.es.js +4 -124
- package/dist/kongponents328.cjs +1 -2
- package/dist/kongponents328.es.js +5 -48
- package/dist/kongponents329.cjs +1 -1
- package/dist/kongponents329.es.js +8 -7
- package/dist/kongponents330.cjs +1 -1
- package/dist/kongponents330.es.js +6 -57
- package/dist/kongponents331.cjs +1 -1
- package/dist/kongponents331.es.js +4 -65
- package/dist/kongponents332.cjs +1 -1
- package/dist/kongponents332.es.js +16 -4
- package/dist/kongponents333.cjs +1 -1
- package/dist/kongponents333.es.js +4 -4
- package/dist/kongponents334.cjs +1 -1
- package/dist/kongponents334.es.js +8 -5
- package/dist/kongponents335.cjs +1 -1
- package/dist/kongponents335.es.js +7 -5
- package/dist/kongponents336.cjs +1 -1
- package/dist/kongponents336.es.js +3 -19
- package/dist/kongponents337.cjs +1 -1
- package/dist/kongponents337.es.js +2 -4
- package/dist/kongponents338.cjs +1 -1
- package/dist/kongponents338.es.js +5 -4
- package/dist/kongponents339.cjs +1 -1
- package/dist/kongponents339.es.js +9 -5
- package/dist/kongponents340.cjs +1 -1
- package/dist/kongponents340.es.js +4 -8
- package/dist/kongponents341.cjs +1 -1
- package/dist/kongponents341.es.js +3 -5
- package/dist/kongponents342.cjs +1 -1
- package/dist/kongponents342.es.js +3 -4
- package/dist/kongponents343.cjs +1 -1
- package/dist/kongponents343.es.js +3 -16
- package/dist/kongponents344.cjs +1 -1
- package/dist/kongponents344.es.js +7 -3
- package/dist/kongponents345.cjs +1 -1
- package/dist/kongponents345.es.js +7 -8
- package/dist/kongponents346.cjs +1 -1
- package/dist/kongponents346.es.js +4 -6
- package/dist/kongponents347.cjs +1 -1
- package/dist/kongponents347.es.js +9 -3
- package/dist/kongponents348.cjs +1 -1
- package/dist/kongponents348.es.js +6 -2
- package/dist/kongponents349.cjs +1 -1
- package/dist/kongponents349.es.js +9 -6
- package/dist/kongponents350.cjs +1 -1
- package/dist/kongponents350.es.js +6 -9
- package/dist/kongponents351.cjs +1 -1
- package/dist/kongponents351.es.js +17 -4
- package/dist/kongponents352.cjs +1 -1
- package/dist/kongponents352.es.js +12 -4
- package/dist/kongponents353.cjs +1 -1
- package/dist/kongponents353.es.js +7 -3
- package/dist/kongponents354.cjs +1 -1
- package/dist/kongponents354.es.js +12 -3
- package/dist/kongponents355.cjs +1 -1
- package/dist/kongponents355.es.js +9 -7
- package/dist/kongponents356.cjs +1 -1
- package/dist/kongponents356.es.js +5 -6
- package/dist/kongponents357.cjs +1 -1
- package/dist/kongponents357.es.js +9 -5
- package/dist/kongponents358.cjs +1 -1
- package/dist/kongponents358.es.js +15 -9
- package/dist/kongponents359.cjs +1 -1
- package/dist/kongponents359.es.js +17 -5
- package/dist/kongponents360.cjs +1 -1
- package/dist/kongponents360.es.js +6 -9
- package/dist/kongponents361.cjs +1 -1
- package/dist/kongponents361.es.js +10 -6
- package/dist/kongponents362.cjs +1 -1
- package/dist/kongponents362.es.js +6 -17
- package/dist/kongponents363.cjs +1 -1
- package/dist/kongponents363.es.js +7 -11
- package/dist/kongponents364.cjs +1 -1
- package/dist/kongponents364.es.js +5 -6
- package/dist/kongponents365.cjs +1 -1
- package/dist/kongponents365.es.js +6 -12
- package/dist/kongponents366.cjs +1 -1
- package/dist/kongponents366.es.js +9 -9
- package/dist/kongponents367.cjs +1 -1
- package/dist/kongponents367.es.js +7 -5
- package/dist/kongponents368.cjs +1 -1
- package/dist/kongponents368.es.js +3 -8
- package/dist/kongponents369.cjs +1 -1
- package/dist/kongponents369.es.js +5 -15
- package/dist/kongponents370.cjs +1 -1
- package/dist/kongponents370.es.js +15 -17
- package/dist/kongponents371.cjs +1 -1
- package/dist/kongponents371.es.js +374 -5
- package/dist/kongponents372.cjs +1 -1
- package/dist/kongponents372.es.js +126 -9
- package/dist/kongponents373.cjs +1 -1
- package/dist/kongponents373.es.js +24 -7
- package/dist/kongponents375.cjs +1 -1
- package/dist/kongponents375.es.js +48 -6
- package/dist/kongponents377.cjs +1 -1
- package/dist/kongponents377.es.js +34 -10
- package/dist/kongponents379.cjs +1 -1
- package/dist/kongponents379.es.js +23 -4
- package/dist/kongponents381.cjs +1 -1
- package/dist/kongponents381.es.js +45 -16
- package/dist/kongponents383.cjs +1 -0
- package/dist/kongponents383.es.js +43 -0
- package/dist/kongponents386.cjs +1 -3
- package/dist/kongponents386.es.js +5737 -551
- package/dist/kongponents387.cjs +1 -1
- package/dist/kongponents387.es.js +5 -1540
- package/dist/kongponents388.cjs +1 -1
- package/dist/kongponents388.es.js +6 -5
- package/dist/kongponents389.cjs +1 -1
- package/dist/kongponents389.es.js +87 -6
- package/dist/kongponents391.cjs +1 -1
- package/dist/kongponents391.es.js +34 -5763
- package/dist/kongponents393.cjs +1 -1
- package/dist/kongponents393.es.js +11 -95
- package/dist/kongponents394.cjs +1 -0
- package/dist/kongponents394.es.js +13 -0
- package/dist/kongponents395.cjs +1 -1
- package/dist/kongponents395.es.js +13 -25
- package/dist/kongponents396.cjs +1 -1
- package/dist/kongponents396.es.js +11 -122
- package/dist/kongponents397.cjs +1 -0
- package/dist/kongponents397.es.js +21 -0
- package/dist/kongponents398.cjs +1 -1
- package/dist/kongponents398.es.js +5 -71
- package/dist/kongponents399.cjs +1 -1
- package/dist/kongponents399.es.js +54 -2
- package/dist/kongponents400.cjs +1 -1
- package/dist/kongponents400.es.js +2 -13
- package/dist/kongponents401.cjs +1 -1
- package/dist/kongponents401.es.js +8 -22
- package/dist/kongponents402.cjs +1 -1
- package/dist/kongponents402.es.js +4 -21
- package/dist/kongponents403.cjs +1 -1
- package/dist/kongponents403.es.js +12 -19
- package/dist/kongponents404.cjs +1 -1
- package/dist/kongponents404.es.js +14 -614
- package/dist/kongponents405.cjs +1 -1
- package/dist/kongponents405.es.js +3 -80
- package/dist/kongponents406.cjs +1 -1
- package/dist/kongponents406.es.js +12 -14
- package/dist/kongponents407.cjs +1 -1
- package/dist/kongponents407.es.js +9 -26
- package/dist/kongponents408.cjs +1 -1
- package/dist/kongponents408.es.js +52 -16
- package/dist/kongponents409.cjs +1 -1
- package/dist/kongponents409.es.js +56 -14
- package/dist/kongponents410.cjs +1 -1
- package/dist/kongponents410.es.js +58 -16
- package/dist/kongponents411.cjs +1 -1
- package/dist/kongponents411.es.js +33 -15
- package/dist/kongponents412.cjs +1 -1
- package/dist/kongponents412.es.js +31 -24
- package/dist/kongponents413.cjs +1 -1
- package/dist/kongponents413.es.js +71 -17
- package/dist/kongponents414.cjs +1 -1
- package/dist/kongponents414.es.js +72 -2
- package/dist/kongponents415.cjs +1 -1
- package/dist/kongponents415.es.js +77 -17
- package/dist/kongponents416.cjs +1 -1
- package/dist/kongponents416.es.js +77 -64
- package/dist/kongponents417.cjs +1 -1
- package/dist/kongponents417.es.js +48 -5
- package/dist/kongponents418.cjs +1 -1
- package/dist/kongponents418.es.js +48 -2
- package/dist/kongponents419.cjs +1 -1
- package/dist/kongponents419.es.js +47 -2
- package/dist/kongponents420.cjs +1 -1
- package/dist/kongponents420.es.js +48 -2
- package/dist/kongponents421.cjs +1 -1
- package/dist/kongponents421.es.js +80 -11
- package/dist/kongponents422.cjs +1 -1
- package/dist/kongponents422.es.js +92 -11
- package/dist/kongponents423.cjs +1 -1
- package/dist/kongponents423.es.js +92 -13
- package/dist/kongponents424.cjs +1 -1
- package/dist/kongponents424.es.js +91 -11
- package/dist/kongponents425.cjs +1 -1
- package/dist/kongponents425.es.js +58 -19
- package/dist/kongponents426.cjs +1 -1
- package/dist/kongponents426.es.js +58 -6
- package/dist/kongponents427.cjs +1 -1
- package/dist/kongponents427.es.js +57 -53
- package/dist/kongponents428.cjs +1 -1
- package/dist/kongponents428.es.js +46 -8
- package/dist/kongponents429.cjs +1 -1
- package/dist/kongponents429.es.js +46 -5
- package/dist/kongponents430.cjs +1 -1
- package/dist/kongponents430.es.js +46 -13
- package/dist/kongponents431.cjs +1 -1
- package/dist/kongponents431.es.js +47 -15
- package/dist/kongponents432.cjs +1 -1
- package/dist/kongponents432.es.js +46 -4
- package/dist/kongponents433.cjs +1 -1
- package/dist/kongponents433.es.js +45 -12
- package/dist/kongponents434.cjs +1 -1
- package/dist/kongponents434.es.js +34 -10
- package/dist/kongponents435.cjs +1 -1
- package/dist/kongponents435.es.js +34 -44
- package/dist/kongponents436.cjs +1 -1
- package/dist/kongponents436.es.js +35 -49
- package/dist/kongponents437.cjs +1 -1
- package/dist/kongponents437.es.js +27 -53
- package/dist/kongponents438.cjs +1 -1
- package/dist/kongponents438.es.js +26 -26
- package/dist/kongponents439.cjs +1 -1
- package/dist/kongponents439.es.js +17 -30
- package/dist/kongponents440.cjs +1 -1
- package/dist/kongponents440.es.js +2 -72
- package/dist/kongponents441.cjs +1 -1
- package/dist/kongponents441.es.js +12 -71
- package/dist/kongponents442.cjs +1 -1
- package/dist/kongponents442.es.js +17 -77
- package/dist/kongponents443.cjs +1 -1
- package/dist/kongponents443.es.js +64 -77
- package/dist/kongponents444.cjs +1 -1
- package/dist/kongponents444.es.js +5 -48
- package/dist/kongponents445.cjs +1 -1
- package/dist/kongponents445.es.js +70 -46
- package/dist/kongponents446.cjs +1 -1
- package/dist/kongponents446.es.js +2 -47
- package/dist/kongponents447.cjs +1 -1
- package/dist/kongponents447.es.js +22 -47
- package/dist/kongponents448.cjs +1 -1
- package/dist/kongponents448.es.js +21 -79
- package/dist/kongponents449.cjs +1 -1
- package/dist/kongponents449.es.js +20 -91
- package/dist/kongponents450.cjs +1 -1
- package/dist/kongponents450.es.js +609 -86
- package/dist/kongponents451.cjs +1 -1
- package/dist/kongponents451.es.js +78 -88
- package/dist/kongponents452.cjs +1 -1
- package/dist/kongponents452.es.js +14 -57
- package/dist/kongponents453.cjs +1 -1
- package/dist/kongponents453.es.js +26 -57
- package/dist/kongponents454.cjs +1 -1
- package/dist/kongponents454.es.js +16 -57
- package/dist/kongponents455.cjs +1 -1
- package/dist/kongponents455.es.js +14 -46
- package/dist/kongponents456.cjs +1 -1
- package/dist/kongponents456.es.js +16 -45
- package/dist/kongponents457.cjs +1 -1
- package/dist/kongponents457.es.js +15 -47
- package/dist/kongponents458.cjs +1 -1
- package/dist/kongponents458.es.js +24 -47
- package/dist/kongponents459.cjs +1 -1
- package/dist/kongponents459.es.js +2 -46
- package/dist/kongponents460.cjs +1 -1
- package/dist/kongponents460.es.js +2 -46
- package/dist/kongponents461.cjs +1 -1
- package/dist/kongponents461.es.js +25 -34
- package/dist/kongponents462.cjs +1 -1
- package/dist/kongponents462.es.js +121 -42
- package/dist/kongponents464.cjs +1 -1
- package/dist/kongponents464.es.js +8 -33
- package/dist/kongponents465.cjs +1 -1
- package/dist/kongponents465.es.js +6 -33
- package/dist/kongponents466.cjs +1 -1
- package/dist/kongponents466.es.js +9 -8
- package/dist/kongponents467.cjs +1 -1
- package/dist/kongponents467.es.js +5 -5
- package/dist/kongponents468.cjs +1 -1
- package/dist/kongponents468.es.js +10 -9
- package/dist/kongponents469.cjs +1 -1
- package/dist/kongponents469.es.js +13 -8
- package/dist/kongponents470.cjs +1 -1
- package/dist/kongponents470.es.js +3 -15
- package/dist/kongponents471.cjs +1 -1
- package/dist/kongponents471.es.js +7 -5
- package/dist/kongponents472.cjs +1 -1
- package/dist/kongponents472.es.js +3 -3
- package/dist/kongponents473.cjs +1 -1
- package/dist/kongponents473.es.js +10 -7
- package/dist/kongponents474.cjs +1 -1
- package/dist/kongponents474.es.js +8 -3
- package/dist/kongponents475.cjs +1 -1
- package/dist/kongponents475.es.js +5 -10
- package/dist/kongponents476.cjs +1 -1
- package/dist/kongponents476.es.js +2 -8
- package/dist/kongponents477.cjs +1 -1
- package/dist/kongponents477.es.js +12 -5
- package/dist/kongponents478.cjs +1 -1
- package/dist/kongponents478.es.js +5 -2
- package/dist/kongponents479.cjs +1 -1
- package/dist/kongponents479.es.js +5 -12
- package/dist/kongponents480.cjs +1 -1
- package/dist/kongponents480.es.js +29 -4
- package/dist/kongponents481.cjs +1 -1
- package/dist/kongponents481.es.js +3 -6
- package/dist/kongponents482.cjs +1 -1
- package/dist/kongponents482.es.js +25 -29
- package/dist/kongponents483.cjs +1 -1
- package/dist/kongponents483.es.js +4 -3
- package/dist/kongponents484.cjs +1 -1
- package/dist/kongponents484.es.js +4 -26
- package/dist/kongponents485.cjs +1 -1
- package/dist/kongponents485.es.js +4 -4
- package/dist/kongponents486.cjs +1 -1
- package/dist/kongponents486.es.js +4 -4
- package/dist/kongponents487.cjs +1 -1
- package/dist/kongponents487.es.js +4 -4
- package/dist/kongponents488.cjs +1 -1
- package/dist/kongponents488.es.js +15 -4
- package/dist/kongponents489.cjs +1 -1
- package/dist/kongponents489.es.js +27 -4
- package/dist/kongponents490.cjs +1 -1
- package/dist/kongponents490.es.js +15 -14
- package/dist/kongponents491.cjs +1 -1
- package/dist/kongponents491.es.js +8 -25
- package/dist/kongponents492.cjs +1 -1
- package/dist/kongponents492.es.js +4 -15
- package/dist/kongponents493.cjs +1 -1
- package/dist/kongponents493.es.js +13 -9
- package/dist/kongponents494.cjs +1 -1
- package/dist/kongponents494.es.js +8 -4
- package/dist/kongponents495.cjs +1 -1
- package/dist/kongponents495.es.js +3 -14
- package/dist/kongponents496.cjs +1 -1
- package/dist/kongponents496.es.js +5 -8
- package/dist/kongponents497.cjs +1 -1
- package/dist/kongponents497.es.js +6 -3
- package/dist/kongponents498.cjs +1 -1
- package/dist/kongponents498.es.js +7 -5
- package/dist/kongponents499.cjs +1 -1
- package/dist/kongponents499.es.js +5 -5
- package/dist/kongponents500.cjs +1 -1
- package/dist/kongponents500.es.js +10 -7
- package/dist/kongponents501.cjs +1 -1
- package/dist/kongponents501.es.js +5 -5
- package/dist/kongponents502.cjs +1 -1
- package/dist/kongponents502.es.js +4 -10
- package/dist/kongponents503.cjs +1 -1
- package/dist/kongponents503.es.js +4 -5
- package/dist/kongponents504.cjs +1 -1
- package/dist/kongponents504.es.js +5 -4
- package/dist/kongponents505.cjs +1 -1
- package/dist/kongponents505.es.js +8 -5
- package/dist/kongponents506.cjs +1 -1
- package/dist/kongponents506.es.js +6 -5
- package/dist/kongponents507.cjs +1 -1
- package/dist/kongponents507.es.js +10 -8
- package/dist/kongponents508.cjs +1 -1
- package/dist/kongponents508.es.js +6 -6
- package/dist/kongponents509.cjs +1 -1
- package/dist/kongponents509.es.js +22 -10
- package/dist/kongponents510.cjs +1 -1
- package/dist/kongponents510.es.js +6 -6
- package/dist/kongponents511.cjs +1 -1
- package/dist/kongponents511.es.js +6 -21
- package/dist/kongponents512.cjs +1 -1
- package/dist/kongponents512.es.js +6 -6
- package/dist/kongponents513.cjs +1 -1
- package/dist/kongponents513.es.js +8 -6
- package/dist/kongponents514.cjs +1 -1
- package/dist/kongponents514.es.js +10 -6
- package/dist/kongponents515.cjs +1 -1
- package/dist/kongponents515.es.js +16 -8
- package/dist/kongponents516.cjs +1 -1
- package/dist/kongponents516.es.js +7 -374
- package/dist/kongponents517.cjs +1 -1
- package/dist/kongponents517.es.js +10 -127
- package/dist/kongponents518.cjs +1 -1
- package/dist/kongponents518.es.js +14 -213
- package/dist/kongponents519.cjs +1 -1
- package/dist/kongponents519.es.js +13 -10
- package/dist/kongponents520.cjs +1 -1
- package/dist/kongponents520.es.js +65 -15
- package/dist/kongponents521.cjs +1 -1
- package/dist/kongponents521.es.js +31 -2
- package/dist/kongponents522.cjs +1 -1
- package/dist/kongponents522.es.js +11 -2
- package/dist/kongponents523.cjs +1 -1
- package/dist/kongponents523.es.js +120 -18
- package/dist/kongponents524.cjs +1 -1
- package/dist/kongponents524.es.js +86 -2
- package/dist/kongponents525.cjs +1 -1
- package/dist/kongponents525.es.js +5 -21
- package/dist/kongponents526.cjs +1 -1
- package/dist/kongponents526.es.js +25 -2
- package/dist/kongponents527.cjs +1 -1
- package/dist/kongponents527.es.js +96 -15
- package/dist/kongponents528.cjs +1 -1
- package/dist/kongponents528.es.js +47 -2
- package/dist/kongponents529.cjs +1 -1
- package/dist/kongponents529.es.js +9 -22
- package/dist/kongponents530.cjs +1 -1
- package/dist/kongponents530.es.js +9 -22
- package/dist/kongponents531.cjs +1 -1
- package/dist/kongponents531.es.js +13 -25
- package/dist/kongponents532.cjs +1 -1
- package/dist/kongponents532.es.js +10 -22
- package/dist/kongponents533.cjs +1 -1
- package/dist/kongponents533.es.js +5 -31
- package/dist/kongponents534.cjs +1 -1
- package/dist/kongponents534.es.js +5 -15
- package/dist/kongponents535.cjs +1 -1
- package/dist/kongponents535.es.js +10 -65
- package/dist/kongponents536.cjs +1 -1
- package/dist/kongponents536.es.js +8 -2
- package/dist/kongponents537.cjs +1 -1
- package/dist/kongponents537.es.js +7 -2
- package/dist/kongponents538.es.js +2 -2
- package/dist/kongponents539.cjs +1 -1
- package/dist/kongponents539.es.js +2 -2
- package/dist/kongponents540.es.js +2 -2
- package/dist/kongponents541.cjs +1 -1
- package/dist/kongponents541.es.js +16 -27
- package/dist/kongponents543.cjs +1 -1
- package/dist/kongponents543.es.js +21 -3
- package/dist/kongponents544.cjs +1 -1
- package/dist/kongponents544.es.js +2 -67
- package/dist/kongponents545.cjs +1 -1
- package/dist/kongponents545.es.js +16 -31
- package/dist/kongponents546.cjs +1 -1
- package/dist/kongponents546.es.js +2 -11
- package/dist/kongponents547.cjs +1 -1
- package/dist/kongponents547.es.js +22 -120
- package/dist/kongponents548.cjs +1 -1
- package/dist/kongponents548.es.js +22 -85
- package/dist/kongponents549.cjs +1 -1
- package/dist/kongponents549.es.js +25 -7
- package/dist/kongponents550.cjs +1 -1
- package/dist/kongponents550.es.js +22 -10
- package/dist/kongponents551.cjs +1 -1
- package/dist/kongponents551.es.js +31 -13
- package/dist/kongponents552.cjs +1 -1
- package/dist/kongponents552.es.js +15 -13
- package/dist/kongponents553.cjs +1 -1
- package/dist/kongponents553.es.js +65 -5
- package/dist/kongponents554.cjs +1 -1
- package/dist/kongponents554.es.js +2 -6
- package/dist/kongponents555.cjs +1 -1
- package/dist/kongponents555.es.js +2 -6
- package/dist/kongponents556.cjs +1 -1
- package/dist/kongponents556.es.js +2 -11
- package/dist/kongponents557.cjs +1 -1
- package/dist/kongponents557.es.js +2 -8
- package/dist/kongponents558.cjs +1 -1
- package/dist/kongponents558.es.js +2 -7
- package/dist/kongponents559.cjs +1 -1
- package/dist/kongponents559.es.js +30 -25
- package/dist/kongponents560.cjs +1 -1
- package/dist/kongponents560.es.js +3 -96
- package/dist/kongponents561.cjs +1 -1
- package/dist/kongponents561.es.js +2 -47
- package/dist/kongponents562.cjs +1 -1
- package/dist/kongponents562.es.js +1539 -9
- package/dist/kongponents563.cjs +1 -1
- package/dist/kongponents563.es.js +5 -10
- package/dist/kongponents564.cjs +1 -1
- package/dist/kongponents564.es.js +6 -13
- package/dist/kongponents565.cjs +1 -1
- package/dist/kongponents565.es.js +17 -10
- package/dist/kongponents566.cjs +1 -1
- package/dist/kongponents566.es.js +4 -6
- package/dist/kongponents567.cjs +1 -1
- package/dist/kongponents567.es.js +4 -17
- package/dist/kongponents568.cjs +1 -1
- package/dist/kongponents568.es.js +3 -4
- package/dist/kongponents569.cjs +1 -1
- package/dist/kongponents569.es.js +3 -4
- package/dist/kongponents570.cjs +1 -1
- package/dist/kongponents570.es.js +14 -3
- package/dist/kongponents571.cjs +1 -1
- package/dist/kongponents571.es.js +6 -3
- package/dist/kongponents572.cjs +1 -1
- package/dist/kongponents572.es.js +7 -14
- package/dist/kongponents573.cjs +1 -1
- package/dist/kongponents573.es.js +10 -6
- package/dist/kongponents574.cjs +1 -1
- package/dist/kongponents574.es.js +5 -8
- package/dist/kongponents575.cjs +1 -1
- package/dist/kongponents575.es.js +3 -10
- package/dist/kongponents576.cjs +1 -1
- package/dist/kongponents576.es.js +3 -4
- package/dist/kongponents577.cjs +1 -1
- package/dist/kongponents577.es.js +37 -3
- package/dist/kongponents578.cjs +1 -1
- package/dist/kongponents578.es.js +42 -3
- package/dist/kongponents579.cjs +1 -1
- package/dist/kongponents579.es.js +29 -33
- package/dist/kongponents580.cjs +1 -1
- package/dist/kongponents580.es.js +3 -43
- package/dist/kongponents581.cjs +1 -1
- package/dist/kongponents581.es.js +16 -32
- package/dist/kongponents582.cjs +1 -1
- package/dist/kongponents582.es.js +6 -3
- package/dist/kongponents583.cjs +1 -1
- package/dist/kongponents583.es.js +94 -17
- package/dist/kongponents585.cjs +1 -1
- package/dist/kongponents585.es.js +7 -29
- package/dist/kongponents586.cjs +1 -1
- package/dist/kongponents586.es.js +12 -117
- package/dist/kongponents587.cjs +1 -1
- package/dist/kongponents587.es.js +27 -28
- package/dist/kongponents588.cjs +1 -1
- package/dist/kongponents588.es.js +14 -9
- package/dist/kongponents589.cjs +1 -1
- package/dist/kongponents589.es.js +11 -13
- package/dist/kongponents590.cjs +1 -1
- package/dist/kongponents590.es.js +2 -33
- package/dist/kongponents591.cjs +1 -1
- package/dist/kongponents591.es.js +2 -29
- package/dist/kongponents592.cjs +1 -1
- package/dist/kongponents592.es.js +2 -11
- package/dist/kongponents593.cjs +1 -1
- package/dist/kongponents593.es.js +2 -13
- package/dist/kongponents594.cjs +1 -1
- package/dist/kongponents594.es.js +20 -17
- package/dist/kongponents595.cjs +1 -1
- package/dist/kongponents595.es.js +23 -23
- package/dist/kongponents596.cjs +1 -1
- package/dist/kongponents596.es.js +2 -17
- package/dist/kongponents597.cjs +1 -1
- package/dist/kongponents597.es.js +2 -97
- package/dist/kongponents598.cjs +1 -1
- package/dist/kongponents598.es.js +26 -44
- package/dist/kongponents599.cjs +1 -1
- package/dist/kongponents599.es.js +26 -28
- package/dist/kongponents600.cjs +1 -1
- package/dist/kongponents600.es.js +2 -72
- package/dist/kongponents601.cjs +1 -1
- package/dist/kongponents601.es.js +2 -52
- package/dist/kongponents602.cjs +1 -1
- package/dist/kongponents602.es.js +2 -35
- package/dist/kongponents603.cjs +1 -1
- package/dist/kongponents603.es.js +2 -42
- package/dist/kongponents605.cjs +1 -1
- package/dist/kongponents605.es.js +77 -2
- package/dist/kongponents606.cjs +1 -1
- package/dist/kongponents606.es.js +43 -2
- package/dist/kongponents607.cjs +1 -1
- package/dist/kongponents607.es.js +21 -2
- package/dist/kongponents608.cjs +1 -1
- package/dist/kongponents608.es.js +131 -19
- package/dist/kongponents609.cjs +1 -1
- package/dist/kongponents609.es.js +96 -22
- package/dist/kongponents610.cjs +1 -1
- package/dist/kongponents610.es.js +29 -2
- package/dist/kongponents611.cjs +1 -1
- package/dist/kongponents611.es.js +120 -2
- package/dist/kongponents612.cjs +1 -1
- package/dist/kongponents612.es.js +29 -26
- package/dist/kongponents613.cjs +1 -1
- package/dist/kongponents613.es.js +10 -26
- package/dist/kongponents614.cjs +1 -1
- package/dist/kongponents614.es.js +14 -2
- package/dist/kongponents615.cjs +1 -1
- package/dist/kongponents615.es.js +33 -2
- package/dist/kongponents616.cjs +1 -1
- package/dist/kongponents616.es.js +29 -2
- package/dist/kongponents617.cjs +1 -1
- package/dist/kongponents617.es.js +11 -2
- package/dist/kongponents618.cjs +1 -1
- package/dist/kongponents618.es.js +13 -2
- package/dist/kongponents619.cjs +1 -1
- package/dist/kongponents619.es.js +17 -76
- package/dist/kongponents620.cjs +1 -1
- package/dist/kongponents620.es.js +23 -42
- package/dist/kongponents621.cjs +1 -1
- package/dist/kongponents621.es.js +16 -20
- package/dist/kongponents622.cjs +1 -1
- package/dist/kongponents622.es.js +96 -132
- package/dist/kongponents623.cjs +1 -1
- package/dist/kongponents623.es.js +44 -97
- package/dist/kongponents624.cjs +1 -1
- package/dist/kongponents624.es.js +27 -5
- package/dist/kongponents625.cjs +1 -1
- package/dist/kongponents625.es.js +70 -13
- package/dist/kongponents626.cjs +1 -1
- package/dist/kongponents626.es.js +50 -27
- package/dist/kongponents627.cjs +1 -1
- package/dist/kongponents627.es.js +34 -15
- package/dist/kongponents628.cjs +1 -1
- package/dist/kongponents628.es.js +41 -11
- package/dist/kongponents629.cjs +1 -1
- package/dist/kongponents629.es.js +3 -3
- package/dist/kongponents630.cjs +1 -1
- package/dist/kongponents630.es.js +9 -3
- package/dist/kongponents631.cjs +1 -1
- package/dist/kongponents631.es.js +5 -9
- package/dist/kongponents632.cjs +1 -1
- package/dist/kongponents632.es.js +4 -5
- package/dist/kongponents633.cjs +1 -1
- package/dist/kongponents633.es.js +5 -4
- package/dist/kongponents634.cjs +1 -1
- package/dist/kongponents634.es.js +3 -5
- package/dist/kongponents635.cjs +1 -1
- package/dist/kongponents635.es.js +1 -1
- package/dist/kongponents642.cjs +1 -1
- package/dist/kongponents642.es.js +2 -4
- package/dist/kongponents643.cjs +1 -1
- package/dist/kongponents643.es.js +2 -4
- package/dist/kongponents644.cjs +1 -1
- package/dist/kongponents644.es.js +2 -16
- package/dist/kongponents645.cjs +1 -1
- package/dist/kongponents645.es.js +2 -4
- package/dist/kongponents646.cjs +1 -1
- package/dist/kongponents646.es.js +2 -10
- package/dist/kongponents647.cjs +1 -1
- package/dist/kongponents647.es.js +2 -5
- package/dist/kongponents648.cjs +1 -1
- package/dist/kongponents648.es.js +16 -5
- package/dist/kongponents649.cjs +1 -1
- package/dist/kongponents649.es.js +2 -10
- package/dist/kongponents650.cjs +1 -1
- package/dist/kongponents650.es.js +2 -8
- package/dist/kongponents651.cjs +1 -1
- package/dist/kongponents651.es.js +24 -4
- package/dist/kongponents652.cjs +1 -1
- package/dist/kongponents652.es.js +2 -4
- package/dist/kongponents653.cjs +1 -1
- package/dist/kongponents653.es.js +39 -4
- package/dist/kongponents654.cjs +1 -1
- package/dist/kongponents654.es.js +25 -11
- package/dist/kongponents655.cjs +1 -1
- package/dist/kongponents655.es.js +20 -9
- package/dist/kongponents656.cjs +1 -1
- package/dist/kongponents656.es.js +7 -30
- package/dist/kongponents657.cjs +1 -1
- package/dist/kongponents657.es.js +3 -24
- package/dist/kongponents658.cjs +1 -1
- package/dist/kongponents658.es.js +6 -51
- package/dist/kongponents659.cjs +1 -1
- package/dist/kongponents659.es.js +5 -1
- package/dist/kongponents660.cjs +1 -1
- package/dist/kongponents660.es.js +5 -8
- package/dist/kongponents661.cjs +1 -1
- package/dist/kongponents661.es.js +4 -21
- package/dist/kongponents662.cjs +1 -1
- package/dist/kongponents662.es.js +7 -7
- package/dist/kongponents663.cjs +1 -1
- package/dist/kongponents663.es.js +15 -6
- package/dist/kongponents664.cjs +1 -1
- package/dist/kongponents664.es.js +9 -5
- package/dist/kongponents665.cjs +1 -1
- package/dist/kongponents665.es.js +3 -6
- package/dist/kongponents666.cjs +1 -1
- package/dist/kongponents666.es.js +4 -15
- package/dist/kongponents667.cjs +1 -1
- package/dist/kongponents667.es.js +5 -3
- package/dist/kongponents668.cjs +1 -1
- package/dist/kongponents668.es.js +30 -6
- package/dist/kongponents669.cjs +1 -1
- package/dist/kongponents669.es.js +14 -14
- package/dist/kongponents670.cjs +1 -1
- package/dist/kongponents670.es.js +51 -8
- package/dist/kongponents671.cjs +1 -1
- package/dist/kongponents671.es.js +9 -2
- package/dist/kongponents672.cjs +1 -1
- package/dist/kongponents672.es.js +5 -2
- package/dist/kongponents673.cjs +1 -1
- package/dist/kongponents673.es.js +6 -2
- package/dist/kongponents674.cjs +1 -1
- package/dist/kongponents674.es.js +4 -2
- package/dist/kongponents675.cjs +1 -1
- package/dist/kongponents675.es.js +16 -2
- package/dist/kongponents676.cjs +1 -1
- package/dist/kongponents676.es.js +4 -2
- package/dist/kongponents677.cjs +1 -1
- package/dist/kongponents677.es.js +9 -16
- package/dist/kongponents678.cjs +1 -1
- package/dist/kongponents678.es.js +4 -2
- package/dist/kongponents679.cjs +1 -1
- package/dist/kongponents679.es.js +12 -2
- package/dist/kongponents680.cjs +1 -1
- package/dist/kongponents680.es.js +9 -24
- package/dist/kongponents681.cjs +1 -1
- package/dist/kongponents681.es.js +25 -2
- package/dist/kongponents682.cjs +1 -1
- package/dist/kongponents682.es.js +3 -38
- package/dist/kongponents683.cjs +1 -1
- package/dist/kongponents683.es.js +8 -25
- package/dist/kongponents684.cjs +1 -1
- package/dist/kongponents684.es.js +1 -1
- package/dist/kongponents685.cjs +1 -1
- package/dist/kongponents685.es.js +1 -1
- package/dist/kongponents686.cjs +1 -1
- package/dist/kongponents686.es.js +2 -5
- package/dist/kongponents687.cjs +1 -1
- package/dist/kongponents687.es.js +2 -9
- package/dist/kongponents688.cjs +1 -1
- package/dist/kongponents688.es.js +2 -7
- package/dist/kongponents689.cjs +1 -1
- package/dist/kongponents689.es.js +2 -19
- package/dist/kongponents690.cjs +1 -1
- package/dist/kongponents690.es.js +4 -14
- package/dist/kongponents691.cjs +1 -1
- package/dist/kongponents691.es.js +9 -2
- package/dist/kongponents692.cjs +1 -1
- package/dist/kongponents692.es.js +7 -2
- package/dist/kongponents693.cjs +1 -1
- package/dist/kongponents693.es.js +19 -2
- package/dist/kongponents694.cjs +1 -1
- package/dist/kongponents694.es.js +15 -2
- package/dist/kongponents73.cjs +1 -1
- package/dist/kongponents73.es.js +3 -3
- package/dist/kongponents80.cjs +1 -1
- package/dist/kongponents80.es.js +7 -7
- package/dist/kongponents83.cjs +1 -1
- package/dist/kongponents83.es.js +1 -1
- package/dist/kongponents85.cjs +1 -1
- package/dist/kongponents85.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 +3 -3
- package/dist/kongponents97.cjs +1 -1
- package/dist/kongponents97.es.js +15 -15
- package/package.json +1 -1
- package/dist/kongponents212.cjs +0 -1
- package/dist/kongponents268.cjs +0 -1
- package/dist/kongponents268.es.js +0 -36
- package/dist/kongponents270.cjs +0 -1
- package/dist/kongponents270.es.js +0 -25
- package/dist/kongponents272.cjs +0 -1
- package/dist/kongponents272.es.js +0 -47
- package/dist/kongponents374.cjs +0 -1
- package/dist/kongponents374.es.js +0 -10
- package/dist/kongponents376.cjs +0 -1
- package/dist/kongponents376.es.js +0 -9
- package/dist/kongponents378.cjs +0 -1
- package/dist/kongponents378.es.js +0 -10
- package/dist/kongponents380.cjs +0 -1
- package/dist/kongponents380.es.js +0 -8
- package/dist/kongponents385.cjs +0 -1
- package/dist/kongponents385.es.js +0 -4
- package/dist/kongponents390.cjs +0 -1
- package/dist/kongponents390.es.js +0 -4
- package/dist/kongponents392.cjs +0 -1
- package/dist/kongponents392.es.js +0 -7
- package/dist/kongponents463.cjs +0 -1
- package/dist/kongponents463.es.js +0 -45
- package/dist/kongponents584.cjs +0 -1
- package/dist/kongponents584.es.js +0 -8
- /package/dist/{kongponents384.cjs → kongponents273.cjs} +0 -0
- /package/dist/{kongponents384.es.js → kongponents273.es.js} +0 -0
- /package/dist/{kongponents318.cjs → kongponents291.cjs} +0 -0
- /package/dist/{kongponents318.es.js → kongponents291.es.js} +0 -0
- /package/dist/{kongponents322.cjs → kongponents295.cjs} +0 -0
- /package/dist/{kongponents322.es.js → kongponents295.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("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("./kongponents217.cjs"),f=require("./kongponents190.cjs"),b={class:"k-collapse"},h={class:"collapse-trigger"},C=["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(),a=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)}}),o=e.computed(()=>s.value?a.value:l.modelValue),i=t=>{s.value||(a.value=l.modelValue),a.value=t!==void 0?t:!a.value,s.value=!0,r("toggle",a.value),r("update:modelValue",a.value)};return e.watch(v,(t,n)=>{t!==n&&i(t)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",b,[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",h,[e.renderSlot(t.$slots,"trigger",{isCollapsed:o.value,toggle:i},()=>[e.createElementVNode("button",{"aria-controls":e.unref(d),"aria-expanded":!o.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.default),{class:e.normalizeClass(["collapse-trigger-icon",{"collapse-expanded":!o.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,C)],!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,!o.value]])]),_:3})]))}});exports.default=N;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as I, useSlots as N, useId as T, ref as f, computed as u, watch as w, openBlock as n, createElementBlock as g, createElementVNode as r, normalizeClass as h, createBlock as z, 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
|
-
import M from "./
|
|
3
|
-
import { KUI_ICON_SIZE_40 as O } from "./
|
|
2
|
+
import M from "./kongponents217.es.js";
|
|
3
|
+
import { KUI_ICON_SIZE_40 as O } from "./kongponents190.es.js";
|
|
4
4
|
const U = { class: "k-collapse" }, Z = { class: "collapse-trigger" }, j = ["aria-controls", "aria-expanded", "aria-label"], q = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "collapse-trigger-label",
|
package/dist/kongponents104.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),N=require("./kongponents38.cjs"),U=require("./kongponents62.cjs"),L=require("./kongponents65.cjs");;/* empty css */require("./kongponents7.cjs");const R=require("./kongponents12.cjs"),W=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),N=require("./kongponents38.cjs"),U=require("./kongponents62.cjs"),L=require("./kongponents65.cjs");;/* empty css */require("./kongponents7.cjs");const R=require("./kongponents12.cjs"),W=require("./kongponents213.cjs"),S=require("./kongponents190.cjs"),F=require("./kongponents183.cjs"),G=require("./kongponents214.cjs"),T=require("./kongponents215.cjs"),V=require("./kongponents216.cjs"),H=["tabindex"],Z=["innerHTML"],j={key:1,class:"range-display"},X={key:3,class:"relative-periods-container"},J={class:"timeframe-section-title"},Q={class:"timeframe-buttons"},Y={class:"datetime-picker-footer-container"},_=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,w=e.ref(null),D=e.computed(()=>a.mode!==R.DateTimePickerModes.Relative),o=e.computed(()=>R.ModeArrayCustom.includes(a.mode)&&!a.range),s=e.computed(()=>a.timePeriods.length>0),u=e.computed(()=>t.tabName==="custom"||!s.value),v=e.ref(!0),h=e.ref(!1),x=e.ref(0),B={start:null,end:null},y=e.ref(a.modelValue.start||null),m=e.ref(a.modelValue||B),P=o.value?y:m,g=e.useTemplateRef("calendarWrapperRef"),$=e.computed(()=>({width:F.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=o.value?!l.start:!l.start||!l.end,i=l?.start||new Date,d=l?.end||null;v.value=!!n,!o.value&&l&&l.start&&l.end?(m.value.start=i,m.value.end=d):l&&l.start&&(y.value=i),t.selectedRange=t.previouslySelectedRange={start:i,end:d}},C=(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()),d=new Date(t.selectedTimeframe.end());t.fullRangeDisplay=E({start:i,end:d},!1),t.selectedRange.start=i,t.selectedRange.end=d}else t.fullRangeDisplay="";v.value=!1,n&&z()}},K=()=>{m.value=B,y.value=null,t.abbreviatedDisplay=a.placeholder,t.fullRangeDisplay="",s.value&&(t.selectedTimeframe=a.timePeriods[0]?.values[0]||null),t.selectedRange=t.previouslySelectedRange=B,c("change",t.selectedRange),c("update:modelValue",t.selectedRange)},E=(l,n)=>{const{start:i,end:d}=l;let r=a.timeGranularity==="secondly"?"PP hh:mm:ss a":"PP hh:mm a";const f=T.default(i,k,"(z)");return!D.value&&s.value?r="PP hh:mm a":R.ModeDateOnly.includes(a.mode)&&(r="PP"),o.value?`${V.default(i,r)} ${f}`:n?`<div>${V.default(i,r)} - </div><div>${T.default(d,k,r)} ${f}</div>`:`${V.default(i,r)} - ${T.default(d,k,r)} ${f}`},z=async()=>{o.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)),w.value?.hidePopover(),p()},p=()=>{if(u.value&&t.selectedRange?.start)t.abbreviatedDisplay=E(t.selectedRange,!0);else if(s.value&&!u.value){const l=T.default(new Date,k,"(z)");t.abbreviatedDisplay=`${t.selectedTimeframe?.display} ${l}`}},M=l=>l.charAt(0).toUpperCase()+l.slice(1),O=l=>t.selectedTimeframe?.key===l.key?"primary":"secondary";e.watch(y,(l,n)=>{l!==void 0&&l!==n&&b({start:l,end:null})},{immediate:!0}),e.watch(m,(l,n)=>{l!==void 0&&l!==n&&b(l)},{immediate:!0}),e.watch(()=>t.tabName,(l,n)=>{n!==void 0&&l==="relative"?C(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",v.value=!1;for(const l of a.timePeriods){const n=l.values.find(i=>i.key===a.modelValue.timePeriodsKey);if(n){C(n),p();break}}}else t.tabName="custom",b(a.modelValue),(a.modelValue.start&&a.modelValue.end||o.value&&a.modelValue.start)&&p();x.value++},{immediate:!0}),e.watch(()=>a.timeGranularity,()=>{p()});const A=()=>{t.popoverOpen=!1,g.value&&g.value.resetTime()},I=()=>{t.popoverOpen=!0,g.value&&g.value.initTimeInputs()};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-datetime-picker",{"set-min-width":s.value}]),style:e.normalizeStyle($.value)},[e.createVNode(U.default,{ref_key:"kPop",ref:w,disabled:a.disabled||a.readonly,"hide-caret":"","hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(S.KUI_SPACE_40)})`,placement:a.popoverPlacement,width:"auto",onClose:A,onOpen:I},{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),!u.value&&t.fullRangeDisplay?(e.openBlock(),e.createElementBlock("p",j,e.toDisplayString(t.fullRangeDisplay),1)):e.createCommentVNode("",!0),D.value&&u.value?(e.openBlock(),e.createBlock(G.default,{key:x.value,ref:"calendarWrapperRef",modelValue:e.unref(P),"onUpdate:modelValue":n[2]||(n[2]=i=>e.isRef(P)?P.value=i:null),error:h.value,"onUpdate:error":n[3]||(n[3]=i=>h.value=i),"custom-range-validation":a.customRangeValidation,"error-message":a.invalidTimeErrorMessage,"is-range":!o.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&&!o.value?(e.openBlock(),e.createElementBlock("div",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.timePeriods,(i,d)=>(e.openBlock(),e.createElementBlock("div",{key:`section-${String(i.section||d)}`,class:"timeframe-section"},[e.createElementVNode("div",J,e.toDisplayString(i.section),1),e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.values,(r,f)=>(e.openBlock(),e.createBlock(N.default,{key:`time-${f}`,appearance:O(r),class:"timeframe-button","data-testid":`select-timeframe-${r.key}`,onClick:ee=>C(r,!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M(r.timeframeText)),1)]),_:2},1032,["appearance","data-testid","onClick"]))),128))])]))),128))])):e.createCommentVNode("",!0)]),footer:e.withCtx(()=>[e.createElementVNode("div",Y,[a.clearButton?(e.openBlock(),e.createBlock(N.default,{key:0,appearance:"tertiary",class:"action-button","data-testid":"datetime-picker-clear",onClick:n[4]||(n[4]=i=>K())},{default:e.withCtx(()=>[...n[6]||(n[6]=[e.createTextVNode(" Clear ",-1)])]),_:1})):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createBlock(N.default,{key:1,appearance:"tertiary",class:"action-button","data-testid":"datetime-picker-submit",disabled:v.value||h.value,onClick:n[5]||(n[5]=i=>z())},{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($.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,Z)],14,H),a.icon?(e.openBlock(),e.createBlock(e.unref(W.default),{key:0,class:"calendar-icon",color:`var(--kui-color-text-neutral, ${e.unref(S.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:"",size:`var(--kui-icon-size-40, ${e.unref(S.KUI_ICON_SIZE_40)})`},null,8,["color","size"])):e.createCommentVNode("",!0)],2)]),_:1},8,["disabled","offset","placement"])],6))}});exports.default=_;
|
|
@@ -5,12 +5,12 @@ import re from "./kongponents65.es.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "./kongponents7.es.js";
|
|
7
7
|
import { DateTimePickerModes as de, ModeArrayCustom as oe, ModeArrayRelative as se, ModeDateOnly as me } from "./kongponents12.es.js";
|
|
8
|
-
import ue from "./
|
|
9
|
-
import { KUI_SPACE_40 as ce, KUI_ICON_SIZE_40 as fe, KUI_COLOR_TEXT_NEUTRAL as ve } from "./
|
|
10
|
-
import { normalizeSize as ye } from "./
|
|
11
|
-
import ge from "./
|
|
12
|
-
import x from "./
|
|
13
|
-
import I from "./
|
|
8
|
+
import ue from "./kongponents213.es.js";
|
|
9
|
+
import { KUI_SPACE_40 as ce, KUI_ICON_SIZE_40 as fe, KUI_COLOR_TEXT_NEUTRAL as ve } from "./kongponents190.es.js";
|
|
10
|
+
import { normalizeSize as ye } from "./kongponents183.es.js";
|
|
11
|
+
import ge from "./kongponents214.es.js";
|
|
12
|
+
import x from "./kongponents215.es.js";
|
|
13
|
+
import I from "./kongponents216.es.js";
|
|
14
14
|
const be = ["tabindex"], pe = ["innerHTML"], ke = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "range-display"
|
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("./
|
|
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("./kongponents229.cjs"),y=require("./kongponents190.cjs"),D={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:g,emit:v}){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=v,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])}}),g({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(y.KUI_SPACE_20)})`,onClose:()=>d(a,r,!1),onOpen:()=>d(a,r,!0),onPopoverClick:()=>d(a,r,!1)}),{content:e.withCtx(()=>[e.createElementVNode("ul",D,[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.default),{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;
|
|
@@ -5,8 +5,8 @@ import L from "./kongponents30.es.js";
|
|
|
5
5
|
import U from "./kongponents62.es.js";
|
|
6
6
|
import j from "./kongponents29.es.js";
|
|
7
7
|
import G from "./kongponents50.es.js";
|
|
8
|
-
import H from "./
|
|
9
|
-
import { KUI_SPACE_20 as J } from "./
|
|
8
|
+
import H from "./kongponents229.es.js";
|
|
9
|
+
import { KUI_SPACE_20 as J } from "./kongponents190.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"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./kongponents191.cjs"),B=require("./kongponents192.cjs"),E=require("./kongponents193.cjs"),g=require("./kongponents189.cjs"),r=require("./kongponents190.cjs"),v=require("./kongponents38.cjs");require("./kongponents7.cjs");require("./kongponents12.cjs");const a=require("./kongponents13.cjs"),S=require("./kongponents39.cjs"),V={class:"empty-state-content"},C=["aria-hidden"],$={key:0,class:"empty-state-title"},I={key:1,class:"empty-state-message"},p={key:2,class:"empty-state-action"},h={key:0,class:"empty-state-features-container"},N={key:0,"aria-hidden":"true",class:"feature-icon"},T={class:"card-header"},q=["title"],b={key:1,class:"empty-state-footer-container"},D=e.defineComponent({__name:"KEmptyState",props:{title:{default:""},message:{default:""},actionButtonVisible:{type:Boolean,default:!0},actionButtonText:{default:""},actionButtonDisabled:{type:Boolean},iconVariant:{default:()=>a.EmptyStateIconVariants.Default},iconBackground:{type:Boolean,default:!1},features:{default:()=>[]}},emits:["click-action"],setup(o,{emit:l}){const c=l,u=e.useSlots(),d=e.useId(),m=e.computed(()=>{switch(o.iconVariant){case a.EmptyStateIconVariants.Default:return i.default;case a.EmptyStateIconVariants.Error:return g.default;case a.EmptyStateIconVariants.Search:return E.default;case a.EmptyStateIconVariants.Kong:return B.default;default:return i.default}}),k=e.computed(()=>o.iconBackground?`var(--kui-color-text-decorative-aqua, ${r.KUI_COLOR_TEXT_DECORATIVE_AQUA})`:o.iconVariant===a.EmptyStateIconVariants.Error?`var(--kui-color-text-warning, ${r.KUI_COLOR_TEXT_WARNING})`:`var(--kui-color-text-neutral, ${r.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(r.KUI_ICON_SIZE_60)})`},null,8,["color","size"]))],!0)],!0)],10,C),o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.message||t.$slots.default?(e.openBlock(),e.createElementBlock("div",I,[e.renderSlot(t.$slots,"default",{},()=>[e.createElementVNode("p",null,e.toDisplayString(o.message),1)],!0)])):e.createCommentVNode("",!0),o.actionButtonVisible&&o.actionButtonText||t.$slots.action?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"action",{},()=>[e.createVNode(v.default,{disabled:o.actionButtonDisabled,type:"button",onClick:s[0]||(s[0]=n=>c("click-action"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action-button-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(o.actionButtonText),1)]),_:3},8,["disabled"])],!0)])):e.createCommentVNode("",!0)]),o.features.length?(e.openBlock(),e.createElementBlock("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.features,(n,f)=>(e.openBlock(),e.createBlock(S.default,{key:`feature-${e.unref(d)}-${n.key||f}`,class:"empty-state-feature-card"},{title:e.withCtx(()=>[n.key&&t.$slots[`feature-icon-${n.key}`]?(e.openBlock(),e.createElementBlock("div",N,[e.renderSlot(t.$slots,`feature-icon-${n.key}`,{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,e.toDisplayString(n.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{title:n.description},e.toDisplayString(n.description),9,q)]),_:2},1024))),128))])):e.createCommentVNode("",!0),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",b,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}});exports.default=D;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as T, useSlots as b, useId as K, computed as m, openBlock as o, createElementBlock as i, normalizeClass as f, createElementVNode as l, renderSlot as n, createBlock as y, resolveDynamicComponent as N, unref as k, createTextVNode as v, toDisplayString as c, createCommentVNode as s, createVNode as O, withCtx as u, Fragment as S, renderList as D } from "vue";
|
|
2
|
-
import $ from "./
|
|
3
|
-
import R from "./
|
|
4
|
-
import U from "./
|
|
5
|
-
import A from "./
|
|
6
|
-
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 "./
|
|
2
|
+
import $ from "./kongponents191.es.js";
|
|
3
|
+
import R from "./kongponents192.es.js";
|
|
4
|
+
import U from "./kongponents193.es.js";
|
|
5
|
+
import A from "./kongponents189.es.js";
|
|
6
|
+
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 "./kongponents190.es.js";
|
|
7
7
|
import q from "./kongponents38.es.js";
|
|
8
8
|
import "./kongponents7.es.js";
|
|
9
9
|
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"),K=require("./kongponents57.cjs"),L=require("./kongponents55.cjs"),B=require("./kongponents38.cjs"),P=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents57.cjs"),L=require("./kongponents55.cjs"),B=require("./kongponents38.cjs"),P=require("./kongponents194.cjs"),R=require("./kongponents210.cjs"),W=require("./kongponents211.cjs"),U=["role"],j={class:"file-upload-input-wrapper"},O={key:1,class:"file-upload-dropzone-wrapper"},G=["aria-disabled","aria-labelledby","tabindex"],H={"aria-hidden":"true",class:"dropzone-icon"},J={key:0},Q={key:1},X=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:C}){const s=C,w=e.useSlots(),r=e.useAttrs(),{stripRequiredLabel:x}=P.default(),N=e.useId(),b=e.computed(()=>r.id?String(r.id):N),E=e.computed(()=>r.name?String(r.name):"uploaded-file"),$=e.computed(()=>{const a={...r};return delete a.id,delete a.name,a}),h=e.useTemplateRef("input"),q=()=>!!(l.labelAttributes?.info||w["label-tooltip"]),D=e.computed(()=>x(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),f=e.computed(()=>p.value||c.value||l.error),d=e.ref(0),i=e.ref(""),v=e.ref(null),F=e.useTemplateRef("dropzone"),M=a=>{p.value=!1;const t=a.target.files,u=t[0]?.size;Number(u)>n.value&&(d.value++,c.value=!0,s("error",t));const T=h.value?.$el?.querySelector("input");t.length?(v.value=t,i.value=t[0]?.name||"",s("file-added",t)):(T.files=v.value,i.value=v.value?.[0]?.name||"")},k=()=>{if(i.value){V();return}const a=h.value?.$el?.querySelector("input");a&&a.click()},V=()=>{v.value=null,i.value="",d.value++,c.value=!1,s("file-removed")},m=e.ref(!1),p=e.ref(!1),I=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(", ")}`:""),A=a=>{if(!l.disabled){o.value?F.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){d.value++,c.value=!0,s("error",t);return}I(t[0])?(p.value=!1,v.value=t,i.value=t[0]?.name||"",s("file-added",t)):(p.value=!0,s("error",t))}}},o=e.computed(()=>l.appearance==="dropzone");return e.watch(()=>r.id,()=>{d.value++},{immediate:!0}),(a,t)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"k-file-upload"},$.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(A,["prevent"])}),[l.label?(e.openBlock(),e.createBlock(K.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(D.value)+" ",1)]),_:2},[q()?{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",j,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:d.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(L.default,{id:b.value,key:d.value,ref:"input",accept:l.accept,class:e.normalizeClass(["upload-input",{dragging:m.value&&!l.disabled}]),disabled:l.disabled,error:f.value,"error-message":l.errorMessage||z.value||S.value,help:l.help,hidden:o.value,name:E.value,placeholder:l.placeholder||g.value,title:"",type:"file",onChange:M},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",O,[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:f.value,"has-file":!!i.value}]),"data-testid":"file-upload-dropzone",role:"button",tabindex:l.disabled?-1:0,onClick:k},[e.createElementVNode("div",H,[e.renderSlot(a.$slots,"icon",{},()=>[i.value?(e.openBlock(),e.createBlock(e.unref(R.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(W.default),{key:1,decorative:""}))],!0)]),i.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(i.value),1)):(e.openBlock(),e.createElementBlock("span",Q,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,G),f.value||l.help?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["help-text",{error:f.value}])},e.toDisplayString(f.value&&(l.errorMessage||z.value||S.value)||l.help),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],16,U))}});exports.default=X;
|
|
@@ -2,9 +2,9 @@ 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 V from "./kongponents38.es.js";
|
|
5
|
-
import de from "./
|
|
6
|
-
import ve from "./
|
|
7
|
-
import fe from "./
|
|
5
|
+
import de from "./kongponents194.es.js";
|
|
6
|
+
import ve from "./kongponents210.es.js";
|
|
7
|
+
import fe from "./kongponents211.es.js";
|
|
8
8
|
const ce = ["role"], me = { class: "file-upload-input-wrapper" }, be = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "file-upload-dropzone-wrapper"
|
package/dist/kongponents117.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),R=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),R=require("./kongponents194.cjs"),D=require("./kongponents57.cjs"),E=require("./kongponents190.cjs"),U=require("./kongponents195.cjs"),z=require("./kongponents196.cjs"),H=["id","aria-describedby","aria-invalid","type","value"],J=["aria-label"],Z=["id"],j=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:V,emit:B}){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=B,r=e.useSlots(),m=e.useTemplateRef("inputElement"),o=e.ref(""),s=e.ref(!1),v=e.ref(0),{stripRequiredLabel:x}=R.default(),n=e.useAttrs(),k=e.computed(()=>n?.required!==void 0&&String(n?.required)!=="false"),I=e.useId(),b=e.computed(()=>n.id?String(n.id):I),y=e.useId(),M=e.computed(()=>x(l.label,k.value)),T=()=>!!(l.labelAttributes?.info||r["label-tooltip"]),C=e.computed({get(){return l.modelValue},set(t){h({target:{value:t}})}}),L=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 c=t;return!s.value&&a&&(c=a),!!l.characterLimit&&c>l.characterLimit}),q=e.computed(()=>i.value?s.value?`${o.value?.toString().length} / ${l.characterLimit}`:`${l.modelValue?.toString().length} / ${l.characterLimit}`:""),N=()=>!i.value&&!l.error&&!l.hasError&&!!(l.help||r.help),d=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(C,(t,a)=>{t!==a&&h({target:{value:t}})});const h=t=>{const a=JSON.parse(JSON.stringify(t?.target?.value));P(a)},P=t=>{o.value=t,s.value=!0,f("input",t),f("update:modelValue",t)},$=()=>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),A=e.computed(()=>l.type==="password"&&u.value?"text":l.type),K=()=>{if(!u.value&&m.value){const t=m.value,{selectionStart:a,selectionEnd:c,selectionDirection:W}=t,O=t.value;t.value=O,t.setSelectionRange(a,c,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")}),V({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(D.default,e.mergeProps({key:0,for:b.value},l.labelAttributes,{required:k.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.value)+" ",1)]),_:2},[T()?{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":d.value||r.help?e.unref(y):void 0,"aria-invalid":l.error||l.hasError||i.value?"true":void 0,class:"input",type:A.value},L.value,{value:$(),onInput:h}),null,16,H),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(K,["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(U.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(z.default),{key:1,decorative:""}))],40,J)):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(()=>[d.value||r.help?(e.openBlock(),e.createElementBlock("p",{id:e.unref(y),key:String(v.value),class:"help-text"},[N()?e.renderSlot(t.$slots,"help",{},()=>[e.createTextVNode(e.toDisplayString(d.value),1)],!0,0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d.value),1)],64))],8,Z)):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=j;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 L, createTextVNode as M, toDisplayString as I, 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 "./kongponents194.es.js";
|
|
3
3
|
import me from "./kongponents57.es.js";
|
|
4
|
-
import { KUI_ICON_SIZE_40 as R } from "./
|
|
5
|
-
import he from "./
|
|
6
|
-
import ge from "./
|
|
4
|
+
import { KUI_ICON_SIZE_40 as R } from "./kongponents190.es.js";
|
|
5
|
+
import he from "./kongponents195.es.js";
|
|
6
|
+
import ge from "./kongponents196.es.js";
|
|
7
7
|
const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["aria-label"], ke = ["id"], Le = /* @__PURE__ */ ae({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "KInput",
|
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("./
|
|
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("./kongponents187.cjs"),b=require("./kongponents190.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 n=e.useSlots(),a=()=>!!(o.help||o.info||n.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 r=t.target,i=c(r);i&&i!==s.value||t.preventDefault()}return(t,r)=>(e.openBlock(),e.createElementBlock("label",{ref:"label",class:e.normalizeClass(["k-label",{required:o.required}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),a()?(e.openBlock(),e.createBlock(f.default,e.mergeProps({key:0},o.tooltipAttributes,{class:"label-tooltip","tooltip-id":e.unref(l),onClick:d}),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.info||o.help),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(p.default),{"aria-describedby":e.unref(l),class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(b.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["aria-describedby","color"])]),_:3},16,["tooltip-id"])):e.createCommentVNode("",!0)],2))}});exports.default=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as b, watch as h, useSlots as g, useId as k, useTemplateRef as A, openBlock as a, createElementBlock as C, normalizeClass as T, renderSlot as n, createBlock as N, mergeProps as v, unref as o, withCtx as s, createVNode as E, createTextVNode as L, toDisplayString as y, createCommentVNode as x } from "vue";
|
|
2
2
|
import B from "./kongponents30.es.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import I from "./
|
|
5
|
-
import { KUI_COLOR_TEXT_NEUTRAL as S } from "./
|
|
4
|
+
import I from "./kongponents187.es.js";
|
|
5
|
+
import { KUI_COLOR_TEXT_NEUTRAL as S } from "./kongponents190.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("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("./kongponents224.cjs"),T=require("./kongponents222.cjs"),B=require("./kongponents38.cjs"),g=require("./kongponents185.cjs"),w=require("./kongponents190.cjs"),k=require("./kongponents183.cjs"),N=require("./kongponents225.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,s=e.useSlots();e.provide(N.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&&!s.content?"95%":k.normalizeSize(o.maxWidth)),S=e.computed(()=>o.fullScreen&&!s.content?"95vh":k.normalizeSize(o.maxHeight)),V=e.computed(()=>{const t=Object.assign({},r);return delete t.class,t}),m=()=>!!o.title||!!s.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")},i=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 i(!0),o.inputAutofocus&&y(),d(!0)):(await i(!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 i(!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(g.default),{color:`var(--kui-color-text-neutral, ${e.unref(w.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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as H, useCssVars as P, useSlots as R, provide as M, computed as u, useAttrs as U, useId as F, ref as y, watch as g, nextTick as x, onMounted as q, onBeforeUnmount as X, onUnmounted as Y, openBlock as o, createElementBlock as r, mergeProps as j, unref as f, createElementVNode as l, normalizeClass as B, createVNode as k, withCtx as p, renderSlot as n, createTextVNode as h, toDisplayString as C, createCommentVNode as i, createBlock as Z } from "vue";
|
|
2
|
-
import { FocusTrap as G } from "./
|
|
3
|
-
import { useTextSelection as J } from "./
|
|
2
|
+
import { FocusTrap as G } from "./kongponents224.es.js";
|
|
3
|
+
import { useTextSelection as J } from "./kongponents222.es.js";
|
|
4
4
|
import I from "./kongponents38.es.js";
|
|
5
|
-
import Q from "./
|
|
6
|
-
import { KUI_COLOR_TEXT_NEUTRAL as _ } from "./
|
|
7
|
-
import { normalizeSize as D } from "./
|
|
8
|
-
import { POPOVER_PARENT_ZINDEX_KEY as ee } from "./
|
|
5
|
+
import Q from "./kongponents185.es.js";
|
|
6
|
+
import { KUI_COLOR_TEXT_NEUTRAL as _ } from "./kongponents190.es.js";
|
|
7
|
+
import { normalizeSize as D } from "./kongponents183.es.js";
|
|
8
|
+
import { POPOVER_PARENT_ZINDEX_KEY as ee } from "./kongponents225.es.js";
|
|
9
9
|
const te = ["aria-label"], ae = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "modal-header"
|
package/dist/kongponents125.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents38.cjs"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents38.cjs"),m=require("./kongponents192.cjs"),f=require("./kongponents190.cjs"),y=["aria-label"],p={class:"k-modal-fullscreen-body-header"},h={key:0,class:"body-header"},k={key:1,class:"body-header-description"},b={class:"k-modal-fullscreen-body"},v={class:"k-modal-fullscreen-header"},V={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},g={class:"k-modal-fullscreen-title"},N={class:"header-icon"},S={class:"header-content"},B={class:"k-modal-fullscreen-action"},E={class:"k-modal-fullscreen-action-buttons"},C={key:0,class:"k-modal-fullscreen-footer"},T={class:"k-modal-fullscreen-action"},w={class:"k-modal-fullscreen-action-buttons"},$=e.defineComponent({__name:"KModalFullscreen",props:{title:{type:String,required:!0},bodyHeader:{type:String,default:""},bodyHeaderDescription:{type:String,default:""},isVisible:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"Cancel"},actionButtonText:{type:String,default:"Save"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonAppearance:{type:String,default:"secondary"},iconString:{type:String,default:"kong"}},emits:["canceled","proceed"],setup(o,{emit:i}){const a=o,c=i,l=e.ref(null),u=e.computed(()=>!!a.isVisible);e.watch(()=>a.isVisible,async()=>{typeof document>"u"||(u.value?(document.body.style.overflow="hidden",await e.nextTick(),l.value&&l.value.focus()):document.body.style.overflow="")});const s=t=>{a.isVisible&&(t.keyCode===27?d():t.keyCode===13&&n())},d=()=>{c("canceled")},n=()=>{c("proceed")};return e.onMounted(()=>{document.addEventListener("keydown",s),console.warn(`The Kongponents 'KModalFullscreen' component is deprecated and will be removed in the next major release.
|
|
2
2
|
We suggest using 'KModal' component instead.
|
|
3
3
|
Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",s)}),e.onUnmounted(()=>{document.body.style.overflow=""}),(t,D)=>o.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":o.title,"aria-modal":"true",class:"k-modal-fullscreen isOpen",role:"dialog",onKeyup:[e.withKeys(n,["enter"]),e.withKeys(d,["esc"])]},[e.createElementVNode("div",{ref_key:"modalBodyContent",ref:l,class:e.normalizeClass(["k-modal-fullscreen-dialog",{"has-footer":t.$slots["footer-content"]}]),tabindex:"0"},[e.createElementVNode("div",p,[t.$slots["body-header"]||o.bodyHeader?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(t.$slots,"body-header",{},()=>[e.createTextVNode(e.toDisplayString(o.bodyHeader),1)],!0)])):e.createCommentVNode("",!0),t.$slots["body-header-description"]||o.bodyHeaderDescription?(e.openBlock(),e.createElementBlock("div",k,[e.renderSlot(t.$slots,"body-header-description",{},()=>[e.createTextVNode(e.toDisplayString(o.bodyHeaderDescription),1)],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",b,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",v,[e.createElementVNode("div",V,[e.createElementVNode("div",g,[e.createElementVNode("span",N,[e.renderSlot(t.$slots,"header-icon",{},()=>[e.createVNode(e.unref(m.default),{color:`var(--kui-color-text-decorative-aqua, ${e.unref(f.KUI_COLOR_TEXT_DECORATIVE_AQUA)})`},null,8,["color"])],!0)]),e.createElementVNode("span",S,[e.renderSlot(t.$slots,"header-content",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])]),e.createElementVNode("div",B,[e.createElementVNode("div",E,[e.renderSlot(t.$slots,"action-buttons",{},()=>[e.createVNode(r.default,{appearance:o.cancelButtonAppearance,class:"cancel-button",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelButtonText),1)]),_:1},8,["appearance"]),e.createVNode(r.default,{appearance:o.actionButtonAppearance,class:"proceed-button",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])]),t.$slots["footer-content"]?(e.openBlock(),e.createElementBlock("div",C,[e.renderSlot(t.$slots,"footer-content",{},void 0,!0),e.createElementVNode("div",T,[e.createElementVNode("div",w,[e.renderSlot(t.$slots,"action-buttons",{},()=>[e.createVNode(r.default,{appearance:o.actionButtonAppearance,class:"proceed-button",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])):e.createCommentVNode("",!0)],2)],40,y)):e.createCommentVNode("",!0)}});exports.default=$;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, ref as $, computed as w, watch as S, nextTick as T, onMounted as V, onBeforeUnmount as K, onUnmounted as A, openBlock as d, createElementBlock as c, withKeys as k, createElementVNode as o, normalizeClass as E, renderSlot as n, createTextVNode as a, toDisplayString as s, createCommentVNode as i, createVNode as r, unref as v, withCtx as y } from "vue";
|
|
2
2
|
import p from "./kongponents38.es.js";
|
|
3
|
-
import D from "./
|
|
4
|
-
import { KUI_COLOR_TEXT_DECORATIVE_AQUA as H } from "./
|
|
3
|
+
import D from "./kongponents192.es.js";
|
|
4
|
+
import { KUI_COLOR_TEXT_DECORATIVE_AQUA as H } from "./kongponents190.es.js";
|
|
5
5
|
const _ = ["aria-label"], O = { class: "k-modal-fullscreen-body-header" }, q = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "body-header"
|
package/dist/kongponents127.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ae=require("./kongponents189.cjs"),ee=require("./kongponents36.cjs"),te=require("./kongponents55.cjs"),Ne=require("./kongponents57.cjs"),Ee=require("./kongponents62.cjs"),$e=require("./kongponents29.cjs"),ze=require("./kongponents30.cjs");;/* empty css */const Ke=require("./kongponents190.cjs"),Fe=require("./kongponents191.cjs"),Me=require("./kongponents192.cjs"),le=require("./kongponents193.cjs"),Pe=require("./kongponents194.cjs"),x=require("./kongponents187.cjs"),De=require("./kongponents195.cjs"),Te=require("./kongponents180.cjs"),Ue=require("./kongponents196.cjs"),Oe=require("./kongponents160.cjs"),oe=require("./kongponents197.cjs"),Re={"data-testid":"multiselect-container"},Le=["id","tabindex"],He={key:0},We={key:1,class:"expanded-selection-empty"},Ge={class:"multiselect-selection-badge-label"},Je=["aria-label","onClick"],Ze={class:"multiselect-icons-container"},je={key:0,class:"multiselect-input-wrapper"},Qe={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},Xe={key:1,class:"help-text"},Ye="Filter...",_e=e.defineComponent({inheritAttrs:!1,__name:"KMultiselect",props:{modelValue:{default:()=>[]},label:{default:""},help:{default:""},error:{type:Boolean},labelAttributes:{default:()=>({})},placeholder:{default:""},searchPlaceholder:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},width:{default:"100%"},selectedRowCount:{default:1},collapsedContext:{type:Boolean},items:{default:()=>[]},filterFunction:{type:Function,default:a=>a.items.filter(V=>V.label?.toLowerCase().includes(a.query?.toLowerCase()))},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{},dropdownFooterPosition:{},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(a,{emit:V}){e.useCssVars(t=>({dbcc9d26:ye.value}));const ae=t=>{const l=[],o=s=>{"value"in s?l.push(s.value):"items"in s&&Array.isArray(s.items)&&s.items.forEach(n=>l.push(n.value))};return t.forEach(o),l},se=t=>{const l=ae(t),o=new Set(l);return l.length===o.size},ne=t=>{for(const l of t)if("value"in l){if(l.label===void 0||l.value===void 0)return!1}else if("items"in l&&Array.isArray(l.items)){if(l.label===void 0)return!1;for(const o of l.items)if(o.label===void 0||o.value===void 0)return!1}return!0},m=e.useAttrs(),B=e.useSlots(),{cloneDeep:ue,stripRequiredLabel:ie}=Ae.default();e.watch(()=>a.items,t=>{!t.length||ne(t)&&se(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const h=V,E=e.useTemplateRef("kMultiselectItems"),$=e.computed(()=>m.required!==void 0&&String(m.required)!=="false"),re=e.computed(()=>ie(a.label,$.value)),ce=()=>!!(a.labelAttributes?.help||a.labelAttributes?.info||B["label-tooltip"]),z=t=>w.value||b.value||t?.disabled?"neutral":a.error?"danger":"info",K={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},de=e.useId(),F=e.computed(()=>m.id?String(m.id):de),M=e.useTemplateRef("multiselectElement"),fe=e.useTemplateRef("multiselectDropdownInputElement"),v=e.ref(""),P=e.computed(()=>!(!v.value||r.value.filter(t=>t.label===v.value).length)),D=e.ref(null),r=e.ref([]),g=e.ref([]),S=e.ref([]),c=e.ref([]),ve=t=>t.map(l=>l.label).join(", "),T=e.ref(!1),C=e.ref(!1),q=e.ref(!1),w=e.computed(()=>m?.disabled!==void 0&&String(m?.disabled)!=="false"),b=e.computed(()=>m?.readonly!==void 0&&String(m?.readonly)!=="false"),me=e.computed({get(){return a.modelValue},set(t){const l=r.value.filter(o=>t.includes(o.value));l.length?W(l):t.length||N()}}),pe=e.computed(()=>{const t={...m};return delete t.class,t}),U=()=>!!(a.dropdownFooterText||B["dropdown-footer-text"]||B["dropdown-footer"]),he=e.computed(()=>a.dropdownFooterPosition??a.dropdownFooterTextPosition??"sticky"),ge=()=>({...K,...a.kpopAttributes,popoverClasses:`${K.popoverClasses} ${a.kpopAttributes?.popoverClasses??""} ${U()?"has-dropdown-footer":""}`,width:I.value+"px",maxWidth:I.value+"px",disabled:m.disabled!==void 0&&String(m.disabled)!=="false"||m.readonly!==void 0&&String(m.readonly)!=="false"}),ye=e.computed(()=>oe.normalizeSize(a.dropdownMaxHeight)),be=e.computed(()=>{const t=a.width?a.width:"300";return oe.normalizeSize(t)}),ke=e.computed(()=>({width:be.value})),O=e.computed(()=>({width:I.value+"px"})),R=e.computed(()=>{if(c.value.length===0){if(!a.collapsedContext&&a.placeholder)return a.placeholder;if(a.collapsedContext&&a.searchPlaceholder)return a.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),we=e.computed(()=>a.autosuggest?r.value:a.filterFunction({items:r.value,query:v.value})),L=e.computed(()=>{if(a.autosuggest||!v.value)return g.value;const t=we.value,l=new Set(t.map(s=>s.value)),o=[];for(const s of g.value)if(y(s)){const n=s.items.filter(u=>l.has(u.value));n.length>0&&o.push({label:s.label,key:s.key,items:n})}else l.has(s.value)&&o.push(s);return o}),Ce=t=>{(w.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},H=async(t,l,o)=>{t?l.value||(v.value="",o(),Z(),await e.nextTick(),fe.value?.$el?.querySelector("input")?.focus({preventScroll:!0})):l.value&&(v.value="",o())},Ie=t=>{const l=new Map(c.value.map(o=>[o.value,o]));c.value=t.map(o=>l.get(o)).filter(o=>o!==void 0)},W=t=>{t.forEach(l=>{const o=r.value.filter(s=>s.value===l.value)?.[0]||null;o&&(o.selected=!0,c.value.filter(s=>s.value===o.value).length||c.value.push(o))})},Se=t=>{const l=new Set(t.map(o=>o.value));c.value=c.value.filter(o=>!l.has(o.value)),t.forEach(o=>{o.selected=!1,a.enableItemCreation&&o.custom&&(r.value=r.value.filter(s=>s.value!==o.value),g.value=g.value.filter(s=>y(s)?!0:s.value!==o.value),h("item-removed",o))})},A=(t,l)=>{let o=!1,s=l?t:r.value.filter(u=>u.value===t.value)?.[0]||null;if(a.enableItemCreation&&s?.custom&&(o=!0),s===null&&(s=c.value.filter(u=>u.value===t.value)?.[0]||null),s===null)return;s.selected?(c.value=c.value.filter(u=>u.value!==t.value),s.selected=!1,o&&(r.value=r.value.filter(u=>u.value!==t.value),g.value=g.value.filter(u=>y(u)?!0:u.value!==t.value),h("item-removed",t))):(s.selected=!0,c.value.push(s),l&&(s.custom=!0,r.value.push(s),g.value.unshift(s)));const n=c.value.map(u=>u.value);h("selected",c.value),h("change",s),h("update:modelValue",n)},G=t=>{a.enableItemCreation&&J(),t.preventDefault()},J=()=>{if(!a.enableItemCreation||!v.value||!P.value||!a.itemCreationValidator(v.value))return;const t=r.value.length+1,l={label:v.value.trim(),value:Oe.getUniqueStringId(),key:`${Te.sanitizeInput(v.value.trim()).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`};h("item-added",l),A(l,!0),v.value=""},y=t=>"items"in t&&Array.isArray(t.items),Z=()=>{const t=[],l=[],o=[];for(const u of L.value)y(u)?o.push(u):l.push(u);const s=l.filter(u=>u.selected),n=l.filter(u=>!u.selected);t.push(...s,...n);for(const u of o){const i=u.items.filter(d=>d.selected),p=u.items.filter(d=>!d.selected);t.push({label:u.label,key:u.key,items:[...i,...p]})}S.value=t},N=()=>{r.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&h("item-removed",l))}),r.value=r.value.filter(l=>!(l.custom&&!l.disabled)),g.value=g.value.filter(l=>y(l)?!0:!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value="";const t=c.value.map(l=>l.value);h("selected",c.value),h("update:modelValue",t),h("query-change","")},j=t=>{v.value=t.trim(),h("query-change",t.trim())},xe=(t,l)=>{t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&E.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Q=()=>{D.value?.showPopover()},Ve=t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&E.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Be=async()=>{q.value=!0,X()},X=()=>{T.value||(T.value=!0,h("query-change",""))};e.watch(L,()=>{Z()}),e.watch(me,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){const o=c.value.map(d=>d.value);if(JSON.stringify(o)===JSON.stringify(t))return;if(!t.length){N();return}const s=new Set(l),n=new Set(t),u=new Set(o),i=r.value.filter(d=>n.has(d.value)&&!u.has(d.value)),p=c.value.filter(d=>!n.has(d.value)&&s.has(d.value));p.length&&Se(p),i.length&&W(i),Ie(t)}},{flush:"post"}),e.watch(()=>a.items,(t,l)=>{if(JSON.stringify(t)===JSON.stringify(l))return;const o=ue(a.items),s=o.some(i=>y(i)),n=[],u=[];if(s)for(const i of o)y(i)?n.push(...i.items):n.push(i);else{const i=new Map;for(const f of o)y(f)||(f.group&&(i.has(f.group)||i.set(f.group,[]),i.get(f.group).push(f)),n.push(f));const p=Array.from(i.keys()).sort((f,k)=>f.toLowerCase().localeCompare(k.toLowerCase())),d=n.filter(f=>!f.group);u.push(...d);for(const f of p)u.push({label:f,items:i.get(f)})}r.value=n;for(let i=0;i<r.value.length;i++){r.value[i].selected===void 0&&(r.value[i].selected=!1);let p=`${r.value[i].label?.replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${i}`;if(p.includes("undefined")&&(p=`multiselect-item-label-${i}`),r.value[i].key=p,a.modelValue.includes(r.value[i].value)||r.value[i].selected){const d=r.value[i];d.selected=!0,c.value.filter(f=>f.value===d.value).length||c.value.push(d)}}if(s){const i=[],p=[];for(const d of o)if(y(d)){const f=d.items.map(k=>r.value.find(qe=>qe.value===k.value)).filter(k=>k!==void 0);p.push({label:d.label,key:d.key,items:f})}else{const f=r.value.find(k=>k.value===d.value);f&&i.push(f)}u.push(...i,...p)}g.value=u},{deep:!0,immediate:!0});const I=e.ref(300),Y=e.ref(!1),_=async()=>{I.value=300,await e.nextTick(),I.value=M.value?.clientWidth||300};return e.onMounted(async()=>{await _(),Y.value=!0}),Ue.useResizeObserver(M,()=>{_()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":a.error}]]),style:e.normalizeStyle(ke.value)},[a.label?(e.openBlock(),e.createBlock(Ne.default,e.mergeProps({key:0},a.labelAttributes,{"data-testid":a.labelAttributes["data-testid"]?a.labelAttributes["data-testid"]:"multiselect-label",for:F.value,required:$.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(re.value)+" ",1)]),_:2},[ce()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",Re,[e.createVNode($e.default,null,{default:e.withCtx(({isToggled:o,toggle:s})=>[e.createVNode(Ee.default,e.mergeProps({ref_key:"popper",ref:D,"hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(x.KUI_SPACE_40)})`},ge(),{onClose:()=>H(!1,o,s),onOpen:()=>H(!0,o,s)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>C.value=!0),onMouseleave:l[9]||(l[9]=()=>C.value=!1)},[!a.collapsedContext&&!b.value?(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(te.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":v.value,name:"multiselect-options-search",placeholder:a.searchPlaceholder||Ye,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:X,onKeydown:e.withKeys(G,["enter"]),onKeyup:[Ve,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":j},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(Ke.default,{ref:"kMultiselectItems","filter-string":v.value,"item-creation-enabled":a.enableItemCreation&&P.value,"item-creation-valid":a.itemCreationValidator(v.value),items:S.value,onAddItem:J,onSelected:A},{content:e.withCtx(({item:n})=>[e.renderSlot(t.$slots,"item-template",{class:"multiselect-item",item:n},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!S.value.length&&!t.$slots.empty&&!a.enableItemCreation?(e.openBlock(),e.createBlock(Fe.default,{key:"multiselect-empty-item",class:"multiselect-empty-item","data-testid":"multiselect-empty-item",item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),t.$slots.empty&&!a.loading&&!S.value.length?(e.openBlock(),e.createElementBlock("div",Qe,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),U()?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${he.value}`]),"data-testid":"dropdown-footer"},[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(a.dropdownFooterText),1)],!0,1)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:F.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:q.value,hovered:C.value,disabled:w.value,readonly:b.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:w.value||b.value||a.collapsedContext?-1:0},pe.value,{onClick:Ce,onKeydown:[e.withKeys(Q,["enter"]),e.withKeys(Q,["space"])]}),[a.collapsedContext?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(te.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":b.value}]),"data-testid":"multiselect-input",disabled:w.value,"model-value":v.value,name:"multiselect-options-search",placeholder:R.value,readonly:b.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>q.value=!1),onClick:n=>{o.value&&n.stopPropagation()},onFocus:Be,onKeydown:e.withKeys(G,["enter"]),onKeyup:n=>xe(n,o),onMouseenter:l[1]||(l[1]=()=>C.value=!0),onMouseleave:l[2]||(l[2]=()=>C.value=!1),"onUpdate:modelValue":j},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?Y.value?(e.openBlock(),e.createBlock(e.unref(De.WrapClamp),{key:3,class:"selection-badges-container","data-testid":"selection-badges-container","item-key":"key",items:c.value,"max-lines":a.selectedRowCount,style:e.normalizeStyle(O.value)},{item:e.withCtx(({item:n})=>[e.createVNode(ee.default,{appearance:z(n),class:"multiselect-selection-badge","icon-before":!1,tooltip:n.label,"truncation-tooltip":"",onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:n},void 0,!0),e.createElementVNode("span",Ge,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!w.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":`Unselect ${n.label}`,class:"badge-dismiss-button","data-testid":"badge-dismiss-button",type:"button",onClick:u=>A(n)},[e.createVNode(e.unref(le.default),{decorative:""})],8,Je)]),key:"0"}:void 0]),1032,["appearance","tooltip"])]),after:e.withCtx(({hiddenItems:n})=>[n.length?(e.openBlock(),e.createBlock(ze.default,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:ve(n)},{default:e.withCtx(()=>[e.createVNode(ee.default,{appearance:z(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(n.length),1)]),_:2},1032,["appearance"])]),_:2},1032,["text"])):e.createCommentVNode("",!0)]),_:3},8,["items","max-lines","style"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(O.value)},null,4)):(e.openBlock(),e.createElementBlock("div",We,e.toDisplayString(R.value),1)),e.createElementVNode("div",Ze,[!a.loading&&c.value.length&&o.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"multiselect-clear-icon","data-testid":"multiselect-clear-icon",type:"button",onClick:N},[e.createVNode(e.unref(le.default),{size:`var(--kui-icon-size-40, ${e.unref(x.KUI_ICON_SIZE_40)})`},null,8,["size"])])):a.loading?(e.openBlock(),e.createBlock(e.unref(Pe.default),{key:1,class:"multiselect-loading-icon",size:`var(--kui-icon-size-40, ${e.unref(x.KUI_ICON_SIZE_40)})`,title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(Me.default),{key:2,class:"multiselect-chevron-icon",decorative:"",size:`var(--kui-icon-size-40, ${e.unref(x.KUI_ICON_SIZE_40)})`},null,8,["size"]))])],16,Le)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),a.help?(e.openBlock(),e.createElementBlock("p",Xe,e.toDisplayString(a.help),1)):e.createCommentVNode("",!0)],6))}});exports.default=_e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ae=require("./kongponents194.cjs"),ee=require("./kongponents36.cjs"),te=require("./kongponents55.cjs"),Ne=require("./kongponents57.cjs"),Ee=require("./kongponents62.cjs"),$e=require("./kongponents29.cjs"),ze=require("./kongponents30.cjs");;/* empty css */const Ke=require("./kongponents227.cjs"),Fe=require("./kongponents228.cjs"),Me=require("./kongponents229.cjs"),le=require("./kongponents185.cjs"),Pe=require("./kongponents206.cjs"),x=require("./kongponents190.cjs"),De=require("./kongponents230.cjs"),Te=require("./kongponents180.cjs"),Ue=require("./kongponents222.cjs"),Oe=require("./kongponents160.cjs"),oe=require("./kongponents183.cjs"),Re={"data-testid":"multiselect-container"},Le=["id","tabindex"],He={key:0},We={key:1,class:"expanded-selection-empty"},Ge={class:"multiselect-selection-badge-label"},Je=["aria-label","onClick"],Ze={class:"multiselect-icons-container"},je={key:0,class:"multiselect-input-wrapper"},Qe={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},Xe={key:1,class:"help-text"},Ye="Filter...",_e=e.defineComponent({inheritAttrs:!1,__name:"KMultiselect",props:{modelValue:{default:()=>[]},label:{default:""},help:{default:""},error:{type:Boolean},labelAttributes:{default:()=>({})},placeholder:{default:""},searchPlaceholder:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},width:{default:"100%"},selectedRowCount:{default:1},collapsedContext:{type:Boolean},items:{default:()=>[]},filterFunction:{type:Function,default:a=>a.items.filter(V=>V.label?.toLowerCase().includes(a.query?.toLowerCase()))},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{},dropdownFooterPosition:{},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(a,{emit:V}){e.useCssVars(t=>({dbcc9d26:ye.value}));const ae=t=>{const l=[],o=s=>{"value"in s?l.push(s.value):"items"in s&&Array.isArray(s.items)&&s.items.forEach(n=>l.push(n.value))};return t.forEach(o),l},se=t=>{const l=ae(t),o=new Set(l);return l.length===o.size},ne=t=>{for(const l of t)if("value"in l){if(l.label===void 0||l.value===void 0)return!1}else if("items"in l&&Array.isArray(l.items)){if(l.label===void 0)return!1;for(const o of l.items)if(o.label===void 0||o.value===void 0)return!1}return!0},m=e.useAttrs(),B=e.useSlots(),{cloneDeep:ue,stripRequiredLabel:ie}=Ae.default();e.watch(()=>a.items,t=>{!t.length||ne(t)&&se(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const h=V,E=e.useTemplateRef("kMultiselectItems"),$=e.computed(()=>m.required!==void 0&&String(m.required)!=="false"),re=e.computed(()=>ie(a.label,$.value)),ce=()=>!!(a.labelAttributes?.help||a.labelAttributes?.info||B["label-tooltip"]),z=t=>w.value||b.value||t?.disabled?"neutral":a.error?"danger":"info",K={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},de=e.useId(),F=e.computed(()=>m.id?String(m.id):de),M=e.useTemplateRef("multiselectElement"),fe=e.useTemplateRef("multiselectDropdownInputElement"),v=e.ref(""),P=e.computed(()=>!(!v.value||r.value.filter(t=>t.label===v.value).length)),D=e.ref(null),r=e.ref([]),g=e.ref([]),S=e.ref([]),c=e.ref([]),ve=t=>t.map(l=>l.label).join(", "),T=e.ref(!1),C=e.ref(!1),q=e.ref(!1),w=e.computed(()=>m?.disabled!==void 0&&String(m?.disabled)!=="false"),b=e.computed(()=>m?.readonly!==void 0&&String(m?.readonly)!=="false"),me=e.computed({get(){return a.modelValue},set(t){const l=r.value.filter(o=>t.includes(o.value));l.length?W(l):t.length||N()}}),pe=e.computed(()=>{const t={...m};return delete t.class,t}),U=()=>!!(a.dropdownFooterText||B["dropdown-footer-text"]||B["dropdown-footer"]),he=e.computed(()=>a.dropdownFooterPosition??a.dropdownFooterTextPosition??"sticky"),ge=()=>({...K,...a.kpopAttributes,popoverClasses:`${K.popoverClasses} ${a.kpopAttributes?.popoverClasses??""} ${U()?"has-dropdown-footer":""}`,width:I.value+"px",maxWidth:I.value+"px",disabled:m.disabled!==void 0&&String(m.disabled)!=="false"||m.readonly!==void 0&&String(m.readonly)!=="false"}),ye=e.computed(()=>oe.normalizeSize(a.dropdownMaxHeight)),be=e.computed(()=>{const t=a.width?a.width:"300";return oe.normalizeSize(t)}),ke=e.computed(()=>({width:be.value})),O=e.computed(()=>({width:I.value+"px"})),R=e.computed(()=>{if(c.value.length===0){if(!a.collapsedContext&&a.placeholder)return a.placeholder;if(a.collapsedContext&&a.searchPlaceholder)return a.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),we=e.computed(()=>a.autosuggest?r.value:a.filterFunction({items:r.value,query:v.value})),L=e.computed(()=>{if(a.autosuggest||!v.value)return g.value;const t=we.value,l=new Set(t.map(s=>s.value)),o=[];for(const s of g.value)if(y(s)){const n=s.items.filter(u=>l.has(u.value));n.length>0&&o.push({label:s.label,key:s.key,items:n})}else l.has(s.value)&&o.push(s);return o}),Ce=t=>{(w.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},H=async(t,l,o)=>{t?l.value||(v.value="",o(),Z(),await e.nextTick(),fe.value?.$el?.querySelector("input")?.focus({preventScroll:!0})):l.value&&(v.value="",o())},Ie=t=>{const l=new Map(c.value.map(o=>[o.value,o]));c.value=t.map(o=>l.get(o)).filter(o=>o!==void 0)},W=t=>{t.forEach(l=>{const o=r.value.filter(s=>s.value===l.value)?.[0]||null;o&&(o.selected=!0,c.value.filter(s=>s.value===o.value).length||c.value.push(o))})},Se=t=>{const l=new Set(t.map(o=>o.value));c.value=c.value.filter(o=>!l.has(o.value)),t.forEach(o=>{o.selected=!1,a.enableItemCreation&&o.custom&&(r.value=r.value.filter(s=>s.value!==o.value),g.value=g.value.filter(s=>y(s)?!0:s.value!==o.value),h("item-removed",o))})},A=(t,l)=>{let o=!1,s=l?t:r.value.filter(u=>u.value===t.value)?.[0]||null;if(a.enableItemCreation&&s?.custom&&(o=!0),s===null&&(s=c.value.filter(u=>u.value===t.value)?.[0]||null),s===null)return;s.selected?(c.value=c.value.filter(u=>u.value!==t.value),s.selected=!1,o&&(r.value=r.value.filter(u=>u.value!==t.value),g.value=g.value.filter(u=>y(u)?!0:u.value!==t.value),h("item-removed",t))):(s.selected=!0,c.value.push(s),l&&(s.custom=!0,r.value.push(s),g.value.unshift(s)));const n=c.value.map(u=>u.value);h("selected",c.value),h("change",s),h("update:modelValue",n)},G=t=>{a.enableItemCreation&&J(),t.preventDefault()},J=()=>{if(!a.enableItemCreation||!v.value||!P.value||!a.itemCreationValidator(v.value))return;const t=r.value.length+1,l={label:v.value.trim(),value:Oe.getUniqueStringId(),key:`${Te.sanitizeInput(v.value.trim()).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`};h("item-added",l),A(l,!0),v.value=""},y=t=>"items"in t&&Array.isArray(t.items),Z=()=>{const t=[],l=[],o=[];for(const u of L.value)y(u)?o.push(u):l.push(u);const s=l.filter(u=>u.selected),n=l.filter(u=>!u.selected);t.push(...s,...n);for(const u of o){const i=u.items.filter(d=>d.selected),p=u.items.filter(d=>!d.selected);t.push({label:u.label,key:u.key,items:[...i,...p]})}S.value=t},N=()=>{r.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&h("item-removed",l))}),r.value=r.value.filter(l=>!(l.custom&&!l.disabled)),g.value=g.value.filter(l=>y(l)?!0:!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value="";const t=c.value.map(l=>l.value);h("selected",c.value),h("update:modelValue",t),h("query-change","")},j=t=>{v.value=t.trim(),h("query-change",t.trim())},xe=(t,l)=>{t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&E.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Q=()=>{D.value?.showPopover()},Ve=t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&E.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Be=async()=>{q.value=!0,X()},X=()=>{T.value||(T.value=!0,h("query-change",""))};e.watch(L,()=>{Z()}),e.watch(me,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){const o=c.value.map(d=>d.value);if(JSON.stringify(o)===JSON.stringify(t))return;if(!t.length){N();return}const s=new Set(l),n=new Set(t),u=new Set(o),i=r.value.filter(d=>n.has(d.value)&&!u.has(d.value)),p=c.value.filter(d=>!n.has(d.value)&&s.has(d.value));p.length&&Se(p),i.length&&W(i),Ie(t)}},{flush:"post"}),e.watch(()=>a.items,(t,l)=>{if(JSON.stringify(t)===JSON.stringify(l))return;const o=ue(a.items),s=o.some(i=>y(i)),n=[],u=[];if(s)for(const i of o)y(i)?n.push(...i.items):n.push(i);else{const i=new Map;for(const f of o)y(f)||(f.group&&(i.has(f.group)||i.set(f.group,[]),i.get(f.group).push(f)),n.push(f));const p=Array.from(i.keys()).sort((f,k)=>f.toLowerCase().localeCompare(k.toLowerCase())),d=n.filter(f=>!f.group);u.push(...d);for(const f of p)u.push({label:f,items:i.get(f)})}r.value=n;for(let i=0;i<r.value.length;i++){r.value[i].selected===void 0&&(r.value[i].selected=!1);let p=`${r.value[i].label?.replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${i}`;if(p.includes("undefined")&&(p=`multiselect-item-label-${i}`),r.value[i].key=p,a.modelValue.includes(r.value[i].value)||r.value[i].selected){const d=r.value[i];d.selected=!0,c.value.filter(f=>f.value===d.value).length||c.value.push(d)}}if(s){const i=[],p=[];for(const d of o)if(y(d)){const f=d.items.map(k=>r.value.find(qe=>qe.value===k.value)).filter(k=>k!==void 0);p.push({label:d.label,key:d.key,items:f})}else{const f=r.value.find(k=>k.value===d.value);f&&i.push(f)}u.push(...i,...p)}g.value=u},{deep:!0,immediate:!0});const I=e.ref(300),Y=e.ref(!1),_=async()=>{I.value=300,await e.nextTick(),I.value=M.value?.clientWidth||300};return e.onMounted(async()=>{await _(),Y.value=!0}),Ue.useResizeObserver(M,()=>{_()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":a.error}]]),style:e.normalizeStyle(ke.value)},[a.label?(e.openBlock(),e.createBlock(Ne.default,e.mergeProps({key:0},a.labelAttributes,{"data-testid":a.labelAttributes["data-testid"]?a.labelAttributes["data-testid"]:"multiselect-label",for:F.value,required:$.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(re.value)+" ",1)]),_:2},[ce()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",Re,[e.createVNode($e.default,null,{default:e.withCtx(({isToggled:o,toggle:s})=>[e.createVNode(Ee.default,e.mergeProps({ref_key:"popper",ref:D,"hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(x.KUI_SPACE_40)})`},ge(),{onClose:()=>H(!1,o,s),onOpen:()=>H(!0,o,s)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>C.value=!0),onMouseleave:l[9]||(l[9]=()=>C.value=!1)},[!a.collapsedContext&&!b.value?(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(te.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":v.value,name:"multiselect-options-search",placeholder:a.searchPlaceholder||Ye,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:X,onKeydown:e.withKeys(G,["enter"]),onKeyup:[Ve,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":j},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(Ke.default,{ref:"kMultiselectItems","filter-string":v.value,"item-creation-enabled":a.enableItemCreation&&P.value,"item-creation-valid":a.itemCreationValidator(v.value),items:S.value,onAddItem:J,onSelected:A},{content:e.withCtx(({item:n})=>[e.renderSlot(t.$slots,"item-template",{class:"multiselect-item",item:n},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!S.value.length&&!t.$slots.empty&&!a.enableItemCreation?(e.openBlock(),e.createBlock(Fe.default,{key:"multiselect-empty-item",class:"multiselect-empty-item","data-testid":"multiselect-empty-item",item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),t.$slots.empty&&!a.loading&&!S.value.length?(e.openBlock(),e.createElementBlock("div",Qe,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),U()?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${he.value}`]),"data-testid":"dropdown-footer"},[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(a.dropdownFooterText),1)],!0,1)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:F.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:q.value,hovered:C.value,disabled:w.value,readonly:b.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:w.value||b.value||a.collapsedContext?-1:0},pe.value,{onClick:Ce,onKeydown:[e.withKeys(Q,["enter"]),e.withKeys(Q,["space"])]}),[a.collapsedContext?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(te.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":b.value}]),"data-testid":"multiselect-input",disabled:w.value,"model-value":v.value,name:"multiselect-options-search",placeholder:R.value,readonly:b.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>q.value=!1),onClick:n=>{o.value&&n.stopPropagation()},onFocus:Be,onKeydown:e.withKeys(G,["enter"]),onKeyup:n=>xe(n,o),onMouseenter:l[1]||(l[1]=()=>C.value=!0),onMouseleave:l[2]||(l[2]=()=>C.value=!1),"onUpdate:modelValue":j},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?Y.value?(e.openBlock(),e.createBlock(e.unref(De.WrapClamp),{key:3,class:"selection-badges-container","data-testid":"selection-badges-container","item-key":"key",items:c.value,"max-lines":a.selectedRowCount,style:e.normalizeStyle(O.value)},{item:e.withCtx(({item:n})=>[e.createVNode(ee.default,{appearance:z(n),class:"multiselect-selection-badge","icon-before":!1,tooltip:n.label,"truncation-tooltip":"",onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:n},void 0,!0),e.createElementVNode("span",Ge,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!w.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":`Unselect ${n.label}`,class:"badge-dismiss-button","data-testid":"badge-dismiss-button",type:"button",onClick:u=>A(n)},[e.createVNode(e.unref(le.default),{decorative:""})],8,Je)]),key:"0"}:void 0]),1032,["appearance","tooltip"])]),after:e.withCtx(({hiddenItems:n})=>[n.length?(e.openBlock(),e.createBlock(ze.default,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:ve(n)},{default:e.withCtx(()=>[e.createVNode(ee.default,{appearance:z(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(n.length),1)]),_:2},1032,["appearance"])]),_:2},1032,["text"])):e.createCommentVNode("",!0)]),_:3},8,["items","max-lines","style"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(O.value)},null,4)):(e.openBlock(),e.createElementBlock("div",We,e.toDisplayString(R.value),1)),e.createElementVNode("div",Ze,[!a.loading&&c.value.length&&o.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"multiselect-clear-icon","data-testid":"multiselect-clear-icon",type:"button",onClick:N},[e.createVNode(e.unref(le.default),{size:`var(--kui-icon-size-40, ${e.unref(x.KUI_ICON_SIZE_40)})`},null,8,["size"])])):a.loading?(e.openBlock(),e.createBlock(e.unref(Pe.default),{key:1,class:"multiselect-loading-icon",size:`var(--kui-icon-size-40, ${e.unref(x.KUI_ICON_SIZE_40)})`,title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(Me.default),{key:2,class:"multiselect-chevron-icon",decorative:"",size:`var(--kui-icon-size-40, ${e.unref(x.KUI_ICON_SIZE_40)})`},null,8,["size"]))])],16,Le)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),a.help?(e.openBlock(),e.createElementBlock("p",Xe,e.toDisplayString(a.help),1)):e.createCommentVNode("",!0)],6))}});exports.default=_e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Ze, useCssVars as Xe, useAttrs as Ye, useSlots as _e, watch as D, useTemplateRef as H, computed as v, useId as et, ref as b, onMounted as tt, openBlock as m, createElementBlock as I, normalizeStyle as W, normalizeClass as G, createBlock as z, mergeProps as J, createSlots as be, withCtx as y, createTextVNode as j, toDisplayString as E, renderSlot as K, createCommentVNode as x, createElementVNode as M, createVNode as C, unref as S, withKeys as q, withModifiers as N, nextTick as we } from "vue";
|
|
2
|
-
import lt from "./
|
|
2
|
+
import lt from "./kongponents194.es.js";
|
|
3
3
|
import ke from "./kongponents36.es.js";
|
|
4
4
|
import Ie from "./kongponents55.es.js";
|
|
5
5
|
import ot from "./kongponents57.es.js";
|
|
@@ -7,17 +7,17 @@ import at from "./kongponents62.es.js";
|
|
|
7
7
|
import st from "./kongponents29.es.js";
|
|
8
8
|
import it from "./kongponents30.es.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import ut from "./
|
|
11
|
-
import nt from "./
|
|
12
|
-
import rt from "./
|
|
13
|
-
import Ce from "./
|
|
14
|
-
import dt from "./
|
|
15
|
-
import { KUI_SPACE_40 as ct, KUI_ICON_SIZE_40 as Q } from "./
|
|
16
|
-
import { WrapClamp as ft } from "./
|
|
10
|
+
import ut from "./kongponents227.es.js";
|
|
11
|
+
import nt from "./kongponents228.es.js";
|
|
12
|
+
import rt from "./kongponents229.es.js";
|
|
13
|
+
import Ce from "./kongponents185.es.js";
|
|
14
|
+
import dt from "./kongponents206.es.js";
|
|
15
|
+
import { KUI_SPACE_40 as ct, KUI_ICON_SIZE_40 as Q } from "./kongponents190.es.js";
|
|
16
|
+
import { WrapClamp as ft } from "./kongponents230.es.js";
|
|
17
17
|
import { sanitizeInput as vt } from "./kongponents180.es.js";
|
|
18
|
-
import { useResizeObserver as mt } from "./
|
|
18
|
+
import { useResizeObserver as mt } from "./kongponents222.es.js";
|
|
19
19
|
import { getUniqueStringId as pt } from "./kongponents160.es.js";
|
|
20
|
-
import { normalizeSize as Se } from "./
|
|
20
|
+
import { normalizeSize as Se } from "./kongponents183.es.js";
|
|
21
21
|
const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"], yt = { key: 0 }, bt = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "expanded-selection-empty"
|
package/dist/kongponents130.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents49.cjs"),x=require("./kongponents38.cjs"),j=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents49.cjs"),x=require("./kongponents38.cjs"),j=require("./kongponents234.cjs"),L=require("./kongponents235.cjs"),U=require("./kongponents229.cjs"),W=require("./kongponents236.cjs"),R=require("./kongponents237.cjs"),Z=require("./kongponents181.cjs"),Q={class:"pagination-text large-screen","data-testid":"visible-items"},X={class:"pagination-text-pages"},Y={class:"pagination-button-container"},_={key:0},ee={key:1,class:"pagination-button placeholder"},te=["aria-current","aria-label","data-testid","onClick"],ae={key:2,class:"pagination-button placeholder"},le={key:3},ne={class:"page-size-select"},oe={key:0,class:"pagination-text small-screen","data-testid":"visible-items"},ie={class:"pagination-text-pages"},ue=e.defineComponent({__name:"KPagination",props:{items:{default:()=>[]},totalCount:{default:0},pageSizes:{default:()=>[15,30,50,75,100]},initialPageSize:{default:null},neighbors:{default:1},currentPage:{default:null},disablePageJump:{type:Boolean},offset:{type:Boolean},offsetPreviousButtonDisabled:{type:Boolean},offsetNextButtonDisabled:{type:Boolean}},emits:["pageChange","pageSizeChange","getNextOffset","getPreviousOffset"],setup(t,{emit:$}){const J={placement:"top"},k=$,v=e.ref(null),C=e.ref(),l=e.ref(t.currentPage?t.currentPage:1),u=e.ref(t.initialPageSize?t.initialPageSize:t.pageSizes[0]??Z.DEFAULT_PAGE_SIZE),i=e.computed(()=>Math.ceil(t.totalCount/u.value)),P=t.pageSizes.map((a,n)=>({label:`${a}`,key:`size-${n}`,value:a,selected:a===u.value})),q=e.computed(()=>`${u.value} ${u.value===1?"item per page":" items per page"}`),s=e.ref(t.neighbors),r=e.ref(3),G=async()=>(await e.nextTick(),v.value?v.value.scrollWidth>v.value.clientWidth:!1),z=async()=>{await G()&&(s.value>1||r.value>1)&&(s.value>1?s.value--:r.value>1&&r.value--,b.value=y(l.value,i.value,f.value,m.value))},y=(a,n,o,S)=>{if(t.disablePageJump)return[];let c=[...Array(n).keys()].map(d=>d+1);const H=r.value+2+2*s.value;return c.length<=H||(o?o&&S?c=c.filter(d=>d>a-s.value-1&&d<a+s.value+1):o&&!S&&(c=c.filter(d=>d>n-s.value*2-r.value)):c=c.filter(d=>d<=s.value*2+r.value)),c},V=e.ref(l.value===1),B=e.ref(l.value===i.value),h=e.computed(()=>(l.value-1)*u.value+1),N=e.computed(()=>{const a=h.value-1+u.value;return a>t.totalCount?t.totalCount:a}),w=e.computed(()=>`${h.value} to ${N.value}`),D=e.computed(()=>` of ${t.totalCount}`),g=e.computed(()=>t.currentPage?t.currentPage:l.value),O=e.computed(()=>5+2*s.value),f=e.computed(()=>i.value>O.value&&g.value>=s.value+(r.value+1)),m=e.computed(()=>i.value>O.value&&g.value<=i.value-s.value-r.value),b=e.ref(y(g.value,i.value,f.value,m.value)),I=()=>{l.value++,E()},T=()=>{l.value--,E()},p=a=>{l.value=a,E()},E=()=>{const a=(l.value-1)*u.value+u.value;B.value=a>=t.totalCount,V.value=l.value===1,b.value=y(l.value,i.value,f.value,m.value),k("pageChange",{page:l.value,pageCount:i.value,firstItem:h.value,lastItem:N.value,visibleItems:t.items.slice(h.value-1,N.value)})},A=a=>{u.value!==a.value&&(u.value=a.value,k("pageSizeChange",{pageSize:u.value,pageCount:i.value}),t.currentPage!==1&&p(1))},F=()=>{k("getNextOffset")},M=()=>{k("getPreviousOffset")};return e.watch(()=>t.currentPage,(a,n)=>{a!==n&&a&&p(a)}),e.watch(i,(a,n)=>{a!==n&&(B.value=l.value===a,b.value=y(g.value,a,f.value,m.value))}),e.watch(b,()=>{!t.disablePageJump&&!t.offset&&z()}),e.onMounted(()=>{!t.disablePageJump&&!t.offset&&(C.value=R.ResizeObserverHelper.create(z),C.value.observe(v.value))}),e.onBeforeUnmount(()=>{!t.disablePageJump&&!t.offset&&C.value?.unobserve(v.value)}),(a,n)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"kPaginationElement",ref:v,class:e.normalizeClass(["k-pagination",{"page-jump":!t.disablePageJump&&!t.offset}]),"data-testid":"k-pagination"},[t.offset?(e.openBlock(),e.createBlock(j.default,{key:1,"next-button-disabled":t.offsetNextButtonDisabled,"previous-button-disabled":t.offsetPreviousButtonDisabled,onGetNextOffset:F,onGetPreviousOffset:M},null,8,["next-button-disabled","previous-button-disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Q,[e.createElementVNode("span",X,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)]),e.createElementVNode("ul",Y,[e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the previous page",class:"pagination-button arrow","data-testid":"previous-button",disabled:V.value,icon:"",size:"small",type:"button",onClick:T},{default:e.withCtx(()=>[e.createVNode(e.unref(L.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])]),!t.disablePageJump&&f.value?(e.openBlock(),e.createElementBlock("li",_,[e.createElementVNode("button",{"aria-label":"Go to the first page",class:"pagination-button","data-testid":"page-1-button",type:"button",onClick:n[0]||(n[0]=o=>p(1))}," 1 ")])):e.createCommentVNode("",!0),!t.disablePageJump&&f.value?(e.openBlock(),e.createElementBlock("li",ee," ... ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("li",{key:o},[e.createElementVNode("button",{"aria-current":o==g.value&&"page"||void 0,"aria-label":`Go to page ${o}`,class:e.normalizeClass(["pagination-button",{active:o==g.value}]),"data-testid":`page-${o}-button`,type:"button",onClick:S=>p(o)},e.toDisplayString(o),11,te)]))),128)),!t.disablePageJump&&m.value?(e.openBlock(),e.createElementBlock("li",ae," ... ")):e.createCommentVNode("",!0),!t.disablePageJump&&m.value?(e.openBlock(),e.createElementBlock("li",le,[e.createElementVNode("button",{"aria-label":"Go to the last page",class:"pagination-button","data-testid":"last-button",type:"button",onClick:n[1]||(n[1]=o=>p(i.value))},e.toDisplayString(i.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the next page",class:"pagination-button arrow","data-testid":"next-button",disabled:B.value?!0:void 0,icon:"",size:"small",type:"button",onClick:I},{default:e.withCtx(()=>[e.createVNode(e.unref(W.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])])])],64)),e.createElementVNode("div",ne,[!t.disablePageJump&&!t.offset?(e.openBlock(),e.createElementBlock("span",oe,[e.createElementVNode("span",ie,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)])):e.createCommentVNode("",!0),e.createVNode(K.default,{class:"page-size-dropdown","data-testid":"page-size-dropdown",disabled:e.unref(P).length<=1,items:e.unref(P),"kpop-attributes":J,"selection-menu":"",onChange:A},{default:e.withCtx(()=>[e.createVNode(x.default,{appearance:"tertiary",class:"page-size-dropdown-trigger","data-testid":"page-size-dropdown-trigger",disabled:e.unref(P).length<=1,size:"small",type:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.value)+" ",1),e.unref(P).length>1?(e.openBlock(),e.createBlock(e.unref(U.default),{key:0,decorative:""})):e.createCommentVNode("",!0)]),_:1},8,["disabled"])]),_:1},8,["disabled","items"])])],2))}});exports.default=ue;
|