@osovitny/anatoly 3.17.111 → 3.17.113

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.
Files changed (35) hide show
  1. package/esm2022/lib/billing/billing.module.mjs +19 -13
  2. package/esm2022/lib/billing/components/buttons/buyaccess-button.component.mjs +108 -0
  3. package/esm2022/lib/billing/components/buttons/subscribe-plan-button.component.mjs +119 -0
  4. package/esm2022/lib/billing/components/exports.mjs +7 -5
  5. package/esm2022/lib/billing/components/index.mjs +9 -7
  6. package/esm2022/lib/billing/components/pm/braintree/braintree.component.mjs +155 -0
  7. package/esm2022/lib/billing/components/pm/paypal/paypal-button.component.mjs +157 -0
  8. package/esm2022/lib/billing/components/pm/paypal/paypal.component.mjs +316 -0
  9. package/esm2022/lib/billing/components/pm/stripe/stripe.component.mjs +109 -0
  10. package/esm2022/lib/ui/components/exports.mjs +1 -4
  11. package/esm2022/lib/ui/components/index.mjs +1 -6
  12. package/esm2022/lib/ui/ui.module.mjs +37 -39
  13. package/fesm2022/osovitny-anatoly.mjs +1697 -1695
  14. package/fesm2022/osovitny-anatoly.mjs.map +1 -1
  15. package/lib/billing/billing.module.d.ts +15 -12
  16. package/lib/{ui/components/billing → billing/components/buttons}/buyaccess-button.component.d.ts +1 -1
  17. package/lib/{ui/components/billing → billing/components/buttons}/subscribe-plan-button.component.d.ts +1 -1
  18. package/lib/billing/components/exports.d.ts +6 -4
  19. package/lib/billing/components/index.d.ts +2 -2
  20. package/lib/billing/components/{braintree → pm/braintree}/braintree.component.d.ts +3 -3
  21. package/lib/billing/components/{paypal → pm/paypal}/paypal-button.component.d.ts +3 -3
  22. package/lib/billing/components/{paypal → pm/paypal}/paypal.component.d.ts +2 -2
  23. package/lib/billing/components/{stripe → pm/stripe}/stripe.component.d.ts +2 -2
  24. package/lib/ui/components/exports.d.ts +0 -2
  25. package/lib/ui/components/index.d.ts +2 -2
  26. package/lib/ui/forms/index.d.ts +1 -1
  27. package/lib/ui/pipes/index.d.ts +1 -1
  28. package/lib/ui/ui.module.d.ts +42 -44
  29. package/package.json +2 -2
  30. package/esm2022/lib/billing/components/braintree/braintree.component.mjs +0 -155
  31. package/esm2022/lib/billing/components/paypal/paypal-button.component.mjs +0 -157
  32. package/esm2022/lib/billing/components/paypal/paypal.component.mjs +0 -316
  33. package/esm2022/lib/billing/components/stripe/stripe.component.mjs +0 -109
  34. package/esm2022/lib/ui/components/billing/buyaccess-button.component.mjs +0 -108
  35. package/esm2022/lib/ui/components/billing/subscribe-plan-button.component.mjs +0 -119
@@ -1,17 +1,20 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./components/order-summary/order-summary.component";
3
- import * as i2 from "./components/payment-methods/payment-methods.component";
4
- import * as i3 from "./components/payment-options/payment-options.component";
5
- import * as i4 from "./components/paypal/paypal-button.component";
6
- import * as i5 from "./components/paypal/paypal.component";
7
- import * as i6 from "./components/braintree/braintree.component";
8
- import * as i7 from "./components/stripe/stripe.component";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "@angular/forms";
11
- import * as i10 from "../external/fa.module";
12
- import * as i11 from "../external/kendo.module";
2
+ import * as i1 from "./components/buttons/buyaccess-button.component";
3
+ import * as i2 from "./components/buttons/subscribe-plan-button.component";
4
+ import * as i3 from "./components/order-summary/order-summary.component";
5
+ import * as i4 from "./components/payment-methods/payment-methods.component";
6
+ import * as i5 from "./components/payment-options/payment-options.component";
7
+ import * as i6 from "./components/pm/braintree/braintree.component";
8
+ import * as i7 from "./components/pm/paypal/paypal-button.component";
9
+ import * as i8 from "./components/pm/paypal/paypal.component";
10
+ import * as i9 from "./components/pm/stripe/stripe.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@angular/forms";
13
+ import * as i12 from "../external/fa.module";
14
+ import * as i13 from "../external/kendo.module";
15
+ import * as i14 from "../ui/ui.module";
13
16
  export declare class AnatolyBillingModule {
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyBillingModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyBillingModule, [typeof i1.OrderSummaryComponent, typeof i2.PaymentMethodsComponent, typeof i3.PaymentOptionsComponent, typeof i4.PaypalButtonComponent, typeof i5.PayPalComponent, typeof i6.BraintreeDialog, typeof i7.StripeDialog], [typeof i8.CommonModule, typeof i9.ReactiveFormsModule, typeof i9.FormsModule, typeof i10.FaModule, typeof i11.KendoModule], [typeof i1.OrderSummaryComponent, typeof i2.PaymentMethodsComponent, typeof i3.PaymentOptionsComponent, typeof i4.PaypalButtonComponent, typeof i5.PayPalComponent, typeof i6.BraintreeDialog, typeof i7.StripeDialog]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyBillingModule, [typeof i1.BuyAccessButtonComponent, typeof i2.SubscribePlanButtonComponent, typeof i3.OrderSummaryComponent, typeof i4.PaymentMethodsComponent, typeof i5.PaymentOptionsComponent, typeof i6.BraintreeDialog, typeof i7.PaypalButtonComponent, typeof i8.PayPalComponent, typeof i9.StripeDialog], [typeof i10.CommonModule, typeof i11.ReactiveFormsModule, typeof i11.FormsModule, typeof i12.FaModule, typeof i13.KendoModule, typeof i14.AnatolyUIModule], [typeof i1.BuyAccessButtonComponent, typeof i2.SubscribePlanButtonComponent, typeof i3.OrderSummaryComponent, typeof i4.PaymentMethodsComponent, typeof i5.PaymentOptionsComponent, typeof i6.BraintreeDialog, typeof i7.PaypalButtonComponent, typeof i8.PayPalComponent, typeof i9.StripeDialog]>;
16
19
  static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyBillingModule>;
17
20
  }
@@ -15,5 +15,5 @@ export declare class BuyAccessButtonComponent implements OnInit {
15
15
  ngOnInit(): void;
16
16
  onPlanSelect(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BuyAccessButtonComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<BuyAccessButtonComponent, "anatoly-buyaccess-button", never, { "plan": { "alias": "plan"; "required": false; }; "planTitle": { "alias": "planTitle"; "required": false; }; "visibleIfUserSignedIn": { "alias": "visibleIfUserSignedIn"; "required": false; }; }, { "planselect": "planselect"; }, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuyAccessButtonComponent, "anatoly-billing-buyaccess-button", never, { "plan": { "alias": "plan"; "required": false; }; "planTitle": { "alias": "planTitle"; "required": false; }; "visibleIfUserSignedIn": { "alias": "visibleIfUserSignedIn"; "required": false; }; }, { "planselect": "planselect"; }, never, never, false, never>;
19
19
  }
@@ -17,5 +17,5 @@ export declare class SubscribePlanButtonComponent implements OnInit {
17
17
  ngOnInit(): void;
18
18
  onPlanSelect(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<SubscribePlanButtonComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<SubscribePlanButtonComponent, "anatoly-subscribe-plan-button", never, { "plan": { "alias": "plan"; "required": false; }; "planTitle": { "alias": "planTitle"; "required": false; }; "visibleIfUserSignedIn": { "alias": "visibleIfUserSignedIn"; "required": false; }; }, { "planselect": "planselect"; }, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubscribePlanButtonComponent, "anatoly-billing-subscribe-plan-button", never, { "plan": { "alias": "plan"; "required": false; }; "planTitle": { "alias": "planTitle"; "required": false; }; "visibleIfUserSignedIn": { "alias": "visibleIfUserSignedIn"; "required": false; }; }, { "planselect": "planselect"; }, never, never, false, never>;
21
21
  }
@@ -1,7 +1,9 @@
1
+ export * from './buttons/buyaccess-button.component';
2
+ export * from './buttons/subscribe-plan-button.component';
1
3
  export * from "./order-summary/order-summary.component";
2
4
  export * from "./payment-methods/payment-methods.component";
3
5
  export * from "./payment-options/payment-options.component";
4
- export * from "./braintree/braintree.component";
5
- export * from "./paypal/paypal-button.component";
6
- export * from "./paypal/paypal.component";
7
- export * from "./stripe/stripe.component";
6
+ export * from "./pm/braintree/braintree.component";
7
+ export * from "./pm/paypal/paypal-button.component";
8
+ export * from "./pm/paypal/paypal.component";
9
+ export * from "./pm/stripe/stripe.component";
@@ -1,2 +1,2 @@
1
- import { OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, PaypalButtonComponent, PayPalComponent, BraintreeDialog, StripeDialog } from "./exports";
2
- export declare const COMPONENTS: (typeof OrderSummaryComponent | typeof PaymentMethodsComponent | typeof PaymentOptionsComponent | typeof BraintreeDialog | typeof PaypalButtonComponent | typeof PayPalComponent | typeof StripeDialog)[];
1
+ import { BuyAccessButtonComponent, SubscribePlanButtonComponent, OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, BraintreeDialog, PaypalButtonComponent, PayPalComponent, StripeDialog } from "./exports";
2
+ export declare const COMPONENTS: (typeof BuyAccessButtonComponent | typeof SubscribePlanButtonComponent | typeof OrderSummaryComponent | typeof PaymentMethodsComponent | typeof PaymentOptionsComponent | typeof BraintreeDialog | typeof PaypalButtonComponent | typeof PayPalComponent | typeof StripeDialog)[];
@@ -1,6 +1,6 @@
1
- import { DialogBase } from '../../../ui/components/base/dialog';
2
- import { PaymentsService } from '../../services/payments.service';
3
- import { NotificationService } from '../../../core/notifications/services/notification-service';
1
+ import { DialogBase } from '../../../../ui/components/base/dialog';
2
+ import { PaymentsService } from '../../../services/payments.service';
3
+ import { NotificationService } from '../../../../core/notifications/services/notification-service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class BraintreeDialog extends DialogBase {
6
6
  ps: PaymentsService;
@@ -1,6 +1,6 @@
1
- import { ComponentBase } from '../../../ui/components/base/components/component';
2
- import { PaymentsService } from '../../services/payments.service';
3
- import { IPayPalConfig } from '../../models/paypal-models';
1
+ import { ComponentBase } from '../../../../ui/components/base/components/component';
2
+ import { PaymentsService } from '../../../services/payments.service';
3
+ import { IPayPalConfig } from '../../../models/paypal-models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class PaypalButtonComponent extends ComponentBase {
6
6
  ps: PaymentsService;
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
2
- import { IPayPalConfig } from '../../models/paypal-models';
3
- import { PayPalScriptService } from '../../services/paypal-script.service';
2
+ import { IPayPalConfig } from '../../../models/paypal-models';
3
+ import { PayPalScriptService } from '../../../services/paypal-script.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class PayPalComponent implements OnChanges, OnDestroy, AfterViewInit {
6
6
  private paypalScriptService;
@@ -1,5 +1,5 @@
1
- import { DialogBase } from '../../../ui/components/base/dialog';
2
- import { PaymentsService } from '../../services/payments.service';
1
+ import { DialogBase } from '../../../../ui/components/base/dialog';
2
+ import { PaymentsService } from '../../../services/payments.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class StripeDialog extends DialogBase {
5
5
  ps: PaymentsService;
@@ -6,8 +6,6 @@ export * from './base/pages/edit.page';
6
6
  export * from './base/pages/paged.page';
7
7
  export * from './base/dialog';
8
8
  export * from './base/list';
9
- export * from './billing/buyaccess-button.component';
10
- export * from './billing/subscribe-plan-button.component';
11
9
  export * from './card/card.component';
12
10
  export * from './card/card-header.component';
13
11
  export * from './card/card-body.component';
@@ -1,2 +1,2 @@
1
- import { BuyAccessButtonComponent, SubscribePlanButtonComponent, CardComponent, CheckIconComponent, CountryDropdownlist, TimezoneDropdownlist, NodataComponent, PageSpinnerComponent, LoadingComponent } from './exports';
2
- export declare const MAIN_COMPONENTS: (typeof BuyAccessButtonComponent | typeof SubscribePlanButtonComponent | typeof CardComponent | typeof CheckIconComponent | typeof CountryDropdownlist | typeof TimezoneDropdownlist | typeof NodataComponent | typeof PageSpinnerComponent | typeof LoadingComponent)[];
1
+ import { CardComponent, CheckIconComponent, CountryDropdownlist, TimezoneDropdownlist, NodataComponent, PageSpinnerComponent, LoadingComponent } from './exports';
2
+ export declare const MAIN_COMPONENTS: (typeof CardComponent | typeof CountryDropdownlist | typeof TimezoneDropdownlist | typeof CheckIconComponent | typeof NodataComponent | typeof LoadingComponent | typeof PageSpinnerComponent)[];
@@ -1,2 +1,2 @@
1
1
  import { AddressComponent, CompanyComponent, ContactUsForm } from './exports';
2
- export declare const FORMS: (typeof AddressComponent | typeof CompanyComponent | typeof ContactUsForm)[];
2
+ export declare const FORMS: (typeof ContactUsForm | typeof AddressComponent | typeof CompanyComponent)[];
@@ -1,2 +1,2 @@
1
1
  import { SafeHtmlPipe, ReplaceTextPipe, FileSizePipe } from './exports';
2
- export declare const PIPES: (typeof SafeHtmlPipe | typeof ReplaceTextPipe | typeof FileSizePipe)[];
2
+ export declare const PIPES: (typeof FileSizePipe | typeof ReplaceTextPipe | typeof SafeHtmlPipe)[];
@@ -1,49 +1,47 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./components/billing/buyaccess-button.component";
3
- import * as i2 from "./components/billing/subscribe-plan-button.component";
4
- import * as i3 from "./components/card/card.component";
5
- import * as i4 from "./components/card/card-header.component";
6
- import * as i5 from "./components/card/card-body.component";
7
- import * as i6 from "./components/card/card-footer.component";
8
- import * as i7 from "./components/check-icon/check-icon.component";
9
- import * as i8 from "./components/copy-2-clipboard/copy-2-clipboard.component";
10
- import * as i9 from "./components/data-grid/control-panel.component";
11
- import * as i10 from "./components/datapager/datapager.component";
12
- import * as i11 from "./components/dropdownlists/country/country.dropdownlist";
13
- import * as i12 from "./components/dropdownlists/moderationstatus/moderationstatus.dropdownlist";
14
- import * as i13 from "./components/dropdownlists/publishstatus/publishstatus.dropdownlist";
15
- import * as i14 from "./components/dropdownlists/timezone/timezone.dropdownlist";
16
- import * as i15 from "./components/html-editor/html-editor.component";
17
- import * as i16 from "./components/identity/signin-button.component";
18
- import * as i17 from "./components/identity/signup-button.component";
19
- import * as i18 from "./components/identity/signout-button.component";
20
- import * as i19 from "./components/nodata/nodata.component";
21
- import * as i20 from "./components/no-mobile-support/no-mobile-support.component";
22
- import * as i21 from "./components/spinners/pagespinner/pagespinner.component";
23
- import * as i22 from "./components/spinners/loading/loading.component";
24
- import * as i23 from "./components/urlslug/urlslug.component";
25
- import * as i24 from "./components/feature-will-be-ready/feature-will-be-ready.component";
26
- import * as i25 from "./components/you-agree-to-our-terms/you-agree-to-our-terms.component";
27
- import * as i26 from "./dialogs/contact-us/contact-us.dialog";
28
- import * as i27 from "./directives/native-element.directive";
29
- import * as i28 from "./directives/hover.directive";
30
- import * as i29 from "./forms/components/address/address.component";
31
- import * as i30 from "./forms/components/company/company.component";
32
- import * as i31 from "./forms/contact-us/contact-us";
33
- import * as i32 from "./pipes/safeHtml.pipe";
34
- import * as i33 from "./pipes/replace-text.pipe";
35
- import * as i34 from "./pipes/filesize.pipe";
36
- import * as i35 from "./validation/form-validation-summary.component";
37
- import * as i36 from "./validation/item-validation-summary.component";
38
- import * as i37 from "@angular/common";
39
- import * as i38 from "@angular/router";
40
- import * as i39 from "@angular/forms";
41
- import * as i40 from "ngx-captcha";
42
- import * as i41 from "angular-froala-wysiwyg";
43
- import * as i42 from "../external/fa.module";
44
- import * as i43 from "../external/kendo.module";
2
+ import * as i1 from "./components/card/card.component";
3
+ import * as i2 from "./components/card/card-header.component";
4
+ import * as i3 from "./components/card/card-body.component";
5
+ import * as i4 from "./components/card/card-footer.component";
6
+ import * as i5 from "./components/check-icon/check-icon.component";
7
+ import * as i6 from "./components/copy-2-clipboard/copy-2-clipboard.component";
8
+ import * as i7 from "./components/data-grid/control-panel.component";
9
+ import * as i8 from "./components/datapager/datapager.component";
10
+ import * as i9 from "./components/dropdownlists/country/country.dropdownlist";
11
+ import * as i10 from "./components/dropdownlists/moderationstatus/moderationstatus.dropdownlist";
12
+ import * as i11 from "./components/dropdownlists/publishstatus/publishstatus.dropdownlist";
13
+ import * as i12 from "./components/dropdownlists/timezone/timezone.dropdownlist";
14
+ import * as i13 from "./components/html-editor/html-editor.component";
15
+ import * as i14 from "./components/identity/signin-button.component";
16
+ import * as i15 from "./components/identity/signup-button.component";
17
+ import * as i16 from "./components/identity/signout-button.component";
18
+ import * as i17 from "./components/nodata/nodata.component";
19
+ import * as i18 from "./components/no-mobile-support/no-mobile-support.component";
20
+ import * as i19 from "./components/spinners/pagespinner/pagespinner.component";
21
+ import * as i20 from "./components/spinners/loading/loading.component";
22
+ import * as i21 from "./components/urlslug/urlslug.component";
23
+ import * as i22 from "./components/feature-will-be-ready/feature-will-be-ready.component";
24
+ import * as i23 from "./components/you-agree-to-our-terms/you-agree-to-our-terms.component";
25
+ import * as i24 from "./dialogs/contact-us/contact-us.dialog";
26
+ import * as i25 from "./directives/native-element.directive";
27
+ import * as i26 from "./directives/hover.directive";
28
+ import * as i27 from "./forms/components/address/address.component";
29
+ import * as i28 from "./forms/components/company/company.component";
30
+ import * as i29 from "./forms/contact-us/contact-us";
31
+ import * as i30 from "./pipes/safeHtml.pipe";
32
+ import * as i31 from "./pipes/replace-text.pipe";
33
+ import * as i32 from "./pipes/filesize.pipe";
34
+ import * as i33 from "./validation/form-validation-summary.component";
35
+ import * as i34 from "./validation/item-validation-summary.component";
36
+ import * as i35 from "@angular/common";
37
+ import * as i36 from "@angular/router";
38
+ import * as i37 from "@angular/forms";
39
+ import * as i38 from "ngx-captcha";
40
+ import * as i39 from "angular-froala-wysiwyg";
41
+ import * as i40 from "../external/fa.module";
42
+ import * as i41 from "../external/kendo.module";
45
43
  export declare class AnatolyUIModule {
46
44
  static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyUIModule, never>;
47
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyUIModule, [typeof i1.BuyAccessButtonComponent, typeof i2.SubscribePlanButtonComponent, typeof i3.CardComponent, typeof i4.CardHeaderComponent, typeof i5.CardBodyComponent, typeof i6.CardFooterComponent, typeof i7.CheckIconComponent, typeof i8.Copy2ClipboardComponent, typeof i9.ControlPanelComponent, typeof i10.DataPagerComponent, typeof i11.CountryDropdownlist, typeof i12.ModerationStatusDropdownlist, typeof i13.PublishStatusDropdownlist, typeof i14.TimezoneDropdownlist, typeof i15.HtmlEditorComponent, typeof i16.SignInButtonComponent, typeof i17.SignUpButtonComponent, typeof i18.SignOutButtonComponent, typeof i19.NodataComponent, typeof i20.NoMobileSupportComponent, typeof i21.PageSpinnerComponent, typeof i22.LoadingComponent, typeof i23.UrlSlugComponent, typeof i24.FeatureWillBeReadyComponent, typeof i25.YouAgreeToOurTermsComponent, typeof i26.ContactUsDialog, typeof i27.NativeElementDirective, typeof i28.HoveringDirective, typeof i29.AddressComponent, typeof i30.CompanyComponent, typeof i31.ContactUsForm, typeof i32.SafeHtmlPipe, typeof i33.ReplaceTextPipe, typeof i34.FileSizePipe, typeof i35.FormValidationSummaryComponent, typeof i36.ItemValidationSummaryComponent], [typeof i37.CommonModule, typeof i38.RouterModule, typeof i39.ReactiveFormsModule, typeof i39.FormsModule, typeof i40.NgxCaptchaModule, typeof i41.FERootModule, typeof i42.FaModule, typeof i43.KendoModule], [typeof i1.BuyAccessButtonComponent, typeof i2.SubscribePlanButtonComponent, typeof i3.CardComponent, typeof i4.CardHeaderComponent, typeof i5.CardBodyComponent, typeof i6.CardFooterComponent, typeof i7.CheckIconComponent, typeof i8.Copy2ClipboardComponent, typeof i9.ControlPanelComponent, typeof i10.DataPagerComponent, typeof i11.CountryDropdownlist, typeof i12.ModerationStatusDropdownlist, typeof i13.PublishStatusDropdownlist, typeof i14.TimezoneDropdownlist, typeof i15.HtmlEditorComponent, typeof i16.SignInButtonComponent, typeof i17.SignUpButtonComponent, typeof i18.SignOutButtonComponent, typeof i19.NodataComponent, typeof i20.NoMobileSupportComponent, typeof i21.PageSpinnerComponent, typeof i22.LoadingComponent, typeof i23.UrlSlugComponent, typeof i24.FeatureWillBeReadyComponent, typeof i25.YouAgreeToOurTermsComponent, typeof i26.ContactUsDialog, typeof i27.NativeElementDirective, typeof i28.HoveringDirective, typeof i29.AddressComponent, typeof i30.CompanyComponent, typeof i31.ContactUsForm, typeof i32.SafeHtmlPipe, typeof i33.ReplaceTextPipe, typeof i34.FileSizePipe, typeof i35.FormValidationSummaryComponent, typeof i36.ItemValidationSummaryComponent]>;
45
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyUIModule, [typeof i1.CardComponent, typeof i2.CardHeaderComponent, typeof i3.CardBodyComponent, typeof i4.CardFooterComponent, typeof i5.CheckIconComponent, typeof i6.Copy2ClipboardComponent, typeof i7.ControlPanelComponent, typeof i8.DataPagerComponent, typeof i9.CountryDropdownlist, typeof i10.ModerationStatusDropdownlist, typeof i11.PublishStatusDropdownlist, typeof i12.TimezoneDropdownlist, typeof i13.HtmlEditorComponent, typeof i14.SignInButtonComponent, typeof i15.SignUpButtonComponent, typeof i16.SignOutButtonComponent, typeof i17.NodataComponent, typeof i18.NoMobileSupportComponent, typeof i19.PageSpinnerComponent, typeof i20.LoadingComponent, typeof i21.UrlSlugComponent, typeof i22.FeatureWillBeReadyComponent, typeof i23.YouAgreeToOurTermsComponent, typeof i24.ContactUsDialog, typeof i25.NativeElementDirective, typeof i26.HoveringDirective, typeof i27.AddressComponent, typeof i28.CompanyComponent, typeof i29.ContactUsForm, typeof i30.SafeHtmlPipe, typeof i31.ReplaceTextPipe, typeof i32.FileSizePipe, typeof i33.FormValidationSummaryComponent, typeof i34.ItemValidationSummaryComponent], [typeof i35.CommonModule, typeof i36.RouterModule, typeof i37.ReactiveFormsModule, typeof i37.FormsModule, typeof i38.NgxCaptchaModule, typeof i39.FERootModule, typeof i40.FaModule, typeof i41.KendoModule], [typeof i1.CardComponent, typeof i2.CardHeaderComponent, typeof i3.CardBodyComponent, typeof i4.CardFooterComponent, typeof i5.CheckIconComponent, typeof i6.Copy2ClipboardComponent, typeof i7.ControlPanelComponent, typeof i8.DataPagerComponent, typeof i9.CountryDropdownlist, typeof i10.ModerationStatusDropdownlist, typeof i11.PublishStatusDropdownlist, typeof i12.TimezoneDropdownlist, typeof i13.HtmlEditorComponent, typeof i14.SignInButtonComponent, typeof i15.SignUpButtonComponent, typeof i16.SignOutButtonComponent, typeof i17.NodataComponent, typeof i18.NoMobileSupportComponent, typeof i19.PageSpinnerComponent, typeof i20.LoadingComponent, typeof i21.UrlSlugComponent, typeof i22.FeatureWillBeReadyComponent, typeof i23.YouAgreeToOurTermsComponent, typeof i24.ContactUsDialog, typeof i25.NativeElementDirective, typeof i26.HoveringDirective, typeof i27.AddressComponent, typeof i28.CompanyComponent, typeof i29.ContactUsForm, typeof i30.SafeHtmlPipe, typeof i31.ReplaceTextPipe, typeof i32.FileSizePipe, typeof i33.FormValidationSummaryComponent, typeof i34.ItemValidationSummaryComponent]>;
48
46
  static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyUIModule>;
49
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osovitny/anatoly",
3
- "version": "3.17.111",
3
+ "version": "3.17.113",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.1.2",
6
6
  "@angular/core": "17.1.2",
@@ -32,7 +32,7 @@
32
32
  "@progress/kendo-data-query": "1.7.0",
33
33
  "@progress/kendo-drawing": "1.19.0",
34
34
  "@progress/kendo-angular-scrollview": "15.0.1",
35
- "@progress/kendo-licensing": "^1.3.5",
35
+ "@progress/kendo-licensing": "1.3.5",
36
36
  "@progress/kendo-svg-icons": "^2.1.0",
37
37
  "@progress/kendo-angular-scheduler": "15.0.1",
38
38
  "@progress/kendo-theme-default": "7.2.0",
@@ -1,155 +0,0 @@
1
- /*
2
- <file>
3
- Project:
4
- @osovitny/anatoly
5
-
6
- Authors:
7
- Dhruv Agarwal dhruv.agarwal@osovitny.com
8
-
9
- Created:
10
- 14 Aug 2024
11
-
12
- Description:
13
- Credit Card payment form via braintree integration
14
-
15
- Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
16
- </file>
17
- */
18
- //Node
19
- import { Component, Input } from '@angular/core';
20
- import * as dropin from 'braintree-web-drop-in';
21
- //App
22
- import { DialogBase } from '../../../ui/components/base/dialog';
23
- import * as i0 from "@angular/core";
24
- import * as i1 from "../../services/payments.service";
25
- import * as i2 from "../../../core/notifications/services/notification-service";
26
- import * as i3 from "@progress/kendo-angular-dialog";
27
- function BraintreeDialog_Conditional_0_Template(rf, ctx) { if (rf & 1) {
28
- const _r2 = i0.ɵɵgetCurrentView();
29
- i0.ɵɵelementStart(0, "div", 1)(1, "kendo-dialog", 2);
30
- i0.ɵɵlistener("close", function BraintreeDialog_Conditional_0_Template_kendo_dialog_close_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onClose()); });
31
- i0.ɵɵelementStart(2, "kendo-dialog-titlebar");
32
- i0.ɵɵtext(3, "Pay with Credit Card");
33
- i0.ɵɵelementEnd();
34
- i0.ɵɵelementStart(4, "div", 3);
35
- i0.ɵɵelement(5, "div", 4);
36
- i0.ɵɵelementEnd();
37
- i0.ɵɵelementStart(6, "kendo-dialog-actions", 5)(7, "button", 6);
38
- i0.ɵɵlistener("click", function BraintreeDialog_Conditional_0_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onPay()); });
39
- i0.ɵɵtext(8, "Pay");
40
- i0.ɵɵelementEnd();
41
- i0.ɵɵelementStart(9, "button", 7);
42
- i0.ɵɵlistener("click", function BraintreeDialog_Conditional_0_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r2); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onClose()); });
43
- i0.ɵɵtext(10, "Cancel");
44
- i0.ɵɵelementEnd()()()();
45
- } if (rf & 2) {
46
- const ctx_r0 = i0.ɵɵnextContext();
47
- i0.ɵɵadvance();
48
- i0.ɵɵproperty("width", 480)("height", 560)("themeColor", ctx_r0.themeColor);
49
- } }
50
- export class BraintreeDialog extends DialogBase {
51
- constructor(ps, ns) {
52
- super();
53
- this.ps = ps;
54
- this.ns = ns;
55
- }
56
- ngOnInit() {
57
- this.setValues();
58
- }
59
- setValues() {
60
- this.ps.showBraintreeDialog$.subscribe((isOpen) => {
61
- this.isOpen = true;
62
- this.initializeEmbedForm();
63
- });
64
- }
65
- initializeEmbedForm() {
66
- const that = this;
67
- // let totalPrice = this.bs.getTotal().toString();
68
- // let currency = this.bs.currency;
69
- this.ps.createBraintreeToken().subscribe((response) => {
70
- if (response?.token) {
71
- dropin.create({
72
- authorization: response?.token,
73
- container: '#braintree-container',
74
- card: {
75
- cardholderName: true
76
- },
77
- //UNCOMMENT BELOW FOR GOOGLEPAY / VENMO
78
- // googlePay: {
79
- // merchantId: '',
80
- // transactionInfo: {
81
- // currencyCode: currency,
82
- // totalPriceStatus: 'FINAL',
83
- // totalPrice: totalPrice,
84
- // }
85
- // },
86
- // venmo: {
87
- // allowNewBrowserTab: false
88
- // },
89
- dataCollector: true
90
- }, function (createErr, instance) {
91
- if (instance) {
92
- that.braintreeInstance = instance;
93
- instance._dataCollector._instance.getDeviceData().then((deviceData) => {
94
- that.deviceData = deviceData;
95
- });
96
- }
97
- else {
98
- that.ns.error('Credit Card Payment is facing issues. Please try other payment methods.');
99
- that.closeDialog();
100
- }
101
- });
102
- }
103
- });
104
- }
105
- submitPayment(payload) {
106
- this.ps.pay(this.paidFor, payload.nonce, 'COMPLETED', this.deviceData);
107
- }
108
- closeDialog() {
109
- super.close();
110
- this.braintreeInstance = null;
111
- }
112
- //Events
113
- onPay() {
114
- if (this.braintreeInstance && this.deviceData) {
115
- const that = this;
116
- this.braintreeInstance.requestPaymentMethod(function (requestPaymentErr, payload) {
117
- that.submitPayment(payload);
118
- });
119
- }
120
- }
121
- onClose() {
122
- const closeDialog = this.closeDialog;
123
- if (this.braintreeInstance) {
124
- this.braintreeInstance.teardown(function (err) {
125
- closeDialog();
126
- });
127
- }
128
- else {
129
- closeDialog();
130
- }
131
- }
132
- get visible() {
133
- return this.isOpen && this.ps.getTotal() > 0;
134
- }
135
- static { this.ɵfac = function BraintreeDialog_Factory(t) { return new (t || BraintreeDialog)(i0.ɵɵdirectiveInject(i1.PaymentsService), i0.ɵɵdirectiveInject(i2.NotificationService)); }; }
136
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BraintreeDialog, selectors: [["anatoly-billing-braintree-dialog"]], inputs: { paidFor: "paidFor", title: "title", description: "description", image: "image" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "send-message__kendo-dialog"], [1, "send-message__kendo-dialog"], [3, "width", "height", "themeColor", "close"], [1, "kendo-dialog-content"], ["id", "braintree-container"], ["layout", "end"], ["type", "button", 1, "btn", "btn-sm", "btn-success", 3, "click"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", 3, "click"]], template: function BraintreeDialog_Template(rf, ctx) { if (rf & 1) {
137
- i0.ɵɵtemplate(0, BraintreeDialog_Conditional_0_Template, 11, 3, "div", 0);
138
- } if (rf & 2) {
139
- i0.ɵɵconditional(0, ctx.visible ? 0 : -1);
140
- } }, dependencies: [i3.DialogComponent, i3.DialogTitleBarComponent, i3.DialogActionsComponent], encapsulation: 2 }); }
141
- }
142
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BraintreeDialog, [{
143
- type: Component,
144
- args: [{ selector: 'anatoly-billing-braintree-dialog', template: "@if (visible) {\r\n <div class='send-message__kendo-dialog'>\r\n <kendo-dialog [width]='480' [height]='560' [themeColor]='themeColor' (close)='onClose()'>\r\n <kendo-dialog-titlebar>Pay with Credit Card</kendo-dialog-titlebar>\r\n <div class='kendo-dialog-content'>\r\n <div id=\"braintree-container\"></div>\r\n </div>\r\n <kendo-dialog-actions layout='end'>\r\n <button class='btn btn-sm btn-success' type='button' (click)='onPay()'>Pay</button>\r\n <button class='btn btn-sm btn-danger' type='button' (click)='onClose()'>Cancel</button>\r\n </kendo-dialog-actions>\r\n </kendo-dialog>\r\n </div>\r\n}\r\n" }]
145
- }], () => [{ type: i1.PaymentsService }, { type: i2.NotificationService }], { paidFor: [{
146
- type: Input
147
- }], title: [{
148
- type: Input
149
- }], description: [{
150
- type: Input
151
- }], image: [{
152
- type: Input
153
- }] }); })();
154
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BraintreeDialog, { className: "BraintreeDialog", filePath: "lib\\billing\\components\\braintree\\braintree.component.ts", lineNumber: 32 }); })();
155
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJhaW50cmVlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi9iaWxsaW5nL2NvbXBvbmVudHMvYnJhaW50cmVlL2JyYWludHJlZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvYmlsbGluZy9jb21wb25lbnRzL2JyYWludHJlZS9icmFpbnRyZWUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7RUFnQkU7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxLQUFLLE1BQU0sTUFBTSx1QkFBdUIsQ0FBQztBQUVoRCxLQUFLO0FBQ0wsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLG9DQUFvQyxDQUFDOzs7Ozs7O0lDdEI5RCw4QkFBd0Msc0JBQUE7SUFDK0IsMEtBQVMsZUFBQSxnQkFBUyxDQUFBLElBQUM7SUFDdEYsNkNBQXVCO0lBQUEsb0NBQW9CO0lBQUEsaUJBQXdCO0lBQ25FLDhCQUFrQztJQUNoQyx5QkFBb0M7SUFDdEMsaUJBQU07SUFDTiwrQ0FBbUMsZ0JBQUE7SUFDb0Isb0tBQVMsZUFBQSxjQUFPLENBQUEsSUFBQztJQUFDLG1CQUFHO0lBQU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lbigpLnN1YnNjcmliZSgocmVzcG9uc2UpID0+IHtcclxuICAgICAgaWYocmVzcG9uc2U/LnRva2VuKSB7XHJcbiAgICAgICAgZHJvcGluLmNyZWF0ZSh7XHJcbiAgICAgICAgICBhdXRob3JpemF0aW9uOiByZXNwb25zZT8udG9rZW4sXHJcbiAgICAgICAgICBjb250YWluZXI6ICcjYnJhaW50cmVlLWNvbnRhaW5lcicsXHJcbiAgICAgICAgICBjYXJkOiB7XHJcbiAgICAgICAgICAgIGNhcmRob2xkZXJOYW1lOiB0cnVlXHJcbiAgICAgICAgICB9LFxyXG5cclxuICAgICAgICAgIC8vVU5DT01NRU5UIEJFTE9XIEZPUiBHT09HTEVQQVkgLyBWRU5NT1xyXG4gICAgICAgICAgLy8gZ29vZ2xlUGF5OiB7XHJcbiAgICAgICAgICAvLyAgIG1lcmNoYW50SWQ6ICcnLFxyXG4gICAgICAgICAgLy8gICB0cmFuc2FjdGlvbkluZm86IHtcclxuICAgICAgICAgIC8vICAgICBjdXJyZW5jeUNvZGU6IGN1cnJlbmN5LFxyXG4gICAgICAgICAgLy8gICAgIHRvdGFsUHJpY2VTdGF0dXM6ICdGSU5BTCcsXHJcbiAgICAgICAgICAvLyAgICAgdG90YWxQcmljZTogdG90YWxQcmljZSxcclxuICAgICAgICAgIC8vICAgfVxyXG4gICAgICAgICAgLy8gfSxcclxuICAgICAgICAgIC8vIHZlbm1vOiB7XHJcbiAgICAgICAgICAvLyAgIGFsbG93TmV3QnJvd3NlclRhYjogZmFsc2VcclxuICAgICAgICAgIC8vIH0sXHJcbiAgICAgICAgICBkYXRhQ29sbGVjdG9yOiB0cnVlXHJcbiAgICAgICAgfSwgZnVuY3Rpb24oY3JlYXRlRXJyLCBpbnN0YW5jZSkge1xyXG4gICAgICAgICAgaWYgKGluc3RhbmNlKSB7XHJcbiAgICAgICAgICAgIHRoYXQuYnJhaW50cmVlSW5zdGFuY2UgPSBpbnN0YW5jZTtcclxuICAgICAgICAgICAgaW5zdGFuY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