@amateescu/portal-ui-components 0.0.47 → 0.0.49
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/Box-DU079Glg.js +57 -0
- package/dist/{Button-Bx3LbSbV.js → Button-BgsadnaR.js} +13 -13
- package/dist/{ButtonBase-DV7q7wxh.js → ButtonBase-ugYh038t.js} +8 -8
- package/dist/{CheckBox-YBX2j1qt.js → CheckBox-D9YmAV-l.js} +1 -1
- package/dist/{CircularProgress-BXi3nXc9.js → CircularProgress-D1FWO7Cz.js} +1 -1
- package/dist/{Clear-Bz9hw2Wj.js → Clear-B32X2R1T.js} +1 -1
- package/dist/Close-IqnCWZPM.js +8 -0
- package/dist/{DefaultPropsProvider-ByENA_w0.js → DefaultPropsProvider-BQx1AiAq.js} +20 -19
- package/dist/ExpandMore-CHNJSd5N.js +8 -0
- package/dist/ListItem-1DiNy9oq.js +422 -0
- package/dist/ListItemText-VX0lo95z.js +434 -0
- package/dist/Modal-BnD35xWv.js +1325 -0
- package/dist/{Search-D_9Ptbky.js → Search-DnJ3yLMg.js} +1 -1
- package/dist/assets/PassportDateRangeWrapper.css +1 -1
- package/dist/assets/PassportFilter.css +1 -0
- package/dist/assets/PassportFilterDrawer.css +1 -0
- package/dist/assets/PassportFilterFreeTextFilter.css +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +8 -60
- package/dist/components/Login/Login.js +1 -1
- package/dist/components/PassportButton/PassportButton.js +1 -1
- package/dist/components/PassportDatePicker/PassportDatePicker.js +21 -20
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +298 -291
- package/dist/components/PassportDatesFilter/PassportDatesFilter.js +24 -26
- package/dist/components/PassportFilter/PassportFilter.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.js +154 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts +13 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts +61 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.js +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.js +756 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts +28 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.js +94 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts +16 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.js +736 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts +37 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.js +180 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts +17 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.js +1 -0
- package/dist/components/PassportInput/PassportInput.js +2 -2
- package/dist/components/PassportMultiSelect/PassportMultiSelect.js +1 -1
- package/dist/components/PassportPagination/PassportPagination.js +96 -94
- package/dist/components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +1 -1
- package/dist/components/PassportTreeSelect/PassportTreeSelect.js +82 -79
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -2
- package/dist/{createSvgIcon-D5xeIEZ_.js → createSvgIcon-Crk7qT6j.js} +1 -1
- package/dist/{extendSxProp-BtJlbIOl.js → extendSxProp-BHclE0DL.js} +1 -1
- package/dist/getReactElementRef-CIbXfZbo.js +45 -0
- package/dist/index-DfCFE9GG.js +9 -0
- package/dist/listItemButtonClasses-BLTBU8Yh.js +476 -0
- package/dist/listItemIconClasses-B_UAYnw7.js +9 -0
- package/dist/listItemTextClasses-D5in-Wsc.js +9 -0
- package/dist/main.js +41 -37
- package/dist/portal-utils/arrays.d.ts +2 -0
- package/dist/portal-utils/arrays.d.ts.map +1 -0
- package/dist/portal-utils/arrays.js +10 -0
- package/dist/portal-utils/index.d.ts +1 -0
- package/dist/portal-utils/index.d.ts.map +1 -1
- package/dist/portal-utils/index.js +17 -15
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/useControlled-D1L5tREc.js +31 -0
- package/dist/useFormControl-Ivp9nwoj.js +53 -0
- package/dist/{useMobilePicker-CFsW9hUG.js → useMobilePicker-BombQ5QA.js} +5381 -7587
- package/dist/useSlot-B1oIMjd_.js +126 -0
- package/dist/useTheme-9dlwNzrD.js +10 -0
- package/dist/{useTheme-Cz8ZipjJ.js → useTheme-Dxbczges.js} +3 -3
- package/dist/useThemeProps-j6Er0aGl.js +27 -0
- package/dist/{useFormControl-MVwkyimi.js → utils-6k-H8qFR.js} +155 -231
- package/package.json +1 -1
- package/dist/useSlot-Bm5YJQBR.js +0 -160
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FreeSearch } from '../PassportFilter.types';
|
|
2
|
+
import { PassportFilterFreeTextButtonsProps } from '../PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types';
|
|
3
|
+
export interface ValidationError {
|
|
4
|
+
field: string;
|
|
5
|
+
messages: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface PassportFilterFreeTextFilterProps {
|
|
8
|
+
/** Active free text filters */
|
|
9
|
+
freeTextFilters: FreeSearch[];
|
|
10
|
+
addFreeTextFilter: (value: FreeSearch) => void;
|
|
11
|
+
removeFreeTextFilter: (field: string) => void;
|
|
12
|
+
updateFreeTextFilter: (field: string, value: string) => void;
|
|
13
|
+
/** Available free search fields */
|
|
14
|
+
relevantFreeSearch: FreeSearch[];
|
|
15
|
+
setRelevantFreeSearch: (value: FreeSearch[]) => void;
|
|
16
|
+
updateRelevantFreeSearch: (field: string, value: string) => void;
|
|
17
|
+
checkRelevantFreeSearch: (field: string) => void;
|
|
18
|
+
uncheckRelevantFreeSearch: (field: string) => void;
|
|
19
|
+
/** Source filter free search definitions */
|
|
20
|
+
filterFreeSearch: FreeSearch[];
|
|
21
|
+
setFilterFreeSearch: (value: FreeSearch[]) => void;
|
|
22
|
+
/** Dropdown values keyed by field name */
|
|
23
|
+
dropdownValues?: Record<string, string[]>;
|
|
24
|
+
/** Search placeholder text */
|
|
25
|
+
searchPlaceholder?: string;
|
|
26
|
+
/** Cancel button label */
|
|
27
|
+
cancelLabel?: string;
|
|
28
|
+
/** Apply button label */
|
|
29
|
+
applyLabel?: string;
|
|
30
|
+
/** Custom checked icon */
|
|
31
|
+
checkedIcon?: React.ReactNode;
|
|
32
|
+
/** Custom unchecked icon */
|
|
33
|
+
uncheckedIcon?: React.ReactNode;
|
|
34
|
+
/** Props forwarded to PassportFilterFreeTextButtons (filterCategories, setFilterCategories, translate, removeIcon) */
|
|
35
|
+
freeTextButtonsProps?: Partial<Pick<PassportFilterFreeTextButtonsProps, 'filterCategories' | 'setFilterCategories' | 'translate' | 'removeIcon'>>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=PassportFilterFreeTextFilter.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportFilterFreeTextFilter.types.d.ts","sourceRoot":"","sources":["../../../../src/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,sEAAsE,CAAC;AAE1H,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,iCAAiC;IAChD,+BAA+B;IAC/B,eAAe,EAAE,UAAU,EAAE,CAAC;IAC9B,iBAAiB,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC/C,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,mCAAmC;IACnC,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,qBAAqB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IACrD,wBAAwB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,yBAAyB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,4CAA4C;IAC5C,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,mBAAmB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IACnD,0CAA0C;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1C,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,4BAA4B;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,sHAAsH;IACtH,oBAAoB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,kBAAkB,GAAG,qBAAqB,GAAG,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC;CACnJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PassportFilterSelectionListProps } from './PassportFilterSelectionList.types';
|
|
2
|
+
declare const PassportFilterSelectionList: React.FC<PassportFilterSelectionListProps>;
|
|
3
|
+
export default PassportFilterSelectionList;
|
|
4
|
+
//# sourceMappingURL=PassportFilterSelectionList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportFilterSelectionList.d.ts","sourceRoot":"","sources":["../../../../src/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AAEvF,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CA2I3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.js
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { jsx as s, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { C as R, a as j } from "../../../CheckBox-D9YmAV-l.js";
|
|
3
|
+
import { C as y } from "../../../Clear-B32X2R1T.js";
|
|
4
|
+
import { S as A } from "../../../Search-DnJ3yLMg.js";
|
|
5
|
+
import { TextField as B, InputAdornment as C, Checkbox as F } from "@mui/material";
|
|
6
|
+
import * as S from "react";
|
|
7
|
+
import { useState as v, useCallback as O } from "react";
|
|
8
|
+
import { L as V, a as D } from "../../../listItemButtonClasses-BLTBU8Yh.js";
|
|
9
|
+
import { L as E } from "../../../ListItem-1DiNy9oq.js";
|
|
10
|
+
import { L as M, a as U } from "../../../ListItemText-VX0lo95z.js";
|
|
11
|
+
import { u as W, s as z, c as _, f as $, m as q, P as o } from "../../../DefaultPropsProvider-BQx1AiAq.js";
|
|
12
|
+
import { g as G } from "../../../listItemIconClasses-B_UAYnw7.js";
|
|
13
|
+
const H = (e) => {
|
|
14
|
+
const {
|
|
15
|
+
alignItems: r,
|
|
16
|
+
classes: n
|
|
17
|
+
} = e;
|
|
18
|
+
return $({
|
|
19
|
+
root: ["root", r === "flex-start" && "alignItemsFlexStart"]
|
|
20
|
+
}, G, n);
|
|
21
|
+
}, J = z("div", {
|
|
22
|
+
name: "MuiListItemIcon",
|
|
23
|
+
slot: "Root",
|
|
24
|
+
overridesResolver: (e, r) => {
|
|
25
|
+
const {
|
|
26
|
+
ownerState: n
|
|
27
|
+
} = e;
|
|
28
|
+
return [r.root, n.alignItems === "flex-start" && r.alignItemsFlexStart];
|
|
29
|
+
}
|
|
30
|
+
})(q(({
|
|
31
|
+
theme: e
|
|
32
|
+
}) => ({
|
|
33
|
+
minWidth: 56,
|
|
34
|
+
color: (e.vars || e).palette.action.active,
|
|
35
|
+
flexShrink: 0,
|
|
36
|
+
display: "inline-flex",
|
|
37
|
+
variants: [{
|
|
38
|
+
props: {
|
|
39
|
+
alignItems: "flex-start"
|
|
40
|
+
},
|
|
41
|
+
style: {
|
|
42
|
+
marginTop: 8
|
|
43
|
+
}
|
|
44
|
+
}]
|
|
45
|
+
}))), L = /* @__PURE__ */ S.forwardRef(function(r, n) {
|
|
46
|
+
const d = W({
|
|
47
|
+
props: r,
|
|
48
|
+
name: "MuiListItemIcon"
|
|
49
|
+
}), {
|
|
50
|
+
className: u,
|
|
51
|
+
...p
|
|
52
|
+
} = d, f = S.useContext(V), c = {
|
|
53
|
+
...d,
|
|
54
|
+
alignItems: f.alignItems
|
|
55
|
+
}, h = H(c);
|
|
56
|
+
return /* @__PURE__ */ s(J, {
|
|
57
|
+
className: _(h.root, u),
|
|
58
|
+
ownerState: c,
|
|
59
|
+
ref: n,
|
|
60
|
+
...p
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
process.env.NODE_ENV !== "production" && (L.propTypes = {
|
|
64
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
65
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
66
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
67
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
68
|
+
/**
|
|
69
|
+
* The content of the component, normally `Icon`, `SvgIcon`,
|
|
70
|
+
* or a `@mui/icons-material` SVG icon element.
|
|
71
|
+
*/
|
|
72
|
+
children: o.node,
|
|
73
|
+
/**
|
|
74
|
+
* Override or extend the styles applied to the component.
|
|
75
|
+
*/
|
|
76
|
+
classes: o.object,
|
|
77
|
+
/**
|
|
78
|
+
* @ignore
|
|
79
|
+
*/
|
|
80
|
+
className: o.string,
|
|
81
|
+
/**
|
|
82
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
83
|
+
*/
|
|
84
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
85
|
+
});
|
|
86
|
+
const ae = ({
|
|
87
|
+
category: e,
|
|
88
|
+
setReportFilterOptions: r,
|
|
89
|
+
translate: n = (c) => c,
|
|
90
|
+
searchPlaceholder: d = "Search",
|
|
91
|
+
allLabel: u = "All",
|
|
92
|
+
checkedIcon: p = /* @__PURE__ */ s(R, {}),
|
|
93
|
+
uncheckedIcon: f = /* @__PURE__ */ s(j, {})
|
|
94
|
+
}) => {
|
|
95
|
+
const [c, h] = v(!1), [x, I] = v(""), k = (t) => {
|
|
96
|
+
I(t.target.value), h(t.target.value !== "");
|
|
97
|
+
}, w = () => {
|
|
98
|
+
I("");
|
|
99
|
+
}, g = (t) => t.translatable ? n(t.text) : t.text, T = O(
|
|
100
|
+
(t, m) => {
|
|
101
|
+
if (!e.singleSelection && t === 0) {
|
|
102
|
+
const i = e.options.some((l) => !l.selected);
|
|
103
|
+
r((l) => ({
|
|
104
|
+
...l,
|
|
105
|
+
filterCategories: l.filterCategories?.map(
|
|
106
|
+
(a) => a.categoryName === e.categoryName ? {
|
|
107
|
+
...a,
|
|
108
|
+
options: e.options.map((P) => ({ ...P, selected: i }))
|
|
109
|
+
} : a
|
|
110
|
+
)
|
|
111
|
+
}));
|
|
112
|
+
} else
|
|
113
|
+
r((i) => ({
|
|
114
|
+
...i,
|
|
115
|
+
filterCategories: i.filterCategories?.map(
|
|
116
|
+
(l) => l.categoryName === e.categoryName ? {
|
|
117
|
+
...l,
|
|
118
|
+
options: e.options.map(
|
|
119
|
+
(a) => a.value === m.value ? { ...a, selected: !a.selected } : e.singleSelection ? { ...a, selected: !1 } : a
|
|
120
|
+
)
|
|
121
|
+
} : l
|
|
122
|
+
)
|
|
123
|
+
}));
|
|
124
|
+
},
|
|
125
|
+
[e]
|
|
126
|
+
), N = e.singleSelection ? e.options : [{ text: "All", value: u, selected: !1, translatable: !0 }, ...e.options];
|
|
127
|
+
return /* @__PURE__ */ b("div", { children: [
|
|
128
|
+
/* @__PURE__ */ s(
|
|
129
|
+
B,
|
|
130
|
+
{
|
|
131
|
+
size: "small",
|
|
132
|
+
fullWidth: !0,
|
|
133
|
+
variant: "outlined",
|
|
134
|
+
onChange: k,
|
|
135
|
+
value: x,
|
|
136
|
+
placeholder: d,
|
|
137
|
+
sx: {
|
|
138
|
+
width: "100%",
|
|
139
|
+
borderRadius: "50px",
|
|
140
|
+
border: "none",
|
|
141
|
+
bgcolor: "var(--color-light-gray-blue)",
|
|
142
|
+
"& fieldset": { border: "none" }
|
|
143
|
+
},
|
|
144
|
+
slotProps: {
|
|
145
|
+
input: {
|
|
146
|
+
startAdornment: /* @__PURE__ */ s(C, { position: "start", children: /* @__PURE__ */ s(A, {}) }),
|
|
147
|
+
endAdornment: c ? /* @__PURE__ */ s(C, { sx: { cursor: "pointer" }, position: "end", onClick: w, children: /* @__PURE__ */ s(y, {}) }) : null
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
/* @__PURE__ */ s(D, { sx: { width: "100%", borderRadius: "8px", bgcolor: "var(--color-background-secondary)", marginTop: "10px" }, disablePadding: !0, children: N.filter(
|
|
153
|
+
(t, m) => m === 0 && !e.singleSelection || !x || g(t).toLowerCase().includes(x.toLowerCase())
|
|
154
|
+
).map((t, m) => {
|
|
155
|
+
const i = `checkbox-list-label-${t.text}`;
|
|
156
|
+
return /* @__PURE__ */ s(E, { disablePadding: !0, children: /* @__PURE__ */ b(M, { onClick: () => T(m, t), dense: !0, children: [
|
|
157
|
+
/* @__PURE__ */ s(U, { id: i, primary: g(t) }),
|
|
158
|
+
/* @__PURE__ */ s(L, { children: /* @__PURE__ */ s(
|
|
159
|
+
F,
|
|
160
|
+
{
|
|
161
|
+
edge: "start",
|
|
162
|
+
icon: f,
|
|
163
|
+
checkedIcon: p,
|
|
164
|
+
checked: m === 0 && !e.singleSelection ? e.options.every((l) => l.selected) : t.selected,
|
|
165
|
+
tabIndex: -1,
|
|
166
|
+
disableFocusRipple: !0,
|
|
167
|
+
slotProps: {
|
|
168
|
+
input: {
|
|
169
|
+
"aria-labelledby": i
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
) })
|
|
174
|
+
] }) }, t.value);
|
|
175
|
+
}) })
|
|
176
|
+
] });
|
|
177
|
+
};
|
|
178
|
+
export {
|
|
179
|
+
ae as default
|
|
180
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { SelectionCategory, ReportFilterOptions } from '../PassportFilter.types';
|
|
3
|
+
export interface PassportFilterSelectionListProps {
|
|
4
|
+
category: SelectionCategory;
|
|
5
|
+
setReportFilterOptions: Dispatch<SetStateAction<ReportFilterOptions>>;
|
|
6
|
+
/** Translate function for option text and labels */
|
|
7
|
+
translate?: (key: string) => string;
|
|
8
|
+
/** Search placeholder text */
|
|
9
|
+
searchPlaceholder?: string;
|
|
10
|
+
/** Label for "All" option */
|
|
11
|
+
allLabel?: string;
|
|
12
|
+
/** Custom checked icon */
|
|
13
|
+
checkedIcon?: React.ReactNode;
|
|
14
|
+
/** Custom unchecked icon */
|
|
15
|
+
uncheckedIcon?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=PassportFilterSelectionList.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportFilterSelectionList.types.d.ts","sourceRoot":"","sources":["../../../../src/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,sBAAsB,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACtE,oDAAoD;IACpD,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,4BAA4B;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as d } from "../../Clear-
|
|
3
|
-
import { S as p } from "../../Search-
|
|
2
|
+
import { C as d } from "../../Clear-B32X2R1T.js";
|
|
3
|
+
import { S as p } from "../../Search-DnJ3yLMg.js";
|
|
4
4
|
import { TextField as a, InputAdornment as n } from "@mui/material";
|
|
5
5
|
function f({
|
|
6
6
|
label: e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as d } from "../../Clear-
|
|
2
|
+
import { C as d } from "../../Clear-B32X2R1T.js";
|
|
3
3
|
import { useTheme as m, FormControl as h, InputLabel as a, Select as g, MenuItem as x, Checkbox as f, ListItemText as I, InputAdornment as y, OutlinedInput as C } from "@mui/material";
|
|
4
4
|
const M = 48, P = 8, T = {
|
|
5
5
|
PaperProps: {
|