alchemy_cms 8.3.11 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +58 -10
- data/app/assets/builds/alchemy/admin/page-select.css +1 -1
- data/app/assets/builds/alchemy/admin/print.css +1 -1
- data/app/assets/builds/alchemy/admin/remote-select.css +1 -0
- data/app/assets/builds/alchemy/admin/tags-autocomplete.css +1 -0
- data/app/assets/builds/alchemy/admin.css +4 -4
- data/app/assets/builds/alchemy/alchemy_admin.min.js +1 -1
- data/app/assets/builds/alchemy/alchemy_admin.min.js.map +1 -1
- data/app/assets/builds/alchemy/dark-theme.css +1 -1
- data/app/assets/builds/alchemy/light-theme.css +1 -1
- data/app/assets/builds/alchemy/preview.min.js +1 -1
- data/app/assets/builds/alchemy/theme.css +1 -1
- data/app/assets/builds/alchemy/welcome.css +1 -1
- data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css +1 -1
- data/app/assets/builds/tinymce/skins/content/alchemy-dark/content.min.css +1 -1
- data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css +1 -1
- data/app/assets/builds/tinymce/skins/ui/alchemy-dark/skin.min.css +1 -1
- data/app/assets/images/alchemy/icons-sprite.svg +1 -1
- data/app/components/alchemy/admin/dashboard/widgets/greeting.html.erb +1 -1
- data/app/components/alchemy/admin/dashboard/widgets/news_reader.html.erb +38 -0
- data/app/components/alchemy/admin/dashboard/widgets/news_reader.rb +54 -0
- data/app/components/alchemy/admin/dashboard/widgets/online_users.html.erb +1 -1
- data/app/components/alchemy/admin/dashboard/widgets/recent_pages.html.erb +1 -1
- data/app/components/alchemy/admin/dashboard/widgets/system_info.html.erb +11 -3
- data/app/components/alchemy/admin/dashboard/widgets/system_info.rb +6 -1
- data/app/components/alchemy/admin/element_editor.html.erb +1 -1
- data/app/components/alchemy/admin/element_select.rb +30 -20
- data/app/components/alchemy/admin/element_status_indicators.html.erb +16 -0
- data/app/components/alchemy/admin/element_status_indicators.rb +31 -0
- data/app/components/alchemy/admin/link_dialog/external_tab.rb +2 -1
- data/app/components/alchemy/admin/main_navigation/entry.rb +61 -0
- data/app/components/alchemy/admin/main_navigation/menu.rb +21 -0
- data/app/components/alchemy/admin/main_navigation/sub_navigation.rb +31 -0
- data/app/components/alchemy/admin/page_node.html.erb +1 -1
- data/app/components/alchemy/admin/page_permitted_roles_select.html.erb +11 -0
- data/app/components/alchemy/admin/page_permitted_roles_select.rb +35 -0
- data/app/components/alchemy/admin/page_select.rb +18 -8
- data/app/components/alchemy/admin/preview_time_select.rb +1 -1
- data/app/components/alchemy/admin/toolbar_button.rb +43 -20
- data/app/components/alchemy/admin/uploader_button.rb +66 -0
- data/app/components/alchemy/ingredients/base_editor.rb +10 -1
- data/app/components/alchemy/ingredients/boolean_editor.rb +1 -0
- data/app/components/alchemy/ingredients/color_editor.rb +6 -3
- data/app/components/alchemy/ingredients/datetime_view.rb +1 -1
- data/app/components/alchemy/ingredients/picture_view.rb +2 -4
- data/app/components/alchemy/menubar.html.erb +157 -0
- data/app/components/alchemy/menubar.rb +15 -0
- data/app/controllers/alchemy/admin/attachments_controller.rb +12 -9
- data/app/controllers/alchemy/admin/base_controller.rb +34 -21
- data/app/controllers/alchemy/admin/dashboard_controller.rb +4 -0
- data/app/controllers/alchemy/admin/elements_controller.rb +4 -23
- data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
- data/app/controllers/alchemy/admin/nodes_controller.rb +1 -1
- data/app/controllers/alchemy/admin/pages_controller.rb +1 -1
- data/app/controllers/alchemy/admin/pictures_controller.rb +6 -3
- data/app/controllers/alchemy/admin/resources_controller.rb +5 -5
- data/app/controllers/alchemy/admin/sites_controller.rb +1 -1
- data/app/controllers/alchemy/base_controller.rb +24 -16
- data/app/controllers/alchemy/pages_controller.rb +29 -8
- data/app/controllers/alchemy/sitemap_controller.rb +58 -0
- data/app/controllers/concerns/alchemy/admin/csp_protection.rb +43 -0
- data/app/controllers/concerns/alchemy/admin/current_language.rb +1 -1
- data/app/controllers/concerns/alchemy/admin/resource_filter.rb +3 -1
- data/{lib → app/controllers/concerns}/alchemy/controller_actions.rb +13 -0
- data/app/controllers/concerns/alchemy/legacy_page_redirects.rb +4 -4
- data/app/helpers/alchemy/admin/base_helper.rb +4 -1
- data/app/helpers/alchemy/admin/form_helper.rb +0 -2
- data/app/helpers/alchemy/admin/navigation_helper.rb +10 -181
- data/app/helpers/alchemy/elements_block_helper.rb +14 -0
- data/app/helpers/alchemy/resources_helper.rb +15 -1
- data/app/javascript/alchemy_admin/components/attachment_select.js +11 -20
- data/app/javascript/alchemy_admin/components/auto_submit.js +2 -4
- data/app/javascript/alchemy_admin/components/button.js +0 -6
- data/app/javascript/alchemy_admin/components/clear_schedule_button.js +21 -0
- data/app/javascript/alchemy_admin/components/color_select.js +50 -45
- data/app/javascript/alchemy_admin/components/conditional_field.js +50 -0
- data/app/javascript/alchemy_admin/components/dirty_guard.js +77 -0
- data/app/javascript/alchemy_admin/components/dom_id_select.js +17 -10
- data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +7 -2
- data/app/javascript/alchemy_admin/components/element_editor.js +29 -56
- data/app/javascript/alchemy_admin/components/element_select.js +26 -66
- data/app/javascript/alchemy_admin/components/icon.js +9 -4
- data/app/javascript/alchemy_admin/{image_cropper.js → components/image_cropper.js} +39 -53
- data/app/javascript/alchemy_admin/components/image_overlay_link.js +14 -0
- data/app/javascript/alchemy_admin/components/index.js +12 -1
- data/app/javascript/alchemy_admin/components/main_navi_entry.js +75 -0
- data/app/javascript/alchemy_admin/components/menu_node.js +73 -0
- data/app/javascript/alchemy_admin/components/news_reader.js +109 -0
- data/app/javascript/alchemy_admin/components/node_folder.js +36 -0
- data/app/javascript/alchemy_admin/components/node_form.js +34 -0
- data/app/javascript/alchemy_admin/components/node_select.js +25 -30
- data/app/javascript/alchemy_admin/components/node_tree.js +56 -0
- data/app/javascript/alchemy_admin/components/page_node.js +2 -1
- data/app/javascript/alchemy_admin/components/page_select.js +16 -34
- data/app/javascript/alchemy_admin/components/picture_archive.js +92 -0
- data/app/javascript/alchemy_admin/components/picture_editor.js +2 -1
- data/app/javascript/alchemy_admin/components/preview_window.js +11 -3
- data/app/javascript/alchemy_admin/components/remote_select.js +461 -81
- data/app/javascript/alchemy_admin/components/select.js +26 -88
- data/app/javascript/alchemy_admin/components/sitemap.js +2 -1
- data/app/javascript/alchemy_admin/components/sortable_elements.js +2 -1
- data/app/javascript/alchemy_admin/components/tags_autocomplete.js +63 -48
- data/app/javascript/alchemy_admin/components/tinymce.js +2 -1
- data/app/javascript/alchemy_admin/components/uploader/file_upload.js +3 -2
- data/app/javascript/alchemy_admin/components/uploader.js +19 -3
- data/app/javascript/alchemy_admin/confirm_dialog.js +7 -1
- data/app/javascript/alchemy_admin/dialog.js +182 -110
- data/app/javascript/alchemy_admin/hotkeys.js +0 -5
- data/app/javascript/alchemy_admin/i18n.js +3 -9
- data/app/javascript/alchemy_admin/image_overlay.js +58 -42
- data/app/javascript/alchemy_admin/initializer.js +2 -2
- data/app/javascript/alchemy_admin/link_dialog.js +15 -2
- data/app/javascript/alchemy_admin/routes.js +18 -0
- data/app/javascript/alchemy_admin/turbo_stream_actions.js +88 -0
- data/app/javascript/alchemy_admin/utils/ajax.js +14 -3
- data/app/javascript/alchemy_admin/utils/events.js +5 -0
- data/app/javascript/alchemy_admin/utils/json_script.js +12 -0
- data/app/javascript/alchemy_admin/utils/tom_select.js +171 -0
- data/app/javascript/alchemy_admin.js +2 -19
- data/app/javascript/preview.js +131 -113
- data/app/jobs/alchemy/invalidate_elements_cache_job.rb +1 -1
- data/app/models/alchemy/admin/content_security_policy.rb +143 -0
- data/app/models/alchemy/admin/filters/base.rb +7 -0
- data/app/models/alchemy/admin/filters/datepicker.rb +1 -1
- data/app/models/alchemy/admin/filters/select.rb +20 -7
- data/app/models/alchemy/attachment.rb +14 -7
- data/app/models/alchemy/cache_control.rb +104 -0
- data/app/models/alchemy/current.rb +1 -1
- data/app/models/alchemy/eager_loading.rb +0 -2
- data/app/models/alchemy/element.rb +23 -8
- data/app/models/alchemy/element_definition.rb +1 -0
- data/app/models/alchemy/elements_repository.rb +11 -0
- data/app/models/alchemy/folded_page.rb +5 -1
- data/app/models/alchemy/ingredient.rb +26 -0
- data/app/models/alchemy/ingredients/datetime.rb +1 -1
- data/app/models/alchemy/ingredients/link.rb +2 -0
- data/app/models/alchemy/ingredients/picture.rb +3 -0
- data/app/models/alchemy/ingredients/text.rb +2 -0
- data/app/models/alchemy/language.rb +19 -7
- data/app/models/alchemy/legacy_page_url.rb +6 -1
- data/app/models/alchemy/node.rb +51 -0
- data/app/models/alchemy/page/page_natures.rb +41 -8
- data/app/models/alchemy/page/page_scopes.rb +23 -0
- data/app/models/alchemy/page/sitemap_cache_key.rb +56 -0
- data/app/models/alchemy/page.rb +88 -32
- data/app/models/alchemy/page_definition.rb +1 -1
- data/app/models/alchemy/page_mutex.rb +16 -0
- data/app/models/alchemy/page_version.rb +24 -1
- data/app/models/alchemy/permissions.rb +6 -5
- data/app/models/alchemy/picture.rb +15 -7
- data/app/models/alchemy/picture_description.rb +22 -0
- data/app/models/alchemy/picture_thumb.rb +18 -0
- data/app/models/alchemy/publishable/timestamp_resolver.rb +70 -0
- data/app/models/alchemy/resource.rb +1 -1
- data/app/models/alchemy/safe_url_validator.rb +34 -0
- data/app/models/alchemy/site.rb +8 -3
- data/app/models/alchemy/storage_adapter/active_storage/preprocessor.rb +7 -3
- data/app/models/alchemy/storage_adapter/active_storage.rb +4 -1
- data/app/models/alchemy/tag.rb +10 -4
- data/{lib → app/models/concerns}/alchemy/filetypes.rb +5 -0
- data/app/models/concerns/alchemy/picture_thumbnails.rb +61 -6
- data/app/models/concerns/alchemy/publishable.rb +14 -27
- data/app/models/concerns/alchemy/taggable.rb +92 -0
- data/app/models/concerns/alchemy/user_methods.rb +95 -0
- data/app/services/alchemy/duplicate_element.rb +5 -2
- data/app/services/alchemy/element_preloader.rb +1 -2
- data/app/stylesheets/alchemy/_custom-properties.scss +1 -0
- data/app/stylesheets/alchemy/_extends.scss +0 -8
- data/app/stylesheets/alchemy/_themes.scss +10 -9
- data/app/stylesheets/alchemy/admin/_empty-state.scss +29 -0
- data/app/stylesheets/alchemy/admin/_help.scss +10 -0
- data/app/stylesheets/alchemy/admin/_tom-select.scss +104 -15
- data/app/stylesheets/alchemy/admin/archive.scss +56 -11
- data/app/stylesheets/alchemy/admin/base.scss +4 -5
- data/app/stylesheets/alchemy/admin/buttons.scss +12 -1
- data/app/stylesheets/alchemy/admin/dashboard.scss +150 -20
- data/app/stylesheets/alchemy/admin/dialogs.scss +27 -36
- data/app/stylesheets/alchemy/admin/element-select.scss +1 -1
- data/app/stylesheets/alchemy/admin/elements.scss +8 -24
- data/app/stylesheets/alchemy/admin/flash.scss +2 -1
- data/app/stylesheets/alchemy/admin/forms.scss +60 -24
- data/app/stylesheets/alchemy/admin/frame.scss +40 -4
- data/app/stylesheets/alchemy/admin/image_library.scss +9 -12
- data/app/stylesheets/alchemy/admin/navigation.scss +17 -14
- data/app/stylesheets/alchemy/admin/node-select.scss +13 -37
- data/app/stylesheets/alchemy/admin/nodes.scss +1 -1
- data/app/stylesheets/alchemy/admin/page-select.scss +6 -97
- data/app/stylesheets/alchemy/admin/print.scss +0 -4
- data/app/stylesheets/alchemy/admin/remote-select.scss +170 -0
- data/app/stylesheets/alchemy/admin/search.scss +2 -3
- data/app/stylesheets/alchemy/admin/selects.scss +1 -294
- data/app/stylesheets/alchemy/admin/sitemap.scss +2 -1
- data/app/stylesheets/alchemy/admin/tables.scss +7 -1
- data/app/stylesheets/alchemy/admin/tags-autocomplete.scss +17 -0
- data/app/stylesheets/alchemy/admin/tags.scss +0 -13
- data/app/stylesheets/alchemy/admin/toolbar.scss +9 -6
- data/app/stylesheets/alchemy/admin/upload.scss +61 -1
- data/app/stylesheets/alchemy/admin.scss +4 -1
- data/app/types/alchemy/cache_control_type.rb +84 -0
- data/app/views/alchemy/_edit_mode.html.erb +1 -1
- data/app/views/alchemy/_menubar.html.erb +2 -154
- data/app/views/alchemy/_preview_mode_code.html.erb +0 -3
- data/app/views/alchemy/admin/_left_menu.html.erb +18 -5
- data/app/views/alchemy/admin/_top_menu.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +5 -4
- data/app/views/alchemy/admin/attachments/_file_to_assign.html.erb +3 -3
- data/app/views/alchemy/admin/attachments/_files_list.html.erb +71 -83
- data/app/views/alchemy/admin/attachments/assign.turbo_stream.erb +8 -0
- data/app/views/alchemy/admin/attachments/index.html.erb +32 -7
- data/app/views/alchemy/admin/clipboard/insert.turbo_stream.erb +1 -1
- data/app/views/alchemy/admin/crop.html.erb +20 -20
- data/app/views/alchemy/admin/dashboard/_footer.html.erb +0 -3
- data/app/views/alchemy/admin/dashboard/_top.html.erb +1 -0
- data/app/views/alchemy/admin/dashboard/help.html.erb +84 -57
- data/app/views/alchemy/admin/dashboard/license.html.erb +6 -0
- data/app/views/alchemy/admin/elements/_footer.html.erb +0 -1
- data/app/views/alchemy/admin/elements/_form.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_header.html.erb +2 -19
- data/app/views/alchemy/admin/elements/_preview_text_quote.html.erb +3 -0
- data/app/views/alchemy/admin/elements/_schedule.html.erb +7 -7
- data/app/views/alchemy/admin/elements/_toolbar.html.erb +1 -1
- data/app/views/alchemy/admin/elements/create.turbo_stream.erb +1 -1
- data/app/views/alchemy/admin/elements/index.html.erb +1 -1
- data/app/views/alchemy/admin/elements/publish.turbo_stream.erb +2 -2
- data/app/views/alchemy/admin/elements/update.turbo_stream.erb +31 -0
- data/app/views/alchemy/admin/ingredients/update.turbo_stream.erb +6 -3
- data/app/views/alchemy/admin/languages/_table.html.erb +0 -2
- data/app/views/alchemy/admin/languages/index.html.erb +25 -29
- data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +1 -3
- data/app/views/alchemy/admin/layoutpages/edit.html.erb +1 -1
- data/app/views/alchemy/admin/layoutpages/index.html.erb +26 -7
- data/app/views/alchemy/admin/nodes/_form.html.erb +3 -21
- data/app/views/alchemy/admin/nodes/_node.html.erb +93 -88
- data/app/views/alchemy/admin/nodes/index.html.erb +15 -23
- data/app/views/alchemy/admin/pages/_create_language_form.html.erb +2 -6
- data/app/views/alchemy/admin/pages/_form.html.erb +2 -1
- data/app/views/alchemy/admin/pages/_publication_fields.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_table.html.erb +2 -4
- data/app/views/alchemy/admin/pages/_toolbar.html.erb +2 -1
- data/app/views/alchemy/admin/pages/edit.html.erb +10 -21
- data/app/views/alchemy/admin/pages/flush.turbo_stream.erb +1 -1
- data/app/views/alchemy/admin/pages/index.html.erb +26 -31
- data/app/views/alchemy/admin/pages/info.html.erb +2 -2
- data/app/views/alchemy/admin/pages/update.turbo_stream.erb +2 -2
- data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_routes.html.erb +24 -48
- data/app/views/alchemy/admin/pictures/_archive.html.erb +3 -17
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +5 -3
- data/app/views/alchemy/admin/pictures/_form.html.erb +0 -1
- data/app/views/alchemy/admin/pictures/_infos.html.erb +5 -1
- data/app/views/alchemy/admin/pictures/_picture.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +3 -4
- data/app/views/alchemy/admin/pictures/assign.turbo_stream.erb +7 -0
- data/app/views/alchemy/admin/pictures/index.html.erb +38 -30
- data/app/views/alchemy/admin/pictures/show.html.erb +41 -41
- data/app/views/alchemy/admin/resources/_empty_state.html.erb +27 -0
- data/app/views/alchemy/admin/resources/_pagination.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_per_page_select.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_resource_table.html.erb +0 -2
- data/app/views/alchemy/admin/resources/_resource_usage_info.html.erb +3 -2
- data/app/views/alchemy/admin/resources/index.html.erb +32 -13
- data/app/views/alchemy/admin/sites/index.html.erb +24 -22
- data/app/views/alchemy/admin/styleguide/index.html.erb +35 -12
- data/app/views/alchemy/admin/tags/index.html.erb +27 -25
- data/app/views/alchemy/admin/tinymce/_setup.html.erb +6 -8
- data/app/views/alchemy/admin/translations/_en.js +3 -0
- data/app/views/alchemy/admin/uploader/_button.html.erb +11 -17
- data/app/views/alchemy/admin/uploader/_setup.html.erb +3 -3
- data/app/views/alchemy/pages/sitemap.xml.erb +2 -0
- data/app/views/kaminari/alchemy/_first_page.html.erb +1 -2
- data/app/views/kaminari/alchemy/_gap.html.erb +0 -1
- data/app/views/kaminari/alchemy/_last_page.html.erb +1 -2
- data/app/views/kaminari/alchemy/_next_page.html.erb +1 -2
- data/app/views/kaminari/alchemy/_page.html.erb +1 -2
- data/app/views/kaminari/alchemy/_paginator.html.erb +0 -1
- data/app/views/kaminari/alchemy/_prev_page.html.erb +1 -2
- data/app/views/layouts/alchemy/admin/dialog.html.erb +3 -0
- data/app/views/layouts/alchemy/admin.html.erb +5 -6
- data/config/brakeman.ignore +23 -1
- data/config/importmap.rb +10 -8
- data/config/initializers/dragonfly.rb +21 -17
- data/config/locales/alchemy.en.yml +52 -11
- data/config/routes.rb +3 -3
- data/db/migrate/20260727120000_add_permitted_roles_to_alchemy_pages.rb +23 -0
- data/db/migrate/20260820120000_add_cached_tag_list_to_taggables.rb +57 -0
- data/lib/alchemy/configuration/number_option.rb +13 -0
- data/lib/alchemy/configuration/proc_option.rb +13 -0
- data/lib/alchemy/configuration.rb +2 -0
- data/lib/alchemy/configurations/admin_components.rb +30 -0
- data/lib/alchemy/configurations/format_matchers.rb +7 -1
- data/lib/alchemy/configurations/main.rb +103 -4
- data/lib/alchemy/configurations/menu.rb +91 -0
- data/lib/alchemy/configurations/menu_item.rb +123 -0
- data/lib/alchemy/configurations/sitemap.rb +1 -0
- data/lib/alchemy/configurations/uploader.rb +15 -1
- data/lib/alchemy/engine.rb +0 -6
- data/lib/alchemy/i18n.rb +26 -0
- data/lib/alchemy/modules.rb +52 -50
- data/lib/alchemy/tasks/generate_thumbnails.rb +99 -0
- data/lib/alchemy/tasks/tidy.rb +1 -1
- data/lib/alchemy/test_support/capybara_helpers.rb +48 -37
- data/lib/alchemy/test_support/current_language_shared_examples.rb +1 -1
- data/lib/alchemy/test_support/factories/dummy_user_factory.rb +4 -1
- data/lib/alchemy/test_support/having_picture_thumbnails_examples.rb +132 -0
- data/lib/alchemy/test_support/shared_ingredient_examples.rb +52 -0
- data/lib/alchemy/test_support/shared_publishable_examples.rb +29 -4
- data/lib/alchemy/upgrader/eight_four.rb +237 -0
- data/lib/alchemy/upgrader/register_module_rewriter.rb +177 -0
- data/lib/alchemy/upgrader.rb +2 -1
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy.rb +0 -1
- data/lib/alchemy_cms.rb +0 -13
- data/lib/generators/alchemy/elements/templates/view.html.erb +1 -1
- data/lib/generators/alchemy/elements/templates/view.html.haml +1 -1
- data/lib/generators/alchemy/elements/templates/view.html.slim +1 -1
- data/lib/generators/alchemy/install/install_generator.rb +2 -13
- data/lib/generators/alchemy/install/templates/alchemy.rb.tt +24 -9
- data/lib/generators/alchemy/module/module_generator.rb +1 -0
- data/lib/generators/alchemy/module/templates/ability.rb.tt +1 -1
- data/lib/generators/alchemy/module/templates/module_config.rb.tt +16 -18
- data/lib/generators/alchemy/user_columns_migration/templates/migration.rb.tt +19 -0
- data/lib/generators/alchemy/user_columns_migration/user_columns_migration_generator.rb +30 -0
- data/lib/tasks/alchemy/thumbnails.rake +16 -29
- data/lib/tasks/alchemy/upgrade.rake +45 -3
- data/vendor/javascript/cropperjs.min.js +3 -3
- data/vendor/javascript/floating-ui.min.js +1 -1
- data/vendor/javascript/tinymce.min.js +5 -5
- data/vendor/javascript/tom-select.min.js +1 -1
- metadata +85 -65
- data/app/javascript/alchemy_admin/components/action.js +0 -50
- data/app/javascript/alchemy_admin/dirty.js +0 -55
- data/app/javascript/alchemy_admin/node_tree.js +0 -82
- data/app/javascript/alchemy_admin/picture_selector.js +0 -67
- data/app/javascript/alchemy_admin/templates/compiled.js +0 -1
- data/app/javascript/alchemy_admin/templates/node_folder.hbs +0 -3
- data/app/stylesheets/alchemy/admin/attachment-select.scss +0 -19
- data/app/views/alchemy/admin/_main_navi.html.erb +0 -6
- data/app/views/alchemy/admin/attachments/assign.js.erb +0 -15
- data/app/views/alchemy/admin/pages/_page_layout_filter.html.erb +0 -30
- data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +0 -20
- data/app/views/alchemy/admin/partials/_sub_navigation.html.erb +0 -11
- data/app/views/alchemy/admin/pictures/assign.js.erb +0 -13
- data/app/views/alchemy/base/error_notice.js.erb +0 -1
- data/app/views/alchemy/base/permission_denied.js.erb +0 -3
- data/app/views/alchemy/base/redirect.js.erb +0 -11
- data/config/alchemy/config.yml +0 -217
- data/config/alchemy/modules.yml +0 -82
- data/config/initializers/rails_live_reload.rb +0 -13
- data/lib/alchemy/dev_support/live_reload_watcher.rb +0 -5
- data/lib/alchemy/taggable.rb +0 -49
- data/lib/generators/alchemy/install/templates/dragonfly.rb.tt +0 -34
- data/vendor/assets/stylesheets/alchemy_admin/select2.css +0 -1
- data/vendor/javascript/handlebars.min.js +0 -29
- data/vendor/javascript/jquery.min.js +0 -2
- data/vendor/javascript/rails-ujs.min.js +0 -1
- data/vendor/javascript/select2.min.js +0 -23
- /data/{lib → app/controllers/concerns}/alchemy/ability_helper.rb +0 -0
- /data/{lib → app/controllers/concerns}/alchemy/admin/locale.rb +0 -0
- /data/{lib → app/controllers/concerns}/alchemy/admin/preview_time.rb +0 -0
- /data/{lib → app/controllers/concerns}/alchemy/admin/timezone.rb +0 -0
- /data/{lib → app/controllers/concerns}/alchemy/configuration_methods.rb +0 -0
- /data/{lib → app/models}/alchemy/admin/preview_url.rb +0 -0
- /data/{lib → app/models/concerns}/alchemy/hints.rb +0 -0
- /data/{lib → app/models/concerns}/alchemy/name_conversions.rb +0 -0
- /data/{lib → app/services}/alchemy/elements_finder.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7aff64db89e8d4901217627e3e705537ded66f2254d157768b938dbab94b405f
|
|
4
|
+
data.tar.gz: 6764a8bad67701db9a7ab0faabc40d5f6b189956a94d20b6d8ee9b7afbde39c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17d825c6070abde46e376eb55414a32414c715e9d63d831a45b0b2fc157e39535cc4d61718d3e736dab3aa8894d71dc12bc922f72ed1042590d88dbb7b814b77
|
|
7
|
+
data.tar.gz: 1aa683313f37c41e5f7591e9cdb3282a1182e07edbec7f9250eb3469869da384e00295545acaa9bdfab8136d37fecfcb458bfbe7e366206e5dba1456b5b640d5
|
data/LICENSE
CHANGED
|
@@ -11,7 +11,7 @@ are permitted provided that the following conditions are met:
|
|
|
11
11
|
list of conditions and the following disclaimer in the documentation and/or
|
|
12
12
|
other materials provided with the distribution.
|
|
13
13
|
|
|
14
|
-
Neither the name of the
|
|
14
|
+
Neither the name of the Blish GmbH nor the names of its
|
|
15
15
|
contributors may be used to endorse or promote products derived from
|
|
16
16
|
this software without specific prior written permission.
|
|
17
17
|
|
data/README.md
CHANGED
|
@@ -162,19 +162,19 @@ Alchemy.configure do |config|
|
|
|
162
162
|
end
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
Alchemy needs a `alchemy_roles` column in your database for the RBAC to work.
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
Alchemy provides a migration generator that adds these tables to your users table.
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
```
|
|
170
|
+
$ bin/rails g alchemy:user_columns_migration --table-name=my-users-table
|
|
171
|
+
```
|
|
170
172
|
|
|
171
|
-
|
|
172
|
-
# app/models/user.rb
|
|
173
|
+
Then include this module in your model.
|
|
173
174
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
end
|
|
175
|
+
```ruby
|
|
176
|
+
class User
|
|
177
|
+
include Alchemy::UserMethods
|
|
178
178
|
end
|
|
179
179
|
```
|
|
180
180
|
|
|
@@ -307,6 +307,38 @@ Please use [capistrano-alchemy](https://github.com/AlchemyCMS/capistrano-alchemy
|
|
|
307
307
|
If you don't use Capistrano you have to **make sure** that the `uploads`, `tmp/cache/assets`, `public/assets` and `public/pictures` folders get **shared between deployments**, otherwise you **will loose data**. No, not really, but you know, just keep them in sync.
|
|
308
308
|
|
|
309
309
|
|
|
310
|
+
## 🗃 Writing Migrations
|
|
311
|
+
|
|
312
|
+
**On SQLite, a migration that rebuilds a table silently deletes data from other tables.**
|
|
313
|
+
|
|
314
|
+
SQLite has no real `ALTER TABLE`, so Rails implements the operations below by recreating the table: it copies the rows aside, runs `DROP TABLE`, and copies them back.
|
|
315
|
+
|
|
316
|
+
- `change_column`
|
|
317
|
+
- `change_column_null`
|
|
318
|
+
- `change_column_default`
|
|
319
|
+
- `rename_column`
|
|
320
|
+
- `remove_column` and `remove_columns`
|
|
321
|
+
- `add_timestamps`
|
|
322
|
+
- `add_column` with `null: false` and **no** `default:`
|
|
323
|
+
|
|
324
|
+
With foreign keys enforced, SQLite's `DROP TABLE` performs an implicit `DELETE`, which fires `ON DELETE CASCADE`. The rebuilt table keeps its rows, because they come back from the copy, but **every cascading descendant is deleted permanently**. Since Alchemy cascades from pages down to ingredients, rebuilding `alchemy_pages` empties `alchemy_page_versions`, `alchemy_elements` and `alchemy_ingredients`.
|
|
325
|
+
|
|
326
|
+
Rails tries to prevent this by disabling foreign keys for the rebuild, but that only works outside a transaction, and migrations run inside one by default. The safeguard is therefore silently ineffective.
|
|
327
|
+
|
|
328
|
+
So when a migration touches a table that has cascading children:
|
|
329
|
+
|
|
330
|
+
1. **Avoid the rebuild if you can.** `add_column` with both `null: false` and a `default:` is a plain `ALTER TABLE ADD COLUMN`. A nullable column combined with a model level default behaves the same on every adapter, and is the only option for MySQL `text` columns, which cannot carry a literal default.
|
|
331
|
+
2. **If a rebuild is unavoidable**, including `remove_column` in `down`, declare `disable_ddl_transaction!` in the migration. Because it no longer rolls back as a single unit, make sure the migration is safe to run again after a partial failure.
|
|
332
|
+
3. **Test against a populated database** and check that child records survive. An empty database hides the problem completely.
|
|
333
|
+
|
|
334
|
+
You can check the migrations in this repository with:
|
|
335
|
+
|
|
336
|
+
```bash
|
|
337
|
+
ruby bin/check-destructive-migrations
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
This also runs in CI, and fails when a migration rebuilds a table without `disable_ddl_transaction!`.
|
|
341
|
+
|
|
310
342
|
## 🚧 Testing
|
|
311
343
|
|
|
312
344
|
If you want to contribute to Alchemy ([and we encourage you to do so](CONTRIBUTING.md)) we have a strong test suite that helps you to not break anything.
|
|
@@ -354,12 +386,28 @@ $ bundle exec rake
|
|
|
354
386
|
|
|
355
387
|
### Start the dummy app
|
|
356
388
|
|
|
357
|
-
You can even start the dummy app and use it to manually test your changes
|
|
389
|
+
You can even start the dummy app and use it to manually test your changes.
|
|
390
|
+
|
|
391
|
+
To run the whole stack in Docker (builds the images and starts the Rails
|
|
392
|
+
server, Sass watcher, and JS bundle watcher):
|
|
358
393
|
|
|
359
394
|
```bash
|
|
360
395
|
$ bin/start
|
|
361
396
|
```
|
|
362
397
|
|
|
398
|
+
After changing dependencies (`Gemfile` or `package.json`), rebuild the image and
|
|
399
|
+
refresh the baked `node_modules` in one step:
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
$ bin/start --refresh
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
Or, to run the dummy app locally without Docker:
|
|
406
|
+
|
|
407
|
+
```bash
|
|
408
|
+
$ bin/dev
|
|
409
|
+
```
|
|
410
|
+
|
|
363
411
|
|
|
364
412
|
## 📦 Releasing
|
|
365
413
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-select--page,.page-select--page-name,.page-select--page-urlname{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.page-select--page{--size-1: var(--spacing-0, 2px);--size-2: var(--spacing-1, 4px);--size-3: var(--spacing-2, 8px);--small-font-size: var(--font-size_small, 10px);--grey: var(--color-grey_light, hsl(0deg, 0%, 94%));--color: var(--text-color, hsla(224deg, 23%, 26%, 0.8));--highlight-color: var(--grey);display:flex;flex-direction:column;color:var(--color)}.page-select--page alchemy-icon{margin-right:var(--size-2)}.page-select--page alchemy-icon .icon{fill:currentColor}.select2-highlighted .page-select--page{color:var(--highlight-color)}.page-select--top,.page-select--bottom{display:flex;flex-direction:row;align-items:center}.page-select--bottom{font-size:var(--small-font-size);padding-left:var(--size-1)}.page-select--page-urlname{color:var(--text-color-muted, hsla(224, 23%, 26%, 0.5));padding-right:var(--size-2)}.select2-highlighted .page-select--page-urlname{color:var(--highlight-color)}.page-select--language-code{--bg-color: var(--grey);--highlight-bg-color: var(--color-white, hsl(0deg, 0%, 100%));--border-radius: var(--border-radius_medium, 3px);display:inline-block;background-color:var(--bg-color);margin-left:auto;border-radius:var(--border-radius);padding:var(--size-1) var(--size-2);text-transform:uppercase}.select2-highlighted .page-select--language-code{color:var(--color);background-color:var(--highlight-bg-color)}.page-select--site-name{margin-left:auto;padding:var(--size-2) 0 var(--size-2) var(--size-3);font-size:var(--small-font-size)}@media(prefers-color-scheme: dark){.page-select--page{--grey: var(--a-dark-grey, hsl(200deg, 5%, 17.5%));--color: var(--select-text-color, hsl(200deg, 5%, 70%));--highlight-color: var(--select-hover-text-color, hsl(0deg, 0%, 100%))}.page-select--page-urlname{color:var(--a-lighter-grey, hsl(200, 5%, 70%))}.page-select--language-code{--highlight-bg-color: var(--bg-color)}}
|
|
1
|
+
.remote-select--entry,.remote-select--selection{--size-1: var(--spacing-0, 2px);--size-2: var(--spacing-1, 4px);--size-3: var(--spacing-2, 8px);--small-font-size: var(--font-size_small, 10px);--color: var(--text-color, hsla(224deg, 23%, 26%, 0.8));--muted-color: var(--text-color-muted, hsla(224deg, 23%, 26%, 0.5));--highlight-color: var(--color-grey_light, hsl(0deg, 0%, 94%));--badge-bg-color: var(--color-grey_light, hsl(0deg, 0%, 94%));--badge-highlight-bg-color: var(--color-white, hsl(0deg, 0%, 100%));--border-radius: var(--border-radius_medium, 3px);color:var(--color)}.ts-dropdown .option.active .remote-select--entry,.ts-dropdown .option.active .remote-select--selection{color:var(--highlight-color)}.remote-select--entry{display:grid;grid-template-columns:auto minmax(0, 1fr) auto;align-items:baseline;column-gap:var(--size-3);row-gap:var(--size-1);overflow:hidden}.remote-select--selection{display:flex;align-items:baseline;column-gap:var(--size-3);overflow:hidden}.remote-select--icon{grid-column:1;grid-row:1;align-self:center}.remote-select--icon .icon{fill:currentColor}.remote-select--media{grid-column:1;grid-row:1/-1;align-self:center;width:var(--remote-select-media-size, 20px);height:var(--remote-select-media-size, 20px);border-radius:var(--border-radius_medium);object-fit:cover}.remote-select--primary{grid-column:2;grid-row:1}.remote-select--secondary{grid-column:2;grid-row:2;color:var(--muted-color);font-size:var(--small-font-size)}.ts-dropdown .option.active .remote-select--secondary{color:var(--highlight-color)}.remote-select--primary,.remote-select--secondary,.remote-select--selection-name,.remote-select--selection-aside{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remote-select--aside{grid-column:3;grid-row:1}.remote-select--secondary-aside{grid-column:3;grid-row:2}.remote-select--aside,.remote-select--secondary-aside{justify-self:end;white-space:nowrap;font-size:var(--small-font-size)}.remote-select--selection-aside{flex:0 10 auto;margin-left:auto;color:var(--muted-color);font-size:var(--small-font-size)}.ts-dropdown .option.active .remote-select--selection-aside{color:var(--highlight-color)}.remote-select--truncate-head{direction:rtl;text-align:left}.remote-select--badge{display:inline-block;background-color:var(--badge-bg-color);border-radius:var(--border-radius);padding:var(--size-1) var(--size-2);text-transform:uppercase;color:var(--color)}.ts-dropdown .option.active .remote-select--badge{color:var(--color);background-color:var(--badge-highlight-bg-color)}@media(prefers-color-scheme: dark){.remote-select--entry,.remote-select--selection{--color: var(--select-text-color, hsl(200deg, 5%, 70%));--muted-color: var(--a-lighter-grey, hsl(200deg, 5%, 70%));--highlight-color: var(--select-hover-text-color, hsl(0deg, 0%, 100%));--badge-bg-color: var(--a-dark-grey, hsl(200deg, 5%, 17.5%));--badge-highlight-bg-color: var(--badge-bg-color)}}alchemy-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-size, var(--icon-size-md));height:var(--icon-size, var(--icon-size-md));opacity:1;transition:opacity var(--transition-duration) var(--transition-easing)}alchemy-icon:not(:defined){opacity:0}alchemy-icon[size=xs]{width:var(--icon-size-xs);height:var(--icon-size-xs)}alchemy-icon[size=sm]{width:var(--icon-size-sm);height:var(--icon-size-sm)}alchemy-icon[size="1x"]{width:var(--icon-size-1x);height:var(--icon-size-1x)}alchemy-icon[size=xl]{width:var(--icon-size-xl);height:var(--icon-size-xl)}alchemy-icon.disabled{opacity:.3}alchemy-icon.blank{background:rgba(0,0,0,0)}alchemy-icon.error{padding:0}.icon{fill:var(--icon-color, currentColor);width:var(--icon-size, var(--icon-size-md));height:var(--icon-size, var(--icon-size-md))}.icon--xs{width:var(--icon-size-xs);height:var(--icon-size-xs)}.icon--sm{width:var(--icon-size-sm);height:var(--icon-size-sm)}.icon--1x{width:var(--icon-size-1x);height:var(--icon-size-1x)}.icon--xl{width:var(--icon-size-xl);height:var(--icon-size-xl)}.tomselected{display:none}:where(.ts-wrapper.alchemy_selectbox .ts-control)>input{width:100%}.ts-wrapper.alchemy_selectbox{position:relative;width:100%;max-width:100%}.ts-wrapper.alchemy_selectbox.medium{width:var(--select-medium-width)}.ts-wrapper.alchemy_selectbox.large{width:var(--select-large-width)}.ts-wrapper.alchemy_selectbox.x-large{width:var(--select-x-large-width)}.ts-wrapper.alchemy_selectbox.input-hidden .ts-control>input{left:-10000px;opacity:0;position:absolute}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control .remote-select--media,.ts-wrapper.alchemy_selectbox.single.input-active .ts-control .remote-select--icon{opacity:.25;transition:opacity var(--transition-duration)}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control input{position:absolute;background-color:rgb(from var(--form-field-background-color) r g b/50%);backdrop-filter:grayscale(100%);height:20px;transition:background-color}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control input.has-value{position:absolute;background-color:var(--form-field-background-color)}.ts-wrapper.alchemy_selectbox .ts-control{--item-height: 21px;--input-max-width: calc(100% - var(--spacing-4));align-items:center;background:var(--select-background-color);padding:var(--form-field-padding);border:var(--form-field-border-width) var(--form-field-border-style) var(--select-border-color);color:var(--select-text-color);margin:var(--form-field-margin);line-height:var(--form-field-line-height);min-height:var(--form-field-height);font-size:var(--form-field-font-size);border-radius:var(--border-radius_medium);cursor:pointer;position:relative}.ts-wrapper.alchemy_selectbox .ts-control sl-spinner{display:none;position:absolute;right:var(--spacing-2);top:50%;transform:translateY(-50%);font-size:1em;--indicator-color: var(--text-color-muted);--track-color: transparent}.ts-wrapper.alchemy_selectbox .ts-control>.item{margin:0;line-height:var(--item-height);max-width:90%;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.ts-wrapper.alchemy_selectbox .ts-control>input{color:var(--form-field-text-color);font-size:var(--form-field-font-size);height:auto;max-width:var(--input-max-width);margin:0;padding:0;border-radius:0;border:0}.ts-wrapper.alchemy_selectbox .ts-control>input:focus{box-shadow:none;border:none}.ts-wrapper.alchemy_selectbox .ts-control input::placeholder{color:var(--text-color-muted)}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control{background:var(--select-background-color)}.ts-wrapper.alchemy_selectbox.single.has-items:has(.clear-button) .ts-control::after{margin-left:0}.ts-wrapper.alchemy_selectbox.single .ts-control{display:flex;align-items:center}.ts-wrapper.alchemy_selectbox.single .ts-control::after{content:"";display:inline-flex;flex:0 0 1em;width:1em;height:1em;margin-left:auto;background:var(--select-background-image) no-repeat center/contain}.ts-wrapper.alchemy_selectbox.loading .ts-control sl-spinner{display:inline-flex}.ts-wrapper.alchemy_selectbox.loading.single .ts-control::after{visibility:hidden}.ts-wrapper.alchemy_selectbox.focus .ts-control{border-color:var(--focus-color);border-radius:var(--border-radius_medium);box-shadow:0 0 0 1px var(--focus-color);outline:0 none}.ts-wrapper.alchemy_selectbox.focus .ts-control::-moz-focus-inner{border:none !important;padding:1px !important}.ts-wrapper.alchemy_selectbox.disabled .ts-control{background-color:var(--select-disabled-background-color);border-color:var(--select-disabled-border-color);color:var(--text-color-muted);cursor:not-allowed}.ts-wrapper.alchemy_selectbox.multi .ts-control{--input-max-width: 100%;display:flex;flex-wrap:wrap;height:auto;padding:var(--spacing-0)}.ts-wrapper.alchemy_selectbox.multi .ts-control>input{padding:4px 6px;margin:0;width:auto;min-width:7rem}.ts-wrapper.alchemy_selectbox.multi .ts-control>.item{display:inline-flex;align-items:center;gap:var(--spacing-1);margin:var(--spacing-0);padding:0 var(--spacing-1);color:var(--text-color);background:var(--tag-background-color);border:0 none;border-radius:var(--border-radius_medium);max-width:unset;white-space:normal}.ts-wrapper.alchemy_selectbox.multi .ts-control>.item .remove{appearance:none;border:none;background:none;box-shadow:none;cursor:pointer;font:inherit;display:inline-flex;align-items:center;align-self:start;height:var(--item-height);margin:0;padding:0;color:var(--icon-color);text-decoration:none}.ts-wrapper.alchemy_selectbox.multi .ts-control>.item .remove:hover{color:var(--text-color)}.ts-wrapper.alchemy_selectbox.multi .ts-control>.clear-button{position:absolute;top:4.5px;right:var(--spacing-1)}.ts-wrapper.alchemy_selectbox.multi .ts-control:has(.clear-button){position:relative;padding-right:var(--spacing-6)}.ts-wrapper.alchemy_selectbox.has-items .clear-button{display:inline-flex}.ts-wrapper.alchemy_selectbox .clear-button{--button-height: auto;display:none;background:none;border:none;box-shadow:none;margin:0 0 0 auto;padding:var(--spacing-1);width:var(--spacing-5)}.ts-dropdown-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:0}.ts-dropdown{position:absolute;width:max-content;top:0;left:0;z-index:1;background:var(--select-dropdown-background-color);box-shadow:var(--select-dropdown-box-shadow);color:var(--select-dropdown-text-color, var(--text-color));border:1px solid var(--select-dropdown-border-color);border-radius:var(--border-radius_medium)}.ts-dropdown>.ts-dropdown-content{border-radius:var(--border-radius_medium);max-height:var(--select-dropdown-max-height, 80vh);overflow-y:auto}.ts-dropdown .option{padding:var(--spacing-2);cursor:pointer;min-height:2.75em}.ts-dropdown .option .highlight,.ts-dropdown .option em{font-style:normal;text-decoration:underline}.ts-dropdown .option.selected{background:var(--select-selected-bg-color);box-shadow:inset 3px 0 0 var(--select-selected-marker-color);font-weight:var(--font-weight_semibold)}.ts-dropdown .option.active{background:var(--select-hover-bg-color, var(--color-blue_dark));color:var(--select-hover-text-color, var(--color-white))}.ts-dropdown .option.selected.active{--select-selected-marker-color: var(--color-orange_dark)}.ts-dropdown .loading-results{padding:var(--spacing-2);color:var(--text-color-muted)}.ts-dropdown .no-results{padding:var(--spacing-2);color:var(--text-color-muted)}.ts-dropdown .create{padding:var(--spacing-2);cursor:pointer}.ts-dropdown .loading-more,.ts-dropdown .no-more-results{color:var(--text-color-muted);cursor:default}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
div#main_menu,div#top_menu,div#corner,div#flash_notices,div.pagination span,div.pagination a{display:none}
|
|
1
|
+
div#main_menu,div#top_menu,div#corner,div#flash_notices,div.pagination span,div.pagination a{display:none}span.icon.true:before{content:"x"}div.pagination{text-align:right}div.pagination em.current{border:none;text-shadow:none}div.pagination em:before{content:"Page "}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.remote-select--entry,.remote-select--selection{--size-1: var(--spacing-0, 2px);--size-2: var(--spacing-1, 4px);--size-3: var(--spacing-2, 8px);--small-font-size: var(--font-size_small, 10px);--color: var(--text-color, hsla(224deg, 23%, 26%, 0.8));--muted-color: var(--text-color-muted, hsla(224deg, 23%, 26%, 0.5));--highlight-color: var(--color-grey_light, hsl(0deg, 0%, 94%));--badge-bg-color: var(--color-grey_light, hsl(0deg, 0%, 94%));--badge-highlight-bg-color: var(--color-white, hsl(0deg, 0%, 100%));--border-radius: var(--border-radius_medium, 3px);color:var(--color)}.ts-dropdown .option.active .remote-select--entry,.ts-dropdown .option.active .remote-select--selection{color:var(--highlight-color)}.remote-select--entry{display:grid;grid-template-columns:auto minmax(0, 1fr) auto;align-items:baseline;column-gap:var(--size-3);row-gap:var(--size-1);overflow:hidden}.remote-select--selection{display:flex;align-items:baseline;column-gap:var(--size-3);overflow:hidden}.remote-select--icon{grid-column:1;grid-row:1;align-self:center}.remote-select--icon .icon{fill:currentColor}.remote-select--media{grid-column:1;grid-row:1/-1;align-self:center;width:var(--remote-select-media-size, 20px);height:var(--remote-select-media-size, 20px);border-radius:var(--border-radius_medium);object-fit:cover}.remote-select--primary{grid-column:2;grid-row:1}.remote-select--secondary{grid-column:2;grid-row:2;color:var(--muted-color);font-size:var(--small-font-size)}.ts-dropdown .option.active .remote-select--secondary{color:var(--highlight-color)}.remote-select--primary,.remote-select--secondary,.remote-select--selection-name,.remote-select--selection-aside{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remote-select--aside{grid-column:3;grid-row:1}.remote-select--secondary-aside{grid-column:3;grid-row:2}.remote-select--aside,.remote-select--secondary-aside{justify-self:end;white-space:nowrap;font-size:var(--small-font-size)}.remote-select--selection-aside{flex:0 10 auto;margin-left:auto;color:var(--muted-color);font-size:var(--small-font-size)}.ts-dropdown .option.active .remote-select--selection-aside{color:var(--highlight-color)}.remote-select--truncate-head{direction:rtl;text-align:left}.remote-select--badge{display:inline-block;background-color:var(--badge-bg-color);border-radius:var(--border-radius);padding:var(--size-1) var(--size-2);text-transform:uppercase;color:var(--color)}.ts-dropdown .option.active .remote-select--badge{color:var(--color);background-color:var(--badge-highlight-bg-color)}@media(prefers-color-scheme: dark){.remote-select--entry,.remote-select--selection{--color: var(--select-text-color, hsl(200deg, 5%, 70%));--muted-color: var(--a-lighter-grey, hsl(200deg, 5%, 70%));--highlight-color: var(--select-hover-text-color, hsl(0deg, 0%, 100%));--badge-bg-color: var(--a-dark-grey, hsl(200deg, 5%, 17.5%));--badge-highlight-bg-color: var(--badge-bg-color)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
alchemy-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-size, var(--icon-size-md));height:var(--icon-size, var(--icon-size-md));opacity:1;transition:opacity var(--transition-duration) var(--transition-easing)}alchemy-icon:not(:defined){opacity:0}alchemy-icon[size=xs]{width:var(--icon-size-xs);height:var(--icon-size-xs)}alchemy-icon[size=sm]{width:var(--icon-size-sm);height:var(--icon-size-sm)}alchemy-icon[size="1x"]{width:var(--icon-size-1x);height:var(--icon-size-1x)}alchemy-icon[size=xl]{width:var(--icon-size-xl);height:var(--icon-size-xl)}alchemy-icon.disabled{opacity:.3}alchemy-icon.blank{background:rgba(0,0,0,0)}alchemy-icon.error{padding:0}.icon{fill:var(--icon-color, currentColor);width:var(--icon-size, var(--icon-size-md));height:var(--icon-size, var(--icon-size-md))}.icon--xs{width:var(--icon-size-xs);height:var(--icon-size-xs)}.icon--sm{width:var(--icon-size-sm);height:var(--icon-size-sm)}.icon--1x{width:var(--icon-size-1x);height:var(--icon-size-1x)}.icon--xl{width:var(--icon-size-xl);height:var(--icon-size-xl)}.tomselected{display:none}:where(.ts-wrapper.alchemy_selectbox .ts-control)>input{width:100%}.ts-wrapper.alchemy_selectbox{position:relative;width:100%;max-width:100%}.ts-wrapper.alchemy_selectbox.medium{width:var(--select-medium-width)}.ts-wrapper.alchemy_selectbox.large{width:var(--select-large-width)}.ts-wrapper.alchemy_selectbox.x-large{width:var(--select-x-large-width)}.ts-wrapper.alchemy_selectbox.input-hidden .ts-control>input{left:-10000px;opacity:0;position:absolute}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control .remote-select--media,.ts-wrapper.alchemy_selectbox.single.input-active .ts-control .remote-select--icon{opacity:.25;transition:opacity var(--transition-duration)}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control input{position:absolute;background-color:rgb(from var(--form-field-background-color) r g b/50%);backdrop-filter:grayscale(100%);height:20px;transition:background-color}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control input.has-value{position:absolute;background-color:var(--form-field-background-color)}.ts-wrapper.alchemy_selectbox .ts-control{--item-height: 21px;--input-max-width: calc(100% - var(--spacing-4));align-items:center;background:var(--select-background-color);padding:var(--form-field-padding);border:var(--form-field-border-width) var(--form-field-border-style) var(--select-border-color);color:var(--select-text-color);margin:var(--form-field-margin);line-height:var(--form-field-line-height);min-height:var(--form-field-height);font-size:var(--form-field-font-size);border-radius:var(--border-radius_medium);cursor:pointer;position:relative}.ts-wrapper.alchemy_selectbox .ts-control sl-spinner{display:none;position:absolute;right:var(--spacing-2);top:50%;transform:translateY(-50%);font-size:1em;--indicator-color: var(--text-color-muted);--track-color: transparent}.ts-wrapper.alchemy_selectbox .ts-control>.item{margin:0;line-height:var(--item-height);max-width:90%;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.ts-wrapper.alchemy_selectbox .ts-control>input{color:var(--form-field-text-color);font-size:var(--form-field-font-size);height:auto;max-width:var(--input-max-width);margin:0;padding:0;border-radius:0;border:0}.ts-wrapper.alchemy_selectbox .ts-control>input:focus{box-shadow:none;border:none}.ts-wrapper.alchemy_selectbox .ts-control input::placeholder{color:var(--text-color-muted)}.ts-wrapper.alchemy_selectbox.single.input-active .ts-control{background:var(--select-background-color)}.ts-wrapper.alchemy_selectbox.single.has-items:has(.clear-button) .ts-control::after{margin-left:0}.ts-wrapper.alchemy_selectbox.single .ts-control{display:flex;align-items:center}.ts-wrapper.alchemy_selectbox.single .ts-control::after{content:"";display:inline-flex;flex:0 0 1em;width:1em;height:1em;margin-left:auto;background:var(--select-background-image) no-repeat center/contain}.ts-wrapper.alchemy_selectbox.loading .ts-control sl-spinner{display:inline-flex}.ts-wrapper.alchemy_selectbox.loading.single .ts-control::after{visibility:hidden}.ts-wrapper.alchemy_selectbox.focus .ts-control{border-color:var(--focus-color);border-radius:var(--border-radius_medium);box-shadow:0 0 0 1px var(--focus-color);outline:0 none}.ts-wrapper.alchemy_selectbox.focus .ts-control::-moz-focus-inner{border:none !important;padding:1px !important}.ts-wrapper.alchemy_selectbox.disabled .ts-control{background-color:var(--select-disabled-background-color);border-color:var(--select-disabled-border-color);color:var(--text-color-muted);cursor:not-allowed}.ts-wrapper.alchemy_selectbox.multi .ts-control{--input-max-width: 100%;display:flex;flex-wrap:wrap;height:auto;padding:var(--spacing-0)}.ts-wrapper.alchemy_selectbox.multi .ts-control>input{padding:4px 6px;margin:0;width:auto;min-width:7rem}.ts-wrapper.alchemy_selectbox.multi .ts-control>.item{display:inline-flex;align-items:center;gap:var(--spacing-1);margin:var(--spacing-0);padding:0 var(--spacing-1);color:var(--text-color);background:var(--tag-background-color);border:0 none;border-radius:var(--border-radius_medium);max-width:unset;white-space:normal}.ts-wrapper.alchemy_selectbox.multi .ts-control>.item .remove{appearance:none;border:none;background:none;box-shadow:none;cursor:pointer;font:inherit;display:inline-flex;align-items:center;align-self:start;height:var(--item-height);margin:0;padding:0;color:var(--icon-color);text-decoration:none}.ts-wrapper.alchemy_selectbox.multi .ts-control>.item .remove:hover{color:var(--text-color)}.ts-wrapper.alchemy_selectbox.multi .ts-control>.clear-button{position:absolute;top:4.5px;right:var(--spacing-1)}.ts-wrapper.alchemy_selectbox.multi .ts-control:has(.clear-button){position:relative;padding-right:var(--spacing-6)}.ts-wrapper.alchemy_selectbox.has-items .clear-button{display:inline-flex}.ts-wrapper.alchemy_selectbox .clear-button{--button-height: auto;display:none;background:none;border:none;box-shadow:none;margin:0 0 0 auto;padding:var(--spacing-1);width:var(--spacing-5)}.ts-dropdown-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:0}.ts-dropdown{position:absolute;width:max-content;top:0;left:0;z-index:1;background:var(--select-dropdown-background-color);box-shadow:var(--select-dropdown-box-shadow);color:var(--select-dropdown-text-color, var(--text-color));border:1px solid var(--select-dropdown-border-color);border-radius:var(--border-radius_medium)}.ts-dropdown>.ts-dropdown-content{border-radius:var(--border-radius_medium);max-height:var(--select-dropdown-max-height, 80vh);overflow-y:auto}.ts-dropdown .option{padding:var(--spacing-2);cursor:pointer;min-height:2.75em}.ts-dropdown .option .highlight,.ts-dropdown .option em{font-style:normal;text-decoration:underline}.ts-dropdown .option.selected{background:var(--select-selected-bg-color);box-shadow:inset 3px 0 0 var(--select-selected-marker-color);font-weight:var(--font-weight_semibold)}.ts-dropdown .option.active{background:var(--select-hover-bg-color, var(--color-blue_dark));color:var(--select-hover-text-color, var(--color-white))}.ts-dropdown .option.selected.active{--select-selected-marker-color: var(--color-orange_dark)}.ts-dropdown .loading-results{padding:var(--spacing-2);color:var(--text-color-muted)}.ts-dropdown .no-results{padding:var(--spacing-2);color:var(--text-color-muted)}.ts-dropdown .create{padding:var(--spacing-2);cursor:pointer}.ts-dropdown .loading-more,.ts-dropdown .no-more-results{color:var(--text-color-muted);cursor:default}.autocomplete_tag_list .ts-control>.item::before{content:"";flex:0 0 1rem;width:1rem;height:1rem;background:var(--tag-background-image) no-repeat center/contain}
|