@economic/taco 2.29.1 → 2.29.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/List/List.d.ts +7 -7
- package/dist/components/List/components/Button.d.ts +2 -2
- package/dist/components/List/components/Collapsible.d.ts +3 -2
- package/dist/components/List/components/Item.d.ts +6 -14
- package/dist/components/List/components/Link.d.ts +2 -2
- package/dist/components/List/components/Toggle.d.ts +4 -4
- package/dist/esm/index.css +0 -4
- package/dist/esm/packages/taco/src/components/List/List.js.map +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Collapsible.js.map +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Link.js +11 -1
- package/dist/esm/packages/taco/src/components/List/components/Link.js.map +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Toggle.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +2 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
- package/dist/index.css +0 -4
- package/dist/taco.cjs.development.js +14 -4
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
@@ -641,10 +641,6 @@ table[data-taco^='table'] tr:first-child td {
|
|
641
641
|
@apply !border-t-0;
|
642
642
|
}
|
643
643
|
|
644
|
-
table[data-taco^='table'] tr:last-child td {
|
645
|
-
@apply !border-b-0;
|
646
|
-
}
|
647
|
-
|
648
644
|
table[data-taco^='table'] tr[aria-grabbed='true'] td {
|
649
645
|
@apply !wcag-blue-500;
|
650
646
|
}
|
@@ -29,6 +29,7 @@ var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
29
29
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
30
30
|
var reactPortal = require('@radix-ui/react-portal');
|
31
31
|
var reactTable = require('@tanstack/react-table');
|
32
|
+
var get = _interopDefault(require('lodash/get'));
|
32
33
|
var reactVirtual = require('@tanstack/react-virtual');
|
33
34
|
var reactIntersectionObserver = require('react-intersection-observer');
|
34
35
|
var core = require('@dnd-kit/core');
|
@@ -40,7 +41,6 @@ var reactWindow = require('react-window');
|
|
40
41
|
var InfiniteLoader = _interopDefault(require('react-window-infinite-loader'));
|
41
42
|
var set = _interopDefault(require('lodash/set'));
|
42
43
|
var unset = _interopDefault(require('lodash/unset'));
|
43
|
-
var get = _interopDefault(require('lodash/get'));
|
44
44
|
var compact = _interopDefault(require('lodash/compact'));
|
45
45
|
var pullAt = _interopDefault(require('lodash/pullAt'));
|
46
46
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
@@ -7366,9 +7366,19 @@ const Item$1 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
|
|
7366
7366
|
});
|
7367
7367
|
|
7368
7368
|
const Link = /*#__PURE__*/React__default.forwardRef(function Link(props, ref) {
|
7369
|
+
const isExternal = props.href.startsWith('http');
|
7369
7370
|
const control = /*#__PURE__*/React__default.createElement(Icon, {
|
7370
|
-
name:
|
7371
|
+
name: isExternal ? 'link-external' : 'chevron-right'
|
7371
7372
|
});
|
7373
|
+
if (isExternal) {
|
7374
|
+
return /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, props, {
|
7375
|
+
as: "a",
|
7376
|
+
target: "_blank",
|
7377
|
+
rel: "noopener noreferrer",
|
7378
|
+
control: control,
|
7379
|
+
ref: ref
|
7380
|
+
}));
|
7381
|
+
}
|
7372
7382
|
return /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, props, {
|
7373
7383
|
as: "a",
|
7374
7384
|
control: control,
|
@@ -9914,7 +9924,7 @@ function processChildren(child, columns, defaultSizing, defaultSorting, defaultV
|
|
9914
9924
|
id,
|
9915
9925
|
accessorKey,
|
9916
9926
|
// To avoid errors caused by undefined row data values, we pass accessorFn as a preventive measure
|
9917
|
-
accessorFn: row => row
|
9927
|
+
accessorFn: row => get(row, accessorKey),
|
9918
9928
|
header: header,
|
9919
9929
|
// features
|
9920
9930
|
enableColumnFilter,
|
@@ -18501,7 +18511,7 @@ const MemoedEditingCell = /*#__PURE__*/React__default.memo(function MemoedEditin
|
|
18501
18511
|
if (type === 'datepicker') {
|
18502
18512
|
const handleChange = event => {
|
18503
18513
|
const newDate = event.detail;
|
18504
|
-
if (!value || dateFns.isDate(value) && dateFns.isDate(newDate) && !isWeakEqual(value, newDate)) {
|
18514
|
+
if (!value || !newDate || dateFns.isDate(value) && dateFns.isDate(newDate) && !isWeakEqual(value, newDate)) {
|
18505
18515
|
props.onChange(event.detail);
|
18506
18516
|
}
|
18507
18517
|
};
|