@arsedizioni/ars-utils 20.3.45 → 20.3.47
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/clipper.ui/index.d.ts +1 -1
- package/core/index.d.ts +99 -85
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +103 -79
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +3 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +5 -5
- package/ui.application/index.d.ts +1 -1
package/clipper.ui/index.d.ts
CHANGED
|
@@ -1033,7 +1033,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
|
|
|
1033
1033
|
private changeDetector;
|
|
1034
1034
|
private clipperService;
|
|
1035
1035
|
readonly useSelections: _angular_core.InputSignal<boolean>;
|
|
1036
|
-
readonly selectionSource: _angular_core.InputSignal<"selection" | "
|
|
1036
|
+
readonly selectionSource: _angular_core.InputSignal<"selection" | "none" | "bag">;
|
|
1037
1037
|
protected selection: () => ClipperDocumentInfo[];
|
|
1038
1038
|
readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
|
|
1039
1039
|
readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
|
package/core/index.d.ts
CHANGED
|
@@ -715,12 +715,98 @@ declare class SelectableModel<T, V> {
|
|
|
715
715
|
hasValue(): boolean;
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
+
/**
|
|
719
|
+
* Standard Broadcast Messages Manager
|
|
720
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel
|
|
721
|
+
*/
|
|
722
|
+
/**
|
|
723
|
+
* The message bag sent as a message
|
|
724
|
+
*/
|
|
725
|
+
interface BroadcastChannelMessageBag<T> {
|
|
726
|
+
messageId: string;
|
|
727
|
+
sender: string;
|
|
728
|
+
data?: T;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Message subscription params
|
|
732
|
+
*/
|
|
733
|
+
interface BroadcastChannelSubscriberInfo<T> {
|
|
734
|
+
messageId: string;
|
|
735
|
+
action: (bag: BroadcastChannelMessageBag<T>) => void;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Web Standard Broadcast Messages Manager
|
|
739
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel
|
|
740
|
+
*/
|
|
741
|
+
declare class BroadcastChannelManager {
|
|
742
|
+
private channel?;
|
|
743
|
+
private subscriptions;
|
|
744
|
+
/**
|
|
745
|
+
* Get the current channel registration
|
|
746
|
+
*/
|
|
747
|
+
get currentBus(): string | undefined;
|
|
748
|
+
constructor(bus: string);
|
|
749
|
+
dispose(): void;
|
|
750
|
+
/**
|
|
751
|
+
* Send a message
|
|
752
|
+
* @param bag The message, see also {@link BroadcastChannelMessageBag}
|
|
753
|
+
*
|
|
754
|
+
* @example
|
|
755
|
+
* channel.sendMessage({ messageId: 'my-broadcast-message', sender: 'the-sender', data: value });
|
|
756
|
+
*/
|
|
757
|
+
sendMessage<T>(bag: BroadcastChannelMessageBag<T>): void;
|
|
758
|
+
/**
|
|
759
|
+
* Send a message
|
|
760
|
+
* @param bag The message, see also {@link BroadcastChannelMessageBag}
|
|
761
|
+
* @param delay The number of milliseconds to wait before sending the message, see also {@link setTimeout}
|
|
762
|
+
*
|
|
763
|
+
* @example
|
|
764
|
+
* channel.sendMessage({ messageId: 'my-broadcast-message', sender: 'the-sender', data: value }, 250);
|
|
765
|
+
*/
|
|
766
|
+
sendMessage<T>(bag: BroadcastChannelMessageBag<T>, delay?: number): void;
|
|
767
|
+
/**
|
|
768
|
+
* Send a message
|
|
769
|
+
* @param messageId The message id
|
|
770
|
+
* @param data The data to send
|
|
771
|
+
*
|
|
772
|
+
* @example
|
|
773
|
+
* channel.sendMessage('my-broadcast-message', value);
|
|
774
|
+
*/
|
|
775
|
+
sendMessage<T>(messageId: string, data?: T): void;
|
|
776
|
+
/**
|
|
777
|
+
* Send a message
|
|
778
|
+
* @param messageId The message id
|
|
779
|
+
* @param data The data to send
|
|
780
|
+
* @param delay The number of milliseconds to wait before sending the message
|
|
781
|
+
*
|
|
782
|
+
* @example
|
|
783
|
+
* channel.sendMessage('my-broadcast-message', value, 250);
|
|
784
|
+
*/
|
|
785
|
+
sendMessage<T>(messageId: string, data?: T, delay?: number): void;
|
|
786
|
+
/**
|
|
787
|
+
* Subscribe to a message
|
|
788
|
+
* @param args The subscription info, see also {@link BroadcastChannelSubscriberInfo}
|
|
789
|
+
*/
|
|
790
|
+
subscribe<T>(args: BroadcastChannelSubscriberInfo<T>): void;
|
|
791
|
+
/**
|
|
792
|
+
* Remove a message subscription
|
|
793
|
+
* @param messageId The message id
|
|
794
|
+
*/
|
|
795
|
+
unsubscribe(messageId: string): void;
|
|
796
|
+
/**
|
|
797
|
+
* Remove all the current subscriptions
|
|
798
|
+
*/
|
|
799
|
+
unsubscribeAll(): void;
|
|
800
|
+
}
|
|
801
|
+
|
|
718
802
|
interface BroadcastMessageInfo {
|
|
719
803
|
id: string;
|
|
720
804
|
data?: any;
|
|
721
805
|
}
|
|
722
|
-
declare class BroadcastService {
|
|
806
|
+
declare class BroadcastService implements OnDestroy {
|
|
723
807
|
private subject;
|
|
808
|
+
private channel;
|
|
809
|
+
ngOnDestroy(): void;
|
|
724
810
|
/**
|
|
725
811
|
* Send a message
|
|
726
812
|
* @param id : the message id
|
|
@@ -728,6 +814,18 @@ declare class BroadcastService {
|
|
|
728
814
|
* @param delay : the number of milliseconds to wait before sending the message
|
|
729
815
|
*/
|
|
730
816
|
sendMessage(id: string, data?: any, delay?: number): void;
|
|
817
|
+
/**
|
|
818
|
+
* Send a channel message
|
|
819
|
+
* @param bag : the message bag
|
|
820
|
+
* @param delay : the number of milliseconds to wait before sending the message
|
|
821
|
+
*/
|
|
822
|
+
sendChannelMessage<T>(bag: BroadcastChannelMessageBag<T>, delay?: number): void;
|
|
823
|
+
/**
|
|
824
|
+
* Subscribe channel message
|
|
825
|
+
* @param messageId : the message id
|
|
826
|
+
* @param action : the actionto perform
|
|
827
|
+
*/
|
|
828
|
+
subscribeChannelMessage(messageId: string, action: (bag: BroadcastChannelMessageBag<any>) => void): void;
|
|
731
829
|
/**
|
|
732
830
|
* Get the next message as observable
|
|
733
831
|
* @returns : the observable object
|
|
@@ -904,89 +1002,5 @@ declare class FormatMarkdownPipe implements PipeTransform {
|
|
|
904
1002
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormatMarkdownPipe>;
|
|
905
1003
|
}
|
|
906
1004
|
|
|
907
|
-
/**
|
|
908
|
-
* Standard Broadcast Messages Manager
|
|
909
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel
|
|
910
|
-
*/
|
|
911
|
-
/**
|
|
912
|
-
* The message bag sent as a message
|
|
913
|
-
*/
|
|
914
|
-
interface BroadcastChannelMessageBag<T> {
|
|
915
|
-
messageId: string;
|
|
916
|
-
sender: string;
|
|
917
|
-
data?: T;
|
|
918
|
-
}
|
|
919
|
-
/**
|
|
920
|
-
* Message subscription params
|
|
921
|
-
*/
|
|
922
|
-
interface BroadcastChannelSubscriberInfo<T> {
|
|
923
|
-
messageId: string;
|
|
924
|
-
action: (bag: BroadcastChannelMessageBag<T>) => void;
|
|
925
|
-
}
|
|
926
|
-
/**
|
|
927
|
-
* Web Standard Broadcast Messages Manager
|
|
928
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel
|
|
929
|
-
*/
|
|
930
|
-
declare class BroadcastChannelManager {
|
|
931
|
-
private channel?;
|
|
932
|
-
private subscriptions;
|
|
933
|
-
/**
|
|
934
|
-
* Get the current channel registration
|
|
935
|
-
*/
|
|
936
|
-
get currentBus(): string | undefined;
|
|
937
|
-
constructor(bus: string);
|
|
938
|
-
dispose(): void;
|
|
939
|
-
/**
|
|
940
|
-
* Send a message
|
|
941
|
-
* @param bag The message, see also {@link BroadcastChannelMessageBag}
|
|
942
|
-
*
|
|
943
|
-
* @example
|
|
944
|
-
* channel.sendMessage({ messageId: 'my-broadcast-message', sender: 'the-sender', data: value });
|
|
945
|
-
*/
|
|
946
|
-
sendMessage<T>(bag: BroadcastChannelMessageBag<T>): void;
|
|
947
|
-
/**
|
|
948
|
-
* Send a message
|
|
949
|
-
* @param bag The message, see also {@link BroadcastChannelMessageBag}
|
|
950
|
-
* @param delay The number of milliseconds to wait before sending the message, see also {@link setTimeout}
|
|
951
|
-
*
|
|
952
|
-
* @example
|
|
953
|
-
* channel.sendMessage({ messageId: 'my-broadcast-message', sender: 'the-sender', data: value }, 250);
|
|
954
|
-
*/
|
|
955
|
-
sendMessage<T>(bag: BroadcastChannelMessageBag<T>, delay?: number): void;
|
|
956
|
-
/**
|
|
957
|
-
* Send a message
|
|
958
|
-
* @param messageId The message id
|
|
959
|
-
* @param data The data to send
|
|
960
|
-
*
|
|
961
|
-
* @example
|
|
962
|
-
* channel.sendMessage('my-broadcast-message', value);
|
|
963
|
-
*/
|
|
964
|
-
sendMessage<T>(messageId: string, data?: T): void;
|
|
965
|
-
/**
|
|
966
|
-
* Send a message
|
|
967
|
-
* @param messageId The message id
|
|
968
|
-
* @param data The data to send
|
|
969
|
-
* @param delay The number of milliseconds to wait before sending the message
|
|
970
|
-
*
|
|
971
|
-
* @example
|
|
972
|
-
* channel.sendMessage('my-broadcast-message', value, 250);
|
|
973
|
-
*/
|
|
974
|
-
sendMessage<T>(messageId: string, data?: T, delay?: number): void;
|
|
975
|
-
/**
|
|
976
|
-
* Subscribe to a message
|
|
977
|
-
* @param args The subscription info, see also {@link BroadcastChannelSubscriberInfo}
|
|
978
|
-
*/
|
|
979
|
-
subscribe<T>(args: BroadcastChannelSubscriberInfo<T>): void;
|
|
980
|
-
/**
|
|
981
|
-
* Remove a message subscription
|
|
982
|
-
* @param messageId The message id
|
|
983
|
-
*/
|
|
984
|
-
unsubscribe(messageId: string): void;
|
|
985
|
-
/**
|
|
986
|
-
* Remove all the current subscriptions
|
|
987
|
-
*/
|
|
988
|
-
unsubscribeAll(): void;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
1005
|
export { ArsCoreModule, ArsDateFnsModule, AutoFocusDirective, BroadcastChannelManager, BroadcastService, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatHtmlPipe, FormatMarkdownPipe, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, RemoveFocusDirective, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel };
|
|
992
1006
|
export type { AddModel, AddResultModel, ApiResponse, ApiResult, BroadcastChannelMessageBag, BroadcastChannelSubscriberInfo, BroadcastMessageInfo, Checkable, DeleteResultModel, DoneResult, EnableDisableModel, ErrorInfo, File, Folder, FolderTree, INode, LoginResult, NameValueItem, PasswordStrength, QueryResultModel, SearchBag, SearchFilterMetadata, Searchable, SendToModel, ThemeType, UpdateModel, UpdateResultModel, Validated };
|
|
@@ -2239,8 +2239,10 @@ class ClipperService {
|
|
|
2239
2239
|
.subscribe({
|
|
2240
2240
|
next: r => {
|
|
2241
2241
|
if (!r.success) {
|
|
2242
|
+
if (r.message) {
|
|
2243
|
+
this.dialogService.error(r.message, undefined, "Errore in Clipper");
|
|
2244
|
+
}
|
|
2242
2245
|
this.broadcastService.sendMessage(ClipperMessages.LOGIN_CHANGED);
|
|
2243
|
-
this.dialogService.error(r.message, undefined, "Errore in Clipper");
|
|
2244
2246
|
}
|
|
2245
2247
|
else {
|
|
2246
2248
|
this.dialogService.toast('Disconnesso da Clipper', 1500, 'power_off');
|