@kong/kongponents 9.64.21-pr.3446.a8018f3.0 → 9.64.21
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/kongponents102.cjs +1 -1
- package/dist/kongponents102.es.js +1 -1
- package/dist/kongponents104.cjs +1 -1
- package/dist/kongponents104.es.js +5 -5
- package/dist/kongponents107.cjs +1 -1
- package/dist/kongponents107.es.js +1 -1
- package/dist/kongponents113.cjs +1 -1
- package/dist/kongponents113.es.js +1 -1
- package/dist/kongponents115.cjs +1 -1
- package/dist/kongponents115.es.js +1 -1
- package/dist/kongponents117.cjs +1 -1
- package/dist/kongponents117.es.js +2 -2
- package/dist/kongponents121.cjs +1 -1
- package/dist/kongponents121.es.js +1 -1
- package/dist/kongponents123.cjs +1 -1
- package/dist/kongponents123.es.js +4 -4
- package/dist/kongponents125.cjs +1 -1
- package/dist/kongponents125.es.js +1 -1
- package/dist/kongponents127.cjs +1 -1
- package/dist/kongponents127.es.js +6 -6
- package/dist/kongponents130.cjs +1 -1
- package/dist/kongponents130.es.js +2 -2
- package/dist/kongponents132.cjs +1 -1
- package/dist/kongponents132.es.js +5 -5
- package/dist/kongponents136.cjs +1 -1
- package/dist/kongponents136.es.js +1 -1
- package/dist/kongponents138.cjs +1 -1
- package/dist/kongponents138.es.js +1 -1
- package/dist/kongponents140.cjs +1 -1
- package/dist/kongponents140.es.js +7 -7
- package/dist/kongponents147.cjs +1 -1
- package/dist/kongponents147.es.js +4 -4
- package/dist/kongponents149.cjs +1 -1
- package/dist/kongponents149.es.js +1 -1
- package/dist/kongponents151.cjs +1 -1
- package/dist/kongponents151.es.js +4 -4
- package/dist/kongponents155.cjs +1 -1
- package/dist/kongponents155.es.js +1 -1
- package/dist/kongponents157.cjs +1 -1
- package/dist/kongponents157.es.js +1 -1
- package/dist/kongponents163.cjs +1 -1
- package/dist/kongponents163.es.js +2 -2
- package/dist/kongponents165.cjs +1 -1
- package/dist/kongponents165.es.js +4 -4
- package/dist/kongponents167.cjs +1 -1
- package/dist/kongponents167.es.js +2 -2
- package/dist/kongponents169.cjs +1 -1
- package/dist/kongponents169.es.js +6 -6
- package/dist/kongponents174.cjs +1 -1
- package/dist/kongponents174.es.js +3 -3
- package/dist/kongponents182.cjs +1 -1
- package/dist/kongponents182.es.js +5 -20
- package/dist/kongponents183.cjs +1 -1
- package/dist/kongponents183.es.js +20 -5
- package/dist/kongponents184.cjs +1 -1
- package/dist/kongponents184.es.js +5 -21
- package/dist/kongponents186.cjs +1 -1
- package/dist/kongponents186.es.js +4 -4
- package/dist/kongponents187.cjs +1 -1
- package/dist/kongponents187.es.js +8 -5
- package/dist/kongponents188.cjs +1 -1
- package/dist/kongponents188.es.js +60 -5
- package/dist/kongponents189.cjs +1 -1
- package/dist/kongponents189.es.js +5 -5
- package/dist/kongponents190.cjs +1 -1
- package/dist/kongponents190.es.js +98 -5
- package/dist/kongponents192.cjs +1 -1
- package/dist/kongponents192.es.js +1 -1
- package/dist/kongponents194.cjs +1 -1
- package/dist/kongponents194.es.js +52 -5
- package/dist/kongponents195.cjs +1 -1
- package/dist/kongponents195.es.js +5 -52
- package/dist/kongponents196.cjs +1 -1
- package/dist/kongponents196.es.js +15 -202
- package/dist/kongponents197.cjs +1 -1
- package/dist/kongponents197.es.js +5 -2
- package/dist/kongponents198.cjs +1 -1
- package/dist/kongponents198.es.js +5 -98
- package/dist/kongponents199.cjs +1 -1
- package/dist/kongponents199.es.js +208 -5
- package/dist/kongponents200.cjs +1 -1
- package/dist/kongponents200.es.js +5 -3
- package/dist/kongponents201.cjs +1 -1
- package/dist/kongponents201.es.js +181 -5
- package/dist/kongponents202.cjs +1 -0
- package/dist/kongponents202.es.js +19 -0
- package/dist/kongponents203.cjs +1 -1
- package/dist/kongponents203.es.js +2 -5
- package/dist/kongponents204.cjs +1 -1
- package/dist/kongponents204.es.js +5 -8
- package/dist/kongponents205.cjs +1 -1
- package/dist/kongponents205.es.js +5 -60
- package/dist/kongponents206.cjs +1 -1
- package/dist/kongponents206.es.js +10 -5
- package/dist/kongponents207.cjs +1 -1
- package/dist/kongponents207.es.js +4 -4
- package/dist/kongponents208.cjs +1 -1
- package/dist/kongponents208.es.js +5 -10
- package/dist/kongponents209.cjs +1 -1
- package/dist/kongponents209.es.js +4 -6
- package/dist/kongponents210.cjs +1 -1
- package/dist/kongponents210.es.js +5 -181
- package/dist/kongponents211.cjs +1 -1
- package/dist/kongponents211.es.js +3 -3
- package/dist/kongponents212.cjs +1 -1
- package/dist/kongponents212.es.js +3 -3
- package/dist/kongponents213.cjs +1 -1
- package/dist/kongponents213.es.js +5 -17
- package/dist/kongponents214.cjs +1 -1
- package/dist/kongponents214.es.js +5 -15
- package/dist/kongponents215.cjs +1 -1
- package/dist/kongponents215.es.js +15 -5
- package/dist/kongponents216.cjs +1 -1
- package/dist/kongponents216.es.js +4 -4
- package/dist/kongponents217.cjs +1 -1
- package/dist/kongponents217.es.js +3 -3
- package/dist/kongponents220.cjs +1 -1
- package/dist/kongponents220.es.js +2 -2
- package/dist/kongponents226.cjs +1 -1
- package/dist/kongponents226.es.js +1 -1
- package/dist/kongponents230.cjs +1 -1
- package/dist/kongponents230.es.js +55 -31
- package/dist/{kongponents231.cjs → kongponents234.cjs} +1 -1
- package/dist/{kongponents231.es.js → kongponents234.es.js} +6 -6
- package/dist/kongponents236.cjs +1 -1
- package/dist/kongponents236.es.js +6 -83
- package/dist/kongponents237.cjs +1 -0
- package/dist/kongponents237.es.js +33 -0
- package/dist/kongponents238.cjs +1 -1
- package/dist/kongponents238.es.js +77 -35
- package/dist/kongponents240.cjs +1 -1
- package/dist/kongponents240.es.js +35 -172
- package/dist/kongponents242.cjs +1 -1
- package/dist/kongponents242.es.js +2 -64
- package/dist/kongponents244.cjs +1 -0
- package/dist/kongponents244.es.js +180 -0
- package/dist/kongponents246.cjs +1 -1
- package/dist/kongponents246.es.js +64 -9
- package/dist/kongponents248.cjs +1 -1
- package/dist/kongponents248.es.js +8 -7
- package/dist/kongponents249.cjs +1 -1
- package/dist/kongponents249.es.js +5 -3
- package/dist/kongponents25.cjs +1 -1
- package/dist/kongponents25.es.js +7 -7
- package/dist/kongponents250.cjs +1 -1
- package/dist/kongponents250.es.js +7 -9
- package/dist/kongponents251.cjs +1 -1
- package/dist/kongponents251.es.js +4 -8
- package/dist/kongponents252.cjs +1 -1
- package/dist/kongponents252.es.js +9 -601
- package/dist/kongponents253.cjs +1 -1
- package/dist/kongponents253.es.js +9 -71
- package/dist/kongponents254.cjs +1 -1
- package/dist/kongponents254.es.js +601 -4
- package/dist/kongponents255.cjs +1 -1
- package/dist/kongponents255.es.js +71 -20
- package/dist/kongponents256.cjs +1 -1
- package/dist/kongponents256.es.js +4 -4
- package/dist/kongponents257.cjs +1 -1
- package/dist/kongponents257.es.js +20 -18
- package/dist/kongponents258.cjs +1 -1
- package/dist/kongponents258.es.js +4 -7
- package/dist/kongponents259.cjs +1 -1
- package/dist/kongponents259.es.js +18 -6
- package/dist/kongponents260.cjs +1 -1
- package/dist/kongponents260.es.js +7 -8
- package/dist/kongponents261.cjs +1 -1
- package/dist/kongponents261.es.js +5 -7
- package/dist/kongponents262.cjs +1 -1
- package/dist/kongponents262.es.js +8 -7
- package/dist/kongponents263.cjs +1 -1
- package/dist/kongponents263.es.js +6 -6
- package/dist/kongponents264.cjs +1 -1
- package/dist/kongponents264.es.js +6 -6
- package/dist/kongponents265.cjs +1 -1
- package/dist/kongponents265.es.js +7 -124
- package/dist/kongponents266.cjs +1 -2
- package/dist/kongponents266.es.js +7 -48
- package/dist/kongponents267.cjs +1 -1
- package/dist/kongponents267.es.js +124 -7
- package/dist/kongponents268.cjs +2 -1
- package/dist/kongponents268.es.js +46 -54
- package/dist/kongponents269.cjs +1 -1
- package/dist/kongponents269.es.js +8 -65
- package/dist/kongponents27.cjs +1 -1
- package/dist/kongponents27.es.js +2 -2
- package/dist/kongponents270.cjs +1 -1
- package/dist/kongponents270.es.js +57 -5
- package/dist/kongponents271.cjs +1 -1
- package/dist/kongponents271.es.js +65 -4
- package/dist/kongponents272.cjs +1 -1
- package/dist/kongponents272.es.js +4 -20
- package/dist/kongponents273.cjs +1 -1
- package/dist/kongponents273.es.js +4 -5
- package/dist/kongponents274.cjs +1 -1
- package/dist/kongponents274.es.js +19 -95
- package/dist/kongponents275.cjs +1 -1
- package/dist/kongponents275.es.js +5 -172
- package/dist/kongponents276.cjs +1 -1
- package/dist/kongponents276.es.js +97 -5
- package/dist/kongponents277.cjs +1 -1
- package/dist/kongponents277.es.js +171 -6
- package/dist/kongponents278.es.js +5 -5
- package/dist/kongponents279.cjs +1 -1
- package/dist/kongponents279.es.js +7 -5
- package/dist/kongponents280.cjs +1 -1
- package/dist/kongponents280.es.js +5 -70
- package/dist/kongponents281.cjs +1 -1
- package/dist/kongponents281.es.js +5 -2
- package/dist/kongponents282.cjs +1 -1
- package/dist/kongponents282.es.js +69 -54
- package/dist/kongponents283.cjs +1 -0
- package/dist/kongponents283.es.js +4 -0
- package/dist/kongponents290.cjs +1 -1
- package/dist/kongponents290.es.js +1 -1
- package/dist/kongponents293.cjs +1 -1
- package/dist/kongponents293.es.js +2 -2
- package/dist/kongponents30.cjs +1 -1
- package/dist/kongponents30.es.js +1 -1
- package/dist/kongponents303.cjs +1 -1
- package/dist/kongponents303.es.js +1 -1
- package/dist/kongponents305.cjs +1 -1
- package/dist/kongponents305.es.js +3 -3
- package/dist/kongponents310.cjs +1 -1
- package/dist/kongponents310.es.js +1 -1
- package/dist/kongponents312.cjs +1 -1
- package/dist/kongponents312.es.js +2 -2
- package/dist/kongponents313.cjs +1 -1
- package/dist/kongponents313.es.js +2 -2
- package/dist/kongponents315.cjs +1 -1
- package/dist/kongponents315.es.js +2 -2
- package/dist/kongponents316.cjs +1 -1
- package/dist/kongponents316.es.js +1 -1
- package/dist/kongponents317.cjs +1 -1
- package/dist/kongponents317.es.js +1 -1
- package/dist/kongponents318.cjs +1 -1
- package/dist/kongponents318.es.js +2 -2
- package/dist/kongponents32.cjs +1 -1
- package/dist/kongponents32.es.js +4 -4
- package/dist/kongponents320.cjs +1 -1
- package/dist/kongponents320.es.js +5 -5
- package/dist/kongponents322.cjs +1 -1
- package/dist/kongponents322.es.js +2 -2
- package/dist/kongponents323.cjs +1 -1
- package/dist/kongponents323.es.js +2 -2
- package/dist/kongponents330.cjs +1 -1
- package/dist/kongponents330.es.js +1 -1
- package/dist/kongponents331.cjs +1 -1
- package/dist/kongponents331.es.js +1 -1
- package/dist/kongponents332.cjs +1 -1
- package/dist/kongponents332.es.js +78 -82
- package/dist/kongponents334.cjs +1 -1
- package/dist/kongponents334.es.js +37 -238
- package/dist/kongponents336.cjs +1 -1
- package/dist/kongponents336.es.js +91 -2
- package/dist/kongponents338.cjs +1 -0
- package/dist/kongponents338.es.js +248 -0
- package/dist/kongponents340.cjs +1 -0
- package/dist/kongponents340.es.js +4 -0
- package/dist/kongponents341.cjs +1 -1
- package/dist/kongponents341.es.js +1 -1
- package/dist/kongponents342.cjs +1 -1
- package/dist/kongponents342.es.js +2 -94
- package/dist/kongponents343.cjs +1 -0
- package/dist/kongponents343.es.js +13 -0
- package/dist/kongponents344.cjs +1 -1
- package/dist/kongponents344.es.js +9 -9
- package/dist/kongponents345.cjs +1 -1
- package/dist/kongponents345.es.js +12 -10
- package/dist/kongponents346.cjs +1 -1
- package/dist/kongponents346.es.js +10 -12
- package/dist/kongponents347.cjs +1 -1
- package/dist/kongponents347.es.js +18 -10
- package/dist/kongponents348.cjs +1 -1
- package/dist/kongponents348.es.js +5 -18
- package/dist/kongponents349.cjs +1 -1
- package/dist/kongponents349.es.js +54 -6
- package/dist/kongponents350.cjs +1 -1
- package/dist/kongponents350.es.js +8 -53
- package/dist/kongponents351.cjs +1 -1
- package/dist/kongponents351.es.js +5 -2
- package/dist/kongponents352.cjs +1 -1
- package/dist/kongponents352.es.js +12 -7
- package/dist/kongponents353.cjs +1 -1
- package/dist/kongponents353.es.js +14 -4
- package/dist/kongponents354.cjs +1 -1
- package/dist/kongponents354.es.js +3 -13
- package/dist/kongponents355.cjs +1 -1
- package/dist/kongponents355.es.js +12 -14
- package/dist/kongponents356.cjs +1 -1
- package/dist/kongponents356.es.js +9 -3
- package/dist/kongponents357.cjs +1 -1
- package/dist/kongponents357.es.js +52 -12
- package/dist/kongponents358.cjs +1 -1
- package/dist/kongponents358.es.js +57 -10
- package/dist/kongponents359.cjs +1 -1
- package/dist/kongponents359.es.js +51 -45
- package/dist/kongponents360.cjs +1 -1
- package/dist/kongponents360.es.js +27 -51
- package/dist/kongponents361.cjs +1 -1
- package/dist/kongponents361.es.js +23 -51
- package/dist/kongponents362.cjs +1 -1
- package/dist/kongponents362.es.js +66 -27
- package/dist/kongponents363.cjs +1 -1
- package/dist/kongponents363.es.js +64 -23
- package/dist/kongponents364.cjs +1 -1
- package/dist/kongponents364.es.js +45 -39
- package/dist/kongponents365.cjs +1 -1
- package/dist/kongponents365.es.js +51 -45
- package/dist/kongponents366.cjs +1 -1
- package/dist/kongponents366.es.js +31 -61
- package/dist/kongponents367.cjs +1 -1
- package/dist/kongponents367.es.js +30 -60
- package/dist/kongponents368.cjs +1 -1
- package/dist/kongponents368.es.js +24 -25
- package/dist/kongponents369.cjs +1 -1
- package/dist/kongponents369.es.js +25 -25
- package/dist/kongponents370.cjs +1 -1
- package/dist/kongponents370.es.js +68 -35
- package/dist/kongponents371.cjs +1 -1
- package/dist/kongponents371.es.js +80 -36
- package/dist/kongponents372.cjs +1 -1
- package/dist/kongponents372.es.js +64 -52
- package/dist/kongponents373.cjs +1 -1
- package/dist/kongponents373.es.js +54 -55
- package/dist/kongponents374.cjs +1 -1
- package/dist/kongponents374.es.js +41 -75
- package/dist/kongponents375.cjs +1 -1
- package/dist/kongponents375.es.js +37 -70
- package/dist/kongponents376.cjs +1 -1
- package/dist/kongponents376.es.js +28 -28
- package/dist/kongponents377.cjs +1 -1
- package/dist/kongponents377.es.js +38 -49
- package/dist/kongponents378.cjs +1 -1
- package/dist/kongponents378.es.js +37 -49
- package/dist/kongponents379.cjs +1 -1
- package/dist/kongponents379.es.js +25 -25
- package/dist/kongponents380.cjs +1 -1
- package/dist/kongponents380.es.js +31 -30
- package/dist/kongponents381.cjs +1 -1
- package/dist/kongponents381.es.js +34 -35
- package/dist/kongponents382.cjs +1 -1
- package/dist/kongponents382.es.js +24 -25
- package/dist/kongponents383.cjs +1 -1
- package/dist/kongponents383.es.js +27 -39
- package/dist/kongponents384.cjs +1 -1
- package/dist/kongponents384.es.js +34 -37
- package/dist/kongponents385.cjs +1 -1
- package/dist/kongponents385.es.js +34 -25
- package/dist/kongponents386.cjs +1 -1
- package/dist/kongponents386.es.js +26 -36
- package/dist/kongponents387.cjs +1 -1
- package/dist/kongponents387.es.js +25 -35
- package/dist/kongponents388.cjs +1 -1
- package/dist/kongponents388.es.js +70 -31
- package/dist/kongponents389.cjs +1 -1
- package/dist/kongponents389.es.js +2 -33
- package/dist/kongponents390.cjs +1 -1
- package/dist/kongponents390.es.js +11 -16
- package/dist/kongponents391.cjs +1 -1
- package/dist/kongponents391.es.js +23 -2
- package/dist/kongponents392.cjs +1 -1
- package/dist/kongponents392.es.js +19 -10
- package/dist/kongponents393.cjs +1 -1
- package/dist/kongponents393.es.js +17 -14
- package/dist/kongponents394.cjs +1 -1
- package/dist/kongponents394.es.js +611 -68
- package/dist/kongponents395.cjs +1 -1
- package/dist/kongponents395.es.js +81 -2
- package/dist/kongponents396.cjs +1 -1
- package/dist/kongponents396.es.js +12 -20
- package/dist/kongponents397.cjs +1 -1
- package/dist/kongponents397.es.js +26 -21
- package/dist/kongponents398.cjs +1 -1
- package/dist/kongponents398.es.js +13 -17
- package/dist/kongponents399.cjs +1 -1
- package/dist/kongponents399.es.js +12 -612
- package/dist/kongponents400.cjs +1 -1
- package/dist/kongponents400.es.js +16 -80
- package/dist/kongponents401.cjs +1 -1
- package/dist/kongponents401.es.js +13 -13
- package/dist/kongponents402.cjs +1 -1
- package/dist/kongponents402.es.js +23 -26
- package/dist/kongponents403.cjs +1 -1
- package/dist/kongponents403.es.js +15 -14
- package/dist/kongponents404.cjs +1 -1
- package/dist/kongponents404.es.js +2 -15
- package/dist/kongponents405.cjs +1 -1
- package/dist/kongponents405.es.js +17 -16
- package/dist/kongponents406.cjs +1 -1
- package/dist/kongponents406.es.js +64 -14
- package/dist/kongponents407.cjs +1 -1
- package/dist/kongponents407.es.js +4 -23
- package/dist/kongponents408.cjs +1 -1
- package/dist/kongponents408.es.js +2 -65
- package/dist/kongponents409.cjs +1 -1
- package/dist/kongponents409.es.js +2 -5
- package/dist/kongponents410.cjs +1 -1
- package/dist/kongponents410.es.js +8 -2
- package/dist/kongponents411.cjs +1 -1
- package/dist/kongponents411.es.js +6 -2
- package/dist/kongponents412.cjs +1 -1
- package/dist/kongponents412.es.js +9 -8
- package/dist/kongponents413.cjs +1 -1
- package/dist/kongponents413.es.js +5 -5
- package/dist/kongponents414.cjs +1 -1
- package/dist/kongponents414.es.js +10 -9
- package/dist/kongponents415.cjs +1 -1
- package/dist/kongponents415.es.js +13 -8
- package/dist/kongponents416.cjs +1 -1
- package/dist/kongponents416.es.js +3 -15
- package/dist/kongponents417.cjs +1 -1
- package/dist/kongponents417.es.js +7 -5
- package/dist/kongponents418.cjs +1 -1
- package/dist/kongponents418.es.js +3 -3
- package/dist/kongponents419.cjs +1 -1
- package/dist/kongponents419.es.js +10 -7
- package/dist/kongponents420.cjs +1 -1
- package/dist/kongponents420.es.js +8 -3
- package/dist/kongponents421.cjs +1 -1
- package/dist/kongponents421.es.js +5 -10
- package/dist/kongponents422.cjs +1 -1
- package/dist/kongponents422.es.js +2 -8
- package/dist/kongponents423.cjs +1 -1
- package/dist/kongponents423.es.js +12 -5
- package/dist/kongponents424.cjs +1 -1
- package/dist/kongponents424.es.js +5 -2
- package/dist/kongponents425.cjs +1 -1
- package/dist/kongponents425.es.js +3 -13
- package/dist/kongponents426.cjs +1 -1
- package/dist/kongponents426.es.js +26 -5
- package/dist/kongponents427.cjs +1 -1
- package/dist/kongponents427.es.js +4 -3
- package/dist/kongponents428.cjs +1 -1
- package/dist/kongponents428.es.js +4 -26
- package/dist/kongponents429.cjs +1 -1
- package/dist/kongponents429.es.js +4 -4
- package/dist/kongponents430.cjs +1 -1
- package/dist/kongponents430.es.js +4 -4
- package/dist/kongponents431.cjs +1 -1
- package/dist/kongponents431.es.js +4 -4
- package/dist/kongponents432.cjs +1 -1
- package/dist/kongponents432.es.js +15 -4
- package/dist/kongponents433.cjs +1 -1
- package/dist/kongponents433.es.js +6 -4
- package/dist/kongponents434.cjs +1 -1
- package/dist/kongponents434.es.js +27 -12
- package/dist/kongponents435.cjs +1 -1
- package/dist/kongponents435.es.js +26 -5
- package/dist/kongponents436.cjs +1 -1
- package/dist/kongponents436.es.js +15 -29
- package/dist/kongponents437.cjs +1 -1
- package/dist/kongponents437.es.js +8 -25
- package/dist/kongponents438.cjs +1 -1
- package/dist/kongponents438.es.js +4 -15
- package/dist/kongponents439.cjs +1 -1
- package/dist/kongponents439.es.js +13 -9
- package/dist/kongponents440.cjs +1 -1
- package/dist/kongponents440.es.js +8 -4
- package/dist/kongponents441.cjs +1 -1
- package/dist/kongponents441.es.js +3 -14
- package/dist/kongponents442.cjs +1 -1
- package/dist/kongponents442.es.js +5 -8
- package/dist/kongponents443.cjs +1 -1
- package/dist/kongponents443.es.js +6 -3
- package/dist/kongponents444.cjs +1 -1
- package/dist/kongponents444.es.js +7 -5
- package/dist/kongponents445.cjs +1 -1
- package/dist/kongponents445.es.js +5 -5
- package/dist/kongponents446.cjs +1 -1
- package/dist/kongponents446.es.js +10 -7
- package/dist/kongponents447.cjs +1 -1
- package/dist/kongponents447.es.js +5 -5
- package/dist/kongponents448.cjs +1 -1
- package/dist/kongponents448.es.js +4 -10
- package/dist/kongponents449.cjs +1 -1
- package/dist/kongponents449.es.js +4 -5
- package/dist/kongponents450.cjs +1 -1
- package/dist/kongponents450.es.js +5 -4
- package/dist/kongponents451.cjs +1 -1
- package/dist/kongponents451.es.js +8 -5
- package/dist/kongponents452.cjs +1 -1
- package/dist/kongponents452.es.js +6 -5
- package/dist/kongponents453.cjs +1 -1
- package/dist/kongponents453.es.js +10 -8
- package/dist/kongponents454.cjs +1 -1
- package/dist/kongponents454.es.js +6 -6
- package/dist/kongponents455.cjs +1 -1
- package/dist/kongponents455.es.js +22 -10
- package/dist/kongponents456.cjs +1 -1
- package/dist/kongponents456.es.js +6 -6
- package/dist/kongponents457.cjs +1 -1
- package/dist/kongponents457.es.js +6 -21
- package/dist/kongponents458.cjs +1 -1
- package/dist/kongponents458.es.js +6 -6
- package/dist/kongponents459.cjs +1 -1
- package/dist/kongponents459.es.js +8 -6
- package/dist/kongponents460.cjs +1 -1
- package/dist/kongponents460.es.js +94 -7
- package/dist/kongponents463.cjs +1 -1
- package/dist/kongponents463.es.js +1 -1
- package/dist/kongponents465.cjs +1 -1
- package/dist/kongponents465.es.js +67 -8
- package/dist/kongponents466.cjs +1 -1
- package/dist/kongponents466.es.js +31 -11
- package/dist/kongponents467.cjs +1 -1
- package/dist/kongponents467.es.js +11 -14
- package/dist/kongponents468.cjs +1 -1
- package/dist/kongponents468.es.js +121 -14
- package/dist/kongponents469.cjs +1 -1
- package/dist/kongponents469.es.js +84 -65
- package/dist/kongponents470.cjs +1 -1
- package/dist/kongponents470.es.js +8 -31
- package/dist/kongponents471.cjs +1 -1
- package/dist/kongponents471.es.js +11 -11
- package/dist/kongponents472.cjs +1 -1
- package/dist/kongponents472.es.js +14 -121
- package/dist/kongponents473.cjs +1 -1
- package/dist/kongponents473.es.js +14 -86
- package/dist/kongponents475.cjs +1 -1
- package/dist/kongponents475.es.js +6 -2
- package/dist/kongponents476.cjs +1 -1
- package/dist/kongponents476.es.js +6 -2
- package/dist/kongponents477.cjs +1 -1
- package/dist/kongponents477.es.js +10 -5
- package/dist/kongponents478.cjs +1 -1
- package/dist/kongponents478.es.js +7 -5
- package/dist/kongponents479.cjs +1 -1
- package/dist/kongponents479.es.js +6 -10
- package/dist/kongponents480.cjs +1 -1
- package/dist/kongponents480.es.js +25 -8
- package/dist/kongponents481.cjs +1 -1
- package/dist/kongponents481.es.js +96 -6
- package/dist/kongponents482.cjs +1 -1
- package/dist/kongponents482.es.js +47 -2
- package/dist/kongponents483.cjs +1 -1
- package/dist/kongponents483.es.js +9 -18
- package/dist/kongponents484.cjs +1 -1
- package/dist/kongponents484.es.js +10 -2
- package/dist/kongponents485.cjs +1 -1
- package/dist/kongponents485.es.js +13 -21
- package/dist/kongponents486.cjs +1 -1
- package/dist/kongponents486.es.js +11 -2
- package/dist/kongponents487.cjs +1 -1
- package/dist/kongponents487.es.js +2 -16
- package/dist/kongponents488.es.js +2 -2
- package/dist/kongponents489.cjs +1 -1
- package/dist/kongponents489.es.js +2 -23
- package/dist/kongponents490.cjs +1 -1
- package/dist/kongponents490.es.js +15 -19
- package/dist/kongponents491.cjs +1 -1
- package/dist/kongponents491.es.js +2 -26
- package/dist/kongponents492.cjs +1 -1
- package/dist/kongponents492.es.js +19 -20
- package/dist/kongponents493.cjs +1 -1
- package/dist/kongponents493.es.js +2 -32
- package/dist/kongponents494.cjs +1 -1
- package/dist/kongponents494.es.js +14 -14
- package/dist/kongponents495.cjs +1 -1
- package/dist/kongponents495.es.js +2 -66
- package/dist/kongponents496.cjs +1 -1
- package/dist/kongponents496.es.js +23 -2
- package/dist/kongponents497.cjs +1 -1
- package/dist/kongponents497.es.js +23 -2
- package/dist/kongponents498.cjs +1 -1
- package/dist/kongponents498.es.js +26 -2
- package/dist/kongponents499.cjs +1 -1
- package/dist/kongponents499.es.js +23 -2
- package/dist/kongponents500.cjs +1 -1
- package/dist/kongponents500.es.js +32 -2
- package/dist/kongponents501.cjs +1 -1
- package/dist/kongponents501.es.js +14 -28
- package/dist/kongponents502.cjs +1 -1
- package/dist/kongponents502.es.js +66 -25
- package/dist/kongponents503.cjs +1 -1
- package/dist/kongponents503.es.js +2 -97
- package/dist/kongponents504.cjs +1 -1
- package/dist/kongponents504.es.js +2 -47
- package/dist/kongponents505.cjs +1 -1
- package/dist/kongponents505.es.js +2 -10
- package/dist/kongponents506.cjs +1 -1
- package/dist/kongponents506.es.js +2 -10
- package/dist/kongponents507.cjs +1 -1
- package/dist/kongponents507.es.js +2 -14
- package/dist/kongponents508.cjs +1 -1
- package/dist/kongponents508.es.js +29 -10
- package/dist/kongponents510.cjs +1 -1
- package/dist/kongponents510.es.js +1 -1
- package/dist/kongponents516.cjs +1 -1
- package/dist/kongponents516.es.js +1 -1
- package/dist/kongponents517.cjs +1 -1
- package/dist/kongponents517.es.js +1 -1
- package/dist/kongponents518.cjs +1 -1
- package/dist/kongponents518.es.js +1 -1
- package/dist/kongponents523.cjs +1 -1
- package/dist/kongponents523.es.js +1 -1
- package/dist/kongponents524.cjs +1 -1
- package/dist/kongponents524.es.js +3 -3
- package/dist/kongponents533.cjs +1 -1
- package/dist/kongponents533.es.js +1 -1
- package/dist/kongponents539.cjs +1 -1
- package/dist/kongponents539.es.js +4 -4
- package/dist/kongponents540.cjs +1 -1
- package/dist/kongponents540.es.js +4 -4
- package/dist/kongponents543.cjs +1 -1
- package/dist/kongponents543.es.js +6 -6
- package/dist/kongponents544.cjs +1 -1
- package/dist/kongponents544.es.js +6 -6
- package/dist/kongponents550.cjs +1 -1
- package/dist/kongponents550.es.js +1 -1
- package/dist/kongponents552.cjs +1 -1
- package/dist/kongponents552.es.js +1 -1
- package/dist/kongponents553.cjs +1 -1
- package/dist/kongponents553.es.js +1 -1
- package/dist/kongponents576.cjs +1 -1
- package/dist/kongponents576.es.js +1 -1
- package/dist/kongponents578.cjs +1 -1
- package/dist/kongponents578.es.js +1 -1
- package/dist/kongponents579.cjs +1 -1
- package/dist/kongponents579.es.js +1 -1
- package/dist/kongponents583.es.js +2 -2
- package/dist/kongponents584.es.js +2 -2
- package/dist/kongponents585.es.js +2 -2
- package/dist/kongponents80.cjs +1 -1
- package/dist/kongponents80.es.js +1 -1
- 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 +1 -1
- package/dist/kongponents97.cjs +1 -1
- package/dist/kongponents97.es.js +3 -3
- package/package.json +36 -35
- package/dist/kongponents185.cjs +0 -1
- package/dist/kongponents185.es.js +0 -7
- package/dist/kongponents235.cjs +0 -1
- package/dist/kongponents235.es.js +0 -8
- package/dist/kongponents245.cjs +0 -1
- package/dist/kongponents245.es.js +0 -4
- package/dist/kongponents247.cjs +0 -1
- package/dist/kongponents247.es.js +0 -9
- package/dist/kongponents337.cjs +0 -1
- package/dist/kongponents337.es.js +0 -89
- package/dist/kongponents339.cjs +0 -1
- package/dist/kongponents339.es.js +0 -47
- package/dist/kongponents461.cjs +0 -1
- package/dist/kongponents461.es.js +0 -11
- /package/dist/{kongponents233.cjs → kongponents232.cjs} +0 -0
- /package/dist/{kongponents233.es.js → kongponents232.es.js} +0 -0
package/dist/kongponents169.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ee=require("./kongponents38.cjs"),pe=require("./kongponents51.cjs"),rt=require("./kongponents25.cjs");;/* empty css */const Ce=require("./kongponents30.cjs");;/* empty css */const P=require("@kong/icons");require("./kongponents7.cjs");require("./kongponents12.cjs");const it=require("./kongponents13.cjs"),i=require("./kongponents19.cjs"),C=require("./kongponents182.cjs"),st=require("./kongponents206.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents207.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents160.cjs"),vt=require("./kongponents193.cjs"),Se=require("./kongponents196.cjs"),bt=require("./kongponents194.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents208.cjs"),gt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},wt={key:0,class:"toolbar-default-items-container"},pt={key:2,class:"table-error-state","data-testid":"table-error-state"},Ct={key:3,class:"table-empty-state","data-testid":"table-empty-state"},ht={key:4,class:"table-container"},St=["data-tableid"],At=["aria-sort","data-key","data-testid","onClick","onMouseover"],Tt=["onMousedown","onMouseover"],Bt=["aria-describedby"],Vt={key:1,class:"table-header-bulk-actions-container"},Et=["onMousedown","onMouseover"],Nt=["role","tabindex"],Kt={key:1,class:"expandable-row-control-container"},Ht=["aria-controls","aria-expanded","onClick"],Rt=["id"],xt=["colspan"],Lt={class:"expandable-content-wrapper"},te="desc",Ot=e.defineComponent({__name:"KTableView",props:{data:{default:()=>[]},headers:{default:()=>[]},resizeColumns:{type:Boolean},tablePreferences:{default:()=>({})},rowHover:{type:Boolean,default:!0},rowAttrs:{default:()=>(()=>({}))},rowLink:{default:()=>(()=>({}))},rowBulkActionEnabled:{default:()=>(()=>!0)},rowKey:{},cellAttrs:{default:()=>(()=>({}))},loading:{type:Boolean},emptyStateTitle:{default:"No Data"},emptyStateMessage:{default:"There is no data to display."},emptyStateActionRoute:{},emptyStateActionMessage:{default:""},emptyStateIconVariant:{default:()=>it.EmptyStateIconVariants.Default},emptyStateButtonAppearance:{default:"primary"},error:{type:Boolean},errorStateTitle:{default:"An error occurred"},errorStateMessage:{default:"Data cannot be displayed due to an error."},errorStateActionRoute:{},errorStateActionMessage:{default:""},maxHeight:{default:"none"},hidePagination:{type:Boolean},paginationAttributes:{default:()=>({})},rowExpandable:{default:()=>(()=>!1)},rowExpanded:{default:()=>(()=>!1)},hideHeaders:{type:Boolean},nested:{type:Boolean},hidePaginationWhenOptional:{type:Boolean},hideToolbar:{type:Boolean},tooltipTarget:{default:"body"},actionsDropdownPopoverAttributes:{default:()=>({})},"onRow:click":{type:Function},"onRow:dblclick":{type:Function},"onRow:auxclick":{type:Function},"onRow:contextmenu":{type:Function},"onRow:mouseover":{type:Function},"onRow:mouseout":{type:Function},"onRow:mouseenter":{type:Function},"onRow:mouseleave":{type:Function},"onRow:mousedown":{type:Function},"onRow:mouseup":{type:Function},"onRow:focus":{type:Function},"onRow:focusin":{type:Function},"onRow:blur":{type:Function},"onRow:focusout":{type:Function},"onRow:keydown":{type:Function},"onRow:keyup":{type:Function},"onRow:keypress":{type:Function},"onCell:click":{type:Function},"onCell:dblclick":{type:Function},"onCell:auxclick":{type:Function},"onCell:contextmenu":{type:Function},"onCell:mouseover":{type:Function},"onCell:mouseout":{type:Function},"onCell:mouseenter":{type:Function},"onCell:mouseleave":{type:Function},"onCell:mousedown":{type:Function},"onCell:mouseup":{type:Function},"onCell:focus":{type:Function},"onCell:focusin":{type:Function},"onCell:blur":{type:Function},"onCell:focusout":{type:Function},"onCell:keydown":{type:Function},"onCell:keyup":{type:Function},"onCell:keypress":{type:Function}},emits:["page-change","page-size-change","get-next-offset","get-previous-offset","cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","row-select","update:row-expanded","row-actions-toggle"],setup(l,{emit:Ae}){e.useCssVars(t=>({v2debc52c:e.unref(ze).expandable,v7e6b967b:Me.value,v43760593:re.value,v4e28b5e7:Re.value}));const ae=e.createPropsRestProxy(l,["resizeColumns","tablePreferences","rowHover","rowAttrs","rowLink","rowBulkActionEnabled","rowKey","cellAttrs","loading","emptyStateTitle","emptyStateMessage","emptyStateActionMessage","emptyStateIconVariant","emptyStateButtonAppearance","emptyStateActionRoute","error","errorStateTitle","errorStateMessage","errorStateActionMessage","errorStateActionRoute","maxHeight","hidePagination","paginationAttributes","rowExpandable","rowExpanded","hideHeaders","nested","hidePaginationWhenOptional","hideToolbar","tooltipTarget","data","headers","actionsDropdownPopoverAttributes"]),f=Ae,p=e.useSlots(),b=e.useId(),m=t=>typeof l.rowKey=="function"&&typeof l.rowKey(t)=="string"?l.rowKey(t):typeof l.rowKey=="string"&&l.rowKey in t&&typeof t[l.rowKey]=="string"?t[l.rowKey]:"",oe=t=>{const o=t.filter(n=>n.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&n.key!==i.TableViewHeaderKeys.ACTIONS),a=t.find(n=>n.key===i.TableViewHeaderKeys.BULK_ACTIONS),r=t.find(n=>n.key===i.TableViewHeaderKeys.ACTIONS);return a&&o.unshift(a),r&&o.push(r),o},le=e.useTemplateRef("table-wrapper"),Te=e.useTemplateRef("table"),ne=e.useTemplateRef("header-row"),h=e.ref(oe(l.headers)),d=e.ref([]),R=e.ref(""),T=e.ref(""),D=e.ref(""),Be=e.computed(()=>h.value.some(t=>t.key===i.TableViewHeaderKeys.ACTIONS)),j=e.computed(()=>h.value.filter(t=>t.hidable).length>0),x=()=>l.nested||!j.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,Ve=e.computed(()=>l.loading||!(l.data&&l.data.length)),Ee=e.computed(()=>h.value.filter(t=>t.hidable&&!U(t.key))),Ne=e.computed(()=>l.nested||!j.value||l.error?{}:l.tablePreferences.columnVisibility||{}),B=e.ref(x()?l.tablePreferences.columnVisibility||{}:{}),re=e.ref("100%"),Z=e.ref(!1),L=e.ref(!1),S=e.ref(!1),V=e.ref(!1),y=e.ref(l.tablePreferences.sortColumnKey||""),v=e.ref(l.tablePreferences.sortColumnOrder||te),G=e.ref(!1),Ke=e.useTemplateRef("actionsDropdown"),J=e.ref(!1),He=e.computed(()=>({maxHeight:bt.normalizeSize(l.maxHeight)})),Re=e.computed(()=>`${vt.getScrollbarSize()}px`),E=e.ref([]),O=e.computed(()=>!l.nested&&!l.error&&h.value.some(t=>t.key===i.TableViewHeaderKeys.BULK_ACTIONS)&&!!(p["bulk-action-items"]||p["bulk-actions"])&&!!l.data.every(t=>m(t))),z=e.ref([]),Y=()=>l.nested||!O.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,xe=()=>!l.hideToolbar&&!l.nested&&(!!p.toolbar||x()||Y()),ie=e.computed(()=>{const t=E.value.length;return t?t>100?"99+":String(t):""}),F=e.ref(new WeakMap),Le=t=>`column-${t}`,N=t=>`tooltip-${t}`,se=(t,o)=>(a,r)=>{const n=/^on[^a-z]/,u={};for(const s in o)n.test(s)&&o[s]&&(u[s]=o[s]);return Object.keys(u).reduce((s,c)=>{if(c.indexOf(t)===0){const k=c.split(t);s[k[1]]=H=>u[c](H,a,r)}return s},{})},Oe=e.computed(()=>(t,o)=>{const a=se("onRow:",ae)(o,"row"),r=se("onCell:",ae)(t,"cell"),n=["a","button","label","input","select",'span[role="checkbox"]'];return(a.click||r.click)&&(G.value=!0),{...a,...r,click(u){const s=u.target,c=s.className;let k=n.includes(s.tagName.toLowerCase()),H=!1;typeof c=="string"||Array.isArray(c)?H=c.includes("k-popover"):typeof c=="object"&&(H=Object.keys(c).includes("k-popover")),s.closest(".popover-content")!==null&&(H=!0);for(let w=0;w<n.length;w++)if(s.closest(n[w])!==null){k=!0;break}if((!k||s.hasAttribute("disabled"))&&!H&&(a.click||r.click))if(r.click){f("cell-click",{data:t});const w=r.click(u,t,"cell");typeof w=="function"&&w(u,t)}else{f("row-click",{data:o});const w=a.click(u,o,"row");typeof w=="function"&&w(u,o)}}}}),ue=parseInt(C.KUI_SPACE_60)*2+parseInt(C.KUI_ICON_SIZE_30),ce={expandable:ue,bulkActions:48,actions:54},ze=mt.default(ce,t=>`${t}px`),A=e.ref({...l.tablePreferences.columnWidths||{},...ce}),de=e.computed(()=>{const t={};for(const o in A.value){const a=o;if(!A.value[a])continue;const r=A.value[a]+"px";t[a]={width:r,maxWidth:r,minWidth:r}}return t}),Ie=(t,o)=>({"resize-hover":ye.value===t.key&&o!==d.value.length-1&&q(t),resizable:l.resizeColumns&&!l.nested,sortable:!t.hideLabel&&!!t.sortable,"active-sort":!t.hideLabel&&!!t.sortable&&t.key===y.value,[v.value]:t.key===y.value&&!t.hideLabel,"is-scrolled":L.value,"has-tooltip":!!t.tooltip,"sticky-column":be(t.key),"second-sticky-column":ke(t.key),"has-row-scroll-overlay":M(t.key),"actions-column":t.key===i.TableViewHeaderKeys.ACTIONS}),$e=t=>{if(t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS){let o="asc",a=t.key;a===y.value&&v.value==="asc"&&(o="desc"),a===y.value&&v.value==="desc"&&(a="",o=te),f("sort",{prevKey:y.value,sortColumnKey:a,sortColumnOrder:o}),Xe(a)}},Pe=e.computed(()=>R.value?"resizing":T.value?"resize-hover":D.value?"th-hover":""),ye=e.computed(()=>{switch(Pe.value){case"resizing":return R.value;case"resize-hover":return T.value;case"th-hover":return D.value;default:return""}}),De=e.computed(()=>ne.value?.querySelectorAll("th.resizable")),Fe=e.computed(()=>l.resizeColumns&&!l.nested),{height:fe}=Se.useElementSize(e.computed(()=>Fe.value?ne.value:null)),Me=e.computed(()=>fe.value?`${fe.value}px`:"auto"),ve=(t,o)=>{if(t.button!==0)return;let a=0,r=0;R.value=o;let n=null;De.value?.forEach(c=>{c.getAttribute("data-testid")===`table-header-${o}`&&(n=document?.querySelector(`[data-tableid="${b}"] [data-testid="table-header-${o}"]`))});const u=c=>{const k=c.clientX-a;n?.setAttribute("style",`width: ${r+k}px`),A.value[o]=r+k},s=()=>{R.value="",document?.removeEventListener("mousemove",u),document?.removeEventListener("mouseup",s),X(),K.value&&_()};if(a=t.clientX,n){const c=window?.getComputedStyle(n);c?.width&&(r=parseInt(c.width,10)),document?.addEventListener("mousemove",u),document?.addEventListener("mouseup",s)}},be=t=>S.value?t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.EXPANDABLE:!1,ke=t=>t===i.TableViewHeaderKeys.BULK_ACTIONS&&K.value,M=t=>S.value?O.value?t===i.TableViewHeaderKeys.BULK_ACTIONS:K.value?t===i.TableViewHeaderKeys.EXPANDABLE:!1:!1,U=t=>t===i.TableViewHeaderKeys.EXPANDABLE||t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.ACTIONS,q=(t,o=!1)=>{if(!l.resizeColumns||l.nested)return!1;if(o){if(d.value.indexOf(t)===d.value.length-1)return!1;const r=d.value[d.value.indexOf(t)-1];return!U(r.key)}const a=d.value[d.value.indexOf(t)+1];return!U(t.key)&&!U(a.key)},Ue=(t,o,a)=>{f("row-actions-toggle",{row:t,open:o}),setTimeout(()=>{a.isRowActionsDropdownOpen=o},o?0:100)},qe=e.computed(()=>!(l.hidePagination||l.nested||l.hidePaginationWhenOptional&&l.data.length&&l.paginationAttributes.totalCount&&l.paginationAttributes.totalCount<=l.data.length));e.watch(()=>l.headers,t=>{h.value=oe(t)},{deep:!0,immediate:!0});const We=t=>!t.hideLabel&&!!t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS,Xe=t=>{y.value&&t?t===y.value?v.value==="asc"?v.value="desc":v.value="asc":(y.value=t,v.value="asc"):t?(y.value=t,v.value="asc"):(y.value="",v.value=te),X()},je=t=>{const o=t.target;o&&(typeof o.scrollTop=="number"||typeof o.scrollLeft=="number")&&(o.scrollTop>1?(Z.value=!0,L.value=!0):o.scrollTop===0&&(L.value=!1),o.scrollLeft>1?S.value=!0:o.scrollLeft===0&&(S.value=!1),o.scrollWidth<=o.scrollLeft+o.clientWidth?V.value=!1:V.value=!0),Ke.value?.forEach(a=>{a&&a.closeDropdown&&a.closeDropdown()})},W=t=>z.value.find(o=>o.rowKey===m(t)),Ze=(t,o)=>({"data-testid":l.rowAttrs(t)["data-testid"]?`${l.rowAttrs(t)["data-testid"]}-actions-dropdown-popover`:`row-${o}-actions-dropdown-popover`}),Q=t=>{if(typeof l.rowBulkActionEnabled!="function")return!1;const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?o:o.enabled},Ge=t=>{if(typeof l.rowBulkActionEnabled!="function")return"";const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?"":o.disabledTooltip||""},Je=e.computed(()=>d.value.find(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS)?.key),Ye=(t,o)=>{const{to:a}=l.rowLink(t);return!a||o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS?"div":typeof a=="object"?"router-link":"a"},Qe=(t,o)=>{if(o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS)return{};const{to:a,target:r}=l.rowLink(t),n=a&&typeof a=="object",u=a&&typeof a=="string";return{...n&&{to:a},...u&&{href:a},...(n||u)&&{...r&&{target:r},...o!==Je.value&&{tabindex:-1}}}},me=e.ref(0),I=e.ref(yt.getInitialPageSize(l.tablePreferences,l.paginationAttributes)),_e=t=>{I.value=t.pageSize,f("page-size-change",t),X()},et=e.computed(()=>({sortColumnKey:y.value,sortColumnOrder:v.value,...l.resizeColumns?{columnWidths:A.value}:{},...j.value?{columnVisibility:B.value}:{},...I.value&&!l.hidePagination&&{pageSize:I.value}})),X=()=>{f("update:table-preferences",et.value)},K=e.computed(()=>!l.nested&&l.data.some(t=>l.rowExpandable(t))),tt={key:i.TableViewHeaderKeys.EXPANDABLE,label:"Expandable rows controls",hideLabel:!0},ge=()=>{const t=[];return l.data.forEach((o,a)=>{l.rowExpanded(o)&&t.push(a)}),t},g=e.ref(ge()),at=async(t,o)=>{_(),await e.nextTick(),g.value.includes(t)?(g.value=g.value.filter(a=>a!==t),f("update:row-expanded",{row:o,expanded:!1})):(g.value=[...g.value,t],f("update:row-expanded",{row:o,expanded:!0}))},ot=e.computed(()=>d.value.filter(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS)),we=e.ref({}),_=()=>{if(typeof document>"u")return;const o=document?.querySelector(`[data-tableid="${b}"]`)?.querySelectorAll("th"),a={};o?.forEach((r,n)=>{const u=r.getAttribute("data-key");if(u===i.TableViewHeaderKeys.EXPANDABLE)return;let s=r.getBoundingClientRect().width;n===1&&(s+=ue),n===o.length-1&&(s-=15),a[u]=s}),we.value=a};e.watch([B,h,K],t=>{const[o,a,r]=t;let n=a.filter(u=>u.key===i.TableViewHeaderKeys.BULK_ACTIONS?O.value:o[u.key]!==!1);n.find(u=>u.key===i.TableViewHeaderKeys.EXPANDABLE)&&(n=n.filter(u=>u.key!==i.TableViewHeaderKeys.EXPANDABLE)),r&&n.unshift(tt),JSON.stringify(n)!==JSON.stringify(d.value)&&(d.value=n,X()),r&&_()},{deep:!0,immediate:!0}),e.watch(()=>x(),t=>{t&&(B.value=l.tablePreferences.columnVisibility||{})},{immediate:!0});const $=e.ref(!1),lt=e.computed(()=>{const t=z.value.filter(o=>!o.disabled&&l.data.find(a=>m(a)===o.rowKey));return!!t.filter(o=>o.selected).length&&!!t.filter(o=>!o.selected).length}),nt=t=>{z.value.forEach(o=>{l.data.find(a=>m(a)===o.rowKey)&&!o.disabled&&(o.selected=t)})};return e.watch([()=>l.data,z],t=>{const[o,a]=t;if(o.forEach(r=>{if(!F.value.get(r)){const n=m(r)||ft.getUniqueStringId();F.value.set(r,`table-${b}-row-${n}`)}}),O.value){o.forEach(s=>{W(s)||z.value.push({rowKey:m(s),selected:!1,disabled:!Q(s)})});const r=a.filter(s=>!s.disabled&&o.find(c=>m(c)===s.rowKey));r.length&&r.filter(s=>s.selected).length===r.length?$.value=!0:(r.filter(s=>!s.selected).length,r.length,$.value=!1);const n=o.filter(s=>{const c=a.find(k=>k.rowKey===m(s));return!!(c&&c.selected)}),u=[];E.value.forEach(s=>{o.find(k=>m(s)===m(k))||u.push(s)}),E.value=[...u,...n]}g.value=ge()},{deep:!0,immediate:!0}),e.watch(E,t=>{f("row-select",t)}),e.watch(()=>l.tablePreferences,t=>{t?.pageSize&&(I.value=t.pageSize,me.value++),y.value=t?.sortColumnKey?t.sortColumnKey:y.value,v.value=t?.sortColumnOrder?t.sortColumnOrder:v.value,A.value=t?.columnWidths?t.columnWidths:A.value,B.value=t?.columnVisibility?t.columnVisibility:B.value}),Se.useResizeObserver([le,Te],()=>{const t=le.value;t&&(V.value=t.scrollWidth>t.clientWidth,re.value=t.clientHeight+"px",Z.value=t.scrollHeight>t.clientHeight)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-table-view",{"hide-headers":l.hideHeaders}])},[xe()?(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(t.$slots,"toolbar",{},void 0,!0),Y()||x()?(e.openBlock(),e.createElementBlock("div",wt,[Y()?e.renderSlot(t.$slots,"bulk-actions",{selectedRows:E.value},()=>[p["bulk-actions"]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(dt.default,{key:0,"button-label":h.value.find(a=>a.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS).label,count:ie.value,disabled:!ie.value||l.loading||!l.data.length},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"bulk-action-items",{selectedRows:E.value},void 0,!0)]),_:3},8,["button-label","count","disabled"]))],!0,0):e.createCommentVNode("",!0),x()?(e.openBlock(),e.createBlock(st.default,{key:1,columns:Ee.value,disabled:Ve.value,"table-id":e.unref(b),"visibility-preferences":Ne.value,onUpdate:o[0]||(o[0]=a=>B.value=a)},null,8,["columns","disabled","table-id","visibility-preferences"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.loading&&!l.error?(e.openBlock(),e.createBlock(rt.default,{key:1,"data-testid":"table-skeleton",type:"table"})):l.error?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(pe.default,{"icon-variant":"error",message:l.errorStateMessage,title:l.errorStateTitle},e.createSlots({_:2},[l.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{"data-testid":"error-state-action",to:l.errorStateActionRoute,onClick:o[1]||(o[1]=a=>f("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.errorStateActionMessage),1)]),_:1},8,["to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!l.error&&!l.loading&&l.data&&!l.data.length?(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(pe.default,{"icon-variant":l.emptyStateIconVariant,message:l.emptyStateMessage,title:l.emptyStateTitle},e.createSlots({_:2},[l.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{appearance:l.emptyStateButtonAppearance,"data-testid":"empty-state-action",to:l.emptyStateActionRoute,onClick:o[2]||(o[2]=a=>f("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(l.emptyStateActionMessage),1)]),_:3},8,["appearance","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{ref:"table-wrapper",class:"table-wrapper",style:e.normalizeStyle(He.value),onScrollPassive:je},[e.createElementVNode("table",{ref:"table",class:e.normalizeClass(["table",{"has-hover":l.rowHover&&!J.value,"is-clickable":G.value}]),"data-tableid":e.unref(b)},[l.hideHeaders?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",{key:0,class:e.normalizeClass({"is-scrolled":L.value})},[e.createElementVNode("tr",{ref:"header-row",class:e.normalizeClass({"is-scrolled":L.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(b)}-headers-${a.key}`,"aria-sort":a.key===y.value?v.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Ie(a,r)]),"data-key":a.key,"data-testid":`table-header-${a.key}`,style:e.normalizeStyle(de.value[a.key]),onClick:()=>$e(a),onMouseleave:o[8]||(o[8]=n=>D.value=""),onMouseover:n=>D.value=a.key},[r!==0&&q(a,!0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:o[3]||(o[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,d.value[r-1].key),onMouseleave:o[4]||(o[4]=n=>T.value=""),onMouseover:n=>T.value=d.value[r-1].key},null,40,Tt)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":a.tooltip||p[N(a.key)]?`${N(a.key)}-${e.unref(b)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:R.value===a.key}])},[a.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS?e.renderSlot(t.$slots,Le(a.key),{column:a},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":a.hideLabel||a.key===e.unref(i.TableViewHeaderKeys).ACTIONS&&a.hideLabel!==!1}])},e.toDisplayString(a.label?a.label:a.key),3)],!0,0):(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(he.default,{modelValue:$.value,"onUpdate:modelValue":o[5]||(o[5]=n=>$.value=n),"aria-label":"Toggle selection for all rows",class:"table-header-bulk-actions-checkbox","data-testid":"table-header-bulk-actions-checkbox",indeterminate:lt.value,onChange:nt},null,8,["modelValue","indeterminate"])])),a.tooltip||p[N(a.key)]?(e.openBlock(),e.createBlock(Ce.default,{key:2,"data-testid":N(a.key),"kpop-attributes":{target:l.tooltipTarget},"max-width":"300","tooltip-id":`${N(a.key)}-${e.unref(b)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,N(a.key),{column:a},()=>[e.createTextVNode(e.toDisplayString(a.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(P.InfoIcon),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,tabindex:"0"},null,8,["color","size"])]),_:2},1032,["data-testid","kpop-attributes","tooltip-id"])):e.createCommentVNode("",!0),We(a)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[y.value===a.key?(e.openBlock(),e.createBlock(e.unref(P.ArrowDownIcon),{key:0,class:"active-sort-icon",color:`var(--kui-color-text-primary, ${e.unref(C.KUI_COLOR_TEXT_PRIMARY)})`,decorative:"",size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`},null,8,["color","size"])):(e.openBlock(),e.createBlock(e.unref(P.SwapSortIcon),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral-weak, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,title:`Sort by ${a.label}`},null,8,["color","size","title"]))],64)):e.createCommentVNode("",!0)],10,Bt),r!==d.value.length-1&&q(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:o[6]||(o[6]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,a.key),onMouseleave:o[7]||(o[7]=n=>T.value=""),onMouseover:n=>T.value=a.key},null,40,Et)):e.createCommentVNode("",!0),M(a.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),a.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],46,At))),128))],2)],2)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:F.value.get(a)},[e.createElementVNode("tr",e.mergeProps({class:{"last-row":r===l.data.length-1&&!g.value.includes(r)},role:l.rowLink(a).to?"link":void 0,tabindex:G.value&&!l.rowLink(a).to?0:void 0},{ref_for:!0},l.rowAttrs(a)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(n,u)=>(e.openBlock(),e.createBlock(e.unref(kt.default),{key:`${F.value.get(a)}-cell-${n.key}`,data:{isRowActionsDropdownOpen:!1}},{default:e.withCtx(({data:s})=>[e.createElementVNode("td",e.mergeProps({class:{"resize-hover":ye.value===n.key&&u!==d.value.length-1&&q(n),"row-link":!!l.rowLink(a).to,"sticky-column":be(n.key),"second-sticky-column":ke(n.key),"has-row-scroll-overlay":M(n.key),"actions-column":n.key===e.unref(i.TableViewHeaderKeys).ACTIONS},style:{...de.value[n.key],...s.isRowActionsDropdownOpen?{zIndex:2}:{}}},{ref_for:!0},l.cellAttrs({headerKey:n.key,row:a,rowIndex:r,colIndex:u}),e.toHandlers(Oe.value(a[n.key],a),!0)),[n.key!==e.unref(i.TableViewHeaderKeys).EXPANDABLE?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ye(a,n.key)),e.mergeProps({key:0,class:"cell-wrapper"},{ref_for:!0},Qe(a,n.key)),{default:e.withCtx(()=>[n.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&n.key!==e.unref(i.TableViewHeaderKeys).ACTIONS?e.renderSlot(t.$slots,n.key,{row:a,rowKey:r,rowValue:a[n.key]},()=>[e.createTextVNode(e.toDisplayString(a[n.key]),1)],!0,0):n.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&W(a)?(e.openBlock(),e.createBlock(Ce.default,{key:1,"kpop-attributes":{target:l.tooltipTarget},"max-width":"200",placement:"bottom-start",text:Q(a)?void 0:Ge(a)},{default:e.withCtx(()=>[e.createVNode(he.default,{modelValue:W(a).selected,"onUpdate:modelValue":c=>W(a).selected=c,"aria-label":"Toggle row selection",class:"bulk-actions-checkbox","data-testid":"bulk-actions-checkbox",disabled:!Q(a)},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["kpop-attributes","text"])):n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createBlock(ct.default,{key:2,ref_for:!0,ref:"actionsDropdown",class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{...l.actionsDropdownPopoverAttributes,placement:"bottom-end",target:"body",popoverElementAttributes:Ze(a,r)},onToggleDropdown:c=>Ue(a,c,s)},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"action-items",{row:a},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(ee.default,{appearance:"tertiary","aria-label":n.label,class:"actions-dropdown-trigger","data-testid":"row-actions-dropdown-trigger",icon:"",size:"small",onMouseleave:o[9]||(o[9]=c=>J.value=!1),onMouseover:o[10]||(o[10]=c=>J.value=!0)},{default:e.withCtx(()=>[e.createVNode(e.unref(P.MoreIcon),{class:"more-icon",decorative:""})]),_:1},8,["aria-label"])]),_:2},1032,["kpop-attributes","onToggleDropdown"])):e.createCommentVNode("",!0)]),_:2},1040)):l.rowExpandable(a)?(e.openBlock(),e.createElementBlock("div",Kt,[e.createElementVNode("button",{"aria-controls":`table-${e.unref(b)}-row-${r}-expandable-content`,"aria-expanded":g.value.includes(r),"aria-label":"Toggle row expandable content",class:e.normalizeClass(["expandable-row-control",{expanded:g.value.includes(r)}]),"data-testid":"expandable-row-control",type:"button",onClick:c=>at(r,a)},[e.createVNode(e.unref(P.ChevronRightIcon),{class:"expandable-row-control-icon",decorative:""})],10,Ht)])):e.createCommentVNode("",!0),M(n.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],16)]),_:2},1024))),128))],16,Nt),K.value&&l.rowExpandable(a)?e.withDirectives((e.openBlock(),e.createElementBlock("tr",{key:0,id:`table-${e.unref(b)}-row-${r}-expandable-content`,class:"expandable-content-row","data-testid":"expandable-content-row"},[e.createElementVNode("td",{colspan:d.value.length},[e.createElementVNode("div",Lt,[e.renderSlot(t.$slots,"row-expanded",{columnWidths:we.value,nestedHeaders:ot.value,row:a},void 0,!0)])],8,xt)],8,Rt)),[[e.vShow,g.value.includes(r)]]):e.createCommentVNode("",!0)],64))),128))])],10,St)],36),!O.value&&!K.value?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),Be.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay right",{"overlay-visible":V.value,"scrollbar-offset":Z.value}])},null,2)),qe.value?(e.openBlock(),e.createBlock(ut.default,e.mergeProps({key:`table-${e.unref(b)}-pagination-${me.value}`,class:"table-pagination","data-testid":"table-pagination","initial-page-size":I.value},l.paginationAttributes,{onGetNextOffset:o[11]||(o[11]=a=>f("get-next-offset")),onGetPreviousOffset:o[12]||(o[12]=a=>f("get-previous-offset")),onPageChange:o[13]||(o[13]=a=>f("page-change",a)),onPageSizeChange:_e}),null,16,["initial-page-size"])):e.createCommentVNode("",!0)]))],2))}});exports.default=Ot;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ee=require("./kongponents38.cjs"),pe=require("./kongponents51.cjs"),rt=require("./kongponents25.cjs");;/* empty css */const Ce=require("./kongponents30.cjs");;/* empty css */const P=require("@kong/icons");require("./kongponents7.cjs");require("./kongponents12.cjs");const it=require("./kongponents13.cjs"),i=require("./kongponents19.cjs"),C=require("./kongponents183.cjs"),st=require("./kongponents204.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents205.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents160.cjs"),vt=require("./kongponents193.cjs"),Se=require("./kongponents199.cjs"),bt=require("./kongponents182.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents206.cjs"),gt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},wt={key:0,class:"toolbar-default-items-container"},pt={key:2,class:"table-error-state","data-testid":"table-error-state"},Ct={key:3,class:"table-empty-state","data-testid":"table-empty-state"},ht={key:4,class:"table-container"},St=["data-tableid"],At=["aria-sort","data-key","data-testid","onClick","onMouseover"],Tt=["onMousedown","onMouseover"],Bt=["aria-describedby"],Vt={key:1,class:"table-header-bulk-actions-container"},Et=["onMousedown","onMouseover"],Nt=["role","tabindex"],Kt={key:1,class:"expandable-row-control-container"},Ht=["aria-controls","aria-expanded","onClick"],Rt=["id"],xt=["colspan"],Lt={class:"expandable-content-wrapper"},te="desc",Ot=e.defineComponent({__name:"KTableView",props:{data:{default:()=>[]},headers:{default:()=>[]},resizeColumns:{type:Boolean},tablePreferences:{default:()=>({})},rowHover:{type:Boolean,default:!0},rowAttrs:{default:()=>(()=>({}))},rowLink:{default:()=>(()=>({}))},rowBulkActionEnabled:{default:()=>(()=>!0)},rowKey:{},cellAttrs:{default:()=>(()=>({}))},loading:{type:Boolean},emptyStateTitle:{default:"No Data"},emptyStateMessage:{default:"There is no data to display."},emptyStateActionRoute:{},emptyStateActionMessage:{default:""},emptyStateIconVariant:{default:()=>it.EmptyStateIconVariants.Default},emptyStateButtonAppearance:{default:"primary"},error:{type:Boolean},errorStateTitle:{default:"An error occurred"},errorStateMessage:{default:"Data cannot be displayed due to an error."},errorStateActionRoute:{},errorStateActionMessage:{default:""},maxHeight:{default:"none"},hidePagination:{type:Boolean},paginationAttributes:{default:()=>({})},rowExpandable:{default:()=>(()=>!1)},rowExpanded:{default:()=>(()=>!1)},hideHeaders:{type:Boolean},nested:{type:Boolean},hidePaginationWhenOptional:{type:Boolean},hideToolbar:{type:Boolean},tooltipTarget:{default:"body"},actionsDropdownPopoverAttributes:{default:()=>({})},"onRow:click":{type:Function},"onRow:dblclick":{type:Function},"onRow:auxclick":{type:Function},"onRow:contextmenu":{type:Function},"onRow:mouseover":{type:Function},"onRow:mouseout":{type:Function},"onRow:mouseenter":{type:Function},"onRow:mouseleave":{type:Function},"onRow:mousedown":{type:Function},"onRow:mouseup":{type:Function},"onRow:focus":{type:Function},"onRow:focusin":{type:Function},"onRow:blur":{type:Function},"onRow:focusout":{type:Function},"onRow:keydown":{type:Function},"onRow:keyup":{type:Function},"onRow:keypress":{type:Function},"onCell:click":{type:Function},"onCell:dblclick":{type:Function},"onCell:auxclick":{type:Function},"onCell:contextmenu":{type:Function},"onCell:mouseover":{type:Function},"onCell:mouseout":{type:Function},"onCell:mouseenter":{type:Function},"onCell:mouseleave":{type:Function},"onCell:mousedown":{type:Function},"onCell:mouseup":{type:Function},"onCell:focus":{type:Function},"onCell:focusin":{type:Function},"onCell:blur":{type:Function},"onCell:focusout":{type:Function},"onCell:keydown":{type:Function},"onCell:keyup":{type:Function},"onCell:keypress":{type:Function}},emits:["page-change","page-size-change","get-next-offset","get-previous-offset","cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","row-select","update:row-expanded","row-actions-toggle"],setup(l,{emit:Ae}){e.useCssVars(t=>({v2debc52c:e.unref(ze).expandable,v7e6b967b:Me.value,v43760593:re.value,v4e28b5e7:Re.value}));const ae=e.createPropsRestProxy(l,["resizeColumns","tablePreferences","rowHover","rowAttrs","rowLink","rowBulkActionEnabled","rowKey","cellAttrs","loading","emptyStateTitle","emptyStateMessage","emptyStateActionMessage","emptyStateIconVariant","emptyStateButtonAppearance","emptyStateActionRoute","error","errorStateTitle","errorStateMessage","errorStateActionMessage","errorStateActionRoute","maxHeight","hidePagination","paginationAttributes","rowExpandable","rowExpanded","hideHeaders","nested","hidePaginationWhenOptional","hideToolbar","tooltipTarget","data","headers","actionsDropdownPopoverAttributes"]),f=Ae,p=e.useSlots(),b=e.useId(),m=t=>typeof l.rowKey=="function"&&typeof l.rowKey(t)=="string"?l.rowKey(t):typeof l.rowKey=="string"&&l.rowKey in t&&typeof t[l.rowKey]=="string"?t[l.rowKey]:"",oe=t=>{const o=t.filter(n=>n.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&n.key!==i.TableViewHeaderKeys.ACTIONS),a=t.find(n=>n.key===i.TableViewHeaderKeys.BULK_ACTIONS),r=t.find(n=>n.key===i.TableViewHeaderKeys.ACTIONS);return a&&o.unshift(a),r&&o.push(r),o},le=e.useTemplateRef("table-wrapper"),Te=e.useTemplateRef("table"),ne=e.useTemplateRef("header-row"),h=e.ref(oe(l.headers)),d=e.ref([]),R=e.ref(""),T=e.ref(""),D=e.ref(""),Be=e.computed(()=>h.value.some(t=>t.key===i.TableViewHeaderKeys.ACTIONS)),j=e.computed(()=>h.value.filter(t=>t.hidable).length>0),x=()=>l.nested||!j.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,Ve=e.computed(()=>l.loading||!(l.data&&l.data.length)),Ee=e.computed(()=>h.value.filter(t=>t.hidable&&!U(t.key))),Ne=e.computed(()=>l.nested||!j.value||l.error?{}:l.tablePreferences.columnVisibility||{}),B=e.ref(x()?l.tablePreferences.columnVisibility||{}:{}),re=e.ref("100%"),Z=e.ref(!1),L=e.ref(!1),S=e.ref(!1),V=e.ref(!1),y=e.ref(l.tablePreferences.sortColumnKey||""),v=e.ref(l.tablePreferences.sortColumnOrder||te),G=e.ref(!1),Ke=e.useTemplateRef("actionsDropdown"),J=e.ref(!1),He=e.computed(()=>({maxHeight:bt.normalizeSize(l.maxHeight)})),Re=e.computed(()=>`${vt.getScrollbarSize()}px`),E=e.ref([]),O=e.computed(()=>!l.nested&&!l.error&&h.value.some(t=>t.key===i.TableViewHeaderKeys.BULK_ACTIONS)&&!!(p["bulk-action-items"]||p["bulk-actions"])&&!!l.data.every(t=>m(t))),z=e.ref([]),Y=()=>l.nested||!O.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,xe=()=>!l.hideToolbar&&!l.nested&&(!!p.toolbar||x()||Y()),ie=e.computed(()=>{const t=E.value.length;return t?t>100?"99+":String(t):""}),F=e.ref(new WeakMap),Le=t=>`column-${t}`,N=t=>`tooltip-${t}`,se=(t,o)=>(a,r)=>{const n=/^on[^a-z]/,u={};for(const s in o)n.test(s)&&o[s]&&(u[s]=o[s]);return Object.keys(u).reduce((s,c)=>{if(c.indexOf(t)===0){const k=c.split(t);s[k[1]]=H=>u[c](H,a,r)}return s},{})},Oe=e.computed(()=>(t,o)=>{const a=se("onRow:",ae)(o,"row"),r=se("onCell:",ae)(t,"cell"),n=["a","button","label","input","select",'span[role="checkbox"]'];return(a.click||r.click)&&(G.value=!0),{...a,...r,click(u){const s=u.target,c=s.className;let k=n.includes(s.tagName.toLowerCase()),H=!1;typeof c=="string"||Array.isArray(c)?H=c.includes("k-popover"):typeof c=="object"&&(H=Object.keys(c).includes("k-popover")),s.closest(".popover-content")!==null&&(H=!0);for(let w=0;w<n.length;w++)if(s.closest(n[w])!==null){k=!0;break}if((!k||s.hasAttribute("disabled"))&&!H&&(a.click||r.click))if(r.click){f("cell-click",{data:t});const w=r.click(u,t,"cell");typeof w=="function"&&w(u,t)}else{f("row-click",{data:o});const w=a.click(u,o,"row");typeof w=="function"&&w(u,o)}}}}),ue=parseInt(C.KUI_SPACE_60)*2+parseInt(C.KUI_ICON_SIZE_30),ce={expandable:ue,bulkActions:48,actions:54},ze=mt.default(ce,t=>`${t}px`),A=e.ref({...l.tablePreferences.columnWidths||{},...ce}),de=e.computed(()=>{const t={};for(const o in A.value){const a=o;if(!A.value[a])continue;const r=A.value[a]+"px";t[a]={width:r,maxWidth:r,minWidth:r}}return t}),Ie=(t,o)=>({"resize-hover":ye.value===t.key&&o!==d.value.length-1&&q(t),resizable:l.resizeColumns&&!l.nested,sortable:!t.hideLabel&&!!t.sortable,"active-sort":!t.hideLabel&&!!t.sortable&&t.key===y.value,[v.value]:t.key===y.value&&!t.hideLabel,"is-scrolled":L.value,"has-tooltip":!!t.tooltip,"sticky-column":be(t.key),"second-sticky-column":ke(t.key),"has-row-scroll-overlay":M(t.key),"actions-column":t.key===i.TableViewHeaderKeys.ACTIONS}),$e=t=>{if(t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS){let o="asc",a=t.key;a===y.value&&v.value==="asc"&&(o="desc"),a===y.value&&v.value==="desc"&&(a="",o=te),f("sort",{prevKey:y.value,sortColumnKey:a,sortColumnOrder:o}),Xe(a)}},Pe=e.computed(()=>R.value?"resizing":T.value?"resize-hover":D.value?"th-hover":""),ye=e.computed(()=>{switch(Pe.value){case"resizing":return R.value;case"resize-hover":return T.value;case"th-hover":return D.value;default:return""}}),De=e.computed(()=>ne.value?.querySelectorAll("th.resizable")),Fe=e.computed(()=>l.resizeColumns&&!l.nested),{height:fe}=Se.useElementSize(e.computed(()=>Fe.value?ne.value:null)),Me=e.computed(()=>fe.value?`${fe.value}px`:"auto"),ve=(t,o)=>{if(t.button!==0)return;let a=0,r=0;R.value=o;let n=null;De.value?.forEach(c=>{c.getAttribute("data-testid")===`table-header-${o}`&&(n=document?.querySelector(`[data-tableid="${b}"] [data-testid="table-header-${o}"]`))});const u=c=>{const k=c.clientX-a;n?.setAttribute("style",`width: ${r+k}px`),A.value[o]=r+k},s=()=>{R.value="",document?.removeEventListener("mousemove",u),document?.removeEventListener("mouseup",s),X(),K.value&&_()};if(a=t.clientX,n){const c=window?.getComputedStyle(n);c?.width&&(r=parseInt(c.width,10)),document?.addEventListener("mousemove",u),document?.addEventListener("mouseup",s)}},be=t=>S.value?t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.EXPANDABLE:!1,ke=t=>t===i.TableViewHeaderKeys.BULK_ACTIONS&&K.value,M=t=>S.value?O.value?t===i.TableViewHeaderKeys.BULK_ACTIONS:K.value?t===i.TableViewHeaderKeys.EXPANDABLE:!1:!1,U=t=>t===i.TableViewHeaderKeys.EXPANDABLE||t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.ACTIONS,q=(t,o=!1)=>{if(!l.resizeColumns||l.nested)return!1;if(o){if(d.value.indexOf(t)===d.value.length-1)return!1;const r=d.value[d.value.indexOf(t)-1];return!U(r.key)}const a=d.value[d.value.indexOf(t)+1];return!U(t.key)&&!U(a.key)},Ue=(t,o,a)=>{f("row-actions-toggle",{row:t,open:o}),setTimeout(()=>{a.isRowActionsDropdownOpen=o},o?0:100)},qe=e.computed(()=>!(l.hidePagination||l.nested||l.hidePaginationWhenOptional&&l.data.length&&l.paginationAttributes.totalCount&&l.paginationAttributes.totalCount<=l.data.length));e.watch(()=>l.headers,t=>{h.value=oe(t)},{deep:!0,immediate:!0});const We=t=>!t.hideLabel&&!!t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS,Xe=t=>{y.value&&t?t===y.value?v.value==="asc"?v.value="desc":v.value="asc":(y.value=t,v.value="asc"):t?(y.value=t,v.value="asc"):(y.value="",v.value=te),X()},je=t=>{const o=t.target;o&&(typeof o.scrollTop=="number"||typeof o.scrollLeft=="number")&&(o.scrollTop>1?(Z.value=!0,L.value=!0):o.scrollTop===0&&(L.value=!1),o.scrollLeft>1?S.value=!0:o.scrollLeft===0&&(S.value=!1),o.scrollWidth<=o.scrollLeft+o.clientWidth?V.value=!1:V.value=!0),Ke.value?.forEach(a=>{a&&a.closeDropdown&&a.closeDropdown()})},W=t=>z.value.find(o=>o.rowKey===m(t)),Ze=(t,o)=>({"data-testid":l.rowAttrs(t)["data-testid"]?`${l.rowAttrs(t)["data-testid"]}-actions-dropdown-popover`:`row-${o}-actions-dropdown-popover`}),Q=t=>{if(typeof l.rowBulkActionEnabled!="function")return!1;const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?o:o.enabled},Ge=t=>{if(typeof l.rowBulkActionEnabled!="function")return"";const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?"":o.disabledTooltip||""},Je=e.computed(()=>d.value.find(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS)?.key),Ye=(t,o)=>{const{to:a}=l.rowLink(t);return!a||o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS?"div":typeof a=="object"?"router-link":"a"},Qe=(t,o)=>{if(o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS)return{};const{to:a,target:r}=l.rowLink(t),n=a&&typeof a=="object",u=a&&typeof a=="string";return{...n&&{to:a},...u&&{href:a},...(n||u)&&{...r&&{target:r},...o!==Je.value&&{tabindex:-1}}}},me=e.ref(0),I=e.ref(yt.getInitialPageSize(l.tablePreferences,l.paginationAttributes)),_e=t=>{I.value=t.pageSize,f("page-size-change",t),X()},et=e.computed(()=>({sortColumnKey:y.value,sortColumnOrder:v.value,...l.resizeColumns?{columnWidths:A.value}:{},...j.value?{columnVisibility:B.value}:{},...I.value&&!l.hidePagination&&{pageSize:I.value}})),X=()=>{f("update:table-preferences",et.value)},K=e.computed(()=>!l.nested&&l.data.some(t=>l.rowExpandable(t))),tt={key:i.TableViewHeaderKeys.EXPANDABLE,label:"Expandable rows controls",hideLabel:!0},ge=()=>{const t=[];return l.data.forEach((o,a)=>{l.rowExpanded(o)&&t.push(a)}),t},g=e.ref(ge()),at=async(t,o)=>{_(),await e.nextTick(),g.value.includes(t)?(g.value=g.value.filter(a=>a!==t),f("update:row-expanded",{row:o,expanded:!1})):(g.value=[...g.value,t],f("update:row-expanded",{row:o,expanded:!0}))},ot=e.computed(()=>d.value.filter(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS)),we=e.ref({}),_=()=>{if(typeof document>"u")return;const o=document?.querySelector(`[data-tableid="${b}"]`)?.querySelectorAll("th"),a={};o?.forEach((r,n)=>{const u=r.getAttribute("data-key");if(u===i.TableViewHeaderKeys.EXPANDABLE)return;let s=r.getBoundingClientRect().width;n===1&&(s+=ue),n===o.length-1&&(s-=15),a[u]=s}),we.value=a};e.watch([B,h,K],t=>{const[o,a,r]=t;let n=a.filter(u=>u.key===i.TableViewHeaderKeys.BULK_ACTIONS?O.value:o[u.key]!==!1);n.find(u=>u.key===i.TableViewHeaderKeys.EXPANDABLE)&&(n=n.filter(u=>u.key!==i.TableViewHeaderKeys.EXPANDABLE)),r&&n.unshift(tt),JSON.stringify(n)!==JSON.stringify(d.value)&&(d.value=n,X()),r&&_()},{deep:!0,immediate:!0}),e.watch(()=>x(),t=>{t&&(B.value=l.tablePreferences.columnVisibility||{})},{immediate:!0});const $=e.ref(!1),lt=e.computed(()=>{const t=z.value.filter(o=>!o.disabled&&l.data.find(a=>m(a)===o.rowKey));return!!t.filter(o=>o.selected).length&&!!t.filter(o=>!o.selected).length}),nt=t=>{z.value.forEach(o=>{l.data.find(a=>m(a)===o.rowKey)&&!o.disabled&&(o.selected=t)})};return e.watch([()=>l.data,z],t=>{const[o,a]=t;if(o.forEach(r=>{if(!F.value.get(r)){const n=m(r)||ft.getUniqueStringId();F.value.set(r,`table-${b}-row-${n}`)}}),O.value){o.forEach(s=>{W(s)||z.value.push({rowKey:m(s),selected:!1,disabled:!Q(s)})});const r=a.filter(s=>!s.disabled&&o.find(c=>m(c)===s.rowKey));r.length&&r.filter(s=>s.selected).length===r.length?$.value=!0:(r.filter(s=>!s.selected).length,r.length,$.value=!1);const n=o.filter(s=>{const c=a.find(k=>k.rowKey===m(s));return!!(c&&c.selected)}),u=[];E.value.forEach(s=>{o.find(k=>m(s)===m(k))||u.push(s)}),E.value=[...u,...n]}g.value=ge()},{deep:!0,immediate:!0}),e.watch(E,t=>{f("row-select",t)}),e.watch(()=>l.tablePreferences,t=>{t?.pageSize&&(I.value=t.pageSize,me.value++),y.value=t?.sortColumnKey?t.sortColumnKey:y.value,v.value=t?.sortColumnOrder?t.sortColumnOrder:v.value,A.value=t?.columnWidths?t.columnWidths:A.value,B.value=t?.columnVisibility?t.columnVisibility:B.value}),Se.useResizeObserver([le,Te],()=>{const t=le.value;t&&(V.value=t.scrollWidth>t.clientWidth,re.value=t.clientHeight+"px",Z.value=t.scrollHeight>t.clientHeight)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-table-view",{"hide-headers":l.hideHeaders}])},[xe()?(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(t.$slots,"toolbar",{},void 0,!0),Y()||x()?(e.openBlock(),e.createElementBlock("div",wt,[Y()?e.renderSlot(t.$slots,"bulk-actions",{selectedRows:E.value},()=>[p["bulk-actions"]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(dt.default,{key:0,"button-label":h.value.find(a=>a.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS).label,count:ie.value,disabled:!ie.value||l.loading||!l.data.length},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"bulk-action-items",{selectedRows:E.value},void 0,!0)]),_:3},8,["button-label","count","disabled"]))],!0,0):e.createCommentVNode("",!0),x()?(e.openBlock(),e.createBlock(st.default,{key:1,columns:Ee.value,disabled:Ve.value,"table-id":e.unref(b),"visibility-preferences":Ne.value,onUpdate:o[0]||(o[0]=a=>B.value=a)},null,8,["columns","disabled","table-id","visibility-preferences"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.loading&&!l.error?(e.openBlock(),e.createBlock(rt.default,{key:1,"data-testid":"table-skeleton",type:"table"})):l.error?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(pe.default,{"icon-variant":"error",message:l.errorStateMessage,title:l.errorStateTitle},e.createSlots({_:2},[l.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{"data-testid":"error-state-action",to:l.errorStateActionRoute,onClick:o[1]||(o[1]=a=>f("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.errorStateActionMessage),1)]),_:1},8,["to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!l.error&&!l.loading&&l.data&&!l.data.length?(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(pe.default,{"icon-variant":l.emptyStateIconVariant,message:l.emptyStateMessage,title:l.emptyStateTitle},e.createSlots({_:2},[l.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{appearance:l.emptyStateButtonAppearance,"data-testid":"empty-state-action",to:l.emptyStateActionRoute,onClick:o[2]||(o[2]=a=>f("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(l.emptyStateActionMessage),1)]),_:3},8,["appearance","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{ref:"table-wrapper",class:"table-wrapper",style:e.normalizeStyle(He.value),onScrollPassive:je},[e.createElementVNode("table",{ref:"table",class:e.normalizeClass(["table",{"has-hover":l.rowHover&&!J.value,"is-clickable":G.value}]),"data-tableid":e.unref(b)},[l.hideHeaders?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",{key:0,class:e.normalizeClass({"is-scrolled":L.value})},[e.createElementVNode("tr",{ref:"header-row",class:e.normalizeClass({"is-scrolled":L.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(b)}-headers-${a.key}`,"aria-sort":a.key===y.value?v.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Ie(a,r)]),"data-key":a.key,"data-testid":`table-header-${a.key}`,style:e.normalizeStyle(de.value[a.key]),onClick:()=>$e(a),onMouseleave:o[8]||(o[8]=n=>D.value=""),onMouseover:n=>D.value=a.key},[r!==0&&q(a,!0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:o[3]||(o[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,d.value[r-1].key),onMouseleave:o[4]||(o[4]=n=>T.value=""),onMouseover:n=>T.value=d.value[r-1].key},null,40,Tt)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":a.tooltip||p[N(a.key)]?`${N(a.key)}-${e.unref(b)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:R.value===a.key}])},[a.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS?e.renderSlot(t.$slots,Le(a.key),{column:a},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":a.hideLabel||a.key===e.unref(i.TableViewHeaderKeys).ACTIONS&&a.hideLabel!==!1}])},e.toDisplayString(a.label?a.label:a.key),3)],!0,0):(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(he.default,{modelValue:$.value,"onUpdate:modelValue":o[5]||(o[5]=n=>$.value=n),"aria-label":"Toggle selection for all rows",class:"table-header-bulk-actions-checkbox","data-testid":"table-header-bulk-actions-checkbox",indeterminate:lt.value,onChange:nt},null,8,["modelValue","indeterminate"])])),a.tooltip||p[N(a.key)]?(e.openBlock(),e.createBlock(Ce.default,{key:2,"data-testid":N(a.key),"kpop-attributes":{target:l.tooltipTarget},"max-width":"300","tooltip-id":`${N(a.key)}-${e.unref(b)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,N(a.key),{column:a},()=>[e.createTextVNode(e.toDisplayString(a.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(P.InfoIcon),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,tabindex:"0"},null,8,["color","size"])]),_:2},1032,["data-testid","kpop-attributes","tooltip-id"])):e.createCommentVNode("",!0),We(a)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[y.value===a.key?(e.openBlock(),e.createBlock(e.unref(P.ArrowDownIcon),{key:0,class:"active-sort-icon",color:`var(--kui-color-text-primary, ${e.unref(C.KUI_COLOR_TEXT_PRIMARY)})`,decorative:"",size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`},null,8,["color","size"])):(e.openBlock(),e.createBlock(e.unref(P.SwapSortIcon),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral-weak, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,title:`Sort by ${a.label}`},null,8,["color","size","title"]))],64)):e.createCommentVNode("",!0)],10,Bt),r!==d.value.length-1&&q(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:o[6]||(o[6]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,a.key),onMouseleave:o[7]||(o[7]=n=>T.value=""),onMouseover:n=>T.value=a.key},null,40,Et)):e.createCommentVNode("",!0),M(a.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),a.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],46,At))),128))],2)],2)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:F.value.get(a)},[e.createElementVNode("tr",e.mergeProps({class:{"last-row":r===l.data.length-1&&!g.value.includes(r)},role:l.rowLink(a).to?"link":void 0,tabindex:G.value&&!l.rowLink(a).to?0:void 0},{ref_for:!0},l.rowAttrs(a)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(n,u)=>(e.openBlock(),e.createBlock(e.unref(kt.default),{key:`${F.value.get(a)}-cell-${n.key}`,data:{isRowActionsDropdownOpen:!1}},{default:e.withCtx(({data:s})=>[e.createElementVNode("td",e.mergeProps({class:{"resize-hover":ye.value===n.key&&u!==d.value.length-1&&q(n),"row-link":!!l.rowLink(a).to,"sticky-column":be(n.key),"second-sticky-column":ke(n.key),"has-row-scroll-overlay":M(n.key),"actions-column":n.key===e.unref(i.TableViewHeaderKeys).ACTIONS},style:{...de.value[n.key],...s.isRowActionsDropdownOpen?{zIndex:2}:{}}},{ref_for:!0},l.cellAttrs({headerKey:n.key,row:a,rowIndex:r,colIndex:u}),e.toHandlers(Oe.value(a[n.key],a),!0)),[n.key!==e.unref(i.TableViewHeaderKeys).EXPANDABLE?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ye(a,n.key)),e.mergeProps({key:0,class:"cell-wrapper"},{ref_for:!0},Qe(a,n.key)),{default:e.withCtx(()=>[n.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&n.key!==e.unref(i.TableViewHeaderKeys).ACTIONS?e.renderSlot(t.$slots,n.key,{row:a,rowKey:r,rowValue:a[n.key]},()=>[e.createTextVNode(e.toDisplayString(a[n.key]),1)],!0,0):n.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&W(a)?(e.openBlock(),e.createBlock(Ce.default,{key:1,"kpop-attributes":{target:l.tooltipTarget},"max-width":"200",placement:"bottom-start",text:Q(a)?void 0:Ge(a)},{default:e.withCtx(()=>[e.createVNode(he.default,{modelValue:W(a).selected,"onUpdate:modelValue":c=>W(a).selected=c,"aria-label":"Toggle row selection",class:"bulk-actions-checkbox","data-testid":"bulk-actions-checkbox",disabled:!Q(a)},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["kpop-attributes","text"])):n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createBlock(ct.default,{key:2,ref_for:!0,ref:"actionsDropdown",class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{...l.actionsDropdownPopoverAttributes,placement:"bottom-end",target:"body",popoverElementAttributes:Ze(a,r)},onToggleDropdown:c=>Ue(a,c,s)},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"action-items",{row:a},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(ee.default,{appearance:"tertiary","aria-label":n.label,class:"actions-dropdown-trigger","data-testid":"row-actions-dropdown-trigger",icon:"",size:"small",onMouseleave:o[9]||(o[9]=c=>J.value=!1),onMouseover:o[10]||(o[10]=c=>J.value=!0)},{default:e.withCtx(()=>[e.createVNode(e.unref(P.MoreIcon),{class:"more-icon",decorative:""})]),_:1},8,["aria-label"])]),_:2},1032,["kpop-attributes","onToggleDropdown"])):e.createCommentVNode("",!0)]),_:2},1040)):l.rowExpandable(a)?(e.openBlock(),e.createElementBlock("div",Kt,[e.createElementVNode("button",{"aria-controls":`table-${e.unref(b)}-row-${r}-expandable-content`,"aria-expanded":g.value.includes(r),"aria-label":"Toggle row expandable content",class:e.normalizeClass(["expandable-row-control",{expanded:g.value.includes(r)}]),"data-testid":"expandable-row-control",type:"button",onClick:c=>at(r,a)},[e.createVNode(e.unref(P.ChevronRightIcon),{class:"expandable-row-control-icon",decorative:""})],10,Ht)])):e.createCommentVNode("",!0),M(n.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],16)]),_:2},1024))),128))],16,Nt),K.value&&l.rowExpandable(a)?e.withDirectives((e.openBlock(),e.createElementBlock("tr",{key:0,id:`table-${e.unref(b)}-row-${r}-expandable-content`,class:"expandable-content-row","data-testid":"expandable-content-row"},[e.createElementVNode("td",{colspan:d.value.length},[e.createElementVNode("div",Lt,[e.renderSlot(t.$slots,"row-expanded",{columnWidths:we.value,nestedHeaders:ot.value,row:a},void 0,!0)])],8,xt)],8,Rt)),[[e.vShow,g.value.includes(r)]]):e.createCommentVNode("",!0)],64))),128))])],10,St)],36),!O.value&&!K.value?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),Be.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay right",{"overlay-visible":V.value,"scrollbar-offset":Z.value}])},null,2)),qe.value?(e.openBlock(),e.createBlock(ut.default,e.mergeProps({key:`table-${e.unref(b)}-pagination-${me.value}`,class:"table-pagination","data-testid":"table-pagination","initial-page-size":I.value},l.paginationAttributes,{onGetNextOffset:o[11]||(o[11]=a=>f("get-next-offset")),onGetPreviousOffset:o[12]||(o[12]=a=>f("get-previous-offset")),onPageChange:o[13]||(o[13]=a=>f("page-change",a)),onPageSizeChange:_e}),null,16,["initial-page-size"])):e.createCommentVNode("",!0)]))],2))}});exports.default=Ot;
|
|
@@ -10,19 +10,19 @@ import "./kongponents7.es.js";
|
|
|
10
10
|
import "./kongponents12.es.js";
|
|
11
11
|
import { EmptyStateIconVariants as Ft } from "./kongponents13.es.js";
|
|
12
12
|
import { TableViewHeaderKeys as i } from "./kongponents19.es.js";
|
|
13
|
-
import { KUI_ICON_SIZE_30 as re, KUI_COLOR_TEXT_NEUTRAL as Ut, KUI_COLOR_TEXT_PRIMARY as Vt, KUI_COLOR_TEXT_NEUTRAL_WEAK as Wt, KUI_SPACE_60 as Xt } from "./
|
|
14
|
-
import qt from "./
|
|
13
|
+
import { KUI_ICON_SIZE_30 as re, KUI_COLOR_TEXT_NEUTRAL as Ut, KUI_COLOR_TEXT_PRIMARY as Vt, KUI_COLOR_TEXT_NEUTRAL_WEAK as Wt, KUI_SPACE_60 as Xt } from "./kongponents183.es.js";
|
|
14
|
+
import qt from "./kongponents204.es.js";
|
|
15
15
|
import jt from "./kongponents61.es.js";
|
|
16
16
|
import Zt from "./kongponents49.es.js";
|
|
17
17
|
import Ue from "./kongponents42.es.js";
|
|
18
|
-
import Gt from "./
|
|
18
|
+
import Gt from "./kongponents205.es.js";
|
|
19
19
|
import { getInitialPageSize as Jt } from "./kongponents181.es.js";
|
|
20
20
|
import { getUniqueStringId as Yt } from "./kongponents160.es.js";
|
|
21
21
|
import { getScrollbarSize as Qt } from "./kongponents193.es.js";
|
|
22
|
-
import { useElementSize as _t, useResizeObserver as ea } from "./
|
|
23
|
-
import { normalizeSize as ta } from "./
|
|
22
|
+
import { useElementSize as _t, useResizeObserver as ea } from "./kongponents199.es.js";
|
|
23
|
+
import { normalizeSize as ta } from "./kongponents182.es.js";
|
|
24
24
|
import aa from "./kongponents46.es.js";
|
|
25
|
-
import oa from "./
|
|
25
|
+
import oa from "./kongponents206.es.js";
|
|
26
26
|
const la = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "table-toolbar",
|
package/dist/kongponents174.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./kongponents216.cjs"),N=require("./kongponents217.cjs"),A=require("./kongponents183.cjs"),L={class:"k-filter-group"},M={key:0,class:"label","data-testid":"filter-group-label"},I=["data-testid"],V=e.defineComponent({__name:"KFilterGroup",props:e.mergeModels({filters:{},groupLabel:{default:"Filters"},selectorLabel:{default:()=>{}},itemFiltering:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["apply","clear","open","close"],["update:modelValue"]),setup(n,{emit:p}){const F=e.useSlots(),g=t=>`filter-${t}`,v=t=>`filter-item-${t}`,r=e.useModel(n,"modelValue"),i=e.ref(),u=e.ref([]),s=p,f=e.computed(()=>{const t=Object.keys(n.filters).filter(l=>n.filters[l].pinned),o=u.value.filter(l=>r.value[l]!==void 0);return i.value!==void 0&&!t.includes(i.value)&&!o.includes(i.value)&&o.push(i.value),[...t,...o]}),d=e.computed(()=>Object.keys(n.filters).filter(t=>!f.value.includes(t))),b=e.computed(()=>d.value.reduce((t,o)=>({...t,[o]:n.filters[o]}),{})),h=Number.parseFloat(A.KUI_ANIMATION_DURATION_20)*1e3,S=t=>{setTimeout(()=>{i.value=t},h)},B=t=>{i.value!==void 0&&m(i.value),i.value=t,s("open",t)},m=t=>{i.value===t&&(i.value=void 0),s("close",t)},C=t=>{r.value[t]=void 0,i.value===t&&(i.value=void 0),s("clear",t,r.value)},O=(t,o)=>{o!==void 0&&(r.value[t]=o),i.value===t&&(i.value=void 0),s("apply",t,r.value)};return e.watch(r,t=>{Object.entries(t).forEach(([o,l])=>{if(n.filters[o]?.pinned)return;const c=u.value.indexOf(o);c!==-1&&l===void 0?u.value=[...u.value.slice(0,c),...u.value.slice(c+1)]:c===-1&&l!==void 0&&u.value.push(o)})},{immediate:!0,deep:!0}),(t,o)=>(e.openBlock(),e.createElementBlock("div",L,[n.groupLabel?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(n.groupLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,l=>(e.openBlock(),e.createElementBlock("div",{key:`filter-pill-${l}`,"data-testid":`filter-group-pill-${l}`},[e.createVNode(N.default,{custom:!!e.unref(F)[`filter-${l}`],filter:n.filters[l],"init-open":l===i.value,selection:r.value[l],onApply:a=>O(l,a),onClear:a=>C(l),onClose:a=>m(l),onOpen:a=>B(l)},{default:e.withCtx(a=>[e.renderSlot(t.$slots,g(l),e.mergeProps({ref_for:!0},a),void 0,!0)]),_:2},1032,["custom","filter","init-open","selection","onApply","onClear","onClose","onOpen"])],8,I))),128)),d.value.length>0?(e.openBlock(),e.createBlock($.default,{key:1,filters:b.value,"item-filtering":n.itemFiltering,label:n.selectorLabel?n.selectorLabel:"Add filter",onSelect:S},e.createSlots({_:2},[e.renderList(d.value,l=>({name:v(l),fn:e.withCtx(()=>[e.renderSlot(t.$slots,v(l),{},void 0,!0)])}))]),1032,["filters","item-filtering","label"])):e.createCommentVNode("",!0)]))}});exports.default=V;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, useSlots as D, useModel as T, ref as g, computed as f, watch as w, openBlock as s, createElementBlock as c, toDisplayString as E, createCommentVNode as b, Fragment as K, renderList as h, createVNode as P, unref as U, withCtx as $, renderSlot as C, mergeProps as q, createBlock as G, createSlots as R, mergeModels as O } from "vue";
|
|
2
|
-
import z from "./
|
|
3
|
-
import H from "./
|
|
4
|
-
import { KUI_ANIMATION_DURATION_20 as J } from "./
|
|
2
|
+
import z from "./kongponents216.es.js";
|
|
3
|
+
import H from "./kongponents217.es.js";
|
|
4
|
+
import { KUI_ANIMATION_DURATION_20 as J } from "./kongponents183.es.js";
|
|
5
5
|
const Q = { class: "k-filter-group" }, W = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "label",
|
package/dist/kongponents182.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>{const r=Number(e);return Number.isNaN(r)?`${e}`:`${r}px`};exports.normalizeSize=t;
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = (r) => {
|
|
2
|
+
const e = Number(r);
|
|
3
|
+
return Number.isNaN(e) ? `${r}` : `${e}px`;
|
|
4
|
+
};
|
|
2
5
|
export {
|
|
3
|
-
|
|
4
|
-
_ as KUI_COLOR_BACKGROUND_INVERSE,
|
|
5
|
-
I as KUI_COLOR_TEXT_DECORATIVE_AQUA,
|
|
6
|
-
E as KUI_COLOR_TEXT_INVERSE,
|
|
7
|
-
O as KUI_COLOR_TEXT_NEUTRAL,
|
|
8
|
-
U as KUI_COLOR_TEXT_NEUTRAL_STRONG,
|
|
9
|
-
c as KUI_COLOR_TEXT_NEUTRAL_WEAK,
|
|
10
|
-
T as KUI_COLOR_TEXT_PRIMARY,
|
|
11
|
-
K as KUI_COLOR_TEXT_WARNING,
|
|
12
|
-
s as KUI_ICON_SIZE_30,
|
|
13
|
-
t as KUI_ICON_SIZE_40,
|
|
14
|
-
R as KUI_ICON_SIZE_50,
|
|
15
|
-
n as KUI_ICON_SIZE_60,
|
|
16
|
-
C as KUI_LINE_HEIGHT_30,
|
|
17
|
-
A as KUI_SPACE_20,
|
|
18
|
-
N as KUI_SPACE_30,
|
|
19
|
-
L as KUI_SPACE_40,
|
|
20
|
-
S as KUI_SPACE_50,
|
|
21
|
-
p as KUI_SPACE_60
|
|
6
|
+
n as normalizeSize
|
|
22
7
|
};
|
package/dist/kongponents183.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="#0d0e14",I="#00abd2",E="#ffffff",O="#6c7489",U="#52596e",T="#afb7c5",K="#0044f4",R="#995c00",C="0.2s",A="16px",N="20px",S="24px",t="32px",c="20px",L="4px",o="6px",s="8px",n="12px",X="16px";exports.KUI_ANIMATION_DURATION_20=C;exports.KUI_COLOR_BACKGROUND_INVERSE=_;exports.KUI_COLOR_TEXT_DECORATIVE_AQUA=I;exports.KUI_COLOR_TEXT_INVERSE=E;exports.KUI_COLOR_TEXT_NEUTRAL=O;exports.KUI_COLOR_TEXT_NEUTRAL_STRONG=U;exports.KUI_COLOR_TEXT_NEUTRAL_WEAK=T;exports.KUI_COLOR_TEXT_PRIMARY=K;exports.KUI_COLOR_TEXT_WARNING=R;exports.KUI_ICON_SIZE_30=A;exports.KUI_ICON_SIZE_40=N;exports.KUI_ICON_SIZE_50=S;exports.KUI_ICON_SIZE_60=t;exports.KUI_LINE_HEIGHT_30=c;exports.KUI_SPACE_20=L;exports.KUI_SPACE_30=o;exports.KUI_SPACE_40=s;exports.KUI_SPACE_50=n;exports.KUI_SPACE_60=X;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
/* empty css */
|
|
3
|
-
import t from "./kongponents82.es.js";
|
|
4
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-34b46660"]]);
|
|
1
|
+
const _ = "#0d0e14", I = "#00abd2", E = "#ffffff", O = "#6c7489", U = "#52596e", c = "#afb7c5", T = "#0044f4", K = "#995c00", o = "0.2s", s = "16px", t = "20px", R = "24px", n = "32px", C = "20px", A = "4px", N = "6px", L = "8px", S = "12px", p = "16px";
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
o as KUI_ANIMATION_DURATION_20,
|
|
4
|
+
_ as KUI_COLOR_BACKGROUND_INVERSE,
|
|
5
|
+
I as KUI_COLOR_TEXT_DECORATIVE_AQUA,
|
|
6
|
+
E as KUI_COLOR_TEXT_INVERSE,
|
|
7
|
+
O as KUI_COLOR_TEXT_NEUTRAL,
|
|
8
|
+
U as KUI_COLOR_TEXT_NEUTRAL_STRONG,
|
|
9
|
+
c as KUI_COLOR_TEXT_NEUTRAL_WEAK,
|
|
10
|
+
T as KUI_COLOR_TEXT_PRIMARY,
|
|
11
|
+
K as KUI_COLOR_TEXT_WARNING,
|
|
12
|
+
s as KUI_ICON_SIZE_30,
|
|
13
|
+
t as KUI_ICON_SIZE_40,
|
|
14
|
+
R as KUI_ICON_SIZE_50,
|
|
15
|
+
n as KUI_ICON_SIZE_60,
|
|
16
|
+
C as KUI_LINE_HEIGHT_30,
|
|
17
|
+
A as KUI_SPACE_20,
|
|
18
|
+
N as KUI_SPACE_30,
|
|
19
|
+
L as KUI_SPACE_40,
|
|
20
|
+
S as KUI_SPACE_50,
|
|
21
|
+
p as KUI_SPACE_60
|
|
7
22
|
};
|
package/dist/kongponents184.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents230.cjs");;/* empty css */const t=require("./kongponents82.cjs"),u=t.default(e.default,[["__scopeId","data-v-51a543d6"]]);exports.default=u;
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
this.callback = e, this.resizeObserver = new ResizeObserver((r) => {
|
|
6
|
-
window.requestAnimationFrame(() => {
|
|
7
|
-
!Array.isArray(r) || !r.length || e();
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
static create(e) {
|
|
12
|
-
return new s(e);
|
|
13
|
-
}
|
|
14
|
-
observe(e) {
|
|
15
|
-
!this.resizeObserver || !e || this.resizeObserver.observe(e);
|
|
16
|
-
}
|
|
17
|
-
unobserve(e) {
|
|
18
|
-
!this.resizeObserver || !e || this.resizeObserver.unobserve(e);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
import o from "./kongponents230.es.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "./kongponents82.es.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-51a543d6"]]);
|
|
21
5
|
export {
|
|
22
|
-
|
|
6
|
+
m as default
|
|
23
7
|
};
|
package/dist/kongponents186.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents234.cjs");;/* empty css */const r=require("./kongponents82.cjs"),t=r.default(e.default,[["__scopeId","data-v-fa2e8d6e"]]);exports.default=t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./kongponents234.es.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "./kongponents82.es.js";
|
|
4
|
+
const t = /* @__PURE__ */ a(r, [["__scopeId", "data-v-fa2e8d6e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
package/dist/kongponents187.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./kongponents278.cjs"),o=require("./kongponents274.cjs"),d=require("./kongponents279.cjs");function a(t,n,r,i){var e=u.default(i);return e.timeZone=n,e.originalDate=t,o.default(d.default(t,n),r,e)}exports.default=a;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import n from "./kongponents278.es.js";
|
|
2
|
+
import i from "./kongponents274.es.js";
|
|
3
|
+
import f from "./kongponents279.es.js";
|
|
4
|
+
function u(r, t, e, m) {
|
|
5
|
+
var o = n(m);
|
|
6
|
+
return o.timeZone = t, o.originalDate = r, i(f(r, t), e, o);
|
|
7
|
+
}
|
|
5
8
|
export {
|
|
6
|
-
|
|
9
|
+
u as default
|
|
7
10
|
};
|
package/dist/kongponents188.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("./kongponents252.cjs"),j=require("./kongponents253.cjs"),A=require("./kongponents250.cjs"),M=require("./kongponents254.cjs"),I=require("./kongponents255.cjs"),Q=require("./kongponents256.cjs"),u=require("./kongponents257.cjs"),W=require("./kongponents249.cjs"),H=require("./kongponents251.cjs"),K=require("./kongponents258.cjs"),Z=require("./kongponents259.cjs");var B=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G=/^'([^]*?)'?$/,J=/''/g,N=/[a-zA-Z]/;function U(t,l,e){var c,v,f,s,w,$,k,m,g,_,p,h,O,x,E,S,q,D;H.default(2,arguments);var P=String(l),n=K.getDefaultOptions(),o=(c=(v=e?.locale)!==null&&v!==void 0?v:n.locale)!==null&&c!==void 0?c:Z.default,C=W.default((f=(s=(w=($=e?.firstWeekContainsDate)!==null&&$!==void 0?$:e==null||(k=e.locale)===null||k===void 0||(m=k.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&w!==void 0?w:n.firstWeekContainsDate)!==null&&s!==void 0?s:(g=n.locale)===null||g===void 0||(_=g.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&f!==void 0?f:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=W.default((p=(h=(O=(x=e?.weekStartsOn)!==null&&x!==void 0?x:e==null||(E=e.locale)===null||E===void 0||(S=E.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&O!==void 0?O:n.weekStartsOn)!==null&&h!==void 0?h:(q=n.locale)===null||q===void 0||(D=q.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&p!==void 0?p:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var i=A.default(t);if(!y.default(i))throw new RangeError("Invalid time value");var T=Q.default(i),z=j.default(i,T),L={firstWeekContainsDate:C,weekStartsOn:R,locale:o,_originalDate:i},Y=P.match(F).map(function(r){var a=r[0];if(a==="p"||a==="P"){var d=I.default[a];return d(r,o.formatLong)}return r}).join("").match(B).map(function(r){if(r==="''")return"'";var a=r[0];if(a==="'")return V(r);var d=M.default[a];if(d)return!(e!=null&&e.useAdditionalWeekYearTokens)&&u.isProtectedWeekYearToken(r)&&u.throwProtectedError(r,l,String(t)),!(e!=null&&e.useAdditionalDayOfYearTokens)&&u.isProtectedDayOfYearToken(r)&&u.throwProtectedError(r,l,String(t)),d(z,r,o.localize,L);if(a.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("");return Y}function V(t){var l=t.match(G);return l?l[1].replace(J,"'"):t}exports.default=U;
|
|
@@ -1,7 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import I from "./kongponents252.es.js";
|
|
2
|
+
import y from "./kongponents253.es.js";
|
|
3
|
+
import M from "./kongponents250.es.js";
|
|
4
|
+
import j from "./kongponents254.es.js";
|
|
5
|
+
import q from "./kongponents255.es.js";
|
|
6
|
+
import Q from "./kongponents256.es.js";
|
|
7
|
+
import { isProtectedWeekYearToken as F, throwProtectedError as T, isProtectedDayOfYearToken as H } from "./kongponents257.es.js";
|
|
8
|
+
import x from "./kongponents249.es.js";
|
|
9
|
+
import K from "./kongponents251.es.js";
|
|
10
|
+
import { getDefaultOptions as V } from "./kongponents258.es.js";
|
|
11
|
+
import Z from "./kongponents259.es.js";
|
|
12
|
+
var B = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, G = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, J = /^'([^]*?)'?$/, N = /''/g, U = /[a-zA-Z]/;
|
|
13
|
+
function de(a, t, e) {
|
|
14
|
+
var v, d, c, u, m, s, p, k, w, g, O, _, h, $, D, E, S, C;
|
|
15
|
+
K(2, arguments);
|
|
16
|
+
var z = String(t), l = V(), n = (v = (d = e?.locale) !== null && d !== void 0 ? d : l.locale) !== null && v !== void 0 ? v : Z, R = x((c = (u = (m = (s = e?.firstWeekContainsDate) !== null && s !== void 0 ? s : e == null || (p = e.locale) === null || p === void 0 || (k = p.options) === null || k === void 0 ? void 0 : k.firstWeekContainsDate) !== null && m !== void 0 ? m : l.firstWeekContainsDate) !== null && u !== void 0 ? u : (w = l.locale) === null || w === void 0 || (g = w.options) === null || g === void 0 ? void 0 : g.firstWeekContainsDate) !== null && c !== void 0 ? c : 1);
|
|
17
|
+
if (!(R >= 1 && R <= 7))
|
|
18
|
+
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
19
|
+
var W = x((O = (_ = (h = ($ = e?.weekStartsOn) !== null && $ !== void 0 ? $ : e == null || (D = e.locale) === null || D === void 0 || (E = D.options) === null || E === void 0 ? void 0 : E.weekStartsOn) !== null && h !== void 0 ? h : l.weekStartsOn) !== null && _ !== void 0 ? _ : (S = l.locale) === null || S === void 0 || (C = S.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && O !== void 0 ? O : 0);
|
|
20
|
+
if (!(W >= 0 && W <= 6))
|
|
21
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
22
|
+
if (!n.localize)
|
|
23
|
+
throw new RangeError("locale must contain localize property");
|
|
24
|
+
if (!n.formatLong)
|
|
25
|
+
throw new RangeError("locale must contain formatLong property");
|
|
26
|
+
var i = M(a);
|
|
27
|
+
if (!I(i))
|
|
28
|
+
throw new RangeError("Invalid time value");
|
|
29
|
+
var P = Q(i), L = y(i, P), Y = {
|
|
30
|
+
firstWeekContainsDate: R,
|
|
31
|
+
weekStartsOn: W,
|
|
32
|
+
locale: n,
|
|
33
|
+
_originalDate: i
|
|
34
|
+
}, A = z.match(G).map(function(r) {
|
|
35
|
+
var o = r[0];
|
|
36
|
+
if (o === "p" || o === "P") {
|
|
37
|
+
var f = q[o];
|
|
38
|
+
return f(r, n.formatLong);
|
|
39
|
+
}
|
|
40
|
+
return r;
|
|
41
|
+
}).join("").match(B).map(function(r) {
|
|
42
|
+
if (r === "''")
|
|
43
|
+
return "'";
|
|
44
|
+
var o = r[0];
|
|
45
|
+
if (o === "'")
|
|
46
|
+
return X(r);
|
|
47
|
+
var f = j[o];
|
|
48
|
+
if (f)
|
|
49
|
+
return !(e != null && e.useAdditionalWeekYearTokens) && F(r) && T(r, t, String(a)), !(e != null && e.useAdditionalDayOfYearTokens) && H(r) && T(r, t, String(a)), f(L, r, n.localize, Y);
|
|
50
|
+
if (o.match(U))
|
|
51
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + o + "`");
|
|
52
|
+
return r;
|
|
53
|
+
}).join("");
|
|
54
|
+
return A;
|
|
55
|
+
}
|
|
56
|
+
function X(a) {
|
|
57
|
+
var t = a.match(J);
|
|
58
|
+
return t ? t[1].replace(N, "'") : a;
|
|
59
|
+
}
|
|
5
60
|
export {
|
|
6
|
-
|
|
61
|
+
de as default
|
|
7
62
|
};
|
package/dist/kongponents189.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");function a(r,e){o.warn(`Invalid prop: validator check failed for prop "${r}". ${e}`)}exports.warnInvalidProp=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { warn as a } from "vue";
|
|
2
|
+
function i(r, o) {
|
|
3
|
+
a(`Invalid prop: validator check failed for prop "${r}". ${o}`);
|
|
4
|
+
}
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as warnInvalidProp
|
|
7
7
|
};
|
package/dist/kongponents190.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("vue"),f=require("swrv"),i={VALIDATING:"VALIDATING",VALIDATING_HAS_DATA:"VALIDATING_HAS_DATA",PENDING:"PENDING",SUCCESS:"SUCCESS",SUCCESS_HAS_DATA:"SUCCESS_HAS_DATA",ERROR:"ERROR",STALE_IF_ERROR:"STALE_IF_ERROR"};function D(){return{useRequest:(e,u,a)=>{const{data:t,error:n,isValidating:S,isLoading:o,mutate:l}=f(e,u,{revalidateDebounce:500,dedupingInterval:100,...a});return{data:A.computed(()=>t.value?.data),response:t,error:n,isValidating:S,isLoading:o,revalidate:l}},useDebounce:(e,u=300)=>{let a;const t=n=>async(...S)=>{clearTimeout(a),n>0?await new Promise(o=>{a=setTimeout(async()=>{await e(...S),o()},n)}):await e(...S)};return{debouncedFn:t(u),generateDebouncedFn:t}},clientSideSorter:(e,u,a,t)=>{let n=null;const S=(l,c)=>typeof c=="number"&&!Number.isNaN(l)&&!Number.isNaN(c)?l-c:0,o=(l,c)=>l.localeCompare(c);return e!==u?(n=(l,c)=>{const s=r=>r==null?"":typeof r=="number"?r:Array.isArray(r)&&r.length&&typeof r[0]=="number"?r[0]:String(r),d=s(l[e]),v=s(c[e]);return typeof d==="number"?S(d,v):o(d,v)},t.sort(n),u=e,a="ascending"):(t.reverse(),a==="descending"||a==="desc"?a="ascending":a="descending"),{previousKey:u,sortOrder:a}},useSwrvState:(e,u,a)=>{const t=A.ref(i.PENDING),n=A.ref(!1);return A.watchEffect(()=>{if(n.value=e.value&&!!(Object.keys(e.value)?.length||e.value.data?.length||e.value.data?.data?.length||!e.value.data?.data&&typeof e.value.data=="object"&&Object.keys(e.value?.data).length),e.value&&n.value&&a.value){t.value=i.VALIDATING_HAS_DATA;return}if(e.value&&a.value){t.value=i.VALIDATING;return}if(e.value&&u.value){t.value=i.STALE_IF_ERROR;return}if(e.value===void 0&&!u.value){t.value=i.PENDING;return}if(e.value&&!u.value&&n.value){t.value=i.SUCCESS_HAS_DATA;return}if(e.value&&!u.value){t.value=i.SUCCESS;return}e.value===void 0&&u&&(t.value=i.ERROR)}),{hasData:n,state:t,swrvState:i}},cloneDeep:e=>{if(e)return JSON.parse(JSON.stringify(e))},stripRequiredLabel:(e,u)=>!u||!e?e||"":/( )?\*$/gi.test(e)?e.replace(/\*$/gi,"").trim():e}}exports.default=D;
|
|
@@ -1,7 +1,100 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { computed as s, ref as v, watchEffect as D } from "vue";
|
|
2
|
+
import R from "swrv";
|
|
3
|
+
const i = {
|
|
4
|
+
VALIDATING: "VALIDATING",
|
|
5
|
+
VALIDATING_HAS_DATA: "VALIDATING_HAS_DATA",
|
|
6
|
+
PENDING: "PENDING",
|
|
7
|
+
SUCCESS: "SUCCESS",
|
|
8
|
+
SUCCESS_HAS_DATA: "SUCCESS_HAS_DATA",
|
|
9
|
+
ERROR: "ERROR",
|
|
10
|
+
STALE_IF_ERROR: "STALE_IF_ERROR"
|
|
11
|
+
};
|
|
12
|
+
function b() {
|
|
13
|
+
return {
|
|
14
|
+
useRequest: (e, u, a) => {
|
|
15
|
+
const {
|
|
16
|
+
data: t,
|
|
17
|
+
error: n,
|
|
18
|
+
isValidating: S,
|
|
19
|
+
isLoading: o,
|
|
20
|
+
mutate: c
|
|
21
|
+
} = R(e, u, {
|
|
22
|
+
revalidateDebounce: 500,
|
|
23
|
+
dedupingInterval: 100,
|
|
24
|
+
...a
|
|
25
|
+
});
|
|
26
|
+
return {
|
|
27
|
+
data: s(() => t.value?.data),
|
|
28
|
+
response: t,
|
|
29
|
+
error: n,
|
|
30
|
+
isValidating: S,
|
|
31
|
+
isLoading: o,
|
|
32
|
+
revalidate: c
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
useDebounce: (e, u = 300) => {
|
|
36
|
+
let a;
|
|
37
|
+
const t = (n) => async (...S) => {
|
|
38
|
+
clearTimeout(a), n > 0 ? await new Promise((o) => {
|
|
39
|
+
a = setTimeout(async () => {
|
|
40
|
+
await e(...S), o();
|
|
41
|
+
}, n);
|
|
42
|
+
}) : await e(...S);
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
debouncedFn: t(u),
|
|
46
|
+
generateDebouncedFn: t
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
clientSideSorter: (e, u, a, t) => {
|
|
50
|
+
let n = null;
|
|
51
|
+
const S = (c, l) => typeof l == "number" && !Number.isNaN(c) && !Number.isNaN(l) ? c - l : 0, o = (c, l) => c.localeCompare(l);
|
|
52
|
+
return e !== u ? (n = (c, l) => {
|
|
53
|
+
const f = (r) => r == null ? "" : typeof r == "number" ? r : Array.isArray(r) && r.length && typeof r[0] == "number" ? r[0] : String(r), A = f(c[e]), d = f(l[e]);
|
|
54
|
+
return typeof A === "number" ? S(A, d) : o(A, d);
|
|
55
|
+
}, t.sort(n), u = e, a = "ascending") : (t.reverse(), a === "descending" || a === "desc" ? a = "ascending" : a = "descending"), { previousKey: u, sortOrder: a };
|
|
56
|
+
},
|
|
57
|
+
useSwrvState: (e, u, a) => {
|
|
58
|
+
const t = v(i.PENDING), n = v(!1);
|
|
59
|
+
return D(() => {
|
|
60
|
+
if (n.value = e.value && !!(Object.keys(e.value)?.length || e.value.data?.length || e.value.data?.data?.length || !e.value.data?.data && typeof e.value.data == "object" && Object.keys(e.value?.data).length), e.value && n.value && a.value) {
|
|
61
|
+
t.value = i.VALIDATING_HAS_DATA;
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (e.value && a.value) {
|
|
65
|
+
t.value = i.VALIDATING;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (e.value && u.value) {
|
|
69
|
+
t.value = i.STALE_IF_ERROR;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (e.value === void 0 && !u.value) {
|
|
73
|
+
t.value = i.PENDING;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (e.value && !u.value && n.value) {
|
|
77
|
+
t.value = i.SUCCESS_HAS_DATA;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (e.value && !u.value) {
|
|
81
|
+
t.value = i.SUCCESS;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
e.value === void 0 && u && (t.value = i.ERROR);
|
|
85
|
+
}), {
|
|
86
|
+
hasData: n,
|
|
87
|
+
state: t,
|
|
88
|
+
swrvState: i
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
cloneDeep: (e) => {
|
|
92
|
+
if (e)
|
|
93
|
+
return JSON.parse(JSON.stringify(e));
|
|
94
|
+
},
|
|
95
|
+
stripRequiredLabel: (e, u) => !u || !e ? e || "" : /( )?\*$/gi.test(e) ? e.replace(/\*$/gi, "").trim() : e
|
|
96
|
+
};
|
|
97
|
+
}
|
|
5
98
|
export {
|
|
6
|
-
|
|
99
|
+
b as default
|
|
7
100
|
};
|
package/dist/kongponents192.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./kongponents236.cjs");function f(t){const n=[0];for(let r=0;r<t.length;r++)t[r]===`
|
|
2
2
|
`&&n.push(r+1);return n}function o(t,n){let r=0,e=t.length-1;for(;r<e;){const i=Math.floor((r+e+1)/2);t[i]&&t[i]<=n?r=i:e=i-1}return r+1}function d(t,n,r){if(!t||!n)return[];const e=[];let i=0;for(;;){const s=t.indexOf(n,i);if(s===-1)break;const l=o(r,s);e.push(l),i=(l<r.length?r[l]:t.length)??0}return e}function x(t,n,r){if(!t||!n)return[];const e=new RegExp(n,"sg"),i=[];let s;for(;(s=e.exec(t))!==null;){const l=s.index,c=s.index+s[0].length-1,u=o(r,l),M=o(r,c);for(let h=u;h<=M;h++)i[i.length-1]!==h&&i.push(h)}return i}function N(t,n,r,e=f(t)){return r?x(t,n,e):d(t,n,e)}const g=t=>`<mark class="matched-term">${t}</mark>`,p=/[<&]/;function a(t){return t.replace(/[&<]/g,n=>n==="&"?"&":"<")}function b(t,n=p,r=a){return n.test(t)?r(t):t}function I(t,n,r){if(!t||!n)return"";let e;try{e=new RegExp(`(?:${r?n:L.default(n)})+`,"sgi")}catch{return t}const i=!p.test(t);let s="",l=0,c;for(;(c=e.exec(t))!==null;){const u=c.index;s+=i?t.slice(l,u):a(t.slice(l,u)),s+=g(i?c[0]:a(c[0])),l=u+c[0].length}return s+=i?t.slice(l):a(t.slice(l)),s}const m=/^\d+(?:-\d+)?(?:,\d+(?:-\d+)?)*$/;function R(t,n){if(!m.test(t))throw new Error("Invalid line number expression.");const r=t.split(",").map(e=>{const[i,s]=e.split("-").map(Number);return s==null?i:[i,s]}).filter(e=>e!==void 0);return E(r,n)}function E(t,n){const r=t.flatMap(e=>{if(typeof e=="number")return e<1||e>n?[]:e;let[i,s]=e[0]<e[1]?e:[e[1],e[0]];return i=Math.max(1,i),s=Math.min(n,s),Array.from({length:s-i+1},(l,c)=>c+i)}).sort((e,i)=>e-i);return Array.from(new Set(r))}function w(t,n){return typeof t=="string"?R(t,n):E(t,n)}exports.LINE_NUMBER_EXPRESSION_REGEX=m;exports.buildLineOffsets=f;exports.escapeHTMLIfNeeded=b;exports.escapeInnerHTML=a;exports.getMatchingLineNumbers=N;exports.highlightMatchingChars=I;exports.normalizeHighlightedLines=w;exports.wrapMark=g;
|
package/dist/kongponents194.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("./kongponents284.cjs"),h=require("./kongponents285.cjs"),M=require("./kongponents286.cjs");var L="Expected a function",_=Math.max,q=Math.min;function O(x,t,c){var r,f,s,a,n,u,d=0,E=!1,l=!1,v=!0;if(typeof x!="function")throw new TypeError(L);t=M.default(t)||0,C.default(c)&&(E=!0,l="maxWait"in c,s=l?_(M.default(c.maxWait)||0,t):s,v="trailing"in c?!0:v);function g(e){var i=r,o=f;return r=f=void 0,d=e,a=x.apply(o,i),a}function S(e){return d=e,n=setTimeout(m,t),E?g(e):a}function W(e){var i=e-u,o=e-d,I=t-i;return l?q(I,s-o):I}function b(e){var i=e-u,o=e-d;return u===void 0||i>=t||i<0||l&&o>=s}function m(){var e=h.default();if(b(e))return k(e);n=setTimeout(m,W(e))}function k(e){return n=void 0,v&&r?g(e):(r=f=void 0,a)}function p(){n!==void 0&&clearTimeout(n),d=0,r=u=f=n=void 0}function y(){return n===void 0?a:k(h.default())}function T(){var e=h.default(),i=b(e);if(r=arguments,f=this,u=e,i){if(n===void 0)return S(u);if(l)return clearTimeout(n),n=setTimeout(m,t),g(u)}return n===void 0&&(n=setTimeout(m,t)),a}return T.cancel=p,T.flush=y,T}exports.default=O;
|