@mcurros2/microm 1.1.37-0 → 1.1.39-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 +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34045,11 +34045,15 @@ const $97c59bfb4e85608a$export$9c2b2ccf03658905 = {
|
|
|
34045
34045
|
}),
|
|
34046
34046
|
iconVariant: "light",
|
|
34047
34047
|
requiredLabel: "A value is required",
|
|
34048
|
-
size: "sm"
|
|
34048
|
+
size: "sm",
|
|
34049
|
+
enableAdd: false,
|
|
34050
|
+
enableEdit: false,
|
|
34051
|
+
enableDelete: false,
|
|
34052
|
+
enableView: true
|
|
34049
34053
|
};
|
|
34050
34054
|
function $97c59bfb4e85608a$export$710993ff54d9590c(props) {
|
|
34051
34055
|
var _a, _b, _c;
|
|
34052
|
-
const { entityForm: entityForm, entity: entity, lookupDefName: lookupDefName, autoFocus: autoFocus, label: label, parentKeys: parentKeys, column: column, required: required, readonly: readonly, disabled: disabled, idMaxWidth: idMaxWidth, icon: icon, iconVariant: iconVariant, requiredLabel: requiredLabel, description: description, size: size, onLookupPerformed: onLookupPerformed } = (0, $b4te3$mantinecore.useComponentDefaultProps)("Lookup", $97c59bfb4e85608a$export$9c2b2ccf03658905, props);
|
|
34056
|
+
const { entityForm: entityForm, entity: entity, lookupDefName: lookupDefName, autoFocus: autoFocus, label: label, parentKeys: parentKeys, column: column, required: required, readonly: readonly, disabled: disabled, idMaxWidth: idMaxWidth, icon: icon, iconVariant: iconVariant, requiredLabel: requiredLabel, description: description, size: size, onLookupPerformed: onLookupPerformed, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete, enableView: enableView } = (0, $b4te3$mantinecore.useComponentDefaultProps)("Lookup", $97c59bfb4e85608a$export$9c2b2ccf03658905, props);
|
|
34053
34057
|
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
34054
34058
|
const HTMLDescriptionRef = (0, $b4te3$react.useRef)(null);
|
|
34055
34059
|
const lookupAPI = (0, $2Zki2.useLookup)({
|
|
@@ -34059,7 +34063,11 @@ function $97c59bfb4e85608a$export$710993ff54d9590c(props) {
|
|
|
34059
34063
|
column: column.name,
|
|
34060
34064
|
parentKeys: parentKeys,
|
|
34061
34065
|
required: required,
|
|
34062
|
-
HTMLDescriptionRef: HTMLDescriptionRef
|
|
34066
|
+
HTMLDescriptionRef: HTMLDescriptionRef,
|
|
34067
|
+
enableAdd: enableAdd,
|
|
34068
|
+
enableEdit: enableEdit,
|
|
34069
|
+
enableDelete: enableDelete,
|
|
34070
|
+
enableView: enableView
|
|
34063
34071
|
});
|
|
34064
34072
|
(0, $b4te3$react.useEffect)(()=>{
|
|
34065
34073
|
if (required !== null && required !== void 0 ? required : !column.hasFlag((0, $4H7ea.EntityColumnFlags).nullable)) entityForm.configureField(column, (0, $b4te3$mantineform.isNotEmpty)(requiredLabel));
|
|
@@ -34313,7 +34321,7 @@ var $22d1046b02a4c72c$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
34313
34321
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34314
34322
|
});
|
|
34315
34323
|
};
|
|
34316
|
-
const $22d1046b02a4c72c$export$4db9dd7eda56bf7b = ({ entityForm: entityForm, entity: entity, lookupDefName: lookupDefName, column: column, parentKeys: parentKeys, required: required, HTMLDescriptionRef: HTMLDescriptionRef })=>{
|
|
34324
|
+
const $22d1046b02a4c72c$export$4db9dd7eda56bf7b = ({ entityForm: entityForm, entity: entity, lookupDefName: lookupDefName, column: column, parentKeys: parentKeys, required: required, HTMLDescriptionRef: HTMLDescriptionRef, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete, enableView: enableView })=>{
|
|
34317
34325
|
const [status, setStatus] = (0, $b4te3$react.useState)({});
|
|
34318
34326
|
const [previousLookupResult, setPreviousLookupResult] = (0, $b4te3$react.useState)();
|
|
34319
34327
|
const [lookupResult, setLookupResult] = (0, $b4te3$react.useState)();
|
|
@@ -34429,7 +34437,11 @@ const $22d1046b02a4c72c$export$4db9dd7eda56bf7b = ({ entityForm: entityForm, ent
|
|
|
34429
34437
|
modalProps: {
|
|
34430
34438
|
size: "xl",
|
|
34431
34439
|
trapFocus: true
|
|
34432
|
-
}
|
|
34440
|
+
},
|
|
34441
|
+
enableAdd: enableAdd,
|
|
34442
|
+
enableEdit: enableEdit,
|
|
34443
|
+
enableDelete: enableDelete,
|
|
34444
|
+
enableView: enableView
|
|
34433
34445
|
});
|
|
34434
34446
|
});
|
|
34435
34447
|
if (force) yield doBrowse([]);
|
|
@@ -34461,7 +34473,11 @@ const $22d1046b02a4c72c$export$4db9dd7eda56bf7b = ({ entityForm: entityForm, ent
|
|
|
34461
34473
|
column,
|
|
34462
34474
|
entityForm.form,
|
|
34463
34475
|
lookupForm,
|
|
34464
|
-
parentKeys
|
|
34476
|
+
parentKeys,
|
|
34477
|
+
enableAdd,
|
|
34478
|
+
enableEdit,
|
|
34479
|
+
enableDelete,
|
|
34480
|
+
enableView
|
|
34465
34481
|
]);
|
|
34466
34482
|
const updateLookupType = (0, $b4te3$react.useCallback)((result)=>{
|
|
34467
34483
|
if (!result.error && !result.cancel) {
|
|
@@ -34641,13 +34657,17 @@ const $2f185925f0d65711$export$7c798c3f2245eb6 = {
|
|
|
34641
34657
|
size: "xl"
|
|
34642
34658
|
},
|
|
34643
34659
|
selectLabel: "Select",
|
|
34644
|
-
showActions: false
|
|
34660
|
+
showActions: false,
|
|
34661
|
+
enableAdd: false,
|
|
34662
|
+
enableEdit: false,
|
|
34663
|
+
enableDelete: false,
|
|
34664
|
+
enableView: true
|
|
34645
34665
|
};
|
|
34646
34666
|
function $2f185925f0d65711$export$5ff8a4fe1be12a7c() {
|
|
34647
34667
|
const modals = (0, $k7qj2.useModal)();
|
|
34648
34668
|
const buttonResult = (0, $b4te3$react.useRef)("Quit");
|
|
34649
34669
|
const open = (props)=>$2f185925f0d65711$var$__awaiter(this, void 0, void 0, function*() {
|
|
34650
|
-
const { entity: entity, viewName: viewName, onOK: onOK, onCancel: onCancel, modalProps: modalProps, selectionMode: selectionMode, search: search, selectLabel: selectLabel, onClosed: onClosed, parentKeys: parentKeys, showActions: showActions } = Object.assign(Object.assign({}, $2f185925f0d65711$export$7c798c3f2245eb6), props);
|
|
34670
|
+
const { entity: entity, viewName: viewName, onOK: onOK, onCancel: onCancel, modalProps: modalProps, selectionMode: selectionMode, search: search, selectLabel: selectLabel, onClosed: onClosed, parentKeys: parentKeys, showActions: showActions, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete, enableView: enableView } = Object.assign(Object.assign({}, $2f185925f0d65711$export$7c798c3f2245eb6), props);
|
|
34651
34671
|
buttonResult.current = "Quit";
|
|
34652
34672
|
const handleOK = (selectedKeys)=>$2f185925f0d65711$var$__awaiter(this, void 0, void 0, function*() {
|
|
34653
34673
|
buttonResult.current = "OK";
|
|
@@ -34675,7 +34695,11 @@ function $2f185925f0d65711$export$5ff8a4fe1be12a7c() {
|
|
|
34675
34695
|
refreshOnInit: true,
|
|
34676
34696
|
selectionMode: selectionMode ? selectionMode : "multi",
|
|
34677
34697
|
search: search,
|
|
34678
|
-
showActions: showActions
|
|
34698
|
+
showActions: showActions,
|
|
34699
|
+
enableAdd: enableAdd,
|
|
34700
|
+
enableEdit: enableEdit,
|
|
34701
|
+
enableDelete: enableDelete,
|
|
34702
|
+
enableView: enableView
|
|
34679
34703
|
},
|
|
34680
34704
|
onOK: (selectedKeys)=>$2f185925f0d65711$var$__awaiter(this, void 0, void 0, function*() {
|
|
34681
34705
|
return yield handleOK(selectedKeys);
|