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

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.
@@ -10455,6 +10455,7 @@ class ArdiumCheckboxComponent extends _BooleanComponentBase {
10455
10455
  this.internalState.set(newState);
10456
10456
  this.selected.set(this.internalState() === CheckboxState.Selected);
10457
10457
  this._emitChange();
10458
+ this._emitTouched();
10458
10459
  }
10459
10460
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ArdiumCheckboxComponent, deps: [{ token: ARD_CHECKBOX_DEFAULTS }], target: i0.ɵɵFactoryTarget.Component }); }
10460
10461
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.15", type: ArdiumCheckboxComponent, isStandalone: false, selector: "ard-checkbox", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, unselectedColor: { classPropertyName: "unselectedColor", publicName: "unselectedColor", isSignal: true, isRequired: false, transformFunction: null }, internalState: { classPropertyName: "internalState", publicName: "state", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { internalState: "stateChange" }, providers: [
@@ -11351,7 +11352,6 @@ class _SelectableListComponentBase extends _FormFieldComponentBase {
11351
11352
  if (selected.length > 0) {
11352
11353
  this.addEvent.emit(selected);
11353
11354
  this._emitChange();
11354
- this._emitTouched();
11355
11355
  }
11356
11356
  }
11357
11357
  unselectItem(...items) {
@@ -11359,7 +11359,6 @@ class _SelectableListComponentBase extends _FormFieldComponentBase {
11359
11359
  if (unselected.length > 0)
11360
11360
  this.removeEvent.emit(unselected);
11361
11361
  this._emitChange();
11362
- this._emitTouched();
11363
11362
  }
11364
11363
  onMouseMove() {
11365
11364
  this.isMouseBeingUsed.set(true);
@@ -11783,6 +11782,7 @@ const _asbtractSliderDefaults = {
11783
11782
  tooltipBehavior: SliderTooltipBehavior.Auto,
11784
11783
  selectionBehavior: ArdRangeSelectionBehavior.Allow,
11785
11784
  minimumDistance: 0,
11785
+ emitTouchedOnEveryChange: false,
11786
11786
  };
11787
11787
  class _AbstractSlider extends _NgModelComponentBase {
11788
11788
  constructor() {
@@ -11906,6 +11906,9 @@ class _AbstractSlider extends _NgModelComponentBase {
11906
11906
  this._grabbedHandleId = signal(null);
11907
11907
  this._shouldCheckForMovement = false;
11908
11908
  this._bodyHasClass = false;
11909
+ this.emitTouchedOnEveryChange = input(this._DEFAULTS.emitTouchedOnEveryChange, {
11910
+ transform: v => coerceBooleanProperty(v),
11911
+ });
11909
11912
  this.isSliderHandleGrabbed = computed(() => !!this._grabbedHandleId());
11910
11913
  this.grabbedHandleEffect = effect(() => {
11911
11914
  if (this.isSliderHandleGrabbed()) {
@@ -11932,6 +11935,12 @@ class _AbstractSlider extends _NgModelComponentBase {
11932
11935
  newPercent = this._clampPercentValue(newPercent);
11933
11936
  this._setValueFromPercent(newPercent);
11934
11937
  }
11938
+ _decrement(event, forceShift = false) {
11939
+ this._offset(-1, forceShift || event.shiftKey);
11940
+ }
11941
+ _increment(event, forceShift = false) {
11942
+ this._offset(+1, forceShift || event.shiftKey);
11943
+ }
11935
11944
  //! helper methods
11936
11945
  _clampValue(v) {
11937
11946
  //clamp between min and max
@@ -11977,6 +11986,9 @@ class _AbstractSlider extends _NgModelComponentBase {
11977
11986
  return;
11978
11987
  this._value.set(this._percentValueToValue(percent, handleId));
11979
11988
  this._emitChange();
11989
+ if (this.emitTouchedOnEveryChange()) {
11990
+ this._emitTouched();
11991
+ }
11980
11992
  }
11981
11993
  _writeValueFromEvent(event, handleId) {
11982
11994
  const percent = this._getPercentValueFromEvent(event);
@@ -12038,14 +12050,8 @@ class _AbstractSlider extends _NgModelComponentBase {
12038
12050
  }
12039
12051
  }
12040
12052
  }
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
12053
  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 }); }
12054
+ 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
12055
  }
12050
12056
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: _AbstractSlider, decorators: [{
12051
12057
  type: Directive