ar-design 0.2.35 → 0.2.36
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.
|
@@ -334,7 +334,9 @@ const TableWithRef = forwardRef(({ children, title, description, data, columns,
|
|
|
334
334
|
React.createElement("div", null, c.filters.map((filter, fIndex) => {
|
|
335
335
|
const name = typeof c.key !== "object" ? String(c.key) : String(c.key.field);
|
|
336
336
|
return (React.createElement("div", null,
|
|
337
|
-
React.createElement(Checkbox, { ref: (element) => (_filterCheckboxItems.current[fIndex] = element), label: filter.text, name: name, status: "primary",
|
|
337
|
+
React.createElement(Checkbox, { ref: (element) => (_filterCheckboxItems.current[fIndex] = element), label: filter.text, name: name, status: "primary",
|
|
338
|
+
// value={filter.value}
|
|
339
|
+
checked: checkboxSelectedParams?.[name]?.includes(String(filter.value)), onChange: async (event) => await handleCheckboxChange(event) })));
|
|
338
340
|
}))), windowBlur: true },
|
|
339
341
|
React.createElement(Button, { variant: "borderless", icon: { element: React.createElement(ARIcon, { icon: "Filter", stroke: "var(--primary)", size: 16 }) } }))))));
|
|
340
342
|
})))),
|
|
@@ -369,7 +369,9 @@ const Table = forwardRef(({ children, title, description, data, columns, actions
|
|
|
369
369
|
c.filters && (React.createElement(Popover, { content: React.createElement("div", null, c.filters.map((filter, fIndex) => {
|
|
370
370
|
const name = typeof c.key !== "object" ? String(c.key) : String(c.key.field);
|
|
371
371
|
return (React.createElement("div", null,
|
|
372
|
-
React.createElement(Checkbox, { ref: (element) => (_filterCheckboxItems.current[fIndex] = element), label: filter.text, name: name, status: "primary",
|
|
372
|
+
React.createElement(Checkbox, { ref: (element) => (_filterCheckboxItems.current[fIndex] = element), label: filter.text, name: name, status: "primary",
|
|
373
|
+
// value={filter.value}
|
|
374
|
+
checked: checkboxSelectedParams?.[name]?.includes(String(filter.value)), onChange: async (event) => await handleCheckboxChange(event) })));
|
|
373
375
|
})), windowBlur: true },
|
|
374
376
|
React.createElement(Button, { variant: "borderless", icon: { element: React.createElement(ARIcon, { icon: "Filter", stroke: "var(--primary)", size: 16 }) } })))))));
|
|
375
377
|
})))),
|