@optimum-intelligence/opti-ui 0.9.1 → 1.0.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/CHANGELOG.md +99 -0
- package/README.md +5 -1
- package/dist/components/app-shell/AppShell.d.ts +30 -1
- package/dist/components/app-shell/AppShell.js +387 -236
- package/dist/components/app-shell/AppShell.js.map +1 -1
- package/dist/components/avatar/Avatar.d.ts +1 -1
- package/dist/components/avatar/Avatar.js +64 -52
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/calendar/Calendar.js +6 -4
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/date-utils.js +1 -1
- package/dist/components/calendar/date-utils.js.map +1 -1
- package/dist/components/card/Card.d.ts +24 -5
- package/dist/components/card/Card.js +36 -23
- package/dist/components/card/Card.js.map +1 -1
- package/dist/components/collapsible/Collapsible.d.ts +8 -1
- package/dist/components/collapsible/Collapsible.js +32 -25
- package/dist/components/collapsible/Collapsible.js.map +1 -1
- package/dist/components/data-table/DataTable.d.ts +21 -4
- package/dist/components/data-table/DataTable.js +310 -100
- package/dist/components/data-table/DataTable.js.map +1 -1
- package/dist/components/data-table/DataTableContent.d.ts +1 -7
- package/dist/components/data-table/DataTableContent.js +209 -243
- package/dist/components/data-table/DataTableContent.js.map +1 -1
- package/dist/components/data-table/DataTableFilters.js +47 -57
- package/dist/components/data-table/DataTableFilters.js.map +1 -1
- package/dist/components/data-table/DataTableRow.js +105 -90
- package/dist/components/data-table/DataTableRow.js.map +1 -1
- package/dist/components/data-table/layout.d.ts +0 -5
- package/dist/components/data-table/layout.js +1 -23
- package/dist/components/data-table/layout.js.map +1 -1
- package/dist/components/data-table/types.d.ts +5 -2
- package/dist/components/data-table/useDataTable.js +249 -221
- package/dist/components/data-table/useDataTable.js.map +1 -1
- package/dist/components/date-picker/DateRangePicker.js +1 -0
- package/dist/components/date-picker/DateRangePicker.js.map +1 -1
- package/dist/components/date-picker/PickerField.js +98 -101
- package/dist/components/date-picker/PickerField.js.map +1 -1
- package/dist/components/description-list/DescriptionList.d.ts +3 -1
- package/dist/components/description-list/DescriptionList.js +3 -1
- package/dist/components/description-list/DescriptionList.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/drawer/Drawer.js +173 -87
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/file-upload/FileUpload.js +7 -0
- package/dist/components/file-upload/FileUpload.js.map +1 -1
- package/dist/components/link/Link.d.ts +1 -1
- package/dist/components/link/Link.js +57 -74
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/map/Map.d.ts +14 -2
- package/dist/components/map/Map.js +194 -153
- package/dist/components/map/Map.js.map +1 -1
- package/dist/components/pagination/Pagination.js +2 -0
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea.d.ts +18 -2
- package/dist/components/scroll-area/ScrollArea.js +89 -61
- package/dist/components/scroll-area/ScrollArea.js.map +1 -1
- package/dist/components/spinner/Spinner.js +34 -26
- package/dist/components/spinner/Spinner.js.map +1 -1
- package/dist/components/stat-card/StatCard.js +36 -22
- package/dist/components/stat-card/StatCard.js.map +1 -1
- package/dist/components/table/Table.d.ts +9 -2
- package/dist/components/table/Table.js +87 -63
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/tag/Tag.js +79 -103
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +2 -1
- package/dist/components/toolbar/Toolbar.js +23 -15
- package/dist/components/toolbar/Toolbar.js.map +1 -1
- package/dist/components/typography/Typography.d.ts +7 -1
- package/dist/components/typography/Typography.js +21 -18
- package/dist/components/typography/Typography.js.map +1 -1
- package/dist/components.json +134 -26
- package/dist/fonts/Montserrat-OFL.txt +93 -0
- package/dist/fonts/Poppins-OFL.txt +93 -0
- package/dist/fonts/montserrat-latin-ext.woff2 +0 -0
- package/dist/fonts/montserrat-latin.woff2 +0 -0
- package/dist/fonts/poppins-latin-400.woff2 +0 -0
- package/dist/fonts/poppins-latin-500.woff2 +0 -0
- package/dist/fonts/poppins-latin-600.woff2 +0 -0
- package/dist/fonts/poppins-latin-700.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-400.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-500.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-600.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-700.woff2 +0 -0
- package/dist/fonts.css +104 -4
- package/dist/index.js +2 -2
- package/dist/labels/Labels.d.ts +12 -0
- package/dist/labels/Labels.js +6 -0
- package/dist/labels/Labels.js.map +1 -1
- package/dist/labels/hu.js +9 -3
- package/dist/labels/hu.js.map +1 -1
- package/dist/llms-full.txt +103 -20
- package/dist/llms.txt +15 -10
- package/dist/opti-ui.css +567 -197
- package/dist/reset.css +33 -0
- package/dist/utils/focus.d.ts +8 -0
- package/dist/utils/focus.js +39 -0
- package/dist/utils/focus.js.map +1 -0
- package/package.json +2 -1
|
@@ -94,54 +94,61 @@ function CollapsibleTrigger(t0) {
|
|
|
94
94
|
return t4;
|
|
95
95
|
}
|
|
96
96
|
function CollapsiblePanel(t0) {
|
|
97
|
-
const $ = c(
|
|
97
|
+
const $ = c(16);
|
|
98
98
|
let children;
|
|
99
99
|
let className;
|
|
100
100
|
let props;
|
|
101
101
|
let ref;
|
|
102
|
+
let t1;
|
|
102
103
|
if ($[0] !== t0) {
|
|
103
|
-
({className, children, ref, ...props} = t0);
|
|
104
|
+
({plain: t1, className, children, ref, ...props} = t0);
|
|
104
105
|
$[0] = t0;
|
|
105
106
|
$[1] = children;
|
|
106
107
|
$[2] = className;
|
|
107
108
|
$[3] = props;
|
|
108
109
|
$[4] = ref;
|
|
110
|
+
$[5] = t1;
|
|
109
111
|
} else {
|
|
110
112
|
children = $[1];
|
|
111
113
|
className = $[2];
|
|
112
114
|
props = $[3];
|
|
113
115
|
ref = $[4];
|
|
116
|
+
t1 = $[5];
|
|
114
117
|
}
|
|
115
|
-
|
|
116
|
-
if ($[5] !== className) {
|
|
117
|
-
t1 = withClass("oui-collapsible__panel", className);
|
|
118
|
-
$[5] = className;
|
|
119
|
-
$[6] = t1;
|
|
120
|
-
} else t1 = $[6];
|
|
118
|
+
const plain = t1 === void 0 ? false : t1;
|
|
121
119
|
let t2;
|
|
122
|
-
if ($[
|
|
123
|
-
t2 =
|
|
120
|
+
if ($[6] !== className) {
|
|
121
|
+
t2 = withClass("oui-collapsible__panel", className);
|
|
122
|
+
$[6] = className;
|
|
123
|
+
$[7] = t2;
|
|
124
|
+
} else t2 = $[7];
|
|
125
|
+
const t3 = plain || void 0;
|
|
126
|
+
let t4;
|
|
127
|
+
if ($[8] !== children || $[9] !== t3) {
|
|
128
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
124
129
|
className: "oui-collapsible__content",
|
|
130
|
+
"data-plain": t3,
|
|
125
131
|
children
|
|
126
132
|
});
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
$[8] = children;
|
|
134
|
+
$[9] = t3;
|
|
135
|
+
$[10] = t4;
|
|
136
|
+
} else t4 = $[10];
|
|
137
|
+
let t5;
|
|
138
|
+
if ($[11] !== props || $[12] !== ref || $[13] !== t2 || $[14] !== t4) {
|
|
139
|
+
t5 = /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
133
140
|
ref,
|
|
134
|
-
className:
|
|
141
|
+
className: t2,
|
|
135
142
|
...props,
|
|
136
|
-
children:
|
|
143
|
+
children: t4
|
|
137
144
|
});
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
} else
|
|
144
|
-
return
|
|
145
|
+
$[11] = props;
|
|
146
|
+
$[12] = ref;
|
|
147
|
+
$[13] = t2;
|
|
148
|
+
$[14] = t4;
|
|
149
|
+
$[15] = t5;
|
|
150
|
+
} else t5 = $[15];
|
|
151
|
+
return t5;
|
|
145
152
|
}
|
|
146
153
|
/** A single section that shows and hides: advanced options, "show more", filter groups. */
|
|
147
154
|
var Collapsible$1 = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.js","names":["Collapsible","BaseCollapsible","withClass","ChevronRightIcon","CollapsibleRoot","t0","$","_c","className","props","ref","t1","t2","CollapsibleTriggerProps","Trigger","Props","chevron","CollapsibleTrigger","children","undefined","t3","t4","CollapsiblePanel","
|
|
1
|
+
{"version":3,"file":"Collapsible.js","names":["Collapsible","BaseCollapsible","withClass","ChevronRightIcon","CollapsibleRoot","t0","$","_c","className","props","ref","t1","t2","CollapsibleTriggerProps","Trigger","Props","chevron","CollapsibleTrigger","children","undefined","t3","t4","CollapsiblePanelProps","Panel","plain","CollapsiblePanel","t5","Root","_c","BaseCollapsible","Collapsible"],"sources":["../../../src/components/collapsible/Collapsible.tsx"],"sourcesContent":["import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';\nimport { withClass } from '../../utils/cx';\nimport { ChevronRightIcon } from '../../icons';\n\nfunction CollapsibleRoot({ className, ref, ...props }: BaseCollapsible.Root.Props) {\n return <BaseCollapsible.Root ref={ref} className={withClass('oui-collapsible', className)} {...props} />;\n}\n\nexport interface CollapsibleTriggerProps extends BaseCollapsible.Trigger.Props {\n /** Show the chevron that turns when the panel opens. */\n chevron?: boolean;\n}\n\nfunction CollapsibleTrigger({ chevron = true, className, children, ref, ...props }: CollapsibleTriggerProps) {\n return (\n <BaseCollapsible.Trigger ref={ref} className={withClass('oui-collapsible__trigger', className)} {...props}>\n {chevron && <ChevronRightIcon className=\"oui-collapsible__chevron\" />}\n {children}\n </BaseCollapsible.Trigger>\n );\n}\n\nexport interface CollapsiblePanelProps extends BaseCollapsible.Panel.Props {\n /**\n * Drop the content's padding and muted secondary-text style, so it lines up with and looks like the text\n * around it. Use it when the panel holds regular content (a list, a form) rather than a note.\n */\n plain?: boolean;\n}\n\nfunction CollapsiblePanel({ plain = false, className, children, ref, ...props }: CollapsiblePanelProps) {\n return (\n <BaseCollapsible.Panel ref={ref} className={withClass('oui-collapsible__panel', className)} {...props}>\n <div className=\"oui-collapsible__content\" data-plain={plain || undefined}>\n {children}\n </div>\n </BaseCollapsible.Panel>\n );\n}\n\n/** A single section that shows and hides: advanced options, \"show more\", filter groups. */\nexport const Collapsible = {\n Root: CollapsibleRoot,\n Trigger: CollapsibleTrigger,\n Panel: CollapsiblePanel,\n};\n"],"mappings":"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"}
|
|
@@ -28,6 +28,20 @@ declare function DataTableLoading({ className, ...props }: React.HTMLAttributes<
|
|
|
28
28
|
* before filters is not known, the `count` label. The default table shows it in the footer.
|
|
29
29
|
*/
|
|
30
30
|
declare function DataTableSummary({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
31
|
+
export interface DataTableSelectionBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
/** Height of the clear button; match the toolbar's other controls. */
|
|
33
|
+
size?: DataTableControlSize;
|
|
34
|
+
/** Actions on the selected rows (delete, export, assign…), placed after the count. */
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The number of selected rows, a button that clears the selection, and the `children` (actions on those rows).
|
|
39
|
+
* Renders nothing while no row is selected. The default table shows it in the toolbar over the search and
|
|
40
|
+
* filters, so the column headers stay as they are. In a composed table, place it in `DataTable.Toolbar` right
|
|
41
|
+
* after `DataTable.Controls` and set `inert` on the controls while `table.selection` is not empty: the bar covers
|
|
42
|
+
* them and the toolbar keeps its height.
|
|
43
|
+
*/
|
|
44
|
+
declare function DataTableSelectionBar({ size, className, children, ...props }: DataTableSelectionBarProps): React.JSX.Element | null;
|
|
31
45
|
export interface DataTablePaginationProps extends Omit<PaginationProps, 'page' | 'pageSize' | 'total' | 'onPageChange' | 'onPageSizeChange'> {
|
|
32
46
|
}
|
|
33
47
|
/** Page navigation of the table. Renders nothing when there are no rows, or the table is not paginated. */
|
|
@@ -65,7 +79,7 @@ export interface DataTableToolbarContext<T> {
|
|
|
65
79
|
/** The whole table: filter values, sort, setters. */
|
|
66
80
|
table: DataTableInstance<T>;
|
|
67
81
|
}
|
|
68
|
-
export interface DataTableProps<T> extends UseDataTableOptions<T>,
|
|
82
|
+
export interface DataTableProps<T> extends UseDataTableOptions<T>, DataTableContentProps {
|
|
69
83
|
/** Choices in the rows-per-page select. */
|
|
70
84
|
pageSizeOptions?: number[];
|
|
71
85
|
/** Size of the search box and the filters. */
|
|
@@ -73,8 +87,9 @@ export interface DataTableProps<T> extends UseDataTableOptions<T>, Omit<DataTabl
|
|
|
73
87
|
/** Extra toolbar content (add, import…). A function receives the processed rows. */
|
|
74
88
|
toolbar?: React.ReactNode | ((context: DataTableToolbarContext<T>) => React.ReactNode);
|
|
75
89
|
/**
|
|
76
|
-
* Actions on the selected rows. While rows are selected, the
|
|
77
|
-
*
|
|
90
|
+
* Actions on the selected rows. While rows are selected, the toolbar shows their count, a clear button and
|
|
91
|
+
* these actions over the search and filters (`DataTable.SelectionBar`); with `showToolbar={false}` the bar
|
|
92
|
+
* shows under the rows, next to the pagination. Needs `onSelectionChange`.
|
|
78
93
|
*/
|
|
79
94
|
bulkActions?: (context: DataTableToolbarContext<T>) => React.ReactNode;
|
|
80
95
|
/** Adds an icon button whose menu shows and hides columns (`DataTable.ColumnsMenu`). */
|
|
@@ -117,7 +132,8 @@ declare function DataTableComponent<T>({ density, striped, stickyHeader, layout,
|
|
|
117
132
|
* (the "Filters" button and panel for the other filters),
|
|
118
133
|
* `DataTable.ActiveFilters` (their tags), `DataTable.FilterSheet` (the phone
|
|
119
134
|
* filter button and sheet), `DataTable.ClearFilters`, `DataTable.Actions`,
|
|
120
|
-
* `DataTable.ColumnsMenu`,
|
|
135
|
+
* `DataTable.ColumnsMenu`, `DataTable.SelectionBar` (the selected rows' count
|
|
136
|
+
* and actions, shown in the toolbar while rows are selected),
|
|
121
137
|
* `DataTable.Loading`, `DataTable.Summary`, `DataTable.Content`,
|
|
122
138
|
* `DataTable.Pagination`.
|
|
123
139
|
*
|
|
@@ -146,6 +162,7 @@ export declare const DataTable: typeof DataTableComponent & {
|
|
|
146
162
|
};
|
|
147
163
|
ClearFilters: typeof DataTableClearFilters;
|
|
148
164
|
ColumnsMenu: typeof DataTableColumnsMenu;
|
|
165
|
+
SelectionBar: typeof DataTableSelectionBar;
|
|
149
166
|
Loading: typeof DataTableLoading;
|
|
150
167
|
Summary: typeof DataTableSummary;
|
|
151
168
|
Content: typeof DataTableContent;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cx } from "../../utils/cx.js";
|
|
3
3
|
import { createPrimitive } from "../../utils/primitive.js";
|
|
4
|
-
import { ColumnsIcon, DownloadIcon, FilterIcon } from "../../icons/index.js";
|
|
4
|
+
import { ColumnsIcon, DownloadIcon, FilterIcon, XIcon } from "../../icons/index.js";
|
|
5
5
|
import { Spinner } from "../spinner/Spinner.js";
|
|
6
6
|
import { Button, IconButton } from "../button/Button.js";
|
|
7
7
|
import { Menu } from "../menu/Menu.js";
|
|
8
8
|
import { SearchInput } from "../search-input/SearchInput.js";
|
|
9
9
|
import { NARROW_SCREEN, useMediaQuery } from "../../utils/media.js";
|
|
10
10
|
import { Drawer } from "../drawer/Drawer.js";
|
|
11
|
+
import { focusLost } from "../../utils/focus.js";
|
|
11
12
|
import { Tooltip } from "../tooltip/Tooltip.js";
|
|
12
13
|
import { Pagination } from "../pagination/Pagination.js";
|
|
13
14
|
import { DataTableContext, useDataTableContext } from "./context.js";
|
|
@@ -283,6 +284,167 @@ function DataTableSummary(t0) {
|
|
|
283
284
|
} else t4 = $[18];
|
|
284
285
|
return t4;
|
|
285
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* The number of selected rows, a button that clears the selection, and the `children` (actions on those rows).
|
|
289
|
+
* Renders nothing while no row is selected. The default table shows it in the toolbar over the search and
|
|
290
|
+
* filters, so the column headers stay as they are. In a composed table, place it in `DataTable.Toolbar` right
|
|
291
|
+
* after `DataTable.Controls` and set `inert` on the controls while `table.selection` is not empty: the bar covers
|
|
292
|
+
* them and the toolbar keeps its height.
|
|
293
|
+
*/
|
|
294
|
+
function DataTableSelectionBar(t0) {
|
|
295
|
+
const $ = c(39);
|
|
296
|
+
let children;
|
|
297
|
+
let className;
|
|
298
|
+
let props;
|
|
299
|
+
let t1;
|
|
300
|
+
if ($[0] !== t0) {
|
|
301
|
+
({size: t1, className, children, ...props} = t0);
|
|
302
|
+
$[0] = t0;
|
|
303
|
+
$[1] = children;
|
|
304
|
+
$[2] = className;
|
|
305
|
+
$[3] = props;
|
|
306
|
+
$[4] = t1;
|
|
307
|
+
} else {
|
|
308
|
+
children = $[1];
|
|
309
|
+
className = $[2];
|
|
310
|
+
props = $[3];
|
|
311
|
+
t1 = $[4];
|
|
312
|
+
}
|
|
313
|
+
const size = t1 === void 0 ? "md" : t1;
|
|
314
|
+
const table = useDataTableContext();
|
|
315
|
+
const text = table.labels;
|
|
316
|
+
let t2;
|
|
317
|
+
if ($[5] !== table.selectable || $[6] !== table.selection) {
|
|
318
|
+
t2 = table.selectable ? new Set(table.selection).size : 0;
|
|
319
|
+
$[5] = table.selectable;
|
|
320
|
+
$[6] = table.selection;
|
|
321
|
+
$[7] = t2;
|
|
322
|
+
} else t2 = $[7];
|
|
323
|
+
const selected = t2;
|
|
324
|
+
const active = selected > 0;
|
|
325
|
+
const focused = React.useRef(null);
|
|
326
|
+
const root = React.useRef(null);
|
|
327
|
+
let t3;
|
|
328
|
+
let t4;
|
|
329
|
+
if ($[8] !== active) {
|
|
330
|
+
t3 = () => {
|
|
331
|
+
if (active) return;
|
|
332
|
+
if (focused.current && !focused.current.isConnected && focusLost()) root.current?.querySelector("thead [role=\"checkbox\"]")?.focus();
|
|
333
|
+
focused.current = null;
|
|
334
|
+
};
|
|
335
|
+
t4 = [active];
|
|
336
|
+
$[8] = active;
|
|
337
|
+
$[9] = t3;
|
|
338
|
+
$[10] = t4;
|
|
339
|
+
} else {
|
|
340
|
+
t3 = $[9];
|
|
341
|
+
t4 = $[10];
|
|
342
|
+
}
|
|
343
|
+
React.useEffect(t3, t4);
|
|
344
|
+
if (!active) return null;
|
|
345
|
+
let t5;
|
|
346
|
+
if ($[11] !== className) {
|
|
347
|
+
t5 = cx("oui-data-table__selection-bar", className);
|
|
348
|
+
$[11] = className;
|
|
349
|
+
$[12] = t5;
|
|
350
|
+
} else t5 = $[12];
|
|
351
|
+
let t6;
|
|
352
|
+
let t7;
|
|
353
|
+
if ($[13] !== props) {
|
|
354
|
+
t6 = (event) => {
|
|
355
|
+
props.onFocus?.(event);
|
|
356
|
+
focused.current = event.target;
|
|
357
|
+
root.current = event.currentTarget.closest(".oui-data-table");
|
|
358
|
+
};
|
|
359
|
+
t7 = (event_0) => {
|
|
360
|
+
props.onBlur?.(event_0);
|
|
361
|
+
if (event_0.relatedTarget) focused.current = null;
|
|
362
|
+
};
|
|
363
|
+
$[13] = props;
|
|
364
|
+
$[14] = t6;
|
|
365
|
+
$[15] = t7;
|
|
366
|
+
} else {
|
|
367
|
+
t6 = $[14];
|
|
368
|
+
t7 = $[15];
|
|
369
|
+
}
|
|
370
|
+
let t8;
|
|
371
|
+
if ($[16] !== selected || $[17] !== text) {
|
|
372
|
+
t8 = text.selected(selected);
|
|
373
|
+
$[16] = selected;
|
|
374
|
+
$[17] = text;
|
|
375
|
+
$[18] = t8;
|
|
376
|
+
} else t8 = $[18];
|
|
377
|
+
let t9;
|
|
378
|
+
if ($[19] !== t8) {
|
|
379
|
+
t9 = /* @__PURE__ */ jsx("span", {
|
|
380
|
+
className: "oui-data-table__selection-count",
|
|
381
|
+
"aria-live": "polite",
|
|
382
|
+
children: t8
|
|
383
|
+
});
|
|
384
|
+
$[19] = t8;
|
|
385
|
+
$[20] = t9;
|
|
386
|
+
} else t9 = $[20];
|
|
387
|
+
let t10;
|
|
388
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
389
|
+
t10 = /* @__PURE__ */ jsx(XIcon, {});
|
|
390
|
+
$[21] = t10;
|
|
391
|
+
} else t10 = $[21];
|
|
392
|
+
let t11;
|
|
393
|
+
if ($[22] !== size || $[23] !== table.clearSelection || $[24] !== text.clearSelection) {
|
|
394
|
+
t11 = /* @__PURE__ */ jsx(IconButton, {
|
|
395
|
+
size,
|
|
396
|
+
"aria-label": text.clearSelection,
|
|
397
|
+
onClick: table.clearSelection,
|
|
398
|
+
children: t10
|
|
399
|
+
});
|
|
400
|
+
$[22] = size;
|
|
401
|
+
$[23] = table.clearSelection;
|
|
402
|
+
$[24] = text.clearSelection;
|
|
403
|
+
$[25] = t11;
|
|
404
|
+
} else t11 = $[25];
|
|
405
|
+
let t12;
|
|
406
|
+
if ($[26] !== t11 || $[27] !== text.clearSelection) {
|
|
407
|
+
t12 = /* @__PURE__ */ jsx(Tooltip, {
|
|
408
|
+
content: text.clearSelection,
|
|
409
|
+
children: t11
|
|
410
|
+
});
|
|
411
|
+
$[26] = t11;
|
|
412
|
+
$[27] = text.clearSelection;
|
|
413
|
+
$[28] = t12;
|
|
414
|
+
} else t12 = $[28];
|
|
415
|
+
let t13;
|
|
416
|
+
if ($[29] !== children) {
|
|
417
|
+
t13 = children && /* @__PURE__ */ jsx("div", {
|
|
418
|
+
className: "oui-data-table__selection-actions",
|
|
419
|
+
children
|
|
420
|
+
});
|
|
421
|
+
$[29] = children;
|
|
422
|
+
$[30] = t13;
|
|
423
|
+
} else t13 = $[30];
|
|
424
|
+
let t14;
|
|
425
|
+
if ($[31] !== props || $[32] !== t12 || $[33] !== t13 || $[34] !== t5 || $[35] !== t6 || $[36] !== t7 || $[37] !== t9) {
|
|
426
|
+
t14 = /* @__PURE__ */ jsxs("div", {
|
|
427
|
+
className: t5,
|
|
428
|
+
...props,
|
|
429
|
+
onFocus: t6,
|
|
430
|
+
onBlur: t7,
|
|
431
|
+
children: [
|
|
432
|
+
t9,
|
|
433
|
+
t12,
|
|
434
|
+
t13
|
|
435
|
+
]
|
|
436
|
+
});
|
|
437
|
+
$[31] = props;
|
|
438
|
+
$[32] = t12;
|
|
439
|
+
$[33] = t13;
|
|
440
|
+
$[34] = t5;
|
|
441
|
+
$[35] = t6;
|
|
442
|
+
$[36] = t7;
|
|
443
|
+
$[37] = t9;
|
|
444
|
+
$[38] = t14;
|
|
445
|
+
} else t14 = $[38];
|
|
446
|
+
return t14;
|
|
447
|
+
}
|
|
286
448
|
/** Page navigation of the table. Renders nothing when there are no rows, or the table is not paginated. */
|
|
287
449
|
function DataTablePagination(t0) {
|
|
288
450
|
const $ = c(14);
|
|
@@ -609,7 +771,7 @@ function _temp(column) {
|
|
|
609
771
|
return !column.hidden && column.hideable !== false;
|
|
610
772
|
}
|
|
611
773
|
function DataTableComponent(t0) {
|
|
612
|
-
const $ = c(
|
|
774
|
+
const $ = c(77);
|
|
613
775
|
let bulkActions;
|
|
614
776
|
let className;
|
|
615
777
|
let controlSize;
|
|
@@ -700,125 +862,171 @@ function DataTableComponent(t0) {
|
|
|
700
862
|
const narrow = useMediaQuery(NARROW_SCREEN);
|
|
701
863
|
const [filtersOpen, setFiltersOpen] = React.useState(false);
|
|
702
864
|
const selecting = table.selectable && table.selection.length > 0;
|
|
865
|
+
const toolbarShown = showToolbar && !!(table.searchable || table.filters.length || extra || columnsMenu || exportName);
|
|
703
866
|
const showSummary = showToolbar && !table.paginated && !selecting;
|
|
704
|
-
const
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
867
|
+
const T0 = DataTableSelectionBar;
|
|
868
|
+
const t6 = bulkActions?.(context);
|
|
869
|
+
let t7;
|
|
870
|
+
if ($[24] !== T0 || $[25] !== controlSize || $[26] !== t6) {
|
|
871
|
+
t7 = /* @__PURE__ */ jsx(T0, {
|
|
708
872
|
size: controlSize,
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
table.
|
|
721
|
-
/* @__PURE__ */ jsx(
|
|
722
|
-
|
|
723
|
-
children: extra
|
|
724
|
-
}),
|
|
725
|
-
exportButton
|
|
726
|
-
]
|
|
727
|
-
}) : /* @__PURE__ */ jsxs(DataTableToolbar, {
|
|
728
|
-
"data-size": controlSize,
|
|
729
|
-
children: [/* @__PURE__ */ jsxs(DataTableControls, { children: [
|
|
730
|
-
table.searchable && /* @__PURE__ */ jsx(DataTableSearch, { size: controlSize }),
|
|
731
|
-
/* @__PURE__ */ jsx(DataTableFilterPanel, {
|
|
873
|
+
children: t6
|
|
874
|
+
});
|
|
875
|
+
$[24] = T0;
|
|
876
|
+
$[25] = controlSize;
|
|
877
|
+
$[26] = t6;
|
|
878
|
+
$[27] = t7;
|
|
879
|
+
} else t7 = $[27];
|
|
880
|
+
const selectionBar = t7;
|
|
881
|
+
let t8;
|
|
882
|
+
if ($[28] !== controlSize || $[29] !== exportName || $[30] !== rows || $[31] !== table.columns || $[32] !== table.labels) {
|
|
883
|
+
t8 = exportName && /* @__PURE__ */ jsx(Tooltip, {
|
|
884
|
+
content: table.labels.export,
|
|
885
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
886
|
+
variant: "secondary",
|
|
732
887
|
size: controlSize,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
888
|
+
"aria-label": table.labels.export,
|
|
889
|
+
disabled: !rows.length,
|
|
890
|
+
onClick: () => downloadCsv(table.columns, rows, exportName),
|
|
891
|
+
children: /* @__PURE__ */ jsx(DownloadIcon, {})
|
|
892
|
+
})
|
|
893
|
+
});
|
|
894
|
+
$[28] = controlSize;
|
|
895
|
+
$[29] = exportName;
|
|
896
|
+
$[30] = rows;
|
|
897
|
+
$[31] = table.columns;
|
|
898
|
+
$[32] = table.labels;
|
|
899
|
+
$[33] = t8;
|
|
900
|
+
} else t8 = $[33];
|
|
901
|
+
const exportButton = t8;
|
|
902
|
+
const t9 = fill || void 0;
|
|
903
|
+
let t10;
|
|
904
|
+
if ($[34] !== columnsMenu || $[35] !== controlSize || $[36] !== exportButton || $[37] !== extra || $[38] !== filtersOpen || $[39] !== narrow || $[40] !== selecting || $[41] !== selectionBar || $[42] !== setFiltersOpen || $[43] !== table.searchable || $[44] !== toolbarShown) {
|
|
905
|
+
t10 = toolbarShown && (narrow ? /* @__PURE__ */ jsxs(DataTableToolbar, {
|
|
906
|
+
"data-layout": "narrow",
|
|
907
|
+
children: [selecting ? selectionBar : /* @__PURE__ */ jsxs(Fragment, { children: [table.searchable && /* @__PURE__ */ jsx(DataTableSearch, { size: controlSize }), /* @__PURE__ */ jsx(DataTableFilterSheet, {
|
|
737
908
|
size: controlSize,
|
|
738
|
-
|
|
739
|
-
}),
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
909
|
+
children: extra
|
|
910
|
+
})] }), exportButton]
|
|
911
|
+
}) : /* @__PURE__ */ jsxs(DataTableToolbar, {
|
|
912
|
+
"data-size": controlSize,
|
|
913
|
+
children: [
|
|
914
|
+
/* @__PURE__ */ jsxs(DataTableControls, {
|
|
915
|
+
inert: selecting,
|
|
916
|
+
children: [
|
|
917
|
+
table.searchable && /* @__PURE__ */ jsx(DataTableSearch, { size: controlSize }),
|
|
918
|
+
/* @__PURE__ */ jsx(DataTableFilterPanel, {
|
|
919
|
+
size: controlSize,
|
|
920
|
+
open: filtersOpen,
|
|
921
|
+
onOpenChange: setFiltersOpen
|
|
922
|
+
}),
|
|
923
|
+
/* @__PURE__ */ jsx(DataTableFilters, {
|
|
924
|
+
size: controlSize,
|
|
925
|
+
quick: true
|
|
926
|
+
}),
|
|
927
|
+
/* @__PURE__ */ jsx(DataTableClearFilters, {})
|
|
928
|
+
]
|
|
929
|
+
}),
|
|
930
|
+
selectionBar,
|
|
931
|
+
/* @__PURE__ */ jsxs(DataTableActions, { children: [
|
|
932
|
+
/* @__PURE__ */ jsx(DataTableLoading, {}),
|
|
933
|
+
extra,
|
|
934
|
+
columnsMenu && /* @__PURE__ */ jsx(DataTableColumnsMenu, { size: controlSize }),
|
|
935
|
+
exportButton
|
|
936
|
+
] })
|
|
937
|
+
]
|
|
938
|
+
}));
|
|
939
|
+
$[34] = columnsMenu;
|
|
940
|
+
$[35] = controlSize;
|
|
941
|
+
$[36] = exportButton;
|
|
942
|
+
$[37] = extra;
|
|
943
|
+
$[38] = filtersOpen;
|
|
944
|
+
$[39] = narrow;
|
|
945
|
+
$[40] = selecting;
|
|
946
|
+
$[41] = selectionBar;
|
|
947
|
+
$[42] = setFiltersOpen;
|
|
948
|
+
$[43] = table.searchable;
|
|
949
|
+
$[44] = toolbarShown;
|
|
950
|
+
$[45] = t10;
|
|
951
|
+
} else t10 = $[45];
|
|
758
952
|
let t11;
|
|
759
|
-
if ($[
|
|
760
|
-
t11 = /* @__PURE__ */ jsx(
|
|
953
|
+
if ($[46] !== narrow || $[47] !== setFiltersOpen || $[48] !== toolbarShown) {
|
|
954
|
+
t11 = toolbarShown && !narrow && /* @__PURE__ */ jsx(DataTableActiveFilters, { onEdit: () => setFiltersOpen(true) });
|
|
955
|
+
$[46] = narrow;
|
|
956
|
+
$[47] = setFiltersOpen;
|
|
957
|
+
$[48] = toolbarShown;
|
|
958
|
+
$[49] = t11;
|
|
959
|
+
} else t11 = $[49];
|
|
960
|
+
const t12 = fill ? maxHeight ?? "none" : maxHeight;
|
|
961
|
+
let t13;
|
|
962
|
+
if ($[50] !== density || $[51] !== empty || $[52] !== layout || $[53] !== onEndReached || $[54] !== stickyFirstColumn || $[55] !== stickyHeader || $[56] !== striped || $[57] !== t12 || $[58] !== tableProps || $[59] !== virtualized) {
|
|
963
|
+
t13 = /* @__PURE__ */ jsx(DataTableContent, {
|
|
761
964
|
density,
|
|
762
965
|
striped,
|
|
763
966
|
stickyHeader,
|
|
764
967
|
layout,
|
|
765
|
-
maxHeight:
|
|
968
|
+
maxHeight: t12,
|
|
766
969
|
virtualized,
|
|
767
970
|
onEndReached,
|
|
768
971
|
stickyFirstColumn,
|
|
769
972
|
empty,
|
|
770
|
-
tableProps
|
|
771
|
-
selectionActions: t10
|
|
973
|
+
tableProps
|
|
772
974
|
});
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
$[
|
|
779
|
-
$[
|
|
780
|
-
$[
|
|
781
|
-
$[
|
|
782
|
-
$[
|
|
783
|
-
$[
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
if ($[40] !== pageSizeOptions || $[41] !== showSummary || $[42] !== table.paginated) {
|
|
789
|
-
t12 = (showSummary || table.paginated) && /* @__PURE__ */ jsxs("div", {
|
|
975
|
+
$[50] = density;
|
|
976
|
+
$[51] = empty;
|
|
977
|
+
$[52] = layout;
|
|
978
|
+
$[53] = onEndReached;
|
|
979
|
+
$[54] = stickyFirstColumn;
|
|
980
|
+
$[55] = stickyHeader;
|
|
981
|
+
$[56] = striped;
|
|
982
|
+
$[57] = t12;
|
|
983
|
+
$[58] = tableProps;
|
|
984
|
+
$[59] = virtualized;
|
|
985
|
+
$[60] = t13;
|
|
986
|
+
} else t13 = $[60];
|
|
987
|
+
let t14;
|
|
988
|
+
if ($[61] !== pageSizeOptions || $[62] !== selecting || $[63] !== selectionBar || $[64] !== showSummary || $[65] !== showToolbar || $[66] !== table.paginated || $[67] !== toolbarShown) {
|
|
989
|
+
t14 = (showSummary || table.paginated || !toolbarShown && selecting) && /* @__PURE__ */ jsxs("div", {
|
|
790
990
|
className: "oui-data-table__footer",
|
|
791
|
-
children: [
|
|
991
|
+
children: [
|
|
992
|
+
showSummary && /* @__PURE__ */ jsx(DataTableSummary, {}),
|
|
993
|
+
!toolbarShown && selectionBar,
|
|
994
|
+
showToolbar && !toolbarShown && /* @__PURE__ */ jsx(DataTableLoading, {}),
|
|
995
|
+
/* @__PURE__ */ jsx(DataTablePagination, { pageSizeOptions })
|
|
996
|
+
]
|
|
792
997
|
});
|
|
793
|
-
$[
|
|
794
|
-
$[
|
|
795
|
-
$[
|
|
796
|
-
$[
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
998
|
+
$[61] = pageSizeOptions;
|
|
999
|
+
$[62] = selecting;
|
|
1000
|
+
$[63] = selectionBar;
|
|
1001
|
+
$[64] = showSummary;
|
|
1002
|
+
$[65] = showToolbar;
|
|
1003
|
+
$[66] = table.paginated;
|
|
1004
|
+
$[67] = toolbarShown;
|
|
1005
|
+
$[68] = t14;
|
|
1006
|
+
} else t14 = $[68];
|
|
1007
|
+
let t15;
|
|
1008
|
+
if ($[69] !== className || $[70] !== t10 || $[71] !== t11 || $[72] !== t13 || $[73] !== t14 || $[74] !== t9 || $[75] !== table) {
|
|
1009
|
+
t15 = /* @__PURE__ */ jsxs(DataTableRoot, {
|
|
801
1010
|
table,
|
|
802
1011
|
className,
|
|
803
|
-
"data-fill":
|
|
1012
|
+
"data-fill": t9,
|
|
804
1013
|
children: [
|
|
805
|
-
|
|
806
|
-
t8,
|
|
1014
|
+
t10,
|
|
807
1015
|
t11,
|
|
808
|
-
|
|
1016
|
+
t13,
|
|
1017
|
+
t14
|
|
809
1018
|
]
|
|
810
1019
|
});
|
|
811
|
-
$[
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
$[
|
|
815
|
-
$[
|
|
816
|
-
$[
|
|
817
|
-
$[
|
|
818
|
-
$[
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
return t13;
|
|
1020
|
+
$[69] = className;
|
|
1021
|
+
$[70] = t10;
|
|
1022
|
+
$[71] = t11;
|
|
1023
|
+
$[72] = t13;
|
|
1024
|
+
$[73] = t14;
|
|
1025
|
+
$[74] = t9;
|
|
1026
|
+
$[75] = table;
|
|
1027
|
+
$[76] = t15;
|
|
1028
|
+
} else t15 = $[76];
|
|
1029
|
+
return t15;
|
|
822
1030
|
}
|
|
823
1031
|
/**
|
|
824
1032
|
* `<DataTable data={…} columns={…} />` renders a complete table with search,
|
|
@@ -834,7 +1042,8 @@ function DataTableComponent(t0) {
|
|
|
834
1042
|
* (the "Filters" button and panel for the other filters),
|
|
835
1043
|
* `DataTable.ActiveFilters` (their tags), `DataTable.FilterSheet` (the phone
|
|
836
1044
|
* filter button and sheet), `DataTable.ClearFilters`, `DataTable.Actions`,
|
|
837
|
-
* `DataTable.ColumnsMenu`,
|
|
1045
|
+
* `DataTable.ColumnsMenu`, `DataTable.SelectionBar` (the selected rows' count
|
|
1046
|
+
* and actions, shown in the toolbar while rows are selected),
|
|
838
1047
|
* `DataTable.Loading`, `DataTable.Summary`, `DataTable.Content`,
|
|
839
1048
|
* `DataTable.Pagination`.
|
|
840
1049
|
*
|
|
@@ -858,6 +1067,7 @@ var DataTable = Object.assign(DataTableComponent, {
|
|
|
858
1067
|
Actions: DataTableActions,
|
|
859
1068
|
ClearFilters: DataTableClearFilters,
|
|
860
1069
|
ColumnsMenu: DataTableColumnsMenu,
|
|
1070
|
+
SelectionBar: DataTableSelectionBar,
|
|
861
1071
|
Loading: DataTableLoading,
|
|
862
1072
|
Summary: DataTableSummary,
|
|
863
1073
|
Content: DataTableContent,
|