@uipath/apollo-wind 2.92.0 → 2.94.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/dist/components/forms/field-renderer.cjs +1 -1
- package/dist/components/forms/field-renderer.js +1 -1
- package/dist/components/forms/field-rules-strings.cjs +40 -0
- package/dist/components/forms/field-rules-strings.d.ts +17 -0
- package/dist/components/forms/field-rules-strings.js +6 -0
- package/dist/components/forms/field-rules.cjs +526 -0
- package/dist/components/forms/field-rules.d.ts +97 -0
- package/dist/components/forms/field-rules.js +468 -0
- package/dist/components/forms/form-designer.cjs +208 -592
- package/dist/components/forms/form-designer.js +210 -594
- package/dist/components/forms/form-schema.d.ts +5 -0
- package/dist/components/forms/index.cjs +43 -3
- package/dist/components/forms/index.d.ts +4 -0
- package/dist/components/forms/index.js +5 -1
- package/dist/components/forms/metadata-form.cjs +1 -1
- package/dist/components/forms/metadata-form.js +1 -1
- package/dist/components/forms/rules-engine-dialect.cjs +644 -0
- package/dist/components/forms/rules-engine-dialect.d.ts +90 -0
- package/dist/components/forms/rules-engine-dialect.js +537 -0
- package/dist/components/forms/rules-engine.cjs +99 -10
- package/dist/components/forms/rules-engine.d.ts +5 -0
- package/dist/components/forms/rules-engine.js +99 -10
- package/dist/components/forms/use-field-rules.cjs +122 -0
- package/dist/components/forms/use-field-rules.d.ts +31 -0
- package/dist/components/forms/use-field-rules.js +88 -0
- package/dist/components/ui/conditions-editor/condition-row.cjs +458 -0
- package/dist/components/ui/conditions-editor/condition-row.d.ts +23 -0
- package/dist/components/ui/conditions-editor/condition-row.js +421 -0
- package/dist/components/ui/conditions-editor/conditions-editor.cjs +363 -0
- package/dist/components/ui/conditions-editor/conditions-editor.d.ts +67 -0
- package/dist/components/ui/conditions-editor/conditions-editor.js +329 -0
- package/dist/components/ui/conditions-editor/context.cjs +45 -0
- package/dist/components/ui/conditions-editor/context.d.ts +54 -0
- package/dist/components/ui/conditions-editor/context.js +8 -0
- package/dist/components/ui/conditions-editor/index.cjs +55 -0
- package/dist/components/ui/conditions-editor/index.d.ts +6 -0
- package/dist/components/ui/conditions-editor/index.js +6 -0
- package/dist/components/ui/conditions-editor/model.cjs +126 -0
- package/dist/components/ui/conditions-editor/model.d.ts +39 -0
- package/dist/components/ui/conditions-editor/model.js +71 -0
- package/dist/components/ui/conditions-editor/status.cjs +198 -0
- package/dist/components/ui/conditions-editor/status.d.ts +44 -0
- package/dist/components/ui/conditions-editor/status.js +131 -0
- package/dist/components/ui/conditions-editor/strings.cjs +86 -0
- package/dist/components/ui/conditions-editor/strings.d.ts +62 -0
- package/dist/components/ui/conditions-editor/strings.js +52 -0
- package/dist/components/ui/conditions-editor/vocabulary.cjs +163 -0
- package/dist/components/ui/conditions-editor/vocabulary.d.ts +51 -0
- package/dist/components/ui/conditions-editor/vocabulary.js +129 -0
- package/dist/components/ui/data-table.cjs +493 -104
- package/dist/components/ui/data-table.d.ts +88 -5
- package/dist/components/ui/data-table.js +491 -105
- package/dist/components/ui/editable-cell.cjs +91 -27
- package/dist/components/ui/editable-cell.d.ts +14 -1
- package/dist/components/ui/editable-cell.js +91 -27
- package/dist/components/ui/field-actions/index.cjs +9 -2
- package/dist/components/ui/field-actions/index.d.ts +1 -0
- package/dist/components/ui/field-actions/index.js +2 -1
- package/dist/components/ui/field-actions/insert-variable-action.cjs +3 -1
- package/dist/components/ui/field-actions/insert-variable-action.d.ts +4 -1
- package/dist/components/ui/field-actions/insert-variable-action.js +3 -1
- package/dist/components/ui/field-actions/rules-action.cjs +244 -0
- package/dist/components/ui/field-actions/rules-action.d.ts +42 -0
- package/dist/components/ui/field-actions/rules-action.js +207 -0
- package/dist/components/ui/index.cjs +282 -243
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/ui/index.js +3 -0
- package/dist/components/ui/quick-form-field/components/field-header.cjs +137 -167
- package/dist/components/ui/quick-form-field/components/field-header.d.ts +1 -1
- package/dist/components/ui/quick-form-field/components/field-header.js +138 -168
- package/dist/components/ui/quick-form-field/components/header-actions.cjs +187 -0
- package/dist/components/ui/quick-form-field/components/header-actions.d.ts +59 -0
- package/dist/components/ui/quick-form-field/components/header-actions.js +138 -0
- package/dist/components/ui/quick-form-field/components/header-context.cjs +59 -0
- package/dist/components/ui/quick-form-field/components/header-context.d.ts +33 -0
- package/dist/components/ui/quick-form-field/components/header-context.js +16 -0
- package/dist/components/ui/quick-form-field/index.cjs +18 -4
- package/dist/components/ui/quick-form-field/index.d.ts +2 -0
- package/dist/components/ui/quick-form-field/index.js +3 -1
- package/dist/components/ui/quick-form-field/quick-form-field.cjs +1 -1
- package/dist/components/ui/quick-form-field/quick-form-field.d.ts +6 -6
- package/dist/components/ui/quick-form-field/quick-form-field.js +1 -1
- package/dist/components/ui/quick-form-field/types.d.ts +42 -11
- package/dist/components/ui/row-groups/add-row-button.cjs +54 -0
- package/dist/components/ui/row-groups/add-row-button.d.ts +10 -0
- package/dist/components/ui/row-groups/add-row-button.js +20 -0
- package/dist/components/ui/row-groups/after-press.cjs +73 -0
- package/dist/components/ui/row-groups/after-press.d.ts +7 -0
- package/dist/components/ui/row-groups/after-press.js +36 -0
- package/dist/components/ui/row-groups/collapsible-row-group.cjs +83 -0
- package/dist/components/ui/row-groups/collapsible-row-group.d.ts +13 -0
- package/dist/components/ui/row-groups/collapsible-row-group.js +49 -0
- package/dist/components/ui/row-groups/empty-rows.cjs +42 -0
- package/dist/components/ui/row-groups/empty-rows.d.ts +7 -0
- package/dist/components/ui/row-groups/empty-rows.js +8 -0
- package/dist/components/ui/row-groups/group-mode-toggle.cjs +80 -0
- package/dist/components/ui/row-groups/group-mode-toggle.d.ts +26 -0
- package/dist/components/ui/row-groups/group-mode-toggle.js +40 -0
- package/dist/components/ui/row-groups/index.cjs +62 -0
- package/dist/components/ui/row-groups/index.d.ts +6 -0
- package/dist/components/ui/row-groups/index.js +7 -0
- package/dist/components/ui/row-groups/row-delete-button.cjs +54 -0
- package/dist/components/ui/row-groups/row-delete-button.d.ts +18 -0
- package/dist/components/ui/row-groups/row-delete-button.js +20 -0
- package/dist/components/ui/row-groups/use-row-focus.cjs +82 -0
- package/dist/components/ui/row-groups/use-row-focus.d.ts +17 -0
- package/dist/components/ui/row-groups/use-row-focus.js +48 -0
- package/dist/components/ui/rules-editor/context.cjs +45 -0
- package/dist/components/ui/rules-editor/context.d.ts +52 -0
- package/dist/components/ui/rules-editor/context.js +8 -0
- package/dist/components/ui/rules-editor/index.cjs +56 -0
- package/dist/components/ui/rules-editor/index.d.ts +4 -0
- package/dist/components/ui/rules-editor/index.js +4 -0
- package/dist/components/ui/rules-editor/model.cjs +205 -0
- package/dist/components/ui/rules-editor/model.d.ts +128 -0
- package/dist/components/ui/rules-editor/model.js +144 -0
- package/dist/components/ui/rules-editor/rule-card.cjs +470 -0
- package/dist/components/ui/rules-editor/rule-card.d.ts +14 -0
- package/dist/components/ui/rules-editor/rule-card.js +436 -0
- package/dist/components/ui/rules-editor/rules-editor.cjs +160 -0
- package/dist/components/ui/rules-editor/rules-editor.d.ts +66 -0
- package/dist/components/ui/rules-editor/rules-editor.js +126 -0
- package/dist/components/ui/rules-editor/strings.cjs +68 -0
- package/dist/components/ui/rules-editor/strings.d.ts +56 -0
- package/dist/components/ui/rules-editor/strings.js +34 -0
- package/dist/index.cjs +132 -8
- package/dist/index.d.ts +19 -6
- package/dist/index.js +11 -4
- package/dist/styles.css +119 -24
- package/package.json +2 -2
|
@@ -1,20 +1,94 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Column, ColumnDef, ColumnSizingState, OnChangeFn, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
|
|
2
|
+
import { Column, ColumnDef, ColumnSizingState, OnChangeFn, PaginationState, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
|
|
3
|
+
/** The English text of the DataTable, overridable key by key. */
|
|
4
|
+
export interface DataTableStrings {
|
|
5
|
+
/** Accessible name of the search input. Defaults to `searchPlaceholder` when not overridden. */
|
|
6
|
+
search: string;
|
|
7
|
+
/** Empty-state text, shown when no row matches. */
|
|
8
|
+
noResults: string;
|
|
9
|
+
/** Announced while `loading` is set. */
|
|
10
|
+
loading: string;
|
|
11
|
+
/** Previous-page button. */
|
|
12
|
+
previous: string;
|
|
13
|
+
/** Next-page button. */
|
|
14
|
+
next: string;
|
|
15
|
+
/** Page indicator. Both numbers are 1-based. */
|
|
16
|
+
page: (page: number, pageCount: number) => string;
|
|
17
|
+
/** Selection summary under the table. */
|
|
18
|
+
rowsSelected: (selected: number, total: number) => string;
|
|
19
|
+
/** Label of the page-size picker. */
|
|
20
|
+
rowsPerPage: string;
|
|
21
|
+
/** Accessible name of the header checkbox of `DataTableSelectColumn`. */
|
|
22
|
+
selectAll: string;
|
|
23
|
+
/** Accessible name of a row checkbox of `DataTableSelectColumn`. `rowNumber` is 1-based. */
|
|
24
|
+
selectRow: (rowNumber: number) => string;
|
|
25
|
+
/** Accessible name of a column resize handle. */
|
|
26
|
+
resizeColumn: (column: string) => string;
|
|
27
|
+
/** Accessible name of the button that starts editing a cell. `rowNumber` is 1-based. */
|
|
28
|
+
editCell: (column: string, rowNumber: number) => string;
|
|
29
|
+
/** Accessible name of an editable checkbox cell. `rowNumber` is 1-based. */
|
|
30
|
+
toggleCell: (column: string, rowNumber: number) => string;
|
|
31
|
+
/** Accessible name of the scrolling body region when `maxBodyHeight` is set. */
|
|
32
|
+
scrollRegion: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const DEFAULT_DATA_TABLE_STRINGS: DataTableStrings;
|
|
3
35
|
export interface DataTableProps<TData, TValue> {
|
|
4
36
|
columns: ColumnDef<TData, TValue>[];
|
|
5
37
|
data: TData[];
|
|
38
|
+
/** Extra classes for the root element. */
|
|
39
|
+
className?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Column id the search input filters on, with a case-insensitive "contains" match on the
|
|
42
|
+
* cell value. Works for text and number columns. Ignored when `globalFilterFn` is set.
|
|
43
|
+
*/
|
|
6
44
|
searchKey?: string;
|
|
7
45
|
searchPlaceholder?: string;
|
|
46
|
+
/** Controlled search text. Pairs with `onSearchChange`. */
|
|
47
|
+
searchValue?: string;
|
|
48
|
+
onSearchChange?: (value: string) => void;
|
|
8
49
|
showColumnToggle?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Shows the pager and paginates the rows. When false, every row renders, unless
|
|
52
|
+
* `pagination` is controlled.
|
|
53
|
+
*/
|
|
9
54
|
showPagination?: boolean;
|
|
55
|
+
/** Rows per page. Changing it after mount returns to the first page. Default: 10. */
|
|
10
56
|
pageSize?: number;
|
|
57
|
+
/** When set, the pager shows a page-size picker with these options. */
|
|
58
|
+
pageSizeOptions?: number[];
|
|
59
|
+
/** Controlled pagination state. Pairs with `onPaginationChange`. */
|
|
60
|
+
pagination?: PaginationState;
|
|
61
|
+
onPaginationChange?: OnChangeFn<PaginationState>;
|
|
62
|
+
/**
|
|
63
|
+
* Server-side pagination: `data` already holds only the current page. Requires `rowCount`
|
|
64
|
+
* and a controlled `pagination`.
|
|
65
|
+
*/
|
|
66
|
+
manualPagination?: boolean;
|
|
67
|
+
/** Total number of rows across all pages, for `manualPagination`. */
|
|
68
|
+
rowCount?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Turns on inline editing for columns whose `meta.type` is set and that have no custom
|
|
71
|
+
* `cell`. Requires `onCellUpdate`.
|
|
72
|
+
*/
|
|
11
73
|
editable?: boolean;
|
|
74
|
+
/** `rowIndex` is the row's index in `data`, whatever the current sort, filter or page. */
|
|
12
75
|
onCellUpdate?: (rowIndex: number, columnId: string, value: unknown) => void;
|
|
13
76
|
resizable?: boolean;
|
|
14
77
|
compact?: boolean;
|
|
15
78
|
columnToggleText?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Stable id for a row. Without it rows are identified by their index in `data`, so
|
|
81
|
+
* selection sticks to a position rather than a record when `data` changes. Set it
|
|
82
|
+
* whenever rows can be added, removed or reordered.
|
|
83
|
+
*/
|
|
84
|
+
getRowId?: (row: TData, index: number) => string;
|
|
16
85
|
rowSelection?: RowSelectionState;
|
|
17
86
|
onRowSelectionChange?: (selection: RowSelectionState) => void;
|
|
87
|
+
/**
|
|
88
|
+
* Shows the "n of m row(s) selected" summary in the pager. Default: shown when the table
|
|
89
|
+
* has a `select` column or selection is controlled.
|
|
90
|
+
*/
|
|
91
|
+
showSelectionCount?: boolean;
|
|
18
92
|
/** Controlled sort state. When provided, the table runs in controlled mode for sorting. */
|
|
19
93
|
sorting?: SortingState;
|
|
20
94
|
onSortingChange?: OnChangeFn<SortingState>;
|
|
@@ -27,8 +101,8 @@ export interface DataTableProps<TData, TValue> {
|
|
|
27
101
|
columnVisibility?: VisibilityState;
|
|
28
102
|
onColumnVisibilityChange?: OnChangeFn<VisibilityState>;
|
|
29
103
|
/**
|
|
30
|
-
* When set, the search input filters whole rows via this predicate.
|
|
31
|
-
* Takes precedence over `searchKey`.
|
|
104
|
+
* When set, the search input filters whole rows via this predicate, called once per row.
|
|
105
|
+
* Takes precedence over `searchKey`. Needs at least one column with an accessor.
|
|
32
106
|
*/
|
|
33
107
|
globalFilterFn?: (row: TData, query: string) => boolean;
|
|
34
108
|
/**
|
|
@@ -41,11 +115,20 @@ export interface DataTableProps<TData, TValue> {
|
|
|
41
115
|
/**
|
|
42
116
|
* When set, the table body scrolls independently with this max height (any CSS length).
|
|
43
117
|
* The header stays above the scroll region and the vertical scrollbar is confined to the
|
|
44
|
-
* body, leaving the header row clear of scrollbar tracks.
|
|
118
|
+
* body, leaving the header row clear of scrollbar tracks. In this mode columns without an
|
|
119
|
+
* explicit `size` share the remaining width equally instead of sizing to their content.
|
|
45
120
|
*/
|
|
46
121
|
maxBodyHeight?: string;
|
|
122
|
+
/** Called when a row is clicked or activated with Enter. Clicks on controls inside the row are ignored. */
|
|
123
|
+
onRowClick?: (row: TData) => void;
|
|
124
|
+
/** Shows placeholder rows while there is no data yet, and dims existing rows. */
|
|
125
|
+
loading?: boolean;
|
|
126
|
+
/** Replaces the default "No results." text. */
|
|
127
|
+
emptyState?: React.ReactNode;
|
|
128
|
+
/** Overrides for the built-in English text, key by key. */
|
|
129
|
+
strings?: Partial<DataTableStrings>;
|
|
47
130
|
}
|
|
48
|
-
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, showColumnToggle, showPagination, pageSize, editable, onCellUpdate, resizable, compact, columnToggleText, rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, sorting: controlledSorting, onSortingChange: controlledOnSortingChange, initialSorting, columnSizing: controlledColumnSizing, onColumnSizingChange: controlledOnColumnSizingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange: controlledOnColumnVisibilityChange, globalFilterFn, allowWrap, toolbarContent, maxBodyHeight, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
export declare function DataTable<TData, TValue>({ columns, data, className, searchKey, searchPlaceholder, searchValue: controlledSearch, onSearchChange, showColumnToggle, showPagination, pageSize, pageSizeOptions, pagination: controlledPagination, onPaginationChange: controlledOnPaginationChange, manualPagination, rowCount, editable, onCellUpdate, resizable, compact, columnToggleText, getRowId, rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, showSelectionCount, sorting: controlledSorting, onSortingChange: controlledOnSortingChange, initialSorting, columnSizing: controlledColumnSizing, onColumnSizingChange: controlledOnColumnSizingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange: controlledOnColumnVisibilityChange, globalFilterFn, allowWrap, toolbarContent, maxBodyHeight, onRowClick, loading, emptyState, strings: stringOverrides, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
49
132
|
export declare function DataTableColumnHeader<TData, TValue>({ column, title, children, }: {
|
|
50
133
|
column: Column<TData, TValue>;
|
|
51
134
|
title: string;
|