dtable-ui-component 6.0.34-beta.1 → 6.0.34

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.
@@ -134,7 +134,6 @@ class FilterCalendar extends _react.Component {
134
134
  style: {
135
135
  zIndex: 1001
136
136
  },
137
- dateInputPlaceholder: 'please enter date',
138
137
  format: calendarFormat,
139
138
  defaultValue: this.defaultCalendarValue,
140
139
  showDateInput: true,
@@ -79,7 +79,6 @@ class MBDateEditor extends _react.default.PureComponent {
79
79
  const calendar = /*#__PURE__*/_react.default.createElement(_seafileCalendar.default, {
80
80
  className: (0, _classnames.default)('dtable-rc-calendar', className),
81
81
  locale: (0, _editorUtils.initDateEditorLanguage)(lang),
82
- dateInputPlaceholder: (0, _lang.getLocale)('Please_input'),
83
82
  format: this.format,
84
83
  defaultValue: this.defaultCalendarValue,
85
84
  showDateInput: false,
@@ -152,7 +152,6 @@ class PCDateEditor extends _react.default.Component {
152
152
  format: dateFormat,
153
153
  defaultValue: defaultValue,
154
154
  showHourAndMinute: showHourAndMinute,
155
- dateInputPlaceholder: (0, _lang.getLocale)('Please_input'),
156
155
  defaultMinutesTime: defaultTime,
157
156
  showDateInput: true,
158
157
  focusablePanel: false,
@@ -14,13 +14,15 @@ class GeolocationFormatter extends _react.default.Component {
14
14
  let {
15
15
  value,
16
16
  data,
17
- containerClassName
17
+ containerClassName,
18
+ isBaiduMap
18
19
  } = this.props;
19
20
  let className = (0, _classnames.default)('dtable-ui cell-formatter-container geolocation-formatter', containerClassName);
20
21
  if (typeof value !== 'object') {
21
22
  return null;
22
23
  }
23
24
  const geolocationDisplayString = (0, _dtableUtils.getGeolocationDisplayString)(value, data, {
25
+ isBaiduMap,
24
26
  hyphen: ' '
25
27
  });
26
28
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -37,6 +39,7 @@ GeolocationFormatter.defaultProps = {
37
39
  detail: ''
38
40
  },
39
41
  data: {},
40
- containerClassName: ''
42
+ containerClassName: '',
43
+ isBaiduMap: false
41
44
  };
42
45
  var _default = exports.default = GeolocationFormatter;
@@ -8,7 +8,7 @@
8
8
 
9
9
  .dtable-ui-row-expand-body .dtable-ui-row-expand-body-content {
10
10
  flex: 1 1;
11
- overflow-y: scroll;
11
+ overflow-y: auto;
12
12
  padding: 30px;
13
13
  }
14
14
 
@@ -82,10 +82,21 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
82
82
  });
83
83
  };
84
84
  this.getLocationInfo = value => {
85
+ var _window;
85
86
  const {
86
- column
87
+ column,
88
+ config
87
89
  } = this.props;
90
+ const {
91
+ dtableBaiduMapKey,
92
+ dtableMineMapKey
93
+ } = {
94
+ ...((_window = window) === null || _window === void 0 ? void 0 : _window.dtable),
95
+ ...config
96
+ };
97
+ const isBaiduMap = !!(dtableBaiduMapKey || dtableMineMapKey);
88
98
  return (0, _dtableUtils.getGeolocationDisplayString)(value, column.data, {
99
+ isBaiduMap,
89
100
  hyphen: ' '
90
101
  });
91
102
  };
@@ -10,7 +10,6 @@
10
10
  "No_collaborators_available": "Es sind keine Mitarbeiter verfügbar.",
11
11
  "Done": "Erledigt",
12
12
  "Choose_a_collaborator": "Wählen Sie einen Mitarbeiter",
13
- "Please_input": "Bitte eingeben",
14
13
  "Please_select": "Auswählen",
15
14
  "Clear": "Leeren",
16
15
  "Are_you_sure_you_want_to_delete_this_file": "Möchten Sie diese Datei wirklich löschen?",
@@ -10,7 +10,6 @@
10
10
  "No_collaborators_available": "No collaborators available.",
11
11
  "Done": "Done",
12
12
  "Choose_a_collaborator": "Choose a collaborator",
13
- "Please_input": "Please input",
14
13
  "Please_select": "Please select",
15
14
  "Clear": "Clear",
16
15
  "Are_you_sure_you_want_to_delete_this_file": "Are you sure you want to delete this file?",
@@ -167,4 +166,4 @@
167
166
  "Edit_long_text": "Edit long text",
168
167
  "Choose_a_department": "Choose a department",
169
168
  "Close": "Close"
170
- }
169
+ }
@@ -10,7 +10,6 @@
10
10
  "No_collaborators_available": "No hay colaboradores disponibles.",
11
11
  "Done": "Hecho",
12
12
  "Choose_a_collaborator": "Choose a collaborator",
13
- "Please_input": "Por favor introduce",
14
13
  "Please_select": "Seleccione",
15
14
  "Clear": "Limpiar",
16
15
  "Are_you_sure_you_want_to_delete_this_file": "¿Está seguro de querer eliminar este archivo?",
@@ -167,4 +166,4 @@
167
166
  "Edit_long_text": "Edit long text",
168
167
  "Choose_a_department": "Choose a department",
169
168
  "Close": "Cerrar"
170
- }
169
+ }
@@ -10,7 +10,6 @@
10
10
  "No_collaborators_available": "Aucun collaborateur n'est disponible.",
11
11
  "Done": "Fait",
12
12
  "Choose_a_collaborator": "Choisissez un collaborateur",
13
- "Please_input": "Veuillez entrer",
14
13
  "Please_select": "Sélectionner",
15
14
  "Clear": "Effacer",
16
15
  "Are_you_sure_you_want_to_delete_this_file": "Êtes-vous sûr de vouloir supprimer ce fichier?",
@@ -10,7 +10,6 @@
10
10
  "No_collaborators_available": "Nenhum colaborador disponível.",
11
11
  "Done": "Feita",
12
12
  "Choose_a_collaborator": "Choose a collaborator",
13
- "Please_input": "Por favor, insira",
14
13
  "Please_select": "Por favor, selecione",
15
14
  "Clear": "Clara",
16
15
  "Are_you_sure_you_want_to_delete_this_file": "Tem certeza de que deseja excluir este arquivo?",
@@ -10,7 +10,6 @@
10
10
  "No_collaborators_available": "Нет сотрудников.",
11
11
  "Done": "Выполнено",
12
12
  "Choose_a_collaborator": "Choose a collaborator",
13
- "Please_input": "Please input",
14
13
  "Please_select": "Please select",
15
14
  "Clear": "Очистить",
16
15
  "Are_you_sure_you_want_to_delete_this_file": "Вы уверены, что хотите удалить этот файл?",
@@ -167,4 +166,4 @@
167
166
  "Edit_long_text": "Редактировать длинный текст",
168
167
  "Choose_a_department": "Выберите отдел",
169
168
  "Close": "Закрыть"
170
- }
169
+ }
@@ -10,7 +10,6 @@
10
10
  "No_collaborators_available": "没有找到协作人",
11
11
  "Done": "完成",
12
12
  "Choose_a_collaborator": "选择一个协作人",
13
- "Please_input": "请输入",
14
13
  "Please_select": "请选择",
15
14
  "Clear": "清除",
16
15
  "Are_you_sure_you_want_to_delete_this_file": "你确定要删除此文件吗?",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.34-beta.1",
3
+ "version": "6.0.34",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",
@@ -8,7 +8,7 @@
8
8
  "@seafile/seafile-editor": "~2.0.6",
9
9
  "classnames": "2.3.2",
10
10
  "dayjs": "1.10.7",
11
- "dtable-utils": "5.0.20-beta.1",
11
+ "dtable-utils": "~5.0.19",
12
12
  "is-hotkey": "0.2.0",
13
13
  "rc-checkbox": "3.5.0",
14
14
  "react-color": "2.19.3",