ngx-lite-form 1.2.3 → 1.3.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.
- package/LICENSE +21 -0
- package/README.md +668 -147
- package/fesm2022/ngx-lite-form.mjs +87 -2
- package/fesm2022/ngx-lite-form.mjs.map +1 -1
- package/index.d.ts +41 -3
- 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 } from '@angular/core';
|
|
3
|
+
import { ElementRef, AfterViewInit, TemplateRef } from '@angular/core';
|
|
4
4
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
5
5
|
|
|
6
6
|
declare class FieldDto {
|
|
@@ -454,5 +454,43 @@ declare class LiteTable<T = any> {
|
|
|
454
454
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LiteTable<any>, "lite-table", never, { "table": { "alias": "table"; "required": true; "isSignal": true; }; }, { "pageChange": "pageChange"; "itemsPerPageChange": "itemsPerPageChange"; }, never, never, true, never>;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
|
|
458
|
-
|
|
457
|
+
interface LitePanelAction {
|
|
458
|
+
label: string;
|
|
459
|
+
value?: unknown;
|
|
460
|
+
/**
|
|
461
|
+
* Adds a CSS modifier class `lite-panel__action--${variant}` to let consumers style the action button.
|
|
462
|
+
*/
|
|
463
|
+
variant?: 'primary' | 'secondary' | 'danger';
|
|
464
|
+
}
|
|
465
|
+
declare class LitePanel {
|
|
466
|
+
title: _angular_core.InputSignal<string | null>;
|
|
467
|
+
content: _angular_core.InputSignal<string | TemplateRef<unknown> | null>;
|
|
468
|
+
actions: _angular_core.InputSignal<LitePanelAction[] | null>;
|
|
469
|
+
closeOnOverlayClick: _angular_core.InputSignal<boolean>;
|
|
470
|
+
width: _angular_core.InputSignal<string | number | null>;
|
|
471
|
+
height: _angular_core.InputSignal<string | number | null>;
|
|
472
|
+
maxWidth: _angular_core.InputSignal<string | number | null>;
|
|
473
|
+
maxHeight: _angular_core.InputSignal<string | number | null>;
|
|
474
|
+
closed: _angular_core.OutputEmitterRef<unknown>;
|
|
475
|
+
readonly panelTitleId: string;
|
|
476
|
+
private readonly defaultActions;
|
|
477
|
+
readonly resolvedActions: _angular_core.Signal<LitePanelAction[]>;
|
|
478
|
+
readonly contentTemplate: _angular_core.Signal<TemplateRef<unknown> | null>;
|
|
479
|
+
readonly contentText: _angular_core.Signal<string | null>;
|
|
480
|
+
readonly templateContext: {
|
|
481
|
+
panel: LitePanel;
|
|
482
|
+
close: (value?: unknown) => void;
|
|
483
|
+
};
|
|
484
|
+
readonly panelStyles: _angular_core.Signal<Record<string, string>>;
|
|
485
|
+
close(value?: unknown | null): void;
|
|
486
|
+
onBackdropClick(): void;
|
|
487
|
+
onAction(action: LitePanelAction): void;
|
|
488
|
+
getActionClasses(action: LitePanelAction): Record<string, boolean>;
|
|
489
|
+
private toCssLength;
|
|
490
|
+
private isNilOrEmpty;
|
|
491
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LitePanel, never>;
|
|
492
|
+
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>;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export { BaseSelectFieldDto, FieldDto, FileFieldDto, FormUtils, LiteCheckbox, LiteDate, LiteDateTime, LiteFile, LiteInput, LiteMultiSelect, LitePaginator, LitePanel, LitePassword, LiteRadio, LiteSelect, LiteSnackbarService, LiteTable, LiteTextarea, MultiSelectFieldDto, PaginatorFieldDto, RadioFieldDto, SelectFieldDto, TableFieldDto };
|
|
496
|
+
export type { DateRangeFieldDto, FileItem, LitePanelAction, SnackbarType, TableColumn };
|
package/package.json
CHANGED