@osovitny/anatoly 2.14.40 → 2.14.42
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/esm2020/lib/core/dom.mjs +1 -2
- package/esm2020/lib/core/subs.mjs +1 -1
- package/esm2020/lib/data/services/core-api.service.mjs +4 -7
- package/esm2020/lib/data/services/emails-api.service.mjs +3 -5
- package/esm2020/lib/ui/components/billing/buyaccess-button.component.mjs +7 -7
- package/esm2020/lib/ui/components/billing/subscribe-plan-button.component.mjs +7 -7
- package/fesm2015/osovitny-anatoly.mjs +26 -32
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +26 -32
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/billing/buyaccess-button.component.d.ts +3 -3
- package/lib/ui/components/billing/subscribe-plan-button.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -18,7 +18,6 @@ import Swal from 'sweetalert2';
|
|
|
18
18
|
import { v4 } from 'uuid';
|
|
19
19
|
import * as i1$2 from 'ngx-toastr';
|
|
20
20
|
import * as i1$4 from '@angular/platform-browser';
|
|
21
|
-
import * as $$1 from 'jquery';
|
|
22
21
|
import * as i1$6 from '@angular/forms';
|
|
23
22
|
import { FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
24
23
|
import * as i1$7 from 'angular-froala-wysiwyg';
|
|
@@ -1724,11 +1723,11 @@ class DOM {
|
|
|
1724
1723
|
return this.dir(elem, "parentNode", null, selector);
|
|
1725
1724
|
}
|
|
1726
1725
|
static findInDocument(selector) {
|
|
1727
|
-
let parent =
|
|
1728
|
-
return
|
|
1726
|
+
let parent = $(document);
|
|
1727
|
+
return $(parent).find(selector).get();
|
|
1729
1728
|
}
|
|
1730
1729
|
static find(elem, selector) {
|
|
1731
|
-
return
|
|
1730
|
+
return $(elem).find(selector).get();
|
|
1732
1731
|
}
|
|
1733
1732
|
static remove(nodes) {
|
|
1734
1733
|
if (nodes == null) {
|
|
@@ -1755,13 +1754,13 @@ class DOM {
|
|
|
1755
1754
|
this.remove(this.find(element, selector));
|
|
1756
1755
|
}
|
|
1757
1756
|
static show(elem) {
|
|
1758
|
-
|
|
1757
|
+
$(elem).show();
|
|
1759
1758
|
}
|
|
1760
1759
|
static hide(elem) {
|
|
1761
|
-
|
|
1760
|
+
$(elem).hide();
|
|
1762
1761
|
}
|
|
1763
1762
|
static each(selector, action) {
|
|
1764
|
-
let parent =
|
|
1763
|
+
let parent = $(document);
|
|
1765
1764
|
let elems = DOM.find(parent, selector);
|
|
1766
1765
|
for (let i = 0; i < elems.length; i++) {
|
|
1767
1766
|
let elem = elems[i];
|
|
@@ -1805,13 +1804,13 @@ class DOM {
|
|
|
1805
1804
|
}
|
|
1806
1805
|
*/
|
|
1807
1806
|
static addClass(elem, classNames) {
|
|
1808
|
-
|
|
1807
|
+
$(elem).addClass(classNames);
|
|
1809
1808
|
}
|
|
1810
1809
|
static removeClass(elem, classNames) {
|
|
1811
|
-
|
|
1810
|
+
$(elem).removeClass(classNames);
|
|
1812
1811
|
}
|
|
1813
1812
|
static hasClass(elem, className) {
|
|
1814
|
-
|
|
1813
|
+
$(elem).hasClass(className);
|
|
1815
1814
|
}
|
|
1816
1815
|
}
|
|
1817
1816
|
|
|
@@ -2155,14 +2154,12 @@ class EmailsApiService extends BaseApiService {
|
|
|
2155
2154
|
sendContactUs(captcha, name, email, topic, subject, message, success, error) {
|
|
2156
2155
|
return this.post('sendContactUs', { captcha, name, email, topic, subject, message }).subscribe({
|
|
2157
2156
|
next: (data) => {
|
|
2158
|
-
if (success)
|
|
2157
|
+
if (success)
|
|
2159
2158
|
success(data);
|
|
2160
|
-
}
|
|
2161
2159
|
},
|
|
2162
2160
|
error: (e) => {
|
|
2163
|
-
if (error)
|
|
2161
|
+
if (error)
|
|
2164
2162
|
error(e);
|
|
2165
|
-
}
|
|
2166
2163
|
}
|
|
2167
2164
|
});
|
|
2168
2165
|
}
|
|
@@ -2197,27 +2194,24 @@ class CoreApiService extends BaseApiService {
|
|
|
2197
2194
|
getTimezonesJsonFile(done) {
|
|
2198
2195
|
this.getExternalJsonFile('anatoly', 'timezones.json').subscribe({
|
|
2199
2196
|
next: (data) => {
|
|
2200
|
-
if (done)
|
|
2197
|
+
if (done)
|
|
2201
2198
|
done(data);
|
|
2202
|
-
}
|
|
2203
2199
|
}
|
|
2204
2200
|
});
|
|
2205
2201
|
}
|
|
2206
2202
|
getUSStatesJsonFile(done) {
|
|
2207
2203
|
this.getExternalJsonFile('anatoly', 'usStates.json').subscribe({
|
|
2208
2204
|
next: (data) => {
|
|
2209
|
-
if (done)
|
|
2205
|
+
if (done)
|
|
2210
2206
|
done(data);
|
|
2211
|
-
}
|
|
2212
2207
|
}
|
|
2213
2208
|
});
|
|
2214
2209
|
}
|
|
2215
2210
|
getCountriesJsonFile(done) {
|
|
2216
2211
|
this.getExternalJsonFile('anatoly', 'countries.json').subscribe({
|
|
2217
2212
|
next: (data) => {
|
|
2218
|
-
if (done)
|
|
2213
|
+
if (done)
|
|
2219
2214
|
done(data);
|
|
2220
|
-
}
|
|
2221
2215
|
}
|
|
2222
2216
|
});
|
|
2223
2217
|
}
|
|
@@ -2507,7 +2501,7 @@ class BuyAccessButtonComponent {
|
|
|
2507
2501
|
this.currentPlan = -1;
|
|
2508
2502
|
this.currentPlanTitle = '';
|
|
2509
2503
|
this.visibleIfUserSignedIn = false;
|
|
2510
|
-
this.
|
|
2504
|
+
this.planselect = new EventEmitter();
|
|
2511
2505
|
}
|
|
2512
2506
|
ngOnInit() {
|
|
2513
2507
|
this.appContext.getCurrent((current) => {
|
|
@@ -2520,22 +2514,22 @@ class BuyAccessButtonComponent {
|
|
|
2520
2514
|
});
|
|
2521
2515
|
}
|
|
2522
2516
|
//Events
|
|
2523
|
-
|
|
2524
|
-
this.
|
|
2517
|
+
onPlanSelect() {
|
|
2518
|
+
this.planselect.emit(this.plan);
|
|
2525
2519
|
}
|
|
2526
2520
|
}
|
|
2527
2521
|
BuyAccessButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BuyAccessButtonComponent, deps: [{ token: AppContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2528
|
-
BuyAccessButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BuyAccessButtonComponent, selector: "anatoly-buyaccess-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: {
|
|
2522
|
+
BuyAccessButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BuyAccessButtonComponent, selector: "anatoly-buyaccess-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, ngImport: i0, template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && currentPlan == 1\" \r\n (click)=\"onPlanSelect()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
|
|
2529
2523
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BuyAccessButtonComponent, decorators: [{
|
|
2530
2524
|
type: Component,
|
|
2531
|
-
args: [{ selector: 'anatoly-buyaccess-button', template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && currentPlan == 1\" \r\n (click)=\"
|
|
2525
|
+
args: [{ selector: 'anatoly-buyaccess-button', template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && currentPlan == 1\" \r\n (click)=\"onPlanSelect()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n" }]
|
|
2532
2526
|
}], ctorParameters: function () { return [{ type: AppContextService }]; }, propDecorators: { plan: [{
|
|
2533
2527
|
type: Input
|
|
2534
2528
|
}], planTitle: [{
|
|
2535
2529
|
type: Input
|
|
2536
2530
|
}], visibleIfUserSignedIn: [{
|
|
2537
2531
|
type: Input
|
|
2538
|
-
}],
|
|
2532
|
+
}], planselect: [{
|
|
2539
2533
|
type: Output
|
|
2540
2534
|
}] } });
|
|
2541
2535
|
|
|
@@ -2564,7 +2558,7 @@ class SubscribePlanButtonComponent {
|
|
|
2564
2558
|
this.requestedPlan = -1;
|
|
2565
2559
|
this.requestedPlanTitle = "";
|
|
2566
2560
|
this.visibleIfUserSignedIn = false;
|
|
2567
|
-
this.
|
|
2561
|
+
this.planselect = new EventEmitter();
|
|
2568
2562
|
}
|
|
2569
2563
|
ngOnInit() {
|
|
2570
2564
|
this.appContext.getCurrent((current) => {
|
|
@@ -2579,22 +2573,22 @@ class SubscribePlanButtonComponent {
|
|
|
2579
2573
|
});
|
|
2580
2574
|
}
|
|
2581
2575
|
//Events
|
|
2582
|
-
|
|
2583
|
-
this.
|
|
2576
|
+
onPlanSelect() {
|
|
2577
|
+
this.planselect.emit(this.plan);
|
|
2584
2578
|
}
|
|
2585
2579
|
}
|
|
2586
2580
|
SubscribePlanButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: SubscribePlanButtonComponent, deps: [{ token: AppContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2587
|
-
SubscribePlanButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: SubscribePlanButtonComponent, selector: "anatoly-subscribe-plan-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: {
|
|
2581
|
+
SubscribePlanButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: SubscribePlanButtonComponent, selector: "anatoly-subscribe-plan-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, ngImport: i0, template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\" \r\n (click)=\"onPlanSelect()\">\r\n Subscribe\r\n </button>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
|
|
2588
2582
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: SubscribePlanButtonComponent, decorators: [{
|
|
2589
2583
|
type: Component,
|
|
2590
|
-
args: [{ selector: "anatoly-subscribe-plan-button", template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\" \r\n (click)=\"
|
|
2584
|
+
args: [{ selector: "anatoly-subscribe-plan-button", template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\" \r\n (click)=\"onPlanSelect()\">\r\n Subscribe\r\n </button>\r\n </div>\r\n</div>\r\n" }]
|
|
2591
2585
|
}], ctorParameters: function () { return [{ type: AppContextService }]; }, propDecorators: { plan: [{
|
|
2592
2586
|
type: Input
|
|
2593
2587
|
}], planTitle: [{
|
|
2594
2588
|
type: Input
|
|
2595
2589
|
}], visibleIfUserSignedIn: [{
|
|
2596
2590
|
type: Input
|
|
2597
|
-
}],
|
|
2591
|
+
}], planselect: [{
|
|
2598
2592
|
type: Output
|
|
2599
2593
|
}] } });
|
|
2600
2594
|
|