@rededor/site-front-end-lib 20.0.18 → 20.0.20
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/components/header/index.d.ts +4 -2
- package/cura/forms/cura-input-text/index.d.ts +2 -0
- package/cura/forms/cura-radio/index.d.ts +6 -1
- package/cura/forms/cura-select-state/index.d.ts +72 -0
- package/cura/forms/cura-textarea/index.d.ts +112 -0
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs +47 -14
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +56 -16
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +10 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs +123 -0
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs.map +1 -0
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs +208 -0
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs.map +1 -0
- package/package.json +9 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, input, model, output, signal, computed, forwardRef, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
6
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
|
+
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
8
|
+
import { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';
|
|
9
|
+
|
|
10
|
+
class CuraTextareaComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.curaApi = inject(CuraApiService);
|
|
13
|
+
/**
|
|
14
|
+
* Status of the textarea component
|
|
15
|
+
*/
|
|
16
|
+
this.status = input('default', ...(ngDevMode ? [{ debugName: "status" }] : []));
|
|
17
|
+
/**
|
|
18
|
+
* Size of the textarea component
|
|
19
|
+
*/
|
|
20
|
+
this.size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
21
|
+
/**
|
|
22
|
+
* Label text for the textarea
|
|
23
|
+
*/
|
|
24
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
25
|
+
/**
|
|
26
|
+
* Name attribute for the textarea
|
|
27
|
+
*/
|
|
28
|
+
this.name = input('', ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
29
|
+
/**
|
|
30
|
+
* Placeholder text for the textarea
|
|
31
|
+
*/
|
|
32
|
+
this.placeholder = input(null, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
33
|
+
/**
|
|
34
|
+
* Current value of the textarea
|
|
35
|
+
*/
|
|
36
|
+
this.value = model('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
37
|
+
/**
|
|
38
|
+
* Whether the textarea is disabled
|
|
39
|
+
*/
|
|
40
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
41
|
+
/**
|
|
42
|
+
* Whether the textarea is required
|
|
43
|
+
*/
|
|
44
|
+
this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
|
|
45
|
+
/**
|
|
46
|
+
* Whether the textarea is read-only
|
|
47
|
+
*/
|
|
48
|
+
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
49
|
+
/**
|
|
50
|
+
* Maximum length of the textarea value
|
|
51
|
+
*/
|
|
52
|
+
this.maxlength = input(undefined, ...(ngDevMode ? [{ debugName: "maxlength" }] : []));
|
|
53
|
+
/**
|
|
54
|
+
* Number of visible text rows
|
|
55
|
+
*/
|
|
56
|
+
this.rows = input(3, ...(ngDevMode ? [{ debugName: "rows" }] : []));
|
|
57
|
+
/**
|
|
58
|
+
* Resize behaviour of the textarea
|
|
59
|
+
*/
|
|
60
|
+
this.resize = input('none', ...(ngDevMode ? [{ debugName: "resize" }] : []));
|
|
61
|
+
/**
|
|
62
|
+
* Event emitted when the value changes
|
|
63
|
+
*/
|
|
64
|
+
this.valueChange = output();
|
|
65
|
+
// Internal state signals
|
|
66
|
+
this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
|
|
67
|
+
this.isFocused = signal(false, ...(ngDevMode ? [{ debugName: "isFocused" }] : []));
|
|
68
|
+
// Form control callbacks
|
|
69
|
+
this.onChange = (value) => { };
|
|
70
|
+
this.onTouched = () => { };
|
|
71
|
+
// Computed styles
|
|
72
|
+
this.styles = computed(() => {
|
|
73
|
+
const { fonts, colors } = this.curaApi?.theme || { fonts: null, colors: null };
|
|
74
|
+
const baseStyles = {};
|
|
75
|
+
if (fonts) {
|
|
76
|
+
const fontWeights = fonts.getWeights();
|
|
77
|
+
baseStyles['--font-weight-medium'] = fontWeights.medium;
|
|
78
|
+
baseStyles['--font-weight-bold'] = fontWeights.bold;
|
|
79
|
+
baseStyles['--font-weight-regular'] = fontWeights.regular;
|
|
80
|
+
baseStyles['--font-color'] = fonts.getColor();
|
|
81
|
+
baseStyles['--font-family'] = fonts.getFamily();
|
|
82
|
+
baseStyles['--font-size'] = fonts.getSize();
|
|
83
|
+
}
|
|
84
|
+
if (colors) {
|
|
85
|
+
const colorKeys = [
|
|
86
|
+
'primary-base',
|
|
87
|
+
'neutral-purewhite',
|
|
88
|
+
'neutral-white',
|
|
89
|
+
'neutral-black',
|
|
90
|
+
'neutral-medium',
|
|
91
|
+
'neutral-base',
|
|
92
|
+
'neutral-dark',
|
|
93
|
+
'success-dark',
|
|
94
|
+
'success-darker',
|
|
95
|
+
'success-lighter',
|
|
96
|
+
'error-lighter',
|
|
97
|
+
'error-dark',
|
|
98
|
+
'error-darker',
|
|
99
|
+
'error-base',
|
|
100
|
+
'info-base',
|
|
101
|
+
];
|
|
102
|
+
colorKeys.forEach((key) => {
|
|
103
|
+
baseStyles[`--${key}`] = colors.getColor(key);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return baseStyles;
|
|
107
|
+
}, ...(ngDevMode ? [{ debugName: "styles" }] : []));
|
|
108
|
+
// Computed signals
|
|
109
|
+
this.classes = computed(() => ({
|
|
110
|
+
[this.size().toLowerCase()]: true,
|
|
111
|
+
disabled: this.disabled(),
|
|
112
|
+
isFocused: this.isFocused() && !this.disabled() && !this.readOnly(),
|
|
113
|
+
isHovered: this.isHovered(),
|
|
114
|
+
[this.status()]: true,
|
|
115
|
+
}), ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
116
|
+
this.labelColor = computed(() => {
|
|
117
|
+
if (this.disabled()) {
|
|
118
|
+
return 'neutral-medium';
|
|
119
|
+
}
|
|
120
|
+
else if ((this.isFocused() || this.isHovered() || this.status() === 'success' || this.status() === 'error') && !this.readOnly()) {
|
|
121
|
+
return 'neutral-black';
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
return 'neutral-dark';
|
|
125
|
+
}
|
|
126
|
+
}, ...(ngDevMode ? [{ debugName: "labelColor" }] : []));
|
|
127
|
+
this.helperText = computed(() => {
|
|
128
|
+
const isError = this.status() === 'error';
|
|
129
|
+
const isSuccess = this.status() === 'success';
|
|
130
|
+
const isDefault = this.status() === 'default';
|
|
131
|
+
const helperTextSize = this.size() === 'large' ? 'small' : 'xsmall';
|
|
132
|
+
const colorText = (() => {
|
|
133
|
+
if (this.disabled())
|
|
134
|
+
return 'neutral-medium';
|
|
135
|
+
if (this.isFocused() || this.isHovered())
|
|
136
|
+
return 'neutral-black';
|
|
137
|
+
return 'neutral-dark';
|
|
138
|
+
})();
|
|
139
|
+
return {
|
|
140
|
+
size: helperTextSize,
|
|
141
|
+
color: isDefault ? colorText : isError ? 'error-dark' : isSuccess ? 'success-dark' : colorText,
|
|
142
|
+
};
|
|
143
|
+
}, ...(ngDevMode ? [{ debugName: "helperText" }] : []));
|
|
144
|
+
}
|
|
145
|
+
// ControlValueAccessor implementation
|
|
146
|
+
writeValue(value) {
|
|
147
|
+
this.value.set(value ?? '');
|
|
148
|
+
}
|
|
149
|
+
registerOnChange(fn) {
|
|
150
|
+
this.onChange = fn;
|
|
151
|
+
}
|
|
152
|
+
registerOnTouched(fn) {
|
|
153
|
+
this.onTouched = fn;
|
|
154
|
+
}
|
|
155
|
+
// Event handlers
|
|
156
|
+
handleMouseEnter() {
|
|
157
|
+
this.isHovered.set(true);
|
|
158
|
+
}
|
|
159
|
+
handleMouseLeave() {
|
|
160
|
+
this.isHovered.set(false);
|
|
161
|
+
}
|
|
162
|
+
handleFocus() {
|
|
163
|
+
this.isFocused.set(true);
|
|
164
|
+
}
|
|
165
|
+
handleBlur() {
|
|
166
|
+
this.onTouched();
|
|
167
|
+
setTimeout(() => {
|
|
168
|
+
this.isFocused.set(false);
|
|
169
|
+
}, 150);
|
|
170
|
+
}
|
|
171
|
+
handleInputChange(event) {
|
|
172
|
+
const newValue = event.target.value;
|
|
173
|
+
this.value.set(newValue);
|
|
174
|
+
this.onChange(newValue);
|
|
175
|
+
this.valueChange.emit({ value: newValue });
|
|
176
|
+
}
|
|
177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraTextareaComponent, isStandalone: true, selector: "cura-textarea", inputs: { status: { classPropertyName: "status", publicName: "status", 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 }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChange: "valueChange" }, host: { attributes: { "role": "textbox" }, properties: { "attr.aria-multiline": "true", "attr.aria-disabled": "disabled()", "attr.aria-required": "required()", "attr.aria-invalid": "status() === \"error\"" } }, providers: [
|
|
179
|
+
{
|
|
180
|
+
provide: NG_VALUE_ACCESSOR,
|
|
181
|
+
useExisting: forwardRef(() => CuraTextareaComponent),
|
|
182
|
+
multi: true,
|
|
183
|
+
},
|
|
184
|
+
], ngImport: i0, template: "<div class=\"cura-input-group\" [ngClass]=\"classes()\" [style]=\"styles()\" (mouseenter)=\"handleMouseEnter()\" (mouseleave)=\"handleMouseLeave()\">\n <div class=\"input-wrapper\">\n @if (label()) {\n <cura-label class=\"label\" weight=\"bold\" [size]=\"size()\" [color]=\"labelColor()\">\n {{ label() }}\n @if (required()) {\n <span class=\"required\">*</span>\n }\n </cura-label>\n }\n\n <div class=\"cura-input-field\" [style]=\"styles()\">\n <textarea\n [attr.id]=\"name() || null\"\n [attr.name]=\"name() || null\"\n [placeholder]=\"placeholder() || ''\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n [readOnly]=\"readOnly()\"\n [attr.maxlength]=\"maxlength()\"\n [rows]=\"rows()\"\n [style.resize]=\"resize()\"\n [(ngModel)]=\"value\"\n [ngClass]=\"classes()\"\n [style]=\"styles()\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur()\"\n (input)=\"handleInputChange($event)\"\n ></textarea>\n </div>\n\n @if (helperText()) {\n <div [style]=\"styles()\" class=\"helper-text\" part=\"cura-textarea-helper\">\n <cura-label [size]=\"helperText().size\" lineHeight=\"xsmall\" [color]=\"helperText().color\">\n <ng-content></ng-content>\n </cura-label>\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-input-group{width:100%;font-family:var(--font-family);text-align:left!important}.cura-input-group cura-label{margin-bottom:8px}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group .cura-input-field{width:100%;display:flex;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;box-sizing:border-box;overflow:hidden}.cura-input-group .cura-input-field textarea{flex:1;width:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:8px 12px;line-height:20px}.cura-input-group .cura-input-field textarea::placeholder{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.success):not(.error):not(.isFocused) .cura-input-field{border-color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.success):not(.error):not(.isFocused) .cura-input-field textarea{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.success):not(.error):not(.isFocused) .cura-input-field textarea::placeholder{color:var(--neutral-dark)}.cura-input-group:focus-within .cura-input-field{border:2px solid var(--info-base)!important;background-color:var(--neutral-purewhite);outline:none}.cura-input-group:focus-within .cura-input-field textarea{color:var(--neutral-black)!important}.cura-input-group.small .cura-input-field textarea{font-size:12px;line-height:13px;letter-spacing:.72px}.cura-input-group.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.medium .cura-input-field textarea{font-size:14px;line-height:16px;letter-spacing:.56px}.cura-input-group.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.large .cura-input-field textarea{font-size:16px}.cura-input-group.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-input-group.disabled .cura-input-field textarea{color:var(--neutral-medium)}.cura-input-group.disabled .cura-input-field textarea::placeholder{color:var(--neutral-medium)}.cura-input-group.success .cura-input-field{border:2px solid var(--success-dark)!important;background-color:var(--success-lighter)!important}.cura-input-group.success .cura-input-field textarea{color:var(--success-darker)!important}.cura-input-group.success .cura-input-field textarea::placeholder{color:var(--success-darker)!important}.cura-input-group.error .cura-input-field{border:2px solid var(--error-dark)!important;background-color:var(--error-lighter)!important}.cura-input-group.error .cura-input-field textarea{color:var(--error-darker)!important}.cura-input-group.error .cura-input-field textarea::placeholder{color:var(--error-darker)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
185
|
+
}
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraTextareaComponent, decorators: [{
|
|
187
|
+
type: Component,
|
|
188
|
+
args: [{ selector: 'cura-textarea', imports: [CommonModule, FormsModule, CuraLabelComponent], host: {
|
|
189
|
+
role: 'textbox',
|
|
190
|
+
'[attr.aria-multiline]': 'true',
|
|
191
|
+
'[attr.aria-disabled]': 'disabled()',
|
|
192
|
+
'[attr.aria-required]': 'required()',
|
|
193
|
+
'[attr.aria-invalid]': 'status() === "error"',
|
|
194
|
+
}, providers: [
|
|
195
|
+
{
|
|
196
|
+
provide: NG_VALUE_ACCESSOR,
|
|
197
|
+
useExisting: forwardRef(() => CuraTextareaComponent),
|
|
198
|
+
multi: true,
|
|
199
|
+
},
|
|
200
|
+
], template: "<div class=\"cura-input-group\" [ngClass]=\"classes()\" [style]=\"styles()\" (mouseenter)=\"handleMouseEnter()\" (mouseleave)=\"handleMouseLeave()\">\n <div class=\"input-wrapper\">\n @if (label()) {\n <cura-label class=\"label\" weight=\"bold\" [size]=\"size()\" [color]=\"labelColor()\">\n {{ label() }}\n @if (required()) {\n <span class=\"required\">*</span>\n }\n </cura-label>\n }\n\n <div class=\"cura-input-field\" [style]=\"styles()\">\n <textarea\n [attr.id]=\"name() || null\"\n [attr.name]=\"name() || null\"\n [placeholder]=\"placeholder() || ''\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n [readOnly]=\"readOnly()\"\n [attr.maxlength]=\"maxlength()\"\n [rows]=\"rows()\"\n [style.resize]=\"resize()\"\n [(ngModel)]=\"value\"\n [ngClass]=\"classes()\"\n [style]=\"styles()\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur()\"\n (input)=\"handleInputChange($event)\"\n ></textarea>\n </div>\n\n @if (helperText()) {\n <div [style]=\"styles()\" class=\"helper-text\" part=\"cura-textarea-helper\">\n <cura-label [size]=\"helperText().size\" lineHeight=\"xsmall\" [color]=\"helperText().color\">\n <ng-content></ng-content>\n </cura-label>\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-input-group{width:100%;font-family:var(--font-family);text-align:left!important}.cura-input-group cura-label{margin-bottom:8px}.cura-input-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-input-group .cura-input-field{width:100%;display:flex;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:.32px;box-sizing:border-box;overflow:hidden}.cura-input-group .cura-input-field textarea{flex:1;width:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:8px 12px;line-height:20px}.cura-input-group .cura-input-field textarea::placeholder{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.success):not(.error):not(.isFocused) .cura-input-field{border-color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.success):not(.error):not(.isFocused) .cura-input-field textarea{color:var(--neutral-dark)}.cura-input-group:hover:not(.disabled):not(.success):not(.error):not(.isFocused) .cura-input-field textarea::placeholder{color:var(--neutral-dark)}.cura-input-group:focus-within .cura-input-field{border:2px solid var(--info-base)!important;background-color:var(--neutral-purewhite);outline:none}.cura-input-group:focus-within .cura-input-field textarea{color:var(--neutral-black)!important}.cura-input-group.small .cura-input-field textarea{font-size:12px;line-height:13px;letter-spacing:.72px}.cura-input-group.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.medium .cura-input-field textarea{font-size:14px;line-height:16px;letter-spacing:.56px}.cura-input-group.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.cura-input-group.large .cura-input-field textarea{font-size:16px}.cura-input-group.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.cura-input-group.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-input-group.disabled .cura-input-field textarea{color:var(--neutral-medium)}.cura-input-group.disabled .cura-input-field textarea::placeholder{color:var(--neutral-medium)}.cura-input-group.success .cura-input-field{border:2px solid var(--success-dark)!important;background-color:var(--success-lighter)!important}.cura-input-group.success .cura-input-field textarea{color:var(--success-darker)!important}.cura-input-group.success .cura-input-field textarea::placeholder{color:var(--success-darker)!important}.cura-input-group.error .cura-input-field{border:2px solid var(--error-dark)!important;background-color:var(--error-lighter)!important}.cura-input-group.error .cura-input-field textarea{color:var(--error-darker)!important}.cura-input-group.error .cura-input-field textarea::placeholder{color:var(--error-darker)!important}\n"] }]
|
|
201
|
+
}], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Generated bundle index. Do not edit.
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
export { CuraTextareaComponent };
|
|
208
|
+
//# sourceMappingURL=rededor-site-front-end-lib-cura-forms-cura-textarea.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-cura-forms-cura-textarea.mjs","sources":["../../../projects/site-front-end-lib/cura/forms/cura-textarea/cura-textarea.component.ts","../../../projects/site-front-end-lib/cura/forms/cura-textarea/cura-textarea.component.html","../../../projects/site-front-end-lib/cura/forms/cura-textarea/rededor-site-front-end-lib-cura-forms-cura-textarea.ts"],"sourcesContent":["import { Component, input, output, signal, computed, inject, forwardRef, model } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\nimport { LabelSize } from '@rededor/site-front-end-lib/cura/forms';\nimport { TextareaSize, TextareaStatus, TextareaResize, TextareaValueChangeEvent } from './cura-textarea.definitions';\n\n@Component({\n selector: 'cura-textarea',\n imports: [CommonModule, FormsModule, CuraLabelComponent],\n templateUrl: './cura-textarea.component.html',\n styleUrls: ['./cura-textarea.component.scss'],\n host: {\n role: 'textbox',\n '[attr.aria-multiline]': 'true',\n '[attr.aria-disabled]': 'disabled()',\n '[attr.aria-required]': 'required()',\n '[attr.aria-invalid]': 'status() === \"error\"',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CuraTextareaComponent),\n multi: true,\n },\n ],\n})\nexport class CuraTextareaComponent implements ControlValueAccessor {\n private curaApi: CuraApiService = inject(CuraApiService);\n\n /**\n * Status of the textarea component\n */\n status = input<TextareaStatus>('default');\n\n /**\n * Size of the textarea component\n */\n size = input<TextareaSize>('medium');\n\n /**\n * Label text for the textarea\n */\n label = input<string>('');\n\n /**\n * Name attribute for the textarea\n */\n name = input<string>('');\n\n /**\n * Placeholder text for the textarea\n */\n placeholder = input<string | null>(null);\n\n /**\n * Current value of the textarea\n */\n value = model<string>('');\n\n /**\n * Whether the textarea is disabled\n */\n disabled = input<boolean>(false);\n\n /**\n * Whether the textarea is required\n */\n required = input<boolean>(false);\n\n /**\n * Whether the textarea is read-only\n */\n readOnly = input<boolean>(false);\n\n /**\n * Maximum length of the textarea value\n */\n maxlength = input<number | undefined>(undefined);\n\n /**\n * Number of visible text rows\n */\n rows = input<number>(3);\n\n /**\n * Resize behaviour of the textarea\n */\n resize = input<TextareaResize>('none');\n\n /**\n * Event emitted when the value changes\n */\n valueChange = output<TextareaValueChangeEvent>();\n\n // Internal state signals\n private isHovered = signal<boolean>(false);\n private isFocused = signal<boolean>(false);\n\n // Form control callbacks\n private onChange = (value: string) => {};\n private onTouched = () => {};\n\n // ControlValueAccessor implementation\n writeValue(value: string): void {\n this.value.set(value ?? '');\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n // Computed styles\n styles = computed(() => {\n const { fonts, colors } = this.curaApi?.theme || { fonts: null, colors: null };\n\n const baseStyles: { [key: string]: string } = {};\n\n if (fonts) {\n const fontWeights = fonts.getWeights();\n baseStyles['--font-weight-medium'] = fontWeights.medium;\n baseStyles['--font-weight-bold'] = fontWeights.bold;\n baseStyles['--font-weight-regular'] = fontWeights.regular;\n baseStyles['--font-color'] = fonts.getColor();\n baseStyles['--font-family'] = fonts.getFamily();\n baseStyles['--font-size'] = fonts.getSize();\n }\n\n if (colors) {\n const colorKeys = [\n 'primary-base',\n 'neutral-purewhite',\n 'neutral-white',\n 'neutral-black',\n 'neutral-medium',\n 'neutral-base',\n 'neutral-dark',\n 'success-dark',\n 'success-darker',\n 'success-lighter',\n 'error-lighter',\n 'error-dark',\n 'error-darker',\n 'error-base',\n 'info-base',\n ];\n\n colorKeys.forEach((key) => {\n baseStyles[`--${key}`] = colors.getColor(key);\n });\n }\n\n return baseStyles;\n });\n\n // Computed signals\n classes = computed(() => ({\n [this.size().toLowerCase()]: true,\n disabled: this.disabled(),\n isFocused: this.isFocused() && !this.disabled() && !this.readOnly(),\n isHovered: this.isHovered(),\n [this.status()]: true,\n }));\n\n labelColor = computed(() => {\n if (this.disabled()) {\n return 'neutral-medium';\n } else if ((this.isFocused() || this.isHovered() || this.status() === 'success' || this.status() === 'error') && !this.readOnly()) {\n return 'neutral-black';\n } else {\n return 'neutral-dark';\n }\n });\n\n helperText = computed((): { size: LabelSize; color: string } => {\n const isError = this.status() === 'error';\n const isSuccess = this.status() === 'success';\n const isDefault = this.status() === 'default';\n const helperTextSize: LabelSize = this.size() === 'large' ? 'small' : 'xsmall';\n\n const colorText = (() => {\n if (this.disabled()) return 'neutral-medium';\n if (this.isFocused() || this.isHovered()) return 'neutral-black';\n return 'neutral-dark';\n })();\n\n return {\n size: helperTextSize,\n color: isDefault ? colorText : isError ? 'error-dark' : isSuccess ? 'success-dark' : colorText,\n };\n });\n\n // Event handlers\n handleMouseEnter(): void {\n this.isHovered.set(true);\n }\n\n handleMouseLeave(): void {\n this.isHovered.set(false);\n }\n\n handleFocus(): void {\n this.isFocused.set(true);\n }\n\n handleBlur(): void {\n this.onTouched();\n setTimeout(() => {\n this.isFocused.set(false);\n }, 150);\n }\n\n handleInputChange(event: Event): void {\n const newValue = (event.target as HTMLTextAreaElement).value;\n this.value.set(newValue);\n this.onChange(newValue);\n this.valueChange.emit({ value: newValue });\n }\n}\n","<div class=\"cura-input-group\" [ngClass]=\"classes()\" [style]=\"styles()\" (mouseenter)=\"handleMouseEnter()\" (mouseleave)=\"handleMouseLeave()\">\n <div class=\"input-wrapper\">\n @if (label()) {\n <cura-label class=\"label\" weight=\"bold\" [size]=\"size()\" [color]=\"labelColor()\">\n {{ label() }}\n @if (required()) {\n <span class=\"required\">*</span>\n }\n </cura-label>\n }\n\n <div class=\"cura-input-field\" [style]=\"styles()\">\n <textarea\n [attr.id]=\"name() || null\"\n [attr.name]=\"name() || null\"\n [placeholder]=\"placeholder() || ''\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n [readOnly]=\"readOnly()\"\n [attr.maxlength]=\"maxlength()\"\n [rows]=\"rows()\"\n [style.resize]=\"resize()\"\n [(ngModel)]=\"value\"\n [ngClass]=\"classes()\"\n [style]=\"styles()\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur()\"\n (input)=\"handleInputChange($event)\"\n ></textarea>\n </div>\n\n @if (helperText()) {\n <div [style]=\"styles()\" class=\"helper-text\" part=\"cura-textarea-helper\">\n <cura-label [size]=\"helperText().size\" lineHeight=\"xsmall\" [color]=\"helperText().color\">\n <ng-content></ng-content>\n </cura-label>\n </div>\n }\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MA4Ba,qBAAqB,CAAA;AApBlC,IAAA,WAAA,GAAA;AAqBU,QAAA,IAAA,CAAA,OAAO,GAAmB,MAAM,CAAC,cAAc,CAAC;AAExD;;AAEG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAiB,SAAS,kDAAC;AAEzC;;AAEG;AACH,QAAA,IAAA,CAAA,I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ED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rededor/site-front-end-lib",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.20",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.0.0",
|
|
6
6
|
"@angular/core": "^20.0.0",
|
|
@@ -261,10 +261,18 @@
|
|
|
261
261
|
"types": "./cura/forms/cura-select-option/index.d.ts",
|
|
262
262
|
"default": "./fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs"
|
|
263
263
|
},
|
|
264
|
+
"./cura/forms/cura-select-state": {
|
|
265
|
+
"types": "./cura/forms/cura-select-state/index.d.ts",
|
|
266
|
+
"default": "./fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs"
|
|
267
|
+
},
|
|
264
268
|
"./cura/forms/cura-switch": {
|
|
265
269
|
"types": "./cura/forms/cura-switch/index.d.ts",
|
|
266
270
|
"default": "./fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs"
|
|
267
271
|
},
|
|
272
|
+
"./cura/forms/cura-textarea": {
|
|
273
|
+
"types": "./cura/forms/cura-textarea/index.d.ts",
|
|
274
|
+
"default": "./fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs"
|
|
275
|
+
},
|
|
268
276
|
"./cura/icons/cura-icon": {
|
|
269
277
|
"types": "./cura/icons/cura-icon/index.d.ts",
|
|
270
278
|
"default": "./fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs"
|