@appcorp/app-corp-vista 0.3.2 → 0.3.4

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.
@@ -134,28 +134,28 @@ exports.vistaChatV2Props = {
134
134
  {
135
135
  message: 'Hello from User',
136
136
  id: 'item-1',
137
- createdAt: '2025-01-11 10:09:49.891',
137
+ createdAt: '2025-01-11T10:09:49.891',
138
138
  // status: 'DELIVERED',
139
139
  isUser: true,
140
140
  },
141
141
  {
142
142
  message: 'Hello from Psychic',
143
143
  id: 'item-2',
144
- createdAt: '2025-01-11 10:15:49.891',
144
+ createdAt: '2025-01-11T10:15:49.891',
145
145
  // status: 'DELIVERED',
146
146
  isUser: false,
147
147
  },
148
148
  {
149
149
  message: 'Hello from User',
150
150
  id: 'item-3',
151
- createdAt: '2025-01-11 10:19:49.891',
151
+ createdAt: '2025-01-11T10:19:49.891',
152
152
  // status: 'DELIVERED',
153
153
  isUser: true,
154
154
  },
155
155
  {
156
156
  message: 'Hello from User',
157
157
  id: 'item-4',
158
- createdAt: '2025-01-12 10:29:49.891',
158
+ createdAt: '2025-01-12T10:29:49.891',
159
159
  // status: 'DELIVERED',
160
160
  isUser: true,
161
161
  },
@@ -21,7 +21,7 @@ var VistaChatV2 = function (_a) {
21
21
  return (react_1.default.createElement("div", { className: "overflow-y-scroll" }, messages.map(function (_a, ind) {
22
22
  var _b, _c;
23
23
  var createdAt = _a.createdAt, id = _a.id, isUser = _a.isUser, message = _a.message;
24
- var shouldShowDivider = ((_b = lastDate.split(' ')) === null || _b === void 0 ? void 0 : _b[0]) === ((_c = createdAt.split(' ')) === null || _c === void 0 ? void 0 : _c[0])
24
+ var shouldShowDivider = ((_b = lastDate.split('T')) === null || _b === void 0 ? void 0 : _b[0]) === ((_c = createdAt.split('T')) === null || _c === void 0 ? void 0 : _c[0])
25
25
  ? false
26
26
  : true;
27
27
  lastDate = createdAt;
@@ -78,7 +78,12 @@ var componentMap = (_a = {},
78
78
  react_1.default.createElement(vista_table_cell_v1_1.VistaTableCellV1, { label: val }))); },
79
79
  _a[vista_table_type_1.VISTA_TABLE_CELL_TYPE.MULTIPLE_TEXT_LINES] = function (val) { return (react_1.default.createElement("td", { className: exports.dataClasses }, val.map(function (v) {
80
80
  var id = (0, uuid_1.v4)();
81
- return react_1.default.createElement(vista_table_cell_v1_1.VistaTableCellV1, { key: id, label: v });
81
+ if (typeof v === 'string') {
82
+ return react_1.default.createElement(vista_table_cell_v1_1.VistaTableCellV1, { key: id, label: v });
83
+ }
84
+ if (typeof v === 'boolean') {
85
+ return (react_1.default.createElement(vista_badge_v1_1.VistaBadgeV1, { type: v ? vista_badge_type_1.VISTA_BADGE_TYPE.INFO : vista_badge_type_1.VISTA_BADGE_TYPE.WARNING, label: v ? 'Yes' : 'No' }));
86
+ }
82
87
  }))); },
83
88
  _a[vista_table_type_1.VISTA_TABLE_CELL_TYPE.PDF] = function (val) { return (react_1.default.createElement("td", { className: exports.dataClasses, onClick: function () { return window.open(val, '_blank'); } }, val && react_1.default.createElement(solid_1.DocumentIcon, { className: "size-10" }))); },
84
89
  _a[vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN] = function (val) { return (react_1.default.createElement("td", { className: exports.dataClasses },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
6
6
  "build:next": "next build",