@idea-ionic/uncommon 8.11.4 → 8.11.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idea-ionic/uncommon",
3
- "version": "8.11.4",
3
+ "version": "8.11.6",
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)",
@@ -77,7 +77,7 @@ declare class IDEAOfflineService {
77
77
  /**
78
78
  * True/false if the platform is offline/online.
79
79
  */
80
- protected _isOffline: boolean;
80
+ protected _isOffline: _angular_core.WritableSignal<boolean>;
81
81
  /**
82
82
  * The observable for subscribing to online/offline status changes.
83
83
  */
@@ -113,7 +113,6 @@ declare class IDEAOldAttachmentsComponent implements OnInit {
113
113
  private _message;
114
114
  private _tc;
115
115
  private _api;
116
- private _cd;
117
116
  _offline: IDEAOfflineService;
118
117
  _translate: IDEATranslationsService;
119
118
  /**
@@ -127,7 +126,7 @@ declare class IDEAOldAttachmentsComponent implements OnInit {
127
126
  /**
128
127
  * The array in which we want to add/remove attachments.
129
128
  */
130
- readonly attachments: _angular_core.InputSignal<Attachment[]>;
129
+ readonly attachments: _angular_core.ModelSignal<Attachment[]>;
131
130
  /**
132
131
  * Regulate the mode (view/edit).
133
132
  */
@@ -147,7 +146,7 @@ declare class IDEAOldAttachmentsComponent implements OnInit {
147
146
  /**
148
147
  * Stack of errors from the last upload.
149
148
  */
150
- uploadErrors: string[];
149
+ uploadErrors: _angular_core.WritableSignal<string[]>;
151
150
  ngOnInit(): void;
152
151
  isCapacitor(): boolean;
153
152
  hasFieldAnError(field: string): boolean;
@@ -156,11 +155,12 @@ declare class IDEAOldAttachmentsComponent implements OnInit {
156
155
  takePictureAndAttach(ev: Event): Promise<void>;
157
156
  private base64toBlob;
158
157
  private addAttachment;
158
+ hideUploadError(err: string): void;
159
159
  removeAttachment(attachment: Attachment): void;
160
160
  openAttachment(attachment: Attachment): Promise<void>;
161
161
  getFormatIcon(format: string): string;
162
162
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEAOldAttachmentsComponent, never>;
163
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEAOldAttachmentsComponent, "idea-old-attachments", never, { "team": { "alias": "team"; "required": false; }; "pathResource": { "alias": "pathResource"; "required": false; "isSignal": true; }; "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": false; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "lines": { "alias": "lines"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
163
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEAOldAttachmentsComponent, "idea-old-attachments", never, { "team": { "alias": "team"; "required": false; }; "pathResource": { "alias": "pathResource"; "required": false; "isSignal": true; }; "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": false; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "lines": { "alias": "lines"; "required": false; "isSignal": true; }; }, { "attachments": "attachmentsChange"; }, never, never, true, never>;
164
164
  }
165
165
 
166
166
  /**
@@ -170,19 +170,18 @@ declare class IDEAAnnouncementComponent implements OnInit {
170
170
  protected _env: any;
171
171
  private _tc;
172
172
  private _storage;
173
- private _cdr;
174
173
  /**
175
174
  * The color for the announcement card.
176
175
  */
177
- color: string;
176
+ color: _angular_core.ModelSignal<string>;
178
177
  announcement: Announcement;
179
- htmlContent: string;
178
+ htmlContent: _angular_core.WritableSignal<string>;
180
179
  storageKey: string;
181
180
  constructor();
182
181
  ngOnInit(): Promise<void>;
183
182
  markAsRead(): Promise<void>;
184
183
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEAAnnouncementComponent, never>;
185
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEAAnnouncementComponent, "idea-announcement", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
184
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEAAnnouncementComponent, "idea-announcement", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "color": "colorChange"; }, never, never, true, never>;
186
185
  }
187
186
 
188
187
  /**
@@ -302,10 +301,10 @@ declare class IDEACalendarPickerComponent implements OnInit {
302
301
  hideClearButton: boolean;
303
302
  min?: epochDateTime | epochISOString;
304
303
  max?: epochDateTime | epochISOString;
305
- refDate: Date;
304
+ refDate: _angular_core.WritableSignal<Date>;
306
305
  selectedDate: Date;
307
306
  today: Date;
308
- calendarGrid: Date[][];
307
+ calendarGrid: _angular_core.WritableSignal<Date[][]>;
309
308
  hour: number;
310
309
  minute: number;
311
310
  hours: string[];
@@ -337,7 +336,6 @@ declare class IDEACalendarPickerComponent implements OnInit {
337
336
  declare class IDEADateTimeComponent implements OnInit, OnDestroy, OnChanges {
338
337
  private _modal;
339
338
  private _translate;
340
- private _cdr;
341
339
  /**
342
340
  * The date to show/pick.
343
341
  */
@@ -400,9 +398,9 @@ declare class IDEADateTimeComponent implements OnInit, OnDestroy, OnChanges {
400
398
  readonly max: _angular_core.InputSignal<string | number>;
401
399
  readonly dateChange: _angular_core.OutputEmitterRef<any>;
402
400
  readonly iconSelect: _angular_core.OutputEmitterRef<void>;
403
- valueToDisplay: string;
401
+ valueToDisplay: _angular_core.WritableSignal<string>;
404
402
  private langChangeSubscription;
405
- isOpening: boolean;
403
+ isOpening: _angular_core.WritableSignal<boolean>;
406
404
  ngOnInit(): void;
407
405
  ngOnDestroy(): void;
408
406
  ngOnChanges(changes: SimpleChanges): void;
@@ -488,9 +486,9 @@ declare class IDEAEchoPage implements OnInit {
488
486
  private _loading;
489
487
  private _API;
490
488
  private _translate;
491
- content: string;
492
- htmlContent: string;
493
- success: boolean;
489
+ content: _angular_core.WritableSignal<string>;
490
+ htmlContent: _angular_core.WritableSignal<string>;
491
+ success: _angular_core.WritableSignal<boolean>;
494
492
  ngOnInit(): void;
495
493
  maintenanceMode(): void;
496
494
  followRegistrationLink(code: string, user: string): Promise<void>;
@@ -848,19 +846,19 @@ declare class IDEAOfflineDataService {
848
846
  /**
849
847
  * True when running a synchronization.
850
848
  */
851
- synchronizing: boolean;
849
+ synchronizing: _angular_core.WritableSignal<boolean>;
852
850
  /**
853
851
  * The timestamp of the last synchronization.
854
852
  */
855
- lastSyncAt: epochDateTime;
853
+ lastSyncAt: _angular_core.WritableSignal<number>;
856
854
  /**
857
855
  * True if an error happened in the last synchronization.
858
856
  */
859
- errorInLastSync: boolean;
857
+ errorInLastSync: _angular_core.WritableSignal<boolean>;
860
858
  /**
861
859
  * True if the synchronisation is too vast and so require a manual action of the user.
862
860
  */
863
- requiresManualConfirmation: boolean;
861
+ requiresManualConfirmation: _angular_core.WritableSignal<boolean>;
864
862
  /**
865
863
  * If false, ignore the entire upload scenario.
866
864
  */
@@ -1112,12 +1110,11 @@ declare class IDEASentimentComponent implements OnChanges {
1112
1110
  protected _env: any;
1113
1111
  private _API;
1114
1112
  private _translate;
1115
- private _cd;
1116
1113
  _offline: IDEAOfflineService;
1117
1114
  /**
1118
1115
  * The sentiment detected from the input text.
1119
1116
  */
1120
- sentiment: Sentiment;
1117
+ sentiment: _angular_core.WritableSignal<Sentiment>;
1121
1118
  /**
1122
1119
  * The input text.
1123
1120
  */
@@ -1202,7 +1199,6 @@ declare enum Periods {
1202
1199
  declare class IDEATimeIntervalComponent implements OnInit, OnDestroy, OnChanges {
1203
1200
  private _modal;
1204
1201
  private _translate;
1205
- private _cdr;
1206
1202
  /**
1207
1203
  * The time interval to set.
1208
1204
  */
@@ -1267,9 +1263,9 @@ declare class IDEATimeIntervalComponent implements OnInit, OnDestroy, OnChanges
1267
1263
  * On select (with the field disabled) event.
1268
1264
  */
1269
1265
  readonly selectWhenDisabled: _angular_core.OutputEmitterRef<void>;
1270
- valueToDisplay: string;
1266
+ valueToDisplay: _angular_core.WritableSignal<string>;
1271
1267
  private langChangeSubscription;
1272
- isOpening: boolean;
1268
+ isOpening: _angular_core.WritableSignal<boolean>;
1273
1269
  ngOnInit(): void;
1274
1270
  ngOnDestroy(): void;
1275
1271
  ngOnChanges(changes: SimpleChanges): void;
@@ -1442,6 +1438,10 @@ declare class IDEACachedResourcesService {
1442
1438
 
1443
1439
  /**
1444
1440
  * To subscribe push notifications events.
1441
+ *
1442
+ * These are `Observable` streams fed by native Capacitor listeners (outside the Angular zone). On a
1443
+ * zoneless consumer, render any state you derive from them reactively (signals or the `async` pipe);
1444
+ * a plain field assigned inside `.subscribe(...)` won't schedule change detection.
1445
1445
  */
1446
1446
  declare class IDEAPushNotificationsService {
1447
1447
  private _platform;