@rededor/site-front-end-lib 20.0.39 → 20.1.0-alpha.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/components/algolia-search/index.d.ts +1 -1
- package/components/filters/filter-generic/index.d.ts +3 -3
- package/components/filters/filter-planos-convenios/index.d.ts +3 -2
- package/components/footer/index.d.ts +1 -1
- package/components/header/index.d.ts +1 -1
- package/core/index.d.ts +3 -4
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +6 -6
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs +6 -6
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +13 -13
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +14 -14
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +1 -1
- 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 +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +2 -2
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-core.mjs +1 -0
- package/fesm2022/rededor-site-front-end-lib-core.mjs.map +1 -1
- package/package.json +2 -133
- package/cura/accordion/index.d.ts +0 -120
- package/cura/api/index.d.ts +0 -359
- package/cura/badges/cura-badge-counter/index.d.ts +0 -38
- package/cura/badges/cura-badge-distance/index.d.ts +0 -21
- package/cura/badges/cura-badge-dot/index.d.ts +0 -29
- package/cura/badges/cura-badge-pill/index.d.ts +0 -42
- package/cura/badges/index.d.ts +0 -5
- package/cura/buttons/cura-button/index.d.ts +0 -90
- package/cura/buttons/cura-button-outline/index.d.ts +0 -90
- package/cura/buttons/cura-button-select/index.d.ts +0 -39
- package/cura/buttons/cura-button-transparent/index.d.ts +0 -87
- package/cura/buttons/index.d.ts +0 -15
- package/cura/cards/cura-card/index.d.ts +0 -49
- package/cura/feedback/cura-alert/index.d.ts +0 -55
- package/cura/feedback/cura-modal/index.d.ts +0 -97
- package/cura/feedback/cura-toast/index.d.ts +0 -104
- package/cura/forms/cura-checkbox/index.d.ts +0 -160
- package/cura/forms/cura-input-text/index.d.ts +0 -236
- package/cura/forms/cura-label/index.d.ts +0 -47
- package/cura/forms/cura-radio/index.d.ts +0 -148
- package/cura/forms/cura-select/index.d.ts +0 -154
- package/cura/forms/cura-select-option/index.d.ts +0 -54
- package/cura/forms/cura-select-state/index.d.ts +0 -72
- package/cura/forms/cura-switch/index.d.ts +0 -113
- package/cura/forms/cura-textarea/index.d.ts +0 -113
- package/cura/forms/index.d.ts +0 -20
- package/cura/icons/cura-icon/index.d.ts +0 -46
- package/cura/loaders/cura-loader-bar/index.d.ts +0 -22
- package/cura/loaders/cura-loader-circle/index.d.ts +0 -24
- package/cura/texts/cura-display/index.d.ts +0 -54
- package/cura/texts/cura-heading/index.d.ts +0 -65
- package/cura/texts/cura-paragraph/index.d.ts +0 -54
- package/cura/texts/index.d.ts +0 -7
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +0 -252
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +0 -643
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +0 -90
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +0 -55
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +0 -66
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +0 -91
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs +0 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +0 -170
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +0 -135
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +0 -161
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +0 -170
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs +0 -13
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +0 -72
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +0 -90
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +0 -105
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs +0 -198
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +0 -262
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +0 -586
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +0 -82
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +0 -243
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +0 -89
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs +0 -123
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-state.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +0 -365
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +0 -182
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs +0 -209
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-textarea.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs +0 -21
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +0 -88
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +0 -44
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +0 -49
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +0 -84
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +0 -104
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +0 -89
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs +0 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs.map +0 -1
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { TextOverflow } from '@rededor/site-front-end-lib/cura/forms';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Radio size types
|
|
7
|
-
*/
|
|
8
|
-
type RadioSize = 'small' | 'medium' | 'large';
|
|
9
|
-
/**
|
|
10
|
-
* Radio position types
|
|
11
|
-
*/
|
|
12
|
-
type RadioPosition = 'left' | 'right';
|
|
13
|
-
/**
|
|
14
|
-
* Radio background types
|
|
15
|
-
*/
|
|
16
|
-
type RadioBackground = 'dark' | 'light';
|
|
17
|
-
/**
|
|
18
|
-
* Radio status types
|
|
19
|
-
*/
|
|
20
|
-
type RadioStatus = 'error' | 'success' | 'default';
|
|
21
|
-
/**
|
|
22
|
-
* Radio configuration interface
|
|
23
|
-
*/
|
|
24
|
-
interface RadioConfig {
|
|
25
|
-
checked?: boolean;
|
|
26
|
-
status?: RadioStatus;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
required?: boolean;
|
|
29
|
-
label?: string;
|
|
30
|
-
tabindex?: number;
|
|
31
|
-
position?: RadioPosition;
|
|
32
|
-
value?: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
background?: RadioBackground;
|
|
35
|
-
size?: RadioSize;
|
|
36
|
-
color?: string;
|
|
37
|
-
isSquare?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Radio change event interface
|
|
41
|
-
*/
|
|
42
|
-
interface RadioChangeEvent {
|
|
43
|
-
value: string;
|
|
44
|
-
checked: boolean;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare class CuraRadioComponent implements ControlValueAccessor {
|
|
48
|
-
private curaApi;
|
|
49
|
-
/**
|
|
50
|
-
* Reflects the checked state of the radio button.
|
|
51
|
-
*/
|
|
52
|
-
checked: _angular_core.ModelSignal<boolean>;
|
|
53
|
-
/**
|
|
54
|
-
* Status of the radio button.
|
|
55
|
-
*/
|
|
56
|
-
status: _angular_core.InputSignal<RadioStatus>;
|
|
57
|
-
/**
|
|
58
|
-
* Reflects the disabled state of the radio button.
|
|
59
|
-
*/
|
|
60
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
61
|
-
/**
|
|
62
|
-
* Reflects the required state of the radio button.
|
|
63
|
-
*/
|
|
64
|
-
required: _angular_core.InputSignal<boolean>;
|
|
65
|
-
/**
|
|
66
|
-
* Text label associated with the radio button.
|
|
67
|
-
*/
|
|
68
|
-
label: _angular_core.InputSignal<string>;
|
|
69
|
-
/**
|
|
70
|
-
* Specifies the tabindex of the radio button.
|
|
71
|
-
*/
|
|
72
|
-
ontabindex: _angular_core.InputSignal<number>;
|
|
73
|
-
/**
|
|
74
|
-
* Position of the label relative to the radio button.
|
|
75
|
-
*/
|
|
76
|
-
position: _angular_core.InputSignal<RadioPosition>;
|
|
77
|
-
/**
|
|
78
|
-
* Value associated with the radio button.
|
|
79
|
-
*/
|
|
80
|
-
value: _angular_core.ModelSignal<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Name attribute of the radio button.
|
|
83
|
-
*/
|
|
84
|
-
name: _angular_core.InputSignal<string>;
|
|
85
|
-
/**
|
|
86
|
-
* Background theme of the radio button.
|
|
87
|
-
*/
|
|
88
|
-
background: _angular_core.InputSignal<RadioBackground>;
|
|
89
|
-
/**
|
|
90
|
-
* Size of the radio button.
|
|
91
|
-
*/
|
|
92
|
-
size: _angular_core.InputSignal<RadioSize>;
|
|
93
|
-
/**
|
|
94
|
-
* Color theme of the radio button.
|
|
95
|
-
*/
|
|
96
|
-
color: _angular_core.InputSignal<string>;
|
|
97
|
-
/**
|
|
98
|
-
* When true, renders the radio button as a square instead of a circle.
|
|
99
|
-
*/
|
|
100
|
-
isSquare: _angular_core.InputSignal<boolean>;
|
|
101
|
-
/**
|
|
102
|
-
* Controls how the label text should handle overflow.
|
|
103
|
-
* - `'none'`: No overflow handling; the label displays normally.
|
|
104
|
-
* - `'single'`: The label will be truncated with an ellipsis if it overflows a single line.
|
|
105
|
-
* - `string`: Custom overflow handling mode.
|
|
106
|
-
*
|
|
107
|
-
* @default 'none'
|
|
108
|
-
*/
|
|
109
|
-
overflowLabel: _angular_core.InputSignal<TextOverflow>;
|
|
110
|
-
/**
|
|
111
|
-
* Controls how the helper text should handle overflow.
|
|
112
|
-
* - `'none'`: No overflow handling; the label displays normally.
|
|
113
|
-
* - `'single'`: The label will be truncated with an ellipsis if it overflows a single line.
|
|
114
|
-
* - `string`: Custom overflow handling mode.
|
|
115
|
-
*
|
|
116
|
-
* @default 'none'
|
|
117
|
-
*/
|
|
118
|
-
overflowHelper: _angular_core.InputSignal<TextOverflow>;
|
|
119
|
-
/**
|
|
120
|
-
* Change event emitter
|
|
121
|
-
*/
|
|
122
|
-
onchange: _angular_core.OutputEmitterRef<RadioChangeEvent>;
|
|
123
|
-
private onChange;
|
|
124
|
-
private onTouched;
|
|
125
|
-
private sizes;
|
|
126
|
-
private colorConfig;
|
|
127
|
-
labelColor: _angular_core.Signal<string>;
|
|
128
|
-
messageColor: _angular_core.Signal<string>;
|
|
129
|
-
labelSize: _angular_core.Signal<"medium" | "xsmall">;
|
|
130
|
-
labelClasses: _angular_core.Signal<string>;
|
|
131
|
-
messageClasses: _angular_core.Signal<string>;
|
|
132
|
-
containerClasses: _angular_core.Signal<string>;
|
|
133
|
-
styles: _angular_core.Signal<{
|
|
134
|
-
'--size-after': string;
|
|
135
|
-
'--size': string;
|
|
136
|
-
'--gap': string;
|
|
137
|
-
}>;
|
|
138
|
-
writeValue(value: string): void;
|
|
139
|
-
registerOnChange(fn: (value: string) => void): void;
|
|
140
|
-
registerOnTouched(fn: () => void): void;
|
|
141
|
-
private isDarkBackground;
|
|
142
|
-
handleClick(): void;
|
|
143
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraRadioComponent, never>;
|
|
144
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraRadioComponent, "cura-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "ontabindex": { "alias": "ontabindex"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "isSquare": { "alias": "isSquare"; "required": false; "isSignal": true; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; "isSignal": true; }; "overflowHelper": { "alias": "overflowHelper"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "value": "valueChange"; "onchange": "onchange"; }, never, ["*"], true, never>;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export { CuraRadioComponent };
|
|
148
|
-
export type { RadioBackground, RadioChangeEvent, RadioConfig, RadioPosition, RadioSize, RadioStatus };
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import { CuraSelectOptionComponent } from '@rededor/site-front-end-lib/cura/forms/cura-select-option';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Display mode options for the select component
|
|
8
|
-
*/
|
|
9
|
-
type SelectMode = 'default' | 'transparent';
|
|
10
|
-
/**
|
|
11
|
-
* Size options for the select component
|
|
12
|
-
*/
|
|
13
|
-
type SelectSize = 'small' | 'medium' | 'large';
|
|
14
|
-
/**
|
|
15
|
-
* Status options for the select component
|
|
16
|
-
*/
|
|
17
|
-
type SelectStatus = 'success' | 'error' | 'default';
|
|
18
|
-
/**
|
|
19
|
-
* Event payload emitted when an option is selected
|
|
20
|
-
*/
|
|
21
|
-
interface SelectSelectedEvent {
|
|
22
|
-
/**
|
|
23
|
-
* The value of the selected option
|
|
24
|
-
*/
|
|
25
|
-
value: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Event payload emitted when search term changes
|
|
29
|
-
*/
|
|
30
|
-
interface SelectSearchEvent {
|
|
31
|
-
/**
|
|
32
|
-
* The search term entered by the user
|
|
33
|
-
*/
|
|
34
|
-
searchTerm: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare class CuraSelectComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
38
|
-
private curaApi;
|
|
39
|
-
private elementRef;
|
|
40
|
-
private platformId;
|
|
41
|
-
name: _angular_core.InputSignal<string>;
|
|
42
|
-
/**
|
|
43
|
-
* The label text for the select component
|
|
44
|
-
*/
|
|
45
|
-
label: _angular_core.InputSignal<string>;
|
|
46
|
-
/**
|
|
47
|
-
* Placeholder text for the input field
|
|
48
|
-
*/
|
|
49
|
-
placeholder: _angular_core.InputSignal<string>;
|
|
50
|
-
/**
|
|
51
|
-
* Current value of the select component
|
|
52
|
-
*/
|
|
53
|
-
value: _angular_core.ModelSignal<any>;
|
|
54
|
-
/**
|
|
55
|
-
* Display mode of the select component
|
|
56
|
-
*/
|
|
57
|
-
mode: _angular_core.InputSignal<SelectMode>;
|
|
58
|
-
/**
|
|
59
|
-
* Size of the select component
|
|
60
|
-
*/
|
|
61
|
-
size: _angular_core.InputSignal<SelectSize>;
|
|
62
|
-
/**
|
|
63
|
-
* Icon name for the select component
|
|
64
|
-
*/
|
|
65
|
-
iconName: _angular_core.InputSignal<string | undefined>;
|
|
66
|
-
/**
|
|
67
|
-
* Status of the select component
|
|
68
|
-
*/
|
|
69
|
-
status: _angular_core.InputSignal<SelectStatus>;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the select component is disabled
|
|
72
|
-
*/
|
|
73
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
74
|
-
/**
|
|
75
|
-
* Whether the select component is required
|
|
76
|
-
*/
|
|
77
|
-
required: _angular_core.InputSignal<boolean>;
|
|
78
|
-
/**
|
|
79
|
-
* Enable/Disable search at options by term
|
|
80
|
-
*/
|
|
81
|
-
searchBehavior: _angular_core.InputSignal<boolean>;
|
|
82
|
-
/**
|
|
83
|
-
* The search will be sensitive to accents
|
|
84
|
-
*/
|
|
85
|
-
caseSensitive: _angular_core.InputSignal<boolean>;
|
|
86
|
-
/**
|
|
87
|
-
* CSS max-height property for dropdown item.
|
|
88
|
-
* Can also be used by css property --max-height.
|
|
89
|
-
* Default: 285px
|
|
90
|
-
*/
|
|
91
|
-
maxHeight: _angular_core.InputSignal<string>;
|
|
92
|
-
/**
|
|
93
|
-
* Event emitted when an option is selected
|
|
94
|
-
*/
|
|
95
|
-
selected: _angular_core.OutputEmitterRef<SelectSelectedEvent>;
|
|
96
|
-
/**
|
|
97
|
-
* Event emitted when search term changes
|
|
98
|
-
*/
|
|
99
|
-
searchTermInput: _angular_core.OutputEmitterRef<SelectSearchEvent>;
|
|
100
|
-
isHovered: _angular_core.WritableSignal<boolean>;
|
|
101
|
-
isFocused: _angular_core.WritableSignal<boolean>;
|
|
102
|
-
isOpen: _angular_core.WritableSignal<boolean>;
|
|
103
|
-
activeIndex: _angular_core.WritableSignal<number>;
|
|
104
|
-
textInput: _angular_core.WritableSignal<any>;
|
|
105
|
-
private componentId;
|
|
106
|
-
private onChange;
|
|
107
|
-
private onTouched;
|
|
108
|
-
inputElement: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
109
|
-
options: _angular_core.Signal<readonly CuraSelectOptionComponent[]>;
|
|
110
|
-
currentIconName: _angular_core.Signal<string>;
|
|
111
|
-
private colorConfig;
|
|
112
|
-
containerClasses: _angular_core.Signal<{
|
|
113
|
-
[x: string]: boolean;
|
|
114
|
-
wrapper: boolean;
|
|
115
|
-
label: boolean;
|
|
116
|
-
disabled: boolean;
|
|
117
|
-
transparent: boolean;
|
|
118
|
-
}>;
|
|
119
|
-
labelColor: _angular_core.Signal<string>;
|
|
120
|
-
textColor: _angular_core.Signal<string>;
|
|
121
|
-
iconColor: _angular_core.Signal<string>;
|
|
122
|
-
listboxId: _angular_core.Signal<string>;
|
|
123
|
-
activeOptionId: _angular_core.Signal<string>;
|
|
124
|
-
styles: _angular_core.Signal<{
|
|
125
|
-
[key: string]: string;
|
|
126
|
-
}>;
|
|
127
|
-
constructor();
|
|
128
|
-
ngAfterViewInit(): void;
|
|
129
|
-
ngOnDestroy(): void;
|
|
130
|
-
writeValue(value: string): void;
|
|
131
|
-
registerOnChange(fn: (value: string) => void): void;
|
|
132
|
-
registerOnTouched(fn: () => void): void;
|
|
133
|
-
private getTextColor;
|
|
134
|
-
private initializeOptions;
|
|
135
|
-
private selectOption;
|
|
136
|
-
private removeAccents;
|
|
137
|
-
private filterOptions;
|
|
138
|
-
handleKeyNavigation(event: KeyboardEvent): void;
|
|
139
|
-
private updateActiveIndex;
|
|
140
|
-
handleInputChange(event: Event): void;
|
|
141
|
-
handleClick(event: MouseEvent): void;
|
|
142
|
-
private updateOptionHighlights;
|
|
143
|
-
/**
|
|
144
|
-
* Controla o clique fora do componente
|
|
145
|
-
*/
|
|
146
|
-
private addOutsideClickListener;
|
|
147
|
-
private removeOutsideClickListener;
|
|
148
|
-
private handleClickOutside;
|
|
149
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraSelectComponent, never>;
|
|
150
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraSelectComponent, "cura-select", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "searchBehavior": { "alias": "searchBehavior"; "required": false; "isSignal": true; }; "caseSensitive": { "alias": "caseSensitive"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selected": "selected"; "searchTermInput": "searchTermInput"; }, ["options"], ["*", "cura-select-option"], true, never>;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export { CuraSelectComponent };
|
|
154
|
-
export type { SelectMode, SelectSearchEvent, SelectSelectedEvent, SelectSize, SelectStatus };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Size options for the select option component
|
|
6
|
-
*/
|
|
7
|
-
type SelectOptionSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
8
|
-
/**
|
|
9
|
-
* Interface for size mapping configuration
|
|
10
|
-
*/
|
|
11
|
-
interface SelectOptionSizeConfig {
|
|
12
|
-
label: 'xsmall' | 'small' | 'medium';
|
|
13
|
-
icon: number | string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare class CuraSelectOptionComponent {
|
|
17
|
-
private curaApi;
|
|
18
|
-
elementRef: ElementRef<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Value associated with the select option
|
|
21
|
-
*/
|
|
22
|
-
value: _angular_core.InputSignal<any>;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the option is selected
|
|
25
|
-
*/
|
|
26
|
-
selected: _angular_core.ModelSignal<boolean>;
|
|
27
|
-
/**
|
|
28
|
-
* Whether the option is active (highlighted)
|
|
29
|
-
*/
|
|
30
|
-
active: _angular_core.ModelSignal<boolean>;
|
|
31
|
-
/**
|
|
32
|
-
* Size of the select option
|
|
33
|
-
*/
|
|
34
|
-
size: _angular_core.ModelSignal<SelectOptionSize>;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the option is visible (for search filtering)
|
|
37
|
-
*/
|
|
38
|
-
visible: _angular_core.ModelSignal<boolean>;
|
|
39
|
-
/**
|
|
40
|
-
* Unique ID for the option (for accessibility)
|
|
41
|
-
*/
|
|
42
|
-
private componentId;
|
|
43
|
-
optionId: _angular_core.Signal<string>;
|
|
44
|
-
internalSize: _angular_core.Signal<SelectOptionSizeConfig>;
|
|
45
|
-
styles: _angular_core.Signal<{
|
|
46
|
-
[key: string]: string;
|
|
47
|
-
}>;
|
|
48
|
-
classes: _angular_core.Signal<string>;
|
|
49
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraSelectOptionComponent, never>;
|
|
50
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraSelectOptionComponent, "cura-select-option", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "active": "activeChange"; "size": "sizeChange"; "visible": "visibleChange"; }, never, ["*"], true, never>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { CuraSelectOptionComponent };
|
|
54
|
-
export type { SelectOptionSize, SelectOptionSizeConfig };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { SelectSize, SelectStatus, SelectSelectedEvent } from '@rededor/site-front-end-lib/cura/forms/cura-select';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Display mode for the state labels shown in the dropdown
|
|
7
|
-
*/
|
|
8
|
-
type StateDisplayMode = 'full' | 'abbreviation';
|
|
9
|
-
/**
|
|
10
|
-
* Represents a Brazilian state option
|
|
11
|
-
*/
|
|
12
|
-
interface BrazilianState {
|
|
13
|
-
/**
|
|
14
|
-
* Two-letter state abbreviation (e.g. 'SP')
|
|
15
|
-
*/
|
|
16
|
-
value: string;
|
|
17
|
-
/**
|
|
18
|
-
* Display label, either the full name or the abbreviation depending on displayMode
|
|
19
|
-
*/
|
|
20
|
-
label: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare class CuraSelectStateComponent implements ControlValueAccessor {
|
|
24
|
-
/**
|
|
25
|
-
* Label displayed above the select
|
|
26
|
-
*/
|
|
27
|
-
label: _angular_core.InputSignal<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Placeholder text shown when no option is selected
|
|
30
|
-
*/
|
|
31
|
-
placeholder: _angular_core.InputSignal<string>;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the field is required
|
|
34
|
-
*/
|
|
35
|
-
required: _angular_core.InputSignal<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the field is disabled
|
|
38
|
-
*/
|
|
39
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* Size variant of the select
|
|
42
|
-
*/
|
|
43
|
-
size: _angular_core.InputSignal<SelectSize>;
|
|
44
|
-
/**
|
|
45
|
-
* Validation status of the select
|
|
46
|
-
*/
|
|
47
|
-
status: _angular_core.InputSignal<SelectStatus>;
|
|
48
|
-
/**
|
|
49
|
-
* Controls whether options display the full state name or only the two-letter abbreviation
|
|
50
|
-
*/
|
|
51
|
-
displayMode: _angular_core.InputSignal<StateDisplayMode>;
|
|
52
|
-
/**
|
|
53
|
-
* Two-way binding for the current selected state value (two-letter code)
|
|
54
|
-
*/
|
|
55
|
-
value: _angular_core.ModelSignal<string>;
|
|
56
|
-
/**
|
|
57
|
-
* Emitted when the user selects a state
|
|
58
|
-
*/
|
|
59
|
-
selected: _angular_core.OutputEmitterRef<SelectSelectedEvent>;
|
|
60
|
-
states: _angular_core.Signal<BrazilianState[]>;
|
|
61
|
-
private onChange;
|
|
62
|
-
private onTouched;
|
|
63
|
-
handleSelected(event: SelectSelectedEvent): void;
|
|
64
|
-
writeValue(value: string): void;
|
|
65
|
-
registerOnChange(fn: (value: string) => void): void;
|
|
66
|
-
registerOnTouched(fn: () => void): void;
|
|
67
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraSelectStateComponent, never>;
|
|
68
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraSelectStateComponent, "cura-select-state", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "displayMode": { "alias": "displayMode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selected": "selected"; }, never, never, true, never>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { CuraSelectStateComponent };
|
|
72
|
-
export type { BrazilianState, StateDisplayMode };
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { TextOverflow } from '@rededor/site-front-end-lib/cura/forms';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Switch size types
|
|
7
|
-
*/
|
|
8
|
-
type SwitchSize = 'small' | 'medium' | 'large';
|
|
9
|
-
/**
|
|
10
|
-
* Switch position types
|
|
11
|
-
*/
|
|
12
|
-
type SwitchPosition = 'left' | 'right';
|
|
13
|
-
/**
|
|
14
|
-
* Switch background types
|
|
15
|
-
*/
|
|
16
|
-
type SwitchBackground = 'dark' | 'light';
|
|
17
|
-
/**
|
|
18
|
-
* Switch configuration interface
|
|
19
|
-
*/
|
|
20
|
-
interface SwitchConfig {
|
|
21
|
-
checked?: boolean;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
label?: string;
|
|
24
|
-
tabindex?: number;
|
|
25
|
-
position?: SwitchPosition;
|
|
26
|
-
size?: SwitchSize;
|
|
27
|
-
background?: SwitchBackground;
|
|
28
|
-
color?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Switch change event interface
|
|
32
|
-
*/
|
|
33
|
-
interface SwitchChangeEvent {
|
|
34
|
-
checked: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare class CuraSwitchComponent implements ControlValueAccessor {
|
|
38
|
-
private curaApi;
|
|
39
|
-
/**
|
|
40
|
-
* Indicates whether the switch is checked or not.
|
|
41
|
-
*/
|
|
42
|
-
checked: _angular_core.ModelSignal<boolean>;
|
|
43
|
-
/**
|
|
44
|
-
* Indicates whether the switch is disabled or not.
|
|
45
|
-
*/
|
|
46
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* The label text to display next to the switch.
|
|
49
|
-
*/
|
|
50
|
-
label: _angular_core.InputSignal<string>;
|
|
51
|
-
/**
|
|
52
|
-
* Tab index for the switch element.
|
|
53
|
-
*/
|
|
54
|
-
tabindex: _angular_core.InputSignal<number>;
|
|
55
|
-
/**
|
|
56
|
-
* Controls how the label text should handle overflow.
|
|
57
|
-
* - 'none': No overflow handling; the label displays normally.
|
|
58
|
-
* - 'single': The label will be truncated with an ellipsis if it overflows a single line.
|
|
59
|
-
* - string: Custom overflow handling mode.
|
|
60
|
-
*/
|
|
61
|
-
overflowLabel: _angular_core.InputSignal<TextOverflow>;
|
|
62
|
-
/**
|
|
63
|
-
* Controls how the helper text should handle overflow.
|
|
64
|
-
* - 'none': No overflow handling; the label displays normally.
|
|
65
|
-
* - 'single': The label will be truncated with an ellipsis if it overflows a single line.
|
|
66
|
-
* - string: Custom overflow handling mode.
|
|
67
|
-
*/
|
|
68
|
-
overflowHelper: _angular_core.InputSignal<TextOverflow>;
|
|
69
|
-
/**
|
|
70
|
-
* Position of the label relative to the switch.
|
|
71
|
-
*/
|
|
72
|
-
position: _angular_core.InputSignal<SwitchPosition>;
|
|
73
|
-
/**
|
|
74
|
-
* Size of the switch.
|
|
75
|
-
*/
|
|
76
|
-
size: _angular_core.InputSignal<SwitchSize>;
|
|
77
|
-
/**
|
|
78
|
-
* Background style of the switch.
|
|
79
|
-
*/
|
|
80
|
-
background: _angular_core.InputSignal<SwitchBackground>;
|
|
81
|
-
/**
|
|
82
|
-
* Accent color of the switch.
|
|
83
|
-
*/
|
|
84
|
-
color: _angular_core.InputSignal<string>;
|
|
85
|
-
/**
|
|
86
|
-
* Change event emitter
|
|
87
|
-
*/
|
|
88
|
-
onchange: _angular_core.OutputEmitterRef<SwitchChangeEvent>;
|
|
89
|
-
private onChange;
|
|
90
|
-
private onTouched;
|
|
91
|
-
private sizes;
|
|
92
|
-
private colorConfig;
|
|
93
|
-
containerClasses: _angular_core.Signal<string>;
|
|
94
|
-
labelColor: _angular_core.Signal<string>;
|
|
95
|
-
messageColor: _angular_core.Signal<string>;
|
|
96
|
-
labelSize: _angular_core.Signal<"medium" | "xsmall">;
|
|
97
|
-
labelTextAlign: _angular_core.Signal<"left" | "right">;
|
|
98
|
-
styles: _angular_core.Signal<{
|
|
99
|
-
'--size-track': string;
|
|
100
|
-
'--size': string;
|
|
101
|
-
'--gap': string;
|
|
102
|
-
}>;
|
|
103
|
-
writeValue(value: boolean): void;
|
|
104
|
-
registerOnChange(fn: (value: boolean) => void): void;
|
|
105
|
-
registerOnTouched(fn: () => void): void;
|
|
106
|
-
private isDarkBackground;
|
|
107
|
-
toggleSwitch(): void;
|
|
108
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraSwitchComponent, never>;
|
|
109
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraSwitchComponent, "cura-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; "isSignal": true; }; "overflowHelper": { "alias": "overflowHelper"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "onchange": "onchange"; }, never, ["*"], true, never>;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export { CuraSwitchComponent };
|
|
113
|
-
export type { SwitchBackground, SwitchChangeEvent, SwitchConfig, SwitchPosition, SwitchSize };
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { LabelSize } from '@rededor/site-front-end-lib/cura/forms';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Size options for the textarea component
|
|
7
|
-
*/
|
|
8
|
-
type TextareaSize = 'small' | 'medium' | 'large';
|
|
9
|
-
/**
|
|
10
|
-
* Status options for the textarea component
|
|
11
|
-
*/
|
|
12
|
-
type TextareaStatus = 'success' | 'error' | 'default';
|
|
13
|
-
/**
|
|
14
|
-
* Resize behaviour options for the textarea component
|
|
15
|
-
*/
|
|
16
|
-
type TextareaResize = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
17
|
-
/**
|
|
18
|
-
* Event payload emitted when the textarea value changes
|
|
19
|
-
*/
|
|
20
|
-
interface TextareaValueChangeEvent {
|
|
21
|
-
/**
|
|
22
|
-
* The new value of the textarea
|
|
23
|
-
*/
|
|
24
|
-
value: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare class CuraTextareaComponent implements ControlValueAccessor {
|
|
28
|
-
private curaApi;
|
|
29
|
-
/**
|
|
30
|
-
* Status of the textarea component
|
|
31
|
-
*/
|
|
32
|
-
status: _angular_core.InputSignal<TextareaStatus>;
|
|
33
|
-
/**
|
|
34
|
-
* Size of the textarea component
|
|
35
|
-
*/
|
|
36
|
-
size: _angular_core.InputSignal<TextareaSize>;
|
|
37
|
-
/**
|
|
38
|
-
* Label text for the textarea
|
|
39
|
-
*/
|
|
40
|
-
label: _angular_core.InputSignal<string>;
|
|
41
|
-
/**
|
|
42
|
-
* Name attribute for the textarea
|
|
43
|
-
*/
|
|
44
|
-
name: _angular_core.InputSignal<string>;
|
|
45
|
-
/**
|
|
46
|
-
* Placeholder text for the textarea
|
|
47
|
-
*/
|
|
48
|
-
placeholder: _angular_core.InputSignal<string | null>;
|
|
49
|
-
/**
|
|
50
|
-
* Current value of the textarea
|
|
51
|
-
*/
|
|
52
|
-
value: _angular_core.ModelSignal<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the textarea is disabled
|
|
55
|
-
*/
|
|
56
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* Whether the textarea is required
|
|
59
|
-
*/
|
|
60
|
-
required: _angular_core.InputSignal<boolean>;
|
|
61
|
-
/**
|
|
62
|
-
* Whether the textarea is read-only
|
|
63
|
-
*/
|
|
64
|
-
readOnly: _angular_core.InputSignal<boolean>;
|
|
65
|
-
/**
|
|
66
|
-
* Maximum length of the textarea value
|
|
67
|
-
*/
|
|
68
|
-
maxlength: _angular_core.InputSignal<number | undefined>;
|
|
69
|
-
/**
|
|
70
|
-
* Number of visible text rows
|
|
71
|
-
*/
|
|
72
|
-
rows: _angular_core.InputSignal<number>;
|
|
73
|
-
/**
|
|
74
|
-
* Resize behaviour of the textarea
|
|
75
|
-
*/
|
|
76
|
-
resize: _angular_core.InputSignal<TextareaResize>;
|
|
77
|
-
/**
|
|
78
|
-
* Event emitted when the value changes
|
|
79
|
-
*/
|
|
80
|
-
valueChange: _angular_core.OutputEmitterRef<TextareaValueChangeEvent>;
|
|
81
|
-
private isHovered;
|
|
82
|
-
private isFocused;
|
|
83
|
-
private onChange;
|
|
84
|
-
private onTouched;
|
|
85
|
-
writeValue(value: string): void;
|
|
86
|
-
registerOnChange(fn: (value: string) => void): void;
|
|
87
|
-
registerOnTouched(fn: () => void): void;
|
|
88
|
-
currentLength: _angular_core.Signal<number>;
|
|
89
|
-
styles: _angular_core.Signal<{
|
|
90
|
-
[key: string]: string;
|
|
91
|
-
}>;
|
|
92
|
-
classes: _angular_core.Signal<{
|
|
93
|
-
[x: string]: boolean;
|
|
94
|
-
disabled: boolean;
|
|
95
|
-
isFocused: boolean;
|
|
96
|
-
isHovered: boolean;
|
|
97
|
-
}>;
|
|
98
|
-
labelColor: _angular_core.Signal<"neutral-medium" | "neutral-black" | "neutral-dark">;
|
|
99
|
-
helperText: _angular_core.Signal<{
|
|
100
|
-
size: LabelSize;
|
|
101
|
-
color: string;
|
|
102
|
-
}>;
|
|
103
|
-
handleMouseEnter(): void;
|
|
104
|
-
handleMouseLeave(): void;
|
|
105
|
-
handleFocus(): void;
|
|
106
|
-
handleBlur(): void;
|
|
107
|
-
handleInputChange(event: Event): void;
|
|
108
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraTextareaComponent, never>;
|
|
109
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraTextareaComponent, "cura-textarea", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, never, ["*"], true, never>;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export { CuraTextareaComponent };
|
|
113
|
-
export type { TextareaResize, TextareaSize, TextareaStatus, TextareaValueChangeEvent };
|
package/cura/forms/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const formsSizes: {
|
|
2
|
-
large: {
|
|
3
|
-
size: number;
|
|
4
|
-
gap: number;
|
|
5
|
-
};
|
|
6
|
-
medium: {
|
|
7
|
-
size: number;
|
|
8
|
-
gap: number;
|
|
9
|
-
};
|
|
10
|
-
small: {
|
|
11
|
-
size: number;
|
|
12
|
-
gap: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
type LabelSize = 'medium' | 'large' | 'small' | 'xsmall';
|
|
16
|
-
type LabelWeight = 'regular' | 'bold';
|
|
17
|
-
type TextOverflow = 'none' | 'single';
|
|
18
|
-
|
|
19
|
-
export { formsSizes };
|
|
20
|
-
export type { LabelSize, LabelWeight, TextOverflow };
|