@arsedizioni/ars-utils 21.2.244 → 21.2.246

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": "@arsedizioni/ars-utils",
3
- "version": "21.2.244",
3
+ "version": "21.2.246",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -30,9 +30,9 @@ declare const ClipperMessages: {
30
30
  COMMAND_CALENDAR_ADD: string;
31
31
  COMMAND_WORKING_OPEN: string;
32
32
  COMMAND_WORKING_ADD: string;
33
- COMMAND_PROPERTY_ADD: string;
34
- COMMAND_PROPERTY_DELETE: string;
35
- COMMAND_PROPERTY_UPDATE: string;
33
+ COMMAND_NOTES_ADD: string;
34
+ COMMAND_NOTES_DELETE: string;
35
+ COMMAND_NOTES_UPDATE: string;
36
36
  COMMAND_SEARCH_RESTORED: string;
37
37
  COMMAND_SEARCH_EXECUTED: string;
38
38
  COMMAND_SEARCH_EMPTY_RESULT: string;
@@ -413,7 +413,7 @@ interface ClipperDocumentInfo {
413
413
  originDescription?: string;
414
414
  author?: string;
415
415
  anchors?: ClipperDocumentAnchorInfo[];
416
- properties?: ClipperDocumentNote[];
416
+ notes?: ClipperDocumentNote[];
417
417
  chunks?: ClipperDocumentAnchorInfo[];
418
418
  chunksList?: string;
419
419
  taxonomy?: string;
@@ -1265,10 +1265,10 @@ declare class ClipperService {
1265
1265
  */
1266
1266
  sendTo(params: ClipperSendDocumentsByEmailParams): rxjs.Observable<ApiResult<number>>;
1267
1267
  /**
1268
- * Sends an email notification about a document property update to the specified recipients.
1269
- * @param params - The notification parameters including recipients and property details.
1268
+ * Sends an email notification about a document note update to the specified recipients.
1269
+ * @param params - The notification parameters including recipients and note details.
1270
1270
  */
1271
- notifyPropertyTo(params: ClipperNotifyDocumentNoteParams): rxjs.Observable<ApiResult<UpdateResultModel<ClipperDocumentNoteTracking>>>;
1271
+ notifyNoteTo(params: ClipperNotifyDocumentNoteParams): rxjs.Observable<ApiResult<UpdateResultModel<ClipperDocumentNoteTracking>>>;
1272
1272
  /**
1273
1273
  * Display a page the full document report
1274
1274
  */
@@ -118,10 +118,10 @@ declare class ClipperDocumentManager {
118
118
  */
119
119
  addItemsToBag(items: ClipperDocumentInfo[]): void;
120
120
  /**
121
- * Sends a broadcast message to add custom properties to the given document.
122
- * @param item - The document to add properties to.
121
+ * Sends a broadcast message to add custom notes to the given document.
122
+ * @param item - The document to add notes to.
123
123
  */
124
- addItemProperty(item: ClipperDocumentInfo): void;
124
+ addItemNotes(item: ClipperDocumentInfo): void;
125
125
  /**
126
126
  * Copies the document's metadata (ID, titles, number, date, origin) as a tab-separated string to the clipboard.
127
127
  * @param item - The document whose metadata to copy.
@@ -1018,7 +1018,7 @@ declare class ClipperDocumentMenuComponent {
1018
1018
  /** Internal counter incremented on each external selection-model change to drive signal re-evaluation. */
1019
1019
  private readonly selectionChangeTick;
1020
1020
  readonly useSelections: _angular_core.InputSignal<boolean>;
1021
- readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1021
+ readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1022
1022
  /**
1023
1023
  * Computed signal that returns the current effective document selection.
1024
1024
  * Re-evaluates when any input signal or the underlying selection model changes.
@@ -1034,7 +1034,7 @@ declare class ClipperDocumentMenuComponent {
1034
1034
  readonly canFind: _angular_core.InputSignal<boolean>;
1035
1035
  readonly canUseCalendar: _angular_core.InputSignal<boolean>;
1036
1036
  readonly canUseArchive: _angular_core.InputSignal<boolean>;
1037
- readonly canUseProperties: _angular_core.InputSignal<boolean>;
1037
+ readonly canUseNotes: _angular_core.InputSignal<boolean>;
1038
1038
  readonly canUseAIAssistant: _angular_core.InputSignal<boolean>;
1039
1039
  protected readonly canUseAIEditor: boolean;
1040
1040
  readonly canUseRS: _angular_core.InputSignal<boolean>;
@@ -1047,8 +1047,8 @@ declare class ClipperDocumentMenuComponent {
1047
1047
  protected readonly canOpen: _angular_core.Signal<boolean>;
1048
1048
  /** `true` when at least one item can be sent by email. */
1049
1049
  protected readonly canSendByEmail: _angular_core.Signal<boolean>;
1050
- /** `true` when custom properties can be added to the single selected document. */
1051
- protected readonly canAddProperties: _angular_core.Signal<boolean>;
1050
+ /** `true` when custom notes can be added to the single selected document. */
1051
+ protected readonly canAddNotes: _angular_core.Signal<boolean>;
1052
1052
  /** `true` when archive access is enabled and there is at least one selected item. */
1053
1053
  protected readonly canAddToArchive: _angular_core.Signal<boolean>;
1054
1054
  /** `true` when all selected items are deadline/alert documents and calendar is enabled. */
@@ -1116,7 +1116,7 @@ declare class ClipperDocumentMenuComponent {
1116
1116
  */
1117
1117
  protected openReferences(item: ClipperDocumentInfo | undefined, mode: number): void;
1118
1118
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClipperDocumentMenuComponent, never>;
1119
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClipperDocumentMenuComponent, "clipper-document-menu", never, { "useSelections": { "alias": "useSelections"; "required": false; "isSignal": true; }; "selectionSource": { "alias": "selectionSource"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "isReference": { "alias": "isReference"; "required": false; "isSignal": true; }; "isReadable": { "alias": "isReadable"; "required": false; "isSignal": true; }; "isReadableModel": { "alias": "isReadableModel"; "required": false; "isSignal": true; }; "isLawInForce": { "alias": "isLawInForce"; "required": false; "isSignal": true; }; "canPrint": { "alias": "canPrint"; "required": false; "isSignal": true; }; "canFind": { "alias": "canFind"; "required": false; "isSignal": true; }; "canUseCalendar": { "alias": "canUseCalendar"; "required": false; "isSignal": true; }; "canUseArchive": { "alias": "canUseArchive"; "required": false; "isSignal": true; }; "canUseProperties": { "alias": "canUseProperties"; "required": false; "isSignal": true; }; "canUseAIAssistant": { "alias": "canUseAIAssistant"; "required": false; "isSignal": true; }; "canUseRS": { "alias": "canUseRS"; "required": false; "isSignal": true; }; "canOpenDocument": { "alias": "canOpenDocument"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1119
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClipperDocumentMenuComponent, "clipper-document-menu", never, { "useSelections": { "alias": "useSelections"; "required": false; "isSignal": true; }; "selectionSource": { "alias": "selectionSource"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "isReference": { "alias": "isReference"; "required": false; "isSignal": true; }; "isReadable": { "alias": "isReadable"; "required": false; "isSignal": true; }; "isReadableModel": { "alias": "isReadableModel"; "required": false; "isSignal": true; }; "isLawInForce": { "alias": "isLawInForce"; "required": false; "isSignal": true; }; "canPrint": { "alias": "canPrint"; "required": false; "isSignal": true; }; "canFind": { "alias": "canFind"; "required": false; "isSignal": true; }; "canUseCalendar": { "alias": "canUseCalendar"; "required": false; "isSignal": true; }; "canUseArchive": { "alias": "canUseArchive"; "required": false; "isSignal": true; }; "canUseNotes": { "alias": "canUseNotes"; "required": false; "isSignal": true; }; "canUseAIAssistant": { "alias": "canUseAIAssistant"; "required": false; "isSignal": true; }; "canUseRS": { "alias": "canUseRS"; "required": false; "isSignal": true; }; "canOpenDocument": { "alias": "canOpenDocument"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1120
1120
  }
1121
1121
 
1122
1122
  declare class ClipperNoteBadgeComponent {
@@ -1139,38 +1139,38 @@ declare class ClipperNoteBadgeComponent {
1139
1139
  protected readonly totalTrackings: _angular_core.Signal<number>;
1140
1140
  constructor();
1141
1141
  /**
1142
- * Computes the badge background color by blending the property colour with
1142
+ * Computes the badge background color by blending the note colour with
1143
1143
  * black (dark theme) or white (light theme).
1144
1144
  * @returns The calculated background colour as a CSS `color-mix()` string.
1145
1145
  */
1146
1146
  private getBackgroundColor;
1147
1147
  /**
1148
- * Opens the property-details popup positioned near the mouse cursor.
1148
+ * Opens the note-details popup positioned near the mouse cursor.
1149
1149
  * Stops event propagation to avoid triggering parent click handlers.
1150
1150
  * @param event - The mouse event used to determine the popup position.
1151
1151
  */
1152
1152
  protected showPopup(event: MouseEvent): void;
1153
1153
  /**
1154
- * Closes the property-details popup and cleans up overlay resources.
1154
+ * Closes the note-details popup and cleans up overlay resources.
1155
1155
  * @param event - Optional mouse event; when provided, propagation is stopped.
1156
1156
  */
1157
1157
  protected closePopup(event?: MouseEvent): void;
1158
1158
  /**
1159
- * Opens the property-edit dialog pre-populated with the current property data.
1159
+ * Opens the note-edit dialog pre-populated with the current note data.
1160
1160
  * On confirmation, updates the model and broadcasts the change.
1161
1161
  * Stops event propagation to avoid triggering parent click handlers.
1162
1162
  * @param event - The mouse event that triggered the edit action.
1163
1163
  */
1164
1164
  protected edit(event: MouseEvent): void;
1165
1165
  /**
1166
- * Opens a confirmation dialog and, on confirmation, deletes the property via the service.
1166
+ * Opens a confirmation dialog and, on confirmation, deletes the note via the service.
1167
1167
  * Broadcasts the deletion and closes the popup on success.
1168
1168
  * Stops event propagation to avoid triggering parent click handlers.
1169
1169
  * @param event - The mouse event that triggered the delete action.
1170
1170
  */
1171
1171
  protected delete(event: MouseEvent): void;
1172
1172
  /**
1173
- * Opens the send-by-email dialog for the document linked to this property.
1173
+ * Opens the send-by-email dialog for the document linked to this note.
1174
1174
  * On confirmation, sends a notification via the service and updates tracking data.
1175
1175
  * Stops event propagation to avoid triggering parent click handlers.
1176
1176
  * @param event - The mouse event that triggered the send action.
@@ -1178,14 +1178,14 @@ declare class ClipperNoteBadgeComponent {
1178
1178
  protected sendTo(event: MouseEvent): void;
1179
1179
  /**
1180
1180
  * Opens a confirmation dialog and, on confirmation, resends the email notifications
1181
- * associated with this property.
1181
+ * associated with this note.
1182
1182
  * Stops event propagation to avoid triggering parent click handlers.
1183
1183
  * @param event - The mouse event that triggered the resend action.
1184
1184
  * @param notifyIfNotOpen - When `true`, only recipients who have not yet opened the previous email are notified.
1185
1185
  */
1186
1186
  protected sendAgain(event: MouseEvent, notifyIfNotOpen: boolean): void;
1187
1187
  /**
1188
- * Fetches the latest tracking data for the property from the server and updates the model.
1188
+ * Fetches the latest tracking data for the note from the server and updates the model.
1189
1189
  * Stops event propagation to avoid triggering parent click handlers.
1190
1190
  * @param event - The mouse event that triggered the refresh action.
1191
1191
  */
@@ -1213,13 +1213,13 @@ declare class ClipperNoteEditComponent {
1213
1213
  */
1214
1214
  protected colorName(value: string): string;
1215
1215
  /**
1216
- * Loads the teams available for shared-workspace properties and populates the teams dropdown.
1216
+ * Loads the teams available for shared-workspace notes and populates the teams dropdown.
1217
1217
  * Pre-selects the team matching the current item's teamId, defaulting to "Personale".
1218
1218
  */
1219
1219
  private loadTeams;
1220
1220
  /**
1221
- * Saves the property via the service and emits the result through the `done` output.
1222
- * For new properties, assigns the selected team before saving.
1221
+ * Saves the note via the service and emits the result through the `done` output.
1222
+ * For new notes, assigns the selected team before saving.
1223
1223
  */
1224
1224
  protected ok(): void;
1225
1225
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClipperNoteEditComponent, never>;
@@ -936,7 +936,7 @@ declare class SelectableModel<T, V> {
936
936
  readonly hasValue: i0.Signal<boolean>;
937
937
  /**
938
938
  * @param allowMultiSelect - When `true` (default), multiple items can be selected simultaneously.
939
- * @param lookupFieldName - Name of the property used as the unique key when searching the internal list (default: `'id'`).
939
+ * @param lookupFieldName - Name of the note used as the unique key when searching the internal list (default: `'id'`).
940
940
  */
941
941
  constructor(allowMultiSelect?: boolean, lookupFieldName?: string);
942
942
  /**