@mcurros2/microm 1.1.73-0 → 1.1.75-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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -49
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33370,9 +33370,9 @@ function $9e0f0f7fb3fe1bb5$export$4a22575e2f542f1f(props) {
|
|
|
33370
33370
|
const key_code = e.code;
|
|
33371
33371
|
// Fix to let escape pass through if there is no dropdown open
|
|
33372
33372
|
if (key_code === "Escape") {
|
|
33373
|
-
const dropdown =
|
|
33374
|
-
const
|
|
33375
|
-
if (!
|
|
33373
|
+
const dropdown = (_a = filterInputRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("[data-mantine-multiselect-dropdown]");
|
|
33374
|
+
const isMyDropdownOpen = !!dropdown;
|
|
33375
|
+
if (!isMyDropdownOpen) return;
|
|
33376
33376
|
}
|
|
33377
33377
|
if (key_code !== "Enter" && key_code !== "NumpadEnter") return;
|
|
33378
33378
|
// Ensure queryText is not empty
|
|
@@ -46114,6 +46114,7 @@ $parcel$export(module.exports, "SearchFilterInput", function () { return $fd210d
|
|
|
46114
46114
|
|
|
46115
46115
|
|
|
46116
46116
|
|
|
46117
|
+
|
|
46117
46118
|
var $fd210d71b523c65e$var$__rest = undefined && undefined.__rest || function(s, e) {
|
|
46118
46119
|
var t = {};
|
|
46119
46120
|
for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -46127,7 +46128,7 @@ const $fd210d71b523c65e$export$3faed4232677411d = {
|
|
|
46127
46128
|
placeholder: "Enter text to search",
|
|
46128
46129
|
addFilterLabel: "+ Filter:"
|
|
46129
46130
|
};
|
|
46130
|
-
|
|
46131
|
+
const $fd210d71b523c65e$export$4fef1edbf0f012ef = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function SearchFilterInput(props, ref) {
|
|
46131
46132
|
const _a = (0, $b4te3$mantinecore.useComponentDefaultProps)("SearchFilterInput", $fd210d71b523c65e$export$3faed4232677411d, props), { onSearchClick: onSearchClick, size: size, iconsSize: iconsSize, value: value, onChange: onChange, placeholder: placeholder, autoFocus: autoFocus, iconVariant: iconVariant, addFilterLabel: addFilterLabel, onSearchChange: onSearchChange, onCreate: onCreate } = _a, rest = $fd210d71b523c65e$var$__rest(_a, [
|
|
46132
46133
|
"onSearchClick",
|
|
46133
46134
|
"size",
|
|
@@ -46142,52 +46143,55 @@ function $fd210d71b523c65e$export$4fef1edbf0f012ef(props) {
|
|
|
46142
46143
|
"onCreate"
|
|
46143
46144
|
]);
|
|
46144
46145
|
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
46145
|
-
return (0, $b4te3$reactjsxruntime.jsx)(
|
|
46146
|
-
|
|
46147
|
-
|
|
46148
|
-
|
|
46149
|
-
|
|
46150
|
-
radius: "xl",
|
|
46151
|
-
size: size,
|
|
46152
|
-
styles: ()=>({
|
|
46153
|
-
searchInput: {
|
|
46154
|
-
lineHeight: "unset"
|
|
46155
|
-
},
|
|
46156
|
-
value: {
|
|
46157
|
-
minHeight: "1.4rem"
|
|
46158
|
-
},
|
|
46159
|
-
defaultValue: {
|
|
46160
|
-
paddingBottom: "0.1rem"
|
|
46161
|
-
}
|
|
46162
|
-
} // Fix the 'ggg' being cut off and vertical alignment
|
|
46163
|
-
),
|
|
46164
|
-
rightSection: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
46165
|
-
size: size,
|
|
46166
|
-
radius: "xl",
|
|
46167
|
-
color: theme.primaryColor,
|
|
46168
|
-
variant: iconVariant,
|
|
46169
|
-
onClick: (e)=>onSearchClick(e),
|
|
46170
|
-
children: theme.dir === "ltr" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowRight), {
|
|
46171
|
-
size: iconsSize,
|
|
46172
|
-
stroke: 1.5
|
|
46173
|
-
}) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowLeft), {
|
|
46174
|
-
size: iconsSize,
|
|
46146
|
+
return (0, $b4te3$reactjsxruntime.jsx)("div", {
|
|
46147
|
+
ref: ref,
|
|
46148
|
+
children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.MultiSelect), Object.assign({
|
|
46149
|
+
icon: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconSearch), {
|
|
46150
|
+
size: "1.1rem",
|
|
46175
46151
|
stroke: 1.5
|
|
46176
|
-
})
|
|
46177
|
-
|
|
46178
|
-
|
|
46179
|
-
|
|
46180
|
-
|
|
46181
|
-
|
|
46182
|
-
|
|
46183
|
-
|
|
46184
|
-
|
|
46185
|
-
|
|
46186
|
-
|
|
46187
|
-
|
|
46188
|
-
|
|
46189
|
-
|
|
46190
|
-
|
|
46152
|
+
}),
|
|
46153
|
+
radius: "xl",
|
|
46154
|
+
size: size,
|
|
46155
|
+
styles: ()=>({
|
|
46156
|
+
searchInput: {
|
|
46157
|
+
lineHeight: "unset"
|
|
46158
|
+
},
|
|
46159
|
+
value: {
|
|
46160
|
+
minHeight: "1.4rem"
|
|
46161
|
+
},
|
|
46162
|
+
defaultValue: {
|
|
46163
|
+
paddingBottom: "0.1rem"
|
|
46164
|
+
}
|
|
46165
|
+
} // Fix the 'ggg' being cut off and vertical alignment
|
|
46166
|
+
),
|
|
46167
|
+
rightSection: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
46168
|
+
size: size,
|
|
46169
|
+
radius: "xl",
|
|
46170
|
+
color: theme.primaryColor,
|
|
46171
|
+
variant: iconVariant,
|
|
46172
|
+
onClick: (e)=>onSearchClick(e),
|
|
46173
|
+
children: theme.dir === "ltr" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowRight), {
|
|
46174
|
+
size: iconsSize,
|
|
46175
|
+
stroke: 1.5
|
|
46176
|
+
}) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowLeft), {
|
|
46177
|
+
size: iconsSize,
|
|
46178
|
+
stroke: 1.5
|
|
46179
|
+
})
|
|
46180
|
+
}),
|
|
46181
|
+
rightSectionWidth: 42,
|
|
46182
|
+
value: value,
|
|
46183
|
+
onChange: onChange,
|
|
46184
|
+
onSearchChange: onSearchChange,
|
|
46185
|
+
onCreate: onCreate,
|
|
46186
|
+
placeholder: placeholder,
|
|
46187
|
+
creatable: true,
|
|
46188
|
+
searchable: true,
|
|
46189
|
+
getCreateLabel: (newValue)=>`${addFilterLabel} ${newValue}`,
|
|
46190
|
+
"data-autofocus": autoFocus,
|
|
46191
|
+
autoFocus: autoFocus
|
|
46192
|
+
}, rest))
|
|
46193
|
+
});
|
|
46194
|
+
});
|
|
46191
46195
|
|
|
46192
46196
|
});
|
|
46193
46197
|
|