@idea-ionic/uncommon 8.6.7 → 8.6.8

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,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnInit, EventEmitter, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { IonAccordionGroup, Platform } from '@ionic/angular/standalone';
4
- import { Address, Suggestion, Countries, Announcement, Color, Contacts, epochDateTime, epochISOString, ExternalCalendarSources, ClientInfo, DeltaResources, Delta, DeltaRecord, Sentiment, TimeInterval, PushNotificationsDevice } from 'idea-toolbox';
5
- import { Routes } from '@angular/router';
4
+ import { Address, Suggestion, Countries, Attachment, Announcement, Color, Contacts, epochDateTime, epochISOString, ExternalCalendarSources, ClientInfo, DeltaResources, Delta, DeltaRecord, Sentiment, TimeInterval, PushNotificationsDevice } from 'idea-toolbox';
5
+ import { IDEATranslationsService, IDEAStorageService } from '@idea-ionic/common';
6
6
  import { Observable, Subscription } from 'rxjs';
7
- import { IDEAStorageService, IDEATranslationsService } from '@idea-ionic/common';
7
+ import { Routes } from '@angular/router';
8
8
  import { HttpClient, HttpHeaders, HttpParams, HttpErrorResponse } from '@angular/common/http';
9
9
  import { PushNotificationSchema } from '@capacitor/push-notifications';
10
10
 
@@ -69,6 +69,99 @@ declare class IDEAAddressComponent implements OnInit {
69
69
  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>;
70
70
  }
71
71
 
72
+ /**
73
+ * Utility to monitor the network connection.
74
+ * Note: don't use it directly, if you're also using IDEAOfflineDataService.
75
+ */
76
+ declare class IDEAOfflineService {
77
+ /**
78
+ * True/false if the platform is offline/online.
79
+ */
80
+ protected _isOffline: boolean;
81
+ /**
82
+ * The observable for subscribing to online/offline status changes.
83
+ */
84
+ protected observable: Observable<boolean>;
85
+ /**
86
+ * The handler for listenig to network changes.
87
+ */
88
+ protected listenerHandler: any;
89
+ constructor();
90
+ /**
91
+ * Subscribe to be notified when the connection status changes.
92
+ */
93
+ subscribe(callback: (isOnline: boolean) => void): Subscription;
94
+ /**
95
+ * Quickly check the connection status.
96
+ */
97
+ isOnline(): boolean;
98
+ /**
99
+ * Quickly check the connection status.
100
+ */
101
+ isOffline(): boolean;
102
+ /**
103
+ * Quickly check for online connection.
104
+ */
105
+ check(): Promise<boolean>;
106
+ static ɵfac: i0.ɵɵFactoryDeclaration<IDEAOfflineService, never>;
107
+ static ɵprov: i0.ɵɵInjectableDeclaration<IDEAOfflineService>;
108
+ }
109
+
110
+ declare class IDEAOldAttachmentsComponent implements OnInit {
111
+ private _platform;
112
+ private _loading;
113
+ private _message;
114
+ private _tc;
115
+ private _api;
116
+ _offline: IDEAOfflineService;
117
+ _translate: IDEATranslationsService;
118
+ /**
119
+ * The team from which we want to load the resources. Default: try to guess current team.
120
+ */
121
+ team: string | null;
122
+ /**
123
+ * The path to the online API resource, as an array. Don't include the team. E.g. `['entities', entityId]`.
124
+ */
125
+ pathResource: string[];
126
+ /**
127
+ * The array in which we want to add/remove attachments.
128
+ */
129
+ attachments: Attachment[] | null;
130
+ /**
131
+ * Regulate the mode (view/edit).
132
+ */
133
+ editMode: boolean;
134
+ /**
135
+ * Show errors as reported from the parent component.
136
+ */
137
+ errors: Set<string>;
138
+ /**
139
+ * The lines attribute of the item.
140
+ */
141
+ lines: string;
142
+ /**
143
+ * URL towards to make API requests, based on the path of the resource.
144
+ */
145
+ requestURL: string;
146
+ /**
147
+ * Stack of errors from the last upload.
148
+ */
149
+ uploadErrors: string[];
150
+ ngOnInit(): void;
151
+ isCapacitor(): boolean;
152
+ hasFieldAnError(field: string): boolean;
153
+ browseFiles(): void;
154
+ addAttachmentFromFile(ev: any): void;
155
+ takePictureAndAttach(ev: Event): Promise<void>;
156
+ private base64toBlob;
157
+ private addAttachment;
158
+ removeAttachment(attachment: Attachment): void;
159
+ openAttachment(attachment: Attachment): Promise<void>;
160
+ getFormatIcon(format: string): string;
161
+ static ɵfac: i0.ɵɵFactoryDeclaration<IDEAOldAttachmentsComponent, never>;
162
+ static ɵcmp: i0.ɵɵComponentDeclaration<IDEAOldAttachmentsComponent, "idea-old-attachments", never, { "team": { "alias": "team"; "required": false; }; "pathResource": { "alias": "pathResource"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "lines": { "alias": "lines"; "required": false; }; }, {}, never, never, true, never>;
163
+ }
164
+
72
165
  /**
73
166
  * Announcement card that can be set in any interface to show the alert for this project.
74
167
  */
@@ -516,44 +609,6 @@ declare class IDEATinCanService {
516
609
  static ɵprov: i0.ɵɵInjectableDeclaration<IDEATinCanService>;
517
610
  }
518
611
 
519
- /**
520
- * Utility to monitor the network connection.
521
- * Note: don't use it directly, if you're also using IDEAOfflineDataService.
522
- */
523
- declare class IDEAOfflineService {
524
- /**
525
- * True/false if the platform is offline/online.
526
- */
527
- protected _isOffline: boolean;
528
- /**
529
- * The observable for subscribing to online/offline status changes.
530
- */
531
- protected observable: Observable<boolean>;
532
- /**
533
- * The handler for listenig to network changes.
534
- */
535
- protected listenerHandler: any;
536
- constructor();
537
- /**
538
- * Subscribe to be notified when the connection status changes.
539
- */
540
- subscribe(callback: (isOnline: boolean) => void): Subscription;
541
- /**
542
- * Quickly check the connection status.
543
- */
544
- isOnline(): boolean;
545
- /**
546
- * Quickly check the connection status.
547
- */
548
- isOffline(): boolean;
549
- /**
550
- * Quickly check for online connection.
551
- */
552
- check(): Promise<boolean>;
553
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAOfflineService, never>;
554
- static ɵprov: i0.ɵɵInjectableDeclaration<IDEAOfflineService>;
555
- }
556
-
557
612
  /**
558
613
  * To communicate with an AWS's API Gateway istance.
559
614
  *
@@ -1403,5 +1458,5 @@ declare class IDEAPushNotificationsService {
1403
1458
  static ɵprov: i0.ɵɵInjectableDeclaration<IDEAPushNotificationsService>;
1404
1459
  }
1405
1460
 
1406
- export { APIRequestOption, CacheModes, CacheableResource, ColorsPaletteComponent, EchoRequests, IDEAAWSAPIService, IDEAAWSAPISocketService, IDEAAddressComponent, IDEAAnnouncementComponent, IDEACacheableResourceComponent, IDEACachedResourcesService, IDEACalendarPickerComponent, IDEAColorPickerComponent, IDEAContactsComponent, IDEADateTimeComponent, IDEADurationComponent, IDEAEchoPage, IDEAErrorReportingService, IDEAFromTimeToTimeComponent, IDEAMDEComponent, IDEAMDEToolbarComponent, IDEAOfflineDataService, IDEAOfflineIndicatorComponent, IDEAOfflineManagerComponent, IDEAOfflineService, IDEAPushNotificationsService, IDEASentimentComponent, IDEATimeIntervalComponent, IDEATinCanService, LAST_SYNC_KEY, NUM_ELEMENTS_WITHOUT_MANUAL_SYNC, NUM_ELEMENTS_WITH_MANUAL_SYNC, Periods, QUEUE_API_REQUESTS_KEY, SYNC_EXPIRATION_INTERVAL, ideaEchoRoutes };
1461
+ export { APIRequestOption, CacheModes, CacheableResource, ColorsPaletteComponent, EchoRequests, IDEAAWSAPIService, IDEAAWSAPISocketService, IDEAAddressComponent, IDEAAnnouncementComponent, IDEACacheableResourceComponent, IDEACachedResourcesService, IDEACalendarPickerComponent, IDEAColorPickerComponent, IDEAContactsComponent, IDEADateTimeComponent, IDEADurationComponent, IDEAEchoPage, IDEAErrorReportingService, IDEAFromTimeToTimeComponent, IDEAMDEComponent, IDEAMDEToolbarComponent, IDEAOfflineDataService, IDEAOfflineIndicatorComponent, IDEAOfflineManagerComponent, IDEAOfflineService, IDEAOldAttachmentsComponent, IDEAPushNotificationsService, IDEASentimentComponent, IDEATimeIntervalComponent, IDEATinCanService, LAST_SYNC_KEY, NUM_ELEMENTS_WITHOUT_MANUAL_SYNC, NUM_ELEMENTS_WITH_MANUAL_SYNC, Periods, QUEUE_API_REQUESTS_KEY, SYNC_EXPIRATION_INTERVAL, ideaEchoRoutes };
1407
1462
  export type { APIRequest, IDEAAWSAPISocketServiceOpenOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idea-ionic/uncommon",
3
- "version": "8.6.7",
3
+ "version": "8.6.8",
4
4
  "description": "IDEA Ionic uncommon components",
5
5
  "license": "MPL-2.0",
6
6
  "author": "ITER IDEA <info@iter-idea.com> (https://iter-idea.com)",