@osovitny/anatoly 2.14.5 → 2.14.8

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.
@@ -22,8 +22,11 @@ import * as i1$6 from '@angular/forms';
22
22
  import { FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
23
23
  import * as i1$7 from 'angular-froala-wysiwyg';
24
24
  import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
25
+ import * as i1$8 from '@progress/kendo-angular-dialog';
26
+ import { DialogsModule } from '@progress/kendo-angular-dialog';
25
27
  import * as i6 from 'ngx-captcha';
26
28
  import { NgxCaptchaModule } from 'ngx-captcha';
29
+ import { ButtonsModule } from '@progress/kendo-angular-buttons';
27
30
 
28
31
  /*
29
32
  <file>
@@ -1897,9 +1900,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
1897
1900
  </file>
1898
1901
  */
1899
1902
  const consts = {
1903
+ //billing
1900
1904
  billingApiPath: 'api/billing',
1901
- // Notifications API
1902
- notificationsApiPath: 'api/notifications',
1905
+ //emails
1906
+ emailsApiPath: 'api/emails',
1907
+ //notifications
1908
+ notificationsApiPath: 'api/notifications'
1903
1909
  };
1904
1910
 
1905
1911
  /*
@@ -3104,6 +3110,7 @@ class EmailsApiService extends BaseApiService {
3104
3110
  constructor(http) {
3105
3111
  super(http);
3106
3112
  this.http = http;
3113
+ this.baseUrl = consts.emailsApiPath;
3107
3114
  }
3108
3115
  sendContactUs(captcha, name, email, topic, subject, message, success, error) {
3109
3116
  return this.post('sendContactUs', { captcha, name, email, topic, subject, message }).subscribe(data => {
@@ -3288,6 +3295,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3288
3295
  args: ['recaptcha']
3289
3296
  }] } });
3290
3297
 
3298
+ /*
3299
+ <file>
3300
+ Project:
3301
+ @osovitny/anatoly
3302
+
3303
+ Authors:
3304
+ Vadim Osovitny
3305
+ Anatoly Osovitny
3306
+
3307
+ Created:
3308
+ 16 July 2022
3309
+
3310
+ Copyright (c) 2017-2022 Osovitny Inc. All rights reserved.
3311
+ </file>
3312
+ */
3313
+ class ContactUsDialog extends BaseDialog {
3314
+ constructor() {
3315
+ super();
3316
+ }
3317
+ //Events
3318
+ onClose() {
3319
+ super.close();
3320
+ }
3321
+ onSubmitFire() {
3322
+ this.contactUsForm?.onSubmit();
3323
+ }
3324
+ onSubmit() {
3325
+ super.close();
3326
+ }
3327
+ }
3328
+ ContactUsDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: ContactUsDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
3329
+ ContactUsDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: ContactUsDialog, selector: "anatoly-contactus-dialog", viewQueries: [{ propertyName: "contactUsForm", first: true, predicate: ["contactusform"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<kendo-dialog (close)='onClose()' *ngIf='opened' [width]='800' title='Contact Us' class=\"k-dialog-wrapper\">\r\n <div class=\"k-content k-window-content k-dialog-content\">\r\n <anatoly-forms-contactus-form #contactusform [showActionButtons]='false' (submit)='onSubmit()'>\r\n </anatoly-forms-contactus-form>\r\n </div>\r\n <kendo-dialog-actions class=\"k-dialog-buttongroup k-actions k-actions-stretched\">\r\n <button (click)='onSubmitFire()' class='btn btn-success' type='button'>Submit</button>\r\n <button (click)='onClose()' class='btn btn-danger' type='button'>Cancel</button>\r\n </kendo-dialog-actions>\r\n</kendo-dialog>\r\n", dependencies: [{ kind: "component", type: i1$8.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { kind: "component", type: i1$8.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ContactUsForm, selector: "anatoly-forms-contactus-form", inputs: ["showActionButtons"], outputs: ["submit"] }] });
3330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: ContactUsDialog, decorators: [{
3331
+ type: Component,
3332
+ args: [{ selector: 'anatoly-contactus-dialog', template: "<kendo-dialog (close)='onClose()' *ngIf='opened' [width]='800' title='Contact Us' class=\"k-dialog-wrapper\">\r\n <div class=\"k-content k-window-content k-dialog-content\">\r\n <anatoly-forms-contactus-form #contactusform [showActionButtons]='false' (submit)='onSubmit()'>\r\n </anatoly-forms-contactus-form>\r\n </div>\r\n <kendo-dialog-actions class=\"k-dialog-buttongroup k-actions k-actions-stretched\">\r\n <button (click)='onSubmitFire()' class='btn btn-success' type='button'>Submit</button>\r\n <button (click)='onClose()' class='btn btn-danger' type='button'>Cancel</button>\r\n </kendo-dialog-actions>\r\n</kendo-dialog>\r\n" }]
3333
+ }], ctorParameters: function () { return []; }, propDecorators: { contactUsForm: [{
3334
+ type: ViewChild,
3335
+ args: ['contactusform']
3336
+ }] } });
3337
+
3291
3338
  /*
3292
3339
  <file>
3293
3340
  Project:
@@ -3535,13 +3582,17 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
3535
3582
  NativeElementDirective,
3536
3583
  //Forms
3537
3584
  ContactUsForm,
3585
+ //Dialogs
3586
+ ContactUsDialog,
3538
3587
  //Pipes
3539
3588
  SafeHtmlPipe,
3540
3589
  ReplaceTextPipe,
3541
3590
  FileSizePipe,
3542
3591
  //Validation
3543
3592
  FormValidationSummaryComponent,
3544
- ItemValidationSummaryComponent], imports: [CommonModule,
3593
+ ItemValidationSummaryComponent], imports: [DialogsModule,
3594
+ ButtonsModule,
3595
+ CommonModule,
3545
3596
  ReactiveFormsModule,
3546
3597
  FormsModule,
3547
3598
  NgxCaptchaModule, i1$7.FroalaEditorModule, i1$7.FroalaViewModule], exports: [SubscribePlanButtonComponent,
@@ -3559,6 +3610,8 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
3559
3610
  NativeElementDirective,
3560
3611
  //Forms
3561
3612
  ContactUsForm,
3613
+ //Dialogs
3614
+ ContactUsDialog,
3562
3615
  //Pipes
3563
3616
  SafeHtmlPipe,
3564
3617
  ReplaceTextPipe,
@@ -3566,7 +3619,9 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
3566
3619
  //Validation
3567
3620
  FormValidationSummaryComponent,
3568
3621
  ItemValidationSummaryComponent] });
3569
- AnatolyUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: AnatolyUIModule, imports: [CommonModule,
3622
+ AnatolyUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: AnatolyUIModule, imports: [DialogsModule,
3623
+ ButtonsModule,
3624
+ CommonModule,
3570
3625
  ReactiveFormsModule,
3571
3626
  FormsModule,
3572
3627
  NgxCaptchaModule,
@@ -3576,6 +3631,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3576
3631
  type: NgModule,
3577
3632
  args: [{
3578
3633
  imports: [
3634
+ DialogsModule,
3635
+ ButtonsModule,
3579
3636
  CommonModule,
3580
3637
  ReactiveFormsModule,
3581
3638
  FormsModule,
@@ -3599,6 +3656,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3599
3656
  NativeElementDirective,
3600
3657
  //Forms
3601
3658
  ContactUsForm,
3659
+ //Dialogs
3660
+ ContactUsDialog,
3602
3661
  //Pipes
3603
3662
  SafeHtmlPipe,
3604
3663
  ReplaceTextPipe,
@@ -3623,6 +3682,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3623
3682
  NativeElementDirective,
3624
3683
  //Forms
3625
3684
  ContactUsForm,
3685
+ //Dialogs
3686
+ ContactUsDialog,
3626
3687
  //Pipes
3627
3688
  SafeHtmlPipe,
3628
3689
  ReplaceTextPipe,
@@ -3642,5 +3703,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3642
3703
  * Generated bundle index. Do not edit.
3643
3704
  */
3644
3705
 
3645
- export { Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BillingApiService, BuyAccessButtonComponent, ContactUsForm, ContentHeaderComponent, ContextInitState, Convert, DefaultEditorOptions, DigitalMarketingService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NotificationService, NotificationsApiService, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, SpinnerComponent, Subs, SubscribePlanButtonComponent, TranslateModuleAtRoot, UpgradePlanButtonComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
3706
+ export { Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BillingApiService, BuyAccessButtonComponent, ContactUsDialog, ContactUsForm, ContentHeaderComponent, ContextInitState, Convert, DefaultEditorOptions, DigitalMarketingService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NotificationService, NotificationsApiService, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, SpinnerComponent, Subs, SubscribePlanButtonComponent, TranslateModuleAtRoot, UpgradePlanButtonComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
3646
3707
  //# sourceMappingURL=osovitny-anatoly.mjs.map