@starasia/admin 12.34.0 → 12.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,11 @@
1
1
  /**
2
2
  * Focus/open search when a single-key shortcut (default `/`) is pressed —
3
3
  * ignored while the user is typing in another field.
4
+ *
5
+ * Also stands down while any overlay (Dialog, or anything else registered via
6
+ * `registerOverlay`) is open. Without that guard this listener — attached to
7
+ * `window`, i.e. the very last stop in the bubble path — would run *after* a
8
+ * dialog's own shortcut handler and steal focus back to the search box sitting
9
+ * behind the dialog.
4
10
  */
5
11
  export declare function useSearchShortcut(key: string, onTrigger: () => void, enabled?: boolean): void;
@@ -85,6 +85,14 @@ export interface DateCompactFilterField extends BaseFilterField {
85
85
  * is used instead.
86
86
  */
87
87
  defaultOp?: DateCompactOp;
88
+ /**
89
+ * Calendar granularity for the operator bodies (single & range), mirroring
90
+ * the `date` field's `mode`. `'months'` → month picker, `'years'` → year
91
+ * picker. Default `'days'`. The emitted `DateCompactValue` still carries ISO
92
+ * dates (first day of the picked month/year); the pill label is formatted to
93
+ * match the granularity. `is-relative-to-today` keeps its day-based preview.
94
+ */
95
+ mode?: 'days' | 'months' | 'years';
88
96
  }
89
97
  export type FilterFieldConfig = SelectFilterField | CheckboxMultipleFilterField | DateFilterField | DateCompactFilterField;
90
98
  /** A single column entry fed to the Customize Column panel. */