cax-design-system 3.0.1 → 3.0.2

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.
@@ -5,6 +5,7 @@
5
5
 
6
6
  .cax-slider .cax-slider-handle {
7
7
  position: absolute;
8
+ z-index: 3;
8
9
  cursor: grab;
9
10
  touch-action: none;
10
11
  display: block;
@@ -12,6 +13,7 @@
12
13
 
13
14
  .cax-slider-range {
14
15
  position: absolute;
16
+ z-index: 2;
15
17
  display: block;
16
18
  }
17
19
 
@@ -38,4 +40,43 @@
38
40
  left: 0;
39
41
  width: 100%;
40
42
  }
43
+
44
+ /* Steps structural styles */
45
+ .cax-slider-steps {
46
+ position: absolute;
47
+ top: 50%;
48
+ left: 0;
49
+ width: 100%;
50
+ height: 0;
51
+ pointer-events: none;
52
+ }
53
+
54
+ .cax-slider-step-indicator {
55
+ position: absolute;
56
+ top: 50%;
57
+ transform: translate(-50%, -50%);
58
+ width: 4px;
59
+ height: 16px;
60
+ border-radius: 4px;
61
+ cursor: pointer;
62
+ pointer-events: auto;
63
+ z-index: 1;
64
+ }
65
+
66
+ .cax-slider-vertical {
67
+ .cax-slider-steps {
68
+ top: 0;
69
+ left: 50%;
70
+ height: 100%;
71
+ width: 0;
72
+ }
73
+
74
+ .cax-slider-step-indicator {
75
+ left: 50%;
76
+ top: auto;
77
+ transform: translate(-50%, 50%);
78
+ width: 24px;
79
+ height: 8px;
80
+ }
81
+ }
41
82
  }
@@ -62,7 +62,7 @@
62
62
  .cax-datatable-scrollable-table > .cax-datatable-thead {
63
63
  position: sticky;
64
64
  top: 0;
65
- z-index: 2;
65
+ z-index: 30;
66
66
  }
67
67
 
68
68
  .cax-datatable-scrollable-table > .cax-datatable-frozen-tbody {
@@ -82,8 +82,8 @@
82
82
  }
83
83
 
84
84
  .cax-datatable-scrollable th.cax-frozen-column {
85
- z-index: 20;
86
- background: var(--neutral-75);
85
+ z-index: 31;
86
+ background: var(--neutral-50);
87
87
  }
88
88
 
89
89
  .cax-datatable-scrollable td.cax-frozen-column {
package/slider/index.d.ts CHANGED
@@ -123,6 +123,11 @@ declare class Slider implements OnDestroy, ControlValueAccessor {
123
123
  * @group Props
124
124
  */
125
125
  autofocus: boolean | undefined;
126
+ /**
127
+ * Whether to show indicators at each step.
128
+ * @group Props
129
+ */
130
+ showSteps: boolean;
126
131
  /**
127
132
  * Callback to invoke on value change.
128
133
  * @param {SliderChangeEvent} event - Custom value change event.
@@ -192,11 +197,14 @@ declare class Slider implements OnDestroy, ControlValueAccessor {
192
197
  getValueFromHandle(handleValue: number): number;
193
198
  getDecimalsCount(value: number): number;
194
199
  getNormalizedValue(val: number): number;
200
+ get steps(): any[];
201
+ isStepActive(stepValue: number): boolean;
202
+ onStepClick(event: Event, stepValue: number): void;
195
203
  ngOnDestroy(): void;
196
204
  get minVal(): number;
197
205
  get maxVal(): number;
198
206
  static ɵfac: i0.ɵɵFactoryDeclaration<Slider, never>;
199
- static ɵcmp: i0.ɵɵComponentDeclaration<Slider, "cax-slider", never, { "animate": { "alias": "animate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "step": { "alias": "step"; "required": false; }; "range": { "alias": "range"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; }, { "onChange": "onChange"; "onSlideEnd": "onSlideEnd"; }, never, never, false, never>;
207
+ static ɵcmp: i0.ɵɵComponentDeclaration<Slider, "cax-slider", never, { "animate": { "alias": "animate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "step": { "alias": "step"; "required": false; }; "range": { "alias": "range"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "showSteps": { "alias": "showSteps"; "required": false; }; }, { "onChange": "onChange"; "onSlideEnd": "onSlideEnd"; }, never, never, false, never>;
200
208
  static ngAcceptInputType_animate: unknown;
201
209
  static ngAcceptInputType_disabled: unknown;
202
210
  static ngAcceptInputType_min: unknown;
@@ -205,6 +213,7 @@ declare class Slider implements OnDestroy, ControlValueAccessor {
205
213
  static ngAcceptInputType_range: unknown;
206
214
  static ngAcceptInputType_tabindex: unknown;
207
215
  static ngAcceptInputType_autofocus: unknown;
216
+ static ngAcceptInputType_showSteps: unknown;
208
217
  }
209
218
 
210
219
  declare class SliderModule {