@osovitny/anatoly 3.17.106 → 3.17.110
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/esm2022/lib/data/data.module.mjs +4 -1
- package/esm2022/lib/data/exports.mjs +2 -1
- package/esm2022/lib/data/services/billing/subscriptions-api.service.mjs +49 -0
- package/esm2022/lib/ui/components/card/card.component.mjs +4 -4
- package/esm2022/lib/ui/forms/components/address/address.component.mjs +36 -36
- package/esm2022/lib/ui/forms/components/company/company.component.mjs +20 -20
- package/fesm2022/osovitny-anatoly.mjs +103 -58
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/data/exports.d.ts +1 -0
- package/lib/data/services/billing/subscriptions-api.service.d.ts +12 -0
- package/lib/ui/components/card/card.component.d.ts +1 -1
- package/lib/ui/components/index.d.ts +1 -1
- package/lib/ui/forms/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5803,6 +5803,49 @@ class CurrenciesStorageService {
|
|
|
5803
5803
|
type: Injectable
|
|
5804
5804
|
}], () => [{ type: AppContextService }, { type: CurrenciesApiService }], null); })();
|
|
5805
5805
|
|
|
5806
|
+
/*
|
|
5807
|
+
<file>
|
|
5808
|
+
Project:
|
|
5809
|
+
@osovitny/anatoly
|
|
5810
|
+
|
|
5811
|
+
Authors:
|
|
5812
|
+
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
5813
|
+
|
|
5814
|
+
Created:
|
|
5815
|
+
10 Nov 2024
|
|
5816
|
+
|
|
5817
|
+
Copyright (c) 2017-2025 Osovitny Inc. All rights reserved.
|
|
5818
|
+
</file>
|
|
5819
|
+
*/
|
|
5820
|
+
//Node
|
|
5821
|
+
class SubscriptionsApiService extends ApiServiceBase {
|
|
5822
|
+
constructor(http) {
|
|
5823
|
+
super(http);
|
|
5824
|
+
this.http = http;
|
|
5825
|
+
this.baseUrl = `${ApiUrl}/billing/subscriptions`;
|
|
5826
|
+
}
|
|
5827
|
+
getSubscriptions(data) {
|
|
5828
|
+
return this.get('getSubscriptions', data);
|
|
5829
|
+
}
|
|
5830
|
+
addSubscription(billingPlan, currentSubscriptionId, newSubscriptionId, success, error) {
|
|
5831
|
+
this.post('addSubscription', { billingPlan, currentSubscriptionId, newSubscriptionId }).subscribe({
|
|
5832
|
+
next: (data) => {
|
|
5833
|
+
if (success)
|
|
5834
|
+
success(data);
|
|
5835
|
+
},
|
|
5836
|
+
error: (e) => {
|
|
5837
|
+
if (error)
|
|
5838
|
+
error(e);
|
|
5839
|
+
}
|
|
5840
|
+
});
|
|
5841
|
+
}
|
|
5842
|
+
static { this.ɵfac = function SubscriptionsApiService_Factory(t) { return new (t || SubscriptionsApiService)(i0.ɵɵinject(i1$1.HttpClient)); }; }
|
|
5843
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SubscriptionsApiService, factory: SubscriptionsApiService.ɵfac }); }
|
|
5844
|
+
}
|
|
5845
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubscriptionsApiService, [{
|
|
5846
|
+
type: Injectable
|
|
5847
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
5848
|
+
|
|
5806
5849
|
/*
|
|
5807
5850
|
<file>
|
|
5808
5851
|
Project:
|
|
@@ -6567,8 +6610,8 @@ class SubscribePlanButtonComponent {
|
|
|
6567
6610
|
</file>
|
|
6568
6611
|
*/
|
|
6569
6612
|
//Node
|
|
6570
|
-
const _c0$c = [[["
|
|
6571
|
-
const _c1 = ["
|
|
6613
|
+
const _c0$c = [[["card-header"]], [["card-body"]], "*", [["card-footer"]]];
|
|
6614
|
+
const _c1 = ["card-header", "card-body", "*", "card-footer"];
|
|
6572
6615
|
class CardComponent extends ComponentBase {
|
|
6573
6616
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵCardComponent_BaseFactory; return function CardComponent_Factory(t) { return (ɵCardComponent_BaseFactory || (ɵCardComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardComponent)))(t || CardComponent); }; })(); }
|
|
6574
6617
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardComponent, selectors: [["anatoly-card"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 5, vars: 3, template: function CardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -6585,7 +6628,7 @@ class CardComponent extends ComponentBase {
|
|
|
6585
6628
|
}
|
|
6586
6629
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardComponent, [{
|
|
6587
6630
|
type: Component,
|
|
6588
|
-
args: [{ selector: 'anatoly-card', template: "<div class='card {{ classes }}'>\r\n <ng-content select='
|
|
6631
|
+
args: [{ selector: 'anatoly-card', template: "<div class='card {{ classes }}'>\r\n <ng-content select='card-header'></ng-content>\r\n <ng-content select='card-body'></ng-content>\r\n <ng-content></ng-content>\r\n <ng-content select='card-footer'></ng-content>\r\n</div>\r\n" }]
|
|
6589
6632
|
}], null, null); })();
|
|
6590
6633
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CardComponent, { className: "CardComponent", filePath: "lib\\ui\\components\\card\\card.component.ts", lineNumber: 26 }); })();
|
|
6591
6634
|
|
|
@@ -8856,13 +8899,13 @@ class HoveringDirective {
|
|
|
8856
8899
|
*/
|
|
8857
8900
|
//Node
|
|
8858
8901
|
function AddressComponent_anatoly_card_header_1_Template(rf, ctx) { if (rf & 1) {
|
|
8859
|
-
i0.ɵɵelement(0, "anatoly-card-header",
|
|
8902
|
+
i0.ɵɵelement(0, "anatoly-card-header", 18);
|
|
8860
8903
|
} if (rf & 2) {
|
|
8861
8904
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
8862
8905
|
i0.ɵɵproperty("title", ctx_r0.title);
|
|
8863
8906
|
} }
|
|
8864
|
-
function
|
|
8865
|
-
i0.ɵɵelementStart(0, "option",
|
|
8907
|
+
function AddressComponent_div_18_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
8908
|
+
i0.ɵɵelementStart(0, "option", 21);
|
|
8866
8909
|
i0.ɵɵtext(1);
|
|
8867
8910
|
i0.ɵɵelementEnd();
|
|
8868
8911
|
} if (rf & 2) {
|
|
@@ -8872,16 +8915,16 @@ function AddressComponent_div_16_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
8872
8915
|
i0.ɵɵtextInterpolate(state_r4.name);
|
|
8873
8916
|
} }
|
|
8874
8917
|
const _c0$1 = a0 => ({ "has-error": a0 });
|
|
8875
|
-
function
|
|
8918
|
+
function AddressComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
8876
8919
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
8877
|
-
i0.ɵɵelementStart(0, "div",
|
|
8920
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "label");
|
|
8878
8921
|
i0.ɵɵtext(2, "State");
|
|
8879
8922
|
i0.ɵɵelementEnd();
|
|
8880
|
-
i0.ɵɵelementStart(3, "select",
|
|
8881
|
-
i0.ɵɵlistener("change", function
|
|
8882
|
-
i0.ɵɵtemplate(4,
|
|
8923
|
+
i0.ɵɵelementStart(3, "select", 19);
|
|
8924
|
+
i0.ɵɵlistener("change", function AddressComponent_div_18_Template_select_change_3_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onUSStateChange($event)); });
|
|
8925
|
+
i0.ɵɵtemplate(4, AddressComponent_div_18_option_4_Template, 2, 2, "option", 16);
|
|
8883
8926
|
i0.ɵɵelementEnd();
|
|
8884
|
-
i0.ɵɵelement(5, "anatoly-item-validation-summary",
|
|
8927
|
+
i0.ɵɵelement(5, "anatoly-item-validation-summary", 20);
|
|
8885
8928
|
i0.ɵɵelementEnd();
|
|
8886
8929
|
} if (rf & 2) {
|
|
8887
8930
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -8891,8 +8934,8 @@ function AddressComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
8891
8934
|
i0.ɵɵadvance();
|
|
8892
8935
|
i0.ɵɵproperty("formGroup", ctx_r1.formGroup)("formSubmitted", ctx_r1.formSubmitted);
|
|
8893
8936
|
} }
|
|
8894
|
-
function
|
|
8895
|
-
i0.ɵɵelementStart(0, "option",
|
|
8937
|
+
function AddressComponent_option_28_Template(rf, ctx) { if (rf & 1) {
|
|
8938
|
+
i0.ɵɵelementStart(0, "option", 21);
|
|
8896
8939
|
i0.ɵɵtext(1);
|
|
8897
8940
|
i0.ɵɵelementEnd();
|
|
8898
8941
|
} if (rf & 2) {
|
|
@@ -8994,43 +9037,43 @@ class AddressComponent extends EditComponentBase {
|
|
|
8994
9037
|
this.change.emit(usState);
|
|
8995
9038
|
}
|
|
8996
9039
|
static { this.ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(CoreApiService)); }; }
|
|
8997
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressComponent, selectors: [["anatoly-forms-address"]], inputs: { address: "address" }, outputs: { change: "change" }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
9040
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressComponent, selectors: [["anatoly-forms-address"]], inputs: { address: "address" }, outputs: { change: "change" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 30, vars: 29, consts: [["classes", "card-outline card-primary"], [3, "title", 4, "ngIf"], [3, "formGroup"], [1, "row>"], [1, "form-group", 3, "ngClass"], ["type", "text", "formControlName", "address_street", "placeholder", "Street Address", 1, "form-control"], ["controlName", "address_street", "controlTitle", "Street", 3, "formGroup", "formSubmitted"], ["type", "text", "formControlName", "address_street2", "placeholder", "Apartment, suite, unit, building, floor, etc.", 1, "form-control"], ["controlName", "address_street2", "controlTitle", "Street2", 3, "formGroup", "formSubmitted"], [1, "form-group", "col-3", "mb-0", 3, "ngClass"], ["type", "text", "formControlName", "address_city", "placeholder", "City", 1, "form-control"], ["controlName", "address_city", "controlTitle", "City", 3, "formGroup", "formSubmitted"], ["class", "form-group col-3 mb-0", 3, "ngClass", 4, "ngIf"], ["type", "text", "formControlName", "address_zipcode", "placeholder", "zipcode", 1, "form-control"], ["controlName", "address_zipcode", "controlTitle", "zipcode", 3, "formGroup", "formSubmitted"], ["formControlName", "address_country", "data-placeholder", "Select a Country", 1, "form-control", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], ["controlName", "address_country", "controlTitle", "Country", 3, "formGroup", "formSubmitted"], [3, "title"], ["formControlName", "address_stateOrRegion", 1, "form-control", 3, "change"], ["controlName", "address_stateOrRegion", "controlTitle", "State", 3, "formGroup", "formSubmitted"], [3, "value"]], template: function AddressComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8998
9041
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
8999
9042
|
i0.ɵɵtemplate(1, AddressComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
9000
|
-
i0.ɵɵelementStart(2, "anatoly-card-body", 2)(3, "div", 3)(4, "label");
|
|
9001
|
-
i0.ɵɵtext(
|
|
9002
|
-
i0.ɵɵelementEnd();
|
|
9003
|
-
i0.ɵɵelement(6, "input", 4)(7, "anatoly-item-validation-summary", 5);
|
|
9043
|
+
i0.ɵɵelementStart(2, "anatoly-card-body", 2)(3, "div", 3)(4, "div", 4)(5, "label");
|
|
9044
|
+
i0.ɵɵtext(6, "Street Address");
|
|
9004
9045
|
i0.ɵɵelementEnd();
|
|
9005
|
-
i0.ɵɵ
|
|
9006
|
-
i0.ɵɵelement(9, "input", 6)(10, "anatoly-item-validation-summary", 7);
|
|
9046
|
+
i0.ɵɵelement(7, "input", 5)(8, "anatoly-item-validation-summary", 6);
|
|
9007
9047
|
i0.ɵɵelementEnd();
|
|
9008
|
-
i0.ɵɵelementStart(
|
|
9009
|
-
i0.ɵɵ
|
|
9048
|
+
i0.ɵɵelementStart(9, "div", 4);
|
|
9049
|
+
i0.ɵɵelement(10, "input", 7)(11, "anatoly-item-validation-summary", 8);
|
|
9050
|
+
i0.ɵɵelementEnd()();
|
|
9051
|
+
i0.ɵɵelementStart(12, "div", 3)(13, "div", 9)(14, "label");
|
|
9052
|
+
i0.ɵɵtext(15, "City");
|
|
9010
9053
|
i0.ɵɵelementEnd();
|
|
9011
|
-
i0.ɵɵelement(
|
|
9054
|
+
i0.ɵɵelement(16, "input", 10)(17, "anatoly-item-validation-summary", 11);
|
|
9012
9055
|
i0.ɵɵelementEnd();
|
|
9013
|
-
i0.ɵɵtemplate(
|
|
9014
|
-
i0.ɵɵelementStart(
|
|
9015
|
-
i0.ɵɵtext(
|
|
9056
|
+
i0.ɵɵtemplate(18, AddressComponent_div_18_Template, 6, 6, "div", 12);
|
|
9057
|
+
i0.ɵɵelementStart(19, "div", 9)(20, "label");
|
|
9058
|
+
i0.ɵɵtext(21, "Zipcode");
|
|
9016
9059
|
i0.ɵɵelementEnd();
|
|
9017
|
-
i0.ɵɵelement(
|
|
9060
|
+
i0.ɵɵelement(22, "input", 13)(23, "anatoly-item-validation-summary", 14);
|
|
9018
9061
|
i0.ɵɵelementEnd();
|
|
9019
|
-
i0.ɵɵelementStart(
|
|
9020
|
-
i0.ɵɵtext(
|
|
9062
|
+
i0.ɵɵelementStart(24, "div", 9)(25, "label");
|
|
9063
|
+
i0.ɵɵtext(26, "Country");
|
|
9021
9064
|
i0.ɵɵelementEnd();
|
|
9022
|
-
i0.ɵɵelementStart(
|
|
9023
|
-
i0.ɵɵlistener("change", function
|
|
9024
|
-
i0.ɵɵtemplate(
|
|
9065
|
+
i0.ɵɵelementStart(27, "select", 15);
|
|
9066
|
+
i0.ɵɵlistener("change", function AddressComponent_Template_select_change_27_listener($event) { return ctx.onCountryChange($event); });
|
|
9067
|
+
i0.ɵɵtemplate(28, AddressComponent_option_28_Template, 2, 2, "option", 16);
|
|
9025
9068
|
i0.ɵɵelementEnd();
|
|
9026
|
-
i0.ɵɵelement(
|
|
9027
|
-
i0.ɵɵelementEnd()()();
|
|
9069
|
+
i0.ɵɵelement(29, "anatoly-item-validation-summary", 17);
|
|
9070
|
+
i0.ɵɵelementEnd()()()();
|
|
9028
9071
|
} if (rf & 2) {
|
|
9029
9072
|
i0.ɵɵadvance();
|
|
9030
9073
|
i0.ɵɵproperty("ngIf", ctx.isTitleVisible);
|
|
9031
9074
|
i0.ɵɵadvance();
|
|
9032
9075
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
9033
|
-
i0.ɵɵadvance();
|
|
9076
|
+
i0.ɵɵadvance(2);
|
|
9034
9077
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$1, ctx.isControlInvalid("address_street")));
|
|
9035
9078
|
i0.ɵɵadvance(4);
|
|
9036
9079
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9038,7 +9081,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9038
9081
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$1, ctx.isControlInvalid("address_street2")));
|
|
9039
9082
|
i0.ɵɵadvance(2);
|
|
9040
9083
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
9041
|
-
i0.ɵɵadvance();
|
|
9084
|
+
i0.ɵɵadvance(2);
|
|
9042
9085
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$1, ctx.isControlInvalid("address_city")));
|
|
9043
9086
|
i0.ɵɵadvance(4);
|
|
9044
9087
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9058,7 +9101,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9058
9101
|
}
|
|
9059
9102
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
9060
9103
|
type: Component,
|
|
9061
|
-
args: [{ selector: 'anatoly-forms-address', template: "<anatoly-card classes='card-outline card-primary'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title' />\r\n <anatoly-card-body [formGroup]='formGroup'>\r\n <div class='form-group' [ngClass]=\"{'has-error': isControlInvalid('address_street')}\" >\r\n <label>Street Address</label>\r\n <input type='text' class='form-control' formControlName='address_street' placeholder='Street Address'>\r\n <anatoly-item-validation-summary controlName='address_street'\r\n controlTitle='Street'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group' [ngClass]=\"{'has-error': isControlInvalid('address_street2')}\" >\r\n <input type='text' class='form-control' formControlName='address_street2' placeholder='Apartment, suite, unit, building, floor, etc.'>\r\n <anatoly-item-validation-summary controlName='address_street2'\r\n controlTitle='Street2'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-3 mb-0' [ngClass]=\"{'has-error': isControlInvalid('address_city')}\">\r\n <label>City</label>\r\n <input type='text' class='form-control' formControlName='address_city' placeholder='City'>\r\n <anatoly-item-validation-summary controlName='address_city'\r\n controlTitle='City'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-3 mb-0' *ngIf=\"formGroup.value.address_country == 'US'\" [ngClass]=\"{'has-error': isControlInvalid('address_stateOrRegion')}\">\r\n <label>State</label>\r\n <select class='form-control' (change)='onUSStateChange($event)' formControlName='address_stateOrRegion'>\r\n <option *ngFor='let state of usStateData' [value]='state.code'>{{state.name}}</option>\r\n </select>\r\n <anatoly-item-validation-summary controlName='address_stateOrRegion'\r\n controlTitle='State'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-3 mb-0' [ngClass]=\"{'has-error': isControlInvalid('address_zipcode')}\" >\r\n <label>
|
|
9104
|
+
args: [{ selector: 'anatoly-forms-address', template: "<anatoly-card classes='card-outline card-primary'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title' />\r\n <anatoly-card-body [formGroup]='formGroup'>\r\n <div class=\"row>\">\r\n <div class='form-group' [ngClass]=\"{'has-error': isControlInvalid('address_street')}\" >\r\n <label>Street Address</label>\r\n <input type='text' class='form-control' formControlName='address_street' placeholder='Street Address'>\r\n <anatoly-item-validation-summary controlName='address_street'\r\n controlTitle='Street'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group' [ngClass]=\"{'has-error': isControlInvalid('address_street2')}\" >\r\n <input type='text' class='form-control' formControlName='address_street2' placeholder='Apartment, suite, unit, building, floor, etc.'>\r\n <anatoly-item-validation-summary controlName='address_street2'\r\n controlTitle='Street2'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n <div class=\"row>\">\r\n <div class='form-group col-3 mb-0' [ngClass]=\"{'has-error': isControlInvalid('address_city')}\">\r\n <label>City</label>\r\n <input type='text' class='form-control' formControlName='address_city' placeholder='City'>\r\n <anatoly-item-validation-summary controlName='address_city'\r\n controlTitle='City'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-3 mb-0' *ngIf=\"formGroup.value.address_country == 'US'\" [ngClass]=\"{'has-error': isControlInvalid('address_stateOrRegion')}\">\r\n <label>State</label>\r\n <select class='form-control' (change)='onUSStateChange($event)' formControlName='address_stateOrRegion'>\r\n <option *ngFor='let state of usStateData' [value]='state.code'>{{state.name}}</option>\r\n </select>\r\n <anatoly-item-validation-summary controlName='address_stateOrRegion'\r\n controlTitle='State'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-3 mb-0' [ngClass]=\"{'has-error': isControlInvalid('address_zipcode')}\" >\r\n <label>Zipcode</label>\r\n <input type='text' class='form-control' formControlName='address_zipcode' placeholder='zipcode'>\r\n <anatoly-item-validation-summary controlName='address_zipcode'\r\n controlTitle='zipcode'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-3 mb-0' [ngClass]=\"{'has-error': isControlInvalid('address_country')}\">\r\n <label>Country</label>\r\n <select class='form-control' (change)='onCountryChange($event)' formControlName='address_country' data-placeholder='Select a Country'>\r\n <option *ngFor='let country of countryData' [value]='country.code'>{{country.name}}</option>\r\n </select>\r\n <anatoly-item-validation-summary controlName='address_country'\r\n controlTitle='Country'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n </anatoly-card-body>\r\n</anatoly-card>\r\n" }]
|
|
9062
9105
|
}], () => [{ type: i2.FormBuilder }, { type: CoreApiService }], { address: [{
|
|
9063
9106
|
type: Input
|
|
9064
9107
|
}], change: [{
|
|
@@ -9083,7 +9126,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9083
9126
|
*/
|
|
9084
9127
|
//Node
|
|
9085
9128
|
function CompanyComponent_anatoly_card_header_1_Template(rf, ctx) { if (rf & 1) {
|
|
9086
|
-
i0.ɵɵelement(0, "anatoly-card-header",
|
|
9129
|
+
i0.ɵɵelement(0, "anatoly-card-header", 14);
|
|
9087
9130
|
} if (rf & 2) {
|
|
9088
9131
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
9089
9132
|
i0.ɵɵproperty("title", ctx_r0.title);
|
|
@@ -9139,35 +9182,35 @@ class CompanyComponent extends EditComponentBase {
|
|
|
9139
9182
|
return JSON.stringify(data);
|
|
9140
9183
|
}
|
|
9141
9184
|
static { this.ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder)); }; }
|
|
9142
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyComponent, selectors: [["anatoly-forms-company"]], inputs: { company: "company" }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
9185
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyComponent, selectors: [["anatoly-forms-company"]], inputs: { company: "company" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 25, vars: 22, consts: [["classes", "card-outline card-primary"], [3, "title", 4, "ngIf"], [3, "formGroup"], [1, "row>"], [1, "form-group", "col-6", 3, "ngClass"], ["type", "text", "formControlName", "company_name", "placeholder", "Company Name", 1, "form-control"], ["controlName", "company_name", "controlTitle", "Company Name", 3, "formGroup", "formSubmitted"], ["type", "tel", "formControlName", "company_phone", "placeholder", "Company Phone", 1, "form-control"], ["controlName", "company_phone", "controlTitle", "Company Phone", 3, "formGroup", "formSubmitted"], [1, "form-group", "col-6", "mb-0", 3, "ngClass"], ["type", "email", "formControlName", "company_email", "placeholder", "Company Email", 1, "form-control"], ["controlName", "company_email", "controlTitle", "Company Email", 3, "formGroup", "formSubmitted"], ["type", "url", "placeholder", "https://example.com", "pattern", "https://.*", "size", "30", "formControlName", "company_websiteUrl", 1, "form-control"], ["controlName", "company_websiteUrl", "controlTitle", "Company website url", 3, "formGroup", "formSubmitted"], [3, "title"]], template: function CompanyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9143
9186
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
9144
9187
|
i0.ɵɵtemplate(1, CompanyComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
9145
|
-
i0.ɵɵelementStart(2, "anatoly-card-body", 2)(3, "div", 3)(4, "label");
|
|
9146
|
-
i0.ɵɵtext(
|
|
9147
|
-
i0.ɵɵelementEnd();
|
|
9148
|
-
i0.ɵɵelement(6, "input", 4)(7, "anatoly-item-validation-summary", 5);
|
|
9188
|
+
i0.ɵɵelementStart(2, "anatoly-card-body", 2)(3, "div", 3)(4, "div", 4)(5, "label");
|
|
9189
|
+
i0.ɵɵtext(6, "Name");
|
|
9149
9190
|
i0.ɵɵelementEnd();
|
|
9150
|
-
i0.ɵɵ
|
|
9151
|
-
i0.ɵɵtext(10, "Phone");
|
|
9191
|
+
i0.ɵɵelement(7, "input", 5)(8, "anatoly-item-validation-summary", 6);
|
|
9152
9192
|
i0.ɵɵelementEnd();
|
|
9153
|
-
i0.ɵɵ
|
|
9193
|
+
i0.ɵɵelementStart(9, "div", 4)(10, "label");
|
|
9194
|
+
i0.ɵɵtext(11, "Phone");
|
|
9154
9195
|
i0.ɵɵelementEnd();
|
|
9155
|
-
i0.ɵɵ
|
|
9156
|
-
i0.ɵɵ
|
|
9196
|
+
i0.ɵɵelement(12, "input", 7)(13, "anatoly-item-validation-summary", 8);
|
|
9197
|
+
i0.ɵɵelementEnd()();
|
|
9198
|
+
i0.ɵɵelementStart(14, "div", 3)(15, "div", 9)(16, "label");
|
|
9199
|
+
i0.ɵɵtext(17, "Email");
|
|
9157
9200
|
i0.ɵɵelementEnd();
|
|
9158
|
-
i0.ɵɵelement(
|
|
9201
|
+
i0.ɵɵelement(18, "input", 10)(19, "anatoly-item-validation-summary", 11);
|
|
9159
9202
|
i0.ɵɵelementEnd();
|
|
9160
|
-
i0.ɵɵelementStart(
|
|
9161
|
-
i0.ɵɵtext(
|
|
9203
|
+
i0.ɵɵelementStart(20, "div", 9)(21, "label");
|
|
9204
|
+
i0.ɵɵtext(22, "Website Url");
|
|
9162
9205
|
i0.ɵɵelementEnd();
|
|
9163
|
-
i0.ɵɵelement(
|
|
9164
|
-
i0.ɵɵelementEnd()()();
|
|
9206
|
+
i0.ɵɵelement(23, "input", 12)(24, "anatoly-item-validation-summary", 13);
|
|
9207
|
+
i0.ɵɵelementEnd()()()();
|
|
9165
9208
|
} if (rf & 2) {
|
|
9166
9209
|
i0.ɵɵadvance();
|
|
9167
9210
|
i0.ɵɵproperty("ngIf", ctx.isTitleVisible);
|
|
9168
9211
|
i0.ɵɵadvance();
|
|
9169
9212
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
9170
|
-
i0.ɵɵadvance();
|
|
9213
|
+
i0.ɵɵadvance(2);
|
|
9171
9214
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0, ctx.isControlInvalid("company_name")));
|
|
9172
9215
|
i0.ɵɵadvance(4);
|
|
9173
9216
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9175,7 +9218,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
9175
9218
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0, ctx.isControlInvalid("company_phone")));
|
|
9176
9219
|
i0.ɵɵadvance(4);
|
|
9177
9220
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
9178
|
-
i0.ɵɵadvance();
|
|
9221
|
+
i0.ɵɵadvance(2);
|
|
9179
9222
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c0, ctx.isControlInvalid("company_email")));
|
|
9180
9223
|
i0.ɵɵadvance(4);
|
|
9181
9224
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9187,7 +9230,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
9187
9230
|
}
|
|
9188
9231
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompanyComponent, [{
|
|
9189
9232
|
type: Component,
|
|
9190
|
-
args: [{ selector: 'anatoly-forms-company', template: "<anatoly-card classes='card-outline card-primary'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title' />\r\n <anatoly-card-body [formGroup]='formGroup' >\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_name') }\">\r\n <label>Name</label>\r\n <input type='text' class='form-control' formControlName='company_name' placeholder='Company Name'>\r\n <anatoly-item-validation-summary controlName='company_name'\r\n controlTitle='Company Name'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_phone') }\">\r\n <label>Phone</label>\r\n <input type='tel' class='form-control' formControlName='company_phone' placeholder='Company Phone'>\r\n <anatoly-item-validation-summary controlName='company_phone'\r\n controlTitle='Company Phone'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6 mb-0' [ngClass]=\"{'has-error': isControlInvalid('company_email') }\">\r\n <label>Email</label>\r\n <input type='email' class='form-control' formControlName='company_email' placeholder='Company Email'>\r\n <anatoly-item-validation-summary controlName='company_email'\r\n controlTitle='Company Email'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6 mb-0' [ngClass]=\"{'has-error': isControlInvalid('company_websiteUrl') }\">\r\n <label>Website Url</label>\r\n <input type='url' placeholder='https://example.com' pattern='https://.*' size='30'\r\n class='form-control' formControlName='company_websiteUrl'>\r\n <anatoly-item-validation-summary controlName='company_websiteUrl'\r\n controlTitle='Company website url'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </anatoly-card-body>\r\n</anatoly-card>\r\n" }]
|
|
9233
|
+
args: [{ selector: 'anatoly-forms-company', template: "<anatoly-card classes='card-outline card-primary'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title' />\r\n <anatoly-card-body [formGroup]='formGroup' >\r\n <div class=\"row>\">\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_name') }\">\r\n <label>Name</label>\r\n <input type='text' class='form-control' formControlName='company_name' placeholder='Company Name'>\r\n <anatoly-item-validation-summary controlName='company_name'\r\n controlTitle='Company Name'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_phone') }\">\r\n <label>Phone</label>\r\n <input type='tel' class='form-control' formControlName='company_phone' placeholder='Company Phone'>\r\n <anatoly-item-validation-summary controlName='company_phone'\r\n controlTitle='Company Phone'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n <div class=\"row>\">\r\n <div class='form-group col-6 mb-0' [ngClass]=\"{'has-error': isControlInvalid('company_email') }\">\r\n <label>Email</label>\r\n <input type='email' class='form-control' formControlName='company_email' placeholder='Company Email'>\r\n <anatoly-item-validation-summary controlName='company_email'\r\n controlTitle='Company Email'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6 mb-0' [ngClass]=\"{'has-error': isControlInvalid('company_websiteUrl') }\">\r\n <label>Website Url</label>\r\n <input type='url' placeholder='https://example.com' pattern='https://.*' size='30'\r\n class='form-control' formControlName='company_websiteUrl'>\r\n <anatoly-item-validation-summary controlName='company_websiteUrl'\r\n controlTitle='Company website url'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n </anatoly-card-body>\r\n</anatoly-card>\r\n" }]
|
|
9191
9234
|
}], () => [{ type: i2.FormBuilder }], { company: [{
|
|
9192
9235
|
type: Input
|
|
9193
9236
|
}] }); })();
|
|
@@ -9477,6 +9520,7 @@ class AnatolyDataModule {
|
|
|
9477
9520
|
CurrenciesStorageService,
|
|
9478
9521
|
DiscountCodesApiService,
|
|
9479
9522
|
PaymentsApiService,
|
|
9523
|
+
SubscriptionsApiService,
|
|
9480
9524
|
TransactionsApiService,
|
|
9481
9525
|
//App
|
|
9482
9526
|
CoreApiService,
|
|
@@ -9495,6 +9539,7 @@ class AnatolyDataModule {
|
|
|
9495
9539
|
CurrenciesStorageService,
|
|
9496
9540
|
DiscountCodesApiService,
|
|
9497
9541
|
PaymentsApiService,
|
|
9542
|
+
SubscriptionsApiService,
|
|
9498
9543
|
TransactionsApiService,
|
|
9499
9544
|
//App
|
|
9500
9545
|
CoreApiService,
|
|
@@ -10431,5 +10476,5 @@ class AnatolyModule {
|
|
|
10431
10476
|
* Generated bundle index. Do not edit.
|
|
10432
10477
|
*/
|
|
10433
10478
|
|
|
10434
|
-
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, 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, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PublishStatus, PublishStatusDropdownlist, 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 };
|
|
10479
|
+
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, 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, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PublishStatus, PublishStatusDropdownlist, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, getAppSettingsById, getAppSettingsByName, is, localizationInitializerFactory, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
|
|
10435
10480
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|