@cccsaurora/howler-ui 2.19.0-cases.1040 → 2.19.0-cases.1051

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.
@@ -11,6 +11,7 @@ const ChipPopper = ({ icon, deleteIcon, label, children, minWidth, placement = '
11
11
  return (_jsxs(_Fragment, { children: [_jsx(Chip, { icon: icon, deleteIcon: deleteIcon, label: label, onClick: e => {
12
12
  handleToggle(!show);
13
13
  e.stopPropagation();
14
+ e.preventDefault();
14
15
  }, onDelete: onDelete ?? (toggleOnDelete ? () => handleToggle(!show) : null), ref: setAnchorEl, sx: [
15
16
  theme => ({
16
17
  position: 'relative',
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Topic } from '@mui/icons-material';
3
3
  import { Stack, Typography } from '@mui/material';
4
4
  import api from '@cccsaurora/howler-ui/api';
5
- import { SearchResponseContext } from '@cccsaurora/howler-ui/components/app/providers/SearchResponseProvider';
5
+ import SearchResponseProvider, { SearchResponseContext } from '@cccsaurora/howler-ui/components/app/providers/SearchResponseProvider';
6
6
  import { TuiListProvider } from '@cccsaurora/howler-ui/components/elements/addons/lists';
7
7
  import { TuiListMethodContext } from '@cccsaurora/howler-ui/components/elements/addons/lists/TuiListProvider';
8
8
  import ItemManager from '@cccsaurora/howler-ui/components/elements/display/ItemManager';
@@ -142,6 +142,6 @@ const CasesBase = () => {
142
142
  return (_jsx(ItemManager, { onSearch: onSearch, onPageChange: onPageChange, phrase: phrase, setPhrase: setPhrase, hasError: hasError, searching: loading, aboveSearch: _jsx(Typography, { sx: theme => ({ fontStyle: 'italic', color: theme.palette.text.disabled, mb: 0.5 }), variant: "body2", children: t('route.cases.search.prompt') }), searchFilters: _jsxs(Stack, { direction: "row", spacing: 1, useFlexGap: true, sx: { mt: 0.5, flexWrap: 'wrap' }, children: [_jsx(CaseStatusFilter, { statusFilter: statusFilter, onChange: setStatusFilter }), _jsx(CaseAssigneeFilter, { assigneeFilter: assigneeFilter, onChange: setAssigneeFilter }), _jsx(CaseDateFilter, { dateRange: dateRange, onChange: setDateRange, customStart: customStart, customEnd: customEnd, onCustomStartChange: setCustomStart, onCustomEndChange: setCustomEnd })] }), renderer: ({ item }, classRenderer) => renderer(item.item, classRenderer()), response: response, onSelect: (item) => navigate(`/cases/${item.id}`), searchPrompt: "route.cases.manager.search", createIcon: _jsx(Topic, { sx: { mr: 1 } }) }));
143
143
  };
144
144
  const Cases = () => {
145
- return (_jsx(TuiListProvider, { children: _jsx(CasesBase, {}) }));
145
+ return (_jsx(TuiListProvider, { children: _jsx(SearchResponseProvider, { idField: "case_id", children: _jsx(CasesBase, {}) }) }));
146
146
  };
147
147
  export default Cases;
package/package.json CHANGED
@@ -96,7 +96,7 @@
96
96
  "internal-slot": "1.0.7"
97
97
  },
98
98
  "type": "module",
99
- "version": "2.19.0-cases.1040",
99
+ "version": "2.19.0-cases.1051",
100
100
  "exports": {
101
101
  "./i18n": "./i18n.js",
102
102
  "./index.css": "./index.css",