@js-smart/ng-kit 18.0.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/README.md +297 -0
- package/esm2022/js-smart-ng-kit.mjs +5 -0
- package/esm2022/lib/components/alert/alert.component.mjs +95 -0
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +172 -0
- package/esm2022/lib/components/buttons/base-button/base-button.component.mjs +72 -0
- package/esm2022/lib/components/buttons/bs-link-button/bs-link-button.component.mjs +52 -0
- package/esm2022/lib/components/buttons/delete-button/delete-button.component.mjs +62 -0
- package/esm2022/lib/components/buttons/edit-bs-button/edit-bs-button.component.mjs +55 -0
- package/esm2022/lib/components/buttons/edit-button/edit-button.component.mjs +49 -0
- package/esm2022/lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.component.mjs +51 -0
- package/esm2022/lib/components/buttons/excel-export-button/excel-export-button.component.mjs +14 -0
- package/esm2022/lib/components/buttons/manage-button/manage-button.component.mjs +49 -0
- package/esm2022/lib/components/buttons/pdf-export-button/pdf-export-button.component.mjs +13 -0
- package/esm2022/lib/components/buttons/primary-button/primary-button.component.mjs +61 -0
- package/esm2022/lib/components/buttons/save-primary-button/save-primary-button.component.mjs +60 -0
- package/esm2022/lib/components/buttons/search-button/search-button.component.mjs +52 -0
- package/esm2022/lib/components/buttons/success-button/success-button.component.mjs +65 -0
- package/esm2022/lib/components/buttons/view-button/view-button.component.mjs +41 -0
- package/esm2022/lib/components/buttons/view-primary-button/view-primary-button.component.mjs +49 -0
- package/esm2022/lib/components/confirm-dialog/confirm-dialog.component.mjs +63 -0
- package/esm2022/lib/components/ngx-spinner/ngx-spinner.component.mjs +195 -0
- package/esm2022/lib/components/ngx-spinner/ngx-spinner.enum.mjs +16 -0
- package/esm2022/lib/components/ngx-spinner/ngx-spinner.service.mjs +71 -0
- package/esm2022/lib/components/ngx-spinner/safe-html.pipe.mjs +24 -0
- package/esm2022/lib/components/snack-bar/error-snack-bar/error-snack-bar.component.mjs +50 -0
- package/esm2022/lib/components/snack-bar/success-snack-bar/success-snack-bar.component.mjs +50 -0
- package/esm2022/lib/components/spinner/spinner.component.mjs +31 -0
- package/esm2022/lib/directives/ngx-print.directive.mjs +255 -0
- package/esm2022/lib/directives/prevent-multiple-clicks.directive.mjs +44 -0
- package/esm2022/lib/pipes/type-of.pipe.mjs +17 -0
- package/esm2022/lib/services/mat-snack-bar.service.mjs +82 -0
- package/esm2022/lib/svg-icons/edit-solid-svg/edit-solid-svg.component.mjs +22 -0
- package/esm2022/lib/types/progress-state.mjs +2 -0
- package/esm2022/lib/util/progress-util.mjs +80 -0
- package/esm2022/public-api.mjs +33 -0
- package/fesm2022/js-smart-ng-kit.mjs +1872 -0
- package/fesm2022/js-smart-ng-kit.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/alert/alert.component.d.ts +73 -0
- package/lib/components/autocomplete/autocomplete.component.d.ts +115 -0
- package/lib/components/buttons/base-button/base-button.component.d.ts +63 -0
- package/lib/components/buttons/bs-link-button/bs-link-button.component.d.ts +10 -0
- package/lib/components/buttons/delete-button/delete-button.component.d.ts +11 -0
- package/lib/components/buttons/edit-bs-button/edit-bs-button.component.d.ts +9 -0
- package/lib/components/buttons/edit-button/edit-button.component.d.ts +10 -0
- package/lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.component.d.ts +10 -0
- package/lib/components/buttons/excel-export-button/excel-export-button.component.d.ts +5 -0
- package/lib/components/buttons/manage-button/manage-button.component.d.ts +10 -0
- package/lib/components/buttons/pdf-export-button/pdf-export-button.component.d.ts +5 -0
- package/lib/components/buttons/primary-button/primary-button.component.d.ts +12 -0
- package/lib/components/buttons/save-primary-button/save-primary-button.component.d.ts +11 -0
- package/lib/components/buttons/search-button/search-button.component.d.ts +11 -0
- package/lib/components/buttons/success-button/success-button.component.d.ts +11 -0
- package/lib/components/buttons/view-button/view-button.component.d.ts +9 -0
- package/lib/components/buttons/view-primary-button/view-primary-button.component.d.ts +10 -0
- package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +20 -0
- package/lib/components/ngx-spinner/ngx-spinner.component.d.ts +109 -0
- package/lib/components/ngx-spinner/ngx-spinner.enum.d.ts +37 -0
- package/lib/components/ngx-spinner/ngx-spinner.service.d.ts +34 -0
- package/lib/components/ngx-spinner/safe-html.pipe.d.ts +10 -0
- package/lib/components/snack-bar/error-snack-bar/error-snack-bar.component.d.ts +22 -0
- package/lib/components/snack-bar/success-snack-bar/success-snack-bar.component.d.ts +22 -0
- package/lib/components/spinner/spinner.component.d.ts +22 -0
- package/lib/directives/ngx-print.directive.d.ts +157 -0
- package/lib/directives/prevent-multiple-clicks.directive.d.ts +21 -0
- package/lib/pipes/type-of.pipe.d.ts +7 -0
- package/lib/services/mat-snack-bar.service.d.ts +61 -0
- package/lib/svg-icons/edit-solid-svg/edit-solid-svg.component.d.ts +8 -0
- package/lib/types/progress-state.d.ts +7 -0
- package/lib/util/progress-util.d.ts +45 -0
- package/package.json +47 -0
- package/public-api.d.ts +25 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains utility methods for {@link ProgressState}
|
|
3
|
+
*
|
|
4
|
+
* @author Pavan Kumar Jadda
|
|
5
|
+
* @since 2.7.16
|
|
6
|
+
*/
|
|
7
|
+
import { ProgressState } from '../types/progress-state';
|
|
8
|
+
import { WritableSignal } from '@angular/core';
|
|
9
|
+
/**
|
|
10
|
+
* Initialize Loading or Update ProgressState
|
|
11
|
+
*
|
|
12
|
+
* @return Updated State Object
|
|
13
|
+
*
|
|
14
|
+
* @author Pavan Kumar Jadda
|
|
15
|
+
* @since 2.7.16
|
|
16
|
+
*/
|
|
17
|
+
export declare const initializeState: () => WritableSignal<ProgressState>;
|
|
18
|
+
/**
|
|
19
|
+
* Initialize Loading or Update ProgressState
|
|
20
|
+
*
|
|
21
|
+
* @param progressState Object to initialize
|
|
22
|
+
* @return ProgressState Updated State Object
|
|
23
|
+
*
|
|
24
|
+
* @author Pavan Kumar Jadda
|
|
25
|
+
* @since 2.7.16
|
|
26
|
+
*/
|
|
27
|
+
export declare const markLoading: (progressState: WritableSignal<ProgressState>) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Update state as isSuccess
|
|
30
|
+
*
|
|
31
|
+
* @return ProgressState Updated State Object
|
|
32
|
+
*
|
|
33
|
+
* @author Pavan Kumar Jadda
|
|
34
|
+
* @since 2.7.16
|
|
35
|
+
*/
|
|
36
|
+
export declare const markSuccess: (progressState: WritableSignal<ProgressState>, message?: string) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Update state as failure or isError
|
|
39
|
+
*
|
|
40
|
+
* @return ProgressState Updated State Object
|
|
41
|
+
*
|
|
42
|
+
* @author Pavan Kumar Jadda
|
|
43
|
+
* @since 2.7.16
|
|
44
|
+
*/
|
|
45
|
+
export declare const markError: (progressState: WritableSignal<ProgressState>, message?: string) => void;
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@js-smart/ng-kit",
|
|
3
|
+
"version": "18.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Pavan Kumar Jadda",
|
|
6
|
+
"private": false,
|
|
7
|
+
"keywords": [
|
|
8
|
+
"angular",
|
|
9
|
+
"angular-15",
|
|
10
|
+
"angular-16",
|
|
11
|
+
"angular-17",
|
|
12
|
+
"angular-18"
|
|
13
|
+
],
|
|
14
|
+
"contributors": [
|
|
15
|
+
{
|
|
16
|
+
"name": "Pavan Kumar Jadda"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/js-smart/ng-kit.git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/js-smart/ng-kit/issues"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@angular/common": "^18.0.0",
|
|
28
|
+
"@angular/core": "^18.0.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"tslib": "^2.6.2"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"module": "fesm2022/js-smart-ng-kit.mjs",
|
|
35
|
+
"typings": "index.d.ts",
|
|
36
|
+
"exports": {
|
|
37
|
+
"./package.json": {
|
|
38
|
+
"default": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./index.d.ts",
|
|
42
|
+
"esm2022": "./esm2022/js-smart-ng-kit.mjs",
|
|
43
|
+
"esm": "./esm2022/js-smart-ng-kit.mjs",
|
|
44
|
+
"default": "./fesm2022/js-smart-ng-kit.mjs"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './lib/components/alert/alert.component';
|
|
2
|
+
export * from './lib/components/spinner/spinner.component';
|
|
3
|
+
export * from './lib/components/ngx-spinner/ngx-spinner.service';
|
|
4
|
+
export * from './lib/components/ngx-spinner/ngx-spinner.component';
|
|
5
|
+
export * from './lib/components/autocomplete/autocomplete.component';
|
|
6
|
+
export * from './lib/directives/ngx-print.directive';
|
|
7
|
+
export * from './lib/directives/prevent-multiple-clicks.directive';
|
|
8
|
+
export * from './lib/components/buttons/bs-link-button/bs-link-button.component';
|
|
9
|
+
export * from './lib/components/buttons/delete-button/delete-button.component';
|
|
10
|
+
export * from './lib/components/buttons/edit-button/edit-button.component';
|
|
11
|
+
export * from './lib/components/buttons/edit-bs-button/edit-bs-button.component';
|
|
12
|
+
export * from './lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.component';
|
|
13
|
+
export * from './lib/components/buttons/manage-button/manage-button.component';
|
|
14
|
+
export * from './lib/components/buttons/save-primary-button/save-primary-button.component';
|
|
15
|
+
export * from './lib/components/buttons/search-button/search-button.component';
|
|
16
|
+
export * from './lib/components/buttons/success-button/success-button.component';
|
|
17
|
+
export * from './lib/components/buttons/view-button/view-button.component';
|
|
18
|
+
export * from './lib/components/buttons/view-primary-button/view-primary-button.component';
|
|
19
|
+
export * from './lib/components/buttons/primary-button/primary-button.component';
|
|
20
|
+
export * from './lib/components/buttons/pdf-export-button/pdf-export-button.component';
|
|
21
|
+
export * from './lib/components/buttons/excel-export-button/excel-export-button.component';
|
|
22
|
+
export * from './lib/components/confirm-dialog/confirm-dialog.component';
|
|
23
|
+
export * from './lib/svg-icons/edit-solid-svg/edit-solid-svg.component';
|
|
24
|
+
export * from './lib/services/mat-snack-bar.service';
|
|
25
|
+
export * from './lib/util/progress-util';
|