@js-smart/ng-kit 20.3.1 → 20.5.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/fesm2022/js-smart-ng-kit.mjs +374 -346
- package/fesm2022/js-smart-ng-kit.mjs.map +1 -1
- package/index.d.ts +85 -74
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, ChangeDetectorRef, OnDestroy, OnChanges, AfterContentChecked, ElementRef, SimpleChanges, WritableSignal } from '@angular/core';
|
|
3
|
-
import { ThemePalette, MatOptionSelectionChange } from '@angular/material/core';
|
|
2
|
+
import { OnInit, ChangeDetectorRef, OnDestroy, OnChanges, AfterContentChecked, ElementRef, SimpleChanges, Renderer2, WritableSignal } from '@angular/core';
|
|
4
3
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
4
|
+
import { ThemePalette, MatOptionSelectionChange } from '@angular/material/core';
|
|
5
5
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
6
6
|
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
7
7
|
import { MatTableDataSource } from '@angular/material/table';
|
|
@@ -86,27 +86,6 @@ declare class AlertComponent implements OnInit {
|
|
|
86
86
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "lib-alert, alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "dismissOnTimeout": { "alias": "dismissOnTimeout"; "required": false; "isSignal": true; }; "dismissTimeout": { "alias": "dismissTimeout"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
declare class SpinnerComponent {
|
|
90
|
-
/**
|
|
91
|
-
* Use Boostrap Spinner. Default `true`
|
|
92
|
-
*/
|
|
93
|
-
bootstrapSpinner: _angular_core.InputSignal<boolean>;
|
|
94
|
-
/**
|
|
95
|
-
* Diameter of the Angular Material spinner
|
|
96
|
-
*/
|
|
97
|
-
diameter: _angular_core.InputSignal<number>;
|
|
98
|
-
/**
|
|
99
|
-
* Color of the Angular Material spinner
|
|
100
|
-
*/
|
|
101
|
-
color: _angular_core.InputSignal<ThemePalette>;
|
|
102
|
-
/**
|
|
103
|
-
* Stroke Width of the Angular Material spinner
|
|
104
|
-
*/
|
|
105
|
-
strokeWidth: _angular_core.InputSignal<number>;
|
|
106
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
107
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpinnerComponent, "spinner,lib-spinner", never, { "bootstrapSpinner": { "alias": "bootstrapSpinner"; "required": false; "isSignal": true; }; "diameter": { "alias": "diameter"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
89
|
type Size = 'default' | 'small' | 'medium' | 'large';
|
|
111
90
|
interface Spinner {
|
|
112
91
|
bdColor?: string;
|
|
@@ -264,6 +243,27 @@ declare class NgxSpinnerComponent implements OnDestroy, OnInit {
|
|
|
264
243
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxSpinnerComponent, "ngx-spinner", never, { "bdColor": { "alias": "bdColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "fullScreen": { "alias": "fullScreen"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "showSpinner": { "alias": "showSpinner"; "required": false; "isSignal": true; }; "disableAnimation": { "alias": "disableAnimation"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
265
244
|
}
|
|
266
245
|
|
|
246
|
+
declare class SpinnerComponent {
|
|
247
|
+
/**
|
|
248
|
+
* Use Boostrap Spinner. Default `true`
|
|
249
|
+
*/
|
|
250
|
+
bootstrapSpinner: _angular_core.InputSignal<boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* Diameter of the Angular Material spinner
|
|
253
|
+
*/
|
|
254
|
+
diameter: _angular_core.InputSignal<number>;
|
|
255
|
+
/**
|
|
256
|
+
* Color of the Angular Material spinner
|
|
257
|
+
*/
|
|
258
|
+
color: _angular_core.InputSignal<ThemePalette>;
|
|
259
|
+
/**
|
|
260
|
+
* Stroke Width of the Angular Material spinner
|
|
261
|
+
*/
|
|
262
|
+
strokeWidth: _angular_core.InputSignal<number>;
|
|
263
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
264
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpinnerComponent, "spinner,lib-spinner", never, { "bootstrapSpinner": { "alias": "bootstrapSpinner"; "required": false; "isSignal": true; }; "diameter": { "alias": "diameter"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
267
|
/**
|
|
268
268
|
* Reusable Auto Complete component that extends MatAutoComplete to show Clear icon and Arrow buttons
|
|
269
269
|
*
|
|
@@ -616,6 +616,14 @@ declare class BsLinkButtonComponent extends BaseButtonComponent {
|
|
|
616
616
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsLinkButtonComponent, "bs-link-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
+
declare class CloseButtonDirective {
|
|
620
|
+
elementRef: ElementRef<any>;
|
|
621
|
+
renderer: Renderer2;
|
|
622
|
+
constructor();
|
|
623
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CloseButtonDirective, never>;
|
|
624
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CloseButtonDirective, "[closeButton]", never, {}, {}, never, never, true, never>;
|
|
625
|
+
}
|
|
626
|
+
|
|
619
627
|
declare class DeleteButtonComponent extends BaseButtonComponent {
|
|
620
628
|
loadingLabel: _angular_core.InputSignal<string>;
|
|
621
629
|
label: _angular_core.InputSignal<string>;
|
|
@@ -626,21 +634,21 @@ declare class DeleteButtonComponent extends BaseButtonComponent {
|
|
|
626
634
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DeleteButtonComponent, "delete-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
627
635
|
}
|
|
628
636
|
|
|
629
|
-
declare class
|
|
637
|
+
declare class EditBsButtonComponent extends BaseButtonComponent {
|
|
630
638
|
label: _angular_core.InputSignal<string>;
|
|
631
|
-
icon: _angular_core.InputSignal<string>;
|
|
632
639
|
classes: _angular_core.InputSignal<string>;
|
|
633
640
|
constructor();
|
|
634
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
635
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
641
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditBsButtonComponent, never>;
|
|
642
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditBsButtonComponent, "edit-bs-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
636
643
|
}
|
|
637
644
|
|
|
638
|
-
declare class
|
|
645
|
+
declare class EditButtonComponent extends BaseButtonComponent {
|
|
639
646
|
label: _angular_core.InputSignal<string>;
|
|
647
|
+
icon: _angular_core.InputSignal<string>;
|
|
640
648
|
classes: _angular_core.InputSignal<string>;
|
|
641
649
|
constructor();
|
|
642
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
643
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
650
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditButtonComponent, never>;
|
|
651
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditButtonComponent, "edit-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
644
652
|
}
|
|
645
653
|
|
|
646
654
|
declare class EditSvgIconButtonComponent extends BaseButtonComponent {
|
|
@@ -652,6 +660,11 @@ declare class EditSvgIconButtonComponent extends BaseButtonComponent {
|
|
|
652
660
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditSvgIconButtonComponent, "edit-svg-icon-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
653
661
|
}
|
|
654
662
|
|
|
663
|
+
declare class ExcelExportButtonComponent {
|
|
664
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExcelExportButtonComponent, never>;
|
|
665
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExcelExportButtonComponent, "excel-export-button", never, {}, {}, never, never, true, never>;
|
|
666
|
+
}
|
|
667
|
+
|
|
655
668
|
declare class ManageButtonComponent extends BaseButtonComponent {
|
|
656
669
|
label: _angular_core.InputSignal<string>;
|
|
657
670
|
icon: _angular_core.InputSignal<string>;
|
|
@@ -661,6 +674,22 @@ declare class ManageButtonComponent extends BaseButtonComponent {
|
|
|
661
674
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageButtonComponent, "manage-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
662
675
|
}
|
|
663
676
|
|
|
677
|
+
declare class PdfExportButtonComponent {
|
|
678
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdfExportButtonComponent, never>;
|
|
679
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdfExportButtonComponent, "pdf-export-button", never, {}, {}, never, never, true, never>;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
declare class PrimaryButtonComponent extends BaseButtonComponent {
|
|
683
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
684
|
+
label: _angular_core.InputSignal<string>;
|
|
685
|
+
icon: _angular_core.InputSignal<string>;
|
|
686
|
+
showIcon: _angular_core.InputSignal<boolean>;
|
|
687
|
+
classes: _angular_core.InputSignal<string>;
|
|
688
|
+
constructor();
|
|
689
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PrimaryButtonComponent, never>;
|
|
690
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PrimaryButtonComponent, "primary-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
691
|
+
}
|
|
692
|
+
|
|
664
693
|
declare class SavePrimaryButtonComponent extends BaseButtonComponent {
|
|
665
694
|
loadingLabel: _angular_core.InputSignal<string>;
|
|
666
695
|
label: _angular_core.InputSignal<string>;
|
|
@@ -708,27 +737,6 @@ declare class ViewPrimaryButtonComponent extends BaseButtonComponent {
|
|
|
708
737
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewPrimaryButtonComponent, "view-primary-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
709
738
|
}
|
|
710
739
|
|
|
711
|
-
declare class PrimaryButtonComponent extends BaseButtonComponent {
|
|
712
|
-
loadingLabel: _angular_core.InputSignal<string>;
|
|
713
|
-
label: _angular_core.InputSignal<string>;
|
|
714
|
-
icon: _angular_core.InputSignal<string>;
|
|
715
|
-
showIcon: _angular_core.InputSignal<boolean>;
|
|
716
|
-
classes: _angular_core.InputSignal<string>;
|
|
717
|
-
constructor();
|
|
718
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PrimaryButtonComponent, never>;
|
|
719
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PrimaryButtonComponent, "primary-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
declare class PdfExportButtonComponent {
|
|
723
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdfExportButtonComponent, never>;
|
|
724
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdfExportButtonComponent, "pdf-export-button", never, {}, {}, never, never, true, never>;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
declare class ExcelExportButtonComponent {
|
|
728
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExcelExportButtonComponent, never>;
|
|
729
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExcelExportButtonComponent, "excel-export-button", never, {}, {}, never, never, true, never>;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
740
|
declare class ConfirmDialogComponent {
|
|
733
741
|
data: ConfirmDialogData;
|
|
734
742
|
dialogRef: MatDialogRef<ConfirmDialogComponent>;
|
|
@@ -823,28 +831,6 @@ interface MatSnackBarOptions {
|
|
|
823
831
|
panelClass?: string | string[];
|
|
824
832
|
}
|
|
825
833
|
|
|
826
|
-
/**
|
|
827
|
-
* A core store class that can be used to store any object
|
|
828
|
-
*
|
|
829
|
-
* @author Pavan Kumar Jadda
|
|
830
|
-
* @since 17.1.0
|
|
831
|
-
*/
|
|
832
|
-
declare class Store<T extends object> {
|
|
833
|
-
_data: _angular_core.WritableSignal<T | undefined>;
|
|
834
|
-
data: _angular_core.Signal<T | undefined>;
|
|
835
|
-
/**
|
|
836
|
-
* Update the data in the store with the new data
|
|
837
|
-
*
|
|
838
|
-
* @param newData The new data to be stored/updated
|
|
839
|
-
*
|
|
840
|
-
* @author Pavan Kumar Jadda
|
|
841
|
-
* @since 17.1.0
|
|
842
|
-
*/
|
|
843
|
-
update(newData: T): void;
|
|
844
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Store<any>, never>;
|
|
845
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<Store<any>>;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
834
|
interface IdType {
|
|
849
835
|
id: number;
|
|
850
836
|
}
|
|
@@ -909,6 +895,31 @@ declare class EntityStore<T extends IdType> {
|
|
|
909
895
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<EntityStore<any>>;
|
|
910
896
|
}
|
|
911
897
|
|
|
898
|
+
/**
|
|
899
|
+
* A core store class that can be used to store any object
|
|
900
|
+
*
|
|
901
|
+
* @author Pavan Kumar Jadda
|
|
902
|
+
* @since 17.1.0
|
|
903
|
+
*/
|
|
904
|
+
declare class Store<T extends object> {
|
|
905
|
+
_data: _angular_core.WritableSignal<T | null>;
|
|
906
|
+
data: _angular_core.Signal<T | null>;
|
|
907
|
+
initialize(initialData: T): void;
|
|
908
|
+
/**
|
|
909
|
+
* Update the data in the store with the new data
|
|
910
|
+
*
|
|
911
|
+
* @param newData The new data to be stored/updated
|
|
912
|
+
*
|
|
913
|
+
* @author Pavan Kumar Jadda
|
|
914
|
+
* @since 17.1.0
|
|
915
|
+
*/
|
|
916
|
+
update(newData: T): void;
|
|
917
|
+
clear(): void;
|
|
918
|
+
getData(): T | null;
|
|
919
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Store<any>, never>;
|
|
920
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<Store<any>>;
|
|
921
|
+
}
|
|
922
|
+
|
|
912
923
|
/**
|
|
913
924
|
* Initialize Loading or Update ProgressState
|
|
914
925
|
*
|
|
@@ -947,5 +958,5 @@ declare const markSuccess: (progressState: WritableSignal<ProgressState>, messag
|
|
|
947
958
|
*/
|
|
948
959
|
declare const markError: (progressState: WritableSignal<ProgressState>, message?: string) => void;
|
|
949
960
|
|
|
950
|
-
export { AlertComponent, AutocompleteComponent, BsLinkButtonComponent, ConfirmDialogComponent, DeleteButtonComponent, EditBsButtonComponent, EditButtonComponent, EditSolidSvgComponent, EditSvgIconButtonComponent, EntityStore, ExcelExportButtonComponent, ManageButtonComponent, MatSnackBarService, NgxPrintDirective, NgxSpinnerComponent, NgxSpinnerService, PdfExportButtonComponent, PreventMultipleClicksDirective, PrimaryButtonComponent, SavePrimaryButtonComponent, SearchButtonComponent, SpinnerComponent, Store, SuccessButtonComponent, ViewButtonComponent, ViewPrimaryButtonComponent, initializeState, markError, markLoading, markSuccess };
|
|
961
|
+
export { AlertComponent, AutocompleteComponent, BsLinkButtonComponent, CloseButtonDirective, ConfirmDialogComponent, DeleteButtonComponent, EditBsButtonComponent, EditButtonComponent, EditSolidSvgComponent, EditSvgIconButtonComponent, EntityStore, ExcelExportButtonComponent, ManageButtonComponent, MatSnackBarService, NgxPrintDirective, NgxSpinnerComponent, NgxSpinnerService, PdfExportButtonComponent, PreventMultipleClicksDirective, PrimaryButtonComponent, SavePrimaryButtonComponent, SearchButtonComponent, SpinnerComponent, Store, SuccessButtonComponent, ViewButtonComponent, ViewPrimaryButtonComponent, initializeState, markError, markLoading, markSuccess };
|
|
951
962
|
export type { AlertType, ConfirmDialogData, MatSnackBarOptions, ProgressState };
|