@ousi-ui/vue 0.7.1 → 0.7.2

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
@@ -97,6 +97,7 @@ disabled: boolean;
97
97
  animated: boolean;
98
98
  required: boolean;
99
99
  multiple: boolean;
100
+ autoSelectSingle: boolean;
100
101
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
101
102
  triggerRef: HTMLButtonElement;
102
103
  popoverRef: HTMLDivElement;
@@ -359,6 +360,7 @@ animated: boolean;
359
360
  required: boolean;
360
361
  readonly: boolean;
361
362
  clearable: boolean;
363
+ autoSelectSingle: boolean;
362
364
  scrollShadow: boolean;
363
365
  allowCustomValue: boolean;
364
366
  emptyMessage: string;
@@ -3059,6 +3061,8 @@ export declare interface AutocompleteProps {
3059
3061
  readonly?: boolean;
3060
3062
  /** Whether a value is required. */
3061
3063
  required?: boolean;
3064
+ /** Pick the only enabled option when the field is empty. Defaults to the global `autoSelectSingle` config for required fields. */
3065
+ autoSelectSingle?: boolean;
3062
3066
  /** Show clear button. */
3063
3067
  clearable?: boolean;
3064
3068
  /** Allow values not in the options list. */
@@ -6398,6 +6402,8 @@ export declare interface OusiConfig {
6398
6402
  dir: Ref<'ltr' | 'rtl'>;
6399
6403
  /** Backdrop of dialogs and drawers that don't set their own. Defaults to 'opaque'. */
6400
6404
  backdrop: Ref<OverlayBackdrop>;
6405
+ /** Required OSelect and OAutocomplete fields with exactly one option pick it. Defaults to false. */
6406
+ autoSelectSingle: Ref<boolean>;
6401
6407
  }
6402
6408
 
6403
6409
  export declare interface OusiConfigInit {
@@ -6406,6 +6412,7 @@ export declare interface OusiConfigInit {
6406
6412
  firstDayOfWeek?: WeekDay;
6407
6413
  dir?: 'ltr' | 'rtl';
6408
6414
  backdrop?: OverlayBackdrop;
6415
+ autoSelectSingle?: boolean;
6409
6416
  }
6410
6417
 
6411
6418
  /** Texts the components render on their own: placeholders, buttons and accessible names. */
@@ -6436,6 +6443,12 @@ export declare interface OusiMessages {
6436
6443
  openCalendar: string;
6437
6444
  datePicker: string;
6438
6445
  dateField: string;
6446
+ year: string;
6447
+ month: string;
6448
+ day: string;
6449
+ yearPlaceholder: string;
6450
+ monthPlaceholder: string;
6451
+ dayPlaceholder: string;
6439
6452
  dateRangePicker: string;
6440
6453
  dateRangeCalendar: string;
6441
6454
  timePicker: string;
@@ -7145,6 +7158,8 @@ export declare interface SelectProps {
7145
7158
  disabled?: boolean;
7146
7159
  /** Whether the select is required. */
7147
7160
  required?: boolean;
7161
+ /** Pick the only enabled option when the field is empty. Defaults to the global `autoSelectSingle` config for required fields. */
7162
+ autoSelectSingle?: boolean;
7148
7163
  /** Haptic feedback on option select. Pass false to disable. */
7149
7164
  haptic?: HapticInput;
7150
7165
  /** Additional CSS classes on the outer container. */