@m1z23r/ngx-ui 1.1.47 → 1.1.48

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.47",
3
+ "version": "1.1.48",
4
4
  "description": "A modern Angular UI component library with themeable components and responsive layout system",
5
5
  "license": "MIT",
6
6
  "author": "m1z23r",
@@ -1435,6 +1435,82 @@ declare class SliderComponent {
1435
1435
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "ui-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; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueCommit": "valueCommit"; }, never, never, true, never>;
1436
1436
  }
1437
1437
 
1438
+ type RangeSliderMode = 'time' | 'date' | 'datetime';
1439
+ type RangeSliderSize = 'sm' | 'md' | 'lg';
1440
+ type RangeSliderBubbles = 'always' | 'active' | 'never';
1441
+ interface DateRangeValue {
1442
+ start: Date;
1443
+ end: Date;
1444
+ }
1445
+ type ThumbId = 'start' | 'end';
1446
+ declare class RangeSliderComponent {
1447
+ readonly min: _angular_core.InputSignal<Date>;
1448
+ readonly max: _angular_core.InputSignal<Date>;
1449
+ readonly mode: _angular_core.InputSignal<RangeSliderMode>;
1450
+ readonly size: _angular_core.InputSignal<RangeSliderSize>;
1451
+ readonly label: _angular_core.InputSignal<string>;
1452
+ readonly disabled: _angular_core.InputSignal<boolean>;
1453
+ readonly step: _angular_core.InputSignal<number | null>;
1454
+ readonly bubbles: _angular_core.InputSignal<RangeSliderBubbles>;
1455
+ readonly showRange: _angular_core.InputSignal<boolean>;
1456
+ readonly format: _angular_core.InputSignal<string | null>;
1457
+ readonly value: _angular_core.ModelSignal<DateRangeValue | null>;
1458
+ readonly valueCommit: _angular_core.OutputEmitterRef<DateRangeValue>;
1459
+ protected readonly trackEl: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
1460
+ protected readonly startMs: _angular_core.WritableSignal<number>;
1461
+ protected readonly endMs: _angular_core.WritableSignal<number>;
1462
+ protected readonly dragging: _angular_core.WritableSignal<ThumbId | null>;
1463
+ protected readonly focusedThumb: _angular_core.WritableSignal<ThumbId | null>;
1464
+ protected readonly hoveredThumb: _angular_core.WritableSignal<ThumbId | null>;
1465
+ private lastEmitted;
1466
+ protected readonly minMs: _angular_core.Signal<number>;
1467
+ protected readonly maxMs: _angular_core.Signal<number>;
1468
+ protected readonly range: _angular_core.Signal<number>;
1469
+ protected readonly effectiveStep: _angular_core.Signal<number>;
1470
+ protected readonly startPercent: _angular_core.Signal<number>;
1471
+ protected readonly endPercent: _angular_core.Signal<number>;
1472
+ protected readonly fillStyle: _angular_core.Signal<{
1473
+ left: string;
1474
+ width: string;
1475
+ }>;
1476
+ protected readonly startLabel: _angular_core.Signal<string>;
1477
+ protected readonly endLabel: _angular_core.Signal<string>;
1478
+ protected readonly bubbleVisible: _angular_core.Signal<{
1479
+ start: boolean;
1480
+ end: boolean;
1481
+ }>;
1482
+ protected readonly rootClasses: _angular_core.Signal<string>;
1483
+ constructor();
1484
+ /** Push current thumb state into the value model (live, during interaction). */
1485
+ private writeValue;
1486
+ protected onThumbPointerDown(event: PointerEvent, thumb: ThumbId): void;
1487
+ protected onThumbPointerMove(event: PointerEvent, thumb: ThumbId): void;
1488
+ protected onThumbPointerUp(event: PointerEvent, thumb: ThumbId): void;
1489
+ protected onTrackPointerDown(event: PointerEvent): void;
1490
+ protected onThumbKeyDown(event: KeyboardEvent, thumb: ThumbId): void;
1491
+ protected onThumbKeyUp(event: KeyboardEvent): void;
1492
+ protected onThumbFocus(thumb: ThumbId): void;
1493
+ protected onThumbBlur(): void;
1494
+ protected onThumbEnter(thumb: ThumbId): void;
1495
+ protected onThumbLeave(): void;
1496
+ private setThumb;
1497
+ private commit;
1498
+ private clamp;
1499
+ private snap;
1500
+ private toPercent;
1501
+ private pixelToMs;
1502
+ /**
1503
+ * Convert internal ms to a Date appropriate for the current mode.
1504
+ * date mode normalizes time-of-day to that of `min`.
1505
+ */
1506
+ private materialize;
1507
+ private formatMs;
1508
+ /** Tiny formatter for common tokens: yyyy MM dd HH mm ss MMM d. */
1509
+ private applyFormat;
1510
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RangeSliderComponent, never>;
1511
+ 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>;
1512
+ }
1513
+
1438
1514
  type ChipInputVariant = 'default' | 'outlined' | 'filled';
1439
1515
  type ChipInputSize = 'sm' | 'md' | 'lg';
1440
1516
  /** Context provided to custom chip templates */
@@ -1577,7 +1653,7 @@ declare class DatepickerComponent implements OnDestroy {
1577
1653
  readonly format: _angular_core.InputSignal<string>;
1578
1654
  readonly firstDayOfWeek: _angular_core.InputSignal<0 | 1>;
1579
1655
  readonly id: _angular_core.InputSignal<string>;
1580
- readonly value: _angular_core.ModelSignal<DateRange | Date | null>;
1656
+ readonly value: _angular_core.ModelSignal<Date | DateRange | null>;
1581
1657
  readonly opened: _angular_core.OutputEmitterRef<void>;
1582
1658
  readonly closed: _angular_core.OutputEmitterRef<void>;
1583
1659
  triggerRef: ElementRef<HTMLElement>;
@@ -2116,5 +2192,5 @@ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
2116
2192
  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>;
2117
2193
  }
2118
2194
 
2119
- 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 };
2120
- 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 };
2195
+ 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, RangeSliderComponent, 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 };
2196
+ export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DateRangeValue, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, InputType, Loadable, ModalSize, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, RangeSliderBubbles, RangeSliderMode, RangeSliderSize, 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 };