@fixefy/fixefy-ui-utils 0.2.24 → 0.2.26
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.
|
@@ -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',
|
|
@@ -217,6 +217,7 @@ declare module '@mui/material/styles' {
|
|
|
217
217
|
in_dispute: StatusColorOption;
|
|
218
218
|
in_progress: StatusColorOption;
|
|
219
219
|
paid: StatusColorOption;
|
|
220
|
+
paid_and_refunded: StatusColorOption;
|
|
220
221
|
pending: StatusColorOption;
|
|
221
222
|
pending_refund: StatusColorOption;
|
|
222
223
|
closed: StatusColorOption;
|
|
@@ -233,6 +234,7 @@ declare module '@mui/material/styles' {
|
|
|
233
234
|
in_dispute: StatusColorOption;
|
|
234
235
|
in_progress: StatusColorOption;
|
|
235
236
|
paid: StatusColorOption;
|
|
237
|
+
paid_and_refunded: StatusColorOption;
|
|
236
238
|
pending_refund: StatusColorOption;
|
|
237
239
|
closed: StatusColorOption;
|
|
238
240
|
submitted_for_billing: StatusColorOption;
|
|
@@ -371,6 +371,10 @@ const theme = (0, _styles.createTheme)({
|
|
|
371
371
|
border: '#BB6BD9',
|
|
372
372
|
background: '#BB6BD9'
|
|
373
373
|
},
|
|
374
|
+
paid_and_refunded: {
|
|
375
|
+
border: '#BB6BD9',
|
|
376
|
+
background: '#BB6BD9'
|
|
377
|
+
},
|
|
374
378
|
pending_refund: {
|
|
375
379
|
border: '#2D9CDB',
|
|
376
380
|
background: '#2D9CDB',
|
|
@@ -429,6 +433,11 @@ const theme = (0, _styles.createTheme)({
|
|
|
429
433
|
background: '#BB6BD9',
|
|
430
434
|
light: '#FBF6FD'
|
|
431
435
|
},
|
|
436
|
+
paid_and_refunded: {
|
|
437
|
+
border: '#BB6BD9',
|
|
438
|
+
background: '#BB6BD9',
|
|
439
|
+
light: '#FBF6FD'
|
|
440
|
+
},
|
|
432
441
|
pending_refund: {
|
|
433
442
|
border: '#2D9CDB',
|
|
434
443
|
background: '#2D9CDB',
|
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