ngx-lite-form 1.3.8 → 1.3.9
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 +1 -1
- package/fesm2022/ngx-lite-form.mjs +45 -4
- package/fesm2022/ngx-lite-form.mjs.map +1 -1
- package/index.d.ts +7 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormControl, AbstractControl } from '@angular/forms';
|
|
1
|
+
import { FormControl, AbstractControl, FormGroup, FormGroupDirective } from '@angular/forms';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { ElementRef, AfterViewInit, OnDestroy, Type, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { ElementRef, AfterViewInit, OnDestroy, Type, TemplateRef, ViewContainerRef, QueryList } from '@angular/core';
|
|
4
4
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
5
5
|
|
|
6
6
|
declare class FieldDto {
|
|
@@ -485,6 +485,7 @@ declare class LitePanel implements AfterViewInit, OnDestroy {
|
|
|
485
485
|
title: _angular_core.InputSignal<string | null>;
|
|
486
486
|
content: _angular_core.InputSignal<string | Type<any> | TemplateRef<unknown> | null>;
|
|
487
487
|
contentInputs: _angular_core.InputSignal<Record<string, any> | null>;
|
|
488
|
+
formGroup: _angular_core.InputSignal<FormGroup<any> | null>;
|
|
488
489
|
actions: _angular_core.InputSignal<LitePanelAction[] | null>;
|
|
489
490
|
closeOnOverlayClick: _angular_core.InputSignal<boolean>;
|
|
490
491
|
width: _angular_core.InputSignal<string | number | null>;
|
|
@@ -493,8 +494,10 @@ declare class LitePanel implements AfterViewInit, OnDestroy {
|
|
|
493
494
|
maxHeight: _angular_core.InputSignal<string | number | null>;
|
|
494
495
|
closed: _angular_core.OutputEmitterRef<unknown>;
|
|
495
496
|
dynamicComponentContainer?: ViewContainerRef;
|
|
497
|
+
formGroupDirectives?: QueryList<FormGroupDirective>;
|
|
496
498
|
readonly panelTitleId: string;
|
|
497
499
|
private componentRef?;
|
|
500
|
+
private detectedFormGroup;
|
|
498
501
|
private readonly defaultActions;
|
|
499
502
|
readonly resolvedActions: _angular_core.Signal<LitePanelAction[]>;
|
|
500
503
|
readonly contentTemplate: _angular_core.Signal<TemplateRef<unknown> | null>;
|
|
@@ -513,13 +516,14 @@ declare class LitePanel implements AfterViewInit, OnDestroy {
|
|
|
513
516
|
private shouldRespectComponentValidity;
|
|
514
517
|
private getComponentValidity;
|
|
515
518
|
private findFormGroup;
|
|
519
|
+
private detectFormInTemplate;
|
|
516
520
|
private toCssLength;
|
|
517
521
|
private isNilOrEmpty;
|
|
518
522
|
ngAfterViewInit(): void;
|
|
519
523
|
ngOnDestroy(): void;
|
|
520
524
|
private loadDynamicComponent;
|
|
521
525
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LitePanel, never>;
|
|
522
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LitePanel, "lite-panel", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "contentInputs": { "alias": "contentInputs"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "closeOnOverlayClick": { "alias": "closeOnOverlayClick"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
526
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LitePanel, "lite-panel", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "contentInputs": { "alias": "contentInputs"; "required": false; "isSignal": true; }; "formGroup": { "alias": "formGroup"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "closeOnOverlayClick": { "alias": "closeOnOverlayClick"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
523
527
|
}
|
|
524
528
|
|
|
525
529
|
type LoadingView = 'spinner' | 'progress';
|
package/package.json
CHANGED