alchemy-chimera 1.0.5 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.1.0 (2022-07-23)
2
+
3
+ * Upgrade `alchemy-acl` and `alchemy-form`
4
+
1
5
  ## 1.0.5 (2022-07-06)
2
6
 
3
7
  * Fix page title containing 'undefined'
@@ -280,7 +280,19 @@ alchemy-widgets-navigation {
280
280
  }
281
281
  }
282
282
 
283
- alchemy-field:not([view-type="view_inline"]):not([view-type="inline"]) {
283
+ alchemy-field {
284
+ .wrapped-inline {
285
+ > .field {
286
+ padding: 0 !important;
287
+ }
288
+ }
289
+ }
290
+
291
+ alchemy-field[mode="inline"] {
292
+ border: none;
293
+ }
294
+
295
+ alchemy-field:not([mode="inline"]) {
284
296
  border: 1px solid var(--color-box-border);
285
297
  background-color: white;
286
298
  border-radius: 4px;
package/config/routes.js CHANGED
@@ -2,6 +2,8 @@
2
2
  // By default this will be /chimera
3
3
  let chimera_section = Router.section('chimera', '/' + alchemy.plugins.chimera.base_path);
4
4
 
5
+ chimera_section.requirePermission('chimera');
6
+
5
7
  // Link to the dashboard
6
8
  chimera_section.add({
7
9
  title : __('chimera', 'Dashboard'),
@@ -227,7 +227,7 @@ Editor.setAction(async function trash(conduit, model_name, pk_val) {
227
227
  *
228
228
  * @author Jelle De Loecker <jelle@elevenways.be>
229
229
  * @since 1.0.0
230
- * @version 1.0.5
230
+ * @version 1.1.0
231
231
  *
232
232
  * @param {Conduit} conduit
233
233
  * @param {String} model_name
@@ -299,12 +299,12 @@ Editor.setAction(async function records(conduit, model_name) {
299
299
 
300
300
  let trash_action = new Classes.Alchemy.Form.Action.Url({
301
301
  name : 'trash',
302
- icon : 'trash',
303
- placement : ['context'],
304
- url : alchemy.routeUrl('Chimera.Editor#trash', {
305
- model : model_name,
306
- pk : record.$pk,
307
- })
302
+ icon : 'trash',
303
+ placement : ['context'],
304
+ url : alchemy.routeUrl('Chimera.Editor#trash', {
305
+ model : model_name,
306
+ pk : record.$pk,
307
+ })
308
308
  });
309
309
 
310
310
  record.$hold.actions = [
@@ -65,7 +65,7 @@ Config.setMethod(function getFieldSet(name) {
65
65
  *
66
66
  * @author Jelle De Loecker <jelle@elevenways.be>
67
67
  * @since 1.0.0
68
- * @version 1.0.2
68
+ * @version 1.1.0
69
69
  *
70
70
  * @param {String} action
71
71
  * @param {Conduit} conduit
@@ -131,7 +131,7 @@ Config.setMethod(function getWidgetConfig(action, conduit) {
131
131
  "type": "alchemy_form",
132
132
  "config": {
133
133
  model : this.ModelClass.type_name,
134
- view_type : 'edit',
134
+ purpose : 'edit',
135
135
  widgets : field_widgets
136
136
  }
137
137
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "alchemy-chimera",
3
3
  "description": "Chimera plugin for Alchemy MVC",
4
- "version": "1.0.5",
4
+ "version": "1.1.0",
5
5
  "author": "Jelle De Loecker <jelle@elevenways.be>",
6
6
  "keywords": [
7
7
  "alchemy",
@@ -11,9 +11,10 @@
11
11
  ],
12
12
  "repository": "11ways/alchemy-chimera",
13
13
  "peerDependencies": {
14
- "alchemy-acl" : "~0.7.0",
15
- "alchemymvc" : "~1.2.4",
16
- "alchemy-widget": "~0.1.2"
14
+ "alchemy-acl" : "~0.8.0",
15
+ "alchemymvc" : "~1.2.4",
16
+ "alchemy-form" : "~0.1.11",
17
+ "alchemy-widget" : "~0.1.5"
17
18
  },
18
19
  "license": "MIT",
19
20
  "engines": {