@m1z23r/ngx-ui 1.1.34 → 1.1.36

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.36",
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
@@ -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,13 @@ 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;
2004
+ private mutationObserver;
1993
2005
  private static nextId;
1994
2006
  private readonly generatedId;
1995
2007
  protected readonly inputId: _angular_core.Signal<string>;
@@ -2008,6 +2020,9 @@ declare class TemplateInputComponent implements OnDestroy {
2008
2020
  private hoveredVar;
2009
2021
  private hideTimer;
2010
2022
  constructor(renderer: Renderer2);
2023
+ ngAfterViewInit(): void;
2024
+ private setupSuffixObservers;
2025
+ private updateSuffixPadding;
2011
2026
  protected readonly highlightedHtml: _angular_core.Signal<string>;
2012
2027
  protected syncScroll(): void;
2013
2028
  protected onInput(): void;
@@ -2033,8 +2048,8 @@ declare class TemplateInputComponent implements OnDestroy {
2033
2048
  private removePositionListeners;
2034
2049
  ngOnDestroy(): void;
2035
2050
  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>;
2051
+ 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
2052
  }
2038
2053
 
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 };
2054
+ 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
2055
  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 };