@eturnity/eturnity_reusable_components 7.45.5-EPDM-10609.1 → 7.45.5-EPDM-12680.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.es.js +7 -0
- package/dist/main.es10.js +10 -0
- package/dist/main.es100.js +23 -0
- package/dist/main.es101.js +23 -0
- package/dist/main.es102.js +20 -0
- package/dist/main.es103.js +20 -0
- package/dist/main.es104.js +20 -0
- package/dist/main.es105.js +37 -0
- package/dist/main.es106.js +28 -0
- package/dist/main.es107.js +32 -0
- package/dist/main.es108.js +18 -0
- package/dist/main.es109.js +33 -0
- package/dist/main.es11.js +2484 -0
- package/dist/main.es110.js +41 -0
- package/dist/main.es111.js +36 -0
- package/dist/main.es112.js +35 -0
- package/dist/main.es113.js +20 -0
- package/dist/main.es114.js +23 -0
- package/dist/main.es115.js +30 -0
- package/dist/main.es116.js +23 -0
- package/dist/main.es117.js +32 -0
- package/dist/main.es118.js +23 -0
- package/dist/main.es119.js +29 -0
- package/dist/main.es12.js +133 -0
- package/dist/main.es120.js +25 -0
- package/dist/main.es121.js +23 -0
- package/dist/main.es122.js +28 -0
- package/dist/main.es123.js +28 -0
- package/dist/main.es124.js +39 -0
- package/dist/main.es125.js +37 -0
- package/dist/main.es126.js +23 -0
- package/dist/main.es127.js +25 -0
- package/dist/main.es128.js +23 -0
- package/dist/main.es129.js +23 -0
- package/dist/main.es13.js +261 -0
- package/dist/main.es130.js +23 -0
- package/dist/main.es131.js +28 -0
- package/dist/main.es132.js +29 -0
- package/dist/main.es133.js +29 -0
- package/dist/main.es134.js +21 -0
- package/dist/main.es135.js +20 -0
- package/dist/main.es136.js +28 -0
- package/dist/main.es137.js +24 -0
- package/dist/main.es138.js +28 -0
- package/dist/main.es139.js +23 -0
- package/dist/main.es14.js +26 -0
- package/dist/main.es140.js +33 -0
- package/dist/main.es141.js +30 -0
- package/dist/main.es142.js +23 -0
- package/dist/main.es143.js +20 -0
- package/dist/main.es144.js +19 -0
- package/dist/main.es145.js +23 -0
- package/dist/main.es146.js +29 -0
- package/dist/main.es147.js +28 -0
- package/dist/main.es148.js +35 -0
- package/dist/main.es149.js +25 -0
- package/dist/main.es15.js +1058 -0
- package/dist/main.es150.js +25 -0
- package/dist/main.es151.js +23 -0
- package/dist/main.es152.js +41 -0
- package/dist/main.es153.js +41 -0
- package/dist/main.es154.js +25 -0
- package/dist/main.es155.js +23 -0
- package/dist/main.es156.js +23 -0
- package/dist/main.es157.js +25 -0
- package/dist/main.es158.js +23 -0
- package/dist/main.es159.js +23 -0
- package/dist/main.es16.js +692 -0
- package/dist/main.es160.js +23 -0
- package/dist/main.es161.js +23 -0
- package/dist/main.es162.js +23 -0
- package/dist/main.es163.js +23 -0
- package/dist/main.es164.js +20 -0
- package/dist/main.es165.js +28 -0
- package/dist/main.es166.js +28 -0
- package/dist/main.es167.js +28 -0
- package/dist/main.es168.js +28 -0
- package/dist/main.es169.js +25 -0
- package/dist/main.es17.js +95 -0
- package/dist/main.es170.js +23 -0
- package/dist/main.es171.js +23 -0
- package/dist/main.es172.js +20 -0
- package/dist/main.es173.js +20 -0
- package/dist/main.es174.js +23 -0
- package/dist/main.es175.js +18 -0
- package/dist/main.es176.js +23 -0
- package/dist/main.es177.js +20 -0
- package/dist/main.es178.js +25 -0
- package/dist/main.es179.js +25 -0
- package/dist/main.es18.js +78 -0
- package/dist/main.es180.js +23 -0
- package/dist/main.es181.js +23 -0
- package/dist/main.es182.js +20 -0
- package/dist/main.es183.js +23 -0
- package/dist/main.es184.js +23 -0
- package/dist/main.es185.js +32 -0
- package/dist/main.es186.js +23 -0
- package/dist/main.es187.js +32 -0
- package/dist/main.es188.js +37 -0
- package/dist/main.es189.js +32 -0
- package/dist/main.es19.js +143 -0
- package/dist/main.es190.js +39 -0
- package/dist/main.es191.js +28 -0
- package/dist/main.es192.js +20 -0
- package/dist/main.es193.js +20 -0
- package/dist/main.es194.js +25 -0
- package/dist/main.es195.js +23 -0
- package/dist/main.es196.js +40 -0
- package/dist/main.es197.js +23 -0
- package/dist/main.es198.js +21 -0
- package/dist/main.es199.js +19 -0
- package/dist/main.es2.js +34 -0
- package/dist/main.es20.js +152 -0
- package/dist/main.es200.js +20 -0
- package/dist/main.es201.js +20 -0
- package/dist/main.es202.js +33 -0
- package/dist/main.es203.js +23 -0
- package/dist/main.es204.js +23 -0
- package/dist/main.es205.js +28 -0
- package/dist/main.es206.js +23 -0
- package/dist/main.es207.js +23 -0
- package/dist/main.es208.js +21 -0
- package/dist/main.es209.js +23 -0
- package/dist/main.es21.js +108 -0
- package/dist/main.es210.js +28 -0
- package/dist/main.es211.js +23 -0
- package/dist/main.es212.js +23 -0
- package/dist/main.es213.js +23 -0
- package/dist/main.es214.js +28 -0
- package/dist/main.es215.js +28 -0
- package/dist/main.es216.js +20 -0
- package/dist/main.es217.js +23 -0
- package/dist/main.es218.js +35 -0
- package/dist/main.es219.js +28 -0
- package/dist/main.es22.js +4 -0
- package/dist/main.es220.js +29 -0
- package/dist/main.es221.js +24 -0
- package/dist/main.es222.js +23 -0
- package/dist/main.es223.js +28 -0
- package/dist/main.es224.js +25 -0
- package/dist/main.es225.js +23 -0
- package/dist/main.es226.js +23 -0
- package/dist/main.es227.js +20 -0
- package/dist/main.es228.js +20 -0
- package/dist/main.es229.js +23 -0
- package/dist/main.es23.js +169 -0
- package/dist/main.es230.js +23 -0
- package/dist/main.es231.js +25 -0
- package/dist/main.es232.js +38 -0
- package/dist/main.es233.js +30 -0
- package/dist/main.es234.js +28 -0
- package/dist/main.es235.js +23 -0
- package/dist/main.es236.js +22 -0
- package/dist/main.es237.js +28 -0
- package/dist/main.es238.js +23 -0
- package/dist/main.es239.js +18 -0
- package/dist/main.es24.js +201 -0
- package/dist/main.es240.js +23 -0
- package/dist/main.es241.js +25 -0
- package/dist/main.es242.js +23 -0
- package/dist/main.es243.js +23 -0
- package/dist/main.es244.js +23 -0
- package/dist/main.es245.js +23 -0
- package/dist/main.es246.js +23 -0
- package/dist/main.es247.js +23 -0
- package/dist/main.es248.js +23 -0
- package/dist/main.es249.js +23 -0
- package/dist/main.es25.js +55 -0
- package/dist/main.es250.js +30 -0
- package/dist/main.es251.js +23 -0
- package/dist/main.es252.js +23 -0
- package/dist/main.es253.js +28 -0
- package/dist/main.es254.js +23 -0
- package/dist/main.es255.js +23 -0
- package/dist/main.es256.js +28 -0
- package/dist/main.es257.js +33 -0
- package/dist/main.es258.js +28 -0
- package/dist/main.es259.js +28 -0
- package/dist/main.es26.js +12 -0
- package/dist/main.es260.js +23 -0
- package/dist/main.es261.js +25 -0
- package/dist/main.es262.js +28 -0
- package/dist/main.es263.js +30 -0
- package/dist/main.es264.js +23 -0
- package/dist/main.es265.js +23 -0
- package/dist/main.es266.js +23 -0
- package/dist/main.es267.js +23 -0
- package/dist/main.es268.js +28 -0
- package/dist/main.es269.js +252 -0
- package/dist/main.es27.js +6 -0
- package/dist/main.es270.js +22 -0
- package/dist/main.es271.js +25 -0
- package/dist/main.es272.js +7 -0
- package/dist/main.es273.js +383 -0
- package/dist/main.es274.js +54 -0
- package/dist/main.es275.js +15 -0
- package/dist/main.es276.js +64 -0
- package/dist/main.es277.js +4 -0
- package/dist/main.es278.js +4 -0
- package/dist/main.es279.js +4 -0
- package/dist/main.es28.js +103 -0
- package/dist/main.es280.js +4 -0
- package/dist/main.es281.js +4 -0
- package/dist/main.es282.js +4 -0
- package/dist/main.es283.js +4 -0
- package/dist/main.es284.js +4 -0
- package/dist/main.es285.js +4 -0
- package/dist/main.es286.js +4 -0
- package/dist/main.es287.js +4 -0
- package/dist/main.es288.js +4 -0
- package/dist/main.es289.js +4 -0
- package/dist/main.es29.js +62 -0
- package/dist/main.es290.js +4 -0
- package/dist/main.es291.js +4 -0
- package/dist/main.es292.js +4 -0
- package/dist/main.es293.js +4 -0
- package/dist/main.es294.js +4 -0
- package/dist/main.es295.js +4 -0
- package/dist/main.es296.js +4 -0
- package/dist/main.es297.js +4 -0
- package/dist/main.es298.js +4 -0
- package/dist/main.es299.js +4 -0
- package/dist/main.es3.js +70 -0
- package/dist/main.es30.js +69 -0
- package/dist/main.es300.js +4 -0
- package/dist/main.es301.js +4 -0
- package/dist/main.es302.js +4 -0
- package/dist/main.es303.js +4 -0
- package/dist/main.es304.js +4 -0
- package/dist/main.es305.js +4 -0
- package/dist/main.es306.js +4 -0
- package/dist/main.es307.js +4 -0
- package/dist/main.es308.js +4 -0
- package/dist/main.es309.js +4 -0
- package/dist/main.es31.js +801 -0
- package/dist/main.es310.js +4 -0
- package/dist/main.es311.js +4 -0
- package/dist/main.es312.js +4 -0
- package/dist/main.es313.js +4 -0
- package/dist/main.es314.js +4 -0
- package/dist/main.es315.js +4 -0
- package/dist/main.es316.js +4 -0
- package/dist/main.es317.js +4 -0
- package/dist/main.es318.js +4 -0
- package/dist/main.es319.js +4 -0
- package/dist/main.es32.js +127 -0
- package/dist/main.es320.js +4 -0
- package/dist/main.es321.js +4 -0
- package/dist/main.es322.js +4 -0
- package/dist/main.es323.js +4 -0
- package/dist/main.es324.js +4 -0
- package/dist/main.es325.js +4 -0
- package/dist/main.es326.js +4 -0
- package/dist/main.es327.js +4 -0
- package/dist/main.es328.js +4 -0
- package/dist/main.es329.js +4 -0
- package/dist/main.es33.js +4 -0
- package/dist/main.es330.js +4 -0
- package/dist/main.es331.js +4 -0
- package/dist/main.es332.js +4 -0
- package/dist/main.es333.js +4 -0
- package/dist/main.es334.js +4 -0
- package/dist/main.es335.js +4 -0
- package/dist/main.es336.js +4 -0
- package/dist/main.es337.js +4 -0
- package/dist/main.es338.js +4 -0
- package/dist/main.es339.js +4 -0
- package/dist/main.es34.js +29 -0
- package/dist/main.es340.js +4 -0
- package/dist/main.es341.js +4 -0
- package/dist/main.es342.js +4 -0
- package/dist/main.es343.js +4 -0
- package/dist/main.es344.js +4 -0
- package/dist/main.es345.js +4 -0
- package/dist/main.es346.js +4 -0
- package/dist/main.es347.js +4 -0
- package/dist/main.es348.js +4 -0
- package/dist/main.es349.js +4 -0
- package/dist/main.es35.js +34 -0
- package/dist/main.es350.js +4 -0
- package/dist/main.es351.js +4 -0
- package/dist/main.es352.js +4 -0
- package/dist/main.es353.js +4 -0
- package/dist/main.es354.js +4 -0
- package/dist/main.es355.js +4 -0
- package/dist/main.es356.js +4 -0
- package/dist/main.es357.js +4 -0
- package/dist/main.es358.js +4 -0
- package/dist/main.es359.js +4 -0
- package/dist/main.es36.js +36 -0
- package/dist/main.es360.js +4 -0
- package/dist/main.es361.js +4 -0
- package/dist/main.es362.js +4 -0
- package/dist/main.es363.js +4 -0
- package/dist/main.es364.js +4 -0
- package/dist/main.es365.js +4 -0
- package/dist/main.es366.js +4 -0
- package/dist/main.es367.js +4 -0
- package/dist/main.es368.js +4 -0
- package/dist/main.es369.js +4 -0
- package/dist/main.es37.js +41 -0
- package/dist/main.es370.js +4 -0
- package/dist/main.es371.js +4 -0
- package/dist/main.es372.js +4 -0
- package/dist/main.es373.js +4 -0
- package/dist/main.es374.js +4 -0
- package/dist/main.es375.js +4 -0
- package/dist/main.es376.js +4 -0
- package/dist/main.es377.js +4 -0
- package/dist/main.es378.js +4 -0
- package/dist/main.es379.js +4 -0
- package/dist/main.es38.js +35 -0
- package/dist/main.es380.js +4 -0
- package/dist/main.es381.js +4 -0
- package/dist/main.es382.js +4 -0
- package/dist/main.es383.js +4 -0
- package/dist/main.es384.js +4 -0
- package/dist/main.es385.js +4 -0
- package/dist/main.es386.js +4 -0
- package/dist/main.es387.js +4 -0
- package/dist/main.es388.js +4 -0
- package/dist/main.es389.js +4 -0
- package/dist/main.es39.js +20 -0
- package/dist/main.es390.js +4 -0
- package/dist/main.es391.js +4 -0
- package/dist/main.es392.js +4 -0
- package/dist/main.es393.js +4 -0
- package/dist/main.es394.js +4 -0
- package/dist/main.es395.js +4 -0
- package/dist/main.es396.js +4 -0
- package/dist/main.es397.js +4 -0
- package/dist/main.es398.js +4 -0
- package/dist/main.es399.js +4 -0
- package/dist/main.es4.js +19 -0
- package/dist/main.es40.js +20 -0
- package/dist/main.es400.js +4 -0
- package/dist/main.es401.js +4 -0
- package/dist/main.es402.js +4 -0
- package/dist/main.es403.js +4 -0
- package/dist/main.es404.js +4 -0
- package/dist/main.es405.js +4 -0
- package/dist/main.es406.js +4 -0
- package/dist/main.es407.js +4 -0
- package/dist/main.es408.js +4 -0
- package/dist/main.es409.js +4 -0
- package/dist/main.es41.js +25 -0
- package/dist/main.es410.js +4 -0
- package/dist/main.es411.js +4 -0
- package/dist/main.es412.js +4 -0
- package/dist/main.es413.js +4 -0
- package/dist/main.es414.js +4 -0
- package/dist/main.es415.js +4 -0
- package/dist/main.es416.js +4 -0
- package/dist/main.es417.js +4 -0
- package/dist/main.es418.js +4 -0
- package/dist/main.es419.js +4 -0
- package/dist/main.es42.js +28 -0
- package/dist/main.es420.js +4 -0
- package/dist/main.es421.js +4 -0
- package/dist/main.es422.js +4 -0
- package/dist/main.es423.js +4 -0
- package/dist/main.es424.js +4 -0
- package/dist/main.es425.js +4 -0
- package/dist/main.es426.js +4 -0
- package/dist/main.es427.js +4 -0
- package/dist/main.es428.js +4 -0
- package/dist/main.es429.js +4 -0
- package/dist/main.es43.js +23 -0
- package/dist/main.es430.js +4 -0
- package/dist/main.es431.js +4 -0
- package/dist/main.es432.js +4 -0
- package/dist/main.es433.js +4 -0
- package/dist/main.es434.js +4 -0
- package/dist/main.es435.js +4 -0
- package/dist/main.es436.js +4 -0
- package/dist/main.es437.js +4 -0
- package/dist/main.es438.js +4 -0
- package/dist/main.es439.js +4 -0
- package/dist/main.es44.js +44 -0
- package/dist/main.es440.js +4 -0
- package/dist/main.es441.js +4 -0
- package/dist/main.es442.js +4 -0
- package/dist/main.es443.js +4 -0
- package/dist/main.es444.js +4 -0
- package/dist/main.es445.js +4 -0
- package/dist/main.es446.js +4 -0
- package/dist/main.es447.js +4 -0
- package/dist/main.es448.js +4 -0
- package/dist/main.es449.js +4 -0
- package/dist/main.es45.js +38 -0
- package/dist/main.es450.js +4 -0
- package/dist/main.es451.js +4 -0
- package/dist/main.es452.js +4 -0
- package/dist/main.es453.js +4 -0
- package/dist/main.es454.js +4 -0
- package/dist/main.es455.js +4 -0
- package/dist/main.es456.js +4 -0
- package/dist/main.es457.js +4 -0
- package/dist/main.es458.js +4 -0
- package/dist/main.es459.js +4 -0
- package/dist/main.es46.js +23 -0
- package/dist/main.es460.js +4 -0
- package/dist/main.es461.js +4 -0
- package/dist/main.es462.js +4 -0
- package/dist/main.es463.js +4 -0
- package/dist/main.es464.js +4 -0
- package/dist/main.es465.js +4 -0
- package/dist/main.es466.js +4 -0
- package/dist/main.es467.js +4 -0
- package/dist/main.es468.js +4 -0
- package/dist/main.es469.js +4 -0
- package/dist/main.es47.js +23 -0
- package/dist/main.es470.js +4 -0
- package/dist/main.es471.js +4 -0
- package/dist/main.es472.js +4 -0
- package/dist/main.es473.js +4 -0
- package/dist/main.es474.js +4 -0
- package/dist/main.es475.js +4 -0
- package/dist/main.es476.js +4 -0
- package/dist/main.es477.js +4 -0
- package/dist/main.es478.js +4 -0
- package/dist/main.es479.js +4 -0
- package/dist/main.es48.js +24 -0
- package/dist/main.es480.js +4 -0
- package/dist/main.es481.js +4 -0
- package/dist/main.es482.js +4 -0
- package/dist/main.es483.js +4 -0
- package/dist/main.es484.js +4 -0
- package/dist/main.es485.js +4 -0
- package/dist/main.es486.js +4 -0
- package/dist/main.es487.js +4 -0
- package/dist/main.es488.js +4 -0
- package/dist/main.es489.js +4 -0
- package/dist/main.es49.js +35 -0
- package/dist/main.es490.js +4 -0
- package/dist/main.es491.js +4 -0
- package/dist/main.es492.js +4 -0
- package/dist/main.es493.js +4 -0
- package/dist/main.es494.js +4 -0
- package/dist/main.es495.js +4 -0
- package/dist/main.es496.js +4 -0
- package/dist/main.es497.js +4 -0
- package/dist/main.es498.js +4 -0
- package/dist/main.es499.js +4 -0
- package/dist/main.es5.js +586 -0
- package/dist/main.es50.js +30 -0
- package/dist/main.es500.js +4 -0
- package/dist/main.es501.js +4 -0
- package/dist/main.es502.js +4 -0
- package/dist/main.es503.js +4 -0
- package/dist/main.es504.js +4 -0
- package/dist/main.es505.js +4 -0
- package/dist/main.es506.js +4 -0
- package/dist/main.es507.js +4 -0
- package/dist/main.es508.js +4 -0
- package/dist/main.es509.js +4 -0
- package/dist/main.es51.js +34 -0
- package/dist/main.es510.js +4 -0
- package/dist/main.es511.js +88 -0
- package/dist/main.es52.js +20 -0
- package/dist/main.es53.js +20 -0
- package/dist/main.es54.js +23 -0
- package/dist/main.es55.js +28 -0
- package/dist/main.es56.js +28 -0
- package/dist/main.es57.js +23 -0
- package/dist/main.es58.js +25 -0
- package/dist/main.es59.js +24 -0
- package/dist/main.es6.js +5872 -0
- package/dist/main.es60.js +23 -0
- package/dist/main.es61.js +23 -0
- package/dist/main.es62.js +23 -0
- package/dist/main.es63.js +23 -0
- package/dist/main.es64.js +23 -0
- package/dist/main.es65.js +20 -0
- package/dist/main.es66.js +23 -0
- package/dist/main.es67.js +23 -0
- package/dist/main.es68.js +21 -0
- package/dist/main.es69.js +20 -0
- package/dist/main.es7.js +1904 -0
- package/dist/main.es70.js +23 -0
- package/dist/main.es71.js +28 -0
- package/dist/main.es72.js +28 -0
- package/dist/main.es73.js +23 -0
- package/dist/main.es74.js +23 -0
- package/dist/main.es75.js +23 -0
- package/dist/main.es76.js +23 -0
- package/dist/main.es77.js +31 -0
- package/dist/main.es78.js +23 -0
- package/dist/main.es79.js +33 -0
- package/dist/main.es8.js +42 -0
- package/dist/main.es80.js +30 -0
- package/dist/main.es81.js +23 -0
- package/dist/main.es82.js +22 -0
- package/dist/main.es83.js +25 -0
- package/dist/main.es84.js +28 -0
- package/dist/main.es85.js +35 -0
- package/dist/main.es86.js +23 -0
- package/dist/main.es87.js +23 -0
- package/dist/main.es88.js +33 -0
- package/dist/main.es89.js +20 -0
- package/dist/main.es9.js +4 -0
- package/dist/main.es90.js +28 -0
- package/dist/main.es91.js +28 -0
- package/dist/main.es92.js +23 -0
- package/dist/main.es93.js +23 -0
- package/dist/main.es94.js +24 -0
- package/dist/main.es95.js +28 -0
- package/dist/main.es96.js +28 -0
- package/dist/main.es97.js +23 -0
- package/dist/main.es98.js +23 -0
- package/dist/main.es99.js +28 -0
- package/dist/style.css +1 -0
- package/package.json +1 -1
- package/src/assets/svgIcons/collapse_all.svg +4 -0
- package/src/assets/svgIcons/module.svg +3 -0
- package/src/assets/svgIcons/optimizer.svg +6 -0
- package/src/assets/svgIcons/string_design.svg +5 -0
- package/src/assets/theme.js +0 -1
- package/src/components/buttons/buttonIcon/index.vue +3 -1
- package/src/components/icon/index.vue +1 -0
- package/src/components/infoText/index.vue +18 -115
- package/src/components/inputs/inputNumber/index.vue +170 -8
- package/src/components/inputs/inputText/index.vue +23 -2
- package/src/components/inputs/select/index.vue +57 -17
- package/src/components/inputs/select/option/index.vue +11 -2
- package/src/components/spinner/index.vue +11 -0
- package/src/components/stringDesign/DropdownMenu/index.vue +485 -0
- package/src/assets/svgIcons/checkmark.svg +0 -3
- package/src/components/infoText/constants.js +0 -4
@@ -28,11 +28,14 @@
|
|
28
28
|
v-bind="$attrs"
|
29
29
|
ref="inputField1"
|
30
30
|
:align-items="alignItems"
|
31
|
-
:background-color="
|
32
|
-
|
31
|
+
:background-color="
|
32
|
+
colorMode === 'transparent' ? 'transparent' : backgroundColor
|
33
|
+
"
|
34
|
+
:border-color="colorMode === 'transparent' ? 'white' : borderColor"
|
35
|
+
:color-mode="colorMode"
|
33
36
|
:data-id="inputDataId"
|
34
37
|
:disabled="disabled"
|
35
|
-
:font-color="fontColor"
|
38
|
+
:font-color="colorMode === 'transparent' ? 'white' : fontColor"
|
36
39
|
:font-size="fontSize"
|
37
40
|
:has-label-slot="hasLabelSlot"
|
38
41
|
:has-slot="hasSlot"
|
@@ -51,6 +54,8 @@
|
|
51
54
|
@blur="onInputBlur($event)"
|
52
55
|
@focus="focusInput()"
|
53
56
|
@input="onInput($event)"
|
57
|
+
@keydown.down="decrementValue"
|
58
|
+
@keydown.up="incrementValue"
|
54
59
|
@keyup.enter="onEnterPress"
|
55
60
|
/>
|
56
61
|
<SlotContainer v-if="hasSlot" :is-error="isError" :slot-size="slotSize">
|
@@ -92,6 +97,31 @@
|
|
92
97
|
</template>
|
93
98
|
</RCSelect>
|
94
99
|
</SelectWrapper>
|
100
|
+
|
101
|
+
<ArrowControls
|
102
|
+
v-if="!disabled && showArrowControls"
|
103
|
+
:color-mode="colorMode"
|
104
|
+
>
|
105
|
+
<ArrowButton @click="incrementValue">
|
106
|
+
<Icon
|
107
|
+
:color="colorMode === 'transparent' ? 'white' : undefined"
|
108
|
+
name="arrow_up"
|
109
|
+
size="8px"
|
110
|
+
/>
|
111
|
+
</ArrowButton>
|
112
|
+
<ArrowDivider :color-mode="colorMode" />
|
113
|
+
<ArrowButton
|
114
|
+
:is-disabled="textInput <= minNumber"
|
115
|
+
@click="decrementValue"
|
116
|
+
>
|
117
|
+
<Icon
|
118
|
+
:color="colorMode === 'transparent' ? 'white' : undefined"
|
119
|
+
:disabled="textInput <= minNumber"
|
120
|
+
name="arrow_down"
|
121
|
+
size="8px"
|
122
|
+
/>
|
123
|
+
</ArrowButton>
|
124
|
+
</ArrowControls>
|
95
125
|
</InputWrapper>
|
96
126
|
<ErrorMessage v-if="isError">{{ errorMessage }}</ErrorMessage>
|
97
127
|
</Container>
|
@@ -123,6 +153,7 @@
|
|
123
153
|
// labelInfoAlign="left"
|
124
154
|
// :minNumber="0"
|
125
155
|
// fontColor="blue"
|
156
|
+
// colorMode="transparent" // Makes background transparent, border white, and font white
|
126
157
|
// >
|
127
158
|
//<template name=label><img>....</template>
|
128
159
|
//</inputNumber>
|
@@ -158,6 +189,7 @@
|
|
158
189
|
labelFontColor: String,
|
159
190
|
borderColor: String,
|
160
191
|
showLinearUnitName: Boolean,
|
192
|
+
colorMode: String,
|
161
193
|
}
|
162
194
|
|
163
195
|
const Container = styled('div', inputProps)`
|
@@ -181,15 +213,18 @@
|
|
181
213
|
: '1px solid ' + props.theme.colors.grey4};
|
182
214
|
height: ${(props) => props.inputHeight};
|
183
215
|
max-height: ${(props) => props.inputHeight};
|
184
|
-
padding:
|
185
|
-
|
186
|
-
|
216
|
+
padding: ${({ colorMode }) =>
|
217
|
+
colorMode === 'transparent' ? '10px 15px' : '0 10px'};
|
218
|
+
padding-right: ${({ slotSize, isError, showLinearUnitName, colorMode }) =>
|
219
|
+
colorMode === 'transparent'
|
220
|
+
? '0'
|
221
|
+
: slotSize
|
187
222
|
? isError && !showLinearUnitName
|
188
223
|
? 'calc(' + slotSize + ' + 24px)'
|
189
224
|
: 'calc(' + slotSize + ' + 10px)'
|
190
225
|
: isError && !showLinearUnitName
|
191
226
|
? '24px'
|
192
|
-
: '
|
227
|
+
: '40px'};
|
193
228
|
border-radius: ${(props) =>
|
194
229
|
props.isInteractive && props.alignItems != 'vertical'
|
195
230
|
? '0 4px 4px 0'
|
@@ -213,7 +248,7 @@
|
|
213
248
|
props.inputWidth && !props.hasLabelSlot ? props.inputWidth : '100%'};
|
214
249
|
min-width: ${(props) => (props.minWidth ? props.minWidth : 'unset')};
|
215
250
|
background-color: ${(props) =>
|
216
|
-
props.isDisabled ? props.theme.colors.grey5 :
|
251
|
+
props.isDisabled ? props.theme.colors.grey5 : props.theme.colors.white};
|
217
252
|
box-sizing: border-box;
|
218
253
|
|
219
254
|
&::placeholder {
|
@@ -225,6 +260,55 @@
|
|
225
260
|
}
|
226
261
|
`
|
227
262
|
|
263
|
+
const ArrowControlsProps = {
|
264
|
+
colorMode: String,
|
265
|
+
}
|
266
|
+
const ArrowControls = styled('div', ArrowControlsProps)`
|
267
|
+
position: absolute;
|
268
|
+
right: 0;
|
269
|
+
top: 0;
|
270
|
+
bottom: 0;
|
271
|
+
display: grid;
|
272
|
+
grid-template-rows: 1fr auto 1fr;
|
273
|
+
align-items: center;
|
274
|
+
justify-items: center;
|
275
|
+
cursor: pointer;
|
276
|
+
width: 30px;
|
277
|
+
background-color: ${(props) =>
|
278
|
+
props.colorMode === 'transparent'
|
279
|
+
? 'transparent'
|
280
|
+
: props.theme.colors.white};
|
281
|
+
border-left: 1px solid
|
282
|
+
${(props) =>
|
283
|
+
props.colorMode === 'transparent'
|
284
|
+
? props.theme.colors.white
|
285
|
+
: props.theme.colors.black};
|
286
|
+
`
|
287
|
+
|
288
|
+
const ArrowButtonProps = {
|
289
|
+
isDisabled: Boolean,
|
290
|
+
}
|
291
|
+
const ArrowButton = styled('button', ArrowButtonProps)`
|
292
|
+
background: ${(props) =>
|
293
|
+
props.isDisabled ? props.theme.colors.disabled : 'transparent'};
|
294
|
+
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
295
|
+
display: flex;
|
296
|
+
align-items: center;
|
297
|
+
justify-content: center;
|
298
|
+
padding: 0;
|
299
|
+
width: 100%;
|
300
|
+
height: 100%;
|
301
|
+
`
|
302
|
+
|
303
|
+
const ArrowDivider = styled('div', ArrowControlsProps)`
|
304
|
+
width: 100%;
|
305
|
+
height: 1px;
|
306
|
+
background-color: ${(props) =>
|
307
|
+
props.colorMode === 'transparent'
|
308
|
+
? props.theme.colors.white
|
309
|
+
: props.theme.colors.black};
|
310
|
+
`
|
311
|
+
|
228
312
|
const InputWrapper = styled.span`
|
229
313
|
position: relative;
|
230
314
|
`
|
@@ -359,140 +443,179 @@
|
|
359
443
|
SelectWrapper,
|
360
444
|
SelectText,
|
361
445
|
Divider,
|
446
|
+
ArrowControls,
|
447
|
+
ArrowButton,
|
448
|
+
ArrowDivider,
|
362
449
|
},
|
363
450
|
inheritAttrs: false,
|
364
451
|
props: {
|
365
452
|
placeholder: {
|
453
|
+
type: String,
|
366
454
|
required: false,
|
367
455
|
default: '',
|
368
456
|
},
|
369
457
|
isError: {
|
458
|
+
type: Boolean,
|
370
459
|
required: false,
|
371
460
|
default: false,
|
372
461
|
},
|
373
462
|
inputWidth: {
|
463
|
+
type: String,
|
374
464
|
required: false,
|
375
465
|
default: null,
|
376
466
|
},
|
377
467
|
minWidth: {
|
468
|
+
type: String,
|
378
469
|
required: false,
|
379
470
|
default: null,
|
380
471
|
},
|
381
472
|
inputHeight: {
|
473
|
+
type: String,
|
382
474
|
required: false,
|
383
475
|
default: '40px',
|
384
476
|
},
|
385
477
|
value: {
|
478
|
+
type: [String, Number],
|
386
479
|
required: true,
|
387
480
|
default: null,
|
388
481
|
},
|
389
482
|
clearInput: {
|
483
|
+
type: Boolean,
|
390
484
|
required: false,
|
391
485
|
default: false,
|
392
486
|
},
|
393
487
|
alignItems: {
|
488
|
+
type: String,
|
394
489
|
required: false,
|
395
490
|
default: 'vertical',
|
396
491
|
},
|
397
492
|
errorMessage: {
|
493
|
+
type: String,
|
398
494
|
required: false,
|
399
495
|
default: 'Please insert a correct number',
|
400
496
|
},
|
401
497
|
numberPrecision: {
|
498
|
+
type: Number,
|
402
499
|
required: false,
|
403
500
|
default: 0,
|
404
501
|
},
|
405
502
|
minDecimals: {
|
503
|
+
type: Number,
|
406
504
|
required: false,
|
407
505
|
default: 0,
|
408
506
|
},
|
409
507
|
unitName: {
|
508
|
+
type: String,
|
410
509
|
required: false,
|
411
510
|
default: '',
|
412
511
|
},
|
413
512
|
showLinearUnitName: {
|
513
|
+
type: Boolean,
|
414
514
|
required: false,
|
415
515
|
default: false,
|
416
516
|
},
|
417
517
|
disabled: {
|
518
|
+
type: Boolean,
|
418
519
|
required: false,
|
419
520
|
default: false,
|
420
521
|
},
|
421
522
|
noBorder: {
|
523
|
+
type: Boolean,
|
422
524
|
required: false,
|
423
525
|
default: false,
|
424
526
|
},
|
425
527
|
borderColor: {
|
528
|
+
type: String,
|
426
529
|
required: false,
|
530
|
+
default: null,
|
427
531
|
},
|
428
532
|
textAlign: {
|
533
|
+
type: String,
|
429
534
|
required: false,
|
430
535
|
default: 'left',
|
431
536
|
},
|
432
537
|
fontSize: {
|
538
|
+
type: String,
|
433
539
|
required: false,
|
434
540
|
default: '13px',
|
435
541
|
},
|
436
542
|
isInteractive: {
|
543
|
+
type: Boolean,
|
437
544
|
required: false,
|
438
545
|
default: false,
|
439
546
|
},
|
440
547
|
interactionStep: {
|
548
|
+
type: Number,
|
441
549
|
required: false,
|
442
550
|
default: 1,
|
443
551
|
},
|
444
552
|
labelText: {
|
553
|
+
type: String,
|
445
554
|
required: false,
|
446
555
|
default: null,
|
447
556
|
},
|
448
557
|
labelInfoText: {
|
558
|
+
type: String,
|
449
559
|
required: false,
|
450
560
|
default: null,
|
451
561
|
},
|
452
562
|
labelInfoAlign: {
|
563
|
+
type: String,
|
453
564
|
required: false,
|
454
565
|
default: 'left',
|
455
566
|
},
|
456
567
|
defaultNumber: {
|
568
|
+
type: Number,
|
457
569
|
required: false,
|
458
570
|
default: null,
|
459
571
|
},
|
460
572
|
minNumber: {
|
573
|
+
type: Number,
|
461
574
|
required: false,
|
462
575
|
default: null,
|
463
576
|
},
|
464
577
|
fontColor: {
|
578
|
+
type: String,
|
465
579
|
required: false,
|
466
580
|
default: null,
|
467
581
|
},
|
468
582
|
backgroundColor: {
|
583
|
+
type: String,
|
469
584
|
required: false,
|
470
585
|
default: null,
|
471
586
|
},
|
472
587
|
numberToStringEnabled: {
|
588
|
+
type: Boolean,
|
473
589
|
required: false,
|
474
590
|
default: true,
|
475
591
|
},
|
476
592
|
allowNegative: {
|
593
|
+
type: Boolean,
|
477
594
|
required: false,
|
478
595
|
default: true,
|
479
596
|
},
|
480
597
|
slotSize: {
|
598
|
+
type: String,
|
481
599
|
required: false,
|
600
|
+
default: null,
|
482
601
|
},
|
483
602
|
labelFontColor: {
|
603
|
+
type: String,
|
484
604
|
required: false,
|
485
605
|
default: 'eturnityGrey',
|
486
606
|
},
|
487
607
|
focus: {
|
608
|
+
type: Boolean,
|
488
609
|
required: false,
|
489
610
|
default: false,
|
490
611
|
},
|
491
612
|
labelDataId: {
|
613
|
+
type: String,
|
492
614
|
required: false,
|
493
615
|
default: '',
|
494
616
|
},
|
495
617
|
inputDataId: {
|
618
|
+
type: String,
|
496
619
|
required: false,
|
497
620
|
default: '',
|
498
621
|
},
|
@@ -516,6 +639,14 @@
|
|
516
639
|
type: Boolean,
|
517
640
|
default: false,
|
518
641
|
},
|
642
|
+
colorMode: {
|
643
|
+
type: String,
|
644
|
+
default: '',
|
645
|
+
},
|
646
|
+
showArrowControls: {
|
647
|
+
type: Boolean,
|
648
|
+
default: true,
|
649
|
+
},
|
519
650
|
},
|
520
651
|
data() {
|
521
652
|
return {
|
@@ -585,6 +716,36 @@
|
|
585
716
|
}
|
586
717
|
},
|
587
718
|
methods: {
|
719
|
+
incrementValue() {
|
720
|
+
const currentValue = Math.max(
|
721
|
+
parseFloat(this.textInput || 0),
|
722
|
+
this.minNumber || 0
|
723
|
+
)
|
724
|
+
const newValue = currentValue + this.interactionStep
|
725
|
+
this.textInput = numberToString({
|
726
|
+
value: newValue,
|
727
|
+
numberPrecision: this.numberPrecision,
|
728
|
+
minDecimals: this.minDecimals,
|
729
|
+
})
|
730
|
+
this.$emit('on-input', newValue)
|
731
|
+
this.$emit('input-change', newValue)
|
732
|
+
},
|
733
|
+
decrementValue() {
|
734
|
+
const currentValue = Math.max(
|
735
|
+
parseFloat(this.textInput || 0),
|
736
|
+
this.minNumber || 0
|
737
|
+
)
|
738
|
+
const newValue = currentValue - this.interactionStep
|
739
|
+
if (this.allowNegative || newValue >= 0) {
|
740
|
+
this.textInput = numberToString({
|
741
|
+
value: newValue,
|
742
|
+
numberPrecision: this.numberPrecision,
|
743
|
+
minDecimals: this.minDecimals,
|
744
|
+
})
|
745
|
+
this.$emit('on-input', newValue)
|
746
|
+
this.$emit('input-change', newValue)
|
747
|
+
}
|
748
|
+
},
|
588
749
|
onEnterPress() {
|
589
750
|
this.$emit('on-enter-click')
|
590
751
|
this.$refs.inputField1.$el.blur()
|
@@ -680,6 +841,7 @@
|
|
680
841
|
this.$emit('on-input', evaluatedVal)
|
681
842
|
}
|
682
843
|
}
|
844
|
+
this.textInput = evaluatedVal
|
683
845
|
},
|
684
846
|
onInputBlur(e) {
|
685
847
|
this.isFocused = false
|
@@ -27,7 +27,9 @@
|
|
27
27
|
<InputContainer
|
28
28
|
ref="inputElement"
|
29
29
|
:background-color="backgroundColor"
|
30
|
+
:border-color="borderColor"
|
30
31
|
:data-id="inputDataId"
|
32
|
+
:default-padding="defaultPadding"
|
31
33
|
:disabled="disabled"
|
32
34
|
:disabled-background-color="disabledBackgroundColor"
|
33
35
|
:font-color="fontColor"
|
@@ -58,6 +60,13 @@
|
|
58
60
|
<IconWrapper v-if="hasError" size="16px">
|
59
61
|
<Icon cursor="default" name="warning" size="16px" />
|
60
62
|
</IconWrapper>
|
63
|
+
<IconWrapper
|
64
|
+
v-if="iconName && !hasError && inputType !== 'password'"
|
65
|
+
:default-padding="defaultPadding"
|
66
|
+
size="16px"
|
67
|
+
>
|
68
|
+
<Icon color="white" cursor="default" :name="iconName" size="16px" />
|
69
|
+
</IconWrapper>
|
61
70
|
</IconContainer>
|
62
71
|
<ErrorMessage v-if="hasError && hasErrorMessage">
|
63
72
|
{{ dynamicErrorMessage }}
|
@@ -122,6 +131,7 @@
|
|
122
131
|
borderColor: String,
|
123
132
|
inputHeight: String,
|
124
133
|
disabledBackgroundColor: String,
|
134
|
+
defaultPadding: Boolean,
|
125
135
|
}
|
126
136
|
const InputContainer = styled('input', inputProps)`
|
127
137
|
border: ${(props) =>
|
@@ -139,6 +149,8 @@
|
|
139
149
|
? '11px 25px 11px 10px'
|
140
150
|
: props.inputType === 'password'
|
141
151
|
? '11px 25px 11px 10px'
|
152
|
+
: props.defaultPadding
|
153
|
+
? '10px 35px 10px 15px'
|
142
154
|
: '11px 5px 11px 10px'};
|
143
155
|
border-radius: 4px;
|
144
156
|
position: relative;
|
@@ -185,13 +197,13 @@
|
|
185
197
|
props.alignItems === 'vertical' || !props.hasLabel ? '1fr' : 'auto 1fr'};
|
186
198
|
`
|
187
199
|
|
188
|
-
const IconAttrs = { size: String }
|
200
|
+
const IconAttrs = { size: String, defaultPadding: Boolean }
|
189
201
|
const IconWrapper = styled('div', IconAttrs)`
|
190
202
|
position: absolute;
|
191
203
|
top: 0;
|
192
204
|
bottom: 0;
|
193
205
|
margin: auto;
|
194
|
-
right: 5px;
|
206
|
+
right: ${(props) => (props.defaultPadding ? '15px' : '5px')};
|
195
207
|
height: ${(props) => (props.size ? props.size : 'auto')};
|
196
208
|
`
|
197
209
|
|
@@ -325,6 +337,15 @@
|
|
325
337
|
required: false,
|
326
338
|
default: '',
|
327
339
|
},
|
340
|
+
iconName: {
|
341
|
+
required: false,
|
342
|
+
default: null,
|
343
|
+
type: String,
|
344
|
+
},
|
345
|
+
defaultPadding: {
|
346
|
+
required: false,
|
347
|
+
default: false,
|
348
|
+
},
|
328
349
|
},
|
329
350
|
data() {
|
330
351
|
return {
|
@@ -17,7 +17,9 @@
|
|
17
17
|
>
|
18
18
|
<InputLabel
|
19
19
|
:font-color="
|
20
|
-
labelFontColor || colorMode == 'dark'
|
20
|
+
labelFontColor || colorMode == 'dark' || colorMode == 'transparent'
|
21
|
+
? 'white'
|
22
|
+
: 'eturnityGrey'
|
21
23
|
"
|
22
24
|
:font-size="fontSize"
|
23
25
|
>{{ label }}
|
@@ -40,18 +42,26 @@
|
|
40
42
|
<SelectButton
|
41
43
|
ref="select"
|
42
44
|
:bg-color="
|
43
|
-
buttonBgColor || colorMode == 'dark'
|
45
|
+
buttonBgColor || colorMode == 'dark'
|
46
|
+
? 'transparentBlack1'
|
47
|
+
: colorMode == 'transparent'
|
48
|
+
? 'transparent'
|
49
|
+
: 'white'
|
44
50
|
"
|
45
51
|
class="select-button"
|
52
|
+
:color-mode="colorMode"
|
46
53
|
:data-id="dataId"
|
47
54
|
:disabled="disabled"
|
48
55
|
:font-color="
|
49
|
-
buttonFontColor || colorMode == 'dark'
|
56
|
+
buttonFontColor || colorMode == 'dark' || colorMode == 'transparent'
|
57
|
+
? 'white'
|
58
|
+
: 'black'
|
50
59
|
"
|
51
60
|
:font-size="fontSize"
|
52
61
|
:has-error="hasError"
|
53
62
|
:has-no-padding="isSearchBarVisible || !hasSelectButtonPadding"
|
54
63
|
:height="height"
|
64
|
+
:is-search-bar-visible="isSearchBarVisible"
|
55
65
|
:no-relative="noRelative"
|
56
66
|
:padding-left="paddingLeft"
|
57
67
|
:select-height="selectHeight"
|
@@ -72,7 +82,11 @@
|
|
72
82
|
ref="searchInput"
|
73
83
|
background-color="transparent"
|
74
84
|
:font-color="
|
75
|
-
buttonFontColor ||
|
85
|
+
buttonFontColor ||
|
86
|
+
colorMode == 'dark' ||
|
87
|
+
colorMode == 'transparent'
|
88
|
+
? 'white'
|
89
|
+
: 'black'
|
76
90
|
"
|
77
91
|
:font-size="fontSize"
|
78
92
|
input-height="34px"
|
@@ -92,26 +106,30 @@
|
|
92
106
|
>
|
93
107
|
<slot name="selector" :selected-value="selectedValue"></slot>
|
94
108
|
</Selector>
|
95
|
-
<Caret
|
109
|
+
<Caret
|
110
|
+
class="caret_dropdown"
|
111
|
+
:color-mode="colorMode"
|
112
|
+
@click.stop="toggleCaretDropdown"
|
113
|
+
>
|
96
114
|
<Icon
|
97
115
|
v-if="isDropdownOpen"
|
98
116
|
:color="
|
99
|
-
caretColor || colorMode == 'dark'
|
117
|
+
caretColor || colorMode == 'dark' || colorMode == 'transparent'
|
100
118
|
? 'white'
|
101
119
|
: 'transparentBlack1'
|
102
120
|
"
|
103
121
|
name="arrow_up"
|
104
|
-
size="12px"
|
122
|
+
:size="colorMode === 'transparent' ? '8px' : '12px'"
|
105
123
|
/>
|
106
124
|
<Icon
|
107
125
|
v-else
|
108
126
|
:color="
|
109
|
-
caretColor || colorMode == 'dark'
|
127
|
+
caretColor || colorMode == 'dark' || colorMode == 'transparent'
|
110
128
|
? 'white'
|
111
129
|
: 'transparentBlack1'
|
112
130
|
"
|
113
131
|
name="arrow_down"
|
114
|
-
size="12px"
|
132
|
+
:size="colorMode === 'transparent' ? '8px' : '12px'"
|
115
133
|
/>
|
116
134
|
</Caret>
|
117
135
|
</SelectButton>
|
@@ -121,15 +139,27 @@
|
|
121
139
|
v-show="isSelectDropdownShown"
|
122
140
|
ref="dropdown"
|
123
141
|
:bg-color="
|
124
|
-
dropdownBgColor ||
|
142
|
+
dropdownBgColor ||
|
143
|
+
colorMode == 'dark' ||
|
144
|
+
colorMode == 'transparent'
|
145
|
+
? 'black'
|
146
|
+
: 'white'
|
125
147
|
"
|
126
148
|
:dropdown-position="dropdownPosition"
|
127
149
|
:font-color="
|
128
|
-
dropdownFontColor ||
|
150
|
+
dropdownFontColor ||
|
151
|
+
colorMode == 'dark' ||
|
152
|
+
colorMode == 'transparent'
|
153
|
+
? 'white'
|
154
|
+
: 'black'
|
129
155
|
"
|
130
156
|
:font-size="fontSize"
|
131
157
|
:hovered-bg-color="
|
132
|
-
colorMode == 'dark'
|
158
|
+
colorMode == 'dark'
|
159
|
+
? '#000000'
|
160
|
+
: colorMode == 'transparent'
|
161
|
+
? 'grey6'
|
162
|
+
: dropdownBgColor
|
133
163
|
"
|
134
164
|
:hovered-index="hoveredIndex"
|
135
165
|
:hovered-value="hoveredValue"
|
@@ -186,12 +216,15 @@
|
|
186
216
|
const CARET_WIDTH = '30px'
|
187
217
|
const BORDER_WIDTH = '1px'
|
188
218
|
|
189
|
-
const
|
219
|
+
const CaretAttrs = { colorMode: String }
|
220
|
+
const Caret = styled('div', CaretAttrs)`
|
190
221
|
display: flex;
|
191
222
|
align-items: center;
|
192
223
|
justify-content: center;
|
193
|
-
width: ${
|
194
|
-
|
224
|
+
width: ${(props) =>
|
225
|
+
props.colorMode === 'transparent' ? '15px' : CARET_WIDTH};
|
226
|
+
min-width: ${(props) =>
|
227
|
+
props.colorMode === 'transparent' ? '15px' : CARET_WIDTH};
|
195
228
|
height: 100%;
|
196
229
|
align-items: center;
|
197
230
|
cursor: pointer;
|
@@ -230,6 +263,7 @@
|
|
230
263
|
`
|
231
264
|
const OptionalLabel = styled.span`
|
232
265
|
font-weight: 300;
|
266
|
+
text-transform: lowercase;
|
233
267
|
`
|
234
268
|
const inputProps = {
|
235
269
|
selectWidth: String,
|
@@ -274,6 +308,8 @@
|
|
274
308
|
noRelative: Boolean,
|
275
309
|
tablePaddingLeft: String,
|
276
310
|
showDisabledBackground: Boolean,
|
311
|
+
colorMode: String,
|
312
|
+
isSearchBarVisible: Boolean,
|
277
313
|
}
|
278
314
|
const SelectButton = styled('div', selectButtonAttrs)`
|
279
315
|
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
@@ -281,7 +317,11 @@
|
|
281
317
|
border-radius: 4px;
|
282
318
|
max-width: ${(props) => (props.selectWidth ? props.selectWidth : '100%')};
|
283
319
|
${(props) =>
|
284
|
-
props.
|
320
|
+
props.colorMode === 'transparent'
|
321
|
+
? props.isSearchBarVisible
|
322
|
+
? 'padding: 10px 15px 10px 5px;'
|
323
|
+
: 'padding: 10px 15px;'
|
324
|
+
: props.isSearchBarVisible
|
285
325
|
? ''
|
286
326
|
: `padding-left: ${
|
287
327
|
props.hasNoPadding
|
@@ -613,7 +653,7 @@
|
|
613
653
|
if (this.isDropdownOpen) {
|
614
654
|
return this.$refs.dropdown.$el.childElementCount > 1
|
615
655
|
? this.$refs.dropdown.$el.childElementCount
|
616
|
-
:
|
656
|
+
: this.$refs.dropdown.$el.children[0]
|
617
657
|
? this.$refs.dropdown.$el.children[0].childElementCount
|
618
658
|
: 0
|
619
659
|
}
|
@@ -1,6 +1,12 @@
|
|
1
1
|
<template>
|
2
2
|
<OptionContainer
|
3
|
-
:background-color="
|
3
|
+
:background-color="
|
4
|
+
colorMode == 'dark'
|
5
|
+
? '#000000'
|
6
|
+
: colorMode == 'transparent'
|
7
|
+
? 'black'
|
8
|
+
: backgroundColor
|
9
|
+
"
|
4
10
|
:cursor-type="cursorType"
|
5
11
|
:data-value="value"
|
6
12
|
:disabled-bg-color="disabledBgColor"
|
@@ -8,6 +14,8 @@
|
|
8
14
|
:hovered-bg-color="
|
9
15
|
colorMode == 'dark'
|
10
16
|
? '#000000'
|
17
|
+
: colorMode == 'transparent'
|
18
|
+
? 'grey6'
|
11
19
|
: hoveredBgColor
|
12
20
|
? hoveredBgColor
|
13
21
|
: 'grey5'
|
@@ -130,7 +138,8 @@
|
|
130
138
|
default: '12px 10px',
|
131
139
|
},
|
132
140
|
textColor: {
|
133
|
-
type:
|
141
|
+
type: String,
|
142
|
+
required: false,
|
134
143
|
default: 'inherit',
|
135
144
|
},
|
136
145
|
},
|