@arsedizioni/ars-utils 22.1.0 → 22.1.2

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.
@@ -644,6 +644,12 @@ class RelationModel {
644
644
  }
645
645
  class UpdateRelationsModel {
646
646
  }
647
+ var LoginOAuthType;
648
+ (function (LoginOAuthType) {
649
+ LoginOAuthType[LoginOAuthType["None"] = 0] = "None";
650
+ LoginOAuthType[LoginOAuthType["Microsoft"] = 1] = "Microsoft";
651
+ LoginOAuthType[LoginOAuthType["Google"] = 2] = "Google";
652
+ })(LoginOAuthType || (LoginOAuthType = {}));
647
653
  class QueryModel {
648
654
  }
649
655
  class ImportModel {
@@ -3957,6 +3963,29 @@ class SplashService {
3957
3963
  bootstrapped() { this.api?.disarm(); }
3958
3964
  /** Fade out and remove the splash overlay from the DOM. */
3959
3965
  hide() { this.api?.hide(); }
3966
+ /**
3967
+ * Give up on loading, without taking the splash away.
3968
+ *
3969
+ * The splash stays where it is but stops pretending something is still happening: the progress
3970
+ * bar goes and a reload button appears, so a user who would otherwise sit in front of an endless
3971
+ * animation has something to do. Uncovering the page instead would be worse — whatever is
3972
+ * underneath is, by definition, not ready.
3973
+ *
3974
+ * Falls back to {@link setMessage} where `index.html` does not publish `fail`: the user still
3975
+ * reads what happened, only without the button.
3976
+ * @param text - What to tell the user.
3977
+ */
3978
+ fail(text) {
3979
+ const api = this.api;
3980
+ if (!api)
3981
+ return;
3982
+ if (api.fail) {
3983
+ api.fail(text);
3984
+ }
3985
+ else {
3986
+ api.setMessage(text);
3987
+ }
3988
+ }
3960
3989
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SplashService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
3961
3990
  static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.0", ngImport: i0, type: SplashService }); }
3962
3991
  }
@@ -4103,5 +4132,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
4103
4132
  * Generated bundle index. Do not edit.
4104
4133
  */
4105
4134
 
4106
- export { ARS_TIME_ZONE, ArsLocalDateInterceptor, AutoFocusDirective, BroadcastChannelManager, BroadcastService, CHANNEL_NAME, CopyClipboardDirective, DEFAULT_TIME_ZONE, 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, SplashService, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel, arsLocalDateInterceptor, provideArsDateFns, provideArsLocalDates, toLocalDateOnlyString, toLocalDateTimeString };
4135
+ export { ARS_TIME_ZONE, ArsLocalDateInterceptor, AutoFocusDirective, BroadcastChannelManager, BroadcastService, CHANNEL_NAME, CopyClipboardDirective, DEFAULT_TIME_ZONE, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatHtmlPipe, FormatMarkdownPipe, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, LoginOAuthType, MAT_DATE_FNS_FORMATS, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, RemoveFocusDirective, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SplashService, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel, arsLocalDateInterceptor, provideArsDateFns, provideArsLocalDates, toLocalDateOnlyString, toLocalDateTimeString };
4107
4136
  //# sourceMappingURL=arsedizioni-ars-utils-core.mjs.map