@dereekb/dbx-core 14.14.0 → 14.15.0

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.
@@ -5334,7 +5334,12 @@ class AbstractDbxButtonDirective {
5334
5334
  */
5335
5335
  buttonEchoSignal = toSignal(this._buttonEcho$.pipe(switchMap((echo) => emitDelayObs(echo, undefined, echo.duration ?? DEFAULT_DBX_BUTTON_ECHO_DURATION))), { initialValue: undefined });
5336
5336
  buttonClick = output();
5337
- ariaLabel = input(undefined, /* @ts-ignore */
5337
+ /**
5338
+ * Accessible label for the button.
5339
+ *
5340
+ * Declared as a `model` so a directive composed onto the button (e.g. `dbxRotatingButton`) can set it.
5341
+ */
5342
+ ariaLabel = model(undefined, /* @ts-ignore */
5338
5343
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
5339
5344
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: Boolean });
5340
5345
  working = input(false, { ...(ngDevMode ? { debugName: "working" } : /* istanbul ignore next */ {}), transform: (x) => x ?? false });
@@ -5361,9 +5366,19 @@ class AbstractDbxButtonDirective {
5361
5366
  return isDefinedAndNotFalse(working);
5362
5367
  }, /* @ts-ignore */
5363
5368
  ...(ngDevMode ? [{ debugName: "isWorkingSignal" }] : /* istanbul ignore next */ []));
5364
- icon = input(/* @ts-ignore */
5369
+ /**
5370
+ * Icon to display. Takes precedence over the {@link buttonDisplay} icon.
5371
+ *
5372
+ * Declared as a `model` so a directive composed onto the button (e.g. `dbxRotatingButton`) can set it.
5373
+ */
5374
+ icon = model(/* @ts-ignore */
5365
5375
  ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
5366
- text = input(/* @ts-ignore */
5376
+ /**
5377
+ * Text to display. Takes precedence over the {@link buttonDisplay} text.
5378
+ *
5379
+ * Declared as a `model` so a directive composed onto the button (e.g. `dbxRotatingButton`) can set it.
5380
+ */
5381
+ text = model(/* @ts-ignore */
5367
5382
  ...(ngDevMode ? [undefined, { debugName: "text" }] : /* istanbul ignore next */ []));
5368
5383
  buttonDisplayContentSignal = computed(() => {
5369
5384
  const icon = this.icon();
@@ -5428,11 +5443,11 @@ class AbstractDbxButtonDirective {
5428
5443
  this.buttonClick.emit();
5429
5444
  }
5430
5445
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
5431
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AbstractDbxButtonDirective, isStandalone: true, inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, working: { classPropertyName: "working", publicName: "working", isSignal: true, isRequired: false, transformFunction: null }, buttonDisplay: { classPropertyName: "buttonDisplay", publicName: "buttonDisplay", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, ngImport: i0 });
5446
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AbstractDbxButtonDirective, isStandalone: true, inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, working: { classPropertyName: "working", publicName: "working", isSignal: true, isRequired: false, transformFunction: null }, buttonDisplay: { classPropertyName: "buttonDisplay", publicName: "buttonDisplay", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick", ariaLabel: "ariaLabelChange", icon: "iconChange", text: "textChange" }, ngImport: i0 });
5432
5447
  }
5433
5448
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxButtonDirective, decorators: [{
5434
5449
  type: Directive
5435
- }], ctorParameters: () => [], propDecorators: { buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], working: [{ type: i0.Input, args: [{ isSignal: true, alias: "working", required: false }] }], buttonDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisplay", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }] } });
5450
+ }], ctorParameters: () => [], propDecorators: { buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }, { type: i0.Output, args: ["ariaLabelChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], working: [{ type: i0.Input, args: [{ isSignal: true, alias: "working", required: false }] }], buttonDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisplay", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }, { type: i0.Output, args: ["iconChange"] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }, { type: i0.Output, args: ["textChange"] }] } });
5436
5451
  // MARK: Implementation
5437
5452
  /**
5438
5453
  * Concrete button directive that provides a {@link DbxButton} instance via DI.