ngx-lite-form 1.3.7 → 1.3.8
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.
- package/README.md +47 -664
- package/fesm2022/ngx-lite-form.mjs +66 -3
- package/fesm2022/ngx-lite-form.mjs.map +1 -1
- package/index.d.ts +8 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -476,6 +476,10 @@ interface LitePanelAction {
|
|
|
476
476
|
* Adds a CSS modifier class `lite-panel__action--${variant}` to let consumers style the action button.
|
|
477
477
|
*/
|
|
478
478
|
variant?: 'primary' | 'secondary' | 'danger';
|
|
479
|
+
/**
|
|
480
|
+
* Controls action interactivity. Use a boolean literal or return `true` from a function to disable.
|
|
481
|
+
*/
|
|
482
|
+
disabled?: boolean | (() => boolean);
|
|
479
483
|
}
|
|
480
484
|
declare class LitePanel implements AfterViewInit, OnDestroy {
|
|
481
485
|
title: _angular_core.InputSignal<string | null>;
|
|
@@ -505,6 +509,10 @@ declare class LitePanel implements AfterViewInit, OnDestroy {
|
|
|
505
509
|
onBackdropClick(): void;
|
|
506
510
|
onAction(action: LitePanelAction): void;
|
|
507
511
|
getActionClasses(action: LitePanelAction): Record<string, boolean>;
|
|
512
|
+
isActionDisabled(action: LitePanelAction): boolean;
|
|
513
|
+
private shouldRespectComponentValidity;
|
|
514
|
+
private getComponentValidity;
|
|
515
|
+
private findFormGroup;
|
|
508
516
|
private toCssLength;
|
|
509
517
|
private isNilOrEmpty;
|
|
510
518
|
ngAfterViewInit(): void;
|
package/package.json
CHANGED