@m1z23r/ngx-ui 1.1.34 → 1.1.35

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": "@m1z23r/ngx-ui",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
4
4
  "description": "A modern Angular UI component library with themeable components and responsive layout system",
5
5
  "license": "MIT",
6
6
  "author": "m1z23r",
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Signal, InjectionToken, Type, TemplateRef, Injector, OnInit, PipeTransform, ElementRef, AfterContentInit, OnDestroy, Renderer2 } from '@angular/core';
2
+ import { Signal, InjectionToken, Type, TemplateRef, Injector, OnInit, PipeTransform, ElementRef, AfterContentInit, OnDestroy, Renderer2, AfterViewInit } from '@angular/core';
3
3
 
4
4
  /**
5
5
  * Validation error returned by validators
@@ -652,7 +652,7 @@ declare class ButtonComponent implements Loadable {
652
652
  readonly variant: _angular_core.InputSignal<ButtonVariant>;
653
653
  readonly color: _angular_core.InputSignal<ButtonColor>;
654
654
  readonly size: _angular_core.InputSignal<ButtonSize>;
655
- readonly type: _angular_core.InputSignal<"reset" | "submit" | "button">;
655
+ readonly type: _angular_core.InputSignal<"button" | "reset" | "submit">;
656
656
  readonly disabled: _angular_core.InputSignal<boolean>;
657
657
  readonly loading: _angular_core.InputSignal<boolean>;
658
658
  readonly clicked: _angular_core.OutputEmitterRef<MouseEvent>;
@@ -1965,7 +1965,12 @@ declare class VariablePopoverDirective {
1965
1965
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<VariablePopoverDirective, never>;
1966
1966
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<VariablePopoverDirective, "ng-template[uiVariablePopover]", never, {}, {}, never, never, true, never>;
1967
1967
  }
1968
- declare class TemplateInputComponent implements OnDestroy {
1968
+ /** Directive to mark suffix content (buttons, icons, etc.) */
1969
+ declare class TemplateInputSuffixDirective {
1970
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TemplateInputSuffixDirective, never>;
1971
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TemplateInputSuffixDirective, "[uiTemplateInputSuffix]", never, {}, {}, never, never, true, never>;
1972
+ }
1973
+ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
1969
1974
  private readonly renderer;
1970
1975
  readonly label: _angular_core.InputSignal<string>;
1971
1976
  readonly placeholder: _angular_core.InputSignal<string>;
@@ -1990,6 +1995,12 @@ declare class TemplateInputComponent implements OnDestroy {
1990
1995
  readonly variableHover: _angular_core.OutputEmitterRef<string | null>;
1991
1996
  /** Custom popover template for variables. Receives VariablePopoverContext. */
1992
1997
  readonly popoverTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1998
+ /** Detect if suffix content is projected */
1999
+ readonly hasSuffix: _angular_core.Signal<readonly TemplateInputSuffixDirective[]>;
2000
+ protected readonly suffixRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
2001
+ /** Computed padding-right based on suffix width */
2002
+ protected readonly suffixPadding: _angular_core.WritableSignal<number>;
2003
+ private resizeObserver;
1993
2004
  private static nextId;
1994
2005
  private readonly generatedId;
1995
2006
  protected readonly inputId: _angular_core.Signal<string>;
@@ -2008,6 +2019,9 @@ declare class TemplateInputComponent implements OnDestroy {
2008
2019
  private hoveredVar;
2009
2020
  private hideTimer;
2010
2021
  constructor(renderer: Renderer2);
2022
+ ngAfterViewInit(): void;
2023
+ private observeSuffix;
2024
+ private updateSuffixPadding;
2011
2025
  protected readonly highlightedHtml: _angular_core.Signal<string>;
2012
2026
  protected syncScroll(): void;
2013
2027
  protected onInput(): void;
@@ -2033,8 +2047,8 @@ declare class TemplateInputComponent implements OnDestroy {
2033
2047
  private removePositionListeners;
2034
2048
  ngOnDestroy(): void;
2035
2049
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TemplateInputComponent, never>;
2036
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TemplateInputComponent, "ui-template-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "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; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "variables": { "alias": "variables"; "required": true; "isSignal": true; }; }, { "value": "valueChange"; "variables": "variablesChange"; "variableHover": "variableHover"; }, ["popoverTemplate"], never, true, never>;
2050
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TemplateInputComponent, "ui-template-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "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; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "variables": { "alias": "variables"; "required": true; "isSignal": true; }; }, { "value": "valueChange"; "variables": "variablesChange"; "variableHover": "variableHover"; }, ["popoverTemplate", "hasSuffix"], ["[uiTemplateInputSuffix]"], true, never>;
2037
2051
  }
2038
2052
 
2039
- export { AccordionComponent, AccordionHeaderDirective, AccordionItemComponent, AlertComponent, BadgeComponent, ButtonComponent, CardComponent, CellTemplateDirective, CellValuePipe, CheckboxComponent, ChipInputComponent, ChipTemplateDirective, CircularProgressComponent, ContentComponent, ContextMenuDirective, DIALOG_DATA, DIALOG_REF, DatepickerComponent, DatetimepickerComponent, DialogRef, DialogService, DropdownComponent, DropdownDividerComponent, DropdownItemComponent, DropdownTriggerDirective, DynamicTabsComponent, FileChooserComponent, FilePreviewPipe, FileSizePipe, FooterComponent, InputComponent, LOADABLE, LoadingDirective, LoadingService, ModalComponent, NavbarComponent, OptionComponent, OptionTemplateDirective, PaginationComponent, ProgressComponent, RadioComponent, RadioGroupComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarService, SidebarToggleComponent, SliderComponent, SpinnerComponent, SplitComponent, SplitPaneComponent, SwitchComponent, TAB_DATA, TAB_REF, TREE_HOST, TabActivePipe, TabComponent, TabIconDirective, TabRef, TableComponent, TabsComponent, TabsService, TemplateInputComponent, TextareaComponent, TimepickerComponent, ToastRef, ToastService, TooltipDirective, TreeComponent, TreeNodeComponent, Validators, VariablePopoverDirective };
2053
+ export { AccordionComponent, AccordionHeaderDirective, AccordionItemComponent, AlertComponent, BadgeComponent, ButtonComponent, CardComponent, CellTemplateDirective, CellValuePipe, CheckboxComponent, ChipInputComponent, ChipTemplateDirective, CircularProgressComponent, ContentComponent, ContextMenuDirective, DIALOG_DATA, DIALOG_REF, DatepickerComponent, DatetimepickerComponent, DialogRef, DialogService, DropdownComponent, DropdownDividerComponent, DropdownItemComponent, DropdownTriggerDirective, DynamicTabsComponent, FileChooserComponent, FilePreviewPipe, FileSizePipe, FooterComponent, InputComponent, LOADABLE, LoadingDirective, LoadingService, ModalComponent, NavbarComponent, OptionComponent, OptionTemplateDirective, PaginationComponent, ProgressComponent, RadioComponent, RadioGroupComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarService, SidebarToggleComponent, SliderComponent, SpinnerComponent, SplitComponent, SplitPaneComponent, SwitchComponent, TAB_DATA, TAB_REF, TREE_HOST, TabActivePipe, TabComponent, TabIconDirective, TabRef, TableComponent, TabsComponent, TabsService, TemplateInputComponent, TemplateInputSuffixDirective, TextareaComponent, TimepickerComponent, ToastRef, ToastService, TooltipDirective, TreeComponent, TreeNodeComponent, Validators, VariablePopoverDirective };
2040
2054
  export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, InputType, Loadable, ModalSize, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, SelectSize, SelectVariant, ShellVariant, SliderSize, SortDirection, SortState, SpinnerSize, SpinnerVariant, SplitGutterSize, SplitOrientation, SplitSizeChange, SwitchSize, TabRenderMode, TableColumn, TabsSize, TabsVariant, TemplateVariable, TextareaResize, TimeFormat, TimeValue, TimepickerSize, TimepickerVariant, ToastConfig, ToastPosition, ToastVariant, TooltipPosition, TreeDropPosition, TreeNode, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };