dtable-utils 0.0.3-beta.1 → 0.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 +2 -30
- package/dist/index.js +1 -1
- package/es/cell-value-get/cell-value.js +19 -227
- package/es/cell-value-get/collaborator.js +3 -9
- package/es/cell-value-get/digital-sign.js +1 -1
- package/es/cell-value-get/duration.js +1 -1
- package/es/cell-value-get/geolocation.js +5 -29
- package/es/cell-value-get/long-text.js +1 -1
- package/es/cell-value-get/number.js +18 -42
- package/es/cell-value-get/option.js +7 -17
- package/es/cell-value-set/number.js +1 -53
- package/es/column/{core.js → common.js} +14 -2
- package/es/column/date.js +1 -1
- package/es/column/number.js +1 -1
- package/es/common.js +10 -9
- package/es/constants/column.js +2 -127
- package/es/constants/filter/index.js +1 -5
- package/es/date.js +1 -1
- package/es/index.js +10 -62
- package/es/validate/filter.js +1 -1
- package/lib/cell-value-get/cell-value.js +18 -231
- package/lib/cell-value-get/collaborator.js +2 -9
- package/lib/cell-value-get/digital-sign.js +1 -1
- package/lib/cell-value-get/duration.js +1 -0
- package/lib/cell-value-get/geolocation.js +5 -30
- package/lib/cell-value-get/long-text.js +1 -1
- package/lib/cell-value-get/number.js +17 -42
- package/lib/cell-value-get/option.js +6 -18
- package/lib/cell-value-set/number.js +0 -53
- package/lib/column/{core.js → common.js} +14 -1
- package/lib/column/date.js +2 -2
- package/lib/column/number.js +3 -3
- package/lib/common.js +11 -13
- package/lib/constants/column.js +1 -134
- package/lib/constants/filter/index.js +0 -5
- package/lib/index.js +8 -176
- package/lib/validate/filter.js +3 -3
- package/package.json +3 -5
- package/es/cell-value-get/rate.js +0 -6
- package/es/cell-value-set/date.js +0 -20
- package/es/color/gradient-color.js +0 -100
- package/es/column/color.js +0 -415
- package/es/column/option.js +0 -115
- package/es/constants/color.js +0 -16
- package/es/constants/column-permission.js +0 -7
- package/es/constants/grid-header.js +0 -6
- package/es/constants/group.js +0 -23
- package/es/constants/limit.js +0 -3
- package/es/constants/reg.js +0 -4
- package/es/constants/row-color.js +0 -11
- package/es/constants/sort.js +0 -11
- package/es/filter/core.js +0 -287
- package/es/filter/filter-column/array.js +0 -82
- package/es/filter/filter-column/checkbox.js +0 -8
- package/es/filter/filter-column/collaborator.js +0 -67
- package/es/filter/filter-column/creator.js +0 -50
- package/es/filter/filter-column/date.js +0 -59
- package/es/filter/filter-column/digital-sign.js +0 -26
- package/es/filter/filter-column/file.js +0 -24
- package/es/filter/filter-column/formula.js +0 -49
- package/es/filter/filter-column/geolocation.js +0 -53
- package/es/filter/filter-column/link.js +0 -12
- package/es/filter/filter-column/long-text.js +0 -25
- package/es/filter/filter-column/multiple-select.js +0 -60
- package/es/filter/filter-column/number.js +0 -93
- package/es/filter/filter-column/single-select.js +0 -41
- package/es/filter/filter-column/text.js +0 -55
- package/es/filter/filter-row.js +0 -198
- package/es/group/core.js +0 -107
- package/es/group/group-row.js +0 -366
- package/es/link/core.js +0 -78
- package/es/number.js +0 -13
- package/es/row/color.js +0 -278
- package/es/row/core.js +0 -161
- package/es/sort/core.js +0 -32
- package/es/sort/sort-column/array.js +0 -63
- package/es/sort/sort-column/checkbox.js +0 -15
- package/es/sort/sort-column/collaborator.js +0 -9
- package/es/sort/sort-column/date.js +0 -25
- package/es/sort/sort-column/formula.js +0 -40
- package/es/sort/sort-column/link.js +0 -23
- package/es/sort/sort-column/multiple-select.js +0 -45
- package/es/sort/sort-column/number.js +0 -18
- package/es/sort/sort-column/single-select.js +0 -22
- package/es/sort/sort-column/text.js +0 -47
- package/es/sort/sort-row.js +0 -126
- package/es/table/column.js +0 -27
- package/es/table/core.js +0 -14
- package/es/table/index.js +0 -14
- package/es/table/row.js +0 -25
- package/es/validate/geolocation.js +0 -5
- package/es/view/core.js +0 -135
- package/es/view/formula.js +0 -143
- package/es/view/group.js +0 -32
- package/es/view/summaries.js +0 -179
- package/lib/cell-value-get/rate.js +0 -10
- package/lib/cell-value-set/date.js +0 -24
- package/lib/color/gradient-color.js +0 -110
- package/lib/column/color.js +0 -424
- package/lib/column/option.js +0 -123
- package/lib/constants/color.js +0 -20
- package/lib/constants/column-permission.js +0 -11
- package/lib/constants/grid-header.js +0 -10
- package/lib/constants/group.js +0 -36
- package/lib/constants/limit.js +0 -7
- package/lib/constants/reg.js +0 -9
- package/lib/constants/row-color.js +0 -17
- package/lib/constants/sort.js +0 -18
- package/lib/filter/core.js +0 -301
- package/lib/filter/filter-column/array.js +0 -86
- package/lib/filter/filter-column/checkbox.js +0 -12
- package/lib/filter/filter-column/collaborator.js +0 -75
- package/lib/filter/filter-column/creator.js +0 -54
- package/lib/filter/filter-column/date.js +0 -63
- package/lib/filter/filter-column/digital-sign.js +0 -30
- package/lib/filter/filter-column/file.js +0 -28
- package/lib/filter/filter-column/formula.js +0 -53
- package/lib/filter/filter-column/geolocation.js +0 -57
- package/lib/filter/filter-column/link.js +0 -16
- package/lib/filter/filter-column/long-text.js +0 -29
- package/lib/filter/filter-column/multiple-select.js +0 -68
- package/lib/filter/filter-column/number.js +0 -97
- package/lib/filter/filter-column/single-select.js +0 -45
- package/lib/filter/filter-column/text.js +0 -59
- package/lib/filter/filter-row.js +0 -204
- package/lib/group/core.js +0 -117
- package/lib/group/group-row.js +0 -377
- package/lib/link/core.js +0 -90
- package/lib/number.js +0 -18
- package/lib/row/color.js +0 -286
- package/lib/row/core.js +0 -170
- package/lib/sort/core.js +0 -37
- package/lib/sort/sort-column/array.js +0 -67
- package/lib/sort/sort-column/checkbox.js +0 -19
- package/lib/sort/sort-column/collaborator.js +0 -13
- package/lib/sort/sort-column/date.js +0 -29
- package/lib/sort/sort-column/formula.js +0 -44
- package/lib/sort/sort-column/link.js +0 -27
- package/lib/sort/sort-column/multiple-select.js +0 -50
- package/lib/sort/sort-column/number.js +0 -22
- package/lib/sort/sort-column/single-select.js +0 -26
- package/lib/sort/sort-column/text.js +0 -52
- package/lib/sort/sort-row.js +0 -136
- package/lib/table/column.js +0 -32
- package/lib/table/core.js +0 -18
- package/lib/table/index.js +0 -18
- package/lib/table/row.js +0 -30
- package/lib/validate/geolocation.js +0 -9
- package/lib/view/core.js +0 -144
- package/lib/view/formula.js +0 -150
- package/lib/view/group.js +0 -36
- package/lib/view/summaries.js +0 -185
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
var getCollaborator = function getCollaborator(collaborators, collaboratorEmail) {
|
|
2
|
-
return collaborators.find(function (collaborator) {
|
|
3
|
-
return collaborator.email === collaboratorEmail;
|
|
4
|
-
});
|
|
5
|
-
};
|
|
6
|
-
|
|
7
1
|
/**
|
|
8
2
|
* Get collaborators name list of given emails
|
|
9
3
|
* @param {array} emails e.g. ['email', ...]
|
|
10
|
-
* @param {array} collaborators e.g. [{ email, name
|
|
4
|
+
* @param {array} collaborators e.g. [{ email: 'xxx', name: 'xxx' }, ...]
|
|
11
5
|
* @returns name list, array. e.g. ['name1', 'name2']
|
|
12
6
|
*/
|
|
13
7
|
var getCollaboratorsNames = function getCollaboratorsNames(emails, collaborators) {
|
|
@@ -26,7 +20,7 @@ var getCollaboratorsNames = function getCollaboratorsNames(emails, collaborators
|
|
|
26
20
|
|
|
27
21
|
/**
|
|
28
22
|
* Get concatenated collaborators names of given emails.
|
|
29
|
-
* @param {array} collaborators e.g. [{ email, name
|
|
23
|
+
* @param {array} collaborators e.g. [{ email: 'xxx', name: 'xxx' }, ...]
|
|
30
24
|
* @param {array} emails e.g. ['email', ...]
|
|
31
25
|
* @returns concatenated collaborators names, string. e.g. 'name1, name2'
|
|
32
26
|
*/
|
|
@@ -36,4 +30,4 @@ var getCollaboratorsName = function getCollaboratorsName(collaborators, emails)
|
|
|
36
30
|
return collaboratorsNames.join(', ');
|
|
37
31
|
};
|
|
38
32
|
|
|
39
|
-
export {
|
|
33
|
+
export { getCollaboratorsName, getCollaboratorsNames };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get signature image url to display
|
|
3
|
-
* @param {object} digitalSign object, e.g. { sign_image_url
|
|
3
|
+
* @param {object} digitalSign object, e.g. { sign_image_url: 'xxx' }
|
|
4
4
|
* @returns signature image url, string
|
|
5
5
|
*/
|
|
6
6
|
var getDigitalSignImageUrl = function getDigitalSignImageUrl(digitalSign) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var isValidPosition = function isValidPosition(lng, lat) {
|
|
2
|
+
return (lng || lng === 0) && (lat || lat === 0);
|
|
3
|
+
};
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Get formatted geolocation
|
|
6
7
|
* @param {object} loc
|
|
7
|
-
* @param {object} formats , e.g. { geo_format
|
|
8
|
+
* @param {object} formats , e.g. { geo_format: 'xxx' }
|
|
8
9
|
* @param {bool} isBaiduMap Determine the way to connect latitude and longitude. Default as true
|
|
9
10
|
* @param {string} hyphen Used as a connector between province, city, district and detail. Default as empty string
|
|
10
11
|
* @returns formatted geolocation, string
|
|
@@ -76,30 +77,5 @@ var getGeolocationDisplayString = function getGeolocationDisplayString(loc, form
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
|
-
var getGeolocationByGranularity = function getGeolocationByGranularity(geolocation, granularity) {
|
|
80
|
-
if (!geolocation) return '';
|
|
81
|
-
var province = geolocation.province,
|
|
82
|
-
city = geolocation.city,
|
|
83
|
-
district = geolocation.district,
|
|
84
|
-
country_region = geolocation.country_region;
|
|
85
|
-
switch (granularity) {
|
|
86
|
-
case GROUP_GEOLOCATION_GRANULARITY.CITY:
|
|
87
|
-
{
|
|
88
|
-
return city || '';
|
|
89
|
-
}
|
|
90
|
-
case GROUP_GEOLOCATION_GRANULARITY.DISTRICT:
|
|
91
|
-
{
|
|
92
|
-
return district || '';
|
|
93
|
-
}
|
|
94
|
-
case GROUP_GEOLOCATION_GRANULARITY.COUNTRY:
|
|
95
|
-
{
|
|
96
|
-
return country_region || '';
|
|
97
|
-
}
|
|
98
|
-
default:
|
|
99
|
-
{
|
|
100
|
-
return province || '';
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
80
|
|
|
105
|
-
export {
|
|
81
|
+
export { getGeolocationDisplayString };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NPminus as minus } from '../helper/number-precision/index.js';
|
|
2
|
-
import { getDurationDisplayString } from './duration.js';
|
|
3
2
|
import { DEFAULT_NUMBER_FORMAT } from '../constants/column.js';
|
|
3
|
+
import { getDurationDisplayString } from './duration.js';
|
|
4
4
|
|
|
5
5
|
var separatorMap = {
|
|
6
6
|
comma: ',',
|
|
@@ -8,30 +8,6 @@ var separatorMap = {
|
|
|
8
8
|
no: '',
|
|
9
9
|
space: ' '
|
|
10
10
|
};
|
|
11
|
-
var _getDecimalDigits = function _getDecimalDigits(num) {
|
|
12
|
-
if (Number.isInteger(num)) {
|
|
13
|
-
return 0;
|
|
14
|
-
}
|
|
15
|
-
var valueArr = (num + '').split('.');
|
|
16
|
-
var digitsLength = valueArr[1] ? valueArr[1].length : 8;
|
|
17
|
-
return digitsLength > 8 ? 8 : digitsLength;
|
|
18
|
-
};
|
|
19
|
-
var getPrecisionNumber = function getPrecisionNumber(num, formatData) {
|
|
20
|
-
var _ref = formatData || {},
|
|
21
|
-
_ref$precision = _ref.precision,
|
|
22
|
-
precision = _ref$precision === void 0 ? 2 : _ref$precision,
|
|
23
|
-
_ref$enable_precision = _ref.enable_precision,
|
|
24
|
-
enable_precision = _ref$enable_precision === void 0 ? false : _ref$enable_precision;
|
|
25
|
-
var type = Object.prototype.toString.call(num);
|
|
26
|
-
if (type !== '[object Number]') {
|
|
27
|
-
if (type === '[object String]' && DISPLAY_INTERNAL_ERRORS.includes(num)) {
|
|
28
|
-
return num;
|
|
29
|
-
}
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
var decimalDigits = enable_precision ? precision : _getDecimalDigits(num);
|
|
33
|
-
return num.toFixed(decimalDigits);
|
|
34
|
-
};
|
|
35
11
|
|
|
36
12
|
/**
|
|
37
13
|
* removeZerosFromEnd('0.0100') // '0.01'
|
|
@@ -58,19 +34,19 @@ var getDecimalDigitsFromNumber = function getDecimalDigitsFromNumber(number) {
|
|
|
58
34
|
var digitsLength = decimalPart ? decimalPart.length : 8;
|
|
59
35
|
return digitsLength > 8 ? 8 : digitsLength;
|
|
60
36
|
};
|
|
61
|
-
var toThousands = function toThousands(number,
|
|
62
|
-
var formats =
|
|
63
|
-
|
|
64
|
-
isCurrency =
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
decimal =
|
|
68
|
-
|
|
69
|
-
thousands =
|
|
70
|
-
|
|
71
|
-
precision =
|
|
72
|
-
|
|
73
|
-
enable_precision =
|
|
37
|
+
var toThousands = function toThousands(number, _ref) {
|
|
38
|
+
var formats = _ref.formats,
|
|
39
|
+
_ref$isCurrency = _ref.isCurrency,
|
|
40
|
+
isCurrency = _ref$isCurrency === void 0 ? true : _ref$isCurrency;
|
|
41
|
+
var _ref2 = formats || {},
|
|
42
|
+
_ref2$decimal = _ref2.decimal,
|
|
43
|
+
decimal = _ref2$decimal === void 0 ? 'dot' : _ref2$decimal,
|
|
44
|
+
_ref2$thousands = _ref2.thousands,
|
|
45
|
+
thousands = _ref2$thousands === void 0 ? 'no' : _ref2$thousands,
|
|
46
|
+
_ref2$precision = _ref2.precision,
|
|
47
|
+
precision = _ref2$precision === void 0 ? 2 : _ref2$precision,
|
|
48
|
+
_ref2$enable_precisio = _ref2.enable_precision,
|
|
49
|
+
enable_precision = _ref2$enable_precisio === void 0 ? false : _ref2$enable_precisio;
|
|
74
50
|
|
|
75
51
|
// handle numbers in scientific notation
|
|
76
52
|
if (String(number).includes('e')) {
|
|
@@ -142,9 +118,9 @@ var getNumberDisplayString = function getNumberDisplayString(number, formats) {
|
|
|
142
118
|
if (isNaN(number) || number === Infinity || number === -Infinity) return String(number);
|
|
143
119
|
|
|
144
120
|
// formats: old version maybe 'null'
|
|
145
|
-
var
|
|
146
|
-
|
|
147
|
-
format =
|
|
121
|
+
var _ref3 = formats || {},
|
|
122
|
+
_ref3$format = _ref3.format,
|
|
123
|
+
format = _ref3$format === void 0 ? DEFAULT_NUMBER_FORMAT : _ref3$format;
|
|
148
124
|
switch (format) {
|
|
149
125
|
case 'number':
|
|
150
126
|
{
|
|
@@ -243,4 +219,4 @@ var replaceNumberNotAllowInput = function replaceNumberNotAllowInput(sNum, forma
|
|
|
243
219
|
}
|
|
244
220
|
};
|
|
245
221
|
|
|
246
|
-
export { getNumberDisplayString,
|
|
222
|
+
export { getNumberDisplayString, replaceNumberNotAllowInput };
|
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
import { getColumnOptions } from '../column/option.js';
|
|
2
|
-
|
|
3
|
-
var getOption = function getOption(options, optionId) {
|
|
4
|
-
return options.find(function (o) {
|
|
5
|
-
return o.id === optionId;
|
|
6
|
-
});
|
|
7
|
-
};
|
|
8
|
-
|
|
9
1
|
/**
|
|
10
2
|
* Get option name of the given id
|
|
11
3
|
* @param {array} options e.g. [ { id: '', color: '', name: '' } ]
|
|
12
|
-
* @param {string}
|
|
4
|
+
* @param {string} targetOptionID option id
|
|
13
5
|
* @returns option name, string
|
|
14
6
|
*/
|
|
15
|
-
var getOptionName = function getOptionName(options,
|
|
16
|
-
if (!
|
|
17
|
-
var targetOption =
|
|
7
|
+
var getOptionName = function getOptionName(options, targetOptionID) {
|
|
8
|
+
if (!targetOptionID || !Array.isArray(options)) return '';
|
|
9
|
+
var targetOption = options.find(function (option) {
|
|
10
|
+
return option.id === targetOptionID;
|
|
11
|
+
});
|
|
18
12
|
return targetOption ? targetOption.name : '';
|
|
19
13
|
};
|
|
20
|
-
var getColumnOptionNameById = function getColumnOptionNameById(column, optionId) {
|
|
21
|
-
var options = getColumnOptions(column);
|
|
22
|
-
return getOptionName(options, optionId);
|
|
23
|
-
};
|
|
24
14
|
|
|
25
15
|
/**
|
|
26
16
|
* Get concatenated options names of given ids.
|
|
@@ -39,4 +29,4 @@ var getMultipleOptionName = function getMultipleOptionName(options, targetOption
|
|
|
39
29
|
}).join(', ');
|
|
40
30
|
};
|
|
41
31
|
|
|
42
|
-
export {
|
|
32
|
+
export { getMultipleOptionName, getOptionName };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { NPdivide as divide } from '../helper/number-precision/index.js';
|
|
2
|
-
import { isNumber } from '../number.js';
|
|
3
|
-
import { DURATION_FORMATS_MAP, DURATION_FORMATS } from '../constants/column.js';
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* @param {string} sNumber e.g. '1.23'
|
|
@@ -52,54 +50,4 @@ var formatStringToNumber = function formatStringToNumber(sNum, formats) {
|
|
|
52
50
|
return value;
|
|
53
51
|
};
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
* parse duration to seconds depend on formats
|
|
57
|
-
* @param {string} duration
|
|
58
|
-
* @param {object} data { duration_format: '' }
|
|
59
|
-
* @returns number
|
|
60
|
-
*/
|
|
61
|
-
var formatDurationToNumber = function formatDurationToNumber(duration, data) {
|
|
62
|
-
if (duration === 0) return 0;
|
|
63
|
-
if (!duration) return null;
|
|
64
|
-
var _ref2 = data || {},
|
|
65
|
-
duration_format = _ref2.duration_format;
|
|
66
|
-
duration_format = duration_format || DURATION_FORMATS_MAP.H_MM;
|
|
67
|
-
if (DURATION_FORMATS.findIndex(function (format) {
|
|
68
|
-
return format.type === duration_format;
|
|
69
|
-
}) < 0) {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
var numericDuration = duration - 0;
|
|
73
|
-
if (isNumber(numericDuration)) {
|
|
74
|
-
return duration_format === DURATION_FORMATS_MAP.H_MM ? numericDuration * 60 : numericDuration;
|
|
75
|
-
}
|
|
76
|
-
var stringifyDuration = String(duration);
|
|
77
|
-
var isNegative = stringifyDuration[0] === '-';
|
|
78
|
-
if (isNegative) {
|
|
79
|
-
stringifyDuration = stringifyDuration.substring(1);
|
|
80
|
-
}
|
|
81
|
-
var timeParts = stringifyDuration.split(/[::]/); // support ':' and ':'.
|
|
82
|
-
var timePartsLen = timeParts.length;
|
|
83
|
-
var hoursIndex;
|
|
84
|
-
var minutesIndex;
|
|
85
|
-
var secondsIndex;
|
|
86
|
-
if (duration_format === DURATION_FORMATS_MAP.H_MM) {
|
|
87
|
-
hoursIndex = timePartsLen - 2;
|
|
88
|
-
minutesIndex = timePartsLen - 1;
|
|
89
|
-
} else {
|
|
90
|
-
hoursIndex = timePartsLen - 3;
|
|
91
|
-
minutesIndex = timePartsLen - 2;
|
|
92
|
-
secondsIndex = timePartsLen - 1;
|
|
93
|
-
}
|
|
94
|
-
var hours = timeParts[hoursIndex] - 0;
|
|
95
|
-
var minutes = timeParts[minutesIndex] - 0;
|
|
96
|
-
var seconds = timeParts[secondsIndex] - 0;
|
|
97
|
-
if (!isNumber(hours) && !isNumber(minutes) && !isNumber(seconds)) return null;
|
|
98
|
-
hours = isNumber(hours) ? hours : 0;
|
|
99
|
-
minutes = isNumber(minutes) ? minutes : 0;
|
|
100
|
-
seconds = isNumber(seconds) ? seconds : 0;
|
|
101
|
-
var result = hours * 3600 + minutes * 60 + seconds;
|
|
102
|
-
return isNegative ? -result : result;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export { formatDurationToNumber, formatStringToNumber, getFloatNumber };
|
|
53
|
+
export { formatStringToNumber, getFloatNumber };
|
|
@@ -3,7 +3,7 @@ import { FORMULA_COLUMN_TYPES_MAP, FORMULA_RESULT_TYPE } from '../constants/form
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Get column type.
|
|
6
|
-
* @param {object} column { type, ... }
|
|
6
|
+
* @param {object} column { type: 'xxx', ... }
|
|
7
7
|
* @returns column type
|
|
8
8
|
*/
|
|
9
9
|
var getColumnType = function getColumnType(column) {
|
|
@@ -26,4 +26,16 @@ var getColumnType = function getColumnType(column) {
|
|
|
26
26
|
return type;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Get options from single-select/multiple-select column.
|
|
31
|
+
* @param {object} column e.g. { type, data: { options: [] } }
|
|
32
|
+
* @returns options, array
|
|
33
|
+
*/
|
|
34
|
+
var getColumnOptions = function getColumnOptions(column) {
|
|
35
|
+
if (!column || !column.data || !Array.isArray(column.data.options)) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
return column.data.options;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { getColumnOptions, getColumnType };
|
package/es/column/date.js
CHANGED
package/es/column/number.js
CHANGED
package/es/common.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _typeof from '@babel/runtime/helpers/typeof';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Generate a random string of specified length.
|
|
5
3
|
* @param {number} keyLength
|
|
@@ -14,12 +12,15 @@ var generatorBase64Code = function generatorBase64Code() {
|
|
|
14
12
|
}
|
|
15
13
|
return key;
|
|
16
14
|
};
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
var isNumber = function isNumber(num) {
|
|
16
|
+
return (num || num === 0) && Object.prototype.toString.call(num) === '[object Number]';
|
|
17
|
+
};
|
|
18
|
+
var isEmptyObject = function isEmptyObject(obj) {
|
|
19
|
+
var name;
|
|
20
|
+
for (name in obj) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
23
24
|
};
|
|
24
25
|
|
|
25
|
-
export { generatorBase64Code,
|
|
26
|
+
export { generatorBase64Code, isEmptyObject, isNumber };
|
package/es/constants/column.js
CHANGED
|
@@ -1,124 +1,14 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import { CellType } from './cell-type.js';
|
|
3
3
|
|
|
4
|
-
var _COLUMNS_ICON_CONFIG, _DURATION_DECIMAL_DIG, _DURATION_ZERO_DISPLA
|
|
4
|
+
var _COLUMNS_ICON_CONFIG, _DURATION_DECIMAL_DIG, _DURATION_ZERO_DISPLA;
|
|
5
5
|
var COLUMNS_ICON_CONFIG = (_COLUMNS_ICON_CONFIG = {}, _defineProperty(_COLUMNS_ICON_CONFIG, CellType.DEFAULT, 'dtable-font dtable-icon-single-line-text'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.TEXT, 'dtable-font dtable-icon-single-line-text'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.NUMBER, 'dtable-font dtable-icon-number'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.CHECKBOX, 'dtable-font dtable-icon-check-square-solid'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.DATE, 'dtable-font dtable-icon-calendar-alt-solid'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.SINGLE_SELECT, 'dtable-font dtable-icon-single-election'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.LONG_TEXT, 'dtable-font dtable-icon-long-text'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.IMAGE, 'dtable-font dtable-icon-picture'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.FILE, 'dtable-font dtable-icon-file-alt-solid'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.MULTIPLE_SELECT, 'dtable-font dtable-icon-multiple-selection'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.COLLABORATOR, 'dtable-font dtable-icon-collaborator'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.LINK, 'dtable-font dtable-icon-link-other-record'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.FORMULA, 'dtable-font dtable-icon-formula'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.LINK_FORMULA, 'dtable-font dtable-icon-link-formulas'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.CREATOR, 'dtable-font dtable-icon-creator'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.CTIME, 'dtable-font dtable-icon-creation-time'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.LAST_MODIFIER, 'dtable-font dtable-icon-creator'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.MTIME, 'dtable-font dtable-icon-creation-time'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.GEOLOCATION, 'dtable-font dtable-icon-location'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.AUTO_NUMBER, 'dtable-font dtable-icon-autonumber'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.URL, 'dtable-font dtable-icon-url'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.EMAIL, 'dtable-font dtable-icon-email'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.DURATION, 'dtable-font dtable-icon-duration'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.BUTTON, 'dtable-font dtable-icon-button'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.RATE, 'dtable-font dtable-icon-rate'), _defineProperty(_COLUMNS_ICON_CONFIG, CellType.DIGITAL_SIGN, 'dtable-font dtable-icon-handwritten-signature'), _COLUMNS_ICON_CONFIG);
|
|
6
|
-
var COLUMN_OPTIONS = [{
|
|
7
|
-
iconName: 'Basic',
|
|
8
|
-
iconClass: '',
|
|
9
|
-
isDisabled: true
|
|
10
|
-
}, {
|
|
11
|
-
iconName: 'Text',
|
|
12
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.TEXT],
|
|
13
|
-
type: CellType.TEXT
|
|
14
|
-
}, {
|
|
15
|
-
iconName: 'Long_Text',
|
|
16
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.LONG_TEXT],
|
|
17
|
-
type: CellType.LONG_TEXT
|
|
18
|
-
}, {
|
|
19
|
-
iconName: 'Number',
|
|
20
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.NUMBER],
|
|
21
|
-
type: CellType.NUMBER
|
|
22
|
-
}, {
|
|
23
|
-
iconName: 'Collaborator',
|
|
24
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.COLLABORATOR],
|
|
25
|
-
type: CellType.COLLABORATOR
|
|
26
|
-
}, {
|
|
27
|
-
iconName: 'Date',
|
|
28
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.DATE],
|
|
29
|
-
type: CellType.DATE
|
|
30
|
-
}, {
|
|
31
|
-
iconName: 'Duration',
|
|
32
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.DURATION],
|
|
33
|
-
type: CellType.DURATION
|
|
34
|
-
}, {
|
|
35
|
-
iconName: 'Single_Select',
|
|
36
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.SINGLE_SELECT],
|
|
37
|
-
type: CellType.SINGLE_SELECT
|
|
38
|
-
}, {
|
|
39
|
-
iconName: 'Multiple_Select',
|
|
40
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.MULTIPLE_SELECT],
|
|
41
|
-
type: CellType.MULTIPLE_SELECT
|
|
42
|
-
}, {
|
|
43
|
-
iconName: 'Image',
|
|
44
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.IMAGE],
|
|
45
|
-
type: CellType.IMAGE
|
|
46
|
-
}, {
|
|
47
|
-
iconName: 'File',
|
|
48
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.FILE],
|
|
49
|
-
type: CellType.FILE
|
|
50
|
-
}, {
|
|
51
|
-
iconName: 'Email',
|
|
52
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.EMAIL],
|
|
53
|
-
type: CellType.EMAIL
|
|
54
|
-
}, {
|
|
55
|
-
iconName: 'URL',
|
|
56
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.URL],
|
|
57
|
-
type: CellType.URL
|
|
58
|
-
}, {
|
|
59
|
-
iconName: 'Checkbox',
|
|
60
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.CHECKBOX],
|
|
61
|
-
type: CellType.CHECKBOX
|
|
62
|
-
}, {
|
|
63
|
-
iconName: 'Rating',
|
|
64
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.RATE],
|
|
65
|
-
type: CellType.RATE
|
|
66
|
-
}, {
|
|
67
|
-
iconName: 'Advanced',
|
|
68
|
-
iconClass: '',
|
|
69
|
-
isDisabled: true
|
|
70
|
-
}, {
|
|
71
|
-
iconName: 'Formula',
|
|
72
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.FORMULA],
|
|
73
|
-
type: CellType.FORMULA
|
|
74
|
-
}, {
|
|
75
|
-
iconName: 'Link_formula',
|
|
76
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.LINK_FORMULA],
|
|
77
|
-
type: CellType.LINK_FORMULA
|
|
78
|
-
}, {
|
|
79
|
-
iconName: 'Geolocation',
|
|
80
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.GEOLOCATION],
|
|
81
|
-
type: CellType.GEOLOCATION
|
|
82
|
-
}, {
|
|
83
|
-
iconName: 'Link_to_other_records',
|
|
84
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.LINK],
|
|
85
|
-
type: CellType.LINK
|
|
86
|
-
}, {
|
|
87
|
-
iconName: 'Creator',
|
|
88
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.CREATOR],
|
|
89
|
-
type: CellType.CREATOR
|
|
90
|
-
}, {
|
|
91
|
-
iconName: 'CTime',
|
|
92
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.CTIME],
|
|
93
|
-
type: CellType.CTIME
|
|
94
|
-
}, {
|
|
95
|
-
iconName: 'Last_Modifier',
|
|
96
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.LAST_MODIFIER],
|
|
97
|
-
type: CellType.LAST_MODIFIER
|
|
98
|
-
}, {
|
|
99
|
-
iconName: 'Last_Modified_Time',
|
|
100
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.MTIME],
|
|
101
|
-
type: CellType.MTIME
|
|
102
|
-
}, {
|
|
103
|
-
iconName: 'Auto_number',
|
|
104
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.AUTO_NUMBER],
|
|
105
|
-
type: CellType.AUTO_NUMBER
|
|
106
|
-
}, {
|
|
107
|
-
iconName: 'Button',
|
|
108
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.BUTTON],
|
|
109
|
-
type: CellType.BUTTON
|
|
110
|
-
}, {
|
|
111
|
-
iconName: 'Digital_signature',
|
|
112
|
-
iconClass: COLUMNS_ICON_CONFIG[CellType.DIGITAL_SIGN],
|
|
113
|
-
type: CellType.DIGITAL_SIGN
|
|
114
|
-
}];
|
|
115
6
|
var DATE_COLUMN_OPTIONS = [CellType.DATE, CellType.CTIME, CellType.MTIME];
|
|
116
7
|
var NUMERIC_COLUMNS_TYPES = [CellType.NUMBER, CellType.DURATION, CellType.RATE];
|
|
117
8
|
var COLLABORATOR_COLUMN_TYPES = [CellType.COLLABORATOR, CellType.CREATOR, CellType.LAST_MODIFIER];
|
|
118
9
|
|
|
119
10
|
// date
|
|
120
11
|
var DEFAULT_DATE_FORMAT = 'YYYY-MM-DD';
|
|
121
|
-
var UTC_FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ss.SSSZ';
|
|
122
12
|
var DATE_UNIT = {
|
|
123
13
|
YEAR: 'year',
|
|
124
14
|
MONTH: 'month',
|
|
@@ -130,11 +20,6 @@ var DATE_UNIT = {
|
|
|
130
20
|
MINUTES: 'minutes',
|
|
131
21
|
SECOND: 'second'
|
|
132
22
|
};
|
|
133
|
-
var DATE_FORMAT_MAP = {
|
|
134
|
-
YYYY_MM_DD: 'YYYY-MM-DD',
|
|
135
|
-
YYYY_MM_DD_HH_MM: 'YYYY-MM-DD HH:mm',
|
|
136
|
-
YYYY_MM_DD_HH_MM_SS: 'YYYY-MM-DD HH:mm:ss'
|
|
137
|
-
};
|
|
138
23
|
|
|
139
24
|
// duration
|
|
140
25
|
var DURATION_FORMATS_MAP = {
|
|
@@ -156,15 +41,5 @@ var DURATION_ZERO_DISPLAY = (_DURATION_ZERO_DISPLA = {}, _defineProperty(_DURATI
|
|
|
156
41
|
|
|
157
42
|
// number
|
|
158
43
|
var DEFAULT_NUMBER_FORMAT = 'number';
|
|
159
|
-
var DATE_DEFAULT_TYPES = {
|
|
160
|
-
SPECIFIC_DATE: 'specific_date',
|
|
161
|
-
CURRENT_DATE: 'current_date',
|
|
162
|
-
DAYS_BEFORE: 'days_before',
|
|
163
|
-
DAYS_AFTER: 'days_after'
|
|
164
|
-
};
|
|
165
|
-
var FILL_DEFAULT_VALUE_COLUMNS_TYPE = [CellType.TEXT, CellType.NUMBER, CellType.SINGLE_SELECT, CellType.RATE, CellType.CHECKBOX, CellType.LONG_TEXT, CellType.DATE, CellType.COLLABORATOR];
|
|
166
|
-
var NOT_SUPPORT_EDIT_COLUMN_TYPE_MAP = (_NOT_SUPPORT_EDIT_COL = {}, _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.CTIME, true), _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.MTIME, true), _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.CREATOR, true), _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.LAST_MODIFIER, true), _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.FORMULA, true), _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.AUTO_NUMBER, true), _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.BUTTON, true), _defineProperty(_NOT_SUPPORT_EDIT_COL, CellType.LINK_FORMULA, true), _NOT_SUPPORT_EDIT_COL);
|
|
167
|
-
var MULTIPLE_CELL_VALUE_COLUMN_TYPE_MAP = (_MULTIPLE_CELL_VALUE_ = {}, _defineProperty(_MULTIPLE_CELL_VALUE_, CellType.MULTIPLE_SELECT, true), _defineProperty(_MULTIPLE_CELL_VALUE_, CellType.COLLABORATOR, true), _defineProperty(_MULTIPLE_CELL_VALUE_, CellType.LINK, true), _MULTIPLE_CELL_VALUE_);
|
|
168
|
-
var SINGLE_CELL_VALUE_COLUMN_TYPE_MAP = (_SINGLE_CELL_VALUE_CO = {}, _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.TEXT, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.DATE, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.CTIME, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.MTIME, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.NUMBER, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.CHECKBOX, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.SINGLE_SELECT, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.CREATOR, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.GEOLOCATION, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.FORMULA, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.LINK_FORMULA, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.URL, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.EMAIL, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.DURATION, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.RATE, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.LAST_MODIFIER, true), _defineProperty(_SINGLE_CELL_VALUE_CO, CellType.DIGITAL_SIGN, true), _SINGLE_CELL_VALUE_CO);
|
|
169
44
|
|
|
170
|
-
export { COLLABORATOR_COLUMN_TYPES, COLUMNS_ICON_CONFIG,
|
|
45
|
+
export { COLLABORATOR_COLUMN_TYPES, COLUMNS_ICON_CONFIG, DATE_COLUMN_OPTIONS, DATE_UNIT, DEFAULT_DATE_FORMAT, DEFAULT_NUMBER_FORMAT, DURATION_DECIMAL_DIGITS, DURATION_FORMATS, DURATION_FORMATS_MAP, DURATION_ZERO_DISPLAY, NUMERIC_COLUMNS_TYPES };
|
|
@@ -3,10 +3,6 @@ export { FILTER_TERM_MODIFIER_SHOW, FILTER_TERM_MODIFIER_TYPE } from './filter-m
|
|
|
3
3
|
export { FILTER_PREDICATE_SHOW, FILTER_PREDICATE_TYPE } from './filter-predicate.js';
|
|
4
4
|
export { filterTermModifierIsWithin, filterTermModifierNotWithin } from './filter-is-within.js';
|
|
5
5
|
|
|
6
|
-
var FILTER_CONJUNCTION_TYPE = {
|
|
7
|
-
AND: 'And',
|
|
8
|
-
OR: 'Or'
|
|
9
|
-
};
|
|
10
6
|
var FILTER_ERR_MSG = {
|
|
11
7
|
INVALID_FILTER: 'invalid filter',
|
|
12
8
|
INCOMPLETE_FILTER: 'incomplete filter',
|
|
@@ -17,4 +13,4 @@ var FILTER_ERR_MSG = {
|
|
|
17
13
|
INVALID_TERM: 'invalid filter term'
|
|
18
14
|
};
|
|
19
15
|
|
|
20
|
-
export {
|
|
16
|
+
export { FILTER_ERR_MSG };
|
package/es/date.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
-
import {
|
|
3
|
+
import { DEFAULT_DATE_FORMAT, DATE_UNIT } from './constants/column.js';
|
|
4
4
|
|
|
5
5
|
var MONTH_QUARTERS = [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4];
|
|
6
6
|
var FORMATTING_TOKENS = /(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g;
|
package/es/index.js
CHANGED
|
@@ -1,78 +1,26 @@
|
|
|
1
1
|
export { CellType } from './constants/cell-type.js';
|
|
2
|
-
export { COLLABORATOR_COLUMN_TYPES, COLUMNS_ICON_CONFIG,
|
|
3
|
-
export {
|
|
2
|
+
export { COLLABORATOR_COLUMN_TYPES, COLUMNS_ICON_CONFIG, DATE_COLUMN_OPTIONS, DEFAULT_DATE_FORMAT, DEFAULT_NUMBER_FORMAT, DURATION_DECIMAL_DIGITS, DURATION_FORMATS, DURATION_FORMATS_MAP, DURATION_ZERO_DISPLAY, NUMERIC_COLUMNS_TYPES } from './constants/column.js';
|
|
3
|
+
export { FILTER_ERR_MSG } from './constants/filter/index.js';
|
|
4
4
|
export { FORMULA_COLUMN_TYPES_MAP, FORMULA_RESULT_TYPE } from './constants/formula.js';
|
|
5
5
|
export { HIGHLIGHT_COLORS, SELECT_OPTION_COLORS } from './constants/select-option.js';
|
|
6
|
-
export {
|
|
7
|
-
export { DISPLAY_GROUP_DATE_GRANULARITY, DISPLAY_GROUP_GEOLOCATION_GRANULARITY, GROUP_DATE_GRANULARITY, GROUP_GEOLOCATION_GRANULARITY, MAX_GROUP_LEVEL, SUPPORT_GROUP_COLUMN_TYPES } from './constants/group.js';
|
|
8
|
-
export { COLUMN_PERMISSION_TYPE } from './constants/column-permission.js';
|
|
9
|
-
export { REG_NUMBER_DIGIT, REG_STRING_NUMBER_PARTS } from './constants/reg.js';
|
|
10
|
-
export { COLOR_GRADATION_OPTIONS } from './constants/color.js';
|
|
11
|
-
export { HEADER_HEIGHT_TYPE } from './constants/grid-header.js';
|
|
12
|
-
export { generatorBase64Code, isEmpty } from './common.js';
|
|
13
|
-
export { getTableById } from './table/index.js';
|
|
14
|
-
export { convertRow, isTableRows } from './row/core.js';
|
|
15
|
-
export { default as RowColorUtils } from './row/color.js';
|
|
16
|
-
export { getLinkColumnsUsedInFilters, getViewById, isDefaultView, isFilterView, isGroupView, isSortView } from './view/core.js';
|
|
17
|
-
export { getSummaries, getSummariesWithSubgroups, updateGroupSummaries } from './view/summaries.js';
|
|
18
|
-
export { getFormulaColumnsContainLinks, getSortedFormulaColumns, getSortedFormulaColumnsContainLinks, transLink2LinkFormula } from './view/formula.js';
|
|
19
|
-
export { getGroupByPath } from './view/group.js';
|
|
20
|
-
export { getLinkById, getLinkCellValue, getLinkTableID, getLinkedTableID, isValidLink } from './link/core.js';
|
|
6
|
+
export { generatorBase64Code, isEmptyObject, isNumber } from './common.js';
|
|
21
7
|
export { getDateDisplayString } from './cell-value-get/date.js';
|
|
22
8
|
export { getDurationDisplayString } from './cell-value-get/duration.js';
|
|
23
|
-
export { getNumberDisplayString,
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
9
|
+
export { getNumberDisplayString, replaceNumberNotAllowInput } from './cell-value-get/number.js';
|
|
10
|
+
export { getMultipleOptionName, getOptionName } from './cell-value-get/option.js';
|
|
11
|
+
export { getCollaboratorsName, getCollaboratorsNames } from './cell-value-get/collaborator.js';
|
|
12
|
+
export { getGeolocationDisplayString } from './cell-value-get/geolocation.js';
|
|
27
13
|
export { getDigitalSignImageUrl } from './cell-value-get/digital-sign.js';
|
|
28
14
|
export { getLongtextDisplayString } from './cell-value-get/long-text.js';
|
|
29
|
-
export { getCellValueDisplayString,
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export { formatTextToDate } from './cell-value-set/date.js';
|
|
33
|
-
export { createOption, generateOptionID, generatorCellOption, generatorCellOptions, getColumnOptions } from './column/option.js';
|
|
15
|
+
export { getCellValueDisplayString, getFormulaDisplayString } from './cell-value-get/cell-value.js';
|
|
16
|
+
export { formatStringToNumber, getFloatNumber } from './cell-value-set/number.js';
|
|
17
|
+
export { getColumnOptions } from './column/common.js';
|
|
34
18
|
export { isDateColumn } from './column/date.js';
|
|
35
19
|
export { isNumberColumn, isNumericColumn } from './column/number.js';
|
|
36
|
-
export { default as ColumnColorUtils } from './column/color.js';
|
|
37
20
|
export { DateUtils } from './date.js';
|
|
38
|
-
export { isNumber, isNumberEqual } from './number.js';
|
|
39
21
|
export { ValidateFilter } from './validate/filter.js';
|
|
40
22
|
export { isValidEmail } from './validate/email.js';
|
|
41
|
-
export { isValidPosition } from './validate/geolocation.js';
|
|
42
|
-
export { deleteInvalidFilter, getFormattedFilter, getFormattedFilterOtherDate, getFormattedFilters, getValidFilters, getValidFiltersWithoutError, otherDate } from './filter/core.js';
|
|
43
|
-
export { checkboxFilter } from './filter/filter-column/checkbox.js';
|
|
44
|
-
export { collaboratorFilter } from './filter/filter-column/collaborator.js';
|
|
45
|
-
export { creatorFilter } from './filter/filter-column/creator.js';
|
|
46
|
-
export { dateFilter } from './filter/filter-column/date.js';
|
|
47
|
-
export { digitalSignFilter } from './filter/filter-column/digital-sign.js';
|
|
48
|
-
export { fileFilter } from './filter/filter-column/file.js';
|
|
49
|
-
export { formulaFilter } from './filter/filter-column/formula.js';
|
|
50
|
-
export { geolocationFilter } from './filter/filter-column/geolocation.js';
|
|
51
|
-
export { textFilter } from './filter/filter-column/text.js';
|
|
52
|
-
export { longTextFilter } from './filter/filter-column/long-text.js';
|
|
53
|
-
export { multipleSelectFilter } from './filter/filter-column/multiple-select.js';
|
|
54
|
-
export { numberFilter } from './filter/filter-column/number.js';
|
|
55
|
-
export { singleSelectFilter } from './filter/filter-column/single-select.js';
|
|
56
|
-
export { linkFilter } from './filter/filter-column/link.js';
|
|
57
|
-
export { filterRow, filterRows, getFilteredRowsWithoutFormulaCalculation } from './filter/filter-row.js';
|
|
58
|
-
export { getValidSorts, isValidSort } from './sort/core.js';
|
|
59
|
-
export { sortCheckbox } from './sort/sort-column/checkbox.js';
|
|
60
|
-
export { sortCollaborator } from './sort/sort-column/collaborator.js';
|
|
61
|
-
export { sortDate } from './sort/sort-column/date.js';
|
|
62
|
-
export { sortByArrayType } from './sort/sort-column/array.js';
|
|
63
|
-
export { sortFormula } from './sort/sort-column/formula.js';
|
|
64
|
-
export { sortLink } from './sort/sort-column/link.js';
|
|
65
|
-
export { getMultipleIndexesOrderbyOptions, sortMultipleSelect } from './sort/sort-column/multiple-select.js';
|
|
66
|
-
export { sortNumber } from './sort/sort-column/number.js';
|
|
67
|
-
export { sortSingleSelect } from './sort/sort-column/single-select.js';
|
|
68
|
-
export { compareString, sortText } from './sort/sort-column/text.js';
|
|
69
|
-
export { deleteInvalidSort, sortRowsWithMultiSorts, sortTableRows } from './sort/sort-row.js';
|
|
70
|
-
export { deleteInvalidGroupby, getValidGroupbys, isValidGroupby } from './group/core.js';
|
|
71
|
-
export { getGroupedRowsWithoutFormulaCalculation, groupTableRows, groupViewRows } from './group/group-row.js';
|
|
72
|
-
export { default as GradientColorUtils } from './color/gradient-color.js';
|
|
73
23
|
export { FILTER_COLUMN_OPTIONS } from './constants/filter/filter-column-options.js';
|
|
74
24
|
export { FILTER_TERM_MODIFIER_SHOW, FILTER_TERM_MODIFIER_TYPE } from './constants/filter/filter-modifier.js';
|
|
75
25
|
export { FILTER_PREDICATE_SHOW, FILTER_PREDICATE_TYPE } from './constants/filter/filter-predicate.js';
|
|
76
26
|
export { filterTermModifierIsWithin, filterTermModifierNotWithin } from './constants/filter/filter-is-within.js';
|
|
77
|
-
export { getTableColumnByKey, getTableColumnByName } from './table/column.js';
|
|
78
|
-
export { getRowById, getRowsByIds } from './table/row.js';
|