@m1z23r/ngx-ui 1.1.59 → 1.1.61

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.59",
3
+ "version": "1.1.61",
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, AfterViewInit } from '@angular/core';
2
+ import { Signal, InjectionToken, Type, TemplateRef, Injector, OnInit, PipeTransform, ElementRef, AfterContentInit, OnDestroy, Renderer2, WritableSignal, AfterViewInit } from '@angular/core';
3
3
 
4
4
  /**
5
5
  * Validation error returned by validators
@@ -1525,7 +1525,7 @@ interface DateRangeValue {
1525
1525
  start: Date;
1526
1526
  end: Date;
1527
1527
  }
1528
- type ThumbId = 'start' | 'end';
1528
+ type ThumbId$1 = 'start' | 'end';
1529
1529
  declare class RangeSliderComponent {
1530
1530
  readonly min: _angular_core.InputSignal<Date>;
1531
1531
  readonly max: _angular_core.InputSignal<Date>;
@@ -1539,42 +1539,54 @@ declare class RangeSliderComponent {
1539
1539
  readonly format: _angular_core.InputSignal<string | null>;
1540
1540
  readonly value: _angular_core.ModelSignal<DateRangeValue | null>;
1541
1541
  readonly valueCommit: _angular_core.OutputEmitterRef<DateRangeValue>;
1542
- protected readonly trackEl: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
1543
- protected readonly startMs: _angular_core.WritableSignal<number>;
1544
- protected readonly endMs: _angular_core.WritableSignal<number>;
1545
- protected readonly dragging: _angular_core.WritableSignal<ThumbId | null>;
1546
- protected readonly focusedThumb: _angular_core.WritableSignal<ThumbId | null>;
1547
- protected readonly hoveredThumb: _angular_core.WritableSignal<ThumbId | null>;
1542
+ protected readonly trackEl: Signal<ElementRef<HTMLElement> | undefined>;
1543
+ protected readonly startBubbleEl: Signal<ElementRef<HTMLElement> | undefined>;
1544
+ protected readonly endBubbleEl: Signal<ElementRef<HTMLElement> | undefined>;
1545
+ protected readonly startMs: WritableSignal<number>;
1546
+ protected readonly endMs: WritableSignal<number>;
1547
+ protected readonly dragging: WritableSignal<ThumbId$1 | null>;
1548
+ protected readonly focusedThumb: WritableSignal<ThumbId$1 | null>;
1549
+ protected readonly hoveredThumb: WritableSignal<ThumbId$1 | null>;
1550
+ private readonly trackWidth;
1551
+ private readonly startBubbleWidth;
1552
+ private readonly endBubbleWidth;
1553
+ private readonly platformId;
1548
1554
  private lastEmitted;
1549
- protected readonly minMs: _angular_core.Signal<number>;
1550
- protected readonly maxMs: _angular_core.Signal<number>;
1551
- protected readonly range: _angular_core.Signal<number>;
1552
- protected readonly effectiveStep: _angular_core.Signal<number>;
1553
- protected readonly startPercent: _angular_core.Signal<number>;
1554
- protected readonly endPercent: _angular_core.Signal<number>;
1555
- protected readonly fillStyle: _angular_core.Signal<{
1555
+ protected readonly minMs: Signal<number>;
1556
+ protected readonly maxMs: Signal<number>;
1557
+ protected readonly range: Signal<number>;
1558
+ protected readonly effectiveStep: Signal<number>;
1559
+ protected readonly startPercent: Signal<number>;
1560
+ protected readonly endPercent: Signal<number>;
1561
+ protected readonly fillStyle: Signal<{
1556
1562
  left: string;
1557
1563
  width: string;
1558
1564
  }>;
1559
- protected readonly startLabel: _angular_core.Signal<string>;
1560
- protected readonly endLabel: _angular_core.Signal<string>;
1561
- protected readonly bubbleVisible: _angular_core.Signal<{
1565
+ protected readonly startLabel: Signal<string>;
1566
+ protected readonly endLabel: Signal<string>;
1567
+ protected readonly startShift: Signal<number>;
1568
+ protected readonly endShift: Signal<number>;
1569
+ protected readonly bubbleVisible: Signal<{
1562
1570
  start: boolean;
1563
1571
  end: boolean;
1564
1572
  }>;
1565
- protected readonly rootClasses: _angular_core.Signal<string>;
1573
+ protected readonly rootClasses: Signal<string>;
1566
1574
  constructor();
1575
+ /** Track an element's border-box width in a signal via ResizeObserver. */
1576
+ private observeWidth;
1577
+ /** Offset (px) to shift a bubble so it stays within the track bounds. */
1578
+ private bubbleShift;
1567
1579
  /** Push current thumb state into the value model (live, during interaction). */
1568
1580
  private writeValue;
1569
- protected onThumbPointerDown(event: PointerEvent, thumb: ThumbId): void;
1570
- protected onThumbPointerMove(event: PointerEvent, thumb: ThumbId): void;
1571
- protected onThumbPointerUp(event: PointerEvent, thumb: ThumbId): void;
1581
+ protected onThumbPointerDown(event: PointerEvent, thumb: ThumbId$1): void;
1582
+ protected onThumbPointerMove(event: PointerEvent, thumb: ThumbId$1): void;
1583
+ protected onThumbPointerUp(event: PointerEvent, thumb: ThumbId$1): void;
1572
1584
  protected onTrackPointerDown(event: PointerEvent): void;
1573
- protected onThumbKeyDown(event: KeyboardEvent, thumb: ThumbId): void;
1585
+ protected onThumbKeyDown(event: KeyboardEvent, thumb: ThumbId$1): void;
1574
1586
  protected onThumbKeyUp(event: KeyboardEvent): void;
1575
- protected onThumbFocus(thumb: ThumbId): void;
1587
+ protected onThumbFocus(thumb: ThumbId$1): void;
1576
1588
  protected onThumbBlur(): void;
1577
- protected onThumbEnter(thumb: ThumbId): void;
1589
+ protected onThumbEnter(thumb: ThumbId$1): void;
1578
1590
  protected onThumbLeave(): void;
1579
1591
  private setThumb;
1580
1592
  private commit;
@@ -1594,6 +1606,86 @@ declare class RangeSliderComponent {
1594
1606
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<RangeSliderComponent, "ui-range-slider", never, { "min": { "alias": "min"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "bubbles": { "alias": "bubbles"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueCommit": "valueCommit"; }, never, never, true, never>;
1595
1607
  }
1596
1608
 
1609
+ type NumberRangeSliderSize = 'sm' | 'md' | 'lg';
1610
+ type NumberRangeSliderBubbles = 'always' | 'active' | 'never';
1611
+ interface NumberRangeValue {
1612
+ start: number;
1613
+ end: number;
1614
+ }
1615
+ type ThumbId = 'start' | 'end';
1616
+ declare class NumberRangeSliderComponent {
1617
+ readonly min: _angular_core.InputSignal<number>;
1618
+ readonly max: _angular_core.InputSignal<number>;
1619
+ readonly step: _angular_core.InputSignal<number>;
1620
+ readonly size: _angular_core.InputSignal<NumberRangeSliderSize>;
1621
+ readonly label: _angular_core.InputSignal<string>;
1622
+ readonly disabled: _angular_core.InputSignal<boolean>;
1623
+ readonly bubbles: _angular_core.InputSignal<NumberRangeSliderBubbles>;
1624
+ readonly showRange: _angular_core.InputSignal<boolean>;
1625
+ readonly prefix: _angular_core.InputSignal<string>;
1626
+ readonly suffix: _angular_core.InputSignal<string>;
1627
+ readonly decimals: _angular_core.InputSignal<number>;
1628
+ readonly formatValue: _angular_core.InputSignal<((n: number) => string) | null>;
1629
+ readonly value: _angular_core.ModelSignal<NumberRangeValue | null>;
1630
+ readonly valueCommit: _angular_core.OutputEmitterRef<NumberRangeValue>;
1631
+ protected readonly trackEl: Signal<ElementRef<HTMLElement> | undefined>;
1632
+ protected readonly startBubbleEl: Signal<ElementRef<HTMLElement> | undefined>;
1633
+ protected readonly endBubbleEl: Signal<ElementRef<HTMLElement> | undefined>;
1634
+ protected readonly startVal: WritableSignal<number>;
1635
+ protected readonly endVal: WritableSignal<number>;
1636
+ protected readonly dragging: WritableSignal<ThumbId | null>;
1637
+ protected readonly focusedThumb: WritableSignal<ThumbId | null>;
1638
+ protected readonly hoveredThumb: WritableSignal<ThumbId | null>;
1639
+ private readonly trackWidth;
1640
+ private readonly startBubbleWidth;
1641
+ private readonly endBubbleWidth;
1642
+ private readonly platformId;
1643
+ private lastEmitted;
1644
+ protected readonly range: Signal<number>;
1645
+ protected readonly startPercent: Signal<number>;
1646
+ protected readonly endPercent: Signal<number>;
1647
+ protected readonly fillStyle: Signal<{
1648
+ left: string;
1649
+ width: string;
1650
+ }>;
1651
+ protected readonly startLabel: Signal<string>;
1652
+ protected readonly endLabel: Signal<string>;
1653
+ protected readonly startShift: Signal<number>;
1654
+ protected readonly endShift: Signal<number>;
1655
+ protected readonly bubbleVisible: Signal<{
1656
+ start: boolean;
1657
+ end: boolean;
1658
+ }>;
1659
+ protected readonly rootClasses: Signal<string>;
1660
+ constructor();
1661
+ /** Track an element's border-box width in a signal via ResizeObserver. */
1662
+ private observeWidth;
1663
+ /** Offset (px) to shift a bubble so it stays within the track bounds. */
1664
+ private bubbleShift;
1665
+ /** Push current thumb state into the value model (live, during interaction). */
1666
+ private writeValue;
1667
+ protected onThumbPointerDown(event: PointerEvent, thumb: ThumbId): void;
1668
+ protected onThumbPointerMove(event: PointerEvent, thumb: ThumbId): void;
1669
+ protected onThumbPointerUp(event: PointerEvent, thumb: ThumbId): void;
1670
+ protected onTrackPointerDown(event: PointerEvent): void;
1671
+ protected onThumbKeyDown(event: KeyboardEvent, thumb: ThumbId): void;
1672
+ protected onThumbKeyUp(event: KeyboardEvent): void;
1673
+ protected onThumbFocus(thumb: ThumbId): void;
1674
+ protected onThumbBlur(): void;
1675
+ protected onThumbEnter(thumb: ThumbId): void;
1676
+ protected onThumbLeave(): void;
1677
+ protected effectiveStep(): number;
1678
+ private setThumb;
1679
+ private commit;
1680
+ private clamp;
1681
+ private snap;
1682
+ private toPercent;
1683
+ private pixelToVal;
1684
+ private format;
1685
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberRangeSliderComponent, never>;
1686
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NumberRangeSliderComponent, "ui-number-range-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "bubbles": { "alias": "bubbles"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "decimals": { "alias": "decimals"; "required": false; "isSignal": true; }; "formatValue": { "alias": "formatValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueCommit": "valueCommit"; }, never, never, true, never>;
1687
+ }
1688
+
1597
1689
  type ChipInputVariant = 'default' | 'outlined' | 'filled';
1598
1690
  type ChipInputSize = 'sm' | 'md' | 'lg';
1599
1691
  /** Context provided to custom chip templates */
@@ -2524,5 +2616,5 @@ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
2524
2616
  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>;
2525
2617
  }
2526
2618
 
2527
- export { AccordionComponent, AccordionHeaderDirective, AccordionItemComponent, AlertComponent, BadgeComponent, BreadcrumbComponent, BreadcrumbSeparatorDirective, ButtonComponent, CardComponent, CarouselComponent, 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, ImageUploaderComponent, InputComponent, JsonTreeComponent, LOADABLE, LightboxComponent, LightboxService, LoadingDirective, LoadingService, ModalComponent, NavbarComponent, OptionComponent, OptionTemplateDirective, PaginationComponent, ProgressComponent, RadioComponent, RadioGroupComponent, RangeSliderComponent, SegmentedComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarService, SidebarToggleComponent, SkeletonComponent, SliderComponent, SpinnerComponent, SplitComponent, SplitPaneComponent, StepperComponent, 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, jsonToTreeNodes };
2528
- export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, BreadcrumbItem, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CarouselImage, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DateRangeValue, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, ImageUploaderItem, InputType, JsonKind, JsonNodeMeta, JsonToTreeOptions, LightboxConfig, Loadable, ModalSize, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, RangeSliderBubbles, RangeSliderMode, RangeSliderSize, SegmentedOption, SegmentedSize, SelectSize, SelectVariant, ShellVariant, SkeletonVariant, SliderSize, SortDirection, SortState, SpinnerSize, SpinnerVariant, SplitGutterSize, SplitOrientation, SplitSizeChange, StepperStep, SwitchSize, TabRenderMode, TableColumn, TabsSize, TabsVariant, TemplateVariable, TextareaResize, TimeFormat, TimeValue, TimepickerSize, TimepickerVariant, ToastConfig, ToastPosition, ToastVariant, TooltipPosition, TreeDropPosition, TreeFormatter, TreeLabelToken, TreeNode, TreeNodeActionType, TreeNodeContextAction, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };
2619
+ export { AccordionComponent, AccordionHeaderDirective, AccordionItemComponent, AlertComponent, BadgeComponent, BreadcrumbComponent, BreadcrumbSeparatorDirective, ButtonComponent, CardComponent, CarouselComponent, 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, ImageUploaderComponent, InputComponent, JsonTreeComponent, LOADABLE, LightboxComponent, LightboxService, LoadingDirective, LoadingService, ModalComponent, NavbarComponent, NumberRangeSliderComponent, OptionComponent, OptionTemplateDirective, PaginationComponent, ProgressComponent, RadioComponent, RadioGroupComponent, RangeSliderComponent, SegmentedComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarService, SidebarToggleComponent, SkeletonComponent, SliderComponent, SpinnerComponent, SplitComponent, SplitPaneComponent, StepperComponent, 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, jsonToTreeNodes };
2620
+ export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, BreadcrumbItem, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CarouselImage, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DateRangeValue, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, ImageUploaderItem, InputType, JsonKind, JsonNodeMeta, JsonToTreeOptions, LightboxConfig, Loadable, ModalSize, NumberRangeSliderBubbles, NumberRangeSliderSize, NumberRangeValue, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, RangeSliderBubbles, RangeSliderMode, RangeSliderSize, SegmentedOption, SegmentedSize, SelectSize, SelectVariant, ShellVariant, SkeletonVariant, SliderSize, SortDirection, SortState, SpinnerSize, SpinnerVariant, SplitGutterSize, SplitOrientation, SplitSizeChange, StepperStep, SwitchSize, TabRenderMode, TableColumn, TabsSize, TabsVariant, TemplateVariable, TextareaResize, TimeFormat, TimeValue, TimepickerSize, TimepickerVariant, ToastConfig, ToastPosition, ToastVariant, TooltipPosition, TreeDropPosition, TreeFormatter, TreeLabelToken, TreeNode, TreeNodeActionType, TreeNodeContextAction, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };