@longline/aqua-ui 1.0.244 → 1.0.246
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.
|
@@ -7,7 +7,7 @@ interface IColumnProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* Optional label. `name` will be used if not specified.
|
|
9
9
|
*/
|
|
10
|
-
label?:
|
|
10
|
+
label?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Column width. If a number, e.g. `1`, then it is the column's weight,
|
|
13
13
|
* relative to other columns. If it is a string, e.g. `50px`, then it is
|
|
@@ -31,10 +31,10 @@ var SourceColumnsBase = function (props) {
|
|
|
31
31
|
setQ(value);
|
|
32
32
|
};
|
|
33
33
|
return (React.createElement("div", { className: props.className },
|
|
34
|
-
React.createElement(List, { maxItems: 6, search: q, placeholder: "Search...", onSearch: handleQ }, props.columns.filter(function (c) { return !q || c.name.toLowerCase().includes(q); }).sort(function (a, b) { return a.name.localeCompare(b.name); }).map(function (c
|
|
35
|
-
var _a;
|
|
34
|
+
React.createElement(List, { maxItems: 6, search: q, placeholder: "Search...", onSearch: handleQ }, props.columns.filter(function (c) { return !q || (c.label || c.name).toLowerCase().includes(q); }).sort(function (a, b) { return (a.label || a.name).localeCompare(b.label || b.name); }).map(function (c) {
|
|
36
35
|
return React.createElement(Entry, { key: c.name },
|
|
37
|
-
React.createElement(Selector, { disabled: c.fixed, checked: !!c.active, onChange: function () { return handleChange(c.name); } }),
|
|
36
|
+
React.createElement(Selector, { disabled: c.fixed, checked: !!c.active, onChange: function () { return handleChange(c.name); } }),
|
|
37
|
+
c.label || c.name);
|
|
38
38
|
}))));
|
|
39
39
|
};
|
|
40
40
|
var Entry = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n color: ", ";\n padding-left: 16px;\n padding-right: 16px;\n height: 28px;\n"], ["\n display: flex;\n align-items: center;\n color: ", ";\n padding-left: 16px;\n padding-right: 16px;\n height: 28px;\n"])), function (p) { return p.theme.colors.primary[5]; });
|