alchemy_cms 7.0.11 → 7.1.0.pre.b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/backport.yml +36 -0
  3. data/.github/workflows/test.yml +3 -2
  4. data/.gitignore +1 -0
  5. data/.standard.yml +1 -1
  6. data/CHANGELOG.md +144 -15
  7. data/Gemfile +8 -10
  8. data/README.md +10 -8
  9. data/alchemy_cms.gemspec +4 -3
  10. data/app/assets/config/alchemy_manifest.js +0 -1
  11. data/app/assets/javascripts/alchemy/admin.js +1 -19
  12. data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +2 -3
  13. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +19 -34
  14. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +38 -13
  15. data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +1 -1
  16. data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +32 -25
  17. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +1 -1
  18. data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +3 -5
  19. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +0 -57
  20. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +22 -63
  21. data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +2 -2
  22. data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +5 -4
  23. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +5 -5
  24. data/app/assets/javascripts/alchemy/templates/index.js +0 -2
  25. data/app/assets/javascripts/alchemy/templates/node_folder.hbs +1 -1
  26. data/app/assets/javascripts/alchemy/templates/page.hbs +1 -1
  27. data/app/assets/javascripts/alchemy/templates/page_folder.hbs +2 -2
  28. data/app/assets/stylesheets/alchemy/_custom-properties.scss +82 -0
  29. data/app/assets/stylesheets/alchemy/_mixins.scss +38 -30
  30. data/app/assets/stylesheets/alchemy/_variables.scss +12 -5
  31. data/app/assets/stylesheets/alchemy/admin.scss +3 -4
  32. data/app/assets/stylesheets/alchemy/archive.scss +107 -50
  33. data/app/assets/stylesheets/alchemy/attachments.scss +5 -4
  34. data/app/assets/stylesheets/alchemy/buttons.scss +38 -164
  35. data/app/assets/stylesheets/alchemy/dashboard.scss +31 -6
  36. data/app/assets/stylesheets/alchemy/dialogs.scss +12 -28
  37. data/app/assets/stylesheets/alchemy/elements.scss +273 -282
  38. data/app/assets/stylesheets/alchemy/flash.scss +20 -12
  39. data/app/assets/stylesheets/alchemy/forms.scss +21 -34
  40. data/app/assets/stylesheets/alchemy/frame.scss +11 -32
  41. data/app/assets/stylesheets/alchemy/hints.scss +4 -62
  42. data/app/assets/stylesheets/alchemy/image_library.scss +36 -33
  43. data/app/assets/stylesheets/alchemy/labels.scss +4 -1
  44. data/app/assets/stylesheets/alchemy/menubar.scss +7 -6
  45. data/app/assets/stylesheets/alchemy/navigation.scss +27 -15
  46. data/app/assets/stylesheets/alchemy/nodes.scss +11 -7
  47. data/app/assets/stylesheets/alchemy/notices.scss +16 -4
  48. data/app/assets/stylesheets/alchemy/page-select.scss +10 -2
  49. data/app/assets/stylesheets/alchemy/pagination.scss +22 -13
  50. data/app/assets/stylesheets/alchemy/resource_info.scss +7 -5
  51. data/app/assets/stylesheets/alchemy/selects.scss +49 -42
  52. data/app/assets/stylesheets/alchemy/shoelace.scss +345 -0
  53. data/app/assets/stylesheets/alchemy/sitemap.scss +24 -14
  54. data/app/assets/stylesheets/alchemy/spinner.scss +9 -19
  55. data/app/assets/stylesheets/alchemy/tables.scss +16 -24
  56. data/app/assets/stylesheets/alchemy/tags.scss +4 -0
  57. data/app/assets/stylesheets/alchemy/toolbar.scss +29 -25
  58. data/app/assets/stylesheets/alchemy/upload.scss +140 -89
  59. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +80 -108
  60. data/app/components/alchemy/admin/node_select.rb +39 -0
  61. data/app/components/alchemy/admin/page_select.rb +42 -0
  62. data/app/controllers/alchemy/admin/base_controller.rb +5 -6
  63. data/app/controllers/alchemy/admin/elements_controller.rb +63 -35
  64. data/app/controllers/alchemy/admin/languages_controller.rb +1 -2
  65. data/app/controllers/alchemy/base_controller.rb +4 -2
  66. data/app/controllers/concerns/alchemy/admin/current_language.rb +1 -5
  67. data/app/controllers/concerns/alchemy/admin/uploader_responses.rb +1 -1
  68. data/app/controllers/concerns/alchemy/site_redirects.rb +1 -1
  69. data/app/decorators/alchemy/element_editor.rb +0 -2
  70. data/app/helpers/alchemy/admin/attachments_helper.rb +6 -5
  71. data/app/helpers/alchemy/admin/base_helper.rb +17 -12
  72. data/app/helpers/alchemy/admin/ingredients_helper.rb +4 -1
  73. data/app/helpers/alchemy/admin/pages_helper.rb +5 -11
  74. data/app/helpers/alchemy/base_helper.rb +47 -13
  75. data/app/javascript/alchemy_admin/components/alchemy_html_element.js +129 -0
  76. data/app/javascript/alchemy_admin/components/button.js +59 -0
  77. data/app/javascript/alchemy_admin/components/char_counter.js +40 -0
  78. data/app/javascript/alchemy_admin/components/datepicker.js +39 -0
  79. data/app/javascript/alchemy_admin/components/dialog_link.js +45 -0
  80. data/app/javascript/alchemy_admin/components/element_editor/publish_element_button.js +36 -0
  81. data/app/javascript/alchemy_admin/components/element_editor.js +553 -0
  82. data/app/javascript/alchemy_admin/components/ingredient_group.js +54 -0
  83. data/app/javascript/alchemy_admin/components/link_buttons/link_button.js +48 -0
  84. data/app/javascript/alchemy_admin/components/link_buttons/unlink_button.js +38 -0
  85. data/app/javascript/alchemy_admin/components/link_buttons.js +79 -0
  86. data/app/javascript/alchemy_admin/components/node_select.js +45 -0
  87. data/app/javascript/alchemy_admin/components/overlay.js +18 -0
  88. data/app/javascript/alchemy_admin/components/page_select.js +63 -0
  89. data/app/javascript/alchemy_admin/components/remote_select.js +134 -0
  90. data/app/javascript/alchemy_admin/components/select.js +12 -0
  91. data/app/javascript/alchemy_admin/components/spinner.js +31 -0
  92. data/app/javascript/alchemy_admin/components/tinymce.js +146 -0
  93. data/app/javascript/alchemy_admin/components/uploader/file_upload.js +266 -0
  94. data/app/javascript/alchemy_admin/components/uploader/progress.js +258 -0
  95. data/app/javascript/alchemy_admin/components/uploader.js +132 -0
  96. data/app/javascript/alchemy_admin/dirty.js +49 -0
  97. data/app/javascript/alchemy_admin/file_editors.js +1 -1
  98. data/app/javascript/alchemy_admin/gui.js +14 -0
  99. data/app/javascript/alchemy_admin/i18n.js +12 -8
  100. data/app/javascript/alchemy_admin/image_cropper.js +6 -3
  101. data/app/javascript/alchemy_admin/image_loader.js +7 -15
  102. data/app/javascript/alchemy_admin/ingredient_anchor_link.js +2 -5
  103. data/app/javascript/alchemy_admin/initializer.js +65 -0
  104. data/app/javascript/alchemy_admin/locales/en.js +31 -0
  105. data/app/javascript/alchemy_admin/picture_editors.js +2 -2
  106. data/app/javascript/alchemy_admin/picture_selector.js +38 -0
  107. data/app/javascript/alchemy_admin/please_wait_overlay.js +8 -0
  108. data/app/javascript/alchemy_admin/sortable_elements.js +78 -0
  109. data/app/javascript/alchemy_admin/spinner.js +36 -0
  110. data/app/javascript/alchemy_admin/tags_autocomplete.js +46 -0
  111. data/app/javascript/alchemy_admin/utils/ajax.js +6 -5
  112. data/app/javascript/alchemy_admin/utils/dom_helpers.js +20 -0
  113. data/app/javascript/alchemy_admin/utils/format.js +11 -0
  114. data/app/javascript/alchemy_admin/utils/string_conversions.js +10 -0
  115. data/app/javascript/alchemy_admin.js +70 -13
  116. data/app/javascript/menubar.js +10 -0
  117. data/app/models/alchemy/attachment.rb +9 -11
  118. data/app/models/alchemy/element.rb +11 -0
  119. data/app/models/alchemy/ingredients/richtext.rb +1 -10
  120. data/app/models/alchemy/node.rb +4 -0
  121. data/app/models/alchemy/page/page_elements.rb +2 -11
  122. data/app/models/alchemy/page/page_natures.rb +10 -2
  123. data/app/models/alchemy/page.rb +9 -49
  124. data/app/models/alchemy/picture/url.rb +1 -9
  125. data/app/serializers/alchemy/page_tree_serializer.rb +2 -1
  126. data/app/services/alchemy/copy_page.rb +98 -0
  127. data/app/views/alchemy/_menubar.html.erb +17 -13
  128. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +14 -10
  129. data/app/views/alchemy/admin/attachments/_attachment.html.erb +44 -36
  130. data/app/views/alchemy/admin/attachments/_replace_button.html.erb +15 -21
  131. data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +0 -1
  132. data/app/views/alchemy/admin/attachments/assign.js.erb +1 -1
  133. data/app/views/alchemy/admin/attachments/index.html.erb +6 -4
  134. data/app/views/alchemy/admin/attachments/show.html.erb +8 -8
  135. data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
  136. data/app/views/alchemy/admin/clipboard/index.html.erb +3 -7
  137. data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
  138. data/app/views/alchemy/admin/crop.html.erb +1 -1
  139. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
  140. data/app/views/alchemy/admin/dashboard/index.html.erb +13 -11
  141. data/app/views/alchemy/admin/dashboard/info.html.erb +7 -7
  142. data/app/views/alchemy/admin/elements/_add_nested_element_form.html.erb +21 -23
  143. data/app/views/alchemy/admin/elements/_element.html.erb +52 -44
  144. data/app/views/alchemy/admin/elements/_footer.html.erb +1 -1
  145. data/app/views/alchemy/admin/elements/_form.html.erb +1 -1
  146. data/app/views/alchemy/admin/elements/_header.html.erb +11 -12
  147. data/app/views/alchemy/admin/elements/_toolbar.html.erb +33 -45
  148. data/app/views/alchemy/admin/elements/create.js.erb +7 -15
  149. data/app/views/alchemy/admin/elements/destroy.js.erb +0 -2
  150. data/app/views/alchemy/admin/elements/index.html.erb +27 -24
  151. data/app/views/alchemy/admin/elements/new.html.erb +9 -11
  152. data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +2 -2
  153. data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +3 -3
  154. data/app/views/alchemy/admin/ingredients/_video_fields.html.erb +1 -2
  155. data/app/views/alchemy/admin/languages/_form.html.erb +2 -3
  156. data/app/views/alchemy/admin/languages/_language.html.erb +15 -8
  157. data/app/views/alchemy/admin/languages/_table.html.erb +1 -0
  158. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +28 -16
  159. data/app/views/alchemy/admin/layoutpages/index.html.erb +2 -2
  160. data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +12 -8
  161. data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +1 -1
  162. data/app/views/alchemy/admin/nodes/_form.html.erb +20 -21
  163. data/app/views/alchemy/admin/nodes/_node.html.erb +39 -34
  164. data/app/views/alchemy/admin/nodes/index.html.erb +1 -1
  165. data/app/views/alchemy/admin/pages/_anchor_link.html.erb +4 -4
  166. data/app/views/alchemy/admin/pages/_create_language_form.html.erb +2 -2
  167. data/app/views/alchemy/admin/pages/_current_page.html.erb +1 -1
  168. data/app/views/alchemy/admin/pages/_external_link.html.erb +4 -4
  169. data/app/views/alchemy/admin/pages/_file_link.html.erb +5 -5
  170. data/app/views/alchemy/admin/pages/_form.html.erb +10 -21
  171. data/app/views/alchemy/admin/pages/_internal_link.html.erb +4 -4
  172. data/app/views/alchemy/admin/pages/_locked_page.html.erb +2 -2
  173. data/app/views/alchemy/admin/pages/_new_page_form.html.erb +4 -17
  174. data/app/views/alchemy/admin/pages/_page.html.erb +76 -72
  175. data/app/views/alchemy/admin/pages/_page_infos.html.erb +23 -7
  176. data/app/views/alchemy/admin/pages/_page_layout_filter.html.erb +2 -1
  177. data/app/views/alchemy/admin/pages/_page_status.html.erb +11 -21
  178. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +2 -5
  179. data/app/views/alchemy/admin/pages/_table.html.erb +1 -1
  180. data/app/views/alchemy/admin/pages/_table_row.html.erb +43 -39
  181. data/app/views/alchemy/admin/pages/_toolbar.html.erb +43 -38
  182. data/app/views/alchemy/admin/pages/configure.html.erb +12 -14
  183. data/app/views/alchemy/admin/pages/edit.html.erb +80 -103
  184. data/app/views/alchemy/admin/pages/info.html.erb +20 -11
  185. data/app/views/alchemy/admin/pages/link.html.erb +22 -16
  186. data/app/views/alchemy/admin/pages/new.html.erb +9 -11
  187. data/app/views/alchemy/admin/pages/unlock.js.erb +10 -3
  188. data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +15 -13
  189. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +3 -5
  190. data/app/views/alchemy/admin/partials/_routes.html.erb +10 -2
  191. data/app/views/alchemy/admin/partials/_site_select.html.erb +6 -5
  192. data/app/views/alchemy/admin/partials/_toolbar_button.html.erb +28 -23
  193. data/app/views/alchemy/admin/pictures/_archive.html.erb +5 -5
  194. data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
  195. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +21 -23
  196. data/app/views/alchemy/admin/pictures/_infos.html.erb +2 -6
  197. data/app/views/alchemy/admin/pictures/_picture.html.erb +15 -17
  198. data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +17 -16
  199. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +1 -1
  200. data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +1 -1
  201. data/app/views/alchemy/admin/pictures/assign.js.erb +1 -1
  202. data/app/views/alchemy/admin/pictures/index.html.erb +34 -30
  203. data/app/views/alchemy/admin/pictures/show.html.erb +3 -3
  204. data/app/views/alchemy/admin/resources/_filter.html.erb +2 -2
  205. data/app/views/alchemy/admin/resources/_form.html.erb +2 -2
  206. data/app/views/alchemy/admin/resources/_per_page_select.html.erb +1 -1
  207. data/app/views/alchemy/admin/resources/_resource.html.erb +16 -9
  208. data/app/views/alchemy/admin/resources/_table.html.erb +4 -1
  209. data/app/views/alchemy/admin/resources/index.html.erb +22 -19
  210. data/app/views/alchemy/admin/sites/index.html.erb +2 -1
  211. data/app/views/alchemy/admin/styleguide/index.html.erb +54 -28
  212. data/app/views/alchemy/admin/tags/_tag.html.erb +16 -18
  213. data/app/views/alchemy/admin/tags/index.html.erb +15 -12
  214. data/app/views/alchemy/admin/tinymce/_setup.html.erb +29 -0
  215. data/app/views/alchemy/admin/uploader/_button.html.erb +23 -29
  216. data/app/views/alchemy/admin/uploader/_setup.html.erb +3 -8
  217. data/app/views/alchemy/base/500.html.erb +1 -1
  218. data/app/views/alchemy/base/error_notice.js.erb +0 -1
  219. data/app/views/alchemy/ingredients/_boolean_editor.html.erb +1 -1
  220. data/app/views/alchemy/ingredients/_datetime_editor.html.erb +1 -1
  221. data/app/views/alchemy/ingredients/_file_editor.html.erb +5 -5
  222. data/app/views/alchemy/ingredients/_link_editor.html.erb +1 -1
  223. data/app/views/alchemy/ingredients/_node_editor.html.erb +6 -19
  224. data/app/views/alchemy/ingredients/_page_editor.html.erb +7 -19
  225. data/app/views/alchemy/ingredients/_picture_editor.html.erb +2 -2
  226. data/app/views/alchemy/ingredients/_richtext_editor.html.erb +6 -15
  227. data/app/views/alchemy/ingredients/_select_editor.html.erb +2 -1
  228. data/app/views/alchemy/ingredients/_text_editor.html.erb +1 -1
  229. data/app/views/alchemy/ingredients/shared/_anchor.html.erb +1 -1
  230. data/app/views/alchemy/ingredients/shared/_link_tools.html.erb +10 -20
  231. data/app/views/alchemy/ingredients/shared/_picture_tools.html.erb +42 -49
  232. data/app/views/kaminari/alchemy/_first_page.html.erb +4 -2
  233. data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
  234. data/app/views/kaminari/alchemy/_last_page.html.erb +4 -2
  235. data/app/views/kaminari/alchemy/_next_page.html.erb +4 -2
  236. data/app/views/kaminari/alchemy/_prev_page.html.erb +4 -2
  237. data/app/views/layouts/alchemy/admin.html.erb +10 -29
  238. data/config/alchemy/modules.yml +30 -30
  239. data/config/importmap.rb +10 -1
  240. data/config/initializers/rails_live_reload.rb +13 -0
  241. data/config/locales/alchemy.en.yml +23 -9
  242. data/config/routes.rb +2 -1
  243. data/lib/alchemy/auth_accessors.rb +6 -1
  244. data/lib/alchemy/controller_actions.rb +17 -4
  245. data/lib/alchemy/dev_support/live_reload_watcher.rb +5 -0
  246. data/lib/alchemy/engine.rb +8 -2
  247. data/lib/alchemy/forms/builder.rb +18 -12
  248. data/lib/alchemy/resources_helper.rb +3 -3
  249. data/lib/alchemy/test_support/capybara_helpers.rb +8 -5
  250. data/lib/alchemy/test_support/rspec_matchers.rb +14 -0
  251. data/lib/alchemy/test_support/shared_uploader_examples.rb +1 -1
  252. data/lib/alchemy/tinymce.rb +8 -3
  253. data/lib/alchemy/version.rb +1 -1
  254. data/package.json +14 -5
  255. data/vendor/assets/fonts/remixicon.eot +0 -0
  256. data/vendor/assets/fonts/remixicon.svg +7816 -0
  257. data/vendor/assets/fonts/remixicon.ttf +0 -0
  258. data/vendor/assets/fonts/remixicon.woff +0 -0
  259. data/vendor/assets/fonts/remixicon.woff2 +0 -0
  260. data/vendor/assets/stylesheets/remixicon.scss +10480 -0
  261. metadata +85 -96
  262. data/app/assets/javascripts/alchemy/alchemy.autocomplete.js.coffee +0 -30
  263. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +0 -53
  264. data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +0 -45
  265. data/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee +0 -19
  266. data/app/assets/javascripts/alchemy/alchemy.dirty.js.coffee +0 -59
  267. data/app/assets/javascripts/alchemy/alchemy.dragndrop.js.coffee +0 -79
  268. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +0 -267
  269. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +0 -27
  270. data/app/assets/javascripts/alchemy/alchemy.spinner.js +0 -32
  271. data/app/assets/javascripts/alchemy/alchemy.tooltips.coffee +0 -10
  272. data/app/assets/javascripts/alchemy/alchemy.uploader.js.coffee +0 -131
  273. data/app/assets/javascripts/alchemy/menubar.js.coffee +0 -8
  274. data/app/assets/javascripts/alchemy/node_select.js +0 -39
  275. data/app/assets/javascripts/alchemy/page_select.js +0 -46
  276. data/app/assets/javascripts/alchemy/templates/node.hbs +0 -16
  277. data/app/assets/javascripts/alchemy/templates/spinner.hbs +0 -7
  278. data/app/assets/stylesheets/alchemy/jquery-ui.scss +0 -435
  279. data/app/javascript/alchemy_admin/datepicker.js +0 -40
  280. data/app/javascript/alchemy_admin/tinymce.js +0 -146
  281. data/app/javascript/alchemy_admin/translations.js +0 -32
  282. data/app/views/alchemy/admin/elements/fold.js.erb +0 -33
  283. data/app/views/alchemy/admin/elements/order.js.erb +0 -11
  284. data/app/views/alchemy/admin/elements/publish.js.erb +0 -21
  285. data/app/views/alchemy/admin/elements/update.js.erb +0 -27
  286. data/vendor/assets/fonts/fa-regular-400.eot +0 -0
  287. data/vendor/assets/fonts/fa-regular-400.svg +0 -803
  288. data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
  289. data/vendor/assets/fonts/fa-regular-400.woff +0 -0
  290. data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
  291. data/vendor/assets/fonts/fa-solid-900.eot +0 -0
  292. data/vendor/assets/fonts/fa-solid-900.svg +0 -4938
  293. data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
  294. data/vendor/assets/fonts/fa-solid-900.woff +0 -0
  295. data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
  296. data/vendor/assets/javascripts/fileupload/jquery.fileupload-process.js +0 -178
  297. data/vendor/assets/javascripts/fileupload/jquery.fileupload-validate.js +0 -125
  298. data/vendor/assets/javascripts/fileupload/jquery.fileupload.js +0 -1502
  299. data/vendor/assets/javascripts/fileupload/jquery.iframe-transport.js +0 -224
  300. data/vendor/assets/javascripts/jquery-ui/data.js +0 -45
  301. data/vendor/assets/javascripts/jquery-ui/ie.js +0 -20
  302. data/vendor/assets/javascripts/jquery-ui/keycode.js +0 -51
  303. data/vendor/assets/javascripts/jquery-ui/plugin.js +0 -49
  304. data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
  305. data/vendor/assets/javascripts/jquery-ui/safe-blur.js +0 -27
  306. data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +0 -50
  307. data/vendor/assets/javascripts/jquery-ui/unique-id.js +0 -54
  308. data/vendor/assets/javascripts/jquery-ui/version.js +0 -20
  309. data/vendor/assets/javascripts/jquery-ui/widget.js +0 -754
  310. data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +0 -1268
  311. data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +0 -241
  312. data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +0 -1623
  313. data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +0 -931
  314. data/vendor/assets/javascripts/jquery_plugins/jquery.scrollTo.min.js +0 -7
  315. data/vendor/assets/javascripts/jquery_plugins/jquery.ui.tabspaging.js +0 -296
  316. data/vendor/assets/stylesheets/fontawesome/_animated.scss +0 -20
  317. data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +0 -20
  318. data/vendor/assets/stylesheets/fontawesome/_core.scss +0 -21
  319. data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +0 -6
  320. data/vendor/assets/stylesheets/fontawesome/_icons.scss +0 -1441
  321. data/vendor/assets/stylesheets/fontawesome/_larger.scss +0 -23
  322. data/vendor/assets/stylesheets/fontawesome/_list.scss +0 -18
  323. data/vendor/assets/stylesheets/fontawesome/_mixins.scss +0 -56
  324. data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +0 -24
  325. data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +0 -5
  326. data/vendor/assets/stylesheets/fontawesome/_stacked.scss +0 -31
  327. data/vendor/assets/stylesheets/fontawesome/_variables.scss +0 -1458
  328. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +0 -16
  329. data/vendor/assets/stylesheets/fontawesome/regular.scss +0 -23
  330. data/vendor/assets/stylesheets/fontawesome/solid.scss +0 -24
@@ -1,7 +1,8 @@
1
1
  @mixin default-focus-style(
2
2
  $border-color: $focus-color,
3
3
  $box-shadow: 0 0 0 2px $focus-color,
4
- $border-radius: $default-border-radius) {
4
+ $border-radius: $default-border-radius
5
+ ) {
5
6
  border-color: $border-color;
6
7
  border-radius: $border-radius;
7
8
  box-shadow: $box-shadow;
@@ -25,12 +26,15 @@
25
26
  $color: $button-text-color,
26
27
  $line-height: $form-field-line-height,
27
28
  $focus-border-color: $button-focus-border-color,
28
- $focus-box-shadow: $button-focus-box-shadow) {
29
- display: inline-block;
29
+ $focus-box-shadow: $button-focus-box-shadow
30
+ ) {
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
30
34
  font-family: $default-font-family;
31
35
  font-size: $default-font-size;
32
36
  font-weight: $button-font-weight;
33
- line-height: $line-height;
37
+ height: 30px;
34
38
  padding: $padding;
35
39
  cursor: pointer;
36
40
  border-radius: $border-radius;
@@ -49,7 +53,8 @@
49
53
  border-color: $hover-border-color;
50
54
  }
51
55
 
52
- &:active, &.active {
56
+ &:active,
57
+ &.active {
53
58
  box-shadow: inset $button-box-shadow;
54
59
  }
55
60
 
@@ -60,9 +65,12 @@
60
65
  );
61
66
  }
62
67
 
63
- &.disabled, &[disabled],
64
- &.disabled:active, &[disabled]:active,
65
- &.disabled:hover, &[disabled]:hover {
68
+ &.disabled,
69
+ &[disabled],
70
+ &.disabled:active,
71
+ &[disabled]:active,
72
+ &.disabled:hover,
73
+ &[disabled]:hover {
66
74
  background-color: transparentize($button-bg-color, 0.5);
67
75
  cursor: not-allowed;
68
76
  box-shadow: none;
@@ -90,14 +98,17 @@
90
98
  float: right;
91
99
  width: $form-right-width;
92
100
  margin: $form-field-margin;
93
- padding: $default-padding 2*$default-padding;
101
+ padding: $default-padding 2 * $default-padding;
94
102
  line-height: 21px;
95
103
  min-height: $form-field-height;
96
104
  background: white;
97
105
  border-radius: $default-border-radius;
98
106
  }
99
107
 
100
- @mixin form-hint($background-color: $light_yellow, $border-color: $medium-gray) {
108
+ @mixin form-hint(
109
+ $background-color: $light_yellow,
110
+ $border-color: $medium-gray
111
+ ) {
101
112
  font-size: $small-font-size;
102
113
  line-height: 1.5em;
103
114
  padding: $default-padding;
@@ -135,7 +146,10 @@
135
146
  box-shadow: $shadow;
136
147
  }
137
148
 
138
- @mixin label-base($margin: 2*$default-margin 0, $padding: $default-padding 3*$default-padding) {
149
+ @mixin label-base(
150
+ $margin: 2 * $default-margin 0,
151
+ $padding: $default-padding 3 * $default-padding
152
+ ) {
139
153
  display: inline-block;
140
154
  vertical-align: middle;
141
155
  padding: $padding;
@@ -147,18 +161,18 @@
147
161
  color: $text-color;
148
162
  }
149
163
 
150
- @mixin tag-base($margin: 2*$default-margin 0, $padding: $default-padding 3*$default-padding) {
151
- @include label-base(
152
- $margin: $margin,
153
- $padding: $padding
154
- );
164
+ @mixin tag-base(
165
+ $margin: 2 * $default-margin 0,
166
+ $padding: $default-padding 3 * $default-padding
167
+ ) {
168
+ @include label-base($margin: $margin, $padding: $padding);
155
169
 
156
170
  &:before {
157
- content: fa-content($fa-var-tag);
158
- font-family: 'Font Awesome 5 Free';
159
- font-weight: 900;
160
- font-size: 0.8em;
161
- padding-right: 2*$default-padding;
171
+ content: $ri-price-tag-3-line;
172
+ font-family: "remixicon";
173
+ font-weight: 400;
174
+ font-size: 1em;
175
+ padding-right: $default-padding;
162
176
  }
163
177
 
164
178
  &:focus {
@@ -169,7 +183,8 @@
169
183
  @mixin linked-button(
170
184
  $border-radius: $default-border-radius,
171
185
  $line-height: $form-field-line-height,
172
- $padding: 3px) {
186
+ $padding: 3px
187
+ ) {
173
188
  @include button-defaults(
174
189
  $line-height: $line-height,
175
190
  $background-color: $linked-button-color,
@@ -185,7 +200,7 @@
185
200
 
186
201
  @mixin zoom-in {
187
202
  cursor: pointer;
188
- cursor: image-url('alchemy/lupe.cur');
203
+ cursor: image-url("alchemy/lupe.cur");
189
204
  cursor: -webkit-zoom-in;
190
205
  cursor: -moz-zoom-in;
191
206
  cursor: zoom-in;
@@ -199,13 +214,6 @@
199
214
  white-space: $wrap;
200
215
  }
201
216
 
202
- @mixin hint-hover-style {
203
- visibility: visible;
204
- top: 26px;
205
- opacity: 1;
206
- transition-delay: .2s;
207
- }
208
-
209
217
  @mixin clearfix {
210
218
  &::after {
211
219
  clear: both;
@@ -59,7 +59,7 @@ $form-field-border-style: $default-border-style !default;
59
59
  $form-field-border-color: $default-border-color $default-border-color
60
60
  $border-inset-color $border-inset-color !default;
61
61
  $form-field-box-shadow: inset 0px 0 1px $medium-gray !default;
62
- $form-field-padding: 0.6em 0.75em !default;
62
+ $form-field-padding: $default-padding 2 * $default-padding !default;
63
63
  $form-field-font-size: $default-font-size !default;
64
64
  $form-field-line-height: 1.25 !default;
65
65
  $form-field-text-color: $text-color !default;
@@ -80,7 +80,7 @@ $button-font-weight: 700 !default;
80
80
  $button-text-shadow: none !default;
81
81
  $button-box-shadow: 0px 1px 1px -1px #333 !default;
82
82
  $button-focus-box-shadow: 0px 1px 1px 0px $button-focus-border-color !default;
83
- $button-padding: 0.55em 2em !default;
83
+ $button-padding: $default-padding 5 * $default-padding !default;
84
84
  $small-button-padding: 0.4em 0.8em !default;
85
85
  $button-margin: $form-field-margin !default;
86
86
 
@@ -108,7 +108,7 @@ $error_text_color: #a23434 !default;
108
108
  $error_background_color: #efd3d3 !default;
109
109
 
110
110
  $hint-background-color: $light_yellow !default;
111
- $hint-text-color: $very-dark-gray !default;
111
+ $hint-text-color: #59543e !default;
112
112
 
113
113
  $form-left-width: 35% !default;
114
114
  $form-right-width: 65% !default;
@@ -130,6 +130,7 @@ $main-menu-icon-color: $white !default;
130
130
  $main-menu-entry-max-width: 110px !default;
131
131
  $toolbar-bg-color: $medium-gray !default;
132
132
  $toolbar-height: 46px !default;
133
+ $tab-bar-height: 51px !default;
133
134
  $element-toolbar-height: 37px !default;
134
135
  $header-height: 29px !default;
135
136
  $header-background: #d8d8d8 !default;
@@ -147,7 +148,7 @@ $table-row-hover-color: rgba($light_yellow, 0.5) !default;
147
148
 
148
149
  $elements-window-width: 22.5vw !default;
149
150
  $elements-window-min-width: 400px !default;
150
- $element-header-bg-color: $medium-gray !default;
151
+ $element-header-bg-color: transparent !default;
151
152
  $element-header-active-bg-color: $dark-blue !default;
152
153
  $element-header-active-color: $white !default;
153
154
  $element-header-deprecated-bg-color: rgba(253, 213, 175, 0.25) !default;
@@ -174,6 +175,12 @@ $select-hover-text-color: $white !default;
174
175
  $medium-select-box-width: 90px;
175
176
  $large-select-box-width: 120px;
176
177
 
177
- $thumbnail-background-color: opacify($default-border-color, 1) !default;
178
+ $thumbnail-background:
179
+ linear-gradient(45deg, $medium-gray 25%, transparent 25%) 0.5em 0.5em/1em 1em,
180
+ linear-gradient(-45deg, $medium-gray 25%, transparent 25%) -0.5em 0/1em 1em,
181
+ linear-gradient(45deg, transparent 75%, $medium-gray 75%) 0 0/1em 1em,
182
+ linear-gradient(-45deg, transparent 75%, $medium-gray 75%) 0 0.5em/1em 1em
183
+ $white !default;
184
+
178
185
  $medium-screen-break-point: 700px;
179
186
  $large-screen-break-point: 1000px;
@@ -3,9 +3,8 @@
3
3
  *= require_self
4
4
  */
5
5
 
6
- @import "fontawesome/fontawesome";
7
- @import "fontawesome/regular";
8
- @import "fontawesome/solid";
6
+ @import "remixicon";
7
+ @import "alchemy/custom-properties";
9
8
  @import "alchemy/defaults";
10
9
  @import "alchemy/archive";
11
10
  @import "alchemy/navigation";
@@ -39,6 +38,7 @@
39
38
  @import "alchemy/resource_info";
40
39
  @import "alchemy/search";
41
40
  @import "alchemy/selects";
41
+ @import "alchemy/shoelace";
42
42
  @import "alchemy/sitemap";
43
43
  @import "alchemy/spinner";
44
44
  @import "alchemy/tables";
@@ -46,5 +46,4 @@
46
46
  @import "alchemy/typography";
47
47
  @import "alchemy/lists";
48
48
  @import "alchemy/upload";
49
- @import "alchemy/jquery-ui";
50
49
  @import "jquery.Jcrop.min";
@@ -1,5 +1,5 @@
1
1
  .resources-header {
2
- padding: 2 * $default-padding;
2
+ padding: 0 2 * $default-padding;
3
3
  }
4
4
 
5
5
  .applied-filter {
@@ -25,18 +25,14 @@
25
25
  }
26
26
  }
27
27
 
28
- div#image_assign_filter_and_image_sizing {
29
- width: 100%;
30
- height: 40px;
31
- }
28
+ .selected_item_tools {
29
+ margin: -2 * $default-padding;
30
+ border-bottom: 1px solid $default-border-color;
31
+ margin-bottom: 4 * $default-padding;
32
+ padding: 4 * $default-padding;
32
33
 
33
- #picture_archive {
34
- .selected_item_tools {
35
- margin: -2 * $default-padding;
36
- border-bottom: 1px solid $default-border-color;
37
- margin-bottom: 4 * $default-padding;
38
- padding: 4 * $default-padding;
39
- display: none;
34
+ .button {
35
+ vertical-align: middle;
40
36
  }
41
37
  }
42
38
 
@@ -45,9 +41,7 @@ div#image_assign_filter_and_image_sizing {
45
41
  display: flex;
46
42
  align-items: center;
47
43
  justify-content: center;
48
- background-color: $thumbnail-background-color;
49
- width: 100%;
50
- height: 120px;
44
+ box-shadow: 0 0 1px 1px $default-border-color;
51
45
 
52
46
  &:hover {
53
47
  text-decoration: none;
@@ -55,55 +49,62 @@ div#image_assign_filter_and_image_sizing {
55
49
  }
56
50
 
57
51
  .picture_thumbnail {
58
- margin: 2 * $default-margin;
59
- background-color: #fff;
52
+ --picture-thumbnail-border-radius: var(--border-radius_medium);
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ width: var(--picture-thumbnail-width);
57
+ height: var(--picture-thumbnail-height);
60
58
  position: relative;
61
- box-shadow: 0 0 0 1px $default-border-color;
62
- width: 160px;
59
+ border-radius: var(--picture-thumbnail-border-radius);
60
+ padding: 2 * $default-padding;
61
+ padding-bottom: 2.5em;
62
+ transition: all $transition-duration;
63
+
64
+ img,
65
+ .thumbnail_background {
66
+ border-radius: var(--picture-thumbnail-border-radius);
67
+ }
63
68
 
64
69
  img {
65
- width: 100%;
66
- height: 100%;
67
- object-fit: contain;
70
+ max-width: 100%;
71
+ max-height: 100%;
72
+ background: $thumbnail-background;
68
73
 
69
- &[src$=".svg"] {
70
- width: auto;
71
- height: auto;
74
+ &[src*=".svg"] {
75
+ width: var(--picture-width);
76
+ max-height: var(--picture-height);
72
77
  }
73
78
  }
74
79
 
75
80
  .picture_name {
76
- display: block;
81
+ position: absolute;
77
82
  width: 100%;
78
83
  text-align: center;
79
84
  white-space: nowrap;
80
85
  overflow: hidden;
81
86
  bottom: 0;
82
87
  left: 0;
83
- line-height: 2;
88
+ line-height: 2.5;
84
89
  padding: 0 $default-padding;
85
90
  text-overflow: ellipsis;
86
91
  }
87
92
 
88
- &.small {
89
- width: 80px;
90
-
91
- .thumbnail_background {
92
- height: 60px;
93
+ &:hover,
94
+ &:focus-within {
95
+ .picture_tool,
96
+ .picture_tags {
97
+ visibility: visible;
98
+ opacity: 1;
93
99
  }
94
100
  }
95
101
 
96
- &.large {
97
- width: 240px;
102
+ &:hover,
103
+ &:focus-within,
104
+ &.active {
105
+ box-shadow: 0 0 4px 2px $default-border-color;
98
106
 
99
- .thumbnail_background {
100
- height: 180px;
101
- }
102
- }
103
-
104
- &:hover {
105
- .picture_tool,
106
- .picture_tags {
107
+ .picture_tool.select {
107
108
  visibility: visible;
108
109
  opacity: 1;
109
110
  }
@@ -112,8 +113,34 @@ div#image_assign_filter_and_image_sizing {
112
113
 
113
114
  #pictures,
114
115
  #overlay_picture_list {
115
- display: flex;
116
- flex-wrap: wrap;
116
+ --picture-width: 160px;
117
+ --picture-height: 120px;
118
+ --picture-thumbnail-width: calc(var(--picture-width) + var(--spacing-2));
119
+ --picture-thumbnail-height: calc(
120
+ var(--picture-height) + var(--spacing-2) + 2.5em
121
+ );
122
+
123
+ display: grid;
124
+ gap: 2 * $default-margin;
125
+ grid-template-columns: repeat(
126
+ auto-fill,
127
+ minmax(var(--picture-thumbnail-width), auto)
128
+ );
129
+ justify-items: center;
130
+
131
+ &.picture-size--small {
132
+ --picture-width: 80px;
133
+ --picture-height: 60px;
134
+ }
135
+
136
+ &.picture-size--large {
137
+ --picture-width: 240px;
138
+ --picture-height: 180px;
139
+ }
140
+ }
141
+
142
+ #picture_archive {
143
+ overflow: visible;
117
144
  }
118
145
 
119
146
  #pictures {
@@ -133,17 +160,23 @@ div.assign_image_list_image {
133
160
  }
134
161
 
135
162
  .picture_tool {
163
+ display: flex;
136
164
  width: 20px;
137
165
  height: 20px;
166
+ align-items: center;
167
+ justify-content: center;
138
168
  position: absolute;
139
169
  background-color: white;
140
170
  top: $default-padding;
141
171
  padding: $default-padding / 2;
142
172
  z-index: 10;
143
- text-align: center;
144
173
  border-radius: $default-border-radius;
145
174
  box-shadow: 0 0 1px $dark-gray;
146
175
 
176
+ &:hover {
177
+ text-decoration: none;
178
+ }
179
+
147
180
  &.visible {
148
181
  visibility: visible;
149
182
  opacity: 1;
@@ -169,22 +202,32 @@ div.assign_image_list_image {
169
202
  }
170
203
 
171
204
  a {
172
- display: block;
205
+ display: flex;
206
+ align-items: center;
207
+ justify-content: center;
173
208
  width: 16px;
174
209
  height: 16px;
175
210
  cursor: pointer;
211
+
212
+ &:hover {
213
+ text-decoration: none;
214
+ }
176
215
  }
177
216
  }
178
217
 
179
218
  .picture_tags {
180
219
  overflow: hidden;
181
220
  position: absolute;
182
- bottom: 22px;
221
+ bottom: 28px;
183
222
  left: 0;
184
223
  width: 100%;
185
224
  max-height: 80%;
186
225
  padding: $default-padding;
187
226
  pointer-events: none;
227
+
228
+ .tag {
229
+ box-shadow: 0 0 2px 2px $default-border-color;
230
+ }
188
231
  }
189
232
 
190
233
  .picture_tags,
@@ -237,11 +280,25 @@ div#filter_bar {
237
280
  #assign_image_list,
238
281
  #assign_file_list {
239
282
  position: relative;
240
- height: 548px;
283
+ height: 558px;
241
284
  }
242
285
 
243
286
  #assign_image_list {
244
- padding-right: 244px;
287
+ padding-right: 240px;
288
+ padding-bottom: 60px;
289
+ }
290
+
291
+ #overlay_picture_list {
292
+ height: 100%;
293
+ overflow: auto;
294
+
295
+ .picture_thumbnail:hover {
296
+ box-shadow: none;
297
+
298
+ .thumbnail_background {
299
+ box-shadow: 0 0 4px 4px $default-border-color;
300
+ }
301
+ }
245
302
  }
246
303
 
247
304
  #overlay_file_list {
@@ -268,8 +325,8 @@ div#filter_bar {
268
325
  }
269
326
 
270
327
  .icon {
271
- margin-top: -2px;
272
328
  margin-right: 4px;
329
+ vertical-align: bottom;
273
330
  }
274
331
  }
275
332
  }
@@ -2,18 +2,19 @@
2
2
  background-color: $medium-gray;
3
3
  margin-top: 12px;
4
4
 
5
- audio, video {
5
+ audio,
6
+ video {
6
7
  display: block;
7
8
  }
8
9
 
9
10
  &.image-preview {
10
11
  height: 300px;
11
12
  text-align: center;
12
- padding: 2*$default-padding;
13
+ padding: 2 * $default-padding;
13
14
  white-space: nowrap;
14
15
 
15
16
  &:before {
16
- content: '';
17
+ content: "";
17
18
  display: inline-block;
18
19
  height: 100%;
19
20
  vertical-align: middle;
@@ -34,6 +35,6 @@
34
35
  .full-iframe {
35
36
  width: 100%;
36
37
  background-color: white;
37
- min-height: 335px;
38
+ min-height: 435px;
38
39
  margin-top: 12px;
39
40
  }