@ardium-ui/ui 5.0.0-alpha.13 → 5.0.0-alpha.14

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.
@@ -8308,6 +8308,7 @@ const _numberInputDefaults = {
8308
8308
  allowFloat: false,
8309
8309
  noButtons: false,
8310
8310
  stepSize: 1,
8311
+ keepFocusOnQuickChangeButton: true,
8311
8312
  };
8312
8313
  const ARD_NUMBER_INPUT_DEFAULTS = new InjectionToken('ard-number-input-defaults', {
8313
8314
  factory: () => ({
@@ -8339,14 +8340,14 @@ class ArdiumNumberInputComponent extends _FormFieldComponentBase {
8339
8340
  this._wasViewInit = false;
8340
8341
  this.inputId = input();
8341
8342
  //! placeholder
8342
- this.placeholder = input();
8343
+ this.placeholder = input(this._DEFAULTS.placeholder);
8343
8344
  this.placeholderTemplate = contentChild(ArdNumberInputPlaceholderTemplateDirective);
8344
8345
  this.shouldDisplayPlaceholder = computed(() => !!this.placeholder() && !this.inputModel.stringValue());
8345
8346
  //! appearance
8346
- this.appearance = input(FormElementAppearance.Outlined);
8347
- this.variant = input(FormElementVariant.Rounded);
8348
- this.alignText = input(OneAxisAlignment.Middle);
8349
- this.compact = input(false, { transform: v => coerceBooleanProperty(v) });
8347
+ this.appearance = input(this._DEFAULTS.appearance);
8348
+ this.variant = input(this._DEFAULTS.variant);
8349
+ this.alignText = input(this._DEFAULTS.alignText);
8350
+ this.compact = input(this._DEFAULTS.compact, { transform: v => coerceBooleanProperty(v) });
8350
8351
  this.ngClasses = computed(() => {
8351
8352
  return [
8352
8353
  `ard-appearance-${this.appearance()}`,
@@ -8382,13 +8383,13 @@ class ArdiumNumberInputComponent extends _FormFieldComponentBase {
8382
8383
  this.clearEvent = output({ alias: 'clear' });
8383
8384
  this.quickChangeEvent = output({ alias: 'quickChange' });
8384
8385
  //! min/max and number type
8385
- this.min = input(0, { transform: v => coerceNumberProperty(v, 0) });
8386
- this.max = input(999999, { transform: v => coerceNumberProperty(v, 999999) });
8387
- this.allowFloat = input(false, { transform: v => coerceBooleanProperty(v) });
8386
+ this.min = input(this._DEFAULTS.min, { transform: v => coerceNumberProperty(v, this._DEFAULTS.min) });
8387
+ this.max = input(this._DEFAULTS.max, { transform: v => coerceNumberProperty(v, this._DEFAULTS.max) });
8388
+ this.allowFloat = input(this._DEFAULTS.allowFloat, { transform: v => coerceBooleanProperty(v) });
8388
8389
  //! incerement/decrement buttons
8389
- this.noButtons = input(false, { transform: v => coerceBooleanProperty(v) });
8390
- this.keepFocusOnQuickChangeButton = input(true, { transform: v => coerceBooleanProperty(v) });
8391
- this.stepSize = input(1, {
8390
+ this.noButtons = input(this._DEFAULTS.noButtons, { transform: v => coerceBooleanProperty(v) });
8391
+ this.keepFocusOnQuickChangeButton = input(this._DEFAULTS.keepFocusOnQuickChangeButton, { transform: v => coerceBooleanProperty(v) });
8392
+ this.stepSize = input(this._DEFAULTS.stepSize, {
8392
8393
  transform: v => {
8393
8394
  const newValue = coerceNumberProperty(v, 1);
8394
8395
  if (newValue === 0)