@v1nt1248/3nclient-lib 0.3.48 → 0.3.49

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.
@@ -45,6 +45,18 @@ export interface Ui3nAutocompleteProps<T extends Ui3nAutocompleteOptionBase> {
45
45
  * @default false
46
46
  */
47
47
  disabled?: boolean;
48
+ /**
49
+ * Whether an individual item cannot be picked.
50
+ *
51
+ * A disabled item is still listed, greyed out and inert to both the pointer
52
+ * and the keyboard. Use it when leaving the item out would be worse than
53
+ * showing it: an absence explains nothing, while a disabled row - with a
54
+ * reason rendered through the `item` slot - does.
55
+ *
56
+ * A predicate rather than a flag on the item itself, so that a caller can
57
+ * answer from state of its own without copying or mutating its data.
58
+ */
59
+ itemDisabled?: (item: T) => boolean;
48
60
  /**
49
61
  * Filter keys
50
62
  */