chrv-components 1.12.100 → 1.12.102

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.
Binary file
@@ -5104,13 +5104,19 @@ class ChrButtonComponent {
5104
5104
  */
5105
5105
  this.action = input(/* @ts-ignore */
5106
5106
  ...(ngDevMode ? [undefined, { debugName: "action" }] : /* istanbul ignore next */ []));
5107
+ /**
5108
+ * Trigger a click programmatically.
5109
+ */
5110
+ this.click = () => {
5111
+ this.elementRef.nativeElement.click();
5112
+ };
5107
5113
  /**
5108
5114
  * The event that will be thrown when the button is clicked
5109
5115
  */
5110
5116
  this.onAction = output();
5111
5117
  this.loading = model(false, /* @ts-ignore */
5112
5118
  ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
5113
- this.handleClick = (event) => {
5119
+ this.handleClick = (event = null) => {
5114
5120
  this.loading.set(true);
5115
5121
  const click = this.action();
5116
5122
  const result = typeof click === 'function' ? click() : click;