@osovitny/anatoly 3.17.91 → 3.17.93

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.
@@ -665,18 +665,21 @@ var DataViewType;
665
665
  Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
666
666
  </file>
667
667
  */
668
+ //Node
668
669
  class GoServiceBase {
669
670
  constructor(route, router) {
670
671
  this.route = route;
671
672
  this.router = router;
672
- this.route = route;
673
- this.router = router;
673
+ this.rootRoute = '/';
674
+ this.init();
674
675
  }
675
- locationReload() {
676
- window.location.reload();
676
+ init() {
677
+ if (AppSettings?.root != '/') {
678
+ this.rootRoute = AppSettings.root;
679
+ }
677
680
  }
678
- homeReload() {
679
- window.location.href = "/";
681
+ getHomeUrl() {
682
+ return this.rootRoute;
680
683
  }
681
684
  navigate(commands, reload = false) {
682
685
  if (reload) {
@@ -688,6 +691,43 @@ class GoServiceBase {
688
691
  this.router.navigate(commands);
689
692
  }
690
693
  }
694
+ homeReload() {
695
+ window.location.href = "/";
696
+ }
697
+ locationReload() {
698
+ window.location.reload();
699
+ }
700
+ home() {
701
+ this.router.navigate([this.rootRoute]);
702
+ }
703
+ //Accounts
704
+ accountClosed() {
705
+ this.navigate([this.rootRoute + '/accounts/closed']);
706
+ }
707
+ //Errors
708
+ error() {
709
+ this.navigate([this.rootRoute + '/errors/error']);
710
+ }
711
+ //401 Unauthorized
712
+ error401() {
713
+ this.navigate([this.rootRoute + '/errors/401']);
714
+ }
715
+ //402 Payment Required
716
+ error402() {
717
+ this.navigate([this.rootRoute + '/errors/402']);
718
+ }
719
+ //403 Forbidden
720
+ error403() {
721
+ this.navigate([this.rootRoute + '/errors/403']);
722
+ }
723
+ //404 Not Found
724
+ error404() {
725
+ this.navigate([this.rootRoute + '/errors/404']);
726
+ }
727
+ //500 Internal Server Error
728
+ error500() {
729
+ this.navigate([this.rootRoute + '/errors/500']);
730
+ }
691
731
  static { this.ɵfac = function GoServiceBase_Factory(t) { return new (t || GoServiceBase)(i0.ɵɵinject(i1.ActivatedRoute), i0.ɵɵinject(i1.Router)); }; }
692
732
  static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: GoServiceBase, factory: GoServiceBase.ɵfac }); }
693
733
  }
@@ -3795,6 +3835,7 @@ class ComponentBase {
3795
3835
  this.dataLoading = true;
3796
3836
  this.dataLoaded = false;
3797
3837
  this.dataFound = false;
3838
+ this.applicationOneUrl = '/';
3798
3839
  this.title = '';
3799
3840
  this.isTitleVisible = true;
3800
3841
  this.isRequired = false;
@@ -3806,6 +3847,10 @@ class ComponentBase {
3806
3847
  if (AppSettings.root != '/') {
3807
3848
  this.applicationRoot = AppSettings.root;
3808
3849
  }
3850
+ let applicationOne = getAppSettingsById(1);
3851
+ if (applicationOne) {
3852
+ this.applicationOneUrl = applicationOne.baseUrl + applicationOne.root;
3853
+ }
3809
3854
  }
3810
3855
  }
3811
3856
  ngOnInit() {
@@ -7432,6 +7477,114 @@ class UrlSlugComponent extends EditComponentBase {
7432
7477
  }] }); })();
7433
7478
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UrlSlugComponent, { className: "UrlSlugComponent", filePath: "lib\\ui\\components\\urlslug\\urlslug.component.ts", lineNumber: 28 }); })();
7434
7479
 
7480
+ /*
7481
+ <file>
7482
+ Project:
7483
+ @osovitny/anatoly
7484
+
7485
+ Authors:
7486
+ Anatoly Osovitny anatoly.osovitny@osovitny.com
7487
+
7488
+ Created:
7489
+ 4 Feb 2024
7490
+
7491
+ Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
7492
+ </file>
7493
+ */
7494
+ //Node
7495
+ function FeatureWillBeReadyComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
7496
+ i0.ɵɵelementStart(0, "h3");
7497
+ i0.ɵɵtext(1);
7498
+ i0.ɵɵelementEnd();
7499
+ } if (rf & 2) {
7500
+ const ctx_r0 = i0.ɵɵnextContext();
7501
+ i0.ɵɵadvance();
7502
+ i0.ɵɵtextInterpolate1("This feature will be ready in ", ctx_r0.readyDate, " ");
7503
+ } }
7504
+ function FeatureWillBeReadyComponent_h3_2_Template(rf, ctx) { if (rf & 1) {
7505
+ i0.ɵɵelementStart(0, "h3");
7506
+ i0.ɵɵtext(1, "This feature will be available soon");
7507
+ i0.ɵɵelementEnd();
7508
+ } }
7509
+ class FeatureWillBeReadyComponent extends ComponentBase {
7510
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFeatureWillBeReadyComponent_BaseFactory; return function FeatureWillBeReadyComponent_Factory(t) { return (ɵFeatureWillBeReadyComponent_BaseFactory || (ɵFeatureWillBeReadyComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FeatureWillBeReadyComponent)))(t || FeatureWillBeReadyComponent); }; })(); }
7511
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FeatureWillBeReadyComponent, selectors: [["anatoly-feature-will-be-ready"]], inputs: { readyDate: "readyDate" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[1, "feature-will"], [4, "ngIf"]], template: function FeatureWillBeReadyComponent_Template(rf, ctx) { if (rf & 1) {
7512
+ i0.ɵɵelementStart(0, "div", 0);
7513
+ i0.ɵɵtemplate(1, FeatureWillBeReadyComponent_h3_1_Template, 2, 1, "h3", 1)(2, FeatureWillBeReadyComponent_h3_2_Template, 2, 0, "h3", 1);
7514
+ i0.ɵɵelementEnd();
7515
+ } if (rf & 2) {
7516
+ i0.ɵɵadvance();
7517
+ i0.ɵɵproperty("ngIf", ctx.readyDate);
7518
+ i0.ɵɵadvance();
7519
+ i0.ɵɵproperty("ngIf", !ctx.readyDate);
7520
+ } }, dependencies: [i1$2.NgIf], encapsulation: 2 }); }
7521
+ }
7522
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FeatureWillBeReadyComponent, [{
7523
+ type: Component,
7524
+ args: [{ selector: 'anatoly-feature-will-be-ready', template: "<div class='feature-will'>\r\n <h3 *ngIf='readyDate'>This feature will be ready in {{ readyDate }} </h3>\r\n <h3 *ngIf='!readyDate'>This feature will be available soon</h3>\r\n</div>\r\n" }]
7525
+ }], null, { readyDate: [{
7526
+ type: Input
7527
+ }] }); })();
7528
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FeatureWillBeReadyComponent, { className: "FeatureWillBeReadyComponent", filePath: "lib\\ui\\components\\feature-will-be-ready\\feature-will-be-ready.component.ts", lineNumber: 26 }); })();
7529
+
7530
+ /*
7531
+ <file>
7532
+ Project:
7533
+ @osovitny/anatoly
7534
+
7535
+ Authors:
7536
+ Anatoly Osovitny anatoly.osovitny@osovitny.com
7537
+
7538
+ Created:
7539
+ 21 Feb 2024
7540
+
7541
+ Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
7542
+ </file>
7543
+ */
7544
+ //Node
7545
+ function YouAgreeToOurTermsComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
7546
+ i0.ɵɵelement(0, "br");
7547
+ } }
7548
+ class YouAgreeToOurTermsComponent extends ComponentBase {
7549
+ constructor() {
7550
+ super(...arguments);
7551
+ this.oneLine = true;
7552
+ }
7553
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵYouAgreeToOurTermsComponent_BaseFactory; return function YouAgreeToOurTermsComponent_Factory(t) { return (ɵYouAgreeToOurTermsComponent_BaseFactory || (ɵYouAgreeToOurTermsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(YouAgreeToOurTermsComponent)))(t || YouAgreeToOurTermsComponent); }; })(); }
7554
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: YouAgreeToOurTermsComponent, selectors: [["anatoly-you-agree-to-our-terms"]], inputs: { prefix: "prefix", oneLine: "oneLine" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 4, consts: [[1, "you-agree-to-our-terms"], ["target", "_blank", "rel", "noopener", 3, "href"]], template: function YouAgreeToOurTermsComponent_Template(rf, ctx) { if (rf & 1) {
7555
+ i0.ɵɵelementStart(0, "div", 0)(1, "p");
7556
+ i0.ɵɵtext(2);
7557
+ i0.ɵɵtemplate(3, YouAgreeToOurTermsComponent_Conditional_3_Template, 1, 0, "br");
7558
+ i0.ɵɵelementStart(4, "a", 1);
7559
+ i0.ɵɵtext(5, "Terms of use");
7560
+ i0.ɵɵelementEnd();
7561
+ i0.ɵɵtext(6, " and ");
7562
+ i0.ɵɵelementStart(7, "a", 1);
7563
+ i0.ɵɵtext(8, "Privacy Policy");
7564
+ i0.ɵɵelementEnd();
7565
+ i0.ɵɵtext(9, ". ");
7566
+ i0.ɵɵelementEnd()();
7567
+ } if (rf & 2) {
7568
+ i0.ɵɵadvance(2);
7569
+ i0.ɵɵtextInterpolate1(" ", ctx.prefix, " you agree to our ");
7570
+ i0.ɵɵadvance();
7571
+ i0.ɵɵconditional(3, !ctx.oneLine ? 3 : -1);
7572
+ i0.ɵɵadvance();
7573
+ i0.ɵɵproperty("href", ctx.applicationOneUrl + "legal/terms", i0.ɵɵsanitizeUrl);
7574
+ i0.ɵɵadvance(3);
7575
+ i0.ɵɵproperty("href", ctx.applicationOneUrl + "legal/privacy", i0.ɵɵsanitizeUrl);
7576
+ } }, encapsulation: 2 }); }
7577
+ }
7578
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(YouAgreeToOurTermsComponent, [{
7579
+ type: Component,
7580
+ args: [{ selector: 'anatoly-you-agree-to-our-terms', template: "<div class=\"you-agree-to-our-terms\">\r\n <p>\r\n {{ prefix }} you agree to our\r\n @if (!oneLine) {\r\n <br />\r\n }\r\n <a [href]=\"applicationOneUrl + 'legal/terms'\" target=\"_blank\" rel=\"noopener\">Terms of use</a>\r\n and\r\n <a [href]=\"applicationOneUrl + 'legal/privacy'\" target=\"_blank\" rel=\"noopener\">Privacy Policy</a>.\r\n </p>\r\n</div>\r\n" }]
7581
+ }], null, { prefix: [{
7582
+ type: Input
7583
+ }], oneLine: [{
7584
+ type: Input
7585
+ }] }); })();
7586
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(YouAgreeToOurTermsComponent, { className: "YouAgreeToOurTermsComponent", filePath: "lib\\ui\\components\\you-agree-to-our-terms\\you-agree-to-our-terms.component.ts", lineNumber: 26 }); })();
7587
+
7435
7588
  /*
7436
7589
  <file>
7437
7590
  Project:
@@ -9784,7 +9937,9 @@ const MAIN_COMPONENTS = [
9784
9937
  //Spinners
9785
9938
  PageSpinnerComponent,
9786
9939
  LoadingComponent,
9787
- UrlSlugComponent
9940
+ UrlSlugComponent,
9941
+ FeatureWillBeReadyComponent,
9942
+ YouAgreeToOurTermsComponent,
9788
9943
  ];
9789
9944
 
9790
9945
  /*
@@ -9942,14 +10097,14 @@ class AnatolyUIModule {
9942
10097
  ]
9943
10098
  }]
9944
10099
  }], null, null); })();
9945
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyUIModule, { declarations: [BuyAccessButtonComponent, SubscribePlanButtonComponent, CardComponent, CardHeaderComponent, CardBodyComponent, CardFooterComponent, CheckIconComponent, Copy2ClipboardComponent, DataPagerComponent, CountryDropdownlist, TimezoneDropdownlist, HtmlEditorComponent, FormsHtmlEditorComponent, SignInButtonComponent, SignUpButtonComponent, SignOutButtonComponent, NodataComponent, NoMobileSupportComponent, PageSpinnerComponent, LoadingComponent, UrlSlugComponent, ContactUsDialog, NativeElementDirective, HoveringDirective, AddressComponent, CompanyComponent, ContactUsForm, SafeHtmlPipe, ReplaceTextPipe, FileSizePipe, FormValidationSummaryComponent, ItemValidationSummaryComponent], imports: [CommonModule,
10100
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyUIModule, { declarations: [BuyAccessButtonComponent, SubscribePlanButtonComponent, CardComponent, CardHeaderComponent, CardBodyComponent, CardFooterComponent, CheckIconComponent, Copy2ClipboardComponent, DataPagerComponent, CountryDropdownlist, TimezoneDropdownlist, HtmlEditorComponent, FormsHtmlEditorComponent, SignInButtonComponent, SignUpButtonComponent, SignOutButtonComponent, NodataComponent, NoMobileSupportComponent, PageSpinnerComponent, LoadingComponent, UrlSlugComponent, FeatureWillBeReadyComponent, YouAgreeToOurTermsComponent, ContactUsDialog, NativeElementDirective, HoveringDirective, AddressComponent, CompanyComponent, ContactUsForm, SafeHtmlPipe, ReplaceTextPipe, FileSizePipe, FormValidationSummaryComponent, ItemValidationSummaryComponent], imports: [CommonModule,
9946
10101
  RouterModule,
9947
10102
  ReactiveFormsModule,
9948
10103
  FormsModule,
9949
10104
  NgxCaptchaModule,
9950
10105
  FERootModule,
9951
10106
  FaModule,
9952
- KendoModule], exports: [BuyAccessButtonComponent, SubscribePlanButtonComponent, CardComponent, CardHeaderComponent, CardBodyComponent, CardFooterComponent, CheckIconComponent, Copy2ClipboardComponent, DataPagerComponent, CountryDropdownlist, TimezoneDropdownlist, HtmlEditorComponent, FormsHtmlEditorComponent, SignInButtonComponent, SignUpButtonComponent, SignOutButtonComponent, NodataComponent, NoMobileSupportComponent, PageSpinnerComponent, LoadingComponent, UrlSlugComponent, ContactUsDialog, NativeElementDirective, HoveringDirective, AddressComponent, CompanyComponent, ContactUsForm, SafeHtmlPipe, ReplaceTextPipe, FileSizePipe, FormValidationSummaryComponent, ItemValidationSummaryComponent] }); })();
10107
+ KendoModule], exports: [BuyAccessButtonComponent, SubscribePlanButtonComponent, CardComponent, CardHeaderComponent, CardBodyComponent, CardFooterComponent, CheckIconComponent, Copy2ClipboardComponent, DataPagerComponent, CountryDropdownlist, TimezoneDropdownlist, HtmlEditorComponent, FormsHtmlEditorComponent, SignInButtonComponent, SignUpButtonComponent, SignOutButtonComponent, NodataComponent, NoMobileSupportComponent, PageSpinnerComponent, LoadingComponent, UrlSlugComponent, FeatureWillBeReadyComponent, YouAgreeToOurTermsComponent, ContactUsDialog, NativeElementDirective, HoveringDirective, AddressComponent, CompanyComponent, ContactUsForm, SafeHtmlPipe, ReplaceTextPipe, FileSizePipe, FormValidationSummaryComponent, ItemValidationSummaryComponent] }); })();
9953
10108
 
9954
10109
  /*
9955
10110
  <file>
@@ -10014,5 +10169,5 @@ class AnatolyModule {
10014
10169
  * Generated bundle index. Do not edit.
10015
10170
  */
10016
10171
 
10017
- export { AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppSettings, AppVersion, AppsGoServiceBase, AuthService, AuthenticationGuard, BillingUtils, BraintreeDialog, Browser, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, DiscountCodesApiService, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10NUrl, L10nUtils, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, MSALUtils, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, dateFormats, dateTimeFormats, getAppSettingsById, getAppSettingsByName, is, localizationInitializerFactory, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
10172
+ export { AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppSettings, AppVersion, AppsGoServiceBase, AuthService, AuthenticationGuard, BillingUtils, BraintreeDialog, Browser, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, DiscountCodesApiService, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FeatureWillBeReadyComponent, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10NUrl, L10nUtils, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, MSALUtils, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, getAppSettingsById, getAppSettingsByName, is, localizationInitializerFactory, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
10018
10173
  //# sourceMappingURL=osovitny-anatoly.mjs.map