@idea-ionic/uncommon 8.5.13 → 8.6.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.
Files changed (57) hide show
  1. package/fesm2022/idea-ionic-uncommon.mjs +85 -85
  2. package/fesm2022/idea-ionic-uncommon.mjs.map +1 -1
  3. package/index.d.ts +1405 -3
  4. package/package.json +11 -12
  5. package/esm2022/idea-ionic-uncommon.mjs +0 -5
  6. package/esm2022/public-api.mjs +0 -26
  7. package/esm2022/src/AWSAPI.service.mjs +0 -431
  8. package/esm2022/src/AWSAPISocket.service.mjs +0 -188
  9. package/esm2022/src/address/address.component.mjs +0 -409
  10. package/esm2022/src/announcement/announcement.component.mjs +0 -72
  11. package/esm2022/src/cachedResources.service.mjs +0 -55
  12. package/esm2022/src/colors/colorPicker.component.mjs +0 -191
  13. package/esm2022/src/contacts/contacts.component.mjs +0 -188
  14. package/esm2022/src/dateTime/calendarPicker.component.mjs +0 -213
  15. package/esm2022/src/dateTime/dateTime.component.mjs +0 -217
  16. package/esm2022/src/duration/duration.component.mjs +0 -195
  17. package/esm2022/src/echo/echo.page.mjs +0 -233
  18. package/esm2022/src/echo/echo.routes.mjs +0 -6
  19. package/esm2022/src/errorReporting.service.mjs +0 -69
  20. package/esm2022/src/mde/mde.component.mjs +0 -143
  21. package/esm2022/src/mde/mdeToolbar.component.mjs +0 -25
  22. package/esm2022/src/offline/cacheableResource.component.mjs +0 -56
  23. package/esm2022/src/offline/offline.service.mjs +0 -63
  24. package/esm2022/src/offline/offlineData.service.mjs +0 -480
  25. package/esm2022/src/offline/offlineIndicator.component.mjs +0 -105
  26. package/esm2022/src/offline/offlineManager.component.mjs +0 -101
  27. package/esm2022/src/pushNotifications.service.mjs +0 -57
  28. package/esm2022/src/sentiment/sentiment.component.mjs +0 -112
  29. package/esm2022/src/timeInterval/fromTimeToTime.component.mjs +0 -171
  30. package/esm2022/src/timeInterval/timeInterval.component.mjs +0 -206
  31. package/esm2022/src/tinCan.service.mjs +0 -49
  32. package/public-api.d.ts +0 -25
  33. package/src/AWSAPI.service.d.ts +0 -178
  34. package/src/AWSAPISocket.service.d.ts +0 -129
  35. package/src/address/address.component.d.ts +0 -64
  36. package/src/announcement/announcement.component.d.ts +0 -23
  37. package/src/cachedResources.service.d.ts +0 -34
  38. package/src/colors/colorPicker.component.d.ts +0 -78
  39. package/src/contacts/contacts.component.d.ts +0 -31
  40. package/src/dateTime/calendarPicker.component.d.ts +0 -45
  41. package/src/dateTime/dateTime.component.d.ts +0 -81
  42. package/src/duration/duration.component.d.ts +0 -68
  43. package/src/echo/echo.page.d.ts +0 -34
  44. package/src/echo/echo.routes.d.ts +0 -2
  45. package/src/errorReporting.service.d.ts +0 -26
  46. package/src/mde/mde.component.d.ts +0 -39
  47. package/src/mde/mdeToolbar.component.d.ts +0 -5
  48. package/src/offline/cacheableResource.component.d.ts +0 -11
  49. package/src/offline/offline.service.d.ts +0 -39
  50. package/src/offline/offlineData.service.d.ts +0 -281
  51. package/src/offline/offlineIndicator.component.d.ts +0 -25
  52. package/src/offline/offlineManager.component.d.ts +0 -17
  53. package/src/pushNotifications.service.d.ts +0 -26
  54. package/src/sentiment/sentiment.component.d.ts +0 -35
  55. package/src/timeInterval/fromTimeToTime.component.d.ts +0 -61
  56. package/src/timeInterval/timeInterval.component.d.ts +0 -84
  57. package/src/tinCan.service.d.ts +0 -31
package/public-api.d.ts DELETED
@@ -1,25 +0,0 @@
1
- export * from './src/address/address.component';
2
- export * from './src/announcement/announcement.component';
3
- export * from './src/colors/colorPicker.component';
4
- export * from './src/contacts/contacts.component';
5
- export * from './src/dateTime/calendarPicker.component';
6
- export * from './src/dateTime/dateTime.component';
7
- export * from './src/duration/duration.component';
8
- export * from './src/echo/echo.page';
9
- export * from './src/echo/echo.routes';
10
- export * from './src/mde/mde.component';
11
- export * from './src/mde/mdeToolbar.component';
12
- export * from './src/offline/cacheableResource.component';
13
- export * from './src/offline/offline.service';
14
- export * from './src/offline/offlineData.service';
15
- export * from './src/offline/offlineIndicator.component';
16
- export * from './src/offline/offlineManager.component';
17
- export * from './src/sentiment/sentiment.component';
18
- export * from './src/timeInterval/fromTimeToTime.component';
19
- export * from './src/timeInterval/timeInterval.component';
20
- export * from './src/AWSAPI.service';
21
- export * from './src/AWSAPISocket.service';
22
- export * from './src/cachedResources.service';
23
- export * from './src/errorReporting.service';
24
- export * from './src/pushNotifications.service';
25
- export * from './src/tinCan.service';
@@ -1,178 +0,0 @@
1
- import { HttpClient, HttpHeaders, HttpParams, HttpErrorResponse } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { Platform } from '@ionic/angular/standalone';
4
- import { IDEAStorageService } from '@idea-ionic/common';
5
- import { IDEAErrorReportingService } from './errorReporting.service';
6
- import { IDEATinCanService } from './tinCan.service';
7
- import { IDEAOfflineService } from './offline/offline.service';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * To communicate with an AWS's API Gateway istance.
11
- *
12
- * Includes a rundimental cache on GET requests, until Android doesn't support SWs on local files.
13
- *
14
- * Note: requires an `AWSAPIAuthToken` variable to be set by IDEATinCanService service.
15
- */
16
- export declare class IDEAAWSAPIService {
17
- protected _env: any;
18
- protected _http: HttpClient;
19
- protected _platform: Platform;
20
- protected _tc: IDEATinCanService;
21
- protected _storage: IDEAStorageService;
22
- protected _errorReporting: IDEAErrorReportingService;
23
- protected _offline: IDEAOfflineService;
24
- apiStage: string;
25
- apiUrlProject: string;
26
- ideaApiStage: string;
27
- apiUrlIDEA: string;
28
- constructor();
29
- /**
30
- * Execute an online API request.
31
- * @param resource resource name (e.g. `users`)
32
- * @param method enum HTTP methods
33
- * @param options the request options
34
- */
35
- protected request(resource: string, method: string, options?: APIRequestOption): Promise<any>;
36
- /**
37
- * Prepare the URL to which execute the request.
38
- */
39
- protected prepareURL(resource: string, opt: APIRequestOption): string;
40
- /**
41
- * Prepare the headers object to send with a request.
42
- * Note: it always adds the Authorization token (`AWSAPIAuthToken`) and the API key (`AWSAPIKey`), if set.
43
- */
44
- protected prepareHeaders(h: HttpHeaders | any): HttpHeaders;
45
- /**
46
- * Prepare the queryParams object to send with a request; if requested, add some info about the client.
47
- */
48
- protected prepareQueryParams(qp: HttpParams | any, addClientInfo?: boolean): HttpParams;
49
- /**
50
- * Converts the error message to be readable.
51
- */
52
- protected fixErrMessageBeforeReject(err: HttpErrorResponse, reject: any): void;
53
- /**
54
- * Use the HttpClient to execute a raw request.
55
- */
56
- rawRequest(): HttpClient;
57
- /**
58
- * HEAD request.
59
- * @param resource resource name (e.g. `users`)
60
- * @param options the request options
61
- */
62
- headResource(resource: string, options?: APIRequestOption): Promise<any>;
63
- /**
64
- * GET request. Include options to cache the requests (`options.useCache`), to work also offline.
65
- * @param resource resource name (e.g. `users`)
66
- * @param options the request options
67
- */
68
- getResource(resource: string, options?: APIRequestOption): Promise<any>;
69
- /**
70
- * Observe a GET request. Include options to cache the requests (`options.useCache`), to work also offline.
71
- * @param resource resource name (e.g. `users`)
72
- * @param options the request options
73
- */
74
- getResourceObserver(resource: string, options?: APIRequestOption): Observable<any>;
75
- /**
76
- * Execute a GET request from the local storage.
77
- * @param resource resource name (e.g. `users`)
78
- * @param options the request options
79
- */
80
- getFromCache(resource: string, options?: APIRequestOption): Promise<any>;
81
- /**
82
- * Execute a PUT request in the local storage.
83
- * @param resource resource name (e.g. `users`)
84
- * @param data resource data
85
- * @param options the request options
86
- */
87
- putInCache(resource: string, data: any, options?: APIRequestOption): Promise<void>;
88
- /**
89
- * Execute a DELETE request in the local storage.
90
- * @param resource resource name (e.g. `users`)
91
- * @param options the request options
92
- */
93
- deleteFromCache(resource: string, options?: APIRequestOption): Promise<void>;
94
- /**
95
- * POST request.
96
- * @param resource resource name (e.g. `users`)
97
- * @param options the request options
98
- */
99
- postResource(resource: string, options?: APIRequestOption): Promise<any>;
100
- /**
101
- * PUT request.
102
- * @param resource resource name (e.g. `users`)
103
- * @param options the request options
104
- */
105
- putResource(resource: string, options?: APIRequestOption): Promise<any>;
106
- /**
107
- * PATCH request.
108
- * @param resource resource name (e.g. `users`)
109
- * @param options the request options
110
- */
111
- patchResource(resource: string, options?: APIRequestOption): Promise<any>;
112
- /**
113
- * DELETE request.
114
- * @param resource resource name (e.g. `users`)
115
- * @param options the request options
116
- */
117
- deleteResource(resource: string, options?: APIRequestOption): Promise<any>;
118
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAWSAPIService, never>;
119
- static ɵprov: i0.ɵɵInjectableDeclaration<IDEAAWSAPIService>;
120
- }
121
- /**
122
- * The options of an API request.
123
- */
124
- export declare class APIRequestOption {
125
- /**
126
- * To identify a specific resource by id.
127
- */
128
- resourceId?: string;
129
- /**
130
- * The query parameters of the request.
131
- */
132
- params?: any;
133
- /**
134
- * The body of the request.
135
- */
136
- body?: any;
137
- /**
138
- * The additional headers of the request; `Authorization` is included by default.
139
- */
140
- headers?: any;
141
- /**
142
- * Which mode to use to take advance of the requests caching mechanism.
143
- */
144
- useCache?: CacheModes;
145
- /**
146
- * If true, report the errors that occurs during the request.
147
- */
148
- reportError?: boolean;
149
- /**
150
- * If true, use IDEA's API instead of the project's API).
151
- */
152
- idea?: boolean;
153
- /**
154
- * If `idea` is not set, set this to use an alternative API URL for the request.
155
- */
156
- alternativeAPI?: string;
157
- }
158
- /**
159
- * Set of usable cache modes.
160
- */
161
- export declare enum CacheModes {
162
- /**
163
- * Return the result from an online request, with no cache involved.
164
- */
165
- NO_CACHE = 0,
166
- /**
167
- * Return the result from an online request, storing the result in the cache, to update it with the latest data.
168
- */
169
- NETWORK_FIRST = 1,
170
- /**
171
- * Return the result from the cache, but also execute the request online, to update the cache with the latest data.
172
- */
173
- CACHE_FIRST = 2,
174
- /**
175
- * Return the result from the cache, without retrying online if a result wasn't found.
176
- */
177
- CACHE_ONLY = 3
178
- }
@@ -1,129 +0,0 @@
1
- import { epochDateTime } from 'idea-toolbox';
2
- import { IDEAErrorReportingService } from './errorReporting.service';
3
- import { IDEAOfflineService } from './offline/offline.service';
4
- import { IDEATinCanService } from './tinCan.service';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * To communicate with an AWS API Gateway websocket istance.
8
- *
9
- * Note: requires an `AWSAPIAuthToken` variable to be set by IDEATinCanService service.
10
- */
11
- export declare class IDEAAWSAPISocketService {
12
- protected _env: any;
13
- protected _tc: IDEATinCanService;
14
- protected _errorReporting: IDEAErrorReportingService;
15
- protected _offline: IDEAOfflineService;
16
- apiStage: string;
17
- /**
18
- * The URL to connect for socket communication.
19
- */
20
- WEBSOCKET_API_URL: string;
21
- /**
22
- * The current websocket connection.
23
- */
24
- protected connection: WebSocket;
25
- /**
26
- * The options with which we opened a connection, to re-open it if needed.
27
- */
28
- protected options: IDEAAWSAPISocketServiceOpenOptions;
29
- /**
30
- * A timeout to ping the connection every once in a while, to keep it alive.
31
- */
32
- protected pingTimeout: any;
33
- /**
34
- * The timestamp of last activity for the connection, to make sure to ping it in case it's almost dead.
35
- */
36
- protected lastActivityAt: epochDateTime;
37
- /**
38
- * A timeout to re-try to open a connection later on, hoping we are online again.
39
- */
40
- protected offlineTimeout: any;
41
- /**
42
- * Whether the connection was correctly opened at least once.
43
- */
44
- protected wasOpenAtLeastOnce: boolean;
45
- /**
46
- * The maximum amount of minutes of inactivity after which we ping the connection to keep it alive.
47
- */
48
- MAX_INACTIVITY_MINUTES: number;
49
- /**
50
- * The amount of minutes after which we check if the connection needs to be pinged to be kept alive.
51
- */
52
- KEEP_ALIVE_MINUTES_INTERVAL: number;
53
- /**
54
- * In case we are offline, the amount of minutes after which we check if we are online, so we can re-connect.
55
- */
56
- TRY_AGAIN_OFFLINE_MINUTES: number;
57
- constructor();
58
- /**
59
- * Open a connection to the websocket API.
60
- */
61
- open(options?: IDEAAWSAPISocketServiceOpenOptions): void;
62
- /**
63
- * Close the current connection to the websocket API.
64
- * @param itShouldReopen in case the connection was forcibly closed, try to re-open it (with offline mechanism).
65
- */
66
- close(itShouldReopen?: boolean): void;
67
- /**
68
- * Try to-reopen a closed connection, if we are online.
69
- */
70
- protected reOpen(): Promise<void>;
71
- /**
72
- * Whether the socket connection is currently open.
73
- */
74
- isOpen(): boolean;
75
- /**
76
- * A simple message delivered to the server to keep the connection alive.
77
- */
78
- protected ping(): void;
79
- /**
80
- * Helper to keep the connection alive, if needed.
81
- */
82
- protected keepItAlive(): void;
83
- /**
84
- * Convert minutes to milliseconds.
85
- */
86
- protected minutesToMS(minutes: number): number;
87
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAWSAPISocketService, never>;
88
- static ɵprov: i0.ɵɵInjectableDeclaration<IDEAAWSAPISocketService>;
89
- }
90
- /**
91
- * The options to open a socket connection and handle its events.
92
- */
93
- export interface IDEAAWSAPISocketServiceOpenOptions {
94
- /**
95
- * Optional parameters needed to be passed to the socket's authorizer to open the connection.
96
- * Note: the authentication (IDEA standard) is automatically included, if `noAuth` isn't set.
97
- */
98
- openParams?: {
99
- [key: string]: any;
100
- };
101
- /**
102
- * If set, the socket connection won't require authentication.
103
- */
104
- noAuth?: boolean;
105
- /**
106
- * Action to execute when the connection is confirmed "open" by the server.
107
- */
108
- onOpen?: (event: any) => void;
109
- /**
110
- * Action to execute when the connection closes (for external events).
111
- */
112
- onClose?: (event: any) => void;
113
- /**
114
- * Action to execute when a message is delivered from the server.
115
- */
116
- onMessage?: (event: any) => void;
117
- /**
118
- * Action to execute when an error occurs.
119
- */
120
- onError?: (event: any) => void;
121
- /**
122
- * If true, report the errors that occur (IDEA standard).
123
- */
124
- reportError?: boolean;
125
- /**
126
- * Whether to show debug messages.
127
- */
128
- debug?: boolean;
129
- }
@@ -1,64 +0,0 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
2
- import { IonAccordionGroup } from '@ionic/angular/standalone';
3
- import { Address, Countries, Suggestion } from 'idea-toolbox';
4
- import * as i0 from "@angular/core";
5
- export declare class IDEAAddressComponent implements OnInit {
6
- /**
7
- * The address to manage.
8
- */
9
- address: Address;
10
- addressChange: EventEmitter<Address>;
11
- /**
12
- * If true, show the field `contact`.
13
- */
14
- showContact: boolean;
15
- /**
16
- * If true, show the field `address2`.
17
- */
18
- showAddress2: boolean;
19
- /**
20
- * If true, show the field `phone`.
21
- */
22
- showPhone: boolean;
23
- /**
24
- * If true, show the field `email`.
25
- */
26
- showEmail: boolean;
27
- /**
28
- * Whether the fields are editable or disabled.
29
- */
30
- editMode: boolean;
31
- /**
32
- * If true, show obligatory dots.
33
- */
34
- obligatory: boolean;
35
- /**
36
- * The lines attribute of the item.
37
- */
38
- lines: string;
39
- /**
40
- * The color for the component.
41
- */
42
- color: string;
43
- /**
44
- * The label to show for the field; if not set, it has a default value.
45
- */
46
- label: string;
47
- /**
48
- * The placeholder to show for the field.
49
- */
50
- placeholder: string;
51
- /**
52
- * To toggle the detailed view.
53
- */
54
- openByDefault: boolean;
55
- countriesSuggestions: Suggestion[];
56
- Countries: typeof Countries;
57
- accordion: IonAccordionGroup;
58
- ngOnInit(): void;
59
- isCollapsed(): boolean;
60
- getCountryName(countryCode: Countries): string;
61
- setCountryFromSuggestion(suggestion: Suggestion): void;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAddressComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEAAddressComponent, "idea-address", never, { "address": { "alias": "address"; "required": false; }; "showContact": { "alias": "showContact"; "required": false; }; "showAddress2": { "alias": "showAddress2"; "required": false; }; "showPhone": { "alias": "showPhone"; "required": false; }; "showEmail": { "alias": "showEmail"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "obligatory": { "alias": "obligatory"; "required": false; }; "lines": { "alias": "lines"; "required": false; }; "color": { "alias": "color"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "openByDefault": { "alias": "openByDefault"; "required": false; }; }, { "addressChange": "addressChange"; }, never, never, true, never>;
64
- }
@@ -1,23 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { Announcement } from 'idea-toolbox';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Announcement card that can be set in any interface to show the alert for this project.
6
- */
7
- export declare class IDEAAnnouncementComponent implements OnInit {
8
- protected _env: any;
9
- private _tc;
10
- private _storage;
11
- /**
12
- * The color for the announcement card.
13
- */
14
- color: string;
15
- announcement: Announcement;
16
- htmlContent: string;
17
- storageKey: string;
18
- constructor();
19
- ngOnInit(): Promise<void>;
20
- markAsRead(): Promise<void>;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAnnouncementComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEAAnnouncementComponent, "idea-announcement", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
23
- }
@@ -1,34 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * *The service aims to solve the resource caching behaviour of browsers.*
4
- * *It's suggested to use it with avatars and other images/resources that can change based on user input.*
5
- * The browsers tend to cache images based on their URL;
6
- * sometimes, the image changes but the URL doesn't, and the browser keeps showing the old image.
7
- * Through this service, when we change a resource (e.g. an image), we also update a cache key.
8
- * Each time we load a resource through the service's method `getCachedImage`, we use the cache key as a query param;
9
- * in this way, the browser uses the same cached images, until we change the cache key.
10
- */
11
- export declare class IDEACachedResourcesService {
12
- /**
13
- * Change it only if necessary.
14
- */
15
- cacheKeyIndex: string;
16
- private cacheKey;
17
- private storage;
18
- constructor();
19
- /**
20
- * Load the cache key from the local storage.
21
- */
22
- private loadKeyFromStorage;
23
- /**
24
- * Get an image using the service's caching mechanism.
25
- * Optionally update the cache key and forces the image's cache deletion.
26
- */
27
- getCachedResource(url: string, updateCacheKey?: boolean): string;
28
- /**
29
- * Set a new cache key.
30
- */
31
- updateCacheKey(key?: string | number): Promise<void>;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEACachedResourcesService, never>;
33
- static ɵprov: i0.ɵɵInjectableDeclaration<IDEACachedResourcesService>;
34
- }
@@ -1,78 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { Color } from 'idea-toolbox';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Pick a color from a defined set.
6
- */
7
- export declare class IDEAColorPickerComponent {
8
- /**
9
- * The pickable colors.
10
- */
11
- colors: Color[];
12
- /**
13
- * The current color.
14
- */
15
- current: string;
16
- /**
17
- * The label for the field.
18
- */
19
- label: string;
20
- /**
21
- * A placeholder for the field.
22
- */
23
- placeholder: string;
24
- /**
25
- * The icon for the field.
26
- */
27
- icon: string;
28
- /**
29
- * The color of the icon.
30
- */
31
- iconColor: string;
32
- /**
33
- * If true, the component is disabled.
34
- */
35
- disabled: boolean;
36
- /**
37
- * If true, the obligatory dot is shown.
38
- */
39
- obligatory: boolean;
40
- /**
41
- * Lines preferences for the item.
42
- */
43
- lines: string;
44
- /**
45
- * The color for the component.
46
- */
47
- color: string;
48
- /**
49
- * On select event.
50
- */
51
- select: EventEmitter<string>;
52
- /**
53
- * Icon select.
54
- */
55
- iconSelect: EventEmitter<void>;
56
- private _popover;
57
- openPalette(event: any): Promise<void>;
58
- doIconSelect(event: any): void;
59
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAColorPickerComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEAColorPickerComponent, "idea-color-picker", never, { "colors": { "alias": "colors"; "required": false; }; "current": { "alias": "current"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "obligatory": { "alias": "obligatory"; "required": false; }; "lines": { "alias": "lines"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "select": "select"; "iconSelect": "iconSelect"; }, never, never, true, never>;
61
- }
62
- /**
63
- * Component to open in a popover for displaying the colors available.
64
- */
65
- export declare class ColorsPaletteComponent {
66
- private _popover;
67
- /**
68
- * The pickable colors.
69
- */
70
- colors: Color[];
71
- /**
72
- * The current color.
73
- */
74
- current: string;
75
- pick(color: string): void;
76
- static ɵfac: i0.ɵɵFactoryDeclaration<ColorsPaletteComponent, never>;
77
- static ɵcmp: i0.ɵɵComponentDeclaration<ColorsPaletteComponent, "idea-colors-palette", never, { "colors": { "alias": "colors"; "required": false; }; "current": { "alias": "current"; "required": false; }; }, {}, never, never, true, never>;
78
- }
@@ -1,31 +0,0 @@
1
- import { Contacts } from 'idea-toolbox';
2
- import * as i0 from "@angular/core";
3
- export declare class IDEAContactsComponent {
4
- private _alert;
5
- private _translate;
6
- /**
7
- * The contacts to manage.
8
- */
9
- contacts: Contacts;
10
- /**
11
- * If true, show the field `name`.
12
- */
13
- showName: boolean;
14
- /**
15
- * Whether the fields are editable or disabled.
16
- */
17
- editMode: boolean;
18
- /**
19
- * The lines attribute of the item.
20
- */
21
- lines: string;
22
- /**
23
- * The color for the component.
24
- */
25
- color: string;
26
- sendEmail(): void;
27
- call(): void;
28
- private preExternalAction;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAContactsComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEAContactsComponent, "idea-contacts", never, { "contacts": { "alias": "contacts"; "required": false; }; "showName": { "alias": "showName"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "lines": { "alias": "lines"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
31
- }
@@ -1,45 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { epochDateTime, epochISOString } from 'idea-toolbox';
3
- import * as i0 from "@angular/core";
4
- export declare class IDEACalendarPickerComponent implements OnInit {
5
- private _modal;
6
- private _alert;
7
- private _translate;
8
- inputDate: epochDateTime | epochISOString;
9
- timePicker: boolean;
10
- manualTimePicker: boolean;
11
- title: string;
12
- hideClearButton: boolean;
13
- min: epochDateTime | epochISOString;
14
- max: epochDateTime | epochISOString;
15
- refDate: Date;
16
- selectedDate: Date;
17
- today: Date;
18
- calendarGrid: Date[][];
19
- hour: number;
20
- minute: number;
21
- hours: string[];
22
- minutes: string[];
23
- weekDays: string[];
24
- dateMin: Date;
25
- dateMax: Date;
26
- ngOnInit(): void;
27
- getLocalisedDay(date: Date): number;
28
- buildCalendarGrid(refDate: Date): void;
29
- addYears(offset: number): void;
30
- setYear(year: string | number): void;
31
- addMonths(offset: number): void;
32
- showMonths(): Promise<void>;
33
- isDateSelectable(date: Date): boolean;
34
- selectDate(date: Date): void;
35
- selectHour(hour: string): void;
36
- selectMinute(minute: string): void;
37
- isSameDay(a: Date, b: Date): boolean;
38
- isSameMonth(a: Date, b: Date): boolean;
39
- isSameHour(hour: string): boolean;
40
- isSameMinute(minute: string): boolean;
41
- save(reset?: boolean): void;
42
- close(): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEACalendarPickerComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEACalendarPickerComponent, "idea-calendar-picker", never, { "inputDate": { "alias": "inputDate"; "required": false; }; "timePicker": { "alias": "timePicker"; "required": false; }; "manualTimePicker": { "alias": "manualTimePicker"; "required": false; }; "title": { "alias": "title"; "required": false; }; "hideClearButton": { "alias": "hideClearButton"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
45
- }