@mcurros2/microm 1.1.284-0 → 1.1.286-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 +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1515,7 +1515,7 @@ function $5ed3bb7179b182a6$export$b26ab034a805040d() {
|
|
|
1515
1515
|
function $5ed3bb7179b182a6$export$7b2c356fa50d350f() {
|
|
1516
1516
|
return new Array();
|
|
1517
1517
|
}
|
|
1518
|
-
function $5ed3bb7179b182a6$export$a98ac09e56a5ecee(
|
|
1518
|
+
function $5ed3bb7179b182a6$export$a98ac09e56a5ecee(selector) {
|
|
1519
1519
|
const path = [];
|
|
1520
1520
|
const proxy = new Proxy({}, {
|
|
1521
1521
|
get (_target, prop) {
|
|
@@ -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,
|
|
@@ -41724,7 +41726,6 @@ $parcel$export(module.exports, "DeveloperToolsPanel", function () { return $c40c
|
|
|
41724
41726
|
|
|
41725
41727
|
parcelRequire("faRXj");
|
|
41726
41728
|
var $buOaz = parcelRequire("buOaz");
|
|
41727
|
-
var $4USZu = parcelRequire("4USZu");
|
|
41728
41729
|
parcelRequire("2eyXi");
|
|
41729
41730
|
var $lTNXP = parcelRequire("lTNXP");
|
|
41730
41731
|
parcelRequire("2Qb3Q");
|
|
@@ -41734,7 +41735,7 @@ function $c40c7203e1497e9f$export$12b7164fb7891bc7({ client: client, ...rest })
|
|
|
41734
41735
|
return /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $kjFvY.DataGrid), {
|
|
41735
41736
|
...rest,
|
|
41736
41737
|
formMode: "view",
|
|
41737
|
-
viewName: (0, $lTNXP.nameof)((
|
|
41738
|
+
viewName: (0, $lTNXP.nameof)((v)=>v.views.mty_brwStandard),
|
|
41738
41739
|
entity: entity.current,
|
|
41739
41740
|
gridHeight: "flex-grow"
|
|
41740
41741
|
});
|