@trackunit/custom-field-table-helpers 0.0.0-stage → 1.0.3
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 +11 -2
- package/index.cjs.js +394 -0
- package/index.d.ts +1 -0
- package/index.esm.js +390 -0
- package/migrations/entry.js +3 -0
- package/migrations/entry.js.map +1 -0
- package/migrations.json +3 -0
- package/package.json +31 -3
- package/src/generated/graphql-api/fragment-masking.d.ts +19 -0
- package/src/generated/graphql-api/gql.d.ts +35 -0
- package/src/generated/graphql-api/graphql.d.ts +323 -0
- package/src/generated/graphql-api/index.d.ts +2 -0
- package/src/index.d.ts +4 -0
- package/src/useColumnDefinitionsFromCustomFieldDefinition/customFieldToCell.d.ts +8 -0
- package/src/useColumnDefinitionsFromCustomFieldDefinition/customFieldToExportString.d.ts +8 -0
- package/src/useColumnDefinitionsFromCustomFieldDefinition/types.d.ts +165 -0
- package/src/useColumnDefinitionsFromCustomFieldDefinition/useColumnDefinitionsFromCustomFieldDefinition.d.ts +18 -0
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Trackunit Custom Field Table Helpers
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@trackunit/custom-field-table-helpers` turns custom-field definitions into table columns, cells, and export values.
|
|
4
|
+
|
|
5
|
+
For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
|
|
6
|
+
|
|
7
|
+
## Trackunit
|
|
8
|
+
|
|
9
|
+
This package was developed by Trackunit ApS.
|
|
10
|
+
Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
|
|
11
|
+
|
|
12
|
+

|
package/index.cjs.js
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var dateAndTimeUtils = require('@trackunit/date-and-time-utils');
|
|
5
|
+
var irisAppRuntimeCore = require('@trackunit/iris-app-runtime-core');
|
|
6
|
+
var reactComponents = require('@trackunit/react-components');
|
|
7
|
+
var reactTableBaseComponents = require('@trackunit/react-table-base-components');
|
|
8
|
+
var customFieldComponents = require('@trackunit/custom-field-components');
|
|
9
|
+
var filtersGraphqlHook = require('@trackunit/filters-graphql-hook');
|
|
10
|
+
var reactTable = require('@trackunit/react-table');
|
|
11
|
+
var react = require('react');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Takes a custom fields data object and returns a react node that can be used as a cell in a table.
|
|
15
|
+
*/
|
|
16
|
+
const customFieldToCell = (customField, unitTranslation, unitPreference, language) => {
|
|
17
|
+
const type = customField.__typename;
|
|
18
|
+
switch (type) {
|
|
19
|
+
case "BooleanFieldValueAndDefinition": {
|
|
20
|
+
const checked = customField.booleanValue ?? false;
|
|
21
|
+
return jsxRuntime.jsx(reactTableBaseComponents.CheckboxCell, { checked: checked });
|
|
22
|
+
}
|
|
23
|
+
case "StringFieldValueAndDefinition":
|
|
24
|
+
return jsxRuntime.jsx(reactTableBaseComponents.TextCell, { content: customField.stringValue?.toString() ?? "" });
|
|
25
|
+
case "EmailFieldValueAndDefinition":
|
|
26
|
+
return jsxRuntime.jsx(reactTableBaseComponents.LinkCell, { link: customField.emailValue?.toString() ?? "", type: "EMAIL" });
|
|
27
|
+
case "PhoneNumberFieldValueAndDefinition":
|
|
28
|
+
return jsxRuntime.jsx(reactTableBaseComponents.LinkCell, { link: customField.phoneNumberValue?.toString() ?? "", type: "PHONE" });
|
|
29
|
+
case "WebAddressFieldValueAndDefinition": {
|
|
30
|
+
return jsxRuntime.jsx(reactTableBaseComponents.LinkCell, { link: customField.webAddressValue ?? "", type: "LINK" });
|
|
31
|
+
}
|
|
32
|
+
case "DateFieldValueAndDefinition": {
|
|
33
|
+
const date = customField.dateValue;
|
|
34
|
+
return date ? jsxRuntime.jsx(reactTableBaseComponents.PlainDateCell, { date: dateAndTimeUtils.Temporal.PlainDate.from(date), locale: language }) : null;
|
|
35
|
+
}
|
|
36
|
+
case "StringListFieldValueAndDefinition":
|
|
37
|
+
case "DropDownFieldValueAndDefinition": {
|
|
38
|
+
const tags = customField.stringArrayValue ?? [];
|
|
39
|
+
return jsxRuntime.jsx(reactTableBaseComponents.TagsCell, { tags: tags });
|
|
40
|
+
}
|
|
41
|
+
case "JsonFieldValueAndDefinition":
|
|
42
|
+
return jsxRuntime.jsx(reactTableBaseComponents.TextCell, { content: customField.jsonValue?.toString() ?? "" });
|
|
43
|
+
case "NumberFieldValueAndDefinition": {
|
|
44
|
+
const unitType = unitPreference === "SI" ? customField.definition.unitSi : customField.definition.unitUs;
|
|
45
|
+
const value = customField.numberValue !== null && customField.numberValue !== undefined
|
|
46
|
+
? `${customField.numberValue}`
|
|
47
|
+
: undefined;
|
|
48
|
+
const updatedValue = irisAppRuntimeCore.getCustomFieldValueForDisplayInUI(value, unitType, unitPreference, language);
|
|
49
|
+
return jsxRuntime.jsx(reactTableBaseComponents.NumberCell, { unit: unitTranslation(unitType), value: updatedValue });
|
|
50
|
+
}
|
|
51
|
+
case "MonetaryFieldValueAndDefinition":
|
|
52
|
+
return jsxRuntime.jsx(reactTableBaseComponents.NumberCell, { value: customField.monetaryValue?.toString() ?? "" });
|
|
53
|
+
case "FileFieldValueAndDefinition": {
|
|
54
|
+
const fileName = customField.fileName;
|
|
55
|
+
const downloadLink = customField.downloadLink;
|
|
56
|
+
if (!fileName) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
if (!downloadLink) {
|
|
60
|
+
return jsxRuntime.jsx(reactTableBaseComponents.TextCell, { content: fileName });
|
|
61
|
+
}
|
|
62
|
+
const handleClick = event => {
|
|
63
|
+
event.stopPropagation();
|
|
64
|
+
};
|
|
65
|
+
return (jsxRuntime.jsx(reactComponents.ExternalLink, { color: "neutral", href: downloadLink, onClick: handleClick, title: fileName, children: fileName }));
|
|
66
|
+
}
|
|
67
|
+
default:
|
|
68
|
+
throw new Error(`Unexpected value: ${type}`);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Takes a custom fields data object and returns a react node that can be used as a cell in a table.
|
|
74
|
+
*/
|
|
75
|
+
const customFieldToExportString = (customField, unitTranslation, unitPreference, language) => {
|
|
76
|
+
const type = customField.__typename;
|
|
77
|
+
switch (type) {
|
|
78
|
+
case "BooleanFieldValueAndDefinition": {
|
|
79
|
+
const checked = customField.booleanValue ?? false;
|
|
80
|
+
return checked;
|
|
81
|
+
}
|
|
82
|
+
case "StringFieldValueAndDefinition":
|
|
83
|
+
return customField.stringValue?.toString() ?? "";
|
|
84
|
+
case "EmailFieldValueAndDefinition":
|
|
85
|
+
return customField.emailValue?.toString() ?? "";
|
|
86
|
+
case "PhoneNumberFieldValueAndDefinition":
|
|
87
|
+
return customField.phoneNumberValue?.toString() ?? "";
|
|
88
|
+
case "WebAddressFieldValueAndDefinition": {
|
|
89
|
+
return customField.webAddressValue ?? "";
|
|
90
|
+
}
|
|
91
|
+
case "DateFieldValueAndDefinition": {
|
|
92
|
+
const date = customField.dateValue;
|
|
93
|
+
return date;
|
|
94
|
+
}
|
|
95
|
+
case "StringListFieldValueAndDefinition":
|
|
96
|
+
case "DropDownFieldValueAndDefinition": {
|
|
97
|
+
const tags = customField.stringArrayValue ?? [];
|
|
98
|
+
return tags.join(", ");
|
|
99
|
+
}
|
|
100
|
+
case "JsonFieldValueAndDefinition":
|
|
101
|
+
return customField.jsonValue?.toString() ?? "";
|
|
102
|
+
case "NumberFieldValueAndDefinition": {
|
|
103
|
+
const unitType = unitPreference === "SI" ? customField.definition.unitSi : customField.definition.unitUs;
|
|
104
|
+
const value = Boolean(customField.numberValue) ? `${customField.numberValue}` : undefined;
|
|
105
|
+
const updatedValue = irisAppRuntimeCore.getCustomFieldValueForDisplayInUI(value, unitType, unitPreference, language);
|
|
106
|
+
const unit = unitTranslation(unitType);
|
|
107
|
+
return unit ? `${updatedValue} ${unit}` : `${updatedValue}`;
|
|
108
|
+
}
|
|
109
|
+
case "MonetaryFieldValueAndDefinition":
|
|
110
|
+
return customField.monetaryValue?.toString() ?? "";
|
|
111
|
+
case "FileFieldValueAndDefinition":
|
|
112
|
+
return customField.fileName ?? "";
|
|
113
|
+
default:
|
|
114
|
+
throw new Error(`Unexpected value: ${type}`);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const AssetCustomFieldsFragmentDoc = {
|
|
119
|
+
kind: "Document",
|
|
120
|
+
definitions: [
|
|
121
|
+
{
|
|
122
|
+
kind: "FragmentDefinition",
|
|
123
|
+
name: { kind: "Name", value: "AssetCustomFields" },
|
|
124
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Asset" } },
|
|
125
|
+
selectionSet: {
|
|
126
|
+
kind: "SelectionSet",
|
|
127
|
+
selections: [
|
|
128
|
+
{
|
|
129
|
+
kind: "Field",
|
|
130
|
+
name: { kind: "Name", value: "customFields" },
|
|
131
|
+
arguments: [
|
|
132
|
+
{
|
|
133
|
+
kind: "Argument",
|
|
134
|
+
name: { kind: "Name", value: "definitionIds" },
|
|
135
|
+
value: { kind: "Variable", name: { kind: "Name", value: "definitionIds" } },
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
selectionSet: {
|
|
139
|
+
kind: "SelectionSet",
|
|
140
|
+
selections: [
|
|
141
|
+
{
|
|
142
|
+
kind: "Field",
|
|
143
|
+
name: { kind: "Name", value: "edges" },
|
|
144
|
+
selectionSet: {
|
|
145
|
+
kind: "SelectionSet",
|
|
146
|
+
selections: [
|
|
147
|
+
{
|
|
148
|
+
kind: "Field",
|
|
149
|
+
name: { kind: "Name", value: "node" },
|
|
150
|
+
selectionSet: {
|
|
151
|
+
kind: "SelectionSet",
|
|
152
|
+
selections: [
|
|
153
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
154
|
+
{
|
|
155
|
+
kind: "Field",
|
|
156
|
+
name: { kind: "Name", value: "definition" },
|
|
157
|
+
selectionSet: {
|
|
158
|
+
kind: "SelectionSet",
|
|
159
|
+
selections: [
|
|
160
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
161
|
+
{ kind: "Field", name: { kind: "Name", value: "title" } },
|
|
162
|
+
{ kind: "Field", name: { kind: "Name", value: "key" } },
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
{ kind: "Field", name: { kind: "Name", value: "valueId" } },
|
|
167
|
+
{
|
|
168
|
+
kind: "InlineFragment",
|
|
169
|
+
typeCondition: {
|
|
170
|
+
kind: "NamedType",
|
|
171
|
+
name: { kind: "Name", value: "BooleanFieldValueAndDefinition" },
|
|
172
|
+
},
|
|
173
|
+
selectionSet: {
|
|
174
|
+
kind: "SelectionSet",
|
|
175
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "booleanValue" } }],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
kind: "InlineFragment",
|
|
180
|
+
typeCondition: {
|
|
181
|
+
kind: "NamedType",
|
|
182
|
+
name: { kind: "Name", value: "DateFieldValueAndDefinition" },
|
|
183
|
+
},
|
|
184
|
+
selectionSet: {
|
|
185
|
+
kind: "SelectionSet",
|
|
186
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "dateValue" } }],
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
kind: "InlineFragment",
|
|
191
|
+
typeCondition: {
|
|
192
|
+
kind: "NamedType",
|
|
193
|
+
name: { kind: "Name", value: "DropDownFieldValueAndDefinition" },
|
|
194
|
+
},
|
|
195
|
+
selectionSet: {
|
|
196
|
+
kind: "SelectionSet",
|
|
197
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "stringArrayValue" } }],
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
kind: "InlineFragment",
|
|
202
|
+
typeCondition: {
|
|
203
|
+
kind: "NamedType",
|
|
204
|
+
name: { kind: "Name", value: "EmailFieldValueAndDefinition" },
|
|
205
|
+
},
|
|
206
|
+
selectionSet: {
|
|
207
|
+
kind: "SelectionSet",
|
|
208
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "emailValue" } }],
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
kind: "InlineFragment",
|
|
213
|
+
typeCondition: {
|
|
214
|
+
kind: "NamedType",
|
|
215
|
+
name: { kind: "Name", value: "NumberFieldValueAndDefinition" },
|
|
216
|
+
},
|
|
217
|
+
selectionSet: {
|
|
218
|
+
kind: "SelectionSet",
|
|
219
|
+
selections: [
|
|
220
|
+
{
|
|
221
|
+
kind: "Field",
|
|
222
|
+
name: { kind: "Name", value: "definition" },
|
|
223
|
+
selectionSet: {
|
|
224
|
+
kind: "SelectionSet",
|
|
225
|
+
selections: [
|
|
226
|
+
{ kind: "Field", name: { kind: "Name", value: "unitSi" } },
|
|
227
|
+
{ kind: "Field", name: { kind: "Name", value: "unitUs" } },
|
|
228
|
+
],
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
kind: "Field",
|
|
233
|
+
name: { kind: "Name", value: "numberValue" },
|
|
234
|
+
arguments: [
|
|
235
|
+
{
|
|
236
|
+
kind: "Argument",
|
|
237
|
+
name: { kind: "Name", value: "systemOfMeasurement" },
|
|
238
|
+
value: {
|
|
239
|
+
kind: "Variable",
|
|
240
|
+
name: { kind: "Name", value: "systemOfMeasurement" },
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
kind: "InlineFragment",
|
|
250
|
+
typeCondition: {
|
|
251
|
+
kind: "NamedType",
|
|
252
|
+
name: { kind: "Name", value: "PhoneNumberFieldValueAndDefinition" },
|
|
253
|
+
},
|
|
254
|
+
selectionSet: {
|
|
255
|
+
kind: "SelectionSet",
|
|
256
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "phoneNumberValue" } }],
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
kind: "InlineFragment",
|
|
261
|
+
typeCondition: {
|
|
262
|
+
kind: "NamedType",
|
|
263
|
+
name: { kind: "Name", value: "StringFieldValueAndDefinition" },
|
|
264
|
+
},
|
|
265
|
+
selectionSet: {
|
|
266
|
+
kind: "SelectionSet",
|
|
267
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "stringValue" } }],
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
kind: "InlineFragment",
|
|
272
|
+
typeCondition: {
|
|
273
|
+
kind: "NamedType",
|
|
274
|
+
name: { kind: "Name", value: "WebAddressFieldValueAndDefinition" },
|
|
275
|
+
},
|
|
276
|
+
selectionSet: {
|
|
277
|
+
kind: "SelectionSet",
|
|
278
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "webAddressValue" } }],
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
kind: "InlineFragment",
|
|
283
|
+
typeCondition: {
|
|
284
|
+
kind: "NamedType",
|
|
285
|
+
name: { kind: "Name", value: "JsonFieldValueAndDefinition" },
|
|
286
|
+
},
|
|
287
|
+
selectionSet: {
|
|
288
|
+
kind: "SelectionSet",
|
|
289
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "jsonValue" } }],
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
kind: "InlineFragment",
|
|
294
|
+
typeCondition: {
|
|
295
|
+
kind: "NamedType",
|
|
296
|
+
name: { kind: "Name", value: "MonetaryFieldValueAndDefinition" },
|
|
297
|
+
},
|
|
298
|
+
selectionSet: {
|
|
299
|
+
kind: "SelectionSet",
|
|
300
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "monetaryValue" } }],
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
kind: "InlineFragment",
|
|
305
|
+
typeCondition: {
|
|
306
|
+
kind: "NamedType",
|
|
307
|
+
name: { kind: "Name", value: "StringListFieldValueAndDefinition" },
|
|
308
|
+
},
|
|
309
|
+
selectionSet: {
|
|
310
|
+
kind: "SelectionSet",
|
|
311
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "stringArrayValue" } }],
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
kind: "InlineFragment",
|
|
316
|
+
typeCondition: {
|
|
317
|
+
kind: "NamedType",
|
|
318
|
+
name: { kind: "Name", value: "FileFieldValueAndDefinition" },
|
|
319
|
+
},
|
|
320
|
+
selectionSet: {
|
|
321
|
+
kind: "SelectionSet",
|
|
322
|
+
selections: [
|
|
323
|
+
{ kind: "Field", name: { kind: "Name", value: "fileName" } },
|
|
324
|
+
{ kind: "Field", name: { kind: "Name", value: "downloadLink" } },
|
|
325
|
+
],
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Generates an array of table column definitions based on custom field definitions.
|
|
345
|
+
*
|
|
346
|
+
* @template TDataType - The data type with custom fields.
|
|
347
|
+
* @param {CustomFieldDefinitionArray} customFieldDefinitions - An array of custom field definitions.
|
|
348
|
+
* @returns {ColumnDef<TDataType, CustomFieldData | undefined>[]} - An array of column definitions.
|
|
349
|
+
*/
|
|
350
|
+
const useColumnDefinitionsFromCustomFieldDefinition = ({ customFieldDefinitions, unitPreference, language, filterBarDefinition, }) => {
|
|
351
|
+
const { unitTranslation } = customFieldComponents.useUnitTranslation();
|
|
352
|
+
return react.useMemo(() => {
|
|
353
|
+
const columnHelper = reactTable.createColumnHelper();
|
|
354
|
+
const result = [];
|
|
355
|
+
customFieldDefinitions?.forEach(customFieldDefinition => {
|
|
356
|
+
if (customFieldDefinition?.node &&
|
|
357
|
+
customFieldDefinition.node.id &&
|
|
358
|
+
customFieldDefinition.node.title &&
|
|
359
|
+
customFieldDefinition.node.__typename) {
|
|
360
|
+
const id = filtersGraphqlHook.CustomFieldPrefix + customFieldDefinition.node.id;
|
|
361
|
+
const isKeyFound = filterBarDefinition ? !!filterBarDefinition[id] : false;
|
|
362
|
+
const column = columnHelper.accessor(data => data.customFields?.edges?.find(field => {
|
|
363
|
+
return field?.node?.definition.id === customFieldDefinition.node?.id;
|
|
364
|
+
})?.node, {
|
|
365
|
+
header: customFieldDefinition.node.title,
|
|
366
|
+
id: customFieldDefinition.node.id,
|
|
367
|
+
enableSorting: customFieldDefinition.node.__typename !== "DropDownFieldDefinition" &&
|
|
368
|
+
customFieldDefinition.node.__typename !== "StringListFieldDefinition" &&
|
|
369
|
+
customFieldDefinition.node.__typename !== "FileFieldDefinition",
|
|
370
|
+
meta: {
|
|
371
|
+
fragment: AssetCustomFieldsFragmentDoc,
|
|
372
|
+
hiddenByDefault: true,
|
|
373
|
+
isCustomField: { definitionId: customFieldDefinition.node.id },
|
|
374
|
+
filterName: isKeyFound && filterBarDefinition ? filterBarDefinition[id]?.filterKey : undefined,
|
|
375
|
+
export: {
|
|
376
|
+
accessor: "customFields.edges[].node",
|
|
377
|
+
transformer: { type: "customFields", id: customFieldDefinition.node.id },
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
cell: cell => {
|
|
381
|
+
const cellValue = cell.getValue();
|
|
382
|
+
return cellValue ? customFieldToCell(cellValue, unitTranslation, unitPreference, language) : "";
|
|
383
|
+
},
|
|
384
|
+
});
|
|
385
|
+
result.push(column);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
return result;
|
|
389
|
+
}, [filterBarDefinition, customFieldDefinitions, unitTranslation, unitPreference, language]);
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
exports.customFieldToCell = customFieldToCell;
|
|
393
|
+
exports.customFieldToExportString = customFieldToExportString;
|
|
394
|
+
exports.useColumnDefinitionsFromCustomFieldDefinition = useColumnDefinitionsFromCustomFieldDefinition;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|