shirkasoft-ui-components 1.14.0 → 2.0.1
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 +12 -9
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +363 -69
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +905 -843
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1697 -1440
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +555 -300
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -314
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +585 -327
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +1076 -819
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +1916 -1698
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +749 -402
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +129 -133
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components.mjs +0 -9
- package/package.json +5 -5
- package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
- package/types/shirkasoft-ui-components-button.d.ts +142 -49
- package/types/shirkasoft-ui-components-chart.d.ts +59 -44
- package/types/shirkasoft-ui-components-config.d.ts +193 -204
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
- package/types/shirkasoft-ui-components-date-picker.d.ts +561 -398
- package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
- package/types/shirkasoft-ui-components-file-upload.d.ts +210 -112
- package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
- package/types/shirkasoft-ui-components-knob.d.ts +144 -78
- package/types/shirkasoft-ui-components-loading.d.ts +155 -64
- package/types/shirkasoft-ui-components-modal.d.ts +134 -136
- package/types/shirkasoft-ui-components-notification.d.ts +63 -59
- package/types/shirkasoft-ui-components-price-input.d.ts +232 -113
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
- package/types/shirkasoft-ui-components-select.d.ts +335 -196
- package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
- package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
- package/types/shirkasoft-ui-components-table.d.ts +849 -660
- package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
- package/types/shirkasoft-ui-components-tag.d.ts +54 -23
- package/types/shirkasoft-ui-components-text-field.d.ts +263 -127
- package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
- package/types/shirkasoft-ui-components-theme.d.ts +56 -64
- package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
- package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
- package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
- package/types/shirkasoft-ui-components-utils.d.ts +47 -15
- package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
- package/types/shirkasoft-ui-components.d.ts +1 -2
- package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { OnDestroy } from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Shirkasoft UI Components.
|
|
7
8
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
@@ -11,42 +12,84 @@ import * as shirkasoft_ui_components_icons from 'shirkasoft-ui-components/icons'
|
|
|
11
12
|
* Confirmation dialog opened via `show()` which resolves a Promise<boolean>
|
|
12
13
|
* with the user's choice.
|
|
13
14
|
*/
|
|
14
|
-
declare class ConfirmDialogComponent implements OnDestroy {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
15
|
+
export declare class ConfirmDialogComponent implements OnDestroy {
|
|
16
|
+
protected getIcon: (name: any) => import("shirkasoft-ui-components/icons").IconNode | null;
|
|
17
|
+
/** Title shown in the dialog header. */
|
|
18
|
+
title: import("@angular/core").InputSignal<string>;
|
|
19
|
+
/** Message body of the dialog. */
|
|
20
|
+
message: import("@angular/core").InputSignal<string>;
|
|
21
|
+
/** Label of the confirm button. */
|
|
22
|
+
confirmLabel: import("@angular/core").InputSignal<string>;
|
|
23
|
+
/** Label of the cancel button. */
|
|
24
|
+
cancelLabel: import("@angular/core").InputSignal<string>;
|
|
25
|
+
/** Text shown on the confirm button while `loading` is true. */
|
|
26
|
+
loadingText: import("@angular/core").InputSignal<string>;
|
|
27
|
+
/** Visual style: 'danger', 'info' or 'warning'. */
|
|
28
|
+
type: import("@angular/core").InputSignal<"danger" | "info" | "warning">;
|
|
29
|
+
/** Shows a spinner and disables the confirm button. */
|
|
30
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
31
|
+
/** Whether the cancel button is shown. */
|
|
32
|
+
showCancel: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
/** Controls dialog visibility. */
|
|
34
|
+
visible: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
/** Resolver of the currently pending confirmation promise. */
|
|
36
|
+
private resolveRef;
|
|
37
|
+
/** Emitted whenever the dialog is closed (confirm or cancel). */
|
|
38
|
+
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
39
|
+
/** Opens the dialog and returns a promise resolving with the user choice. */
|
|
40
|
+
show(): Promise<boolean>;
|
|
41
|
+
/** Resolves with `true` when the user confirms. */
|
|
42
|
+
onConfirm(): void;
|
|
43
|
+
/** Resolves with `false` when the user cancels. */
|
|
44
|
+
onCancel(): void;
|
|
45
|
+
/** Clears the pending resolver on destroy. */
|
|
46
|
+
ngOnDestroy(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "shk-confirm-dialog", never, {
|
|
49
|
+
"title": {
|
|
50
|
+
"alias": "title";
|
|
51
|
+
"required": false;
|
|
52
|
+
"isSignal": true;
|
|
53
|
+
};
|
|
54
|
+
"message": {
|
|
55
|
+
"alias": "message";
|
|
56
|
+
"required": false;
|
|
57
|
+
"isSignal": true;
|
|
58
|
+
};
|
|
59
|
+
"confirmLabel": {
|
|
60
|
+
"alias": "confirmLabel";
|
|
61
|
+
"required": false;
|
|
62
|
+
"isSignal": true;
|
|
63
|
+
};
|
|
64
|
+
"cancelLabel": {
|
|
65
|
+
"alias": "cancelLabel";
|
|
66
|
+
"required": false;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"loadingText": {
|
|
70
|
+
"alias": "loadingText";
|
|
71
|
+
"required": false;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"type": {
|
|
75
|
+
"alias": "type";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
"loading": {
|
|
80
|
+
"alias": "loading";
|
|
81
|
+
"required": false;
|
|
82
|
+
"isSignal": true;
|
|
83
|
+
};
|
|
84
|
+
"showCancel": {
|
|
85
|
+
"alias": "showCancel";
|
|
86
|
+
"required": false;
|
|
87
|
+
"isSignal": true;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
"closed": "closed";
|
|
91
|
+
}, never, never, true, never>;
|
|
48
92
|
}
|
|
49
|
-
|
|
50
93
|
/**
|
|
51
94
|
* Shirkasoft UI Components.
|
|
52
95
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
@@ -54,36 +97,34 @@ declare class ConfirmDialogComponent implements OnDestroy {
|
|
|
54
97
|
*/
|
|
55
98
|
/** Options for opening a confirmation dialog. */
|
|
56
99
|
interface ConfirmConfig {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
100
|
+
title?: string;
|
|
101
|
+
message: string;
|
|
102
|
+
confirmLabel?: string;
|
|
103
|
+
cancelLabel?: string;
|
|
104
|
+
loadingText?: string;
|
|
105
|
+
type?: 'danger' | 'info' | 'warning';
|
|
106
|
+
showCancel?: boolean;
|
|
107
|
+
loading?: boolean;
|
|
65
108
|
}
|
|
66
109
|
/**
|
|
67
110
|
* Programmatically opens the confirmation dialog and resolves a Promise
|
|
68
111
|
* with the user's decision (true = confirm, false = cancel).
|
|
69
112
|
*/
|
|
70
|
-
declare class ConfirmDialogService {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
113
|
+
export declare class ConfirmDialogService {
|
|
114
|
+
/** Reference to the currently open dialog, if any. */
|
|
115
|
+
private dialogRef;
|
|
116
|
+
private destroyRef;
|
|
117
|
+
private appRef;
|
|
118
|
+
private injector;
|
|
119
|
+
constructor();
|
|
120
|
+
/**
|
|
121
|
+
* Opens a confirmation dialog with the given configuration and returns a
|
|
122
|
+
* promise resolving with the user's choice.
|
|
123
|
+
*/
|
|
124
|
+
confirm(config: ConfirmConfig): Promise<boolean>;
|
|
125
|
+
/** Detaches and destroys the mounted dialog if present. */
|
|
126
|
+
private cleanupDialog;
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
128
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
86
129
|
}
|
|
87
|
-
|
|
88
|
-
export { ConfirmDialogComponent, ConfirmDialogService };
|
|
89
|
-
export type { ConfirmConfig };
|
|
130
|
+
export type { ConfirmConfig };
|