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.
Files changed (92) hide show
  1. package/README.md +12 -9
  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 +1697 -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 +555 -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 +585 -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 +1076 -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 +749 -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 +129 -133
  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 +561 -398
  68. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
  69. package/types/shirkasoft-ui-components-file-upload.d.ts +210 -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 +232 -113
  76. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  77. package/types/shirkasoft-ui-components-select.d.ts +335 -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 +263 -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 +47 -15
  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,9 +1,10 @@
1
- import * as shirkasoft_ui_components_icons from 'shirkasoft-ui-components/icons';
2
- import * as _angular_core from '@angular/core';
3
- import { ElementRef } from '@angular/core';
4
- import { ControlValueAccessor, FormGroup, FormControl } from '@angular/forms';
5
- import { FormValueControl } from '@angular/forms/signals';
6
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { ElementRef } from "@angular/core";
6
+ import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms";
7
+ import { FormValueControl, ValidationError } from "@angular/forms/signals";
7
8
  /**
8
9
  * Shirkasoft UI Components.
9
10
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -13,124 +14,259 @@ import { FormValueControl } from '@angular/forms/signals';
13
14
  * Text input (or textarea) that implements ControlValueAccessor with built-in
14
15
  * validation messages, card/number formatting, password reveal and search mode.
15
16
  */
16
- declare class TextFieldComponent implements ControlValueAccessor, FormValueControl<any> {
17
- private cdr;
18
- /** id attribute applied to the native input. */
19
- id: _angular_core.InputSignal<string>;
20
- /** Formats the value as a credit card number (XXXX-XXXX-XXXX-XXXX). */
21
- formatCard: _angular_core.InputSignal<boolean>;
22
- /** Blocks the minus sign from being typed. */
23
- preventNegative: _angular_core.InputSignal<boolean>;
24
- /** Label rendered above the field. */
25
- label: _angular_core.InputSignal<string>;
26
- /** Native input type ('text', 'password', 'number', etc.). */
27
- type: _angular_core.InputSignal<string>;
28
- /** Allows digits only, stripping any other character. */
29
- numbersOnly: _angular_core.InputSignal<boolean>;
30
- /** When true, allows decimals and normalizes ',' to '.'. */
31
- allowDecimals: _angular_core.InputSignal<boolean>;
32
- /** Maximum number of characters the user can type. */
33
- maxLength: _angular_core.InputSignal<number | undefined>;
34
- /** Placeholder text of the native input. */
35
- placeholder: _angular_core.InputSignal<string>;
36
- /** Custom messages keyed by validation error name. */
37
- errorMessages: _angular_core.InputSignal<{
38
- [key: string]: string;
39
- }>;
40
- /** Parent reactive form used to resolve the control by label. */
41
- formGroup: _angular_core.InputSignal<FormGroup<any> | undefined>;
42
- /** Reactive control bound directly to this field. */
43
- control: _angular_core.InputSignal<FormControl<any> | undefined>;
44
- /** Disables the field. */
45
- disabled: _angular_core.InputSignal<boolean>;
46
- /** Custom error message shown regardless of validation errors. */
47
- errorMessage: _angular_core.InputSignal<string>;
48
- /** Renders a textarea instead of an input. */
49
- isTextArea: _angular_core.InputSignal<boolean>;
50
- /** Height classes applied when `isTextArea` is true. */
51
- textAreaHeight: _angular_core.InputSignal<string>;
52
- /** Renders the field as a read-only search trigger. */
53
- searchMode: _angular_core.InputSignal<boolean>;
54
- /** Value shown when `searchMode` is enabled. */
55
- displayValue: _angular_core.InputSignal<string>;
56
- /** Native autocomplete attribute. */
57
- autocomplete: _angular_core.InputSignal<string>;
58
- /** Emitted when the search button is clicked (search mode). */
59
- searchButtonClick: _angular_core.OutputEmitterRef<void>;
60
- /** Emitted on blur so Signal Forms can mark the field as touched. */
61
- touch: _angular_core.OutputEmitterRef<void>;
62
- protected readonly getIcon: (name: any) => shirkasoft_ui_components_icons.IconNode | null;
63
- /** Reference to the native input element. */
64
- inputElement: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
65
- /** Reference to the native textarea element. */
66
- textareaElement: _angular_core.Signal<ElementRef<HTMLTextAreaElement> | undefined>;
67
- /** Field value. Two-way bindable and used by Signal Forms `[formField]`. */
68
- value: _angular_core.ModelSignal<any>;
69
- /** Internal alias kept for the existing implementation. */
70
- private get _value();
71
- /** Reactive disabled state from the form control. */
72
- private _disabledState;
73
- /** Whether the password is currently revealed. */
74
- showPassword: _angular_core.WritableSignal<boolean>;
75
- /** Tracks whether the control was in error at some point (for "was fixed" UX). */
76
- hadError: _angular_core.WritableSignal<boolean>;
77
- /** Counter bumped to trigger recomputation of derived error signals. */
78
- private errorTracker;
79
- /** Text displayed in search mode when `displayValue` is set. */
80
- displayLabel: _angular_core.Signal<string>;
81
- /** Control whose status/value changes are currently observed. */
82
- private observedControl;
83
- /** Subscription to `observedControl`; replaced when the control changes. */
84
- private controlSubscription?;
85
- /** Effective disabled state combining the input and the form binding. */
86
- isDisabled: _angular_core.Signal<boolean>;
87
- /**
88
- * Internal control used when no reactive control is supplied (`[formField]`,
89
- * `formControlName`/`ngModel` on the host, or plain `[(value)]`). The native
90
- * input always needs a control for its `[formControl]` binding.
91
- */
92
- private readonly innerControl;
93
- /** Explicit `control`, or `formGroup.get(label)`, or `undefined` if none. */
94
- private externalControl;
95
- /** True when the field is driven by its internal control (no reactive control given). */
96
- private usesInnerControl;
97
- /** Resolves the reactive control: external one if any, otherwise the internal one. */
98
- actualControl: _angular_core.Signal<FormControl<any>>;
99
- /** True when the resolved control is invalid and dirty or touched. */
100
- shouldShowError: _angular_core.Signal<boolean>;
101
- /** True when the control had an error before and is now valid (success state). */
102
- wasFixedError: _angular_core.Signal<boolean>;
103
- /** Resolved list of error messages for the current control state. */
104
- getErrorMessages: _angular_core.Signal<string[]>;
105
- /** Effective input type (handles textarea and password reveal). */
106
- effectiveType: _angular_core.Signal<string>;
107
- private transloco;
108
- /** Callback notified with the new value (ControlValueAccessor). */
109
- private onChange;
110
- /** Callback notified when the field is touched (ControlValueAccessor). */
111
- private onTouched;
112
- private destroyRef;
113
- constructor();
114
- /** Prevents disallowed characters based on the `numbersOnly`/`allowDecimals` config. */
115
- numberValidation(event: KeyboardEvent): void;
116
- /** Marks the field as touched and refreshes the error state. */
117
- onBlur(): void;
118
- /** Formats the raw input as a credit card number and notifies the control. */
119
- onCardInput(event: Event): void;
120
- /** Handles raw input: applies number/card/max-length formatting and notifies the control. */
121
- onInput(event: Event): void;
122
- /** Toggles the visibility of a password field. */
123
- togglePasswordVisibility(): void;
124
- /** Sets the value from the form control applying the same formatting rules. */
125
- writeValue(value: any): void;
126
- /** Registers the callback invoked on value changes (ControlValueAccessor). */
127
- registerOnChange(fn: any): void;
128
- /** Registers the callback invoked when the field is touched. */
129
- registerOnTouched(fn: any): void;
130
- /** Reflects the disabled state of the form control. */
131
- setDisabledState(isDisabled: boolean): void;
132
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextFieldComponent, never>;
133
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextFieldComponent, "shk-text-field", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "formatCard": { "alias": "formatCard"; "required": false; "isSignal": true; }; "preventNegative": { "alias": "preventNegative"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "numbersOnly": { "alias": "numbersOnly"; "required": false; "isSignal": true; }; "allowDecimals": { "alias": "allowDecimals"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errorMessages": { "alias": "errorMessages"; "required": false; "isSignal": true; }; "formGroup": { "alias": "formGroup"; "required": false; "isSignal": true; }; "control": { "alias": "control"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "isTextArea": { "alias": "isTextArea"; "required": false; "isSignal": true; }; "textAreaHeight": { "alias": "textAreaHeight"; "required": false; "isSignal": true; }; "searchMode": { "alias": "searchMode"; "required": false; "isSignal": true; }; "displayValue": { "alias": "displayValue"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "searchButtonClick": "searchButtonClick"; "touch": "touch"; "value": "valueChange"; }, never, never, true, never>;
134
- }
135
-
136
- export { TextFieldComponent };
17
+ export declare class TextFieldComponent implements ControlValueAccessor, FormValueControl<any> {
18
+ private cdr;
19
+ /** id attribute applied to the native input. */
20
+ id: import("@angular/core").InputSignal<string>;
21
+ /** Formats the value as a credit card number (XXXX-XXXX-XXXX-XXXX). */
22
+ formatCard: import("@angular/core").InputSignal<boolean>;
23
+ /** Blocks the minus sign from being typed. */
24
+ preventNegative: import("@angular/core").InputSignal<boolean>;
25
+ /** Label rendered above the field. */
26
+ label: import("@angular/core").InputSignal<string>;
27
+ /** Native input type ('text', 'password', 'number', etc.). */
28
+ type: import("@angular/core").InputSignal<string>;
29
+ /** Allows digits only, stripping any other character. */
30
+ numbersOnly: import("@angular/core").InputSignal<boolean>;
31
+ /** When true, allows decimals and normalizes ',' to '.'. */
32
+ allowDecimals: import("@angular/core").InputSignal<boolean>;
33
+ /** Maximum number of characters the user can type. */
34
+ maxLength: import("@angular/core").InputSignal<number | undefined>;
35
+ /** Placeholder text of the native input. */
36
+ placeholder: import("@angular/core").InputSignal<string>;
37
+ /** Custom messages keyed by validation error name. */
38
+ errorMessages: import("@angular/core").InputSignal<{
39
+ [key: string]: string;
40
+ }>;
41
+ /** Parent reactive form used to resolve the control by label. */
42
+ formGroup: import("@angular/core").InputSignal<FormGroup<any> | undefined>;
43
+ /** Reactive control bound directly to this field. */
44
+ control: import("@angular/core").InputSignal<FormControl<any> | undefined>;
45
+ /** Disables the field. */
46
+ disabled: import("@angular/core").InputSignal<boolean>;
47
+ /** Errors bound automatically by the Signal Forms `[formField]` directive. */
48
+ errors: import("@angular/core").InputSignal<readonly ValidationError.WithOptionalFieldTree[]>;
49
+ /** Invalid status bound automatically by `[formField]`. */
50
+ invalid: import("@angular/core").InputSignal<boolean>;
51
+ /** Touched status bound automatically by `[formField]`. */
52
+ touched: import("@angular/core").InputSignal<boolean>;
53
+ /** Dirty status bound automatically by `[formField]`. */
54
+ dirty: import("@angular/core").InputSignal<boolean>;
55
+ /** Custom error message shown regardless of validation errors. */
56
+ errorMessage: import("@angular/core").InputSignal<string>;
57
+ /** Renders a textarea instead of an input. */
58
+ isTextArea: import("@angular/core").InputSignal<boolean>;
59
+ /** Height classes applied when `isTextArea` is true. */
60
+ textAreaHeight: import("@angular/core").InputSignal<string>;
61
+ /** Renders the field as a read-only search trigger. */
62
+ searchMode: import("@angular/core").InputSignal<boolean>;
63
+ /** Value shown when `searchMode` is enabled. */
64
+ displayValue: import("@angular/core").InputSignal<string>;
65
+ /** Native autocomplete attribute. */
66
+ autocomplete: import("@angular/core").InputSignal<string>;
67
+ /** Emitted when the search button is clicked (search mode). */
68
+ searchButtonClick: import("@angular/core").OutputEmitterRef<void>;
69
+ /** Emitted on blur so Signal Forms can mark the field as touched. */
70
+ touch: import("@angular/core").OutputEmitterRef<void>;
71
+ protected readonly getIcon: (name: any) => import("shirkasoft-ui-components/icons").IconNode | null;
72
+ /** Reference to the native input element. */
73
+ inputElement: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
74
+ /** Reference to the native textarea element. */
75
+ textareaElement: import("@angular/core").Signal<ElementRef<HTMLTextAreaElement> | undefined>;
76
+ /** Field value. Two-way bindable and used by Signal Forms `[formField]`. */
77
+ value: import("@angular/core").ModelSignal<any>;
78
+ /** Internal alias kept for the existing implementation. */
79
+ private get _value();
80
+ /** Reactive disabled state from the form control. */
81
+ private _disabledState;
82
+ /** Whether the password is currently revealed. */
83
+ showPassword: import("@angular/core").WritableSignal<boolean>;
84
+ /** Tracks whether the control was in error at some point (for "was fixed" UX). */
85
+ hadError: import("@angular/core").WritableSignal<boolean>;
86
+ /** Counter bumped to trigger recomputation of derived error signals. */
87
+ private errorTracker;
88
+ /** Text displayed in search mode when `displayValue` is set. */
89
+ displayLabel: import("@angular/core").Signal<string>;
90
+ /** Control whose status/value changes are currently observed. */
91
+ private observedControl;
92
+ /** Subscription to `observedControl`; replaced when the control changes. */
93
+ private controlSubscription?;
94
+ /** Effective disabled state combining the input and the form binding. */
95
+ isDisabled: import("@angular/core").Signal<boolean>;
96
+ /**
97
+ * Internal control used when no reactive control is supplied (`[formField]`,
98
+ * `formControlName`/`ngModel` on the host, or plain `[(value)]`). The native
99
+ * input always needs a control for its `[formControl]` binding.
100
+ */
101
+ private readonly innerControl;
102
+ /** Explicit `control`, or `formGroup.get(label)`, or `undefined` if none. */
103
+ private externalControl;
104
+ /**
105
+ * True when the field is driven by Signal Forms (or plain `[(value)]`) instead
106
+ * of a reactive control. Detected by the absence of an external control:
107
+ * `[formField]` then provides `errors`/`invalid`/`touched`/`dirty`.
108
+ */
109
+ protected usesSignalForms: import("@angular/core").Signal<boolean>;
110
+ /** Resolves the reactive control: external one if any, otherwise the internal one. */
111
+ actualControl: import("@angular/core").Signal<FormControl<any>>;
112
+ /** True when the field should display its validation errors. */
113
+ shouldShowError: import("@angular/core").Signal<boolean>;
114
+ /** True when the control had an error before and is now valid (success state). */
115
+ wasFixedError: import("@angular/core").Signal<boolean>;
116
+ /** Resolved list of error messages for the current control state. */
117
+ getErrorMessages: import("@angular/core").Signal<string[]>;
118
+ /** Effective input type (handles textarea and password reveal). */
119
+ effectiveType: import("@angular/core").Signal<string>;
120
+ private transloco;
121
+ /** Callback notified with the new value (ControlValueAccessor). */
122
+ private onChange;
123
+ /** Callback notified when the field is touched (ControlValueAccessor). */
124
+ private onTouched;
125
+ private destroyRef;
126
+ constructor();
127
+ /** Prevents disallowed characters based on the `numbersOnly`/`allowDecimals` config. */
128
+ numberValidation(event: KeyboardEvent): void;
129
+ /** Marks the field as touched and refreshes the error state. */
130
+ onBlur(): void;
131
+ /** Formats the raw input as a credit card number and notifies the control. */
132
+ onCardInput(event: Event): void;
133
+ /** Handles raw input: applies number/card/max-length formatting and notifies the control. */
134
+ onInput(event: Event): void;
135
+ /** Toggles the visibility of a password field. */
136
+ togglePasswordVisibility(): void;
137
+ /** Sets the value from the form control applying the same formatting rules. */
138
+ writeValue(value: any): void;
139
+ /** Registers the callback invoked on value changes (ControlValueAccessor). */
140
+ registerOnChange(fn: any): void;
141
+ /** Registers the callback invoked when the field is touched. */
142
+ registerOnTouched(fn: any): void;
143
+ /** Reflects the disabled state of the form control. */
144
+ setDisabledState(isDisabled: boolean): void;
145
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldComponent, never>;
146
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldComponent, "shk-text-field", never, {
147
+ "id": {
148
+ "alias": "id";
149
+ "required": false;
150
+ "isSignal": true;
151
+ };
152
+ "formatCard": {
153
+ "alias": "formatCard";
154
+ "required": false;
155
+ "isSignal": true;
156
+ };
157
+ "preventNegative": {
158
+ "alias": "preventNegative";
159
+ "required": false;
160
+ "isSignal": true;
161
+ };
162
+ "label": {
163
+ "alias": "label";
164
+ "required": false;
165
+ "isSignal": true;
166
+ };
167
+ "type": {
168
+ "alias": "type";
169
+ "required": false;
170
+ "isSignal": true;
171
+ };
172
+ "numbersOnly": {
173
+ "alias": "numbersOnly";
174
+ "required": false;
175
+ "isSignal": true;
176
+ };
177
+ "allowDecimals": {
178
+ "alias": "allowDecimals";
179
+ "required": false;
180
+ "isSignal": true;
181
+ };
182
+ "maxLength": {
183
+ "alias": "maxLength";
184
+ "required": false;
185
+ "isSignal": true;
186
+ };
187
+ "placeholder": {
188
+ "alias": "placeholder";
189
+ "required": false;
190
+ "isSignal": true;
191
+ };
192
+ "errorMessages": {
193
+ "alias": "errorMessages";
194
+ "required": false;
195
+ "isSignal": true;
196
+ };
197
+ "formGroup": {
198
+ "alias": "formGroup";
199
+ "required": false;
200
+ "isSignal": true;
201
+ };
202
+ "control": {
203
+ "alias": "control";
204
+ "required": false;
205
+ "isSignal": true;
206
+ };
207
+ "disabled": {
208
+ "alias": "disabled";
209
+ "required": false;
210
+ "isSignal": true;
211
+ };
212
+ "errors": {
213
+ "alias": "errors";
214
+ "required": false;
215
+ "isSignal": true;
216
+ };
217
+ "invalid": {
218
+ "alias": "invalid";
219
+ "required": false;
220
+ "isSignal": true;
221
+ };
222
+ "touched": {
223
+ "alias": "touched";
224
+ "required": false;
225
+ "isSignal": true;
226
+ };
227
+ "dirty": {
228
+ "alias": "dirty";
229
+ "required": false;
230
+ "isSignal": true;
231
+ };
232
+ "errorMessage": {
233
+ "alias": "errorMessage";
234
+ "required": false;
235
+ "isSignal": true;
236
+ };
237
+ "isTextArea": {
238
+ "alias": "isTextArea";
239
+ "required": false;
240
+ "isSignal": true;
241
+ };
242
+ "textAreaHeight": {
243
+ "alias": "textAreaHeight";
244
+ "required": false;
245
+ "isSignal": true;
246
+ };
247
+ "searchMode": {
248
+ "alias": "searchMode";
249
+ "required": false;
250
+ "isSignal": true;
251
+ };
252
+ "displayValue": {
253
+ "alias": "displayValue";
254
+ "required": false;
255
+ "isSignal": true;
256
+ };
257
+ "autocomplete": {
258
+ "alias": "autocomplete";
259
+ "required": false;
260
+ "isSignal": true;
261
+ };
262
+ "value": {
263
+ "alias": "value";
264
+ "required": false;
265
+ "isSignal": true;
266
+ };
267
+ }, {
268
+ "searchButtonClick": "searchButtonClick";
269
+ "touch": "touch";
270
+ "value": "valueChange";
271
+ }, never, never, true, never>;
272
+ }
@@ -1,7 +1,7 @@
1
- import * as shirkasoft_ui_components_config from 'shirkasoft-ui-components/config';
2
- import * as shirkasoft_ui_components_icons from 'shirkasoft-ui-components/icons';
3
- import * as _angular_core from '@angular/core';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Shirkasoft UI Components.
7
7
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -9,16 +9,16 @@ import * as _angular_core from '@angular/core';
9
9
  */
10
10
  /** A primary color offered by the picker. */
11
11
  interface ShkPickerColor {
12
- /** Hex color; it becomes `--shk-primary-600` (`theme.primary`). */
13
- color: string;
14
- /** Accessible name / tooltip. */
15
- label: string;
12
+ /** Hex color; it becomes `--shk-primary-600` (`theme.primary`). */
13
+ color: string;
14
+ /** Accessible name / tooltip. */
15
+ label: string;
16
16
  }
17
17
  /**
18
18
  * Default primary colors (Tailwind 600 shades). Red and rose are left out on
19
19
  * purpose: red is reserved for danger states.
20
20
  */
21
- declare const DEFAULT_PRIMARY_COLORS: readonly ShkPickerColor[];
21
+ export declare const DEFAULT_PRIMARY_COLORS: readonly ShkPickerColor[];
22
22
  /**
23
23
  * Theme customizer: a palette button that opens a panel to pick the primary
24
24
  * color, the surface (neutral) palette and a theme preset at runtime.
@@ -31,53 +31,87 @@ declare const DEFAULT_PRIMARY_COLORS: readonly ShkPickerColor[];
31
31
  * <shk-theme-picker />
32
32
  * ```
33
33
  */
34
- declare class ThemePickerComponent {
35
- private readonly config;
36
- private readonly host;
37
- private readonly trigger;
38
- /** Primary colors offered. */
39
- readonly primaryColors: _angular_core.InputSignal<readonly ShkPickerColor[]>;
40
- /** Shows the surface (neutral palette) section. */
41
- readonly showSurface: _angular_core.InputSignal<boolean>;
42
- /** Shows the theme presets section (needs more than one preset). */
43
- readonly showPresets: _angular_core.InputSignal<boolean>;
44
- /** Accessible name and tooltip of the button. */
45
- readonly triggerLabel: _angular_core.InputSignal<string>;
46
- readonly primaryLabel: _angular_core.InputSignal<string>;
47
- readonly surfaceLabel: _angular_core.InputSignal<string>;
48
- readonly presetsLabel: _angular_core.InputSignal<string>;
49
- /** `theme.*` options exist only when the app uses `withTheme()`. */
50
- protected readonly available: boolean;
51
- protected readonly open: _angular_core.WritableSignal<boolean>;
52
- protected readonly panelId: string;
53
- protected readonly paletteIcon: shirkasoft_ui_components_icons.IconNode | null;
54
- protected readonly presets: readonly shirkasoft_ui_components_config.ShkThemePreset[];
55
- /** Surface palettes, each shown with its 500 shade. */
56
- protected readonly surfaces: {
57
- name: string;
58
- label: string;
59
- color: string;
60
- }[];
61
- protected readonly themeName: _angular_core.Signal<string>;
62
- private readonly currentPreset;
63
- private readonly primaryOverride;
64
- private readonly surfaceOverride;
65
- /** Primary color in use: the override, else the preset's own (lowercase hex). */
66
- protected readonly activePrimary: _angular_core.Signal<string>;
67
- /** Surface palette in use: the override, else the preset's own. */
68
- protected readonly activeSurface: _angular_core.Signal<string>;
69
- /** True while no primary/surface override is applied on top of the preset. */
70
- protected readonly isPresetPure: _angular_core.Signal<boolean>;
71
- protected toggle(): void;
72
- protected setPrimary(color: string): void;
73
- protected setSurface(name: string): void;
74
- /** Applies a theme pack and clears the primary/surface overrides. */
75
- protected setPreset(name: string): void;
76
- protected onDocumentPointerDown(event: PointerEvent): void;
77
- protected onEscape(): void;
78
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemePickerComponent, never>;
79
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemePickerComponent, "shk-theme-picker", never, { "primaryColors": { "alias": "primaryColors"; "required": false; "isSignal": true; }; "showSurface": { "alias": "showSurface"; "required": false; "isSignal": true; }; "showPresets": { "alias": "showPresets"; "required": false; "isSignal": true; }; "triggerLabel": { "alias": "triggerLabel"; "required": false; "isSignal": true; }; "primaryLabel": { "alias": "primaryLabel"; "required": false; "isSignal": true; }; "surfaceLabel": { "alias": "surfaceLabel"; "required": false; "isSignal": true; }; "presetsLabel": { "alias": "presetsLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
34
+ export declare class ThemePickerComponent {
35
+ private readonly config;
36
+ private readonly host;
37
+ private readonly trigger;
38
+ /** Primary colors offered. */
39
+ readonly primaryColors: import("@angular/core").InputSignal<readonly ShkPickerColor[]>;
40
+ /** Shows the surface (neutral palette) section. */
41
+ readonly showSurface: import("@angular/core").InputSignal<boolean>;
42
+ /** Shows the theme presets section (needs more than one preset). */
43
+ readonly showPresets: import("@angular/core").InputSignal<boolean>;
44
+ /** Accessible name and tooltip of the button. */
45
+ readonly triggerLabel: import("@angular/core").InputSignal<string>;
46
+ readonly primaryLabel: import("@angular/core").InputSignal<string>;
47
+ readonly surfaceLabel: import("@angular/core").InputSignal<string>;
48
+ readonly presetsLabel: import("@angular/core").InputSignal<string>;
49
+ /** `theme.*` options exist only when the app uses `withTheme()`. */
50
+ protected readonly available: boolean;
51
+ protected readonly open: import("@angular/core").WritableSignal<boolean>;
52
+ protected readonly panelId: string;
53
+ protected readonly paletteIcon: import("shirkasoft-ui-components/icons").IconNode | null;
54
+ protected readonly presets: readonly import("shirkasoft-ui-components/config").ShkThemePreset[];
55
+ /** Surface palettes, each shown with its 500 shade. */
56
+ protected readonly surfaces: {
57
+ name: string;
58
+ label: string;
59
+ color: string;
60
+ }[];
61
+ protected readonly themeName: import("@angular/core").Signal<string>;
62
+ private readonly currentPreset;
63
+ private readonly primaryOverride;
64
+ private readonly surfaceOverride;
65
+ /** Primary color in use: the override, else the preset's own (lowercase hex). */
66
+ protected readonly activePrimary: import("@angular/core").Signal<string>;
67
+ /** Surface palette in use: the override, else the preset's own. */
68
+ protected readonly activeSurface: import("@angular/core").Signal<string>;
69
+ /** True while no primary/surface override is applied on top of the preset. */
70
+ protected readonly isPresetPure: import("@angular/core").Signal<boolean>;
71
+ protected toggle(): void;
72
+ protected setPrimary(color: string): void;
73
+ protected setSurface(name: string): void;
74
+ /** Applies a theme pack and clears the primary/surface overrides. */
75
+ protected setPreset(name: string): void;
76
+ protected onDocumentPointerDown(event: PointerEvent): void;
77
+ protected onEscape(): void;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemePickerComponent, never>;
79
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThemePickerComponent, "shk-theme-picker", never, {
80
+ "primaryColors": {
81
+ "alias": "primaryColors";
82
+ "required": false;
83
+ "isSignal": true;
84
+ };
85
+ "showSurface": {
86
+ "alias": "showSurface";
87
+ "required": false;
88
+ "isSignal": true;
89
+ };
90
+ "showPresets": {
91
+ "alias": "showPresets";
92
+ "required": false;
93
+ "isSignal": true;
94
+ };
95
+ "triggerLabel": {
96
+ "alias": "triggerLabel";
97
+ "required": false;
98
+ "isSignal": true;
99
+ };
100
+ "primaryLabel": {
101
+ "alias": "primaryLabel";
102
+ "required": false;
103
+ "isSignal": true;
104
+ };
105
+ "surfaceLabel": {
106
+ "alias": "surfaceLabel";
107
+ "required": false;
108
+ "isSignal": true;
109
+ };
110
+ "presetsLabel": {
111
+ "alias": "presetsLabel";
112
+ "required": false;
113
+ "isSignal": true;
114
+ };
115
+ }, {}, never, never, true, never>;
80
116
  }
81
-
82
- export { DEFAULT_PRIMARY_COLORS, ThemePickerComponent };
83
- export type { ShkPickerColor };
117
+ export type { ShkPickerColor };