ngx-lite-form 1.3.3 → 1.3.5
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 +179 -36
- package/fesm2022/ngx-lite-form.mjs +70 -31
- package/fesm2022/ngx-lite-form.mjs.map +1 -1
- package/index.d.ts +11 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormControl, AbstractControl } from '@angular/forms';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { ElementRef, AfterViewInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import { ElementRef, AfterViewInit, OnDestroy, Type, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
4
4
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
5
5
|
|
|
6
6
|
declare class FieldDto {
|
|
@@ -476,9 +476,10 @@ interface LitePanelAction {
|
|
|
476
476
|
*/
|
|
477
477
|
variant?: 'primary' | 'secondary' | 'danger';
|
|
478
478
|
}
|
|
479
|
-
declare class LitePanel {
|
|
479
|
+
declare class LitePanel implements AfterViewInit, OnDestroy {
|
|
480
480
|
title: _angular_core.InputSignal<string | null>;
|
|
481
|
-
content: _angular_core.InputSignal<string | TemplateRef<unknown> | null>;
|
|
481
|
+
content: _angular_core.InputSignal<string | Type<any> | TemplateRef<unknown> | null>;
|
|
482
|
+
contentInputs: _angular_core.InputSignal<Record<string, any> | null>;
|
|
482
483
|
actions: _angular_core.InputSignal<LitePanelAction[] | null>;
|
|
483
484
|
closeOnOverlayClick: _angular_core.InputSignal<boolean>;
|
|
484
485
|
width: _angular_core.InputSignal<string | number | null>;
|
|
@@ -486,11 +487,14 @@ declare class LitePanel {
|
|
|
486
487
|
maxWidth: _angular_core.InputSignal<string | number | null>;
|
|
487
488
|
maxHeight: _angular_core.InputSignal<string | number | null>;
|
|
488
489
|
closed: _angular_core.OutputEmitterRef<unknown>;
|
|
490
|
+
dynamicComponentContainer?: ViewContainerRef;
|
|
489
491
|
readonly panelTitleId: string;
|
|
492
|
+
private componentRef?;
|
|
490
493
|
private readonly defaultActions;
|
|
491
494
|
readonly resolvedActions: _angular_core.Signal<LitePanelAction[]>;
|
|
492
495
|
readonly contentTemplate: _angular_core.Signal<TemplateRef<unknown> | null>;
|
|
493
496
|
readonly contentText: _angular_core.Signal<string | null>;
|
|
497
|
+
readonly contentComponent: _angular_core.Signal<Type<any> | null>;
|
|
494
498
|
readonly templateContext: {
|
|
495
499
|
panel: LitePanel;
|
|
496
500
|
close: (value?: unknown) => void;
|
|
@@ -502,8 +506,11 @@ declare class LitePanel {
|
|
|
502
506
|
getActionClasses(action: LitePanelAction): Record<string, boolean>;
|
|
503
507
|
private toCssLength;
|
|
504
508
|
private isNilOrEmpty;
|
|
509
|
+
ngAfterViewInit(): void;
|
|
510
|
+
ngOnDestroy(): void;
|
|
511
|
+
private loadDynamicComponent;
|
|
505
512
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LitePanel, never>;
|
|
506
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LitePanel, "lite-panel", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "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>;
|
|
513
|
+
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>;
|
|
507
514
|
}
|
|
508
515
|
|
|
509
516
|
type LoadingView = 'spinner' | 'progress';
|
package/package.json
CHANGED