@eturnity/eturnity_reusable_components 8.10.3-EPDM-13568.6 → 8.10.3-EPDM-14085.2
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/package.json +1 -1
- package/src/App.vue +6 -6
- package/src/assets/svgIcons/add_icon-1.svg +2 -2
- package/src/assets/svgIcons/battery.svg +2 -2
- package/src/assets/svgIcons/bell_alt.svg +3 -1
- package/src/assets/svgIcons/bexio.svg +3 -3
- package/src/assets/svgIcons/bom.svg +2 -2
- package/src/assets/svgIcons/collections.svg +1 -1
- package/src/assets/svgIcons/dashboard.svg +1 -1
- package/src/assets/svgIcons/deal_flow.svg +4 -2
- package/src/assets/svgIcons/documents.svg +3 -2
- package/src/assets/svgIcons/ems-1.svg +2 -2
- package/src/assets/svgIcons/ems.svg +2 -2
- package/src/assets/svgIcons/energy_meter.svg +12 -3
- package/src/assets/svgIcons/financing_for_pv.svg +5 -2
- package/src/assets/svgIcons/free_technology.svg +4 -2
- package/src/assets/svgIcons/initial_situation.svg +2 -2
- package/src/assets/svgIcons/integrations.svg +2 -2
- package/src/assets/svgIcons/inverter-1.svg +5 -0
- package/src/assets/svgIcons/inverter.svg +2 -2
- package/src/assets/svgIcons/profile.svg +3 -2
- package/src/assets/svgIcons/profitability.svg +2 -2
- package/src/assets/svgIcons/project_analysis.svg +3 -2
- package/src/assets/svgIcons/project_settings.svg +3 -2
- package/src/assets/svgIcons/pv.svg +2 -2
- package/src/assets/svgIcons/run_simulation.svg +2 -2
- package/src/assets/svgIcons/settings.svg +2 -2
- package/src/assets/svgIcons/subscriptions.svg +2 -2
- package/src/assets/svgIcons/subsidies-1.svg +5 -0
- package/src/assets/svgIcons/subsidies.svg +2 -2
- package/src/assets/svgIcons/variants.svg +5 -2
- package/src/assets/svgIcons/virtual_storage.svg +3 -2
- package/src/assets/theme.js +26 -602
- package/src/components/buttons/buttonIcon/index.vue +32 -110
- package/src/components/buttons/mainButton/index.vue +34 -73
- package/src/components/draggableCard/defaultProps.js +16 -0
- package/src/components/draggableCard/draggableCard.spec.js +99 -0
- package/src/components/draggableCard/draggableCard.stories.js +79 -0
- package/src/components/draggableCard/index.vue +354 -0
- package/src/components/filter/filterSettings.vue +3 -4
- package/src/components/icon/index.vue +6 -29
- package/src/components/infoCard/index.vue +8 -12
- package/src/components/infoText/index.vue +4 -7
- package/src/components/inputs/checkbox/index.vue +2 -2
- package/src/components/inputs/inputNumber/index.vue +0 -5
- package/src/components/inputs/inputText/index.vue +0 -6
- package/src/components/modals/modal/index.vue +4 -5
- package/src/components/projectMarker/index.vue +1 -2
- package/src/components/sideMenu/index.vue +48 -92
- package/src/components/spinner/index.vue +33 -66
- package/src/components/tableDropdown/index.vue +30 -29
- package/src/components/tables/mainTable/index.vue +9 -12
- package/dist/main.es.js +0 -7
- package/dist/main.es10.js +0 -10
- package/dist/main.es100.js +0 -23
- package/dist/main.es101.js +0 -23
- package/dist/main.es102.js +0 -20
- package/dist/main.es103.js +0 -20
- package/dist/main.es104.js +0 -20
- package/dist/main.es105.js +0 -37
- package/dist/main.es106.js +0 -28
- package/dist/main.es107.js +0 -32
- package/dist/main.es108.js +0 -18
- package/dist/main.es109.js +0 -33
- package/dist/main.es11.js +0 -2484
- package/dist/main.es110.js +0 -41
- package/dist/main.es111.js +0 -36
- package/dist/main.es112.js +0 -35
- package/dist/main.es113.js +0 -20
- package/dist/main.es114.js +0 -23
- package/dist/main.es115.js +0 -30
- package/dist/main.es116.js +0 -23
- package/dist/main.es117.js +0 -32
- package/dist/main.es118.js +0 -23
- package/dist/main.es119.js +0 -29
- package/dist/main.es12.js +0 -133
- package/dist/main.es120.js +0 -25
- package/dist/main.es121.js +0 -23
- package/dist/main.es122.js +0 -28
- package/dist/main.es123.js +0 -28
- package/dist/main.es124.js +0 -39
- package/dist/main.es125.js +0 -37
- package/dist/main.es126.js +0 -23
- package/dist/main.es127.js +0 -25
- package/dist/main.es128.js +0 -23
- package/dist/main.es129.js +0 -23
- package/dist/main.es13.js +0 -261
- package/dist/main.es130.js +0 -23
- package/dist/main.es131.js +0 -28
- package/dist/main.es132.js +0 -29
- package/dist/main.es133.js +0 -29
- package/dist/main.es134.js +0 -21
- package/dist/main.es135.js +0 -20
- package/dist/main.es136.js +0 -28
- package/dist/main.es137.js +0 -24
- package/dist/main.es138.js +0 -28
- package/dist/main.es139.js +0 -23
- package/dist/main.es14.js +0 -26
- package/dist/main.es140.js +0 -33
- package/dist/main.es141.js +0 -30
- package/dist/main.es142.js +0 -23
- package/dist/main.es143.js +0 -20
- package/dist/main.es144.js +0 -19
- package/dist/main.es145.js +0 -23
- package/dist/main.es146.js +0 -29
- package/dist/main.es147.js +0 -28
- package/dist/main.es148.js +0 -35
- package/dist/main.es149.js +0 -25
- package/dist/main.es15.js +0 -1058
- package/dist/main.es150.js +0 -25
- package/dist/main.es151.js +0 -23
- package/dist/main.es152.js +0 -41
- package/dist/main.es153.js +0 -41
- package/dist/main.es154.js +0 -25
- package/dist/main.es155.js +0 -23
- package/dist/main.es156.js +0 -23
- package/dist/main.es157.js +0 -25
- package/dist/main.es158.js +0 -23
- package/dist/main.es159.js +0 -23
- package/dist/main.es16.js +0 -692
- package/dist/main.es160.js +0 -23
- package/dist/main.es161.js +0 -23
- package/dist/main.es162.js +0 -23
- package/dist/main.es163.js +0 -23
- package/dist/main.es164.js +0 -20
- package/dist/main.es165.js +0 -28
- package/dist/main.es166.js +0 -28
- package/dist/main.es167.js +0 -28
- package/dist/main.es168.js +0 -28
- package/dist/main.es169.js +0 -25
- package/dist/main.es17.js +0 -95
- package/dist/main.es170.js +0 -23
- package/dist/main.es171.js +0 -23
- package/dist/main.es172.js +0 -20
- package/dist/main.es173.js +0 -20
- package/dist/main.es174.js +0 -23
- package/dist/main.es175.js +0 -18
- package/dist/main.es176.js +0 -23
- package/dist/main.es177.js +0 -20
- package/dist/main.es178.js +0 -25
- package/dist/main.es179.js +0 -25
- package/dist/main.es18.js +0 -78
- package/dist/main.es180.js +0 -23
- package/dist/main.es181.js +0 -23
- package/dist/main.es182.js +0 -20
- package/dist/main.es183.js +0 -23
- package/dist/main.es184.js +0 -23
- package/dist/main.es185.js +0 -32
- package/dist/main.es186.js +0 -23
- package/dist/main.es187.js +0 -32
- package/dist/main.es188.js +0 -37
- package/dist/main.es189.js +0 -32
- package/dist/main.es19.js +0 -143
- package/dist/main.es190.js +0 -39
- package/dist/main.es191.js +0 -28
- package/dist/main.es192.js +0 -20
- package/dist/main.es193.js +0 -20
- package/dist/main.es194.js +0 -25
- package/dist/main.es195.js +0 -23
- package/dist/main.es196.js +0 -40
- package/dist/main.es197.js +0 -23
- package/dist/main.es198.js +0 -21
- package/dist/main.es199.js +0 -19
- package/dist/main.es2.js +0 -34
- package/dist/main.es20.js +0 -152
- package/dist/main.es200.js +0 -20
- package/dist/main.es201.js +0 -20
- package/dist/main.es202.js +0 -33
- package/dist/main.es203.js +0 -23
- package/dist/main.es204.js +0 -23
- package/dist/main.es205.js +0 -28
- package/dist/main.es206.js +0 -23
- package/dist/main.es207.js +0 -23
- package/dist/main.es208.js +0 -21
- package/dist/main.es209.js +0 -23
- package/dist/main.es21.js +0 -108
- package/dist/main.es210.js +0 -28
- package/dist/main.es211.js +0 -23
- package/dist/main.es212.js +0 -23
- package/dist/main.es213.js +0 -23
- package/dist/main.es214.js +0 -28
- package/dist/main.es215.js +0 -28
- package/dist/main.es216.js +0 -20
- package/dist/main.es217.js +0 -23
- package/dist/main.es218.js +0 -35
- package/dist/main.es219.js +0 -28
- package/dist/main.es22.js +0 -4
- package/dist/main.es220.js +0 -29
- package/dist/main.es221.js +0 -24
- package/dist/main.es222.js +0 -23
- package/dist/main.es223.js +0 -28
- package/dist/main.es224.js +0 -25
- package/dist/main.es225.js +0 -23
- package/dist/main.es226.js +0 -23
- package/dist/main.es227.js +0 -20
- package/dist/main.es228.js +0 -20
- package/dist/main.es229.js +0 -23
- package/dist/main.es23.js +0 -169
- package/dist/main.es230.js +0 -23
- package/dist/main.es231.js +0 -25
- package/dist/main.es232.js +0 -38
- package/dist/main.es233.js +0 -30
- package/dist/main.es234.js +0 -28
- package/dist/main.es235.js +0 -23
- package/dist/main.es236.js +0 -22
- package/dist/main.es237.js +0 -28
- package/dist/main.es238.js +0 -23
- package/dist/main.es239.js +0 -18
- package/dist/main.es24.js +0 -201
- package/dist/main.es240.js +0 -23
- package/dist/main.es241.js +0 -25
- package/dist/main.es242.js +0 -23
- package/dist/main.es243.js +0 -23
- package/dist/main.es244.js +0 -23
- package/dist/main.es245.js +0 -23
- package/dist/main.es246.js +0 -23
- package/dist/main.es247.js +0 -23
- package/dist/main.es248.js +0 -23
- package/dist/main.es249.js +0 -23
- package/dist/main.es25.js +0 -55
- package/dist/main.es250.js +0 -30
- package/dist/main.es251.js +0 -23
- package/dist/main.es252.js +0 -23
- package/dist/main.es253.js +0 -28
- package/dist/main.es254.js +0 -23
- package/dist/main.es255.js +0 -23
- package/dist/main.es256.js +0 -28
- package/dist/main.es257.js +0 -33
- package/dist/main.es258.js +0 -28
- package/dist/main.es259.js +0 -28
- package/dist/main.es26.js +0 -12
- package/dist/main.es260.js +0 -23
- package/dist/main.es261.js +0 -25
- package/dist/main.es262.js +0 -28
- package/dist/main.es263.js +0 -30
- package/dist/main.es264.js +0 -23
- package/dist/main.es265.js +0 -23
- package/dist/main.es266.js +0 -23
- package/dist/main.es267.js +0 -23
- package/dist/main.es268.js +0 -28
- package/dist/main.es269.js +0 -252
- package/dist/main.es27.js +0 -6
- package/dist/main.es270.js +0 -22
- package/dist/main.es271.js +0 -25
- package/dist/main.es272.js +0 -7
- package/dist/main.es273.js +0 -383
- package/dist/main.es274.js +0 -54
- package/dist/main.es275.js +0 -15
- package/dist/main.es276.js +0 -64
- package/dist/main.es277.js +0 -4
- package/dist/main.es278.js +0 -4
- package/dist/main.es279.js +0 -4
- package/dist/main.es28.js +0 -103
- package/dist/main.es280.js +0 -4
- package/dist/main.es281.js +0 -4
- package/dist/main.es282.js +0 -4
- package/dist/main.es283.js +0 -4
- package/dist/main.es284.js +0 -4
- package/dist/main.es285.js +0 -4
- package/dist/main.es286.js +0 -4
- package/dist/main.es287.js +0 -4
- package/dist/main.es288.js +0 -4
- package/dist/main.es289.js +0 -4
- package/dist/main.es29.js +0 -62
- package/dist/main.es290.js +0 -4
- package/dist/main.es291.js +0 -4
- package/dist/main.es292.js +0 -4
- package/dist/main.es293.js +0 -4
- package/dist/main.es294.js +0 -4
- package/dist/main.es295.js +0 -4
- package/dist/main.es296.js +0 -4
- package/dist/main.es297.js +0 -4
- package/dist/main.es298.js +0 -4
- package/dist/main.es299.js +0 -4
- package/dist/main.es3.js +0 -70
- package/dist/main.es30.js +0 -69
- package/dist/main.es300.js +0 -4
- package/dist/main.es301.js +0 -4
- package/dist/main.es302.js +0 -4
- package/dist/main.es303.js +0 -4
- package/dist/main.es304.js +0 -4
- package/dist/main.es305.js +0 -4
- package/dist/main.es306.js +0 -4
- package/dist/main.es307.js +0 -4
- package/dist/main.es308.js +0 -4
- package/dist/main.es309.js +0 -4
- package/dist/main.es31.js +0 -801
- package/dist/main.es310.js +0 -4
- package/dist/main.es311.js +0 -4
- package/dist/main.es312.js +0 -4
- package/dist/main.es313.js +0 -4
- package/dist/main.es314.js +0 -4
- package/dist/main.es315.js +0 -4
- package/dist/main.es316.js +0 -4
- package/dist/main.es317.js +0 -4
- package/dist/main.es318.js +0 -4
- package/dist/main.es319.js +0 -4
- package/dist/main.es32.js +0 -127
- package/dist/main.es320.js +0 -4
- package/dist/main.es321.js +0 -4
- package/dist/main.es322.js +0 -4
- package/dist/main.es323.js +0 -4
- package/dist/main.es324.js +0 -4
- package/dist/main.es325.js +0 -4
- package/dist/main.es326.js +0 -4
- package/dist/main.es327.js +0 -4
- package/dist/main.es328.js +0 -4
- package/dist/main.es329.js +0 -4
- package/dist/main.es33.js +0 -4
- package/dist/main.es330.js +0 -4
- package/dist/main.es331.js +0 -4
- package/dist/main.es332.js +0 -4
- package/dist/main.es333.js +0 -4
- package/dist/main.es334.js +0 -4
- package/dist/main.es335.js +0 -4
- package/dist/main.es336.js +0 -4
- package/dist/main.es337.js +0 -4
- package/dist/main.es338.js +0 -4
- package/dist/main.es339.js +0 -4
- package/dist/main.es34.js +0 -29
- package/dist/main.es340.js +0 -4
- package/dist/main.es341.js +0 -4
- package/dist/main.es342.js +0 -4
- package/dist/main.es343.js +0 -4
- package/dist/main.es344.js +0 -4
- package/dist/main.es345.js +0 -4
- package/dist/main.es346.js +0 -4
- package/dist/main.es347.js +0 -4
- package/dist/main.es348.js +0 -4
- package/dist/main.es349.js +0 -4
- package/dist/main.es35.js +0 -34
- package/dist/main.es350.js +0 -4
- package/dist/main.es351.js +0 -4
- package/dist/main.es352.js +0 -4
- package/dist/main.es353.js +0 -4
- package/dist/main.es354.js +0 -4
- package/dist/main.es355.js +0 -4
- package/dist/main.es356.js +0 -4
- package/dist/main.es357.js +0 -4
- package/dist/main.es358.js +0 -4
- package/dist/main.es359.js +0 -4
- package/dist/main.es36.js +0 -36
- package/dist/main.es360.js +0 -4
- package/dist/main.es361.js +0 -4
- package/dist/main.es362.js +0 -4
- package/dist/main.es363.js +0 -4
- package/dist/main.es364.js +0 -4
- package/dist/main.es365.js +0 -4
- package/dist/main.es366.js +0 -4
- package/dist/main.es367.js +0 -4
- package/dist/main.es368.js +0 -4
- package/dist/main.es369.js +0 -4
- package/dist/main.es37.js +0 -41
- package/dist/main.es370.js +0 -4
- package/dist/main.es371.js +0 -4
- package/dist/main.es372.js +0 -4
- package/dist/main.es373.js +0 -4
- package/dist/main.es374.js +0 -4
- package/dist/main.es375.js +0 -4
- package/dist/main.es376.js +0 -4
- package/dist/main.es377.js +0 -4
- package/dist/main.es378.js +0 -4
- package/dist/main.es379.js +0 -4
- package/dist/main.es38.js +0 -35
- package/dist/main.es380.js +0 -4
- package/dist/main.es381.js +0 -4
- package/dist/main.es382.js +0 -4
- package/dist/main.es383.js +0 -4
- package/dist/main.es384.js +0 -4
- package/dist/main.es385.js +0 -4
- package/dist/main.es386.js +0 -4
- package/dist/main.es387.js +0 -4
- package/dist/main.es388.js +0 -4
- package/dist/main.es389.js +0 -4
- package/dist/main.es39.js +0 -20
- package/dist/main.es390.js +0 -4
- package/dist/main.es391.js +0 -4
- package/dist/main.es392.js +0 -4
- package/dist/main.es393.js +0 -4
- package/dist/main.es394.js +0 -4
- package/dist/main.es395.js +0 -4
- package/dist/main.es396.js +0 -4
- package/dist/main.es397.js +0 -4
- package/dist/main.es398.js +0 -4
- package/dist/main.es399.js +0 -4
- package/dist/main.es4.js +0 -19
- package/dist/main.es40.js +0 -20
- package/dist/main.es400.js +0 -4
- package/dist/main.es401.js +0 -4
- package/dist/main.es402.js +0 -4
- package/dist/main.es403.js +0 -4
- package/dist/main.es404.js +0 -4
- package/dist/main.es405.js +0 -4
- package/dist/main.es406.js +0 -4
- package/dist/main.es407.js +0 -4
- package/dist/main.es408.js +0 -4
- package/dist/main.es409.js +0 -4
- package/dist/main.es41.js +0 -25
- package/dist/main.es410.js +0 -4
- package/dist/main.es411.js +0 -4
- package/dist/main.es412.js +0 -4
- package/dist/main.es413.js +0 -4
- package/dist/main.es414.js +0 -4
- package/dist/main.es415.js +0 -4
- package/dist/main.es416.js +0 -4
- package/dist/main.es417.js +0 -4
- package/dist/main.es418.js +0 -4
- package/dist/main.es419.js +0 -4
- package/dist/main.es42.js +0 -28
- package/dist/main.es420.js +0 -4
- package/dist/main.es421.js +0 -4
- package/dist/main.es422.js +0 -4
- package/dist/main.es423.js +0 -4
- package/dist/main.es424.js +0 -4
- package/dist/main.es425.js +0 -4
- package/dist/main.es426.js +0 -4
- package/dist/main.es427.js +0 -4
- package/dist/main.es428.js +0 -4
- package/dist/main.es429.js +0 -4
- package/dist/main.es43.js +0 -23
- package/dist/main.es430.js +0 -4
- package/dist/main.es431.js +0 -4
- package/dist/main.es432.js +0 -4
- package/dist/main.es433.js +0 -4
- package/dist/main.es434.js +0 -4
- package/dist/main.es435.js +0 -4
- package/dist/main.es436.js +0 -4
- package/dist/main.es437.js +0 -4
- package/dist/main.es438.js +0 -4
- package/dist/main.es439.js +0 -4
- package/dist/main.es44.js +0 -44
- package/dist/main.es440.js +0 -4
- package/dist/main.es441.js +0 -4
- package/dist/main.es442.js +0 -4
- package/dist/main.es443.js +0 -4
- package/dist/main.es444.js +0 -4
- package/dist/main.es445.js +0 -4
- package/dist/main.es446.js +0 -4
- package/dist/main.es447.js +0 -4
- package/dist/main.es448.js +0 -4
- package/dist/main.es449.js +0 -4
- package/dist/main.es45.js +0 -38
- package/dist/main.es450.js +0 -4
- package/dist/main.es451.js +0 -4
- package/dist/main.es452.js +0 -4
- package/dist/main.es453.js +0 -4
- package/dist/main.es454.js +0 -4
- package/dist/main.es455.js +0 -4
- package/dist/main.es456.js +0 -4
- package/dist/main.es457.js +0 -4
- package/dist/main.es458.js +0 -4
- package/dist/main.es459.js +0 -4
- package/dist/main.es46.js +0 -23
- package/dist/main.es460.js +0 -4
- package/dist/main.es461.js +0 -4
- package/dist/main.es462.js +0 -4
- package/dist/main.es463.js +0 -4
- package/dist/main.es464.js +0 -4
- package/dist/main.es465.js +0 -4
- package/dist/main.es466.js +0 -4
- package/dist/main.es467.js +0 -4
- package/dist/main.es468.js +0 -4
- package/dist/main.es469.js +0 -4
- package/dist/main.es47.js +0 -23
- package/dist/main.es470.js +0 -4
- package/dist/main.es471.js +0 -4
- package/dist/main.es472.js +0 -4
- package/dist/main.es473.js +0 -4
- package/dist/main.es474.js +0 -4
- package/dist/main.es475.js +0 -4
- package/dist/main.es476.js +0 -4
- package/dist/main.es477.js +0 -4
- package/dist/main.es478.js +0 -4
- package/dist/main.es479.js +0 -4
- package/dist/main.es48.js +0 -24
- package/dist/main.es480.js +0 -4
- package/dist/main.es481.js +0 -4
- package/dist/main.es482.js +0 -4
- package/dist/main.es483.js +0 -4
- package/dist/main.es484.js +0 -4
- package/dist/main.es485.js +0 -4
- package/dist/main.es486.js +0 -4
- package/dist/main.es487.js +0 -4
- package/dist/main.es488.js +0 -4
- package/dist/main.es489.js +0 -4
- package/dist/main.es49.js +0 -35
- package/dist/main.es490.js +0 -4
- package/dist/main.es491.js +0 -4
- package/dist/main.es492.js +0 -4
- package/dist/main.es493.js +0 -4
- package/dist/main.es494.js +0 -4
- package/dist/main.es495.js +0 -4
- package/dist/main.es496.js +0 -4
- package/dist/main.es497.js +0 -4
- package/dist/main.es498.js +0 -4
- package/dist/main.es499.js +0 -4
- package/dist/main.es5.js +0 -586
- package/dist/main.es50.js +0 -30
- package/dist/main.es500.js +0 -4
- package/dist/main.es501.js +0 -4
- package/dist/main.es502.js +0 -4
- package/dist/main.es503.js +0 -4
- package/dist/main.es504.js +0 -4
- package/dist/main.es505.js +0 -4
- package/dist/main.es506.js +0 -4
- package/dist/main.es507.js +0 -4
- package/dist/main.es508.js +0 -4
- package/dist/main.es509.js +0 -4
- package/dist/main.es51.js +0 -34
- package/dist/main.es510.js +0 -4
- package/dist/main.es511.js +0 -88
- package/dist/main.es52.js +0 -20
- package/dist/main.es53.js +0 -20
- package/dist/main.es54.js +0 -23
- package/dist/main.es55.js +0 -28
- package/dist/main.es56.js +0 -28
- package/dist/main.es57.js +0 -23
- package/dist/main.es58.js +0 -25
- package/dist/main.es59.js +0 -24
- package/dist/main.es6.js +0 -5872
- package/dist/main.es60.js +0 -23
- package/dist/main.es61.js +0 -23
- package/dist/main.es62.js +0 -23
- package/dist/main.es63.js +0 -23
- package/dist/main.es64.js +0 -23
- package/dist/main.es65.js +0 -20
- package/dist/main.es66.js +0 -23
- package/dist/main.es67.js +0 -23
- package/dist/main.es68.js +0 -21
- package/dist/main.es69.js +0 -20
- package/dist/main.es7.js +0 -1904
- package/dist/main.es70.js +0 -23
- package/dist/main.es71.js +0 -28
- package/dist/main.es72.js +0 -28
- package/dist/main.es73.js +0 -23
- package/dist/main.es74.js +0 -23
- package/dist/main.es75.js +0 -23
- package/dist/main.es76.js +0 -23
- package/dist/main.es77.js +0 -31
- package/dist/main.es78.js +0 -23
- package/dist/main.es79.js +0 -33
- package/dist/main.es8.js +0 -42
- package/dist/main.es80.js +0 -30
- package/dist/main.es81.js +0 -23
- package/dist/main.es82.js +0 -22
- package/dist/main.es83.js +0 -25
- package/dist/main.es84.js +0 -28
- package/dist/main.es85.js +0 -35
- package/dist/main.es86.js +0 -23
- package/dist/main.es87.js +0 -23
- package/dist/main.es88.js +0 -33
- package/dist/main.es89.js +0 -20
- package/dist/main.es9.js +0 -4
- package/dist/main.es90.js +0 -28
- package/dist/main.es91.js +0 -28
- package/dist/main.es92.js +0 -23
- package/dist/main.es93.js +0 -23
- package/dist/main.es94.js +0 -24
- package/dist/main.es95.js +0 -28
- package/dist/main.es96.js +0 -28
- package/dist/main.es97.js +0 -23
- package/dist/main.es98.js +0 -23
- package/dist/main.es99.js +0 -28
- package/dist/style.css +0 -1
- package/src/assets/svgIcons/arrow_down_unfilled.svg +0 -4
- package/src/assets/svgIcons/arrow_up_unfilled.svg +0 -4
- package/src/assets/svgIcons/customer.svg +0 -3
- package/src/assets/svgIcons/efs.svg +0 -5
- package/src/assets/svgIcons/heat_pump.svg +0 -5
- package/src/assets/svgIcons/heating_system.svg +0 -3
- package/src/assets/svgIcons/k2.svg +0 -4
- package/src/assets/svgIcons/vdv.svg +0 -5
@@ -2,34 +2,19 @@
|
|
2
2
|
<PageContainer>
|
3
3
|
<ButtonWrapper
|
4
4
|
:app-theme="appTheme"
|
5
|
-
:button-size="buttonSize"
|
6
5
|
:custom-color="customColor"
|
7
6
|
:is-active="isActive"
|
8
7
|
:is-disabled="isDisabled"
|
9
8
|
:min-width="minWidth"
|
10
|
-
:type="type"
|
11
|
-
:variant="variant"
|
12
9
|
>
|
13
|
-
<IconContainer
|
14
|
-
:app-theme="appTheme"
|
15
|
-
:button-size="buttonSize"
|
16
|
-
:type="type"
|
17
|
-
:variant="variant"
|
18
|
-
>
|
10
|
+
<IconContainer :width="height">
|
19
11
|
<Icon
|
20
|
-
:color="
|
21
|
-
iconColor ||
|
22
|
-
theme.mainButton[appTheme][type][variant].default.textColor
|
23
|
-
"
|
24
|
-
:hovered-color="
|
25
|
-
iconColor ||
|
26
|
-
theme.mainButton[appTheme][type][variant].default.textColor
|
27
|
-
"
|
12
|
+
:color="fontColor ? fontColor : theme.colors.white"
|
28
13
|
:name="iconName"
|
29
14
|
size="14px"
|
30
15
|
/>
|
31
16
|
</IconContainer>
|
32
|
-
<ButtonContainer :
|
17
|
+
<ButtonContainer :font-color="fontColor" :font-size="fontSize">
|
33
18
|
{{ text }}
|
34
19
|
</ButtonContainer>
|
35
20
|
</ButtonWrapper>
|
@@ -46,6 +31,7 @@
|
|
46
31
|
// iconName="external_icon"
|
47
32
|
// fontColor="white"
|
48
33
|
// fontSize="12px"
|
34
|
+
// height="24px"
|
49
35
|
// />
|
50
36
|
|
51
37
|
import Icon from '../../icon'
|
@@ -55,107 +41,67 @@
|
|
55
41
|
const PageContainer = styled.div``
|
56
42
|
|
57
43
|
const ButtonAttrs = {
|
58
|
-
type: String,
|
59
44
|
isDisabled: Boolean,
|
60
45
|
minWidth: String,
|
61
46
|
customColor: String,
|
62
|
-
buttonSize: String,
|
63
|
-
variant: String,
|
64
47
|
appTheme: String,
|
65
48
|
isActive: Boolean,
|
66
49
|
}
|
67
50
|
const ButtonWrapper = styled('div', ButtonAttrs)`
|
68
51
|
display: grid;
|
69
52
|
grid-template-columns: auto 1fr;
|
70
|
-
font-size: ${(props) =>
|
71
|
-
props.theme?.mainButton?.size?.[props.buttonSize]?.fontSize};
|
72
|
-
color: ${(props) =>
|
73
|
-
props.isDisabled
|
74
|
-
? props.theme.mainButton[props.appTheme][props.type][props.variant]
|
75
|
-
.disabled.textColor
|
76
|
-
: props.customColor
|
77
|
-
? props.theme.colors.black
|
78
|
-
: props.theme.mainButton[props.appTheme][props.type][props.variant]
|
79
|
-
.default.textColor};
|
80
53
|
background-color: ${(props) =>
|
81
54
|
props.isDisabled
|
82
|
-
? props.theme.
|
83
|
-
.disabled.backgroundColor
|
55
|
+
? props.theme.colors.disabled
|
84
56
|
: props.customColor
|
85
|
-
? props.customColor
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
? props.theme.mainButton[props.appTheme][props.type][props.variant]
|
94
|
-
.disabled.borderColor
|
95
|
-
: props.customColor
|
96
|
-
? props.customColor
|
97
|
-
: props.theme.mainButton[props.appTheme][props.type][props.variant]
|
98
|
-
.default.borderColor
|
99
|
-
return borderValue ? '1px solid ' + borderValue : 'none'
|
100
|
-
}};
|
57
|
+
? props.theme.colors[props.customColor]
|
58
|
+
? props.theme.colors[props.customColor]
|
59
|
+
: props.customColor
|
60
|
+
: props.appTheme === 'dark'
|
61
|
+
? props.isActive
|
62
|
+
? 'rgba(255, 255, 255, 0.2)'
|
63
|
+
: props.theme.colors.black
|
64
|
+
: props.theme.colors.yellow};
|
101
65
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
102
66
|
user-select: none;
|
103
67
|
border-radius: 4px;
|
104
68
|
overflow: hidden;
|
105
|
-
min-width: ${(props) => props.minWidth
|
69
|
+
min-width: ${(props) => (props.minWidth ? props.minWidth : 'initial')};
|
106
70
|
|
107
71
|
&:hover {
|
108
|
-
|
109
|
-
props.isDisabled
|
110
|
-
? props.theme.mainButton[props.appTheme][props.type][props.variant]
|
111
|
-
.disabled.backgroundColor
|
112
|
-
: props.customColor
|
113
|
-
? props.customColor
|
114
|
-
: props.theme.mainButton[props.appTheme][props.type][props.variant]
|
115
|
-
.hover.backgroundColor};
|
72
|
+
opacity: ${(props) => (props.isDisabled ? '1' : '0.8')};
|
116
73
|
}
|
117
74
|
|
118
75
|
&:active {
|
119
|
-
|
120
|
-
props.isDisabled
|
121
|
-
? props.theme.mainButton[props.appTheme][props.type][props.variant]
|
122
|
-
.disabled.backgroundColor
|
123
|
-
: props.theme.mainButton[props.appTheme][props.type][props.variant]
|
124
|
-
.active.backgroundColor};
|
76
|
+
opacity: 1;
|
125
77
|
}
|
126
78
|
`
|
127
79
|
|
128
80
|
const ButtonContainerAttrs = {
|
129
|
-
|
81
|
+
fontSize: String,
|
82
|
+
fontColor: String,
|
130
83
|
}
|
131
84
|
const ButtonContainer = styled('div', ButtonContainerAttrs)`
|
85
|
+
font-size: ${(props) => props.fontSize};
|
86
|
+
color: ${(props) =>
|
87
|
+
props.fontColor ? props.fontColor : props.theme.colors.white};
|
132
88
|
display: flex;
|
133
89
|
align-items: center;
|
134
90
|
justify-content: center;
|
135
|
-
padding:
|
136
|
-
props.theme?.mainButton?.size?.[props.buttonSize]?.padding};
|
91
|
+
padding: 5px 10px;
|
137
92
|
white-space: nowrap;
|
138
93
|
`
|
139
94
|
|
140
95
|
const IconContainerAttrs = {
|
141
|
-
|
142
|
-
appTheme: String,
|
143
|
-
type: String,
|
144
|
-
variant: String,
|
96
|
+
width: String,
|
145
97
|
}
|
146
98
|
const IconContainer = styled('div', IconContainerAttrs)`
|
147
99
|
display: grid;
|
148
100
|
align-items: center;
|
149
101
|
justify-items: center;
|
150
|
-
width: ${(props) =>
|
151
|
-
|
152
|
-
|
153
|
-
border-right: ${(props) => {
|
154
|
-
const borderColor =
|
155
|
-
props.theme.mainButton[props.appTheme][props.type][props.variant]
|
156
|
-
.default.borderColor
|
157
|
-
return borderColor ? `1px solid ${borderColor}` : 'none'
|
158
|
-
}};
|
102
|
+
width: ${(props) => props.width};
|
103
|
+
background: ${(props) => props.theme.colors.white + '1a'};
|
104
|
+
padding: 5px;
|
159
105
|
`
|
160
106
|
|
161
107
|
export default {
|
@@ -168,26 +114,6 @@
|
|
168
114
|
Icon,
|
169
115
|
},
|
170
116
|
props: {
|
171
|
-
type: {
|
172
|
-
required: false,
|
173
|
-
default: 'primary',
|
174
|
-
type: String,
|
175
|
-
},
|
176
|
-
variant: {
|
177
|
-
required: false,
|
178
|
-
default: 'main',
|
179
|
-
type: String,
|
180
|
-
},
|
181
|
-
themeType: {
|
182
|
-
type: String,
|
183
|
-
default: 'light',
|
184
|
-
required: false,
|
185
|
-
},
|
186
|
-
buttonSize: {
|
187
|
-
type: String,
|
188
|
-
default: 'medium',
|
189
|
-
required: false,
|
190
|
-
},
|
191
117
|
isDisabled: {
|
192
118
|
required: false,
|
193
119
|
default: false,
|
@@ -211,7 +137,7 @@
|
|
211
137
|
required: true,
|
212
138
|
type: String,
|
213
139
|
},
|
214
|
-
|
140
|
+
fontColor: {
|
215
141
|
required: false,
|
216
142
|
default: null,
|
217
143
|
type: String,
|
@@ -231,20 +157,16 @@
|
|
231
157
|
default: false,
|
232
158
|
type: Boolean,
|
233
159
|
},
|
160
|
+
height: {
|
161
|
+
required: false,
|
162
|
+
type: String,
|
163
|
+
default: '',
|
164
|
+
},
|
234
165
|
},
|
235
166
|
data() {
|
236
167
|
return {
|
237
168
|
theme: Theme,
|
238
169
|
}
|
239
170
|
},
|
240
|
-
// computed: {
|
241
|
-
// getIconColor() {
|
242
|
-
// console.log(this.theme[this.themeType][this.type][this.variant])
|
243
|
-
// return (
|
244
|
-
// this.iconColor ||
|
245
|
-
// this.theme[this.themeType][this.type][this.variant].textColor
|
246
|
-
// )
|
247
|
-
// },
|
248
|
-
// },
|
249
171
|
}
|
250
172
|
</script>
|
@@ -2,25 +2,18 @@
|
|
2
2
|
<PageContainer>
|
3
3
|
<ButtonContainer
|
4
4
|
:id="id"
|
5
|
-
:
|
6
|
-
:button-size="buttonSize"
|
5
|
+
:custom-color="customColor"
|
7
6
|
:data-id="dataId"
|
8
7
|
:data-qa-id="dataQaId"
|
8
|
+
:font-color="fontColor"
|
9
9
|
:height="height"
|
10
10
|
:is-disabled="isDisabled"
|
11
11
|
:min-width="minWidth"
|
12
12
|
:no-wrap="noWrap"
|
13
13
|
:type="type"
|
14
|
-
:variant="variant"
|
15
14
|
>
|
16
15
|
<LabelComponent :has-icon="Boolean(icon)">
|
17
|
-
<Icon
|
18
|
-
v-if="icon"
|
19
|
-
:color="getIconColor"
|
20
|
-
:hovered-color="getIconColor"
|
21
|
-
:name="icon"
|
22
|
-
size="14px"
|
23
|
-
/>
|
16
|
+
<Icon v-if="icon" :name="icon" :color="iconColor" size="14px" />
|
24
17
|
{{ text }}
|
25
18
|
</LabelComponent>
|
26
19
|
</ButtonContainer>
|
@@ -42,7 +35,6 @@
|
|
42
35
|
|
43
36
|
import styled from 'vue3-styled-components'
|
44
37
|
import Icon from '../../icon'
|
45
|
-
import theme from '../../../assets/theme'
|
46
38
|
|
47
39
|
const PageContainer = styled.div``
|
48
40
|
|
@@ -50,39 +42,34 @@
|
|
50
42
|
type: String,
|
51
43
|
isDisabled: Boolean,
|
52
44
|
minWidth: String,
|
45
|
+
customColor: String,
|
46
|
+
fontColor: String,
|
53
47
|
noWrap: Boolean,
|
54
48
|
height: String,
|
55
|
-
variant: String,
|
56
|
-
buttonSize: String,
|
57
|
-
appTheme: String,
|
58
49
|
}
|
59
50
|
const ButtonContainer = styled('div', ButtonAttrs)`
|
60
51
|
display: flex;
|
61
52
|
justify-content: center;
|
62
|
-
padding:
|
63
|
-
|
64
|
-
font-size: ${(props) =>
|
65
|
-
props.theme?.mainButton?.size?.[props.buttonSize]?.fontSize};
|
53
|
+
padding: 7px 15px;
|
54
|
+
font-size: 14px;
|
66
55
|
color: ${(props) =>
|
67
56
|
props.isDisabled
|
68
|
-
? props.theme.
|
69
|
-
|
70
|
-
|
71
|
-
|
57
|
+
? props.theme.colors.white
|
58
|
+
: props.fontColor
|
59
|
+
? props.fontColor
|
60
|
+
: props.theme.colors.white};
|
72
61
|
background-color: ${(props) =>
|
73
62
|
props.isDisabled
|
74
|
-
? props.theme.
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
? props.theme.
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
return borderValue ? '1px solid ' + borderValue : 'none'
|
85
|
-
}};
|
63
|
+
? props.theme.colors.disabled
|
64
|
+
: props.customColor
|
65
|
+
? props.customColor
|
66
|
+
: props.type === 'primary'
|
67
|
+
? props.theme.colors.black
|
68
|
+
: props.type === 'secondary'
|
69
|
+
? props.theme.colors.grey3
|
70
|
+
: props.type === 'cancel'
|
71
|
+
? props.theme.colors.red
|
72
|
+
: props.theme.colors.black};
|
86
73
|
border-radius: 4px;
|
87
74
|
text-align: center;
|
88
75
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
@@ -92,21 +79,11 @@
|
|
92
79
|
height: ${(props) => props.height};
|
93
80
|
|
94
81
|
&:hover {
|
95
|
-
|
96
|
-
props.isDisabled
|
97
|
-
? props.theme.mainButton[props.appTheme][props.type][props.variant]
|
98
|
-
.disabled.backgroundColor
|
99
|
-
: props.theme.mainButton[props.appTheme][props.type][props.variant]
|
100
|
-
.hover.backgroundColor};
|
82
|
+
opacity: ${(props) => (props.isDisabled ? '1' : '0.8')};
|
101
83
|
}
|
102
84
|
|
103
85
|
&:active {
|
104
|
-
|
105
|
-
props.isDisabled
|
106
|
-
? props.theme.mainButton[props.appTheme][props.type][props.variant]
|
107
|
-
.disabled.backgroundColor
|
108
|
-
: props.theme.mainButton[props.appTheme][props.type][props.variant]
|
109
|
-
.active.backgroundColor};
|
86
|
+
opacity: 1;
|
110
87
|
}
|
111
88
|
`
|
112
89
|
|
@@ -132,12 +109,7 @@
|
|
132
109
|
props: {
|
133
110
|
type: {
|
134
111
|
required: false,
|
135
|
-
default: 'primary',
|
136
|
-
type: String,
|
137
|
-
},
|
138
|
-
variant: {
|
139
|
-
required: false,
|
140
|
-
default: 'main', // main, cancel
|
112
|
+
default: 'primary',
|
141
113
|
type: String,
|
142
114
|
},
|
143
115
|
isDisabled: {
|
@@ -159,6 +131,16 @@
|
|
159
131
|
required: true,
|
160
132
|
type: String,
|
161
133
|
},
|
134
|
+
customColor: {
|
135
|
+
required: false,
|
136
|
+
default: null,
|
137
|
+
type: String,
|
138
|
+
},
|
139
|
+
fontColor: {
|
140
|
+
required: false,
|
141
|
+
default: '',
|
142
|
+
type: String,
|
143
|
+
},
|
162
144
|
noWrap: {
|
163
145
|
required: false,
|
164
146
|
default: false,
|
@@ -187,27 +169,6 @@
|
|
187
169
|
type: String,
|
188
170
|
default: '',
|
189
171
|
},
|
190
|
-
appTheme: {
|
191
|
-
type: String,
|
192
|
-
default: 'light',
|
193
|
-
},
|
194
|
-
buttonSize: {
|
195
|
-
type: String,
|
196
|
-
default: 'medium',
|
197
|
-
required: false,
|
198
|
-
},
|
199
|
-
},
|
200
|
-
computed: {
|
201
|
-
theme() {
|
202
|
-
return theme
|
203
|
-
},
|
204
|
-
getIconColor() {
|
205
|
-
return this.isDisabled
|
206
|
-
? this.theme.mainButton[this.appTheme][this.type][this.variant]
|
207
|
-
.disabled.textColor
|
208
|
-
: this.theme.mainButton[this.appTheme][this.type][this.variant]
|
209
|
-
.default.textColor
|
210
|
-
},
|
211
172
|
},
|
212
173
|
}
|
213
174
|
</script>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
const defaultProps = {
|
2
|
+
title: 'Sample Title',
|
3
|
+
infoText: 'Sample Info Text',
|
4
|
+
initialPosition: { top: '0px', left: '0px' },
|
5
|
+
minWidth: '284px',
|
6
|
+
maxWidth: '284px',
|
7
|
+
dragTargets: ['document'],
|
8
|
+
dragBounds: {},
|
9
|
+
sampleBody1:
|
10
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
11
|
+
sampleBody2:
|
12
|
+
'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
13
|
+
sampleFooter: 'Sample footer',
|
14
|
+
}
|
15
|
+
|
16
|
+
export default defaultProps
|
@@ -0,0 +1,99 @@
|
|
1
|
+
import { mount } from '@vue/test-utils'
|
2
|
+
import DraggableCard from '@/components/draggableCard'
|
3
|
+
import defaultProps from './defaultProps'
|
4
|
+
|
5
|
+
jest.mock('@/components/icon/iconCache.mjs', () => ({
|
6
|
+
// need to mock this due to how jest handles import.meta
|
7
|
+
fetchIcon: jest.fn(() => Promise.resolve('mocked-icon-url.svg')),
|
8
|
+
}))
|
9
|
+
|
10
|
+
describe('DraggableCard.vue', () => {
|
11
|
+
it('renders properly with required props', () => {
|
12
|
+
const wrapper = mount(DraggableCard, { props: defaultProps })
|
13
|
+
expect(
|
14
|
+
wrapper.find('[data-test-id="draggable_card_header"]').text()
|
15
|
+
).toContain(defaultProps.title)
|
16
|
+
|
17
|
+
// Expect no footer rendered if not provided
|
18
|
+
const footerElement = wrapper.find('[data-test-id="draggable_card_footer"]')
|
19
|
+
expect(footerElement.exists()).toBe(false)
|
20
|
+
})
|
21
|
+
|
22
|
+
it('renders body slot content correctly', () => {
|
23
|
+
const wrapper = mount(DraggableCard, {
|
24
|
+
props: defaultProps,
|
25
|
+
slots: {
|
26
|
+
body: `
|
27
|
+
<div class="custom_body1">${defaultProps.sampleBody1}</div>
|
28
|
+
<div class="custom_body2">${defaultProps.sampleBody2}</div>
|
29
|
+
`,
|
30
|
+
},
|
31
|
+
})
|
32
|
+
expect(wrapper.find('.custom_body1').exists()).toBe(true)
|
33
|
+
expect(wrapper.text()).toContain(defaultProps.sampleBody1)
|
34
|
+
expect(wrapper.find('.custom_body2').exists()).toBe(true)
|
35
|
+
expect(wrapper.text()).toContain(defaultProps.sampleBody2)
|
36
|
+
})
|
37
|
+
|
38
|
+
it('renders footer slot content correctly', () => {
|
39
|
+
const wrapper = mount(DraggableCard, {
|
40
|
+
props: defaultProps,
|
41
|
+
slots: {
|
42
|
+
footer: `<div class="custom_footer">${defaultProps.sampleFooter}</div>`,
|
43
|
+
},
|
44
|
+
})
|
45
|
+
expect(
|
46
|
+
wrapper.find('[data-test-id="draggable_card_footer"]').exists()
|
47
|
+
).toBe(true)
|
48
|
+
expect(wrapper.find('.custom_footer').exists()).toBe(true)
|
49
|
+
expect(wrapper.text()).toContain(defaultProps.sampleFooter)
|
50
|
+
})
|
51
|
+
|
52
|
+
it('emits "on-close" when close button is clicked', async () => {
|
53
|
+
const wrapper = mount(DraggableCard, { props: defaultProps })
|
54
|
+
await wrapper
|
55
|
+
.find('[data-test-id="draggable_card_close_button"]')
|
56
|
+
.trigger('click')
|
57
|
+
expect(wrapper.emitted('on-close')).toBeTruthy()
|
58
|
+
})
|
59
|
+
|
60
|
+
it('toggles collapse state when arrow icon is clicked', async () => {
|
61
|
+
const wrapper = mount(DraggableCard, {
|
62
|
+
props: { ...defaultProps, isCollapsible: true },
|
63
|
+
})
|
64
|
+
expect(wrapper.vm.isCollapsed).toBe(false)
|
65
|
+
await wrapper
|
66
|
+
.find('[data-test-id="draggable_card_collapse_button"]')
|
67
|
+
.trigger('click')
|
68
|
+
expect(wrapper.vm.isCollapsed).toBe(true)
|
69
|
+
})
|
70
|
+
|
71
|
+
it('handles drag start event', async () => {
|
72
|
+
const wrapper = mount(DraggableCard, { props: defaultProps })
|
73
|
+
await wrapper
|
74
|
+
.find('[data-test-id="draggable_card_drag_icon"]')
|
75
|
+
.trigger('mousedown', { clientX: 100, clientY: 100 })
|
76
|
+
expect(wrapper.vm.isDragging).toBe(true)
|
77
|
+
})
|
78
|
+
|
79
|
+
it('handles drag move event', async () => {
|
80
|
+
const wrapper = mount(DraggableCard, { props: defaultProps })
|
81
|
+
wrapper.vm.onDragStart(
|
82
|
+
{ preventDefault: () => {}, clientX: 100, clientY: 100 },
|
83
|
+
false
|
84
|
+
)
|
85
|
+
wrapper.vm.onDrag({ preventDefault: () => {}, clientX: 120, clientY: 120 })
|
86
|
+
expect(wrapper.vm.eventCoordinates.x).toBe(120)
|
87
|
+
expect(wrapper.vm.eventCoordinates.y).toBe(120)
|
88
|
+
})
|
89
|
+
|
90
|
+
it('handles drag end event', async () => {
|
91
|
+
const wrapper = mount(DraggableCard, { props: defaultProps })
|
92
|
+
wrapper.vm.onDragStart(
|
93
|
+
{ preventDefault: () => {}, clientX: 100, clientY: 100 },
|
94
|
+
false
|
95
|
+
)
|
96
|
+
wrapper.vm.onDragEnd()
|
97
|
+
expect(wrapper.vm.isDragging).toBe(false)
|
98
|
+
})
|
99
|
+
})
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import defaultProps from './defaultProps'
|
2
|
+
import DraggableCard from './index.vue'
|
3
|
+
import styled from 'vue3-styled-components'
|
4
|
+
import theme from '@/assets/theme'
|
5
|
+
|
6
|
+
export default {
|
7
|
+
title: 'DraggableCard',
|
8
|
+
component: DraggableCard,
|
9
|
+
tags: ['autodocs'],
|
10
|
+
}
|
11
|
+
|
12
|
+
const TextContainer = styled.div`
|
13
|
+
font-family: ${theme.fonts.mainFont};
|
14
|
+
color: ${theme.colors.white};
|
15
|
+
font-weight: 400;
|
16
|
+
font-size: 14px;
|
17
|
+
line-height: 21px;
|
18
|
+
letter-spacing: 0%;
|
19
|
+
`
|
20
|
+
|
21
|
+
const CompleteTemplate = (args) => {
|
22
|
+
return {
|
23
|
+
components: { DraggableCard, TextContainer },
|
24
|
+
setup() {
|
25
|
+
return { args }
|
26
|
+
},
|
27
|
+
template: `
|
28
|
+
<DraggableCard v-bind="args">
|
29
|
+
<template #body>
|
30
|
+
<TextContainer>{{ args.sampleBody1 }}</TextContainer>
|
31
|
+
<TextContainer>{{ args.sampleBody2 }}</TextContainer>
|
32
|
+
</template>
|
33
|
+
<template #footer>
|
34
|
+
<TextContainer>{{ args.sampleFooter }}</TextContainer>
|
35
|
+
</template>
|
36
|
+
</DraggableCard>
|
37
|
+
`,
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
export const Default = CompleteTemplate.bind({})
|
42
|
+
Default.args = {
|
43
|
+
...defaultProps,
|
44
|
+
}
|
45
|
+
|
46
|
+
export const NotCollapsible = CompleteTemplate.bind({})
|
47
|
+
NotCollapsible.args = {
|
48
|
+
...defaultProps,
|
49
|
+
isCollapsible: false,
|
50
|
+
}
|
51
|
+
|
52
|
+
export const AdjustWidth = CompleteTemplate.bind({})
|
53
|
+
AdjustWidth.args = {
|
54
|
+
...defaultProps,
|
55
|
+
minWidth: '100px',
|
56
|
+
maxWidth: '500px',
|
57
|
+
}
|
58
|
+
|
59
|
+
const NoFooterTemplate = (args) => {
|
60
|
+
return {
|
61
|
+
components: { DraggableCard, TextContainer },
|
62
|
+
setup() {
|
63
|
+
return { args }
|
64
|
+
},
|
65
|
+
template: `
|
66
|
+
<DraggableCard v-bind="args">
|
67
|
+
<template #body>
|
68
|
+
<TextContainer>{{ args.sampleBody1 }}</TextContainer>
|
69
|
+
<TextContainer>{{ args.sampleBody2 }}</TextContainer>
|
70
|
+
</template>
|
71
|
+
</DraggableCard>
|
72
|
+
`,
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
export const NoFooter = NoFooterTemplate.bind({})
|
77
|
+
NoFooter.args = {
|
78
|
+
...defaultProps,
|
79
|
+
}
|