@osovitny/anatoly 2.15.4 → 2.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/ui/components/base/base-edit.component.mjs +2 -2
- package/esm2020/lib/ui/directives/hover.directive.mjs +51 -0
- package/esm2020/lib/ui/directives/index.mjs +2 -1
- package/esm2020/lib/ui/forms/contact-us/contact-us.mjs +41 -55
- package/esm2020/lib/ui/ui.module.mjs +5 -2
- package/fesm2015/osovitny-anatoly.mjs +112 -73
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +107 -70
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/directives/hover.directive.d.ts +8 -0
- package/lib/ui/directives/index.d.ts +1 -0
- package/lib/ui/forms/contact-us/contact-us.d.ts +4 -4
- package/lib/ui/ui.module.d.ts +18 -17
- package/package.json +2 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Pipe, APP_INITIALIZER, Injector, NgModule, Inject, Component, Input, EventEmitter, Output, ViewEncapsulation, Directive, ViewChild, Optional, SkipSelf } from '@angular/core';
|
|
2
|
+
import { Injectable, Pipe, APP_INITIALIZER, Injector, NgModule, Inject, Component, Input, EventEmitter, Output, ViewEncapsulation, Directive, ViewChild, HostBinding, HostListener, Optional, SkipSelf } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/router';
|
|
4
4
|
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError } from '@angular/router';
|
|
5
5
|
import * as i1$3 from '@angular/common/http';
|
|
@@ -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';
|
|
@@ -3126,11 +3126,11 @@ Copy2ClipboardComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cop
|
|
|
3126
3126
|
</file>
|
|
3127
3127
|
*/
|
|
3128
3128
|
const _c0$9 = [[["mex-card-header"]], [["mex-card-body"]], "*", [["mex-card-footer"]]];
|
|
3129
|
-
const _c1
|
|
3129
|
+
const _c1 = ["mex-card-header", "mex-card-body", "*", "mex-card-footer"];
|
|
3130
3130
|
class CardComponent {
|
|
3131
3131
|
}
|
|
3132
3132
|
CardComponent.ɵfac = function CardComponent_Factory(t) { return new (t || CardComponent)(); };
|
|
3133
|
-
CardComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardComponent, selectors: [["anatoly-card"]], inputs: { classes: "classes" }, ngContentSelectors: _c1
|
|
3133
|
+
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) {
|
|
3134
3134
|
if (rf & 1) {
|
|
3135
3135
|
i0.ɵɵprojectionDef(_c0$9);
|
|
3136
3136
|
i0.ɵɵelementStart(0, "div");
|
|
@@ -3454,7 +3454,7 @@ class BaseEditComponent extends BaseComponent {
|
|
|
3454
3454
|
this.formSubmitted = false;
|
|
3455
3455
|
}
|
|
3456
3456
|
isActionAdding() {
|
|
3457
|
-
return Utils.idExistsInQS();
|
|
3457
|
+
return !Utils.idExistsInQS();
|
|
3458
3458
|
}
|
|
3459
3459
|
isControlValid(name, frmGroup = null) {
|
|
3460
3460
|
return !this.isControlInvalid(name, frmGroup);
|
|
@@ -3692,7 +3692,7 @@ class NativeElementDirective {
|
|
|
3692
3692
|
this.control.control.nativeElement = this.el.nativeElement;
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
|
-
NativeElementDirective.ɵfac = function NativeElementDirective_Factory(t) { return new (t || NativeElementDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(
|
|
3695
|
+
NativeElementDirective.ɵfac = function NativeElementDirective_Factory(t) { return new (t || NativeElementDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2.NgControl)); };
|
|
3696
3696
|
NativeElementDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: NativeElementDirective, selectors: [["", "formControl", ""], ["", "formControlName", ""]] });
|
|
3697
3697
|
(function () {
|
|
3698
3698
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NativeElementDirective, [{
|
|
@@ -3700,7 +3700,7 @@ NativeElementDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Nati
|
|
|
3700
3700
|
args: [{
|
|
3701
3701
|
selector: '[formControl], [formControlName]'
|
|
3702
3702
|
}]
|
|
3703
|
-
}], function () { return [{ type: i0.ElementRef }, { type:
|
|
3703
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i2.NgControl }]; }, null);
|
|
3704
3704
|
})();
|
|
3705
3705
|
|
|
3706
3706
|
/*
|
|
@@ -3938,7 +3938,7 @@ FormsHtmlEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Fo
|
|
|
3938
3938
|
i0.ɵɵadvance(1);
|
|
3939
3939
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("controlName", ctx.editorFormKey)("controlTitle", ctx.editorLabelText);
|
|
3940
3940
|
}
|
|
3941
|
-
}, dependencies: [i1$5.NgClass,
|
|
3941
|
+
}, dependencies: [i1$5.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i1$8.FroalaEditorDirective, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
3942
3942
|
(function () {
|
|
3943
3943
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormsHtmlEditorComponent, [{
|
|
3944
3944
|
type: Component,
|
|
@@ -4000,7 +4000,7 @@ HtmlEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HtmlEdi
|
|
|
4000
4000
|
i0.ɵɵadvance(1);
|
|
4001
4001
|
i0.ɵɵproperty("froalaEditor", ctx.options);
|
|
4002
4002
|
}
|
|
4003
|
-
}, dependencies: [i1$
|
|
4003
|
+
}, dependencies: [i1$8.FroalaEditorDirective], encapsulation: 2 });
|
|
4004
4004
|
(function () {
|
|
4005
4005
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HtmlEditorComponent, [{
|
|
4006
4006
|
type: Component,
|
|
@@ -4356,18 +4356,17 @@ FormValidationSummaryComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
4356
4356
|
Copyright (c) 2017-2022 Osovitny Inc. All rights reserved.
|
|
4357
4357
|
</file>
|
|
4358
4358
|
*/
|
|
4359
|
-
const _c0$4 = ["recaptcha"];
|
|
4360
4359
|
function ContactUsForm_option_12_Template(rf, ctx) {
|
|
4361
4360
|
if (rf & 1) {
|
|
4362
|
-
i0.ɵɵelementStart(0, "option",
|
|
4361
|
+
i0.ɵɵelementStart(0, "option", 28);
|
|
4363
4362
|
i0.ɵɵtext(1);
|
|
4364
4363
|
i0.ɵɵelementEnd();
|
|
4365
4364
|
}
|
|
4366
4365
|
if (rf & 2) {
|
|
4367
|
-
const
|
|
4368
|
-
i0.ɵɵproperty("value",
|
|
4366
|
+
const topic_r3 = ctx.$implicit;
|
|
4367
|
+
i0.ɵɵproperty("value", topic_r3.value);
|
|
4369
4368
|
i0.ɵɵadvance(1);
|
|
4370
|
-
i0.ɵɵtextInterpolate1("",
|
|
4369
|
+
i0.ɵɵtextInterpolate1("", topic_r3.value, " ");
|
|
4371
4370
|
}
|
|
4372
4371
|
}
|
|
4373
4372
|
function ContactUsForm_p_23_Template(rf, ctx) {
|
|
@@ -4377,21 +4376,22 @@ function ContactUsForm_p_23_Template(rf, ctx) {
|
|
|
4377
4376
|
i0.ɵɵelementEnd();
|
|
4378
4377
|
}
|
|
4379
4378
|
}
|
|
4380
|
-
function
|
|
4379
|
+
function ContactUsForm_button_38_Template(rf, ctx) {
|
|
4381
4380
|
if (rf & 1) {
|
|
4382
|
-
i0.ɵɵelementStart(0, "button",
|
|
4381
|
+
i0.ɵɵelementStart(0, "button", 29);
|
|
4383
4382
|
i0.ɵɵtext(1, " Submit ");
|
|
4384
4383
|
i0.ɵɵelementEnd();
|
|
4385
4384
|
}
|
|
4386
4385
|
if (rf & 2) {
|
|
4387
|
-
const
|
|
4388
|
-
i0.ɵɵclassProp("btn-primary", !
|
|
4386
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
4387
|
+
i0.ɵɵclassProp("btn-primary", !ctx_r2.formGroup.invalid);
|
|
4389
4388
|
}
|
|
4390
4389
|
}
|
|
4391
|
-
const
|
|
4390
|
+
const _c0$4 = function (a0) { return { "has-error": a0 }; };
|
|
4392
4391
|
class ContactUsForm extends BaseEditComponent {
|
|
4393
|
-
constructor(fb, appContext, api, notificationService) {
|
|
4392
|
+
constructor(reCaptcha, fb, appContext, api, notificationService) {
|
|
4394
4393
|
super();
|
|
4394
|
+
this.reCaptcha = reCaptcha;
|
|
4395
4395
|
this.fb = fb;
|
|
4396
4396
|
this.appContext = appContext;
|
|
4397
4397
|
this.api = api;
|
|
@@ -4417,7 +4417,6 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4417
4417
|
}
|
|
4418
4418
|
createFormGroup() {
|
|
4419
4419
|
this.formGroup = this.fb.group({
|
|
4420
|
-
captcha: new FormControl(null, [Validators.required]),
|
|
4421
4420
|
name: new FormControl('', [Validators.required]),
|
|
4422
4421
|
email: new FormControl('', [Validators.required]),
|
|
4423
4422
|
topic: new FormControl('', [Validators.required]),
|
|
@@ -4427,7 +4426,7 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4427
4426
|
}
|
|
4428
4427
|
setContext(context) {
|
|
4429
4428
|
this.isUserSignedIn = context.isUserSignedIn;
|
|
4430
|
-
this.
|
|
4429
|
+
this.reCaptchaSiteKey = context.reCaptchaSiteKeyV3;
|
|
4431
4430
|
this.selectedTopic = this.topicList[3].value;
|
|
4432
4431
|
this.setFormValue('topic', this.selectedTopic);
|
|
4433
4432
|
if (this.isUserSignedIn) {
|
|
@@ -4442,20 +4441,20 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4442
4441
|
this.formSubmitted = true;
|
|
4443
4442
|
if (!this.isValid())
|
|
4444
4443
|
return;
|
|
4445
|
-
const captcha = this.getFormValue('captcha');
|
|
4446
4444
|
const name = this.getFormValue('name');
|
|
4447
4445
|
const email = this.getFormValue('email');
|
|
4448
4446
|
const topic = this.selectedTopic;
|
|
4449
4447
|
const subject = this.getFormValue('subject');
|
|
4450
4448
|
const message = this.getFormValue('message');
|
|
4451
|
-
this.
|
|
4452
|
-
this.
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4449
|
+
this.reCaptcha.execute(this.reCaptchaSiteKey, 'ContactUs', (token) => {
|
|
4450
|
+
this.api.sendContactUs(token, name, email, topic, subject, message, () => {
|
|
4451
|
+
this.formSubmitted = false;
|
|
4452
|
+
this.notificationService.success('Message has been sent successfully');
|
|
4453
|
+
this.formGroup.reset();
|
|
4454
|
+
this.submit.emit();
|
|
4455
|
+
}, () => {
|
|
4456
|
+
this.notificationService.error();
|
|
4457
|
+
});
|
|
4459
4458
|
});
|
|
4460
4459
|
}
|
|
4461
4460
|
//Events
|
|
@@ -4466,16 +4465,8 @@ class ContactUsForm extends BaseEditComponent {
|
|
|
4466
4465
|
this.selectedTopic = event.target.value;
|
|
4467
4466
|
}
|
|
4468
4467
|
}
|
|
4469
|
-
ContactUsForm.ɵfac = function ContactUsForm_Factory(t) { return new (t || ContactUsForm)(i0.ɵɵdirectiveInject(i1$
|
|
4470
|
-
ContactUsForm.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsForm, selectors: [["anatoly-forms-contactus-form"]],
|
|
4471
|
-
if (rf & 1) {
|
|
4472
|
-
i0.ɵɵviewQuery(_c0$4, 5);
|
|
4473
|
-
}
|
|
4474
|
-
if (rf & 2) {
|
|
4475
|
-
let _t;
|
|
4476
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recaptcha = _t.first);
|
|
4477
|
-
}
|
|
4478
|
-
}, 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) {
|
|
4468
|
+
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)); };
|
|
4469
|
+
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) {
|
|
4479
4470
|
if (rf & 1) {
|
|
4480
4471
|
i0.ɵɵelementStart(0, "form", 0);
|
|
4481
4472
|
i0.ɵɵlistener("ngSubmit", function ContactUsForm_Template_form_ngSubmit_0_listener() { return ctx.onSubmit(); });
|
|
@@ -4514,11 +4505,8 @@ ContactUsForm.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsForm
|
|
|
4514
4505
|
i0.ɵɵelementEnd();
|
|
4515
4506
|
i0.ɵɵelement(34, "textarea", 23)(35, "anatoly-item-validation-summary", 24);
|
|
4516
4507
|
i0.ɵɵelementEnd()()();
|
|
4517
|
-
i0.ɵɵelementStart(36, "div", 25)(37, "div",
|
|
4518
|
-
i0.ɵɵ
|
|
4519
|
-
i0.ɵɵelementEnd()();
|
|
4520
|
-
i0.ɵɵelementStart(41, "div", 21);
|
|
4521
|
-
i0.ɵɵtemplate(42, ContactUsForm_button_42_Template, 2, 2, "button", 29);
|
|
4508
|
+
i0.ɵɵelementStart(36, "div", 25)(37, "div", 26);
|
|
4509
|
+
i0.ɵɵtemplate(38, ContactUsForm_button_38_Template, 2, 2, "button", 27);
|
|
4522
4510
|
i0.ɵɵelementEnd()()()();
|
|
4523
4511
|
}
|
|
4524
4512
|
if (rf & 2) {
|
|
@@ -4526,46 +4514,41 @@ ContactUsForm.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsForm
|
|
|
4526
4514
|
i0.ɵɵadvance(1);
|
|
4527
4515
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("visible", ctx.formSubmitted && ctx.formGroup.invalid);
|
|
4528
4516
|
i0.ɵɵadvance(6);
|
|
4529
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4517
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$4, ctx.isControlInvalid("topic")));
|
|
4530
4518
|
i0.ɵɵadvance(5);
|
|
4531
4519
|
i0.ɵɵproperty("ngForOf", ctx.topicList);
|
|
4532
4520
|
i0.ɵɵadvance(1);
|
|
4533
4521
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4534
4522
|
i0.ɵɵadvance(1);
|
|
4535
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4523
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$4, ctx.isControlInvalid("name")));
|
|
4536
4524
|
i0.ɵɵadvance(4);
|
|
4537
4525
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4538
4526
|
i0.ɵɵadvance(1);
|
|
4539
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4527
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c0$4, ctx.isControlInvalid("email")));
|
|
4540
4528
|
i0.ɵɵadvance(4);
|
|
4541
4529
|
i0.ɵɵproperty("ngIf", !ctx.isUserSignedIn);
|
|
4542
4530
|
i0.ɵɵadvance(1);
|
|
4543
4531
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4544
4532
|
i0.ɵɵadvance(1);
|
|
4545
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4533
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(27, _c0$4, ctx.isControlInvalid("subject")));
|
|
4546
4534
|
i0.ɵɵadvance(4);
|
|
4547
4535
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4548
4536
|
i0.ɵɵadvance(2);
|
|
4549
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
4537
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(29, _c0$4, ctx.isControlInvalid("message")));
|
|
4550
4538
|
i0.ɵɵadvance(4);
|
|
4551
4539
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4552
|
-
i0.ɵɵadvance(4);
|
|
4553
|
-
i0.ɵɵproperty("siteKey", ctx.siteKey);
|
|
4554
4540
|
i0.ɵɵadvance(3);
|
|
4555
4541
|
i0.ɵɵproperty("ngIf", ctx.showActionButtons);
|
|
4556
4542
|
}
|
|
4557
|
-
}, dependencies: [i1$5.NgClass, i1$5.NgForOf, i1$5.NgIf,
|
|
4543
|
+
}, 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 });
|
|
4558
4544
|
(function () {
|
|
4559
4545
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactUsForm, [{
|
|
4560
4546
|
type: Component,
|
|
4561
|
-
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
|
|
4562
|
-
}], function () { return [{ type: i1$
|
|
4547
|
+
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" }]
|
|
4548
|
+
}], function () { return [{ type: i1$9.ReCaptchaV3Service }, { type: i2.FormBuilder }, { type: AppContextService }, { type: EmailsApiService }, { type: NotificationService }]; }, { showActionButtons: [{
|
|
4563
4549
|
type: Input
|
|
4564
4550
|
}], submit: [{
|
|
4565
4551
|
type: Output
|
|
4566
|
-
}], recaptcha: [{
|
|
4567
|
-
type: ViewChild,
|
|
4568
|
-
args: ['recaptcha']
|
|
4569
4552
|
}] });
|
|
4570
4553
|
})();
|
|
4571
4554
|
|
|
@@ -4640,7 +4623,7 @@ ContactUsDialog.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsDi
|
|
|
4640
4623
|
if (rf & 2) {
|
|
4641
4624
|
i0.ɵɵproperty("ngIf", ctx.isOpen);
|
|
4642
4625
|
}
|
|
4643
|
-
}, dependencies: [i1$5.NgIf, i2.DialogComponent, i2.DialogActionsComponent, ContactUsForm], encapsulation: 2 });
|
|
4626
|
+
}, dependencies: [i1$5.NgIf, i2$1.DialogComponent, i2$1.DialogActionsComponent, ContactUsForm], encapsulation: 2 });
|
|
4644
4627
|
(function () {
|
|
4645
4628
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactUsDialog, [{
|
|
4646
4629
|
type: Component,
|
|
@@ -4667,6 +4650,59 @@ ContactUsDialog.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsDi
|
|
|
4667
4650
|
</file>
|
|
4668
4651
|
*/
|
|
4669
4652
|
|
|
4653
|
+
/*
|
|
4654
|
+
<file>
|
|
4655
|
+
Project:
|
|
4656
|
+
@osovitny/anatoly
|
|
4657
|
+
|
|
4658
|
+
Authors:
|
|
4659
|
+
Vadim Osovitny vadim@osovitny.com
|
|
4660
|
+
Anatoly Osovitny anatoly@osovitny.com
|
|
4661
|
+
|
|
4662
|
+
Created:
|
|
4663
|
+
24 Feb 2023
|
|
4664
|
+
|
|
4665
|
+
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
4666
|
+
</file>
|
|
4667
|
+
*/
|
|
4668
|
+
class HoveringDirective {
|
|
4669
|
+
constructor() {
|
|
4670
|
+
this.hovering = false;
|
|
4671
|
+
}
|
|
4672
|
+
onMouseEnter() {
|
|
4673
|
+
this.hovering = true;
|
|
4674
|
+
}
|
|
4675
|
+
onMouseLeave() {
|
|
4676
|
+
this.hovering = false;
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4679
|
+
HoveringDirective.ɵfac = function HoveringDirective_Factory(t) { return new (t || HoveringDirective)(); };
|
|
4680
|
+
HoveringDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: HoveringDirective, selectors: [["", "anatoly-hover", ""]], hostVars: 2, hostBindings: function HoveringDirective_HostBindings(rf, ctx) {
|
|
4681
|
+
if (rf & 1) {
|
|
4682
|
+
i0.ɵɵlistener("mouseenter", function HoveringDirective_mouseenter_HostBindingHandler() { return ctx.onMouseEnter(); })("mouseleave", function HoveringDirective_mouseleave_HostBindingHandler() { return ctx.onMouseLeave(); });
|
|
4683
|
+
}
|
|
4684
|
+
if (rf & 2) {
|
|
4685
|
+
i0.ɵɵclassProp("hovering", ctx.hovering);
|
|
4686
|
+
}
|
|
4687
|
+
} });
|
|
4688
|
+
(function () {
|
|
4689
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HoveringDirective, [{
|
|
4690
|
+
type: Directive,
|
|
4691
|
+
args: [{
|
|
4692
|
+
selector: '[anatoly-hover]'
|
|
4693
|
+
}]
|
|
4694
|
+
}], null, { hovering: [{
|
|
4695
|
+
type: HostBinding,
|
|
4696
|
+
args: ['class.hovering']
|
|
4697
|
+
}], onMouseEnter: [{
|
|
4698
|
+
type: HostListener,
|
|
4699
|
+
args: ['mouseenter']
|
|
4700
|
+
}], onMouseLeave: [{
|
|
4701
|
+
type: HostListener,
|
|
4702
|
+
args: ['mouseleave']
|
|
4703
|
+
}] });
|
|
4704
|
+
})();
|
|
4705
|
+
|
|
4670
4706
|
/*
|
|
4671
4707
|
<file>
|
|
4672
4708
|
Project:
|
|
@@ -4846,7 +4882,7 @@ class AddressComponent extends BaseEditComponent {
|
|
|
4846
4882
|
this.change.emit(usState);
|
|
4847
4883
|
}
|
|
4848
4884
|
}
|
|
4849
|
-
AddressComponent.ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(
|
|
4885
|
+
AddressComponent.ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(CoreApiService)); };
|
|
4850
4886
|
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) {
|
|
4851
4887
|
if (rf & 1) {
|
|
4852
4888
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
@@ -4910,12 +4946,12 @@ AddressComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressCom
|
|
|
4910
4946
|
i0.ɵɵadvance(1);
|
|
4911
4947
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
4912
4948
|
}
|
|
4913
|
-
}, dependencies: [i1$5.NgClass, i1$5.NgForOf, i1$5.NgIf,
|
|
4949
|
+
}, 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 });
|
|
4914
4950
|
(function () {
|
|
4915
4951
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
4916
4952
|
type: Component,
|
|
4917
4953
|
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" }]
|
|
4918
|
-
}], function () { return [{ type:
|
|
4954
|
+
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, { title: [{
|
|
4919
4955
|
type: Input
|
|
4920
4956
|
}], isTitleVisible: [{
|
|
4921
4957
|
type: Input
|
|
@@ -5004,7 +5040,7 @@ class CompanyComponent extends BaseEditComponent {
|
|
|
5004
5040
|
return JSON.stringify(data);
|
|
5005
5041
|
}
|
|
5006
5042
|
}
|
|
5007
|
-
CompanyComponent.ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(
|
|
5043
|
+
CompanyComponent.ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder)); };
|
|
5008
5044
|
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) {
|
|
5009
5045
|
if (rf & 1) {
|
|
5010
5046
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
@@ -5052,12 +5088,12 @@ CompanyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyCom
|
|
|
5052
5088
|
i0.ɵɵadvance(4);
|
|
5053
5089
|
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted);
|
|
5054
5090
|
}
|
|
5055
|
-
}, dependencies: [i1$5.NgClass, i1$5.NgIf,
|
|
5091
|
+
}, 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 });
|
|
5056
5092
|
(function () {
|
|
5057
5093
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompanyComponent, [{
|
|
5058
5094
|
type: Component,
|
|
5059
5095
|
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" }]
|
|
5060
|
-
}], function () { return [{ type:
|
|
5096
|
+
}], function () { return [{ type: i2.FormBuilder }]; }, { title: [{
|
|
5061
5097
|
type: Input
|
|
5062
5098
|
}], isTitleVisible: [{
|
|
5063
5099
|
type: Input
|
|
@@ -5177,7 +5213,7 @@ UrlSlugComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugCom
|
|
|
5177
5213
|
i0.ɵɵadvance(1);
|
|
5178
5214
|
i0.ɵɵproperty("ngIf", ctx.isGoButtonVisible);
|
|
5179
5215
|
}
|
|
5180
|
-
}, dependencies: [i1$5.NgClass, i1$5.NgIf,
|
|
5216
|
+
}, dependencies: [i1$5.NgClass, i1$5.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
5181
5217
|
(function () {
|
|
5182
5218
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
5183
5219
|
type: Component,
|
|
@@ -5287,7 +5323,7 @@ TimezoneDropdownlist.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Timezo
|
|
|
5287
5323
|
i0.ɵɵadvance(1);
|
|
5288
5324
|
i0.ɵɵproperty("ngForOf", ctx.timezoneListItems);
|
|
5289
5325
|
}
|
|
5290
|
-
}, dependencies: [i1$5.NgForOf, i1$5.NgIf,
|
|
5326
|
+
}, dependencies: [i1$5.NgForOf, i1$5.NgIf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, NativeElementDirective], encapsulation: 2 });
|
|
5291
5327
|
(function () {
|
|
5292
5328
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimezoneDropdownlist, [{
|
|
5293
5329
|
type: Component,
|
|
@@ -5742,6 +5778,7 @@ const COMPONENTS = [
|
|
|
5742
5778
|
ContactUsDialog,
|
|
5743
5779
|
//Directives
|
|
5744
5780
|
NativeElementDirective,
|
|
5781
|
+
HoveringDirective,
|
|
5745
5782
|
//Forms
|
|
5746
5783
|
AddressComponent,
|
|
5747
5784
|
CompanyComponent,
|
|
@@ -5815,6 +5852,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
5815
5852
|
ContactUsDialog,
|
|
5816
5853
|
//Directives
|
|
5817
5854
|
NativeElementDirective,
|
|
5855
|
+
HoveringDirective,
|
|
5818
5856
|
//Forms
|
|
5819
5857
|
AddressComponent,
|
|
5820
5858
|
CompanyComponent,
|
|
@@ -5832,7 +5870,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
5832
5870
|
FormsModule,
|
|
5833
5871
|
NgxCaptchaModule,
|
|
5834
5872
|
FaModule,
|
|
5835
|
-
KendoModule, i1$
|
|
5873
|
+
KendoModule, i1$8.FroalaEditorModule, i1$8.FroalaViewModule], exports: [BuyAccessButtonComponent,
|
|
5836
5874
|
SubscribePlanButtonComponent,
|
|
5837
5875
|
CheckIconComponent,
|
|
5838
5876
|
DatapagerComponent,
|
|
@@ -5855,6 +5893,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
5855
5893
|
ContactUsDialog,
|
|
5856
5894
|
//Directives
|
|
5857
5895
|
NativeElementDirective,
|
|
5896
|
+
HoveringDirective,
|
|
5858
5897
|
//Forms
|
|
5859
5898
|
AddressComponent,
|
|
5860
5899
|
CompanyComponent,
|
|
@@ -5931,5 +5970,5 @@ AnatolyModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
|
|
|
5931
5970
|
* Generated bundle index. Do not edit.
|
|
5932
5971
|
*/
|
|
5933
5972
|
|
|
5934
|
-
export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyModule, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BaseList, BasePage, BasePagedPage, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, DOM, DatapagerComponent, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, XmlFormatter, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
5973
|
+
export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyModule, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BaseList, BasePage, BasePagedPage, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, DOM, DatapagerComponent, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HoveringDirective, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, XmlFormatter, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
5935
5974
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|