@osovitny/anatoly 3.17.106 → 3.17.107
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/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 +102 -57
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- 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/package.json +1 -1
|
@@ -6567,8 +6567,8 @@ class SubscribePlanButtonComponent {
|
|
|
6567
6567
|
</file>
|
|
6568
6568
|
*/
|
|
6569
6569
|
//Node
|
|
6570
|
-
const _c0$c = [[["
|
|
6571
|
-
const _c1 = ["
|
|
6570
|
+
const _c0$c = [[["card-header"]], [["card-body"]], "*", [["card-footer"]]];
|
|
6571
|
+
const _c1 = ["card-header", "card-body", "*", "card-footer"];
|
|
6572
6572
|
class CardComponent extends ComponentBase {
|
|
6573
6573
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵCardComponent_BaseFactory; return function CardComponent_Factory(t) { return (ɵCardComponent_BaseFactory || (ɵCardComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardComponent)))(t || CardComponent); }; })(); }
|
|
6574
6574
|
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 +6585,7 @@ class CardComponent extends ComponentBase {
|
|
|
6585
6585
|
}
|
|
6586
6586
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardComponent, [{
|
|
6587
6587
|
type: Component,
|
|
6588
|
-
args: [{ selector: 'anatoly-card', template: "<div class='card {{ classes }}'>\r\n <ng-content select='
|
|
6588
|
+
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
6589
|
}], null, null); })();
|
|
6590
6590
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CardComponent, { className: "CardComponent", filePath: "lib\\ui\\components\\card\\card.component.ts", lineNumber: 26 }); })();
|
|
6591
6591
|
|
|
@@ -8856,13 +8856,13 @@ class HoveringDirective {
|
|
|
8856
8856
|
*/
|
|
8857
8857
|
//Node
|
|
8858
8858
|
function AddressComponent_anatoly_card_header_1_Template(rf, ctx) { if (rf & 1) {
|
|
8859
|
-
i0.ɵɵelement(0, "anatoly-card-header",
|
|
8859
|
+
i0.ɵɵelement(0, "anatoly-card-header", 18);
|
|
8860
8860
|
} if (rf & 2) {
|
|
8861
8861
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
8862
8862
|
i0.ɵɵproperty("title", ctx_r0.title);
|
|
8863
8863
|
} }
|
|
8864
|
-
function
|
|
8865
|
-
i0.ɵɵelementStart(0, "option",
|
|
8864
|
+
function AddressComponent_div_18_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
8865
|
+
i0.ɵɵelementStart(0, "option", 21);
|
|
8866
8866
|
i0.ɵɵtext(1);
|
|
8867
8867
|
i0.ɵɵelementEnd();
|
|
8868
8868
|
} if (rf & 2) {
|
|
@@ -8872,16 +8872,16 @@ function AddressComponent_div_16_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
8872
8872
|
i0.ɵɵtextInterpolate(state_r4.name);
|
|
8873
8873
|
} }
|
|
8874
8874
|
const _c0$1 = a0 => ({ "has-error": a0 });
|
|
8875
|
-
function
|
|
8875
|
+
function AddressComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
8876
8876
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
8877
|
-
i0.ɵɵelementStart(0, "div",
|
|
8877
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "label");
|
|
8878
8878
|
i0.ɵɵtext(2, "State");
|
|
8879
8879
|
i0.ɵɵelementEnd();
|
|
8880
|
-
i0.ɵɵelementStart(3, "select",
|
|
8881
|
-
i0.ɵɵlistener("change", function
|
|
8882
|
-
i0.ɵɵtemplate(4,
|
|
8880
|
+
i0.ɵɵelementStart(3, "select", 19);
|
|
8881
|
+
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)); });
|
|
8882
|
+
i0.ɵɵtemplate(4, AddressComponent_div_18_option_4_Template, 2, 2, "option", 16);
|
|
8883
8883
|
i0.ɵɵelementEnd();
|
|
8884
|
-
i0.ɵɵelement(5, "anatoly-item-validation-summary",
|
|
8884
|
+
i0.ɵɵelement(5, "anatoly-item-validation-summary", 20);
|
|
8885
8885
|
i0.ɵɵelementEnd();
|
|
8886
8886
|
} if (rf & 2) {
|
|
8887
8887
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -8891,8 +8891,8 @@ function AddressComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
8891
8891
|
i0.ɵɵadvance();
|
|
8892
8892
|
i0.ɵɵproperty("formGroup", ctx_r1.formGroup)("formSubmitted", ctx_r1.formSubmitted);
|
|
8893
8893
|
} }
|
|
8894
|
-
function
|
|
8895
|
-
i0.ɵɵelementStart(0, "option",
|
|
8894
|
+
function AddressComponent_option_28_Template(rf, ctx) { if (rf & 1) {
|
|
8895
|
+
i0.ɵɵelementStart(0, "option", 21);
|
|
8896
8896
|
i0.ɵɵtext(1);
|
|
8897
8897
|
i0.ɵɵelementEnd();
|
|
8898
8898
|
} if (rf & 2) {
|
|
@@ -8994,43 +8994,43 @@ class AddressComponent extends EditComponentBase {
|
|
|
8994
8994
|
this.change.emit(usState);
|
|
8995
8995
|
}
|
|
8996
8996
|
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:
|
|
8997
|
+
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
8998
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
8999
8999
|
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(
|
|
9000
|
+
i0.ɵɵelementStart(2, "anatoly-card-body", 2)(3, "div", 3)(4, "div", 4)(5, "label");
|
|
9001
|
+
i0.ɵɵtext(6, "Street Address");
|
|
9002
9002
|
i0.ɵɵelementEnd();
|
|
9003
|
-
i0.ɵɵelement(
|
|
9003
|
+
i0.ɵɵelement(7, "input", 5)(8, "anatoly-item-validation-summary", 6);
|
|
9004
9004
|
i0.ɵɵelementEnd();
|
|
9005
|
-
i0.ɵɵelementStart(
|
|
9006
|
-
i0.ɵɵelement(
|
|
9007
|
-
i0.ɵɵelementEnd();
|
|
9008
|
-
i0.ɵɵelementStart(
|
|
9009
|
-
i0.ɵɵtext(
|
|
9005
|
+
i0.ɵɵelementStart(9, "div", 4);
|
|
9006
|
+
i0.ɵɵelement(10, "input", 7)(11, "anatoly-item-validation-summary", 8);
|
|
9007
|
+
i0.ɵɵelementEnd()();
|
|
9008
|
+
i0.ɵɵelementStart(12, "div", 3)(13, "div", 9)(14, "label");
|
|
9009
|
+
i0.ɵɵtext(15, "City");
|
|
9010
9010
|
i0.ɵɵelementEnd();
|
|
9011
|
-
i0.ɵɵelement(
|
|
9011
|
+
i0.ɵɵelement(16, "input", 10)(17, "anatoly-item-validation-summary", 11);
|
|
9012
9012
|
i0.ɵɵelementEnd();
|
|
9013
|
-
i0.ɵɵtemplate(
|
|
9014
|
-
i0.ɵɵelementStart(
|
|
9015
|
-
i0.ɵɵtext(
|
|
9013
|
+
i0.ɵɵtemplate(18, AddressComponent_div_18_Template, 6, 6, "div", 12);
|
|
9014
|
+
i0.ɵɵelementStart(19, "div", 9)(20, "label");
|
|
9015
|
+
i0.ɵɵtext(21, "Zipcode");
|
|
9016
9016
|
i0.ɵɵelementEnd();
|
|
9017
|
-
i0.ɵɵelement(
|
|
9017
|
+
i0.ɵɵelement(22, "input", 13)(23, "anatoly-item-validation-summary", 14);
|
|
9018
9018
|
i0.ɵɵelementEnd();
|
|
9019
|
-
i0.ɵɵelementStart(
|
|
9020
|
-
i0.ɵɵtext(
|
|
9019
|
+
i0.ɵɵelementStart(24, "div", 9)(25, "label");
|
|
9020
|
+
i0.ɵɵtext(26, "Country");
|
|
9021
9021
|
i0.ɵɵelementEnd();
|
|
9022
|
-
i0.ɵɵelementStart(
|
|
9023
|
-
i0.ɵɵlistener("change", function
|
|
9024
|
-
i0.ɵɵtemplate(
|
|
9022
|
+
i0.ɵɵelementStart(27, "select", 15);
|
|
9023
|
+
i0.ɵɵlistener("change", function AddressComponent_Template_select_change_27_listener($event) { return ctx.onCountryChange($event); });
|
|
9024
|
+
i0.ɵɵtemplate(28, AddressComponent_option_28_Template, 2, 2, "option", 16);
|
|
9025
9025
|
i0.ɵɵelementEnd();
|
|
9026
|
-
i0.ɵɵelement(
|
|
9027
|
-
i0.ɵɵelementEnd()()();
|
|
9026
|
+
i0.ɵɵelement(29, "anatoly-item-validation-summary", 17);
|
|
9027
|
+
i0.ɵɵelementEnd()()()();
|
|
9028
9028
|
} if (rf & 2) {
|
|
9029
9029
|
i0.ɵɵadvance();
|
|
9030
9030
|
i0.ɵɵproperty("ngIf", ctx.isTitleVisible);
|
|
9031
9031
|
i0.ɵɵadvance();
|
|
9032
9032
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
9033
|
-
i0.ɵɵadvance();
|
|
9033
|
+
i0.ɵɵadvance(2);
|
|
9034
9034
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$1, ctx.isControlInvalid("address_street")));
|
|
9035
9035
|
i0.ɵɵadvance(4);
|
|
9036
9036
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9038,7 +9038,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9038
9038
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$1, ctx.isControlInvalid("address_street2")));
|
|
9039
9039
|
i0.ɵɵadvance(2);
|
|
9040
9040
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
9041
|
-
i0.ɵɵadvance();
|
|
9041
|
+
i0.ɵɵadvance(2);
|
|
9042
9042
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$1, ctx.isControlInvalid("address_city")));
|
|
9043
9043
|
i0.ɵɵadvance(4);
|
|
9044
9044
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9058,7 +9058,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9058
9058
|
}
|
|
9059
9059
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
9060
9060
|
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>
|
|
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=\"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
9062
|
}], () => [{ type: i2.FormBuilder }, { type: CoreApiService }], { address: [{
|
|
9063
9063
|
type: Input
|
|
9064
9064
|
}], change: [{
|
|
@@ -9083,7 +9083,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9083
9083
|
*/
|
|
9084
9084
|
//Node
|
|
9085
9085
|
function CompanyComponent_anatoly_card_header_1_Template(rf, ctx) { if (rf & 1) {
|
|
9086
|
-
i0.ɵɵelement(0, "anatoly-card-header",
|
|
9086
|
+
i0.ɵɵelement(0, "anatoly-card-header", 14);
|
|
9087
9087
|
} if (rf & 2) {
|
|
9088
9088
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
9089
9089
|
i0.ɵɵproperty("title", ctx_r0.title);
|
|
@@ -9139,35 +9139,35 @@ class CompanyComponent extends EditComponentBase {
|
|
|
9139
9139
|
return JSON.stringify(data);
|
|
9140
9140
|
}
|
|
9141
9141
|
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:
|
|
9142
|
+
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
9143
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
9144
9144
|
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);
|
|
9145
|
+
i0.ɵɵelementStart(2, "anatoly-card-body", 2)(3, "div", 3)(4, "div", 4)(5, "label");
|
|
9146
|
+
i0.ɵɵtext(6, "Name");
|
|
9149
9147
|
i0.ɵɵelementEnd();
|
|
9150
|
-
i0.ɵɵ
|
|
9151
|
-
i0.ɵɵtext(10, "Phone");
|
|
9148
|
+
i0.ɵɵelement(7, "input", 5)(8, "anatoly-item-validation-summary", 6);
|
|
9152
9149
|
i0.ɵɵelementEnd();
|
|
9153
|
-
i0.ɵɵ
|
|
9150
|
+
i0.ɵɵelementStart(9, "div", 4)(10, "label");
|
|
9151
|
+
i0.ɵɵtext(11, "Phone");
|
|
9154
9152
|
i0.ɵɵelementEnd();
|
|
9155
|
-
i0.ɵɵ
|
|
9156
|
-
i0.ɵɵ
|
|
9153
|
+
i0.ɵɵelement(12, "input", 7)(13, "anatoly-item-validation-summary", 8);
|
|
9154
|
+
i0.ɵɵelementEnd()();
|
|
9155
|
+
i0.ɵɵelementStart(14, "div", 3)(15, "div", 9)(16, "label");
|
|
9156
|
+
i0.ɵɵtext(17, "Email");
|
|
9157
9157
|
i0.ɵɵelementEnd();
|
|
9158
|
-
i0.ɵɵelement(
|
|
9158
|
+
i0.ɵɵelement(18, "input", 10)(19, "anatoly-item-validation-summary", 11);
|
|
9159
9159
|
i0.ɵɵelementEnd();
|
|
9160
|
-
i0.ɵɵelementStart(
|
|
9161
|
-
i0.ɵɵtext(
|
|
9160
|
+
i0.ɵɵelementStart(20, "div", 9)(21, "label");
|
|
9161
|
+
i0.ɵɵtext(22, "Website Url");
|
|
9162
9162
|
i0.ɵɵelementEnd();
|
|
9163
|
-
i0.ɵɵelement(
|
|
9164
|
-
i0.ɵɵelementEnd()()();
|
|
9163
|
+
i0.ɵɵelement(23, "input", 12)(24, "anatoly-item-validation-summary", 13);
|
|
9164
|
+
i0.ɵɵelementEnd()()()();
|
|
9165
9165
|
} if (rf & 2) {
|
|
9166
9166
|
i0.ɵɵadvance();
|
|
9167
9167
|
i0.ɵɵproperty("ngIf", ctx.isTitleVisible);
|
|
9168
9168
|
i0.ɵɵadvance();
|
|
9169
9169
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
9170
|
-
i0.ɵɵadvance();
|
|
9170
|
+
i0.ɵɵadvance(2);
|
|
9171
9171
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0, ctx.isControlInvalid("company_name")));
|
|
9172
9172
|
i0.ɵɵadvance(4);
|
|
9173
9173
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9175,7 +9175,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
9175
9175
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0, ctx.isControlInvalid("company_phone")));
|
|
9176
9176
|
i0.ɵɵadvance(4);
|
|
9177
9177
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
9178
|
-
i0.ɵɵadvance();
|
|
9178
|
+
i0.ɵɵadvance(2);
|
|
9179
9179
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c0, ctx.isControlInvalid("company_email")));
|
|
9180
9180
|
i0.ɵɵadvance(4);
|
|
9181
9181
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
@@ -9187,7 +9187,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
9187
9187
|
}
|
|
9188
9188
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompanyComponent, [{
|
|
9189
9189
|
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" }]
|
|
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=\"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
9191
|
}], () => [{ type: i2.FormBuilder }], { company: [{
|
|
9192
9192
|
type: Input
|
|
9193
9193
|
}] }); })();
|
|
@@ -9453,6 +9453,49 @@ class AnatolyCoreModule {
|
|
|
9453
9453
|
LocalizationSettingsModule,
|
|
9454
9454
|
LocalizationModule] }); })();
|
|
9455
9455
|
|
|
9456
|
+
/*
|
|
9457
|
+
<file>
|
|
9458
|
+
Project:
|
|
9459
|
+
@osovitny/anatoly
|
|
9460
|
+
|
|
9461
|
+
Authors:
|
|
9462
|
+
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
9463
|
+
|
|
9464
|
+
Created:
|
|
9465
|
+
10 Nov 2024
|
|
9466
|
+
|
|
9467
|
+
Copyright (c) 2017-2025 Osovitny Inc. All rights reserved.
|
|
9468
|
+
</file>
|
|
9469
|
+
*/
|
|
9470
|
+
//Node
|
|
9471
|
+
class SubscriptionsApiService extends ApiServiceBase {
|
|
9472
|
+
constructor(http) {
|
|
9473
|
+
super(http);
|
|
9474
|
+
this.http = http;
|
|
9475
|
+
this.baseUrl = `${ApiUrl}/billing/subscriptions`;
|
|
9476
|
+
}
|
|
9477
|
+
getSubscriptions(data) {
|
|
9478
|
+
return this.get('getSubscriptions', data);
|
|
9479
|
+
}
|
|
9480
|
+
addSubscription(billingPlan, currentSubscriptionId, newSubscriptionId, success, error) {
|
|
9481
|
+
this.post('addSubscription', { billingPlan, currentSubscriptionId, newSubscriptionId }).subscribe({
|
|
9482
|
+
next: (data) => {
|
|
9483
|
+
if (success)
|
|
9484
|
+
success(data);
|
|
9485
|
+
},
|
|
9486
|
+
error: (e) => {
|
|
9487
|
+
if (error)
|
|
9488
|
+
error(e);
|
|
9489
|
+
}
|
|
9490
|
+
});
|
|
9491
|
+
}
|
|
9492
|
+
static { this.ɵfac = function SubscriptionsApiService_Factory(t) { return new (t || SubscriptionsApiService)(i0.ɵɵinject(i1$1.HttpClient)); }; }
|
|
9493
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SubscriptionsApiService, factory: SubscriptionsApiService.ɵfac }); }
|
|
9494
|
+
}
|
|
9495
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubscriptionsApiService, [{
|
|
9496
|
+
type: Injectable
|
|
9497
|
+
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
9498
|
+
|
|
9456
9499
|
/*
|
|
9457
9500
|
<file>
|
|
9458
9501
|
Project:
|
|
@@ -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,
|