intelica-library-components 1.1.4 → 1.1.13
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { PipeTransform, OnChanges, EventEmitter, SimpleChanges, OnDestroy, OnInit, TemplateRef, AfterContentInit, QueryList, ElementRef, ChangeDetectorRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { PipeTransform, OnChanges, EventEmitter, SimpleChanges, OnDestroy, OnInit, TemplateRef, AfterContentInit, QueryList, ElementRef, ChangeDetectorRef, AfterViewInit, AfterViewChecked } from '@angular/core';
|
|
3
3
|
import { HttpInterceptorFn } from '@angular/common/http';
|
|
4
4
|
import { CanActivateFn } from '@angular/router';
|
|
5
5
|
import { FormGroup, ControlValueAccessor } from '@angular/forms';
|
|
@@ -21,7 +21,7 @@ declare class TermPipe implements PipeTransform {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare class FormatAmountPipe implements PipeTransform {
|
|
24
|
-
transform(value: number | string | null | undefined, shortFormat?: boolean, decimalPlaces?: number): string;
|
|
24
|
+
transform(value: number | string | null | undefined, shortFormat?: boolean, decimalPlaces?: number, validNegative?: boolean): string;
|
|
25
25
|
private getShortFormat;
|
|
26
26
|
private formatWithThousandSeparators;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormatAmountPipe, never>;
|
|
@@ -52,6 +52,7 @@ declare const Color: {
|
|
|
52
52
|
amex: string;
|
|
53
53
|
orange: string;
|
|
54
54
|
orangeDark: string;
|
|
55
|
+
skyBlue: string;
|
|
55
56
|
blue: string;
|
|
56
57
|
gray: string;
|
|
57
58
|
gray3: string;
|
|
@@ -85,6 +86,31 @@ declare enum TableSortOrder {
|
|
|
85
86
|
Desc = -1
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Enum representing the different types of alerts available in the system.
|
|
91
|
+
* Each type corresponds to a specific visual style and semantic meaning.
|
|
92
|
+
*/
|
|
93
|
+
declare enum AlertType {
|
|
94
|
+
/** Warning alert - Yellow icon and title, used for cautionary messages */
|
|
95
|
+
WARNING = "warning",
|
|
96
|
+
/** Success alert - Green icon and title, used for successful operations */
|
|
97
|
+
SUCCESS = "success",
|
|
98
|
+
/** Error alert - Red icon and title, used for error messages */
|
|
99
|
+
ERROR = "error"
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Enum representing the button configuration modes for alerts.
|
|
103
|
+
* Determines which buttons are displayed in the alert dialog.
|
|
104
|
+
*/
|
|
105
|
+
declare enum AlertButtonMode {
|
|
106
|
+
/** Only shows a single OK/Confirm button */
|
|
107
|
+
OK_ONLY = "ok_only",
|
|
108
|
+
/** Shows both Confirm and Cancel buttons */
|
|
109
|
+
CONFIRM_CANCEL = "confirm_cancel",
|
|
110
|
+
/** Shows only a Confirm button (without cancel) */
|
|
111
|
+
CONFIRM_ONLY = "confirm_only"
|
|
112
|
+
}
|
|
113
|
+
|
|
88
114
|
declare const TermGuard: CanActivateFn;
|
|
89
115
|
|
|
90
116
|
declare const RouteGuard: CanActivateFn;
|
|
@@ -1370,6 +1396,143 @@ declare class MultiSelectComponent implements ControlValueAccessor, AfterViewIni
|
|
|
1370
1396
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "intelica-multi-select", never, { "id": { "alias": "id"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showFilter": { "alias": "showFilter"; "required": false; }; "showAll": { "alias": "showAll"; "required": false; }; "allText": { "alias": "allText"; "required": false; }; "maxSelectedLabels": { "alias": "maxSelectedLabels"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectedItemsLabel": { "alias": "selectedItemsLabel"; "required": false; }; "textColorClass": { "alias": "textColorClass"; "required": false; }; "group": { "alias": "group"; "required": false; }; "resetFilterOnHide": { "alias": "resetFilterOnHide"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, { "onChangeEvent": "onChange"; "onPanelShowEvent": "onPanelShow"; "onPanelHideEvent": "onPanelHide"; }, never, never, true, never>;
|
|
1371
1397
|
}
|
|
1372
1398
|
|
|
1399
|
+
/**
|
|
1400
|
+
* Constants for DatePicker custom button types
|
|
1401
|
+
* Use these constants instead of string literals to maintain consistency
|
|
1402
|
+
* and facilitate future changes
|
|
1403
|
+
*/
|
|
1404
|
+
declare const DATEPICKER_BUTTON_TYPES: {
|
|
1405
|
+
readonly TODAY: "TODAY";
|
|
1406
|
+
readonly LAST_12_MONTHS: "LAST_12_MONTHS";
|
|
1407
|
+
readonly CURRENT_YEAR: "CURRENT_YEAR";
|
|
1408
|
+
readonly CURRENT_MONTH: "CURRENT_MONTH";
|
|
1409
|
+
};
|
|
1410
|
+
/**
|
|
1411
|
+
* Type derived from the constants object
|
|
1412
|
+
* This ensures type safety while using the constants
|
|
1413
|
+
*/
|
|
1414
|
+
type CustomButtonType = (typeof DATEPICKER_BUTTON_TYPES)[keyof typeof DATEPICKER_BUTTON_TYPES];
|
|
1415
|
+
|
|
1416
|
+
declare class DatepickerComponent implements ControlValueAccessor, AfterViewChecked {
|
|
1417
|
+
private cdr;
|
|
1418
|
+
readonly DATEPICKER_BUTTON_TYPES: {
|
|
1419
|
+
readonly TODAY: "TODAY";
|
|
1420
|
+
readonly LAST_12_MONTHS: "LAST_12_MONTHS";
|
|
1421
|
+
readonly CURRENT_YEAR: "CURRENT_YEAR";
|
|
1422
|
+
readonly CURRENT_MONTH: "CURRENT_MONTH";
|
|
1423
|
+
};
|
|
1424
|
+
/**
|
|
1425
|
+
* @description Readonly input
|
|
1426
|
+
* @default false
|
|
1427
|
+
* @type {boolean}
|
|
1428
|
+
*/
|
|
1429
|
+
readonlyInput: boolean;
|
|
1430
|
+
/**
|
|
1431
|
+
* @description Show icon
|
|
1432
|
+
* @default false
|
|
1433
|
+
* @type {boolean}
|
|
1434
|
+
*/
|
|
1435
|
+
showIcon: boolean;
|
|
1436
|
+
/**
|
|
1437
|
+
* @description Number of months to display
|
|
1438
|
+
* @default 2
|
|
1439
|
+
* @type {number}
|
|
1440
|
+
*/
|
|
1441
|
+
numberOfMonths: number;
|
|
1442
|
+
/**
|
|
1443
|
+
* @description Panel style class
|
|
1444
|
+
* @default "prDatapicker prDatapicker--dropdown"
|
|
1445
|
+
* @type {string}
|
|
1446
|
+
*/
|
|
1447
|
+
panelStyleClass: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* @description Manual apply mode - requires Apply button click to confirm selection
|
|
1450
|
+
* @default false
|
|
1451
|
+
* @type {boolean}
|
|
1452
|
+
*/
|
|
1453
|
+
manualApply: boolean;
|
|
1454
|
+
/**
|
|
1455
|
+
* @description Custom buttons to show in footer
|
|
1456
|
+
* @default []
|
|
1457
|
+
* @type {CustomButtonType[]}
|
|
1458
|
+
*/
|
|
1459
|
+
customButtons: CustomButtonType[];
|
|
1460
|
+
/**
|
|
1461
|
+
* @description Date format for display in input
|
|
1462
|
+
* @default "dd M, yy" (e.g., "08 Jan, 2026")
|
|
1463
|
+
* @type {string}
|
|
1464
|
+
*/
|
|
1465
|
+
dateFormat?: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* @description View mode for the datepicker
|
|
1468
|
+
* @default "date"
|
|
1469
|
+
* @type {"date" | "month" | "year"}
|
|
1470
|
+
*/
|
|
1471
|
+
view: "date" | "month" | "year";
|
|
1472
|
+
/**
|
|
1473
|
+
* @description Selection mode for the datepicker
|
|
1474
|
+
* @default "range"
|
|
1475
|
+
* @type {"single" | "range"}
|
|
1476
|
+
*/
|
|
1477
|
+
selectionMode: "single" | "range";
|
|
1478
|
+
/**
|
|
1479
|
+
* @description Change event
|
|
1480
|
+
* @emits {(Date | null)[] | null}
|
|
1481
|
+
* @type {EventEmitter<(Date | null)[] | null>}
|
|
1482
|
+
*/
|
|
1483
|
+
onChangeEvent: EventEmitter<(Date | null)[] | null>;
|
|
1484
|
+
rangeDates: (Date | null)[] | null;
|
|
1485
|
+
tempSelection: (Date | null)[] | null;
|
|
1486
|
+
viewMonth: number;
|
|
1487
|
+
viewYear: number;
|
|
1488
|
+
currentYear: number;
|
|
1489
|
+
currentMonth: number;
|
|
1490
|
+
defaultDate: Date;
|
|
1491
|
+
private navigatingWithArrows;
|
|
1492
|
+
datepickerRef: any;
|
|
1493
|
+
private allowClose;
|
|
1494
|
+
private preventAutoClose;
|
|
1495
|
+
activeButton: CustomButtonType | null;
|
|
1496
|
+
months: {
|
|
1497
|
+
label: string;
|
|
1498
|
+
value: number;
|
|
1499
|
+
}[];
|
|
1500
|
+
years: number[];
|
|
1501
|
+
onChangeFn: any;
|
|
1502
|
+
onTouchedFn: any;
|
|
1503
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1504
|
+
get filteredMonths(): {
|
|
1505
|
+
label: string;
|
|
1506
|
+
value: number;
|
|
1507
|
+
}[];
|
|
1508
|
+
getDateFormat(): string;
|
|
1509
|
+
private normalizeMonthYear;
|
|
1510
|
+
onMonthChange(event: any): void;
|
|
1511
|
+
onYearChange(event: any): void;
|
|
1512
|
+
onViewChange(): void;
|
|
1513
|
+
get internalModel(): (Date | null)[] | null;
|
|
1514
|
+
onModelChange(val: (Date | null)[] | null): void;
|
|
1515
|
+
writeValue(value: (Date | null)[] | null): void;
|
|
1516
|
+
registerOnChange(fn: any): void;
|
|
1517
|
+
registerOnTouched(fn: any): void;
|
|
1518
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
1519
|
+
onDateChange(): void;
|
|
1520
|
+
handleOpen(): void;
|
|
1521
|
+
handleClose(): void;
|
|
1522
|
+
applyCallback(event: any): void;
|
|
1523
|
+
clearCallback(event: any): void;
|
|
1524
|
+
todayCallback(event: any): void;
|
|
1525
|
+
last12MonthsCallback(event: any): void;
|
|
1526
|
+
currentYearCallback(event: any): void;
|
|
1527
|
+
currentMonthCallback(event: any): void;
|
|
1528
|
+
shouldShowButton(buttonType: CustomButtonType): boolean;
|
|
1529
|
+
getButtonClass(buttonType: CustomButtonType): string;
|
|
1530
|
+
ngAfterViewChecked(): void;
|
|
1531
|
+
private setupHideOverlayOverride;
|
|
1532
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
1533
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "intelica-datepicker", never, { "readonlyInput": { "alias": "readonlyInput"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "numberOfMonths": { "alias": "numberOfMonths"; "required": false; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; }; "manualApply": { "alias": "manualApply"; "required": false; }; "customButtons": { "alias": "customButtons"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "view": { "alias": "view"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; }, { "onChangeEvent": "onChange"; }, never, never, true, never>;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1373
1536
|
declare class SkeletonComponent {
|
|
1374
1537
|
private readonly skeletonService;
|
|
1375
1538
|
isLoading: i0.WritableSignal<boolean>;
|
|
@@ -1525,6 +1688,25 @@ declare class TableFetchComponent<T> implements OnChanges, AfterContentInit {
|
|
|
1525
1688
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableFetchComponent<any>, "intelica-table-fetch", never, { "ComponentId": { "alias": "ComponentId"; "required": false; }; "ShowRowPerPage": { "alias": "ShowRowPerPage"; "required": false; }; "ShowSearch": { "alias": "ShowSearch"; "required": false; }; "ListSearchOptions": { "alias": "ListSearchOptions"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "RowsPerPage": { "alias": "RowsPerPage"; "required": false; }; "ShowCheckbox": { "alias": "ShowCheckbox"; "required": false; }; "ShowIndex": { "alias": "ShowIndex"; "required": false; }; "ShowSearchTooltip": { "alias": "ShowSearchTooltip"; "required": false; }; "ClassName": { "alias": "ClassName"; "required": false; }; "DefaultSortField": { "alias": "DefaultSortField"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "AllowedPageSizes": { "alias": "AllowedPageSizes"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; "FilteredList": { "alias": "FilteredList"; "required": false; }; "TotalItems": { "alias": "TotalItems"; "required": false; }; "CurrentPage": { "alias": "CurrentPage"; "required": false; }; "SortOrder": { "alias": "SortOrder"; "required": false; }; "SortField": { "alias": "SortField"; "required": false; }; }, { "EmitQueryParametersChange": "EmitQueryParametersChange"; "EmitSortEvent": "EmitSortEvent"; }, ["AdditionalTemplate", "AdditionalCentralTemplate", "AdditionalExtendedTemplate", "Columns", "ColumnGroups", "RowResumenGroups"], never, true, never>;
|
|
1526
1689
|
}
|
|
1527
1690
|
|
|
1691
|
+
declare class IntelicaAlertComponent {
|
|
1692
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntelicaAlertComponent, never>;
|
|
1693
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IntelicaAlertComponent, "intelica-alert", never, {}, {}, never, never, true, never>;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
declare class AddFavoritesComponent implements OnInit {
|
|
1697
|
+
readonly termService: GlobalTermService;
|
|
1698
|
+
private readonly favoritesMock;
|
|
1699
|
+
readonly favoriteChanged: i0.OutputEmitterRef<boolean>;
|
|
1700
|
+
private isFavorite;
|
|
1701
|
+
iconClass: string;
|
|
1702
|
+
ngOnInit(): void;
|
|
1703
|
+
toggleFavorite(): void;
|
|
1704
|
+
private loadInitialState;
|
|
1705
|
+
private updateIcon;
|
|
1706
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddFavoritesComponent, never>;
|
|
1707
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFavoritesComponent, "intelica-add-favorites", never, {}, { "favoriteChanged": "favoriteChanged"; }, never, never, true, never>;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1528
1710
|
declare class CheckboxFilterDirective extends FilterDirective implements OnChanges, ControlValueAccessor {
|
|
1529
1711
|
constructor();
|
|
1530
1712
|
modeCheckBox: string;
|
|
@@ -1630,6 +1812,107 @@ declare class IntelicaCellCheckboxDirective {
|
|
|
1630
1812
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IntelicaCellCheckboxDirective, "[intelicaCellCheckbox]", never, { "field": { "alias": "intelicaCellCheckbox"; "required": false; }; "row": { "alias": "intelicaCellCheckboxRow"; "required": false; }; }, {}, never, never, true, never>;
|
|
1631
1813
|
}
|
|
1632
1814
|
|
|
1815
|
+
/**
|
|
1816
|
+
* Configuration options for alert buttons.
|
|
1817
|
+
*/
|
|
1818
|
+
interface AlertButtonConfig {
|
|
1819
|
+
/** Text to display on the confirm/OK button */
|
|
1820
|
+
confirmText?: string;
|
|
1821
|
+
/** Text to display on the cancel button */
|
|
1822
|
+
cancelText?: string;
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Style configuration for customizing alert appearance.
|
|
1826
|
+
*/
|
|
1827
|
+
interface AlertStyleConfig {
|
|
1828
|
+
/** Background color of the icon container */
|
|
1829
|
+
iconBackgroundColor?: string;
|
|
1830
|
+
/** Color of the icon */
|
|
1831
|
+
iconColor?: string;
|
|
1832
|
+
/** Color of the title text */
|
|
1833
|
+
titleColor?: string;
|
|
1834
|
+
/** Color of the subtitle/message text */
|
|
1835
|
+
subtitleColor?: string;
|
|
1836
|
+
/** Background color of the confirm button */
|
|
1837
|
+
confirmButtonColor?: string;
|
|
1838
|
+
/** Text color of the confirm button */
|
|
1839
|
+
confirmButtonTextColor?: string;
|
|
1840
|
+
/** Background color of the cancel button */
|
|
1841
|
+
cancelButtonColor?: string;
|
|
1842
|
+
/** Text color of the cancel button */
|
|
1843
|
+
cancelButtonTextColor?: string;
|
|
1844
|
+
/** Width of the dialog (e.g., '400px', '30rem') */
|
|
1845
|
+
width?: string;
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Complete configuration options for displaying an alert.
|
|
1849
|
+
*/
|
|
1850
|
+
interface AlertConfig {
|
|
1851
|
+
/** The type of alert (warning, success, error) */
|
|
1852
|
+
type: AlertType;
|
|
1853
|
+
/** Main title text displayed in the alert */
|
|
1854
|
+
title: string;
|
|
1855
|
+
/** Optional subtitle/message displayed below the title */
|
|
1856
|
+
subtitle?: string;
|
|
1857
|
+
/** Button configuration mode */
|
|
1858
|
+
buttonMode?: AlertButtonMode;
|
|
1859
|
+
/** Custom button text configuration */
|
|
1860
|
+
buttons?: AlertButtonConfig;
|
|
1861
|
+
/** Whether to show the close (X) button */
|
|
1862
|
+
showCloseButton?: boolean;
|
|
1863
|
+
/** Optional HTML content to display instead of subtitle */
|
|
1864
|
+
htmlContent?: string;
|
|
1865
|
+
/** Optional custom CSS class for the popup */
|
|
1866
|
+
customClass?: string;
|
|
1867
|
+
/** Custom style configuration */
|
|
1868
|
+
styles?: AlertStyleConfig;
|
|
1869
|
+
/** PrimeIcon class for custom icon (e.g., 'pi pi-check') */
|
|
1870
|
+
customIcon?: string;
|
|
1871
|
+
/** Custom image URL for the icon */
|
|
1872
|
+
customImageUrl?: string;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Result returned after an alert is closed.
|
|
1876
|
+
*/
|
|
1877
|
+
interface AlertResult {
|
|
1878
|
+
/** Whether the user confirmed the alert */
|
|
1879
|
+
isConfirmed: boolean;
|
|
1880
|
+
/** Whether the user clicked cancel */
|
|
1881
|
+
isCancelled: boolean;
|
|
1882
|
+
/** Whether the alert was dismissed (closed via X button or clicking outside) */
|
|
1883
|
+
isDismissed: boolean;
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Default configuration values for alerts.
|
|
1887
|
+
*/
|
|
1888
|
+
declare const ALERT_DEFAULTS: Partial<AlertConfig>;
|
|
1889
|
+
/**
|
|
1890
|
+
* Configuration for each alert type.
|
|
1891
|
+
* - `titleColor`: Color for the alert title
|
|
1892
|
+
* - `icon`: PrimeIcon class (e.g., 'pi pi-exclamation-triangle')
|
|
1893
|
+
* - `iconBackgroundColor`: Background color for the icon container
|
|
1894
|
+
* - `iconColor`: Color of the icon itself
|
|
1895
|
+
* - `imageUrl`: Custom image/SVG path (takes precedence over `icon` if defined)
|
|
1896
|
+
*/
|
|
1897
|
+
interface AlertTypeConfig {
|
|
1898
|
+
titleColor: string;
|
|
1899
|
+
icon?: string;
|
|
1900
|
+
iconBackgroundColor?: string;
|
|
1901
|
+
iconColor?: string;
|
|
1902
|
+
imageUrl?: string;
|
|
1903
|
+
}
|
|
1904
|
+
/**
|
|
1905
|
+
* Paths to custom SVG icons for alerts.
|
|
1906
|
+
* Icons should be placed in: public/assets/icons/alerts/
|
|
1907
|
+
*/
|
|
1908
|
+
declare const ALERT_ICON_PATHS: {
|
|
1909
|
+
error: string;
|
|
1910
|
+
};
|
|
1911
|
+
/**
|
|
1912
|
+
* Centralized configuration for each alert type using PrimeNG icons.
|
|
1913
|
+
*/
|
|
1914
|
+
declare const ALERT_TYPE_CONFIG: Record<AlertType, AlertTypeConfig>;
|
|
1915
|
+
|
|
1633
1916
|
declare class HtmlToExcelService {
|
|
1634
1917
|
ExportTOExcel(idTabla: string, html: string, filename: string, tabname: string, extension: string): void;
|
|
1635
1918
|
private readonly Logo;
|
|
@@ -1825,6 +2108,67 @@ declare class SweetAlertService {
|
|
|
1825
2108
|
static ɵprov: i0.ɵɵInjectableDeclaration<SweetAlertService>;
|
|
1826
2109
|
}
|
|
1827
2110
|
|
|
2111
|
+
declare class AlertService {
|
|
2112
|
+
private readonly confirmationService;
|
|
2113
|
+
private readonly DIALOG_KEY;
|
|
2114
|
+
/**
|
|
2115
|
+
* Displays a warning alert with yellow styling.
|
|
2116
|
+
* Can be called with (title, subtitle, buttonMode, buttons) OR (title, subtitle, buttons).
|
|
2117
|
+
*/
|
|
2118
|
+
warning(title: string, subtitle?: string, modeOrButtons?: AlertButtonMode | {
|
|
2119
|
+
confirmText?: string;
|
|
2120
|
+
cancelText?: string;
|
|
2121
|
+
}, buttons?: {
|
|
2122
|
+
confirmText?: string;
|
|
2123
|
+
cancelText?: string;
|
|
2124
|
+
}): Promise<AlertResult>;
|
|
2125
|
+
/**
|
|
2126
|
+
* Displays a success alert with green styling.
|
|
2127
|
+
* Can be called with (title, subtitle, buttonMode, buttons) OR (title, subtitle, buttons).
|
|
2128
|
+
*/
|
|
2129
|
+
success(title: string, subtitle?: string, modeOrButtons?: AlertButtonMode | {
|
|
2130
|
+
confirmText?: string;
|
|
2131
|
+
cancelText?: string;
|
|
2132
|
+
}, buttons?: {
|
|
2133
|
+
confirmText?: string;
|
|
2134
|
+
cancelText?: string;
|
|
2135
|
+
}): Promise<AlertResult>;
|
|
2136
|
+
/**
|
|
2137
|
+
* Displays an error alert with red styling.
|
|
2138
|
+
* Can be called with (title, subtitle, buttonMode, buttons) OR (title, subtitle, buttons).
|
|
2139
|
+
*/
|
|
2140
|
+
error(title: string, subtitle?: string, modeOrButtons?: AlertButtonMode | {
|
|
2141
|
+
confirmText?: string;
|
|
2142
|
+
cancelText?: string;
|
|
2143
|
+
}, buttons?: {
|
|
2144
|
+
confirmText?: string;
|
|
2145
|
+
cancelText?: string;
|
|
2146
|
+
}): Promise<AlertResult>;
|
|
2147
|
+
/**
|
|
2148
|
+
* Helper to resolve flexible arguments.
|
|
2149
|
+
* If 3rd arg is object (not string enum), treat it as buttons config and default mode to OK_ONLY.
|
|
2150
|
+
* If 3rd arg is string (enum), treat it as mode and 4th as buttons config.
|
|
2151
|
+
*/
|
|
2152
|
+
private resolveArgs;
|
|
2153
|
+
message(message: string, type?: AlertType): Promise<AlertResult>;
|
|
2154
|
+
confirm(title: string, subtitle?: string, confirmText?: string, cancelText?: string, type?: AlertType): Promise<AlertResult>;
|
|
2155
|
+
showHtml(title: string, htmlContent: string, type?: AlertType, buttonMode?: AlertButtonMode): Promise<AlertResult>;
|
|
2156
|
+
showWithStyles(config: AlertConfig, styles: AlertStyleConfig): Promise<AlertResult>;
|
|
2157
|
+
show(config: AlertConfig): Promise<AlertResult>;
|
|
2158
|
+
private mergeWithDefaults;
|
|
2159
|
+
private getIconClass;
|
|
2160
|
+
private getIconBackgroundColor;
|
|
2161
|
+
private getIconColor;
|
|
2162
|
+
private getTitleColor;
|
|
2163
|
+
private showCancelButton;
|
|
2164
|
+
private getConfirmText;
|
|
2165
|
+
private getCancelText;
|
|
2166
|
+
private getConfirmButtonStyle;
|
|
2167
|
+
private getCancelButtonStyle;
|
|
2168
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
|
|
2169
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
1828
2172
|
declare class TermService {
|
|
1829
2173
|
private readonly _http;
|
|
1830
2174
|
private readonly _config;
|
|
@@ -2001,6 +2345,19 @@ declare class EchartService {
|
|
|
2001
2345
|
* @returns
|
|
2002
2346
|
*/
|
|
2003
2347
|
getRateDoughnutPieOptions(letter: string, value: number, textSize: number, color: string, total?: number): EChartsOption;
|
|
2348
|
+
/**
|
|
2349
|
+
* Semi doughnut gauge (half circle) with:
|
|
2350
|
+
* - Progress arc
|
|
2351
|
+
* - End dot
|
|
2352
|
+
* - Center letter
|
|
2353
|
+
*
|
|
2354
|
+
* @param letter - Text to show in the center
|
|
2355
|
+
* @param value - Current value
|
|
2356
|
+
* @param textSize - Center letter font size
|
|
2357
|
+
* @param color - Progress and end dot color
|
|
2358
|
+
* @param total - Max value (default 100)
|
|
2359
|
+
*/
|
|
2360
|
+
getRateSemiDoughnutOptions(letter: string, value: number, textSize: number, color: string, total?: number): EChartsOption;
|
|
2004
2361
|
static ɵfac: i0.ɵɵFactoryDeclaration<EchartService, never>;
|
|
2005
2362
|
static ɵprov: i0.ɵɵInjectableDeclaration<EchartService>;
|
|
2006
2363
|
}
|
|
@@ -2072,5 +2429,5 @@ declare function GetCookieAttributes(environment: string): CookieAttributes;
|
|
|
2072
2429
|
|
|
2073
2430
|
declare const IntelicaTheme: _primeuix_themes_types.Preset<_primeuix_themes_aura_base.AuraBaseDesignTokens>;
|
|
2074
2431
|
|
|
2075
|
-
export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, CheckboxFilterDirective, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DataDirective, DateFilterDirective, DateModeOptions, DynamicInputValidation, EchartComponent, EchartService, ElementService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FilterChipsComponent, FiltersComponent, FormatAmountPipe, GetCookieAttributes, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaCellCheckboxDirective, IntelicaTheme, ItemSplitDirective, LanguageService, MatrixColumnComponent, MatrixColumnGroupComponent, MatrixTableComponent, ModalDialogComponent, MultiSelectComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RouteGuard, RowResumenComponent, RowResumenTreeComponent, SearchComponent, SelectDetailFilterDirective, SelectFilterDirective, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TableFetchComponent, TableSortOrder, TemplateDirective, TemplateMenuComponent, TermGuard, TermPipe, TermService, TextAreaFilterDirective, TextFilterDirective, TextRangeFilterDirective, TreeColumnComponent, TreeColumnGroupComponent, TreeTableComponent, TruncatePipe, decryptData, encryptData, getColor };
|
|
2076
|
-
export type { CascadeFilterModel, ColorName, CookieAttributes, DateMode, ExportExcelCommand, FilterModel, ICell, IExcelColumnName, IExcelHeaderGroup, IFilter, PopoverInformationModel, PropertiesModel, QueryParametersModel, SearchFieldModel, SearchInputModel, SortFieldModel };
|
|
2432
|
+
export { ALERT_DEFAULTS, ALERT_ICON_PATHS, ALERT_TYPE_CONFIG, ActionDirective, ActionsMenuComponent, AddFavoritesComponent, AlertButtonMode, AlertService, AlertType, ButtonSplitComponent, CheckboxFilterDirective, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DATEPICKER_BUTTON_TYPES, DataDirective, DateFilterDirective, DateModeOptions, DatepickerComponent, DynamicInputValidation, EchartComponent, EchartService, ElementService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FilterChipsComponent, FiltersComponent, FormatAmountPipe, GetCookieAttributes, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaAlertComponent, IntelicaCellCheckboxDirective, IntelicaTheme, ItemSplitDirective, LanguageService, MatrixColumnComponent, MatrixColumnGroupComponent, MatrixTableComponent, ModalDialogComponent, MultiSelectComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RouteGuard, RowResumenComponent, RowResumenTreeComponent, SearchComponent, SelectDetailFilterDirective, SelectFilterDirective, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TableFetchComponent, TableSortOrder, TemplateDirective, TemplateMenuComponent, TermGuard, TermPipe, TermService, TextAreaFilterDirective, TextFilterDirective, TextRangeFilterDirective, TreeColumnComponent, TreeColumnGroupComponent, TreeTableComponent, TruncatePipe, decryptData, encryptData, getColor };
|
|
2433
|
+
export type { AlertButtonConfig, AlertConfig, AlertResult, AlertStyleConfig, AlertTypeConfig, CascadeFilterModel, ColorName, CookieAttributes, CustomButtonType, DateMode, ExportExcelCommand, FilterModel, ICell, IExcelColumnName, IExcelHeaderGroup, IFilter, PopoverInformationModel, PropertiesModel, QueryParametersModel, SearchFieldModel, SearchInputModel, SortFieldModel };
|