@mantine-vue/table 2.4.0 → 3.0.0
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/cjs/index.cjs +15 -16
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +15 -16
- package/esm/index.mjs.map +1 -1
- package/package.json +4 -4
package/cjs/index.cjs
CHANGED
|
@@ -656,7 +656,7 @@ var MVT_EditCellTextInput = (0, vue.defineComponent)({
|
|
|
656
656
|
label: modal ? def.header : void 0,
|
|
657
657
|
name: cell.id,
|
|
658
658
|
placeholder: !modal ? def.header : void 0,
|
|
659
|
-
|
|
659
|
+
modelValue: value.value,
|
|
660
660
|
variant: table.options.editDisplayMode === "table" ? "unstyled" : "default",
|
|
661
661
|
onClick: (e) => e.stopPropagation(),
|
|
662
662
|
ref: setRef
|
|
@@ -665,30 +665,30 @@ var MVT_EditCellTextInput = (0, vue.defineComponent)({
|
|
|
665
665
|
...common,
|
|
666
666
|
searchable: true,
|
|
667
667
|
...selectProps,
|
|
668
|
-
|
|
668
|
+
"onUpdate:modelValue": (newValue) => {
|
|
669
669
|
value.value = newValue;
|
|
670
|
-
selectProps.onChange?.(newValue, option);
|
|
671
670
|
},
|
|
671
|
+
onChange: selectProps.onChange,
|
|
672
672
|
onBlur: blur
|
|
673
673
|
});
|
|
674
674
|
if (def.editVariant === "multi-select") return (0, vue.h)(_mantine_vue_core.MultiSelect, {
|
|
675
675
|
...common,
|
|
676
676
|
searchable: true,
|
|
677
677
|
...selectProps,
|
|
678
|
-
|
|
678
|
+
"onUpdate:modelValue": (newValue) => {
|
|
679
679
|
value.value = newValue;
|
|
680
|
-
selectProps.onChange?.(newValue);
|
|
681
680
|
},
|
|
681
|
+
onChange: selectProps.onChange,
|
|
682
682
|
onBlur: blur
|
|
683
683
|
});
|
|
684
684
|
return (0, vue.h)(_mantine_vue_core.TextInput, {
|
|
685
685
|
...common,
|
|
686
|
-
|
|
686
|
+
modelValue: value.value ?? "",
|
|
687
687
|
...textProps,
|
|
688
|
-
|
|
689
|
-
value.value =
|
|
690
|
-
textProps.onChange?.(event);
|
|
688
|
+
"onUpdate:modelValue": (nextValue) => {
|
|
689
|
+
value.value = nextValue;
|
|
691
690
|
},
|
|
691
|
+
onChange: textProps.onChange,
|
|
692
692
|
onBlur: blur,
|
|
693
693
|
onKeydown: (event) => {
|
|
694
694
|
textProps.onKeyDown?.(event);
|
|
@@ -1096,11 +1096,10 @@ var MVT_SelectCheckbox = (0, vue.defineComponent)({
|
|
|
1096
1096
|
size: state.density === "xs" ? "sm" : "md",
|
|
1097
1097
|
...checkboxProps,
|
|
1098
1098
|
title: void 0,
|
|
1099
|
-
onChange: (
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
checkboxProps.onChange?.(event);
|
|
1099
|
+
onChange: (nextChecked) => {
|
|
1100
|
+
selection({ shiftKey: lastShiftKey }, nextChecked);
|
|
1101
|
+
checkboxProps.onChange?.(nextChecked);
|
|
1102
|
+
lastShiftKey = false;
|
|
1104
1103
|
},
|
|
1105
1104
|
onClick: (event) => {
|
|
1106
1105
|
event.stopPropagation();
|
|
@@ -4112,9 +4111,9 @@ var MVT_FilterCheckbox = (0, vue.defineComponent)({
|
|
|
4112
4111
|
size: table.getState().density === "xs" ? "sm" : "md",
|
|
4113
4112
|
...checkboxProps,
|
|
4114
4113
|
title: void 0,
|
|
4115
|
-
onChange: (
|
|
4114
|
+
onChange: (checked) => {
|
|
4116
4115
|
column.setFilterValue(value === void 0 ? "true" : value === "true" ? "false" : void 0);
|
|
4117
|
-
checkboxProps.onChange?.(
|
|
4116
|
+
checkboxProps.onChange?.(checked);
|
|
4118
4117
|
},
|
|
4119
4118
|
onClick: (e) => {
|
|
4120
4119
|
e.stopPropagation();
|