@iris-ui-kit/react 0.3.0 → 0.3.1
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/admin.cjs +6 -3
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.js +1 -1
- package/dist/async.cjs +16 -7
- package/dist/async.cjs.map +1 -1
- package/dist/async.d.cts +7 -6
- package/dist/async.d.ts +7 -6
- package/dist/async.js +1 -1
- package/dist/chunk-3772LKJP.js +942 -0
- package/dist/chunk-3772LKJP.js.map +1 -0
- package/dist/{chunk-TO7YVSAI.js → chunk-3KYNBLRY.js} +18 -9
- package/dist/chunk-3KYNBLRY.js.map +1 -0
- package/dist/{chunk-KRFZ5KL4.js → chunk-TDVRIHE6.js} +8 -5
- package/dist/chunk-TDVRIHE6.js.map +1 -0
- package/dist/{chunk-QZJXMCRR.js → chunk-VLWZSOTH.js} +2 -2
- package/dist/chunk-VLWZSOTH.js.map +1 -0
- package/dist/data.cjs.map +1 -1
- package/dist/data.d.cts +2 -2
- package/dist/data.d.ts +2 -2
- package/dist/data.js +1 -1
- package/dist/grid.cjs +1007 -0
- package/dist/grid.cjs.map +1 -0
- package/dist/grid.d.cts +324 -0
- package/dist/grid.d.ts +324 -0
- package/dist/grid.js +5 -0
- package/dist/grid.js.map +1 -0
- package/dist/index.cjs +6248 -3722
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +293 -8
- package/dist/index.d.ts +293 -8
- package/dist/index.js +4803 -3241
- package/dist/index.js.map +1 -1
- package/package.json +10 -5
- package/dist/chunk-KRFZ5KL4.js.map +0 -1
- package/dist/chunk-QZJXMCRR.js.map +0 -1
- package/dist/chunk-TO7YVSAI.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _iris_ui_kit_core from '@iris-ui-kit/core';
|
|
2
|
-
import { ReadonlyStore, Store, MachineEvent, Machine, MachineState, RealtimeHandlers, RealtimeOptions, RealtimeStatus, DisposableScope, ResilientFetcherOptions, ResilientFetcher, Variant, Size, Placement, SpreadsheetXmlOptions } from '@iris-ui-kit/core';
|
|
2
|
+
import { ReadonlyStore, Store, MachineEvent, Machine, MachineState, RealtimeHandlers, RealtimeOptions, RealtimeStatus, DisposableScope, ResilientFetcherOptions, ResilientFetcher, Variant, Size, Placement, AuditLogType, SpreadsheetXmlOptions, Virtualizer } from '@iris-ui-kit/core';
|
|
3
3
|
export { AdminPreferences, AdminPreferencesState, Align, DataSourceConfig, DataSourceController, DataSourceMode, DataSourceMutateOptions, DataSourceQuery, DataSourceState, DataViewColumn, FloatingEvent, FloatingMachine, FloatingState, GroupedViewConfig, GroupedViewState, GroupedViewStore, IrisHsva, PageItem as IrisPageItem, IrisRgba, Machine, MachineConfig, MachineEvent, MachineState, MutateOptions, NavNode, Placement, ResourceController, ResourceControllerConfig, ResourceQuery, ResourceState, RowMutateOptions, Side, Size, StateNode, Store, TabItem, TabsNav, TabsNavConfig, TabsNavState, Transition, Variant, addDays, addMonths, buildMonthMatrix, clamp01, clampDate, composeEventHandlers, createAdminPreferences, createClientDataSource, createClientFetcher, createDataSource, createFloatingMachine, createGroupedView, createMachine, createResourceController, createStore, createTabsNav, endOfMonth, filterNavByAccess, findNavNode, findNavPath, firstLeaf, flattenNav, formatLocalISO, formatMonthYear, generateId, getPageRange, getWeekdayNames, hexToRgba, hsvToRgb, hsvaToRgba, isBranch, isClosable, isOutOfRange, isSameDay, isSameMonth, localStorageAdminPreferencesStorage, mergeProps, nodeAllowsRoles, parseCsv, rgbToHex, rgbToHsv, rgbaToHsva, startOfDay, startOfMonth, visibleNav } from '@iris-ui-kit/core';
|
|
4
|
+
export { GridFilterColumn, GridFilterQuery, GridSortColumn, LegacyGridColumnsProps, LegacyGridExpansionProps, LegacyGridFilteringProps, LegacyGridPaginationProps, LegacyGridPaginationProxyConfig, LegacyGridPaginationState, LegacyGridRowsOptions, LegacyGridRowsProps, LegacyGridSelectionProps, LegacyGridSortingProps, UseGridClipboardOptions, UseGridClipboardResult, UseGridColumnsOptions, UseGridColumnsResult, UseGridCoreOptions, UseGridEditingOptions, UseGridEditingResult, UseGridExpansionOptions, UseGridExpansionResult, UseGridFilteringOptions, UseGridFilteringResult, UseGridPaginationOptions, UseGridPaginationResult, UseGridRangeOptions, UseGridRangeResult, UseGridRowsOptions, UseGridRowsResult, UseGridSelectionOptions, UseGridSelectionResult, UseGridSortingOptions, UseGridSortingResult, UseGridVirtualOptions, UseGridVirtualResult, toGridColumnsOptions, toGridExpansionOptions, toGridFilteringOptions, toGridPaginationOptions, toGridRowsOptions, toGridSelectionOptions, toGridSortingOptions, useGridClipboard, useGridColumns, useGridCore, useGridEditing, useGridExpansion, useGridFiltering, useGridPagination, useGridRange, useGridRows, useGridSelection, useGridSorting, useGridVirtual } from './grid.js';
|
|
4
5
|
export { ThemeProvider, ThemeProviderProps, UseThemeReturn, useColorScheme, useDirection, useTheme, useThemeContext, useThemeOptional } from './theme.js';
|
|
5
6
|
export { ApplySkinResult, LoadSkinOptions, ResolvedSkin, Skin, SkinBootScriptConfig, SkinCatalog, SkinCatalogConfig, SkinEngine, SkinEngineConfig, SkinError, SkinErrorCode, SkinLookup, SkinManifest, SkinManifestEntry, SkinMode, SkinPatch, SkinRegistry, SkinResolutionError, SkinStorage, SkinTokenOverrides, applySkin, builtinSkins, createSkinCatalog, createSkinEngine, createSkinRegistry, darkSkin, lightSkin, loadSkin, localStorageSkinStorage, memorySkinStorage, renderSkinStyle, resolveSkin, skinBootScript, skinError, skinToCssEntries, validateSkin } from '@iris-ui-kit/skins';
|
|
6
7
|
export { SkinProvider, SkinProviderProps, UseSkinReturn, useSkin, useSkinContext, useSkinOptional } from './skins.js';
|
|
@@ -28,6 +29,7 @@ export { IrisProvider, IrisProviderProps, PluginStoreContext, PluginStoreContext
|
|
|
28
29
|
export { IrisErrorBoundary, IrisErrorBoundaryFallbackProps, IrisErrorBoundaryProps } from './error-boundary.js';
|
|
29
30
|
export { ApplyThemeResult, ThemeStore, ThemeStoreConfig, applyTheme, createThemeStore, getCssVar, toCssVarName } from '@iris-ui-kit/theme';
|
|
30
31
|
export { ALL_TOKEN_NAMES, AnyToken, COLOR_TOKENS, ColorToken, IrisTheme, IrisThemeColors, IrisThemeRadii, IrisThemeSpacing, IrisThemeType, RADII_TOKENS, RadiusToken, SPACING_TOKENS, SpacingToken, darkTheme, lightTheme } from '@iris-ui-kit/tokens';
|
|
32
|
+
import '@iris-ui-kit/core/grid';
|
|
31
33
|
import '@floating-ui/dom';
|
|
32
34
|
|
|
33
35
|
/**
|
|
@@ -2983,6 +2985,86 @@ interface IrisTableMergeFooterItem {
|
|
|
2983
2985
|
rowspan?: number;
|
|
2984
2986
|
}
|
|
2985
2987
|
|
|
2988
|
+
/**
|
|
2989
|
+
* Unified event stream palette (batch DW, iris 独有 — vxe has no single event
|
|
2990
|
+
* bus): the `type` names one of the closed event families; `detail` carries
|
|
2991
|
+
* the SAME params the matching dedicated callback receives (reference-
|
|
2992
|
+
* identical `row`/`column`). Events fire AFTER the dedicated callback — the
|
|
2993
|
+
* bus is a bridge, not a behavior. Controllable proxy `sort` updates (a
|
|
2994
|
+
* parent-driven `sort`/`multiSortState` prop change — not a user click) fire
|
|
2995
|
+
* no event. The expansion family mirrors the shared `onExpandedRowsChange`
|
|
2996
|
+
* channel: EVERY model commit fires `expanded-rows-change` — user toggles,
|
|
2997
|
+
* `expandAll` seeding, and `persistState`/view `expandedKeys` restores all
|
|
2998
|
+
* replay through the expansion model's `onChange` (a restore still needs
|
|
2999
|
+
* `onExpandedRowsChange` + an expandable table — the same gate as the
|
|
3000
|
+
* dedicated callback).
|
|
3001
|
+
*/
|
|
3002
|
+
type IrisTableEvent<Row = Record<string, unknown>> = {
|
|
3003
|
+
type: 'cell-click';
|
|
3004
|
+
detail: IrisTableCellClickParams<Row>;
|
|
3005
|
+
} | {
|
|
3006
|
+
type: 'cell-dblclick';
|
|
3007
|
+
detail: IrisTableCellClickParams<Row>;
|
|
3008
|
+
} | {
|
|
3009
|
+
type: 'row-click';
|
|
3010
|
+
detail: {
|
|
3011
|
+
row: Row;
|
|
3012
|
+
rowIndex: number;
|
|
3013
|
+
};
|
|
3014
|
+
} | {
|
|
3015
|
+
type: 'row-dblclick';
|
|
3016
|
+
detail: {
|
|
3017
|
+
row: Row;
|
|
3018
|
+
rowIndex: number;
|
|
3019
|
+
};
|
|
3020
|
+
} | {
|
|
3021
|
+
type: 'sort-change';
|
|
3022
|
+
detail: {
|
|
3023
|
+
sort: IrisTableSortState | null;
|
|
3024
|
+
};
|
|
3025
|
+
} | {
|
|
3026
|
+
type: 'multi-sort-change';
|
|
3027
|
+
detail: {
|
|
3028
|
+
sorts: IrisTableSortState[];
|
|
3029
|
+
};
|
|
3030
|
+
} | {
|
|
3031
|
+
type: 'filter-change';
|
|
3032
|
+
detail: {
|
|
3033
|
+
filters: Record<string, string>;
|
|
3034
|
+
};
|
|
3035
|
+
} | {
|
|
3036
|
+
type: 'filter-value-change';
|
|
3037
|
+
detail: {
|
|
3038
|
+
filterValues: IrisTableFilterValues;
|
|
3039
|
+
};
|
|
3040
|
+
} | {
|
|
3041
|
+
type: 'edit-start';
|
|
3042
|
+
detail: IrisTableEditStartParams<Row>;
|
|
3043
|
+
} | {
|
|
3044
|
+
type: 'edit-commit';
|
|
3045
|
+
detail: IrisTableEditClosedParams<Row>;
|
|
3046
|
+
} | {
|
|
3047
|
+
type: 'edit-cancel';
|
|
3048
|
+
detail: IrisTableEditClosedParams<Row>;
|
|
3049
|
+
} | {
|
|
3050
|
+
type: 'expand-change';
|
|
3051
|
+
detail: {
|
|
3052
|
+
row: Row;
|
|
3053
|
+
expanded: boolean;
|
|
3054
|
+
};
|
|
3055
|
+
} | {
|
|
3056
|
+
type: 'tree-expand-change';
|
|
3057
|
+
detail: {
|
|
3058
|
+
row: Row;
|
|
3059
|
+
expanded: boolean;
|
|
3060
|
+
};
|
|
3061
|
+
} | {
|
|
3062
|
+
type: 'expanded-rows-change';
|
|
3063
|
+
detail: {
|
|
3064
|
+
expandedKeys: string[];
|
|
3065
|
+
};
|
|
3066
|
+
};
|
|
3067
|
+
|
|
2986
3068
|
interface IrisTableHandle<Row extends Record<string, unknown> = Record<string, unknown>> {
|
|
2987
3069
|
/** Insert a row at `index` (default: end). A missing `rowKeyField` value gets an auto id. */
|
|
2988
3070
|
insertRow: (row: Row, index?: number) => void;
|
|
@@ -3104,6 +3186,13 @@ interface IrisTableHandle<Row extends Record<string, unknown> = Record<string, u
|
|
|
3104
3186
|
importStateJson: (json: string) => boolean;
|
|
3105
3187
|
/** Compare two exported-state JSONs (batch DE, iris 独有): field-level diff text (`+` added / `-` removed / `~ changed old → new`), deterministic by sorted keys + structural deep-equal (order-independent); identical → `''`; invalid JSON → `! compareStates: invalid JSON` (never throws). Pairs with `exportStateJson`/`importStateJson` — `a` = before, `b` = after. */
|
|
3106
3188
|
compareStates: (a: string, b: string) => string;
|
|
3189
|
+
/** Column access stats (batch EB, iris 独有 — vxe has no counter): a
|
|
3190
|
+
* snapshot of the per-column session counters — `{ key, clicks, edits,
|
|
3191
|
+
* total }` sorted total DESC, key ASC tiebreak; `[]` when `columnStats` is
|
|
3192
|
+
* off or nothing was counted yet (fail-closed). Session-local (no
|
|
3193
|
+
* persistence, no clear channel); the handle re-created every render
|
|
3194
|
+
* closes over the latest ref-mirrored map (getFilteredData precedent). */
|
|
3195
|
+
getColumnStats: () => ReadonlyArray<IrisTableColumnStat>;
|
|
3107
3196
|
}
|
|
3108
3197
|
/**
|
|
3109
3198
|
* Audit-trail entry shape (batch AT, iris 独有) — mirrors the core
|
|
@@ -3115,8 +3204,8 @@ interface IrisTableAuditEntry {
|
|
|
3115
3204
|
seq: number;
|
|
3116
3205
|
/** Epoch ms when the entry was pushed. */
|
|
3117
3206
|
at: number;
|
|
3118
|
-
/** Commit kind:
|
|
3119
|
-
type:
|
|
3207
|
+
/** Commit kind: any core {@link AuditLogType} (edit/insert/remove/paste/batch/fill/undo/redo/merge). */
|
|
3208
|
+
type: AuditLogType;
|
|
3120
3209
|
/** Key of the first changed row (undefined when none could be resolved). */
|
|
3121
3210
|
rowKey?: string | number;
|
|
3122
3211
|
/** Column key of the first changed cell (undefined for row-level ops). */
|
|
@@ -3136,8 +3225,8 @@ interface IrisTableVersionEntry {
|
|
|
3136
3225
|
index: number;
|
|
3137
3226
|
/** Epoch ms when the version was pushed. */
|
|
3138
3227
|
at: number;
|
|
3139
|
-
/** Commit-kind hint:
|
|
3140
|
-
type:
|
|
3228
|
+
/** Commit-kind hint: any core {@link AuditLogType} (edit/insert/remove/paste/batch/fill/undo/redo/merge). */
|
|
3229
|
+
type: AuditLogType;
|
|
3141
3230
|
}
|
|
3142
3231
|
/**
|
|
3143
3232
|
* Collaborative-presence cursor entry (batch BD, iris 独有 — vxe has no
|
|
@@ -3156,6 +3245,23 @@ interface IrisTablePresenceEntry {
|
|
|
3156
3245
|
/** Target cell: `${rowKeyVal}::${colKey}` (same delimiter as `cellId`). */
|
|
3157
3246
|
cellKey: string;
|
|
3158
3247
|
}
|
|
3248
|
+
/**
|
|
3249
|
+
* Column access-stats entry (batch EB, iris 独有 — vxe has no counter): one
|
|
3250
|
+
* leaf column's session counters. DELIBERATELY session-local (no core
|
|
3251
|
+
* controller, no persistence, no clear channel) — the parent reads the
|
|
3252
|
+
* snapshot and owns any downstream use. `total = clicks + edits` is the sort
|
|
3253
|
+
* key (descending; ties resolve key ASC for a deterministic order).
|
|
3254
|
+
*/
|
|
3255
|
+
interface IrisTableColumnStat {
|
|
3256
|
+
/** Leaf column key (the same key as the column def / `data-iris-table-header`). */
|
|
3257
|
+
key: string;
|
|
3258
|
+
/** Cell clicks on this column — every cell click counts ONCE (row-edit, cell-range and click-trigger paths included). */
|
|
3259
|
+
clicks: number;
|
|
3260
|
+
/** Inline-edit opens on this column — cell-mode `beginEdit` plus each row-mode session created. */
|
|
3261
|
+
edits: number;
|
|
3262
|
+
/** `clicks + edits` — the handle/panel sort key. */
|
|
3263
|
+
total: number;
|
|
3264
|
+
}
|
|
3159
3265
|
|
|
3160
3266
|
interface IrisTableAdvancedProps<Row extends Record<string, unknown> = Record<string, unknown>> {
|
|
3161
3267
|
nlSummary?: boolean;
|
|
@@ -3281,6 +3387,27 @@ interface IrisTableAdvancedProps<Row extends Record<string, unknown> = Record<st
|
|
|
3281
3387
|
* additive, default off.
|
|
3282
3388
|
*/
|
|
3283
3389
|
compareWith?: Row[];
|
|
3390
|
+
/**
|
|
3391
|
+
* One-click compare merge (batch ED, iris 独有 — vxe has no compare/merge
|
|
3392
|
+
* capability): when true (with `compareWith` + `rowKey`, and a toolbar
|
|
3393
|
+
* render — the gate admits `mergeCompare` like `undo`), the toolbar gains
|
|
3394
|
+
* a text-label button (`data-iris-table-compare-merge`, i18n
|
|
3395
|
+
* `table.mergeCompare`, en `Merge compare` / zh `合并差异`) that applies
|
|
3396
|
+
* EVERY added/changed difference to the CURRENT data — changed rows get
|
|
3397
|
+
* their differing cells replaced in place by the snapshot values (shallow
|
|
3398
|
+
* copy of the live row — a live-only key absent from the snapshot is reset
|
|
3399
|
+
* to `undefined`, so the merged row matches the snapshot exactly and a
|
|
3400
|
+
* second click is a no-op), added rows are
|
|
3401
|
+
* appended in snapshot order (shallow copy — snapshot elements are never
|
|
3402
|
+
* aliased into liveData) — through the normal write-back channel
|
|
3403
|
+
* `commitRowList(rows, 'merge')`, so the merge is audited (a single
|
|
3404
|
+
* `merge` entry), undoable and versioned like any row-list commit.
|
|
3405
|
+
* `removed` rows are untouched (spec: changed/added only). Disabled while
|
|
3406
|
+
* there is nothing to apply (identical snapshot / removed-only diff); the
|
|
3407
|
+
* handler early-returns the same way (double-safety, idempotent).
|
|
3408
|
+
* Additive — default off.
|
|
3409
|
+
*/
|
|
3410
|
+
mergeCompare?: boolean;
|
|
3284
3411
|
/**
|
|
3285
3412
|
* Cell auto-link (batch CA, iris 独有 — vxe has no URL/email auto-
|
|
3286
3413
|
* detection): when true, text cells run their display chain
|
|
@@ -3356,6 +3483,21 @@ interface IrisTableAdvancedProps<Row extends Record<string, unknown> = Record<st
|
|
|
3356
3483
|
/** Batch DP (iris 独有): add token-driven custom thumb styling to the native
|
|
3357
3484
|
* scrollbar while retaining native scrolling and accessibility. */
|
|
3358
3485
|
scrollbarThumb?: boolean;
|
|
3486
|
+
/**
|
|
3487
|
+
* Back-to-top (batch EA, iris 独有 — vxe has no floating back-to-top): when
|
|
3488
|
+
* true, a 40×40 round ↑ button floats at the scroll viewport's bottom-right
|
|
3489
|
+
* once the table's effective scroller scrolls past 200px (the fixed-height
|
|
3490
|
+
* root, vxe-grid `height` parity, or the virtual-scroll viewport — the
|
|
3491
|
+
* viewport wins when both exist, the same resolution the paging keys use).
|
|
3492
|
+
* Clicking it scrolls back to the top (`scrollTo({ top: 0, behavior })` with
|
|
3493
|
+
* a `scrollTop = 0` fallback; reduced-motion users get `'auto'`). The
|
|
3494
|
+
* anchor is a sticky zero-height endcap (absolute-in-anchor corner button,
|
|
3495
|
+
* z 3 above the sticky header / pinned columns) — zero layout footprint,
|
|
3496
|
+
* no dead scroll tail — and the button disappears once the scroller returns
|
|
3497
|
+
* above the threshold. Non-scrollable tables never show it (fail-closed);
|
|
3498
|
+
* printable tables suppress it. Additive — default off.
|
|
3499
|
+
*/
|
|
3500
|
+
scrollToTop?: boolean;
|
|
3359
3501
|
/** Batch DN (iris 独有): show count/average statistics for numeric columns
|
|
3360
3502
|
* inside their leaf headers, separate from footer/column totals. */
|
|
3361
3503
|
headerStats?: boolean;
|
|
@@ -3570,6 +3712,20 @@ interface IrisTableEditingProps<Row extends Record<string, unknown> = Record<str
|
|
|
3570
3712
|
* an inline draft is open, matching committed values in the same column get
|
|
3571
3713
|
* `data-iris-input-hint`; kept as a separate switch for the batch contract. */
|
|
3572
3714
|
patternFill?: boolean;
|
|
3715
|
+
/** Batch EB (iris 独有 — vxe has no column access stats): count per-column
|
|
3716
|
+
* cell clicks and inline-edit opens (SESSION-local internal counting — no
|
|
3717
|
+
* core controller, no persistence, no clear channel). Every cell click
|
|
3718
|
+
* counts ONCE through exactly one path — row-edit mode counts the clicked
|
|
3719
|
+
* row's columns (a click + one edit per editable column opened), cell-range
|
|
3720
|
+
* clicks count the clicked column, click-trigger edits count as BOTH a
|
|
3721
|
+
* click and an edit; paste/fill, header clicks and keyboard-opened editors
|
|
3722
|
+
* never add clicks. `handle.getColumnStats()` returns the `{ key, clicks,
|
|
3723
|
+
* edits, total }` snapshot (total desc, key asc tiebreak; `[]` when off or
|
|
3724
|
+
* idle) and the toolbar `▦` trigger opens the top-5 panel. The counting
|
|
3725
|
+
* bumps are plain functional setState — the opt-in re-render cost is
|
|
3726
|
+
* documented (off = zero cost, no bumps, no re-renders). Additive; default
|
|
3727
|
+
* off (fail-closed). */
|
|
3728
|
+
columnStats?: boolean;
|
|
3573
3729
|
/** Batch CR (iris 独有 — vxe has no equivalent; Excel status-bar parity):
|
|
3574
3730
|
* show a full-width horizontal strip directly below the toolbar
|
|
3575
3731
|
* (`data-iris-column-totals`) with the column totals for every
|
|
@@ -3704,11 +3860,26 @@ interface IrisTableEditingProps<Row extends Record<string, unknown> = Record<str
|
|
|
3704
3860
|
virtualScroll?: IrisTableVirtualOptions;
|
|
3705
3861
|
/** Per-row height (batch BN, iris 独有 — vxe row-height is a fixed config value). Number → uniform height (overrides the default AND `virtualScroll.itemHeight` in virtual mode); `(index) => number` → per-row heights — in virtual mode the fn feeds the variable-height virtualizer (virtual PLAN index, prefix-sum offsets, like `virtualScroll.itemHeight`), otherwise each body row gets its inline height (bodyData index). `rowStyle` stays the per-row escape hatch (it wins). */
|
|
3706
3862
|
rowHeight?: number | ((index: number) => number);
|
|
3863
|
+
/** Batch EC (iris 独有 — vxe autoHeight fills rows to the VIEWPORT instead; there is no content-wrap display row): when NO fixed row height is set — `rowHeight` and `virtualScroll.itemHeight` both absent — DATA rows grow to their content. The one-line clamp (nowrap + ellipsis) is released for data-row cells via a CSS root marker (`data-iris-adaptive-height`) and each data row's height is pinned to its MEASURED rendered height (a dependency-free layout effect reads `offsetHeight` after every commit, diffs once, same-value bail — no re-render loops; window resize + a ResizeObserver re-measure; data/edit/font/density changes self-heal through the per-commit effect), so a textarea/paragraph cell renders fully instead of being clipped at one line. Header/summary/footer/state rows stay nowrap; virtual tables and tables with a fixed `rowHeight` are inert (uniform slots). Rows that measure `≤ 0` (jsdom/SSR/hidden) keep natural height — never a 0px collapse. `rowStyle` stays the per-row escape hatch (it wins). Additive; default off (fail-closed — the nowrap base renders byte-identical). */
|
|
3864
|
+
adaptiveRowHeight?: boolean;
|
|
3707
3865
|
/** Persist view state across remounts (batch AG, iris 独有 — vxe has no built-in persistence). Loads sort / multiSortState / filters / filterValues / columnVisibility / columnOrder / columnWidths / pageSize / expandedKeys on mount (replayed through the matching change callbacks) and saves the CURRENT props on every change (the table is controlled). pageSize is only meaningful with proxyConfig.onPageChange (restored via onPageChange(1, restored) before the first query); expandedKeys (batch BY) needs onExpandedRowsChange + an expandable table (renderDetail or tree) — restored through the expansion model, which replays the callback (full-set replace); storage: false fully disables persistence (no reads, no writes); default key 'iris-table-state'. */
|
|
3708
3866
|
persistState?: IrisTablePersistConfig;
|
|
3709
3867
|
/** Batch DM (iris 独有): periodically persist the complete exported view
|
|
3710
3868
|
* state to a separate storage key and restore it once on mount. */
|
|
3711
3869
|
autoSaveState?: IrisTableAutoSaveStateConfig;
|
|
3870
|
+
/** Batch DV (iris 独有 — vxe has no URL-state concept): deep-linkable view
|
|
3871
|
+
* state — when `true`, the table mirrors sort / sorts (multiSort mode) /
|
|
3872
|
+
* filters / filterValues / page+pageSize (proxy only) into ONE `_table`
|
|
3873
|
+
* query param (`history.replaceState`, other params preserved; empty state
|
|
3874
|
+
* removes it) and restores from the URL on mount (URL wins over
|
|
3875
|
+
* `persistState` on conflicts) and on `hashchange`/`popstate` (share-link
|
|
3876
|
+
* support). Each piece follows the SAME per-piece callback gates as
|
|
3877
|
+
* `persistState` (onSortChange / onMultiSortChange / onFiltersChange /
|
|
3878
|
+
* onFilterValuesChange / proxy onPageChange) — an uncontrolled piece is
|
|
3879
|
+
* inert in both directions. Decode is whole-state fail-closed: a corrupt /
|
|
3880
|
+
* wrong-version payload is ignored entirely, never partially restored.
|
|
3881
|
+
* Default off. */
|
|
3882
|
+
urlState?: boolean;
|
|
3712
3883
|
}
|
|
3713
3884
|
|
|
3714
3885
|
interface IrisTableLayoutProps<Row extends Record<string, unknown> = Record<string, unknown>> {
|
|
@@ -3843,6 +4014,26 @@ interface IrisTableLayoutProps<Row extends Record<string, unknown> = Record<stri
|
|
|
3843
4014
|
headerCellStyle?: (column: IrisTableColumn<Row>) => React.CSSProperties;
|
|
3844
4015
|
/** Per-footer-cell inline style hook (vxe footer-cell-style parity). */
|
|
3845
4016
|
footerCellStyle?: (column: IrisTableColumn<Row>, rowIndex: number) => React.CSSProperties;
|
|
4017
|
+
/**
|
|
4018
|
+
* Unified event stream (batch DW, iris 独有 — vxe has no single event bus):
|
|
4019
|
+
* cell/row click, sort, filter, edit and expand events merged into ONE
|
|
4020
|
+
* subscription. The bus fires AFTER the matching dedicated callback (if
|
|
4021
|
+
* wired) — a bridge, not a behavior, so gate parity holds by construction
|
|
4022
|
+
* (no `onCellClick`/`rowMode` → no cell-click event). `type` is one of the
|
|
4023
|
+
* closed `IrisTableEvent` palette; `detail` carries the SAME params the
|
|
4024
|
+
* dedicated callback receives (reference-identical `detail.row`/`column`).
|
|
4025
|
+
* Controllable proxy `sort` updates (a parent-driven `sort`/`multiSortState`
|
|
4026
|
+
* prop change — not a user click) fire no event. The expansion family
|
|
4027
|
+
* mirrors the shared `onExpandedRowsChange` channel: EVERY model commit
|
|
4028
|
+
* fires `expanded-rows-change` — user toggles, `expandAll` seeding, and
|
|
4029
|
+
* `persistState`/view `expandedKeys` restores all replay through the
|
|
4030
|
+
* expansion model's `onChange` (a restore still needs `onExpandedRowsChange`
|
|
4031
|
+
* + an expandable table — the same gate as the dedicated callback).
|
|
4032
|
+
*/
|
|
4033
|
+
onTableEvent?: (event: {
|
|
4034
|
+
type: string;
|
|
4035
|
+
detail: unknown;
|
|
4036
|
+
}) => void;
|
|
3846
4037
|
/** Cell click (vxe cell-click parity). Fired after internal handlers. */
|
|
3847
4038
|
onCellClick?: (params: IrisTableCellClickParams<Row>) => void;
|
|
3848
4039
|
/** Cell double-click (vxe cell-dblclick parity). Fired AFTER the inline edit starts on editable columns; non-editable columns fire it too. */
|
|
@@ -3949,6 +4140,20 @@ interface IrisTableLayoutProps<Row extends Record<string, unknown> = Record<stri
|
|
|
3949
4140
|
columnVisibility?: Record<string, boolean>;
|
|
3950
4141
|
/** Fired when visibility changes (parent owns the map). */
|
|
3951
4142
|
onColumnVisibilityChange?: (next: Record<string, boolean>) => void;
|
|
4143
|
+
/**
|
|
4144
|
+
* Column show/hide transition (batch DY, iris 独有 — vxe has no fade): when
|
|
4145
|
+
* true, `columnVisibility` changes play a 200ms opacity + width transition
|
|
4146
|
+
* instead of snapping — a hiding column keeps its cells mounted while its
|
|
4147
|
+
* track collapses Wpx→0px and opacity fades to 0, then commits away; a
|
|
4148
|
+
* showing column mounts at 0px/opacity 0 and restores both. The duration is
|
|
4149
|
+
* token-driven (`--iris-duration-md`, fallback 200ms) and the whole machine
|
|
4150
|
+
* is disabled under `prefers-reduced-motion` (instant show/hide, vxe
|
|
4151
|
+
* parity). Mount-hidden columns never animate (only later toggles play); a
|
|
4152
|
+
* mid-fade revert restarts the fade in the new direction. Pure render-side
|
|
4153
|
+
* additive — `columnVisibility`/`onColumnVisibilityChange` keep their exact
|
|
4154
|
+
* semantics. Default false — byte-identical with the pre-prop render path.
|
|
4155
|
+
*/
|
|
4156
|
+
columnFade?: boolean;
|
|
3952
4157
|
/** Controlled column order (vxe customConfig parity): the panel's drag list reorders these keys; unnamed keys follow in source order, unknown keys ignored. Top-level columns only. */
|
|
3953
4158
|
columnOrder?: string[];
|
|
3954
4159
|
/** Fired when the panel confirms a new order. `undefined` clears the order (parent drops `columnOrder`). */
|
|
@@ -4081,6 +4286,23 @@ interface IrisTableQueryProps<Row extends Record<string, unknown> = Record<strin
|
|
|
4081
4286
|
* Additive — default off.
|
|
4082
4287
|
*/
|
|
4083
4288
|
cellDrag?: boolean;
|
|
4289
|
+
/**
|
|
4290
|
+
* Cell drag-copy (batch DZ, iris 独有 — vxe has no cell-copy parity): when
|
|
4291
|
+
* `cellRange` has a live selected range (≥1 cell), a copy grip
|
|
4292
|
+
* (`data-iris-range-copy`, 12×4 primary pill on the range's BOTTOM edge at
|
|
4293
|
+
* its top-left cell — the CN move grip owns the top edge, zero collision)
|
|
4294
|
+
* appears; dragging it to another cell COPIES the whole block there (源块
|
|
4295
|
+
* 不动 — the source keeps its values, unlike cellDrag's cut-move) through
|
|
4296
|
+
* ONE batched `commitRowList`, and the selection stays on the source block
|
|
4297
|
+
* (Excel parity — a copy never moves the selection). The whole destination
|
|
4298
|
+
* rectangle must FIT inside the table (越界忽略, deliberately divergent
|
|
4299
|
+
* from cellDrag's clamp): an out-of-bounds drag end shows no outline and
|
|
4300
|
+
* the release is a zero-commit no-op; a drop on the source block itself is
|
|
4301
|
+
* a zero-commit no-op too. Formula columns are never read/written;
|
|
4302
|
+
* locked/readonly destination cells survive; keyless rows skipped. Inert
|
|
4303
|
+
* without `cellRange`. Additive — default off.
|
|
4304
|
+
*/
|
|
4305
|
+
cellDragCopy?: boolean;
|
|
4084
4306
|
/** Clipboard batch (vxe-grid clipboard-config parity, batch O): Ctrl/Cmd+C copies the selected cell range; Ctrl/Cmd+V pastes TSV text into the range anchor onward (overflow beyond the last row/col is ignored). Requires `cellRange` to have a live selected range; additive — default off.
|
|
4085
4307
|
* Batch BP (iris 独有 — vxe clipboard-config has no output-format switch): `copyFormat` selects the copy OUTPUT format for BOTH consumption points (Ctrl/Cmd+C and the range toolbar 复制 button) — `'tsv'` (default, byte-identical to batch O) / `'csv'` (RFC-4180, headerless range fiat like the 导出 CSV download) / `'html'` (a `<table>` fragment via core `toHtml`, with a header row of column titles — the toHtml contract — and the masked cell values, the batch-AY invariant across all three formats). Paste is unaffected — it always reads `\t`-delimited text. Invalid runtime values fail-closed to `'tsv'`.
|
|
4086
4308
|
* Batch CU (iris 独有 — vxe clipboard-config always copies raw values, no format-preserving copy): `copyWithFormat` copies the FORMATTED text of formatter columns (the `contextCellText` display chain — mask → formatter → String, the same chain as the context-menu 复制值) instead of the raw/masked value, across ALL THREE `copyFormat` serializers. Only `col.formatter` columns switch chains — non-formatter columns stay byte-identical — and the formatted STRING still flows through the same serializers (RFC-4180 quoting + OWASP neutralization still apply). `exportRaw`'s copy-path skip is superseded on formatter columns (mask → formatter always); exports are untouched.
|
|
@@ -4287,10 +4509,12 @@ interface IrisTableProxyConfig<Row extends Record<string, unknown>> {
|
|
|
4287
4509
|
* Fetch one page. 1-based `page`; `sort`/`filters` are the ACTIVE state,
|
|
4288
4510
|
* passed through when `remoteSort`/`remoteFilter` are enabled.
|
|
4289
4511
|
*/
|
|
4290
|
-
query: (params: IrisTableProxyQueryParams) => Promise<{
|
|
4512
|
+
query: (params: IrisTableProxyQueryParams, signal?: AbortSignal) => Promise<{
|
|
4291
4513
|
rows: Row[];
|
|
4292
4514
|
total: number;
|
|
4293
4515
|
}>;
|
|
4516
|
+
/** Optional Core resilient fetching (dedup/TTL/SWR, breaker, and rate limiting). */
|
|
4517
|
+
resilient?: ResilientFetcherOptions;
|
|
4294
4518
|
/** Auto-load the first page on mount (vxe autoLoad parity). Default true. */
|
|
4295
4519
|
autoLoad?: boolean;
|
|
4296
4520
|
/** Sort changes re-query the server instead of sorting client-side (vxe proxyConfig.sort). Default false. */
|
|
@@ -4351,6 +4575,32 @@ type IrisTableDensity = 'comfortable' | 'compact' | 'cozy';
|
|
|
4351
4575
|
interface IrisTableProps<Row extends Record<string, unknown> = Record<string, unknown>> extends IrisTableLayoutProps<Row>, IrisTableEditingProps<Row>, IrisTableQueryProps<Row>, IrisTableAdvancedProps<Row> {
|
|
4352
4576
|
}
|
|
4353
4577
|
|
|
4578
|
+
/** URL-state snapshot (batch DV): the pieces `urlState` reads/writes in the
|
|
4579
|
+
* `_table` query param. Mirror of `IrisTablePersistedState` minus the
|
|
4580
|
+
* layout/expansion pieces — a deep link carries what affects served rows. */
|
|
4581
|
+
interface IrisTableUrlState {
|
|
4582
|
+
/** Wire schema version — decode rejects anything else (forward-compat). */
|
|
4583
|
+
v: 1;
|
|
4584
|
+
/** Single-column sort (omitted when inactive; null never encoded). */
|
|
4585
|
+
sort?: IrisTableSortState | null;
|
|
4586
|
+
/** Multi-column sort list (multiSort mode only, non-empty). */
|
|
4587
|
+
sorts?: IrisTableSortState[];
|
|
4588
|
+
/** Text filters (column key → filter text, non-empty map only). */
|
|
4589
|
+
filters?: Record<string, string>;
|
|
4590
|
+
/** Checked filter sets (column key → values, non-empty map only). */
|
|
4591
|
+
filterValues?: IrisTableFilterValues;
|
|
4592
|
+
/** 1-based page (proxy only; omitted when 1). */
|
|
4593
|
+
page?: number;
|
|
4594
|
+
/** Rows per page (proxy only). */
|
|
4595
|
+
pageSize?: number;
|
|
4596
|
+
}
|
|
4597
|
+
/** Query-param key that carries the whole payload. */
|
|
4598
|
+
declare const IRIS_URL_STATE_KEY = "_table";
|
|
4599
|
+
/** Sticky zero-height endcap: pins the button to the bottom of the scroll
|
|
4600
|
+
* viewport (an absolute box would ride the content — the BU watermark
|
|
4601
|
+
* precedent); z 3 paints above the sticky header (z 2) / pinned columns
|
|
4602
|
+
* (z 1) but below the floating panels. pointerEvents none — the zero-height
|
|
4603
|
+
* strip never eats a click. */
|
|
4354
4604
|
/**
|
|
4355
4605
|
* Data-driven table. Renders as a CSS-grid layout (no native `<table>`) so it
|
|
4356
4606
|
* can support future virtual scroll / column resize uniformly. Wires ARIA
|
|
@@ -4358,7 +4608,7 @@ interface IrisTableProps<Row extends Record<string, unknown> = Record<string, un
|
|
|
4358
4608
|
*
|
|
4359
4609
|
* Sortable columns cycle `none → asc → desc → none` on click.
|
|
4360
4610
|
*/
|
|
4361
|
-
declare function IrisTable<Row extends Record<string, unknown>>({ columns, data, rowKey, selectable, selection: selectionProp, defaultSelection, onSelectionChange, sort: sortProp, defaultSort, onSortChange, multiSort, multiSortState: multiSortStateProp, defaultMultiSort, onMultiSortChange, striped, size, density, densityToggle, seqStartIndex, seqMethod, currentRowKey, onCurrentRowChange, beforeCurrentRowChange, currentColumnKey, onCurrentColumnChange, beforeCurrentColumnChange, onHeaderClick, showHeader, footerData, footerMethod, footerSpanMethod, headerAlign, footerAlign, autoDetectTypes, summaryRowStyle, aggregateAccuracy, highlightHoverRow, showHeaderOverflow, showFooterOverflow, watermark, height, minHeight, maxHeight, scrollbarConfig, scrollbarThumb, headerStats, editDirtyConfig, autoResize, syncResize, responsive, keepSource, zIndex, rowId, mergeFooterItems, rowClassName, cellClassName, headerCellClassName, footerCellClassName, rowStyle, cellStyle, conditionalStyles, headerCellStyle, footerCellStyle, onCellClick, onCellDblClick, bordered, round, padding, resizableColumns, widthHint, autoResizeColumns, columnWidths: columnWidthsProp, defaultColumnWidths, onColumnWidthsChange, columnWidthsReset, columnPinMenu, pinnedColumns, onColumnPinnedChange, pinnedDrag, onPinnedCountChange, onRowClick, onRowDblClick, onCellEdit, onEditStart, onEditClosed, editAutosave, onAutosave, editAutoHeight, charCount, editPreview, pattern, patternFill, columnTotals, expandScrollPreserve, shortcutHints, onSelectAllChange, onScroll, tableRef, onDataChange, checkMethod, pagerConfig, editConfig, validConfig, rowDrag, rowDragBetween, columnDrag, columnVisibility, onColumnVisibilityChange, columnOrder, onColumnOrderChange, filters, onFiltersChange, filterValues, onFilterValuesChange, formConfig, toolbar, zoomConfig, importPreview, layouts, tooltipConfig, annotations, cellNote, notePopover, annotationEditing, onAnnotationsChange, exportAnnotations, presence, headerTooltipConfig, footerTooltipConfig, contextMenu, valueDistribution, nlSummary, chartPreview, autoRefresh, freshness, validationSummary, auditLog, perfStats, versionHistory, editSidebar, compareWith, autoLink, recentFilters, formulaTables, exportNames, printable, seq, spanMethod, mergeHeaderCells, renderDetail, rowExpandable, defaultExpandedRowKeys, expandAll, onExpandedRowsChange, onExpandChange, onTreeExpandChange, getSubRows, lazyLoad, expandAnimation, keyboardNavigation, tableShortcuts, editKeys, keymap, hotkeyScope, outerScope, groupBy, groupCollapsed, defaultGroupCollapsed, onGroupCollapseChange, cellRange, rangeFill, cellDrag, clipConfig, pasteOptions, fnr, searchHighlight, undo, checkboxRange, selectionDrag, virtualScroll, rowHeight, persistState, autoSaveState, views, onActiveViewChange, tableTabs, query, onQueryChange, columnVirtualization, emptyState, loading, error, loadingState, errorState, onRetry, proxyConfig, showCellRefs, selectionSummary, style, className, ...rest }: IrisTableProps<Row>): React.ReactElement;
|
|
4611
|
+
declare function IrisTable<Row extends Record<string, unknown>>({ columns, data, rowKey, selectable, selection: selectionProp, defaultSelection, onSelectionChange, sort: sortProp, defaultSort, onSortChange, multiSort, multiSortState: multiSortStateProp, defaultMultiSort, onMultiSortChange, striped, size, density, densityToggle, seqStartIndex, seqMethod, currentRowKey, onCurrentRowChange, beforeCurrentRowChange, currentColumnKey, onCurrentColumnChange, beforeCurrentColumnChange, onHeaderClick, showHeader, footerData, footerMethod, footerSpanMethod, headerAlign, footerAlign, autoDetectTypes, summaryRowStyle, aggregateAccuracy, highlightHoverRow, showHeaderOverflow, showFooterOverflow, watermark, height, minHeight, maxHeight, scrollbarConfig, scrollbarThumb, scrollToTop, headerStats, editDirtyConfig, autoResize, syncResize, responsive, keepSource, zIndex, rowId, mergeFooterItems, rowClassName, cellClassName, headerCellClassName, footerCellClassName, rowStyle, cellStyle, conditionalStyles, headerCellStyle, footerCellStyle, onCellClick, onCellDblClick, onTableEvent, bordered, round, padding, resizableColumns, widthHint, autoResizeColumns, columnWidths: columnWidthsProp, defaultColumnWidths, onColumnWidthsChange, columnWidthsReset, columnPinMenu, pinnedColumns: pinnedColumnsProp, onColumnPinnedChange, pinnedDrag, onPinnedCountChange, onRowClick, onRowDblClick, onCellEdit, onEditStart, onEditClosed, editAutosave, onAutosave, editAutoHeight, charCount, editPreview, pattern, patternFill, columnStats, columnTotals, expandScrollPreserve, shortcutHints, onSelectAllChange, onScroll, tableRef, onDataChange, checkMethod, pagerConfig, editConfig, validConfig, rowDrag, rowDragBetween, columnDrag, columnVisibility: columnVisibilityProp, onColumnVisibilityChange, columnFade, columnOrder: columnOrderProp, onColumnOrderChange, filters, onFiltersChange, filterValues, onFilterValuesChange, formConfig, toolbar, zoomConfig, importPreview, layouts, tooltipConfig, annotations, cellNote, notePopover, annotationEditing, onAnnotationsChange, exportAnnotations, presence, headerTooltipConfig, footerTooltipConfig, contextMenu, valueDistribution, nlSummary, chartPreview, autoRefresh, freshness, validationSummary, auditLog, perfStats, versionHistory, editSidebar, compareWith, mergeCompare, autoLink, recentFilters, formulaTables, exportNames, printable, seq, spanMethod, mergeHeaderCells, renderDetail, rowExpandable, defaultExpandedRowKeys, expandAll, onExpandedRowsChange, onExpandChange, onTreeExpandChange, getSubRows, lazyLoad, expandAnimation, keyboardNavigation, tableShortcuts, editKeys, keymap, hotkeyScope, outerScope, groupBy, groupCollapsed, defaultGroupCollapsed, onGroupCollapseChange, cellRange, rangeFill, cellDrag, cellDragCopy, clipConfig, pasteOptions, fnr, searchHighlight, undo, checkboxRange, selectionDrag, virtualScroll, rowHeight, adaptiveRowHeight, persistState, autoSaveState, urlState, views, onActiveViewChange, tableTabs, query, onQueryChange, columnVirtualization, emptyState, loading, error, loadingState, errorState, onRetry, proxyConfig, showCellRefs, selectionSummary, style, className, ...rest }: IrisTableProps<Row>): React.ReactElement;
|
|
4362
4612
|
|
|
4363
4613
|
/**
|
|
4364
4614
|
* Serialize rows as a CSV string per RFC 4180. Column order determines field
|
|
@@ -4419,6 +4669,8 @@ interface IrisVirtualScrollProps<T = unknown> {
|
|
|
4419
4669
|
buffer?: number;
|
|
4420
4670
|
/** Stable key per item. Falls back to index. */
|
|
4421
4671
|
keyOf?: (item: T, index: number) => string | number;
|
|
4672
|
+
/** Optional Grid Core-owned controller. When omitted, this component owns one. */
|
|
4673
|
+
virtualizer?: Virtualizer;
|
|
4422
4674
|
/** Render a single item. */
|
|
4423
4675
|
renderItem: (item: T, index: number) => React.ReactNode;
|
|
4424
4676
|
onScroll?: (scrollTop: number) => void;
|
|
@@ -4501,6 +4753,39 @@ interface IrisDatePickerProps {
|
|
|
4501
4753
|
*/
|
|
4502
4754
|
declare function IrisDatePicker({ value: valueProp, defaultValue, onValueChange, min, max, weekStartsOn, locale, placeholder, disabled, invalid, placement, id, ariaDescribedby, style, className, ...rest }: IrisDatePickerProps): React.ReactElement;
|
|
4503
4755
|
|
|
4756
|
+
/**
|
|
4757
|
+
* Month-only picker composed from Iris Popover primitives.
|
|
4758
|
+
*
|
|
4759
|
+
* The public value is a local-time `Date` normalized to the first day of its
|
|
4760
|
+
* month. The panel intentionally offers a 12-month grid rather than a native
|
|
4761
|
+
* month input, select, or day-level calendar.
|
|
4762
|
+
*
|
|
4763
|
+
* @example
|
|
4764
|
+
* <IrisMonthPicker value={month} onValueChange={setMonth} locale="en-US" />
|
|
4765
|
+
*/
|
|
4766
|
+
interface IrisMonthPickerProps {
|
|
4767
|
+
value?: Date | null;
|
|
4768
|
+
defaultValue?: Date | null;
|
|
4769
|
+
onValueChange?: (next: Date | null) => void;
|
|
4770
|
+
/** Initial visible year when no value is selected. */
|
|
4771
|
+
defaultMonth?: Date | null;
|
|
4772
|
+
/** Inclusive month bounds; individual days are ignored. */
|
|
4773
|
+
min?: Date;
|
|
4774
|
+
max?: Date;
|
|
4775
|
+
locale?: string;
|
|
4776
|
+
placeholder?: string;
|
|
4777
|
+
disabled?: boolean;
|
|
4778
|
+
invalid?: boolean;
|
|
4779
|
+
placement?: Placement;
|
|
4780
|
+
/** id forwarded to the trigger. */
|
|
4781
|
+
id?: string;
|
|
4782
|
+
/** Forwarded as aria-describedby on the trigger. */
|
|
4783
|
+
ariaDescribedby?: string;
|
|
4784
|
+
style?: React.CSSProperties;
|
|
4785
|
+
className?: string;
|
|
4786
|
+
}
|
|
4787
|
+
declare function IrisMonthPicker({ value: valueProp, defaultValue, onValueChange, defaultMonth, min, max, locale, placeholder, disabled, invalid, placement, id, ariaDescribedby, style, className, ...rest }: IrisMonthPickerProps): React.ReactElement;
|
|
4788
|
+
|
|
4504
4789
|
interface IrisTreeNode {
|
|
4505
4790
|
/** Stable unique identifier. */
|
|
4506
4791
|
id: string;
|
|
@@ -4974,4 +5259,4 @@ interface IrisCommandPaletteProps extends Omit<React.HTMLAttributes<HTMLDivEleme
|
|
|
4974
5259
|
*/
|
|
4975
5260
|
declare function IrisCommandPalette({ open, onOpenChange, items, placeholder, emptyText, filter, onSelect, virtual, style, ...rest }: IrisCommandPaletteProps): React.ReactElement | null;
|
|
4976
5261
|
|
|
4977
|
-
export { AccordionContext, type AccordionContextValue, DialogContext, type DialogContextValue, type DragState, DrawerContext, type DrawerContextValue, DropdownContext, type DropdownContextValue, IrisAccordion, IrisAccordionItem, type IrisAccordionItemProps, type IrisAccordionProps, type IrisAccordionValue, IrisAffix, type IrisAffixProps, IrisAlert, type IrisAlertProps, type IrisAlertTone, IrisAnchor, type IrisAnchorItem, type IrisAnchorProps, IrisAspectRatio, type IrisAspectRatioProps, IrisAvatar, type IrisAvatarProps, type IrisAvatarShape, type IrisAvatarSize, IrisBackTop, type IrisBackTopProps, IrisBadge, type IrisBadgeProps, type IrisBadgeSize, type IrisBadgeTone, type IrisBadgeVariant, IrisBanner, type IrisBannerProps, type IrisBannerTone, IrisBreadcrumb, IrisBreadcrumbItem, type IrisBreadcrumbItemProps, type IrisBreadcrumbProps, IrisButton, type IrisButtonProps, type IrisButtonSize, type IrisButtonType, type IrisButtonVariant, IrisCalendar, type IrisCalendarProps, IrisCard, type IrisCardPadding, type IrisCardProps, type IrisCardVariant, IrisCarousel, type IrisCarouselProps, IrisCascader, type IrisCascaderNode, type IrisCascaderProps, type IrisCascaderSize, IrisCheckbox, type IrisCheckboxProps, type IrisCheckboxSize, type IrisCheckboxValue, IrisChip, type IrisChipProps, type IrisChipSize, type IrisChipTone, type IrisChipVariant, IrisColorPicker, type IrisColorPickerProps, IrisCombobox, type IrisComboboxOption, type IrisComboboxProps, type IrisComboboxSize, type IrisCommandItem, IrisCommandPalette, type IrisCommandPaletteProps, IrisCopyButton, type IrisCopyButtonProps, type IrisCopyButtonSize, IrisCountdown, type IrisCountdownProps, type IrisCountdownSize, IrisDatePicker, type IrisDatePickerProps, type IrisDateRange, IrisDateRangePicker, type IrisDateRangePickerProps, IrisDescriptions, type IrisDescriptionsItem, type IrisDescriptionsLayout, type IrisDescriptionsProps, IrisDialog, IrisDialogClose, type IrisDialogCloseProps, IrisDialogContent, type IrisDialogContentProps, IrisDialogDescription, type IrisDialogDescriptionProps, type IrisDialogProps, IrisDialogTitle, type IrisDialogTitleProps, IrisDialogTrigger, type IrisDialogTriggerProps, IrisDivider, type IrisDividerOrientation, type IrisDividerProps, type IrisDividerSpacing, IrisDragger, type IrisDraggerBounds, type IrisDraggerPosition, type IrisDraggerProps, IrisDrawer, IrisDrawerClose, type IrisDrawerCloseProps, IrisDrawerContent, type IrisDrawerContentProps, type IrisDrawerProps, type IrisDrawerSide, IrisDrawerTitle, type IrisDrawerTitleProps, IrisDrawerTrigger, type IrisDrawerTriggerProps, IrisDropdown, IrisDropdownItem, type IrisDropdownItemProps, IrisDropdownMenu, type IrisDropdownMenuProps, type IrisDropdownProps, IrisDropdownSeparator, type IrisDropdownSeparatorProps, IrisDropdownTrigger, type IrisDropdownTriggerProps, IrisEmptyState, type IrisEmptyStateProps, IrisFieldset, type IrisFieldsetProps, IrisFileUpload, type IrisFileUploadFile, type IrisFileUploadProps, type IrisFileUploadRejectReason, type IrisFileUploadRejection, IrisFloatButton, type IrisFloatButtonAction, type IrisFloatButtonProps, type IrisFloatButtonShape, IrisFormField, type IrisFormFieldProps, IrisGauge, type IrisGaugeProps, type IrisGaugeStatus, IrisIcon, type IrisIconProps, IrisImage, type IrisImageProps, IrisInput, type IrisInputProps, type IrisInputSize, type IrisInputType, IrisKbd, type IrisKbdProps, type IrisKbdSize, IrisList, type IrisListItem, type IrisListProps, IrisMarquee, type IrisMarqueeDirection, type IrisMarqueeProps, IrisMasonry, type IrisMasonryProps, type IrisMentionOption, IrisMentions, type IrisMentionsProps, IrisMenu, IrisMenuContent, type IrisMenuContentProps, IrisMenuItem, type IrisMenuItemProps, type IrisMenuProps, IrisMenuSeparator, type IrisMenuSeparatorProps, IrisMenuSub, type IrisMenuSubProps, IrisMenuTrigger, type IrisMenuTriggerProps, IrisNumberInput, type IrisNumberInputProps, type IrisNumberInputSize, IrisOtpInput, type IrisOtpInputProps, type IrisOtpInputSize, type IrisOtpInputType, IrisPagination, type IrisPaginationProps, type IrisPaginationSize, IrisPasswordInput, type IrisPasswordInputProps, IrisPopover, IrisPopoverContent, type IrisPopoverContentProps, type IrisPopoverProps, IrisPopoverTrigger, type IrisPopoverTriggerProps, IrisProgress, IrisProgressCircle, type IrisProgressCircleProps, type IrisProgressCircleStatus, type IrisProgressProps, type IrisProgressSize, type IrisProgressTone, IrisRadio, IrisRadioGroup, type IrisRadioGroupProps, type IrisRadioProps, type IrisRadioSize, IrisRangeSlider, type IrisRangeSliderProps, type IrisRangeSliderValue, IrisRating, type IrisRatingProps, type IrisRatingSize, IrisResizer, type IrisResizerHandle, type IrisResizerProps, type IrisResizerSize, IrisResult, type IrisResultProps, type IrisResultStatus, IrisRibbon, type IrisRibbonPlacement, type IrisRibbonProps, IrisScrollArea, type IrisScrollAreaAxis, type IrisScrollAreaProps, IrisSegmented, type IrisSegmentedOption, type IrisSegmentedProps, type IrisSegmentedSize, IrisSelect, type IrisSelectItem, type IrisSelectProps, type IrisSelectSize, type IrisSelectTriggerState, IrisSkeleton, type IrisSkeletonProps, type IrisSkeletonShape, IrisSlider, type IrisSliderOrientation, type IrisSliderProps, IrisSlot, type IrisSlotProps, IrisSpinner, type IrisSpinnerProps, type IrisSpinnerSize, IrisSplitButton, type IrisSplitButtonAction, type IrisSplitButtonProps, type IrisSplitButtonSize, type IrisSplitButtonVariant, IrisSplitter, type IrisSplitterOrientation, type IrisSplitterProps, IrisStatistic, type IrisStatisticProps, type IrisStatisticSize, type IrisStatisticTrend, type IrisStepStatus, IrisStepper, type IrisStepperOrientation, type IrisStepperProps, IrisStepperStep, type IrisStepperStepProps, IrisSwitch, type IrisSwitchProps, type IrisSwitchSize, IrisTable, type IrisTableAggregateOp, type IrisTableAlign, type IrisTableAuditEntry, type IrisTableAutoSaveStateConfig, type IrisTableCellClickParams, type IrisTableCellEditEvent, type IrisTableColumn, type IrisTableColumnWidths, type IrisTableConditionalStyle, type IrisTableContextMenuParams, type IrisTableCustomConfig, type IrisTableEditClosedParams, type IrisTableEditDirtyConfig, type IrisTableEditStartParams, type IrisTableEditor, type IrisTableEmptyState, type IrisTableFilterOption, type IrisTableFilterValues, type IrisTableFooterMethodParams, type IrisTableFooterSpanMethod, type IrisTableFooterSpanParams, type IrisTableFormConfig, type IrisTableFormField, type IrisTableHandle, type IrisTableMergeCell, type IrisTableMergeFooterItem, type IrisTableNamedView, type IrisTablePagerConfig, type IrisTablePersistConfig, type IrisTablePersistPiece, type IrisTablePersistedState, type IrisTablePresenceEntry, type IrisTableProps, type IrisTableProxyQueryParams, type IrisTableRenderDetail, type IrisTableRowDragBetweenTarget, type IrisTableRowExpandable, type IrisTableScrollParams, type IrisTableScrollbarConfig, type IrisTableSeqMethodParams, type IrisTableSortDirection, type IrisTableSortState, type IrisTableSpan, type IrisTableTab, type IrisTableTooltipConfig, type IrisTableValidConfig, type IrisTableViewConfig, type IrisTableVirtualOptions, IrisTabs, IrisTabsContent, type IrisTabsContentProps, IrisTabsList, type IrisTabsListProps, type IrisTabsOrientation, type IrisTabsProps, IrisTabsTrigger, type IrisTabsTriggerProps, IrisTagInput, type IrisTagInputProps, IrisTextarea, type IrisTextareaProps, type IrisTextareaSize, IrisTimePicker, type IrisTimePickerFormat, type IrisTimePickerProps, type IrisTimeValue, IrisTimeline, type IrisTimelineItem, type IrisTimelineProps, type IrisTimelineVariant, type IrisToast, type IrisToastInput, type IrisToastPosition, type IrisToastVariant, IrisToastViewport, type IrisToastViewportProps, IrisToggleGroup, IrisToggleGroupItem, type IrisToggleGroupItemProps, type IrisToggleGroupMultipleProps, type IrisToggleGroupOrientation, type IrisToggleGroupProps, type IrisToggleGroupSingleProps, type IrisToggleGroupSize, type IrisToggleGroupType, type IrisToggleGroupValue, type IrisToggleGroupVariant, IrisToolbar, type IrisToolbarOrientation, type IrisToolbarProps, IrisTooltip, type IrisTooltipProps, IrisTour, type IrisTourProps, type IrisTourStep, IrisTransfer, type IrisTransferItem, type IrisTransferProps, type IrisTransferVirtualOptions, IrisTree, type IrisTreeNode, type IrisTreeProps, IrisTreeSelect, type IrisTreeSelectNode, type IrisTreeSelectProps, type IrisTreeSelectSize, type IrisTreeSelectionMode, type IrisTreeVirtualOptions, IrisVirtualScroll, type IrisVirtualScrollAlign, type IrisVirtualScrollHandle, type IrisVirtualScrollProps, IrisVisuallyHidden, type IrisVisuallyHiddenProps, IrisWatermark, type IrisWatermarkProps, MenuContext, type MenuContextValue, PopoverContext, type PopoverContextValue, RadioGroupContext, type RadioGroupContextValue, StepperContext, type StepperContextValue, TabsContext, type TabsContextValue, ToggleGroupContext, type ToggleGroupContextValue, type UseDragOptions, type UseToastReturn, __PROGRESS_STYLE_ID, __SKELETON_STYLE_ID, __SPINNER_STYLE_ID, __resetProgressStyles, __resetSkeletonStyles, __resetSpinnerStyles, clearToasts, defaultFilter, dismissToast, downloadCsv, downloadExcel, exportCsv, exportExcel, formatBytes, formatRemaining, getToasts, pushToast, subscribeToasts, useAccordionContext, useDialogContext, useDisposableScope, useDrag, useDrawerContext, useDropdownContext, useMachine, useMenuContext, usePopoverContext, useReconnectingSource, useResilientFetcher, useStepperContext, useStore, useStoreSelector, useTabsContext, useToast, useToggleGroupContext };
|
|
5262
|
+
export { AccordionContext, type AccordionContextValue, DialogContext, type DialogContextValue, type DragState, DrawerContext, type DrawerContextValue, DropdownContext, type DropdownContextValue, IRIS_URL_STATE_KEY, IrisAccordion, IrisAccordionItem, type IrisAccordionItemProps, type IrisAccordionProps, type IrisAccordionValue, IrisAffix, type IrisAffixProps, IrisAlert, type IrisAlertProps, type IrisAlertTone, IrisAnchor, type IrisAnchorItem, type IrisAnchorProps, IrisAspectRatio, type IrisAspectRatioProps, IrisAvatar, type IrisAvatarProps, type IrisAvatarShape, type IrisAvatarSize, IrisBackTop, type IrisBackTopProps, IrisBadge, type IrisBadgeProps, type IrisBadgeSize, type IrisBadgeTone, type IrisBadgeVariant, IrisBanner, type IrisBannerProps, type IrisBannerTone, IrisBreadcrumb, IrisBreadcrumbItem, type IrisBreadcrumbItemProps, type IrisBreadcrumbProps, IrisButton, type IrisButtonProps, type IrisButtonSize, type IrisButtonType, type IrisButtonVariant, IrisCalendar, type IrisCalendarProps, IrisCard, type IrisCardPadding, type IrisCardProps, type IrisCardVariant, IrisCarousel, type IrisCarouselProps, IrisCascader, type IrisCascaderNode, type IrisCascaderProps, type IrisCascaderSize, IrisCheckbox, type IrisCheckboxProps, type IrisCheckboxSize, type IrisCheckboxValue, IrisChip, type IrisChipProps, type IrisChipSize, type IrisChipTone, type IrisChipVariant, IrisColorPicker, type IrisColorPickerProps, IrisCombobox, type IrisComboboxOption, type IrisComboboxProps, type IrisComboboxSize, type IrisCommandItem, IrisCommandPalette, type IrisCommandPaletteProps, IrisCopyButton, type IrisCopyButtonProps, type IrisCopyButtonSize, IrisCountdown, type IrisCountdownProps, type IrisCountdownSize, IrisDatePicker, type IrisDatePickerProps, type IrisDateRange, IrisDateRangePicker, type IrisDateRangePickerProps, IrisDescriptions, type IrisDescriptionsItem, type IrisDescriptionsLayout, type IrisDescriptionsProps, IrisDialog, IrisDialogClose, type IrisDialogCloseProps, IrisDialogContent, type IrisDialogContentProps, IrisDialogDescription, type IrisDialogDescriptionProps, type IrisDialogProps, IrisDialogTitle, type IrisDialogTitleProps, IrisDialogTrigger, type IrisDialogTriggerProps, IrisDivider, type IrisDividerOrientation, type IrisDividerProps, type IrisDividerSpacing, IrisDragger, type IrisDraggerBounds, type IrisDraggerPosition, type IrisDraggerProps, IrisDrawer, IrisDrawerClose, type IrisDrawerCloseProps, IrisDrawerContent, type IrisDrawerContentProps, type IrisDrawerProps, type IrisDrawerSide, IrisDrawerTitle, type IrisDrawerTitleProps, IrisDrawerTrigger, type IrisDrawerTriggerProps, IrisDropdown, IrisDropdownItem, type IrisDropdownItemProps, IrisDropdownMenu, type IrisDropdownMenuProps, type IrisDropdownProps, IrisDropdownSeparator, type IrisDropdownSeparatorProps, IrisDropdownTrigger, type IrisDropdownTriggerProps, IrisEmptyState, type IrisEmptyStateProps, IrisFieldset, type IrisFieldsetProps, IrisFileUpload, type IrisFileUploadFile, type IrisFileUploadProps, type IrisFileUploadRejectReason, type IrisFileUploadRejection, IrisFloatButton, type IrisFloatButtonAction, type IrisFloatButtonProps, type IrisFloatButtonShape, IrisFormField, type IrisFormFieldProps, IrisGauge, type IrisGaugeProps, type IrisGaugeStatus, IrisIcon, type IrisIconProps, IrisImage, type IrisImageProps, IrisInput, type IrisInputProps, type IrisInputSize, type IrisInputType, IrisKbd, type IrisKbdProps, type IrisKbdSize, IrisList, type IrisListItem, type IrisListProps, IrisMarquee, type IrisMarqueeDirection, type IrisMarqueeProps, IrisMasonry, type IrisMasonryProps, type IrisMentionOption, IrisMentions, type IrisMentionsProps, IrisMenu, IrisMenuContent, type IrisMenuContentProps, IrisMenuItem, type IrisMenuItemProps, type IrisMenuProps, IrisMenuSeparator, type IrisMenuSeparatorProps, IrisMenuSub, type IrisMenuSubProps, IrisMenuTrigger, type IrisMenuTriggerProps, IrisMonthPicker, type IrisMonthPickerProps, IrisNumberInput, type IrisNumberInputProps, type IrisNumberInputSize, IrisOtpInput, type IrisOtpInputProps, type IrisOtpInputSize, type IrisOtpInputType, IrisPagination, type IrisPaginationProps, type IrisPaginationSize, IrisPasswordInput, type IrisPasswordInputProps, IrisPopover, IrisPopoverContent, type IrisPopoverContentProps, type IrisPopoverProps, IrisPopoverTrigger, type IrisPopoverTriggerProps, IrisProgress, IrisProgressCircle, type IrisProgressCircleProps, type IrisProgressCircleStatus, type IrisProgressProps, type IrisProgressSize, type IrisProgressTone, IrisRadio, IrisRadioGroup, type IrisRadioGroupProps, type IrisRadioProps, type IrisRadioSize, IrisRangeSlider, type IrisRangeSliderProps, type IrisRangeSliderValue, IrisRating, type IrisRatingProps, type IrisRatingSize, IrisResizer, type IrisResizerHandle, type IrisResizerProps, type IrisResizerSize, IrisResult, type IrisResultProps, type IrisResultStatus, IrisRibbon, type IrisRibbonPlacement, type IrisRibbonProps, IrisScrollArea, type IrisScrollAreaAxis, type IrisScrollAreaProps, IrisSegmented, type IrisSegmentedOption, type IrisSegmentedProps, type IrisSegmentedSize, IrisSelect, type IrisSelectItem, type IrisSelectProps, type IrisSelectSize, type IrisSelectTriggerState, IrisSkeleton, type IrisSkeletonProps, type IrisSkeletonShape, IrisSlider, type IrisSliderOrientation, type IrisSliderProps, IrisSlot, type IrisSlotProps, IrisSpinner, type IrisSpinnerProps, type IrisSpinnerSize, IrisSplitButton, type IrisSplitButtonAction, type IrisSplitButtonProps, type IrisSplitButtonSize, type IrisSplitButtonVariant, IrisSplitter, type IrisSplitterOrientation, type IrisSplitterProps, IrisStatistic, type IrisStatisticProps, type IrisStatisticSize, type IrisStatisticTrend, type IrisStepStatus, IrisStepper, type IrisStepperOrientation, type IrisStepperProps, IrisStepperStep, type IrisStepperStepProps, IrisSwitch, type IrisSwitchProps, type IrisSwitchSize, IrisTable, type IrisTableAggregateOp, type IrisTableAlign, type IrisTableAuditEntry, type IrisTableAutoSaveStateConfig, type IrisTableCellClickParams, type IrisTableCellEditEvent, type IrisTableColumn, type IrisTableColumnStat, type IrisTableColumnWidths, type IrisTableConditionalStyle, type IrisTableContextMenuParams, type IrisTableCustomConfig, type IrisTableEditClosedParams, type IrisTableEditDirtyConfig, type IrisTableEditStartParams, type IrisTableEditor, type IrisTableEmptyState, type IrisTableEvent, type IrisTableFilterOption, type IrisTableFilterValues, type IrisTableFooterMethodParams, type IrisTableFooterSpanMethod, type IrisTableFooterSpanParams, type IrisTableFormConfig, type IrisTableFormField, type IrisTableHandle, type IrisTableMergeCell, type IrisTableMergeFooterItem, type IrisTableNamedView, type IrisTablePagerConfig, type IrisTablePersistConfig, type IrisTablePersistPiece, type IrisTablePersistedState, type IrisTablePresenceEntry, type IrisTableProps, type IrisTableProxyQueryParams, type IrisTableRenderDetail, type IrisTableRowDragBetweenTarget, type IrisTableRowExpandable, type IrisTableScrollParams, type IrisTableScrollbarConfig, type IrisTableSeqMethodParams, type IrisTableSortDirection, type IrisTableSortState, type IrisTableSpan, type IrisTableTab, type IrisTableTooltipConfig, type IrisTableUrlState, type IrisTableValidConfig, type IrisTableViewConfig, type IrisTableVirtualOptions, IrisTabs, IrisTabsContent, type IrisTabsContentProps, IrisTabsList, type IrisTabsListProps, type IrisTabsOrientation, type IrisTabsProps, IrisTabsTrigger, type IrisTabsTriggerProps, IrisTagInput, type IrisTagInputProps, IrisTextarea, type IrisTextareaProps, type IrisTextareaSize, IrisTimePicker, type IrisTimePickerFormat, type IrisTimePickerProps, type IrisTimeValue, IrisTimeline, type IrisTimelineItem, type IrisTimelineProps, type IrisTimelineVariant, type IrisToast, type IrisToastInput, type IrisToastPosition, type IrisToastVariant, IrisToastViewport, type IrisToastViewportProps, IrisToggleGroup, IrisToggleGroupItem, type IrisToggleGroupItemProps, type IrisToggleGroupMultipleProps, type IrisToggleGroupOrientation, type IrisToggleGroupProps, type IrisToggleGroupSingleProps, type IrisToggleGroupSize, type IrisToggleGroupType, type IrisToggleGroupValue, type IrisToggleGroupVariant, IrisToolbar, type IrisToolbarOrientation, type IrisToolbarProps, IrisTooltip, type IrisTooltipProps, IrisTour, type IrisTourProps, type IrisTourStep, IrisTransfer, type IrisTransferItem, type IrisTransferProps, type IrisTransferVirtualOptions, IrisTree, type IrisTreeNode, type IrisTreeProps, IrisTreeSelect, type IrisTreeSelectNode, type IrisTreeSelectProps, type IrisTreeSelectSize, type IrisTreeSelectionMode, type IrisTreeVirtualOptions, IrisVirtualScroll, type IrisVirtualScrollAlign, type IrisVirtualScrollHandle, type IrisVirtualScrollProps, IrisVisuallyHidden, type IrisVisuallyHiddenProps, IrisWatermark, type IrisWatermarkProps, MenuContext, type MenuContextValue, PopoverContext, type PopoverContextValue, RadioGroupContext, type RadioGroupContextValue, StepperContext, type StepperContextValue, TabsContext, type TabsContextValue, ToggleGroupContext, type ToggleGroupContextValue, type UseDragOptions, type UseToastReturn, __PROGRESS_STYLE_ID, __SKELETON_STYLE_ID, __SPINNER_STYLE_ID, __resetProgressStyles, __resetSkeletonStyles, __resetSpinnerStyles, clearToasts, defaultFilter, dismissToast, downloadCsv, downloadExcel, exportCsv, exportExcel, formatBytes, formatRemaining, getToasts, pushToast, subscribeToasts, useAccordionContext, useDialogContext, useDisposableScope, useDrag, useDrawerContext, useDropdownContext, useMachine, useMenuContext, usePopoverContext, useReconnectingSource, useResilientFetcher, useStepperContext, useStore, useStoreSelector, useTabsContext, useToast, useToggleGroupContext };
|