@mcurros2/microm 1.1.4-0 → 1.1.6-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 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33321,7 +33321,7 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
|
|
|
33321
33321
|
setSearchText
|
|
33322
33322
|
]);
|
|
33323
33323
|
const handleModalSaved = (0, $b4te3$react.useCallback)((new_status)=>$42d3a2ac8447d6e0$var$__awaiter(this, void 0, void 0, function*() {
|
|
33324
|
-
if (!new_status.error && !new_status.loading && new_status.data) internalRefresh();
|
|
33324
|
+
if (!new_status.error && !new_status.loading && new_status.data && !handleAlwaysRefreshOnClose) internalRefresh();
|
|
33325
33325
|
if (onModalSaved) yield onModalSaved(new_status);
|
|
33326
33326
|
}), [
|
|
33327
33327
|
internalRefresh,
|
|
@@ -35995,9 +35995,10 @@ function $40c00e2ecacb5ae0$export$2d2c672e82add59e(props, stateProps) {
|
|
|
35995
35995
|
setSearchText
|
|
35996
35996
|
]);
|
|
35997
35997
|
const handleModalSaved = (0, $b4te3$react.useCallback)((new_status)=>$40c00e2ecacb5ae0$var$__awaiter(this, void 0, void 0, function*() {
|
|
35998
|
-
if (!new_status.error && !new_status.loading && new_status.data) internalRefresh();
|
|
35998
|
+
if (!new_status.error && !new_status.loading && new_status.data && !allwaysRefreshOnEntityClose) internalRefresh();
|
|
35999
35999
|
if (onModalSaved) yield onModalSaved(new_status);
|
|
36000
36000
|
}), [
|
|
36001
|
+
allwaysRefreshOnEntityClose,
|
|
36001
36002
|
internalRefresh,
|
|
36002
36003
|
onModalSaved
|
|
36003
36004
|
]);
|
|
@@ -36273,12 +36274,13 @@ const $55dd21617ac1c7dc$export$8d0177ff9f5686ad = {
|
|
|
36273
36274
|
filtersFormSize: "md",
|
|
36274
36275
|
convertResultToLocaleString: true,
|
|
36275
36276
|
showActions: true,
|
|
36276
|
-
showToolbar: true
|
|
36277
|
+
showToolbar: true,
|
|
36278
|
+
showDeleteOnlyWhenMultiselect: true
|
|
36277
36279
|
};
|
|
36278
36280
|
const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function DataView(props, ref) {
|
|
36279
36281
|
var _a;
|
|
36280
36282
|
props = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataView", $55dd21617ac1c7dc$export$8d0177ff9f5686ad, props);
|
|
36281
|
-
const { entity: entity, autoFocus: autoFocus, toolbarIconVariant: toolbarIconVariant, actionsButtonVariant: actionsButtonVariant, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete, enableView: enableView, enableExport: enableExport, labels: labels, Card: Card, CardContainer: CardContainer, limit: limit, search: search, viewName: viewName, filtersFormSize: filtersFormSize, toolbarSize: toolbarSize, showAppliedFilters: showAppliedFilters, showRefreshButton: showRefreshButton, hideCheckboxToggle: hideCheckboxToggle, showFiltersButton: showFiltersButton, searchPlaceholder: searchPlaceholder, showActions: showActions, parentKeys: parentKeys, visibleFilters: visibleFilters, setInitialFiltersFromColumns: setInitialFiltersFromColumns, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget, showSearchInput: showSearchInput, showSelectRowsButton: showSelectRowsButton, showToolbar: showToolbar } = props;
|
|
36283
|
+
const { entity: entity, autoFocus: autoFocus, toolbarIconVariant: toolbarIconVariant, actionsButtonVariant: actionsButtonVariant, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete, enableView: enableView, enableExport: enableExport, labels: labels, Card: Card, CardContainer: CardContainer, limit: limit, search: search, viewName: viewName, filtersFormSize: filtersFormSize, toolbarSize: toolbarSize, showAppliedFilters: showAppliedFilters, showRefreshButton: showRefreshButton, hideCheckboxToggle: hideCheckboxToggle, showFiltersButton: showFiltersButton, searchPlaceholder: searchPlaceholder, showActions: showActions, parentKeys: parentKeys, visibleFilters: visibleFilters, setInitialFiltersFromColumns: setInitialFiltersFromColumns, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget, showSearchInput: showSearchInput, showSelectRowsButton: showSelectRowsButton, showToolbar: showToolbar, showDeleteOnlyWhenMultiselect: showDeleteOnlyWhenMultiselect } = props;
|
|
36282
36284
|
const [searchData, setSearchData] = (0, $b4te3$react.useState)(search === null || search === void 0 ? void 0 : search.map((s)=>{
|
|
36283
36285
|
return {
|
|
36284
36286
|
value: s,
|
|
@@ -36341,7 +36343,7 @@ const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react
|
|
|
36341
36343
|
onDeleteClick: dataViewAPI.handleDeleteClick,
|
|
36342
36344
|
enableAdd: enableAdd,
|
|
36343
36345
|
enableEdit: false,
|
|
36344
|
-
enableDelete: enableDelete,
|
|
36346
|
+
enableDelete: enableDelete && (showDeleteOnlyWhenMultiselect ? dataViewAPI.showSelectCheckbox : true),
|
|
36345
36347
|
enableView: false,
|
|
36346
36348
|
actionsButtonVariant: actionsButtonVariant,
|
|
36347
36349
|
clientActions: entity ? entity.def.clientActions : {},
|