dtable-utils 4.3.2-beta.1 → 4.3.2-beta.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/dist/index.js +1 -1
- package/es/archive/sql-generator/filter-condition.js +682 -0
- package/es/index.js +2 -1
- package/es/table/core.js +5 -1
- package/lib/archive/sql-generator/filter-condition.js +707 -0
- package/lib/index.js +18 -0
- package/lib/table/core.js +5 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -81,6 +81,7 @@ var groupRow = require('./group/group-row.js');
|
|
|
81
81
|
var gradientColor = require('./color/gradient-color.js');
|
|
82
82
|
var columnColor = require('./color/column-color.js');
|
|
83
83
|
var rowColor = require('./color/row-color.js');
|
|
84
|
+
var filterCondition = require('./archive/sql-generator/filter-condition.js');
|
|
84
85
|
var filterColumnOptions = require('./constants/filter/filter-column-options.js');
|
|
85
86
|
var filterModifier = require('./constants/filter/filter-modifier.js');
|
|
86
87
|
var filterIsWithin = require('./constants/filter/filter-is-within.js');
|
|
@@ -135,6 +136,7 @@ exports.generatorBase64Code = common.generatorBase64Code;
|
|
|
135
136
|
exports.isEmpty = common.isEmpty;
|
|
136
137
|
exports.isEmptyObject = common.isEmptyObject;
|
|
137
138
|
exports.getTableById = core.getTableById;
|
|
139
|
+
exports.getTableByIndex = core.getTableByIndex;
|
|
138
140
|
exports.getTableByName = core.getTableByName;
|
|
139
141
|
exports.getTableColumnByKey = column$1.getTableColumnByKey;
|
|
140
142
|
exports.getTableColumnByName = column$1.getTableColumnByName;
|
|
@@ -262,6 +264,22 @@ exports.groupViewRows = groupRow.groupViewRows;
|
|
|
262
264
|
exports.GradientColorUtils = gradientColor["default"];
|
|
263
265
|
exports.ColumnColorUtils = columnColor["default"];
|
|
264
266
|
exports.RowColorUtils = rowColor["default"];
|
|
267
|
+
exports.checkboxSqlCondition = filterCondition.checkboxSqlCondition;
|
|
268
|
+
exports.collaboratorSqlCondition = filterCondition.collaboratorSqlCondition;
|
|
269
|
+
exports.creatorSqlCondition = filterCondition.creatorSqlCondition;
|
|
270
|
+
exports.ctimeSqlCondition = filterCondition.ctimeSqlCondition;
|
|
271
|
+
exports.dateSqlCondition = filterCondition.dateSqlCondition;
|
|
272
|
+
exports.departmentSingleSelectSqlCondition = filterCondition.departmentSingleSelectSqlCondition;
|
|
273
|
+
exports.fileSqlCondition = filterCondition.fileSqlCondition;
|
|
274
|
+
exports.filter2SqlCondition = filterCondition.filter2SqlCondition;
|
|
275
|
+
exports.formulaSqlCondition = filterCondition.formulaSqlCondition;
|
|
276
|
+
exports.getSqlConditionByFilter = filterCondition.getSqlConditionByFilter;
|
|
277
|
+
exports.linkSqlCondition = filterCondition.linkSqlCondition;
|
|
278
|
+
exports.longtextSqlCondition = filterCondition.longtextSqlCondition;
|
|
279
|
+
exports.multipleSelectSqlCondition = filterCondition.multipleSelectSqlCondition;
|
|
280
|
+
exports.numberSqlCondition = filterCondition.numberSqlCondition;
|
|
281
|
+
exports.singleSelectSqlCondition = filterCondition.singleSelectSqlCondition;
|
|
282
|
+
exports.textSqlCondition = filterCondition.textSqlCondition;
|
|
265
283
|
exports.FILTER_COLUMN_OPTIONS = filterColumnOptions.FILTER_COLUMN_OPTIONS;
|
|
266
284
|
exports.FILTER_TERM_MODIFIER_SHOW = filterModifier.FILTER_TERM_MODIFIER_SHOW;
|
|
267
285
|
exports.FILTER_TERM_MODIFIER_TYPE = filterModifier.FILTER_TERM_MODIFIER_TYPE;
|
package/lib/table/core.js
CHANGED
|
@@ -27,6 +27,11 @@ var getTableByName = function getTableByName(tables, tableName) {
|
|
|
27
27
|
return table.name === tableName;
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
+
var getTableByIndex = function getTableByIndex(tables, tableIndex) {
|
|
31
|
+
if (!Array.isArray(tables) || tableIndex < 0) return null;
|
|
32
|
+
return tables[tableIndex];
|
|
33
|
+
};
|
|
30
34
|
|
|
31
35
|
exports.getTableById = getTableById;
|
|
36
|
+
exports.getTableByIndex = getTableByIndex;
|
|
32
37
|
exports.getTableByName = getTableByName;
|