@osovitny/anatoly 2.15.5 → 2.15.7
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/assets/styles/scss/alerts.css +177 -0
- package/assets/styles/scss/alerts.min.css +1 -0
- package/assets/styles/scss/alerts.scss +98 -72
- package/assets/styles/scss/mixins/_cards.css +0 -0
- package/assets/styles/scss/mixins/_cards.min.css +0 -0
- package/assets/styles/scss/mixins/_cards.scss +4 -4
- package/esm2020/lib/core/utils.mjs +4 -1
- package/esm2020/lib/ui/dialogs/contact-us/contact-us.dialog.mjs +3 -3
- package/esm2020/lib/ui/forms/contact-us/contact-us.mjs +41 -55
- package/fesm2015/osovitny-anatoly.mjs +58 -72
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +58 -69
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/utils.d.ts +1 -0
- package/lib/ui/forms/contact-us/contact-us.d.ts +4 -4
- package/package.json +1 -1
|
@@ -24,13 +24,13 @@ import * as i1$6 from '@fortawesome/angular-fontawesome';
|
|
|
24
24
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
25
25
|
import * as i1$7 from '@progress/kendo-angular-pager';
|
|
26
26
|
import { PagerModule } from '@progress/kendo-angular-pager';
|
|
27
|
-
import * as
|
|
27
|
+
import * as i2 from '@angular/forms';
|
|
28
28
|
import { FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
29
|
-
import * as i1$
|
|
29
|
+
import * as i1$8 from 'angular-froala-wysiwyg';
|
|
30
30
|
import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
|
|
31
|
-
import * as i2 from '@progress/kendo-angular-dialog';
|
|
31
|
+
import * as i2$1 from '@progress/kendo-angular-dialog';
|
|
32
32
|
import { DialogsModule } from '@progress/kendo-angular-dialog';
|
|
33
|
-
import * as
|
|
33
|
+
import * as i1$9 from 'ngx-captcha';
|
|
34
34
|
import { NgxCaptchaModule } from 'ngx-captcha';
|
|
35
35
|
import { faCheckCircle, faCircleXmark, faDatabase, faCopy } from '@fortawesome/free-solid-svg-icons';
|
|
36
36
|
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
@@ -1997,6 +1997,9 @@ class Utils {
|
|
|
1997
1997
|
static generateRandom(start, end) {
|
|
1998
1998
|
return Math.floor(Math.random() * (end - start + 1)) + start;
|
|
1999
1999
|
}
|
|
2000
|
+
static isObjectNullOrEmpty(obj) {
|
|
2001
|
+
return !obj || Object.keys(obj).length == 0;
|
|
2002
|
+
}
|
|
2000
2003
|
}
|
|
2001
2004
|
|
|
2002
2005
|
/*
|
|
@@ -3003,11 +3006,11 @@ Copy2ClipboardComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cop
|
|
|
3003
3006
|
</file>
|
|
3004
3007
|
*/
|
|
3005
3008
|
const _c0$9 = [[["mex-card-header"]], [["mex-card-body"]], "*", [["mex-card-footer"]]];
|
|
3006
|
-
const _c1
|
|
3009
|
+
const _c1 = ["mex-card-header", "mex-card-body", "*", "mex-card-footer"];
|
|
3007
3010
|
class CardComponent {
|
|
3008
3011
|
}
|
|
3009
3012
|
CardComponent.ɵfac = function CardComponent_Factory(t) { return new (t || CardComponent)(); };
|
|
3010
|
-
CardComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardComponent, selectors: [["anatoly-card"]], inputs: { classes: "classes" }, ngContentSelectors: _c1
|
|
3013
|
+
CardComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardComponent, selectors: [["anatoly-card"]], inputs: { classes: "classes" }, ngContentSelectors: _c1, decls: 5, vars: 3, template: function CardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3011
3014
|
i0.ɵɵprojectionDef(_c0$9);
|
|
3012
3015
|
i0.ɵɵelementStart(0, "div");
|
|
3013
3016
|
i0.ɵɵprojection(1);
|
|
@@ -3538,14 +3541,14 @@ class NativeElementDirective {
|
|
|
3538
3541
|
this.control.control.nativeElement = this.el.nativeElement;
|
|
3539
3542
|
}
|
|
3540
3543
|
}
|
|
3541
|
-
NativeElementDirective.ɵfac = function NativeElementDirective_Factory(t) { return new (t || NativeElementDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(
|
|
3544
|
+
NativeElementDirective.ɵfac = function NativeElementDirective_Factory(t) { return new (t || NativeElementDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2.NgControl)); };
|
|
3542
3545
|
NativeElementDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: NativeElementDirective, selectors: [["", "formControl", ""], ["", "formControlName", ""]] });
|
|
3543
3546
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NativeElementDirective, [{
|
|
3544
3547
|
type: Directive,
|
|
3545
3548
|
args: [{
|
|
3546
3549
|
selector: '[formControl], [formControlName]'
|
|
3547
3550
|
}]
|
|
3548
|
-
}], function () { return [{ type: i0.ElementRef }, { type:
|
|
3551
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i2.NgControl }]; }, null); })();
|
|
3549
3552
|
|
|
3550
3553
|
/*
|
|
3551
3554
|
<file>
|
|
@@ -3765,7 +3768,7 @@ FormsHtmlEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Fo
|
|
|
3765
3768
|
i0.ɵɵproperty("formControlName", ctx.editorFormKey)("froalaEditor", ctx.options);
|
|
3766
3769
|
i0.ɵɵadvance(1);
|
|
3767
3770
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("controlName", ctx.editorFormKey)("controlTitle", ctx.editorLabelText);
|
|
3768
|
-
} }, dependencies: [i1$5.NgClass,
|
|
3771
|
+
} }, dependencies: [i1$5.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i1$8.FroalaEditorDirective, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
3769
3772
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormsHtmlEditorComponent, [{
|
|
3770
3773
|
type: Component,
|
|
3771
3774
|
args: [{ selector: "anatoly-forms-html-editor", template: "<div [formGroup]=\"formGroup\" [ngClass]=\"{'has-error': isControlInvalid(editorFormKey) }\" class=\"form-group\" >\r\n <label class=\"col-form-label\">{{ editorLabelText }}</label>\r\n <textarea [formControlName]=\"editorFormKey\" [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\"></textarea>\r\n <anatoly-item-validation-summary [formGroup]=\"formGroup\"\r\n [formSubmitted]=\"formSubmitted\"\r\n [controlName]=\"editorFormKey\"\r\n [controlTitle]=\"editorLabelText\">\r\n </anatoly-item-validation-summary>\r\n</div>\r\n" }]
|
|
@@ -3822,7 +3825,7 @@ HtmlEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HtmlEdi
|
|
|
3822
3825
|
i0.ɵɵtextInterpolate(ctx.editorLabelText);
|
|
3823
3826
|
i0.ɵɵadvance(1);
|
|
3824
3827
|
i0.ɵɵproperty("froalaEditor", ctx.options);
|
|
3825
|
-
} }, dependencies: [i1$
|
|
3828
|
+
} }, dependencies: [i1$8.FroalaEditorDirective], encapsulation: 2 });
|
|
3826
3829
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HtmlEditorComponent, [{
|
|
3827
3830
|
type: Component,
|
|
3828
3831
|
args: [{ selector: "anatoly-html-editor", template: "<div class=\"form-group\">\r\n <label class=\"col-form-label\">{{ editorLabelText }}</label>\r\n <textarea [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\"></textarea>\r\n</div>\r\n" }]
|
|
@@ -4157,34 +4160,34 @@ FormValidationSummaryComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
4157
4160
|
Copyright (c) 2017-2022 Osovitny Inc. All rights reserved.
|
|
4158
4161
|
</file>
|
|
4159
4162
|
*/
|
|
4160
|
-
const _c0$4 = ["recaptcha"];
|
|
4161
4163
|
function ContactUsForm_option_12_Template(rf, ctx) { if (rf & 1) {
|
|
4162
|
-
i0.ɵɵelementStart(0, "option",
|
|
4164
|
+
i0.ɵɵelementStart(0, "option", 28);
|
|
4163
4165
|
i0.ɵɵtext(1);
|
|
4164
4166
|
i0.ɵɵelementEnd();
|
|
4165
4167
|
} if (rf & 2) {
|
|
4166
|
-
const
|
|
4167
|
-
i0.ɵɵproperty("value",
|
|
4168
|
+
const topic_r3 = ctx.$implicit;
|
|
4169
|
+
i0.ɵɵproperty("value", topic_r3.value);
|
|
4168
4170
|
i0.ɵɵadvance(1);
|
|
4169
|
-
i0.ɵɵtextInterpolate1("",
|
|
4171
|
+
i0.ɵɵtextInterpolate1("", topic_r3.value, " ");
|
|
4170
4172
|
} }
|
|
4171
4173
|
function ContactUsForm_p_23_Template(rf, ctx) { if (rf & 1) {
|
|
4172
4174
|
i0.ɵɵelementStart(0, "p");
|
|
4173
4175
|
i0.ɵɵtext(1, "Please indicate the email used for your MailEx login if you already have an account");
|
|
4174
4176
|
i0.ɵɵelementEnd();
|
|
4175
4177
|
} }
|
|
4176
|
-
function
|
|
4177
|
-
i0.ɵɵelementStart(0, "button",
|
|
4178
|
+
function ContactUsForm_button_38_Template(rf, ctx) { if (rf & 1) {
|
|
4179
|
+
i0.ɵɵelementStart(0, "button", 29);
|
|
4178
4180
|
i0.ɵɵtext(1, " Submit ");
|
|
4179
4181
|
i0.ɵɵelementEnd();
|
|
4180
4182
|
} if (rf & 2) {
|
|
4181
|
-
const
|
|
4182
|
-
i0.ɵɵclassProp("btn-primary", !
|
|
4183
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
4184
|
+
i0.ɵɵclassProp("btn-primary", !ctx_r2.formGroup.invalid);
|
|
4183
4185
|
} }
|
|
4184
|
-
const
|
|
4186
|
+
const _c0$4 = function (a0) { return { "has-error": a0 }; };
|
|
4185
4187
|
class ContactUsForm extends BaseEditComponent {
|
|
4186
|
-
constructor(fb, appContext, api, notificationService) {
|
|
4188
|
+
constructor(reCaptcha, fb, appContext, api, notificationService) {
|
|
4187
4189
|
super();
|
|
4190
|
+
this.reCaptcha = reCaptcha;
|
|
4188
4191
|
this.fb = fb;
|
|
4189
4192
|
this.appContext = appContext;
|
|
4190
4193
|
this.api = api;
|
|
@@ -4210,7 +4213,6 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4210
4213
|
}
|
|
4211
4214
|
createFormGroup() {
|
|
4212
4215
|
this.formGroup = this.fb.group({
|
|
4213
|
-
captcha: new FormControl(null, [Validators.required]),
|
|
4214
4216
|
name: new FormControl('', [Validators.required]),
|
|
4215
4217
|
email: new FormControl('', [Validators.required]),
|
|
4216
4218
|
topic: new FormControl('', [Validators.required]),
|
|
@@ -4220,7 +4222,7 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4220
4222
|
}
|
|
4221
4223
|
setContext(context) {
|
|
4222
4224
|
this.isUserSignedIn = context.isUserSignedIn;
|
|
4223
|
-
this.
|
|
4225
|
+
this.reCaptchaSiteKey = context.reCaptchaSiteKeyV3;
|
|
4224
4226
|
this.selectedTopic = this.topicList[3].value;
|
|
4225
4227
|
this.setFormValue('topic', this.selectedTopic);
|
|
4226
4228
|
if (this.isUserSignedIn) {
|
|
@@ -4235,20 +4237,20 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4235
4237
|
this.formSubmitted = true;
|
|
4236
4238
|
if (!this.isValid())
|
|
4237
4239
|
return;
|
|
4238
|
-
const captcha = this.getFormValue('captcha');
|
|
4239
4240
|
const name = this.getFormValue('name');
|
|
4240
4241
|
const email = this.getFormValue('email');
|
|
4241
4242
|
const topic = this.selectedTopic;
|
|
4242
4243
|
const subject = this.getFormValue('subject');
|
|
4243
4244
|
const message = this.getFormValue('message');
|
|
4244
|
-
this.
|
|
4245
|
-
this.
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4245
|
+
this.reCaptcha.execute(this.reCaptchaSiteKey, 'ContactUs', (token) => {
|
|
4246
|
+
this.api.sendContactUs(token, name, email, topic, subject, message, () => {
|
|
4247
|
+
this.formSubmitted = false;
|
|
4248
|
+
this.notificationService.success('Message has been sent successfully');
|
|
4249
|
+
this.formGroup.reset();
|
|
4250
|
+
this.submit.emit();
|
|
4251
|
+
}, () => {
|
|
4252
|
+
this.notificationService.error();
|
|
4253
|
+
});
|
|
4252
4254
|
});
|
|
4253
4255
|
}
|
|
4254
4256
|
//Events
|
|
@@ -4259,13 +4261,8 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4259
4261
|
this.selectedTopic = event.target.value;
|
|
4260
4262
|
}
|
|
4261
4263
|
}
|
|
4262
|
-
ContactUsForm.ɵfac = function ContactUsForm_Factory(t) { return new (t || ContactUsForm)(i0.ɵɵdirectiveInject(i1$
|
|
4263
|
-
ContactUsForm.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsForm, selectors: [["anatoly-forms-contactus-form"]],
|
|
4264
|
-
i0.ɵɵviewQuery(_c0$4, 5);
|
|
4265
|
-
} if (rf & 2) {
|
|
4266
|
-
let _t;
|
|
4267
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recaptcha = _t.first);
|
|
4268
|
-
} }, inputs: { showActionButtons: "showActionButtons" }, outputs: { submit: "submit" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 43, vars: 32, consts: [["novalidate", "", 3, "formGroup", "ngSubmit"], [3, "formGroup", "visible"], [1, "contact-us"], [1, "row"], [1, "form-fields", "col-6"], [1, "form-topic", 3, "ngClass"], [1, "form-select-wrapper"], [1, "assistive-text"], ["formControlName", "topic", 1, "form-select", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], ["controlName", "topic", "controlTitle", "topic", 3, "formGroup", "formSubmitted"], [1, "form-name", 3, "ngClass"], ["formControlName", "name", "placeholder", "Name *", "type", "text", 1, "form-control"], ["controlName", "name", "controlTitle", "name", 3, "formGroup", "formSubmitted"], [1, "form-email", 3, "ngClass"], ["formControlName", "email", "placeholder", "E-mail *", "type", "text", 1, "form-control"], [4, "ngIf"], ["controlName", "email", "controlTitle", "email", 3, "formGroup", "formSubmitted"], [1, "form-subject", 3, "ngClass"], ["formControlName", "subject", "placeholder", "Subject *", "type", "text", 1, "form-control"], ["controlName", "subject", "controlTitle", "subject", 3, "formGroup", "formSubmitted"], [1, "col-6"], [1, "form-message", 3, "ngClass"], ["formControlName", "message", "name", "message", "placeholder", "Message *", "rows", "4", "type", "text"], ["controlName", "message", "controlTitle", "message", 3, "formGroup", "formSubmitted"], [1, "row", "form-footer"], [2, "transform", "scale(0.8)", "transform-origin", "0"], ["formControlName", "captcha", 3, "siteKey"], ["recaptcha", ""], ["class", "btn btn-success float-right m-t-20", "type", "submit", 3, "btn-primary", 4, "ngIf"], [3, "value"], ["type", "submit", 1, "btn", "btn-success", "float-right", "m-t-20"]], template: function ContactUsForm_Template(rf, ctx) { if (rf & 1) {
|
|
4264
|
+
ContactUsForm.ɵfac = function ContactUsForm_Factory(t) { return new (t || ContactUsForm)(i0.ɵɵdirectiveInject(i1$9.ReCaptchaV3Service), i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(AppContextService), i0.ɵɵdirectiveInject(EmailsApiService), i0.ɵɵdirectiveInject(NotificationService)); };
|
|
4265
|
+
ContactUsForm.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsForm, selectors: [["anatoly-forms-contactus-form"]], inputs: { showActionButtons: "showActionButtons" }, outputs: { submit: "submit" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 39, vars: 31, consts: [["novalidate", "", 3, "formGroup", "ngSubmit"], [3, "formGroup", "visible"], [1, "contact-us"], [1, "row"], [1, "form-fields", "col-6"], [1, "form-topic", 3, "ngClass"], [1, "form-select-wrapper"], [1, "assistive-text"], ["formControlName", "topic", 1, "form-select", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], ["controlName", "topic", "controlTitle", "topic", 3, "formGroup", "formSubmitted"], [1, "form-name", 3, "ngClass"], ["formControlName", "name", "placeholder", "Name *", "type", "text", 1, "form-control"], ["controlName", "name", "controlTitle", "name", 3, "formGroup", "formSubmitted"], [1, "form-email", 3, "ngClass"], ["formControlName", "email", "placeholder", "E-mail *", "type", "text", 1, "form-control"], [4, "ngIf"], ["controlName", "email", "controlTitle", "email", 3, "formGroup", "formSubmitted"], [1, "form-subject", 3, "ngClass"], ["formControlName", "subject", "placeholder", "Subject *", "type", "text", 1, "form-control"], ["controlName", "subject", "controlTitle", "subject", 3, "formGroup", "formSubmitted"], [1, "col-6"], [1, "form-message", 3, "ngClass"], ["formControlName", "message", "name", "message", "placeholder", "Message *", "rows", "4", "type", "text"], ["controlName", "message", "controlTitle", "message", 3, "formGroup", "formSubmitted"], [1, "row", "form-footer"], [1, "col"], ["class", "btn btn-success", "type", "submit", 3, "btn-primary", 4, "ngIf"], [3, "value"], ["type", "submit", 1, "btn", "btn-success"]], template: function ContactUsForm_Template(rf, ctx) { if (rf & 1) {
|
|
4269
4266
|
i0.ɵɵelementStart(0, "form", 0);
|
|
4270
4267
|
i0.ɵɵlistener("ngSubmit", function ContactUsForm_Template_form_ngSubmit_0_listener() { return ctx.onSubmit(); });
|
|
4271
4268
|
i0.ɵɵelement(1, "anatoly-form-validation-summary", 1);
|
|
@@ -4303,55 +4300,47 @@ ContactUsForm.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsForm
|
|
|
4303
4300
|
i0.ɵɵelementEnd();
|
|
4304
4301
|
i0.ɵɵelement(34, "textarea", 23)(35, "anatoly-item-validation-summary", 24);
|
|
4305
4302
|
i0.ɵɵelementEnd()()();
|
|
4306
|
-
i0.ɵɵelementStart(36, "div", 25)(37, "div",
|
|
4307
|
-
i0.ɵɵ
|
|
4308
|
-
i0.ɵɵelementEnd()();
|
|
4309
|
-
i0.ɵɵelementStart(41, "div", 21);
|
|
4310
|
-
i0.ɵɵtemplate(42, ContactUsForm_button_42_Template, 2, 2, "button", 29);
|
|
4303
|
+
i0.ɵɵelementStart(36, "div", 25)(37, "div", 26);
|
|
4304
|
+
i0.ɵɵtemplate(38, ContactUsForm_button_38_Template, 2, 2, "button", 27);
|
|
4311
4305
|
i0.ɵɵelementEnd()()()();
|
|
4312
4306
|
} if (rf & 2) {
|
|
4313
4307
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
4314
4308
|
i0.ɵɵadvance(1);
|
|
4315
4309
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("visible", ctx.formSubmitted && ctx.formGroup.invalid);
|
|
4316
4310
|
i0.ɵɵadvance(6);
|
|
4317
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4311
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$4, ctx.isControlInvalid("topic")));
|
|
4318
4312
|
i0.ɵɵadvance(5);
|
|
4319
4313
|
i0.ɵɵproperty("ngForOf", ctx.topicList);
|
|
4320
4314
|
i0.ɵɵadvance(1);
|
|
4321
4315
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4322
4316
|
i0.ɵɵadvance(1);
|
|
4323
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4317
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$4, ctx.isControlInvalid("name")));
|
|
4324
4318
|
i0.ɵɵadvance(4);
|
|
4325
4319
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4326
4320
|
i0.ɵɵadvance(1);
|
|
4327
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4321
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c0$4, ctx.isControlInvalid("email")));
|
|
4328
4322
|
i0.ɵɵadvance(4);
|
|
4329
4323
|
i0.ɵɵproperty("ngIf", !ctx.isUserSignedIn);
|
|
4330
4324
|
i0.ɵɵadvance(1);
|
|
4331
4325
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4332
4326
|
i0.ɵɵadvance(1);
|
|
4333
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4327
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(27, _c0$4, ctx.isControlInvalid("subject")));
|
|
4334
4328
|
i0.ɵɵadvance(4);
|
|
4335
4329
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4336
4330
|
i0.ɵɵadvance(2);
|
|
4337
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4331
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(29, _c0$4, ctx.isControlInvalid("message")));
|
|
4338
4332
|
i0.ɵɵadvance(4);
|
|
4339
4333
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4340
|
-
i0.ɵɵadvance(4);
|
|
4341
|
-
i0.ɵɵproperty("siteKey", ctx.siteKey);
|
|
4342
4334
|
i0.ɵɵadvance(3);
|
|
4343
4335
|
i0.ɵɵproperty("ngIf", ctx.showActionButtons);
|
|
4344
|
-
} }, dependencies: [i1$5.NgClass, i1$5.NgForOf, i1$5.NgIf,
|
|
4336
|
+
} }, dependencies: [i1$5.NgClass, i1$5.NgForOf, i1$5.NgIf, i2.ɵNgNoValidate, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.DefaultValueAccessor, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, NativeElementDirective, FormValidationSummaryComponent, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
4345
4337
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactUsForm, [{
|
|
4346
4338
|
type: Component,
|
|
4347
|
-
args: [{ selector: 'anatoly-forms-contactus-form', template: "<form (ngSubmit)='onSubmit()' [formGroup]='formGroup' novalidate>\r\n <anatoly-form-validation-summary [formGroup]='formGroup'\r\n [visible]='formSubmitted && formGroup.invalid'></anatoly-form-validation-summary>\r\n\r\n <div class='contact-us'>\r\n <div class=\"row\">\r\n <div class='form-fields col-6'>\r\n <p>What can we help you with?</p>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('topic') }\" class='form-topic'>\r\n <div class='form-select-wrapper'>\r\n <label class='assistive-text'>Topic *</label>\r\n <select (change)='onTopicChange($event)' class='form-select' formControlName='topic'>\r\n <option *ngFor='let topic of topicList' [value]='topic.value'>{{ topic.value }} </option>\r\n </select>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='topic'\r\n controlTitle='topic'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('name') }\" class='form-name'>\r\n <label class='assistive-text'>Name *</label>\r\n <input class='form-control' formControlName='name' placeholder='Name *' type='text'>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='name'\r\n controlTitle='name'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('email') }\" class='form-email'>\r\n <label class='assistive-text'>E-mail * </label>\r\n <input class='form-control' formControlName='email' placeholder='E-mail *' type='text' />\r\n <p *ngIf='!isUserSignedIn'>Please indicate the email used for your MailEx login if you already have an account</p>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='email'\r\n controlTitle='email'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('subject') }\" class='form-subject'>\r\n <label class='assistive-text'>Subject *</label>\r\n <input class='form-control' formControlName='subject' placeholder='Subject *' type='text' />\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='subject'\r\n controlTitle='subject'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n </div>\r\n <div class='col-6'>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('message') }\" class='form-message'>\r\n <label class='assistive-text'>Message *</label>\r\n <textarea formControlName='message' name='message' placeholder='Message *' rows='4'\r\n type='text'></textarea>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='message'\r\n controlTitle='message'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row form-footer\">\r\n <div class=\"col
|
|
4348
|
-
}], function () { return [{ type: i1$
|
|
4339
|
+
args: [{ selector: 'anatoly-forms-contactus-form', template: "<form (ngSubmit)='onSubmit()' [formGroup]='formGroup' novalidate>\r\n <anatoly-form-validation-summary [formGroup]='formGroup'\r\n [visible]='formSubmitted && formGroup.invalid'></anatoly-form-validation-summary>\r\n\r\n <div class='contact-us'>\r\n <div class=\"row\">\r\n <div class='form-fields col-6'>\r\n <p>What can we help you with?</p>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('topic') }\" class='form-topic'>\r\n <div class='form-select-wrapper'>\r\n <label class='assistive-text'>Topic *</label>\r\n <select (change)='onTopicChange($event)' class='form-select' formControlName='topic'>\r\n <option *ngFor='let topic of topicList' [value]='topic.value'>{{ topic.value }} </option>\r\n </select>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='topic'\r\n controlTitle='topic'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('name') }\" class='form-name'>\r\n <label class='assistive-text'>Name *</label>\r\n <input class='form-control' formControlName='name' placeholder='Name *' type='text'>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='name'\r\n controlTitle='name'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('email') }\" class='form-email'>\r\n <label class='assistive-text'>E-mail * </label>\r\n <input class='form-control' formControlName='email' placeholder='E-mail *' type='text' />\r\n <p *ngIf='!isUserSignedIn'>Please indicate the email used for your MailEx login if you already have an account</p>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='email'\r\n controlTitle='email'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('subject') }\" class='form-subject'>\r\n <label class='assistive-text'>Subject *</label>\r\n <input class='form-control' formControlName='subject' placeholder='Subject *' type='text' />\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='subject'\r\n controlTitle='subject'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n </div>\r\n <div class='col-6'>\r\n <div [ngClass]=\"{'has-error': isControlInvalid('message') }\" class='form-message'>\r\n <label class='assistive-text'>Message *</label>\r\n <textarea formControlName='message' name='message' placeholder='Message *' rows='4'\r\n type='text'></textarea>\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n controlName='message'\r\n controlTitle='message'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row form-footer\">\r\n <div class=\"col\">\r\n <button *ngIf='showActionButtons'\r\n [class.btn-primary]='!formGroup.invalid'\r\n class='btn btn-success'\r\n type='submit'>\r\n Submit\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n" }]
|
|
4340
|
+
}], function () { return [{ type: i1$9.ReCaptchaV3Service }, { type: i2.FormBuilder }, { type: AppContextService }, { type: EmailsApiService }, { type: NotificationService }]; }, { showActionButtons: [{
|
|
4349
4341
|
type: Input
|
|
4350
4342
|
}], submit: [{
|
|
4351
4343
|
type: Output
|
|
4352
|
-
}], recaptcha: [{
|
|
4353
|
-
type: ViewChild,
|
|
4354
|
-
args: ['recaptcha']
|
|
4355
4344
|
}] }); })();
|
|
4356
4345
|
|
|
4357
4346
|
/*
|
|
@@ -4411,14 +4400,14 @@ ContactUsDialog.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsDi
|
|
|
4411
4400
|
} if (rf & 2) {
|
|
4412
4401
|
let _t;
|
|
4413
4402
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contactUsForm = _t.first);
|
|
4414
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["title", "Contact Us", 3, "width", "close", 4, "ngIf"], ["title", "Contact Us", 3, "width", "close"], [1, "k-content", "k-window-content", "k-dialog-content"], [3, "showActionButtons", "submit"], ["contactusform", ""], [1, "k-actions"], [1, "d-flex", "justify-content-end"], ["type", "button", 1, "btn", "btn-success", 3, "click"], ["type", "button", 1, "btn", "btn-danger", 3, "click"]], template: function ContactUsDialog_Template(rf, ctx) { if (rf & 1) {
|
|
4403
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["title", "Contact Us", 3, "width", "close", 4, "ngIf"], ["title", "Contact Us", 3, "width", "close"], [1, "k-content", "k-window-content", "k-dialog-content"], [3, "showActionButtons", "submit"], ["contactusform", ""], [1, "k-actions"], [1, "d-flex", "justify-content-end"], ["type", "button", 1, "btn", "btn-sm", "btn-success", 3, "click"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", 3, "click"]], template: function ContactUsDialog_Template(rf, ctx) { if (rf & 1) {
|
|
4415
4404
|
i0.ɵɵtemplate(0, ContactUsDialog_kendo_dialog_0_Template, 10, 2, "kendo-dialog", 0);
|
|
4416
4405
|
} if (rf & 2) {
|
|
4417
4406
|
i0.ɵɵproperty("ngIf", ctx.isOpen);
|
|
4418
|
-
} }, dependencies: [i1$5.NgIf, i2.DialogComponent, i2.DialogActionsComponent, ContactUsForm], encapsulation: 2 });
|
|
4407
|
+
} }, dependencies: [i1$5.NgIf, i2$1.DialogComponent, i2$1.DialogActionsComponent, ContactUsForm], encapsulation: 2 });
|
|
4419
4408
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactUsDialog, [{
|
|
4420
4409
|
type: Component,
|
|
4421
|
-
args: [{ selector: 'anatoly-contactus-dialog', template: "<kendo-dialog (close)='onClose()' *ngIf='isOpen' [width]='700' title='Contact Us'>\r\n <div class=\"k-content k-window-content k-dialog-content\">\r\n <anatoly-forms-contactus-form #contactusform [showActionButtons]='false' (submit)='onSubmit()'>\r\n </anatoly-forms-contactus-form>\r\n </div>\r\n <kendo-dialog-actions class=\"k-actions\">\r\n <div class=\"d-flex justify-content-end\">\r\n <button (click)='onSubmitFire()' class='btn btn-success' type='button'>Submit</button>\r\n <button (click)='onClose()' class='btn btn-danger' type='button'>Cancel </button>\r\n </div>\r\n </kendo-dialog-actions>\r\n</kendo-dialog
|
|
4410
|
+
args: [{ selector: 'anatoly-contactus-dialog', template: "<kendo-dialog (close)='onClose()' *ngIf='isOpen' [width]='700' title='Contact Us'>\r\n <div class=\"k-content k-window-content k-dialog-content\">\r\n <anatoly-forms-contactus-form #contactusform [showActionButtons]='false' (submit)='onSubmit()'>\r\n </anatoly-forms-contactus-form>\r\n </div>\r\n <kendo-dialog-actions class=\"k-actions\">\r\n <div class=\"d-flex justify-content-end\">\r\n <button (click)='onSubmitFire()' class='btn btn-sm btn-success' type='button'>Submit</button>\r\n <button (click)='onClose()' class='btn btn-sm btn-danger' type='button'>Cancel </button>\r\n </div>\r\n </kendo-dialog-actions>\r\n</kendo-dialog>" }]
|
|
4422
4411
|
}], function () { return []; }, { contactUsForm: [{
|
|
4423
4412
|
type: ViewChild,
|
|
4424
4413
|
args: ['contactusform']
|
|
@@ -4655,7 +4644,7 @@ class AddressComponent extends BaseEditComponent {
|
|
|
4655
4644
|
this.change.emit(usState);
|
|
4656
4645
|
}
|
|
4657
4646
|
}
|
|
4658
|
-
AddressComponent.ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(
|
|
4647
|
+
AddressComponent.ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(CoreApiService)); };
|
|
4659
4648
|
AddressComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressComponent, selectors: [["anatoly-forms-address"]], inputs: { title: "title", isTitleVisible: "isTitleVisible", isRequired: "isRequired", address: "address" }, outputs: { change: "change" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 29, vars: 29, consts: [["classes", "card-primary card-outline"], [3, "title", 4, "ngIf"], [1, "row", 3, "formGroup"], [1, "form-group", "col-12", 3, "ngClass"], [1, "col-form-label", "required"], ["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", 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", 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) {
|
|
4660
4649
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
4661
4650
|
i0.ɵɵtemplate(1, AddressComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
@@ -4716,11 +4705,11 @@ AddressComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressCom
|
|
|
4716
4705
|
i0.ɵɵproperty("ngForOf", ctx.countryData);
|
|
4717
4706
|
i0.ɵɵadvance(1);
|
|
4718
4707
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4719
|
-
} }, dependencies: [i1$5.NgClass, i1$5.NgForOf, i1$5.NgIf,
|
|
4708
|
+
} }, dependencies: [i1$5.NgClass, i1$5.NgForOf, i1$5.NgIf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.DefaultValueAccessor, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, CardComponent, CardHeaderComponent, CardBodyComponent, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
4720
4709
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
4721
4710
|
type: Component,
|
|
4722
4711
|
args: [{ selector: 'anatoly-forms-address', template: "<anatoly-card classes='card-primary card-outline'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title'></anatoly-card-header>\r\n <anatoly-card-body>\r\n <div class='row' [formGroup]='formGroup'>\r\n <div class='form-group col-12' [ngClass]=\"{'has-error': isControlInvalid('address_street')}\" >\r\n <label class='col-form-label required'>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\r\n <div class='form-group col-12' [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\r\n <div class='form-group col-3' [ngClass]=\"{'has-error': isControlInvalid('address_city')}\">\r\n <label class='col-form-label required'>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\r\n <div class='form-group col-3' *ngIf=\"formGroup.value.address_country == 'US'\" [ngClass]=\"{'has-error': isControlInvalid('address_stateOrRegion')}\">\r\n <label class='col-form-label required'>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\r\n <div class='form-group col-3' [ngClass]=\"{'has-error': isControlInvalid('address_zipcode')}\" >\r\n <label class='col-form-label required'>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\r\n <div class='form-group col-3' [ngClass]=\"{'has-error': isControlInvalid('address_country')}\">\r\n <label class='col-form-label required'>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" }]
|
|
4723
|
-
}], function () { return [{ type:
|
|
4712
|
+
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, { title: [{
|
|
4724
4713
|
type: Input
|
|
4725
4714
|
}], isTitleVisible: [{
|
|
4726
4715
|
type: Input
|
|
@@ -4805,7 +4794,7 @@ class CompanyComponent extends BaseEditComponent {
|
|
|
4805
4794
|
return JSON.stringify(data);
|
|
4806
4795
|
}
|
|
4807
4796
|
}
|
|
4808
|
-
CompanyComponent.ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(
|
|
4797
|
+
CompanyComponent.ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder)); };
|
|
4809
4798
|
CompanyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyComponent, selectors: [["anatoly-forms-company"]], inputs: { title: "title", isTitleVisible: "isTitleVisible", company: "company" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 24, vars: 22, consts: [["classes", "card-primary card-outline"], [3, "title", 4, "ngIf"], [1, "row", 3, "formGroup"], [1, "form-group", "col-6", 3, "ngClass"], [1, "col-form-label"], ["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"], ["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) {
|
|
4810
4799
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
4811
4800
|
i0.ɵɵtemplate(1, CompanyComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
@@ -4850,11 +4839,11 @@ CompanyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyCom
|
|
|
4850
4839
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c0$1, ctx.isControlInvalid("company_websiteUrl")));
|
|
4851
4840
|
i0.ɵɵadvance(4);
|
|
4852
4841
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4853
|
-
} }, dependencies: [i1$5.NgClass, i1$5.NgIf,
|
|
4842
|
+
} }, dependencies: [i1$5.NgClass, i1$5.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.PatternValidator, i2.FormGroupDirective, i2.FormControlName, CardComponent, CardHeaderComponent, CardBodyComponent, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
4854
4843
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompanyComponent, [{
|
|
4855
4844
|
type: Component,
|
|
4856
4845
|
args: [{ selector: 'anatoly-forms-company', template: "<anatoly-card classes='card-primary card-outline'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title'></anatoly-card-header>\r\n <anatoly-card-body>\r\n <div [formGroup]='formGroup' class='row'>\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_name') }\">\r\n <label class='col-form-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 class='col-form-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' [ngClass]=\"{'has-error': isControlInvalid('company_email') }\">\r\n <label class='col-form-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' [ngClass]=\"{'has-error': isControlInvalid('company_websiteUrl') }\">\r\n <label class='col-form-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\r\n </div>\r\n </anatoly-card-body>\r\n</anatoly-card>\r\n" }]
|
|
4857
|
-
}], function () { return [{ type:
|
|
4846
|
+
}], function () { return [{ type: i2.FormBuilder }]; }, { title: [{
|
|
4858
4847
|
type: Input
|
|
4859
4848
|
}], isTitleVisible: [{
|
|
4860
4849
|
type: Input
|
|
@@ -4964,7 +4953,7 @@ UrlSlugComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugCom
|
|
|
4964
4953
|
i0.ɵɵproperty("formControlName", ctx.controlName);
|
|
4965
4954
|
i0.ɵɵadvance(1);
|
|
4966
4955
|
i0.ɵɵproperty("ngIf", ctx.isGoButtonVisible);
|
|
4967
|
-
} }, dependencies: [i1$5.NgClass, i1$5.NgIf,
|
|
4956
|
+
} }, dependencies: [i1$5.NgClass, i1$5.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
4968
4957
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
4969
4958
|
type: Component,
|
|
4970
4959
|
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(controlName)}\"\r\n class=\"permalink form-group {{class}}\">\r\n <div class=\"d-flex align-items-end\">\r\n <anatoly-item-validation-summary [formGroup]='formGroup' [formSubmitted]='formSubmitted' [controlName]='controlName'\r\n [controlTitle]='controlTitle'>\r\n </anatoly-item-validation-summary>\r\n <div class=\"form-group\">\r\n <label *ngIf='isTitleVisible' class='col-form-label'>\r\n {{ title }}\r\n <span class=\"urlPrefix\">{{ urlPrefix }}</span>\r\n </label>\r\n <input type='text' class='form-control' [formControlName]='controlName' placeholder='Type url slug here'\r\n (focusout)='onUrlSlugChange()' />\r\n </div>\r\n\r\n <div class=\"form-group flex-shrink-1\" *ngIf=\"isGoButtonVisible\">\r\n <a href=\"{{urlPrefix}}{{hrefGo}}\" target=\"_blank\" class=\"btn btn-primary\">Go</a>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
@@ -5063,7 +5052,7 @@ TimezoneDropdownlist.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Timezo
|
|
|
5063
5052
|
i0.ɵɵproperty("formControlName", ctx.controlName);
|
|
5064
5053
|
i0.ɵɵadvance(1);
|
|
5065
5054
|
i0.ɵɵproperty("ngForOf", ctx.timezoneListItems);
|
|
5066
|
-
} }, dependencies: [i1$5.NgForOf, i1$5.NgIf,
|
|
5055
|
+
} }, dependencies: [i1$5.NgForOf, i1$5.NgIf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, NativeElementDirective], encapsulation: 2 });
|
|
5067
5056
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimezoneDropdownlist, [{
|
|
5068
5057
|
type: Component,
|
|
5069
5058
|
args: [{ selector: 'anatoly-forms-timezone-dropdownlist', template: "<div [formGroup]='formGroup' class='form-group'>\r\n <label *ngIf='isTitleVisible' class='col-form-label'>Timezone</label>\r\n <select [formControlName]='controlName' class='form-control'>\r\n <option *ngFor='let timezone of timezoneListItems'\r\n [value]='timezone.code'>\r\n ({{timezone.offset}}) {{timezone.name}}\r\n </option>\r\n </select>\r\n</div>\r\n" }]
|
|
@@ -5583,7 +5572,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
5583
5572
|
FormsModule,
|
|
5584
5573
|
NgxCaptchaModule,
|
|
5585
5574
|
FaModule,
|
|
5586
|
-
KendoModule, i1$
|
|
5575
|
+
KendoModule, i1$8.FroalaEditorModule, i1$8.FroalaViewModule], exports: [BuyAccessButtonComponent,
|
|
5587
5576
|
SubscribePlanButtonComponent,
|
|
5588
5577
|
CheckIconComponent,
|
|
5589
5578
|
DatapagerComponent,
|