@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,104 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Toast types available
|
|
6
|
-
*/
|
|
7
|
-
type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
8
|
-
/**
|
|
9
|
-
* Toast position types
|
|
10
|
-
*/
|
|
11
|
-
type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
12
|
-
/**
|
|
13
|
-
* Toast configuration interface
|
|
14
|
-
*/
|
|
15
|
-
interface ToastConfig {
|
|
16
|
-
type?: ToastType;
|
|
17
|
-
position?: ToastPosition;
|
|
18
|
-
icon?: string;
|
|
19
|
-
label?: string;
|
|
20
|
-
closeButton?: boolean;
|
|
21
|
-
loader?: boolean;
|
|
22
|
-
autoCloseDelay?: number;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare class CuraToastComponent implements OnInit, OnDestroy {
|
|
26
|
-
private curaApi;
|
|
27
|
-
private elementRef;
|
|
28
|
-
private intervalId?;
|
|
29
|
-
/**
|
|
30
|
-
* Toast type: info (default) | success | warning | error
|
|
31
|
-
*/
|
|
32
|
-
type: _angular_core.InputSignal<ToastType>;
|
|
33
|
-
/**
|
|
34
|
-
* Toast position on screen
|
|
35
|
-
*/
|
|
36
|
-
position: _angular_core.InputSignal<ToastPosition>;
|
|
37
|
-
/**
|
|
38
|
-
* Custom icon name
|
|
39
|
-
*/
|
|
40
|
-
icon: _angular_core.InputSignal<string>;
|
|
41
|
-
/**
|
|
42
|
-
* Toast label/title
|
|
43
|
-
*/
|
|
44
|
-
label: _angular_core.InputSignal<string>;
|
|
45
|
-
/**
|
|
46
|
-
* Show close button. Default: true
|
|
47
|
-
*/
|
|
48
|
-
closeButton: _angular_core.InputSignal<boolean>;
|
|
49
|
-
/**
|
|
50
|
-
* Show loader bar. Default: true
|
|
51
|
-
*/
|
|
52
|
-
loader: _angular_core.InputSignal<boolean>;
|
|
53
|
-
/**
|
|
54
|
-
* Auto close delay in milliseconds. Default: 10000ms (10s)
|
|
55
|
-
*/
|
|
56
|
-
autoCloseDelay: _angular_core.InputSignal<number>;
|
|
57
|
-
/**
|
|
58
|
-
* Close event emitter
|
|
59
|
-
*/
|
|
60
|
-
toastClosed: _angular_core.OutputEmitterRef<void>;
|
|
61
|
-
/**
|
|
62
|
-
* Progress state for loader animation
|
|
63
|
-
*/
|
|
64
|
-
progress: _angular_core.WritableSignal<number>;
|
|
65
|
-
/**
|
|
66
|
-
* Active state for animation
|
|
67
|
-
*/
|
|
68
|
-
isActive: _angular_core.WritableSignal<boolean>;
|
|
69
|
-
constructor();
|
|
70
|
-
toastStyles: _angular_core.Signal<{
|
|
71
|
-
[key: string]: string;
|
|
72
|
-
}>;
|
|
73
|
-
containerClasses: _angular_core.Signal<{
|
|
74
|
-
[key: string]: boolean;
|
|
75
|
-
}>;
|
|
76
|
-
iconName: _angular_core.Signal<string>;
|
|
77
|
-
ngOnInit(): void;
|
|
78
|
-
ngOnDestroy(): void;
|
|
79
|
-
/**
|
|
80
|
-
* Opens the toast container with animation
|
|
81
|
-
*/
|
|
82
|
-
openContainer(): void;
|
|
83
|
-
/**
|
|
84
|
-
* Closes the toast container with animation
|
|
85
|
-
*/
|
|
86
|
-
closeContainer(): void;
|
|
87
|
-
/**
|
|
88
|
-
* Public method to close toast
|
|
89
|
-
*/
|
|
90
|
-
close(): void;
|
|
91
|
-
/**
|
|
92
|
-
* Handle close button click
|
|
93
|
-
*/
|
|
94
|
-
handleClose(): void;
|
|
95
|
-
/**
|
|
96
|
-
* Starts the auto-close animation
|
|
97
|
-
*/
|
|
98
|
-
private startAnimation;
|
|
99
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraToastComponent, never>;
|
|
100
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraToastComponent, "cura-toast", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "closeButton": { "alias": "closeButton"; "required": false; "isSignal": true; }; "loader": { "alias": "loader"; "required": false; "isSignal": true; }; "autoCloseDelay": { "alias": "autoCloseDelay"; "required": false; "isSignal": true; }; }, { "toastClosed": "toastClosed"; }, never, ["*", "[slot=actions]"], true, never>;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export { CuraToastComponent };
|
|
104
|
-
export type { ToastConfig, ToastPosition, ToastType };
|
|
@@ -1,160 +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
|
-
* Size options for the checkbox component
|
|
7
|
-
*/
|
|
8
|
-
type CheckboxSize = 'small' | 'medium' | 'large';
|
|
9
|
-
/**
|
|
10
|
-
* Position options for the label relative to the checkbox
|
|
11
|
-
*/
|
|
12
|
-
type CheckboxPosition = 'left' | 'right';
|
|
13
|
-
/**
|
|
14
|
-
* Background theme options for the checkbox
|
|
15
|
-
*/
|
|
16
|
-
type CheckboxBackground = 'dark' | 'light';
|
|
17
|
-
/**
|
|
18
|
-
* Icon color theme options for the checkbox
|
|
19
|
-
*/
|
|
20
|
-
type CheckboxIconColor = 'dark' | 'light';
|
|
21
|
-
/**
|
|
22
|
-
* Status options for the checkbox
|
|
23
|
-
*/
|
|
24
|
-
type CheckboxStatus = 'default' | 'success' | 'error';
|
|
25
|
-
/**
|
|
26
|
-
* Event payload emitted when checkbox state changes
|
|
27
|
-
*/
|
|
28
|
-
interface CheckboxChangeEvent {
|
|
29
|
-
/**
|
|
30
|
-
* The value associated with the checkbox
|
|
31
|
-
*/
|
|
32
|
-
value: string;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the checkbox is checked
|
|
35
|
-
*/
|
|
36
|
-
checked: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Whether the checkbox is in indeterminate state
|
|
39
|
-
*/
|
|
40
|
-
indeterminate: boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
declare class CuraCheckboxComponent implements ControlValueAccessor {
|
|
44
|
-
private curaApi;
|
|
45
|
-
/**
|
|
46
|
-
* When true, suppresses rendering of the check/indeterminate icon.
|
|
47
|
-
*/
|
|
48
|
-
disableCheckIcon: _angular_core.InputSignal<boolean>;
|
|
49
|
-
/**
|
|
50
|
-
* Reflects the checked state of the checkbox.
|
|
51
|
-
* checkedInput receives the external binding; checked is a linkedSignal
|
|
52
|
-
* so it always resets when the parent updates the input.
|
|
53
|
-
*/
|
|
54
|
-
readonly checkedInput: _angular_core.InputSignal<boolean>;
|
|
55
|
-
readonly checkedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
56
|
-
readonly checked: _angular_core.WritableSignal<boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* Reflects the indeterminate state of the checkbox.
|
|
59
|
-
* Using model for two-way binding and form control integration.
|
|
60
|
-
*/
|
|
61
|
-
indeterminate: _angular_core.ModelSignal<boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* Status of the checkbox.
|
|
64
|
-
*/
|
|
65
|
-
status: _angular_core.InputSignal<CheckboxStatus>;
|
|
66
|
-
/**
|
|
67
|
-
* Reflects the disabled state of the checkbox.
|
|
68
|
-
*/
|
|
69
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
* Reflects the required state of the checkbox.
|
|
72
|
-
*/
|
|
73
|
-
required: _angular_core.InputSignal<boolean>;
|
|
74
|
-
/**
|
|
75
|
-
* Text label associated with the checkbox.
|
|
76
|
-
*/
|
|
77
|
-
label: _angular_core.InputSignal<string>;
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the tabindex of the checkbox.
|
|
80
|
-
*/
|
|
81
|
-
ontabindex: _angular_core.InputSignal<number>;
|
|
82
|
-
/**
|
|
83
|
-
* Position of the label relative to the checkbox.
|
|
84
|
-
*/
|
|
85
|
-
position: _angular_core.InputSignal<CheckboxPosition>;
|
|
86
|
-
/**
|
|
87
|
-
* Value associated with the checkbox.
|
|
88
|
-
*/
|
|
89
|
-
value: _angular_core.ModelSignal<any>;
|
|
90
|
-
/**
|
|
91
|
-
* Name attribute of the checkbox.
|
|
92
|
-
*/
|
|
93
|
-
name: _angular_core.InputSignal<string>;
|
|
94
|
-
/**
|
|
95
|
-
* Size of the checkbox.
|
|
96
|
-
*/
|
|
97
|
-
size: _angular_core.InputSignal<CheckboxSize>;
|
|
98
|
-
/**
|
|
99
|
-
* Background theme of the checkbox.
|
|
100
|
-
*/
|
|
101
|
-
background: _angular_core.InputSignal<CheckboxBackground>;
|
|
102
|
-
/**
|
|
103
|
-
* Icon color theme of the checkbox.
|
|
104
|
-
*/
|
|
105
|
-
iconColor: _angular_core.InputSignal<CheckboxIconColor>;
|
|
106
|
-
/**
|
|
107
|
-
* Color theme of the checkbox.
|
|
108
|
-
*/
|
|
109
|
-
color: _angular_core.InputSignal<string>;
|
|
110
|
-
/**
|
|
111
|
-
* Controls how the label 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
|
-
overflowLabel: _angular_core.InputSignal<TextOverflow>;
|
|
119
|
-
/**
|
|
120
|
-
* Controls how the helper text should handle overflow.
|
|
121
|
-
* - `'none'`: No overflow handling; the label displays normally.
|
|
122
|
-
* - `'single'`: The label will be truncated with an ellipsis if it overflows a single line.
|
|
123
|
-
* - `string`: Custom overflow handling mode.
|
|
124
|
-
*
|
|
125
|
-
* @default 'none'
|
|
126
|
-
*/
|
|
127
|
-
overflowHelper: _angular_core.InputSignal<TextOverflow>;
|
|
128
|
-
/**
|
|
129
|
-
* Change event emitter
|
|
130
|
-
*/
|
|
131
|
-
onchange: _angular_core.OutputEmitterRef<CheckboxChangeEvent>;
|
|
132
|
-
private onChange;
|
|
133
|
-
private onTouched;
|
|
134
|
-
styles: _angular_core.Signal<{
|
|
135
|
-
'--font-family': string;
|
|
136
|
-
'--size': string;
|
|
137
|
-
'--gap': string;
|
|
138
|
-
}>;
|
|
139
|
-
private colorConfig;
|
|
140
|
-
iconName: _angular_core.Signal<"minus" | "check">;
|
|
141
|
-
iconSizeValue: _angular_core.Signal<20 | "micro">;
|
|
142
|
-
iconColorValue: _angular_core.Signal<string>;
|
|
143
|
-
labelSize: _angular_core.Signal<"medium" | "xsmall">;
|
|
144
|
-
labelClasses: _angular_core.Signal<string>;
|
|
145
|
-
labelColor: _angular_core.Signal<string>;
|
|
146
|
-
messageClasses: _angular_core.Signal<string>;
|
|
147
|
-
messageColor: _angular_core.Signal<string>;
|
|
148
|
-
writeValue(value: boolean): void;
|
|
149
|
-
registerOnChange(fn: (value: boolean) => void): void;
|
|
150
|
-
registerOnTouched(fn: () => void): void;
|
|
151
|
-
private isDarkBackground;
|
|
152
|
-
private isDarkIconColor;
|
|
153
|
-
containerClasses: _angular_core.Signal<string>;
|
|
154
|
-
handleClick(): void;
|
|
155
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraCheckboxComponent, never>;
|
|
156
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraCheckboxComponent, "cura-checkbox", never, { "disableCheckIcon": { "alias": "disableCheckIcon"; "required": false; "isSignal": true; }; "checkedInput": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "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; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; "isSignal": true; }; "overflowHelper": { "alias": "overflowHelper"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "indeterminate": "indeterminateChange"; "value": "valueChange"; "onchange": "onchange"; }, never, ["*"], true, never>;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export { CuraCheckboxComponent };
|
|
160
|
-
export type { CheckboxBackground, CheckboxChangeEvent, CheckboxIconColor, CheckboxPosition, CheckboxSize, CheckboxStatus };
|
|
@@ -1,236 +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 { InputMask, FactoryArg } from 'imask';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Display mode options for the input text component
|
|
8
|
-
*/
|
|
9
|
-
type InputTextMode = 'default' | 'transparent';
|
|
10
|
-
/**
|
|
11
|
-
* Size options for the input text component
|
|
12
|
-
*/
|
|
13
|
-
type InputTextSize = 'small' | 'medium' | 'large';
|
|
14
|
-
/**
|
|
15
|
-
* Status options for the input text component
|
|
16
|
-
*/
|
|
17
|
-
type InputTextStatus = 'success' | 'error' | 'default';
|
|
18
|
-
/**
|
|
19
|
-
* Input type options for the input text component
|
|
20
|
-
*/
|
|
21
|
-
type InputTextType = 'text' | 'number' | 'email' | 'password' | 'tel' | 'url';
|
|
22
|
-
/**
|
|
23
|
-
* Input mode options for the input text component
|
|
24
|
-
*/
|
|
25
|
-
type InputTextInputMode = 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
26
|
-
/**
|
|
27
|
-
* Mask preset options for input formatting
|
|
28
|
-
*/
|
|
29
|
-
type MaskPreset = 'cpf' | 'cnpj' | 'cpf_cnpj' | 'phone' | 'date' | 'dateRange';
|
|
30
|
-
/**
|
|
31
|
-
* Event payload emitted when the input value changes
|
|
32
|
-
*/
|
|
33
|
-
interface InputTextValueChangeEvent {
|
|
34
|
-
/**
|
|
35
|
-
* The new value of the input
|
|
36
|
-
*/
|
|
37
|
-
value: string | number;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Event payload emitted when the clear button is clicked
|
|
41
|
-
*/
|
|
42
|
-
interface InputTextClearEvent {
|
|
43
|
-
/**
|
|
44
|
-
* The value that was cleared (usually empty string)
|
|
45
|
-
*/
|
|
46
|
-
value: string | number;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Mask options map for IMask library
|
|
50
|
-
*/
|
|
51
|
-
interface MaskOptionsMap {
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Mask configuration for different presets
|
|
56
|
-
*/
|
|
57
|
-
declare const maskOptions: MaskOptionsMap;
|
|
58
|
-
|
|
59
|
-
declare class CuraInputTextComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
60
|
-
private curaApi;
|
|
61
|
-
private elementRef;
|
|
62
|
-
private platformId;
|
|
63
|
-
/**
|
|
64
|
-
* Mode of the input: 'default' or 'transparent'
|
|
65
|
-
*/
|
|
66
|
-
mode: _angular_core.InputSignal<InputTextMode>;
|
|
67
|
-
/**
|
|
68
|
-
* Status of the input component
|
|
69
|
-
*/
|
|
70
|
-
status: _angular_core.InputSignal<InputTextStatus>;
|
|
71
|
-
/**
|
|
72
|
-
* Size of the input component
|
|
73
|
-
*/
|
|
74
|
-
size: _angular_core.InputSignal<InputTextSize>;
|
|
75
|
-
/**
|
|
76
|
-
* Type of the input
|
|
77
|
-
*/
|
|
78
|
-
type: _angular_core.InputSignal<InputTextType>;
|
|
79
|
-
/**
|
|
80
|
-
* Input mode for mobile keyboards
|
|
81
|
-
*/
|
|
82
|
-
inputMode: _angular_core.InputSignal<InputTextInputMode>;
|
|
83
|
-
/**
|
|
84
|
-
* Label text for the input
|
|
85
|
-
*/
|
|
86
|
-
label: _angular_core.InputSignal<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Name attribute for the input
|
|
89
|
-
*/
|
|
90
|
-
name: _angular_core.InputSignal<string>;
|
|
91
|
-
/**
|
|
92
|
-
* Placeholder text for the input
|
|
93
|
-
*/
|
|
94
|
-
placeholder: _angular_core.InputSignal<string | null>;
|
|
95
|
-
/**
|
|
96
|
-
* Current value of the input
|
|
97
|
-
*/
|
|
98
|
-
value: _angular_core.ModelSignal<any>;
|
|
99
|
-
/**
|
|
100
|
-
* Icon name to display
|
|
101
|
-
*/
|
|
102
|
-
iconName: _angular_core.InputSignal<string>;
|
|
103
|
-
/**
|
|
104
|
-
* Helper text displayed below the input
|
|
105
|
-
*/
|
|
106
|
-
/**
|
|
107
|
-
* Whether the input is disabled
|
|
108
|
-
*/
|
|
109
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
110
|
-
/**
|
|
111
|
-
* Whether the input is required
|
|
112
|
-
*/
|
|
113
|
-
required: _angular_core.InputSignal<boolean>;
|
|
114
|
-
/**
|
|
115
|
-
* Mask preset for input formatting
|
|
116
|
-
*/
|
|
117
|
-
maskPreset: _angular_core.InputSignal<MaskPreset | undefined>;
|
|
118
|
-
/**
|
|
119
|
-
* Controls whether the selection functionality is active
|
|
120
|
-
*/
|
|
121
|
-
enableSelectionMode: _angular_core.InputSignal<boolean>;
|
|
122
|
-
/**
|
|
123
|
-
* Regular expression for custom input masking
|
|
124
|
-
*/
|
|
125
|
-
maskRegex: _angular_core.InputSignal<string | null>;
|
|
126
|
-
/**
|
|
127
|
-
* Advanced mask object for IMask library
|
|
128
|
-
*/
|
|
129
|
-
maskAdvanced: _angular_core.InputSignal<any>;
|
|
130
|
-
/**
|
|
131
|
-
* Maximum length of the input value
|
|
132
|
-
*/
|
|
133
|
-
maxlength: _angular_core.InputSignal<number | undefined>;
|
|
134
|
-
/**
|
|
135
|
-
* Whether the input is read-only
|
|
136
|
-
*/
|
|
137
|
-
readOnly: _angular_core.InputSignal<boolean>;
|
|
138
|
-
/**
|
|
139
|
-
* Whether the input is in loading state
|
|
140
|
-
*/
|
|
141
|
-
isLoading: _angular_core.InputSignal<boolean>;
|
|
142
|
-
/**
|
|
143
|
-
* Whether to show the clear button
|
|
144
|
-
*/
|
|
145
|
-
clearIcon: _angular_core.InputSignal<boolean>;
|
|
146
|
-
/**
|
|
147
|
-
* Removes the error icon when necessary
|
|
148
|
-
*/
|
|
149
|
-
hideErrorIcon: _angular_core.InputSignal<boolean>;
|
|
150
|
-
/**
|
|
151
|
-
* Autocomplete attribute for the input
|
|
152
|
-
*/
|
|
153
|
-
autocomplete: _angular_core.InputSignal<string>;
|
|
154
|
-
/**
|
|
155
|
-
* Event emitted when the value changes
|
|
156
|
-
*/
|
|
157
|
-
valueChange: _angular_core.OutputEmitterRef<InputTextValueChangeEvent>;
|
|
158
|
-
/**
|
|
159
|
-
* Event emitted when the clear button is clicked
|
|
160
|
-
*/
|
|
161
|
-
inputClear: _angular_core.OutputEmitterRef<InputTextClearEvent>;
|
|
162
|
-
private isHovered;
|
|
163
|
-
private isFocused;
|
|
164
|
-
private onChange;
|
|
165
|
-
private onTouched;
|
|
166
|
-
inputElement: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
167
|
-
/**
|
|
168
|
-
* Instance of InputMask is returned when IMask constructor is called.
|
|
169
|
-
*/
|
|
170
|
-
maskedInput?: InputMask<FactoryArg>;
|
|
171
|
-
private _isWriting;
|
|
172
|
-
private inputRef?;
|
|
173
|
-
private checkMobile;
|
|
174
|
-
private checkIOS;
|
|
175
|
-
private fakeInputIOSHack;
|
|
176
|
-
styles: _angular_core.Signal<{
|
|
177
|
-
[key: string]: string;
|
|
178
|
-
}>;
|
|
179
|
-
constructor();
|
|
180
|
-
ngAfterViewInit(): void;
|
|
181
|
-
ngOnDestroy(): void;
|
|
182
|
-
writeValue(value: string | number): void;
|
|
183
|
-
registerOnChange(fn: (value: string | number) => void): void;
|
|
184
|
-
registerOnTouched(fn: () => void): void;
|
|
185
|
-
setFocus(): Promise<void>;
|
|
186
|
-
classes: _angular_core.Signal<{
|
|
187
|
-
[x: string]: boolean;
|
|
188
|
-
disabled: boolean;
|
|
189
|
-
isLoading: boolean;
|
|
190
|
-
isFocused: boolean;
|
|
191
|
-
isHovered: boolean;
|
|
192
|
-
transparent: boolean;
|
|
193
|
-
selection: boolean;
|
|
194
|
-
}>;
|
|
195
|
-
labelColor: _angular_core.Signal<"neutral-medium" | "neutral-dark" | "neutral-black">;
|
|
196
|
-
iconConfig: _angular_core.Signal<{
|
|
197
|
-
icon: null;
|
|
198
|
-
size: number;
|
|
199
|
-
} | {
|
|
200
|
-
icon: {
|
|
201
|
-
name: string;
|
|
202
|
-
color: string;
|
|
203
|
-
};
|
|
204
|
-
size: number;
|
|
205
|
-
}>;
|
|
206
|
-
helperText: _angular_core.Signal<{
|
|
207
|
-
size: string;
|
|
208
|
-
color: string;
|
|
209
|
-
}>;
|
|
210
|
-
shouldShowClearButton: _angular_core.Signal<boolean>;
|
|
211
|
-
handleMouseEnter(): void;
|
|
212
|
-
handleMouseLeave(): void;
|
|
213
|
-
handleInputFocus(): void;
|
|
214
|
-
handleInputBlur(): void;
|
|
215
|
-
handleInputChange(event: Event): void;
|
|
216
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
217
|
-
handleClearInput(): void;
|
|
218
|
-
private handleNumberInputChange;
|
|
219
|
-
private handleTextInputChange;
|
|
220
|
-
private handleBlockInvalidNumber;
|
|
221
|
-
private shouldDisplayMask;
|
|
222
|
-
private initializeMask;
|
|
223
|
-
initializePresetMask(): void;
|
|
224
|
-
initializeRegexMask(): void;
|
|
225
|
-
initializeAdvancedMask(): void;
|
|
226
|
-
private subscribeToMaskEvents;
|
|
227
|
-
private applyValueToMask;
|
|
228
|
-
private clearMaskValue;
|
|
229
|
-
private destroyMask;
|
|
230
|
-
private handleMaskUpdate;
|
|
231
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraInputTextComponent, never>;
|
|
232
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraInputTextComponent, "cura-input-text", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "inputMode": { "alias": "inputMode"; "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; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "maskPreset": { "alias": "maskPreset"; "required": false; "isSignal": true; }; "enableSelectionMode": { "alias": "enableSelectionMode"; "required": false; "isSignal": true; }; "maskRegex": { "alias": "maskRegex"; "required": false; "isSignal": true; }; "maskAdvanced": { "alias": "maskAdvanced"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "clearIcon": { "alias": "clearIcon"; "required": false; "isSignal": true; }; "hideErrorIcon": { "alias": "hideErrorIcon"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; "inputClear": "inputClear"; }, never, ["*"], true, never>;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export { CuraInputTextComponent, maskOptions };
|
|
236
|
-
export type { InputTextClearEvent, InputTextInputMode, InputTextMode, InputTextSize, InputTextStatus, InputTextType, InputTextValueChangeEvent, MaskOptionsMap, MaskPreset };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { LabelSize, LabelWeight, TextOverflow } from '@rededor/site-front-end-lib/cura/forms';
|
|
3
|
-
|
|
4
|
-
declare class CuraLabelComponent {
|
|
5
|
-
private curaApi;
|
|
6
|
-
/**
|
|
7
|
-
* Set size of body text.
|
|
8
|
-
* Values: medium (default) | large | small | xsmall.
|
|
9
|
-
*/
|
|
10
|
-
size: _angular_core.InputSignal<LabelSize>;
|
|
11
|
-
/**
|
|
12
|
-
* Label font weight. It is possible to use regular HTML tags like <b> or <strong> as well.
|
|
13
|
-
* Values: regular (default) | bold.
|
|
14
|
-
*/
|
|
15
|
-
weight: _angular_core.InputSignal<LabelWeight>;
|
|
16
|
-
/**
|
|
17
|
-
* Apply design system color to interactive elements like <a> and <abbr> inside the text.
|
|
18
|
-
* Values: Color from design system scheme. Default to 'accent-dark'.
|
|
19
|
-
*/
|
|
20
|
-
spotColor: _angular_core.InputSignal<string>;
|
|
21
|
-
/**
|
|
22
|
-
* Text color.
|
|
23
|
-
* Values: Color from design system scheme. Default to the font color from the theme.
|
|
24
|
-
*/
|
|
25
|
-
color: _angular_core.InputSignal<string>;
|
|
26
|
-
/**
|
|
27
|
-
* CSS margin-block property values.
|
|
28
|
-
* Default to '0'
|
|
29
|
-
*/
|
|
30
|
-
marginBlock: _angular_core.InputSignal<string>;
|
|
31
|
-
/**
|
|
32
|
-
* CSS line-height property values.
|
|
33
|
-
* Default to '125%'
|
|
34
|
-
*/
|
|
35
|
-
lineHeight: _angular_core.InputSignal<string>;
|
|
36
|
-
/**
|
|
37
|
-
* Apply text-overflow ellipsis definitions.
|
|
38
|
-
* Default to 'none'
|
|
39
|
-
*/
|
|
40
|
-
textOverflow: _angular_core.InputSignal<TextOverflow>;
|
|
41
|
-
bodyColor: _angular_core.Signal<string>;
|
|
42
|
-
containerClasses: _angular_core.Signal<string>;
|
|
43
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CuraLabelComponent, never>;
|
|
44
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CuraLabelComponent, "cura-label", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "weight": { "alias": "weight"; "required": false; "isSignal": true; }; "spotColor": { "alias": "spotColor"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "marginBlock": { "alias": "marginBlock"; "required": false; "isSignal": true; }; "lineHeight": { "alias": "lineHeight"; "required": false; "isSignal": true; }; "textOverflow": { "alias": "textOverflow"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { CuraLabelComponent };
|