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,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { ControlValueAccessor, FormControl } from "@angular/forms";
|
|
5
|
+
import { FormValueControl, ValidationError } from "@angular/forms/signals";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
5
7
|
/**
|
|
6
8
|
* Shirkasoft UI Components.
|
|
7
9
|
* Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
|
|
@@ -17,112 +19,229 @@ import { FormValueControl } from '@angular/forms/signals';
|
|
|
17
19
|
* Text-based input (`type="text"` + `inputmode="decimal"`) with decimal
|
|
18
20
|
* precision control, min/max clamping on blur and thousands formatting.
|
|
19
21
|
*/
|
|
20
|
-
declare class PriceInputComponent implements ControlValueAccessor, FormValueControl<number | null> {
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
22
|
+
export declare class PriceInputComponent implements ControlValueAccessor, FormValueControl<number | null> {
|
|
23
|
+
/** Reactive control. When provided it takes precedence over `value`/`valueChange`. */
|
|
24
|
+
control: import("@angular/core").InputSignal<FormControl<number | null> | undefined>;
|
|
25
|
+
/** Numeric value (two-way), used when no `control` is bound. */
|
|
26
|
+
value: import("@angular/core").ModelSignal<number | null>;
|
|
27
|
+
/** Whether the input works as a percentage (two-way). */
|
|
28
|
+
isPercentage: import("@angular/core").ModelSignal<boolean>;
|
|
29
|
+
/** Label displayed above the field. */
|
|
30
|
+
label: import("@angular/core").InputSignal<string>;
|
|
31
|
+
/** id attribute applied to the native input. */
|
|
32
|
+
inputId: import("@angular/core").InputSignal<string>;
|
|
33
|
+
/** Marks the field as required. */
|
|
34
|
+
required: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
/** Disables the input. */
|
|
36
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
37
|
+
/** Errors bound automatically by the Signal Forms `[formField]` directive. */
|
|
38
|
+
errors: import("@angular/core").InputSignal<readonly ValidationError.WithOptionalFieldTree[]>;
|
|
39
|
+
/** Invalid status bound automatically by `[formField]`. */
|
|
40
|
+
invalid: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
/** Touched status bound automatically by `[formField]`. */
|
|
42
|
+
touched: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
/** Dirty status bound automatically by `[formField]`. */
|
|
44
|
+
dirty: import("@angular/core").InputSignal<boolean>;
|
|
45
|
+
/** Minimum allowed value (clamped on blur). */
|
|
46
|
+
min: import("@angular/core").InputSignal<number | undefined>;
|
|
47
|
+
/** Maximum allowed value (clamped on blur). */
|
|
48
|
+
max: import("@angular/core").InputSignal<number | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum number of decimal places (0 = integer). Unset = the `numbers.decimals`
|
|
51
|
+
* option, else the digits of the `numbers.currency` option (2 for USD).
|
|
52
|
+
*/
|
|
53
|
+
decimals: import("@angular/core").InputSignal<number | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Symbol shown in the mode toggle button when not a percentage. Empty = the
|
|
56
|
+
* `numbers.currencySymbol` option, else the symbol of `numbers.currency` ('$').
|
|
57
|
+
*/
|
|
58
|
+
currency: import("@angular/core").InputSignal<string>;
|
|
59
|
+
/** Placeholder text of the native input. */
|
|
60
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
61
|
+
/** Accessible label; falls back to `label`. */
|
|
62
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
63
|
+
/** Blocks the minus sign from being typed. */
|
|
64
|
+
preventNegative: import("@angular/core").InputSignal<boolean>;
|
|
65
|
+
/** Shows the error styling on the field. */
|
|
66
|
+
showError: import("@angular/core").InputSignal<boolean>;
|
|
67
|
+
/** Message rendered when the field is in error state. */
|
|
68
|
+
errorMessage: import("@angular/core").InputSignal<string>;
|
|
69
|
+
/** Emitted on blur so Signal Forms can mark the field as touched. */
|
|
70
|
+
touch: import("@angular/core").OutputEmitterRef<void>;
|
|
71
|
+
private destroyRef;
|
|
72
|
+
private transloco;
|
|
73
|
+
/** Library-wide options: currency, decimals and number separators. */
|
|
74
|
+
private readonly config;
|
|
75
|
+
/** Decimal places actually used. */
|
|
76
|
+
private readonly effectiveDecimals;
|
|
77
|
+
/** Locale of the grouping/decimal separators. */
|
|
78
|
+
private readonly numbersLocale;
|
|
79
|
+
/** Decimal separator of the locale (`.` or `,`), used while editing. */
|
|
80
|
+
private readonly decimalSeparator;
|
|
81
|
+
/** Symbol shown in the toggle: input, `numbers.currencySymbol`, or the currency's symbol. */
|
|
82
|
+
readonly displaySymbol: import("@angular/core").Signal<string>;
|
|
83
|
+
/** Text currently shown in the input (raw while focused, formatted on blur). */
|
|
84
|
+
displayText: import("@angular/core").WritableSignal<string>;
|
|
85
|
+
/** Whether the native input currently has focus. */
|
|
86
|
+
focused: import("@angular/core").WritableSignal<boolean>;
|
|
87
|
+
/** Disabled state coming from the reactive control. */
|
|
88
|
+
private controlDisabled;
|
|
89
|
+
/** Prevents re-subscribing to the same form control. */
|
|
90
|
+
private ctrlSubscribed;
|
|
91
|
+
/** Bumped on control status changes / blur so error computeds refresh. */
|
|
92
|
+
private statusTick;
|
|
93
|
+
/**
|
|
94
|
+
* True when the input is driven by Signal Forms instead of a reactive control.
|
|
95
|
+
* Detected by the absence of a reactive control: `[formField]` provides the
|
|
96
|
+
* state through its `errors`/`invalid`/`touched`/`dirty` inputs.
|
|
97
|
+
*/
|
|
98
|
+
protected readonly usesSignalForms: import("@angular/core").Signal<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the error state is shown: forced with `showError`, or when the
|
|
101
|
+
* bound `control` is invalid and has been touched or modified.
|
|
102
|
+
*/
|
|
103
|
+
hasError: import("@angular/core").Signal<boolean>;
|
|
104
|
+
/** Message shown under the field: `errorMessage` or one derived from the errors. */
|
|
105
|
+
errorText: import("@angular/core").Signal<string>;
|
|
106
|
+
/** Effective disabled state combining the input and the form binding. */
|
|
107
|
+
isDisabled: import("@angular/core").Signal<boolean>;
|
|
108
|
+
/** Callbacks used by the ControlValueAccessor contract. */
|
|
109
|
+
private onChange;
|
|
110
|
+
private onTouched;
|
|
111
|
+
constructor();
|
|
112
|
+
/** Toggles between amount and percentage modes (unless disabled). */
|
|
113
|
+
toggleMode(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Switches to the editable form (no grouping, locale decimal separator) and
|
|
116
|
+
* selects it so the user can type over it or edit in the middle safely.
|
|
117
|
+
*/
|
|
118
|
+
onFocus(event: FocusEvent): void;
|
|
119
|
+
/** Clamps, rounds and formats the value when the field loses focus. */
|
|
120
|
+
onBlur(): void;
|
|
121
|
+
/** Blocks characters that would break the numeric format. */
|
|
122
|
+
onKeydown(event: KeyboardEvent): void;
|
|
123
|
+
/** Sanitizes the raw input (digits + one separator + optional sign) and writes the value once. */
|
|
124
|
+
onInput(event: Event): void;
|
|
125
|
+
/** Writes the value to the effective binding source. */
|
|
126
|
+
private setValue;
|
|
127
|
+
private roundTo;
|
|
128
|
+
/** Formats a number with the locale's separators and up to `decimals` places. */
|
|
129
|
+
private formatNumber;
|
|
130
|
+
/** Number as edited: no grouping, locale decimal separator ("1234,5" for es-ES). */
|
|
131
|
+
private editableNumber;
|
|
132
|
+
/** Parses the editable text back to a number (either separator is accepted). */
|
|
133
|
+
private parseEditable;
|
|
134
|
+
/** Value of the effective binding source (control or `value`). */
|
|
135
|
+
private currentValue;
|
|
136
|
+
writeValue(value: any): void;
|
|
137
|
+
registerOnChange(fn: any): void;
|
|
138
|
+
registerOnTouched(fn: any): void;
|
|
139
|
+
setDisabledState(isDisabled: boolean): void;
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PriceInputComponent, never>;
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PriceInputComponent, "shk-price-input", never, {
|
|
142
|
+
"control": {
|
|
143
|
+
"alias": "control";
|
|
144
|
+
"required": false;
|
|
145
|
+
"isSignal": true;
|
|
146
|
+
};
|
|
147
|
+
"value": {
|
|
148
|
+
"alias": "value";
|
|
149
|
+
"required": false;
|
|
150
|
+
"isSignal": true;
|
|
151
|
+
};
|
|
152
|
+
"isPercentage": {
|
|
153
|
+
"alias": "isPercentage";
|
|
154
|
+
"required": false;
|
|
155
|
+
"isSignal": true;
|
|
156
|
+
};
|
|
157
|
+
"label": {
|
|
158
|
+
"alias": "label";
|
|
159
|
+
"required": false;
|
|
160
|
+
"isSignal": true;
|
|
161
|
+
};
|
|
162
|
+
"inputId": {
|
|
163
|
+
"alias": "inputId";
|
|
164
|
+
"required": false;
|
|
165
|
+
"isSignal": true;
|
|
166
|
+
};
|
|
167
|
+
"required": {
|
|
168
|
+
"alias": "required";
|
|
169
|
+
"required": false;
|
|
170
|
+
"isSignal": true;
|
|
171
|
+
};
|
|
172
|
+
"disabled": {
|
|
173
|
+
"alias": "disabled";
|
|
174
|
+
"required": false;
|
|
175
|
+
"isSignal": true;
|
|
176
|
+
};
|
|
177
|
+
"errors": {
|
|
178
|
+
"alias": "errors";
|
|
179
|
+
"required": false;
|
|
180
|
+
"isSignal": true;
|
|
181
|
+
};
|
|
182
|
+
"invalid": {
|
|
183
|
+
"alias": "invalid";
|
|
184
|
+
"required": false;
|
|
185
|
+
"isSignal": true;
|
|
186
|
+
};
|
|
187
|
+
"touched": {
|
|
188
|
+
"alias": "touched";
|
|
189
|
+
"required": false;
|
|
190
|
+
"isSignal": true;
|
|
191
|
+
};
|
|
192
|
+
"dirty": {
|
|
193
|
+
"alias": "dirty";
|
|
194
|
+
"required": false;
|
|
195
|
+
"isSignal": true;
|
|
196
|
+
};
|
|
197
|
+
"min": {
|
|
198
|
+
"alias": "min";
|
|
199
|
+
"required": false;
|
|
200
|
+
"isSignal": true;
|
|
201
|
+
};
|
|
202
|
+
"max": {
|
|
203
|
+
"alias": "max";
|
|
204
|
+
"required": false;
|
|
205
|
+
"isSignal": true;
|
|
206
|
+
};
|
|
207
|
+
"decimals": {
|
|
208
|
+
"alias": "decimals";
|
|
209
|
+
"required": false;
|
|
210
|
+
"isSignal": true;
|
|
211
|
+
};
|
|
212
|
+
"currency": {
|
|
213
|
+
"alias": "currency";
|
|
214
|
+
"required": false;
|
|
215
|
+
"isSignal": true;
|
|
216
|
+
};
|
|
217
|
+
"placeholder": {
|
|
218
|
+
"alias": "placeholder";
|
|
219
|
+
"required": false;
|
|
220
|
+
"isSignal": true;
|
|
221
|
+
};
|
|
222
|
+
"ariaLabel": {
|
|
223
|
+
"alias": "ariaLabel";
|
|
224
|
+
"required": false;
|
|
225
|
+
"isSignal": true;
|
|
226
|
+
};
|
|
227
|
+
"preventNegative": {
|
|
228
|
+
"alias": "preventNegative";
|
|
229
|
+
"required": false;
|
|
230
|
+
"isSignal": true;
|
|
231
|
+
};
|
|
232
|
+
"showError": {
|
|
233
|
+
"alias": "showError";
|
|
234
|
+
"required": false;
|
|
235
|
+
"isSignal": true;
|
|
236
|
+
};
|
|
237
|
+
"errorMessage": {
|
|
238
|
+
"alias": "errorMessage";
|
|
239
|
+
"required": false;
|
|
240
|
+
"isSignal": true;
|
|
241
|
+
};
|
|
242
|
+
}, {
|
|
243
|
+
"value": "valueChange";
|
|
244
|
+
"isPercentage": "isPercentageChange";
|
|
245
|
+
"touch": "touch";
|
|
246
|
+
}, never, never, true, never>;
|
|
247
|
+
}
|