@crystaldesign/grid 24.14.0-beta.1 → 24.14.0-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/build/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
6
|
import React, { useState, useEffect, useMemo, createElement, forwardRef, useRef, useReducer, useCallback } from 'react';
|
|
7
|
-
import { useTranslation, useDivaCore,
|
|
7
|
+
import { useTranslation, useDivaCore, DivaUtils, getLogger, DivaError } from '@crystaldesign/diva-core';
|
|
8
8
|
import { useAsyncDebounce, useTable, useFilters, useGlobalFilter, useGroupBy, useSortBy, useExpanded, usePagination, useRowSelect } from 'react-table';
|
|
9
9
|
import { makeStyles, createStyles, fade, withStyles } from '@material-ui/core/styles';
|
|
10
10
|
import Alert from '@material-ui/lab/Alert';
|
|
@@ -1763,7 +1763,6 @@ var isImage = function isImage(data) {
|
|
|
1763
1763
|
var _excluded$1 = ["showArrows"];
|
|
1764
1764
|
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1765
1765
|
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1766
|
-
var LOG$1 = getLogger('Seller', 'SelectionCell');
|
|
1767
1766
|
function SelectionCell (_ref) {
|
|
1768
1767
|
var _props$value;
|
|
1769
1768
|
var showArrows = _ref.showArrows,
|
|
@@ -1802,13 +1801,12 @@ function SelectionCell (_ref) {
|
|
|
1802
1801
|
if (loading) return;
|
|
1803
1802
|
setLoading(true);
|
|
1804
1803
|
setValue(event.target.value);
|
|
1805
|
-
logEvent(event.target.value);
|
|
1806
1804
|
(_props$updateData = props.updateData) === null || _props$updateData === void 0 || _props$updateData.call(props, _objectSpread$8(_objectSpread$8({}, props.row.original), {}, _defineProperty({}, props.column.id, event.target.value)), props.row.id, props.column).then(function () {
|
|
1807
1805
|
setLoading(false);
|
|
1808
1806
|
});
|
|
1809
1807
|
};
|
|
1810
1808
|
var onclick = function onclick(type) {
|
|
1811
|
-
var _options$newIndex,
|
|
1809
|
+
var _options$newIndex, _props$updateData2, _options$newIndex2;
|
|
1812
1810
|
if (loading) return;
|
|
1813
1811
|
var currentOptionIndex = options.findIndex(function (item) {
|
|
1814
1812
|
return item.key === value;
|
|
@@ -1818,17 +1816,10 @@ function SelectionCell (_ref) {
|
|
|
1818
1816
|
setLoading(true);
|
|
1819
1817
|
var newIndex = type == 'back' ? currentOptionIndex - 1 : currentOptionIndex + 1;
|
|
1820
1818
|
setValue((_options$newIndex = options[newIndex]) === null || _options$newIndex === void 0 ? void 0 : _options$newIndex.key);
|
|
1821
|
-
|
|
1822
|
-
(_props$updateData2 = props.updateData) === null || _props$updateData2 === void 0 || _props$updateData2.call(props, _objectSpread$8(_objectSpread$8({}, props.row.original), {}, _defineProperty({}, props.column.id, (_options$newIndex3 = options[newIndex]) === null || _options$newIndex3 === void 0 ? void 0 : _options$newIndex3.key)), props.row.id, props.column).then(function () {
|
|
1819
|
+
(_props$updateData2 = props.updateData) === null || _props$updateData2 === void 0 || _props$updateData2.call(props, _objectSpread$8(_objectSpread$8({}, props.row.original), {}, _defineProperty({}, props.column.id, (_options$newIndex2 = options[newIndex]) === null || _options$newIndex2 === void 0 ? void 0 : _options$newIndex2.key)), props.row.id, props.column).then(function () {
|
|
1823
1820
|
setLoading(false);
|
|
1824
1821
|
});
|
|
1825
1822
|
};
|
|
1826
|
-
var logEvent = function logEvent(newVal) {
|
|
1827
|
-
LOG$1.businessEvent('GridSelect', 'Seller', 'select Changed in Grid', {
|
|
1828
|
-
value: newVal,
|
|
1829
|
-
key: props.column.id
|
|
1830
|
-
});
|
|
1831
|
-
};
|
|
1832
1823
|
var isEditalbe = props.column.editable && props.inlineEditing;
|
|
1833
1824
|
return isEditalbe ? /*#__PURE__*/jsxs("div", {
|
|
1834
1825
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/selection/SelectionCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectionCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/selection/SelectionCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,qBAiEhH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/grid",
|
|
3
|
-
"version": "24.14.0-beta.
|
|
3
|
+
"version": "24.14.0-beta.3",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@material-ui/pickers": "^3.2.10",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"react-dom": "18.3.1"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@crystaldesign/content-box": "24.14.0-beta.
|
|
16
|
-
"@crystaldesign/rtf-editor": "24.14.0-beta.
|
|
17
|
-
"@crystaldesign/searchfield": "24.14.0-beta.
|
|
15
|
+
"@crystaldesign/content-box": "24.14.0-beta.3",
|
|
16
|
+
"@crystaldesign/rtf-editor": "24.14.0-beta.3",
|
|
17
|
+
"@crystaldesign/searchfield": "24.14.0-beta.3",
|
|
18
18
|
"@date-io/core": "^1.3.13",
|
|
19
19
|
"@date-io/date-fns": "^1.3.13",
|
|
20
20
|
"@material-ui/core": "^4.12.4",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
},
|
|
42
42
|
"module": "build/esm/index.js",
|
|
43
43
|
"types": "./build/types/grid/src/index.d.ts",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "92813a2a592d129e55443b0bdd6f8050f9befa23"
|
|
45
45
|
}
|