@antelopejs/interface-dms 0.5.1 → 0.5.2

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,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.5.2
4
+
5
+ [compare changes](https://github.com/AntelopeJS/dms/compare/interface-v0.5.1...v0.5.2)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - **table-view:** Reorder the cards of the cards display ([#194](https://github.com/AntelopeJS/dms/pull/194))
10
+
11
+ ### 🩹 Fixes
12
+
13
+ - **dms-ui:** Declare @lezer/common, which the code highlighter imports ([#192](https://github.com/AntelopeJS/dms/pull/192))
14
+ - **table-view:** Open the toolbar search from its button again ([#193](https://github.com/AntelopeJS/dms/pull/193))
15
+
16
+ ### 📦 Build
17
+
18
+ - **deps:** Require interface-dms 0.5.1 and dms-frontend 0.5.2 ([#191](https://github.com/AntelopeJS/dms/pull/191))
19
+
20
+ ### 🏡 Chore
21
+
22
+ - **release:** @antelopejs/dms v0.7.2 ([18f8a17](https://github.com/AntelopeJS/dms/commit/18f8a17))
23
+ - **release:** @antelopejs/dms v0.7.3 ([f27b9c5](https://github.com/AntelopeJS/dms/commit/f27b9c5))
24
+ - **release:** @antelopejs/dms v0.7.4 ([b328fa3](https://github.com/AntelopeJS/dms/commit/b328fa3))
25
+
26
+ ### ❤️ Contributors
27
+
28
+ - Antony Rizzitelli <rizzitelli.antony@pm.me>
29
+
3
30
  ## v0.5.1
4
31
 
5
32
  [compare changes](https://github.com/AntelopeJS/dms/compare/interface-v0.5.0...v0.5.1)
@@ -300,7 +300,8 @@ export type TableViewPaginationMode = "pages" | "loadMore" | "infinite";
300
300
  /**
301
301
  * Rows the user orders by hand: a drag handle (or the arrow keys on it)
302
302
  * moves a row, and the rows it moved get a new value of `field`. The handle
303
- * shows on the grid, to a caller who may edit the rows.
303
+ * shows on the grid and on the `cards` display (in front of each row, on
304
+ * each card), to a caller who may edit the rows.
304
305
  */
305
306
  export interface TableViewReorderOptions {
306
307
  /**
@@ -425,7 +426,10 @@ export interface TableViewCardOptions {
425
426
  * hand it the same props: `row`, `rowId`, `columns`, `labelKey`, `actions`
426
427
  * (the table's row actions), `selected` and `select(value?)` (the row's
427
428
  * selection), and `open()` (what a click on the row does). The kanban adds
428
- * `groupValue`, the value of the column the card sits in.
429
+ * `groupValue`, the value of the column the card sits in; the `cards`
430
+ * display of a hand-ordered table (`reorder`) adds `reorder`, the card's
431
+ * move handle (`{ enabled, dragging, handle }`, `handle` bound with
432
+ * `v-bind` on a button).
429
433
  */
430
434
  component?: Component;
431
435
  }
@@ -826,10 +830,11 @@ export interface TableViewOptions<T extends Record<string, unknown> = Record<str
826
830
  kanban?: KanbanOptions;
827
831
  /**
828
832
  * Lets the user order the rows by hand: the rows are listed sorted on
829
- * `field`, a drag handle moves a row within its page, and only the rows
830
- * whose position changed are saved (a partial edit of `field`). Moving is
831
- * off while a search, a filter or a tab narrows the rows. Needs the
832
- * `edit` action.
833
+ * `field`, a drag handle moves a row within its page — on the grid and on
834
+ * the `cards` display, whose custom `card.component` receives the handle
835
+ * as its `reorder` prop — and only the rows whose position changed are
836
+ * saved (a partial edit of `field`). Moving is off while a search, a
837
+ * filter or a tab narrows the rows. Needs the `edit` action.
833
838
  */
834
839
  reorder?: TableViewReorderOptions;
835
840
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/base/table-view/options.ts"],"names":[],"mappings":";;;AA2Ba,QAAA,oBAAoB,GAAG,KAAK,CAAC;AAE1C,oEAAoE;AACvD,QAAA,mBAAmB,GAAG,EAAE,CAAC;AAqtBtC,uCAAuC;AAC1B,QAAA,gBAAgB,GAAG,OAAO,CAAC;AACxC,yCAAyC;AAC5B,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,4CAA4C;AAC/B,QAAA,gBAAgB,GAAG,OAAO,CAAC;AACxC,0DAA0D;AAC7C,QAAA,kBAAkB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/base/table-view/options.ts"],"names":[],"mappings":";;;AA2Ba,QAAA,oBAAoB,GAAG,KAAK,CAAC;AAE1C,oEAAoE;AACvD,QAAA,mBAAmB,GAAG,EAAE,CAAC;AAytBtC,uCAAuC;AAC1B,QAAA,gBAAgB,GAAG,OAAO,CAAC;AACxC,yCAAyC;AAC5B,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,4CAA4C;AAC/B,QAAA,gBAAgB,GAAG,OAAO,CAAC;AACxC,0DAA0D;AAC7C,QAAA,kBAAkB,GAAG,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/interface-dms",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Public AntelopeJS interfaces of the DMS: pages, components, permissions, tenancy, auth, notifications and HTML rendering.",
5
5
  "keywords": [
6
6
  "antelopejs",