@iris-ui-kit/vue 0.1.0 → 0.2.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/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as vue from 'vue';
2
- import { ShallowRef, VNode, PropType, ComputedRef, Ref, InjectionKey } from 'vue';
2
+ import { ShallowRef, Ref, VNode, PropType, ComputedRef, InjectionKey } from 'vue';
3
3
  import * as _iris_ui_kit_core from '@iris-ui-kit/core';
4
- import { ReadonlyStore, Store, Variant, Size, Placement, FloatingMachine, SpreadsheetXmlOptions } from '@iris-ui-kit/core';
5
- export { 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, createClientDataSource, createClientFetcher, createDataSource, createFloatingMachine, createGroupedView, createMachine, createResourceController, createStore, createTabsNav, endOfMonth, findNavNode, findNavPath, firstLeaf, flattenNav, formatLocalISO, formatMonthYear, generateId, getPageRange, getWeekdayNames, hexToRgba, hsvToRgb, hsvaToRgba, isBranch, isClosable, isOutOfRange, isSameDay, isSameMonth, mergeProps, rgbToHex, rgbToHsv, rgbaToHsva, startOfDay, startOfMonth, visibleNav } from '@iris-ui-kit/core';
4
+ import { ReadonlyStore, Store, RealtimeHandlers, RealtimeOptions, RealtimeStatus, ResilientFetcherOptions, ResilientFetcher, DisposableScope, Variant, Size, Placement, FloatingMachine, SpreadsheetXmlOptions } from '@iris-ui-kit/core';
5
+ 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, rgbToHex, rgbToHsv, rgbaToHsva, startOfDay, startOfMonth, visibleNav } from '@iris-ui-kit/core';
6
6
  export { IrisThemeContext, IrisThemeKey, ThemeProvider, UseThemeReturn, useColorScheme, useDirection, useTheme, useThemeContext } from './theme.js';
7
7
  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';
8
8
  export { IrisSkinContext, IrisSkinKey, SkinProvider, UseSkinReturn, useSkin, useSkinContext } from './skins.js';
@@ -13,7 +13,7 @@ export { UseAsyncResourceOptions, UseAsyncResourceReturn, UsePaginatedResourceOp
13
13
  export { UseResourceController, useResourceController } from './resource.js';
14
14
  export { UseDataSource, UseGroupedView, useDataSource, useGroupedView } from './data.js';
15
15
  export { DATA_STATE_CLASS, DataStateNodeProps, UseDataStateReturn, __resetDataStateStyles, installDataStateStyles, useDataState, usePrefersReducedMotion } from './motion.js';
16
- export { IrisAdminBreadcrumb, IrisAdminLayout, IrisAdminLayoutMode, IrisAdminTabs, IrisNavMenu, UseAdminShellConfig, UseAdminShellReturn, UseTabsNavReturn, useAdminShell, useTabsNav } from './admin.js';
16
+ export { IrisAdminBreadcrumb, IrisAdminContentHeight, IrisAdminContentWidth, IrisAdminLayout, IrisAdminLayoutMode, IrisAdminLayoutProps, IrisAdminMenuAlign, IrisAdminTabs, IrisNavMenu, UseAdminPreferencesReturn, UseAdminShellConfig, UseAdminShellReturn, UseTabsNavReturn, useAdminPreferences, useAdminShell, useTabsNav } from './admin.js';
17
17
  export { UndoStackReactiveState, useUndoStack } from './undo.js';
18
18
  export { UndoStack, UndoStackOptions, createUndoStack } from '@iris-ui-kit/core/undo';
19
19
  export { IrisProvider, IrisProviderProps, PluginStoreContext, PluginStoreContextKey, usePlugin, usePluginStore } from './provider.js';
@@ -43,6 +43,58 @@ declare function useStore<T>(store: ReadonlyStore<T>): Readonly<ShallowRef<T>>;
43
43
  */
44
44
  declare function useStoreSelector<T, U>(store: Store<T>, selector: (state: T) => U, equals?: (a: U, b: U) => boolean): Readonly<ShallowRef<U>>;
45
45
 
46
+ /**
47
+ * Vue composable for `createReconnectingSource` — a realtime subscription with
48
+ * automatic exponential-backoff reconnection.
49
+ *
50
+ * Returns a reactive `status` ref. The source is opened in `onMounted` and
51
+ * closed/cleaned up in `onUnmounted`.
52
+ */
53
+ declare function useReconnectingSource<T>(connect: (sink: {
54
+ message: (data: T) => void;
55
+ open: () => void;
56
+ error: (err: unknown) => void;
57
+ close: () => void;
58
+ }) => () => void, handlers: Pick<RealtimeHandlers<T>, 'onMessage' | 'onOpen' | 'onError' | 'onClose'>, options?: RealtimeOptions): Ref<RealtimeStatus>;
59
+
60
+ /**
61
+ * Vue composable for `createResilientFetcher` — a hardened async fetcher with
62
+ * cache dedup/TTL/SWR, circuit breaker, and optional rate limiting.
63
+ *
64
+ * The resilient fetcher is created once and lives for the component's lifetime.
65
+ * The cache is cleared on unmount.
66
+ *
67
+ * @example
68
+ * ```vue
69
+ * <script setup lang="ts">
70
+ * import { useResilientFetcher } from '@iris-ui-kit/vue'
71
+ * import { ref, onMounted } from 'vue'
72
+ *
73
+ * const rf = useResilientFetcher<{ name: string }>({ ttlMs: 30_000 })
74
+ * const user = ref<{ name: string } | null>(null)
75
+ *
76
+ * onMounted(async () => {
77
+ * user.value = await rf.fetch('user:1', async () => {
78
+ * const res = await fetch('/api/users/1')
79
+ * return res.json()
80
+ * })
81
+ * })
82
+ * </script>
83
+ * ```
84
+ */
85
+ declare function useResilientFetcher<T>(options?: ResilientFetcherOptions): ResilientFetcher<T>;
86
+
87
+ /**
88
+ * Vue composable for `createDisposableScope` — creates a disposable scope
89
+ * that is automatically torn down when the component is unmounted.
90
+ *
91
+ * Returns a reactive `scope` ref that stays alive for the component's lifetime.
92
+ * Call `scope.value.add(teardown)` to register cleanup callbacks.
93
+ */
94
+ declare function useDisposableScope(): {
95
+ value: DisposableScope;
96
+ };
97
+
46
98
  /**
47
99
  * Compose multiple Vue template refs into a single function ref. Each input
48
100
  * may be a `Ref<HTMLElement | null>`, a function ref `(el) => void`, or null.
@@ -210,8 +262,8 @@ declare const IrisButton: vue.DefineComponent<vue.ExtractPropTypes<{
210
262
  }>> & Readonly<{
211
263
  onClick?: ((_event: MouseEvent) => any) | undefined;
212
264
  }>, {
213
- type: IrisButtonType;
214
265
  size: _iris_ui_kit_core.Size;
266
+ type: IrisButtonType;
215
267
  loading: boolean;
216
268
  disabled: boolean;
217
269
  asChild: boolean;
@@ -732,9 +784,9 @@ declare const IrisDrawer: vue.DefineComponent<vue.ExtractPropTypes<{
732
784
  }>> & Readonly<{
733
785
  "onUpdate:open"?: ((_value: boolean) => any) | undefined;
734
786
  }>, {
787
+ open: boolean;
735
788
  size: string;
736
789
  side: IrisDrawerSide;
737
- open: boolean;
738
790
  defaultOpen: boolean;
739
791
  closeOnOutsideClick: boolean;
740
792
  closeOnEscape: boolean;
@@ -904,8 +956,8 @@ declare const IrisInput: vue.DefineComponent<vue.ExtractPropTypes<{
904
956
  onFocus?: ((_event: FocusEvent) => any) | undefined;
905
957
  "onUpdate:modelValue"?: ((_value: string) => any) | undefined;
906
958
  }>, {
907
- type: IrisInputType;
908
959
  size: Size;
960
+ type: IrisInputType;
909
961
  id: string;
910
962
  invalid: boolean;
911
963
  disabled: boolean;
@@ -1304,9 +1356,9 @@ declare const IrisOtpInput: vue.DefineComponent<vue.ExtractPropTypes<{
1304
1356
  "onUpdate:modelValue"?: ((_value: string) => any) | undefined;
1305
1357
  onComplete?: ((_value: string) => any) | undefined;
1306
1358
  }>, {
1359
+ size: IrisOtpInputSize;
1307
1360
  type: IrisOtpInputType;
1308
1361
  length: number;
1309
- size: IrisOtpInputSize;
1310
1362
  id: string;
1311
1363
  mask: boolean;
1312
1364
  invalid: boolean;
@@ -1732,8 +1784,8 @@ declare const IrisFormField: vue.DefineComponent<vue.ExtractPropTypes<{
1732
1784
  default: string;
1733
1785
  };
1734
1786
  }>> & Readonly<{}>, {
1735
- required: boolean;
1736
1787
  size: "sm" | "md";
1788
+ required: boolean;
1737
1789
  label: string;
1738
1790
  error: string;
1739
1791
  hint: string;
@@ -1821,8 +1873,8 @@ declare const IrisSwitch: vue.DefineComponent<vue.ExtractPropTypes<{
1821
1873
  onChange?: ((_value: boolean) => any) | undefined;
1822
1874
  "onUpdate:modelValue"?: ((_value: boolean) => any) | undefined;
1823
1875
  }>, {
1824
- name: string;
1825
1876
  size: Size;
1877
+ name: string;
1826
1878
  id: string;
1827
1879
  invalid: boolean;
1828
1880
  disabled: boolean;
@@ -1938,8 +1990,8 @@ declare const IrisCheckbox: vue.DefineComponent<vue.ExtractPropTypes<{
1938
1990
  "onUpdate:modelValue"?: ((_value: boolean) => any) | undefined;
1939
1991
  }>, {
1940
1992
  value: string | number;
1941
- name: string;
1942
1993
  size: Size;
1994
+ name: string;
1943
1995
  id: string;
1944
1996
  invalid: boolean;
1945
1997
  ariaLabel: string;
@@ -2004,8 +2056,8 @@ declare const IrisRadioGroup: vue.DefineComponent<vue.ExtractPropTypes<{
2004
2056
  }>> & Readonly<{
2005
2057
  "onUpdate:modelValue"?: ((_value: string | number | boolean) => any) | undefined;
2006
2058
  }>, {
2007
- name: string;
2008
2059
  size: Size;
2060
+ name: string;
2009
2061
  disabled: boolean;
2010
2062
  modelValue: string | number | boolean | null;
2011
2063
  defaultValue: string | number | boolean | null;
@@ -2182,9 +2234,23 @@ declare const IrisList: vue.DefineComponent<vue.ExtractPropTypes<{
2182
2234
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2183
2235
 
2184
2236
  type IrisSelectSize = Size;
2237
+ interface IrisSelectProps<T = unknown> {
2238
+ items: IrisListItem<T>[];
2239
+ modelValue?: T;
2240
+ defaultValue?: T;
2241
+ placeholder?: string;
2242
+ size?: IrisSelectSize;
2243
+ disabled?: boolean;
2244
+ placement?: Placement;
2245
+ invalid?: boolean;
2246
+ id?: string;
2247
+ ariaDescribedby?: string;
2248
+ teleport?: false | HTMLElement | string;
2249
+ }
2185
2250
  /**
2186
2251
  * Single-select dropdown. Composes Popover (positioning + dismiss) with List
2187
- * (keyboard nav + selection). Two-way binds via `v-model`.
2252
+ * (keyboard nav + selection). Two-way binds via `v-model`; when `modelValue`
2253
+ * is omitted it owns its value, seeded by `defaultValue`.
2188
2254
  *
2189
2255
  * The trigger is a styled `<button>` showing the current item's `label` (or
2190
2256
  * `value` as fallback) or `placeholder` when empty. Pass `#trigger` to fully
@@ -2198,6 +2264,10 @@ declare const IrisSelect: vue.DefineComponent<vue.ExtractPropTypes<{
2198
2264
  modelValue: {
2199
2265
  type: PropType<unknown>;
2200
2266
  };
2267
+ defaultValue: {
2268
+ type: PropType<unknown>;
2269
+ default: undefined;
2270
+ };
2201
2271
  placeholder: {
2202
2272
  type: StringConstructor;
2203
2273
  default: undefined;
@@ -2237,6 +2307,7 @@ declare const IrisSelect: vue.DefineComponent<vue.ExtractPropTypes<{
2237
2307
  [key: string]: any;
2238
2308
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
2239
2309
  'update:modelValue': (_value: unknown) => true;
2310
+ valueChange: (_value: unknown) => true;
2240
2311
  }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
2241
2312
  items: {
2242
2313
  type: PropType<IrisListItem<unknown>[]>;
@@ -2245,6 +2316,10 @@ declare const IrisSelect: vue.DefineComponent<vue.ExtractPropTypes<{
2245
2316
  modelValue: {
2246
2317
  type: PropType<unknown>;
2247
2318
  };
2319
+ defaultValue: {
2320
+ type: PropType<unknown>;
2321
+ default: undefined;
2322
+ };
2248
2323
  placeholder: {
2249
2324
  type: StringConstructor;
2250
2325
  default: undefined;
@@ -2282,6 +2357,7 @@ declare const IrisSelect: vue.DefineComponent<vue.ExtractPropTypes<{
2282
2357
  };
2283
2358
  }>> & Readonly<{
2284
2359
  "onUpdate:modelValue"?: ((_value: unknown) => any) | undefined;
2360
+ onValueChange?: ((_value: unknown) => any) | undefined;
2285
2361
  }>, {
2286
2362
  size: Size;
2287
2363
  id: string;
@@ -2291,6 +2367,7 @@ declare const IrisSelect: vue.DefineComponent<vue.ExtractPropTypes<{
2291
2367
  teleport: string | false | HTMLElement;
2292
2368
  placeholder: string;
2293
2369
  ariaDescribedby: string;
2370
+ defaultValue: undefined;
2294
2371
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2295
2372
 
2296
2373
  interface DragState {
@@ -2448,8 +2525,8 @@ declare const IrisAvatar: vue.DefineComponent<vue.ExtractPropTypes<{
2448
2525
  default: string;
2449
2526
  };
2450
2527
  }>> & Readonly<{}>, {
2451
- name: string;
2452
2528
  size: IrisAvatarSize;
2529
+ name: string;
2453
2530
  fallback: string;
2454
2531
  src: string;
2455
2532
  alt: string;
@@ -2589,8 +2666,8 @@ declare const IrisIcon: vue.DefineComponent<vue.ExtractPropTypes<{
2589
2666
  default: () => IrisIconRegistry;
2590
2667
  };
2591
2668
  }>> & Readonly<{}>, {
2592
- fill: boolean;
2593
2669
  size: string | number;
2670
+ fill: boolean;
2594
2671
  title: string;
2595
2672
  strokeWidth: number;
2596
2673
  registry: IrisIconRegistry;
@@ -2784,8 +2861,8 @@ declare const IrisAlert: vue.DefineComponent<vue.ExtractPropTypes<{
2784
2861
  onClose?: (() => any) | undefined;
2785
2862
  "onUpdate:open"?: ((_value: boolean) => any) | undefined;
2786
2863
  }>, {
2787
- title: string;
2788
2864
  open: boolean;
2865
+ title: string;
2789
2866
  closable: boolean;
2790
2867
  tone: IrisAlertTone;
2791
2868
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -2842,8 +2919,8 @@ declare const IrisBanner: vue.DefineComponent<vue.ExtractPropTypes<{
2842
2919
  onClose?: (() => any) | undefined;
2843
2920
  "onUpdate:open"?: ((_value: boolean) => any) | undefined;
2844
2921
  }>, {
2845
- sticky: boolean;
2846
2922
  open: boolean;
2923
+ sticky: boolean;
2847
2924
  closable: boolean;
2848
2925
  tone: IrisBannerTone;
2849
2926
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -2930,12 +3007,12 @@ declare const IrisSlider: vue.DefineComponent<vue.ExtractPropTypes<{
2930
3007
  "onUpdate:modelValue"?: ((_value: number) => any) | undefined;
2931
3008
  }>, {
2932
3009
  label: string;
3010
+ orientation: IrisSliderOrientation;
2933
3011
  disabled: boolean;
2934
3012
  modelValue: number;
2935
3013
  min: number;
2936
3014
  max: number;
2937
3015
  step: number;
2938
- orientation: IrisSliderOrientation;
2939
3016
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2940
3017
 
2941
3018
  type IrisPaginationSize = 'sm' | 'md';
@@ -3473,9 +3550,9 @@ declare const IrisStepper: vue.DefineComponent<vue.ExtractPropTypes<{
3473
3550
  onChange?: ((_value: number) => any) | undefined;
3474
3551
  "onUpdate:modelValue"?: ((_value: number) => any) | undefined;
3475
3552
  }>, {
3553
+ orientation: IrisStepperOrientation;
3476
3554
  linear: boolean;
3477
3555
  modelValue: number;
3478
- orientation: IrisStepperOrientation;
3479
3556
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
3480
3557
 
3481
3558
  /**
@@ -3646,12 +3723,12 @@ declare const IrisToggleGroup: vue.DefineComponent<vue.ExtractPropTypes<{
3646
3723
  }>> & Readonly<{
3647
3724
  "onUpdate:modelValue"?: ((_value: string | string[] | null) => any) | undefined;
3648
3725
  }>, {
3649
- type: IrisToggleGroupType;
3650
3726
  size: "sm" | "md" | "lg";
3727
+ type: IrisToggleGroupType;
3728
+ orientation: IrisToggleGroupOrientation;
3651
3729
  disabled: boolean;
3652
3730
  variant: IrisToggleGroupVariant;
3653
3731
  modelValue: string | string[] | null;
3654
- orientation: IrisToggleGroupOrientation;
3655
3732
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
3656
3733
 
3657
3734
  type IrisKbdSize = 'sm' | 'md';
@@ -3692,8 +3769,8 @@ declare const IrisKbd: vue.DefineComponent<vue.ExtractPropTypes<{
3692
3769
  default: string;
3693
3770
  };
3694
3771
  }>> & Readonly<{}>, {
3695
- keys: string | string[];
3696
3772
  size: IrisKbdSize;
3773
+ keys: string | string[];
3697
3774
  separator: string;
3698
3775
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
3699
3776
 
@@ -3767,9 +3844,9 @@ declare const IrisSplitter: vue.DefineComponent<vue.ExtractPropTypes<{
3767
3844
  }>> & Readonly<{
3768
3845
  "onUpdate:modelValue"?: ((_value: number) => any) | undefined;
3769
3846
  }>, {
3847
+ orientation: IrisSplitterOrientation;
3770
3848
  disabled: boolean;
3771
3849
  modelValue: number;
3772
- orientation: IrisSplitterOrientation;
3773
3850
  minStart: number;
3774
3851
  minEnd: number;
3775
3852
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -4190,30 +4267,6 @@ type IrisTableColumnWidths = Record<string, number>;
4190
4267
  * />
4191
4268
  */
4192
4269
  declare const IrisTable: vue.DefineComponent<vue.ExtractPropTypes<{
4193
- columns: {
4194
- type: PropType<IrisTableColumn<Record<string, unknown>>[]>;
4195
- required: true;
4196
- };
4197
- data: {
4198
- type: PropType<Array<Record<string, unknown>>>;
4199
- required: true;
4200
- };
4201
- rowKey: {
4202
- type: StringConstructor;
4203
- default: string;
4204
- };
4205
- selectable: {
4206
- type: PropType<"none" | "single" | "multi">;
4207
- default: string;
4208
- };
4209
- selection: {
4210
- type: PropType<Array<string | number>>;
4211
- default: undefined;
4212
- };
4213
- sort: {
4214
- type: PropType<IrisTableSortState | null>;
4215
- default: undefined;
4216
- };
4217
4270
  striped: {
4218
4271
  type: BooleanConstructor;
4219
4272
  default: boolean;
@@ -4305,28 +4358,6 @@ declare const IrisTable: vue.DefineComponent<vue.ExtractPropTypes<{
4305
4358
  type: PropType<(row: Record<string, unknown>) => Array<Record<string, unknown>> | undefined>;
4306
4359
  default: undefined;
4307
4360
  };
4308
- }>, () => VNode<vue.RendererNode, vue.RendererElement, {
4309
- [key: string]: any;
4310
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4311
- 'update:selection': (_value: Array<string | number>) => true;
4312
- 'update:sort': (_value: IrisTableSortState | null) => true;
4313
- 'update:columnWidths': (_value: IrisTableColumnWidths) => true;
4314
- rowClick: (_row: Record<string, unknown>, _index: number) => true;
4315
- cellEdit: (_payload: IrisTableCellEditEvent<Record<string, unknown>>) => true;
4316
- expandedRowsChange: (_keys: Array<string | number>) => true;
4317
- }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
4318
- columns: {
4319
- type: PropType<IrisTableColumn<Record<string, unknown>>[]>;
4320
- required: true;
4321
- };
4322
- data: {
4323
- type: PropType<Array<Record<string, unknown>>>;
4324
- required: true;
4325
- };
4326
- rowKey: {
4327
- type: StringConstructor;
4328
- default: string;
4329
- };
4330
4361
  selectable: {
4331
4362
  type: PropType<"none" | "single" | "multi">;
4332
4363
  default: string;
@@ -4335,10 +4366,40 @@ declare const IrisTable: vue.DefineComponent<vue.ExtractPropTypes<{
4335
4366
  type: PropType<Array<string | number>>;
4336
4367
  default: undefined;
4337
4368
  };
4369
+ defaultSelection: {
4370
+ type: PropType<Array<string | number>>;
4371
+ default: undefined;
4372
+ };
4338
4373
  sort: {
4339
4374
  type: PropType<IrisTableSortState | null>;
4340
4375
  default: undefined;
4341
4376
  };
4377
+ defaultSort: {
4378
+ type: PropType<IrisTableSortState | null>;
4379
+ default: undefined;
4380
+ };
4381
+ columns: {
4382
+ type: PropType<IrisTableColumn<Record<string, unknown>>[]>;
4383
+ required: true;
4384
+ };
4385
+ data: {
4386
+ type: PropType<Array<Record<string, unknown>>>;
4387
+ required: true;
4388
+ };
4389
+ rowKey: {
4390
+ type: StringConstructor;
4391
+ default: string;
4392
+ };
4393
+ }>, () => VNode<vue.RendererNode, vue.RendererElement, {
4394
+ [key: string]: any;
4395
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4396
+ 'update:selection': (_value: Array<string | number>) => true;
4397
+ 'update:sort': (_value: IrisTableSortState | null) => true;
4398
+ 'update:columnWidths': (_value: IrisTableColumnWidths) => true;
4399
+ rowClick: (_row: Record<string, unknown>, _index: number) => true;
4400
+ cellEdit: (_payload: IrisTableCellEditEvent<Record<string, unknown>>) => true;
4401
+ expandedRowsChange: (_keys: Array<string | number>) => true;
4402
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
4342
4403
  striped: {
4343
4404
  type: BooleanConstructor;
4344
4405
  default: boolean;
@@ -4430,20 +4491,50 @@ declare const IrisTable: vue.DefineComponent<vue.ExtractPropTypes<{
4430
4491
  type: PropType<(row: Record<string, unknown>) => Array<Record<string, unknown>> | undefined>;
4431
4492
  default: undefined;
4432
4493
  };
4494
+ selectable: {
4495
+ type: PropType<"none" | "single" | "multi">;
4496
+ default: string;
4497
+ };
4498
+ selection: {
4499
+ type: PropType<Array<string | number>>;
4500
+ default: undefined;
4501
+ };
4502
+ defaultSelection: {
4503
+ type: PropType<Array<string | number>>;
4504
+ default: undefined;
4505
+ };
4506
+ sort: {
4507
+ type: PropType<IrisTableSortState | null>;
4508
+ default: undefined;
4509
+ };
4510
+ defaultSort: {
4511
+ type: PropType<IrisTableSortState | null>;
4512
+ default: undefined;
4513
+ };
4514
+ columns: {
4515
+ type: PropType<IrisTableColumn<Record<string, unknown>>[]>;
4516
+ required: true;
4517
+ };
4518
+ data: {
4519
+ type: PropType<Array<Record<string, unknown>>>;
4520
+ required: true;
4521
+ };
4522
+ rowKey: {
4523
+ type: StringConstructor;
4524
+ default: string;
4525
+ };
4433
4526
  }>> & Readonly<{
4434
4527
  "onUpdate:selection"?: ((_value: (string | number)[]) => any) | undefined;
4528
+ onExpandedRowsChange?: ((_keys: (string | number)[]) => any) | undefined;
4435
4529
  "onUpdate:sort"?: ((_value: IrisTableSortState | null) => any) | undefined;
4530
+ onCellEdit?: ((_payload: IrisTableCellEditEvent<Record<string, unknown>>) => any) | undefined;
4436
4531
  "onUpdate:columnWidths"?: ((_value: IrisTableColumnWidths) => any) | undefined;
4437
4532
  onRowClick?: ((_row: Record<string, unknown>, _index: number) => any) | undefined;
4438
- onCellEdit?: ((_payload: IrisTableCellEditEvent<Record<string, unknown>>) => any) | undefined;
4439
- onExpandedRowsChange?: ((_keys: (string | number)[]) => any) | undefined;
4440
4533
  }>, {
4441
4534
  sort: IrisTableSortState | null;
4442
4535
  error: boolean;
4443
4536
  loading: boolean;
4444
4537
  rowKey: string;
4445
- selectable: "none" | "single" | "multi";
4446
- selection: (string | number)[];
4447
4538
  striped: boolean;
4448
4539
  bordered: boolean;
4449
4540
  resizableColumns: boolean;
@@ -4456,7 +4547,13 @@ declare const IrisTable: vue.DefineComponent<vue.ExtractPropTypes<{
4456
4547
  rowExpandable: IrisTableRowExpandable<Record<string, unknown>>;
4457
4548
  defaultExpandedRowKeys: (string | number)[];
4458
4549
  getSubRows: (row: Record<string, unknown>) => Array<Record<string, unknown>> | undefined;
4550
+ selectable: "none" | "single" | "multi";
4551
+ selection: (string | number)[];
4552
+ defaultSelection: (string | number)[];
4553
+ defaultSort: IrisTableSortState | null;
4459
4554
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
4555
+ /** Public input/event surface inferred from the runtime Vue component. */
4556
+ type IrisTableProps = InstanceType<typeof IrisTable>['$props'];
4460
4557
 
4461
4558
  /**
4462
4559
  * Serialize a list of rows as a CSV string. Columns determine the order;
@@ -4580,9 +4677,9 @@ declare const IrisTabs: vue.DefineComponent<vue.ExtractPropTypes<{
4580
4677
  "onUpdate:value"?: ((_value: string) => any) | undefined;
4581
4678
  }>, {
4582
4679
  value: string;
4680
+ orientation: IrisTabsOrientation;
4583
4681
  disabled: boolean;
4584
4682
  defaultValue: string;
4585
- orientation: IrisTabsOrientation;
4586
4683
  lazy: boolean;
4587
4684
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
4588
4685
 
@@ -7285,8 +7382,8 @@ declare const IrisToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
7285
7382
  default: undefined;
7286
7383
  };
7287
7384
  }>> & Readonly<{}>, {
7288
- ariaLabel: string;
7289
7385
  orientation: IrisToolbarOrientation;
7386
+ ariaLabel: string;
7290
7387
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
7291
7388
 
7292
7389
  /**
@@ -7851,8 +7948,8 @@ declare const IrisCommandPalette: vue.DefineComponent<vue.ExtractPropTypes<{
7851
7948
  onSelect?: ((_item: IrisCommandItem) => any) | undefined;
7852
7949
  "onUpdate:open"?: ((_value: boolean) => any) | undefined;
7853
7950
  }>, {
7854
- filter: (query: string, item: IrisCommandItem) => number | null;
7855
7951
  open: boolean;
7952
+ filter: (query: string, item: IrisCommandItem) => number | null;
7856
7953
  placeholder: string;
7857
7954
  emptyText: string;
7858
7955
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -8084,4 +8181,4 @@ declare const IrisDateRangePicker: vue.DefineComponent<vue.ExtractPropTypes<{
8084
8181
  weekStartsOn: number;
8085
8182
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
8086
8183
 
8087
- export { type AccordionContext, AccordionContextKey, type DialogContext, DialogContextKey, type DragState, type DrawerContext, DrawerContextKey, type DropdownContext, DropdownContextKey, IrisAccordion, IrisAccordionItem, type IrisAccordionValue, IrisAffix, IrisAlert, type IrisAlertTone, IrisAnchor, type IrisAnchorItem, IrisAspectRatio, IrisAvatar, type IrisAvatarShape, type IrisAvatarSize, IrisBackTop, IrisBadge, type IrisBadgeSize, type IrisBadgeTone, type IrisBadgeVariant, IrisBanner, type IrisBannerTone, IrisBreadcrumb, IrisBreadcrumbItem, IrisButton, type IrisButtonProps, type IrisButtonSize, type IrisButtonType, type IrisButtonVariant, IrisCalendar, IrisCard, type IrisCardPadding, type IrisCardVariant, IrisCarousel, IrisCascader, type IrisCascaderNode, type IrisCascaderSize, IrisCheckbox, type IrisCheckboxSize, type IrisCheckboxValue, IrisChip, type IrisChipSize, type IrisChipTone, type IrisChipVariant, IrisColorPicker, IrisCombobox, type IrisComboboxOption, type IrisComboboxSize, type IrisCommandItem, IrisCommandPalette, IrisCopyButton, type IrisCopyButtonSize, IrisCountdown, type IrisCountdownSize, IrisDatePicker, type IrisDateRange, IrisDateRangePicker, IrisDescriptions, type IrisDescriptionsItem, type IrisDescriptionsLayout, IrisDialog, IrisDialogClose, IrisDialogContent, IrisDialogDescription, IrisDialogTitle, IrisDialogTrigger, IrisDivider, type IrisDividerOrientation, type IrisDividerSpacing, IrisDragger, type IrisDraggerPosition, IrisDrawer, IrisDrawerClose, IrisDrawerContent, type IrisDrawerSide, IrisDrawerTitle, IrisDrawerTrigger, IrisDropdown, IrisDropdownItem, IrisDropdownMenu, IrisDropdownSeparator, IrisDropdownTrigger, IrisEmptyState, IrisFieldset, IrisFileUpload, type IrisFileUploadFile, IrisFloatButton, type IrisFloatButtonAction, type IrisFloatButtonShape, IrisFormField, IrisGauge, type IrisGaugeStatus, IrisIcon, IrisImage, IrisInput, type IrisInputSize, type IrisInputType, IrisKbd, type IrisKbdSize, IrisList, type IrisListItem, IrisMarquee, type IrisMarqueeDirection, IrisMasonry, type IrisMentionOption, IrisMentions, IrisMenu, IrisMenuContent, IrisMenuItem, IrisMenuSeparator, IrisMenuSub, IrisMenuTrigger, IrisNumberInput, type IrisNumberInputSize, IrisOtpInput, type IrisOtpInputSize, type IrisOtpInputType, IrisPagination, type IrisPaginationSize, IrisPasswordInput, type IrisPasswordInputSize, IrisPopover, IrisPopoverContent, IrisPopoverTrigger, IrisProgress, IrisProgressCircle, type IrisProgressCircleStatus, type IrisProgressSize, type IrisProgressTone, IrisRadio, IrisRadioGroup, type IrisRadioSize, IrisRangeSlider, type IrisRangeSliderValue, IrisRating, type IrisRatingSize, IrisResizer, type IrisResizerHandle, type IrisResizerSize, IrisResult, type IrisResultStatus, IrisRibbon, type IrisRibbonPlacement, IrisScrollArea, type IrisScrollAreaAxis, IrisSegmented, type IrisSegmentedOption, type IrisSegmentedSize, IrisSelect, type IrisSelectSize, IrisSkeleton, type IrisSkeletonShape, IrisSlider, type IrisSliderOrientation, IrisSlot, IrisSpinner, type IrisSpinnerSize, IrisSplitButton, type IrisSplitButtonAction, type IrisSplitButtonSize, type IrisSplitButtonVariant, IrisSplitter, type IrisSplitterOrientation, IrisStatistic, type IrisStatisticSize, type IrisStatisticTrend, type IrisStepStatus, IrisStepper, type IrisStepperOrientation, IrisStepperStep, IrisSwitch, type IrisSwitchSize, IrisTable, type IrisTableCellEditEvent, type IrisTableColumn, type IrisTableColumnWidths, type IrisTableEditor, type IrisTableSortDirection, type IrisTableSortState, type IrisTableVirtualOptions, IrisTabs, IrisTabsContent, IrisTabsList, type IrisTabsOrientation, IrisTabsTrigger, IrisTagInput, IrisTextarea, type IrisTextareaSize, IrisTimePicker, type IrisTimePickerFormat, type IrisTimeValue, IrisTimeline, type IrisTimelineItem, type IrisTimelineVariant, type IrisToast, type IrisToastInput, type IrisToastPosition, type IrisToastVariant, IrisToastViewport, IrisToggleGroup, IrisToggleGroupItem, type IrisToggleGroupOrientation, type IrisToggleGroupType, type IrisToggleGroupVariant, IrisToolbar, type IrisToolbarOrientation, IrisTooltip, IrisTour, type IrisTourStep, IrisTransfer, type IrisTransferItem, IrisTree, type IrisTreeNode, IrisTreeSelect, type IrisTreeSelectNode, type IrisTreeSelectSize, type IrisTreeSelectionMode, IrisVirtualScroll, type IrisVirtualScrollAlign, type IrisVirtualScrollExposed, IrisVisuallyHidden, IrisWatermark, type MenuContext, MenuContextKey, type PopoverContext, PopoverContextKey, type StepperContext, StepperContextKey, type TabsContext, TabsContextKey, type ToggleGroupContext, ToggleGroupContextKey, type UseDragOptions, type UseToastReturn, __PROGRESS_STYLE_ID, __SKELETON_STYLE_ID, __SPINNER_STYLE_ID, __resetProgressStyles, __resetSkeletonStyles, __resetSpinnerStyles, clearToasts, composeRefs, defaultFilter, dismissToast, downloadCsv, downloadExcel, exportCsv, exportExcel, findFirstElement, formatBytes, formatRemaining, getToasts, mergeSlotProps, pushToast, subscribeToasts, useDrag, useStore, useStoreSelector, useToast };
8184
+ export { type AccordionContext, AccordionContextKey, type DialogContext, DialogContextKey, type DragState, type DrawerContext, DrawerContextKey, type DropdownContext, DropdownContextKey, IrisAccordion, IrisAccordionItem, type IrisAccordionValue, IrisAffix, IrisAlert, type IrisAlertTone, IrisAnchor, type IrisAnchorItem, IrisAspectRatio, IrisAvatar, type IrisAvatarShape, type IrisAvatarSize, IrisBackTop, IrisBadge, type IrisBadgeSize, type IrisBadgeTone, type IrisBadgeVariant, IrisBanner, type IrisBannerTone, IrisBreadcrumb, IrisBreadcrumbItem, IrisButton, type IrisButtonProps, type IrisButtonSize, type IrisButtonType, type IrisButtonVariant, IrisCalendar, IrisCard, type IrisCardPadding, type IrisCardVariant, IrisCarousel, IrisCascader, type IrisCascaderNode, type IrisCascaderSize, IrisCheckbox, type IrisCheckboxSize, type IrisCheckboxValue, IrisChip, type IrisChipSize, type IrisChipTone, type IrisChipVariant, IrisColorPicker, IrisCombobox, type IrisComboboxOption, type IrisComboboxSize, type IrisCommandItem, IrisCommandPalette, IrisCopyButton, type IrisCopyButtonSize, IrisCountdown, type IrisCountdownSize, IrisDatePicker, type IrisDateRange, IrisDateRangePicker, IrisDescriptions, type IrisDescriptionsItem, type IrisDescriptionsLayout, IrisDialog, IrisDialogClose, IrisDialogContent, IrisDialogDescription, IrisDialogTitle, IrisDialogTrigger, IrisDivider, type IrisDividerOrientation, type IrisDividerSpacing, IrisDragger, type IrisDraggerPosition, IrisDrawer, IrisDrawerClose, IrisDrawerContent, type IrisDrawerSide, IrisDrawerTitle, IrisDrawerTrigger, IrisDropdown, IrisDropdownItem, IrisDropdownMenu, IrisDropdownSeparator, IrisDropdownTrigger, IrisEmptyState, IrisFieldset, IrisFileUpload, type IrisFileUploadFile, IrisFloatButton, type IrisFloatButtonAction, type IrisFloatButtonShape, IrisFormField, IrisGauge, type IrisGaugeStatus, IrisIcon, IrisImage, IrisInput, type IrisInputSize, type IrisInputType, IrisKbd, type IrisKbdSize, IrisList, type IrisListItem, IrisMarquee, type IrisMarqueeDirection, IrisMasonry, type IrisMentionOption, IrisMentions, IrisMenu, IrisMenuContent, IrisMenuItem, IrisMenuSeparator, IrisMenuSub, IrisMenuTrigger, IrisNumberInput, type IrisNumberInputSize, IrisOtpInput, type IrisOtpInputSize, type IrisOtpInputType, IrisPagination, type IrisPaginationSize, IrisPasswordInput, type IrisPasswordInputSize, IrisPopover, IrisPopoverContent, IrisPopoverTrigger, IrisProgress, IrisProgressCircle, type IrisProgressCircleStatus, type IrisProgressSize, type IrisProgressTone, IrisRadio, IrisRadioGroup, type IrisRadioSize, IrisRangeSlider, type IrisRangeSliderValue, IrisRating, type IrisRatingSize, IrisResizer, type IrisResizerHandle, type IrisResizerSize, IrisResult, type IrisResultStatus, IrisRibbon, type IrisRibbonPlacement, IrisScrollArea, type IrisScrollAreaAxis, IrisSegmented, type IrisSegmentedOption, type IrisSegmentedSize, IrisSelect, type IrisListItem as IrisSelectItem, type IrisSelectProps, type IrisSelectSize, IrisSkeleton, type IrisSkeletonShape, IrisSlider, type IrisSliderOrientation, IrisSlot, IrisSpinner, type IrisSpinnerSize, IrisSplitButton, type IrisSplitButtonAction, type IrisSplitButtonSize, type IrisSplitButtonVariant, IrisSplitter, type IrisSplitterOrientation, IrisStatistic, type IrisStatisticSize, type IrisStatisticTrend, type IrisStepStatus, IrisStepper, type IrisStepperOrientation, IrisStepperStep, IrisSwitch, type IrisSwitchSize, IrisTable, type IrisTableAggregateOp, type IrisTableCellEditEvent, type IrisTableColumn, type IrisTableColumnWidths, type IrisTableEditor, type IrisTableProps, type IrisTableRenderDetail, type IrisTableRowExpandable, type IrisTableSortDirection, type IrisTableSortState, type IrisTableVirtualOptions, IrisTabs, IrisTabsContent, IrisTabsList, type IrisTabsOrientation, IrisTabsTrigger, IrisTagInput, IrisTextarea, type IrisTextareaSize, IrisTimePicker, type IrisTimePickerFormat, type IrisTimeValue, IrisTimeline, type IrisTimelineItem, type IrisTimelineVariant, type IrisToast, type IrisToastInput, type IrisToastPosition, type IrisToastVariant, IrisToastViewport, IrisToggleGroup, IrisToggleGroupItem, type IrisToggleGroupOrientation, type IrisToggleGroupType, type IrisToggleGroupVariant, IrisToolbar, type IrisToolbarOrientation, IrisTooltip, IrisTour, type IrisTourStep, IrisTransfer, type IrisTransferItem, IrisTree, type IrisTreeNode, IrisTreeSelect, type IrisTreeSelectNode, type IrisTreeSelectSize, type IrisTreeSelectionMode, IrisVirtualScroll, type IrisVirtualScrollAlign, type IrisVirtualScrollExposed, IrisVisuallyHidden, IrisWatermark, type MenuContext, MenuContextKey, type PopoverContext, PopoverContextKey, type StepperContext, StepperContextKey, type TabsContext, TabsContextKey, type ToggleGroupContext, ToggleGroupContextKey, type UseDragOptions, type UseToastReturn, __PROGRESS_STYLE_ID, __SKELETON_STYLE_ID, __SPINNER_STYLE_ID, __resetProgressStyles, __resetSkeletonStyles, __resetSpinnerStyles, clearToasts, composeRefs, defaultFilter, dismissToast, downloadCsv, downloadExcel, exportCsv, exportExcel, findFirstElement, formatBytes, formatRemaining, getToasts, mergeSlotProps, pushToast, subscribeToasts, useDisposableScope, useDrag, useReconnectingSource, useResilientFetcher, useStore, useStoreSelector, useToast };