mediacube-ui-v2 0.0.3 → 0.0.4
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 +21 -5
- package/src/App.vue +8 -0
- package/src/assets/base.css +0 -0
- package/src/assets/fonts/inter/Inter-Bold.woff +0 -0
- package/src/assets/fonts/inter/Inter-Bold.woff2 +0 -0
- package/src/assets/fonts/inter/Inter-Italic.woff +0 -0
- package/src/assets/fonts/inter/Inter-Italic.woff2 +0 -0
- package/src/assets/fonts/inter/Inter-Medium.woff +0 -0
- package/src/assets/fonts/inter/Inter-Medium.woff2 +0 -0
- package/src/assets/fonts/inter/Inter-Regular.woff +0 -0
- package/src/assets/fonts/inter/Inter-Regular.woff2 +0 -0
- package/src/assets/fonts/inter/Inter-SemiBold.woff +0 -0
- package/src/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
- package/src/assets/fonts/inter/inter.css +44 -0
- package/src/assets/icons/a_circle.svg +3 -0
- package/src/assets/icons/access_time.svg +5 -0
- package/src/assets/icons/account_circle.svg +1 -0
- package/src/assets/icons/account_edit.svg +3 -0
- package/src/assets/icons/add.svg +3 -0
- package/src/assets/icons/add_circle.svg +3 -0
- package/src/assets/icons/address.svg +6 -0
- package/src/assets/icons/ads_banner.svg +3 -0
- package/src/assets/icons/album.svg +1 -0
- package/src/assets/icons/alert_solid.svg +3 -0
- package/src/assets/icons/alternate_email.svg +1 -0
- package/src/assets/icons/amocrm.svg +4 -0
- package/src/assets/icons/amper_music.svg +4 -0
- package/src/assets/icons/analytics.svg +3 -0
- package/src/assets/icons/animation_motion.svg +4 -0
- package/src/assets/icons/api.svg +1 -0
- package/src/assets/icons/apple_icon.svg +3 -0
- package/src/assets/icons/applications.svg +3 -0
- package/src/assets/icons/applications_new.svg +3 -0
- package/src/assets/icons/apps.svg +3 -0
- package/src/assets/icons/archive.svg +1 -0
- package/src/assets/icons/archive_in.svg +3 -0
- package/src/assets/icons/archive_out.svg +3 -0
- package/src/assets/icons/arrow-stats-down.svg +3 -0
- package/src/assets/icons/arrow-stats-up.svg +3 -0
- package/src/assets/icons/arrow_backward.svg +3 -0
- package/src/assets/icons/arrow_downward.svg +3 -0
- package/src/assets/icons/arrow_drop_down.svg +3 -0
- package/src/assets/icons/arrow_drop_up.svg +3 -0
- package/src/assets/icons/arrow_forward.svg +3 -0
- package/src/assets/icons/arrow_leftward.svg +3 -0
- package/src/assets/icons/arrow_rightward.svg +3 -0
- package/src/assets/icons/arrow_to_grow_circle.svg +3 -0
- package/src/assets/icons/arrow_up_down.svg +3 -0
- package/src/assets/icons/arrow_upward.svg +3 -0
- package/src/assets/icons/arrows.svg +6 -0
- package/src/assets/icons/artist.svg +8 -0
- package/src/assets/icons/assessment.svg +1 -0
- package/src/assets/icons/assets_unassigned.svg +3 -0
- package/src/assets/icons/assignment.svg +9 -0
- package/src/assets/icons/assignment_ind.svg +1 -0
- package/src/assets/icons/assist_icon.svg +13 -0
- package/src/assets/icons/attach_money.svg +1 -0
- package/src/assets/icons/audiotrack.svg +1 -0
- package/src/assets/icons/backspace.svg +1 -0
- package/src/assets/icons/bank.svg +12 -0
- package/src/assets/icons/bank_building.svg +3 -0
- package/src/assets/icons/bank_building_blue.svg +4 -0
- package/src/assets/icons/bank_card.svg +3 -0
- package/src/assets/icons/bank_card_arrow.svg +3 -0
- package/src/assets/icons/bank_card_clock.svg +3 -0
- package/src/assets/icons/bank_card_double.svg +3 -0
- package/src/assets/icons/bank_card_virtual_blue.svg +7 -0
- package/src/assets/icons/bank_money_colored.svg +4 -0
- package/src/assets/icons/bankwire.svg +70 -0
- package/src/assets/icons/bell.svg +3 -0
- package/src/assets/icons/binance_coin_colored.svg +4 -0
- package/src/assets/icons/biometrics.svg +8 -0
- package/src/assets/icons/bitcoin.svg +6 -0
- package/src/assets/icons/bitcoin_cash_colored.svg +4 -0
- package/src/assets/icons/bitcoin_colored.svg +4 -0
- package/src/assets/icons/bloggerhood.svg +19 -0
- package/src/assets/icons/board.svg +7 -0
- package/src/assets/icons/book.svg +3 -0
- package/src/assets/icons/broken_link.svg +8 -0
- package/src/assets/icons/bug.svg +10 -0
- package/src/assets/icons/bug_big.svg +3 -0
- package/src/assets/icons/bug_report.svg +3 -0
- package/src/assets/icons/building.svg +17 -0
- package/src/assets/icons/building_colored.svg +18 -0
- package/src/assets/icons/business_center.svg +1 -0
- package/src/assets/icons/calendar.svg +3 -0
- package/src/assets/icons/calendar_colored.svg +7 -0
- package/src/assets/icons/calendar_load.svg +3 -0
- package/src/assets/icons/calendar_sixteen.svg +5 -0
- package/src/assets/icons/calendar_two_weeks.svg +3 -0
- package/src/assets/icons/calendar_user.svg +11 -0
- package/src/assets/icons/camera_alt.svg +1 -0
- package/src/assets/icons/camera_plus.svg +1 -0
- package/src/assets/icons/camera_video.svg +3 -0
- package/src/assets/icons/cancel.svg +4 -0
- package/src/assets/icons/cancel_alt.svg +1 -0
- package/src/assets/icons/capitalist.svg +23 -0
- package/src/assets/icons/capitalist_colored.svg +4 -0
- package/src/assets/icons/card.svg +1 -0
- package/src/assets/icons/card_off.svg +7 -0
- package/src/assets/icons/card_off_circle.svg +4 -0
- package/src/assets/icons/card_to_card_blue.svg +11 -0
- package/src/assets/icons/card_to_card_colored.svg +11 -0
- package/src/assets/icons/cash-ad.svg +7 -0
- package/src/assets/icons/cash.svg +7 -0
- package/src/assets/icons/category.svg +6 -0
- package/src/assets/icons/cellphone.svg +1 -0
- package/src/assets/icons/change_sheet.svg +3 -0
- package/src/assets/icons/channels_icon.svg +12 -0
- package/src/assets/icons/chart_bar.svg +3 -0
- package/src/assets/icons/chart_line.svg +3 -0
- package/src/assets/icons/chat.svg +3 -0
- package/src/assets/icons/chat_add.svg +6 -0
- package/src/assets/icons/chat_forum.svg +3 -0
- package/src/assets/icons/chat_messages.svg +3 -0
- package/src/assets/icons/check-rhombus.svg +3 -0
- package/src/assets/icons/check.svg +4 -0
- package/src/assets/icons/check_all.svg +6 -0
- package/src/assets/icons/check_circle.svg +4 -0
- package/src/assets/icons/check_circle_second.svg +4 -0
- package/src/assets/icons/check_circle_solid.svg +3 -0
- package/src/assets/icons/check_polygonal.svg +3 -0
- package/src/assets/icons/checkbox--checked.svg +3 -0
- package/src/assets/icons/checkbox.svg +3 -0
- package/src/assets/icons/checkboxes.svg +8 -0
- package/src/assets/icons/circle.svg +3 -0
- package/src/assets/icons/circle_arrows.svg +3 -0
- package/src/assets/icons/click.svg +3 -0
- package/src/assets/icons/clickup.svg +14 -0
- package/src/assets/icons/clip.svg +3 -0
- package/src/assets/icons/clock_check.svg +6 -0
- package/src/assets/icons/clock_solid.svg +5 -0
- package/src/assets/icons/close.svg +3 -0
- package/src/assets/icons/close_circle_outline.svg +5 -0
- package/src/assets/icons/close_circle_solid.svg +3 -0
- package/src/assets/icons/cloud_upload.svg +1 -0
- package/src/assets/icons/coin_speed.svg +7 -0
- package/src/assets/icons/comment.svg +4 -0
- package/src/assets/icons/company.svg +1 -0
- package/src/assets/icons/confetti.svg +18 -0
- package/src/assets/icons/connection.svg +3 -0
- package/src/assets/icons/contacts.svg +1 -0
- package/src/assets/icons/contracts.svg +3 -0
- package/src/assets/icons/convert.svg +6 -0
- package/src/assets/icons/copy.svg +3 -0
- package/src/assets/icons/copyright.svg +3 -0
- package/src/assets/icons/credit-card.svg +5 -0
- package/src/assets/icons/credit_card_blink.svg +4 -0
- package/src/assets/icons/crypto.svg +8 -0
- package/src/assets/icons/crypto_blue.svg +9 -0
- package/src/assets/icons/crypto_colored.svg +9 -0
- package/src/assets/icons/cryptowallet.svg +5 -0
- package/src/assets/icons/cryptowallet_blue.svg +6 -0
- package/src/assets/icons/cryptowallet_colored.svg +6 -0
- package/src/assets/icons/cup.svg +7 -0
- package/src/assets/icons/dashboard.svg +1 -0
- package/src/assets/icons/date_range.svg +1 -0
- package/src/assets/icons/deeplinks.svg +3 -0
- package/src/assets/icons/delete-account.svg +5 -0
- package/src/assets/icons/delete.svg +3 -0
- package/src/assets/icons/delete_alt.svg +1 -0
- package/src/assets/icons/deprecated.svg +1 -0
- package/src/assets/icons/desktop_device.svg +3 -0
- package/src/assets/icons/dialog.svg +3 -0
- package/src/assets/icons/discord.svg +9 -0
- package/src/assets/icons/discord_colored.svg +4 -0
- package/src/assets/icons/dislike.svg +3 -0
- package/src/assets/icons/doc-export.svg +10 -0
- package/src/assets/icons/document.svg +1 -0
- package/src/assets/icons/dollar.svg +3 -0
- package/src/assets/icons/donate_blue.svg +7 -0
- package/src/assets/icons/donate_colored.svg +7 -0
- package/src/assets/icons/dot-status.svg +3 -0
- package/src/assets/icons/download.svg +3 -0
- package/src/assets/icons/drag.svg +1 -0
- package/src/assets/icons/eWallet.svg +25 -0
- package/src/assets/icons/e_wallet_blue.svg +9 -0
- package/src/assets/icons/e_wallet_colored.svg +9 -0
- package/src/assets/icons/edit.svg +3 -0
- package/src/assets/icons/edit_solid.svg +4 -0
- package/src/assets/icons/email.svg +12 -0
- package/src/assets/icons/email_circle.svg +5 -0
- package/src/assets/icons/email_colored.svg +5 -0
- package/src/assets/icons/enrollment.svg +1 -0
- package/src/assets/icons/epayments_colored.svg +4 -0
- package/src/assets/icons/epidemic-sound.svg +66 -0
- package/src/assets/icons/epidemic_sound_circle.svg +4 -0
- package/src/assets/icons/error.svg +3 -0
- package/src/assets/icons/ethereum_colored.svg +8 -0
- package/src/assets/icons/event.svg +1 -0
- package/src/assets/icons/event_alt.svg +1 -0
- package/src/assets/icons/exit_to_app.svg +1 -0
- package/src/assets/icons/explicit.svg +1 -0
- package/src/assets/icons/export.svg +5 -0
- package/src/assets/icons/export_all.svg +6 -0
- package/src/assets/icons/express_payment.svg +3 -0
- package/src/assets/icons/face.svg +1 -0
- package/src/assets/icons/face_alt.svg +1 -0
- package/src/assets/icons/facebook.svg +3 -0
- package/src/assets/icons/facebook_colored.svg +4 -0
- package/src/assets/icons/fast.svg +10 -0
- package/src/assets/icons/favorite.svg +1 -0
- package/src/assets/icons/file.svg +1 -0
- package/src/assets/icons/file_add.svg +3 -0
- package/src/assets/icons/file_copy.svg +4 -0
- package/src/assets/icons/file_download.svg +1 -0
- package/src/assets/icons/file_export.svg +3 -0
- package/src/assets/icons/file_eye.svg +3 -0
- package/src/assets/icons/file_import.svg +7 -0
- package/src/assets/icons/file_new.svg +3 -0
- package/src/assets/icons/filter_list.svg +3 -0
- package/src/assets/icons/find_in_page.svg +1 -0
- package/src/assets/icons/fire.svg +3 -0
- package/src/assets/icons/fire_colored.svg +8 -0
- package/src/assets/icons/fire_solid.svg +3 -0
- package/src/assets/icons/flag_ar.svg +19 -0
- package/src/assets/icons/flag_en.svg +6 -0
- package/src/assets/icons/flag_es.svg +564 -0
- package/src/assets/icons/flag_pt.svg +43 -0
- package/src/assets/icons/flag_ru.svg +5 -0
- package/src/assets/icons/flag_th.svg +6 -0
- package/src/assets/icons/flag_vi.svg +5 -0
- package/src/assets/icons/fly_dollar.svg +13 -0
- package/src/assets/icons/fly_euro.svg +5 -0
- package/src/assets/icons/freeze.svg +3 -0
- package/src/assets/icons/fullscreen.svg +1 -0
- package/src/assets/icons/get_app.svg +4 -0
- package/src/assets/icons/gift_solid.svg +8 -0
- package/src/assets/icons/glasses.svg +3 -0
- package/src/assets/icons/google_colored.svg +6 -0
- package/src/assets/icons/googleplus_colored.svg +5 -0
- package/src/assets/icons/graph-no-data.svg +3 -0
- package/src/assets/icons/group.svg +3 -0
- package/src/assets/icons/group_connection.svg +9 -0
- package/src/assets/icons/growth_arrow_circle.svg +3 -0
- package/src/assets/icons/hand_money.svg +13 -0
- package/src/assets/icons/help.svg +1 -0
- package/src/assets/icons/help_invert.svg +1 -0
- package/src/assets/icons/help_solid.svg +4 -0
- package/src/assets/icons/help_ukraine_colored.svg +14 -0
- package/src/assets/icons/home.svg +3 -0
- package/src/assets/icons/iban.svg +9 -0
- package/src/assets/icons/iban_blue.svg +10 -0
- package/src/assets/icons/id_square.svg +3 -0
- package/src/assets/icons/id_thin.svg +5 -0
- package/src/assets/icons/image.svg +1 -0
- package/src/assets/icons/infinity.svg +3 -0
- package/src/assets/icons/info.svg +3 -0
- package/src/assets/icons/info_rounded_square.svg +5 -0
- package/src/assets/icons/info_solid.svg +4 -0
- package/src/assets/icons/instagram.svg +23 -0
- package/src/assets/icons/instagram_colored.svg +18 -0
- package/src/assets/icons/keyboard.svg +1 -0
- package/src/assets/icons/keyboard_arrow_left.svg +4 -0
- package/src/assets/icons/keyboard_arrow_right.svg +4 -0
- package/src/assets/icons/keyboard_arrow_right_thin.svg +3 -0
- package/src/assets/icons/kraken.svg +10 -0
- package/src/assets/icons/language.svg +3 -0
- package/src/assets/icons/layers.svg +3 -0
- package/src/assets/icons/lightning.svg +3 -0
- package/src/assets/icons/lightning_circle.svg +4 -0
- package/src/assets/icons/lightning_circle_solid.svg +4 -0
- package/src/assets/icons/lightning_outlined.svg +3 -0
- package/src/assets/icons/like.svg +3 -0
- package/src/assets/icons/link.svg +3 -0
- package/src/assets/icons/link_broken.svg +7 -0
- package/src/assets/icons/link_colored.svg +4 -0
- package/src/assets/icons/link_external.svg +3 -0
- package/src/assets/icons/link_external_new.svg +3 -0
- package/src/assets/icons/linkedin.svg +9 -0
- package/src/assets/icons/linkedin_colored.svg +6 -0
- package/src/assets/icons/list.svg +1 -0
- package/src/assets/icons/litecoin_colored.svg +4 -0
- package/src/assets/icons/live_help.svg +1 -0
- package/src/assets/icons/loader.svg +3 -0
- package/src/assets/icons/location_city.svg +1 -0
- package/src/assets/icons/location_on.svg +3 -0
- package/src/assets/icons/lock.svg +3 -0
- package/src/assets/icons/lock_old.svg +1 -0
- package/src/assets/icons/logout.svg +3 -0
- package/src/assets/icons/magic_blink.svg +3 -0
- package/src/assets/icons/mail_outline.svg +1 -0
- package/src/assets/icons/mc_assist.svg +4 -0
- package/src/assets/icons/mc_dashboard.svg +5 -0
- package/src/assets/icons/mc_id.svg +3 -0
- package/src/assets/icons/mc_pay.svg +10 -0
- package/src/assets/icons/mc_pay_app.svg +6 -0
- package/src/assets/icons/mc_pay_compact.svg +4 -0
- package/src/assets/icons/mc_pay_menu.svg +4 -0
- package/src/assets/icons/mc_pay_menu_circle_colored.svg +4 -0
- package/src/assets/icons/mc_pay_mobile_app.svg +21 -0
- package/src/assets/icons/mc_studio.svg +3 -0
- package/src/assets/icons/mc_vidwide.svg +11 -0
- package/src/assets/icons/mcadslogo.svg +37 -0
- package/src/assets/icons/mediacube.svg +1 -0
- package/src/assets/icons/menu.svg +3 -0
- package/src/assets/icons/menu_new.svg +3 -0
- package/src/assets/icons/message.svg +3 -0
- package/src/assets/icons/messenger.svg +6 -0
- package/src/assets/icons/messenger_colored.svg +10 -0
- package/src/assets/icons/minus.svg +5 -0
- package/src/assets/icons/mobile_device.svg +3 -0
- package/src/assets/icons/money_clock.svg +8 -0
- package/src/assets/icons/money_input.svg +8 -0
- package/src/assets/icons/more_horiz.svg +1 -0
- package/src/assets/icons/music.svg +1 -0
- package/src/assets/icons/music_icon.svg +8 -0
- package/src/assets/icons/new.svg +1 -0
- package/src/assets/icons/notes.svg +3 -0
- package/src/assets/icons/objects.svg +3 -0
- package/src/assets/icons/obs.svg +3 -0
- package/src/assets/icons/okru.svg +12 -0
- package/src/assets/icons/okru_colored.svg +4 -0
- package/src/assets/icons/ondemand_video.svg +1 -0
- package/src/assets/icons/partners.svg +3 -0
- package/src/assets/icons/pause.svg +1 -0
- package/src/assets/icons/payment.svg +1 -0
- package/src/assets/icons/payoneer.svg +13 -0
- package/src/assets/icons/payoneer_colored.svg +19 -0
- package/src/assets/icons/payoneer_cy.svg +13 -0
- package/src/assets/icons/paypal.svg +1 -0
- package/src/assets/icons/paypal_colored.svg +6 -0
- package/src/assets/icons/percent.svg +3 -0
- package/src/assets/icons/personal_email_colored.svg +11 -0
- package/src/assets/icons/phone_colored.svg +4 -0
- package/src/assets/icons/photo_add.svg +3 -0
- package/src/assets/icons/picture.svg +3 -0
- package/src/assets/icons/picture_thin.svg +3 -0
- package/src/assets/icons/plane.svg +3 -0
- package/src/assets/icons/play-videos.svg +4 -0
- package/src/assets/icons/play.svg +1 -0
- package/src/assets/icons/print.svg +1 -0
- package/src/assets/icons/prototype.svg +1 -0
- package/src/assets/icons/public.svg +1 -0
- package/src/assets/icons/qiwi.svg +11 -0
- package/src/assets/icons/qiwi_colored.svg +4 -0
- package/src/assets/icons/radio--checked.svg +4 -0
- package/src/assets/icons/ready.svg +1 -0
- package/src/assets/icons/receipt.svg +1 -0
- package/src/assets/icons/receipt_thin.svg +6 -0
- package/src/assets/icons/recording_circle.svg +3 -0
- package/src/assets/icons/recruiters.svg +3 -0
- package/src/assets/icons/redo.svg +3 -0
- package/src/assets/icons/referral.svg +10 -0
- package/src/assets/icons/referral_solid.svg +10 -0
- package/src/assets/icons/reload.svg +3 -0
- package/src/assets/icons/reload_right.svg +3 -0
- package/src/assets/icons/remove_red_eye.svg +1 -0
- package/src/assets/icons/repair.svg +6 -0
- package/src/assets/icons/reply_arrow.svg +3 -0
- package/src/assets/icons/requisites.svg +7 -0
- package/src/assets/icons/reset.svg +7 -0
- package/src/assets/icons/resize_video.svg +3 -0
- package/src/assets/icons/revenue.svg +3 -0
- package/src/assets/icons/review.svg +1 -0
- package/src/assets/icons/ripple_colored.svg +4 -0
- package/src/assets/icons/rocket.svg +7 -0
- package/src/assets/icons/rocket_colored.svg +6 -0
- package/src/assets/icons/rocket_small.svg +6 -0
- package/src/assets/icons/role.svg +3 -0
- package/src/assets/icons/safety.svg +5 -0
- package/src/assets/icons/sand_clock.svg +4 -0
- package/src/assets/icons/save.svg +1 -0
- package/src/assets/icons/search.svg +3 -0
- package/src/assets/icons/send.svg +1 -0
- package/src/assets/icons/send_solid.svg +3 -0
- package/src/assets/icons/settings.svg +4 -0
- package/src/assets/icons/settings_solid.svg +3 -0
- package/src/assets/icons/settings_tools.svg +3 -0
- package/src/assets/icons/shield.svg +4 -0
- package/src/assets/icons/shield_blue.svg +5 -0
- package/src/assets/icons/shield_colored.svg +5 -0
- package/src/assets/icons/shield_usd.svg +3 -0
- package/src/assets/icons/shop.svg +1 -0
- package/src/assets/icons/shopping_cart.svg +1 -0
- package/src/assets/icons/shuffle.svg +7 -0
- package/src/assets/icons/sign_out.svg +8 -0
- package/src/assets/icons/skype.svg +56 -0
- package/src/assets/icons/skype_colored.svg +4 -0
- package/src/assets/icons/slack.svg +6 -0
- package/src/assets/icons/smile_star_eye.svg +6 -0
- package/src/assets/icons/sort_asc.svg +4 -0
- package/src/assets/icons/sort_az.svg +4 -0
- package/src/assets/icons/sort_desc.svg +4 -0
- package/src/assets/icons/sort_directions.svg +3 -0
- package/src/assets/icons/sort_list.svg +1 -0
- package/src/assets/icons/sort_za.svg +4 -0
- package/src/assets/icons/spy_colored.svg +15 -0
- package/src/assets/icons/staff.svg +10 -0
- package/src/assets/icons/star.svg +1 -0
- package/src/assets/icons/star_round.svg +3 -0
- package/src/assets/icons/star_round_solid.svg +3 -0
- package/src/assets/icons/stars.svg +4 -0
- package/src/assets/icons/stars_fill.svg +4 -0
- package/src/assets/icons/stats_icon.svg +8 -0
- package/src/assets/icons/steam.svg +12 -0
- package/src/assets/icons/steam_colored.svg +15 -0
- package/src/assets/icons/studio_icon.svg +7 -0
- package/src/assets/icons/subscriptions.svg +1 -0
- package/src/assets/icons/suitcase.svg +4 -0
- package/src/assets/icons/supervised_user_circle.svg +1 -0
- package/src/assets/icons/support.svg +7 -0
- package/src/assets/icons/swap_cubes.svg +5 -0
- package/src/assets/icons/swap_cubes_colored.svg +6 -0
- package/src/assets/icons/swap_horizontal_circle.svg +3 -0
- package/src/assets/icons/switches.svg +3 -0
- package/src/assets/icons/table.svg +1 -0
- package/src/assets/icons/telegram.svg +40 -0
- package/src/assets/icons/telegram_colored.svg +12 -0
- package/src/assets/icons/tether.svg +8 -0
- package/src/assets/icons/tether_colored.svg +4 -0
- package/src/assets/icons/three_dots.svg +3 -0
- package/src/assets/icons/thumb_down.svg +4 -0
- package/src/assets/icons/thumb_up.svg +4 -0
- package/src/assets/icons/tiktok.svg +8 -0
- package/src/assets/icons/time.svg +3 -0
- package/src/assets/icons/time_thin.svg +3 -0
- package/src/assets/icons/timelapse.svg +4 -0
- package/src/assets/icons/timeline.svg +1 -0
- package/src/assets/icons/tipalti.svg +48 -0
- package/src/assets/icons/transaction.svg +1 -0
- package/src/assets/icons/twitter_colored.svg +4 -0
- package/src/assets/icons/unarchive.svg +1 -0
- package/src/assets/icons/unfold_more.svg +1 -0
- package/src/assets/icons/unlock.svg +3 -0
- package/src/assets/icons/upload_img.svg +1 -0
- package/src/assets/icons/usd_coin_colored.svg +5 -0
- package/src/assets/icons/user.svg +3 -0
- package/src/assets/icons/user_edit.svg +3 -0
- package/src/assets/icons/user_kyc.svg +8 -0
- package/src/assets/icons/viber.svg +17 -0
- package/src/assets/icons/viber_colored.svg +8 -0
- package/src/assets/icons/videoblocks.svg +8 -0
- package/src/assets/icons/vidiq-logo-mono.svg +10 -0
- package/src/assets/icons/vidiq_circle.svg +5 -0
- package/src/assets/icons/visibility.svg +4 -0
- package/src/assets/icons/visibility_off.svg +7 -0
- package/src/assets/icons/vkontakte.svg +1 -0
- package/src/assets/icons/vkontakte_colored.svg +4 -0
- package/src/assets/icons/wallet.svg +5 -0
- package/src/assets/icons/warning.svg +3 -0
- package/src/assets/icons/webmoney.svg +10 -0
- package/src/assets/icons/webmoney_colored.svg +4 -0
- package/src/assets/icons/website_colored.svg +4 -0
- package/src/assets/icons/whatsapp.svg +12 -0
- package/src/assets/icons/whatsapp_colored.svg +4 -0
- package/src/assets/icons/wise_colored.svg +4 -0
- package/src/assets/icons/worldfirst.svg +12 -0
- package/src/assets/icons/x_network.svg +4 -0
- package/src/assets/icons/yandexmoney.svg +1 -0
- package/src/assets/icons/yoomoney_colored.svg +4 -0
- package/src/assets/icons/youtube.svg +3 -0
- package/src/assets/icons/youtube_circled.svg +4 -0
- package/src/assets/icons/youtube_circled_second.svg +4 -0
- package/src/assets/icons/youtube_colored.svg +4 -0
- package/src/assets/icons/youtube_outlined.svg +4 -0
- package/src/assets/icons/zcash_colored.svg +4 -0
- package/src/assets/iconsSprite.svg +1 -0
- package/src/assets/img/no_table_data.png +0 -0
- package/src/assets/img/no_user.png +0 -0
- package/src/assets/main.scss +233 -0
- package/src/assets/styles/_functions.scss +187 -0
- package/src/assets/styles/_mixins.scss +664 -0
- package/src/assets/styles/_spacing.scss +33 -0
- package/src/assets/styles/_tooltip.scss +123 -0
- package/src/assets/styles/_variables.scss +23 -0
- package/src/assets/styles/main.scss +4 -0
- package/src/assets/styles/table.scss +10 -0
- package/src/assets/styles/toast.scss +57 -0
- package/src/assets/tokens/animations.scss +57 -0
- package/src/assets/tokens/border-radius.scss +23 -0
- package/src/assets/tokens/box-shadows.scss +22 -0
- package/src/assets/tokens/colors.scss +81 -0
- package/src/assets/tokens/durations.scss +13 -0
- package/src/assets/tokens/easings.scss +6 -0
- package/src/assets/tokens/font-families.scss +8 -0
- package/src/assets/tokens/font-sizes.scss +23 -0
- package/src/assets/tokens/font-weights.scss +16 -0
- package/src/assets/tokens/gradients.scss +18 -0
- package/src/assets/tokens/json/animations.json +6 -0
- package/src/assets/tokens/json/border-radius.json +24 -0
- package/src/assets/tokens/json/box-shadows.json +24 -0
- package/src/assets/tokens/json/colors.json +71 -0
- package/src/assets/tokens/json/durations.json +10 -0
- package/src/assets/tokens/json/easings.json +3 -0
- package/src/assets/tokens/json/font-families.json +4 -0
- package/src/assets/tokens/json/font-sizes.json +18 -0
- package/src/assets/tokens/json/font-weights.json +12 -0
- package/src/assets/tokens/json/gradients.json +13 -0
- package/src/assets/tokens/json/index.ts +37 -0
- package/src/assets/tokens/json/letter-spacings.json +4 -0
- package/src/assets/tokens/json/line-heights.json +18 -0
- package/src/assets/tokens/json/media-queries.json +26 -0
- package/src/assets/tokens/json/opacities.json +5 -0
- package/src/assets/tokens/json/sizes.json +42 -0
- package/src/assets/tokens/json/spacings.json +34 -0
- package/src/assets/tokens/json/z-indexes.json +12 -0
- package/src/assets/tokens/letter-spacings.scss +6 -0
- package/src/assets/tokens/line-heights.scss +22 -0
- package/src/assets/tokens/media-queries.scss +32 -0
- package/src/assets/tokens/opacities.scss +8 -0
- package/src/assets/tokens/sizes.scss +47 -0
- package/src/assets/tokens/spacings.scss +38 -0
- package/src/assets/tokens/z-indexes.scss +14 -0
- package/src/components/elements/McAvatar/McAvatar.stories.ts +71 -0
- package/src/components/elements/McAvatar/McAvatar.vue +253 -0
- package/src/components/elements/McBadge/McBadge.stories.ts +40 -0
- package/src/components/elements/McBadge/McBadge.vue +150 -0
- package/src/components/elements/McBottomLoader/McBottomLoader.stories.ts +47 -0
- package/src/components/elements/McBottomLoader/McBottomLoader.vue +79 -0
- package/src/components/elements/McButton/McButton.stories.ts +145 -0
- package/src/components/elements/McButton/McButton.vue +844 -0
- package/src/components/elements/McChip/McChip.stories.ts +102 -0
- package/src/components/elements/McChip/McChip.vue +309 -0
- package/src/components/elements/McCropper/McCropper.stories.ts +31 -0
- package/src/components/elements/McCropper/McCropper.vue +129 -0
- package/src/components/elements/McDatepicker/McDatepicker.stories.ts +440 -0
- package/src/components/elements/McDatepicker/McDatepicker.vue +832 -0
- package/src/components/elements/McDraggable/McDraggable.stories.ts +52 -0
- package/src/components/elements/McDraggable/McDraggable.vue +211 -0
- package/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue +329 -0
- package/src/components/elements/McFieldCheckbox/McFieldCheckox.stories.ts +97 -0
- package/src/components/elements/McFieldRadio/McFieldRadio.stories.ts +91 -0
- package/src/components/elements/McFieldRadio/McFieldRadio.vue +258 -0
- package/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.stories.ts +70 -0
- package/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue +215 -0
- package/src/components/elements/McFieldRange/McFieldRange.stories.ts +93 -0
- package/src/components/elements/McFieldRange/McFieldRange.vue +279 -0
- package/src/components/elements/McFieldSelect/McFieldSelect.stories.ts +257 -0
- package/src/components/elements/McFieldSelect/McFieldSelect.vue +920 -0
- package/src/components/elements/McFieldText/McFieldText.stories.ts +258 -0
- package/src/components/elements/McFieldText/McFieldText.vue +898 -0
- package/src/components/elements/McFieldToggle/McFieldToggle.stories.ts +63 -0
- package/src/components/elements/McFieldToggle/McFieldToggle.vue +280 -0
- package/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.stories.ts +49 -0
- package/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue +95 -0
- package/src/components/elements/McNodata/McNoData.stories.ts +34 -0
- package/src/components/elements/McNodata/McNoData.vue +191 -0
- package/src/components/elements/McNotification/McNotification.stories.ts +43 -0
- package/src/components/elements/McNotification/McNotification.vue +219 -0
- package/src/components/elements/McProgress/McProgress.stories.ts +39 -0
- package/src/components/elements/McProgress/McProgress.vue +194 -0
- package/src/components/elements/McSeparator/McSeparator.stories.ts +35 -0
- package/src/components/elements/McSeparator/McSeparator.vue +131 -0
- package/src/components/elements/McSlideUpDown/McSlideUpDown.stories.ts +54 -0
- package/src/components/elements/McSlideUpDown/McSlideUpDown.vue +142 -0
- package/src/components/elements/McStack/McStack.stories.ts +108 -0
- package/src/components/elements/McStack/McStack.vue +147 -0
- package/src/components/elements/McSvgIcon/McSvgIcon.stories.ts +135 -0
- package/src/components/elements/McSvgIcon/McSvgIcon.vue +114 -0
- package/src/components/elements/McTitle/McTitle.stories.ts +73 -0
- package/src/components/elements/McTitle/McTitle.vue +368 -0
- package/src/components/elements/McTooltip/McTooltip.stories.ts +39 -0
- package/src/components/elements/McTooltip/McTooltip.vue +85 -0
- package/src/components/index.ts +136 -0
- package/src/components/patterns/McAccordion/McAccordion.stories.ts +99 -0
- package/src/components/patterns/McAccordion/McAccordion.vue +65 -0
- package/src/components/patterns/McCell/McCell.stories.ts +36 -0
- package/src/components/patterns/McCell/McCell.vue +96 -0
- package/src/components/patterns/McCollapse/McCollapse.stories.ts +100 -0
- package/src/components/patterns/McCollapse/McCollapse.vue +303 -0
- package/src/components/patterns/McDropdown/McDropdown.stories.ts +65 -0
- package/src/components/patterns/McDropdown/McDropdown.vue +297 -0
- package/src/components/patterns/McDropdown/McDropdownPanel.vue +65 -0
- package/src/components/patterns/McFilter/McFilter.stories.ts +76 -0
- package/src/components/patterns/McFilter/McFilter.vue +887 -0
- package/src/components/patterns/McFilter/McFilterChip/McFilterChip.stories.ts +37 -0
- package/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue +98 -0
- package/src/components/patterns/McFilter/McFilterTags/McFilterTags.stories.ts +41 -0
- package/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue +377 -0
- package/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.stories.ts +29 -0
- package/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue +69 -0
- package/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.stories.ts +26 -0
- package/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue +139 -0
- package/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.stories.ts +26 -0
- package/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue +247 -0
- package/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.stories.ts +26 -0
- package/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue +61 -0
- package/src/components/patterns/McGridCol/McGridCol.stories.ts +34 -0
- package/src/components/patterns/McGridCol/McGridCol.vue +159 -0
- package/src/components/patterns/McGridRow/McGridRow.stories.ts +74 -0
- package/src/components/patterns/McGridRow/McGridRow.vue +143 -0
- package/src/components/patterns/McOverlay/McOverlay.stories.ts +44 -0
- package/src/components/patterns/McOverlay/McOverlay.vue +77 -0
- package/src/components/patterns/McPreview/McPreview.stories.ts +45 -0
- package/src/components/patterns/McPreview/McPreview.vue +109 -0
- package/src/components/patterns/McSideBar/McSideBar.stories.ts +54 -0
- package/src/components/patterns/McSideBar/McSideBar.vue +378 -0
- package/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.stories.ts +32 -0
- package/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue +116 -0
- package/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.stories.ts +23 -0
- package/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue +232 -0
- package/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.stories.ts +34 -0
- package/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue +342 -0
- package/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.stories.ts +40 -0
- package/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue +211 -0
- package/src/components/patterns/McTab/McTab.stories.ts +23 -0
- package/src/components/patterns/McTab/McTab.vue +209 -0
- package/src/components/patterns/McTabs/McTabs.stories.ts +96 -0
- package/src/components/patterns/McTabs/McTabs.vue +387 -0
- package/src/components/patterns/McWrapScroll/McWrapScroll.stories.ts +56 -0
- package/src/components/patterns/McWrapScroll/McWrapScroll.vue +305 -0
- package/src/components/templates/McDrawer/McDrawer.stories.ts +88 -0
- package/src/components/templates/McDrawer/McDrawer.vue +217 -0
- package/src/components/templates/McDrawer/McDrawerContainer.vue +54 -0
- package/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.stories.ts +33 -0
- package/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue +88 -0
- package/src/components/templates/McModal/McModal.stories.ts +92 -0
- package/src/components/templates/McModal/McModal.vue +716 -0
- package/src/components/templates/McModal/McModalContainer.vue +51 -0
- package/src/components/templates/McTable/McTable/McTable.stories.ts +192 -0
- package/src/components/templates/McTable/McTable/McTable.vue +650 -0
- package/src/components/templates/McTable/McTableCard/McTableCard.stories.ts +94 -0
- package/src/components/templates/McTable/McTableCard/McTableCard.vue +239 -0
- package/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue +74 -0
- package/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue +155 -0
- package/src/components/templates/McTable/McTableSort/McTableSort.vue +66 -0
- package/src/components/templates/McTopBar/McTopBar.stories.ts +68 -0
- package/src/components/templates/McTopBar/McTopBar.vue +149 -0
- package/src/components/templates/McVirtualScroll/McVirtualScroll.stories.ts +59 -0
- package/src/components/templates/McVirtualScroll/McVirtualScroll.vue +124 -0
- package/src/composables/index.ts +9 -0
- package/src/composables/useDrawer.ts +90 -0
- package/src/composables/useEncodeDecode.ts +22 -0
- package/src/composables/useFieldErrors.ts +24 -0
- package/src/composables/useHelper.ts +85 -0
- package/src/composables/useModal.ts +88 -0
- package/src/composables/useRandomNumber.ts +10 -0
- package/src/composables/useTooltip.ts +174 -0
- package/src/consts/table.ts +6 -0
- package/src/enums/Cell.ts +5 -0
- package/src/enums/Chip.ts +10 -0
- package/src/enums/Datepicker.ts +38 -0
- package/src/enums/Drawer.ts +4 -0
- package/src/enums/Dropdown.ts +11 -0
- package/src/enums/Filter.ts +13 -0
- package/src/enums/Grid.ts +21 -0
- package/src/enums/Input.ts +19 -0
- package/src/enums/Modal.ts +4 -0
- package/src/enums/Preview.ts +5 -0
- package/src/enums/Radio.ts +4 -0
- package/src/enums/RadioGroup.ts +4 -0
- package/src/enums/Select.ts +10 -0
- package/src/enums/Sidebar.ts +4 -0
- package/src/enums/Tab.ts +5 -0
- package/src/enums/Title.ts +20 -0
- package/src/enums/Tooltip.ts +14 -0
- package/src/enums/index.ts +23 -0
- package/src/enums/ui/Alignment.ts +5 -0
- package/src/enums/ui/Button.ts +23 -0
- package/src/enums/ui/Directions.ts +4 -0
- package/src/enums/ui/Weights.ts +6 -0
- package/src/index.js +16 -0
- package/src/main.ts +9 -0
- package/src/mocks/authUser.ts +163 -0
- package/src/mocks/categories.js +107 -0
- package/src/mocks/filterMocks.ts +133 -0
- package/src/mocks/icons.json +1 -0
- package/src/mocks/menuLangs.ts +20 -0
- package/src/mocks/selectOptions.json +111 -0
- package/src/mocks/sidebar.ts +131 -0
- package/src/mocks/tableData.ts +8338 -0
- package/src/types/IButton.ts +48 -0
- package/src/types/ICell.ts +5 -0
- package/src/types/IChip.ts +13 -0
- package/src/types/ICollapse.ts +15 -0
- package/src/types/IDatepicker.ts +44 -0
- package/src/types/IDirections.ts +5 -0
- package/src/types/IDrawer.ts +29 -0
- package/src/types/IDropdown.ts +6 -0
- package/src/types/IFilter.ts +185 -0
- package/src/types/IGrid.ts +4 -0
- package/src/types/IInput.ts +6 -0
- package/src/types/IModal.ts +30 -0
- package/src/types/IPreview.ts +5 -0
- package/src/types/IRadio.ts +5 -0
- package/src/types/IRadioGroup.ts +12 -0
- package/src/types/IRoute.ts +14 -0
- package/src/types/ISelect.ts +19 -0
- package/src/types/ISideBar.ts +76 -0
- package/src/types/ITable.ts +76 -0
- package/src/types/ITabs.ts +33 -0
- package/src/types/ITitle.ts +6 -0
- package/src/types/ITooltip.ts +30 -0
- package/src/types/index.ts +39 -0
- package/src/types/styles/Alignment.ts +4 -0
- package/src/types/styles/AvatarSizes.ts +5 -0
- package/src/types/styles/Colors.ts +6 -0
- package/src/types/styles/Durations.ts +6 -0
- package/src/types/styles/FontSizes.ts +5 -0
- package/src/types/styles/FontWeights.ts +6 -0
- package/src/types/styles/Grid.ts +18 -0
- package/src/types/styles/Icons.ts +4 -0
- package/src/types/styles/LineHeights.ts +5 -0
- package/src/types/styles/MediaQueries.ts +5 -0
- package/src/types/styles/Radiuses.ts +5 -0
- package/src/types/styles/Sizes.ts +6 -0
- package/src/types/styles/Spaces.ts +6 -0
- package/src/types/styles/Weights.ts +3 -0
- package/src/utils/dayjs.js +22 -0
- package/src/utils/mcGridColAdaptiveProps.ts +15 -0
- package/src/utils/mcTitleAdaptiveProps.ts +15 -0
- /package/dist/{index.es.js → mediacube-ui-v2.js} +0 -0
- /package/dist/{index.umd.js → mediacube-ui-v2.umd.cjs} +0 -0
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, defineAsyncComponent, onBeforeUnmount, onMounted, type PropType, reactive, ref, useSlots } from 'vue'
|
|
3
|
+
import { useHelper } from '@/composables/useHelper'
|
|
4
|
+
import { ChipSize, Weights } from '@/enums'
|
|
5
|
+
import {
|
|
6
|
+
type ITableColumn,
|
|
7
|
+
type ITableColumnEnriched,
|
|
8
|
+
type ITableData,
|
|
9
|
+
type ITableSort,
|
|
10
|
+
type ITableTotals,
|
|
11
|
+
type ITablePlaceholders,
|
|
12
|
+
type TableCardState,
|
|
13
|
+
type ITableCardProps
|
|
14
|
+
} from '@/types/ITable'
|
|
15
|
+
import { TABLE } from '@/consts/table'
|
|
16
|
+
import McInfinityLoadingTrigger from '@/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue'
|
|
17
|
+
import McTitle from '@/components/elements/McTitle/McTitle.vue'
|
|
18
|
+
import McChip from '@/components/elements/McChip/McChip.vue'
|
|
19
|
+
import McTableSort from '@/components/templates/McTable/McTableSort/McTableSort.vue'
|
|
20
|
+
import McTableSkeletonLoading from '@/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue'
|
|
21
|
+
import McNoData from '@/components/elements/McNodata/McNoData.vue'
|
|
22
|
+
const McBottomLoader = defineAsyncComponent(() => import('@/components/elements/McBottomLoader/McBottomLoader.vue'))
|
|
23
|
+
const McOverlay = defineAsyncComponent(() => import('@/components/patterns/McOverlay/McOverlay.vue'))
|
|
24
|
+
import { useThrottleFn } from '@vueuse/core'
|
|
25
|
+
import type { IconsListUnion } from '@/types'
|
|
26
|
+
const noTableDataImg = '/no_table_data.png'
|
|
27
|
+
|
|
28
|
+
const defaultPlaceholders = {
|
|
29
|
+
no_data: 'No data',
|
|
30
|
+
loading: 'Loading...',
|
|
31
|
+
all_loaded: 'All loaded',
|
|
32
|
+
total: 'Total'
|
|
33
|
+
} as ITablePlaceholders
|
|
34
|
+
|
|
35
|
+
const emit = defineEmits<{
|
|
36
|
+
(e: 'loading'): void
|
|
37
|
+
(e: 'row-click', value: any): void
|
|
38
|
+
(e: 'sort', value: ITableSort): void
|
|
39
|
+
(e: 'table-card-opened', value: TableCardState): void
|
|
40
|
+
}>()
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Слоты
|
|
44
|
+
*
|
|
45
|
+
* #header-cell - Заголовок колонки, каждая колонка
|
|
46
|
+
* #`{column.field}-header-right` - Справа от заголовка колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
|
|
47
|
+
* #`{column.field}-total` - Тотал колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
|
|
48
|
+
* #column.field - Тело ячейки таблицы. Если не использовать слот, просто будут выводиться данные по названию поля
|
|
49
|
+
* #`{column.field}-right` - Справа от контента колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
|
|
50
|
+
* №footer-cell - тотал колонки (строка внизу таблицы), каждая колонка
|
|
51
|
+
* */
|
|
52
|
+
|
|
53
|
+
const helper = useHelper()
|
|
54
|
+
const slots = useSlots()
|
|
55
|
+
const props = defineProps({
|
|
56
|
+
columns: {
|
|
57
|
+
type: Array as PropType<ITableColumn[]>,
|
|
58
|
+
required: true,
|
|
59
|
+
default: () => [] as ITableColumn[]
|
|
60
|
+
},
|
|
61
|
+
data: {
|
|
62
|
+
type: Array as PropType<ITableData>,
|
|
63
|
+
required: true,
|
|
64
|
+
default: () => []
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
|
|
68
|
+
* */
|
|
69
|
+
totals: {
|
|
70
|
+
type: Object as PropType<ITableTotals<ITableColumn>>,
|
|
71
|
+
default: () => ({})
|
|
72
|
+
},
|
|
73
|
+
sort: {
|
|
74
|
+
type: Object as PropType<ITableSort>,
|
|
75
|
+
default: () => ({})
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Фиксировать ли первую колонку таблицы
|
|
79
|
+
* */
|
|
80
|
+
fixedFirstColumn: {
|
|
81
|
+
type: Boolean as PropType<boolean>,
|
|
82
|
+
default: true
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Фиксировать ли последнюю колонку таблицы
|
|
86
|
+
* */
|
|
87
|
+
fixedLastColumn: {
|
|
88
|
+
type: Boolean as PropType<boolean>,
|
|
89
|
+
default: false
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
|
|
93
|
+
* */
|
|
94
|
+
hasLoadMore: {
|
|
95
|
+
type: Boolean as PropType<boolean>,
|
|
96
|
+
default: true
|
|
97
|
+
},
|
|
98
|
+
height: {
|
|
99
|
+
type: [Number, String] as PropType<number | 'auto'>,
|
|
100
|
+
default: 'auto'
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* Высота строки в шапке
|
|
104
|
+
* */
|
|
105
|
+
headerRowHeight: {
|
|
106
|
+
type: Number as PropType<number>,
|
|
107
|
+
default: TABLE.defaultHeaderHeight
|
|
108
|
+
},
|
|
109
|
+
/**
|
|
110
|
+
* Высота строки в теле таблицы
|
|
111
|
+
* */
|
|
112
|
+
rowHeight: {
|
|
113
|
+
type: Number as PropType<number>,
|
|
114
|
+
default: TABLE.defaultRowHeight
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* Высота строки в подвале (строка с тоталами)
|
|
118
|
+
* */
|
|
119
|
+
footerRowHeight: {
|
|
120
|
+
type: Number as PropType<number>,
|
|
121
|
+
default: TABLE.defaultFooterRowHeight
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
|
|
125
|
+
*/
|
|
126
|
+
skeletonLoading: {
|
|
127
|
+
type: Boolean as PropType<boolean>,
|
|
128
|
+
default: false
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
* Лоадинг внизу таблицы
|
|
132
|
+
* */
|
|
133
|
+
bottomLoading: {
|
|
134
|
+
type: Boolean as PropType<boolean>,
|
|
135
|
+
default: false
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Оверлей с затемнение на всю таблицу
|
|
139
|
+
* */
|
|
140
|
+
loading: {
|
|
141
|
+
type: Boolean as PropType<boolean>,
|
|
142
|
+
default: false
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* Переводы плейсхолеров и текстов
|
|
146
|
+
*/
|
|
147
|
+
placeholders: {
|
|
148
|
+
type: Object as PropType<Partial<ITablePlaceholders>>,
|
|
149
|
+
default: () => ({})
|
|
150
|
+
},
|
|
151
|
+
noDataIcon: {
|
|
152
|
+
type: String as () => IconsListUnion,
|
|
153
|
+
default: null
|
|
154
|
+
},
|
|
155
|
+
noDataImg: {
|
|
156
|
+
type: String as PropType<string>,
|
|
157
|
+
// eslint-disable-next-line vue/valid-define-props
|
|
158
|
+
default: noTableDataImg
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* Любые данные что бы передать их в карточку из таблицы
|
|
162
|
+
* */
|
|
163
|
+
toTableCardProps: {
|
|
164
|
+
type: Object as PropType<Record<any, any>>,
|
|
165
|
+
default: () => ({})
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
|
|
169
|
+
const openCardState = ref<TableCardState>({ state: false })
|
|
170
|
+
|
|
171
|
+
const mcTable = ref<null | HTMLElement>(null)
|
|
172
|
+
|
|
173
|
+
const hasData = computed((): boolean => {
|
|
174
|
+
return !helper.isEmpty(props.data)
|
|
175
|
+
})
|
|
176
|
+
const hasTotals = computed((): boolean => {
|
|
177
|
+
return !helper.isEmpty(props.totals)
|
|
178
|
+
})
|
|
179
|
+
const hasFixedColumn = computed((): boolean => {
|
|
180
|
+
return props.fixedFirstColumn || props.fixedLastColumn
|
|
181
|
+
})
|
|
182
|
+
const placeholders = reactive<ITablePlaceholders>(helper.deepMerge(defaultPlaceholders, props.placeholders))
|
|
183
|
+
|
|
184
|
+
const shadows = reactive({
|
|
185
|
+
firstColHasShadow: false,
|
|
186
|
+
lastColHasShadow: false
|
|
187
|
+
})
|
|
188
|
+
|
|
189
|
+
const computedColumns = computed((): ITableColumnEnriched[] => {
|
|
190
|
+
const [first] = props.columns
|
|
191
|
+
return (openCardState.value.state ? [first] : props.columns).map((column, index) => {
|
|
192
|
+
const fixedFirst = props.fixedFirstColumn && index === 0
|
|
193
|
+
const fixedLast = props.fixedLastColumn && index === props.columns.length - 1
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
...column,
|
|
197
|
+
fixedFirst,
|
|
198
|
+
fixedLast,
|
|
199
|
+
style: {
|
|
200
|
+
...(column.width
|
|
201
|
+
? {
|
|
202
|
+
'--mc-table-cell-width': `${column.width}px`,
|
|
203
|
+
'--mc-table-cell-max-width': `${column.width}px`,
|
|
204
|
+
'--mc-table-cell-min-width': `${column.width}px`
|
|
205
|
+
}
|
|
206
|
+
: {
|
|
207
|
+
'--mc-table-cell-min-width': column.minWidth && `${column.minWidth}px`,
|
|
208
|
+
'--mc-table-cell-width': '100%'
|
|
209
|
+
})
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
})
|
|
213
|
+
})
|
|
214
|
+
|
|
215
|
+
const computedHeaderColumns = computed((): ITableColumnEnriched[] => {
|
|
216
|
+
return computedColumns.value.map((column) => ({
|
|
217
|
+
...column,
|
|
218
|
+
class: {
|
|
219
|
+
'mc-table__table_header-cell': true,
|
|
220
|
+
'mc-table__table_header-cell--fixed-first': column.fixedFirst,
|
|
221
|
+
'mc-table__table_header-cell--fixed-last': column.fixedLast,
|
|
222
|
+
'mc-table__table_header-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
|
|
223
|
+
'mc-table__table_header-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
|
|
224
|
+
}
|
|
225
|
+
}))
|
|
226
|
+
})
|
|
227
|
+
|
|
228
|
+
const computedBodyColumns = computed((): ITableColumnEnriched[] => {
|
|
229
|
+
return computedColumns.value.map((column) => ({
|
|
230
|
+
...column,
|
|
231
|
+
class: {
|
|
232
|
+
'mc-table__table_body-cell': true,
|
|
233
|
+
'mc-table__table_body-cell--fixed-first': column.fixedFirst,
|
|
234
|
+
'mc-table__table_body-cell--fixed-last': column.fixedLast,
|
|
235
|
+
'mc-table__table_body-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
|
|
236
|
+
'mc-table__table_body-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
|
|
237
|
+
}
|
|
238
|
+
}))
|
|
239
|
+
})
|
|
240
|
+
|
|
241
|
+
const computedFooterColumns = computed((): ITableColumnEnriched[] => {
|
|
242
|
+
return computedColumns.value.map((column) => ({
|
|
243
|
+
...column,
|
|
244
|
+
class: {
|
|
245
|
+
'mc-table__table_footer-cell': true,
|
|
246
|
+
'mc-table__table_footer-cell--fixed-first': column.fixedFirst,
|
|
247
|
+
'mc-table__table_footer-cell--fixed-last': column.fixedLast,
|
|
248
|
+
'mc-table__table_footer-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
|
|
249
|
+
'mc-table__table_footer-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
|
|
250
|
+
}
|
|
251
|
+
}))
|
|
252
|
+
})
|
|
253
|
+
|
|
254
|
+
const containerStyle = computed((): { [key: string]: string } => {
|
|
255
|
+
return {
|
|
256
|
+
'--mc-table-height': typeof props.height === 'number' ? `${props.height}px` : props.height,
|
|
257
|
+
'--mc-table-header-row-height': helper.isNumber(props.headerRowHeight) ? `${props.headerRowHeight}px` : '40px',
|
|
258
|
+
'--mc-table-row-height': helper.isNumber(props.rowHeight) ? `${props.rowHeight}px` : '40px',
|
|
259
|
+
'--mc-table-footer-row-height': helper.isNumber(props.footerRowHeight) ? `${props.footerRowHeight}px` : '40px'
|
|
260
|
+
}
|
|
261
|
+
})
|
|
262
|
+
|
|
263
|
+
const computedTableCardProps = computed((): ITableCardProps => {
|
|
264
|
+
return {
|
|
265
|
+
tableColumns: props.columns,
|
|
266
|
+
tableData: props.data,
|
|
267
|
+
tableTotals: props.totals,
|
|
268
|
+
tableSort: props.sort,
|
|
269
|
+
tableHeaderRowHeight: props.headerRowHeight,
|
|
270
|
+
tableFooterRowHeight: props.footerRowHeight,
|
|
271
|
+
tableFixedFirstColumn: props.fixedFirstColumn,
|
|
272
|
+
tableCardProps: props.toTableCardProps
|
|
273
|
+
}
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
const onBodyScroll = useThrottleFn((): void => {
|
|
277
|
+
if (mcTable.value) {
|
|
278
|
+
const { scrollLeft, scrollWidth, clientWidth } = mcTable.value
|
|
279
|
+
const firstColShadow = props.fixedFirstColumn && scrollLeft > 0
|
|
280
|
+
const lastColShadow = props.fixedLastColumn && scrollLeft + clientWidth < scrollWidth
|
|
281
|
+
|
|
282
|
+
if (shadows.firstColHasShadow !== firstColShadow) shadows.firstColHasShadow = firstColShadow
|
|
283
|
+
if (shadows.lastColHasShadow !== lastColShadow) shadows.lastColHasShadow = lastColShadow
|
|
284
|
+
}
|
|
285
|
+
}, 10)
|
|
286
|
+
|
|
287
|
+
const addListeners = (): void => {
|
|
288
|
+
if (hasFixedColumn.value && mcTable.value) {
|
|
289
|
+
onBodyScroll()
|
|
290
|
+
mcTable.value.addEventListener('scroll', onBodyScroll)
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const removeListeners = (): void => {
|
|
294
|
+
if (hasFixedColumn.value && mcTable.value) mcTable.value.removeEventListener('scroll', onBodyScroll)
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
const handleRowClick = (row: any): void => {
|
|
298
|
+
emit('row-click', row)
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
const handleSetCardState = (payload: TableCardState) => {
|
|
302
|
+
openCardState.value = payload
|
|
303
|
+
emit('table-card-opened', payload)
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
onMounted((): void => {
|
|
307
|
+
addListeners()
|
|
308
|
+
})
|
|
309
|
+
onBeforeUnmount((): void => {
|
|
310
|
+
removeListeners()
|
|
311
|
+
})
|
|
312
|
+
</script>
|
|
313
|
+
|
|
314
|
+
<template>
|
|
315
|
+
<div class="mc-table__container" :style="containerStyle">
|
|
316
|
+
<div ref="mcTable" class="mc-table">
|
|
317
|
+
<div class="mc-table__table">
|
|
318
|
+
<!-- HEADER -->
|
|
319
|
+
<div class="mc-table__table_header">
|
|
320
|
+
<div class="mc-table__table_header-row">
|
|
321
|
+
<div v-for="(column, cI) in computedHeaderColumns" :key="cI" :class="column.class" :style="column.style">
|
|
322
|
+
<div class="mc-table__table_header-cell_content">
|
|
323
|
+
<div class="mc-table__table_header-cell_content-left">
|
|
324
|
+
<mc-table-sort
|
|
325
|
+
v-if="column.sortable"
|
|
326
|
+
:column="column.field"
|
|
327
|
+
:sort="sort"
|
|
328
|
+
@change="(val) => emit('sort', val)"
|
|
329
|
+
/>
|
|
330
|
+
<!-- slot для колонки хедера -->
|
|
331
|
+
<slot name="header-cell" :column="column" :cellIndex="cI">
|
|
332
|
+
<mc-title :text-align="column.align" :weight="Weights.SemiBold" pre-line
|
|
333
|
+
>{{ column.header }}
|
|
334
|
+
</mc-title>
|
|
335
|
+
</slot>
|
|
336
|
+
</div>
|
|
337
|
+
<div class="mc-table__table_header-cell_content-right">
|
|
338
|
+
<!-- slot справа от хедера колонки -->
|
|
339
|
+
<slot :name="`${column.field}-header-right`" :column="column" :cellIndex="cI" />
|
|
340
|
+
<!-- slot для тотала (выводится в chip) -->
|
|
341
|
+
<slot :name="`${column.field}-total`" :column="column" :cellIndex="cI">
|
|
342
|
+
<mc-chip
|
|
343
|
+
v-if="column.total"
|
|
344
|
+
:title="column.total"
|
|
345
|
+
variation="hover-gray"
|
|
346
|
+
text-color="gray"
|
|
347
|
+
:size="ChipSize.S"
|
|
348
|
+
/>
|
|
349
|
+
</slot>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
<!-- BODY -->
|
|
357
|
+
<div class="mc-table__table_body">
|
|
358
|
+
<!-- Отображение скелетной загрузки -->
|
|
359
|
+
<mc-table-skeleton-loading v-if="props.skeletonLoading" :columns="computedBodyColumns" />
|
|
360
|
+
<template v-if="hasData">
|
|
361
|
+
<div
|
|
362
|
+
v-for="(row, rI) in data"
|
|
363
|
+
:key="rI"
|
|
364
|
+
class="mc-table__table_body-row"
|
|
365
|
+
:class="{ 'mc-table__table_body-row--active': String(openCardState.id) === String(row.id) }"
|
|
366
|
+
@click="() => handleRowClick(row)"
|
|
367
|
+
>
|
|
368
|
+
<div v-for="(column, cI) in computedBodyColumns" :key="cI" :class="column.class" :style="column.style">
|
|
369
|
+
<div class="mc-table__table_body-cell_content">
|
|
370
|
+
<div class="mc-table__table_body-cell_content-left">
|
|
371
|
+
<!-- slot для контента (по именем колонки) -->
|
|
372
|
+
<slot
|
|
373
|
+
:name="column.field"
|
|
374
|
+
:row="row"
|
|
375
|
+
:rowIndex="rI"
|
|
376
|
+
:column="column"
|
|
377
|
+
:cellIndex="cI"
|
|
378
|
+
:cellValue="row[column.field]"
|
|
379
|
+
>
|
|
380
|
+
<mc-title :text-align="column.align" ellipsis>{{ row[column.field] }}</mc-title>
|
|
381
|
+
</slot>
|
|
382
|
+
</div>
|
|
383
|
+
<!-- slot срава от контента (по именем колонки + '-right') -->
|
|
384
|
+
<div v-if="slots[`${column.field}-right`]" class="mc-table__table_body-cell_content-right">
|
|
385
|
+
<slot :name="`${column.field}-right`" />
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
</template>
|
|
391
|
+
<mc-infinity-loading-trigger :active="props.hasLoadMore" @loading="emit('loading')" />
|
|
392
|
+
</div>
|
|
393
|
+
|
|
394
|
+
<!-- FOOTER -->
|
|
395
|
+
<div v-if="hasTotals" class="mc-table__table_footer">
|
|
396
|
+
<div class="mc-table__table_footer-row">
|
|
397
|
+
<div v-for="(column, cI) in computedFooterColumns" :key="cI" :class="column.class" :style="column.style">
|
|
398
|
+
<slot name="footer-cell" :column="column" :cellIndex="cI" :cellValue="totals[column.field]">
|
|
399
|
+
<mc-title :text-align="column.align" :weight="Weights.SemiBold">
|
|
400
|
+
{{ totals[column.field] }}
|
|
401
|
+
</mc-title>
|
|
402
|
+
</slot>
|
|
403
|
+
</div>
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</div>
|
|
408
|
+
<!-- slot для карточки, по дефолту будет вывлдить карточку из вложенного роута -->
|
|
409
|
+
<slot v-bind="computedTableCardProps" @setTableCardState="handleSetCardState">
|
|
410
|
+
<!-- место для рендера карточки, когда она находится по вложенному роуту -->
|
|
411
|
+
<router-view v-bind="computedTableCardProps" @setTableCardState="handleSetCardState" />
|
|
412
|
+
</slot>
|
|
413
|
+
<mc-bottom-loader v-if="bottomLoading" />
|
|
414
|
+
<mc-overlay v-if="loading" />
|
|
415
|
+
<mc-no-data
|
|
416
|
+
v-if="!hasData"
|
|
417
|
+
variation="small"
|
|
418
|
+
:title="placeholders.no_data"
|
|
419
|
+
:img="props.noDataImg"
|
|
420
|
+
:icon="props.noDataIcon"
|
|
421
|
+
/>
|
|
422
|
+
</div>
|
|
423
|
+
</template>
|
|
424
|
+
|
|
425
|
+
<style lang="scss">
|
|
426
|
+
@use '../../../../assets/styles/mixins' as *;
|
|
427
|
+
@use '../../../../assets/tokens/colors' as *;
|
|
428
|
+
@use '../../../../assets/tokens/font-families' as *;
|
|
429
|
+
@use '../../../../assets/tokens/font-weights' as *;
|
|
430
|
+
@use '../../../../assets/tokens/font-sizes' as *;
|
|
431
|
+
@use '../../../../assets/tokens/spacings' as *;
|
|
432
|
+
@use '../../../../assets/tokens/sizes' as *;
|
|
433
|
+
@use '../../../../assets/tokens/box-shadows' as *;
|
|
434
|
+
@use '../../../../assets/tokens/z-indexes' as *;
|
|
435
|
+
@use '../../../../assets/tokens/media-queries' as *;
|
|
436
|
+
@mixin fixed-first {
|
|
437
|
+
left: 0;
|
|
438
|
+
z-index: $z-index-notification;
|
|
439
|
+
border-right: var(--border-style);
|
|
440
|
+
background-color: $color-white;
|
|
441
|
+
}
|
|
442
|
+
@mixin fixed-last {
|
|
443
|
+
right: 0;
|
|
444
|
+
z-index: $z-index-notification;
|
|
445
|
+
background-color: $color-white;
|
|
446
|
+
}
|
|
447
|
+
@mixin fixed-classes {
|
|
448
|
+
&--fixed-first {
|
|
449
|
+
@include fixed-first;
|
|
450
|
+
}
|
|
451
|
+
&--fixed-last {
|
|
452
|
+
@include fixed-last;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
@mixin shadow-classes {
|
|
456
|
+
&--shadow-first {
|
|
457
|
+
@include shadow-first;
|
|
458
|
+
}
|
|
459
|
+
&--shadow-last {
|
|
460
|
+
@include shadow-last;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
@mixin shadow-first {
|
|
464
|
+
border-right-color: $color-transparent;
|
|
465
|
+
&::after {
|
|
466
|
+
content: '';
|
|
467
|
+
position: absolute;
|
|
468
|
+
top: 0;
|
|
469
|
+
right: 0;
|
|
470
|
+
bottom: 0;
|
|
471
|
+
background: none;
|
|
472
|
+
width: 1px;
|
|
473
|
+
height: 100%;
|
|
474
|
+
box-shadow: 5px 0 8px $color-black;
|
|
475
|
+
pointer-events: none;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
@mixin shadow-last {
|
|
479
|
+
border-left-color: $color-transparent;
|
|
480
|
+
&::before {
|
|
481
|
+
content: '';
|
|
482
|
+
position: absolute;
|
|
483
|
+
top: 0;
|
|
484
|
+
left: 0;
|
|
485
|
+
bottom: 0;
|
|
486
|
+
background: none;
|
|
487
|
+
width: 1px;
|
|
488
|
+
height: 100%;
|
|
489
|
+
box-shadow: -5px 0 8px $color-black;
|
|
490
|
+
pointer-events: none;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
@mixin grow {
|
|
494
|
+
display: flex;
|
|
495
|
+
flex-direction: column;
|
|
496
|
+
flex-grow: 1;
|
|
497
|
+
}
|
|
498
|
+
@mixin cell-alignment {
|
|
499
|
+
display: flex;
|
|
500
|
+
align-items: center;
|
|
501
|
+
padding: 0 $space-200;
|
|
502
|
+
}
|
|
503
|
+
.mc-table {
|
|
504
|
+
font-family: $font-family-main;
|
|
505
|
+
overflow-y: auto;
|
|
506
|
+
max-height: 100%;
|
|
507
|
+
@include grow;
|
|
508
|
+
* {
|
|
509
|
+
box-sizing: border-box;
|
|
510
|
+
}
|
|
511
|
+
&__container {
|
|
512
|
+
--border-style: 1px solid #{$color-hover-gray};
|
|
513
|
+
--table-row-hover-background-color: #{$color-hover-gray};
|
|
514
|
+
position: relative;
|
|
515
|
+
overflow: hidden;
|
|
516
|
+
font-size: $font-size-200;
|
|
517
|
+
height: var(--mc-table-height);
|
|
518
|
+
border: var(--border-style);
|
|
519
|
+
@include grow;
|
|
520
|
+
}
|
|
521
|
+
&__table {
|
|
522
|
+
@include grow;
|
|
523
|
+
&_header {
|
|
524
|
+
position: sticky;
|
|
525
|
+
top: 0;
|
|
526
|
+
z-index: $z-index-overlay;
|
|
527
|
+
&-row {
|
|
528
|
+
display: flex;
|
|
529
|
+
flex-wrap: nowrap;
|
|
530
|
+
height: var(--mc-table-header-row-height);
|
|
531
|
+
}
|
|
532
|
+
&-cell {
|
|
533
|
+
position: sticky;
|
|
534
|
+
text-align: left;
|
|
535
|
+
top: 0;
|
|
536
|
+
z-index: 10;
|
|
537
|
+
width: var(--mc-table-cell-width);
|
|
538
|
+
max-width: var(--mc-table-cell-max-width);
|
|
539
|
+
min-width: var(--mc-table-cell-min-width);
|
|
540
|
+
background-color: $color-white;
|
|
541
|
+
border-bottom: var(--border-style);
|
|
542
|
+
@include cell-alignment;
|
|
543
|
+
@include fixed-classes;
|
|
544
|
+
@include shadow-classes;
|
|
545
|
+
&_content {
|
|
546
|
+
width: 100%;
|
|
547
|
+
display: flex;
|
|
548
|
+
justify-content: space-between;
|
|
549
|
+
align-items: center;
|
|
550
|
+
&-left {
|
|
551
|
+
display: flex;
|
|
552
|
+
align-items: center;
|
|
553
|
+
@include child-indent-right($space-50);
|
|
554
|
+
}
|
|
555
|
+
&-right {
|
|
556
|
+
display: flex;
|
|
557
|
+
align-items: center;
|
|
558
|
+
@include child-indent-right($space-50);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
&_body {
|
|
564
|
+
@include grow;
|
|
565
|
+
$body: &;
|
|
566
|
+
&-row {
|
|
567
|
+
display: flex;
|
|
568
|
+
flex-wrap: nowrap;
|
|
569
|
+
height: var(--mc-table-row-height);
|
|
570
|
+
cursor: pointer;
|
|
571
|
+
&--active {
|
|
572
|
+
#{$body}-cell {
|
|
573
|
+
background-color: var(--table-row-hover-background-color);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
&:hover {
|
|
577
|
+
#{$body}-cell {
|
|
578
|
+
background-color: var(--table-row-hover-background-color);
|
|
579
|
+
&_content-right {
|
|
580
|
+
display: flex;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
@media #{$media-mobile} {
|
|
585
|
+
#{$body}-cell {
|
|
586
|
+
&_content-right {
|
|
587
|
+
display: flex;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
&-cell {
|
|
593
|
+
position: sticky;
|
|
594
|
+
z-index: 15;
|
|
595
|
+
text-align: left;
|
|
596
|
+
width: var(--mc-table-cell-width);
|
|
597
|
+
max-width: var(--mc-table-cell-max-width);
|
|
598
|
+
min-width: var(--mc-table-cell-min-width);
|
|
599
|
+
@include cell-alignment;
|
|
600
|
+
@include fixed-classes;
|
|
601
|
+
@include shadow-classes;
|
|
602
|
+
&_content {
|
|
603
|
+
width: 100%;
|
|
604
|
+
&-right {
|
|
605
|
+
position: absolute;
|
|
606
|
+
display: none;
|
|
607
|
+
top: 0;
|
|
608
|
+
right: 0;
|
|
609
|
+
padding-right: $space-200;
|
|
610
|
+
padding-left: $space-200;
|
|
611
|
+
height: var(--mc-table-row-height);
|
|
612
|
+
align-items: center;
|
|
613
|
+
background: linear-gradient(90deg, rgba($color-hover-gray, 0.2) 0%, $color-hover-gray 60%);
|
|
614
|
+
z-index: $z-index-notification;
|
|
615
|
+
@include child-indent-right($space-50);
|
|
616
|
+
}
|
|
617
|
+
&-left {
|
|
618
|
+
display: flex;
|
|
619
|
+
align-items: center;
|
|
620
|
+
@include child-indent-right($space-50);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
&_footer {
|
|
626
|
+
position: sticky;
|
|
627
|
+
bottom: 0;
|
|
628
|
+
z-index: $z-index-notification;
|
|
629
|
+
&-row {
|
|
630
|
+
display: flex;
|
|
631
|
+
flex-wrap: nowrap;
|
|
632
|
+
height: var(--mc-table-footer-row-height);
|
|
633
|
+
}
|
|
634
|
+
&-cell {
|
|
635
|
+
position: sticky;
|
|
636
|
+
z-index: 15;
|
|
637
|
+
text-align: left;
|
|
638
|
+
width: var(--mc-table-cell-width);
|
|
639
|
+
max-width: var(--mc-table-cell-max-width);
|
|
640
|
+
min-width: var(--mc-table-cell-min-width);
|
|
641
|
+
background-color: $color-white;
|
|
642
|
+
border-top: var(--border-style);
|
|
643
|
+
@include cell-alignment;
|
|
644
|
+
@include fixed-classes;
|
|
645
|
+
@include shadow-classes;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
</style>
|