dtable-ui-component 0.3.6-beta.3 → 0.3.6-beta.4
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/DateEditor/index.js +1 -1
- package/lib/DateFormatter/index.js +1 -1
- package/lib/DurationFormatter/index.js +1 -1
- package/lib/FormulaFormatter/index.js +1 -1
- package/lib/GeolocationFormatter/index.js +1 -1
- package/lib/LinkEditor/index.js +1 -1
- package/lib/LinkFormatter/index.js +1 -1
- package/lib/NumberEditor/index.js +1 -1
- package/lib/NumberFormatter/index.js +1 -1
- package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +1 -1
- package/lib/RowExpandLinkFormatter/value-display-utils.js +1 -1
- package/lib/constants/index.js +1 -1
- package/package.json +2 -2
package/lib/DateEditor/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
5
5
|
import React, { Fragment } from 'react';
|
|
6
6
|
import MediaQuery from 'react-responsive';
|
|
7
7
|
import dayjs from 'dayjs';
|
|
8
|
-
import { getDateDisplayString } from '
|
|
8
|
+
import { getDateDisplayString } from 'dtable-utils';
|
|
9
9
|
import PCDateEditorPopover from './pc-date-editor-popover';
|
|
10
10
|
import MBDateEditorPopover from './mb-date-editor-popover';
|
|
11
11
|
import './index.css';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
|
-
import { getDateDisplayString } from '
|
|
7
|
+
import { getDateDisplayString } from 'dtable-utils';
|
|
8
8
|
import './index.css';
|
|
9
9
|
|
|
10
10
|
var DateFormatter = /*#__PURE__*/function (_React$Component) {
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
|
-
import { getDurationDisplayString } from '
|
|
7
|
+
import { getDurationDisplayString } from 'dtable-utils';
|
|
8
8
|
import './index.css';
|
|
9
9
|
|
|
10
10
|
var DurationFormatter = /*#__PURE__*/function (_React$Component) {
|
|
@@ -4,7 +4,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { CellType, FORMULA_RESULT_TYPE, getFormulaDisplayString } from '
|
|
7
|
+
import { CellType, FORMULA_RESULT_TYPE, getFormulaDisplayString } from 'dtable-utils';
|
|
8
8
|
import BaseFormatterConfig from '../formatterConfig/base-formatter-config';
|
|
9
9
|
import TextFormatter from '../TextFormatter';
|
|
10
10
|
import { isArrayFormalColumn, isSimpleCellFormatter, isFunction, getFormulaArrayValue, convertValueToDtableLongTextValue } from './utils';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
|
-
import { getGeolocationDisplayString } from '
|
|
7
|
+
import { getGeolocationDisplayString } from 'dtable-utils';
|
|
8
8
|
import './index.css';
|
|
9
9
|
|
|
10
10
|
var GeolocationFormatter = /*#__PURE__*/function (_React$Component) {
|
package/lib/LinkEditor/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React, { Fragment } from 'react';
|
|
6
6
|
import MediaQuery from 'react-responsive';
|
|
7
|
-
import { getNumberDisplayString, getDateDisplayString } from '
|
|
7
|
+
import { getNumberDisplayString, getDateDisplayString } from 'dtable-utils';
|
|
8
8
|
import { getLocale } from '../lang';
|
|
9
9
|
import { CellType } from '../constants';
|
|
10
10
|
import EditEditorButton from '../EditEditorButton';
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
-
import { CellType, getNumberDisplayString, getDateDisplayString } from '
|
|
8
|
+
import { CellType, getNumberDisplayString, getDateDisplayString } from 'dtable-utils';
|
|
9
9
|
|
|
10
10
|
// link value is get form parant's interface
|
|
11
11
|
var LinkFormatter = /*#__PURE__*/function (_React$Component) {
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import isHotkey from 'is-hotkey';
|
|
7
|
-
import { getNumberDisplayString, formatStringToNumber, replaceNumberNotAllowInput } from '
|
|
7
|
+
import { getNumberDisplayString, formatStringToNumber, replaceNumberNotAllowInput } from 'dtable-utils';
|
|
8
8
|
import { NUMBER_TYPES } from '../constants';
|
|
9
9
|
import { isMac } from '../utils/utils';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
|
-
import { getNumberDisplayString } from '
|
|
7
|
+
import { getNumberDisplayString } from 'dtable-utils';
|
|
8
8
|
import './index.css';
|
|
9
9
|
|
|
10
10
|
var NumberFormatter = /*#__PURE__*/function (_React$Component) {
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
|
-
import { isValidEmail } from '
|
|
6
|
+
import { isValidEmail } from 'dtable-utils';
|
|
7
7
|
import CollaboratorItem from '../CollaboratorItem';
|
|
8
8
|
|
|
9
9
|
var CollaboratorItemFormatter = /*#__PURE__*/function (_Component) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CellType, getCellValueDisplayString } from '
|
|
1
|
+
import { CellType, getCellValueDisplayString } from 'dtable-utils';
|
|
2
2
|
var DOWNLOAD_NAME_COLUMN_TYPES = [CellType.TEXT, CellType.NUMBER, CellType.DATE, CellType.COLLABORATOR, CellType.CREATOR, CellType.AUTO_NUMBER];
|
|
3
3
|
export var getCellDisplayValue = function getCellDisplayValue(record, column, collaborators) {
|
|
4
4
|
if (!column || !DOWNLOAD_NAME_COLUMN_TYPES.includes(column.type)) return '';
|
package/lib/constants/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "0.3.6-beta.
|
|
3
|
+
"version": "0.3.6-beta.4",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"
|
|
6
|
+
"dtable-utils": "0.0.2",
|
|
7
7
|
"@seafile/react-image-lightbox": "0.0.9",
|
|
8
8
|
"@seafile/seafile-calendar": "0.0.24",
|
|
9
9
|
"@seafile/seafile-editor": "0.3.121",
|