@mcurros2/microm 1.1.71-0 → 1.1.73-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.js CHANGED
@@ -32937,6 +32937,7 @@ $parcel$export(module.exports, "DataGridToolbar", function () { return $28e44954
32937
32937
 
32938
32938
 
32939
32939
 
32940
+
32940
32941
  parcelRequire("7xGLy");
32941
32942
  var $lJoOP = parcelRequire("lJoOP");
32942
32943
  var $bFL3N = parcelRequire("bFL3N");
@@ -32974,6 +32975,7 @@ function $28e44954ec68cbea$export$b45b457b2c4e92a(props) {
32974
32975
  const { size: size, hideCheckboxToggle: hideCheckboxToggle, onCheckboxToggle: onCheckboxToggle, onSearchTextChange: onSearchTextChange, onRefreshClick: onRefreshClick, autoFocus: autoFocus, toolbarIconVariant: toolbarIconVariant, onExportClick: onExportClick, enableExport: enableExport, searchPlaceholder: searchPlaceholder, refreshTooltip: refreshTooltip, exportTooltip: exportTooltip, selectRowsTooltip: selectRowsTooltip, searchData: searchData, setSearchData: setSearchData, searchText: searchText, setSearchText: setSearchText, filterTooltip: filterTooltip, parentKeys: parentKeys, setFilterValues: setFilterValues, filterValues: filterValues, clearFiltersTooltip: clearFiltersTooltip, filtersFormSize: filtersFormSize, FiltersEntity: FiltersEntity, client: client, enableImport: enableImport, importTooltip: importTooltip, onImportClick: onImportClick, filtersBadgeSize: filtersBadgeSize, showAppliedFilters: showAppliedFilters, showRefreshButton: showRefreshButton, showFiltersButton: showFiltersButton, visibleFilters: visibleFilters, filtersDescription: filtersDescription, setFiltersDescription: setFiltersDescription, initialColumnFilters: initialColumnFilters, filtersTitle: filtersTitle, editFitersLabel: editFitersLabel, clearFiltersLabel: clearFiltersLabel, filtersAccordionVariant: filtersAccordionVariant, filtersBadgeVariant: filtersBadgeVariant, showSearchInput: showSearchInput, showSelectRowsButton: showSelectRowsButton, showColumnsConfig: showColumnsConfig, configMenuOpened: configMenuOpened, setConfigMenuOpened: setConfigMenuOpened, configMenuDropdown: configMenuDropdown } = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataGridToolbar", $28e44954ec68cbea$export$d7af4a7378986147, props);
32975
32976
  const theme = (0, $b4te3$mantinecore.useMantineTheme)();
32976
32977
  const { buttonsSize: buttonsSize, actionIconSize: actionIconSize, iconsSize: iconsSize, badgeSize: badgeSize } = (0, $TMsro.getToolbarSizes)(size);
32978
+ const filterInputRef = (0, $b4te3$react.useRef)(null);
32977
32979
  const filtersAPI = (0, $dzlic.useDataGridToolbarFilters)({
32978
32980
  filterValues: filterValues,
32979
32981
  setFilterValues: setFilterValues,
@@ -32989,7 +32991,8 @@ function $28e44954ec68cbea$export$b45b457b2c4e92a(props) {
32989
32991
  onSearchTextChange: onSearchTextChange,
32990
32992
  filtersFormSize: filtersFormSize,
32991
32993
  visibleFilters: visibleFilters,
32992
- initialColumnFilters: initialColumnFilters
32994
+ initialColumnFilters: initialColumnFilters,
32995
+ filterInputRef: filterInputRef
32993
32996
  });
32994
32997
  const appliedFiltersCount = filtersAPI.filtersDescription ? Object.values(filtersAPI.filtersDescription).filter((value)=>(value === null || value === void 0 ? void 0 : value.toString()) !== "").length : 0;
32995
32998
  return (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$reactjsxruntime.Fragment), {
@@ -33027,7 +33030,8 @@ function $28e44954ec68cbea$export$b45b457b2c4e92a(props) {
33027
33030
  iconVariant: toolbarIconVariant,
33028
33031
  sx: {
33029
33032
  flexGrow: 1
33030
- }
33033
+ },
33034
+ ref: filterInputRef
33031
33035
  }),
33032
33036
  showFiltersButton && FiltersEntity && (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$reactjsxruntime.Fragment), {
33033
33037
  children: [
@@ -33287,7 +33291,7 @@ var $9e0f0f7fb3fe1bb5$var$__awaiter = undefined && undefined.__awaiter || functi
33287
33291
  });
33288
33292
  };
33289
33293
  function $9e0f0f7fb3fe1bb5$export$4a22575e2f542f1f(props) {
33290
- const { filterValues: filterValues, setFilterValues: setFilterValues, client: client, parentKeys: parentKeys, FiltersEntity: FiltersEntity, setSearchData: setSearchData, setSearchText: setSearchText, onRefreshClick: onRefreshClick, onSearchTextChange: onSearchTextChange, searchData: searchData, filtersFormSize: filtersFormSize, visibleFilters: visibleFilters, filtersDescription: filtersDescription, setFiltersDescription: setFiltersDescription, initialColumnFilters: initialColumnFilters } = props;
33294
+ const { filterValues: filterValues, setFilterValues: setFilterValues, client: client, parentKeys: parentKeys, FiltersEntity: FiltersEntity, setSearchData: setSearchData, setSearchText: setSearchText, onRefreshClick: onRefreshClick, onSearchTextChange: onSearchTextChange, searchData: searchData, filtersFormSize: filtersFormSize, visibleFilters: visibleFilters, filtersDescription: filtersDescription, setFiltersDescription: setFiltersDescription, initialColumnFilters: initialColumnFilters, filterInputRef: filterInputRef } = props;
33291
33295
  const openFilters = (0, $9maeT.useOpenForm)();
33292
33296
  const updateFilterValuesAndDescription = (0, $b4te3$react.useCallback)((columns)=>{
33293
33297
  const values = {};
@@ -33362,7 +33366,14 @@ function $9e0f0f7fb3fe1bb5$export$4a22575e2f542f1f(props) {
33362
33366
  setSearchData
33363
33367
  ]);
33364
33368
  const handleSearchFilterInputEnter = (0, $b4te3$react.useCallback)((e)=>{
33369
+ var _a;
33365
33370
  const key_code = e.code;
33371
+ // Fix to let escape pass through if there is no dropdown open
33372
+ if (key_code === "Escape") {
33373
+ const dropdown = document.querySelector("[data-mantine-multiselect-dropdown]");
33374
+ const isDropdownOpen = dropdown && ((_a = filterInputRef.current) === null || _a === void 0 ? void 0 : _a.contains(dropdown));
33375
+ if (!isDropdownOpen) return;
33376
+ }
33366
33377
  if (key_code !== "Enter" && key_code !== "NumpadEnter") return;
33367
33378
  // Ensure queryText is not empty
33368
33379
  if (!queryText.trim()) return;
@@ -36682,7 +36693,7 @@ const $1ac999cc924a9b5d$export$d13f8a6d57c9f999 = {
36682
36693
  };
36683
36694
  function $1ac999cc924a9b5d$export$a1905d17a14ce215(props) {
36684
36695
  var _a, _b, _c;
36685
- const { recordIndex: recordIndex, selected: selected, handleDeleteClick: handleDeleteClick, handleDeselectRecord: handleDeselectRecord, handleEditClick: handleEditClick, handleSelectRecord: handleSelectRecord, handleViewClick: handleViewClick, enableDelete: enableDelete, enableEdit: enableEdit, enableView: enableView, entity: entity, record: record, toggleSelectable: toggleSelectable, EntityCard: EntityCard, CardProps: CardProps, refreshView: refreshView, handleCardClick: handleCardClick, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget, handleExecuteAction: handleExecuteAction, handleDeselectAllRecords: handleDeselectAllRecords } = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataViewCardContainer", $1ac999cc924a9b5d$export$d13f8a6d57c9f999, props);
36696
+ const { recordIndex: recordIndex, selected: selected, handleDeleteClick: handleDeleteClick, handleDeselectRecord: handleDeselectRecord, handleEditClick: handleEditClick, handleSelectRecord: handleSelectRecord, handleViewClick: handleViewClick, enableDelete: enableDelete, enableEdit: enableEdit, enableView: enableView, entity: entity, record: record, toggleSelectable: toggleSelectable, EntityCard: EntityCard, CardProps: CardProps, refreshView: refreshView, handleCardClick: handleCardClick, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget, handleExecuteAction: handleExecuteAction } = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataViewCardContainer", $1ac999cc924a9b5d$export$d13f8a6d57c9f999, props);
36686
36697
  const theme = (0, $b4te3$mantinecore.useMantineTheme)();
36687
36698
  const editElement = (0, $b4te3$react.useRef)(null);
36688
36699
  const deleteElement = (0, $b4te3$react.useRef)(null);
@@ -36714,7 +36725,6 @@ function $1ac999cc924a9b5d$export$a1905d17a14ce215(props) {
36714
36725
  handleViewClick: handleViewClick,
36715
36726
  handleCardClick: handleCardClick,
36716
36727
  handleExecuteAction: handleExecuteAction,
36717
- handleDeselectAllRecords: handleDeselectAllRecords,
36718
36728
  selected: selected,
36719
36729
  toggleSelectable: toggleSelectable,
36720
36730
  refreshView: refreshView,