shirkasoft-ui-components 1.14.0 → 2.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.
Files changed (92) hide show
  1. package/README.md +4 -8
  2. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
  3. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/shirkasoft-ui-components-button.mjs +363 -69
  5. package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
  7. package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
  8. package/fesm2022/shirkasoft-ui-components-config.mjs +905 -843
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
  10. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
  11. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
  12. package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1440
  13. package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
  14. package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
  15. package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
  16. package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -300
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
  21. package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
  22. package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
  23. package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
  24. package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -314
  25. package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
  26. package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
  27. package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
  28. package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -327
  29. package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
  30. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
  31. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
  32. package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -819
  33. package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
  34. package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
  35. package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
  36. package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
  37. package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
  38. package/fesm2022/shirkasoft-ui-components-table.mjs +1916 -1698
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -402
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
  53. package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
  54. package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
  55. package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/shirkasoft-ui-components-utils.mjs +95 -134
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +5 -5
  62. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  63. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  64. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  65. package/types/shirkasoft-ui-components-config.d.ts +193 -204
  66. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
  67. package/types/shirkasoft-ui-components-date-picker.d.ts +527 -398
  68. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
  69. package/types/shirkasoft-ui-components-file-upload.d.ts +176 -112
  70. package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
  71. package/types/shirkasoft-ui-components-knob.d.ts +144 -78
  72. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  73. package/types/shirkasoft-ui-components-modal.d.ts +134 -136
  74. package/types/shirkasoft-ui-components-notification.d.ts +63 -59
  75. package/types/shirkasoft-ui-components-price-input.d.ts +198 -113
  76. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  77. package/types/shirkasoft-ui-components-select.d.ts +301 -196
  78. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
  79. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  80. package/types/shirkasoft-ui-components-table.d.ts +849 -660
  81. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  82. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  83. package/types/shirkasoft-ui-components-text-field.d.ts +231 -127
  84. package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
  85. package/types/shirkasoft-ui-components-theme.d.ts +56 -64
  86. package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
  87. package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
  88. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  89. package/types/shirkasoft-ui-components-utils.d.ts +15 -16
  90. package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
  91. package/types/shirkasoft-ui-components.d.ts +1 -2
  92. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1,7 +1,8 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnDestroy } from '@angular/core';
3
- import * as shirkasoft_ui_components_icons from 'shirkasoft-ui-components/icons';
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
- protected getIcon: (name: any) => shirkasoft_ui_components_icons.IconNode | null;
16
- /** Title shown in the dialog header. */
17
- title: _angular_core.InputSignal<string>;
18
- /** Message body of the dialog. */
19
- message: _angular_core.InputSignal<string>;
20
- /** Label of the confirm button. */
21
- confirmLabel: _angular_core.InputSignal<string>;
22
- /** Label of the cancel button. */
23
- cancelLabel: _angular_core.InputSignal<string>;
24
- /** Text shown on the confirm button while `loading` is true. */
25
- loadingText: _angular_core.InputSignal<string>;
26
- /** Visual style: 'danger', 'info' or 'warning'. */
27
- type: _angular_core.InputSignal<"danger" | "info" | "warning">;
28
- /** Shows a spinner and disables the confirm button. */
29
- loading: _angular_core.InputSignal<boolean>;
30
- /** Whether the cancel button is shown. */
31
- showCancel: _angular_core.InputSignal<boolean>;
32
- /** Controls dialog visibility. */
33
- visible: _angular_core.WritableSignal<boolean>;
34
- /** Resolver of the currently pending confirmation promise. */
35
- private resolveRef;
36
- /** Emitted whenever the dialog is closed (confirm or cancel). */
37
- closed: _angular_core.OutputEmitterRef<void>;
38
- /** Opens the dialog and returns a promise resolving with the user choice. */
39
- show(): Promise<boolean>;
40
- /** Resolves with `true` when the user confirms. */
41
- onConfirm(): void;
42
- /** Resolves with `false` when the user cancels. */
43
- onCancel(): void;
44
- /** Clears the pending resolver on destroy. */
45
- ngOnDestroy(): void;
46
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
47
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialogComponent, "shk-confirm-dialog", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "showCancel": { "alias": "showCancel"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, never, true, never>;
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
- title?: string;
58
- message: string;
59
- confirmLabel?: string;
60
- cancelLabel?: string;
61
- loadingText?: string;
62
- type?: 'danger' | 'info' | 'warning';
63
- showCancel?: boolean;
64
- loading?: boolean;
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
- /** Reference to the currently open dialog, if any. */
72
- private dialogRef;
73
- private destroyRef;
74
- private appRef;
75
- private injector;
76
- constructor();
77
- /**
78
- * Opens a confirmation dialog with the given configuration and returns a
79
- * promise resolving with the user's choice.
80
- */
81
- confirm(config: ConfirmConfig): Promise<boolean>;
82
- /** Detaches and destroys the mounted dialog if present. */
83
- private cleanupDialog;
84
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
85
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<ConfirmDialogService>;
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 };