@igne-agency/react-web-ui 0.3.1 → 0.5.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/README.md +32 -1
- package/dist/base.css +3 -0
- package/dist/components/accordion/accordion.css +24 -19
- package/dist/components/accordion/accordion.d.ts +19 -3
- package/dist/components/accordion/accordion.js +86 -32
- package/dist/components/accordion/accordion.module.js +8 -8
- package/dist/components/active-filters/active-filter-describers.d.ts +1 -1
- package/dist/components/active-filters/active-filter-describers.js +1 -1
- package/dist/components/active-filters/active-filters.d.ts +35 -2
- package/dist/components/active-filters/active-filters.js +57 -52
- package/dist/components/active-filters/index.js +2 -2
- package/dist/components/attachment-tile/attachment-preview.d.ts +11 -9
- package/dist/components/attachment-tile/attachment-preview.js +102 -68
- package/dist/components/attachment-tile/attachment-tile.css +22 -13
- package/dist/components/attachment-tile/attachment-tile.d.ts +51 -6
- package/dist/components/attachment-tile/attachment-tile.js +209 -85
- package/dist/components/attachment-tile/attachment-tile.module.js +10 -10
- package/dist/components/attachment-tile/index.d.ts +1 -1
- package/dist/components/attachment-tile/index.js +2 -2
- package/dist/components/avatar/avatar.d.ts +5 -5
- package/dist/components/avatar/avatar.js +64 -37
- package/dist/components/avatar-group/avatar-group.js +2 -2
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +22 -7
- package/dist/components/breadcrumbs/breadcrumbs.js +189 -170
- package/dist/components/button/button.d.ts +2 -3
- package/dist/components/button/button.js +58 -77
- package/dist/components/button/close-button.d.ts +4 -2
- package/dist/components/button/close-button.js +9 -9
- package/dist/components/checkbox-field/checkbox-field.d.ts +17 -3
- package/dist/components/checkbox-field/checkbox-field.js +108 -131
- package/dist/components/checkbox-field/checkbox.css +26 -34
- package/dist/components/checkbox-field/checkbox.d.ts +51 -8
- package/dist/components/checkbox-field/checkbox.js +221 -57
- package/dist/components/checkbox-field/checkbox.module.js +6 -8
- package/dist/components/checkbox-field/index.d.ts +0 -1
- package/dist/components/checkbox-field/index.js +1 -2
- package/dist/components/checkbox-field/tsf-checkbox-field.d.ts +2 -2
- package/dist/components/checkbox-group-field/checkbox-group-field.d.ts +4 -1
- package/dist/components/checkbox-group-field/checkbox-group-field.js +54 -50
- package/dist/components/checkbox-group-field/checkbox-group.d.ts +7 -2
- package/dist/components/checkbox-group-field/checkbox-group.js +8 -3
- package/dist/components/collapsible/collapsible.css +23 -18
- package/dist/components/collapsible/collapsible.d.ts +18 -3
- package/dist/components/collapsible/collapsible.js +85 -32
- package/dist/components/collapsible/collapsible.module.js +7 -7
- package/dist/components/combobox-field/combobox-field.d.ts +9 -1
- package/dist/components/combobox-field/combobox-field.js +195 -175
- package/dist/components/combobox-field/combobox-items.d.ts +2 -2
- package/dist/components/combobox-field/combobox-items.js +4 -4
- package/dist/components/combobox-field/combobox.css +99 -96
- package/dist/components/combobox-field/combobox.d.ts +94 -15
- package/dist/components/combobox-field/combobox.js +484 -159
- package/dist/components/combobox-field/combobox.module.js +21 -21
- package/dist/components/combobox-field/index.d.ts +0 -1
- package/dist/components/combobox-field/selection.d.ts +4 -1
- package/dist/components/combobox-field/value-state-view.css +7 -3
- package/dist/components/combobox-field/value-state-view.d.ts +4 -2
- package/dist/components/combobox-field/value-state-view.js +15 -15
- package/dist/components/combobox-field/value-state-view.module.js +6 -4
- package/dist/components/composer/composer-attachments.d.ts +11 -3
- package/dist/components/composer/composer-attachments.js +61 -47
- package/dist/components/composer/composer-editor.d.ts +2 -1
- package/dist/components/composer/composer-editor.js +79 -71
- package/dist/components/composer/composer-mentions.js +2 -2
- package/dist/components/composer/composer.d.ts +42 -21
- package/dist/components/composer/composer.js +201 -58
- package/dist/components/composer/mention-text.js +3 -3
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +8 -7
- package/dist/components/confirm-dialog/confirm-dialog.js +10 -9
- package/dist/components/conversation/conversation.context.d.ts +0 -5
- package/dist/components/conversation/conversation.d.ts +63 -29
- package/dist/components/conversation/conversation.js +193 -82
- package/dist/components/conversation/index.d.ts +1 -1
- package/dist/components/date-field/date-field.d.ts +10 -4
- package/dist/components/date-field/date-field.js +57 -43
- package/dist/components/date-field/date-input.d.ts +20 -3
- package/dist/components/date-field/date-input.js +28 -13
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-field/tsf-date-field.d.ts +1 -1
- package/dist/components/date-field/tsf-date-field.js +1 -1
- package/dist/components/date-range-field/date-range-field.d.ts +8 -4
- package/dist/components/date-range-field/date-range-field.js +57 -45
- package/dist/components/date-range-field/date-range-input.d.ts +20 -3
- package/dist/components/date-range-field/date-range-input.js +27 -12
- package/dist/components/date-range-field/tsf-date-range-field.d.ts +1 -1
- package/dist/components/date-range-field/tsf-date-range-field.js +1 -1
- package/dist/components/detail-list/detail-list.d.ts +28 -27
- package/dist/components/detail-list/detail-list.js +177 -121
- package/dist/components/dialog/dialog.d.ts +47 -27
- package/dist/components/dialog/dialog.js +101 -38
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.d.ts +48 -30
- package/dist/components/drawer/drawer.js +113 -41
- package/dist/components/email-field/email-field.d.ts +5 -3
- package/dist/components/email-field/email-field.js +1 -3
- package/dist/components/email-field/tsf-email-field.d.ts +3 -2
- package/dist/components/empty-message/empty-message.d.ts +3 -3
- package/dist/components/empty-message/empty-message.js +3 -3
- package/dist/components/error-boundary/error-boundary.d.ts +5 -2
- package/dist/components/error-boundary/error-boundary.js +2 -3
- package/dist/components/error-message/error-message.d.ts +1 -1
- package/dist/components/error-message/error-message.js +1 -1
- package/dist/components/error-text/error-text.js +3 -3
- package/dist/components/field/field.d.ts +5 -5
- package/dist/components/field/field.js +9 -9
- package/dist/components/field/index.js +2 -2
- package/dist/components/field/input-parts.js +1 -1
- package/dist/components/field-placeholder/field-placeholder.d.ts +4 -1
- package/dist/components/field-placeholder/field-placeholder.js +41 -26
- package/dist/components/fieldset/field-group.js +1 -1
- package/dist/components/fieldset/fieldset-root.js +1 -1
- package/dist/components/fieldset/fieldset.js +1 -1
- package/dist/components/file-field/file-field.css +19 -15
- package/dist/components/file-field/file-field.d.ts +10 -1
- package/dist/components/file-field/file-field.js +130 -109
- package/dist/components/file-field/file-field.module.js +6 -4
- package/dist/components/file-field/file-input.d.ts +32 -9
- package/dist/components/file-field/file-input.js +94 -74
- package/dist/components/filter-bar/filter-bar.d.ts +79 -51
- package/dist/components/filter-bar/filter-bar.js +552 -216
- package/dist/components/form/form.d.ts +4 -6
- package/dist/components/form/form.js +6 -8
- package/dist/components/icon/icon.d.ts +5 -10
- package/dist/components/icon/icon.js +4 -6
- package/dist/components/link/link.js +1 -1
- package/dist/components/link-button/link-button.d.ts +1 -2
- package/dist/components/link-button/link-button.js +12 -22
- package/dist/components/loading-message/loading-message.d.ts +2 -2
- package/dist/components/loading-message/loading-message.js +1 -1
- package/dist/components/locale-provider/locale-provider.js +1 -1
- package/dist/components/menu/menu.d.ts +40 -22
- package/dist/components/menu/menu.js +100 -40
- package/dist/components/nav/nav-context.d.ts +0 -1
- package/dist/components/nav/nav-context.js +1 -2
- package/dist/components/nav/nav-item-view.d.ts +7 -7
- package/dist/components/nav/nav-item-view.js +27 -51
- package/dist/components/nav/nav.css +72 -60
- package/dist/components/nav/nav.d.ts +15 -8
- package/dist/components/nav/nav.js +105 -52
- package/dist/components/nav/nav.module.js +14 -14
- package/dist/components/number-field/number-field.d.ts +7 -1
- package/dist/components/number-field/number-field.js +98 -82
- package/dist/components/number-field/number-input.d.ts +53 -4
- package/dist/components/number-field/number-input.js +68 -21
- package/dist/components/number-field/tsf-number-field.d.ts +1 -1
- package/dist/components/number-field/tsf-number-field.js +1 -1
- package/dist/components/otp-field/otp-input.d.ts +25 -0
- package/dist/components/otp-field/otp-input.js +26 -1
- package/dist/components/pagination/pagination.d.ts +82 -23
- package/dist/components/pagination/pagination.js +656 -229
- package/dist/components/password-field/password-field.d.ts +7 -1
- package/dist/components/password-field/password-field.js +117 -126
- package/dist/components/password-field/password-strength.js +1 -1
- package/dist/components/password-field/tsf-password-field.d.ts +1 -1
- package/dist/components/password-field/tsf-password-field.js +1 -1
- package/dist/components/photo-field/photo-field.d.ts +17 -3
- package/dist/components/photo-field/photo-field.js +168 -89
- package/dist/components/photo-field/photo-input-context.d.ts +25 -0
- package/dist/components/photo-field/photo-input-context.js +14 -0
- package/dist/components/photo-field/photo-input.d.ts +58 -23
- package/dist/components/photo-field/photo-input.js +459 -261
- package/dist/components/popover/popover.d.ts +55 -23
- package/dist/components/popover/popover.js +205 -61
- package/dist/components/radio-group-field/radio-group.js +1 -1
- package/dist/components/search-field/search-field.d.ts +7 -5
- package/dist/components/search-field/search-field.js +4 -6
- package/dist/components/search-field/tsf-search-field.d.ts +1 -1
- package/dist/components/search-field/tsf-search-field.js +1 -1
- package/dist/components/segmented-control-field/segmented-control.js +1 -1
- package/dist/components/select-field/select-field.d.ts +7 -1
- package/dist/components/select-field/select-field.js +151 -139
- package/dist/components/select-field/select.d.ts +28 -6
- package/dist/components/select-field/select.js +234 -149
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/spinner/spinner.css +47 -1
- package/dist/components/spinner/spinner.js +28 -11
- package/dist/components/spinner/spinner.module.js +18 -3
- package/dist/components/stale/stale.d.ts +17 -21
- package/dist/components/stale/stale.js +307 -129
- package/dist/components/status-message/status-message.css +22 -21
- package/dist/components/status-message/status-message.d.ts +10 -5
- package/dist/components/status-message/status-message.js +20 -24
- package/dist/components/status-message/status-message.module.js +6 -6
- package/dist/components/status-message/status-preset.d.ts +4 -5
- package/dist/components/status-message/status-preset.js +3 -3
- package/dist/components/switch-field/switch.js +1 -1
- package/dist/components/tabs/tabs.d.ts +51 -28
- package/dist/components/tabs/tabs.js +219 -144
- package/dist/components/tag/tag.css +23 -21
- package/dist/components/tag/tag.d.ts +17 -15
- package/dist/components/tag/tag.js +140 -65
- package/dist/components/tag/tag.module.js +3 -3
- package/dist/components/tag-group/tag-group.css +30 -27
- package/dist/components/tag-group/tag-group.d.ts +10 -4
- package/dist/components/tag-group/tag-group.js +47 -35
- package/dist/components/tag-group/tag-group.module.js +4 -4
- package/dist/components/text-field/text-field.d.ts +14 -3
- package/dist/components/text-field/text-field.js +154 -133
- package/dist/components/text-field/text-input.d.ts +89 -3
- package/dist/components/text-field/text-input.js +184 -70
- package/dist/components/textarea-field/textarea.js +1 -1
- package/dist/components/time-field/time-input.d.ts +6 -0
- package/dist/components/time-field/time-input.js +6 -0
- package/dist/components/time-zone-provider/time-zone-provider.js +1 -1
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toast/toast-provider.css +38 -34
- package/dist/components/toast/toast-provider.d.ts +65 -3
- package/dist/components/toast/toast-provider.js +313 -148
- package/dist/components/toast/toast-provider.module.js +11 -17
- package/dist/components/toast/toast.d.ts +5 -1
- package/dist/components/toast/toast.js +2 -1
- package/dist/components/toggle-group-field/toggle-group.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +6 -6
- package/dist/components/tooltip/tooltip.js +7 -7
- package/dist/data-table/data-table-content.d.ts +18 -10
- package/dist/data-table/data-table-content.js +145 -290
- package/dist/data-table/data-table-context.d.ts +4 -2
- package/dist/data-table/data-table-context.js +1 -1
- package/dist/data-table/data-table-parts.d.ts +99 -0
- package/dist/data-table/data-table-parts.js +1182 -0
- package/dist/data-table/data-table-selection.d.ts +7 -3
- package/dist/data-table/data-table-selection.js +62 -37
- package/dist/data-table/data-table.css +100 -95
- package/dist/data-table/data-table.d.ts +49 -25
- package/dist/data-table/data-table.js +95 -83
- package/dist/data-table/data-table.module.js +34 -34
- package/dist/data-table/index.d.ts +2 -1
- package/dist/data-table/index.js +2 -1
- package/dist/data-view/use-data-view.d.ts +2 -2
- package/dist/data-view/use-data-view.js +2 -2
- package/dist/index.js +7 -8
- package/dist/lib/calendar/calendar-navigation.d.ts +9 -2
- package/dist/lib/calendar/calendar-navigation.js +72 -73
- package/dist/lib/calendar/calendar-year.d.ts +4 -3
- package/dist/lib/calendar/calendar-year.js +137 -156
- package/dist/lib/calendar/temporal.d.ts +18 -12
- package/dist/lib/calendar/temporal.js +191 -147
- package/dist/lib/table-storage.d.ts +2 -2
- package/dist/lib/table-storage.js +2 -2
- package/dist/lib/unsaved-changes/leave-guard.js +1 -1
- package/dist/terrazzo/index.d.ts +20 -3
- package/dist/terrazzo/index.js +110 -7
- package/dist/tokens.css +94 -71
- package/package.json +4 -3
- package/tokens/ref.tokens.json +0 -30
- package/tokens/sys.tokens.json +0 -7
- package/dist/assets/spinner.js +0 -28
- package/dist/components/checkbox-field/checkbox-glyph.d.ts +0 -12
- package/dist/components/checkbox-field/checkbox-glyph.js +0 -38
- package/dist/components/combobox-field/combobox-popup-body.d.ts +0 -34
- package/dist/components/combobox-field/combobox-popup-body.js +0 -142
- package/dist/components/conversation/conversation.context.js +0 -4
- package/dist/vendor/@material-design-icons/svg/outlined/add.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_downward.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_forward.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_upward.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/attach_file.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/block.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/calendar_today.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/check.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/check_circle.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/chevron_left.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/chevron_right.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/close.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/content_copy.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/date_range.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/description.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/download.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/error.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/error_outline.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/expand_less.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/expand_more.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/filter_alt.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/filter_alt_off.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/first_page.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/info.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/keyboard_arrow_down.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/last_page.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/mail.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/more_horiz.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/photo_camera.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/remove.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/restart_alt.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/restore.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/search.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/unfold_more.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/upload_file.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/visibility.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/visibility_off.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/warning_amber.js +0 -12
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Pagination } from "../components/pagination/pagination.js";
|
|
2
2
|
import { DataTableContent } from "./data-table-content.js";
|
|
3
|
+
import { Body, Cell, ErrorMessage, Frame, Head, HeaderCell, HeaderRow, LoadingCaption, PlaceholderRows, RefreshFailed, Row, Scroller, SortButton, StaleOverlay, StateRow, SubRow, Table } from "./data-table-parts.js";
|
|
3
4
|
import { DataTableContext, useDataTable } from "./data-table-context.js";
|
|
4
5
|
import { DataTableSelectionBar } from "./data-table-selection.js";
|
|
5
6
|
import { PAGE_SIZE_OPTIONS } from "./table-features.js";
|
|
6
7
|
import data_table_module_default from "./data-table.module.js";
|
|
7
8
|
import { c } from "react/compiler-runtime";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
11
|
// src/data-table/data-table.tsx
|
|
12
|
+
/** Holds the table instance and the injected query state for the parts inside it. */
|
|
11
13
|
var Root = (t0) => {
|
|
12
14
|
const $ = c(14);
|
|
13
15
|
const { table, selection, status, isFetching: t1, onRetry, children, className } = t0;
|
|
@@ -16,6 +18,7 @@ var Root = (t0) => {
|
|
|
16
18
|
if ($[0] !== isFetching || $[1] !== onRetry || $[2] !== selection || $[3] !== status || $[4] !== table) {
|
|
17
19
|
t2 = {
|
|
18
20
|
table,
|
|
21
|
+
sorting: table.state.sorting,
|
|
19
22
|
selection,
|
|
20
23
|
status,
|
|
21
24
|
isFetching,
|
|
@@ -79,109 +82,94 @@ var Toolbar = (t0) => {
|
|
|
79
82
|
return t2;
|
|
80
83
|
};
|
|
81
84
|
/**
|
|
82
|
-
* The
|
|
83
|
-
* `manualPagination` + server `rowCount`)
|
|
84
|
-
*
|
|
85
|
+
* The pager driven by the instance's pagination API (built with
|
|
86
|
+
* `manualPagination` + server `rowCount`): the ready-made `Pagination` from its
|
|
87
|
+
* labels and icons, or a `Pagination.Root` holding the parts it is given. The
|
|
88
|
+
* page sizes come from the table's `meta.pageSizeOptions`, and picking one
|
|
89
|
+
* returns to the first page.
|
|
85
90
|
*/
|
|
86
|
-
var DataTablePagination = (
|
|
87
|
-
const $ = c(
|
|
88
|
-
const { pageSizeLabel, indexLabel, firstLabel, previousLabel, nextLabel, lastLabel, className } = t0;
|
|
91
|
+
var DataTablePagination = (props) => {
|
|
92
|
+
const $ = c(18);
|
|
89
93
|
const { table } = useDataTable();
|
|
90
94
|
const { pageIndex, pageSize } = table.state.pagination;
|
|
95
|
+
let t0;
|
|
96
|
+
if ($[0] !== props.className) {
|
|
97
|
+
t0 = clsx(data_table_module_default.pagination, props.className);
|
|
98
|
+
$[0] = props.className;
|
|
99
|
+
$[1] = t0;
|
|
100
|
+
} else t0 = $[1];
|
|
91
101
|
let t1;
|
|
92
|
-
if ($[0] !== className) {
|
|
93
|
-
t1 = clsx(data_table_module_default.pagination, className);
|
|
94
|
-
$[0] = className;
|
|
95
|
-
$[1] = t1;
|
|
96
|
-
} else t1 = $[1];
|
|
97
|
-
let t2;
|
|
98
102
|
if ($[2] !== table) {
|
|
99
|
-
|
|
103
|
+
t1 = table.getPageCount();
|
|
100
104
|
$[2] = table;
|
|
101
|
-
$[3] =
|
|
102
|
-
} else
|
|
103
|
-
const
|
|
104
|
-
const
|
|
105
|
+
$[3] = t1;
|
|
106
|
+
} else t1 = $[3];
|
|
107
|
+
const t2 = Math.max(t1, 1);
|
|
108
|
+
const t3 = table.options.meta?.pageSizeOptions ?? PAGE_SIZE_OPTIONS;
|
|
109
|
+
let t4;
|
|
105
110
|
let t5;
|
|
106
|
-
let t6;
|
|
107
111
|
if ($[4] !== table) {
|
|
108
|
-
|
|
112
|
+
t4 = (next) => {
|
|
109
113
|
table.setPageIndex(next);
|
|
110
114
|
};
|
|
111
|
-
|
|
115
|
+
t5 = (next_0) => {
|
|
112
116
|
table.setPagination({
|
|
113
117
|
pageIndex: 0,
|
|
114
118
|
pageSize: next_0
|
|
115
119
|
});
|
|
116
120
|
};
|
|
117
121
|
$[4] = table;
|
|
118
|
-
$[5] =
|
|
119
|
-
$[6] =
|
|
122
|
+
$[5] = t4;
|
|
123
|
+
$[6] = t5;
|
|
120
124
|
} else {
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
t4 = $[5];
|
|
126
|
+
t5 = $[6];
|
|
123
127
|
}
|
|
124
|
-
let
|
|
125
|
-
if ($[7] !==
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
$[8] = t7;
|
|
129
|
-
} else t7 = $[8];
|
|
130
|
-
let t8;
|
|
131
|
-
if ($[9] !== indexLabel) {
|
|
132
|
-
t8 = /* @__PURE__ */ jsx(Pagination.Index, { label: indexLabel });
|
|
133
|
-
$[9] = indexLabel;
|
|
134
|
-
$[10] = t8;
|
|
135
|
-
} else t8 = $[10];
|
|
136
|
-
let t9;
|
|
137
|
-
if ($[11] !== firstLabel || $[12] !== lastLabel || $[13] !== nextLabel || $[14] !== previousLabel) {
|
|
138
|
-
t9 = /* @__PURE__ */ jsx(Pagination.Controls, {
|
|
139
|
-
firstLabel,
|
|
140
|
-
previousLabel,
|
|
141
|
-
nextLabel,
|
|
142
|
-
lastLabel
|
|
143
|
-
});
|
|
144
|
-
$[11] = firstLabel;
|
|
145
|
-
$[12] = lastLabel;
|
|
146
|
-
$[13] = nextLabel;
|
|
147
|
-
$[14] = previousLabel;
|
|
148
|
-
$[15] = t9;
|
|
149
|
-
} else t9 = $[15];
|
|
150
|
-
let t10;
|
|
151
|
-
if ($[16] !== pageIndex || $[17] !== pageSize || $[18] !== t1 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 || $[25] !== t9) {
|
|
152
|
-
t10 = /* @__PURE__ */ jsxs(Pagination.Root, {
|
|
153
|
-
className: t1,
|
|
128
|
+
let t6;
|
|
129
|
+
if ($[7] !== pageIndex || $[8] !== pageSize || $[9] !== t0 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t5) {
|
|
130
|
+
t6 = {
|
|
131
|
+
className: t0,
|
|
154
132
|
pageIndex,
|
|
155
|
-
pageCount:
|
|
133
|
+
pageCount: t2,
|
|
156
134
|
pageSize,
|
|
157
|
-
pageSizes:
|
|
158
|
-
onPageIndexChange:
|
|
159
|
-
onPageSizeChange:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
135
|
+
pageSizes: t3,
|
|
136
|
+
onPageIndexChange: t4,
|
|
137
|
+
onPageSizeChange: t5
|
|
138
|
+
};
|
|
139
|
+
$[7] = pageIndex;
|
|
140
|
+
$[8] = pageSize;
|
|
141
|
+
$[9] = t0;
|
|
142
|
+
$[10] = t2;
|
|
143
|
+
$[11] = t3;
|
|
144
|
+
$[12] = t4;
|
|
145
|
+
$[13] = t5;
|
|
146
|
+
$[14] = t6;
|
|
147
|
+
} else t6 = $[14];
|
|
148
|
+
const bound = t6;
|
|
149
|
+
let t7;
|
|
150
|
+
if ($[15] !== bound || $[16] !== props) {
|
|
151
|
+
t7 = props.indexLabel === void 0 ? /* @__PURE__ */ jsx(Pagination.Root, {
|
|
152
|
+
...props,
|
|
153
|
+
...bound
|
|
154
|
+
}) : /* @__PURE__ */ jsx(Pagination, {
|
|
155
|
+
...props,
|
|
156
|
+
...bound
|
|
165
157
|
});
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
$[21] = t5;
|
|
172
|
-
$[22] = t6;
|
|
173
|
-
$[23] = t7;
|
|
174
|
-
$[24] = t8;
|
|
175
|
-
$[25] = t9;
|
|
176
|
-
$[26] = t10;
|
|
177
|
-
} else t10 = $[26];
|
|
178
|
-
return t10;
|
|
158
|
+
$[15] = bound;
|
|
159
|
+
$[16] = props;
|
|
160
|
+
$[17] = t7;
|
|
161
|
+
} else t7 = $[17];
|
|
162
|
+
return t7;
|
|
179
163
|
};
|
|
180
164
|
/**
|
|
181
165
|
* Composite data table over a TanStack Table instance. `Root` holds the
|
|
182
166
|
* instance and the injected query state in context; the parts lay it out:
|
|
183
|
-
* `Toolbar`, `SelectionBar`, `Content` and `Pagination`.
|
|
184
|
-
*
|
|
167
|
+
* `Toolbar`, `SelectionBar`, `Content` and `Pagination`. `Content` is the
|
|
168
|
+
* whole table; where a table needs other markup, compose its parts instead:
|
|
169
|
+
* `RefreshFailed`, then a `Frame` holding a `Scroller` and a `StaleOverlay`,
|
|
170
|
+
* the `Scroller` holding the `Table` and its rows and cells, with
|
|
171
|
+
* `useDataTableView` to pick the body. A nested sub-table gets its own
|
|
172
|
+
* `DataTable.Root`, with its own instance and context.
|
|
185
173
|
*
|
|
186
174
|
* @example
|
|
187
175
|
* <DataTable.Root table={table} status={query.status} isFetching={query.isFetching}>
|
|
@@ -189,11 +177,13 @@ var DataTablePagination = (t0) => {
|
|
|
189
177
|
* <FilterBar.Root filters={filters}>…</FilterBar.Root>
|
|
190
178
|
* </DataTable.Toolbar>
|
|
191
179
|
* <DataTable.Content
|
|
192
|
-
* emptyState="No
|
|
193
|
-
* errorLabel="The
|
|
194
|
-
* loadingLabel="Loading
|
|
180
|
+
* emptyState="No invoices yet."
|
|
181
|
+
* errorLabel="The invoices could not be loaded."
|
|
182
|
+
* loadingLabel="Loading invoices"
|
|
195
183
|
* slowLabel="This is taking longer than usual."
|
|
196
184
|
* retryLabel="Try again"
|
|
185
|
+
* sortAscendingIcon={<ArrowUpwardIcon />}
|
|
186
|
+
* sortDescendingIcon={<ArrowDownwardIcon />}
|
|
197
187
|
* />
|
|
198
188
|
* <DataTable.Pagination
|
|
199
189
|
* pageSizeLabel="Rows per page"
|
|
@@ -202,6 +192,11 @@ var DataTablePagination = (t0) => {
|
|
|
202
192
|
* previousLabel="Previous page"
|
|
203
193
|
* nextLabel="Next page"
|
|
204
194
|
* lastLabel="Last page"
|
|
195
|
+
* firstIcon={<FirstPageIcon />}
|
|
196
|
+
* previousIcon={<ChevronLeftIcon />}
|
|
197
|
+
* nextIcon={<ChevronRightIcon />}
|
|
198
|
+
* lastIcon={<LastPageIcon />}
|
|
199
|
+
* checkIcon={<CheckIcon />}
|
|
205
200
|
* />
|
|
206
201
|
* </DataTable.Root>
|
|
207
202
|
*/
|
|
@@ -210,6 +205,23 @@ var DataTable = {
|
|
|
210
205
|
Toolbar,
|
|
211
206
|
Content: DataTableContent,
|
|
212
207
|
Pagination: DataTablePagination,
|
|
213
|
-
SelectionBar: DataTableSelectionBar
|
|
208
|
+
SelectionBar: DataTableSelectionBar,
|
|
209
|
+
RefreshFailed,
|
|
210
|
+
Frame,
|
|
211
|
+
Scroller,
|
|
212
|
+
StaleOverlay,
|
|
213
|
+
Table,
|
|
214
|
+
LoadingCaption,
|
|
215
|
+
Head,
|
|
216
|
+
HeaderRow,
|
|
217
|
+
HeaderCell,
|
|
218
|
+
SortButton,
|
|
219
|
+
Body,
|
|
220
|
+
Row,
|
|
221
|
+
Cell,
|
|
222
|
+
SubRow,
|
|
223
|
+
PlaceholderRows,
|
|
224
|
+
StateRow,
|
|
225
|
+
ErrorMessage
|
|
214
226
|
};
|
|
215
227
|
export { DataTable };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import './data-table.css';// src/data-table/data-table.module.scss
|
|
2
|
-
var root = "
|
|
3
|
-
var toolbar = "
|
|
4
|
-
var scrollFrame = "
|
|
5
|
-
var stale = "
|
|
6
|
-
var staleOverlay = "
|
|
7
|
-
var contentWrap = "
|
|
8
|
-
var th = "
|
|
9
|
-
var edgeStart = "
|
|
10
|
-
var edgeEnd = "
|
|
11
|
-
var refreshFailed = "
|
|
12
|
-
var table = "
|
|
13
|
-
var thead = "
|
|
14
|
-
var sortToggle = "
|
|
15
|
-
var
|
|
16
|
-
var td = "
|
|
17
|
-
var row = "
|
|
18
|
-
var subRow = "
|
|
19
|
-
var skeletonBar = "
|
|
20
|
-
var busyCaption = "
|
|
21
|
-
var stateCell = "
|
|
22
|
-
var errorState = "
|
|
23
|
-
var pagination = "
|
|
24
|
-
var selectionContainer = "
|
|
25
|
-
var selectionBar = "
|
|
26
|
-
var selectionSummary = "
|
|
27
|
-
var selectionTotal = "
|
|
28
|
-
var selectionCount = "
|
|
29
|
-
var selectionMeasure = "
|
|
30
|
-
var selectionStatus = "
|
|
31
|
-
var selectionActions = "
|
|
32
|
-
var selectionSelectAll = "
|
|
33
|
-
var selectionBulk = "
|
|
2
|
+
var root = "_root_k21i7_3";
|
|
3
|
+
var toolbar = "_toolbar_k21i7_77";
|
|
4
|
+
var scrollFrame = "_scrollFrame_k21i7_84";
|
|
5
|
+
var stale = "_stale_k21i7_92";
|
|
6
|
+
var staleOverlay = "_staleOverlay_k21i7_98";
|
|
7
|
+
var contentWrap = "_contentWrap_k21i7_101";
|
|
8
|
+
var th = "_th_k21i7_132";
|
|
9
|
+
var edgeStart = "_edgeStart_k21i7_1";
|
|
10
|
+
var edgeEnd = "_edgeEnd_k21i7_1";
|
|
11
|
+
var refreshFailed = "_refreshFailed_k21i7_165";
|
|
12
|
+
var table = "_table_k21i7_177";
|
|
13
|
+
var thead = "_thead_k21i7_185";
|
|
14
|
+
var sortToggle = "_sortToggle_k21i7_200";
|
|
15
|
+
var sortIcon = "_sortIcon_k21i7_251";
|
|
16
|
+
var td = "_td_k21i7_260";
|
|
17
|
+
var row = "_row_k21i7_285";
|
|
18
|
+
var subRow = "_subRow_k21i7_307";
|
|
19
|
+
var skeletonBar = "_skeletonBar_k21i7_316";
|
|
20
|
+
var busyCaption = "_busyCaption_k21i7_319";
|
|
21
|
+
var stateCell = "_stateCell_k21i7_327";
|
|
22
|
+
var errorState = "_errorState_k21i7_332";
|
|
23
|
+
var pagination = "_pagination_k21i7_335";
|
|
24
|
+
var selectionContainer = "_selectionContainer_k21i7_339";
|
|
25
|
+
var selectionBar = "_selectionBar_k21i7_343";
|
|
26
|
+
var selectionSummary = "_selectionSummary_k21i7_413";
|
|
27
|
+
var selectionTotal = "_selectionTotal_k21i7_428";
|
|
28
|
+
var selectionCount = "_selectionCount_k21i7_429";
|
|
29
|
+
var selectionMeasure = "_selectionMeasure_k21i7_430";
|
|
30
|
+
var selectionStatus = "_selectionStatus_k21i7_462";
|
|
31
|
+
var selectionActions = "_selectionActions_k21i7_470";
|
|
32
|
+
var selectionSelectAll = "_selectionSelectAll_k21i7_500";
|
|
33
|
+
var selectionBulk = "_selectionBulk_k21i7_503";
|
|
34
34
|
var data_table_module_default = {
|
|
35
35
|
root,
|
|
36
36
|
toolbar,
|
|
@@ -45,7 +45,7 @@ var data_table_module_default = {
|
|
|
45
45
|
table,
|
|
46
46
|
thead,
|
|
47
47
|
sortToggle,
|
|
48
|
-
|
|
48
|
+
sortIcon,
|
|
49
49
|
td,
|
|
50
50
|
row,
|
|
51
51
|
subRow,
|
|
@@ -65,4 +65,4 @@ var data_table_module_default = {
|
|
|
65
65
|
selectionSelectAll,
|
|
66
66
|
selectionBulk
|
|
67
67
|
};
|
|
68
|
-
export { busyCaption, contentWrap, data_table_module_default as default, edgeEnd, edgeStart, errorState, pagination, refreshFailed, root, row, scrollFrame, selectionActions, selectionBar, selectionBulk, selectionContainer, selectionCount, selectionMeasure, selectionSelectAll, selectionStatus, selectionSummary, selectionTotal, skeletonBar,
|
|
68
|
+
export { busyCaption, contentWrap, data_table_module_default as default, edgeEnd, edgeStart, errorState, pagination, refreshFailed, root, row, scrollFrame, selectionActions, selectionBar, selectionBulk, selectionContainer, selectionCount, selectionMeasure, selectionSelectAll, selectionStatus, selectionSummary, selectionTotal, skeletonBar, sortIcon, sortToggle, stale, staleOverlay, stateCell, subRow, table, td, th, thead, toolbar };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./data-table.tsx";
|
|
2
2
|
export type { DataTableContentProps } from "./data-table-content.tsx";
|
|
3
3
|
export { type DataTableState, useDataTable, } from "./data-table-context.tsx";
|
|
4
|
+
export { type DataTableBodyProps, type DataTableCellProps, type DataTableErrorMessageProps, type DataTableFrameProps, type DataTableHeadProps, type DataTableHeaderCellProps, type DataTableHeaderRowProps, type DataTableLoadingCaptionProps, type DataTableRefreshFailedProps, type DataTableRowProps, type DataTableScrollerProps, type DataTableSortButtonProps, type DataTableStateRowProps, type DataTableSubRowProps, type DataTableTableProps, useDataTableView, } from "./data-table-parts.tsx";
|
|
4
5
|
export { type DataTableSelectionBarProps, type SelectionColumnOptions, selectionColumn, } from "./data-table-selection.tsx";
|
|
5
|
-
export type { DataTableStatus } from "./resolve-view.ts";
|
|
6
|
+
export type { DataTableStatus, ResolvedView, TableView, } from "./resolve-view.ts";
|
|
6
7
|
export * from "./table-features.ts";
|
package/dist/data-table/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataTable } from "./data-table.js";
|
|
2
2
|
import { useDataTable } from "./data-table-context.js";
|
|
3
|
+
import { useDataTableView } from "./data-table-parts.js";
|
|
3
4
|
import { selectionColumn } from "./data-table-selection.js";
|
|
4
5
|
import { EMPTY_ROWS, PAGE_SIZE_OPTIONS, dataTableFeatures } from "./table-features.js";
|
|
5
|
-
export { DataTable, EMPTY_ROWS, PAGE_SIZE_OPTIONS, dataTableFeatures, selectionColumn, useDataTable };
|
|
6
|
+
export { DataTable, EMPTY_ROWS, PAGE_SIZE_OPTIONS, dataTableFeatures, selectionColumn, useDataTable, useDataTableView };
|
|
@@ -69,11 +69,11 @@ export type DataView<TFilters extends object, TRow extends RowData, TQueryData,
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* const { filters, table, query, selection } = useDataView({
|
|
72
|
-
* tableId: "
|
|
72
|
+
* tableId: "invoices",
|
|
73
73
|
* initialFilters: {},
|
|
74
74
|
* columns,
|
|
75
75
|
* queryOptions: ({ filters, search, pagination, sorting }) =>
|
|
76
|
-
*
|
|
76
|
+
* invoicesQuery({ filters, search, pagination, sorting }),
|
|
77
77
|
* getRowId: row => row.id,
|
|
78
78
|
* getRows: data => data.rows,
|
|
79
79
|
* getRowCount: data => data.totalCount,
|
|
@@ -22,11 +22,11 @@ var DEFAULT_PAGINATION = {
|
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* const { filters, table, query, selection } = useDataView({
|
|
25
|
-
* tableId: "
|
|
25
|
+
* tableId: "invoices",
|
|
26
26
|
* initialFilters: {},
|
|
27
27
|
* columns,
|
|
28
28
|
* queryOptions: ({ filters, search, pagination, sorting }) =>
|
|
29
|
-
*
|
|
29
|
+
* invoicesQuery({ filters, search, pagination, sorting }),
|
|
30
30
|
* getRowId: row => row.id,
|
|
31
31
|
* getRows: data => data.rows,
|
|
32
32
|
* getRowCount: data => data.totalCount,
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { Icon } from "./components/icon/icon.js";
|
|
2
1
|
import { Accordion } from "./components/accordion/accordion.js";
|
|
3
2
|
import { describeFlag, describeList, describeValue } from "./components/active-filters/active-filter-describers.js";
|
|
4
3
|
import { useFilterView } from "./components/filter-bar/use-filter-view.js";
|
|
5
4
|
import { Tooltip } from "./components/tooltip/tooltip.js";
|
|
6
5
|
import { TagGroup } from "./components/tag-group/tag-group.js";
|
|
7
|
-
import { ActiveFilters } from "./components/active-filters/active-filters.js";
|
|
6
|
+
import { ActiveFilters, useActiveFilterChips } from "./components/active-filters/active-filters.js";
|
|
8
7
|
import { useBusyPhase } from "./lib/hooks/use-busy-phase.js";
|
|
9
8
|
import { Skeleton } from "./components/skeleton/skeleton.js";
|
|
10
|
-
import {
|
|
9
|
+
import { useAttachmentPreview } from "./components/attachment-tile/attachment-preview.js";
|
|
11
10
|
import { Button } from "./components/button/button.js";
|
|
12
11
|
import { AttachmentTile, SentAttachmentTile } from "./components/attachment-tile/attachment-tile.js";
|
|
13
12
|
import { Avatar } from "./components/avatar/avatar.js";
|
|
@@ -22,13 +21,12 @@ import { getFieldErrors, normalizeFieldErrors } from "./lib/forms/errors.js";
|
|
|
22
21
|
import { ErrorText } from "./components/error-text/error-text.js";
|
|
23
22
|
import { Spinner } from "./components/spinner/spinner.js";
|
|
24
23
|
import { useFieldContext, useFormContext } from "./lib/forms/context.js";
|
|
25
|
-
import { Field
|
|
24
|
+
import { Field } from "./components/field/field.js";
|
|
26
25
|
import { fieldStateAttributes } from "./components/field/field-state.js";
|
|
27
26
|
import { optionsLoad } from "./components/field/options-load.js";
|
|
28
27
|
import { useFieldFocus } from "./components/field/use-field-focus.js";
|
|
29
28
|
import { useFormDisabled } from "./components/form/form-context.js";
|
|
30
29
|
import { useFieldState } from "./components/field/use-field-state.js";
|
|
31
|
-
import { CheckboxGlyph } from "./components/checkbox-field/checkbox-glyph.js";
|
|
32
30
|
import { Checkbox } from "./components/checkbox-field/checkbox.js";
|
|
33
31
|
import { CheckboxField } from "./components/checkbox-field/checkbox-field.js";
|
|
34
32
|
import { useConnectedField } from "./lib/forms/use-connected-field.js";
|
|
@@ -42,8 +40,8 @@ import { ComboboxField } from "./components/combobox-field/combobox-field.js";
|
|
|
42
40
|
import { TSFComboboxField } from "./components/combobox-field/tsf-combobox-field.js";
|
|
43
41
|
import { ConfirmDialog } from "./components/confirm-dialog/confirm-dialog.js";
|
|
44
42
|
import { TimeZoneProvider, useTimeZone } from "./components/time-zone-provider/time-zone-provider.js";
|
|
45
|
-
import { Conversation } from "./components/conversation/conversation.js";
|
|
46
43
|
import { groupByBurst, groupByDay } from "./components/conversation/group-messages.js";
|
|
44
|
+
import { Conversation } from "./components/conversation/conversation.js";
|
|
47
45
|
import { isoDateRangeToInstants } from "./lib/calendar/temporal-value.js";
|
|
48
46
|
import { DateInput } from "./components/date-field/date-input.js";
|
|
49
47
|
import { DateField } from "./components/date-field/date-field.js";
|
|
@@ -77,6 +75,7 @@ import { FilterBar } from "./components/filter-bar/filter-bar.js";
|
|
|
77
75
|
import { never, whenDirty } from "./lib/unsaved-changes/policy.js";
|
|
78
76
|
import { useReportUnsavedChanges, useUnsavedChanges } from "./lib/unsaved-changes/registry.js";
|
|
79
77
|
import { Form } from "./components/form/form.js";
|
|
78
|
+
import { Icon } from "./components/icon/icon.js";
|
|
80
79
|
import { Link } from "./components/link/link.js";
|
|
81
80
|
import { LinkButton } from "./components/link-button/link-button.js";
|
|
82
81
|
import { LoadingMessage } from "./components/loading-message/loading-message.js";
|
|
@@ -123,7 +122,7 @@ import { TimeInput } from "./components/time-field/time-input.js";
|
|
|
123
122
|
import { TimeField } from "./components/time-field/time-field.js";
|
|
124
123
|
import { TSFTimeField } from "./components/time-field/tsf-time-field.js";
|
|
125
124
|
import { toast, toastManager } from "./components/toast/toast.js";
|
|
126
|
-
import { ToastProvider } from "./components/toast/toast-provider.js";
|
|
125
|
+
import { Toast, ToastProvider } from "./components/toast/toast-provider.js";
|
|
127
126
|
import { ToggleGroup } from "./components/toggle-group-field/toggle-group.js";
|
|
128
127
|
import { ToggleGroupField } from "./components/toggle-group-field/toggle-group-field.js";
|
|
129
128
|
import { TSFToggleGroupField } from "./components/toggle-group-field/tsf-toggle-group-field.js";
|
|
@@ -133,4 +132,4 @@ import { useTheme } from "./lib/hooks/use-theme.js";
|
|
|
133
132
|
import { storedPageSize, tableStoredValue } from "./lib/table-storage.js";
|
|
134
133
|
import { useBeforeUnload } from "./lib/unsaved-changes/before-unload.js";
|
|
135
134
|
import { LeaveGuardDialog, useLeaveGuard } from "./lib/unsaved-changes/leave-guard.js";
|
|
136
|
-
export { Accordion, ActiveFilters,
|
|
135
|
+
export { Accordion, ActiveFilters, AttachmentTile, Avatar, AvatarGroup, Badge, Breadcrumbs, Button, Checkbox, CheckboxField, CheckboxGroup, CheckboxGroupField, Collapsible, Combobox, ComboboxField, ConfirmDialog, Conversation, DateField, DateInput, DateRangeField, DateRangeInput, DetailList, Dialog, Divider, Drawer, EmailField, EmptyMessage, ErrorBoundary, ErrorMessage, ErrorText, Field, FieldGroup, FieldPlaceholder, Fieldset, FileField, FileInput, FilterBar, Form, Icon, LeaveGuardDialog, Link, LinkButton, LoadingMessage, LocaleProvider, Menu, Nav, NavItemView, NumberField, NumberInput, OtpField, OtpInput, Pagination, PasswordField, PasswordStrength, PhoneField, PhotoField, PhotoInput, Popover, RadioGroup, RadioGroupField, SearchField, SegmentedControl, SegmentedControlField, Select, SelectField, SentAttachmentTile, Skeleton, Spinner, Stale, StatusMessage, Switch, SwitchField, TSFCheckboxField, TSFCheckboxGroupField, TSFComboboxField, TSFDateField, TSFDateRangeField, TSFEmailField, TSFFieldGroup, TSFFileField, TSFNumberField, TSFOtpField, TSFPasswordField, TSFPhoneField, TSFPhotoField, TSFRadioGroupField, TSFSearchField, TSFSegmentedControlField, TSFSelectField, TSFSwitchField, TSFTextField, TSFTextareaField, TSFTimeField, TSFToggleGroupField, Tabs, Tag, TagGroup, TextField, TextInput, Textarea, TextareaField, TimeField, TimeInput, TimeZoneProvider, Toast, ToastProvider, ToggleGroup, ToggleGroupField, Tooltip, connectTextPreset, createAppForm, currencyFormat, describeFlag, describeList, describeValue, fieldStateAttributes, getFieldErrors, groupByBurst, groupByDay, isoDateRangeToInstants, never, normalizeFieldErrors, optionsLoad, percentFormat, storedPageSize, tableStoredValue, toast, toastManager, unitFormat, useActiveFilterChips, useAttachmentPreview, useBeforeUnload, useBusyPhase, useConnectedField, useFieldContext, useFieldFocus, useFieldState, useFilterView, useFold, useFormContext, useFormDisabled, useLeaveGuard, useLocale, useMediaQuery, usePresence, useReportUnsavedChanges, useRowSelection, useTheme, useTimeZone, useUnsavedChanges, whenDirty };
|
|
@@ -8,12 +8,19 @@ export type CalendarNavigationLabels = Readonly<{
|
|
|
8
8
|
/** What the year list says when no year matches the typed text. */
|
|
9
9
|
noMatchingYearLabel: string;
|
|
10
10
|
}>;
|
|
11
|
+
/** The icons the month and year lists in a calendar header show. */
|
|
12
|
+
export type CalendarNavigationIcons = Readonly<{
|
|
13
|
+
/** The mark beside the selected month and year in their lists, their only sign of selection. */
|
|
14
|
+
checkIcon: ReactNode;
|
|
15
|
+
/** The chevron on the month and year controls. Left out, none shows. */
|
|
16
|
+
expandIcon?: ReactNode;
|
|
17
|
+
}>;
|
|
11
18
|
/**
|
|
12
19
|
* The month and year controls in a calendar header, driven by whichever
|
|
13
20
|
* calendar state is above them. The month list holds the months the focused
|
|
14
21
|
* year actually has; the year list is every year in its era.
|
|
15
22
|
*
|
|
16
23
|
* @example
|
|
17
|
-
* <CalendarNavigation monthLabel="Month" yearLabel="Year" noMatchingYearLabel="No matching year." />
|
|
24
|
+
* <CalendarNavigation monthLabel="Month" yearLabel="Year" noMatchingYearLabel="No matching year." checkIcon={<CheckIcon />} />
|
|
18
25
|
*/
|
|
19
|
-
export declare const CalendarNavigation: ({ monthLabel, yearLabel, noMatchingYearLabel, }: CalendarNavigationLabels) => ReactNode;
|
|
26
|
+
export declare const CalendarNavigation: ({ monthLabel, yearLabel, noMatchingYearLabel, checkIcon, expandIcon, }: CalendarNavigationLabels & CalendarNavigationIcons) => ReactNode;
|