@mcurros2/microm 1.1.104-0 → 1.1.106-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.js CHANGED
@@ -5213,10 +5213,11 @@ function $9023fcaf7ca2e4b7$export$94195a47b94ed396(props) {
5213
5213
  "requiredMessage",
5214
5214
  "description"
5215
5215
  ]);
5216
+ const effectiveRequired = !readOnly && !(entityForm.formMode === "view") && (required !== null && required !== void 0 ? required : !column.hasFlag((0, $4H7ea.EntityColumnFlags).nullable));
5216
5217
  (0, $hAMyt.useFieldConfiguration)({
5217
5218
  entityForm: entityForm,
5218
5219
  column: column,
5219
- required: required,
5220
+ required: effectiveRequired,
5220
5221
  requiredMessage: requiredMessage,
5221
5222
  readOnly: readOnly
5222
5223
  });
@@ -5224,8 +5225,7 @@ function $9023fcaf7ca2e4b7$export$94195a47b94ed396(props) {
5224
5225
  return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Checkbox), Object.assign({}, others, {
5225
5226
  label: label !== null && label !== void 0 ? label : column.prompt,
5226
5227
  description: showDescription ? description !== null && description !== void 0 ? description : column.description : "",
5227
- disabled: disabled !== null && disabled !== void 0 ? disabled : entityForm.formMode === "view" || disableOnLoading && loading || readOnly,
5228
- required: !readOnly && !(entityForm.formMode === "view") && (required !== null && required !== void 0 ? required : !column.hasFlag((0, $4H7ea.EntityColumnFlags).nullable))
5228
+ disabled: disabled !== null && disabled !== void 0 ? disabled : entityForm.formMode === "view" || disableOnLoading && loading || readOnly
5229
5229
  }, entityForm.form.getInputProps(column.name, {
5230
5230
  type: "checkbox"
5231
5231
  })));
@@ -46529,7 +46529,7 @@ const $2473eedc82301130$export$cb4f37c94e0044f1 = {
46529
46529
  closeOnEscape: true
46530
46530
  };
46531
46531
  function $2473eedc82301130$export$1dfef97d6d6bf90e(props) {
46532
- const { client: client, title: title, onClose: onClose, onLoggedIn: onLoggedIn, openState: openState, withCloseButton: withCloseButton, closeOnClickOutside: closeOnClickOutside, closeOnEscape: closeOnEscape, overlayProps: overlayProps, transitionProps: transitionProps } = (0, $b4te3$mantinecore.useComponentDefaultProps)("LoginModalForm", $2473eedc82301130$export$cb4f37c94e0044f1, props);
46532
+ const { client: client, title: title, onClose: onClose, onLoggedIn: onLoggedIn, openState: openState, withCloseButton: withCloseButton, closeOnClickOutside: closeOnClickOutside, closeOnEscape: closeOnEscape, overlayProps: overlayProps, transitionProps: transitionProps, centered: centered } = (0, $b4te3$mantinecore.useComponentDefaultProps)("LoginModalForm", $2473eedc82301130$export$cb4f37c94e0044f1, props);
46533
46533
  const [opened, { open: open, close: close }] = (0, $b4te3$mantinehooks.useDisclosure)(false);
46534
46534
  const statusCompletedHandler = (status)=>{
46535
46535
  var _a;
@@ -46550,12 +46550,13 @@ function $2473eedc82301130$export$1dfef97d6d6bf90e(props) {
46550
46550
  open,
46551
46551
  openState
46552
46552
  ]);
46553
+ const matchesTouchDevice = (0, $b4te3$mantinehooks.useMediaQuery)("(hover: none)");
46553
46554
  return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal), {
46554
46555
  trapFocus: true,
46555
46556
  opened: opened,
46556
46557
  onClose: closeHandler,
46557
46558
  title: title,
46558
- centered: true,
46559
+ centered: centered === undefined ? matchesTouchDevice ? false : true : centered,
46559
46560
  withCloseButton: withCloseButton,
46560
46561
  closeOnClickOutside: closeOnClickOutside,
46561
46562
  closeOnEscape: closeOnEscape,