sapenlinea-components 0.0.20 → 0.0.22
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/index.d.ts
CHANGED
|
@@ -138,6 +138,14 @@ interface TableAction {
|
|
|
138
138
|
label: string;
|
|
139
139
|
color?: string;
|
|
140
140
|
}
|
|
141
|
+
interface StatusToneMap {
|
|
142
|
+
[statusKey: string]: StatusTone;
|
|
143
|
+
}
|
|
144
|
+
type StatusTone = 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
145
|
+
declare const STATUS_TONE_STYLES: Record<StatusTone, {
|
|
146
|
+
bg: string;
|
|
147
|
+
color: string;
|
|
148
|
+
}>;
|
|
141
149
|
declare class Table {
|
|
142
150
|
columns: _angular_core.InputSignal<TableColumn[]>;
|
|
143
151
|
data: _angular_core.InputSignal<TableRow[]>;
|
|
@@ -151,16 +159,18 @@ declare class Table {
|
|
|
151
159
|
action: string;
|
|
152
160
|
row: TableRow;
|
|
153
161
|
}>;
|
|
162
|
+
statusToneMap: _angular_core.InputSignal<StatusToneMap>;
|
|
154
163
|
toggleMenu(index: number): void;
|
|
155
164
|
onOptionClick(option: TableAction, row: TableRow): void;
|
|
156
165
|
openModal(row: TableRow, event?: MouseEvent): void;
|
|
157
166
|
onClickOutside(event: MouseEvent): void;
|
|
158
167
|
getAlignment(col: TableColumn): string;
|
|
159
168
|
formatValue(col: TableColumn, value: any): string;
|
|
160
|
-
getStatusStyle(value:
|
|
169
|
+
getStatusStyle(value: any): {
|
|
161
170
|
bg: string;
|
|
162
171
|
color: string;
|
|
163
172
|
};
|
|
173
|
+
private normalizeStatus;
|
|
164
174
|
/**
|
|
165
175
|
* Devuelve las acciones para una fila.
|
|
166
176
|
* Puede ser que `actions` sea un arreglo (se muestra tal cual) o una función
|
|
@@ -171,7 +181,7 @@ declare class Table {
|
|
|
171
181
|
isDate(value: any): boolean;
|
|
172
182
|
onSort(col: TableColumn): void;
|
|
173
183
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
174
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "lib-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
184
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "lib-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; "statusToneMap": { "alias": "statusToneMap"; "required": false; "isSignal": true; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
175
185
|
}
|
|
176
186
|
|
|
177
187
|
declare class DateTimePicker implements ControlValueAccessor, OnDestroy {
|
|
@@ -515,7 +525,6 @@ declare class DialogAlertComponent implements OnInit, OnChanges {
|
|
|
515
525
|
get isReasonNeeded(): boolean;
|
|
516
526
|
ngOnInit(): void;
|
|
517
527
|
ngOnChanges(changes: SimpleChanges): void;
|
|
518
|
-
private updateIcon;
|
|
519
528
|
private updateFormAndSections;
|
|
520
529
|
onConfirm(): void;
|
|
521
530
|
onCancel(): void;
|
|
@@ -523,5 +532,5 @@ declare class DialogAlertComponent implements OnInit, OnChanges {
|
|
|
523
532
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogAlertComponent, "lib-dialog-alert-component", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "type": { "alias": "type"; "required": false; }; "action": { "alias": "action"; "required": false; }; "showReason": { "alias": "showReason"; "required": false; }; "confirm": { "alias": "confirm"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "reasonOptions": { "alias": "reasonOptions"; "required": false; }; }, { "close": "close"; "confirmReason": "confirmReason"; }, never, never, true, never>;
|
|
524
533
|
}
|
|
525
534
|
|
|
526
|
-
export { DateTimeFilter, DateTimePicker, DialogAlertComponent, DynamicFormFields, InputNumberFilter, InputSelectFilter, InputTextFilter, ModalForm, PaginationComponent, SelectCustomSearch, Table, WizardForm };
|
|
527
|
-
export type { DateFilterSelection, DateTimeMode, FieldConfig, FilterItem, FilterOption, FilterType, Hour12, ModalFormStep, Option, SectionConfig, SelectedDatesMap, TableAction, TableColumn, TableRow };
|
|
535
|
+
export { DateTimeFilter, DateTimePicker, DialogAlertComponent, DynamicFormFields, InputNumberFilter, InputSelectFilter, InputTextFilter, ModalForm, PaginationComponent, STATUS_TONE_STYLES, SelectCustomSearch, Table, WizardForm };
|
|
536
|
+
export type { DateFilterSelection, DateTimeMode, FieldConfig, FilterItem, FilterOption, FilterType, Hour12, ModalFormStep, Option, SectionConfig, SelectedDatesMap, StatusTone, StatusToneMap, TableAction, TableColumn, TableRow };
|