@fishawack/lab-velocity 2.0.0-beta.16 → 2.0.0-beta.17

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/README.md CHANGED
@@ -426,6 +426,7 @@ Structure arrays take objects. The objects require a key only but have other opt
426
426
  Generally speaking the only different between admin routes tends to do the columns which within a model are shared. Because of this you can use the utility method `columns` to automatically build out the table, description & form fields using the following syntax.
427
427
 
428
428
  ```js
429
+ import { Resource } from "@fishawack/lab-velocity";
429
430
  import { Checkbox as VelCheckbox } from "@fishawack/lab-velocity";
430
431
 
431
432
  {
@@ -435,7 +436,7 @@ import { Checkbox as VelCheckbox } from "@fishawack/lab-velocity";
435
436
  create: ({ $store }) => $store.getters.can("write personas"),
436
437
  edit: ({ $store }) => $store.getters.can("write personas"),
437
438
  },
438
- ...resourceColumns(
439
+ ...Resource.columns(
439
440
  [
440
441
  {
441
442
  key: "name",
@@ -470,6 +471,7 @@ import { Checkbox as VelCheckbox } from "@fishawack/lab-velocity";
470
471
  The columns also takes an optional array as second parameter which defines which values to display on the table view.
471
472
 
472
473
  ```js
474
+ import { Resource } from "@fishawack/lab-velocity";
473
475
  import { Checkbox as VelCheckbox } from "@fishawack/lab-velocity";
474
476
 
475
477
  const columns [
@@ -491,6 +493,6 @@ const columns [
491
493
  create: ({ $store }) => $store.getters.can("write personas"),
492
494
  edit: ({ $store }) => $store.getters.can("write personas"),
493
495
  },
494
- ...resourceColumns(columns, ["id", "name"]),
496
+ ...Resource.columns(columns, ["id", "name"]),
495
497
  },
496
498
  ```
@@ -188,4 +188,5 @@ export function routes(node, name, properties = {}) {
188
188
  export default {
189
189
  routes,
190
190
  meta,
191
+ columns,
191
192
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-velocity",
3
- "version": "2.0.0-beta.16",
3
+ "version": "2.0.0-beta.17",
4
4
  "description": "Avalere Health branded style system",
5
5
  "scripts": {
6
6
  "setup": "npm ci || npm i && npm run content",