@mcurros2/microm 1.1.284-0 → 1.1.285-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.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34365,13 +34365,14 @@ const $900fa559ce35569a$export$4003d000af5d7585 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
34365
34365
|
const add_autofocus = formMode === 'add' ? true : undefined;
|
|
34366
34366
|
const edit_autofocus = formStatus?.loading === false && formMode !== 'add' ? true : undefined;
|
|
34367
34367
|
const readonly_condition = selectProps?.readOnly === undefined ? entityForm.formMode !== 'add' && column.hasFlag((0, $4H7ea.EntityColumnFlags).pk) : selectProps.readOnly;
|
|
34368
|
+
const autofocus_condition = autoFocus === 'autoFocusOnAdd' ? add_autofocus : autoFocus === 'autoFocusOnEdit' ? edit_autofocus : autoFocus;
|
|
34368
34369
|
const resolvedSelectProps = {
|
|
34369
34370
|
...selectProps ?? {},
|
|
34370
34371
|
readOnly: readonly_condition,
|
|
34371
34372
|
miw: selectProps?.miw ?? (minWidth !== 'auto' && minWidth !== undefined) ? (0, $ciiuv.MicroMWidthSizes)[minWidth] : undefined,
|
|
34372
34373
|
maw: selectProps?.maw ?? (maxWidth !== 'auto' && maxWidth !== undefined) ? (0, $ciiuv.MicroMWidthSizes)[maxWidth] : undefined,
|
|
34373
34374
|
label: selectProps?.label ?? column.prompt,
|
|
34374
|
-
autoFocus:
|
|
34375
|
+
autoFocus: autofocus_condition,
|
|
34375
34376
|
description: showDescription ? selectProps?.description ?? column.description : ''
|
|
34376
34377
|
};
|
|
34377
34378
|
(0, $hAMyt.useFieldConfiguration)({
|
|
@@ -34383,6 +34384,7 @@ const $900fa559ce35569a$export$4003d000af5d7585 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
34383
34384
|
const readoOnlyResult = resolvedSelectProps?.readOnly || entityForm.formMode === 'view' || lookupSelectAPI.status.loading || formStatus?.loading || column.hasFlag((0, $4H7ea.EntityColumnFlags).pk) && entityForm.formMode !== 'add' ? true : false;
|
|
34384
34385
|
return /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Select), {
|
|
34385
34386
|
...resolvedSelectProps,
|
|
34387
|
+
"data-autofocus": autofocus_condition,
|
|
34386
34388
|
withAsterisk: resolvedSelectProps.withAsterisk ?? (!resolvedSelectProps.readOnly && !(entityForm.formMode === 'view') && (resolvedSelectProps.required ?? !column.hasFlag((0, $4H7ea.EntityColumnFlags).nullable))),
|
|
34387
34389
|
withinPortal: withinPortal,
|
|
34388
34390
|
zIndex: zIndex,
|