spree_admin 5.1.7 → 5.2.0.rc1
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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/spree/admin/application.scss +5 -2
- data/app/assets/stylesheets/spree/admin/components/_alerts.scss +26 -8
- data/app/assets/stylesheets/spree/admin/components/_badges.scss +4 -3
- data/app/assets/stylesheets/spree/admin/components/_bulk_panel.scss +11 -26
- data/app/assets/stylesheets/spree/admin/components/_buttons.scss +9 -18
- data/app/assets/stylesheets/spree/admin/components/_cards.scss +45 -24
- data/app/assets/stylesheets/spree/admin/components/_dialogs.scss +204 -0
- data/app/assets/stylesheets/spree/admin/components/_dropdowns.scss +39 -13
- data/app/assets/stylesheets/spree/admin/components/_filters.scss +28 -10
- data/app/assets/stylesheets/spree/admin/components/_main.scss +36 -17
- data/app/assets/stylesheets/spree/admin/components/_media_form.scss +11 -3
- data/app/assets/stylesheets/spree/admin/components/_modals.scss +1 -1
- data/app/assets/stylesheets/spree/admin/components/_navigation.scss +0 -1
- data/app/assets/stylesheets/spree/admin/components/_search_picker.scss +0 -8
- data/app/assets/stylesheets/spree/admin/components/_sortable_tree.scss +2 -1
- data/app/assets/stylesheets/spree/admin/components/_tables.scss +20 -26
- data/app/assets/stylesheets/spree/admin/components/_tooltips.scss +20 -0
- data/app/assets/stylesheets/spree/admin/components/_variants_form.scss +3 -3
- data/app/assets/stylesheets/spree/admin/components/_wizard.scss +27 -0
- data/app/assets/stylesheets/spree/admin/global/_variables.scss +61 -43
- data/app/assets/stylesheets/spree/admin/plugins/_trix_custom.scss +5 -0
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.scss +1 -1
- data/app/assets/stylesheets/spree/admin/plugins/uppy_fixes.scss +52 -3
- data/app/assets/stylesheets/spree/admin/shared/_base.scss +18 -17
- data/app/assets/stylesheets/spree/admin/shared/_forms.scss +7 -4
- data/app/assets/stylesheets/spree/admin/views/_page_builder.scss +12 -12
- data/app/controllers/concerns/spree/admin/page_builder_concern.rb +4 -4
- data/app/controllers/concerns/spree/admin/settings_concern.rb +23 -0
- data/app/controllers/spree/admin/admin_users_controller.rb +21 -6
- data/app/controllers/spree/admin/assets_controller.rb +3 -5
- data/app/controllers/spree/admin/base_controller.rb +2 -1
- data/app/controllers/spree/admin/custom_domains_controller.rb +1 -1
- data/app/controllers/spree/admin/errors_controller.rb +17 -3
- data/app/controllers/spree/admin/exports_controller.rb +7 -1
- data/app/controllers/spree/admin/gift_cards_controller.rb +5 -11
- data/app/controllers/spree/admin/import_mappings_controller.rb +15 -0
- data/app/controllers/spree/admin/import_rows_controller.rb +7 -0
- data/app/controllers/spree/admin/imports_controller.rb +66 -0
- data/app/controllers/spree/admin/invitations_controller.rb +3 -4
- data/app/controllers/spree/admin/json_previews_controller.rb +24 -0
- data/app/controllers/spree/admin/metafield_definitions_controller.rb +27 -0
- data/app/controllers/spree/admin/metafields_controller.rb +39 -0
- data/app/controllers/spree/admin/newsletter_subscribers_controller.rb +8 -0
- data/app/controllers/spree/admin/oauth_applications_controller.rb +2 -2
- data/app/controllers/spree/admin/orders/user_controller.rb +16 -10
- data/app/controllers/spree/admin/orders_controller.rb +17 -3
- data/app/controllers/spree/admin/page_blocks_controller.rb +2 -1
- data/app/controllers/spree/admin/page_links_controller.rb +9 -1
- data/app/controllers/spree/admin/pages_controller.rb +1 -9
- data/app/controllers/spree/admin/payment_methods_controller.rb +1 -5
- data/app/controllers/spree/admin/policies_controller.rb +28 -0
- data/app/controllers/spree/admin/products_controller.rb +8 -5
- data/app/controllers/spree/admin/profile_controller.rb +2 -0
- data/app/controllers/spree/admin/refund_reasons_controller.rb +1 -1
- data/app/controllers/spree/admin/reimbursement_types_controller.rb +1 -1
- data/app/controllers/spree/admin/resource_controller.rb +60 -1
- data/app/controllers/spree/admin/return_authorization_reasons_controller.rb +1 -1
- data/app/controllers/spree/admin/return_authorizations_controller.rb +3 -0
- data/app/controllers/spree/admin/roles_controller.rb +1 -2
- data/app/controllers/spree/admin/shipping_categories_controller.rb +1 -1
- data/app/controllers/spree/admin/shipping_methods_controller.rb +2 -2
- data/app/controllers/spree/admin/stock_locations_controller.rb +2 -2
- data/app/controllers/spree/admin/store_credits_controller.rb +6 -0
- data/app/controllers/spree/admin/storefront_controller.rb +1 -1
- data/app/controllers/spree/admin/stores_controller.rb +8 -2
- data/app/controllers/spree/admin/tax_categories_controller.rb +1 -1
- data/app/controllers/spree/admin/tax_rates_controller.rb +2 -2
- data/app/controllers/spree/admin/translations_controller.rb +30 -50
- data/app/controllers/spree/admin/users_controller.rb +4 -0
- data/app/controllers/spree/admin/webhooks_subscribers_controller.rb +2 -3
- data/app/controllers/spree/admin/zones_controller.rb +1 -1
- data/app/helpers/spree/admin/assets_helper.rb +42 -0
- data/app/helpers/spree/admin/base_helper.rb +58 -11
- data/app/helpers/spree/admin/bulk_operations_helper.rb +14 -12
- data/app/helpers/spree/admin/dialog_helper.rb +21 -0
- data/app/helpers/spree/admin/drawer_helper.rb +21 -0
- data/app/helpers/spree/admin/dropdown_helper.rb +32 -0
- data/app/helpers/spree/admin/json_preview_helper.rb +75 -0
- data/app/helpers/spree/admin/metafields_helper.rb +29 -0
- data/app/helpers/spree/admin/navigation_helper.rb +55 -23
- data/app/helpers/spree/admin/orders_filters_helper.rb +26 -17
- data/app/helpers/spree/admin/orders_helper.rb +9 -1
- data/app/helpers/spree/admin/page_builder_helper.rb +3 -8
- data/app/helpers/spree/admin/payments_helper.rb +2 -0
- data/app/helpers/spree/admin/products_helper.rb +0 -12
- data/app/helpers/spree/admin/translations_helper.rb +11 -4
- data/app/helpers/spree/admin/turbo_helper.rb +17 -4
- data/app/javascript/spree/admin/application.js +23 -5
- data/app/javascript/spree/admin/controllers/active_storage_upload_controller.js +41 -7
- data/app/javascript/spree/admin/controllers/admin_controller.js +0 -9
- data/app/javascript/spree/admin/controllers/auto_scroll_controller.js +33 -0
- data/app/javascript/spree/admin/controllers/codemirror_controller.js +45 -0
- data/app/javascript/spree/admin/controllers/highlight_controller.js +17 -0
- data/app/javascript/spree/admin/controllers/import_form_controller.js +27 -0
- data/app/javascript/spree/admin/controllers/sortable_auto_submit_controller.js +10 -0
- data/app/javascript/spree/admin/controllers/stock_transfer_controller.js +6 -5
- data/app/javascript/spree/admin/controllers/tabs_controller.js +21 -0
- data/app/javascript/spree/admin/controllers/tooltip_controller.js +136 -0
- data/app/javascript/spree/admin/controllers/turbo_submit_button_controller.js +14 -0
- data/app/javascript/spree/admin/helpers/bootstrap.js +5 -3
- data/app/models/spree/admin/form_builder.rb +250 -0
- data/app/views/layouts/spree/admin.html.erb +6 -2
- data/app/views/layouts/spree/admin_settings.html.erb +36 -0
- data/app/views/layouts/spree/admin_wizard.html.erb +34 -0
- data/app/views/layouts/spree/minimal.html.erb +2 -1
- data/app/views/layouts/spree/page_builder.html.erb +3 -2
- data/app/views/spree/admin/admin_users/_admin_user.html.erb +2 -2
- data/app/views/spree/admin/admin_users/_form.html.erb +3 -12
- data/app/views/spree/admin/admin_users/edit.html.erb +4 -7
- data/app/views/spree/admin/admin_users/index.html.erb +3 -3
- data/app/views/spree/admin/admin_users/show.html.erb +4 -4
- data/app/views/spree/admin/assets/create.turbo_stream.erb +1 -1
- data/app/views/spree/admin/assets/destroy.turbo_stream.erb +1 -1
- data/app/views/spree/admin/assets/edit.html.erb +16 -21
- data/app/views/spree/admin/assets/update.turbo_stream.erb +2 -2
- data/app/views/spree/admin/classifications/_classification.html.erb +5 -4
- data/app/views/spree/admin/classifications/create.turbo_stream.erb +1 -1
- data/app/views/spree/admin/classifications/index.html.erb +2 -2
- data/app/views/spree/admin/coupon_codes/_filters.html.erb +41 -0
- data/app/views/spree/admin/coupon_codes/_table_header.html.erb +0 -0
- data/app/views/spree/admin/coupon_codes/_table_row.html.erb +8 -0
- data/app/views/spree/admin/coupon_codes/index.html.erb +1 -58
- data/app/views/spree/admin/custom_domains/_custom_domains.html.erb +4 -4
- data/app/views/spree/admin/custom_domains/edit.html.erb +1 -14
- data/app/views/spree/admin/custom_domains/new.html.erb +1 -14
- data/app/views/spree/admin/customer_returns/_filters.html.erb +11 -0
- data/app/views/spree/admin/customer_returns/_table_header.html.erb +8 -0
- data/app/views/spree/admin/customer_returns/{_customer_return.html.erb → _table_row.html.erb} +1 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +1 -36
- data/app/views/spree/admin/dashboard/_setup_progress.html.erb +1 -1
- data/app/views/spree/admin/dashboard/_setup_tasks.html.erb +8 -10
- data/app/views/spree/admin/dashboard/_store_preview.html.erb +5 -5
- data/app/views/spree/admin/dashboard/_top_products.html.erb +3 -3
- data/app/views/spree/admin/dashboard/_updater.html.erb +1 -1
- data/app/views/spree/admin/dashboard/analytics.html.erb +37 -39
- data/app/views/spree/admin/dashboard/getting_started.html.erb +1 -1
- data/app/views/spree/admin/dashboard/setup_tasks/_add_products.html.erb +2 -2
- data/app/views/spree/admin/dashboard/show.html.erb +1 -1
- data/app/views/spree/admin/digital_assets/_digital_asset.html.erb +9 -10
- data/app/views/spree/admin/digital_assets/_form.html.erb +3 -8
- data/app/views/spree/admin/digital_assets/_table.html.erb +12 -13
- data/app/views/spree/admin/digital_assets/create.turbo_stream.erb +1 -1
- data/app/views/spree/admin/digital_assets/edit.html.erb +8 -10
- data/app/views/spree/admin/digital_assets/index.html.erb +8 -9
- data/app/views/spree/admin/digital_assets/new.html.erb +8 -10
- data/app/views/spree/admin/digital_assets/update.turbo_stream.erb +1 -1
- data/app/views/spree/admin/errors/403.html.erb +14 -0
- data/app/views/spree/admin/errors/404.html.erb +14 -0
- data/app/views/spree/admin/errors/422.html.erb +14 -0
- data/app/views/spree/admin/errors/500.html.erb +14 -0
- data/app/views/spree/admin/errors/503.html.erb +14 -0
- data/app/views/spree/admin/exports/_export.html.erb +1 -1
- data/app/views/spree/admin/exports/create.turbo_stream.erb +4 -1
- data/app/views/spree/admin/exports/index.html.erb +5 -5
- data/app/views/spree/admin/exports/new.html.erb +33 -28
- data/app/views/spree/admin/gift_card_batches/_form.html.erb +5 -20
- data/app/views/spree/admin/gift_card_batches/new.html.erb +1 -15
- data/app/views/spree/admin/gift_cards/_filters.html.erb +3 -4
- data/app/views/spree/admin/gift_cards/_form.html.erb +16 -26
- data/app/views/spree/admin/gift_cards/_gift_card.html.erb +1 -1
- data/app/views/spree/admin/gift_cards/_list.html.erb +7 -7
- data/app/views/spree/admin/gift_cards/_table_filter_dropdown.html.erb +13 -13
- data/app/views/spree/admin/gift_cards/index.html.erb +14 -11
- data/app/views/spree/admin/gift_cards/new.html.erb +1 -30
- data/app/views/spree/admin/gift_cards/show.html.erb +6 -6
- data/app/views/spree/admin/import_mappings/update.turbo_stream.erb +15 -0
- data/app/views/spree/admin/import_rows/_variant.html.erb +1 -0
- data/app/views/spree/admin/import_rows/show.html.erb +32 -0
- data/app/views/spree/admin/imports/_footer.html.erb +15 -0
- data/app/views/spree/admin/imports/_loader.html.erb +14 -0
- data/app/views/spree/admin/imports/_mapping.html.erb +12 -0
- data/app/views/spree/admin/imports/_mapping_footer.html.erb +20 -0
- data/app/views/spree/admin/imports/_mapping_form.html.erb +11 -0
- data/app/views/spree/admin/imports/_mapping_icon.html.erb +6 -0
- data/app/views/spree/admin/imports/_row.html.erb +35 -0
- data/app/views/spree/admin/imports/new.html.erb +26 -0
- data/app/views/spree/admin/imports/show.html.erb +57 -0
- data/app/views/spree/admin/invitations/_invitation.html.erb +13 -13
- data/app/views/spree/admin/invitations/create.turbo_stream.erb +1 -1
- data/app/views/spree/admin/invitations/index.html.erb +15 -17
- data/app/views/spree/admin/invitations/new.html.erb +15 -26
- data/app/views/spree/admin/json_previews/show.html.erb +37 -0
- data/app/views/spree/admin/line_items/new.html.erb +6 -6
- data/app/views/spree/admin/metafield_definitions/_filters.html.erb +18 -0
- data/app/views/spree/admin/metafield_definitions/_form.html.erb +44 -0
- data/app/views/spree/admin/metafield_definitions/_table_header.html.erb +11 -0
- data/app/views/spree/admin/metafield_definitions/_table_row.html.erb +22 -0
- data/app/views/spree/admin/metafield_definitions/edit.html.erb +1 -0
- data/app/views/spree/admin/metafield_definitions/index.html.erb +9 -0
- data/app/views/spree/admin/metafield_definitions/new.html.erb +1 -0
- data/app/views/spree/admin/metafield_definitions/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/metafields/edit.html.erb +43 -0
- data/app/views/spree/admin/metafields/types/_boolean.html.erb +4 -0
- data/app/views/spree/admin/metafields/types/_json.html.erb +4 -0
- data/app/views/spree/admin/metafields/types/_long_text.html.erb +1 -0
- data/app/views/spree/admin/metafields/types/_number.html.erb +1 -0
- data/app/views/spree/admin/metafields/types/_rich_text.html.erb +3 -0
- data/app/views/spree/admin/metafields/types/_short_text.html.erb +1 -0
- data/app/views/spree/admin/metafields/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/newsletter_subscribers/_filters.html.erb +41 -0
- data/app/views/spree/admin/newsletter_subscribers/_table_header.html.erb +8 -0
- data/app/views/spree/admin/newsletter_subscribers/_table_row.html.erb +36 -0
- data/app/views/spree/admin/newsletter_subscribers/index.html.erb +9 -0
- data/app/views/spree/admin/oauth_applications/_form.html.erb +5 -10
- data/app/views/spree/admin/oauth_applications/_table_header.html.erb +7 -0
- data/app/views/spree/admin/oauth_applications/_table_row.html.erb +34 -0
- data/app/views/spree/admin/oauth_applications/create.turbo_stream.erb +20 -30
- data/app/views/spree/admin/oauth_applications/edit.html.erb +1 -18
- data/app/views/spree/admin/oauth_applications/index.html.erb +4 -60
- data/app/views/spree/admin/oauth_applications/new.html.erb +1 -24
- data/app/views/spree/admin/option_types/{_filter.html.erb → _filters.html.erb} +1 -1
- data/app/views/spree/admin/option_types/_form.html.erb +8 -30
- data/app/views/spree/admin/option_types/_table_header.html.erb +19 -0
- data/app/views/spree/admin/option_types/{_option_type.html.erb → _table_row.html.erb} +1 -1
- data/app/views/spree/admin/option_types/edit.html.erb +0 -3
- data/app/views/spree/admin/option_types/index.html.erb +3 -42
- data/app/views/spree/admin/orders/_customer.html.erb +17 -21
- data/app/views/spree/admin/orders/_customer_returns.html.erb +4 -4
- data/app/views/spree/admin/orders/_filters.html.erb +49 -48
- data/app/views/spree/admin/orders/_form.html.erb +12 -0
- data/app/views/spree/admin/orders/_header.html.erb +2 -7
- data/app/views/spree/admin/orders/_line_item.html.erb +6 -11
- data/app/views/spree/admin/orders/_line_items.html.erb +39 -47
- data/app/views/spree/admin/orders/_list.html.erb +7 -7
- data/app/views/spree/admin/orders/_order.html.erb +1 -1
- data/app/views/spree/admin/orders/_payments.html.erb +2 -2
- data/app/views/spree/admin/orders/_refunds.html.erb +7 -9
- data/app/views/spree/admin/orders/_return_authorizations.html.erb +5 -5
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +1 -1
- data/app/views/spree/admin/orders/_shipment.html.erb +7 -6
- data/app/views/spree/admin/orders/_shipment_manifest_item.html.erb +1 -1
- data/app/views/spree/admin/orders/_shipments.html.erb +1 -1
- data/app/views/spree/admin/orders/_summary.html.erb +14 -7
- data/app/views/spree/admin/orders/_table_filter_dropdown.html.erb +6 -6
- data/app/views/spree/admin/orders/_tax_lines.html.erb +1 -1
- data/app/views/spree/admin/orders/billing_address/_form.html.erb +4 -2
- data/app/views/spree/admin/orders/billing_address/create.turbo_stream.erb +22 -24
- data/app/views/spree/admin/orders/billing_address/edit.html.erb +29 -31
- data/app/views/spree/admin/orders/billing_address/new.html.erb +22 -24
- data/app/views/spree/admin/orders/billing_address/update.turbo_stream.erb +22 -24
- data/app/views/spree/admin/orders/contact_information/edit.html.erb +10 -12
- data/app/views/spree/admin/orders/customer_returns/_customer_return.html.erb +7 -12
- data/app/views/spree/admin/orders/customer_returns/_reimbursements_table.html.erb +5 -5
- data/app/views/spree/admin/orders/customer_returns/_return_item_decision.html.erb +6 -6
- data/app/views/spree/admin/orders/customer_returns/_return_item_selection.html.erb +6 -6
- data/app/views/spree/admin/orders/customer_returns/new.html.erb +2 -6
- data/app/views/spree/admin/orders/index.html.erb +7 -3
- data/app/views/spree/admin/orders/new.html.erb +22 -0
- data/app/views/spree/admin/orders/return_authorizations/_form.html.erb +14 -28
- data/app/views/spree/admin/orders/return_authorizations/_return_authorization.html.erb +1 -1
- data/app/views/spree/admin/orders/return_authorizations/show.html.erb +14 -14
- data/app/views/spree/admin/orders/shipping_address/_form.html.erb +4 -2
- data/app/views/spree/admin/orders/shipping_address/create.turbo_stream.erb +8 -10
- data/app/views/spree/admin/orders/shipping_address/edit.html.erb +8 -10
- data/app/views/spree/admin/orders/shipping_address/new.html.erb +8 -10
- data/app/views/spree/admin/orders/shipping_address/update.turbo_stream.erb +8 -10
- data/app/views/spree/admin/orders/user/edit.html.erb +1 -1
- data/app/views/spree/admin/orders/user/new.html.erb +1 -1
- data/app/views/spree/admin/page_blocks/edit.html.erb +6 -9
- data/app/views/spree/admin/page_blocks/forms/_image.html.erb +4 -1
- data/app/views/spree/admin/page_blocks/forms/_metafields.html.erb +35 -0
- data/app/views/spree/admin/page_blocks/forms/products/_description.html.erb +0 -0
- data/app/views/spree/admin/page_builder/_add_block.html.erb +8 -6
- data/app/views/spree/admin/page_builder/_header.html.erb +29 -22
- data/app/views/spree/admin/page_builder/_pages_dropdown.html.erb +6 -6
- data/app/views/spree/admin/page_builder/_sidebar.html.erb +5 -5
- data/app/views/spree/admin/page_builder/_sidebar_colors.html.erb +71 -69
- data/app/views/spree/admin/page_builder/_sidebar_fonts.html.erb +62 -61
- data/app/views/spree/admin/page_builder/_sidebar_section.html.erb +4 -6
- data/app/views/spree/admin/page_builder/_sidebar_sections.html.erb +12 -2
- data/app/views/spree/admin/page_builder/_sidebar_sections_toolbar.html.erb +59 -57
- data/app/views/spree/admin/page_links/_form.html.erb +3 -3
- data/app/views/spree/admin/page_links/_linkable_type_dropdown.html.erb +3 -3
- data/app/views/spree/admin/page_links/create.turbo_stream.erb +10 -4
- data/app/views/spree/admin/page_links/destroy.turbo_stream.erb +13 -9
- data/app/views/spree/admin/page_links/edit.html.erb +26 -13
- data/app/views/spree/admin/page_links/update.turbo_stream.erb +11 -5
- data/app/views/spree/admin/page_sections/edit.html.erb +5 -8
- data/app/views/spree/admin/page_sections/forms/_breadcrumbs.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_image_with_text.html.erb +2 -5
- data/app/views/spree/admin/pages/_form.html.erb +1 -4
- data/app/views/spree/admin/pages/_table_header.html.erb +6 -0
- data/app/views/spree/admin/pages/_table_row.html.erb +28 -0
- data/app/views/spree/admin/pages/edit.html.erb +9 -11
- data/app/views/spree/admin/pages/{_filters.html.erb → filters.html.erb} +1 -1
- data/app/views/spree/admin/pages/index.html.erb +1 -24
- data/app/views/spree/admin/pages/new.html.erb +1 -17
- data/app/views/spree/admin/payment_methods/_available_payment_method.html.erb +1 -1
- data/app/views/spree/admin/payment_methods/_form.html.erb +4 -24
- data/app/views/spree/admin/payment_methods/_payment_method.html.erb +5 -2
- data/app/views/spree/admin/payment_methods/index.html.erb +17 -19
- data/app/views/spree/admin/payments/_payment.html.erb +16 -16
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +3 -3
- data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +7 -7
- data/app/views/spree/admin/policies/_filters.html.erb +8 -0
- data/app/views/spree/admin/policies/_form.html.erb +7 -0
- data/app/views/spree/admin/policies/_table_header.html.erb +8 -0
- data/app/views/spree/admin/policies/_table_row.html.erb +20 -0
- data/app/views/spree/admin/policies/edit.html.erb +2 -0
- data/app/views/spree/admin/policies/index.html.erb +9 -0
- data/app/views/spree/admin/policies/new.html.erb +1 -0
- data/app/views/spree/admin/policies/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/post_categories/_form.html.erb +2 -11
- data/app/views/spree/admin/post_categories/_table_header.html.erb +5 -0
- data/app/views/spree/admin/post_categories/{_post_category.html.erb → _table_row.html.erb} +3 -3
- data/app/views/spree/admin/post_categories/edit.html.erb +1 -14
- data/app/views/spree/admin/post_categories/index.html.erb +1 -20
- data/app/views/spree/admin/post_categories/new.html.erb +1 -14
- data/app/views/spree/admin/posts/_form.html.erb +21 -43
- data/app/views/spree/admin/posts/_table_header.html.erb +7 -0
- data/app/views/spree/admin/posts/{_post.html.erb → _table_row.html.erb} +2 -2
- data/app/views/spree/admin/posts/filters.html.erb +29 -0
- data/app/views/spree/admin/posts/index.html.erb +1 -24
- data/app/views/spree/admin/products/_bulk_operations.html.erb +6 -16
- data/app/views/spree/admin/products/_filters.html.erb +31 -38
- data/app/views/spree/admin/products/_form.html.erb +3 -2
- data/app/views/spree/admin/products/_list.html.erb +1 -1
- data/app/views/spree/admin/products/_product.html.erb +1 -1
- data/app/views/spree/admin/products/_table_filter_dropdown.html.erb +6 -6
- data/app/views/spree/admin/products/bulk_modal.html.erb +13 -15
- data/app/views/spree/admin/products/edit.html.erb +0 -1
- data/app/views/spree/admin/products/form/_base.html.erb +1 -5
- data/app/views/spree/admin/products/form/_properties.html.erb +2 -2
- data/app/views/spree/admin/products/form/_shipping.html.erb +1 -5
- data/app/views/spree/admin/products/form/_tax.html.erb +1 -5
- data/app/views/spree/admin/products/form/_variants.html.erb +1 -1
- data/app/views/spree/admin/products/index.html.erb +7 -2
- data/app/views/spree/admin/promotion_actions/_promotion_action.html.erb +7 -7
- data/app/views/spree/admin/promotion_actions/forms/_create_line_items.html.erb +4 -4
- data/app/views/spree/admin/promotion_actions/new.html.erb +29 -35
- data/app/views/spree/admin/promotion_rules/_promotion_rule.html.erb +8 -8
- data/app/views/spree/admin/promotion_rules/forms/_currency.html.erb +1 -4
- data/app/views/spree/admin/promotion_rules/forms/_item_total.html.erb +1 -1
- data/app/views/spree/admin/promotion_rules/new.html.erb +30 -36
- data/app/views/spree/admin/promotions/_actions.html.erb +4 -8
- data/app/views/spree/admin/promotions/_filters.html.erb +5 -9
- data/app/views/spree/admin/promotions/_form.html.erb +36 -0
- data/app/views/spree/admin/promotions/_rules.html.erb +4 -8
- data/app/views/spree/admin/promotions/_sidebar.html.erb +4 -4
- data/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb +7 -7
- data/app/views/spree/admin/promotions/_table_header.html.erb +7 -0
- data/app/views/spree/admin/promotions/{_promotion.html.erb → _table_row.html.erb} +2 -5
- data/app/views/spree/admin/promotions/edit.html.erb +1 -1
- data/app/views/spree/admin/promotions/form/_kind.html.erb +52 -48
- data/app/views/spree/admin/promotions/form/_settings.html.erb +2 -8
- data/app/views/spree/admin/promotions/index.html.erb +1 -26
- data/app/views/spree/admin/promotions/new.html.erb +1 -57
- data/app/views/spree/admin/properties/_filters.html.erb +5 -0
- data/app/views/spree/admin/properties/_form.html.erb +8 -22
- data/app/views/spree/admin/properties/_table_header.html.erb +9 -0
- data/app/views/spree/admin/properties/{_property.html.erb → _table_row.html.erb} +2 -2
- data/app/views/spree/admin/properties/edit.html.erb +1 -21
- data/app/views/spree/admin/properties/index.html.erb +3 -38
- data/app/views/spree/admin/properties/new.html.erb +1 -18
- data/app/views/spree/admin/refund_reasons/_form.html.erb +1 -0
- data/app/views/spree/admin/refund_reasons/_table_header.html.erb +6 -0
- data/app/views/spree/admin/refund_reasons/_table_row.html.erb +14 -0
- data/app/views/spree/admin/refund_reasons/edit.html.erb +1 -3
- data/app/views/spree/admin/refund_reasons/index.html.erb +1 -36
- data/app/views/spree/admin/refund_reasons/new.html.erb +1 -4
- data/app/views/spree/admin/refunds/_form.html.erb +1 -5
- data/app/views/spree/admin/refunds/edit.html.erb +9 -11
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +10 -31
- data/app/views/spree/admin/reimbursement_types/_table_header.html.erb +7 -0
- data/app/views/spree/admin/reimbursement_types/_table_row.html.erb +17 -0
- data/app/views/spree/admin/reimbursement_types/edit.html.erb +1 -14
- data/app/views/spree/admin/reimbursement_types/index.html.erb +1 -40
- data/app/views/spree/admin/reimbursement_types/new.html.erb +1 -14
- data/app/views/spree/admin/reimbursements/edit.html.erb +9 -9
- data/app/views/spree/admin/reimbursements/show.html.erb +12 -12
- data/app/views/spree/admin/reports/_report.html.erb +1 -1
- data/app/views/spree/admin/reports/index.html.erb +2 -2
- data/app/views/spree/admin/reports/new.html.erb +2 -1
- data/app/views/spree/admin/return_authorization_reasons/_form.html.erb +1 -0
- data/app/views/spree/admin/return_authorization_reasons/_table_header.html.erb +5 -0
- data/app/views/spree/admin/return_authorization_reasons/_table_row.html.erb +18 -0
- data/app/views/spree/admin/return_authorization_reasons/edit.html.erb +1 -3
- data/app/views/spree/admin/return_authorization_reasons/index.html.erb +1 -39
- data/app/views/spree/admin/return_authorization_reasons/new.html.erb +1 -4
- data/app/views/spree/admin/return_authorizations/_list.html.erb +3 -3
- data/app/views/spree/admin/return_authorizations/_table_header.html.erb +6 -0
- data/app/views/spree/admin/return_authorizations/{_return_authorization.html.erb → _table_row.html.erb} +1 -1
- data/app/views/spree/admin/return_authorizations/{_filters.html.erb → filters.html.erb} +7 -12
- data/app/views/spree/admin/return_authorizations/index.html.erb +1 -10
- data/app/views/spree/admin/roles/_form.html.erb +4 -5
- data/app/views/spree/admin/roles/edit.html.erb +1 -15
- data/app/views/spree/admin/roles/index.html.erb +4 -4
- data/app/views/spree/admin/roles/new.html.erb +1 -18
- data/app/views/spree/admin/shared/_alerts.html.erb +3 -1
- data/app/views/spree/admin/shared/_back_to_dashboard.html.erb +1 -0
- data/app/views/spree/admin/shared/_breadcrumbs.html.erb +1 -1
- data/app/views/spree/admin/shared/_bulk_modal.html.erb +13 -19
- data/app/views/spree/admin/shared/_calendar_range_picker.html.erb +6 -7
- data/app/views/spree/admin/shared/_close_bulk_modal.turbo_stream.erb +4 -1
- data/app/views/spree/admin/shared/_content_header.html.erb +20 -38
- data/app/views/spree/admin/shared/_dialog.html.erb +4 -0
- data/app/views/spree/admin/shared/_drawer.html.erb +4 -0
- data/app/views/spree/admin/shared/_edit_resource.html.erb +17 -0
- data/app/views/spree/admin/shared/_export_modal.html.erb +3 -0
- data/app/views/spree/admin/shared/_filters_button.html.erb +2 -2
- data/app/views/spree/admin/shared/_head.html.erb +7 -3
- data/app/views/spree/admin/shared/_header.html.erb +2 -5
- data/app/views/spree/admin/shared/_index_table.html.erb +34 -0
- data/app/views/spree/admin/shared/_index_table_options.html.erb +5 -7
- data/app/views/spree/admin/{variants/form → shared}/_media_asset.html.erb +3 -5
- data/app/views/spree/admin/{variants/form/_media.html.erb → shared/_media_form.html.erb} +2 -2
- data/app/views/spree/admin/shared/_multi_product_picker.html.erb +7 -7
- data/app/views/spree/admin/shared/_new_item_dropdown.html.erb +8 -10
- data/app/views/spree/admin/shared/_new_resource.html.erb +18 -0
- data/app/views/spree/admin/shared/_no_resource_found.html.erb +1 -1
- data/app/views/spree/admin/shared/_page_alerts.html.erb +5 -0
- data/app/views/spree/admin/shared/_page_section_image.html.erb +6 -0
- data/app/views/spree/admin/shared/_page_tabs.html.erb +9 -0
- data/app/views/spree/admin/shared/_refunds.html.erb +6 -8
- data/app/views/spree/admin/shared/_seo.html.erb +3 -8
- data/app/views/spree/admin/shared/_team_nav.html.erb +1 -3
- data/app/views/spree/admin/shared/_user.html.erb +2 -1
- data/app/views/spree/admin/shared/_user_dropdown.html.erb +7 -9
- data/app/views/spree/admin/shared/named_types/_edit.html.erb +1 -14
- data/app/views/spree/admin/shared/named_types/_form.html.erb +2 -11
- data/app/views/spree/admin/shared/named_types/_new.html.erb +1 -14
- data/app/views/spree/admin/shared/sidebar/_customers_nav.html.erb +8 -0
- data/app/views/spree/admin/shared/sidebar/_enterprise_edition_notice.html.erb +1 -1
- data/app/views/spree/admin/shared/sidebar/_products_nav.html.erb +1 -1
- data/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb +8 -9
- data/app/views/spree/admin/shared/sidebar/_store_nav.html.erb +16 -14
- data/app/views/spree/admin/shared/sidebar/_vendors_nav.html.erb +5 -2
- data/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb +7 -7
- data/app/views/spree/admin/shipping_categories/_form.html.erb +1 -5
- data/app/views/spree/admin/shipping_categories/_table_header.html.erb +4 -0
- data/app/views/spree/admin/shipping_categories/_table_row.html.erb +8 -0
- data/app/views/spree/admin/shipping_categories/edit.html.erb +1 -14
- data/app/views/spree/admin/shipping_categories/index.html.erb +3 -30
- data/app/views/spree/admin/shipping_categories/new.html.erb +1 -14
- data/app/views/spree/admin/shipping_methods/_table_header.html.erb +8 -0
- data/app/views/spree/admin/shipping_methods/{_shipping_method.html.erb → _table_row.html.erb} +1 -1
- data/app/views/spree/admin/shipping_methods/form/_display.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/form/_tax_category.html.erb +1 -4
- data/app/views/spree/admin/shipping_methods/form/_tracking_url.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/index.html.erb +3 -26
- data/app/views/spree/admin/stock_items/_filters.html.erb +12 -21
- data/app/views/spree/admin/stock_items/_table_header.html.erb +9 -0
- data/app/views/spree/admin/stock_items/{_stock_item.html.erb → _table_row.html.erb} +1 -1
- data/app/views/spree/admin/stock_items/index.html.erb +1 -27
- data/app/views/spree/admin/stock_locations/_form.html.erb +3 -15
- data/app/views/spree/admin/stock_locations/_table_header.html.erb +9 -0
- data/app/views/spree/admin/stock_locations/{_stock_location.html.erb → _table_row.html.erb} +7 -6
- data/app/views/spree/admin/stock_locations/edit.html.erb +1 -14
- data/app/views/spree/admin/stock_locations/index.html.erb +3 -26
- data/app/views/spree/admin/stock_locations/new.html.erb +1 -14
- data/app/views/spree/admin/stock_transfers/_filters.html.erb +25 -33
- data/app/views/spree/admin/stock_transfers/_new_variant_modal.html.erb +22 -26
- data/app/views/spree/admin/stock_transfers/_table_header.html.erb +9 -0
- data/app/views/spree/admin/stock_transfers/{_stock_transfer.html.erb → _table_row.html.erb} +2 -2
- data/app/views/spree/admin/stock_transfers/index.html.erb +1 -26
- data/app/views/spree/admin/stock_transfers/new.html.erb +5 -6
- data/app/views/spree/admin/stock_transfers/show.html.erb +3 -3
- data/app/views/spree/admin/store_credit_categories/_form.html.erb +1 -5
- data/app/views/spree/admin/store_credit_categories/index.html.erb +3 -3
- data/app/views/spree/admin/store_credit_events/_store_credit_event.html.erb +1 -1
- data/app/views/spree/admin/store_credits/_form.html.erb +3 -16
- data/app/views/spree/admin/store_credits/_list.html.erb +7 -7
- data/app/views/spree/admin/store_credits/_store_credit.html.erb +2 -2
- data/app/views/spree/admin/store_credits/show.html.erb +6 -6
- data/app/views/spree/admin/storefront/edit.html.erb +10 -53
- data/app/views/spree/admin/stores/edit.html.erb +10 -6
- data/app/views/spree/admin/stores/form/_basic.html.erb +65 -158
- data/app/views/spree/admin/stores/form/_checkout.html.erb +35 -51
- data/app/views/spree/admin/stores/form/_checkout_links.html.erb +28 -0
- data/app/views/spree/admin/stores/form/_emails.html.erb +33 -64
- data/app/views/spree/admin/stores/form/_policies.html.erb +55 -71
- data/app/views/spree/admin/stores/new.html.erb +119 -129
- data/app/views/spree/admin/tax_categories/_form.html.erb +4 -17
- data/app/views/spree/admin/tax_categories/_table_header.html.erb +7 -0
- data/app/views/spree/admin/tax_categories/{_tax_category.html.erb → _table_row.html.erb} +1 -1
- data/app/views/spree/admin/tax_categories/edit.html.erb +1 -14
- data/app/views/spree/admin/tax_categories/index.html.erb +3 -24
- data/app/views/spree/admin/tax_categories/new.html.erb +1 -14
- data/app/views/spree/admin/tax_rates/_form.html.erb +6 -26
- data/app/views/spree/admin/tax_rates/_table_header.html.erb +9 -0
- data/app/views/spree/admin/tax_rates/{_tax_rate.html.erb → _table_row.html.erb} +1 -1
- data/app/views/spree/admin/tax_rates/edit.html.erb +1 -14
- data/app/views/spree/admin/tax_rates/index.html.erb +3 -26
- data/app/views/spree/admin/tax_rates/new.html.erb +1 -14
- data/app/views/spree/admin/taxonomies/_form.html.erb +5 -0
- data/app/views/spree/admin/taxonomies/_table_header.html.erb +6 -0
- data/app/views/spree/admin/taxonomies/{_taxonomy.html.erb → _table_row.html.erb} +3 -3
- data/app/views/spree/admin/taxonomies/edit.html.erb +1 -25
- data/app/views/spree/admin/taxonomies/filters.html.erb +6 -0
- data/app/views/spree/admin/taxonomies/index.html.erb +3 -34
- data/app/views/spree/admin/taxonomies/new.html.erb +1 -23
- data/app/views/spree/admin/taxons/_form.html.erb +6 -30
- data/app/views/spree/admin/taxons/_rule_form.html.erb +2 -1
- data/app/views/spree/admin/taxons/_rules_form.html.erb +1 -1
- data/app/views/spree/admin/taxons/edit.html.erb +0 -1
- data/app/views/spree/admin/themes/_theme.html.erb +9 -8
- data/app/views/spree/admin/themes/index.html.erb +14 -16
- data/app/views/spree/admin/translations/edit.html.erb +34 -49
- data/app/views/spree/admin/translations/policies/_form.html.erb +12 -0
- data/app/views/spree/admin/translations/products/_form.html.erb +2 -0
- data/app/views/spree/admin/translations/translation_rows/_permalink_field_row.html.erb +11 -20
- data/app/views/spree/admin/translations/translation_rows/_rich_textarea_row.html.erb +1 -11
- data/app/views/spree/admin/translations/translation_rows/_text_field_row.html.erb +1 -5
- data/app/views/spree/admin/translations/translation_rows/_textarea_row.html.erb +2 -9
- data/app/views/spree/admin/translations/translation_rows/_tinymce_row.html.erb +4 -11
- data/app/views/spree/admin/translations/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/users/_filters.html.erb +50 -66
- data/app/views/spree/admin/users/_form.html.erb +3 -36
- data/app/views/spree/admin/users/_form_fields.html.erb +15 -0
- data/app/views/spree/admin/users/_last_order.html.erb +3 -2
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +1 -1
- data/app/views/spree/admin/users/_tabs.html.erb +31 -31
- data/app/views/spree/admin/users/_user.html.erb +1 -1
- data/app/views/spree/admin/users/bulk_modal.html.erb +11 -13
- data/app/views/spree/admin/users/edit.html.erb +1 -1
- data/app/views/spree/admin/users/index.html.erb +53 -55
- data/app/views/spree/admin/users/new.html.erb +1 -18
- data/app/views/spree/admin/variants/_variant.html.erb +1 -1
- data/app/views/spree/admin/variants/edit.html.erb +1 -1
- data/app/views/spree/admin/variants/form/_basic.html.erb +4 -17
- data/app/views/spree/admin/variants/form/_dimensions.html.erb +4 -18
- data/app/views/spree/admin/variants/form/_inventory.html.erb +6 -12
- data/app/views/spree/admin/variants/form/_pricing.html.erb +3 -3
- data/app/views/spree/admin/webhook_events/_webhook_event.html.erb +1 -1
- data/app/views/spree/admin/webhooks_subscribers/_form.html.erb +57 -73
- data/app/views/spree/admin/webhooks_subscribers/_table_header.html.erb +7 -0
- data/app/views/spree/admin/webhooks_subscribers/{_webhooks_subscriber.html.erb → _table_row.html.erb} +3 -3
- data/app/views/spree/admin/webhooks_subscribers/edit.html.erb +1 -9
- data/app/views/spree/admin/webhooks_subscribers/index.html.erb +1 -23
- data/app/views/spree/admin/webhooks_subscribers/new.html.erb +1 -11
- data/app/views/spree/admin/webhooks_subscribers/show.html.erb +8 -8
- data/app/views/spree/admin/zones/_form.html.erb +8 -28
- data/app/views/spree/admin/zones/_table_header.html.erb +8 -0
- data/app/views/spree/admin/zones/_table_row.html.erb +8 -0
- data/app/views/spree/admin/zones/edit.html.erb +1 -14
- data/app/views/spree/admin/zones/index.html.erb +3 -35
- data/app/views/spree/admin/zones/new.html.erb +1 -14
- data/config/importmap.rb +32 -2
- data/config/initializers/assets.rb +3 -1
- data/config/locales/en.yml +32 -3
- data/config/routes.rb +27 -4
- data/lib/generators/spree/admin/scaffold/scaffold_generator.rb +51 -0
- data/lib/generators/spree/admin/scaffold/templates/controller.rb.tt +11 -0
- data/lib/generators/spree/admin/scaffold/templates/views/_filters.html.erb.tt +13 -0
- data/lib/generators/spree/admin/scaffold/templates/views/_form.html.erb.tt +5 -0
- data/lib/generators/spree/admin/scaffold/templates/views/_table_header.html.erb.tt +5 -0
- data/lib/generators/spree/admin/scaffold/templates/views/_table_row.html.erb.tt +9 -0
- data/lib/generators/spree/admin/scaffold/templates/views/edit.html.erb.tt +1 -0
- data/lib/generators/spree/admin/scaffold/templates/views/index.html.erb.tt +9 -0
- data/lib/generators/spree/admin/scaffold/templates/views/new.html.erb.tt +1 -0
- data/lib/spree/admin/engine.rb +13 -9
- data/lib/spree/admin/runtime_configuration.rb +5 -0
- data/lib/spree/admin/testing_support/capybara_utils.rb +19 -0
- data/lib/spree/admin.rb +1 -3
- data/vendor/javascript/@codemirror--autocomplete.js +4 -0
- data/vendor/javascript/@codemirror--commands.js +4 -0
- data/vendor/javascript/@codemirror--lang-json.js +4 -0
- data/vendor/javascript/@codemirror--language.js +4 -0
- data/vendor/javascript/@codemirror--lint.js +4 -0
- data/vendor/javascript/@codemirror--search.js +4 -0
- data/vendor/javascript/@codemirror--state.js +4 -0
- data/vendor/javascript/@codemirror--view.js +4 -0
- data/vendor/javascript/@floating-ui--core.js +4 -0
- data/vendor/javascript/@floating-ui--dom.js +12 -0
- data/vendor/javascript/@floating-ui--utils--dom.js +4 -0
- data/vendor/javascript/@floating-ui--utils.js +4 -0
- data/vendor/javascript/@highlightjs--cdn-assets--es--core.min.js.js +308 -0
- data/vendor/javascript/@highlightjs--cdn-assets--es--languages--json.min.js.js +10 -0
- data/vendor/javascript/@lezer--common.js +4 -0
- data/vendor/javascript/@lezer--highlight.js +4 -0
- data/vendor/javascript/@lezer--json.js +4 -0
- data/vendor/javascript/@lezer--lr.js +4 -0
- data/vendor/javascript/@marijn--find-cluster-break.js +4 -0
- data/vendor/javascript/@stimulus-components--dialog.js +4 -0
- data/vendor/javascript/@stimulus-components--dropdown.js +4 -0
- data/vendor/javascript/codemirror.js +4 -0
- data/vendor/javascript/crelt.js +4 -0
- data/vendor/javascript/stimulus-use.js +2 -2
- data/vendor/javascript/style-mod.js +4 -0
- data/vendor/javascript/trix@2.1.15.js +5 -0
- data/vendor/javascript/w3c-keyname.js +4 -0
- metadata +210 -71
- data/app/assets/stylesheets/spree/admin/plugins/flatfile.scss +0 -4
- data/app/helpers/spree/admin/session_assets_helper.rb +0 -24
- data/app/javascript/spree/admin/controllers/bootstrap_tabs_controller.js +0 -9
- data/app/javascript/spree/admin/controllers/enable_button_controller.js +0 -29
- data/app/views/spree/admin/coupon_codes/_coupon_code.html.erb +0 -8
- data/app/views/spree/admin/errors/forbidden.html.erb +0 -13
- data/app/views/spree/admin/gift_cards/index.csv.erb +0 -22
- data/app/views/spree/admin/orders/user/create.turbo_stream.erb +0 -12
- data/app/views/spree/admin/orders/user/update.turbo_stream.erb +0 -5
- data/app/views/spree/admin/pages/_page.html.erb +0 -26
- data/app/views/spree/admin/payment_methods/update.turbo_stream.erb +0 -1
- data/app/views/spree/admin/posts/_filters.html.erb +0 -36
- data/app/views/spree/admin/stores/create.turbo_stream.erb +0 -5
- data/app/views/spree/admin/translations/_translations_unavailable.html.erb +0 -8
- data/app/views/spree/admin/users/index.csv.erb +0 -43
- data/vendor/javascript/trix@2.1.12.js +0 -5
- /data/app/views/spree/admin/page_blocks/forms/{_buy_buttons.html.erb → products/_buy_buttons.html.erb} +0 -0
- /data/app/views/spree/admin/page_blocks/forms/{_quantity_selector.html.erb → products/_quantity_selector.html.erb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f22556fbb3d151c7c2b05dab509022275e6c59f8de4adb4896bcdf5bc48f8f0d
|
|
4
|
+
data.tar.gz: f4dd860a86b552d8fbdd6d5e6492d94d46a9ce125a6fc4a9fa0748cebf5a657e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 649ede281c65678902ee006fbe831f456aaac7de23d72657009125c9281fd0231f586de5d951c67114c40095bc47d7a96b25f25c4e529b10300b7f0aac8f8dac
|
|
7
|
+
data.tar.gz: 70808fb3caba9f95df1108d70e14625e8d9f3f6bd3e8a2495cdf4034720fd4d18f34428ab8931c225e3157b788f2e1c7189592b732f9e9fac372565304aa07d7
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
@import 'components/dropdowns';
|
|
11
11
|
@import 'components/main';
|
|
12
12
|
@import 'components/buttons';
|
|
13
|
+
@import 'components/tooltips';
|
|
13
14
|
@import 'components/filters';
|
|
14
15
|
@import 'components/navigation';
|
|
15
|
-
@import 'components/modals';
|
|
16
|
+
@import 'components/modals'; // old bootstrap modals
|
|
17
|
+
@import 'components/dialogs'; // new native dialogs
|
|
16
18
|
@import 'components/offcanvas';
|
|
17
19
|
@import 'components/variants_form';
|
|
18
20
|
@import 'components/media_form';
|
|
@@ -21,11 +23,11 @@
|
|
|
21
23
|
@import 'components/search_picker';
|
|
22
24
|
@import 'components/sortable_tree';
|
|
23
25
|
@import 'components/bulk_panel';
|
|
26
|
+
@import 'components/wizard';
|
|
24
27
|
|
|
25
28
|
@import 'plugins/tinymce_custom';
|
|
26
29
|
@import 'plugins/trix_custom';
|
|
27
30
|
@import 'plugins/tom-select.bootstrap4';
|
|
28
|
-
@import 'plugins/flatfile';
|
|
29
31
|
|
|
30
32
|
@import url('https://unpkg.com/trix@2.1.12/dist/trix.css');
|
|
31
33
|
@import url('https://esm.sh/@uppy/core@4.2.0/dist/style.min.css');
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
@import url('https://esm.sh/@uppy/image-editor@3.1.0/dist/style.min.css');
|
|
34
36
|
@import url('https://esm.sh/animate.css@4.1.1/animate.min.css');
|
|
35
37
|
@import url('https://esm.sh/@simonwep/pickr@1.8.2/dist/themes/classic.min.css');
|
|
38
|
+
@import url('https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/github-dark.min.css');
|
|
36
39
|
|
|
37
40
|
@import 'plugins/uppy_fixes';
|
|
38
41
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
.alert {
|
|
6
6
|
background-repeat: no-repeat;
|
|
7
7
|
background-position: 1rem center;
|
|
8
|
-
background-size:
|
|
9
|
-
padding-left:
|
|
10
|
-
min-height:
|
|
8
|
+
background-size: 1rem 1rem;
|
|
9
|
+
padding-left: 44px;
|
|
10
|
+
min-height: 2.5rem;
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
justify-content: center;
|
|
@@ -15,33 +15,38 @@
|
|
|
15
15
|
> p:last-child {
|
|
16
16
|
margin-bottom: 0;
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
a {
|
|
20
|
+
font-weight: $font-weight-medium;
|
|
21
|
+
color: theme-color('primary');
|
|
22
|
+
}
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
.alert-info {
|
|
21
26
|
background-color: #f7fcff;
|
|
22
27
|
border-color: rgba($info, 0.1) !important;
|
|
23
28
|
|
|
24
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='
|
|
29
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-info-circle'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0' /%3E%3Cpath d='M12 9h.01' /%3E%3Cpath d='M11 12h1v4h1' /%3E%3C/svg%3E");
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
.alert-warning {
|
|
28
33
|
border-color: rgba($warning, 0.1) !important;
|
|
29
|
-
|
|
30
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='
|
|
34
|
+
color: inherit;
|
|
35
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-alert-circle'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0' /%3E%3Cpath d='M12 8v4' /%3E%3Cpath d='M12 16h.01' /%3E%3C/svg%3E");
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
.alert-danger {
|
|
34
39
|
background-color: #FEF2F2;
|
|
35
40
|
border-color: #FBE3E3;
|
|
36
41
|
color: #450A09;
|
|
37
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='
|
|
42
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-exclamation-circle'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /%3E%3Cpath d='M12 9v4' /%3E%3Cpath d='M12 16v.01' /%3E%3C/svg%3E");
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
.alert-success {
|
|
41
46
|
background-color: #ECFDF5;
|
|
42
47
|
color: #092E26;
|
|
43
48
|
border-color: #D5F9E6;
|
|
44
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='
|
|
49
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-check-circle'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /%3E%3Cpath d='M9 12l2 2l4 -4' /%3E%3C/svg%3E");
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
.page-alerts {
|
|
@@ -49,3 +54,16 @@
|
|
|
49
54
|
@extend .rounded-lg;
|
|
50
55
|
}
|
|
51
56
|
}
|
|
57
|
+
|
|
58
|
+
.alerts-container {
|
|
59
|
+
position: fixed;
|
|
60
|
+
width: 100%;
|
|
61
|
+
z-index: 1070;
|
|
62
|
+
top: 0.4rem;
|
|
63
|
+
|
|
64
|
+
.alert {
|
|
65
|
+
border-width: 1px;
|
|
66
|
+
box-shadow: $box-shadow-xs;
|
|
67
|
+
border-radius: $border-radius-lg;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
.badge-reimbursed,
|
|
37
37
|
.badge-allocation,
|
|
38
38
|
.bg-success {
|
|
39
|
-
border: 1px solid
|
|
39
|
+
border: 1px solid transparent !important;
|
|
40
40
|
background-color: #C6F6D5 !important;
|
|
41
41
|
color: #22543D !important;
|
|
42
42
|
}
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
.badge-partially_canceled,
|
|
55
55
|
.badge-void,
|
|
56
56
|
.badge-danger {
|
|
57
|
+
border: 1px solid transparent;
|
|
57
58
|
background-color: #fee2e1 !important;
|
|
58
59
|
color: #8e1f0b !important;
|
|
59
60
|
}
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
.badge-ready, // unfulfilled
|
|
71
72
|
.bg-warning
|
|
72
73
|
{
|
|
73
|
-
border: 1px solid
|
|
74
|
+
border: 1px solid transparent;
|
|
74
75
|
background-color: rgba(255, 235, 120, 1);
|
|
75
76
|
color: rgba(79, 71, 0, 1);
|
|
76
77
|
}
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
.badge-partial,
|
|
110
111
|
.badge-capture,
|
|
111
112
|
.badge-info {
|
|
112
|
-
border: 1px solid
|
|
113
|
+
border: 1px solid transparent;
|
|
113
114
|
background-color: #E0EFFE;
|
|
114
115
|
color: #00527c;
|
|
115
116
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
.bulk-panel-container {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
|
-
border-radius:
|
|
5
|
-
background-color: $
|
|
4
|
+
border-radius: 1rem;
|
|
5
|
+
background-color: $dropdown-bg;
|
|
6
6
|
box-shadow: $dropdown-box-shadow;
|
|
7
7
|
animation: bounceInUp;
|
|
8
8
|
animation-duration: 0.5s;
|
|
9
|
+
height: 3rem;
|
|
10
|
+
gap: 0.5rem;
|
|
9
11
|
|
|
10
12
|
.btn {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
border-radius: 0;
|
|
13
|
+
height: 2.5rem;
|
|
14
|
+
&:hover {
|
|
15
|
+
background-color: $gray-50;
|
|
16
|
+
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
> * {
|
|
19
|
-
height: 2.
|
|
20
|
+
height: 2.5rem;
|
|
20
21
|
display: flex;
|
|
21
22
|
align-items: center;
|
|
22
23
|
justify-content: center;
|
|
@@ -24,11 +25,6 @@
|
|
|
24
25
|
&:first-child {
|
|
25
26
|
border-top-left-radius: $border-radius-lg;
|
|
26
27
|
border-bottom-left-radius: $border-radius-lg;
|
|
27
|
-
|
|
28
|
-
.btn {
|
|
29
|
-
border-top-left-radius: $border-radius-lg;
|
|
30
|
-
border-bottom-left-radius: $border-radius-lg;
|
|
31
|
-
}
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
&:last-child {
|
|
@@ -40,18 +36,6 @@
|
|
|
40
36
|
border-bottom-right-radius: $border-radius-lg;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
|
-
|
|
44
|
-
&:after {
|
|
45
|
-
content: '';
|
|
46
|
-
display: block;
|
|
47
|
-
width: 1px;
|
|
48
|
-
height: 100%;
|
|
49
|
-
background-color: $gray-50;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:last-child:after {
|
|
53
|
-
display: none;
|
|
54
|
-
}
|
|
55
39
|
}
|
|
56
40
|
|
|
57
41
|
.btn-close {
|
|
@@ -87,10 +71,11 @@
|
|
|
87
71
|
padding-right: 0;
|
|
88
72
|
|
|
89
73
|
.bulk-operations-counter-label {
|
|
90
|
-
|
|
74
|
+
padding-right: 1rem;
|
|
91
75
|
display: flex;
|
|
92
76
|
align-items: center;
|
|
93
77
|
justify-content: center;
|
|
94
78
|
gap: 0.5rem;
|
|
79
|
+
border-right: 1px solid $border-color;
|
|
95
80
|
}
|
|
96
81
|
}
|
|
@@ -11,6 +11,8 @@ button[disabled] .show-when-enabled { display: none; }
|
|
|
11
11
|
|
|
12
12
|
.btn {
|
|
13
13
|
box-shadow: $btn-box-shadow;
|
|
14
|
+
|
|
15
|
+
transition: background-color 0.1s linear 0s, border-color 0.2s linear 0s !important;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
.btn,
|
|
@@ -62,19 +64,19 @@ button[disabled] .show-when-enabled { display: none; }
|
|
|
62
64
|
&:hover {
|
|
63
65
|
background: rgba($danger, 0.1) !important;
|
|
64
66
|
border-color: rgba($danger, 0.1) !important;
|
|
65
|
-
color:
|
|
67
|
+
color: $danger !important;
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
.hover-light {
|
|
70
72
|
&:hover, &:focus {
|
|
71
|
-
background-color: $
|
|
73
|
+
background-color: rgba($light, 0.75);
|
|
72
74
|
text-decoration: none;
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
.hover-gray {
|
|
76
78
|
&:hover, &:focus {
|
|
77
|
-
background-color: $gray-
|
|
79
|
+
background-color: $gray-50;
|
|
78
80
|
text-decoration: none;
|
|
79
81
|
}
|
|
80
82
|
}
|
|
@@ -91,23 +93,12 @@ button[disabled] .show-when-enabled { display: none; }
|
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
|
|
94
|
-
.btn-link {
|
|
95
|
-
color: theme-color('primary') !important;
|
|
96
|
-
border-color: $border-color;
|
|
97
|
-
|
|
98
|
-
&:hover, &:focus {
|
|
99
|
-
text-decoration: none !important;
|
|
100
|
-
background-color: theme-color('action') !important;
|
|
101
|
-
border-color: theme-color('action-border') !important;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
96
|
.btn-secondary {
|
|
106
97
|
color: $primary;
|
|
107
|
-
border-color:
|
|
98
|
+
border-color: rgba($primary, 0.1);
|
|
108
99
|
|
|
109
100
|
&:hover, &:focus {
|
|
110
|
-
border-color: rgba($primary, 0.
|
|
101
|
+
border-color: rgba($primary, 0.2) !important;
|
|
111
102
|
color: $primary !important;
|
|
112
103
|
}
|
|
113
104
|
|
|
@@ -143,13 +134,13 @@ button[disabled] .show-when-enabled { display: none; }
|
|
|
143
134
|
}
|
|
144
135
|
|
|
145
136
|
.btn-light {
|
|
146
|
-
background-color: $
|
|
137
|
+
background-color: $gray-25;
|
|
147
138
|
border-color: $border-color;
|
|
148
139
|
color: $gray-700;
|
|
149
140
|
|
|
150
141
|
&:hover, &:focus {
|
|
151
142
|
border-color: $border-color;
|
|
152
|
-
background-color: $gray-
|
|
143
|
+
background-color: $gray-50;
|
|
153
144
|
color: $gray-900;
|
|
154
145
|
}
|
|
155
146
|
|
|
@@ -45,25 +45,30 @@
|
|
|
45
45
|
.card-header {
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
|
-
height:
|
|
48
|
+
height: 54px;
|
|
49
49
|
border-bottom: 1px solid $gray-50;
|
|
50
|
+
padding-right: 1rem;
|
|
50
51
|
|
|
51
52
|
.card-title {
|
|
52
53
|
margin-bottom: 0;
|
|
53
54
|
font-size: $font-size-plus;
|
|
54
|
-
font-weight: $font-weight-bold;
|
|
55
55
|
font-family: $font-family-sans-serif;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
.card-footer {
|
|
59
|
+
border-top-width: 0;
|
|
60
|
+
}
|
|
58
61
|
|
|
59
62
|
.card-footer.border-top, .card-body.border-top, .card .border-top, .card .border-bottom, .card .list-group-item {
|
|
60
63
|
border-color: $gray-50 !important;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
.card, .card-lg {
|
|
64
|
-
|
|
67
|
+
border-width: $card-border-width;
|
|
68
|
+
border-style: solid;
|
|
69
|
+
border-color: $card-border-color;
|
|
65
70
|
background-color: $card-bg;
|
|
66
|
-
border-radius: $border-radius
|
|
71
|
+
border-radius: $card-border-radius;
|
|
67
72
|
}
|
|
68
73
|
.card-lg {
|
|
69
74
|
margin-bottom: 1rem;
|
|
@@ -93,33 +98,49 @@
|
|
|
93
98
|
@extend .overflow-hidden;
|
|
94
99
|
|
|
95
100
|
.card-header {
|
|
96
|
-
|
|
101
|
+
&:hover {
|
|
102
|
+
background-color: $light !important;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.card-body {
|
|
106
|
+
border-top: 1px solid $gray-50;
|
|
97
107
|
}
|
|
98
|
-
.card-header a {
|
|
99
|
-
padding: 0.75rem !important;
|
|
100
108
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
// Arrow rotation when details is open
|
|
110
|
+
&[open] .arrow {
|
|
111
|
+
transform: rotate(90deg) !important;
|
|
112
|
+
}
|
|
104
113
|
|
|
105
|
-
|
|
106
|
-
|
|
114
|
+
&:not([open]) .arrow {
|
|
115
|
+
transform: rotate(0deg) !important;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
107
118
|
|
|
108
|
-
|
|
109
|
-
|
|
119
|
+
.collapsable-card, .card {
|
|
120
|
+
// Details/Summary styling for cards
|
|
121
|
+
details {
|
|
122
|
+
summary {
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
list-style: none;
|
|
125
|
+
user-select: none;
|
|
126
|
+
|
|
127
|
+
&::-webkit-details-marker {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&::marker {
|
|
132
|
+
display: none;
|
|
110
133
|
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
&:hover {
|
|
114
|
-
.card-header a {
|
|
115
|
-
text-decoration: none !important;
|
|
116
134
|
|
|
117
|
-
|
|
118
|
-
|
|
135
|
+
// Ensure summary is clickable and accessible
|
|
136
|
+
&[role="button"] {
|
|
137
|
+
outline: none;
|
|
138
|
+
|
|
139
|
+
&:focus {
|
|
140
|
+
outline: 2px solid $primary;
|
|
141
|
+
outline-offset: -2px;
|
|
142
|
+
}
|
|
119
143
|
}
|
|
120
144
|
}
|
|
121
145
|
}
|
|
122
|
-
.card-body {
|
|
123
|
-
border-top: 1px solid $gray-50;
|
|
124
|
-
}
|
|
125
146
|
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* Prevent scrolling while dialog is open */
|
|
2
|
+
body:has(dialog[data-dialog-target="dialog"][open]) {
|
|
3
|
+
// overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Customize the dialog backdrop */
|
|
7
|
+
dialog {
|
|
8
|
+
box-shadow: 0 0 0 100vw rgba($modal-backdrop-bg, $modal-backdrop-opacity);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
dialog:-internal-dialog-in-top-layer::backdrop {
|
|
12
|
+
background-color: rgba($modal-backdrop-bg, $modal-backdrop-opacity);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes fade-in {
|
|
16
|
+
0% {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
100% {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes fade-out {
|
|
25
|
+
0% {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
}
|
|
28
|
+
100% {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Add animations */
|
|
34
|
+
dialog[data-dialog-target="dialog"][open] {
|
|
35
|
+
animation: fade-in 200ms forwards;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
dialog[data-dialog-target="dialog"][closing] {
|
|
39
|
+
animation: fade-out 200ms forwards;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
dialog {
|
|
43
|
+
display: none;
|
|
44
|
+
z-index: $zindex-modal;
|
|
45
|
+
border-radius: $modal-content-border-radius;
|
|
46
|
+
border: $modal-content-border-width solid $modal-content-border-color;
|
|
47
|
+
background: $modal-content-bg;
|
|
48
|
+
box-shadow: $modal-content-box-shadow-xs;
|
|
49
|
+
overflow-y: auto;
|
|
50
|
+
overflow-x: hidden;
|
|
51
|
+
}
|
|
52
|
+
dialog:open {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.drawer {
|
|
57
|
+
position: fixed;
|
|
58
|
+
top: 0;
|
|
59
|
+
right: 0;
|
|
60
|
+
left: auto;
|
|
61
|
+
height: calc(100dvh - 2rem);
|
|
62
|
+
max-height: calc(100dvh - 2rem);
|
|
63
|
+
width: calc(100vw - 2rem);
|
|
64
|
+
max-width: 600px;
|
|
65
|
+
min-width: 320px;
|
|
66
|
+
margin: 1rem;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
padding: 0;
|
|
70
|
+
overflow-y: hidden;
|
|
71
|
+
overflow-x: hidden;
|
|
72
|
+
|
|
73
|
+
.drawer-title {
|
|
74
|
+
margin-bottom: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:open {
|
|
78
|
+
display: flex;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.alerts-container {
|
|
82
|
+
position: absolute;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media (max-width: 991.98px) {
|
|
86
|
+
max-width: 100vw;
|
|
87
|
+
min-width: 100vw;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
> turbo-frame:not(#drawer_alerts), turbo-frame > form {
|
|
91
|
+
display: flex;
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.drawer-header {
|
|
99
|
+
display: flex;
|
|
100
|
+
justify-content: space-between;
|
|
101
|
+
align-items: center;
|
|
102
|
+
padding: $modal-inner-padding;
|
|
103
|
+
border-bottom: 1px solid $gray-50;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.drawer-body {
|
|
107
|
+
flex: 1 1 auto;
|
|
108
|
+
overflow-y: auto;
|
|
109
|
+
padding: $modal-inner-padding;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.drawer-footer {
|
|
113
|
+
position: sticky;
|
|
114
|
+
bottom: 0;
|
|
115
|
+
padding: $modal-inner-padding;
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
align-items: center;
|
|
119
|
+
border-top: 1px solid $gray-50;
|
|
120
|
+
background-color: $gray-25;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Native Dialog component (centered modal replacement)
|
|
125
|
+
.dialog {
|
|
126
|
+
position: fixed;
|
|
127
|
+
top: 50%;
|
|
128
|
+
left: 50%;
|
|
129
|
+
transform: translate(-50%, -50%);
|
|
130
|
+
width: 90%;
|
|
131
|
+
max-width: 500px;
|
|
132
|
+
max-height: 90vh;
|
|
133
|
+
margin: 0;
|
|
134
|
+
padding: 0;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
overflow-y: hidden;
|
|
137
|
+
overflow-x: hidden;
|
|
138
|
+
|
|
139
|
+
&.dialog-lg {
|
|
140
|
+
max-width: 800px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.dialog-xl {
|
|
144
|
+
max-width: 1140px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:open {
|
|
148
|
+
display: flex;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.dialog-title {
|
|
152
|
+
margin-bottom: 0;
|
|
153
|
+
font-weight: $font-weight-medium;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.alerts-container {
|
|
157
|
+
position: absolute;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
> turbo-frame:not(#dialog_alerts), turbo-frame > form {
|
|
161
|
+
display: flex;
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: 100%;
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
justify-content: space-between;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.dialog-header {
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
align-items: center;
|
|
172
|
+
padding: $modal-inner-padding;
|
|
173
|
+
border-bottom: 1px solid $gray-50;
|
|
174
|
+
|
|
175
|
+
.btn-close {
|
|
176
|
+
margin-right: -0.25rem;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.dialog-body {
|
|
181
|
+
flex: 1 1 auto;
|
|
182
|
+
overflow-y: auto;
|
|
183
|
+
padding: $modal-inner-padding;
|
|
184
|
+
max-height: calc(90vh - 200px);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.dialog-footer {
|
|
188
|
+
position: sticky;
|
|
189
|
+
bottom: 0;
|
|
190
|
+
padding: $modal-inner-padding;
|
|
191
|
+
display: flex;
|
|
192
|
+
gap: 0.5rem;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: space-between;
|
|
195
|
+
border-top: 1px solid $gray-50;
|
|
196
|
+
background-color: $gray-25;
|
|
197
|
+
border-radius: 0 0 $modal-content-border-radius $modal-content-border-radius;
|
|
198
|
+
|
|
199
|
+
.btn {
|
|
200
|
+
display: inline-flex;
|
|
201
|
+
height: 2.5rem;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|