@acorex/components 18.10.8 → 18.10.9

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "18.10.8",
3
+ "version": "18.10.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.2.0",
6
6
  "@angular/core": ">=18.2.0",
@@ -32,11 +32,11 @@
32
32
  "esm": "./esm2022/action-sheet/acorex-components-action-sheet.mjs",
33
33
  "default": "./fesm2022/acorex-components-action-sheet.mjs"
34
34
  },
35
- "./alert": {
36
- "types": "./alert/index.d.ts",
37
- "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
38
- "esm": "./esm2022/alert/acorex-components-alert.mjs",
39
- "default": "./fesm2022/acorex-components-alert.mjs"
35
+ "./avatar": {
36
+ "types": "./avatar/index.d.ts",
37
+ "esm2022": "./esm2022/avatar/acorex-components-avatar.mjs",
38
+ "esm": "./esm2022/avatar/acorex-components-avatar.mjs",
39
+ "default": "./fesm2022/acorex-components-avatar.mjs"
40
40
  },
41
41
  "./audio-wave": {
42
42
  "types": "./audio-wave/index.d.ts",
@@ -44,6 +44,12 @@
44
44
  "esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
45
45
  "default": "./fesm2022/acorex-components-audio-wave.mjs"
46
46
  },
47
+ "./badge": {
48
+ "types": "./badge/index.d.ts",
49
+ "esm2022": "./esm2022/badge/acorex-components-badge.mjs",
50
+ "esm": "./esm2022/badge/acorex-components-badge.mjs",
51
+ "default": "./fesm2022/acorex-components-badge.mjs"
52
+ },
47
53
  "./bottom-navigation": {
48
54
  "types": "./bottom-navigation/index.d.ts",
49
55
  "esm2022": "./esm2022/bottom-navigation/acorex-components-bottom-navigation.mjs",
@@ -56,17 +62,11 @@
56
62
  "esm": "./esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs",
57
63
  "default": "./fesm2022/acorex-components-breadcrumbs.mjs"
58
64
  },
59
- "./badge": {
60
- "types": "./badge/index.d.ts",
61
- "esm2022": "./esm2022/badge/acorex-components-badge.mjs",
62
- "esm": "./esm2022/badge/acorex-components-badge.mjs",
63
- "default": "./fesm2022/acorex-components-badge.mjs"
64
- },
65
- "./avatar": {
66
- "types": "./avatar/index.d.ts",
67
- "esm2022": "./esm2022/avatar/acorex-components-avatar.mjs",
68
- "esm": "./esm2022/avatar/acorex-components-avatar.mjs",
69
- "default": "./fesm2022/acorex-components-avatar.mjs"
65
+ "./alert": {
66
+ "types": "./alert/index.d.ts",
67
+ "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
68
+ "esm": "./esm2022/alert/acorex-components-alert.mjs",
69
+ "default": "./fesm2022/acorex-components-alert.mjs"
70
70
  },
71
71
  "./button": {
72
72
  "types": "./button/index.d.ts",
@@ -86,23 +86,17 @@
86
86
  "esm": "./esm2022/calendar/acorex-components-calendar.mjs",
87
87
  "default": "./fesm2022/acorex-components-calendar.mjs"
88
88
  },
89
- "./chips": {
90
- "types": "./chips/index.d.ts",
91
- "esm2022": "./esm2022/chips/acorex-components-chips.mjs",
92
- "esm": "./esm2022/chips/acorex-components-chips.mjs",
93
- "default": "./fesm2022/acorex-components-chips.mjs"
94
- },
95
89
  "./check-box": {
96
90
  "types": "./check-box/index.d.ts",
97
91
  "esm2022": "./esm2022/check-box/acorex-components-check-box.mjs",
98
92
  "esm": "./esm2022/check-box/acorex-components-check-box.mjs",
99
93
  "default": "./fesm2022/acorex-components-check-box.mjs"
100
94
  },
101
- "./collapse": {
102
- "types": "./collapse/index.d.ts",
103
- "esm2022": "./esm2022/collapse/acorex-components-collapse.mjs",
104
- "esm": "./esm2022/collapse/acorex-components-collapse.mjs",
105
- "default": "./fesm2022/acorex-components-collapse.mjs"
95
+ "./chips": {
96
+ "types": "./chips/index.d.ts",
97
+ "esm2022": "./esm2022/chips/acorex-components-chips.mjs",
98
+ "esm": "./esm2022/chips/acorex-components-chips.mjs",
99
+ "default": "./fesm2022/acorex-components-chips.mjs"
106
100
  },
107
101
  "./circular-progress": {
108
102
  "types": "./circular-progress/index.d.ts",
@@ -110,6 +104,12 @@
110
104
  "esm": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
111
105
  "default": "./fesm2022/acorex-components-circular-progress.mjs"
112
106
  },
107
+ "./collapse": {
108
+ "types": "./collapse/index.d.ts",
109
+ "esm2022": "./esm2022/collapse/acorex-components-collapse.mjs",
110
+ "esm": "./esm2022/collapse/acorex-components-collapse.mjs",
111
+ "default": "./fesm2022/acorex-components-collapse.mjs"
112
+ },
113
113
  "./color-box": {
114
114
  "types": "./color-box/index.d.ts",
115
115
  "esm2022": "./esm2022/color-box/acorex-components-color-box.mjs",
@@ -182,18 +182,18 @@
182
182
  "esm": "./esm2022/dialog/acorex-components-dialog.mjs",
183
183
  "default": "./fesm2022/acorex-components-dialog.mjs"
184
184
  },
185
- "./dropdown": {
186
- "types": "./dropdown/index.d.ts",
187
- "esm2022": "./esm2022/dropdown/acorex-components-dropdown.mjs",
188
- "esm": "./esm2022/dropdown/acorex-components-dropdown.mjs",
189
- "default": "./fesm2022/acorex-components-dropdown.mjs"
190
- },
191
185
  "./drawer": {
192
186
  "types": "./drawer/index.d.ts",
193
187
  "esm2022": "./esm2022/drawer/acorex-components-drawer.mjs",
194
188
  "esm": "./esm2022/drawer/acorex-components-drawer.mjs",
195
189
  "default": "./fesm2022/acorex-components-drawer.mjs"
196
190
  },
191
+ "./dropdown": {
192
+ "types": "./dropdown/index.d.ts",
193
+ "esm2022": "./esm2022/dropdown/acorex-components-dropdown.mjs",
194
+ "esm": "./esm2022/dropdown/acorex-components-dropdown.mjs",
195
+ "default": "./fesm2022/acorex-components-dropdown.mjs"
196
+ },
197
197
  "./dropdown-button": {
198
198
  "types": "./dropdown-button/index.d.ts",
199
199
  "esm2022": "./esm2022/dropdown-button/acorex-components-dropdown-button.mjs",
@@ -260,23 +260,17 @@
260
260
  "esm": "./esm2022/nav/acorex-components-nav.mjs",
261
261
  "default": "./fesm2022/acorex-components-nav.mjs"
262
262
  },
263
- "./notification": {
264
- "types": "./notification/index.d.ts",
265
- "esm2022": "./esm2022/notification/acorex-components-notification.mjs",
266
- "esm": "./esm2022/notification/acorex-components-notification.mjs",
267
- "default": "./fesm2022/acorex-components-notification.mjs"
268
- },
269
263
  "./navbar": {
270
264
  "types": "./navbar/index.d.ts",
271
265
  "esm2022": "./esm2022/navbar/acorex-components-navbar.mjs",
272
266
  "esm": "./esm2022/navbar/acorex-components-navbar.mjs",
273
267
  "default": "./fesm2022/acorex-components-navbar.mjs"
274
268
  },
275
- "./otp": {
276
- "types": "./otp/index.d.ts",
277
- "esm2022": "./esm2022/otp/acorex-components-otp.mjs",
278
- "esm": "./esm2022/otp/acorex-components-otp.mjs",
279
- "default": "./fesm2022/acorex-components-otp.mjs"
269
+ "./notification": {
270
+ "types": "./notification/index.d.ts",
271
+ "esm2022": "./esm2022/notification/acorex-components-notification.mjs",
272
+ "esm": "./esm2022/notification/acorex-components-notification.mjs",
273
+ "default": "./fesm2022/acorex-components-notification.mjs"
280
274
  },
281
275
  "./number-box": {
282
276
  "types": "./number-box/index.d.ts",
@@ -284,6 +278,12 @@
284
278
  "esm": "./esm2022/number-box/acorex-components-number-box.mjs",
285
279
  "default": "./fesm2022/acorex-components-number-box.mjs"
286
280
  },
281
+ "./otp": {
282
+ "types": "./otp/index.d.ts",
283
+ "esm2022": "./esm2022/otp/acorex-components-otp.mjs",
284
+ "esm": "./esm2022/otp/acorex-components-otp.mjs",
285
+ "default": "./fesm2022/acorex-components-otp.mjs"
286
+ },
287
287
  "./page": {
288
288
  "types": "./page/index.d.ts",
289
289
  "esm2022": "./esm2022/page/acorex-components-page.mjs",
@@ -446,18 +446,18 @@
446
446
  "esm": "./esm2022/text-area/acorex-components-text-area.mjs",
447
447
  "default": "./fesm2022/acorex-components-text-area.mjs"
448
448
  },
449
- "./time-line": {
450
- "types": "./time-line/index.d.ts",
451
- "esm2022": "./esm2022/time-line/acorex-components-time-line.mjs",
452
- "esm": "./esm2022/time-line/acorex-components-time-line.mjs",
453
- "default": "./fesm2022/acorex-components-time-line.mjs"
454
- },
455
449
  "./text-box": {
456
450
  "types": "./text-box/index.d.ts",
457
451
  "esm2022": "./esm2022/text-box/acorex-components-text-box.mjs",
458
452
  "esm": "./esm2022/text-box/acorex-components-text-box.mjs",
459
453
  "default": "./fesm2022/acorex-components-text-box.mjs"
460
454
  },
455
+ "./time-line": {
456
+ "types": "./time-line/index.d.ts",
457
+ "esm2022": "./esm2022/time-line/acorex-components-time-line.mjs",
458
+ "esm": "./esm2022/time-line/acorex-components-time-line.mjs",
459
+ "default": "./fesm2022/acorex-components-time-line.mjs"
460
+ },
461
461
  "./toast": {
462
462
  "types": "./toast/index.d.ts",
463
463
  "esm2022": "./esm2022/toast/acorex-components-toast.mjs",
@@ -7,70 +7,96 @@ declare const AXRangeSliderComponent_base: import("polytype").Polytype.Clustered
7
7
  ɵprov: import("@angular/core").ɵɵInjectableDeclaration<MXValueComponent<any>>;
8
8
  }]>;
9
9
  /**
10
- * @category
11
- * Range slider for selecting a range of values.
10
+ * @description
11
+ * A range slider for selecting a range of values, supporting both single and dual modes.
12
+ * The slider offers step, snap, and tooltip configurations.
13
+ *
14
+ * @example
15
+ * <ax-range-slider [min]="0" [max]="100" [step]="1" [mode]="'dual'"></ax-range-slider>
12
16
  */
13
17
  export declare class AXRangeSliderComponent extends AXRangeSliderComponent_base {
14
- /**
15
- * @ignore
16
- */
17
18
  private zone;
18
19
  /**
19
- * @description orientation including vertical and horizontal
20
+ * @description
21
+ * The orientation of the slider, either 'horizontal' or 'vertical'.
22
+ * @default 'horizontal'
20
23
  */
21
24
  orientation: import("@angular/core").InputSignal<AXOrientation>;
22
25
  /**
23
- * @description color for highlight and tooltip and handler
26
+ * @description
27
+ * Color theme for the slider, affecting highlight, tooltip, and handler.
28
+ * @default 'primary'
24
29
  */
25
30
  color: import("@angular/core").InputSignal<AXStyleColorType>;
26
31
  /**
27
- * @description values is a number single mode
28
- * and array of 2 number for dual mode
32
+ * @description
33
+ * The value(s) of the slider. Can be a single number for single mode or an array of two numbers for dual mode.
29
34
  */
30
35
  values: import("@angular/core").ModelSignal<AXRangeSliderValue>;
31
36
  /**
32
- * @description mode including single and dual
37
+ * @description
38
+ * The mode of the slider, either 'single' or 'dual'.
39
+ * @default 'single'
33
40
  */
34
41
  mode: import("@angular/core").InputSignal<AXRangeSliderMode>;
35
42
  /**
36
- * @description minimum value
43
+ * @description
44
+ * The minimum value of the slider.
45
+ * @default 0
37
46
  */
38
47
  min: import("@angular/core").InputSignal<number>;
39
48
  /**
40
- * @description maximum value
49
+ * @description
50
+ * The maximum value of the slider.
51
+ * @default 100
41
52
  */
42
53
  max: import("@angular/core").InputSignal<number>;
43
54
  /**
44
- * @description step for changing values
55
+ * @description
56
+ * The step increment for value changes.
57
+ * @default 1
45
58
  */
46
59
  step: import("@angular/core").InputSignal<number>;
47
60
  /**
48
- * @description act as ruler for range slider,
49
- * its range of showing to user
61
+ * @description
62
+ * The snapping increment for the slider.
63
+ * @default 1
50
64
  */
51
65
  snap: import("@angular/core").InputSignal<number>;
52
66
  /**
53
- * @description tooltip for showing value of handlers
67
+ * @description
68
+ * Mode for displaying tooltips, can be at the start, end, or both.
69
+ * @default 'end'
54
70
  */
55
71
  tooltipMode: import("@angular/core").InputSignal<AXRangeSliderTooltipMode>;
56
72
  /**
57
- * @description deferent modes for snap including start, end and both
73
+ * @description
74
+ * Mode for snapping, can snap at the start, end, or both.
75
+ * @default 'start'
58
76
  */
59
77
  snapMode: import("@angular/core").InputSignal<AXRangeSliderSnapMode>;
60
78
  /**
61
- * @description a flag for having step
79
+ * @description
80
+ * Whether the slider should have steps.
81
+ * @default true
62
82
  */
63
83
  hasStep: import("@angular/core").InputSignal<boolean>;
64
84
  /**
65
- * @description a flag for showing snap
85
+ * @description
86
+ * Whether the slider should display snapping.
87
+ * @default false
66
88
  */
67
89
  hasSnap: import("@angular/core").InputSignal<boolean>;
68
90
  /**
69
- * @description a flag for showing snap labels
91
+ * @description
92
+ * Whether the slider should display labels for snapping points.
93
+ * @default Value derived from `hasSnap()`
70
94
  */
71
95
  hasLable: import("@angular/core").InputSignal<boolean>;
72
96
  /**
73
- * @description a flag for showing tooltip for values
97
+ * @description
98
+ * Whether the slider should display tooltips.
99
+ * @default false
74
100
  */
75
101
  hasTooltip: import("@angular/core").InputSignal<boolean>;
76
102
  /**
@@ -2,50 +2,108 @@ import { MXValueComponent } from '@acorex/components/common';
2
2
  import { ElementRef, Renderer2 } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
- * A component for selecting a rating using star icons.
5
+ * @description
6
+ * The `AXRatePickerComponent` provides a customizable rating picker.
7
+ * The component allows users to select a rating between 0 and the defined maximum.
8
+ * It supports transitions, dynamic value changes, and hover states.
6
9
  *
7
- * This component allows users to pick a rating by clicking or dragging over star icons.
8
- * It supports rounding options and manages the rating state internally.
10
+ * @example
11
+ * <ax-rate-picker [max]="5" [readonly]="false" [disabled]="false"></ax-rate-picker>
9
12
  */
10
13
  export declare class AXRatePickerComponent extends MXValueComponent<number> {
11
- /** The icon name to use for stars (e.g., 'fa-star'). */
14
+ /**
15
+ * @description
16
+ * The icon to be used for each rating point.
17
+ * @default 'fa-star'
18
+ */
12
19
  iconName: import("@angular/core").InputSignal<string>;
13
- /** The maximum rating value (e.g., 5 stars). */
20
+ /**
21
+ * @description
22
+ * Maximum value for the rating.
23
+ * Defines how many rating points are available.
24
+ * @default 5
25
+ */
14
26
  max: import("@angular/core").InputSignal<number>;
15
- /** Determines if the rating should be rounded to the nearest integer. */
16
- isRound: import("@angular/core").InputSignal<boolean>;
17
- /** choosing to have css transition for unchanging value after hover. */
27
+ /**
28
+ * @description
29
+ * Defines the step increment between rating values.
30
+ * The rating value will be rounded to the nearest multiple of this step.
31
+ * @default 0.01
32
+ */
33
+ step: import("@angular/core").InputSignal<number>;
34
+ /**
35
+ * @description
36
+ * Whether the rating should have a transition effect when changing values.
37
+ * @default true
38
+ */
18
39
  hasTransition: import("@angular/core").InputSignal<boolean>;
19
- /** The percentage of the current rating value relative to the maximum rating. */
40
+ /**
41
+ * @description
42
+ * The percentage of the current rating value relative to the maximum rating.
43
+ */
20
44
  protected ratePercentage: import("@angular/core").Signal<number>;
21
- /** The current rating value as a signal. */
45
+ /**
46
+ * @description
47
+ * The current rating value as a signal.
48
+ */
22
49
  private currentValue;
23
- /** State for tracking hover status and previous value. */
50
+ /**
51
+ * @description
52
+ * State for tracking hover status and previous value.
53
+ */
24
54
  private prevState;
25
- /** Reference to the container element. */
55
+ /**
56
+ * @description
57
+ * Reference to the container element.
58
+ */
26
59
  containerEl: import("@angular/core").Signal<ElementRef<any>>;
27
- /** Reference to the rating element. */
60
+ /**
61
+ * @description
62
+ * Reference to the rating element.
63
+ */
28
64
  ratingEl: import("@angular/core").Signal<ElementRef<any>>;
29
- /** Renderer for manipulating styles. */
65
+ /**
66
+ * @description
67
+ * Renderer for manipulating styles.
68
+ */
30
69
  renderer: Renderer2;
31
- /** Array of rating values from 1 to `max`. */
70
+ /**
71
+ * @description
72
+ * Array of rating values from 1 to `max`.
73
+ */
32
74
  protected rates: import("@angular/core").Signal<number[]>;
33
75
  /**
76
+ * @description
34
77
  * Initializes the component and sets up value change subscription.
35
78
  */
36
79
  constructor();
37
80
  /**
81
+ * @description
38
82
  * Calculates and updates the rating based on the mouse or touch event.
39
83
  *
40
84
  * @param event - The mouse or touch event triggering the rating calculation.
41
85
  */
42
86
  protected calculateRate(event: MouseEvent | TouchEvent): void;
43
87
  /**
88
+ * @description
89
+ * Rounds the rating value to the nearest step.
90
+ *
91
+ * @param percentage - The calculated percentage from pointer event.
92
+ * @returns The rounded rating value.
93
+ */
94
+ private roundToStep;
95
+ /**
96
+ * @description
44
97
  * Handles mouse enter events to start tracking mouse movements for rating.
45
98
  */
46
99
  protected mouseEnter(): void;
100
+ /**
101
+ * @description
102
+ * Handles mouse leave events to reset styles.
103
+ */
47
104
  mouseLeave(): void;
48
105
  /**
106
+ * @description
49
107
  * Cleans up event listeners and restores the previous rating value.
50
108
  *
51
109
  * @param moveListener - The function to remove for mouse move events.
@@ -53,17 +111,20 @@ export declare class AXRatePickerComponent extends MXValueComponent<number> {
53
111
  */
54
112
  private onEnd;
55
113
  /**
114
+ * @description
56
115
  * Determines if the component is active (i.e., not readonly or disabled).
57
116
  */
58
117
  get isActive(): boolean;
59
118
  /**
119
+ * @description
60
120
  * Determines if the component is in readonly mode.
61
121
  */
62
122
  get isReadonly(): boolean;
63
123
  /**
124
+ * @description
64
125
  * Determines if the component is disabled.
65
126
  */
66
127
  get isDisabled(): boolean;
67
128
  static ɵfac: i0.ɵɵFactoryDeclaration<AXRatePickerComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<AXRatePickerComponent, "ax-rate-picker", never, { "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "isRound": { "alias": "isRound"; "required": false; "isSignal": true; }; "hasTransition": { "alias": "hasTransition"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
129
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXRatePickerComponent, "ax-rate-picker", never, { "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "hasTransition": { "alias": "hasTransition"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
69
130
  }
@@ -18,6 +18,7 @@ export declare class AXSideMenuItemComponent extends AXSideMenuItemComponent_bas
18
18
  toggle(): void;
19
19
  open(): void;
20
20
  close(): void;
21
+ private get __hostClass();
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<AXSideMenuItemComponent, never>;
22
23
  static ɵcmp: i0.ɵɵComponentDeclaration<AXSideMenuItemComponent, "ax-side-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, { "isLoading": "isLoadingChange"; "text": "textChange"; "isCollapsed": "isCollapsedChange"; "active": "activeChange"; "onClick": "onClick"; }, never, ["ax-title", "ax-prefix", "*", "ax-suffix", "ax-side-menu-item, ng-container", "ax-divider"], false, never>;
23
24
  }