@eturnity/eturnity_reusable_components 8.13.13-EPDM-14085.0 → 8.13.13-EPDM-9631.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -29
- package/package.json +85 -85
- package/src/App.vue +30 -30
- package/src/Test.vue +64 -64
- package/src/assets/icons/arrow_down.svg +3 -3
- package/src/assets/icons/arrow_up_red.svg +3 -3
- package/src/assets/icons/black_spinner.svg +35 -35
- package/src/assets/icons/delete_icon.svg +11 -11
- package/src/assets/icons/delete_icon_gray.svg +11 -11
- package/src/assets/icons/drag_icon.svg +8 -8
- package/src/assets/icons/external_icon.svg +6 -6
- package/src/assets/icons/language_icon.svg +6 -6
- package/src/assets/icons/pdf_icon.svg +6 -6
- package/src/assets/icons/plus_button.svg +4 -4
- package/src/assets/icons/search_icon_black.svg +3 -3
- package/src/assets/icons/subposition_icon.svg +3 -3
- package/src/assets/icons/subposition_marker.svg +3 -3
- package/src/assets/icons/warning_icon.svg +3 -3
- package/src/assets/svgIcons/2d_active.svg +7 -7
- package/src/assets/svgIcons/2d_inactive.svg +8 -8
- package/src/assets/svgIcons/3d_active.svg +7 -7
- package/src/assets/svgIcons/3d_inactive.svg +8 -8
- package/src/assets/svgIcons/_readme.md +7 -7
- package/src/assets/svgIcons/accept.svg +5 -5
- package/src/assets/svgIcons/activate_panels_active.svg +22 -22
- package/src/assets/svgIcons/activate_panels_inactive.svg +20 -20
- package/src/assets/svgIcons/add_icon-1.svg +3 -3
- package/src/assets/svgIcons/add_icon.svg +4 -4
- package/src/assets/svgIcons/address_book.svg +3 -3
- package/src/assets/svgIcons/adjust_roof.svg +6 -6
- package/src/assets/svgIcons/after_sale_as_a_service.svg +6 -6
- package/src/assets/svgIcons/all_good.svg +3 -3
- package/src/assets/svgIcons/angle_active.svg +5 -5
- package/src/assets/svgIcons/angle_inactive.svg +4 -4
- package/src/assets/svgIcons/area_active.svg +11 -11
- package/src/assets/svgIcons/area_inactive.svg +26 -26
- package/src/assets/svgIcons/areas_tool.svg +14 -14
- package/src/assets/svgIcons/arrow_down.svg +3 -3
- package/src/assets/svgIcons/arrow_down_unfilled.svg +4 -4
- package/src/assets/svgIcons/arrow_left.svg +4 -4
- package/src/assets/svgIcons/arrow_right.svg +4 -4
- package/src/assets/svgIcons/arrow_up.svg +3 -3
- package/src/assets/svgIcons/arrow_up_unfilled.svg +4 -4
- package/src/assets/svgIcons/attachment.svg +3 -3
- package/src/assets/svgIcons/base_layer.svg +3 -3
- package/src/assets/svgIcons/battery.svg +3 -3
- package/src/assets/svgIcons/bell.svg +3 -3
- package/src/assets/svgIcons/bell_alt.svg +3 -3
- package/src/assets/svgIcons/bexio.svg +4 -4
- package/src/assets/svgIcons/bold.svg +3 -3
- package/src/assets/svgIcons/bom.svg +3 -3
- package/src/assets/svgIcons/bom_generation.svg +10 -10
- package/src/assets/svgIcons/bookmaker.svg +3 -3
- package/src/assets/svgIcons/bubble.svg +3 -3
- package/src/assets/svgIcons/bug.svg +5 -5
- package/src/assets/svgIcons/buildings.svg +55 -55
- package/src/assets/svgIcons/bullet_list.svg +8 -8
- package/src/assets/svgIcons/calendar.svg +7 -7
- package/src/assets/svgIcons/calendar_icon.svg +7 -7
- package/src/assets/svgIcons/call.svg +3 -3
- package/src/assets/svgIcons/camera.svg +3 -3
- package/src/assets/svgIcons/car.svg +3 -3
- package/src/assets/svgIcons/cart.svg +3 -3
- package/src/assets/svgIcons/charger_icon_white.svg +44 -44
- package/src/assets/svgIcons/checkbox.svg +3 -3
- package/src/assets/svgIcons/checkmark.svg +3 -3
- package/src/assets/svgIcons/checkmark_white.svg +4 -4
- package/src/assets/svgIcons/clear_formatting.svg +7 -7
- package/src/assets/svgIcons/clenergy.svg +3 -3
- package/src/assets/svgIcons/clickable_info.svg +4 -4
- package/src/assets/svgIcons/clickable_info_white.svg +5 -5
- package/src/assets/svgIcons/clip.svg +3 -3
- package/src/assets/svgIcons/clock.svg +17 -17
- package/src/assets/svgIcons/clock_full.svg +3 -3
- package/src/assets/svgIcons/close.svg +4 -4
- package/src/assets/svgIcons/co_branding.svg +5 -5
- package/src/assets/svgIcons/collapse.svg +4 -4
- package/src/assets/svgIcons/collapse_all.svg +3 -3
- package/src/assets/svgIcons/collections.svg +3 -3
- package/src/assets/svgIcons/component_library.svg +7 -7
- package/src/assets/svgIcons/consumption_tariffs.svg +43 -43
- package/src/assets/svgIcons/context_menu-1.svg +6 -6
- package/src/assets/svgIcons/context_menu-2.svg +5 -5
- package/src/assets/svgIcons/context_menu.svg +5 -5
- package/src/assets/svgIcons/context_menu_tabs.svg +5 -5
- package/src/assets/svgIcons/cross.svg +4 -4
- package/src/assets/svgIcons/current_variant.svg +4 -4
- package/src/assets/svgIcons/customer.svg +3 -3
- package/src/assets/svgIcons/dashboard.svg +3 -3
- package/src/assets/svgIcons/data_transfer.svg +3 -3
- package/src/assets/svgIcons/deadline.svg +4 -4
- package/src/assets/svgIcons/deal_flow.svg +3 -3
- package/src/assets/svgIcons/delete.svg +4 -4
- package/src/assets/svgIcons/delete_area_active.svg +16 -16
- package/src/assets/svgIcons/delete_area_inactive.svg +15 -15
- package/src/assets/svgIcons/direction_active-1.svg +12 -12
- package/src/assets/svgIcons/direction_active.svg +5 -5
- package/src/assets/svgIcons/direction_arrow.svg +4 -4
- package/src/assets/svgIcons/direction_inactive.svg +4 -4
- package/src/assets/svgIcons/dislike.svg +3 -3
- package/src/assets/svgIcons/distance_tool.svg +8 -8
- package/src/assets/svgIcons/distances_active.svg +9 -9
- package/src/assets/svgIcons/distances_inactive.svg +8 -8
- package/src/assets/svgIcons/distort_tool.svg +10 -10
- package/src/assets/svgIcons/distort_tool2.svg +16 -16
- package/src/assets/svgIcons/document.svg +3 -3
- package/src/assets/svgIcons/documents.svg +3 -3
- package/src/assets/svgIcons/downarrow.svg +3 -3
- package/src/assets/svgIcons/download.svg +4 -4
- package/src/assets/svgIcons/drag_icon.svg +8 -8
- package/src/assets/svgIcons/draggable_corner.svg +5 -5
- package/src/assets/svgIcons/draw_tool.svg +3 -3
- package/src/assets/svgIcons/duplicate-1.svg +8 -8
- package/src/assets/svgIcons/duplicate-2.svg +5 -5
- package/src/assets/svgIcons/duplicate.svg +4 -4
- package/src/assets/svgIcons/e-mobility_configurator.svg +6 -6
- package/src/assets/svgIcons/e_signature.svg +5 -5
- package/src/assets/svgIcons/edit_button.svg +3 -3
- package/src/assets/svgIcons/efs.svg +5 -5
- package/src/assets/svgIcons/electricity_tariff.svg +3 -3
- package/src/assets/svgIcons/email.svg +3 -3
- package/src/assets/svgIcons/ems-1.svg +3 -3
- package/src/assets/svgIcons/ems.svg +3 -3
- package/src/assets/svgIcons/end_of_the_list.svg +5 -5
- package/src/assets/svgIcons/energy_meter.svg +3 -3
- package/src/assets/svgIcons/erase.svg +4 -4
- package/src/assets/svgIcons/erase_white.svg +4 -4
- package/src/assets/svgIcons/expand_all.svg +4 -4
- package/src/assets/svgIcons/export_document.svg +3 -3
- package/src/assets/svgIcons/external_icon.svg +5 -5
- package/src/assets/svgIcons/fav_icon.svg +4 -4
- package/src/assets/svgIcons/finance.svg +3 -3
- package/src/assets/svgIcons/financing_for_pv-1.svg +5 -5
- package/src/assets/svgIcons/financing_for_pv-2.svg +3 -3
- package/src/assets/svgIcons/financing_for_pv.svg +3 -3
- package/src/assets/svgIcons/finish-1.svg +4 -4
- package/src/assets/svgIcons/finish.svg +3 -3
- package/src/assets/svgIcons/flatten.svg +11 -11
- package/src/assets/svgIcons/flatten_roof.svg +20 -20
- package/src/assets/svgIcons/folder.svg +3 -3
- package/src/assets/svgIcons/free_technology.svg +3 -3
- package/src/assets/svgIcons/handle.svg +5 -5
- package/src/assets/svgIcons/heat_calc.svg +7 -7
- package/src/assets/svgIcons/heat_pump.svg +5 -5
- package/src/assets/svgIcons/heating_system.svg +3 -3
- package/src/assets/svgIcons/height_equalize.svg +3 -3
- package/src/assets/svgIcons/height_snap.svg +3 -3
- package/src/assets/svgIcons/house.svg +3 -3
- package/src/assets/svgIcons/house_3d-1.svg +7 -7
- package/src/assets/svgIcons/house_3d.svg +7 -7
- package/src/assets/svgIcons/hybrid.svg +4 -4
- package/src/assets/svgIcons/inclination.svg +2 -2
- package/src/assets/svgIcons/info.svg +3 -3
- package/src/assets/svgIcons/initial_situation.svg +3 -3
- package/src/assets/svgIcons/integrations.svg +3 -3
- package/src/assets/svgIcons/intro-tour-1.svg +3 -3
- package/src/assets/svgIcons/intro-tour.svg +3 -3
- package/src/assets/svgIcons/inverter.svg +3 -3
- package/src/assets/svgIcons/italic.svg +3 -3
- package/src/assets/svgIcons/k2.svg +4 -4
- package/src/assets/svgIcons/key.svg +3 -3
- package/src/assets/svgIcons/lake.svg +29 -29
- package/src/assets/svgIcons/layers_close.svg +4 -4
- package/src/assets/svgIcons/layers_open.svg +4 -4
- package/src/assets/svgIcons/lead_marketplace.svg +6 -6
- package/src/assets/svgIcons/lead_provider.svg +4 -4
- package/src/assets/svgIcons/length_2d.svg +2 -2
- package/src/assets/svgIcons/length_3d.svg +4 -4
- package/src/assets/svgIcons/length_calculator.svg +2 -2
- package/src/assets/svgIcons/length_in_2d_active.svg +12 -12
- package/src/assets/svgIcons/length_in_2d_inctive.svg +13 -13
- package/src/assets/svgIcons/light_bulb.svg +3 -3
- package/src/assets/svgIcons/like.svg +3 -3
- package/src/assets/svgIcons/line_graph.svg +3 -3
- package/src/assets/svgIcons/local_subsidies.svg +18 -18
- package/src/assets/svgIcons/location.svg +3 -3
- package/src/assets/svgIcons/lock.svg +3 -3
- package/src/assets/svgIcons/logout.svg +3 -3
- package/src/assets/svgIcons/loop.svg +3 -3
- package/src/assets/svgIcons/low-vegetation.svg +37 -37
- package/src/assets/svgIcons/lunch.svg +4 -4
- package/src/assets/svgIcons/magic_tool.svg +6 -6
- package/src/assets/svgIcons/map_icon.svg +5 -5
- package/src/assets/svgIcons/map_settings.svg +3 -3
- package/src/assets/svgIcons/margin_tool.svg +4 -4
- package/src/assets/svgIcons/meeting.svg +6 -6
- package/src/assets/svgIcons/module.svg +3 -3
- package/src/assets/svgIcons/move_copy.svg +4 -4
- package/src/assets/svgIcons/move_down.svg +3 -3
- package/src/assets/svgIcons/move_up.svg +3 -3
- package/src/assets/svgIcons/new_area_inactive.svg +11 -11
- package/src/assets/svgIcons/next.svg +4 -4
- package/src/assets/svgIcons/normal-tg.svg +30 -30
- package/src/assets/svgIcons/normal-vegetation.svg +53 -53
- package/src/assets/svgIcons/not_equal_to.svg +3 -3
- package/src/assets/svgIcons/numbered_list.svg +6 -6
- package/src/assets/svgIcons/obstacle_tool.svg +8 -8
- package/src/assets/svgIcons/obstacle_tool_origin.svg +3 -3
- package/src/assets/svgIcons/offset_tool.svg +8 -8
- package/src/assets/svgIcons/open-tg.svg +21 -21
- package/src/assets/svgIcons/optimizer.svg +3 -3
- package/src/assets/svgIcons/outline_tool.svg +11 -11
- package/src/assets/svgIcons/pan_tool.svg +12 -12
- package/src/assets/svgIcons/panels_tool.svg +8 -8
- package/src/assets/svgIcons/pen_tool.svg +4 -4
- package/src/assets/svgIcons/picker_tool.svg +4 -4
- package/src/assets/svgIcons/picture.svg +3 -3
- package/src/assets/svgIcons/pin.svg +5 -5
- package/src/assets/svgIcons/plus_button.svg +4 -4
- package/src/assets/svgIcons/presentation.svg +3 -3
- package/src/assets/svgIcons/previous.svg +4 -4
- package/src/assets/svgIcons/profile-1.svg +4 -4
- package/src/assets/svgIcons/profile.svg +3 -3
- package/src/assets/svgIcons/profitability.svg +3 -3
- package/src/assets/svgIcons/project_analysis.svg +3 -3
- package/src/assets/svgIcons/project_settings.svg +3 -3
- package/src/assets/svgIcons/protected-tg.svg +47 -47
- package/src/assets/svgIcons/pv.svg +3 -3
- package/src/assets/svgIcons/question_mark.svg +3 -3
- package/src/assets/svgIcons/question_mark_white.svg +4 -4
- package/src/assets/svgIcons/quotations.svg +6 -6
- package/src/assets/svgIcons/redo.svg +6 -6
- package/src/assets/svgIcons/reorder_string.svg +3 -3
- package/src/assets/svgIcons/resizer.svg +5 -5
- package/src/assets/svgIcons/roof_layer.svg +3 -3
- package/src/assets/svgIcons/rotate_tool.svg +3 -3
- package/src/assets/svgIcons/rotate_view.svg +5 -5
- package/src/assets/svgIcons/ruler_tool.svg +3 -3
- package/src/assets/svgIcons/run_simulation.svg +3 -3
- package/src/assets/svgIcons/save.svg +3 -3
- package/src/assets/svgIcons/scaling_tool.svg +8 -8
- package/src/assets/svgIcons/sea.svg +34 -34
- package/src/assets/svgIcons/search.svg +3 -3
- package/src/assets/svgIcons/security.svg +3 -3
- package/src/assets/svgIcons/settings.svg +3 -3
- package/src/assets/svgIcons/show_in_a_new_tab.svg +12 -12
- package/src/assets/svgIcons/smartphone.svg +4 -4
- package/src/assets/svgIcons/solar_calc.svg +13 -13
- package/src/assets/svgIcons/solarmarkt.svg +3 -3
- package/src/assets/svgIcons/sorting.svg +4 -4
- package/src/assets/svgIcons/split.svg +12 -12
- package/src/assets/svgIcons/star.svg +3 -3
- package/src/assets/svgIcons/start_of_the_list.svg +5 -5
- package/src/assets/svgIcons/strikethrough.svg +4 -4
- package/src/assets/svgIcons/string_design.svg +5 -5
- package/src/assets/svgIcons/string_directions.svg +10 -10
- package/src/assets/svgIcons/subscriptions.svg +3 -3
- package/src/assets/svgIcons/subsidies-2.svg +3 -3
- package/src/assets/svgIcons/subsidies.svg +3 -3
- package/src/assets/svgIcons/subtract_icon.svg +3 -3
- package/src/assets/svgIcons/suitcase.svg +3 -3
- package/src/assets/svgIcons/summer.svg +3 -3
- package/src/assets/svgIcons/switch_polarity.svg +5 -5
- package/src/assets/svgIcons/template_icon_not_clickable.svg +6 -6
- package/src/assets/svgIcons/transfer.svg +4 -4
- package/src/assets/svgIcons/transparent_warning.svg +4 -4
- package/src/assets/svgIcons/trim_tool.svg +4 -4
- package/src/assets/svgIcons/truck.svg +3 -3
- package/src/assets/svgIcons/underlined.svg +3 -3
- package/src/assets/svgIcons/undo.svg +6 -6
- package/src/assets/svgIcons/uparrow.svg +3 -3
- package/src/assets/svgIcons/update.svg +3 -3
- package/src/assets/svgIcons/upload_avatar-1.svg +12 -12
- package/src/assets/svgIcons/upload_avatar.svg +5 -5
- package/src/assets/svgIcons/upload_image.svg +8 -8
- package/src/assets/svgIcons/upload_image_tool.svg +7 -7
- package/src/assets/svgIcons/variants.svg +3 -3
- package/src/assets/svgIcons/vdv.svg +5 -5
- package/src/assets/svgIcons/vertical_tool.svg +3 -3
- package/src/assets/svgIcons/virtual_storage.svg +3 -3
- package/src/assets/svgIcons/warning.svg +4 -4
- package/src/assets/svgIcons/warning_triangle.svg +3 -3
- package/src/assets/svgIcons/warning_triangle_white.svg +5 -5
- package/src/assets/svgIcons/way.svg +5 -5
- package/src/assets/svgIcons/wifi.svg +3 -3
- package/src/assets/svgIcons/winter.svg +3 -3
- package/src/assets/svgIcons/workflow_template.svg +11 -11
- package/src/assets/tests/__mocks__/iconCache.js +1 -1
- package/src/assets/tests/__mocks__/svgMock.js +1 -1
- package/src/assets/tests/helpers.js +12 -12
- package/src/assets/theme.js +623 -624
- package/src/components/addNewButton/AddNewButton.stories.js +17 -17
- package/src/components/addNewButton/addNewButton.spec.js +23 -23
- package/src/components/addNewButton/index.vue +66 -66
- package/src/components/banner/actionBanner/ActionBanner.stories.js +45 -45
- package/src/components/banner/actionBanner/actionBanner.spec.js +76 -76
- package/src/components/banner/actionBanner/index.vue +86 -86
- package/src/components/banner/banner/Banner.stories.js +64 -64
- package/src/components/banner/banner/banner.spec.js +149 -149
- package/src/components/banner/banner/index.vue +205 -205
- package/src/components/banner/infoBanner/InfoBanner.spec.js +70 -70
- package/src/components/banner/infoBanner/InfoBanner.stories.js +42 -42
- package/src/components/banner/infoBanner/index.vue +97 -97
- package/src/components/banner/notificationBanner/index.vue +131 -131
- package/src/components/buttons/buttonIcon/index.vue +250 -250
- package/src/components/buttons/closeButton/CloseButton.stories.js +25 -25
- package/src/components/buttons/closeButton/index.vue +62 -62
- package/src/components/buttons/mainButton/MainButton.stories.js +51 -51
- package/src/components/buttons/mainButton/index.vue +213 -213
- package/src/components/buttons/mainButton/mainButton.spec.js +35 -35
- package/src/components/card/Card.stories.js +79 -79
- package/src/components/card/card.spec.js +135 -135
- package/src/components/card/index.vue +116 -116
- package/src/components/collapsableInfoText/index.vue +127 -127
- package/src/components/deleteIcon/DeleteIcon.stories.js +29 -29
- package/src/components/deleteIcon/index.vue +78 -78
- package/src/components/draggableInputHandle/index.vue +46 -46
- package/src/components/dropdown/Dropdown.stories.js +53 -53
- package/src/components/dropdown/index.vue +138 -138
- package/src/components/errorMessage/index.vue +64 -64
- package/src/components/filter/filterSettings.vue +670 -670
- package/src/components/filter/index.vue +154 -154
- package/src/components/filter/parentDropdown.vue +91 -91
- package/src/components/icon/Icons.stories.js +31 -31
- package/src/components/icon/icon.spec.js +66 -66
- package/src/components/icon/iconCache.mjs +23 -23
- package/src/components/icon/iconCollection.vue +83 -83
- package/src/components/icon/index.vue +197 -197
- package/src/components/iconWrapper/index.vue +184 -184
- package/src/components/infoCard/InfoCard.stories.js +170 -170
- package/src/components/infoCard/defaultProps.js +7 -7
- package/src/components/infoCard/index.vue +156 -156
- package/src/components/infoCard/infoCard.spec.js +64 -64
- package/src/components/infoLabel/index.vue +63 -63
- package/src/components/infoText/constants.js +4 -4
- package/src/components/infoText/index.vue +645 -645
- package/src/components/infoText/infoText.spec.js +62 -62
- package/src/components/infoText/infoText.stories.js +48 -48
- package/src/components/infoText/placeholder.vue +225 -225
- package/src/components/inputs/checkbox/Checkbox.stories.js +63 -63
- package/src/components/inputs/checkbox/checkbox.spec.js +109 -109
- package/src/components/inputs/checkbox/index.vue +250 -250
- package/src/components/inputs/inputNumber/InputNumber.stories.js +150 -150
- package/src/components/inputs/inputNumber/index.vue +990 -990
- package/src/components/inputs/inputNumberQuestion/index.vue +218 -218
- package/src/components/inputs/inputText/InputText.stories.js +70 -70
- package/src/components/inputs/inputText/index.vue +463 -463
- package/src/components/inputs/inputText/inputText.spec.js +588 -588
- package/src/components/inputs/radioButton/RadioButton.stories.js +77 -77
- package/src/components/inputs/radioButton/defaultProps.js +31 -31
- package/src/components/inputs/radioButton/index.vue +336 -336
- package/src/components/inputs/radioButton/radioButton.spec.js +306 -306
- package/src/components/inputs/searchInput/SearchInput.stories.js +66 -66
- package/src/components/inputs/searchInput/defaultProps.js +12 -12
- package/src/components/inputs/searchInput/index.vue +165 -165
- package/src/components/inputs/searchInput/searchInput.spec.js +64 -64
- package/src/components/inputs/select/index.vue +968 -968
- package/src/components/inputs/select/option/index.vue +164 -164
- package/src/components/inputs/select/select.stories.js +58 -58
- package/src/components/inputs/slider/index.vue +126 -126
- package/src/components/inputs/switchField/index.vue +254 -254
- package/src/components/inputs/textAreaInput/TextAreaInput.stories.js +127 -127
- package/src/components/inputs/textAreaInput/index.vue +204 -204
- package/src/components/inputs/toggle/Toggle.stories.js +77 -77
- package/src/components/inputs/toggle/index.vue +322 -322
- package/src/components/inputs/toggle/toggle.spec.js +102 -102
- package/src/components/label/index.vue +98 -98
- package/src/components/markerItem/index.vue +95 -95
- package/src/components/modals/actionModal/index.vue +64 -64
- package/src/components/modals/infoModal/index.vue +52 -52
- package/src/components/modals/modal/index.vue +200 -200
- package/src/components/modals/modal/modal.stories.js +31 -31
- package/src/components/navigationTabs/index.vue +114 -114
- package/src/components/pageSubtitle/PageSubtitle.stories.js +59 -59
- package/src/components/pageSubtitle/index.vue +78 -78
- package/src/components/pageSubtitle/pageSubtitle.spec.js +46 -46
- package/src/components/pageTitle/PageTitle.stories.js +95 -95
- package/src/components/pageTitle/index.vue +91 -91
- package/src/components/pageTitle/pageTitle.spec.js +46 -46
- package/src/components/pagination/index.vue +148 -148
- package/src/components/panelRangeInfo/index.vue +196 -196
- package/src/components/progressBar/index.vue +125 -125
- package/src/components/projectMarker/index.vue +301 -301
- package/src/components/rangeSlider/Slider.vue +578 -578
- package/src/components/rangeSlider/index.vue +517 -517
- package/src/components/rangeSlider/utils/dom.js +49 -49
- package/src/components/rangeSlider/utils/fns.js +26 -26
- package/src/components/roundTabs/index.vue +107 -107
- package/src/components/selectedOptions/index.vue +462 -462
- package/src/components/selectedOptions/selectedOptions.spec.js +176 -176
- package/src/components/selectedOptions/selectedOptions.stories.js +155 -155
- package/src/components/sideMenu/index.vue +325 -325
- package/src/components/spinner/Spinner.stories.js +34 -34
- package/src/components/spinner/index.vue +129 -129
- package/src/components/spinner/spinner.spec.js +69 -69
- package/src/components/spinnerGif/index.vue +98 -98
- package/src/components/tableDropdown/index.vue +692 -692
- package/src/components/tables/mainTable/exampleNested.vue +328 -328
- package/src/components/tables/mainTable/index.vue +523 -523
- package/src/components/tables/viewTable/index.vue +195 -195
- package/src/components/tabsHeader/index.vue +95 -95
- package/src/components/threeDots/index.vue +413 -413
- package/src/components/videoThumbnail/index.vue +103 -103
- package/src/components/videoThumbnail/videoThumbnail.stories.js +33 -33
- package/src/helpers/currencyMapping.js +28 -28
- package/src/helpers/dateTimeFormatting.js +51 -0
- package/src/helpers/numberConverter.js +103 -103
- package/src/helpers/translateLang.js +128 -128
- package/src/main.js +7 -7
- package/src/mixins/inputValidations.js +97 -97
- package/src/router/dynamicRoutes.js +23 -23
- package/src/stories/Button.stories.js +48 -48
- package/src/stories/Button.vue +52 -52
- package/src/stories/Configure.mdx +364 -364
- package/src/stories/Header.stories.js +41 -41
- package/src/stories/Header.vue +59 -59
- package/src/stories/Page.stories.js +30 -30
- package/src/stories/Page.vue +83 -83
- package/src/stories/button.css +30 -30
- package/src/stories/header.css +32 -32
- package/src/stories/page.css +69 -69
- package/src/utils/index.js +12 -12
- package/src/assets/svgIcons/house_sun.svg +0 -3
- package/src/components/draggableCard/defaultProps.js +0 -16
- package/src/components/draggableCard/draggableCard.spec.js +0 -99
- package/src/components/draggableCard/draggableCard.stories.js +0 -79
- package/src/components/draggableCard/index.vue +0 -354
package/src/stories/page.css
CHANGED
@@ -1,69 +1,69 @@
|
|
1
|
-
.storybook-page {
|
2
|
-
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
3
|
-
font-size: 14px;
|
4
|
-
line-height: 24px;
|
5
|
-
padding: 48px 20px;
|
6
|
-
margin: 0 auto;
|
7
|
-
max-width: 600px;
|
8
|
-
color: #333;
|
9
|
-
}
|
10
|
-
|
11
|
-
.storybook-page h2 {
|
12
|
-
font-weight: 700;
|
13
|
-
font-size: 32px;
|
14
|
-
line-height: 1;
|
15
|
-
margin: 0 0 4px;
|
16
|
-
display: inline-block;
|
17
|
-
vertical-align: top;
|
18
|
-
}
|
19
|
-
|
20
|
-
.storybook-page p {
|
21
|
-
margin: 1em 0;
|
22
|
-
}
|
23
|
-
|
24
|
-
.storybook-page a {
|
25
|
-
text-decoration: none;
|
26
|
-
color: #1ea7fd;
|
27
|
-
}
|
28
|
-
|
29
|
-
.storybook-page ul {
|
30
|
-
padding-left: 30px;
|
31
|
-
margin: 1em 0;
|
32
|
-
}
|
33
|
-
|
34
|
-
.storybook-page li {
|
35
|
-
margin-bottom: 8px;
|
36
|
-
}
|
37
|
-
|
38
|
-
.storybook-page .tip {
|
39
|
-
display: inline-block;
|
40
|
-
border-radius: 1em;
|
41
|
-
font-size: 11px;
|
42
|
-
line-height: 12px;
|
43
|
-
font-weight: 700;
|
44
|
-
background: #e7fdd8;
|
45
|
-
color: #66bf3c;
|
46
|
-
padding: 4px 12px;
|
47
|
-
margin-right: 10px;
|
48
|
-
vertical-align: top;
|
49
|
-
}
|
50
|
-
|
51
|
-
.storybook-page .tip-wrapper {
|
52
|
-
font-size: 13px;
|
53
|
-
line-height: 20px;
|
54
|
-
margin-top: 40px;
|
55
|
-
margin-bottom: 40px;
|
56
|
-
}
|
57
|
-
|
58
|
-
.storybook-page .tip-wrapper svg {
|
59
|
-
display: inline-block;
|
60
|
-
height: 12px;
|
61
|
-
width: 12px;
|
62
|
-
margin-right: 4px;
|
63
|
-
vertical-align: top;
|
64
|
-
margin-top: 3px;
|
65
|
-
}
|
66
|
-
|
67
|
-
.storybook-page .tip-wrapper svg path {
|
68
|
-
fill: #1ea7fd;
|
69
|
-
}
|
1
|
+
.storybook-page {
|
2
|
+
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
3
|
+
font-size: 14px;
|
4
|
+
line-height: 24px;
|
5
|
+
padding: 48px 20px;
|
6
|
+
margin: 0 auto;
|
7
|
+
max-width: 600px;
|
8
|
+
color: #333;
|
9
|
+
}
|
10
|
+
|
11
|
+
.storybook-page h2 {
|
12
|
+
font-weight: 700;
|
13
|
+
font-size: 32px;
|
14
|
+
line-height: 1;
|
15
|
+
margin: 0 0 4px;
|
16
|
+
display: inline-block;
|
17
|
+
vertical-align: top;
|
18
|
+
}
|
19
|
+
|
20
|
+
.storybook-page p {
|
21
|
+
margin: 1em 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
.storybook-page a {
|
25
|
+
text-decoration: none;
|
26
|
+
color: #1ea7fd;
|
27
|
+
}
|
28
|
+
|
29
|
+
.storybook-page ul {
|
30
|
+
padding-left: 30px;
|
31
|
+
margin: 1em 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.storybook-page li {
|
35
|
+
margin-bottom: 8px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.storybook-page .tip {
|
39
|
+
display: inline-block;
|
40
|
+
border-radius: 1em;
|
41
|
+
font-size: 11px;
|
42
|
+
line-height: 12px;
|
43
|
+
font-weight: 700;
|
44
|
+
background: #e7fdd8;
|
45
|
+
color: #66bf3c;
|
46
|
+
padding: 4px 12px;
|
47
|
+
margin-right: 10px;
|
48
|
+
vertical-align: top;
|
49
|
+
}
|
50
|
+
|
51
|
+
.storybook-page .tip-wrapper {
|
52
|
+
font-size: 13px;
|
53
|
+
line-height: 20px;
|
54
|
+
margin-top: 40px;
|
55
|
+
margin-bottom: 40px;
|
56
|
+
}
|
57
|
+
|
58
|
+
.storybook-page .tip-wrapper svg {
|
59
|
+
display: inline-block;
|
60
|
+
height: 12px;
|
61
|
+
width: 12px;
|
62
|
+
margin-right: 4px;
|
63
|
+
vertical-align: top;
|
64
|
+
margin-top: 3px;
|
65
|
+
}
|
66
|
+
|
67
|
+
.storybook-page .tip-wrapper svg path {
|
68
|
+
fill: #1ea7fd;
|
69
|
+
}
|
package/src/utils/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
export function debounce(fn, wait) {
|
2
|
-
let timer
|
3
|
-
return function (...args) {
|
4
|
-
if (timer) {
|
5
|
-
clearTimeout(timer)
|
6
|
-
}
|
7
|
-
const context = this
|
8
|
-
timer = setTimeout(() => {
|
9
|
-
fn.apply(context, args)
|
10
|
-
}, wait)
|
11
|
-
}
|
12
|
-
}
|
1
|
+
export function debounce(fn, wait) {
|
2
|
+
let timer
|
3
|
+
return function (...args) {
|
4
|
+
if (timer) {
|
5
|
+
clearTimeout(timer)
|
6
|
+
}
|
7
|
+
const context = this
|
8
|
+
timer = setTimeout(() => {
|
9
|
+
fn.apply(context, args)
|
10
|
+
}, wait)
|
11
|
+
}
|
12
|
+
}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0.5C8.27614 0.5 8.5 0.723858 8.5 1V2.86667C8.5 3.14281 8.27614 3.36667 8 3.36667C7.72386 3.36667 7.5 3.14281 7.5 2.86667V1C7.5 0.723858 7.72386 0.5 8 0.5ZM0.5 8C0.5 7.72386 0.723858 7.5 1 7.5H2.86667C3.14281 7.5 3.36667 7.72386 3.36667 8C3.36667 8.27614 3.14281 8.5 2.86667 8.5H1C0.723858 8.5 0.5 8.27614 0.5 8ZM12.6333 8C12.6333 7.72386 12.8572 7.5 13.1333 7.5H15C15.2761 7.5 15.5 7.72386 15.5 8C15.5 8.27614 15.2761 8.5 15 8.5H13.1333C12.8572 8.5 12.6333 8.27614 12.6333 8ZM8.99987 10.8145C9.09475 11.0816 9.39061 11.2244 9.64095 11.0915C10.059 10.8696 10.4293 10.5644 10.728 10.1927C11.1343 9.6872 11.3922 9.0787 11.4728 8.43514C11.5535 7.79158 11.4537 7.13827 11.1847 6.54812C10.9156 5.95796 10.4879 5.45417 9.94915 5.09297C9.41045 4.73177 8.78197 4.52736 8.13385 4.50256C7.48573 4.47776 6.84347 4.63353 6.27873 4.9525C5.71399 5.27148 5.24899 5.7411 4.93563 6.30896C4.70526 6.72642 4.56349 7.1849 4.51696 7.65586C4.48909 7.93792 4.73355 8.15738 5.01665 8.14374C5.29975 8.1301 5.51274 7.8874 5.55771 7.60756C5.60274 7.32731 5.69588 7.05561 5.83426 6.80486C6.05573 6.40352 6.38437 6.07162 6.7835 5.84619C7.18262 5.62076 7.63654 5.51066 8.0946 5.52819C8.55265 5.54572 8.99683 5.69019 9.37756 5.94546C9.75829 6.20074 10.0606 6.55679 10.2507 6.97388C10.4409 7.39098 10.5114 7.8527 10.4544 8.30754C10.3974 8.76237 10.2152 9.19242 9.928 9.54971C9.74858 9.77293 9.5326 9.96227 9.29044 10.1103C9.04864 10.2582 8.90499 10.5474 8.99987 10.8145ZM5.17261 9.95833C5.36097 9.79137 5.64409 9.79046 5.83352 9.95621L8.82925 12.5775C8.93776 12.6724 9 12.8096 9 12.9538V14.5C9 14.7761 9.22386 15 9.5 15C9.77614 15 10 14.7761 10 14.5V12.9538C10 12.5212 9.81328 12.1097 9.48776 11.8249L6.49202 9.20363C5.92373 8.70638 5.0744 8.7091 4.5093 9.20998L1.50504 11.8728C1.18385 12.1575 1 12.5662 1 12.9954V14.5C1 14.7761 1.22386 15 1.5 15C1.77614 15 2 14.7761 2 14.5V12.9954C2 12.8523 2.06128 12.7161 2.16835 12.6212L5.17261 9.95833ZM3.40391 2.69668C3.20865 2.50142 2.89206 2.50142 2.6968 2.69668C2.50154 2.89194 2.50154 3.20852 2.6968 3.40379L4.01673 4.72372C4.212 4.91898 4.52858 4.91898 4.72384 4.72372C4.9191 4.52846 4.9191 4.21187 4.72384 4.01661L3.40391 2.69668ZM11.2764 4.01661C11.0811 4.21187 11.0811 4.52846 11.2764 4.72372C11.4716 4.91898 11.7882 4.91898 11.9835 4.72372L13.3034 3.40379C13.4987 3.20852 13.4987 2.89194 13.3034 2.69668C13.1081 2.50142 12.7916 2.50142 12.5963 2.69668L11.2764 4.01661ZM11.9835 11.2762C11.7882 11.081 11.4716 11.081 11.2764 11.2762C11.0811 11.4715 11.0811 11.7881 11.2764 11.9833L12.5963 13.3033C12.7916 13.4985 13.1081 13.4985 13.3034 13.3033C13.4987 13.108 13.4987 12.7914 13.3034 12.5962L11.9835 11.2762Z" fill="black"/>
|
3
|
-
</svg>
|
@@ -1,16 +0,0 @@
|
|
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
|
@@ -1,99 +0,0 @@
|
|
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
|
-
})
|
@@ -1,79 +0,0 @@
|
|
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
|
-
}
|