@undevy-org/tablewright 0.7.4 → 0.7.6
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.
|
@@ -45,7 +45,7 @@ function shouldPreserveMultiSubOnApply(sub, subCommitted, touchKey, touched) {
|
|
|
45
45
|
function mergeCompoundValueForApply(config, fieldId, committed, draft, touched, hiddenSubSet) {
|
|
46
46
|
const committedCompound = getCompoundValue(committed);
|
|
47
47
|
const draftCompound = getCompoundValue(draft);
|
|
48
|
-
const merged = {};
|
|
48
|
+
const merged = { ...draftCompound };
|
|
49
49
|
for (const sub of config.subFilters ?? []) {
|
|
50
50
|
if (hiddenSubSet.has(compoundSubTouchKey(fieldId, sub.key))) continue;
|
|
51
51
|
const touchKey = compoundSubTouchKey(fieldId, sub.key);
|
|
@@ -60,6 +60,12 @@ function mergeCompoundValueForApply(config, fieldId, committed, draft, touched,
|
|
|
60
60
|
if (subDraft === void 0 || isFilterValueEmpty(subDraft)) continue;
|
|
61
61
|
merged[sub.key] = subDraft;
|
|
62
62
|
}
|
|
63
|
+
for (const key of Object.keys(merged)) {
|
|
64
|
+
const value = merged[key];
|
|
65
|
+
if (isFilterValueEmpty(value)) {
|
|
66
|
+
delete merged[key];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
63
69
|
return Object.keys(merged).length === 0 ? void 0 : merged;
|
|
64
70
|
}
|
|
65
71
|
function resolveFieldApplyChange(config, fieldId, committed, draft, touched, hiddenSubSet, isActive) {
|
|
@@ -59,7 +59,7 @@ const Sidebar = React.forwardRef(
|
|
|
59
59
|
const active = isItemActive(item.href, activeKey);
|
|
60
60
|
const Icon = item.icon;
|
|
61
61
|
const itemClassName = cn(
|
|
62
|
-
"flex w-full items-center rounded-[var(--radius-md)] transition-
|
|
62
|
+
"flex w-full items-center rounded-[var(--radius-md)] transition-[background-color]",
|
|
63
63
|
showExpanded ? "gap-2.5 px-3 py-2" : "justify-center p-2.5",
|
|
64
64
|
active ? "bg-[var(--bg-nav-item-active)] font-medium text-[var(--text-primary)]" : "text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] hover:text-[var(--text-primary)]"
|
|
65
65
|
);
|
package/dist/styles.css
CHANGED
|
@@ -1413,6 +1413,16 @@
|
|
|
1413
1413
|
.filter {
|
|
1414
1414
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
|
|
1415
1415
|
}
|
|
1416
|
+
.transition {
|
|
1417
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1418
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1419
|
+
transition-duration: 150ms
|
|
1420
|
+
}
|
|
1421
|
+
.transition-\[background-color\] {
|
|
1422
|
+
transition-property: background-color;
|
|
1423
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1424
|
+
transition-duration: 150ms
|
|
1425
|
+
}
|
|
1416
1426
|
.transition-\[opacity\2c width\2c background-color\] {
|
|
1417
1427
|
transition-property: opacity,width,background-color;
|
|
1418
1428
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
package/dist/tablewright.cjs
CHANGED
|
@@ -1986,7 +1986,7 @@ const Sidebar = React__namespace.forwardRef(
|
|
|
1986
1986
|
const active = isItemActive(item.href, activeKey);
|
|
1987
1987
|
const Icon = item.icon;
|
|
1988
1988
|
const itemClassName = cn(
|
|
1989
|
-
"flex w-full items-center rounded-[var(--radius-md)] transition-
|
|
1989
|
+
"flex w-full items-center rounded-[var(--radius-md)] transition-[background-color]",
|
|
1990
1990
|
showExpanded ? "gap-2.5 px-3 py-2" : "justify-center p-2.5",
|
|
1991
1991
|
active ? "bg-[var(--bg-nav-item-active)] font-medium text-[var(--text-primary)]" : "text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] hover:text-[var(--text-primary)]"
|
|
1992
1992
|
);
|
|
@@ -4083,7 +4083,7 @@ function shouldPreserveMultiSubOnApply(sub, subCommitted, touchKey, touched) {
|
|
|
4083
4083
|
function mergeCompoundValueForApply(config, fieldId, committed, draft, touched, hiddenSubSet) {
|
|
4084
4084
|
const committedCompound = getCompoundValue(committed);
|
|
4085
4085
|
const draftCompound = getCompoundValue(draft);
|
|
4086
|
-
const merged = {};
|
|
4086
|
+
const merged = { ...draftCompound };
|
|
4087
4087
|
for (const sub of config.subFilters ?? []) {
|
|
4088
4088
|
if (hiddenSubSet.has(compoundSubTouchKey(fieldId, sub.key))) continue;
|
|
4089
4089
|
const touchKey = compoundSubTouchKey(fieldId, sub.key);
|
|
@@ -4098,6 +4098,12 @@ function mergeCompoundValueForApply(config, fieldId, committed, draft, touched,
|
|
|
4098
4098
|
if (subDraft === void 0 || isFilterValueEmpty(subDraft)) continue;
|
|
4099
4099
|
merged[sub.key] = subDraft;
|
|
4100
4100
|
}
|
|
4101
|
+
for (const key of Object.keys(merged)) {
|
|
4102
|
+
const value = merged[key];
|
|
4103
|
+
if (isFilterValueEmpty(value)) {
|
|
4104
|
+
delete merged[key];
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4101
4107
|
return Object.keys(merged).length === 0 ? void 0 : merged;
|
|
4102
4108
|
}
|
|
4103
4109
|
function resolveFieldApplyChange(config, fieldId, committed, draft, touched, hiddenSubSet, isActive) {
|
package/dist/tablewright.css
CHANGED
|
@@ -1261,6 +1261,16 @@
|
|
|
1261
1261
|
.filter {
|
|
1262
1262
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
|
|
1263
1263
|
}
|
|
1264
|
+
.transition {
|
|
1265
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1266
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1267
|
+
transition-duration: 150ms
|
|
1268
|
+
}
|
|
1269
|
+
.transition-\[background-color\] {
|
|
1270
|
+
transition-property: background-color;
|
|
1271
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1272
|
+
transition-duration: 150ms
|
|
1273
|
+
}
|
|
1264
1274
|
.transition-\[opacity\2c width\2c background-color\] {
|
|
1265
1275
|
transition-property: opacity,width,background-color;
|
|
1266
1276
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@undevy-org/tablewright",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "React data-table and application-shell components: filters, drawers, row controls, sortable and resizable columns, built on Radix UI and TanStack Table.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|