@fixefy/fixefy-ui-utils 0.2.25 → 0.2.27
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/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +17 -16
- package/dist/transform/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type CurrencyCodes = 'usd' | 'eur' | 'ils';
|
|
2
2
|
export interface Currency {
|
|
3
|
+
_id: string;
|
|
3
4
|
code: CurrencyCodes;
|
|
4
5
|
readable_id: string;
|
|
5
6
|
symbol: string;
|
|
6
|
-
_id: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const ColumnInputTypes: Record<string, string>;
|
|
9
9
|
export declare const ComponentTypes: Record<string, string>;
|
package/dist/constants/index.js
CHANGED
|
@@ -38,39 +38,40 @@ const ColumnInputTypes = {
|
|
|
38
38
|
ID: 'id',
|
|
39
39
|
IncoTerm: 'incoterm',
|
|
40
40
|
Link: 'link',
|
|
41
|
+
Measure: 'measure',
|
|
42
|
+
Number: 'number',
|
|
41
43
|
Percentage: 'percentage',
|
|
42
44
|
Price: 'price',
|
|
43
45
|
Progress: 'progress',
|
|
44
46
|
Score: 'score',
|
|
45
47
|
Status: 'status',
|
|
46
|
-
String: 'string'
|
|
47
|
-
Measure: 'measure'
|
|
48
|
+
String: 'string'
|
|
48
49
|
};
|
|
49
50
|
const ComponentTypes = {
|
|
50
51
|
ActionTrey: 'action_trey',
|
|
51
52
|
AsyncDropdown: 'async_dropdown',
|
|
52
53
|
Chip: 'chip',
|
|
54
|
+
clear: 'clear',
|
|
53
55
|
ClickableLabel: 'clickable_label',
|
|
54
56
|
CollapsableDropdown: 'collapsable_dropdown',
|
|
55
57
|
Container: 'container',
|
|
56
58
|
DateRange: 'date_range',
|
|
57
59
|
Dropdown: 'dropdown',
|
|
60
|
+
dropdownOptions: 'dropdownOptions',
|
|
58
61
|
Label: 'label',
|
|
59
62
|
Modal: 'modal',
|
|
60
63
|
RangeSlider: 'range_slider',
|
|
61
|
-
TableColumn: 'table_column',
|
|
62
|
-
Textfield: 'textfield',
|
|
63
64
|
StaticDropdown: 'static_dropdown',
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
TableColumn: 'table_column',
|
|
66
|
+
Textfield: 'textfield'
|
|
66
67
|
};
|
|
67
68
|
const DataTypes = {
|
|
69
|
+
// XLSX: "xlsx",
|
|
68
70
|
CSV: 'csv',
|
|
69
71
|
EDI: 'edi',
|
|
70
72
|
JSON: 'json',
|
|
71
73
|
PDF: 'pdf',
|
|
72
74
|
XLS: 'xls',
|
|
73
|
-
// XLSX: "xlsx",
|
|
74
75
|
XML: 'xml'
|
|
75
76
|
};
|
|
76
77
|
const EntityTypes = {
|
|
@@ -90,20 +91,20 @@ const EntityTypes = {
|
|
|
90
91
|
};
|
|
91
92
|
const FilterOperatorType = {
|
|
92
93
|
Contains: 'contains',
|
|
93
|
-
NotContains: 'NotContains',
|
|
94
|
-
Equals: 'equals',
|
|
95
94
|
EndsWith: 'endsWith',
|
|
95
|
+
Equals: 'equals',
|
|
96
|
+
GreaterThan: '>',
|
|
97
|
+
GreaterThanEqual: '>=',
|
|
98
|
+
In: 'in',
|
|
99
|
+
Is: 'is',
|
|
96
100
|
IsAfter: 'after',
|
|
97
101
|
IsBefore: 'before',
|
|
98
|
-
Is: 'is',
|
|
99
102
|
IsNot: 'not',
|
|
100
|
-
In: 'in',
|
|
101
|
-
NotIn: 'notIn',
|
|
102
|
-
StartsWith: 'startsWith',
|
|
103
|
-
GreaterThan: '>',
|
|
104
|
-
GreaterThanEqual: '>=',
|
|
105
103
|
LessThan: '<',
|
|
106
|
-
LessThanEqual: '<='
|
|
104
|
+
LessThanEqual: '<=',
|
|
105
|
+
NotContains: 'NotContains',
|
|
106
|
+
NotIn: 'notIn',
|
|
107
|
+
StartsWith: 'startsWith'
|
|
107
108
|
};
|
|
108
109
|
const InputTypes = {
|
|
109
110
|
Currency: 'currency',
|
package/dist/transform/index.js
CHANGED
|
@@ -53,7 +53,7 @@ const defaultOptions = {
|
|
|
53
53
|
rtrim: true,
|
|
54
54
|
delimiter: ','
|
|
55
55
|
};
|
|
56
|
-
const transform = function() {
|
|
56
|
+
const transform = /*#__PURE__*/ function() {
|
|
57
57
|
var _ref = _async_to_generator(function*({ data, data_type, options = defaultOptions }) {
|
|
58
58
|
let rv = data;
|
|
59
59
|
data_type = data_type.substring(data_type.lastIndexOf('/') + 1, data_type.length + 1).toLowerCase();
|
|
@@ -79,7 +79,7 @@ const transform = function() {
|
|
|
79
79
|
return _ref.apply(this, arguments);
|
|
80
80
|
};
|
|
81
81
|
}();
|
|
82
|
-
const _csvToJson = function() {
|
|
82
|
+
const _csvToJson = /*#__PURE__*/ function() {
|
|
83
83
|
var _ref = _async_to_generator(function*({ csv, options = defaultOptions }) {
|
|
84
84
|
const rv = yield (0, _csvtojson.default)(options).fromString(csv);
|
|
85
85
|
return rv;
|
package/package.json
CHANGED