@underlayerdev/ui 0.9.3 → 0.9.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@underlayerdev/ui",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^22.0.0",
6
6
  "@angular/common": "^22.0.0",
@@ -1439,6 +1439,38 @@ declare class ToastContainerComponent {
1439
1439
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastContainerComponent, "ul-toast-container", never, {}, {}, never, never, true, never>;
1440
1440
  }
1441
1441
 
1442
+ /**
1443
+ * On/off switch. Implements FormCheckboxControl for Signal Forms [formField],
1444
+ * the switch equivalent of ul-checkbox. Prefer this over ul-checkbox when the
1445
+ * change takes effect immediately (e.g. a setting) rather than being
1446
+ * submitted later with the rest of a form.
1447
+ * Use [(checked)] or [formField]="myForm().notificationsEnabled". No value property.
1448
+ */
1449
+ declare class ToggleComponent implements FormCheckboxControl {
1450
+ readonly checked: _angular_core.ModelSignal<boolean>;
1451
+ readonly disabled: _angular_core.ModelSignal<boolean>;
1452
+ readonly size: _angular_core.InputSignal<UiCheckboxSize>;
1453
+ /** Rendered inline next to the switch (not stacked above it, unlike ul-input/ul-checkbox's form-field label). Use ng-content instead for richer projected content. */
1454
+ readonly label: _angular_core.InputSignal<string | null>;
1455
+ readonly helperText: _angular_core.InputSignal<string | null>;
1456
+ readonly error: _angular_core.InputSignal<boolean>;
1457
+ readonly errorText: _angular_core.InputSignal<string | null>;
1458
+ readonly invalid: _angular_core.InputSignal<boolean>;
1459
+ readonly errors: _angular_core.InputSignal<readonly WithOptionalFieldTree<ValidationError>[]>;
1460
+ protected readonly ids: {
1461
+ controlId: string;
1462
+ helperId: string;
1463
+ errorId: string;
1464
+ };
1465
+ protected readonly hasError: _angular_core.Signal<boolean>;
1466
+ protected readonly resolvedErrorText: _angular_core.Signal<string | null>;
1467
+ protected readonly describedBy: _angular_core.Signal<string | undefined>;
1468
+ onChange(event: Event): void;
1469
+ onEnter(event: Event): void;
1470
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToggleComponent, never>;
1471
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToggleComponent, "ul-toggle", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; }, never, ["*"], true, never>;
1472
+ }
1473
+
1442
1474
  type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
1443
1475
  declare class TooltipComponent {
1444
1476
  text: _angular_core.InputSignal<string>;
@@ -1539,13 +1571,13 @@ declare class SearchInputComponent implements FormValueControl<string> {
1539
1571
  /** Shown once the query is non-empty — e.g. live search results. The consumer computes/fetches these as `value` changes (via `[(value)]`/`valueChange`). */
1540
1572
  readonly results: _angular_core.InputSignal<SearchSuggestion[]>;
1541
1573
  /**
1542
- * Overrides `results` once the query is non-empty, projecting arbitrary
1543
- * content (e.g. rich cards with images/prices) instead of the built-in
1544
- * plain-text rows. `suggestions` (shown while the query is empty) are
1545
- * unaffected and keep rendering as plain `SearchSuggestion` rows regardless.
1546
- * When set, arrow-key/Enter option-highlighting is skipped — Enter always
1547
- * falls through to `searchSubmit` since the projected content owns its own
1548
- * selection interaction.
1574
+ * When set, always projects this arbitrary content (e.g. rich cards with
1575
+ * images/prices) into the panel instead of the built-in plain-text rows —
1576
+ * for both `suggestions` (query empty) and `results` (query non-empty).
1577
+ * The consumer's own template is responsible for varying its content by
1578
+ * query if it needs to. Arrow-key/Enter option-highlighting is skipped
1579
+ * while this is set — Enter always falls through to `searchSubmit` since
1580
+ * the projected content owns its own selection interaction.
1549
1581
  */
1550
1582
  readonly resultsTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
1551
1583
  readonly invalid: _angular_core.InputSignal<boolean>;
@@ -1948,5 +1980,5 @@ declare class TextareaComponent implements FormValueControl<string> {
1948
1980
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaComponent, "ul-textarea", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "showRequiredIndicator": { "alias": "showRequiredIndicator"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "groupFocused": { "alias": "groupFocused"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; "touch": "touch"; "value": "valueChange"; "inputBlur": "inputBlur"; "inputFocus": "inputFocus"; }, ["customField"], ["[ul-textarea-left-elements]", "[ul-textarea-field]", "[ul-textarea-right-elements]"], true, never>;
1949
1981
  }
1950
1982
 
1951
- export { AccordionComponent, AccordionItemComponent, AreaCodeComponent, AvatarComponent, AvatarGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CardComponent, CarouselComponent, CarouselItemComponent, CheckboxComponent, CollapseComponent, CustomCurrencyPipe, DockComponent, DockItemComponent, DockItemContentSlotDirective, DropdownComponent, FileInputComponent, FooterComponent, FormFieldHelperComponent, FormFieldLabelComponent, HeroComponent, IconComponent, ImageNotFoundDirective, InputComponent, ListItemComponent, LongPressDirective, MenuComponent, MenuItemsComponent, MenuTriggerComponent, ModalComponent, NavbarAppNameSlotDirective, NavbarAvatarSlotDirective, NavbarComponent, NavbarLogoSlotDirective, NavbarSearchSlotDirective, PeHeroActionsSlotDirective, PeHeroBadgesSlotDirective, PeHeroContentSlotDirective, PeHeroSubtitleSlotDirective, PeHeroTitleSlotDirective, PillComponent, PriceButtonComponent, RadialComponent, RadioComponent, RadioGroupComponent, RichTextComponent, SearchInputComponent, SearchSelectComponent, SelectComponent, SelectableRowComponent, SidebarComponent, SkeletonComponent, StatusComponent, TableComponent, TextareaComponent, TextareaFieldDirective, ToastContainerComponent, ToastService, TooltipComponent, createFormFieldIds, getFormFieldDescribedBy, toastIcon };
1983
+ export { AccordionComponent, AccordionItemComponent, AreaCodeComponent, AvatarComponent, AvatarGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CardComponent, CarouselComponent, CarouselItemComponent, CheckboxComponent, CollapseComponent, CustomCurrencyPipe, DockComponent, DockItemComponent, DockItemContentSlotDirective, DropdownComponent, FileInputComponent, FooterComponent, FormFieldHelperComponent, FormFieldLabelComponent, HeroComponent, IconComponent, ImageNotFoundDirective, InputComponent, ListItemComponent, LongPressDirective, MenuComponent, MenuItemsComponent, MenuTriggerComponent, ModalComponent, NavbarAppNameSlotDirective, NavbarAvatarSlotDirective, NavbarComponent, NavbarLogoSlotDirective, NavbarSearchSlotDirective, PeHeroActionsSlotDirective, PeHeroBadgesSlotDirective, PeHeroContentSlotDirective, PeHeroSubtitleSlotDirective, PeHeroTitleSlotDirective, PillComponent, PriceButtonComponent, RadialComponent, RadioComponent, RadioGroupComponent, RichTextComponent, SearchInputComponent, SearchSelectComponent, SelectComponent, SelectableRowComponent, SidebarComponent, SkeletonComponent, StatusComponent, TableComponent, TextareaComponent, TextareaFieldDirective, ToastContainerComponent, ToastService, ToggleComponent, TooltipComponent, createFormFieldIds, getFormFieldDescribedBy, toastIcon };
1952
1984
  export type { ActionsDistribution, AvatarData, BreadcrumbItem, BreadcrumbSeparator, CalendarDay, CalendarMode, CardCaptionSize, CardDirection, CheckboxZoneType, CollapseVariant, Currency, DockItemVariant, DropdownItem, FileInputAppearance, HeroAction, HeroAlignment, HeroSize, IconName, IconSize, IconWeight, InputAppearance, InputType, ListItemTheme, MediaAspectRatio, MenuItem, ModalVariant, PillSize, PillTheme, PillVariant, RadioGroupOption, RichTextSize, RichTextTone, SalePosition, SearchSelectOption, SearchSuggestion, SelectOption, SidebarItem, SkeletonBorderRadius, SkeletonVariant, SortDirection, Status, TableColumn, TextareaResize, TimeSelection, ToastConfig, ToastKind, ToastWithRole, TooltipPosition };