@mcurros2/microm 1.1.37-0 → 1.1.38-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 +27 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34045,7 +34045,11 @@ 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;
|
|
@@ -34313,7 +34317,7 @@ var $22d1046b02a4c72c$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
34313
34317
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34314
34318
|
});
|
|
34315
34319
|
};
|
|
34316
|
-
const $22d1046b02a4c72c$export$4db9dd7eda56bf7b = ({ entityForm: entityForm, entity: entity, lookupDefName: lookupDefName, column: column, parentKeys: parentKeys, required: required, HTMLDescriptionRef: HTMLDescriptionRef })=>{
|
|
34320
|
+
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
34321
|
const [status, setStatus] = (0, $b4te3$react.useState)({});
|
|
34318
34322
|
const [previousLookupResult, setPreviousLookupResult] = (0, $b4te3$react.useState)();
|
|
34319
34323
|
const [lookupResult, setLookupResult] = (0, $b4te3$react.useState)();
|
|
@@ -34429,7 +34433,11 @@ const $22d1046b02a4c72c$export$4db9dd7eda56bf7b = ({ entityForm: entityForm, ent
|
|
|
34429
34433
|
modalProps: {
|
|
34430
34434
|
size: "xl",
|
|
34431
34435
|
trapFocus: true
|
|
34432
|
-
}
|
|
34436
|
+
},
|
|
34437
|
+
enableAdd: enableAdd,
|
|
34438
|
+
enableEdit: enableEdit,
|
|
34439
|
+
enableDelete: enableDelete,
|
|
34440
|
+
enableView: enableView
|
|
34433
34441
|
});
|
|
34434
34442
|
});
|
|
34435
34443
|
if (force) yield doBrowse([]);
|
|
@@ -34461,7 +34469,11 @@ const $22d1046b02a4c72c$export$4db9dd7eda56bf7b = ({ entityForm: entityForm, ent
|
|
|
34461
34469
|
column,
|
|
34462
34470
|
entityForm.form,
|
|
34463
34471
|
lookupForm,
|
|
34464
|
-
parentKeys
|
|
34472
|
+
parentKeys,
|
|
34473
|
+
enableAdd,
|
|
34474
|
+
enableEdit,
|
|
34475
|
+
enableDelete,
|
|
34476
|
+
enableView
|
|
34465
34477
|
]);
|
|
34466
34478
|
const updateLookupType = (0, $b4te3$react.useCallback)((result)=>{
|
|
34467
34479
|
if (!result.error && !result.cancel) {
|
|
@@ -34641,13 +34653,17 @@ const $2f185925f0d65711$export$7c798c3f2245eb6 = {
|
|
|
34641
34653
|
size: "xl"
|
|
34642
34654
|
},
|
|
34643
34655
|
selectLabel: "Select",
|
|
34644
|
-
showActions: false
|
|
34656
|
+
showActions: false,
|
|
34657
|
+
enableAdd: false,
|
|
34658
|
+
enableEdit: false,
|
|
34659
|
+
enableDelete: false,
|
|
34660
|
+
enableView: true
|
|
34645
34661
|
};
|
|
34646
34662
|
function $2f185925f0d65711$export$5ff8a4fe1be12a7c() {
|
|
34647
34663
|
const modals = (0, $k7qj2.useModal)();
|
|
34648
34664
|
const buttonResult = (0, $b4te3$react.useRef)("Quit");
|
|
34649
34665
|
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);
|
|
34666
|
+
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
34667
|
buttonResult.current = "Quit";
|
|
34652
34668
|
const handleOK = (selectedKeys)=>$2f185925f0d65711$var$__awaiter(this, void 0, void 0, function*() {
|
|
34653
34669
|
buttonResult.current = "OK";
|
|
@@ -34675,7 +34691,11 @@ function $2f185925f0d65711$export$5ff8a4fe1be12a7c() {
|
|
|
34675
34691
|
refreshOnInit: true,
|
|
34676
34692
|
selectionMode: selectionMode ? selectionMode : "multi",
|
|
34677
34693
|
search: search,
|
|
34678
|
-
showActions: showActions
|
|
34694
|
+
showActions: showActions,
|
|
34695
|
+
enableAdd: enableAdd,
|
|
34696
|
+
enableEdit: enableEdit,
|
|
34697
|
+
enableDelete: enableDelete,
|
|
34698
|
+
enableView: enableView
|
|
34679
34699
|
},
|
|
34680
34700
|
onOK: (selectedKeys)=>$2f185925f0d65711$var$__awaiter(this, void 0, void 0, function*() {
|
|
34681
34701
|
return yield handleOK(selectedKeys);
|