@coreui/angular-pro 5.3.4 → 5.3.6

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.
@@ -4,9 +4,10 @@ export declare class FormFloatingDirective {
4
4
  * Enable floating labels
5
5
  * @type boolean
6
6
  */
7
- floating: string | boolean;
8
- get hostClasses(): any;
7
+ readonly floating: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8
+ readonly hostClasses: import("@angular/core").Signal<{
9
+ 'form-floating': boolean;
10
+ }>;
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFloatingDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormFloatingDirective, "[cFormFloating]", never, { "floating": { "alias": "cFormFloating"; "required": false; }; }, {}, never, never, true, never>;
11
- static ngAcceptInputType_floating: unknown;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormFloatingDirective, "[cFormFloating]", never, { "floating": { "alias": "cFormFloating"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
13
  }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,3 @@
1
+ export { Label, ThumbSize } from './range-slider.type';
2
+ export { RangeSliderComponent } from './range-slider.component';
3
+ export { RangeSliderModule } from './range-slider.module';
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Label } from './range-slider.type';
3
+ import { NgCssClass } from '../coreui.types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RangeSliderLabelClassPipe implements PipeTransform {
6
+ transform(label: Label, clickableLabels: boolean): NgCssClass;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderLabelClassPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderLabelClassPipe, "rangeSliderLabelClass", true>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Label } from './range-slider.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RangeSliderLabelStylePipe implements PipeTransform {
5
+ transform(label: Label, min: number, max: number, vertical: boolean, labels: Label[], index: number, isRTL?: boolean): Record<string, any>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderLabelStylePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderLabelStylePipe, "rangeSliderLabelStyle", true>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ThumbSize } from './range-slider.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RangeSliderTooltipPositionStylePipe implements PipeTransform {
5
+ transform(value: number, min: number, max: number, vertical: boolean, thumbSize: ThumbSize | null, rtl?: boolean): Record<string, any> | null;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderTooltipPositionStylePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderTooltipPositionStylePipe, "rangeSliderTooltipPositionStyle", true>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RangeSliderTrackPipe implements PipeTransform {
4
+ transform(value: number[], min: number, max: number, vertical: boolean, rtl?: boolean): Record<string, any>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderTrackPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderTrackPipe, "rangeSliderTrack", true>;
7
+ }
@@ -0,0 +1,116 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Label, ThumbSize } from './range-slider.type';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RangeSliderComponent implements ControlValueAccessor, OnInit {
6
+ #private;
7
+ /**
8
+ * Enable or disable clickable labels in the Angular Range Slider.
9
+ * When set to `true`, users can click on labels to adjust the slider's value directly, enhancing interactivity and user experience.
10
+ * @default true
11
+ */
12
+ readonly clickableLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
13
+ /**
14
+ * Control the interactive state of the Angular Range Slider with the `disabled` prop.
15
+ * Setting it to `true` will disable all slider functionalities, preventing user interaction and visually indicating a non-interactive state.
16
+ * @default false
17
+ */
18
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
19
+ readonly disabledState: import("@angular/core").WritableSignal<boolean>;
20
+ /**
21
+ * Define the minimum distance between slider handles using the `distance` prop in the Angular Range Slider.
22
+ * This ensures that the handles maintain a specified separation, preventing overlap and maintaining clear value distinctions.
23
+ * @default 0
24
+ */
25
+ readonly distance: import("@angular/core").InputSignalWithTransform<number, unknown>;
26
+ /**
27
+ * Add descriptive labels to your Angular Range Slider by providing an array of `labels`.
28
+ * These labels enhance the slider's usability by clearly indicating key values and providing contextual information to users.
29
+ */
30
+ readonly labels: import("@angular/core").InputSignal<Label[]>;
31
+ /**
32
+ * Specify the maximum value for the Angular Range Slider with the `max` prop.
33
+ * This determines the upper limit of the slider's range, enabling precise control over the highest selectable value.
34
+ * @default 100
35
+ */
36
+ readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
37
+ /**
38
+ * Set the minimum value for the Angular Range Slider using the `min` prop.
39
+ * This defines the lower bound of the slider's range, allowing you to control the starting point of user selection.
40
+ * @default 0
41
+ */
42
+ readonly min: import("@angular/core").InputSignalWithTransform<number, unknown>;
43
+ /**
44
+ * Default role for c-range-slider.
45
+ * @default 'slider'
46
+ */
47
+ readonly role: import("@angular/core").InputSignal<string>;
48
+ /**
49
+ * Control the granularity of the Angular Range Slider by setting the `step` prop.
50
+ * This defines the increment intervals between selectable values, allowing for precise adjustments based on your application's requirements.
51
+ * @default 1
52
+ */
53
+ readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
54
+ /**
55
+ * Toggle the visibility of tooltips in the Angular Range Slider with the `tooltips` prop.
56
+ * When enabled, tooltips display the current value of the slider handles, providing real-time feedback to users.
57
+ * @default true
58
+ */
59
+ readonly tooltips: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
60
+ /**
61
+ * Customize the display format of tooltips in the Angular Range Slider using the `tooltipsFormat` function.
62
+ * This allows you to format the tooltip values according to your specific requirements, enhancing the clarity and presentation of information.
63
+ */
64
+ readonly tooltipsFormat: import("@angular/core").InputSignal<((value: number) => string) | undefined>;
65
+ /**
66
+ * Controls the visual representation of the slider's track. When set to `'fill'`, the track is dynamically filled based on the slider's value(s).
67
+ * Setting it to `false` disables the filled track.
68
+ * @default 'fill'
69
+ */
70
+ readonly track: import("@angular/core").InputSignal<boolean | "fill">;
71
+ /**
72
+ * Set the current value(s) of the Angular Range Slider using the `value` prop.
73
+ * Whether you're using a single value or an array for multi-handle sliders, this prop controls the slider's position and ensures it reflects the desired state.
74
+ */
75
+ readonly value: import("@angular/core").ModelSignal<number | number[]>;
76
+ readonly valueChange: import("@angular/core").OutputEmitterRef<number | number[]>;
77
+ readonly currentValue: import("@angular/core").Signal<number[]>;
78
+ readonly valueEffect: import("@angular/core").EffectRef;
79
+ readonly valueNow: import("@angular/core").Signal<number | number[]>;
80
+ readonly inputIds: import("@angular/core").WritableSignal<string[]>;
81
+ readonly inputIdsEffect: import("@angular/core").EffectRef;
82
+ /**
83
+ * Orient the Angular Range Slider vertically by setting the `vertical` prop to `true`.
84
+ * This changes the slider's layout from horizontal to vertical, providing a different aesthetic and fitting various UI designs.
85
+ */
86
+ readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
87
+ readonly hostClasses: import("@angular/core").Signal<{
88
+ 'range-slider': boolean;
89
+ 'range-slider-vertical': boolean;
90
+ disabled: boolean;
91
+ }>;
92
+ readonly inputRefs: import("@angular/core").Signal<readonly ElementRef<any>[]>;
93
+ readonly trackRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
94
+ readonly isDragging: import("@angular/core").WritableSignal<boolean>;
95
+ readonly dragIndex: import("@angular/core").WritableSignal<number>;
96
+ readonly thumbSize: import("@angular/core").WritableSignal<ThumbSize | null>;
97
+ readonly isDraggingEffect: import("@angular/core").EffectRef;
98
+ constructor();
99
+ ngOnInit(): void;
100
+ onChange: (value: number | number[]) => void;
101
+ onTouched: () => void;
102
+ registerOnChange(fn: any): void;
103
+ registerOnTouched(fn: any): void;
104
+ setDisabledState(isDisabled: boolean): void;
105
+ writeValue(value: number | number[]): void;
106
+ get isRtl(): boolean;
107
+ updateNearestValue: (value: number) => void;
108
+ handleInputChange(value: number, index: number): void;
109
+ handleInputsContainerMouseDown($event: MouseEvent): void;
110
+ handleLabelClick($event: MouseEvent, label: Label): void;
111
+ getLabel(label: Label): string | number;
112
+ handleMouseMove($event: MouseEvent): void;
113
+ handleMouseUp(): void;
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderComponent, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<RangeSliderComponent, "c-range-slider", never, { "clickableLabels": { "alias": "clickableLabels"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "distance": { "alias": "distance"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "tooltips": { "alias": "tooltips"; "required": false; "isSignal": true; }; "tooltipsFormat": { "alias": "tooltipsFormat"; "required": false; "isSignal": true; }; "track": { "alias": "track"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, never, never, true, never>;
116
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./range-slider.component";
3
+ export declare class RangeSliderModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RangeSliderModule, never, [typeof i1.RangeSliderComponent], [typeof i1.RangeSliderComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<RangeSliderModule>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { NgCssClass } from '../coreui.types';
2
+ export type Label = {
3
+ label: number | string;
4
+ value: number;
5
+ class?: NgCssClass;
6
+ style?: Partial<CSSStyleDeclaration>;
7
+ } | string;
8
+ export type ThumbSize = {
9
+ value: number;
10
+ unit: string | null;
11
+ };
@@ -0,0 +1,38 @@
1
+ import { Label, ThumbSize } from './range-slider.type';
2
+ export declare const calculateClickValue: (event: MouseEvent, container: HTMLDivElement, min: number, max: number, step: number, vertical: boolean, rtl: boolean) => number;
3
+ export declare const calculateMoveValue: (event: MouseEvent, container: HTMLDivElement, min: number, max: number, step: number, vertical: boolean, rtl: boolean) => number;
4
+ export declare const calculateVerticalPosition: (mouseY: number, rect: DOMRect) => number | "max" | "min";
5
+ export declare const calculateHorizontalPosition: (mouseX: number, rect: DOMRect, rtl: boolean) => number | "max" | "min";
6
+ export declare const calculateLabelPosition: (min: number, max: number, labels: Label[], label: Label, index: number) => string;
7
+ export declare const calculateTooltipPosition: (min: number, max: number, value: number, thumbSize: ThumbSize, vertical: boolean, rtl: boolean) => {
8
+ bottom: string;
9
+ marginBottom: string;
10
+ right?: undefined;
11
+ marginRight?: undefined;
12
+ left?: undefined;
13
+ marginLeft?: undefined;
14
+ } | {
15
+ right: string;
16
+ marginRight: string;
17
+ bottom?: undefined;
18
+ marginBottom?: undefined;
19
+ left?: undefined;
20
+ marginLeft?: undefined;
21
+ } | {
22
+ left: string;
23
+ marginLeft: string;
24
+ bottom?: undefined;
25
+ marginBottom?: undefined;
26
+ right?: undefined;
27
+ marginRight?: undefined;
28
+ };
29
+ export declare const getClickPosition: (event: MouseEvent, container: HTMLDivElement, vertical: boolean, rtl: boolean) => number;
30
+ export declare const getLabelValue: (min: number, max: number, labels: Label[], label: Label, index: number) => number;
31
+ export declare const getNearestValueIndex: (value: number, values: number[]) => number;
32
+ export declare const roundToStep: (number: number, step: number) => number;
33
+ export declare const updateGradient: (min: number, max: number, values: number[], vertical: boolean, rtl: boolean) => {
34
+ backgroundImage: string;
35
+ };
36
+ export declare const updateValue: (value: number, values: number[], distance: number, index: number) => number[];
37
+ export declare const validateValue: (value: number, values: number[], distance: number, index: number) => number;
38
+ export declare const equalArrays: <T>(a: T[], b: T[]) => boolean;
@@ -4,3 +4,5 @@ export { ClassToggleService } from './class-toggle.service';
4
4
  export { LocalStorageService } from './local-storage.service';
5
5
  export { InMemoryStorageService } from './in-memory-storage.service';
6
6
  export { ColorModeService, ColorMode } from './color-mode.service';
7
+ export { UIDService } from './uid.service';
8
+ export { RtlService } from './rtl.service';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class RtlService {
3
+ #private;
4
+ isRTL(element?: HTMLElement | null): boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RtlService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<RtlService>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UIDService {
3
+ #private;
4
+ getUID(prefix?: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<UIDService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<UIDService>;
7
+ }
@@ -38,7 +38,7 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
38
38
  header: boolean;
39
39
  set items(value: IItem[]);
40
40
  get items(): IItem[];
41
- items$: WritableSignal<IItemInternal[]>;
41
+ readonly items$: WritableSignal<IItemInternal[]>;
42
42
  private _items;
43
43
  set itemsPerPage(value: number);
44
44
  get itemsPerPage(): number;
@@ -121,7 +121,7 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
121
121
  clean($event: MouseEvent): void;
122
122
  handleItemsPerPageChange(value: number): void;
123
123
  handleRowChecked($event: Event, item: IItemInternal): void;
124
- handleSelectAllChange($event: any): void;
124
+ handleSelectAllChange($event: boolean): void;
125
125
  handleRowClick(param: {
126
126
  $event: MouseEvent;
127
127
  item: IItemInternal;
@@ -11,7 +11,7 @@ export declare class FilterInputDirective implements AfterViewInit {
11
11
  emitObject: {
12
12
  value: string;
13
13
  type?: string;
14
- column?: (string | IColumn);
14
+ column?: string | IColumn;
15
15
  };
16
16
  delay: number;
17
17
  onEvent: 'change' | 'input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/angular-pro",
3
- "version": "5.3.4",
3
+ "version": "5.3.6",
4
4
  "description": "CoreUI Pro Components Library for Angular",
5
5
  "copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
6
6
  "homepage": "https://coreui.io/angular",
@@ -29,7 +29,7 @@
29
29
  "@angular/forms": "^19.0.0",
30
30
  "@angular/router": "^19.0.0",
31
31
  "@coreui/coreui-pro": "^5.8.0",
32
- "@coreui/icons-angular": "~5.3.4",
32
+ "@coreui/icons-angular": "~5.3.5",
33
33
  "rxjs": "^7.8.1"
34
34
  },
35
35
  "repository": {
package/public-api.d.ts CHANGED
@@ -34,6 +34,7 @@ export * from './lib/placeholder';
34
34
  export * from './lib/popover';
35
35
  export * from './lib/progress';
36
36
  export * from './lib/rating';
37
+ export * from './lib/range-slider';
37
38
  export * from './lib/services';
38
39
  export * from './lib/sidebar';
39
40
  export * from './lib/smart-pagination';