alchemy-widget 0.2.7 → 0.2.8

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +0 -0
  3. package/assets/stylesheets/alchemy_widgets.scss +0 -0
  4. package/bootstrap.js +0 -0
  5. package/controller/alchemy_widgets_controller.js +0 -0
  6. package/element/00-widget_base_element.js +0 -0
  7. package/element/05-widget_element.js +0 -0
  8. package/element/10-container_elements.js +0 -0
  9. package/element/11-alchemy_widgets_list_element.js +0 -0
  10. package/element/20-add_area_element.js +0 -0
  11. package/element/30-base_toolbar_element.js +8 -3
  12. package/element/editor_toolbar_element.js +0 -0
  13. package/element/table_of_contents_element.js +0 -0
  14. package/element/user_avatar_element.js +0 -0
  15. package/element/user_avatar_group_element.js +0 -0
  16. package/element/widget_actionbar_element.js +0 -0
  17. package/element/widget_context_element.js +0 -0
  18. package/element/widget_toolbar_element.js +0 -0
  19. package/helper/document_watcher.js +0 -0
  20. package/helper/editor_toolbar_manager.js +0 -0
  21. package/helper/widget_action.js +0 -0
  22. package/helper/widgets/00-widget.js +0 -0
  23. package/helper/widgets/01-container.js +0 -0
  24. package/helper/widgets/05-column.js +0 -0
  25. package/helper/widgets/05-list.js +0 -0
  26. package/helper/widgets/05-row.js +0 -0
  27. package/helper/widgets/alchemy_field_widget.js +0 -0
  28. package/helper/widgets/alchemy_form_widget.js +0 -0
  29. package/helper/widgets/alchemy_table_widget.js +0 -0
  30. package/helper/widgets/alchemy_tabs_widget.js +0 -0
  31. package/helper/widgets/hawkejs_template.js +0 -0
  32. package/helper/widgets/header.js +0 -0
  33. package/helper/widgets/html.js +0 -0
  34. package/helper/widgets/markdown.js +0 -0
  35. package/helper/widgets/partial.js +0 -0
  36. package/helper/widgets/sourcecode.js +0 -0
  37. package/helper/widgets/table_of_contents.js +0 -0
  38. package/helper/widgets/text.js +0 -0
  39. package/helper/widgets_helper.js +0 -0
  40. package/helper_field/widget.js +0 -0
  41. package/helper_field/widgets.js +0 -0
  42. package/lib/conduit_extras.js +0 -0
  43. package/package.json +3 -3
  44. package/view/elements/table_of_contents.hwk +0 -0
  45. package/view/form/inputs/edit/widget.hwk +0 -0
  46. package/view/form/inputs/edit/widgets.hwk +0 -0
  47. package/view/widget/elements/al_editor_toolbar.hwk +0 -0
  48. package/view/widget/elements/al_user_avatar.hwk +0 -0
  49. package/view/widget/elements/al_widget_toolbar.hwk +0 -0
  50. package/view/widget/widget_config.hwk +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.8 (2023-06-17)
2
+
3
+ * Make the widget toolbar render area contents correctly + load scripts & styles
4
+
1
5
  ## 0.2.7 (2023-04-20)
2
6
 
3
7
  * Use `Element#hideForEveryone()` when hiding widgets
package/README.md CHANGED
File without changes
File without changes
package/bootstrap.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -73,7 +73,7 @@ Toolbar.setMethod(function onToolbarManagerAssignment(manager, old_manager) {
73
73
  *
74
74
  * @author Jelle De Loecker <jelle@elevenways.be>
75
75
  * @since 0.2.7
76
- * @version 0.2.7
76
+ * @version 0.2.8
77
77
  */
78
78
  Toolbar.setMethod(function prepareToolbarManager(manager, old_manager) {
79
79
 
@@ -123,7 +123,7 @@ Toolbar.setMethod(function prepareToolbarManager(manager, old_manager) {
123
123
  let area_element = this.getAreaElement(area);
124
124
 
125
125
  if (area_element) {
126
- hawkejs.renderToElements(template, variables, (err, elements) => {
126
+ let renderer = hawkejs.renderToElements(template, variables, (err, elements) => {
127
127
 
128
128
  if (current_clear_count != clear_counts[area]) {
129
129
  // The area has been cleared in the meantime
@@ -135,7 +135,12 @@ Toolbar.setMethod(function prepareToolbarManager(manager, old_manager) {
135
135
  return;
136
136
  }
137
137
 
138
- area_element.append(...elements);
138
+ for (let i = 0; i < elements.length; i++) {
139
+ area_element.appendChild(elements[i]);
140
+ }
141
+
142
+ hawkejs.scene.handleRendererScripts(renderer);
143
+ hawkejs.scene.handleRendererStyles(renderer);
139
144
  });
140
145
  }
141
146
  });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "alchemy-widget",
3
3
  "description": "The widget plugin for the AlchemyMVC",
4
- "version": "0.2.7",
4
+ "version": "0.2.8",
5
5
  "author": "Jelle De Loecker <jelle@elevenways.be>",
6
6
  "keywords": [
7
7
  "alchemy",
@@ -10,8 +10,8 @@
10
10
  "widget"
11
11
  ],
12
12
  "peerDependencies": {
13
- "alchemymvc" : ">=1.2.0",
14
- "alchemy-form": "~0.2.4"
13
+ "alchemymvc" : ">=1.3.0",
14
+ "alchemy-form": "~0.2.6"
15
15
  },
16
16
  "repository": "11ways/alchemy-widget",
17
17
  "license": "MIT",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes