@sixbell-telco/sdk 4.8.0 → 4.10.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/CHANGELOG.md +53 -0
- package/components/accordion/README.md +1 -1
- package/components/accordion/src/accordion.component.d.ts +4 -0
- package/components/alert/src/alert.component.d.ts +8 -1
- package/components/data-table/README.md +1 -0
- package/components/data-table/src/data-table.component.d.ts +2 -24
- package/components/dialog/README.md +4 -3
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +2 -1
- package/components/dialog/src/dialog.component.d.ts +10 -5
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -2
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +12 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +6 -0
- package/components/forms/combobox/README.md +49 -0
- package/components/forms/combobox/src/combobox.component.d.ts +178 -3
- package/components/forms/date-picker/README.md +3 -1
- package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
- package/components/forms/form-error/README.md +2 -0
- package/components/forms/form-error/src/form-error.component.d.ts +17 -0
- package/components/forms/form-hint/README.md +2 -2
- package/components/forms/form-item/README.md +1 -0
- package/components/forms/form-item/src/form-item.component.d.ts +38 -6
- package/components/forms/input/README.md +7 -0
- package/components/forms/input/src/input.component.d.ts +11 -1
- package/components/forms/select/README.md +48 -0
- package/components/forms/select/src/select.component.d.ts +157 -2
- package/components/forms/textarea/README.md +1 -0
- package/components/forms/textarea/src/textarea.component.d.ts +6 -1
- package/components/paginator/README.md +3 -0
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
- package/components/paginator/src/paginator.component.d.ts +2 -1
- package/components/progress/src/progress.component.d.ts +17 -3
- package/components/table/README.md +2 -0
- package/components/table/src/table.component.d.ts +16 -23
- package/directives/only-numbers/src/only-numbers.directive.d.ts +27 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +5 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +30 -13
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +2 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +10 -4
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +32 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +272 -23
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +17 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +32 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +74 -10
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +13 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +258 -18
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +11 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +15 -11
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +22 -4
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +42 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +49 -4
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/i18n/sdk/en.json +14 -4
- package/i18n/sdk/es.json +14 -4
- package/i18n/sdk/pt.json +14 -4
- package/manifest.json +185 -19
- package/package.json +1 -1
- package/src/_index.css +19 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { booleanAttribute, input, signal, computed, Component, inject } from '@angular/core';
|
|
2
|
+
import { booleanAttribute, input, signal, computed, Component, Injectable, inject } from '@angular/core';
|
|
3
|
+
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
3
4
|
import { Validators } from '@angular/forms';
|
|
5
|
+
import { switchMap, EMPTY, map } from 'rxjs';
|
|
4
6
|
|
|
5
7
|
/** `booleanAttribute` that keeps `undefined`/`null` as "not set", for tri-state flags. */
|
|
6
8
|
const optionalBooleanAttribute = (value) => value === undefined || value === null ? undefined : booleanAttribute(value);
|
|
@@ -8,8 +10,9 @@ const optionalBooleanAttribute = (value) => value === undefined || value === nul
|
|
|
8
10
|
* A layout wrapper for one form field: the control, its `st-form-hint` and its `st-form-errors`.
|
|
9
11
|
*
|
|
10
12
|
* @remarks
|
|
11
|
-
* It is also the field context: controls inside it read `required` from here,
|
|
12
|
-
* `st-form-hint` inside it is linked to the control through `aria-describedby
|
|
13
|
+
* It is also the field context: controls inside it read `required` from here, every
|
|
14
|
+
* `st-form-hint` inside it is linked to the control through `aria-describedby`, and so is the
|
|
15
|
+
* `st-form-errors` message while the control is invalid and touched or dirty.
|
|
13
16
|
*/
|
|
14
17
|
class FormItemComponent {
|
|
15
18
|
/**
|
|
@@ -17,6 +20,7 @@ class FormItemComponent {
|
|
|
17
20
|
*/
|
|
18
21
|
required = input(undefined, { transform: optionalBooleanAttribute });
|
|
19
22
|
hints = signal([]);
|
|
23
|
+
errors = signal([]);
|
|
20
24
|
/** Ids of the hints inside this item, space separated, or `null` when there are none. */
|
|
21
25
|
describedBy = computed(() => (this.hints().length ? this.hints().join(' ') : null));
|
|
22
26
|
/** @internal Called by `st-form-hint`. */
|
|
@@ -27,6 +31,16 @@ class FormItemComponent {
|
|
|
27
31
|
unregisterHint(id) {
|
|
28
32
|
this.hints.update((ids) => ids.filter((existing) => existing !== id));
|
|
29
33
|
}
|
|
34
|
+
/** @internal Ids of the `st-form-errors` messages inside this item. */
|
|
35
|
+
errorIds = this.errors.asReadonly();
|
|
36
|
+
/** @internal Called by `st-form-errors`. */
|
|
37
|
+
registerError(id) {
|
|
38
|
+
this.errors.update((ids) => (ids.includes(id) ? ids : [...ids, id]));
|
|
39
|
+
}
|
|
40
|
+
/** @internal Called by `st-form-errors`. */
|
|
41
|
+
unregisterError(id) {
|
|
42
|
+
this.errors.update((ids) => ids.filter((existing) => existing !== id));
|
|
43
|
+
}
|
|
30
44
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
45
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: FormItemComponent, isStandalone: true, selector: "st-form-item", inputs: { required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block w-full" }, ngImport: i0, template: "<div class=\"flex w-full flex-col items-start gap-1\">\n\t<ng-content select=\":not(st-form-errors)\"></ng-content>\n\t<div class=\"w-full\">\n\t\t<ng-content select=\"st-form-errors\"></ng-content>\n\t</div>\n</div>\n" });
|
|
32
46
|
}
|
|
@@ -38,25 +52,75 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
38
52
|
}] });
|
|
39
53
|
/**
|
|
40
54
|
* @internal
|
|
41
|
-
*
|
|
42
|
-
*
|
|
55
|
+
* Provided by a field that wraps a projected kit control instead of rendering its own (`st-datepicker`
|
|
56
|
+
* around its `st-input` trigger). The projected control has no form control of its own, so it takes
|
|
57
|
+
* the field's `required` and `invalid` state from here.
|
|
58
|
+
*/
|
|
59
|
+
class FormFieldA11yScope {
|
|
60
|
+
/** The wrapping field's state. */
|
|
61
|
+
field = signal(null);
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormFieldA11yScope, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
63
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormFieldA11yScope });
|
|
64
|
+
}
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormFieldA11yScope, decorators: [{
|
|
66
|
+
type: Injectable
|
|
67
|
+
}] });
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* Resolves, for one form control:
|
|
71
|
+
* - `required`: the explicit input, then a wrapping field (for a control without a form control of its own), then the
|
|
72
|
+
* enclosing `st-form-item`, then `Validators.required`;
|
|
73
|
+
* - `invalid`: the bound control is invalid and touched or dirty (a control without one takes it from a wrapping field);
|
|
74
|
+
* - `describedBy`: the `st-form-hint` ids of the enclosing `st-form-item`, plus its `st-form-errors` ids while `invalid`.
|
|
75
|
+
*
|
|
76
|
+
* Bind `aria-invalid` to `invalid() || null` and `aria-describedby` to `describedBy()`. Call it in an injection context.
|
|
43
77
|
*/
|
|
44
78
|
function injectFormFieldA11y(source) {
|
|
45
79
|
const item = inject(FormItemComponent, { optional: true });
|
|
80
|
+
const scope = inject(FormFieldA11yScope, { optional: true, self: !!source.wrapsControl });
|
|
81
|
+
const outer = source.wrapsControl ? null : scope;
|
|
82
|
+
const control = computed(() => source.control() ?? null);
|
|
83
|
+
// `touched` and `dirty` are plain properties: `control.events` is what tells a signal they changed.
|
|
84
|
+
let eventCount = 0;
|
|
85
|
+
const controlEvents = toSignal(toObservable(control).pipe(switchMap((current) => (current ? current.events.pipe(map(() => ++eventCount)) : EMPTY))), {
|
|
86
|
+
initialValue: 0,
|
|
87
|
+
});
|
|
46
88
|
const required = computed(() => {
|
|
47
|
-
const explicit = source.required()
|
|
89
|
+
const explicit = source.required();
|
|
48
90
|
if (explicit !== undefined)
|
|
49
91
|
return explicit;
|
|
92
|
+
const current = control();
|
|
93
|
+
const wrapping = current ? null : outer?.field();
|
|
94
|
+
if (wrapping)
|
|
95
|
+
return wrapping.required();
|
|
96
|
+
const fromItem = item?.required();
|
|
97
|
+
if (fromItem !== undefined)
|
|
98
|
+
return fromItem;
|
|
50
99
|
source.status?.();
|
|
51
|
-
|
|
100
|
+
controlEvents();
|
|
101
|
+
return current?.hasValidator(Validators.required) ?? false;
|
|
102
|
+
});
|
|
103
|
+
const invalid = computed(() => {
|
|
104
|
+
const current = control();
|
|
105
|
+
if (!current)
|
|
106
|
+
return outer?.field()?.invalid() ?? false;
|
|
107
|
+
source.status?.();
|
|
108
|
+
controlEvents();
|
|
109
|
+
return current.invalid && (current.touched || current.dirty);
|
|
110
|
+
});
|
|
111
|
+
const describedBy = computed(() => {
|
|
112
|
+
const ids = [item?.describedBy(), ...(invalid() ? (item?.errorIds() ?? []) : [])].filter(Boolean);
|
|
113
|
+
return ids.length ? ids.join(' ') : null;
|
|
52
114
|
});
|
|
53
|
-
const
|
|
54
|
-
|
|
115
|
+
const state = { required, invalid, describedBy };
|
|
116
|
+
if (source.wrapsControl)
|
|
117
|
+
scope?.field.set(state);
|
|
118
|
+
return state;
|
|
55
119
|
}
|
|
56
120
|
|
|
57
121
|
/**
|
|
58
122
|
* Generated bundle index. Do not edit.
|
|
59
123
|
*/
|
|
60
124
|
|
|
61
|
-
export { FormItemComponent, injectFormFieldA11y, optionalBooleanAttribute };
|
|
125
|
+
export { FormFieldA11yScope, FormItemComponent, injectFormFieldA11y, optionalBooleanAttribute };
|
|
62
126
|
//# sourceMappingURL=sixbell-telco-sdk-components-forms-form-item.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-forms-form-item.mjs","sources":["../../../projects/sdk/components/forms/form-item/src/form-item.component.ts","../../../projects/sdk/components/forms/form-item/src/form-item.component.html","../../../projects/sdk/components/forms/form-item/sixbell-telco-sdk-components-forms-form-item.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, inject, input, signal, Signal } from '@angular/core';\nimport { AbstractControl, Validators } from '@angular/forms';\n\n/** `booleanAttribute` that keeps `undefined`/`null` as \"not set\", for tri-state flags. */\nexport const optionalBooleanAttribute = (value: unknown): boolean | undefined =>\n\tvalue === undefined || value === null ? undefined : booleanAttribute(value);\n\n/**\n * A layout wrapper for one form field: the control, its `st-form-hint` and its `st-form-errors`.\n *\n * @remarks\n * It is also the field context: controls inside it read `required` from here, and every\n * `st-form-hint` inside it is linked to the control through `aria-describedby`.\n */\n@Component({\n\tselector: 'st-form-item',\n\tstandalone: true,\n\thost: {\n\t\tclass: 'block w-full',\n\t},\n\ttemplateUrl: './form-item.component.html',\n})\nexport class FormItemComponent {\n\t/**\n\t * Mark the field as required. When not set, the control detects `Validators.required` on its form control.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\tprivate readonly hints = signal<readonly string[]>([]);\n\n\t/** Ids of the hints inside this item, space separated, or `null` when there are none. */\n\treadonly describedBy = computed(() => (this.hints().length ? this.hints().join(' ') : null));\n\n\t/** @internal Called by `st-form-hint`. */\n\tregisterHint(id: string): void {\n\t\tthis.hints.update((ids) => (ids.includes(id) ? ids : [...ids, id]));\n\t}\n\n\t/** @internal Called by `st-form-hint`. */\n\tunregisterHint(id: string): void {\n\t\tthis.hints.update((ids) => ids.filter((existing) => existing !== id));\n\t}\n}\n\n/** Sources a form control passes to `injectFormFieldA11y`. */\nexport interface FormFieldA11ySource {\n\t/** The control's own `required` input (`undefined` when not set). */\n\trequired: () => boolean | undefined;\n\t/** The bound reactive form control, if any. */\n\tcontrol: () => AbstractControl | null | undefined;\n\t/** A signal that changes when the control status changes, so validator changes are picked up. */\n\tstatus?: () => unknown;\n}\n\n/** Required state and hint ids for a form control. */\nexport interface FormFieldA11y {\n\t/** Whether the field shows the required marker and is announced as required. */\n\trequired: Signal<boolean>;\n\t/** Value for the control's `aria-describedby`. */\n\tdescribedBy: Signal<string | null>;\n}\n\n/**\n * @internal\n * Resolves the required state (explicit input, then the enclosing `st-form-item`, then `Validators.required`)\n * and the hint ids for a form control. Call it in an injection context.\n */\nexport function injectFormFieldA11y(source: FormFieldA11ySource): FormFieldA11y {\n\tconst item = inject(FormItemComponent, { optional: true });\n\n\tconst required = computed(() => {\n\t\tconst explicit = source.required() ?? item?.required();\n\t\tif (explicit !== undefined) return explicit;\n\t\tsource.status?.();\n\t\treturn source.control()?.hasValidator(Validators.required) ?? false;\n\t});\n\n\tconst describedBy = computed(() => item?.describedBy() ?? null);\n\n\treturn { required, describedBy };\n}\n","<div class=\"flex w-full flex-col items-start gap-1\">\n\t<ng-content select=\":not(st-form-errors)\"></ng-content>\n\t<div class=\"w-full\">\n\t\t<ng-content select=\"st-form-errors\"></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAGA;AACO,MAAM,wBAAwB,GAAG,CAAC,KAAc,KACtD,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,GAAG,SAAS,GAAG,gBAAgB,CAAC,KAAK;AAE3E;;;;;;AAMG;MASU,iBAAiB,CAAA;AAC7B;;AAEG;IACH,QAAQ,GAAG,KAAK,CAA+B,SAAS,EAAE,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC;AAEjF,IAAA,KAAK,GAAG,MAAM,CAAoB,EAAE,CAAC;;AAG7C,IAAA,WAAW,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;;AAG5F,IAAA,YAAY,CAAC,EAAU,EAAA;AACtB,QAAA,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;IACpE;;AAGA,IAAA,cAAc,CAAC,EAAU,EAAA;QACxB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,QAAQ,KAAK,QAAQ,KAAK,EAAE,CAAC,CAAC;IACtE;wGAnBY,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,+PCtB9B,4NAMA,EAAA,CAAA;;4FDgBa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;+BACC,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,IAAA,EACV;AACL,wBAAA,KAAK,EAAE,cAAc;AACrB,qBAAA,EAAA,QAAA,EAAA,4NAAA,EAAA;;AA2CF;;;;AAIG;AACG,SAAU,mBAAmB,CAAC,MAA2B,EAAA;AAC9D,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE1D,IAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAK;QAC9B,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE,QAAQ,EAAE;QACtD,IAAI,QAAQ,KAAK,SAAS;AAAE,YAAA,OAAO,QAAQ;AAC3C,QAAA,MAAM,CAAC,MAAM,IAAI;AACjB,QAAA,OAAO,MAAM,CAAC,OAAO,EAAE,EAAE,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,KAAK;AACpE,IAAA,CAAC,CAAC;AAEF,IAAA,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,EAAE,WAAW,EAAE,IAAI,IAAI,CAAC;AAE/D,IAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE;AACjC;;AEhFA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-forms-form-item.mjs","sources":["../../../projects/sdk/components/forms/form-item/src/form-item.component.ts","../../../projects/sdk/components/forms/form-item/src/form-item.component.html","../../../projects/sdk/components/forms/form-item/sixbell-telco-sdk-components-forms-form-item.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, inject, Injectable, input, signal, Signal } from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { AbstractControl, Validators } from '@angular/forms';\nimport { EMPTY, map, switchMap } from 'rxjs';\n\n/** `booleanAttribute` that keeps `undefined`/`null` as \"not set\", for tri-state flags. */\nexport const optionalBooleanAttribute = (value: unknown): boolean | undefined =>\n\tvalue === undefined || value === null ? undefined : booleanAttribute(value);\n\n/**\n * A layout wrapper for one form field: the control, its `st-form-hint` and its `st-form-errors`.\n *\n * @remarks\n * It is also the field context: controls inside it read `required` from here, every\n * `st-form-hint` inside it is linked to the control through `aria-describedby`, and so is the\n * `st-form-errors` message while the control is invalid and touched or dirty.\n */\n@Component({\n\tselector: 'st-form-item',\n\tstandalone: true,\n\thost: {\n\t\tclass: 'block w-full',\n\t},\n\ttemplateUrl: './form-item.component.html',\n})\nexport class FormItemComponent {\n\t/**\n\t * Mark the field as required. When not set, the control detects `Validators.required` on its form control.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\tprivate readonly hints = signal<readonly string[]>([]);\n\tprivate readonly errors = signal<readonly string[]>([]);\n\n\t/** Ids of the hints inside this item, space separated, or `null` when there are none. */\n\treadonly describedBy = computed(() => (this.hints().length ? this.hints().join(' ') : null));\n\n\t/** @internal Called by `st-form-hint`. */\n\tregisterHint(id: string): void {\n\t\tthis.hints.update((ids) => (ids.includes(id) ? ids : [...ids, id]));\n\t}\n\n\t/** @internal Called by `st-form-hint`. */\n\tunregisterHint(id: string): void {\n\t\tthis.hints.update((ids) => ids.filter((existing) => existing !== id));\n\t}\n\n\t/** @internal Ids of the `st-form-errors` messages inside this item. */\n\treadonly errorIds = this.errors.asReadonly();\n\n\t/** @internal Called by `st-form-errors`. */\n\tregisterError(id: string): void {\n\t\tthis.errors.update((ids) => (ids.includes(id) ? ids : [...ids, id]));\n\t}\n\n\t/** @internal Called by `st-form-errors`. */\n\tunregisterError(id: string): void {\n\t\tthis.errors.update((ids) => ids.filter((existing) => existing !== id));\n\t}\n}\n\n/**\n * @internal\n * Provided by a field that wraps a projected kit control instead of rendering its own (`st-datepicker`\n * around its `st-input` trigger). The projected control has no form control of its own, so it takes\n * the field's `required` and `invalid` state from here.\n */\n@Injectable()\nexport class FormFieldA11yScope {\n\t/** The wrapping field's state. */\n\treadonly field = signal<FormFieldA11y | null>(null);\n}\n\n/** Sources a form control passes to `injectFormFieldA11y`. */\nexport interface FormFieldA11ySource {\n\t/** The control's own `required` input (`undefined` when not set). */\n\trequired: () => boolean | undefined;\n\t/** The bound reactive form control, if any. */\n\tcontrol: () => AbstractControl | null | undefined;\n\t/** A signal that changes when the control status changes, so validator changes are picked up. */\n\tstatus?: () => unknown;\n\t/**\n\t * Set by a field that wraps a projected kit control (`st-datepicker`): it then shares its state\n\t * through the `FormFieldA11yScope` it provides.\n\t */\n\twrapsControl?: boolean;\n}\n\n/** Required, invalid and description state for a form control. */\nexport interface FormFieldA11y {\n\t/** Whether the field shows the required marker and is announced as required. */\n\trequired: Signal<boolean>;\n\t/** Whether the control is invalid and touched or dirty: the value for `aria-invalid`. */\n\tinvalid: Signal<boolean>;\n\t/** Value for the control's `aria-describedby`: the hint ids, then the error ids while `invalid`. */\n\tdescribedBy: Signal<string | null>;\n}\n\n/**\n * @internal\n * Resolves, for one form control:\n * - `required`: the explicit input, then a wrapping field (for a control without a form control of its own), then the\n * enclosing `st-form-item`, then `Validators.required`;\n * - `invalid`: the bound control is invalid and touched or dirty (a control without one takes it from a wrapping field);\n * - `describedBy`: the `st-form-hint` ids of the enclosing `st-form-item`, plus its `st-form-errors` ids while `invalid`.\n *\n * Bind `aria-invalid` to `invalid() || null` and `aria-describedby` to `describedBy()`. Call it in an injection context.\n */\nexport function injectFormFieldA11y(source: FormFieldA11ySource): FormFieldA11y {\n\tconst item = inject(FormItemComponent, { optional: true });\n\tconst scope = inject(FormFieldA11yScope, { optional: true, self: !!source.wrapsControl });\n\tconst outer = source.wrapsControl ? null : scope;\n\n\tconst control = computed(() => source.control() ?? null);\n\t// `touched` and `dirty` are plain properties: `control.events` is what tells a signal they changed.\n\tlet eventCount = 0;\n\tconst controlEvents = toSignal(\n\t\ttoObservable(control).pipe(switchMap((current) => (current ? current.events.pipe(map(() => ++eventCount)) : EMPTY))),\n\t\t{\n\t\t\tinitialValue: 0,\n\t\t},\n\t);\n\n\tconst required = computed(() => {\n\t\tconst explicit = source.required();\n\t\tif (explicit !== undefined) return explicit;\n\t\tconst current = control();\n\t\tconst wrapping = current ? null : outer?.field();\n\t\tif (wrapping) return wrapping.required();\n\t\tconst fromItem = item?.required();\n\t\tif (fromItem !== undefined) return fromItem;\n\t\tsource.status?.();\n\t\tcontrolEvents();\n\t\treturn current?.hasValidator(Validators.required) ?? false;\n\t});\n\n\tconst invalid = computed(() => {\n\t\tconst current = control();\n\t\tif (!current) return outer?.field()?.invalid() ?? false;\n\t\tsource.status?.();\n\t\tcontrolEvents();\n\t\treturn current.invalid && (current.touched || current.dirty);\n\t});\n\n\tconst describedBy = computed(() => {\n\t\tconst ids = [item?.describedBy(), ...(invalid() ? (item?.errorIds() ?? []) : [])].filter(Boolean);\n\t\treturn ids.length ? ids.join(' ') : null;\n\t});\n\n\tconst state: FormFieldA11y = { required, invalid, describedBy };\n\tif (source.wrapsControl) scope?.field.set(state);\n\treturn state;\n}\n","<div class=\"flex w-full flex-col items-start gap-1\">\n\t<ng-content select=\":not(st-form-errors)\"></ng-content>\n\t<div class=\"w-full\">\n\t\t<ng-content select=\"st-form-errors\"></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA;AACO,MAAM,wBAAwB,GAAG,CAAC,KAAc,KACtD,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,GAAG,SAAS,GAAG,gBAAgB,CAAC,KAAK;AAE3E;;;;;;;AAOG;MASU,iBAAiB,CAAA;AAC7B;;AAEG;IACH,QAAQ,GAAG,KAAK,CAA+B,SAAS,EAAE,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC;AAEjF,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AE,IAAI,OAAO,EAAE,IAAI,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;AACjG,QAAA,OAAO,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI;AACzC,IAAA,CAAC,CAAC;IAEF,MAAM,KAAK,GAAkB,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE;IAC/D,IAAI,MAAM,CAAC,YAAY;AAAE,QAAA,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AAChD,IAAA,OAAO,KAAK;AACb;;AExJA;;AAEG;;;;"}
|
|
@@ -153,6 +153,16 @@ class InputComponent {
|
|
|
153
153
|
* @defaultValue false
|
|
154
154
|
*/
|
|
155
155
|
onlyNumbers = input(false, { transform: booleanAttribute });
|
|
156
|
+
/**
|
|
157
|
+
* With `onlyNumbers`, also accept a single leading `-`
|
|
158
|
+
* @defaultValue false
|
|
159
|
+
*/
|
|
160
|
+
onlyNumbersAllowNegative = input(false, { transform: booleanAttribute });
|
|
161
|
+
/**
|
|
162
|
+
* With `onlyNumbers`, also accept a single `.` as decimal separator after at least one digit
|
|
163
|
+
* @defaultValue false
|
|
164
|
+
*/
|
|
165
|
+
onlyNumbersAllowDecimal = input(false, { transform: booleanAttribute });
|
|
156
166
|
/**
|
|
157
167
|
* Whether to use ghost (transparent) styling
|
|
158
168
|
* @defaultValue false
|
|
@@ -375,13 +385,13 @@ class InputComponent {
|
|
|
375
385
|
});
|
|
376
386
|
}
|
|
377
387
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
378
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, showOptional: { classPropertyName: "showOptional", publicName: "showOptional", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, passwordToggle: { classPropertyName: "passwordToggle", publicName: "passwordToggle", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, focus: { classPropertyName: "focus", publicName: "focus", isSignal: true, isRequired: false, transformFunction: null }, onlyNumbers: { classPropertyName: "onlyNumbers", publicName: "onlyNumbers", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", keyDownEnter: "keyDownEnter", triggered: "triggered", clicked: "clicked", blurred: "blurred", valueDebounced: "valueDebounced" }, providers: [
|
|
388
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, showOptional: { classPropertyName: "showOptional", publicName: "showOptional", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, passwordToggle: { classPropertyName: "passwordToggle", publicName: "passwordToggle", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, focus: { classPropertyName: "focus", publicName: "focus", isSignal: true, isRequired: false, transformFunction: null }, onlyNumbers: { classPropertyName: "onlyNumbers", publicName: "onlyNumbers", isSignal: true, isRequired: false, transformFunction: null }, onlyNumbersAllowNegative: { classPropertyName: "onlyNumbersAllowNegative", publicName: "onlyNumbersAllowNegative", isSignal: true, isRequired: false, transformFunction: null }, onlyNumbersAllowDecimal: { classPropertyName: "onlyNumbersAllowDecimal", publicName: "onlyNumbersAllowDecimal", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", keyDownEnter: "keyDownEnter", triggered: "triggered", clicked: "clicked", blurred: "blurred", valueDebounced: "valueDebounced" }, providers: [
|
|
379
389
|
{
|
|
380
390
|
provide: NG_VALUE_ACCESSOR,
|
|
381
391
|
useExisting: InputComponent,
|
|
382
392
|
multi: true,
|
|
383
393
|
},
|
|
384
|
-
], ngImport: i0, template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"placeholder-base-content-muted w-full grow\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t[type]=\"nativeType()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[stOnlyNumbers]=\"onlyNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\n\t\t@if (showPasswordToggle()) {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tdata-st-password-toggle\n\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t[attr.aria-label]=\"passwordToggleLabel()\"\n\t\t\t\t[attr.aria-controls]=\"resolvedId()\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(click)=\"togglePasswordVisibility()\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"passwordVisible() ? iconHidePassword : iconShowPassword\"></st-icon>\n\t\t\t</button>\n\t\t}\n\t</div>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: AutofocusDirective, selector: "[stAutofocus]", inputs: ["focus"] }, { kind: "directive", type: OnlyNumbersDirective, selector: "[stOnlyNumbers]", inputs: ["stOnlyNumbers"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }] });
|
|
394
|
+
], ngImport: i0, template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"placeholder-base-content-muted w-full grow\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-invalid]=\"fieldA11y.invalid() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t[type]=\"nativeType()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[stOnlyNumbers]=\"onlyNumbers()\"\n\t\t\t[stOnlyNumbersAllowNegative]=\"onlyNumbersAllowNegative()\"\n\t\t\t[stOnlyNumbersAllowDecimal]=\"onlyNumbersAllowDecimal()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\n\t\t@if (showPasswordToggle()) {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tdata-st-password-toggle\n\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t[attr.aria-label]=\"passwordToggleLabel()\"\n\t\t\t\t[attr.aria-controls]=\"resolvedId()\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(click)=\"togglePasswordVisibility()\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"passwordVisible() ? iconHidePassword : iconShowPassword\"></st-icon>\n\t\t\t</button>\n\t\t}\n\t</div>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: AutofocusDirective, selector: "[stAutofocus]", inputs: ["focus"] }, { kind: "directive", type: OnlyNumbersDirective, selector: "[stOnlyNumbers]", inputs: ["stOnlyNumbers", "stOnlyNumbersAllowNegative", "stOnlyNumbersAllowDecimal"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }] });
|
|
385
395
|
}
|
|
386
396
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: InputComponent, decorators: [{
|
|
387
397
|
type: Component,
|
|
@@ -391,7 +401,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
391
401
|
useExisting: InputComponent,
|
|
392
402
|
multi: true,
|
|
393
403
|
},
|
|
394
|
-
], template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"placeholder-base-content-muted w-full grow\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t[type]=\"nativeType()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[stOnlyNumbers]=\"onlyNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\n\t\t@if (showPasswordToggle()) {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tdata-st-password-toggle\n\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t[attr.aria-label]=\"passwordToggleLabel()\"\n\t\t\t\t[attr.aria-controls]=\"resolvedId()\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(click)=\"togglePasswordVisibility()\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"passwordVisible() ? iconHidePassword : iconShowPassword\"></st-icon>\n\t\t\t</button>\n\t\t}\n\t</div>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n" }]
|
|
404
|
+
], template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"placeholder-base-content-muted w-full grow\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-invalid]=\"fieldA11y.invalid() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t[type]=\"nativeType()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[stOnlyNumbers]=\"onlyNumbers()\"\n\t\t\t[stOnlyNumbersAllowNegative]=\"onlyNumbersAllowNegative()\"\n\t\t\t[stOnlyNumbersAllowDecimal]=\"onlyNumbersAllowDecimal()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\n\t\t@if (showPasswordToggle()) {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tdata-st-password-toggle\n\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t[attr.aria-label]=\"passwordToggleLabel()\"\n\t\t\t\t[attr.aria-controls]=\"resolvedId()\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(click)=\"togglePasswordVisibility()\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"passwordVisible() ? iconHidePassword : iconShowPassword\"></st-icon>\n\t\t\t</button>\n\t\t}\n\t</div>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n" }]
|
|
395
405
|
}], ctorParameters: () => [] });
|
|
396
406
|
|
|
397
407
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/input-content/input-content.component.ts","../../../projects/sdk/components/forms/input/input-content/input-content.component.html","../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\ntype InputContentAligment = 'start' | 'end';\n\n@Component({\n\tselector: 'st-input-content',\n\timports: [CommonModule],\n\ttemplateUrl: './input-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputContentComponent {\n\talignment = input.required<InputContentAligment>();\n}\n","@let alignmentVar = alignment();\n\n<!-- <div [class]=\"aligmentVar === 'start' ? 'st-input-content-left' : 'st-input-content-right'\">\n\t<ng-content></ng-content>\n</div> -->\n<!-- input-content.component.html -->\n<div class=\"inline-flex items-center align-top\" [class.justify-start]=\"alignmentVar === 'start'\" [class.justify-end]=\"alignmentVar === 'end'\">\n\t<ng-content></ng-content>\n</div>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { booleanAttribute, Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { injectFormFieldA11y, optionalBooleanAttribute } from '@sixbell-telco/sdk/components/forms/form-item';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matVisibilityOffOutline, matVisibilityOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { AutofocusDirective } from '@sixbell-telco/sdk/directives/auto-focus';\nimport { OnlyNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { distinctUntilChanged, map, skip, startWith, Subject, switchMap, timer } from 'rxjs';\n\n/**\n * @internal\n * Generates base input classes with style variants using class-variance-authority\n */\nconst inputComponent = cva(['font-body', 'w-full', 'input', 'leading-normal', 'grow', 'rounded-field'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['input-primary'],\n\t\t\tsecondary: ['input-secondary'],\n\t\t\ttertiary: ['input-tertiary'],\n\t\t\taccent: ['input-accent'],\n\t\t\tinfo: ['input-info'],\n\t\t\tsuccess: ['input-success'],\n\t\t\twarning: ['input-warning'],\n\t\t\terror: ['input-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['input-xs'],\n\t\t\tsm: ['input-sm'],\n\t\t\tmd: ['input-md'],\n\t\t\tlg: ['input-lg'],\n\t\t\txl: ['input-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible input style variants */\nexport type InputVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible input size variants */\nexport type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for input styling */\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tsize?: InputSizeProps;\n};\n\n/** Native HTML input types supported by the component */\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\nlet nextInputId = 0;\n\n/**\n * A customizable input component with validation, debouncing, and styling variants\n *\n * @remarks\n * Implements ControlValueAccessor for seamless integration with Angular forms.\n * Supports both template-driven and reactive forms, with automatic validation styling.\n *\n * @example\n * ```html\n * <!-- Basic usage -->\n * <st-input label=\"Username\" [(value)]=\"username\"></st-input>\n * ```\n *\n * @example\n * ```html\n * <!-- With validation and custom styling -->\n * <st-input\n * variant=\"secondary\"\n * size=\"lg\"\n * label=\"Email\"\n * type=\"email\"\n * [parentForm]=\"userForm\"\n * formControlName=\"email\"\n * ></st-input>\n * ```\n */\n@Component({\n\tselector: 'st-input',\n\timports: [FormsModule, AutofocusDirective, OnlyNumbersDirective, TranslatePipe, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n})\nexport class InputComponent implements ControlValueAccessor {\n\t/**\n\t * Input style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<InputVariantProps>('base');\n\n\t/**\n\t * Input size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<InputSizeProps>('md');\n\n\t/**\n\t * Label text displayed above the input\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * Whether to show optional indicator\n\t * @defaultValue false\n\t */\n\tshowOptional = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Optional indicator text (translation key or literal)\n\t * @defaultValue 'sdk.formFields.optional'\n\t */\n\toptionalText = input<string>('sdk.formFields.optional');\n\n\t/**\n\t * Mark the field as required: shows the `*` marker and announces the field as required.\n\t * When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\t/** @internal Required state and hint ids from the enclosing `st-form-item`. */\n\tprotected readonly fieldA11y = injectFormFieldA11y({\n\t\trequired: () => this.required(),\n\t\tcontrol: () => this.formControl(),\n\t\tstatus: () => this.statusSignal(),\n\t});\n\n\t/**\n\t * HTML input type\n\t * @defaultValue 'text'\n\t */\n\ttype = input<HTMLNativeInputType>('text');\n\n\t/**\n\t * HTML name attribute for the input\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Id of the inner `<input>`, used by its label. A unique id is generated when omitted.\n\t */\n\tinputId = input<string | null>(null);\n\n\t/**\n\t * Show a built-in button that reveals or hides the value when `type` is `password`\n\t * @defaultValue false\n\t */\n\tpasswordToggle = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Input placeholder text\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Whether the input is read-only\n\t * @defaultValue false\n\t */\n\treadonly = input(false, { transform: booleanAttribute });\n\n\tfocus = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to restrict input to numeric characters only\n\t * @defaultValue false\n\t */\n\tonlyNumbers = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Two-way bindable input value\n\t */\n\tvalue = model<string>('');\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t// ControlValueAccessor implementation\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the input is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (Enter)\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted when input loses focus\n\t */\n\tblurred = output<string>();\n\n\t/**\n\t * Event emitted with debounced value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/**\n\t * Debounce time in milliseconds for value changes\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t// Internal implementation details\n\tprivate blurTrigger = signal(0);\n\tprivate debounceAction$ = new Subject<number>();\n\tprivate debounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\tprivate value$ = toObservable(this.value);\n\n\tprivate readonly generatedId = `st-input-${nextInputId++}`;\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Whether the password value is currently shown as plain text */\n\tprotected readonly passwordVisible = signal(false);\n\n\t/** @internal Id applied to the inner input and referenced by its label */\n\tprotected readonly resolvedId = computed(() => this.inputId() || this.generatedId);\n\n\t/** @internal Whether the built-in password reveal button is rendered */\n\tprotected readonly showPasswordToggle = computed(() => this.passwordToggle() && this.type() === 'password');\n\n\t/** @internal Native type applied to the inner input */\n\tprotected readonly nativeType = computed(() => (this.showPasswordToggle() && this.passwordVisible() ? 'text' : this.type()));\n\n\t/** @internal Name of the icon-only password reveal button */\n\tprotected readonly passwordToggleLabel = computed(() =>\n\t\tthis.passwordVisible()\n\t\t\t? this.translateLabel({ key: 'sdk.input.hidePassword', fallback: 'Hide password' })\n\t\t\t: this.translateLabel({ key: 'sdk.input.showPassword', fallback: 'Show password' }),\n\t);\n\n\t/** @internal */\n\tprotected readonly iconShowPassword = matVisibilityOutline;\n\t/** @internal */\n\tprotected readonly iconHidePassword = matVisibilityOffOutline;\n\n\tconstructor() {\n\t\tthis.setupDebounce();\n\t}\n\n\t/** @internal Toggles password visibility */\n\ttogglePasswordVisibility(): void {\n\t\tthis.passwordVisible.update((visible) => !visible);\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base input classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed error state classes\n\t */\n\terrorClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed success state classes\n\t */\n\tsuccessClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t// ControlValueAccessor implementation methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles input value changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t/** @internal */\n\tprivate formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Reactive validation class computation\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * @internal\n\t * Sets up debounced value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1),\n\t\t\t\t\t\t// switchMap + timer instead of debounceTime: debounceTime flushes its pending value when the source completes, while here takeUntilDestroyed unsubscribes and the pending timer is dropped\n\t\t\t\t\t\tswitchMap((value) => timer(time).pipe(map(() => value))),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.valueDebounced.emit(`${value}`);\n\t\t\t});\n\t}\n}\n","@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"placeholder-base-content-muted w-full grow\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t[type]=\"nativeType()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[stOnlyNumbers]=\"onlyNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\n\t\t@if (showPasswordToggle()) {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tdata-st-password-toggle\n\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t[attr.aria-label]=\"passwordToggleLabel()\"\n\t\t\t\t[attr.aria-controls]=\"resolvedId()\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(click)=\"togglePasswordVisibility()\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"passwordVisible() ? iconHidePassword : iconShowPassword\"></st-icon>\n\t\t\t</button>\n\t\t}\n\t</div>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAWa,qBAAqB,CAAA;AACjC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAwB;wGADtC,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXlC,sZASA,EAAA,YAAA,EAAA,CAA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AE,aAAa,EAAE,aAAa,CAAC,EAAA,SAAA,EACnF;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,cAAgB;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,+tEAAA,EAAA;;;AEpGF;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/input-content/input-content.component.ts","../../../projects/sdk/components/forms/input/input-content/input-content.component.html","../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\ntype InputContentAligment = 'start' | 'end';\n\n@Component({\n\tselector: 'st-input-content',\n\timports: [CommonModule],\n\ttemplateUrl: './input-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputContentComponent {\n\talignment = input.required<InputContentAligment>();\n}\n","@let alignmentVar = alignment();\n\n<!-- <div [class]=\"aligmentVar === 'start' ? 'st-input-content-left' : 'st-input-content-right'\">\n\t<ng-content></ng-content>\n</div> -->\n<!-- input-content.component.html -->\n<div class=\"inline-flex items-center align-top\" [class.justify-start]=\"alignmentVar === 'start'\" [class.justify-end]=\"alignmentVar === 'end'\">\n\t<ng-content></ng-content>\n</div>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { booleanAttribute, Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { injectFormFieldA11y, optionalBooleanAttribute } from '@sixbell-telco/sdk/components/forms/form-item';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matVisibilityOffOutline, matVisibilityOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { AutofocusDirective } from '@sixbell-telco/sdk/directives/auto-focus';\nimport { OnlyNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { distinctUntilChanged, map, skip, startWith, Subject, switchMap, timer } from 'rxjs';\n\n/**\n * @internal\n * Generates base input classes with style variants using class-variance-authority\n */\nconst inputComponent = cva(['font-body', 'w-full', 'input', 'leading-normal', 'grow', 'rounded-field'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['input-primary'],\n\t\t\tsecondary: ['input-secondary'],\n\t\t\ttertiary: ['input-tertiary'],\n\t\t\taccent: ['input-accent'],\n\t\t\tinfo: ['input-info'],\n\t\t\tsuccess: ['input-success'],\n\t\t\twarning: ['input-warning'],\n\t\t\terror: ['input-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['input-xs'],\n\t\t\tsm: ['input-sm'],\n\t\t\tmd: ['input-md'],\n\t\t\tlg: ['input-lg'],\n\t\t\txl: ['input-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible input style variants */\nexport type InputVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible input size variants */\nexport type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for input styling */\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tsize?: InputSizeProps;\n};\n\n/** Native HTML input types supported by the component */\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\nlet nextInputId = 0;\n\n/**\n * A customizable input component with validation, debouncing, and styling variants\n *\n * @remarks\n * Implements ControlValueAccessor for seamless integration with Angular forms.\n * Supports both template-driven and reactive forms, with automatic validation styling.\n *\n * @example\n * ```html\n * <!-- Basic usage -->\n * <st-input label=\"Username\" [(value)]=\"username\"></st-input>\n * ```\n *\n * @example\n * ```html\n * <!-- With validation and custom styling -->\n * <st-input\n * variant=\"secondary\"\n * size=\"lg\"\n * label=\"Email\"\n * type=\"email\"\n * [parentForm]=\"userForm\"\n * formControlName=\"email\"\n * ></st-input>\n * ```\n */\n@Component({\n\tselector: 'st-input',\n\timports: [FormsModule, AutofocusDirective, OnlyNumbersDirective, TranslatePipe, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n})\nexport class InputComponent implements ControlValueAccessor {\n\t/**\n\t * Input style variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<InputVariantProps>('base');\n\n\t/**\n\t * Input size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<InputSizeProps>('md');\n\n\t/**\n\t * Label text displayed above the input\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * Whether to show optional indicator\n\t * @defaultValue false\n\t */\n\tshowOptional = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Optional indicator text (translation key or literal)\n\t * @defaultValue 'sdk.formFields.optional'\n\t */\n\toptionalText = input<string>('sdk.formFields.optional');\n\n\t/**\n\t * Mark the field as required: shows the `*` marker and announces the field as required.\n\t * When not set, the enclosing `st-form-item` `required`, then `Validators.required` on the bound control decide.\n\t */\n\trequired = input<boolean | undefined, unknown>(undefined, { transform: optionalBooleanAttribute });\n\n\t/** @internal Required state and hint ids from the enclosing `st-form-item`. */\n\tprotected readonly fieldA11y = injectFormFieldA11y({\n\t\trequired: () => this.required(),\n\t\tcontrol: () => this.formControl(),\n\t\tstatus: () => this.statusSignal(),\n\t});\n\n\t/**\n\t * HTML input type\n\t * @defaultValue 'text'\n\t */\n\ttype = input<HTMLNativeInputType>('text');\n\n\t/**\n\t * HTML name attribute for the input\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Id of the inner `<input>`, used by its label. A unique id is generated when omitted.\n\t */\n\tinputId = input<string | null>(null);\n\n\t/**\n\t * Show a built-in button that reveals or hides the value when `type` is `password`\n\t * @defaultValue false\n\t */\n\tpasswordToggle = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Input placeholder text\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Whether the input is read-only\n\t * @defaultValue false\n\t */\n\treadonly = input(false, { transform: booleanAttribute });\n\n\tfocus = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to restrict input to numeric characters only\n\t * @defaultValue false\n\t */\n\tonlyNumbers = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * With `onlyNumbers`, also accept a single leading `-`\n\t * @defaultValue false\n\t */\n\tonlyNumbersAllowNegative = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * With `onlyNumbers`, also accept a single `.` as decimal separator after at least one digit\n\t * @defaultValue false\n\t */\n\tonlyNumbersAllowDecimal = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Two-way bindable input value\n\t */\n\tvalue = model<string>('');\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t// ControlValueAccessor implementation\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the input is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (Enter)\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted when input loses focus\n\t */\n\tblurred = output<string>();\n\n\t/**\n\t * Event emitted with debounced value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/**\n\t * Debounce time in milliseconds for value changes\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t// Internal implementation details\n\tprivate blurTrigger = signal(0);\n\tprivate debounceAction$ = new Subject<number>();\n\tprivate debounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\tprivate value$ = toObservable(this.value);\n\n\tprivate readonly generatedId = `st-input-${nextInputId++}`;\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Whether the password value is currently shown as plain text */\n\tprotected readonly passwordVisible = signal(false);\n\n\t/** @internal Id applied to the inner input and referenced by its label */\n\tprotected readonly resolvedId = computed(() => this.inputId() || this.generatedId);\n\n\t/** @internal Whether the built-in password reveal button is rendered */\n\tprotected readonly showPasswordToggle = computed(() => this.passwordToggle() && this.type() === 'password');\n\n\t/** @internal Native type applied to the inner input */\n\tprotected readonly nativeType = computed(() => (this.showPasswordToggle() && this.passwordVisible() ? 'text' : this.type()));\n\n\t/** @internal Name of the icon-only password reveal button */\n\tprotected readonly passwordToggleLabel = computed(() =>\n\t\tthis.passwordVisible()\n\t\t\t? this.translateLabel({ key: 'sdk.input.hidePassword', fallback: 'Hide password' })\n\t\t\t: this.translateLabel({ key: 'sdk.input.showPassword', fallback: 'Show password' }),\n\t);\n\n\t/** @internal */\n\tprotected readonly iconShowPassword = matVisibilityOutline;\n\t/** @internal */\n\tprotected readonly iconHidePassword = matVisibilityOffOutline;\n\n\tconstructor() {\n\t\tthis.setupDebounce();\n\t}\n\n\t/** @internal Toggles password visibility */\n\ttogglePasswordVisibility(): void {\n\t\tthis.passwordVisible.update((visible) => !visible);\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base input classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed error state classes\n\t */\n\terrorClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed success state classes\n\t */\n\tsuccessClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t// ControlValueAccessor implementation methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles input value changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t/** @internal */\n\tprivate formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Reactive validation class computation\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * @internal\n\t * Sets up debounced value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1),\n\t\t\t\t\t\t// switchMap + timer instead of debounceTime: debounceTime flushes its pending value when the source completes, while here takeUntilDestroyed unsubscribes and the pending timer is dropped\n\t\t\t\t\t\tswitchMap((value) => timer(time).pipe(map(() => value))),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.valueDebounced.emit(`${value}`);\n\t\t\t});\n\t}\n}\n","@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body w-full items-center justify-between gap-2 pt-0 font-normal text-pretty\">\n\t\t\t<span\n\t\t\t\t>{{ labelVar }}\n\t\t\t\t@if (fieldA11y.required()) {\n\t\t\t\t\t<span aria-hidden=\"true\" data-st-required-marker class=\"text-error-strong ms-0.5\">*</span>\n\t\t\t\t}\n\t\t\t</span>\n\t\t\t@if (showOptional()) {\n\t\t\t\t<span class=\"label font-body text-xs font-normal\">{{ optionalText() | translate }}</span>\n\t\t\t}\n\t\t</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"placeholder-base-content-muted w-full grow\"\n\t\t\t[id]=\"resolvedId()\"\n\t\t\t[attr.aria-required]=\"fieldA11y.required() || null\"\n\t\t\t[attr.aria-invalid]=\"fieldA11y.invalid() || null\"\n\t\t\t[attr.aria-describedby]=\"fieldA11y.describedBy()\"\n\t\t\t[type]=\"nativeType()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keydown.enter)=\"handleEnter($event)\"\n\t\t\t(click)=\"handleClick($event)\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[stOnlyNumbers]=\"onlyNumbers()\"\n\t\t\t[stOnlyNumbersAllowNegative]=\"onlyNumbersAllowNegative()\"\n\t\t\t[stOnlyNumbersAllowDecimal]=\"onlyNumbersAllowDecimal()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\n\t\t@if (showPasswordToggle()) {\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tdata-st-password-toggle\n\t\t\t\tclass=\"btn btn-ghost btn-square shrink-0 cursor-pointer [--fontsize:1em] [--size:1.25em]\"\n\t\t\t\t[attr.aria-label]=\"passwordToggleLabel()\"\n\t\t\t\t[attr.aria-controls]=\"resolvedId()\"\n\t\t\t\t[disabled]=\"disabled()\"\n\t\t\t\t(click)=\"togglePasswordVisibility()\"\n\t\t\t>\n\t\t\t\t<st-icon [icon]=\"passwordVisible() ? iconHidePassword : iconShowPassword\"></st-icon>\n\t\t\t</button>\n\t\t}\n\t</div>\n\n\t@if (labelVar) {\n\t\t<label class=\"sr-only\" [for]=\"resolvedId()\">{{ labelVar }}</label>\n\t}\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAWa,qBAAqB,CAAA;AACjC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAwB;wGADtC,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,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