dtable-ui-component 6.0.41 → 6.0.43
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/lib/CheckboxEditor/mb-editor.js +4 -0
- package/lib/CheckboxEditor/pc-editor.js +4 -0
- package/lib/DTableCommonAddTool/index.js +1 -1
- package/lib/DTableCustomizeSelect/index.css +3 -3
- package/lib/DTableFiltersPopover/constants/index.js +30 -2
- package/lib/DTableFiltersPopover/index.css +54 -15
- package/lib/DTableFiltersPopover/index.js +117 -135
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +10 -4
- package/lib/DTableFiltersPopover/utils/index.js +354 -83
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +7 -5
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +20 -7
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +25 -6
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +1 -1
- package/lib/DTableFiltersPopover/widgets/filter-group.js +188 -0
- package/lib/DTableFiltersPopover/widgets/filter-item.js +193 -66
- package/lib/DTableFiltersPopover/widgets/filter-list/index.css +183 -74
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +232 -42
- package/lib/DTableGroupSelect/index.css +3 -3
- package/lib/DTableGroupSelect/select-option-group.css +5 -5
- package/lib/DTableSearchInput/index.js +2 -2
- package/lib/DepartmentMultipleSelectEditor/index.js +22 -4
- package/lib/DurationEditor/index.js +19 -4
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +2 -2
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +2 -2
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +2 -2
- package/lib/NumberEditor/index.js +4 -2
- package/lib/SelectOptionGroup/index.css +8 -8
- package/lib/locales/de.json +7 -2
- package/lib/locales/en.json +7 -2
- package/lib/locales/es.json +7 -2
- package/lib/locales/fr.json +7 -2
- package/lib/locales/pt.json +7 -2
- package/lib/locales/ru.json +7 -2
- package/lib/locales/zh-CN.json +7 -2
- package/lib/utils/column-utils.js +21 -2
- package/package.json +3 -3
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.css +0 -0
package/lib/locales/es.json
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"Deleted_department": "Deleted department",
|
|
25
25
|
"View_original_image": "View original image",
|
|
26
26
|
"Add_filter": "Añadir filtro",
|
|
27
|
+
"And": "Y",
|
|
28
|
+
"Or": "O",
|
|
29
|
+
"Add_filter_group": "Añadir grupo de filtros",
|
|
30
|
+
"Click_to_add_filter": "Haz clic para añadir filtro",
|
|
31
|
+
"Click_to_input_value": "Haz clic para introducir valor",
|
|
27
32
|
"Submit": "Enviar",
|
|
28
33
|
"No_filters": "Sin filtros",
|
|
29
34
|
"Select_an_option": "Elige una opción",
|
|
@@ -166,6 +171,6 @@
|
|
|
166
171
|
"Close": "Cerrar",
|
|
167
172
|
"Latitude_abbr": "Lat",
|
|
168
173
|
"Longitude_abbr": "Lng",
|
|
169
|
-
"
|
|
170
|
-
"
|
|
174
|
+
"Latitude": "Latitude",
|
|
175
|
+
"Longitude": "Longitude"
|
|
171
176
|
}
|
package/lib/locales/fr.json
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"Deleted_department": "Département supprimé",
|
|
25
25
|
"View_original_image": "View original image",
|
|
26
26
|
"Add_filter": "Ajouter un filtre",
|
|
27
|
+
"And": "Et",
|
|
28
|
+
"Or": "Ou",
|
|
29
|
+
"Add_filter_group": "Ajouter un groupe de filtres",
|
|
30
|
+
"Click_to_add_filter": "Cliquer pour ajouter un filtre",
|
|
31
|
+
"Click_to_input_value": "Click to input value",
|
|
27
32
|
"Submit": "Soumettre",
|
|
28
33
|
"No_filters": "Aucun filtre",
|
|
29
34
|
"Select_an_option": "Sélectionnner une option",
|
|
@@ -166,6 +171,6 @@
|
|
|
166
171
|
"Close": "Fermer",
|
|
167
172
|
"Latitude_abbr": "Lat",
|
|
168
173
|
"Longitude_abbr": "Lng",
|
|
169
|
-
"
|
|
170
|
-
"
|
|
174
|
+
"Latitude": "Latitude",
|
|
175
|
+
"Longitude": "Longitude"
|
|
171
176
|
}
|
package/lib/locales/pt.json
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"Deleted_department": "Deleted department",
|
|
25
25
|
"View_original_image": "View original image",
|
|
26
26
|
"Add_filter": "Adicione o filtro",
|
|
27
|
+
"And": "E",
|
|
28
|
+
"Or": "Ou",
|
|
29
|
+
"Add_filter_group": "Adicione o grupo de filtros",
|
|
30
|
+
"Click_to_add_filter": "Clique para adicionar filtro",
|
|
31
|
+
"Click_to_input_value": "Clique para inserir valor",
|
|
27
32
|
"Submit": "Enviar",
|
|
28
33
|
"No_filters": "Sem filtros",
|
|
29
34
|
"Select_an_option": "Selecione uma opção",
|
|
@@ -166,6 +171,6 @@
|
|
|
166
171
|
"Close": "Fechar",
|
|
167
172
|
"Latitude_abbr": "Lat",
|
|
168
173
|
"Longitude_abbr": "Lng",
|
|
169
|
-
"
|
|
170
|
-
"
|
|
174
|
+
"Latitude": "Latitude",
|
|
175
|
+
"Longitude": "Longitude"
|
|
171
176
|
}
|
package/lib/locales/ru.json
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"Deleted_department": "Удаленный отдел",
|
|
25
25
|
"View_original_image": "View original image",
|
|
26
26
|
"Add_filter": "Добавить фильтр",
|
|
27
|
+
"And": "И",
|
|
28
|
+
"Or": "Или",
|
|
29
|
+
"Add_filter_group": "Добавить группу фильтров",
|
|
30
|
+
"Click_to_add_filter": "Нажмите для добавления фильтра",
|
|
31
|
+
"Click_to_input_value": "Нажмите для ввода значения",
|
|
27
32
|
"Submit": "Сохранить",
|
|
28
33
|
"No_filters": "Нет фильтров",
|
|
29
34
|
"Select_an_option": "Выберите опцию",
|
|
@@ -166,6 +171,6 @@
|
|
|
166
171
|
"Close": "Закрыть",
|
|
167
172
|
"Latitude_abbr": "Lat",
|
|
168
173
|
"Longitude_abbr": "Lng",
|
|
169
|
-
"
|
|
170
|
-
"
|
|
174
|
+
"Latitude": "Latitude",
|
|
175
|
+
"Longitude": "Longitude"
|
|
171
176
|
}
|
package/lib/locales/zh-CN.json
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"Deleted_department": "已删除部门",
|
|
25
25
|
"View_original_image": "View original image",
|
|
26
26
|
"Add_filter": "增加过滤条件",
|
|
27
|
+
"And": "并且",
|
|
28
|
+
"Or": "或者",
|
|
29
|
+
"Add_filter_group": "增加过滤组",
|
|
30
|
+
"Click_to_add_filter": "点击添加过滤器",
|
|
31
|
+
"Click_to_input_value": "点击输入值",
|
|
27
32
|
"Submit": "提交",
|
|
28
33
|
"No_filters": "没有过滤器",
|
|
29
34
|
"Select_an_option": "选择标签",
|
|
@@ -166,6 +171,6 @@
|
|
|
166
171
|
"Close": "关闭",
|
|
167
172
|
"Latitude_abbr": "纬度",
|
|
168
173
|
"Longitude_abbr": "经度",
|
|
169
|
-
"
|
|
170
|
-
"
|
|
174
|
+
"Latitude": "纬度",
|
|
175
|
+
"Longitude": "经度"
|
|
171
176
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getDateColumnFormat = void 0;
|
|
7
|
+
exports.isCheckboxColumn = isCheckboxColumn;
|
|
8
|
+
exports.isEnableCheckFormat = void 0;
|
|
7
9
|
var _dtableUtils = require("dtable-utils");
|
|
8
10
|
const isEnableCheckFormat = column => {
|
|
9
11
|
if (!column) return false;
|
|
@@ -22,4 +24,21 @@ const getDateColumnFormat = column => {
|
|
|
22
24
|
// Old Europe format is D/M/YYYY new format is DD/MM/YYYY
|
|
23
25
|
return format;
|
|
24
26
|
};
|
|
25
|
-
exports.getDateColumnFormat = getDateColumnFormat;
|
|
27
|
+
exports.getDateColumnFormat = getDateColumnFormat;
|
|
28
|
+
function isCheckboxColumn(column) {
|
|
29
|
+
let {
|
|
30
|
+
type,
|
|
31
|
+
data
|
|
32
|
+
} = column;
|
|
33
|
+
if (_dtableUtils.FORMULA_COLUMN_TYPES_MAP[type]) {
|
|
34
|
+
const {
|
|
35
|
+
result_type,
|
|
36
|
+
array_type
|
|
37
|
+
} = data || {};
|
|
38
|
+
if (result_type === _dtableUtils.FORMULA_RESULT_TYPE.ARRAY) {
|
|
39
|
+
return array_type === _dtableUtils.CellType.CHECKBOX;
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
return type === _dtableUtils.CellType.CHECKBOX;
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.43",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "4.0.2",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@babel/plugin-transform-runtime": "7.22.10",
|
|
73
73
|
"@babel/polyfill": "^7.10.1",
|
|
74
74
|
"@babel/preset-env": "^7.9.5",
|
|
75
|
-
"@babel/runtime": "7.
|
|
75
|
+
"@babel/runtime": "7.27.6",
|
|
76
76
|
"@cfaester/enzyme-adapter-react-18": "0.8.0",
|
|
77
77
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
78
78
|
"@storybook/addon-actions": "8.6.12",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"react-i18next": "12.1.4",
|
|
143
143
|
"react-refresh": "^0.11.0",
|
|
144
144
|
"resolve": "^1.20.0",
|
|
145
|
-
"resolve-url-loader": "^
|
|
145
|
+
"resolve-url-loader": "^5.0.0",
|
|
146
146
|
"sass-loader": "^12.3.0",
|
|
147
147
|
"semver": "^7.3.5",
|
|
148
148
|
"source-map-loader": "^3.0.0",
|
|
File without changes
|