@ardium-ui/ui 5.0.0-alpha.80 → 5.0.0-alpha.81

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.
@@ -11351,7 +11351,6 @@ class _SelectableListComponentBase extends _FormFieldComponentBase {
11351
11351
  if (selected.length > 0) {
11352
11352
  this.addEvent.emit(selected);
11353
11353
  this._emitChange();
11354
- this._emitTouched();
11355
11354
  }
11356
11355
  }
11357
11356
  unselectItem(...items) {
@@ -11359,7 +11358,6 @@ class _SelectableListComponentBase extends _FormFieldComponentBase {
11359
11358
  if (unselected.length > 0)
11360
11359
  this.removeEvent.emit(unselected);
11361
11360
  this._emitChange();
11362
- this._emitTouched();
11363
11361
  }
11364
11362
  onMouseMove() {
11365
11363
  this.isMouseBeingUsed.set(true);
@@ -11783,6 +11781,7 @@ const _asbtractSliderDefaults = {
11783
11781
  tooltipBehavior: SliderTooltipBehavior.Auto,
11784
11782
  selectionBehavior: ArdRangeSelectionBehavior.Allow,
11785
11783
  minimumDistance: 0,
11784
+ emitTouchedOnEveryChange: false,
11786
11785
  };
11787
11786
  class _AbstractSlider extends _NgModelComponentBase {
11788
11787
  constructor() {
@@ -11906,6 +11905,9 @@ class _AbstractSlider extends _NgModelComponentBase {
11906
11905
  this._grabbedHandleId = signal(null);
11907
11906
  this._shouldCheckForMovement = false;
11908
11907
  this._bodyHasClass = false;
11908
+ this.emitTouchedOnEveryChange = input(this._DEFAULTS.emitTouchedOnEveryChange, {
11909
+ transform: v => coerceBooleanProperty(v),
11910
+ });
11909
11911
  this.isSliderHandleGrabbed = computed(() => !!this._grabbedHandleId());
11910
11912
  this.grabbedHandleEffect = effect(() => {
11911
11913
  if (this.isSliderHandleGrabbed()) {
@@ -11932,6 +11934,12 @@ class _AbstractSlider extends _NgModelComponentBase {
11932
11934
  newPercent = this._clampPercentValue(newPercent);
11933
11935
  this._setValueFromPercent(newPercent);
11934
11936
  }
11937
+ _decrement(event, forceShift = false) {
11938
+ this._offset(-1, forceShift || event.shiftKey);
11939
+ }
11940
+ _increment(event, forceShift = false) {
11941
+ this._offset(+1, forceShift || event.shiftKey);
11942
+ }
11935
11943
  //! helper methods
11936
11944
  _clampValue(v) {
11937
11945
  //clamp between min and max
@@ -11977,6 +11985,9 @@ class _AbstractSlider extends _NgModelComponentBase {
11977
11985
  return;
11978
11986
  this._value.set(this._percentValueToValue(percent, handleId));
11979
11987
  this._emitChange();
11988
+ if (this.emitTouchedOnEveryChange()) {
11989
+ this._emitTouched();
11990
+ }
11980
11991
  }
11981
11992
  _writeValueFromEvent(event, handleId) {
11982
11993
  const percent = this._getPercentValueFromEvent(event);
@@ -12038,14 +12049,8 @@ class _AbstractSlider extends _NgModelComponentBase {
12038
12049
  }
12039
12050
  }
12040
12051
  }
12041
- _decrement(event, forceShift = false) {
12042
- this._offset(-1, forceShift || event.shiftKey);
12043
- }
12044
- _increment(event, forceShift = false) {
12045
- this._offset(+1, forceShift || event.shiftKey);
12046
- }
12047
12052
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: _AbstractSlider, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
12048
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.15", type: _AbstractSlider, isStandalone: true, inputs: { 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 }, shiftMultiplier: { classPropertyName: "shiftMultiplier", publicName: "shiftMultiplier", isSignal: true, isRequired: false, transformFunction: null }, showValueTicks: { classPropertyName: "showValueTicks", publicName: "showValueTicks", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, noTooltip: { classPropertyName: "noTooltip", publicName: "noTooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipFormatFn: { classPropertyName: "tooltipFormatFn", publicName: "tooltipFormatFn", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipBehavior: { classPropertyName: "tooltipBehavior", publicName: "tooltipBehavior", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "document:pointerup": "onPointerUp()", "document:touchend": "onPointerUp()", "keydown": "onKeyPress($event)" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ArdSliderTooltipDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 }); }
12053
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.15", type: _AbstractSlider, isStandalone: true, inputs: { 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 }, shiftMultiplier: { classPropertyName: "shiftMultiplier", publicName: "shiftMultiplier", isSignal: true, isRequired: false, transformFunction: null }, showValueTicks: { classPropertyName: "showValueTicks", publicName: "showValueTicks", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, noTooltip: { classPropertyName: "noTooltip", publicName: "noTooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipFormatFn: { classPropertyName: "tooltipFormatFn", publicName: "tooltipFormatFn", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipBehavior: { classPropertyName: "tooltipBehavior", publicName: "tooltipBehavior", isSignal: true, isRequired: false, transformFunction: null }, emitTouchedOnEveryChange: { classPropertyName: "emitTouchedOnEveryChange", publicName: "emitTouchedOnEveryChange", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "document:pointerup": "onPointerUp()", "document:touchend": "onPointerUp()", "keydown": "onKeyPress($event)" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ArdSliderTooltipDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 }); }
12049
12054
  }
12050
12055
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: _AbstractSlider, decorators: [{
12051
12056
  type: Directive