@arsedizioni/ars-utils 21.2.244 → 21.2.245
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +6 -6
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +41 -41
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +7 -7
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +18 -18
- package/types/arsedizioni-ars-utils-core.d.ts +1 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
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
|
|
1269
|
-
* @param params - The notification parameters including recipients and
|
|
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
|
-
|
|
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
|
|
122
|
-
* @param item - The document to add
|
|
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
|
-
|
|
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.
|
|
@@ -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
|
|
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
|
|
1051
|
-
protected readonly
|
|
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; }; "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1222
|
-
* For new
|
|
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
|
|
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
|
/**
|