@acorex/components 18.8.2 → 18.8.3
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.component.d.ts +3 -12
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +13 -22
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +8 -9
- package/esm2022/color-palette/lib/color-palette.component.mjs +2 -2
- package/esm2022/common/lib/components/value-component.class.mjs +1 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +1 -1
- package/esm2022/number-box/lib/number-box.component.mjs +47 -29
- package/esm2022/paint/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.mjs +3 -3
- package/esm2022/paint/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.mjs +3 -3
- package/esm2022/paint/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.mjs +1 -1
- package/esm2022/paint/lib/paint/paint-view/paint-view.component.mjs +4 -3
- package/esm2022/phone-box/lib/phone-box.component.mjs +3 -3
- package/esm2022/range-slider/lib/range-slider.class.mjs +1 -1
- package/esm2022/range-slider/lib/range-slider.component.mjs +156 -134
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +7 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.mjs +29 -9
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.mjs +3 -3
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +2 -1
- package/fesm2022/acorex-components-action-sheet.mjs +12 -21
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +7 -7
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +46 -28
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +8 -7
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +2 -2
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +154 -132
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +36 -9
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/number-box/lib/number-box.component.d.ts +30 -29
- package/package.json +64 -64
- package/range-slider/lib/range-slider.class.d.ts +1 -0
- package/range-slider/lib/range-slider.component.d.ts +43 -11
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.d.ts +6 -2
- package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +1 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AXValuableComponent, MXValueComponent, } from '@acorex/components/common';
|
1
|
+
import { AXValuableComponent, AXValueChangedEvent, MXValueComponent, } from '@acorex/components/common';
|
2
2
|
import { ChangeDetectionStrategy, Component, HostBinding, HostListener, NgZone, ViewEncapsulation, computed, effect, forwardRef, inject, input, model, output, } from '@angular/core';
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
4
|
import { classes } from 'polytype';
|
@@ -9,7 +9,6 @@ import * as i1 from "@angular/common";
|
|
9
9
|
* Range slider for selecting a range of values.
|
10
10
|
*/
|
11
11
|
export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
12
|
-
//protected AXTooltip = computed(() => {});
|
13
12
|
constructor() {
|
14
13
|
super();
|
15
14
|
/**
|
@@ -62,6 +61,10 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
62
61
|
* @description deferent modes for snap including start, end and both
|
63
62
|
*/
|
64
63
|
this.snapMode = input('start');
|
64
|
+
/**
|
65
|
+
* @description a flag for having step
|
66
|
+
*/
|
67
|
+
this.hasStep = input(true);
|
65
68
|
/**
|
66
69
|
* @description a flag for showing snap
|
67
70
|
*/
|
@@ -74,11 +77,30 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
74
77
|
* @description a flag for showing tooltip for values
|
75
78
|
*/
|
76
79
|
this.hasTooltip = input(false);
|
80
|
+
/**
|
81
|
+
* @ignore
|
82
|
+
*/
|
77
83
|
this.height = 0.25;
|
84
|
+
/**
|
85
|
+
* @ignore
|
86
|
+
*/
|
78
87
|
this.newHeight = 'var(--ax-range-slider-base-thickness)';
|
88
|
+
/**
|
89
|
+
* @ignore
|
90
|
+
*/
|
79
91
|
this.range = computed(() => this.max() - this.min());
|
92
|
+
/**
|
93
|
+
* @ignore
|
94
|
+
*/
|
80
95
|
this.isHorizontal = computed(() => this.orientation() === 'horizontal');
|
96
|
+
/**
|
97
|
+
* @ignore
|
98
|
+
*/
|
81
99
|
this.isDual = computed(() => this.mode() === 'dual');
|
100
|
+
/**
|
101
|
+
* @ignore
|
102
|
+
*/
|
103
|
+
this.correctMinMax = computed(() => this.max() - this.min() > 0);
|
82
104
|
/**
|
83
105
|
* @ignore
|
84
106
|
*/
|
@@ -137,27 +159,31 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
137
159
|
height: this.isDual()
|
138
160
|
? this.calculatePos()[1] - this.calculatePos()[0] + '%'
|
139
161
|
: this.calculatePos() + '%',
|
140
|
-
|
162
|
+
bottom: this.mode() === 'dual' ? this.calculatePos()[0] + '%' : '0%',
|
141
163
|
});
|
142
164
|
/**
|
143
165
|
* @ignore
|
144
166
|
*/
|
145
167
|
this.AXRangeSliderHandler1 = computed(() => this.isHorizontal()
|
146
168
|
? {
|
147
|
-
left: this.isDual()
|
169
|
+
left: this.isDual()
|
170
|
+
? this.calculatePos()[0] + 0.1 + '%'
|
171
|
+
: this.calculatePos() + 0.1 + '%',
|
148
172
|
}
|
149
173
|
: {
|
150
|
-
|
174
|
+
bottom: this.isDual()
|
175
|
+
? this.calculatePos()[0] - 5.4 + '%'
|
176
|
+
: this.calculatePos() - 5.4 + '%',
|
151
177
|
});
|
152
178
|
/**
|
153
179
|
* @ignore
|
154
180
|
*/
|
155
181
|
this.AXRangeSliderHandler2 = computed(() => this.isHorizontal()
|
156
182
|
? {
|
157
|
-
left: this.calculatePos()[1] + '%',
|
183
|
+
left: this.calculatePos()[1] + 0.1 + '%',
|
158
184
|
}
|
159
185
|
: {
|
160
|
-
|
186
|
+
bottom: this.calculatePos()[1] - 5.4 + '%',
|
161
187
|
});
|
162
188
|
/**
|
163
189
|
* @ignore
|
@@ -209,28 +235,39 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
209
235
|
}
|
210
236
|
}
|
211
237
|
});
|
238
|
+
effect(() => this.commitValue(this.values()));
|
212
239
|
effect(() => {
|
213
|
-
this.
|
214
|
-
|
240
|
+
if (this.correctMinMax()) {
|
241
|
+
this.fixInitializeValues();
|
242
|
+
this.fixChangingMode();
|
243
|
+
}
|
244
|
+
else {
|
245
|
+
console.error(`Min = ${this.min()} And Max = ${this.max()} is not correct inputs.`);
|
246
|
+
}
|
215
247
|
}, { allowSignalWrites: true });
|
216
248
|
}
|
217
249
|
/**
|
218
250
|
* @ignore
|
219
251
|
*/
|
220
252
|
ngOnInit() {
|
221
|
-
//(window as any).rangeSlider = this; for debugging purpose only
|
222
253
|
super.ngOnInit();
|
223
|
-
|
254
|
+
//(window as any).rangeSlider = this; //for debugging purpose only
|
255
|
+
if (!this.correctMinMax()) {
|
256
|
+
console.error(`Min = ${this.min()} And Max = ${this.max()} is not correct inputs.`);
|
257
|
+
}
|
258
|
+
else {
|
259
|
+
this.initializeValues();
|
260
|
+
}
|
224
261
|
}
|
225
262
|
/**
|
226
263
|
* @ignore
|
227
264
|
*/
|
228
|
-
|
265
|
+
onStartHandler(event, circle) {
|
229
266
|
this.zone.runOutsideAngular(() => {
|
230
|
-
if (this.disabled)
|
267
|
+
if (this.disabled || this.readonly || !this.correctMinMax())
|
231
268
|
return;
|
232
269
|
event.preventDefault();
|
233
|
-
this.sliderElement = event.target.closest('ax-range-slider');
|
270
|
+
this.sliderElement = event.target.closest('.ax-range-slider');
|
234
271
|
if (this.sliderElement) {
|
235
272
|
this.choosenHandler = circle;
|
236
273
|
const moveListener = (moveEvent) => this.onMove(moveEvent, circle);
|
@@ -245,33 +282,30 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
245
282
|
/**
|
246
283
|
* @ignore
|
247
284
|
*/
|
248
|
-
|
285
|
+
onStartBar(event) {
|
249
286
|
let circle = 'first';
|
250
|
-
this.sliderElement = event.target.closest('ax-range-slider');
|
287
|
+
this.sliderElement = event.target.closest('.ax-range-slider');
|
251
288
|
this.zone.runOutsideAngular(() => {
|
252
|
-
if (!this.sliderElement || this.disabled)
|
289
|
+
if (!this.sliderElement || this.disabled || !this.correctMinMax())
|
253
290
|
return;
|
254
|
-
const
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
291
|
+
const calculatePercent = this.calculatePercentOnMove(event);
|
292
|
+
let value = this.getValueFromPercent(calculatePercent);
|
293
|
+
value = Number.parseFloat(value.toFixed(2));
|
294
|
+
if (this.hasStep()) {
|
295
|
+
value = this.roundToStep(value);
|
296
|
+
}
|
259
297
|
if (this.isDual()) {
|
260
|
-
if (
|
261
|
-
this.values.set([
|
262
|
-
this.commitValue(this.values());
|
263
|
-
}
|
264
|
-
else if (clickPosition > this.calculatePos()[1]) {
|
298
|
+
if (value >= (this.values()[1] - this.values()[0]) / 2) {
|
299
|
+
this.values.set([this.values()[0], value]);
|
265
300
|
circle = 'second';
|
266
|
-
|
267
|
-
|
301
|
+
}
|
302
|
+
else {
|
303
|
+
this.values.set([value, this.values()[1]]);
|
304
|
+
circle = 'first';
|
268
305
|
}
|
269
306
|
}
|
270
307
|
else {
|
271
|
-
|
272
|
-
this.values.set(newValue);
|
273
|
-
this.commitValue(this.values());
|
274
|
-
}
|
308
|
+
this.values.set(value);
|
275
309
|
}
|
276
310
|
this.onStart.emit({
|
277
311
|
component: this,
|
@@ -280,64 +314,36 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
280
314
|
data: this.values(),
|
281
315
|
});
|
282
316
|
});
|
283
|
-
this.
|
317
|
+
this.onStartHandler(event, circle);
|
284
318
|
}
|
285
319
|
/**
|
286
320
|
* @ignore
|
287
321
|
*/
|
288
322
|
onMove(event, circle) {
|
289
|
-
if (!this.sliderElement
|
323
|
+
if (!this.sliderElement)
|
290
324
|
return;
|
291
|
-
const
|
292
|
-
let
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
newLeft = Math.max(0, Math.min(newLeft, 100));
|
297
|
-
newValue = Math.round(this.min() + (newLeft / 100) * (this.max() - this.min()));
|
325
|
+
const calculatePercent = this.calculatePercentOnMove(event);
|
326
|
+
let value = this.getValueFromPercent(calculatePercent);
|
327
|
+
value = Number.parseFloat(value.toFixed(2));
|
328
|
+
if (this.hasStep()) {
|
329
|
+
value = this.roundToStep(value);
|
298
330
|
}
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
newValue = Math.round(this.min() + (newLeft / 100) * (this.max() - this.min()));
|
304
|
-
}
|
305
|
-
if (!this.readonly) {
|
306
|
-
if (this.isDual()) {
|
307
|
-
if (circle === 'first') {
|
308
|
-
newValue = Math.max(this.min(), Math.min(newValue, this.values()[1] - this.step()));
|
309
|
-
if (this.step() !== 1)
|
310
|
-
newValue = this.calculateStep(newValue);
|
311
|
-
if (this.values()[0] !== newValue) {
|
312
|
-
this.values.set([newValue, this.values()[1]]);
|
313
|
-
this.commitValue(this.values());
|
314
|
-
}
|
315
|
-
}
|
316
|
-
else {
|
317
|
-
newValue = Math.min(this.max(), Math.max(newValue, this.values()[0] + this.step()));
|
318
|
-
if (this.step() !== 1)
|
319
|
-
newValue = this.calculateStep(newValue);
|
320
|
-
if (this.values()[1] !== newValue) {
|
321
|
-
this.values.set([this.values()[0], newValue]);
|
322
|
-
this.commitValue(this.values());
|
323
|
-
}
|
331
|
+
if (this.isDual()) {
|
332
|
+
if (circle === 'first' && value < this.values()[1]) {
|
333
|
+
if (this.checkValues(value, 'first', this.values()[1]) && this.values()[0] !== value) {
|
334
|
+
this.values.set([value, this.values()[1]]);
|
324
335
|
}
|
325
336
|
}
|
326
|
-
else {
|
327
|
-
|
328
|
-
|
329
|
-
newValue = this.calculateStep(newValue);
|
330
|
-
if (this.values() !== newValue) {
|
331
|
-
this.values.set(newValue);
|
332
|
-
this.commitValue(newValue);
|
337
|
+
else if (circle === 'second' && value > this.values()[0] && this.values()[1] !== value) {
|
338
|
+
if (this.checkValues(value, 'second', this.values()[0])) {
|
339
|
+
this.values.set([this.values()[0], value]);
|
333
340
|
}
|
334
341
|
}
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
});
|
342
|
+
}
|
343
|
+
else {
|
344
|
+
if (this.checkValue(value) && this.values() !== value) {
|
345
|
+
this.values.set(value);
|
346
|
+
}
|
341
347
|
}
|
342
348
|
}
|
343
349
|
/**
|
@@ -369,27 +375,21 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
369
375
|
else {
|
370
376
|
this.values.set(this.min());
|
371
377
|
}
|
372
|
-
this.commitValue(this.values());
|
373
378
|
}
|
374
379
|
}
|
375
380
|
/**
|
376
381
|
* @ignore
|
377
382
|
*/
|
378
383
|
fixInitializeValues() {
|
379
|
-
//swap value
|
380
384
|
if (this.isDual() && this.values()[0] > this.values()[1]) {
|
381
385
|
this.values.set([this.values()[1], this.values()[0]]);
|
382
|
-
this.commitValue(this.values());
|
383
386
|
}
|
384
|
-
//not in range
|
385
387
|
if (typeof this.values() === 'number' && !this.checkValue(this.values())) {
|
386
388
|
this.values.set(this.min());
|
387
|
-
this.commitValue(this.values());
|
388
389
|
}
|
389
390
|
else if (typeof this.values() !== 'number' &&
|
390
391
|
!this.checkValues(this.values()[0], 'first', this.values()[1])) {
|
391
392
|
this.values.set([this.min(), this.max()]);
|
392
|
-
this.commitValue(this.values());
|
393
393
|
}
|
394
394
|
}
|
395
395
|
/**
|
@@ -398,17 +398,13 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
398
398
|
fixInitializeStep() {
|
399
399
|
if (this.step() !== 1) {
|
400
400
|
if (this.isDual()) {
|
401
|
-
this.values.update((old) => [this.
|
402
|
-
this.commitValue(this.values());
|
403
|
-
this.commitValue(this.values());
|
401
|
+
this.values.update((old) => [this.roundToStep(old[0]), this.roundToStep(old[1])]);
|
404
402
|
if (this.values()[0] === this.values()[1]) {
|
405
|
-
this.values.update((old) => [this.
|
406
|
-
this.commitValue(this.values());
|
403
|
+
this.values.update((old) => [this.roundToStep(old[0]), this.roundToStep(old[1]) + this.step()]);
|
407
404
|
}
|
408
405
|
}
|
409
406
|
else {
|
410
|
-
this.values.update((old) => this.
|
411
|
-
this.commitValue(this.values());
|
407
|
+
this.values.update((old) => this.roundToStep(old));
|
412
408
|
}
|
413
409
|
}
|
414
410
|
}
|
@@ -418,27 +414,47 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
418
414
|
fixChangingMode() {
|
419
415
|
if (typeof this.values() === 'number' && this.isDual()) {
|
420
416
|
this.values.set([this.min(), this.max()]);
|
421
|
-
this.commitValue(this.values());
|
422
417
|
}
|
423
418
|
else if (typeof this.values() !== 'number' && !this.isDual()) {
|
424
419
|
this.values.set(this.min());
|
425
|
-
this.commitValue(this.values());
|
426
420
|
}
|
427
421
|
}
|
428
422
|
/**
|
429
423
|
* @ignore
|
430
424
|
*/
|
431
|
-
|
432
|
-
const
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
425
|
+
calculatePercentOnMove(event) {
|
426
|
+
const sliderRect = this.sliderElement.getBoundingClientRect();
|
427
|
+
let percent;
|
428
|
+
if (this.isHorizontal()) {
|
429
|
+
const clientX = event instanceof MouseEvent ? event.clientX : event.touches[0].clientX;
|
430
|
+
const x = clientX - sliderRect.left;
|
431
|
+
percent = (x / sliderRect.width) * 100;
|
432
|
+
}
|
433
|
+
else {
|
434
|
+
const clientY = event instanceof MouseEvent ? event.clientY : event.touches[0].clientY;
|
435
|
+
const y = -(clientY - sliderRect.bottom); //reverce slider from bottom to top
|
436
|
+
percent = (y / sliderRect.height) * 100;
|
437
|
+
}
|
438
|
+
if (percent < 0) {
|
439
|
+
percent = 0;
|
440
|
+
}
|
441
|
+
else if (percent > 100) {
|
442
|
+
percent = 100;
|
443
|
+
}
|
444
|
+
return percent;
|
445
|
+
}
|
446
|
+
/**
|
447
|
+
* @ignore
|
448
|
+
*/
|
449
|
+
roundToStep(value) {
|
450
|
+
const lower = Math.max(this.min(), Math.floor((value - this.min()) / this.step()) * this.step() + this.min());
|
451
|
+
const upper = Math.min(this.max(), lower + this.step());
|
452
|
+
if (value - lower < upper - value) {
|
453
|
+
return lower;
|
454
|
+
}
|
455
|
+
else {
|
456
|
+
return upper;
|
457
|
+
}
|
442
458
|
}
|
443
459
|
/**
|
444
460
|
* @ignore
|
@@ -470,11 +486,17 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
470
486
|
else
|
471
487
|
return false;
|
472
488
|
}
|
489
|
+
/**
|
490
|
+
* @ignore
|
491
|
+
*/
|
492
|
+
getValueFromPercent(value) {
|
493
|
+
return this.min() + (value * (this.max() - this.min())) / 100;
|
494
|
+
}
|
473
495
|
/**
|
474
496
|
* @ignore
|
475
497
|
*/
|
476
498
|
getPercantage(value) {
|
477
|
-
return (value / this.range()) * 100;
|
499
|
+
return this.range() !== 0 ? (value / this.range()) * 100 : 0;
|
478
500
|
}
|
479
501
|
/**
|
480
502
|
* Increase a step to value if slider in single mode
|
@@ -483,11 +505,11 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
483
505
|
*/
|
484
506
|
increaseStep() {
|
485
507
|
if (this.isDual()) {
|
486
|
-
const newValue = this.
|
508
|
+
const newValue = this.roundToStep(this.values()[1] + this.step());
|
487
509
|
this.values.set([this.values()[0], newValue]);
|
488
510
|
}
|
489
511
|
else {
|
490
|
-
const newValue = this.
|
512
|
+
const newValue = this.roundToStep(this.values() + this.step());
|
491
513
|
this.values.set(newValue);
|
492
514
|
}
|
493
515
|
}
|
@@ -498,11 +520,11 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
498
520
|
*/
|
499
521
|
decreaseStep() {
|
500
522
|
if (this.isDual()) {
|
501
|
-
const newValue = this.
|
523
|
+
const newValue = this.roundToStep(this.values()[0] - this.step());
|
502
524
|
this.values.set([newValue, this.values()[1]]);
|
503
525
|
}
|
504
526
|
else {
|
505
|
-
const newValue = this.
|
527
|
+
const newValue = this.roundToStep(this.values() - this.step());
|
506
528
|
this.values.set(newValue);
|
507
529
|
}
|
508
530
|
}
|
@@ -512,57 +534,51 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
512
534
|
onWheel(event) {
|
513
535
|
this.zone.runOutsideAngular(() => {
|
514
536
|
event.preventDefault();
|
515
|
-
if (!this.choosenHandler || this.readonly || this.disabled)
|
537
|
+
if (!this.choosenHandler || this.readonly || this.disabled || !this.correctMinMax())
|
516
538
|
return;
|
517
539
|
let newValue;
|
518
540
|
if (this.isDual()) {
|
519
541
|
if (event.deltaY < 0) {
|
520
542
|
if (this.choosenHandler === 'first') {
|
521
|
-
newValue = this.
|
543
|
+
newValue = this.roundToStep(this.values()[0] + this.step());
|
522
544
|
if (this.checkValues(newValue, this.choosenHandler, this.values()[1]) &&
|
523
545
|
this.values()[0] !== newValue) {
|
524
|
-
this.values.update((old) => [this.
|
525
|
-
this.commitValue(this.values());
|
546
|
+
this.values.update((old) => [this.roundToStep(old[0] + this.step()), old[1]]);
|
526
547
|
}
|
527
548
|
}
|
528
549
|
else {
|
529
|
-
newValue = this.
|
550
|
+
newValue = this.roundToStep(this.values()[1] + this.step());
|
530
551
|
if (newValue <= this.max() && this.values()[1] !== newValue) {
|
531
|
-
this.values.update((old) => [old[0], this.
|
532
|
-
this.commitValue(this.values());
|
552
|
+
this.values.update((old) => [old[0], this.roundToStep(old[1] + this.step())]);
|
533
553
|
}
|
534
554
|
}
|
535
555
|
}
|
536
556
|
else {
|
537
557
|
if (this.choosenHandler === 'first') {
|
538
|
-
newValue = this.
|
558
|
+
newValue = this.roundToStep(this.values()[0] - this.step());
|
539
559
|
if (this.checkValues(newValue, this.choosenHandler, this.values()[1]) &&
|
540
560
|
this.values() !== newValue) {
|
541
|
-
this.values.update((old) => [this.
|
542
|
-
this.commitValue(this.values());
|
561
|
+
this.values.update((old) => [this.roundToStep(old[0] - this.step()), old[1]]);
|
543
562
|
}
|
544
563
|
}
|
545
564
|
else {
|
546
|
-
newValue = this.
|
565
|
+
newValue = this.roundToStep(this.values()[1] - this.step());
|
547
566
|
if (this.checkValues(newValue, this.choosenHandler, this.values()[0]) &&
|
548
567
|
this.values()[1] !== newValue) {
|
549
|
-
this.values.update((old) => [old[0], this.
|
550
|
-
this.commitValue(this.values());
|
568
|
+
this.values.update((old) => [old[0], this.roundToStep(old[1] - this.step())]);
|
551
569
|
}
|
552
570
|
}
|
553
571
|
}
|
554
572
|
}
|
555
573
|
else {
|
556
574
|
if (event.deltaY < 0) {
|
557
|
-
if (this.checkValue(this.
|
558
|
-
this.values.update((old) => this.
|
559
|
-
this.commitValue(this.values());
|
575
|
+
if (this.checkValue(this.roundToStep(this.values() + this.step()))) {
|
576
|
+
this.values.update((old) => this.roundToStep(old + this.step()));
|
560
577
|
}
|
561
578
|
}
|
562
579
|
else {
|
563
|
-
if (this.checkValue(this.
|
564
|
-
this.values.update((old) => this.
|
565
|
-
this.commitValue(this.values());
|
580
|
+
if (this.checkValue(this.roundToStep(this.values() - this.step()))) {
|
581
|
+
this.values.update((old) => this.roundToStep(old - this.step()));
|
566
582
|
}
|
567
583
|
}
|
568
584
|
}
|
@@ -578,15 +594,18 @@ export class AXRangeSliderComponent extends classes((MXValueComponent)) {
|
|
578
594
|
`${this.readonly ? 'ax-state-readonly' : ''}`,
|
579
595
|
];
|
580
596
|
}
|
597
|
+
onNgModelChange(event) {
|
598
|
+
this.values.set(event.value);
|
599
|
+
}
|
581
600
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRangeSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
582
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXRangeSliderComponent, selector: "ax-range-slider", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, snap: { classPropertyName: "snap", publicName: "snap", isSignal: true, isRequired: false, transformFunction: null }, tooltipMode: { classPropertyName: "tooltipMode", publicName: "tooltipMode", isSignal: true, isRequired: false, transformFunction: null }, snapMode: { classPropertyName: "snapMode", publicName: "snapMode", isSignal: true, isRequired: false, transformFunction: null }, hasSnap: { classPropertyName: "hasSnap", publicName: "hasSnap", isSignal: true, isRequired: false, transformFunction: null }, hasLable: { classPropertyName: "hasLable", publicName: "hasLable", isSignal: true, isRequired: false, transformFunction: null }, hasTooltip: { classPropertyName: "hasTooltip", publicName: "hasTooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onStart: "onStart", values: "valuesChange" }, host: { listeners: { "wheel": "onWheel($event)" }, properties: { "class": "this.__hostClass" } }, providers: [
|
601
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXRangeSliderComponent, selector: "ax-range-slider", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, snap: { classPropertyName: "snap", publicName: "snap", isSignal: true, isRequired: false, transformFunction: null }, tooltipMode: { classPropertyName: "tooltipMode", publicName: "tooltipMode", isSignal: true, isRequired: false, transformFunction: null }, snapMode: { classPropertyName: "snapMode", publicName: "snapMode", isSignal: true, isRequired: false, transformFunction: null }, hasStep: { classPropertyName: "hasStep", publicName: "hasStep", isSignal: true, isRequired: false, transformFunction: null }, hasSnap: { classPropertyName: "hasSnap", publicName: "hasSnap", isSignal: true, isRequired: false, transformFunction: null }, hasLable: { classPropertyName: "hasLable", publicName: "hasLable", isSignal: true, isRequired: false, transformFunction: null }, hasTooltip: { classPropertyName: "hasTooltip", publicName: "hasTooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onStart: "onStart", values: "valuesChange" }, host: { listeners: { "wheel": "onWheel($event)", "onValueChanged": "onNgModelChange($event)" }, properties: { "class": "this.__hostClass" } }, providers: [
|
583
602
|
{ provide: AXValuableComponent, useExisting: AXRangeSliderComponent },
|
584
603
|
{
|
585
604
|
provide: NG_VALUE_ACCESSOR,
|
586
605
|
useExisting: forwardRef(() => AXRangeSliderComponent),
|
587
606
|
multi: true,
|
588
607
|
},
|
589
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-range-slider\" [class]=\"'ax-orientation-' + orientation()\">\n <div class=\"ax-range-slider-bar\" (mousedown)=\"onclickBar($event)\" (touchstart)=\"onclickBar($event)\"></div>\n <div class=\"ax-range-slider-highlight\" [ngStyle]=\"AXRangeSliderHighlight()\"></div>\n\n <div\n class=\"ax-range-slider-handler\"\n [ngStyle]=\"AXRangeSliderHandler1()\"\n (mousedown)=\"handleOnStart($event, 'first')\"\n (touchstart)=\"handleOnStart($event, 'first')\"\n >\n @if (hasTooltip()) {\n <div class=\"ax-range-slider-tooltip\">{{ isDual() ? values()[0] : values() }}</div>\n }\n </div>\n\n @if (isDual()) {\n <div\n class=\"ax-range-slider-handler\"\n [ngStyle]=\"AXRangeSliderHandler2()\"\n (mousedown)=\"handleOnStart($event, 'second')\"\n (touchstart)=\"handleOnStart($event, 'second')\"\n >\n @if (hasTooltip()) {\n <div class=\"ax-range-slider-tooltip\">{{ values()[1] }}</div>\n }\n </div>\n }\n @if (hasSnap()) {\n <div class=\"ax-range-slider-step\" [ngStyle]=\"AXRangeSliderStep()\">\n @for (item of calculateSnapBar(); track $index) {\n <div\n class=\"ax-range-slider-steps\"\n [ngStyle]=\"\n isHorizontal() ? { left: getPercantage(item) + '%' } : { top: getPercantage(item) + '%' }\n \"\n >\n @if (hasLable()) {\n <div class=\"ax-range-slider-label\" [ngStyle]=\"AXRangeLabel()\">\n {{ item + min() }}\n </div>\n }\n </div>\n }\n </div>\n }\n</div>\n", styles: [":root{--ax-range-slider-base-thickness: .25rem}ax-range-slider{display:flex;align-items:center;justify-content:center;padding:1rem;font-size:small}ax-range-slider .ax-range-slider.ax-orientation-horizontal{position:relative;width:100%;height:calc(var(--ax-range-slider-base-thickness) * 4)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-bar{position:absolute;top:50%;left:0;width:100.1%;height:var(--ax-range-slider-base-thickness);transform:translateY(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-bg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-highlight{position:absolute;top:50%;height:calc(var(--ax-range-slider-base-thickness) * 3 / 2);transform:translateY(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-fg))}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler{position:absolute;top:50%;width:calc(var(--ax-range-slider-base-thickness) * 6);height:calc(var(--ax-range-slider-base-thickness) * 6);z-index:20;background-color:rgb(var(--ax-range-slider-fg));border-radius:50%;cursor:pointer;transform:translate(-50%,-50%);transition:box-shadow .1s linear}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler:hover{box-shadow:var(--tw-ring-inset) 0 0 0 calc(.6rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler:active{box-shadow:var(--tw-ring-inset) 0 0 0 calc(.6rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-tooltip{position:absolute;left:calc(var(--ax-range-slider-base-thickness) * 2.8);top:calc(var(--ax-range-slider-base-thickness) * -2);background-color:rgb(var(--ax-range-slider-fg));color:rgb(var(--ax-range-tooltip-text));padding:5px 10px;border-radius:3px;white-space:nowrap;font-weight:600;transform:translate(-50%,-125%)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-tooltip:after{content:\"\";position:absolute;top:calc(var(--ax-range-slider-base-thickness) * 7);left:50%;transform:translate(-50%);border-width:.5rem;border-style:solid;border-color:rgb(var(--ax-range-slider-fg)) transparent transparent transparent}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step{position:absolute;display:flex;flex-direction:row;width:100%;z-index:10}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step .ax-range-slider-steps{position:absolute;border-left:calc(var(--ax-range-slider-base-thickness) / 2) solid rgb(var(--ax-color-border-default));height:50%}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step .ax-range-slider-steps .ax-range-slider-label{position:relative;text-align:center;top:calc(var(--ax-range-slider-base-thickness) * 2);left:-50%}ax-range-slider .ax-range-slider.ax-orientation-vertical{position:relative;width:calc(var(--ax-range-slider-base-thickness) * 4);height:100%}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-bar{position:absolute;top:0;left:50%;width:var(--ax-range-slider-base-thickness);height:100.1%;transform:translate(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-bg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-highlight{position:absolute;left:50%;width:calc(var(--ax-range-slider-base-thickness) * 3 / 2);transform:translate(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-fg))}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-handler{position:absolute;left:50%;width:calc(var(--ax-range-slider-base-thickness) * 6);height:calc(var(--ax-range-slider-base-thickness) * 6);z-index:20;background-color:rgb(var(--ax-range-slider-fg));border-radius:50%;cursor:pointer;transform:translate(-50%,-50%);transition:background-color .2s ease}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-handler:active{border:1px solid transparent;box-shadow:var(--tw-ring-inset) 0 0 0 calc(.5rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-tooltip{position:absolute;top:calc(var(--ax-range-slider-base-thickness) * 8.5);left:calc(var(--ax-range-slider-base-thickness) * -8);background-color:rgb(var(--ax-range-slider-fg));color:rgb(var(--ax-range-tooltip-text));padding:5px 10px;border-radius:3px;font-weight:600;white-space:nowrap;transform:translate(-50%,-125%)}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-tooltip:after{content:\"\";position:absolute;top:50%;left:97%;transform:translateY(-50%);border-width:.5rem;border-style:solid;border-color:transparent transparent transparent rgb(var(--ax-range-slider-fg))}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step{position:absolute;display:flex;flex-direction:column;height:100%;z-index:10}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step .ax-range-slider-steps{position:absolute;width:50%;border-top:calc(var(--ax-range-slider-base-thickness) / 2) solid rgb(var(--ax-color-border-default))}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step .ax-range-slider-steps .ax-range-slider-label{position:absolute;left:150%;top:calc(var(--ax-range-slider-base-thickness) * -3)}ax-range-slider.ax-primary-solid{--ax-range-slider-bg: var(--ax-color-primary-200);--ax-range-slider-fg: var(--ax-color-primary-500);--ax-range-tooltip-text: var(--ax-color-primary-fore)}ax-range-slider.ax-secondary-solid{--ax-range-slider-bg: var(--ax-color-secondary-200);--ax-range-slider-fg: var(--ax-color-secondary-500);--ax-range-tooltip-text: var(--ax-color-secondary-fore)}ax-range-slider.ax-success-solid{--ax-range-slider-bg: var(--ax-color-success-200);--ax-range-slider-fg: var(--ax-color-success-500);--ax-range-tooltip-text: var(--ax-color-success-fore)}ax-range-slider.ax-warning-solid{--ax-range-slider-bg: var(--ax-color-warning-200);--ax-range-slider-fg: var(--ax-color-warning-500);--ax-range-tooltip-text: var(--ax-color-warning-fore)}ax-range-slider.ax-danger-solid{--ax-range-slider-bg: var(--ax-color-danger-200);--ax-range-slider-fg: var(--ax-color-danger-500);--ax-range-tooltip-text: var(--ax-color-danger-fore)}ax-range-slider.ax-info-solid{--ax-range-slider-bg: var(--ax-color-info-200);--ax-range-slider-fg: var(--ax-color-info-500);--ax-range-tooltip-text: var(--ax-color-info-fore)}ax-range-slider.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-range-slider.ax-state-readonly{opacity:.75}.ax-dark ax-range-slider.ax-primary-solid{--ax-range-slider-bg: var(--ax-color-primary-700);--ax-range-slider-fg: var(--ax-color-primary-200);--ax-range-tooltip-text: var(--ax-color-primary-fore-tint)}.ax-dark ax-range-slider.ax-secondary-solid{--ax-range-slider-bg: var(--ax-color-secondary-700);--ax-range-slider-fg: var(--ax-color-secondary-200);--ax-range-tooltip-text: var(--ax-color-secondary-fore-tint)}.ax-dark ax-range-slider.ax-success-solid{--ax-range-slider-bg: var(--ax-color-success-700);--ax-range-slider-fg: var(--ax-color-success-200);--ax-range-tooltip-text: var(--ax-color-success-fore-tint)}.ax-dark ax-range-slider.ax-warning-solid{--ax-range-slider-bg: var(--ax-color-warning-700);--ax-range-slider-fg: var(--ax-color-warning-200);--ax-range-tooltip-text: var(--ax-color-warning-fore-tint)}.ax-dark ax-range-slider.ax-danger-solid{--ax-range-slider-bg: var(--ax-color-danger-700);--ax-range-slider-fg: var(--ax-color-danger-200);--ax-range-tooltip-text: var(--ax-color-danger-fore-tint)}.ax-dark ax-range-slider.ax-info-solid{--ax-range-slider-bg: var(--ax-color-info-700);--ax-range-slider-fg: var(--ax-color-info-200);--ax-range-tooltip-text: var(--ax-color-info-fore-tint)}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
608
|
+
], usesInheritance: true, ngImport: i0, template: "@if (correctMinMax()) {\n <div class=\"ax-range-slider\" [class]=\"'ax-orientation-' + orientation()\">\n <div class=\"ax-range-slider-bar\" (mousedown)=\"onStartBar($event)\" (touchstart)=\"onStartBar($event)\"></div>\n <div\n class=\"ax-range-slider-highlight\"\n [ngStyle]=\"AXRangeSliderHighlight()\"\n (mousedown)=\"onStartBar($event)\"\n (touchstart)=\"onStartBar($event)\"\n ></div>\n\n <div\n class=\"ax-range-slider-handler\"\n [ngStyle]=\"AXRangeSliderHandler1()\"\n name=\"first\"\n (mousedown)=\"onStartHandler($event, 'first')\"\n (touchstart)=\"onStartHandler($event, 'first')\"\n >\n @if (hasTooltip()) {\n <div class=\"ax-range-slider-tooltip\">{{ isDual() ? values()[0] : values() }}</div>\n }\n </div>\n\n @if (isDual()) {\n <div\n class=\"ax-range-slider-handler\"\n [ngStyle]=\"AXRangeSliderHandler2()\"\n name=\"second\"\n (mousedown)=\"onStartHandler($event, 'second')\"\n (touchstart)=\"onStartHandler($event, 'second')\"\n >\n @if (hasTooltip()) {\n <div class=\"ax-range-slider-tooltip\">{{ values()[1] }}</div>\n }\n </div>\n }\n @if (hasSnap()) {\n <div class=\"ax-range-slider-step\" [ngStyle]=\"AXRangeSliderStep()\">\n @for (item of calculateSnapBar(); track $index) {\n <div\n class=\"ax-range-slider-steps\"\n [ngStyle]=\"\n isHorizontal() ? { left: getPercantage(item) + '%' } : { bottom: getPercantage(item) + '%' }\n \"\n >\n @if (hasLable()) {\n <div class=\"ax-range-slider-label\" [ngStyle]=\"AXRangeLabel()\">\n {{ item + min() }}\n </div>\n }\n </div>\n }\n </div>\n }\n </div>\n}\n", styles: [":root{--ax-range-slider-base-thickness: .25rem}ax-range-slider{display:flex;align-items:center;justify-content:center;padding:1rem;font-size:small}ax-range-slider .ax-range-slider.ax-orientation-horizontal{position:relative;width:100%;height:calc(var(--ax-range-slider-base-thickness) * 4)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-bar{position:absolute;top:50%;left:0;width:100.1%;height:var(--ax-range-slider-base-thickness);transform:translateY(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-bg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-highlight{position:absolute;top:50%;height:calc(var(--ax-range-slider-base-thickness) * 3 / 2);transform:translateY(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-fg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler{position:absolute;top:50%;width:calc(var(--ax-range-slider-base-thickness) * 6);height:calc(var(--ax-range-slider-base-thickness) * 6);z-index:20;background:#fff;border:1px solid gray;border-radius:50%;cursor:pointer;transform:translate(-50%,-50%);transition:box-shadow .1s linear}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler:hover{box-shadow:var(--tw-ring-inset) 0 0 0 calc(.6rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler:active{box-shadow:var(--tw-ring-inset) 0 0 0 calc(.6rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-tooltip{position:absolute;left:calc(var(--ax-range-slider-base-thickness) * 2.8);top:calc(var(--ax-range-slider-base-thickness) * -2);background-color:rgb(var(--ax-range-slider-fg));color:rgb(var(--ax-range-tooltip-text));padding:5px 10px;border-radius:3px;white-space:nowrap;font-weight:600;transform:translate(-50%,-125%)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-tooltip:after{content:\"\";position:absolute;top:calc(var(--ax-range-slider-base-thickness) * 7);left:50%;transform:translate(-50%);border-width:.5rem;border-style:solid;border-color:rgb(var(--ax-range-slider-fg)) transparent transparent transparent}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step{position:absolute;display:flex;flex-direction:row;width:100%;z-index:10}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step .ax-range-slider-steps{position:absolute;border-left:calc(var(--ax-range-slider-base-thickness) / 2) solid rgb(var(--ax-color-border-default));height:50%}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step .ax-range-slider-steps .ax-range-slider-label{position:relative;text-align:center;top:calc(var(--ax-range-slider-base-thickness) * 2);left:-50%}ax-range-slider .ax-range-slider.ax-orientation-vertical{position:relative;width:calc(var(--ax-range-slider-base-thickness) * 4);height:100%}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-bar{position:absolute;top:0;left:50%;width:var(--ax-range-slider-base-thickness);height:100.1%;transform:translate(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-bg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-highlight{position:absolute;left:50%;width:calc(var(--ax-range-slider-base-thickness) * 3 / 2);transform:translate(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-fg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-handler{position:absolute;left:50%;width:calc(var(--ax-range-slider-base-thickness) * 6);height:calc(var(--ax-range-slider-base-thickness) * 6);z-index:20;background:#fff;border:1px solid gray;border-radius:50%;cursor:pointer;transform:translate(-50%,-50%);transition:background-color .2s ease}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-handler:active{border:1px solid transparent;box-shadow:var(--tw-ring-inset) 0 0 0 calc(.5rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-tooltip{position:absolute;top:calc(var(--ax-range-slider-base-thickness) * 8.5);left:calc(var(--ax-range-slider-base-thickness) * -8);background-color:rgb(var(--ax-range-slider-fg));color:rgb(var(--ax-range-tooltip-text));padding:5px 10px;border-radius:3px;font-weight:600;white-space:nowrap;transform:translate(-50%,-125%)}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-tooltip:after{content:\"\";position:absolute;top:50%;left:97%;transform:translateY(-50%);border-width:.5rem;border-style:solid;border-color:transparent transparent transparent rgb(var(--ax-range-slider-fg))}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step{position:absolute;display:flex;flex-direction:column;height:100%;z-index:10}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step .ax-range-slider-steps{position:absolute;width:50%;border-top:calc(var(--ax-range-slider-base-thickness) / 2) solid rgb(var(--ax-color-border-default))}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step .ax-range-slider-steps .ax-range-slider-label{position:absolute;left:150%;top:calc(var(--ax-range-slider-base-thickness) * -3)}ax-range-slider.ax-primary-solid{--ax-range-slider-bg: var(--ax-color-primary-200);--ax-range-slider-fg: var(--ax-color-primary-500);--ax-range-tooltip-text: var(--ax-color-primary-fore)}ax-range-slider.ax-secondary-solid{--ax-range-slider-bg: var(--ax-color-secondary-200);--ax-range-slider-fg: var(--ax-color-secondary-500);--ax-range-tooltip-text: var(--ax-color-secondary-fore)}ax-range-slider.ax-success-solid{--ax-range-slider-bg: var(--ax-color-success-200);--ax-range-slider-fg: var(--ax-color-success-500);--ax-range-tooltip-text: var(--ax-color-success-fore)}ax-range-slider.ax-warning-solid{--ax-range-slider-bg: var(--ax-color-warning-200);--ax-range-slider-fg: var(--ax-color-warning-500);--ax-range-tooltip-text: var(--ax-color-warning-fore)}ax-range-slider.ax-danger-solid{--ax-range-slider-bg: var(--ax-color-danger-200);--ax-range-slider-fg: var(--ax-color-danger-500);--ax-range-tooltip-text: var(--ax-color-danger-fore)}ax-range-slider.ax-info-solid{--ax-range-slider-bg: var(--ax-color-info-200);--ax-range-slider-fg: var(--ax-color-info-500);--ax-range-tooltip-text: var(--ax-color-info-fore)}ax-range-slider.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-range-slider.ax-state-readonly{opacity:.75}.ax-dark ax-range-slider.ax-primary-solid{--ax-range-slider-bg: var(--ax-color-primary-700);--ax-range-slider-fg: var(--ax-color-primary-200);--ax-range-tooltip-text: var(--ax-color-primary-fore-tint)}.ax-dark ax-range-slider.ax-secondary-solid{--ax-range-slider-bg: var(--ax-color-secondary-700);--ax-range-slider-fg: var(--ax-color-secondary-200);--ax-range-tooltip-text: var(--ax-color-secondary-fore-tint)}.ax-dark ax-range-slider.ax-success-solid{--ax-range-slider-bg: var(--ax-color-success-700);--ax-range-slider-fg: var(--ax-color-success-200);--ax-range-tooltip-text: var(--ax-color-success-fore-tint)}.ax-dark ax-range-slider.ax-warning-solid{--ax-range-slider-bg: var(--ax-color-warning-700);--ax-range-slider-fg: var(--ax-color-warning-200);--ax-range-tooltip-text: var(--ax-color-warning-fore-tint)}.ax-dark ax-range-slider.ax-danger-solid{--ax-range-slider-bg: var(--ax-color-danger-700);--ax-range-slider-fg: var(--ax-color-danger-200);--ax-range-tooltip-text: var(--ax-color-danger-fore-tint)}.ax-dark ax-range-slider.ax-info-solid{--ax-range-slider-bg: var(--ax-color-info-700);--ax-range-slider-fg: var(--ax-color-info-200);--ax-range-tooltip-text: var(--ax-color-info-fore-tint)}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
590
609
|
}
|
591
610
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXRangeSliderComponent, decorators: [{
|
592
611
|
type: Component,
|
@@ -597,12 +616,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
597
616
|
useExisting: forwardRef(() => AXRangeSliderComponent),
|
598
617
|
multi: true,
|
599
618
|
},
|
600
|
-
], template: "<div class=\"ax-range-slider\" [class]=\"'ax-orientation-' + orientation()\">\n
|
619
|
+
], template: "@if (correctMinMax()) {\n <div class=\"ax-range-slider\" [class]=\"'ax-orientation-' + orientation()\">\n <div class=\"ax-range-slider-bar\" (mousedown)=\"onStartBar($event)\" (touchstart)=\"onStartBar($event)\"></div>\n <div\n class=\"ax-range-slider-highlight\"\n [ngStyle]=\"AXRangeSliderHighlight()\"\n (mousedown)=\"onStartBar($event)\"\n (touchstart)=\"onStartBar($event)\"\n ></div>\n\n <div\n class=\"ax-range-slider-handler\"\n [ngStyle]=\"AXRangeSliderHandler1()\"\n name=\"first\"\n (mousedown)=\"onStartHandler($event, 'first')\"\n (touchstart)=\"onStartHandler($event, 'first')\"\n >\n @if (hasTooltip()) {\n <div class=\"ax-range-slider-tooltip\">{{ isDual() ? values()[0] : values() }}</div>\n }\n </div>\n\n @if (isDual()) {\n <div\n class=\"ax-range-slider-handler\"\n [ngStyle]=\"AXRangeSliderHandler2()\"\n name=\"second\"\n (mousedown)=\"onStartHandler($event, 'second')\"\n (touchstart)=\"onStartHandler($event, 'second')\"\n >\n @if (hasTooltip()) {\n <div class=\"ax-range-slider-tooltip\">{{ values()[1] }}</div>\n }\n </div>\n }\n @if (hasSnap()) {\n <div class=\"ax-range-slider-step\" [ngStyle]=\"AXRangeSliderStep()\">\n @for (item of calculateSnapBar(); track $index) {\n <div\n class=\"ax-range-slider-steps\"\n [ngStyle]=\"\n isHorizontal() ? { left: getPercantage(item) + '%' } : { bottom: getPercantage(item) + '%' }\n \"\n >\n @if (hasLable()) {\n <div class=\"ax-range-slider-label\" [ngStyle]=\"AXRangeLabel()\">\n {{ item + min() }}\n </div>\n }\n </div>\n }\n </div>\n }\n </div>\n}\n", styles: [":root{--ax-range-slider-base-thickness: .25rem}ax-range-slider{display:flex;align-items:center;justify-content:center;padding:1rem;font-size:small}ax-range-slider .ax-range-slider.ax-orientation-horizontal{position:relative;width:100%;height:calc(var(--ax-range-slider-base-thickness) * 4)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-bar{position:absolute;top:50%;left:0;width:100.1%;height:var(--ax-range-slider-base-thickness);transform:translateY(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-bg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-highlight{position:absolute;top:50%;height:calc(var(--ax-range-slider-base-thickness) * 3 / 2);transform:translateY(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-fg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler{position:absolute;top:50%;width:calc(var(--ax-range-slider-base-thickness) * 6);height:calc(var(--ax-range-slider-base-thickness) * 6);z-index:20;background:#fff;border:1px solid gray;border-radius:50%;cursor:pointer;transform:translate(-50%,-50%);transition:box-shadow .1s linear}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler:hover{box-shadow:var(--tw-ring-inset) 0 0 0 calc(.6rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-handler:active{box-shadow:var(--tw-ring-inset) 0 0 0 calc(.6rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-tooltip{position:absolute;left:calc(var(--ax-range-slider-base-thickness) * 2.8);top:calc(var(--ax-range-slider-base-thickness) * -2);background-color:rgb(var(--ax-range-slider-fg));color:rgb(var(--ax-range-tooltip-text));padding:5px 10px;border-radius:3px;white-space:nowrap;font-weight:600;transform:translate(-50%,-125%)}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-tooltip:after{content:\"\";position:absolute;top:calc(var(--ax-range-slider-base-thickness) * 7);left:50%;transform:translate(-50%);border-width:.5rem;border-style:solid;border-color:rgb(var(--ax-range-slider-fg)) transparent transparent transparent}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step{position:absolute;display:flex;flex-direction:row;width:100%;z-index:10}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step .ax-range-slider-steps{position:absolute;border-left:calc(var(--ax-range-slider-base-thickness) / 2) solid rgb(var(--ax-color-border-default));height:50%}ax-range-slider .ax-range-slider.ax-orientation-horizontal .ax-range-slider-step .ax-range-slider-steps .ax-range-slider-label{position:relative;text-align:center;top:calc(var(--ax-range-slider-base-thickness) * 2);left:-50%}ax-range-slider .ax-range-slider.ax-orientation-vertical{position:relative;width:calc(var(--ax-range-slider-base-thickness) * 4);height:100%}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-bar{position:absolute;top:0;left:50%;width:var(--ax-range-slider-base-thickness);height:100.1%;transform:translate(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-bg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-highlight{position:absolute;left:50%;width:calc(var(--ax-range-slider-base-thickness) * 3 / 2);transform:translate(-50%);z-index:20;border-radius:9999rem;background-color:rgb(var(--ax-range-slider-fg));cursor:pointer}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-handler{position:absolute;left:50%;width:calc(var(--ax-range-slider-base-thickness) * 6);height:calc(var(--ax-range-slider-base-thickness) * 6);z-index:20;background:#fff;border:1px solid gray;border-radius:50%;cursor:pointer;transform:translate(-50%,-50%);transition:background-color .2s ease}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-handler:active{border:1px solid transparent;box-shadow:var(--tw-ring-inset) 0 0 0 calc(.5rem + var(--tw-ring-offset-width)) rgba(var(--ax-range-slider-fg),.25)}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-tooltip{position:absolute;top:calc(var(--ax-range-slider-base-thickness) * 8.5);left:calc(var(--ax-range-slider-base-thickness) * -8);background-color:rgb(var(--ax-range-slider-fg));color:rgb(var(--ax-range-tooltip-text));padding:5px 10px;border-radius:3px;font-weight:600;white-space:nowrap;transform:translate(-50%,-125%)}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-tooltip:after{content:\"\";position:absolute;top:50%;left:97%;transform:translateY(-50%);border-width:.5rem;border-style:solid;border-color:transparent transparent transparent rgb(var(--ax-range-slider-fg))}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step{position:absolute;display:flex;flex-direction:column;height:100%;z-index:10}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step .ax-range-slider-steps{position:absolute;width:50%;border-top:calc(var(--ax-range-slider-base-thickness) / 2) solid rgb(var(--ax-color-border-default))}ax-range-slider .ax-range-slider.ax-orientation-vertical .ax-range-slider-step .ax-range-slider-steps .ax-range-slider-label{position:absolute;left:150%;top:calc(var(--ax-range-slider-base-thickness) * -3)}ax-range-slider.ax-primary-solid{--ax-range-slider-bg: var(--ax-color-primary-200);--ax-range-slider-fg: var(--ax-color-primary-500);--ax-range-tooltip-text: var(--ax-color-primary-fore)}ax-range-slider.ax-secondary-solid{--ax-range-slider-bg: var(--ax-color-secondary-200);--ax-range-slider-fg: var(--ax-color-secondary-500);--ax-range-tooltip-text: var(--ax-color-secondary-fore)}ax-range-slider.ax-success-solid{--ax-range-slider-bg: var(--ax-color-success-200);--ax-range-slider-fg: var(--ax-color-success-500);--ax-range-tooltip-text: var(--ax-color-success-fore)}ax-range-slider.ax-warning-solid{--ax-range-slider-bg: var(--ax-color-warning-200);--ax-range-slider-fg: var(--ax-color-warning-500);--ax-range-tooltip-text: var(--ax-color-warning-fore)}ax-range-slider.ax-danger-solid{--ax-range-slider-bg: var(--ax-color-danger-200);--ax-range-slider-fg: var(--ax-color-danger-500);--ax-range-tooltip-text: var(--ax-color-danger-fore)}ax-range-slider.ax-info-solid{--ax-range-slider-bg: var(--ax-color-info-200);--ax-range-slider-fg: var(--ax-color-info-500);--ax-range-tooltip-text: var(--ax-color-info-fore)}ax-range-slider.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-range-slider.ax-state-readonly{opacity:.75}.ax-dark ax-range-slider.ax-primary-solid{--ax-range-slider-bg: var(--ax-color-primary-700);--ax-range-slider-fg: var(--ax-color-primary-200);--ax-range-tooltip-text: var(--ax-color-primary-fore-tint)}.ax-dark ax-range-slider.ax-secondary-solid{--ax-range-slider-bg: var(--ax-color-secondary-700);--ax-range-slider-fg: var(--ax-color-secondary-200);--ax-range-tooltip-text: var(--ax-color-secondary-fore-tint)}.ax-dark ax-range-slider.ax-success-solid{--ax-range-slider-bg: var(--ax-color-success-700);--ax-range-slider-fg: var(--ax-color-success-200);--ax-range-tooltip-text: var(--ax-color-success-fore-tint)}.ax-dark ax-range-slider.ax-warning-solid{--ax-range-slider-bg: var(--ax-color-warning-700);--ax-range-slider-fg: var(--ax-color-warning-200);--ax-range-tooltip-text: var(--ax-color-warning-fore-tint)}.ax-dark ax-range-slider.ax-danger-solid{--ax-range-slider-bg: var(--ax-color-danger-700);--ax-range-slider-fg: var(--ax-color-danger-200);--ax-range-tooltip-text: var(--ax-color-danger-fore-tint)}.ax-dark ax-range-slider.ax-info-solid{--ax-range-slider-bg: var(--ax-color-info-700);--ax-range-slider-fg: var(--ax-color-info-200);--ax-range-tooltip-text: var(--ax-color-info-fore-tint)}\n"] }]
|
601
620
|
}], ctorParameters: () => [], propDecorators: { onWheel: [{
|
602
621
|
type: HostListener,
|
603
622
|
args: ['wheel', ['$event']]
|
604
623
|
}], __hostClass: [{
|
605
624
|
type: HostBinding,
|
606
625
|
args: ['class']
|
626
|
+
}], onNgModelChange: [{
|
627
|
+
type: HostListener,
|
628
|
+
args: ['onValueChanged', ['$event']]
|
607
629
|
}] } });
|
608
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFuZ2Utc2xpZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9yYW5nZS1zbGlkZXIvc3JjL2xpYi9yYW5nZS1zbGlkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3JhbmdlLXNsaWRlci9zcmMvbGliL3JhbmdlLXNsaWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBR0wsbUJBQW1CLEVBQ25CLGd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