@crystaldesign/grid 24.12.0-beta.1 → 24.12.0-beta.16
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/build/esm/index.js
CHANGED
|
@@ -62,7 +62,7 @@ import { useHover, useLayer } from 'react-laag';
|
|
|
62
62
|
import { ContentBoxComponent } from '@crystaldesign/content-box';
|
|
63
63
|
import { NavigateBefore, NavigateNext } from '@material-ui/icons';
|
|
64
64
|
import TextareaAutosize from '@material-ui/core/TextareaAutosize';
|
|
65
|
-
import
|
|
65
|
+
import RTFEditor from '@crystaldesign/rtf-editor';
|
|
66
66
|
import NumberFormat from 'react-number-format';
|
|
67
67
|
import format from 'date-fns/format';
|
|
68
68
|
import { enGB, fr, it, de } from 'date-fns/locale';
|
|
@@ -1625,7 +1625,8 @@ function MediaViewerCell (props) {
|
|
|
1625
1625
|
url: (_url = url) === null || _url === void 0 ? void 0 : _url.toString(),
|
|
1626
1626
|
mediaType: mediaType,
|
|
1627
1627
|
functionType: 'ART',
|
|
1628
|
-
storage: 'OTHER'
|
|
1628
|
+
storage: 'OTHER',
|
|
1629
|
+
borderPercentage: mediaItem.borderPercentage
|
|
1629
1630
|
});
|
|
1630
1631
|
});
|
|
1631
1632
|
}, [timeStamp]);
|
|
@@ -1938,18 +1939,16 @@ function Text(_ref3) {
|
|
|
1938
1939
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
1939
1940
|
value = _useState8[0],
|
|
1940
1941
|
setValue = _useState8[1];
|
|
1941
|
-
var _useState9 = useState(valueOutside),
|
|
1942
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
1943
|
-
tempRichText = _useState10[0],
|
|
1944
|
-
setTempRichText = _useState10[1];
|
|
1945
|
-
var _useDivaCore2 = useDivaCore(),
|
|
1946
|
-
tinyMceApiKey = _useDivaCore2.state.tinyMceApiKey;
|
|
1947
1942
|
useEffect(function () {
|
|
1948
1943
|
setValueOutside(value);
|
|
1949
1944
|
}, [value]);
|
|
1950
|
-
|
|
1951
|
-
if (
|
|
1952
|
-
|
|
1945
|
+
function changeText(text) {
|
|
1946
|
+
if (translation) {
|
|
1947
|
+
setValue(_objectSpread$7(_objectSpread$7({}, value), {}, _defineProperty({}, languages[curLangIndex], text)));
|
|
1948
|
+
} else {
|
|
1949
|
+
setValue(text);
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1953
1952
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
1954
1953
|
children: [translation && /*#__PURE__*/jsx(TranslationSelector, {
|
|
1955
1954
|
state: [curLangIndex, setLang],
|
|
@@ -1973,28 +1972,9 @@ function Text(_ref3) {
|
|
|
1973
1972
|
fontSize: 'inherit',
|
|
1974
1973
|
overflow: 'auto'
|
|
1975
1974
|
}
|
|
1976
|
-
}, curLangIndex), rich && /*#__PURE__*/jsx(
|
|
1977
|
-
apiKey: tinyMceApiKey,
|
|
1975
|
+
}, curLangIndex), rich && /*#__PURE__*/jsx(RTFEditor, {
|
|
1978
1976
|
initialValue: translation ? value[languages[curLangIndex]] : value,
|
|
1979
|
-
onChange:
|
|
1980
|
-
if (translation) {
|
|
1981
|
-
setTempRichText(_objectSpread$7(_objectSpread$7({}, value), {}, _defineProperty({}, languages[curLangIndex], e.target.getContent())));
|
|
1982
|
-
} else setTempRichText(e.target.getContent());
|
|
1983
|
-
},
|
|
1984
|
-
onSubmit: function onSubmit(e) {
|
|
1985
|
-
setValue(tempRichText);
|
|
1986
|
-
},
|
|
1987
|
-
textareaName: "text",
|
|
1988
|
-
init: {
|
|
1989
|
-
height: 500,
|
|
1990
|
-
menubar: false,
|
|
1991
|
-
plugins: ['advlist autolink lists link table paste'],
|
|
1992
|
-
contextmenu: '',
|
|
1993
|
-
resize: false,
|
|
1994
|
-
statusbar: false,
|
|
1995
|
-
toolbar: 'undo redo | formatselect | ' + 'bold italic backcolor | alignleft aligncenter ' + 'alignright alignjustify | bullist numlist outdent indent | table ',
|
|
1996
|
-
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
1997
|
-
}
|
|
1977
|
+
onChange: changeText
|
|
1998
1978
|
}, curLangIndex)]
|
|
1999
1979
|
});
|
|
2000
1980
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaViewerCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/media/MediaViewerCell.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"MediaViewerCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/media/MediaViewerCell.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,eAyDnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/text/TextCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"TextCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/text/TextCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,eA4DlE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/grid",
|
|
3
|
-
"version": "24.12.0-beta.
|
|
3
|
+
"version": "24.12.0-beta.16",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@material-ui/pickers": "^3.2.10",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"react-dom": "17.0.2"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@crystaldesign/
|
|
16
|
+
"@crystaldesign/rtf-editor": "24.12.0-beta.16",
|
|
17
|
+
"@crystaldesign/searchfield": "24.12.0-beta.16",
|
|
17
18
|
"@date-io/core": "^1.3.13",
|
|
18
19
|
"@date-io/date-fns": "^1.3.13",
|
|
19
|
-
"@tinymce/tinymce-react": "^3.13.0",
|
|
20
20
|
"assign-deep": "^1.0.1",
|
|
21
21
|
"classnames": "^2.2.6",
|
|
22
22
|
"core-js-pure": "^3.0.1",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
},
|
|
44
44
|
"module": "build/esm/index.js",
|
|
45
45
|
"types": "./build/types/grid/src/index.d.ts",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c4637cc66f8e880e0a9a7f8d58ef21d7a8baf105"
|
|
47
47
|
}
|