@operato/data-grist 10.29.96 → 10.29.98

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.
@@ -27,6 +27,7 @@ let DataCardField = class DataCardField extends LitElement {
27
27
  const shown = recordRenderer(value, column, record, rowIndex, this);
28
28
  const empty = shown === '' || shown === null || shown === undefined;
29
29
  this.toggleAttribute('empty', empty);
30
+ this.toggleAttribute('multiline', !!column.multiline);
30
31
  if (empty) {
31
32
  return html ``;
32
33
  }
@@ -61,6 +62,23 @@ DataCardField.styles = [
61
62
  display: none;
62
63
  }
63
64
 
65
+ /*
66
+ A column that is multiline in the grid reads whole on the card too - its lines kept, wrapping at the card's
67
+ width - instead of one line cut with 「…」 (Office 주간보고 영업 내용, 2026-11-24: the work done and the values
68
+ asked for cut on a phone). The same flag the grid's field takes (data-grid-field [multiline]).
69
+ */
70
+ :host([multiline]) {
71
+ align-items: flex-start;
72
+ max-width: 100%;
73
+ white-space: pre-line;
74
+ }
75
+
76
+ :host([multiline]) > * {
77
+ overflow: visible;
78
+ text-overflow: initial;
79
+ overflow-wrap: anywhere;
80
+ }
81
+
64
82
  :host([thumbnail]) {
65
83
  flex-direction: column;
66
84
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/data-grist",
3
- "version": "10.29.96",
3
+ "version": "10.29.98",
4
4
  "description": "User interface for grid (desktop) and list (mobile)",
5
5
  "author": "heartyoh",
6
6
  "type": "module",
@@ -144,5 +144,5 @@
144
144
  "prettier --write"
145
145
  ]
146
146
  },
147
- "gitHead": "08ca236e8ae1eeffc862343e7ca8cd0600f4c7c5"
147
+ "gitHead": "021b65512a944bd23b49fb114c7b0b935c6be945"
148
148
  }